fix: provide EffectLogger.layer to bare Effect.runPromise/runFork calls (#21974)

This commit is contained in:
Kit Langton
2026-04-10 22:55:08 -04:00
committed by GitHub
parent b6af4d0dc6
commit 5917ac2162
11 changed files with 24 additions and 12 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import path from "path"
import { pathToFileURL } from "url"
import z from "zod"
import { Effect } from "effect"
import { EffectLogger } from "@/effect/logger"
import * as Stream from "effect/Stream"
import { Tool } from "./tool"
import { Skill } from "../skill"
@@ -18,7 +19,7 @@ export const SkillTool = Tool.define(
const rg = yield* Ripgrep.Service
return async () => {
const list = await Effect.runPromise(skill.available())
const list = await Effect.runPromise(skill.available().pipe(Effect.provide(EffectLogger.layer)))
const description =
list.length === 0