@linimin/pi-letscook 0.1.51 → 0.1.52

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.
@@ -4,51 +4,52 @@ set -euo pipefail
4
4
  ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5
5
  cd "$ROOT"
6
6
 
7
- echo "[release-check] running control-plane validation, /cook public parity, assist-mode natural-language handoff coverage, role-runner extraction, startup/refocus/context regressions, canonical evidence artifact, active-slice contract, observability, legacy cleanup, evaluator calibration, and rubric contract coverage"
7
+ echo "[release-check] running control-plane validation, /cook public parity, workflow-aware router coverage, role-runner extraction, startup/refocus/context regressions, canonical evidence artifact, active-slice contract, observability, legacy cleanup, evaluator calibration, and rubric contract coverage"
8
8
  bash .agent/verify_completion_control_plane.sh
9
9
 
10
- echo "[release-check] verifying public /cook parity and assist-mode natural-language handoff docs/help"
10
+ echo "[release-check] verifying public /cook parity and workflow-aware router docs/help"
11
11
  python3 - <<'PY'
12
12
  import re
13
13
  from pathlib import Path
14
14
 
15
15
  checks = {
16
16
  "README.md": [
17
- "`/cook` supports both bare discussion-driven startup and optional inline intent hints.",
18
- "assist-mode natural-language handoff that can offer to enter the same `/cook` flow before the primary agent starts implementation work",
19
- "Execution handoff phrases like `開始做`, `開始實作`, or `go ahead` can also trigger an assist-mode confirmation asking whether `/cook` should take over.",
20
- "Assist-mode natural-language handoff is optional. It only offers to enter the same `/cook` flow from recent discussion; explicit `/cook` remains the canonical workflow boundary and the fallback when the trigger is unclear or unavailable.",
21
- "`/cook <hint>` acts as a high-priority intent hint that helps proposal derivation interpret the recent discussion",
22
- "clarify the mission in the main chat before rerunning `/cook`",
23
- "Matching or unclear discussion resumes from canonical `.agent/**` state.",
24
- "approval-only Start/Cancel gate",
25
- "Start new workflow from recent discussion",
26
- "fails closed instead of guessing",
27
- "README/CHANGELOG updates still count as concrete repo changes",
28
- "assistant-produced summaries and plan/spec/design-doc/proposal-only artifacts do not",
29
- "Assistant/summary artifacts or plan/spec/design-doc/proposal-only context do not refocus the workflow.",
30
- "Optional `/cook <hint>` text biases that routing and candidate ranking toward the hinted implementation intent",
17
+ "Natural-language routing is optional and shipped in three modes: `off` disables it, `assist` offers short confirm-first handoffs after clear workflow discussion, and `router` reviews each non-bypass user turn before implementation starts while leaving ordinary questions in the main chat.",
18
+ "Set `PI_COMPLETION_TRIGGER_MODE` before starting Pi if you want to change how natural-language routing behaves:",
19
+ "- `off` natural-language routing is disabled. Only explicit `/cook` or `/cook <hint>` can enter the workflow.",
20
+ "- `assist` *(default)* after clear discussion of a concrete repo change, short execution handoff phrases such as `開始做`, `開始實作`, or `go ahead` can offer to enter the same `/cook` flow before the primary agent starts implementation work.",
21
+ "- `router` the workflow-aware router reviews each non-bypass normal user turn before implementation starts.",
22
+ "the original message only reaches the normal chat path if you explicitly choose **Send as normal chat**",
23
+ "Explicit `/cook` is always the canonical fallback, even when natural-language routing is enabled in `assist` or `router` mode.",
24
+ "router-mode false positives and classifier failures stay fail-closed unless you explicitly choose **Send as normal chat**",
31
25
  "bash ./scripts/cook-trigger-routing-test.sh",
32
26
  ],
33
27
  "CHANGELOG.md": [
34
- "documented the shipped assist-mode natural-language handoff that can offer to route `開始做`, `開始實作`, or `go ahead` style execution handoffs into the canonical `/cook` flow",
35
- "added `bash ./scripts/cook-trigger-routing-test.sh` to `npm run release-check` so packaged release parity now covers the natural-language takeover path",
36
- "restored optional `/cook <hint>` support as a soft intent hint that biases context analysis, proposal ranking, active-workflow disambiguation, and next-round startup without bypassing fail-closed routing or the approval-only Start/Cancel gate",
37
- "removed inline `/cook <text>` argument support so bare `/cook` is now the only supported workflow entrypoint",
38
- "historically allowed `/cook <hint>` as an analyst-only high-priority prompt",
28
+ "updated README/help/release parity copy to describe the shipped `off` / `assist` / `router` natural-language routing behavior truthfully while keeping `/cook` as the canonical confirm-first workflow boundary and manual fallback",
29
+ "documented the explicit router-mode **Send as normal chat** recovery path as a user choice, not as a silent downgrade, and kept public copy scoped to currently shipped router behavior rather than future auto-mode plans",
30
+ "made `npm run release-check` fail closed on the shipped workflow-aware router docs/help contract while continuing to rerun `bash ./scripts/cook-trigger-routing-test.sh` alongside the existing `/cook` smoke/refocus/context regressions",
39
31
  ],
40
32
  "extensions/completion/index.ts": [
41
- 'description: "/cook workflow: start, continue, refocus, or start the next round; assist-mode natural-language handoff can offer the same /cook boundary"',
33
+ 'description: "/cook workflow: start, continue, refocus, or start the next round; /cook stays canonical while natural-language routing can be off, assist, or router"',
42
34
  'const COOK_BARE_ONLY_GUIDANCE =',
43
- '"/cook remains the canonical workflow boundary. Assist-mode natural-language handoff can offer to enter the same /cook flow before implementation starts, while mission selection still comes from recent discussion, repo truth, and the approval-only confirmation flow."',
44
- '"/cook failed closed because recent discussion did not produce a clear execution-ready Mission/Scope/Constraints/Acceptance proposal for concrete repo changes. Natural-language handoff only offers to enter the same /cook flow, so clarify the concrete repo changes in the main chat and rerun /cook."',
35
+ '"/cook remains the canonical workflow boundary. Natural-language routing can stay off, run in assist mode for short confirm-first handoffs, or run in router mode to review each non-bypass user turn before implementation starts, but the shared /cook flow still owns mission selection and confirmation."',
36
+ '"/cook failed closed because recent discussion did not produce a clear execution-ready Mission/Scope/Constraints/Acceptance proposal for concrete repo changes. Assist and router modes only offer the same /cook flow, and router recovery only replays to normal chat when you explicitly choose Send as normal chat, so clarify the concrete repo changes in the main chat and rerun /cook."',
45
37
  ],
46
38
  }
