skedyul 1.2.43 → 1.2.48

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.
Files changed (54) hide show
  1. package/dist/cli/commands/workflows.d.ts +1 -0
  2. package/dist/cli/index.js +3682 -9076
  3. package/dist/cli/utils/auth.d.ts +4 -1
  4. package/dist/cli/utils/auth.js +32 -8
  5. package/dist/cli/utils/config.d.ts +23 -0
  6. package/dist/cli/utils/env-sync.d.ts +46 -0
  7. package/dist/cli/utils/mcp-http-client.d.ts +74 -0
  8. package/dist/cli/utils/migration-approval.d.ts +39 -0
  9. package/dist/cli/utils/mock-context.d.ts +19 -9
  10. package/dist/cli/utils/sse.d.ts +33 -0
  11. package/dist/cli/utils.d.ts +5 -1
  12. package/dist/compiler/types.d.ts +11 -9
  13. package/dist/config/schema-loader.d.ts +15 -2
  14. package/dist/config/types/model.d.ts +2 -0
  15. package/dist/config/types/page.d.ts +9 -0
  16. package/dist/context/index.d.ts +2 -2
  17. package/dist/context/resolver.d.ts +29 -28
  18. package/dist/context/types.d.ts +195 -37
  19. package/dist/core/client.d.ts +189 -233
  20. package/dist/dedicated/server.js +264 -166
  21. package/dist/esm/index.mjs +1161 -7674
  22. package/dist/index.d.ts +11 -6
  23. package/dist/index.js +1206 -7672
  24. package/dist/scheduling/calculateWaitTime.d.ts +16 -0
  25. package/dist/scheduling/index.d.ts +11 -0
  26. package/dist/scheduling/index.js +334 -0
  27. package/dist/scheduling/index.mjs +305 -0
  28. package/dist/scheduling/isTimeInWindow.d.ts +15 -0
  29. package/dist/scheduling/types-workflow.d.ts +54 -0
  30. package/dist/scheduling/types.d.ts +166 -0
  31. package/dist/schemas/agent-schema-v3.d.ts +406 -60
  32. package/dist/schemas/agent-schema-v3.js +248 -75
  33. package/dist/schemas/agent-schema-v3.mjs +234 -73
  34. package/dist/schemas/agent-schema.js +3 -7295
  35. package/dist/schemas/agent-schema.mjs +3 -7323
  36. package/dist/schemas/crm-schema.d.ts +53 -19
  37. package/dist/schemas/index.d.ts +1 -1
  38. package/dist/schemas.d.ts +128 -40
  39. package/dist/server/route-handlers/handlers.d.ts +7 -0
  40. package/dist/server/utils/env.d.ts +9 -0
  41. package/dist/server/utils/index.d.ts +1 -0
  42. package/dist/server/utils/mcp-response.d.ts +11 -0
  43. package/dist/server.js +264 -166
  44. package/dist/serverless/server.mjs +264 -166
  45. package/dist/skills/index.d.ts +1 -1
  46. package/dist/skills/types.d.ts +34 -23
  47. package/dist/skills/types.js +8 -17
  48. package/dist/skills/types.mjs +7 -16
  49. package/dist/types/index.d.ts +3 -3
  50. package/dist/types/server.d.ts +1 -0
  51. package/dist/types/tool-context.d.ts +31 -4
  52. package/dist/types/tool-response.d.ts +2 -0
  53. package/dist/types/tool.d.ts +35 -1
  54. package/package.json +8 -1
@@ -69,8 +69,8 @@ export declare const ToolSandboxConfigSchema: z.ZodObject<{
69
69
  export type ToolSandboxConfig = z.infer<typeof ToolSandboxConfigSchema>;
70
70
  /**
71
71
  * Tool reference with optional approval and sandbox configuration
72
- * @deprecated Root-level tools on agents are deprecated. Use skills to own tools.
73
- * For always-available system tools, use bootstrapTools instead.
72
+ * @deprecated This schema is deprecated and kept only for backward compatibility.
73
+ * Use skills to own tools instead.
74
74
  */
75
75
  export declare const ToolRefV3Schema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
76
76
  tool: z.ZodString;
@@ -86,16 +86,28 @@ export declare const ToolRefV3Schema: z.ZodUnion<readonly [z.ZodString, z.ZodObj
86
86
  }, z.core.$strip>]>;
