Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clis/jd/commands.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it, vi } from 'vitest';
import { getRegistry } from '@jackwener/opencli/registry';
import type { IPage } from '../../src/types.js';
import type { IPage } from '@jackwener/opencli/types';
import './search.js';
import './detail.js';
import './reviews.js';
Expand Down
2 changes: 1 addition & 1 deletion clis/taobao/commands.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it, vi } from 'vitest';
import { getRegistry } from '@jackwener/opencli/registry';
import type { IPage } from '../../src/types.js';
import type { IPage } from '@jackwener/opencli/types';
import './search.js';
import './detail.js';
import './reviews.js';
Expand Down
24 changes: 24 additions & 0 deletions docs/adapters/browser/cnki.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# CNKI

**Mode**: 🔐 Browser · **Domain**: `oversea.cnki.net`

## Commands

| Command | Description |
|---------|-------------|
| `opencli cnki search <query>` | Search CNKI Overseas papers by keyword |

## Usage Examples

```bash
# Search CNKI papers
opencli cnki search "large language model"

# Limit returned results
opencli cnki search "retrieval augmented generation" --limit 5
```

## Prerequisites

- Chrome running
- [Browser Bridge extension](/guide/browser-bridge) installed
31 changes: 31 additions & 0 deletions docs/adapters/browser/taobao.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Taobao

**Mode**: 🔐 Browser · **Domain**: `taobao.com`

## Commands

| Command | Description |
|---------|-------------|
| `opencli taobao search <query>` | Search Taobao products |
| `opencli taobao detail <id>` | Fetch product details |
| `opencli taobao reviews <id>` | Fetch product reviews |
| `opencli taobao cart` | View cart items |
| `opencli taobao add-cart <id>` | Add a product to cart |

## Usage Examples

```bash
# Search products
opencli taobao search "机械键盘" --limit 5

# Fetch product details
opencli taobao detail 827563850178

# Dry-run add to cart
opencli taobao add-cart 827563850178 --spec "红色 XL" --dry-run
```

## Prerequisites

- Chrome running and logged into taobao.com
- [Browser Bridge extension](/guide/browser-bridge) installed