agent-contracts 0.22.3 → 0.22.5
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 +462 -45
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +22 -6
- package/dist/index.js +463 -46
- 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;
|
|
@@ -822,9 +825,12 @@ type GuardrailPolicy = z.infer<typeof GuardrailPolicySchema>;
|
|
|
822
825
|
|
|
823
826
|
type AnyRecord$1 = Record<string, unknown>;
|
|
824
827
|
/**
|
|
825
|
-
*
|
|
826
|
-
*
|
|
827
|
-
*
|
|
828
|
+
* Recursively merge `allOf` arrays in a JSON Schema.
|
|
829
|
+
*
|
|
830
|
+
* Each `allOf` sub-schema is itself resolved first (handling nested
|
|
831
|
+
* `allOf`), then `properties`, `required`, and top-level scalars are
|
|
832
|
+
* merged. After merging, nested property schemas that contain their
|
|
833
|
+
* own `allOf` are also resolved so the output is fully flattened.
|
|
828
834
|
*/
|
|
829
835
|
declare function resolveAllOf(schema: AnyRecord$1): AnyRecord$1;
|
|
830
836
|
|
|
@@ -953,7 +959,7 @@ type ExecutionStep = z.infer<typeof ExecutionStepSchema>;
|
|
|
953
959
|
declare const TaskSchema: z.ZodObject<{
|
|
954
960
|
description: z.ZodString;
|
|
955
961
|
target_agent: z.ZodString;
|
|
956
|
-
allowed_from_agents: z.ZodArray<z.ZodString
|
|
962
|
+
allowed_from_agents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
957
963
|
workflow: z.ZodString;
|
|
958
964
|
input_artifacts: z.ZodArray<z.ZodString>;
|
|
959
965
|
invocation_handoff: z.ZodString;
|
|
@@ -1056,6 +1062,7 @@ declare const ValidationSchema: z.ZodObject<{
|
|
|
1056
1062
|
executor: z.ZodString;
|
|
1057
1063
|
blocking: z.ZodBoolean;
|
|
1058
1064
|
produces_evidence: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1059
1066
|
}, z.core.$loose>;
|
|
1060
1067
|
type Validation = z.infer<typeof ValidationSchema>;
|
|
1061
1068
|
|
|
@@ -1327,6 +1334,13 @@ declare const RenderTargetSchema: z.ZodObject<{
|
|
|
1327
1334
|
skip_empty: z.ZodOptional<z.ZodBoolean>;
|
|
1328
1335
|
}, z.core.$strip>;
|
|
1329
1336
|
type RenderTarget = z.infer<typeof RenderTargetSchema>;
|
|
1337
|
+
declare const AuditConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
1338
|
+
adapter: z.ZodOptional<z.ZodString>;
|
|
1339
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1340
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1341
|
+
cache_dir: z.ZodOptional<z.ZodString>;
|
|
1342
|
+
}, z.core.$strip>>;
|
|
1343
|
+
type AuditConfig$1 = z.infer<typeof AuditConfigSchema>;
|
|
1330
1344
|
declare const AgentContractsConfigSchema: z.ZodObject<{
|
|
1331
1345
|
dsl: z.ZodOptional<z.ZodString>;
|
|
1332
1346
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1394,6 +1408,7 @@ interface ResolvedConfig {
|
|
|
1394
1408
|
activeGuardrailPolicy?: string;
|
|
1395
1409
|
paths?: Record<string, string>;
|
|
1396
1410
|
teams?: Record<string, ResolvedTeamConfig>;
|
|
1411
|
+
audit?: AuditConfig$1;
|
|
1397
1412
|
}
|
|
1398
1413
|
|
|
1399
1414
|
interface LoadedBinding {
|
|
@@ -1646,7 +1661,7 @@ interface ScoreResult {
|
|
|
1646
1661
|
|
|
1647
1662
|
declare function score(dsl: Dsl): ScoreResult;
|
|
1648
1663
|
|
|
1649
|
-
type AuditType = "render" | "dsl" | "prompt";
|
|
1664
|
+
type AuditType = "render" | "dsl" | "prompt" | "extensions";
|
|
1650
1665
|
type OutputFormat = "text" | "json" | "markdown";
|
|
1651
1666
|
interface AuditOptions {
|
|
1652
1667
|
auditType: AuditType;
|
|
@@ -1673,6 +1688,7 @@ interface AuditConfig {
|
|
|
1673
1688
|
declare const DslAuditResultSchema: z.ZodObject<{
|
|
1674
1689
|
audit_type: z.ZodEnum<{
|
|
1675
1690
|
semantic: "semantic";
|
|
1691
|
+
extensions: "extensions";
|
|
1676
1692
|
prompt: "prompt";
|
|
1677
1693
|
completeness: "completeness";
|
|
1678
1694
|
}>;
|