@ionivetech/mugiwara 0.6.5 → 0.6.6

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 (110) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +2 -3
  3. package/.codex-plugin/plugin.json +1 -2
  4. package/.cursor-plugin/plugin.json +1 -2
  5. package/.kimi-plugin/plugin.json +1 -2
  6. package/.opencode/commands/mugiwara-continue.md +44 -31
  7. package/.opencode/commands/mugiwara-execute.md +1 -1
  8. package/.opencode/commands/mugiwara-heal.md +1 -1
  9. package/.opencode/commands/mugiwara-onboard.md +8 -9
  10. package/.opencode/commands/mugiwara-plan.md +1 -1
  11. package/.opencode/commands/mugiwara-review.md +1 -1
  12. package/.opencode/commands/mugiwara-security.md +1 -1
  13. package/.opencode/commands/mugiwara-ship.md +1 -1
  14. package/.opencode/commands/mugiwara.md +2 -2
  15. package/.opencode/plugins/mugiwara.mjs +1 -2
  16. package/AGENTS.md +1 -2
  17. package/README.md +33 -31
  18. package/content/agents/brook-healing.md +5 -8
  19. package/content/agents/chopper-checkpoint.md +8 -11
  20. package/content/agents/eval-runner.md +2 -5
  21. package/content/agents/franky-gates.md +4 -7
  22. package/content/agents/jinbe-security.md +4 -7
  23. package/content/agents/luffy-orchestrator.md +13 -13
  24. package/content/agents/memory-keeper.md +5 -8
  25. package/content/agents/nami-planner.md +4 -7
  26. package/content/agents/resume-coordinator.md +7 -10
  27. package/content/agents/robin-reviewer.md +6 -9
  28. package/content/agents/sanji-quality.md +7 -10
  29. package/content/agents/skeptic-verifier.md +5 -8
  30. package/content/agents/usopp-brainstorm.md +3 -6
  31. package/content/agents/zoro-execution.md +7 -10
  32. package/content/skills/mugiwara-backend/SKILL.md +2 -0
  33. package/content/skills/mugiwara-checkpoint/SKILL.md +13 -11
  34. package/content/skills/mugiwara-checkpoint/references/ledger-format.md +4 -4
  35. package/content/skills/mugiwara-context-budget/SKILL.md +5 -3
  36. package/content/skills/mugiwara-contract-first/SKILL.md +2 -0
  37. package/content/skills/mugiwara-execution/SKILL.md +20 -20
  38. package/content/skills/mugiwara-execution/references/dispatch.md +2 -2
  39. package/content/skills/mugiwara-execution/references/resume-batching.md +1 -1
  40. package/content/skills/mugiwara-frontend/SKILL.md +2 -4
  41. package/content/skills/mugiwara-gates/SKILL.md +8 -7
  42. package/content/skills/mugiwara-git/SKILL.md +7 -2
  43. package/content/skills/mugiwara-healing/SKILL.md +6 -4
  44. package/content/skills/mugiwara-healing/references/workers.md +2 -2
  45. package/content/skills/mugiwara-orchestration/SKILL.md +26 -24
  46. package/content/skills/mugiwara-orchestration/references/check-ins.md +16 -15
  47. package/content/skills/mugiwara-orchestration/references/closure.md +5 -5
  48. package/content/skills/mugiwara-orchestration/references/output-contract.md +9 -9
  49. package/content/skills/mugiwara-orchestration/references/triage-escalation.md +22 -22
  50. package/content/skills/mugiwara-planning/SKILL.md +3 -1
  51. package/content/skills/mugiwara-planning/references/plan-template.md +2 -2
  52. package/content/skills/mugiwara-pr/SKILL.md +6 -6
  53. package/content/skills/mugiwara-pr/references/verdict-format.md +3 -3
  54. package/content/skills/mugiwara-quality/SKILL.md +7 -7
  55. package/content/skills/mugiwara-resume/SKILL.md +18 -20
  56. package/content/skills/mugiwara-review/SKILL.md +5 -1
  57. package/content/skills/mugiwara-review/references/five-axis-worksheet.md +1 -1
  58. package/content/skills/mugiwara-root-cause/SKILL.md +2 -0
  59. package/content/skills/mugiwara-security/SKILL.md +5 -1
  60. package/content/skills/mugiwara-ship/SKILL.md +1 -1
  61. package/content/skills/mugiwara-ship/references/cleanup.md +1 -1
  62. package/content/skills/mugiwara-testcases/SKILL.md +5 -3
  63. package/content/skills/mugiwara-workflow/SKILL.md +27 -27
  64. package/content/skills/mugiwara-workflow/references/workspace-layout.md +15 -15
  65. package/content/skills/using-mugiwara/SKILL.md +5 -5
  66. package/dist/mugiwara.js +808 -33
  67. package/gemini-extension.json +1 -1
  68. package/hooks/auto-savepoint.js +106 -0
  69. package/hooks/auto-savepoint.ts +102 -0
  70. package/hooks/engagement-marker.js +59 -0
  71. package/hooks/engagement-marker.ts +97 -0
  72. package/hooks/hooks.json +41 -2
  73. package/hooks/mugiwara-mode-tracker.js +79 -0
  74. package/hooks/pipeline-guard.js +182 -0
  75. package/hooks/pipeline-guard.ts +267 -0
  76. package/hooks/session-start.js +106 -0
  77. package/hooks/session-start.ts +44 -32
  78. package/package.json +7 -3
  79. package/plugin.json +1 -1
  80. package/references/agent-protocol.md +15 -0
  81. package/references/complexity.md +54 -0
  82. package/references/definition-of-done.md +1 -1
  83. package/references/multi-actor.md +5 -5
  84. package/references/skill-versioning.md +1 -1
  85. package/references/token-budget.md +30 -8
  86. package/references/wave-banners.md +16 -16
  87. package/scripts/build-hooks.ts +56 -0
  88. package/scripts/conformance.ts +17 -0
  89. package/scripts/coverage-gate.ts +179 -0
  90. package/scripts/install.ps1 +5 -4
  91. package/scripts/install.sh +4 -4
  92. package/scripts/lane.sh +6 -2
  93. package/scripts/lib/patterns.sh +84 -0
  94. package/scripts/mission-report.sh +12 -11
  95. package/scripts/savepoint.sh +141 -37
  96. package/scripts/verify-install.ts +154 -44
  97. package/src/args.ts +1 -1
  98. package/src/cli.ts +217 -0
  99. package/src/continue.ts +243 -0
  100. package/src/installer.ts +39 -0
  101. package/src/onboard.ts +207 -0
  102. package/src/run.ts +82 -0
  103. package/src/targets/claude.ts +140 -2
  104. package/src/targets/copilot.ts +20 -1
  105. package/src/targets/generic.ts +9 -4
  106. package/src/targets/opencode.ts +0 -1
  107. package/content/agents/onboarding-guide.md +0 -124
  108. package/content/skills/mugiwara-security/references/owasp-mapping.md +0 -30
  109. package/scripts/onboard.ts +0 -266
  110. package/scripts/probe.ts +0 -40
