peaks-cli 1.0.21 → 1.0.22
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/dist/src/cli/commands/capability-commands.d.ts +1 -1
- package/dist/src/cli/commands/capability-commands.js +2 -5
- package/dist/src/cli/commands/config-commands.js +2 -85
- package/dist/src/cli/commands/core-artifact-commands.js +6 -1
- package/dist/src/cli/commands/request-commands.js +82 -2
- package/dist/src/cli/commands/scan-commands.js +30 -0
- package/dist/src/cli/commands/workflow-commands.js +9 -5
- package/dist/src/services/artifacts/artifact-prerequisites.js +53 -13
- package/dist/src/services/artifacts/artifact-service.js +2 -2
- package/dist/src/services/artifacts/request-artifact-service.d.ts +32 -0
- package/dist/src/services/artifacts/request-artifact-service.js +148 -16
- package/dist/src/services/artifacts/workspace-service.js +8 -9
- package/dist/src/services/config/config-service.js +54 -69
- package/dist/src/services/config/config-types.d.ts +0 -2
- package/dist/src/services/config/config-types.js +0 -2
- package/dist/src/services/mode/bypass-tracker.d.ts +4 -0
- package/dist/src/services/mode/bypass-tracker.js +31 -0
- package/dist/src/services/mode/mode-enforcement.d.ts +14 -0
- package/dist/src/services/mode/mode-enforcement.js +81 -0
- package/dist/src/services/sc/sc-service.js +5 -5
- package/dist/src/services/scan/file-size-scan.d.ts +19 -0
- package/dist/src/services/scan/file-size-scan.js +44 -0
- package/dist/src/services/session/index.d.ts +1 -0
- package/dist/src/services/session/index.js +1 -0
- package/dist/src/services/session/session-manager.d.ts +60 -0
- package/dist/src/services/session/session-manager.js +150 -0
- package/dist/src/services/skills/skill-presence-service.d.ts +4 -1
- package/dist/src/services/skills/skill-presence-service.js +11 -1
- package/dist/src/services/workspace/workspace-service.js +6 -0
- package/dist/src/shared/change-id.d.ts +13 -0
- package/dist/src/shared/change-id.js +32 -1
- package/dist/src/shared/incrementing-number.d.ts +31 -0
- package/dist/src/shared/incrementing-number.js +58 -0
- package/dist/src/shared/version.d.ts +1 -1
- package/dist/src/shared/version.js +1 -1
- package/package.json +1 -1
- package/skills/peaks-rd/SKILL.md +3 -0
- package/skills/peaks-solo/SKILL.md +9 -11
- package/skills/peaks-ui/SKILL.md +3 -0
|
@@ -77,27 +77,24 @@ For frontend workflows, RD and QA must use Playwright MCP (`mcp__playwright__` t
|
|
|
77
77
|
|
|
78
78
|
### Workspace initialization gate
|
|
79
79
|
|
|
80
|
-
Before ANY role handoff or artifact write, Peaks Solo MUST create the workspace.
|
|
80
|
+
Before ANY role handoff or artifact write, Peaks Solo MUST create the workspace. Session IDs are now **auto-generated** with the format `YYYY-MM-DD-session-<6位hex>` (e.g. `2026-05-26-session-a3f8b1`). The user does not provide a session ID — the system creates and persists it in `.peaks/.session.json`.
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
- Numeric-only: `1779674289`, `1779672642`
|
|
84
|
-
- Generic suffixes: `session`, `work`, `task`, `test`, `temp`, `tmp`
|
|
85
|
-
- Bare dates without topic: `2026-05-25`
|
|
86
|
-
- Timestamps: `20260525T093000`
|
|
82
|
+
When `peaks workspace init` is run without `--session-id`, it automatically generates a new session ID using today's date and a random hex suffix. If `.peaks/.session.json` already exists with a valid session, the existing session is reused.
|
|
87
83
|
|
|
88
|
-
**Existing old-session cleanup**: If `.peaks/` contains numeric-only or generic session directories from prior runs, create the new correctly-named session, migrate any reusable artifacts into it, and note the migration in the TXT handoff. Delete empty old-session directories.
|
|
84
|
+
**Existing old-session cleanup**: If `.peaks/` contains numeric-only or generic session directories from prior runs (e.g. `2026-05-25-auth-system`), create the new correctly-named session, migrate any reusable artifacts into it, and note the migration in the TXT handoff. Delete empty old-session directories.
|
|
89
85
|
|
|
90
86
|
```bash
|
|
91
|
-
peaks workspace init --project <repo> --
|
|
87
|
+
peaks workspace init --project <repo> --json
|
|
92
88
|
```
|
|
93
89
|
|
|
94
|
-
The workspace initialization creates this structure under `.peaks/<session-id
|
|
90
|
+
The workspace initialization creates this structure under `.peaks/<session-id>/` (where `<session-id>` is auto-generated as `YYYY-MM-DD-session-<6位hex>`):
|
|
95
91
|
|
|
96
92
|
```
|
|
97
93
|
prd/source/ # PRD source documents (Feishu exports, pasted content)
|
|
98
94
|
prd/requests/ # PRD request artifacts (goals, non-goals, acceptance, frontend delta)
|
|
99
95
|
ui/requests/ # UI request artifacts (visual direction, taste reports)
|
|
100
96
|
rd/requests/ # RD request artifacts (slice specs, coverage, CR findings)
|
|
97
|
+
rd/project-scan.md # Project scan (session-scoped singleton, generated once per session)
|
|
101
98
|
qa/test-cases/ # QA test cases
|
|
102
99
|
qa/test-reports/ # QA test reports (regression matrices, browser evidence)
|
|
103
100
|
qa/requests/ # QA request artifacts
|
|
@@ -138,7 +135,7 @@ Do not default to git-backed storage or automatic commits for intermediate artif
|
|
|
138
135
|
|
|
139
136
|
## Pre-RD project scan checklist (MANDATORY)
|
|
140
137
|
|
|
141
|
-
Before handing off to `peaks-rd`, scan the project and record findings to `.peaks/<session-id>/rd/project-scan.md`. RD and UI roles read this before starting work.
|
|
138
|
+
Before handing off to `peaks-rd`, scan the project and record findings to `.peaks/<session-id>/rd/project-scan.md`. RD and UI roles read this before starting work. **project-scan.md is a session-scoped singleton** — check if it already exists before regenerating (e.g. via `ls .peaks/<session-id>/rd/project-scan.md`). If it exists and is complete (has `## Archetype` and `## Project mode` sections), reuse it. Only regenerate if missing or incomplete.
|
|
142
139
|
|
|
143
140
|
### 0. Project archetype detection (MANDATORY — run FIRST, deterministic CLI)
|
|
144
141
|
|
|
@@ -388,6 +385,7 @@ ls .peaks/<id>/rd/project-scan.md
|
|
|
388
385
|
# Expected output: .peaks/<id>/rd/project-scan.md
|
|
389
386
|
# "No such file" → STOP, run project scan first
|
|
390
387
|
# File present but missing `## Archetype` or `## Project mode` sections → INCOMPLETE, rerun scan
|
|
388
|
+
# File present and complete → reuse (project-scan is a session-scoped singleton)
|
|
391
389
|
```
|
|
392
390
|
|
|
393
391
|
**Gate A.5 — Existing-system extraction (legacy projects only):**
|
|
@@ -571,7 +569,7 @@ The end-to-end CLI sequence for the `full-auto` profile. `assisted` and `strict`
|
|
|
571
569
|
peaks doctor --json
|
|
572
570
|
peaks project dashboard --project <repo> --json
|
|
573
571
|
peaks skill runbook peaks-solo --json
|
|
574
|
-
peaks workspace init --project <repo> --
|
|
572
|
+
peaks workspace init --project <repo> --json
|
|
575
573
|
peaks scan archetype --project <repo> --json
|
|
576
574
|
# → copy archetype, frontendOnly, signals into .peaks/<session-id>/rd/project-scan.md (Gate A)
|
|
577
575
|
# → if archetype != greenfield AND archetype != unknown:
|
package/skills/peaks-ui/SKILL.md
CHANGED
|
@@ -67,6 +67,9 @@ peaks mcp apply --capability playwright-mcp.browser-validation --yes --json
|
|
|
67
67
|
|
|
68
68
|
# 3. read project-scan for component library and CSS framework context
|
|
69
69
|
# check .peaks/<session-id>/rd/project-scan.md (blocking if missing for existing projects)
|
|
70
|
+
# NOTE: project-scan.md is a session-scoped singleton — check if it already exists before
|
|
71
|
+
# regenerating. If it exists and is complete (has `## Archetype` and `## Project mode`
|
|
72
|
+
# sections), reuse it.
|
|
70
73
|
|
|
71
74
|
# 4. PROTOTYPE FIDELITY CHECK (MANDATORY before any design work):
|
|
72
75
|
# Check if a Figma file, PRD screenshots, or explicit PRD visuals exist.
|