sequant 2.1.1 → 2.2.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 (45) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/dist/bin/cli.js +1 -0
  4. package/dist/src/commands/init.d.ts +1 -0
  5. package/dist/src/commands/init.js +122 -3
  6. package/dist/src/commands/run-compat.d.ts +14 -0
  7. package/dist/src/commands/run-compat.js +12 -0
  8. package/dist/src/commands/run-display.d.ts +17 -0
  9. package/dist/src/commands/run-display.js +116 -0
  10. package/dist/src/commands/run.d.ts +4 -26
  11. package/dist/src/commands/run.js +47 -772
  12. package/dist/src/commands/status.js +24 -1
  13. package/dist/src/index.d.ts +11 -0
  14. package/dist/src/index.js +9 -0
  15. package/dist/src/lib/errors.d.ts +93 -0
  16. package/dist/src/lib/errors.js +97 -0
  17. package/dist/src/lib/settings.d.ts +236 -0
  18. package/dist/src/lib/settings.js +482 -37
  19. package/dist/src/lib/skill-version.d.ts +19 -0
  20. package/dist/src/lib/skill-version.js +68 -0
  21. package/dist/src/lib/templates.d.ts +1 -0
  22. package/dist/src/lib/templates.js +1 -1
  23. package/dist/src/lib/workflow/batch-executor.js +13 -5
  24. package/dist/src/lib/workflow/config-resolver.d.ts +50 -0
  25. package/dist/src/lib/workflow/config-resolver.js +167 -0
  26. package/dist/src/lib/workflow/error-classifier.d.ts +17 -7
  27. package/dist/src/lib/workflow/error-classifier.js +113 -15
  28. package/dist/src/lib/workflow/phase-executor.d.ts +31 -0
  29. package/dist/src/lib/workflow/phase-executor.js +143 -48
  30. package/dist/src/lib/workflow/run-log-schema.d.ts +12 -0
  31. package/dist/src/lib/workflow/run-log-schema.js +7 -1
  32. package/dist/src/lib/workflow/run-orchestrator.d.ts +161 -0
  33. package/dist/src/lib/workflow/run-orchestrator.js +510 -0
  34. package/dist/src/lib/workflow/worktree-manager.d.ts +4 -3
  35. package/dist/src/lib/workflow/worktree-manager.js +61 -11
  36. package/package.json +1 -1
  37. package/templates/skills/assess/SKILL.md +239 -77
  38. package/templates/skills/exec/SKILL.md +7 -68
  39. package/templates/skills/fullsolve/SKILL.md +303 -137
  40. package/templates/skills/qa/SKILL.md +42 -46
  41. package/templates/skills/qa/scripts/quality-checks.sh +47 -1
  42. package/templates/skills/spec/SKILL.md +183 -982
  43. package/templates/skills/spec/references/quality-checklist.md +75 -0
  44. package/templates/skills/test/SKILL.md +0 -27
  45. package/templates/skills/testgen/SKILL.md +0 -27
