sequant 1.1.2 → 1.1.3

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 (39) hide show
  1. package/dist/bin/cli.js +2 -1
  2. package/dist/bin/cli.js.map +1 -1
  3. package/dist/src/commands/init.d.ts.map +1 -1
  4. package/dist/src/commands/init.js +38 -2
  5. package/dist/src/commands/init.js.map +1 -1
  6. package/dist/src/commands/init.test.js +37 -1
  7. package/dist/src/commands/init.test.js.map +1 -1
  8. package/dist/src/commands/run.d.ts +2 -0
  9. package/dist/src/commands/run.d.ts.map +1 -1
  10. package/dist/src/commands/run.js +219 -18
  11. package/dist/src/commands/run.js.map +1 -1
  12. package/dist/src/commands/update.d.ts.map +1 -1
  13. package/dist/src/commands/update.js +50 -2
  14. package/dist/src/commands/update.js.map +1 -1
  15. package/dist/src/index.d.ts +3 -1
  16. package/dist/src/index.d.ts.map +1 -1
  17. package/dist/src/index.js +2 -1
  18. package/dist/src/index.js.map +1 -1
  19. package/dist/src/lib/config.d.ts +19 -0
  20. package/dist/src/lib/config.d.ts.map +1 -0
  21. package/dist/src/lib/config.js +31 -0
  22. package/dist/src/lib/config.js.map +1 -0
  23. package/dist/src/lib/settings.d.ts +69 -0
  24. package/dist/src/lib/settings.d.ts.map +1 -0
  25. package/dist/src/lib/settings.js +79 -0
  26. package/dist/src/lib/settings.js.map +1 -0
  27. package/dist/src/lib/stacks.d.ts +1 -0
  28. package/dist/src/lib/stacks.d.ts.map +1 -1
  29. package/dist/src/lib/stacks.js +6 -0
  30. package/dist/src/lib/stacks.js.map +1 -1
  31. package/dist/src/lib/templates.d.ts +5 -1
  32. package/dist/src/lib/templates.d.ts.map +1 -1
  33. package/dist/src/lib/templates.js +3 -2
  34. package/dist/src/lib/templates.js.map +1 -1
  35. package/dist/src/lib/workflow/types.d.ts +2 -0
  36. package/dist/src/lib/workflow/types.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/templates/skills/solve/SKILL.md +27 -11
  39. package/templates/skills/spec/SKILL.md +30 -2
@@ -46,6 +46,8 @@ export interface PhaseResult {
46
46
  success: boolean;
47
47
  durationSeconds?: number;
48
48
  error?: string;
49
+ /** Captured output from the phase (used for parsing spec recommendations) */
50
+ output?: string;
49
51
  }
