@pennixrv/trellis 0.7.0-beta.9 → 0.7.1-beta.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/README.md +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +14 -26
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/ablate.js +1 -1
- package/dist/commands/ablate.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +30 -56
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/task-progress.d.ts +2 -0
- package/dist/commands/task-progress.d.ts.map +1 -1
- package/dist/commands/task-progress.js +37 -30
- package/dist/commands/task-progress.js.map +1 -1
- package/dist/commands/{channel → teamwork}/adapters/claude.d.ts +3 -3
- package/dist/commands/teamwork/adapters/claude.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/claude.js +3 -3
- package/dist/commands/teamwork/adapters/claude.js.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/codex.d.ts +1 -15
- package/dist/commands/teamwork/adapters/codex.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/codex.js +5 -42
- package/dist/commands/teamwork/adapters/codex.js.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/index.d.ts +6 -6
- package/dist/commands/teamwork/adapters/index.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/index.js +16 -52
- package/dist/commands/teamwork/adapters/index.js.map +1 -0
- package/dist/commands/{channel → teamwork}/adapters/types.d.ts +2 -2
- package/dist/commands/teamwork/adapters/types.d.ts.map +1 -0
- package/dist/commands/teamwork/adapters/types.js.map +1 -0
- package/dist/commands/{channel → teamwork}/agent-loader.d.ts +2 -4
- package/dist/commands/teamwork/agent-loader.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/agent-loader.js +4 -35
- package/dist/commands/teamwork/agent-loader.js.map +1 -0
- package/dist/commands/teamwork/artifact.d.ts +177 -0
- package/dist/commands/teamwork/artifact.d.ts.map +1 -0
- package/dist/commands/teamwork/artifact.js +908 -0
- package/dist/commands/teamwork/artifact.js.map +1 -0
- package/dist/commands/{channel → teamwork}/context-loader.d.ts +1 -1
- package/dist/commands/teamwork/context-loader.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/context-loader.js +12 -12
- package/dist/commands/teamwork/context-loader.js.map +1 -0
- package/dist/commands/{channel → teamwork}/context-trust.d.ts +6 -6
- package/dist/commands/teamwork/context-trust.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/context-trust.js +16 -16
- package/dist/commands/teamwork/context-trust.js.map +1 -0
- package/dist/commands/teamwork/context.d.ts +16 -0
- package/dist/commands/teamwork/context.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/context.js +17 -17
- package/dist/commands/teamwork/context.js.map +1 -0
- package/dist/commands/teamwork/coordinator.d.ts +89 -0
- package/dist/commands/teamwork/coordinator.d.ts.map +1 -0
- package/dist/commands/teamwork/coordinator.js +1198 -0
- package/dist/commands/teamwork/coordinator.js.map +1 -0
- package/dist/commands/teamwork/create.d.ts +23 -0
- package/dist/commands/teamwork/create.d.ts.map +1 -0
- package/dist/commands/teamwork/create.js +39 -0
- package/dist/commands/teamwork/create.js.map +1 -0
- package/dist/commands/{channel → teamwork}/dev-parse-trace.d.ts +1 -1
- package/dist/commands/teamwork/dev-parse-trace.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/dev-parse-trace.js +1 -1
- package/dist/commands/teamwork/dev-parse-trace.js.map +1 -0
- package/dist/commands/{channel → teamwork}/guard.d.ts +27 -46
- package/dist/commands/teamwork/guard.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/guard.js +54 -156
- package/dist/commands/teamwork/guard.js.map +1 -0
- package/dist/commands/teamwork/index.d.ts +3 -0
- package/dist/commands/teamwork/index.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/index.js +135 -165
- package/dist/commands/teamwork/index.js.map +1 -0
- package/dist/commands/{channel → teamwork}/interrupt.d.ts +1 -1
- package/dist/commands/teamwork/interrupt.d.ts.map +1 -0
- package/dist/commands/teamwork/interrupt.js +22 -0
- package/dist/commands/teamwork/interrupt.js.map +1 -0
- package/dist/commands/teamwork/kill.d.ts +7 -0
- package/dist/commands/teamwork/kill.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/kill.js +21 -21
- package/dist/commands/teamwork/kill.js.map +1 -0
- package/dist/commands/teamwork/list.d.ts +17 -0
- package/dist/commands/teamwork/list.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/list.js +18 -27
- package/dist/commands/teamwork/list.js.map +1 -0
- package/dist/commands/{channel → teamwork}/messages.d.ts +1 -1
- package/dist/commands/teamwork/messages.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/messages.js +18 -18
- package/dist/commands/teamwork/messages.js.map +1 -0
- package/dist/commands/teamwork/profiles.d.ts +25 -0
- package/dist/commands/teamwork/profiles.d.ts.map +1 -0
- package/dist/commands/teamwork/profiles.js +125 -0
- package/dist/commands/teamwork/profiles.js.map +1 -0
- package/dist/commands/teamwork/rm.d.ts +27 -0
- package/dist/commands/teamwork/rm.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/rm.js +21 -22
- package/dist/commands/teamwork/rm.js.map +1 -0
- package/dist/commands/teamwork/run.d.ts +29 -0
- package/dist/commands/{channel → teamwork}/run.d.ts.map +1 -1
- package/dist/commands/teamwork/run.js +129 -0
- package/dist/commands/teamwork/run.js.map +1 -0
- package/dist/commands/{channel → teamwork}/send.d.ts +1 -1
- package/dist/commands/teamwork/send.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/send.js +7 -7
- package/dist/commands/teamwork/send.js.map +1 -0
- package/dist/commands/{channel → teamwork}/spawn.d.ts +8 -12
- package/dist/commands/teamwork/spawn.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/spawn.js +51 -112
- package/dist/commands/teamwork/spawn.js.map +1 -0
- package/dist/commands/teamwork/store/events.d.ts +22 -0
- package/dist/commands/teamwork/store/events.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/events.js +8 -8
- package/dist/commands/teamwork/store/events.js.map +1 -0
- package/dist/commands/teamwork/store/filter.d.ts +3 -0
- package/dist/commands/teamwork/store/filter.d.ts.map +1 -0
- package/dist/commands/teamwork/store/filter.js +2 -0
- package/dist/commands/teamwork/store/filter.js.map +1 -0
- package/dist/commands/{channel → teamwork}/store/lock.d.ts +1 -1
- package/dist/commands/teamwork/store/lock.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/lock.js +2 -2
- package/dist/commands/teamwork/store/lock.js.map +1 -0
- package/dist/commands/{channel → teamwork}/store/paths.d.ts +18 -32
- package/dist/commands/teamwork/store/paths.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/paths.js +42 -109
- package/dist/commands/teamwork/store/paths.js.map +1 -0
- package/dist/commands/teamwork/store/schema.d.ts +18 -0
- package/dist/commands/teamwork/store/schema.d.ts.map +1 -0
- package/dist/commands/teamwork/store/schema.js +23 -0
- package/dist/commands/teamwork/store/schema.js.map +1 -0
- package/dist/commands/{channel → teamwork}/store/thread-state.d.ts +3 -3
- package/dist/commands/teamwork/store/thread-state.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/thread-state.js +1 -1
- package/dist/commands/teamwork/store/thread-state.js.map +1 -0
- package/dist/commands/teamwork/store/watch.d.ts +19 -0
- package/dist/commands/teamwork/store/watch.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/store/watch.js +8 -8
- package/dist/commands/teamwork/store/watch.js.map +1 -0
- package/dist/commands/teamwork/supervisor/idle.d.ts.map +1 -0
- package/dist/commands/teamwork/supervisor/idle.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/inbox.d.ts +2 -2
- package/dist/commands/teamwork/supervisor/inbox.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/inbox.js +14 -14
- package/dist/commands/teamwork/supervisor/inbox.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/shutdown.d.ts +3 -6
- package/dist/commands/teamwork/supervisor/shutdown.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/shutdown.js +7 -17
- package/dist/commands/teamwork/supervisor/shutdown.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/stdout.d.ts +3 -5
- package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/stdout.js +12 -23
- package/dist/commands/teamwork/supervisor/stdout.js.map +1 -0
- package/dist/commands/teamwork/supervisor/turns.d.ts.map +1 -0
- package/dist/commands/teamwork/supervisor/turns.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/warning.d.ts +5 -5
- package/dist/commands/teamwork/supervisor/warning.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor/warning.js +6 -6
- package/dist/commands/teamwork/supervisor/warning.js.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor.d.ts +21 -21
- package/dist/commands/teamwork/supervisor.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/supervisor.js +53 -63
- package/dist/commands/teamwork/supervisor.js.map +1 -0
- package/dist/commands/teamwork/teammate-adapters.d.ts +31 -0
- package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -0
- package/dist/commands/teamwork/teammate-adapters.js +96 -0
- package/dist/commands/teamwork/teammate-adapters.js.map +1 -0
- package/dist/commands/teamwork/teammate-config.d.ts +19 -0
- package/dist/commands/teamwork/teammate-config.d.ts.map +1 -0
- package/dist/commands/teamwork/teammate-config.js +97 -0
- package/dist/commands/teamwork/teammate-config.js.map +1 -0
- package/dist/commands/teamwork/teammate-launch.d.ts +58 -0
- package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -0
- package/dist/commands/teamwork/teammate-launch.js +125 -0
- package/dist/commands/teamwork/teammate-launch.js.map +1 -0
- package/dist/commands/teamwork/text-body.d.ts +13 -0
- package/dist/commands/teamwork/text-body.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/text-body.js +3 -3
- package/dist/commands/teamwork/text-body.js.map +1 -0
- package/dist/commands/teamwork/threads.d.ts +35 -0
- package/dist/commands/teamwork/threads.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/threads.js +19 -19
- package/dist/commands/teamwork/threads.js.map +1 -0
- package/dist/commands/teamwork/title.d.ts +12 -0
- package/dist/commands/teamwork/title.d.ts.map +1 -0
- package/dist/commands/teamwork/title.js +24 -0
- package/dist/commands/teamwork/title.js.map +1 -0
- package/dist/commands/{channel → teamwork}/wait.d.ts +1 -5
- package/dist/commands/teamwork/wait.d.ts.map +1 -0
- package/dist/commands/{channel → teamwork}/wait.js +8 -21
- package/dist/commands/teamwork/wait.js.map +1 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +48 -89
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/workflow.d.ts +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +9 -10
- package/dist/commands/workflow.js.map +1 -1
- package/dist/configurators/claude.d.ts +0 -17
- package/dist/configurators/claude.d.ts.map +1 -1
- package/dist/configurators/claude.js +2 -61
- package/dist/configurators/claude.js.map +1 -1
- package/dist/configurators/shared.d.ts.map +1 -1
- package/dist/configurators/shared.js +2 -2
- package/dist/configurators/shared.js.map +1 -1
- package/dist/configurators/snow.js +1 -1
- package/dist/configurators/snow.js.map +1 -1
- package/dist/configurators/workflow.d.ts +1 -1
- package/dist/configurators/workflow.js +5 -5
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/constants/paths.d.ts +1 -1
- package/dist/constants/paths.d.ts.map +1 -1
- package/dist/constants/paths.js +1 -1
- package/dist/constants/paths.js.map +1 -1
- package/dist/migrations/manifests/0.7.0-beta.10.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.11.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.12.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.13.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.14.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.15.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.16.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.17.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.18.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.19.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.20.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.21.json +17 -0
- package/dist/migrations/manifests/0.7.0-beta.22.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.23.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.24.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.25.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.26.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.27.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.28.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.29.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.30.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.31.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.32.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.33.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.34.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.35.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.36.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.37.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.38.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.39.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.40.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.41.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.42.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.43.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.44.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.45.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.46.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.47.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.48.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.49.json +13 -0
- package/dist/migrations/manifests/0.7.0-beta.50.json +12 -0
- package/dist/migrations/manifests/0.7.0-beta.51.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.52.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.53.json +27 -0
- package/dist/migrations/manifests/0.7.0-beta.54.json +8 -0
- package/dist/migrations/manifests/0.7.1-beta.0.json +9 -0
- package/dist/migrations/manifests/0.7.1.json +9 -0
- package/dist/templates/claude/hooks/statusline.py +0 -7
- package/dist/templates/codex/hooks/session-start.py +31 -38
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/workflow.md +40 -0
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/workflow.md +55 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/workflow.md +33 -0
- package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +25 -25
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-skills-or-commands.md +13 -19
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-spec-structure.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-task-lifecycle.md +27 -75
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-workflow.md +17 -56
- package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/overview.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/bundled-skills.md +14 -11
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +0 -33
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +32 -0
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/task-system.md +25 -111
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/workflow.md +19 -60
- package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-session-insight/references/cli-quick-reference.md +1 -1
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md +36 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +10 -0
- package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +29 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +73 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/coordination-modes.md +29 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-configuration-matrix.md +31 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +37 -0
- package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +78 -0
- package/dist/templates/common/commands/continue.md +9 -49
- package/dist/templates/common/commands/finish-work.md +10 -58
- package/dist/templates/common/commands/start.md +19 -49
- package/dist/templates/common/skills/brainstorm.md +11 -199
- package/dist/templates/copilot/hooks/session-start.py +30 -26
- package/dist/templates/copilot/prompts/brainstorm.prompt.md +7 -160
- package/dist/templates/copilot/prompts/finish-work.prompt.md +11 -88
- package/dist/templates/copilot/prompts/record-session.prompt.md +4 -12
- package/dist/templates/copilot/prompts/start.prompt.md +12 -10
- package/dist/templates/dsh/DSH.md +2 -2
- package/dist/templates/kiro/agents/trellis.json +2 -2
- package/dist/templates/markdown/agents.md +14 -3
- package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +9 -8
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +1 -1
- package/dist/templates/markdown/workspace-index.md +0 -1
- package/dist/templates/omp/extensions/trellis/index.ts.txt +28 -17
- package/dist/templates/opencode/lib/session-utils.js +20 -25
- package/dist/templates/opencode/lib/trellis-context.js +4 -76
- package/dist/templates/opencode/plugins/inject-subagent-context.js +5 -4
- package/dist/templates/opencode/plugins/inject-workflow-state.js +14 -17
- package/dist/templates/shared-hooks/inject-shell-session-context.py +3 -3
- package/dist/templates/shared-hooks/inject-subagent-context.py +445 -67
- package/dist/templates/shared-hooks/inject-workflow-state.py +44 -36
- package/dist/templates/shared-hooks/session-start.py +21 -33
- package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +18 -0
- package/dist/templates/trellis/agents/teammate-profiles.json +8 -0
- package/dist/templates/trellis/agents/teammate.md +63 -0
- package/dist/templates/trellis/config.yaml +29 -38
- package/dist/templates/trellis/gitignore.txt +1 -0
- package/dist/templates/trellis/index.d.ts +8 -12
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +14 -25
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/add_session.py +1 -1
- package/dist/templates/trellis/scripts/common/__init__.py +0 -1
- package/dist/templates/trellis/scripts/common/active_task.py +136 -100
- package/dist/templates/trellis/scripts/common/config.py +7 -9
- package/dist/templates/trellis/scripts/common/git_context.py +1 -1
- package/dist/templates/trellis/scripts/common/io.py +19 -0
- package/dist/templates/trellis/scripts/common/paths.py +0 -1
- package/dist/templates/trellis/scripts/common/safe_commit.py +11 -90
- package/dist/templates/trellis/scripts/common/session_context.py +1 -8
- package/dist/templates/trellis/scripts/common/spec_match.py +1 -1
- package/dist/templates/trellis/scripts/common/task_context.py +152 -59
- package/dist/templates/trellis/scripts/common/task_continuity.py +598 -0
- package/dist/templates/trellis/scripts/common/task_store.py +70 -548
- package/dist/templates/trellis/scripts/common/task_utils.py +4 -98
- package/dist/templates/trellis/scripts/common/task_workflow.py +1096 -0
- package/dist/templates/trellis/scripts/common/tasks.py +5 -8
- package/dist/templates/trellis/scripts/common/workflow_phase.py +8 -7
- package/dist/templates/trellis/scripts/hooks/linear_sync.py +3 -3
- package/dist/templates/trellis/scripts/task.py +119 -377
- package/dist/templates/trellis/workflow.md +111 -706
- package/dist/utils/agent-refs.d.ts +5 -5
- package/dist/utils/agent-refs.js +6 -6
- package/dist/utils/file-writer.d.ts +3 -2
- package/dist/utils/file-writer.d.ts.map +1 -1
- package/dist/utils/file-writer.js +3 -2
- package/dist/utils/file-writer.js.map +1 -1
- package/dist/utils/managed-paths.d.ts +0 -7
- package/dist/utils/managed-paths.d.ts.map +1 -1
- package/dist/utils/managed-paths.js +0 -40
- package/dist/utils/managed-paths.js.map +1 -1
- package/dist/utils/manifest-prune.d.ts.map +1 -1
- package/dist/utils/manifest-prune.js +2 -11
- package/dist/utils/manifest-prune.js.map +1 -1
- package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
- package/dist/utils/uninstall-scrubbers.js +3 -3
- package/dist/utils/uninstall-scrubbers.js.map +1 -1
- package/dist/utils/workflow-resolver.d.ts +10 -16
- package/dist/utils/workflow-resolver.d.ts.map +1 -1
- package/dist/utils/workflow-resolver.js +25 -36
- package/dist/utils/workflow-resolver.js.map +1 -1
- package/package.json +2 -2
- package/dist/commands/channel/adapters/claude.d.ts.map +0 -1
- package/dist/commands/channel/adapters/claude.js.map +0 -1
- package/dist/commands/channel/adapters/codex.d.ts.map +0 -1
- package/dist/commands/channel/adapters/codex.js.map +0 -1
- package/dist/commands/channel/adapters/index.d.ts.map +0 -1
- package/dist/commands/channel/adapters/index.js.map +0 -1
- package/dist/commands/channel/adapters/types.d.ts.map +0 -1
- package/dist/commands/channel/adapters/types.js.map +0 -1
- package/dist/commands/channel/agent-loader.d.ts.map +0 -1
- package/dist/commands/channel/agent-loader.js.map +0 -1
- package/dist/commands/channel/context-loader.d.ts.map +0 -1
- package/dist/commands/channel/context-loader.js.map +0 -1
- package/dist/commands/channel/context-trust.d.ts.map +0 -1
- package/dist/commands/channel/context-trust.js.map +0 -1
- package/dist/commands/channel/context.d.ts +0 -16
- package/dist/commands/channel/context.d.ts.map +0 -1
- package/dist/commands/channel/context.js.map +0 -1
- package/dist/commands/channel/create.d.ts +0 -29
- package/dist/commands/channel/create.d.ts.map +0 -1
- package/dist/commands/channel/create.js +0 -47
- package/dist/commands/channel/create.js.map +0 -1
- package/dist/commands/channel/dev-parse-trace.d.ts.map +0 -1
- package/dist/commands/channel/dev-parse-trace.js.map +0 -1
- package/dist/commands/channel/guard.d.ts.map +0 -1
- package/dist/commands/channel/guard.js.map +0 -1
- package/dist/commands/channel/index.d.ts +0 -3
- package/dist/commands/channel/index.d.ts.map +0 -1
- package/dist/commands/channel/index.js.map +0 -1
- package/dist/commands/channel/interrupt.d.ts.map +0 -1
- package/dist/commands/channel/interrupt.js +0 -22
- package/dist/commands/channel/interrupt.js.map +0 -1
- package/dist/commands/channel/kill.d.ts +0 -7
- package/dist/commands/channel/kill.d.ts.map +0 -1
- package/dist/commands/channel/kill.js.map +0 -1
- package/dist/commands/channel/list.d.ts +0 -18
- package/dist/commands/channel/list.d.ts.map +0 -1
- package/dist/commands/channel/list.js.map +0 -1
- package/dist/commands/channel/messages.d.ts.map +0 -1
- package/dist/commands/channel/messages.js.map +0 -1
- package/dist/commands/channel/rm.d.ts +0 -27
- package/dist/commands/channel/rm.d.ts.map +0 -1
- package/dist/commands/channel/rm.js.map +0 -1
- package/dist/commands/channel/run.d.ts +0 -32
- package/dist/commands/channel/run.js +0 -141
- package/dist/commands/channel/run.js.map +0 -1
- package/dist/commands/channel/send.d.ts.map +0 -1
- package/dist/commands/channel/send.js.map +0 -1
- package/dist/commands/channel/spawn.d.ts.map +0 -1
- package/dist/commands/channel/spawn.js.map +0 -1
- package/dist/commands/channel/store/events.d.ts +0 -22
- package/dist/commands/channel/store/events.d.ts.map +0 -1
- package/dist/commands/channel/store/events.js.map +0 -1
- package/dist/commands/channel/store/filter.d.ts +0 -3
- package/dist/commands/channel/store/filter.d.ts.map +0 -1
- package/dist/commands/channel/store/filter.js +0 -2
- package/dist/commands/channel/store/filter.js.map +0 -1
- package/dist/commands/channel/store/lock.d.ts.map +0 -1
- package/dist/commands/channel/store/lock.js.map +0 -1
- package/dist/commands/channel/store/paths.d.ts.map +0 -1
- package/dist/commands/channel/store/paths.js.map +0 -1
- package/dist/commands/channel/store/schema.d.ts +0 -27
- package/dist/commands/channel/store/schema.d.ts.map +0 -1
- package/dist/commands/channel/store/schema.js +0 -34
- package/dist/commands/channel/store/schema.js.map +0 -1
- package/dist/commands/channel/store/thread-state.d.ts.map +0 -1
- package/dist/commands/channel/store/thread-state.js.map +0 -1
- package/dist/commands/channel/store/watch.d.ts +0 -19
- package/dist/commands/channel/store/watch.d.ts.map +0 -1
- package/dist/commands/channel/store/watch.js.map +0 -1
- package/dist/commands/channel/supervisor/idle.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/idle.js.map +0 -1
- package/dist/commands/channel/supervisor/inbox.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/inbox.js.map +0 -1
- package/dist/commands/channel/supervisor/shutdown.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/shutdown.js.map +0 -1
- package/dist/commands/channel/supervisor/stdout.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/stdout.js.map +0 -1
- package/dist/commands/channel/supervisor/turns.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/turns.js.map +0 -1
- package/dist/commands/channel/supervisor/warning.d.ts.map +0 -1
- package/dist/commands/channel/supervisor/warning.js.map +0 -1
- package/dist/commands/channel/supervisor.d.ts.map +0 -1
- package/dist/commands/channel/supervisor.js.map +0 -1
- package/dist/commands/channel/text-body.d.ts +0 -13
- package/dist/commands/channel/text-body.d.ts.map +0 -1
- package/dist/commands/channel/text-body.js.map +0 -1
- package/dist/commands/channel/threads.d.ts +0 -39
- package/dist/commands/channel/threads.d.ts.map +0 -1
- package/dist/commands/channel/threads.js.map +0 -1
- package/dist/commands/channel/title.d.ts +0 -12
- package/dist/commands/channel/title.d.ts.map +0 -1
- package/dist/commands/channel/title.js +0 -24
- package/dist/commands/channel/title.js.map +0 -1
- package/dist/commands/channel/wait.d.ts.map +0 -1
- package/dist/commands/channel/wait.js.map +0 -1
- package/dist/commands/channel/workers.d.ts +0 -9
- package/dist/commands/channel/workers.d.ts.map +0 -1
- package/dist/commands/channel/workers.js +0 -31
- package/dist/commands/channel/workers.js.map +0 -1
- package/dist/templates/common/bundled-skills/trellis-channel/SKILL.md +0 -69
- package/dist/templates/common/bundled-skills/trellis-channel/references/command-reference.md +0 -549
- package/dist/templates/common/bundled-skills/trellis-channel/references/forum.md +0 -233
- package/dist/templates/common/bundled-skills/trellis-channel/references/progress-debugging.md +0 -237
- package/dist/templates/common/bundled-skills/trellis-channel/references/subnode-work.md +0 -222
- package/dist/templates/common/bundled-skills/trellis-channel/references/workers.md +0 -295
- package/dist/templates/common/bundled-skills/trellis-channel/references/workflows.md +0 -131
- package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-channel.md +0 -70
- package/dist/templates/common/bundled-skills/trellis-research-record/SKILL.md +0 -14
- package/dist/templates/copilot/prompts/parallel.prompt.md +0 -204
- package/dist/templates/trellis/agents/check.md +0 -70
- package/dist/templates/trellis/agents/implement.md +0 -71
- package/dist/templates/trellis/agents/subnode.env +0 -4
- package/dist/templates/trellis/agents/subnode.md +0 -76
- package/dist/templates/trellis/scripts/common/context_projection.py +0 -508
- package/dist/templates/trellis/scripts/common/continuation_record.py +0 -450
- package/dist/templates/trellis/scripts/common/ownership_record.py +0 -439
- package/dist/templates/trellis/scripts/subnode_artifact.py +0 -735
- package/dist/templates/trellis/scripts/workspace_note.py +0 -126
- /package/dist/commands/{channel → teamwork}/adapters/types.js +0 -0
- /package/dist/commands/{channel → teamwork}/supervisor/idle.d.ts +0 -0
- /package/dist/commands/{channel → teamwork}/supervisor/idle.js +0 -0
- /package/dist/commands/{channel → teamwork}/supervisor/turns.d.ts +0 -0
- /package/dist/commands/{channel → teamwork}/supervisor/turns.js +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Teamwork teammate process guard policy.
|
|
3
3
|
*
|
|
4
|
-
* Resolves idle-cleanup TTL and live-
|
|
4
|
+
* Resolves idle-cleanup TTL and live-teammate budget from CLI flag /
|
|
5
5
|
* environment / project config / built-in defaults (in that precedence
|
|
6
|
-
* order), then scans the live
|
|
6
|
+
* order), then scans the live teammate registry inside a project bucket
|
|
7
7
|
* to enforce both constraints at spawn time.
|
|
8
8
|
*
|
|
9
9
|
* Boundary: this module lives in the CLI runtime layer. Core owns
|
|
@@ -14,38 +14,31 @@
|
|
|
14
14
|
import { execFileSync } from "node:child_process";
|
|
15
15
|
import fs from "node:fs";
|
|
16
16
|
import path from "node:path";
|
|
17
|
-
import { isTerminalLifecycle, reduceWorkerRegistry, } from "@pennixrv/trellis-core/
|
|
17
|
+
import { isTerminalLifecycle, reduceWorkerRegistry, } from "@pennixrv/trellis-core/teamwork";
|
|
18
18
|
import { DIR_NAMES } from "../../constants/paths.js";
|
|
19
|
-
import {
|
|
19
|
+
import { sessionDir, teamworkRoot, currentProjectKey, isSafeName, projectDir, workerFile, } from "./store/paths.js";
|
|
20
20
|
import { parseDuration } from "./wait.js";
|
|
21
|
-
/** Built-in default idle-cleanup TTL for spawned
|
|
21
|
+
/** Built-in default idle-cleanup TTL for spawned teammates (5 minutes). */
|
|
22
22
|
export const DEFAULT_IDLE_TTL_MS = 5 * 60 * 1000;
|
|
23
|
-
/** Built-in default live-
|
|
24
|
-
export const
|
|
25
|
-
/** Default active-assignment budget for the bounded subnode procedure. */
|
|
26
|
-
export const DEFAULT_SUBNODE_MAX_LIVE_WORKERS = 8;
|
|
27
|
-
/** Default hard lifetime for a bounded subnode worker. */
|
|
28
|
-
export const DEFAULT_SUBNODE_TIMEOUT_MS = 30 * 60 * 1000;
|
|
29
|
-
/** Default warning lead time for a bounded subnode worker timeout. */
|
|
30
|
-
export const DEFAULT_SUBNODE_WARN_BEFORE_MS = 5 * 60 * 1000;
|
|
23
|
+
/** Built-in default live-teammate budget per project/scope. */
|
|
24
|
+
export const DEFAULT_MAX_LIVE_TEAMMATES = 6;
|
|
31
25
|
/** Env var override for the idle-cleanup TTL. */
|
|
32
|
-
export const ENV_IDLE_TIMEOUT = "
|
|
33
|
-
/** Env var override for the live-
|
|
34
|
-
export const
|
|
26
|
+
export const ENV_IDLE_TIMEOUT = "TRELLIS_TEAMWORK_IDLE_TIMEOUT";
|
|
27
|
+
/** Env var override for the live-teammate budget. */
|
|
28
|
+
export const ENV_MAX_LIVE_TEAMMATES = "TRELLIS_TEAMWORK_MAX_LIVE_TEAMMATES";
|
|
35
29
|
/**
|
|
36
30
|
* Resolve the effective guard policy. Precedence:
|
|
37
31
|
* 1. CLI flag (`flag*Ms` / `flagMaxLiveWorkers`)
|
|
38
32
|
* 2. environment variable
|
|
39
|
-
* 3.
|
|
40
|
-
* 4.
|
|
41
|
-
* 5. built-in default constant
|
|
33
|
+
* 3. `.trellis/config.yaml` `teamwork.teammate_guard`
|
|
34
|
+
* 4. built-in default constant
|
|
42
35
|
*/
|
|
43
|
-
export function
|
|
36
|
+
export function resolveTeammateGuardConfig(opts = {}) {
|
|
44
37
|
const cwd = opts.cwd ?? process.cwd();
|
|
45
38
|
const env = opts.env ?? process.env;
|
|
46
|
-
const fromConfig =
|
|
47
|
-
const idleTimeoutMs = pickNonNegativeMs(opts.flagIdleTimeoutMs, parseEnvDuration(env[ENV_IDLE_TIMEOUT], ENV_IDLE_TIMEOUT),
|
|
48
|
-
const maxLiveWorkers = pickNonNegativeInt(opts.flagMaxLiveWorkers, parseEnvInt(env[
|
|
39
|
+
const fromConfig = loadTeammateGuardConfig(cwd);
|
|
40
|
+
const idleTimeoutMs = pickNonNegativeMs(opts.flagIdleTimeoutMs, parseEnvDuration(env[ENV_IDLE_TIMEOUT], ENV_IDLE_TIMEOUT), fromConfig?.idleTimeoutMs, DEFAULT_IDLE_TTL_MS);
|
|
41
|
+
const maxLiveWorkers = pickNonNegativeInt(opts.flagMaxLiveWorkers, parseEnvInt(env[ENV_MAX_LIVE_TEAMMATES], ENV_MAX_LIVE_TEAMMATES), fromConfig?.maxLiveWorkers, DEFAULT_MAX_LIVE_TEAMMATES);
|
|
49
42
|
return { idleTimeoutMs, maxLiveWorkers };
|
|
50
43
|
}
|
|
51
44
|
function pickNonNegativeMs(...candidates) {
|
|
@@ -64,11 +57,11 @@ function pickNonNegativeInt(...candidates) {
|
|
|
64
57
|
if (c === undefined)
|
|
65
58
|
continue;
|
|
66
59
|
if (!Number.isInteger(c) || c < 0) {
|
|
67
|
-
throw new Error(`Max live
|
|
60
|
+
throw new Error(`Max live teammates must be a non-negative integer (got ${c})`);
|
|
68
61
|
}
|
|
69
62
|
return c;
|
|
70
63
|
}
|
|
71
|
-
return
|
|
64
|
+
return DEFAULT_MAX_LIVE_TEAMMATES;
|
|
72
65
|
}
|
|
73
66
|
function parseEnvDuration(raw, envName) {
|
|
74
67
|
if (raw === undefined || raw === "")
|
|
@@ -90,11 +83,11 @@ function parseEnvInt(raw, envName) {
|
|
|
90
83
|
return n;
|
|
91
84
|
}
|
|
92
85
|
/**
|
|
93
|
-
* Parse the `
|
|
86
|
+
* Parse the `teamwork.teammate_guard` section out of `.trellis/config.yaml`.
|
|
94
87
|
* Mirrors the lightweight line-scanner used elsewhere in update.ts so we
|
|
95
88
|
* don't pull in a YAML dependency just for this two-field section.
|
|
96
89
|
*/
|
|
97
|
-
export function
|
|
90
|
+
export function loadTeammateGuardConfig(cwd) {
|
|
98
91
|
const configPath = path.join(cwd, DIR_NAMES.WORKFLOW, "config.yaml");
|
|
99
92
|
if (!fs.existsSync(configPath))
|
|
100
93
|
return undefined;
|
|
@@ -105,12 +98,12 @@ export function loadWorkerGuardConfig(cwd) {
|
|
|
105
98
|
catch {
|
|
106
99
|
return undefined;
|
|
107
100
|
}
|
|
108
|
-
return
|
|
101
|
+
return parseTeammateGuardSection(content);
|
|
109
102
|
}
|
|
110
103
|
/** Exposed for unit tests. */
|
|
111
|
-
export function
|
|
104
|
+
export function parseTeammateGuardSection(content) {
|
|
112
105
|
const lines = content.split("\n");
|
|
113
|
-
let
|
|
106
|
+
let inTeamwork = false;
|
|
114
107
|
let inGuard = false;
|
|
115
108
|
const found = {};
|
|
116
109
|
let any = false;
|
|
@@ -119,12 +112,12 @@ export function parseWorkerGuardSection(content) {
|
|
|
119
112
|
const trimmed = line.trimEnd();
|
|
120
113
|
if (trimmed === "" || trimmed.trimStart().startsWith("#"))
|
|
121
114
|
continue;
|
|
122
|
-
if (/^
|
|
123
|
-
|
|
115
|
+
if (/^teamwork:\s*$/.test(trimmed)) {
|
|
116
|
+
inTeamwork = true;
|
|
124
117
|
inGuard = false;
|
|
125
118
|
continue;
|
|
126
119
|
}
|
|
127
|
-
if (
|
|
120
|
+
if (inTeamwork && /^ {2}teammate_guard:\s*$/.test(trimmed)) {
|
|
128
121
|
inGuard = true;
|
|
129
122
|
continue;
|
|
130
123
|
}
|
|
@@ -136,12 +129,12 @@ export function parseWorkerGuardSection(content) {
|
|
|
136
129
|
any = true;
|
|
137
130
|
continue;
|
|
138
131
|
}
|
|
139
|
-
const max = trimmed.match(/^ {4}
|
|
132
|
+
const max = trimmed.match(/^ {4}max_live_teammates:\s*(.+)$/);
|
|
140
133
|
if (max) {
|
|
141
134
|
const val = stripValue(max[1]);
|
|
142
135
|
const n = Number(val);
|
|
143
136
|
if (!Number.isInteger(n) || n < 0) {
|
|
144
|
-
throw new Error(`
|
|
137
|
+
throw new Error(`teamwork.teammate_guard.max_live_teammates must be a non-negative integer (got '${val}')`);
|
|
145
138
|
}
|
|
146
139
|
found.maxLiveWorkers = n;
|
|
147
140
|
any = true;
|
|
@@ -152,89 +145,13 @@ export function parseWorkerGuardSection(content) {
|
|
|
152
145
|
inGuard = false;
|
|
153
146
|
}
|
|
154
147
|
}
|
|
155
|
-
if (
|
|
156
|
-
|
|
148
|
+
if (inTeamwork && /^\S/.test(line) && !/^teamwork:\s*$/.test(trimmed)) {
|
|
149
|
+
inTeamwork = false;
|
|
157
150
|
inGuard = false;
|
|
158
151
|
}
|
|
159
152
|
}
|
|
160
153
|
return any ? found : undefined;
|
|
161
154
|
}
|
|
162
|
-
/** Parse the role-specific `channel.subnode` dispatch defaults. */
|
|
163
|
-
export function parseSubnodeDispatchSection(content) {
|
|
164
|
-
const lines = content.split("\n");
|
|
165
|
-
let inChannel = false;
|
|
166
|
-
let inSubnode = false;
|
|
167
|
-
const found = {};
|
|
168
|
-
let any = false;
|
|
169
|
-
for (const raw of lines) {
|
|
170
|
-
const line = raw.replace(/\r$/, "");
|
|
171
|
-
const trimmed = line.trimEnd();
|
|
172
|
-
if (trimmed === "" || trimmed.trimStart().startsWith("#"))
|
|
173
|
-
continue;
|
|
174
|
-
if (/^channel:\s*$/.test(trimmed)) {
|
|
175
|
-
inChannel = true;
|
|
176
|
-
inSubnode = false;
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
179
|
-
if (inChannel && /^ {2}subnode:\s*$/.test(trimmed)) {
|
|
180
|
-
inSubnode = true;
|
|
181
|
-
continue;
|
|
182
|
-
}
|
|
183
|
-
if (inSubnode) {
|
|
184
|
-
const idle = trimmed.match(/^ {4}idle_timeout:\s*(.+)$/);
|
|
185
|
-
if (idle) {
|
|
186
|
-
found.idleTimeoutMs = parseChannelDuration(stripValue(idle[1]), "channel.subnode.idle_timeout");
|
|
187
|
-
any = true;
|
|
188
|
-
continue;
|
|
189
|
-
}
|
|
190
|
-
const max = trimmed.match(/^ {4}max_live_workers:\s*(.+)$/);
|
|
191
|
-
if (max) {
|
|
192
|
-
found.maxLiveWorkers = parseChannelInteger(stripValue(max[1]), "channel.subnode.max_live_workers");
|
|
193
|
-
any = true;
|
|
194
|
-
continue;
|
|
195
|
-
}
|
|
196
|
-
const timeout = trimmed.match(/^ {4}timeout:\s*(.+)$/);
|
|
197
|
-
if (timeout) {
|
|
198
|
-
found.timeoutMs = parseChannelDuration(stripValue(timeout[1]), "channel.subnode.timeout");
|
|
199
|
-
any = true;
|
|
200
|
-
continue;
|
|
201
|
-
}
|
|
202
|
-
const warnBefore = trimmed.match(/^ {4}warn_before:\s*(.+)$/);
|
|
203
|
-
if (warnBefore) {
|
|
204
|
-
found.warnBeforeMs = parseChannelDuration(stripValue(warnBefore[1]), "channel.subnode.warn_before");
|
|
205
|
-
any = true;
|
|
206
|
-
continue;
|
|
207
|
-
}
|
|
208
|
-
if (!/^ {4}\S/.test(line))
|
|
209
|
-
inSubnode = false;
|
|
210
|
-
}
|
|
211
|
-
if (inChannel && !/^ {2}\S/.test(line) && /^\S/.test(line)) {
|
|
212
|
-
inChannel = false;
|
|
213
|
-
inSubnode = false;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return any ? found : undefined;
|
|
217
|
-
}
|
|
218
|
-
/** Resolve subnode defaults without changing ordinary worker defaults. */
|
|
219
|
-
export function loadSubnodeDispatchConfig(cwd) {
|
|
220
|
-
const configPath = path.join(cwd, DIR_NAMES.WORKFLOW, "config.yaml");
|
|
221
|
-
let content = "";
|
|
222
|
-
try {
|
|
223
|
-
content = fs.readFileSync(configPath, "utf-8");
|
|
224
|
-
}
|
|
225
|
-
catch {
|
|
226
|
-
// Existing projects without the section still get the procedure default.
|
|
227
|
-
}
|
|
228
|
-
const fromConfig = parseSubnodeDispatchSection(content);
|
|
229
|
-
return {
|
|
230
|
-
maxLiveWorkers: fromConfig?.maxLiveWorkers ?? DEFAULT_SUBNODE_MAX_LIVE_WORKERS,
|
|
231
|
-
timeoutMs: fromConfig?.timeoutMs ?? DEFAULT_SUBNODE_TIMEOUT_MS,
|
|
232
|
-
warnBeforeMs: fromConfig?.warnBeforeMs ?? DEFAULT_SUBNODE_WARN_BEFORE_MS,
|
|
233
|
-
...(fromConfig?.idleTimeoutMs !== undefined
|
|
234
|
-
? { idleTimeoutMs: fromConfig.idleTimeoutMs }
|
|
235
|
-
: {}),
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
155
|
function stripValue(s) {
|
|
239
156
|
return s
|
|
240
157
|
.trim()
|
|
@@ -247,7 +164,7 @@ function parseGuardDuration(raw, key) {
|
|
|
247
164
|
const asInt = Number(raw);
|
|
248
165
|
if (Number.isFinite(asInt) && /^\d+$/.test(raw)) {
|
|
249
166
|
if (asInt < 0) {
|
|
250
|
-
throw new Error(`
|
|
167
|
+
throw new Error(`teamwork.teammate_guard.${key} must be non-negative (got '${raw}')`);
|
|
251
168
|
}
|
|
252
169
|
// Bare integer 0 = disabled; >0 with no unit = milliseconds.
|
|
253
170
|
return asInt;
|
|
@@ -256,30 +173,12 @@ function parseGuardDuration(raw, key) {
|
|
|
256
173
|
return parseDuration(raw) ?? 0;
|
|
257
174
|
}
|
|
258
175
|
catch (err) {
|
|
259
|
-
throw new Error(`
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
function parseChannelInteger(raw, key) {
|
|
263
|
-
const n = Number(raw);
|
|
264
|
-
if (!Number.isInteger(n) || n < 0) {
|
|
265
|
-
throw new Error(`${key} must be a non-negative integer (got '${raw}')`);
|
|
266
|
-
}
|
|
267
|
-
return n;
|
|
268
|
-
}
|
|
269
|
-
function parseChannelDuration(raw, key) {
|
|
270
|
-
const asInt = Number(raw);
|
|
271
|
-
if (Number.isFinite(asInt) && /^\d+$/.test(raw))
|
|
272
|
-
return asInt;
|
|
273
|
-
try {
|
|
274
|
-
return parseDuration(raw) ?? 0;
|
|
275
|
-
}
|
|
276
|
-
catch (err) {
|
|
277
|
-
throw new Error(`${key}: ${err instanceof Error ? err.message : String(err)}`);
|
|
176
|
+
throw new Error(`teamwork.teammate_guard.${key}: ${err instanceof Error ? err.message : String(err)}`);
|
|
278
177
|
}
|
|
279
178
|
}
|
|
280
179
|
/**
|
|
281
180
|
* Enumerate live (non-terminal + supervisor-pid alive) workers across
|
|
282
|
-
* every
|
|
181
|
+
* every Teamwork Session in the given project bucket.
|
|
283
182
|
*/
|
|
284
183
|
export function scanLiveWorkers(opts = {}) {
|
|
285
184
|
const project = opts.projectKey ?? currentProjectKey();
|
|
@@ -299,9 +198,9 @@ export function scanLiveWorkers(opts = {}) {
|
|
|
299
198
|
for (const entry of entries) {
|
|
300
199
|
if (entry.startsWith("."))
|
|
301
200
|
continue;
|
|
302
|
-
// Stores created before name validation may hold
|
|
201
|
+
// Stores created before name validation may hold directories with
|
|
303
202
|
// now-invalid names (spaces, CJK, ...). They can never host workers —
|
|
304
|
-
// skip them instead of letting workerFile/
|
|
203
|
+
// skip them instead of letting workerFile/sessionDir throw mid-scan.
|
|
305
204
|
if (!isSafeName(entry))
|
|
306
205
|
continue;
|
|
307
206
|
const dir = path.join(bucket, entry);
|
|
@@ -338,7 +237,7 @@ export function scanLiveWorkers(opts = {}) {
|
|
|
338
237
|
: isSupervisorProcess(supervisorPid, entry, state.workerId);
|
|
339
238
|
const workerPid = readPid(workerFile(entry, state.workerId, "worker-pid", project));
|
|
340
239
|
out.push({
|
|
341
|
-
|
|
240
|
+
sessionId: entry,
|
|
342
241
|
workerId: state.workerId,
|
|
343
242
|
state,
|
|
344
243
|
supervisorPid,
|
|
@@ -347,7 +246,7 @@ export function scanLiveWorkers(opts = {}) {
|
|
|
347
246
|
});
|
|
348
247
|
}
|
|
349
248
|
for (const state of readReservationWorkers(entry, project)) {
|
|
350
|
-
if (out.some((w) => w.
|
|
249
|
+
if (out.some((w) => w.sessionId === entry && w.workerId === state.workerId)) {
|
|
351
250
|
continue;
|
|
352
251
|
}
|
|
353
252
|
const supervisorPid = readPid(workerFile(entry, state.workerId, "pid", project));
|
|
@@ -357,7 +256,7 @@ export function scanLiveWorkers(opts = {}) {
|
|
|
357
256
|
? opts.isSupervisorProcess(supervisorPid, entry, state.workerId)
|
|
358
257
|
: isSupervisorProcess(supervisorPid, entry, state.workerId);
|
|
359
258
|
out.push({
|
|
360
|
-
|
|
259
|
+
sessionId: entry,
|
|
361
260
|
workerId: state.workerId,
|
|
362
261
|
state,
|
|
363
262
|
supervisorPid,
|
|
@@ -367,8 +266,8 @@ export function scanLiveWorkers(opts = {}) {
|
|
|
367
266
|
}
|
|
368
267
|
return out;
|
|
369
268
|
}
|
|
370
|
-
function readReservationWorkers(
|
|
371
|
-
const dir =
|
|
269
|
+
function readReservationWorkers(sessionId, project) {
|
|
270
|
+
const dir = sessionDir(sessionId, project);
|
|
372
271
|
let files;
|
|
373
272
|
try {
|
|
374
273
|
files = fs.readdirSync(dir);
|
|
@@ -386,7 +285,6 @@ function readReservationWorkers(channel, project) {
|
|
|
386
285
|
lifecycle: "starting",
|
|
387
286
|
terminal: false,
|
|
388
287
|
activity: "idle",
|
|
389
|
-
sessionIds: [],
|
|
390
288
|
pendingMessageCount: 0,
|
|
391
289
|
inboxPolicy: "explicitOnly",
|
|
392
290
|
updatedAt: new Date(0).toISOString(),
|
|
@@ -428,7 +326,7 @@ function pidAlive(pid) {
|
|
|
428
326
|
return false;
|
|
429
327
|
}
|
|
430
328
|
}
|
|
431
|
-
export function isSupervisorProcess(pid,
|
|
329
|
+
export function isSupervisorProcess(pid, sessionId, worker) {
|
|
432
330
|
if (process.platform === "win32")
|
|
433
331
|
return false;
|
|
434
332
|
try {
|
|
@@ -438,8 +336,8 @@ export function isSupervisorProcess(pid, channel, worker) {
|
|
|
438
336
|
stdio: ["ignore", "pipe", "ignore"],
|
|
439
337
|
}).trim();
|
|
440
338
|
const pattern = new RegExp([
|
|
441
|
-
"(?:^|\\s)
|
|
442
|
-
escapeRegExp(
|
|
339
|
+
"(?:^|\\s)teamwork\\s+__supervisor\\s+",
|
|
340
|
+
escapeRegExp(sessionId),
|
|
443
341
|
"\\s+",
|
|
444
342
|
escapeRegExp(worker),
|
|
445
343
|
"(?:\\s|$)",
|
|
@@ -496,7 +394,7 @@ export async function cleanupExpiredIdleWorkers(candidates, idleTimeoutMs, opts
|
|
|
496
394
|
!pidAlive(live.supervisorPid)) {
|
|
497
395
|
continue;
|
|
498
396
|
}
|
|
499
|
-
const reasonFile = workerFile(live.
|
|
397
|
+
const reasonFile = workerFile(live.sessionId, live.workerId, "shutdown-reason", project);
|
|
500
398
|
fs.writeFileSync(reasonFile, "idle-timeout\n", "utf-8");
|
|
501
399
|
try {
|
|
502
400
|
process.kill(live.supervisorPid, "SIGTERM");
|
|
@@ -542,8 +440,8 @@ export async function enforceSpawnBudget(input) {
|
|
|
542
440
|
// Wait briefly for the SIGTERM to translate into pid-file removal; if
|
|
543
441
|
// a worker is taking its grace period, just exclude killed workers
|
|
544
442
|
// from the count.
|
|
545
|
-
const killedIds = new Set(cleanup.killed.map((w) => `${w.
|
|
546
|
-
const remaining = scanLiveWorkers(scanOpts).filter((w) => !killedIds.has(`${w.
|
|
443
|
+
const killedIds = new Set(cleanup.killed.map((w) => `${w.sessionId}::${w.workerId}`));
|
|
444
|
+
const remaining = scanLiveWorkers(scanOpts).filter((w) => !killedIds.has(`${w.sessionId}::${w.workerId}`));
|
|
547
445
|
const allowed = input.policy.maxLiveWorkers <= 0 ||
|
|
548
446
|
remaining.length < input.policy.maxLiveWorkers;
|
|
549
447
|
return { cleaned: cleanup.killed, remaining, allowed };
|
|
@@ -551,7 +449,7 @@ export async function enforceSpawnBudget(input) {
|
|
|
551
449
|
/** Build a multi-line, actionable overflow error string. */
|
|
552
450
|
export function formatBudgetOverflowError(args) {
|
|
553
451
|
const { projectKey, live, limit } = args;
|
|
554
|
-
const header = `Live
|
|
452
|
+
const header = `Live teammate budget exhausted for project '${projectKey}': ${live.length}/${limit} live teammate(s).`;
|
|
555
453
|
const rows = live
|
|
556
454
|
.map((w) => {
|
|
557
455
|
const provider = w.state.provider ?? "?";
|
|
@@ -559,23 +457,23 @@ export function formatBudgetOverflowError(args) {
|
|
|
559
457
|
const activity = w.state.activity;
|
|
560
458
|
const pid = w.supervisorPid ?? "?";
|
|
561
459
|
const verified = w.supervisorVerified === false ? " supervisor=unverified" : "";
|
|
562
|
-
return ` •
|
|
460
|
+
return ` • session='${w.sessionId}' teammate='${w.workerId}' provider=${provider} lifecycle=${lifecycle} activity=${activity} pid=${pid}${verified}`;
|
|
563
461
|
})
|
|
564
462
|
.join("\n");
|
|
565
463
|
const hint = [
|
|
566
464
|
"Free a slot before spawning, e.g.:",
|
|
567
|
-
` trellis
|
|
465
|
+
` trellis teamwork kill <sessionId> --as <teammate>`,
|
|
568
466
|
"Or override per spawn:",
|
|
569
|
-
` trellis
|
|
570
|
-
"Or raise the default in .trellis/config.yaml under
|
|
467
|
+
` trellis teamwork spawn ... --max-live-teammates ${live.length + 1}`,
|
|
468
|
+
"Or raise the default in .trellis/config.yaml under teamwork.teammate_guard.max_live_teammates.",
|
|
571
469
|
].join("\n");
|
|
572
470
|
return [header, rows, hint].join("\n");
|
|
573
471
|
}
|
|
574
472
|
/**
|
|
575
|
-
* Convenience helper: ensure `
|
|
473
|
+
* Convenience helper: ensure `teamworkRoot()` is initialised before scan
|
|
576
474
|
* (otherwise the project dir may not yet exist on first spawn).
|
|
577
475
|
*/
|
|
578
476
|
export function ensureRootExists() {
|
|
579
|
-
fs.mkdirSync(
|
|
477
|
+
fs.mkdirSync(teamworkRoot(), { recursive: true });
|
|
580
478
|
}
|
|
581
479
|
//# sourceMappingURL=guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guard.js","sourceRoot":"","sources":["../../../src/commands/teamwork/guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,mBAAmB,EACnB,oBAAoB,GAGrB,MAAM,iC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