nolo-cli 0.69.0-alpha.3 → 0.70.0

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 (95) hide show
  1. package/{_executeModel-DFUPTH24.js → _executeModel-YXI7ADJF.js} +30 -30
  2. package/{action-D22U6CTH.js → action-AOORTHTU.js} +4 -4
  3. package/{addContentAction-XAPUTGL4.js → addContentAction-E3S6F3IS.js} +3 -3
  4. package/{addDialogAgentAction-M7VLLBZM.js → addDialogAgentAction-EUBNJ5SS.js} +2 -2
  5. package/{agentDeleteCommand-VNTOS6BE.js → agentDeleteCommand-B5SKAPTR.js} +16 -16
  6. package/{agentEmailCommands-5SUJUECH.js → agentEmailCommands-LVUZQHBF.js} +35 -35
  7. package/{agentListCommands-RA5NNNII.js → agentListCommands-D2E7SFRQ.js} +18 -18
  8. package/{agentMachineCommands-Q3IGMXRD.js → agentMachineCommands-XNIBG4L2.js} +17 -17
  9. package/{agentRecordCommands-NSGMEUHK.js → agentRecordCommands-ID3URU2J.js} +34 -34
  10. package/{agentRunCommand-BO77DK64.js → agentRunCommand-KZMPUI53.js} +34 -34
  11. package/{agentRuntimeLocal-WDIBAXHF.js → agentRuntimeLocal-T47DU3IA.js} +16 -16
  12. package/{agentSlice-FT52UJXF.js → agentSlice-K5IE7FV3.js} +3 -3
  13. package/{appDeleteCommands-OVJIOW2J.js → appDeleteCommands-URD2F5YN.js} +16 -16
  14. package/{appDeployCommands-BF3I5ZYA.js → appDeployCommands-OACWEEWP.js} +16 -16
  15. package/{appDeployStatusCommands-EYEKXIWI.js → appDeployStatusCommands-TVYLIUEU.js} +16 -16
  16. package/{appGetCommands-HIGRIFZO.js → appGetCommands-ZWG2YEAE.js} +16 -16
  17. package/{appListCommands-BIP7SMU4.js → appListCommands-E3BMSQEY.js} +16 -16
  18. package/{authCommand-EVGFLAHO.js → authCommand-QHMBXOOH.js} +7 -7
  19. package/{chatQueueReduxAdapter-K5KB3KAK.js → chatQueueReduxAdapter-HL5A3L2W.js} +13 -13
  20. package/{chunk-3BIRZJCI.js → chunk-2L7EUBRN.js} +4 -4
  21. package/{chunk-DSRXPQWA.js → chunk-2XENHR3P.js} +4 -4
  22. package/{chunk-I5N43M6M.js → chunk-36G25COQ.js} +1 -1
  23. package/{chunk-E36HZARC.js → chunk-3E67YXGD.js} +2 -2
  24. package/{chunk-R2PJ4WKV.js → chunk-4ENGEYUY.js} +4 -4
  25. package/{chunk-YFADVSZE.js → chunk-4K6DB3GJ.js} +3 -3
  26. package/{chunk-5J7W2VWW.js → chunk-4MKPBCTN.js} +3 -2
  27. package/{chunk-UDQWGU7F.js → chunk-5TJQUZQ7.js} +1 -1
  28. package/{chunk-AJHEFRGJ.js → chunk-5YIL5WDC.js} +71 -220
  29. package/{chunk-NG4UT4K4.js → chunk-6IT5ECCC.js} +1 -1
  30. package/{chunk-GUR5O7MB.js → chunk-6RNOFHEM.js} +26 -26
  31. package/{chunk-BJCWNHVU.js → chunk-76JAMDUT.js} +2 -2
  32. package/{chunk-4EJ5QYB5.js → chunk-7JS3F5ZR.js} +1 -1
  33. package/{chunk-GBPZKFYK.js → chunk-BNATE77Z.js} +1 -1
  34. package/{chunk-LW2BWHRM.js → chunk-C2SHPJSS.js} +38 -28
  35. package/{chunk-ZZCJUXUI.js → chunk-IM5EETJX.js} +1 -1
  36. package/{chunk-3U3EA3BO.js → chunk-IOZR6BLM.js} +1 -1
  37. package/{chunk-ETVDF66U.js → chunk-JKAWV72Y.js} +14 -14
  38. package/{chunk-PZM3EENV.js → chunk-K647EQV3.js} +1 -1
  39. package/{chunk-ZLPA7K55.js → chunk-KRR3AG7T.js} +3 -3
  40. package/{chunk-WGBSEJ5K.js → chunk-LMEH4C4G.js} +3 -3
  41. package/{chunk-L77RUZVI.js → chunk-O2X6R45W.js} +3 -3
  42. package/{chunk-CLUJ44KW.js → chunk-OMHOVU2L.js} +1 -1
  43. package/{chunk-XWNRAIUL.js → chunk-OPNHMILE.js} +2 -2
  44. package/{chunk-VD2NV6C5.js → chunk-PADUIVUU.js} +3 -3
  45. package/{chunk-3QPYFHAH.js → chunk-RJ5HQDHL.js} +1 -1
  46. package/{chunk-PYXL2CJL.js → chunk-RSDPPLSM.js} +1 -1
  47. package/{chunk-LWFMRMP2.js → chunk-RXYIUZU5.js} +8 -8
  48. package/{chunk-EXMHJN7C.js → chunk-SHPRRU2W.js} +2 -2
  49. package/{chunk-FUZRQKU2.js → chunk-SKWZFK56.js} +4 -4
  50. package/{chunk-K7AG465Q.js → chunk-SQDGTW2T.js} +4 -2
  51. package/{chunk-UJ63UXGE.js → chunk-TQC77XVE.js} +1 -1
  52. package/{chunk-FPTQQSS6.js → chunk-UFTOGLCE.js} +1 -1
  53. package/{chunk-62NIW5JP.js → chunk-V3B6FQKC.js} +12 -12
  54. package/{chunk-CMH2SYHX.js → chunk-VLQRD7ZJ.js} +2 -2
  55. package/{chunk-ZW7BZH2L.js → chunk-VOEOMLKR.js} +9 -9
  56. package/{chunk-SZLVDREM.js → chunk-WMRPXIZY.js} +1 -1
  57. package/{chunk-PUOC4YRO.js → chunk-XTJTN3RW.js} +4 -0
  58. package/{chunk-KIS76A2P.js → chunk-Y7PULBIA.js} +1 -1
  59. package/{chunk-5CCXNZTD.js → chunk-Z3XXUE2E.js} +16 -16
  60. package/{chunk-HXAINXPQ.js → chunk-ZCVO2HLZ.js} +4 -4
  61. package/{chunk-PGSKWZCB.js → chunk-ZW22L5ES.js} +1 -1
  62. package/{contentThunks-EAWBISNO.js → contentThunks-XV3U3V2O.js} +14 -14
  63. package/{createAgentAutomationAction-QSJZAWUD.js → createAgentAutomationAction-UKKP6SAJ.js} +14 -14
  64. package/{createDialogAction-7OMDWUQ2.js → createDialogAction-WK6Y7DD7.js} +15 -15
  65. package/{createPageAction-5YRHFLR5.js → createPageAction-SLRDORVZ.js} +14 -14
  66. package/{dbSlice-GKGGFNOB.js → dbSlice-WL5T2LVF.js} +2 -2
  67. package/{dialogCommands-J6JW5543.js → dialogCommands-E5AAV7PB.js} +16 -16
  68. package/{dialogSlice-7S2IE53T.js → dialogSlice-2TSABNK5.js} +13 -13
  69. package/{docCreateCommands-OKBRNLDP.js → docCreateCommands-N7P5VBTU.js} +16 -16
  70. package/{docDeleteCommands-G7L466BF.js → docDeleteCommands-LZPPUYY6.js} +16 -16
  71. package/{docReadCommands-LR77KH6M.js → docReadCommands-UCQGMMBR.js} +16 -16
  72. package/{docStore-AETL5FRN.js → docStore-GX4LBBIB.js} +3 -3
  73. package/{docUpdateCommands-ZOICHED3.js → docUpdateCommands-H57EVVVE.js} +16 -16
  74. package/{getPricing-HRMSOF3E.js → getPricing-JRNHI5CV.js} +3 -3
  75. package/{handleSendMessageAction-2BZIEE2M.js → handleSendMessageAction-DYAB4HTU.js} +13 -13
  76. package/index.js +47 -47
  77. package/{machineCommands-XW5Y7WIZ.js → machineCommands-3Y3EHK2H.js} +34 -34
  78. package/{machineWsRunDispatch-W5CWYIMG.js → machineWsRunDispatch-RSVSJ4D7.js} +34 -34
  79. package/{memberThunks-KATHH3F4.js → memberThunks-OBDDU3NR.js} +3 -3
  80. package/{models-GS72DVJS.js → models-NBVTQACP.js} +2 -2
  81. package/package.json +1 -1
  82. package/{read-LC6HVYBN.js → read-OOTHDABU.js} +1 -1
  83. package/{readDocTool-N3ERJHHF.js → readDocTool-OU4QXJT6.js} +1 -1
  84. package/{readlineWorkspace-UPNB3WUE.js → readlineWorkspace-7FZA4JYG.js} +35 -35
  85. package/{removeDialogAgentAction-F5GPTALR.js → removeDialogAgentAction-BVU6E27N.js} +4 -4
  86. package/{runAgentClientLoop-CAS5IJWE.js → runAgentClientLoop-VZCX37ZP.js} +28 -28
  87. package/{setDialogExtraReferencesAction-AY4ZCF3A.js → setDialogExtraReferencesAction-AUKADSTQ.js} +3 -3
  88. package/{setPrimaryDialogAgentAction-HPMG7V3R.js → setPrimaryDialogAgentAction-HMHZWURC.js} +4 -4
  89. package/{settingSlice-OEJA4NQO.js → settingSlice-HIQRILF5.js} +3 -3
  90. package/{spaceCommands-FZXF2UST.js → spaceCommands-ANELRNRF.js} +16 -16
  91. package/{streamAgentChatTurn-3RGW4I7T.js → streamAgentChatTurn-QM364J6U.js} +32 -32
  92. package/{switchDialogAgentAction-HMDZTZ4I.js → switchDialogAgentAction-Y66ZTIGP.js} +2 -2
  93. package/{tools-YFW6QGIZ.js → tools-YNRN4HC7.js} +22 -22
  94. package/{tuiSummaryLlmCaller-J5BEPLW5.js → tuiSummaryLlmCaller-ZGATEM35.js} +10 -10
  95. package/{updateDialogTitleAction-QAUF6YRW.js → updateDialogTitleAction-OOYKI7LI.js} +14 -14
