agent-contracts 0.22.3 → 0.22.4
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/cli-contract.yaml +11 -8
- package/dist/cli.js +442 -42
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +16 -3
- package/dist/index.js +443 -43
- package/dist/index.js.map +1 -1
- package/dsl_base/agents/dsl-auditor.yaml +31 -2
- package/dsl_base/agents/dsl-designer.yaml +0 -2
- package/dsl_base/artifacts.yaml +1 -1
- package/dsl_base/handoff-types.yaml +33 -11
- package/dsl_base/tasks.yaml +43 -14
- package/dsl_base/validations.yaml +6 -6
- package/dsl_base/workflow.yaml +30 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ declare const ArtifactSchema: z.ZodObject<{
|
|
|
113
113
|
states: z.ZodArray<z.ZodString>;
|
|
114
114
|
required_validations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
115
115
|
visibility: z.ZodOptional<z.ZodString>;
|
|
116
|
+
classification: z.ZodOptional<z.ZodString>;
|
|
116
117
|
guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
118
|
}, z.core.$loose>;
|
|
118
119
|
type Artifact = z.infer<typeof ArtifactSchema>;
|
|
@@ -440,7 +441,7 @@ declare const DslSchema: z.ZodObject<{
|
|
|
440
441
|
tasks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
441
442
|
description: z.ZodString;
|
|
442
443
|
target_agent: z.ZodString;
|
|
443
|
-
allowed_from_agents: z.ZodArray<z.ZodString
|
|
444
|
+
allowed_from_agents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
444
445
|
workflow: z.ZodString;
|
|
445
446
|
input_artifacts: z.ZodArray<z.ZodString>;
|
|
446
447
|
invocation_handoff: z.ZodString;
|
|
@@ -507,6 +508,7 @@ declare const DslSchema: z.ZodObject<{
|
|
|
507
508
|
states: z.ZodArray<z.ZodString>;
|
|
508
509
|
required_validations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
509
510
|
visibility: z.ZodOptional<z.ZodString>;
|
|
511
|
+
classification: z.ZodOptional<z.ZodString>;
|
|
510
512
|
guardrails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
511
513
|
}, z.core.$loose>>>;
|
|
512
514
|
tools: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -543,6 +545,7 @@ declare const DslSchema: z.ZodObject<{
|
|
|
543
545
|
executor: z.ZodString;
|
|
544
546
|
blocking: z.ZodBoolean;
|
|
545
547
|
produces_evidence: z.ZodOptional<z.ZodString>;
|
|
548
|
+
description: z.ZodOptional<z.ZodString>;
|
|
546
549
|
}, z.core.$loose>>>;
|
|
547
550
|
handoff_types: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
548
551
|
version: z.ZodNumber;
|
|
@@ -953,7 +956,7 @@ type ExecutionStep = z.infer<typeof ExecutionStepSchema>;
|
|
|
953
956
|
declare const TaskSchema: z.ZodObject<{
|
|
954
957
|
description: z.ZodString;
|
|
955
958
|
target_agent: z.ZodString;
|
|
956
|
-
allowed_from_agents: z.ZodArray<z.ZodString
|
|
959
|
+
allowed_from_agents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
957
960
|
workflow: z.ZodString;
|
|
958
961
|
input_artifacts: z.ZodArray<z.ZodString>;
|
|
959
962
|
invocation_handoff: z.ZodString;
|
|
@@ -1056,6 +1059,7 @@ declare const ValidationSchema: z.ZodObject<{
|
|
|
1056
1059
|
executor: z.ZodString;
|
|
1057
1060
|
blocking: z.ZodBoolean;
|
|
1058
1061
|
produces_evidence: z.ZodOptional<z.ZodString>;
|
|
1062
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1059
1063
|
}, z.core.$loose>;
|
|
1060
1064
|
type Validation = z.infer<typeof ValidationSchema>;
|
|
1061
1065
|
|
|
@@ -1327,6 +1331,13 @@ declare const RenderTargetSchema: z.ZodObject<{
|
|
|
1327
1331
|
skip_empty: z.ZodOptional<z.ZodBoolean>;
|
|
1328
1332
|
}, z.core.$strip>;
|
|
1329
1333
|
type RenderTarget = z.infer<typeof RenderTargetSchema>;
|
|
1334
|
+
declare const AuditConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
1335
|
+
adapter: z.ZodOptional<z.ZodString>;
|
|
1336
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1338
|
+
cache_dir: z.ZodOptional<z.ZodString>;
|
|
1339
|
+
}, z.core.$strip>>;
|
|
1340
|
+
type AuditConfig$1 = z.infer<typeof AuditConfigSchema>;
|
|
1330
1341
|
declare const AgentContractsConfigSchema: z.ZodObject<{
|
|
1331
1342
|
dsl: z.ZodOptional<z.ZodString>;
|
|
1332
1343
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1394,6 +1405,7 @@ interface ResolvedConfig {
|
|
|
1394
1405
|
activeGuardrailPolicy?: string;
|
|
1395
1406
|
paths?: Record<string, string>;
|
|
1396
1407
|
teams?: Record<string, ResolvedTeamConfig>;
|
|
1408
|
+
audit?: AuditConfig$1;
|
|
1397
1409
|
}
|
|
1398
1410
|
|
|
1399
1411
|
interface LoadedBinding {
|
|
@@ -1646,7 +1658,7 @@ interface ScoreResult {
|
|
|
1646
1658
|
|
|
1647
1659
|
declare function score(dsl: Dsl): ScoreResult;
|
|
1648
1660
|
|
|
1649
|
-
type AuditType = "render" | "dsl" | "prompt";
|
|
1661
|
+
type AuditType = "render" | "dsl" | "prompt" | "extensions";
|
|
1650
1662
|
type OutputFormat = "text" | "json" | "markdown";
|
|
1651
1663
|
interface AuditOptions {
|
|
1652
1664
|
auditType: AuditType;
|
|
@@ -1673,6 +1685,7 @@ interface AuditConfig {
|
|
|
1673
1685
|
declare const DslAuditResultSchema: z.ZodObject<{
|
|
1674
1686
|
audit_type: z.ZodEnum<{
|
|
1675
1687
|
semantic: "semantic";
|
|
1688
|
+
extensions: "extensions";
|
|
1676
1689
|
prompt: "prompt";
|
|
1677
1690
|
completeness: "completeness";
|
|
1678
1691
|
}>;
|