sequant 2.8.0 → 2.9.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 (68) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +9 -1
  4. package/dist/bin/cli.js +2 -1
  5. package/dist/marketplace/external_plugins/sequant/.claude-plugin/plugin.json +1 -1
  6. package/dist/marketplace/external_plugins/sequant/README.md +2 -0
  7. package/dist/marketplace/external_plugins/sequant/hooks/post-tool.sh +18 -3
  8. package/dist/marketplace/external_plugins/sequant/hooks/pre-tool.sh +330 -57
  9. package/dist/marketplace/external_plugins/sequant/skills/assess/SKILL.md +96 -15
  10. package/dist/marketplace/external_plugins/sequant/skills/assess/references/predicted-collision-detection.md +9 -6
  11. package/dist/marketplace/external_plugins/sequant/skills/fullsolve/SKILL.md +1 -1
  12. package/dist/marketplace/external_plugins/sequant/skills/reflect/SKILL.md +27 -13
  13. package/dist/marketplace/external_plugins/sequant/skills/reflect/references/documentation-tiers.md +80 -68
  14. package/dist/marketplace/external_plugins/sequant/skills/reflect/references/phase-reflection.md +31 -15
  15. package/dist/marketplace/external_plugins/sequant/skills/release/SKILL.md +10 -2
  16. package/dist/marketplace/external_plugins/sequant/skills/spec/references/verification-criteria.md +1 -1
  17. package/dist/src/commands/logs.js +6 -1
  18. package/dist/src/commands/run-display.d.ts +20 -0
  19. package/dist/src/commands/run-display.js +80 -1
  20. package/dist/src/commands/stats.js +47 -0
  21. package/dist/src/lib/assess-collision-detect.d.ts +19 -2
  22. package/dist/src/lib/assess-collision-detect.js +68 -4
  23. package/dist/src/lib/cli-ui/run-renderer.js +17 -9
  24. package/dist/src/lib/errors.d.ts +6 -0
  25. package/dist/src/lib/errors.js +9 -2
  26. package/dist/src/lib/manifest.js +1 -17
  27. package/dist/src/lib/version-check.js +1 -5
  28. package/dist/src/lib/workflow/batch-executor.d.ts +13 -0
  29. package/dist/src/lib/workflow/batch-executor.js +81 -18
  30. package/dist/src/lib/workflow/chain-preflight.d.ts +89 -0
  31. package/dist/src/lib/workflow/chain-preflight.js +199 -0
  32. package/dist/src/lib/workflow/chain-resume.d.ts +116 -0
  33. package/dist/src/lib/workflow/chain-resume.js +166 -0
  34. package/dist/src/lib/workflow/dependency-markers.d.ts +29 -0
  35. package/dist/src/lib/workflow/dependency-markers.js +79 -0
  36. package/dist/src/lib/workflow/drivers/claude-code.d.ts +7 -0
  37. package/dist/src/lib/workflow/drivers/claude-code.js +30 -6
  38. package/dist/src/lib/workflow/error-classifier.d.ts +9 -2
  39. package/dist/src/lib/workflow/error-classifier.js +14 -1
  40. package/dist/src/lib/workflow/log-writer.js +6 -8
  41. package/dist/src/lib/workflow/metrics-schema.d.ts +39 -0
  42. package/dist/src/lib/workflow/metrics-schema.js +16 -0
  43. package/dist/src/lib/workflow/metrics-writer.d.ts +2 -1
  44. package/dist/src/lib/workflow/phase-executor.d.ts +32 -0
  45. package/dist/src/lib/workflow/phase-executor.js +77 -5
  46. package/dist/src/lib/workflow/run-log-schema.d.ts +23 -0
  47. package/dist/src/lib/workflow/run-log-schema.js +45 -1
  48. package/dist/src/lib/workflow/run-orchestrator.d.ts +14 -0
  49. package/dist/src/lib/workflow/run-orchestrator.js +291 -30
  50. package/dist/src/lib/workflow/status-derivation.d.ts +30 -0
  51. package/dist/src/lib/workflow/status-derivation.js +27 -0
  52. package/dist/src/lib/workflow/types.d.ts +23 -0
  53. package/dist/src/lib/workflow/worktree-manager.d.ts +43 -1
  54. package/dist/src/lib/workflow/worktree-manager.js +103 -33
  55. package/dist/src/mcp/tools/run.d.ts +2 -0
  56. package/dist/src/mcp/tools/run.js +2 -0
  57. package/package.json +2 -4
  58. package/templates/hooks/post-tool.sh +18 -3
  59. package/templates/hooks/pre-tool.sh +330 -57
  60. package/templates/scripts/cleanup-worktree.sh +103 -14
  61. package/templates/skills/assess/SKILL.md +96 -15
  62. package/templates/skills/assess/references/predicted-collision-detection.md +9 -6
  63. package/templates/skills/fullsolve/SKILL.md +1 -1
  64. package/templates/skills/reflect/SKILL.md +27 -13
  65. package/templates/skills/reflect/references/documentation-tiers.md +80 -68
  66. package/templates/skills/reflect/references/phase-reflection.md +31 -15
  67. package/templates/skills/release/SKILL.md +10 -2
  68. package/templates/skills/spec/references/verification-criteria.md +1 -1
@@ -70,26 +70,42 @@ Focus on QA/review effectiveness after `/qa`:
70
70
 
71
71
  ## Good Reflection Examples
72
72
 
73
- ### Documentation Improvement
73
+ Note what these have in common: each names a **specific file and a specific
74
+ wrong line**, and each was *verified* before being proposed. A reflection that
75
+ proposes fixing something you have not opened is a guess.
74
76
 
