nolo-cli 0.226.0-alpha.2 → 0.228.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 (198) hide show
  1. package/{_executeModel-IKZGZZXW.js → _executeModel-WZKT6XEU.js} +74 -75
  2. package/{action-CK64LS6S.js → action-GDZDXPMB.js} +7 -7
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-7RO4AMRI.js} +12 -12
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-EVYBGTXB.js} +14 -14
  5. package/{agentDeleteCommand-IZY3VF5F.js → agentDeleteCommand-PZWRHNXY.js} +114 -116
  6. package/{agentEmailCommands-YWL567CL.js → agentEmailCommands-QTKMEICX.js} +115 -117
  7. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  8. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  9. package/{agentListCommands-YBNOQ5T3.js → agentListCommands-GUGMORTK.js} +84 -70
  10. package/{agentMachineCommands-AXJ4A772.js → agentMachineCommands-7QGICJLM.js} +56 -55
  11. package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-STI3DQ6A.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
  13. package/{agentRecordCommands-WUUC2CX7.js → agentRecordCommands-SLLADS5C.js} +102 -104
  14. package/{agentRunCommand-W6MDKVLJ.js → agentRunCommand-OFQLOF5Y.js} +113 -114
  15. package/{agentRunControl-DFEEOFC7.js → agentRunControl-MBG4U6SL.js} +20 -14
  16. package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-TU4LA353.js} +39 -39
  17. package/{agentSlice-5F5U5X2U.js → agentSlice-L4SBGWTB.js} +16 -16
  18. package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-JWP3XPUA.js} +50 -49
  19. package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-6E4TQCWI.js} +50 -49
  20. package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
  21. package/{appGetCommands-LN72GAOA.js → appGetCommands-JEY4L6L4.js} +50 -49
  22. package/{appListCommands-IJQQ3VND.js → appListCommands-PCAVHU7M.js} +50 -49
  23. package/{authCommand-7JXW54U4.js → authCommand-CGRIIOOV.js} +26 -27
  24. package/{authCommands-YDNAIDEY.js → authCommands-55OGQGCR.js} +9 -10
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-WAA45NCS.js} +6 -6
  27. package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
  28. package/{chunk-N5PQJKCY.js → chunk-2MCB7CD7.js} +13 -12
  29. package/{chunk-VFBVA3U2.js → chunk-2NPD3FTX.js} +3 -3
  30. package/{chunk-SBVTHMEG.js → chunk-2X7WFDT6.js} +1 -1
  31. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  32. package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
  33. package/{chunk-ZH6MUQEO.js → chunk-3U44JB3O.js} +1 -1
  34. package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
  35. package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
  36. package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
  37. package/chunk-5ZUOVCKT.js +32 -0
  38. package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
  39. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  40. package/{chunk-EWPDMS4N.js → chunk-7JGMNKKG.js} +18 -14
  41. package/{chunk-2TIQO6TC.js → chunk-AGYPUBFW.js} +31 -205
  42. package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
  43. package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
  44. package/{chunk-GBZ4YKEO.js → chunk-AUAJTAFM.js} +8 -8
  45. package/chunk-BIDSIRTS.js +307 -0
  46. package/chunk-BIWI5M4E.js +62 -0
  47. package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
  48. package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
  49. package/{chunk-3QFLXA24.js → chunk-CBUZ6DKA.js} +3 -3
  50. package/{chunk-KYH7XW3K.js → chunk-CD3RU7XL.js} +16 -1
  51. package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
  52. package/{chunk-XN23AUVU.js → chunk-CYWNWA77.js} +5 -5
  53. package/{chunk-2VA6TU4I.js → chunk-D6YNCNM6.js} +17 -14
  54. package/{chunk-GOAPXKQU.js → chunk-DBUR22G5.js} +5 -5
  55. package/{chunk-QTMIHVLE.js → chunk-DDC6P6EH.js} +22 -19
  56. package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
  57. package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
  58. package/{chunk-KNIIRXHF.js → chunk-DUUDXSLX.js} +21 -7
  59. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  60. package/{chunk-JM5C4EUA.js → chunk-EEOOBRA7.js} +5 -5
  61. package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
  62. package/{chunk-GBUDWITV.js → chunk-EXJK7TQO.js} +1837 -1112
  63. package/{chunk-YDBMZ7FV.js → chunk-F6Z6ZCUV.js} +2 -2
  64. package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
  65. package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
  66. package/{chunk-4AMQZTE7.js → chunk-GACR7H6T.js} +14 -14
  67. package/{chunk-NEKH3XDV.js → chunk-GOCSSER3.js} +3 -3
  68. package/{chunk-3KNEE64G.js → chunk-GPOV42YM.js} +14 -14
  69. package/{chunk-UEKXWO7A.js → chunk-GUXZK7SE.js} +2 -2
  70. package/{chunk-JHRQXQ4A.js → chunk-GYS5FUYR.js} +19 -19
  71. package/{chunk-6O5YP6FX.js → chunk-H6L2NFHY.js} +6 -6
  72. package/{chunk-45LZIYXB.js → chunk-HBRDSQ3M.js} +1 -1
  73. package/{chunk-KZU52OJ5.js → chunk-HHFGE2WF.js} +6 -6
  74. package/{chunk-VV7TXWOC.js → chunk-HSSBDZLD.js} +3 -3
  75. package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
  76. package/{chunk-EFX3Q5SM.js → chunk-IAAIUH64.js} +15 -15
  77. package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
  78. package/{chunk-EJU6WCDH.js → chunk-IXG6YXQM.js} +146 -114
  79. package/{chunk-KC4SCKXO.js → chunk-JUSHVFNF.js} +238 -185
  80. package/{chunk-BLSNUIZD.js → chunk-K67C2JUC.js} +10 -10
  81. package/{chunk-IZIN2UNJ.js → chunk-L32W3PRP.js} +46 -16
  82. package/{chunk-67BE44IS.js → chunk-M4SFKP5L.js} +1 -1
  83. package/{chunk-L4NFXFFF.js → chunk-MDZWUD3R.js} +18 -18
  84. package/{chunk-QZI44GWV.js → chunk-NHY322ZU.js} +150 -9
  85. package/{chunk-DISQCYPE.js → chunk-OBIC6EG7.js} +6 -6
  86. package/{chunk-AZQZ5XPM.js → chunk-OG6MQOQG.js} +96 -28
  87. package/{chunk-VQUWV3YR.js → chunk-OOJNQK6V.js} +1 -1
  88. package/{chunk-F7DU25CE.js → chunk-OWKNSIXL.js} +149 -54
  89. package/{chunk-RRVQ446B.js → chunk-OYU2MA5S.js} +25 -25
  90. package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
  91. package/{chunk-FTQWYWUI.js → chunk-QBZCGP34.js} +1 -1
  92. package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
  93. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  94. package/{chunk-LM2PS3YS.js → chunk-QRGDJA4B.js} +9 -9
  95. package/{chunk-SOG7OEXX.js → chunk-QYB23WUH.js} +1 -1
  96. package/{chunk-W772FYAQ.js → chunk-R3NEQZ53.js} +285 -92
  97. package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
  98. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  99. package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
  100. package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
  101. package/{chunk-4NA3YTBC.js → chunk-RTHFJZ6M.js} +7 -7
  102. package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
  103. package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
  104. package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
  105. package/{chunk-HHL7WG65.js → chunk-SMJEXX2S.js} +122 -11
  106. package/{chunk-LJSNEV7M.js → chunk-SRCCSTIM.js} +7 -7
  107. package/{chunk-WSJMT3FA.js → chunk-STJ6LSQE.js} +746 -2519
  108. package/{chunk-6J4TTPS2.js → chunk-TGNIKIHR.js} +5 -5
  109. package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
  110. package/{chunk-4HFTBHBF.js → chunk-TSPMLCWI.js} +6 -6
  111. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  112. package/{chunk-2COEG5ZV.js → chunk-UE2EVEYS.js} +2 -2
  113. package/{chunk-E5EIYI34.js → chunk-UWAIJOF2.js} +19 -19
  114. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  115. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  116. package/{chunk-BYH3HMUP.js → chunk-VSYTM22R.js} +3 -3
  117. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  118. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  119. package/{chunk-T3T57NVP.js → chunk-XJPLSAPJ.js} +11 -11
  120. package/{chunk-UKS7D2NL.js → chunk-XSW4EXQV.js} +82 -18
  121. package/{chunk-TXGQ4O5S.js → chunk-YKY4OVOX.js} +11 -11
  122. package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
  123. package/chunk-ZOHO6MOF.js +376 -0
  124. package/{chunk-OLMJR6UM.js → chunk-ZXF6D3I6.js} +9 -7
  125. package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
  126. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  127. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  128. package/{cliLocalAgentRecordReader-6FXGFBI3.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
  129. package/{commandRegistry-6EQXVODF.js → commandRegistry-ZLWHQVAI.js} +93 -93
  130. package/{contentThunks-ANUP57QV.js → contentThunks-4ZX2TO7C.js} +36 -35
  131. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
  132. package/{createAgentAutomationAction-XMUWUDKQ.js → createAgentAutomationAction-L4CYUZJG.js} +36 -35
  133. package/{createDialogAction-43QJIQDH.js → createDialogAction-QTU2R2Q3.js} +37 -37
  134. package/{createPageAction-SJO7UC3J.js → createPageAction-F3GJTHW2.js} +37 -36
  135. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  136. package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
  137. package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
  138. package/{dialogCommands-V5IYEOQP.js → dialogCommands-NRLCOPJR.js} +52 -52
  139. package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
  140. package/{dialogSlice-FQ6WOKWJ.js → dialogSlice-P2S4LXQD.js} +34 -33
  141. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
  142. package/{docCreateCommands-36WS33BK.js → docCreateCommands-YJRDA3RX.js} +48 -47
  143. package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-A5QIHZNF.js} +50 -49
  144. package/{docReadCommands-QZMSFMPN.js → docReadCommands-CF2LTMYH.js} +48 -47
  145. package/{docStore-BZ2O7WLF.js → docStore-6O7NYL6A.js} +12 -12
  146. package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
  147. package/fetchMessages-TQEUZD7H.js +1 -1
  148. package/{getPricing-VNGFM4PN.js → getPricing-LF5C4XSI.js} +5 -5
  149. package/{handleSendMessageAction-I5J7QR7K.js → handleSendMessageAction-7IHLR37A.js} +65 -65
  150. package/{hostCredentialCreate-AVPMK7EQ.js → hostCredentialCreate-VNCQUAFT.js} +102 -104
  151. package/index.js +56 -18
  152. package/keys-RWF7UCB4.js +1 -1
  153. package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
  154. package/{localRuntimeAdapter-S56R76HN.js → localRuntimeAdapter-FOWVNMIK.js} +109 -111
  155. package/{machineCommands-77NFB2AE.js → machineCommands-ZGC3J4JB.js} +111 -113
  156. package/{machineWsRunDispatch-5XWFUJ53.js → machineWsRunDispatch-KK5U4M3G.js} +100 -102
  157. package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
  158. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  159. package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
  160. package/package.json +1 -1
  161. package/{projectArchive-GNOSYH6F.js → projectArchive-7ZDYBXAX.js} +42 -41
  162. package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-WHAMP2D5.js} +6 -6
  163. package/{providerRegistry-KJGB5XWS.js → providerRegistry-ZI2KORJ7.js} +6 -6
  164. package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
  165. package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
  166. package/{readlineWorkspace-2PONGBUP.js → readlineWorkspace-YHT4SX2C.js} +4794 -5229
  167. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
  168. package/{runAgentClientLoop-WEXFFHVS.js → runAgentClientLoop-H4ED5V3K.js} +71 -68
  169. package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
  170. package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
  171. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
  172. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
  173. package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
  174. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
  175. package/{spaceCommands-GUKMDRWN.js → spaceCommands-MEH3HJBC.js} +53 -52
  176. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  177. package/{streamAgentChatTurn-D2WFS5MF.js → streamAgentChatTurn-ZXPOXU33.js} +89 -129
  178. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
  179. package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
  180. package/{tools-YKE6PQHT.js → tools-2MRWA2PP.js} +58 -59
  181. package/tuiRestart-2IL37YIB.js +41 -0
  182. package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
  183. package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
  184. package/{updateDialogTitleAction-D5NCA4FC.js → updateDialogTitleAction-RZ3KZSGQ.js} +36 -35
  185. package/{usageCommand-YPJ2ZI2F.js → usageCommand-2BF74MKF.js} +2 -2
  186. package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-UHB55BQM.js} +3 -3
  187. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
  188. package/chunk-2THCNKE4.js +0 -147
  189. package/chunk-BJF2MHJ3.js +0 -118
  190. package/chunk-KEPOVMF4.js +0 -91
  191. package/chunk-PMDVQBGA.js +0 -100
  192. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  193. package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
  194. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  195. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  196. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  197. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  198. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
