agent-afk 5.20.6 → 5.20.8

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.
@@ -41,6 +41,7 @@ export declare class OpenAICompatibleQuery implements ProviderQuery {
41
41
  private readonly closedPromise;
42
42
  private lastUsage;
43
43
  constructor(opts: OpenAICompatibleQueryOptions);
44
+ private activeOpenAITools;
44
45
  [Symbol.asyncIterator](): AsyncIterator<ProviderEvent>;
45
46
  private runTurn;
46
47
  private _runTurnInner;
@@ -8,6 +8,7 @@ export declare class AgentSession implements IAgentSession {
8
8
  private config;
9
9
  private _pendingPlanExitSeed;
10
10
  private _prePlanPermissionMode;
11
+ private _modeBeforeDefault;
11
12
  private currentState;
12
13
  private providerQuery;
13
14
  private providerIterator;
@@ -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 declare function collectSkillEntries(pluginConfigs?: SdkPluginConfig[]): SkillManifestEntry[];
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;
@@ -0,0 +1,5 @@
1
+ export type ExecFileFn = (cmd: string, args: string[]) => Promise<{
2
+ stdout: string;
3
+ stderr: string;
4
+ }>;
5
+ export declare function resolveWorktreeMainRoot(cwd: string | undefined, execFile?: ExecFileFn): Promise<string | undefined>;