75
- > **Friction Point:** Spent 10 minutes searching for how neighborhood extraction works across multiple files.
77
+ ### Correcting a stale memory
78
+
79
+ > **Friction Point:** Followed a memory that prescribed `echo y | cleanup-worktree.sh`; the script had since grown a real `--yes` flag and a merge gate (#750).
76
80
  >
77
- > **Root Cause:** Process is documented in docs/AUTO_NEIGHBORHOOD_ENRICHMENT.md (tier 2) but not referenced in CLAUDE.md's discovery pipeline section (tier 1).
81
+ > **Root Cause:** Memory entries citing script flags rot silently when the script ships a change. The entry read as authoritative and was 67 days old.
78
82
  >
79
83
  > **Proposal:**
80
- > - **Type:** Add
81
- > - **Target:** CLAUDE.md, line 230 (Discovery Methods section)
82
- > - **Content:** Add one-line reference: "Neighborhoods auto-extracted via ZIP mapping (see docs/AUTO_NEIGHBORHOOD_ENRICHMENT.md)"
83
- > - **Priority:** Medium
84
- > - **Risk:** Low (just adding a signpost)
84
+ > - **Type:** Update
85
+ > - **Target:** `feedback_cleanup_worktree_after_gh_merge`
86
+ > - **Content:** Replace the `echo y |` workaround with the shipped flags; add the `--delete-branch`-fails-when-a-worktree-holds-the-branch trap.
87
+ > - **Priority:** High (a wrong memory is worse than a missing one — it gets trusted)
88
+ > - **Risk:** Low (verified against the script's `--help` first)
89
+
90
+ ### Retiring guidance that a skill already implements
91
+
92
+ > **Friction Point:** Was about to propose adding a diff-size threshold to `/qa` so small diffs skip sub-agents.
93
+ >
94
+ > **Root Cause:** The proposal was based on the skill text actually executed, which came from a **stale plugin cache** (1.20.3) rather than the repo (2.8.0). The repo's `/qa` already has the size gate. Invoking `sequant:qa` resolves to the installed plugin; bare `qa` resolves to `.claude/skills/`.
95
+ >
96
+ > **Proposal:**
97
+ > - **Type:** Withdraw + document the routing trap
98
+ > - **Target:** the proposal itself; memory entry for the skew
99
+ > - **Priority:** High (the finding was an artifact, and acting on it would have duplicated shipped work)
100
+ > - **Risk:** None — verification *removed* work rather than adding it
85
101
 
86
- ### Documentation Pruning
102
+ ### Pruning content inherited from another project
87
103
 
88
- > **Bloat:** CLAUDE.md has 150 lines on Mapbox troubleshooting that solved a one-time issue 6 months ago.
104
+ > **Bloat:** `references/documentation-tiers.md` prescribed a 700–800 line CLAUDE.md target and named `ARCHITECTURE.md`, `DATA_PIPELINE.md`, `ADMIN_CMS_ARCHITECTURE.md` as "current docs". None exist here; CLAUDE.md is 13 lines by design. Its "**Expand:** <600 lines" rule would have demanded ~590 lines of invented content.
89
105
  >
90
106
  > **Proposal:**
91
- > - **Type:** Remove + Archive
92
- > - **Target:** CLAUDE.md lines 450-600
93
- > - **Action:** Move to docs/archive/mapbox-troubleshooting-2024.md with note "Archived: Issue resolved in react-map-gl v7.1.0"
94
- > - **Priority:** High (saves 150 lines in hot path)
95
- > - **Risk:** Low (still searchable if issue recurs)
107
+ > - **Type:** Restructure
108
+ > - **Target:** `references/documentation-tiers.md` (×3 skill dirs)
109
+ > - **Action:** Rewrite around this repo's real tiers (CLAUDE.md index auto-memory `docs/` skills → code comments); drop all line targets.
110
+ > - **Priority:** Medium
111
+ > - **Risk:** Low (verified every named doc was absent before rewriting)
@@ -512,8 +512,11 @@ Release v{version} Complete
512
512
  npx sequant@{new}
513
513
 
514
514
  Install (plugin):
515
- /plugin marketplace update sequant-io/sequant
516
- /plugin install sequant
515
+ /plugin marketplace update sequant-io/sequant # refreshes the marketplace LISTING only
516
+ /plugin install sequant # new installs
517
+
518
+ Update an existing plugin install:
519
+ claude plugin update sequant@sequant # then restart Claude Code
517
520
 
518
521
  Verification:
519
522
  [x] npm view shows correct version
@@ -527,6 +530,11 @@ Next steps:
527
530
  - Announce release (if major/minor)
528
531
  - Update dependent projects
529
532
  - Monitor for issues
533
+ - Installed plugins do NOT pick up this release automatically: Claude Code
534
+ pins each install at its installed version, and `/plugin marketplace
535
+ update` refreshes only the marketplace listing. Each existing install
536
+ updates only via `claude plugin update sequant@sequant` + restart
537
+ (the pre-tool hook nags stale installs once a day — #784)
530
538
  ```
531
539
 
532
540
  ## Dry Run Mode
@@ -43,7 +43,7 @@ AC-1: Timing logs capture start/end of each tool call
43
43
  **Test Scenario:**
44
44
  - Given: Claude Code session with hooks enabled
45
45
  - When: Any tool is invoked (e.g., Edit, Read)
46
- - Then: /tmp/claude-timing.log contains START and END with tool name and timestamp
46
+ - Then: claude-timing.log contains START (from pre-tool.sh) and END (from post-tool.sh) with tool name and timestamp, both in the SAME file — /logs/ for plugin users, else /.sequant/logs/
47
47
 
48
48
  **Integration Points:**
49
49
  - Claude Code hook system (stdin JSON input)