agent-afk 5.301.0 → 5.301.2
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/anthropic-direct/query/turn-request.d.ts +1 -0
- package/dist/agent/providers/shared/stop-hook-continuation.d.ts +3 -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/commands/interactive/loop-iteration.hooks.d.ts +0 -1
- package/dist/cli/slash/types.d.ts +1 -0
- package/dist/cli.mjs +337 -336
- package/dist/index.mjs +142 -141
- package/dist/telegram.mjs +165 -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
|
@@ -26,6 +26,7 @@ export interface TurnRequestInput {
|
|
|
26
26
|
throttleQueue?: RunTurnInput['throttleQueue'];
|
|
27
27
|
onUsageProgress?: RunTurnInput['onUsageProgress'];
|
|
28
28
|
beforeNextRound?: RunTurnInput['beforeNextRound'];
|
|
29
|
+
beforeTurnEnd?: RunTurnInput['beforeTurnEnd'];
|
|
29
30
|
journalSync?: RunTurnInput['journalSync'];
|
|
30
31
|
}
|
|
31
32
|
export declare function prepareTurnRequest(input: TurnRequestInput): {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type ToolEventMin } from '../../done-evidence.js';
|
|
2
2
|
import type { AgentConfig } from '../../types.js';
|
|
3
3
|
import type { Message } from '../../types.js';
|
|
4
|
+
export declare const CONTINUE_WITH_MAX_CHARS = 4000;
|
|
5
|
+
export declare function capContinueWith(text: string): string;
|
|
4
6
|
export declare function resolveMaxContinuations(): number;
|
|
5
7
|
export interface BeforeTurnEndContext {
|
|
6
8
|
readonly config: AgentConfig;
|
|
@@ -22,5 +24,6 @@ export interface BeforeTurnEndWiring {
|
|
|
22
24
|
export interface BeforeTurnEndResult {
|
|
23
25
|
readonly continueWith?: string;
|
|
24
26
|
readonly nextContinuation: number;
|
|
27
|
+
readonly dispatched?: boolean;
|
|
25
28
|
}
|
|
26
29
|
export declare function runBeforeTurnEnd(ctx: BeforeTurnEndContext): Promise<BeforeTurnEndResult>;
|
|
@@ -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>;
|
|
@@ -4,4 +4,3 @@ export interface UpsResult {
|
|
|
4
4
|
runText: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function dispatchUserPromptSubmit(runText: string, ctx: InteractiveCtx): Promise<UpsResult>;
|
|
7
|
-
export declare function dispatchStop(ctx: InteractiveCtx, currentTerminalKind: 'done' | 'blocked' | 'asking' | 'interrupted' | undefined, currentDoneHasEvidence: boolean | undefined, currentDoneClassification: 'no-code-changes' | 'verified' | 'unverified' | undefined): Promise<string | undefined>;
|