{"_id":"@aimform/compute","_rev":"6-645bbb95642692c0fb03df4a2c88f4c4","name":"@aimform/compute","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"@aimform/compute","version":"0.1.0","keywords":["aimform","compute","sandbox","tools","workflows","agentic","function-calling"],"author":{"name":"Universal Reason LLC"},"license":"MIT","_id":"@aimform/compute@0.1.0","maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"homepage":"https://aimform.com","bugs":{"url":"https://github.com/aimform/compute/issues"},"dist":{"shasum":"fae5f13d3920f557ece8cfc0b5379724543e4b35","tarball":"https://registry.npmjs.org/@aimform/compute/-/compute-0.1.0.tgz","fileCount":3,"integrity":"sha512-eB0RXGG0Xiio+reqRmwp9+oEDP1V8bL9MAWl2IgO3HkgWeePagqDoFw3gCZYZ4HelD47/5r0NbyBDdvDwkvNMA==","signatures":[{"sig":"MEUCIQCBQWwSKMIMwbDQTCd9ewPGMdtRxs8s3rLvMEz586WbIQIgSvO/JtCqvfHjISE/6YR0q0g5Al2lAh3uw+hGrMsEjOY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3871},"type":"module","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"8e4b6ad26b2630e122e40f0d0515b1908d5ffea4","scripts":{"test":"vitest run","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"adamhalasz","email":"mail@adamhalasz.com"},"repository":{"url":"git+https://github.com/aimform/compute.git","type":"git"},"_npmVersion":"11.8.0","description":"Aimform Compute — sandboxed tool execution, agentic actions, and workflow automation.","directories":{},"sideEffects":false,"_nodeVersion":"25.6.0","dependencies":{"@aimform/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@vitest/coverage-istanbul":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/compute_0.1.0_1785277521308_0.688469710748224","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aimform/compute","version":"0.1.1","keywords":["aimform","compute","sandbox","tools","workflows","agentic","function-calling"],"author":{"name":"Universal Reason LLC"},"license":"MIT","_id":"@aimform/compute@0.1.1","maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"homepage":"https://aimform.com","bugs":{"url":"https://github.com/aimform/compute/issues"},"dist":{"shasum":"cb5441dc8d6034e82778a1f3ceac71a92387a251","tarball":"https://registry.npmjs.org/@aimform/compute/-/compute-0.1.1.tgz","fileCount":4,"integrity":"sha512-axxEFyOiXTiaB++FP0zFVIsnjxNwPg/iC0cx16+sQJMcV3E5xdT+VDzR0LO0NomWRh2bBta6xkA3SWyu4G7twg==","signatures":[{"sig":"MEUCIQDwlocgF4y56KQozYH8vDssGw0RuFNYj9WS2hgb04tTtgIgMw0Ue1rpGJBbh7g6eWkyIWNVbgWiY8OZUdZex2pDRRE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6190},"type":"module","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"02568759c105fa9e0db022280c96ecd53c93faeb","scripts":{"test":"vitest run","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"adamhalasz","email":"mail@adamhalasz.com"},"repository":{"url":"git+https://github.com/aimform/compute.git","type":"git"},"_npmVersion":"11.8.0","description":"Aimform Compute — sandboxed tool execution, agentic actions, and workflow automation.","directories":{},"sideEffects":false,"_nodeVersion":"25.6.0","dependencies":{"@aimform/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@vitest/coverage-istanbul":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/compute_0.1.1_1785277690310_0.8815808282577504","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@aimform/compute","version":"0.1.2","keywords":["aimform","compute","sandbox","tools","workflows","agentic","function-calling"],"author":{"name":"Universal Reason LLC"},"license":"MIT","_id":"@aimform/compute@0.1.2","maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"homepage":"https://aimform.com","bugs":{"url":"https://github.com/aimform/compute/issues"},"dist":{"shasum":"65f0df10ea475014f430ca4daa2b617e962a6a97","tarball":"https://registry.npmjs.org/@aimform/compute/-/compute-0.1.2.tgz","fileCount":4,"integrity":"sha512-i+epGMFlWXTpefEFbHlIlqdXRs/qNqj5o9AVSryWUPeDfkTTZ8BGI6o2cmh+VN9F4t10A8yx2xmlHOCMHIoMAg==","signatures":[{"sig":"MEUCIARP2w1pdwPZscr5jIE/8+1BO7kKnAkKk4TMaYnOiGL/AiEAsfioI9HXLFRHNVUP1oieECzE0Wiopey18naDiwPxQgc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6190},"type":"module","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"9990f12c7f2e3a9caf60fa5eacceed8b3ef73f3f","scripts":{"test":"vitest run","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"adamhalasz","email":"mail@adamhalasz.com"},"repository":{"url":"git+https://github.com/aimform/compute.git","type":"git"},"_npmVersion":"11.8.0","description":"Aimform Compute — sandboxed tool execution, agentic actions, and workflow automation.","directories":{},"sideEffects":false,"_nodeVersion":"25.6.0","dependencies":{"@aimform/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@vitest/coverage-istanbul":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/compute_0.1.2_1785277838234_0.30155102187033345","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@aimform/compute","version":"0.2.0","keywords":["aimform","compute","sandbox","tools","workflows","agentic","function-calling"],"author":{"name":"Universal Reason LLC"},"license":"MIT","_id":"@aimform/compute@0.2.0","maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"homepage":"https://aimform.com","bugs":{"url":"https://github.com/aimform/compute/issues"},"dist":{"shasum":"fe73c36945dda2ab28309f57e901e15c934f1d0d","tarball":"https://registry.npmjs.org/@aimform/compute/-/compute-0.2.0.tgz","fileCount":10,"integrity":"sha512-/xrDCWLs0qF4QELiAY2Zj12dOpo2aF4W/28CxeneGRQOeWbKDbSuvcDMdzl8g50r4d35XgLMEBRG19I+e/ijcA==","signatures":[{"sig":"MEYCIQDSf6gyzgFWRw9g3L4vbQ12/s3WHZMu3Hg/eNIzALB5kwIhALEkuQdy+uKjJLARD9kisboJJ8wopC+oPl5oXGeaE4Mk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22160},"type":"module","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"9990f12c7f2e3a9caf60fa5eacceed8b3ef73f3f","scripts":{"test":"vitest run","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"adamhalasz","email":"mail@adamhalasz.com"},"repository":{"url":"git+https://github.com/aimform/compute.git","type":"git"},"_npmVersion":"11.8.0","description":"Aimform Compute — sandboxed tool execution, agentic actions, and workflow automation.","directories":{},"sideEffects":false,"_nodeVersion":"25.6.0","dependencies":{"@aimform/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@vitest/coverage-istanbul":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/compute_0.2.0_1785278300410_0.5960589311297018","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aimform/compute","version":"0.3.0","keywords":["aimform","compute","sandbox","tools","workflows","agentic","function-calling"],"author":{"name":"Universal Reason LLC"},"license":"MIT","_id":"@aimform/compute@0.3.0","maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"homepage":"https://aimform.com","bugs":{"url":"https://github.com/aimform/compute/issues"},"dist":{"shasum":"85295efe05f5770868be723668d9e16da82c33b3","tarball":"https://registry.npmjs.org/@aimform/compute/-/compute-0.3.0.tgz","fileCount":13,"integrity":"sha512-IbZzx6gZ/9QNcvhBZ5QC2kBYjNzlchCp7bYD0La8xPeqiZpsQVJkF+wa15y/tTlw/ENmELybm0ugjk2yUzowxw==","signatures":[{"sig":"MEYCIQC1PiTcdpnFHytCUZ3to4CwgX8tuADWp9HeCBaQJxKIfAIhAM0dfU9UP+TKChB7iFpoZS2e6iTKXVtml2CJov+ELR79","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25714},"type":"module","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"}},"gitHead":"872ffb1aee499058686214f51f9993d16b6a463c","scripts":{"test":"vitest run","typecheck":"tsc --noEmit","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"adamhalasz","email":"mail@adamhalasz.com"},"repository":{"url":"git+https://github.com/aimform/compute.git","type":"git"},"_npmVersion":"11.8.0","description":"Aimform Compute — sandboxed tool execution, agentic actions, and workflow automation.","directories":{},"sideEffects":false,"_nodeVersion":"25.6.0","dependencies":{"@aimform/core":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.0","@vitest/coverage-istanbul":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/compute_0.3.0_1785278548951_0.30968958289651427","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@aimform/compute","version":"0.3.1","description":"Aimform Compute — sandboxed tool execution, agentic actions, and workflow automation.","type":"module","license":"MIT","sideEffects":false,"exports":{".":{"types":"./src/index.ts","import":"./src/index.ts"},"./adapters":{"types":"./src/adapters/index.ts","import":"./src/adapters/index.ts"}},"scripts":{"typecheck":"tsc --noEmit","test":"vitest run","test:coverage":"vitest run --coverage"},"dependencies":{"@aimform/core":"workspace:*"},"peerDependencies":{"react":">=18.0.0"},"peerDependenciesMeta":{"react":{"optional":true}},"devDependencies":{"typescript":"^5.7.0","vitest":"^3.0.0","@vitest/coverage-istanbul":"^3.0.0","@types/react":"^19.0.0","@cloudflare/workers-types":"^4.20250224.0"},"repository":{"type":"git","url":"git+https://github.com/aimform/compute.git"},"keywords":["aimform","compute","sandbox","tools","workflows","agentic","function-calling"],"author":{"name":"Universal Reason LLC"},"homepage":"https://aimform.com","gitHead":"09189504db16f05aa779e00443182aa67a9f9fca","_id":"@aimform/compute@0.3.1","bugs":{"url":"https://github.com/aimform/compute/issues"},"_nodeVersion":"25.6.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-Gzdzr0VwPap+iIBhejWnU5swh4p62jvGtqaWyskaOqi4U1bN0t1KygQZEHiAVl24iiwS7qIEbTsq5gajaFY7CQ==","shasum":"d2629522f22a53893c670a31905d5c2539f0507d","tarball":"https://registry.npmjs.org/@aimform/compute/-/compute-0.3.1.tgz","fileCount":19,"unpackedSize":51407,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCtV7TyPL5DROBWv4gHjbs4mjqbp2nTdDDn1jKVV8UQ4wIhAPr3hWogQj5QvoZOM9oGpzv71rgZ0H3EfYgFWIhgJPHR"}]},"_npmUser":{"name":"adamhalasz","email":"mail@adamhalasz.com"},"directories":{},"maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/compute_0.3.1_1785342994832_0.4998521507718132"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-28T22:25:21.128Z","modified":"2026-07-29T16:36:35.156Z","0.1.0":"2026-07-28T22:25:21.446Z","0.1.1":"2026-07-28T22:28:10.451Z","0.1.2":"2026-07-28T22:30:38.392Z","0.2.0":"2026-07-28T22:38:20.551Z","0.3.0":"2026-07-28T22:42:29.096Z","0.3.1":"2026-07-29T16:36:34.973Z"},"bugs":{"url":"https://github.com/aimform/compute/issues"},"author":{"name":"Universal Reason LLC"},"license":"MIT","homepage":"https://aimform.com","keywords":["aimform","compute","sandbox","tools","workflows","agentic","function-calling"],"repository":{"type":"git","url":"git+https://github.com/aimform/compute.git"},"description":"Aimform Compute — sandboxed tool execution, agentic actions, and workflow automation.","maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"readme":"# @aimform/compute\n\n> Sandboxed tool execution, agentic actions, and workflow automation.\n\n## Install\n\n```sh\nnpm install @aimform/compute @aimform/core\n```\n\n## Usage\n\n```ts\nimport { Compute } from \"@aimform/compute\";\n\n// D1\nconst compute = new Compute({ database: env.DB });\n\n// Platform API\nconst aimform = createAimform({ apiKey: \"af_xxx\" });\nconst compute = new Compute({ client: aimform.client });\n```\n\n### Tools\n\n```ts\nconst tools = await compute.tools.getAvailable(\"org_456\", \"prof_123\");\n\nawait compute.tools.register({\n  name: \"calculate_refund\", description: \"Refund eligibility check\",\n  inputSchema: JSON.stringify({ type: \"object\", properties: { transactionId: { type: \"string\" } } }),\n  implementation: \"sandboxed_code\",\n  requiredScope: \"financial:transactions:read\",\n  riskTier: \"auto\", registeredBy: \"ci\", version: 1,\n  idempotent: true, timeoutMs: 5000, memoryMbLimit: 128, networkEgress: \"none\",\n});\n\nawait compute.tools.execute(\"send_email\", 3, { to: \"alex@example.com\" }, { profileId: \"p1\", actorType: \"human\" });\nawait compute.tools.registerMCP(\"org_456\", \"https://mcp.xero.com/v1\");\n```\n\n### Workflows\n\n```ts\nawait compute.workflows.create({\n  orgId: \"org_456\", name: \"Weekly Report\",\n  trigger: { type: \"schedule\", config: { cron: \"0 9 * * 1\" } },\n  steps: [\n    { toolId: \"fetch_data\", toolVersion: 2, input: { range: \"last_week\" } },\n    { toolId: \"send_email\", toolVersion: 3, input: { to: \"team@example.com\" } },\n  ],\n  defaultRetryPolicy: { maxAttempts: 3, backoff: \"exponential\", intervalMs: 1000 },\n  status: \"active\", authoredBy: \"prof_123\",\n});\n\nawait compute.workflows.pause(\"wf_123\");\nawait compute.workflows.resume(\"wf_123\");\nconst runs = await compute.workflows.listRuns(\"wf_123\", 10);\nconst run = await compute.workflows.getRun(\"run_456\");\n```\n\n→ [Compute docs](./docs/compute.md)\n\n→ [Creating custom adapters](./docs/custom-adapters.md)\n","readmeFilename":"README.md"}