(commit: {
collapseId: string
summaryUuid: string
summaryContent: string
summary: string
firstArchivedUuid: string
lastArchivedUuid: string
})
| 1576 | * array and handed to restoreFromEntries() which rebuilds the commit log. |
| 1577 | */ |
| 1578 | export async function recordContextCollapseCommit(commit: { |
| 1579 | collapseId: string |
| 1580 | summaryUuid: string |
| 1581 | summaryContent: string |
| 1582 | summary: string |
| 1583 | firstArchivedUuid: string |
| 1584 | lastArchivedUuid: string |
| 1585 | }): Promise<void> { |
| 1586 | const sessionId = getSessionId() as UUID |
| 1587 | if (!sessionId) return |
| 1588 | await getProject().appendEntry({ |
| 1589 | type: 'marble-origami-commit', |
| 1590 | sessionId, |
| 1591 | ...commit, |
| 1592 | }) |
| 1593 | } |
| 1594 | |
| 1595 | /** |
| 1596 | * Snapshot the staged queue + spawn state. Written after each ctx-agent |
nothing calls this directly
no test coverage detected