MCPcopy Create free account
hub / github.com/buct2012dbl/Dorchestrator / update

Method update

coding-agent/src/core/session.ts:146–154  ·  view source on GitHub ↗
(id: string, updates: Partial<Session>)

Source from the content-addressed store, hash-verified

144 }
145
146 update(id: string, updates: Partial<Session>): void {
147 const session = this.sessions.get(id);
148 if (!session) {
149 throw new Error(`Session ${id} not found`);
150 }
151
152 Object.assign(session, updates, { updatedAt: Date.now() });
153 this.persist();
154 }
155
156 addMessage(id: string, message: Message): void {
157 const session = this.sessions.get(id);

Callers 3

hashKeyMethod · 0.80
hashMethod · 0.80
hashContentMethod · 0.80

Calls 2

persistMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected