@jstn-sdk/rcs 0.1.0 → 0.1.6
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 +154 -101
- package/dist/agents/definitions.d.ts.map +1 -1
- package/dist/agents/definitions.js +0 -101
- package/dist/agents/definitions.js.map +1 -1
- package/dist/blueprint/runtime.d.ts +52 -0
- package/dist/blueprint/runtime.d.ts.map +1 -0
- package/dist/{ralplan → blueprint}/runtime.js +19 -19
- package/dist/blueprint/runtime.js.map +1 -0
- package/dist/catalog/reader.d.ts.map +1 -1
- package/dist/catalog/reader.js +8 -2
- package/dist/catalog/reader.js.map +1 -1
- package/dist/catalog/schema.js +1 -1
- package/dist/catalog/schema.js.map +1 -1
- package/dist/cli/forge.d.ts +17 -0
- package/dist/cli/{ralph.d.ts.map → forge.d.ts.map} +1 -1
- package/dist/cli/{ralph.js → forge.js} +82 -82
- package/dist/cli/{ralph.js.map → forge.js.map} +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +20 -15
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +2 -3
- package/dist/cli/setup.js.map +1 -1
- package/dist/cli/star-prompt.js +2 -2
- package/dist/cli/star-prompt.js.map +1 -1
- package/dist/cli/state.js +1 -1
- package/dist/cli/team.d.ts.map +1 -1
- package/dist/cli/team.js +3 -2
- package/dist/cli/team.js.map +1 -1
- package/dist/cli/tmux-hook.d.ts.map +1 -1
- package/dist/cli/tmux-hook.js +9 -1
- package/dist/cli/tmux-hook.js.map +1 -1
- package/dist/config/generator.d.ts +1 -1
- package/dist/config/generator.d.ts.map +1 -1
- package/dist/config/generator.js +1 -1
- package/dist/config/generator.js.map +1 -1
- package/dist/forge/contract.d.ts +17 -0
- package/dist/{ralph → forge}/contract.d.ts.map +1 -1
- package/dist/{ralph → forge}/contract.js +16 -16
- package/dist/{ralph → forge}/contract.js.map +1 -1
- package/dist/{ralph → forge}/persistence.d.ts +5 -5
- package/dist/{ralph → forge}/persistence.d.ts.map +1 -1
- package/dist/{ralph → forge}/persistence.js +7 -6
- package/dist/forge/persistence.js.map +1 -0
- package/dist/hooks/agents-overlay.d.ts +1 -1
- package/dist/hooks/agents-overlay.d.ts.map +1 -1
- package/dist/hooks/agents-overlay.js +37 -31
- package/dist/hooks/agents-overlay.js.map +1 -1
- package/dist/hooks/extensibility/dispatcher.d.ts.map +1 -1
- package/dist/hooks/extensibility/dispatcher.js +82 -14
- package/dist/hooks/extensibility/dispatcher.js.map +1 -1
- package/dist/hooks/keyword-detector.d.ts +8 -8
- package/dist/hooks/keyword-detector.d.ts.map +1 -1
- package/dist/hooks/keyword-detector.js +94 -64
- package/dist/hooks/keyword-detector.js.map +1 -1
- package/dist/hooks/keyword-registry.d.ts.map +1 -1
- package/dist/hooks/keyword-registry.js +9 -11
- package/dist/hooks/keyword-registry.js.map +1 -1
- package/dist/hooks/prompt-guidance-contract.d.ts.map +1 -1
- package/dist/hooks/prompt-guidance-contract.js +10 -21
- package/dist/hooks/prompt-guidance-contract.js.map +1 -1
- package/dist/hooks/task-size-detector.js +2 -2
- package/dist/hooks/task-size-detector.js.map +1 -1
- package/dist/hooks/triage-state.d.ts +1 -1
- package/dist/hooks/triage-state.js +1 -1
- package/dist/hud/colors.d.ts +2 -2
- package/dist/hud/colors.js +2 -2
- package/dist/hud/render.js +21 -21
- package/dist/hud/render.js.map +1 -1
- package/dist/hud/state.d.ts +3 -3
- package/dist/hud/state.d.ts.map +1 -1
- package/dist/hud/state.js +18 -15
- package/dist/hud/state.js.map +1 -1
- package/dist/hud/types.d.ts +6 -6
- package/dist/hud/types.d.ts.map +1 -1
- package/dist/mcp/bootstrap.d.ts.map +1 -1
- package/dist/mcp/bootstrap.js +36 -2
- package/dist/mcp/bootstrap.js.map +1 -1
- package/dist/mcp/state-paths.d.ts +1 -0
- package/dist/mcp/state-paths.d.ts.map +1 -1
- package/dist/mcp/state-paths.js +4 -1
- package/dist/mcp/state-paths.js.map +1 -1
- package/dist/mcp/state-server.d.ts +4 -4
- package/dist/mcp/state-server.js +2 -2
- package/dist/mcp/state-server.js.map +1 -1
- package/dist/modes/base.d.ts +2 -2
- package/dist/modes/base.d.ts.map +1 -1
- package/dist/modes/base.js +29 -26
- package/dist/modes/base.js.map +1 -1
- package/dist/notifications/reply-listener.d.ts.map +1 -1
- package/dist/notifications/reply-listener.js +7 -1
- package/dist/notifications/reply-listener.js.map +1 -1
- package/dist/notifications/tmux.d.ts.map +1 -1
- package/dist/notifications/tmux.js +39 -6
- package/dist/notifications/tmux.js.map +1 -1
- package/dist/pipeline/index.d.ts +7 -6
- package/dist/pipeline/index.d.ts.map +1 -1
- package/dist/pipeline/index.js +5 -4
- package/dist/pipeline/index.js.map +1 -1
- package/dist/pipeline/orchestrator.d.ts +5 -5
- package/dist/pipeline/orchestrator.js +25 -25
- package/dist/pipeline/orchestrator.js.map +1 -1
- package/dist/pipeline/stages/blueprint.d.ts +25 -0
- package/dist/pipeline/stages/blueprint.d.ts.map +1 -0
- package/dist/pipeline/stages/{ralplan.js → blueprint.js} +16 -16
- package/dist/pipeline/stages/blueprint.js.map +1 -0
- package/dist/pipeline/stages/code-review.d.ts +2 -2
- package/dist/pipeline/stages/code-review.js +6 -6
- package/dist/pipeline/stages/code-review.js.map +1 -1
- package/dist/pipeline/stages/forge-verify.d.ts +50 -0
- package/dist/pipeline/stages/forge-verify.d.ts.map +1 -0
- package/dist/pipeline/stages/{ralph-verify.js → forge-verify.js} +21 -24
- package/dist/pipeline/stages/forge-verify.js.map +1 -0
- package/dist/pipeline/stages/team-exec.d.ts +1 -1
- package/dist/pipeline/stages/team-exec.js +19 -19
- package/dist/pipeline/stages/team-exec.js.map +1 -1
- package/dist/pipeline/types.d.ts +12 -12
- package/dist/pipeline/types.d.ts.map +1 -1
- package/dist/pipeline/types.js +1 -1
- package/dist/planning/artifacts.d.ts +3 -4
- package/dist/planning/artifacts.d.ts.map +1 -1
- package/dist/planning/artifacts.js +2 -3
- package/dist/planning/artifacts.js.map +1 -1
- package/dist/question/policy.js +1 -1
- package/dist/runtime/bridge.d.ts.map +1 -1
- package/dist/runtime/bridge.js +70 -13
- package/dist/runtime/bridge.js.map +1 -1
- package/dist/scripts/codex-native-hook.js +30 -30
- package/dist/scripts/codex-native-hook.js.map +1 -1
- package/dist/scripts/eval/eval-cross-server-party-flow.d.ts +3 -0
- package/dist/scripts/eval/eval-cross-server-party-flow.d.ts.map +1 -0
- package/dist/scripts/eval/eval-cross-server-party-flow.js +12 -0
- package/dist/scripts/eval/eval-cross-server-party-flow.js.map +1 -0
- package/dist/scripts/eval/eval-gui-onboarding-clarity.d.ts +3 -0
- package/dist/scripts/eval/eval-gui-onboarding-clarity.d.ts.map +1 -0
- package/dist/scripts/eval/eval-gui-onboarding-clarity.js +17 -0
- package/dist/scripts/eval/eval-gui-onboarding-clarity.js.map +1 -0
- package/dist/scripts/eval/eval-liveops-reward-loop-balance.d.ts +3 -0
- package/dist/scripts/eval/eval-liveops-reward-loop-balance.d.ts.map +1 -0
- package/dist/scripts/eval/eval-liveops-reward-loop-balance.js +12 -0
- package/dist/scripts/eval/eval-liveops-reward-loop-balance.js.map +1 -0
- package/dist/scripts/eval/eval-profile-datastore-recovery.d.ts +3 -0
- package/dist/scripts/eval/eval-profile-datastore-recovery.d.ts.map +1 -0
- package/dist/scripts/eval/eval-profile-datastore-recovery.js +17 -0
- package/dist/scripts/eval/eval-profile-datastore-recovery.js.map +1 -0
- package/dist/scripts/eval/eval-remote-contract-hardening.d.ts +3 -0
- package/dist/scripts/eval/eval-remote-contract-hardening.d.ts.map +1 -0
- package/dist/scripts/eval/eval-remote-contract-hardening.js +17 -0
- package/dist/scripts/eval/eval-remote-contract-hardening.js.map +1 -0
- package/dist/scripts/notify-fallback-watcher.js +140 -139
- package/dist/scripts/notify-fallback-watcher.js.map +1 -1
- package/dist/scripts/notify-hook/forge-session-resume.d.ts +23 -0
- package/dist/scripts/notify-hook/{ralph-session-resume.d.ts.map → forge-session-resume.d.ts.map} +1 -1
- package/dist/scripts/notify-hook/{ralph-session-resume.js → forge-session-resume.js} +37 -36
- package/dist/scripts/notify-hook/{ralph-session-resume.js.map → forge-session-resume.js.map} +1 -1
- package/dist/scripts/notify-hook/team-dispatch.d.ts.map +1 -1
- package/dist/scripts/notify-hook/team-dispatch.js +34 -4
- package/dist/scripts/notify-hook/team-dispatch.js.map +1 -1
- package/dist/scripts/notify-hook/visual-verdict.js +3 -3
- package/dist/scripts/notify-hook.js +9 -9
- package/dist/scripts/run-test-files.js +1 -1
- package/dist/scripts/run-test-files.js.map +1 -1
- package/dist/scripts/surface-taxonomy.d.ts +23 -0
- package/dist/scripts/surface-taxonomy.d.ts.map +1 -0
- package/dist/scripts/surface-taxonomy.js +271 -0
- package/dist/scripts/surface-taxonomy.js.map +1 -0
- package/dist/scripts/sync-plugin-mirror.d.ts.map +1 -1
- package/dist/scripts/sync-plugin-mirror.js +5 -4
- package/dist/scripts/sync-plugin-mirror.js.map +1 -1
- package/dist/scripts/tmux-hook-engine.d.ts +1 -1
- package/dist/scripts/tmux-hook-engine.d.ts.map +1 -1
- package/dist/scripts/tmux-hook-engine.js +29 -20
- package/dist/scripts/tmux-hook-engine.js.map +1 -1
- package/dist/state/operations.d.ts +1 -1
- package/dist/state/operations.d.ts.map +1 -1
- package/dist/state/operations.js +18 -18
- package/dist/state/operations.js.map +1 -1
- package/dist/state/skill-active.d.ts +13 -1
- package/dist/state/skill-active.d.ts.map +1 -1
- package/dist/state/skill-active.js +38 -17
- package/dist/state/skill-active.js.map +1 -1
- package/dist/state/workflow-transition.d.ts +6 -5
- package/dist/state/workflow-transition.d.ts.map +1 -1
- package/dist/state/workflow-transition.js +27 -15
- package/dist/state/workflow-transition.js.map +1 -1
- package/dist/team/contracts.d.ts +1 -1
- package/dist/team/contracts.js +2 -2
- package/dist/team/followup-planner.d.ts +2 -2
- package/dist/team/followup-planner.d.ts.map +1 -1
- package/dist/team/followup-planner.js +16 -14
- package/dist/team/followup-planner.js.map +1 -1
- package/dist/team/idle-nudge.d.ts.map +1 -1
- package/dist/team/idle-nudge.js +3 -2
- package/dist/team/idle-nudge.js.map +1 -1
- package/dist/team/leader-activity.js +1 -1
- package/dist/team/model-contract.d.ts.map +1 -1
- package/dist/team/model-contract.js +4 -1
- package/dist/team/model-contract.js.map +1 -1
- package/dist/team/orchestrator.js +4 -4
- package/dist/team/orchestrator.js.map +1 -1
- package/dist/team/role-router.js +3 -3
- package/dist/team/role-router.js.map +1 -1
- package/dist/team/state/dispatch.d.ts.map +1 -1
- package/dist/team/state/dispatch.js +4 -1
- package/dist/team/state/dispatch.js.map +1 -1
- package/dist/team/tmux-session.d.ts +4 -0
- package/dist/team/tmux-session.d.ts.map +1 -1
- package/dist/team/tmux-session.js +42 -9
- package/dist/team/tmux-session.js.map +1 -1
- package/dist/team/worktree.d.ts +1 -1
- package/dist/utils/platform-command.d.ts.map +1 -1
- package/dist/utils/platform-command.js +9 -0
- package/dist/utils/platform-command.js.map +1 -1
- package/dist/verification/verifier.d.ts +1 -1
- package/dist/verification/verifier.js +2 -2
- package/docs/STATE_MODEL.md +24 -24
- package/docs/agents.html +8 -16
- package/docs/archive/README.md +15 -0
- package/docs/{prompt-migration-changelog.md → archive/prompt-migration-changelog.md} +0 -11
- package/docs/{release-body-0.9.0.md → archive/release-body-0.9.0.md} +6 -24
- package/docs/{release-body-0.9.1.md → archive/release-body-0.9.1.md} +3 -3
- package/docs/codex-native-hooks.md +4 -4
- package/docs/contracts/forge-cancel-contract.md +20 -0
- package/docs/contracts/forge-state-contract.md +52 -0
- package/docs/contracts/multi-state-transition-contract.md +5 -5
- package/docs/contracts/multi-state-transition-review.md +3 -3
- package/docs/contracts/repo-aware-team-dag-decomposition.md +1 -1
- package/docs/contracts/rust-runtime-thin-adapter-contract.md +1 -1
- package/docs/contracts/team-startup-dispatch-latency.md +1 -1
- package/docs/getting-started.html +11 -1
- package/docs/guidance-schema.md +6 -3
- package/docs/index.html +55 -4
- package/docs/integrations.html +4 -3
- package/docs/issues/team-forge-followup-team.md +38 -0
- package/docs/openclaw-integration.md +2 -2
- package/docs/prompt-guidance-contract.md +11 -11
- package/docs/prs/{dev-deprecate-team-ralph.md → dev-deprecate-team-forge.md} +27 -27
- package/docs/prs/{dev-fix-ralph-live-pane-invariant.md → dev-fix-forge-live-pane-invariant.md} +7 -7
- package/docs/prs/{dev-team-ralph-workflow-positioning.md → dev-team-forge-workflow-positioning.md} +7 -7
- package/docs/qa/forge-persistence-gate.md +20 -0
- package/docs/qa/rust-runtime-thin-adapter-gate.md +31 -40
- package/docs/readme/README.de.md +14 -0
- package/docs/readme/README.el.md +14 -0
- package/docs/readme/README.es.md +14 -0
- package/docs/readme/README.fr.md +14 -0
- package/docs/readme/README.it.md +14 -0
- package/docs/readme/README.ja.md +14 -0
- package/docs/readme/README.ko.md +14 -0
- package/docs/readme/README.pl.md +14 -0
- package/docs/readme/README.pt.md +14 -0
- package/docs/readme/README.ru.md +14 -0
- package/docs/readme/README.tr.md +14 -0
- package/docs/readme/README.uk.md +14 -0
- package/docs/readme/README.vi.md +14 -0
- package/docs/readme/README.zh-TW.md +14 -0
- package/docs/readme/README.zh.md +14 -0
- package/docs/readme/rcs-cover.svg +75 -0
- package/docs/reference/canonical-vocabulary.md +106 -0
- package/docs/reference/forge-parity-matrix.md +26 -0
- package/docs/reference/forge-upstream-baseline.md +32 -0
- package/docs/reference/rcs-config-schema-routing.md +5 -5
- package/docs/reference/roblox-pre-action-protocol.md +4 -0
- package/docs/reference/roblox-taxonomy-migration-plan.md +46 -0
- package/docs/reference/roblox-workspace-standard.md +83 -0
- package/docs/reference/robloxstudio-mcp-compatibility.md +117 -0
- package/docs/reference/semantic-design-system.md +110 -0
- package/docs/reference/surface-map.md +131 -0
- package/docs/reference/team-allocation-rebalance-policy.md +1 -1
- package/docs/release-notes-v0.1.0.md +1 -1
- package/docs/release-notes-v0.1.1.md +49 -0
- package/docs/release-notes-v0.1.6.md +27 -0
- package/docs/reports/open-prs-dev-readiness-2026-04-09.md +2 -2
- package/docs/shared/agent-tiers.md +3 -3
- package/docs/skills.html +10 -12
- package/docs/troubleshooting.md +1 -1
- package/package.json +20 -13
- package/plugins/roblox-ai-os-creator-skills/.codex-plugin/plugin.json +1 -1
- package/plugins/roblox-ai-os-creator-skills/docs/reference/roblox-pre-action-protocol.md +4 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ai-slop-cleaner/SKILL.md +14 -7
- package/plugins/roblox-ai-os-creator-skills/skills/analyze/SKILL.md +9 -2
- package/plugins/roblox-ai-os-creator-skills/skills/ask-claude/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ask-gemini/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/autoforge/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/autopilot/SKILL.md +48 -41
- package/plugins/roblox-ai-os-creator-skills/skills/autoresearch/SKILL.md +8 -1
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint/SKILL.md +227 -9
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint-loop/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint-psych/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint-retention/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/blueprint-social/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/brief/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/brief-audience/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/brief-motivation/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/cancel/SKILL.md +59 -52
- package/plugins/roblox-ai-os-creator-skills/skills/code-review/SKILL.md +30 -24
- package/plugins/roblox-ai-os-creator-skills/skills/configure-notifications/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/crew/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/deep-interview/SKILL.md +25 -18
- package/plugins/roblox-ai-os-creator-skills/skills/doctor/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge/SKILL.md +174 -11
- package/plugins/roblox-ai-os-creator-skills/skills/forge-community/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-daily-loop/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-event-loop/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-fomo/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-mastery/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-progression/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-reward-loop/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/forge-status/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/help/SKILL.md +8 -1
- package/plugins/roblox-ai-os-creator-skills/skills/hud/SKILL.md +16 -9
- package/plugins/roblox-ai-os-creator-skills/skills/note/SKILL.md +8 -1
- package/plugins/roblox-ai-os-creator-skills/skills/pipeline/SKILL.md +18 -11
- package/plugins/roblox-ai-os-creator-skills/skills/plan/SKILL.md +36 -29
- package/plugins/roblox-ai-os-creator-skills/skills/rcs-setup/SKILL.md +8 -1
- package/plugins/roblox-ai-os-creator-skills/skills/security-review/SKILL.md +120 -236
- package/plugins/roblox-ai-os-creator-skills/skills/skill/SKILL.md +20 -13
- package/plugins/roblox-ai-os-creator-skills/skills/team/SKILL.md +17 -11
- package/plugins/roblox-ai-os-creator-skills/skills/trace/SKILL.md +7 -0
- package/plugins/roblox-ai-os-creator-skills/skills/ultraqa/SKILL.md +10 -3
- package/plugins/roblox-ai-os-creator-skills/skills/ultrawork/SKILL.md +19 -12
- package/plugins/roblox-ai-os-creator-skills/skills/{visual-ralph → visual-forge}/SKILL.md +36 -27
- package/plugins/roblox-ai-os-creator-skills/skills/visual-verdict/SKILL.md +9 -2
- package/plugins/roblox-ai-os-creator-skills/skills/wiki/SKILL.md +10 -3
- package/plugins/roblox-ai-os-creator-skills/skills/worker/SKILL.md +16 -7
- package/plugins/roblox-ai-os-creator-skills/templates/roblox/pre-action-plan.md +1 -0
- package/prompts/analyst.md +7 -0
- package/prompts/architect.md +11 -4
- package/prompts/build-fixer.md +7 -0
- package/prompts/code-reviewer.md +9 -2
- package/prompts/code-simplifier.md +4 -0
- package/prompts/critic.md +13 -6
- package/prompts/debugger.md +8 -1
- package/prompts/dependency-expert.md +8 -1
- package/prompts/designer.md +20 -10
- package/prompts/executor.md +7 -0
- package/prompts/explore-harness.md +7 -0
- package/prompts/explore.md +7 -0
- package/prompts/git-master.md +8 -1
- package/prompts/planner.md +10 -3
- package/prompts/researcher.md +7 -0
- package/prompts/security-reviewer.md +76 -92
- package/prompts/sisyphus-lite.md +7 -0
- package/prompts/team-executor.md +7 -0
- package/prompts/team-orchestrator.md +9 -2
- package/prompts/test-engineer.md +11 -3
- package/prompts/verifier.md +7 -0
- package/prompts/vision.md +9 -2
- package/prompts/writer.md +11 -4
- package/skills/.agents/skills/roblox-animations/SKILL.md +220 -0
- package/skills/.agents/skills/roblox-datastores/SKILL.md +219 -0
- package/skills/.agents/skills/roblox-gui/SKILL.md +192 -0
- package/skills/.agents/skills/roblox-monetization/SKILL.md +208 -0
- package/skills/.agents/skills/roblox-performance/SKILL.md +230 -0
- package/skills/.agents/skills/roblox-remote-events/SKILL.md +199 -0
- package/skills/.agents/skills/roblox-security/SKILL.md +236 -0
- package/skills/ai-slop-cleaner/SKILL.md +14 -7
- package/skills/analyze/SKILL.md +9 -2
- package/skills/ask-claude/SKILL.md +7 -0
- package/skills/ask-gemini/SKILL.md +7 -0
- package/skills/autoforge/SKILL.md +7 -0
- package/skills/autopilot/SKILL.md +48 -41
- package/skills/autoresearch/SKILL.md +8 -1
- package/skills/blueprint/SKILL.md +227 -9
- package/skills/blueprint-loop/SKILL.md +7 -0
- package/skills/blueprint-psych/SKILL.md +7 -0
- package/skills/blueprint-retention/SKILL.md +7 -0
- package/skills/blueprint-social/SKILL.md +7 -0
- package/skills/brief/SKILL.md +7 -0
- package/skills/brief-audience/SKILL.md +7 -0
- package/skills/brief-motivation/SKILL.md +7 -0
- package/skills/build-fix/SKILL.md +9 -2
- package/skills/cancel/SKILL.md +59 -52
- package/skills/code-review/SKILL.md +30 -24
- package/skills/configure-notifications/SKILL.md +7 -0
- package/skills/crew/SKILL.md +7 -0
- package/skills/deep-interview/SKILL.md +25 -18
- package/skills/deepsearch/SKILL.md +7 -0
- package/skills/doctor/SKILL.md +7 -0
- package/skills/ecomode/SKILL.md +9 -2
- package/skills/forge/SKILL.md +174 -11
- package/skills/forge-community/SKILL.md +7 -0
- package/skills/forge-daily-loop/SKILL.md +7 -0
- package/skills/forge-event-loop/SKILL.md +7 -0
- package/skills/forge-fomo/SKILL.md +7 -0
- package/skills/{ralph-init → forge-init}/SKILL.md +20 -13
- package/skills/forge-mastery/SKILL.md +7 -0
- package/skills/forge-progression/SKILL.md +7 -0
- package/skills/forge-reward-loop/SKILL.md +7 -0
- package/skills/forge-status/SKILL.md +7 -0
- package/skills/git-master/SKILL.md +7 -0
- package/skills/help/SKILL.md +8 -1
- package/skills/hud/SKILL.md +16 -9
- package/skills/note/SKILL.md +8 -1
- package/skills/pipeline/SKILL.md +18 -11
- package/skills/plan/SKILL.md +36 -29
- package/skills/rcs-setup/SKILL.md +8 -1
- package/skills/review/SKILL.md +7 -0
- package/skills/security-review/SKILL.md +120 -236
- package/skills/skill/SKILL.md +20 -13
- package/skills/skills-lock.json +47 -0
- package/skills/swarm/SKILL.md +8 -1
- package/skills/tdd/SKILL.md +7 -0
- package/skills/team/SKILL.md +17 -11
- package/skills/trace/SKILL.md +7 -0
- package/skills/ultraqa/SKILL.md +10 -3
- package/skills/ultrawork/SKILL.md +19 -12
- package/skills/{visual-ralph → visual-forge}/SKILL.md +36 -27
- package/skills/visual-verdict/SKILL.md +9 -2
- package/skills/web-clone/SKILL.md +14 -7
- package/skills/wiki/SKILL.md +10 -3
- package/skills/worker/SKILL.md +16 -7
- package/src/scripts/__tests__/codex-native-hook.test.ts +386 -319
- package/src/scripts/__tests__/run-test-files.test.ts +6 -4
- package/src/scripts/__tests__/verify-native-agents.test.ts +16 -16
- package/src/scripts/codex-native-hook.ts +34 -34
- package/src/scripts/eval/eval-cross-server-party-flow.ts +14 -0
- package/src/scripts/eval/eval-gui-onboarding-clarity.ts +20 -0
- package/src/scripts/eval/eval-liveops-reward-loop-balance.ts +14 -0
- package/src/scripts/eval/eval-profile-datastore-recovery.ts +20 -0
- package/src/scripts/eval/eval-remote-contract-hardening.ts +20 -0
- package/src/scripts/notify-fallback-watcher.ts +147 -146
- package/src/scripts/notify-hook/__tests__/team-worker-posttooluse.test.ts +24 -10
- package/src/scripts/notify-hook/{ralph-session-resume.ts → forge-session-resume.ts} +45 -43
- package/src/scripts/notify-hook/team-dispatch.ts +31 -4
- package/src/scripts/notify-hook/visual-verdict.ts +3 -3
- package/src/scripts/notify-hook.ts +10 -10
- package/src/scripts/run-test-files.ts +1 -1
- package/src/scripts/surface-taxonomy.ts +316 -0
- package/src/scripts/sync-plugin-mirror.ts +5 -4
- package/src/scripts/tmux-hook-engine.ts +31 -19
- package/templates/AGENTS.md +24 -15
- package/templates/catalog-manifest.json +5 -88
- package/templates/roblox/pre-action-plan.md +1 -0
- package/templates/roblox/robloxstudio-mcp.codex.json +18 -0
- package/templates/roblox/robloxstudio-mcp.windows.json +22 -0
- package/dist/adapt/__tests__/foundation.test.d.ts +0 -2
- package/dist/adapt/__tests__/foundation.test.d.ts.map +0 -1
- package/dist/adapt/__tests__/foundation.test.js +0 -171
- package/dist/adapt/__tests__/foundation.test.js.map +0 -1
- package/dist/adapt/__tests__/hermes.test.d.ts +0 -2
- package/dist/adapt/__tests__/hermes.test.d.ts.map +0 -1
- package/dist/adapt/__tests__/hermes.test.js +0 -137
- package/dist/adapt/__tests__/hermes.test.js.map +0 -1
- package/dist/agents/__tests__/definitions.test.d.ts +0 -2
- package/dist/agents/__tests__/definitions.test.d.ts.map +0 -1
- package/dist/agents/__tests__/definitions.test.js +0 -62
- package/dist/agents/__tests__/definitions.test.js.map +0 -1
- package/dist/agents/__tests__/native-config.test.d.ts +0 -2
- package/dist/agents/__tests__/native-config.test.d.ts.map +0 -1
- package/dist/agents/__tests__/native-config.test.js +0 -278
- package/dist/agents/__tests__/native-config.test.js.map +0 -1
- package/dist/autoresearch/__tests__/contracts.test.d.ts +0 -2
- package/dist/autoresearch/__tests__/contracts.test.d.ts.map +0 -1
- package/dist/autoresearch/__tests__/contracts.test.js +0 -127
- package/dist/autoresearch/__tests__/contracts.test.js.map +0 -1
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.d.ts +0 -2
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.d.ts.map +0 -1
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.js +0 -356
- package/dist/autoresearch/__tests__/runtime-parity-extra.test.js.map +0 -1
- package/dist/autoresearch/__tests__/runtime.test.d.ts +0 -2
- package/dist/autoresearch/__tests__/runtime.test.d.ts.map +0 -1
- package/dist/autoresearch/__tests__/runtime.test.js +0 -218
- package/dist/autoresearch/__tests__/runtime.test.js.map +0 -1
- package/dist/autoresearch/__tests__/skill-validation.test.d.ts +0 -2
- package/dist/autoresearch/__tests__/skill-validation.test.d.ts.map +0 -1
- package/dist/autoresearch/__tests__/skill-validation.test.js +0 -91
- package/dist/autoresearch/__tests__/skill-validation.test.js.map +0 -1
- package/dist/catalog/__tests__/generator.test.d.ts +0 -2
- package/dist/catalog/__tests__/generator.test.d.ts.map +0 -1
- package/dist/catalog/__tests__/generator.test.js +0 -49
- package/dist/catalog/__tests__/generator.test.js.map +0 -1
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.d.ts +0 -2
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.d.ts.map +0 -1
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.js +0 -83
- package/dist/catalog/__tests__/plugin-bundle-ssot.test.js.map +0 -1
- package/dist/catalog/__tests__/schema.test.d.ts +0 -2
- package/dist/catalog/__tests__/schema.test.d.ts.map +0 -1
- package/dist/catalog/__tests__/schema.test.js +0 -91
- package/dist/catalog/__tests__/schema.test.js.map +0 -1
- package/dist/cli/__tests__/adapt-help.test.d.ts +0 -2
- package/dist/cli/__tests__/adapt-help.test.d.ts.map +0 -1
- package/dist/cli/__tests__/adapt-help.test.js +0 -37
- package/dist/cli/__tests__/adapt-help.test.js.map +0 -1
- package/dist/cli/__tests__/adapt.test.d.ts +0 -2
- package/dist/cli/__tests__/adapt.test.d.ts.map +0 -1
- package/dist/cli/__tests__/adapt.test.js +0 -62
- package/dist/cli/__tests__/adapt.test.js.map +0 -1
- package/dist/cli/__tests__/agents-init.test.d.ts +0 -2
- package/dist/cli/__tests__/agents-init.test.d.ts.map +0 -1
- package/dist/cli/__tests__/agents-init.test.js +0 -184
- package/dist/cli/__tests__/agents-init.test.js.map +0 -1
- package/dist/cli/__tests__/agents.test.d.ts +0 -2
- package/dist/cli/__tests__/agents.test.d.ts.map +0 -1
- package/dist/cli/__tests__/agents.test.js +0 -137
- package/dist/cli/__tests__/agents.test.js.map +0 -1
- package/dist/cli/__tests__/ask.test.d.ts +0 -2
- package/dist/cli/__tests__/ask.test.d.ts.map +0 -1
- package/dist/cli/__tests__/ask.test.js +0 -265
- package/dist/cli/__tests__/ask.test.js.map +0 -1
- package/dist/cli/__tests__/autoresearch-guided.test.d.ts +0 -2
- package/dist/cli/__tests__/autoresearch-guided.test.d.ts.map +0 -1
- package/dist/cli/__tests__/autoresearch-guided.test.js +0 -365
- package/dist/cli/__tests__/autoresearch-guided.test.js.map +0 -1
- package/dist/cli/__tests__/autoresearch.test.d.ts +0 -2
- package/dist/cli/__tests__/autoresearch.test.d.ts.map +0 -1
- package/dist/cli/__tests__/autoresearch.test.js +0 -203
- package/dist/cli/__tests__/autoresearch.test.js.map +0 -1
- package/dist/cli/__tests__/catalog-contract.test.d.ts +0 -2
- package/dist/cli/__tests__/catalog-contract.test.d.ts.map +0 -1
- package/dist/cli/__tests__/catalog-contract.test.js +0 -18
- package/dist/cli/__tests__/catalog-contract.test.js.map +0 -1
- package/dist/cli/__tests__/cleanup.test.d.ts +0 -2
- package/dist/cli/__tests__/cleanup.test.d.ts.map +0 -1
- package/dist/cli/__tests__/cleanup.test.js +0 -419
- package/dist/cli/__tests__/cleanup.test.js.map +0 -1
- package/dist/cli/__tests__/codex-plugin-layout.test.d.ts +0 -2
- package/dist/cli/__tests__/codex-plugin-layout.test.d.ts.map +0 -1
- package/dist/cli/__tests__/codex-plugin-layout.test.js +0 -210
- package/dist/cli/__tests__/codex-plugin-layout.test.js.map +0 -1
- package/dist/cli/__tests__/doctor-context-window-warning.test.d.ts +0 -2
- package/dist/cli/__tests__/doctor-context-window-warning.test.d.ts.map +0 -1
- package/dist/cli/__tests__/doctor-context-window-warning.test.js +0 -122
- package/dist/cli/__tests__/doctor-context-window-warning.test.js.map +0 -1
- package/dist/cli/__tests__/doctor-invalid-config.test.d.ts +0 -2
- package/dist/cli/__tests__/doctor-invalid-config.test.d.ts.map +0 -1
- package/dist/cli/__tests__/doctor-invalid-config.test.js +0 -52
- package/dist/cli/__tests__/doctor-invalid-config.test.js.map +0 -1
- package/dist/cli/__tests__/doctor-team.test.d.ts +0 -2
- package/dist/cli/__tests__/doctor-team.test.d.ts.map +0 -1
- package/dist/cli/__tests__/doctor-team.test.js +0 -299
- package/dist/cli/__tests__/doctor-team.test.js.map +0 -1
- package/dist/cli/__tests__/doctor-warning-copy.test.d.ts +0 -2
- package/dist/cli/__tests__/doctor-warning-copy.test.d.ts.map +0 -1
- package/dist/cli/__tests__/doctor-warning-copy.test.js +0 -438
- package/dist/cli/__tests__/doctor-warning-copy.test.js.map +0 -1
- package/dist/cli/__tests__/error-handling-warnings.test.d.ts +0 -2
- package/dist/cli/__tests__/error-handling-warnings.test.d.ts.map +0 -1
- package/dist/cli/__tests__/error-handling-warnings.test.js +0 -52
- package/dist/cli/__tests__/error-handling-warnings.test.js.map +0 -1
- package/dist/cli/__tests__/exec.test.d.ts +0 -2
- package/dist/cli/__tests__/exec.test.d.ts.map +0 -1
- package/dist/cli/__tests__/exec.test.js +0 -213
- package/dist/cli/__tests__/exec.test.js.map +0 -1
- package/dist/cli/__tests__/explore-windows-diagnostics.test.d.ts +0 -2
- package/dist/cli/__tests__/explore-windows-diagnostics.test.d.ts.map +0 -1
- package/dist/cli/__tests__/explore-windows-diagnostics.test.js +0 -17
- package/dist/cli/__tests__/explore-windows-diagnostics.test.js.map +0 -1
- package/dist/cli/__tests__/explore.test.d.ts +0 -2
- package/dist/cli/__tests__/explore.test.d.ts.map +0 -1
- package/dist/cli/__tests__/explore.test.js +0 -1090
- package/dist/cli/__tests__/explore.test.js.map +0 -1
- package/dist/cli/__tests__/hooks.test.d.ts +0 -2
- package/dist/cli/__tests__/hooks.test.d.ts.map +0 -1
- package/dist/cli/__tests__/hooks.test.js +0 -55
- package/dist/cli/__tests__/hooks.test.js.map +0 -1
- package/dist/cli/__tests__/index.test.d.ts +0 -2
- package/dist/cli/__tests__/index.test.d.ts.map +0 -1
- package/dist/cli/__tests__/index.test.js +0 -2259
- package/dist/cli/__tests__/index.test.js.map +0 -1
- package/dist/cli/__tests__/launch-fallback.test.d.ts +0 -2
- package/dist/cli/__tests__/launch-fallback.test.d.ts.map +0 -1
- package/dist/cli/__tests__/launch-fallback.test.js +0 -661
- package/dist/cli/__tests__/launch-fallback.test.js.map +0 -1
- package/dist/cli/__tests__/lifecycle-notifications.test.d.ts +0 -2
- package/dist/cli/__tests__/lifecycle-notifications.test.d.ts.map +0 -1
- package/dist/cli/__tests__/lifecycle-notifications.test.js +0 -48
- package/dist/cli/__tests__/lifecycle-notifications.test.js.map +0 -1
- package/dist/cli/__tests__/list.test.d.ts +0 -2
- package/dist/cli/__tests__/list.test.d.ts.map +0 -1
- package/dist/cli/__tests__/list.test.js +0 -38
- package/dist/cli/__tests__/list.test.js.map +0 -1
- package/dist/cli/__tests__/mcp-parity.test.d.ts +0 -2
- package/dist/cli/__tests__/mcp-parity.test.d.ts.map +0 -1
- package/dist/cli/__tests__/mcp-parity.test.js +0 -228
- package/dist/cli/__tests__/mcp-parity.test.js.map +0 -1
- package/dist/cli/__tests__/mcp-serve.test.d.ts +0 -2
- package/dist/cli/__tests__/mcp-serve.test.d.ts.map +0 -1
- package/dist/cli/__tests__/mcp-serve.test.js +0 -64
- package/dist/cli/__tests__/mcp-serve.test.js.map +0 -1
- package/dist/cli/__tests__/native-assets.test.d.ts +0 -2
- package/dist/cli/__tests__/native-assets.test.d.ts.map +0 -1
- package/dist/cli/__tests__/native-assets.test.js +0 -308
- package/dist/cli/__tests__/native-assets.test.js.map +0 -1
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.d.ts +0 -2
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.d.ts.map +0 -1
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.js +0 -11
- package/dist/cli/__tests__/native-hook-dispatch-contract.test.js.map +0 -1
- package/dist/cli/__tests__/nested-help-routing.test.d.ts +0 -2
- package/dist/cli/__tests__/nested-help-routing.test.d.ts.map +0 -1
- package/dist/cli/__tests__/nested-help-routing.test.js +0 -96
- package/dist/cli/__tests__/nested-help-routing.test.js.map +0 -1
- package/dist/cli/__tests__/package-bin-contract.test.d.ts +0 -2
- package/dist/cli/__tests__/package-bin-contract.test.d.ts.map +0 -1
- package/dist/cli/__tests__/package-bin-contract.test.js +0 -177
- package/dist/cli/__tests__/package-bin-contract.test.js.map +0 -1
- package/dist/cli/__tests__/packaged-explore-harness-lock.d.ts +0 -3
- package/dist/cli/__tests__/packaged-explore-harness-lock.d.ts.map +0 -1
- package/dist/cli/__tests__/packaged-explore-harness-lock.js +0 -67
- package/dist/cli/__tests__/packaged-explore-harness-lock.js.map +0 -1
- package/dist/cli/__tests__/packaged-script-resolution.test.d.ts +0 -2
- package/dist/cli/__tests__/packaged-script-resolution.test.d.ts.map +0 -1
- package/dist/cli/__tests__/packaged-script-resolution.test.js +0 -19
- package/dist/cli/__tests__/packaged-script-resolution.test.js.map +0 -1
- package/dist/cli/__tests__/prompt-skill-sanitization.test.d.ts +0 -2
- package/dist/cli/__tests__/prompt-skill-sanitization.test.d.ts.map +0 -1
- package/dist/cli/__tests__/prompt-skill-sanitization.test.js +0 -48
- package/dist/cli/__tests__/prompt-skill-sanitization.test.js.map +0 -1
- package/dist/cli/__tests__/question.test.d.ts +0 -2
- package/dist/cli/__tests__/question.test.d.ts.map +0 -1
- package/dist/cli/__tests__/question.test.js +0 -633
- package/dist/cli/__tests__/question.test.js.map +0 -1
- package/dist/cli/__tests__/ralph-deslop-contract.test.d.ts +0 -2
- package/dist/cli/__tests__/ralph-deslop-contract.test.d.ts.map +0 -1
- package/dist/cli/__tests__/ralph-deslop-contract.test.js +0 -28
- package/dist/cli/__tests__/ralph-deslop-contract.test.js.map +0 -1
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.d.ts +0 -2
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.d.ts.map +0 -1
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.js +0 -24
- package/dist/cli/__tests__/ralph-prd-deep-interview.test.js.map +0 -1
- package/dist/cli/__tests__/ralph-prd-smoke.test.d.ts +0 -2
- package/dist/cli/__tests__/ralph-prd-smoke.test.d.ts.map +0 -1
- package/dist/cli/__tests__/ralph-prd-smoke.test.js +0 -167
- package/dist/cli/__tests__/ralph-prd-smoke.test.js.map +0 -1
- package/dist/cli/__tests__/ralph.test.d.ts +0 -2
- package/dist/cli/__tests__/ralph.test.d.ts.map +0 -1
- package/dist/cli/__tests__/ralph.test.js +0 -256
- package/dist/cli/__tests__/ralph.test.js.map +0 -1
- package/dist/cli/__tests__/resume.test.d.ts +0 -2
- package/dist/cli/__tests__/resume.test.d.ts.map +0 -1
- package/dist/cli/__tests__/resume.test.js +0 -84
- package/dist/cli/__tests__/resume.test.js.map +0 -1
- package/dist/cli/__tests__/session-scoped-runtime.test.d.ts +0 -2
- package/dist/cli/__tests__/session-scoped-runtime.test.d.ts.map +0 -1
- package/dist/cli/__tests__/session-scoped-runtime.test.js +0 -146
- package/dist/cli/__tests__/session-scoped-runtime.test.js.map +0 -1
- package/dist/cli/__tests__/session-search-help.test.d.ts +0 -2
- package/dist/cli/__tests__/session-search-help.test.d.ts.map +0 -1
- package/dist/cli/__tests__/session-search-help.test.js +0 -76
- package/dist/cli/__tests__/session-search-help.test.js.map +0 -1
- package/dist/cli/__tests__/session-search.test.d.ts +0 -2
- package/dist/cli/__tests__/session-search.test.d.ts.map +0 -1
- package/dist/cli/__tests__/session-search.test.js +0 -77
- package/dist/cli/__tests__/session-search.test.js.map +0 -1
- package/dist/cli/__tests__/setup-agents-overwrite.test.d.ts +0 -2
- package/dist/cli/__tests__/setup-agents-overwrite.test.d.ts.map +0 -1
- package/dist/cli/__tests__/setup-agents-overwrite.test.js +0 -457
- package/dist/cli/__tests__/setup-agents-overwrite.test.js.map +0 -1
- package/dist/cli/__tests__/setup-gh-star.test.d.ts +0 -2
- package/dist/cli/__tests__/setup-gh-star.test.d.ts.map +0 -1
- package/dist/cli/__tests__/setup-gh-star.test.js +0 -67
- package/dist/cli/__tests__/setup-gh-star.test.js.map +0 -1
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.d.ts +0 -2
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.d.ts.map +0 -1
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js +0 -189
- package/dist/cli/__tests__/setup-hooks-shared-ownership.test.js.map +0 -1
- package/dist/cli/__tests__/setup-install-mode.test.d.ts +0 -2
- package/dist/cli/__tests__/setup-install-mode.test.d.ts.map +0 -1
- package/dist/cli/__tests__/setup-install-mode.test.js +0 -873
- package/dist/cli/__tests__/setup-install-mode.test.js.map +0 -1
- package/dist/cli/__tests__/setup-prompts-overwrite.test.d.ts +0 -2
- package/dist/cli/__tests__/setup-prompts-overwrite.test.d.ts.map +0 -1
- package/dist/cli/__tests__/setup-prompts-overwrite.test.js +0 -191
- package/dist/cli/__tests__/setup-prompts-overwrite.test.js.map +0 -1
- package/dist/cli/__tests__/setup-refresh.test.d.ts +0 -2
- package/dist/cli/__tests__/setup-refresh.test.d.ts.map +0 -1
- package/dist/cli/__tests__/setup-refresh.test.js +0 -591
- package/dist/cli/__tests__/setup-refresh.test.js.map +0 -1
- package/dist/cli/__tests__/setup-scope.test.d.ts +0 -2
- package/dist/cli/__tests__/setup-scope.test.d.ts.map +0 -1
- package/dist/cli/__tests__/setup-scope.test.js +0 -340
- package/dist/cli/__tests__/setup-scope.test.js.map +0 -1
- package/dist/cli/__tests__/setup-skill-validation.test.d.ts +0 -2
- package/dist/cli/__tests__/setup-skill-validation.test.d.ts.map +0 -1
- package/dist/cli/__tests__/setup-skill-validation.test.js +0 -44
- package/dist/cli/__tests__/setup-skill-validation.test.js.map +0 -1
- package/dist/cli/__tests__/setup-skills-overwrite.test.d.ts +0 -2
- package/dist/cli/__tests__/setup-skills-overwrite.test.d.ts.map +0 -1
- package/dist/cli/__tests__/setup-skills-overwrite.test.js +0 -295
- package/dist/cli/__tests__/setup-skills-overwrite.test.js.map +0 -1
- package/dist/cli/__tests__/sidecar.test.d.ts +0 -2
- package/dist/cli/__tests__/sidecar.test.d.ts.map +0 -1
- package/dist/cli/__tests__/sidecar.test.js +0 -24
- package/dist/cli/__tests__/sidecar.test.js.map +0 -1
- package/dist/cli/__tests__/sparkshell-cli.test.d.ts +0 -2
- package/dist/cli/__tests__/sparkshell-cli.test.d.ts.map +0 -1
- package/dist/cli/__tests__/sparkshell-cli.test.js +0 -400
- package/dist/cli/__tests__/sparkshell-cli.test.js.map +0 -1
- package/dist/cli/__tests__/sparkshell-packaging.test.d.ts +0 -2
- package/dist/cli/__tests__/sparkshell-packaging.test.d.ts.map +0 -1
- package/dist/cli/__tests__/sparkshell-packaging.test.js +0 -74
- package/dist/cli/__tests__/sparkshell-packaging.test.js.map +0 -1
- package/dist/cli/__tests__/star-prompt.test.d.ts +0 -2
- package/dist/cli/__tests__/star-prompt.test.d.ts.map +0 -1
- package/dist/cli/__tests__/star-prompt.test.js +0 -172
- package/dist/cli/__tests__/star-prompt.test.js.map +0 -1
- package/dist/cli/__tests__/state.test.d.ts +0 -2
- package/dist/cli/__tests__/state.test.d.ts.map +0 -1
- package/dist/cli/__tests__/state.test.js +0 -46
- package/dist/cli/__tests__/state.test.js.map +0 -1
- package/dist/cli/__tests__/team-decompose.test.d.ts +0 -2
- package/dist/cli/__tests__/team-decompose.test.d.ts.map +0 -1
- package/dist/cli/__tests__/team-decompose.test.js +0 -133
- package/dist/cli/__tests__/team-decompose.test.js.map +0 -1
- package/dist/cli/__tests__/team.test.d.ts +0 -2
- package/dist/cli/__tests__/team.test.d.ts.map +0 -1
- package/dist/cli/__tests__/team.test.js +0 -1820
- package/dist/cli/__tests__/team.test.js.map +0 -1
- package/dist/cli/__tests__/uninstall.test.d.ts +0 -2
- package/dist/cli/__tests__/uninstall.test.d.ts.map +0 -1
- package/dist/cli/__tests__/uninstall.test.js +0 -766
- package/dist/cli/__tests__/uninstall.test.js.map +0 -1
- package/dist/cli/__tests__/update.test.d.ts +0 -2
- package/dist/cli/__tests__/update.test.d.ts.map +0 -1
- package/dist/cli/__tests__/update.test.js +0 -589
- package/dist/cli/__tests__/update.test.js.map +0 -1
- package/dist/cli/__tests__/version-sync-contract.test.d.ts +0 -2
- package/dist/cli/__tests__/version-sync-contract.test.d.ts.map +0 -1
- package/dist/cli/__tests__/version-sync-contract.test.js +0 -41
- package/dist/cli/__tests__/version-sync-contract.test.js.map +0 -1
- package/dist/cli/__tests__/version.test.d.ts +0 -2
- package/dist/cli/__tests__/version.test.d.ts.map +0 -1
- package/dist/cli/__tests__/version.test.js +0 -21
- package/dist/cli/__tests__/version.test.js.map +0 -1
- package/dist/cli/__tests__/windows-popup-loop-contract.test.d.ts +0 -2
- package/dist/cli/__tests__/windows-popup-loop-contract.test.d.ts.map +0 -1
- package/dist/cli/__tests__/windows-popup-loop-contract.test.js +0 -31
- package/dist/cli/__tests__/windows-popup-loop-contract.test.js.map +0 -1
- package/dist/cli/ralph.d.ts +0 -17
- package/dist/compat/__tests__/doctor-contract.test.d.ts +0 -2
- package/dist/compat/__tests__/doctor-contract.test.d.ts.map +0 -1
- package/dist/compat/__tests__/doctor-contract.test.js +0 -108
- package/dist/compat/__tests__/doctor-contract.test.js.map +0 -1
- package/dist/compat/__tests__/rust-runtime-compat.test.d.ts +0 -2
- package/dist/compat/__tests__/rust-runtime-compat.test.d.ts.map +0 -1
- package/dist/compat/__tests__/rust-runtime-compat.test.js +0 -218
- package/dist/compat/__tests__/rust-runtime-compat.test.js.map +0 -1
- package/dist/config/__tests__/codex-hooks.test.d.ts +0 -2
- package/dist/config/__tests__/codex-hooks.test.d.ts.map +0 -1
- package/dist/config/__tests__/codex-hooks.test.js +0 -77
- package/dist/config/__tests__/codex-hooks.test.js.map +0 -1
- package/dist/config/__tests__/generator-idempotent.test.d.ts +0 -2
- package/dist/config/__tests__/generator-idempotent.test.d.ts.map +0 -1
- package/dist/config/__tests__/generator-idempotent.test.js +0 -882
- package/dist/config/__tests__/generator-idempotent.test.js.map +0 -1
- package/dist/config/__tests__/generator-notify.test.d.ts +0 -2
- package/dist/config/__tests__/generator-notify.test.d.ts.map +0 -1
- package/dist/config/__tests__/generator-notify.test.js +0 -343
- package/dist/config/__tests__/generator-notify.test.js.map +0 -1
- package/dist/config/__tests__/generator-status-line-presets.test.d.ts +0 -2
- package/dist/config/__tests__/generator-status-line-presets.test.d.ts.map +0 -1
- package/dist/config/__tests__/generator-status-line-presets.test.js +0 -203
- package/dist/config/__tests__/generator-status-line-presets.test.js.map +0 -1
- package/dist/config/__tests__/mcp-registry.test.d.ts +0 -2
- package/dist/config/__tests__/mcp-registry.test.d.ts.map +0 -1
- package/dist/config/__tests__/mcp-registry.test.js +0 -190
- package/dist/config/__tests__/mcp-registry.test.js.map +0 -1
- package/dist/config/__tests__/models.test.d.ts +0 -2
- package/dist/config/__tests__/models.test.d.ts.map +0 -1
- package/dist/config/__tests__/models.test.js +0 -224
- package/dist/config/__tests__/models.test.js.map +0 -1
- package/dist/config/__tests__/wiki-config-contract.test.d.ts +0 -2
- package/dist/config/__tests__/wiki-config-contract.test.d.ts.map +0 -1
- package/dist/config/__tests__/wiki-config-contract.test.js +0 -19
- package/dist/config/__tests__/wiki-config-contract.test.js.map +0 -1
- package/dist/document-refresh/__tests__/enforcer.test.d.ts +0 -2
- package/dist/document-refresh/__tests__/enforcer.test.d.ts.map +0 -1
- package/dist/document-refresh/__tests__/enforcer.test.js +0 -128
- package/dist/document-refresh/__tests__/enforcer.test.js.map +0 -1
- package/dist/hooks/__tests__/agents-overlay.test.d.ts +0 -8
- package/dist/hooks/__tests__/agents-overlay.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/agents-overlay.test.js +0 -644
- package/dist/hooks/__tests__/agents-overlay.test.js.map +0 -1
- package/dist/hooks/__tests__/analyze-routing-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/analyze-routing-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/analyze-routing-contract.test.js +0 -45
- package/dist/hooks/__tests__/analyze-routing-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/analyze-skill-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/analyze-skill-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/analyze-skill-contract.test.js +0 -48
- package/dist/hooks/__tests__/analyze-skill-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/anti-slop-workflow.test.d.ts +0 -2
- package/dist/hooks/__tests__/anti-slop-workflow.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/anti-slop-workflow.test.js +0 -146
- package/dist/hooks/__tests__/anti-slop-workflow.test.js.map +0 -1
- package/dist/hooks/__tests__/autopilot-skill-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/autopilot-skill-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/autopilot-skill-contract.test.js +0 -37
- package/dist/hooks/__tests__/autopilot-skill-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/clawhip-event-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/clawhip-event-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/clawhip-event-contract.test.js +0 -37
- package/dist/hooks/__tests__/clawhip-event-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/code-review-skill-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/code-review-skill-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/code-review-skill-contract.test.js +0 -56
- package/dist/hooks/__tests__/code-review-skill-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/codebase-map.test.d.ts +0 -8
- package/dist/hooks/__tests__/codebase-map.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/codebase-map.test.js +0 -218
- package/dist/hooks/__tests__/codebase-map.test.js.map +0 -1
- package/dist/hooks/__tests__/consensus-execution-handoff.test.d.ts +0 -18
- package/dist/hooks/__tests__/consensus-execution-handoff.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/consensus-execution-handoff.test.js +0 -234
- package/dist/hooks/__tests__/consensus-execution-handoff.test.js.map +0 -1
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.js +0 -20
- package/dist/hooks/__tests__/debugger-log-recency-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/deep-interview-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/deep-interview-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/deep-interview-contract.test.js +0 -213
- package/dist/hooks/__tests__/deep-interview-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.js +0 -43
- package/dist/hooks/__tests__/explicit-terminal-stop-docs-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.js +0 -38
- package/dist/hooks/__tests__/explicit-terminal-stop-model-docs-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/explore-routing.test.d.ts +0 -2
- package/dist/hooks/__tests__/explore-routing.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/explore-routing.test.js +0 -43
- package/dist/hooks/__tests__/explore-routing.test.js.map +0 -1
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.js +0 -69
- package/dist/hooks/__tests__/explore-sparkshell-guidance-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/keyword-detector.test.d.ts +0 -2
- package/dist/hooks/__tests__/keyword-detector.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/keyword-detector.test.js +0 -1716
- package/dist/hooks/__tests__/keyword-detector.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-fallback-watcher.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-fallback-watcher.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-fallback-watcher.test.js +0 -3898
- package/dist/hooks/__tests__/notify-fallback-watcher.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.js +0 -786
- package/dist/hooks/__tests__/notify-hook-all-workers-idle.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js +0 -2397
- package/dist/hooks/__tests__/notify-hook-auto-nudge.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.js +0 -160
- package/dist/hooks/__tests__/notify-hook-cross-worktree-heartbeat.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.js +0 -1178
- package/dist/hooks/__tests__/notify-hook-managed-tmux.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-modules.test.d.ts +0 -9
- package/dist/hooks/__tests__/notify-hook-modules.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-modules.test.js +0 -529
- package/dist/hooks/__tests__/notify-hook-modules.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.js +0 -14
- package/dist/hooks/__tests__/notify-hook-native-dispatch-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.js +0 -682
- package/dist/hooks/__tests__/notify-hook-ralph-resume.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-regression-205.test.d.ts +0 -9
- package/dist/hooks/__tests__/notify-hook-regression-205.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-regression-205.test.js +0 -255
- package/dist/hooks/__tests__/notify-hook-regression-205.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.js +0 -162
- package/dist/hooks/__tests__/notify-hook-session-idle-dedupe.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-session-scope.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-session-scope.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-session-scope.test.js +0 -301
- package/dist/hooks/__tests__/notify-hook-session-scope.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js +0 -1510
- package/dist/hooks/__tests__/notify-hook-team-dispatch.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js +0 -2879
- package/dist/hooks/__tests__/notify-hook-team-leader-nudge.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js +0 -228
- package/dist/hooks/__tests__/notify-hook-team-tmux-guard.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.js +0 -35
- package/dist/hooks/__tests__/notify-hook-team-worker-fail-closed.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js +0 -1589
- package/dist/hooks/__tests__/notify-hook-tmux-heal.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.d.ts +0 -10
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.js +0 -0
- package/dist/hooks/__tests__/notify-hook-tmux-scrollback.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.d.ts +0 -11
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.js +0 -266
- package/dist/hooks/__tests__/notify-hook-visual-verdict.test.js.map +0 -1
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.d.ts +0 -2
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.js +0 -895
- package/dist/hooks/__tests__/notify-hook-worker-idle.test.js.map +0 -1
- package/dist/hooks/__tests__/openclaw-setup-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/openclaw-setup-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/openclaw-setup-contract.test.js +0 -61
- package/dist/hooks/__tests__/openclaw-setup-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/pre-context-gate-skills.test.d.ts +0 -2
- package/dist/hooks/__tests__/pre-context-gate-skills.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/pre-context-gate-skills.test.js +0 -40
- package/dist/hooks/__tests__/pre-context-gate-skills.test.js.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.d.ts +0 -2
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.js +0 -11
- package/dist/hooks/__tests__/prompt-guidance-catalog.test.js.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/prompt-guidance-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-contract.test.js +0 -38
- package/dist/hooks/__tests__/prompt-guidance-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.d.ts +0 -2
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.js +0 -48
- package/dist/hooks/__tests__/prompt-guidance-fragments.test.js.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.d.ts +0 -2
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.js +0 -11
- package/dist/hooks/__tests__/prompt-guidance-scenarios.test.js.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.d.ts +0 -5
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.d.ts.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.js +0 -34
- package/dist/hooks/__tests__/prompt-guidance-test-helpers.js.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.d.ts +0 -2
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js +0 -65
- package/dist/hooks/__tests__/prompt-guidance-wave-two.test.js.map +0 -1
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.d.ts +0 -2
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.js +0 -38
- package/dist/hooks/__tests__/prompt-orchestration-boundary.test.js.map +0 -1
- package/dist/hooks/__tests__/prompt-refactor-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/prompt-refactor-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/prompt-refactor-contract.test.js +0 -22
- package/dist/hooks/__tests__/prompt-refactor-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/prompt-team-routing.test.d.ts +0 -2
- package/dist/hooks/__tests__/prompt-team-routing.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/prompt-team-routing.test.js +0 -49
- package/dist/hooks/__tests__/prompt-team-routing.test.js.map +0 -1
- package/dist/hooks/__tests__/session.test.d.ts +0 -2
- package/dist/hooks/__tests__/session.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/session.test.js +0 -322
- package/dist/hooks/__tests__/session.test.js.map +0 -1
- package/dist/hooks/__tests__/skill-guidance-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/skill-guidance-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/skill-guidance-contract.test.js +0 -29
- package/dist/hooks/__tests__/skill-guidance-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/task-size-detector.test.d.ts +0 -2
- package/dist/hooks/__tests__/task-size-detector.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/task-size-detector.test.js +0 -330
- package/dist/hooks/__tests__/task-size-detector.test.js.map +0 -1
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.js +0 -28
- package/dist/hooks/__tests__/team-runtime-gating-docs-contract.test.js.map +0 -1
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.d.ts +0 -2
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.js +0 -24
- package/dist/hooks/__tests__/tmux-hook-engine-types-sync.test.js.map +0 -1
- package/dist/hooks/__tests__/tmux-hook-engine.test.d.ts +0 -2
- package/dist/hooks/__tests__/tmux-hook-engine.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/tmux-hook-engine.test.js +0 -403
- package/dist/hooks/__tests__/tmux-hook-engine.test.js.map +0 -1
- package/dist/hooks/__tests__/triage-config.test.d.ts +0 -2
- package/dist/hooks/__tests__/triage-config.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/triage-config.test.js +0 -211
- package/dist/hooks/__tests__/triage-config.test.js.map +0 -1
- package/dist/hooks/__tests__/triage-heuristic.test.d.ts +0 -2
- package/dist/hooks/__tests__/triage-heuristic.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/triage-heuristic.test.js +0 -285
- package/dist/hooks/__tests__/triage-heuristic.test.js.map +0 -1
- package/dist/hooks/__tests__/triage-state.test.d.ts +0 -2
- package/dist/hooks/__tests__/triage-state.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/triage-state.test.js +0 -426
- package/dist/hooks/__tests__/triage-state.test.js.map +0 -1
- package/dist/hooks/__tests__/visual-ralph-skill.test.d.ts +0 -2
- package/dist/hooks/__tests__/visual-ralph-skill.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/visual-ralph-skill.test.js +0 -44
- package/dist/hooks/__tests__/visual-ralph-skill.test.js.map +0 -1
- package/dist/hooks/__tests__/visual-verdict-loop.test.d.ts +0 -2
- package/dist/hooks/__tests__/visual-verdict-loop.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/visual-verdict-loop.test.js +0 -35
- package/dist/hooks/__tests__/visual-verdict-loop.test.js.map +0 -1
- package/dist/hooks/__tests__/wiki-docs-contract.test.d.ts +0 -2
- package/dist/hooks/__tests__/wiki-docs-contract.test.d.ts.map +0 -1
- package/dist/hooks/__tests__/wiki-docs-contract.test.js +0 -34
- package/dist/hooks/__tests__/wiki-docs-contract.test.js.map +0 -1
- package/dist/hooks/code-simplifier/__tests__/index.test.d.ts +0 -2
- package/dist/hooks/code-simplifier/__tests__/index.test.d.ts.map +0 -1
- package/dist/hooks/code-simplifier/__tests__/index.test.js +0 -187
- package/dist/hooks/code-simplifier/__tests__/index.test.js.map +0 -1
- package/dist/hooks/extensibility/__tests__/dispatcher.test.d.ts +0 -2
- package/dist/hooks/extensibility/__tests__/dispatcher.test.d.ts.map +0 -1
- package/dist/hooks/extensibility/__tests__/dispatcher.test.js +0 -242
- package/dist/hooks/extensibility/__tests__/dispatcher.test.js.map +0 -1
- package/dist/hooks/extensibility/__tests__/events.test.d.ts +0 -2
- package/dist/hooks/extensibility/__tests__/events.test.d.ts.map +0 -1
- package/dist/hooks/extensibility/__tests__/events.test.js +0 -125
- package/dist/hooks/extensibility/__tests__/events.test.js.map +0 -1
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.d.ts +0 -2
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.d.ts.map +0 -1
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.js +0 -153
- package/dist/hooks/extensibility/__tests__/example-hook-plugins.test.js.map +0 -1
- package/dist/hooks/extensibility/__tests__/loader.test.d.ts +0 -2
- package/dist/hooks/extensibility/__tests__/loader.test.d.ts.map +0 -1
- package/dist/hooks/extensibility/__tests__/loader.test.js +0 -254
- package/dist/hooks/extensibility/__tests__/loader.test.js.map +0 -1
- package/dist/hooks/extensibility/__tests__/logging.test.d.ts +0 -2
- package/dist/hooks/extensibility/__tests__/logging.test.d.ts.map +0 -1
- package/dist/hooks/extensibility/__tests__/logging.test.js +0 -74
- package/dist/hooks/extensibility/__tests__/logging.test.js.map +0 -1
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.d.ts +0 -2
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.d.ts.map +0 -1
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.js +0 -202
- package/dist/hooks/extensibility/__tests__/plugin-runner.test.js.map +0 -1
- package/dist/hooks/extensibility/__tests__/runtime.test.d.ts +0 -2
- package/dist/hooks/extensibility/__tests__/runtime.test.d.ts.map +0 -1
- package/dist/hooks/extensibility/__tests__/runtime.test.js +0 -198
- package/dist/hooks/extensibility/__tests__/runtime.test.js.map +0 -1
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.d.ts +0 -2
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.d.ts.map +0 -1
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.js +0 -32
- package/dist/hooks/extensibility/__tests__/sdk-public-surface.test.js.map +0 -1
- package/dist/hooks/extensibility/__tests__/sdk.test.d.ts +0 -2
- package/dist/hooks/extensibility/__tests__/sdk.test.d.ts.map +0 -1
- package/dist/hooks/extensibility/__tests__/sdk.test.js +0 -479
- package/dist/hooks/extensibility/__tests__/sdk.test.js.map +0 -1
- package/dist/hud/__tests__/authority.test.d.ts +0 -2
- package/dist/hud/__tests__/authority.test.d.ts.map +0 -1
- package/dist/hud/__tests__/authority.test.js +0 -56
- package/dist/hud/__tests__/authority.test.js.map +0 -1
- package/dist/hud/__tests__/colors.test.d.ts +0 -2
- package/dist/hud/__tests__/colors.test.d.ts.map +0 -1
- package/dist/hud/__tests__/colors.test.js +0 -92
- package/dist/hud/__tests__/colors.test.js.map +0 -1
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts +0 -10
- package/dist/hud/__tests__/hud-tmux-injection.test.d.ts.map +0 -1
- package/dist/hud/__tests__/hud-tmux-injection.test.js +0 -150
- package/dist/hud/__tests__/hud-tmux-injection.test.js.map +0 -1
- package/dist/hud/__tests__/index.test.d.ts +0 -2
- package/dist/hud/__tests__/index.test.d.ts.map +0 -1
- package/dist/hud/__tests__/index.test.js +0 -180
- package/dist/hud/__tests__/index.test.js.map +0 -1
- package/dist/hud/__tests__/reconcile.test.d.ts +0 -2
- package/dist/hud/__tests__/reconcile.test.d.ts.map +0 -1
- package/dist/hud/__tests__/reconcile.test.js +0 -125
- package/dist/hud/__tests__/reconcile.test.js.map +0 -1
- package/dist/hud/__tests__/render.test.d.ts +0 -2
- package/dist/hud/__tests__/render.test.d.ts.map +0 -1
- package/dist/hud/__tests__/render.test.js +0 -573
- package/dist/hud/__tests__/render.test.js.map +0 -1
- package/dist/hud/__tests__/state.test.d.ts +0 -2
- package/dist/hud/__tests__/state.test.d.ts.map +0 -1
- package/dist/hud/__tests__/state.test.js +0 -618
- package/dist/hud/__tests__/state.test.js.map +0 -1
- package/dist/hud/__tests__/types.test.d.ts +0 -2
- package/dist/hud/__tests__/types.test.d.ts.map +0 -1
- package/dist/hud/__tests__/types.test.js +0 -79
- package/dist/hud/__tests__/types.test.js.map +0 -1
- package/dist/hud/__tests__/watch.test.d.ts +0 -2
- package/dist/hud/__tests__/watch.test.d.ts.map +0 -1
- package/dist/hud/__tests__/watch.test.js +0 -63
- package/dist/hud/__tests__/watch.test.js.map +0 -1
- package/dist/mcp/__tests__/bootstrap.test.d.ts +0 -2
- package/dist/mcp/__tests__/bootstrap.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/bootstrap.test.js +0 -207
- package/dist/mcp/__tests__/bootstrap.test.js.map +0 -1
- package/dist/mcp/__tests__/code-intel-server.test.d.ts +0 -2
- package/dist/mcp/__tests__/code-intel-server.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/code-intel-server.test.js +0 -70
- package/dist/mcp/__tests__/code-intel-server.test.js.map +0 -1
- package/dist/mcp/__tests__/memory-server.test.d.ts +0 -2
- package/dist/mcp/__tests__/memory-server.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/memory-server.test.js +0 -36
- package/dist/mcp/__tests__/memory-server.test.js.map +0 -1
- package/dist/mcp/__tests__/memory-validation.test.d.ts +0 -2
- package/dist/mcp/__tests__/memory-validation.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/memory-validation.test.js +0 -29
- package/dist/mcp/__tests__/memory-validation.test.js.map +0 -1
- package/dist/mcp/__tests__/path-traversal.test.d.ts +0 -2
- package/dist/mcp/__tests__/path-traversal.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/path-traversal.test.js +0 -83
- package/dist/mcp/__tests__/path-traversal.test.js.map +0 -1
- package/dist/mcp/__tests__/server-lifecycle.test.d.ts +0 -2
- package/dist/mcp/__tests__/server-lifecycle.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/server-lifecycle.test.js +0 -260
- package/dist/mcp/__tests__/server-lifecycle.test.js.map +0 -1
- package/dist/mcp/__tests__/state-paths.test.d.ts +0 -2
- package/dist/mcp/__tests__/state-paths.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/state-paths.test.js +0 -209
- package/dist/mcp/__tests__/state-paths.test.js.map +0 -1
- package/dist/mcp/__tests__/state-server-ralph-phase.test.d.ts +0 -2
- package/dist/mcp/__tests__/state-server-ralph-phase.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/state-server-ralph-phase.test.js +0 -109
- package/dist/mcp/__tests__/state-server-ralph-phase.test.js.map +0 -1
- package/dist/mcp/__tests__/state-server-schema.test.d.ts +0 -2
- package/dist/mcp/__tests__/state-server-schema.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/state-server-schema.test.js +0 -29
- package/dist/mcp/__tests__/state-server-schema.test.js.map +0 -1
- package/dist/mcp/__tests__/state-server-team-tools.test.d.ts +0 -2
- package/dist/mcp/__tests__/state-server-team-tools.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/state-server-team-tools.test.js +0 -35
- package/dist/mcp/__tests__/state-server-team-tools.test.js.map +0 -1
- package/dist/mcp/__tests__/state-server.test.d.ts +0 -2
- package/dist/mcp/__tests__/state-server.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/state-server.test.js +0 -965
- package/dist/mcp/__tests__/state-server.test.js.map +0 -1
- package/dist/mcp/__tests__/trace-server.test.d.ts +0 -2
- package/dist/mcp/__tests__/trace-server.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/trace-server.test.js +0 -119
- package/dist/mcp/__tests__/trace-server.test.js.map +0 -1
- package/dist/mcp/__tests__/wiki-server.test.d.ts +0 -2
- package/dist/mcp/__tests__/wiki-server.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/wiki-server.test.js +0 -30
- package/dist/mcp/__tests__/wiki-server.test.js.map +0 -1
- package/dist/modes/__tests__/base-autoresearch-contract.test.d.ts +0 -2
- package/dist/modes/__tests__/base-autoresearch-contract.test.d.ts.map +0 -1
- package/dist/modes/__tests__/base-autoresearch-contract.test.js +0 -123
- package/dist/modes/__tests__/base-autoresearch-contract.test.js.map +0 -1
- package/dist/modes/__tests__/base-multi-state-compat.test.d.ts +0 -2
- package/dist/modes/__tests__/base-multi-state-compat.test.d.ts.map +0 -1
- package/dist/modes/__tests__/base-multi-state-compat.test.js +0 -38
- package/dist/modes/__tests__/base-multi-state-compat.test.js.map +0 -1
- package/dist/modes/__tests__/base-ralph-contract.test.d.ts +0 -2
- package/dist/modes/__tests__/base-ralph-contract.test.d.ts.map +0 -1
- package/dist/modes/__tests__/base-ralph-contract.test.js +0 -64
- package/dist/modes/__tests__/base-ralph-contract.test.js.map +0 -1
- package/dist/modes/__tests__/base-session-scope.test.d.ts +0 -2
- package/dist/modes/__tests__/base-session-scope.test.d.ts.map +0 -1
- package/dist/modes/__tests__/base-session-scope.test.js +0 -98
- package/dist/modes/__tests__/base-session-scope.test.js.map +0 -1
- package/dist/modes/__tests__/base-tmux-pane.test.d.ts +0 -2
- package/dist/modes/__tests__/base-tmux-pane.test.d.ts.map +0 -1
- package/dist/modes/__tests__/base-tmux-pane.test.js +0 -39
- package/dist/modes/__tests__/base-tmux-pane.test.js.map +0 -1
- package/dist/notifications/__tests__/config.test.d.ts +0 -2
- package/dist/notifications/__tests__/config.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/config.test.js +0 -269
- package/dist/notifications/__tests__/config.test.js.map +0 -1
- package/dist/notifications/__tests__/custom-alias-enablement.test.d.ts +0 -2
- package/dist/notifications/__tests__/custom-alias-enablement.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/custom-alias-enablement.test.js +0 -84
- package/dist/notifications/__tests__/custom-alias-enablement.test.js.map +0 -1
- package/dist/notifications/__tests__/dispatch-cooldown.test.d.ts +0 -5
- package/dist/notifications/__tests__/dispatch-cooldown.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/dispatch-cooldown.test.js +0 -100
- package/dist/notifications/__tests__/dispatch-cooldown.test.js.map +0 -1
- package/dist/notifications/__tests__/dispatcher.test.d.ts +0 -2
- package/dist/notifications/__tests__/dispatcher.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/dispatcher.test.js +0 -202
- package/dist/notifications/__tests__/dispatcher.test.js.map +0 -1
- package/dist/notifications/__tests__/formatter.test.d.ts +0 -2
- package/dist/notifications/__tests__/formatter.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/formatter.test.js +0 -270
- package/dist/notifications/__tests__/formatter.test.js.map +0 -1
- package/dist/notifications/__tests__/hook-config.test.d.ts +0 -5
- package/dist/notifications/__tests__/hook-config.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/hook-config.test.js +0 -139
- package/dist/notifications/__tests__/hook-config.test.js.map +0 -1
- package/dist/notifications/__tests__/idle-cooldown.test.d.ts +0 -5
- package/dist/notifications/__tests__/idle-cooldown.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/idle-cooldown.test.js +0 -209
- package/dist/notifications/__tests__/idle-cooldown.test.js.map +0 -1
- package/dist/notifications/__tests__/index.test.d.ts +0 -2
- package/dist/notifications/__tests__/index.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/index.test.js +0 -188
- package/dist/notifications/__tests__/index.test.js.map +0 -1
- package/dist/notifications/__tests__/lifecycle-dedupe.test.d.ts +0 -2
- package/dist/notifications/__tests__/lifecycle-dedupe.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/lifecycle-dedupe.test.js +0 -86
- package/dist/notifications/__tests__/lifecycle-dedupe.test.js.map +0 -1
- package/dist/notifications/__tests__/notifier.test.d.ts +0 -2
- package/dist/notifications/__tests__/notifier.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/notifier.test.js +0 -239
- package/dist/notifications/__tests__/notifier.test.js.map +0 -1
- package/dist/notifications/__tests__/profiles.test.d.ts +0 -2
- package/dist/notifications/__tests__/profiles.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/profiles.test.js +0 -404
- package/dist/notifications/__tests__/profiles.test.js.map +0 -1
- package/dist/notifications/__tests__/reply-config.test.d.ts +0 -2
- package/dist/notifications/__tests__/reply-config.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/reply-config.test.js +0 -79
- package/dist/notifications/__tests__/reply-config.test.js.map +0 -1
- package/dist/notifications/__tests__/reply-listener.test.d.ts +0 -2
- package/dist/notifications/__tests__/reply-listener.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/reply-listener.test.js +0 -723
- package/dist/notifications/__tests__/reply-listener.test.js.map +0 -1
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.d.ts +0 -2
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.js +0 -93
- package/dist/notifications/__tests__/session-idle-tail-dedupe.test.js.map +0 -1
- package/dist/notifications/__tests__/session-registry.test.d.ts +0 -2
- package/dist/notifications/__tests__/session-registry.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/session-registry.test.js +0 -234
- package/dist/notifications/__tests__/session-registry.test.js.map +0 -1
- package/dist/notifications/__tests__/session-status.test.d.ts +0 -2
- package/dist/notifications/__tests__/session-status.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/session-status.test.js +0 -249
- package/dist/notifications/__tests__/session-status.test.js.map +0 -1
- package/dist/notifications/__tests__/temp-mode.test.d.ts +0 -2
- package/dist/notifications/__tests__/temp-mode.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/temp-mode.test.js +0 -172
- package/dist/notifications/__tests__/temp-mode.test.js.map +0 -1
- package/dist/notifications/__tests__/template-engine.test.d.ts +0 -5
- package/dist/notifications/__tests__/template-engine.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/template-engine.test.js +0 -158
- package/dist/notifications/__tests__/template-engine.test.js.map +0 -1
- package/dist/notifications/__tests__/tmux-detector.test.d.ts +0 -2
- package/dist/notifications/__tests__/tmux-detector.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/tmux-detector.test.js +0 -208
- package/dist/notifications/__tests__/tmux-detector.test.js.map +0 -1
- package/dist/notifications/__tests__/tmux.test.d.ts +0 -2
- package/dist/notifications/__tests__/tmux.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/tmux.test.js +0 -285
- package/dist/notifications/__tests__/tmux.test.js.map +0 -1
- package/dist/notifications/__tests__/verbosity.test.d.ts +0 -2
- package/dist/notifications/__tests__/verbosity.test.d.ts.map +0 -1
- package/dist/notifications/__tests__/verbosity.test.js +0 -237
- package/dist/notifications/__tests__/verbosity.test.js.map +0 -1
- package/dist/openclaw/__tests__/config.test.d.ts +0 -6
- package/dist/openclaw/__tests__/config.test.d.ts.map +0 -1
- package/dist/openclaw/__tests__/config.test.js +0 -344
- package/dist/openclaw/__tests__/config.test.js.map +0 -1
- package/dist/openclaw/__tests__/dispatcher.test.d.ts +0 -5
- package/dist/openclaw/__tests__/dispatcher.test.d.ts.map +0 -1
- package/dist/openclaw/__tests__/dispatcher.test.js +0 -169
- package/dist/openclaw/__tests__/dispatcher.test.js.map +0 -1
- package/dist/openclaw/__tests__/index.test.d.ts +0 -6
- package/dist/openclaw/__tests__/index.test.d.ts.map +0 -1
- package/dist/openclaw/__tests__/index.test.js +0 -382
- package/dist/openclaw/__tests__/index.test.js.map +0 -1
- package/dist/pipeline/__tests__/orchestrator.test.d.ts +0 -2
- package/dist/pipeline/__tests__/orchestrator.test.d.ts.map +0 -1
- package/dist/pipeline/__tests__/orchestrator.test.js +0 -505
- package/dist/pipeline/__tests__/orchestrator.test.js.map +0 -1
- package/dist/pipeline/__tests__/stages.test.d.ts +0 -2
- package/dist/pipeline/__tests__/stages.test.d.ts.map +0 -1
- package/dist/pipeline/__tests__/stages.test.js +0 -754
- package/dist/pipeline/__tests__/stages.test.js.map +0 -1
- package/dist/pipeline/stages/ralph-verify.d.ts +0 -53
- package/dist/pipeline/stages/ralph-verify.d.ts.map +0 -1
- package/dist/pipeline/stages/ralph-verify.js.map +0 -1
- package/dist/pipeline/stages/ralplan.d.ts +0 -25
- package/dist/pipeline/stages/ralplan.d.ts.map +0 -1
- package/dist/pipeline/stages/ralplan.js.map +0 -1
- package/dist/planning/__tests__/artifacts.test.d.ts +0 -2
- package/dist/planning/__tests__/artifacts.test.d.ts.map +0 -1
- package/dist/planning/__tests__/artifacts.test.js +0 -544
- package/dist/planning/__tests__/artifacts.test.js.map +0 -1
- package/dist/question/__tests__/client.test.d.ts +0 -2
- package/dist/question/__tests__/client.test.d.ts.map +0 -1
- package/dist/question/__tests__/client.test.js +0 -90
- package/dist/question/__tests__/client.test.js.map +0 -1
- package/dist/question/__tests__/deep-interview.test.d.ts +0 -2
- package/dist/question/__tests__/deep-interview.test.d.ts.map +0 -1
- package/dist/question/__tests__/deep-interview.test.js +0 -209
- package/dist/question/__tests__/deep-interview.test.js.map +0 -1
- package/dist/question/__tests__/policy.test.d.ts +0 -2
- package/dist/question/__tests__/policy.test.d.ts.map +0 -1
- package/dist/question/__tests__/policy.test.js +0 -107
- package/dist/question/__tests__/policy.test.js.map +0 -1
- package/dist/question/__tests__/renderer.test.d.ts +0 -2
- package/dist/question/__tests__/renderer.test.d.ts.map +0 -1
- package/dist/question/__tests__/renderer.test.js +0 -707
- package/dist/question/__tests__/renderer.test.js.map +0 -1
- package/dist/question/__tests__/state.test.d.ts +0 -2
- package/dist/question/__tests__/state.test.d.ts.map +0 -1
- package/dist/question/__tests__/state.test.js +0 -102
- package/dist/question/__tests__/state.test.js.map +0 -1
- package/dist/question/__tests__/types.test.d.ts +0 -2
- package/dist/question/__tests__/types.test.d.ts.map +0 -1
- package/dist/question/__tests__/types.test.js +0 -65
- package/dist/question/__tests__/types.test.js.map +0 -1
- package/dist/question/__tests__/ui.test.d.ts +0 -2
- package/dist/question/__tests__/ui.test.d.ts.map +0 -1
- package/dist/question/__tests__/ui.test.js +0 -446
- package/dist/question/__tests__/ui.test.js.map +0 -1
- package/dist/ralph/__tests__/persistence.test.d.ts +0 -2
- package/dist/ralph/__tests__/persistence.test.d.ts.map +0 -1
- package/dist/ralph/__tests__/persistence.test.js +0 -116
- package/dist/ralph/__tests__/persistence.test.js.map +0 -1
- package/dist/ralph/contract.d.ts +0 -17
- package/dist/ralph/persistence.js.map +0 -1
- package/dist/ralplan/__tests__/runtime.test.d.ts +0 -2
- package/dist/ralplan/__tests__/runtime.test.d.ts.map +0 -1
- package/dist/ralplan/__tests__/runtime.test.js +0 -165
- package/dist/ralplan/__tests__/runtime.test.js.map +0 -1
- package/dist/ralplan/runtime.d.ts +0 -52
- package/dist/ralplan/runtime.d.ts.map +0 -1
- package/dist/ralplan/runtime.js.map +0 -1
- package/dist/runtime/__tests__/bridge.test.d.ts +0 -2
- package/dist/runtime/__tests__/bridge.test.d.ts.map +0 -1
- package/dist/runtime/__tests__/bridge.test.js +0 -194
- package/dist/runtime/__tests__/bridge.test.js.map +0 -1
- package/dist/runtime/__tests__/run-loop.test.d.ts +0 -2
- package/dist/runtime/__tests__/run-loop.test.d.ts.map +0 -1
- package/dist/runtime/__tests__/run-loop.test.js +0 -35
- package/dist/runtime/__tests__/run-loop.test.js.map +0 -1
- package/dist/runtime/__tests__/run-outcome.test.d.ts +0 -2
- package/dist/runtime/__tests__/run-outcome.test.d.ts.map +0 -1
- package/dist/runtime/__tests__/run-outcome.test.js +0 -102
- package/dist/runtime/__tests__/run-outcome.test.js.map +0 -1
- package/dist/runtime/__tests__/run-state.test.d.ts +0 -2
- package/dist/runtime/__tests__/run-state.test.d.ts.map +0 -1
- package/dist/runtime/__tests__/run-state.test.js +0 -37
- package/dist/runtime/__tests__/run-state.test.js.map +0 -1
- package/dist/scripts/__tests__/codex-native-hook.test.d.ts +0 -2
- package/dist/scripts/__tests__/codex-native-hook.test.d.ts.map +0 -1
- package/dist/scripts/__tests__/codex-native-hook.test.js +0 -6788
- package/dist/scripts/__tests__/codex-native-hook.test.js.map +0 -1
- package/dist/scripts/__tests__/generate-release-body.test.d.ts +0 -2
- package/dist/scripts/__tests__/generate-release-body.test.d.ts.map +0 -1
- package/dist/scripts/__tests__/generate-release-body.test.js +0 -233
- package/dist/scripts/__tests__/generate-release-body.test.js.map +0 -1
- package/dist/scripts/__tests__/hook-derived-watcher.test.d.ts +0 -2
- package/dist/scripts/__tests__/hook-derived-watcher.test.d.ts.map +0 -1
- package/dist/scripts/__tests__/hook-derived-watcher.test.js +0 -195
- package/dist/scripts/__tests__/hook-derived-watcher.test.js.map +0 -1
- package/dist/scripts/__tests__/postinstall.test.d.ts +0 -2
- package/dist/scripts/__tests__/postinstall.test.d.ts.map +0 -1
- package/dist/scripts/__tests__/postinstall.test.js +0 -92
- package/dist/scripts/__tests__/postinstall.test.js.map +0 -1
- package/dist/scripts/__tests__/prompt-inventory.test.d.ts +0 -2
- package/dist/scripts/__tests__/prompt-inventory.test.d.ts.map +0 -1
- package/dist/scripts/__tests__/prompt-inventory.test.js +0 -56
- package/dist/scripts/__tests__/prompt-inventory.test.js.map +0 -1
- package/dist/scripts/__tests__/run-test-files.test.d.ts +0 -2
- package/dist/scripts/__tests__/run-test-files.test.d.ts.map +0 -1
- package/dist/scripts/__tests__/run-test-files.test.js +0 -62
- package/dist/scripts/__tests__/run-test-files.test.js.map +0 -1
- package/dist/scripts/__tests__/smoke-packed-install.test.d.ts +0 -2
- package/dist/scripts/__tests__/smoke-packed-install.test.d.ts.map +0 -1
- package/dist/scripts/__tests__/smoke-packed-install.test.js +0 -135
- package/dist/scripts/__tests__/smoke-packed-install.test.js.map +0 -1
- package/dist/scripts/__tests__/test-reply-listener-live.test.d.ts +0 -2
- package/dist/scripts/__tests__/test-reply-listener-live.test.d.ts.map +0 -1
- package/dist/scripts/__tests__/test-reply-listener-live.test.js +0 -82
- package/dist/scripts/__tests__/test-reply-listener-live.test.js.map +0 -1
- package/dist/scripts/__tests__/verify-native-agents.test.d.ts +0 -2
- package/dist/scripts/__tests__/verify-native-agents.test.d.ts.map +0 -1
- package/dist/scripts/__tests__/verify-native-agents.test.js +0 -166
- package/dist/scripts/__tests__/verify-native-agents.test.js.map +0 -1
- package/dist/scripts/eval/eval-candidate-handoff.d.ts +0 -2
- package/dist/scripts/eval/eval-candidate-handoff.d.ts.map +0 -1
- package/dist/scripts/eval/eval-candidate-handoff.js +0 -11
- package/dist/scripts/eval/eval-candidate-handoff.js.map +0 -1
- package/dist/scripts/eval/eval-cli-discoverability.d.ts +0 -3
- package/dist/scripts/eval/eval-cli-discoverability.d.ts.map +0 -1
- package/dist/scripts/eval/eval-cli-discoverability.js +0 -37
- package/dist/scripts/eval/eval-cli-discoverability.js.map +0 -1
- package/dist/scripts/eval/eval-fresh-run-tagging.d.ts +0 -2
- package/dist/scripts/eval/eval-fresh-run-tagging.d.ts.map +0 -1
- package/dist/scripts/eval/eval-fresh-run-tagging.js +0 -11
- package/dist/scripts/eval/eval-fresh-run-tagging.js.map +0 -1
- package/dist/scripts/eval/eval-help-consistency.d.ts +0 -2
- package/dist/scripts/eval/eval-help-consistency.d.ts.map +0 -1
- package/dist/scripts/eval/eval-help-consistency.js +0 -12
- package/dist/scripts/eval/eval-help-consistency.js.map +0 -1
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.d.ts +0 -2
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.d.ts.map +0 -1
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.js +0 -31
- package/dist/scripts/eval/eval-in-action-cat-shellout-demo.js.map +0 -1
- package/dist/scripts/eval/eval-parity-smoke.d.ts +0 -2
- package/dist/scripts/eval/eval-parity-smoke.d.ts.map +0 -1
- package/dist/scripts/eval/eval-parity-smoke.js +0 -23
- package/dist/scripts/eval/eval-parity-smoke.js.map +0 -1
- package/dist/scripts/eval/eval-parity-sweep.d.ts +0 -2
- package/dist/scripts/eval/eval-parity-sweep.d.ts.map +0 -1
- package/dist/scripts/eval/eval-parity-sweep.js +0 -29
- package/dist/scripts/eval/eval-parity-sweep.js.map +0 -1
- package/dist/scripts/eval/eval-resume-dirty-guard.d.ts +0 -2
- package/dist/scripts/eval/eval-resume-dirty-guard.d.ts.map +0 -1
- package/dist/scripts/eval/eval-resume-dirty-guard.js +0 -11
- package/dist/scripts/eval/eval-resume-dirty-guard.js.map +0 -1
- package/dist/scripts/eval/eval-security-path-traversal.d.ts +0 -3
- package/dist/scripts/eval/eval-security-path-traversal.d.ts.map +0 -1
- package/dist/scripts/eval/eval-security-path-traversal.js +0 -35
- package/dist/scripts/eval/eval-security-path-traversal.js.map +0 -1
- package/dist/scripts/notify-hook/__tests__/operational-events.test.d.ts +0 -2
- package/dist/scripts/notify-hook/__tests__/operational-events.test.d.ts.map +0 -1
- package/dist/scripts/notify-hook/__tests__/operational-events.test.js +0 -24
- package/dist/scripts/notify-hook/__tests__/operational-events.test.js.map +0 -1
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.d.ts +0 -2
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.d.ts.map +0 -1
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.js +0 -153
- package/dist/scripts/notify-hook/__tests__/team-worker-posttooluse.test.js.map +0 -1
- package/dist/scripts/notify-hook/ralph-session-resume.d.ts +0 -22
- package/dist/session-history/__tests__/search.test.d.ts +0 -2
- package/dist/session-history/__tests__/search.test.d.ts.map +0 -1
- package/dist/session-history/__tests__/search.test.js +0 -150
- package/dist/session-history/__tests__/search.test.js.map +0 -1
- package/dist/sidecar/__tests__/boundary.test.d.ts +0 -2
- package/dist/sidecar/__tests__/boundary.test.d.ts.map +0 -1
- package/dist/sidecar/__tests__/boundary.test.js +0 -48
- package/dist/sidecar/__tests__/boundary.test.js.map +0 -1
- package/dist/sidecar/__tests__/collector.test.d.ts +0 -2
- package/dist/sidecar/__tests__/collector.test.d.ts.map +0 -1
- package/dist/sidecar/__tests__/collector.test.js +0 -162
- package/dist/sidecar/__tests__/collector.test.js.map +0 -1
- package/dist/sidecar/__tests__/render.test.d.ts +0 -2
- package/dist/sidecar/__tests__/render.test.d.ts.map +0 -1
- package/dist/sidecar/__tests__/render.test.js +0 -67
- package/dist/sidecar/__tests__/render.test.js.map +0 -1
- package/dist/sidecar/__tests__/tmux.test.d.ts +0 -2
- package/dist/sidecar/__tests__/tmux.test.d.ts.map +0 -1
- package/dist/sidecar/__tests__/tmux.test.js +0 -30
- package/dist/sidecar/__tests__/tmux.test.js.map +0 -1
- package/dist/sidecar/__tests__/watch.test.d.ts +0 -2
- package/dist/sidecar/__tests__/watch.test.d.ts.map +0 -1
- package/dist/sidecar/__tests__/watch.test.js +0 -42
- package/dist/sidecar/__tests__/watch.test.js.map +0 -1
- package/dist/state/__tests__/mode-state-context.test.d.ts +0 -2
- package/dist/state/__tests__/mode-state-context.test.d.ts.map +0 -1
- package/dist/state/__tests__/mode-state-context.test.js +0 -35
- package/dist/state/__tests__/mode-state-context.test.js.map +0 -1
- package/dist/state/__tests__/operations-ralph-phase.test.d.ts +0 -2
- package/dist/state/__tests__/operations-ralph-phase.test.d.ts.map +0 -1
- package/dist/state/__tests__/operations-ralph-phase.test.js +0 -103
- package/dist/state/__tests__/operations-ralph-phase.test.js.map +0 -1
- package/dist/state/__tests__/operations.test.d.ts +0 -2
- package/dist/state/__tests__/operations.test.d.ts.map +0 -1
- package/dist/state/__tests__/operations.test.js +0 -439
- package/dist/state/__tests__/operations.test.js.map +0 -1
- package/dist/state/__tests__/path-traversal.test.d.ts +0 -2
- package/dist/state/__tests__/path-traversal.test.d.ts.map +0 -1
- package/dist/state/__tests__/path-traversal.test.js +0 -49
- package/dist/state/__tests__/path-traversal.test.js.map +0 -1
- package/dist/state/__tests__/skill-active.test.d.ts +0 -2
- package/dist/state/__tests__/skill-active.test.d.ts.map +0 -1
- package/dist/state/__tests__/skill-active.test.js +0 -160
- package/dist/state/__tests__/skill-active.test.js.map +0 -1
- package/dist/state/__tests__/workflow-transition.test.d.ts +0 -2
- package/dist/state/__tests__/workflow-transition.test.d.ts.map +0 -1
- package/dist/state/__tests__/workflow-transition.test.js +0 -77
- package/dist/state/__tests__/workflow-transition.test.js.map +0 -1
- package/dist/subagents/__tests__/tracker.test.d.ts +0 -2
- package/dist/subagents/__tests__/tracker.test.d.ts.map +0 -1
- package/dist/subagents/__tests__/tracker.test.js +0 -47
- package/dist/subagents/__tests__/tracker.test.js.map +0 -1
- package/dist/team/__tests__/allocation-policy.test.d.ts +0 -2
- package/dist/team/__tests__/allocation-policy.test.d.ts.map +0 -1
- package/dist/team/__tests__/allocation-policy.test.js +0 -111
- package/dist/team/__tests__/allocation-policy.test.js.map +0 -1
- package/dist/team/__tests__/api-interop.test.d.ts +0 -2
- package/dist/team/__tests__/api-interop.test.d.ts.map +0 -1
- package/dist/team/__tests__/api-interop.test.js +0 -2262
- package/dist/team/__tests__/api-interop.test.js.map +0 -1
- package/dist/team/__tests__/commit-hygiene.test.d.ts +0 -2
- package/dist/team/__tests__/commit-hygiene.test.d.ts.map +0 -1
- package/dist/team/__tests__/commit-hygiene.test.js +0 -93
- package/dist/team/__tests__/commit-hygiene.test.js.map +0 -1
- package/dist/team/__tests__/cross-rebase-smoke.test.d.ts +0 -2
- package/dist/team/__tests__/cross-rebase-smoke.test.d.ts.map +0 -1
- package/dist/team/__tests__/cross-rebase-smoke.test.js +0 -161
- package/dist/team/__tests__/cross-rebase-smoke.test.js.map +0 -1
- package/dist/team/__tests__/current-task-baseline.test.d.ts +0 -2
- package/dist/team/__tests__/current-task-baseline.test.d.ts.map +0 -1
- package/dist/team/__tests__/current-task-baseline.test.js +0 -87
- package/dist/team/__tests__/current-task-baseline.test.js.map +0 -1
- package/dist/team/__tests__/delegation-policy.test.d.ts +0 -2
- package/dist/team/__tests__/delegation-policy.test.d.ts.map +0 -1
- package/dist/team/__tests__/delegation-policy.test.js +0 -69
- package/dist/team/__tests__/delegation-policy.test.js.map +0 -1
- package/dist/team/__tests__/delivery-e2e-smoke.test.d.ts +0 -2
- package/dist/team/__tests__/delivery-e2e-smoke.test.d.ts.map +0 -1
- package/dist/team/__tests__/delivery-e2e-smoke.test.js +0 -679
- package/dist/team/__tests__/delivery-e2e-smoke.test.js.map +0 -1
- package/dist/team/__tests__/events.test.d.ts +0 -2
- package/dist/team/__tests__/events.test.d.ts.map +0 -1
- package/dist/team/__tests__/events.test.js +0 -313
- package/dist/team/__tests__/events.test.js.map +0 -1
- package/dist/team/__tests__/followup-planner.test.d.ts +0 -2
- package/dist/team/__tests__/followup-planner.test.d.ts.map +0 -1
- package/dist/team/__tests__/followup-planner.test.js +0 -84
- package/dist/team/__tests__/followup-planner.test.js.map +0 -1
- package/dist/team/__tests__/hardening-e2e.test.d.ts +0 -2
- package/dist/team/__tests__/hardening-e2e.test.d.ts.map +0 -1
- package/dist/team/__tests__/hardening-e2e.test.js +0 -98
- package/dist/team/__tests__/hardening-e2e.test.js.map +0 -1
- package/dist/team/__tests__/hook-primary-e2e-contract.test.d.ts +0 -2
- package/dist/team/__tests__/hook-primary-e2e-contract.test.d.ts.map +0 -1
- package/dist/team/__tests__/hook-primary-e2e-contract.test.js +0 -78
- package/dist/team/__tests__/hook-primary-e2e-contract.test.js.map +0 -1
- package/dist/team/__tests__/idle-nudge.test.d.ts +0 -2
- package/dist/team/__tests__/idle-nudge.test.d.ts.map +0 -1
- package/dist/team/__tests__/idle-nudge.test.js +0 -230
- package/dist/team/__tests__/idle-nudge.test.js.map +0 -1
- package/dist/team/__tests__/leader-activity.test.d.ts +0 -2
- package/dist/team/__tests__/leader-activity.test.d.ts.map +0 -1
- package/dist/team/__tests__/leader-activity.test.js +0 -261
- package/dist/team/__tests__/leader-activity.test.js.map +0 -1
- package/dist/team/__tests__/mcp-comm.test.d.ts +0 -2
- package/dist/team/__tests__/mcp-comm.test.d.ts.map +0 -1
- package/dist/team/__tests__/mcp-comm.test.js +0 -289
- package/dist/team/__tests__/mcp-comm.test.js.map +0 -1
- package/dist/team/__tests__/model-contract.test.d.ts +0 -2
- package/dist/team/__tests__/model-contract.test.d.ts.map +0 -1
- package/dist/team/__tests__/model-contract.test.js +0 -171
- package/dist/team/__tests__/model-contract.test.js.map +0 -1
- package/dist/team/__tests__/orchestrator.test.d.ts +0 -2
- package/dist/team/__tests__/orchestrator.test.d.ts.map +0 -1
- package/dist/team/__tests__/orchestrator.test.js +0 -111
- package/dist/team/__tests__/orchestrator.test.js.map +0 -1
- package/dist/team/__tests__/phase-controller.test.d.ts +0 -2
- package/dist/team/__tests__/phase-controller.test.d.ts.map +0 -1
- package/dist/team/__tests__/phase-controller.test.js +0 -50
- package/dist/team/__tests__/phase-controller.test.js.map +0 -1
- package/dist/team/__tests__/rebalance-policy.test.d.ts +0 -2
- package/dist/team/__tests__/rebalance-policy.test.d.ts.map +0 -1
- package/dist/team/__tests__/rebalance-policy.test.js +0 -168
- package/dist/team/__tests__/rebalance-policy.test.js.map +0 -1
- package/dist/team/__tests__/repo-aware-decomposition.test.d.ts +0 -2
- package/dist/team/__tests__/repo-aware-decomposition.test.d.ts.map +0 -1
- package/dist/team/__tests__/repo-aware-decomposition.test.js +0 -136
- package/dist/team/__tests__/repo-aware-decomposition.test.js.map +0 -1
- package/dist/team/__tests__/role-router.test.d.ts +0 -2
- package/dist/team/__tests__/role-router.test.d.ts.map +0 -1
- package/dist/team/__tests__/role-router.test.js +0 -263
- package/dist/team/__tests__/role-router.test.js.map +0 -1
- package/dist/team/__tests__/runtime-cli.test.d.ts +0 -2
- package/dist/team/__tests__/runtime-cli.test.d.ts.map +0 -1
- package/dist/team/__tests__/runtime-cli.test.js +0 -304
- package/dist/team/__tests__/runtime-cli.test.js.map +0 -1
- package/dist/team/__tests__/runtime.test.d.ts +0 -2
- package/dist/team/__tests__/runtime.test.d.ts.map +0 -1
- package/dist/team/__tests__/runtime.test.js +0 -5734
- package/dist/team/__tests__/runtime.test.js.map +0 -1
- package/dist/team/__tests__/scaling.test.d.ts +0 -2
- package/dist/team/__tests__/scaling.test.d.ts.map +0 -1
- package/dist/team/__tests__/scaling.test.js +0 -1005
- package/dist/team/__tests__/scaling.test.js.map +0 -1
- package/dist/team/__tests__/shutdown-fallback.test.d.ts +0 -2
- package/dist/team/__tests__/shutdown-fallback.test.d.ts.map +0 -1
- package/dist/team/__tests__/shutdown-fallback.test.js +0 -125
- package/dist/team/__tests__/shutdown-fallback.test.js.map +0 -1
- package/dist/team/__tests__/state-root.test.d.ts +0 -2
- package/dist/team/__tests__/state-root.test.d.ts.map +0 -1
- package/dist/team/__tests__/state-root.test.js +0 -195
- package/dist/team/__tests__/state-root.test.js.map +0 -1
- package/dist/team/__tests__/state.test.d.ts +0 -2
- package/dist/team/__tests__/state.test.d.ts.map +0 -1
- package/dist/team/__tests__/state.test.js +0 -1859
- package/dist/team/__tests__/state.test.js.map +0 -1
- package/dist/team/__tests__/team-identity.test.d.ts +0 -2
- package/dist/team/__tests__/team-identity.test.d.ts.map +0 -1
- package/dist/team/__tests__/team-identity.test.js +0 -166
- package/dist/team/__tests__/team-identity.test.js.map +0 -1
- package/dist/team/__tests__/team-ops-contract.test.d.ts +0 -2
- package/dist/team/__tests__/team-ops-contract.test.d.ts.map +0 -1
- package/dist/team/__tests__/team-ops-contract.test.js +0 -96
- package/dist/team/__tests__/team-ops-contract.test.js.map +0 -1
- package/dist/team/__tests__/tmux-claude-workers-demo.test.d.ts +0 -2
- package/dist/team/__tests__/tmux-claude-workers-demo.test.d.ts.map +0 -1
- package/dist/team/__tests__/tmux-claude-workers-demo.test.js +0 -191
- package/dist/team/__tests__/tmux-claude-workers-demo.test.js.map +0 -1
- package/dist/team/__tests__/tmux-session.test.d.ts +0 -2
- package/dist/team/__tests__/tmux-session.test.d.ts.map +0 -1
- package/dist/team/__tests__/tmux-session.test.js +0 -3785
- package/dist/team/__tests__/tmux-session.test.js.map +0 -1
- package/dist/team/__tests__/tmux-test-fixture.d.ts +0 -20
- package/dist/team/__tests__/tmux-test-fixture.d.ts.map +0 -1
- package/dist/team/__tests__/tmux-test-fixture.js +0 -152
- package/dist/team/__tests__/tmux-test-fixture.js.map +0 -1
- package/dist/team/__tests__/tmux-test-fixture.test.d.ts +0 -2
- package/dist/team/__tests__/tmux-test-fixture.test.d.ts.map +0 -1
- package/dist/team/__tests__/tmux-test-fixture.test.js +0 -113
- package/dist/team/__tests__/tmux-test-fixture.test.js.map +0 -1
- package/dist/team/__tests__/worker-bootstrap.test.d.ts +0 -2
- package/dist/team/__tests__/worker-bootstrap.test.d.ts.map +0 -1
- package/dist/team/__tests__/worker-bootstrap.test.js +0 -685
- package/dist/team/__tests__/worker-bootstrap.test.js.map +0 -1
- package/dist/team/__tests__/worker-runtime-identity.test.d.ts +0 -2
- package/dist/team/__tests__/worker-runtime-identity.test.d.ts.map +0 -1
- package/dist/team/__tests__/worker-runtime-identity.test.js +0 -250
- package/dist/team/__tests__/worker-runtime-identity.test.js.map +0 -1
- package/dist/team/__tests__/worktree.test.d.ts +0 -2
- package/dist/team/__tests__/worktree.test.d.ts.map +0 -1
- package/dist/team/__tests__/worktree.test.js +0 -317
- package/dist/team/__tests__/worktree.test.js.map +0 -1
- package/dist/utils/__tests__/agents-md.test.d.ts +0 -2
- package/dist/utils/__tests__/agents-md.test.d.ts.map +0 -1
- package/dist/utils/__tests__/agents-md.test.js +0 -52
- package/dist/utils/__tests__/agents-md.test.js.map +0 -1
- package/dist/utils/__tests__/agents-model-table.test.d.ts +0 -2
- package/dist/utils/__tests__/agents-model-table.test.d.ts.map +0 -1
- package/dist/utils/__tests__/agents-model-table.test.js +0 -104
- package/dist/utils/__tests__/agents-model-table.test.js.map +0 -1
- package/dist/utils/__tests__/dep-versions.test.d.ts +0 -2
- package/dist/utils/__tests__/dep-versions.test.d.ts.map +0 -1
- package/dist/utils/__tests__/dep-versions.test.js +0 -46
- package/dist/utils/__tests__/dep-versions.test.js.map +0 -1
- package/dist/utils/__tests__/package.test.d.ts +0 -2
- package/dist/utils/__tests__/package.test.d.ts.map +0 -1
- package/dist/utils/__tests__/package.test.js +0 -21
- package/dist/utils/__tests__/package.test.js.map +0 -1
- package/dist/utils/__tests__/paths.test.d.ts +0 -2
- package/dist/utils/__tests__/paths.test.d.ts.map +0 -1
- package/dist/utils/__tests__/paths.test.js +0 -541
- package/dist/utils/__tests__/paths.test.js.map +0 -1
- package/dist/utils/__tests__/platform-command.test.d.ts +0 -2
- package/dist/utils/__tests__/platform-command.test.d.ts.map +0 -1
- package/dist/utils/__tests__/platform-command.test.js +0 -410
- package/dist/utils/__tests__/platform-command.test.js.map +0 -1
- package/dist/utils/__tests__/repo-deps.test.d.ts +0 -2
- package/dist/utils/__tests__/repo-deps.test.d.ts.map +0 -1
- package/dist/utils/__tests__/repo-deps.test.js +0 -71
- package/dist/utils/__tests__/repo-deps.test.js.map +0 -1
- package/dist/verification/__tests__/ci-rust-gates.test.d.ts +0 -2
- package/dist/verification/__tests__/ci-rust-gates.test.d.ts.map +0 -1
- package/dist/verification/__tests__/ci-rust-gates.test.js +0 -89
- package/dist/verification/__tests__/ci-rust-gates.test.js.map +0 -1
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.d.ts +0 -2
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.d.ts.map +0 -1
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.js +0 -54
- package/dist/verification/__tests__/dev-merge-issue-close-workflow.test.js.map +0 -1
- package/dist/verification/__tests__/explore-harness-release-workflow.test.d.ts +0 -2
- package/dist/verification/__tests__/explore-harness-release-workflow.test.d.ts.map +0 -1
- package/dist/verification/__tests__/explore-harness-release-workflow.test.js +0 -73
- package/dist/verification/__tests__/explore-harness-release-workflow.test.js.map +0 -1
- package/dist/verification/__tests__/native-release-manifest.test.d.ts +0 -2
- package/dist/verification/__tests__/native-release-manifest.test.d.ts.map +0 -1
- package/dist/verification/__tests__/native-release-manifest.test.js +0 -80
- package/dist/verification/__tests__/native-release-manifest.test.js.map +0 -1
- package/dist/verification/__tests__/pr-check-workflow.test.d.ts +0 -2
- package/dist/verification/__tests__/pr-check-workflow.test.d.ts.map +0 -1
- package/dist/verification/__tests__/pr-check-workflow.test.js +0 -27
- package/dist/verification/__tests__/pr-check-workflow.test.js.map +0 -1
- package/dist/verification/__tests__/ralph-persistence-gate.test.d.ts +0 -2
- package/dist/verification/__tests__/ralph-persistence-gate.test.d.ts.map +0 -1
- package/dist/verification/__tests__/ralph-persistence-gate.test.js +0 -55
- package/dist/verification/__tests__/ralph-persistence-gate.test.js.map +0 -1
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.d.ts +0 -2
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.d.ts.map +0 -1
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.js +0 -32
- package/dist/verification/__tests__/rust-runtime-thin-adapter-gate.test.js.map +0 -1
- package/dist/verification/__tests__/verifier.test.d.ts +0 -2
- package/dist/verification/__tests__/verifier.test.d.ts.map +0 -1
- package/dist/verification/__tests__/verifier.test.js +0 -113
- package/dist/verification/__tests__/verifier.test.js.map +0 -1
- package/dist/visual/__tests__/verdict.test.d.ts +0 -2
- package/dist/visual/__tests__/verdict.test.d.ts.map +0 -1
- package/dist/visual/__tests__/verdict.test.js +0 -81
- package/dist/visual/__tests__/verdict.test.js.map +0 -1
- package/dist/wiki/__tests__/cjk-tokenize.test.d.ts +0 -12
- package/dist/wiki/__tests__/cjk-tokenize.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/cjk-tokenize.test.js +0 -139
- package/dist/wiki/__tests__/cjk-tokenize.test.js.map +0 -1
- package/dist/wiki/__tests__/crlf-parse.test.d.ts +0 -2
- package/dist/wiki/__tests__/crlf-parse.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/crlf-parse.test.js +0 -24
- package/dist/wiki/__tests__/crlf-parse.test.js.map +0 -1
- package/dist/wiki/__tests__/escape-newline.test.d.ts +0 -2
- package/dist/wiki/__tests__/escape-newline.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/escape-newline.test.js +0 -45
- package/dist/wiki/__tests__/escape-newline.test.js.map +0 -1
- package/dist/wiki/__tests__/ingest.test.d.ts +0 -5
- package/dist/wiki/__tests__/ingest.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/ingest.test.js +0 -181
- package/dist/wiki/__tests__/ingest.test.js.map +0 -1
- package/dist/wiki/__tests__/lint.test.d.ts +0 -5
- package/dist/wiki/__tests__/lint.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/lint.test.js +0 -163
- package/dist/wiki/__tests__/lint.test.js.map +0 -1
- package/dist/wiki/__tests__/query.test.d.ts +0 -5
- package/dist/wiki/__tests__/query.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/query.test.js +0 -141
- package/dist/wiki/__tests__/query.test.js.map +0 -1
- package/dist/wiki/__tests__/reserved-file-guard.test.d.ts +0 -2
- package/dist/wiki/__tests__/reserved-file-guard.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/reserved-file-guard.test.js +0 -44
- package/dist/wiki/__tests__/reserved-file-guard.test.js.map +0 -1
- package/dist/wiki/__tests__/session-hooks.test.d.ts +0 -5
- package/dist/wiki/__tests__/session-hooks.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/session-hooks.test.js +0 -36
- package/dist/wiki/__tests__/session-hooks.test.js.map +0 -1
- package/dist/wiki/__tests__/slug-nonascii.test.d.ts +0 -2
- package/dist/wiki/__tests__/slug-nonascii.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/slug-nonascii.test.js +0 -30
- package/dist/wiki/__tests__/slug-nonascii.test.js.map +0 -1
- package/dist/wiki/__tests__/storage.test.d.ts +0 -5
- package/dist/wiki/__tests__/storage.test.d.ts.map +0 -1
- package/dist/wiki/__tests__/storage.test.js +0 -278
- package/dist/wiki/__tests__/storage.test.js.map +0 -1
- package/dist/wiki/__tests__/test-helpers.d.ts +0 -31
- package/dist/wiki/__tests__/test-helpers.d.ts.map +0 -1
- package/dist/wiki/__tests__/test-helpers.js +0 -108
- package/dist/wiki/__tests__/test-helpers.js.map +0 -1
- package/docs/contracts/ralph-cancel-contract.md +0 -23
- package/docs/contracts/ralph-state-contract.md +0 -95
- package/docs/issues/team-ralph-followup-team.md +0 -38
- package/docs/qa/ralph-persistence-gate.md +0 -59
- package/docs/reference/ralph-parity-matrix.md +0 -25
- package/docs/reference/ralph-upstream-baseline.md +0 -34
- package/plugins/roblox-ai-os-creator-skills/skills/ralph/SKILL.md +0 -269
- package/plugins/roblox-ai-os-creator-skills/skills/ralplan/SKILL.md +0 -162
- package/prompts/api-reviewer.md +0 -113
- package/prompts/information-architect.md +0 -226
- package/prompts/performance-reviewer.md +0 -109
- package/prompts/product-analyst.md +0 -304
- package/prompts/product-manager.md +0 -245
- package/prompts/qa-tester.md +0 -124
- package/prompts/quality-reviewer.md +0 -123
- package/prompts/quality-strategist.md +0 -274
- package/prompts/style-reviewer.md +0 -102
- package/prompts/ux-researcher.md +0 -327
- package/skills/frontend-ui-ux/SKILL.md +0 -34
- package/skills/ralph/SKILL.md +0 -269
- package/skills/ralplan/SKILL.md +0 -162
- package/src/scripts/eval/eval-adaptive-sort-optimization.py +0 -24
- package/src/scripts/eval/eval-candidate-handoff.ts +0 -8
- package/src/scripts/eval/eval-cli-discoverability.ts +0 -40
- package/src/scripts/eval/eval-fresh-run-tagging.ts +0 -8
- package/src/scripts/eval/eval-help-consistency.ts +0 -11
- package/src/scripts/eval/eval-in-action-cat-shellout-demo.ts +0 -31
- package/src/scripts/eval/eval-ml-kaggle-model-optimization.py +0 -29
- package/src/scripts/eval/eval-noisy-bayesopt-highdim.py +0 -44
- package/src/scripts/eval/eval-noisy-latent-subspace-discovery.py +0 -44
- package/src/scripts/eval/eval-parity-smoke.ts +0 -20
- package/src/scripts/eval/eval-parity-sweep.ts +0 -26
- package/src/scripts/eval/eval-resume-dirty-guard.ts +0 -8
- package/src/scripts/eval/eval-security-path-traversal.ts +0 -38
- package/src/scripts/run-autoresearch-showcase.sh +0 -75
- /package/docs/{migration-mainline-post-v0.4.4.md → archive/migration-mainline-post-v0.4.4.md} +0 -0
- /package/docs/{qa-plan-0.4.2.md → archive/qa-plan-0.4.2.md} +0 -0
- /package/docs/{qa-report-0.4.2.md → archive/qa-report-0.4.2.md} +0 -0
|
@@ -1,1005 +0,0 @@
|
|
|
1
|
-
import { describe, it } from 'node:test';
|
|
2
|
-
import assert from 'node:assert/strict';
|
|
3
|
-
import { execFileSync } from 'node:child_process';
|
|
4
|
-
import { mkdtemp, rm, readFile, writeFile, mkdir, chmod } from 'fs/promises';
|
|
5
|
-
import { join } from 'path';
|
|
6
|
-
import { tmpdir } from 'os';
|
|
7
|
-
import { existsSync, readFileSync } from 'fs';
|
|
8
|
-
import { initTeamState, createTask, readTask, readTeamConfig, saveTeamConfig, readWorkerStatus, writeWorkerStatus, withScalingLock, DEFAULT_MAX_WORKERS, } from '../state.js';
|
|
9
|
-
import { isScalingEnabled, scaleUp, scaleDown } from '../scaling.js';
|
|
10
|
-
delete process.env.RCS_TEAM_STATE_ROOT;
|
|
11
|
-
async function initCommittedGitRepo(cwd) {
|
|
12
|
-
execFileSync('git', ['init'], { cwd, stdio: 'pipe' });
|
|
13
|
-
execFileSync('git', ['config', 'user.name', 'RCS Test'], { cwd, stdio: 'pipe' });
|
|
14
|
-
execFileSync('git', ['config', 'user.email', 'rcs@example.com'], { cwd, stdio: 'pipe' });
|
|
15
|
-
execFileSync('git', ['add', '.'], { cwd, stdio: 'pipe' });
|
|
16
|
-
execFileSync('git', ['commit', '-m', 'init'], { cwd, stdio: 'pipe' });
|
|
17
|
-
}
|
|
18
|
-
async function initRepo() {
|
|
19
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-worktree-repo-'));
|
|
20
|
-
execFileSync('git', ['init'], { cwd, stdio: 'ignore' });
|
|
21
|
-
execFileSync('git', ['config', 'user.email', 'test@example.com'], { cwd, stdio: 'ignore' });
|
|
22
|
-
execFileSync('git', ['config', 'user.name', 'Test User'], { cwd, stdio: 'ignore' });
|
|
23
|
-
await writeFile(join(cwd, 'README.md'), 'hello\n', 'utf-8');
|
|
24
|
-
execFileSync('git', ['add', 'README.md'], { cwd, stdio: 'ignore' });
|
|
25
|
-
execFileSync('git', ['commit', '-m', 'init'], { cwd, stdio: 'ignore' });
|
|
26
|
-
return cwd;
|
|
27
|
-
}
|
|
28
|
-
// ── isScalingEnabled ──────────────────────────────────────────────────────────
|
|
29
|
-
describe('isScalingEnabled', () => {
|
|
30
|
-
it('returns false when env var is not set', () => {
|
|
31
|
-
assert.equal(isScalingEnabled({}), false);
|
|
32
|
-
});
|
|
33
|
-
it('returns false when env var is empty string', () => {
|
|
34
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: '' }), false);
|
|
35
|
-
});
|
|
36
|
-
it('returns false when env var is "0"', () => {
|
|
37
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: '0' }), false);
|
|
38
|
-
});
|
|
39
|
-
it('returns false when env var is "false"', () => {
|
|
40
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: 'false' }), false);
|
|
41
|
-
});
|
|
42
|
-
it('returns false when env var is "no"', () => {
|
|
43
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: 'no' }), false);
|
|
44
|
-
});
|
|
45
|
-
it('returns true when env var is "1"', () => {
|
|
46
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: '1' }), true);
|
|
47
|
-
});
|
|
48
|
-
it('returns true when env var is "true"', () => {
|
|
49
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: 'true' }), true);
|
|
50
|
-
});
|
|
51
|
-
it('returns true when env var is "yes"', () => {
|
|
52
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: 'yes' }), true);
|
|
53
|
-
});
|
|
54
|
-
it('returns true when env var is "on"', () => {
|
|
55
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: 'on' }), true);
|
|
56
|
-
});
|
|
57
|
-
it('returns true when env var is "enabled"', () => {
|
|
58
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: 'enabled' }), true);
|
|
59
|
-
});
|
|
60
|
-
it('returns true case-insensitively', () => {
|
|
61
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: 'TRUE' }), true);
|
|
62
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: 'Yes' }), true);
|
|
63
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: 'ON' }), true);
|
|
64
|
-
});
|
|
65
|
-
it('returns true with leading/trailing whitespace', () => {
|
|
66
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: ' 1 ' }), true);
|
|
67
|
-
assert.equal(isScalingEnabled({ RCS_TEAM_SCALING_ENABLED: ' true ' }), true);
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
// ── WorkerStatus draining state ───────────────────────────────────────────────
|
|
71
|
-
describe('WorkerStatus draining state', () => {
|
|
72
|
-
it('writeWorkerStatus writes draining status and readWorkerStatus reads it back', async () => {
|
|
73
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-drain-'));
|
|
74
|
-
try {
|
|
75
|
-
await initTeamState('drain-test', 'task', 'executor', 2, cwd);
|
|
76
|
-
const drainingStatus = {
|
|
77
|
-
state: 'draining',
|
|
78
|
-
reason: 'scale_down requested',
|
|
79
|
-
updated_at: new Date().toISOString(),
|
|
80
|
-
};
|
|
81
|
-
await writeWorkerStatus('drain-test', 'worker-1', drainingStatus, cwd);
|
|
82
|
-
const status = await readWorkerStatus('drain-test', 'worker-1', cwd);
|
|
83
|
-
assert.equal(status.state, 'draining');
|
|
84
|
-
assert.equal(status.reason, 'scale_down requested');
|
|
85
|
-
}
|
|
86
|
-
finally {
|
|
87
|
-
await rm(cwd, { recursive: true, force: true });
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
it('readWorkerStatus returns unknown for non-existent worker', async () => {
|
|
91
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-nw-'));
|
|
92
|
-
try {
|
|
93
|
-
await initTeamState('nw-test', 'task', 'executor', 1, cwd);
|
|
94
|
-
const status = await readWorkerStatus('nw-test', 'worker-99', cwd);
|
|
95
|
-
assert.equal(status.state, 'unknown');
|
|
96
|
-
}
|
|
97
|
-
finally {
|
|
98
|
-
await rm(cwd, { recursive: true, force: true });
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
// ── Monotonic worker index counter ────────────────────────────────────────────
|
|
103
|
-
describe('Monotonic worker index counter', () => {
|
|
104
|
-
it('initTeamState sets next_worker_index to workerCount + 1', async () => {
|
|
105
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-idx-'));
|
|
106
|
-
try {
|
|
107
|
-
const cfg = await initTeamState('idx-test', 'task', 'executor', 3, cwd);
|
|
108
|
-
assert.equal(cfg.next_worker_index, 4);
|
|
109
|
-
// Verify on disk
|
|
110
|
-
const diskCfg = JSON.parse(readFileSync(join(cwd, '.rcs', 'state', 'team', 'idx-test', 'config.json'), 'utf8'));
|
|
111
|
-
assert.equal(diskCfg.next_worker_index, 4);
|
|
112
|
-
}
|
|
113
|
-
finally {
|
|
114
|
-
await rm(cwd, { recursive: true, force: true });
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
it('next_worker_index is present in manifest.v2.json', async () => {
|
|
118
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-manif-'));
|
|
119
|
-
try {
|
|
120
|
-
await initTeamState('manif-test', 'task', 'executor', 2, cwd);
|
|
121
|
-
const manifest = JSON.parse(readFileSync(join(cwd, '.rcs', 'state', 'team', 'manif-test', 'manifest.v2.json'), 'utf8'));
|
|
122
|
-
assert.equal(manifest.next_worker_index, 3);
|
|
123
|
-
}
|
|
124
|
-
finally {
|
|
125
|
-
await rm(cwd, { recursive: true, force: true });
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
it('readTeamConfig preserves next_worker_index', async () => {
|
|
129
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-read-'));
|
|
130
|
-
try {
|
|
131
|
-
await initTeamState('read-test', 'task', 'executor', 5, cwd);
|
|
132
|
-
const config = await readTeamConfig('read-test', cwd);
|
|
133
|
-
assert.ok(config);
|
|
134
|
-
assert.equal(config.next_worker_index, 6);
|
|
135
|
-
}
|
|
136
|
-
finally {
|
|
137
|
-
await rm(cwd, { recursive: true, force: true });
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
// ── File-based scaling lock ───────────────────────────────────────────────────
|
|
142
|
-
describe('withScalingLock', () => {
|
|
143
|
-
it('acquires and releases lock for successful operations', async () => {
|
|
144
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-lock-'));
|
|
145
|
-
try {
|
|
146
|
-
await initTeamState('lock-test', 'task', 'executor', 1, cwd);
|
|
147
|
-
const lockDir = join(cwd, '.rcs', 'state', 'team', 'lock-test', '.lock.scaling');
|
|
148
|
-
const result = await withScalingLock('lock-test', cwd, async () => {
|
|
149
|
-
// Lock should exist during execution
|
|
150
|
-
assert.equal(existsSync(lockDir), true);
|
|
151
|
-
return 42;
|
|
152
|
-
});
|
|
153
|
-
assert.equal(result, 42);
|
|
154
|
-
// Lock should be released after execution
|
|
155
|
-
assert.equal(existsSync(lockDir), false);
|
|
156
|
-
}
|
|
157
|
-
finally {
|
|
158
|
-
await rm(cwd, { recursive: true, force: true });
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
it('releases lock even when function throws', async () => {
|
|
162
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-lock-err-'));
|
|
163
|
-
try {
|
|
164
|
-
await initTeamState('lock-err', 'task', 'executor', 1, cwd);
|
|
165
|
-
const lockDir = join(cwd, '.rcs', 'state', 'team', 'lock-err', '.lock.scaling');
|
|
166
|
-
await assert.rejects(withScalingLock('lock-err', cwd, async () => {
|
|
167
|
-
throw new Error('test error');
|
|
168
|
-
}), { message: 'test error' });
|
|
169
|
-
// Lock should be released after error
|
|
170
|
-
assert.equal(existsSync(lockDir), false);
|
|
171
|
-
}
|
|
172
|
-
finally {
|
|
173
|
-
await rm(cwd, { recursive: true, force: true });
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
it('serializes concurrent operations', async () => {
|
|
177
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-lock-con-'));
|
|
178
|
-
try {
|
|
179
|
-
await initTeamState('lock-con', 'task', 'executor', 1, cwd);
|
|
180
|
-
const order = [];
|
|
181
|
-
// Launch two operations concurrently - second should wait for first
|
|
182
|
-
const op1 = withScalingLock('lock-con', cwd, async () => {
|
|
183
|
-
order.push(1);
|
|
184
|
-
await new Promise(r => setTimeout(r, 100));
|
|
185
|
-
order.push(2);
|
|
186
|
-
return 'first';
|
|
187
|
-
});
|
|
188
|
-
// Small delay to ensure op1 acquires lock first
|
|
189
|
-
await new Promise(r => setTimeout(r, 10));
|
|
190
|
-
const op2 = withScalingLock('lock-con', cwd, async () => {
|
|
191
|
-
order.push(3);
|
|
192
|
-
return 'second';
|
|
193
|
-
});
|
|
194
|
-
const [r1, r2] = await Promise.all([op1, op2]);
|
|
195
|
-
assert.equal(r1, 'first');
|
|
196
|
-
assert.equal(r2, 'second');
|
|
197
|
-
// First operation should complete (1, 2) before second starts (3)
|
|
198
|
-
assert.deepEqual(order, [1, 2, 3]);
|
|
199
|
-
}
|
|
200
|
-
finally {
|
|
201
|
-
await rm(cwd, { recursive: true, force: true });
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
});
|
|
205
|
-
// ── scaleUp / scaleDown error cases ──────────────────────────────────────────
|
|
206
|
-
describe('scaleUp', () => {
|
|
207
|
-
it('rejects when scaling is disabled', async () => {
|
|
208
|
-
await assert.rejects(scaleUp('test', 1, 'executor', [], '/tmp', {}), /Dynamic scaling is disabled/);
|
|
209
|
-
});
|
|
210
|
-
it('returns error for invalid count', async () => {
|
|
211
|
-
const result = await scaleUp('test', 0, 'executor', [], '/tmp', { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
212
|
-
assert.equal(result.ok, false);
|
|
213
|
-
if (!result.ok) {
|
|
214
|
-
assert.match(result.error, /count must be a positive integer/);
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
it('returns error for negative count', async () => {
|
|
218
|
-
const result = await scaleUp('test', -1, 'executor', [], '/tmp', { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
219
|
-
assert.equal(result.ok, false);
|
|
220
|
-
if (!result.ok) {
|
|
221
|
-
assert.match(result.error, /count must be a positive integer/);
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
it('returns error when tmux is not available', async () => {
|
|
225
|
-
// Temporarily remove PATH so tmux binary is not found
|
|
226
|
-
const prevPath = process.env.PATH;
|
|
227
|
-
process.env.PATH = '';
|
|
228
|
-
try {
|
|
229
|
-
const result = await scaleUp('test', 1, 'executor', [], '/tmp', { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
230
|
-
assert.equal(result.ok, false);
|
|
231
|
-
if (!result.ok) {
|
|
232
|
-
assert.match(result.error, /tmux is not available/);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
finally {
|
|
236
|
-
if (typeof prevPath === 'string')
|
|
237
|
-
process.env.PATH = prevPath;
|
|
238
|
-
else
|
|
239
|
-
delete process.env.PATH;
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
it('persists scaled-up task roles in canonical task state and inbox ids', async () => {
|
|
243
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-up-role-'));
|
|
244
|
-
const fakeBinDir = await mkdtemp(join(tmpdir(), 'rcs-scale-up-role-bin-'));
|
|
245
|
-
const tmuxLogPath = join(fakeBinDir, 'tmux.log');
|
|
246
|
-
const tmuxStubPath = join(fakeBinDir, 'tmux');
|
|
247
|
-
const previousPath = process.env.PATH;
|
|
248
|
-
try {
|
|
249
|
-
await writeFile(tmuxStubPath, [
|
|
250
|
-
'#!/bin/sh',
|
|
251
|
-
'set -eu',
|
|
252
|
-
`printf '\%s\n' "$*" >> "${tmuxLogPath}"`,
|
|
253
|
-
'case "${1:-}" in',
|
|
254
|
-
' -V)',
|
|
255
|
-
' echo "tmux 3.2a"',
|
|
256
|
-
' ;;',
|
|
257
|
-
' split-window)',
|
|
258
|
-
' echo "%31"',
|
|
259
|
-
' ;;',
|
|
260
|
-
' list-panes)',
|
|
261
|
-
' echo "42424"',
|
|
262
|
-
' ;;',
|
|
263
|
-
' send-keys)',
|
|
264
|
-
' ;;',
|
|
265
|
-
' capture-pane)',
|
|
266
|
-
' echo ""',
|
|
267
|
-
' ;;',
|
|
268
|
-
'esac',
|
|
269
|
-
'exit 0',
|
|
270
|
-
'',
|
|
271
|
-
].join('\n'));
|
|
272
|
-
await chmod(tmuxStubPath, 0o755);
|
|
273
|
-
await writeFile(tmuxLogPath, '');
|
|
274
|
-
process.env.PATH = `${fakeBinDir}:${previousPath ?? ''}`;
|
|
275
|
-
await mkdir(join(cwd, '.codex', 'prompts'), { recursive: true });
|
|
276
|
-
await writeFile(join(cwd, '.codex', 'prompts', 'writer.md'), '<identity>You are Writer.</identity>');
|
|
277
|
-
await mkdir(join(cwd, '.rcs', 'state', 'team', 'scale-up-role'), { recursive: true });
|
|
278
|
-
await writeFile(join(cwd, '.rcs', 'state', 'team', 'scale-up-role', 'worker-agents.md'), '# Base worker instructions\n');
|
|
279
|
-
await initTeamState('scale-up-role', 'task', 'executor', 1, cwd);
|
|
280
|
-
await createTask('scale-up-role', {
|
|
281
|
-
subject: 'existing task',
|
|
282
|
-
description: 'already persisted',
|
|
283
|
-
status: 'pending',
|
|
284
|
-
owner: 'worker-1',
|
|
285
|
-
}, cwd);
|
|
286
|
-
const config = await readTeamConfig('scale-up-role', cwd);
|
|
287
|
-
assert.ok(config);
|
|
288
|
-
if (!config)
|
|
289
|
-
return;
|
|
290
|
-
config.tmux_session = 'rcs-team-scale-up-role';
|
|
291
|
-
config.leader_pane_id = '%11';
|
|
292
|
-
config.workers[0].pane_id = '%21';
|
|
293
|
-
await saveTeamConfig(config, cwd);
|
|
294
|
-
const manifestPath = join(cwd, '.rcs', 'state', 'team', 'scale-up-role', 'manifest.v2.json');
|
|
295
|
-
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
296
|
-
manifest.policy = {
|
|
297
|
-
...(manifest.policy ?? {}),
|
|
298
|
-
dispatch_mode: 'transport_direct',
|
|
299
|
-
};
|
|
300
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
301
|
-
const result = await scaleUp('scale-up-role', 1, 'executor', [{ subject: 'document routing report only', description: 'document routing report only', owner: 'worker-2', role: 'writer' }], cwd, { RCS_TEAM_SCALING_ENABLED: '1', RCS_TEAM_SKIP_READY_WAIT: '1' });
|
|
302
|
-
assert.equal(result.ok, true);
|
|
303
|
-
if (!result.ok)
|
|
304
|
-
return;
|
|
305
|
-
const createdTask = await readTask('scale-up-role', '2', cwd);
|
|
306
|
-
assert.equal(createdTask?.role, 'writer');
|
|
307
|
-
assert.equal(createdTask?.owner, 'worker-2');
|
|
308
|
-
const workerIdentity = JSON.parse(await readFile(join(cwd, '.rcs', 'state', 'team', 'scale-up-role', 'workers', 'worker-2', 'identity.json'), 'utf-8'));
|
|
309
|
-
assert.equal(workerIdentity.role, 'writer');
|
|
310
|
-
const inbox = await readFile(join(cwd, '.rcs', 'state', 'team', 'scale-up-role', 'workers', 'worker-2', 'inbox.md'), 'utf-8');
|
|
311
|
-
assert.match(inbox, /Task 2/);
|
|
312
|
-
assert.match(inbox, /Role: writer/);
|
|
313
|
-
}
|
|
314
|
-
finally {
|
|
315
|
-
if (typeof previousPath === 'string')
|
|
316
|
-
process.env.PATH = previousPath;
|
|
317
|
-
else
|
|
318
|
-
delete process.env.PATH;
|
|
319
|
-
await rm(cwd, { recursive: true, force: true });
|
|
320
|
-
await rm(fakeBinDir, { recursive: true, force: true });
|
|
321
|
-
}
|
|
322
|
-
});
|
|
323
|
-
it('removes generated worktree-root AGENTS when scale-up rolls back', async () => {
|
|
324
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-up-rollback-worktree-'));
|
|
325
|
-
const fakeBinDir = await mkdtemp(join(tmpdir(), 'rcs-scale-up-rollback-worktree-bin-'));
|
|
326
|
-
const tmuxStubPath = join(fakeBinDir, 'tmux');
|
|
327
|
-
const previousPath = process.env.PATH;
|
|
328
|
-
try {
|
|
329
|
-
await writeFile(tmuxStubPath, `#!/bin/sh
|
|
330
|
-
set -eu
|
|
331
|
-
case "\${1:-}" in
|
|
332
|
-
-V)
|
|
333
|
-
echo "tmux 3.2a"
|
|
334
|
-
;;
|
|
335
|
-
split-window)
|
|
336
|
-
echo "%31"
|
|
337
|
-
;;
|
|
338
|
-
list-panes)
|
|
339
|
-
echo "42424"
|
|
340
|
-
;;
|
|
341
|
-
send-keys)
|
|
342
|
-
exit 1
|
|
343
|
-
;;
|
|
344
|
-
capture-pane)
|
|
345
|
-
echo ""
|
|
346
|
-
;;
|
|
347
|
-
esac
|
|
348
|
-
exit 0
|
|
349
|
-
`);
|
|
350
|
-
await chmod(tmuxStubPath, 0o755);
|
|
351
|
-
process.env.PATH = `${fakeBinDir}:${previousPath ?? ''}`;
|
|
352
|
-
await mkdir(join(cwd, '.codex', 'prompts'), { recursive: true });
|
|
353
|
-
await writeFile(join(cwd, '.codex', 'prompts', 'writer.md'), '<identity>You are Writer.</identity>');
|
|
354
|
-
await writeFile(join(cwd, 'AGENTS.md'), '# Root project instructions\n');
|
|
355
|
-
await initCommittedGitRepo(cwd);
|
|
356
|
-
await initTeamState('rollback-worktree', 'task', 'executor', 1, cwd, undefined, process.env, {
|
|
357
|
-
workspace_mode: 'worktree',
|
|
358
|
-
leader_cwd: cwd,
|
|
359
|
-
team_state_root: join(cwd, '.rcs', 'state'),
|
|
360
|
-
});
|
|
361
|
-
const config = await readTeamConfig('rollback-worktree', cwd);
|
|
362
|
-
assert.ok(config);
|
|
363
|
-
if (!config)
|
|
364
|
-
return;
|
|
365
|
-
config.tmux_session = 'rcs-team-rollback-worktree';
|
|
366
|
-
config.leader_pane_id = '%11';
|
|
367
|
-
config.workers[0].pane_id = '%21';
|
|
368
|
-
await saveTeamConfig(config, cwd);
|
|
369
|
-
const manifestPath = join(cwd, '.rcs', 'state', 'team', 'rollback-worktree', 'manifest.v2.json');
|
|
370
|
-
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
371
|
-
manifest.policy = {
|
|
372
|
-
...(manifest.policy ?? {}),
|
|
373
|
-
dispatch_mode: 'transport_direct',
|
|
374
|
-
};
|
|
375
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
376
|
-
const result = await scaleUp('rollback-worktree', 1, 'executor', [{ subject: 'write docs', description: 'write docs', owner: 'worker-2', role: 'writer' }], cwd, { RCS_TEAM_SCALING_ENABLED: '1', RCS_TEAM_SKIP_READY_WAIT: '1' });
|
|
377
|
-
assert.equal(result.ok, false);
|
|
378
|
-
if (result.ok)
|
|
379
|
-
return;
|
|
380
|
-
assert.match(result.error, /scale_up_dispatch_failed:worker-2/);
|
|
381
|
-
const workerRootAgents = join(cwd, '.rcs', 'team', 'rollback-worktree', 'worktrees', 'worker-2', 'AGENTS.md');
|
|
382
|
-
assert.equal(await readFile(workerRootAgents, 'utf-8'), '# Root project instructions\n');
|
|
383
|
-
const backupPath = join(cwd, '.git', 'worktrees', 'worker-2', 'rcs', 'root-agents-backup.json');
|
|
384
|
-
assert.equal(existsSync(backupPath), false);
|
|
385
|
-
}
|
|
386
|
-
finally {
|
|
387
|
-
if (typeof previousPath === 'string')
|
|
388
|
-
process.env.PATH = previousPath;
|
|
389
|
-
else
|
|
390
|
-
delete process.env.PATH;
|
|
391
|
-
await rm(cwd, { recursive: true, force: true });
|
|
392
|
-
await rm(fakeBinDir, { recursive: true, force: true });
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
it('uses canonical root AGENTS bootstrap for scaled worktree workers', async () => {
|
|
396
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-up-canonical-root-'));
|
|
397
|
-
const fakeBinDir = await mkdtemp(join(tmpdir(), 'rcs-scale-up-canonical-root-bin-'));
|
|
398
|
-
const tmuxStubPath = join(fakeBinDir, 'tmux');
|
|
399
|
-
const previousPath = process.env.PATH;
|
|
400
|
-
try {
|
|
401
|
-
await writeFile(tmuxStubPath, `#!/bin/sh
|
|
402
|
-
set -eu
|
|
403
|
-
case "\${1:-}" in
|
|
404
|
-
-V)
|
|
405
|
-
echo "tmux 3.2a"
|
|
406
|
-
;;
|
|
407
|
-
split-window)
|
|
408
|
-
echo "%31"
|
|
409
|
-
;;
|
|
410
|
-
list-panes)
|
|
411
|
-
echo "42424"
|
|
412
|
-
;;
|
|
413
|
-
capture-pane)
|
|
414
|
-
echo ""
|
|
415
|
-
;;
|
|
416
|
-
esac
|
|
417
|
-
exit 0
|
|
418
|
-
`);
|
|
419
|
-
await chmod(tmuxStubPath, 0o755);
|
|
420
|
-
process.env.PATH = `${fakeBinDir}:${previousPath ?? ''}`;
|
|
421
|
-
await mkdir(join(cwd, '.codex', 'prompts'), { recursive: true });
|
|
422
|
-
await writeFile(join(cwd, '.codex', 'prompts', 'writer.md'), '<identity>You are Writer.</identity>');
|
|
423
|
-
await writeFile(join(cwd, 'AGENTS.md'), '# Root project instructions\n');
|
|
424
|
-
await initCommittedGitRepo(cwd);
|
|
425
|
-
await initTeamState('canonical-root', 'task', 'executor', 1, cwd, undefined, process.env, {
|
|
426
|
-
workspace_mode: 'worktree',
|
|
427
|
-
leader_cwd: cwd,
|
|
428
|
-
team_state_root: join(cwd, '.rcs', 'state'),
|
|
429
|
-
});
|
|
430
|
-
const config = await readTeamConfig('canonical-root', cwd);
|
|
431
|
-
assert.ok(config);
|
|
432
|
-
if (!config)
|
|
433
|
-
return;
|
|
434
|
-
config.tmux_session = 'rcs-team-canonical-root';
|
|
435
|
-
config.leader_pane_id = '%11';
|
|
436
|
-
config.workers[0].pane_id = '%21';
|
|
437
|
-
await saveTeamConfig(config, cwd);
|
|
438
|
-
const manifestPath = join(cwd, '.rcs', 'state', 'team', 'canonical-root', 'manifest.v2.json');
|
|
439
|
-
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
440
|
-
manifest.policy = {
|
|
441
|
-
...(manifest.policy ?? {}),
|
|
442
|
-
dispatch_mode: 'transport_direct',
|
|
443
|
-
};
|
|
444
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
445
|
-
const result = await scaleUp('canonical-root', 1, 'executor', [{ subject: 'write docs', description: 'write docs', owner: 'worker-2', role: 'writer' }], cwd, {
|
|
446
|
-
RCS_TEAM_SCALING_ENABLED: '1',
|
|
447
|
-
RCS_TEAM_SKIP_READY_WAIT: '1',
|
|
448
|
-
RCS_TEAM_WORKER_LAUNCH_ARGS: '--model gpt-5.4-mini',
|
|
449
|
-
});
|
|
450
|
-
assert.equal(result.ok, true);
|
|
451
|
-
if (!result.ok)
|
|
452
|
-
return;
|
|
453
|
-
const inbox = await readFile(join(cwd, '.rcs', 'state', 'team', 'canonical-root', 'workers', 'worker-2', 'inbox.md'), 'utf-8');
|
|
454
|
-
assert.doesNotMatch(inbox, /## Your Specialization/);
|
|
455
|
-
assert.match(inbox, /\*\*Role:\*\* writer/);
|
|
456
|
-
const rootAgents = await readFile(join(cwd, '.rcs', 'team', 'canonical-root', 'worktrees', 'worker-2', 'AGENTS.md'), 'utf-8');
|
|
457
|
-
assert.match(rootAgents, /You are operating as the \*\*writer\*\* role/);
|
|
458
|
-
assert.match(rootAgents, /<identity>You are Writer\.<\/identity>/);
|
|
459
|
-
assert.match(rootAgents, /exact gpt-5\.4-mini model/);
|
|
460
|
-
assert.match(rootAgents, /strict execution order: inspect -> plan -> act -> verify/);
|
|
461
|
-
}
|
|
462
|
-
finally {
|
|
463
|
-
if (typeof previousPath === 'string')
|
|
464
|
-
process.env.PATH = previousPath;
|
|
465
|
-
else
|
|
466
|
-
delete process.env.PATH;
|
|
467
|
-
await rm(cwd, { recursive: true, force: true });
|
|
468
|
-
await rm(fakeBinDir, { recursive: true, force: true });
|
|
469
|
-
}
|
|
470
|
-
});
|
|
471
|
-
it('does not apply mini guidance during scale-up when the final worker model is gpt-5.5', async () => {
|
|
472
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-up-frontier-role-'));
|
|
473
|
-
const fakeBinDir = await mkdtemp(join(tmpdir(), 'rcs-scale-up-frontier-role-bin-'));
|
|
474
|
-
const tmuxStubPath = join(fakeBinDir, 'tmux');
|
|
475
|
-
const previousPath = process.env.PATH;
|
|
476
|
-
try {
|
|
477
|
-
await writeFile(tmuxStubPath, `#!/bin/sh
|
|
478
|
-
set -eu
|
|
479
|
-
case "\${1:-}" in
|
|
480
|
-
-V)
|
|
481
|
-
echo "tmux 3.2a"
|
|
482
|
-
;;
|
|
483
|
-
split-window)
|
|
484
|
-
echo "%31"
|
|
485
|
-
;;
|
|
486
|
-
list-panes)
|
|
487
|
-
echo "42424"
|
|
488
|
-
;;
|
|
489
|
-
capture-pane)
|
|
490
|
-
echo ""
|
|
491
|
-
;;
|
|
492
|
-
esac
|
|
493
|
-
exit 0
|
|
494
|
-
`);
|
|
495
|
-
await chmod(tmuxStubPath, 0o755);
|
|
496
|
-
process.env.PATH = `${fakeBinDir}:${previousPath ?? ''}`;
|
|
497
|
-
await mkdir(join(cwd, '.codex', 'prompts'), { recursive: true });
|
|
498
|
-
await writeFile(join(cwd, '.codex', 'prompts', 'test-engineer.md'), '<identity>Test Engineer</identity>');
|
|
499
|
-
await mkdir(join(cwd, '.rcs', 'state', 'team', 'frontier-role'), { recursive: true });
|
|
500
|
-
await writeFile(join(cwd, '.rcs', 'state', 'team', 'frontier-role', 'worker-agents.md'), '# Base worker instructions\n');
|
|
501
|
-
await initTeamState('frontier-role', 'task', 'executor', 1, cwd);
|
|
502
|
-
await createTask('frontier-role', {
|
|
503
|
-
subject: 'existing task',
|
|
504
|
-
description: 'already persisted',
|
|
505
|
-
status: 'pending',
|
|
506
|
-
owner: 'worker-1',
|
|
507
|
-
}, cwd);
|
|
508
|
-
const config = await readTeamConfig('frontier-role', cwd);
|
|
509
|
-
assert.ok(config);
|
|
510
|
-
if (!config)
|
|
511
|
-
return;
|
|
512
|
-
config.tmux_session = 'rcs-team-frontier-role';
|
|
513
|
-
config.leader_pane_id = '%11';
|
|
514
|
-
config.workers[0].pane_id = '%21';
|
|
515
|
-
await saveTeamConfig(config, cwd);
|
|
516
|
-
const manifestPath = join(cwd, '.rcs', 'state', 'team', 'frontier-role', 'manifest.v2.json');
|
|
517
|
-
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
518
|
-
manifest.policy = {
|
|
519
|
-
...(manifest.policy ?? {}),
|
|
520
|
-
dispatch_mode: 'transport_direct',
|
|
521
|
-
};
|
|
522
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
523
|
-
const result = await scaleUp('frontier-role', 1, 'executor', [{ subject: 'test routing report only', description: 'test routing report only', owner: 'worker-2', role: 'test-engineer' }], cwd, { RCS_TEAM_SCALING_ENABLED: '1', RCS_TEAM_SKIP_READY_WAIT: '1' });
|
|
524
|
-
assert.equal(result.ok, true);
|
|
525
|
-
if (!result.ok)
|
|
526
|
-
return;
|
|
527
|
-
const workerAgents = await readFile(join(cwd, '.rcs', 'state', 'team', 'frontier-role', 'workers', 'worker-2', 'AGENTS.md'), 'utf-8');
|
|
528
|
-
assert.match(workerAgents, /You are operating as the \*\*test-engineer\*\* role/);
|
|
529
|
-
assert.match(workerAgents, /<identity>Test Engineer<\/identity>/);
|
|
530
|
-
assert.doesNotMatch(workerAgents, /exact gpt-5\.4-mini model/);
|
|
531
|
-
}
|
|
532
|
-
finally {
|
|
533
|
-
if (typeof previousPath === 'string')
|
|
534
|
-
process.env.PATH = previousPath;
|
|
535
|
-
else
|
|
536
|
-
delete process.env.PATH;
|
|
537
|
-
await rm(cwd, { recursive: true, force: true });
|
|
538
|
-
await rm(fakeBinDir, { recursive: true, force: true });
|
|
539
|
-
}
|
|
540
|
-
});
|
|
541
|
-
it('does not apply mini guidance during scale-up for gpt-5.4-mini-tuned overrides', async () => {
|
|
542
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-up-mini-tuned-'));
|
|
543
|
-
const fakeBinDir = await mkdtemp(join(tmpdir(), 'rcs-scale-up-mini-tuned-bin-'));
|
|
544
|
-
const tmuxStubPath = join(fakeBinDir, 'tmux');
|
|
545
|
-
const previousPath = process.env.PATH;
|
|
546
|
-
try {
|
|
547
|
-
await writeFile(tmuxStubPath, `#!/bin/sh
|
|
548
|
-
set -eu
|
|
549
|
-
case "\${1:-}" in
|
|
550
|
-
-V)
|
|
551
|
-
echo "tmux 3.2a"
|
|
552
|
-
;;
|
|
553
|
-
split-window)
|
|
554
|
-
echo "%31"
|
|
555
|
-
;;
|
|
556
|
-
list-panes)
|
|
557
|
-
echo "42424"
|
|
558
|
-
;;
|
|
559
|
-
capture-pane)
|
|
560
|
-
echo ""
|
|
561
|
-
;;
|
|
562
|
-
esac
|
|
563
|
-
exit 0
|
|
564
|
-
`);
|
|
565
|
-
await chmod(tmuxStubPath, 0o755);
|
|
566
|
-
process.env.PATH = `${fakeBinDir}:${previousPath ?? ''}`;
|
|
567
|
-
await mkdir(join(cwd, '.codex', 'prompts'), { recursive: true });
|
|
568
|
-
await writeFile(join(cwd, '.codex', 'prompts', 'writer.md'), '<identity>You are Writer.</identity>');
|
|
569
|
-
await writeFile(join(cwd, 'AGENTS.md'), '# Root project instructions\n');
|
|
570
|
-
await initCommittedGitRepo(cwd);
|
|
571
|
-
await initTeamState('mini-tuned-root', 'task', 'executor', 1, cwd, undefined, process.env, {
|
|
572
|
-
workspace_mode: 'worktree',
|
|
573
|
-
leader_cwd: cwd,
|
|
574
|
-
team_state_root: join(cwd, '.rcs', 'state'),
|
|
575
|
-
});
|
|
576
|
-
const config = await readTeamConfig('mini-tuned-root', cwd);
|
|
577
|
-
assert.ok(config);
|
|
578
|
-
if (!config)
|
|
579
|
-
return;
|
|
580
|
-
config.tmux_session = 'rcs-team-mini-tuned-root';
|
|
581
|
-
config.leader_pane_id = '%11';
|
|
582
|
-
config.workers[0].pane_id = '%21';
|
|
583
|
-
await saveTeamConfig(config, cwd);
|
|
584
|
-
const manifestPath = join(cwd, '.rcs', 'state', 'team', 'mini-tuned-root', 'manifest.v2.json');
|
|
585
|
-
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
586
|
-
manifest.policy = {
|
|
587
|
-
...(manifest.policy ?? {}),
|
|
588
|
-
dispatch_mode: 'transport_direct',
|
|
589
|
-
};
|
|
590
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
591
|
-
const result = await scaleUp('mini-tuned-root', 1, 'executor', [{ subject: 'write docs', description: 'write docs', owner: 'worker-2', role: 'writer' }], cwd, {
|
|
592
|
-
RCS_TEAM_SCALING_ENABLED: '1',
|
|
593
|
-
RCS_TEAM_SKIP_READY_WAIT: '1',
|
|
594
|
-
RCS_TEAM_WORKER_LAUNCH_ARGS: '--model gpt-5.4-mini-tuned',
|
|
595
|
-
});
|
|
596
|
-
assert.equal(result.ok, true);
|
|
597
|
-
if (!result.ok)
|
|
598
|
-
return;
|
|
599
|
-
const rootAgents = await readFile(join(cwd, '.rcs', 'team', 'mini-tuned-root', 'worktrees', 'worker-2', 'AGENTS.md'), 'utf-8');
|
|
600
|
-
assert.match(rootAgents, /You are operating as the \*\*writer\*\* role/);
|
|
601
|
-
assert.match(rootAgents, /<identity>You are Writer\.<\/identity>/);
|
|
602
|
-
assert.doesNotMatch(rootAgents, /exact gpt-5\.4-mini model/);
|
|
603
|
-
}
|
|
604
|
-
finally {
|
|
605
|
-
if (typeof previousPath === 'string')
|
|
606
|
-
process.env.PATH = previousPath;
|
|
607
|
-
else
|
|
608
|
-
delete process.env.PATH;
|
|
609
|
-
await rm(cwd, { recursive: true, force: true });
|
|
610
|
-
await rm(fakeBinDir, { recursive: true, force: true });
|
|
611
|
-
}
|
|
612
|
-
});
|
|
613
|
-
it('preserves leader/HUD layout by avoiding tiled relayout during scale-up', async () => {
|
|
614
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-up-layout-'));
|
|
615
|
-
const fakeBinDir = await mkdtemp(join(tmpdir(), 'rcs-scale-up-layout-bin-'));
|
|
616
|
-
const tmuxLogPath = join(fakeBinDir, 'tmux.log');
|
|
617
|
-
const tmuxStubPath = join(fakeBinDir, 'tmux');
|
|
618
|
-
const previousPath = process.env.PATH;
|
|
619
|
-
try {
|
|
620
|
-
await writeFile(tmuxStubPath, `#!/bin/sh
|
|
621
|
-
set -eu
|
|
622
|
-
printf '%s\\n' "$*" >> "${tmuxLogPath}"
|
|
623
|
-
case "\${1:-}" in
|
|
624
|
-
-V)
|
|
625
|
-
echo "tmux 3.2a"
|
|
626
|
-
;;
|
|
627
|
-
split-window)
|
|
628
|
-
echo "%31"
|
|
629
|
-
;;
|
|
630
|
-
list-panes)
|
|
631
|
-
echo "42424"
|
|
632
|
-
;;
|
|
633
|
-
capture-pane)
|
|
634
|
-
echo ""
|
|
635
|
-
;;
|
|
636
|
-
esac
|
|
637
|
-
exit 0
|
|
638
|
-
`);
|
|
639
|
-
await chmod(tmuxStubPath, 0o755);
|
|
640
|
-
await writeFile(tmuxLogPath, '');
|
|
641
|
-
process.env.PATH = `${fakeBinDir}:${previousPath ?? ''}`;
|
|
642
|
-
await initTeamState('scale-up-layout', 'task', 'executor', 1, cwd);
|
|
643
|
-
const config = await readTeamConfig('scale-up-layout', cwd);
|
|
644
|
-
assert.ok(config);
|
|
645
|
-
if (!config)
|
|
646
|
-
return;
|
|
647
|
-
config.tmux_session = 'rcs-team-scale-up-layout';
|
|
648
|
-
config.leader_pane_id = '%11';
|
|
649
|
-
config.workers[0].pane_id = '%21';
|
|
650
|
-
await saveTeamConfig(config, cwd);
|
|
651
|
-
const manifestPath = join(cwd, '.rcs', 'state', 'team', 'scale-up-layout', 'manifest.v2.json');
|
|
652
|
-
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
653
|
-
manifest.policy = {
|
|
654
|
-
...(manifest.policy ?? {}),
|
|
655
|
-
dispatch_mode: 'transport_direct',
|
|
656
|
-
};
|
|
657
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
658
|
-
const result = await scaleUp('scale-up-layout', 1, 'executor', [], cwd, { RCS_TEAM_SCALING_ENABLED: '1', RCS_TEAM_SKIP_READY_WAIT: '1' });
|
|
659
|
-
assert.equal(result.ok, true);
|
|
660
|
-
if (!result.ok)
|
|
661
|
-
return;
|
|
662
|
-
const tmuxLog = await readFile(tmuxLogPath, 'utf-8');
|
|
663
|
-
assert.match(tmuxLog, /split-window -v -t %21/);
|
|
664
|
-
assert.doesNotMatch(tmuxLog, /select-layout .*tiled/);
|
|
665
|
-
}
|
|
666
|
-
finally {
|
|
667
|
-
if (typeof previousPath === 'string')
|
|
668
|
-
process.env.PATH = previousPath;
|
|
669
|
-
else
|
|
670
|
-
delete process.env.PATH;
|
|
671
|
-
await rm(cwd, { recursive: true, force: true });
|
|
672
|
-
await rm(fakeBinDir, { recursive: true, force: true });
|
|
673
|
-
}
|
|
674
|
-
});
|
|
675
|
-
it('provisions detached worktrees for scaled-up workers from persisted team worktree mode', async () => {
|
|
676
|
-
const repo = await initRepo();
|
|
677
|
-
const fakeBinDir = await mkdtemp(join(tmpdir(), 'rcs-scale-up-detached-bin-'));
|
|
678
|
-
const tmuxLogPath = join(fakeBinDir, 'tmux.log');
|
|
679
|
-
const tmuxStubPath = join(fakeBinDir, 'tmux');
|
|
680
|
-
const previousPath = process.env.PATH;
|
|
681
|
-
try {
|
|
682
|
-
await writeFile(tmuxStubPath, [
|
|
683
|
-
'#!/bin/sh',
|
|
684
|
-
'set -eu',
|
|
685
|
-
`printf '%s\n' "$*" >> "${tmuxLogPath}"`,
|
|
686
|
-
'case "${1:-}" in',
|
|
687
|
-
' -V)',
|
|
688
|
-
' echo "tmux 3.2a"',
|
|
689
|
-
' ;;',
|
|
690
|
-
' split-window)',
|
|
691
|
-
' echo "%41"',
|
|
692
|
-
' ;;',
|
|
693
|
-
' list-panes)',
|
|
694
|
-
' echo "45454"',
|
|
695
|
-
' ;;',
|
|
696
|
-
' capture-pane)',
|
|
697
|
-
' echo ""',
|
|
698
|
-
' ;;',
|
|
699
|
-
'esac',
|
|
700
|
-
'exit 0',
|
|
701
|
-
'',
|
|
702
|
-
].join('\n'));
|
|
703
|
-
await chmod(tmuxStubPath, 0o755);
|
|
704
|
-
await writeFile(tmuxLogPath, '');
|
|
705
|
-
process.env.PATH = `${fakeBinDir}:${previousPath ?? ''}`;
|
|
706
|
-
const teamName = 'scale-up-detached-worktree';
|
|
707
|
-
await mkdir(join(repo, '.rcs', 'state', 'team', teamName), { recursive: true });
|
|
708
|
-
await writeFile(join(repo, '.rcs', 'state', 'team', teamName, 'worker-agents.md'), '# Base worker instructions\n');
|
|
709
|
-
await initTeamState(teamName, 'task', 'executor', 1, repo, DEFAULT_MAX_WORKERS, process.env, {
|
|
710
|
-
leader_cwd: repo,
|
|
711
|
-
team_state_root: join(repo, '.rcs', 'state'),
|
|
712
|
-
workspace_mode: 'worktree',
|
|
713
|
-
worktree_mode: { enabled: true, detached: true, name: null },
|
|
714
|
-
});
|
|
715
|
-
const config = await readTeamConfig(teamName, repo);
|
|
716
|
-
assert.ok(config);
|
|
717
|
-
if (!config)
|
|
718
|
-
return;
|
|
719
|
-
config.tmux_session = `rcs-team-${teamName}`;
|
|
720
|
-
config.leader_pane_id = '%11';
|
|
721
|
-
config.workers[0].pane_id = '%21';
|
|
722
|
-
await saveTeamConfig(config, repo);
|
|
723
|
-
const manifestPath = join(repo, '.rcs', 'state', 'team', teamName, 'manifest.v2.json');
|
|
724
|
-
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
725
|
-
manifest.policy = {
|
|
726
|
-
...(manifest.policy ?? {}),
|
|
727
|
-
dispatch_mode: 'transport_direct',
|
|
728
|
-
};
|
|
729
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
730
|
-
const result = await scaleUp(teamName, 1, 'executor', [], repo, { RCS_TEAM_SCALING_ENABLED: '1', RCS_TEAM_SKIP_READY_WAIT: '1' });
|
|
731
|
-
assert.equal(result.ok, true);
|
|
732
|
-
if (!result.ok)
|
|
733
|
-
return;
|
|
734
|
-
const updated = await readTeamConfig(teamName, repo);
|
|
735
|
-
const worker = updated?.workers.find((entry) => entry.name === 'worker-2');
|
|
736
|
-
assert.deepEqual(updated?.worktree_mode, { enabled: true, detached: true, name: null });
|
|
737
|
-
assert.ok(worker?.worktree_path, 'scaled worker should have detached worktree path');
|
|
738
|
-
assert.equal(worker?.working_dir, worker?.worktree_path);
|
|
739
|
-
assert.equal(worker?.worktree_detached, true);
|
|
740
|
-
assert.equal(worker?.worktree_created, true);
|
|
741
|
-
assert.equal(existsSync(worker?.worktree_path), true);
|
|
742
|
-
assert.throws(() => execFileSync('git', ['symbolic-ref', '--quiet', '--short', 'HEAD'], { cwd: worker?.worktree_path, stdio: 'pipe' }));
|
|
743
|
-
}
|
|
744
|
-
finally {
|
|
745
|
-
if (typeof previousPath === 'string')
|
|
746
|
-
process.env.PATH = previousPath;
|
|
747
|
-
else
|
|
748
|
-
delete process.env.PATH;
|
|
749
|
-
await rm(repo, { recursive: true, force: true });
|
|
750
|
-
await rm(fakeBinDir, { recursive: true, force: true });
|
|
751
|
-
}
|
|
752
|
-
});
|
|
753
|
-
it('provisions named worktrees for scaled-up workers from persisted team worktree mode', async () => {
|
|
754
|
-
const repo = await initRepo();
|
|
755
|
-
const fakeBinDir = await mkdtemp(join(tmpdir(), 'rcs-scale-up-named-bin-'));
|
|
756
|
-
const tmuxLogPath = join(fakeBinDir, 'tmux.log');
|
|
757
|
-
const tmuxStubPath = join(fakeBinDir, 'tmux');
|
|
758
|
-
const previousPath = process.env.PATH;
|
|
759
|
-
try {
|
|
760
|
-
await writeFile(tmuxStubPath, [
|
|
761
|
-
'#!/bin/sh',
|
|
762
|
-
'set -eu',
|
|
763
|
-
`printf '%s\n' "$*" >> "${tmuxLogPath}"`,
|
|
764
|
-
'case "${1:-}" in',
|
|
765
|
-
' -V)',
|
|
766
|
-
' echo "tmux 3.2a"',
|
|
767
|
-
' ;;',
|
|
768
|
-
' split-window)',
|
|
769
|
-
' echo "%42"',
|
|
770
|
-
' ;;',
|
|
771
|
-
' list-panes)',
|
|
772
|
-
' echo "46464"',
|
|
773
|
-
' ;;',
|
|
774
|
-
' capture-pane)',
|
|
775
|
-
' echo ""',
|
|
776
|
-
' ;;',
|
|
777
|
-
'esac',
|
|
778
|
-
'exit 0',
|
|
779
|
-
'',
|
|
780
|
-
].join('\n'));
|
|
781
|
-
await chmod(tmuxStubPath, 0o755);
|
|
782
|
-
await writeFile(tmuxLogPath, '');
|
|
783
|
-
process.env.PATH = `${fakeBinDir}:${previousPath ?? ''}`;
|
|
784
|
-
const teamName = 'scale-up-named-worktree';
|
|
785
|
-
const branchBase = 'feature/team-scale';
|
|
786
|
-
await mkdir(join(repo, '.rcs', 'state', 'team', teamName), { recursive: true });
|
|
787
|
-
await writeFile(join(repo, '.rcs', 'state', 'team', teamName, 'worker-agents.md'), '# Base worker instructions\n');
|
|
788
|
-
await initTeamState(teamName, 'task', 'executor', 1, repo, DEFAULT_MAX_WORKERS, process.env, {
|
|
789
|
-
leader_cwd: repo,
|
|
790
|
-
team_state_root: join(repo, '.rcs', 'state'),
|
|
791
|
-
workspace_mode: 'worktree',
|
|
792
|
-
worktree_mode: { enabled: true, detached: false, name: branchBase },
|
|
793
|
-
});
|
|
794
|
-
const config = await readTeamConfig(teamName, repo);
|
|
795
|
-
assert.ok(config);
|
|
796
|
-
if (!config)
|
|
797
|
-
return;
|
|
798
|
-
config.tmux_session = `rcs-team-${teamName}`;
|
|
799
|
-
config.leader_pane_id = '%11';
|
|
800
|
-
config.workers[0].pane_id = '%21';
|
|
801
|
-
await saveTeamConfig(config, repo);
|
|
802
|
-
const manifestPath = join(repo, '.rcs', 'state', 'team', teamName, 'manifest.v2.json');
|
|
803
|
-
const manifest = JSON.parse(await readFile(manifestPath, 'utf-8'));
|
|
804
|
-
manifest.policy = {
|
|
805
|
-
...(manifest.policy ?? {}),
|
|
806
|
-
dispatch_mode: 'transport_direct',
|
|
807
|
-
};
|
|
808
|
-
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
|
|
809
|
-
const result = await scaleUp(teamName, 1, 'executor', [], repo, { RCS_TEAM_SCALING_ENABLED: '1', RCS_TEAM_SKIP_READY_WAIT: '1' });
|
|
810
|
-
assert.equal(result.ok, true);
|
|
811
|
-
if (!result.ok)
|
|
812
|
-
return;
|
|
813
|
-
const updated = await readTeamConfig(teamName, repo);
|
|
814
|
-
const worker = updated?.workers.find((entry) => entry.name === 'worker-2');
|
|
815
|
-
assert.deepEqual(updated?.worktree_mode, { enabled: true, detached: false, name: branchBase });
|
|
816
|
-
assert.equal(worker?.worktree_branch, `${branchBase}/worker-2`);
|
|
817
|
-
assert.equal(worker?.working_dir, worker?.worktree_path);
|
|
818
|
-
assert.equal(worker?.worktree_detached, false);
|
|
819
|
-
assert.equal(worker?.worktree_created, true);
|
|
820
|
-
assert.equal(existsSync(worker?.worktree_path), true);
|
|
821
|
-
assert.equal(execFileSync('git', ['symbolic-ref', '--quiet', '--short', 'HEAD'], { cwd: worker?.worktree_path, encoding: 'utf-8' }).trim(), `${branchBase}/worker-2`);
|
|
822
|
-
}
|
|
823
|
-
finally {
|
|
824
|
-
if (typeof previousPath === 'string')
|
|
825
|
-
process.env.PATH = previousPath;
|
|
826
|
-
else
|
|
827
|
-
delete process.env.PATH;
|
|
828
|
-
await rm(repo, { recursive: true, force: true });
|
|
829
|
-
await rm(fakeBinDir, { recursive: true, force: true });
|
|
830
|
-
}
|
|
831
|
-
});
|
|
832
|
-
});
|
|
833
|
-
describe('scaleDown', () => {
|
|
834
|
-
it('rejects when scaling is disabled', async () => {
|
|
835
|
-
await assert.rejects(scaleDown('test', '/tmp', {}, {}), /Dynamic scaling is disabled/);
|
|
836
|
-
});
|
|
837
|
-
it('returns error when team not found', async () => {
|
|
838
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-down-nf-'));
|
|
839
|
-
try {
|
|
840
|
-
const result = await scaleDown('nonexistent', cwd, {}, { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
841
|
-
assert.equal(result.ok, false);
|
|
842
|
-
if (!result.ok) {
|
|
843
|
-
assert.match(result.error, /not found/);
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
finally {
|
|
847
|
-
await rm(cwd, { recursive: true, force: true });
|
|
848
|
-
}
|
|
849
|
-
});
|
|
850
|
-
it('returns error when trying to remove all workers', async () => {
|
|
851
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-down-all-'));
|
|
852
|
-
try {
|
|
853
|
-
await initTeamState('all-test', 'task', 'executor', 1, cwd);
|
|
854
|
-
const result = await scaleDown('all-test', cwd, { workerNames: ['worker-1'] }, { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
855
|
-
assert.equal(result.ok, false);
|
|
856
|
-
if (!result.ok) {
|
|
857
|
-
assert.match(result.error, /at least 1 must remain/);
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
finally {
|
|
861
|
-
await rm(cwd, { recursive: true, force: true });
|
|
862
|
-
}
|
|
863
|
-
});
|
|
864
|
-
it('returns error for worker not in team', async () => {
|
|
865
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-down-miss-'));
|
|
866
|
-
try {
|
|
867
|
-
await initTeamState('miss-test', 'task', 'executor', 2, cwd);
|
|
868
|
-
const result = await scaleDown('miss-test', cwd, { workerNames: ['worker-99'] }, { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
869
|
-
assert.equal(result.ok, false);
|
|
870
|
-
if (!result.ok) {
|
|
871
|
-
assert.match(result.error, /Worker worker-99 not found/);
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
finally {
|
|
875
|
-
await rm(cwd, { recursive: true, force: true });
|
|
876
|
-
}
|
|
877
|
-
});
|
|
878
|
-
it('returns error when not enough idle workers and force=false', async () => {
|
|
879
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-down-busy-'));
|
|
880
|
-
try {
|
|
881
|
-
await initTeamState('busy-test', 'task', 'executor', 2, cwd);
|
|
882
|
-
// Write working status for both workers
|
|
883
|
-
await writeWorkerStatus('busy-test', 'worker-1', {
|
|
884
|
-
state: 'working',
|
|
885
|
-
current_task_id: 't-1',
|
|
886
|
-
updated_at: new Date().toISOString(),
|
|
887
|
-
}, cwd);
|
|
888
|
-
await writeWorkerStatus('busy-test', 'worker-2', {
|
|
889
|
-
state: 'working',
|
|
890
|
-
current_task_id: 't-2',
|
|
891
|
-
updated_at: new Date().toISOString(),
|
|
892
|
-
}, cwd);
|
|
893
|
-
const result = await scaleDown('busy-test', cwd, { count: 1 }, { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
894
|
-
assert.equal(result.ok, false);
|
|
895
|
-
if (!result.ok) {
|
|
896
|
-
assert.match(result.error, /Not enough idle workers/);
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
finally {
|
|
900
|
-
await rm(cwd, { recursive: true, force: true });
|
|
901
|
-
}
|
|
902
|
-
});
|
|
903
|
-
});
|
|
904
|
-
describe('scaleDown worktree AGENTS cleanup', () => {
|
|
905
|
-
it('removes generated worktree-root AGENTS during scale-down', async () => {
|
|
906
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-down-worktree-agents-'));
|
|
907
|
-
try {
|
|
908
|
-
await initTeamState('scale-down-worktree', 'task', 'executor', 2, cwd, undefined, process.env, {
|
|
909
|
-
workspace_mode: 'worktree',
|
|
910
|
-
leader_cwd: cwd,
|
|
911
|
-
team_state_root: join(cwd, '.rcs', 'state'),
|
|
912
|
-
});
|
|
913
|
-
const worktree = join(cwd, '.rcs', 'team', 'scale-down-worktree', 'worktrees', 'worker-2');
|
|
914
|
-
await mkdir(worktree, { recursive: true });
|
|
915
|
-
await writeFile(join(worktree, 'AGENTS.md'), '# Tracked root instructions\n', 'utf8');
|
|
916
|
-
await mkdir(join(cwd, '.rcs', 'state', 'team', 'scale-down-worktree', 'workers', 'worker-2'), { recursive: true });
|
|
917
|
-
await writeFile(join(cwd, '.rcs', 'state', 'team', 'scale-down-worktree', 'workers', 'worker-2', 'root-agents-backup.json'), JSON.stringify({ existed: true, tracked: false, previousContent: '# Tracked root instructions\n' }, null, 2), 'utf8');
|
|
918
|
-
await writeFile(join(worktree, 'AGENTS.md'), '# Generated runtime instructions\n', 'utf8');
|
|
919
|
-
const config = await readTeamConfig('scale-down-worktree', cwd);
|
|
920
|
-
assert.ok(config);
|
|
921
|
-
if (!config)
|
|
922
|
-
return;
|
|
923
|
-
config.workers[1].worktree_path = worktree;
|
|
924
|
-
await saveTeamConfig(config, cwd);
|
|
925
|
-
const result = await scaleDown('scale-down-worktree', cwd, { workerNames: ['worker-2'], force: true }, { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
926
|
-
assert.equal(result.ok, true);
|
|
927
|
-
if (!result.ok)
|
|
928
|
-
return;
|
|
929
|
-
assert.equal(await readFile(join(worktree, 'AGENTS.md'), 'utf-8'), '# Tracked root instructions\n');
|
|
930
|
-
assert.equal(existsSync(join(cwd, '.rcs', 'state', 'team', 'scale-down-worktree', 'workers', 'worker-2', 'root-agents-backup.json')), false);
|
|
931
|
-
}
|
|
932
|
-
finally {
|
|
933
|
-
await rm(cwd, { recursive: true, force: true });
|
|
934
|
-
}
|
|
935
|
-
});
|
|
936
|
-
});
|
|
937
|
-
describe('scaleDown teardown hardening', () => {
|
|
938
|
-
it('scaleDown removes workers when pane is already dead or missing', async () => {
|
|
939
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-down-dead-'));
|
|
940
|
-
try {
|
|
941
|
-
await initTeamState('dead-pane', 'task', 'executor', 2, cwd);
|
|
942
|
-
const config = await readTeamConfig('dead-pane', cwd);
|
|
943
|
-
assert.ok(config);
|
|
944
|
-
if (!config)
|
|
945
|
-
return;
|
|
946
|
-
config.workers[1].pane_id = '%404';
|
|
947
|
-
await saveTeamConfig(config, cwd);
|
|
948
|
-
const result = await scaleDown('dead-pane', cwd, { workerNames: ['worker-2'], force: true }, { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
949
|
-
assert.equal(result.ok, true);
|
|
950
|
-
if (!result.ok)
|
|
951
|
-
return;
|
|
952
|
-
assert.deepEqual(result.removedWorkers, ['worker-2']);
|
|
953
|
-
const updated = await readTeamConfig('dead-pane', cwd);
|
|
954
|
-
assert.ok(updated);
|
|
955
|
-
assert.equal(updated?.workers.some((worker) => worker.name === 'worker-2'), false);
|
|
956
|
-
}
|
|
957
|
-
finally {
|
|
958
|
-
await rm(cwd, { recursive: true, force: true });
|
|
959
|
-
}
|
|
960
|
-
});
|
|
961
|
-
it('scaleDown never targets leader or hud panes during teardown', async () => {
|
|
962
|
-
const cwd = await mkdtemp(join(tmpdir(), 'rcs-scale-down-exclusions-'));
|
|
963
|
-
const fakeBinDir = await mkdtemp(join(tmpdir(), 'rcs-scale-down-fake-tmux-'));
|
|
964
|
-
const tmuxLogPath = join(fakeBinDir, 'tmux.log');
|
|
965
|
-
const tmuxStubPath = join(fakeBinDir, 'tmux');
|
|
966
|
-
const previousPath = process.env.PATH;
|
|
967
|
-
try {
|
|
968
|
-
await writeFile(tmuxStubPath, `#!/bin/sh
|
|
969
|
-
set -eu
|
|
970
|
-
printf '%s\\n' "$*" >> "${tmuxLogPath}"
|
|
971
|
-
exit 0
|
|
972
|
-
`);
|
|
973
|
-
await writeFile(tmuxLogPath, '');
|
|
974
|
-
await chmod(tmuxStubPath, 0o755);
|
|
975
|
-
process.env.PATH = `${fakeBinDir}:${previousPath ?? ''}`;
|
|
976
|
-
await initTeamState('exclusions', 'task', 'executor', 4, cwd);
|
|
977
|
-
const config = await readTeamConfig('exclusions', cwd);
|
|
978
|
-
assert.ok(config);
|
|
979
|
-
if (!config)
|
|
980
|
-
return;
|
|
981
|
-
config.leader_pane_id = '%11';
|
|
982
|
-
config.hud_pane_id = '%12';
|
|
983
|
-
config.workers[0].pane_id = '%11';
|
|
984
|
-
config.workers[1].pane_id = '%12';
|
|
985
|
-
config.workers[2].pane_id = '%13';
|
|
986
|
-
config.workers[3].pane_id = '%14';
|
|
987
|
-
await saveTeamConfig(config, cwd);
|
|
988
|
-
const result = await scaleDown('exclusions', cwd, { workerNames: ['worker-1', 'worker-2', 'worker-3'], force: true }, { RCS_TEAM_SCALING_ENABLED: '1' });
|
|
989
|
-
assert.equal(result.ok, true);
|
|
990
|
-
const tmuxLog = await readFile(tmuxLogPath, 'utf-8');
|
|
991
|
-
assert.doesNotMatch(tmuxLog, /kill-pane -t %11/);
|
|
992
|
-
assert.doesNotMatch(tmuxLog, /kill-pane -t %12/);
|
|
993
|
-
assert.match(tmuxLog, /kill-pane -t %13/);
|
|
994
|
-
}
|
|
995
|
-
finally {
|
|
996
|
-
if (typeof previousPath === 'string')
|
|
997
|
-
process.env.PATH = previousPath;
|
|
998
|
-
else
|
|
999
|
-
delete process.env.PATH;
|
|
1000
|
-
await rm(cwd, { recursive: true, force: true });
|
|
1001
|
-
await rm(fakeBinDir, { recursive: true, force: true });
|
|
1002
|
-
}
|
|
1003
|
-
});
|
|
1004
|
-
});
|
|
1005
|
-
//# sourceMappingURL=scaling.test.js.map
|