@vibesdotdev/integrations-mlx 0.0.0-stage → 1.0.0-rc.4

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.
Files changed (67) hide show
  1. package/LICENSE +126 -0
  2. package/README.md +20 -2
  3. package/dist/ai/index.d.ts +5 -0
  4. package/dist/ai/index.d.ts.map +1 -0
  5. package/dist/ai/index.js +5 -0
  6. package/dist/ai/index.js.map +1 -0
  7. package/dist/ai/provider.consumer.plugin.d.ts +6 -0
  8. package/dist/ai/provider.consumer.plugin.d.ts.map +1 -0
  9. package/dist/ai/provider.consumer.plugin.js +96 -0
  10. package/dist/ai/provider.consumer.plugin.js.map +1 -0
  11. package/dist/ai/provider.plugin.d.ts +2 -0
  12. package/dist/ai/provider.plugin.d.ts.map +1 -0
  13. package/dist/ai/provider.plugin.js +2 -0
  14. package/dist/ai/provider.plugin.js.map +1 -0
  15. package/dist/ai/providers/local/image/mlx/config/config.mlx.descriptor.d.ts +4206 -0
  16. package/dist/ai/providers/local/image/mlx/config/config.mlx.descriptor.d.ts.map +1 -0
  17. package/dist/ai/providers/local/image/mlx/config/config.mlx.descriptor.js +53 -0
  18. package/dist/ai/providers/local/image/mlx/config/config.mlx.descriptor.js.map +1 -0
  19. package/dist/ai/providers/local/image/mlx/config/schemas/index.d.ts +21 -0
  20. package/dist/ai/providers/local/image/mlx/config/schemas/index.d.ts.map +1 -0
  21. package/dist/ai/providers/local/image/mlx/config/schemas/index.js +11 -0
  22. package/dist/ai/providers/local/image/mlx/config/schemas/index.js.map +1 -0
  23. package/dist/ai/providers/local/image/mlx/index.d.ts +5 -0
  24. package/dist/ai/providers/local/image/mlx/index.d.ts.map +1 -0
  25. package/dist/ai/providers/local/image/mlx/index.js +4 -0
  26. package/dist/ai/providers/local/image/mlx/index.js.map +1 -0
  27. package/dist/ai/providers/local/image/mlx/provider.mlx.descriptor.d.ts +183 -0
  28. package/dist/ai/providers/local/image/mlx/provider.mlx.descriptor.d.ts.map +1 -0
  29. package/dist/ai/providers/local/image/mlx/provider.mlx.descriptor.js +55 -0
  30. package/dist/ai/providers/local/image/mlx/provider.mlx.descriptor.js.map +1 -0
  31. package/dist/ai/providers/mlx/detection/mlx-system-detection.impl.consumer.d.ts +14 -0
  32. package/dist/ai/providers/mlx/detection/mlx-system-detection.impl.consumer.d.ts.map +1 -0
  33. package/dist/ai/providers/mlx/detection/mlx-system-detection.impl.consumer.js +33 -0
  34. package/dist/ai/providers/mlx/detection/mlx-system-detection.impl.consumer.js.map +1 -0
  35. package/dist/ai/providers/mlx/docs/ai.providers.mlx.docs.descriptor.d.ts +4 -0
  36. package/dist/ai/providers/mlx/docs/ai.providers.mlx.docs.descriptor.d.ts.map +1 -0
  37. package/dist/ai/providers/mlx/docs/ai.providers.mlx.docs.descriptor.js +25 -0
  38. package/dist/ai/providers/mlx/docs/ai.providers.mlx.docs.descriptor.js.map +1 -0
  39. package/dist/ai/providers/mlx/index.d.ts +5 -0
  40. package/dist/ai/providers/mlx/index.d.ts.map +1 -0
  41. package/dist/ai/providers/mlx/index.js +5 -0
  42. package/dist/ai/providers/mlx/index.js.map +1 -0
  43. package/dist/ai/providers/mlx/mlx.provider.impl.consumer.d.ts +29 -0
  44. package/dist/ai/providers/mlx/mlx.provider.impl.consumer.d.ts.map +1 -0
  45. package/dist/ai/providers/mlx/mlx.provider.impl.consumer.js +114 -0
  46. package/dist/ai/providers/mlx/mlx.provider.impl.consumer.js.map +1 -0
  47. package/dist/ai/providers/mlx/process.consumer.d.ts +7 -0
  48. package/dist/ai/providers/mlx/process.consumer.d.ts.map +1 -0
  49. package/dist/ai/providers/mlx/process.consumer.js +22 -0
  50. package/dist/ai/providers/mlx/process.consumer.js.map +1 -0
  51. package/dist/ai/providers/mlx/recommendations.d.ts +21 -0
  52. package/dist/ai/providers/mlx/recommendations.d.ts.map +1 -0
  53. package/dist/ai/providers/mlx/recommendations.js +58 -0
  54. package/dist/ai/providers/mlx/recommendations.js.map +1 -0
  55. package/dist/ai/specs/mlx-image-cli/mlx-image-cli.spec.descriptor.d.ts +36 -0
  56. package/dist/ai/specs/mlx-image-cli/mlx-image-cli.spec.descriptor.d.ts.map +1 -0
  57. package/dist/ai/specs/mlx-image-cli/mlx-image-cli.spec.descriptor.js +33 -0
  58. package/dist/ai/specs/mlx-image-cli/mlx-image-cli.spec.descriptor.js.map +1 -0
  59. package/dist/ai/specs/mlx-image-cli/mlx-image-cli.spec.impl.d.ts +41 -0
  60. package/dist/ai/specs/mlx-image-cli/mlx-image-cli.spec.impl.d.ts.map +1 -0
  61. package/dist/ai/specs/mlx-image-cli/mlx-image-cli.spec.impl.js +109 -0
  62. package/dist/ai/specs/mlx-image-cli/mlx-image-cli.spec.impl.js.map +1 -0
  63. package/dist/index.d.ts +2 -0
  64. package/dist/index.d.ts.map +1 -0
  65. package/dist/index.js +2 -0
  66. package/dist/index.js.map +1 -0
  67. package/package.json +108 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.mlx.descriptor.d.ts","sourceRoot":"","sources":["../../../../../../../src/ai/providers/local/image/mlx/config/config.mlx.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAqD29pD,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;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAjD7rtpB,wBAgDG"}
