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

Function fakeSession

src/workspaces/transcript-watcher.spec.ts:21–34  ·  view source on GitHub ↗
(recordId: string, cwd: string)

Source from the content-addressed store, hash-verified

19} as unknown as Logger;
20
21function fakeSession(recordId: string, cwd: string): PersistentSession {
22 let id: string | null = null;
23 return {
24 wsId: 'ws1',
25 cwd,
26 recordId,
27 get agentSessionId() {
28 return id;
29 },
30 setAgentSessionId(v: string) {
31 id = v;
32 },
33 } as unknown as PersistentSession;
34}
35
36function fakeSubprocessAdapter(list: () => Promise<readonly OnDiskSession[]>): CliAdapter {
37 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected