nolo-cli 0.219.0 → 0.221.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 (201) hide show
  1. package/{_executeModel-WW57SJN4.js → _executeModel-WZKT6XEU.js} +74 -74
  2. package/{action-CK64LS6S.js → action-GDZDXPMB.js} +7 -7
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-7RO4AMRI.js} +12 -12
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-EVYBGTXB.js} +14 -14
  5. package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-PZWRHNXY.js} +114 -115
  6. package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-QTKMEICX.js} +115 -116
  7. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  8. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  9. package/{agentListCommands-5UNM7CGG.js → agentListCommands-GUGMORTK.js} +84 -70
  10. package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-7QGICJLM.js} +56 -55
  11. package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-STI3DQ6A.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
  13. package/{agentRecordCommands-DX2WE6BH.js → agentRecordCommands-SLLADS5C.js} +102 -103
  14. package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-OFQLOF5Y.js} +113 -112
  15. package/{agentRunControl-QDFW5P2T.js → agentRunControl-MBG4U6SL.js} +20 -14
  16. package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-TU4LA353.js} +39 -39
  17. package/{agentSlice-ACZGTZVW.js → agentSlice-L4SBGWTB.js} +16 -16
  18. package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-JWP3XPUA.js} +50 -49
  19. package/{appDeployCommands-2BAHY522.js → appDeployCommands-6E4TQCWI.js} +50 -49
  20. package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
  21. package/{appGetCommands-WKFEJO6A.js → appGetCommands-JEY4L6L4.js} +50 -49
  22. package/{appListCommands-HNAZZLFX.js → appListCommands-PCAVHU7M.js} +50 -49
  23. package/{authCommand-4FDPL7WG.js → authCommand-CGRIIOOV.js} +26 -23
  24. package/{authCommands-GAJ3NIXO.js → authCommands-55OGQGCR.js} +9 -6
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-WAA45NCS.js} +6 -6
  27. package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
  28. package/{chunk-5OZC7R7Y.js → chunk-2MCB7CD7.js} +13 -12
  29. package/{chunk-IWH5SOU4.js → chunk-2NPD3FTX.js} +3 -3
  30. package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
  31. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  32. package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
  33. package/{chunk-EGXPAWLG.js → chunk-3U44JB3O.js} +1 -1
  34. package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
  35. package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
  36. package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
  37. package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
  38. package/chunk-5ZUOVCKT.js +32 -0
  39. package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
  40. package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
  41. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  42. package/{chunk-JC5XLWZK.js → chunk-7JGMNKKG.js} +19 -15
  43. package/{chunk-FRSBYNWI.js → chunk-AGYPUBFW.js} +31 -205
  44. package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
  45. package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
  46. package/{chunk-6NKA6RKF.js → chunk-AUAJTAFM.js} +8 -8
  47. package/chunk-BIDSIRTS.js +307 -0
  48. package/chunk-BIWI5M4E.js +62 -0
  49. package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
  50. package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
  51. package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
  52. package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
  53. package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
  54. package/{chunk-H7R3365N.js → chunk-CYWNWA77.js} +5 -5
  55. package/{chunk-6D7NVU66.js → chunk-D6YNCNM6.js} +17 -14
  56. package/{chunk-6RQFZCKH.js → chunk-DBUR22G5.js} +6 -6
  57. package/{chunk-MKQ2UTTX.js → chunk-DDC6P6EH.js} +22 -19
  58. package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
  59. package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
  60. package/{chunk-SRL56PI2.js → chunk-DUUDXSLX.js} +21 -7
  61. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  62. package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
  63. package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
  64. package/{chunk-O2CYENYJ.js → chunk-EXJK7TQO.js} +2113 -1090
  65. package/{chunk-CXDPIPZ4.js → chunk-F6Z6ZCUV.js} +2 -2
  66. package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
  67. package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
  68. package/{chunk-7WPAI5JJ.js → chunk-GACR7H6T.js} +14 -14
  69. package/{chunk-65XXHYZ5.js → chunk-GOCSSER3.js} +3 -3
  70. package/{chunk-4NMHE7CX.js → chunk-GPOV42YM.js} +14 -14
  71. package/{chunk-SASHAZ67.js → chunk-GUXZK7SE.js} +2 -2
  72. package/{chunk-F3TQURKK.js → chunk-GYS5FUYR.js} +19 -19
  73. package/{chunk-VHPAA6MT.js → chunk-H6L2NFHY.js} +6 -6
  74. package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
  75. package/{chunk-OOF7XDZF.js → chunk-HHFGE2WF.js} +6 -6
  76. package/{chunk-DJSTBAOU.js → chunk-HSSBDZLD.js} +4 -4
  77. package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
  78. package/{chunk-N3J4VDGV.js → chunk-IAAIUH64.js} +15 -15
  79. package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
  80. package/{chunk-T3O6BLYU.js → chunk-IXG6YXQM.js} +147 -115
  81. package/{chunk-TVFRV3UQ.js → chunk-JUSHVFNF.js} +238 -185
  82. package/{chunk-QWYFFHCJ.js → chunk-K67C2JUC.js} +10 -10
  83. package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
  84. package/{chunk-2KTUDBG7.js → chunk-M4SFKP5L.js} +1 -1
  85. package/{chunk-KAVGK4ES.js → chunk-MDZWUD3R.js} +18 -18
  86. package/{chunk-OXKUPBAQ.js → chunk-NHY322ZU.js} +151 -10
  87. package/{chunk-UMRI2IRY.js → chunk-OBIC6EG7.js} +6 -6
  88. package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
  89. package/{chunk-SYQR7FQS.js → chunk-OG6MQOQG.js} +96 -28
  90. package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
  91. package/{chunk-K5FNYHZC.js → chunk-OWKNSIXL.js} +149 -54
  92. package/{chunk-XFJ4ZPFC.js → chunk-OYU2MA5S.js} +25 -25
  93. package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
  94. package/{chunk-AFHOCBSP.js → chunk-QBZCGP34.js} +1 -1
  95. package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
  96. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  97. package/{chunk-XWGDCWXY.js → chunk-QRGDJA4B.js} +9 -9
  98. package/{chunk-4A2JIXR2.js → chunk-QYB23WUH.js} +1 -1
  99. package/{chunk-FVZW66K4.js → chunk-R3NEQZ53.js} +288 -95
  100. package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
  101. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  102. package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
  103. package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
  104. package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
  105. package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
  106. package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
  107. package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
  108. package/{chunk-7UH3DGV6.js → chunk-SMJEXX2S.js} +7 -7
  109. package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
  110. package/{chunk-KO63FPG3.js → chunk-STJ6LSQE.js} +750 -2523
  111. package/{chunk-Q7WP5RPC.js → chunk-TGNIKIHR.js} +5 -5
  112. package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
  113. package/{chunk-5R63B62U.js → chunk-TSPMLCWI.js} +7 -7
  114. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  115. package/{chunk-3ESU44FG.js → chunk-UE2EVEYS.js} +3 -3
  116. package/{chunk-S7SB7L2I.js → chunk-UWAIJOF2.js} +19 -19
  117. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  118. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  119. package/{chunk-N7HVLYOY.js → chunk-VSYTM22R.js} +3 -3
  120. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  121. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  122. package/{chunk-3N4ASIP6.js → chunk-XJPLSAPJ.js} +11 -11
  123. package/{chunk-J6T25AJ6.js → chunk-XSW4EXQV.js} +82 -18
  124. package/{chunk-DVQH4BTR.js → chunk-YKY4OVOX.js} +14 -10
  125. package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
  126. package/chunk-ZOHO6MOF.js +376 -0
  127. package/{chunk-652XYZGP.js → chunk-ZXF6D3I6.js} +13 -6
  128. package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
  129. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  130. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  131. package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
  132. package/{commandRegistry-SDSYBKMC.js → commandRegistry-ZLWHQVAI.js} +93 -93
  133. package/{contentThunks-G3TRPEAU.js → contentThunks-4ZX2TO7C.js} +36 -35
  134. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
  135. package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-L4CYUZJG.js} +36 -35
  136. package/{createDialogAction-KWSBNAPJ.js → createDialogAction-QTU2R2Q3.js} +37 -36
  137. package/{createPageAction-HXKJ7OFG.js → createPageAction-F3GJTHW2.js} +37 -36
  138. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  139. package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
  140. package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
  141. package/{dialogCommands-6KQEBHSG.js → dialogCommands-NRLCOPJR.js} +52 -52
  142. package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
  143. package/{dialogSlice-HXPKFGRL.js → dialogSlice-P2S4LXQD.js} +34 -33
  144. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
  145. package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-YJRDA3RX.js} +48 -47
  146. package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-A5QIHZNF.js} +50 -49
  147. package/{docReadCommands-TTMXCDER.js → docReadCommands-CF2LTMYH.js} +48 -47
  148. package/{docStore-A2B3GH33.js → docStore-6O7NYL6A.js} +12 -12
  149. package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
  150. package/fetchMessages-TQEUZD7H.js +1 -1
  151. package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
  152. package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-7IHLR37A.js} +65 -65
  153. package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-VNCQUAFT.js} +102 -103
  154. package/index.js +56 -18
  155. package/keys-RWF7UCB4.js +1 -1
  156. package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
  157. package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
  158. package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-FOWVNMIK.js} +109 -110
  159. package/{machineCommands-WFWV25IR.js → machineCommands-ZGC3J4JB.js} +111 -112
  160. package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-KK5U4M3G.js} +100 -101
  161. package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
  162. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  163. package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
  164. package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
  165. package/package.json +1 -1
  166. package/{projectArchive-ULJDLUA6.js → projectArchive-7ZDYBXAX.js} +42 -41
  167. package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-WHAMP2D5.js} +6 -6
  168. package/{providerRegistry-TA7EGCVZ.js → providerRegistry-ZI2KORJ7.js} +6 -6
  169. package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
  170. package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
  171. package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-YHT4SX2C.js} +3946 -4393
  172. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
  173. package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-H4ED5V3K.js} +71 -67
  174. package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
  175. package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
  176. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
  177. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
  178. package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
  179. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
  180. package/{spaceCommands-IB6FKWIC.js → spaceCommands-MEH3HJBC.js} +53 -52
  181. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  182. package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-ZXPOXU33.js} +89 -128
  183. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
  184. package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
  185. package/{tools-JVOJ5HC4.js → tools-2MRWA2PP.js} +58 -58
  186. package/tuiRestart-2IL37YIB.js +41 -0
  187. package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
  188. package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
  189. package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-RZ3KZSGQ.js} +36 -35
  190. package/{usageCommand-RVKHEPLU.js → usageCommand-2BF74MKF.js} +2 -2
  191. package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-UHB55BQM.js} +3 -3
  192. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
  193. package/chunk-2THCNKE4.js +0 -147
  194. package/chunk-KEPOVMF4.js +0 -91
  195. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  196. package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
  197. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  198. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  199. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  200. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  201. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
