nolo-cli 0.212.0-alpha.1 → 0.219.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/README.md +3 -2
  2. package/{_executeModel-KE6MBNUJ.js → _executeModel-WW57SJN4.js} +111 -82
  3. package/{accountResolver-4LKIHEKL.js → accountResolver-EK2S4PWF.js} +6 -6
  4. package/{action-DF5UYSJF.js → action-CK64LS6S.js} +12 -11
  5. package/{addContentAction-N2YC5IL3.js → addContentAction-EQXMFNPR.js} +18 -17
  6. package/{addDialogAgentAction-3NKVQCEC.js → addDialogAgentAction-RSDZDASD.js} +21 -20
  7. package/{agentDeleteCommand-NWK7VU4N.js → agentDeleteCommand-X2VWEKUA.js} +127 -118
  8. package/{agentEmailCommands-UZ4DHEX2.js → agentEmailCommands-6IE773VW.js} +132 -124
  9. package/{agentFavoriteCommands-EDK743YA.js → agentFavoriteCommands-2LKGKSUD.js} +7 -8
  10. package/{agentGrantCommands-RQWK2TEV.js → agentGrantCommands-QQV4N4JW.js} +5 -5
  11. package/{agentListCommands-HE7L2A6L.js → agentListCommands-5UNM7CGG.js} +196 -124
  12. package/{agentMachineCommands-6TE4MBMP.js → agentMachineCommands-EVWFKK6Q.js} +62 -53
  13. package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-ZCH37KAL.js} +5 -5
  14. package/{agentPullCommand-6EM3URVK.js → agentPullCommand-XN6ZPBUW.js} +7 -7
  15. package/agentRecordCommands-DX2WE6BH.js +176 -0
  16. package/agentRunCommand-KGOT2AFB.js +206 -0
  17. package/{agentRunControl-OI3LOENH.js → agentRunControl-QDFW5P2T.js} +30 -15
  18. package/{agentRuntimeLocal-HL526DNQ.js → agentRuntimeLocal-SD7U2EGY.js} +52 -45
  19. package/{agentSlice-TMYP2UEA.js → agentSlice-ACZGTZVW.js} +20 -19
  20. package/{appDeleteCommands-ZERW4AXY.js → appDeleteCommands-NE3NQQJL.js} +61 -52
  21. package/{appDeployCommands-DUWSMYHL.js → appDeployCommands-2BAHY522.js} +61 -52
  22. package/{appDeployStatusCommands-N2KIE4BF.js → appDeployStatusCommands-JTW6LZNC.js} +61 -52
  23. package/{appGetCommands-YVR4NPVY.js → appGetCommands-WKFEJO6A.js} +61 -52
  24. package/{appListCommands-JS6HOHZS.js → appListCommands-HNAZZLFX.js} +61 -52
  25. package/{authCommand-FE2C3ZUM.js → authCommand-4FDPL7WG.js} +29 -28
  26. package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
  27. package/{builtinSkillRegistry-3YOIGEF6.js → builtinSkillRegistry-PXH7EGQB.js} +11 -13
  28. package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
  29. package/{chromeOpsCommands-HEN5AX2J.js → chromeOpsCommands-YKX2QX3A.js} +20 -10
  30. package/chunk-2KTUDBG7.js +675 -0
  31. package/{chunk-TCZHTTUU.js → chunk-2OLYKYNY.js} +8 -8
  32. package/{chunk-PYRUW7XN.js → chunk-2VUZSVAS.js} +136 -54
  33. package/chunk-2YGBI2XB.js +30 -0
  34. package/chunk-2ZKFCIJJ.js +13 -0
  35. package/{chunk-3FOQHGHN.js → chunk-3ESU44FG.js} +4 -4
  36. package/{chunk-GNDJKC4B.js → chunk-3N4ASIP6.js} +29 -29
  37. package/{chunk-4KB6WQUL.js → chunk-4A2JIXR2.js} +1 -1
  38. package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
  39. package/{chunk-IJXYFTV7.js → chunk-4NMHE7CX.js} +20 -20
  40. package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
  41. package/chunk-5OZC7R7Y.js +97 -0
  42. package/chunk-5R63B62U.js +364 -0
  43. package/{chunk-LKDF3ATR.js → chunk-5RKUPJYL.js} +1 -1
  44. package/{chunk-5AQR3DGV.js → chunk-652XYZGP.js} +80 -11
  45. package/{chunk-6OQUPIQF.js → chunk-65XXHYZ5.js} +4 -4
  46. package/{chunk-IF45XG7K.js → chunk-6D7NVU66.js} +40 -24
  47. package/{chunk-DM6UMOEL.js → chunk-6NKA6RKF.js} +2 -2
  48. package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
  49. package/{chunk-H2TJUNCH.js → chunk-6RQFZCKH.js} +18 -18
  50. package/{chunk-OOF4UPC5.js → chunk-7UH3DGV6.js} +17 -159
  51. package/{chunk-M6RL5JCD.js → chunk-7WPAI5JJ.js} +14 -14
  52. package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
  53. package/{chunk-3AKFVZ2I.js → chunk-AFHOCBSP.js} +3 -3
  54. package/{chunk-HPFCI4SK.js → chunk-AK5O76CC.js} +3 -3
  55. package/{chunk-Y63ZSOR6.js → chunk-AL3TYDIF.js} +1 -1
  56. package/{chunk-PJNFNEJE.js → chunk-AMEOV5VZ.js} +59 -13
  57. package/chunk-AVHRSJUH.js +1621 -0
  58. package/{chunk-IAPCBNEE.js → chunk-BGGHA5DV.js} +1 -1
  59. package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
  60. package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
  61. package/{chunk-D2MDMY2M.js → chunk-BV3FLP2L.js} +47 -1
  62. package/{chunk-25JZEIXN.js → chunk-C4VAR65S.js} +92 -150
  63. package/{chunk-AVTVGMDY.js → chunk-C4WTX5TU.js} +2 -2
  64. package/{chunk-F6UUQOG6.js → chunk-CKT6QUE2.js} +4 -4
  65. package/{chunk-6VLJ6YA7.js → chunk-CXDPIPZ4.js} +9 -9
  66. package/{secretCommands-4QS3HCA2.js → chunk-D726I5AZ.js} +191 -16
  67. package/{chunk-4KH4J3G5.js → chunk-DJSTBAOU.js} +19 -7
  68. package/chunk-DVQH4BTR.js +1137 -0
  69. package/{chunk-7OCO4TDT.js → chunk-EGXPAWLG.js} +1 -1
  70. package/chunk-EOWLBDY6.js +142 -0
  71. package/chunk-EUCFKKDM.js +247 -0
  72. package/chunk-EWQ3HGNZ.js +90 -0
  73. package/{chunk-NJR3WKVP.js → chunk-F3TQURKK.js} +281 -159
  74. package/{chunk-GSQNH63I.js → chunk-FIYSMXHY.js} +3 -19
  75. package/{chunk-KSTEXKL6.js → chunk-FJ23FZXF.js} +76 -31
  76. package/{chunk-NOMIGOST.js → chunk-FRSBYNWI.js} +116 -124
  77. package/{chunk-VZKUKCA6.js → chunk-FVZW66K4.js} +3676 -243
  78. package/{chunk-YUA6OAH5.js → chunk-G2EJ7NL4.js} +2 -2
  79. package/{chunk-OXME3PEE.js → chunk-GBWGPTA7.js} +2 -1
  80. package/{chunk-MMNYUVLW.js → chunk-GGKNJ42M.js} +11 -77
  81. package/{chunk-INSBKSBB.js → chunk-GIABSSWQ.js} +4 -4
  82. package/{chunk-EZFQ6XRV.js → chunk-GNHMRBYZ.js} +861 -59
  83. package/{chunk-IIQ6JGRI.js → chunk-GVGOEMNV.js} +2 -2
  84. package/{chunk-WXYLV624.js → chunk-H7R3365N.js} +4 -4
  85. package/chunk-HCJFGH6Y.js +1382 -0
  86. package/{chunk-YUXQAVRD.js → chunk-HOCHUZQ7.js} +257 -90
  87. package/{chunk-Y2WUYX4I.js → chunk-HXER7YJF.js} +4 -4
  88. package/{chunk-CTPXME7U.js → chunk-IWH5SOU4.js} +29 -6
  89. package/{chunk-INN4LTAJ.js → chunk-IWQAOW2X.js} +2 -2
  90. package/{chunk-RPQXPZZF.js → chunk-J6T25AJ6.js} +908 -13
  91. package/{chunk-KIM6CLW5.js → chunk-JC5XLWZK.js} +42 -15
  92. package/chunk-JVRQ6YVK.js +99 -0
  93. package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
  94. package/{chunk-HIRC32DV.js → chunk-K5FNYHZC.js} +543 -29
  95. package/{chunk-RU4SD66C.js → chunk-KAVGK4ES.js} +30 -254
  96. package/{chunk-JNKSDZFS.js → chunk-KEN3N2TN.js} +310 -66
  97. package/{chunk-LEC5ALIN.js → chunk-KEPOVMF4.js} +1 -1
  98. package/{chunk-Y6ORVLSS.js → chunk-KN3HEZIQ.js} +1 -1
  99. package/{chunk-D5RCRX4A.js → chunk-KO63FPG3.js} +9415 -5169
  100. package/{chunk-OHNELDTO.js → chunk-KOXKKHFE.js} +11 -152
  101. package/{chunk-4VJAC32I.js → chunk-L5I543VB.js} +3 -2
  102. package/{chunk-SM3NSZJV.js → chunk-LE6LGAJE.js} +20 -1
  103. package/chunk-LKA64WH4.js +227 -0
  104. package/{chunk-VL5KOY2C.js → chunk-MK2Q7ZJD.js} +67 -5
  105. package/{chunk-22CIEBYO.js → chunk-MKQ2UTTX.js} +50 -48
  106. package/chunk-MOMR7NMG.js +226 -0
  107. package/{chunk-PDGKOTO7.js → chunk-N3J4VDGV.js} +33 -22
  108. package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
  109. package/{chunk-5RYBGBQH.js → chunk-N7HVLYOY.js} +14 -9
  110. package/{chunk-GPO7FCEZ.js → chunk-O2CYENYJ.js} +1331 -1725
  111. package/{chunk-3RQVYR4B.js → chunk-OB6DVWPF.js} +197 -65
  112. package/{chunk-HRMJUN5J.js → chunk-OGHP3CTL.js} +1 -1
  113. package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
  114. package/{chunk-G7MLNNEX.js → chunk-OOF7XDZF.js} +5 -5
  115. package/{chunk-CJRONOYL.js → chunk-OXKUPBAQ.js} +19 -75
  116. package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
  117. package/{chunk-UTV2AYEG.js → chunk-PFJNLBRU.js} +2 -2
  118. package/{chunk-CKAHAVMK.js → chunk-PPJYZRSQ.js} +40 -26
  119. package/chunk-PVZY6P3S.js +271 -0
  120. package/{chunk-ZL5RAEEB.js → chunk-Q6HOUF4O.js} +1 -1
  121. package/{chunk-QT6PKHYJ.js → chunk-Q7WP5RPC.js} +5 -5
  122. package/chunk-QHEN7NZ7.js +46 -0
  123. package/{chunk-JIT6FSXJ.js → chunk-QLFCTYRH.js} +3 -3
  124. package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
  125. package/{chunk-YPD3VJZW.js → chunk-QWYFFHCJ.js} +20 -20
  126. package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
  127. package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
  128. package/{chunk-YJMRHHGY.js → chunk-S7SB7L2I.js} +60 -30
  129. package/{chunk-W4S457LU.js → chunk-SASHAZ67.js} +41 -5
  130. package/{chunk-KC4XDTT3.js → chunk-SOF4OWDM.js} +6 -4
  131. package/{chunk-YWSEPJ7C.js → chunk-SRL56PI2.js} +3 -3
  132. package/{chunk-6NSSLV67.js → chunk-SYQR7FQS.js} +52 -50
  133. package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
  134. package/{chunk-CQ46IRNN.js → chunk-T3O6BLYU.js} +447 -203
  135. package/chunk-TLE77UJ5.js +230 -0
  136. package/{chunk-T43B7LB2.js → chunk-TRWT3EE3.js} +1 -1
  137. package/{chunk-FHU44LN3.js → chunk-TVFRV3UQ.js} +2179 -552
  138. package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
  139. package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
  140. package/{chunk-LOEO7LRC.js → chunk-UJKTI5PG.js} +10 -7
  141. package/{chunk-UHJGXRJ4.js → chunk-UMRI2IRY.js} +3 -3
  142. package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
  143. package/{chunk-YOIW77S2.js → chunk-UYOICCYG.js} +29 -19
  144. package/{chunk-GOO6G4PY.js → chunk-VALBGPM6.js} +106 -50
  145. package/{chunk-B7NJ3T4A.js → chunk-VHPAA6MT.js} +10 -10
  146. package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
  147. package/{chunk-SOHTHFV2.js → chunk-XFJ4ZPFC.js} +91 -132
  148. package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
  149. package/chunk-XWGDCWXY.js +526 -0
  150. package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
  151. package/{chunk-EYLGAEB4.js → chunk-YGMBIXCF.js} +132 -0
  152. package/chunk-YL3EFYL3.js +199 -0
  153. package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
  154. package/chunk-YZMNK53S.js +68 -0
  155. package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
  156. package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-PO3MVDME.js} +15 -16
  157. package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
  158. package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
  159. package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-VPSJ4XWC.js} +3 -3
  160. package/{cliExecutor-BWBF2MTI.js → cliExecutor-4MAX3PZL.js} +2 -2
  161. package/cliLocalAgentRecordReader-Z7CH4K4R.js +90 -0
  162. package/{commandRegistry-VVMTPFAX.js → commandRegistry-SDSYBKMC.js} +106 -98
  163. package/{contentThunks-N52O67MI.js → contentThunks-G3TRPEAU.js} +47 -43
  164. package/{cooldownCommands-YXLWOXWR.js → cooldownCommands-X7P5M2V5.js} +5 -4
  165. package/{createAgentAutomationAction-ZC57YRSV.js → createAgentAutomationAction-KHA4MXUJ.js} +51 -49
  166. package/{createDialogAction-VQW5WDYX.js → createDialogAction-KWSBNAPJ.js} +46 -48
  167. package/{createPageAction-M5VDA7SC.js → createPageAction-HXKJ7OFG.js} +50 -48
  168. package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
  169. package/{db-HUCI5R4G.js → db-CS4ZJQKV.js} +1 -1
  170. package/{dbSlice-HP7G4LX3.js → dbSlice-ZJPDIFER.js} +17 -16
  171. package/{deleteFile-7VQGLK2V.js → deleteFile-Q3YDB4ML.js} +9 -9
  172. package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
  173. package/{dialogCommands-JHMR2N2Y.js → dialogCommands-6KQEBHSG.js} +64 -57
  174. package/dialogNotifyCommand-WIZFFEY3.js +36 -0
  175. package/{dialogSlice-GRSVGDTF.js → dialogSlice-HXPKFGRL.js} +42 -40
  176. package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
  177. package/{docCreateCommands-F2K3UPSQ.js → docCreateCommands-XZOLWBRC.js} +61 -54
  178. package/{docDeleteCommands-XGXB5RFT.js → docDeleteCommands-ZSO4LGWE.js} +63 -57
  179. package/{docReadCommands-7HWZZV6J.js → docReadCommands-TTMXCDER.js} +61 -54
  180. package/{docStore-KNZK6Y2G.js → docStore-A2B3GH33.js} +21 -20
  181. package/{docUpdateCommands-OZZ7NQII.js → docUpdateCommands-PRG6WOXL.js} +64 -57
  182. package/{fetchMessages-M3QU7ZCQ.js → fetchMessages-TQEUZD7H.js} +8 -7
  183. package/{getPricing-2MNMXEVG.js → getPricing-YH3VMSVU.js} +6 -6
  184. package/{handleSendMessageAction-SHIH74GJ.js → handleSendMessageAction-NWYG3Q72.js} +193 -301
  185. package/{hostCredentialCreate-X64WK4JD.js → hostCredentialCreate-WS6D3EHT.js} +123 -114
  186. package/index.js +29 -29
  187. package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
  188. package/legacyMigration-TF4SYJCZ.js +19 -0
  189. package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
  190. package/{localDialogRead-XRLAH4CZ.js → localDialogRead-SVTPA5GY.js} +3 -3
  191. package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
  192. package/localRecall-2J6QPOK2.js +15 -0
  193. package/{localRuntimeAdapter-A7K3ABA6.js → localRuntimeAdapter-TFYOA6YE.js} +119 -110
  194. package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
  195. package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
  196. package/{machineCommands-DE3MR7CJ.js → machineCommands-WFWV25IR.js} +128 -119
  197. package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
  198. package/machineWsRunDispatch-ZGXC3F2R.js +191 -0
  199. package/{memberThunks-7WJAY5V6.js → memberThunks-JRYNONYV.js} +29 -28
  200. package/{memoryCommands-ASCE5STX.js → memoryCommands-5WC3T66U.js} +4 -4
  201. package/models-CXINDUJA.js +9 -0
  202. package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
  203. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-4IC3Y4C6.js} +4 -4
  204. package/overlay-THLKYIWY.js +11 -0
  205. package/package.json +2 -2
  206. package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
  207. package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
  208. package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
  209. package/{projectArchive-GGL5HLMD.js → projectArchive-ULJDLUA6.js} +52 -50
  210. package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-SHT2SUVB.js} +19 -12
  211. package/{providerRegistry-S6UL6UNA.js → providerRegistry-TA7EGCVZ.js} +10 -10
  212. package/{read-4VZQODSN.js → read-Q7GOHGNP.js} +10 -10
  213. package/{readDocTool-AVD32RUJ.js → readDocTool-Z5OQ6422.js} +2 -2
  214. package/{readlineWorkspace-XKYKNL2I.js → readlineWorkspace-LTCV2BFW.js} +6505 -4634
  215. package/{removeDialogAgentAction-FKL4BYMR.js → removeDialogAgentAction-U3F2MNAY.js} +23 -22
  216. package/{runAgentClientLoop-V7E2WBVM.js → runAgentClientLoop-BVIEQUB3.js} +81 -79
  217. package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-I47JN4HS.js} +12 -12
  218. package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
  219. package/secretCommands-LJXOOYA7.js +24 -0
  220. package/{setDialogExtraReferencesAction-TLIOLWWI.js → setDialogExtraReferencesAction-G3WSJ7EM.js} +22 -21
  221. package/{setPrimaryDialogAgentAction-2OLWRFYR.js → setPrimaryDialogAgentAction-6FHAHZBB.js} +23 -22
  222. package/{settingThunks-UGBPCNYF.js → settingThunks-AXTBX3Q5.js} +97 -88
  223. package/{skillDiscovery-XKHROSH2.js → skillDiscovery-B5V23AXP.js} +4 -4
  224. package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
  225. package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
  226. package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
  227. package/{spaceCommands-4KSLKVNF.js → spaceCommands-IB6FKWIC.js} +61 -53
  228. package/store-JRVN62NM.js +46 -0
  229. package/{streamAgentChatTurn-7FR7X2NU.js → streamAgentChatTurn-DNYFHBJM.js} +875 -618
  230. package/{switchDialogAgentAction-UZSAG2N5.js → switchDialogAgentAction-UOFIAGPL.js} +21 -20
  231. package/{tableCommands-MP6VFSVT.js → tableCommands-HITDSLHS.js} +10 -10
  232. package/tombstones-FQQMEDOW.js +32 -0
  233. package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
  234. package/{tools-ZLKCC25W.js → tools-JVOJ5HC4.js} +75 -74
  235. package/tuiSummaryLlmCaller-7LWYTHLM.js +44 -0
  236. package/{updateCommands-4744PL3P.js → updateCommands-RJVCRSBP.js} +10 -8
  237. package/{updateDialogTitleAction-U53ZT7PJ.js → updateDialogTitleAction-Q57BOSXG.js} +48 -46
  238. package/{usageCommand-F4IPVMIZ.js → usageCommand-RVKHEPLU.js} +11 -10
  239. package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-GRAFOZF2.js} +12 -11
  240. package/userDataMerge-HT2ZVHBJ.js +13 -0
  241. package/{windowsSelfUpdate-XSQVF2GK.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
  242. package/{workloadLifecycle-4BEQHMSD.js → workloadLifecycle-O2I3NZ2Q.js} +7 -6
  243. package/agentRecordCommands-L3QQ7HZ4.js +0 -167
  244. package/agentRunCommand-2IFGQHCO.js +0 -196
  245. package/chunk-3CGG2PAL.js +0 -594
  246. package/chunk-5XBUWM6I.js +0 -89
  247. package/chunk-BFM34N54.js +0 -842
  248. package/chunk-CJEIOP3E.js +0 -0
  249. package/chunk-CZM5YTZ7.js +0 -977
  250. package/chunk-EYUBHHFB.js +0 -636
  251. package/chunk-JTDORD5P.js +0 -415
  252. package/chunk-NRFKLKRU.js +0 -339
  253. package/chunk-VPAZOH2D.js +0 -115
  254. package/chunk-WJZOQR2J.js +0 -151
  255. package/chunk-ZCWRMUWT.js +0 -89
  256. package/dist-M676ULYG.js +0 -7314
  257. package/machineWsRunDispatch-R26P5V36.js +0 -182
  258. package/models-PJBE6JDV.js +0 -9
  259. package/tuiSummaryLlmCaller-WC54MVGP.js +0 -160
  260. package/{chunk-WACI5I6V.js → chunk-2THCNKE4.js} +3 -3
  261. package/{chunk-2QHFH3DR.js → chunk-47ITIXO7.js} +6 -6
  262. package/{chunk-OQHIVPG4.js → chunk-SNBZZPYH.js} +3 -3
  263. package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
@@ -8,7 +8,7 @@ import {
8
8
  noloUploadRequest,
9
9
  noloWriteRequest,
10
10
  syncWithServers
11
- } from "./chunk-P5L7CXOC.js";
11
+ } from "./chunk-7Z6EW7AH.js";
12
12
  import {
13
13
  getAllServers,
14
14
  getIsDesktopApp
@@ -18,28 +18,31 @@ import {
18
18
  selectIdentityUser,
19
19
  selectIdentityUserId
20
20
  } from "./chunk-PXYBUFDB.js";
21
+ import {
22
+ isTombstoneRecord
23
+ } from "./chunk-BV3FLP2L.js";
24
+ import {
25
+ asTrimmedString
26
+ } from "./chunk-3EUW3WEO.js";
21
27
  import {
22
28
  isRecord
23
29
  } from "./chunk-KUG52IAP.js";
30
+ import {
31
+ asOptionalPositiveFiniteNumber
32
+ } from "./chunk-U6VC4MU4.js";
24
33
  import {
25
34
  SERVERS,
26
35
  normalizeKnownServerOrigin
27
36
  } from "./chunk-LCBAMY2M.js";
37
+ import {
38
+ asOptionalTrimmedString
39
+ } from "./chunk-G3SUCT4W.js";
28
40
  import {
29
41
  isLocalServerUrl
30
42
  } from "./chunk-4SN6J65J.js";
31
43
  import {
32
44
  normalizeServerOrigin
33
45
  } from "./chunk-CF7PE763.js";
34
- import {
35
- asOptionalPositiveFiniteNumber
36
- } from "./chunk-U6VC4MU4.js";
37
- import {
38
- asTrimmedString
39
- } from "./chunk-3EUW3WEO.js";
40
- import {
41
- asOptionalTrimmedString
42
- } from "./chunk-G3SUCT4W.js";
43
46
 
44
47
  // packages/app/stateViews/runtime.ts
45
48
  var selectCurrentToken = (state) => {
@@ -184,8 +187,16 @@ var parseOwnerUserIdFromDbKey = (dbKey, options = {}) => {
184
187
  }
185
188
  return null;
186
189
  }
187
- if (parts[0] === "dialog" && parts[2] === "msg") {
188
- return null;
190
+ if (prefix === "dialog") {
191
+ const messageSeparator = normalized.lastIndexOf("-msg-");
192
+ if (messageSeparator !== -1) {
193
+ const dialogPrefix = normalized.slice("dialog-".length, messageSeparator);
194
+ const candidateOwner2 = resolveCandidateOwnerFromKeyRemainder(
195
+ dialogPrefix,
196
+ options.candidateOwnerUserIds
197
+ );
198
+ return candidateOwner2 && dialogPrefix.length > candidateOwner2.length + 1 ? candidateOwner2 : null;
199
+ }
189
200
  }
190
201
  const ownerAndRest = normalized.slice(prefix.length + 1);
191
202
  const candidateOwner = resolveCandidateOwnerFromKeyRemainder(
@@ -200,6 +211,48 @@ var parseOwnerUserIdFromDbKey = (dbKey, options = {}) => {
200
211
  return ownerUserId;
201
212
  };
202
213
 
214
+ // packages/database/authority/deviceLocal.ts
215
+ var DEVICE_LOCAL_OWNER_ID = "local";
216
+ var DEVICE_LOCAL_DB_KEY_PREFIXES = [
217
+ "dialog-local-",
218
+ "agent-local-"
219
+ ];
220
+ var clean = (value) => asOptionalTrimmedString(value) ?? null;
221
+ var isDeviceLocalOwnerId = (userId) => clean(userId) === DEVICE_LOCAL_OWNER_ID;
222
+ var resolveEffectiveSpaceActorId = (accountUserId) => {
223
+ const cleaned = clean(accountUserId);
224
+ if (!cleaned || isDeviceLocalOwnerId(cleaned)) {
225
+ return DEVICE_LOCAL_OWNER_ID;
226
+ }
227
+ return cleaned;
228
+ };
229
+ var isDeviceLocalSpaceMembership = (membership) => isDeviceLocalOwnerId(membership?.userId);
230
+ var isDeviceLocalSpaceBody = (space) => isDeviceLocalOwnerId(space?.userId) || isDeviceLocalOwnerId(space?.ownerId);
231
+ var isDeviceLocalDbKey = (dbKey) => {
232
+ const key = clean(dbKey);
233
+ if (!key) return false;
234
+ for (const prefix of DEVICE_LOCAL_DB_KEY_PREFIXES) {
235
+ if (key.startsWith(prefix)) return true;
236
+ }
237
+ return parseOwnerUserIdFromDbKey(key, {
238
+ candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
239
+ }) === DEVICE_LOCAL_OWNER_ID;
240
+ };
241
+ var resolveRecordOwnerUserId = (record) => {
242
+ if (!record) return null;
243
+ const explicit = clean(record.userId);
244
+ if (explicit) return explicit;
245
+ if (isDeviceLocalDbKey(record.dbKey) || isDeviceLocalDbKey(record.id)) {
246
+ return DEVICE_LOCAL_OWNER_ID;
247
+ }
248
+ const fromKey = parseOwnerUserIdFromDbKey(clean(record.dbKey) ?? "", {
249
+ candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
250
+ }) ?? parseOwnerUserIdFromDbKey(clean(record.id) ?? "", {
251
+ candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
252
+ });
253
+ return fromKey;
254
+ };
255
+
203
256
  // packages/database/authority/userAuthorityRegistry.ts
204
257
  var normalizeAuthorityServerOrigin = (value) => {
205
258
  const normalized = normalizeServerOrigin(value);
@@ -285,6 +338,23 @@ var partitionReadServers = ({
285
338
  };
286
339
  };
287
340
  var compareRemoteRecordsByComparableTime = (left, right) => toComparableTimestamp(left) - toComparableTimestamp(right);
341
+ var isPageRecord = (record) => {
342
+ if (!record || typeof record !== "object") return false;
343
+ if (typeof record.type === "string") return record.type === "page";
344
+ return typeof record.dbKey === "string" && record.dbKey.startsWith("page-");
345
+ };
346
+ var hasRecordBodyPayload = (record) => {
347
+ if (!record || typeof record !== "object") return false;
348
+ if (Array.isArray(record.slateData)) return true;
349
+ return typeof record.content === "string";
350
+ };
351
+ var shouldPreferRemoteBodyOverLocalProjection = (localData, remoteData) => {
352
+ if (!isPageRecord(localData) || !isPageRecord(remoteData)) return false;
353
+ if (isTombstoneRecord(localData) || isTombstoneRecord(remoteData)) return false;
354
+ if (!hasRecordBodyPayload(remoteData)) return false;
355
+ if (hasRecordBodyPayload(localData)) return false;
356
+ return compareRemoteRecordsByComparableTime(localData, remoteData) <= 0;
357
+ };
288
358
  var pickBestSettledRemoteRecord = ({
289
359
  settledResults,
290
360
  isBetterCandidate
@@ -306,6 +376,7 @@ var shouldReplaceLocalWithRemoteRecord = ({
306
376
  }) => {
307
377
  if (!remoteData || typeof remoteData !== "object") return false;
308
378
  if (!localData || typeof localData !== "object") return true;
379
+ if (shouldPreferRemoteBodyOverLocalProjection(localData, remoteData)) return true;
309
380
  return isRemoteNewer(remoteData, localData);
310
381
  };
311
382
  var shouldReplicateLocalRecord = ({
@@ -360,53 +431,13 @@ var planServersForTenant = (allServers, currentServer, tenantId) => {
360
431
  return Array.from(set);
361
432
  };
362
433
 
363
- // packages/database/authority/deviceLocal.ts
364
- var DEVICE_LOCAL_OWNER_ID = "local";
365
- var DEVICE_LOCAL_DB_KEY_PREFIXES = [
366
- "dialog-local-",
367
- "agent-local-"
368
- ];
369
- var clean = (value) => asOptionalTrimmedString(value) ?? null;
370
- var isDeviceLocalOwnerId = (userId) => clean(userId) === DEVICE_LOCAL_OWNER_ID;
371
- var resolveEffectiveSpaceActorId = (accountUserId) => {
372
- const cleaned = clean(accountUserId);
373
- if (!cleaned || isDeviceLocalOwnerId(cleaned)) {
374
- return DEVICE_LOCAL_OWNER_ID;
375
- }
376
- return cleaned;
377
- };
378
- var isDeviceLocalSpaceMembership = (membership) => isDeviceLocalOwnerId(membership?.userId);
379
- var isDeviceLocalSpaceBody = (space) => isDeviceLocalOwnerId(space?.userId) || isDeviceLocalOwnerId(space?.ownerId);
380
- var isDeviceLocalDbKey = (dbKey) => {
381
- const key = clean(dbKey);
382
- if (!key) return false;
383
- for (const prefix of DEVICE_LOCAL_DB_KEY_PREFIXES) {
384
- if (key.startsWith(prefix)) return true;
385
- }
386
- return parseOwnerUserIdFromDbKey(key, {
387
- candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
388
- }) === DEVICE_LOCAL_OWNER_ID;
389
- };
390
- var resolveRecordOwnerUserId = (record) => {
391
- if (!record) return null;
392
- const explicit = clean(record.userId);
393
- if (explicit) return explicit;
394
- if (isDeviceLocalDbKey(record.dbKey) || isDeviceLocalDbKey(record.id)) {
395
- return DEVICE_LOCAL_OWNER_ID;
396
- }
397
- const fromKey = parseOwnerUserIdFromDbKey(clean(record.dbKey) ?? "", {
398
- candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
399
- }) ?? parseOwnerUserIdFromDbKey(clean(record.id) ?? "", {
400
- candidateOwnerUserIds: [DEVICE_LOCAL_OWNER_ID]
401
- });
402
- return fromKey;
403
- };
404
-
405
434
  // packages/database/actions/writeAck.ts
435
+ var DEFAULT_WRITE_ACK_TIMEOUT_MS = 1500;
406
436
  var ACK_ENTRY_RETENTION_MS = 1e4;
407
437
  var ACK_ENTRY_MAX = 256;
408
438
  var replicationTargetKey = (server) => normalizeKnownServerOrigin(server) ?? normalizeServerOrigin(server);
409
439
  var ackEntries = /* @__PURE__ */ new Map();
440
+ var nowMs = () => typeof performance !== "undefined" ? performance.now() : Date.now();
410
441
  var sweepAckEntries = () => {
411
442
  const wallClock = Date.now();
412
443
  for (const [key, entry] of ackEntries) {
@@ -475,6 +506,54 @@ var beginWriteAck = (dbKey) => {
475
506
  markAborted: () => entry.settle("aborted")
476
507
  };
477
508
  };
509
+ var waitForWriteAck = async (dbKey, options = {}) => {
510
+ const timeoutMs = options.timeoutMs ?? DEFAULT_WRITE_ACK_TIMEOUT_MS;
511
+ const entry = ackEntries.get(dbKey);
512
+ if (!entry) {
513
+ return {
514
+ outcome: { status: "unknown" },
515
+ timedOut: false,
516
+ waitedMs: 0,
517
+ waitTarget: "none"
518
+ };
519
+ }
520
+ const targetKey = replicationTargetKey(options.targetServer);
521
+ let ack = entry.promise;
522
+ let waitTarget = "primary";
523
+ if (targetKey) {
524
+ const targetAck = entry.targetAcks.get(targetKey);
525
+ if (targetAck) {
526
+ ack = targetAck;
527
+ waitTarget = "run-target";
528
+ } else if (entry.planRegistered) {
529
+ waitTarget = "primary-fallback";
530
+ console.warn(
531
+ `[WriteAck] run target ${targetKey} is not in this write's replication plan [${entry.servers.join(
532
+ ", "
533
+ )}] for ${dbKey}; waiting on primary ${entry.primaryTargetKey ?? "unknown"} instead`
534
+ );
535
+ }
536
+ }
537
+ const startedAt = nowMs();
538
+ let timer;
539
+ const raced = await Promise.race([
540
+ ack,
541
+ new Promise((resolve) => {
542
+ timer = setTimeout(() => resolve(null), Math.max(0, timeoutMs));
543
+ })
544
+ ]);
545
+ if (timer !== void 0) clearTimeout(timer);
546
+ const waitedMs = nowMs() - startedAt;
547
+ if (raced === null) {
548
+ return {
549
+ outcome: { status: "pending" },
550
+ timedOut: true,
551
+ waitedMs,
552
+ waitTarget
553
+ };
554
+ }
555
+ return { outcome: { status: raced }, timedOut: false, waitedMs, waitTarget };
556
+ };
478
557
 
479
558
  // packages/database/actions/replication.ts
480
559
  var isReadonlyPublicRecordKey = (dbKey) => dbKey.startsWith("agent-pub-");
@@ -851,10 +930,13 @@ export {
851
930
  isDeviceLocalSpaceMembership,
852
931
  isDeviceLocalSpaceBody,
853
932
  resolveRecordOwnerUserId,
933
+ resolveUserAuthorityServer,
854
934
  resolveRecordAuthority,
855
935
  beginWriteAck,
936
+ waitForWriteAck,
856
937
  partitionReadServers,
857
938
  compareRemoteRecordsByComparableTime,
939
+ shouldPreferRemoteBodyOverLocalProjection,
858
940
  pickBestSettledRemoteRecord,
859
941
  shouldReplaceLocalWithRemoteRecord,
860
942
  shouldReplicateLocalRecord,
@@ -0,0 +1,30 @@
1
+ // packages/cli/client/browserShellApprovalClient.ts
2
+ var BROWSER_SHELL_BRIDGE_ENV = "NOLO_BROWSER_SHELL_BRIDGE";
3
+ async function requestBrowserShellAction(args) {
4
+ const raw = args.env[BROWSER_SHELL_BRIDGE_ENV];
5
+ if (!raw || !["eval_script", "click", "type", "press", "set_select_value"].includes(args.action)) {
6
+ return args.execute(args.action, args.payload);
7
+ }
8
+ const transports = JSON.parse(raw);
9
+ const transport = transports[args.browser];
10
+ const url = new URL(transport.endpoint);
11
+ if (url.protocol !== "http:" || url.hostname !== "127.0.0.1" || url.pathname !== "/approval" || url.username || url.password) throw new Error("Invalid browser host transport");
12
+ const send = async (body) => {
13
+ const response = await fetch(url, { method: "POST", headers: { authorization: `Bearer ${transport.capability}`, "content-type": "application/json" }, body: JSON.stringify(body), signal: AbortSignal.timeout(6e4), redirect: "error" });
14
+ if (!response.ok) throw new Error("Browser host unavailable");
15
+ return await response.json();
16
+ };
17
+ const payload = structuredClone(args.payload);
18
+ const prepared = await send({ op: "prepare", action: args.action, browser: args.browser, payload });
19
+ const result = prepared.result?.result;
20
+ if (!result) throw new Error("Browser host rejected original action");
21
+ if (result.code !== "USER_APPROVAL_PENDING") return result;
22
+ const decision = await send({ approvalId: result.approvalId, browser: args.browser });
23
+ if (decision.status !== "retry_once") return { ...result, message: "Host approval was not granted; action not executed." };
24
+ return args.execute(args.action, { ...payload, approvalId: result.approvalId, hostApproval: true });
25
+ }
26
+
27
+ export {
28
+ BROWSER_SHELL_BRIDGE_ENV,
29
+ requestBrowserShellAction
30
+ };
@@ -0,0 +1,13 @@
1
+ import {
2
+ buildAgentRuntimeAgentLookupKeys,
3
+ shouldFetchAgentRuntimeRecordRemotely
4
+ } from "./chunk-C4VAR65S.js";
5
+
6
+ // packages/cli/client/localAgentRecords.ts
7
+ var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
8
+ var shouldReadAgentKeyRemotely = shouldFetchAgentRuntimeRecordRemotely;
9
+
10
+ export {
11
+ buildLocalAgentLookupKeys,
12
+ shouldReadAgentKeyRemotely
13
+ };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-CQ46IRNN.js";
3
+ } from "./chunk-T3O6BLYU.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-VZKUKCA6.js";
6
+ } from "./chunk-FVZW66K4.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
- } from "./chunk-ZCWRMUWT.js";
9
+ } from "./chunk-6OVNSQHN.js";
10
10
  import {
11
11
  isRecord
12
12
  } from "./chunk-KUG52IAP.js";
13
13
  import {
14
14
  isNoloHostedProvider
15
- } from "./chunk-GOO6G4PY.js";
15
+ } from "./chunk-VALBGPM6.js";
16
16
  import {
17
17
  asTrimmedLowercaseString
18
18
  } from "./chunk-QSJ3HFEF.js";
@@ -1,75 +1,75 @@
1
1
  import {
2
2
  DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS,
3
3
  DEFAULT_USER_PREFERENCE_PROFILE,
4
- isAgentSkillDisabled,
5
4
  normalizeAgentUpdateFieldList,
6
5
  normalizePolicyLevelSetting,
7
6
  normalizeSystemBuiltinSkills,
8
7
  normalizeTonePresetSetting,
9
8
  resolveUserEnabledSkills
10
- } from "./chunk-MMNYUVLW.js";
9
+ } from "./chunk-GGKNJ42M.js";
11
10
  import {
12
11
  isSkillSummaryMarker
13
12
  } from "./chunk-VF4K2QE6.js";
14
13
  import {
15
14
  setDialogExtraReferencesAction
16
- } from "./chunk-INSBKSBB.js";
15
+ } from "./chunk-GIABSSWQ.js";
17
16
  import {
18
17
  fetchAndCacheTableRows
19
- } from "./chunk-NJR3WKVP.js";
20
- import {
21
- createSpaceKey
22
- } from "./chunk-UAD2WT54.js";
18
+ } from "./chunk-F3TQURKK.js";
23
19
  import {
24
20
  getActiveDialogKey
25
- } from "./chunk-OWYYDMGJ.js";
21
+ } from "./chunk-S2NTVGA2.js";
26
22
  import {
27
23
  require_react
28
- } from "./chunk-YDH3FDFQ.js";
24
+ } from "./chunk-5FUN7EG4.js";
25
+ import {
26
+ createSpaceKey
27
+ } from "./chunk-UAD2WT54.js";
29
28
  import {
30
29
  selectById
31
- } from "./chunk-BFM34N54.js";
30
+ } from "./chunk-AVHRSJUH.js";
32
31
  import {
33
32
  selectRuntimeSnapshot
34
- } from "./chunk-PYRUW7XN.js";
33
+ } from "./chunk-2VUZSVAS.js";
35
34
  import {
36
35
  createAsyncThunk,
37
36
  createSelector
38
- } from "./chunk-P5L7CXOC.js";
37
+ } from "./chunk-7Z6EW7AH.js";
39
38
  import {
40
39
  selectIdentityUserId
41
40
  } from "./chunk-PXYBUFDB.js";
