@webpresso/plugin-claude 0.0.14 → 0.0.16

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.
@@ -37,22 +37,24 @@ integrated, and free of stale garbage?**
37
37
 
38
38
  Default `/verify` must **not** spawn outside reviewers. That stampede is a known
39
39
  token/time failure mode. Merge-ready runs **one** sequential outside voice via
40
- the preferred skill (`claude` / `codex` / one OpenCode Go), then stops.
40
+ one `review_gate` delivery gate (or a host review skill), then stops. Pass
41
+ `caller_model` with your own model id and omit `provider`/`model`/`effort`: the
42
+ gate selects the cross-family reviewer and reports it in `policy_selection`.
41
43
 
42
44
  ## Tooling map
43
45
 
44
- | Gate | Prefer |
45
- | ------------------------- | ---------------------------------------------------------------------------------------- |
46
- | Lint / types / tests / QA | `wp_lint`, `wp_typecheck`, `wp_test`, `wp_qa` |
47
- | Format | `wp_format` |
48
- | Audits | `wp_audit`, `wp_audits` |
49
- | Blueprint | blueprint MCP tools + `wp_audit` |
50
- | PR / CI wait | `wp_pr_status`, `wp_pr_wait` (not multi-sleep loops) |
51
- | Release | `wp_release_progress` for live Release phases; `wp_release_readiness` for package gates |
52
- | Large output | `wp_session_execute` / `batch_execute` / `execute_file` |
53
- | Continuity | `wp_session_capture` for verify summary; avoid paste-back walls |
54
- | E2E / act | `wp_e2e`, `wp_ci_act` when the change requires them |
55
- | Outside authority | `wp_review_gate` (purpose plan or delivery); each new provider verdict is a formal round |
46
+ | Gate | Prefer |
47
+ | ------------------------- | ------------------------------------------------------------------------------------- |
48
+ | Lint / types / tests / QA | `lint`, `typecheck`, `test`, `qa` |
49
+ | Format | `format` |
50
+ | Audits | `audit`, `audits` |
51
+ | Blueprint | blueprint MCP tools + `audit` |
52
+ | PR / CI wait | `pr_status`, `pr_wait` (not multi-sleep loops) |
53
+ | Release | `release_progress` for live Release phases; `release_readiness` for package gates |
54
+ | Large output | `session_execute` / `batch_execute` / `execute_file` |
55
+ | Continuity | `session_capture` for verify summary; avoid paste-back walls |
56
+ | E2E / act | `e2e`, `ci_act` when the change requires them |
57
+ | Outside authority | `review_gate` (purpose plan or delivery); each new provider verdict is a formal round |
56
58
 
57
59
  ## Iron law — evidence before claims
58
60
 
@@ -81,7 +83,7 @@ Not sufficient: "should pass", "looks correct", lint-only evidence for runtime c
81
83
 
82
84
  Follow the repo's current routing and command surface:
83
85
 
84
- - use MCP `wp_*` / repo-owned quality wrappers first
86
+ - use wp MCP tools / repo-owned quality wrappers first
85
87
  - use bounded session-memory tooling for large output
86
88
  - reuse fresh logs instead of re-running broad commands just to inspect output
87
89
 
@@ -102,7 +104,7 @@ workflow:
102
104
  2. Run the repo audit when available:
103
105
 
104
106
  ```text
105
- wp_audit({"kind":"test-smells"})
107
+ audit({"kind":"test-smells"})
106
108
  ```
107
109
 
108
110
  Use the global `wp audit test-smells` command only when MCP is unavailable.
@@ -137,16 +139,16 @@ Hard stop on any failure.
137
139
 
138
140
  Run the narrowest checks that prove the touched behavior:
139
141
 
140
- - `wp_lint` / targeted lint
141
- - `wp_typecheck` / targeted typecheck
142
- - `wp_test` / targeted tests
143
- - `wp_qa`, `wp_e2e`, build / package checks only when the change requires them
142
+ - `lint` / targeted lint
143
+ - `typecheck` / targeted typecheck
144
+ - `test` / targeted tests
145
+ - `qa`, `e2e`, build / package checks only when the change requires them
144
146
 
145
147
  **Before push or PR open/update**, run the pre-push owner end-to-end:
146
148
 
147
149
  ```text
148
- start = wp_ci_preflight({})
149
- wp_ci_preflight_wait({ runId: start.details.operation.runId })
150
+ start = ci_preflight({})
151
+ ci_preflight_wait({ runId: start.details.operation.runId })
150
152
  ```