@@ -10,7 +10,7 @@ import {
10
10
  resolvePlatformEffectiveModel,
11
11
  toCnyCredits,
12
12
  zaiModels
13
- } from "./chunk-VALBGPM6.js";
13
+ } from "./chunk-OBSEKCVK.js";
14
14
 
15
15
  // packages/integrations/qwen/models.ts
16
16
  var qwenModels = [
@@ -3027,6 +3027,15 @@ function getCachedOpenRouterModelReasoning(modelId) {
3027
3027
  var GATEWAY_PROVIDERS = /* @__PURE__ */ new Set(["openrouter", "nolo"]);
3028
3028
  var THINKING_MECHANISM_PROVIDERS = /* @__PURE__ */ new Set(["anthropic", "google"]);
3029
3029
  var MODEL_REASONING_OVERRIDES = [
3030
+ // Platform GPT models accept medium even though the nolo provider fallback
3031
+ // describes DeepSeek's narrower low/high/max scale.
3032
+ ...["gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
3033
+ providers: ["openai"],
3034
+ prefix,
3035
+ exact: true,
3036
+ efforts: ["none", "low", "medium", "high", "xhigh", "max"],
3037
+ note: "GPT-6 model-specific reasoning scale (platformHosted.ts model metadata)"
3038
+ })),
3030
3039
  // ---- OpenAI ----
3031
3040
  {
3032
3041
  providers: ["openai"],
@@ -3228,6 +3237,8 @@ function resolveModelReasoningCapabilityWithCache(provider, model) {
3228
3237
  // packages/ai/llm/reasoningModels.ts
3229
3238
  var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
3230
3239
  "deepseek-flash",
3240
+ "deepseek-v4-flash",
3241
+ "deepseek-v4.1-flash",
3231
3242
  "deepseek-v4-pro",
3232
3243
  "gemini-3.7-flash",
3233
3244
  "gemini-3.8-flash",
@@ -3266,7 +3277,10 @@ var isModelSupportReasoningEffort = (model, provider) => {
3266
3277
  if (provider && provider.toLowerCase() === "openrouter") {
3267
3278
  return true;
3268
3279
  }
3269
- return REASONING_MODEL_NAMES.has(model);
3280
+ const p = provider?.toLowerCase();
3281
+ const base = model.toLowerCase().split("/").pop() ?? "";
3282
+ const deepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(base);
3283
+ return REASONING_MODEL_NAMES.has(model) || deepseekFlash && ["commandcode", "opendesign", "ollama-cloud", "lithosai"].includes(p ?? "");
3270
3284
  };
3271
3285
  var supportedReasoningModels = Array.from(REASONING_MODEL_NAMES);
3272
3286
  var EFFORT_ORDER = [
@@ -3612,6 +3626,7 @@ export {
3612
3626
  commandCodeModels,
3613
3627
  opencodeGoModels,
3614
3628
  DEFAULT_REASONING_EFFORT,
3629
+ resolveModelReasoningCapability,
3615
3630
  resolveModelReasoningCapabilityWithCache,
3616
3631
  isModelSupportReasoningEffort,
3617
3632
  clampReasoningEffort,
@@ -2,16 +2,16 @@ import {
2
2
  isMediaFile,
3
3
  resolveFileCategory
4
4
  } from "./chunk-3PVYUPXK.js";
5
- import {
6
- loadFileFromIndexedDb,
7
- removeAction,
8
- saveFileToIndexedDb
9
- } from "./chunk-C4WTX5TU.js";
10
5
  import {
11
6
  readAction,
12
7
  readRequestManager,
13
8
  resolveAgentReadServers
14
- } from "./chunk-QLFCTYRH.js";
9
+ } from "./chunk-DGYCDA6W.js";
10
+ import {
11
+ loadFileFromIndexedDb,
12
+ removeAction,
13
+ saveFileToIndexedDb
14
+ } from "./chunk-4ZGPHFLE.js";
15
15
  import {
16
16
  beginWriteAck,
17
17
  compareRemoteRecordsByComparableTime,
@@ -29,7 +29,7 @@ import {
29
29
  shouldReplaceLocalWithRemoteRecord,
30
30
  shouldReplicateLocalRecord,
31
31
  uploadToCurrentServer
32
- } from "./chunk-2VUZSVAS.js";
32
+ } from "./chunk-R6Z5S5GA.js";
33
33
  import {
34
34
  asyncThunkCreator,
35
35
  buildCreateSlice,
@@ -41,7 +41,7 @@ import {
41
41
  fetchFromServer,
42
42
  logger,
43
43
  normalizeTimeFields
44
- } from "./chunk-AGP3YSEC.js";
44
+ } from "./chunk-4N6G2CKP.js";
45
45
  import {
46
46
  isTombstoneRecord
47
47
  } from "./chunk-BV3FLP2L.js";
@@ -52,12 +52,12 @@ import {
52
52
  import {
53
53
  ulid
54
54
  } from "./chunk-OJKUU3LP.js";
55
- import {
56
- isRecord
57
- } from "./chunk-KUG52IAP.js";
58
55
  import {
59
56
  API_ENDPOINTS
60
57
  } from "./chunk-LCBAMY2M.js";
58
+ import {
59
+ isRecord
60
+ } from "./chunk-KUG52IAP.js";
61
61
 
62
62
  // packages/database/protectedRecordProtocol.ts
63
63
  var PROTECTED_RECORD_PROTOCOL_VERSION = 1;
@@ -1487,7 +1487,7 @@ var dbSlice = createSliceWithThunks({
1487
1487
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
1488
1488
  read: create.asyncThunk(
1489
1489
  async (payload, thunkApi) => {
1490
- const { readAction: readAction2 } = await import("./read-Q7GOHGNP.js");
1490
+ const { readAction: readAction2 } = await import("./read-TYMBGEXO.js");
1491
1491
  return readAction2(payload, thunkApi);
1492
1492
  },
1493
1493
  {
@@ -1561,7 +1561,7 @@ var dbSlice = createSliceWithThunks({
1561
1561
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
1562
1562
  share: create.asyncThunk(
1563
1563
  async (config, thunkApi) => {
1564
- const { shareResourceAction } = await import("./action-CK64LS6S.js");
1564
+ const { shareResourceAction } = await import("./action-GDZDXPMB.js");
1565
1565
  return shareResourceAction(config, thunkApi);
1566
1566
  }
1567
1567
  ),
@@ -1,13 +1,13 @@
1
+ import {
2
+ deriveCredentialGroup
3
+ } from "./chunk-NHY322ZU.js";
1
4
  import {
2
5
  listUserRecordsFromServers,
3
6
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-AFHOCBSP.js";
7
+ } from "./chunk-QBZCGP34.js";
5
8
  import {
6
9
  agentRecordHasConfiguredCredential
7
- } from "./chunk-6D7NVU66.js";
8
- import {
9
- deriveCredentialGroup
10
- } from "./chunk-OXKUPBAQ.js";
10
+ } from "./chunk-D6YNCNM6.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-BV3FLP2L.js";
@@ -1,34 +1,44 @@
1
+ import {
2
+ resolveDefaultReasoningEffort
3
+ } from "./chunk-5ZUOVCKT.js";
1
4
  import {
2
5
  buildRestorePatch
3
6
  } from "./chunk-BV3FLP2L.js";
4
7
  import {
5
8
  buildLocalAgentLookupKeys,
6
9
  shouldReadAgentKeyRemotely
7
- } from "./chunk-2ZKFCIJJ.js";
10
+ } from "./chunk-QCB42576.js";
8
11
  import {
9
12
  resolveCliAgentKeyInput
10
13
  } from "./chunk-BR3GT6MR.js";
11
14
  import {
12
15
  createHostCredentialBrokerChain,
13
16
  createStrictHostCredentialBroker
14
- } from "./chunk-TVFRV3UQ.js";
17
+ } from "./chunk-JUSHVFNF.js";
15
18
  import {
16
19
  collectInvalidAgentSkillModes,
17
20
  formatInvalidAgentSkillModeMessage,
18
21
  formatInvalidAgentSkillModesFieldMessage,
19
22
  isAgentSkillModesFieldShapeValid
20
- } from "./chunk-EOWLBDY6.js";
23
+ } from "./chunk-FJSNBZXR.js";
21
24
  import {
22
25
  buildAgentApiKeyCredentialRef,
23
26
  migrateAgentSecrets
24
- } from "./chunk-47ITIXO7.js";
27
+ } from "./chunk-USGHJSGO.js";
25
28
  import {
26
29
  assertCredentialRef,
27
30
  createFileCredentialBroker
28
- } from "./chunk-SNBZZPYH.js";
31
+ } from "./chunk-OQHIVPG4.js";
29
32
  import {
30
33
  createAgentKey
31
34
  } from "./chunk-SYTHYBMI.js";
35
+ import {
36
+ parseUserIdFromAuthToken,
37
+ readOption,
38
+ resolveAuthToken,
39
+ resolveServerCandidates,
40
+ resolveServerUrl
41
+ } from "./chunk-BIDSIRTS.js";
32
42
  import {
33
43
  readPipeText,
34
44
  spawnProcess
@@ -36,13 +46,6 @@ import {
36
46
  import {
37
47
  toErrorMessage
38
48
  } from "./chunk-HNMXYYJR.js";
39
- import {
40
- parseUserIdFromAuthToken,
41
- readOption,
42
- resolveAuthToken,
43
- resolveServerCandidates,
44
- resolveServerUrl
45
- } from "./chunk-2THCNKE4.js";
46
49
 
47
50
  // packages/agent-runtime/sessionCredentialBroker.ts
48
51
  function createSessionMemoryCredentialBroker() {
@@ -763,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
763
766
  const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
764
767
  const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
765
768
  if (args.parsed.presetId) {
766
- const { resolveProviderPresetFields } = await import("./providerPresetApply-SHT2SUVB.js");
769
+ const { resolveProviderPresetFields } = await import("./providerPresetApply-WHAMP2D5.js");
767
770
  const fields = resolveProviderPresetFields(args.parsed.presetId);
768
771
  if (fields.kind === "manual") {
769
772
  throw new Error(
@@ -784,7 +787,7 @@ async function buildCreatedAgentRecord(args) {
784
787
  }
785
788
  if (!u.model && fields.model) u.model = fields.model;
786
789
  if (fields.defaultReasoningEffort && u.reasoning_effort == null) {
787
- u.reasoning_effort = fields.defaultReasoningEffort;
790
+ u.reasoning_effort = resolveDefaultReasoningEffort({ provider: typeof u.provider === "string" ? u.provider : void 0, model: typeof u.model === "string" ? u.model : void 0, fallback: fields.defaultReasoningEffort });
788
791
  }
789
792
  }
790
793
  if (args.parsed.copyProviderFrom) {
@@ -1,3 +1,6 @@
1
+ import {
2
+ getModelPricing
3
+ } from "./chunk-SRCCSTIM.js";
1
4
  import {
2
5
  PUBLIC_DEEPSEEK_V4_FLASH_AGENT_ID,
3
6
  PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID,
@@ -12,25 +15,22 @@ import {
12
15
  builtinAgentCatalogEntryById,
13
16
  catalogReleasedAtMs,
14
17
  isRetiredCatalogEntry
15
- } from "./chunk-UJKTI5PG.js";
18
+ } from "./chunk-ILHQ2AXT.js";
16
19
  import {
17
20
  parsePublicAgentId,
18
21
  parseSystemAgentId,
19
22
  publicAgentKey
20
23
  } from "./chunk-M2EJHDJP.js";
21
- import {
22
- getModelPricing
23
- } from "./chunk-IWQAOW2X.js";
24
24
  import {
25
25
  getModelConfig
26
- } from "./chunk-LE6LGAJE.js";
26
+ } from "./chunk-CD3RU7XL.js";
27
27
  import {
28
28
  isRecord
29
29
  } from "./chunk-KUG52IAP.js";
30
30
  import {
31
31
  isNoloHostedProvider,
32
32
  isPlatformHostedImageModel
33
- } from "./chunk-VALBGPM6.js";
33
+ } from "./chunk-OBSEKCVK.js";
34
34
 
35
35
  // packages/core/publicAgentSeeds.ts
36
36
  var AGENT_SEED_DEFAULTS = {
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-3ESU44FG.js";
8
+ } from "./chunk-UE2EVEYS.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,11 +14,11 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-S7SB7L2I.js";
17
+ } from "./chunk-UWAIJOF2.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-T3O6BLYU.js";
21
+ } from "./chunk-IXG6YXQM.js";
22
22
  import {
23
23
  createSSEParser,
24
24
  createToolRunId,
@@ -27,7 +27,10 @@ import {
27
27
  toolRunSetPending,
28
28
  toolRunStarted,
29
29
  toolRunSucceeded
30
- } from "./chunk-3N4ASIP6.js";
30
+ } from "./chunk-XJPLSAPJ.js";
31
+ import {
32
+ getCurrentSpaceId
33
+ } from "./chunk-547ENH5T.js";
31
34
  import {
32
35
  addToolMessage,
33
36
  messageStreamEnd,
@@ -35,13 +38,10 @@ import {
35
38
  toast,
36
39
  toolResultNeedsUserConfirmation,
37
40
  updateToolMessage
38
- } from "./chunk-FVZW66K4.js";
41
+ } from "./chunk-R3NEQZ53.js";
39
42
  import {
40
43
  streamAgentChatTurn
41
- } from "./chunk-QWYFFHCJ.js";
42
- import {
43
- getCurrentSpaceId
44
- } from "./chunk-MOMR7NMG.js";
44
+ } from "./chunk-K67C2JUC.js";
45
45
  import {
46
46
  addActiveController,
47
47
  getActiveDialogKey,
@@ -53,16 +53,19 @@ import {
53
53
  } from "./chunk-5FUN7EG4.js";
54
54
  import {
55
55
  selectCurrentServer
56
- } from "./chunk-VREDDN25.js";
56
+ } from "./chunk-ATEKLSLR.js";
57
57
  import {
58
58
  write
59
- } from "./chunk-AVHRSJUH.js";
59
+ } from "./chunk-CMMI3DAT.js";
60
60
  import {
61
61
  createAsyncThunk
62
62
  } from "./chunk-7Z6EW7AH.js";
63
63
  import {
64
64
  selectIdentityToken
65
65
  } from "./chunk-PXYBUFDB.js";
66
+ import {
67
+ getPublicImageAgentMode
68
+ } from "./chunk-VIDPVFP3.js";
66
69
  import {
67
70
  classifyOutboundErrorCategory,
68
71
  createOutboundDiagnosticCall,
@@ -70,7 +73,7 @@ import {
70
73
  projectUserPartForModel,
71
74
  resolveOutboundDiagnosticSink,
72
75
  resolveOutboundWire
73
- } from "./chunk-4A2JIXR2.js";
76
+ } from "./chunk-QYB23WUH.js";
74
77
  import {
75
78
  accumulateToolCallDelta,
76
79
  createThinkParserState,
@@ -82,7 +85,7 @@ import {
82
85
  } from "./chunk-56GBUMO5.js";
83
86
  import {
84
87
  normalizeChatCompletionsBodyForProvider
85
- } from "./chunk-PFJNLBRU.js";
88
+ } from "./chunk-EEOOBRA7.js";
86
89
  import {
87
90
  classifyApiError,
88
91
  classifyGenerationError,
@@ -90,10 +93,10 @@ import {
90
93
  } from "./chunk-TLE77UJ5.js";
91
94
  import {
92
95
  EMPTY_ASSISTANT_REPAIR_PROMPT
93
- } from "./chunk-XWGDCWXY.js";
96
+ } from "./chunk-QRGDJA4B.js";
94
97
  import {
95
98
  getModelInfo
96
- } from "./chunk-HCJFGH6Y.js";
99
+ } from "./chunk-L32W3PRP.js";
97
100
  import {
98
101
  isAbortError
99
102
  } from "./chunk-7DPNBQSV.js";
@@ -107,9 +110,6 @@ import {
107
110
  createDialogMessageKeyAndId,
108
111
  dialogMessageKey
109
112
  } from "./chunk-OJKUU3LP.js";
110
- import {
111
- getPublicImageAgentMode
112
- } from "./chunk-VIDPVFP3.js";
113
113
  import {
114
114
  toErrorMessage
115
115
  } from "./chunk-HNMXYYJR.js";
@@ -118,7 +118,7 @@ import {
118
118
  } from "./chunk-3EUW3WEO.js";
119
119
  import {
120
120
  getApiEndpoint
121
- } from "./chunk-LE6LGAJE.js";
121
+ } from "./chunk-CD3RU7XL.js";
122
122
  import {
123
123
  isRecord
124
124
  } from "./chunk-KUG52IAP.js";
@@ -693,6 +693,8 @@ var processToolData = createAsyncThunk(
693
693
  parentMessageId,
694
694
  toolRunId,
695
695
  agentKey,
696
+ effectiveModel: args.effectiveModel,
697
+ runKind: "interactive",
696
698
  // 定档信号:这里是前台对话流式路径,来源恒为 chat;对话 id 用于数历史搜索。
697
699
  ...args.dialogId ? { dialogId: args.dialogId } : {},
698
700
  origin: "chat"
@@ -873,6 +875,7 @@ var handleToolCalls = createAsyncThunk(
873
875
  parentMessageId: messageId,
874
876
  toolRunId,
875
877
  agentKey: agentConfig.dbKey,
878
+ effectiveModel: agentConfig.model,
876
879
  dialogId
877
880
  })
878
881
  ).unwrap();
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  patch,
7
7
  read
8
- } from "./chunk-AVHRSJUH.js";
8
+ } from "./chunk-CMMI3DAT.js";
9
9
  import {
10
10
  DEVICE_LOCAL_OWNER_ID,
11
11
  isDeviceLocalSpaceBody
12
- } from "./chunk-2VUZSVAS.js";
12
+ } from "./chunk-R6Z5S5GA.js";
13
13
  import {
14
14
  selectIdentityUserId
15
15
  } from "./chunk-PXYBUFDB.js";
