(commit: {
collapseId: string
summaryUuid: string
summaryContent: string
summary: string
firstArchivedUuid: string
lastArchivedUuid: string
})
| 1585 | * array and handed to restoreFromEntries() which rebuilds the commit log. |
| 1586 | */ |
| 1587 | export 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 |
nothing calls this directly
no test coverage detected