nolo-cli 0.224.0-alpha.1 → 0.224.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 (236) hide show
  1. package/{_executeModel-WW57SJN4.js → _executeModel-5NA4USGG.js} +77 -70
  2. package/{action-CK64LS6S.js → action-X75O3XPH.js} +11 -8
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-GVC77QSN.js} +14 -13
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-KKDVAMW3.js} +15 -14
  5. package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-2RFGKFAB.js} +127 -118
  6. package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-GQCQKKOR.js} +126 -113
  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-HSGLDPDQ.js} +110 -495
  10. package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-BISF6PVV.js} +63 -57
  11. package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-O3Q25PKU.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-G6U2LHMW.js} +6 -6
  13. package/agentRecordCommands-AOXPGYAJ.js +189 -0
  14. package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-AFAIP7U7.js} +129 -113
  15. package/{agentRunControl-QDFW5P2T.js → agentRunControl-VBL7UFSG.js} +20 -14
  16. package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-T7BX2WGL.js} +47 -41
  17. package/{agentSlice-ACZGTZVW.js → agentSlice-XJNKE3PG.js} +18 -17
  18. package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-LURUSPY7.js} +56 -50
  19. package/{appDeployCommands-2BAHY522.js → appDeployCommands-SMEW4AK2.js} +56 -50
  20. package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-VYPJTBJK.js} +56 -50
  21. package/{appGetCommands-WKFEJO6A.js → appGetCommands-N4NI5GGJ.js} +56 -50
  22. package/{appListCommands-HNAZZLFX.js → appListCommands-5C6ONN3Z.js} +56 -50
  23. package/{authCommand-4FDPL7WG.js → authCommand-4CVBDADE.js} +29 -24
  24. package/{authCommands-GAJ3NIXO.js → authCommands-EHU2BHOX.js} +12 -7
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +4 -4
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-CSDG2HYN.js} +6 -6
  27. package/{chunk-OOF7XDZF.js → chunk-2574ANSV.js} +6 -6
  28. package/chunk-2SXN7LAY.js +15 -0
  29. package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
  30. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  31. package/{chunk-D726I5AZ.js → chunk-3EMIEC27.js} +2 -2
  32. package/{chunk-S7SB7L2I.js → chunk-3FBAVU2Y.js} +24 -22
  33. package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
  34. package/{chunk-5RKUPJYL.js → chunk-4FIO2S7Z.js} +11 -3
  35. package/{chunk-MKQ2UTTX.js → chunk-4IQVE43Z.js} +63 -32
  36. package/{chunk-6NKA6RKF.js → chunk-4Q6HQORG.js} +8 -8
  37. package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
  38. package/chunk-4ZCTKB27.js +31 -0
  39. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  40. package/{chunk-4A2JIXR2.js → chunk-5QZSEQSK.js} +1 -1
  41. package/chunk-5ZUOVCKT.js +32 -0
  42. package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
  43. package/{chunk-JC5XLWZK.js → chunk-6CKUO32A.js} +27 -15
  44. package/chunk-6D25V6CB.js +133 -0
  45. package/chunk-6WOLPIPY.js +379 -0
  46. package/{chunk-KOXKKHFE.js → chunk-6WZVM33D.js} +9 -4
  47. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  48. package/{chunk-KO63FPG3.js → chunk-7AJRJGSQ.js} +1049 -2860
  49. package/chunk-7NIBQ4HY.js +138 -0
  50. package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
  51. package/{chunk-7WPAI5JJ.js → chunk-A3LUWRQK.js} +15 -15
  52. package/{chunk-C4WTX5TU.js → chunk-A5EVA6HU.js} +2 -2
  53. package/{chunk-O2CYENYJ.js → chunk-A74QP4FI.js} +2614 -1374
  54. package/{chunk-N3J4VDGV.js → chunk-AEQMKYZN.js} +15 -15
  55. package/{chunk-DVQH4BTR.js → chunk-AH5R7BYW.js} +26 -176
  56. package/{chunk-H7R3365N.js → chunk-ANJRDS6U.js} +8 -5
  57. package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
  58. package/{chunk-GIABSSWQ.js → chunk-B5SV4H3J.js} +4 -4
  59. package/{chunk-FVZW66K4.js → chunk-B7DE5XJW.js} +387 -347
  60. package/chunk-BEM6LPD2.js +734 -0
  61. package/{chunk-SRL56PI2.js → chunk-BGGAY6OK.js} +46 -8
  62. package/{chunk-T3O6BLYU.js → chunk-BGGV6B5O.js} +555 -328
  63. package/{chunk-BGGHA5DV.js → chunk-BIABIPGW.js} +1 -1
  64. package/chunk-BIDSIRTS.js +307 -0
  65. package/{chunk-6D7NVU66.js → chunk-BXSMFPTG.js} +17 -14
  66. package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
  67. package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
  68. package/{chunk-GVGOEMNV.js → chunk-CKZPMJNU.js} +3 -3
  69. package/{chunk-3ESU44FG.js → chunk-CVJRVBJL.js} +3 -3
  70. package/chunk-D374I563.js +62 -0
  71. package/{chunk-XWGDCWXY.js → chunk-DNZ4JJ7C.js} +9 -9
  72. package/chunk-DVYAFH2Q.js +103 -0
  73. package/{chunk-N7HVLYOY.js → chunk-DXW5WDHZ.js} +4 -4
  74. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  75. package/{chunk-65XXHYZ5.js → chunk-E5KJOZWY.js} +4 -4
  76. package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
  77. package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
  78. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  79. package/{chunk-QLFCTYRH.js → chunk-F3XI6WQP.js} +17 -10
  80. package/{chunk-AFHOCBSP.js → chunk-F6YWDVIB.js} +1 -1
  81. package/{chunk-VHPAA6MT.js → chunk-FFYE5ATM.js} +6 -6
  82. package/{chunk-F3TQURKK.js → chunk-FZKA3XFA.js} +21 -21
  83. package/{chunk-C4VAR65S.js → chunk-G22P367E.js} +153 -117
  84. package/{chunk-4NMHE7CX.js → chunk-GDUC4VS2.js} +12 -12
  85. package/{chunk-2VUZSVAS.js → chunk-GXXY2NL3.js} +22 -20
  86. package/{chunk-IWH5SOU4.js → chunk-H7ZYKHAZ.js} +38 -18
  87. package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
  88. package/{chunk-EGXPAWLG.js → chunk-HCNOO374.js} +1 -1
  89. package/{chunk-DJSTBAOU.js → chunk-HOM6LTEW.js} +4 -4
  90. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  91. package/{chunk-QWYFFHCJ.js → chunk-IJTXNLQE.js} +13 -13
  92. package/{chunk-UYOICCYG.js → chunk-IUMS6F53.js} +59 -88
  93. package/{chunk-MOMR7NMG.js → chunk-IUTUWIKE.js} +2 -2
  94. package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
  95. package/{chunk-SASHAZ67.js → chunk-KZPEGO6D.js} +13 -2
  96. package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
  97. package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
  98. package/{chunk-K5FNYHZC.js → chunk-MECDGHLK.js} +420 -120
  99. package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
  100. package/{chunk-J6T25AJ6.js → chunk-MYOSN6BT.js} +82 -18
  101. package/{chunk-Q7WP5RPC.js → chunk-MYPKBJJO.js} +5 -5
  102. package/{chunk-6RQFZCKH.js → chunk-N2JROHD3.js} +4 -4
  103. package/{chunk-VREDDN25.js → chunk-O6IPRAVV.js} +14 -9
  104. package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
  105. package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
  106. package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
  107. package/{chunk-5R63B62U.js → chunk-P3IZUMIC.js} +8 -8
  108. package/{chunk-FRSBYNWI.js → chunk-PGKA77TZ.js} +52 -217
  109. package/{chunk-7UH3DGV6.js → chunk-PRMEU7BT.js} +232 -10
  110. package/{chunk-2ZKFCIJJ.js → chunk-PROOOQZ3.js} +1 -1
  111. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  112. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  113. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  114. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  115. package/chunk-RETQOQ4D.js +33394 -0
  116. package/{chunk-AVHRSJUH.js → chunk-RM4UMFY4.js} +32 -25
  117. package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
  118. package/{chunk-OB6DVWPF.js → chunk-S2MHR4PU.js} +164 -4
  119. package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
  120. package/{chunk-PVZY6P3S.js → chunk-T6VROBY7.js} +2 -2
  121. package/{chunk-2KTUDBG7.js → chunk-TEMLHVGX.js} +1 -1
  122. package/{chunk-TVFRV3UQ.js → chunk-TRHJ4NJB.js} +673 -1279
  123. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  124. package/{chunk-UMRI2IRY.js → chunk-TWTJV35S.js} +6 -6
  125. package/{chunk-5OZC7R7Y.js → chunk-U3G7RRXJ.js} +13 -12
  126. package/{chunk-CXDPIPZ4.js → chunk-UFC4J7OY.js} +3 -3
  127. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  128. package/{chunk-AGP3YSEC.js → chunk-ULLHVDTZ.js} +48 -3
  129. package/{chunk-SYQR7FQS.js → chunk-VM72HKW2.js} +97 -29
  130. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  131. package/{chunk-3N4ASIP6.js → chunk-VREG6ANQ.js} +103 -100
  132. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  133. package/chunk-VSRISJXZ.js +107 -0
  134. package/chunk-WDWZPASX.js +29 -0
  135. package/chunk-WFGNWWJI.js +326 -0
  136. package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
  137. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  138. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  139. package/chunk-X7IA2B7R.js +166 -0
  140. package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
  141. package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
  142. package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
  143. package/{chunk-KAVGK4ES.js → chunk-Y5OWZQMJ.js} +39 -30
  144. package/{chunk-AK5O76CC.js → chunk-YGCOJNFZ.js} +3 -3
  145. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  146. package/{chunk-XFJ4ZPFC.js → chunk-Z2WZAE4P.js} +128 -149
  147. package/chunk-Z6YTCDU4.js +24 -0
  148. package/chunk-ZEKUFJLW.js +1438 -0
  149. package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
  150. package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-U5OAVAKQ.js} +12 -12
  151. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
  152. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  153. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  154. package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-HVZAQCUD.js} +49 -44
  155. package/{commandRegistry-SDSYBKMC.js → commandRegistry-TME7INFU.js} +98 -94
  156. package/{contentThunks-G3TRPEAU.js → contentThunks-U6OC4R2N.js} +37 -35
  157. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-U7XSRVJP.js} +4 -4
  158. package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-IP4LFN3W.js} +37 -35
  159. package/{createDialogAction-KWSBNAPJ.js → createDialogAction-IAGQJ3LH.js} +38 -36
  160. package/{createPageAction-HXKJ7OFG.js → createPageAction-AZ3UIFKA.js} +38 -36
  161. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  162. package/{dbSlice-ZJPDIFER.js → dbSlice-DKKMJJYY.js} +13 -12
  163. package/{deleteFile-Q3YDB4ML.js → deleteFile-TQSONMVU.js} +11 -8
  164. package/{dialogCommands-6KQEBHSG.js → dialogCommands-PCDRMBWG.js} +60 -55
  165. package/dialogMessageRecord-OAV77LT7.js +7 -0
  166. package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-O35MWMOS.js} +13 -13
  167. package/{dialogSlice-HXPKFGRL.js → dialogSlice-QAKYN4DE.js} +35 -33
  168. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-2SSLTXKO.js} +3 -3
  169. package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-CFQFZOAD.js} +54 -48
  170. package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-5CPNTIIS.js} +56 -50
  171. package/{docReadCommands-TTMXCDER.js → docReadCommands-XQILYSAJ.js} +54 -48
  172. package/{docStore-A2B3GH33.js → docStore-GIVRT7TQ.js} +15 -14
  173. package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-VETKSUDD.js} +54 -48
  174. package/fetchMessages-TQEUZD7H.js +1 -1
  175. package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
  176. package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-HKIW4ZNO.js} +70 -66
  177. package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-6VDJFNDO.js} +118 -104
  178. package/index.js +56 -18
  179. package/keys-RWF7UCB4.js +1 -1
  180. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  181. package/{localDialogRead-SVTPA5GY.js → localDialogRead-AV2VKKPG.js} +1 -1
  182. package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
  183. package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-BQ4F5PZV.js} +120 -107
  184. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
  185. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
  186. package/{machineCommands-WFWV25IR.js → machineCommands-K6XIGOAD.js} +142 -114
  187. package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-4OO7Z6UM.js} +114 -101
  188. package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
  189. package/{memberThunks-JRYNONYV.js → memberThunks-PBJPZ2JU.js} +22 -17
  190. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  191. package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
  192. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  193. package/package.json +1 -1
  194. package/{projectArchive-ULJDLUA6.js → projectArchive-G7AOQPRW.js} +43 -41
  195. package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-OPBCAONX.js} +6 -6
  196. package/{providerRegistry-TA7EGCVZ.js → providerRegistry-J2HCVTHE.js} +6 -6
  197. package/{read-Q7GOHGNP.js → read-JEGPITEW.js} +10 -9
  198. package/{readDocTool-Z5OQ6422.js → readDocTool-TE3XIU4Y.js} +1 -1
  199. package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-SOW5QUGZ.js} +4412 -4277
  200. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-CX3OAH4Y.js} +17 -16
  201. package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-HQJPDFGQ.js} +95 -69
  202. package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-GUH2YGMH.js} +17 -17
  203. package/{secretCommands-LJXOOYA7.js → secretCommands-NJXFVHZU.js} +4 -4
  204. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +16 -15
  205. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +17 -16
  206. package/{settingThunks-AXTBX3Q5.js → settingThunks-AY76OHYX.js} +181 -62
  207. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  208. package/{spaceCommands-IB6FKWIC.js → spaceCommands-G63QGYQO.js} +59 -53
  209. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  210. package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-E3XH2KFD.js} +160 -154
  211. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-G6EZRKCQ.js} +15 -14
  212. package/{tableCommands-HITDSLHS.js → tableCommands-JI75ZHDI.js} +14 -11
  213. package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
  214. package/{tools-JVOJ5HC4.js → tools-7RSX22FT.js} +64 -58
  215. package/tuiRestart-KAAA7TND.js +41 -0
  216. package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-BVNHMWLR.js} +19 -19
  217. package/{updateCommands-RJVCRSBP.js → updateCommands-ASK5XYPH.js} +8 -6
  218. package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-SEWV252V.js} +37 -35
  219. package/{usageCommand-RVKHEPLU.js → usageCommand-JVT5J3DC.js} +3 -3
  220. package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-IZYYUTEW.js} +4 -4
  221. package/webapi-24RZDIIQ.js +2488 -0
  222. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
  223. package/workContext-MM3P5GP5.js +13 -0
  224. package/workContextAccess-UZHDLBUR.js +11 -0
  225. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  226. package/agentRecordCommands-DX2WE6BH.js +0 -176
  227. package/chunk-2THCNKE4.js +0 -147
  228. package/chunk-2WZXXAQD.js +0 -57
  229. package/chunk-652XYZGP.js +0 -352
  230. package/chunk-KEPOVMF4.js +0 -91
  231. package/chunk-OXKUPBAQ.js +0 -776
  232. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  233. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  234. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  235. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  236. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-YIZ7KLUP.js} +3 -3
