{"_id":"@agento-nexus/core","_rev":"4-a6b9303b4fe30fedbf03c186c3768f35","name":"@agento-nexus/core","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@agento-nexus/core","version":"0.1.0","license":"UNLICENSED","_id":"@agento-nexus/core@0.1.0","maintainers":[{"name":"habitusnet","email":"devteam1@habitusnet.ch"}],"homepage":"https://github.com/agento-nexus/core#readme","bugs":{"url":"https://github.com/agento-nexus/core/issues"},"dist":{"shasum":"58c80133abc97a6a8cff19d53384b028aa529fc3","tarball":"https://registry.npmjs.org/@agento-nexus/core/-/core-0.1.0.tgz","fileCount":44,"integrity":"sha512-4UUQGBrghgnyPVwYTzZztHYQI+aFLqi5ekRisEiycvDHqmCYj6dKPcvOEAuZJRAf3IG8ZDYUX5pLmIyiiZl9Hw==","signatures":[{"sig":"MEUCIGSgSZes4S/wET6dOgSAwyFp4W8LD2qOb1ZbxFFbNDc2AiEAjaR02qn1QgLRWfRShrrRVos/FqT7y/2BrhjWf8/o9fw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":267957},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./spec":{"types":"./dist/spec/index.d.ts","import":"./dist/spec/index.js"},"./audit":{"types":"./dist/audit/index.d.ts","import":"./dist/audit/index.js"},"./router":{"types":"./dist/router/index.d.ts","import":"./dist/router/index.js"},"./runtime":{"types":"./dist/runtime/index.d.ts","import":"./dist/runtime/index.js"},"./verifier":{"types":"./dist/verifier/index.d.ts","import":"./dist/verifier/index.js"}},"scripts":{"dev":"tsup --watch","lint":"tsc --noEmit","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"habitusnet","email":"devteam1@habitusnet.ch"},"repository":{"url":"git+https://github.com/agento-nexus/core.git","type":"git"},"_npmVersion":"11.6.0","description":"Agento Nexus meta-system core — venture spec, coord runtime, cost-class router, verifier. Shared by platform/ and sdk/.","directories":{},"_nodeVersion":"24.9.0","dependencies":{"zod":"^4.4.2","smol-toml":"^1.6.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^3.0.0","fast-check":"^4.7.0","typescript":"^5.7.3","@types/node":"^22.12.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1777899531303_0.9046335506005871","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agento-nexus/core","version":"0.1.1","license":"UNLICENSED","_id":"@agento-nexus/core@0.1.1","maintainers":[{"name":"habitusnet","email":"devteam1@habitusnet.ch"}],"homepage":"https://github.com/agento-nexus/core#readme","bugs":{"url":"https://github.com/agento-nexus/core/issues"},"dist":{"shasum":"a5907ff200f7508611973abd616f4d5170d5e9de","tarball":"https://registry.npmjs.org/@agento-nexus/core/-/core-0.1.1.tgz","fileCount":44,"integrity":"sha512-Mv+EyRbqL23OSOIg9PPrhkMbgduHz41IATwRjw45L0hG4kJ4/99EDe9xiz7zxp+4hcZxLSzY5dnHJsSjoshnGg==","signatures":[{"sig":"MEUCIQCa7sAAjG4Em4xJoDzIbrYqp4t+DM9bHRe4JNE13xIVpQIgSDbqPPAZLPAOMd3i/DFy8zC7RcvHZnlpvgFTW3JJdgc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":267957},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./spec":{"types":"./dist/spec/index.d.ts","import":"./dist/spec/index.js"},"./audit":{"types":"./dist/audit/index.d.ts","import":"./dist/audit/index.js"},"./router":{"types":"./dist/router/index.d.ts","import":"./dist/router/index.js"},"./runtime":{"types":"./dist/runtime/index.d.ts","import":"./dist/runtime/index.js"},"./verifier":{"types":"./dist/verifier/index.d.ts","import":"./dist/verifier/index.js"}},"scripts":{"dev":"tsup --watch","lint":"tsc --noEmit","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"habitusnet","email":"devteam1@habitusnet.ch"},"repository":{"url":"git+https://github.com/agento-nexus/core.git","type":"git"},"_npmVersion":"10.9.7","description":"Agento Nexus meta-system core — venture spec, coord runtime, cost-class router, verifier. Shared by platform/ and sdk/.","directories":{},"_nodeVersion":"22.22.2","dependencies":{"zod":"^4.4.2","smol-toml":"^1.6.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^3.0.0","fast-check":"^4.7.0","typescript":"^5.7.3","@types/node":"^22.12.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.1_1777899587106_0.7381239761922282","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agento-nexus/core","version":"0.1.2","license":"UNLICENSED","_id":"@agento-nexus/core@0.1.2","maintainers":[{"name":"habitusnet","email":"devteam1@habitusnet.ch"}],"homepage":"https://github.com/agento-nexus/core#readme","bugs":{"url":"https://github.com/agento-nexus/core/issues"},"dist":{"shasum":"1ee0815ea83c6444b99343374f943201dc700d4c","tarball":"https://registry.npmjs.org/@agento-nexus/core/-/core-0.1.2.tgz","fileCount":44,"integrity":"sha512-vuwdDHfqWmVOZqXhYf95gpVFq539Y3eULXfQHLBoSgBxoqjGVLAwAO+YsQUfeJ4ZYkY9zpDb0kQ1untsUwKP3Q==","signatures":[{"sig":"MEUCIFbLrGT+/r93gR+huQgszZRXYIAFl99Zi2NdT0AkuWFeAiEAq0H2MCIcrZcVujwYsaLP3ftyP01zoi76ZvlZ5Lb5vHg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":267956},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./spec":{"types":"./dist/spec/index.d.ts","import":"./dist/spec/index.js"},"./audit":{"types":"./dist/audit/index.d.ts","import":"./dist/audit/index.js"},"./router":{"types":"./dist/router/index.d.ts","import":"./dist/router/index.js"},"./runtime":{"types":"./dist/runtime/index.d.ts","import":"./dist/runtime/index.js"},"./verifier":{"types":"./dist/verifier/index.d.ts","import":"./dist/verifier/index.js"}},"scripts":{"dev":"tsup --watch","lint":"tsc --noEmit","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"habitusnet","email":"devteam1@habitusnet.ch"},"repository":{"url":"git+https://github.com/agento-nexus/core.git","type":"git"},"_npmVersion":"10.9.7","description":"Agento Nexus meta-system core — venture spec, coord runtime, cost-class router, verifier. Shared by platform/ and sdk/.","directories":{},"_nodeVersion":"22.22.2","dependencies":{"zod":"^4.4.2","smol-toml":"^1.6.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^3.0.0","fast-check":"^4.7.0","typescript":"^5.7.3","@types/node":"^22.12.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.2_1777899677835_0.9686075294165151","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@agento-nexus/core","version":"0.2.0","description":"Agento Nexus meta-system core — venture spec, coord runtime, cost-class router, verifier. Shared by platform/ and sdk/.","type":"module","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/agento-nexus/core.git"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./spec":{"import":"./dist/spec/index.js","types":"./dist/spec/index.d.ts"},"./runtime":{"import":"./dist/runtime/index.js","types":"./dist/runtime/index.d.ts"},"./router":{"import":"./dist/router/index.js","types":"./dist/router/index.d.ts"},"./verifier":{"import":"./dist/verifier/index.js","types":"./dist/verifier/index.d.ts"},"./audit":{"import":"./dist/audit/index.js","types":"./dist/audit/index.d.ts"}},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit","test":"vitest run","test:watch":"vitest","lint":"tsc --noEmit"},"devDependencies":{"@types/node":"^22.12.0","fast-check":"^4.7.0","tsup":"^8.4.0","typescript":"^5.7.3","vitest":"^3.0.0"},"license":"UNLICENSED","engines":{"node":">=20"},"dependencies":{"smol-toml":"^1.6.1","zod":"^4.4.2"},"_id":"@agento-nexus/core@0.2.0","bugs":{"url":"https://github.com/agento-nexus/core/issues"},"homepage":"https://github.com/agento-nexus/core#readme","_nodeVersion":"24.9.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-34elJ0zIECwx0LPdHVa/MEA2Sb8Ou36zOmg5IirLLENnuYZWZaQBhQ/RGaKvMD64jHl9rcTQiaLPM6F+NjkUaw==","shasum":"52bcffa4743dded158076f95dc0ffe35ddff46c2","tarball":"https://registry.npmjs.org/@agento-nexus/core/-/core-0.2.0.tgz","fileCount":44,"unpackedSize":284083,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCwtopEcs0S09fglmzAWGmC5ugjH2/9IV8wuLSTFELa+QIgIo2N+guD9ZL6lc/Y1qkFAVohDTYTCiHnwmqhwWoofR0="}]},"_npmUser":{"name":"habitusnet","email":"devteam1@habitusnet.ch"},"directories":{},"maintainers":[{"name":"habitusnet","email":"devteam1@habitusnet.ch"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.2.0_1777951991507_0.8202297932247724"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-04T12:58:51.219Z","modified":"2026-05-05T03:33:11.792Z","0.1.0":"2026-05-04T12:58:51.477Z","0.1.1":"2026-05-04T12:59:47.254Z","0.1.2":"2026-05-04T13:01:18.006Z","0.2.0":"2026-05-05T03:33:11.640Z"},"bugs":{"url":"https://github.com/agento-nexus/core/issues"},"license":"UNLICENSED","homepage":"https://github.com/agento-nexus/core#readme","repository":{"type":"git","url":"git+https://github.com/agento-nexus/core.git"},"description":"Agento Nexus meta-system core — venture spec, coord runtime, cost-class router, verifier. Shared by platform/ and sdk/.","maintainers":[{"name":"habitusnet","email":"devteam1@habitusnet.ch"}],"readme":"# @agento-nexus/core\n\nMeta-system primitives shared by `platform/` and `sdk/`. The core of the Agento Nexus governed venture OS — venture spec contract, coord runtime, cost-class router, verifier, audit projection.\n\nThis package is **not** a customer-facing SDK. It is the internal core that both the platform's web app and the public `@agento-nexus/sdk` consume. Customer integrations should depend on `@agento-nexus/sdk`, not on this package directly.\n\n## Status\n\n`v0.0.1` — scaffold only. Constructs land per the implementation map:\n\n- S3 → `src/spec/` — venture-spec contract (TOML loader, Zod schemas, round-trip property tests). Construct #1. **NEXT.**\n- S5 → `src/verifier/` — `DirectiveArtifactContract` + Verifier runtime. Construct #4.\n- S6 → `src/router/` — cost-class router (io-only / repo-write / network-call / sandbox-required). Construct #3.\n- S7 → `src/runtime/cheap-path/` — gh / git / file / http executors. Construct #3 implementation.\n- S8 → `src/runtime/runDirective.ts` — façade composing deliberation → governance → verifier → execution. Construct #2.\n- S9 → `src/audit/` — JSONL projection of `AuditLog` + `DecisionOutcome`.\n\nSee `scopecraft/designs/meta-system-implementation-map.md` (r3) and `scopecraft/designs/orchestration-audit.md` for the full design.\n\n## Dependency injection contract\n\nEvery primitive accepts dependencies at construction. No module imports `@/lib/db`, `@/lib/auth`, or other Next.js-aliased paths — those couplings live in the `platform/` consumer.\n\n```ts\nimport { PrismaClient } from \"@prisma/client\";\nimport { createRuntime } from \"@agento-nexus/core/runtime\";\n\nconst runtime = createRuntime({\n  db,           // PrismaClient instance\n  audit,        // (event: AuditEvent) => Promise<void>\n  resolveKey,   // (ref: KeyRef) => Promise<ResolvedKey>\n  // ...other capabilities as constructs land\n});\n```\n\nThis is the discipline that makes the same code run inside the platform's Next.js app **and** as a standalone runtime invoked by the SDK CLI for venture #0 (Agento Nexus running itself).\n\n## Install (from a sibling repo)\n\nUntil this package is published, consumers link locally:\n\n```jsonc\n// platform/package.json or sdk/package.json\n{\n  \"dependencies\": {\n    \"@agento-nexus/core\": \"file:../core\"\n  }\n}\n```\n\nThen in the sibling repo: `npm install` (or `pnpm install` / `bun install`). The `file:` link pulls the build output from `core/dist/` — run `npm run build` in `core/` first.\n\n## Build & test\n\n```bash\nnpm install\nnpm run build      # tsup → dist/\nnpm run typecheck  # tsc --noEmit\nnpm test           # vitest\n```\n\nESM-only. Node ≥ 20. TypeScript 5+.\n\n## Related\n\n- `scopecraft/designs/meta-system-implementation-map.md` — the architecture\n- `scopecraft/designs/orchestration-audit.md` — what already exists in `platform/src/lib/`\n- `sdk/issues/5` — pluggable runtime/toolset abstraction (adjacent, not blocking)\n","readmeFilename":"README.md"}