maxsimcli 4.16.0 → 5.0.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.
- package/dist/assets/CHANGELOG.md +7 -0
- package/dist/assets/hooks/maxsim-check-update.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-notification-sound.cjs +70 -0
- package/dist/assets/hooks/maxsim-notification-sound.cjs.map +1 -0
- package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-stop-sound.cjs +70 -0
- package/dist/assets/hooks/maxsim-stop-sound.cjs.map +1 -0
- package/dist/assets/hooks/maxsim-sync-reminder.cjs.map +1 -1
- package/dist/assets/templates/agents/executor.md +2 -2
- package/dist/assets/templates/agents/planner.md +1 -1
- package/dist/assets/templates/agents/verifier.md +1 -1
- package/dist/assets/templates/commands/maxsim/quick.md +2 -2
- package/dist/assets/templates/skills/github-artifact-protocol/SKILL.md +8 -8
- package/dist/assets/templates/skills/github-tools-guide/SKILL.md +96 -0
- package/dist/assets/templates/workflows/execute-plan.md +82 -68
- package/dist/assets/templates/workflows/execute.md +51 -36
- package/dist/assets/templates/workflows/go.md +21 -16
- package/dist/assets/templates/workflows/init-existing.md +13 -16
- package/dist/assets/templates/workflows/new-milestone.md +23 -1
- package/dist/assets/templates/workflows/new-project.md +13 -16
- package/dist/assets/templates/workflows/plan-create.md +16 -24
- package/dist/assets/templates/workflows/plan-discuss.md +6 -8
- package/dist/assets/templates/workflows/plan-research.md +7 -6
- package/dist/assets/templates/workflows/plan.md +21 -14
- package/dist/assets/templates/workflows/progress.md +45 -20
- package/dist/assets/templates/workflows/quick.md +21 -13
- package/dist/assets/templates/workflows/sdd.md +13 -11
- package/dist/assets/templates/workflows/verify-phase.md +77 -58
- package/dist/cli.cjs +4410 -2265
- package/dist/cli.cjs.map +1 -1
- package/dist/install.cjs +60 -37
- package/dist/install.cjs.map +1 -1
- package/package.json +2 -4
- package/dist/assets/templates/workflows/discovery-phase.md +0 -292
- package/dist/assets/templates/workflows/execute-phase.md +0 -752
- package/dist/mcp-server.cjs +0 -41031
- package/dist/mcp-server.cjs.map +0 -1
|
@@ -47,7 +47,11 @@ grep -E "^| ${phase_number}" .planning/REQUIREMENTS.md 2>/dev/null
|
|
|
47
47
|
|
|
48
48
|
**Get the phase issue number from GitHub (live):**
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
Run `github all-progress` and find the entry where `phase_number` matches. Extract `issue_number` — this is used for posting all verification results as GitHub comments.
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github all-progress
|
|
54
|
+
```
|
|
51
55
|
|
|
52
56
|
Extract **phase goal** from ROADMAP.md (the outcome to verify, not tasks) and **requirements** from REQUIREMENTS.md if it exists.
|
|
53
57
|
</step>
|
|
@@ -218,40 +222,44 @@ If gaps_found:
|
|
|
218
222
|
<step name="post_verification_to_github">
|
|
219
223
|
**Post verification results as a GitHub comment (primary output — no local file written).**
|
|
220
224
|
|
|
221
|
-
Build the verification content in memory using the same structured format as the verification report template. Then
|
|
225
|
+
Build the verification content in memory using the same structured format as the verification report template. Then run `github post-comment` with `type: 'verification'` on the phase issue.
|
|
222
226
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
227
|
+
Write the body content to a tmpfile first, then post:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
# Write body to tmpfile (JSON with status, score, phase, timestamp, truths_checked, artifacts_verified, etc.)
|
|
231
|
+
BODY_FILE=$(mktemp)
|
|
232
|
+
cat > "$BODY_FILE" << 'VERIFICATION_EOF'
|
|
233
|
+
{
|
|
234
|
+
"status": "passed | gaps_found | human_needed",
|
|
235
|
+
"score": "{verified}/{total}",
|
|
236
|
+
"phase": "{phase_number} — {phase_name}",
|
|
237
|
+
"timestamp": "{ISO timestamp}",
|
|
238
|
+
"truths_checked": [
|
|
239
|
+
{ "truth": "...", "status": "VERIFIED | FAILED | UNCERTAIN", "evidence": "..." }
|
|
240
|
+
],
|
|
241
|
+
"artifacts_verified": [
|
|
242
|
+
{ "path": "...", "exists": true, "substantive": true, "wired": true, "status": "VERIFIED | STUB | MISSING | ORPHANED" }
|
|
243
|
+
],
|
|
244
|
+
"key_links_validated": [
|
|
245
|
+
{ "from": "...", "to": "...", "via": "...", "status": "WIRED | PARTIAL | NOT_WIRED" }
|
|
246
|
+
],
|
|
247
|
+
"antipatterns": [
|
|
248
|
+
{ "file": "...", "line": 0, "pattern": "...", "severity": "Blocker | Warning | Info" }
|
|
249
|
+
],
|
|
250
|
+
"human_verification_items": [
|
|
251
|
+
{ "name": "...", "steps": "...", "expected": "...", "reason": "..." }
|
|
252
|
+
],
|
|
253
|
+
"gaps": [
|
|
254
|
+
{ "description": "...", "fix_plan": "..." }
|
|
255
|
+
],
|
|
256
|
+
"fix_plans": [
|
|
257
|
+
{ "name": "...", "objective": "...", "tasks": ["..."] }
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
VERIFICATION_EOF
|
|
261
|
+
|
|
262
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github post-comment --issue-number {PHASE_ISSUE_NUMBER} --body-file "$BODY_FILE" --type verification
|
|
255
263
|
```
|
|
256
264
|
|
|
257
265
|
The comment is the canonical record of this verification run.
|
|
@@ -262,24 +270,26 @@ The comment is the canonical record of this verification run.
|
|
|
262
270
|
|
|
263
271
|
Present the human verification items to the user and walk through each one. After the user completes UAT:
|
|
264
272
|
|
|
265
|
-
Build the UAT results in memory, then post as a GitHub comment by
|
|
273
|
+
Build the UAT results in memory, then post as a GitHub comment by running `github post-comment` with `type: 'uat'` on the phase issue:
|
|
266
274
|
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
275
|
+
```bash
|
|
276
|
+
# Write UAT body to tmpfile
|
|
277
|
+
UAT_FILE=$(mktemp)
|
|
278
|
+
cat > "$UAT_FILE" << 'UAT_EOF'
|
|
279
|
+
{
|
|
280
|
+
"status": "passed | gaps_found",
|
|
281
|
+
"phase": "{phase_number} — {phase_name}",
|
|
282
|
+
"timestamp": "{ISO timestamp}",
|
|
283
|
+
"items": [
|
|
284
|
+
{ "name": "...", "result": "pass | fail", "notes": "..." }
|
|
285
|
+
],
|
|
286
|
+
"gaps": [
|
|
287
|
+
{ "description": "...", "severity": "Blocker | Warning" }
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
UAT_EOF
|
|
291
|
+
|
|
292
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github post-comment --issue-number {PHASE_ISSUE_NUMBER} --body-file "$UAT_FILE" --type uat
|
|
283
293
|
```
|
|
284
294
|
|
|
285
295
|
Do NOT write a UAT.md file to `.planning/phases/`.
|
|
@@ -289,20 +299,29 @@ Do NOT write a UAT.md file to `.planning/phases/`.
|
|
|
289
299
|
**Update GitHub board based on verification outcome.**
|
|
290
300
|
|
|
291
301
|
**If verification passes AND PR is merged:**
|
|
292
|
-
1.
|
|
293
|
-
2.
|
|
302
|
+
1. Run `github move-issue` to move the phase issue to the "Done" column on the board
|
|
303
|
+
2. Run `github close-issue` to close the phase issue
|
|
294
304
|
3. Report to orchestrator: phase complete, issue closed
|
|
295
305
|
|
|
306
|
+
```bash
|
|
307
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github move-issue --project-number P --item-id ID --status "Done"
|
|
308
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github close-issue N
|
|
309
|
+
```
|
|
310
|
+
|
|
296
311
|
**If verification passes but PR not yet merged:**
|
|
297
312
|
1. Keep the phase issue in "In Review" on the board
|
|
298
313
|
2. Note: board will be updated when PR merges
|
|
299
314
|
|
|
300
315
|
**If verification fails (gaps_found):**
|
|
301
316
|
1. Check current board column for the phase issue
|
|
302
|
-
2. If in "In Review":
|
|
317
|
+
2. If in "In Review": run `github move-issue` to move back to "In Progress"
|
|
303
318
|
3. Post failure details as a verification comment (already done in post_verification_to_github step)
|
|
304
319
|
4. Note which gaps need fixing before re-verification
|
|
305
320
|
|
|
321
|
+
```bash
|
|
322
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs github move-issue --project-number P --item-id ID --status "In Progress"
|
|
323
|
+
```
|
|
324
|
+
|
|
306
325
|
**If human_needed:**
|
|
307
326
|
1. Keep the phase issue in its current column (do not move)
|
|
308
327
|
2. The UAT comment posted above documents what needs human testing
|
|
@@ -321,7 +340,7 @@ Orchestrator routes: `passed` → update_roadmap | `gaps_found` → create/execu
|
|
|
321
340
|
</process>
|
|
322
341
|
|
|
323
342
|
<success_criteria>
|
|
324
|
-
- [ ] Phase issue number retrieved from live GitHub via
|
|
343
|
+
- [ ] Phase issue number retrieved from live GitHub via `github all-progress`
|
|
325
344
|
- [ ] Must-haves established (from frontmatter or derived)
|
|
326
345
|
- [ ] All truths verified with status and evidence
|
|
327
346
|
- [ ] All artifacts checked at all three levels
|
|
@@ -331,9 +350,9 @@ Orchestrator routes: `passed` → update_roadmap | `gaps_found` → create/execu
|
|
|
331
350
|
- [ ] Human verification items identified
|
|
332
351
|
- [ ] Overall status determined
|
|
333
352
|
- [ ] Fix plans generated (if gaps_found)
|
|
334
|
-
- [ ] Verification results posted as GitHub comment via
|
|
335
|
-
- [ ] UAT results posted as GitHub comment via
|
|
336
|
-
- [ ] Board transition executed:
|
|
353
|
+
- [ ] Verification results posted as GitHub comment via `github post-comment` (type: 'verification') — NO local VERIFICATION.md written
|
|
354
|
+
- [ ] UAT results posted as GitHub comment via `github post-comment` (type: 'uat') — NO local UAT.md written
|
|
355
|
+
- [ ] Board transition executed: `github move-issue` + `github close-issue` on pass; `github move-issue` back to In Progress on fail
|
|
337
356
|
- [ ] Results returned to orchestrator
|
|
338
357
|
</success_criteria>
|
|
339
358
|
</output>
|