Skip to content

Commit 9b09a7e

Browse files
chore: generate
1 parent 3fc0367 commit 9b09a7e

4 files changed

Lines changed: 55 additions & 54 deletions

File tree

packages/opencode/src/session/summary.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ export namespace SessionSummary {
123123
yield* bus.publish(Session.Event.Diff, { sessionID: input.sessionID, diff: diffs })
124124

125125
const messages = all.filter(
126-
(m) =>
127-
m.info.id === input.messageID || (m.info.role === "assistant" && m.info.parentID === input.messageID),
126+
(m) => m.info.id === input.messageID || (m.info.role === "assistant" && m.info.parentID === input.messageID),
128127
)
129128
const target = messages.find((m) => m.info.id === input.messageID)
130129
if (!target || target.info.role !== "user") return
@@ -133,13 +132,10 @@ export namespace SessionSummary {
133132
yield* sessions.updateMessage(target.info)
134133
})
135134

136-
const diff = Effect.fn("SessionSummary.diff")(function* (input: {
137-
sessionID: SessionID
138-
messageID?: MessageID
139-
}) {
140-
const diffs = yield* storage.read<Snapshot.FileDiff[]>(["session_diff", input.sessionID]).pipe(
141-
Effect.catch(() => Effect.succeed([] as Snapshot.FileDiff[])),
142-
)
135+
const diff = Effect.fn("SessionSummary.diff")(function* (input: { sessionID: SessionID; messageID?: MessageID }) {
136+
const diffs = yield* storage
137+
.read<Snapshot.FileDiff[]>(["session_diff", input.sessionID])
138+
.pipe(Effect.catch(() => Effect.succeed([] as Snapshot.FileDiff[])))
143139
const next = diffs.map((item) => {
144140
const file = unquoteGitPath(item.file)
145141
if (file === item.file) return item

packages/opencode/test/format/format.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ describe("Format", () => {
6464
),
6565
)
6666

67-
it.live("service initializes without error", () =>
68-
provideTmpdirInstance(() => Format.Service.use(() => Effect.void)),
69-
)
67+
it.live("service initializes without error", () => provideTmpdirInstance(() => Format.Service.use(() => Effect.void)))
7068

7169
it.live("status() initializes formatter state per directory", () =>
7270
Effect.gen(function* () {

packages/opencode/test/session/revert-compact.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,14 @@ function tool(sessionID: string, messageID: string) {
5959
type: "tool" as const,
6060
tool: "bash",
6161
callID: "call-1",
62-
state: { status: "completed" as const, input: {}, output: "done", title: "", metadata: {}, time: { start: 0, end: 1 } },
62+
state: {
63+
status: "completed" as const,
64+
input: {},
65+
output: "done",
66+
title: "",
67+
metadata: {},
68+
time: { start: 0, end: 1 },
69+
},
6370
})
6471
}
6572

packages/sdk/openapi.json

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7040,44 +7040,6 @@
70407040
},
70417041
"components": {
70427042
"schemas": {
7043-
"Event.installation.updated": {
7044-
"type": "object",
7045-
"properties": {
7046-
"type": {
7047-
"type": "string",
7048-
"const": "installation.updated"
7049-
},
7050-
"properties": {
7051-
"type": "object",
7052-
"properties": {
7053-
"version": {
7054-
"type": "string"
7055-
}
7056-
},
7057-
"required": ["version"]
7058-
}
7059-
},
7060-
"required": ["type", "properties"]
7061-
},
7062-
"Event.installation.update-available": {
7063-
"type": "object",
7064-
"properties": {
7065-
"type": {
7066-
"type": "string",
7067-
"const": "installation.update-available"
7068-
},
7069-
"properties": {
7070-
"type": "object",
7071-
"properties": {
7072-
"version": {
7073-
"type": "string"
7074-
}
7075-
},
7076-
"required": ["version"]
7077-
}
7078-
},
7079-
"required": ["type", "properties"]
7080-
},
70817043
"Project": {
70827044
"type": "object",
70837045
"properties": {
@@ -7154,6 +7116,44 @@
71547116
},
71557117
"required": ["type", "properties"]
71567118
},
7119+
"Event.installation.updated": {
7120+
"type": "object",
7121+
"properties": {
7122+
"type": {
7123+
"type": "string",
7124+
"const": "installation.updated"
7125+
},
7126+
"properties": {
7127+
"type": "object",
7128+
"properties": {
7129+
"version": {
7130+
"type": "string"
7131+
}
7132+
},
7133+
"required": ["version"]
7134+
}
7135+
},
7136+
"required": ["type", "properties"]
7137+
},
7138+
"Event.installation.update-available": {
7139+
"type": "object",
7140+
"properties": {
7141+
"type": {
7142+
"type": "string",
7143+
"const": "installation.update-available"
7144+
},
7145+
"properties": {
7146+
"type": "object",
7147+
"properties": {
7148+
"version": {
7149+
"type": "string"
7150+
}
7151+
},
7152+
"required": ["version"]
7153+
}
7154+
},
7155+
"required": ["type", "properties"]
7156+
},
71577157
"Event.server.instance.disposed": {
71587158
"type": "object",
71597159
"properties": {
@@ -9734,13 +9734,13 @@
97349734
"Event": {
97359735
"anyOf": [
97369736
{
9737-
"$ref": "#/components/schemas/Event.installation.updated"
9737+
"$ref": "#/components/schemas/Event.project.updated"
97389738
},
97399739
{
9740-
"$ref": "#/components/schemas/Event.installation.update-available"
9740+
"$ref": "#/components/schemas/Event.installation.updated"
97419741
},
97429742
{
9743-
"$ref": "#/components/schemas/Event.project.updated"
9743+
"$ref": "#/components/schemas/Event.installation.update-available"
97449744
},
97459745
{
97469746
"$ref": "#/components/schemas/Event.server.instance.disposed"

0 commit comments

Comments
 (0)