@@ -7,21 +7,22 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-FTQWYWUI.js";
10
+ } from "./chunk-QBZCGP34.js";
11
11
  import {
12
12
  parsePositiveFiniteNumberOrFallback
13
13
  } from "./chunk-Y5GCAMGP.js";
14
14
  import {
15
+ buildDialogAttachmentPlan,
16
+ extractFileContentIds,
15
17
  fetchWithTransientRetry
16
- } from "./chunk-KFHREHUQ.js";
18
+ } from "./chunk-DXWGFL2Z.js";
17
19
  import {
18
20
  DRAIN_EXHAUSTED_USER_MESSAGE,
19
21
  isDrainExhaustedResponse
20
22
  } from "./chunk-3L2WKC3W.js";
21
23
  import {
22
- buildDialogAttachmentPlan,
23
- extractFileContentIds
24
- } from "./chunk-KEPOVMF4.js";
24
+ createClientLogger
25
+ } from "./chunk-QQ56R7KS.js";
25
26
  import {
26
27
  getDefaultCliLocalRuntimeDb
27
28
  } from "./chunk-P2ZLUIW2.js";
@@ -34,13 +35,13 @@ import {
34
35
  resolveServerDbPath
35
36
  } from "./chunk-GLKOYSRU.js";
36
37
  import {
37
- createClientLogger
38
- } from "./chunk-QQ56R7KS.js";
38
+ resolveRunsDir
39
+ } from "./chunk-OWKNSIXL.js";
39
40
  import {
40
41
  boundSummaryText,
41
42
  buildDialogReadEnvelope,
42
43
  projectDialogReadForAgent
43
- } from "./chunk-C4VAR65S.js";
44
+ } from "./chunk-RYOLWYBK.js";
44
45
  import {
45
46
  asRecordOrEmpty
46
47
  } from "./chunk-KX6YBIHG.js";
