maxsimcli 5.0.2 → 5.0.4

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 (43) hide show
  1. package/dist/assets/CHANGELOG.md +15 -0
  2. package/dist/assets/hooks/maxsim-check-update.cjs +2 -1
  3. package/dist/assets/hooks/maxsim-check-update.cjs.map +1 -1
  4. package/dist/assets/hooks/maxsim-notification-sound.cjs +3 -2
  5. package/dist/assets/hooks/maxsim-notification-sound.cjs.map +1 -1
  6. package/dist/assets/hooks/maxsim-statusline.cjs +6 -4
  7. package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
  8. package/dist/assets/hooks/maxsim-stop-sound.cjs +3 -2
  9. package/dist/assets/hooks/maxsim-stop-sound.cjs.map +1 -1
  10. package/dist/assets/hooks/maxsim-sync-reminder.cjs.map +1 -1
  11. package/dist/assets/templates/agents/executor.md +1 -1
  12. package/dist/assets/templates/agents/planner.md +1 -1
  13. package/dist/assets/templates/agents/verifier.md +1 -1
  14. package/dist/assets/templates/commands/maxsim/execute.md +3 -3
  15. package/dist/assets/templates/commands/maxsim/go.md +2 -2
  16. package/dist/assets/templates/commands/maxsim/help.md +2 -2
  17. package/dist/assets/templates/commands/maxsim/init.md +7 -7
  18. package/dist/assets/templates/commands/maxsim/plan.md +3 -3
  19. package/dist/assets/templates/commands/maxsim/progress.md +2 -2
  20. package/dist/assets/templates/commands/maxsim/quick.md +2 -2
  21. package/dist/assets/templates/commands/maxsim/settings.md +2 -2
  22. package/dist/assets/templates/references/model-profile-resolution.md +1 -1
  23. package/dist/assets/templates/references/thinking-partner.md +1 -1
  24. package/dist/assets/templates/references/verification-patterns.md +1 -1
  25. package/dist/assets/templates/skills/github-tools-guide/SKILL.md +1 -1
  26. package/dist/assets/templates/templates/codebase/structure.md +1 -1
  27. package/dist/assets/templates/templates/phase-prompt.md +7 -7
  28. package/dist/assets/templates/templates/state.md +2 -3
  29. package/dist/assets/templates/workflows/discuss-phase.md +4 -4
  30. package/dist/assets/templates/workflows/execute-plan.md +1 -1
  31. package/dist/assets/templates/workflows/execute.md +5 -5
  32. package/dist/assets/templates/workflows/init-existing.md +2 -2
  33. package/dist/assets/templates/workflows/init.md +8 -8
  34. package/dist/assets/templates/workflows/new-project.md +2 -2
  35. package/dist/assets/templates/workflows/plan-discuss.md +1 -1
  36. package/dist/assets/templates/workflows/plan.md +6 -6
  37. package/dist/assets/templates/workflows/quick.md +8 -36
  38. package/dist/assets/templates/workflows/research-phase.md +2 -2
  39. package/dist/assets/templates/workflows/verify-phase.md +2 -2
  40. package/dist/assets/templates/workflows/verify-work.md +2 -2
  41. package/dist/install.cjs +2 -1
  42. package/dist/install.cjs.map +1 -1
  43. package/package.json +1 -1
@@ -8,7 +8,7 @@ Before executing any step in this workflow, verify:
8
8
  Thin orchestrator for the /maxsim:execute state machine. Detects the current state of a phase (already done, needs verification, needs execution), delegates per-plan execution to execute-plan.md subagents, runs auto-verification, and handles retry with gap closure.
9
9
 
10
10
  This file is the ORCHESTRATOR ONLY. Per-plan execution logic lives in:
11
- - @./workflows/execute-plan.md (per-plan subagent execution)
11
+ - @~/.claude/maxsim/workflows/execute-plan.md (per-plan subagent execution)
12
12
 
13
13
  Verification is handled inline (spawning verifier agent) since it is a stage of this workflow, not a separate command.
14
14
  </purpose>
@@ -213,10 +213,10 @@ Execute each wave in sequence. Within a wave: parallel if `parallelization` is t
213
213
  </objective>
