@x12i/ai-profiles 4.4.0 → 4.4.2

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 (50) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1086 -1082
  3. package/dist/browser.d.ts +31 -0
  4. package/dist/browser.d.ts.map +1 -0
  5. package/dist/browser.js +124 -0
  6. package/dist/browser.js.map +1 -0
  7. package/dist/data/models-catalog.json +17393 -17393
  8. package/dist/data/models-profiles.bak.json +2336 -2336
  9. package/dist/data/models-profiles.json +10370 -8746
  10. package/dist/data/models-profiles.schema.json +240 -240
  11. package/dist/data/models-registry.json +11192 -10728
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/inferModelFamily.d.ts +2 -0
  17. package/dist/inferModelFamily.d.ts.map +1 -1
  18. package/dist/inferModelFamily.js +32 -1
  19. package/dist/inferModelFamily.js.map +1 -1
  20. package/package.json +90 -85
  21. package/dist/data/openrouter-models-catalog.json +0 -857
  22. package/dist/data/profiles-shortcuts.json +0 -295
  23. package/dist/isKnownProfileInput.d.ts +0 -9
  24. package/dist/isKnownProfileInput.d.ts.map +0 -1
  25. package/dist/isKnownProfileInput.js +0 -14
  26. package/dist/isKnownProfileInput.js.map +0 -1
  27. package/dist/isKnownProfileOrShortcut.d.ts +0 -6
  28. package/dist/isKnownProfileOrShortcut.d.ts.map +0 -1
  29. package/dist/isKnownProfileOrShortcut.js +0 -11
  30. package/dist/isKnownProfileOrShortcut.js.map +0 -1
  31. package/dist/legacyGraphEngineAliasMap.d.ts +0 -13
  32. package/dist/legacyGraphEngineAliasMap.d.ts.map +0 -1
  33. package/dist/legacyGraphEngineAliasMap.js +0 -16
  34. package/dist/legacyGraphEngineAliasMap.js.map +0 -1
  35. package/dist/listAIShortcuts.d.ts +0 -4
  36. package/dist/listAIShortcuts.d.ts.map +0 -1
  37. package/dist/listAIShortcuts.js +0 -12
  38. package/dist/listAIShortcuts.js.map +0 -1
  39. package/dist/profileDiscoveryMatch.d.ts +0 -15
  40. package/dist/profileDiscoveryMatch.d.ts.map +0 -1
  41. package/dist/profileDiscoveryMatch.js +0 -18
  42. package/dist/profileDiscoveryMatch.js.map +0 -1
  43. package/dist/profileInputMatch.d.ts +0 -20
  44. package/dist/profileInputMatch.d.ts.map +0 -1
  45. package/dist/profileInputMatch.js +0 -30
  46. package/dist/profileInputMatch.js.map +0 -1
  47. package/dist/profileModelFallback.d.ts +0 -13
  48. package/dist/profileModelFallback.d.ts.map +0 -1
  49. package/dist/profileModelFallback.js +0 -180
  50. package/dist/profileModelFallback.js.map +0 -1
