Compare commits

...

2 commits

Author SHA1 Message Date
Francisco Solla
7a8f4d9830 ops(OPS55): prettier em scripts/worktree.mjs (formato pós-commit)
Some checks failed
CI / static (push) Successful in 2m25s
CI / int (push) Successful in 2m35s
CI / build (push) Successful in 3m35s
CI / e2e (1) (push) Has been cancelled
CI / e2e (2) (push) Has been cancelled
CI / checks (push) Has been cancelled
CI / deploy homeserver (teqo-1313) (push) Has been cancelled
2026-08-18 01:53:27 +00:00
Francisco Solla
ff14cef653 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-18 01:53:27 +00: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`)