sequant 2.4.0 → 2.5.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 (58) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/README.md +125 -163
  4. package/dist/bin/cli.js +13 -0
  5. package/dist/dashboard/server.js +1 -0
  6. package/dist/marketplace/external_plugins/sequant/.claude-plugin/plugin.json +2 -2
  7. package/dist/marketplace/external_plugins/sequant/README.md +6 -3
  8. package/dist/marketplace/external_plugins/sequant/hooks/post-tool.sh +92 -0
  9. package/dist/marketplace/external_plugins/sequant/hooks/pre-tool.sh +18 -9
  10. package/dist/marketplace/external_plugins/sequant/hooks/relay-check.sh +107 -0
  11. package/dist/marketplace/external_plugins/sequant/skills/_shared/references/behavior-rule-detection.md +205 -0
  12. package/dist/marketplace/external_plugins/sequant/skills/_shared/references/subagent-types.md +21 -8
  13. package/dist/marketplace/external_plugins/sequant/skills/assess/SKILL.md +302 -86
  14. package/dist/marketplace/external_plugins/sequant/skills/assess/references/predicted-collision-detection.md +109 -0
  15. package/dist/marketplace/external_plugins/sequant/skills/docs/SKILL.md +141 -22
  16. package/dist/marketplace/external_plugins/sequant/skills/exec/SKILL.md +83 -78
  17. package/dist/marketplace/external_plugins/sequant/skills/fullsolve/SKILL.md +377 -137
  18. package/dist/marketplace/external_plugins/sequant/skills/loop/SKILL.md +28 -0
  19. package/dist/marketplace/external_plugins/sequant/skills/merger/SKILL.md +621 -0
  20. package/dist/marketplace/external_plugins/sequant/skills/qa/SKILL.md +741 -232
  21. package/dist/marketplace/external_plugins/sequant/skills/qa/scripts/quality-checks.sh +47 -1
  22. package/dist/marketplace/external_plugins/sequant/skills/setup/SKILL.md +12 -6
  23. package/dist/marketplace/external_plugins/sequant/skills/spec/SKILL.md +217 -964
  24. package/dist/marketplace/external_plugins/sequant/skills/spec/references/parallel-groups.md +7 -0
  25. package/dist/marketplace/external_plugins/sequant/skills/spec/references/quality-checklist.md +75 -0
  26. package/dist/marketplace/external_plugins/sequant/skills/spec/references/recommended-workflow.md +4 -2
  27. package/dist/marketplace/external_plugins/sequant/skills/test/SKILL.md +0 -27
  28. package/dist/marketplace/external_plugins/sequant/skills/testgen/SKILL.md +24 -44
  29. package/dist/src/commands/ready-tui-adapter.d.ts +59 -0
  30. package/dist/src/commands/ready-tui-adapter.js +130 -0
  31. package/dist/src/commands/ready.d.ts +49 -0
  32. package/dist/src/commands/ready.js +243 -0
  33. package/dist/src/commands/status.js +4 -0
  34. package/dist/src/lib/cli-ui/run-renderer.d.ts +7 -1
  35. package/dist/src/lib/cli-ui/run-renderer.js +28 -28
  36. package/dist/src/lib/settings.d.ts +34 -0
  37. package/dist/src/lib/settings.js +23 -1
  38. package/dist/src/lib/workflow/phase-executor.js +17 -2
  39. package/dist/src/lib/workflow/platforms/github.d.ts +6 -0
  40. package/dist/src/lib/workflow/platforms/github.js +17 -0
  41. package/dist/src/lib/workflow/ready-gate.d.ts +155 -0
  42. package/dist/src/lib/workflow/ready-gate.js +374 -0
  43. package/dist/src/lib/workflow/reconcile.js +6 -0
  44. package/dist/src/lib/workflow/state-schema.d.ts +3 -0
  45. package/dist/src/lib/workflow/state-schema.js +1 -0
  46. package/dist/src/lib/workflow/types.d.ts +9 -0
  47. package/dist/src/ui/tui/App.js +8 -2
  48. package/dist/src/ui/tui/IssueBox.js +3 -4
  49. package/dist/src/ui/tui/index.d.ts +13 -4
  50. package/dist/src/ui/tui/index.js +19 -5
  51. package/dist/src/ui/tui/row-cap.d.ts +51 -0
  52. package/dist/src/ui/tui/row-cap.js +76 -0
  53. package/dist/src/ui/tui/teardown.d.ts +20 -0
  54. package/dist/src/ui/tui/teardown.js +29 -0
  55. package/dist/src/ui/tui/theme.d.ts +3 -0
  56. package/dist/src/ui/tui/theme.js +3 -0
  57. package/package.json +19 -8
  58. package/templates/skills/qa/SKILL.md +5 -2
@@ -385,7 +385,53 @@ else
385
385
  fi
386
386
 
387
387
  # =============================================================================