@@ -7,13 +7,13 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-2VUZSVAS.js";
10
+ } from "./chunk-R6Z5S5GA.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
14
14
  isReadTimeoutError,
15
15
  logger
16
- } from "./chunk-AGP3YSEC.js";
16
+ } from "./chunk-4N6G2CKP.js";
17
17
  import {
18
18
  shouldReplaceWithNextRecord
19
19
  } from "./chunk-BV3FLP2L.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-7DPNBQSV.js";
23
23
  import {
24
24
  isBuiltinPlatformAgentKey
25
- } from "./chunk-UJKTI5PG.js";
25
+ } from "./chunk-ILHQ2AXT.js";
26
26
  import {
27
27
  NOLO_CLUSTER_SERVERS,
28
28
  normalizeKnownServerOrigin
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  resolveAgentCallPlan
3
- } from "./chunk-UMRI2IRY.js";
3
+ } from "./chunk-OBIC6EG7.js";
4
4
  import {
5
5
  SUBSCRIPTION_OAUTH_PROVIDERS
6
- } from "./chunk-JC5XLWZK.js";
6
+ } from "./chunk-7JGMNKKG.js";
7
7
  import {
8
8
  findModelConfig,
9
9
  getProviderByModelName
10
- } from "./chunk-LE6LGAJE.js";
11
- import {
12
- asTrimmedLowercaseString
13
- } from "./chunk-QSJ3HFEF.js";
10
+ } from "./chunk-CD3RU7XL.js";
14
11
  import {
15
12
  asOptionalTrimmedString
16
13
  } from "./chunk-G3SUCT4W.js";
