nolo-cli 0.240.0-alpha.3 → 0.241.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/{_executeModel-5NA4USGG.js → _executeModel-UCWDB72C.js} +50 -50
  2. package/{action-X75O3XPH.js → action-24MZYW2B.js} +6 -6
  3. package/{addContentAction-GVC77QSN.js → addContentAction-HEMCSSHT.js} +9 -9
  4. package/{addDialogAgentAction-KKDVAMW3.js → addDialogAgentAction-SQYDOXHA.js} +8 -8
  5. package/{agentDeleteCommand-2RFGKFAB.js → agentDeleteCommand-P7O3ACNJ.js} +76 -77
  6. package/{agentEmailCommands-GQCQKKOR.js → agentEmailCommands-A5BRSYWK.js} +80 -81
  7. package/{agentListCommands-HSGLDPDQ.js → agentListCommands-LDRCOOMO.js} +37 -36
  8. package/{agentMachineCommands-BISF6PVV.js → agentMachineCommands-AYL53KJV.js} +31 -30
  9. package/{agentProviderCommands-O3Q25PKU.js → agentProviderCommands-N5EA3ED2.js} +2 -2
  10. package/{agentPullCommand-G6U2LHMW.js → agentPullCommand-QQQZSC6S.js} +1 -1
  11. package/{agentRecordCommands-AOXPGYAJ.js → agentRecordCommands-FICBZ57C.js} +75 -76
  12. package/{agentRunCommand-AFAIP7U7.js → agentRunCommand-CTXQGDUM.js} +81 -80
  13. package/{agentRunControl-VBL7UFSG.js → agentRunControl-CO6BASZF.js} +7 -7
  14. package/{agentRuntimeLocal-T7BX2WGL.js → agentRuntimeLocal-5YN4D5WT.js} +26 -25
  15. package/{agentSlice-XJNKE3PG.js → agentSlice-DJ5D4DU4.js} +9 -9
  16. package/{appDeleteCommands-LURUSPY7.js → appDeleteCommands-B4E7N7M2.js} +32 -31
  17. package/{appDeployCommands-SMEW4AK2.js → appDeployCommands-E4DTXRRM.js} +32 -31
  18. package/{appDeployStatusCommands-VYPJTBJK.js → appDeployStatusCommands-FCNHYHZM.js} +32 -31
  19. package/{appGetCommands-N4NI5GGJ.js → appGetCommands-4DXSQHUZ.js} +32 -31
  20. package/{appListCommands-5C6ONN3Z.js → appListCommands-2NN5E4F6.js} +32 -31
  21. package/{authCommand-4CVBDADE.js → authCommand-47DR6GZT.js} +22 -18
  22. package/{authCommands-EHU2BHOX.js → authCommands-ZZ3L5IFM.js} +10 -6
  23. package/builtinSkillRegistry-AYWYQVA4.js +1 -1
  24. package/{chromeOpsCommands-CSDG2HYN.js → chromeOpsCommands-VZWAY2KR.js} +1 -1
  25. package/{chunk-UFC4J7OY.js → chunk-24GVXSWK.js} +3 -3
  26. package/{chunk-4IQVE43Z.js → chunk-25OCZXSX.js} +15 -15
  27. package/{chunk-4X5AVCM7.js → chunk-2BSLGODA.js} +258 -23
  28. package/{chunk-U3G7RRXJ.js → chunk-2XMKW2OY.js} +4 -4
  29. package/{chunk-MYOSN6BT.js → chunk-3NFWMSTA.js} +31 -10
  30. package/{chunk-A74QP4FI.js → chunk-3V6JT6WN.js} +343 -136
  31. package/{chunk-2X7WFDT6.js → chunk-4FE3IWRE.js} +1 -1
  32. package/{chunk-XS5A3EKX.js → chunk-4YFC3DWW.js} +75 -1
  33. package/chunk-53W5BXLN.js +340 -0
  34. package/{chunk-H7ZYKHAZ.js → chunk-5TJE4QCL.js} +102 -31
  35. package/{chunk-FZKA3XFA.js → chunk-6BGJHJRN.js} +9 -9
  36. package/{chunk-6WOLPIPY.js → chunk-6RSNVJGO.js} +2 -102
  37. package/{chunk-L32W3PRP.js → chunk-6X3CS6NJ.js} +161 -12
  38. package/{chunk-3FBAVU2Y.js → chunk-6XBOPKUH.js} +11 -76
  39. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  40. package/{chunk-7TTMMOKH.js → chunk-7OTNBI77.js} +1 -1
  41. package/{chunk-BGGV6B5O.js → chunk-7Q7MKJZN.js} +83 -50
  42. package/{chunk-2574ANSV.js → chunk-7U2TFUWW.js} +1 -1
  43. package/{chunk-A3LUWRQK.js → chunk-B72AFRR2.js} +4 -4
  44. package/{chunk-P3IZUMIC.js → chunk-BDERPCJW.js} +4 -4
  45. package/{chunk-MYPKBJJO.js → chunk-BIJTI5SX.js} +2 -2
  46. package/{chunk-ZEKUFJLW.js → chunk-BWW6WRX6.js} +3 -3
  47. package/chunk-C5A54QS7.js +108 -0
  48. package/{chunk-IUTUWIKE.js → chunk-C646JEUV.js} +1 -1
  49. package/{chunk-FFYE5ATM.js → chunk-CT6GT2BG.js} +7 -7
  50. package/{chunk-T6VROBY7.js → chunk-CZLSTOVM.js} +2 -2
  51. package/{chunk-SRCCSTIM.js → chunk-DGUUOHBF.js} +2 -2
  52. package/{chunk-A5EVA6HU.js → chunk-DIBQXNGW.js} +2 -2
  53. package/{chunk-AVJDELEA.js → chunk-DLT2DN4M.js} +1 -1
  54. package/{chunk-IJTXNLQE.js → chunk-DLTMAXLF.js} +6 -6
  55. package/{chunk-5QZSEQSK.js → chunk-DWWUVRB5.js} +1 -1
  56. package/{chunk-TRHJ4NJB.js → chunk-EIFSCI4C.js} +381 -155
  57. package/{chunk-DXW5WDHZ.js → chunk-EW37CXCQ.js} +3 -3
  58. package/{chunk-GXXY2NL3.js → chunk-F3FQPVHE.js} +37 -2
  59. package/{chunk-7AJRJGSQ.js → chunk-FCAMGBLY.js} +378 -146
  60. package/{chunk-YGCOJNFZ.js → chunk-FPMPWNVQ.js} +3 -3
  61. package/{chunk-MECDGHLK.js → chunk-FSIEHQNH.js} +2 -2
  62. package/{chunk-B7DE5XJW.js → chunk-FXX6VFMV.js} +208 -25
  63. package/{chunk-Z2WZAE4P.js → chunk-G6OPRPXH.js} +11 -11
  64. package/{chunk-VSRISJXZ.js → chunk-GAHJLSDO.js} +1 -1
  65. package/{chunk-PGKA77TZ.js → chunk-GCVFX6ZL.js} +169 -106
  66. package/{chunk-E5KJOZWY.js → chunk-H6CHPU6M.js} +3 -3
  67. package/{chunk-RETQOQ4D.js → chunk-HNWZJI4N.js} +1 -1
  68. package/{chunk-BGGAY6OK.js → chunk-IPRPYKBP.js} +3 -3
  69. package/{chunk-G22P367E.js → chunk-IUXBKS5L.js} +57 -13
  70. package/{chunk-PRMEU7BT.js → chunk-KGIIZXPL.js} +4 -4
  71. package/chunk-KK3FCYZM.js +647 -0
  72. package/{chunk-4Q6HQORG.js → chunk-KOIDLCAQ.js} +1 -1
  73. package/{chunk-PROOOQZ3.js → chunk-LCQJH7KN.js} +1 -1
  74. package/{chunk-Y2MF4DCJ.js → chunk-LELADM5Q.js} +1 -1
  75. package/{chunk-RTHFJZ6M.js → chunk-LMFMV5UC.js} +2 -2
  76. package/{chunk-ANJRDS6U.js → chunk-LMZRXDWG.js} +3 -3
  77. package/{chunk-6CKUO32A.js → chunk-LN4ZVSO7.js} +6 -3
  78. package/{chunk-N2JROHD3.js → chunk-LT3DMEIB.js} +3 -3
  79. package/{chunk-F6YWDVIB.js → chunk-MDVP5TLI.js} +1 -1
  80. package/chunk-MVOZ22RZ.js +26 -0
  81. package/{chunk-CBUZ6DKA.js → chunk-N6EN3HK3.js} +1 -1
  82. package/{chunk-3EMIEC27.js → chunk-NBB2EBQD.js} +1 -1
  83. package/{chunk-TWTJV35S.js → chunk-NL7J2J5Z.js} +3 -3
  84. package/{chunk-EEOOBRA7.js → chunk-NQQL2DKF.js} +2 -2
  85. package/{chunk-AEQMKYZN.js → chunk-NWWQY2J5.js} +4 -4
  86. package/{chunk-AH5R7BYW.js → chunk-OATIWAKN.js} +5 -5
  87. package/{chunk-CD3RU7XL.js → chunk-OJRTTERA.js} +62 -2
  88. package/{chunk-HOM6LTEW.js → chunk-OYHJ4TW7.js} +6 -6
  89. package/{chunk-BXSMFPTG.js → chunk-QES2NCVM.js} +3 -3
  90. package/{chunk-Y5OWZQMJ.js → chunk-QGMIUVBT.js} +5 -5
  91. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  92. package/chunk-SR4FE5VD.js +9 -0
  93. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  94. package/{chunk-CKZPMJNU.js → chunk-T444ENEC.js} +3 -3
  95. package/{chunk-TEMLHVGX.js → chunk-TE2XH4KH.js} +1 -1
  96. package/{chunk-4FIO2S7Z.js → chunk-TFGGNRT6.js} +1 -1
  97. package/{chunk-HCNOO374.js → chunk-TTEBPPUV.js} +1 -1
  98. package/{chunk-RM4UMFY4.js → chunk-TXFYIWAW.js} +7 -7
  99. package/{chunk-6WZVM33D.js → chunk-TXQVH72L.js} +2 -2
  100. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  101. package/{chunk-OX6GNNVT.js → chunk-U5LOKQ2R.js} +24 -13
  102. package/{chunk-VM72HKW2.js → chunk-UAHUJ4HH.js} +11 -11
  103. package/{chunk-BIABIPGW.js → chunk-UAOFSUG7.js} +1 -1
  104. package/{chunk-D374I563.js → chunk-UKSKCDBG.js} +1 -1
  105. package/{chunk-IUMS6F53.js → chunk-WHO3LYDW.js} +9 -5
  106. package/{chunk-F3XI6WQP.js → chunk-X37RQEA3.js} +2 -2
  107. package/{chunk-B5SV4H3J.js → chunk-XAFOLWLU.js} +1 -1
  108. package/{chunk-HBRDSQ3M.js → chunk-XNEDFWT4.js} +2 -2
  109. package/{chunk-VREG6ANQ.js → chunk-Y5RN44VH.js} +8 -8
  110. package/{chunk-S2MHR4PU.js → chunk-YFRJAE3R.js} +178 -114
  111. package/{chunk-GDUC4VS2.js → chunk-YMCSR7PA.js} +7 -7
  112. package/{chunk-5ZUOVCKT.js → chunk-YUZ2DAIH.js} +3 -1
  113. package/{chunk-CVJRVBJL.js → chunk-ZBQ5UGYY.js} +3 -3
  114. package/{chunk-O6IPRAVV.js → chunk-ZQUCJBS4.js} +2 -2
  115. package/{chunk-KZPEGO6D.js → chunk-ZT3DYK5T.js} +3 -3
  116. package/{chunk-DNZ4JJ7C.js → chunk-ZTLTDUV6.js} +16 -3
  117. package/{cliAgentConfigHelpers-U5OAVAKQ.js → cliAgentConfigHelpers-RFR7ZCSK.js} +6 -6
  118. package/{cliAuthorityBrokerClient-S42VMGB6.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  119. package/{cliLocalAgentRecordReader-HVZAQCUD.js → cliLocalAgentRecordReader-AJ4UKHKT.js} +30 -29
  120. package/{commandRegistry-TME7INFU.js → commandRegistry-IHWZVV4G.js} +86 -86
  121. package/{contentThunks-U6OC4R2N.js → contentThunks-YQRCBDKF.js} +22 -21
  122. package/{cooldownCommands-U7XSRVJP.js → cooldownCommands-W67DE765.js} +1 -1
  123. package/{createAgentAutomationAction-IP4LFN3W.js → createAgentAutomationAction-ERSDNR4R.js} +22 -21
  124. package/{createDialogAction-IAGQJ3LH.js → createDialogAction-QXC7JZPE.js} +23 -22
  125. package/{createPageAction-AZ3UIFKA.js → createPageAction-RLZ7776F.js} +24 -23
  126. package/{db-M7FU2GNK.js → db-6NRZLEW2.js} +1 -1
  127. package/{dbSlice-DKKMJJYY.js → dbSlice-7M2ESEUO.js} +8 -8
  128. package/{deleteFile-TQSONMVU.js → deleteFile-WO6WSSNK.js} +5 -5
  129. package/{dialogCommands-PCDRMBWG.js → dialogCommands-UIRO4QNN.js} +37 -36
  130. package/{dialogNotifyCommand-O35MWMOS.js → dialogNotifyCommand-VDUFYBZV.js} +8 -8
  131. package/{dialogSlice-QAKYN4DE.js → dialogSlice-A4U3C76D.js} +20 -19
  132. package/{dialogUsageCommand-2SSLTXKO.js → dialogUsageCommand-SEC6UZWM.js} +2 -2
  133. package/{docCreateCommands-CFQFZOAD.js → docCreateCommands-MHPYTJWR.js} +31 -30
  134. package/{docDeleteCommands-5CPNTIIS.js → docDeleteCommands-VYULMBAQ.js} +32 -31
  135. package/{docReadCommands-XQILYSAJ.js → docReadCommands-FV3GGZ7V.js} +31 -30
  136. package/{docStore-GIVRT7TQ.js → docStore-AWWI72FA.js} +9 -9
  137. package/{docUpdateCommands-VETKSUDD.js → docUpdateCommands-JNS3HX7F.js} +31 -30
  138. package/fetchMessages-TQEUZD7H.js +1 -1
  139. package/{getPricing-LF5C4XSI.js → getPricing-U5AR7ZHS.js} +3 -3
  140. package/{handleSendMessageAction-HKIW4ZNO.js → handleSendMessageAction-WDJOUDNV.js} +41 -40
  141. package/{hostCredentialCreate-6VDJFNDO.js → hostCredentialCreate-H3FF2SAO.js} +75 -76
  142. package/index.js +8 -8
  143. package/keys-RWF7UCB4.js +1 -1
  144. package/{localDialogRead-AV2VKKPG.js → localDialogRead-3T2KMCRC.js} +1 -1
  145. package/{localRuntimeAdapter-BQ4F5PZV.js → localRuntimeAdapter-JAQQXZJP.js} +74 -73
  146. package/{localRuntimeAuthority-WCNA4A3G.js → localRuntimeAuthority-7DKIT7UH.js} +2 -2
  147. package/{localRuntimeDb-CRNIBOOM.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  148. package/{machineCommands-K6XIGOAD.js → machineCommands-WYOFNB5I.js} +73 -74
  149. package/{machineWsRunDispatch-4OO7Z6UM.js → machineWsRunDispatch-Y7UIAZNM.js} +73 -74
  150. package/markdownToSlate-KIYM7B3P.js +8 -0
  151. package/{mcpLocalAuthorizeCommand-ZP6ESAGE.js → mcpLocalAuthorizeCommand-SCYEFLRK.js} +9 -9
  152. package/{memberThunks-PBJPZ2JU.js → memberThunks-DIITWU4M.js} +10 -10
  153. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  154. package/package.json +1 -1
  155. package/{projectArchive-G7AOQPRW.js → projectArchive-IZJXBW5N.js} +26 -25
  156. package/{providerPresetApply-OPBCAONX.js → providerPresetApply-2QWXPJXZ.js} +5 -5
  157. package/{providerRegistry-J2HCVTHE.js → providerRegistry-W4LCKK6V.js} +5 -5
  158. package/{read-JEGPITEW.js → read-OBLJNMA2.js} +5 -5
  159. package/{readDocTool-TE3XIU4Y.js → readDocTool-QQZ4DAER.js} +1 -1
  160. package/{readlineWorkspace-SOW5QUGZ.js → readlineWorkspace-WF3SWZGR.js} +2914 -1240
  161. package/rememberExplicit-CPAPONSI.js +15 -0
  162. package/{removeDialogAgentAction-CX3OAH4Y.js → removeDialogAgentAction-HC3SOY3G.js} +10 -10
  163. package/{runAgentClientLoop-HQJPDFGQ.js → runAgentClientLoop-Z7V6TA3O.js} +48 -48
  164. package/{runtimeDoctorCommands-GUH2YGMH.js → runtimeDoctorCommands-KX6YLPWV.js} +8 -8
  165. package/{secretCommands-NJXFVHZU.js → secretCommands-STRAX275.js} +2 -2
  166. package/{setDialogExtraReferencesAction-CGM67EEQ.js → setDialogExtraReferencesAction-DDZUQPY6.js} +9 -9
  167. package/{setPrimaryDialogAgentAction-3ABWPPXR.js → setPrimaryDialogAgentAction-EB67OMAJ.js} +10 -10
  168. package/{settingThunks-AY76OHYX.js → settingThunks-TN6GFASU.js} +8 -8
  169. package/{spaceCommands-G63QGYQO.js → spaceCommands-HBYQUVJI.js} +30 -29
  170. package/{streamAgentChatTurn-E3XH2KFD.js → streamAgentChatTurn-CM7QQXOS.js} +78 -78
  171. package/{switchDialogAgentAction-G6EZRKCQ.js → switchDialogAgentAction-XY5TKQQE.js} +8 -8
  172. package/{tableCommands-JI75ZHDI.js → tableCommands-MXFL3JIT.js} +2 -2
  173. package/{toolApiClient-62UUPDUA.js → toolApiClient-53YMJ2G6.js} +7 -3
  174. package/{tools-7RSX22FT.js → tools-AT6H73LD.js} +39 -40
  175. package/{tuiRestart-KAAA7TND.js → tuiRestart-272SAYSK.js} +8 -8
  176. package/{tuiSummaryLlmCaller-BVNHMWLR.js → tuiSummaryLlmCaller-K2OVRVHG.js} +13 -12
  177. package/{updateCommands-ASK5XYPH.js → updateCommands-O3BOVVVN.js} +3 -3
  178. package/{updateDialogTitleAction-SEWV252V.js → updateDialogTitleAction-PGY4UPLH.js} +22 -21
  179. package/{usageCommand-JVT5J3DC.js → usageCommand-SCF3ROV2.js} +3 -3
  180. package/{usageRebuildCommand-IZYYUTEW.js → usageRebuildCommand-K5WPIBA5.js} +4 -4
  181. package/{windowsSelfUpdate-BSDIS2J5.js → windowsSelfUpdate-WJDUZLEO.js} +2 -2
  182. package/{workContext-MM3P5GP5.js → workContext-Y3ADAPZU.js} +2 -1
  183. package/chunk-XBAEM4RI.js +0 -272
  184. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  185. package/{chunk-ULLHVDTZ.js → chunk-C3GOEQJF.js} +3 -3
  186. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  187. package/{workloadLifecycle-YIZ7KLUP.js → workloadLifecycle-HFJIN5IZ.js} +5 -5
@@ -8,57 +8,61 @@ import {
8
8
  runAuthProviderCommand,
9
9
  runAuthXaiCommand,
10
10
  syncCredentialToServer
11
- } from "./chunk-GDUC4VS2.js";
12
- import "./chunk-HCNOO374.js";
11
+ } from "./chunk-YMCSR7PA.js";
12
+ import "./chunk-OATIWAKN.js";
13
+ import "./chunk-TTEBPPUV.js";
14
+ import "./chunk-GAHJLSDO.js";
13
15
  import {
14
16
  resolveServerSyncConfig
15
- } from "./chunk-MYOSN6BT.js";
16
- import "./chunk-AH5R7BYW.js";
17
- import "./chunk-VSRISJXZ.js";
17
+ } from "./chunk-3NFWMSTA.js";
18
18
  import "./chunk-4D4QD7FT.js";
