agent-afk 5.191.3 → 5.191.5
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/tools/subagent/foreground-promotion.d.ts +5 -1
- package/dist/agent/tools/subagent-executor.d.ts +2 -4
- package/dist/cli/commands/interactive/queued-flush.d.ts +2 -0
- package/dist/cli.mjs +622 -622
- package/dist/index.mjs +232 -232
- package/dist/telegram.mjs +310 -310
- package/dist/utils/resolve-shell.d.ts +6 -0
- package/package.json +1 -1
|
@@ -4,10 +4,14 @@ import type { SubagentManager } from '../../subagent.js';
|
|
|
4
4
|
import type { TraceOrigin, TraceActor } from '../../session/session-identity.js';
|
|
5
5
|
import type { TraceSink } from '../../trace/index.js';
|
|
6
6
|
import type { ToolResult } from '../types.js';
|
|
7
|
-
import type { PromotedSubagentInfo } from '../subagent-executor.js';
|
|
8
7
|
import { type QueuedNoteClaim } from './queued-note.js';
|
|
9
8
|
import { withProvenanceHeader } from './foreground-promotion.provenance.js';
|
|
10
9
|
export { withProvenanceHeader };
|
|
10
|
+
export interface PromotedSubagentInfo {
|
|
11
|
+
jobId: string;
|
|
12
|
+
label: string;
|
|
13
|
+
sharesWorktree?: boolean;
|
|
14
|
+
}
|
|
11
15
|
type ForkedHandle = Awaited<ReturnType<SubagentManager['forkSubagent']>>;
|
|
12
16
|
export interface PromotionTrigger {
|
|
13
17
|
fire: (queuedNote?: QueuedNoteClaim) => void;
|
|
@@ -11,6 +11,7 @@ import type { SkillExecutor } from './skill-executor.js';
|
|
|
11
11
|
import type { Surface } from '../awareness/types.js';
|
|
12
12
|
import type { TraceSink } from '../trace/index.js';
|
|
13
13
|
import { type AgentExecutionMode } from './subagent/input-parse.js';
|
|
14
|
+
import { type PromotedSubagentInfo } from './subagent/foreground-promotion.js';
|
|
14
15
|
import type { QueuedNoteClaim } from './subagent/queued-note.js';
|
|
15
16
|
import { type InboundAttachmentReader } from '../content/attachment-registry.js';
|
|
16
17
|
export { DEFAULT_MAX_NESTING_DEPTH, type ChildProviderFactoryArgs } from './nesting.js';
|
|
@@ -37,10 +38,7 @@ export interface SubagentExecutorContext {
|
|
|
37
38
|
inboundAttachmentRegistry?: InboundAttachmentReader;
|
|
38
39
|
parentModel?: AgentModelInput;
|
|
39
40
|
}
|
|
40
|
-
export
|
|
41
|
-
jobId: string;
|
|
42
|
-
label: string;
|
|
43
|
-
}
|
|
41
|
+
export type { PromotedSubagentInfo } from './subagent/foreground-promotion.js';
|
|
44
42
|
export interface SubagentControl {
|
|
45
43
|
hasPromotableForeground(): boolean;
|
|
46
44
|
promoteActiveForeground(queuedNote?: QueuedNoteClaim): Promise<PromotedSubagentInfo[]>;
|
|
@@ -17,12 +17,14 @@ export interface QueuedFlushControl {
|
|
|
17
17
|
}): Promise<readonly {
|
|
18
18
|
jobId: string;
|
|
19
19
|
label: string;
|
|
20
|
+
sharesWorktree?: boolean;
|
|
20
21
|
}[]>;
|
|
21
22
|
}
|
|
22
23
|
export interface QueuedFlushResult {
|
|
23
24
|
jobs: readonly {
|
|
24
25
|
jobId: string;
|
|
25
26
|
label: string;
|
|
27
|
+
sharesWorktree?: boolean;
|
|
26
28
|
}[];
|
|
27
29
|
flushedText?: string;
|
|
28
30
|
flushedPreview?: string;
|