nolo-cli 0.212.0-alpha.1 → 0.219.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 (263) hide show
  1. package/README.md +3 -2
  2. package/{_executeModel-KE6MBNUJ.js → _executeModel-WW57SJN4.js} +111 -82
  3. package/{accountResolver-4LKIHEKL.js → accountResolver-EK2S4PWF.js} +6 -6
  4. package/{action-DF5UYSJF.js → action-CK64LS6S.js} +12 -11
  5. package/{addContentAction-N2YC5IL3.js → addContentAction-EQXMFNPR.js} +18 -17
  6. package/{addDialogAgentAction-3NKVQCEC.js → addDialogAgentAction-RSDZDASD.js} +21 -20
  7. package/{agentDeleteCommand-NWK7VU4N.js → agentDeleteCommand-X2VWEKUA.js} +127 -118
  8. package/{agentEmailCommands-UZ4DHEX2.js → agentEmailCommands-6IE773VW.js} +132 -124
  9. package/{agentFavoriteCommands-EDK743YA.js → agentFavoriteCommands-2LKGKSUD.js} +7 -8
  10. package/{agentGrantCommands-RQWK2TEV.js → agentGrantCommands-QQV4N4JW.js} +5 -5
  11. package/{agentListCommands-HE7L2A6L.js → agentListCommands-5UNM7CGG.js} +196 -124
  12. package/{agentMachineCommands-6TE4MBMP.js → agentMachineCommands-EVWFKK6Q.js} +62 -53
  13. package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-ZCH37KAL.js} +5 -5
  14. package/{agentPullCommand-6EM3URVK.js → agentPullCommand-XN6ZPBUW.js} +7 -7
  15. package/agentRecordCommands-DX2WE6BH.js +176 -0
  16. package/agentRunCommand-KGOT2AFB.js +206 -0
  17. package/{agentRunControl-OI3LOENH.js → agentRunControl-QDFW5P2T.js} +30 -15
  18. package/{agentRuntimeLocal-HL526DNQ.js → agentRuntimeLocal-SD7U2EGY.js} +52 -45
  19. package/{agentSlice-TMYP2UEA.js → agentSlice-ACZGTZVW.js} +20 -19
  20. package/{appDeleteCommands-ZERW4AXY.js → appDeleteCommands-NE3NQQJL.js} +61 -52
  21. package/{appDeployCommands-DUWSMYHL.js → appDeployCommands-2BAHY522.js} +61 -52
  22. package/{appDeployStatusCommands-N2KIE4BF.js → appDeployStatusCommands-JTW6LZNC.js} +61 -52
  23. package/{appGetCommands-YVR4NPVY.js → appGetCommands-WKFEJO6A.js} +61 -52
  24. package/{appListCommands-JS6HOHZS.js → appListCommands-HNAZZLFX.js} +61 -52
  25. package/{authCommand-FE2C3ZUM.js → authCommand-4FDPL7WG.js} +29 -28
  26. package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
  27. package/{builtinSkillRegistry-3YOIGEF6.js → builtinSkillRegistry-PXH7EGQB.js} +11 -13
  28. package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
  29. package/{chromeOpsCommands-HEN5AX2J.js → chromeOpsCommands-YKX2QX3A.js} +20 -10
  30. package/chunk-2KTUDBG7.js +675 -0
  31. package/{chunk-TCZHTTUU.js → chunk-2OLYKYNY.js} +8 -8
  32. package/{chunk-PYRUW7XN.js → chunk-2VUZSVAS.js} +136 -54
  33. package/chunk-2YGBI2XB.js +30 -0
  34. package/chunk-2ZKFCIJJ.js +13 -0
  35. package/{chunk-3FOQHGHN.js → chunk-3ESU44FG.js} +4 -4
  36. package/{chunk-GNDJKC4B.js → chunk-3N4ASIP6.js} +29 -29
  37. package/{chunk-4KB6WQUL.js → chunk-4A2JIXR2.js} +1 -1
  38. package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
  39. package/{chunk-IJXYFTV7.js → chunk-4NMHE7CX.js} +20 -20
  40. package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
  41. package/chunk-5OZC7R7Y.js +97 -0
  42. package/chunk-5R63B62U.js +364 -0
  43. package/{chunk-LKDF3ATR.js → chunk-5RKUPJYL.js} +1 -1
  44. package/{chunk-5AQR3DGV.js → chunk-652XYZGP.js} +80 -11
  45. package/{chunk-6OQUPIQF.js → chunk-65XXHYZ5.js} +4 -4
  46. package/{chunk-IF45XG7K.js → chunk-6D7NVU66.js} +40 -24
  47. package/{chunk-DM6UMOEL.js → chunk-6NKA6RKF.js} +2 -2
  48. package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
  49. package/{chunk-H2TJUNCH.js → chunk-6RQFZCKH.js} +18 -18
  50. package/{chunk-OOF4UPC5.js → chunk-7UH3DGV6.js} +17 -159
  51. package/{chunk-M6RL5JCD.js → chunk-7WPAI5JJ.js} +14 -14
  52. package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
  53. package/{chunk-3AKFVZ2I.js → chunk-AFHOCBSP.js} +3 -3
  54. package/{chunk-HPFCI4SK.js → chunk-AK5O76CC.js} +3 -3
  55. package/{chunk-Y63ZSOR6.js → chunk-AL3TYDIF.js} +1 -1
  56. package/{chunk-PJNFNEJE.js → chunk-AMEOV5VZ.js} +59 -13
  57. package/chunk-AVHRSJUH.js +1621 -0
  58. package/{chunk-IAPCBNEE.js → chunk-BGGHA5DV.js} +1 -1
  59. package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
  60. package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
  61. package/{chunk-D2MDMY2M.js → chunk-BV3FLP2L.js} +47 -1
  62. package/{chunk-25JZEIXN.js → chunk-C4VAR65S.js} +92 -150
  63. package/{chunk-AVTVGMDY.js → chunk-C4WTX5TU.js} +2 -2
  64. package/{chunk-F6UUQOG6.js → chunk-CKT6QUE2.js} +4 -4
  65. package/{chunk-6VLJ6YA7.js → chunk-CXDPIPZ4.js} +9 -9
  66. package/{secretCommands-4QS3HCA2.js → chunk-D726I5AZ.js} +191 -16
  67. package/{chunk-4KH4J3G5.js → chunk-DJSTBAOU.js} +19 -7
  68. package/chunk-DVQH4BTR.js +1137 -0
  69. package/{chunk-7OCO4TDT.js → chunk-EGXPAWLG.js} +1 -1
  70. package/chunk-EOWLBDY6.js +142 -0
  71. package/chunk-EUCFKKDM.js +247 -0
  72. package/chunk-EWQ3HGNZ.js +90 -0
  73. package/{chunk-NJR3WKVP.js → chunk-F3TQURKK.js} +281 -159
  74. package/{chunk-GSQNH63I.js → chunk-FIYSMXHY.js} +3 -19
  75. package/{chunk-KSTEXKL6.js → chunk-FJ23FZXF.js} +76 -31
  76. package/{chunk-NOMIGOST.js → chunk-FRSBYNWI.js} +116 -124
  77. package/{chunk-VZKUKCA6.js → chunk-FVZW66K4.js} +3676 -243
  78. package/{chunk-YUA6OAH5.js → chunk-G2EJ7NL4.js} +2 -2
  79. package/{chunk-OXME3PEE.js → chunk-GBWGPTA7.js} +2 -1
  80. package/{chunk-MMNYUVLW.js → chunk-GGKNJ42M.js} +11 -77
  81. package/{chunk-INSBKSBB.js → chunk-GIABSSWQ.js} +4 -4
  82. package/{chunk-EZFQ6XRV.js → chunk-GNHMRBYZ.js} +861 -59
  83. package/{chunk-IIQ6JGRI.js → chunk-GVGOEMNV.js} +2 -2
  84. package/{chunk-WXYLV624.js → chunk-H7R3365N.js} +4 -4
  85. package/chunk-HCJFGH6Y.js +1382 -0
  86. package/{chunk-YUXQAVRD.js → chunk-HOCHUZQ7.js} +257 -90
  87. package/{chunk-Y2WUYX4I.js → chunk-HXER7YJF.js} +4 -4
  88. package/{chunk-CTPXME7U.js → chunk-IWH5SOU4.js} +29 -6
  89. package/{chunk-INN4LTAJ.js → chunk-IWQAOW2X.js} +2 -2
  90. package/{chunk-RPQXPZZF.js → chunk-J6T25AJ6.js} +908 -13
  91. package/{chunk-KIM6CLW5.js → chunk-JC5XLWZK.js} +42 -15
  92. package/chunk-JVRQ6YVK.js +99 -0
  93. package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
  94. package/{chunk-HIRC32DV.js → chunk-K5FNYHZC.js} +543 -29
  95. package/{chunk-RU4SD66C.js → chunk-KAVGK4ES.js} +30 -254
  96. package/{chunk-JNKSDZFS.js → chunk-KEN3N2TN.js} +310 -66
  97. package/{chunk-LEC5ALIN.js → chunk-KEPOVMF4.js} +1 -1
  98. package/{chunk-Y6ORVLSS.js → chunk-KN3HEZIQ.js} +1 -1
  99. package/{chunk-D5RCRX4A.js → chunk-KO63FPG3.js} +9415 -5169
  100. package/{chunk-OHNELDTO.js → chunk-KOXKKHFE.js} +11 -152
  101. package/{chunk-4VJAC32I.js → chunk-L5I543VB.js} +3 -2
  102. package/{chunk-SM3NSZJV.js → chunk-LE6LGAJE.js} +20 -1
  103. package/chunk-LKA64WH4.js +227 -0
  104. package/{chunk-VL5KOY2C.js → chunk-MK2Q7ZJD.js} +67 -5
  105. package/{chunk-22CIEBYO.js → chunk-MKQ2UTTX.js} +50 -48
  106. package/chunk-MOMR7NMG.js +226 -0
  107. package/{chunk-PDGKOTO7.js → chunk-N3J4VDGV.js} +33 -22
  108. package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
  109. package/{chunk-5RYBGBQH.js → chunk-N7HVLYOY.js} +14 -9
  110. package/{chunk-GPO7FCEZ.js → chunk-O2CYENYJ.js} +1331 -1725
  111. package/{chunk-3RQVYR4B.js → chunk-OB6DVWPF.js} +197 -65
  112. package/{chunk-HRMJUN5J.js → chunk-OGHP3CTL.js} +1 -1
  113. package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
  114. package/{chunk-G7MLNNEX.js → chunk-OOF7XDZF.js} +5 -5
  115. package/{chunk-CJRONOYL.js → chunk-OXKUPBAQ.js} +19 -75
  116. package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
  117. package/{chunk-UTV2AYEG.js → chunk-PFJNLBRU.js} +2 -2
  118. package/{chunk-CKAHAVMK.js → chunk-PPJYZRSQ.js} +40 -26
  119. package/chunk-PVZY6P3S.js +271 -0
  120. package/{chunk-ZL5RAEEB.js → chunk-Q6HOUF4O.js} +1 -1
  121. package/{chunk-QT6PKHYJ.js → chunk-Q7WP5RPC.js} +5 -5
  122. package/chunk-QHEN7NZ7.js +46 -0
  123. package/{chunk-JIT6FSXJ.js → chunk-QLFCTYRH.js} +3 -3
  124. package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
  125. package/{chunk-YPD3VJZW.js → chunk-QWYFFHCJ.js} +20 -20
  126. package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
  127. package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
  128. package/{chunk-YJMRHHGY.js → chunk-S7SB7L2I.js} +60 -30
  129. package/{chunk-W4S457LU.js → chunk-SASHAZ67.js} +41 -5
  130. package/{chunk-KC4XDTT3.js → chunk-SOF4OWDM.js} +6 -4
  131. package/{chunk-YWSEPJ7C.js → chunk-SRL56PI2.js} +3 -3
  132. package/{chunk-6NSSLV67.js → chunk-SYQR7FQS.js} +52 -50
  133. package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
  134. package/{chunk-CQ46IRNN.js → chunk-T3O6BLYU.js} +447 -203
  135. package/chunk-TLE77UJ5.js +230 -0
  136. package/{chunk-T43B7LB2.js → chunk-TRWT3EE3.js} +1 -1
  137. package/{chunk-FHU44LN3.js → chunk-TVFRV3UQ.js} +2179 -552
  138. package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
  139. package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
  140. package/{chunk-LOEO7LRC.js → chunk-UJKTI5PG.js} +10 -7
  141. package/{chunk-UHJGXRJ4.js → chunk-UMRI2IRY.js} +3 -3
  142. package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
  143. package/{chunk-YOIW77S2.js → chunk-UYOICCYG.js} +29 -19
  144. package/{chunk-GOO6G4PY.js → chunk-VALBGPM6.js} +106 -50
  145. package/{chunk-B7NJ3T4A.js → chunk-VHPAA6MT.js} +10 -10
  146. package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
  147. package/{chunk-SOHTHFV2.js → chunk-XFJ4ZPFC.js} +91 -132
  148. package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
  149. package/chunk-XWGDCWXY.js +526 -0
  150. package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
  151. package/{chunk-EYLGAEB4.js → chunk-YGMBIXCF.js} +132 -0
  152. package/chunk-YL3EFYL3.js +199 -0
  153. package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
  154. package/chunk-YZMNK53S.js +68 -0
  155. package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
  156. package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-PO3MVDME.js} +15 -16
  157. package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
  158. package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
  159. package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-VPSJ4XWC.js} +3 -3
  160. package/{cliExecutor-BWBF2MTI.js → cliExecutor-4MAX3PZL.js} +2 -2
  161. package/cliLocalAgentRecordReader-Z7CH4K4R.js +90 -0
  162. package/{commandRegistry-VVMTPFAX.js → commandRegistry-SDSYBKMC.js} +106 -98
  163. package/{contentThunks-N52O67MI.js → contentThunks-G3TRPEAU.js} +47 -43
  164. package/{cooldownCommands-YXLWOXWR.js → cooldownCommands-X7P5M2V5.js} +5 -4
  165. package/{createAgentAutomationAction-ZC57YRSV.js → createAgentAutomationAction-KHA4MXUJ.js} +51 -49
  166. package/{createDialogAction-VQW5WDYX.js → createDialogAction-KWSBNAPJ.js} +46 -48
  167. package/{createPageAction-M5VDA7SC.js → createPageAction-HXKJ7OFG.js} +50 -48
  168. package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
  169. package/{db-HUCI5R4G.js → db-CS4ZJQKV.js} +1 -1
  170. package/{dbSlice-HP7G4LX3.js → dbSlice-ZJPDIFER.js} +17 -16
  171. package/{deleteFile-7VQGLK2V.js → deleteFile-Q3YDB4ML.js} +9 -9
  172. package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
  173. package/{dialogCommands-JHMR2N2Y.js → dialogCommands-6KQEBHSG.js} +64 -57
  174. package/dialogNotifyCommand-WIZFFEY3.js +36 -0
  175. package/{dialogSlice-GRSVGDTF.js → dialogSlice-HXPKFGRL.js} +42 -40
  176. package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
  177. package/{docCreateCommands-F2K3UPSQ.js → docCreateCommands-XZOLWBRC.js} +61 -54
  178. package/{docDeleteCommands-XGXB5RFT.js → docDeleteCommands-ZSO4LGWE.js} +63 -57
  179. package/{docReadCommands-7HWZZV6J.js → docReadCommands-TTMXCDER.js} +61 -54
  180. package/{docStore-KNZK6Y2G.js → docStore-A2B3GH33.js} +21 -20
  181. package/{docUpdateCommands-OZZ7NQII.js → docUpdateCommands-PRG6WOXL.js} +64 -57
  182. package/{fetchMessages-M3QU7ZCQ.js → fetchMessages-TQEUZD7H.js} +8 -7
  183. package/{getPricing-2MNMXEVG.js → getPricing-YH3VMSVU.js} +6 -6
  184. package/{handleSendMessageAction-SHIH74GJ.js → handleSendMessageAction-NWYG3Q72.js} +193 -301
  185. package/{hostCredentialCreate-X64WK4JD.js → hostCredentialCreate-WS6D3EHT.js} +123 -114
  186. package/index.js +29 -29
  187. package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
  188. package/legacyMigration-TF4SYJCZ.js +19 -0
  189. package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
  190. package/{localDialogRead-XRLAH4CZ.js → localDialogRead-SVTPA5GY.js} +3 -3
  191. package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
  192. package/localRecall-2J6QPOK2.js +15 -0
  193. package/{localRuntimeAdapter-A7K3ABA6.js → localRuntimeAdapter-TFYOA6YE.js} +119 -110
  194. package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
  195. package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
  196. package/{machineCommands-DE3MR7CJ.js → machineCommands-WFWV25IR.js} +128 -119
  197. package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
  198. package/machineWsRunDispatch-ZGXC3F2R.js +191 -0
  199. package/{memberThunks-7WJAY5V6.js → memberThunks-JRYNONYV.js} +29 -28
  200. package/{memoryCommands-ASCE5STX.js → memoryCommands-5WC3T66U.js} +4 -4
  201. package/models-CXINDUJA.js +9 -0
  202. package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
  203. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-4IC3Y4C6.js} +4 -4
  204. package/overlay-THLKYIWY.js +11 -0
  205. package/package.json +2 -2
  206. package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
  207. package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
  208. package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
  209. package/{projectArchive-GGL5HLMD.js → projectArchive-ULJDLUA6.js} +52 -50
  210. package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-SHT2SUVB.js} +19 -12
  211. package/{providerRegistry-S6UL6UNA.js → providerRegistry-TA7EGCVZ.js} +10 -10
  212. package/{read-4VZQODSN.js → read-Q7GOHGNP.js} +10 -10
  213. package/{readDocTool-AVD32RUJ.js → readDocTool-Z5OQ6422.js} +2 -2
  214. package/{readlineWorkspace-XKYKNL2I.js → readlineWorkspace-LTCV2BFW.js} +6505 -4634
  215. package/{removeDialogAgentAction-FKL4BYMR.js → removeDialogAgentAction-U3F2MNAY.js} +23 -22
  216. package/{runAgentClientLoop-V7E2WBVM.js → runAgentClientLoop-BVIEQUB3.js} +81 -79
  217. package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-I47JN4HS.js} +12 -12
  218. package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
  219. package/secretCommands-LJXOOYA7.js +24 -0
  220. package/{setDialogExtraReferencesAction-TLIOLWWI.js → setDialogExtraReferencesAction-G3WSJ7EM.js} +22 -21
  221. package/{setPrimaryDialogAgentAction-2OLWRFYR.js → setPrimaryDialogAgentAction-6FHAHZBB.js} +23 -22
  222. package/{settingThunks-UGBPCNYF.js → settingThunks-AXTBX3Q5.js} +97 -88
  223. package/{skillDiscovery-XKHROSH2.js → skillDiscovery-B5V23AXP.js} +4 -4
  224. package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
  225. package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
  226. package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
  227. package/{spaceCommands-4KSLKVNF.js → spaceCommands-IB6FKWIC.js} +61 -53
  228. package/store-JRVN62NM.js +46 -0
  229. package/{streamAgentChatTurn-7FR7X2NU.js → streamAgentChatTurn-DNYFHBJM.js} +875 -618
  230. package/{switchDialogAgentAction-UZSAG2N5.js → switchDialogAgentAction-UOFIAGPL.js} +21 -20
  231. package/{tableCommands-MP6VFSVT.js → tableCommands-HITDSLHS.js} +10 -10
  232. package/tombstones-FQQMEDOW.js +32 -0
  233. package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
  234. package/{tools-ZLKCC25W.js → tools-JVOJ5HC4.js} +75 -74
  235. package/tuiSummaryLlmCaller-7LWYTHLM.js +44 -0
  236. package/{updateCommands-4744PL3P.js → updateCommands-RJVCRSBP.js} +10 -8
  237. package/{updateDialogTitleAction-U53ZT7PJ.js → updateDialogTitleAction-Q57BOSXG.js} +48 -46
  238. package/{usageCommand-F4IPVMIZ.js → usageCommand-RVKHEPLU.js} +11 -10
  239. package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-GRAFOZF2.js} +12 -11
  240. package/userDataMerge-HT2ZVHBJ.js +13 -0
  241. package/{windowsSelfUpdate-XSQVF2GK.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
  242. package/{workloadLifecycle-4BEQHMSD.js → workloadLifecycle-O2I3NZ2Q.js} +7 -6
  243. package/agentRecordCommands-L3QQ7HZ4.js +0 -167
  244. package/agentRunCommand-2IFGQHCO.js +0 -196
  245. package/chunk-3CGG2PAL.js +0 -594
  246. package/chunk-5XBUWM6I.js +0 -89
  247. package/chunk-BFM34N54.js +0 -842
  248. package/chunk-CJEIOP3E.js +0 -0
  249. package/chunk-CZM5YTZ7.js +0 -977
  250. package/chunk-EYUBHHFB.js +0 -636
  251. package/chunk-JTDORD5P.js +0 -415
  252. package/chunk-NRFKLKRU.js +0 -339
  253. package/chunk-VPAZOH2D.js +0 -115
  254. package/chunk-WJZOQR2J.js +0 -151
  255. package/chunk-ZCWRMUWT.js +0 -89
  256. package/dist-M676ULYG.js +0 -7314
  257. package/machineWsRunDispatch-R26P5V36.js +0 -182
  258. package/models-PJBE6JDV.js +0 -9
  259. package/tuiSummaryLlmCaller-WC54MVGP.js +0 -160
  260. package/{chunk-WACI5I6V.js → chunk-2THCNKE4.js} +3 -3
  261. package/{chunk-2QHFH3DR.js → chunk-47ITIXO7.js} +6 -6
  262. package/{chunk-OQHIVPG4.js → chunk-SNBZZPYH.js} +3 -3
  263. package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
@@ -7,7 +7,7 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-PYRUW7XN.js";
10
+ } from "./chunk-2VUZSVAS.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
@@ -16,13 +16,13 @@ import {
16
16
  } from "./chunk-AGP3YSEC.js";
