agent-afk 5.301.1 → 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/providers/anthropic-direct/query/turn-request.d.ts +1 -0
- package/dist/agent/providers/shared/stop-hook-continuation.d.ts +3 -0
- package/dist/cli/commands/interactive/loop-iteration.hooks.d.ts +0 -1
- package/dist/cli.mjs +333 -332
- package/dist/index.mjs +139 -138
- package/dist/telegram.mjs +161 -160
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -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>;
|