agent-contracts 0.15.0 → 0.16.1

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;
@@ -1516,4 +1591,4 @@ interface PathResolveResult {
1516
1591
  }
1517
1592
  declare function resolveBindingTargetPath(target: string, paths: Record<string, string>, bindingSoftware: string): PathResolveResult;
1518
1593
 
1519
- 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 };