|
@@ -30,7 +30,6 @@ import { Glob } from "../util/glob"
|
|
|
import path from "path"
|
|
import path from "path"
|
|
|
import { pathToFileURL } from "url"
|
|
import { pathToFileURL } from "url"
|
|
|
import { Effect, Layer, Context } from "effect"
|
|
import { Effect, Layer, Context } from "effect"
|
|
|
-import { EffectLogger } from "@/effect/logger"
|
|
|
|
|
import { FetchHttpClient, HttpClient } from "effect/unstable/http"
|
|
import { FetchHttpClient, HttpClient } from "effect/unstable/http"
|
|
|
import { ChildProcessSpawner } from "effect/unstable/process/ChildProcessSpawner"
|
|
import { ChildProcessSpawner } from "effect/unstable/process/ChildProcessSpawner"
|
|
|
import * as CrossSpawnSpawner from "@/effect/cross-spawn-spawner"
|
|
import * as CrossSpawnSpawner from "@/effect/cross-spawn-spawner"
|
|
@@ -137,7 +136,7 @@ export namespace ToolRegistry {
|
|
|
Effect.gen(function* () {
|
|
Effect.gen(function* () {
|
|
|
const pluginCtx: PluginToolContext = {
|
|
const pluginCtx: PluginToolContext = {
|
|
|
...toolCtx,
|
|
...toolCtx,
|
|
|
- ask: (req) => Effect.runPromise(toolCtx.ask(req).pipe(Effect.provide(EffectLogger.layer))),
|
|
|
|
|
|
|
+ ask: (req) => toolCtx.ask(req),
|
|
|
directory: ctx.directory,
|
|
directory: ctx.directory,
|
|
|
worktree: ctx.worktree,
|
|
worktree: ctx.worktree,
|
|
|
}
|
|
}
|