agent-afk 5.265.3 → 5.266.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/_lib/dir-newest-mtime.d.ts +5 -0
- package/dist/agent/dag-subagent.d.ts +2 -1
- package/dist/agent/journal/append-queue.d.ts +17 -0
- package/dist/agent/journal/blobs.d.ts +14 -0
- package/dist/agent/journal/fork.d.ts +1 -0
- package/dist/agent/journal/hydrate.d.ts +4 -0
- package/dist/agent/journal/index.d.ts +5 -0
- package/dist/agent/journal/journal-file.d.ts +37 -0
- package/dist/agent/journal/noop.d.ts +3 -0
- package/dist/agent/journal/reader.d.ts +24 -0
- package/dist/agent/journal/records.d.ts +13 -0
- package/dist/agent/journal/spill.d.ts +9 -0
- package/dist/agent/journal/sync.d.ts +18 -0
- package/dist/agent/journal/types.d.ts +121 -0
- package/dist/agent/journal/writer.d.ts +11 -0
- package/dist/agent/provider.d.ts +2 -0
- package/dist/agent/providers/anthropic-direct/journal-adapter.d.ts +3 -0
- package/dist/agent/providers/anthropic-direct/query/session-state.d.ts +4 -0
- package/dist/agent/providers/anthropic-direct/query/turn-request.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query-options.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query-runtime.d.ts +2 -0
- package/dist/agent/providers/anthropic-direct/request-types.d.ts +1 -0
- package/dist/agent/providers/openai-compatible/journal-adapter.d.ts +4 -0
- package/dist/agent/providers/openai-compatible/query/journal-wiring.d.ts +18 -0
- package/dist/agent/providers/openai-compatible/query.d.ts +3 -0
- package/dist/agent/providers/router/provider-router.d.ts +2 -0
- package/dist/agent/providers/shared/compaction.d.ts +2 -0
- package/dist/agent/providers/shared/resume-usage-seed.d.ts +8 -0
- package/dist/agent/session/agent-session.d.ts +3 -0
- package/dist/agent/session/journal-lifecycle.d.ts +22 -0
- package/dist/agent/session/session-config.d.ts +2 -0
- package/dist/agent/session/session-reset.d.ts +2 -0
- package/dist/agent/session/session-setup.d.ts +1 -0
- package/dist/agent/session-sidecar-sweep.d.ts +2 -0
- package/dist/agent/session-sidecar-sweep.dirs.d.ts +9 -0
- package/dist/agent/subagent/fork-types.d.ts +6 -1
- package/dist/agent/tools/compose-executor.d.ts +1 -1
- package/dist/agent/tools/nesting.d.ts +2 -1
- package/dist/agent/tools/skill-executor/fork-child-config.d.ts +5 -1
- package/dist/agent/tools/skill-executor/fork-dispatch.d.ts +2 -0
- package/dist/agent/tools/skill-executor/types.d.ts +3 -2
- package/dist/agent/tools/subagent/child-config.d.ts +4 -1
- package/dist/agent/tools/subagent-executor/types.d.ts +3 -2
- package/dist/agent/types/config-types.d.ts +3 -0
- package/dist/agent/types/session-types.d.ts +2 -0
- package/dist/cli/commands/interactive/turn-handler.completion.d.ts +0 -5
- package/dist/cli/commands/interactive/turn-handler.d.ts +0 -1
- package/dist/cli/commands/trace-format.d.ts +6 -0
- package/dist/cli/commands/trace-results.d.ts +13 -0
- package/dist/cli/commands/trace.d.ts +2 -0
- package/dist/cli/slash/session-stats.d.ts +1 -2
- package/dist/cli.mjs +465 -443
- package/dist/config/env.d.ts +7 -0
- package/dist/config/env.session-storage.d.ts +15 -0
- package/dist/index.mjs +175 -160
- package/dist/paths.d.ts +1 -0
- package/dist/paths.journal.d.ts +4 -0
- package/dist/telegram.mjs +226 -211
- package/dist/web-server/routes.tool-results.d.ts +12 -0
- package/dist/web-server/shared/ledger-adapter.d.ts +4 -0
- package/dist/web-server/tool-result-text.d.ts +5 -0
- package/dist/web-ui-assets/assets/{index-yyhuSaHa.js → index-CpbGrtNj.js} +75 -75
- package/dist/web-ui-assets/assets/{index-DA-_KrIR.js → index-MIgeDul2.js} +1 -1
- package/dist/web-ui-assets/assets/index-PzcVW5-O.css +1 -0
- package/dist/web-ui-assets/index.html +2 -2
- package/package.json +1 -1
- package/dist/web-ui-assets/assets/index-BMUkERO1.css +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ServerResponse } from 'node:http';
|
|
2
|
+
export declare const MAX_TOOL_RESULT_CHARS = 1000000;
|
|
3
|
+
export interface ToolResultResponse {
|
|
4
|
+
toolUseId: string;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
subagentId?: string;
|
|
7
|
+
text: string;
|
|
8
|
+
totalChars: number;
|
|
9
|
+
truncated: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function isSafeToolUseId(id: string): boolean;
|
|
12
|
+
export declare function handleGetToolResult(res: ServerResponse, sessionId: string, toolUseId: string): void;
|
|
@@ -19,6 +19,7 @@ export type TranscriptItem = {
|
|
|
19
19
|
status: 'running' | 'ok' | 'error';
|
|
20
20
|
output?: string;
|
|
21
21
|
outputUnavailable?: boolean;
|
|
22
|
+
outputClipped?: boolean;
|
|
22
23
|
diff?: string;
|
|
23
24
|
durationMs?: number;
|
|
24
25
|
} | {
|
|
@@ -78,6 +79,9 @@ export interface SseStreamFrame {
|
|
|
78
79
|
export type ToolIndex = Map<string, ToolCallItem>;
|
|
79
80
|
export type SubagentIndex = Map<string, SubagentItem>;
|
|
80
81
|
export declare function resetIdCounter(): void;
|
|
82
|
+
export declare const LEDGER_CLIP_MARKER = "\u2026 [truncated]";
|
|
83
|
+
export declare function isClippedLedgerText(text: string): boolean;
|
|
84
|
+
export declare function toolResultPath(sessionId: string, toolUseId: string): string;
|
|
81
85
|
export declare function ledgerRecordToItem(record: LedgerRecordLike, toolIndex?: ToolIndex, subagentIndex?: SubagentIndex): TranscriptItem | undefined;
|
|
82
86
|
export declare function accumulateTotals(totals: SessionTotals, record: LedgerRecordLike): SessionTotals;
|
|
83
87
|
export declare function ledgerToItems(records: LedgerRecordLike[]): TranscriptItem[];
|