87
87
  export type ToolRefV3 = z.infer<typeof ToolRefV3Schema>;
88
88
  /**
89
- * Bootstrap tool reference - minimal config for always-available system tools
89
+ * Agent tool reference - minimal config for always-available tools
90
90
  * These tools are available before any skill is loaded (e.g., system:skill:load)
91
91
  */
92
+ export declare const AgentToolRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
93
+ tool: z.ZodString;
94
+ description: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strip>]>;
96
+ export type AgentToolRef = z.infer<typeof AgentToolRefSchema>;
97
+ /**
98
+ * @deprecated Use AgentToolRefSchema instead. This is kept for backward compatibility.
99
+ */
92
100
  export declare const BootstrapToolRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
93
101
  tool: z.ZodString;
94
102
  description: z.ZodOptional<z.ZodString>;
95
103
  }, z.core.$strip>]>;
96
- export type BootstrapToolRef = z.infer<typeof BootstrapToolRefSchema>;
104
+ /**
105
+ * @deprecated Use AgentToolRef instead. This is kept for backward compatibility.
106
+ */
107
+ export type BootstrapToolRef = AgentToolRef;
97
108
  /**
98
109
  * Memory configuration for working memory
110
+ * @deprecated Not yet implemented - this is a planned feature. Fields are accepted but not used at runtime.
99
111
  */