214
214
 
215
215
  <execution_context>
216
- @./workflows/execute-plan.md
217
- @./templates/summary.md
218
- @./references/checkpoints.md
219
- @./references/tdd.md
216
+ @~/.claude/maxsim/workflows/execute-plan.md
217
+ @~/.claude/maxsim/templates/summary.md
218
+ @~/.claude/maxsim/references/checkpoints.md
219
+ @~/.claude/maxsim/references/tdd.md
220
220
  </execution_context>
221
221
 
222
222
  <github_context>
@@ -6,8 +6,8 @@ Output: `.planning/` directory with config.json, PROJECT.md, REQUIREMENTS.md, RO
6
6
 
7
7
  <required_reading>
8
8
  Read all files referenced by the invoking prompt's execution_context before starting.
9
- @./references/thinking-partner.md
10
- @./references/questioning.md
9
+ @~/.claude/maxsim/references/thinking-partner.md
10
+ @~/.claude/maxsim/references/questioning.md
11
11
  </required_reading>
12
12
 
13
13
  <auto_mode>
@@ -1,10 +1,10 @@
1
1
  <purpose>
2
2
 
3
3
  Unified initialization router. Detects the current project state and delegates to the appropriate sub-workflow:
4
- - **New project** (no .planning/) -> delegates to @./workflows/new-project.md
5
- - **Existing project** (.planning/ exists, no ROADMAP.md) -> delegates to @./workflows/init-existing.md
4
+ - **New project** (no .planning/) -> delegates to @~/.claude/maxsim/workflows/new-project.md
5
+ - **Existing project** (.planning/ exists, no ROADMAP.md) -> delegates to @~/.claude/maxsim/workflows/init-existing.md
6
6
  - **Active milestone** (.planning/ + ROADMAP.md, phases in progress) -> shows status, offers options
7
- - **Milestone complete** (all phases done) -> offers completion or new milestone via @./workflows/new-milestone.md
7
+ - **Milestone complete** (all phases done) -> offers completion or new milestone via @~/.claude/maxsim/workflows/new-milestone.md
8
8
 
9
9
  This file is a THIN ROUTER. All heavy logic lives in the sub-workflows.
10
10
 
@@ -81,7 +81,7 @@ echo "$INIT_CONTEXT"
81
81
 
82
82
  Save this JSON output — the sub-workflow will use it as `INIT_CONTEXT` and skip its own init call.
83
83
 
84
- Now delegate to @./workflows/new-project.md — execute the full new-project workflow end-to-end. The `INIT_CONTEXT` JSON is already loaded; the sub-workflow will detect this and skip Step 1's CLI call.
84
+ Now delegate to @~/.claude/maxsim/workflows/new-project.md — execute the full new-project workflow end-to-end. The `INIT_CONTEXT` JSON is already loaded; the sub-workflow will detect this and skip Step 1's CLI call.
85
85
 
86
86
  Pass through:
87
87
  - `--auto` flag if set
@@ -114,7 +114,7 @@ echo "$INIT_CONTEXT"
114
114
 
115
115
  Save this JSON output — the sub-workflow will use it as `INIT_CONTEXT` and skip its own init call.
116
116
 
117
- Now delegate to @./workflows/init-existing.md — execute the full init-existing workflow end-to-end. The `INIT_CONTEXT` JSON is already loaded; the sub-workflow will detect this and skip Step 1's CLI call.
117
+ Now delegate to @~/.claude/maxsim/workflows/init-existing.md — execute the full init-existing workflow end-to-end. The `INIT_CONTEXT` JSON is already loaded; the sub-workflow will detect this and skip Step 1's CLI call.
118
118
 
119
119
  Pass through:
120
120
  - `--auto` flag if set
@@ -159,7 +159,7 @@ Then present options conversationally (natural language, not AskUserQuestion):
159
159
  - If verification is pending: "Verify the current phase"
160
160
 
161
161
  2. **Start a new milestone** -- If the user wants to pivot or start fresh:
