agent-afk 5.301.0 → 5.301.1
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/facets/schema.d.ts +5 -1
- package/dist/agent/journal/index.d.ts +1 -0
- package/dist/agent/journal/result-flags.d.ts +14 -0
- package/dist/agent/journal/types.d.ts +2 -0
- package/dist/agent/provider.d.ts +1 -0
- package/dist/agent/providers/shared/tool-result.d.ts +1 -0
- package/dist/agent/shell-jobs/process-jobs.d.ts +1 -0
- package/dist/agent/tools/compose-executor.partial.d.ts +1 -0
- package/dist/agent/tools/detach-registry.d.ts +1 -0
- package/dist/agent/types/message-types.d.ts +1 -0
- package/dist/cli/slash/types.d.ts +1 -0
- package/dist/cli.mjs +335 -335
- package/dist/index.mjs +141 -141
- package/dist/telegram.mjs +164 -164
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const FACET_VERSION =
|
|
2
|
+
export declare const FACET_VERSION = 9;
|
|
3
3
|
export declare const ToolEventInputSchema: z.ZodObject<{
|
|
4
4
|
toolName: z.ZodString;
|
|
5
5
|
toolUseId: z.ZodOptional<z.ZodString>;
|
|
@@ -8,6 +8,7 @@ export declare const ToolEventInputSchema: z.ZodObject<{
|
|
|
8
8
|
result: z.ZodOptional<z.ZodString>;
|
|
9
9
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
partialNodeCount: z.ZodOptional<z.ZodNumber>;
|
|
11
12
|
}, z.core.$loose>;
|
|
12
13
|
export declare const TurnInputSchema: z.ZodObject<{
|
|
13
14
|
user: z.ZodDefault<z.ZodString>;
|
|
@@ -21,6 +22,7 @@ export declare const TurnInputSchema: z.ZodObject<{
|
|
|
21
22
|
result: z.ZodOptional<z.ZodString>;
|
|
22
23
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
23
24
|
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
partialNodeCount: z.ZodOptional<z.ZodNumber>;
|
|
24
26
|
}, z.core.$loose>>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
28
|
export declare const StoredSessionInputSchema: z.ZodObject<{
|
|
@@ -60,6 +62,7 @@ export declare const StoredSessionInputSchema: z.ZodObject<{
|
|
|
60
62
|
result: z.ZodOptional<z.ZodString>;
|
|
61
63
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
62
64
|
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
partialNodeCount: z.ZodOptional<z.ZodNumber>;
|
|
63
66
|
}, z.core.$loose>>>;
|
|
64
67
|
}, z.core.$loose>>>;
|
|
65
68
|
forkedFrom: z.ZodOptional<z.ZodString>;
|
|
@@ -172,6 +175,7 @@ export declare const SessionFacetSchema: z.ZodObject<{
|
|
|
172
175
|
friction_counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
173
176
|
friction_detail: z.ZodString;
|
|
174
177
|
compose_partial_nodes: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
compose_partial_node_count: z.ZodOptional<z.ZodNumber>;
|
|
175
179
|
outcome: z.ZodEnum<{
|
|
176
180
|
unknown: "unknown";
|
|
177
181
|
aborted: "aborted";
|
|
@@ -6,3 +6,4 @@ export { findToolResult, foldJournal, hydrateMessages, journalExists, listSubage
|
|
|
6
6
|
export { findToolResultAsync } from './reader.async.js';
|
|
7
7
|
export { forkJournal } from './fork.js';
|
|
8
8
|
export { foldForDisplay, loadDisplayMessages } from './display-fold.js';
|
|
9
|
+
export { pickResultFlags, readResultFlags, tagResultFlags, type JournalResultFlags } from './result-flags.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface JournalResultFlags {
|
|
2
|
+
incomplete?: true;
|
|
3
|
+
incompleteReason?: string;
|
|
4
|
+
partialNodeCount?: number;
|
|
5
|
+
}
|
|
6
|
+
interface FlagSource {
|
|
7
|
+
incomplete?: boolean;
|
|
8
|
+
incompleteReason?: string;
|
|
9
|
+
partialNodeCount?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function pickResultFlags(src: FlagSource): JournalResultFlags;
|
|
12
|
+
export declare function tagResultFlags(native: object, src: FlagSource): void;
|
|
13
|
+
export declare function readResultFlags(native: object): JournalResultFlags;
|
|
14
|
+
export {};
|
package/dist/agent/provider.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export declare class ProcessJobRegistry extends EventEmitter<ProcessJobRegistryE
|
|
|
66
66
|
tail(id: string, maxChars: number): string | undefined;
|
|
67
67
|
list(): readonly ProcessJobSnapshot[];
|
|
68
68
|
runningCount(): number;
|
|
69
|
+
leaderExited(id: string): boolean;
|
|
69
70
|
cancel(id: string, source: ProcessCancelSource, graceMs?: number): ProcessJobSnapshot | undefined;
|
|
70
71
|
emitCancelTimeout(id: string): void;
|
|
71
72
|
waitFor(id: string): Promise<ProcessJobSnapshot | undefined>;
|