MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / fakeSubprocessAdapter

Function fakeSubprocessAdapter

src/workspaces/transcript-watcher.spec.ts:36–44  ·  view source on GitHub ↗
(list: () => Promise<readonly OnDiskSession[]>)

Source from the content-addressed store, hash-verified

34}
35
36function fakeSubprocessAdapter(list: () => Promise<readonly OnDiskSession[]>): CliAdapter {
37 return {
38 id: 'fake',
39 displayName: 'Fake',
40 capabilities: { parallelPerCwd: true, resumeLast: true, resumeById: true, transcriptDiscovery: 'subprocess' },
41 composeCommand: (base: readonly string[]) => base,
42 listOnDisk: list,
43 } as unknown as CliAdapter;
44}
45
46const sess = (sessionId: string, mtime: string): OnDiskSession => ({ sessionId, mtime, file: '', sizeBytes: 0 });
47

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected