nolo-cli 0.70.0 → 0.71.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/{_executeModel-YXI7ADJF.js → _executeModel-2U22Y4CK.js} +32 -32
  2. package/{action-AOORTHTU.js → action-D22U6CTH.js} +4 -4
  3. package/{addContentAction-E3S6F3IS.js → addContentAction-XAPUTGL4.js} +3 -3
  4. package/{addDialogAgentAction-EUBNJ5SS.js → addDialogAgentAction-M7VLLBZM.js} +2 -2
  5. package/{agentDeleteCommand-B5SKAPTR.js → agentDeleteCommand-FSIMTL4K.js} +16 -16
  6. package/{agentEmailCommands-LVUZQHBF.js → agentEmailCommands-XY4P4ZT7.js} +37 -37
  7. package/{agentListCommands-D2E7SFRQ.js → agentListCommands-2YWZYH52.js} +18 -18
  8. package/{agentMachineCommands-XNIBG4L2.js → agentMachineCommands-S2YSXV6Y.js} +17 -17
  9. package/{agentRecordCommands-ID3URU2J.js → agentRecordCommands-JYKV3ZMU.js} +36 -36
  10. package/{agentRunCommand-KZMPUI53.js → agentRunCommand-2F7CHVL7.js} +36 -36
  11. package/{agentRuntimeLocal-T47DU3IA.js → agentRuntimeLocal-O6DZDTK4.js} +16 -16
  12. package/{agentSlice-K5IE7FV3.js → agentSlice-QSZMNIII.js} +3 -3
  13. package/{appDeleteCommands-URD2F5YN.js → appDeleteCommands-HIJNWSK7.js} +16 -16
  14. package/{appDeployCommands-OACWEEWP.js → appDeployCommands-XULV2ZN6.js} +16 -16
  15. package/{appDeployStatusCommands-TVYLIUEU.js → appDeployStatusCommands-ETY4Z7K6.js} +16 -16
  16. package/{appGetCommands-ZWG2YEAE.js → appGetCommands-M253LKDA.js} +16 -16
  17. package/{appListCommands-E3BMSQEY.js → appListCommands-XYFXJMNP.js} +16 -16
  18. package/{authCommand-QHMBXOOH.js → authCommand-EVGFLAHO.js} +7 -7
  19. package/{chatQueueReduxAdapter-HL5A3L2W.js → chatQueueReduxAdapter-7MZUEBWA.js} +13 -13
  20. package/{chunk-6RNOFHEM.js → chunk-2PS2AR7L.js} +145 -38
  21. package/{chunk-RW76G3YN.js → chunk-3IT2PFHL.js} +1 -1
  22. package/{chunk-RJ5HQDHL.js → chunk-3QPYFHAH.js} +1 -1
  23. package/{chunk-IOZR6BLM.js → chunk-3U3EA3BO.js} +1 -1
  24. package/{chunk-7JS3F5ZR.js → chunk-4EJ5QYB5.js} +1 -1
  25. package/{chunk-4MKPBCTN.js → chunk-5J7W2VWW.js} +2 -3
  26. package/{chunk-4ENGEYUY.js → chunk-AGM65FOG.js} +4 -4
  27. package/{chunk-5YIL5WDC.js → chunk-AJHEFRGJ.js} +220 -71
  28. package/{chunk-76JAMDUT.js → chunk-BJCWNHVU.js} +2 -2
  29. package/{chunk-VOEOMLKR.js → chunk-CCWIBXO2.js} +9 -9
  30. package/{chunk-RXYIUZU5.js → chunk-CJ23A7U4.js} +9 -9
  31. package/{chunk-C2SHPJSS.js → chunk-CME2Y2B5.js} +28 -38
  32. package/{chunk-VLQRD7ZJ.js → chunk-CMH2SYHX.js} +2 -2
  33. package/{chunk-2XENHR3P.js → chunk-DSRXPQWA.js} +4 -4
  34. package/{chunk-2L7EUBRN.js → chunk-DT7P2EFC.js} +4 -4
  35. package/{chunk-3E67YXGD.js → chunk-E36HZARC.js} +2 -2
  36. package/{chunk-SHPRRU2W.js → chunk-EXMHJN7C.js} +2 -2
  37. package/{chunk-UFTOGLCE.js → chunk-FPTQQSS6.js} +1 -1
  38. package/{chunk-BNATE77Z.js → chunk-GBPZKFYK.js} +1 -1
  39. package/{chunk-ZCVO2HLZ.js → chunk-HXAINXPQ.js} +4 -4
  40. package/{chunk-JKAWV72Y.js → chunk-JYKNLVLH.js} +17 -17
  41. package/{chunk-SQDGTW2T.js → chunk-K7AG465Q.js} +2 -4
  42. package/{chunk-Y7PULBIA.js → chunk-KIS76A2P.js} +1 -1
  43. package/{chunk-AJF6YRN7.js → chunk-MYU3MJCF.js} +5 -1
  44. package/{chunk-6IT5ECCC.js → chunk-NG4UT4K4.js} +1 -1
  45. package/{chunk-Z3XXUE2E.js → chunk-ODYQBAKC.js} +39 -27
  46. package/{chunk-V3B6FQKC.js → chunk-OEZGYEEU.js} +13 -13
  47. package/{chunk-ZW22L5ES.js → chunk-PGSKWZCB.js} +1 -1
  48. package/{chunk-XTJTN3RW.js → chunk-PUOC4YRO.js} +0 -4
  49. package/{chunk-RSDPPLSM.js → chunk-PYXL2CJL.js} +1 -1
  50. package/{chunk-K647EQV3.js → chunk-PZM3EENV.js} +1 -1
  51. package/{chunk-OMHOVU2L.js → chunk-RIPTVWQV.js} +1 -1
  52. package/{chunk-SKWZFK56.js → chunk-ROMO632F.js} +5 -5
  53. package/{chunk-PADUIVUU.js → chunk-SASHA6KO.js} +3 -3
  54. package/{chunk-O2X6R45W.js → chunk-SIV74MEG.js} +3 -3
  55. package/{chunk-WMRPXIZY.js → chunk-SZLVDREM.js} +1 -1
  56. package/{chunk-5TJQUZQ7.js → chunk-UDQWGU7F.js} +1 -1
  57. package/{chunk-TQC77XVE.js → chunk-UJ63UXGE.js} +1 -1
  58. package/{chunk-36G25COQ.js → chunk-VNBOAZHE.js} +1 -1
  59. package/{chunk-OPNHMILE.js → chunk-XWNRAIUL.js} +2 -2
  60. package/{chunk-LMEH4C4G.js → chunk-XZJLVAC5.js} +3 -3
  61. package/{chunk-4K6DB3GJ.js → chunk-YFADVSZE.js} +3 -3
  62. package/{chunk-KRR3AG7T.js → chunk-ZLPA7K55.js} +3 -3
  63. package/{chunk-IM5EETJX.js → chunk-ZZCJUXUI.js} +1 -1
  64. package/{codingSkills-DB4QPUND.js → codingSkills-E6KSDNSJ.js} +2 -2
  65. package/{contentThunks-XV3U3V2O.js → contentThunks-XG6FQXLX.js} +14 -14
  66. package/{createAgentAutomationAction-UKKP6SAJ.js → createAgentAutomationAction-K42OMFRL.js} +14 -14
  67. package/{createDialogAction-WK6Y7DD7.js → createDialogAction-KPQENDVZ.js} +16 -16
  68. package/{createPageAction-SLRDORVZ.js → createPageAction-PBQEM53T.js} +14 -14
  69. package/{dbSlice-WL5T2LVF.js → dbSlice-GKGGFNOB.js} +2 -2
  70. package/{dialogCommands-E5AAV7PB.js → dialogCommands-PE5FEFJ5.js} +16 -16
  71. package/{dialogSlice-2TSABNK5.js → dialogSlice-X37YSBCE.js} +13 -13
  72. package/{docCreateCommands-N7P5VBTU.js → docCreateCommands-IPDFZVPG.js} +16 -16
  73. package/{docDeleteCommands-LZPPUYY6.js → docDeleteCommands-VQ4Y66CM.js} +16 -16
  74. package/{docReadCommands-UCQGMMBR.js → docReadCommands-PD33VV27.js} +16 -16
  75. package/{docStore-GX4LBBIB.js → docStore-YCMK3TDZ.js} +3 -3
  76. package/{docUpdateCommands-H57EVVVE.js → docUpdateCommands-CGUQ2JY3.js} +16 -16
  77. package/{getPricing-JRNHI5CV.js → getPricing-HRMSOF3E.js} +3 -3
  78. package/{handleSendMessageAction-DYAB4HTU.js → handleSendMessageAction-IYXYBDXA.js} +13 -13
  79. package/index.js +47 -47
  80. package/{machineCommands-3Y3EHK2H.js → machineCommands-TCHFLQQX.js} +36 -36
  81. package/{machineWsRunDispatch-RSVSJ4D7.js → machineWsRunDispatch-VJHFS6FY.js} +36 -36
  82. package/{memberThunks-OBDDU3NR.js → memberThunks-KATHH3F4.js} +3 -3
  83. package/{models-NBVTQACP.js → models-GS72DVJS.js} +2 -2
  84. package/package.json +1 -1
  85. package/{read-OOTHDABU.js → read-LC6HVYBN.js} +1 -1
  86. package/{readDocTool-OU4QXJT6.js → readDocTool-N3ERJHHF.js} +1 -1
  87. package/{readlineWorkspace-7FZA4JYG.js → readlineWorkspace-VBDFNMFW.js} +183 -68
  88. package/{removeDialogAgentAction-BVU6E27N.js → removeDialogAgentAction-F5GPTALR.js} +4 -4
  89. package/{runAgentClientLoop-VZCX37ZP.js → runAgentClientLoop-JZPQLKD3.js} +30 -30
  90. package/{setDialogExtraReferencesAction-AUKADSTQ.js → setDialogExtraReferencesAction-AY4ZCF3A.js} +3 -3
  91. package/{setPrimaryDialogAgentAction-HMHZWURC.js → setPrimaryDialogAgentAction-HPMG7V3R.js} +4 -4
  92. package/{settingSlice-HIQRILF5.js → settingSlice-OEJA4NQO.js} +3 -3
  93. package/{spaceCommands-ANELRNRF.js → spaceCommands-Y47DDAQD.js} +16 -16
  94. package/{streamAgentChatTurn-QM364J6U.js → streamAgentChatTurn-BMLM6G2H.js} +34 -34
  95. package/{switchDialogAgentAction-Y66ZTIGP.js → switchDialogAgentAction-HMDZTZ4I.js} +2 -2
  96. package/{tools-YNRN4HC7.js → tools-QD3SBHA3.js} +24 -24
  97. package/{tuiSummaryLlmCaller-ZGATEM35.js → tuiSummaryLlmCaller-J5BEPLW5.js} +10 -10
  98. package/{updateDialogTitleAction-OOYKI7LI.js → updateDialogTitleAction-PVZ2NUKN.js} +14 -14
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-AGGIDPCZ.js";
14
14
  import {
15
15
  runLlm
16
- } from "./chunk-4ENGEYUY.js";
16
+ } from "./chunk-AGM65FOG.js";
17
17
  import {
18
18
  cleanupCliSessionForDialog
19
- } from "./chunk-76JAMDUT.js";
19
+ } from "./chunk-BJCWNHVU.js";
20
20
  import {
21
21
  getActiveDialogAgentId,
22
22
  getDialogAgentIds,
@@ -54,7 +54,7 @@ import {
54
54
  getModelInfo,
55
55
  normalizeUsage,
56
56
  resolveAutoExecutionProfile
57
- } from "./chunk-2XENHR3P.js";
57
+ } from "./chunk-DSRXPQWA.js";
58
58
  import {
59
59
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
60
60
  buildCompactionMetricsFromPlan,
@@ -65,11 +65,11 @@ import {
65
65
  normalizeAssistantContentBuffer,
66
66
  planCompression,
67
67
  serializeMessageContent
68
- } from "./chunk-3E67YXGD.js";
68
+ } from "./chunk-E36HZARC.js";
69
69
  import {
70
70
  findModelConfig,
71
71
  getModelConfig
72
- } from "./chunk-TQC77XVE.js";
72
+ } from "./chunk-UJ63UXGE.js";
73
73
  import {
74
74
  toErrorMessage
75
75
  } from "./chunk-HNMXYYJR.js";