151
153
 
152
154
  The start result is not a gate verdict. Poll again when wait returns
@@ -160,19 +162,19 @@ wp ci-preflight
160
162
 
161
163
  That runs the repository-owned, branch-scoped required-check plan fail-fast.
162
164
  Run it after the final commit and make no further worktree or base-ref
163
- changes before pushing. Agent-kit's `.husky/pre-push` checks the resulting
165
+ changes before pushing. The app repo's `.husky/pre-push` checks the resulting
164
166
  exact-state receipt without rerunning the suite after Git opens the remote
165
167
  transport; consumer repos may keep pre-push checks user-owned. Do **not** claim
166
168
  push-ready if preflight failed. Do **not** bypass hooks to ship red work.
167
169
 
168
170
  Rules:
169
171
 
170
- - Prefer MCP `wp_*` over raw underlying tools.
172
+ - Prefer wp MCP tools over raw underlying tools.
171
173
  - Reuse fresh logs / session-memory indexed output if the runner auto-saves them.
172
174
  - Never claim broader correctness than the commands actually proved.
173
- - If the repo documents a "full QA" bookend, reserve `wp_qa` / `--full` for the final broad pass rather than every iteration.
175
+ - If the repo documents a "full QA" bookend, reserve `qa` / `--full` for the final broad pass rather than every iteration.
174
176
  - If CI is already red: read the failed job log, reproduce with the matching
175
- local `wp_ci_preflight` + `wp_ci_preflight_wait` flow (or the `wp ci-preflight` CLI fallback), fix, then push **one**
177
+ local `ci_preflight` + `ci_preflight_wait` flow (or the `wp ci-preflight` CLI fallback), fix, then push **one**
176
178
  corrective commit — do not burn another full matrix “to check.”
177
179
 
178
180
  ## Phase 3 — Cross-surface impact scan
@@ -209,7 +211,7 @@ Check that:
209
211
  - UX or operator-facing flows include graceful-degradation coverage when applicable
210
212
 
211
213
  Run the folded TPH gate for every verification target. At minimum, execute
