{"version":3,"file":"resume-command.d.ts","sourceRoot":"","sources":["../../src/cli/resume-command.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,kBAAkB,GAC3B;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;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,kBAAkB,CAerE","sourcesContent":["/**\n * Parsing for the explicit `jensen resume <SESSION_ID>` command.\n *\n * Kept separate from `main.ts` so the parser can be tested without pulling in\n * the full CLI/agent runtime. Session IDs are treated as opaque strings; this\n * module only decides whether the command was requested and what ID was given.\n */\n\nexport type ResumeCommandParse =\n\t| { kind: \"none\" }\n\t| { kind: \"help\" }\n\t| { kind: \"missing\" }\n\t| { kind: \"resume\"; sessionId: string };\n\n/**\n * Parse the explicit `resume <SESSION_ID>` command.\n *\n * Pure parsing only; the caller is responsible for emitting help/errors and for\n * stripping the subcommand from the generic argument stream.\n */\nexport function parseResumeCommand(args: string[]): ResumeCommandParse {\n\tif (args[0] !== \"resume\") {\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 sessionId = args[1];\n\tif (!sessionId || sessionId.startsWith(\"-\")) {\n\t\treturn { kind: \"missing\" };\n\t}\n\n\treturn { kind: \"resume\", sessionId };\n}\n"]}