agent-method 1.5.12

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 (108) hide show
  1. package/README.md +343 -0
  2. package/bin/wwa.js +115 -0
  3. package/docs/internal/cli-commands.yaml +259 -0
  4. package/docs/internal/doc-tokens.yaml +1103 -0
  5. package/docs/internal/feature-registry.yaml +1643 -0
  6. package/lib/boundaries.js +247 -0
  7. package/lib/cli/add.js +170 -0
  8. package/lib/cli/casestudy.js +1000 -0
  9. package/lib/cli/check.js +323 -0
  10. package/lib/cli/close.js +838 -0
  11. package/lib/cli/completion.js +735 -0
  12. package/lib/cli/deps.js +234 -0
  13. package/lib/cli/digest.js +73 -0
  14. package/lib/cli/doc-review.js +486 -0
  15. package/lib/cli/docs.js +315 -0
  16. package/lib/cli/helpers.js +198 -0
  17. package/lib/cli/implement.js +169 -0
  18. package/lib/cli/init.js +280 -0
  19. package/lib/cli/pipeline.js +206 -0
  20. package/lib/cli/plan.js +140 -0
  21. package/lib/cli/record.js +98 -0
  22. package/lib/cli/refine.js +202 -0
  23. package/lib/cli/report-helpers.js +113 -0
  24. package/lib/cli/review.js +76 -0
  25. package/lib/cli/routable.js +109 -0
  26. package/lib/cli/route.js +101 -0
  27. package/lib/cli/scan.js +133 -0
  28. package/lib/cli/serve.js +23 -0
  29. package/lib/cli/status.js +65 -0
  30. package/lib/cli/update-docs.js +574 -0
  31. package/lib/cli/upgrade.js +222 -0
  32. package/lib/cli/watch.js +32 -0
  33. package/lib/dependencies.js +196 -0
  34. package/lib/init.js +692 -0
  35. package/lib/mcp-server.js +612 -0
  36. package/lib/pipeline.js +907 -0
  37. package/lib/registry.js +132 -0
  38. package/lib/watcher.js +165 -0
  39. package/package.json +54 -0
  40. package/templates/README.md +363 -0
  41. package/templates/entry-points/.cursorrules +90 -0
  42. package/templates/entry-points/AGENT.md +90 -0
  43. package/templates/entry-points/CLAUDE.md +88 -0
  44. package/templates/extensions/MANIFEST.md +110 -0
  45. package/templates/extensions/analytical-system.md +96 -0
  46. package/templates/extensions/code-project.md +77 -0
  47. package/templates/extensions/data-exploration.md +117 -0
  48. package/templates/full/.context/BASE.md +101 -0
  49. package/templates/full/.context/COMPOSITION.md +47 -0
  50. package/templates/full/.context/INDEX.yaml +56 -0
  51. package/templates/full/.context/METHODOLOGY.md +246 -0
  52. package/templates/full/.context/PROTOCOL.yaml +169 -0
  53. package/templates/full/.context/REGISTRY.md +75 -0
  54. package/templates/full/.cursorrules +90 -0
  55. package/templates/full/AGENT.md +90 -0
  56. package/templates/full/CLAUDE.md +90 -0
  57. package/templates/full/Management/DIGEST.md +23 -0
  58. package/templates/full/Management/STATUS.md +46 -0
  59. package/templates/full/PLAN.md +67 -0
  60. package/templates/full/PROJECT-PROFILE.md +61 -0
  61. package/templates/full/PROJECT.md +80 -0
  62. package/templates/full/REQUIREMENTS.md +30 -0
  63. package/templates/full/ROADMAP.md +39 -0
  64. package/templates/full/Reviews/INDEX.md +41 -0
  65. package/templates/full/Reviews/backlog.md +52 -0
  66. package/templates/full/Reviews/plan.md +43 -0
  67. package/templates/full/Reviews/project.md +41 -0
  68. package/templates/full/Reviews/requirements.md +42 -0
  69. package/templates/full/Reviews/roadmap.md +41 -0
  70. package/templates/full/Reviews/state.md +56 -0
  71. package/templates/full/SESSION-LOG.md +102 -0
  72. package/templates/full/STATE.md +42 -0
  73. package/templates/full/SUMMARY.md +27 -0
  74. package/templates/full/agentWorkflows/INDEX.md +42 -0
  75. package/templates/full/agentWorkflows/observations.md +65 -0
  76. package/templates/full/agentWorkflows/patterns.md +68 -0
  77. package/templates/full/agentWorkflows/sessions.md +92 -0
  78. package/templates/full/intro/README.md +39 -0
  79. package/templates/full/registry/feature-registry.yaml +25 -0
  80. package/templates/full/registry/features/catalog.yaml +743 -0
  81. package/templates/full/registry/features/protocol.yaml +121 -0
  82. package/templates/full/registry/features/routing.yaml +358 -0
  83. package/templates/full/registry/features/workflows.yaml +404 -0
  84. package/templates/full/todos/backlog.md +19 -0
  85. package/templates/starter/.context/BASE.md +66 -0
  86. package/templates/starter/.context/INDEX.yaml +51 -0
  87. package/templates/starter/.context/METHODOLOGY.md +228 -0
  88. package/templates/starter/.context/PROTOCOL.yaml +165 -0
  89. package/templates/starter/.cursorrules +90 -0
  90. package/templates/starter/AGENT.md +90 -0
  91. package/templates/starter/CLAUDE.md +90 -0
  92. package/templates/starter/Management/DIGEST.md +23 -0
  93. package/templates/starter/Management/STATUS.md +46 -0
  94. package/templates/starter/PLAN.md +67 -0
  95. package/templates/starter/PROJECT-PROFILE.md +44 -0
  96. package/templates/starter/PROJECT.md +80 -0
  97. package/templates/starter/ROADMAP.md +39 -0
  98. package/templates/starter/Reviews/INDEX.md +75 -0
  99. package/templates/starter/SESSION-LOG.md +102 -0
  100. package/templates/starter/STATE.md +42 -0
  101. package/templates/starter/SUMMARY.md +27 -0
  102. package/templates/starter/agentWorkflows/INDEX.md +61 -0
  103. package/templates/starter/intro/README.md +37 -0
  104. package/templates/starter/registry/feature-registry.yaml +25 -0
  105. package/templates/starter/registry/features/catalog.yaml +743 -0
  106. package/templates/starter/registry/features/protocol.yaml +121 -0
  107. package/templates/starter/registry/features/routing.yaml +358 -0
  108. package/templates/starter/registry/features/workflows.yaml +404 -0