@@ -0,0 +1,75 @@
1
+ # Feature Quality Planning — Full Checklist
2
+
3
+ Use this checklist for **Complex** tier issues or when the exception-based summary in SKILL.md flags significant gaps. For Simple/Standard tiers, the exception-based approach in the main prompt is sufficient.
4
+
5
+ ## Section Applicability
6
+
7
+ | Issue Type | Sections Required |
8
+ |------------|-------------------|
9
+ | Bug fix | Completeness, Error Handling, Test Coverage |
10
+ | New feature | All sections |
11
+ | Refactor | Completeness, Code Quality, Test Coverage |
12
+ | UI change | All sections including Polish |
13
+ | Backend/API | Completeness, Error Handling, Code Quality, Test Coverage, Best Practices |
14
+ | CLI/Script | Completeness, Error Handling, Test Coverage, Best Practices |
15
+ | Docs only | Completeness only |
16
+
17
+ ## Completeness Check
18
+
19
+ - [ ] All AC items have corresponding implementation steps
20
+ - [ ] Integration points with existing features identified
21
+ - [ ] No partial implementations or TODOs planned
22
+ - [ ] State management considered (if applicable)
23
+ - [ ] Data flow is complete end-to-end
24
+
25
+ ## Error Handling
26
+
27
+ - [ ] Invalid input scenarios identified
28
+ - [ ] API/external service failures handled
29
+ - [ ] Edge cases documented (empty, null, max values)
30
+ - [ ] Error messages are user-friendly
31
+ - [ ] Graceful degradation planned
32
+
33
+ ## Code Quality
34
+
35
+ - [ ] Types fully defined (no `any` planned)
36
+ - [ ] Follows existing patterns in codebase
37
+ - [ ] Error boundaries where needed
38
+ - [ ] No magic strings/numbers
39
+ - [ ] Consistent naming conventions
40
+
41
+ ## Test Coverage Plan
42
+
43
+ - [ ] Unit tests for business logic
44
+ - [ ] Integration tests for data flow
45
+ - [ ] Edge case tests identified
46
+ - [ ] Mocking strategy appropriate
47
+ - [ ] Critical paths have test coverage
48
+
49
+ ## Best Practices
50
+
51
+ - [ ] Logging for debugging/observability
52
+ - [ ] Accessibility considerations (if UI)
53
+ - [ ] Performance implications considered
54
+ - [ ] Security reviewed (auth, validation, sanitization)
55
+ - [ ] Documentation updated (if behavior changes)
56
+
57
+ ## Polish (UI features only)
58
+
59
+ - [ ] Loading states planned
60
+ - [ ] Error states have UI
61
+ - [ ] Empty states handled
62
+ - [ ] Responsive design considered
63
+ - [ ] Keyboard navigation works
64
+
65
+ ## Derived ACs
66
+
67
+ Based on quality planning, identify additional ACs:
68
+
69
+ | Source | Derived AC | Priority |
70
+ |--------|-----------|----------|
71
+ | Error Handling | AC-N: Handle [specific error] with [specific response] | High/Medium/Low |
72
+ | Test Coverage | AC-N+1: Add tests for [specific scenario] | High/Medium/Low |
73
+ | Best Practices | AC-N+2: Add logging for [specific operation] | High/Medium/Low |
74
+
75
+ Derived ACs are numbered sequentially after original ACs.
@@ -805,33 +805,6 @@ Both can be used together:
805
805
 
806
806
  ---
807
807
 
808
- ## State Tracking
809
-
810
- **IMPORTANT:** Update workflow state when running standalone (not orchestrated).
811
-
812
- ### State Updates (Standalone Only)
813
-
814
- When NOT orchestrated (`SEQUANT_ORCHESTRATOR` is not set):
815
-
816
- **At skill start:**
817
- ```bash
818
- npx tsx scripts/state/update.ts start <issue-number> test
819
- ```
820
-
821
- **On successful completion:**
822
- ```bash
823
- npx tsx scripts/state/update.ts complete <issue-number> test
824
- ```
825
-
826
- **On failure:**
827
- ```bash
828
- npx tsx scripts/state/update.ts fail <issue-number> test "X/Y tests failed"
829
- ```
830
-
831
- **Why this matters:** State tracking enables dashboard visibility, resume capability, and workflow orchestration. Skills update state when standalone; orchestrators handle state when running workflows.
832
-
833
- ---
834
-
835
808
  ## Output Verification
836
809
 
837
810
  **Before responding, verify your output includes ALL of these:**
@@ -672,33 +672,6 @@ Generated with [Claude Code](https://claude.com/claude-code)
672
672
 
673
673
  ---
674
674
 
675
- ## State Tracking
676
-
677
- **IMPORTANT:** Update workflow state when running standalone (not orchestrated).
678
-
679
- ### State Updates (Standalone Only)
680
-
681
- When NOT orchestrated (`SEQUANT_ORCHESTRATOR` is not set):
682
-
683
- **At skill start:**
684
- ```bash
685
- npx tsx scripts/state/update.ts start <issue-number> testgen
686
- ```
687
-
688
- **On successful completion:**
689
- ```bash
690
- npx tsx scripts/state/update.ts complete <issue-number> testgen
691
- ```
692
-
693
- **On failure:**
694
- ```bash
695
- npx tsx scripts/state/update.ts fail <issue-number> testgen "Failed to generate test stubs"
696
- ```
697
-
698
- **Note:** `/testgen` is an optional skill that generates test stubs. State tracking is informational - it doesn't block subsequent phases.
699
-
700
- ---
701
-
702
675
  ## Output Verification
703
676
 
704
677
  **Before responding, verify your output includes ALL of these:**