agent-afk 5.123.11 → 5.123.13
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/auth/credential-resolver.d.ts +1 -0
- package/dist/agent/subagent/fork-child-config.d.ts +26 -0
- package/dist/agent/subagent/fork-lifecycle.d.ts +22 -0
- package/dist/agent/subagent/fork-validation.d.ts +2 -0
- package/dist/cli.mjs +525 -525
- package/dist/index.mjs +187 -187
- package/dist/telegram.mjs +257 -257
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ProviderRouteHints } from '../providers/index.js';
|
|
2
2
|
export declare function loadAnthropicCredential(): string | undefined;
|
|
3
|
+
export declare function preloadClaudeKeychainOAuth(provider: string): Promise<string | undefined>;
|
|
3
4
|
export declare function loadOpenAICredential(): string | undefined;
|
|
4
5
|
export declare function loadXaiApiKey(): string | undefined;
|
|
5
6
|
export declare function loadXaiCredential(): string | undefined;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AgentConfig, AgentModelInput } from '../types.js';
|
|
2
|
+
import type { BundledProviderName } from '../providers/index.js';
|
|
3
|
+
import type { CanUseTool } from '../types/sdk-types.js';
|
|
4
|
+
import type { TraceSink } from '../trace/index.js';
|
|
5
|
+
import type { Surface } from '../awareness/types.js';
|
|
6
|
+
import type { HookRegistry } from '../hooks.js';
|
|
7
|
+
import type { ForkSubagentOptions } from './fork-types.js';
|
|
8
|
+
export interface AssembleChildConfigArgs<T> {
|
|
9
|
+
options: ForkSubagentOptions<T>;
|
|
10
|
+
id: string;
|
|
11
|
+
resume: string | undefined;
|
|
12
|
+
registry: HookRegistry | undefined;
|
|
13
|
+
effectiveChildModel: AgentModelInput;
|
|
14
|
+
effectiveTimeoutMs: number;
|
|
15
|
+
inheritedReadRoots: string[] | undefined;
|
|
16
|
+
composedWriteRoots: string[] | undefined;
|
|
17
|
+
childController: AbortController;
|
|
18
|
+
parentCwd: string | undefined;
|
|
19
|
+
parentApiKey: string | undefined;
|
|
20
|
+
parentBaseUrl: string | undefined;
|
|
21
|
+
parentProvider: BundledProviderName | undefined;
|
|
22
|
+
parentTraceWriter: TraceSink | undefined;
|
|
23
|
+
parentSurface: Surface | undefined;
|
|
24
|
+
parentCanUseTool: CanUseTool | undefined;
|
|
25
|
+
}
|
|
26
|
+
export declare function assembleChildConfig<T>(args: AssembleChildConfigArgs<T>): AgentConfig;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AgentConfig, AgentModelInput } from '../types.js';
|
|
2
|
+
import type { TraceSink } from '../trace/index.js';
|
|
3
|
+
export interface EmitForkStartedArgs {
|
|
4
|
+
effectiveTraceWriter: TraceSink | undefined;
|
|
5
|
+
id: string;
|
|
6
|
+
parentSessionId: string | undefined;
|
|
7
|
+
rootId: string;
|
|
8
|
+
effectiveChildModel: AgentModelInput | undefined;
|
|
9
|
+
childConfig: AgentConfig;
|
|
10
|
+
promptHead: string | undefined;
|
|
11
|
+
effectiveAgentType: string | undefined;
|
|
12
|
+
effectiveResolvedAgentType: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare function emitForkStarted(args: EmitForkStartedArgs): string;
|
|
15
|
+
export interface AppendForkTelemetryArgs {
|
|
16
|
+
modelString: string;
|
|
17
|
+
id: string;
|
|
18
|
+
idPrefix: string | undefined;
|
|
19
|
+
parentSessionId: string | undefined;
|
|
20
|
+
effectiveResolvedAgentType: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare function appendForkTelemetry(args: AppendForkTelemetryArgs): Promise<void>;
|