14
+ import {
15
+ asTrimmedLowercaseString
16
+ } from "./chunk-QSJ3HFEF.js";
17
17
 
18
18
  // packages/ai/llm/agentCapabilities.ts
19
19
  var ANTIGRAVITY_EFFORT_SUFFIXES = [
@@ -86,9 +86,19 @@ var resolveCatalogImageSupport = (agent) => {
86
86
  )?.hasVision : lookupKnownModelVision(provider, model);
87
87
  return catalogHasVision;
88
88
  };
89
+ var liveImageSupport = Symbol("liveImageSupport");
90
+ function withLiveImageSupport(agent, supported) {
91
+ return { ...agent, [liveImageSupport]: { model: agent.model, supported } };
92
+ }
93
+ function readLiveImageSupport(agent) {
94
+ const evidence = agent[liveImageSupport];
95
+ if (!evidence || evidence.model !== agent.model) return void 0;
96
+ const plan = resolveAgentCallPlan({ ...agent, key: "" });
97
+ return plan.authMethod.kind === "oauth" && plan.authMethod.ref === "antigravity" ? evidence.supported : void 0;
98
+ }
89
99
  var resolveAgentImageInputSupport = (agent) => {
90
100
  if (!agent) return true;
91
- return resolveCatalogImageSupport(agent) ?? agent.hasVision ?? true;
101
+ return resolveCatalogImageSupport(agent) ?? readLiveImageSupport(agent) ?? agent.hasVision ?? true;
92
102
  };
