feat: add opencode provider and refactor stream model to head/tail architecture

This commit is contained in:
Mohamed Boudra
2026-01-11 16:00:25 +07:00
parent 7fe10f9b4a
commit ebabcc09e5
42 changed files with 4416 additions and 2926 deletions
+7 -10
View File
@@ -14,8 +14,7 @@
"packages/app"
],
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.75",
"@openai/codex-sdk": "^0.76.0"
"@anthropic-ai/claude-agent-sdk": "^0.1.75"
},
"devDependencies": {
"patch-package": "^8.0.1",
@@ -5762,14 +5761,11 @@
"node": ">=12.0.0"
}
},
"node_modules/@openai/codex-sdk": {
"version": "0.76.0",
"resolved": "https://registry.npmjs.org/@openai/codex-sdk/-/codex-sdk-0.76.0.tgz",
"integrity": "sha512-0Z1znTuZ7g4wYrBDzEMWEKjA7y3qUdeS/nCtIiPakzxkrcFCm67W1P+7cDym9jnN2DnFTwLedZ0FRKGzQggQ/w==",
"license": "Apache-2.0",
"engines": {
"node": ">=18"
}
"node_modules/@opencode-ai/sdk": {
"version": "1.1.12",
"resolved": "https://registry.npmjs.org/@opencode-ai/sdk/-/sdk-1.1.12.tgz",
"integrity": "sha512-M1c+525865g2C03iKaMdx3aUVC7oZSNbBGaTDjUN2UTIakdxqKHog0Hd8IA9WL8M0aU1QJ8+CnpvRT2Jt9kRNw==",
"license": "MIT"
},
"node_modules/@openrouter/ai-sdk-provider": {
"version": "1.2.0",
@@ -21337,6 +21333,7 @@
"@lezer/markdown": "^1.6.2",
"@lezer/python": "^1.1.18",
"@modelcontextprotocol/sdk": "^1.20.1",
"@opencode-ai/sdk": "^1.1.12",
"@openrouter/ai-sdk-provider": "^1.2.0",
"ai": "^5.0.76",
"dotenv": "^17.2.3",