sequant 1.2.7 → 1.4.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 (48) hide show
  1. package/README.md +3 -0
  2. package/dist/bin/cli.js +1 -0
  3. package/dist/bin/cli.js.map +1 -1
  4. package/dist/src/commands/init.d.ts +1 -0
  5. package/dist/src/commands/init.d.ts.map +1 -1
  6. package/dist/src/commands/init.js +50 -13
  7. package/dist/src/commands/init.js.map +1 -1
  8. package/dist/src/commands/init.test.js +37 -11
  9. package/dist/src/commands/init.test.js.map +1 -1
  10. package/dist/src/commands/run.d.ts +20 -0
  11. package/dist/src/commands/run.d.ts.map +1 -1
  12. package/dist/src/commands/run.js +33 -3
  13. package/dist/src/commands/run.js.map +1 -1
  14. package/dist/src/commands/run.test.js +166 -1
  15. package/dist/src/commands/run.test.js.map +1 -1
  16. package/dist/src/commands/update.d.ts.map +1 -1
  17. package/dist/src/commands/update.js +15 -3
  18. package/dist/src/commands/update.js.map +1 -1
  19. package/dist/src/lib/system.d.ts.map +1 -1
  20. package/dist/src/lib/system.js +9 -0
  21. package/dist/src/lib/system.js.map +1 -1
  22. package/dist/src/lib/system.test.js +27 -0
  23. package/dist/src/lib/system.test.js.map +1 -1
  24. package/dist/src/lib/tty.d.ts +2 -0
  25. package/dist/src/lib/tty.d.ts.map +1 -1
  26. package/dist/src/lib/tty.js +11 -6
  27. package/dist/src/lib/tty.js.map +1 -1
  28. package/dist/src/lib/tty.test.js +44 -2
  29. package/dist/src/lib/tty.test.js.map +1 -1
  30. package/dist/src/lib/wizard.d.ts +64 -0
  31. package/dist/src/lib/wizard.d.ts.map +1 -0
  32. package/dist/src/lib/wizard.js +255 -0
  33. package/dist/src/lib/wizard.js.map +1 -0
  34. package/dist/src/lib/wizard.test.d.ts +2 -0
  35. package/dist/src/lib/wizard.test.d.ts.map +1 -0
  36. package/dist/src/lib/wizard.test.js +268 -0
  37. package/dist/src/lib/wizard.test.js.map +1 -0
  38. package/dist/src/lib/workflow/run-log-schema.d.ts +10 -4
  39. package/dist/src/lib/workflow/run-log-schema.d.ts.map +1 -1
  40. package/dist/src/lib/workflow/run-log-schema.js +1 -0
  41. package/dist/src/lib/workflow/run-log-schema.js.map +1 -1
  42. package/dist/src/lib/workflow/types.d.ts +1 -1
  43. package/dist/src/lib/workflow/types.d.ts.map +1 -1
  44. package/dist/src/lib/workflow/types.js.map +1 -1
  45. package/package.json +2 -1
  46. package/templates/skills/fullsolve/SKILL.md +17 -0
  47. package/templates/skills/spec/references/recommended-workflow.md +92 -0
  48. package/templates/skills/test/SKILL.md +73 -6
@@ -8,13 +8,13 @@ metadata:
8
8
  allowed-tools:
9
9
  - Read
10
10
  - Bash
11
- - mcp__chrome-devtools__*
11
+ - mcp__chrome-devtools__* # Optional: falls back to manual checklist if unavailable
12
12
  - Glob
13
13
  - Grep
14
14
  - TodoWrite
15
15
  - Bash(gh issue view:*)
16
16
  - Bash(gh issue comment:*)
17
- - Bash(npm run dev:*)
17
+ - Bash({{PM_RUN}} dev:*)
18
18
  - Bash(lsof:*)
19
19
  - Bash(npx tsx:*)
20
20
  ---
@@ -101,18 +101,29 @@ Check for test data requirements:
101
101
 
102
102
  ### 1.4 Dev Server Check
103
103
 