19
19
  import "./chunk-PVFYPUIM.js";
20
- import "./chunk-6WOLPIPY.js";
20
+ import "./chunk-53W5BXLN.js";
21
+ import "./chunk-C5A54QS7.js";
22
+ import "./chunk-6RSNVJGO.js";
23
+ import "./chunk-324FWHUA.js";
21
24
  import "./chunk-S73EPYNC.js";
22
25
  import "./chunk-ZEZC7IIM.js";
23
- import "./chunk-324FWHUA.js";
26
+ import "./chunk-MVOZ22RZ.js";
24
27
  import "./chunk-BMQ2MJUK.js";
25
28
  import "./chunk-LKZPX6YH.js";
26
29
  import "./chunk-X7IA2B7R.js";
27
- import "./chunk-Y2MF4DCJ.js";
30
+ import "./chunk-LELADM5Q.js";
28
31
  import "./chunk-GLKOYSRU.js";
29
- import "./chunk-H7ZYKHAZ.js";
32
+ import "./chunk-5TJE4QCL.js";
30
33
  import "./chunk-HNUWUO75.js";
31
- import "./chunk-BGGAY6OK.js";
32
34
  import "./chunk-X4O7FJF5.js";
33
- import "./chunk-TWTJV35S.js";
35
+ import "./chunk-IPRPYKBP.js";
36
+ import "./chunk-NL7J2J5Z.js";
34
37
  import "./chunk-5ZUL4CUO.js";