162
- - Delegate to @./workflows/new-milestone.md for the milestone creation flow
162
+ - Delegate to @~/.claude/maxsim/workflows/new-milestone.md for the milestone creation flow
163
163
 
164
164
  3. **View detailed progress** -- Direct to `/maxsim:progress` for full status
165
165
 
@@ -189,12 +189,12 @@ Then present options conversationally:
189
189
  **Options:**
190
190
 
191
191
  1. **Complete and archive this milestone** -- Run the milestone completion flow:
192
- - Delegate to @./workflows/new-milestone.md with completion mode
192
+ - Delegate to @~/.claude/maxsim/workflows/new-milestone.md with completion mode
193
193
  - Archives current milestone data
194
194
  - Updates MILESTONES.md with summary
195
195
 
196
196
  2. **Start a new milestone** -- Begin the next cycle:
197
- - Delegate to @./workflows/new-milestone.md for creation flow
197
+ - Delegate to @~/.claude/maxsim/workflows/new-milestone.md for creation flow
198
198
  - Gathers new milestone goals
199
199
  - Creates fresh REQUIREMENTS.md and ROADMAP.md
200
200
 
@@ -4,8 +4,8 @@ Initialize a new project through unified flow: questioning, research (optional),
4
4
 
5
5
  <required_reading>
6
6
  Read all files referenced by the invoking prompt's execution_context before starting.
7
- @./references/thinking-partner.md
8
- @./references/questioning.md
7
+ @~/.claude/maxsim/references/thinking-partner.md
8
+ @~/.claude/maxsim/references/questioning.md
9
9
  </required_reading>
10
10
 
11
11
  <auto_mode>
@@ -7,7 +7,7 @@ You are a thinking partner, not an interviewer. The user is the visionary -- you
7
7
  </purpose>
8
8
 
9
9
  <required_reading>
10
- @./references/thinking-partner.md
10
+ @~/.claude/maxsim/references/thinking-partner.md
11
11
  </required_reading>
12
12
 
13
13
  <downstream_awareness>
@@ -8,9 +8,9 @@ Before executing any step in this workflow, verify:
8
8
  Thin orchestrator for the /maxsim:plan state machine. Detects the current stage of a phase (Discussion, Research, Planning), delegates to stage sub-workflows, shows gate confirmations between stages, and handles re-entry on already-planned phases.
9
9
 
10
10
  This file is the ORCHESTRATOR ONLY. Stage-specific logic lives in:
11
- - @./workflows/plan-discuss.md (Discussion stage)
12
- - @./workflows/plan-research.md (Research stage)
13
- - @./workflows/plan-create.md (Planning stage)
11
+ - @~/.claude/maxsim/workflows/plan-discuss.md (Discussion stage)
12
+ - @~/.claude/maxsim/workflows/plan-research.md (Research stage)
13
+ - @~/.claude/maxsim/workflows/plan-create.md (Planning stage)
14
14
  </purpose>
15
15
 
16
16
  <process>
@@ -97,7 +97,7 @@ Wait for user choice via natural conversation.
97
97
 
98
98
  Delegate to the discussion sub-workflow for full discussion logic:
99
99
 
100
- @./workflows/plan-discuss.md
100
+ @~/.claude/maxsim/workflows/plan-discuss.md
101
101
 
102
102
  Pass context: `phase_number`, `phase_name`, `phase_dir`, `padded_phase`, `phase_slug`, `commit_docs`, `roadmap_path`, `state_path`, `phase_issue_number`.
103
103
 
@@ -132,7 +132,7 @@ Wait for user response via natural conversation (not AskUserQuestion).
132
132
 
133
133
  Delegate to the research sub-workflow:
134
134
 
135
- @./workflows/plan-research.md
135
+ @~/.claude/maxsim/workflows/plan-research.md
136
136
 
137
137
  Pass context: `phase_number`, `phase_name`, `phase_dir`, `padded_phase`, `phase_slug`, `commit_docs`, `researcher_model`, `research_enabled`, `has_research`, `state_path`, `roadmap_path`, `requirements_path`, `context_path`, `phase_req_ids`, `phase_issue_number`. Also pass the `--force-research` flag if present in $ARGUMENTS.
138
138
 