@@ -80,16 +80,14 @@ import {
80
80
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
81
81
  PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL,
82
82
  PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE,
83
- PLATFORM_HOSTED_GLM_53_FLASH_MODEL,
84
83
  getPlatformHostedDeepSeekV4Price,
85
- isPlatformHostedClaudeModel,
86
84
  isPlatformHostedDeepSeekV4Model,
87
85
  isPlatformHostedImageModel,
88
86
  isPlatformHostedOpenAIImageModel
89
- } from "./chunk-5YIL5WDC.js";
87
+ } from "./chunk-AJHEFRGJ.js";
90
88
  import {
91
89
  nolotusId
92
- } from "./chunk-OPNHMILE.js";
90
+ } from "./chunk-XWNRAIUL.js";
93
91
  import {
94
92
  asRecordOrEmpty
95
93
  } from "./chunk-KX6YBIHG.js";
@@ -99,7 +97,7 @@ import {
99
97
  remove,
100
98
  selectById,
101
99
  write
102
- } from "./chunk-4K6DB3GJ.js";
100
+ } from "./chunk-YFADVSZE.js";
103
101
  import {
104
102
  buildDialogAgentListIndexDeleteOps,
105
103
  createDialogMessageKeyAndId,
@@ -121,7 +119,7 @@ import {
121
119
  builtinAgentCatalogEntryById,
122
120
  builtinRuntimeFallbackEntries,
123
121
  isBuiltinPlatformAgentKey
124
- } from "./chunk-4MKPBCTN.js";
122
+ } from "./chunk-5J7W2VWW.js";
125
123
  import {
126
124
  extractCustomId,
127
125
  extractUserId,
@@ -17088,7 +17086,7 @@ var messageSlice = createSliceWithThunks({
17088
17086
  runtimeOptions: args.runtimeOptions
17089
17087
  });
17090
17088
  if (agentKeyToUse) {
17091
- const { streamAgentChatTurn } = await import("./agentSlice-K5IE7FV3.js");
17089
+ const { streamAgentChatTurn } = await import("./agentSlice-QSZMNIII.js");
17092
17090
  await dispatch(
17093
17091
  streamAgentChatTurn({
17094
17092
  agentKey: agentKeyToUse,
@@ -17397,15 +17395,20 @@ var calculateBasicCost = (model, usage, provider, externalPrice, billingServiceT
17397
17395
  switch (provider) {
17398
17396
  case "deepseek":
17399
17397
  case "openai":
17400
- case "deepinfra":
17401
17398
  case "runinfra":
17402
17399
  case "baseten":
17403
17400
  return calculateCacheBasedCost(resolvedPrice, usage, externalPrice);
17401
+ // deepinfra:多数模型带上游缓存价(走 cache-hit 折扣);无缓存价的模型
17402
+ // (如 Claude 系,rate_per_input_token_cached=null)必须把 cache_read 按
17403
+ // input 全价计——calculateCacheBasedCost 在缺 inputCacheHit 时取 0 价,
17404
+ // 会把缓存 token 打成免费。与 nolo 组同一防御。
17405
+ case "deepinfra":
17406
+ return typeof resolvedPrice.inputCacheHit === "number" ? calculateCacheBasedCost(resolvedPrice, usage, externalPrice) : calculateSimpleCost(resolvedPrice, usage, externalPrice);
17407
+ // nolo: honor inputCacheHit only when the model defines it (K3 has
17404
17408
  // without it keep simple full-price billing so cached tokens are not
17405
17409
  // priced at 0 — but a platform-hosted model用于 agentic 循环时必须补上
17406
17410
  // 这一项,否则每轮重放的上下文会被按 input 原价重复计费。
17407
17411
  case "nolo":
17408
- case "upstream-k3":
17409
17412
  return typeof resolvedPrice.inputCacheHit === "number" ? calculateCacheBasedCost(resolvedPrice, usage, externalPrice) : calculateSimpleCost(resolvedPrice, usage, externalPrice);
17410
17413
  case "anthropic":
17411
17414
  return calculateAnthropicCost(resolvedPrice, usage, externalPrice);
@@ -17525,19 +17528,6 @@ var calculatePrice = ({
17525
17528
  const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
17526
17529
  return { cost: sanitizeCost(costs3.charge), pay: pay3 };
17527
17530
  }
17528
- if (provider === "nolo" && isPlatformHostedClaudeModel(modelName)) {
17529
- const compatModel = getModelConfig("nolo", PLATFORM_HOSTED_GLM_53_FLASH_MODEL);
17530
- const costs3 = calculateBasicCost(
17531
- compatModel,
17532
- usage,
17533
- provider,
17534
- externalPrice,
17535
- billingServiceTier,
17536
- nowMs
17537
- );
17538
- const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
17539
- return { cost: sanitizeCost(costs3.charge), pay: pay3 };
17540
- }
17541
17531
  const zeroCostModel = {
17542
17532
  name: modelName,
17543
17533
  hasVision: false,
@@ -18229,7 +18219,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
18229
18219
  }
18230
18220
  if (isCurrentDialog) {
18231
18221
  await thunkApi.dispatch(resetMsgs());
18232
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-2TSABNK5.js");
18222
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-X37YSBCE.js");
18233
18223
  dispatch(clearPendingAttachments2());
18234
18224
  }
18235
18225
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -18237,39 +18227,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
18237
18227
 
18238
18228
  // packages/chat/dialog/dialogSlice.ts
18239
18229
  var runCreateDialogAction = async (args, thunkApi) => {
18240
- const { createDialogAction } = await import("./createDialogAction-WK6Y7DD7.js");
18230
+ const { createDialogAction } = await import("./createDialogAction-KPQENDVZ.js");
18241
18231
  return createDialogAction(args, thunkApi);
18242
18232
  };
18243
18233
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
18244
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-UKKP6SAJ.js");
18234
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-K42OMFRL.js");
18245
18235
  return createAgentAutomationAction(args, thunkApi);
18246
18236
  };
18247
18237
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
18248
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-OOYKI7LI.js");
18238
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-PVZ2NUKN.js");
18249
18239
  return updateDialogTitleAction(args, thunkApi);
18250
18240
  };
18251
18241
  var runAddDialogAgentAction = async (args, thunkApi) => {
18252
- const { addDialogAgentAction } = await import("./addDialogAgentAction-EUBNJ5SS.js");
18242
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-M7VLLBZM.js");
18253
18243
  return addDialogAgentAction(args, thunkApi);
18254
18244
  };
18255
18245
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
18256
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-BVU6E27N.js");
18246
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-F5GPTALR.js");
18257
18247
  return removeDialogAgentAction(args, thunkApi);
18258
18248
  };
18259
18249
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
18260
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-HMHZWURC.js");
18250
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-HPMG7V3R.js");
18261
18251
  return setPrimaryDialogAgentAction(args, thunkApi);
18262
18252
  };
18263
18253
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
18264
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-Y66ZTIGP.js");
18254
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-HMDZTZ4I.js");
18265
18255
  return switchDialogAgentAction(args, thunkApi);
18266
18256
  };
18267
18257
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
18268
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-AUKADSTQ.js");
18258
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-AY4ZCF3A.js");
18269
18259
  return setDialogExtraReferencesAction(args, thunkApi);
18270
18260
  };
18271
18261
  var runHandleSendMessageAction = async (args, thunkApi) => {
18272
- const { handleSendMessageAction } = await import("./handleSendMessageAction-DYAB4HTU.js");
18262
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-IYXYBDXA.js");
18273
18263
  return handleSendMessageAction(args, thunkApi);
18274
18264
  };
18275
18265
  function clearDialogState() {
@@ -18282,7 +18272,7 @@ var createPageAndAddReference = createAsyncThunk(
18282
18272
  async (payload, { dispatch, getState, rejectWithValue }) => {
18283
18273
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
18284
18274
  try {
18285
- const { createDocState } = await import("./docStore-GX4LBBIB.js");
18275
+ const { createDocState } = await import("./docStore-YCMK3TDZ.js");
18286
18276
  const pageKey = await createDocState(
18287
18277
  { slateData, title },
18288
18278
  { dispatch, getState }
@@ -3,7 +3,7 @@ import {
3
3
  resolvePlatformChatCompletionsEndpoint,
4
4
  resolvePlatformHostedCredentialProvider,
5
5
  resolvePlatformResponsesEndpoint
6
- } from "./chunk-SQDGTW2T.js";
6
+ } from "./chunk-K7AG465Q.js";
7
7
  import {
8
8
  CLI_PROVIDER_VALUES
9
9
  } from "./chunk-W7XHHYWM.js";
@@ -11,7 +11,7 @@ import {
11
11
  CLIENT_VERSION_TOO_OLD_CODE,
12
12
  buildClientVersionGateErrorDetail,
13
13
  evaluatePlatformHostedClientVersionGate
14
- } from "./chunk-5YIL5WDC.js";
14
+ } from "./chunk-AJHEFRGJ.js";
15
15
  import {
16
16
  asTrimmedLowercaseString
17
17
  } from "./chunk-QSJ3HFEF.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  normalizeTimingMs
3
- } from "./chunk-3E67YXGD.js";
3
+ } from "./chunk-E36HZARC.js";
4
4
  import {
5
5
  MODEL_LOOKUP_MAP
6
- } from "./chunk-TQC77XVE.js";
6
+ } from "./chunk-UJ63UXGE.js";
7
7
  import {
8
8
  ALL_MODELS
9
- } from "./chunk-6IT5ECCC.js";
9
+ } from "./chunk-NG4UT4K4.js";
10
10
  import {
11
11
  asOptionalFiniteNumber
12
12
  } from "./chunk-WWC7I6TA.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-I42VC5KR.js";
16
16
  import {
17
17
  BUILTIN_NOLO_AGENT_KEY
18
- } from "./chunk-4MKPBCTN.js";
18
+ } from "./chunk-5J7W2VWW.js";
19
19
  import {
20
20
  asOptionalTrimmedString
21
21
  } from "./chunk-G3SUCT4W.js";