50
52
  /**
51
53
  * Result of executing all phases for an issue
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/workflow/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,EAA2B,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,wBAAwB;IACxB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,mCAAmC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,WAAW,EAAE,OAAO,CAAC;IACrB,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,8BAA8B;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,4CAA4C;IAC5C,aAAa,EAAE,OAAO,CAAC;IACvB,qBAAqB;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,mCAAmC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,4CAA4C;IAC5C,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,eAW5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;A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,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sequant",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Quantize your development workflow - Sequential AI phases with quality gates",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,7 +58,7 @@ Provide a clear, actionable response with:
58
58
 
59
59
  2. **Recommended Commands** in order
60
60
 
61
- 3. **CLI Command** - ALWAYS include `sequant run <issue>` for terminal/CI usage
61
+ 3. **CLI Command** - ALWAYS include `npx sequant run <issue>` for terminal/CI usage
62
62
 
63
63
  4. **Explanation** of why this workflow was chosen
64
64
 
@@ -102,10 +102,12 @@ For comprehensive quality with automatic fix iterations:
102
102
 
103
103
  Run from terminal (useful for automation/CI):
104
104
  ```bash
105
- sequant run 152 # Single issue
106
- sequant run 152 153 # Multiple issues
105
+ npx sequant run 152 # Single issue
106
+ npx sequant run 152 153 # Multiple issues
107
107
  ```
108
108
 
109
+ > **Tip:** For frequent use, install globally with `npm install -g sequant` to run `sequant` directly without `npx`.
110
+
109
111
  ### Notes
110
112
  - Issue #152 requires UI testing due to `ui` label
111
113
  - Issue #153 is a bug fix - simpler workflow recommended
@@ -114,6 +116,16 @@ sequant run 152 153 # Multiple issues
114
116
 
115
117
  ## Workflow Selection Logic
116
118
 
119
+ **Note:** `npx sequant run` now uses **spec-driven phase detection**. It runs `/spec` first, which analyzes the issue and outputs a `## Recommended Workflow` section. The CLI then parses this to determine subsequent phases.
120
+
121
+ ### How It Works
122
+
123
+ 1. **Bug fixes** (labels: `bug`, `fix`) → Skip spec, run `exec → qa` directly
124
+ 2. **All other issues** → Run `/spec` first, which recommends phases based on:
125
+ - UI/frontend changes → Add `test` phase
126
+ - Complex refactors → Enable quality loop
127
+ - Security-sensitive → Add `security-review` phase
128
+
117
129
  ### Standard Workflow (Most Issues)
118
130
  ```
119
131
  /spec → /exec → /qa
@@ -148,25 +160,27 @@ Runs complete workflow with automatic fix iterations.
148
160
 
149
161
  ## CLI Alternative
150
162
 
151
- Use `sequant run` for batch execution from the command line:
163
+ Use `npx sequant run` for batch execution from the command line:
152
164
 
153
165
  ```bash
154
166
  # Run workflow for single issue
155
- sequant run 152
167
+ npx sequant run 152
156
168
 
157
169
  # Multiple issues in parallel
158
- sequant run 152 153 154
170
+ npx sequant run 152 153 154
159
171
 
160
172
  # Sequential execution (respects dependencies)
161
- sequant run 152 153 --sequential
173
+ npx sequant run 152 153 --sequential
162
174
 
163
175
  # Custom phases
164
- sequant run 152 --phases spec,exec,qa
176
+ npx sequant run 152 --phases spec,exec,qa
165
177
 
166
178
  # Dry run (shows what would execute)
167
- sequant run 152 --dry-run
179
+ npx sequant run 152 --dry-run
168
180
  ```
169
181
 
182
+ > **Tip:** Install globally with `npm install -g sequant` to omit the `npx` prefix.
183
+
170
184
  ## Edge Cases
171
185
 
172
186
  ### Multiple Issues with Different Types
@@ -203,7 +217,7 @@ If issues depend on each other:
203
217
 
204
218
  - [ ] **Issue Summary Table** - Table with Issue, Title, Labels, Workflow columns
205
219
  - [ ] **Recommended Workflow** - Slash commands in order for each issue
206
- - [ ] **CLI Command** - `sequant run <issue-numbers>` command (REQUIRED)
220
+ - [ ] **CLI Command** - `npx sequant run <issue-numbers>` command (REQUIRED)
207
221
  - [ ] **Explanation** - Brief notes explaining workflow choices
208
222
 
209
223
  **DO NOT respond until all items are verified.**
@@ -232,9 +246,11 @@ You MUST use this exact structure:
232
246
 
233
247
  Run from terminal (useful for automation/CI):
234
248
  \`\`\`bash
235
- sequant run <ISSUE_NUMBERS>
249
+ npx sequant run <ISSUE_NUMBERS>
236
250
  \`\`\`
237
251
 
252
+ > **Tip:** Install globally with `npm install -g sequant` to omit the `npx` prefix.
253
+
238
254
  ### Notes
239
255
  <!-- FILL: explanation of workflow choices -->
240
256
  ```
@@ -143,7 +143,26 @@ Ask the user to confirm or adjust:
143
143
 
144
144
  **Do NOT start implementation** - this is planning-only.
145
145
 
146
- ### 4. Issue Comment Draft
146
+ ### 4. Recommended Workflow
147
+
148
+ Analyze the issue and recommend the optimal workflow phases:
149
+
150
+ ```markdown
151
+ ## Recommended Workflow
152
+
153
+ **Phases:** spec → exec → qa
154
+ **Quality Loop:** disabled
155
+ **Reasoning:** [Brief explanation of why these phases were chosen]
156
+ ```
157
+
158
+ **Phase Selection Logic:**
159
+ - **UI/Frontend changes** → Add `test` phase (browser testing)
160
+ - **Bug fixes** → Skip `spec` if already well-defined
161
+ - **Complex refactors** → Enable quality loop
162
+ - **Security-sensitive** → Add `security-review` phase
163
+ - **Documentation only** → Skip `spec`, just `exec → qa`
164
+
165
+ ### 5. Issue Comment Draft
147
166
 
148
167
  Generate a Markdown snippet with:
149
168
  - AC checklist with verification criteria
@@ -159,7 +178,7 @@ Label clearly as:
159
178
  --- DRAFT GITHUB ISSUE COMMENT (PLAN) ---
160
179
  ```
161
180
 
162
- ### 5. Update GitHub Issue
181
+ ### 6. Update GitHub Issue
163
182
 
164
183
  Post the draft comment to GitHub:
165
184
  ```bash
@@ -176,6 +195,7 @@ gh issue edit <issue-number> --add-label "planned"
176
195
  - [ ] **AC Checklist** - Numbered AC items (AC-1, AC-2, etc.) with descriptions
177
196
  - [ ] **Verification Criteria** - Each AC has Verification Method and Test Scenario
178
197
  - [ ] **Implementation Plan** - 3-7 concrete steps with codebase references
198
+ - [ ] **Recommended Workflow** - Phases, Quality Loop setting, and Reasoning
179
199
  - [ ] **Open Questions** - Any ambiguities with recommended defaults
180
200
  - [ ] **Issue Comment Draft** - Formatted for GitHub posting
181
201
 
@@ -221,6 +241,14 @@ You MUST include these sections in order:
221
241
 
222
242
  ---
223
243
 
244
+ ## Recommended Workflow
245
+
246
+ **Phases:** exec → qa
247
+ **Quality Loop:** disabled
248
+ **Reasoning:** [Why these phases based on issue analysis]
249
+
250
+ ---
251
+
224
252
  --- DRAFT GITHUB ISSUE COMMENT (PLAN) ---
225
253
 
226
254
  [Complete formatted comment for GitHub]