@@ -164,7 +164,7 @@ Wait for user response via natural conversation.
164
164
 
165
165
  Delegate to the planning sub-workflow:
166
166
 
167
- @./workflows/plan-create.md
167
+ @~/.claude/maxsim/workflows/plan-create.md
168
168
 
169
169
  Pass context: `phase_number`, `phase_name`, `phase_dir`, `padded_phase`, `phase_slug`, `commit_docs`, `planner_model`, `checker_model`, `plan_checker_enabled`, `state_path`, `roadmap_path`, `requirements_path`, `context_path`, `research_path`, `phase_req_ids`, `phase_issue_number`. Also pass the `--skip-verify` flag if present in $ARGUMENTS.
170
170
 
@@ -588,10 +588,9 @@ Ready for next task: /maxsim:quick
588
588
 
589
589
  ```bash
590
590
  INIT=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs init todos)
591
- mkdir -p .planning/todos/pending .planning/todos/done
592
591
  ```
593
592
 
594
- Extract from init JSON: `todo_count`, `todos`, `pending_dir`, `date`, `timestamp`, `github_ready`.
593
+ Extract from init JSON: `todo_count`, `todos`, `date`, `timestamp`, `github_ready`.
595
594
 
596
595
  ---
597
596
 
@@ -646,38 +645,14 @@ If user provided a description:
646
645
 
647
646
  1. Parse priority from description (look for HIGH/MEDIUM/LOW keywords, default MEDIUM)
648
647
  2. Infer area from file paths mentioned or conversation context (default "general")
649
- 3. Generate slug: `slug=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs generate-slug "$TITLE" --raw)`
650
- 4. Create todo file at `.planning/todos/pending/${date}-${slug}.md`:
651
-
652
- ```markdown
653
- ---
654
- created: [timestamp]
655
- title: [title]
656
- area: [area]
657
- priority: [HIGH/MEDIUM/LOW]
658
- mode: quick
659
- files: []
660
- ---
661
-
662
- ## Problem
663
-
664
- [description - enough context for future Claude to understand]
665
-
666
- ## Solution
667
-
668
- TBD
669
- ```
670
-
671
- 5. GitHub Issue creation (primary):
648
+ 3. Create GitHub Issue (primary action):
672
649
  - Run `github add-todo` with title, priority, area, and description to create a tracked GitHub Issue (label: "todo")
673
- - If GitHub is unavailable, fall back to local file only and warn user: "Todo saved locally. Run `/maxsim:init` to enable GitHub tracking."
650
+ - If GitHub is unavailable, warn user: "GitHub unavailable. Run `/maxsim:init` to enable GitHub tracking."
674
651
 
675
652
  ```bash
676
653
  node ~/.claude/maxsim/bin/maxsim-tools.cjs github add-todo --title "${TITLE}" --description "${DESCRIPTION}" --area "${AREA}"
677
654
  ```
678
- 6. Local file cache: also create the local todo file for offline access
679
- 7. Commit: `node ~/.claude/maxsim/bin/maxsim-tools.cjs commit "docs: capture todo - ${TITLE}" --files .planning/todos/pending/${date}-${slug}.md`
680
- 8. Confirm: "Saved: ${TITLE} (priority: ${PRIORITY}) — GitHub Issue #{number}"
655
+ 4. Confirm: "Saved: ${TITLE} (priority: ${PRIORITY}) GitHub Issue #{number}"
681
656
 
682
657
  Exit after confirm.
683
658
 
@@ -688,14 +663,12 @@ Exit after confirm.
688
663
  If user references an existing todo to complete:
689
664
 
690
665
  1. Parse identifier (number from list, or title fragment)
691
- 2. Close the corresponding GitHub Issue (primary): run `github close-issue` with the todo's issue number
666
+ 2. Close the corresponding GitHub Issue: run `github close-issue` with the todo's issue number
692
667
 
693
668
  ```bash
694
669
  node ~/.claude/maxsim/bin/maxsim-tools.cjs github close-issue N
695
670
  ```