@@ -58,11 +59,16 @@ import {
58
59
  asTrimmedNonEmptyStringArray
59
60
  } from "./chunk-I42VC5KR.js";
60
61
  import {
61
- t
62
- } from "./chunk-OB6DVWPF.js";
62
+ parseUserIdFromAuthToken,
63
+ readOption,
64
+ resolveAuthToken,
65
+ resolveDeleteServerCandidates,
66
+ resolveServerCandidates,
67
+ resolveServerUrl
68
+ } from "./chunk-BIDSIRTS.js";
63
69
  import {
64
- resolveRunsDir
65
- } from "./chunk-F7DU25CE.js";
70
+ t
71
+ } from "./chunk-262R3XNN.js";
66
72
  import {
67
73
  toErrorMessage
68
74
  } from "./chunk-HNMXYYJR.js";
@@ -72,14 +78,6 @@ import {
72
78
  import {
73
79
  isRecord
74
80
  } from "./chunk-KUG52IAP.js";
75
- import {
76
- parseUserIdFromAuthToken,
77
- readOption,
78
- resolveAuthToken,
79
- resolveDeleteServerCandidates,
80
- resolveServerCandidates,
81
- resolveServerUrl
82
- } from "./chunk-2THCNKE4.js";
83
81
  import {
84
82
  asOptionalTrimmedString
85
83
  } from "./chunk-G3SUCT4W.js";
@@ -87,6 +85,10 @@ import {
87
85
  DEFAULT_LOCAL_API_ORIGIN
88
86
  } from "./chunk-4SN6J65J.js";
89
87
 
88
+ // packages/cli/dialogCommands.ts
89
+ import { write as writeFd } from "node:fs";
90
+ import { Writable } from "node:stream";
91
+
90
92
  // packages/cli/dialogAttachmentCleanup.ts
91
93
  function asText(value) {
92
94
  return asOptionalTrimmedString(value) ?? null;
@@ -344,6 +346,73 @@ ${indented}`);
344
346
  output.write(`${JSON.stringify(value, null, 2)}
345
347
  `);
346
348
  }
349
+ async function writeDialogReadJson(output, json) {
350
+ const text = `${json}
351
+ `;
352
+ if (output === process.stdout) {
353
+ const bytes = Buffer.from(text, "utf8");
354
+ let offset = 0;
355
+ while (offset < bytes.length) {
356
+ const written = await new Promise((resolve, reject) => {
357
+ const attempt = () => writeFd(1, bytes, offset, Math.min(16384, bytes.length - offset), null, (error, count) => {
358
+ if (error?.code === "EAGAIN" || error?.code === "EWOULDBLOCK") {
359
+ setTimeout(attempt, 1);
360
+ } else if (error) reject(error);
361
+ else resolve(count);
362
+ });
363
+ attempt();
364
+ });
365
+ if (written <= 0) throw new Error("stdout write made no progress");
366
+ offset += written;
367
+ }
368
+ } else if (output instanceof Writable) {
369
+ await new Promise((resolve, reject) => {
370
+ let settled = false;
371
+ let writeStarted = false;
372
+ let stateCheck;
373
+ const cleanup = () => {
374
+ clearInterval(stateCheck);
375
+ output.off("error", onError);
376
+ output.off("close", checkState);
377
+ output.off("finish", checkState);
378
+ };
379
+ const settle = (error) => {
380
+ if (settled) return;
381
+ settled = true;
382
+ if (error) setTimeout(() => {
383
+ cleanup();
384
+ reject(error);
385
+ }, 0);
386
+ else {
387
+ cleanup();
388
+ resolve();
389
+ }
390
+ };
391
+ const onError = (error) => settle(error);
392
+ const checkState = () => {
393
+ if (output.errored) settle(output.errored);
394
+ else if (output.destroyed || output.closed || output.writableFinished || !writeStarted && output.writableEnded) {
395
+ settle(new Error("stdout Writable closed before write completion"));
396
+ }
397
+ };
398
+ output.on("error", onError);
399
+ output.on("close", checkState);
400
+ output.on("finish", checkState);
401
+ checkState();
402
+ if (settled) return;
403
+ stateCheck = setInterval(checkState, 10);
404
+ try {
405
+ writeStarted = true;
406
+ output.write(text, (error) => settle(error));
407
+ checkState();
408
+ } catch (error) {
409
+ settle(error instanceof Error ? error : new Error(String(error)));
410
+ }
411
+ });
412
+ } else {
413
+ output.write(text);
414
+ }
415
+ }
347
416
  function writeJsonlStream(output, items) {
348
417
  for (const item of items) {
349
418
  output.write(`${JSON.stringify(item)}
@@ -782,7 +851,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
782
851
  return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
783
852
  }
784
853
  async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
785
- const reader = readLocalDialog ?? (await import("./localDialogRead-SVTPA5GY.js")).readDialogFromLocalDb;
854
+ const reader = readLocalDialog ?? (await import("./localDialogRead-CCOCVGAP.js")).readDialogFromLocalDb;
786
855
  const result = await reader({ dialogKey, dialogId, limit });
787
856
  return {
788
857
  ...result,
@@ -797,7 +866,7 @@ async function readLocalDialogAtDbPathDefault(args) {
797
866
  );
798
867
  }
799
868
  const db = await getDefaultCliLocalRuntimeDb();
800
- const { readDialogFromLocalDb: reader } = await import("./localDialogRead-SVTPA5GY.js");
869
+ const { readDialogFromLocalDb: reader } = await import("./localDialogRead-CCOCVGAP.js");
801
870
  return reader({ ...args, db });
802
871
  }
