@wrongstack/core 0.257.0 → 0.260.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 (65) hide show
  1. package/dist/{agent-bridge-BrxWHEOm.d.ts → agent-bridge-BbskZ7HH.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-US741uBH.d.ts → agent-subagent-runner-BNIGZx18.d.ts} +28 -8
  3. package/dist/{brain-TjEEwSpw.d.ts → brain-C2yDd7Lw.d.ts} +58 -1
  4. package/dist/{compactor-C5sT4U7I.d.ts → compactor-t0R_AIt_.d.ts} +1 -1
  5. package/dist/{config-DuAu23zm.d.ts → config-FG6As4H5.d.ts} +1 -1
  6. package/dist/{context-CGdgA0q6.d.ts → context-JFOVvu6z.d.ts} +22 -0
  7. package/dist/coordination/index.d.ts +14 -14
  8. package/dist/coordination/index.js +195 -33
  9. package/dist/coordination/index.js.map +1 -1
  10. package/dist/defaults/index.d.ts +25 -25
  11. package/dist/defaults/index.js +908 -92
  12. package/dist/defaults/index.js.map +1 -1
  13. package/dist/execution/index.d.ts +15 -15
  14. package/dist/execution/index.js +134 -35
  15. package/dist/execution/index.js.map +1 -1
  16. package/dist/execution/prompt-enhancer.d.ts +1 -1
  17. package/dist/extension/index.d.ts +6 -6
  18. package/dist/{goal-preamble-UiEkbNmW.d.ts → goal-preamble-B1IXJtLX.d.ts} +11 -9
  19. package/dist/{goal-store-CV9Yz2X_.d.ts → goal-store-CPXz6Mml.d.ts} +4 -2
  20. package/dist/{index-CitPrI3a.d.ts → index-BPcg4N3M.d.ts} +5 -5
  21. package/dist/{index-CC0Mcm05.d.ts → index-CebbJB94.d.ts} +8 -8
  22. package/dist/index.d.ts +47 -43
  23. package/dist/index.js +1571 -284
  24. package/dist/index.js.map +1 -1
  25. package/dist/infrastructure/index.d.ts +6 -6
  26. package/dist/kernel/index.d.ts +9 -9
  27. package/dist/kernel/index.js.map +1 -1
  28. package/dist/{llm-selector-CJ4SyAFE.d.ts → llm-selector-DXxI2tlu.d.ts} +2 -2
  29. package/dist/{mcp-servers-D8YnLaEp.d.ts → mcp-servers-OwNHo43-.d.ts} +3 -3
  30. package/dist/models/index.d.ts +5 -5
  31. package/dist/{models-registry-ByZCdFuQ.d.ts → models-registry-Djlmq4uB.d.ts} +1 -1
  32. package/dist/{multi-agent-coordinator-DqTUEAeC.d.ts → multi-agent-coordinator-CEmrSCMJ.d.ts} +1 -1
  33. package/dist/{null-fleet-bus-B5mfTJXT.d.ts → null-fleet-bus-DT92xqgJ.d.ts} +13 -8
  34. package/dist/observability/index.d.ts +2 -2
  35. package/dist/{package-outdated-watcher-BSgR_kK-.d.ts → package-outdated-watcher-C70ag2G9.d.ts} +3 -3
  36. package/dist/{parallel-eternal-engine-C0juOszP.d.ts → parallel-eternal-engine-0SItuq5r.d.ts} +13 -9
  37. package/dist/{path-resolver-CbkT-RMU.d.ts → path-resolver-DKBh6Jlo.d.ts} +3 -3
  38. package/dist/{permission-CwBBpCoF.d.ts → permission-BJ7eO9Vl.d.ts} +1 -1
  39. package/dist/{permission-policy-B8rSu908.d.ts → permission-policy-DEXOfnpm.d.ts} +3 -2
  40. package/dist/{pipeline-JG8XoudC.d.ts → pipeline-zflkI2dp.d.ts} +2 -2
  41. package/dist/{plan-templates-DPiQMkBz.d.ts → plan-templates-BFXyRkEK.d.ts} +32 -11
  42. package/dist/{provider-runner-hM7EXlLI.d.ts → provider-runner-BC-uywtT.d.ts} +3 -3
  43. package/dist/{retry-policy-Tg7LXkoK.d.ts → retry-policy-Cavrzmtk.d.ts} +1 -1
  44. package/dist/sdd/index.d.ts +8 -8
  45. package/dist/sdd/index.js +20 -2
  46. package/dist/sdd/index.js.map +1 -1
  47. package/dist/{secret-vault-gxtFZYBt.d.ts → secret-vault-CDvDYXWX.d.ts} +1 -1
  48. package/dist/security/index.d.ts +4 -4
  49. package/dist/security/index.js +30 -1
  50. package/dist/security/index.js.map +1 -1
  51. package/dist/{selector-DWsqVjGf.d.ts → selector-B7AivHsu.d.ts} +1 -1
  52. package/dist/{session-event-bridge-BAFWdgQ3.d.ts → session-event-bridge-BmIDxdJd.d.ts} +1 -1
  53. package/dist/{session-reader-CqRvaL5v.d.ts → session-reader-DtofsB-2.d.ts} +1 -1
  54. package/dist/storage/index.d.ts +30 -21
  55. package/dist/storage/index.js +1264 -216
  56. package/dist/storage/index.js.map +1 -1
  57. package/dist/types/index.d.ts +19 -19
  58. package/dist/types/index.js +8 -0
  59. package/dist/types/index.js.map +1 -1
  60. package/dist/utils/index.d.ts +101 -3
  61. package/dist/utils/index.js +92 -1
  62. package/dist/utils/index.js.map +1 -1
  63. package/package.json +1 -1
  64. package/skills/output-standards/SKILL.md +14 -9
  65. package/skills/output-standards/SKILL.save.md +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/core",