@@ -9,7 +9,7 @@ import {
9
9
  initReactI18next,
10
10
  instance,
11
11
  toast
12
- } from "./chunk-C2SHPJSS.js";
12
+ } from "./chunk-CME2Y2B5.js";
13
13
  import {
14
14
  require_date_fns
15
15
  } from "./chunk-M76ECQRD.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-YDH3FDFQ.js";
19
19
  import {
20
20
  isSystemAdmin
21
- } from "./chunk-OPNHMILE.js";
21
+ } from "./chunk-XWNRAIUL.js";
22
22
  import {
23
23
  asRecordOrEmpty
24
24
  } from "./chunk-KX6YBIHG.js";
@@ -27,7 +27,7 @@ import {
27
27
  addContentAction,
28
28
  checkSpaceMembership,
29
29
  localSpaceAuthorityPatchStamp
30
- } from "./chunk-IM5EETJX.js";
30
+ } from "./chunk-ZZCJUXUI.js";
31
31
  import {
32
32
  createSpaceKey,
33
33
  normalizeSpaceId
@@ -41,7 +41,7 @@ import {
41
41
  uploadFileAction,
42
42
  upsertSSREntity,
43
43
  write
44
- } from "./chunk-4K6DB3GJ.js";
44
+ } from "./chunk-YFADVSZE.js";
45
45
  import {
46
46
  SEPARATOR,
47
47
  createKey,
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-DWLEOOGR.js";
7
7
  import {
8
8
  addContentAction
9
- } from "./chunk-IM5EETJX.js";
9
+ } from "./chunk-ZZCJUXUI.js";
10
10
  import {
11
11
  upload
12
- } from "./chunk-4K6DB3GJ.js";
12
+ } from "./chunk-YFADVSZE.js";
13
13
  import {
14
14
  getRuntimeServerContext
15
15
  } from "./chunk-3RAG2NAD.js";
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-AGGIDPCZ.js";
7
7
  import {
8
8
  getModelConfig
9
- } from "./chunk-TQC77XVE.js";
9
+ } from "./chunk-UJ63UXGE.js";
10
10
  import {
11
11
  isPlatformHostedImageModel
12
- } from "./chunk-5YIL5WDC.js";
12
+ } from "./chunk-AJHEFRGJ.js";
13
13
  import {
14
14
  asOptionalFiniteNumber
15
15
  } from "./chunk-WWC7I6TA.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-V3ZKNK5D.js";