@@ -0,0 +1,53 @@
1
+ import { createProviderConfigDescriptor } from '@vibesdotdev/ai/providers-runtime/core/config-descriptor';
2
+ import mlxProviderDescriptor from "../provider.mlx.descriptor.js";
3
+ import { DEFAULT_MLX_EXECUTABLE, mlxConnectionSchema } from "./schemas/index.js";
4
+ export default createProviderConfigDescriptor({
5
+ provider: mlxProviderDescriptor,
6
+ schema: mlxConnectionSchema,
7
+ optionLabel: 'Apple MLX',
8
+ optionDescription: 'Local mflux image generation on Apple Silicon',
9
+ optionIcon: '🍎',
10
+ fields: {
11
+ 'configuration.executable': {
12
+ ui: {
13
+ label: 'mflux executable',
14
+ description: 'Command or absolute path for mflux-generate',
15
+ placeholder: DEFAULT_MLX_EXECUTABLE,
16
+ component: 'input',
17
+ group: 'connection',
18
+ order: 10
19
+ }
20
+ },
21
+ 'configuration.modelsDir': {
22
+ ui: {
23
+ label: 'Models directory',
24
+ description: 'Optional local model root. Leave empty to use the Hugging Face hub cache.',
25
+ placeholder: '~/.cache/huggingface/hub',
26
+ component: 'input',
27
+ group: 'connection',
28
+ order: 11
29
+ }
30
+ },
31
+ 'configuration.quantization': {
32
+ ui: {
33
+ label: 'Quantization',
34
+ description: 'Consumer-memory tradeoff for local Apple Silicon inference',
35
+ placeholder: '4bit',
36
+ component: 'select',
37
+ group: 'connection',
38
+ order: 12
39
+ }
40
+ },
41
+ 'configuration.timeout': {
42
+ ui: {
43
+ label: 'Timeout',
44
+ description: 'Process timeout in milliseconds',
45
+ placeholder: '120000',
46
+ component: 'number',
47
+ group: 'connection',
48
+ order: 13
49
+ }
50
+ }
51
+ }
52
+ });
53
+ //# sourceMappingURL=config.mlx.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.mlx.descriptor.js","sourceRoot":"","sources":["../../../../../../../src/ai/providers/local/image/mlx/config/config.mlx.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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XECUTABLE = "mflux-generate";
3
+ export declare const DEFAULT_MLX_TIMEOUT_MS = 120000;
4
+ export declare const mlxQuantizationSchema: z.ZodEnum<{
5
+ "4bit": "4bit";
6
+ "8bit": "8bit";
7
+ none: "none";
8
+ }>;
9
+ export declare const mlxConnectionSchema: z.ZodObject<{
10
+ executable: z.ZodDefault<z.ZodString>;
11
+ modelsDir: z.ZodOptional<z.ZodString>;
12
+ quantization: z.ZodDefault<z.ZodEnum<{
13
+ "4bit": "4bit";
14
+ "8bit": "8bit";
15
+ none: "none";
16
+ }>>;
17
+ timeout: z.ZodDefault<z.ZodNumber>;
18
+ }, z.core.$strip>;
19
+ export type MLXConnection = z.infer<typeof mlxConnectionSchema>;
20
+ export type MlxQuantization = z.infer<typeof mlxQuantizationSchema>;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ai/providers/local/image/mlx/config/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAC7C,eAAO,MAAM,qBAAqB;;;;EAAmC,CAAC;AAEtE,eAAO,MAAM,mBAAmB;;;;;;;;;iBAK9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as z from 'zod/v4';
2
+ export const DEFAULT_MLX_EXECUTABLE = 'mflux-generate';
3
+ export const DEFAULT_MLX_TIMEOUT_MS = 120000;
4
+ export const mlxQuantizationSchema = z.enum(['4bit', '8bit', 'none']);
5
+ export const mlxConnectionSchema = z.object({
6
+ executable: z.string().trim().min(1).default(DEFAULT_MLX_EXECUTABLE),
7
+ modelsDir: z.string().optional(),
8
+ quantization: mlxQuantizationSchema.default('4bit'),
9
+ timeout: z.number().int().positive().default(DEFAULT_MLX_TIMEOUT_MS)
10
+ });
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/ai/providers/local/image/mlx/config/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AACvD,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC;AAC7C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEtE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IACpE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,YAAY,EAAE,qBAAqB,CAAC,OAAO,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,sBAAsB,CAAC;CACpE,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { default as mlxProviderDescriptor } from './provider.mlx.descriptor.ts';
2
+ export { default as mlxProviderConfigDescriptor } from './config/config.mlx.descriptor.ts';
3
+ export { mlxConnectionSchema, mlxQuantizationSchema, DEFAULT_MLX_EXECUTABLE, DEFAULT_MLX_TIMEOUT_MS } from './config/schemas/index.ts';
4
+ export type { MLXConnection, MlxQuantization } from './config/schemas/index.ts';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/image/mlx/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EACN,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as mlxProviderDescriptor } from "./provider.mlx.descriptor.js";
2
+ export { default as mlxProviderConfigDescriptor } from "./config/config.mlx.descriptor.js";
3
+ export { mlxConnectionSchema, mlxQuantizationSchema, DEFAULT_MLX_EXECUTABLE, DEFAULT_MLX_TIMEOUT_MS } from "./config/schemas/index.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/image/mlx/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EACN,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,183 @@
1
+ declare const _default: {
2
+ id: string;
3
+ kind: "ai/provider";
4
+ name: string;
5
+ version: string;
6
+ connectionSchema: unknown;
7
+ priority: number;
8
+ enabled: boolean;
9
+ description?: string | undefined;
10
+ defaults?: Record<string, unknown> | undefined;
11
+ baseUrlTemplate?: string | undefined;
12
+ capabilities?: {
13
+ [x: string]: unknown;
14
+ modalities?: ("vision" | "image" | "text" | "audio" | "video" | "embedding" | "transcription" | "evaluation")[] | undefined;
15
+ authType?: "none" | "api_key" | "bearer" | "oauth" | "basic" | undefined;
16
+ authMethods?: {
17
+ [x: string]: unknown;
18
+ id: string;
19
+ type: "none" | "api_key" | "bearer" | "oauth" | "basic";
20
+ label: string;
21
+ credentialFields: string[];
22
+ enabled: boolean;
23
+ description?: string | undefined;
24
+ tokenSource?: "none" | "runtime" | "credential" | "oauth-browser" | "oauth-device-code" | undefined;
25
+ recommended?: boolean | undefined;
26
+ docsUrl?: string | undefined;
27
+ scopes?: string[] | undefined;
28
+ execution?: {
29
+ credentialCustodies: ("consumer" | "server")[];
30
+ billingOwners: ("user" | "organization" | "platform")[];
31
+ } | undefined;
32
+ }[] | undefined;
33
+ streaming?: boolean | undefined;
34
+ tools?: boolean | undefined;
35
+ vision?: boolean | undefined;
36
+ jsonMode?: boolean | undefined;
37
+ functionCalling?: boolean | undefined;
38
+ contextWindow?: number | undefined;
39
+ maxOutputTokens?: number | undefined;
40
+ } | undefined;
41
+ category?: "cloud" | "local" | "hybrid" | undefined;
42
+ hardware?: ("cloud" | "consumer")[] | undefined;
43
+ icon?: string | undefined;
44
+ branding?: {
45
+ [x: string]: unknown;
46
+ logo?: {
47
+ [x: string]: unknown;
48
+ kind: "wordmark" | "mark" | "lockup" | "badge";
49
+ format: "svg";
50
+ path: string;
51
+ sourceUrl: string;
52
+ sourcePageUrl: string;
53
+ source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
54
+ theme: "any" | "light" | "dark";
55
+ usageNotes?: string | undefined;
56
+ licenseNotes?: string | undefined;
57
+ } | undefined;
58
+ darkLogo?: {
59
+ [x: string]: unknown;
60
+ kind: "wordmark" | "mark" | "lockup" | "badge";
61
+ format: "svg";
62
+ path: string;
63
+ sourceUrl: string;
64
+ sourcePageUrl: string;
65
+ source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
66
+ theme: "any" | "light" | "dark";
67
+ usageNotes?: string | undefined;
68
+ licenseNotes?: string | undefined;
69
+ } | undefined;
70
+ wordmark?: {
71
+ [x: string]: unknown;
72
+ kind: "wordmark" | "mark" | "lockup" | "badge";
73
+ format: "svg";
74
+ path: string;
75
+ sourceUrl: string;
76
+ sourcePageUrl: string;
77
+ source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
78
+ theme: "any" | "light" | "dark";
79
+ usageNotes?: string | undefined;
80
+ licenseNotes?: string | undefined;
81
+ } | undefined;
82
+ darkWordmark?: {
83
+ [x: string]: unknown;
84
+ kind: "wordmark" | "mark" | "lockup" | "badge";
85
+ format: "svg";
86
+ path: string;
87
+ sourceUrl: string;
88
+ sourcePageUrl: string;
89
+ source: "official-brand-page" | "official-brand-kit" | "official-homepage-inline" | "official-cdn" | "official-github";
90
+ theme: "any" | "light" | "dark";
91
+ usageNotes?: string | undefined;
92
+ licenseNotes?: string | undefined;
93
+ } | undefined;
94
+ sourcePageUrl?: string | undefined;
95
+ usageNotes?: string | undefined;
96
+ } | undefined;
97
+ docsUrl?: string | undefined;
98
+ tags?: string[] | undefined;
99
+ variants?: {
100
+ id: string;
101
+ label: string;
102
+ transport: string;
103
+ specId: string;
104
+ endpoint: string;
105
+ auth: {
106
+ kind: "none";
107
+ } | {
108
+ kind: "bearer";
109
+ token: string | {
110
+ source: "secret";
111
+ key: string;
112
+ store?: string | undefined;
113
+ };
114
+ scheme?: string | undefined;
115
+ } | {
116
+ kind: "api-key-header";
117
+ header: string;
118
+ value: string | {
119
+ source: "secret";
120
+ key: string;
121
+ store?: string | undefined;
122
+ };
123
+ } | {
124
+ kind: "basic";
125
+ username: string;
126
+ password: string | {
127
+ source: "secret";
128
+ key: string;
129
+ store?: string | undefined;
130
+ };
131
+ } | {
132
+ kind: "cf-binding";
133
+ bindingName: string;
134
+ };
135
+ modelIdRule: {
136
+ kind: "strip-prefix";
137
+ } | {
138
+ kind: "passthrough";
139
+ } | {
140
+ kind: "explicit";
141
+ modelMap: Record<string, string>;
142
+ };
143
+ priority: number;
144
+ enabled: boolean;
145
+ description?: string | undefined;
146
+ modalities?: ("image" | "text" | "audio" | "video" | "embedding" | "transcription" | "evaluation" | "speech" | "ocr")[] | undefined;
147
+ inheritEnv?: string[] | undefined;
148
+ requiredConfiguration?: string[] | undefined;
149
+ authMethodId?: string | undefined;
150
+ execution?: {
151
+ generationLocations: ("consumer" | "server")[];
152
+ headless: boolean;
153
+ } | undefined;
154
+ tags?: string[] | undefined;
155
+ models?: {
156
+ tags?: string[] | undefined;
157
+ } | undefined;
158
+ additionalHeaders?: Record<string, string> | undefined;
159
+ capabilities?: {
160
+ supportsToolChoiceRequired?: boolean | undefined;
161
+ } | undefined;
162
+ }[] | undefined;
163
+ localDiscovery?: {
164
+ defaultRootDir: string;
165
+ modelGlob: string;
166
+ descriptorFilename?: string | undefined;
167
+ } | undefined;
168
+ loadedModels?: {
169
+ path: string;
170
+ listPath: string;
171
+ idField: string;
172
+ loadedField: string;
173
+ loginPath?: string | undefined;
174
+ loginKeyField?: string | undefined;
175
+ } | undefined;
176
+ cloudStorageDiscovery?: {
177
+ requiredCapabilities: string[];
178
+ modelGlob?: string | undefined;
179
+ descriptorFilename?: string | undefined;
180
+ } | undefined;
181
+ };
182
+ export default _default;
183
+ //# sourceMappingURL=provider.mlx.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.mlx.descriptor.d.ts","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/image/mlx/provider.mlx.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wBA+CG"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Apple MLX / mflux image provider type descriptor.
3
+ *
4
+ * Pure data: consumer Apple Silicon only. Execution is process-scoped.
5
+ */
6
+ import { createAIProviderTypeDescriptor } from '@vibesdotdev/ai/providers-runtime/core/type-descriptor';
7
+ import { DEFAULT_MLX_EXECUTABLE, DEFAULT_MLX_TIMEOUT_MS, mlxConnectionSchema } from "./config/schemas/index.js";
8
+ export default createAIProviderTypeDescriptor({
9
+ id: 'mlx',
10
+ version: '0.1.0-rc.0',
11
+ name: 'Apple MLX',
12
+ description: 'Apple Silicon consumer image generation through the local mflux CLI. Requires an Apple GPU; models are files on disk, not a hosted catalog.',
13
+ connectionSchema: mlxConnectionSchema,
14
+ defaults: {
15
+ executable: DEFAULT_MLX_EXECUTABLE,
16
+ quantization: '4bit',
17
+ timeout: DEFAULT_MLX_TIMEOUT_MS
18
+ },
19
+ capabilities: {
20
+ modalities: ['image'],
21
+ authType: 'none',
22
+ streaming: false,
23
+ tools: false,
24
+ vision: false,
25
+ jsonMode: false,
26
+ functionCalling: false
27
+ },
28
+ category: 'local',
29
+ hardware: ['consumer'],
30
+ icon: '🍎',
31
+ docsUrl: 'https://github.com/filipstrand/mflux',
32
+ priority: 80,
33
+ enabled: true,
34
+ tags: ['local', 'image', 'apple-silicon', 'consumer', 'mlx'],
35
+ localDiscovery: {
36
+ defaultRootDir: '{home}/.cache/huggingface/hub',
37
+ modelGlob: 'models--*/*'
38
+ },
39
+ variants: [
40
+ {
41
+ id: 'mlx-image-cli',
42
+ label: 'MLX image via mflux',
43
+ description: 'Local mflux-generate process on Apple Silicon; PNG written to a transport temp file.',
44
+ transport: 'process',
45
+ specId: 'mlx-image-cli',
46
+ modalities: ['image'],
47
+ endpoint: '{executable}',
48
+ auth: { kind: 'none' },
49
+ modelIdRule: { kind: 'strip-prefix' },
50
+ priority: 10,
51
+ enabled: true
52
+ }
53
+ ]
54
+ });
55
+ //# sourceMappingURL=provider.mlx.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.mlx.descriptor.js","sourceRoot":"","sources":["../../../../../../src/ai/providers/local/image/mlx/provider.mlx.descriptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,wDAAwD,CAAC;AACxG,OAAO,EACN,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,MAAM,2BAA2B,CAAC;AAEnC,eAAe,8BAA8B,CAAC;IAC7C,EAAE,EAAE,KAAK;IACT,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,WAAW;IACjB,WAAW,EACV,6IAA6I;IAC9I,gBAAgB,EAAE,mBAAmB;IACrC,QAAQ,EAAE;QACT,UAAU,EAAE,sBAAsB;QAClC,YAAY,EAAE,MAAM;QACpB,OAAO,EAAE,sBAAsB;KAC/B;IACD,YAAY,EAAE;QACb,UAAU,EAAE,CAAC,OAAO,CAAC;QACrB,QAAQ,EAAE,MAAM;QAChB,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,KAAK;QACf,eAAe,EAAE,KAAK;KACtB;IACD,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,sCAAsC;IAC/C,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,KAAK,CAAC;IAC5D,cAAc,EAAE;QACf,cAAc,EAAE,+BAA+B;QAC/C,SAAS,EAAE,aAAa;KACxB;IACD,QAAQ,EAAE;QACT;YACC,EAAE,EAAE,eAAe;YACnB,KAAK,EAAE,qBAAqB;YAC5B,WAAW,EAAE,sFAAsF;YACnG,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,QAAQ,EAAE,cAAc;YACxB,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACtB,WAAW,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;YACrC,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,IAAI;SACb;KACD;CACD,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { DetectedProvider } from '@vibesdotdev/ai/providers-runtime/client/types';
2
+ import type { KindContext, VibesRuntime } from '@vibesdotdev/kernel';
3
+ import type { AIProviderDetectionDescriptor, ProviderDetectionImplementation } from '@vibesdotdev/ai/providers-runtime/schemas';
4
+ export declare function detectMlxSystem(runtime: VibesRuntime): Promise<DetectedProvider | null>;
5
+ /**
6
+ * The `ai/provider-detection` implementation: the runtime constructs it with
7
+ * the kind context it resolved, and detection probes through that runtime.
8
+ */
9
+ export declare class MlxSystemDetection implements ProviderDetectionImplementation {
10
+ private readonly context;
11
+ constructor(_descriptor: AIProviderDetectionDescriptor, context: KindContext<VibesRuntime>);
12
+ detect(): Promise<DetectedProvider | null>;
13
+ }
14
+ //# sourceMappingURL=mlx-system-detection.impl.consumer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mlx-system-detection.impl.consumer.d.ts","sourceRoot":"","sources":["../../../../../src/ai/providers/mlx/detection/mlx-system-detection.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAEvF,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAMhI,wBAAsB,eAAe,CACpC,OAAO,EAAE,YAAY,GACnB,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAelC;AAED;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,+BAA+B;IAGxE,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADxB,WAAW,EAAE,6BAA6B,EACzB,OAAO,EAAE,WAAW,CAAC,YAAY,CAAC;IAGpD,MAAM,IAAI,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAG1C"}
@@ -0,0 +1,33 @@
1
+ import { observeMlxProcess } from "../process.consumer.js";
2
+ import { DEFAULT_MLX_EXECUTABLE, DEFAULT_MLX_TIMEOUT_MS } from "../../local/image/mlx/config/schemas/index.js";
3
+ export async function detectMlxSystem(runtime) {
4
+ const executable = (await observeMlxProcess(runtime, 'sh', ['-c', 'command -v "$1"', 'vibes-command-probe', DEFAULT_MLX_EXECUTABLE])).stdout.trim() || DEFAULT_MLX_EXECUTABLE;
5
+ if (!(await observeMlxProcess(runtime, executable, ['--help'])).ok)
6
+ return null;
7
+ return {
8
+ providerType: 'mlx',
9
+ name: 'Apple MLX (mflux)',
10
+ description: 'Local mflux image generation on Apple Silicon consumer hardware',
11
+ status: 'available',
12
+ models: [],
13
+ configuration: {
14
+ executable,
15
+ quantization: '4bit',
16
+ timeout: DEFAULT_MLX_TIMEOUT_MS
17
+ }
18
+ };
19
+ }
20
+ /**
21
+ * The `ai/provider-detection` implementation: the runtime constructs it with
22
+ * the kind context it resolved, and detection probes through that runtime.
23
+ */
24
+ export class MlxSystemDetection {
25
+ context;
26
+ constructor(_descriptor, context) {
27
+ this.context = context;
28
+ }
29
+ detect() {
30
+ return detectMlxSystem(this.context.runtime);
31
+ }
32
+ }
33
+ //# sourceMappingURL=mlx-system-detection.impl.consumer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mlx-system-detection.impl.consumer.js","sourceRoot":"","sources":["../../../../../src/ai/providers/mlx/detection/mlx-system-detection.impl.consumer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EACN,sBAAsB,EACtB,sBAAsB,EACtB,MAAM,+CAA+C,CAAC;AAEvD,MAAM,CAAC,KAAK,UAAU,eAAe,CACpC,OAAqB;IAErB,MAAM,UAAU,GAAG,CAAC,MAAM,iBAAiB,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,sBAAsB,CAAC;IAC9K,IAAI,CAAC,CAAC,MAAM,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;QAAE,OAAO,IAAI,CAAC;IAChF,OAAO;QACN,YAAY,EAAE,KAAK;QACnB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,iEAAiE;QAC9E,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,EAAE;QACV,aAAa,EAAE;YACd,UAAU;YACV,YAAY,EAAE,MAAM;YACpB,OAAO,EAAE,sBAAsB;SAC/B;KACD,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAGZ;IAFlB,YACC,WAA0C,EACzB,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;IACjD,CAAC;IAEJ,MAAM;QACL,OAAO,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;CACD"}
@@ -0,0 +1,4 @@
1
+ import type { DocsTopicDescriptor } from '@vibesdotdev/docs-contracts';
2
+ declare const descriptor: DocsTopicDescriptor;
3
+ export default descriptor;
4
+ //# sourceMappingURL=ai.providers.mlx.docs.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.providers.mlx.docs.descriptor.d.ts","sourceRoot":"","sources":["../../../../../src/ai/providers/mlx/docs/ai.providers.mlx.docs.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,QAAA,MAAM,UAAU,EAAE,mBAsBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,25 @@
1
+ const descriptor = {
2
+ kind: 'docs/topic',
3
+ id: 'ai.providers.mlx',
4
+ title: 'Apple MLX provider',
5
+ summary: 'Generate images locally with mflux on Apple Silicon consumer hardware.',
6
+ body: {
7
+ type: 'markdown',
8
+ sourceType: 'raw',
9
+ source: `# Apple MLX provider
10
+
11
+ \`@vibesdotdev/integrations-mlx\` owns consumer-scoped MLX/mflux image generation.
12
+ Detection and health resolve the \`mflux-generate\` binary through the neutral process
13
+ transport. Generation uses the package-owned \`mlx-image-cli\` spec. Production modules
14
+ do not import Node, Bun, or \`fs\`. The package requires Apple Silicon consumer hardware.
15
+ `
16
+ },
17
+ tags: ['ai', 'providers', 'mlx', 'local', 'image'],
18
+ parent: 'ai.providers',
19
+ order: 70,
20
+ surfaces: ['cli', 'web', 'in-app'],
21
+ hardware: ['consumer'],
22
+ enabled: true
23
+ };
24
+ export default descriptor;
25
+ //# sourceMappingURL=ai.providers.mlx.docs.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.providers.mlx.docs.descriptor.js","sourceRoot":"","sources":["../../../../../src/ai/providers/mlx/docs/ai.providers.mlx.docs.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAwB;IACvC,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,kBAAkB;IACtB,KAAK,EAAE,oBAAoB;IAC3B,OAAO,EAAE,wEAAwE;IACjF,IAAI,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE;;;;;;CAMT;KACC;IACD,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC;IAClD,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC;IAClC,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { MlxProviderType } from './mlx.provider.impl.consumer.ts';
2
+ export { detectMlxSystem } from './detection/mlx-system-detection.impl.consumer.ts';
3
+ export { MlxRecommendation } from './recommendations.ts';
4
+ export { default as mlxDocsDescriptor } from './docs/ai.providers.mlx.docs.descriptor.ts';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ai/providers/mlx/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4CAA4C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { MlxProviderType } from "./mlx.provider.impl.consumer.js";
2
+ export { detectMlxSystem } from "./detection/mlx-system-detection.impl.consumer.js";
3
+ export { MlxRecommendation } from "./recommendations.js";
4
+ export { default as mlxDocsDescriptor } from "./docs/ai.providers.mlx.docs.descriptor.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ai/providers/mlx/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4CAA4C,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Isolated consumer implementation for Apple MLX / mflux.
3
+ *
4
+ * Process and path observation resolve through Framework runtime helpers.
5
+ * This file is the only consumer-scoped implementation; it does not import
6
+ * Node, Bun, or fs directly.
7
+ */
8
+ import type { AIProviderTypeContext, AIProviderTypeInterface, ConnectionValidationResult, DetectedProviderInstance, ModelRecommendation, ProviderGenerateOptions, ProviderGenerateResult, ProviderHealthCheckResult } from '@vibesdotdev/ai/interfaces/provider-type';
9
+ import type { GenerationRequest } from '@vibesdotdev/ai/interfaces/adapter';
10
+ import type { AIModelDescriptor, Modality } from '@vibesdotdev/ai/models/schemas';
11
+ import type { AIProviderDescriptor } from '@vibesdotdev/ai/providers-runtime/schemas/provider-descriptor';
12
+ import type { AIProviderTypeDescriptor } from '@vibesdotdev/ai/providers-runtime/schemas/type-descriptor';
13
+ import { DEFAULT_MLX_TIMEOUT_MS } from '../local/image/mlx/config/schemas/index.ts';
14
+ export declare class MlxProviderType implements AIProviderTypeInterface {
15
+ readonly descriptor: AIProviderTypeDescriptor;
16
+ private readonly context;
17
+ constructor(descriptor: AIProviderTypeDescriptor, context: AIProviderTypeContext);
18
+ generate<T extends Modality>(provider: AIProviderDescriptor, model: AIModelDescriptor, request: GenerationRequest<T>, options?: ProviderGenerateOptions): Promise<ProviderGenerateResult<T>>;
19
+ generate(provider: AIProviderDescriptor, model: AIModelDescriptor, request: GenerationRequest, options?: ProviderGenerateOptions): Promise<ProviderGenerateResult>;
20
+ detectInstalled(): Promise<DetectedProviderInstance[]>;
21
+ recommendModels(useCase: string): Promise<ModelRecommendation[]>;
22
+ checkHealth(config: Parameters<AIProviderTypeInterface['checkHealth']>[0], options?: {
23
+ timeout?: number;
24
+ }): Promise<ProviderHealthCheckResult>;
25
+ validateConnection(config: Parameters<AIProviderTypeInterface['checkHealth']>[0]): Promise<ConnectionValidationResult>;
26
+ dispose(): Promise<void>;
27
+ }
28
+ export { DEFAULT_MLX_TIMEOUT_MS };
29
+ //# sourceMappingURL=mlx.provider.impl.consumer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mlx.provider.impl.consumer.d.ts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