MCPcopy Create free account
hub / github.com/HELPMEEADICE/doge-code / recordContextCollapseCommit

Function recordContextCollapseCommit

src/utils/sessionStorage.ts:1587–1602  ·  view source on GitHub ↗
(commit: {
  collapseId: string
  summaryUuid: string
  summaryContent: string
  summary: string
  firstArchivedUuid: string
  lastArchivedUuid: string
})

Source from the content-addressed store, hash-verified

1585 * array and handed to restoreFromEntries() which rebuilds the commit log.
1586 */
1587export async function recordContextCollapseCommit(commit: {
1588 collapseId: string
1589 summaryUuid: string
1590 summaryContent: string
1591 summary: string
1592 firstArchivedUuid: string
1593 lastArchivedUuid: string
1594}): Promise<void> {
1595 const sessionId = getSessionId() as UUID
1596 if (!sessionId) return
1597 await getProject().appendEntry({
1598 type: 'marble-origami-commit',
1599 sessionId,
1600 ...commit,
1601 })
1602}
1603
1604/**
1605 * Snapshot the staged queue + spawn state. Written after each ctx-agent

Callers

nothing calls this directly

Calls 3

getSessionIdFunction · 0.85
getProjectFunction · 0.85
appendEntryMethod · 0.80

Tested by

no test coverage detected