refactor: trim tool runtime type exports

This commit is contained in:
Peter Steinberger
2026-05-02 00:36:49 +01:00
parent 2d8d50d418
commit a7a8c8121a
3 changed files with 6 additions and 6 deletions

View File

@@ -6,14 +6,14 @@ import { isPlainObject } from "../utils.js";
const log = createSubsystemLogger("agents/loop-detection");
export type LoopDetectorKind =
type LoopDetectorKind =
| "generic_repeat"
| "unknown_tool_repeat"
| "known_poll_no_progress"
| "global_circuit_breaker"
| "ping_pong";
export type LoopDetectionResult =
type LoopDetectionResult =
| { stuck: false }
| {
stuck: true;
@@ -58,7 +58,7 @@ type ResolvedLoopDetectionConfig = {
};
};
export type ToolLoopDetectionScope = {
type ToolLoopDetectionScope = {
runId?: string;
};

View File

@@ -52,12 +52,12 @@ const MESSAGE_MUTATING_ACTIONS = new Set([
"unpin",
]);
export type ToolMutationState = {
type ToolMutationState = {
mutatingAction: boolean;
actionFingerprint?: string;
};
export type ToolActionRef = {
type ToolActionRef = {
toolName: string;
meta?: string;
actionFingerprint?: string;

View File

@@ -1,6 +1,6 @@
import { createAssistantMessageEventStream } from "@mariozechner/pi-ai";
export type TransportUsage = {
type TransportUsage = {
input: number;
output: number;
cacheRead: number;