Documentation
¶
Overview ¶
Package room manages the isolated workrooms of §6.2: one git worktree per active task under .devclean/rooms/<id>/, on branch devclean/<id>, with its own dependencies and port. Rooms are destroyed when the task ends.
Index ¶
- Constants
- func Branch(id string) string
- func Destroy(ctx context.Context, root, id string) error
- func Dir(root string) string
- func Integrar(ctx context.Context, root, id string) (string, error)
- func RamaExiste(ctx context.Context, root, id string) bool
- func ResetIntegration(ctx context.Context, root, base string) error
- type Room
Constants ¶
const IntegrationBranch = "devclean/_integra"
IntegrationBranch es la rama temporal donde se encadenan las oleadas: el trabajo verde de una oleada se mergea aquí y la siguiente oleada crea sus cuartos desde esta rama (Fase 2).
Variables ¶
This section is empty.
Functions ¶
func Destroy ¶
Destroy removes the worktree and its branch. Missing pieces are skipped: Destroy always leaves a clean state.
func Integrar ¶ added in v0.2.1
Integrar mergea la rama de una tarea verde en la rama de integración. Devuelve la salida del conflicto (vacía si el merge fue limpio) y un error si hubo conflicto u otro fallo.
func RamaExiste ¶ added in v0.2.4
RamaExiste reporta si la rama de un cuarto sigue en el repo. El trabajo verde de una corrida anterior vive ahí hasta que `ship` lo entrega, así que una corrida nueva necesita saber si puede apoyarse en él.