7
7
  import {
8
8
  getModelAbility
9
- } from "./chunk-6IT5ECCC.js";
9
+ } from "./chunk-NG4UT4K4.js";
10
10
  import {
11
11
  isOwnedAgentKey,
12
12
  ownedAgentKey,
@@ -11,7 +11,7 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  normalizeAntigravityTokenPayload,
13
13
  refreshAntigravityToken
14
- } from "./chunk-ZW22L5ES.js";
14
+ } from "./chunk-PGSKWZCB.js";
15
15
  import {
16
16
  writeOAuthCredential
17
17
  } from "./chunk-ONXOABJR.js";
@@ -25,7 +25,7 @@ import {
25
25
  stablePromptCacheKey,
26
26
  toOpenAiCompatibleMessages,
27
27
  toResponsesTools
28
- } from "./chunk-XTJTN3RW.js";
28
+ } from "./chunk-PUOC4YRO.js";
29
29
  import {
30
30
  buildProviderExecutionPlan,
31
31
  canUsePlatformChatProvider,
@@ -35,15 +35,15 @@ import {
35
35
  resolvePlatformAuthToken,
36
36
  resolvePlatformServerUrl,
37
37
  resolveProviderTransportDecision
38
- } from "./chunk-VLQRD7ZJ.js";
38
+ } from "./chunk-CMH2SYHX.js";
39
39
  import {
40
40
  clipCompactText,
41
41
  isMeaningfulChatCompletionOutput,
42
42
  isMeaningfulResponsesOutput
43
- } from "./chunk-3E67YXGD.js";
43
+ } from "./chunk-E36HZARC.js";
44
44
  import {
45
45
  NOLO_CLIENT_VERSION_HEADER
46
- } from "./chunk-5YIL5WDC.js";
46
+ } from "./chunk-AJHEFRGJ.js";
47
47
  import {
48
48
  isRecord
49
49
  } from "./chunk-KUG52IAP.js";
