MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / appendCommentEvent

Function appendCommentEvent

apps/desktop/src/main/session-chat.ts:377–388  ·  view source on GitHub ↗
(
  opts: SessionChatStoreOptions,
  designId: string,
  event: StoredCommentEvent,
)

Source from the content-addressed store, hash-verified

375}
376
377function appendCommentEvent(
378 opts: SessionChatStoreOptions,
379 designId: string,
380 event: StoredCommentEvent,
381): void {
382 const manager = openSession(opts, designId);
383 const entryId = manager.appendCustomEntry(COMMENT_CUSTOM_TYPE, event);
384 const entry = manager.getEntry(entryId);
385 flushSession(manager);
386 const createdAt = entry?.timestamp ?? new Date().toISOString();
387 touchDesignActivity(opts.db, designId, createdAt);
388}
389
390export function appendSessionComment(
391 opts: SessionChatStoreOptions,

Callers 4

appendSessionCommentFunction · 0.85
updateSessionCommentFunction · 0.85
removeSessionCommentFunction · 0.85

Calls 3

touchDesignActivityFunction · 0.90
openSessionFunction · 0.85
flushSessionFunction · 0.85

Tested by

no test coverage detected