teqo-backup/scripts
Francisco Solla c399b918c3 feat(worktree): comando plan — worktree dedicado ao /plan-issue
Novo subcomando `pnpm worktree plan [--go] [--no-migrate]` cria/reutiliza o
worktree de planejamento no branch fixo `plans/plan-issue`
(`PLAN_WORKTREE_BRANCH`), sem vínculo com a fila de claim: um `next` posterior
da próxima Issue nunca colide em branch nem em slot (slot derivado por hash do
branch, bumpado entre worktrees vivos). Mesmo provisionamento isolado do
`next` — porta 3100+slot, bancos teqo_wt<slot>/teqo_wt<slot>_test, migrations.

- scripts/worktree.mjs: cmdPlan + provision() com purpose/issue opcionais
- scripts/lib/worktree.mjs: constante PLAN_WORKTREE_BRANCH
- tests/unit/worktree.unit.spec.ts: derivação de slot do plano
- docs: .opencode/commands/worktree.md, shell, skills, AGENTS.md, changelog
2026-08-08 16:00:27 -03:00
..
consent-texts Restore full roadmap detail and align project documentation. 2026-07-19 16:19:36 -03:00
lib feat(worktree): comando plan — worktree dedicado ao /plan-issue 2026-08-08 16:00:27 -03:00
agent-claim.mjs fix(agent-pool): include issue state in claim queue JSON 2026-08-01 03:20:27 +00:00
agent-file-miss.mjs chore: format agent scripts 2026-07-30 05:16:00 -03:00
agent-pool.mjs Separate intention plans from engineering execution in agent skills. 2026-08-02 14:02:18 -03:00
agent-prioritize.mjs feat: agent ops scripts (claim/register/prioritize/file-miss/promote) + roadmap issues seeded 2026-07-30 05:15:04 -03:00
agent-promote-related-on-merge.mjs style: prettier AGENT-OPS and promote-related script 2026-08-03 00:23:26 +00:00
agent-ready.mjs fix(ops): OPS18 simplify — Related regex, already-ready, job gate 2026-08-03 00:22:55 +00:00
agent-register.mjs feat(ops): OPS17 — plan-issue blocked até plano em main 2026-08-03 00:06:14 +00:00
agent-status.mjs feat: project-status + agent:status 2026-07-30 12:22:05 -03:00
assert-local-database.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
build-bahia-demographics.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
build-bahia-geometries.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
build-bahia-tse-city-codes.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
build-election-aggregates.mjs B13+: concordância LQ, readout de escopo no mapa e DRY do build de agregados. 2026-07-29 16:26:43 -03:00
build-municipality-zone-geometries.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
check-plans-only-pr-closes.mjs OPS12 — CI bloqueia Closes/Fixes em PR só docs/plans 2026-08-01 11:26:19 +00:00
check-test-locations.mjs chore: migrate .cursor/ references to .agents/ folder 2026-08-05 00:09:09 -03:00
ci-scope.mjs ci(pr): cascade phase1→phase2 with blast-radius skips 2026-07-31 20:57:18 -03:00
configure-branch-protection.mjs ci: main-only cutover with gated Vercel deploy 2026-07-31 20:57:18 -03:00
db-doctor.mjs feat(worktree): ambientes isolados por worktree — porta própria, bancos próprios, migrations no provision 2026-08-08 11:33:07 -03:00
db-pull.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
e2e-affected.mjs ci(pr): cascade phase1→phase2 with blast-radius skips 2026-07-31 20:57:18 -03:00
ensure-repo-deps.mjs feat(ops): auto-promote stage→main e merge em stage sem exigir head (#68) 2026-07-30 21:12:52 -03:00
gate-ci.mjs feat(worktree): ambientes isolados por worktree — porta própria, bancos próprios, migrations no provision 2026-08-08 11:33:07 -03:00
git-push.mjs feat(ops): auto-promote stage→main e merge em stage sem exigir head (#68) 2026-07-30 21:12:52 -03:00
guard-dev-db.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
import-projecao.mjs fix(campanha): preserve StateDeputy migration identity 2026-08-06 18:38:47 -03:00
issue.mjs feat(scripts): deterministic worktree + issue CLI (next --go, kill, all) 2026-08-07 01:27:22 -03:00
regenerate-municipality-catalog-snapshot.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
run-e2e-affected.mjs fix(campanha): share one Drawer across municipalities mobile cards 2026-07-30 17:37:20 -03:00
seed-consent.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
seed-loader.mjs Add TSE 2022 election results model and local seed import. 2026-07-18 18:25:19 -03:00
seed-minimal.mjs feat(campanha): B163 — editar contatos das dobradinhas 2026-08-06 16:52:55 -03:00
seed-posts.mjs fix(seed-posts): import dieWithLabel before calling it (Pass 4 P1) 2026-07-31 13:17:10 -03:00
seed-tse-results.mjs Engineering Pass 3: consolidate patterns and lock them with guards. 2026-07-29 06:11:29 -03:00
test-affected.mjs ci(pr): cascade phase1→phase2 with blast-radius skips 2026-07-31 20:57:18 -03:00
vercel-deploy-cooldown.mjs style: format vercel-deploy-cooldown.mjs 2026-08-01 10:55:36 +00:00
vercel-ensure-production-alias.mjs fix(ci): verify domain alias via aliases API + vercel alias set 2026-08-01 15:48:59 +00:00
vercel-ignore-build.sh ci: main-only cutover with gated Vercel deploy 2026-07-31 20:57:18 -03:00
worktree.mjs feat(worktree): comando plan — worktree dedicado ao /plan-issue 2026-08-08 16:00:27 -03:00