MCPcopy Index your code
hub / github.com/tiann/hapi / filterResumeSubcommand

Function filterResumeSubcommand

cli/src/cursor/cursorLocal.ts:8–20  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

6 * Cursor CLI format: `agent resume` or `agent resume <chatId>`
7 */
8export function filterResumeSubcommand(args: string[]): string[] {
9 if (args.length === 0 || args[0] !== 'resume') {
10 return args;
11 }
12
13 if (args.length > 1 && !args[1].startsWith('-')) {
14 logger.debug(`[CursorLocal] Filtered 'resume ${args[1]}' - session managed by hapi`);
15 return args.slice(2);
16 }
17
18 logger.debug(`[CursorLocal] Filtered 'resume' - session managed by hapi`);
19 return args.slice(1);
20}
21
22export async function cursorLocal(opts: {
23 abort: AbortSignal;

Callers 1

cursorLocalFunction · 0.70

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected