oh-my-copilot 5.19.2 → 5.19.4
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/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +70 -67
- package/agents/planner.md +4 -4
- package/bin/oh-my-copilot.js +5 -1
- package/bridge/claude-md-coordinator.cjs +2 -2
- package/bridge/cli.cjs +3043 -2635
- package/bridge/mcp-server.cjs +969 -867
- package/bridge/runtime-cli.cjs +244 -184
- package/bridge/team-bridge.cjs +17 -1
- package/bridge/team-mcp.cjs +208 -140
- package/bridge/team.js +73 -13
- package/copilot/agents/planner.md +4 -4
- package/dist/__tests__/ci-evidence.test.d.ts +2 -0
- package/dist/__tests__/ci-evidence.test.d.ts.map +1 -0
- package/dist/__tests__/ci-evidence.test.js +210 -0
- package/dist/__tests__/ci-evidence.test.js.map +1 -0
- package/dist/__tests__/copilot-hooks-manifest.test.js +1 -0
- package/dist/__tests__/copilot-hooks-manifest.test.js.map +1 -1
- package/dist/__tests__/doctor-conflicts.test.js +6 -5
- package/dist/__tests__/doctor-conflicts.test.js.map +1 -1
- package/dist/__tests__/hud/cli-diagnostic.test.js +4 -3
- package/dist/__tests__/hud/cli-diagnostic.test.js.map +1 -1
- package/dist/__tests__/mnemosyne/detector.test.js +3 -2
- package/dist/__tests__/mnemosyne/detector.test.js.map +1 -1
- package/dist/__tests__/run-cjs-windows-stdio-contract.test.js +50 -10
- package/dist/__tests__/run-cjs-windows-stdio-contract.test.js.map +1 -1
- package/dist/__tests__/session-end-process-exit.test.js +15 -5
- package/dist/__tests__/session-end-process-exit.test.js.map +1 -1
- package/dist/__tests__/session-start-script-context.test.js +1 -1
- package/dist/__tests__/session-start-script-context.test.js.map +1 -1
- package/dist/__tests__/setup/stub-skill-list-probe.d.ts +2 -0
- package/dist/__tests__/setup/stub-skill-list-probe.d.ts.map +1 -0
- package/dist/__tests__/setup/stub-skill-list-probe.js +11 -0
- package/dist/__tests__/setup/stub-skill-list-probe.js.map +1 -0
- package/dist/__tests__/setup-claude-md-script.test.js +7 -4
- package/dist/__tests__/setup-claude-md-script.test.js.map +1 -1
- package/dist/__tests__/setup-config-script.test.d.ts +2 -0
- package/dist/__tests__/setup-config-script.test.d.ts.map +1 -0
- package/dist/__tests__/setup-config-script.test.js +350 -0
- package/dist/__tests__/setup-config-script.test.js.map +1 -0
- package/dist/__tests__/shipyard-seed-locale.test.js +1 -1
- package/dist/__tests__/shipyard-seed-locale.test.js.map +1 -1
- package/dist/__tests__/shipyard-skills.test.js +9 -9
- package/dist/__tests__/shipyard-skills.test.js.map +1 -1
- package/dist/__tests__/tier0-docs-consistency.test.js +5 -5
- package/dist/__tests__/tier0-docs-consistency.test.js.map +1 -1
- package/dist/__tests__/trusted-publishing-contract.test.js +56 -7
- package/dist/__tests__/trusted-publishing-contract.test.js.map +1 -1
- package/dist/__tests__/visual-verdict-skill.test.js +1 -1
- package/dist/__tests__/visual-verdict-skill.test.js.map +1 -1
- package/dist/cli/__tests__/autoresearch.test.js +3 -2
- package/dist/cli/__tests__/autoresearch.test.js.map +1 -1
- package/dist/cli/autoresearch.d.ts +1 -1
- package/dist/cli/autoresearch.d.ts.map +1 -1
- package/dist/cli/autoresearch.js +2 -1
- package/dist/cli/autoresearch.js.map +1 -1
- package/dist/cli/commands/__tests__/factory-init.test.js +2 -1
- package/dist/cli/commands/__tests__/factory-init.test.js.map +1 -1
- package/dist/cli/commands/__tests__/intake.test.js +26 -4
- package/dist/cli/commands/__tests__/intake.test.js.map +1 -1
- package/dist/cli/commands/doctor-conflicts.d.ts.map +1 -1
- package/dist/cli/commands/doctor-conflicts.js +5 -4
- package/dist/cli/commands/doctor-conflicts.js.map +1 -1
- package/dist/cli/commands/factory.d.ts.map +1 -1
- package/dist/cli/commands/factory.js +4 -3
- package/dist/cli/commands/factory.js.map +1 -1
- package/dist/cli/commands/intake.d.ts.map +1 -1
- package/dist/cli/commands/intake.js +13 -4
- package/dist/cli/commands/intake.js.map +1 -1
- package/dist/cli/commands/release.d.ts.map +1 -1
- package/dist/cli/commands/release.js +11 -2
- package/dist/cli/commands/release.js.map +1 -1
- package/dist/cli/commands/ship.d.ts +1 -1
- package/dist/cli/commands/ship.js +1 -1
- package/dist/copilot-run/job.d.ts.map +1 -1
- package/dist/copilot-run/job.js +4 -1
- package/dist/copilot-run/job.js.map +1 -1
- package/dist/copilot-run/sandbox.d.ts +2 -7
- package/dist/copilot-run/sandbox.d.ts.map +1 -1
- package/dist/copilot-run/sandbox.js +2 -26
- package/dist/copilot-run/sandbox.js.map +1 -1
- package/dist/factory/__tests__/listener.test.js +22 -4
- package/dist/factory/__tests__/listener.test.js.map +1 -1
- package/dist/factory/listener.d.ts +2 -2
- package/dist/factory/listener.d.ts.map +1 -1
- package/dist/factory/listener.js +20 -5
- package/dist/factory/listener.js.map +1 -1
- package/dist/factory/run/__tests__/prepare-gates.test.js +7 -1
- package/dist/factory/run/__tests__/prepare-gates.test.js.map +1 -1
- package/dist/factory/run/engine.d.ts.map +1 -1
- package/dist/factory/run/engine.js +1 -0
- package/dist/factory/run/engine.js.map +1 -1
- package/dist/features/continuation-enforcement.d.ts.map +1 -1
- package/dist/features/continuation-enforcement.js +2 -1
- package/dist/features/continuation-enforcement.js.map +1 -1
- package/dist/features/lookout/__tests__/lookout.test.js +9 -6
- package/dist/features/lookout/__tests__/lookout.test.js.map +1 -1
- package/dist/forge/__tests__/gh-argv-baseline.factory.test.js +7 -1
- package/dist/forge/__tests__/gh-argv-baseline.factory.test.js.map +1 -1
- package/dist/hooks/__tests__/bridge.test.js +10 -2
- package/dist/hooks/__tests__/bridge.test.js.map +1 -1
- package/dist/hooks/autopilot/__tests__/pipeline.test.js +2 -1
- package/dist/hooks/autopilot/__tests__/pipeline.test.js.map +1 -1
- package/dist/hooks/autopilot/adapters/execution-adapter.d.ts.map +1 -1
- package/dist/hooks/autopilot/adapters/execution-adapter.js +3 -2
- package/dist/hooks/autopilot/adapters/execution-adapter.js.map +1 -1
- package/dist/hooks/autopilot/adapters/ralplan-adapter.d.ts.map +1 -1
- package/dist/hooks/autopilot/adapters/ralplan-adapter.js +2 -1
- package/dist/hooks/autopilot/adapters/ralplan-adapter.js.map +1 -1
- package/dist/hooks/learner/detector.d.ts.map +1 -1
- package/dist/hooks/learner/detector.js +2 -6
- package/dist/hooks/learner/detector.js.map +1 -1
- package/dist/hooks/mode-registry/index.d.ts.map +1 -1
- package/dist/hooks/mode-registry/index.js +2 -1
- package/dist/hooks/mode-registry/index.js.map +1 -1
- package/dist/hooks/persistent-mode/__tests__/team-ralplan-stop.test.js +7 -0
- package/dist/hooks/persistent-mode/__tests__/team-ralplan-stop.test.js.map +1 -1
- package/dist/hooks/persistent-mode/index.d.ts +1 -1
- package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
- package/dist/hooks/persistent-mode/index.js +6 -5
- package/dist/hooks/persistent-mode/index.js.map +1 -1
- package/dist/hooks/persistent-mode/session-isolation.test.js +23 -14
- package/dist/hooks/persistent-mode/session-isolation.test.js.map +1 -1
- package/dist/hooks/ralph/loop.d.ts +1 -1
- package/dist/hooks/ralph/loop.js +1 -1
- package/dist/hooks/ralph/prd.d.ts.map +1 -1
- package/dist/hooks/ralph/prd.js +2 -1
- package/dist/hooks/ralph/prd.js.map +1 -1
- package/dist/hooks/ralph/stale-prd.d.ts +2 -2
- package/dist/hooks/ralph/stale-prd.js +3 -3
- package/dist/hooks/ralph/stale-prd.js.map +1 -1
- package/dist/hooks/ralph/verifier.d.ts +1 -1
- package/dist/hooks/ralph/verifier.d.ts.map +1 -1
- package/dist/hooks/ralph/verifier.js +4 -3
- package/dist/hooks/ralph/verifier.js.map +1 -1
- package/dist/hooks/session-end/__tests__/spawn-next.test.js +31 -4
- package/dist/hooks/session-end/__tests__/spawn-next.test.js.map +1 -1
- package/dist/hooks/session-end/spawn-next.d.ts +6 -3
- package/dist/hooks/session-end/spawn-next.d.ts.map +1 -1
- package/dist/hooks/session-end/spawn-next.js +19 -6
- package/dist/hooks/session-end/spawn-next.js.map +1 -1
- package/dist/hud/index.d.ts.map +1 -1
- package/dist/hud/index.js +3 -2
- package/dist/hud/index.js.map +1 -1
- package/dist/installer/__tests__/hook-templates.test.js +3 -1
- package/dist/installer/__tests__/hook-templates.test.js.map +1 -1
- package/dist/installer/__tests__/session-start-template.test.js +16 -8
- package/dist/installer/__tests__/session-start-template.test.js.map +1 -1
- package/dist/installer/hooks.d.ts +1 -1
- package/dist/installer/hooks.d.ts.map +1 -1
- package/dist/installer/hooks.js +2 -1
- package/dist/installer/hooks.js.map +1 -1
- package/dist/release/__tests__/checks.test.js +39 -1
- package/dist/release/__tests__/checks.test.js.map +1 -1
- package/dist/release/__tests__/engine.test.js +236 -3
- package/dist/release/__tests__/engine.test.js.map +1 -1
- package/dist/release/checks.d.ts +18 -1
- package/dist/release/checks.d.ts.map +1 -1
- package/dist/release/checks.js +40 -1
- package/dist/release/checks.js.map +1 -1
- package/dist/release/engine.d.ts +14 -2
- package/dist/release/engine.d.ts.map +1 -1
- package/dist/release/engine.js +211 -44
- package/dist/release/engine.js.map +1 -1
- package/dist/ship/__tests__/exec-env.test.d.ts +2 -0
- package/dist/ship/__tests__/exec-env.test.d.ts.map +1 -0
- package/dist/ship/__tests__/exec-env.test.js +26 -0
- package/dist/ship/__tests__/exec-env.test.js.map +1 -0
- package/dist/ship/__tests__/exec-plant.test.d.ts +2 -0
- package/dist/ship/__tests__/exec-plant.test.d.ts.map +1 -0
- package/dist/ship/__tests__/exec-plant.test.js +34 -0
- package/dist/ship/__tests__/exec-plant.test.js.map +1 -0
- package/dist/ship/__tests__/gates.test.js +35 -0
- package/dist/ship/__tests__/gates.test.js.map +1 -1
- package/dist/ship/__tests__/workflow-checks.test.js +34 -5
- package/dist/ship/__tests__/workflow-checks.test.js.map +1 -1
- package/dist/ship/config.js +3 -3
- package/dist/ship/config.js.map +1 -1
- package/dist/ship/exec.d.ts.map +1 -1
- package/dist/ship/exec.js +10 -2
- package/dist/ship/exec.js.map +1 -1
- package/dist/ship/gates.d.ts.map +1 -1
- package/dist/ship/gates.js +3 -1
- package/dist/ship/gates.js.map +1 -1
- package/dist/skills/__tests__/mingw-escape.test.js +0 -35
- package/dist/skills/__tests__/mingw-escape.test.js.map +1 -1
- package/dist/skills/__tests__/omc-setup-optout.test.js +4 -3
- package/dist/skills/__tests__/omc-setup-optout.test.js.map +1 -1
- package/dist/smoke/__tests__/copilot-factory-run-scenario.test.js +7 -1
- package/dist/smoke/__tests__/copilot-factory-run-scenario.test.js.map +1 -1
- package/dist/smoke/__tests__/copilot-sdk-driver.test.js +2 -2
- package/dist/smoke/__tests__/copilot-sdk-driver.test.js.map +1 -1
- package/dist/smoke/copilot-sdk-scenarios.d.ts.map +1 -1
- package/dist/smoke/copilot-sdk-scenarios.js +2 -1
- package/dist/smoke/copilot-sdk-scenarios.js.map +1 -1
- package/dist/team/__tests__/git-worktree.test.js +10 -1
- package/dist/team/__tests__/git-worktree.test.js.map +1 -1
- package/dist/team/__tests__/runtime-cli.test.js +4 -4
- package/dist/team/__tests__/runtime-cli.test.js.map +1 -1
- package/dist/team/__tests__/tmux-session.test.js +16 -2
- package/dist/team/__tests__/tmux-session.test.js.map +1 -1
- package/dist/team/__tests__/worker-launch-ack.test.js +14 -0
- package/dist/team/__tests__/worker-launch-ack.test.js.map +1 -1
- package/dist/team/git-worktree.d.ts.map +1 -1
- package/dist/team/git-worktree.js +13 -5
- package/dist/team/git-worktree.js.map +1 -1
- package/dist/team/tmux-session.d.ts.map +1 -1
- package/dist/team/tmux-session.js +8 -6
- package/dist/team/tmux-session.js.map +1 -1
- package/dist/ultragoal/goal-record.d.ts.map +1 -1
- package/dist/ultragoal/goal-record.js +2 -1
- package/dist/ultragoal/goal-record.js.map +1 -1
- package/dist/utils/__tests__/skill-slash.test.d.ts +2 -0
- package/dist/utils/__tests__/skill-slash.test.d.ts.map +1 -0
- package/dist/utils/__tests__/skill-slash.test.js +307 -0
- package/dist/utils/__tests__/skill-slash.test.js.map +1 -0
- package/dist/utils/__tests__/windows-search.test.d.ts +2 -0
- package/dist/utils/__tests__/windows-search.test.d.ts.map +1 -0
- package/dist/utils/__tests__/windows-search.test.js +154 -0
- package/dist/utils/__tests__/windows-search.test.js.map +1 -0
- package/dist/utils/skill-registry.d.ts +51 -0
- package/dist/utils/skill-registry.d.ts.map +1 -0
- package/dist/utils/skill-registry.js +168 -0
- package/dist/utils/skill-registry.js.map +1 -0
- package/dist/utils/skill-slash.d.ts +18 -0
- package/dist/utils/skill-slash.d.ts.map +1 -0
- package/dist/utils/skill-slash.js +20 -0
- package/dist/utils/skill-slash.js.map +1 -0
- package/dist/utils/windows-search.d.ts +42 -0
- package/dist/utils/windows-search.d.ts.map +1 -0
- package/dist/utils/windows-search.js +94 -0
- package/dist/utils/windows-search.js.map +1 -0
- package/docs/ARCHITECTURE.md +29 -29
- package/docs/CLAUDE.md +4 -4
- package/docs/FIELD-TESTING.md +563 -0
- package/docs/GETTING-STARTED.md +11 -11
- package/docs/HOOKS.md +8 -8
- package/docs/MIGRATION.md +100 -100
- package/docs/PERFORMANCE-MONITORING.md +2 -2
- package/docs/REFERENCE.md +131 -131
- package/docs/TOOLS.md +1 -1
- package/docs/cancel-skill-active-state-gap.md +2 -2
- package/docs/copilot-instructions.md +3 -3
- package/docs/design/P2-RUN-LEDGER-AND-INTAKE-PLAN.md +1 -1
- package/docs/design/project-session-manager.md +1 -1
- package/docs/field-testing-first-prompt.md +36 -0
- package/docs/shared/features.md +5 -5
- package/docs/shipyard.md +8 -8
- package/package.json +2 -2
- package/plugin.json +1 -1
- package/scripts/build-workflow-stage-prompts.mjs +15 -6
- package/scripts/ci/duration-sequencer.mjs +69 -0
- package/scripts/ci/durations-reporter.mjs +34 -0
- package/scripts/ci/tree-reuse.mjs +166 -0
- package/scripts/ci/update-test-durations.mjs +62 -0
- package/scripts/copilot/dispatch.cjs +3 -0
- package/scripts/find-node.sh +1 -1
- package/scripts/keyword-detector.mjs +5 -4
- package/scripts/lib/copilot-hook-adapter.cjs +3 -0
- package/scripts/lib/hud-wrapper-template.txt +2 -2
- package/scripts/lib/skill-slash.mjs +11 -0
- package/scripts/lib/windows-search.cjs +40 -0
- package/scripts/lib/windows-search.mjs +7 -0
- package/scripts/lib/workflow-stage-prompts.mjs +6 -2
- package/scripts/persistent-mode.cjs +11 -10
- package/scripts/persistent-mode.mjs +16 -11
- package/scripts/plugin-shipping-surface.mjs +1 -0
- package/scripts/pre-tool-enforcer.mjs +1 -1
- package/scripts/session-start.mjs +3 -3
- package/scripts/setup-claude-md.mjs +3 -0
- package/scripts/setup-config.mjs +420 -0
- package/scripts/setup-progress.mjs +3 -0
- package/scripts/shipyard-audit.mjs +2 -1
- package/scripts/stale-run-reporter.mjs +2 -1
- package/skills/AGENTS.md +4 -4
- package/skills/ai-slop-cleaner/SKILL.md +3 -3
- package/skills/ask/SKILL.md +7 -7
- package/skills/ask-navigator/SKILL.md +11 -11
- package/skills/autopilot/SKILL.md +5 -5
- package/skills/cancel/SKILL.md +5 -5
- package/skills/configure-notifications/SKILL.md +10 -10
- package/skills/critique/SKILL.md +1 -1
- package/skills/discover/SKILL.md +1 -1
- package/skills/drydock/SKILL.md +5 -5
- package/skills/external-context/SKILL.md +4 -4
- package/skills/graph/SKILL.md +2 -2
- package/skills/harbor/SKILL.md +7 -7
- package/skills/hud/SKILL.md +10 -10
- package/skills/intent/SKILL.md +1 -1
- package/skills/launch/SKILL.md +13 -13
- package/skills/loft/SKILL.md +2 -2
- package/skills/map/SKILL.md +1 -1
- package/skills/omc-ado-auto-review/SKILL.md +2 -2
- package/skills/omc-ado-review/SKILL.md +2 -2
- package/skills/omc-ado-setup/SKILL.md +1 -1
- package/skills/omc-ado-sprint/SKILL.md +2 -2
- package/skills/omc-ado-triage/SKILL.md +2 -2
- package/skills/omc-doctor/SKILL.md +1 -1
- package/skills/omc-gh-auto-review/SKILL.md +2 -2
- package/skills/omc-gh-project/SKILL.md +2 -2
- package/skills/omc-gh-review/SKILL.md +2 -2
- package/skills/omc-gh-setup/SKILL.md +2 -2
- package/skills/omc-gh-triage/SKILL.md +3 -3
- package/skills/omc-setup/SKILL.md +16 -14
- package/skills/omc-setup/phases/01-install-claude-md.md +1 -18
- package/skills/omc-setup/phases/02-configure.md +10 -30
- package/skills/omc-setup/phases/03-integrations.md +5 -5
- package/skills/omc-setup/phases/04-welcome.md +7 -7
- package/skills/plan/SKILL.md +1 -1
- package/skills/project-session-manager/SKILL.md +1 -1
- package/skills/ralph/SKILL.md +6 -6
- package/skills/ralph-experiment/SKILL.md +3 -3
- package/skills/ralplan/SKILL.md +4 -4
- package/skills/release/SKILL.md +1 -1
- package/skills/self-improve/SKILL.md +1 -1
- package/skills/skill/SKILL.md +12 -12
- package/skills/team/SKILL.md +8 -8
- package/skills/trace/SKILL.md +1 -1
- package/skills/visual-verdict/SKILL.md +1 -1
- package/templates/hooks/keyword-detector.mjs +4 -4
- package/templates/hooks/lib/workflow-stage-prompts.mjs +6 -2
- package/templates/hooks/persistent-mode.mjs +12 -8
- package/templates/hooks/session-start.mjs +1 -1
- package/bridge/__pycache__/gyoshu_bridge.cpython-314.pyc +0 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// Generated by scripts/build-workflow-stage-prompts.mjs from the canonical TypeScript stage adapters.
|
|
2
2
|
// Do not edit this file directly.
|
|
3
3
|
|
|
4
|
+
import { skillSlash } from './skill-slash.mjs';
|
|
5
|
+
|
|
4
6
|
const TASK_DISPLAY_TOKEN = "__OMC_NAMED_WORKFLOW_TASK_DISPLAY__";
|
|
5
7
|
const ANALYST_PROMPT_TOKEN = "__OMC_NAMED_WORKFLOW_ANALYST_PROMPT__";
|
|
6
8
|
const ARCHITECT_PROMPT_TOKEN = "__OMC_NAMED_WORKFLOW_ARCHITECT_PROMPT__";
|
|
7
9
|
const PROMPTS = Object.freeze({
|
|
8
|
-
"ralplan": "## PIPELINE STAGE: RALPLAN (Consensus Planning)\n\nYour task: Expand the idea into a detailed spec and implementation plan using consensus-driven planning.\n\n**Original Idea:**\n\n __OMC_NAMED_WORKFLOW_TASK_DISPLAY__\n\n### Part 1: Idea Expansion (Spec Creation)\n\n## AUTOPILOT PHASE 0: IDEA EXPANSION\n\nYour task: Expand this product idea into detailed requirements and technical spec.\n\n**Original Idea:**\n\n __OMC_NAMED_WORKFLOW_TASK_DISPLAY__\n\n### Step 1: Spawn Analyst for Requirements\n\n```\nTask(\n subagent_type=\"oh-my-copilot:analyst\",\n model=\"opus\",\n prompt=__OMC_NAMED_WORKFLOW_ANALYST_PROMPT__\n)\n```\n\nWAIT for Analyst to complete before proceeding.\n\n### Step 2: Spawn Architect for Technical Spec\n\nAfter Analyst completes, spawn Architect:\n\n```\nTask(\n subagent_type=\"oh-my-copilot:architect\",\n model=\"opus\",\n prompt=__OMC_NAMED_WORKFLOW_ARCHITECT_PROMPT__\n)\n```\n\n### Step 2.5: Persist Open Questions\n\nIf the Analyst output includes a `### Open Questions` section, extract those items and save them to `.omg/plans/open-questions.md` using the standard format:\n\n```\n## [Topic] - [Date]\n- [ ] [Question] — [Why it matters]\n```\n\nThe Analyst is read-only and cannot write files, so you must persist its open questions on its behalf.\n\n### Step 3: Save Combined Spec\n\nCombine Analyst requirements + Architect technical spec into a single document.\nSave to: `.omg/autopilot/spec.md`\n\n\n\n\n### Part 2: Consensus Planning\n\nAfter the spec is created at `.omg/autopilot/spec.md`, invoke the RALPLAN consensus workflow:\n\nUse the
|
|
10
|
+
"ralplan": "## PIPELINE STAGE: RALPLAN (Consensus Planning)\n\nYour task: Expand the idea into a detailed spec and implementation plan using consensus-driven planning.\n\n**Original Idea:**\n\n __OMC_NAMED_WORKFLOW_TASK_DISPLAY__\n\n### Part 1: Idea Expansion (Spec Creation)\n\n## AUTOPILOT PHASE 0: IDEA EXPANSION\n\nYour task: Expand this product idea into detailed requirements and technical spec.\n\n**Original Idea:**\n\n __OMC_NAMED_WORKFLOW_TASK_DISPLAY__\n\n### Step 1: Spawn Analyst for Requirements\n\n```\nTask(\n subagent_type=\"oh-my-copilot:analyst\",\n model=\"opus\",\n prompt=__OMC_NAMED_WORKFLOW_ANALYST_PROMPT__\n)\n```\n\nWAIT for Analyst to complete before proceeding.\n\n### Step 2: Spawn Architect for Technical Spec\n\nAfter Analyst completes, spawn Architect:\n\n```\nTask(\n subagent_type=\"oh-my-copilot:architect\",\n model=\"opus\",\n prompt=__OMC_NAMED_WORKFLOW_ARCHITECT_PROMPT__\n)\n```\n\n### Step 2.5: Persist Open Questions\n\nIf the Analyst output includes a `### Open Questions` section, extract those items and save them to `.omg/plans/open-questions.md` using the standard format:\n\n```\n## [Topic] - [Date]\n- [ ] [Question] — [Why it matters]\n```\n\nThe Analyst is read-only and cannot write files, so you must persist its open questions on its behalf.\n\n### Step 3: Save Combined Spec\n\nCombine Analyst requirements + Architect technical spec into a single document.\nSave to: `.omg/autopilot/spec.md`\n\n\n\n\n### Part 2: Consensus Planning\n\nAfter the spec is created at `.omg/autopilot/spec.md`, invoke the RALPLAN consensus workflow:\n\nUse the `__OMC_SKILL_SLASH_ralplan__` skill to create a consensus-driven implementation plan.\nThe plan should be saved to: `.omg/plans/autopilot-impl.md`\n\nThe RALPLAN process will:\n1. **Planner** creates initial implementation plan from the spec\n2. **Architect** reviews for technical feasibility and design quality\n3. **Critic** challenges assumptions and identifies gaps\n4. Iterate until consensus is reached\n\n### Completion\n\nWhen both the spec AND the consensus plan are complete and approved:\n\nSignal: PIPELINE_RALPLAN_COMPLETE\n",
|
|
9
11
|
"execution": "## PIPELINE STAGE: EXECUTION (Solo Mode)\n\nExecute the implementation plan using single-session execution.\n\n### Setup\n\nRead the implementation plan at: `.omg/plans/autopilot-impl.md`\n\n### Solo Execution\n\nExecute tasks sequentially (or with limited parallelism via background agents):\n\n1. Read and understand each task from the plan\n2. Execute tasks in dependency order\n3. Use executor agents for independent tasks that can run in parallel\n4. Track progress in the TODO list\n\n### Output Contract\n\nEvery spawned executor response must return ONLY a short execution summary under 100 words covering what changed, files touched, verification status, and blockers. Store bulky logs/details in files or artifacts and reference them briefly.\n\n### Agent Spawning\n\n```\n// For simple tasks (single file, straightforward logic)\nTask(subagent_type=\"oh-my-copilot:executor\", model=\"haiku\", prompt=\"...\")\n\n// For standard implementation (feature, multiple methods)\nTask(subagent_type=\"oh-my-copilot:executor\", model=\"sonnet\", prompt=\"...\")\n\n// For complex work (architecture, debugging, refactoring)\nTask(subagent_type=\"oh-my-copilot:executor\", model=\"opus\", prompt=\"...\")\n```\n\n### Progress Tracking\n\nUpdate TODO list as tasks complete:\n- Mark task `in_progress` when starting\n- Mark task `completed` when done\n- Add new tasks if discovered during implementation\n\n### Completion\n\nWhen ALL tasks from the plan are implemented:\n\nSignal: PIPELINE_EXECUTION_COMPLETE\n",
|
|
10
12
|
"ralph": "## PIPELINE STAGE: RALPH (Verification)\n\nVerify the implementation against the specification using the Ralph verification loop.\n\n**Max Iterations:** 100\n\n### Verification Process\n\nSpawn parallel verification reviewers:\n\nEach reviewer must return ONLY a concise review summary under 100 words covering verdict, evidence highlights, files checked, and blockers. Avoid dumping long logs or transcripts into the main session.\n\n```\n// Functional Completeness Review\nTask(\n subagent_type=\"oh-my-copilot:architect\",\n model=\"opus\",\n prompt=\"FUNCTIONAL COMPLETENESS REVIEW\n\nRead the original spec at: .omg/autopilot/spec.md\n\nVerify:\n1. All functional requirements are implemented\n2. All non-functional requirements are addressed\n3. All acceptance criteria from the plan are met\n4. No missing features or incomplete implementations\n\nVerdict: APPROVED (all requirements met) or REJECTED (with specific gaps)\"\n)\n\n// Security Review\nTask(\n subagent_type=\"oh-my-copilot:security-reviewer\",\n model=\"opus\",\n prompt=\"SECURITY REVIEW\n\nCheck the implementation for:\n1. OWASP Top 10 vulnerabilities\n2. Input validation and sanitization\n3. Authentication/authorization issues\n4. Sensitive data exposure\n5. Injection vulnerabilities (SQL, command, XSS)\n6. Hardcoded secrets or credentials\n\nVerdict: APPROVED (no vulnerabilities) or REJECTED (with specific issues)\"\n)\n\n// Code Quality Review\nTask(\n subagent_type=\"oh-my-copilot:code-reviewer\",\n model=\"opus\",\n prompt=\"CODE QUALITY REVIEW\n\nReview the implementation for:\n1. Code organization and structure\n2. Design patterns and best practices\n3. Error handling completeness\n4. Test coverage adequacy\n5. Maintainability and readability\n\nVerdict: APPROVED (high quality) or REJECTED (with specific issues)\"\n)\n```\n\n### Fix and Re-verify Loop\n\nIf any reviewer rejects:\n1. Collect all rejection reasons\n2. Fix each issue identified\n3. Re-run verification (up to 100 iterations)\n\n### Completion\n\nWhen all reviewers approve:\n\nSignal: PIPELINE_RALPH_COMPLETE\n",
|
|
11
13
|
"qa": "## PIPELINE STAGE: QA (Quality Assurance)\n\nRun build/lint/test cycling until all checks pass.\n\n## AUTOPILOT PHASE 3: QUALITY ASSURANCE\n\nRun build/lint/test cycles until all pass.\n\n### QA Sequence\n\n1. **Build**: Run the project's build command:\n - JavaScript/TypeScript: `npm run build` (or yarn/pnpm equivalent)\n - Python: `python -m build` (if applicable)\n - Go: `go build ./...`\n - Rust: `cargo build`\n - Java: `mvn compile` or `gradle build`\n2. **Lint**: Run the project's linter:\n - JavaScript/TypeScript: `npm run lint`\n - Python: `ruff check .` or `flake8`\n - Go: `golangci-lint run`\n - Rust: `cargo clippy`\n3. **Test**: Run the project's tests:\n - JavaScript/TypeScript: `npm test`\n - Python: `pytest`\n - Go: `go test ./...`\n - Rust: `cargo test`\n - Java: `mvn test` or `gradle test`\n\n### Fix Cycle\n\nFor each failure:\n\n1. **Diagnose** - Understand the error\n```\nTask(\n subagent_type=\"oh-my-copilot:architect\",\n model=\"haiku\",\n prompt=\"Diagnose this error and suggest fix: [ERROR]\"\n)\n```\n\n2. **Fix** - Apply the fix\n```\nTask(\n subagent_type=\"oh-my-copilot:debugger\",\n model=\"sonnet\",\n prompt=\"Fix this error with minimal changes: [ERROR]\"\n)\n```\n\n3. **Re-run** - Verify the fix worked\n4. **Repeat** - Until pass or max cycles (5)\n\n### Exit Conditions\n\n- All checks pass\n- Max cycles reached → Report failures\n- Same error 3 times → Escalate to user\n\n\n\n\n### Completion\n\nWhen all QA checks pass:\n\nSignal: PIPELINE_QA_COMPLETE\n"
|
|
@@ -28,5 +30,7 @@ export function resolveCanonicalWorkflowStagePrompt(stageId, task) {
|
|
|
28
30
|
[ANALYST_PROMPT_TOKEN]: JSON.stringify(analystPrompt(normalizedTask)),
|
|
29
31
|
[ARCHITECT_PROMPT_TOKEN]: JSON.stringify(architectPrompt(normalizedTask)),
|
|
30
32
|
};
|
|
31
|
-
return prompt
|
|
33
|
+
return prompt
|
|
34
|
+
.replace(/__OMC_NAMED_WORKFLOW_(?:TASK_DISPLAY|ANALYST_PROMPT|ARCHITECT_PROMPT)__/g, (token) => replacements[token])
|
|
35
|
+
.replace(/__OMC_SKILL_SLASH_([a-z][a-z0-9-]*)__/g, (_token, name) => skillSlash(name));
|
|
32
36
|
}
|
|
@@ -906,6 +906,7 @@ function isScheduledWakeupStop(data) {
|
|
|
906
906
|
}
|
|
907
907
|
|
|
908
908
|
async function main() {
|
|
909
|
+
const { skillSlash } = await import(require("url").pathToFileURL(join(__dirname, "lib", "skill-slash.mjs")).href);
|
|
909
910
|
try {
|
|
910
911
|
const input = await readStdin();
|
|
911
912
|
let data = {};
|
|
@@ -993,7 +994,7 @@ async function main() {
|
|
|
993
994
|
// Fire-and-forget notification
|
|
994
995
|
sendStopNotification('ralph', ralph.state, sessionId, directory).catch(() => {});
|
|
995
996
|
|
|
996
|
-
const ralphReason = `[RALPH LOOP - ITERATION ${iteration + 1}/${maxIter}] Work is NOT done. Continue working.\nWhen FULLY complete (after Architect verification), run
|
|
997
|
+
const ralphReason = `[RALPH LOOP - ITERATION ${iteration + 1}/${maxIter}] Work is NOT done. Continue working.\nWhen FULLY complete (after Architect verification), run ${skillSlash("cancel")} to cleanly exit ralph mode and clean up all state files. If cancel fails, retry with ${skillSlash("cancel")} --force.\n${ralph.state.prompt ? `Task: ${ralph.state.prompt}` : ""}`;
|
|
997
998
|
console.log(
|
|
998
999
|
JSON.stringify({
|
|
999
1000
|
decision: "block",
|
|
@@ -1011,7 +1012,7 @@ async function main() {
|
|
|
1011
1012
|
return;
|
|
1012
1013
|
}
|
|
1013
1014
|
writeJsonFile(ralph.path, ralph.state);
|
|
1014
|
-
const extendReason = `[RALPH LOOP - EXTENDED] Max iterations reached; extending to ${ralph.state.max_iterations} and continuing. When FULLY complete (after Architect verification), run
|
|
1015
|
+
const extendReason = `[RALPH LOOP - EXTENDED] Max iterations reached; extending to ${ralph.state.max_iterations} and continuing. When FULLY complete (after Architect verification), run ${skillSlash("cancel")} (or --force).`;
|
|
1015
1016
|
console.log(JSON.stringify({ decision: "block", reason: extendReason }));
|
|
1016
1017
|
return;
|
|
1017
1018
|
}
|
|
@@ -1037,7 +1038,7 @@ async function main() {
|
|
|
1037
1038
|
sendStopNotification('autopilot', autopilot.state, sessionId, directory).catch(() => {});
|
|
1038
1039
|
|
|
1039
1040
|
const cancelGuidance = typeof autopilot.state.session_id === "string" && autopilot.state.session_id === sessionId
|
|
1040
|
-
?
|
|
1041
|
+
? ` When all phases are complete, run ${skillSlash("cancel")} to cleanly exit and clean up this session's autopilot state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`
|
|
1041
1042
|
: "";
|
|
1042
1043
|
console.log(
|
|
1043
1044
|
JSON.stringify({
|
|
@@ -1100,7 +1101,7 @@ async function main() {
|
|
|
1100
1101
|
writeStopBreaker(stateDir, "team-pipeline", breakerCount, sessionId);
|
|
1101
1102
|
sendStopNotification("team", team.state, sessionId, directory).catch(() => {});
|
|
1102
1103
|
|
|
1103
|
-
const teamPipelineReason = `[TEAM PIPELINE - PHASE: ${phase.toUpperCase()} | REINFORCEMENT ${breakerCount}/${TEAM_PIPELINE_STOP_BLOCKER_MAX}] The team pipeline is active in phase "${phase}". Continue working on the team workflow. Do not stop until the pipeline reaches a terminal state (complete/failed/cancelled). When done, run
|
|
1104
|
+
const teamPipelineReason = `[TEAM PIPELINE - PHASE: ${phase.toUpperCase()} | REINFORCEMENT ${breakerCount}/${TEAM_PIPELINE_STOP_BLOCKER_MAX}] The team pipeline is active in phase "${phase}". Continue working on the team workflow. Do not stop until the pipeline reaches a terminal state (complete/failed/cancelled). When done, run ${skillSlash("cancel")} to cleanly exit.`;
|
|
1104
1105
|
console.log(JSON.stringify({
|
|
1105
1106
|
decision: "block",
|
|
1106
1107
|
reason: teamPipelineReason,
|
|
@@ -1142,7 +1143,7 @@ async function main() {
|
|
|
1142
1143
|
|
|
1143
1144
|
sendStopNotification("ralplan", ralplan.state, sessionId, directory).catch(() => {});
|
|
1144
1145
|
|
|
1145
|
-
const ralplanReason = `[RALPLAN - CONSENSUS PLANNING | REINFORCEMENT ${breakerCount}/${RALPLAN_STOP_BLOCKER_MAX}] The ralplan consensus workflow is active. Continue the Planner/Architect/Critic planning loop only. Ralplan is read-only/planning mode: do not implement, invoke execution skills, edit source, commit, push, or open PRs from this continuation. When consensus is reached, stop at a pending-approval handoff and require explicit user approval before execution. When done, run
|
|
1146
|
+
const ralplanReason = `[RALPLAN - CONSENSUS PLANNING | REINFORCEMENT ${breakerCount}/${RALPLAN_STOP_BLOCKER_MAX}] The ralplan consensus workflow is active. Continue the Planner/Architect/Critic planning loop only. Ralplan is read-only/planning mode: do not implement, invoke execution skills, edit source, commit, push, or open PRs from this continuation. When consensus is reached, stop at a pending-approval handoff and require explicit user approval before execution. When done, run ${skillSlash("cancel")} to cleanly exit.`;
|
|
1146
1147
|
console.log(JSON.stringify({
|
|
1147
1148
|
decision: "block",
|
|
1148
1149
|
reason: ralplanReason,
|
|
@@ -1171,7 +1172,7 @@ async function main() {
|
|
|
1171
1172
|
console.log(
|
|
1172
1173
|
JSON.stringify({
|
|
1173
1174
|
decision: "block",
|
|
1174
|
-
reason: `[ULTRAPILOT] ${incomplete} workers still running. Continue working. When all workers complete, run
|
|
1175
|
+
reason: `[ULTRAPILOT] ${incomplete} workers still running. Continue working. When all workers complete, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
|
|
1175
1176
|
}),
|
|
1176
1177
|
);
|
|
1177
1178
|
return;
|
|
@@ -1196,7 +1197,7 @@ async function main() {
|
|
|
1196
1197
|
console.log(
|
|
1197
1198
|
JSON.stringify({
|
|
1198
1199
|
decision: "block",
|
|
1199
|
-
reason: `[SWARM ACTIVE] ${pending} tasks remain. Continue working. When all tasks are done, run
|
|
1200
|
+
reason: `[SWARM ACTIVE] ${pending} tasks remain. Continue working. When all tasks are done, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
|
|
1200
1201
|
}),
|
|
1201
1202
|
);
|
|
1202
1203
|
return;
|
|
@@ -1221,7 +1222,7 @@ async function main() {
|
|
|
1221
1222
|
console.log(
|
|
1222
1223
|
JSON.stringify({
|
|
1223
1224
|
decision: "block",
|
|
1224
|
-
reason: `[PIPELINE - Stage ${currentStage + 1}/${totalStages}] Pipeline not complete. Continue working. When all stages complete, run
|
|
1225
|
+
reason: `[PIPELINE - Stage ${currentStage + 1}/${totalStages}] Pipeline not complete. Continue working. When all stages complete, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
|
|
1225
1226
|
}),
|
|
1226
1227
|
);
|
|
1227
1228
|
return;
|
|
@@ -1245,7 +1246,7 @@ async function main() {
|
|
|
1245
1246
|
console.log(
|
|
1246
1247
|
JSON.stringify({
|
|
1247
1248
|
decision: "block",
|
|
1248
|
-
reason: `[TEAM - Phase: ${phase}] Team mode active. Continue working. When all team tasks complete, run
|
|
1249
|
+
reason: `[TEAM - Phase: ${phase}] Team mode active. Continue working. When all team tasks complete, run ${skillSlash("cancel")} to cleanly exit. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
|
|
1249
1250
|
}),
|
|
1250
1251
|
);
|
|
1251
1252
|
return;
|
|
@@ -1269,7 +1270,7 @@ async function main() {
|
|
|
1269
1270
|
console.log(
|
|
1270
1271
|
JSON.stringify({
|
|
1271
1272
|
decision: "block",
|
|
1272
|
-
reason: `[OMC TEAMS - Phase: ${phase}] OMC Teams workers active. Continue working. When all workers complete, run
|
|
1273
|
+
reason: `[OMC TEAMS - Phase: ${phase}] OMC Teams workers active. Continue working. When all workers complete, run ${skillSlash("cancel")} to cleanly exit. If cancel fails, retry with ${skillSlash("cancel")} --force.`,
|
|
1273
1274
|
}),
|
|
1274
1275
|
);
|
|
1275
1276
|
return;
|
|
@@ -159,6 +159,7 @@ const { readStdin } = await import(
|
|
|
159
159
|
);
|
|
160
160
|
const { resolveOmcStateRoot } = await import(pathToFileURL(join(__dirname, "lib", "state-root.mjs")).href);
|
|
161
161
|
const { isCopilotHookHost } = await import(pathToFileURL(join(__dirname, "lib", "hook-host.mjs")).href);
|
|
162
|
+
const { skillSlash } = await import(pathToFileURL(join(__dirname, "lib", "skill-slash.mjs")).href);
|
|
162
163
|
const { incrementCopilotStopChain, isCopilotNativeAutopilot, readCopilotStopChain, resetCopilotStopChain, resolveCopilotStopChainMax } = await import(pathToFileURL(join(__dirname, "lib", "copilot-continuation.mjs")).href);
|
|
163
164
|
const { goalRecordMatches, isGoalRecordComplete, missingGoalCriteria, readOmgGoalRecord, ultragoalStatePlanId } = await import(pathToFileURL(join(__dirname, "lib", "omg-goal-record.mjs")).href);
|
|
164
165
|
|
|
@@ -1458,7 +1459,7 @@ async function main() {
|
|
|
1458
1459
|
console.log(
|
|
1459
1460
|
JSON.stringify({
|
|
1460
1461
|
decision: "block",
|
|
1461
|
-
reason: `[RALPH LOOP - HARD LIMIT] Reached hard max iterations (${hardMax}). Mode auto-disabled. Restart with
|
|
1462
|
+
reason: `[RALPH LOOP - HARD LIMIT] Reached hard max iterations (${hardMax}). Mode auto-disabled. Restart with ${skillSlash("ralph")} if needed.`,
|
|
1462
1463
|
}),
|
|
1463
1464
|
);
|
|
1464
1465
|
return;
|
|
@@ -1476,7 +1477,7 @@ async function main() {
|
|
|
1476
1477
|
}
|
|
1477
1478
|
writeJsonFile(ralph.path, ralph.state);
|
|
1478
1479
|
|
|
1479
|
-
let reason = `[RALPH LOOP - ITERATION ${iteration + 1}/${maxIter}] Work is NOT done. Continue working.\nWhen FULLY complete (after Architect verification), run
|
|
1480
|
+
let reason = `[RALPH LOOP - ITERATION ${iteration + 1}/${maxIter}] Work is NOT done. Continue working.\nWhen FULLY complete (after Architect verification), run ${skillSlash("cancel")} to cleanly exit ralph mode and clean up all state files. If cancel fails, retry with ${skillSlash("cancel")} --force.\n${ralph.state.prompt ? `Task: ${ralph.state.prompt}` : ""}`;
|
|
1480
1481
|
if (errorGuidance) {
|
|
1481
1482
|
reason = errorGuidance + reason;
|
|
1482
1483
|
}
|
|
@@ -1522,7 +1523,7 @@ async function main() {
|
|
|
1522
1523
|
}
|
|
1523
1524
|
writeJsonFile(ralph.path, ralph.state);
|
|
1524
1525
|
|
|
1525
|
-
const ralphExtendedReason = `[RALPH LOOP - EXTENDED] Max iterations reached; extending to ${ralph.state.max_iterations} and continuing. When FULLY complete (after Architect verification), run
|
|
1526
|
+
const ralphExtendedReason = `[RALPH LOOP - EXTENDED] Max iterations reached; extending to ${ralph.state.max_iterations} and continuing. When FULLY complete (after Architect verification), run ${skillSlash("cancel")} (or --force).`;
|
|
1526
1527
|
recordLoopContinuationShadow({
|
|
1527
1528
|
mode_name: "ralph",
|
|
1528
1529
|
session_id: sessionId || null,
|
|
@@ -1594,14 +1595,14 @@ async function main() {
|
|
|
1594
1595
|
const objective = getUltragoalObjective(ultragoal.state, omcRoot);
|
|
1595
1596
|
let reason;
|
|
1596
1597
|
if (copilotHost) {
|
|
1597
|
-
reason = `[ULTRAGOAL #${newCount}/${maxReinforcements}] Ultragoal mode is active. Continue the durable goal workflow, record evidence for every acceptance criterion with omg ultragoal goal-evidence --criterion <id> --evidence "<evidence>", and checkpoint .omg/ultragoal/ledger.jsonl before stopping. When all ultragoal stories are complete and the final quality gate passes, run
|
|
1598
|
+
reason = `[ULTRAGOAL #${newCount}/${maxReinforcements}] Ultragoal mode is active. Continue the durable goal workflow, record evidence for every acceptance criterion with omg ultragoal goal-evidence --criterion <id> --evidence "<evidence>", and checkpoint .omg/ultragoal/ledger.jsonl before stopping. When all ultragoal stories are complete and the final quality gate passes, run ${skillSlash("cancel")} to cleanly exit.`;
|
|
1598
1599
|
const goalObjective = goalRecord?.record.objective || objective;
|
|
1599
1600
|
if (goalObjective) reason += `\nGoal objective: ${goalObjective}`;
|
|
1600
1601
|
reason += goalRecord
|
|
1601
1602
|
? `\nMissing evidence: ${missingGoalCriteria(goalRecord.record).map((criterion) => `${criterion.id} ${criterion.text}`).join("; ")}`
|
|
1602
1603
|
: `\nNo OMG goal record yet: run omg ultragoal goal-start --criterion "<acceptance criterion>" (one --criterion per criterion).`;
|
|
1603
1604
|
} else {
|
|
1604
|
-
reason = `[ULTRAGOAL #${newCount}/${maxReinforcements}] Ultragoal mode is active. Continue the durable goal workflow, keep the matching Claude /goal active, and checkpoint .omg/ultragoal/ledger.jsonl before stopping. When all ultragoal stories are complete and the final quality gate passes, run
|
|
1605
|
+
reason = `[ULTRAGOAL #${newCount}/${maxReinforcements}] Ultragoal mode is active. Continue the durable goal workflow, keep the matching Claude /goal active, and checkpoint .omg/ultragoal/ledger.jsonl before stopping. When all ultragoal stories are complete and the final quality gate passes, run ${skillSlash("cancel")} to cleanly exit.`;
|
|
1605
1606
|
if (objective) reason += `\nClaude /goal objective: ${objective}`;
|
|
1606
1607
|
}
|
|
1607
1608
|
if (errorGuidance) {
|
|
@@ -1647,6 +1648,10 @@ async function main() {
|
|
|
1647
1648
|
}
|
|
1648
1649
|
const workflowAdvance = advanceWorkflowOnStop(autopilot.state, data, sessionId);
|
|
1649
1650
|
if (workflowAdvance) {
|
|
1651
|
+
// Test-only: tell a test the transcript snapshot is taken before the commit lock is tried.
|
|
1652
|
+
if (process.env.NODE_ENV === "test" && process.env.OMC_WORKFLOW_TEST_ADVANCE_SIGNAL_PATH) {
|
|
1653
|
+
try { closeSync(openSync(process.env.OMC_WORKFLOW_TEST_ADVANCE_SIGNAL_PATH, "wx")); } catch { /* exists or unwritable: never truncate, never fail the hook */ }
|
|
1654
|
+
}
|
|
1650
1655
|
const commit = commitWorkflowAdvance(autopilot.path, workflowAdvance);
|
|
1651
1656
|
if (commit.committed) {
|
|
1652
1657
|
console.log(JSON.stringify({ continue: false, decision: "block", reason: workflowAdvance.nextStage
|
|
@@ -1709,7 +1714,7 @@ async function main() {
|
|
|
1709
1714
|
autopilot.state = reinforced;
|
|
1710
1715
|
|
|
1711
1716
|
const cancelGuidance = hasValidSessionId && autopilot.state.session_id === sessionId
|
|
1712
|
-
?
|
|
1717
|
+
? ` When all phases are complete, run ${skillSlash("cancel")} to cleanly exit and clean up this session's autopilot state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`
|
|
1713
1718
|
: "";
|
|
1714
1719
|
let reason = `[AUTOPILOT - Phase: ${phase}] Autopilot not complete. Continue working.${cancelGuidance}`;
|
|
1715
1720
|
if (errorGuidance) {
|
|
@@ -1765,7 +1770,7 @@ async function main() {
|
|
|
1765
1770
|
ultrapilot.state.last_checked_at = new Date().toISOString();
|
|
1766
1771
|
writeJsonFile(ultrapilot.path, ultrapilot.state);
|
|
1767
1772
|
|
|
1768
|
-
let reason = `[ULTRAPILOT] ${incomplete} workers still running. Continue working. When all workers complete, run
|
|
1773
|
+
let reason = `[ULTRAPILOT] ${incomplete} workers still running. Continue working. When all workers complete, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
|
|
1769
1774
|
if (errorGuidance) {
|
|
1770
1775
|
reason = errorGuidance + reason;
|
|
1771
1776
|
}
|
|
@@ -1800,7 +1805,7 @@ async function main() {
|
|
|
1800
1805
|
swarmSummary.last_checked_at = new Date().toISOString();
|
|
1801
1806
|
writeJsonFile(join(stateDir, "swarm-summary.json"), swarmSummary);
|
|
1802
1807
|
|
|
1803
|
-
let reason = `[SWARM ACTIVE] ${pending} tasks remain. Continue working. When all tasks are done, run
|
|
1808
|
+
let reason = `[SWARM ACTIVE] ${pending} tasks remain. Continue working. When all tasks are done, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
|
|
1804
1809
|
if (errorGuidance) {
|
|
1805
1810
|
reason = errorGuidance + reason;
|
|
1806
1811
|
}
|
|
@@ -1837,7 +1842,7 @@ async function main() {
|
|
|
1837
1842
|
pipeline.state.last_checked_at = new Date().toISOString();
|
|
1838
1843
|
writeJsonFile(pipeline.path, pipeline.state);
|
|
1839
1844
|
|
|
1840
|
-
let reason = `[PIPELINE - Stage ${currentStage + 1}/${totalStages}] Pipeline not complete. Continue working. When all stages complete, run
|
|
1845
|
+
let reason = `[PIPELINE - Stage ${currentStage + 1}/${totalStages}] Pipeline not complete. Continue working. When all stages complete, run ${skillSlash("cancel")} to cleanly exit and clean up state files. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
|
|
1841
1846
|
if (errorGuidance) {
|
|
1842
1847
|
reason = errorGuidance + reason;
|
|
1843
1848
|
}
|
|
@@ -1874,7 +1879,7 @@ async function main() {
|
|
|
1874
1879
|
team.state.last_checked_at = new Date().toISOString();
|
|
1875
1880
|
writeJsonFile(team.path, team.state);
|
|
1876
1881
|
|
|
1877
|
-
let reason = `[TEAM - Phase: ${phase}] Team mode active. Continue working. When all team tasks complete, run
|
|
1882
|
+
let reason = `[TEAM - Phase: ${phase}] Team mode active. Continue working. When all team tasks complete, run ${skillSlash("cancel")} to cleanly exit. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
|
|
1878
1883
|
if (errorGuidance) {
|
|
1879
1884
|
reason = errorGuidance + reason;
|
|
1880
1885
|
}
|
|
@@ -1912,7 +1917,7 @@ async function main() {
|
|
|
1912
1917
|
omcTeams.state.last_checked_at = new Date().toISOString();
|
|
1913
1918
|
writeJsonFile(omcTeams.path, omcTeams.state);
|
|
1914
1919
|
|
|
1915
|
-
let reason = `[OMC TEAMS - Phase: ${phase}] OMC Teams workers active. Continue working. When all workers complete, run
|
|
1920
|
+
let reason = `[OMC TEAMS - Phase: ${phase}] OMC Teams workers active. Continue working. When all workers complete, run ${skillSlash("cancel")} to cleanly exit. If cancel fails, retry with ${skillSlash("cancel")} --force.`;
|
|
1916
1921
|
if (errorGuidance) {
|
|
1917
1922
|
reason = errorGuidance + reason;
|
|
1918
1923
|
}
|
|
@@ -272,6 +272,7 @@ function collectManifestEntrypoints(root) {
|
|
|
272
272
|
// Node setup lifecycle: the documented, bash-free entry points.
|
|
273
273
|
if (existsSync(join(root, 'scripts', 'setup-claude-md.mjs'))) paths.add('scripts/setup-claude-md.mjs');
|
|
274
274
|
if (existsSync(join(root, 'scripts', 'setup-progress.mjs'))) paths.add('scripts/setup-progress.mjs');
|
|
275
|
+
if (existsSync(join(root, 'scripts', 'setup-config.mjs'))) paths.add('scripts/setup-config.mjs');
|
|
275
276
|
if (existsSync(join(root, 'scripts', 'uninstall.mjs'))) paths.add('scripts/uninstall.mjs');
|
|
276
277
|
if (existsSync(join(root, 'scripts', 'lib', 'config-dir.mjs'))) paths.add('scripts/lib/config-dir.mjs');
|
|
277
278
|
for (const path of OPTIONAL_BRIDGE_PAYLOADS) if (existsSync(join(root, path))) paths.add(path);
|
|
@@ -1447,7 +1447,7 @@ function evaluateUltragoalPreToolEnforcement(stateDir, directory, sessionId, dat
|
|
|
1447
1447
|
: !recordUsable
|
|
1448
1448
|
? `the OMG goal record is ${record.status || 'missing a status'}.`
|
|
1449
1449
|
: `the OMG goal record objective does not match: "${record.objective}".`;
|
|
1450
|
-
return `[ULTRAGOAL GOAL RECORD REQUIRED] Active ultragoal state requires an OMG goal record before tools run on GitHub Copilot CLI (it has no Claude /goal); ${problem} Record the objective and its acceptance criteria with: omg ultragoal goal-start --criterion "<acceptance criterion>" (one --criterion per criterion; it defaults to the expected objective). Or run /
|
|
1450
|
+
return `[ULTRAGOAL GOAL RECORD REQUIRED] Active ultragoal state requires an OMG goal record before tools run on GitHub Copilot CLI (it has no Claude /goal); ${problem} Record the objective and its acceptance criteria with: omg ultragoal goal-start --criterion "<acceptance criterion>" (one --criterion per criterion; it defaults to the expected objective). Or run /cancel, or set ALLOW_ULTRAGOAL_WITHOUT_GOAL=1 to bypass this guard intentionally. Expected objective: ${expected || '<the objective passed to goal-start>'}`;
|
|
1451
1451
|
}
|
|
1452
1452
|
|
|
1453
1453
|
const mismatch = actualObjective
|
|
@@ -1034,7 +1034,7 @@ function formatUpdateNoticeForUser(updateInfo, options = {}) {
|
|
|
1034
1034
|
if (updateInfo?.source === 'copilot-plugin') {
|
|
1035
1035
|
action = 'To update the plugin, run: /plugin update oh-my-copilot@omc (from a shell: copilot plugin update oh-my-copilot@omc)';
|
|
1036
1036
|
} else if (updateInfo?.source === 'marketplace') {
|
|
1037
|
-
action = 'To update the plugin channel, run: copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /
|
|
1037
|
+
action = 'To update the plugin channel, run: copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /omc-setup';
|
|
1038
1038
|
} else if (options.copilotHost) {
|
|
1039
1039
|
// Copilot's /update updates Copilot CLI itself, not this package.
|
|
1040
1040
|
action = 'To update, run: npm i -g oh-my-copilot@latest';
|
|
@@ -1731,7 +1731,7 @@ async function main() {
|
|
|
1731
1731
|
driftMsg += `\nRun '/plugin update oh-my-copilot@omc' to sync plugin-managed components.`;
|
|
1732
1732
|
} else {
|
|
1733
1733
|
driftMsg += driftInfo.source === 'marketplace'
|
|
1734
|
-
? `\nRun 'copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /
|
|
1734
|
+
? `\nRun 'copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /omc-setup' to sync plugin-managed components.`
|
|
1735
1735
|
: `\nRun 'omg update' to sync all components.`;
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
@@ -1748,7 +1748,7 @@ async function main() {
|
|
|
1748
1748
|
const omcConfigPath = join(configDir, '.omc-config.json');
|
|
1749
1749
|
const omcConfig = readJsonFile(omcConfigPath);
|
|
1750
1750
|
if (omcConfig?.silentAutoUpdate) {
|
|
1751
|
-
messages.push(`<session-restore>\n\n[OMC] silentAutoUpdate is enabled in .omc-config.json but has no effect in plugin mode.\nTo update, use: copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /
|
|
1751
|
+
messages.push(`<session-restore>\n\n[OMC] silentAutoUpdate is enabled in .omc-config.json but has no effect in plugin mode.\nTo update, use: copilot plugin marketplace update omc && copilot plugin update oh-my-copilot@omc (shell), then /omc-setup\nOr run manually: omg update\n\n</session-restore>\n\n---\n`);
|
|
1752
1752
|
}
|
|
1753
1753
|
} catch {}
|
|
1754
1754
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
// POSIX toolchain; this one needs only the Node that already runs the coordinator,
|
|
7
7
|
// so setup works identically on Windows without Git Bash.
|
|
8
8
|
|
|
9
|
+
import { hardenWindowsExeSearch } from './lib/windows-search.mjs';
|
|
9
10
|
import { spawnSync } from 'node:child_process';
|
|
10
11
|
import { createHash } from 'node:crypto';
|
|
11
12
|
import {
|
|
@@ -24,6 +25,8 @@ import { fileURLToPath } from 'node:url';
|
|
|
24
25
|
|
|
25
26
|
import { getCopilotConfigDir } from './lib/config-dir.mjs';
|
|
26
27
|
|
|
28
|
+
hardenWindowsExeSearch();
|
|
29
|
+
|
|
27
30
|
const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url));
|
|
28
31
|
const SCRIPT_PLUGIN_ROOT = resolve(SCRIPT_DIR, '..');
|
|
29
32
|
const MAX_REEXEC_DEPTH = 2;
|