17
17
  import {
18
18
  shouldReplaceWithNextRecord
19
- } from "./chunk-D2MDMY2M.js";
19
+ } from "./chunk-BV3FLP2L.js";
20
20
  import {
21
21
  isAbortError
22
22
  } from "./chunk-7DPNBQSV.js";
23
23
  import {
24
24
  isBuiltinPlatformAgentKey
25
- } from "./chunk-LOEO7LRC.js";
25
+ } from "./chunk-UJKTI5PG.js";
26
26
  import {
27
27
  NOLO_CLUSTER_SERVERS,
28
28
  normalizeKnownServerOrigin
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveAuthToken,
3
3
  resolveServerUrl
4
- } from "./chunk-WACI5I6V.js";
4
+ } from "./chunk-2THCNKE4.js";
5
5
 
6
6
  // packages/cli/subscriptionQuotaRefresh.ts
7
7
  var CATALOG_QUOTA_REFRESH_TIMEOUT_MS = 2e3;
@@ -1,45 +1,45 @@
1
1
  import {
2
2
  upsertSSREntity,
3
3
  write
4
- } from "./chunk-BFM34N54.js";
4
+ } from "./chunk-AVHRSJUH.js";
5
5
  import {
6
6
  getRuntimeServerContext,
7
7
  resolveRecordAuthority
8
- } from "./chunk-PYRUW7XN.js";
8
+ } from "./chunk-2VUZSVAS.js";
9
9
  import {
10
10
  TIMEOUT,
11
11
  asyncThunkCreator,
12
12
  buildCreateSlice,
13
13
  noloRequest
14
- } from "./chunk-P5L7CXOC.js";
15
- import {
16
- isLevelNotFoundError
17
- } from "./chunk-OW765XBU.js";
14
+ } from "./chunk-7Z6EW7AH.js";
18
15
  import {
19
16
  applyAgentSecretMigrationUpdates,
20
17
  migrateAgentSecrets,
21
18
  normalizeAgentRuntimeToolPolicy
22
- } from "./chunk-2QHFH3DR.js";
23
- import {
24
- createFileCredentialBroker
25
- } from "./chunk-OQHIVPG4.js";
19
+ } from "./chunk-47ITIXO7.js";
26
20
  import {
27
21
  asRecordOrEmpty
28
22
  } from "./chunk-KX6YBIHG.js";