100
112
  export declare const WorkingMemoryConfigSchema: z.ZodObject<{
101
113
  strategy: z.ZodOptional<z.ZodEnum<{
@@ -109,6 +121,7 @@ export declare const WorkingMemoryConfigSchema: z.ZodObject<{
109
121
  export type WorkingMemoryConfig = z.infer<typeof WorkingMemoryConfigSchema>;
110
122
  /**
111
123
  * Memory configuration for external data
124
+ * @deprecated Not yet implemented - this is a planned feature. Fields are accepted but not used at runtime.
112
125
  */
113
126
  export declare const ExternalMemoryConfigSchema: z.ZodObject<{
114
127
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -117,6 +130,7 @@ export declare const ExternalMemoryConfigSchema: z.ZodObject<{
117
130
  export type ExternalMemoryConfig = z.infer<typeof ExternalMemoryConfigSchema>;
118
131
  /**
119
132
  * Memory configuration for semantic search
133
+ * @deprecated Not yet implemented - this is a planned feature. Fields are accepted but not used at runtime.
120
134
  */
121
135
  export declare const SemanticMemoryConfigSchema: z.ZodObject<{
122
136
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -130,6 +144,7 @@ export declare const SemanticMemoryConfigSchema: z.ZodObject<{
130
144
  export type SemanticMemoryConfig = z.infer<typeof SemanticMemoryConfigSchema>;
131
145
  /**
132
146
  * Full memory configuration
147
+ * @deprecated Not yet implemented - this is a planned feature. Fields are accepted but not used at runtime.
133
148
  */
134
149
  export declare const MemoryConfigV3Schema: z.ZodObject<{
135
150
  working: z.ZodOptional<z.ZodObject<{
@@ -160,55 +175,302 @@ export declare const MemoryConfigV3Schema: z.ZodObject<{
160
175
  }, z.core.$strip>;
161
176
  export type MemoryConfigV3 = z.infer<typeof MemoryConfigV3Schema>;
162
177
  /**
163
- * Policy configuration for response approval
164
- */
165
- export declare const ResponsePolicySchema: z.ZodObject<{
166
- requiresApproval: z.ZodOptional<z.ZodBoolean>;
167
- requiresApprovalIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
168
- }, z.core.$strip>;
169
- export type ResponsePolicy = z.infer<typeof ResponsePolicySchema>;
170
- /**
171
- * Full policies configuration
178
+ * Policies configuration.
179
+ * Business constraints belong in `prompts.system`. Message/tool approval
180
+ * flags are enforced by the thread agent workflow after each run.
172
181
  */
173
182
  export declare const PoliciesConfigV3Schema: z.ZodObject<{
174
- response: z.ZodOptional<z.ZodObject<{
175
- requiresApproval: z.ZodOptional<z.ZodBoolean>;
176
- requiresApprovalIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
183
+ messages: z.ZodOptional<z.ZodObject<{
184
+ send: z.ZodOptional<z.ZodObject<{
185
+ requiresApproval: z.ZodOptional<z.ZodBoolean>;
186
+ }, z.core.$strip>>;
187
+ schedule: z.ZodOptional<z.ZodObject<{
188
+ requiresApproval: z.ZodOptional<z.ZodBoolean>;
189
+ }, z.core.$strip>>;
190
+ }, z.core.$strip>>;
191
+ tools: z.ZodOptional<z.ZodObject<{
192
+ externalRequiresApproval: z.ZodOptional<z.ZodBoolean>;
193
+ systemRequiresApproval: z.ZodOptional<z.ZodBoolean>;
177
194
  }, z.core.$strip>>;
178
- rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
179
195
  }, z.core.$strip>;
180
196
  export type PoliciesConfigV3 = z.infer<typeof PoliciesConfigV3Schema>;
181
197
  /**
182
198
  * Runtime configuration
199
+ * Only `model` is actively used for LLM model selection.
183
200
  */
184
201
  export declare const RuntimeConfigV3Schema: z.ZodObject<{
185
202
  model: z.ZodOptional<z.ZodString>;
186
- timeout: z.ZodOptional<z.ZodString>;
187
- timezone: z.ZodOptional<z.ZodString>;
188
- retry: z.ZodOptional<z.ZodObject<{
189
- attempts: z.ZodOptional<z.ZodNumber>;
190
- backoff: z.ZodOptional<z.ZodEnum<{
191
- linear: "linear";
192
- exponential: "exponential";
203
+ }, z.core.$strip>;
204
+ export type RuntimeConfigV3 = z.infer<typeof RuntimeConfigV3Schema>;
205
+ /**
206
+ * Time stamp for window definitions.
207
+ * Can be a simple hour (0-23) or an object with hour/minute.
208
+ */
209
+ export declare const TimeWindowTimeStampSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
210
+ hour: z.ZodNumber;
211
+ minute: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
212
+ }, z.core.$strip>]>;
213
+ export type TimeWindowTimeStamp = z.infer<typeof TimeWindowTimeStampSchema>;
214
+ /**
215
+ * Day of week for window definitions.
216
+ */
217
+ export declare const TimeWindowDayOfWeekSchema: z.ZodEnum<{
218
+ monday: "monday";
219
+ tuesday: "tuesday";
220
+ wednesday: "wednesday";
221
+ thursday: "thursday";
222
+ friday: "friday";
223
+ saturday: "saturday";
224
+ sunday: "sunday";
225
+ }>;
226
+ export type TimeWindowDayOfWeek = z.infer<typeof TimeWindowDayOfWeekSchema>;
227
+ /**
228
+ * A time window slot definition (e.g., 9am-5pm Monday-Friday).
229
+ */
230
+ export declare const TimeWindowSlotAgentSchema: z.ZodObject<{
231
+ startTime: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
232
+ hour: z.ZodNumber;
233
+ minute: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
234
+ }, z.core.$strip>]>;
235
+ endTime: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
236
+ hour: z.ZodNumber;
237
+ minute: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
238
+ }, z.core.$strip>]>;
239
+ days: z.ZodArray<z.ZodEnum<{
240
+ monday: "monday";
241
+ tuesday: "tuesday";
242
+ wednesday: "wednesday";
243
+ thursday: "thursday";
244
+ friday: "friday";
245
+ saturday: "saturday";
246
+ sunday: "sunday";
247
+ }>>;
248
+ }, z.core.$strip>;
249
+ export type TimeWindowSlotAgent = z.infer<typeof TimeWindowSlotAgentSchema>;
250
+ /**
251
+ * Response mode for time window behavior.
252
+ * - immediate: Normal immediate response
253
+ * - ack_and_schedule: Brief ack now + schedule full response for later
254
+ * - schedule_only: No immediate response, schedule everything for later
255
+ */
256
+ export declare const ResponseModeSchema: z.ZodEnum<{
257
+ immediate: "immediate";
258
+ ack_and_schedule: "ack_and_schedule";
259
+ schedule_only: "schedule_only";
260
+ }>;
261
+ export type ResponseMode = z.infer<typeof ResponseModeSchema>;
262
+ /**
263
+ * Behavior configuration for a time window.
264
+ * Controls how the agent responds when a message arrives during this window.
265
+ */
266
+ export declare const TimeWindowBehaviorSchema: z.ZodObject<{
267
+ responseMode: z.ZodEnum<{
268
+ immediate: "immediate";
269
+ ack_and_schedule: "ack_and_schedule";
270
+ schedule_only: "schedule_only";
271
+ }>;
272
+ prompt: z.ZodOptional<z.ZodString>;
273
+ scheduleFor: z.ZodOptional<z.ZodString>;
274
+ }, z.core.$strip>;
275
+ export type TimeWindowBehavior = z.infer<typeof TimeWindowBehaviorSchema>;
276
+ /**
277
+ * A named time window policy.
278
+ * Defines when the window is active and how the agent behaves during it.
279
+ */
280
+ export declare const TimeWindowPolicySchema: z.ZodObject<{
281
+ timezone: z.ZodString;
282
+ windows: z.ZodArray<z.ZodObject<{
283
+ startTime: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
284
+ hour: z.ZodNumber;
285
+ minute: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
286
+ }, z.core.$strip>]>;
287
+ endTime: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
288
+ hour: z.ZodNumber;
289
+ minute: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
290
+ }, z.core.$strip>]>;
291
+ days: z.ZodArray<z.ZodEnum<{
292
+ monday: "monday";
293
+ tuesday: "tuesday";
294
+ wednesday: "wednesday";
295
+ thursday: "thursday";
296
+ friday: "friday";
297
+ saturday: "saturday";
298
+ sunday: "sunday";
193
299
  }>>;
194
300
  }, z.core.$strip>>;
301
+ behavior: z.ZodOptional<z.ZodObject<{
302
+ responseMode: z.ZodEnum<{
303
+ immediate: "immediate";
304
+ ack_and_schedule: "ack_and_schedule";
305
+ schedule_only: "schedule_only";
306
+ }>;
307
+ prompt: z.ZodOptional<z.ZodString>;
308
+ scheduleFor: z.ZodOptional<z.ZodString>;
309
+ }, z.core.$strip>>;
195
310
  }, z.core.$strip>;
196
- export type RuntimeConfigV3 = z.infer<typeof RuntimeConfigV3Schema>;
311
+ export type TimeWindowPolicy = z.infer<typeof TimeWindowPolicySchema>;
312
+ /**
313
+ * Collection of named time window policies.
314
+ * Keys are policy names (e.g., "business_hours", "after_work").
315
+ */
316
+ export declare const TimeWindowPoliciesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
317
+ timezone: z.ZodString;
318
+ windows: z.ZodArray<z.ZodObject<{
319
+ startTime: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
320
+ hour: z.ZodNumber;
321
+ minute: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
322
+ }, z.core.$strip>]>;
323
+ endTime: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
324
+ hour: z.ZodNumber;
325
+ minute: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
326
+ }, z.core.$strip>]>;
327
+ days: z.ZodArray<z.ZodEnum<{
328
+ monday: "monday";
329
+ tuesday: "tuesday";
330
+ wednesday: "wednesday";
331
+ thursday: "thursday";
332
+ friday: "friday";
333
+ saturday: "saturday";
334
+ sunday: "sunday";
335
+ }>>;
336
+ }, z.core.$strip>>;
337
+ behavior: z.ZodOptional<z.ZodObject<{
338
+ responseMode: z.ZodEnum<{
339
+ immediate: "immediate";
340
+ ack_and_schedule: "ack_and_schedule";
341
+ schedule_only: "schedule_only";
342
+ }>;
343
+ prompt: z.ZodOptional<z.ZodString>;
344
+ scheduleFor: z.ZodOptional<z.ZodString>;
345
+ }, z.core.$strip>>;
346
+ }, z.core.$strip>>;
347
+ export type TimeWindowPolicies = z.infer<typeof TimeWindowPoliciesSchema>;
348
+ /**
349
+ * Default time window behavior.
350
+ * Applied when no defined window matches the current time.
351
+ */
352
+ export declare const TimeWindowDefaultSchema: z.ZodObject<{
353
+ responseMode: z.ZodEnum<{
354
+ immediate: "immediate";
355
+ ack_and_schedule: "ack_and_schedule";
356
+ schedule_only: "schedule_only";
357
+ }>;
358
+ prompt: z.ZodOptional<z.ZodString>;
359
+ scheduleFor: z.ZodOptional<z.ZodString>;
360
+ }, z.core.$strip>;
361
+ export type TimeWindowDefault = z.infer<typeof TimeWindowDefaultSchema>;
362
+ /**
363
+ * Response behavior configuration
364
+ *
365
+ * Controls how agents send messages via explicit tool calls.
366
+ * - Intermediate messages: Progress updates ("Checking the calendar...")
367
+ * - Final message: Completes the user's request (always reserved)
368
+ * - Scheduled messages: Future follow-ups
369
+ */
370
+ export declare const ResponsesBehaviorConfigSchema: z.ZodObject<{
371
+ maxIntermediate: z.ZodOptional<z.ZodNumber>;
372
+ requireFinal: z.ZodOptional<z.ZodBoolean>;
373
+ allowSchedule: z.ZodOptional<z.ZodBoolean>;
374
+ messageSplitting: z.ZodOptional<z.ZodObject<{
375
+ enabled: z.ZodBoolean;
376
+ prompt: z.ZodOptional<z.ZodString>;
377
+ }, z.core.$strip>>;
378
+ }, z.core.$strip>;
379
+ export type ResponsesBehaviorConfig = z.infer<typeof ResponsesBehaviorConfigSchema>;
380
+ /**
381
+ * Structured default delay for scheduling patterns.
382
+ * Matches the sendAt format used in message tools.
383
+ */
384
+ export declare const SchedulingDelaySchema: z.ZodObject<{
385
+ amount: z.ZodNumber;
386
+ unit: z.ZodString;
387
+ timeWindow: z.ZodOptional<z.ZodString>;
388
+ }, z.core.$strip>;
389
+ export type SchedulingDelay = z.infer<typeof SchedulingDelaySchema>;
390
+ /**
391
+ * Scheduling pattern configuration.
392
+ * Defines when the agent should schedule follow-up messages.
393
+ */
394
+ export declare const SchedulingPatternSchema: z.ZodObject<{
395
+ trigger: z.ZodString;
396
+ description: z.ZodOptional<z.ZodString>;
397
+ examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
398
+ defaultDelay: z.ZodOptional<z.ZodObject<{
399
+ amount: z.ZodNumber;
400
+ unit: z.ZodString;
401
+ timeWindow: z.ZodOptional<z.ZodString>;
402
+ }, z.core.$strip>>;
403
+ }, z.core.$strip>;
404
+ export type SchedulingPattern = z.infer<typeof SchedulingPatternSchema>;
405
+ /**
406
+ * Scheduling behavior configuration.
407
+ * Controls when and how the agent schedules follow-up messages.
408
+ */
409
+ export declare const SchedulingBehaviorConfigSchema: z.ZodObject<{
410
+ patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
411
+ trigger: z.ZodString;
412
+ description: z.ZodOptional<z.ZodString>;
413
+ examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
414
+ defaultDelay: z.ZodOptional<z.ZodObject<{
415
+ amount: z.ZodNumber;
416
+ unit: z.ZodString;
417
+ timeWindow: z.ZodOptional<z.ZodString>;
418
+ }, z.core.$strip>>;
419
+ }, z.core.$strip>>>;
420
+ defaults: z.ZodOptional<z.ZodObject<{
421
+ cancelOnActivity: z.ZodOptional<z.ZodBoolean>;
422
+ requiresApproval: z.ZodOptional<z.ZodBoolean>;
423
+ timeWindow: z.ZodOptional<z.ZodString>;
424
+ }, z.core.$strip>>;
425
+ }, z.core.$strip>;
426
+ export type SchedulingBehaviorConfig = z.infer<typeof SchedulingBehaviorConfigSchema>;
427
+ /**
428
+ * Behavior configuration for agent runtime behavior.
429
+ * These settings control how the agent operates and responds.
430
+ */
431
+ export declare const BehaviorConfigV3Schema: z.ZodObject<{
432
+ responses: z.ZodOptional<z.ZodObject<{
433
+ maxIntermediate: z.ZodOptional<z.ZodNumber>;
434
+ requireFinal: z.ZodOptional<z.ZodBoolean>;
435
+ allowSchedule: z.ZodOptional<z.ZodBoolean>;
436
+ messageSplitting: z.ZodOptional<z.ZodObject<{
437
+ enabled: z.ZodBoolean;
438
+ prompt: z.ZodOptional<z.ZodString>;
439
+ }, z.core.$strip>>;
440
+ }, z.core.$strip>>;
441
+ scheduling: z.ZodOptional<z.ZodObject<{
442
+ patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
+ trigger: z.ZodString;
444
+ description: z.ZodOptional<z.ZodString>;
445
+ examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
446
+ defaultDelay: z.ZodOptional<z.ZodObject<{
447
+ amount: z.ZodNumber;
448
+ unit: z.ZodString;
449
+ timeWindow: z.ZodOptional<z.ZodString>;
450
+ }, z.core.$strip>>;
451
+ }, z.core.$strip>>>;
452
+ defaults: z.ZodOptional<z.ZodObject<{
453
+ cancelOnActivity: z.ZodOptional<z.ZodBoolean>;
454
+ requiresApproval: z.ZodOptional<z.ZodBoolean>;
455
+ timeWindow: z.ZodOptional<z.ZodString>;
456
+ }, z.core.$strip>>;
457
+ }, z.core.$strip>>;
458
+ }, z.core.$strip>;
459
+ export type BehaviorConfigV3 = z.infer<typeof BehaviorConfigV3Schema>;
197
460
  /**
198
461
  * Prompts configuration for agent-specific prompt injections.
199
462
  * These prompts are injected during specific runtime phases.
200
463
  */
