{"_id":"@andershaf/testopencode","_rev":"2-778de3e3a562d47edf1eea124efe0684","name":"@andershaf/testopencode","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@andershaf/testopencode","version":"0.1.0","keywords":["opencode","cognite","cdf","ai-sdk"],"license":"Apache-2.0","_id":"@andershaf/testopencode@0.1.0","maintainers":[{"name":"andershaf","email":"andershaf@gmail.com"}],"homepage":"https://github.com/cognitedata/atlascode#readme","bugs":{"url":"https://github.com/cognitedata/atlascode/issues"},"dist":{"shasum":"93ade7de95dde2ad4f9dd9602888365cd1d1f5b9","tarball":"https://registry.npmjs.org/@andershaf/testopencode/-/testopencode-0.1.0.tgz","fileCount":8,"integrity":"sha512-Mtd8Vo7Wy4qWh8VrzwOW1lgr6Rna270d4OuvMmszlVOLbDY4DvT2xCSp5NJhnIHicyqUZs+nH8w/1WzlH/SGYw==","signatures":[{"sig":"MEQCIBR1zNmumlsDCQRpHqBJNzBf0vvSSdbOSv8OB/dvxzmYAiBq7o7SMnGhLJK1ED3N8UkVNSRtewpXzTkRoNRAzAwC3Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11279},"main":"./dist/provider.js","type":"module","types":"./dist/provider.d.ts","exports":{".":{"types":"./dist/provider.d.ts","import":"./dist/provider.js"}},"gitHead":"3c3f7c70725bdbe101785f7bce42564091516d25","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"andershaf","email":"andershaf@gmail.com"},"repository":{"url":"git+https://github.com/cognitedata/atlascode.git","type":"git"},"_npmVersion":"11.6.4","description":"OpenCode provider for CDF project AI chat (atlascode-style request sanitize + response normalize)","directories":{},"_nodeVersion":"22.20.0","dependencies":{"@ai-sdk/provider-utils":"^3.0.22","@ai-sdk/openai-compatible":"^1.0.34"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.0"},"peerDependencies":{"zod":"^3.25.76 || ^4.1.8","@ai-sdk/provider":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/testopencode_0.1.0_1774735870439_0.2924281647634377","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@andershaf/testopencode","version":"0.1.1","description":"OpenCode provider for CDF project AI chat (atlascode-style request sanitize + response normalize)","type":"module","main":"./dist/provider.js","types":"./dist/provider.d.ts","exports":{".":{"types":"./dist/provider.d.ts","import":"./dist/provider.js"}},"scripts":{"build":"tsc","prepublishOnly":"npm run build"},"keywords":["opencode","cognite","cdf","ai-sdk"],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/cognitedata/atlascode.git"},"dependencies":{"@ai-sdk/openai-compatible":"^1.0.34","@ai-sdk/provider":"^2.0.1","@ai-sdk/provider-utils":"^3.0.22","zod":"^3.25.76"},"devDependencies":{"typescript":"^5.8.0"},"gitHead":"3c3f7c70725bdbe101785f7bce42564091516d25","_id":"@andershaf/testopencode@0.1.1","bugs":{"url":"https://github.com/cognitedata/atlascode/issues"},"homepage":"https://github.com/cognitedata/atlascode#readme","_nodeVersion":"22.20.0","_npmVersion":"11.6.4","dist":{"integrity":"sha512-kuD6rpdl2L5obEMhjue7AMWZGr8azY8ARdyzHpfAtkODzMJ5dgy+SQIu1Kl7J7t2ZsK2ZWb1FHfZI07VWJ/6Kg==","shasum":"5c12851bfa4f35c1378b5423111046c6b6d00f02","tarball":"https://registry.npmjs.org/@andershaf/testopencode/-/testopencode-0.1.1.tgz","fileCount":8,"unpackedSize":11241,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHF28b9TtHzjx5MDmZ3Yn335tUCrZd4rghW4GhllXnD/AiEA+GVNfIIw0VUN6tYERqFOiiR7KAmtkEvP8UujkJ1kqQA="}]},"_npmUser":{"name":"andershaf","email":"andershaf@gmail.com"},"directories":{},"maintainers":[{"name":"andershaf","email":"andershaf@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/testopencode_0.1.1_1774737029369_0.20688720501319735"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-28T22:11:10.327Z","modified":"2026-03-28T22:30:29.646Z","0.1.0":"2026-03-28T22:11:10.596Z","0.1.1":"2026-03-28T22:30:29.510Z"},"bugs":{"url":"https://github.com/cognitedata/atlascode/issues"},"license":"Apache-2.0","homepage":"https://github.com/cognitedata/atlascode#readme","keywords":["opencode","cognite","cdf","ai-sdk"],"repository":{"type":"git","url":"git+https://github.com/cognitedata/atlascode.git"},"description":"OpenCode provider for CDF project AI chat (atlascode-style request sanitize + response normalize)","maintainers":[{"name":"andershaf","email":"andershaf@gmail.com"}],"readme":"# @andershaf/testopencode\n\nOpenCode custom provider for **CDF project AI** (`/api/v1/projects/{project}/ai/chat/completions`).\n\n- Strips fields CDF rejects (`max_tokens`, `tool_choice`, `stream_options`, tool `parameters.$schema`, …).\n- Normalizes **CDF camelCase** responses to **OpenAI-style snake_case** for the AI SDK.\n\nDerived from [cognitedata/atlascode PR #1](https://github.com/cognitedata/atlascode/pull/1).\n\n## OpenCode `opencode.json`\n\n```json\n{\n  \"provider\": {\n    \"cdf\": {\n      \"name\": \"CDF\",\n      \"npm\": \"@andershaf/testopencode\",\n      \"models\": {\n        \"azure/gpt-5.1\": {\n          \"name\": \"GPT-5.1\",\n          \"id\": \"azure/gpt-5.1\",\n          \"tool_call\": true\n        }\n      },\n      \"options\": {\n        \"cluster\": \"api\",\n        \"project\": \"your-project\",\n        \"token\": \"{env:CDF_TOKEN}\",\n        \"headers\": {\n          \"cdf-version\": \"20230101-alpha\"\n        }\n      }\n    }\n  },\n  \"model\": \"cdf/azure/gpt-5.1\"\n}\n```\n\n## Publish\n\n```bash\ncd packages/testopencode\nnpm install\nnpm run build\nnpm publish --access public\n```\n\nUse an npm account with access to the `@andershaf` scope.\n\n## Develop\n\n```bash\nnpm run build\n```\n","readmeFilename":"README.md"}