@agimon-ai/po-workflow 0.0.0-alpha.13 → 0.0.0-alpha.131

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.
Files changed (50) hide show
  1. package/LICENSE +149 -29
  2. package/README.md +175 -17
  3. package/dist/RecoverWorkflowService-C60pnmub.mjs +13701 -0
  4. package/dist/RecoverWorkflowService-C60pnmub.mjs.map +1 -0
  5. package/dist/RecoverWorkflowService-DJ9dzZmJ.cjs +14046 -0
  6. package/dist/RecoverWorkflowService-DJ9dzZmJ.cjs.map +1 -0
  7. package/dist/apiContracts.cjs +197 -35
  8. package/dist/apiContracts.cjs.map +1 -1
  9. package/dist/apiContracts.d.mts.map +1 -1
  10. package/dist/apiContracts.mjs +197 -35
  11. package/dist/apiContracts.mjs.map +1 -1
  12. package/dist/cli.cjs +1153 -0
  13. package/dist/cli.cjs.map +1 -0
  14. package/dist/cli.d.mts +1 -0
  15. package/dist/cli.mjs +1154 -0
  16. package/dist/cli.mjs.map +1 -0
  17. package/dist/extensions/native.mjs +3757 -686
  18. package/dist/extensions/native.mjs.map +1 -1
  19. package/dist/extensions/server.cjs +7756 -2945
  20. package/dist/extensions/server.cjs.map +1 -1
  21. package/dist/extensions/server.d.mts +2 -2
  22. package/dist/extensions/server.d.mts.map +1 -1
  23. package/dist/extensions/server.mjs +7750 -2916
  24. package/dist/extensions/server.mjs.map +1 -1
  25. package/dist/extensions/web.mjs +4451 -2829
  26. package/dist/extensions/web.mjs.map +1 -1
  27. package/dist/index.cjs +3 -1
  28. package/dist/index.d.mts +72 -4
  29. package/dist/index.d.mts.map +1 -1
  30. package/dist/index.mjs +3 -1
  31. package/dist/rolldown-runtime-VH7oDXx4.cjs +28 -0
  32. package/dist/workflowCommandTemplate-r57z3b46.mjs +79 -0
  33. package/dist/workflowCommandTemplate-r57z3b46.mjs.map +1 -0
  34. package/dist/workflowCommandTemplate-w6rOCJpw.cjs +102 -0
  35. package/dist/workflowCommandTemplate-w6rOCJpw.cjs.map +1 -0
  36. package/dist/{workflowLaunchCommand-C69Nn3k5.cjs → workflowLaunchCommand-Cm2_aoJ3.cjs} +21 -5
  37. package/dist/workflowLaunchCommand-Cm2_aoJ3.cjs.map +1 -0
  38. package/dist/{workflowLaunchCommand-GGqimmTC.mjs → workflowLaunchCommand-USS3q-Px.mjs} +21 -5
  39. package/dist/workflowLaunchCommand-USS3q-Px.mjs.map +1 -0
  40. package/llms.txt +8 -7
  41. package/package.json +105 -25
  42. package/src/prompts/codemode-how-to-workflow/SKILL.md +175 -0
  43. package/src/prompts/help-how-to-workflow/SKILL.md +174 -0
  44. package/src/types/webWorkflows.ts +31 -1
  45. package/LICENSE.web +0 -29
  46. package/dist/workflowLaunchCommand-C69Nn3k5.cjs.map +0 -1
  47. package/dist/workflowLaunchCommand-GGqimmTC.mjs.map +0 -1
  48. package/skills/workflow-recovery/SKILL.md +0 -85
  49. package/src/prompts/po-author-workflow/SKILL.md +0 -64
  50. package/src/prompts/po-use-workflow/SKILL.md +0 -21
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.cjs","names":["escapeShellArg","workflowShellOutput","getOrThrow","nodeHost","createNodePlatform","createWorkflowRuntime","createWorkflowHost","resolveWorkflowCliPath","createPoTelemetry","COMMAND_NAME","Command","Option","Command","WorkflowRegistryService","SUCCESS_EXIT_CODE","WorkflowRegistryService","RunDirectoryService","Command","COMMAND_NAME","COMMAND_DESCRIPTION","Option","resolve","formatText","relative","Command","COMMAND_NAME","COMMAND_DESCRIPTION","Option","diagnoseWorkflows","NativeTerminalService","terminalSocketPath","serveNativeTerminal","Command","COMMAND_NAME","parseFormat","InvalidArgumentError","Command","resolve","WorkflowParserService","Command","COMMAND_NAME","Option","DEFAULT_PAGE","DEFAULT_PAGE_SIZE","parsePositiveInteger","InvalidArgumentError","Command","listWorkflows","DEFAULT_ERROR_EXIT_CODE","WORKSPACE_OPTION_FLAGS","WORKSPACE_OPTION_DESCRIPTION","InvalidArgumentError","WorkflowRegistryService","Command","COMMAND_NAME","COMMAND_DESCRIPTION","DEFAULT_ERROR_EXIT_CODE","DEFAULT_WORKSPACE","WORKSPACE_OPTION_FLAGS","WORKSPACE_OPTION_DESCRIPTION","RecoverWorkflowService","Command","COMMAND_NAME","COMMAND_DESCRIPTION","DEFAULT_ERROR_EXIT_CODE","COMMAND_NAME","resolve","RunWorkflowService","Command","COMMAND_DESCRIPTION","Option","WORKFLOW_DECISION_FILE_ENV","getOrThrow","recordStepDecision","Command","COMMAND_NAME","COMMAND_DESCRIPTION","WorkflowRegistryService","Command","COMMAND_NAME","COMMAND_DESCRIPTION","Command","readWorkflowPackageVersion","requireWorkflowCapability"],"sources":["../src/constants/workflowCommands.ts","../src/services/WorkflowLauncherService/index.ts","../src/bin/workflowRuntime.ts","../src/bin/workflowCommands/closeLauncher.ts","../src/models/WorkflowCommandError.ts","../src/bin/workflowCommands/controlWorkflow.ts","../src/bin/workflowCommands/describeRun.ts","../src/bin/workflowCommands/doctor.ts","../src/bin/workflowCommands/hostRun.ts","../src/bin/workflowCommands/flushStdout.ts","../src/bin/workflowCommands/inspectWorkflow.ts","../src/bin/workflowCommands/launchProcess.ts","../src/bin/workflowCommands/listWorkflows.ts","../src/bin/workflowCommands/listWorkflowStatuses.ts","../src/bin/workflowCommands/recoverWorkflow.ts","../src/bin/workflowCommands/runWorkflow.ts","../src/bin/workflowCommands/step.ts","../src/bin/workflowCommands/stopWorkflow.ts","../src/bin/workflowMcp.ts"],"sourcesContent":["export const LIST_WORKFLOW_STATUSES_COMMAND_NAME = 'list-workflow-statuses';\n\nexport const LIST_WORKFLOW_STATUSES_COMMAND_DESCRIPTION = 'List tracked workflow runs and their current stages';\n\nexport const CLOSE_LAUNCHER_COMMAND_NAME = 'close-launcher';\n\nexport const DOCTOR_COMMAND_NAME = 'doctor';\n\nexport const DOCTOR_COMMAND_DESCRIPTION =\n 'Check workflow files before running them: schema, imports, commands, runConfig keys, runners and inputs';\n\nexport const RECOVER_WORKFLOW_COMMAND_NAME = 'recover-workflow';\n\nexport const RECOVER_WORKFLOW_COMMAND_DESCRIPTION = 'Recover a failed workflow run from the local workflow registry';\n\nexport const RUN_WORKFLOW_COMMAND_NAME = 'run-workflow';\n\nexport const RUN_WORKFLOW_COMMAND_DESCRIPTION = 'Run a GitHub Actions workflow file locally on macOS';\n\nexport const HOST_RUN_COMMAND_NAME = 'host-run';\n\nexport const STEP_COMMAND_NAME = 'step';\n\nexport const STEP_COMMAND_DESCRIPTION = 'Record the outcome of the running workflow step (complete, fix or fail)';\n\nexport const STOP_WORKFLOW_COMMAND_NAME = 'stop-workflow';\n\nexport const STOP_WORKFLOW_COMMAND_DESCRIPTION = 'Request a running workflow to stop gracefully';\n\nexport const DESCRIBE_RUN_COMMAND_NAME = 'describe-run';\n\nexport const DESCRIBE_RUN_COMMAND_DESCRIPTION = 'Describe a workflow run directory and report declared artifact status';\n\nexport const LAUNCH_PROCESS_COMMAND_NAME = 'launch-process';\n","import { getOrThrow } from '@agimon-ai/po-core/platform';\n\nimport type { WorkflowLauncherType } from '../../schemas/workflowEngine';\nimport { workflowShellOutput } from '../workflowRuntime';\nimport type { WorkflowRuntimeContext } from '../workflowRuntime/type';\nimport { escapeShellArg } from '../workflowShell';\n\nconst SESSION_NAME_PREFIX = 'workflow-';\nconst MAX_SESSION_NAME_LENGTH = 80;\n\n/**\n * Multiplexer preference, most widely installed first.\n *\n * tmux leads because it is on most developer machines; cmux is excellent but\n * niche. The previous default was cmux unconditionally, with no availability\n * check anywhere, so a machine without it failed at spawn with \"Unable to\n * execute cmux\" rather than falling back to anything.\n */\nconst MULTIPLEXER_PREFERENCE: readonly WorkflowLauncherType[] = ['tmux', 'cmux'];\n\n/**\n * Probe results, cached for the process.\n *\n * Launch is on the hot path for dispatch, and the answer cannot change without\n * the user installing software mid-session.\n */\nlet availability = new WeakMap<(name: string) => boolean, Map<string, boolean>>();\n\n/** Cache a caller-owned probe, never another host's PATH. */\nexport function isCommandAvailable(command: string, probe: (name: string) => boolean): boolean {\n let results = availability.get(probe);\n if (!results) availability.set(probe, (results = new Map()));\n const cached = results.get(command);\n if (cached !== undefined) return cached;\n const found = probe(command);\n results.set(command, found);\n return found;\n}\n\n/** Exposed for isolated probe tests. */\nexport function resetLauncherAvailabilityCache(): void {\n availability = new WeakMap();\n}\n\n/**\n * Pick the launcher to use.\n *\n * An explicit request always wins, even when the tool is missing, so a caller\n * that genuinely needs detachment gets a clear failure rather than a silent\n * downgrade. Otherwise prefer an installed user-facing multiplexer, then fall\n * back to the bundled RMUX host. The persisted `native` name remains for record\n * compatibility.\n */\nexport function resolveLauncher(\n requested: WorkflowLauncherType | undefined,\n probe: (name: string) => boolean,\n): WorkflowLauncherType {\n if (requested) return requested;\n for (const candidate of MULTIPLEXER_PREFERENCE) {\n if (isCommandAvailable(candidate, probe)) return candidate;\n }\n return 'native';\n}\n\nexport interface LaunchWorkflowProcessInput {\n command: string;\n cwd: string;\n launcher?: WorkflowLauncherType;\n name: string;\n}\n\nexport interface CloseWorkflowLauncherInput {\n launcher: WorkflowLauncherType;\n target: string;\n}\n\nexport interface LauncherInvocation {\n args: string[];\n command: string;\n}\n\nexport function normalizeTmuxSessionName(name: string): string {\n const normalized = name\n .trim()\n .replace(/[^a-zA-Z0-9_-]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .slice(0, MAX_SESSION_NAME_LENGTH);\n return `${SESSION_NAME_PREFIX}${normalized || 'run'}`;\n}\n\n/** The command name the RMUX-backed native launcher re-enters this CLI with. */\nexport const HOST_RUN_COMMAND = 'host-run';\n\n/**\n * The invocation that hosts a run through bundled RMUX.\n *\n * The detached process keeps the compatibility socket alive while RMUX owns the\n * terminal and process. The caller gets its prompt back immediately.\n */\nexport function buildNativeHostInvocation(\n input: LaunchWorkflowProcessInput,\n cliPath: string,\n executablePath: string,\n): LauncherInvocation {\n return {\n args: [cliPath, HOST_RUN_COMMAND, '--name', input.name, '--cwd', input.cwd, '--command', input.command],\n command: executablePath,\n };\n}\n\nexport function buildLaunchInvocation(input: LaunchWorkflowProcessInput): LauncherInvocation {\n const launcher = input.launcher ?? 'native';\n if (launcher === 'native') {\n // A native launch is not a shell invocation: it re-enters this CLI, which\n // needs the CLI's own path, and it detaches rather than being waited on.\n // `WorkflowLauncherService.launch` handles it for that reason.\n throw new Error(\"Native hosting is launched through buildNativeHostInvocation, which needs this CLI's own path.\");\n }\n if (launcher === 'tmux') {\n const sessionName = normalizeTmuxSessionName(input.name);\n const command = [\n 'export WORKFLOW_LAUNCHER_TYPE=tmux',\n `export WORKFLOW_TMUX_SESSION_NAME=${escapeShellArg(sessionName)}`,\n `exec ${input.command}`,\n ].join('; ');\n return {\n args: ['new-session', '-d', '-s', sessionName, '-c', input.cwd, command],\n command: 'tmux',\n };\n }\n\n return {\n args: [\n 'workspace',\n 'create',\n '--name',\n input.name,\n '--cwd',\n input.cwd,\n '--command',\n `export WORKFLOW_LAUNCHER_TYPE=cmux; exec ${input.command}`,\n ],\n command: 'cmux',\n };\n}\n\nexport function buildCloseInvocation(input: CloseWorkflowLauncherInput): LauncherInvocation {\n return input.launcher === 'tmux'\n ? { args: ['kill-session', '-t', input.target], command: 'tmux' }\n : { args: ['close-workspace', '--workspace', input.target], command: 'cmux' };\n}\n\nexport interface WorkflowLauncherDependencies {\n /**\n * This CLI's own entry, for the native host to be re-entered through.\n *\n * `process.argv[1]` is that path whenever the CLI was started as a command,\n * which is the only way a launch reaches here.\n */\n cliPath?: string;\n writeStdout?: (text: string) => void;\n writeStderr?: (text: string) => void;\n}\n\nexport class WorkflowLauncherService {\n constructor(\n private readonly runtime: WorkflowRuntimeContext,\n private readonly dependencies: WorkflowLauncherDependencies = {},\n ) {}\n\n async launch(input: LaunchWorkflowProcessInput): Promise<void> {\n let launcher = input.launcher;\n if (!launcher) {\n for (const candidate of MULTIPLEXER_PREFERENCE) {\n try {\n await workflowShellOutput(this.runtime, ['/bin/sh', '-c', `command -v ${escapeShellArg(candidate)}`]);\n launcher = candidate;\n break;\n } catch {\n /* Prefer the next available multiplexer. */\n }\n }\n }\n if (!launcher || launcher === 'native') {\n this.detach(\n buildNativeHostInvocation(\n input,\n this.dependencies.cliPath ?? this.runtime.workflowHost.cliPath,\n this.runtime.workflowHost.executablePath,\n ),\n input.cwd,\n );\n return;\n }\n await this.run(buildLaunchInvocation({ ...input, launcher }), input.cwd);\n }\n\n private detach(invocation: LauncherInvocation, cwd: string): void {\n const child = this.runtime.workflowHost.spawn(invocation.command, invocation.args, {\n cwd,\n env: this.runtime.baseEnvironment,\n detached: true,\n stdio: 'ignore',\n });\n child.on('error', (error) => {\n throw new Error(`Unable to execute ${invocation.command}`, { cause: error });\n });\n child.unref();\n }\n\n async close(input: CloseWorkflowLauncherInput): Promise<void> {\n await this.run(buildCloseInvocation(input));\n }\n\n private async run(invocation: LauncherInvocation, cwd = this.runtime.cwd): Promise<void> {\n let result;\n try {\n result = getOrThrow(\n await this.runtime.shell.exec(\n [invocation.command, ...invocation.args],\n {\n cwd,\n env: Object.fromEntries(\n Object.entries(this.runtime.baseEnvironment).filter(\n (entry): entry is [string, string] => entry[1] !== undefined,\n ),\n ),\n inheritEnv: false,\n onOutput: (text, _context, info) => {\n if (info.stream === 'stderr') this.dependencies.writeStderr?.(text);\n else this.dependencies.writeStdout?.(text);\n },\n },\n this.runtime.ioContext,\n ),\n );\n } catch (error) {\n throw new Error(`Unable to execute ${invocation.command}`, { cause: error });\n }\n if (result.exitCode !== 0)\n throw new Error(`${invocation.command} exited with status ${result.exitCode ?? 'unknown'}`);\n }\n}\n","import { createNodePlatform } from '@agimon-ai/po-core/nodePlatform';\nimport { nodeHost } from '@agimon-ai/po-core/platform';\nimport { createPoTelemetry, type PoTelemetry } from '@agimon-ai/po-core/telemetry';\n\nimport type { Logger } from '../services/workflowEngine/type';\nimport { createWorkflowHost, resolveWorkflowCliPath } from '../services/workflowHost';\nimport { createWorkflowRuntime } from '../services/workflowRuntime';\nimport type { WorkflowRuntimeContext } from '../services/workflowRuntime/type';\n\nlet runtime: WorkflowRuntimeContext | undefined;\nlet logger: Logger | undefined;\n\n/** The standalone executable admits ambient facts once, before any engine service is constructed. */\nexport function getCliWorkflowRuntime(): WorkflowRuntimeContext {\n if (runtime) return runtime;\n const environment = Object.freeze({ ...process.env });\n const cwd = process.cwd();\n const homeDirectory = nodeHost.homeDirectory();\n const temporaryDirectory = nodeHost.temporaryDirectory();\n const execution = createNodePlatform({ homeDirectory, temporaryDirectory }).env(cwd);\n runtime = createWorkflowRuntime({\n baseEnvironment: environment,\n cwd,\n homeDirectory,\n temporaryDirectory,\n fs: execution,\n shell: execution,\n workflowHost: createWorkflowHost({\n environment,\n cwd,\n homeDirectory,\n temporaryDirectory,\n cliPath: resolveWorkflowCliPath(),\n }),\n });\n return runtime;\n}\n\n/** One telemetry backend per standalone CLI invocation. */\nexport function getCliWorkflowLogger(): Logger {\n return (logger ??= createCliWorkflowLogger({\n info: (message) => console.info(message),\n warn: (message) => console.error(message),\n error: (message) => console.error(message),\n }));\n}\n\nexport interface InstallOtelErrorLoggerOptions {\n serviceName: string;\n}\n\nlet installedServiceName = 'workflow-mcp';\nlet telemetry: PoTelemetry | undefined;\n\nfunction getTelemetry(serviceName: string): PoTelemetry {\n const runtime = getCliWorkflowRuntime();\n return (telemetry ??= createPoTelemetry({\n packageName: '@agimon-ai/po-workflow',\n serviceName,\n workspaceRoot: runtime.cwd,\n cwd: runtime.cwd,\n env: { ...runtime.baseEnvironment },\n }));\n}\n\nexport async function logOtelError(serviceName: string, ...args: unknown[]): Promise<void> {\n console.error(...args);\n await getTelemetry(serviceName || installedServiceName).recordError(\n 'workflow.cli.error',\n args.find((arg): arg is Error => arg instanceof Error),\n { 'service.name': serviceName || installedServiceName },\n );\n}\n\nexport function createCliWorkflowLogger(baseLogger: Pick<Logger, 'info' | 'warn' | 'error'>): Logger {\n return {\n ...baseLogger,\n async event(level, name, options = {}): Promise<void> {\n const telemetry = getTelemetry(installedServiceName);\n if (level === 'error' || level === 'fatal') {\n await telemetry.recordError(name, options.exception, options.attributes);\n } else if (level === 'warn') {\n await telemetry.recordWarning(name, options.exception, options.attributes);\n } else if (level === 'debug' || level === 'trace') {\n await telemetry.recordDebug(name, options.attributes);\n } else {\n await telemetry.recordEvent(name, options.attributes);\n }\n },\n runInSpan: (name, attributes, work, parent) =>\n getTelemetry(installedServiceName).runInSpan(name, attributes, work, parent),\n flush: flushOtelErrorLogger,\n };\n}\n\nexport async function flushOtelErrorLogger(): Promise<void> {\n await telemetry?.flush();\n}\n\nexport function installOtelErrorLogger(options: InstallOtelErrorLoggerOptions): void {\n installedServiceName = options.serviceName;\n getTelemetry(installedServiceName);\n}\n","import { Command, Option } from 'commander';\n\nimport { CLOSE_LAUNCHER_COMMAND_NAME as COMMAND_NAME } from '../../constants/workflowCommands';\nimport type { WorkflowLauncherType } from '../../schemas/workflowEngine';\nimport { WorkflowLauncherService } from '../../services/WorkflowLauncherService';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\n\ninterface CloseLauncherOptions {\n delaySeconds: string;\n launcher?: WorkflowLauncherType;\n target?: string;\n}\n\ninterface CloseLauncherCommandDependencies {\n createService?: () => WorkflowLauncherService;\n environment?: () => Environment;\n exit?: (code: number) => void;\n launchDelayedClose?: (launcher: WorkflowLauncherType, target: string, delaySeconds: number) => void;\n logError?: (message: string, error: unknown) => void;\n logInfo?: (message: string) => void;\n}\n\ntype Environment = Readonly<Record<string, string | undefined>>;\n\nfunction resolveLauncher(options: CloseLauncherOptions, env: Environment): WorkflowLauncherType | undefined {\n if (options.launcher) return options.launcher;\n if (env.WORKFLOW_LAUNCHER_TYPE === 'tmux') return 'tmux';\n if (env.CMUX_WORKSPACE_ID) return 'cmux';\n return undefined;\n}\n\nfunction resolveTarget(\n launcher: WorkflowLauncherType,\n options: CloseLauncherOptions,\n env: Environment,\n): string | undefined {\n if (options.target) return options.target;\n return launcher === 'tmux' ? (env.WORKFLOW_TMUX_SESSION_NAME ?? env.TMUX_PANE) : env.CMUX_WORKSPACE_ID;\n}\n\nfunction scheduleDelayedClose(launcher: WorkflowLauncherType, target: string, delaySeconds: number): void {\n const { baseEnvironment, cwd, workflowHost } = getCliWorkflowRuntime();\n const child = workflowHost.spawn(\n workflowHost.executablePath,\n [workflowHost.cliPath, COMMAND_NAME, '--launcher', launcher, '--target', target, '--delay-seconds', '0'],\n {\n cwd,\n detached: true,\n env: { ...baseEnvironment, WORKFLOW_LAUNCHER_CLOSE_DELAY_MS: String(delaySeconds * 1_000) },\n stdio: 'ignore',\n },\n );\n child.unref();\n}\n\nasync function waitForScheduledDelay(env: Environment): Promise<void> {\n const delayMs = Number(env.WORKFLOW_LAUNCHER_CLOSE_DELAY_MS ?? 0);\n if (Number.isFinite(delayMs) && delayMs > 0) {\n await new Promise((resolve) => setTimeout(resolve, delayMs));\n }\n}\n\nexport function createCloseLauncherCommand(dependencies: CloseLauncherCommandDependencies = {}): Command {\n const environment = dependencies.environment ?? (() => getCliWorkflowRuntime().baseEnvironment);\n const createService = dependencies.createService ?? (() => new WorkflowLauncherService(getCliWorkflowRuntime()));\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const launchDelayedClose = dependencies.launchDelayedClose ?? scheduleDelayedClose;\n const logError = dependencies.logError ?? ((message: string, error: unknown) => console.error(message, error));\n const logInfo = dependencies.logInfo ?? ((message: string) => process.stdout.write(`${message}\\n`));\n\n return new Command(COMMAND_NAME)\n .description('Close the launcher assigned to the current workflow process')\n .addOption(new Option('--launcher <launcher>').choices(['cmux', 'tmux']))\n .option('--target <target>', 'Explicit launcher workspace or session identity')\n .option('--delay-seconds <seconds>', 'Delay before closing the launcher', '0')\n .action(async (options: CloseLauncherOptions) => {\n try {\n const env = environment();\n const launcher = resolveLauncher(options, env);\n if (!launcher) {\n logInfo('No managed workflow launcher identity found. Skipping close.');\n return;\n }\n const target = resolveTarget(launcher, options, env);\n if (!target) {\n logInfo(`No ${launcher} target found. Skipping close.`);\n return;\n }\n const delaySeconds = Number(options.delaySeconds);\n if (!Number.isFinite(delaySeconds) || delaySeconds < 0) {\n throw new Error(`Invalid delay: ${options.delaySeconds}`);\n }\n if (delaySeconds > 0) {\n launchDelayedClose(launcher, target, delaySeconds);\n logInfo(`Scheduled ${launcher} launcher ${target} to close in ${delaySeconds}s.`);\n return;\n }\n await waitForScheduledDelay(env);\n await createService().close({ launcher, target });\n } catch (error) {\n logError('Unable to close workflow launcher.', error);\n exit(1);\n }\n });\n}\n\nexport const closeLauncherCommand = createCloseLauncherCommand();\n","/**\n * Structured error raised by workflow CLI commands.\n */\nexport class WorkflowCommandError extends Error {\n constructor(\n message: string,\n public readonly code: string,\n public readonly context: Record<string, unknown> = {},\n options?: ErrorOptions,\n ) {\n super(message, options);\n this.name = 'WorkflowCommandError';\n }\n}\n","import { Command } from 'commander';\n\nimport { WorkflowCommandError } from '../../models/WorkflowCommandError';\nimport { WorkflowRegistryService } from '../../services/WorkflowRegistryService';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\n\ntype ControlAction = 'pause' | 'resume';\ninterface ControlOptions {\n reason?: string;\n runId: string;\n workspace: string;\n}\n\nfunction createControlCommand(action: ControlAction, name: string, description: string): Command {\n return new Command(name)\n .description(description)\n .argument('<run-key>', 'Running workflow run key')\n .option('-w, --workspace <name>', 'Workspace containing the running workflow', 'default')\n .requiredOption('--run-id <run-id>', 'Exact running generation to control')\n .option('-r, --reason <text>', 'Optional reason to record')\n .action(async (runKey: string, options: ControlOptions) => {\n try {\n const registry = new WorkflowRegistryService(getCliWorkflowRuntime());\n const request =\n action === 'pause'\n ? await registry.requestPause(options.workspace, runKey, options.reason, options.runId)\n : await registry.requestResume(options.workspace, runKey, options.runId);\n process.stdout.write(\n `${JSON.stringify({ action, request, runKey, workspace: registry.resolveWorkspace(options.workspace) }, null, 2)}\\n`,\n );\n } catch (error) {\n const commandError = new WorkflowCommandError(\n `Error requesting workflow ${action}.`,\n `${action.toUpperCase()}_WORKFLOW_FAILED`,\n { command: name, runKey, workspace: options.workspace },\n { cause: error },\n );\n console.error(`${commandError.message} [${commandError.code}]`, commandError);\n process.exitCode = 1;\n }\n });\n}\n\nexport const pauseWorkflowCommand = createControlCommand(\n 'pause',\n 'pause-workflow',\n 'Request a running workflow to pause cooperatively.',\n);\nexport const resumeWorkflowCommand = createControlCommand('resume', 'resume-workflow', 'Resume a paused workflow.');\n","import { resolve } from 'node:path';\n\nimport { Command, Option } from 'commander';\n\nimport {\n DESCRIBE_RUN_COMMAND_NAME as COMMAND_NAME,\n DESCRIBE_RUN_COMMAND_DESCRIPTION as COMMAND_DESCRIPTION,\n} from '../../constants/workflowCommands';\nimport { RunDirectoryService } from '../../services/RunDirectoryService';\nimport { WorkflowRegistryService } from '../../services/WorkflowRegistryService';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\n\nconst RUN_RECORD_FILENAME = 'run.json';\nconst WORKFLOW_RUN_DIR_ENV = 'WORKFLOW_RUN_DIR';\nconst WORKFLOW_JOB_NAME_ENV = 'WORKFLOW_JOB_NAME';\nconst SUCCESS_EXIT_CODE = 0;\nconst ERROR_EXIT_CODE = 1;\n\ninterface DescribeRunOptions {\n format: 'text' | 'json';\n job?: string;\n runDir?: string;\n}\n\ninterface DescribeRunCommandDependencies {\n createRegistry?: () => WorkflowRegistryService;\n createRunDirectoryService?: () => RunDirectoryService;\n env?: NodeJS.ProcessEnv;\n exit?: (code: number) => void;\n logError?: (message: string, error?: unknown) => void;\n writeStdout?: (message: string) => void;\n}\n\nexport function createDescribeRunCommand(dependencies: DescribeRunCommandDependencies = {}): Command {\n const createRegistry = dependencies.createRegistry ?? (() => new WorkflowRegistryService(getCliWorkflowRuntime()));\n const createRunDirectoryService =\n dependencies.createRunDirectoryService ?? (() => new RunDirectoryService(getCliWorkflowRuntime()));\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const logError = dependencies.logError ?? ((message: string, error?: unknown) => console.error(message, error));\n const writeStdout = dependencies.writeStdout ?? ((message: string) => process.stdout.write(`${message}\\n`));\n\n return new Command(COMMAND_NAME)\n .description(COMMAND_DESCRIPTION)\n .option('--run-dir <path>', 'Workflow run directory; defaults to WORKFLOW_RUN_DIR')\n .option('--job <name>', 'Job used to classify inputs and outputs; defaults to WORKFLOW_JOB_NAME')\n .addOption(new Option('--format <format>', 'Output format').choices(['text', 'json']).default('text'))\n .action(async (options: DescribeRunOptions) => {\n try {\n const runtime = getCliWorkflowRuntime();\n const env = dependencies.env ?? runtime.baseEnvironment;\n const runDir = resolve(runtime.cwd, options.runDir ?? env[WORKFLOW_RUN_DIR_ENV] ?? '');\n if (!options.runDir && !env[WORKFLOW_RUN_DIR_ENV]) {\n throw new Error('--run-dir or WORKFLOW_RUN_DIR is required');\n }\n const registry = createRegistry();\n const record = await registry.readRunRecord(resolve(runDir, RUN_RECORD_FILENAME));\n const service = createRunDirectoryService();\n const inspection = await service.inspect(runDir, record.runDirectory, {\n jobName: options.job ?? env[WORKFLOW_JOB_NAME_ENV],\n });\n writeStdout(\n options.format === 'json' ? JSON.stringify(inspection, null, 2) : service.formatInspection(inspection),\n );\n exit(SUCCESS_EXIT_CODE);\n } catch (error) {\n logError('Error describing workflow run.', error);\n exit(ERROR_EXIT_CODE);\n }\n });\n}\n\nexport const describeRunCommand = createDescribeRunCommand();\n","import { relative } from 'node:path';\n\nimport { Command, Option } from 'commander';\n\nimport {\n DOCTOR_COMMAND_NAME as COMMAND_NAME,\n DOCTOR_COMMAND_DESCRIPTION as COMMAND_DESCRIPTION,\n} from '../../constants/workflowCommands';\nimport { diagnoseWorkflows } from '../../services/WorkflowDoctorService';\nimport type { WorkflowDoctorReport } from '../../services/WorkflowDoctorService/types';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\n\nconst SUCCESS_EXIT_CODE = 0;\nconst FAILURE_EXIT_CODE = 1;\nconst KEY_SEPARATOR = ',';\n\ninterface DoctorOptions {\n runConfigKeys?: string;\n format: 'text' | 'json';\n strict?: boolean;\n}\n\ninterface DoctorCommandDependencies {\n cwd?: () => string;\n exit?: (code: number) => void;\n writeStdout?: (message: string) => void;\n writeStderr?: (message: string) => void;\n}\n\nfunction countLevel(reports: readonly WorkflowDoctorReport[], level: 'error' | 'warning'): number {\n return reports.reduce(\n (count, report) => count + report.diagnostics.filter((diagnostic) => diagnostic.level === level).length,\n 0,\n );\n}\n\nfunction plural(count: number, noun: string): string {\n return `${String(count)} ${noun}${count === 1 ? '' : 's'}`;\n}\n\n/** One line per finding under its workflow, and a closing tally. */\nfunction formatText(reports: readonly WorkflowDoctorReport[], cwd: string): string {\n const lines: string[] = [];\n for (const report of reports) {\n const errors = report.diagnostics.some((diagnostic) => diagnostic.level === 'error');\n lines.push(`${errors ? 'fail' : 'ok '} ${relative(cwd, report.path) || report.path}`);\n for (const diagnostic of report.diagnostics) {\n const where = diagnostic.location === undefined ? '' : `${diagnostic.location}: `;\n lines.push(` ${diagnostic.level.padEnd(7)} ${where}${diagnostic.message} [${diagnostic.code}]`);\n }\n }\n const errors = countLevel(reports, 'error');\n const warnings = countLevel(reports, 'warning');\n lines.push(`${plural(reports.length, 'workflow')}: ${plural(errors, 'error')}, ${plural(warnings, 'warning')}`);\n return `${lines.join('\\n')}\\n`;\n}\n\nexport function createDoctorCommand(dependencies: DoctorCommandDependencies = {}): Command {\n const cwd = dependencies.cwd ?? (() => getCliWorkflowRuntime().cwd);\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const writeStdout = dependencies.writeStdout ?? ((message: string) => process.stdout.write(message));\n const writeStderr = dependencies.writeStderr ?? ((message: string) => process.stderr.write(message));\n\n return new Command(COMMAND_NAME)\n .description(COMMAND_DESCRIPTION)\n .argument('[paths...]', 'Workflow files or directories to check', ['.'])\n .option(\n '--run-config-keys <keys>',\n \"Comma-separated runConfig keys the host reads itself, such as Po's majorMode,minorModes,profile,domains,model,thinking; other keys a step's command does not read become errors\",\n )\n .option('--strict', 'Fail on warnings as well as errors')\n .addOption(new Option('--format <format>', 'Output format').choices(['text', 'json']).default('text'))\n .action(async (paths: string[], options: DoctorOptions) => {\n try {\n const runConfigKeys = options.runConfigKeys\n ?.split(KEY_SEPARATOR)\n .map((key) => key.trim())\n .filter((key) => key.length > 0);\n const reports = await diagnoseWorkflows(paths, {\n runtime: getCliWorkflowRuntime(),\n ...(runConfigKeys === undefined ? {} : { runConfigKeys }),\n });\n const errors = countLevel(reports, 'error');\n const warnings = countLevel(reports, 'warning');\n writeStdout(\n options.format === 'json'\n ? `${JSON.stringify({ errors, warnings, workflows: reports }, null, 2)}\\n`\n : formatText(reports, cwd()),\n );\n exit(errors > 0 || (options.strict === true && warnings > 0) ? FAILURE_EXIT_CODE : SUCCESS_EXIT_CODE);\n } catch (error) {\n writeStderr(`Error checking workflows: ${error instanceof Error ? error.message : String(error)}\\n`);\n exit(FAILURE_EXIT_CODE);\n }\n });\n}\n\nexport const doctorCommand = createDoctorCommand();\n","import { Command } from 'commander';\n\nimport { HOST_RUN_COMMAND_NAME as COMMAND_NAME } from '../../constants/workflowCommands';\n/**\n * `host-run`: own a workflow run's terminal for as long as it runs.\n *\n * RMUX owns the run's pseudo terminal and screen state. This detached host keeps\n * the compatibility socket alive so existing cockpit clients can reach the run\n * without knowing which multiplexer backs it.\n *\n * DESIGN PATTERNS:\n * - The socket is bound before the run starts, so a reader that attaches\n * immediately cannot miss the first screen\n * - The child is told where its own terminal is answering, so the run record it\n * writes carries the socket and a cockpit can find it later\n *\n * CODING STANDARDS:\n * - Named exports only\n * - Explicit return types on exported members\n */\nimport { NativeTerminalService } from '../../services/NativeTerminalService';\nimport { serveNativeTerminal, terminalSocketPath } from '../../services/NativeTerminalService/terminalSocket';\nimport { normalizeTmuxSessionName } from '../../services/WorkflowLauncherService';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\n\nconst SHELL = '/bin/sh';\nconst SHELL_COMMAND_FLAG = '-c';\nconst FAILED_EXIT_CODE = 1;\n\n/** Env the run reads to record where its own terminal can be reached. */\nexport const WORKFLOW_TERMINAL_SOCKET_ENV = 'WORKFLOW_TERMINAL_SOCKET';\nexport const WORKFLOW_LAUNCHER_TYPE_ENV = 'WORKFLOW_LAUNCHER_TYPE';\nconst NATIVE_LAUNCHER = 'native';\n\ninterface HostRunOptions {\n command: string;\n cwd: string;\n name: string;\n workspace?: string;\n socket?: string;\n}\n\ninterface HostRunDependencies {\n createService?: () => NativeTerminalService;\n exit?: (code: number) => void;\n logError?: (message: string, error: unknown) => void;\n}\n\n/**\n * Hosts one run and resolves with its exit code.\n *\n * Exported for the same reason every other command's body is: the CLI wrapper\n * is argument parsing, and the behaviour deserves a test that does not spawn a\n * process.\n */\nexport async function hostWorkflowRun(\n options: HostRunOptions,\n dependencies: HostRunDependencies = {},\n): Promise<number> {\n const service = dependencies.createService?.() ?? new NativeTerminalService(getCliWorkflowRuntime());\n if (!(await service.available())) {\n throw new Error('Terminal hosting is unavailable: RMUX did not load. Install RMUX or use tmux or cmux instead.');\n }\n\n const runKey = normalizeTmuxSessionName(options.name);\n const workspace = options.workspace ?? '';\n const socketPath =\n options.socket ?? terminalSocketPath(workspace, runKey, getCliWorkflowRuntime().temporaryDirectory!);\n const server = await serveNativeTerminal(getCliWorkflowRuntime(), { service, runKey, socketPath });\n\n try {\n await service.spawn({\n command: SHELL,\n args: [SHELL_COMMAND_FLAG, options.command],\n cwd: options.cwd,\n env: {\n ...process.env,\n [WORKFLOW_LAUNCHER_TYPE_ENV]: NATIVE_LAUNCHER,\n [WORKFLOW_TERMINAL_SOCKET_ENV]: socketPath,\n } as Record<string, string>,\n runKey,\n });\n return await service.ended(runKey);\n } finally {\n await server.close();\n await service.disposeAll();\n }\n}\n\nexport function createHostRunCommand(dependencies: HostRunDependencies = {}): Command {\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const logError = dependencies.logError ?? ((message: string, error: unknown) => console.error(message, error));\n\n return new Command(COMMAND_NAME)\n .description('Host a workflow run through RMUX and serve its terminal on a socket')\n .requiredOption('--name <name>', 'Run display name')\n .requiredOption('--cwd <path>', 'Working directory')\n .requiredOption('--command <command>', 'Workflow command to execute')\n .option('--workspace <workspace>', 'Registry workspace the run belongs to')\n .option('--socket <path>', 'Socket path to serve on; derived from the run identity by default')\n .action(async (options: HostRunOptions) => {\n try {\n exit(await hostWorkflowRun(options, dependencies));\n } catch (error) {\n logError('Unable to host workflow run.', error);\n exit(FAILED_EXIT_CODE);\n }\n });\n}\n\nexport const hostRunCommand = createHostRunCommand();\n","/**\n * Stdout Flush Utility\n *\n * DESIGN PATTERNS:\n * - Small awaitable wrapper around a stream write callback\n *\n * CODING STANDARDS:\n * - Resolve rather than reject so a closed pipe cannot fail a successful command\n *\n * AVOID:\n * - Calling process.exit() straight after writing a large payload to stdout\n */\n\nconst EMPTY_CHUNK = '';\n\n/**\n * Wait for pending stdout writes to reach the OS before the process exits.\n *\n * Node buffers stdout asynchronously when it is a pipe (but writes synchronously\n * to files and TTYs). `process.exit()` discards whatever is still buffered, so a\n * command that writes a large payload and exits immediately silently truncates\n * its output at the pipe buffer size (64KB on macOS) and emits invalid JSON.\n * Writing an empty chunk and awaiting its flush callback guarantees every earlier\n * write has drained.\n *\n * A write error (for example EPIPE when the reader closed early, as `| head`\n * does) resolves instead of rejecting: the command already produced its output\n * and must not be reported as failed.\n */\nexport async function flushStdout(stream: NodeJS.WritableStream = process.stdout): Promise<void> {\n await new Promise<void>((resolve) => {\n stream.write(EMPTY_CHUNK, () => resolve());\n });\n}\n","import { resolve } from 'node:path';\n\nimport { Command, InvalidArgumentError } from 'commander';\n\nimport type { Workflow } from '../../schemas/workflowEngine';\nimport { WorkflowParserService } from '../../services/WorkflowParserService';\nimport type { WorkflowRuntimeContext } from '../../services/workflowRuntime/type';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\nimport { flushStdout } from './flushStdout';\n\ninterface InspectWorkflowOptions {\n format: 'json';\n template?: boolean;\n job?: string;\n}\n\ninterface InspectWorkflowCommandDependencies {\n runtime?: WorkflowRuntimeContext;\n getRuntime?: () => WorkflowRuntimeContext;\n createParser?: (runtime: WorkflowRuntimeContext) => WorkflowParserService;\n exit?: (code: number) => void;\n writeStdout?: (message: string) => void;\n writeStderr?: (message: string) => void;\n}\n\nfunction parseFormat(value: string): 'json' {\n if (value !== 'json') throw new InvalidArgumentError('Expected \"json\".');\n return value;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return Boolean(value) && typeof value === 'object' && !Array.isArray(value);\n}\n\nexport function createInspectWorkflowCommand(dependencies: InspectWorkflowCommandDependencies = {}): Command {\n const getRuntime = dependencies.getRuntime ?? (() => dependencies.runtime ?? getCliWorkflowRuntime());\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const writeStdout = dependencies.writeStdout ?? ((message: string) => process.stdout.write(message));\n const writeStderr = dependencies.writeStderr ?? ((message: string) => process.stderr.write(message));\n\n return new Command('inspect-workflow')\n .description('Inspect a workflow definition without executing it')\n .argument('<path>', 'Workflow YAML file')\n .requiredOption('--format <format>', 'Output format', parseFormat)\n .option('--template', 'Inspect a partial template without concrete validation')\n .option('--job <id>', 'Select a concrete job and its dependencies')\n .action(async (workflowPath: string, options: InspectWorkflowOptions) => {\n try {\n const runtime = getRuntime();\n const absolutePath = resolve(runtime.cwd, workflowPath);\n if (options.template && options.job !== undefined) {\n throw new Error('Template inspection does not support --job.');\n }\n\n const parser = dependencies.createParser?.(runtime) ?? new WorkflowParserService(runtime);\n let definition: Workflow | Record<string, unknown>;\n let jobOrder: string[];\n if (options.template === true) {\n definition = await parser.parseWorkflowTemplateFile(absolutePath);\n jobOrder = [];\n } else {\n definition = await parser.parseWorkflowFile(absolutePath);\n jobOrder = parser.resolveJobOrder((definition as Workflow).jobs, options.job ?? null);\n }\n\n if (!isRecord(definition)) throw new Error(`Workflow definition is not an object: ${absolutePath}`);\n writeStdout(\n `${JSON.stringify({\n schemaVersion: 1,\n path: absolutePath,\n template: options.template === true,\n definition,\n jobOrder,\n })}\\n`,\n );\n await flushStdout();\n exit(0);\n } catch (error) {\n writeStderr(`Error inspecting workflow: ${error instanceof Error ? error.message : String(error)}\\n`);\n exit(1);\n }\n });\n}\n\nexport const inspectWorkflowCommand = createInspectWorkflowCommand();\n","import { Command, Option } from 'commander';\n\nimport { LAUNCH_PROCESS_COMMAND_NAME as COMMAND_NAME } from '../../constants/workflowCommands';\nimport type { WorkflowLauncherType } from '../../schemas/workflowEngine';\nimport { WorkflowLauncherService } from '../../services/WorkflowLauncherService';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\n\n/**\n * Multiplexers this command can drive, most widely installed first.\n *\n * `native` is accepted but is not one of them: a PTY opened by this process\n * would close the moment it exits, so a native launch re-enters the CLI as\n * `host-run` and detaches it. That host is what owns the terminal.\n */\nconst MULTIPLEXER_CHOICES: readonly WorkflowLauncherType[] = ['tmux', 'cmux'];\nconst LAUNCHER_CHOICES: readonly WorkflowLauncherType[] = [...MULTIPLEXER_CHOICES, 'native'];\n\ninterface LaunchProcessOptions {\n command: string;\n cwd: string;\n launcher?: WorkflowLauncherType;\n name: string;\n}\n\ninterface LaunchProcessCommandDependencies {\n createService?: () => WorkflowLauncherService;\n exit?: (code: number) => void;\n logError?: (message: string, error: unknown) => void;\n}\n\nexport function createLaunchProcessCommand(dependencies: LaunchProcessCommandDependencies = {}): Command {\n const createService =\n dependencies.createService ??\n (() =>\n new WorkflowLauncherService(getCliWorkflowRuntime(), {\n writeStdout: (text) => process.stdout.write(text),\n writeStderr: (text) => process.stderr.write(text),\n }));\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const logError = dependencies.logError ?? ((message: string, error: unknown) => console.error(message, error));\n\n return new Command(COMMAND_NAME)\n .description('Launch a workflow process in a supported terminal launcher')\n .requiredOption('--name <name>', 'Launcher display name')\n .requiredOption('--cwd <path>', 'Launcher working directory')\n .requiredOption('--command <command>', 'Workflow command to execute')\n .addOption(new Option('--launcher <launcher>', 'Terminal launcher').choices([...LAUNCHER_CHOICES]))\n .action(async (options: LaunchProcessOptions) => {\n try {\n await createService().launch({\n ...options,\n launcher:\n options.launcher ??\n (getCliWorkflowRuntime().baseEnvironment.WORKFLOW_LAUNCHER as WorkflowLauncherType | undefined),\n });\n } catch (error) {\n logError('Unable to launch workflow process.', error);\n exit(1);\n }\n });\n}\n\nexport const launchProcessCommand = createLaunchProcessCommand();\n","import { Command, InvalidArgumentError } from 'commander';\n\nimport { listWorkflows, type WorkflowListResult } from '../../services/workflowDiscovery';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\nimport { flushStdout } from './flushStdout';\nconst DEFAULT_PAGE = 1;\nconst DEFAULT_PAGE_SIZE = 20;\ninterface ListWorkflowsOptions {\n page: number;\n pageSize: number;\n filter?: string;\n format: 'json' | 'text';\n tags?: string[];\n}\ninterface ListWorkflowsDependencies {\n exit?: (code: number) => void;\n writeStderr?: (message: string) => void;\n writeStdout?: (message: string) => void;\n}\nfunction parsePositiveInteger(value: string): number {\n const parsed = Number(value);\n if (!Number.isInteger(parsed) || parsed < 1) {\n throw new InvalidArgumentError('Expected a positive integer.');\n }\n return parsed;\n}\n\nfunction parseFormat(value: string): 'json' | 'text' {\n if (value !== 'json' && value !== 'text') {\n throw new InvalidArgumentError('Expected \"json\" or \"text\".');\n }\n return value;\n}\n\nfunction formatText(result: WorkflowListResult): string {\n const header = `Workflows: ${result.total} total | Page: ${result.page} of ${result.totalPages || 0} | Page size: ${result.pageSize}`;\n const tagSummary =\n result.tags.length > 0\n ? `Tags: ${result.tags.map(({ tag, count }) => `${tag} (${count})`).join(', ')}`\n : 'Tags: none';\n const filterSummary = result.tagFilter?.length ? `\\nTag filter: ${result.tagFilter.join(', ')}` : '';\n if (result.workflows.length === 0) {\n return `${header}\\n${tagSummary}${filterSummary}\\n`;\n }\n\n const entries = result.workflows.map(({ path, name, description, tags }) => {\n const label = name || '(unnamed workflow)';\n const entryTags = tags.length > 0 ? `\\n Tags: ${tags.join(', ')}` : '';\n return `${path}\\n ${label}${description ? `: ${description}` : ''}${entryTags}`;\n });\n return `${header}\\n${tagSummary}${filterSummary}\\n${entries.join('\\n')}\\n`;\n}\n\nexport function createListWorkflowsCommand(dependencies: ListWorkflowsDependencies = {}): Command {\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const writeStderr = dependencies.writeStderr ?? ((message: string) => process.stderr.write(message));\n const writeStdout = dependencies.writeStdout ?? ((message: string) => process.stdout.write(message));\n\n return new Command('list-workflows')\n .description('List workflow definition files with pagination and filtering')\n .argument('[directory]', 'Directory to search', '.')\n .option('--page <number>', 'Page number to return', parsePositiveInteger, DEFAULT_PAGE)\n .option('--page-size <number>', 'Number of workflows per page', parsePositiveInteger, DEFAULT_PAGE_SIZE)\n .option('-f, --filter <text>', 'Filter by path, name, description, or tag')\n .option('-t, --tags <tags...>', 'Filter by exact tags; all supplied tags must match')\n .option('--format <format>', 'Output format: text or json', parseFormat, 'text')\n .action(async (directory: string, options: ListWorkflowsOptions) => {\n try {\n const result = await listWorkflows(getCliWorkflowRuntime(), directory, options);\n writeStdout(options.format === 'json' ? `${JSON.stringify(result, null, 2)}\\n` : formatText(result));\n await flushStdout();\n exit(0);\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error);\n writeStderr(`Error listing workflows: ${message}\\n`);\n exit(1);\n }\n });\n}\n\nexport const listWorkflowsCommand = createListWorkflowsCommand();\n","import { Command, InvalidArgumentError } from 'commander';\n\nimport {\n LIST_WORKFLOW_STATUSES_COMMAND_NAME as COMMAND_NAME,\n LIST_WORKFLOW_STATUSES_COMMAND_DESCRIPTION as COMMAND_DESCRIPTION,\n} from '../../constants/workflowCommands';\n/**\n * List Workflow Statuses Command\n *\n * DESIGN PATTERNS:\n * - Command pattern with Commander for CLI argument parsing\n * - Service delegation for business logic\n *\n * CODING STANDARDS:\n * - Use async action handlers for asynchronous operations\n * - Handle errors gracefully with process.exit()\n *\n * AVOID:\n * - Hardcoded values (use options or environment variables)\n * - Mixing registry reads with complex formatting logic\n */\nimport { WorkflowCommandError } from '../../models/WorkflowCommandError';\nimport { WorkflowRegistryService } from '../../services/WorkflowRegistryService';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\nimport { flushStdout } from './flushStdout';\n\nconst DEFAULT_ERROR_EXIT_CODE = 1;\nconst DEFAULT_PAGE = 1;\nconst DEFAULT_PAGE_SIZE = 20;\nconst DEFAULT_WORKSPACE_FILTER = 'all';\nconst PAGE_OPTION_FLAGS = '--page <number>';\nconst PAGE_OPTION_DESCRIPTION = 'Page number to return';\nconst PAGE_SIZE_OPTION_FLAGS = '--page-size <number>';\nconst PAGE_SIZE_OPTION_DESCRIPTION = 'Number of workflow runs per page';\nconst WORKSPACE_OPTION_FLAGS = '-w, --workspace <name>';\nconst WORKSPACE_OPTION_DESCRIPTION = 'Filter workflow runs by workspace';\nconst LIST_WORKFLOW_STATUSES_ERROR_MESSAGE = 'Error listing workflow statuses.';\nconst LIST_WORKFLOW_STATUSES_ERROR_CODE = 'LIST_WORKFLOW_STATUSES_FAILED';\n\ninterface ListWorkflowStatusesCommandOptions {\n page: number;\n pageSize: number;\n workspace?: string;\n reconcile?: boolean;\n}\n\ninterface ListWorkflowStatusesCommandDependencies {\n createRegistry?: () => WorkflowRegistryService;\n exit?: (code: number) => void;\n logError?: (message: string, error: unknown) => void;\n writeStdout?: (message: string) => void;\n}\n\nfunction parsePositiveInteger(value: string): number {\n const parsed = Number(value);\n if (!Number.isInteger(parsed) || parsed < 1) {\n throw new InvalidArgumentError('Expected a positive integer.');\n }\n\n return parsed;\n}\n\nexport function createListWorkflowStatusesCommand(dependencies: ListWorkflowStatusesCommandDependencies = {}): Command {\n const createRegistry = dependencies.createRegistry ?? (() => new WorkflowRegistryService(getCliWorkflowRuntime()));\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const logError = dependencies.logError ?? ((message: string, error: unknown) => console.error(message, error));\n const writeStdout = dependencies.writeStdout ?? ((message: string) => process.stdout.write(message));\n\n return new Command(COMMAND_NAME)\n .description(COMMAND_DESCRIPTION)\n .option(PAGE_OPTION_FLAGS, PAGE_OPTION_DESCRIPTION, parsePositiveInteger, DEFAULT_PAGE)\n .option(PAGE_SIZE_OPTION_FLAGS, PAGE_SIZE_OPTION_DESCRIPTION, parsePositiveInteger, DEFAULT_PAGE_SIZE)\n .option(WORKSPACE_OPTION_FLAGS, WORKSPACE_OPTION_DESCRIPTION, DEFAULT_WORKSPACE_FILTER)\n .option('--reconcile', 'Persist stale running workflows as interrupted error records')\n .action(async (options: ListWorkflowStatusesCommandOptions) => {\n try {\n const registry = createRegistry();\n const workspace = options.workspace === DEFAULT_WORKSPACE_FILTER ? undefined : options.workspace;\n if (options.reconcile) {\n await registry.reconcileStaleRuns(workspace);\n }\n const records = await registry.listRunsPage({\n page: options.page,\n pageSize: options.pageSize,\n workspace,\n });\n writeStdout(`${JSON.stringify(records, null, 2)}\\n`);\n await flushStdout();\n exit(0);\n } catch (error) {\n const commandError = new WorkflowCommandError(\n LIST_WORKFLOW_STATUSES_ERROR_MESSAGE,\n LIST_WORKFLOW_STATUSES_ERROR_CODE,\n { command: COMMAND_NAME, workspace: options.workspace ?? DEFAULT_WORKSPACE_FILTER },\n { cause: error },\n );\n logError(`${commandError.message} [${commandError.code}]`, commandError);\n exit(DEFAULT_ERROR_EXIT_CODE);\n }\n });\n}\n\nexport const listWorkflowStatusesCommand = createListWorkflowStatusesCommand();\n","import { Command } from 'commander';\n\nimport {\n RECOVER_WORKFLOW_COMMAND_NAME as COMMAND_NAME,\n RECOVER_WORKFLOW_COMMAND_DESCRIPTION as COMMAND_DESCRIPTION,\n} from '../../constants/workflowCommands';\n/**\n * RecoverWorkflow Command\n *\n * DESIGN PATTERNS:\n * - Command pattern with Commander for CLI argument parsing\n * - Service delegation for business logic\n *\n * CODING STANDARDS:\n * - Use async action handlers for asynchronous operations\n * - Handle errors gracefully with process.exit()\n *\n * AVOID:\n * - Hardcoded values (use options or environment variables)\n */\nimport { WorkflowCommandError } from '../../models/WorkflowCommandError';\nimport { RecoverWorkflowService } from '../../services/RecoverWorkflowService';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\n\nconst DEFAULT_ERROR_EXIT_CODE = 1;\nconst DEFAULT_WORKSPACE = 'default';\nconst WORKSPACE_OPTION_FLAGS = '-w, --workspace <name>';\nconst WORKSPACE_OPTION_DESCRIPTION = 'Workspace containing the failed workflow run';\nconst RUNNER_OPTION_FLAGS = '--runner <runner>';\nconst RUNNER_OPTION_DESCRIPTION = 'Override the runner key for step command maps';\nconst DRY_RUN_OPTION_FLAGS = '--dry-run';\nconst DRY_RUN_OPTION_DESCRIPTION = 'Print recovery steps without executing';\nconst RECOVERY_CLAIM_OPTION_FLAGS = '--recovery-claim <claim-id>';\nconst RECOVERY_CLAIM_OPTION_DESCRIPTION = 'Adopt a registry-issued recovery claim';\nconst RECOVER_WORKFLOW_ERROR_MESSAGE = 'Error recovering workflow.';\nconst RECOVER_WORKFLOW_ERROR_CODE = 'RECOVER_WORKFLOW_FAILED';\n\ninterface RecoverWorkflowCommandOptions {\n dryRun?: boolean;\n recoveryClaim?: string;\n runner?: string;\n workspace: string;\n}\n\ninterface RecoverWorkflowCommandDependencies {\n createService?: () => RecoverWorkflowService;\n exit?: (code: number) => void;\n logError?: (message: string, error: unknown) => void;\n}\n\n/**\n * Recover a failed workflow run from the local workflow registry\n */\nexport function createRecoverWorkflowCommand(dependencies: RecoverWorkflowCommandDependencies = {}): Command {\n const createService = dependencies.createService ?? (() => new RecoverWorkflowService(getCliWorkflowRuntime()));\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const logError = dependencies.logError ?? ((message: string, error: unknown) => console.error(message, error));\n\n return new Command(COMMAND_NAME)\n .description(COMMAND_DESCRIPTION)\n .argument('<run-key>', 'Failed workflow run key')\n .option(WORKSPACE_OPTION_FLAGS, WORKSPACE_OPTION_DESCRIPTION, DEFAULT_WORKSPACE)\n .option(RUNNER_OPTION_FLAGS, RUNNER_OPTION_DESCRIPTION)\n .option(DRY_RUN_OPTION_FLAGS, DRY_RUN_OPTION_DESCRIPTION)\n .option(RECOVERY_CLAIM_OPTION_FLAGS, RECOVERY_CLAIM_OPTION_DESCRIPTION)\n .action(async (runKey: string, options: RecoverWorkflowCommandOptions) => {\n try {\n const service = createService();\n const result = await service.recover({\n dryRun: options.dryRun,\n recoveryClaimId: options.recoveryClaim?.trim() || undefined,\n runKey,\n runner: options.runner,\n workspace: options.workspace,\n });\n exit(result.exitCode);\n } catch (error) {\n const commandError = new WorkflowCommandError(\n RECOVER_WORKFLOW_ERROR_MESSAGE,\n RECOVER_WORKFLOW_ERROR_CODE,\n { command: COMMAND_NAME, runKey, workspace: options.workspace },\n { cause: error },\n );\n logError(`${commandError.message} [${commandError.code}]`, commandError);\n exit(DEFAULT_ERROR_EXIT_CODE);\n }\n });\n}\n\nexport const recoverWorkflowCommand = createRecoverWorkflowCommand();\n","/**\n * Run Workflow Command\n *\n * DESIGN PATTERNS:\n * - Command pattern with Commander for CLI argument parsing\n * - Service delegation for business logic\n *\n * CODING STANDARDS:\n * - Use async action handlers for asynchronous operations\n * - Handle errors gracefully with process.exit()\n *\n * AVOID:\n * - Hardcoded values (use options or environment variables)\n * - Not exiting with appropriate exit codes on errors\n */\nimport { resolve } from 'node:path';\n\nimport { Command, Option } from 'commander';\n\nimport {\n RUN_WORKFLOW_COMMAND_NAME as COMMAND_NAME,\n RUN_WORKFLOW_COMMAND_DESCRIPTION as COMMAND_DESCRIPTION,\n} from '../../constants/workflowCommands';\nimport { WorkflowCommandError } from '../../models/WorkflowCommandError';\nimport { RunWorkflowService } from '../../services/RunWorkflowService';\nimport { getCliWorkflowRuntime, getCliWorkflowLogger } from '../workflowRuntime';\n\nconst DEFAULT_ERROR_EXIT_CODE = 1;\nconst KEY_VALUE_DELIMITER = '=';\nconst INPUT_OPTION = '--input';\nconst ENV_OPTION = '--env';\nconst JOB_OPTION = '--job';\nconst SECRET_FILE_OPTION = '--secret-file';\nconst PROMPT_OPTION = '--prompt';\nconst NAME_OPTION = '--name';\nconst WORKSPACE_OPTION = '--workspace';\nconst DRY_RUN_OPTION = '--dry-run';\nconst CONTINUE_ON_ERROR_OPTION = '--continue-on-error';\nconst RUNNER_OPTION = '--runner';\nconst COMMAND_OPTION = '--command';\nconst CHOICE_OPTION = '--choice';\nconst PROFILE_OPTION = '--profile';\nconst LAUNCHER_OPTION = '--launcher';\nconst STATUS_FILE_OPTION = '--status-file';\nconst BACKGROUND_OPTION_DESCRIPTION = 'Run the workflow in a detached background process';\nconst COMMAND_FAILURE_MESSAGE = 'Error executing run-workflow.';\nconst BACKGROUND_STARTED_MESSAGE = 'Started workflow in background';\nconst RUN_WORKFLOW_COMMAND_ERROR_CODE = 'RUN_WORKFLOW_COMMAND_FAILED';\nconst BACKGROUND_CHILD_ENV = 'WORKFLOW_MCP_BACKGROUND_CHILD';\nconst BACKGROUND_SERVICE_NAME = 'workflow-mcp-background-run';\n\ninterface RunWorkflowCommandOptions {\n background?: boolean;\n\n runner?: string;\n command?: string;\n choice?: string;\n profile?: string;\n continueOnError?: boolean;\n dryRun?: boolean;\n env?: string[];\n input?: string[];\n job?: string;\n launcher?: 'cmux' | 'tmux';\n name?: string;\n skipLaunch?: boolean;\n prompt?: string;\n secretFile?: string;\n workspace?: string;\n statusFile?: string;\n}\n\ninterface RunWorkflowCommandDependencies {\n createService?: () => RunWorkflowService;\n exit?: (code: number) => void;\n launchBackgroundRun?: (workflow: string, options: RunWorkflowCommandOptions) => number | undefined;\n registerBackgroundChild?: (workflow: string, options: RunWorkflowCommandOptions) => Promise<() => Promise<void>>;\n logError?: (message: string, error: unknown) => void;\n logInfo?: (message: string) => void;\n}\n\nfunction parseKeyValueEntries(entries?: string[]): Record<string, string> | undefined {\n if (!entries || entries.length === 0) {\n return undefined;\n }\n\n const values: Record<string, string> = {};\n for (const entry of entries) {\n const [key, ...rest] = entry.split(KEY_VALUE_DELIMITER);\n values[key] = rest.join(KEY_VALUE_DELIMITER);\n }\n\n return Object.keys(values).length > 0 ? values : undefined;\n}\n\nfunction resolveRunnerOption(options: RunWorkflowCommandOptions): string | undefined {\n return options.runner;\n}\n\nfunction launchDetachedRun(workflow: string, options: RunWorkflowCommandOptions): number | undefined {\n const { baseEnvironment, cwd, workflowHost } = getCliWorkflowRuntime();\n if (!workflowHost.cliPath) {\n throw new WorkflowCommandError(\n 'Unable to determine workflow CLI entry point.',\n 'RUN_WORKFLOW_BACKGROUND_LAUNCH_FAILED',\n { command: COMMAND_NAME, workflow },\n );\n }\n const args = [workflowHost.cliPath, COMMAND_NAME, workflow];\n if (options.job) {\n args.push(JOB_OPTION, options.job);\n }\n for (const inputEntry of options.input ?? []) {\n args.push(INPUT_OPTION, inputEntry);\n }\n for (const envEntry of options.env ?? []) {\n args.push(ENV_OPTION, envEntry);\n }\n if (options.secretFile) {\n args.push(SECRET_FILE_OPTION, options.secretFile);\n }\n if (options.statusFile) {\n args.push(STATUS_FILE_OPTION, options.statusFile);\n }\n if (options.dryRun) {\n args.push(DRY_RUN_OPTION);\n }\n if (options.continueOnError) {\n args.push(CONTINUE_ON_ERROR_OPTION);\n }\n const runner = resolveRunnerOption(options);\n if (runner) {\n args.push(RUNNER_OPTION, runner);\n }\n if (options.command) {\n args.push(COMMAND_OPTION, options.command);\n }\n if (options.choice) {\n args.push(CHOICE_OPTION, options.choice);\n }\n if (options.profile) {\n args.push(PROFILE_OPTION, options.profile);\n }\n if (options.prompt) {\n args.push(PROMPT_OPTION, options.prompt);\n }\n if (options.launcher) {\n args.push(LAUNCHER_OPTION, options.launcher);\n }\n if (options.name) {\n args.push(NAME_OPTION, options.name);\n }\n if (options.workspace) {\n args.push(WORKSPACE_OPTION, options.workspace);\n }\n\n const child = workflowHost.spawn(workflowHost.executablePath, args, {\n cwd,\n detached: true,\n env: { ...baseEnvironment, [BACKGROUND_CHILD_ENV]: '1' },\n stdio: 'ignore',\n });\n child.unref();\n return child.pid;\n}\n\nasync function registerBackgroundChild(\n workflow: string,\n options: RunWorkflowCommandOptions,\n): Promise<() => Promise<void>> {\n const { baseEnvironment, cwd, workflowHost } = getCliWorkflowRuntime();\n if (baseEnvironment[BACKGROUND_CHILD_ENV] !== '1') {\n return async () => {};\n }\n\n const registry = workflowHost.processRegistry;\n const repositoryPath = resolve(cwd);\n const environment = baseEnvironment.NODE_ENV ?? 'development';\n const response = await registry.registerProcess({\n repositoryPath,\n serviceName: BACKGROUND_SERVICE_NAME,\n serviceType: 'tool',\n environment,\n pid: workflowHost.processId,\n command: [workflowHost.executablePath, workflowHost.cliPath, COMMAND_NAME, workflow].join(' '),\n args: [COMMAND_NAME, workflow],\n metadata: {\n workflow,\n workspace: options.workspace,\n job: options.job,\n name: options.name,\n runner: options.runner,\n command: options.command,\n choice: options.choice,\n profile: options.profile,\n statusFile: options.statusFile,\n },\n force: true,\n });\n\n if (!response.success) {\n return async () => {};\n }\n\n return async () => {\n const releaseResponse = await registry.releaseProcess({\n repositoryPath,\n serviceName: BACKGROUND_SERVICE_NAME,\n serviceType: 'tool',\n environment,\n pid: workflowHost.processId,\n kill: false,\n releasePort: false,\n force: true,\n });\n\n if (!releaseResponse.success && !releaseResponse.error?.includes('No matching process entry')) {\n throw new Error(releaseResponse.error ?? 'Failed to release workflow background process');\n }\n };\n}\n\nexport function createRunWorkflowCommand(dependencies: RunWorkflowCommandDependencies = {}): Command {\n const createService =\n dependencies.createService ??\n (() => new RunWorkflowService(getCliWorkflowLogger(), { runtime: getCliWorkflowRuntime() }));\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const launchBackgroundRun = dependencies.launchBackgroundRun ?? launchDetachedRun;\n const registerBackgroundChildRelease = dependencies.registerBackgroundChild ?? registerBackgroundChild;\n const logError = dependencies.logError ?? ((message: string, error: unknown) => console.error(message, error));\n const logInfo = dependencies.logInfo ?? ((message: string) => process.stdout.write(`${message}\\n`));\n\n return new Command(COMMAND_NAME)\n .description(COMMAND_DESCRIPTION)\n .argument('<workflow>', 'Path to the workflow YAML file')\n .option('-j, --job <name>', 'Run only this job (and its dependencies)')\n .option('-i, --input <key=value...>', 'Set workflow_dispatch input (repeatable)')\n .option('-e, --env <key=value...>', 'Set extra environment variable (repeatable)')\n .option('--secret-file <path>', 'Load secrets from a dotenv-style file')\n .option('--dry-run', 'Print steps without executing')\n .option('--continue-on-error', 'Continue past step failures')\n .option('--runner <runner>', 'Preferred runner key for step command maps')\n .option('--command <name>', \"Command templated interactiveRun steps run through (default: each step's first)\")\n .option('--choice <name>', 'Model choice for steps that do not pin one (default: the choice named \"default\")')\n .option('--profile <name>', 'Po profile whose secrets run steps declaring `secrets` receive')\n .addOption(new Option('--launcher <launcher>', 'Terminal launcher').choices(['cmux', 'tmux']))\n .option('-p, --prompt <text>', 'User prompt for user_prompt trigger workflows')\n .option('-n, --name <name>', 'Name for the workflow run context directory')\n .option('-w, --workspace <name>', 'Workspace for workflow registry storage')\n .option('--status-file <path>', 'Write terminal workflow run JSON to this file after completion')\n .option('--skip-launch', 'Skip launch-command delegation (used by inner invocations)')\n .option('-b, --background', BACKGROUND_OPTION_DESCRIPTION)\n .action(async (workflow: string, options: RunWorkflowCommandOptions) => {\n try {\n const normalizedOptions = {\n ...options,\n statusFile: options.statusFile ? resolve(getCliWorkflowRuntime().cwd, options.statusFile) : undefined,\n };\n\n const service = createService();\n // Standalone/background hosts cannot infer or transport a trusted role allocation.\n // Refuse inadmissible graphs before registering a process or delegating one.\n await service.prepareAllocation({\n workflowPath: workflow,\n job: normalizedOptions.job,\n runner: normalizedOptions.runner,\n command: normalizedOptions.command,\n profile: normalizedOptions.profile,\n skipLaunch: normalizedOptions.skipLaunch,\n });\n if (normalizedOptions.background) {\n const pid = launchBackgroundRun(workflow, normalizedOptions);\n const pidSuffix = pid ? ` (PID: ${pid})` : '';\n logInfo(`${BACKGROUND_STARTED_MESSAGE}${pidSuffix}`);\n exit(0);\n return;\n }\n\n const releaseBackgroundChild = await registerBackgroundChildRelease(workflow, normalizedOptions);\n try {\n const runner = resolveRunnerOption(normalizedOptions);\n const result = await service.run({\n runner,\n command: normalizedOptions.command,\n choice: normalizedOptions.choice,\n profile: normalizedOptions.profile,\n workflowPath: workflow,\n job: normalizedOptions.job,\n inputs: parseKeyValueEntries(normalizedOptions.input),\n env: parseKeyValueEntries(normalizedOptions.env),\n secretFile: normalizedOptions.secretFile,\n dryRun: normalizedOptions.dryRun,\n continueOnError: normalizedOptions.continueOnError,\n launcher: normalizedOptions.launcher,\n prompt: normalizedOptions.prompt,\n name: normalizedOptions.name,\n workspace: normalizedOptions.workspace,\n skipLaunch: normalizedOptions.skipLaunch,\n statusFile: normalizedOptions.statusFile,\n });\n\n await releaseBackgroundChild();\n exit(result.exitCode);\n } catch (error) {\n await releaseBackgroundChild();\n throw error;\n }\n } catch (error) {\n const commandError =\n error instanceof WorkflowCommandError\n ? error\n : new WorkflowCommandError(\n COMMAND_FAILURE_MESSAGE,\n RUN_WORKFLOW_COMMAND_ERROR_CODE,\n {\n background: Boolean(options.background),\n command: COMMAND_NAME,\n workflow,\n workspace: options.workspace,\n },\n { cause: error },\n );\n logError(`${commandError.message} [${commandError.code}]`, commandError);\n exit(DEFAULT_ERROR_EXIT_CODE);\n }\n });\n}\n\nexport const runWorkflowCommand = createRunWorkflowCommand();\n","import { getOrThrow } from '@agimon-ai/po-core/platform';\nimport { Command } from 'commander';\n\nimport {\n STEP_COMMAND_NAME as COMMAND_NAME,\n STEP_COMMAND_DESCRIPTION as COMMAND_DESCRIPTION,\n} from '../../constants/workflowCommands';\n/**\n * Step Command\n *\n * DESIGN PATTERNS:\n * - Command pattern with Commander subcommands, one per decision\n * - Service delegation: StepDecisionService owns the file and the text\n *\n * CODING STANDARDS:\n * - Exit non-zero with a message the agent can act on\n * - Report recording errors on stderr\n *\n * AVOID:\n * - Routing the workflow here; the engine reads the decision when the step ends\n */\nimport type { StepDecision } from '../../schemas/workflowEngine';\nimport { recordStepDecision, WORKFLOW_DECISION_FILE_ENV } from '../../services/StepDecisionService';\nimport type { WorkflowRuntimeContext } from '../../services/workflowRuntime/type';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\n\nconst DECISION_ERROR_EXIT_CODE = 1;\n\ninterface DecisionOptions {\n decisionFile?: string;\n}\n\ninterface ReasonOptions extends DecisionOptions {\n reason?: string;\n reasonFile?: string;\n}\n\nconst DECISION_FILE_FLAGS = '--decision-file <path>';\nconst DECISION_FILE_DESCRIPTION = `The step's decision file, named in its instructions (default: $${WORKFLOW_DECISION_FILE_ENV})`;\n\ninterface StepCommandDependencies {\n runtime?: WorkflowRuntimeContext;\n env?: Readonly<Record<string, string | undefined>>;\n exit?: (code: number) => void;\n writeStderr?: (message: string) => void;\n}\n\nasync function reasonFrom(runtime: WorkflowRuntimeContext, options: ReasonOptions): Promise<string> {\n const reason = options.reasonFile\n ? getOrThrow(await runtime.fs.readTextFile(options.reasonFile, runtime.ioContext))\n : options.reason;\n if (!reason?.trim()) throw new Error('Give a reason with --reason <text> or --reason-file <path>.');\n return reason.trim();\n}\n\nexport function createStepCommand(dependencies: StepCommandDependencies = {}): Command {\n const runtime = dependencies.runtime ?? getCliWorkflowRuntime();\n const env = dependencies.env ?? runtime.baseEnvironment;\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const writeStderr = dependencies.writeStderr ?? ((message: string) => process.stderr.write(message));\n\n const record = async (\n options: DecisionOptions,\n decision: () => Promise<StepDecision>,\n done: string,\n ): Promise<void> => {\n try {\n const path = options.decisionFile ?? env[WORKFLOW_DECISION_FILE_ENV];\n if (!path) {\n throw new Error(\n `No decision file: pass ${DECISION_FILE_FLAGS} from the step's instructions, or run inside a workflow step that sets ${WORKFLOW_DECISION_FILE_ENV}.`,\n );\n }\n await recordStepDecision(runtime, path, await decision());\n writeStderr(`${done}\\n`);\n } catch (error) {\n writeStderr(`${error instanceof Error ? error.message : String(error)}\\n`);\n exit(DECISION_ERROR_EXIT_CODE);\n }\n };\n\n const command = new Command(COMMAND_NAME).description(COMMAND_DESCRIPTION);\n\n command\n .command('complete')\n .description('The step finished its work')\n .option('-s, --summary <text>', 'One line on what the step did')\n .option(DECISION_FILE_FLAGS, DECISION_FILE_DESCRIPTION)\n .action(async (options: DecisionOptions & { summary?: string }) => {\n await record(\n options,\n async () => ({ decision: 'complete', ...(options.summary?.trim() ? { summary: options.summary.trim() } : {}) }),\n 'Recorded: step complete. You can stop now.',\n );\n });\n\n command\n .command('fix')\n .description('An earlier job must fix something before this step can pass')\n .requiredOption('--restart-from <job>', 'Job the workflow restarts from to fix it')\n .option('--reason <text>', 'What must be fixed, and where')\n .option('--reason-file <path>', 'Read the reason from a file')\n .option(DECISION_FILE_FLAGS, DECISION_FILE_DESCRIPTION)\n .action(async (options: ReasonOptions & { restartFrom: string }) => {\n await record(\n options,\n async () => ({ decision: 'fix', restartFrom: options.restartFrom, reason: await reasonFrom(runtime, options) }),\n `Recorded: fix from \"${options.restartFrom}\". You can stop now.`,\n );\n });\n\n command\n .command('fail')\n .description('A blocker this workflow cannot fix; ends the run')\n .option('--reason <text>', 'The blocker and its evidence')\n .option('--reason-file <path>', 'Read the reason from a file')\n .option(DECISION_FILE_FLAGS, DECISION_FILE_DESCRIPTION)\n .action(async (options: ReasonOptions) => {\n await record(\n options,\n async () => ({ decision: 'fail', reason: await reasonFrom(runtime, options) }),\n 'Recorded: step failed. You can stop now.',\n );\n });\n\n return command;\n}\n\nexport const stepCommand = createStepCommand();\n","import { Command } from 'commander';\n\nimport {\n STOP_WORKFLOW_COMMAND_NAME as COMMAND_NAME,\n STOP_WORKFLOW_COMMAND_DESCRIPTION as COMMAND_DESCRIPTION,\n} from '../../constants/workflowCommands';\n/**\n * Stop Workflow Command\n *\n * DESIGN PATTERNS:\n * - Command pattern with Commander for CLI argument parsing\n * - Service delegation for business logic\n *\n * CODING STANDARDS:\n * - Use async action handlers for asynchronous operations\n * - Handle errors gracefully with process.exit()\n *\n * AVOID:\n * - Hardcoded values (use options or environment variables)\n * - Touching terminal stdin/raw mode for workflow cancellation\n */\nimport { WorkflowCommandError } from '../../models/WorkflowCommandError';\nimport { WorkflowRegistryService } from '../../services/WorkflowRegistryService';\nimport { getCliWorkflowRuntime } from '../workflowRuntime';\n\nconst DEFAULT_ERROR_EXIT_CODE = 1;\nconst DEFAULT_WORKSPACE = 'default';\nconst WORKSPACE_OPTION_FLAGS = '-w, --workspace <name>';\nconst WORKSPACE_OPTION_DESCRIPTION = 'Workspace containing the running workflow';\nconst RUN_ID_OPTION_FLAGS = '--run-id <run-id>';\nconst RUN_ID_OPTION_DESCRIPTION = 'Exact running generation to stop';\nconst REASON_OPTION_FLAGS = '-r, --reason <text>';\nconst REASON_OPTION_DESCRIPTION = 'Optional stop reason to record';\nconst STOP_WORKFLOW_ERROR_MESSAGE = 'Error requesting workflow stop.';\nconst STOP_WORKFLOW_ERROR_CODE = 'STOP_WORKFLOW_FAILED';\n\ninterface StopWorkflowCommandOptions {\n reason?: string;\n runId: string;\n workspace: string;\n}\n\ninterface StopWorkflowCommandDependencies {\n createRegistry?: () => WorkflowRegistryService;\n exit?: (code: number) => void;\n logError?: (message: string, error: unknown) => void;\n writeStdout?: (message: string) => void;\n}\n\nexport function createStopWorkflowCommand(dependencies: StopWorkflowCommandDependencies = {}): Command {\n const createRegistry = dependencies.createRegistry ?? (() => new WorkflowRegistryService(getCliWorkflowRuntime()));\n const exit = dependencies.exit ?? ((code: number) => process.exit(code));\n const logError = dependencies.logError ?? ((message: string, error: unknown) => console.error(message, error));\n const writeStdout = dependencies.writeStdout ?? ((message: string) => process.stdout.write(message));\n\n return new Command(COMMAND_NAME)\n .description(COMMAND_DESCRIPTION)\n .argument('<run-key>', 'Running workflow run key')\n .option(WORKSPACE_OPTION_FLAGS, WORKSPACE_OPTION_DESCRIPTION, DEFAULT_WORKSPACE)\n .requiredOption(RUN_ID_OPTION_FLAGS, RUN_ID_OPTION_DESCRIPTION)\n .option(REASON_OPTION_FLAGS, REASON_OPTION_DESCRIPTION)\n .action(async (runKey: string, options: StopWorkflowCommandOptions) => {\n try {\n const registry = createRegistry();\n const request = await registry.requestStop(options.workspace, runKey, options.reason, options.runId);\n writeStdout(\n `${JSON.stringify(\n {\n reason: request.reason,\n requestedAt: request.requestedAt,\n runKey,\n workspace: registry.resolveWorkspace(options.workspace),\n },\n null,\n 2,\n )}\\n`,\n );\n exit(0);\n } catch (error) {\n const commandError = new WorkflowCommandError(\n STOP_WORKFLOW_ERROR_MESSAGE,\n STOP_WORKFLOW_ERROR_CODE,\n { command: COMMAND_NAME, runKey, workspace: options.workspace },\n { cause: error },\n );\n logError(`${commandError.message} [${commandError.code}]`, commandError);\n exit(DEFAULT_ERROR_EXIT_CODE);\n }\n });\n}\n\nexport const stopWorkflowCommand = createStopWorkflowCommand();\n","#!/usr/bin/env node\n/**\n * MCP Server Entry Point\n *\n * DESIGN PATTERNS:\n * - CLI pattern with Commander for argument parsing\n * - Command pattern for organizing CLI commands\n * - Transport abstraction for multiple communication methods\n *\n * CODING STANDARDS:\n * - Use async/await for asynchronous operations\n * - Handle errors gracefully with try-catch\n * - Register all commands in main entry point\n *\n * AVOID:\n * - Hardcoding command logic in index.ts (use separate command files)\n * - Missing error handling for command execution\n */\nimport { Command } from 'commander';\n\nimport { requireWorkflowCapability } from '../services/workflowChildren';\nimport { readWorkflowPackageVersion } from '../services/workflowHost';\nimport { closeLauncherCommand } from './workflowCommands/closeLauncher';\nimport { pauseWorkflowCommand, resumeWorkflowCommand } from './workflowCommands/controlWorkflow';\nimport { describeRunCommand } from './workflowCommands/describeRun';\nimport { doctorCommand } from './workflowCommands/doctor';\nimport { hostRunCommand } from './workflowCommands/hostRun';\nimport { inspectWorkflowCommand } from './workflowCommands/inspectWorkflow';\nimport { launchProcessCommand } from './workflowCommands/launchProcess';\nimport { listWorkflowsCommand } from './workflowCommands/listWorkflows';\nimport { listWorkflowStatusesCommand } from './workflowCommands/listWorkflowStatuses';\nimport { recoverWorkflowCommand } from './workflowCommands/recoverWorkflow';\nimport { runWorkflowCommand } from './workflowCommands/runWorkflow';\nimport { stepCommand } from './workflowCommands/step';\nimport { stopWorkflowCommand } from './workflowCommands/stopWorkflow';\nimport { getCliWorkflowLogger, installOtelErrorLogger } from './workflowRuntime';\n\nconst CLI_NAME = 'workflow-mcp';\ninstallOtelErrorLogger({ serviceName: CLI_NAME });\n\nasync function main() {\n const program = new Command();\n\n program.name(CLI_NAME).description('Run, inspect and control local workflows').version(readWorkflowPackageVersion());\n\n program.addCommand(listWorkflowsCommand);\n program.addCommand(listWorkflowStatusesCommand);\n program.addCommand(launchProcessCommand);\n program.addCommand(hostRunCommand);\n program.addCommand(inspectWorkflowCommand);\n program.addCommand(closeLauncherCommand);\n program.addCommand(describeRunCommand);\n program.addCommand(doctorCommand);\n program.addCommand(pauseWorkflowCommand);\n program.addCommand(resumeWorkflowCommand);\n program.addCommand(recoverWorkflowCommand);\n program.addCommand(runWorkflowCommand);\n program.addCommand(stepCommand);\n program.addCommand(stopWorkflowCommand);\n program\n .command('require-capability <name>')\n .description('Fail unless this runtime implements a required feature (not acceptance proof)')\n .action(requireWorkflowCapability);\n\n await program.parseAsync(process.argv);\n}\n\nmain().catch((error: unknown) => {\n getCliWorkflowLogger().error(\n `[CLI_STARTUP_ERROR] ${CLI_NAME} startup failed: ${error instanceof Error ? error.message : String(error)}`,\n );\n process.exit(1);\n});\n"],"mappings":";;;;;;;;;AAAA,MAAa,sCAAsC;AAEnD,MAAa,6CAA6C;AAE1D,MAAa,8BAA8B;AAE3C,MAAa,sBAAsB;AAEnC,MAAa,6BACX;AAEF,MAAa,gCAAgC;AAE7C,MAAa,uCAAuC;AAEpD,MAAa,4BAA4B;AAEzC,MAAa,mCAAmC;AAEhD,MAAa,wBAAwB;AAErC,MAAa,oBAAoB;AAEjC,MAAa,2BAA2B;AAExC,MAAa,6BAA6B;AAE1C,MAAa,oCAAoC;AAEjD,MAAa,4BAA4B;AAEzC,MAAa,mCAAmC;AAEhD,MAAa,8BAA8B;;;AC1B3C,MAAM,sBAAsB;AAC5B,MAAM,0BAA0B;;;;;;;;;AAUhC,MAAM,yBAA0D,CAAC,QAAQ,MAAM;AA+D/E,SAAgB,yBAAyB,MAAsB;CAC7D,MAAM,aAAa,KAChB,KAAK,CAAC,CACN,QAAQ,oBAAoB,GAAG,CAAC,CAChC,QAA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