sequant 1.2.1 → 1.2.2

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.
package/README.md CHANGED
@@ -105,9 +105,27 @@ npx sequant run 123 # Single issue
105
105
  npx sequant run 1 2 3 # Multiple issues in parallel
106
106
  npx sequant run 1 2 3 --sequential # Run in order
107
107
  npx sequant run 123 --phases spec,qa # Custom phases
108
+ npx sequant run 123 --quality-loop # Auto-retry on failures
108
109
  npx sequant run 123 --dry-run # Preview without execution
109
110
  ```
110
111
 
112
+ #### Quality Loop
113
+
114
+ Quality loop provides automatic fix iterations when phases fail:
115
+
116
+ ```bash
117
+ npx sequant run 123 --quality-loop # Enable for any issue
118
+ npx sequant run 123 --quality-loop --max-iterations 5 # Custom limit
119
+ ```
120
+
121
+ **How it works:**
122
+ 1. Runs phases normally (spec → exec → qa)
123
+ 2. If a phase fails, runs `/loop` to fix issues
124
+ 3. Re-runs failed phases after fixes
125
+ 4. Iterates up to 3 times (default)
126
+
127
+ **Smart defaults:** Quality loop auto-enables for issues with `complex`, `refactor`, `breaking`, or `major` labels—no flag needed.
128
+
111
129
  #### Phase Detection
112
130
 
113
131
  When you run `sequant run`, phases are determined automatically using a three-level detection system:
@@ -25,7 +25,7 @@ export const DEFAULT_SETTINGS = {
25
25
  logJson: true,
26
26
  logPath: ".sequant/logs",
27
27
  autoDetectPhases: true,
28
- timeout: 300,
28
+ timeout: 1800,
29
29
  sequential: false,
30
30
  qualityLoop: false,
31
31
  maxIterations: 3,
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/lib/settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,0CAA0C;AAC1C,MAAM,CAAC,MAAM,a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AAO,IAAI,gBAAgB,CAAC,OAAO;YACnD,GAAG,EAAE;gBACH,GAAG,gBAAgB,CAAC,GAAG;gBACvB,GAAG,MAAM,CAAC,GAAG;aACd;SACF,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,gBAAgB,CAAC;IAC1B,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,QAAyB;IAC1D,MAAM,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;IACxC,MAAM,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACpE,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,OAAO,UAAU,CAAC,aAAa,CAAC,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB;IACzC,MAAM,YAAY,CAAC,gBAAgB,CAAC,CAAC;AACvC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sequant",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Quantize your development workflow - Sequential AI phases with quality gates",
5
5
  "type": "module",
6
6
  "bin": {
@@ -46,6 +46,10 @@ gh issue view <issue-number> --json labels --jq '.labels[].name'
46
46
  **Bug Fixes** (labels: `bug`, `fix`):
47
47
  - May need simpler workflow, possibly skip `/spec`
48
48
 
49
+ **Complex Issues** (labels: `complex`, `refactor`, `breaking`, `major`):
50
+ - Recommend `--quality-loop` flag for auto-retry on failures
51
+ - Quality loop auto-enables for these labels in `sequant run`
52
+
49
53
  ## Output Format
50
54
 
51
55
  Provide a clear, actionable response with:
@@ -72,7 +76,7 @@ Provide a clear, actionable response with:
72
76
  | Issue | Title | Labels | Workflow |
73
77
  |-------|-------|--------|----------|
74
78
  | #152 | Add user dashboard | ui, enhancement | Full (with /test) |
75
- | #153 | Fix API validation | backend, bug | Standard |
79
+ | #153 | Refactor auth module | backend, refactor | Standard + quality loop |
76
80
 
77
81
  ### Recommended Workflow
78
82
 
@@ -81,37 +85,36 @@ Provide a clear, actionable response with:
81
85
  /spec 152 # Plan the implementation
82
86
  /exec 152 # Implement the feature
83
87
  /test 152 # Browser-based UI testing
84
- /qa # Quality review
88
+ /qa 152 # Quality review
85
89
  ```
86
90
 
87
- **For #153 (Backend fix):**
91
+ **For #153 (Backend refactor):**
88
92
  ```bash
89
- /spec 153 # Quick plan (bug fix)
90
- /exec 153 # Implement the fix
91
- /qa # Quality review
93
+ /spec 153 # Plan the refactor
94
+ /exec 153 # Implement changes
95
+ /qa 153 # Quality review
92
96
  ```
93
97
 
94
- ### Full Workflow Option
98
+ > **Note:** Issue #153 has `refactor` label. Quality loop will **auto-enable** when using `sequant run`, providing automatic fix iterations if phases fail.
99
+
100
+ ### CLI Command
95
101
 
