fix(core): remove session import cycle (#37596)

Co-authored-by: James Long <17031+jlongster@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-07-18 13:24:47 +00:00 committed by GitHub
commit 529d55b1c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 22 additions and 29 deletions

View file

@ -74,7 +74,7 @@ type MakeInput<
T extends Tag | undefined = undefined,
> = NodeIdentity & {
readonly layer: Implementation
readonly deps: (Items | (() => Items)) & CheckDependencies<Implementation, NoInfer<Items>>
readonly deps: Items & CheckDependencies<Implementation, NoInfer<Items>>
readonly tag?: T
}
@ -90,9 +90,7 @@ export function make<
name: input.service !== undefined ? input.service.key : input.name,
service: input.service,
implementation: input.layer,
get dependencies() {
return typeof input.deps === "function" ? input.deps() : input.deps
},
dependencies: input.deps,
tag: input.tag,
}
}