agent-afk 5.257.4 → 5.257.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.
@@ -7,3 +7,7 @@ export declare function validateScheduleCwd(rawCwd: string): {
7
7
  error: string;
8
8
  };
9
9
  export declare function checkTaskCwdAtRuntime(cwd: string): string | undefined;
10
+ export declare function warnIfBuiltinHasCwd(task: {
11
+ taskId: string;
12
+ cwd?: string | undefined;
13
+ }): void;
@@ -18,7 +18,9 @@ export declare function saveSchedules(configs: ScheduledTaskConfig[], path?: str
18
18
  export declare function addSchedule(config: Omit<ScheduledTaskConfig, 'id' | 'createdAt' | 'updatedAt'>, path?: string): ScheduledTaskConfig;
19
19
  export declare function removeSchedule(id: string, path?: string): boolean;
20
20
  export declare function getSchedule(id: string, path?: string): ScheduledTaskConfig | undefined;
21
- export type SchedulePatch = Partial<Omit<ScheduledTaskConfig, 'id' | 'createdAt' | 'updatedAt'>>;
21
+ export type SchedulePatch = Partial<Omit<ScheduledTaskConfig, 'id' | 'createdAt' | 'updatedAt' | 'cwd'>> & {
22
+ cwd?: string | null;
23
+ };
22
24
  export declare function updateSchedule(id: string, patch: SchedulePatch, path?: string): ScheduledTaskConfig | undefined;
23
25
  export declare function toggleScheduleEnabled(id: string, enabled: boolean, path?: string): ScheduledTaskConfig | undefined;
24
26
  export declare function slugify(name: string): string;
@@ -0,0 +1,16 @@
1
+ import type { TraceSink } from '../../../trace/index.js';
2
+ import type { ProviderEvent } from '../../../provider.js';
3
+ import type { ToolCall, ToolResult } from '../../anthropic-direct/types.js';
4
+ export declare function emitDispatchedToolOutputs({ calls, dispatcherResults, parseErrors, startTimes, traceWriter, subagentId, sessionId, results, }: {
5
+ calls: readonly ToolCall[];
6
+ dispatcherResults: ToolResult[];
7
+ parseErrors: Map<string, string>;
8
+ startTimes: Map<string, number>;
9
+ traceWriter: TraceSink | undefined;
10
+ subagentId: string | undefined;
11
+ sessionId: string;
12
+ results: {
13
+ call: ToolCall;
14
+ result: ToolResult;
15
+ }[];
16
+ }): AsyncGenerator<ProviderEvent, void>;
@@ -21,6 +21,7 @@ export interface ToolResult {
21
21
  blockReason?: string;
22
22
  batchIndex?: number;
23
23
  batchSize?: number;
24
+ completedAt?: number;
24
25
  render?: RenderHints;
25
26
  testResult?: import('../../tools/handlers/test-runner-detector.js').TestResult;
26
27
  image?: {