{"_id":"@agenticdiagrams/schema","_rev":"6-6ffdcf2e4a844b9806a7f561a7cffd74","name":"@agenticdiagrams/schema","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"@agenticdiagrams/schema","version":"0.1.0","keywords":["agentic","yaml","schema","diagram","ai-agents","mcp","validation"],"license":"MIT","_id":"@agenticdiagrams/schema@0.1.0","maintainers":[{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"}],"homepage":"https://agenticdiagrams.com","bugs":{"url":"https://github.com/agenticdiagrams/schema/issues"},"dist":{"shasum":"4e1ff2192f2a8dd7d289ce7b8f4d2ca8bfa33712","tarball":"https://registry.npmjs.org/@agenticdiagrams/schema/-/schema-0.1.0.tgz","fileCount":13,"integrity":"sha512-dQfhVY70qUuxgAcBVOE/kvIVSBrDSSQ9vJOlBBJj2oN8jaHlhzdPQ5Ew0CtTjjMKr9/2lqpIEWrjqyqwgJ/elg==","signatures":[{"sig":"MEQCICu4PqMX2B/5bjqrEfWHFCmYXlG4/De3WOmLorei7vNSAiBehdnuH156Q83xiqOaugy4GBkJ79y0/3/AM+aLdwZ6gA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81571},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./schema.json":"./schema/agentic.v0.1.json"},"gitHead":"d5ac4c3fed64ef8a0350059aaf885cae5ad5c442","scripts":{"lint":"prettier --check .","test":"vitest run","build":"tsup","format":"prettier --write .","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"},"repository":{"url":"git+https://github.com/agenticdiagrams/schema.git","type":"git"},"_npmVersion":"10.9.3","description":"Agentic YAML Schema — spec, types, and validation for .agentic.yaml diagram files","directories":{},"_nodeVersion":"22.18.0","dependencies":{"ajv":"^8.17.1","ajv-formats":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^3.1.1","prettier":"^3.5.3","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/schema_0.1.0_1776032684466_0.08998676036837394","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agenticdiagrams/schema","version":"0.1.1","keywords":["agentic","yaml","schema","diagram","ai-agents","mcp","validation"],"license":"MIT","_id":"@agenticdiagrams/schema@0.1.1","maintainers":[{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"}],"homepage":"https://agenticdiagrams.com","bugs":{"url":"https://github.com/agenticdiagrams/schema/issues"},"dist":{"shasum":"f186c7025e9aefdd51779a3e38b14857663a403e","tarball":"https://registry.npmjs.org/@agenticdiagrams/schema/-/schema-0.1.1.tgz","fileCount":12,"integrity":"sha512-niS88XPrs2JQo1bFl0YOM6VqtfxUBnU5Bhhmv8IOsGVOo3PEoKxS9oNWssD60hb8TjL49k2bpCXJXRCT+vMK3Q==","signatures":[{"sig":"MEUCIQCeQSoA1mt8Yg8Yi6A/cOYwHtNklMdOrh2TORHiD3O+ygIgRB+aBC9oOrI27N0s01FVM2Nx8Oy8DEN5e238JTk47BU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenticdiagrams%2fschema@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":79940},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./schema.json":"./schema/agentic.v0.1.json"},"gitHead":"30ff3fcb2ebb27d1591d0380f5f1569dd493607c","scripts":{"lint":"prettier --check .","test":"vitest run","build":"tsup","format":"prettier --write .","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"},"repository":{"url":"git+https://github.com/agenticdiagrams/schema.git","type":"git"},"_npmVersion":"11.11.0","description":"Agentic YAML Schema — spec, types, and validation for .agentic.yaml diagram files","directories":{},"_nodeVersion":"24.14.1","dependencies":{"ajv":"^8.17.1","ajv-formats":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^4.0.0","prettier":"^3.5.3","typescript":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/schema_0.1.1_1776768682706_0.9476724258240747","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agenticdiagrams/schema","version":"0.1.2","keywords":["agentic","yaml","schema","diagram","ai-agents","mcp","validation"],"license":"MIT","_id":"@agenticdiagrams/schema@0.1.2","maintainers":[{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"}],"homepage":"https://agenticdiagrams.com","bugs":{"url":"https://github.com/agenticdiagrams/schema/issues"},"dist":{"shasum":"be85539e35c930c9b1b7d988565a7684546a4b42","tarball":"https://registry.npmjs.org/@agenticdiagrams/schema/-/schema-0.1.2.tgz","fileCount":12,"integrity":"sha512-WCsxQkoJoYXNR+/D9onQstjg/bqw8+meSA7nOL6Dh/ejVAL8HG0CsdrBYx1tI7mG3NRjseMgeNA4TdHZizDOKg==","signatures":[{"sig":"MEUCIQCIUyQj7H75fBG87zBCk7/+n8Kw0qK3VSevGRrJZb0yTQIgY1wn2a912TWKCx8+2yEKv4IOwO7G+2Sp3VZEOJSqQRU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenticdiagrams%2fschema@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":81548},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./schema.json":"./schema/agentic.v0.1.json"},"gitHead":"5fa8550097a4ef7ab4935a37349d1f966219cd05","scripts":{"lint":"prettier --check .","test":"vitest run","build":"tsup","format":"prettier --write .","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"},"repository":{"url":"git+https://github.com/agenticdiagrams/schema.git","type":"git"},"_npmVersion":"11.11.0","description":"Agentic YAML Schema — spec, types, and validation for .agentic.yaml diagram files","directories":{},"_nodeVersion":"24.14.1","dependencies":{"ajv":"^8.17.1","ajv-formats":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^4.0.0","prettier":"^3.5.3","typescript":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/schema_0.1.2_1777678807031_0.677642580231886","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@agenticdiagrams/schema","version":"0.1.3","keywords":["agentic","yaml","schema","diagram","ai-agents","mcp","validation"],"license":"MIT","_id":"@agenticdiagrams/schema@0.1.3","maintainers":[{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"}],"homepage":"https://agenticdiagrams.com","bugs":{"url":"https://github.com/agenticdiagrams/schema/issues"},"dist":{"shasum":"fd69345aaa77b6c7cdf7425d99ebae310be014d2","tarball":"https://registry.npmjs.org/@agenticdiagrams/schema/-/schema-0.1.3.tgz","fileCount":12,"integrity":"sha512-Vc1LDRhMYPtnvJyQWRgw3y5T20tok3zKhFdorygDDCXItsucWw/lMiXUxHqQyzluYC27YwimOv3YvogDHZEDng==","signatures":[{"sig":"MEYCIQCPKleLrfIWTGj8JdRLiKeD+7nuPzmUk1/N8jwR8HMBiQIhAPDTBIbqUrbW6TXplP0gtDWxKXX7zADOcp8rya+JbJwa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenticdiagrams%2fschema@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":82303},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./schema.json":"./schema/agentic.v0.1.json"},"gitHead":"7dfde428e7e3b27d37a01281ed605936afa22505","scripts":{"lint":"prettier --check .","test":"vitest run","build":"tsup","format":"prettier --write .","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"},"repository":{"url":"git+https://github.com/agenticdiagrams/schema.git","type":"git"},"_npmVersion":"11.12.1","description":"Agentic YAML Schema — spec, types, and validation for .agentic.yaml diagram files","directories":{},"_nodeVersion":"24.15.0","dependencies":{"ajv":"^8.17.1","ajv-formats":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^4.0.0","prettier":"^3.5.3","typescript":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/schema_0.1.3_1779100226126_0.20624236352604042","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@agenticdiagrams/schema","version":"0.1.4","keywords":["agentic","yaml","schema","diagram","ai-agents","mcp","validation"],"license":"MIT","_id":"@agenticdiagrams/schema@0.1.4","maintainers":[{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"}],"homepage":"https://agenticdiagrams.com","bugs":{"url":"https://github.com/agenticdiagrams/schema/issues"},"dist":{"shasum":"d3e698078b2e14037263eba558ce2bc039f9d77e","tarball":"https://registry.npmjs.org/@agenticdiagrams/schema/-/schema-0.1.4.tgz","fileCount":12,"integrity":"sha512-s5JXMIREmRMcsH1VpuIGQt73ALpNfnpzEDjnQVgUxuOtgt9HU4o6ihdC2j5LKPqNMeg6fepvtkvfc/qUxjJbOg==","signatures":[{"sig":"MEUCIBsLUuIN3N6+4N4WbcY2tb1qyQ57fGGzyLpC1v11ni2nAiEArIFEZAY4YMMGsPK9W0Na2sCGXmNNf4SpnGlRJXLSuEw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenticdiagrams%2fschema@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":86539},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./schema.json":"./schema/agentic.v0.1.json"},"gitHead":"dc76775eefbfb6b6ccc8a7ae8c76738eecce5880","scripts":{"lint":"prettier --check .","test":"vitest run","build":"tsup","format":"prettier --write .","typecheck":"tsc --noEmit","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"},"repository":{"url":"git+https://github.com/agenticdiagrams/schema.git","type":"git"},"_npmVersion":"11.13.0","description":"Agentic YAML Schema — spec, types, and validation for .agentic.yaml diagram files","directories":{},"_nodeVersion":"24.16.0","dependencies":{"ajv":"^8.17.1","ajv-formats":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^4.0.0","prettier":"^3.5.3","typescript":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/schema_0.1.4_1781495703955_0.00788234701932966","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@agenticdiagrams/schema","version":"0.1.5","description":"Agentic YAML Schema — spec, types, and validation for .agentic.yaml diagram files","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./schema.json":"./schema/agentic.v0.1.json"},"scripts":{"build":"tsup","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest","lint":"prettier --check .","format":"prettier --write .","prepublishOnly":"npm run build"},"keywords":["agentic","yaml","schema","diagram","ai-agents","mcp","validation"],"repository":{"type":"git","url":"git+https://github.com/agenticdiagrams/schema.git"},"homepage":"https://agenticdiagrams.com","license":"MIT","dependencies":{"ajv":"^8.17.1","ajv-formats":"^3.0.1"},"devDependencies":{"prettier":"^3.5.3","tsup":"^8.4.0","typescript":"^6.0.0","vitest":"^4.0.0"},"gitHead":"35a1f1a6e3f7058c70d2dbd3610bf77591c13789","_id":"@agenticdiagrams/schema@0.1.5","bugs":{"url":"https://github.com/agenticdiagrams/schema/issues"},"_nodeVersion":"24.17.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-m1vqeuCrxj6J4y2XbEqrW7WCClO3uyc+quuM015GD4XDj3M7rTFna5a4CrbEVrsJrRsTw8eT3ezViCPTBXYzIQ==","shasum":"2d999632405ea9c38838ee87b30a3df3335bded1","tarball":"https://registry.npmjs.org/@agenticdiagrams/schema/-/schema-0.1.5.tgz","fileCount":12,"unpackedSize":88910,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agenticdiagrams%2fschema@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCXwRui/8kyRJsorP3Br067r1HLVKwMwjjnl13uql0q0wIgQZloRNlgDlg5UnBdatEZ0zZ/E7VoxfTsps14hHBnFZE="}]},"_npmUser":{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"},"directories":{},"maintainers":[{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/schema_0.1.5_1782720881321_0.33762701566721565"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-12T22:24:44.362Z","modified":"2026-06-29T08:14:41.709Z","0.1.0":"2026-04-12T22:24:44.616Z","0.1.1":"2026-04-21T10:51:22.827Z","0.1.2":"2026-05-01T23:40:07.166Z","0.1.3":"2026-05-18T10:30:26.241Z","0.1.4":"2026-06-15T03:55:04.093Z","0.1.5":"2026-06-29T08:14:41.449Z"},"bugs":{"url":"https://github.com/agenticdiagrams/schema/issues"},"license":"MIT","homepage":"https://agenticdiagrams.com","keywords":["agentic","yaml","schema","diagram","ai-agents","mcp","validation"],"repository":{"type":"git","url":"git+https://github.com/agenticdiagrams/schema.git"},"description":"Agentic YAML Schema — spec, types, and validation for .agentic.yaml diagram files","maintainers":[{"name":"paul-kohler","email":"mr.paul.kohler@gmail.com"}],"readme":"# @agenticdiagrams/schema\n\nTypeScript types, JSON Schema, and validation for [`.agentic.yaml`](docs/spec.md) diagram files.\n\n## Install\n\n```bash\nnpm install @agenticdiagrams/schema\n```\n\n## Usage\n\n### Types\n\n```ts\nimport type { AgenticYaml, AgenticNode, AgenticEdge } from '@agenticdiagrams/schema';\n```\n\n### Validation\n\nValidate a parsed YAML object against the schema:\n\n```ts\nimport * as yaml from 'js-yaml';\nimport { validate } from '@agenticdiagrams/schema';\n\nconst doc = yaml.load(yamlString);\nconst result = validate(doc);\n\nif (!result.valid) {\n  console.error(result.errors);\n}\n```\n\n### JSON Schema\n\nUse the JSON Schema directly for editor support or other tools:\n\n```ts\nimport schema from '@agenticdiagrams/schema/schema.json';\n```\n\nOr reference it by URL: `https://agenticdiagrams.com/schemas/agentic/0.1.json`\n\n## What's in the box\n\n| Export | Description |\n|--------|-------------|\n| `AgenticYaml` | Root document type |\n| `AgenticNode` | Node definition |\n| `AgenticEdge` | Edge (connection) definition |\n| `AgenticScenario` | Flow scenario with steps |\n| `AgenticLayout` | Layout hints (positions, sizes, styles) |\n| `validate()` | Structural validation against JSON Schema |\n\n## Spec\n\nSee the full [Agentic YAML Specification v0.1](docs/spec.md).\n\n## Examples\n\nThe [`examples/`](examples/) directory contains complete `.agentic.yaml` files:\n\n- **[simple-agent](examples/simple-agent.agentic.yaml)** — Support bot with knowledge base search\n- **[multi-agent-with-guardrails](examples/multi-agent-with-guardrails.agentic.yaml)** — Pipeline with input/output guardrails and human approval\n- **[kitchen-manager](examples/kitchen-manager.agentic.yaml)** — Multi-agent system with MCP tools and parallel scenarios\n\n## Minimum valid document\n\n```yaml\nagentic: \"0.1\"\n```\n\nA practical minimum:\n\n```yaml\nagentic: \"0.1\"\nnodes:\n  my-agent:\n    type: agent\n    edges:\n      - to: my-tool\n  my-tool:\n    type: tool\n    sub_type: mcp\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}