42
41
  import {
42
+ isAgentSkillDisabled
43
+ } from "./chunk-EOWLBDY6.js";
44
+ import {
45
+ DEFAULT_SYSTEM_AGENT_CAPABILITIES,
43
46
  listBuiltinSkills,
44
47
  resolveBuiltinSkillByName
45
- } from "./chunk-EZFQ6XRV.js";
46
- import {
47
- DEFAULT_SYSTEM_AGENT_CAPABILITIES
48
- } from "./chunk-EYUBHHFB.js";
48
+ } from "./chunk-GNHMRBYZ.js";
49
49
  import {
50
50
  parseSkillDocProtocol
51
- } from "./chunk-AETZ7AD6.js";
52
- import {
53
- toErrorMessage
54
- } from "./chunk-HNMXYYJR.js";
55
- import {
56
- isRecord
57
- } from "./chunk-KUG52IAP.js";
58
- import {
59
- normalizeServerOrigin
60
- } from "./chunk-CF7PE763.js";
51
+ } from "./chunk-W6RFEDN4.js";
61
52
  import {
62
53
  asTrimmedNonEmptyStringArray
63
54
  } from "./chunk-I42VC5KR.js";
55
+ import {
56
+ toErrorMessage
57
+ } from "./chunk-HNMXYYJR.js";
64
58
  import {
65
59
  asTrimmedString
66
60
  } from "./chunk-3EUW3WEO.js";
