@vibesdotdev/integrations-omlx 0.0.0-stage → 1.0.0-rc.1
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/LICENSE +126 -0
- package/README.md +14 -2
- package/dist/ai/index.d.ts +5 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +5 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/provider.plugin.d.ts +6 -0
- package/dist/ai/provider.plugin.d.ts.map +1 -0
- package/dist/ai/provider.plugin.js +88 -0
- package/dist/ai/provider.plugin.js.map +1 -0
- package/dist/ai/providers/local/llm/omlx/config/config.omlx.descriptor.d.ts +4194 -0
- package/dist/ai/providers/local/llm/omlx/config/config.omlx.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/local/llm/omlx/config/config.omlx.descriptor.js +53 -0
- package/dist/ai/providers/local/llm/omlx/config/config.omlx.descriptor.js.map +1 -0
- package/dist/ai/providers/local/llm/omlx/config/schemas/index.d.ts +67 -0
- package/dist/ai/providers/local/llm/omlx/config/schemas/index.d.ts.map +1 -0
- package/dist/ai/providers/local/llm/omlx/config/schemas/index.js +39 -0
- package/dist/ai/providers/local/llm/omlx/config/schemas/index.js.map +1 -0
- package/dist/ai/providers/local/llm/omlx/index.d.ts +6 -0
- package/dist/ai/providers/local/llm/omlx/index.d.ts.map +1 -0
- package/dist/ai/providers/local/llm/omlx/index.js +5 -0
- package/dist/ai/providers/local/llm/omlx/index.js.map +1 -0
- package/dist/ai/providers/local/llm/omlx/model-ids.d.ts +19 -0
- package/dist/ai/providers/local/llm/omlx/model-ids.d.ts.map +1 -0
- package/dist/ai/providers/local/llm/omlx/model-ids.js +60 -0
- package/dist/ai/providers/local/llm/omlx/model-ids.js.map +1 -0
- package/dist/ai/providers/local/llm/omlx/provider.omlx.descriptor.d.ts +197 -0
- package/dist/ai/providers/local/llm/omlx/provider.omlx.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/local/llm/omlx/provider.omlx.descriptor.js +177 -0
- package/dist/ai/providers/local/llm/omlx/provider.omlx.descriptor.js.map +1 -0
- package/dist/ai/providers/omlx/detection/index.d.ts +3 -0
- package/dist/ai/providers/omlx/detection/index.d.ts.map +1 -0
- package/dist/ai/providers/omlx/detection/index.js +2 -0
- package/dist/ai/providers/omlx/detection/index.js.map +1 -0
- package/dist/ai/providers/omlx/detection/system.d.ts +19 -0
- package/dist/ai/providers/omlx/detection/system.d.ts.map +1 -0
- package/dist/ai/providers/omlx/detection/system.js +64 -0
- package/dist/ai/providers/omlx/detection/system.js.map +1 -0
- package/dist/ai/providers/omlx/docs/ai.providers.omlx.docs.descriptor.d.ts +4 -0
- package/dist/ai/providers/omlx/docs/ai.providers.omlx.docs.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/omlx/docs/ai.providers.omlx.docs.descriptor.js +39 -0
- package/dist/ai/providers/omlx/docs/ai.providers.omlx.docs.descriptor.js.map +1 -0
- package/dist/ai/providers/omlx/index.d.ts +6 -0
- package/dist/ai/providers/omlx/index.d.ts.map +1 -0
- package/dist/ai/providers/omlx/index.js +6 -0
- package/dist/ai/providers/omlx/index.js.map +1 -0
- package/dist/ai/providers/omlx/omlx.models.d.ts +20 -0
- package/dist/ai/providers/omlx/omlx.models.d.ts.map +1 -0
- package/dist/ai/providers/omlx/omlx.models.js +141 -0
- package/dist/ai/providers/omlx/omlx.models.js.map +1 -0
- package/dist/ai/providers/omlx/omlx.provider.impl.d.ts +54 -0
- package/dist/ai/providers/omlx/omlx.provider.impl.d.ts.map +1 -0
- package/dist/ai/providers/omlx/omlx.provider.impl.js +305 -0
- package/dist/ai/providers/omlx/omlx.provider.impl.js.map +1 -0
- package/dist/ai/providers/omlx/recommendations.d.ts +23 -0
- package/dist/ai/providers/omlx/recommendations.d.ts.map +1 -0
- package/dist/ai/providers/omlx/recommendations.js +111 -0
- package/dist/ai/providers/omlx/recommendations.js.map +1 -0
- package/dist/config/omlx.config.descriptor.d.ts +60 -0
- package/dist/config/omlx.config.descriptor.d.ts.map +1 -0
- package/dist/config/omlx.config.descriptor.js +47 -0
- package/dist/config/omlx.config.descriptor.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/discovery.d.ts +130 -0
- package/dist/schemas/discovery.d.ts.map +1 -0
- package/dist/schemas/discovery.js +51 -0
- package/dist/schemas/discovery.js.map +1 -0
- package/dist/schemas/settings.d.ts +11 -0
- package/dist/schemas/settings.d.ts.map +1 -0
- package/dist/schemas/settings.js +9 -0
- package/dist/schemas/settings.js.map +1 -0
- package/package.json +74 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.omlx.descriptor.d.ts","sourceRoot":"","sources":["../../../../../../../src/ai/providers/local/llm/omlx/config/config.omlx.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA0Dg2pD,CAAC;;;;yBAA6V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAo8E,CAAC;;;;6BAA6W,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAilF,CAAC;;;;iCAA6X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA2uF,CAAC;;;;6BAA6W,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAgkF,CAAC;;;;iCAA6X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA8vF,CAAC;;;;yBAA6V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAo7E,CAAC;;;;6BAA6W,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAilF,CAAC;;;;iCAA6X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAA4vF,CAAC;;;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2
|
+
import omlxProviderDescriptor from "../provider.omlx.descriptor.js";
|
|
3
|
+
import { DEFAULT_OMLX_API_KEY_SECRET, DEFAULT_OMLX_BASE_URL, omlxConnectionSchema } from "./schemas/index.js";
|
|
4
|
+
export default createProviderConfigDescriptor({
|
|
5
|
+
provider: omlxProviderDescriptor,
|
|
6
|
+
schema: omlxConnectionSchema,
|
|
7
|
+
optionLabel: 'oMLX',
|
|
8
|
+
optionDescription: 'Local oMLX desktop server',
|
|
9
|
+
optionIcon: '⚡',
|
|
10
|
+
fields: {
|
|
11
|
+
'configuration.baseUrl': {
|
|
12
|
+
ui: {
|
|
13
|
+
label: 'Server URL',
|
|
14
|
+
description: 'oMLX OpenAI-compatible origin, including /v1',
|
|
15
|
+
placeholder: DEFAULT_OMLX_BASE_URL,
|
|
16
|
+
component: 'input',
|
|
17
|
+
group: 'connection',
|
|
18
|
+
order: 10
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
'configuration.timeout': {
|
|
22
|
+
ui: {
|
|
23
|
+
label: 'Timeout',
|
|
24
|
+
description: 'Request timeout in milliseconds',
|
|
25
|
+
placeholder: '60000',
|
|
26
|
+
component: 'number',
|
|
27
|
+
group: 'connection',
|
|
28
|
+
order: 11
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
'configuration.defaultModel': {
|
|
32
|
+
ui: {
|
|
33
|
+
label: 'Default model',
|
|
34
|
+
description: 'oMLX wire id used when a caller does not pick a model',
|
|
35
|
+
placeholder: 'Qwen3.8-Flash-Next-oQ8',
|
|
36
|
+
component: 'input',
|
|
37
|
+
group: 'connection',
|
|
38
|
+
order: 12
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
'configuration.apiKey': {
|
|
42
|
+
ui: {
|
|
43
|
+
label: 'API key',
|
|
44
|
+
description: 'Optional. Required when the server enforces ~/.omlx/api-key; stored as a credential reference to a vibes secret, never inline.',
|
|
45
|
+
placeholder: DEFAULT_OMLX_API_KEY_SECRET,
|
|
46
|
+
component: 'secret',
|
|
47
|
+
group: 'connection',
|
|
48
|
+
order: 13
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=config.omlx.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.omlx.descriptor.js","sourceRoot":"","sources":["../../../../../../../src/ai/providers/local/llm/omlx/config/config.omlx.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,0DAA0D,CAAC;AAC1G,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACN,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,MAAM,oBAAoB,CAAC;AAE5B,eAAe,8BAA8B,CAAC;IAC7C,QAAQ,EAAE,sBAAsB;IAChC,MAAM,EAAE,oBAAoB;IAC5B,WAAW,EAAE,MAAM;IACnB,iBAAiB,EAAE,2BAA2B;IAC9C,UAAU,EAAE,GAAG;IACf,MAAM,EAAE;QACP,uBAAuB,EAAE;YACxB,EAAE,EAAE;gBACH,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,8CAA8C;gBAC3D,WAAW,EAAE,qBAAqB;gBAClC,SAAS,EAAE,OAAO;gBAClB,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,EAAE;aACT;SACD;QACD,uBAAuB,EAAE;YACxB,EAAE,EAAE;gBACH,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,iCAAiC;gBAC9C,WAAW,EAAE,OAAO;gBACpB,SAAS,EAAE,QAAQ;gBACnB,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,EAAE;aACT;SACD;QACD,4BAA4B,EAAE;YAC7B,EAAE,EAAE;gBACH,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,uDAAuD;gBACpE,WAAW,EAAE,wBAAwB;gBACrC,SAAS,EAAE,OAAO;gBAClB,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,EAAE;aACT;SACD;QACD,sBAAsB,EAAE;YACvB,EAAE,EAAE;gBACH,KAAK,EAAE,SAAS;gBAChB,WAAW,EACV,gIAAgI;gBACjI,WAAW,EAAE,2BAA2B;gBACxC,SAAS,EAAE,QAAQ;gBACnB,KAAK,EAAE,YAAY;gBACnB,KAAK,EAAE,EAAE;aACT;SACD;KACD;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
export declare const DEFAULT_OMLX_BASE_URL = "http://127.0.0.1:8000/v1";
|
|
3
|
+
export declare const DEFAULT_OMLX_TIMEOUT_MS = 60000;
|
|
4
|
+
export declare const OMLX_DISCOVERY_TIMEOUT_MS = 2000;
|
|
5
|
+
/**
|
|
6
|
+
* Default secret name for the oMLX server API key. oMLX enforces a key when
|
|
7
|
+
* `~/.omlx/api-key` exists (every unauthenticated `/v1` request answers
|
|
8
|
+
* HTTP 401 "API key required") and is open otherwise. Store the value with
|
|
9
|
+
* `vibes secrets set OMLX_API_KEY`; connections reference it, never inline it.
|
|
10
|
+
*/
|
|
11
|
+
export declare const DEFAULT_OMLX_API_KEY_SECRET = "OMLX_API_KEY";
|
|
12
|
+
/**
|
|
13
|
+
* Credential REFERENCE for the optional API key. Only secret references are
|
|
14
|
+
* accepted: the runtime credential resolver refuses inline `apiKey` values
|
|
15
|
+
* and variant auth never carries plaintext.
|
|
16
|
+
*/
|
|
17
|
+
export declare const omlxApiKeyReferenceSchema: z.ZodObject<{
|
|
18
|
+
source: z.ZodLiteral<"secret">;
|
|
19
|
+
key: z.ZodString;
|
|
20
|
+
store: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export declare const omlxConnectionSchema: z.ZodPipe<z.ZodObject<{
|
|
23
|
+
baseUrl: z.ZodDefault<z.ZodString>;
|
|
24
|
+
apiKey: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
source: z.ZodLiteral<"secret">;
|
|
26
|
+
key: z.ZodString;
|
|
27
|
+
store: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
authType: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
none: "none";
|
|
31
|
+
bearer: "bearer";
|
|
32
|
+
}>>;
|
|
33
|
+
authMethod: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
none: "none";
|
|
35
|
+
"api-key": "api-key";
|
|
36
|
+
}>>;
|
|
37
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
38
|
+
defaultModel: z.ZodDefault<z.ZodString>;
|
|
39
|
+
preferredModelIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
40
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
41
|
+
authMethod: "none" | "api-key";
|
|
42
|
+
baseUrl: string;
|
|
43
|
+
timeout: number;
|
|
44
|
+
defaultModel: string;
|
|
45
|
+
preferredModelIds: string[];
|
|
46
|
+
apiKey?: {
|
|
47
|
+
source: "secret";
|
|
48
|
+
key: string;
|
|
49
|
+
store?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
authType?: "none" | "bearer" | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
baseUrl: string;
|
|
54
|
+
timeout: number;
|
|
55
|
+
defaultModel: string;
|
|
56
|
+
preferredModelIds: string[];
|
|
57
|
+
apiKey?: {
|
|
58
|
+
source: "secret";
|
|
59
|
+
key: string;
|
|
60
|
+
store?: string | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
authType?: "none" | "bearer" | undefined;
|
|
63
|
+
authMethod?: "none" | "api-key" | undefined;
|
|
64
|
+
}>>;
|
|
65
|
+
export type OmlxConnection = z.infer<typeof omlxConnectionSchema>;
|
|
66
|
+
export type OmlxApiKeyReference = z.infer<typeof omlxApiKeyReferenceSchema>;
|
|
67
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ai/providers/local/llm/omlx/config/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAO5B,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAChE,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAC7C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,iBAAiB,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;kBAAwB,CAAC;AAE/D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { SecretReferenceSchema } from '@vibesdotdev/ai/providers-runtime';
|
|
3
|
+
import { DEFAULT_OMLX_MODEL_ID, OMLX_PREFERRED_WIRE_IDS } from "../../model-ids.js";
|
|
4
|
+
export const DEFAULT_OMLX_BASE_URL = 'http://127.0.0.1:8000/v1';
|
|
5
|
+
export const DEFAULT_OMLX_TIMEOUT_MS = 60000;
|
|
6
|
+
export const OMLX_DISCOVERY_TIMEOUT_MS = 2000;
|
|
7
|
+
/**
|
|
8
|
+
* Default secret name for the oMLX server API key. oMLX enforces a key when
|
|
9
|
+
* `~/.omlx/api-key` exists (every unauthenticated `/v1` request answers
|
|
10
|
+
* HTTP 401 "API key required") and is open otherwise. Store the value with
|
|
11
|
+
* `vibes secrets set OMLX_API_KEY`; connections reference it, never inline it.
|
|
12
|
+
*/
|
|
13
|
+
export const DEFAULT_OMLX_API_KEY_SECRET = 'OMLX_API_KEY';
|
|
14
|
+
/**
|
|
15
|
+
* Credential REFERENCE for the optional API key. Only secret references are
|
|
16
|
+
* accepted: the runtime credential resolver refuses inline `apiKey` values
|
|
17
|
+
* and variant auth never carries plaintext.
|
|
18
|
+
*/
|
|
19
|
+
export const omlxApiKeyReferenceSchema = SecretReferenceSchema;
|
|
20
|
+
export const omlxConnectionSchema = z.object({
|
|
21
|
+
baseUrl: z.string().url().default(DEFAULT_OMLX_BASE_URL),
|
|
22
|
+
/** Optional. Required when the server enforces `~/.omlx/api-key`. */
|
|
23
|
+
apiKey: omlxApiKeyReferenceSchema.optional(),
|
|
24
|
+
/** Derived from `apiKey` when omitted: bearer with a key, none without. */
|
|
25
|
+
authType: z.enum(['none', 'bearer']).optional(),
|
|
26
|
+
/** Canonical AI owner selection; takes precedence over legacy authType. */
|
|
27
|
+
authMethod: z.enum(['none', 'api-key']).optional(),
|
|
28
|
+
timeout: z.number().int().positive().default(DEFAULT_OMLX_TIMEOUT_MS),
|
|
29
|
+
defaultModel: z.string().min(1).default(DEFAULT_OMLX_MODEL_ID),
|
|
30
|
+
preferredModelIds: z
|
|
31
|
+
.array(z.string().min(1))
|
|
32
|
+
.default([...OMLX_PREFERRED_WIRE_IDS])
|
|
33
|
+
}).transform(config => ({
|
|
34
|
+
...config,
|
|
35
|
+
authMethod: config.authMethod ?? (config.authType === 'none' ? 'none' : config.authType === 'bearer' || config.apiKey ? 'api-key' : 'none')
|
|
36
|
+
})).refine(config => config.authMethod !== 'api-key' || config.apiKey !== undefined, {
|
|
37
|
+
path: ['apiKey'], message: 'Bearer authentication requires an apiKey secret reference'
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/ai/providers/local/llm/omlx/config/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;A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C;CACvC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,GAAG,MAAM;IACT,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;CAC3I,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;IACpF,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,2DAA2D;CACtF,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as omlxProviderDescriptor } from './provider.omlx.descriptor.ts';
|
|
2
|
+
export { default as omlxProviderConfigDescriptor } from './config/config.omlx.descriptor.ts';
|
|
3
|
+
export { omlxConnectionSchema, DEFAULT_OMLX_BASE_URL, DEFAULT_OMLX_TIMEOUT_MS, OMLX_DISCOVERY_TIMEOUT_MS } from './config/schemas/index.ts';
|
|
4
|
+
export type { OmlxConnection } from './config/schemas/index.ts';
|
|
5
|
+
export { DEFAULT_OMLX_MODEL_ID, OMLX_MODEL_MAP, OMLX_PREFERRED_WIRE_IDS, resolveOmlxWireModelId } from './model-ids.ts';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/llm/omlx/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAC7F,OAAO,EACN,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACN,qBAAqB,EACrB,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as omlxProviderDescriptor } from "./provider.omlx.descriptor.js";
|
|
2
|
+
export { default as omlxProviderConfigDescriptor } from "./config/config.omlx.descriptor.js";
|
|
3
|
+
export { omlxConnectionSchema, DEFAULT_OMLX_BASE_URL, DEFAULT_OMLX_TIMEOUT_MS, OMLX_DISCOVERY_TIMEOUT_MS } from "./config/schemas/index.js";
|
|
4
|
+
export { DEFAULT_OMLX_MODEL_ID, OMLX_MODEL_MAP, OMLX_PREFERRED_WIRE_IDS, resolveOmlxWireModelId } from "./model-ids.js";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/llm/omlx/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAC7F,OAAO,EACN,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACN,qBAAqB,EACrB,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog nicknames → exact oMLX `/v1` wire ids.
|
|
3
|
+
*
|
|
4
|
+
* `mapModelId()` looks up the full canonical id (`omlx:<catalogId>`) first.
|
|
5
|
+
* Unmapped ids strip the `omlx:` prefix so live server ids such as
|
|
6
|
+
* `Qwen3.8-Flash-Next-oQ8` pass through unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export declare const OMLX_WIRE_QWEN38_FLASH_NEXT = "Qwen3.8-Flash-Next-oQ8";
|
|
9
|
+
export declare const OMLX_WIRE_QWEN35_08B = "Qwen3.5-0.8B-MLX-8bit";
|
|
10
|
+
/** Dogfood preference order: flash-next, then tiny 0.8B. */
|
|
11
|
+
export declare const OMLX_PREFERRED_WIRE_IDS: readonly ["Qwen3.8-Flash-Next-oQ8", "Qwen3.5-0.8B-MLX-8bit"];
|
|
12
|
+
export declare const DEFAULT_OMLX_MODEL_ID = "Qwen3.8-Flash-Next-oQ8";
|
|
13
|
+
export declare const OMLX_MODEL_MAP: {
|
|
14
|
+
[x: string]: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function stripOmlxPrefix(canonicalId: string): string;
|
|
17
|
+
export declare function resolveOmlxWireModelId(canonicalId: string): string;
|
|
18
|
+
export declare function preferredOmlxRank(modelId: string): number;
|
|
19
|
+
//# sourceMappingURL=model-ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-ids.d.ts","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/llm/omlx/model-ids.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,2BAA2B,CAAC;AACpE,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,4DAA4D;AAC5D,eAAO,MAAM,uBAAuB,8DAG1B,CAAC;AAEX,eAAO,MAAM,qBAAqB,2BAA8B,CAAC;AASjE,eAAO,MAAM,cAAc;;CAc1B,CAAC;AAEF,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM3D;AAED,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAUlE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGzD"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog nicknames → exact oMLX `/v1` wire ids.
|
|
3
|
+
*
|
|
4
|
+
* `mapModelId()` looks up the full canonical id (`omlx:<catalogId>`) first.
|
|
5
|
+
* Unmapped ids strip the `omlx:` prefix so live server ids such as
|
|
6
|
+
* `Qwen3.8-Flash-Next-oQ8` pass through unchanged.
|
|
7
|
+
*/
|
|
8
|
+
export const OMLX_WIRE_QWEN38_FLASH_NEXT = 'Qwen3.8-Flash-Next-oQ8';
|
|
9
|
+
export const OMLX_WIRE_QWEN35_08B = 'Qwen3.5-0.8B-MLX-8bit';
|
|
10
|
+
/** Dogfood preference order: flash-next, then tiny 0.8B. */
|
|
11
|
+
export const OMLX_PREFERRED_WIRE_IDS = [
|
|
12
|
+
OMLX_WIRE_QWEN38_FLASH_NEXT,
|
|
13
|
+
OMLX_WIRE_QWEN35_08B
|
|
14
|
+
];
|
|
15
|
+
export const DEFAULT_OMLX_MODEL_ID = OMLX_WIRE_QWEN38_FLASH_NEXT;
|
|
16
|
+
function aliases(catalogId, wireId) {
|
|
17
|
+
return {
|
|
18
|
+
[`omlx:${catalogId}`]: wireId,
|
|
19
|
+
[catalogId]: wireId
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export const OMLX_MODEL_MAP = {
|
|
23
|
+
...aliases('qwen3.8-flash-next-oq8', OMLX_WIRE_QWEN38_FLASH_NEXT),
|
|
24
|
+
...aliases('qwen3.8-flash-next', OMLX_WIRE_QWEN38_FLASH_NEXT),
|
|
25
|
+
...aliases('qwen3.8-flash', OMLX_WIRE_QWEN38_FLASH_NEXT),
|
|
26
|
+
...aliases('qwen3.8-27b-abliterated', OMLX_WIRE_QWEN38_FLASH_NEXT),
|
|
27
|
+
...aliases('qwen3.8-abliterated', OMLX_WIRE_QWEN38_FLASH_NEXT),
|
|
28
|
+
...aliases('qwen3.5-0.8b', OMLX_WIRE_QWEN35_08B),
|
|
29
|
+
...aliases('qwen3.5-08b', OMLX_WIRE_QWEN35_08B),
|
|
30
|
+
...aliases('qwen3.5-08.b', OMLX_WIRE_QWEN35_08B),
|
|
31
|
+
...aliases('qwen3.8', 'Qwen3.8-27B-8bit'),
|
|
32
|
+
...aliases('qwen3.8-27b', 'Qwen3.8-27B-8bit'),
|
|
33
|
+
...aliases('qwen3.5-35b', 'Qwen3.5-35B-A3B-4bit'),
|
|
34
|
+
...aliases('deepseek-v4-flash', OMLX_WIRE_QWEN38_FLASH_NEXT),
|
|
35
|
+
...aliases('deepseek-v4-flash-0731', OMLX_WIRE_QWEN38_FLASH_NEXT)
|
|
36
|
+
};
|
|
37
|
+
export function stripOmlxPrefix(canonicalId) {
|
|
38
|
+
const colonIdx = canonicalId.indexOf(':');
|
|
39
|
+
if (colonIdx === -1)
|
|
40
|
+
return canonicalId;
|
|
41
|
+
const prefix = canonicalId.slice(0, colonIdx);
|
|
42
|
+
if (prefix === 'omlx')
|
|
43
|
+
return canonicalId.slice(colonIdx + 1);
|
|
44
|
+
return canonicalId;
|
|
45
|
+
}
|
|
46
|
+
export function resolveOmlxWireModelId(canonicalId) {
|
|
47
|
+
const trimmed = canonicalId.trim();
|
|
48
|
+
if (trimmed.length === 0)
|
|
49
|
+
return DEFAULT_OMLX_MODEL_ID;
|
|
50
|
+
const stripped = stripOmlxPrefix(trimmed);
|
|
51
|
+
return (OMLX_MODEL_MAP[trimmed] ??
|
|
52
|
+
OMLX_MODEL_MAP[stripped] ??
|
|
53
|
+
OMLX_MODEL_MAP[`omlx:${stripped}`] ??
|
|
54
|
+
stripped);
|
|
55
|
+
}
|
|
56
|
+
export function preferredOmlxRank(modelId) {
|
|
57
|
+
const wire = resolveOmlxWireModelId(modelId);
|
|
58
|
+
return OMLX_PREFERRED_WIRE_IDS.findIndex(id => id === wire);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=model-ids.js.map
|
|
@@ -0,0 +1 @@
|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AAE,2BAA2B,CAAC;CACjE,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,WAAmB;IAClD,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,IAAI,QAAQ,KAAK,CAAC,CAAC;QAAE,OAAO,WAAW,CAAC;IACxC,MAAM,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC9C,IAAI,MAAM,KAAK,MAAM;QAAE,OAAO,WAAW,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;IAC9D,OAAO,WAAW,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,WAAmB;IACzD,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IACnC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,qBAAqB,CAAC;IACvD,MAAM,QAAQ,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CACN,cAAc,CAAC,OAAO,CAAC;QACvB,cAAc,CAAC,QAAQ,CAAC;QACxB,cAAc,CAAC,QAAQ,QAAQ,EAAE,CAAC;QAClC,QAAQ,CACR,CAAC;AACH,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAe;IAChD,MAAM,IAAI,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAC7C,OAAO,uBAAuB,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/** Auth method ids; the variant tag `auth:<id>` must match. */
|
|
2
|
+
export declare const OMLX_AUTH_METHOD_NONE = "none";
|
|
3
|
+
export declare const OMLX_AUTH_METHOD_API_KEY = "api-key";
|
|
4
|
+
/** Bearer twins must outrank their open siblings for the same modality. */
|
|
5
|
+
export declare const OMLX_API_KEY_VARIANT_PRIORITY_BOOST = 100;
|
|
6
|
+
declare const _default: {
|
|
7
|
+
id: string;
|
|
8
|
+
kind: "ai/provider";
|
|
9
|
+
name: string;
|
|
10
|
+
version: string;
|
|
11
|
+
connectionSchema: unknown;
|
|
12
|
+
priority: number;
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
defaults?: Record<string, unknown> | undefined;
|
|
16
|
+
baseUrlTemplate?: string | undefined;
|
|
17
|
+
capabilities?: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
modalities?: ("text" | "evaluation" | "embedding" | "transcription" | "audio" | "vision" | "image" | "video")[] | undefined;
|
|
20
|
+
authType?: "none" | "bearer" | "api_key" | "oauth" | "basic" | undefined;
|
|
21
|
+
authMethods?: {
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
id: string;
|
|
24
|
+
type: "none" | "bearer" | "api_key" | "oauth" | "basic";
|
|
25
|
+
label: string;
|
|
26
|
+
credentialFields: string[];
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
tokenSource?: "none" | "runtime" | "credential" | "oauth-browser" | "oauth-device-code" | undefined;
|
|
30
|
+
recommended?: boolean | undefined;
|
|
31
|
+
docsUrl?: string | undefined;
|
|
32
|
+
scopes?: string[] | undefined;
|
|
33
|
+
execution?: {
|
|
34
|
+
credentialCustodies: ("consumer" | "server")[];
|
|
35
|
+
billingOwners: ("user" | "organization" | "platform")[];
|
|
36
|
+
} | undefined;
|
|
37
|
+
}[] | undefined;
|
|
38
|
+
streaming?: boolean | undefined;
|
|
39
|
+
tools?: boolean | undefined;
|
|
40
|
+
vision?: boolean | undefined;
|
|
41
|
+
jsonMode?: boolean | undefined;
|
|
42
|
+
functionCalling?: boolean | undefined;
|
|
43
|
+
contextWindow?: number | undefined;
|
|
44
|
+
maxOutputTokens?: number | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
category?: "cloud" | "local" | "hybrid" | undefined;
|
|
47
|
+
hardware?: ("cloud" | "consumer")[] | undefined;
|
|
48
|
+
icon?: string | undefined;
|
|
49
|
+
branding?: {
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
logo?: {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
kind: "wordmark" | "mark" | "lockup" | "badge";
|
|
54
|
+
format: "svg";
|
|
55
|
+
path: string;
|
|
56
|
+
sourceUrl: string;
|
|
57
|
+
sourcePageUrl: string;
|
|
58
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
59
|
+
theme: "any" | "light" | "dark";
|
|
60
|
+
usageNotes?: string | undefined;
|
|
61
|
+
licenseNotes?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
darkLogo?: {
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
kind: "wordmark" | "mark" | "lockup" | "badge";
|
|
66
|
+
format: "svg";
|
|
67
|
+
path: string;
|
|
68
|
+
sourceUrl: string;
|
|
69
|
+
sourcePageUrl: string;
|
|
70
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
71
|
+
theme: "any" | "light" | "dark";
|
|
72
|
+
usageNotes?: string | undefined;
|
|
73
|
+
licenseNotes?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
wordmark?: {
|
|
76
|
+
[x: string]: unknown;
|
|
77
|
+
kind: "wordmark" | "mark" | "lockup" | "badge";
|
|
78
|
+
format: "svg";
|
|
79
|
+
path: string;
|
|
80
|
+
sourceUrl: string;
|
|
81
|
+
sourcePageUrl: string;
|
|
82
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
83
|
+
theme: "any" | "light" | "dark";
|
|
84
|
+
usageNotes?: string | undefined;
|
|
85
|
+
licenseNotes?: string | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
darkWordmark?: {
|
|
88
|
+
[x: string]: unknown;
|
|
89
|
+
kind: "wordmark" | "mark" | "lockup" | "badge";
|
|
90
|
+
format: "svg";
|
|
91
|
+
path: string;
|
|
92
|
+
sourceUrl: string;
|
|
93
|
+
sourcePageUrl: string;
|
|
94
|
+
source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
|
|
95
|
+
theme: "any" | "light" | "dark";
|
|
96
|
+
usageNotes?: string | undefined;
|
|
97
|
+
licenseNotes?: string | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
sourcePageUrl?: string | undefined;
|
|
100
|
+
usageNotes?: string | undefined;
|
|
101
|
+
} | undefined;
|
|
102
|
+
docsUrl?: string | undefined;
|
|
103
|
+
tags?: string[] | undefined;
|
|
104
|
+
variants?: {
|
|
105
|
+
id: string;
|
|
106
|
+
label: string;
|
|
107
|
+
transport: string;
|
|
108
|
+
specId: string;
|
|
109
|
+
endpoint: string;
|
|
110
|
+
auth: {
|
|
111
|
+
kind: "none";
|
|
112
|
+
} | {
|
|
113
|
+
kind: "bearer";
|
|
114
|
+
token: string | {
|
|
115
|
+
source: "secret";
|
|
116
|
+
key: string;
|
|
117
|
+
store?: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
scheme?: string | undefined;
|
|
120
|
+
} | {
|
|
121
|
+
kind: "api-key-header";
|
|
122
|
+
header: string;
|
|
123
|
+
value: string | {
|
|
124
|
+
source: "secret";
|
|
125
|
+
key: string;
|
|
126
|
+
store?: string | undefined;
|
|
127
|
+
};
|
|
128
|
+
} | {
|
|
129
|
+
kind: "basic";
|
|
130
|
+
username: string;
|
|
131
|
+
password: string | {
|
|
132
|
+
source: "secret";
|
|
133
|
+
key: string;
|
|
134
|
+
store?: string | undefined;
|
|
135
|
+
};
|
|
136
|
+
} | {
|
|
137
|
+
kind: "cf-binding";
|
|
138
|
+
bindingName: string;
|
|
139
|
+
};
|
|
140
|
+
modelIdRule: {
|
|
141
|
+
kind: "strip-prefix";
|
|
142
|
+
} | {
|
|
143
|
+
kind: "passthrough";
|
|
144
|
+
} | {
|
|
145
|
+
kind: "explicit";
|
|
146
|
+
modelMap: Record<string, string>;
|
|
147
|
+
};
|
|
148
|
+
priority: number;
|
|
149
|
+
enabled: boolean;
|
|
150
|
+
description?: string | undefined;
|
|
151
|
+
modalities?: ("text" | "evaluation" | "embedding" | "transcription" | "audio" | "image" | "video" | "speech" | "ocr")[] | undefined;
|
|
152
|
+
inheritEnv?: string[] | undefined;
|
|
153
|
+
requiredConfiguration?: string[] | undefined;
|
|
154
|
+
authMethodId?: string | undefined;
|
|
155
|
+
execution?: {
|
|
156
|
+
generationLocations: ("consumer" | "server")[];
|
|
157
|
+
headless: boolean;
|
|
158
|
+
} | undefined;
|
|
159
|
+
tags?: string[] | undefined;
|
|
160
|
+
models?: {
|
|
161
|
+
tags?: string[] | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
additionalHeaders?: Record<string, string> | undefined;
|
|
164
|
+
capabilities?: {
|
|
165
|
+
supportsToolChoiceRequired?: boolean | undefined;
|
|
166
|
+
} | undefined;
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
localDiscovery?: {
|
|
169
|
+
defaultRootDir: string;
|
|
170
|
+
modelGlob: string;
|
|
171
|
+
descriptorFilename?: string | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
loadedModels?: {
|
|
174
|
+
path: string;
|
|
175
|
+
listPath: string;
|
|
176
|
+
idField: string;
|
|
177
|
+
loadedField: string;
|
|
178
|
+
loginPath?: string | undefined;
|
|
179
|
+
loginKeyField?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
cloudStorageDiscovery?: {
|
|
182
|
+
requiredCapabilities: string[];
|
|
183
|
+
modelGlob?: string | undefined;
|
|
184
|
+
descriptorFilename?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
} & {
|
|
187
|
+
loadedModels: {
|
|
188
|
+
path: string;
|
|
189
|
+
loginPath: string;
|
|
190
|
+
loginKeyField: string;
|
|
191
|
+
listPath: string;
|
|
192
|
+
idField: string;
|
|
193
|
+
loadedField: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
export default _default;
|
|
197
|
+
//# sourceMappingURL=provider.omlx.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.omlx.descriptor.d.ts","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/llm/omlx/provider.omlx.descriptor.ts"],"names":[],"mappings":"AAsCA,+DAA+D;AAC/D,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAC5C,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAElD,2EAA2E;AAC3E,eAAO,MAAM,mCAAmC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsJvD,wBASG"}
|