3
- "version": "0.257.0",
3
+ "version": "0.260.0",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack core: kernel, types, defaults, and shared utilities for the WrongStack CLI agent.",
6
6
  "repository": {
@@ -15,12 +15,13 @@ extract structured data from agent responses.
15
15
 
16
16
  ## Rules
17
17
 
18
- 1. **Every final message MUST include `<next_steps>` tag** — no exceptions for completed tasks.
18
+ 1. **Only the leader agent's final message MUST include `<next_steps>` tag** — subagents report findings only. If nothing is pending, write "No pending actions."
19
19
  2. **Tags must be properly closed** — `<next_steps>...</next_steps>` with exact tag names.
20
20
  3. **No markdown inside tags** — plain text only, one action per line.
21
21
  4. **Use imperative mood** — "Fix X", "Run Y", not "Fixed X" or "Running Y".
22
22
  5. **Be specific** — mention file paths, tool names, or exact commands.
23
23
  6. **Keep concise** — max 5 items unless the task genuinely requires more.
24
+ 7. **Items must be concrete actionable commands** — something another agent or the user can immediately execute. Never write declarations of intent ("we should fix X", "consider refactoring Y") or manual execution suggestions ("manually review file Z", "check if X is correct").
24
25
 
25
26
  ## Output Format
26
27
 
@@ -105,24 +106,28 @@ Next steps:
105
106
 
106
107
  When a **leader agent** synthesizes output from **subagents**, the leader MUST:
107
108
 
108
- 1. Aggregate all subagent `next_steps` into a unified `<next_steps>` section
109
- 2. Remove duplicates (dedupe by file path + action)
110
- 3. Re-prioritize if needed (critical > high > medium > low)
111
- 4. Keep the unified list within the 5-item guideline, but no hard cap
109
+ 1. Collect findings from subagents (they return results, not `<next_steps>`)
110
+ 2. Based on findings, produce a unified `<next_steps>` section
111
+ 3. Remove duplicates (dedupe by file path + action)
112
+ 4. Re-prioritize if needed (critical > high > medium > low)
113
+ 5. Keep the unified list within the 5-item guideline, but no hard cap
112
114
 
113
115
  When a **subagent** completes its task, it MUST:
114
116
 
115
- 1. Include its own `<next_steps>` section in the final message
116
- 2. Report what it found/achieved, not what the leader should do
117
- 3. Leader will aggregate and decide on overall next steps
117
+ 1. **NOT include `<next_steps>`** in its output — report findings only
118
+ 2. Report what it found/achieved in a structured, self-contained format
119
+ 3. Let the leader decide what next steps follow from the findings
118
120
 
119
121
  ## Anti-patterns
120
122
 
121
123
  - **Don't use markdown inside `<next_steps>`** — plain text only
122
- - **Don't skip the tag** — even if next steps are obvious, include them
124
+ - **Don't skip the tag** — the leader's final message always needs one
123
125
  - **Don't use dashes or asterisks** — use `1.`, `2.`, `3.` numbering
124
126
  - **Don't be vague** — "fix bugs" is useless, "fix auth/session.ts:42" is actionable
125
127
  - **Don't exceed 5 items without reason** — if >5, it's probably not a single task
128
+ - **Don't write declarations of intent** — "we should refactor X" is not actionable; "Extract the parseConfig function in core/config.ts:88" is
129
+ - **Don't suggest manual review** — "manually check if X is correct" is not a next step; "Run pnpm typecheck to verify" is
130
+ - **Don't include `<next_steps>` in subagent output** — subagents report findings, leaders produce next steps
126
131
 
127
132
  ## Skills in scope
128
133
 
@@ -4,12 +4,13 @@ Standardizes the format of agent output, particularly the `<next_steps>` section
4
4
 
5
5
  ## Rules
6
6
 
7
- 1. Every final message MUST include `<next_steps>` tag no exceptions.
7
+ 1. Only the leader agent includes `<next_steps>` — subagents report findings only.
8
8
  2. Tags must be properly closed — `<next_steps>...</next_steps>`.
9
9
  3. No markdown inside tags — plain text only, one action per line.
10
10
  4. Use imperative mood — "Fix X", not "Fixed X".
11
11
  5. Be specific — mention file paths, tool names, or exact commands.
12
- 6. Keep concise max 5 items unless the task genuinely requires more.
12
+ 6. Items must be concrete actionable commands no declarations of intent.
13
+ 7. Keep concise — max 5 items unless the task genuinely requires more.
13
14
 
14
15
  ## Format
15
16