agent-afk 5.307.9 → 5.307.11
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/scheduler.d.ts +1 -0
- package/dist/agent/manifest/startup-reconcile.d.ts +4 -4
- package/dist/agent/providers/openai-compatible/complete-wire.d.ts +2 -1
- package/dist/agent/session/session-setup.d.ts +1 -0
- package/dist/cli/commands/interactive/loop-iteration.boundary.d.ts +2 -1
- package/dist/cli.mjs +408 -406
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +157 -157
- package/dist/insights/aggregators/subagent-outcomes.d.ts +2 -0
- package/dist/telegram.mjs +190 -190
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import type { AgentSession } from '../session/agent-session.js';
|
|
|
3
3
|
import type { AgentConfig } from '../types.js';
|
|
4
4
|
import type { Telegraf } from 'telegraf';
|
|
5
5
|
import { ScheduledTask } from './triggers.js';
|
|
6
|
+
export declare const COMMAND_HEAD_MAX_LEN = 60;
|
|
6
7
|
export { resolveWorktreePruneRoot } from './worktree-prune-task.js';
|
|
7
8
|
export { daemonTraceLabel } from './session-spawn.js';
|
|
8
9
|
import { type TaskTurnCompleteArgs } from './scheduler.execute-agent-task.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function runReplReconcile(sessionId: string): void
|
|
2
|
-
export declare function runTelegramReconcile<Route>(sessionId: string, route: Route, sendText: (route: Route, text: string) => void | Promise<boolean>): void
|
|
3
|
-
export declare function runNonInteractiveReconcile(sessionId: string): void
|
|
4
|
-
export declare function runDaemonReconcile(sessionId: string): void
|
|
1
|
+
export declare function runReplReconcile(sessionId: string): Promise<void>;
|
|
2
|
+
export declare function runTelegramReconcile<Route>(sessionId: string, route: Route, sendText: (route: Route, text: string) => void | Promise<boolean>): Promise<void>;
|
|
3
|
+
export declare function runNonInteractiveReconcile(sessionId: string): Promise<void>;
|
|
4
|
+
export declare function runDaemonReconcile(sessionId: string): Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import OpenAI from 'openai';
|
|
2
|
+
import { type AuthResolverDeps } from './auth.js';
|
|
2
3
|
import { type OpenAIOneShotInput } from './oneshot.js';
|
|
3
4
|
export type { OpenAIOneShotInput } from './oneshot.js';
|
|
4
5
|
export interface CompleteWireClientOptions {
|
|
@@ -9,4 +10,4 @@ export interface CompleteWireClientOptions {
|
|
|
9
10
|
fetch: typeof globalThis.fetch;
|
|
10
11
|
}
|
|
11
12
|
export type CompleteWireClientFactory = (opts: CompleteWireClientOptions) => OpenAI;
|
|
12
|
-
export declare function completeWithWire(input: OpenAIOneShotInput, clientFactory?: CompleteWireClientFactory): Promise<string>;
|
|
13
|
+
export declare function completeWithWire(input: OpenAIOneShotInput, clientFactory?: CompleteWireClientFactory, authDeps?: AuthResolverDeps): Promise<string>;
|
|
@@ -4,4 +4,5 @@ export declare function buildInitialState(config: AgentConfig, resolvedModel: st
|
|
|
4
4
|
sessionIdentity: SessionIdentity;
|
|
5
5
|
metadata: SessionMetadata;
|
|
6
6
|
};
|
|
7
|
+
export declare function seedResumeMessages(config: AgentConfig): AgentConfig;
|
|
7
8
|
export declare function scheduleTopLevelHousekeeping(getActiveLabel: () => string | undefined, getActiveSessionId: () => string | undefined): void;
|
|
@@ -15,12 +15,13 @@ export interface PeerBoundaryOpts {
|
|
|
15
15
|
peerNotifier: PeerInboxNotifier;
|
|
16
16
|
admissionQueue: AdmissionQueue;
|
|
17
17
|
isQueuedHumanTurn?: () => boolean;
|
|
18
|
+
processJobNotifier?: InjectionSource;
|
|
18
19
|
}
|
|
19
20
|
export declare function installPeerBoundary(opts: PeerBoundaryOpts): () => void;
|
|
20
21
|
export declare function reinstallPeerBoundary(opts: PeerBoundaryOpts, prevDispose: (() => void) | undefined): () => void;
|
|
21
22
|
export declare function drainAdmissionQueueFallback(text: string, q: AdmissionQueue): string;
|
|
22
23
|
export declare function applyDeferPeers(runText: string, queuedHumanTurn: boolean, surface: Pick<InputSurface, 'getCompositor'>, shellPassthrough: InjectionSource, bgResultNotifier: InjectionSource, peerNotifier: InjectionSource, admissionQueue: AdmissionQueue, processJobNotifier?: InjectionSource): string;
|
|
23
|
-
export declare function setupPeerBoundary(ctx: InteractiveCtx, surface: InputSurface, peerNotifier: PeerInboxNotifier, isQueuedHumanTurn: () => boolean): {
|
|
24
|
+
export declare function setupPeerBoundary(ctx: InteractiveCtx, surface: InputSurface, peerNotifier: PeerInboxNotifier, isQueuedHumanTurn: () => boolean, processJobNotifier?: InjectionSource): {
|
|
24
25
|
admissionQueue: AdmissionQueue;
|
|
25
26
|
reinstall: () => void;
|
|
26
27
|
};
|