96
- For comprehensive quality with automatic fix iterations:
102
+ Run from terminal:
97
103
  ```bash
98
- /fullsolve 152
104
+ npx sequant run 152 153
99
105
  ```
100
106
 
101
- ### CLI Command
102
-
103
- Run from terminal (useful for automation/CI):
107
+ For issue #153 (or any complex work), quality loop is recommended:
104
108
  ```bash
105
- npx sequant run 152 # Single issue
106
- npx sequant run 152 153 # Multiple issues
109
+ npx sequant run 153 --quality-loop # Explicit (auto-enabled for refactor label)
107
110
  ```
108
111
 
109
- > **Tip:** For frequent use, install globally with `npm install -g sequant` to run `sequant` directly without `npx`.
112
+ > **Tip:** Install globally with `npm install -g sequant` to omit the `npx` prefix.
110
113
 
111
114
  ### Notes
112
115
  - Issue #152 requires UI testing due to `ui` label
113
- - Issue #153 is a bug fix - simpler workflow recommended
114
- - Run `/qa` after each issue before moving to next
116
+ - Issue #153 will auto-enable quality loop due to `refactor` label
117
+ - Quality loop: auto-retries failed phases up to 3 times
115
118
  ```
116
119
 
117
120
  ## Workflow Selection Logic
@@ -155,9 +158,13 @@ Runs complete workflow with automatic fix iterations.
155
158
  | UI Feature | ui, frontend, admin | spec → exec → test → qa |
156
159
  | Backend Feature | backend, api | spec → exec → qa |
157
160
  | Bug Fix | bug, fix | exec → qa (or full if complex) |
158
- | Complex Feature | complex, refactor | fullsolve |
161
+ | Complex Feature | complex, refactor | `--quality-loop` or fullsolve |
159
162
  | Documentation | docs | exec → qa |
160
163
 
164
+ **Quality Loop vs Fullsolve:**
165
+ - `--quality-loop`: Enables auto-retry within `sequant run` (good for CI/automation)
166
+ - `/fullsolve`: Interactive single-issue resolution with inline loops (good for manual work)
167
+
161
168
  ## CLI Alternative
162
169
 
163
170
  Use `npx sequant run` for batch execution from the command line:
@@ -175,6 +182,12 @@ npx sequant run 152 153 --sequential
175
182
  # Custom phases
176
183
  npx sequant run 152 --phases spec,exec,qa
177
184
 
185
+ # Quality loop (auto-retry on failures, max 3 iterations)
186
+ npx sequant run 152 --quality-loop
187
+
188
+ # Quality loop with custom iterations
189
+ npx sequant run 152 --quality-loop --max-iterations 5
190
+
178
191
  # Dry run (shows what would execute)
179
192
  npx sequant run 152 --dry-run
180
193
  ```
@@ -233,7 +246,7 @@ You MUST use this exact structure:
233
246
 
234
247
  | Issue | Title | Labels | Workflow |
235
248
  |-------|-------|--------|----------|
236
- <!-- FILL: one row per issue -->
249
+ <!-- FILL: one row per issue. For complex/refactor/breaking/major labels, add "+ quality loop" to Workflow -->
237
250
 
238
251
  ### Recommended Workflow
239
252
 
@@ -242,15 +255,25 @@ You MUST use this exact structure:
242
255
  <!-- FILL: slash commands in order -->
243
256
  \`\`\`
244
257
 
258
+ <!-- IF any issue has complex/refactor/breaking/major label, include this callout: -->
259
+ > **Note:** Issue #<N> has `<label>` label. Quality loop will **auto-enable** when using `sequant run`, providing automatic fix iterations if phases fail.
260
+
245
261
  ### CLI Command
246
262
 
247
- Run from terminal (useful for automation/CI):
263
+ Run from terminal:
248
264
  \`\`\`bash
249
265
  npx sequant run <ISSUE_NUMBERS>
250
266
  \`\`\`
251
267
 
268
+ <!-- IF any issue has complex/refactor/breaking/major label, include: -->
269
+ For complex issues, quality loop is recommended:
270
+ \`\`\`bash
271
+ npx sequant run <ISSUE_NUMBER> --quality-loop # Explicit (auto-enabled for <label> label)
272
+ \`\`\`
273
+
252
274
  > **Tip:** Install globally with `npm install -g sequant` to omit the `npx` prefix.
253
275
 
254
276
  ### Notes
255
277
  <!-- FILL: explanation of workflow choices -->
278
+ <!-- Include note about quality loop auto-enabling if applicable -->
256
279
  ```