@@ -27,7 +27,7 @@ import {
27
27
  resolveLocalUserId,
28
28
  t,
29
29
  toolLabel
30
- } from "./chunk-Z3XXUE2E.js";
30
+ } from "./chunk-ODYQBAKC.js";
31
31
  import {
32
32
  createRunActivityTracker,
33
33
  popSingleQueueMessage,
@@ -63,7 +63,7 @@ import {
63
63
  } from "./chunk-LTRXGFMS.js";
64
64
  import {
65
65
  formatAgentListCard
66
- } from "./chunk-6RNOFHEM.js";
66
+ } from "./chunk-2PS2AR7L.js";
67
67
  import {
68
68
  isTransientFetchError
69
69
  } from "./chunk-5XTOKQLW.js";
@@ -84,11 +84,11 @@ import {
84
84
  chooseMemoryOwners,
85
85
  loadMemoryCandidatesFromDb,
86
86
  resolveAgentMemoryPolicy
87
- } from "./chunk-SKWZFK56.js";
87
+ } from "./chunk-ROMO632F.js";
88
88
  import {
89
89
  API_REPORTED_COST_MULTIPLIER,
90
90
  parseUiAskChoiceContent
91
- } from "./chunk-C2SHPJSS.js";
91
+ } from "./chunk-CME2Y2B5.js";
92
92
  import {
93
93
  isOAuthApiKeyRef
94
94
  } from "./chunk-YYLHWIW6.js";