201
464
  export declare const PromptsConfigV3Schema: z.ZodObject<{
465
+ system: z.ZodOptional<z.ZodString>;
202
466
  recovery: z.ZodOptional<z.ZodString>;
203
467
  followUp: z.ZodOptional<z.ZodString>;
204
- skillDiscoveryWorkflow: z.ZodOptional<z.ZodString>;
468
+ titleEnrichment: z.ZodOptional<z.ZodObject<{
469
+ system: z.ZodOptional<z.ZodString>;
470
+ user: z.ZodOptional<z.ZodString>;
471
+ }, z.core.$strip>>;
205
472
  }, z.core.$strip>;
206
473
  export type PromptsConfigV3 = z.infer<typeof PromptsConfigV3Schema>;
207
- /**
208
- * Agent configuration (business-specific settings)
209
- */
210
- export declare const AgentConfigV3Schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
211
- export type AgentConfigV3 = z.infer<typeof AgentConfigV3Schema>;
212
474
  /**
213
475
  * Full Agent YAML v3 Schema
214
476
  *
@@ -218,8 +480,7 @@ export type AgentConfigV3 = z.infer<typeof AgentConfigV3Schema>;
218
480
  * Tool Ownership Model:
219
481
  * - Skills own their tools (defined in skill files with full config)
220
482
  * - Agents reference skills, not individual tools
221
- * - bootstrapTools: Always-available system tools (e.g., system:skill:load)
222
- * - tools: DEPRECATED - kept for backward compatibility only
483
+ * - tools: Always-available tools before any skill loads (e.g., system:settings:business_information:get)
223
484
  */
