agent-afk 5.296.8 → 5.296.9
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/daemon/handoff-consume.dead-letter.d.ts +4 -0
- package/dist/agent/journal/reader.async.d.ts +3 -9
- package/dist/agent/journal/reader.d.ts +2 -7
- package/dist/agent/journal/types.d.ts +6 -0
- package/dist/cli.mjs +364 -364
- package/dist/index.mjs +138 -138
- package/dist/telegram.mjs +160 -160
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DEAD_LETTER_SUBDIR = "dead-letter";
|
|
2
|
+
export declare const MAX_CLAIM_REREAD_FAILURES = 3;
|
|
3
|
+
export declare const claimRereadFailures: Map<string, number>;
|
|
4
|
+
export declare function deadLetterHandoffFile(handoffsDir: string, srcPath: string, displayName: string, reason: string): Promise<void>;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
}>;
|
|
5
|
-
export declare function findToolResultAsync(sessionId: string, toolUseId: string): Promise<{
|
|
6
|
-
block: ToolResultBlock;
|
|
7
|
-
subagentId?: string;
|
|
8
|
-
} | null>;
|
|
9
|
-
export {};
|
|
1
|
+
import type { ToolResultLookup } from './types.js';
|
|
2
|
+
export type { ToolResultLookup } from './types.js';
|
|
3
|
+
export declare function findToolResultAsync(sessionId: string, toolUseId: string): Promise<ToolResultLookup | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JournalMessage, JournalRecord, ToolResultLookup } from './types.js';
|
|
2
2
|
export interface JournalLocator {
|
|
3
3
|
subagentId?: string;
|
|
4
4
|
}
|
|
@@ -15,10 +15,5 @@ export declare function foldJournal(records: readonly JournalRecord[]): FoldResu
|
|
|
15
15
|
export declare function loadJournalFold(sessionId: string, loc?: JournalLocator): FoldResult | null;
|
|
16
16
|
export declare function hydrateMessages(messages: readonly JournalMessage[]): JournalMessage[];
|
|
17
17
|
export declare function loadJournalMessages(sessionId: string, loc?: JournalLocator): JournalMessage[] | null;
|
|
18
|
-
export declare function findToolResult(sessionId: string, toolUseId: string):
|
|
19
|
-
block: Extract<JournalBlock, {
|
|
20
|
-
type: 'tool_result';
|
|
21
|
-
}>;
|
|
22
|
-
subagentId?: string;
|
|
23
|
-
} | null;
|
|
18
|
+
export declare function findToolResult(sessionId: string, toolUseId: string): ToolResultLookup | null;
|
|
24
19
|
export declare function listSubagentJournals(sessionId: string): string[];
|
|
@@ -66,6 +66,12 @@ export type JournalBlock = {
|
|
|
66
66
|
source: JournalBinary;
|
|
67
67
|
title?: string;
|
|
68
68
|
};
|
|
69
|
+
export interface ToolResultLookup {
|
|
70
|
+
block: Extract<JournalBlock, {
|
|
71
|
+
type: 'tool_result';
|
|
72
|
+
}>;
|
|
73
|
+
subagentId?: string;
|
|
74
|
+
}
|
|
69
75
|
export interface JournalMessage {
|
|
70
76
|
role: 'user' | 'assistant';
|
|
71
77
|
content: JournalBlock[];
|