{"version":3,"file":"resume-child-command.d.ts","sourceRoot":"","sources":["../../src/cli/resume-child-command.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,uBAAuB,GAChC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,uBAAuB,CAe/E","sourcesContent":["/**\n * Parsing for the explicit `resume-child <MISSION_ID>` command.\n *\n * Resumes an INTERRUPTED durable child mission as the same mission + same\n * durable child AgentSession with a NEW execution attempt. Purely parsing;\n * the caller performs store/session resolution and drives the coordinator.\n */\n\nexport type ResumeChildCommandParse =\n\t| { kind: \"none\" }\n\t| { kind: \"help\" }\n\t| { kind: \"missing\" }\n\t| { kind: \"resume\"; missionId: string };\n\nexport function parseResumeChildCommand(args: string[]): ResumeChildCommandParse {\n\tif (args[0] !== \"resume-child\") {\n\t\treturn { kind: \"none\" };\n\t}\n\n\tif (args[1] === \"--help\" || args[1] === \"-h\") {\n\t\treturn { kind: \"help\" };\n\t}\n\n\tconst missionId = args[1];\n\tif (!missionId || missionId.startsWith(\"-\")) {\n\t\treturn { kind: \"missing\" };\n\t}\n\n\treturn { kind: \"resume\", missionId };\n}\n"]}