@@ -0,0 +1,259 @@
1
+ #
2
+ # CLI Command Metadata — agent-readable reference for wwa CLI.
3
+ #
4
+ # Purpose:
5
+ # - Single source of truth for command semantics that agents can read
6
+ # - Avoids scraping human docs to discover which commands are safe to run
7
+ # - Describes routable workflow commands and append-only `wwa add` variants
8
+ #
9
+ # Conventions:
10
+ # - name: Logical command identifier (no `wwa` prefix)
11
+ # - cli: Full CLI invocation pattern (human + agent)
12
+ # - category: setup | workflow | routable | add | analysis | pipeline | server | completion
13
+ # - tier: developer | pipeline | server | completion
14
+ # - safe_for_agent:
15
+ # - true → safe to auto-run from an agent (read-only or append-only to methodology files)
16
+ # - false → require explicit human approval before running
17
+ # - query_type: For routable workflow commands, the fixed query_type they simulate
18
+ # - reads: High-level file paths or categories the command reads
19
+ # - writes: High-level file paths or categories the command writes (may be empty)
20
+ # - when_to_use: Short description of usage context
21
+ # - examples: Short example invocations
22
+ #
23
+
24
+ version: "v1.0"
25
+
26
+ cli_commands:
27
+ # ---------------------------------------------------------------------------
28
+ # Routable workflow commands (Phase 7p)
29
+ # ---------------------------------------------------------------------------
30
+
31
+ - name: project-discovery
32
+ cli: "wwa project-discovery"
33
+ category: routable
34
+ tier: developer
35
+ safe_for_agent: true
36
+ query_type: project_discovery
37
+ description: "Run discovery workflow routing for brownfield scans and project-wide discovery."
38
+ when_to_use: "When the agent needs to understand an existing project before making changes."
39
+ reads:
40
+ - "Entry point (CLAUDE.md/.cursorrules/AGENT.md)"
41
+ - "STATE.md"
42
+ - "Project directory structure"
43
+ - "Package files (package.json, pyproject.toml, requirements.txt, etc.)"
44
+ writes: []
45
+ examples:
46
+ - "wwa project-discovery -p code"
47
+ - "wwa project-discovery -p data --json"
48
+
49
+ - name: context-refresh
50
+ cli: "wwa context-refresh"
51
+ category: routable
52
+ tier: developer
53
+ safe_for_agent: true
54
+ query_type: context_refresh
55
+ description: "Run context refresh workflow routing to update .context/ after changes."
56
+ when_to_use: "After code or structure changes, before the next session, to keep .context/ in sync."
57
+ reads:
58
+ - ".context/BASE.md"
59
+ - "Project directory structure"
60
+ - "Entry point"
61
+ writes: []
62
+ examples:
63
+ - "wwa context-refresh -p code"
64
+ - "wwa context-refresh --json"
65
+
66
+ - name: phase-complete
67
+ cli: "wwa phase-complete"
68
+ category: routable
69
+ tier: developer
70
+ safe_for_agent: true
71
+ query_type: phase_completion
72
+ description: "Run phase completion routing to see which files participate in a phase gate."
73
+ when_to_use: "When a ROADMAP phase is complete and the agent needs to see required gate updates."
74
+ reads:
75
+ - "ROADMAP.md"
76
+ - "PLAN.md"
77
+ - "STATE.md"
78
+ writes: []
79
+ examples:
80
+ - "wwa phase-complete"
81
+ - "wwa phase-complete -p code --json"
82
+
83
+ - name: backlog
84
+ cli: "wwa backlog"
85
+ category: routable
86
+ tier: developer
87
+ safe_for_agent: true
88
+ query_type: backlog
89
+ description: "Show routing for backlog work: which files to read/write when adding backlog items."
90
+ when_to_use: "When planning to add or reorganize backlog entries and wanting correct read/write sets."
91
+ reads:
92
+ - "todos/backlog.md"
93
+ - "Entry point scoping + cascade tables"
94
+ writes: []
95
+ examples:
96
+ - "wwa backlog"
97
+ - "wwa backlog --json"
98
+
99
+ - name: plan-create
100
+ cli: "wwa plan-create"
101
+ category: routable
102
+ tier: developer
103
+ safe_for_agent: true
104
+ query_type: planning
105
+ description: "Run planning workflow routing to see which files to read/write when creating or updating PLAN.md."
106
+ when_to_use: "Before creating or significantly updating PLAN.md for a new task or phase."
107
+ reads:
108
+ - "PLAN.md"
109
+ - "STATE.md"
110
+ - "ROADMAP.md"
111
+ writes: []
112
+ examples:
113
+ - "wwa plan-create -p code"
114
+ - "wwa plan-create --json"
115
+
116
+ - name: dependency-analysis
117
+ cli: "wwa dependency-analysis"
118
+ category: routable
119
+ tier: developer
120
+ safe_for_agent: true
121
+ query_type: dependency_analysis
122
+ description: "Run dependency analysis routing to inspect how dependency analysis should read/write context."
123
+ when_to_use: "When analyzing code or document dependencies before large refactors or docs changes."
124
+ reads:
125
+ - "Project directory structure"
126
+ - "Package and dependency manifests"
127
+ - ".context/BASE.md"
128
+ writes: []
129
+ examples:
130
+ - "wwa dependency-analysis -p code"
131
+ - "wwa dependency-analysis --json"
132
+
133
+ - name: debt-assessment
134
+ cli: "wwa debt-assessment"
135
+ category: routable
136
+ tier: developer
137
+ safe_for_agent: true
138
+ query_type: debt_assessment
139
+ description: "Run debt assessment routing to see how a technical-debt assessment would read/write methodology files."
140
+ when_to_use: "When the agent needs to assess technical debt, patterns, or risks before planning remediation."
141
+ reads:
142
+ - ".context/BASE.md"
143
+ - "Key source files (per SCAN features)"
144
+ - "STATE.md"
145
+ writes: []
146
+ examples:
147
+ - "wwa debt-assessment -p code"
148
+ - "wwa debt-assessment --json"
149
+
150
+ - name: docs-update
151
+ cli: "wwa docs-update"
152
+ category: routable
153
+ tier: developer
154
+ safe_for_agent: true
155
+ query_type: docs_update
156
+ description: "Run docs update routing to understand which docs and scaffolding rules apply."
157
+ when_to_use: "Before editing docs/ so the agent knows which docs and context files to touch."
158
+ reads:
159
+ - ".context/DOCS-MAP.md"
160
+ - "docs/ directory inventory"
161
+ - "Entry point cascade table"
162
+ writes: []
163
+ examples:
164
+ - "wwa docs-update -p code"
165
+ - "wwa docs-update --json"
166
+
167
+ - name: cross-reference
168
+ cli: "wwa cross-reference"
169
+ category: routable
170
+ tier: developer
171
+ safe_for_agent: true
172
+ query_type: cross_reference
173
+ description: "Run cross-reference routing to check which specs/docs should be compared for consistency."
174
+ when_to_use: "When ensuring consistency across specs and docs before or after a change."
175
+ reads:
176
+ - "Relevant specs/docs as determined by registry"
177
+ - "Entry point scoping + cascade tables"
178
+ writes: []
179
+ examples:
180
+ - "wwa cross-reference -p code"
181
+ - "wwa cross-reference --json"
182
+
183
+ # ---------------------------------------------------------------------------
184
+ # Append-only commands (wwa add …)
185
+ # ---------------------------------------------------------------------------
186
+
187
+ - name: add-backlog
188
+ cli: "wwa add backlog"
189
+ category: add
190
+ tier: developer
191
+ safe_for_agent: true
192
+ description: "Append a backlog item to todos/backlog.md in the standard checklist format."
193
+ when_to_use: "When capturing an idea, task, or follow-up item that should live in the backlog."
194
+ reads:
195
+ - "todos/backlog.md (if it exists)"
196
+ writes:
197
+ - "todos/backlog.md"
198
+ examples:
199
+ - "wwa add backlog \"Add workflow trigger queries as CLI tools\""
200
+ - "echo \"- [ ] **Title** — description\" | wwa add backlog --file -"
201
+
202
+ - name: add-decision
203
+ cli: "wwa add decision"
204
+ category: add
205
+ tier: developer
206
+ safe_for_agent: true
207
+ description: "Append a decision row to the STATE.md decisions table with date and rationale."
208
+ when_to_use: "Immediately after a decision is made so it is preserved in STATE.md."
209
+ reads:
210
+ - "STATE.md"
211
+ writes:
212
+ - "STATE.md"
213
+ examples:
214
+ - "wwa add decision \"2026-03-16 | Use PostgreSQL for persistence | Single source of truth\""
215
+
216
+ - name: add-finding
217
+ cli: "wwa add finding"
218
+ category: add
219
+ tier: developer
220
+ safe_for_agent: true
221
+ description: "Append a methodology finding to the appropriate docs/internal review file."
222
+ when_to_use: "When the agent discovers a methodology-related issue or improvement during work."
223
+ reads:
224
+ - "docs/internal/review/* (if present)"
225
+ writes:
226
+ - "docs/internal/review/findings.md"
227
+ examples:
228
+ - "wwa add finding \"Parser doesn't handle SESSION-LOG section headers\""
229
+
230
+ - name: add-session
231
+ cli: "wwa add session"
232
+ category: add
233
+ tier: developer
234
+ safe_for_agent: true
235
+ description: "Append a complete session entry block to SESSION-LOG.md."
236
+ when_to_use: "At or near session close, after the agent has prepared a full Entry-format block."
237
+ reads:
238
+ - "SESSION-LOG.md"
239
+ writes:
240
+ - "SESSION-LOG.md"
241
+ examples:
242
+ - "wwa add session --file session-entry.md"
243
+ - "wwa add session < session-entry.md"
244
+
245
+ - name: add-summary
246
+ cli: "wwa add summary"
247
+ category: add
248
+ tier: developer
249
+ safe_for_agent: true
250
+ description: "Append a summary block to SUMMARY.md, preserving the audit trail format."
251
+ when_to_use: "After a high-effort task or phase, to extend the management-facing audit trail."
252
+ reads:
253
+ - "SUMMARY.md"
254
+ writes:
255
+ - "SUMMARY.md"
256
+ examples:
257
+ - "wwa add summary --file summary-block.md"
258
+ - "wwa add summary < summary-block.md"
259
+