Compare commits

...

2 commits

Author SHA1 Message Date
Francisco Solla
365f254f06 ops(OPS55): prettier em scripts/worktree.mjs (formato pós-commit)
All checks were successful
Agent PR Ready + auto-merge / ready-automerge (pull_request) Has been skipped
CI (PR) / docs-guards (pull_request) Successful in 13s
CI (PR) / scope (pull_request) Successful in 48s
CI (PR) / plans-only-closes (pull_request) Successful in 11s
CI (PR) / typecheck (pull_request) Has been skipped
CI (PR) / knip (pull_request) Has been skipped
CI (PR) / cycles (pull_request) Has been skipped
CI (PR) / lint (pull_request) Successful in 1m3s
CI (PR) / format (pull_request) Successful in 1m11s
CI (PR) / unit (pull_request) Successful in 1m2s
CI (PR) / build (pull_request) Has been skipped
CI (PR) / int (pull_request) Successful in 2m43s
CI (PR) / e2e (2) (pull_request) Successful in 5m57s
CI (PR) / e2e (1) (pull_request) Successful in 7m15s
CI (PR) / checks (pull_request) Successful in 2s
Promote plan-issue Related on main merge / plan-issue-ready (pull_request) Has been skipped
Main merge flips claimed issues to done + in-prod / issue-done (pull_request) Successful in 16s
Agent pool supervisor / tick (pull_request) Successful in 53s
2026-08-17 22:35:28 -03:00
Francisco Solla
3165a3e7bd ops(OPS55): worktree respeita WORKTREES_ROOT do .forgejo/worktree.env
- worktree.mjs: WORKTREES_ROOT = env ?? fallback (~/.cursor/worktrees/teqo)
- .forgejo/worktree.env novo: FORGEJO_REPOSITORY=fsolla/teqo + root atual
  (migração para ~/.worktrees/teqo fica para quando as sessões opencode
  ativas nos worktrees antigos fecharem — OPS52/OPS53/PUB5)

Roteador global (~/.config/shell/worktree.sh) exporta as chaves do arquivo
por projeto; iara-pwa já usa o mesmo mecanismo.
2026-08-17 22:34:21 -03:00
2 changed files with 6 additions and 1 deletions

5
.forgejo/worktree.env Normal file
View file

@ -0,0 +1,5 @@
FORGEJO_REPOSITORY=fsolla/teqo
# Mantém o root atual enquanto houver sessões opencode ativas nos worktrees
# antigos (OPS52/OPS53/PUB5 em ~/.cursor/worktrees/teqo). Quando todas
# fecharem, migrar para ~/.worktrees/teqo (git worktree move) e trocar aqui.
WORKTREES_ROOT=~/.cursor/worktrees/teqo

View file

@ -141,7 +141,7 @@ import {
} from './lib/worktree.mjs'
const die = dieAgent('worktree')
const WORKTREES_ROOT = join(homedir(), '.cursor', 'worktrees', 'teqo')
const WORKTREES_ROOT = process.env.WORKTREES_ROOT ?? join(homedir(), '.cursor', 'worktrees', 'teqo')
/**
* True when the interactive terminal shell function (`.agents/shell/worktree.sh`)