@@ -1,240 +1,240 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://open-assets.x12i.com/schemas/models-profiles.schema.json",
4
- "title": "x12i AI Profiles Model Registry v4",
5
- "type": "object",
6
- "additionalProperties": false,
7
- "required": [
8
- "schema",
9
- "registryId",
10
- "generatedAt",
11
- "lastVerifiedAt",
12
- "version",
13
- "currency",
14
- "pricingUnit",
15
- "namingConvention",
16
- "semantics",
17
- "sourceCatalog",
18
- "profiles"
19
- ],
20
- "properties": {
21
- "schema": {
22
- "const": "x12i.ai-profiles.model-registry.v4"
23
- },
24
- "registryId": { "type": "string", "minLength": 1 },
25
- "generatedAt": { "type": "string", "format": "date-time" },
26
- "lastVerifiedAt": { "type": "string", "format": "date-time" },
27
- "version": { "type": "string" },
28
- "currency": { "const": "USD" },
29
- "pricingUnit": { "const": "1M_tokens" },
30
- "namingConvention": { "const": "lowerCamelCase" },
31
- "semantics": { "type": "object", "additionalProperties": { "type": "string" } },
32
- "sourceCatalog": {
33
- "type": "object",
34
- "required": ["providers"],
35
- "properties": {
36
- "providers": {
37
- "type": "array",
38
- "items": {
39
- "type": "object",
40
- "required": ["id"],
41
- "properties": {
42
- "id": { "type": "string" },
43
- "docsUrl": { "type": "string", "format": "uri" }
44
- }
45
- }
46
- },
47
- "modelsCatalogUrl": { "type": "string", "format": "uri" },
48
- "openRouterCatalogUrl": { "type": "string", "format": "uri" }
49
- }
50
- },
51
- "profiles": {
52
- "type": "object",
53
- "additionalProperties": { "$ref": "#/$defs/profile" }
54
- }
55
- },
56
- "$defs": {
57
- "profile": {
58
- "type": "object",
59
- "required": [
60
- "profile",
61
- "displayName",
62
- "description",
63
- "category",
64
- "catalogLane",
65
- "defaultChoice",
66
- "choices"
67
- ],
68
- "properties": {
69
- "profile": { "type": "string" },
70
- "displayName": { "type": "string" },
71
- "description": { "type": "string" },
72
- "category": { "type": "string" },
73
- "vendorFamily": { "type": "boolean" },
74
- "catalogLane": {
75
- "enum": [
76
- "text",
77
- "image",
78
- "embeddings",
79
- "audio",
80
- "video",
81
- "rerank",
82
- "speech",
83
- "transcription"
84
- ]
85
- },
86
- "defaultChoice": { "type": "string" },
87
- "requiredCapabilities": { "$ref": "#/$defs/requiredCapabilities" },
88
- "deploymentType": {
89
- "enum": ["proprietary", "openWeightsHosted", "selfHosted"]
90
- },
91
- "fallbackChoiceOrder": { "type": "array", "items": { "type": "string" } },
92
- "defaultSecondaryChoice": { "type": "string" },
93
- "tags": {
94
- "type": "array",
95
- "items": {
96
- "enum": [
97
- "flg",
98
- "eco",
99
- "pro",
100
- "exp",
101
- "agt",
102
- "sec",
103
- "cyb",
104
- "rsn",
105
- "anl",
106
- "for",
107
- "aud",
108
- "str",
109
- "json",
110
- "xtr",
111
- "cls",
112
- "cod",
113
- "eng",
114
- "res",
115
- "cre",
116
- "wrt",
117
- "sum",
118
- "vis",
119
- "rte",
120
- "tri",
121
- "wf",
122
- "bat",
123
- "rev",
124
- "spd",
125
- "loc",
126
- "vnd",
127
- "ds",
128
- "ggl",
129
- "xai",
130
- "mmx",
131
- "ant",
132
- "oai"
133
- ]
134
- },
135
- "uniqueItems": true
136
- },
137
- "choices": {
138
- "type": "object",
139
- "additionalProperties": { "$ref": "#/$defs/choice" }
140
- }
141
- }
142
- },
143
- "requiredCapabilities": {
144
- "type": "object",
145
- "additionalProperties": false,
146
- "properties": {
147
- "reasoning": {
148
- "enum": ["minimal", "low", "medium", "high", "max"]
149
- },
150
- "coding": { "type": "boolean" },
151
- "context": { "enum": ["standard", "large", "xlarge"] },
152
- "cost": { "enum": ["low", "medium", "high"] },
153
- "speed": { "enum": ["high"] },
154
- "latency": { "enum": ["low"] },
155
- "quality": { "enum": ["high", "premium"] },
156
- "structuredOutput": { "type": "boolean" },
157
- "supportsJsonSchema": { "type": "boolean" },
158
- "supportsVision": { "type": "boolean" },
159
- "supportsTools": { "type": "boolean" },
160
- "inputModalities": {
161
- "type": "array",
162
- "items": {
163
- "enum": ["text", "image", "audio", "video", "file"]
164
- },
165
- "minItems": 1
166
- },
167
- "outputModalities": {
168
- "type": "array",
169
- "items": {
170
- "enum": ["text", "image", "audio", "video", "file"]
171
- },
172
- "minItems": 1
173
- }
174
- }
175
- },
176
- "modalityContract": {
177
- "type": "object",
178
- "required": ["input", "output"],
179
- "additionalProperties": false,
180
- "properties": {
181
- "input": {
182
- "type": "array",
183
- "items": {
184
- "enum": ["text", "image", "audio", "video", "file"]
185
- },
186
- "minItems": 1
187
- },
188
- "output": {
189
- "type": "array",
190
- "items": {
191
- "enum": ["text", "image", "audio", "video", "file"]
192
- },
193
- "minItems": 1
194
- }
195
- }
196
- },
197
- "secondaryRef": {
198
- "type": "object",
199
- "required": ["kind"],
200
- "properties": {
201
- "kind": { "enum": ["choice", "model"] },
202
- "choice": { "type": "string" },
203
- "provider": { "type": "string" },
204
- "modelId": { "type": "string" },
205
- "reason": { "type": "string" },
206
- "runtime": {
207
- "type": "object",
208
- "additionalProperties": true
209
- }
210
- },
211
- "allOf": [
212
- {
213
- "if": { "properties": { "kind": { "const": "choice" } } },
214
- "then": { "required": ["choice"] }
215
- },
216
- {
217
- "if": { "properties": { "kind": { "const": "model" } } },
218
- "then": { "required": ["provider", "modelId"] }
219
- }
220
- ]
221
- },
222
- "choice": {
223
- "type": "object",
224
- "required": ["choice", "provider", "modelId"],
225
- "properties": {
226
- "choice": { "type": "string" },
227
- "displayName": { "type": "string" },
228
- "description": { "type": "string" },
229
- "provider": { "type": "string" },
230
- "modelId": { "type": "string" },
231
- "modelStatus": { "enum": ["verified", "predicted"] },
232
- "modalities": { "$ref": "#/$defs/modalityContract" },
233
- "secondary": { "$ref": "#/$defs/secondaryRef" },
234
- "deploymentType": {
235
- "enum": ["proprietary", "openWeightsHosted", "selfHosted"]
236
- }
237
- }
238
- }
239
- }
240
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://open-assets.x12i.com/schemas/models-profiles.schema.json",
4
+ "title": "x12i AI Profiles Model Registry v4",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "registryId",
10
+ "generatedAt",
11
+ "lastVerifiedAt",
12
+ "version",
13
+ "currency",
14
+ "pricingUnit",
15
+ "namingConvention",
16
+ "semantics",
17
+ "sourceCatalog",
18
+ "profiles"
19
+ ],
20
+ "properties": {
21
+ "schema": {
22
+ "const": "x12i.ai-profiles.model-registry.v4"
23
+ },
24
+ "registryId": { "type": "string", "minLength": 1 },
25
+ "generatedAt": { "type": "string", "format": "date-time" },
26
+ "lastVerifiedAt": { "type": "string", "format": "date-time" },
27
+ "version": { "type": "string" },
28
+ "currency": { "const": "USD" },
29
+ "pricingUnit": { "const": "1M_tokens" },
30
+ "namingConvention": { "const": "lowerCamelCase" },
31
+ "semantics": { "type": "object", "additionalProperties": { "type": "string" } },
32
+ "sourceCatalog": {
33
+ "type": "object",
34
+ "required": ["providers"],
35
+ "properties": {
36
+ "providers": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "object",
40
+ "required": ["id"],
41
+ "properties": {
42
+ "id": { "type": "string" },
43
+ "docsUrl": { "type": "string", "format": "uri" }
44
+ }
45
+ }
46
+ },
47
+ "modelsCatalogUrl": { "type": "string", "format": "uri" },
48
+ "openRouterCatalogUrl": { "type": "string", "format": "uri" }
49
+ }
50
+ },
51
+ "profiles": {
52
+ "type": "object",
53
+ "additionalProperties": { "$ref": "#/$defs/profile" }
54
+ }
55
+ },
56
+ "$defs": {
57
+ "profile": {
58
+ "type": "object",
59
+ "required": [
60
+ "profile",
61
+ "displayName",
62
+ "description",
63
+ "category",
64
+ "catalogLane",
65
+ "defaultChoice",
66
+ "choices"
67
+ ],
68
+ "properties": {
69
+ "profile": { "type": "string" },
70
+ "displayName": { "type": "string" },
71
+ "description": { "type": "string" },
72
+ "category": { "type": "string" },
73
+ "vendorFamily": { "type": "boolean" },
74
+ "catalogLane": {
75
+ "enum": [
76
+ "text",
77
+ "image",
78
+ "embeddings",
79
+ "audio",
80
+ "video",
81
+ "rerank",
82
+ "speech",
83
+ "transcription"
84
+ ]
85
+ },
86
+ "defaultChoice": { "type": "string" },
87
+ "requiredCapabilities": { "$ref": "#/$defs/requiredCapabilities" },
88
+ "deploymentType": {
89
+ "enum": ["proprietary", "openWeightsHosted", "selfHosted"]
90
+ },
91
+ "fallbackChoiceOrder": { "type": "array", "items": { "type": "string" } },
92
+ "defaultSecondaryChoice": { "type": "string" },
93
+ "tags": {
94
+ "type": "array",
95
+ "items": {
96
+ "enum": [
97
+ "flg",
98
+ "eco",
99
+ "pro",
100
+ "exp",
101
+ "agt",
102
+ "sec",
103
+ "cyb",
104
+ "rsn",
105
+ "anl",
106
+ "for",
107
+ "aud",
108
+ "str",
109
+ "json",
110
+ "xtr",
111
+ "cls",
112
+ "cod",
113
+ "eng",
114
+ "res",
115
+ "cre",
116
+ "wrt",
117
+ "sum",
118
+ "vis",
119
+ "rte",
120
+ "tri",
121
+ "wf",
122
+ "bat",
123
+ "rev",
124
+ "spd",
125
+ "loc",
126
+ "vnd",
127
+ "ds",
128
+ "ggl",
129
+ "xai",
130
+ "mmx",
131
+ "ant",
132
+ "oai"
133
+ ]
134
+ },
135
+ "uniqueItems": true
136
+ },
137
+ "choices": {
138
+ "type": "object",
139
+ "additionalProperties": { "$ref": "#/$defs/choice" }
140
+ }
141
+ }
142
+ },
143
+ "requiredCapabilities": {
144
+ "type": "object",
145
+ "additionalProperties": false,
146
+ "properties": {
147
+ "reasoning": {
148
+ "enum": ["minimal", "low", "medium", "high", "max"]
149
+ },
150
+ "coding": { "type": "boolean" },
151
+ "context": { "enum": ["standard", "large", "xlarge"] },
152
+ "cost": { "enum": ["low", "medium", "high"] },
153
+ "speed": { "enum": ["high"] },
154
+ "latency": { "enum": ["low"] },
155
+ "quality": { "enum": ["high", "premium"] },
156
+ "structuredOutput": { "type": "boolean" },
157
+ "supportsJsonSchema": { "type": "boolean" },
158
+ "supportsVision": { "type": "boolean" },
159
+ "supportsTools": { "type": "boolean" },
160
+ "inputModalities": {
161
+ "type": "array",
162
+ "items": {
163
+ "enum": ["text", "image", "audio", "video", "file"]
164
+ },
165
+ "minItems": 1
166
+ },
167
+ "outputModalities": {
168
+ "type": "array",
169
+ "items": {
170
+ "enum": ["text", "image", "audio", "video", "file"]
171
+ },
172
+ "minItems": 1
173
+ }
174
+ }
175
+ },
176
+ "modalityContract": {
177
+ "type": "object",
178
+ "required": ["input", "output"],
179
+ "additionalProperties": false,
180
+ "properties": {
181
+ "input": {
182
+ "type": "array",
183
+ "items": {
184
+ "enum": ["text", "image", "audio", "video", "file"]
185
+ },
186
+ "minItems": 1
187
+ },
188
+ "output": {
189
+ "type": "array",
190
+ "items": {
191
+ "enum": ["text", "image", "audio", "video", "file"]
192
+ },
193
+ "minItems": 1
194
+ }
195
+ }
196
+ },
197
+ "secondaryRef": {
198
+ "type": "object",
199
+ "required": ["kind"],
200
+ "properties": {
201
+ "kind": { "enum": ["choice", "model"] },
202
+ "choice": { "type": "string" },
203
+ "provider": { "type": "string" },
204
+ "modelId": { "type": "string" },
205
+ "reason": { "type": "string" },
206
+ "runtime": {
207
+ "type": "object",
208
+ "additionalProperties": true
209
+ }
210
+ },
211
+ "allOf": [
212
+ {
213
+ "if": { "properties": { "kind": { "const": "choice" } } },
214
+ "then": { "required": ["choice"] }
215
+ },
216
+ {
217
+ "if": { "properties": { "kind": { "const": "model" } } },
218
+ "then": { "required": ["provider", "modelId"] }
219
+ }
220
+ ]
221
+ },
222
+ "choice": {
223
+ "type": "object",
224
+ "required": ["choice", "provider", "modelId"],
225
+ "properties": {
226
+ "choice": { "type": "string" },
227
+ "displayName": { "type": "string" },
228
+ "description": { "type": "string" },
229
+ "provider": { "type": "string" },
230
+ "modelId": { "type": "string" },
231
+ "modelStatus": { "enum": ["verified", "predicted"] },
232
+ "modalities": { "$ref": "#/$defs/modalityContract" },
233
+ "secondary": { "$ref": "#/$defs/secondaryRef" },
234
+ "deploymentType": {
235
+ "enum": ["proprietary", "openWeightsHosted", "selfHosted"]
236
+ }
237
+ }
238
+ }
239
+ }
240
+ }