@vibecodr/cli 1.0.13 → 1.0.15
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 +9 -1
- package/README.md +7 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +28 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/dryrun-logpush-check/README.md +1 -0
- package/dist/dryrun-logpush-check/worker.js +41512 -0
- package/dist/dryrun-logpush-check/worker.js.map +8 -0
- package/dist/legacy/cli/run.d.ts.map +1 -1
- package/dist/legacy/cli/run.js +420 -22
- package/dist/legacy/cli/run.js.map +1 -1
- package/dist/legacy/core/contracts.d.ts +76 -4
- package/dist/legacy/core/contracts.d.ts.map +1 -1
- package/dist/legacy/core/contracts.js +54 -3
- package/dist/legacy/core/contracts.js.map +1 -1
- package/dist/legacy/core/validators.js +1 -1
- package/dist/legacy/core/validators.js.map +1 -1
- package/dist/legacy/core/version.d.ts +2 -2
- package/dist/legacy/core/version.js +1 -1
- package/docs/API-CONTRACT.md +76 -10
- package/docs/CLOUDFLARE-PRIMITIVE-FIT.md +59 -4
- package/docs/VALIDATION-MATRIX.md +3 -3
- package/docs/commands.md +15 -2
- package/docs/legacy/COMPLETION-AUDIT.md +3 -3
- package/docs/legacy/vc-tools-finetune.md +1 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ artifacts and tests.
|
|
|
11
11
|
| CLI login and auth diagnostics | `vibecodr login`, `vibecodr auth status`, `vibecodr auth diagnose`, `vibecodr auth export-agent-env`, safe generic credential file/stdin forms | tests verify browser/device auth starts when no credential is provided, `start` recovers from unreadable stored approval state by opening the normal browser login path, cost-bearing browser commands treat unreadable stored approval as missing auth instead of failing on credential storage shape, the private device code is never printed or stored, approval metadata points to `/settings/vc-tools/approve`, `--no-input` refuses interactive login without network calls, direct token grant caching, generic credential classification for Clerk OAuth/API-key exchange through Vibecodr Auth, durable API-key/OAuth local storage, expired grant refresh from stored API keys, file/stdin credential paths, one-off env credential auth without persistence, status reporting for active credential sources without exposing internal profiles, ambiguous credential denial, redaction, optional API verification, explicit file-store test mode, friendly expired-login errors, isolated config warnings, strict-permission agent credential-file export without printing the secret, and no stored-token forwarding to insecure local API URLs unless explicitly allowed |
|
|
12
12
|
| Remote agent connection setup | `vibecodr agent connect`, advanced `vibecodr connect` | tests verify Streamable HTTP metadata, agent-native tool names, no token leakage, and refusal to write bare named-client configs for `tools.vibecodr.space/mcp` until a supported `vc_tools` client auth flow is proven |
|
|
13
13
|
| Remote MCP tool server | `/mcp` in `src/hosted/worker.ts` | tests verify protected-resource discovery, Bearer `WWW-Authenticate` challenge metadata, MCP `initialize`, `tools/list`, and `tools/call` JSON-RPC contract flow with agent-native `browser.*`, `computer.*`, `work.*`, `proof.*`, and `usage.status` tool names mapped to hosted canonical capabilities |
|
|
14
|
-
| Browser render/screenshot/markdown/PDF tests, crawl, snapshot,
|
|
14
|
+
| Browser render/screenshot/markdown/PDF tests, crawl, snapshot, paid agent tasks, and live Agent Browser sessions | `vibecodr browser *`, `vibecodr browser session *`, advanced `vibecodr tools test browser.*`, `/v1/browser/sessions`, MCP `browser.session.*` tools | tests verify capability aliases including `browser.snapshot`, canonical browser/crawl/session payloads, default submit/wait behavior, artifact handles and ready-to-run proof commands in completed output, `--local` default proof saving, `--out` destination proof saving, Creator `browser.agent_task` acceptance up to 20 minutes, Pro acceptance up to 1 hour, Free denial, Quick Actions staying short, real Agent Browser open/observe/action/close behavior through Cloudflare Browser Run session reuse, fresh screenshot proof on observe/action, token-gated human auth handoff URLs into the main Vibecodr route when configured, token-gated Worker JSON for that route, handoff completion/revocation state, paused agent controls during human control, provider session/token redaction from normal job/API output, browser-minute usage on close, HTTPS-only validation, localhost/private/internal denial with safe-next-action messaging, URL credential denial, direct cookie/header/storage-state auth material denial, IPv4/IPv6 private, link-local, mapped, NAT64, and 6to4 denial, hosted unsafe redirect-chain denial before cost-bearing dispatch, and Workflow dispatch for paid browser agent tasks |
|
|
15
15
|
| Agent Computer run/tests | `vibecodr computer run/test`, advanced `vibecodr tools test sandbox.*`, hosted Sandbox SDK queue execution | tests verify no local shell execution, bounded command payload, default submit/wait behavior, artifact handles and ready-to-run proof commands in completed output, `--local` default proof saving, `--out` destination proof saving, public HTTP(S) package/docs egress by default for paid Agent Computer jobs, explicit `--network public`/`--network off` payloads, no private-network opt-in flag, no per-command host allowlist requirement, Cloudflare host policy plus hosted outbound handler denial for private/local/internal destinations and private-resolving DNS, per-command Sandbox SDK timeout forwarding, timeout/fork-storm failure cleanup through sandbox teardown, minimal sandbox env injection, stdout/stderr truncation, sandbox-returned files/output-file paths ignored in favor of one fixed transcript artifact, artifact storage accounting, and sandbox-minute metering |
|
|
16
16
|
| Proof store/read/save/delete | `vibecodr proof list/show/save/delete`, advanced `vibecodr artifacts list/get/pull/create/delete` | tests verify metadata shape, bounded list limits, safe filenames, overwrite guard, explicit in-workspace pull file targets, automatic proof saving from browser/computer aliases and `work follow --local`/`--out`, explicit confirmation before delete, actor-scoped hosted deletion of D1 shelf rows plus R2 bytes, hosted plan-owned upload caps, hard total artifact storage caps, R2 cleanup after D1 reservation races, workspace-bounded upload/download paths, and symlink/junction escape denial |
|
|
17
17
|
| Work status/cancel/list | `vibecodr work list/show/follow/cancel`, advanced `vibecodr jobs list/status/cancel` | tests verify list limit propagation, ID validation, alias routing, real follow polling until terminal status, optional terminal proof saving, queued fairness-delay metadata in status output, and `--yes` on cancellation |
|
|
@@ -32,9 +32,9 @@ artifacts and tests.
|
|
|
32
32
|
| Browser Run timeout mapping | `src/hosted/worker.ts` Quick Action payload builders and Browser Session navigation | hosted tests verify Quick Action `goToOptions.timeout` clamps to 60s, non-PDF Quick Actions stay on a minimal provider-compatible payload without top-level `actionTimeout`, PDF keeps its documented `pdfOptions.timeout`, dynamic public-page navigation uses Cloudflare's recommended `networkidle2` default instead of the stricter `networkidle0`, Browser Sessions launch with bounded `keep_alive`, and Browser Session large-page navigation timeout failures close the browser, mark the job failed, and do not write artifacts or browser-minute usage |
|
|
33
33
|
| Browser Run crawl provider path | `browser.crawl_site`, hosted `/crawl` Quick Action integration | CLI tests verify `browser.crawl` payloads; hosted tests verify crawl start, result fetch, artifact storage, browser-minute usage, and crawl-page usage |
|
|
34
34
|
| Browser Run provider retry/defer | `src/hosted/worker.ts` queue failure handling | hosted tests verify provider 429 responses return jobs to queued/retryable state and do not mark them failed on first rate-limit pressure |
|
|
35
|
-
| Human-use security hardening | CLI and hosted Worker trust-boundary controls | tests verify insecure local API opt-in, workspace-bounded artifacts including symlink/junction denial, scoped Vibecodr CLI grants with per-tool capability scopes, actor-scoped live job/artifact/usage/audit SQL, DNS address-record and redirect-chain enforcement with denial metrics, authenticated-browser material denial, Browser Run Quick Action routing and metered time, crawl metering, paid sandbox public HTTP(S) egress with private/local/internal denial, quota denial metrics, pre-execution and during-execution cancellation guards, hard artifact storage caps, D1/R2 artifact write cleanup, explicit artifact deletion cleanup, and retention-backed artifact expiry |
|
|
35
|
+
| Human-use security hardening | CLI and hosted Worker trust-boundary controls | tests verify insecure local API opt-in, workspace-bounded artifacts including symlink/junction denial, scoped Vibecodr CLI grants with per-tool capability scopes, actor-scoped live job/artifact/usage/audit SQL, DNS address-record and redirect-chain enforcement with denial metrics, authenticated-browser material denial, token-hashed Agent Browser handoff with no raw cookie/header/storage-state lane, Browser Run Quick Action routing and metered time, crawl metering, paid sandbox public HTTP(S) egress with private/local/internal denial, quota denial metrics, pre-execution and during-execution cancellation guards, hard artifact storage caps, D1/R2 artifact write cleanup, explicit artifact deletion cleanup, and retention-backed artifact expiry |
|
|
36
36
|
| Hosted API/MCP scaffold | `src/hosted/worker.ts`, `wrangler.jsonc`, `migrations/0001_live_schema.sql`, `migrations/0002_actor_scope.sql`, `migrations/0003_quota_reservations.sql`, `migrations/0004_sandbox_quota_reservations.sql`, `migrations/0005_operator_alert_dedupe.sql`, `migrations/0006_scheduled_qa.sql`, `migrations/0007_job_queue_metadata.sql` | `npm run check:worker` and `test/hosted-worker.test.ts` verify health, auth fail-closed behavior, OAuth discovery routes that do not emit `auth.failed`, auth-failure audit metrics, user-safe public readiness, protected inspection/dashboard routes, scoped CLI grants, capability-scope denial, MCP protected-resource metadata, MCP auth challenge headers, MCP metadata, MCP tool flow, dashboard contract, actor-scoped live acceptance, atomic quota reservation including sandbox seconds and parallel race conflict handling, queued-ahead metadata without interactive fairness delay, Workflow-owned paid agent browser dispatch without a Queue binding, Queue rejection for Browser Agent execution, Browser Run Quick Action hard-cap deferral, Browser Session hard-cap deferral, Sandbox hard-cap deferral, provider retry/defer handling, Browser Run large-page timeout bounds, failed-job DLQ retry-boundary behavior without provider re-execution, exhausted failed-job loop prevention, scheduled Queue/DLQ/artifact-storage/retention-cleanup/execution-health/auth-failure/Cloudflare-spend alerting, unexpected hosted 500 alerting, crawl artifacts, scheduled QA config/create/list/run-now enqueue/cron enqueue, sandbox execution timeout/env/output/teardown behavior, sandbox timeout/fork-storm failure cleanup, sandbox-returned file/path suppression, sandbox reservation reconciliation, unsafe redirect rejection before cost-bearing dispatch, D1-backed operator alert dedupe, and contract-mode tool acceptance |
|
|
37
|
-
| Live Cloudflare provider | `src/hosted/worker.ts`, `wrangler.jsonc`, `Dockerfile`, `migrations/0001_live_schema.sql`, `migrations/0002_actor_scope.sql`, `migrations/0003_quota_reservations.sql`, `migrations/0004_sandbox_quota_reservations.sql`, `migrations/0005_operator_alert_dedupe.sql`, `migrations/0006_scheduled_qa.sql`, `migrations/0007_job_queue_metadata.sql` | hosted-required for live releases: apply all migrations, set Browser Run Quick Actions secrets and `BROWSER_AGENT_WORKFLOW`, deploy, then smoke health, authenticated login, real Quick Action browser job, real scheduled QA create/list/run-now enqueue/job-readback/monthly-cap denial plus natural cron-tick readback at a real trigger time, real Creator browser agent-task job through `BROWSER_AGENT_WORKFLOW`/`BROWSER`, real Pro browser agent-task job through `BROWSER_AGENT_WORKFLOW`/`BROWSER`, real crawl job, real Creator `standard-1` sandbox job capped at 10 minutes, real Pro `standard-2` sandbox job capped at 30 minutes, R2 artifact download, actor-scoped user-safe usage, crawl-page usage, sandbox-second quota denial, operator-alert dedupe/readback on operator surfaces, COGS dashboard readback, and audit rows against `https://tools.vibecodr.space` |
|
|
37
|
+
| Live Cloudflare provider | `src/hosted/worker.ts`, `wrangler.jsonc`, `Dockerfile`, `migrations/0001_live_schema.sql`, `migrations/0002_actor_scope.sql`, `migrations/0003_quota_reservations.sql`, `migrations/0004_sandbox_quota_reservations.sql`, `migrations/0005_operator_alert_dedupe.sql`, `migrations/0006_scheduled_qa.sql`, `migrations/0007_job_queue_metadata.sql` | hosted-required for live releases: apply all migrations, set Browser Run Quick Actions secrets and `BROWSER_AGENT_WORKFLOW`, deploy, then smoke health, authenticated login, real Quick Action browser job, real Agent Browser open/auth handoff/complete/revoke/close loop through Cloudflare Live View, real scheduled QA create/list/run-now enqueue/job-readback/monthly-cap denial plus natural cron-tick readback at a real trigger time, real Creator browser agent-task job through `BROWSER_AGENT_WORKFLOW`/`BROWSER`, real Pro browser agent-task job through `BROWSER_AGENT_WORKFLOW`/`BROWSER`, real crawl job, real Creator `standard-1` sandbox job capped at 10 minutes, real Pro `standard-2` sandbox job capped at 30 minutes, R2 artifact download, actor-scoped user-safe usage, crawl-page usage, sandbox-second quota denial, operator-alert dedupe/readback on operator surfaces, COGS dashboard readback, and audit rows against `https://tools.vibecodr.space` |
|
|
38
38
|
| Cloudflare dynamic primitive fit | `docs/CLOUDFLARE-PRIMITIVE-FIT.md`, `docs/API-CONTRACT.md`, `wrangler.jsonc` | docs verify Cloudflare Workflows are the v1 durable `browser.agent_task` lane; Dynamic Workers/Facets/Dynamic Workflows remain future supervised dynamic-code capabilities, not replacements for v1 Browser Run Quick Actions, Sandbox SDK, D1, R2, Queue/DLQ, or platform-owned quota/audit/billing authority |
|
|
39
39
|
| Production-grade packaging | build, typecheck, test, explicit npm exports, CLI-only runtime dependencies, pack verifier, CI | `npm run verify`; pack verifier rejects `docs/`, hosted Worker source, migrations, deployment config, tests, scripts, and Cloudflare primitive runtime dependencies from the public npm artifact |
|
|
40
40
|
| Inspectable goal coverage | `vibecodr inspect`, `src/legacy/core/goal-coverage.ts` | `npm run verify:release` and `test/legacy/cli.behavior.test.ts` verify coverage output |
|
package/docs/commands.md
CHANGED
|
@@ -115,10 +115,23 @@ Prints (`--print`) the MCP connection details for the hosted Agent Computer. The
|
|
|
115
115
|
- `browser pdf <https-url> [--local|--out ./proof] [--no-wait] [--details]`
|
|
116
116
|
- `browser crawl <https-url> [--max-pages n] [--max-depth n] [--local|--out ./proof]`
|
|
117
117
|
- `browser snapshot <https-url> [--local|--out ./proof]`
|
|
118
|
-
-
|
|
118
|
+
- `browser notes <https-url> --note <text> [--local|--out ./proof]`
|
|
119
|
+
- `browser session open <https-url> [--timeout-ms <ms>] [--idle-timeout-ms <ms>]`
|
|
120
|
+
- `browser session observe <sessionId>`
|
|
121
|
+
- `browser session goto <sessionId> <https-url>`
|
|
122
|
+
- `browser session click <sessionId> --selector <css>`
|
|
123
|
+
- `browser session type <sessionId> --selector <css> --text <text>`
|
|
124
|
+
- `browser session scroll <sessionId> [--delta-y 800]`
|
|
125
|
+
- `browser session wait <sessionId> [--ms 1000]`
|
|
126
|
+
- `browser session live <sessionId> [--no-open] [--debug|--view devtools]`
|
|
127
|
+
- `browser session auth <sessionId> [--no-open] [--debug|--view devtools]`
|
|
128
|
+
- `browser session auth-status <sessionId>`
|
|
129
|
+
- `browser session auth-complete <sessionId>`
|
|
130
|
+
- `browser session auth-revoke <sessionId>`
|
|
131
|
+
- `browser session close <sessionId>`
|
|
119
132
|
|
|
120
133
|
Public HTTPS URLs only. Localhost, private network ranges, URL credentials, and internal hostnames are blocked before any hosted work is submitted. `--no-wait` returns immediately with a `jobId` you can follow via `vibecodr work follow`. `--details` includes capability metadata in the response.
|
|
121
|
-
Use `--local` to save
|
|
134
|
+
Use `--local` to save completed one-shot outputs into `./vibecodr-proof` automatically, or `--out` when you want to choose the destination. Automatic output saves are workspace-bounded; if `--out` points outside the current workspace, Vibecodr writes to `./.vibecodr/browser-artifacts/<run>` instead and returns a warning. `browser snapshot` captures page state; it does not prompt an agent or model. `browser notes` saves your note with the snapshot. `browser session` opens a hosted Agent Browser that the agent can observe and control until it is closed or idle; each observe/action returns fresh screenshot proof. `browser session live` opens the watch page without pausing the agent. `browser session auth` opens the same live page with human control already active for login, MFA, CAPTCHA, or another human-only step before handing the same hosted browser back. The live page lets the owner watch, take over, give back, or end the browser. It defaults to the plain browser tab; add `--debug` or `--view devtools` only when an agent/developer needs the inspector panel.
|
|
122
135
|
|
|
123
136
|
## Hosted computer (H)
|
|
124
137
|
|
|
@@ -504,7 +504,7 @@ is captured.
|
|
|
504
504
|
|
|
505
505
|
- `vc-tools-finetune.md` now captures the combined founder/agent critique for
|
|
506
506
|
the v1 surface: split human/agent/operator contracts, remove default
|
|
507
|
-
operator/roadmap metadata, make proof saving automatic, make
|
|
507
|
+
operator/roadmap metadata, make proof saving automatic, make the note helper
|
|
508
508
|
honest as a snapshot lane, improve safety denials, and add a first-success
|
|
509
509
|
`try` command.
|
|
510
510
|
- The default hosted/user surfaces now filter internal and operator metadata:
|
|
@@ -519,8 +519,8 @@ is captured.
|
|
|
519
519
|
until terminal and can save terminal proof. `vc-tools try` verifies auth,
|
|
520
520
|
hosted API, public Browser work, hosted computer work, proof saving, and
|
|
521
521
|
usage readback. `browser snapshot` is the honest name for the
|
|
522
|
-
`browser.agent_task` snapshot lane;
|
|
523
|
-
alias with explicit copy that it
|
|
522
|
+
`browser.agent_task` snapshot lane; the previous command spelling remains a
|
|
523
|
+
compatibility alias with explicit copy that it saves a note with the snapshot.
|
|
524
524
|
- Local verification passed on 2026-05-17 with `npm run verify`, including CLI
|
|
525
525
|
and Worker type checks, full tests, build, package artifact verification,
|
|
526
526
|
goal coverage, and release-readiness gate. Focused checks also passed for
|
|
@@ -552,7 +552,7 @@ consented private-network connector.
|
|
|
552
552
|
```text
|
|
553
553
|
Blocked for safety: browser calls cannot include cookies, credentials, auth
|
|
554
554
|
headers, storage state, or secrets. Use a public page, or connect an
|
|
555
|
-
|
|
555
|
+
Agent Browser live session when a human needs to sign in.
|
|
556
556
|
```
|
|
557
557
|
|
|
558
558
|
Acceptance tests:
|
|
@@ -979,4 +979,3 @@ required.
|
|
|
979
979
|
`--dry-run` to plan without writing.
|
|
980
980
|
- `vc-tools dashboard` opens the dashboard URL in the local browser unless
|
|
981
981
|
`--no-open`, `--json`, `--quiet`, or `--no-input` is set.
|
|
982
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibecodr/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "The official Vibecodr CLI: hosted browser, hosted computer, capsule uploads, Pulse operations, and agent-client MCP setup under one command.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|