@@ -32,12 +32,7 @@ var resolveFireworksKimiModel = (model) => {
32
32
  var PLATFORM_HOSTED_CLAUDE_SONNET_5_MODEL = "anthropic/claude-sonnet-5";
33
33
  var PLATFORM_HOSTED_CLAUDE_OPUS_5_MODEL = "anthropic/claude-opus-5";
34
34
  var PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL = "anthropic/claude-fable-5";
35
- var PLATFORM_HOSTED_CLAUDE_HAIKU_45_MODEL = "anthropic/claude-haiku-4-5";
36
35
  var PLATFORM_HOSTED_GROK_4_6_MODEL = "grok-4.6";
37
- var PLATFORM_HOSTED_GPT_6_ASTRA_MODEL = "gpt-6-astra";
38
- var PLATFORM_HOSTED_GPT_56_SOL_MODEL = "gpt-5.6-sol";
39
- var PLATFORM_HOSTED_GPT_56_TERRA_MODEL = "gpt-5.6-terra";
40
- var PLATFORM_HOSTED_GPT_56_LUNA_MODEL = "gpt-5.6-luna";
41
36
  var PLATFORM_HOSTED_KIMI_K26_OPENROUTER_MODEL_ID = "qwen/qwen3.8-27b";
42
37
  var PLATFORM_HOSTED_GLM_53_MODEL = "glm-5.3";
43
38
  var PLATFORM_HOSTED_GLM_52_MODEL = "glm-5.2";
@@ -54,6 +49,7 @@ var PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL = "deepseek-flash";
54
49
  var PLATFORM_HOSTED_DEEPSEEK_FLASH_VISION_EXP_MODEL = "deepseek-v4-flash-vision-exp";
55
50
  var PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL = "deepseek-v4-pro";
56
51
  var PLATFORM_HOSTED_LEGACY_DEEPSEEK_V4_FLASH_MODEL = "deepseek-v4-flash";
52
+ var PLATFORM_HOSTED_NEMOTRON_35_LIGHTNING_MODEL = "nemotron-3-5-lightning-30b";
57
53
  var PLATFORM_HOSTED_KIMI_K3_MIN_CLIENT_VERSION = "0.38.0-alpha.4";
58
54
  var PLATFORM_HOSTED_GLM_53_FLASH_MIN_CLIENT_VERSION = "0.33.0-alpha.1";
59
55
  var PLATFORM_HOSTED_ROUTING_TABLE = {
@@ -65,22 +61,18 @@ var PLATFORM_HOSTED_ROUTING_TABLE = {
65
61
  wire: "chat.completions",
66
62
  agentRunHosted: true
67
63
  },
68
- // GLM 5.3 & GLM 5.2 -> Baseten(inference.baseten.co)
69
64
  [PLATFORM_HOSTED_GLM_53_MODEL]: {
70
- endpoint: "https://inference.baseten.co/v1/chat/completions",
71
- usageProvider: "baseten",
72
- keyName: "baseten",
73
- // Baseten model library 的官方 id
74
- upstreamModelId: "zai-org/GLM-5.3",
65
+ endpoint: "https://crof.ai/v1/chat/completions",
66
+ usageProvider: "upstream-k3",
67
+ keyName: "upstream-k3",
75
68
  wire: "chat.completions",
76
69
  agentRunHosted: true
77
70
  },
78
71
  [PLATFORM_HOSTED_GLM_52_MODEL]: {
79
- endpoint: "https://inference.baseten.co/v1/chat/completions",
80
- usageProvider: "baseten",
81
- keyName: "baseten",
82
- // legacy 5.2 显式 remap 到 baseten 的 zai-org/GLM-5.3,不得透传 "glm-5.2"
83
- upstreamModelId: "zai-org/GLM-5.3",
72
+ endpoint: "https://crof.ai/v1/chat/completions",
73
+ usageProvider: "upstream-k3",
74
+ keyName: "upstream-k3",
75
+ upstreamModelId: PLATFORM_HOSTED_GLM_53_MODEL,
84
76
  wire: "chat.completions",
85
77
  agentRunHosted: true
86
78
  },
@@ -101,13 +93,11 @@ var PLATFORM_HOSTED_ROUTING_TABLE = {
101
93
  agentRunHosted: true,
102
94
  minClientVersion: PLATFORM_HOSTED_GLM_53_FLASH_MIN_CLIENT_VERSION
103
95
  },
104
- // Kimi K3 -> Baseten(inference.baseten.co;model library 的 moonshotai/Kimi-K3)
105
96
  // wire 要求专属 body quirk(删采样参数 + max_completion_tokens),旧客户端本地直连必断。
106
97
  [PLATFORM_HOSTED_KIMI_K3_MODEL]: {
107
- endpoint: "https://inference.baseten.co/v1/chat/completions",
108
- usageProvider: "baseten",
109
- keyName: "baseten",
110
- upstreamModelId: "moonshotai/Kimi-K3",
98
+ endpoint: "https://crof.ai/v1/chat/completions",
99
+ usageProvider: "upstream-k3",
100
+ keyName: "upstream-k3",
111
101
  wire: "chat.completions",
112
102
  agentRunHosted: true,
113
103
  minClientVersion: PLATFORM_HOSTED_KIMI_K3_MIN_CLIENT_VERSION
@@ -166,70 +156,32 @@ var PLATFORM_HOSTED_ROUTING_TABLE = {
166
156
  wire: "chat.completions",
167
157
  agentRunHosted: true
168
158
  },
169
- // Claude 系(真实模型):DeepInfra 官方 id 与平台 id 同名,无需重映射。
170
- // DeepInfra 这批模型无缓存价(rate_per_input_token_cached=null),计费侧对
171
- // 无 inputCacheHit 的 deepinfra 模型按 input 全价计(见 calculatePrice)。
159
+ // Claude 系已下架(2026-09-01):旧模型名保留路由做兼容,一律重映射到
160
+ // RunInfra 的 glm-5-3-flash(同 kimi-k2.6 → qwen 先例)。存量 agent 记录由
161
+ // modelUpgradeTable 迁移,这里兜住迁移窗口期与漏网请求。
172
162
  [PLATFORM_HOSTED_CLAUDE_SONNET_5_MODEL]: {
173
- endpoint: "https://api.deepinfra.com/v1/openai/chat/completions",
174
- usageProvider: "deepinfra",
175
- keyName: "deepinfra",
176
- upstreamModelId: PLATFORM_HOSTED_CLAUDE_SONNET_5_MODEL,
163
+ endpoint: "https://api.runinfra.ai/v1/chat/completions",
164
+ usageProvider: "runinfra",
165
+ keyName: "runinfra",
177
166
  wire: "chat.completions",
178
- agentRunHosted: true
167
+ agentRunHosted: true,
168
+ upstreamModelId: PLATFORM_HOSTED_GLM_53_FLASH_MODEL
179
169
  },
180
170
  [PLATFORM_HOSTED_CLAUDE_OPUS_5_MODEL]: {
181
- endpoint: "https://api.deepinfra.com/v1/openai/chat/completions",
182
- usageProvider: "deepinfra",
183
- keyName: "deepinfra",
184
- upstreamModelId: PLATFORM_HOSTED_CLAUDE_OPUS_5_MODEL,
171
+ endpoint: "https://api.runinfra.ai/v1/chat/completions",
172
+ usageProvider: "runinfra",
173
+ keyName: "runinfra",
185
174
  wire: "chat.completions",
186
- agentRunHosted: true
175
+ agentRunHosted: true,
176
+ upstreamModelId: PLATFORM_HOSTED_GLM_53_FLASH_MODEL
187
177
  },
188
178
  [PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL]: {
189
- endpoint: "https://api.deepinfra.com/v1/openai/chat/completions",
190
- usageProvider: "deepinfra",
191
- keyName: "deepinfra",
192
- upstreamModelId: PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL,
193
- wire: "chat.completions",
194
- agentRunHosted: true
195
- },
196
- [PLATFORM_HOSTED_CLAUDE_HAIKU_45_MODEL]: {
197
- endpoint: "https://api.deepinfra.com/v1/openai/chat/completions",
198
- usageProvider: "deepinfra",
199
- keyName: "deepinfra",
200
- upstreamModelId: PLATFORM_HOSTED_CLAUDE_HAIKU_45_MODEL,
201
- wire: "chat.completions",
202
- agentRunHosted: true
203
- },
204
- // GPT-6 / GPT-5.6 系(OpenAI 官方 chat.completions):
205
- // 平台价按短上下文价目定(长上下文档差价由平台吸收),见 platformHosted.ts。
206
- [PLATFORM_HOSTED_GPT_6_ASTRA_MODEL]: {
207
- endpoint: "https://api.openai.com/v1/chat/completions",
208
- usageProvider: "openai",
209
- keyName: "openai",
210
- wire: "chat.completions",
211
- agentRunHosted: true
212
- },
213
- [PLATFORM_HOSTED_GPT_56_SOL_MODEL]: {
214
- endpoint: "https://api.openai.com/v1/chat/completions",
215
- usageProvider: "openai",
216
- keyName: "openai",
217
- wire: "chat.completions",
218
- agentRunHosted: true
219
- },
220
- [PLATFORM_HOSTED_GPT_56_TERRA_MODEL]: {
221
- endpoint: "https://api.openai.com/v1/chat/completions",
222
- usageProvider: "openai",
223
- keyName: "openai",
224
- wire: "chat.completions",
225
- agentRunHosted: true
226
- },
227
- [PLATFORM_HOSTED_GPT_56_LUNA_MODEL]: {
228
- endpoint: "https://api.openai.com/v1/chat/completions",
229
- usageProvider: "openai",
230
- keyName: "openai",
179
+ endpoint: "https://api.runinfra.ai/v1/chat/completions",
180
+ usageProvider: "runinfra",
181
+ keyName: "runinfra",
231
182
  wire: "chat.completions",
232
- agentRunHosted: true
183
+ agentRunHosted: true,
184
+ upstreamModelId: PLATFORM_HOSTED_GLM_53_FLASH_MODEL
233
185
  },
234
186
  // Grok -> xAI(server agentRun 侧未分流,保持 no upstream route 报错)
235
187
  [PLATFORM_HOSTED_GROK_4_6_MODEL]: {
@@ -247,6 +199,15 @@ var PLATFORM_HOSTED_ROUTING_TABLE = {
247
199
  wire: "responses",
248
200
  agentRunHosted: true
249
201
  },
202
+ // Nemotron 标题 LLM 内部专用,走 chatProxy;agentRun 不分流。
203
+ [PLATFORM_HOSTED_NEMOTRON_35_LIGHTNING_MODEL]: {
204
+ endpoint: "https://api.runinfra.ai/v1/chat/completions",
205
+ usageProvider: "runinfra",
206
+ keyName: "runinfra",
207
+ upstreamModelId: "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16",
208
+ wire: "chat.completions",
209
+ agentRunHosted: false
210
+ },
250
211
  // DeepSeek Flash -> DeepSeek Responses API(agentRun 走专用 responses 编排)
251
212
  [PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL]: {
252
213
  endpoint: "https://api.deepseek.com/responses",
@@ -413,6 +374,14 @@ function buildClientVersionGateErrorDetail(decision) {
413
374
  }
414
375
 
415
376
  // packages/ai/llm/platformHosted.ts
377
+ var PLATFORM_HOSTED_CLAUDE_MODELS = [
378
+ PLATFORM_HOSTED_CLAUDE_SONNET_5_MODEL,
379
+ PLATFORM_HOSTED_CLAUDE_OPUS_5_MODEL,
380
+ PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL
381
+ ];
382
+ var isPlatformHostedClaudeModel = (model) => PLATFORM_HOSTED_CLAUDE_MODELS.some(
383
+ (m) => asTrimmedLowercaseString(model) === m
384
+ );
416
385
  var PLATFORM_CREDITS_PER_USD = 8;
417
386
  var toPlatformCredits = (usdPerMillion) => Number((usdPerMillion * PLATFORM_CREDITS_PER_USD).toFixed(6));
418
387
  var CNY_UPSTREAM_MULTIPLIER = 1.2;
@@ -435,77 +404,18 @@ var PLATFORM_HOSTED_KIMI_PRICE = {
435
404
  // 24.0 credits (24 = 24)
436
405
  };
437
406
  var PLATFORM_HOSTED_KIMI_K3_PRICE = {
438
- input: toPlatformCredits(3),
439
- // 24.0 credits
440
- inputCacheHit: toPlatformCredits(0.3),
441
- // 2.4 credits
442
- output: toPlatformCredits(15)
443
- // 120.0 credits
407
+ input: 16,
408
+ inputCacheHit: 2,
409
+ output: 64
444
410
  };
445
411
  var PLATFORM_HOSTED_GLM_PRICE = {
446
412
  input: 7.84,
447
413
  // 11.2 credits
448
- inputCacheHit: toPlatformCredits(0.14),
449
- // 1.12 credits
414
+ inputCacheHit: toPlatformCredits(0.06),
415
+ // 0.48 credits
450
416
  output: 24.64
451
417
  // 35.2 credits (35.2 = 35.2)
452
418
  };
453
- var PLATFORM_HOSTED_CLAUDE_FABLE_5_PRICE = {
454
- input: toPlatformCredits(10),
455
- // 80 credits
456
- output: toPlatformCredits(50)
457
- // 400 credits
458
- };
459
- var PLATFORM_HOSTED_CLAUDE_OPUS_5_PRICE = {
460
- input: toPlatformCredits(5),
461
- // 40 credits
462
- output: toPlatformCredits(25)
463
- // 200 credits
464
- };
465
- var PLATFORM_HOSTED_CLAUDE_SONNET_5_PRICE = {
466
- input: toPlatformCredits(3),
467
- // 24 credits
468
- output: toPlatformCredits(15)
469
- // 120 credits
470
- };
471
- var PLATFORM_HOSTED_CLAUDE_HAIKU_45_PRICE = {
472
- input: toPlatformCredits(1),
473
- // 8 credits
474
- output: toPlatformCredits(5)
475
- // 40 credits
476
- };
477
- var PLATFORM_HOSTED_GPT_6_ASTRA_PRICE = {
478
- input: toPlatformCredits(10),
479
- // 80 credits
480
- inputCacheHit: toPlatformCredits(1),
481
- // 8 credits
482
- output: toPlatformCredits(50)
483
- // 400 credits
484
- };
485
- var PLATFORM_HOSTED_GPT_56_SOL_PRICE = {
486
- input: toPlatformCredits(4),
487
- // 32 credits
488
- inputCacheHit: toPlatformCredits(0.4),
489
- // 3.2 credits
490
- output: toPlatformCredits(20)
491
- // 160 credits
492
- };
493
- var PLATFORM_HOSTED_GPT_56_TERRA_PRICE = {
494
- input: toPlatformCredits(2),
495
- // 16 credits
496
- inputCacheHit: toPlatformCredits(0.2),
497
- // 1.6 credits
498
- output: toPlatformCredits(12)
499
- // 96 credits
500
- };
501
- var PLATFORM_HOSTED_GPT_56_LUNA_PRICE = {
502
- input: toPlatformCredits(0.2),
503
- // 1.6 credits
504
- inputCacheHit: toPlatformCredits(0.02),
505
- // 0.16 credits
506
- output: toPlatformCredits(1.2)
507
- // 9.6 credits
508
- };
509
419
  var PLATFORM_HOSTED_GLM_53_FLASH_PRICE = {
510
420
  input: toPlatformCredits(0.1),
511
421
  // 0.8 credits
@@ -629,6 +539,11 @@ var PLATFORM_HOSTED_DEEPSEEK_PRO_OFF_PEAK_PRICE = {
629
539
  output: toCnyCredits(13.5)
630
540
  // ¥13.5
631
541
  };
542
+ var PLATFORM_HOSTED_NEMOTRON_35_LIGHTNING_PRICE = {
543
+ input: toPlatformCredits(0.05),
544
+ inputCacheHit: toPlatformCredits(0.01),
545
+ output: toPlatformCredits(0.15)
546
+ };
632
547
  var PLATFORM_HOSTED_LEGACY_DEEPSEEK_MODELS = [
633
548
  "deepseek-v4-flash",
634
549
  "deepseek-v4-flash-vision-exp"
@@ -655,6 +570,16 @@ var isPlatformHostedDeepSeekModel = (model) => {
655
570
  var isPlatformHostedDeepseekModel = isPlatformHostedDeepSeekModel;
656
571
  var isPlatformHostedDeepSeekV4Model = isPlatformHostedDeepSeekModel;
657
572
  var platformHostedModels = [
573
+ {
574
+ name: PLATFORM_HOSTED_NEMOTRON_35_LIGHTNING_MODEL,
575
+ displayName: "Nemotron 3.5 Lightning 30B",
576
+ hasVision: false,
577
+ price: { ...PLATFORM_HOSTED_NEMOTRON_35_LIGHTNING_PRICE },
578
+ maxOutputTokens: 32768,
579
+ contextWindow: 262144,
580
+ supportsTool: true,
581
+ supportsReasoningEffort: true
582
+ },
658
583
  {
659
584
  name: PLATFORM_HOSTED_KIMI_K3_MODEL,
660
585
  displayName: "Kimi K3",
@@ -754,85 +679,9 @@ var platformHostedModels = [
754
679
  supportsReasoningEffort: true,
755
680
  minClientVersion: PLATFORM_HOSTED_GLM_53_FLASH_MIN_CLIENT_VERSION
756
681
  },
757
- // Claude 系(真实 DeepInfra 模型,官方 id 与平台 id 同名):无缓存价,
758
- // 计费按 input 全价(见 calculatePrice 的 deepinfra 分支)。
759
- {
760
- name: PLATFORM_HOSTED_CLAUDE_SONNET_5_MODEL,
761
- displayName: "Claude Sonnet 5",
762
- hasVision: true,
763
- price: { ...PLATFORM_HOSTED_CLAUDE_SONNET_5_PRICE },
764
- maxOutputTokens: 4092,
765
- contextWindow: 1e6,
766
- supportsTool: false
767
- },
768
- {
769
- name: PLATFORM_HOSTED_CLAUDE_OPUS_5_MODEL,
770
- displayName: "Claude Opus 5",
771
- hasVision: true,
772
- price: { ...PLATFORM_HOSTED_CLAUDE_OPUS_5_PRICE },
773
- maxOutputTokens: 4092,
774
- contextWindow: 1e6,
775
- supportsTool: false
776
- },
777
- {
778
- name: PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL,
779
- displayName: "Claude Fable 5",
780
- hasVision: true,
781
- price: { ...PLATFORM_HOSTED_CLAUDE_FABLE_5_PRICE },
782
- maxOutputTokens: 4092,
783
- contextWindow: 1e6,
784
- supportsTool: false
785
- },
786
- {
787
- name: PLATFORM_HOSTED_CLAUDE_HAIKU_45_MODEL,
788
- displayName: "Claude Haiku 4.5",
789
- hasVision: true,
790
- price: { ...PLATFORM_HOSTED_CLAUDE_HAIKU_45_PRICE },
791
- maxOutputTokens: 4092,
792
- contextWindow: 2e5,
793
- supportsTool: false
794
- },
795
- // GPT-6 / GPT-5.6 系:OpenAI 官方 chat.completions,平台价按短上下文价目。
796
- {
797
- name: PLATFORM_HOSTED_GPT_6_ASTRA_MODEL,
798
- displayName: "GPT-6 Astra",
799
- hasVision: true,
800
- price: { ...PLATFORM_HOSTED_GPT_6_ASTRA_PRICE },
801
- maxOutputTokens: 128e3,
802
- contextWindow: 105e4,
803
- supportsTool: true,
804
- supportsReasoningEffort: true
805
- },
806
- {
807
- name: PLATFORM_HOSTED_GPT_56_SOL_MODEL,
808
- displayName: "GPT-5.6 Sol",
809
- hasVision: true,
810
- price: { ...PLATFORM_HOSTED_GPT_56_SOL_PRICE },
811
- maxOutputTokens: 128e3,
812
- contextWindow: 105e4,
813
- supportsTool: true,
814
- supportsReasoningEffort: true
815
- },
816
- {
817
- name: PLATFORM_HOSTED_GPT_56_TERRA_MODEL,
818
- displayName: "GPT-5.6 Terra",
819
- hasVision: true,
820
- price: { ...PLATFORM_HOSTED_GPT_56_TERRA_PRICE },
821
- maxOutputTokens: 128e3,
822
- contextWindow: 105e4,
823
- supportsTool: true,
824
- supportsReasoningEffort: true
825
- },
826
- {
827
- name: PLATFORM_HOSTED_GPT_56_LUNA_MODEL,
828
- displayName: "GPT-5.6 Luna",
829
- hasVision: true,
830
- price: { ...PLATFORM_HOSTED_GPT_56_LUNA_PRICE },
831
- maxOutputTokens: 128e3,
832
- contextWindow: 105e4,
833
- supportsTool: true,
834
- supportsReasoningEffort: true
835
- },
682
+ // Claude 系已下架(2026-09-01),不再出现在 nolo 托管模型列表;旧模型名请求由
683
+ // platformHostedRoutingTable 重映射到 glm-5-3-flash 做兼容。deepinfra 直连通道
684
+ // (用户自有 key)不受影响,见 ./deepinfra.ts。
836
685
  {
837
686
  name: PLATFORM_HOSTED_GROK_4_6_MODEL,
838
687
  displayName: "Grok 4.6",
@@ -1000,6 +849,7 @@ export {
1000
849
  isFireworksKimiModel,
1001
850
  isDeepInfraKimiModel,
1002
851
  resolveFireworksKimiModel,
852
+ PLATFORM_HOSTED_GLM_53_FLASH_MODEL,
1003
853
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
1004
854
  PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL,
1005
855
  resolvePlatformHostedRouting,
@@ -1008,6 +858,7 @@ export {
1008
858
  buildClientVersionUpgradeMessage,
1009
859
  evaluatePlatformHostedClientVersionGate,
1010
860
  buildClientVersionGateErrorDetail,
861
+ isPlatformHostedClaudeModel,
1011
862
  toCnyCredits,
1012
863
  PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE,
1013
864
  isPlatformHostedOpenAIImageModel,
@@ -4,7 +4,7 @@ import {
4
4
  openrouterModels,
5
5
  platformHostedModels,
6
6
  zaiModels
7
- } from "./chunk-AJHEFRGJ.js";
7
+ } from "./chunk-5YIL5WDC.js";
8
8
 
9
9
  // packages/ai/llm/modelAbility.ts
10
10
  var MODEL_ABILITY_TABLE = {
@@ -29,7 +29,7 @@ import {
29
29
  toCompactAgentSummary,
30
30
  toSafeAgentSummary,
31
31
  toUnavailableAgentSummary
32
- } from "./chunk-FPTQQSS6.js";
32
+ } from "./chunk-UFTOGLCE.js";
33
33
  import {
34
34
  getUserDataItemTimestamp,
35
35
  mergeAndDedupUserData
@@ -40,7 +40,7 @@ import {
40
40
  readPageFunc,
41
41
  readPageFunctionSchema,
42
42
  slateToSimplifiedMarkdown
43
- } from "./chunk-UDQWGU7F.js";
43
+ } from "./chunk-5TJQUZQ7.js";
44
44
  import {
45
45
  addMemberSpace,
46
46
  fetchAuthoritativeRemoteSpace,
@@ -52,7 +52,7 @@ import {
52
52
  setMembershipRejected,
53
53
  setSpaceInitialized,
54
54
  updateMemberSpaceName
55
- } from "./chunk-PZM3EENV.js";
55
+ } from "./chunk-K647EQV3.js";
56
56
  import {
57
57
  ToolApiError,
58
58
  buildToolRequestHeaders,
@@ -63,7 +63,7 @@ import {
63
63
  } from "./chunk-OZX2IPKM.js";
64
64
  import {
65
65
  setDialogExtraReferencesAction
66
- } from "./chunk-4EJ5QYB5.js";
66
+ } from "./chunk-7JS3F5ZR.js";
67
67
  import {
68
68
  waitForAbortableDelay
69
69
  } from "./chunk-N4G4PKQ6.js";
@@ -81,14 +81,14 @@ import {
81
81
  } from "./chunk-VF4K2QE6.js";
82
82
  import {
83
83
  createDocState
84
- } from "./chunk-VD2NV6C5.js";
84
+ } from "./chunk-PADUIVUU.js";
85
85
  import {
86
86
  BUILTIN_OBJECT_SKILL_IDS,
87
87
  buildBuiltinObjectSkillConfig,
88
88
  buildBuiltinObjectSkillDbKey,
89
89
  buildBuiltinObjectSkillPageContent,
90
90
  createDialogAction
91
- } from "./chunk-FUZRQKU2.js";
91
+ } from "./chunk-SKWZFK56.js";
92
92
  import {
93
93
  DEFAULT_COLLAPSED_CATEGORIES,
94
94
  addContentToSpace,
@@ -106,7 +106,7 @@ import {
106
106
  updateContentCategory,
107
107
  updateContentTitle,
108
108
  writeStoredCollapsedCategories
109
- } from "./chunk-3BIRZJCI.js";
109
+ } from "./chunk-2L7EUBRN.js";
110
110
  import {
111
111
  getCurrentSpaceId,
112
112
  getCurrentSpaceIdRaw,
@@ -128,14 +128,14 @@ import {
128
128
  selectMsgById,
129
129
  uiAskChoiceFunc,
130
130
  uiAskChoiceFunctionSchema
131
- } from "./chunk-LW2BWHRM.js";
131
+ } from "./chunk-C2SHPJSS.js";
132
132
  import {
133
133
  createAgent,
134
134
  deleteServerSyncedCredential,
135
135
  runLlm,
136
136
  streamAgentChatTurn,
137
137
  updateAgent
138
- } from "./chunk-R2PJ4WKV.js";
138
+ } from "./chunk-4ENGEYUY.js";
139
139
  import {
140
140
  getActiveDialogKey,
141
141
  selectCurrentDialogKey,
@@ -184,10 +184,10 @@ import {
184
184
  } from "./chunk-CJCJF5XB.js";
185
185
  import {
186
186
  buildDatabaseFileContentUrl
187
- } from "./chunk-E36HZARC.js";
187
+ } from "./chunk-3E67YXGD.js";
188
188
  import {
189
189
  DEFAULT_MODEL
190
- } from "./chunk-UJ63UXGE.js";
190
+ } from "./chunk-TQC77XVE.js";
191
191
  import {
192
192
  compactWhitespace
193
193
  } from "./chunk-DWLEOOGR.js";
@@ -203,7 +203,7 @@ import {
203
203
  } from "./chunk-O6OSWFZQ.js";
204
204
  import {
205
205
  shareResourceAction
206
- } from "./chunk-SZLVDREM.js";
206
+ } from "./chunk-WMRPXIZY.js";
207
207
  import {
208
208
  AGENT_UPDATE_FIELD_NAMES,
209
209
  nolotusId,
@@ -211,7 +211,7 @@ import {
211
211
  selectAutoApproveSelfUpdateFields,
212
212
  selectCurrentServer,
213
213
  selectSyncServers
214
- } from "./chunk-XWNRAIUL.js";
214
+ } from "./chunk-OPNHMILE.js";
215
215
  import {
216
216
  asRecordOrEmpty
217
217
  } from "./chunk-KX6YBIHG.js";
@@ -219,7 +219,7 @@ import {
219
219
  UNCATEGORIZED_ID,
220
220
  addContentAction,
221
221
  checkSpaceMembership
222
- } from "./chunk-ZZCJUXUI.js";
222
+ } from "./chunk-IM5EETJX.js";
223
223
  import {
224
224
  createSpaceKey,
225
225
  normalizeSpaceId
@@ -234,7 +234,7 @@ import {
234
234
  selectEntities,
235
235
  toTimestampMs,
236
236
  write
237
- } from "./chunk-YFADVSZE.js";
237
+ } from "./chunk-4K6DB3GJ.js";
238
238
  import {
239
239
  SEPARATOR,
240
240
  TYPE_STORAGE_PREFIXES,
@@ -266,7 +266,7 @@ import {
266
266
  } from "./chunk-QSJ3HFEF.js";
267
267
  import {
268
268
  readAction
269
- } from "./chunk-5J7W2VWW.js";
269
+ } from "./chunk-4MKPBCTN.js";
270
270
  import {
271
271
  extractCustomId
272
272
  } from "./chunk-BJIRLHJR.js";
@@ -919,7 +919,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
919
919
  workspace: { mode: "lease" }
920
920
  };
921
921
  var findModelConfig = async (modelName, provider) => {
922
- const { ALL_MODELS } = await import("./models-GS72DVJS.js");
922
+ const { ALL_MODELS } = await import("./models-NBVTQACP.js");
923
923
  const name = toTrimmedString(modelName);
924
924
  const prov = toTrimmedString(provider ?? "");
925
925
  if (!name) return null;
@@ -1164,7 +1164,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
1164
1164
  const trimmedModel = toTrimmedString(model);
1165
1165
  const trimmedProvider = toTrimmedString(provider);
1166
1166
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
1167
- const { getModelPricing } = await import("./getPricing-HRMSOF3E.js");
1167
+ const { getModelPricing } = await import("./getPricing-JRNHI5CV.js");
1168
1168
  const normalizedTools = tools ?? [];
1169
1169
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
1170
1170
  const formData = {
@@ -4672,7 +4672,7 @@ async function deleteDialogsFunc(args, thunkApi) {
4672
4672
  const deletedDialogIds = [];
4673
4673
  const deletedDialogKeys = [];
4674
4674
  const failures = [];
4675
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-7S2IE53T.js");
4675
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-2TSABNK5.js");
4676
4676
  for (const target of targets) {
4677
4677
  try {
4678
4678
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4979,7 +4979,7 @@ var readSkillDocFunctionSchema = {
4979
4979
  }
4980
4980
  };
4981
4981
  async function readSkillDocFunc(args, thunkApi) {
4982
- const { buildReadDocResult } = await import("./readDocTool-N3ERJHHF.js");
4982
+ const { buildReadDocResult } = await import("./readDocTool-OU4QXJT6.js");
4983
4983
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
4984
4984
  if (typeof id !== "string" || !id.trim()) {
4985
4985
  throw new Error("readSkillDoc requires id or doc.");
@@ -5782,7 +5782,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
5782
5782
  const spaceKey = createSpaceKey.space(spaceId);
5783
5783
  const readSpace = async (dbKey) => {
5784
5784
  try {
5785
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-GKGGFNOB.js");
5785
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-WL5T2LVF.js");
5786
5786
  if (fresh) {
5787
5787
  return await dispatch(readAndWait2(dbKey)).unwrap();
5788
5788
  }
@@ -11508,7 +11508,7 @@ var selectUserIdFromState = (state2) => {
11508
11508
  var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
11509
11509
  async function addImageContentToSpace(input) {
11510
11510
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
11511
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-XAPUTGL4.js")).addContentAction;
11511
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-E3S6F3IS.js")).addContentAction;
11512
11512
  await addContentAction2(
11513
11513
  {
11514
11514
  spaceId: input.spaceId,
@@ -15429,7 +15429,7 @@ var executeToolRun = createAsyncThunk(
15429
15429
  if (!executionInput) {
15430
15430
  throw new Error(`ToolRun ${id} has no input to execute with.`);
15431
15431
  }
15432
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-YFW6QGIZ.js");
15432
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-YNRN4HC7.js");
15433
15433
  const { executor } = findToolExecutor2(run.toolName);
15434
15434
  toolRunStarted({
15435
15435
  id: run.id,
@@ -15453,7 +15453,7 @@ var executeToolRun = createAsyncThunk(
15453
15453
  const latestState = thunkApi.getState();
15454
15454
  const userId = selectIdentityUserId(latestState);
15455
15455
  if (userId) {
15456
- const { fetchUserSpaceMemberships } = await import("./memberThunks-KATHH3F4.js");
15456
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-OBDDU3NR.js");
15457
15457
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
15458
15458
  }
15459
15459
  }
@@ -17936,7 +17936,7 @@ async function updateDocFunc(args, thunkApi) {
17936
17936
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
17937
17937
  };
17938
17938
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
17939
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-AETL5FRN.js");
17939
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-GX4LBBIB.js");
17940
17940
  if (getDocState().pageKey === id) {
17941
17941
  applyExternalDocUpdate({
17942
17942
  slateData: finalSlateData,
@@ -17961,7 +17961,7 @@ async function updateDocFunc(args, thunkApi) {
17961
17961
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
17962
17962
  async function dispatchSetSettings(thunkApi, changes) {
17963
17963
  const injectedSetSettings = thunkApi?.extra?.setSettings;
17964
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-OEJA4NQO.js")).setSettings;
17964
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-HIQRILF5.js")).setSettings;
17965
17965
  await thunkApi.dispatch(setSettings(changes)).unwrap();
17966
17966
  }
17967
17967
  var updateUserPreferenceProfileFunctionSchema = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-XWNRAIUL.js";
3
+ } from "./chunk-OPNHMILE.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-YFADVSZE.js";
6
+ } from "./chunk-4K6DB3GJ.js";
7
7
  import {
8
8
  getIsDesktopApp
9
9
  } from "./chunk-QOKAKDPE.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-YFADVSZE.js";
10
+ } from "./chunk-4K6DB3GJ.js";
11
11
  import {
12
12
  __toESM
13
13
  } from "./chunk-4VNS5WPM.js";
@@ -11,7 +11,7 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  normalizeAntigravityTokenPayload,
13
13
  refreshAntigravityToken
14
- } from "./chunk-PGSKWZCB.js";
14
+ } from "./chunk-ZW22L5ES.js";
15
15
  import {
16
16
  writeOAuthCredential
17
17
  } from "./chunk-ONXOABJR.js";