{"_id":"@agenko/sdk","name":"@agenko/sdk","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.4":{"name":"@agenko/sdk","version":"0.1.4","description":"Agenko TypeScript SDK — the open trust boundary for AI agents","license":"Apache-2.0","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./openai":{"types":"./dist/openai.d.ts","import":"./dist/openai.mjs","require":"./dist/openai.js"},"./anthropic":{"types":"./dist/anthropic.d.ts","import":"./dist/anthropic.mjs","require":"./dist/anthropic.js"}},"peerDependencies":{"openai":">=4.0.0","@anthropic-ai/sdk":">=0.30.0"},"peerDependenciesMeta":{"openai":{"optional":true},"@anthropic-ai/sdk":{"optional":true}},"dependencies":{"@opentelemetry/api":"^1.9.0","@opentelemetry/sdk-node":"^0.55.0","@opentelemetry/resources":"^1.28.0","@opentelemetry/semantic-conventions":"^1.28.0","@opentelemetry/exporter-trace-otlp-proto":"^0.55.0","@opentelemetry/instrumentation":"^0.55.0"},"devDependencies":{"typescript":"^5.7.0","tsup":"^8.3.0","vitest":"^2.1.0","@biomejs/biome":"^1.9.0","openai":"^4.77.0","@anthropic-ai/sdk":"^0.39.0","@arizeai/openinference-instrumentation-openai":"^0.1.0","@arizeai/openinference-instrumentation-anthropic":"^0.1.21","@arizeai/openinference-instrumentation-langchain":"^0.1.0"},"engines":{"node":">=18"},"scripts":{"build":"tsup src/index.ts src/openai.ts src/anthropic.ts --format cjs,esm --dts --external openai --external @anthropic-ai/sdk --external @arizeai/openinference-instrumentation-openai --external @arizeai/openinference-instrumentation-anthropic --external @arizeai/openinference-instrumentation-langchain","dev":"tsup src/index.ts src/openai.ts src/anthropic.ts --format cjs,esm --dts --watch --external openai --external @anthropic-ai/sdk --external @arizeai/openinference-instrumentation-openai --external @arizeai/openinference-instrumentation-anthropic --external @arizeai/openinference-instrumentation-langchain","test":"vitest","lint":"biome check src/"},"_id":"@agenko/sdk@0.1.4","_integrity":"sha512-IiTZ3EZajDsXM7gl55AvSnyl9YcmQD6zUZ2ar2eQK/v7sOzjT/QgC+7Hh69PNcCFdZLy+xg82tUSZiB+FqCvLg==","_resolved":"/tmp/b5c438f33ecfaaf6639b574651adcc23/agenko-sdk-0.1.4.tgz","_from":"file:agenko-sdk-0.1.4.tgz","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-IiTZ3EZajDsXM7gl55AvSnyl9YcmQD6zUZ2ar2eQK/v7sOzjT/QgC+7Hh69PNcCFdZLy+xg82tUSZiB+FqCvLg==","shasum":"8b7fb50aa84801145f524f3924dbd71f70dc980f","tarball":"https://registry.npmjs.org/@agenko/sdk/-/sdk-0.1.4.tgz","fileCount":15,"unpackedSize":84155,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHb1GNh2uUUtkFeSIbCtfi7tIyj3AHKkge1zMrfw/N2yAiEAwcIYLbzuS0p8cvRHnusvpugviQAz4Otm9MHzztCJZhU="}]},"_npmUser":{"name":"shuence","email":"shubhampitekar98@gmail.com"},"directories":{},"maintainers":[{"name":"shuence","email":"shubhampitekar98@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.4_1787191075928_0.8225593053230393"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-20T01:57:55.719Z","0.1.4":"2026-08-20T01:57:56.075Z","modified":"2026-08-20T01:57:56.275Z"},"maintainers":[{"name":"shuence","email":"shubhampitekar98@gmail.com"}],"description":"Agenko TypeScript SDK — the open trust boundary for AI agents","license":"Apache-2.0","readme":"# @agenko/sdk\n\n**The deterministic trust boundary for AI agents — TypeScript SDK.**\n\nOne function gives every agent action a cryptographic receipt and a deterministic gate before any irreversible move. No LLM inference — measured facts, provable audit, OTEL-native.\n\n---\n\n## Installation\n\n```bash\npnpm add @agenko/sdk\n```\n\n## Quick Start\n\n```typescript\nimport agenko, { init, check, approve } from \"@agenko/sdk\";\n\nagenko.init(); // or init() — instrument is an alias of init\n\nconst handleTicket = agenko.check(async (ticket) => {\n  const result = await process(ticket);\n  return result; // result._agenko_receipt holds claimed, actual, verdict, hash\n});\n\nconst deleteAccount = agenko.approve({ when: \"irreversible\" }, async (userId) => {\n  await db.deleteUser(userId);\n});\n```\n\n`instrument` is a backward-compat alias of `init`. New code should call `init()`.\n\n## What Agenko Provides\n\n| Primitive | Description |\n|---------|-------------|\n| **Receipt** (`check`) | Cryptographic proof of claimed vs. actual — deterministic, not LLM-inferred |\n| **Gate** (`approve`) | Deterministic block before irreversible actions; only exceptions escalate |\n| **Tracing** | OTEL-native, every span, tool call, token, cost |\n| **Audit** | SHA-256 hash-chained log, EU AI Act Article 50 export |\n\n## Links\n\n- [GitHub](https://github.com/agenko-ai/agenko)\n- [Documentation](https://docs.agenko.dev)\n- [npm](https://www.npmjs.com/package/@agenko/sdk)\n\n## License\n\nApache 2.0\n","readmeFilename":"README.md","_rev":"1-f2d8bfda3948357ed2fbc64845a08936"}