agent-afk 5.321.5 → 5.321.6

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.
@@ -19,6 +19,12 @@ export interface ScheduledTaskConfig {
19
19
  createdAt: string;
20
20
  updatedAt: string;
21
21
  }
22
+ export declare const SCHEDULES_SCHEMA_VERSION = 1;
23
+ export declare class SchedulesVersionError extends Error {
24
+ readonly path: string;
25
+ readonly fileVersion: number | undefined;
26
+ constructor(path: string, message: string, fileVersion?: number);
27
+ }
22
28
  export declare function loadSchedules(path?: string): ScheduledTaskConfig[];
23
29
  export declare function saveSchedules(configs: ScheduledTaskConfig[], path?: string): void;
24
30
  export declare function addSchedule(config: Omit<ScheduledTaskConfig, 'id' | 'createdAt' | 'updatedAt'>, path?: string): ScheduledTaskConfig;
@@ -37,6 +37,7 @@ export interface AnthropicDirectQueryOptions {
37
37
  softDeadlineMs?: number;
38
38
  traceWriter?: import('../../trace/index.js').TraceSink;
39
39
  subagentId?: string;
40
+ hasWorkspacePreamble?: boolean;
40
41
  autoResumeOnUsageLimit?: boolean;
41
42
  surface?: string;
42
43
  cwdDependentsFactory?: (cwd: string) => {
@@ -22,6 +22,7 @@ export declare class AnthropicDirectQuery implements ProviderQuery {
22
22
  private readonly softDeadlineMs?;
23
23
  private readonly traceWriter?;
24
24
  private readonly subagentId?;
25
+ private readonly hasWorkspacePreamble;
25
26
  private readonly _cwd;
26
27
  private readonly state;
27
28
  private readonly abort;
@@ -13,4 +13,5 @@ export declare function composeQuerySystem(options: {
13
13
  state: SessionState;
14
14
  systemPrefix: ContentBlockParam[] | null;
15
15
  baseUrl?: string;
16
+ hasWorkspacePreamble?: boolean;
16
17
  }): ContentBlockParam[] | null;
@@ -89,6 +89,7 @@ export interface AgentConfig {
89
89
  getPendingChildTerminalWrites?: () => readonly Promise<void>[];
90
90
  getPendingChildBillingStreams?: () => readonly Promise<void>[];
91
91
  isSubagentFork?: true;
92
+ hasWorkspacePreamble?: true;
92
93
  provider?: ModelProvider;
93
94
  executors?: import('../session/session-executors.js').SessionExecutors;
94
95
  providerFactory?: (model: string | undefined) => ModelProvider;