@@ -111,10 +111,10 @@ import {
111
111
  LOCAL_AGENT_CONFIG_MISSING_CODE,
112
112
  LOCAL_TURN_ABORTED_CODE,
113
113
  readActionGate
114
- } from "./chunk-RXYIUZU5.js";
114
+ } from "./chunk-CJ23A7U4.js";
115
115
  import {
116
116
  resolveAgentRuntimeConfigFromRecord
117
- } from "./chunk-Y7PULBIA.js";
117
+ } from "./chunk-KIS76A2P.js";
118
118
  import {
119
119
  createThinkParserState,
120
120
  flushThinkParser,
@@ -122,10 +122,10 @@ import {
122
122
  } from "./chunk-N7J63Q6C.js";
123
123
  import {
124
124
  isAntigravityOAuthAgent
125
- } from "./chunk-ZW22L5ES.js";
125
+ } from "./chunk-PGSKWZCB.js";
126
126
  import {
127
127
  resolveClientVersion
128
- } from "./chunk-VLQRD7ZJ.js";
128
+ } from "./chunk-CMH2SYHX.js";
129
129
  import {
130
130
  isQuotaExhaustedError,
131
131
  isQuotaLimited403Body,
@@ -136,13 +136,13 @@ import {
136
136
  DEFAULT_CONTEXT_WINDOW,
137
137
  getModelContextWindow,
138
138
  normalizeUsage
139
- } from "./chunk-2XENHR3P.js";
139
+ } from "./chunk-DSRXPQWA.js";
140
140
  import {
141
141
  clipCompactText
142
- } from "./chunk-3E67YXGD.js";
142
+ } from "./chunk-E36HZARC.js";
143
143
  import {
144
144
  findModelConfig
145
- } from "./chunk-TQC77XVE.js";
145
+ } from "./chunk-UJ63UXGE.js";
146
146
  import {
147
147
  compactWhitespace
148
148
  } from "./chunk-DWLEOOGR.js";