@@ -11,35 +11,35 @@ mission artifact in any other language is a defect, not a style choice.
11
11
  ```
12
12
  .mugiwara/
13
13
  ├── config → runtime mode config (gitignored; project overrides global)
14
- ├── state/<mission>/ → computed mission state per (mission, member): state.json (solo) or <member>.json (scripts/savepoint.sh)
14
+ ├── state/<mission>/ → computed mission state per (mission, member): state.json (solo) or <member>.json (mugiwara savepoint)
15
15
  ├── continue/<mission>/ → machine-written resume point per (mission, member): state.json (solo) or <member>.json
16
16
  ├── spec/ → brainstorm output: YYYY-MM-DD-<mission>.md
17
- ├── plans/ → plan doc: YYYY-MM-DD-<mission>.md — CLEAN, Nami-only, source of truth from Wave 2
18
- ├── results/ → per-mission folder: results/<mission>/ holds every wave artifact
17
+ ├── plans/ → plan doc: YYYY-MM-DD-<mission>.md — CLEAN, Nami-only, source of truth from Flow 2
18
+ ├── results/ → per-mission folder: results/<mission>/ holds every flow-stage artifact
19
19
  │ └── <mission>/
20
- │ ├── 01-execution.md → wave 3: task table + evidence
21
- │ ├── 02-audit.md → wave 4: checkpoint report
22
- │ ├── 03-quality.md → wave 5: quality report
23
- │ ├── 04-gates.md → wave 6: gate verdict
24
- │ ├── 05-healing.md → wave 8: healing report (only when heal ran)
25
- │ ├── 06-closure.md → wave 9: closure summary (KEEP at cleanup)
26
- │ ├── 07-pr-verdict.md → wave 9: PR material (KEEP at cleanup)
20
+ │ ├── 01-execution.md → flow stage 3: task table + evidence
21
+ │ ├── 02-audit.md → flow stage 4: checkpoint report
22
+ │ ├── 03-quality.md → flow stage 5: quality report
23
+ │ ├── 04-gates.md → flow stage 6: gate verdict
24
+ │ ├── 05-healing.md → flow 8: healing report (only when heal ran)
25
+ │ ├── 06-closure.md → flow stage 9: closure summary (KEEP at cleanup)
26
+ │ ├── 07-pr-verdict.md → flow stage 9: PR material (KEEP at cleanup)
27
27
  │ └── todos.md → execution checkbox list
28
- ├── reports/ → mission report (aggregate): YYYY-MM-DD-<mission>.md — one-file summary of all waves
28
+ ├── reports/ → mission report (aggregate): YYYY-MM-DD-<mission>.md — one-file summary of all flow stages
29
29
  ├── review/ → review + security findings
30
30
  ├── issues/ → blocker log: YYYY-MM-DD-<mission>-blockers.md
31
31
  └── logs/ → Luffy's decision + check-in log: YYYY-MM-DD-<mission>.md (deleted at cleanup)
32
32
  ```
