agent-contracts 0.7.1 → 0.8.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/index.d.ts CHANGED
@@ -215,6 +215,13 @@ declare const DslSchema: z.ZodObject<{
215
215
  output_artifacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
216
216
  invokable_by: z.ZodArray<z.ZodString>;
217
217
  side_effects: z.ZodDefault<z.ZodArray<z.ZodString>>;
218
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
219
+ command: z.ZodString;
220
+ category: z.ZodString;
221
+ reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
222
+ writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
223
+ purpose: z.ZodOptional<z.ZodString>;
224
+ }, z.core.$strip>>>;
218
225
  }, z.core.$loose>>>;
219
226
  validations: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
220
227
  target_artifact: z.ZodString;
@@ -248,16 +255,33 @@ declare const DslSchema: z.ZodObject<{
248
255
  handoff_kind: z.ZodString;
249
256
  task: z.ZodOptional<z.ZodString>;
250
257
  from_agent: z.ZodOptional<z.ZodString>;
258
+ group: z.ZodOptional<z.ZodString>;
259
+ retry: z.ZodOptional<z.ZodObject<{
260
+ condition: z.ZodString;
261
+ fix_task: z.ZodString;
262
+ revalidate_task: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strip>>;
251
264
  }, z.core.$loose>, z.ZodObject<{
252
265
  type: z.ZodLiteral<"validation">;
253
266
  description: z.ZodOptional<z.ZodString>;
254
267
  validation: z.ZodString;
268
+ group: z.ZodOptional<z.ZodString>;
255
269
  }, z.core.$loose>, z.ZodObject<{
256
270
  type: z.ZodLiteral<"decision">;
257
271
  description: z.ZodOptional<z.ZodString>;
258
272
  on: z.ZodString;
259
273
  branches: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
274
+ group: z.ZodOptional<z.ZodString>;
260
275
  }, z.core.$loose>], "type">>;
276
+ external_participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
277
+ id: z.ZodString;
278
+ kind: z.ZodEnum<{
279
+ actor: "actor";
280
+ participant: "participant";
281
+ }>;
282
+ label: z.ZodString;
283
+ description: z.ZodOptional<z.ZodString>;
284
+ }, z.core.$strip>>>;
261
285
  }, z.core.$loose>>>;
262
286
  policies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