@@ -0,0 +1,326 @@
1
+ // packages/agent-runtime/toolOutputSanitizer.ts
2
+ var SANITIZE_REPLACEMENT_CHAR = "\uFFFD";
3
+ var MAX_CONTROL_SEQUENCE_CHARS = 256;
4
+ var ESC = 27;
5
+ var BEL = 7;
6
+ var LINE_FEED = 10;
7
+ var TAB = 9;
8
+ var DEL = 127;
9
+ var C1_DCS = 144;
10
+ var C1_SOS = 152;
11
+ var C1_CSI = 155;
12
+ var C1_ST = 156;
13
+ var C1_OSC = 157;
14
+ var C1_PM = 158;
15
+ var C1_APC = 159;
16
+ var HIGH_SURROGATE_MIN = 55296;
17
+ var HIGH_SURROGATE_MAX = 56319;
18
+ var LOW_SURROGATE_MIN = 56320;
19
+ var LOW_SURROGATE_MAX = 57343;
20
+ var NEEDS_SANITIZE_RE = new RegExp("[\\u0000-\\u0008\\u000b-\\u001f\\u007f-\\u009f]|\\p{Cs}", "u");
21
+ function isC1Introducer(code) {
22
+ return code === C1_CSI || code === C1_OSC || code === C1_DCS || code === C1_SOS || code === C1_PM || code === C1_APC;
23
+ }
24
+ var UNTERMINATED_SEQUENCE = -1;
25
+ function skipCsiBody(text, start, limit) {
26
+ let i = start;
27
+ while (i < limit) {
28
+ const code = text.charCodeAt(i);
29
+ if (code >= 64 && code <= 126) return i + 1;
30
+ if (code >= 32 && code <= 63) {
31
+ i += 1;
32
+ continue;
33
+ }
34
+ return i;
35
+ }
36
+ return UNTERMINATED_SEQUENCE;
37
+ }
38
+ function skipControlStringBody(text, start, limit) {
39
+ const length = text.length;
40
+ let i = start;
41
+ while (i < limit) {
42
+ const code = text.charCodeAt(i);
43
+ if (code === BEL || code === C1_ST) return i + 1;
44
+ if (code === ESC && i + 1 < length && text.charCodeAt(i + 1) === 92) {
45
+ return Math.min(i + 2, limit);
46
+ }
47
+ i += 1;
48
+ }
49
+ return UNTERMINATED_SEQUENCE;
50
+ }
51
+ function skipEscapeSequence(text, escIndex) {
52
+ const length = text.length;
53
+ const limit = Math.min(length, escIndex + MAX_CONTROL_SEQUENCE_CHARS);
54
+ const leadIndex = escIndex + 1;
55
+ if (leadIndex >= length) return leadIndex;
56
+ const lead = text.charCodeAt(leadIndex);
57
+ if (lead === 91) {
58
+ const csiEnd = skipCsiBody(text, leadIndex + 1, limit);
59
+ return csiEnd === UNTERMINATED_SEQUENCE ? escIndex + 1 : csiEnd;
60
+ }
61
+ if (lead === 93 || lead === 80 || lead === 88 || lead === 94 || lead === 95) {
62
+ const stringEnd = skipControlStringBody(text, leadIndex + 1, limit);
63
+ return stringEnd === UNTERMINATED_SEQUENCE ? escIndex + 1 : stringEnd;
64
+ }
65
+ let j = leadIndex;
66
+ while (j < limit && text.charCodeAt(j) >= 32 && text.charCodeAt(j) <= 47) {
67
+ j += 1;
68
+ }
69
+ if (j < limit) {
70
+ const final = text.charCodeAt(j);
71
+ if (final >= 48 && final <= 126) return j + 1;
72
+ }
73
+ return escIndex + 1;
74
+ }
75
+ function skipC1Sequence(text, index) {
76
+ const limit = Math.min(text.length, index + MAX_CONTROL_SEQUENCE_CHARS);
77
+ const code = text.charCodeAt(index);
78
+ const bodyEnd = code === C1_CSI ? skipCsiBody(text, index + 1, limit) : skipControlStringBody(text, index + 1, limit);
79
+ return bodyEnd === UNTERMINATED_SEQUENCE ? index + 1 : bodyEnd;
80
+ }
81
+ function sanitizeToolOutputText(text) {
82
+ if (typeof text !== "string" || text.length === 0) return text;
83
+ if (!NEEDS_SANITIZE_RE.test(text)) return text;
84
+ const out = [];
85
+ const length = text.length;
86
+ let plainStart = 0;
87
+ let i = 0;
88
+ const dropRange = (end) => {
89
+ if (plainStart < i) out.push(text.slice(plainStart, i));
90
+ i = end;
91
+ plainStart = end;
92
+ };
93
+ while (i < length) {
94
+ const code = text.charCodeAt(i);
95
+ if (code === LINE_FEED || code === TAB) {
96
+ i += 1;
97
+ continue;
98
+ }
99
+ if (code === ESC) {
100
+ dropRange(skipEscapeSequence(text, i));
101
+ continue;
102
+ }
103
+ if (isC1Introducer(code)) {
104
+ dropRange(skipC1Sequence(text, i));
105
+ continue;
106
+ }
107
+ if (code < 32 || code === DEL || code >= 128 && code <= 159) {
108
+ dropRange(i + 1);
109
+ continue;
110
+ }
111
+ if (code >= HIGH_SURROGATE_MIN && code <= HIGH_SURROGATE_MAX) {
112
+ const low = text.charCodeAt(i + 1);
113
+ if (low >= LOW_SURROGATE_MIN && low <= LOW_SURROGATE_MAX) {
114
+ i += 2;
115
+ continue;
116
+ }
117
+ if (plainStart < i) out.push(text.slice(plainStart, i));
118
+ out.push(SANITIZE_REPLACEMENT_CHAR);
119
+ i += 1;
120
+ plainStart = i;
121
+ continue;
122
+ }
123
+ if (code >= LOW_SURROGATE_MIN && code <= LOW_SURROGATE_MAX) {
124
+ if (plainStart < i) out.push(text.slice(plainStart, i));
125
+ out.push(SANITIZE_REPLACEMENT_CHAR);
126
+ i += 1;
127
+ plainStart = i;
128
+ continue;
129
+ }
130
+ i += 1;
131
+ }
132
+ if (plainStart < length) out.push(text.slice(plainStart));
133
+ return out.join("");
134
+ }
135
+ function sanitizeToolOutputContent(content) {
136
+ return typeof content === "string" ? sanitizeToolOutputText(content) : content;
137
+ }
138
+
139
+ // packages/agent-runtime/secretScrubber.ts
140
+ var SECRET_PATTERNS = [
141
+ // 1. PEM 私钥块(高危硬拦截)
142
+ {
143
+ kind: "PRIVATE_KEY",
144
+ placeholder: "[REDACTED:PRIVATE_KEY]",
145
+ regex: /-----BEGIN (?:[A-Z0-9 ]+)?PRIVATE KEY-----[\s\S]+?-----END (?:[A-Z0-9 ]+)?PRIVATE KEY-----/g
146
+ },
147
+ // 2. Anthropic API Key (sk-ant-...)
148
+ {
149
+ kind: "ANTHROPIC_KEY",
150
+ placeholder: "[REDACTED:ANTHROPIC_KEY]",
151
+ regex: /\bsk-ant-[a-zA-Z0-9_\-]{20,}\b/g
152
+ },
153
+ // 3. OpenAI / DeepSeek / 通用 API Key (sk-...)
154
+ {
155
+ kind: "API_KEY",
156
+ placeholder: "[REDACTED:API_KEY]",
157
+ regex: /\bsk-[a-zA-Z0-9_\-]{24,}\b/g
158
+ },
159
+ // 3b. BigModel / 智谱(GLM)API Key:32 位 hex + "." + 16 位字母数字
160
+ // (2026-11 实证:这类 key 没有任何可辨识前缀,此前漏在清洗与入路隔离之外,
161
+ // 用户贴进对话后明文直接进了 prompt / 历史 / 工具日志。)
162
+ {
163
+ kind: "BIGMODEL_KEY",
164
+ placeholder: "[REDACTED:BIGMODEL_KEY]",
165
+ regex: /\b[0-9a-fA-F]{32}\.[A-Za-z0-9]{16}\b/g
166
+ },
167
+ // 4. GitHub 访问令牌 (ghp_..., gho_..., github_pat_...)
168
+ {
169
+ kind: "GITHUB_TOKEN",
170
+ placeholder: "[REDACTED:GITHUB_TOKEN]",
171
+ regex: /\b(?:gh[pousr]_[a-zA-Z0-9]{30,}|github_pat_[a-zA-Z0-9_]{40,})\b/g
172
+ },
173
+ // 5. Bearer Token (JWT / Authorization Bearer)
174
+ {
175
+ kind: "BEARER_TOKEN",
176
+ placeholder: "Bearer [REDACTED:BEARER_TOKEN]",
177
+ regex: /\bBearer\s+[a-zA-Z0-9_\-\.]{25,}\b/gi
178
+ },
179
+ // 6. 常见环境变量或配置中的密码赋值 (PASSWORD=..., PASSWD=...)
180
+ {
181
+ kind: "PASSWORD",
182
+ placeholder: "$1=[REDACTED:PASSWORD]",
183
+ regex: /\b((?:DB_|DATABASE_|ADMIN_|ROOT_|MYSQL_|POSTGRES_)?(?:PASSWORD|PASSWD|SECRET_KEY))\s*=\s*['"]?([^\s'"]{4,})['"]?/gi
184
+ }
185
+ ];
186
+ var QUICK_PROBE_SUBSTRINGS = [
187
+ "sk-",
188
+ "ghp_",
189
+ "gho_",
190
+ "ghu_",
191
+ "ghs_",
192
+ "ghr_",
193
+ "github_pat_",
194
+ "PRIVATE KEY",
195
+ "Bearer ",
196
+ "bearer ",
197
+ "PASSWORD",
198
+ "password",
199
+ "PASSWD",
200
+ "SECRET_KEY"
201
+ ];
202
+ var UNPREFIXED_PROBE_REGEX = /\b[0-9a-fA-F]{32}\.[A-Za-z0-9]{16}\b/;
203
+ function hasPotentialSecrets(text) {
204
+ if (typeof text !== "string" || text.length === 0) return false;
205
+ if (QUICK_PROBE_SUBSTRINGS.some((probe) => text.includes(probe))) return true;
206
+ return UNPREFIXED_PROBE_REGEX.test(text);
207
+ }
208
+ function scrubSecrets(text) {
209
+ if (typeof text !== "string" || text.length === 0) {
210
+ return { cleaned: text, redactedCount: 0, matchedKinds: [] };
211
+ }
212
+ if (!hasPotentialSecrets(text)) {
213
+ return { cleaned: text, redactedCount: 0, matchedKinds: [] };
214
+ }
215
+ let cleaned = text;
216
+ let redactedCount = 0;
217
+ const matchedKinds = [];
218
+ for (const pattern of SECRET_PATTERNS) {
219
+ pattern.regex.lastIndex = 0;
220
+ const matches = cleaned.match(pattern.regex);
221
+ if (matches && matches.length > 0) {
222
+ redactedCount += matches.length;
223
+ if (!matchedKinds.includes(pattern.kind)) {
224
+ matchedKinds.push(pattern.kind);
225
+ }
226
+ cleaned = cleaned.replace(pattern.regex, pattern.placeholder);
227
+ }
228
+ }
229
+ return { cleaned, redactedCount, matchedKinds };
230
+ }
231
+ function scrubObjectSecrets(val) {
232
+ if (val === null || val === void 0) return val;
233
+ if (typeof val === "string") {
234
+ return scrubSecrets(val).cleaned;
235
+ }
236
+ if (Array.isArray(val)) {
237
+ return val.map((item) => scrubObjectSecrets(item));
238
+ }
239
+ if (typeof val === "object") {
240
+ if (val instanceof Date || val instanceof RegExp) return val;
241
+ const result = {};
242
+ for (const [k, v] of Object.entries(val)) {
243
+ result[k] = scrubObjectSecrets(v);
244
+ }
245
+ return result;
246
+ }
247
+ return val;
248
+ }
249
+
250
+ // packages/ai/agent/toolOutputPolicy.ts
251
+ var PROJECT_INSTRUCTION_MAX_BYTES = 24 * 1024;
252
+ var PROJECT_INSTRUCTION_MAX_CHARS = PROJECT_INSTRUCTION_MAX_BYTES + 2048;
253
+ function isCompleteInstructionOutput(toolName, metadata, content) {
254
+ return (toolName === "readFile" || toolName === "read_file" || toolName === "readWorkspaceFile") && typeof metadata === "object" && metadata !== null && metadata.projectInstruction === true && content.length <= PROJECT_INSTRUCTION_MAX_CHARS;
255
+ }
256
+ var MAX_IN_TURN_TOOL_CONTENT_CHARS = 4e3;
257
+ var LIST_AGENTS_OUTPUT_BUDGET = 30720;
258
+ var LIST_AGENTS_PAGE_BUDGET = LIST_AGENTS_OUTPUT_BUDGET - 1600;
259
+ var DEFAULT_TOOL_OUTPUT_PROFILE = {
260
+ maxChars: MAX_IN_TURN_TOOL_CONTENT_CHARS,
261
+ headRatio: 0.5
262
+ };
263
+ var TOOL_OUTPUT_PROFILES = {
264
+ listAgents: { maxChars: LIST_AGENTS_OUTPUT_BUDGET, headRatio: 0.5, historicalMaxChars: LIST_AGENTS_OUTPUT_BUDGET },
265
+ readFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
266
+ read_file: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
267
+ readWorkspaceFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
268
+ globFiles: { maxChars: 2800, headRatio: 0.85 },
269
+ execShell: { maxChars: 4e3, headRatio: 0.35 },
270
+ runCommand: { maxChars: 4e3, headRatio: 0.35 },
271
+ launchProcess: { maxChars: 2800, headRatio: 0.35 },
272
+ editFile: { maxChars: 1200, headRatio: 0.62 },
273
+ writeFile: { maxChars: 1e3, headRatio: 0.62 },
274
+ readPastedText: { maxChars: 4800, headRatio: 0.5, historicalMaxChars: 4800 },
275
+ // loadSkill 内联的是文档正文(SKILL.md 全文),与 readFile 同类,不该因为工具名未登记就退回
276
+ // DEFAULT 的 4000。历史事故(nolo-plan omitted middle)正是 headRatio 0.5 掐掉中段,把
277
+ // 「MUST / 禁止」所在的中段静默省略。取 4800(与 readFile 同级),不激进放大;headRatio 同 DEFAULT。
278
+ loadSkill: { maxChars: 4800, headRatio: 0.5 }
279
+ };
280
+ function resolveToolOutputProfile(toolName) {
281
+ return (toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0) ?? DEFAULT_TOOL_OUTPUT_PROFILE;
282
+ }
283
+ function resolveHistoricalToolContentCap(toolName, historicalMaxChars) {
284
+ const profile = toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0;
285
+ return profile?.historicalMaxChars !== void 0 ? Math.max(historicalMaxChars, profile.historicalMaxChars) : historicalMaxChars;
286
+ }
287
+ function projectToolMessageContent(input) {
288
+ const { content, toolName } = input;
289
+ if (isCompleteInstructionOutput(toolName, input.metadata, content)) return scrubSecrets(sanitizeToolOutputText(content)).cleaned;
290
+ const maxChars = resolveToolOutputProfile(toolName).maxChars;
291
+ if (content.length <= maxChars) return content;
292
+ return clipToolText(
293
+ content,
294
+ maxChars,
295
+ resolveToolOutputProfile(toolName).headRatio,
296
+ `
297
+ \u2026[\u622A\u65AD\uFF0C\u539F\u59CB\u957F\u5EA6 ${content.length} \u5B57\u7B26]`
298
+ );
299
+ }
300
+ function clipToolText(content, maxChars, headRatio, marker = "\n\n[... tool output middle omitted; head/tail preserved ...]\n\n") {
301
+ const normalized = content.replace(/\r\n/g, "\n").trim();
302
+ if (normalized.length <= maxChars) return normalized;
303
+ if (maxChars <= marker.length + 2) return normalized.slice(0, maxChars);
304
+ const available = maxChars - marker.length;
305
+ const headChars = Math.max(1, Math.floor(available * headRatio));
306
+ const tailChars = Math.max(1, available - headChars);
307
+ return `${normalized.slice(0, headChars)}${marker}${normalized.slice(-tailChars)}`;
308
+ }
309
+
310
+ export {
311
+ sanitizeToolOutputText,
312
+ sanitizeToolOutputContent,
313
+ SECRET_PATTERNS,
314
+ hasPotentialSecrets,
315
+ scrubSecrets,
316
+ scrubObjectSecrets,
317
+ PROJECT_INSTRUCTION_MAX_BYTES,
318
+ PROJECT_INSTRUCTION_MAX_CHARS,
319
+ isCompleteInstructionOutput,
320
+ LIST_AGENTS_OUTPUT_BUDGET,
321
+ LIST_AGENTS_PAGE_BUDGET,
322
+ resolveToolOutputProfile,
323
+ resolveHistoricalToolContentCap,
324
+ projectToolMessageContent,
325
+ clipToolText
326
+ };
@@ -379,6 +379,7 @@ var BUILTIN_CHROME_OPERATOR_AGENT_KEY = publicAgentKey(BUILTIN_CHROME_OPERATOR_A
379
379
  var BUILTIN_PLATFORM_AGENT_KEYS = builtinPlatformEntries().map(
380
380
  (e) => publicAgentKey(e.id)
381
381
  );
382
+ var isPublicBuiltinPlatformAgentKey = (key) => BUILTIN_PLATFORM_AGENT_KEYS.includes(key);
382
383
  var BUILTIN_PLATFORM_AGENT_ID_SET = new Set(
383
384
  builtinPlatformEntries().map((e) => e.id)
384
385
  );
@@ -427,7 +428,6 @@ var isSystemBuiltinTrustedAgentKey = (key) => typeof key === "string" && SYSTEM_
427
428
  var isBuiltinPlatformAgentKey = (key) => parseBuiltinPlatformAgentId(key) !== null;
428
429
 
429
430
  export {
430
- BUILTIN_AGENT_CATALOG,
431
431
  builtinAgentCatalogEntryById,
432
432
  catalogReleasedAtMs,
433
433
  builtinRuntimeFallbackEntries,
@@ -435,6 +435,7 @@ export {
435
435
  BUILTIN_NOLO_AGENT_KEY,
436
436
  BUILTIN_NOLO_AGENT_NAME,
437
437
  BUILTIN_NOLO_AGENT_MODEL,
438
+ isPublicBuiltinPlatformAgentKey,
438
439
  parseBuiltinPlatformAgentId,
439
440
  PUBLIC_DEEPSEEK_V4_FLASH_AGENT_ID,
440
441
  PUBLIC_DEEPSEEK_V4_PRO_AGENT_ID,
@@ -2,7 +2,7 @@ import {
2
2
  mergeAvailabilityDeadline,
3
3
  resolveCredentialCandidateKeys,
4
4
  resolveCredentialKeyWithFallback
5
- } from "./chunk-HOCHUZQ7.js";
5
+ } from "./chunk-QJTZ76CP.js";
6
6
 
7
7
  // packages/agent-runtime/credentialAvailability.ts
8
8
  import { homedir } from "node:os";
@@ -148,6 +148,8 @@ export {
148
148
  toolImageNotices,
149
149
  resetToolImageDelivery,
150
150
  toolImageDelivery,
151
+ MAX_TOOL_IMAGES_PER_REQUEST,
152
+ MAX_TOOL_IMAGE_BASE64_BYTES_PER_REQUEST,
151
153
  formatToolImageBudgetNote,
152
154
  createToolImageBudget,
153
155
  toolImageSource,
@@ -0,0 +1,166 @@
1
+ // node_modules/js-base64/base64.mjs
2
+ var version = "3.9.6";
3
+ var VERSION = version;
4
+ var _TD = typeof TextDecoder === "function" ? new TextDecoder("utf-8", { ignoreBOM: true }) : void 0;
5
+ var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
6
+ var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
7
+ var b64chs = Array.prototype.slice.call(b64ch);
8
+ var b64tab = ((a) => {
9
+ let tab = {};
10
+ a.forEach((c, i) => tab[c] = i);
11
+ return tab;
12
+ })(b64chs);
13
+ var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
14
+ var _fromCC = String.fromCharCode.bind(String);
15
+ var _U8Afrom = typeof Uint8Array.from === "function" ? Uint8Array.from.bind(Uint8Array) : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
16
+ var _mkUriSafe = (src) => src.replace(/=/g, "").replace(/[+\/]/g, (m0) => m0 == "+" ? "-" : "_");
17
+ var _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, "");
18
+ var btoaPolyfill = (bin) => {
19
+ let u32, c0, c1, c2, asc = "";
20
+ const pad = bin.length % 3;
21
+ for (let i = 0; i < bin.length; ) {
22
+ if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255)
23
+ throw new TypeError("invalid character found");
24
+ u32 = c0 << 16 | c1 << 8 | c2;
25
+ asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
26
+ }
27
+ return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
28
+ };
29
+ var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : btoaPolyfill;
30
+ var _fromUint8Array = typeof Uint8Array.prototype.toBase64 === "function" ? Function.prototype.call.bind(Uint8Array.prototype.toBase64) : (u8a) => {
31
+ const maxargs = 4096;
32
+ let strs = [];
33
+ for (let i = 0, l = u8a.length; i < l; i += maxargs) {
34
+ strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
35
+ }
36
+ return _btoa(strs.join(""));
37
+ };
38
+ var fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
39
+ var cb_utob = (c) => {
40
+ if (c.length < 2) {
41
+ var cc = c.charCodeAt(0);
42
+ return cc < 128 ? c : cc < 2048 ? _fromCC(192 | cc >>> 6) + _fromCC(128 | cc & 63) : _fromCC(224 | cc >>> 12 & 15) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
43
+ } else {
44
+ var cc = 65536 + (c.charCodeAt(0) - 55296) * 1024 + (c.charCodeAt(1) - 56320);
45
+ return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
46
+ }
47
+ };
48
+ var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g;
49
+ var utob = (u) => u.replace(re_utob, cb_utob);
50
+ var _encode = _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
51
+ var encode = (src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode(src)) : _encode(src);
52
+ var encodeURI = (src) => encode(src, true);
53
+ var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
54
+ var cb_btou = (cccc) => {
55
+ switch (cccc.length) {
56
+ case 4:
57
+ var cp = (7 & cccc.charCodeAt(0)) << 18 | (63 & cccc.charCodeAt(1)) << 12 | (63 & cccc.charCodeAt(2)) << 6 | 63 & cccc.charCodeAt(3), offset = cp - 65536;
58
+ return _fromCC((offset >>> 10) + 55296) + _fromCC((offset & 1023) + 56320);
59
+ case 3:
60
+ return _fromCC((15 & cccc.charCodeAt(0)) << 12 | (63 & cccc.charCodeAt(1)) << 6 | 63 & cccc.charCodeAt(2));
61
+ default:
62
+ return _fromCC((31 & cccc.charCodeAt(0)) << 6 | 63 & cccc.charCodeAt(1));
63
+ }
64
+ };
65
+ var btou = (b) => b.replace(re_btou, cb_btou);
66
+ var atobPolyfill = (asc) => {
67
+ asc = asc.replace(/\s+/g, "");
68
+ if (!b64re.test(asc))
69
+ throw new TypeError("malformed base64.");
70
+ asc += "==".slice(2 - (asc.length & 3));
71
+ let u24, r1, r2;
72
+ let binArray = [];
73
+ for (let i = 0; i < asc.length; ) {
74
+ u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
75
+ if (r1 === 64) {
76
+ binArray.push(_fromCC(u24 >> 16 & 255));
77
+ } else if (r2 === 64) {
78
+ binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
79
+ } else {
80
+ binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
81
+ }
82
+ }
83
+ return binArray.join("");
84
+ };
85
+ var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : atobPolyfill;
86
+ var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
87
+ var toUint8Array = (a) => _toUint8Array(_unURI(a));
88
+ var _decode = _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
89
+ var _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/"));
90
+ var decode = (src) => _decode(_unURI(src));
91
+ var isValid = (src) => {
92
+ if (typeof src !== "string")
93
+ return false;
94
+ const s = src.replace(/\s+/g, "").replace(/={0,2}$/, "");
95
+ if (s.length % 4 === 1)
96
+ return false;
97
+ return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
98
+ };
99
+ var _noEnum = (v) => {
100
+ return {
101
+ value: v,
102
+ enumerable: false,
103
+ writable: true,
104
+ configurable: true
105
+ };
106
+ };
107
+ var extendString = function() {
108
+ const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
109
+ _add("fromBase64", function() {
110
+ return decode(this);
111
+ });
112
+ _add("toBase64", function(urlsafe) {
113
+ return encode(this, urlsafe);
114
+ });
115
+ _add("toBase64URI", function() {
116
+ return encode(this, true);
117
+ });
118
+ _add("toBase64URL", function() {
119
+ return encode(this, true);
120
+ });
121
+ _add("toUint8Array", function() {
122
+ return toUint8Array(this);
123
+ });
124
+ };
125
+ var extendUint8Array = function() {
126
+ const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
127
+ _add("toBase64", function(urlsafe) {
128
+ return fromUint8Array(this, urlsafe);
129
+ });
130
+ _add("toBase64URI", function() {
131
+ return fromUint8Array(this, true);
132
+ });
133
+ _add("toBase64URL", function() {
134
+ return fromUint8Array(this, true);
135
+ });
136
+ };
137
+ var extendBuiltins = () => {
138
+ extendString();
139
+ extendUint8Array();
140
+ };
141
+ var gBase64 = {
142
+ version,
143
+ VERSION,
144
+ atob: _atob,
145
+ atobPolyfill,
146
+ btoa: _btoa,
147
+ btoaPolyfill,
148
+ fromBase64: decode,
149
+ toBase64: encode,
150
+ encode,
151
+ encodeURI,
152
+ encodeURL: encodeURI,
153
+ utob,
154
+ btou,
155
+ decode,
156
+ isValid,
157
+ fromUint8Array,
158
+ toUint8Array,
159
+ extendString,
160
+ extendUint8Array,
161
+ extendBuiltins
162
+ };
163
+
164
+ export {
165
+ gBase64
166
+ };
@@ -204,6 +204,13 @@ function createCliAuthorityBrokerClient(options) {
204
204
  }
205
205
  return result.value;
206
206
  },