224
485
  export declare const AgentYAMLV3Schema: z.ZodObject<{
225
486
  $schema: z.ZodOptional<z.ZodString>;
@@ -252,21 +513,9 @@ export declare const AgentYAMLV3Schema: z.ZodObject<{
252
513
  instructions: z.ZodOptional<z.ZodString>;
253
514
  enabled: z.ZodOptional<z.ZodBoolean>;
254
515
  }, z.core.$strip>]>>>;
255
- bootstrapTools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
256
- tool: z.ZodString;
257
- description: z.ZodOptional<z.ZodString>;
258
- }, z.core.$strip>]>>>;
259
516
  tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
260
517
  tool: z.ZodString;
261
518
  description: z.ZodOptional<z.ZodString>;
262
- approval: z.ZodOptional<z.ZodObject<{
263
- required: z.ZodOptional<z.ZodBoolean>;
264
- requiredIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
265
- }, z.core.$strip>>;
266
- sandbox: z.ZodOptional<z.ZodObject<{
267
- mock: z.ZodOptional<z.ZodUnknown>;
268
- }, z.core.$strip>>;
269
- overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
270
519
  }, z.core.$strip>]>>>;
271
520
  events: z.ZodOptional<z.ZodObject<{
272
521
  subscribes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
@@ -364,30 +613,99 @@ export declare const AgentYAMLV3Schema: z.ZodObject<{
364
613
  }, z.core.$strip>>;
365
614
  }, z.core.$strip>>;