35
38
  import "./chunk-UKZX3NHN.js";
39
+ import "./chunk-SR4FE5VD.js";
36
40
  import "./chunk-OW765XBU.js";
37
41
  import "./chunk-G7Y4GXTY.js";
38
42
  import "./chunk-6UBGXX2W.js";
39
43
  import "./chunk-SYTHYBMI.js";
40
44
  import "./chunk-OJKUU3LP.js";
41
- import "./chunk-YZMNK53S.js";
42
45
  import "./chunk-I42VC5KR.js";
46
+ import "./chunk-YZMNK53S.js";
43
47
  import "./chunk-U6VC4MU4.js";
44
48
  import "./chunk-BIDSIRTS.js";
45
49
  import "./chunk-OLZBQWZU.js";
46
50
  import "./chunk-LCBAMY2M.js";
47
51
  import "./chunk-R5GO3YZP.js";
48
- import "./chunk-S2MHR4PU.js";
49
- import "./chunk-6CKUO32A.js";
50
- import "./chunk-RTHFJZ6M.js";
51
- import "./chunk-HBRDSQ3M.js";
52
+ import "./chunk-YFRJAE3R.js";
53
+ import "./chunk-LN4ZVSO7.js";
54
+ import "./chunk-LMFMV5UC.js";
55
+ import "./chunk-XNEDFWT4.js";
52
56
  import "./chunk-HNMXYYJR.js";
