@adaptic/lumic-utils 1.0.21 → 1.0.22
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/dist/{apollo-client.client-CUIakkzs.js → apollo-client.client-Bu5mc2I8.js} +4 -4
- package/dist/{apollo-client.client-CUIakkzs.js.map → apollo-client.client-Bu5mc2I8.js.map} +1 -1
- package/dist/{apollo-client.client-ByADDB46.js → apollo-client.client-YzlpL7kf.js} +3 -3
- package/dist/{apollo-client.client-ByADDB46.js.map → apollo-client.client-YzlpL7kf.js.map} +1 -1
- package/dist/{apollo-client.server-BnZhh39o.js → apollo-client.server-BTHAQqYl.js} +3 -3
- package/dist/{apollo-client.server-BnZhh39o.js.map → apollo-client.server-BTHAQqYl.js.map} +1 -1
- package/dist/{apollo-client.server-JucuAyrj.js → apollo-client.server-sD1QteQO.js} +3 -3
- package/dist/{apollo-client.server-JucuAyrj.js.map → apollo-client.server-sD1QteQO.js.map} +1 -1
- package/dist/{index-BLXN1stF.js → index-B_4Q2noT.js} +2 -2
- package/dist/{index-BLXN1stF.js.map → index-B_4Q2noT.js.map} +1 -1
- package/dist/{index-DT0dXUtn.js → index-CWx6sW9a.js} +2 -2
- package/dist/{index-DT0dXUtn.js.map → index-CWx6sW9a.js.map} +1 -1
- package/dist/{index-DYehXKUX.js → index-DPaCMqua.js} +181 -22
- package/dist/{index-Ca3x8X5U.js.map → index-DPaCMqua.js.map} +1 -1
- package/dist/{index-Ca3x8X5U.js → index-DfuMX-MS.js} +181 -22
- package/dist/{index-DYehXKUX.js.map → index-DfuMX-MS.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/test.cjs +1 -1
- package/dist/test.mjs +1 -1
- package/dist/types/functions/llm-config.d.ts +1 -1
- package/dist/types/types/openai-types.d.ts +95 -5
- package/package.json +1 -1
|
@@ -99,6 +99,25 @@ const OPENAI_COMPATIBLE_PROVIDERS = {
|
|
|
99
99
|
* Supported models with their capabilities
|
|
100
100
|
*/
|
|
101
101
|
const SUPPORTED_MODELS = {
|
|
102
|
+
// ── OpenAI GPT-5.5 series (current flagship) ─────────────────────────
|
|
103
|
+
'gpt-5.5': {
|
|
104
|
+
provider: 'openai',
|
|
105
|
+
supportsTools: true,
|
|
106
|
+
supportsJson: true,
|
|
107
|
+
supportsStructuredOutput: true,
|
|
108
|
+
supportsDeveloperPrompt: true,
|
|
109
|
+
supportsTemperature: true,
|
|
110
|
+
isReasoningModel: false,
|
|
111
|
+
},
|
|
112
|
+
'gpt-5.5-pro': {
|
|
113
|
+
provider: 'openai',
|
|
114
|
+
supportsTools: true,
|
|
115
|
+
supportsJson: true,
|
|
116
|
+
supportsStructuredOutput: true,
|
|
117
|
+
supportsDeveloperPrompt: true,
|
|
118
|
+
supportsTemperature: true,
|
|
119
|
+
isReasoningModel: false,
|
|
120
|
+
},
|
|
102
121
|
// ── OpenAI GPT-5.4 series ────────────────────────────────────────────
|
|
103
122
|
'gpt-5.4': {
|
|
104
123
|
provider: 'openai',
|
|
@@ -221,6 +240,15 @@ const SUPPORTED_MODELS = {
|
|
|
221
240
|
isReasoningModel: true,
|
|
222
241
|
},
|
|
223
242
|
// ── Anthropic Claude models ──────────────────────────────────────────
|
|
243
|
+
'claude-opus-4-7': {
|
|
244
|
+
provider: 'anthropic',
|
|
245
|
+
supportsTools: true,
|
|
246
|
+
supportsJson: false,
|
|
247
|
+
supportsStructuredOutput: false,
|
|
248
|
+
supportsDeveloperPrompt: true,
|
|
249
|
+
supportsTemperature: true,
|
|
250
|
+
isReasoningModel: false,
|
|
251
|
+
},
|
|
224
252
|
'claude-opus-4-6': {
|
|
225
253
|
provider: 'anthropic',
|
|
226
254
|
supportsTools: true,
|
|
@@ -249,6 +277,24 @@ const SUPPORTED_MODELS = {
|
|
|
249
277
|
isReasoningModel: false,
|
|
250
278
|
},
|
|
251
279
|
// ── Deepseek models ──────────────────────────────────────────────────
|
|
280
|
+
'deepseek-v4-pro': {
|
|
281
|
+
provider: 'deepseek',
|
|
282
|
+
supportsTools: true,
|
|
283
|
+
supportsJson: true,
|
|
284
|
+
supportsStructuredOutput: false,
|
|
285
|
+
supportsDeveloperPrompt: true,
|
|
286
|
+
supportsTemperature: true,
|
|
287
|
+
isReasoningModel: true,
|
|
288
|
+
},
|
|
289
|
+
'deepseek-v4-flash': {
|
|
290
|
+
provider: 'deepseek',
|
|
291
|
+
supportsTools: true,
|
|
292
|
+
supportsJson: true,
|
|
293
|
+
supportsStructuredOutput: false,
|
|
294
|
+
supportsDeveloperPrompt: true,
|
|
295
|
+
supportsTemperature: true,
|
|
296
|
+
isReasoningModel: true,
|
|
297
|
+
},
|
|
252
298
|
'deepseek-chat': {
|
|
253
299
|
provider: 'deepseek',
|
|
254
300
|
supportsTools: true,
|
|
@@ -268,6 +314,24 @@ const SUPPORTED_MODELS = {
|
|
|
268
314
|
isReasoningModel: true,
|
|
269
315
|
},
|
|
270
316
|
// ── Kimi (Moonshot) models ───────────────────────────────────────────
|
|
317
|
+
'kimi-k2.6': {
|
|
318
|
+
provider: 'kimi',
|
|
319
|
+
supportsTools: true,
|
|
320
|
+
supportsJson: true,
|
|
321
|
+
supportsStructuredOutput: false,
|
|
322
|
+
supportsDeveloperPrompt: true,
|
|
323
|
+
supportsTemperature: true,
|
|
324
|
+
isReasoningModel: false,
|
|
325
|
+
},
|
|
326
|
+
'kimi-k2.5': {
|
|
327
|
+
provider: 'kimi',
|
|
328
|
+
supportsTools: true,
|
|
329
|
+
supportsJson: true,
|
|
330
|
+
supportsStructuredOutput: false,
|
|
331
|
+
supportsDeveloperPrompt: true,
|
|
332
|
+
supportsTemperature: true,
|
|
333
|
+
isReasoningModel: false,
|
|
334
|
+
},
|
|
271
335
|
'kimi-k2-0905-preview': {
|
|
272
336
|
provider: 'kimi',
|
|
273
337
|
supportsTools: true,
|
|
@@ -333,6 +397,33 @@ const SUPPORTED_MODELS = {
|
|
|
333
397
|
isReasoningModel: false,
|
|
334
398
|
},
|
|
335
399
|
// ── xAI Grok models ─────────────────────────────────────────────────
|
|
400
|
+
'grok-4.3': {
|
|
401
|
+
provider: 'xai',
|
|
402
|
+
supportsTools: true,
|
|
403
|
+
supportsJson: true,
|
|
404
|
+
supportsStructuredOutput: true,
|
|
405
|
+
supportsDeveloperPrompt: true,
|
|
406
|
+
supportsTemperature: true,
|
|
407
|
+
isReasoningModel: false,
|
|
408
|
+
},
|
|
409
|
+
'grok-4.20': {
|
|
410
|
+
provider: 'xai',
|
|
411
|
+
supportsTools: true,
|
|
412
|
+
supportsJson: true,
|
|
413
|
+
supportsStructuredOutput: true,
|
|
414
|
+
supportsDeveloperPrompt: true,
|
|
415
|
+
supportsTemperature: true,
|
|
416
|
+
isReasoningModel: false,
|
|
417
|
+
},
|
|
418
|
+
'grok-4.1-fast': {
|
|
419
|
+
provider: 'xai',
|
|
420
|
+
supportsTools: true,
|
|
421
|
+
supportsJson: true,
|
|
422
|
+
supportsStructuredOutput: true,
|
|
423
|
+
supportsDeveloperPrompt: true,
|
|
424
|
+
supportsTemperature: true,
|
|
425
|
+
isReasoningModel: false,
|
|
426
|
+
},
|
|
336
427
|
'grok-4': {
|
|
337
428
|
provider: 'xai',
|
|
338
429
|
supportsTools: true,
|
|
@@ -411,21 +502,41 @@ const SUPPORTED_MODELS = {
|
|
|
411
502
|
* Common model aliases that map to canonical model names
|
|
412
503
|
*/
|
|
413
504
|
const MODEL_ALIASES = {
|
|
414
|
-
|
|
415
|
-
'
|
|
416
|
-
|
|
505
|
+
// OpenAI aliases
|
|
506
|
+
'gpt-5.5-flagship': 'gpt-5.5',
|
|
507
|
+
// Anthropic aliases
|
|
508
|
+
'claude-opus-4.7': 'claude-opus-4-7',
|
|
509
|
+
'claude-opus-4.6': 'claude-opus-4-6',
|
|
510
|
+
'claude-sonnet-4.6': 'claude-sonnet-4-6',
|
|
511
|
+
'claude-haiku-4.5': 'claude-haiku-4-5',
|
|
512
|
+
'claude-4-opus': 'claude-opus-4-7',
|
|
417
513
|
'claude-4-sonnet': 'claude-sonnet-4-6',
|
|
418
514
|
'claude-4-haiku': 'claude-haiku-4-5',
|
|
515
|
+
'claude-4.7-opus': 'claude-opus-4-7',
|
|
516
|
+
'claude-4.6-opus': 'claude-opus-4-6',
|
|
517
|
+
// Deepseek aliases (legacy names route to V4 Flash thinking modes per DeepSeek migration policy)
|
|
518
|
+
'deepseek-r1': 'deepseek-reasoner',
|
|
519
|
+
'deepseek-v3': 'deepseek-chat',
|
|
520
|
+
'deepseek-v4': 'deepseek-v4-pro',
|
|
521
|
+
// xAI aliases
|
|
419
522
|
'grok-4-0709': 'grok-4',
|
|
523
|
+
'grok-3-fast': 'grok-4-fast-non-reasoning',
|
|
524
|
+
'grok-3-mini-fast': 'grok-3-mini',
|
|
525
|
+
'grok-4-3': 'grok-4.3',
|
|
526
|
+
'grok-4-20': 'grok-4.20',
|
|
527
|
+
// Gemini aliases
|
|
420
528
|
'gemini-pro': 'gemini-3.1-pro-preview',
|
|
421
529
|
'gemini-flash': 'gemini-3-flash-preview',
|
|
422
|
-
'
|
|
423
|
-
'
|
|
530
|
+
'gemini-3.1-pro': 'gemini-3.1-pro-preview',
|
|
531
|
+
'gemini-3-flash': 'gemini-3-flash-preview',
|
|
532
|
+
'gemini-3.1-flash-lite': 'gemini-3.1-flash-lite-preview',
|
|
533
|
+
// Kimi aliases
|
|
534
|
+
'moonshot-v1-auto': 'kimi-k2.6',
|
|
535
|
+
'kimi-k3': 'kimi-k2.6',
|
|
536
|
+
// Qwen aliases
|
|
424
537
|
'qwen-plus': 'qwen3.5-plus',
|
|
425
538
|
'qwen-max': 'qwen3-max',
|
|
426
539
|
'qwen-turbo': 'qwen3.5-flash',
|
|
427
|
-
'grok-3-fast': 'grok-4-fast-non-reasoning',
|
|
428
|
-
'grok-3-mini-fast': 'grok-3-mini',
|
|
429
540
|
};
|
|
430
541
|
/**
|
|
431
542
|
* Type guard to check if a string is a valid supported model
|
|
@@ -455,12 +566,12 @@ function getModelProvider(model) {
|
|
|
455
566
|
* Default model tiers per provider for use with LLM_MODEL_MINI/NORMAL/ADVANCED env vars
|
|
456
567
|
*/
|
|
457
568
|
const PROVIDER_DEFAULT_MODELS = {
|
|
458
|
-
openai: { mini: 'gpt-5.4-nano', normal: 'gpt-5.4-mini', advanced: 'gpt-5.
|
|
459
|
-
anthropic: { mini: 'claude-haiku-4-5', normal: 'claude-sonnet-4-6', advanced: 'claude-opus-4-
|
|
460
|
-
deepseek: { mini: 'deepseek-
|
|
461
|
-
kimi: { mini: 'kimi-k2-0905-preview', normal: 'kimi-k2
|
|
569
|
+
openai: { mini: 'gpt-5.4-nano', normal: 'gpt-5.4-mini', advanced: 'gpt-5.5' },
|
|
570
|
+
anthropic: { mini: 'claude-haiku-4-5', normal: 'claude-sonnet-4-6', advanced: 'claude-opus-4-7' },
|
|
571
|
+
deepseek: { mini: 'deepseek-v4-flash', normal: 'deepseek-v4-flash', advanced: 'deepseek-v4-pro' },
|
|
572
|
+
kimi: { mini: 'kimi-k2-0905-preview', normal: 'kimi-k2.5', advanced: 'kimi-k2.6' },
|
|
462
573
|
qwen: { mini: 'qwen3.5-flash', normal: 'qwen3.5-plus', advanced: 'qwen3-max' },
|
|
463
|
-
xai: { mini: 'grok-
|
|
574
|
+
xai: { mini: 'grok-4.1-fast', normal: 'grok-4-fast-non-reasoning', advanced: 'grok-4.3' },
|
|
464
575
|
gemini: { mini: 'gemini-3.1-flash-lite-preview', normal: 'gemini-3-flash-preview', advanced: 'gemini-3.1-pro-preview' },
|
|
465
576
|
};
|
|
466
577
|
|
|
@@ -769,7 +880,7 @@ const DEFAULT_DEVELOPER_PROMPT = `
|
|
|
769
880
|
Respond only with final content (e.g. code, a json or yaml object, a formatted string, or a markdown document) and nothing else. Do not reply with a preamble, introduction, or conclusion.
|
|
770
881
|
`;
|
|
771
882
|
/**
|
|
772
|
-
* Token costs in USD per token. Last updated
|
|
883
|
+
* Token costs in USD per token. Last updated May 2026.
|
|
773
884
|
*
|
|
774
885
|
* `cacheHitCost` reflects OpenAI's cached-input billing rate (~50% of the
|
|
775
886
|
* standard input rate per OpenAI's prompt caching documentation). When set,
|
|
@@ -778,6 +889,16 @@ const DEFAULT_DEVELOPER_PROMPT = `
|
|
|
778
889
|
* rate (a silent ~50% cost overstatement for cache-friendly workloads).
|
|
779
890
|
*/
|
|
780
891
|
const openAiModelCosts = {
|
|
892
|
+
'gpt-5.5': {
|
|
893
|
+
inputCost: 5 / 1_000_000,
|
|
894
|
+
cacheHitCost: 2.5 / 1_000_000,
|
|
895
|
+
outputCost: 30 / 1_000_000,
|
|
896
|
+
},
|
|
897
|
+
'gpt-5.5-pro': {
|
|
898
|
+
inputCost: 30 / 1_000_000,
|
|
899
|
+
cacheHitCost: 15 / 1_000_000,
|
|
900
|
+
outputCost: 180 / 1_000_000,
|
|
901
|
+
},
|
|
781
902
|
'gpt-5.4': {
|
|
782
903
|
inputCost: 2.5 / 1_000_000,
|
|
783
904
|
cacheHitCost: 1.25 / 1_000_000,
|
|
@@ -845,6 +966,11 @@ const openAiModelCosts = {
|
|
|
845
966
|
},
|
|
846
967
|
};
|
|
847
968
|
const anthropicModelCosts = {
|
|
969
|
+
'claude-opus-4-7': {
|
|
970
|
+
inputCost: 5 / 1_000_000,
|
|
971
|
+
outputCost: 25 / 1_000_000,
|
|
972
|
+
cacheHitCost: 0.5 / 1_000_000,
|
|
973
|
+
},
|
|
848
974
|
'claude-opus-4-6': {
|
|
849
975
|
inputCost: 15 / 1_000_000,
|
|
850
976
|
outputCost: 75 / 1_000_000,
|
|
@@ -862,6 +988,16 @@ const anthropicModelCosts = {
|
|
|
862
988
|
},
|
|
863
989
|
};
|
|
864
990
|
const deepseekModelCosts = {
|
|
991
|
+
'deepseek-v4-pro': {
|
|
992
|
+
inputCost: 0.55 / 1_000_000,
|
|
993
|
+
cacheHitCost: 0.14 / 1_000_000,
|
|
994
|
+
outputCost: 2.19 / 1_000_000,
|
|
995
|
+
},
|
|
996
|
+
'deepseek-v4-flash': {
|
|
997
|
+
inputCost: 0.27 / 1_000_000,
|
|
998
|
+
cacheHitCost: 0.07 / 1_000_000,
|
|
999
|
+
outputCost: 1.1 / 1_000_000,
|
|
1000
|
+
},
|
|
865
1001
|
'deepseek-chat': {
|
|
866
1002
|
inputCost: 0.27 / 1_000_000,
|
|
867
1003
|
cacheHitCost: 0.07 / 1_000_000,
|
|
@@ -874,6 +1010,14 @@ const deepseekModelCosts = {
|
|
|
874
1010
|
},
|
|
875
1011
|
};
|
|
876
1012
|
const kimiModelCosts = {
|
|
1013
|
+
'kimi-k2.6': {
|
|
1014
|
+
inputCost: 0.74 / 1_000_000,
|
|
1015
|
+
outputCost: 3.49 / 1_000_000,
|
|
1016
|
+
},
|
|
1017
|
+
'kimi-k2.5': {
|
|
1018
|
+
inputCost: 0.44 / 1_000_000,
|
|
1019
|
+
outputCost: 2 / 1_000_000,
|
|
1020
|
+
},
|
|
877
1021
|
'kimi-k2-0905-preview': {
|
|
878
1022
|
inputCost: 0.15 / 1_000_000,
|
|
879
1023
|
outputCost: 0.6 / 1_000_000,
|
|
@@ -906,6 +1050,21 @@ const qwenModelCosts = {
|
|
|
906
1050
|
},
|
|
907
1051
|
};
|
|
908
1052
|
const xaiModelCosts = {
|
|
1053
|
+
'grok-4.3': {
|
|
1054
|
+
inputCost: 1.25 / 1_000_000,
|
|
1055
|
+
outputCost: 2.5 / 1_000_000,
|
|
1056
|
+
cacheHitCost: 0.31 / 1_000_000,
|
|
1057
|
+
},
|
|
1058
|
+
'grok-4.20': {
|
|
1059
|
+
inputCost: 2 / 1_000_000,
|
|
1060
|
+
outputCost: 6 / 1_000_000,
|
|
1061
|
+
cacheHitCost: 0.5 / 1_000_000,
|
|
1062
|
+
},
|
|
1063
|
+
'grok-4.1-fast': {
|
|
1064
|
+
inputCost: 0.2 / 1_000_000,
|
|
1065
|
+
outputCost: 0.5 / 1_000_000,
|
|
1066
|
+
cacheHitCost: 0.05 / 1_000_000,
|
|
1067
|
+
},
|
|
909
1068
|
'grok-4': {
|
|
910
1069
|
inputCost: 3 / 1_000_000,
|
|
911
1070
|
outputCost: 15 / 1_000_000,
|
|
@@ -932,16 +1091,16 @@ const xaiModelCosts = {
|
|
|
932
1091
|
};
|
|
933
1092
|
const geminiModelCosts = {
|
|
934
1093
|
'gemini-3.1-pro-preview': {
|
|
935
|
-
inputCost:
|
|
936
|
-
outputCost:
|
|
1094
|
+
inputCost: 2 / 1_000_000,
|
|
1095
|
+
outputCost: 12 / 1_000_000,
|
|
937
1096
|
},
|
|
938
1097
|
'gemini-3-flash-preview': {
|
|
939
|
-
inputCost: 0.
|
|
940
|
-
outputCost:
|
|
1098
|
+
inputCost: 0.5 / 1_000_000,
|
|
1099
|
+
outputCost: 3 / 1_000_000,
|
|
941
1100
|
},
|
|
942
1101
|
'gemini-3.1-flash-lite-preview': {
|
|
943
|
-
inputCost: 0.
|
|
944
|
-
outputCost:
|
|
1102
|
+
inputCost: 0.25 / 1_000_000,
|
|
1103
|
+
outputCost: 1.5 / 1_000_000,
|
|
945
1104
|
},
|
|
946
1105
|
};
|
|
947
1106
|
/**
|
|
@@ -22850,11 +23009,11 @@ let poolConfig = DEFAULT_POOL_CONFIG;
|
|
|
22850
23009
|
async function loadApolloModules() {
|
|
22851
23010
|
if (typeof window === "undefined" || process.env.AWS_EXECUTION_ENV) {
|
|
22852
23011
|
// Server-side (or Lambda): load the CommonJS‑based implementation.
|
|
22853
|
-
return (await Promise.resolve().then(function () { return require('./apollo-client.server-
|
|
23012
|
+
return (await Promise.resolve().then(function () { return require('./apollo-client.server-BTHAQqYl.js'); }));
|
|
22854
23013
|
}
|
|
22855
23014
|
else {
|
|
22856
23015
|
// Client-side: load the ESM‑based implementation.
|
|
22857
|
-
return (await Promise.resolve().then(function () { return require('./apollo-client.client-
|
|
23016
|
+
return (await Promise.resolve().then(function () { return require('./apollo-client.client-YzlpL7kf.js'); }));
|
|
22858
23017
|
}
|
|
22859
23018
|
}
|
|
22860
23019
|
/**
|
|
@@ -81565,4 +81724,4 @@ exports.withCorrelationId = withCorrelationId;
|
|
|
81565
81724
|
exports.withMetrics = withMetrics;
|
|
81566
81725
|
exports.withRateLimit = withRateLimit;
|
|
81567
81726
|
exports.withRetry = withRetry;
|
|
81568
|
-
//# sourceMappingURL=index-
|
|
81727
|
+
//# sourceMappingURL=index-DfuMX-MS.js.map
|