29
23
  import {
30
- isRecord
31
- } from "./chunk-KUG52IAP.js";
24
+ createFileCredentialBroker
25
+ } from "./chunk-SNBZZPYH.js";
32
26
  import {
33
- API_ENDPOINTS
34
- } from "./chunk-LCBAMY2M.js";
27
+ isLevelNotFoundError
28
+ } from "./chunk-OW765XBU.js";
35
29
  import {
36
30
  createAgentKey,
37
31
  createUserKey,
38
32
  toTrimmedString
39
- } from "./chunk-JY5NGFFH.js";
33
+ } from "./chunk-SYTHYBMI.js";
40
34
  import {
41
35
  asTrimmedString
42
36
  } from "./chunk-3EUW3WEO.js";
37
+ import {
38
+ isRecord
39
+ } from "./chunk-KUG52IAP.js";
40
+ import {
41
+ API_ENDPOINTS
42
+ } from "./chunk-LCBAMY2M.js";
43
43
  import {
44
44
  asOptionalTrimmedString
45
45
  } from "./chunk-G3SUCT4W.js";
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
458
458
  const overrides = {};
459
459
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
460
460
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
461
- const { _executeModel } = await import("./_executeModel-KE6MBNUJ.js");
461
+ const { _executeModel } = await import("./_executeModel-WW57SJN4.js");
462
462
  return _executeModel(
463
463
  {
464
464
  isStreaming: args.isStreaming ?? false,
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
479
479
  * - 循环直到无工具调用或触发其他运行时停止条件
480
480
  */
481
481
  runAgent: create.asyncThunk(async (args, thunkApi) => {
482
- const { runAgentClientLoop } = await import("./runAgentClientLoop-V7E2WBVM.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-BVIEQUB3.js");
483
483
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
484
484
  {
485
485
  agentKey: args.agentKey,
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
495
495
  * 聊天轮次流式 Agent 调用
496
496
  */
497
497
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
498
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-7FR7X2NU.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-DNYFHBJM.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -529,7 +529,7 @@ var slice = createSliceWithThunks({
529
529
  agent.isPublic = false;
530
530
  }
531
531
  try {
532
- const { localFirstLog } = await import("./localFirstLog-DHNOY2NA.js");
532
+ const { localFirstLog } = await import("./localFirstLog-OIETGK66.js");
533
533
  localFirstLog("agent.create.start", {
534
534
  owner: effectiveUserId,
535
535
  hasRawApiKey: Boolean(readNonEmptyApiKey(agent.apiKey)),
@@ -583,7 +583,7 @@ var slice = createSliceWithThunks({
583
583
  }
584
584
  }
585
585
  try {
586
- const { localFirstLog } = await import("./localFirstLog-DHNOY2NA.js");
586
+ const { localFirstLog } = await import("./localFirstLog-OIETGK66.js");
587
587
  localFirstLog("agent.create.done", {
588
588
  owner: effectiveUserId,
589
589
  key: privateKey,
@@ -1,3 +1,26 @@
1
+ // packages/chat/web/spaceWorkspaces.ts
2
+ var SPACE_WORKSPACES_KEY = "nolo:space-workspaces:v1";
3
+ var isAbsolutePath = (value) => typeof value === "string" && /^(\/|[A-Za-z]:[\\/]|\\\\[^\\]+\\)/.test(value.trim());
4
+ function readAll(storage, userId) {
5
+ if (!userId) return /* @__PURE__ */ Object.create(null);
6
+ const raw = storage.getItem(SPACE_WORKSPACES_KEY);
7
+ if (!raw) return /* @__PURE__ */ Object.create(null);
8
+ try {
9
+ const value = JSON.parse(raw);
10
+ if (!value || typeof value !== "object" || Array.isArray(value)) return /* @__PURE__ */ Object.create(null);
11
+ const record = value;
12
+ if (record.userId !== userId || !record.folders || typeof record.folders !== "object" || Array.isArray(record.folders)) return /* @__PURE__ */ Object.create(null);
13
+ return Object.fromEntries(Object.entries(record.folders).filter(([, path]) => isAbsolutePath(path)));
14
+ } catch {
15
+ return /* @__PURE__ */ Object.create(null);
16
+ }
17
+ }
18
+ function readSpaceWorkspaceFolder(storage, spaceId, userId) {
19
+ if (!spaceId) return null;
20
+ const paths = readAll(storage, userId);
21
+ return Object.hasOwn(paths, spaceId) ? paths[spaceId].trim() : null;
22
+ }
23
+
1
24
  // packages/chat/web/desktopFolderProjects.ts
2
25
  var DESKTOP_FOLDER_PROJECTS_KEY = "nolo:desktop-folder-projects:v1";
3
26
  function updateDesktopProject(storage, projectId, patch) {
@@ -148,7 +171,7 @@ function readDesktopDefaultWorkspacePath() {
148
171
  if (typeof window === "undefined") return null;
149
172
  return window.__NOLO_DESKTOP_CWD__?.trim() || null;
150
173
  }
151
- function resolveDialogWorkspaceFolder(storage, dialogKey) {
174
+ function resolveDialogWorkspaceFolder(storage, dialogKey, spaceId, userId) {
152
175
  const projectId = readDialogProjectId(storage, dialogKey);
153
176
  const projectPath = projectId ? resolveSelectedDesktopFolder(
154
177
  readDesktopFolderProjects(storage.getItem(DESKTOP_FOLDER_PROJECTS_KEY)),
@@ -158,7 +181,7 @@ function resolveDialogWorkspaceFolder(storage, dialogKey) {
158
181
  const exists = readDesktopFolderProjects(storage.getItem(DESKTOP_FOLDER_PROJECTS_KEY)).some((p) => p.id === projectId);
159
182
  return { cwd: projectPath || null, projectId, missing: !exists };
160
183
  }
161
- return { cwd: readDesktopDefaultWorkspacePath(), projectId: null, missing: false };
184
+ return { cwd: readSpaceWorkspaceFolder(storage, spaceId, userId) ?? readDesktopDefaultWorkspacePath(), projectId: null, missing: false };
162
185
  }
163
186
 
164
187
  export {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  require_react
3
- } from "./chunk-YDH3FDFQ.js";
3
+ } from "./chunk-5FUN7EG4.js";
4
4
  import {
5
5
  __toESM
6
- } from "./chunk-4VNS5WPM.js";
6
+ } from "./chunk-U67V476Y.js";
7
7
 
8
8
  // packages/chat/dialog/dialogRuntimeTypes.ts
9
9
  var GLOBAL_DIALOG_RUNTIME_KEY = "__global__";
@@ -580,6 +580,7 @@ export {
580
580
  applyClearDialogStateRuntime,
581
581
  deleteDialogRuntime,
582
582
  abortActiveControllers,
583
+ getDialogRuntimeState,
583
584
  getDialogRuntimeTokens,
584
585
  getRecoveredForegroundTurn,
585
586
  selectDialogRuntimeByKey,
@@ -592,6 +593,7 @@ export {
592
593
  selectLoopStopReason,
593
594
  selectCurrentDialogKey,
594
595
  selectConfigError,
596
+ subscribe,
595
597
  usePendingFiles,
596
598
  useActiveControllers,
597
599
  usePendingUserInputQueue,
@@ -3,13 +3,10 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-RU4SD66C.js";
6
+ } from "./chunk-KAVGK4ES.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-YPD3VJZW.js";
10
- import {
11
- buildSkillGuidancePromptBlock
12
- } from "./chunk-EZFQ6XRV.js";
9
+ } from "./chunk-QWYFFHCJ.js";
13
10
  import {
14
11
  CREDENTIAL_HYGIENE_RULE,
15
12
  DELETE_SAFETY_RED_LINE,
@@ -25,7 +22,7 @@ import {
25
22
  compileContextLayers,
26
23
  detectDispatchIntentFromMessages,
27
24
  resolveToolGuidedSections
28
- } from "./chunk-NOMIGOST.js";
25
+ } from "./chunk-FRSBYNWI.js";
29
26
  import {
30
27
  convertMessagesToResponsesInput,
31
28
  getUsageRequestOptions,
@@ -34,33 +31,40 @@ import {
34
31
  resolveReasoningReplayOptions,
35
32
  shouldStripReasoningContentForOutbound,
36
33
  stablePromptCacheKey
37
- } from "./chunk-UTV2AYEG.js";
34
+ } from "./chunk-PFJNLBRU.js";
38
35
  import {
39
36
  resolveAgentCallPlan,
40
37
  resolveClientWire
41
- } from "./chunk-UHJGXRJ4.js";
38
+ } from "./chunk-UMRI2IRY.js";
42
39
  import {
43
40
  createFileCredentialBroker
44
- } from "./chunk-OQHIVPG4.js";
41
+ } from "./chunk-SNBZZPYH.js";
42
+ import {
43
+ WORKTREE_ISOLATION_PRELUDE,
44
+ buildSkillGuidancePromptBlock
45
+ } from "./chunk-GNHMRBYZ.js";
46
+ import {
47
+ canonicalizeToolNames
48
+ } from "./chunk-6OVNSQHN.js";
45
49
  import {
46
50
  MEMORY_USE_GUIDANCE,
47
51
  buildUserResponseLanguageContext,
48
52
  wrapHistoricalSummaryWithReplayGuard
49
- } from "./chunk-4VJAC32I.js";
50
- import {
51
- canonicalizeToolNames
52
- } from "./chunk-ZCWRMUWT.js";
53
+ } from "./chunk-L5I543VB.js";
53
54
  import {
54
55
  buildProviderAuthHeaders
55
- } from "./chunk-TCZHTTUU.js";
56
+ } from "./chunk-2OLYKYNY.js";
57
+ import {
58
+ toErrorMessage
59
+ } from "./chunk-HNMXYYJR.js";
60
+ import {
61
+ asTrimmedString
62
+ } from "./chunk-3EUW3WEO.js";
56
63
  import {
57
64
  clampReasoningEffort,
58
65
  getModelConfig,
59
66
  isModelSupportReasoningEffort
60
- } from "./chunk-SM3NSZJV.js";
61
- import {
62
- toErrorMessage
63
- } from "./chunk-HNMXYYJR.js";
67
+ } from "./chunk-LE6LGAJE.js";
64
68
  import {
65
69
  isRecord
66
70
  } from "./chunk-KUG52IAP.js";
@@ -69,19 +73,16 @@ import {
69
73
  isFireworksKimiModel,
70
74
  isPlatformMimoProviderModel,
71
75
  resolveFireworksKimiModel
72
- } from "./chunk-GOO6G4PY.js";
76
+ } from "./chunk-VALBGPM6.js";
73
77
  import {
74
78
  API_ENDPOINTS
75
79
  } from "./chunk-LCBAMY2M.js";
76
- import {
77
- isLoopbackUrl
78
- } from "./chunk-4SN6J65J.js";
79
- import {
80
- asTrimmedString
81
- } from "./chunk-3EUW3WEO.js";
82
80
  import {
83
81
  asOptionalTrimmedString
84
82
  } from "./chunk-G3SUCT4W.js";
83
+ import {
84
+ isLoopbackUrl
85
+ } from "./chunk-4SN6J65J.js";
85
86
 
86
87
  // packages/agent-runtime/responsesConversationState.ts
87
88
  function supportsResponsesConversationState(agent) {
@@ -317,6 +318,14 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
317
318
  content: PLATFORM_RISK_CONTROL_RULE
318
319
  },
319
320
  { id: "consultation-mode", owner: "platform", cacheScope: "static", content: buildConsultationModeBlock() },
321
+ // Git 任务隔离:仓库改动前置,系统层固定块(原 worktree-isolation skill 上移,
322
+ // 不受 skill 配置 disabled 影响)。排在既有平台块之后,不扰动其顺序契约。
323
+ {
324
+ id: "worktree-isolation-prelude",
325
+ owner: "platform",
326
+ cacheScope: "static",
327
+ content: WORKTREE_ISOLATION_PRELUDE
328
+ },
320
329
  { id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
321
330
  { id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
322
331
  { id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
@@ -805,11 +814,25 @@ var generateRequestBody = ({
805
814
  };
806
815
 
807
816
  // packages/ai/chat/resolveDirectRequestApiKey.ts
808
- var DIRECT_API_KEY_UNAVAILABLE_MESSAGE = "\u65E0\u6CD5\u52A0\u8F7D\u672C\u5730 API \u5BC6\u94A5\u3002\u8BF7\u5728 Agent \u8BBE\u7F6E\u4E2D\u91CD\u65B0\u586B\u5199\u5BC6\u94A5\uFF0C\u6216\u786E\u8BA4\u672C\u673A\u51ED\u636E\u53EF\u7528\u3002";
817
+ var DIRECT_API_KEY_UNAVAILABLE_MESSAGE = "\u5F53\u524D\u6B65\u9AA4\u9700\u8981\u63D0\u4F9B API \u51ED\u636E\uFF0C\u8BF7\u91CD\u65B0\u63D0\u4F9B\u5BC6\u94A5\uFF0C\u6216\u786E\u8BA4\u672C\u673A\u51ED\u636E\u53EF\u7528\u3002";
809
818
  var DirectApiKeyResolutionError = class extends Error {
810
- constructor(message = DIRECT_API_KEY_UNAVAILABLE_MESSAGE) {
811
- super(message);
819
+ kind = "credential_missing";
820
+ credentialRef;
821
+ constructor(credentialRefOrOptions, message = DIRECT_API_KEY_UNAVAILABLE_MESSAGE) {
822
+ let resolvedRef;
823
+ let resolvedMessage = DIRECT_API_KEY_UNAVAILABLE_MESSAGE;
824
+ if (typeof credentialRefOrOptions === "string") {
825
+ resolvedRef = credentialRefOrOptions;
826
+ if (message !== DIRECT_API_KEY_UNAVAILABLE_MESSAGE) {
827
+ resolvedMessage = message;
828
+ }
829
+ } else if (credentialRefOrOptions && typeof credentialRefOrOptions === "object") {
830
+ resolvedRef = credentialRefOrOptions.credentialRef;
831
+ resolvedMessage = credentialRefOrOptions.message ?? DIRECT_API_KEY_UNAVAILABLE_MESSAGE;
832
+ }
833
+ super(resolvedMessage);
812
834
  this.name = "DirectApiKeyResolutionError";
835
+ this.credentialRef = resolvedRef;
813
836
  }
814
837
  };
815
838
  var createDirectCredentialBroker = createFileCredentialBroker;
@@ -840,7 +863,7 @@ async function resolveDirectRequestApiKey(agentConfig, options) {
840
863
  return trimmed;
841
864
  }
842
865
  }
843
- throw new DirectApiKeyResolutionError();
866
+ throw new DirectApiKeyResolutionError(credentialRef);
844
867
  }
845
868
  async function safeBrokerGet(broker, ref) {
846
869
  try {
@@ -905,7 +928,9 @@ var fetchDirectly = async (params) => {
905
928
  // 可选参数,直接传递
906
929
  });
907
930
  } catch (error) {
908
- console.error("[fetchDirectly] \u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25:", error);
931
+ if (!(error instanceof DirectApiKeyResolutionError) && error?.kind !== "credential_missing") {
932
+ console.error("[fetchDirectly] \u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25:", error);
933
+ }
909
934
  throw error;
910
935
  }
911
936
  };
@@ -960,7 +985,11 @@ var performFetchRequest = async (params) => {
960
985
  };
961
986
  return resolveAgentCallPlan(planConfig, {}).transport === "server-proxy" ? await fetchWithServerProxy(params) : await fetchDirectly(params);
962
987
  } catch (error) {
988
+ if (error instanceof DirectApiKeyResolutionError || error?.kind === "credential_missing") {
989
+ throw error;
990
+ }
963
991
  console.error("[performFetchRequest] \u8BF7\u6C42\u8FC7\u7A0B\u4E2D\u53D1\u751F\u9519\u8BEF:", error);
992
+ if (params.preserveStructuredError) throw error;
964
993
  const friendlyMsg = formatFriendlyNetworkErrorMessage(error);
965
994
  throw new Error(
966
995
  friendlyMsg.startsWith("\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25") ? friendlyMsg : `\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25: ${friendlyMsg}`
@@ -1253,6 +1282,7 @@ export {
1253
1282
  generateRequestBody,
1254
1283
  CONFIRMATION_INPUT_KEYS,
1255
1284
  stripModelToolArgs,
1285
+ DirectApiKeyResolutionError,
1256
1286
  performFetchRequest,
1257
1287
  INVALID_TOOL_ARGS_REPLACEMENT,
1258
1288
  parseToolCallArguments,
@@ -1,19 +1,19 @@
1
+ import {
2
+ resolveAgentImageInputSupport
3
+ } from "./chunk-SRL56PI2.js";
1
4
  import {
2
5
  TOOL_HAD_IMAGES,
3
6
  hadToolImages
4
7
  } from "./chunk-E2BESSAW.js";
5
8
  import {
6
- resolveAgentImageInputSupport
7
- } from "./chunk-YWSEPJ7C.js";
9
+ asTrimmedString
10
+ } from "./chunk-3EUW3WEO.js";
8
11
  import {
9
12
  isRecord
10
13
  } from "./chunk-KUG52IAP.js";
11
14
  import {
12
15
  asOptionalFiniteNumber
13
16
  } from "./chunk-WWC7I6TA.js";
14
- import {
15
- asTrimmedString
16
- } from "./chunk-3EUW3WEO.js";
17
17
  import {
18
18
  asOptionalTrimmedString
19
19
  } from "./chunk-G3SUCT4W.js";
@@ -151,6 +151,41 @@ function resolveAgentRuntimeConfigFromRecord(key, record) {
151
151
  };
152
152
  }
153
153
 
154
+ // packages/ai/context/requestBudget.ts
155
+ function evaluateRequestBudget(input) {
156
+ const outputReserveTokens = input.output.semantics === "shared-window" ? input.output.finalWireCapTokens : input.output.semantics === "unknown" ? input.output.fallbackReserveTokens : 0;
157
+ const basis = input.output.semantics === "unknown" ? "heuristic" : input.output.semantics;
158
+ const costs = [
159
+ input.messageTokens,
160
+ input.toolSchemaTokens,
161
+ input.otherInputTokens ?? 0,
162
+ input.protocolReserveTokens,
163
+ outputReserveTokens
164
+ ];
165
+ if (!Number.isFinite(input.contextWindow) || input.contextWindow <= 0 || costs.some((value) => !Number.isFinite(value) || value < 0)) {
166
+ return {
167
+ estimatedInputTokens: 0,
168
+ outputReserveTokens: 0,
169
+ availableInputTokens: 0,
170
+ fitsEstimate: false,
171
+ basis,
172
+ reason: "invalid-budget"
173
+ };
174
+ }
175
+ const estimatedInputTokens = Math.ceil(input.messageTokens) + Math.ceil(input.toolSchemaTokens) + Math.ceil(input.otherInputTokens ?? 0);
176
+ const reserve = Math.ceil(outputReserveTokens);
177
+ const availableInputTokens = Math.floor(input.contextWindow) - Math.ceil(input.protocolReserveTokens) - reserve;
178
+ const fitsEstimate = availableInputTokens >= 0 && estimatedInputTokens <= availableInputTokens;
179
+ return {
180
+ estimatedInputTokens,
181
+ outputReserveTokens: reserve,
182
+ availableInputTokens,
183
+ fitsEstimate,
184
+ basis,
185
+ reason: fitsEstimate ? "fits" : "over-budget"
186
+ };
187
+ }
188
+
154
189
  // packages/agent-runtime/desktopRequestSnapshot.ts
155
190
  var DESKTOP_AGENT_CONFIG_SNAPSHOT_STRING_FIELDS = [
156
191
  "name",
@@ -434,6 +469,7 @@ function assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets(body) {
434
469
  }
435
470
 
436
471
  export {
472
+ evaluateRequestBudget,
437
473
  extractImageUrlsFromMessages,
438
474
  hasImageInRuntimeMessages,
439
475
  stripImagePartsFromMessages,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  canonicalizeToolName
3
- } from "./chunk-ZCWRMUWT.js";
3
+ } from "./chunk-6OVNSQHN.js";
4
4
  import {
5
5
  isOwnedAgentKey
6
6
  } from "./chunk-M2EJHDJP.js";
7
- import {
8
- isRecord
9
- } from "./chunk-KUG52IAP.js";
10
7
  import {
11
8
  asTrimmedNonEmptyStringArray
12
9
  } from "./chunk-I42VC5KR.js";
10
+ import {
11
+ isRecord
12
+ } from "./chunk-KUG52IAP.js";
13
13
 
14
14
  // packages/agent-runtime/runtimeToolSurface.ts
15
15
  var DEFAULT_PRIVATE_NOLO_WORKSPACE_TOOLS = [
@@ -67,6 +67,8 @@ var HIGH_RISK_MUTATION_TOOL_NAMES = [
67
67
  // 编排副作用:startAgentRun 会另起一次 run(子 run 的只读与否由调用方参数决定),
68
68
  // controlAgentRun 能追加指令/停止它;只读 run 不应拿到这两个(review A-1)。
69
69
  "startAgentRun",
70
+ "requestTaskReview",
71
+ "recordTaskReviewDecision",
70
72
  "controlAgentRun",
71
73
  // 受控云端执行:在用户拥有的云资源上跑任意命令,不可重放、副作用在云端。
72
74
  // 硬边界:它永不进 DEFAULT_PRIVATE_NOLO_WORKSPACE_TOOLS(见该清单注释),
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  resolveAgentCallPlan
3
- } from "./chunk-UHJGXRJ4.js";
3
+ } from "./chunk-UMRI2IRY.js";
4
4
  import {
5
5
  SUBSCRIPTION_OAUTH_PROVIDERS
6
- } from "./chunk-KIM6CLW5.js";
6
+ } from "./chunk-JC5XLWZK.js";
7
7
  import {
8
8
  findModelConfig,
9
9
  getProviderByModelName
10
- } from "./chunk-SM3NSZJV.js";
10
+ } from "./chunk-LE6LGAJE.js";
11
11
  import {
12
12
  asTrimmedLowercaseString
13
13
  } from "./chunk-QSJ3HFEF.js";