53
57
  import "./chunk-3EUW3WEO.js";
54
- import "./chunk-CD3RU7XL.js";
58
+ import "./chunk-OJRTTERA.js";
55
59
  import "./chunk-JRTNUU5Z.js";
56
60
  import "./chunk-KUG52IAP.js";
57
61
  import "./chunk-WWC7I6TA.js";
58
62
  import "./chunk-G3SUCT4W.js";
59
63
  import "./chunk-4SN6J65J.js";
60
64
  import "./chunk-CF7PE763.js";
61
- import "./chunk-OBSEKCVK.js";
65
+ import "./chunk-U4VSBDO5.js";
62
66
  import "./chunk-QSJ3HFEF.js";
63
67
  import "./chunk-U67V476Y.js";
64
68
  export {
@@ -7,22 +7,26 @@ import {
7
7
  runLogoutCommand,
8
8
  runWhoamiCommand,
9
9
  saveTokenLogin
10
- } from "./chunk-AH5R7BYW.js";
11
- import "./chunk-VSRISJXZ.js";
10
+ } from "./chunk-OATIWAKN.js";
11
+ import "./chunk-GAHJLSDO.js";
12
12
  import "./chunk-4D4QD7FT.js";
13
13
  import "./chunk-PVFYPUIM.js";
14
- import "./chunk-6WOLPIPY.js";
14
+ import "./chunk-53W5BXLN.js";
15
+ import "./chunk-C5A54QS7.js";
16
+ import "./chunk-6RSNVJGO.js";
17
+ import "./chunk-324FWHUA.js";
15
18
  import "./chunk-S73EPYNC.js";
16
19
  import "./chunk-ZEZC7IIM.js";
17
- import "./chunk-324FWHUA.js";
20
+ import "./chunk-MVOZ22RZ.js";
18
21
  import "./chunk-X7IA2B7R.js";
19
- import "./chunk-Y2MF4DCJ.js";
22
+ import "./chunk-LELADM5Q.js";
20
23
  import "./chunk-GLKOYSRU.js";
24
+ import "./chunk-SR4FE5VD.js";
21
25
  import "./chunk-OW765XBU.js";
22
26
  import "./chunk-SYTHYBMI.js";
23
27
  import "./chunk-OJKUU3LP.js";
24
- import "./chunk-YZMNK53S.js";
25
28
  import "./chunk-I42VC5KR.js";
29
+ import "./chunk-YZMNK53S.js";
26
30
  import "./chunk-U6VC4MU4.js";
27
31
  import "./chunk-BIDSIRTS.js";
28
32
  import "./chunk-OLZBQWZU.js";
