agent-contracts 0.14.1 → 0.16.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
@@ -506,6 +506,26 @@ declare const DslSchema: z.ZodObject<{
506
506
  schema: z.ZodRecord<z.ZodString, z.ZodAny>;
507
507
  example: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
508
508
  }, z.core.$loose>>>;
509
+ team_interface: z.ZodOptional<z.ZodObject<{
510
+ version: z.ZodNumber;
511
+ description: z.ZodOptional<z.ZodString>;
512
+ accepts: z.ZodOptional<z.ZodObject<{
513
+ workflows: z.ZodRecord<z.ZodString, z.ZodObject<{
514
+ internal_workflow: z.ZodOptional<z.ZodString>;
515
+ input_handoff: z.ZodString;
516
+ output_handoff: z.ZodString;
517
+ description: z.ZodOptional<z.ZodString>;
518
+ }, z.core.$loose>>;
519
+ }, z.core.$loose>>;
520
+ exposes: z.ZodOptional<z.ZodObject<{
521
+ artifacts: z.ZodArray<z.ZodString>;
522
+ }, z.core.$loose>>;
523
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
524
+ }, z.core.$loose>>;
525
+ imports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
526
+ interface: z.ZodString;
527
+ version: z.ZodOptional<z.ZodString>;
528
+ }, z.core.$loose>>>;
509
529
  workflow: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
510
530
  description: z.ZodOptional<z.ZodString>;
511
531
  entry_conditions: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -550,6 +570,14 @@ declare const DslSchema: z.ZodObject<{
550
570
  routing_key: z.ZodOptional<z.ZodString>;
551
571
  branches: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
552
572
  group: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$loose>, z.ZodObject<{
574
+ type: z.ZodLiteral<"team_task">;
575
+ description: z.ZodOptional<z.ZodString>;
576
+ to_team: z.ZodString;
577
+ workflow: z.ZodString;
578
+ handoff: z.ZodString;
579
+ expects: z.ZodString;
580
+ group: z.ZodOptional<z.ZodString>;
553
581
  }, z.core.$loose>], "type">>;
554
582
  external_participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
555
583
  id: z.ZodString;
@@ -802,6 +830,37 @@ declare const SystemSchema: z.ZodObject<{
802
830
  }, z.core.$loose>;
803
831
  type System = z.infer<typeof SystemSchema>;
804
832
 
833
+ declare const TeamImportSchema: z.ZodObject<{
834
+ interface: z.ZodString;
835
+ version: z.ZodOptional<z.ZodString>;
836
+ }, z.core.$loose>;
837
+ type TeamImport = z.infer<typeof TeamImportSchema>;
838
+
839
+ declare const TeamInterfaceAcceptWorkflowSchema: z.ZodObject<{
840
+ internal_workflow: z.ZodOptional<z.ZodString>;
841
+ input_handoff: z.ZodString;
842
+ output_handoff: z.ZodString;
843
+ description: z.ZodOptional<z.ZodString>;
844
+ }, z.core.$loose>;
845
+ type TeamInterfaceAcceptWorkflow = z.infer<typeof TeamInterfaceAcceptWorkflowSchema>;
846
+ declare const TeamInterfaceSchema: z.ZodObject<{
847
+ version: z.ZodNumber;
848
+ description: z.ZodOptional<z.ZodString>;
849
+ accepts: z.ZodOptional<z.ZodObject<{
850
+ workflows: z.ZodRecord<z.ZodString, z.ZodObject<{
851
+ internal_workflow: z.ZodOptional<z.ZodString>;
852
+ input_handoff: z.ZodString;
853
+ output_handoff: z.ZodString;
854
+ description: z.ZodOptional<z.ZodString>;
855
+ }, z.core.$loose>>;
856
+ }, z.core.$loose>>;
857
+ exposes: z.ZodOptional<z.ZodObject<{
858
+ artifacts: z.ZodArray<z.ZodString>;
859
+ }, z.core.$loose>>;
860
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString>>;
861
+ }, z.core.$loose>;
862
+ type TeamInterface = z.infer<typeof TeamInterfaceSchema>;
863
+
805
864
  declare const ExecutionStepSchema: z.ZodObject<{
806
865
  id: z.ZodString;
807
866
  action: z.ZodString;
@@ -971,6 +1030,14 @@ declare const WorkflowStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
971
1030
  routing_key: z.ZodOptional<z.ZodString>;
972
1031
  branches: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
973
1032
  group: z.ZodOptional<z.ZodString>;
1033
+ }, z.core.$loose>, z.ZodObject<{
1034
+ type: z.ZodLiteral<"team_task">;
1035
+ description: z.ZodOptional<z.ZodString>;
1036
+ to_team: z.ZodString;
1037
+ workflow: z.ZodString;
1038
+ handoff: z.ZodString;
1039
+ expects: z.ZodString;
1040
+ group: z.ZodOptional<z.ZodString>;
974
1041
  }, z.core.$loose>], "type">;
