diff --git a/clis/jd/commands.test.ts b/clis/jd/commands.test.ts index 2aad1e57..2709d221 100644 --- a/clis/jd/commands.test.ts +++ b/clis/jd/commands.test.ts @@ -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'; diff --git a/clis/taobao/commands.test.ts b/clis/taobao/commands.test.ts index ffc70709..77429f15 100644 --- a/clis/taobao/commands.test.ts +++ b/clis/taobao/commands.test.ts @@ -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'; diff --git a/docs/adapters/browser/cnki.md b/docs/adapters/browser/cnki.md new file mode 100644 index 00000000..e769f11c --- /dev/null +++ b/docs/adapters/browser/cnki.md @@ -0,0 +1,24 @@ +# CNKI + +**Mode**: 🔐 Browser · **Domain**: `oversea.cnki.net` + +## Commands + +| Command | Description | +|---------|-------------| +| `opencli cnki search ` | 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 diff --git a/docs/adapters/browser/taobao.md b/docs/adapters/browser/taobao.md new file mode 100644 index 00000000..5b8d1e4d --- /dev/null +++ b/docs/adapters/browser/taobao.md @@ -0,0 +1,31 @@ +# Taobao + +**Mode**: 🔐 Browser · **Domain**: `taobao.com` + +## Commands + +| Command | Description | +|---------|-------------| +| `opencli taobao search ` | Search Taobao products | +| `opencli taobao detail ` | Fetch product details | +| `opencli taobao reviews ` | Fetch product reviews | +| `opencli taobao cart` | View cart items | +| `opencli taobao add-cart ` | 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