peaks-cli 1.2.8 → 1.3.0

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.
Files changed (41) hide show
  1. package/README.md +12 -0
  2. package/dist/src/cli/commands/project-commands.js +1 -1
  3. package/dist/src/cli/commands/scan-commands.js +22 -0
  4. package/dist/src/cli/commands/workspace-commands.js +59 -1
  5. package/dist/src/services/memory/project-memory-service.d.ts +1 -1
  6. package/dist/src/services/memory/project-memory-service.js +52 -23
  7. package/dist/src/services/sc/sc-service.d.ts +52 -1
  8. package/dist/src/services/sc/sc-service.js +266 -17
  9. package/dist/src/services/scan/libraries-service.d.ts +24 -0
  10. package/dist/src/services/scan/libraries-service.js +419 -0
  11. package/dist/src/services/scan/libraries-types.d.ts +59 -0
  12. package/dist/src/services/scan/libraries-types.js +9 -0
  13. package/dist/src/services/session/session-manager.d.ts +7 -5
  14. package/dist/src/services/session/session-manager.js +48 -14
  15. package/dist/src/services/skills/skill-presence-service.js +102 -68
  16. package/dist/src/services/skills/skill-runbook-service.js +36 -2
  17. package/dist/src/services/skills/skill-statusline-service.js +13 -7
  18. package/dist/src/services/workflow/autonomous-resume-writer.js +7 -7
  19. package/dist/src/services/workspace/reconcile-service.d.ts +119 -0
  20. package/dist/src/services/workspace/reconcile-service.js +464 -0
  21. package/dist/src/services/workspace/reconcile-types.d.ts +93 -0
  22. package/dist/src/services/workspace/reconcile-types.js +13 -0
  23. package/dist/src/shared/change-id.d.ts +30 -0
  24. package/dist/src/shared/change-id.js +40 -6
  25. package/dist/src/shared/paths.d.ts +1 -1
  26. package/dist/src/shared/paths.js +2 -1
  27. package/dist/src/shared/version.d.ts +1 -1
  28. package/dist/src/shared/version.js +1 -1
  29. package/package.json +4 -1
  30. package/schemas/library-breaking-changes.data.json +141 -0
  31. package/schemas/library-breaking-changes.meta.json +6 -0
  32. package/schemas/library-breaking-changes.schema.json +50 -0
  33. package/skills/peaks-qa/SKILL.md +12 -0
  34. package/skills/peaks-rd/SKILL.md +145 -2
  35. package/skills/peaks-solo/SKILL.md +93 -319
  36. package/skills/peaks-solo/references/runbook.md +168 -0
  37. package/skills/peaks-solo/references/workflow-gates-and-types.md +177 -0
  38. package/skills/peaks-solo-resume/SKILL.md +81 -0
  39. package/skills/peaks-solo-status/SKILL.md +120 -0
  40. package/skills/peaks-solo-test/SKILL.md +84 -0
  41. package/skills/peaks-txt/SKILL.md +8 -5
@@ -107,17 +107,19 @@ Each entry should include:
107
107
 
108
108
  ## Project memory guidance
109
109
 
110
- When a skill artifact contains reusable project facts, decisions, rules, or constraints, mark only the stable extract with:
110
+ When a skill artifact contains reusable project facts, decisions, rules, constraints, **or LLM-discovered runtime lessons**, mark only the stable extract with:
111
111
 
112
112
  ```markdown
113
113
  <!-- peaks-memory:start -->
114
114
  title: Short project memory title
115
- kind: project
115
+ kind: project | decision | convention | rule | reference | module | lesson
116
116
  ---
117
117
  Stable memory body.
118
118
  <!-- peaks-memory:end -->
119
119
  ```
120
120
 
121
+ The `lesson` kind is specifically for **runtime observations the LLM made during work** (e.g. "this project's antv6 Drawer uses `size` not `width`"; "this codebase imports test helpers from `src/test-utils/` not `__mocks__/`"). Lessons are loaded by `peaks project memories` as `HOT` so they appear in every future RD preflight.
122
+
121
123
  The primary write target is the target project's `.peaks/memory`. Use `peaks memory extract --project <path> --artifact <artifact> --apply` to write durable project memories; omit `--apply` to preview without writing.
122
124
 
123
125
  ## Matt Pocock skills integration
@@ -191,12 +193,13 @@ peaks understand show --project <repo> --json
191
193
  peaks capabilities --json
192
194
 
193
195
  # 5. Write the handoff capsule (see template above), then embed memory markers
194
- # For each stable project fact, decision, rule, or convention discovered this session,
195
- # append a <!-- peaks-memory:start --> block inside the capsule body:
196
+ # For each stable project fact, decision, rule, convention, or LLM-discovered
197
+ # runtime LESSON discovered this session, append a <!-- peaks-memory:start -->
198
+ # block inside the capsule body:
196
199
  #
197
200
  # <!-- peaks-memory:start -->
198
201
  # title: Short project memory title
199
- # kind: project | decision | convention | rule | reference | module
202
+ # kind: project | decision | convention | rule | reference | module | lesson
200
203
  # ---
201
204
  # Stable memory body. Concrete facts only — no secrets, no transient state.
202
205
  # <!-- peaks-memory:end -->