refactor: remove ToolRegistry runtime facade (#22307)

This commit is contained in:
Kit Langton 2026-04-13 11:09:32 -04:00 committed by GitHub
parent 7164662be2
commit 9ae8dc2d01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 243 additions and 227 deletions

View file

@ -18,6 +18,7 @@ const seed = async () => {
const { Project } = await import("../src/project/project")
const { ModelID, ProviderID } = await import("../src/provider/schema")
const { ToolRegistry } = await import("../src/tool/registry")
const { Effect } = await import("effect")
try {
await Instance.provide({
@ -25,7 +26,12 @@ const seed = async () => {
init: () => AppRuntime.runPromise(InstanceBootstrap),
fn: async () => {
await Config.waitForDependencies()
await ToolRegistry.ids()
await AppRuntime.runPromise(
Effect.gen(function* () {
const registry = yield* ToolRegistry.Service
yield* registry.ids()
}),
)
const session = await Session.create({ title })
const messageID = MessageID.ascending()