@vibe-agent-toolkit/cli 0.1.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +125 -0
- package/dist/bin/vat.d.ts +18 -0
- package/dist/bin/vat.d.ts.map +1 -0
- package/dist/bin/vat.js +174 -0
- package/dist/bin/vat.js.map +1 -0
- package/dist/bin.d.ts +7 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +108 -0
- package/dist/bin.js.map +1 -0
- package/dist/commands/agent/audit.d.ts +9 -0
- package/dist/commands/agent/audit.d.ts.map +1 -0
- package/dist/commands/agent/audit.js +139 -0
- package/dist/commands/agent/audit.js.map +1 -0
- package/dist/commands/agent/build.d.ts +13 -0
- package/dist/commands/agent/build.d.ts.map +1 -0
- package/dist/commands/agent/build.js +52 -0
- package/dist/commands/agent/build.js.map +1 -0
- package/dist/commands/agent/help.d.ts +5 -0
- package/dist/commands/agent/help.d.ts.map +1 -0
- package/dist/commands/agent/help.js +10 -0
- package/dist/commands/agent/help.js.map +1 -0
- package/dist/commands/agent/import.d.ts +10 -0
- package/dist/commands/agent/import.d.ts.map +1 -0
- package/dist/commands/agent/import.js +50 -0
- package/dist/commands/agent/import.js.map +1 -0
- package/dist/commands/agent/index.d.ts +7 -0
- package/dist/commands/agent/index.d.ts.map +1 -0
- package/dist/commands/agent/index.js +293 -0
- package/dist/commands/agent/index.js.map +1 -0
- package/dist/commands/agent/install.d.ts +15 -0
- package/dist/commands/agent/install.d.ts.map +1 -0
- package/dist/commands/agent/install.js +107 -0
- package/dist/commands/agent/install.js.map +1 -0
- package/dist/commands/agent/installed.d.ts +13 -0
- package/dist/commands/agent/installed.d.ts.map +1 -0
- package/dist/commands/agent/installed.js +106 -0
- package/dist/commands/agent/installed.js.map +1 -0
- package/dist/commands/agent/list.d.ts +8 -0
- package/dist/commands/agent/list.d.ts.map +1 -0
- package/dist/commands/agent/list.js +41 -0
- package/dist/commands/agent/list.js.map +1 -0
- package/dist/commands/agent/run.d.ts +17 -0
- package/dist/commands/agent/run.d.ts.map +1 -0
- package/dist/commands/agent/run.js +44 -0
- package/dist/commands/agent/run.js.map +1 -0
- package/dist/commands/agent/uninstall.d.ts +13 -0
- package/dist/commands/agent/uninstall.d.ts.map +1 -0
- package/dist/commands/agent/uninstall.js +48 -0
- package/dist/commands/agent/uninstall.js.map +1 -0
- package/dist/commands/agent/validate.d.ts +8 -0
- package/dist/commands/agent/validate.d.ts.map +1 -0
- package/dist/commands/agent/validate.js +51 -0
- package/dist/commands/agent/validate.js.map +1 -0
- package/dist/commands/rag/clear-command.d.ts +10 -0
- package/dist/commands/rag/clear-command.d.ts.map +1 -0
- package/dist/commands/rag/clear-command.js +22 -0
- package/dist/commands/rag/clear-command.js.map +1 -0
- package/dist/commands/rag/command-helpers.d.ts +27 -0
- package/dist/commands/rag/command-helpers.d.ts.map +1 -0
- package/dist/commands/rag/command-helpers.js +58 -0
- package/dist/commands/rag/command-helpers.js.map +1 -0
- package/dist/commands/rag/help.d.ts +5 -0
- package/dist/commands/rag/help.d.ts.map +1 -0
- package/dist/commands/rag/help.js +10 -0
- package/dist/commands/rag/help.js.map +1 -0
- package/dist/commands/rag/index-command.d.ts +10 -0
- package/dist/commands/rag/index-command.d.ts.map +1 -0
- package/dist/commands/rag/index-command.js +49 -0
- package/dist/commands/rag/index-command.js.map +1 -0
- package/dist/commands/rag/index.d.ts +7 -0
- package/dist/commands/rag/index.d.ts.map +1 -0
- package/dist/commands/rag/index.js +168 -0
- package/dist/commands/rag/index.js.map +1 -0
- package/dist/commands/rag/query-command.d.ts +11 -0
- package/dist/commands/rag/query-command.d.ts.map +1 -0
- package/dist/commands/rag/query-command.js +54 -0
- package/dist/commands/rag/query-command.js.map +1 -0
- package/dist/commands/rag/stats-command.d.ts +10 -0
- package/dist/commands/rag/stats-command.d.ts.map +1 -0
- package/dist/commands/rag/stats-command.js +25 -0
- package/dist/commands/rag/stats-command.js.map +1 -0
- package/dist/commands/resources/command-helpers.d.ts +5 -0
- package/dist/commands/resources/command-helpers.d.ts.map +1 -0
- package/dist/commands/resources/command-helpers.js +6 -0
- package/dist/commands/resources/command-helpers.js.map +1 -0
- package/dist/commands/resources/help.d.ts +5 -0
- package/dist/commands/resources/help.d.ts.map +1 -0
- package/dist/commands/resources/help.js +10 -0
- package/dist/commands/resources/help.js.map +1 -0
- package/dist/commands/resources/index.d.ts +7 -0
- package/dist/commands/resources/index.d.ts.map +1 -0
- package/dist/commands/resources/index.js +64 -0
- package/dist/commands/resources/index.js.map +1 -0
- package/dist/commands/resources/scan.d.ts +9 -0
- package/dist/commands/resources/scan.d.ts.map +1 -0
- package/dist/commands/resources/scan.js +47 -0
- package/dist/commands/resources/scan.js.map +1 -0
- package/dist/commands/resources/validate.d.ts +9 -0
- package/dist/commands/resources/validate.d.ts.map +1 -0
- package/dist/commands/resources/validate.js +61 -0
- package/dist/commands/resources/validate.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/config.d.ts +1034 -0
- package/dist/schemas/config.d.ts.map +1 -0
- package/dist/schemas/config.js +135 -0
- package/dist/schemas/config.js.map +1 -0
- package/dist/utils/agent-discovery.d.ts +32 -0
- package/dist/utils/agent-discovery.d.ts.map +1 -0
- package/dist/utils/agent-discovery.js +108 -0
- package/dist/utils/agent-discovery.js.map +1 -0
- package/dist/utils/agent-runner.d.ts +22 -0
- package/dist/utils/agent-runner.d.ts.map +1 -0
- package/dist/utils/agent-runner.js +120 -0
- package/dist/utils/agent-runner.js.map +1 -0
- package/dist/utils/command-error.d.ts +19 -0
- package/dist/utils/command-error.d.ts.map +1 -0
- package/dist/utils/command-error.js +36 -0
- package/dist/utils/command-error.js.map +1 -0
- package/dist/utils/config-loader.d.ts +12 -0
- package/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/utils/config-loader.js +39 -0
- package/dist/utils/config-loader.js.map +1 -0
- package/dist/utils/help-loader.d.ts +12 -0
- package/dist/utils/help-loader.d.ts.map +1 -0
- package/dist/utils/help-loader.js +39 -0
- package/dist/utils/help-loader.js.map +1 -0
- package/dist/utils/logger.d.ts +14 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +21 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/output.d.ts +20 -0
- package/dist/utils/output.d.ts.map +1 -0
- package/dist/utils/output.js +40 -0
- package/dist/utils/output.js.map +1 -0
- package/dist/utils/project-root.d.ts +11 -0
- package/dist/utils/project-root.d.ts.map +1 -0
- package/dist/utils/project-root.js +35 -0
- package/dist/utils/project-root.js.map +1 -0
- package/dist/utils/resource-loader.d.ts +30 -0
- package/dist/utils/resource-loader.d.ts.map +1 -0
- package/dist/utils/resource-loader.js +63 -0
- package/dist/utils/resource-loader.js.map +1 -0
- package/dist/utils/scope-locations.d.ts +17 -0
- package/dist/utils/scope-locations.d.ts.map +1 -0
- package/dist/utils/scope-locations.js +40 -0
- package/dist/utils/scope-locations.js.map +1 -0
- package/dist/utils/validate-help-files.d.ts +14 -0
- package/dist/utils/validate-help-files.d.ts.map +1 -0
- package/dist/utils/validate-help-files.js +61 -0
- package/dist/utils/validate-help-files.js.map +1 -0
- package/dist/version.d.ts +13 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +27 -0
- package/dist/version.js.map +1 -0
- package/docs/agent.md +100 -0
- package/docs/index.md +309 -0
- package/docs/rag.md +449 -0
- package/docs/resources.md +158 -0
- package/package.json +68 -0
package/docs/index.md
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
# vat - Vibe Agent Toolkit CLI
|
|
2
|
+
|
|
3
|
+
> Agent-friendly toolkit for building, testing, and deploying portable AI agents
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
vat [options] <command>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
|
|
13
|
+
### `resources validate`
|
|
14
|
+
|
|
15
|
+
Markdown resource scanning and link validation (run before commit)
|
|
16
|
+
|
|
17
|
+
**What it does:**
|
|
18
|
+
|
|
19
|
+
1. Scans markdown files for links and anchors
|
|
20
|
+
2. Validates internal file links (relative paths)
|
|
21
|
+
3. Validates anchor links within files (#heading)
|
|
22
|
+
4. Validates cross-file anchor links (file.md#heading)
|
|
23
|
+
5. Reports broken links to stderr
|
|
24
|
+
|
|
25
|
+
**When to use:** Before committing changes that touch markdown files
|
|
26
|
+
|
|
27
|
+
**Exit codes:**
|
|
28
|
+
|
|
29
|
+
- `0` - All links valid
|
|
30
|
+
- `1` - Broken links found (see stderr for details)
|
|
31
|
+
- `2` - System error (invalid config, directory not found)
|
|
32
|
+
|
|
33
|
+
**Creates/modifies:** None (read-only validation)
|
|
34
|
+
|
|
35
|
+
**Examples:**
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
vat resources validate docs/ # Validate docs directory
|
|
39
|
+
vat resources validate # Use config patterns
|
|
40
|
+
vat resources validate --debug # Show detailed progress
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
### `resources scan`
|
|
46
|
+
|
|
47
|
+
Discover markdown resources in directory and report statistics
|
|
48
|
+
|
|
49
|
+
**What it does:**
|
|
50
|
+
|
|
51
|
+
1. Recursively finds markdown files
|
|
52
|
+
2. Counts links and anchors
|
|
53
|
+
3. Outputs statistics as YAML to stdout
|
|
54
|
+
|
|
55
|
+
**When to use:** Understanding markdown structure before processing
|
|
56
|
+
|
|
57
|
+
**Exit codes:**
|
|
58
|
+
|
|
59
|
+
- `0` - Scan completed successfully
|
|
60
|
+
|
|
61
|
+
**Creates/modifies:** None (read-only scan)
|
|
62
|
+
|
|
63
|
+
**Output format:** YAML to stdout
|
|
64
|
+
|
|
65
|
+
```yaml
|
|
66
|
+
status: success
|
|
67
|
+
filesScanned: 42
|
|
68
|
+
linksFound: 156
|
|
69
|
+
anchorsFound: 89
|
|
70
|
+
duration: 234
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Examples:**
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
vat resources scan . # Scan current directory
|
|
77
|
+
vat resources scan docs/ # Scan specific directory
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### `agent build`
|
|
83
|
+
|
|
84
|
+
Build agent for deployment to target runtime
|
|
85
|
+
|
|
86
|
+
**What it does:**
|
|
87
|
+
|
|
88
|
+
1. Resolves agent dependencies
|
|
89
|
+
2. Bundles agent code for target runtime
|
|
90
|
+
3. Generates runtime-specific manifest
|
|
91
|
+
4. Creates deployment artifacts
|
|
92
|
+
|
|
93
|
+
**When to use:** Preparing agent for production deployment
|
|
94
|
+
|
|
95
|
+
**Exit codes:**
|
|
96
|
+
|
|
97
|
+
- `0` - Build succeeded
|
|
98
|
+
- `1` - Build failed (see stderr for details)
|
|
99
|
+
- `2` - Configuration error
|
|
100
|
+
|
|
101
|
+
**Creates/modifies:**
|
|
102
|
+
|
|
103
|
+
- `dist/vat-bundles/{target}/` - Bundled agent artifacts
|
|
104
|
+
- Runtime-specific manifest files
|
|
105
|
+
|
|
106
|
+
**Examples:**
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
vat agent build ./my-agent # Build for default target
|
|
110
|
+
vat agent build ./my-agent --target claude-skills
|
|
111
|
+
vat agent build ./my-agent --output ./dist
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### `agent run`
|
|
117
|
+
|
|
118
|
+
Execute agent locally for testing
|
|
119
|
+
|
|
120
|
+
**What it does:**
|
|
121
|
+
|
|
122
|
+
1. Loads agent from path
|
|
123
|
+
2. Executes agent with provided input
|
|
124
|
+
3. Outputs agent results
|
|
125
|
+
|
|
126
|
+
**When to use:** Testing agent behavior before deployment
|
|
127
|
+
|
|
128
|
+
**Exit codes:**
|
|
129
|
+
|
|
130
|
+
- `0` - Execution succeeded
|
|
131
|
+
- `1` - Execution failed
|
|
132
|
+
|
|
133
|
+
**Creates/modifies:** Depends on agent behavior
|
|
134
|
+
|
|
135
|
+
**Examples:**
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
vat agent run ./my-agent --input "test query"
|
|
139
|
+
vat agent run ./my-agent --debug
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
### `rag index`
|
|
145
|
+
|
|
146
|
+
Create vector embeddings for semantic search over documentation
|
|
147
|
+
|
|
148
|
+
**What it does:**
|
|
149
|
+
|
|
150
|
+
1. Scans markdown files in specified path
|
|
151
|
+
2. Chunks documents for embedding
|
|
152
|
+
3. Generates vector embeddings
|
|
153
|
+
4. Stores in vector database for fast retrieval
|
|
154
|
+
|
|
155
|
+
**When to use:** Setting up semantic search capabilities
|
|
156
|
+
|
|
157
|
+
**Exit codes:**
|
|
158
|
+
|
|
159
|
+
- `0` - Indexing succeeded
|
|
160
|
+
- `1` - Indexing failed
|
|
161
|
+
|
|
162
|
+
**Creates/modifies:**
|
|
163
|
+
|
|
164
|
+
- Vector database files for semantic search
|
|
165
|
+
- Index metadata
|
|
166
|
+
|
|
167
|
+
**Examples:**
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
vat rag index docs/ # Index documentation
|
|
171
|
+
vat rag index docs/ --chunk-size 512
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
### `rag search`
|
|
177
|
+
|
|
178
|
+
Search indexed documentation semantically
|
|
179
|
+
|
|
180
|
+
**What it does:**
|
|
181
|
+
|
|
182
|
+
1. Queries vector database by semantic meaning
|
|
183
|
+
2. Returns ranked results by similarity
|
|
184
|
+
3. Outputs results to stdout
|
|
185
|
+
|
|
186
|
+
**When to use:** Finding relevant documentation by meaning (not keywords)
|
|
187
|
+
|
|
188
|
+
**Exit codes:**
|
|
189
|
+
|
|
190
|
+
- `0` - Search succeeded
|
|
191
|
+
- `1` - Search failed (no index, query error)
|
|
192
|
+
|
|
193
|
+
**Creates/modifies:** None (read-only query)
|
|
194
|
+
|
|
195
|
+
**Examples:**
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
vat rag search "how to validate markdown links"
|
|
199
|
+
vat rag search "agent deployment" --limit 5
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## Global Options
|
|
205
|
+
|
|
206
|
+
- `--version` - Show version number (with `-dev` suffix when running from development repo)
|
|
207
|
+
- `--help` - Show help for any command
|
|
208
|
+
- `--help --verbose` - Show comprehensive help (this output)
|
|
209
|
+
- `--debug` - Enable debug logging
|
|
210
|
+
|
|
211
|
+
## Environment Variables
|
|
212
|
+
|
|
213
|
+
### VAT_DEBUG
|
|
214
|
+
Enable detailed wrapper diagnostics showing context detection and resolution:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
VAT_DEBUG=1 vat --version
|
|
218
|
+
# Output includes:
|
|
219
|
+
# - Current working directory
|
|
220
|
+
# - Detected project root
|
|
221
|
+
# - Context (dev/local/global)
|
|
222
|
+
# - Binary path being used
|
|
223
|
+
# - Version information
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### VAT_ROOT_DIR
|
|
227
|
+
Override automatic context detection to force dev mode:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
VAT_ROOT_DIR=/path/to/vibe-agent-toolkit vat --version
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## Context Detection
|
|
234
|
+
|
|
235
|
+
The `vat` wrapper automatically detects your execution context:
|
|
236
|
+
|
|
237
|
+
**Dev mode** - Running from within vibe-agent-toolkit repository:
|
|
238
|
+
- Shows version with `-dev` suffix: `0.1.0-rc.9-dev (/path/to/repo)`
|
|
239
|
+
- Uses development build directly (no packaging)
|
|
240
|
+
- Works from any subdirectory within the repo
|
|
241
|
+
|
|
242
|
+
**Local install** - Project has vibe-agent-toolkit in node_modules:
|
|
243
|
+
- Uses locally installed version
|
|
244
|
+
- Shown in version output: `0.1.0-rc.9 (local: /path/to/project)`
|
|
245
|
+
|
|
246
|
+
**Global install** - Fallback when no local install found:
|
|
247
|
+
- Uses globally installed version
|
|
248
|
+
- Shows clean version: `0.1.0-rc.9`
|
|
249
|
+
|
|
250
|
+
When running global `vat` from within the toolkit repository, it automatically
|
|
251
|
+
switches to dev mode and shows the `-dev` suffix.
|
|
252
|
+
|
|
253
|
+
## Configuration
|
|
254
|
+
|
|
255
|
+
Place `vibe-agent-toolkit.config.yaml` at project root:
|
|
256
|
+
|
|
257
|
+
```yaml
|
|
258
|
+
version: 1
|
|
259
|
+
resources:
|
|
260
|
+
include:
|
|
261
|
+
- "docs/**/*.md"
|
|
262
|
+
- "README.md"
|
|
263
|
+
exclude:
|
|
264
|
+
- "node_modules/**"
|
|
265
|
+
- "**/archive/**"
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
## Exit Code Summary
|
|
269
|
+
|
|
270
|
+
- `0` - Success (validation passed, scan completed, build succeeded)
|
|
271
|
+
- `1` - Expected failures (validation errors, broken links, build failures)
|
|
272
|
+
- `2` - System errors (invalid config, directory not found, missing dependencies)
|
|
273
|
+
|
|
274
|
+
## Output Formats
|
|
275
|
+
|
|
276
|
+
**Structured output (YAML)** - Commands like `scan` output YAML to stdout for parsing:
|
|
277
|
+
```bash
|
|
278
|
+
vat resources scan . | yq '.filesScanned'
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**Error output (stderr)** - Validation errors use test format:
|
|
282
|
+
```
|
|
283
|
+
file:line:col: severity: message
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
## Common Workflows
|
|
287
|
+
|
|
288
|
+
**Before committing documentation:**
|
|
289
|
+
```bash
|
|
290
|
+
vat resources validate docs/ && git commit -m "Update docs"
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
**Building and testing agent:**
|
|
294
|
+
```bash
|
|
295
|
+
vat agent build ./my-agent
|
|
296
|
+
vat agent run ./my-agent --input "test"
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
**Setting up semantic search:**
|
|
300
|
+
```bash
|
|
301
|
+
vat rag index docs/
|
|
302
|
+
vat rag search "markdown validation"
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
## More Information
|
|
306
|
+
|
|
307
|
+
- **Agent guidance:** `docs/cli/CLAUDE.md` (strategic patterns for AI agents)
|
|
308
|
+
- **Documentation:** https://github.com/jdutton/vibe-agent-toolkit
|
|
309
|
+
- **Issues:** https://github.com/jdutton/vibe-agent-toolkit/issues
|