696
- 3. Move local cache file: `mv ".planning/todos/pending/[filename]" ".planning/todos/done/"`
697
- 4. Commit: `node ~/.claude/maxsim/bin/maxsim-tools.cjs commit "docs: complete todo - ${TITLE}" --files .planning/todos/done/${filename}`
698
- 5. Confirm: "Completed: ${TITLE} — GitHub Issue closed"
671
+ 3. Confirm: "Completed: ${TITLE} GitHub Issue closed"
699
672
 
700
673
  Exit after confirm.
701
674
 
@@ -753,8 +726,7 @@ Exit after display.
753
726
  **Todo Mode:**
754
727
  - [ ] `--todo` flag or trigger words detected
755
728
  - [ ] Todo action determined (list/capture/complete/triage)
756
- - [ ] (capture) Todo file created with valid frontmatter
757
- - [ ] (capture) Best-effort GitHub Issue creation attempted
758
- - [ ] (complete) Todo moved from pending to done
729
+ - [ ] (capture) GitHub Issue created with todo label
730
+ - [ ] (complete) GitHub Issue closed
759
731
  - [ ] (triage) Prioritized view with phase context shown
760
732
  </success_criteria>
@@ -8,14 +8,14 @@ Standalone research command. For most workflows, use `/maxsim:plan` which integr
8
8
 
9
9
  ## Step 0: Resolve Model Profile
10
10
 
11
- @./references/model-profile-resolution.md
11
+ @~/.claude/maxsim/references/model-profile-resolution.md
12
12
 
13
13
  Resolve model for:
14
14
  - `researcher`
15
15
 
16
16
  ## Step 1: Normalize and Validate Phase
17
17
 
18
- @./references/phase-argument-parsing.md
18
+ @~/.claude/maxsim/references/phase-argument-parsing.md
19
19
 
20
20
  ```bash
21
21
  PHASE_INFO=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs roadmap get-phase "${PHASE}")
@@ -24,8 +24,8 @@ Then verify each level against the actual codebase.
24
24
  </core_principle>
25
25
 
26
26
  <required_reading>
27
- @./references/verification-patterns.md
28
- @./templates/verification-report.md
27
+ @~/.claude/maxsim/references/verification-patterns.md
28
+ @~/.claude/maxsim/templates/verification-report.md
29
29
  </required_reading>
30
30
 
31
31
  <process>
@@ -18,7 +18,7 @@ No Pass/Fail buttons. No severity questions. Just: "Here's what should happen. D
18
18
  </required_reading>
19
19
 
20
20
  <template>
21
- @./templates/UAT.md
21
+ @~/.claude/maxsim/templates/UAT.md
22
22
  </template>
23
23
 
24
24
  <process>
@@ -337,7 +337,7 @@ Spawning parallel debug agents to investigate each issue.
337
337
  ```
338
338
 
339
339
  - Load diagnose-issues workflow
340
- - Follow @./workflows/diagnose-issues.md
340
+ - Follow @~/.claude/maxsim/workflows/diagnose-issues.md
341
341
  - Spawn parallel debug agents for each issue
342
342
  - Collect root causes
343
343
  - Update UAT.md with root causes
package/dist/install.cjs CHANGED
@@ -7699,6 +7699,7 @@ function checkForUpdate(options) {
7699
7699
  const projectVersionFile = node_path.join(cwd, CLAUDE_DIR, "maxsim", "VERSION");
7700
7700
  const globalVersionFile = node_path.join(homeDir, CLAUDE_DIR, "maxsim", "VERSION");
7701
7701
  if (!node_fs.existsSync(cacheDir)) node_fs.mkdirSync(cacheDir, { recursive: true });
7702
+ const isWindows = process.platform === "win32";
7702
7703
  (0, node_child_process.spawn)(process.execPath, ["-e", `
7703
7704
  const fs = require('fs');
7704
7705
  const { execSync } = require('child_process');
@@ -7733,7 +7734,7 @@ function checkForUpdate(options) {
7733
7734
  `], {
7734
7735
  stdio: "ignore",
7735
7736
  windowsHide: true,
7736
- detached: true
7737
+ detached: !isWindows
7737
7738
  }).unref();
7738
7739
  }
7739
7740
  /**