opencode-aicodewith-auth 0.1.41 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1744,7 +1744,10 @@ var syncAgentsAndCategories = (userConfig, defaultConfig) => {
|
|
|
1744
1744
|
if (defaultConfig.agents) {
|
|
1745
1745
|
for (const [name, defaultAgent] of Object.entries(defaultConfig.agents)) {
|
|
1746
1746
|
if (!userConfig.agents[name] && defaultAgent.model) {
|
|
1747
|
-
userConfig.agents[name] = {
|
|
1747
|
+
userConfig.agents[name] = { ...defaultAgent };
|
|
1748
|
+
changed = true;
|
|
1749
|
+
} else if (userConfig.agents[name] && defaultAgent.variant && !userConfig.agents[name].variant && userConfig.agents[name].model === defaultAgent.model) {
|
|
1750
|
+
userConfig.agents[name].variant = defaultAgent.variant;
|
|
1748
1751
|
changed = true;
|
|
1749
1752
|
}
|
|
1750
1753
|
}
|
|
@@ -1752,7 +1755,10 @@ var syncAgentsAndCategories = (userConfig, defaultConfig) => {
|
|
|
1752
1755
|
if (defaultConfig.categories) {
|
|
1753
1756
|
for (const [name, defaultCategory] of Object.entries(defaultConfig.categories)) {
|
|
1754
1757
|
if (!userConfig.categories[name] && defaultCategory.model) {
|
|
1755
|
-
userConfig.categories[name] = {
|
|
1758
|
+
userConfig.categories[name] = { ...defaultCategory };
|
|
1759
|
+
changed = true;
|
|
1760
|
+
} else if (userConfig.categories[name] && defaultCategory.variant && !userConfig.categories[name].variant && userConfig.categories[name].model === defaultCategory.model) {
|
|
1761
|
+
userConfig.categories[name].variant = defaultCategory.variant;
|
|
1756
1762
|
changed = true;
|
|
1757
1763
|
}
|
|
1758
1764
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-aicodewith-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"description": "OpenCode plugin for AICodewith authentication - Access GPT-5.3 Codex, GPT-5.2, Claude, and Gemini models through AICodewith API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@opencode-ai/plugin": "^1.0.150"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@opencode-ai/sdk": "^1.1.
|
|
64
|
+
"@opencode-ai/sdk": "^1.1.53",
|
|
65
65
|
"@types/node": "^22.19.8",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
67
|
"vitest": "^4.0.18"
|