agent-afk 5.292.3 → 5.293.0
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/mcp/stdio-exit-guardian.d.ts +8 -0
- package/dist/agent/providers/anthropic-direct/build-dispatcher.d.ts +1 -0
- package/dist/agent/types/config-types.d.ts +1 -0
- package/dist/cli/commands/interactive/bootstrap-infra.d.ts +2 -0
- package/dist/cli/commands/interactive/bootstrap-session-builder.d.ts +2 -0
- package/dist/cli/commands/interactive/shared.d.ts +1 -0
- package/dist/cli.mjs +324 -324
- package/dist/index.mjs +132 -132
- package/dist/telegram.mjs +155 -155
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
|
|
2
|
+
export declare function registerStdioChild(pid: number): void;
|
|
3
|
+
export declare function unregisterStdioChild(pid: number): void;
|
|
4
|
+
export declare function trackedStdioChildren(): number[];
|
|
5
|
+
export declare function terminateTrackedChildren(): void;
|
|
6
|
+
export declare class TrackedStdioClientTransport extends StdioClientTransport {
|
|
7
|
+
start(): Promise<void>;
|
|
8
|
+
}
|
|
@@ -30,6 +30,7 @@ export interface BuildDispatcherOptions {
|
|
|
30
30
|
planExitControls?: PlanExitControls;
|
|
31
31
|
spawnedPidRegistry?: SpawnedPidRegistry;
|
|
32
32
|
bashOutputTailReporter?: (toolUseId: string) => (tail: string | undefined) => void;
|
|
33
|
+
detachRegistry?: import('../../tools/detach-registry.js').DetachableToolRegistry;
|
|
33
34
|
}
|
|
34
35
|
export interface BuildDispatcherDeps {
|
|
35
36
|
memoryStore: MemoryStore;
|
|
@@ -83,6 +83,7 @@ export interface AgentConfig {
|
|
|
83
83
|
planExitControls?: PlanExitControls;
|
|
84
84
|
traceWriter?: TraceSink;
|
|
85
85
|
bashOutputTailReporter?: (toolUseId: string) => (tail: string | undefined) => void;
|
|
86
|
+
detachRegistry?: import('../tools/detach-registry.js').DetachableToolRegistry;
|
|
86
87
|
drainSubagents?: (reason: string) => Promise<unknown>;
|
|
87
88
|
isSubagentFork?: true;
|
|
88
89
|
provider?: ModelProvider;
|
|
@@ -6,6 +6,7 @@ import type { ComposeExecutor } from '../../../agent/tools/compose-executor.js';
|
|
|
6
6
|
import type { SubagentManager } from '../../../agent/subagent.js';
|
|
7
7
|
import { BackgroundAgentRegistry } from '../../../agent/background-registry.js';
|
|
8
8
|
import { BackgroundSummarizer } from '../../../agent/background-summarizer.js';
|
|
9
|
+
import { DetachableToolRegistry } from '../../../agent/tools/detach-registry.js';
|
|
9
10
|
import { createDefaultTraceWriter } from '../../../agent/trace/factory.js';
|
|
10
11
|
import type { ResolvedResumeTarget } from '../../resume-session.js';
|
|
11
12
|
import type { CliOptions } from './shared.js';
|
|
@@ -13,6 +14,7 @@ export interface BootstrapInfra {
|
|
|
13
14
|
trace: ReturnType<typeof createDefaultTraceWriter>;
|
|
14
15
|
apiKey: string | undefined;
|
|
15
16
|
backgroundRegistry: BackgroundAgentRegistry;
|
|
17
|
+
detachRegistry: DetachableToolRegistry;
|
|
16
18
|
bgSummarizer: BackgroundSummarizer | undefined;
|
|
17
19
|
rootManager: SubagentManager;
|
|
18
20
|
subagentExecutor: SubagentExecutor;
|
|
@@ -20,6 +20,7 @@ export interface BuildAgentSessionDeps {
|
|
|
20
20
|
traceWriter: TraceWriter | undefined;
|
|
21
21
|
drainSubagents?: ((reason: string) => Promise<unknown>) | undefined;
|
|
22
22
|
bashOutputTailReporter?: (toolUseId: string) => (tail: string | undefined) => void;
|
|
23
|
+
detachRegistry?: import('../../../agent/tools/detach-registry.js').DetachableToolRegistry;
|
|
23
24
|
cwd: string | undefined;
|
|
24
25
|
maxTurns: number;
|
|
25
26
|
autoResumeOnUsageLimit: boolean | undefined;
|
|
@@ -44,6 +45,7 @@ export declare function buildSharedDeps(a: {
|
|
|
44
45
|
traceWriter: TraceWriter | undefined;
|
|
45
46
|
drainSubagents?: ((reason: string) => Promise<unknown>) | undefined;
|
|
46
47
|
bashOutputTailReporter?: (toolUseId: string) => (tail: string | undefined) => void;
|
|
48
|
+
detachRegistry?: import('../../../agent/tools/detach-registry.js').DetachableToolRegistry;
|
|
47
49
|
effectiveCwd: string | undefined;
|
|
48
50
|
maxTurns: string;
|
|
49
51
|
initialPermissionMode: PermissionMode | undefined;
|
|
@@ -71,6 +71,7 @@ export interface InteractiveCtx {
|
|
|
71
71
|
backgroundRegistry: BackgroundAgentRegistry;
|
|
72
72
|
subagentManager: SubagentManager;
|
|
73
73
|
subagentControl?: SubagentControl;
|
|
74
|
+
detachRegistry?: DetachableToolRegistry;
|
|
74
75
|
bgSummarizer?: BackgroundSummarizer;
|
|
75
76
|
firstTurnHook?: (firstMessage: string) => Promise<void>;
|
|
76
77
|
initialInput?: string;
|