Skip to content

Commit abd99ae

Browse files
committed
ignore: fix event type gen
1 parent ad5fc76 commit abd99ae

19 files changed

Lines changed: 2134 additions & 1837 deletions

File tree

‎packages/opencode/src/bus/index.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ export namespace Bus {
3333
"type",
3434
registry
3535
.entries()
36-
.map(([type, def]) =>
37-
z
36+
.map(([type, def]) => {
37+
return z
3838
.object({
3939
type: z.literal(type),
4040
properties: def.properties,
4141
})
4242
.meta({
4343
ref: "Event" + "." + def.type,
44-
}),
45-
)
44+
})
45+
})
4646
.toArray() as any,
4747
)
4848
}

‎packages/opencode/src/plugin/index.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export namespace Plugin {
1515
const state = Instance.state(async () => {
1616
const client = createOpencodeClient({
1717
baseUrl: "http://localhost:4096",
18-
fetch: async (...args) => Server.App.fetch(...args),
18+
// @ts-expect-error
19+
fetch: async (...args) => Server.App().fetch(...args),
1920
})
2021
const config = await Config.get()
2122
const hooks = []

0 commit comments

Comments
 (0)