chore: generate

This commit is contained in:
opencode-agent[bot]
2026-03-31 23:15:56 +00:00
parent 3fc0367b93
commit 9b09a7e766
4 changed files with 55 additions and 54 deletions
+5 -9
View File
@@ -123,8 +123,7 @@ export namespace SessionSummary {
yield* bus.publish(Session.Event.Diff, { sessionID: input.sessionID, diff: diffs }) yield* bus.publish(Session.Event.Diff, { sessionID: input.sessionID, diff: diffs })
const messages = all.filter( const messages = all.filter(
(m) => (m) => m.info.id === input.messageID || (m.info.role === "assistant" && m.info.parentID === input.messageID),
m.info.id === input.messageID || (m.info.role === "assistant" && m.info.parentID === input.messageID),
) )
const target = messages.find((m) => m.info.id === input.messageID) const target = messages.find((m) => m.info.id === input.messageID)
if (!target || target.info.role !== "user") return if (!target || target.info.role !== "user") return
@@ -133,13 +132,10 @@ export namespace SessionSummary {
yield* sessions.updateMessage(target.info) yield* sessions.updateMessage(target.info)
}) })
const diff = Effect.fn("SessionSummary.diff")(function* (input: { const diff = Effect.fn("SessionSummary.diff")(function* (input: { sessionID: SessionID; messageID?: MessageID }) {
sessionID: SessionID const diffs = yield* storage
messageID?: MessageID .read<Snapshot.FileDiff[]>(["session_diff", input.sessionID])
}) { .pipe(Effect.catch(() => Effect.succeed([] as Snapshot.FileDiff[])))
const diffs = yield* storage.read<Snapshot.FileDiff[]>(["session_diff", input.sessionID]).pipe(
Effect.catch(() => Effect.succeed([] as Snapshot.FileDiff[])),
)
const next = diffs.map((item) => { const next = diffs.map((item) => {
const file = unquoteGitPath(item.file) const file = unquoteGitPath(item.file)
if (file === item.file) return item if (file === item.file) return item
+1 -3
View File
@@ -64,9 +64,7 @@ describe("Format", () => {
), ),
) )
it.live("service initializes without error", () => it.live("service initializes without error", () => provideTmpdirInstance(() => Format.Service.use(() => Effect.void)))
provideTmpdirInstance(() => Format.Service.use(() => Effect.void)),
)
it.live("status() initializes formatter state per directory", () => it.live("status() initializes formatter state per directory", () =>
Effect.gen(function* () { Effect.gen(function* () {
@@ -59,7 +59,14 @@ function tool(sessionID: string, messageID: string) {
type: "tool" as const, type: "tool" as const,
tool: "bash", tool: "bash",
callID: "call-1", callID: "call-1",
state: { status: "completed" as const, input: {}, output: "done", title: "", metadata: {}, time: { start: 0, end: 1 } }, state: {
status: "completed" as const,
input: {},
output: "done",
title: "",
metadata: {},
time: { start: 0, end: 1 },
},
}) })
} }
+41 -41
View File
@@ -7040,44 +7040,6 @@
}, },
"components": { "components": {
"schemas": { "schemas": {
"Event.installation.updated": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "installation.updated"
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"]
}
},
"required": ["type", "properties"]
},
"Event.installation.update-available": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "installation.update-available"
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"]
}
},
"required": ["type", "properties"]
},
"Project": { "Project": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -7154,6 +7116,44 @@
}, },
"required": ["type", "properties"] "required": ["type", "properties"]
}, },
"Event.installation.updated": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "installation.updated"
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"]
}
},
"required": ["type", "properties"]
},
"Event.installation.update-available": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "installation.update-available"
},
"properties": {
"type": "object",
"properties": {
"version": {
"type": "string"
}
},
"required": ["version"]
}
},
"required": ["type", "properties"]
},
"Event.server.instance.disposed": { "Event.server.instance.disposed": {
"type": "object", "type": "object",
"properties": { "properties": {
@@ -9733,15 +9733,15 @@
}, },
"Event": { "Event": {
"anyOf": [ "anyOf": [
{
"$ref": "#/components/schemas/Event.project.updated"
},
{ {
"$ref": "#/components/schemas/Event.installation.updated" "$ref": "#/components/schemas/Event.installation.updated"
}, },
{ {
"$ref": "#/components/schemas/Event.installation.update-available" "$ref": "#/components/schemas/Event.installation.update-available"
}, },
{
"$ref": "#/components/schemas/Event.project.updated"
},
{ {
"$ref": "#/components/schemas/Event.server.instance.disposed" "$ref": "#/components/schemas/Event.server.instance.disposed"
}, },