agent-contracts 0.14.0 → 0.14.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 +7 -3
- package/dist/cli.js +6 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -180,6 +180,7 @@ An **Agent** defines who an execution entity is:
|
|
|
180
180
|
* permissions
|
|
181
181
|
* constraints
|
|
182
182
|
* behavioral rules
|
|
183
|
+
* structured content sections (reference material, procedures, criteria)
|
|
183
184
|
|
|
184
185
|
### Task
|
|
185
186
|
|
|
@@ -317,6 +318,7 @@ Design regressions become testable.
|
|
|
317
318
|
## Features
|
|
318
319
|
|
|
319
320
|
* **Declarative YAML DSL** for multi-agent development workflows
|
|
321
|
+
* **Agent `sections`** for embedding structured reference material, procedures, and criteria directly in agent definitions
|
|
320
322
|
* **Static schema validation**
|
|
321
323
|
* **Reference integrity checks**
|
|
322
324
|
* **Semantic linting**
|
|
@@ -574,9 +576,11 @@ agents:
|
|
|
574
576
|
constraints:
|
|
575
577
|
- "Never write code directly"
|
|
576
578
|
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
579
|
+
sections:
|
|
580
|
+
- title: "Delegation Protocol"
|
|
581
|
+
content: |
|
|
582
|
+
You act as the Architect. You NEVER implement or test directly.
|
|
583
|
+
Instead you delegate to specialist sub-agents.
|
|
580
584
|
````
|
|
581
585
|
|
|
582
586
|
---
|
package/dist/cli.js
CHANGED
|
@@ -50479,6 +50479,12 @@ var AgentSchema = z.object({
|
|
|
50479
50479
|
rules: z.array(RuleSchema).optional(),
|
|
50480
50480
|
anti_patterns: z.array(z.string()).optional(),
|
|
50481
50481
|
escalation_criteria: z.array(EscalationCriterionSchema).optional(),
|
|
50482
|
+
sections: z.array(
|
|
50483
|
+
z.object({
|
|
50484
|
+
title: z.string(),
|
|
50485
|
+
content: z.string()
|
|
50486
|
+
})
|
|
50487
|
+
).optional(),
|
|
50482
50488
|
prerequisites: z.array(PrerequisiteSchema).optional(),
|
|
50483
50489
|
guardrails: z.array(z.string()).optional()
|
|
50484
50490
|
}).passthrough();
|