803
872
  async function readDialogFromLocalDbWithFallback(args) {
@@ -1355,11 +1424,10 @@ async function runDialogReadCommand(args, deps = {}) {
1355
1424
  },
1356
1425
  options: { maxResponseChars: agentMaxResponseChars }
1357
1426
  });
1358
- output.write(built.serialized);
1359
- output.write("\n");
1427
+ await writeDialogReadJson(output, built.serialized);
1360
1428
  return 0;
1361
1429
  }
1362
- output.write(JSON.stringify({
1430
+ await writeDialogReadJson(output, JSON.stringify({
1363
1431
  source: read.source,
1364
1432
  base: read.resolvedBase,
1365
1433
  triedBases: read.candidateBases,
@@ -1408,11 +1476,11 @@ async function runDialogReadCommand(args, deps = {}) {
1408
1476
  lastAssistantMessage,
1409
1477
  messages: outputMsgs
1410
1478
  }, null, 2));
1411
- output.write("\n");
1412
1479
  return 0;
1413
1480
  } catch (error) {
1414
- output.write(`${formatDialogReadFailure(error, target.dialogId)}
1415
- `);
1481
+ const diagnostic = `${formatDialogReadFailure(error, target.dialogId)}
1482
+ `;
1483
+ (deps.error ?? (output instanceof Writable ? process.stderr : output)).write(diagnostic);
1416
1484
  return 1;
1417
1485
  }
1418
1486
  }
@@ -354,7 +354,7 @@ function formatAgentListCard(agents, maxDisplay = 8, now = /* @__PURE__ */ new D
354
354
  const model = agent.model || "\u2014";
355
355
  const source = agent.apiSource || agent.provider || agent.cliProvider || "\u2014";
356
356
  const key = agent.agentKey || "(agentKey unavailable)";
357
- lines.push(`${star}${own} ${name} ${model} ${source}${includeKeys ? ` ${key}` : ""}`);
357
+ lines.push(`${star} ${own} ${name} ${model} ${source}${includeKeys ? ` ${key}` : ""}`);
358
358
  if (agent.availabilityStatus === "rate_limited" || agent.availabilityStatus === "quota_exhausted") {
359
359
  const until = typeof agent.nextAvailableAt === "number" ? formatLocalClockUntil(agent.nextAvailableAt, now) : void 0;
360
360
  lines.push(
@@ -1,25 +1,30 @@
1
1
  import {
2
2
  resolveRuntimeAuthToken,
3
3
  resolveRuntimeServerUrl
4
- } from "./chunk-SBVTHMEG.js";
4
+ } from "./chunk-2X7WFDT6.js";
5
5
  import {
6
6
  isAgentRunTerminalStatus,
7
7
  normalizeRunTitle,
8
8
  shortAgentKey
9
- } from "./chunk-VQUWV3YR.js";
9
+ } from "./chunk-OOJNQK6V.js";
10
10
  import {
11
11
  findPowerShellExecutable
12
- } from "./chunk-KEN3N2TN.js";
12
+ } from "./chunk-VMJVAJ6W.js";
13
13
  import {
14
14
  AUTH_ERROR_PATTERNS
15
15
  } from "./chunk-EWQ3HGNZ.js";
16
+ import {
17
+ AGENT_RUN_PROTOCOL,
18
+ HOST_RUNTIME_CONTENT_IDENTITY,
19
+ RuntimeVersionMismatchError,
20
+ getHostRuntimeExecutable,
21
+ isCompiledBinary,
22
+ resolveCliEntrypointPath,
23
+ resolveExactRuntimeEntrypoint
24
+ } from "./chunk-BIDSIRTS.js";
16
25
  import {
17
26
  isRecord
18
27
  } from "./chunk-KUG52IAP.js";
19
- import {
20
- isCompiledBinary,
21
- resolveCliEntrypointPath
22
- } from "./chunk-2THCNKE4.js";
23
28
 
24
29
  // packages/cli/client/originShellApprovalTransport.ts
25
30
  import { realpathSync } from "node:fs";
@@ -1152,11 +1157,6 @@ ${lines.join("\n")}
1152
1157
  function buildResultFileContent(input, body) {
1153
1158
  return `${buildResultFrontMatter(input)}${body}`;
1154
1159
  }
1155
- var RESULT_FRONT_MATTER_RE = /^---\nrunId: [^\n]*\n(?:[^\n]*\n)*?---\n/;
1156
- function stripResultFrontMatter(text) {
1157
- const match = RESULT_FRONT_MATTER_RE.exec(text);
1158
- return match ? text.slice(match[0].length) : text;
1159
- }
1160
1160
 
1161
1161
  // packages/ai/tools/agent/runFailureClass.ts
1162
1162
  function isHistoryIntegrityFailure(message) {
@@ -2027,6 +2027,34 @@ function listRunRecords(deps = {}) {
2027
2027
  (a, b) => new Date(b.startedAt).getTime() - new Date(a.startedAt).getTime()
2028
2028
  );
2029
2029
  }
2030
+ async function listRunRecordsAsync(deps = {}) {
2031
+ const dir = resolveRunsDir(deps.env, deps.homedir);
2032
+ let entries;
2033
+ try {
2034
+ entries = await nodeFs2.promises.readdir(dir);
2035
+ } catch {
2036
+ return [];
2037
+ }
2038
+ const records = new Array(entries.length);
2039
+ let next = 0;
2040
+ const readNext = async () => {
2041
+ while (next < entries.length) {
2042
+ const index = next++;
2043
+ const entry = entries[index];
2044
+ if (!entry.endsWith(".json")) continue;
2045
+ const path = resolveRunRecordPath(entry.slice(0, -5), deps.env, deps.homedir);
2046
+ for (let attempt = 0; attempt < 2; attempt++) {
2047
+ try {
2048
+ records[index] = JSON.parse(await nodeFs2.promises.readFile(path, "utf8"));
2049
+ break;
2050
+ } catch {
2051
+ }
2052
+ }
2053
+ }
2054
+ };
2055
+ await Promise.all(Array.from({ length: Math.min(16, entries.length) }, readNext));
2056
+ return records.filter((record) => Boolean(record)).sort((a, b) => new Date(b.startedAt).getTime() - new Date(a.startedAt).getTime());
2057
+ }
2030
2058
  function findRunRecordByPid(pid, deps = {}) {
2031
2059
  return listRunRecords(deps).find((record) => record.pid === pid);
2032
2060
  }
@@ -2220,38 +2248,22 @@ function rewriteMsgFileArg(args, messagePath) {
2220
2248
  return result;
2221
2249
  }
2222
2250
  function resolveValidCliEntrypoint(cliEntrypointPath, fs = nodeFs2) {
2223
- if (cliEntrypointPath && fs.existsSync(cliEntrypointPath)) {
2224
- return cliEntrypointPath;
2225
- }
2226
- const fallback = resolveCliEntrypointPath();
2227
- if (fs.existsSync(fallback)) {
2228
- return fallback;
2229
- }
2230
- const candidates = [
2231
- join2(dirname(fallback), "cli", "index.ts"),
2232
- join2(dirname(fallback), "cli", "index.js"),
2233
- join2(dirname(fallback), "..", "packages", "cli", "index.ts"),
2234
- join2(dirname(fallback), "..", "packages", "cli", "index.js"),
2235
- join2(dirname(fallback), "..", "index.js")
2236
- ];
2237
- for (const cand of candidates) {
2238
- if (fs.existsSync(cand)) {
2239
- return cand;
2240
- }
2241
- }
2242
- return fallback;
2251
+ const entrypoint = cliEntrypointPath ?? resolveCliEntrypointPath();
2252
+ if (!fs.existsSync(entrypoint)) throw new RuntimeVersionMismatchError("runtime entrypoint missing");
2253
+ return fs === nodeFs2 ? resolveExactRuntimeEntrypoint(entrypoint) : String(fs.realpathSync?.(entrypoint) ?? entrypoint);
2243
2254
  }
2244
2255
  function buildAgentRunChildCommand(options, deps = {}) {
2245
2256
  const fs = deps.fs ?? nodeFs2;
2246
- const execPath = process.execPath;
2257
+ const execPath = getHostRuntimeExecutable();
2247
2258
  const commandParts = options.commandPath ?? [];
2248
2259
  let strippedArgs = stripBackgroundFlag(options.rawArgs);
2249
2260
  if (options.messagePath) {
2250
2261
  strippedArgs = rewriteMsgFileArg(strippedArgs, options.messagePath);
2251
2262
  }
2252
2263
  strippedArgs = absolutizeSkillArgs(strippedArgs);
2253
- if (isCompiledBinary() || options.cliEntrypointPath === execPath) {
2254
- return { execPath, childArgs: [...commandParts, ...strippedArgs] };
2264
+ if (isCompiledBinary() || options.cliEntrypointPath === process.execPath || options.cliEntrypointPath === execPath) {
2265
+ const fixed = resolveValidCliEntrypoint(isCompiledBinary() ? execPath : options.cliEntrypointPath ?? execPath, fs);
2266
+ return { execPath: fixed, childArgs: [...commandParts, ...strippedArgs] };
2255
2267
  }
2256
2268
  const entrypoint = resolveValidCliEntrypoint(options.cliEntrypointPath, fs);
2257
2269
  if (entrypoint === execPath) {
@@ -2539,6 +2551,48 @@ function releaseUnspawnedLocalWriterClaim(runId, deps) {
2539
2551
  }, { strict: true });
2540
2552
  if (!released) throw new Error(`[local-writer-resource] release lock busy: ${runId}`);
2541
2553
  }
2554
+ async function recordRunStartup(runId, phase, deps = {}) {
2555
+ const attempt = () => withRunRecordLock(runId, deps, () => {
2556
+ const record = readRunRecord(runId, deps);
2557
+ if (!record || isRunTerminalStatus(record.status)) return true;
2558
+ record.startup = { protocol: AGENT_RUN_PROTOCOL, phase };
2559
+ writeRunRecord(record, deps);
2560
+ return true;
2561
+ }, { strict: true });
2562
+ const deadline = Date.now() + 2e3;
2563
+ while (!attempt()) {
2564
+ if (Date.now() >= deadline) throw new Error(`Startup evidence lock busy: ${runId}`);
2565
+ await new Promise((resolve2) => setTimeout(resolve2, 20));
2566
+ }
2567
+ }
2568
+ async function settleBackgroundProcessExit(runId, code, signal, deps = {}) {
2569
+ const deadline = Date.now() + 2e3;
2570
+ while (true) {
2571
+ const settled = withRunRecordLock(runId, deps, () => {
2572
+ const record = readRunRecord(runId, deps);
2573
+ if (!record) return true;
2574
+ if (isRunTerminalStatus(record.status)) {
2575
+ record.processExit = { code, signal };
2576
+ writeRunRecord(record, deps);
2577
+ return true;
2578
+ }
2579
+ return false;
2580
+ }, { strict: true });
2581
+ if (settled === true) return;
2582
+ if (settled === false) {
2583
+ const result = transitionRunToTerminal(runId, {
2584
+ status: signal === "SIGTERM" || signal === "SIGKILL" ? "killed" : "failed",
2585
+ exitCode: code ?? 1,
2586
+ processExit: { code, signal },
2587
+ failureReason: signal === "SIGTERM" || signal === "SIGKILL" ? "cancelled" : "startup_failed",
2588
+ note: `Child exited without terminal result (code=${code}, signal=${signal})`
2589
+ }, deps);
2590
+ if (result.kind !== "contended") return;
2591
+ }
2592
+ if (Date.now() >= deadline) throw new Error(`Process exit settlement lock busy: ${runId}`);
2593
+ await (deps.sleep ?? defaultSleep)(20);
2594
+ }
2595
+ }
2542
2596
  async function spawnLocalBackgroundRun(input, deps = {}) {
2543
2597
  const homedir = deps.homedir ?? nodeHomedir;
2544
2598
  const env = deps.env ?? (deps.homedir ? { ...process.env, NOLO_HOME: join2(homedir(), ".nolo") } : process.env);
@@ -2611,6 +2665,7 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
2611
2665
  ...input.evidenceScope ? { evidenceScope: input.evidenceScope } : {},
2612
2666
  ...input.dispatchSpeedProvenance ? { dispatchSpeedProvenance: input.dispatchSpeedProvenance } : {},
2613
2667
  runId,
2668
+ startup: { protocol: AGENT_RUN_PROTOCOL, phase: "spawn" },
2614
2669
  agentKey: input.agentKey,
2615
2670
  agentName: input.agentName?.trim() || shortAgentKey(input.agentKey),
2616
2671
  ...title ? { title } : {},
@@ -2641,17 +2696,32 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
2641
2696
  const rawArgsWithQueue = (input.rawArgs ?? []).some(
2642
2697
  (arg) => arg === "--queue-file" || arg.startsWith("--queue-file=")
2643
2698
  ) ? input.rawArgs : [...input.rawArgs ?? [], "--queue-file", queuePath];
2644
- const { execPath, childArgs } = buildAgentRunChildCommand(
2645
- {
2646
- rawArgs: rawArgsWithQueue,
2647
- commandPath: input.commandPath,
2648
- cliEntrypointPath: input.cliEntrypointPath,
2649
- messagePath
2650
- },
2651
- deps
2652
- );
2699
+ let childCommand;
2700
+ try {
2701
+ childCommand = buildAgentRunChildCommand(
2702
+ {
2703
+ rawArgs: rawArgsWithQueue,
2704
+ commandPath: input.commandPath,
2705
+ cliEntrypointPath: input.cliEntrypointPath,
2706
+ messagePath
2707
+ },
2708
+ deps
2709
+ );
2710
+ } catch (error) {
2711
+ const result = await settleRunTerminalAuthoritatively(runId, {
2712
+ status: "failed",
2713
+ exitCode: 1,
2714
+ failureReason: error instanceof RuntimeVersionMismatchError ? "runtime_version_mismatch" : "startup_failed",
2715
+ note: String(error)
2716
+ }, resolvedDeps, (id, update, d) => transitionRunToTerminal(id, update, d));
2717
+ if (result.kind === "contended") throw new Error(`Startup settlement lock busy: ${runId}; ${error}`);
2718
+ throw error;
2719
+ }
2720
+ const { execPath, childArgs } = childCommand;
2653
2721
  const childEnv = {
2654
2722
  ...env,
2723
+ NOLO_AGENT_RUN_PROTOCOL: AGENT_RUN_PROTOCOL,
2724
+ NOLO_AGENT_RUN_CONTENT_IDENTITY: HOST_RUNTIME_CONTENT_IDENTITY,
2655
2725
  NOLO_AGENT_RUN_CHILD: "1",
2656
2726
  NOLO_AGENT_RUN_ID: runId,
2657
2727
  ...record.writerLaunch ? { NOLO_WRITER_LAUNCH_ATTEMPT: record.writerLaunch.attemptId } : {}
@@ -2704,24 +2774,42 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
2704
2774
  reservation?.release("spawn_sync_failed");
2705
2775
  if (input.claimLocalWrites) releaseUnspawnedLocalWriterClaim(runId, resolvedDeps);
2706
2776
  } finally {
2707
- finalizeRunRecord(runId, { status: "failed", exitCode: 1, note: String(error) }, resolvedDeps);
2777
+ finalizeRunRecord(runId, { status: "failed", exitCode: 1, failureReason: error instanceof RuntimeVersionMismatchError ? "runtime_version_mismatch" : "startup_failed", note: String(error) }, resolvedDeps);
2708
2778
  }
2709
2779
  throw error;
2710
2780
  } finally {
2711
2781
  fs.closeSync?.(logFd);
2712
2782
  }
2713
2783
  proc.once?.("error", (error) => {
2784
+ let note = String(error);
2714
2785
  try {
2715
2786
  reservation.release("child_error");
2716
2787
  } catch (releaseError) {
2717
- finalizeRunRecord(runId, {
2718
- status: "failed",
2719
- exitCode: 1,
2720
- note: `${error}; reservation release failed: ${releaseError}`
2721
- }, resolvedDeps);
2722
- return;
2788
+ note += `; reservation release failed: ${releaseError}`;
2789
+ }
2790
+ void settleRunTerminalAuthoritatively(runId, {
2791
+ status: "failed",
2792
+ exitCode: 1,
2793
+ failureReason: "startup_failed",
2794
+ note
2795
+ }, resolvedDeps, (id, update, d) => transitionRunToTerminal(id, update, d)).then((result) => {
2796
+ if (result.kind === "contended") throw new Error(`Startup settlement lock busy: ${runId}`);
2797
+ }).catch((error2) => {
2798
+ input.output?.write(`[nolo] background error settlement failed: ${error2}
2799
+ `);
2800
+ });
2801
+ });
2802
+ proc.once?.("exit", (code, signal) => {
2803
+ void settleBackgroundProcessExit(runId, code, signal, resolvedDeps).catch((error) => {
2804
+ input.output?.write(`[nolo] background exit settlement failed: ${error}
2805
+ `);
2806
+ });
2807
+ try {
2808
+ reservation.release("child_exit");
2809
+ } catch (error) {
2810
+ input.output?.write(`[nolo] reservation release failed: ${error}
2811
+ `);
2723
2812
  }
2724
- finalizeRunRecord(runId, { status: "failed", exitCode: 1, note: String(error) }, resolvedDeps);
2725
2813
  });
2726
2814
  const hostMemoryNotice = emitHostMemoryNotice(hostMemory, input.output);
2727
2815
  if (typeof proc.pid === "number") {
@@ -2876,10 +2964,15 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
2876
2964
  if (!record2) return { kind: "not_found" };
2877
2965
  const orphanCorrection = options.allowOverOrphaned === true && record2.status === "orphaned" && (update.status === "done" || update.status === "failed");
2878
2966
  if (isAgentRunTerminalStatus(record2.status) && !orphanCorrection) {
2967
+ if (update.processExit) {
2968
+ record2.processExit = update.processExit;
2969
+ writeRunRecord(record2, deps);
2970
+ }
2879
2971
  return { kind: "kept", record: record2 };
2880
2972
  }
2881
2973
  const now = deps.now ?? (() => /* @__PURE__ */ new Date());
2882
2974
  record2.status = update.status;
2975
+ if (update.processExit) record2.processExit = update.processExit;
2883
2976
  if (typeof update.exitCode === "number") record2.exitCode = update.exitCode;
2884
2977
  if (update.dialogId) record2.dialogId = update.dialogId;
2885
2978
  if (typeof update.credits === "number" && Number.isFinite(update.credits)) {
@@ -2933,7 +3026,7 @@ function transitionRunToTerminal(runId, update, deps = {}, options = {}) {
2933
3026
  };
2934
3027
  record2.resultArtifacts = [...(record2.resultArtifacts ?? []).filter((a) => a.path !== path), artifact];
2935
3028
  };
2936
- if (typeof update.lastAssistantText === "string" && update.lastAssistantText || update.acceptance?.checks.observations?.length) {
3029
+ if (typeof update.lastAssistantText === "string" && update.lastAssistantText || update.acceptance?.checks.observations?.length || update.failureReason === "startup_failed" || update.failureReason === "runtime_protocol_mismatch" || update.failureReason === "runtime_version_mismatch") {
2937
3030
  try {
2938
3031
  const fs = deps.fs ?? nodeFs2;
2939
3032
  const resultFile = join2(resolveRunsDir(deps.env, deps.homedir), `${runId}.result.md`);
@@ -3646,7 +3739,6 @@ export {
3646
3739
  recordRunResultHeaderMeta,
3647
3740
  getRunResultHeaderMeta,
3648
3741
  serverOriginForDialog,
3649
- stripResultFrontMatter,
3650
3742
  isHistoryIntegrityFailure,
3651
3743
  RUN_TERMINAL_STATUSES,
3652
3744
  isRunTerminalStatus,
@@ -3684,6 +3776,7 @@ export {
3684
3776
  readRunRecord,
3685
3777
  backfillRunRecordParentDialog,
3686
3778
  listRunRecords,
3779
+ listRunRecordsAsync,
3687
3780
  findRunRecordByPid,
3688
3781
  findRunRecord,
3689
3782
  DEFAULT_LIST_LIMIT,
@@ -3701,6 +3794,8 @@ export {
3701
3794
  awaitLocalWriterChild,
3702
3795
  resolveLocalContinuation,
3703
3796
  registerLocalForegroundWriter,
3797
+ recordRunStartup,
3798
+ settleBackgroundProcessExit,
3704
3799
  spawnLocalBackgroundRun,
3705
3800
  ackRunRecord,
3706
3801
  DEFAULT_ACK_LEASE_TTL_MS,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  buildStaticUserPolicyContext,
3
3
  resolveSpaceContextPreloadPlan
4
- } from "./chunk-OLMJR6UM.js";
4
+ } from "./chunk-ZXF6D3I6.js";
5
5
  import {
6
6
  fetchReferenceContents,
7
7
  mergeReferences,
8
8
  resolveReferenceAssets,
9
9
  resolveToolsFromKeys
10
- } from "./chunk-L4NFXFFF.js";
10
+ } from "./chunk-MDZWUD3R.js";
11
11
  import {
12
12
  UI_CARD_ENVELOPE_MAX_BYTES,
13
13
  getAllToolRuns,
@@ -18,52 +18,58 @@ import {
18
18
  selectSpaceContextLevel,
19
19
  selectUserTonePreset,
20
20
  uiCardFallback
21
- } from "./chunk-T3T57NVP.js";
22
- import {
23
- getDocState
24
- } from "./chunk-BYH3HMUP.js";
21
+ } from "./chunk-XJPLSAPJ.js";
25
22
  import {
26
23
  resolveToolBaseUrl
27
24
  } from "./chunk-4JVNURX4.js";
25
+ import {
26
+ getDocState
27
+ } from "./chunk-VSYTM22R.js";
28
28
  import {
29
29
  getTableState
30
- } from "./chunk-JHRQXQ4A.js";
30
+ } from "./chunk-GYS5FUYR.js";
31
+ import {
32
+ getCurrentSpaceIdRaw,
33
+ getViewMode
34
+ } from "./chunk-547ENH5T.js";
31
35
  import {
32
36
  PERSONALIZATION_DIALOG_CATEGORY,
33
37
  buildPersonalizationDialogPolicyContext,
34
38
  selectAllMsgs
35
- } from "./chunk-W772FYAQ.js";
36
- import {
37
- getCurrentSpaceIdRaw,
38
- getViewMode
39
- } from "./chunk-MOMR7NMG.js";
39
+ } from "./chunk-R3NEQZ53.js";
40
40
  import {
41
41
  selectPendingFiles
42
42
  } from "./chunk-S2NTVGA2.js";
43
43
  import {
44
44
  read,
45
45
  selectById
46
- } from "./chunk-AVHRSJUH.js";
46
+ } from "./chunk-CMMI3DAT.js";
47
47
  import {
48
48
  getSessionSnapshotForState,
49
49
  selectIdentityUserBalance,
50
50
  selectIdentityUserId
51
51
  } from "./chunk-PXYBUFDB.js";
52
+ import {
53
+ getFinalPrice,
54
+ getModelPricing,
55
+ getPrices,
56
+ hasExplicitAgentPricing
57
+ } from "./chunk-SRCCSTIM.js";
52
58
  import {
53
59
  projectToolMessageContent
54
60
  } from "./chunk-2WZXXAQD.js";
55
61
  import {
56
62
  resolveAgentRecommendedSkillNames,
57
63
  resolveAgentRequiredPackIds
58
- } from "./chunk-EOWLBDY6.js";
64
+ } from "./chunk-FJSNBZXR.js";
59
65
  import {
60
66
  attachmentKind,
61
67
  extractReferenceKeysFromMessage,
62
68
  normalizeAttachmentPart
63
- } from "./chunk-LM2PS3YS.js";
69
+ } from "./chunk-QRGDJA4B.js";
64
70
  import {
65
71
  getModelContextWindow
66
- } from "./chunk-IZIN2UNJ.js";
72
+ } from "./chunk-L32W3PRP.js";
67
73
  import {
68
74
  asRecordOrEmpty
69
75
  } from "./chunk-KX6YBIHG.js";
@@ -79,7 +85,7 @@ import {
79
85
  expandEnabledPackPromptPatches,
80
86
  expandEnabledPacks,
81
87
  resolveEffectiveEnabledPacks
82
- } from "./chunk-GNHMRBYZ.js";
88
+ } from "./chunk-G7IUT2V3.js";
83
89
  import {
84
90
  canonicalizeToolNames,
85
91
  prioritizeToolNames
@@ -93,23 +99,17 @@ import {
93
99
  import {
94
100
  asNonEmptyStringArray
95
101
  } from "./chunk-I42VC5KR.js";
96
- import {
97
- getFinalPrice,
98
- getModelPricing,
99
- getPrices,
100
- hasExplicitAgentPricing
101
- } from "./chunk-LJSNEV7M.js";
102
102
  import {
103
103
  buildLinkedSpacesSection,
104
104
  buildSpaceContextLayer
105
- } from "./chunk-JWXITTQB.js";
105
+ } from "./chunk-3P54D2E4.js";
106
106
  import {
107
107
  asTrimmedString
108
108
  } from "./chunk-3EUW3WEO.js";
109
109
  import {
110
110
  getModelConfig,
111
111
  getProviderByModelName
112
- } from "./chunk-KYH7XW3K.js";
112
+ } from "./chunk-CD3RU7XL.js";
113
113
  import {
114
114
  isRecord
115
115
  } from "./chunk-KUG52IAP.js";
@@ -5,7 +5,7 @@ import {
5
5
  mapDiscoveredSkillsToCatalogEntries,
6
6
  resolveSkillCatalog,
7
7
  resolveSkillCatalogSync
8
- } from "./chunk-JWXITTQB.js";
8
+ } from "./chunk-3P54D2E4.js";
9
9
  import {
10
10
  load
11
11
  } from "./chunk-KHCLMKZZ.js";
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-2VA6TU4I.js";
5
+ } from "./chunk-D6YNCNM6.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-GBWGPTA7.js";