mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-07 18:03:25 +00:00
refactor(core): remove unused agent default method (#40725)
This commit is contained in:
parent
934935963d
commit
e78869c849
1 changed files with 0 additions and 4 deletions
|
|
@ -44,7 +44,6 @@ export type Draft = {
|
|||
|
||||
export interface Interface extends State.Transformable<Draft> {
|
||||
readonly get: (id: ID) => Effect.Effect<Info | undefined>
|
||||
readonly default: () => Effect.Effect<Info | undefined>
|
||||
readonly resolve: (id?: ID | string) => Effect.Effect<Info | undefined>
|
||||
readonly select: (id?: ID | string) => Effect.Effect<Selection>
|
||||
readonly list: () => Effect.Effect<Info[]>
|
||||
|
|
@ -110,9 +109,6 @@ const layer = Layer.effect(
|
|||
get: Effect.fn("Agent.get")(function* (id) {
|
||||
return state.get().agents.get(id)
|
||||
}),
|
||||
default: Effect.fn("Agent.default")(function* () {
|
||||
return selectedDefault()
|
||||
}),
|
||||
resolve: Effect.fn("Agent.resolve")(function* (id) {
|
||||
if (id !== undefined) return state.get().agents.get(ID.make(id))
|
||||
return selectedDefault()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue