Skip to content

Commit c8af8f9

Browse files
chore: generate
1 parent 5011465 commit c8af8f9

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

packages/opencode/src/tool/registry.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ export interface Interface {
6363
readonly ids: () => Effect.Effect<string[]>
6464
readonly all: () => Effect.Effect<Tool.Def[]>
6565
readonly named: () => Effect.Effect<{ task: TaskDef; read: ReadDef }>
66-
readonly tools: (model: {
67-
providerID: ProviderID
68-
modelID: ModelID
69-
agent: Agent.Info
70-
}) => Effect.Effect<Tool.Def[]>
66+
readonly tools: (model: { providerID: ProviderID; modelID: ModelID; agent: Agent.Info }) => Effect.Effect<Tool.Def[]>
7167
}
7268

7369
export class Service extends Context.Service<Service, Interface>()("@opencode/ToolRegistry") {}

packages/opencode/src/tool/tool.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ type Init<Parameters extends z.ZodType, M extends Metadata> =
5454
| (() => Effect.Effect<DefWithoutID<Parameters, M>>)
5555

5656
export type InferParameters<T> =
57-
T extends Info<infer P, any>
58-
? z.infer<P>
59-
: T extends Effect.Effect<Info<infer P, any>, any, any>
60-
? z.infer<P>
61-
: never
57+
T extends Info<infer P, any> ? z.infer<P> : T extends Effect.Effect<Info<infer P, any>, any, any> ? z.infer<P> : never
6258
export type InferMetadata<T> =
6359
T extends Info<any, infer M> ? M : T extends Effect.Effect<Info<any, infer M>, any, any> ? M : never
6460

0 commit comments

Comments
 (0)