fix(agents): restore missing runtime helpers and sandbox types

This commit is contained in:
Peter Steinberger
2026-02-13 15:42:00 +00:00
parent 5643a93479
commit 31c6a12cfa
4 changed files with 29 additions and 3 deletions

View File

@@ -78,8 +78,7 @@ const applyPatchSchema = Type.Object({
export function createApplyPatchTool(
options: { cwd?: string; sandbox?: SandboxApplyPatchConfig } = {},
// biome-ignore lint/suspicious/noExplicitAny: TypeBox schema type from pi-agent-core uses a different module instance.
): AgentTool<any, ApplyPatchToolDetails> {
): AgentTool<typeof applyPatchSchema, ApplyPatchToolDetails> {
const cwd = options.cwd ?? process.cwd();
const sandbox = options.sandbox;