usegrunt 0.6.3 → 0.6.5
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/README.md +5 -3
- package/dist/local/apinex.js +104 -0
- package/dist/local/data-sharing.js +12 -0
- package/dist/local/fallback-setup.js +52 -0
- package/dist/local/free-api.js +8 -4
- package/dist/local/livekit-setup.js +269 -0
- package/dist/local/livekit.js +219 -0
- package/dist/local/main.js +5 -1
- package/dist/local/mistral-vibe-setup.js +305 -0
- package/dist/local/mistral-vibe.js +306 -0
- package/dist/local/provider-grant.js +49 -0
- package/dist/local/registry.js +14 -3
- package/dist/local/runcrate.js +64 -0
- package/dist/local/setup.js +50 -2
- package/dist/local/wizard.js +3 -2
- package/dist/registry/adapters.json +50 -2
- package/dist/registry.js +3 -3
- package/package.json +1 -1
package/dist/registry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { pathToFileURL } from 'node:url';
|
|
3
|
-
const installers = { freebuff: 'npm:freebuff', opencode: 'npm:opencode-ai', kilo: 'builtin:kilo', nvidia: 'builtin:nvidia', zro: 'builtin:zro', tokenharbor: 'builtin:tokenharbor' };
|
|
3
|
+
const installers = { freebuff: 'npm:freebuff', opencode: 'npm:opencode-ai', kilo: 'builtin:kilo', nvidia: 'builtin:nvidia', zro: 'builtin:zro', tokenharbor: 'builtin:tokenharbor', runcrate: 'builtin:runcrate', apinex: 'builtin:apinex', 'mistral-vibe': 'builtin:mistral-vibe', livekit: 'builtin:livekit' };
|
|
4
4
|
export const knownAdapters = new Set(Object.keys(installers));
|
|
5
5
|
export function validateRegistry(value) {
|
|
6
6
|
const fail = () => { throw new Error('Invalid adapter registry'); };
|
|
@@ -20,7 +20,7 @@ export function validateRegistry(value) {
|
|
|
20
20
|
|| !['agent', 'model'].includes(String(a.kind)) || !['stable', 'experimental'].includes(String(a.tier))
|
|
21
21
|
|| typeof a.weight !== 'number' || !Number.isFinite(a.weight) || a.weight <= 0 || a.weight > 1
|
|
22
22
|
|| !Array.isArray(a.modalities) || !a.modalities.length || a.modalities.some(m => !['text', 'image'].includes(m))
|
|
23
|
-
|| new Set(a.modalities).size !== a.modalities.length || typeof a.install !== 'string' || !(/^npm:[a-z0-9@/._-]+$/.test(a.install) || (
|
|
23
|
+
|| new Set(a.modalities).size !== a.modalities.length || typeof a.install !== 'string' || !(/^npm:[a-z0-9@/._-]+$/.test(a.install) || (knownAdapters.has(String(a.id)) && a.install === installers[a.id]))
|
|
24
24
|
|| (a.model !== undefined && (typeof a.model !== 'string' || !a.model.trim()))
|
|
25
25
|
|| (a.models !== undefined && (a.id !== 'opencode' || a.model !== undefined || !Array.isArray(a.models) || !a.models.length || a.models.length > 20
|
|
26
26
|
|| a.models.some(model => typeof model !== 'string' || !model.trim()) || new Set(a.models).size !== a.models.length)))
|
|
@@ -39,7 +39,7 @@ export function validateRegistry(value) {
|
|
|
39
39
|
return fail();
|
|
40
40
|
}
|
|
41
41
|
// Known adapters have fixed installers and capabilities; registry data never supplies code.
|
|
42
|
-
if (knownAdapters.has(a.id) && (a.kind !== (['kilo', 'nvidia', 'zro', 'tokenharbor'].includes(a.id) ? 'model' : 'agent') || a.install !== installers[a.id]
|
|
42
|
+
if (knownAdapters.has(a.id) && (a.kind !== (['kilo', 'nvidia', 'zro', 'tokenharbor', 'runcrate', 'apinex', 'livekit'].includes(a.id) ? 'model' : 'agent') || a.install !== installers[a.id]
|
|
43
43
|
|| a.modalities.some(m => m !== 'text')))
|
|
44
44
|
return fail();
|
|
45
45
|
ids.add(a.id);
|