{"_id":"@ainetwork/ain-ork","_rev":"4-02ce12d36878a17e0cccfeeb834f1e51","name":"@ainetwork/ain-ork","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@ainetwork/ain-ork","version":"0.1.0","_id":"@ainetwork/ain-ork@0.1.0","maintainers":[{"name":"dev_ainetwork","email":"dev@ainetwork.ai"}],"dist":{"shasum":"e196bc8fe973c7bab43c06d330aae908391458b2","tarball":"https://registry.npmjs.org/@ainetwork/ain-ork/-/ain-ork-0.1.0.tgz","fileCount":54,"integrity":"sha512-D5auowfQb2J3uoXKVH6IZHFTDlR00xsV2N0XgT+cgxlLlJ+aaQba3AGKAa4plOD8Vz1ysF1cx2zgS1/7UrnhzQ==","signatures":[{"sig":"MEUCIQD+6ytHmelE8bZ4HPICvVL1cgfByTqUHvAqa5ujSD7JAgIgf/U71g0j7/CU26eM9A7lnLlsydMEVSqRq3yghYeDldY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":438150},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./mcp":{"types":"./dist/mcp/index.d.ts","import":"./dist/mcp/index.js"},"./package.json":"./package.json"},"gitHead":"626c6bbc49a4138f2f2f3ee923a1774fde9ba279","scripts":{"test":"node --test --experimental-strip-types --loader ./tests/loader.mjs tests/**/*.test.ts","build":"tsc -b","prepack":"tsc -b","typecheck":"tsc -b --pretty false"},"_npmUser":{"name":"dev_ainetwork","email":"dev@ainetwork.ai"},"_npmVersion":"11.12.1","description":"Ontology-based deterministic reasoning toolkit.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^4.4.3","mongodb":"^6.20.0","@modelcontextprotocol/sdk":"^1.17.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/ain-ork_0.1.0_1780364640610_0.7547951019788386","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@ainetwork/ain-ork","version":"0.1.1","_id":"@ainetwork/ain-ork@0.1.1","maintainers":[{"name":"dev_ainetwork","email":"dev@ainetwork.ai"}],"dist":{"shasum":"40a1f38efad8dc2898577b36bf20ef34ff2b897e","tarball":"https://registry.npmjs.org/@ainetwork/ain-ork/-/ain-ork-0.1.1.tgz","fileCount":54,"integrity":"sha512-3mWWIpOyYqdIBVaBrTjP+31P9jMfIoqnT7CvbpHX/S68BfI9aXENDztLdhTAdVEI4v98tYwFoYPkVW76XZQn+w==","signatures":[{"sig":"MEUCIQCv8C7ylMNRiQOpA5FMeepwKXN8vqsIDAJ99f+RqVyI4wIgBFEEZ0orNX4U2/qaxEddJLrkZb7h0N893lWRNPIB/k0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":439196},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./mcp":{"types":"./dist/mcp/index.d.ts","import":"./dist/mcp/index.js"},"./package.json":"./package.json"},"gitHead":"61e93709ed3d81cb93d011eee724a2a9c8a36838","scripts":{"test":"node --test --experimental-strip-types --loader ./tests/loader.mjs tests/**/*.test.ts","build":"tsc -b","prepack":"tsc -b","typecheck":"tsc -b --pretty false"},"_npmUser":{"name":"dev_ainetwork","email":"dev@ainetwork.ai"},"_npmVersion":"11.12.1","description":"Ontology-based deterministic reasoning toolkit.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^4.4.3","mongodb":"^6.20.0","@modelcontextprotocol/sdk":"^1.17.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/ain-ork_0.1.1_1780374061211_0.6831290516247319","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@ainetwork/ain-ork","version":"0.1.2","_id":"@ainetwork/ain-ork@0.1.2","maintainers":[{"name":"dev_ainetwork","email":"dev@ainetwork.ai"}],"dist":{"shasum":"d500deb845a724529d6348f2d1dd2d9c1ef5c873","tarball":"https://registry.npmjs.org/@ainetwork/ain-ork/-/ain-ork-0.1.2.tgz","fileCount":54,"integrity":"sha512-5RbmMtL3Tt5sWYx9ZjVn9NAU0hzQUarc2EFsHxrgkqzdDK/+nLd9QJFOJxWhszGaeIuh5GtcWtO8Cqe8b5XOsQ==","signatures":[{"sig":"MEUCIQCJ7+aF4Y3iIWBfrUpgoNxm4iRy8yniy8iTMLR1rI4xjgIgJtlVhUhZJ3BRWWd3eT+rF29jSqwo05w4fXX4Qnlm19I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":433584},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./mcp":{"types":"./dist/mcp/index.d.ts","import":"./dist/mcp/index.js"},"./package.json":"./package.json"},"gitHead":"e6a4d538d5000c2cb27b614a208b6775c3597fae","scripts":{"test":"node --test --experimental-strip-types --loader ./tests/loader.mjs tests/**/*.test.ts","build":"tsc -b","prepack":"tsc -b","typecheck":"tsc -b --pretty false"},"_npmUser":{"name":"dev_ainetwork","email":"dev@ainetwork.ai"},"_npmVersion":"11.12.1","description":"Ontology-based deterministic reasoning toolkit.","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^4.4.3","mongodb":"^6.20.0","@modelcontextprotocol/sdk":"^1.17.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/ain-ork_0.1.2_1780386603677_0.28447273267748474","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@ainetwork/ain-ork","version":"0.1.3","description":"Ontology-based deterministic reasoning toolkit.","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./mcp":{"types":"./dist/mcp/index.d.ts","import":"./dist/mcp/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsc -b","typecheck":"tsc -b --pretty false","test":"node --test --experimental-strip-types --loader ./tests/loader.mjs tests/**/*.test.ts","prepack":"tsc -b"},"dependencies":{"@modelcontextprotocol/sdk":"^1.17.1","mongodb":"^6.20.0","zod":"^4.4.3"},"devDependencies":{"@types/node":"^25.6.0","typescript":"^5.8.3"},"publishConfig":{"access":"public"},"gitHead":"2d7ddb09fe2a2da29e0231e2c16194d239322806","_id":"@ainetwork/ain-ork@0.1.3","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-FbhvuIwSUse/SSeXfE2XS2hPOiKGI/GuieJY9NGQ2a16P3vmjRYgblvZGQveKVc3rCgD4eVqMQRFKpsVXdoipA==","shasum":"9c8c7184c5f32f4eb4ab5fbe2f2fcbf157534f11","tarball":"https://registry.npmjs.org/@ainetwork/ain-ork/-/ain-ork-0.1.3.tgz","fileCount":54,"unpackedSize":440283,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDS4xicqOdfRg6oZ31fAkS+0yOJ8vkUDCMR74P5eCt1hAiEA4gf3rOnBAb8N5DiWPwUVIwBLhELDQ91foV9GpVsWXhk="}]},"_npmUser":{"name":"dev_ainetwork","email":"dev@ainetwork.ai"},"directories":{},"maintainers":[{"name":"dev_ainetwork","email":"dev@ainetwork.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ain-ork_0.1.3_1781150597882_0.40628611749249566"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-02T01:44:00.479Z","modified":"2026-06-11T04:03:18.184Z","0.1.0":"2026-06-02T01:44:00.782Z","0.1.1":"2026-06-02T04:21:01.357Z","0.1.2":"2026-06-02T07:50:03.807Z","0.1.3":"2026-06-11T04:03:18.064Z"},"description":"Ontology-based deterministic reasoning toolkit.","maintainers":[{"name":"dev_ainetwork","email":"dev@ainetwork.ai"}],"readme":"# ain-ork\n\n`ain-ork` is a TypeScript toolkit for ontology-based, deterministic reasoning with:\n\n- domain packs\n- ontology-grounded planning\n- baseline strategies\n- rule evaluation\n- reasoning runs\n- MCP tool exposure\n\nThe runtime treats ontology as load-bearing data. Each baseline recipe and rule\nis an asset with an inline ontology `binding`; the reasoner grounds an incoming\nquery against the ontology, expands related fact scopes through concept\nrelations, selects the highest-scoring baseline asset, and evaluates the rule\nassets that apply to the generated plan.\n\nAuthoring shape:\n\n- `ontology` carries `concepts` and `relations` only. Concepts can declare\n  `metricKeys`/`scopeIds` (used to seed the concept closure) and `parentIds`\n  (traversed as `is_a`).\n- `ontology.relations` use `fromConceptId` / `toConceptId`; the closure\n  traverses all outgoing relations from grounded concepts.\n- `baselines: []` is the single source of truth. Each baseline is\n  `{ id, recipe, binding? }`.\n- `rules: []` may carry an inline `binding`. Rules with a binding are filtered\n  by target; rules without a binding always run. The runtime never silently\n  drops an unbound rule.\n\nThe first implementation in this repository focuses on:\n\n- a reusable `core`\n- an ergonomic `sdk`\n- a MongoDB adapter contract\n- an MCP-facing tool layer\n- example domain packs under `examples/`\n\nConsumers can still provide display-only `ui.ontologyGraph` overrides, but the\nsales demo derives its graph from `definition.ontology`, `definition.baselines`,\nand the rules' inline bindings by default.\n\nKey reference:\n\n- [docs/design.md](./docs/design.md) — structure, design philosophy, and ain-ork's position in the broader connector / dashboard / agent stack\n","readmeFilename":"README.md"}