47
39
 
48
40
  forbidden = {
49
- "README.md": ["compatibility" + " shim", "optional inline /cook hint"],
41
+ "README.md": [
42
+ "Assist-mode natural-language handoff can also offer to enter that same `/cook` flow before the primary agent starts implementation work, but `/cook` remains the canonical workflow boundary.",
43
+ "## Natural-language handoff (assist mode)",
44
+ ],
50
45
  "CHANGELOG.md": ["compatibility" + " shim"],
51
- "extensions/completion/index.ts": ["temporary" + " compatibility" + " shim, pass /cook", "optional inline /cook hint"],
46
+ "extensions/completion/index.ts": [
47
+ 'description: "/cook workflow: start, continue, refocus, or start the next round; assist-mode natural-language handoff can offer the same /cook boundary"',
48
+ '"/cook remains the canonical workflow boundary. Assist-mode natural-language handoff can offer to enter the same /cook flow before implementation starts, while mission selection still comes from recent discussion, repo truth, and the approval-only confirmation flow."',
49
+ '"/cook failed closed because recent discussion did not produce a clear execution-ready Mission/Scope/Constraints/Acceptance proposal for concrete repo changes. Natural-language handoff only offers to enter the same /cook flow, so clarify the concrete repo changes in the main chat and rerun /cook."',
50
+ "temporary" + " compatibility" + " shim, pass /cook",
51
+ "optional inline /cook hint",
52
+ ],
52
53
  }
53
54
 
54
55
  for path, needles in checks.items():