212
- `wp_audit` with the `test-smells` kind when available (use global `wp audit
214
+ `audit` with the `test-smells` kind when available (use global `wp audit
213
215
  test-smells` only as the CLI fallback) and inspect changed tests against the
214
216
  `testing-philosophy` checklist. Add E2E or integration evidence when the change
215
217
  touches user/operator-facing workflows, batch/list behavior, graceful
@@ -253,7 +255,7 @@ Before claiming **merge-ready** / land:
253
255
 
254
256
  ### 1. Classify with immutable refs
255
257
 
256
- Run `wp_audit` with `kind: "risk-review-coverage"` using:
258
+ Run `audit` with `kind: "risk-review-coverage"` using:
257
259
 
258
260
  - immutable PR **base** SHA
259
261
  - immutable **authority** (head) SHA
@@ -267,13 +269,13 @@ CI job in `.github/workflows/pr-policy.yml`.
267
269
 
268
270
  When classification is **sensitive**:
269
271
 
270
- - Require delivery review via `risk-review-coverage` / `wp_review_gate`
272
+ - Require delivery review via `risk-review-coverage` / `review_gate`
271
273
  (purpose delivery) / qualifying lane approvals for the current
272
274
  review subject until `policySatisfied` (**approval**). A formal **reject** is a terminal automated-review
273
275
  outcome but does **not** satisfy land policy: Product status stays
274
276
  `incomplete`, Process status stays `sensitive-blocked` until approval.
275
277
  Tech-debt is **not** a substitute for delivery approval.
276
- - Launch **exactly one at a time** `wp_review_gate` delivery attempt with
278
+ - Launch **exactly one at a time** `review_gate` delivery attempt with
277
279
  `--base-ref <base-sha>` and `--authority-ref <head-sha>`. Do not substitute
278
280
  `HEAD` for the authority SHA, and do not relaunch while the same subject has
279
281
  an in-progress gate.
@@ -312,8 +314,8 @@ When classification is **standard**:
312
314
  Must be start-of-line. Process label: `standard-skip`.
313
315
 
314
316
  - Otherwise obtain **exactly one sequential** outside voice: one
315
- `wp_review_gate` delivery gate (or host skill). Process label: `outside-approved`.
316
- - At most **one OpenCode Go reviewer** counts unless the user asks for more.
317
+ `review_gate` delivery gate (or host skill). Process label: `outside-approved`.
318
+ - At most **one outside reviewer** counts unless the user asks for more.
317
319
  - Invoke the selected reviewer **once**. Do not probe, retry, or rotate
318
320
  providers automatically, and **never** fan out parallel multi-host review
319
321
  swarms.
@@ -322,12 +324,13 @@ When classification is **standard**:
322
324
  - These approvals are model outside-voice approvals, not a substitute for human
323
325
  GitHub reviews or branch-protection approvals.
324
326
 
325
- Reviewer preference (pick **one** path):
326
-
327
- - From Codex → Claude (else one OpenCode Go).
328
- - From Claude → Codex (else one OpenCode Go).
329
- - Prefer skills: `claude`, `codex`, or one of `opencode-go` / `qwen` /
330
- `deepseek` / `glm` / `kimi` / `minimax` / `mimo`.
327
+ Reviewer preference: the gate owns it. State `caller_model` (your own model
328
+ id) and omit `provider`/`model`/`effort`; `review_gate` selects a
329
+ cross-family reviewer by capability, current provider limits, and measured
330
+ daily cost, and discloses the choice in `policy_selection`. Do not name a
331
+ reviewer host or model, do not probe provider catalogs, and do not rotate
332
+ providers yourself. A human operator may still name an explicit
333
+ `provider`/`model` override; agents must not.
331
334
 
332
335
  ### 4. Dual product/process labels on every land claim
333
336
 
@@ -340,14 +343,14 @@ Never invent a land-now skip. See `land-policy` for the full table.
340
343
 
341
344
  ### Approval evidence requirements
342
345
 
343
- - Blueprint plan approval: use `wp_review_gate` with the current `bpv1` version.
346
+ - Blueprint plan approval: use `review_gate` with the current `bpv1` version.
344
347
  It records the review and promotes an approved draft atomically by default.
345
348
  If the gate is still running or the host wait expires, poll the same exact
346
- invocation with `wp_review_gate_wait` until a terminal review outcome is
349
+ invocation with `review_gate_wait` until a terminal review outcome is
347
350
  observed; wait timeout/abort/in-progress/not-found are not reviewer verdicts.
348
351
  `not_found` means there is no active or terminal gate for that subject; refresh
349
352
  state and start the gate again instead of continuing to wait.
350
- - Implementation / delivery approval: use `wp_review_gate` purpose delivery
353
+ - Implementation / delivery approval: use `review_gate` purpose delivery
351
354
  on the immutable subject, exactly once with the selected provider, for
352
355
  sensitive and standard PRs alike. The gate has one mode: each newly executed
353
356
  provider review that reaches a verdict is one formal round of the slug's
@@ -358,7 +361,7 @@ Never invent a land-now skip. See `land-policy` for the full table.
358
361
  spends none). Do not run a separate
359
362
  provider probe.
360
363
  - Two gates on the same subject cannot run concurrently — every
361
- `wp_review_gate` call claims the subject's active marker. If a call reports
364
+ `review_gate` call claims the subject's active marker. If a call reports
362
365
  marker contention, serialize the two calls rather than treating contention
363
366
  as an error.
364
367
  - Each gate reviewer must return exactly one schema-valid JSON review object;
@@ -377,7 +380,7 @@ Never invent a land-now skip. See `land-policy` for the full table.
377
380
  Report:
378
381
 
379
382
  - mode used (`local` / `full` / `merge-ready`)
380
- - what was verified and which `wp_*` commands/logs prove it
383
+ - what was verified and which wp MCP tools commands/logs prove it
381
384
  - which docs/help/instruction surfaces were refreshed when guidance changed
382
385
  - outside models only if merge-ready (with PR comment links when applicable)
383
386
  - what remains intentionally out of scope
@@ -388,7 +391,7 @@ If any required check is missing, the correct result is **not done yet**, not a
388
391
 
389
392
  **Tooling friction (optional):** if this session burned medium+ tokens on MCP/CLI/hooks/CI
390
393
  gates (not product code), run `/tooling-friction` once and resolve its capture
391
- destination with `wp_tooling_friction_path({"file":"<file>"})` — copy the absolute
394
+ destination with `tooling_friction_path({"file":"<file>"})` — copy the absolute
392
395
  path from the tool summary (human CLI: `wp tooling-friction path --file <file>`).
393
396
  Do not invent fleet folder slugs or worktree-keyed desktop-state paths. Skip when
394
397
  the path was smooth. If the surface cannot be resolved or written, report the skip