@vibecodr/cli 0.2.10 → 1.0.0-rc.0
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/CHANGELOG.md +53 -18
- package/MIGRATION.md +73 -0
- package/README.md +89 -72
- package/dist/auth/official-client.d.ts +6 -0
- package/dist/auth/official-client.d.ts.map +1 -0
- package/dist/auth/official-client.js +1 -0
- package/dist/auth/official-client.js.map +1 -0
- package/dist/auth/token-manager.d.ts +40 -0
- package/dist/auth/token-manager.d.ts.map +1 -0
- package/dist/auth/token-manager.js +1 -2
- package/dist/auth/token-manager.js.map +1 -0
- package/dist/bin/vc-tools.d.ts +3 -0
- package/dist/bin/vc-tools.d.ts.map +1 -0
- package/dist/bin/vc-tools.js +7 -0
- package/dist/bin/vc-tools.js.map +1 -0
- package/dist/bin/vibecodr-mcp.d.ts +3 -0
- package/dist/bin/vibecodr-mcp.d.ts.map +1 -0
- package/dist/bin/vibecodr-mcp.js +37 -0
- package/dist/bin/vibecodr-mcp.js.map +1 -0
- package/dist/cli/errors.d.ts +28 -0
- package/dist/cli/errors.d.ts.map +1 -0
- package/dist/cli/errors.js +1 -0
- package/dist/cli/errors.js.map +1 -0
- package/dist/cli/output.d.ts +16 -0
- package/dist/cli/output.d.ts.map +1 -0
- package/dist/cli/output.js +1 -0
- package/dist/cli/output.js.map +1 -0
- package/dist/cli/parse.d.ts +18 -0
- package/dist/cli/parse.d.ts.map +1 -0
- package/dist/cli/parse.js +1 -0
- package/dist/cli/parse.js.map +1 -0
- package/dist/clients/base.d.ts +20 -0
- package/dist/clients/base.d.ts.map +1 -0
- package/dist/clients/base.js +1 -0
- package/dist/clients/base.js.map +1 -0
- package/dist/clients/claude-code.d.ts +5 -0
- package/dist/clients/claude-code.d.ts.map +1 -0
- package/dist/clients/claude-code.js +88 -0
- package/dist/clients/claude-code.js.map +1 -0
- package/dist/clients/claude-desktop.d.ts +5 -0
- package/dist/clients/claude-desktop.d.ts.map +1 -0
- package/dist/clients/claude-desktop.js +97 -0
- package/dist/clients/claude-desktop.js.map +1 -0
- package/dist/clients/codex.d.ts +5 -0
- package/dist/clients/codex.d.ts.map +1 -0
- package/dist/clients/codex.js +1 -0
- package/dist/clients/codex.js.map +1 -0
- package/dist/clients/cursor.d.ts +5 -0
- package/dist/clients/cursor.d.ts.map +1 -0
- package/dist/clients/cursor.js +1 -1
- package/dist/clients/cursor.js.map +1 -0
- package/dist/clients/vscode.d.ts +5 -0
- package/dist/clients/vscode.d.ts.map +1 -0
- package/dist/clients/vscode.js +5 -1
- package/dist/clients/vscode.js.map +1 -0
- package/dist/clients/windsurf.d.ts +5 -0
- package/dist/clients/windsurf.d.ts.map +1 -0
- package/dist/clients/windsurf.js +1 -0
- package/dist/clients/windsurf.js.map +1 -0
- package/dist/commands/call.d.ts +9 -0
- package/dist/commands/call.d.ts.map +1 -0
- package/dist/commands/call.js +1 -0
- package/dist/commands/call.js.map +1 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +1 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/context.d.ts +15 -0
- package/dist/commands/context.d.ts.map +1 -0
- package/dist/commands/context.js +2 -5
- package/dist/commands/context.js.map +1 -0
- package/dist/commands/doctor.d.ts +3 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +2 -1
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/help.d.ts +3 -0
- package/dist/commands/help.d.ts.map +1 -0
- package/dist/commands/help.js +1 -0
- package/dist/commands/help.js.map +1 -0
- package/dist/commands/install.d.ts +3 -0
- package/dist/commands/install.d.ts.map +1 -0
- package/dist/commands/install.js +23 -5
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/login.d.ts +3 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +1 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +3 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +1 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/pulse-publish.d.ts +3 -0
- package/dist/commands/pulse-publish.d.ts.map +1 -0
- package/dist/commands/pulse-publish.js +1 -0
- package/dist/commands/pulse-publish.js.map +1 -0
- package/dist/commands/pulse-setup.d.ts +3 -0
- package/dist/commands/pulse-setup.d.ts.map +1 -0
- package/dist/commands/pulse-setup.js +5 -3
- package/dist/commands/pulse-setup.js.map +1 -0
- package/dist/commands/pulse.d.ts +3 -0
- package/dist/commands/pulse.d.ts.map +1 -0
- package/dist/commands/pulse.js +1 -0
- package/dist/commands/pulse.js.map +1 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +1 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/tools.d.ts +3 -0
- package/dist/commands/tools.d.ts.map +1 -0
- package/dist/commands/tools.js +1 -0
- package/dist/commands/tools.js.map +1 -0
- package/dist/commands/uninstall.d.ts +3 -0
- package/dist/commands/uninstall.d.ts.map +1 -0
- package/dist/commands/uninstall.js +12 -4
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/commands/upload.d.ts +3 -0
- package/dist/commands/upload.d.ts.map +1 -0
- package/dist/commands/upload.js +1 -0
- package/dist/commands/upload.js.map +1 -0
- package/dist/commands/whoami.d.ts +3 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +82 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/core/interactive-input.d.ts +7 -0
- package/dist/core/interactive-input.d.ts.map +1 -0
- package/dist/core/interactive-input.js +1 -0
- package/dist/core/interactive-input.js.map +1 -0
- package/dist/core/mcp-client.d.ts +17 -0
- package/dist/core/mcp-client.d.ts.map +1 -0
- package/dist/core/mcp-client.js +1 -0
- package/dist/core/mcp-client.js.map +1 -0
- package/dist/core/redaction.d.ts +2 -0
- package/dist/core/redaction.d.ts.map +1 -0
- package/dist/core/redaction.js +36 -2
- package/dist/core/redaction.js.map +1 -0
- package/dist/core/renderers.d.ts +8 -0
- package/dist/core/renderers.d.ts.map +1 -0
- package/dist/core/renderers.js +1 -0
- package/dist/core/renderers.js.map +1 -0
- package/dist/doctor/run.d.ts +10 -0
- package/dist/doctor/run.d.ts.map +1 -0
- package/dist/doctor/run.js +12 -3
- package/dist/doctor/run.js.map +1 -0
- package/dist/legacy/cli/errors.d.ts +9 -0
- package/dist/legacy/cli/errors.d.ts.map +1 -0
- package/dist/legacy/cli/errors.js +23 -0
- package/dist/legacy/cli/errors.js.map +1 -0
- package/dist/legacy/cli/install.d.ts +24 -0
- package/dist/legacy/cli/install.d.ts.map +1 -0
- package/dist/legacy/cli/install.js +307 -0
- package/dist/legacy/cli/install.js.map +1 -0
- package/dist/legacy/cli/output.d.ts +17 -0
- package/dist/legacy/cli/output.d.ts.map +1 -0
- package/dist/legacy/cli/output.js +36 -0
- package/dist/legacy/cli/output.js.map +1 -0
- package/dist/legacy/cli/parser.d.ts +33 -0
- package/dist/legacy/cli/parser.d.ts.map +1 -0
- package/dist/legacy/cli/parser.js +177 -0
- package/dist/legacy/cli/parser.js.map +1 -0
- package/dist/legacy/cli/run.d.ts +11 -0
- package/dist/legacy/cli/run.d.ts.map +1 -0
- package/dist/legacy/cli/run.js +2947 -0
- package/dist/legacy/cli/run.js.map +1 -0
- package/dist/legacy/config/credential-store.d.ts +8 -0
- package/dist/legacy/config/credential-store.d.ts.map +1 -0
- package/dist/legacy/config/credential-store.js +52 -0
- package/dist/legacy/config/credential-store.js.map +1 -0
- package/dist/legacy/config/store.d.ts +63 -0
- package/dist/legacy/config/store.d.ts.map +1 -0
- package/dist/legacy/config/store.js +311 -0
- package/dist/legacy/config/store.js.map +1 -0
- package/dist/legacy/core/api-client.d.ts +45 -0
- package/dist/legacy/core/api-client.d.ts.map +1 -0
- package/dist/legacy/core/api-client.js +204 -0
- package/dist/legacy/core/api-client.js.map +1 -0
- package/dist/legacy/core/contracts.d.ts +488 -0
- package/dist/legacy/core/contracts.d.ts.map +1 -0
- package/dist/legacy/core/contracts.js +386 -0
- package/dist/legacy/core/contracts.js.map +1 -0
- package/dist/legacy/core/goal-coverage.d.ts +15 -0
- package/dist/legacy/core/goal-coverage.d.ts.map +1 -0
- package/dist/legacy/core/goal-coverage.js +169 -0
- package/dist/legacy/core/goal-coverage.js.map +1 -0
- package/dist/legacy/core/redaction.d.ts +4 -0
- package/dist/legacy/core/redaction.d.ts.map +1 -0
- package/dist/legacy/core/redaction.js +121 -0
- package/dist/legacy/core/redaction.js.map +1 -0
- package/dist/legacy/core/validators.d.ts +8 -0
- package/dist/legacy/core/validators.d.ts.map +1 -0
- package/dist/legacy/core/validators.js +102 -0
- package/dist/legacy/core/validators.js.map +1 -0
- package/dist/legacy/core/version.d.ts +3 -0
- package/dist/legacy/core/version.d.ts.map +1 -0
- package/dist/legacy/core/version.js +3 -0
- package/dist/legacy/core/version.js.map +1 -0
- package/dist/legacy/index.d.ts +8 -0
- package/dist/legacy/index.d.ts.map +1 -0
- package/dist/legacy/index.js +8 -0
- package/dist/legacy/index.js.map +1 -0
- package/dist/platform/browser.d.ts +7 -0
- package/dist/platform/browser.d.ts.map +1 -0
- package/dist/platform/browser.js +1 -0
- package/dist/platform/browser.js.map +1 -0
- package/dist/platform/exec.d.ts +3 -0
- package/dist/platform/exec.d.ts.map +1 -0
- package/dist/platform/exec.js +10 -1
- package/dist/platform/exec.js.map +1 -0
- package/dist/platform/paths.d.ts +9 -0
- package/dist/platform/paths.d.ts.map +1 -0
- package/dist/platform/paths.js +13 -0
- package/dist/platform/paths.js.map +1 -0
- package/dist/platform/prompt.d.ts +5 -0
- package/dist/platform/prompt.d.ts.map +1 -0
- package/dist/platform/prompt.js +1 -0
- package/dist/platform/prompt.js.map +1 -0
- package/dist/storage/config-store.d.ts +15 -0
- package/dist/storage/config-store.d.ts.map +1 -0
- package/dist/storage/config-store.js +1 -0
- package/dist/storage/config-store.js.map +1 -0
- package/dist/storage/file-lock.d.ts +7 -0
- package/dist/storage/file-lock.d.ts.map +1 -0
- package/dist/storage/file-lock.js +1 -0
- package/dist/storage/file-lock.js.map +1 -0
- package/dist/storage/install-manifest.d.ts +12 -0
- package/dist/storage/install-manifest.d.ts.map +1 -0
- package/dist/storage/install-manifest.js +1 -0
- package/dist/storage/install-manifest.js.map +1 -0
- package/dist/storage/secret-store.d.ts +36 -0
- package/dist/storage/secret-store.d.ts.map +1 -0
- package/dist/storage/secret-store.js +1 -0
- package/dist/storage/secret-store.js.map +1 -0
- package/dist/types/auth.d.ts +55 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/auth.js +1 -0
- package/dist/types/auth.js.map +1 -0
- package/dist/types/config.d.ts +29 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +1 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/install.d.ts +26 -0
- package/dist/types/install.d.ts.map +1 -0
- package/dist/types/install.js +1 -0
- package/dist/types/install.js.map +1 -0
- package/docs/API-CONTRACT.md +606 -0
- package/docs/CLOUDFLARE-PRIMITIVE-FIT.md +212 -0
- package/docs/RELEASE-CHECKLIST.md +297 -0
- package/docs/SECURITY.md +227 -0
- package/docs/VALIDATION-MATRIX.md +58 -0
- package/docs/commands.md +49 -29
- package/docs/legacy/AGENT-TOOLKIT-RFC.md +1395 -0
- package/docs/legacy/CLI-GUIDELINES-AUDIT.md +95 -0
- package/docs/legacy/COMPLETION-AUDIT.md +542 -0
- package/docs/legacy/vc-tools-finetune.md +982 -0
- package/docs/legacy/vc-tools-goal-browser-run-containers.md +465 -0
- package/docs/legacy/vc-tools-goal-original.md +249 -0
- package/package.json +37 -8
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# vc-tools CLI Guidelines Audit
|
|
2
|
+
|
|
3
|
+
Source: https://clig.dev/
|
|
4
|
+
|
|
5
|
+
This audit maps `vc-tools` against the Command Line Interface Guidelines. The
|
|
6
|
+
goal is not to copy every nice-to-have literally; it is to make the standalone
|
|
7
|
+
`vc-tools` binary a good CLI citizen while preserving the Vibecodr Tools Cloud
|
|
8
|
+
trust boundary.
|
|
9
|
+
|
|
10
|
+
## Current Verdict
|
|
11
|
+
|
|
12
|
+
`vc-tools` satisfies the applicable CLI Guidelines release bar for a hosted
|
|
13
|
+
Agent Computer CLI:
|
|
14
|
+
|
|
15
|
+
- human-readable output by default
|
|
16
|
+
- stable `--json` output for automation
|
|
17
|
+
- success output on stdout and errors/warnings on stderr
|
|
18
|
+
- zero exit on success and non-zero exit by failure class
|
|
19
|
+
- `-h`, `--help`, `help <command>`, and `<command> --help`
|
|
20
|
+
- examples, docs link, and support link in top-level help
|
|
21
|
+
- agent-first top-level nouns: `start`, `agent`, `computer`, `browser`, `work`,
|
|
22
|
+
`proof`, `usage`, and `doctor`
|
|
23
|
+
- command and subcommand typo suggestions
|
|
24
|
+
- explicit mutating confirmations with `--yes`
|
|
25
|
+
- no local execution for sandbox commands
|
|
26
|
+
- local validation before cost-bearing hosted calls
|
|
27
|
+
- native credential store by default
|
|
28
|
+
- browser/device approval through `vc-tools start`/`login` without raw-token
|
|
29
|
+
copy/paste
|
|
30
|
+
- file/stdin credential inputs for secret-bearing login paths
|
|
31
|
+
- `--quiet`, `--no-input`, and `--no-color` convention flags
|
|
32
|
+
- no telemetry or analytics collection in the CLI package
|
|
33
|
+
|
|
34
|
+
## Compliance Matrix
|
|
35
|
+
|
|
36
|
+
| clig.dev area | vc-tools implementation | Evidence |
|
|
37
|
+
| --- | --- | --- |
|
|
38
|
+
| Basics: parse args consistently | Small explicit parser with tested global flags and command flags | `src/cli/parser.ts`, `test/cli.behavior.test.ts` |
|
|
39
|
+
| Basics: stdout/stderr | Results go to stdout; warnings and errors go to stderr | `src/cli/output.ts` |
|
|
40
|
+
| Basics: exit codes | `CliError` maps input/auth/confirm/file/upstream failures to non-zero exit codes | `src/cli/errors.ts` |
|
|
41
|
+
| Help | Top-level help plus `help <command>` and `<command> --help`; examples lead the page | `src/cli/run.ts`, `test/cli.behavior.test.ts` |
|
|
42
|
+
| Documentation | Help links to the web page and support path; repo docs cover security, release, API contract, and validation | `README.md`, `docs/*` |
|
|
43
|
+
| Output | Human success output includes redacted payload data whenever a command returns data, with command-family coverage for every successful data-returning path; stable pretty JSON remains available with `--json`, and `--quiet` remains available for scripts | `src/cli/output.ts`, `test/output.test.ts`, `test/cli.behavior.test.ts` |
|
|
44
|
+
| Errors | Expected failures are rewritten as `CliError` messages with stable codes and redaction | `src/cli/errors.ts`, `src/core/redaction.ts` |
|
|
45
|
+
| Arguments and flags | Full-length flags exist; short flags are reserved for `-h` and `-q`; mutations use `--yes` | `src/cli/parser.ts`, `src/cli/run.ts` |
|
|
46
|
+
| Secret-bearing inputs | Preferred inputs are `--credential-file`, `--credential-stdin`, `VC_TOOLS_CREDENTIAL_FILE`, and native credential storage | `src/cli/run.ts`, `docs/SECURITY.md` |
|
|
47
|
+
| Interactivity | Plain `vc-tools start` opens or prints a browser approval URL and code when needed; `--no-input` refuses that path for automation; `--*-stdin` refuses interactive TTY reads | `src/cli/run.ts` |
|
|
48
|
+
| Subcommands | Primary noun/verb families are agent-shaped: `computer run`, `browser screenshot`, `work follow`, `proof save`; advanced aliases remain for `jobs`, `artifacts`, and `tools test` | `src/cli/run.ts` |
|
|
49
|
+
| Robustness | Network requests have timeouts; user input is validated before hosted work; unsafe URLs and file escapes fail early | `src/core/api-client.ts`, `src/core/validators.ts`, `src/cli/run.ts` |
|
|
50
|
+
| Future-proofing | No catch-all subcommand or implicit abbreviation support; suggestions do not execute inferred commands | `src/cli/run.ts` |
|
|
51
|
+
| Signals | The CLI does not wrap long-lived local processes. Hosted jobs are durable and cancelable with explicit commands | `src/cli/run.ts`, `docs/API-CONTRACT.md` |
|
|
52
|
+
| Configuration | Flags and `VC_TOOLS_*` env override stored account credential/config; default config path follows platform conventions; config-directory isolation is advanced-only copy | `src/config/store.ts` |
|
|
53
|
+
| Environment variables | Env names are uppercase `VC_TOOLS_*`; secret-value env vars are compatibility paths and docs prefer file vars | `README.md`, `docs/SECURITY.md` |
|
|
54
|
+
| Naming | Binary is short, lowercase, dash-separated, and distinct from `vibecodr` | `package.json`, `AGENTS.md` |
|
|
55
|
+
| Distribution | npm package exposes one binary, explicit root exports, CLI-only runtime dependencies, and package artifact checks guard the published file set | `package.json`, `scripts/check-pack-artifact.mjs` |
|
|
56
|
+
| Analytics | The CLI does not phone home for usage/crash telemetry; only user-invoked hosted API calls are made | `src/cli/run.ts`, `docs/SECURITY.md` |
|
|
57
|
+
|
|
58
|
+
## Deliberate Compatibility Notes
|
|
59
|
+
|
|
60
|
+
Direct secret value inputs (`--credential`, `--token`,
|
|
61
|
+
`VC_TOOLS_CREDENTIAL`, `VC_TOOLS_TOKEN`) remain accepted for controlled
|
|
62
|
+
automation. They are not promoted in the primary help examples because
|
|
63
|
+
command-line arguments and secret-value environment variables can leak through
|
|
64
|
+
shell history, process inspection, debug logs, and CI metadata. New user-facing
|
|
65
|
+
docs should prefer `vc-tools start` for connection and generic file/stdin/native
|
|
66
|
+
credential storage for agents and automation.
|
|
67
|
+
|
|
68
|
+
`vc-tools` currently emits no ANSI color by default. `--no-color`, `NO_COLOR`,
|
|
69
|
+
and `TERM=dumb` are therefore compatibility controls rather than active color
|
|
70
|
+
switches.
|
|
71
|
+
|
|
72
|
+
`vc-tools` does not implement a pager. The current output is intentionally short
|
|
73
|
+
except JSON/inspection payloads, and JSON is the supported automation surface.
|
|
74
|
+
|
|
75
|
+
## Local Validation
|
|
76
|
+
|
|
77
|
+
The CLI Guidelines evidence is covered by the normal child-repo verification
|
|
78
|
+
gate:
|
|
79
|
+
|
|
80
|
+
```powershell
|
|
81
|
+
npm run check
|
|
82
|
+
npm test
|
|
83
|
+
npm run build
|
|
84
|
+
npm run verify
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Focused smoke commands:
|
|
88
|
+
|
|
89
|
+
```powershell
|
|
90
|
+
node dist/bin/vc-tools.js --help
|
|
91
|
+
node dist/bin/vc-tools.js help computer
|
|
92
|
+
node dist/bin/vc-tools.js help browser
|
|
93
|
+
node dist/bin/vc-tools.js --quiet usage
|
|
94
|
+
node dist/bin/vc-tools.js --json plans
|
|
95
|
+
```
|