|
1 | | ---- |
2 | | -title: intent list |
3 | | -id: intent-list |
4 | | ---- |
5 | | - |
6 | | -`intent list` discovers skill-enabled packages and prints available skills. |
7 | | - |
8 | | -```bash |
9 | | -npx @tanstack/intent@latest list [--json] |
10 | | -``` |
11 | | - |
12 | | -## Options |
13 | | - |
14 | | -- `--json`: print JSON instead of text output |
15 | | - |
16 | | -## What you get |
17 | | - |
18 | | -- Scans project and workspace dependencies for intent-enabled packages and skills |
19 | | -- Intentionally includes accessible global packages when listing installed skills |
20 | | -- Includes warnings from discovery |
21 | | -- If no packages are discovered, prints `No intent-enabled packages found.` |
22 | | -- Summary line with package count, skill count, and detected package manager |
23 | | -- Package table columns: `PACKAGE`, `SOURCE`, `VERSION`, `SKILLS`, `REQUIRES` |
24 | | -- Skill tree grouped by package |
25 | | -- Optional warnings section (`⚠ ...` per warning) |
26 | | - |
27 | | -`REQUIRES` uses `intent.requires` values joined by `, `; empty values render as `–`. |
28 | | -`SOURCE` is a lightweight indicator showing whether the selected package came from local discovery or explicit global scanning. |
29 | | - |
30 | | -## JSON output |
31 | | - |
32 | | -`--json` prints the `ScanResult` object: |
33 | | - |
34 | | -```json |
35 | | -{ |
36 | | - "packageManager": "npm | pnpm | yarn | bun | unknown", |
37 | | - "packages": [ |
38 | | - { |
39 | | - "name": "string", |
40 | | - "version": "string", |
41 | | - "source": "local | global", |
42 | | - "intent": { |
43 | | - "version": 1, |
44 | | - "repo": "string", |
45 | | - "docs": "string", |
46 | | - "requires": ["string"] |
47 | | - }, |
48 | | - "skills": [ |
49 | | - { |
50 | | - "name": "string", |
51 | | - "path": "string", |
52 | | - "description": "string", |
53 | | - "type": "string (optional)", |
54 | | - "framework": "string (optional)" |
55 | | - } |
56 | | - ] |
57 | | - } |
58 | | - ], |
59 | | - "warnings": ["string"] |
60 | | -} |
61 | | -``` |
62 | | - |
63 | | -`packages` are ordered using `intent.requires` when possible. When the same package exists both locally and globally, `intent list` prefers the local package. |
64 | | - |
65 | | -## Common errors |
66 | | - |
67 | | -- Scanner failures are printed as errors |
68 | | -- Unsupported environments: |
69 | | - - Yarn PnP without `node_modules` |
70 | | - - Deno projects without `node_modules` |
| 1 | +--- |
| 2 | +title: intent list |
| 3 | +id: intent-list |
| 4 | +--- |
| 5 | + |
| 6 | +`intent list` discovers skill-enabled packages and prints available skills. |
| 7 | + |
| 8 | +```bash |
| 9 | +npx @tanstack/intent@latest list [--json] [--global] [--global-only] |
| 10 | +``` |
| 11 | + |
| 12 | +## Options |
| 13 | + |
| 14 | +- `--json`: print JSON instead of text output |
| 15 | +- `--global`: include global packages after project packages |
| 16 | +- `--global-only`: list global packages only |
| 17 | + |
| 18 | +## What you get |
| 19 | + |
| 20 | +- Scans project and workspace dependencies for intent-enabled packages and skills |
| 21 | +- Includes global packages only when `--global` or `--global-only` is passed |
| 22 | +- Includes warnings from discovery |
| 23 | +- If no packages are discovered, prints `No intent-enabled packages found.` |
| 24 | +- Summary line with package count, skill count, and detected package manager |
| 25 | +- Package table columns: `PACKAGE`, `SOURCE`, `VERSION`, `SKILLS`, `REQUIRES` |
| 26 | +- Skill tree grouped by package |
| 27 | +- Optional warnings section (`⚠ ...` per warning) |
| 28 | + |
| 29 | +`REQUIRES` uses `intent.requires` values joined by a comma and space; empty values render as `–`. |
| 30 | +`SOURCE` is a lightweight indicator showing whether the selected package came from local discovery or explicit global scanning. |
| 31 | +When both local and global packages are scanned, local packages take precedence. |
| 32 | + |
| 33 | +## JSON output |
| 34 | + |
| 35 | +`--json` prints the `ScanResult` object: |
| 36 | + |
| 37 | +```json |
| 38 | +{ |
| 39 | + "packageManager": "npm | pnpm | yarn | bun | unknown", |
| 40 | + "packages": [ |
| 41 | + { |
| 42 | + "name": "string", |
| 43 | + "version": "string", |
| 44 | + "source": "local | global", |
| 45 | + "packageRoot": "string", |
| 46 | + "intent": { |
| 47 | + "version": 1, |
| 48 | + "repo": "string", |
| 49 | + "docs": "string", |
| 50 | + "requires": ["string"] |
| 51 | + }, |
| 52 | + "skills": [ |
| 53 | + { |
| 54 | + "name": "string", |
| 55 | + "path": "string", |
| 56 | + "description": "string", |
| 57 | + "type": "string (optional)", |
| 58 | + "framework": "string (optional)" |
| 59 | + } |
| 60 | + ] |
| 61 | + } |
| 62 | + ], |
| 63 | + "warnings": ["string"], |
| 64 | + "conflicts": [ |
| 65 | + { |
| 66 | + "packageName": "string", |
| 67 | + "chosen": { |
| 68 | + "version": "string", |
| 69 | + "packageRoot": "string" |
| 70 | + }, |
| 71 | + "variants": [ |
| 72 | + { |
| 73 | + "version": "string", |
| 74 | + "packageRoot": "string" |
| 75 | + } |
| 76 | + ] |
| 77 | + } |
| 78 | + ], |
| 79 | + "nodeModules": { |
| 80 | + "local": { |
| 81 | + "path": "string | null", |
| 82 | + "detected": true, |
| 83 | + "exists": true, |
| 84 | + "scanned": true |
| 85 | + }, |
| 86 | + "global": { |
| 87 | + "path": "string | null", |
| 88 | + "detected": true, |
| 89 | + "exists": true, |
| 90 | + "scanned": false, |
| 91 | + "source": "string (optional)" |
| 92 | + } |
| 93 | + } |
| 94 | +} |
| 95 | +``` |
| 96 | + |
| 97 | +`packages` are ordered using `intent.requires` when possible. |
| 98 | +When the same package exists both locally and globally and global scanning is enabled, `intent list` prefers the local package. |
| 99 | + |
| 100 | +## Common errors |
| 101 | + |
| 102 | +- Scanner failures are printed as errors |
| 103 | +- Unsupported environments: |
| 104 | + - Yarn PnP without `node_modules` |
| 105 | + - Deno projects without `node_modules` |
0 commit comments