core: add session diff API to show file changes between snapshots

This commit is contained in:
Dax Raad
2025-10-20 17:58:48 -04:00
parent f3f21194ae
commit a0a09f421c
6 changed files with 317 additions and 46 deletions

View File

@@ -130,6 +130,7 @@ export namespace MessageV2 {
export const StepStartPart = PartBase.extend({
type: z.literal("step-start"),
snapshot: z.string().optional(),
}).meta({
ref: "StepStartPart",
})
@@ -137,6 +138,7 @@ export namespace MessageV2 {
export const StepFinishPart = PartBase.extend({
type: z.literal("step-finish"),
snapshot: z.string().optional(),
cost: z.number(),
tokens: z.object({
input: z.number(),