975
1042
  type WorkflowStep = z.infer<typeof WorkflowStepSchema>;
976
1043
  declare const WorkflowSchema: z.ZodObject<{
@@ -1017,6 +1084,14 @@ declare const WorkflowSchema: z.ZodObject<{
1017
1084
  routing_key: z.ZodOptional<z.ZodString>;
1018
1085
  branches: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1019
1086
  group: z.ZodOptional<z.ZodString>;
1087
+ }, z.core.$loose>, z.ZodObject<{
1088
+ type: z.ZodLiteral<"team_task">;
1089
+ description: z.ZodOptional<z.ZodString>;
1090
+ to_team: z.ZodString;
1091
+ workflow: z.ZodString;
1092
+ handoff: z.ZodString;
1093
+ expects: z.ZodString;
1094
+ group: z.ZodOptional<z.ZodString>;
1020
1095
  }, z.core.$loose>], "type">>;
1021
1096
  external_participants: z.ZodDefault<z.ZodArray<z.ZodObject<{
1022
1097
  id: z.ZodString;
@@ -1142,7 +1217,7 @@ declare const RenderTargetSchema: z.ZodObject<{
1142
1217
  }, z.core.$strip>;
1143
1218
  type RenderTarget = z.infer<typeof RenderTargetSchema>;
1144
1219
  declare const AgentContractsConfigSchema: z.ZodObject<{
1145
- dsl: z.ZodString;
1220
+ dsl: z.ZodOptional<z.ZodString>;
1146
1221
  vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1147
1222
  renders: z.ZodDefault<z.ZodArray<z.ZodObject<{
1148
1223
  template: z.ZodString;
@@ -1167,6 +1242,14 @@ declare const AgentContractsConfigSchema: z.ZodObject<{
1167
1242
  bindings: z.ZodDefault<z.ZodArray<z.ZodString>>;
1168
1243
  active_guardrail_policy: z.ZodOptional<z.ZodString>;
1169
1244
  paths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1245
+ teams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1246
+ dsl: z.ZodOptional<z.ZodString>;
1247
+ bindings: z.ZodDefault<z.ZodArray<z.ZodString>>;
1248
+ vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1249
+ paths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1250
+ active_guardrail_policy: z.ZodOptional<z.ZodString>;
1251
+ interface_output: z.ZodOptional<z.ZodString>;
1252
+ }, z.core.$strip>>>;
1170
1253
  }, z.core.$strip>;
1171
1254
  type AgentContractsConfig = z.infer<typeof AgentContractsConfigSchema>;
1172
1255
  interface ResolvedRenderTarget {
@@ -1177,6 +1260,14 @@ interface ResolvedRenderTarget {
1177
1260
  exclude?: string[];
1178
1261
  skip_empty?: boolean;
1179
1262
  }
1263
+ interface ResolvedTeamConfig {
1264
+ dsl: string;
1265
+ vars?: Record<string, string>;
1266
+ bindings: string[];
1267
+ activeGuardrailPolicy?: string;
1268
+ paths?: Record<string, string>;
1269
+ interfaceOutput?: string;
1270
+ }
1180
1271
  interface ResolvedConfig {
1181
1272
  dsl: string;
1182
1273
  vars?: Record<string, string>;
@@ -1185,6 +1276,7 @@ interface ResolvedConfig {
1185
1276
  bindings: string[];
1186
1277
  activeGuardrailPolicy?: string;
1187
1278
  paths?: Record<string, string>;
1279
+ teams?: Record<string, ResolvedTeamConfig>;
1188
1280
  }
1189
1281
 
1190
1282
  interface LoadedBinding {
@@ -1499,4 +1591,4 @@ interface PathResolveResult {
1499
1591
  }
1500
1592
  declare function resolveBindingTargetPath(target: string, paths: Record<string, string>, bindingSoftware: string): PathResolveResult;
1501
1593
 
1502
- export { type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, ArtifactSchema, BaseResolveError, type BindingGenerationContext, type BindingOutput, BindingOutputSchema, type BindingRenderTarget, BindingRenderTargetSchema, CONTEXT_TYPES, type Check, CheckSchema, type Command, CommandSchema, type Components, ComponentsSchema, ConfigLoadError, type ContextType, ContextTypeSchema, type DelegatableTaskView, type DiagnosticMessage, type DimensionResult, type Dsl, DslLoadError, DslSchema, type EntityGuardrailEntry, type EntityValidationEntry, type EscalationCriterion, EscalationCriterionSchema, type ExecutionStep, ExecutionStepSchema, type Extends, ExtendsSchema, type ExternalParticipant, type GenerateDiagnostic, type GenerateGuardrailsOptions, type GenerateResult, type GlobalContext, type Guardrail, type GuardrailGenerationContext, type GuardrailPolicy, type GuardrailPolicyRule, type GuardrailPolicyRuleEscalation, GuardrailPolicyRuleEscalationSchema, GuardrailPolicyRuleSchema, GuardrailPolicySchema, GuardrailSchema, type GuardrailScope, GuardrailScopeSchema, type HandoffType, HandoffTypeSchema, ITERABLE_CONTEXT_TYPES, type InsertAfterOperator, InsertAfterOperatorSchema, type LintDiagnostic, type LintRule, type LoadResult, type LoadedBinding, type Matcher, MatcherSchema, MergeError, type MergeableRecord, type MergedBehavioralSpec, type PathResolveResult, type PerAgentContext, type PerArtifactContext, type PerGuardrailContext, type PerGuardrailPolicyContext, 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 Reporting, ReportingSchema, type ResolveChecksResult, type ResolveResult, type ResolvedCheck, type ResolvedConfig, type ResolvedRenderTarget, type Retry, type Rule, RuleSchema, SCOPE_NODE_TYPES, type SchemaValidationResult, type ScopeNodeType, ScopeNodeTypeSchema, type ScoreResult, type Severity, type SoftwareBinding, SoftwareBindingSchema, type System, type SystemContext, SystemSchema, type Task, TaskSchema, type Tool, ToolSchema, type Validation, ValidationSchema, type VersionLiteral, VersionLiteralSchema, type Workflow, WorkflowSchema, type WorkflowStep, WorkflowStepSchema, type XExtensionDecl, XExtensionDeclSchema, buildArtifactContext, buildGlobalContext, buildGuardrailContext, buildGuardrailPolicyContext, buildHandoffTypeContext, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, expandDefaults, generateGuardrails, lint, loadBindings, loadConfig, loadDsl, mergeDsl, renderFromConfig, resolve, resolveAllOf, resolveBase, resolveBindingTargetPath, resolveChecks, resolveDslPath, resolveEffectiveGuardrails, resolveEntityValidations, score, spectralLint, validateHandoffSchemas, validateSchema, yamlReservedKeySafetyRule };
1594
+ export { type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, ArtifactSchema, BaseResolveError, type BindingGenerationContext, type BindingOutput, BindingOutputSchema, type BindingRenderTarget, BindingRenderTargetSchema, CONTEXT_TYPES, type Check, CheckSchema, type Command, CommandSchema, type Components, ComponentsSchema, ConfigLoadError, type ContextType, ContextTypeSchema, type DelegatableTaskView, type DiagnosticMessage, type DimensionResult, type Dsl, DslLoadError, DslSchema, type EntityGuardrailEntry, type EntityValidationEntry, type EscalationCriterion, EscalationCriterionSchema, type ExecutionStep, ExecutionStepSchema, type Extends, ExtendsSchema, type ExternalParticipant, type GenerateDiagnostic, type GenerateGuardrailsOptions, type GenerateResult, type GlobalContext, type Guardrail, type GuardrailGenerationContext, type GuardrailPolicy, type GuardrailPolicyRule, type GuardrailPolicyRuleEscalation, GuardrailPolicyRuleEscalationSchema, GuardrailPolicyRuleSchema, GuardrailPolicySchema, GuardrailSchema, type GuardrailScope, GuardrailScopeSchema, type HandoffType, HandoffTypeSchema, ITERABLE_CONTEXT_TYPES, type InsertAfterOperator, InsertAfterOperatorSchema, type LintDiagnostic, type LintRule, type LoadResult, type LoadedBinding, type Matcher, MatcherSchema, MergeError, type MergeableRecord, type MergedBehavioralSpec, type PathResolveResult, type PerAgentContext, type PerArtifactContext, type PerGuardrailContext, type PerGuardrailPolicyContext, 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 Reporting, ReportingSchema, type ResolveChecksResult, type ResolveResult, type ResolvedCheck, type ResolvedConfig, type ResolvedRenderTarget, type Retry, type Rule, RuleSchema, SCOPE_NODE_TYPES, type SchemaValidationResult, type ScopeNodeType, ScopeNodeTypeSchema, type ScoreResult, type Severity, type SoftwareBinding, SoftwareBindingSchema, type System, type SystemContext, SystemSchema, type Task, TaskSchema, type TeamImport, TeamImportSchema, type TeamInterface, type TeamInterfaceAcceptWorkflow, TeamInterfaceAcceptWorkflowSchema, TeamInterfaceSchema, type Tool, ToolSchema, type Validation, ValidationSchema, type VersionLiteral, VersionLiteralSchema, type Workflow, WorkflowSchema, type WorkflowStep, WorkflowStepSchema, type XExtensionDecl, XExtensionDeclSchema, buildArtifactContext, buildGlobalContext, buildGuardrailContext, buildGuardrailPolicyContext, buildHandoffTypeContext, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, expandDefaults, generateGuardrails, lint, loadBindings, loadConfig, loadDsl, mergeDsl, renderFromConfig, resolve, resolveAllOf, resolveBase, resolveBindingTargetPath, resolveChecks, resolveDslPath, resolveEffectiveGuardrails, resolveEntityValidations, score, spectralLint, validateHandoffSchemas, validateSchema, yamlReservedKeySafetyRule };