207
+ async conditionalPut(key, expectedRevision, value) {
208
+ const result = await invokeBrokerRequest(options, { type: "conditionalPut", key, expectedRevision, value });
209
+ if (!result || result.type !== "conditionalPut" || result.status !== "updated" && result.status !== "conflict" || Object.keys(result).some((key2) => key2 !== "type" && key2 !== "status")) {
210
+ throw new CliAuthorityBrokerProtocolError({ code: "BROKER_PROTOCOL_MISMATCH", message: "Invalid conditionalPut response" });
211
+ }
212
+ return { status: result.status };
213
+ },
207
214
  async put(key, value) {
208
215
  await invokeBrokerRequest(options, { type: "put", key, value });
209
216
  },
@@ -1,21 +1,12 @@
1
1
  import {
2
2
  normalizeMediaConfirmExecutionRevision
3
3
  } from "./chunk-QYPE3TS3.js";
4
- import {
5
- getActiveDialogKey
6
- } from "./chunk-S2NTVGA2.js";
7
4
  import {
8
5
  selectIdentityToken
9
6
  } from "./chunk-PXYBUFDB.js";
10
7
  import {
11
8
  compactWhitespace
12
9
  } from "./chunk-DWLEOOGR.js";
13
- import {
14
- extractCustomId
15
- } from "./chunk-M2EJHDJP.js";
16
- import {
17
- isRecord
18
- } from "./chunk-KUG52IAP.js";
19
10
  import {
20
11
  asTrimmedLowercaseString
21
12
  } from "./chunk-QSJ3HFEF.js";