@@ -167,7 +167,7 @@ import {
167
167
  CLIENT_VERSION_TOO_OLD_CODE,
168
168
  NOLO_CLIENT_VERSION_HEADER,
169
169
  buildClientVersionUpgradeMessage
170
- } from "./chunk-5YIL5WDC.js";
170
+ } from "./chunk-AJHEFRGJ.js";
171
171
  import {
172
172
  parsePositiveFiniteNumberOrFallback
173
173
  } from "./chunk-Y5GCAMGP.js";
@@ -181,7 +181,7 @@ import {
181
181
  BUILTIN_NOLO_AGENT_KEY,
182
182
  BUILTIN_NOLO_AGENT_NAME,
183
183
  builtinAgentCatalogEntryById
184
- } from "./chunk-4MKPBCTN.js";
184
+ } from "./chunk-5J7W2VWW.js";
185
185
  import {
186
186
  parsePublicAgentId
187
187
  } from "./chunk-BJIRLHJR.js";
@@ -1479,9 +1479,9 @@ function surfaceBackgroundSequence(env = process.env, brightness = resolveTuiBri
1479
1479
  function userSurfaceBackgroundSequence(env = process.env, brightness = resolveTuiBrightness(env)) {
1480
1480
  if (!supportsTruecolor(env)) return "";
1481
1481
  const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.trail;
1482
- const accentHex = palette[brightness].accent.hex;
1483
- const weight = brightness === "dark" ? 0.3 : 0.2;
1484
- return hexToBgSgr(blendHex(accentHex, resolveTerminalBaseHex(brightness), weight));
1482
+ const surfaceHex = brightness === "light" ? palette.light.chrome.hex : palette.dark.accent.hex;
1483
+ const weight = brightness === "dark" ? 0.3 : 0.08;
1484
+ return hexToBgSgr(blendHex(surfaceHex, resolveTerminalBaseHex(brightness), weight));
1485
1485
  }
1486
1486
  function themeColorSequence(token, env = process.env, brightness = resolveTuiBrightness(env)) {
1487
1487
  const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.trail;
@@ -5176,7 +5176,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
5176
5176
  // packages/cli/client/agentRun.ts
5177
5177
  import { ulid } from "ulid";
5178
5178
  async function loadRunLocalAgentTurn() {
5179
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-T47DU3IA.js");
5179
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-O6DZDTK4.js");
5180
5180
  return runLocalAgentTurn;
5181
5181
  }
5182
5182
  var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-TQC77XVE.js";
3
+ } from "./chunk-UJ63UXGE.js";
4
4
  import {
5
5
  isPlatformHostedDeepseekModel,
6
6
  isPlatformHostedOpenAIImageModel,
7
7
  resolvePlatformHostedRouting
8
- } from "./chunk-5YIL5WDC.js";
8
+ } from "./chunk-AJHEFRGJ.js";
9
9
  import {
10
10
  asTrimmedLowercaseString
11
11
  } from "./chunk-QSJ3HFEF.js";