61
+ import {
62
+ isRecord
63
+ } from "./chunk-KUG52IAP.js";
67
64
  import {
68
65
  asOptionalTrimmedString
69
66
  } from "./chunk-G3SUCT4W.js";
67
+ import {
68
+ normalizeServerOrigin
69
+ } from "./chunk-CF7PE763.js";
70
70
  import {
71
71
  __toESM
72
- } from "./chunk-4VNS5WPM.js";
72
+ } from "./chunk-U67V476Y.js";
73
73
 
74
74
  // packages/ai/chat/parseMultilineSSE.ts
75
75
  function createSSEParser() {
@@ -783,7 +783,7 @@ var executeToolRun = createAsyncThunk(
783
783
  if (!executionInput) {
784
784
  throw new Error(`ToolRun ${id} has no input to execute with.`);
785
785
  }
786
- const { findToolExecutor } = await import("./tools-ZLKCC25W.js");
786
+ const { findToolExecutor } = await import("./tools-JVOJ5HC4.js");
787
787
  const { executor } = findToolExecutor(run.toolName);
788
788
  toolRunStarted({
789
789
  id: run.id,
@@ -807,7 +807,7 @@ var executeToolRun = createAsyncThunk(
807
807
  const latestState = thunkApi.getState();
808
808
  const userId = selectIdentityUserId(latestState);
809
809
  if (userId) {
810
- const { fetchUserSpaceMemberships } = await import("./memberThunks-7WJAY5V6.js");
810
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-JRYNONYV.js");
811
811
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
812
812
  }
813
813
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  describeAttachmentForModel
3
- } from "./chunk-WJZOQR2J.js";
3
+ } from "./chunk-XWGDCWXY.js";
4
4
 
5
5
  // packages/ai/attachments/projectUserPart.ts
6
6
  var isRecord = (value) => typeof value === "object" && value !== null;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-QYPE3TS3.js";
4
4
  import {
5
5
  getActiveDialogKey
6
- } from "./chunk-OWYYDMGJ.js";
6
+ } from "./chunk-S2NTVGA2.js";
7
7
  import {
8
8
  selectIdentityToken
9
9
  } from "./chunk-PXYBUFDB.js";
@@ -3,10 +3,7 @@ import {
3
3
  parseFlagWithOptionalValue,
4
4
  runCloudflareOAuthLogin,
5
5
  upsertEnvVariable
6
- } from "./chunk-7OCO4TDT.js";
7
- import {
8
- defaultOpenBrowser
9
- } from "./chunk-3CGG2PAL.js";
6
+ } from "./chunk-EGXPAWLG.js";
10
7
  import {
11
8
  ANTHROPIC_OAUTH_AUTHORIZE_URL,
12
9
  ANTHROPIC_OAUTH_CALLBACK_PORT,
@@ -50,7 +47,10 @@ import {
50
47
  startCallbackServer,
51
48
  validateXAIEndpoint,
52
49
  xaiOAuthDiscovery
53
- } from "./chunk-RPQXPZZF.js";
50
+ } from "./chunk-J6T25AJ6.js";
51
+ import {
52
+ defaultOpenBrowser
53
+ } from "./chunk-DVQH4BTR.js";
54
54
  import {
55
55
  extractGoogleValidationLink
56
56
  } from "./chunk-BMQ2MJUK.js";
@@ -60,33 +60,33 @@ import {
60
60
  detectLocalDevinCredentials,
61
61
  extractDevinToken,
62
62
  fetchAntigravityCloudCodeCompletion
63
- } from "./chunk-CTPXME7U.js";
63
+ } from "./chunk-IWH5SOU4.js";
64
+ import {
65
+ getProfileOAuthSync,
66
+ saveProfileOAuthSync
67
+ } from "./chunk-R5GO3YZP.js";
68
+ import {
69
+ t
70
+ } from "./chunk-OB6DVWPF.js";
64
71
  import {
65
72
  toErrorMessage
66
73
  } from "./chunk-HNMXYYJR.js";
