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 577ffecb29
commit a4b31ad404
6 changed files with 317 additions and 46 deletions
@@ -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(),