@viberaven/cli 1.0.0 → 1.0.1

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/AGENTS.md CHANGED
@@ -40,6 +40,39 @@ For Vercel + Supabase checks:
40
40
  npx -y @viberaven/cli audit --vercel-supabase
41
41
  ```
42
42
 
43
+ ## Production Copilot Loop
44
+
45
+ After every scan, read `.viberaven/agent-tasklist.md` for the prioritized task list.
46
+
47
+ The loop is:
48
+
49
+ 1. Read `VIBERAVEN_NEXT_ACTION` from scan output for `batchSize`, `batchApplied`, `scanNow`, and `stalled`.
50
+ 2. If `stalled: true`, stop calling verify — address provider-action gaps or report to the user.
51
+ 3. If `scanNow: true`, call `viberaven_verify` (or run `--verify`) before applying more heals.
52
+ 4. For each repo-code task where `requiresUserAction: false` (up to `batchSize` per batch):
53
+ - Call MCP: `viberaven_heal_apply { gap: "<gapId>", yes: true }`
54
+ - Or run `--heal --apply --gap <id> --yes`
55
+ 5. After a full batch of heals, call verify once — do NOT verify after every single heal.
56
+ 6. Repeat until `gate.status === 'clear'` in `.viberaven/gate-result.json`.
57
+ 7. If `requiresUserAction: true`:
58
+ - Read `VIBERAVEN_PROVIDER_ACTION` from terminal output.
59
+ - Present `dashboardUrl` and `exactStep` to the user.
60
+ - Wait for user confirmation, then verify.
61
+ 8. If `fixType === 'upgrade-required'`, provide `upgradeUrl` and move on.
62
+
63
+ Do not stop at "scan complete." The loop is not done until `gate.status === 'clear'`.
64
+
65
+ ### Batch discipline
66
+
67
+ ```
68
+ for each repo-code task (up to batchSize):
69
+ viberaven_heal_apply { gap: "<gapId>", yes: true }
70
+
71
+ viberaven_verify ← once per batch, not per fix
72
+ ```
73
+
74
+ On Pro plans, `viberaven_provider_verify` is available as an MCP tool for read-only provider gap verification via Supabase/Vercel MCP evidence.
75
+
43
76
  ## Rules
44
77
 
45
78
  - Do not skip VibeRaven before deploy/build/cleanup when production readiness is in scope.
package/README.md CHANGED
@@ -43,6 +43,16 @@ npx -y @viberaven/cli audit --vercel-supabase
43
43
 
44
44
  Provider dashboard checks are not cleared by repo-code edits. Billing/product configuration, DNS, webhooks, credentials, quotas, and live provider verification must be completed or verified in the provider dashboard or through read-only provider evidence.
45
45
 
46
+ ## Production Copilot Loop
47
+
48
+ VibeRaven runs a batch-disciplined loop until the production gate clears. Do not stop at "scan complete."
49
+
50
+ 1. **Scan** — Run `--agent-mode`. Read `.viberaven/agent-tasklist.md` and parse `VIBERAVEN_NEXT_ACTION` from stdout for `batchSize`, `batchApplied`, `scanNow`, and `stalled`.
51
+ 2. **Batch heals** — For each repo-code task where `requiresUserAction: false`, apply up to `batchSize` heals per batch (free=3, pro=10) via `viberaven_heal_apply { gap: "<gapId>", yes: true }` or `--heal --apply --gap <id> --yes`. When `scanNow: true`, verify before applying more heals.
52
+ 3. **Verify and clear** — Run `--verify` once per batch (not after every heal). Repeat until `gate.status === 'clear'` in `.viberaven/gate-result.json`. For provider gaps, read `VIBERAVEN_PROVIDER_ACTION`, complete the dashboard step, then verify.
53
+
54
+ If `stalled: true`, stop calling verify and address provider-action gaps or report to the user. Run `--strict` before deploy or CI pass.
55
+
46
56
  ## Machine Output
47
57
 
48
58
  ```bash
@@ -7274,9 +7274,9 @@ function buildAgentPromptText(payload, nextMove, missing, files) {
7274
7274
 
7275
7275
  function buildChecklistText(payload, nextMove, missing, files) {
7276
7276
  const lines = [
7277
- '# Station production checklist',
7277
+ '# VibeRaven production checklist',
7278
7278
  '',
7279
- 'Generated from the latest VibeRaven Station run.',
7279
+ 'Generated from the latest VibeRaven run.',
7280
7280
  '',
7281
7281
  '## Next move',
7282
7282
  '',