263
287
  when: z.ZodObject<{
@@ -406,6 +430,14 @@ declare const TaskSchema: z.ZodObject<{
406
430
  }, z.core.$loose>;
407
431
  type Task = z.infer<typeof TaskSchema>;
408
432
 
433
+ declare const CommandSchema: z.ZodObject<{
434
+ command: z.ZodString;
435
+ category: z.ZodString;
436
+ reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
437
+ writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
438
+ purpose: z.ZodOptional<z.ZodString>;
439
+ }, z.core.$strip>;
440
+ type Command = z.infer<typeof CommandSchema>;
409
441
  declare const ToolSchema: z.ZodObject<{
410
442
  kind: z.ZodString;
411
443
  description: z.ZodOptional<z.ZodString>;
@@ -413,6 +445,13 @@ declare const ToolSchema: z.ZodObject<{
413
445
  output_artifacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
414
446
  invokable_by: z.ZodArray<z.ZodString>;
415
447
  side_effects: z.ZodDefault<z.ZodArray<z.ZodString>>;
448
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
449
+ command: z.ZodString;
450
+ category: z.ZodString;
451
+ reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
452
+ writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
453
+ purpose: z.ZodOptional<z.ZodString>;
454
+ }, z.core.$strip>>>;
416
455
  }, z.core.$loose>;
417
456
  type Tool = z.infer<typeof ToolSchema>;
418
457
 
@@ -434,21 +473,45 @@ declare const ValidationSchema: z.ZodObject<{
434
473
  }, z.core.$loose>;
435
474
  type Validation = z.infer<typeof ValidationSchema>;
436
475
 
476
+ declare const RetrySchema: z.ZodObject<{
477
+ condition: z.ZodString;
478
+ fix_task: z.ZodString;
479
+ revalidate_task: z.ZodOptional<z.ZodString>;
480
+ }, z.core.$strip>;
481
+ type Retry = z.infer<typeof RetrySchema>;
482
+ declare const ExternalParticipantSchema: z.ZodObject<{
483
+ id: z.ZodString;
484
+ kind: z.ZodEnum<{
485
+ actor: "actor";
486
+ participant: "participant";
487
+ }>;
488
+ label: z.ZodString;
489
+ description: z.ZodOptional<z.ZodString>;
490
+ }, z.core.$strip>;
491
+ type ExternalParticipant = z.infer<typeof ExternalParticipantSchema>;
437
492
  declare const WorkflowStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
438
493
  type: z.ZodLiteral<"handoff">;
439
494
  description: z.ZodOptional<z.ZodString>;
440
495
  handoff_kind: z.ZodString;
441
496
  task: z.ZodOptional<z.ZodString>;
442
497
  from_agent: z.ZodOptional<z.ZodString>;
498
+ group: z.ZodOptional<z.ZodString>;
499
+ retry: z.ZodOptional<z.ZodObject<{
500
+ condition: z.ZodString;
501
+ fix_task: z.ZodString;
502
+ revalidate_task: z.ZodOptional<z.ZodString>;
503
+ }, z.core.$strip>>;
443
504
  }, z.core.$loose>, z.ZodObject<{
444
505
  type: z.ZodLiteral<"validation">;
445
506
  description: z.ZodOptional<z.ZodString>;
446
507
  validation: z.ZodString;
508
+ group: z.ZodOptional<z.ZodString>;
447
509
  }, z.core.$loose>, z.ZodObject<{
448
510
  type: z.ZodLiteral<"decision">;
449
511
  description: z.ZodOptional<z.ZodString>;
450
512
  on: z.ZodString;
451
513
  branches: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
514
+ group: z.ZodOptional<z.ZodString>;
452
515
  }, z.core.$loose>], "type">;
453
516
  type WorkflowStep = z.infer<typeof WorkflowStepSchema>;
454
517
  declare const WorkflowSchema: z.ZodObject<{
@@ -461,16 +524,33 @@ declare const WorkflowSchema: z.ZodObject<{
461
524
  handoff_kind: z.ZodString;
462
525
  task: z.ZodOptional<z.ZodString>;
463
526
  from_agent: z.ZodOptional<z.ZodString>;
527
+ group: z.ZodOptional<z.ZodString>;
528
+ retry: z.ZodOptional<z.ZodObject<{
529
+ condition: z.ZodString;
530
+ fix_task: z.ZodString;
531
+ revalidate_task: z.ZodOptional<z.ZodString>;
532
+ }, z.core.$strip>>;
464
533
  }, z.core.$loose>, z.ZodObject<{
465
534
  type: z.ZodLiteral<"validation">;
466
535
  description: z.ZodOptional<z.ZodString>;
467
536
  validation: z.ZodString;
537
+ group: z.ZodOptional<z.ZodString>;
468
538
  }, z.core.$loose>, z.ZodObject<{
469
539
  type: z.ZodLiteral<"decision">;
470
540
  description: z.ZodOptional<z.ZodString>;
471
541
  on: z.ZodString;
472
542
  branches: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
543
+ group: z.ZodOptional<z.ZodString>;
473
544
  }, z.core.$loose>], "type">>;
545
+ external_participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
546
+ id: z.ZodString;
547
+ kind: z.ZodEnum<{
548
+ actor: "actor";
549
+ participant: "participant";
550
+ }>;
551
+ label: z.ZodString;
552
+ description: z.ZodOptional<z.ZodString>;
553
+ }, z.core.$strip>>>;
474
554
  }, z.core.$loose>;
475
555
  type Workflow = z.infer<typeof WorkflowSchema>;
476
556
 
