{
  "name": "@hasna/contracts",
  "version": "0.14.2",
  "description": "Shared schemas and validators for Hasna open-source agent infrastructure contracts.",
  "type": "module",
  "license": "Apache-2.0",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/hasna/contracts.git"
  },
  "homepage": "https://github.com/hasna/contracts",
  "bugs": {
    "url": "https://github.com/hasna/contracts/issues"
  },
  "publishConfig": {
    "registry": "https://registry.npmjs.org",
    "access": "public"
  },
  "bin": {
    "contracts": "dist/cli/index.js",
    "contracts-cli": "dist/cli/contracts-cli.js"
  },
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./schemas": {
      "types": "./dist/schemas.d.ts",
      "import": "./dist/schemas.js"
    },
    "./deployment": {
      "types": "./dist/deployment/index.d.ts",
      "import": "./dist/deployment/index.js"
    },
    "./deployment/artifacts": {
      "types": "./dist/deployment-artifacts.d.ts",
      "import": "./dist/deployment-artifacts.js"
    },
    "./deployment/artifacts/*": "./generated/deployment/v1/*",
    "./validators": {
      "types": "./dist/validators.d.ts",
      "import": "./dist/validators.js"
    },
    "./safe-read": {
      "types": "./dist/safe-read.d.ts",
      "import": "./dist/safe-read.js"
    },
    "./safe-read/exec": {
      "types": "./dist/safe-read-exec.d.ts",
      "import": "./dist/safe-read-exec.js"
    },
    "./no-cloud": {
      "types": "./dist/no-cloud.d.ts",
      "import": "./dist/no-cloud.js"
    },
    "./server-backend": {
      "types": "./dist/server-backend.d.ts",
      "import": "./dist/server-backend.js"
    },
    "./service-contract": {
      "types": "./dist/service-contract.d.ts",
      "import": "./dist/service-contract.js"
    },
    "./secure-local-store": {
      "types": "./dist/secure-local-store.d.ts",
      "import": "./dist/secure-local-store.js"
    },
    "./conformance": {
      "types": "./dist/conformance.d.ts",
      "import": "./dist/conformance.js"
    },
    "./vendor-kit": {
      "types": "./dist/kit/generate.d.ts",
      "import": "./dist/kit/generate.js"
    },
    "./auth": {
      "types": "./dist/auth/index.d.ts",
      "import": "./dist/auth/index.js"
    },
    "./sdk": {
      "types": "./dist/sdk/generate.d.ts",
      "import": "./dist/sdk/generate.js"
    },
    "./client": {
      "types": "./dist/client/transport.d.ts",
      "import": "./dist/client/transport.js"
    },
    "./client/storage": {
      "types": "./dist/client/storage.d.ts",
      "import": "./dist/client/storage.js"
    },
    "./todos": {
      "types": "./dist/todos/index.d.ts",
      "import": "./dist/todos/index.js"
    },
    "./todos/artifacts/*": "./generated/todos/v1/*",
    "./hasna.contract.schema.json": "./dist/hasna.contract.schema.json",
    "./artifact-scan": {
      "types": "./dist/artifact-scan.d.ts",
      "import": "./dist/artifact-scan.js"
    }
  },
  "files": [
    "dist",
    "src/kit",
    "src/hasna.contract.schema.json",
    "docs",
    "examples",
    "templates/adopter",
    "generated/todos/v1",
    "generated/deployment/v1",
    "CONTRACT.md",
    "docker-compose.yml",
    "hasna.contract.json",
    "README.md",
    "LICENSE"
  ],
  "scripts": {
    "build": "bun run deployment:check && bun run todos:check && rm -rf dist && bun build src/index.ts src/schemas.ts src/validators.ts src/safe-read.ts src/safe-read-exec.ts src/deployment.ts src/deployment/index.ts src/deployment-artifacts.ts src/no-cloud.ts src/server-backend.ts src/service-contract.ts src/secure-local-store.ts src/conformance.ts src/artifact-scan.ts src/kit/generate.ts src/auth/index.ts src/sdk/generate.ts src/client/transport.ts src/client/storage.ts --root src --outdir dist --target bun && bun build src/todos/index.ts --root src --outdir dist --target bun --packages external && bun build src/cli/index.ts --outdir dist/cli --target bun && cp src/cli/contracts-cli.ts dist/cli/contracts-cli.js && cp src/hasna.contract.schema.json dist/hasna.contract.schema.json && tsc -p tsconfig.build.json --emitDeclarationOnly --outDir dist",
    "typecheck": "tsc --noEmit",
    "test": "bun test --timeout 120000",
    "lint": "tsc --noEmit",
    "conformance": "bun run src/cli/index.ts conformance examples",
    "verify:release": "bun run todos:hygiene && bun run typecheck && bun run test && bun run conformance && rm -rf dist && bun run build && bun run src/cli/index.ts repo-conformance . && bun run smoke:dist && bun run smoke:todos-pack && bun run pack:check && bun run scan:artifact",
    "smoke:dist": "bun scripts/smoke-dist.ts",
    "smoke:todos-pack": "bun scripts/smoke-todos-pack.ts",
    "pack:check": "bun pm pack --dry-run --ignore-scripts",
    "todos:generate": "bun scripts/generate-todos-contract.ts",
    "todos:check": "bun scripts/generate-todos-contract.ts --check",
    "deployment:generate": "bun scripts/generate-deployment-contract.ts",
    "deployment:check": "bun scripts/generate-deployment-contract.ts --check",
    "todos:hygiene": "bun scripts/check-todos-text-hygiene.ts",
    "dev:cli": "bun run src/cli/index.ts",
    "prepack": "bun run verify:release",
    "prepublishOnly": "bun run verify:release",
    "scan:artifact": "bun scripts/scan-artifact.ts",
    "build:js": "bun run deployment:check && bun run todos:check && rm -rf dist && bun build src/index.ts src/schemas.ts src/validators.ts src/safe-read.ts src/safe-read-exec.ts src/deployment.ts src/deployment/index.ts src/deployment-artifacts.ts src/no-cloud.ts src/server-backend.ts src/service-contract.ts src/secure-local-store.ts src/conformance.ts src/artifact-scan.ts src/kit/generate.ts src/auth/index.ts src/sdk/generate.ts src/client/transport.ts src/client/storage.ts --root src --outdir dist --target bun && bun build src/todos/index.ts --root src --outdir dist --target bun --packages external && bun build src/cli/index.ts --outdir dist/cli --target bun && cp src/cli/contracts-cli.ts dist/cli/contracts-cli.js && cp src/hasna.contract.schema.json dist/hasna.contract.schema.json"
  },
  "keywords": [
    "contracts",
    "schemas",
    "agents",
    "zod",
    "json-schema",
    "hasna"
  ],
  "engines": {
    "bun": ">=1.0.0"
  },
  "dependencies": {
    "commander": "^13.1.0",
    "zod": "^3.25.76",
    "zod-to-json-schema": "^3.24.6"
  },
  "devDependencies": {
    "@types/bun": "^1.2.4",
    "@types/node": "^26.0.0",
    "@types/pg": "^8.11.10",
    "pg": "^8.13.1",
    "typescript": "^5.7.3"
  },
  "peerDependencies": {
    "@hasna/secrets": "0.3.10"
  }
}