93
103
  var resolveToolImagePolicy = (input) => {
94
104
  const maxImagesPerRequest = 4;
@@ -102,6 +112,8 @@ var resolveToolImagePolicy = (input) => {
102
112
  }
103
113
  const catalog = resolveCatalogImageSupport(input);
104
114
  if (catalog !== void 0) return { maxImagesPerRequest, supportsToolImages: catalog, reason: "catalog" };
115
+ const live = readLiveImageSupport(input);
116
+ if (live !== void 0) return { maxImagesPerRequest, supportsToolImages: live, reason: "live-discovery" };
105
117
  if (typeof input.hasVision === "boolean") {
106
118
  return { maxImagesPerRequest, supportsToolImages: input.hasVision, reason: "agent-declaration" };
107
119
  }
@@ -109,6 +121,8 @@ var resolveToolImagePolicy = (input) => {
109
121
  };
110
122
 
111
123
  export {
124
+ resolveCatalogImageSupport,
125
+ withLiveImageSupport,
112
126
  resolveAgentImageInputSupport,
113
127
  resolveToolImagePolicy
114
128
  };
@@ -4,9 +4,18 @@ import {
4
4
  normalizeNonNegativeMs,
5
5
  parseRetryAfterHeaderMs
6
6
  } from "./chunk-3L2WKC3W.js";
7
+ import {
8
+ dialogMessageKey
9
+ } from "./chunk-OJKUU3LP.js";
7
10
  import {
8
11
  toErrorMessage
9
12
  } from "./chunk-HNMXYYJR.js";
13
+ import {
14
+ asOptionalFiniteNumber
15
+ } from "./chunk-WWC7I6TA.js";
16
+ import {
17
+ asOptionalTrimmedString
18
+ } from "./chunk-G3SUCT4W.js";
10
19
  import {
11
20
  isLoopbackHostname
12
21
  } from "./chunk-4SN6J65J.js";
@@ -124,7 +133,86 @@ async function fetchWithTransientRetry(fetchImpl, input, init, options = {}) {
124
133
  throw lastError;
125
134
  }
126
135
 
136
+ // packages/core/chat/dialogAttachmentCleanup.ts
137
+ var FILE_CONTENT_RE = /(?:https?:\/\/[^/"'\s]+)?\/api\/v1\/db\/file\/content\/([^?#"'\s)]+)/g;
138
+ function extractFileContentIds(value) {
139
+ const ids = /* @__PURE__ */ new Set();
140
+ const visit = (input) => {
141
+ if (typeof input === "string") {
142
+ for (const match of input.matchAll(FILE_CONTENT_RE)) {
143
+ const fileId = decodeURIComponent(match[1] ?? "").trim();
144
+ if (fileId) ids.add(fileId);
145
+ }
146
+ return;
147
+ }
148
+ if (Array.isArray(input)) {
149
+ for (const item of input) visit(item);
150
+ return;
151
+ }
152
+ if (input && typeof input === "object") {
153
+ for (const item of Object.values(input)) visit(item);
154
+ }
155
+ };
156
+ visit(value);
157
+ return [...ids];
158
+ }
159
+ function messageDbKey(dialogId, message) {
160
+ const dbKey = asOptionalTrimmedString(message.dbKey);
161
+ if (dbKey) return dbKey;
162
+ const id = asOptionalTrimmedString(message.id);
163
+ if (id) return dialogMessageKey(dialogId, id);
164
+ return null;
165
+ }
166
+ function asText(value) {
167
+ return asOptionalTrimmedString(value) ?? null;
168
+ }
169
+ function buildDialogAttachmentPlan(args) {
170
+ const messageKeys = new Set(
171
+ args.messages.map((message) => messageDbKey(args.dialogId, message)).filter((key) => Boolean(key))
172
+ );
173
+ const referencedFileIds = [
174
+ ...new Set(args.messages.flatMap((message) => extractFileContentIds(message)))
175
+ ];
176
+ const candidates = referencedFileIds.map((fileId) => {
177
+ const metadata = args.metadataByFileId[fileId];
178
+ const ownerType = asText(metadata?.ownerType);
179
+ const ownerId = asText(metadata?.ownerId);
180
+ const ownerDbKey = asText(metadata?.ownerDbKey);
181
+ const fileDbKey = asText(metadata?.dbKey);
182
+ const source = asText(metadata?.source);
183
+ const ownedByDialog = ownerType === "dialog" && ownerId === args.dialogId;
184
+ const ownedByMessage = Boolean(ownerDbKey && messageKeys.has(ownerDbKey));
185
+ const userOwnedReferenced = args.includeUserOwnedReferenced === true && Boolean(args.ownerId) && ownerType === "user" && ownerId === args.ownerId;
186
+ const canDelete = Boolean(fileDbKey && (ownedByDialog || ownedByMessage || userOwnedReferenced));
187
+ return {
188
+ fileId,
189
+ fileDbKey,
190
+ size: asOptionalFiniteNumber(metadata?.size) ?? null,
191
+ ownerType,
192
+ ownerId,
193
+ ownerDbKey,
194
+ source,
195
+ status: canDelete ? "delete" : "retain",
196
+ reason: canDelete ? ownedByMessage ? "ownerDbKey matches a message in this dialog" : userOwnedReferenced ? "user-owned file is referenced by this dialog and explicit referenced-attachment deletion is enabled" : "ownerType/ownerId matches this dialog" : fileDbKey ? "file ownership is not exclusive to this dialog" : "file metadata not found"
197
+ };
198
+ });
199
+ const deleteCandidates = candidates.filter((candidate) => candidate.status === "delete");
200
+ const retainedCandidates = candidates.filter((candidate) => candidate.status === "retain");
201
+ return {
202
+ dialogId: args.dialogId,
203
+ messageCount: args.messages.length,
204
+ referencedFileIds,
205
+ candidates,
206
+ deleteCandidates,
207
+ retainedCandidates,
208
+ bytesToDelete: deleteCandidates.reduce((sum, candidate) => sum + (candidate.size ?? 0), 0),
209
+ metadataReadFailures: args.metadataReadFailures ?? []
210
+ };
211
+ }
212
+
127
213
  export {
128
214
  isTransientFetchError,
129
- fetchWithTransientRetry
215
+ fetchWithTransientRetry,
216
+ extractFileContentIds,
217
+ buildDialogAttachmentPlan
130
218
  };
@@ -7,24 +7,24 @@ import {
7
7
  hadToolImages,
8
8
  projectOpenAiToolImages,
9
9
  toolImages
10
- } from "./chunk-E2BESSAW.js";
10
+ } from "./chunk-X4O7FJF5.js";
11
11
  import {
12
12
  getModelContextWindow
13
- } from "./chunk-HCJFGH6Y.js";
13
+ } from "./chunk-L32W3PRP.js";
14
14
  import {
15
15
  isRecord
16
16
  } from "./chunk-KUG52IAP.js";
17
+ import {
18
+ asOptionalTrimmedString
19
+ } from "./chunk-G3SUCT4W.js";
17
20
  import {
18
21
  PLATFORM_HOSTED_KIMI_K3_MODEL,
19
22
  isFireworksKimiModel,
20
23
  isNoloHostedProvider
21
- } from "./chunk-VALBGPM6.js";
24
+ } from "./chunk-OBSEKCVK.js";
22
25
  import {
23
26
  asTrimmedLowercaseString
24
27
  } from "./chunk-QSJ3HFEF.js";
25
- import {
26
- asOptionalTrimmedString
27
- } from "./chunk-G3SUCT4W.js";
28
28
 
29
29
  // packages/integrations/openai/responsesHelpers.ts
30
30
  var RESPONSES_TOP_LEVEL_SCHEMA_KEYS = ["anyOf", "oneOf", "allOf", "enum", "not"];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BUILTIN_NOLO_AGENT_KEY
3
- } from "./chunk-UJKTI5PG.js";
3
+ } from "./chunk-ILHQ2AXT.js";
4
4
 
5
5
  // packages/core/init.ts
6
6
  var nolotusId = "0e95801d90";