366
615
  policies: z.ZodOptional<z.ZodObject<{
367
- response: z.ZodOptional<z.ZodObject<{
368
- requiresApproval: z.ZodOptional<z.ZodBoolean>;
369
- requiresApprovalIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
616
+ messages: z.ZodOptional<z.ZodObject<{
617
+ send: z.ZodOptional<z.ZodObject<{
618
+ requiresApproval: z.ZodOptional<z.ZodBoolean>;
619
+ }, z.core.$strip>>;
620
+ schedule: z.ZodOptional<z.ZodObject<{
621
+ requiresApproval: z.ZodOptional<z.ZodBoolean>;
622
+ }, z.core.$strip>>;
623
+ }, z.core.$strip>>;
624
+ tools: z.ZodOptional<z.ZodObject<{
625
+ externalRequiresApproval: z.ZodOptional<z.ZodBoolean>;
626
+ systemRequiresApproval: z.ZodOptional<z.ZodBoolean>;
370
627
  }, z.core.$strip>>;
371
- rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
372
628
  }, z.core.$strip>>;
373
629
  runtime: z.ZodOptional<z.ZodObject<{
374
630
  model: z.ZodOptional<z.ZodString>;
375
- timeout: z.ZodOptional<z.ZodString>;
376
- timezone: z.ZodOptional<z.ZodString>;
377
- retry: z.ZodOptional<z.ZodObject<{
378
- attempts: z.ZodOptional<z.ZodNumber>;
379
- backoff: z.ZodOptional<z.ZodEnum<{
380
- linear: "linear";
381
- exponential: "exponential";
382
- }>>;
383
- }, z.core.$strip>>;
384
631
  }, z.core.$strip>>;
385
632
  prompts: z.ZodOptional<z.ZodObject<{
633
+ system: z.ZodOptional<z.ZodString>;
386
634
  recovery: z.ZodOptional<z.ZodString>;
387
635
  followUp: z.ZodOptional<z.ZodString>;
388
- skillDiscoveryWorkflow: z.ZodOptional<z.ZodString>;
636
+ titleEnrichment: z.ZodOptional<z.ZodObject<{
637
+ system: z.ZodOptional<z.ZodString>;
638
+ user: z.ZodOptional<z.ZodString>;
639
+ }, z.core.$strip>>;
640
+ }, z.core.$strip>>;
641
+ behavior: z.ZodOptional<z.ZodObject<{
642
+ responses: z.ZodOptional<z.ZodObject<{
643
+ maxIntermediate: z.ZodOptional<z.ZodNumber>;
644
+ requireFinal: z.ZodOptional<z.ZodBoolean>;
645
+ allowSchedule: z.ZodOptional<z.ZodBoolean>;
646
+ messageSplitting: z.ZodOptional<z.ZodObject<{
647
+ enabled: z.ZodBoolean;
648
+ prompt: z.ZodOptional<z.ZodString>;
649
+ }, z.core.$strip>>;
650
+ }, z.core.$strip>>;
651
+ scheduling: z.ZodOptional<z.ZodObject<{
652
+ patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
653
+ trigger: z.ZodString;
654
+ description: z.ZodOptional<z.ZodString>;
655
+ examples: z.ZodOptional<z.ZodArray<z.ZodString>>;
656
+ defaultDelay: z.ZodOptional<z.ZodObject<{
657
+ amount: z.ZodNumber;
658
+ unit: z.ZodString;
659
+ timeWindow: z.ZodOptional<z.ZodString>;
660
+ }, z.core.$strip>>;
661
+ }, z.core.$strip>>>;
662
+ defaults: z.ZodOptional<z.ZodObject<{
663
+ cancelOnActivity: z.ZodOptional<z.ZodBoolean>;
664
+ requiresApproval: z.ZodOptional<z.ZodBoolean>;
665
+ timeWindow: z.ZodOptional<z.ZodString>;
666
+ }, z.core.$strip>>;
667
+ }, z.core.$strip>>;
668
+ }, z.core.$strip>>;
669
+ timeWindows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
670
+ timezone: z.ZodString;
671
+ windows: z.ZodArray<z.ZodObject<{
672
+ startTime: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
673
+ hour: z.ZodNumber;
674
+ minute: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
675
+ }, z.core.$strip>]>;
676
+ endTime: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
677
+ hour: z.ZodNumber;
678
+ minute: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
679
+ }, z.core.$strip>]>;
680
+ days: z.ZodArray<z.ZodEnum<{
681
+ monday: "monday";
682
+ tuesday: "tuesday";
683
+ wednesday: "wednesday";
684
+ thursday: "thursday";
685
+ friday: "friday";
686
+ saturday: "saturday";
687
+ sunday: "sunday";
688
+ }>>;
689
+ }, z.core.$strip>>;
690
+ behavior: z.ZodOptional<z.ZodObject<{
691
+ responseMode: z.ZodEnum<{
692
+ immediate: "immediate";
693
+ ack_and_schedule: "ack_and_schedule";
694
+ schedule_only: "schedule_only";
695
+ }>;
696
+ prompt: z.ZodOptional<z.ZodString>;
697
+ scheduleFor: z.ZodOptional<z.ZodString>;
698
+ }, z.core.$strip>>;
699
+ }, z.core.$strip>>>;
700
+ timeWindowDefault: z.ZodOptional<z.ZodObject<{
701
+ responseMode: z.ZodEnum<{
702
+ immediate: "immediate";
703
+ ack_and_schedule: "ack_and_schedule";
704
+ schedule_only: "schedule_only";
705
+ }>;
706
+ prompt: z.ZodOptional<z.ZodString>;
707
+ scheduleFor: z.ZodOptional<z.ZodString>;
389
708
  }, z.core.$strip>>;