@@ -15,8 +15,8 @@ import "./chunk-WRKMXMU7.js";
15
15
  import "./chunk-M2EJHDJP.js";
16
16
  import "./chunk-SYTHYBMI.js";
17
17
  import "./chunk-OJKUU3LP.js";
18
- import "./chunk-YZMNK53S.js";
19
18
  import "./chunk-I42VC5KR.js";
19
+ import "./chunk-YZMNK53S.js";
20
20
  import "./chunk-U6VC4MU4.js";
21
21
  import "./chunk-KHCLMKZZ.js";
22
22
  import "./chunk-3EUW3WEO.js";
@@ -13,7 +13,7 @@ import "./chunk-OLZBQWZU.js";
13
13
  import "./chunk-LCBAMY2M.js";
14
14
  import {
15
15
  t
16
- } from "./chunk-S2MHR4PU.js";
16
+ } from "./chunk-YFRJAE3R.js";
17
17
  import {
18
18
  toErrorMessage
19
19
  } from "./chunk-HNMXYYJR.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-YNIYE47Z.js";
37
37
  import {
38
38
  getDefaultCliLocalRuntimeDb
39
- } from "./chunk-Y2MF4DCJ.js";
39
+ } from "./chunk-LELADM5Q.js";
40
40
  import {
41
41
  createTokenStatsKey
42
42
  } from "./chunk-SYTHYBMI.js";
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
11658
11658
  const output = deps.output ?? process.stdout;
11659
11659
  const errorOutput = deps.errorOutput ?? process.stderr;
11660
11660
  if (args[0] === "rebuild") {
11661
- const { runUsageRebuildCommand } = await import("./usageRebuildCommand-IZYYUTEW.js");
11661
+ const { runUsageRebuildCommand } = await import("./usageRebuildCommand-K5WPIBA5.js");
11662
11662
  return runUsageRebuildCommand(args.slice(1), deps);
11663
11663
  }
11664
11664
  if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
@@ -11729,7 +11729,7 @@ async function runUsageCommand(args, deps) {
11729
11729
  return 0;
11730
11730
  }
11731
11731
  async function resolveUsageUserId(env) {
11732
- const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-U5OAVAKQ.js");
11732
+ const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-RFR7ZCSK.js");
11733
11733
  return resolveLocalUserId(env);
11734
11734
  }
11735
11735
  function isLocalDbMissingError(error) {
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-CVJRVBJL.js";
8
+ } from "./chunk-ZBQ5UGYY.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-3FBAVU2Y.js";
17
+ } from "./chunk-6XBOPKUH.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-BGGV6B5O.js";
21
+ } from "./chunk-7Q7MKJZN.js";
22
22
  import {
23
23
  createSSEParser,
24
24
  createToolRunId,
@@ -27,10 +27,10 @@ import {
27
27
  toolRunSetPending,
28
28
  toolRunStarted,
29
29
  toolRunSucceeded
30
- } from "./chunk-VREG6ANQ.js";
30
+ } from "./chunk-Y5RN44VH.js";
31
31
  import {
32
32
  getCurrentSpaceId
33
- } from "./chunk-IUTUWIKE.js";
33
+ } from "./chunk-C646JEUV.js";
34
34
  import {
35
35
  addToolMessage,
36
36
  messageStreamEnd,
@@ -38,10 +38,10 @@ import {
38
38
  toast,
39
39
  toolResultNeedsUserConfirmation,
40
40
  updateToolMessage
41
- } from "./chunk-B7DE5XJW.js";
41
+ } from "./chunk-FXX6VFMV.js";
42
42
  import {
43
43
  streamAgentChatTurn
44
- } from "./chunk-IJTXNLQE.js";
44
+ } from "./chunk-DLTMAXLF.js";
45
45
  import {
46
46
  addActiveController,
47
47
  getActiveDialogKey,
@@ -53,13 +53,13 @@ import {
53
53
  } from "./chunk-RD3QLZQV.js";
54
54
  import {
55
55
  selectCurrentServer
56
- } from "./chunk-O6IPRAVV.js";
56
+ } from "./chunk-ZQUCJBS4.js";
57
57
  import {
58
58
  write
59
- } from "./chunk-RM4UMFY4.js";
59
+ } from "./chunk-TXFYIWAW.js";
60
60
  import {
61
61
  createAsyncThunk
62
- } from "./chunk-7TTMMOKH.js";
62
+ } from "./chunk-7OTNBI77.js";
63
63
  import {
64
64
  selectIdentityToken
65
65
  } from "./chunk-PXYBUFDB.js";
@@ -70,7 +70,7 @@ import {
70
70
  projectUserPartForModel,
71
71
  resolveOutboundDiagnosticSink,
72
72
  resolveOutboundWire
73
- } from "./chunk-5QZSEQSK.js";
73
+ } from "./chunk-DWWUVRB5.js";
74
74
  import {
75
75
  accumulateToolCallDelta,
76
76
  createThinkParserState,
@@ -82,7 +82,7 @@ import {
82
82
  } from "./chunk-56GBUMO5.js";
83
83
  import {
84
84
  normalizeChatCompletionsBodyForProvider
85
- } from "./chunk-EEOOBRA7.js";
85
+ } from "./chunk-NQQL2DKF.js";
86
86
  import {
87
87
  classifyApiError,
88
88
  classifyGenerationError,
@@ -96,10 +96,10 @@ import {
96
96
  } from "./chunk-WFGNWWJI.js";
97
97
  import {
98
98
  EMPTY_ASSISTANT_REPAIR_PROMPT
99
- } from "./chunk-DNZ4JJ7C.js";
99
+ } from "./chunk-ZTLTDUV6.js";
100
100
  import {
101
101
  getModelInfo
102
- } from "./chunk-L32W3PRP.js";
102
+ } from "./chunk-6X3CS6NJ.js";
103
103
  import {
104
104
  isAbortError
105
105
  } from "./chunk-7DPNBQSV.js";
@@ -124,7 +124,7 @@ import {
124
124
  } from "./chunk-3EUW3WEO.js";
125
125
  import {
126
126
  getApiEndpoint
127
- } from "./chunk-CD3RU7XL.js";
127
+ } from "./chunk-OJRTTERA.js";
128
128
  import {
129
129
  isRecord
130
130
  } from "./chunk-KUG52IAP.js";