33
33
 
34
34
  Naming rule: every artifact inside `results/<mission>/` uses the SAME mission
35
- name, no date prefix — the folder is the grouping, numbered by wave order
35
+ name, no date prefix — the folder is the grouping, numbered by flow-stage order
36
36
  (`01-`, `02-`, …). Unnumbered support files may sit alongside the numbered
37
37
  ones (`todos.md`, `resume.md`, `eval.md`, evidence logs) and are not part of
38
- the waves table. `reports/` and `logs/` and `plans/` files carry the
38
+ the flow-stages table. `reports/` and `logs/` and `plans/` files carry the
39
39
  `YYYY-MM-DD-` date prefix because they are cross-mission folders; `results/`
40
40
  does not, because each mission owns its folder.
41
41
 
42
- The plan doc stays clean: it holds ONLY the execution plan (waves, tasks,
42
+ The plan doc stays clean: it holds ONLY the execution plan (flow stages, tasks,
43
43
  criteria, risks). Who did what, route decisions, and check-in verdicts go to
44
44
  `logs/`; the closure report goes to `results/<mission>/06-closure.md`. Nothing
45
45
  non-plan pollutes the plan doc.
@@ -47,7 +47,7 @@ non-plan pollutes the plan doc.
47
47
  The owning agent creates the folder it needs on first write. No mission
48
48
  artifacts go outside `.mugiwara/`.
49
49
 
50
- ## Cleanup (Wave 9)
50
+ ## Cleanup (Flow 9)
51
51
 
52
52
  Step results are evidence — KEEP every file in `results/<mission>/`
53
53
  (`01-execution.md` through `05-healing.md`, `todos.md`, `06-closure.md`,
@@ -14,12 +14,12 @@ Mugiwara is a governed engineering team in your coding agent. 12 specialists —
14
14
 
15
15
  1. `mugiwara-orchestration` auto-loads as gatekeeper for every task — classify, route, check-in, close.
16
16
  2. The pipeline: Luffy triage → Usopp brainstorm → Nami plan → Zoro execute → Chopper audit → Sanji quality → Franky gates → Robin/Jinbe review → Brook heal → Luffy closure.
17
- 3. Every wave runs inline in the main thread. Subagents only for [PARALLEL] task batches.
18
- 4. Evidence over claims — no wave passes on assertion. Checks must be re-run.
19
- 5. Autonomy modes: `/mugiwara guided|semi|auto`. Flip applies next wave.
17
+ 3. Every flow stage runs inline in the main thread. Subagents only for [PARALLEL] task batches.
18
+ 4. Evidence over claims — no flow stage passes on assertion. Checks must be re-run.
19
+ 5. Autonomy modes: `/mugiwara guided|semi|auto`. Flip applies next flow stage.
20
20
  6. Workspace: `.mugiwara/` at repo root — plans, results, issues, logs, state.
21
21
  7. The main thread embodies the active role — it is never "plain Claude"
22
- mid-mission. Shortcuts skip waves, never roles. Write-scope in each agent's
22
+ mid-mission. Shortcuts skip flow stages, never roles. Write-scope in each agent's
23
23
  frontmatter: artifacts agents delegate source edits to Zoro, never attempt
24
24
  them.
25
25
 
@@ -42,7 +42,7 @@ Mugiwara is a governed engineering team in your coding agent. 12 specialists —
42
42
  For task routing and classification, `mugiwara-orchestration` auto-loads as gatekeeper.
43
43
  This skill is documentation — load manually with `/using-mugiwara` or similar trigger phrases.
44
44
  Full pipeline: see skills/mugiwara-workflow.
45
- First time? Run `/mugiwara onboard` for guided setup. See `content/agents/onboarding-guide.md`.
45
+ First time? Run `mugiwara onboard` in your terminal for guided setup (zero-LLM wizard, writes `.mugiwara/config`).
46
46
 
47
47
  ## Red flags
48
48