390
- config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
391
709
  sandbox: z.ZodOptional<z.ZodObject<{
392
710
  enabled: z.ZodOptional<z.ZodBoolean>;
393
711
  mockContext: z.ZodOptional<z.ZodObject<{
@@ -418,6 +736,34 @@ export declare const AgentYAMLV3Schema: z.ZodObject<{
418
736
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
419
737
  }, z.core.$strip>>>;
420
738
  }, z.core.$strip>>;
739
+ context: z.ZodOptional<z.ZodObject<{
740
+ sender: z.ZodObject<{
741
+ kind: z.ZodEnum<{
742
+ contact: "contact";
743
+ member: "member";
744
+ }>;
745
+ displayName: z.ZodOptional<z.ZodString>;
746
+ role: z.ZodOptional<z.ZodString>;
747
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
748
+ contact: z.ZodOptional<z.ZodObject<{
749
+ id: z.ZodOptional<z.ZodString>;
750
+ name: z.ZodOptional<z.ZodString>;
751
+ subscription: z.ZodOptional<z.ZodObject<{
752
+ identifierValue: z.ZodString;
753
+ channelHandle: z.ZodOptional<z.ZodString>;
754
+ }, z.core.$strip>>;
755
+ associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
756
+ id: z.ZodOptional<z.ZodString>;
757
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
758
+ }, z.core.$strip>>>;
759
+ }, z.core.$strip>>;
760
+ }, z.core.$strip>;
761
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
762
+ handle: z.ZodString;
763
+ model: z.ZodString;
764
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
765
+ }, z.core.$strip>>>;
766
+ }, z.core.$strip>>;
421
767
  }, z.core.$strip>>;
422
768
  }, z.core.$strip>;
423
769
  export type AgentYAMLV3 = z.infer<typeof AgentYAMLV3Schema>;