agent-afk 5.229.0 → 5.230.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/dag-subagent.d.ts +2 -0
- package/dist/agent/tools/compose-executor.d.ts +2 -0
- package/dist/agent/tools/compose-input-parse.d.ts +1 -0
- package/dist/cli.mjs +241 -241
- package/dist/index.mjs +110 -110
- package/dist/telegram.mjs +132 -132
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import type { ModelProvider } from './provider.js';
|
|
|
5
5
|
import type { SubagentManager } from './subagent.js';
|
|
6
6
|
import { type DAGEdge, type DAGRunResult } from './dag.js';
|
|
7
7
|
import type { DelegationBudget } from './tools/delegation-budget.js';
|
|
8
|
+
import type { ImageBlockAttachment } from './content/image-blocks.js';
|
|
8
9
|
export interface SubagentDAGNode {
|
|
9
10
|
id: string;
|
|
10
11
|
systemPrompt: string;
|
|
@@ -24,6 +25,7 @@ export interface SubagentDAGNode {
|
|
|
24
25
|
maxTurns?: number;
|
|
25
26
|
provider?: ModelProvider;
|
|
26
27
|
buildPromptAsync?: (inputs: Record<string, unknown>) => Promise<string | ContentBlockParam[]>;
|
|
28
|
+
resolvedAttachments?: ImageBlockAttachment[];
|
|
27
29
|
}
|
|
28
30
|
export interface SubagentDAGOptions {
|
|
29
31
|
manager: SubagentManager;
|
|
@@ -5,6 +5,7 @@ import type { Surface } from '../awareness/types.js';
|
|
|
5
5
|
import type { WorkspaceStore } from '../workspace/index.js';
|
|
6
6
|
import type { TraceSink } from '../trace/index.js';
|
|
7
7
|
import type { ToolCall, ToolResult } from './types.js';
|
|
8
|
+
import type { InboundAttachmentReader } from '../content/attachment-registry.js';
|
|
8
9
|
export interface ComposeExecutorContext {
|
|
9
10
|
parentSession: Pick<IAgentSession, 'sessionId' | 'abortSignal'>;
|
|
10
11
|
defaultModel?: AgentModelInput;
|
|
@@ -23,6 +24,7 @@ export interface ComposeExecutorContext {
|
|
|
23
24
|
workspaceStore?: WorkspaceStore;
|
|
24
25
|
agentRegistry?: AgentRegistry;
|
|
25
26
|
delegationBudget?: import('./delegation-budget.js').DelegationBudget;
|
|
27
|
+
inboundAttachmentRegistry?: InboundAttachmentReader;
|
|
26
28
|
onSubagentSucceeded?: (usage: import('../subagent/result.js').SubagentTrace['usage'], costUsd: number | undefined) => void;
|
|
27
29
|
}
|
|
28
30
|
export interface TruncationEvent {
|