{"_id":"@agent-ventures/core","_rev":"3-547d434d1e9b4cd303c4097aa1648c4c","name":"@agent-ventures/core","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@agent-ventures/core","version":"0.1.0","keywords":["agentventures","eip712","merkle","cryptography","viem"],"license":"MIT","_id":"@agent-ventures/core@0.1.0","maintainers":[{"name":"keyrxng","email":"keyrxng@proton.me"}],"homepage":"https://github.com/AgentVentures/agentventures-core-ts#readme","bugs":{"url":"https://github.com/AgentVentures/agentventures-core-ts/issues"},"dist":{"shasum":"6b1b202e9e5809e9e35e354fcf5d033aa2a99947","tarball":"https://registry.npmjs.org/@agent-ventures/core/-/core-0.1.0.tgz","fileCount":33,"integrity":"sha512-kZqtPxtwVtjmD9PuX77uKuFScO89eM65AhW40tTIiYL+f04IjgJMaGrD9JuPDL/KhC2xGnYqqwy8eh6J27Sd+g==","signatures":[{"sig":"MEQCICyWKi3Y/qhjrlBpkgfLulcKklUOLJtBMbeHiPqRjH1PAiBZCgcO2Kvhy4ImutJUTOHmNff/Lp9iZlh6x9NWnwRkhA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48012},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f03b99c8a6dc015dc06f3356f95716610e9c7161","scripts":{"test":"bun test --preload ./tests/setup.ts","build":"bun build index.ts --outdir=dist --format=esm","format":"prettier --write .","typecheck":"tsc --noEmit","test:watch":"bun test --preload ./tests/setup.ts --watch"},"_npmUser":{"name":"keyrxng","email":"keyrxng@proton.me"},"repository":{"url":"git+https://github.com/AgentVentures/agentventures-core-ts.git","type":"git"},"_npmVersion":"11.6.2","description":"AgentVentures core utilities - EIP712, Merkle trees, canonicalization","directories":{},"_nodeVersion":"25.2.1","dependencies":{"viem":"^2.9.26"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.9","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1772052933765_0.6587294166484379","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agent-ventures/core","version":"0.1.1","keywords":["agentventures","eip712","merkle","cryptography","viem"],"license":"MIT","_id":"@agent-ventures/core@0.1.1","maintainers":[{"name":"keyrxng","email":"keyrxng@proton.me"}],"homepage":"https://github.com/AgentVentures/agentventures-core-ts#readme","bugs":{"url":"https://github.com/AgentVentures/agentventures-core-ts/issues"},"dist":{"shasum":"c0aa0d75439cb604dfe758ec6908a4bce20e233c","tarball":"https://registry.npmjs.org/@agent-ventures/core/-/core-0.1.1.tgz","fileCount":2,"integrity":"sha512-J3f0Ow2/vKkFZ97oJwg5JqWePzJhUbav8N2n+me7SHn5tix57JEcTTidka4vddn/dVG4Qd2DktkMLHxNavsAIQ==","signatures":[{"sig":"MEUCIC9mpdbGdb4Un3f0DSiB63r9RKwaKBvOTEYWHp5FgVDmAiEAuMdri+N3oztsvqjziUIj5hdDSsjBPp/p/gNCgr/gqEs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2747},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f03b99c8a6dc015dc06f3356f95716610e9c7161","scripts":{"test":"bun test --preload ./tests/setup.ts","build":"bun build index.ts --outdir=dist --format=esm","format":"prettier --write .","typecheck":"tsc --noEmit","test:watch":"bun test --preload ./tests/setup.ts --watch"},"_npmUser":{"name":"keyrxng","email":"keyrxng@proton.me"},"repository":{"url":"git+https://github.com/AgentVentures/agentventures-core-ts.git","type":"git"},"_npmVersion":"11.6.2","description":"AgentVentures core utilities - EIP712, Merkle trees, canonicalization","directories":{},"_nodeVersion":"25.2.1","dependencies":{"viem":"^2.9.26"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.3.9","typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.1_1772053207481_0.8384262439250312","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agent-ventures/core","version":"0.1.2","description":"AgentVentures core utilities - EIP712, Merkle trees, canonicalization","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"bun build index.ts --outdir=dist --format=esm","test":"bun test --preload ./tests/setup.ts","test:watch":"bun test --preload ./tests/setup.ts --watch","format":"prettier --write .","typecheck":"tsc --noEmit"},"dependencies":{"viem":"^2.9.26"},"devDependencies":{"@types/bun":"^1.3.9","typescript":"^5.0.0"},"keywords":["agentventures","eip712","merkle","cryptography","viem"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/AgentVentures/agentventures-core-ts.git"},"publishConfig":{"access":"public"},"gitHead":"f03b99c8a6dc015dc06f3356f95716610e9c7161","_id":"@agent-ventures/core@0.1.2","bugs":{"url":"https://github.com/AgentVentures/agentventures-core-ts/issues"},"homepage":"https://github.com/AgentVentures/agentventures-core-ts#readme","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-PerCPvnrrrWnqM4VZUpH2hJxGEJ6804FsEJL98xQcptnRsw2hIyldMkEcuzlsTvtrkFDlhBbi6vdR9v/ITXWJw==","shasum":"46792f74599b4a92688afdd7fc0340186628e29d","tarball":"https://registry.npmjs.org/@agent-ventures/core/-/core-0.1.2.tgz","fileCount":6,"unpackedSize":54541,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDu2HDUOo9UB7Yam5IFxSwxYROzjkHkVxZ8tAu8z8YOwAIgY+RT2mlNne+0QjB5pfyIN2Iotf9tEI8d4UEhrmcuRrg="}]},"_npmUser":{"name":"keyrxng","email":"keyrxng@proton.me"},"directories":{},"maintainers":[{"name":"keyrxng","email":"keyrxng@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.1.2_1772053430484_0.07261174693683459"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-25T20:55:33.693Z","modified":"2026-02-25T21:03:50.820Z","0.1.0":"2026-02-25T20:55:33.921Z","0.1.1":"2026-02-25T21:00:07.638Z","0.1.2":"2026-02-25T21:03:50.683Z"},"bugs":{"url":"https://github.com/AgentVentures/agentventures-core-ts/issues"},"license":"MIT","homepage":"https://github.com/AgentVentures/agentventures-core-ts#readme","keywords":["agentventures","eip712","merkle","cryptography","viem"],"repository":{"type":"git","url":"git+https://github.com/AgentVentures/agentventures-core-ts.git"},"description":"AgentVentures core utilities - EIP712, Merkle trees, canonicalization","maintainers":[{"name":"keyrxng","email":"keyrxng@proton.me"}],"readme":"# agentventures-core-ts\n\nShared kernel utilities for AgentVentures' Deno services. This repository\nexposes deterministic building blocks so every service paginating on the\nprotocol has identical behavior for canonicalization, hashing, and typed data\nconstruction.\n\n## How to use\n\n### Canonical JSON + termsHash\n\n```ts\nimport { canonicalizeJson, termsHash } from \"./src/mod.ts\";\n\nconst ventureCard = {\n  venture: { id: \"alpha\", name: \"AgentVentures MVP\" },\n  slots: [\n    { slot: 0, role: \"leader\", shareBps: 5000 },\n    { slot: 1, role: \"engineer\", shareBps: 3000 },\n  ],\n  economics: {\n    chainId: 100,\n    usdc: \"0xddafbb505ad214d7b80b1f830fccc89b60fb7a83\",\n  },\n};\n\nconst canonical = canonicalizeJson(ventureCard);\nconst hash = termsHash(ventureCard);\nconsole.log(canonical, hash);\n```\n\n### EIP-712 Join data\n\n```ts\nimport { buildJoinVentureTypedData } from \"./src/eip712/join.ts\";\n\nconst message = {\n  ventureId: \"0x1234...\",\n  termsHash: hash,\n  agentId: \"0x5678...\",\n  payoutAddress: \"0xabc...\",\n  slotId: 1,\n  shareBps: 3000,\n  deadline: 1707312000,\n  salt: \"0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef\",\n};\n\nconst typedData = buildJoinVentureTypedData(message);\n```\n\n### UUIDs & venture keys\n\n```ts\nimport { uuidToBytes32, ventureKeyFromUuid } from \"./src/ids.ts\";\n\nconst bytes = uuidToBytes32(\"123e4567-e89b-12d3-a456-426655440000\");\nconst ventureKey = ventureKeyFromUuid(\"123e4567-e89b-12d3-a456-426655440000\");\n```\n\n### Merkle leaves\n\n```ts\nimport { leaf } from \"./src/merkle/leaf.ts\";\n\nconst proofLeaf = leaf(\n  0,\n  \"0x0000000000000000000000000000000000000001\",\n  1_000_000_000,\n);\n```\n\n## Testing\n\nRun the standard task suite:\n\n```sh\ndeno fmt\ndeno lint\ndeno test\n```\n","readmeFilename":"README.md"}