@@ -762,4 +842,4 @@ declare class ConfigLoadError extends Error {
762
842
  declare function loadConfig(configPath?: string): Promise<ResolvedConfig | null>;
763
843
  declare function resolveDslPath(dirArg: string | undefined, dirArgDefault: string, config: ResolvedConfig | null): string;
764
844
 
765
- export { type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, ArtifactSchema, BaseResolveError, CONTEXT_TYPES, ConfigLoadError, type ContextType, ContextTypeSchema, type DelegatableTaskView, type DiagnosticMessage, type Dsl, DslLoadError, DslSchema, type EscalationCriterion, EscalationCriterionSchema, type ExecutionStep, ExecutionStepSchema, type Extends, ExtendsSchema, type GlobalContext, type HandoffType, HandoffTypeSchema, type InsertAfterOperator, InsertAfterOperatorSchema, type LintDiagnostic, type LintRule, type LoadResult, MergeError, type MergeableRecord, type MergedBehavioralSpec, type PerAgentContext, type PerArtifactContext, type PerHandoffTypeContext, type PerPolicyContext, type PerTaskContext, type PerToolContext, type PerValidationContext, type PerWorkflowContext, type Policy, PolicySchema, type PolicyWhen, PolicyWhenSchema, type PrependOperator, PrependOperatorSchema, type Prerequisite, PrerequisiteSchema, type ReferenceDiagnostic, type RemoveOperator, RemoveOperatorSchema, type RenderTarget, RenderTargetSchema, type ReplaceOperator, ReplaceOperatorSchema, type ResolveResult, type ResolvedConfig, type ResolvedRenderTarget, type Rule, RuleSchema, type SchemaValidationResult, type Severity, type System, type SystemContext, SystemSchema, type Task, TaskSchema, type Tool, ToolSchema, type Validation, ValidationSchema, type VersionLiteral, VersionLiteralSchema, type Workflow, WorkflowSchema, type WorkflowStep, WorkflowStepSchema, buildArtifactContext, buildGlobalContext, buildHandoffTypeContext, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, lint, loadConfig, loadDsl, mergeDsl, renderFromConfig, resolve, resolveBase, resolveDslPath, spectralLint, validateSchema };
845
+ export { type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, ArtifactSchema, BaseResolveError, CONTEXT_TYPES, type Command, CommandSchema, ConfigLoadError, type ContextType, ContextTypeSchema, type DelegatableTaskView, type DiagnosticMessage, type Dsl, DslLoadError, DslSchema, type EscalationCriterion, EscalationCriterionSchema, type ExecutionStep, ExecutionStepSchema, type Extends, ExtendsSchema, type ExternalParticipant, type GlobalContext, type HandoffType, HandoffTypeSchema, type InsertAfterOperator, InsertAfterOperatorSchema, type LintDiagnostic, type LintRule, type LoadResult, MergeError, type MergeableRecord, type MergedBehavioralSpec, type PerAgentContext, type PerArtifactContext, type PerHandoffTypeContext, type PerPolicyContext, type PerTaskContext, type PerToolContext, type PerValidationContext, type PerWorkflowContext, type Policy, PolicySchema, type PolicyWhen, PolicyWhenSchema, type PrependOperator, PrependOperatorSchema, type Prerequisite, PrerequisiteSchema, type ReferenceDiagnostic, type RemoveOperator, RemoveOperatorSchema, type RenderTarget, RenderTargetSchema, type ReplaceOperator, ReplaceOperatorSchema, type ResolveResult, type ResolvedConfig, type ResolvedRenderTarget, type Retry, type Rule, RuleSchema, type SchemaValidationResult, type Severity, type System, type SystemContext, SystemSchema, type Task, TaskSchema, type Tool, ToolSchema, type Validation, ValidationSchema, type VersionLiteral, VersionLiteralSchema, type Workflow, WorkflowSchema, type WorkflowStep, WorkflowStepSchema, buildArtifactContext, buildGlobalContext, buildHandoffTypeContext, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, lint, loadConfig, loadDsl, mergeDsl, renderFromConfig, resolve, resolveBase, resolveDslPath, spectralLint, validateSchema };