agent-afk 5.21.1 → 5.23.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/agents/registry.d.ts +3 -1
- package/dist/agent/agents/types.d.ts +1 -0
- package/dist/agent/tools/skill-bridge.d.ts +2 -0
- package/dist/agent/tools/subagent-executor.d.ts +1 -0
- package/dist/cli/_lib/stream-renderer-contexts.d.ts +2 -2
- package/dist/cli/_lib/stream-renderer-lifecycle.d.ts +1 -1
- package/dist/cli/_lib/stream-renderer-orchestrator.d.ts +1 -1
- package/dist/cli/_lib/stream-renderer-subagent.d.ts +1 -1
- package/dist/cli/_lib/stream-renderer.d.ts +1 -1
- package/dist/cli/slash/types.d.ts +1 -1
- package/dist/cli.mjs +459 -458
- package/dist/index.mjs +107 -107
- package/dist/telegram.mjs +230 -230
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { AgentDefinition } from '../types/sdk-types.js';
|
|
2
|
-
import type { AgentRegistry } from './types.js';
|
|
2
|
+
import type { AgentRegistry, RegisteredAgent } from './types.js';
|
|
3
3
|
export interface LoadAgentRegistryOptions {
|
|
4
4
|
cwd?: string;
|
|
5
5
|
configAgents?: Record<string, AgentDefinition>;
|
|
6
|
+
pluginAgents?: RegisteredAgent[];
|
|
6
7
|
warn?: (message: string) => void;
|
|
7
8
|
}
|
|
9
|
+
export declare function collectMarkdownFiles(dir: string, depth?: number): string[];
|
|
8
10
|
export declare function loadAgentRegistry(options?: LoadAgentRegistryOptions): AgentRegistry;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '../../skills/all.js';
|
|
2
|
+
import type { RegisteredAgent } from '../agents/types.js';
|
|
2
3
|
import type { SdkPluginConfig } from '../types/sdk-types.js';
|
|
3
4
|
export interface SkillManifestEntry {
|
|
4
5
|
name: string;
|
|
@@ -20,5 +21,6 @@ export interface PluginSkillBody {
|
|
|
20
21
|
readOnly?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare function discoverPluginSkillBodies(pluginConfigs?: SdkPluginConfig[], opts?: CollectSkillEntriesOptions): Map<string, PluginSkillBody>;
|
|
24
|
+
export declare function discoverPluginAgents(pluginConfigs?: SdkPluginConfig[]): RegisteredAgent[];
|
|
23
25
|
export declare function scanAllPluginRoots(opts?: CollectSkillEntriesOptions): SdkPluginConfig[];
|
|
24
26
|
export declare function ensurePluginEntrypointsLoaded(): Promise<void>;
|
|
@@ -17,7 +17,7 @@ export declare function makeOrchestratorCtx(args: {
|
|
|
17
17
|
overlayComposer: OverlayComposer | null;
|
|
18
18
|
toolLane: ToolLane;
|
|
19
19
|
thinkingLane: ThinkingLane;
|
|
20
|
-
thinkingMode: 'off' | 'summary' | 'live';
|
|
20
|
+
thinkingMode: 'off' | 'summary' | 'live' | 'digest';
|
|
21
21
|
streamingMarkdown: {
|
|
22
22
|
current: StreamingMarkdownRenderer | null;
|
|
23
23
|
};
|
|
@@ -32,7 +32,7 @@ export declare function makeSubagentCtx(args: {
|
|
|
32
32
|
toolLane: ToolLane;
|
|
33
33
|
out: Writer;
|
|
34
34
|
streamingMarkdown: Map<string, StreamingMarkdownRenderer>;
|
|
35
|
-
thinkingMode: 'off' | 'summary' | 'live';
|
|
35
|
+
thinkingMode: 'off' | 'summary' | 'live' | 'digest';
|
|
36
36
|
orchestratorCtx: OrchestratorCtx;
|
|
37
37
|
}): SubagentCtx;
|
|
38
38
|
export declare function resolveParentSyntheticId(args: {
|
|
@@ -17,7 +17,7 @@ export interface LifecycleContext {
|
|
|
17
17
|
current: StreamingMarkdownRenderer | null;
|
|
18
18
|
};
|
|
19
19
|
lastProgressByTask: Map<string, ProgressEvent>;
|
|
20
|
-
thinkingMode: 'off' | 'summary' | 'live';
|
|
20
|
+
thinkingMode: 'off' | 'summary' | 'live' | 'digest';
|
|
21
21
|
out: Writer;
|
|
22
22
|
isTTY: boolean;
|
|
23
23
|
sources: Map<string, SourceState>;
|
|
@@ -16,7 +16,7 @@ export interface OrchestratorCtx {
|
|
|
16
16
|
overlayComposer?: OverlayComposer | null;
|
|
17
17
|
toolLane: ToolLane;
|
|
18
18
|
thinkingLane: ThinkingLane;
|
|
19
|
-
thinkingMode?: 'off' | 'summary' | 'live';
|
|
19
|
+
thinkingMode?: 'off' | 'summary' | 'live' | 'digest';
|
|
20
20
|
streamingMarkdown: {
|
|
21
21
|
current: StreamingMarkdownRenderer | null;
|
|
22
22
|
};
|
|
@@ -13,7 +13,7 @@ export interface SubagentCtx {
|
|
|
13
13
|
toolLane: ToolLane;
|
|
14
14
|
out: Writer;
|
|
15
15
|
streamingMarkdown: Map<string, StreamingMarkdownRenderer>;
|
|
16
|
-
thinkingMode: 'off' | 'summary' | 'live';
|
|
16
|
+
thinkingMode: 'off' | 'summary' | 'live' | 'digest';
|
|
17
17
|
orchestratorCtx?: OrchestratorCtx;
|
|
18
18
|
}
|
|
19
19
|
export declare function handleSubagentEvent(event: OutputEvent, sourceId: string, source: SourceState, ctx: SubagentCtx): void;
|
|
@@ -6,7 +6,7 @@ import type { IHistoryRing } from '../input/types.js';
|
|
|
6
6
|
import type { AutocompleteState } from '../input/autocomplete-state.js';
|
|
7
7
|
export interface StreamRendererOptions {
|
|
8
8
|
out: Writer;
|
|
9
|
-
thinkingMode?: 'off' | 'summary' | 'live';
|
|
9
|
+
thinkingMode?: 'off' | 'summary' | 'live' | 'digest';
|
|
10
10
|
verbose?: boolean;
|
|
11
11
|
onCancel?: () => void;
|
|
12
12
|
onBackground?: () => void;
|
|
@@ -13,7 +13,7 @@ export type ResumeSwapResult = {
|
|
|
13
13
|
ok: false;
|
|
14
14
|
reason: string;
|
|
15
15
|
};
|
|
16
|
-
export type ThinkingUiMode = 'summary' | 'live' | 'off';
|
|
16
|
+
export type ThinkingUiMode = 'summary' | 'live' | 'digest' | 'off';
|
|
17
17
|
export interface ToolEvent {
|
|
18
18
|
toolName: string;
|
|
19
19
|
toolUseId: string;
|