agent-afk 5.20.7 → 5.21.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/session/model-slots.d.ts +7 -0
- package/dist/agent/subagent.d.ts +2 -0
- package/dist/agent/tools/skill-bridge.d.ts +5 -2
- package/dist/agent/worktree-read-root.d.ts +5 -0
- package/dist/cli.mjs +421 -420
- package/dist/config/mutate.d.ts +2 -1
- package/dist/config/settable-keys.d.ts +3 -2
- package/dist/index.mjs +169 -168
- package/dist/paths.d.ts +2 -2
- package/dist/telegram.mjs +207 -206
- package/package.json +1 -1
|
@@ -22,3 +22,10 @@ export declare function resolveBinding(input: string | undefined, bindings?: Mod
|
|
|
22
22
|
export declare function resolveModelInput(input: string | undefined, bindings?: ModelSlots): string | undefined;
|
|
23
23
|
export declare function unconfiguredSlotError(input: string | undefined, bindings?: ModelSlots): string | undefined;
|
|
24
24
|
export declare function parseModelsConfig(raw: unknown): Partial<Record<SlotName, ModelSlotBinding>>;
|
|
25
|
+
export declare function coerceSlotBindingInput(raw: unknown): {
|
|
26
|
+
ok: true;
|
|
27
|
+
value: ModelSlotBinding;
|
|
28
|
+
} | {
|
|
29
|
+
ok: false;
|
|
30
|
+
error: string;
|
|
31
|
+
};
|
package/dist/agent/subagent.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare class SubagentManager {
|
|
|
48
48
|
private readonly parentBaseUrl;
|
|
49
49
|
private readonly parentProvider;
|
|
50
50
|
private parentCwd;
|
|
51
|
+
private readonly worktreeMainRootCache;
|
|
51
52
|
private readonly parentTraceWriter;
|
|
52
53
|
private readonly parentSurface;
|
|
53
54
|
private readonly abortGraph;
|
|
@@ -61,6 +62,7 @@ export declare class SubagentManager {
|
|
|
61
62
|
onChildAborted(listener: ChildAbortedListener): () => void;
|
|
62
63
|
setOnSubagentSucceeded(cb: (usage: import('./subagent/result.js').SubagentTrace['usage'], costUsd: number | undefined) => void): void;
|
|
63
64
|
setCwd(cwd: string): void;
|
|
65
|
+
private resolveMainRootForCwd;
|
|
64
66
|
abortAll(reason?: unknown, origin?: AbortOrigin): void;
|
|
65
67
|
forkSubagent<T = unknown>(options: ForkSubagentOptions<T>): Promise<SubagentHandle<T>>;
|
|
66
68
|
kill(id: string): Promise<boolean>;
|
|
@@ -7,8 +7,11 @@ export interface SkillManifestEntry {
|
|
|
7
7
|
argumentHint?: string;
|
|
8
8
|
whenToUse?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function buildSkillManifest(pluginConfigs?: SdkPluginConfig[]): string;
|
|
11
|
-
export
|
|
10
|
+
export declare function buildSkillManifest(pluginConfigs?: SdkPluginConfig[], opts?: CollectSkillEntriesOptions): string;
|
|
11
|
+
export interface CollectSkillEntriesOptions {
|
|
12
|
+
cwd?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function collectSkillEntries(pluginConfigs?: SdkPluginConfig[], opts?: CollectSkillEntriesOptions): SkillManifestEntry[];
|
|
12
15
|
export interface PluginSkillBody {
|
|
13
16
|
body: string;
|
|
14
17
|
pluginPath: string;
|