@moxxy/plugin-provider-admin 0.34.0 → 0.35.0
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/package.json +4 -4
- package/src/store.test.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moxxy/plugin-provider-admin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Model-callable provider admin: provider_add / provider_list / provider_remove / provider_test. Persists user-registered providers to ~/.moxxy/providers.json and hot-registers them in the live session by wrapping the OpenAI-compatible client with a vendor baseURL.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"moxxy",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"openai": "^4.80.0",
|
|
51
51
|
"zod": "^3.24.0",
|
|
52
|
-
"@moxxy/
|
|
53
|
-
"@moxxy/
|
|
54
|
-
"@moxxy/
|
|
52
|
+
"@moxxy/config": "0.35.0",
|
|
53
|
+
"@moxxy/plugin-provider-openai": "0.35.0",
|
|
54
|
+
"@moxxy/sdk": "0.35.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^22.10.0",
|
package/src/store.test.ts
CHANGED
|
@@ -85,17 +85,17 @@ describe('stored-provider tree store (plugins.provider.items)', () => {
|
|
|
85
85
|
// NOT a stored vendor; provider_remove must never delete those prefs.
|
|
86
86
|
await fs.writeFile(
|
|
87
87
|
cfgPath,
|
|
88
|
-
'plugins:\n provider:\n items:\n anthropic:\n model: claude-opus-
|
|
88
|
+
'plugins:\n provider:\n items:\n anthropic:\n model: claude-opus-5\n',
|
|
89
89
|
);
|
|
90
90
|
expect(await removeStoredProvider('anthropic', cfgPath)).toBe(false);
|
|
91
91
|
const text = await fs.readFile(cfgPath, 'utf8');
|
|
92
|
-
expect(text).toContain('claude-opus-
|
|
92
|
+
expect(text).toContain('claude-opus-5');
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
it('coexists with picker-written model/enabled prefs on OTHER items', async () => {
|
|
96
96
|
await fs.writeFile(
|
|
97
97
|
cfgPath,
|
|
98
|
-
'plugins:\n provider:\n default: anthropic\n items:\n anthropic:\n model: claude-opus-
|
|
98
|
+
'plugins:\n provider:\n default: anthropic\n items:\n anthropic:\n model: claude-opus-5\n',
|
|
99
99
|
);
|
|
100
100
|
await upsertStoredProvider(sampleEntry, cfgPath);
|
|
101
101
|
const cfg = await readProvidersConfig(cfgPath);
|
|
@@ -103,7 +103,7 @@ describe('stored-provider tree store (plugins.provider.items)', () => {
|
|
|
103
103
|
expect(cfg.providers.map((p) => p.name)).toEqual(['zai']);
|
|
104
104
|
// …and the built-in's prefs survive untouched.
|
|
105
105
|
const text = await fs.readFile(cfgPath, 'utf8');
|
|
106
|
-
expect(text).toContain('claude-opus-
|
|
106
|
+
expect(text).toContain('claude-opus-5');
|
|
107
107
|
expect(text).toContain('default: anthropic');
|
|
108
108
|
});
|
|
109
109
|
|