{"_id":"@antenehtessema/dasc-core","name":"@antenehtessema/dasc-core","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@antenehtessema/dasc-core","version":"1.0.0","type":"module","description":"Deterministic Agentic Safety Controller (DASC) for Node.js","keywords":["ai","agents","safety","middleware","langchain","langgraph","crewai","autogen","determinism","governance"],"author":{"name":"Anteneh T. Tessema"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Anteneh-T-Tessema/dasc-core.git"},"main":"src/index.ts","bin":{"dasc-core":"src/cli.ts"},"scripts":{"start":"tsx src/index.ts","test":"vitest run"},"dependencies":{"fastify":"^5.0.0","@fastify/cors":"^10.0.0","better-sqlite3":"^11.0.0","commander":"^12.0.0","uuid":"^10.0.0","langchain":"^0.3.0","@langchain/core":"^0.3.0","@langchain/openai":"latest"},"devDependencies":{"@types/better-sqlite3":"^7.6.11","@types/node":"^22.0.0","@types/uuid":"^10.0.0","typescript":"^5.5.0","tsx":"^4.16.0","vitest":"^2.0.0"},"_id":"@antenehtessema/dasc-core@1.0.0","gitHead":"23a26b9c73c980c7f9cd7dee1ccb64b507adbdb8","bugs":{"url":"https://github.com/Anteneh-T-Tessema/dasc-core/issues"},"homepage":"https://github.com/Anteneh-T-Tessema/dasc-core#readme","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-JboAQIAdbMN/SI4NFznif9ogeWF1J0OzcHGes8AuSThQTWT4f7fMgoeVv/0JNh1UZhikvzETuArpMLMSaSdnfQ==","shasum":"35aa7b94f43a051e85aeebbd7db6abb2b252747c","tarball":"https://registry.npmjs.org/@antenehtessema/dasc-core/-/dasc-core-1.0.0.tgz","fileCount":21,"unpackedSize":28579,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAZl+xi2J4gS/YYthSwd0fz3jPXYEe45cYjOYa6cLiNFAiBMe6gd2C5mAAGVlOdaOqQzeojHvNEeOrRCDFDYDq7grg=="}]},"_npmUser":{"name":"antenehtessema","email":"antenehcodding@gmail.com"},"directories":{},"maintainers":[{"name":"antenehtessema","email":"antenehcodding@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dasc-core_1.0.0_1777670455025_0.09803107501160868"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-01T21:20:54.824Z","1.0.0":"2026-05-01T21:20:55.176Z","modified":"2026-05-01T21:20:55.342Z"},"maintainers":[{"name":"antenehtessema","email":"antenehcodding@gmail.com"}],"description":"Deterministic Agentic Safety Controller (DASC) for Node.js","homepage":"https://github.com/Anteneh-T-Tessema/dasc-core#readme","keywords":["ai","agents","safety","middleware","langchain","langgraph","crewai","autogen","determinism","governance"],"repository":{"type":"git","url":"git+https://github.com/Anteneh-T-Tessema/dasc-core.git"},"author":{"name":"Anteneh T. Tessema"},"bugs":{"url":"https://github.com/Anteneh-T-Tessema/dasc-core/issues"},"license":"MIT","readme":"# DASC-Core Node.js SDK\n\n**Deterministic Agentic Safety Controller (DASC) for TypeScript & Node.js.**\n\n`@antenehtessema/dasc-core` is the official TypeScript implementation of the DASC safety middleware. It provides a deterministic commitment boundary for AI agents, ensuring that cognitive hallucinations never become committed system faults.\n\n## 🚀 Quick Start\n\n```bash\nnpm install @antenehtessema/dasc-core\n```\n\n### Basic Usage\n\n```typescript\nimport { Kernel } from '@antenehtessema/dasc-core';\n\nconst kernel = new Kernel();\n\nconst intent = {\n  intent_id: \"task-001\",\n  actor_agent: \"researcher\",\n  action_type: \"FILE_WRITE\",\n  risk_tier: 2,\n  evidence: [{ source_type: \"trusted\" }],\n  payload: { path: \"report.md\", content: \"...\" }\n};\n\nconst decision = kernel.evaluate(intent);\n\nif (decision.status === 'COMMIT') {\n  console.log(\"Action Authorized!\");\n} else {\n  console.error(\"Action Rejected:\", decision.reason_codes);\n}\n```\n\n## 🖥 CLI\n\nDASC-Core includes a professional CLI for ledger inspection:\n\n```bash\n# Inspect the audit trail\nnpx dasc-core inspect --limit 20\n\n# Generate a hash for Semantic OCC\nnpx dasc-core hash config.json\n```\n\n## 📄 License\n\nMIT © 2026 Anteneh T. Tessema\n","readmeFilename":"README.md","_rev":"1-defcdb4751087b9594d656f6bdb2ed6c"}