@@ -25,8 +25,6 @@ var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
25
25
  qwen: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
26
26
  // Moonshot AI(月之暗面)开放平台 OpenAI 兼容模式(按量计费)
27
27
  moonshot: "https://api.moonshot.cn/v1/chat/completions",
28
- // 平台托管 Kimi K3 的实际上游
29
- crof: "https://crof.ai/v1/chat/completions",
30
28
  // 平台托管 GLM 5.3 Flash 的实际上游(RunInfra 独家廉价快档)
31
29
  runinfra: "https://api.runinfra.ai/v1/chat/completions"
32
30
  // 无 nolo 默认上游:平台托管模型全部显式分流,未识别模型返回 undefined
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  findModelConfig,
3
3
  getProviderByModelName
4
- } from "./chunk-TQC77XVE.js";
4
+ } from "./chunk-UJ63UXGE.js";
5
5
  import {
6
6
  asOptionalFiniteNumber
7
7
  } from "./chunk-WWC7I6TA.js";
@@ -75,7 +75,11 @@ var TOOL_PACKS = {
75
75
  "taskWait",
76
76
  "taskLogs",
77
77
  "taskStop",
78
- "tasks"
78
+ "tasks",
79
+ // watchCompletion:push 后登记「业务终态订阅」,部署结束时服务端唤醒父对话
80
+ // (等待期间 0 轮询 0 token)。与代码工作流同链路(push → CI → 通知),随
81
+ // 「代码执行」能力包走。
82
+ "watchCompletion"
79
83
  ],
80
84
  // 表格读写。唯一真相源——app-builder 能力包与 table object skill 都从这里取,
81
85
  // 以前两边各抄一份,改一个忘另一个就会静默不同步。
@@ -4,7 +4,7 @@ import {
4
4
  openrouterModels,
5
5
  platformHostedModels,
6
6
  zaiModels
7
- } from "./chunk-5YIL5WDC.js";
7
+ } from "./chunk-AJHEFRGJ.js";
8
8
 
9
9
  // packages/ai/llm/modelAbility.ts
10
10
  var MODEL_ABILITY_TABLE = {