agent-contracts
Version:
Declarative YAML DSL toolkit for defining, validating, and rendering multi-agent development workflows
98 lines (97 loc) • 2.79 kB
JSON
{
"name": "agent-contracts",
"version": "0.35.2",
"description": "Declarative YAML DSL toolkit for defining, validating, and rendering multi-agent development workflows",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"agent-contracts": "dist/agent-contracts.bundle.mjs"
},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist/agent-contracts.bundle.mjs",
"dist/agent-contracts.bundle.mjs.map",
"dist/index.js",
"dist/index.js.map",
"dist/index.d.ts",
"dsl_base",
"cli-contract.yaml",
"docs/cli-reference.md",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsup",
"clean": "rm -rf dist",
"test": "vitest run",
"test:unit": "vitest run",
"test:watch": "vitest",
"lint": "eslint src/ test/",
"typecheck": "tsc --noEmit",
"generate:schema": "tsx scripts/generate-json-schema.ts",
"generate:cli": "cli-contracts generate typescript",
"generate:docs": "cli-contracts docs",
"version": "node -e \"const fs=require('fs');const f='cli-contract.yaml';fs.writeFileSync(f,fs.readFileSync(f,'utf8').replace(/^ version: .*/m,' version: '+process.env.npm_package_version))\" && git add cli-contract.yaml",
"prepublishOnly": "npm run clean && npm run build && npm run bundle:min",
"test:ci": "vitest run",
"bundle": "node esbuild.bundle.mjs",
"bundle:min": "node esbuild.bundle.mjs --minify"
},
"keywords": [
"agent",
"multi-agent",
"workflow",
"yaml",
"dsl",
"validation",
"lint",
"prompt-rendering",
"handoff",
"typescript",
"ai-development"
],
"author": "foo-log-inc",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/foo-log-inc/agent-contracts.git"
},
"homepage": "https://github.com/foo-log-inc/agent-contracts#readme",
"bugs": {
"url": "https://github.com/foo-log-inc/agent-contracts/issues"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@stoplight/spectral-core": "^1.22.0",
"@stoplight/spectral-functions": "^1.9.0",
"@stoplight/spectral-rulesets": "^1.22.1",
"@types/node": "^25.6.0",
"agent-contracts-runtime": "^0.36.4",
"ajv": "^8.18.0",
"cli-contracts": "^0.32.0",
"commander": "^14.0.3",
"esbuild": "^0.28.0",
"eslint": "^10.2.0",
"globals": "^17.5.0",
"handlebars": "^4.7.9",
"minimatch": "^10.2.5",
"prettier": "^3.8.2",
"tsup": "^8.5.1",
"tsx": "^4.21.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.58.1",
"vitest": "^4.1.8",
"yaml": "^2.9.0",
"zod": "^4.4.3",
"zod-to-json-schema": "^3.25.2"
},
"engines": {
"node": ">=20.0.0"
}
}