74
+ import {
75
+ asTrimmedString
76
+ } from "./chunk-3EUW3WEO.js";
67
77
  import {
68
78
  isRecord
69
79
  } from "./chunk-KUG52IAP.js";
70
80
  import {
71
- parseUserIdFromAuthToken
72
- } from "./chunk-WACI5I6V.js";
73
- import {
74
- getProfileOAuthSync,
75
- saveProfileOAuthSync
76
- } from "./chunk-R5GO3YZP.js";
81
+ asOptionalFiniteNumber
82
+ } from "./chunk-WWC7I6TA.js";
77
83
  import {
78
- t
79
- } from "./chunk-3RQVYR4B.js";
84
+ parseUserIdFromAuthToken
85
+ } from "./chunk-2THCNKE4.js";
80
86
  import {
81
87
  createOAuthTokenStore,
82
88
  resolveFreshAccessToken
83
89
  } from "./chunk-G7Y4GXTY.js";
84
- import {
85
- asOptionalFiniteNumber
86
- } from "./chunk-WWC7I6TA.js";
87
- import {
88
- asTrimmedString
89
- } from "./chunk-3EUW3WEO.js";
90
90
 
91
91
  // packages/cli/oauth/flows/xai.ts
92
92
  function buildXAIAuthorizeUrl(opts) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./chunk-4VNS5WPM.js";
