peaks-loop 4.0.37 → 4.0.39
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 +37 -0
- package/README-en.md +1 -1
- package/README.md +1 -1
- package/dist/cli/commands/code-review-commands.js +43 -1
- package/dist/cli/commands/code-runtime-commands.js +16 -4
- package/dist/cli/commands/core/skill-command.d.ts +44 -0
- package/dist/cli/commands/core/skill-command.js +67 -3
- package/dist/cli/commands/dispatch-commands.js +42 -12
- package/dist/cli/commands/hooks-commands.js +31 -6
- package/dist/services/code/auto-compact-orchestrator.js +2 -2
- package/dist/services/context/auto-compact-dispatcher.js +3 -1
- package/dist/services/context/build-dispatch-system-prompt.d.ts +35 -1
- package/dist/services/context/build-dispatch-system-prompt.js +55 -3
- package/dist/services/hooks/auto-compact-hook-install.d.ts +14 -1
- package/dist/services/hooks/auto-compact-hook-install.js +39 -15
- package/dist/services/lint/detect-ocr-18.d.ts +9 -1
- package/dist/services/lint/detect-ocr-18.js +114 -10
- package/dist/services/lint/ocr-18-acquire.d.ts +113 -0
- package/dist/services/lint/ocr-18-acquire.js +350 -0
- package/dist/services/lint/ocr-multilang-adapter.js +12 -2
- package/dist/services/skills/hooks-codegate-superpowers.d.ts +41 -0
- package/dist/services/skills/hooks-codegate-superpowers.js +95 -0
- package/dist/services/skills/hooks-settings-service.d.ts +16 -0
- package/dist/services/skills/hooks-settings-service.js +46 -13
- package/dist/services/web/playwright-loader.js +5 -24
- package/dist/services/workflow/provision-dispatch-node.d.ts +42 -0
- package/dist/services/workflow/provision-dispatch-node.js +66 -0
- package/dist/services/workspace/claude-settings-template.d.ts +19 -3
- package/dist/services/workspace/claude-settings-template.js +25 -5
- package/dist/services/workspace/workspace-claude-settings-materializer.js +111 -29
- package/dist/shared/npm-cache.d.ts +2 -0
- package/dist/shared/npm-cache.js +31 -0
- package/package.json +5 -5
- package/skills/bee/peaks-perf-audit/SKILL.md +24 -0
- package/skills/bee/peaks-prd/SKILL.md +24 -0
- package/skills/bee/peaks-qa/SKILL.md +24 -0
- package/skills/bee/peaks-rd/SKILL.md +24 -0
- package/skills/bee/peaks-reviewer/SKILL.md +24 -0
- package/skills/bee/peaks-sc/SKILL.md +24 -0
- package/skills/bee/peaks-security-audit/SKILL.md +24 -0
- package/skills/bee/peaks-txt/SKILL.md +24 -0
- package/skills/bee/peaks-ui/SKILL.md +24 -0
- package/skills/peaks-audit/SKILL.md +24 -0
- package/skills/peaks-code/SKILL.md +24 -0
- package/skills/peaks-content/SKILL.md +24 -0
- package/skills/peaks-doctor/SKILL.md +24 -0
- package/skills/peaks-final-review/SKILL.md +24 -0
- package/skills/peaks-ide/SKILL.md +24 -0
- package/skills/peaks-issue-fix-orchestrator/SKILL.md +24 -0
- package/skills/peaks-resume/SKILL.md +24 -0
- package/skills/peaks-slice-decompose/SKILL.md +24 -0
- package/skills/peaks-solo/SKILL.md +24 -0
- package/skills/peaks-sop/SKILL.md +24 -0
- package/skills/peaks-status/SKILL.md +24 -0
- package/skills/peaks-test/SKILL.md +24 -0
|
@@ -3,6 +3,30 @@ name: peaks-status
|
|
|
3
3
|
description: Universal status primitive for any in-flight Peaks-Loop workflow (orchestrator-agnostic). Reads the existing CLI primitives (peaks skill presence, peaks session list, peaks project dashboard, peaks request show) and renders a 1-screen status table. Use when the user asks "where are we", "现在到哪了", "what's the current state" for ANY bee (peaks-code, future peaks-research, …). Triggers on "/peaks-status", "现在到哪了", "what is the current state", "show me the dashboard". (Replaces peaks-status as a top-level primitive.)
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
<!-- peaks:loop-hygiene — generated block; keep byte-identical in every SKILL.md -->
|
|
7
|
+
|
|
8
|
+
## Loop hygiene (every turn — MANDATORY)
|
|
9
|
+
|
|
10
|
+
**Skill header.** While this skill is active, open every turn with
|
|
11
|
+
`Peaks-Loop Skill: <skill> | Peaks-Loop Gate: <gate> | Next: <one short action>`.
|
|
12
|
+
Every turn, not only the first — it is how the user knows which skill is driving.
|
|
13
|
+
|
|
14
|
+
**Context is this skill's own business.** Run `peaks skill presence --json` every turn and
|
|
15
|
+
read its `context` block. When `action` is `auto-fire`, `pre-compact`, or `red-line`,
|
|
16
|
+
run `peaks code auto-compact --project .` **yourself**, then continue. Tell the user the
|
|
17
|
+
ratio in one line if it helps, but never hand them the compaction step: asking the user to
|
|
18
|
+
run `/compact` is the regression the zero-pause contract forbids. This holds in **every
|
|
19
|
+
mode** — standard *and* 24h. The mode moves the threshold, never the obligation.
|
|
20
|
+
|
|
21
|
+
**Read before you edit.** Read a file BEFORE your first `Edit` / `Write` / `MultiEdit` on
|
|
22
|
+
it — for every path outside `.peaks/**` (source, tests, docs, config); `.peaks/**` writes
|
|
23
|
+
are exempt. Skipping that read trips a `PreToolUse` gate (ECC's "Fact-Forcing Gate"),
|
|
24
|
+
which denies the edit. **A denial is not a failure and the tool is not broken — your edit
|
|
25
|
+
was not applied.** Read the file, state the facts the gate asks for (importers, affected
|
|
26
|
+
API, data schemas if any, the user's verbatim instruction), then retry the same operation.
|
|
27
|
+
Do not switch tools, do not give up, do not retry blindly.
|
|
28
|
+
<!-- /peaks:loop-hygiene -->
|
|
29
|
+
|
|
6
30
|
# Peaks-Loop Code Status (wrapper)
|
|
7
31
|
|
|
8
32
|
Peaks-Loop Code Status is a thin wrapper that renders a compact status table for the current peaks-code orchestrator state. It is the answer to "I just want to know where we are" — no PRD, no RD, no QA, no full peaks-code orchestration. Just read the existing CLI state and render a 1-screen summary.
|
|
@@ -3,6 +3,30 @@ name: peaks-test
|
|
|
3
3
|
description: Universal test-runner primitive for any in-flight Peaks-Loop workflow (orchestrator-agnostic). Runs the project's test suite on the current repo and reports results. Use when the user asks "run the tests", "跑一下 test", "跑测试" for ANY bee (peaks-code, future peaks-research, …). Triggers on "/peaks-test", "跑一下 test", "跑测试", "run the tests", "test now". (Replaces peaks-test as a top-level primitive.)
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
<!-- peaks:loop-hygiene — generated block; keep byte-identical in every SKILL.md -->
|
|
7
|
+
|
|
8
|
+
## Loop hygiene (every turn — MANDATORY)
|
|
9
|
+
|
|
10
|
+
**Skill header.** While this skill is active, open every turn with
|
|
11
|
+
`Peaks-Loop Skill: <skill> | Peaks-Loop Gate: <gate> | Next: <one short action>`.
|
|
12
|
+
Every turn, not only the first — it is how the user knows which skill is driving.
|
|
13
|
+
|
|
14
|
+
**Context is this skill's own business.** Run `peaks skill presence --json` every turn and
|
|
15
|
+
read its `context` block. When `action` is `auto-fire`, `pre-compact`, or `red-line`,
|
|
16
|
+
run `peaks code auto-compact --project .` **yourself**, then continue. Tell the user the
|
|
17
|
+
ratio in one line if it helps, but never hand them the compaction step: asking the user to
|
|
18
|
+
run `/compact` is the regression the zero-pause contract forbids. This holds in **every
|
|
19
|
+
mode** — standard *and* 24h. The mode moves the threshold, never the obligation.
|
|
20
|
+
|
|
21
|
+
**Read before you edit.** Read a file BEFORE your first `Edit` / `Write` / `MultiEdit` on
|
|
22
|
+
it — for every path outside `.peaks/**` (source, tests, docs, config); `.peaks/**` writes
|
|
23
|
+
are exempt. Skipping that read trips a `PreToolUse` gate (ECC's "Fact-Forcing Gate"),
|
|
24
|
+
which denies the edit. **A denial is not a failure and the tool is not broken — your edit
|
|
25
|
+
was not applied.** Read the file, state the facts the gate asks for (importers, affected
|
|
26
|
+
API, data schemas if any, the user's verbatim instruction), then retry the same operation.
|
|
27
|
+
Do not switch tools, do not give up, do not retry blindly.
|
|
28
|
+
<!-- /peaks:loop-hygiene -->
|
|
29
|
+
|
|
6
30
|
# Peaks-Loop Code Test (wrapper)
|
|
7
31
|
|
|
8
32
|
Peaks-Loop Code Test is a thin wrapper that runs the project's test suite on the current repo and reports results. It is the answer to "I just want to see if the tests pass" — no PRD, no RD, no QA, no full peaks-code orchestration. Just `pnpm vitest run` and a compact summary.
|