{"_id":"@aixord/sdk","_rev":"3-6532dc5549bf5ba423b29841dc6b3a35","name":"@aixord/sdk","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@aixord/sdk","version":"1.0.0","keywords":["aixord","ai","governance","sdk","llm","claude","openai"],"author":{"name":"PMERIT Technologies LLC"},"license":"MIT","_id":"@aixord/sdk@1.0.0","maintainers":[{"name":"pmerit-platform","email":"peoplemerit@gmail.com"}],"homepage":"https://github.com/pmerit/aixord#readme","bugs":{"url":"https://github.com/pmerit/aixord/issues"},"dist":{"shasum":"1f067e17271a626977b87d8964e4784750473057","tarball":"https://registry.npmjs.org/@aixord/sdk/-/sdk-1.0.0.tgz","fileCount":7,"integrity":"sha512-7GI7v8Qbdk1T5x8gpgZSzGuczP464qlKcxUK3N/YUO9TMbc1xzpj+hK/y5cHpa+N3qY4daDfw7ej/X1KWsj3PQ==","signatures":[{"sig":"MEUCIQDNtYHeCo2Hq8S5MRkzipUnXjT/eYPxSiAXMtQpS01U5AIgAIssD2OSauX8Dd/LFVX4LJWItQjsZJLrORAj5wg9Ox8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":440964},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"73ebe06d440b232e2a3805527e9764c0061e0821","scripts":{"dev":"tsup --watch","test":"vitest","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"pmerit-platform","email":"peoplemerit@gmail.com"},"repository":{"url":"git+https://github.com/pmerit/aixord.git","type":"git"},"_npmVersion":"10.8.2","description":"AIXORD SDK - Developer SDK for AI governance enforcement","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@aixord/core":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.2.0","typescript":"^5.3.0","@types/node":"^20.11.0"},"peerDependencies":{"openai":">=4.0.0","@anthropic-ai/sdk":">=0.20.0"},"peerDependenciesMeta":{"openai":{"optional":true},"@anthropic-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.0_1769353142875_0.4054182429944304","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aixord/sdk","version":"1.0.1","keywords":["aixord","ai","governance","sdk","llm","claude","openai"],"author":{"name":"PMERIT Technologies LLC"},"license":"MIT","_id":"@aixord/sdk@1.0.1","maintainers":[{"name":"pmerit-platform","email":"peoplemerit@gmail.com"}],"homepage":"https://github.com/pmerit/aixord#readme","bugs":{"url":"https://github.com/pmerit/aixord/issues"},"dist":{"shasum":"02b0b0657d8663021d8a886afe466ddcc3c4a8f4","tarball":"https://registry.npmjs.org/@aixord/sdk/-/sdk-1.0.1.tgz","fileCount":8,"integrity":"sha512-wBrGLmrIyxQ5R604mR5kdImxtRMha29shn9uy+rhtGnZ3obAKkJHkT7Ts5XZXcJBud39eZU+gGRy5jTGrmNaPw==","signatures":[{"sig":"MEQCIHNhqswYumq2rBxwZUI4HoRiFz2ED18M1IurPvOSXPH6AiBGoabvP/M9pn5bcSSrl/QQYfI9vQh27KuI7DtR3B9LMg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":443350},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"73ebe06d440b232e2a3805527e9764c0061e0821","scripts":{"dev":"tsup --watch","test":"vitest","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"pmerit-platform","email":"peoplemerit@gmail.com"},"repository":{"url":"git+https://github.com/pmerit/aixord.git","type":"git"},"_npmVersion":"10.8.2","description":"AIXORD SDK - Developer SDK for AI governance enforcement","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@aixord/core":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.2.0","typescript":"^5.3.0","@types/node":"^20.11.0"},"peerDependencies":{"openai":">=4.0.0","@anthropic-ai/sdk":">=0.20.0"},"peerDependenciesMeta":{"openai":{"optional":true},"@anthropic-ai/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.1_1769378008055_0.17047834718795873","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@aixord/sdk","version":"1.1.0","description":"AIXORD SDK - Developer SDK for AI governance enforcement","license":"MIT","author":{"name":"PMERIT Technologies LLC"},"repository":{"type":"git","url":"git+https://github.com/pmerit/aixord.git"},"keywords":["aixord","ai","governance","sdk","llm","claude","openai"],"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest","test:coverage":"vitest --coverage","type-check":"tsc --noEmit","clean":"rm -rf dist"},"dependencies":{"@aixord/core":"^1.0.0"},"devDependencies":{"@types/node":"^20.11.0","tsup":"^8.0.0","typescript":"^5.3.0","vitest":"^1.2.0"},"peerDependencies":{"@anthropic-ai/sdk":">=0.20.0","openai":">=4.0.0"},"peerDependenciesMeta":{"@anthropic-ai/sdk":{"optional":true},"openai":{"optional":true}},"_id":"@aixord/sdk@1.1.0","gitHead":"73ebe06d440b232e2a3805527e9764c0061e0821","bugs":{"url":"https://github.com/pmerit/aixord/issues"},"homepage":"https://github.com/pmerit/aixord#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-dX9t21/UnmfyCeUalFD49giEcWa2P70zMVK2Uj1jC8GuIaCqsupgyO1VSbo40hor02E8SHAPldgWxZuqfm5URw==","shasum":"eae9f4127bbb7bb54cfa8ae54626440eff30283c","tarball":"https://registry.npmjs.org/@aixord/sdk/-/sdk-1.1.0.tgz","fileCount":8,"unpackedSize":479034,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDeahkUa0Y7h/MsTQ69K1ryj2sLK/cOBsYRn0q8T/G+xQIhAKQvPXV1LOGNbPRuvE1tkwF2EPY34pJIPGGG6WMs5B+u"}]},"_npmUser":{"name":"pmerit-platform","email":"peoplemerit@gmail.com"},"directories":{},"maintainers":[{"name":"pmerit-platform","email":"peoplemerit@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.1.0_1769473734004_0.9659711536056512"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-25T14:59:02.774Z","modified":"2026-01-27T00:28:54.277Z","1.0.0":"2026-01-25T14:59:03.037Z","1.0.1":"2026-01-25T21:53:28.342Z","1.1.0":"2026-01-27T00:28:54.146Z"},"bugs":{"url":"https://github.com/pmerit/aixord/issues"},"author":{"name":"PMERIT Technologies LLC"},"license":"MIT","homepage":"https://github.com/pmerit/aixord#readme","keywords":["aixord","ai","governance","sdk","llm","claude","openai"],"repository":{"type":"git","url":"git+https://github.com/pmerit/aixord.git"},"description":"AIXORD SDK - Developer SDK for AI governance enforcement","maintainers":[{"name":"pmerit-platform","email":"peoplemerit@gmail.com"}],"readme":"# @aixord/sdk\n\nDeveloper SDK for AIXORD AI governance enforcement. Integrates with Claude, ChatGPT, and other LLM providers.\n\n## Installation\n\n```bash\nnpm install @aixord/sdk\n```\n\n## Features\n\n- **Provider Adapters** — Claude (Anthropic), OpenAI, and custom providers\n- **State Management** — Local, web app, or custom backends\n- **Gate Enforcement** — Automatic gate checking and progression\n- **Session Tracking** — Phase management and handoff generation\n\n## Quick Start\n\n```typescript\nimport { AIXORDClient } from '@aixord/sdk';\n\n// Initialize with Claude\nconst client = new AIXORDClient({\n  provider: 'claude',\n  apiKey: process.env.ANTHROPIC_API_KEY\n});\n\n// Pass a gate\nawait client.passGate('LIC');\n\n// Get current state\nconst state = await client.getState();\nconsole.log(state.session.phase); // 'SETUP'\n```\n\n## With Web App Backend\n\nConnect to the AIXORD Web App for persistent state:\n\n```typescript\nconst client = new AIXORDClient({\n  provider: 'claude',\n  apiKey: process.env.ANTHROPIC_API_KEY,\n  stateBackend: {\n    type: 'webapp',\n    webappUrl: 'https://aixord-webapp.peoplemerit.workers.dev',\n    webappApiKey: 'your-webapp-api-key',\n    projectId: 'your-project-id'\n  }\n});\n```\n\n## Provider Configuration\n\n### Claude (Anthropic)\n\n```typescript\nconst client = new AIXORDClient({\n  provider: 'claude',\n  apiKey: process.env.ANTHROPIC_API_KEY,\n  model: 'claude-3-5-sonnet-20241022' // optional\n});\n```\n\n### OpenAI\n\n```typescript\nconst client = new AIXORDClient({\n  provider: 'openai',\n  apiKey: process.env.OPENAI_API_KEY,\n  model: 'gpt-4-turbo' // optional\n});\n```\n\n## API Reference\n\n### AIXORDClient\n\n#### `passGate(gateId: GateId): Promise<void>`\nMark a gate as passed.\n\n#### `getState(): Promise<AIXORDState>`\nGet current governance state.\n\n#### `setPhase(phase: Phase): Promise<void>`\nUpdate the current phase.\n\n#### `createHandoff(): Promise<string>`\nGenerate a handoff document.\n\n### Gate IDs\n\nSetup Phase: `LIC`, `DIS`, `TIR`, `ENV`, `OBJ`, `RA`\n\nWork Phase: `FX`, `PD`, `PR`, `BP`, `MS`, `VA`, `HO`\n\n### Phases\n\n`BRAINSTORM` → `PLAN` → `BLUEPRINT` → `EXECUTE` → `VERIFY`\n\n## Peer Dependencies\n\nInstall the provider SDK you need:\n\n```bash\n# For Claude\nnpm install @anthropic-ai/sdk\n\n# For OpenAI\nnpm install openai\n```\n\n## Related Packages\n\n- [@aixord/core](https://www.npmjs.com/package/@aixord/core) — Core types and validation\n\n## License\n\nMIT\n","readmeFilename":"README.md"}