agent-contracts 0.33.0 → 0.33.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/README.md +2 -0
- package/dist/agent-contracts.bundle.mjs +157 -157
- package/dist/agent-contracts.bundle.mjs.map +3 -3
- package/dist/index.d.ts +18 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -531,6 +531,11 @@ declare const DslSchema: z.ZodObject<{
|
|
|
531
531
|
}, z.core.$loose>>>;
|
|
532
532
|
validations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
533
533
|
guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
534
|
+
model_class: z.ZodOptional<z.ZodEnum<{
|
|
535
|
+
fast: "fast";
|
|
536
|
+
standard: "standard";
|
|
537
|
+
thinking: "thinking";
|
|
538
|
+
}>>;
|
|
534
539
|
}, z.core.$loose>>>;
|
|
535
540
|
artifacts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
536
541
|
type: z.ZodString;
|
|
@@ -1084,6 +1089,12 @@ declare const TeamInterfaceSchema: z.ZodObject<{
|
|
|
1084
1089
|
}, z.core.$loose>;
|
|
1085
1090
|
type TeamInterface = z.infer<typeof TeamInterfaceSchema>;
|
|
1086
1091
|
|
|
1092
|
+
declare const ModelClassSchema: z.ZodEnum<{
|
|
1093
|
+
fast: "fast";
|
|
1094
|
+
standard: "standard";
|
|
1095
|
+
thinking: "thinking";
|
|
1096
|
+
}>;
|
|
1097
|
+
type ModelClass = z.infer<typeof ModelClassSchema>;
|
|
1087
1098
|
declare const ExecutionStepSchema: z.ZodObject<{
|
|
1088
1099
|
id: z.ZodString;
|
|
1089
1100
|
action: z.ZodString;
|
|
@@ -1177,6 +1188,11 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
1177
1188
|
}, z.core.$loose>>>;
|
|
1178
1189
|
validations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1179
1190
|
guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1191
|
+
model_class: z.ZodOptional<z.ZodEnum<{
|
|
1192
|
+
fast: "fast";
|
|
1193
|
+
standard: "standard";
|
|
1194
|
+
thinking: "thinking";
|
|
1195
|
+
}>>;
|
|
1180
1196
|
}, z.core.$loose>;
|
|
1181
1197
|
type Task = z.infer<typeof TaskSchema>;
|
|
1182
1198
|
|
|
@@ -1766,6 +1782,7 @@ interface DelegatableTaskView {
|
|
|
1766
1782
|
invocation_payload_keys: string[];
|
|
1767
1783
|
result_handoff: string;
|
|
1768
1784
|
result_payload_keys: string[];
|
|
1785
|
+
model_class?: string;
|
|
1769
1786
|
}
|
|
1770
1787
|
interface PerAgentContext {
|
|
1771
1788
|
agent: (Agent & Record<string, unknown>) & {
|
|
@@ -2112,4 +2129,4 @@ declare function matchFileToArtifacts(filePath: string, artifacts: Record<string
|
|
|
2112
2129
|
declare function buildCoverageReport(files: string[], artifacts: Record<string, ArtifactFileInfo>): ArtifactCoverageReport;
|
|
2113
2130
|
declare function formatCoverageText(report: ArtifactCoverageReport): string;
|
|
2114
2131
|
|
|
2115
|
-
export { type Action, ActionEnum, ActionSchema, type ActionValue, type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, type ArtifactCoverageReport, type ArtifactCoverageSummary, type ArtifactFileInfo, 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, type ConditionalAction, ConditionalActionSchema, 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 OverlappingFile, type PathResolveResult, type PerAgentContext, type PerArtifactContext, type PerArtifactEntry, 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, buildCoverageReport, buildGlobalContext, buildGuardrailContext, buildGuardrailPolicyContext, buildHandoffTypeContext, buildNavigationIndex, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, computeExitCode, enumerateProjectFiles, expandDefaults, formatAuditResult, formatAuditResults, formatCoverageText, generateGuardrails, lint, loadBindings, loadConfig, loadDsl, matchFileToArtifacts, mergeDsl, renderFromConfig, resolve, resolveAllOf, resolveBase, resolveBindingTargetPath, resolveChecks, resolveDslPath, resolveEffectiveGuardrails, resolveEntityValidations, runAllAudits, runAudit, score, spectralLint, validateHandoffSchemas, validateSchema, yamlReservedKeySafetyRule };
|
|
2132
|
+
export { type Action, ActionEnum, ActionSchema, type ActionValue, type Agent, type AgentContractsConfig, AgentContractsConfigSchema, AgentSchema, type AppendOperator, AppendOperatorSchema, type Artifact, type ArtifactCoverageReport, type ArtifactCoverageSummary, type ArtifactFileInfo, 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, type ConditionalAction, ConditionalActionSchema, 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 ModelClass, ModelClassSchema, type OverlappingFile, type PathResolveResult, type PerAgentContext, type PerArtifactContext, type PerArtifactEntry, 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, buildCoverageReport, buildGlobalContext, buildGuardrailContext, buildGuardrailPolicyContext, buildHandoffTypeContext, buildNavigationIndex, buildPerAgentContext, buildPolicyContext, buildSystemContext, buildTaskContext, buildToolContext, buildValidationContext, buildWorkflowContext, builtinRules, checkDriftFromConfig, checkReferences, computeExitCode, enumerateProjectFiles, expandDefaults, formatAuditResult, formatAuditResults, formatCoverageText, generateGuardrails, lint, loadBindings, loadConfig, loadDsl, matchFileToArtifacts, mergeDsl, renderFromConfig, resolve, resolveAllOf, resolveBase, resolveBindingTargetPath, resolveChecks, resolveDslPath, resolveEffectiveGuardrails, resolveEntityValidations, runAllAudits, runAudit, score, spectralLint, validateHandoffSchemas, validateSchema, yamlReservedKeySafetyRule };
|
package/dist/index.js
CHANGED
|
@@ -81168,6 +81168,7 @@ var SystemSchema = external_exports.object({
|
|
|
81168
81168
|
}).passthrough();
|
|
81169
81169
|
|
|
81170
81170
|
// src/schema/task.ts
|
|
81171
|
+
var ModelClassSchema = external_exports.enum(["fast", "standard", "thinking"]);
|
|
81171
81172
|
var ExecutionStepSchema = external_exports.object({
|
|
81172
81173
|
id: external_exports.string(),
|
|
81173
81174
|
action: external_exports.string(),
|
|
@@ -81201,7 +81202,8 @@ var TaskSchema = external_exports.object({
|
|
|
81201
81202
|
escalation_criteria: external_exports.array(EscalationCriterionSchema).optional(),
|
|
81202
81203
|
sections: external_exports.array(SectionSchema).optional(),
|
|
81203
81204
|
validations: external_exports.array(external_exports.string()).default([]),
|
|
81204
|
-
guardrails: external_exports.array(external_exports.string()).optional()
|
|
81205
|
+
guardrails: external_exports.array(external_exports.string()).optional(),
|
|
81206
|
+
model_class: ModelClassSchema.optional()
|
|
81205
81207
|
}).passthrough();
|
|
81206
81208
|
|
|
81207
81209
|
// src/schema/team-import.ts
|
|
@@ -85871,7 +85873,8 @@ function buildDelegatableTasks(dsl, agentId) {
|
|
|
85871
85873
|
invocation_handoff: t3.invocation_handoff,
|
|
85872
85874
|
invocation_payload_keys: invocationHandoff ? extractSchemaFieldNames(invocationHandoff.schema) : [],
|
|
85873
85875
|
result_handoff: t3.result_handoff,
|
|
85874
|
-
result_payload_keys: resultHandoff ? extractSchemaFieldNames(resultHandoff.schema) : []
|
|
85876
|
+
result_payload_keys: resultHandoff ? extractSchemaFieldNames(resultHandoff.schema) : [],
|
|
85877
|
+
...t3.model_class ? { model_class: t3.model_class } : {}
|
|
85875
85878
|
};
|
|
85876
85879
|
});
|
|
85877
85880
|
}
|
|
@@ -91225,6 +91228,7 @@ export {
|
|
|
91225
91228
|
InsertAfterOperatorSchema,
|
|
91226
91229
|
MatcherSchema,
|
|
91227
91230
|
MergeError,
|
|
91231
|
+
ModelClassSchema,
|
|
91228
91232
|
PolicySchema,
|
|
91229
91233
|
PolicyWhenSchema,
|
|
91230
91234
|
PrependOperatorSchema,
|