3
+ } from "./chunk-U67V476Y.js";
4
4
 
5
5
  // node_modules/react/cjs/react.production.js
6
6
  var require_react_production = __commonJS({
@@ -0,0 +1,97 @@
1
+ import {
2
+ buildLocalAgentLookupKeys
3
+ } from "./chunk-2ZKFCIJJ.js";
4
+ import {
5
+ LOCAL_CODEX_AGENT_ID,
6
+ LOCAL_CODEX_AGENT_KEY
7
+ } from "./chunk-BR3GT6MR.js";
8
+ import {
9
+ applyPublicAgentCatalogOverride
10
+ } from "./chunk-6RQFZCKH.js";
11
+ import {
12
+ applyBuiltinAgentRuntimeOverride,
13
+ resolveBuiltinPlatformAgentConfig
14
+ } from "./chunk-JVRQ6YVK.js";
15
+ import {
16
+ localDialogMessageRecordToRuntimeMessage
17
+ } from "./chunk-TVFRV3UQ.js";
18
+ import {
19
+ resolveAgentRuntimeConfigFromRecord
20
+ } from "./chunk-SASHAZ67.js";
21
+ import {
22
+ dialogMessagePrefix,
23
+ dialogMessageRange
24
+ } from "./chunk-OJKUU3LP.js";
25
+
26
+ // packages/cli/client/cliLocalAgentRecordReader.ts
27
+ function resolveBuiltinLocalCliAgentConfig(agentRef, userId) {
28
+ const normalized = agentRef.trim();
29
+ if (normalized === LOCAL_CODEX_AGENT_KEY || normalized === LOCAL_CODEX_AGENT_ID) {
30
+ return {
31
+ key: LOCAL_CODEX_AGENT_KEY,
32
+ name: "Local Codex",
33
+ prompt: "You are a local Codex CLI coding agent. Use the workspace and dialog evidence available to you, keep changes scoped, run relevant checks, and report worktree, branch, commit or dirty diff, tests, and blockers.",
34
+ apiSource: "cli",
35
+ provider: "cli",
36
+ cliProvider: "codex",
37
+ toolNames: ["readFile", "execShell", "fetchWebpage", "exa_search"],
38
+ rawRecord: {
39
+ dbKey: LOCAL_CODEX_AGENT_KEY,
40
+ id: LOCAL_CODEX_AGENT_ID,
41
+ userId,
42
+ type: "agent",
43
+ name: "Local Codex",
44
+ apiSource: "cli",
45
+ provider: "cli",
46
+ cliProvider: "codex"
47
+ }
48
+ };
49
+ }
50
+ return null;
51
+ }
52
+ async function readAgentFromStore(args) {
53
+ for (const key of buildLocalAgentLookupKeys(args)) {
54
+ const record = await args.store.read(key);
55
+ if (!record || typeof record !== "object") continue;
56
+ return applyBuiltinAgentRuntimeOverride(
57
+ args.agentRef,
58
+ resolveAgentRuntimeConfigFromRecord(
59
+ key,
60
+ applyPublicAgentCatalogOverride(record)
61
+ )
62
+ );
63
+ }
64
+ return resolveBuiltinPlatformAgentConfig(args.agentRef);
65
+ }
66
+ async function readDialogMessageRecords(args) {
67
+ const entries = [];
68
+ const { start, end } = dialogMessageRange(args.dialogId);
69
+ const messagePrefix = `${dialogMessagePrefix(args.dialogId)}-`;
70
+ const iterator = args.store.iterator({ gte: start, lte: end });
71
+ for await (const [key, value] of iterator) {
72
+ if (!value || typeof value !== "object") continue;
73
+ entries.push({
74
+ key,
75
+ messageId: key.startsWith(messagePrefix) ? key.slice(messagePrefix.length) : String(value.id ?? ""),
76
+ record: value
77
+ });
78
+ }
79
+ return entries;
80
+ }
81
+ async function readDialogMessages(args) {
82
+ const messages = [];
83
+ const entries = await readDialogMessageRecords(args);
84
+ for (const entry of entries) {
85
+ if (entry.record.metadata?.queueState === "pending") continue;
86
+ const message = localDialogMessageRecordToRuntimeMessage(entry.record);
87
+ if (message) messages.push({ ...message, cliMessageId: entry.messageId });
88
+ }
89
+ return messages;
90
+ }
91
+
92
+ export {
93
+ resolveBuiltinLocalCliAgentConfig,
94
+ readAgentFromStore,
95
+ readDialogMessageRecords,
96
+ readDialogMessages
97
+ };