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

Method constructor

src/workspaces/transcript-watcher.ts:70–78  ·  view source on GitHub ↗
(
    private readonly logger: Logger,
    /**
     * Optional registry. When provided, the watcher fans out the discovered
     * agent-session-id into the corresponding record's `resumeHint`, so
     * `POST /sessions/:id/resume` can later invoke `claude --resume <uuid>`.
     */
    private readonly sessionRegistry?: SessionRegistry,
  )

Source from the content-addressed store, hash-verified

68 private readonly pollEntries = new Map<string, PollEntry>();
69
70 constructor(
71 private readonly logger: Logger,
72 /**
73 * Optional registry. When provided, the watcher fans out the discovered
74 * agent-session-id into the corresponding record's `resumeHint`, so
75 * `POST /sessions/:id/resume` can later invoke `claude --resume <uuid>`.
76 */
77 private readonly sessionRegistry?: SessionRegistry,
78 ) {}
79
80 async register(session: PersistentSession, adapter: CliAdapter): Promise<void> {
81 const discovery = adapter.capabilities.transcriptDiscovery;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected