agent-contracts 0.25.0 → 0.30.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
@@ -214,6 +214,7 @@ declare const BindingRenderTargetSchema: z.ZodObject<{
214
214
  guardrail: "guardrail";
215
215
  guardrail_policy: "guardrail_policy";
216
216
  system: "system";
217
+ navigation_index: "navigation_index";
217
218
  }>;
218
219
  output: z.ZodString;
219
220
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -283,6 +284,7 @@ declare const SoftwareBindingSchema: z.ZodObject<{
283
284
  guardrail: "guardrail";
284
285
  guardrail_policy: "guardrail_policy";
285
286
  system: "system";
287
+ navigation_index: "navigation_index";
286
288
  }>;
287
289
  output: z.ZodString;
288
290
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -298,7 +300,7 @@ declare const SoftwareBindingSchema: z.ZodObject<{
298
300
  }, z.core.$loose>;
299
301
  type SoftwareBinding = z.infer<typeof SoftwareBindingSchema>;
300
302
 
301
- declare const CONTEXT_TYPES: readonly ["agent", "task", "artifact", "tool", "validation", "handoff_type", "workflow", "policy", "guardrail", "guardrail_policy", "system"];
303
+ declare const CONTEXT_TYPES: readonly ["agent", "task", "artifact", "tool", "validation", "handoff_type", "workflow", "policy", "guardrail", "guardrail_policy", "system", "navigation_index"];
302
304
  declare const ContextTypeSchema: z.ZodEnum<{
303
305
  workflow: "workflow";
304
306
  agent: "agent";
@@ -311,6 +313,7 @@ declare const ContextTypeSchema: z.ZodEnum<{
311
313
  guardrail: "guardrail";
312
314
  guardrail_policy: "guardrail_policy";
313
315
  system: "system";
316
+ navigation_index: "navigation_index";
314
317
  }>;
315
318
  type ContextType = z.infer<typeof ContextTypeSchema>;
316
319
  declare const ITERABLE_CONTEXT_TYPES: ("workflow" | "agent" | "task" | "artifact" | "tool" | "validation" | "handoff_type" | "policy" | "guardrail" | "guardrail_policy")[];
@@ -560,7 +563,9 @@ declare const DslSchema: z.ZodObject<{
560
563
  }>>;
561
564
  }, z.core.$loose>>>;
562
565
  tools: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
563
- kind: z.ZodString;
566
+ kind: z.ZodOptional<z.ZodString>;
567
+ extends: z.ZodOptional<z.ZodString>;
568
+ command: z.ZodOptional<z.ZodString>;
564
569
  description: z.ZodOptional<z.ZodString>;
565
570
  input_artifacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
566
571
  output_artifacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1101,7 +1106,9 @@ declare const CommandSchema: z.ZodObject<{
1101
1106
  }, z.core.$strip>;
1102
1107
  type Command = z.infer<typeof CommandSchema>;
1103
1108
  declare const ToolSchema: z.ZodObject<{
1104
- kind: z.ZodString;
1109
+ kind: z.ZodOptional<z.ZodString>;
1110
+ extends: z.ZodOptional<z.ZodString>;
1111
+ command: z.ZodOptional<z.ZodString>;
1105
1112
  description: z.ZodOptional<z.ZodString>;
1106
1113
  input_artifacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
1107
1114
  output_artifacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1403,6 +1410,7 @@ declare const RenderTargetSchema: z.ZodObject<{
1403
1410
  guardrail: "guardrail";
1404
1411
  guardrail_policy: "guardrail_policy";
1405
1412
  system: "system";
1413
+ navigation_index: "navigation_index";
1406
1414
  }>;
1407
1415
  output: z.ZodString;
1408
1416
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1434,6 +1442,7 @@ declare const AgentContractsConfigSchema: z.ZodObject<{
1434
1442
  guardrail: "guardrail";
1435
1443
  guardrail_policy: "guardrail_policy";
1436
1444
  system: "system";
1445
+ navigation_index: "navigation_index";
1437
1446
  }>;
1438
1447
  output: z.ZodString;
1439
1448
  include: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1737,6 +1746,74 @@ interface ScoreResult {
1737
1746
 
1738
1747
  declare function score(dsl: Dsl): ScoreResult;
1739
1748
 
1749
+ type ProjectNavigationIndex = {
1750
+ version: string;
1751
+ generated_at: string;
1752
+ system: {
1753
+ id: string;
1754
+ name: string;
1755
+ };
1756
+ artifacts: Record<string, CompiledArtifactNode>;
1757
+ };
1758
+ type CompiledArtifactNode = {
1759
+ id: string;
1760
+ files: {
1761
+ path_patterns: string[];
1762
+ exclude_patterns: string[];
1763
+ };
1764
+ properties: {
1765
+ type: string;
1766
+ authority: "canonical" | "derived" | "generated" | "control";
1767
+ manual_edit: "allowed" | "discouraged" | "forbidden";
1768
+ change_control: "none" | "approval-required" | "regeneration-required";
1769
+ };
1770
+ relations: {
1771
+ source_artifacts: string[];
1772
+ derived_artifacts: string[];
1773
+ };
1774
+ operations: {
1775
+ producers: ArtifactOperation[];
1776
+ validators: ArtifactOperation[];
1777
+ consumers: ArtifactOperation[];
1778
+ };
1779
+ agents: {
1780
+ owners: string[];
1781
+ editors: string[];
1782
+ readers: string[];
1783
+ };
1784
+ routes: {
1785
+ update?: ArtifactRoute[];
1786
+ regenerate?: ArtifactRoute[];
1787
+ validate?: ArtifactRoute[];
1788
+ };
1789
+ };
1790
+ type ArtifactOperation = {
1791
+ tool: string;
1792
+ cli_contract: string;
1793
+ command: string;
1794
+ slot: string;
1795
+ invokable_by: string[];
1796
+ };
1797
+ type ArtifactRoute = {
1798
+ purpose: "update" | "regenerate" | "validate";
1799
+ steps: ArtifactRouteStep[];
1800
+ };
1801
+ type ArtifactRouteStep = {
1802
+ type: "edit_artifact";
1803
+ artifact: string;
1804
+ candidate_agents: string[];
1805
+ } | {
1806
+ type: "run_operation";
1807
+ operation: string;
1808
+ candidate_agents: string[];
1809
+ } | {
1810
+ type: "request_review";
1811
+ artifact: string;
1812
+ candidate_agents: string[];
1813
+ };
1814
+
1815
+ declare function buildNavigationIndex(dsl: Dsl): ProjectNavigationIndex;
1816
+
1740
1817
  type AuditType = "render" | "dsl" | "prompt" | "extensions";
1741
1818
  type OutputFormat = "text" | "json" | "markdown";
1742
1819
  interface AuditOptions {
@@ -1913,4 +1990,4 @@ interface PathResolveResult {
1913
1990
  }
1914
1991
  declare function resolveBindingTargetPath(target: string, paths: Record<string, string>, bindingSoftware: string): PathResolveResult;
1915
1992
 
1916
- export { type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, ArtifactSchema, type AuditOptions, type OutputFormat as AuditOutputFormat, type AuditConfig as AuditRunConfig, type AuditRunResult, type AuditType, BaseResolveError, type BindingGenerationContext, type BindingOutput, BindingOutputSchema, type BindingRenderTarget, BindingRenderTargetSchema, CONTEXT_TYPES, type Check, CheckSchema, type Command, CommandSchema, type Components, ComponentsSchema, ConfigLoadError, type ContextLoading, ContextLoadingSchema, 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 Section, SectionSchema, 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, buildAuditContext, buildGlobalContext, buildGuardrailContext, buildGuardrailPolicyContext, buildHandoffTypeContext, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, computeExitCode, expandDefaults, formatAuditResult, formatAuditResults, generateGuardrails, lint, loadBindings, loadConfig, loadDsl, mergeDsl, renderFromConfig, resolve, resolveAllOf, resolveBase, resolveBindingTargetPath, resolveChecks, resolveDslPath, resolveEffectiveGuardrails, resolveEntityValidations, runAllAudits, runAudit, score, spectralLint, validateHandoffSchemas, validateSchema, yamlReservedKeySafetyRule };
1993
+ export { type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, type ArtifactOperation, type ArtifactRoute, type ArtifactRouteStep, ArtifactSchema, type AuditOptions, type OutputFormat as AuditOutputFormat, type AuditConfig as AuditRunConfig, type AuditRunResult, type AuditType, BaseResolveError, type BindingGenerationContext, type BindingOutput, BindingOutputSchema, type BindingRenderTarget, BindingRenderTargetSchema, CONTEXT_TYPES, type Check, CheckSchema, type Command, CommandSchema, type CompiledArtifactNode, type Components, ComponentsSchema, ConfigLoadError, type ContextLoading, ContextLoadingSchema, 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 ProjectNavigationIndex, 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 Section, SectionSchema, 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, buildAuditContext, buildGlobalContext, buildGuardrailContext, buildGuardrailPolicyContext, buildHandoffTypeContext, buildNavigationIndex, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, computeExitCode, expandDefaults, formatAuditResult, formatAuditResults, generateGuardrails, lint, loadBindings, loadConfig, loadDsl, mergeDsl, renderFromConfig, resolve, resolveAllOf, resolveBase, resolveBindingTargetPath, resolveChecks, resolveDslPath, resolveEffectiveGuardrails, resolveEntityValidations, runAllAudits, runAudit, score, spectralLint, validateHandoffSchemas, validateSchema, yamlReservedKeySafetyRule };