agent-afk 5.275.6 → 5.276.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/hooks.d.ts +1 -0
- package/dist/agent/preexisting-ledger/detector.d.ts +9 -0
- package/dist/agent/preexisting-ledger/paths.d.ts +2 -0
- package/dist/agent/preexisting-ledger/resolve.d.ts +2 -0
- package/dist/agent/preexisting-ledger/session-end-hook.d.ts +13 -0
- package/dist/agent/providers/openai-compatible/query/overload-pause-tier.d.ts +13 -0
- package/dist/agent/session/session-shutdown.d.ts +1 -0
- package/dist/agent/tools/handlers/bash-scan-exempt.d.ts +3 -0
- package/dist/cli/commands/chat.browser-teardown.d.ts +1 -0
- package/dist/cli.mjs +394 -392
- package/dist/config/env.d.ts +7 -0
- package/dist/index.mjs +135 -135
- package/dist/telegram.mjs +174 -172
- package/package.json +3 -2
package/dist/agent/hooks.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type SignalKind = 'preexisting-sentence' | 'deferred-bullet';
|
|
2
|
+
export type DefectCategory = 'failing-test' | 'gate' | 'size-ceiling' | 'other';
|
|
3
|
+
export interface DetectedEntry {
|
|
4
|
+
signal: SignalKind;
|
|
5
|
+
category: DefectCategory;
|
|
6
|
+
loci: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare const MAX_SCAN_CHARS = 500000;
|
|
9
|
+
export declare function detectInText(text: string): DetectedEntry[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HookHandler } from '../hooks.js';
|
|
2
|
+
import type { DetectedEntry } from './detector.js';
|
|
3
|
+
export interface LedgerRecord {
|
|
4
|
+
ts: string;
|
|
5
|
+
sessionId: string;
|
|
6
|
+
turn: number;
|
|
7
|
+
repo: string;
|
|
8
|
+
signal: DetectedEntry['signal'];
|
|
9
|
+
category: DetectedEntry['category'];
|
|
10
|
+
loci: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare function createPreexistingLedgerHook(): HookHandler;
|
|
13
|
+
export declare function resolveAssistantTexts(sessionId: string, fromContext: readonly string[] | undefined): readonly string[] | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ProviderEvent } from '../../../provider.js';
|
|
2
|
+
import type { TraceSink } from '../../../trace/index.js';
|
|
3
|
+
import type { IterationResult } from './stream-drive.js';
|
|
4
|
+
export declare const OPENAI_COMPAT_OVERLOAD_EXHAUSTED_NOTICE: string;
|
|
5
|
+
export declare function isOverloadErrorEvent(event: ProviderEvent): boolean;
|
|
6
|
+
export interface OverloadPauseTierContext {
|
|
7
|
+
surface: string | undefined;
|
|
8
|
+
traceWriter: TraceSink | undefined;
|
|
9
|
+
signal: AbortSignal;
|
|
10
|
+
isClosed: () => boolean;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function runIterationWithOverloadPause(makeIteration: () => AsyncGenerator<ProviderEvent, IterationResult | null>, ctx: OverloadPauseTierContext): AsyncGenerator<ProviderEvent, IterationResult | null>;
|
|
@@ -11,6 +11,7 @@ export interface ShutdownDeps {
|
|
|
11
11
|
getSessionId: () => string | undefined;
|
|
12
12
|
ownedTraceWriter: TraceWriter | undefined;
|
|
13
13
|
ownsTraceSeal: boolean;
|
|
14
|
+
getAssistantTexts?: () => readonly string[];
|
|
14
15
|
}
|
|
15
16
|
export declare class SessionShutdown {
|
|
16
17
|
private dispatched;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function closeLazyBrowser(): Promise<void>;
|