(commit: {
collapseId: string
summaryUuid: string
summaryContent: string
summary: string
firstArchivedUuid: string
lastArchivedUuid: string
})
| 1539 | * array and handed to restoreFromEntries() which rebuilds the commit log. |
| 1540 | */ |
| 1541 | export async function recordContextCollapseCommit(commit: { |
| 1542 | collapseId: string |
| 1543 | summaryUuid: string |
| 1544 | summaryContent: string |
| 1545 | summary: string |
| 1546 | firstArchivedUuid: string |
| 1547 | lastArchivedUuid: string |
| 1548 | }): Promise<void> { |
| 1549 | const sessionId = getSessionId() as UUID |
| 1550 | if (!sessionId) return |
| 1551 | await getProject().appendEntry({ |
| 1552 | type: 'marble-origami-commit', |
| 1553 | sessionId, |
| 1554 | ...commit, |
| 1555 | }) |
| 1556 | } |
| 1557 | |
| 1558 | /** |
| 1559 | * Snapshot the staged queue + spawn state. Written after each ctx-agent |
nothing calls this directly
no test coverage detected