sequant 2.0.0 → 2.1.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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +7 -6
- package/dist/bin/cli.js +2 -1
- package/dist/marketplace/external_plugins/sequant/.claude-plugin/plugin.json +1 -1
- package/dist/marketplace/external_plugins/sequant/.mcp.json +6 -0
- package/dist/marketplace/external_plugins/sequant/README.md +58 -8
- package/dist/marketplace/external_plugins/sequant/hooks/post-tool.sh +19 -8
- package/dist/marketplace/external_plugins/sequant/hooks/pre-tool.sh +36 -49
- package/dist/marketplace/external_plugins/sequant/skills/_shared/references/subagent-types.md +158 -48
- package/dist/marketplace/external_plugins/sequant/skills/assess/SKILL.md +354 -352
- package/dist/marketplace/external_plugins/sequant/skills/exec/SKILL.md +1155 -33
- package/dist/marketplace/external_plugins/sequant/skills/fullsolve/SKILL.md +35 -4
- package/dist/marketplace/external_plugins/sequant/skills/qa/SKILL.md +2157 -104
- package/dist/marketplace/external_plugins/sequant/skills/qa/scripts/quality-checks.sh +1 -1
- package/dist/marketplace/external_plugins/sequant/skills/setup/SKILL.md +386 -0
- package/dist/marketplace/external_plugins/sequant/skills/solve/SKILL.md +38 -664
- package/dist/marketplace/external_plugins/sequant/skills/spec/SKILL.md +505 -120
- package/dist/marketplace/external_plugins/sequant/skills/test/SKILL.md +246 -1
- package/dist/marketplace/external_plugins/sequant/skills/testgen/SKILL.md +138 -1
- package/dist/src/commands/dashboard.js +1 -1
- package/dist/src/commands/doctor.js +1 -1
- package/dist/src/commands/init.js +10 -10
- package/dist/src/commands/logs.js +1 -1
- package/dist/src/commands/run.js +49 -39
- package/dist/src/commands/state.js +3 -3
- package/dist/src/commands/status.js +5 -5
- package/dist/src/commands/sync.js +8 -8
- package/dist/src/commands/update.js +16 -16
- package/dist/src/lib/cli-ui.js +20 -19
- package/dist/src/lib/merge-check/index.js +2 -2
- package/dist/src/lib/settings.d.ts +8 -0
- package/dist/src/lib/settings.js +1 -0
- package/dist/src/lib/shutdown.js +1 -1
- package/dist/src/lib/templates.js +2 -0
- package/dist/src/lib/wizard.js +6 -4
- package/dist/src/lib/workflow/batch-executor.d.ts +9 -1
- package/dist/src/lib/workflow/batch-executor.js +39 -2
- package/dist/src/lib/workflow/log-writer.js +6 -6
- package/dist/src/lib/workflow/metrics-writer.js +5 -3
- package/dist/src/lib/workflow/phase-executor.d.ts +1 -1
- package/dist/src/lib/workflow/phase-executor.js +52 -22
- package/dist/src/lib/workflow/platforms/github.js +5 -1
- package/dist/src/lib/workflow/state-cleanup.js +1 -1
- package/dist/src/lib/workflow/state-manager.js +15 -13
- package/dist/src/lib/workflow/state-rebuild.js +2 -2
- package/dist/src/lib/workflow/types.d.ts +27 -0
- package/dist/src/lib/workflow/worktree-manager.js +40 -41
- package/dist/src/lib/worktree-isolation.d.ts +130 -0
- package/dist/src/lib/worktree-isolation.js +310 -0
- package/package.json +24 -14
- package/templates/agents/sequant-explorer.md +23 -0
- package/templates/agents/sequant-implementer.md +18 -0
- package/templates/agents/sequant-qa-checker.md +24 -0
- package/templates/agents/sequant-testgen.md +25 -0
- package/templates/scripts/cleanup-worktree.sh +18 -0
- package/templates/skills/_shared/references/subagent-types.md +158 -48
- package/templates/skills/exec/SKILL.md +72 -6
- package/templates/skills/qa/SKILL.md +8 -217
- package/templates/skills/spec/SKILL.md +446 -120
- package/templates/skills/testgen/SKILL.md +138 -1
|
@@ -143,7 +143,14 @@ When posting progress comments after each phase, append the appropriate marker:
|
|
|
143
143
|
### 0.1 Git State Verification
|
|
144
144
|
|
|
145
145
|
```bash
|
|
146
|
-
# Check current branch
|
|
146
|
+
# Check current branch — warn if on main/master
|
|
147
|
+
CURRENT_BRANCH=$(git branch --show-current)
|
|
148
|
+
echo "Current branch: $CURRENT_BRANCH"
|
|
149
|
+
if [[ "$CURRENT_BRANCH" == "main" || "$CURRENT_BRANCH" == "master" ]]; then
|
|
150
|
+
echo "⚠️ WARNING: On $CURRENT_BRANCH — will need feature branch before committing"
|
|
151
|
+
fi
|
|
152
|
+
|
|
153
|
+
# Check recent commits
|
|
147
154
|
git log --oneline -5 --stat
|
|
148
155
|
|
|
149
156
|
# Check for any existing work on this issue
|
|
@@ -412,6 +419,30 @@ while qa_iteration < 2:
|
|
|
412
419
|
|
|
413
420
|
## Phase 5: Pull Request (PR)
|
|
414
421
|
|
|
422
|
+
### 5.0 Branch Verification Gate
|
|
423
|
+
|
|
424
|
+
**CRITICAL: Verify you are on the correct feature branch before committing or creating a PR.**
|
|
425
|
+
|
|
426
|
+
```bash
|
|
427
|
+
CURRENT_BRANCH=$(git branch --show-current)
|
|
428
|
+
echo "Current branch: $CURRENT_BRANCH"
|
|
429
|
+
|
|
430
|
+
# HARD GATE: Must be on a feature branch, not main/master
|
|
431
|
+
if [[ "$CURRENT_BRANCH" == "main" || "$CURRENT_BRANCH" == "master" ]]; then
|
|
432
|
+
echo "❌ ERROR: On $CURRENT_BRANCH — commits must NOT land on main."
|
|
433
|
+
echo " Fix: git checkout feature/<issue-number>-* or create a new branch."
|
|
434
|
+
exit 1
|
|
435
|
+
fi
|
|
436
|
+
|
|
437
|
+
# Soft check: branch should match the issue number
|
|
438
|
+
if ! echo "$CURRENT_BRANCH" | grep -q "<issue-number>"; then
|
|
439
|
+
echo "⚠️ WARNING: Branch '$CURRENT_BRANCH' does not contain issue number <issue-number>."
|
|
440
|
+
echo " Verify this is the correct branch before continuing."
|
|
441
|
+
fi
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
**Why this matters:** Sub-agents and shell context resets can silently switch the working directory back to main. Without this check, commits land on main instead of the feature branch, requiring messy recovery (cherry-picks, force pushes, re-created PRs).
|
|
445
|
+
|
|
415
446
|
### 5.1 Create PR (if not exists)
|
|
416
447
|
|
|
417
448
|
```bash
|
|
@@ -435,8 +466,8 @@ Post completion comment to issue with:
|
|
|
435
466
|
**IMPORTANT:** Merge the PR first, then clean up the worktree.
|
|
436
467
|
|
|
437
468
|
```bash
|
|
438
|
-
# 1. Merge PR (--delete-branch
|
|
439
|
-
gh pr merge <N> --squash
|
|
469
|
+
# 1. Merge PR (without --delete-branch; cleanup happens after success)
|
|
470
|
+
gh pr merge <N> --squash
|
|
440
471
|
|
|
441
472
|
# 2. Clean up worktree (removes local worktree + branch)
|
|
442
473
|
./scripts/dev/cleanup-worktree.sh feature/<issue-number>-*
|
|
@@ -444,7 +475,7 @@ gh pr merge <N> --squash --delete-branch
|
|
|
444
475
|
# 3. Issue auto-closes if commit message contains "Fixes #N"
|
|
445
476
|
```
|
|
446
477
|
|
|
447
|
-
**Why this order matters:** The cleanup script checks if the PR is merged before proceeding.
|
|
478
|
+
**Why this order matters:** The cleanup script checks if the PR is merged before proceeding. Merging without `--delete-branch` avoids worktree lock conflicts. The post-tool hook and cleanup script handle branch removal after merge succeeds. If the merge fails, the worktree is preserved so work isn't lost.
|
|
448
479
|
|
|
449
480
|
### 5.4 Post-Merge Verification
|
|
450
481
|
|