This directory contains the JSON Schema for agentcore.json, generated from the Zod schemas in src/schema/.
npm run build:lib
npm run build:schemaThis regenerates schemas/agentcore.schema.v1.json from the compiled Zod schemas. Commit the updated file.
agentcore.schema.v1.json— backwards-compatible updates only (new optional fields)- Create
agentcore.schema.v2.jsononly for breaking changes (removed/renamed fields)
- Update
SCHEMA_VERSIONinscripts/generate-schema.mjs - Run
npm run build:lib && npm run build:schema - Commit the new schema file — keep the old version for existing projects
Tag patterns use Unicode property escapes (\p{L}, \p{N}) which require a JS-based regex engine. This works in VS
Code and other JS-powered validators but may fail in Python, Go, or Java < 9.
The JSON Schema is a best-effort projection of the Zod schemas in src/schema/. Zod is the source of truth and is more
expressive (e.g. cross-field refinements, custom validators). Passing JSON Schema validation does not guarantee the CLI
will accept the config.