{"_id":"@aletheia-labs/adapters-openai","_rev":"3-e6af2d0d1adaad64809a63237ce4ec10","name":"@aletheia-labs/adapters-openai","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@aletheia-labs/adapters-openai","version":"0.1.0","keywords":["aletheia","llm","memory","openai","responses","agents"],"license":"Apache-2.0","_id":"@aletheia-labs/adapters-openai@0.1.0","maintainers":[{"name":"penagabriel22","email":"penagabriel22@gmail.com"}],"dist":{"shasum":"0487eb341f08e00666f757243bb7def1b97e3ba9","tarball":"https://registry.npmjs.org/@aletheia-labs/adapters-openai/-/adapters-openai-0.1.0.tgz","fileCount":11,"integrity":"sha512-1vN878gTgk+RqKMEIpKCxr4WuSPqFEJuXCcrkGxupYgCU4BZhCchXK3rM0T685MJvyRuX7jWDxjTWP7ib6S74A==","signatures":[{"sig":"MEUCIQD1kqqLBGQIOt4J3izHg7kHR27iCzynRuapE5KuUQPxKgIgErK+ELFePgqTD/hKF1IeHzPdCU7hEZSIXiZOOR48dkE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40162},"main":"./dist/index.js","type":"module","_from":"file:aletheia-labs-adapters-openai-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","demo:fixture":"node examples/fixture-demo.mjs"},"_npmUser":{"name":"penagabriel22","email":"penagabriel22@gmail.com"},"_resolved":"/private/var/folders/9c/lly_9vqs1gv40hnyxgytthg00000gn/T/82833d3691a8e16f2c2de17201a8a2c7/aletheia-labs-adapters-openai-0.1.0.tgz","_integrity":"sha512-1vN878gTgk+RqKMEIpKCxr4WuSPqFEJuXCcrkGxupYgCU4BZhCchXK3rM0T685MJvyRuX7jWDxjTWP7ib6S74A==","_npmVersion":"11.7.0","description":"OpenAI Responses-compatible LLM adapter for Aletheia authority-governed memory.","directories":{},"_nodeVersion":"25.4.0","dependencies":{"@aletheia-labs/core":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.8","typescript":"^5.6.3","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/adapters-openai_0.1.0_1779043988752_0.8929365105412381","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aletheia-labs/adapters-openai","version":"0.1.1","keywords":["aletheia","llm","memory","openai","responses","agents"],"license":"Apache-2.0","_id":"@aletheia-labs/adapters-openai@0.1.1","maintainers":[{"name":"penagabriel22","email":"penagabriel22@gmail.com"}],"dist":{"shasum":"227a2b77f92bf16a4c19c076a207dedd1361fc2d","tarball":"https://registry.npmjs.org/@aletheia-labs/adapters-openai/-/adapters-openai-0.1.1.tgz","fileCount":11,"integrity":"sha512-XQxbOSX6RdZ23aYXlTFeQQ7ZvMZ1Du5eZsRyd6C460DsbZSQJ0qeoWX67jQvnlR6Kbhf8PyKB79zB6fbVcR5Pg==","signatures":[{"sig":"MEQCIA+3SGX6OypfdnsfEvuQMsaJ2mmgqeFff8LcLjoHFgffAiBtRcrYWfAKZcavNwFpIhMFFn2p+zs9f+3FkB4qXiTHVA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40361},"main":"./dist/index.js","type":"module","_from":"file:aletheia-labs-adapters-openai-0.1.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit","test:watch":"vitest","demo:fixture":"node examples/fixture-demo.mjs"},"_npmUser":{"name":"penagabriel22","email":"penagabriel22@gmail.com"},"_resolved":"/private/var/folders/9c/lly_9vqs1gv40hnyxgytthg00000gn/T/432b9bb8024f2caf2c82811f60996ee8/aletheia-labs-adapters-openai-0.1.1.tgz","_integrity":"sha512-XQxbOSX6RdZ23aYXlTFeQQ7ZvMZ1Du5eZsRyd6C460DsbZSQJ0qeoWX67jQvnlR6Kbhf8PyKB79zB6fbVcR5Pg==","_npmVersion":"11.7.0","description":"OpenAI Responses-compatible LLM adapter for Aletheia authority-governed memory.","directories":{},"_nodeVersion":"25.4.0","dependencies":{"@aletheia-labs/core":"0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.8","typescript":"^5.6.3","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/adapters-openai_0.1.1_1779046316219_0.44767764062148774","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@aletheia-labs/adapters-openai","version":"0.1.2","description":"OpenAI Responses-compatible LLM adapter for Aletheia authority-governed memory.","license":"Apache-2.0","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"@aletheia-labs/core":"0.2.1"},"devDependencies":{"@types/node":"^22.10.0","typescript":"^5.6.3","vitest":"^2.1.8"},"publishConfig":{"access":"public"},"keywords":["aletheia","llm","memory","openai","responses","agents"],"repository":{"type":"git","url":"git+https://github.com/lechuit/synaptic-mesh.git","directory":"packages/adapters-openai"},"homepage":"https://github.com/lechuit/synaptic-mesh/tree/main/packages/adapters-openai#readme","bugs":{"url":"https://github.com/lechuit/synaptic-mesh/issues"},"scripts":{"build":"tsc -p tsconfig.json","demo:fixture":"node examples/fixture-demo.mjs","typecheck":"tsc -p tsconfig.json --noEmit","test":"vitest run","test:watch":"vitest"},"_id":"@aletheia-labs/adapters-openai@0.1.2","_integrity":"sha512-Hv3l7WaRKqRlK3EiiSN8y/IjGsYRZp6BzvG/8xJS+0UJFo9x0Ck2StIfuzaP0jCw+EvwYiUhbwMYfr0xrYBV1w==","_resolved":"/private/var/folders/9c/lly_9vqs1gv40hnyxgytthg00000gn/T/d941242eee4d808db01891a2a5b78400/aletheia-labs-adapters-openai-0.1.2.tgz","_from":"file:aletheia-labs-adapters-openai-0.1.2.tgz","_nodeVersion":"25.4.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-Hv3l7WaRKqRlK3EiiSN8y/IjGsYRZp6BzvG/8xJS+0UJFo9x0Ck2StIfuzaP0jCw+EvwYiUhbwMYfr0xrYBV1w==","shasum":"6a582d88ed307dda87bb3e44295212b666a25537","tarball":"https://registry.npmjs.org/@aletheia-labs/adapters-openai/-/adapters-openai-0.1.2.tgz","fileCount":11,"unpackedSize":40688,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDaw5QEF/5HmQBwOC065Q4VKP4TPGcrTLWPh0QytYU7rAiADasCp0ti0Alu63YnSNKH6E1C/9oOii6RpIZw9+zREgg=="}]},"_npmUser":{"name":"penagabriel22","email":"penagabriel22@gmail.com"},"directories":{},"maintainers":[{"name":"penagabriel22","email":"penagabriel22@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapters-openai_0.1.2_1779475326703_0.07085043072686914"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-17T18:53:08.682Z","modified":"2026-05-22T18:42:06.975Z","0.1.0":"2026-05-17T18:53:08.886Z","0.1.1":"2026-05-17T19:31:56.368Z","0.1.2":"2026-05-22T18:42:06.850Z"},"license":"Apache-2.0","keywords":["aletheia","llm","memory","openai","responses","agents"],"description":"OpenAI Responses-compatible LLM adapter for Aletheia authority-governed memory.","maintainers":[{"name":"penagabriel22","email":"penagabriel22@gmail.com"}],"readme":"# @aletheia-labs/adapters-openai\n\nOpenAI Responses-compatible adapter for Aletheia authority-governed memory.\n\n> **Status**: `0.1.0` public baseline. Reference OpenAI integration is live as a narrow library adapter. It does not own OAuth, API keys, terminal UX, tools, publication, or provider account state.\n\n## Requirements\n\n- Node 20+.\n- ESM-only. Add `\"type\": \"module\"` to your `package.json`, use `.mjs`, or use\n  a build tool/runtime that handles ESM. CommonJS `require()` is not shipped in\n  `0.1.x`.\n\n## Quickstart\n\n```bash\npnpm add @aletheia-labs/core @aletheia-labs/store-sqlite @aletheia-labs/adapters-openai openai\n```\n\n```ts\nimport OpenAI from 'openai';\nimport { AletheiaAuthority, staticVisibilityPolicy } from '@aletheia-labs/core';\nimport { AletheiaOpenAIResponsesBridge } from '@aletheia-labs/adapters-openai';\nimport { openSqliteStores } from '@aletheia-labs/store-sqlite';\n\nconst stores = openSqliteStores('./aletheia.sqlite');\nconst authority = new AletheiaAuthority({\n  eventLedger: stores.eventLedger,\n  memoryStore: stores.memoryStore,\n  conflictRegistry: stores.conflictRegistry,\n  visibilityPolicy: staticVisibilityPolicy([{ kind: 'private:user' }]),\n});\n\nconst bridge = new AletheiaOpenAIResponsesBridge({\n  client: new OpenAI({ apiKey: process.env.OPENAI_API_KEY }),\n  authority,\n  eventLedger: stores.eventLedger,\n  model: 'gpt-5',\n});\n```\n\nHosts own credentials, retries, rate limits, and provider selection. This adapter only receives an already-authenticated client.\n\n## What this package does\n\n- Records conversation turns as append-only Aletheia events.\n- Asks an OpenAI Responses-compatible client to draft memory proposals as JSON.\n- Sends every draft through `AletheiaAuthority.propose()` before anything becomes a `MemoryAtom`.\n- Recalls memory through `AletheiaAuthority.recall()` and re-checks action authority through `tryAct()` before calling the model for an answer.\n- Refuses to call the model when recall/action authority fails closed.\n\n## Client contract\n\nThe package does not import the OpenAI SDK. It accepts any caller-provided object with `responses.create(input)`:\n\n```ts\nconst bridge = new AletheiaOpenAIResponsesBridge({\n  client: new OpenAI({ apiKey: process.env.OPENAI_API_KEY }),\n  authority,\n  eventLedger: stores.eventLedger,\n  model: 'gpt-5',\n});\n```\n\n## What this package does NOT do\n\n- No OAuth, device login, refresh-token handling, or ChatGPT subscription plumbing.\n- No OpenAI SDK dependency.\n- No authority upgrade from model output.\n- No tool execution.\n- No semantic retrieval, embeddings, vector index, or ranking.\n- No bypass around `propose`, `recall`, or `tryAct`.\n\n## Fixture Demo\n\nAfter building the workspace:\n\n```bash\npnpm -r run build\npnpm -F @aletheia-labs/adapters-openai run demo:fixture\n```\n\nThe fixture uses a fake Responses client and should print `boundaryViolations: []`.\n\n## Stability\n\nPublic surface for the initial library cycle:\n\n- `AletheiaOpenAIResponsesBridge`\n- `OpenAIResponsesClient`\n- `ConversationIngestionInput`\n- `AnswerWithRecallInput`\n- `ConversationIngestionResult`\n- `AnswerWithRecallResult`\n\nEverything else is adapter plumbing and may change during the `0.x` line.\n\n## Development\n\nFrom the repo root:\n\n```bash\npnpm install\npnpm -F @aletheia-labs/adapters-openai typecheck\npnpm -F @aletheia-labs/adapters-openai test\npnpm -F @aletheia-labs/adapters-openai build\npnpm -F @aletheia-labs/adapters-openai run demo:fixture\n```\n","readmeFilename":"README.md","homepage":"https://github.com/lechuit/synaptic-mesh/tree/main/packages/adapters-openai#readme","repository":{"type":"git","url":"git+https://github.com/lechuit/synaptic-mesh.git","directory":"packages/adapters-openai"},"bugs":{"url":"https://github.com/lechuit/synaptic-mesh/issues"}}