@@ -7,8 +7,9 @@ import {
7
7
  import {
8
8
  createCliAuthorityBrokerClient,
9
9
  createCliAuthorityBrokerSocketInvoker,
10
+ isCliAuthorityBrokerTimeoutError,
10
11
  isCliAuthorityBrokerUnavailableError
11
- } from "./chunk-XBAEM4RI.js";
12
+ } from "./chunk-KK3FCYZM.js";
12
13
  import {
13
14
  resolveCliAuthorityBrokerEndpoint,
14
15
  resolveCliAuthorityBrokerHealthPath,
@@ -208,6 +209,7 @@ function acquireLevelDbOwnershipLock(dbPath) {
208
209
  var brokerRegistry = /* @__PURE__ */ new Map();
209
210
  var databaseOwners = /* @__PURE__ */ new Map();
210
211
  var DEFAULT_ITERATOR_LIMIT = 200;
212
+ var MAX_BROKER_FRAME_CHARS = 64 * 1024 * 1024;
211
213
  function resolveBrokerListenTarget(endpoint) {
212
214
  if (endpoint.startsWith("unix://")) {
213
215
  return { kind: "unix", path: endpoint.slice("unix://".length) };
@@ -250,18 +252,47 @@ function removeFileIfPresent(filePath) {
250
252
  }
251
253
  }
252
254
  async function buildIteratorPage(store, request) {
253
- const rows = [];
254
- for await (const entry of store.iterator(request.options ?? {})) {
255
- rows.push(entry);
255
+ const base = request.options ?? {};
256
+ const reverse = base.reverse === true;
257
+ const cursor = typeof request.cursor === "string" && request.cursor.length > 0 ? request.cursor : void 0;
258
+ const iterOptions = { ...base };
259
+ if (cursor) {
260
+ if (reverse) {
261
+ if (iterOptions.lte !== void 0 && iterOptions.lte < cursor) {
262
+ } else {
263
+ delete iterOptions.lte;
264
+ iterOptions.lt = iterOptions.lt !== void 0 && iterOptions.lt < cursor ? iterOptions.lt : cursor;
265
+ }
266
+ } else {
267
+ if (iterOptions.gte !== void 0 && iterOptions.gte > cursor) {
268
+ } else {
269
+ delete iterOptions.gte;
270
+ iterOptions.gt = iterOptions.gt !== void 0 && iterOptions.gt > cursor ? iterOptions.gt : cursor;
271
+ }
272
+ }
273
+ }
274
+ const limit = Math.max(0, Math.floor(request.limit ?? DEFAULT_ITERATOR_LIMIT));
275
+ const entries = [];
276
+ let hasMore = false;
277
+ for await (const entry of store.iterator(iterOptions)) {
278
+ const [key] = entry;
279
+ if (cursor && (reverse ? key >= cursor : key <= cursor)) {
280
+ continue;
281
+ }
282
+ if (base.gt !== void 0 && key <= base.gt) {
283
+ continue;
284
+ }
285
+ if (entries.length >= limit) {
286
+ hasMore = true;
287
+ break;
288
+ }
289
+ entries.push(entry);
256
290
  }
257
- const startIndex = request.cursor ? rows.findIndex(([key]) => key === request.cursor) + 1 : 0;
258
- const limit = request.limit ?? DEFAULT_ITERATOR_LIMIT;
259
- const entries = rows.slice(startIndex, startIndex + limit);
260
291
  const lastEntry = entries.at(-1) ?? null;
261
292
  return {
262
293
  entries,
263
294
  nextCursor: lastEntry ? lastEntry[0] : null,
264
- done: startIndex + entries.length >= rows.length
295
+ done: !hasMore
265
296
  };
266
297
  }
267
298
  function createErrorResponse(error) {
@@ -300,7 +331,7 @@ function validConditionalPut(request) {
300
331
  function dispatchCliAuthorityBrokerRequest(store, request) {
301
332
  const state = ownerQueue(store);
302
333
  if (state.closed) return Promise.resolve({ ok: false, error: { code: "BROKER_CLOSING", message: "Authority broker is closing" } });
303
- const isRead = request?.type === "get" || request?.type === "status" || request?.type === "iterator" || request?.type === "close";
334
+ const isRead = request?.type === "get" || request?.type === "batchGet" || request?.type === "status" || request?.type === "iterator" || request?.type === "close";
304
335
  const execute = () => executeCliAuthorityBrokerRequest(store, request);
305
336
  const result = isRead ? Promise.resolve().then(execute) : state.tail.then(execute);
306
337
  if (!isRead) state.tail = result.catch(() => void 0);
@@ -339,6 +370,25 @@ async function executeCliAuthorityBrokerRequest(store, request) {
339
370
  return { ok: true, result: { type: "close" } };
340
371
  case "get":
341
372
  return { ok: true, result: { type: "get", value: await store.get(request.key) } };
373
+ case "batchGet": {
374
+ if (!Array.isArray(request.keys) || !request.keys.every((key) => typeof key === "string")) {
375
+ return { ok: false, error: { code: "BROKER_INVALID_REQUEST", message: "Invalid batchGet request" } };
376
+ }
377
+ const items = await Promise.all(
378
+ request.keys.map(async (key) => {
379
+ try {
380
+ return { ok: true, value: await store.get(key) };
381
+ } catch (error) {
382
+ const errRes = createErrorResponse(error);
383
+ return {
384
+ ok: false,
385
+ error: errRes.ok ? { code: "BROKER_INTERNAL_ERROR", message: "Unknown error" } : errRes.error
386
+ };
387
+ }
388
+ })
389
+ );
390
+ return { ok: true, result: { type: "batchGet", items } };
391
+ }
342
392
  case "put":
343
393
  await store.put(request.key, request.value);
344
394
  return { ok: true, result: { type: "put" } };
@@ -428,7 +478,7 @@ async function createBrokerHandle(options) {
428
478
  });
429
479
  return;
430
480
  }
431
- bindSocketRequestHandler({ socket, store });
481
+ bindSocketRequestHandler({ socket, store, maxFrameChars: options.maxFrameChars });
432
482
  });
433
483
  let storeReady = false;
434
484
  try {
@@ -529,25 +579,159 @@ async function createBrokerHandle(options) {
529
579
  throw error;
530
580
  }
531
581
  }
582
+ function isMultiplexedEnvelope(value) {
583
+ if (!value || typeof value !== "object" || Array.isArray(value)) return false;
584
+ const record = value;
585
+ return (typeof record.id === "number" || typeof record.id === "string") && "request" in record && typeof record.request === "object" && record.request !== null && !("type" in record);
586
+ }
587
+ function firstNonWhitespaceChar(text) {
588
+ for (let i = 0; i < text.length; i += 1) {
589
+ const ch = text[i];
590
+ if (ch === " " || ch === " " || ch === "\r" || ch === "\n") {
591
+ continue;
592
+ }
593
+ return ch;
594
+ }
595
+ return void 0;
596
+ }
532
597
  function bindSocketRequestHandler(args) {
598
+ const maxFrameChars = args.maxFrameChars ?? MAX_BROKER_FRAME_CHARS;
533
599
  let buffer = "";
600
+ let inFlight = 0;
601
+ let clientEnded = false;
602
+ let sawLegacyBareRequest = false;
603
+ let protocolRejected = false;
604
+ let currentFrameVerifiedObjectStart = false;
534
605
  args.socket.setEncoding("utf8");
535
- args.socket.on("data", async (chunk) => {
536
- buffer += chunk;
537
- if (!buffer.includes("\n")) return;
538
- const [rawRequest] = buffer.split("\n");
606
+ args.socket.setNoDelay?.(true);
607
+ const maybeFinishHalfOpen = () => {
608
+ if (clientEnded && inFlight === 0 && !args.socket.destroyed) {
609
+ args.socket.end();
610
+ }
611
+ };
612
+ const rejectAndDestroy = () => {
613
+ protocolRejected = true;
539
614
  buffer = "";
615
+ currentFrameVerifiedObjectStart = false;
616
+ if (!args.socket.destroyed) {
617
+ args.socket.destroy();
618
+ }
619
+ };
620
+ const handleParsedPayload = async (parsed) => {
621
+ inFlight += 1;
622
+ args.socket.ref?.();
623
+ if (isMultiplexedEnvelope(parsed)) {
624
+ let response2;
625
+ try {
626
+ response2 = await dispatchCliAuthorityBrokerRequest(args.store, parsed.request);
627
+ } catch (error) {
628
+ response2 = createErrorResponse(error);
629
+ }
630
+ inFlight -= 1;
631
+ if (!args.socket.destroyed && args.socket.writable) {
632
+ args.socket.write(`${JSON.stringify({ id: parsed.id, response: response2 })}
633
+ `);
634
+ }
635
+ if (inFlight === 0 && !clientEnded) {
636
+ args.socket.unref?.();
637
+ }
638
+ maybeFinishHalfOpen();
639
+ return;
640
+ }
540
641
  let response;
541
642
  try {
542
643
  response = await dispatchCliAuthorityBrokerRequest(
543
644
  args.store,
544
- JSON.parse(rawRequest)
645
+ parsed
545
646
  );
546
647
  } catch (error) {
547
648
  response = createErrorResponse(error);
548
649
  }
549
- args.socket.end(`${JSON.stringify(response)}
650
+ inFlight -= 1;
651
+ if (!args.socket.destroyed && args.socket.writable) {
652
+ args.socket.end(`${JSON.stringify(response)}
550
653
  `);
654
+ }
655
+ };
656
+ args.socket.on("data", (chunk) => {
657
+ if (protocolRejected || sawLegacyBareRequest) return;
658
+ const textChunk = typeof chunk === "string" ? chunk : chunk.toString("utf8");
659
+ if (!currentFrameVerifiedObjectStart) {
660
+ const firstChar = firstNonWhitespaceChar(textChunk);
661
+ if (firstChar !== void 0) {
662
+ if (firstChar !== "{") {
663
+ rejectAndDestroy();
664
+ return;
665
+ }
666
+ currentFrameVerifiedObjectStart = true;
667
+ }
668
+ }
669
+ buffer += textChunk;
670
+ let newlineIndex;
671
+ while ((newlineIndex = buffer.indexOf("\n")) !== -1) {
672
+ if (newlineIndex > maxFrameChars) {
673
+ rejectAndDestroy();
674
+ break;
675
+ }
676
+ const rawLine = buffer.slice(0, newlineIndex).trim();
677
+ buffer = buffer.slice(newlineIndex + 1);
678
+ currentFrameVerifiedObjectStart = false;
679
+ if (!rawLine) continue;
680
+ if (rawLine[0] !== "{") {
681
+ rejectAndDestroy();
682
+ break;
683
+ }
684
+ let parsed;
685
+ try {
686
+ parsed = JSON.parse(rawLine);
687
+ } catch (error) {
688
+ protocolRejected = true;
689
+ buffer = "";
690
+ args.socket.pause?.();
691
+ if (!args.socket.destroyed && args.socket.writable) {
692
+ args.socket.end(`${JSON.stringify(createErrorResponse(error))}
693
+ `, () => {
694
+ if (!args.socket.destroyed) args.socket.destroy();
695
+ });
696
+ } else if (!args.socket.destroyed) {
697
+ args.socket.destroy();
698
+ }
699
+ break;
700
+ }
701
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
702
+ rejectAndDestroy();
703
+ break;
704
+ }
705
+ if (!isMultiplexedEnvelope(parsed)) {
706
+ sawLegacyBareRequest = true;
707
+ }
708
+ void handleParsedPayload(parsed);
709
+ if (sawLegacyBareRequest) break;
710
+ }
711
+ if (!protocolRejected && !sawLegacyBareRequest) {
712
+ if (buffer.length > maxFrameChars) {
713
+ rejectAndDestroy();
714
+ return;
715
+ }
716
+ if (!currentFrameVerifiedObjectStart && buffer.length > 0) {
717
+ const remainingFirstChar = firstNonWhitespaceChar(buffer);
718
+ if (remainingFirstChar !== void 0) {
719
+ if (remainingFirstChar !== "{") {
720
+ rejectAndDestroy();
721
+ return;
722
+ }
723
+ currentFrameVerifiedObjectStart = true;
724
+ }
725
+ }
726
+ }
727
+ });
728
+ args.socket.on("end", () => {
729
+ if (protocolRejected) {
730
+ if (!args.socket.destroyed) args.socket.destroy();
731
+ return;
732
+ }
733
+ clientEnded = true;
734
+ maybeFinishHalfOpen();
551
735
  });
552
736
  }
553
737
  function canonicalDatabasePath(dbPath) {
@@ -637,6 +821,24 @@ function resolveCliLocalRuntimeDbPath(options = {}) {
637
821
  "leveldb"
638
822
  );
639
823
  }
824
+ var DEFAULT_ATTACH_BACKOFF_MS = [100, 200, 400, 800];
825
+ var DEFAULT_ATTACH_RETRY_BUDGET_MS = 9e3;
826
+ function findOwnerPid(error) {
827
+ const seen = /* @__PURE__ */ new Set();
828
+ let current = error;
829
+ while (current && typeof current === "object" && !seen.has(current)) {
830
+ seen.add(current);
831
+ const pid = current.ownerPid;
832
+ if (typeof pid === "number" && Number.isInteger(pid) && pid > 0) {
833
+ return pid;
834
+ }
835
+ current = current.cause;
836
+ }
837
+ return void 0;
838
+ }
839
+ function isTransientBrokerOpenError(error) {
840
+ return isCliAuthorityBrokerUnavailableError(error) || isCliAuthorityBrokerTimeoutError(error);
841
+ }
640
842
  var defaultCliAuthorityBrokerConnectDeps = {
641
843
  createClient: (options) => createCliAuthorityBrokerClient(options),
642
844
  startBroker: (options) => getOrCreateCliAuthorityBrokerServer(options),
@@ -653,14 +855,32 @@ async function connectCliAuthorityBroker(args) {
653
855
  endpoint: args.endpoint,
654
856
  invoke: createCliAuthorityBrokerSocketInvoker({ endpoint: args.endpoint })
655
857
  });
858
+ const backoffSchedule = deps.attachBackoffMs?.length ? deps.attachBackoffMs : DEFAULT_ATTACH_BACKOFF_MS;
859
+ const retryBudgetMs = deps.attachRetryBudgetMs ?? DEFAULT_ATTACH_RETRY_BUDGET_MS;
860
+ let waitedMs = 0;
861
+ let backoffStep = 0;
862
+ let lastAttachError;
863
+ const waitBackoff = async () => {
864
+ if (waitedMs >= retryBudgetMs) return false;
865
+ const delay = backoffSchedule[Math.min(backoffStep, backoffSchedule.length - 1)];
866
+ if (waitedMs > 0 && waitedMs + delay > retryBudgetMs) return false;
867
+ backoffStep += 1;
868
+ const startedAt = Date.now();
869
+ await deps.sleep(delay);
870
+ waitedMs += Math.max(delay, Date.now() - startedAt);
871
+ return true;
872
+ };
656
873
  async function attachToExistingBroker(attempts) {
657
874
  for (let attempt = 0; attempt < attempts; attempt += 1) {
658
- await deps.sleep(100);
875
+ if (!await waitBackoff()) return false;
876
+ const probeStartedAt = Date.now();
659
877
  try {
660
878
  await client2.open();
661
879
  return true;
662
880
  } catch (error) {
663
- if (!isCliAuthorityBrokerUnavailableError(error)) throw error;
881
+ waitedMs += Date.now() - probeStartedAt;
882
+ if (!isTransientBrokerOpenError(error)) throw error;
883
+ lastAttachError = error;
664
884
  }
665
885
  }
666
886
  return false;
@@ -670,7 +890,8 @@ async function connectCliAuthorityBroker(args) {
670
890
  await client2.open();
671
891
  return client2;
672
892
  } catch (error) {
673
- if (!isCliAuthorityBrokerUnavailableError(error)) throw error;
893
+ if (!isTransientBrokerOpenError(error)) throw error;
894
+ lastAttachError = error;
674
895
  }
675
896
  }
676
897
  try {
@@ -689,8 +910,7 @@ async function connectCliAuthorityBroker(args) {
689
910
  return client2;
690
911
  }
691
912
  let lastError = error;
692
- for (let attempt = 0; attempt < 5; attempt += 1) {
693
- await deps.sleep(100);
913
+ while (await waitBackoff()) {
694
914
  try {
695
915
  await deps.startBroker({
696
916
  endpoint: args.endpoint,
@@ -709,15 +929,30 @@ async function connectCliAuthorityBroker(args) {
709
929
  }
710
930
  continue;
711
931
  }
712
- if (isCliAuthorityBrokerUnavailableError(retryError)) {
932
+ if (isTransientBrokerOpenError(retryError)) {
933
+ lastAttachError = retryError;
713
934
  continue;
714
935
  }
715
936
  throwCliAuthorityStartupError(retryError);
716
937
  }
717
938
  }
718
939
  const lastMessage = toErrorMessage(lastError);
940
+ const attachMessage = lastAttachError ? toErrorMessage(lastAttachError) : "";
719
941
  const portInUse = lastError !== null && typeof lastError === "object" && "code" in lastError && lastError.code === "EADDRINUSE" || /EADDRINUSE/i.test(lastMessage);
720
- const detail = portInUse ? `: EADDRINUSE (${lastMessage}). The broker endpoint is already in use; check the process using it or set NOLO_CLI_AUTHORITY_BROKER_PORT to a free port for all local CLI processes` : "";
942
+ const ownerPid = findOwnerPid(lastError);
943
+ let detail = "";
944
+ if (portInUse) {
945
+ detail = `: EADDRINUSE (${lastMessage}). The broker endpoint is already in use; check the process using it or set NOLO_CLI_AUTHORITY_BROKER_PORT to a free port for all local CLI processes`;
946
+ } else {
947
+ const parts = [
948
+ ownerPid !== void 0 ? `ownerPid=${ownerPid}` : void 0,
949
+ lastMessage || void 0,
950
+ attachMessage && attachMessage !== lastMessage ? `attach=${attachMessage}` : void 0
951
+ ].filter(Boolean);
952
+ if (parts.length > 0) {
953
+ detail = `: ${parts.join("; ")}`;
954
+ }
955
+ }
721
956
  throw new Error(`CLI authority broker could not attach or take ownership for ${args.endpoint}${detail}`, {
722
957
  cause: lastError
723
958
  });
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  applyPublicAgentCatalogOverride
3
- } from "./chunk-N2JROHD3.js";
3
+ } from "./chunk-LT3DMEIB.js";
4
4
  import {
5
5
  applyBuiltinAgentRuntimeOverride,
6
6
  resolveBuiltinPlatformAgentConfig
7
7
  } from "./chunk-JBWXPACD.js";
8
8
  import {
9
9
  buildLocalAgentLookupKeys
10
- } from "./chunk-PROOOQZ3.js";
10
+ } from "./chunk-LCQJH7KN.js";
11
11
  import {
12
12
  LOCAL_CODEX_AGENT_ID,
13
13
  LOCAL_CODEX_AGENT_KEY
@@ -15,10 +15,10 @@ import {
15
15
  import {
16
16
  localDialogMessageRecordToRuntimeMessage,
17
17
  orderDialogHistory
18
- } from "./chunk-TRHJ4NJB.js";
18
+ } from "./chunk-EIFSCI4C.js";
19
19
  import {
20
20
  resolveAgentRuntimeConfigFromRecord
21
- } from "./chunk-KZPEGO6D.js";
21
+ } from "./chunk-ZT3DYK5T.js";
22
22
  import {
23
23
  dialogMessagePrefix,
24
24
  dialogMessageRange