104
- Check if dev server is running:
104
+ **Extract port from DEV_URL configuration:**
105
+ The dev server URL is configured in `.claude/.sequant/config.json` under `tokens.DEV_URL`. Extract the port for the `lsof` check:
106
+
105
107
  ```bash
106
- lsof -ti:3000
108
+ # Get DEV_URL from config (default: {{DEV_URL}})
109
+ # Extract port: http://localhost:PORT -> PORT
110
+ DEV_PORT=$(echo "{{DEV_URL}}" | sed -E 's/.*:([0-9]+).*/\1/')
111
+
112
+ # Check if dev server is running on configured port
113
+ lsof -ti:$DEV_PORT
107
114
  ```
108
115
 
109
- If not running, start it:
116
+ If not running, start it using the project's package manager:
110
117
  ```bash
111
- npm run dev
118
+ {{PM_RUN}} dev
112
119
  ```
113
120
 
114
121
  Wait for server ready before proceeding.
115
122
 
123
+ **Note:** If `{{DEV_URL}}` or `{{PM_RUN}}` are not replaced with actual values, the defaults are:
124
+ - DEV_URL: `http://localhost:3000` (Next.js), `http://localhost:4321` (Astro), `http://localhost:5173` (Vite-based)
125
+ - PM_RUN: `npm run` (or `bun run`, `yarn`, `pnpm run` based on lockfile)
126
+
116
127
  ## Decision Point: Feature Implemented or Not?
117
128
 
118
129
  At this point, you've checked if the feature exists (section 1.2). Based on that result:
@@ -240,6 +251,62 @@ When a bug is discovered during testing:
240
251
  - Mark as PASS/FAIL based on fix
241
252
  - Continue with remaining tests
242
253
 
254
+ ### 2.4 MCP Availability Check (Graceful Fallback)
255
+
256
+ **Before starting browser automation**, check if Chrome DevTools MCP is available:
257
+
258
+ ```
259
+ Check if mcp__chrome-devtools__* tools are available in your current session.
260
+ ```
261
+
262
+ **If MCP IS available:**
263
+ - Proceed with automated browser testing (Phase 2.1-2.3)
264
+
265
+ **If MCP is NOT available:**
266
+ - Skip browser automation steps
267
+ - Generate a **Manual Testing Checklist** instead
268
+
269
+ **Manual Testing Checklist (No MCP Fallback):**
270
+
271
+ When browser automation is unavailable, generate a structured manual testing guide:
272
+
273
+ ```markdown
274
+ ## Manual Testing Checklist for Issue #<N>
275
+
276
+ **Pre-requisites:**
277
+ - [ ] Dev server running at {{DEV_URL}}
278
+ - [ ] Browser open with DevTools ready
279
+ - [ ] Test data prepared (see section 1.3)
280
+
281
+ ### Test 1: [Description]
282
+ **URL:** {{DEV_URL}}/path/to/feature
283
+ **Steps:**
284
+ 1. Navigate to the URL above
285
+ 2. [Action to perform]
286
+ 3. [Expected result to verify]
287
+
288
+ **Expected Result:** [What should happen]
289
+ **Actual Result:** [ ] PASS / [ ] FAIL - Notes: ___
290
+
291
+ ### Test 2: [Description]
292
+ **URL:** {{DEV_URL}}/path/to/feature
293
+ **Steps:**
294
+ 1. [Step 1]
295
+ 2. [Step 2]
296
+
297
+ **Expected Result:** [What should happen]
298
+ **Actual Result:** [ ] PASS / [ ] FAIL - Notes: ___
299
+
300
+ ---
301
+ **Summary:** Complete each test above and mark PASS/FAIL.
302
+ Post results as a comment on this issue.
303
+ ```
304
+
305
+ **Why this matters:**
306
+ - `/test` skill remains useful even without Chrome DevTools MCP
307
+ - Manual testers can follow the structured checklist
308
+ - Test results format remains consistent for reporting
309
+
243
310
  ## Phase 3: Reporting
244
311
 
245
312
  ### 3.1 Generate Test Summary