388
- # 11. Build Verification (cacheable - expensive operation)
388
+ # =============================================================================
389
+ # 11.5. Skill Sync Check (when skill files modified)
390
+ # =============================================================================
391
+ echo ""
392
+ skill_files_changed=$(git diff main...HEAD --name-only | grep -E '^\.(claude/skills|skills|templates/skills)/' || true)
393
+ if [[ -n "$skill_files_changed" ]]; then
394
+ echo "🔍 Checking three-directory skill sync..."
395
+ if [[ -f "scripts/check-skill-sync.ts" ]]; then
396
+ sync_output=$(npx tsx scripts/check-skill-sync.ts 2>&1 || true)
397
+ sync_exit=$?
398
+ sync_summary=$(echo "$sync_output" | grep "^Summary:" || true)
399
+ if [[ $sync_exit -ne 0 ]]; then
400
+ echo "⚠️ Skill sync: DIVERGENCE DETECTED"
401
+ echo "$sync_summary"
402
+ echo " Run: npx tsx scripts/check-skill-sync.ts --fix"
403
+ else
404
+ echo "✅ Skill sync: All files synced across 3 directories"
405
+ fi
406
+ else
407
+ echo " (scripts/check-skill-sync.ts not found — using inline diff)"
408
+ diverged=0
409
+ for f in $skill_files_changed; do
410
+ if [[ "$f" == .claude/skills/* ]]; then
411
+ rel="${f#.claude/skills/}"
412
+ for mirror in "templates/skills" "skills"; do
413
+ if [[ -f "${mirror}/${rel}" ]]; then
414
+ if ! diff -q ".claude/skills/${rel}" "${mirror}/${rel}" > /dev/null 2>&1; then
415
+ echo " ⚠️ DIVERGED: ${rel} (.claude/skills vs ${mirror})"
416
+ diverged=$((diverged + 1))
417
+ fi
418
+ fi
419
+ done
420
+ fi
421
+ done
422
+ if [[ $diverged -eq 0 ]]; then
423
+ echo "✅ Skill sync: Changed skill files are synced"
424
+ else
425
+ echo "⚠️ Skill sync: ${diverged} file(s) diverged"
426
+ echo " Fix: copy from .claude/skills/ to templates/skills/ and skills/"
427
+ fi
428
+ fi
429
+ else
430
+ echo "🔍 Skill sync: No skill files changed (skipped)"
431
+ fi
432
+
433
+ # =============================================================================
434
+ # 12. Build Verification (cacheable - expensive operation)
389
435
  # =============================================================================
390
436
 
391
437
  verify_build_against_main() {
@@ -75,16 +75,16 @@ else
75
75
  PREREQ_FAIL=true
76
76
  fi
77
77
 
78
- # 3. Node.js 20+ (for MCP server via npx)
78
+ # 3. Node.js 22.12+ (for MCP server via npx)
79
79
  if node --version >/dev/null 2>&1; then
80
80
  NODE_VER=$(node --version | sed 's/v//' | cut -d. -f1)
81
- if [ "$NODE_VER" -ge 20 ] 2>/dev/null; then
82
- echo "✅ node: $(node --version) (>= 20)"
81
+ if [ "$NODE_VER" -ge 22 ] 2>/dev/null; then
82
+ echo "✅ node: $(node --version) (>= 22)"
83
83
  else
84
- echo "⚠️ node: $(node --version) — MCP server requires Node.js 20+. Upgrade recommended."
84
+ echo "⚠️ node: $(node --version) — MCP server requires Node.js 22.12+. Upgrade recommended."
85
85
  fi
86
86
  else
87
- echo "⚠️ node: not found — MCP server (npx sequant serve) requires Node.js 20+"
87
+ echo "⚠️ node: not found — MCP server (npx sequant serve) requires Node.js 22.12+"
88
88
  fi
89
89
 
90
90
  if [ "$PREREQ_FAIL" = "true" ]; then
@@ -190,6 +190,12 @@ Create `.sequant/settings.json` with sensible defaults:
190
190
  }
191
191
  ```
192
192
 
193
+ > **Note:** `agents.model` is currently **inert** per
194
+ > [anthropics/claude-code#43869](https://github.com/anthropics/claude-code/issues/43869).
195
+ > Subagents inherit the parent session's model regardless of this value. The
196
+ > field is kept for forward compatibility so existing settings.json files
197
+ > continue to parse without error.
198
+
193
199
  Use the Write tool to create `.sequant/settings.json` with the above content.
194
200
 
195
201
  ### 5. Detect Package Manager
@@ -377,7 +383,7 @@ You're all set — run `/assess <issue>` to start working on a GitHub issue.
377
383
  - Check that the file is valid JSON/TOML
378
384
 
379
385
  **MCP tools not available:**
380
- - Ensure Node.js 20+ is installed (`node --version`)
386
+ - Ensure Node.js 22.12+ is installed (`node --version`)
381
387
  - The MCP server starts automatically via `npx sequant@latest serve`
382
388
  - Check Claude Code settings if tools don't appear
383
389