fix: unblock build type errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import type { AgentToolResult } from "@mariozechner/pi-agent-core";
|
||||
import type { AgentToolResult, AgentToolUpdateCallback } from "@mariozechner/pi-agent-core";
|
||||
import type { AnyAgentTool } from "./pi-tools.types.js";
|
||||
|
||||
/** Resolve path for host edit: expand ~ and resolve relative paths against root. */
|
||||
@@ -29,7 +29,7 @@ export function wrapHostEditToolWithPostWriteRecovery(
|
||||
toolCallId: string,
|
||||
params: unknown,
|
||||
signal: AbortSignal | undefined,
|
||||
onUpdate?: (update: unknown) => void,
|
||||
onUpdate?: AgentToolUpdateCallback<unknown>,
|
||||
) => {
|
||||
try {
|
||||
return await base.execute(toolCallId, params, signal, onUpdate);
|
||||
|
||||
@@ -28,6 +28,7 @@ import { sanitizeToolResultImages } from "./tool-images.js";
|
||||
|
||||
export {
|
||||
CLAUDE_PARAM_GROUPS,
|
||||
assertRequiredParams,
|
||||
normalizeToolParams,
|
||||
patchToolSchemaForClaudeCompatibility,
|
||||
wrapToolParamNormalization,
|
||||
|
||||
@@ -30,7 +30,7 @@ import { getGlobalHookRunner } from "../../plugins/hook-runner-global.js";
|
||||
import { normalizeMainKey } from "../../routing/session-key.js";
|
||||
import { normalizeSessionDeliveryFields } from "../../utils/delivery-context.js";
|
||||
import { resolveCommandAuthorization } from "../command-auth.js";
|
||||
import type { TemplateContext } from "../templating.js";
|
||||
import type { MsgContext, TemplateContext } from "../templating.js";
|
||||
import { normalizeInboundTextNewlines } from "./inbound-text.js";
|
||||
import { stripMentions, stripStructuralPrefixes } from "./mentions.js";
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user