@@ -41,7 +32,6 @@ var selectCurrentTokenFromState = (state) => {
41
32
  const token = selectIdentityToken(state);
42
33
  return typeof token === "string" ? token : null;
43
34
  };
44
- var selectCurrentDialogKeyFromState = (_state) => getActiveDialogKey();
45
35
  var resolveToolBaseUrl = (currentServer) => {
46
36
  const _window = globalThis.window;
47
37
  if (!_window) return (currentServer || "").replace(/\/+$/, "");
@@ -102,18 +92,6 @@ var getToolRequestContext = (thunkApi) => {
102
92
  baseUrl
103
93
  };
104
94
  };
105
- var maybeAttachDialogId = (thunkApi, body) => {
106
- if (!isRecord(body)) return body;
107
- if ("dialogId" in body) return body;
108
- const state = thunkApi.getState();
109
- const currentDialogKey = selectCurrentDialogKeyFromState(state);
110
- const dialogId = currentDialogKey ? extractCustomId(currentDialogKey) : null;
111
- if (!dialogId) return body;
112
- return {
113
- ...body,
114
- dialogId
115
- };
116
- };
117
95
  var ToolApiError = class extends Error {
118
96
  status;
119
97
  code;
@@ -171,7 +149,7 @@ async function callToolApi(thunkApi, path, body, options = {}) {
171
149
  method,
172
150
  headers,
173
151
  ...options.signal ? { signal: options.signal } : {},
174
- ...method === "GET" ? {} : { body: JSON.stringify(maybeAttachDialogId(thunkApi, body)) }
152
+ ...method === "GET" ? {} : { body: JSON.stringify(body) }
175
153
  });
176
154
  const contentType = response.headers.get("content-type");
177
155
  const responseText = await response.text();
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
14
14
  };
15
15
  }
16
16
  async function getDefaultCliLocalRuntimeDb(options = {}) {
17
- const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-IBJAT62G.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-WCNA4A3G.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20