nolo-cli 0.212.0-alpha.1 → 0.222.0-alpha.2

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-4GGQQHOB.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-GDHDOF4U.js} +18 -17
  6. package/{addDialogAgentAction-3NKVQCEC.js → addDialogAgentAction-CAKRU3ZT.js} +21 -20
  7. package/{agentDeleteCommand-NWK7VU4N.js → agentDeleteCommand-BPV2XZL7.js} +128 -119
  8. package/{agentEmailCommands-UZ4DHEX2.js → agentEmailCommands-EJOS75YL.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-HIZODBF3.js} +196 -124
  12. package/{agentMachineCommands-6TE4MBMP.js → agentMachineCommands-ZMQ2CY7Y.js} +62 -53
  13. package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-WKJOAWBP.js} +5 -5
  14. package/{agentPullCommand-6EM3URVK.js → agentPullCommand-XN6ZPBUW.js} +7 -7
  15. package/agentRecordCommands-OMXVDLDX.js +176 -0
  16. package/agentRunCommand-CB34YWMV.js +206 -0
  17. package/{agentRunControl-OI3LOENH.js → agentRunControl-JNONH3RP.js} +30 -15
  18. package/{agentRuntimeLocal-HL526DNQ.js → agentRuntimeLocal-QZPFWMLG.js} +52 -45
  19. package/{agentSlice-TMYP2UEA.js → agentSlice-RD2CDU7T.js} +20 -19
  20. package/{appDeleteCommands-ZERW4AXY.js → appDeleteCommands-QCCFDIEQ.js} +61 -52
  21. package/{appDeployCommands-DUWSMYHL.js → appDeployCommands-V2T7TNMQ.js} +61 -52
  22. package/{appDeployStatusCommands-N2KIE4BF.js → appDeployStatusCommands-6PGH7ZCG.js} +61 -52
  23. package/{appGetCommands-YVR4NPVY.js → appGetCommands-3L7WWJA6.js} +61 -52
  24. package/{appListCommands-JS6HOHZS.js → appListCommands-ENJCK4PO.js} +61 -52
  25. package/{authCommand-FE2C3ZUM.js → authCommand-6V47SYGK.js} +29 -28
  26. package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
  27. package/{builtinSkillRegistry-3YOIGEF6.js → builtinSkillRegistry-2ECA42FC.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-DM6UMOEL.js → chunk-27PCUMJI.js} +2 -2
  31. package/chunk-2CI3ZFWD.js +97 -0
  32. package/{chunk-HIRC32DV.js → chunk-2GJKRKI6.js} +543 -29
  33. package/{chunk-SM3NSZJV.js → chunk-2UCBGYO4.js} +20 -1
  34. package/{chunk-PYRUW7XN.js → chunk-2VUZSVAS.js} +136 -54
  35. package/chunk-2YGBI2XB.js +30 -0
  36. package/chunk-2ZKFCIJJ.js +13 -0
  37. package/{chunk-CJRONOYL.js → chunk-34J5K2YA.js} +19 -75
  38. package/{chunk-LOEO7LRC.js → chunk-3IK6ILVW.js} +4 -1
  39. package/{chunk-CTPXME7U.js → chunk-3LMUPOHG.js} +29 -6
  40. package/chunk-44X52WOJ.js +1621 -0
  41. package/{chunk-6VLJ6YA7.js → chunk-4DESLZTK.js} +9 -9
  42. package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
  43. package/chunk-5CHGAKRT.js +364 -0
  44. package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
  45. package/{chunk-LKDF3ATR.js → chunk-5RKUPJYL.js} +1 -1
  46. package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
  47. package/{chunk-IF45XG7K.js → chunk-6WU5572L.js} +40 -24
  48. package/{chunk-OHNELDTO.js → chunk-7EEZJ6BS.js} +11 -152
  49. package/{chunk-Y6ORVLSS.js → chunk-7ET2U67U.js} +1 -1
  50. package/{chunk-G7MLNNEX.js → chunk-7JLY4WYF.js} +5 -5
  51. package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
  52. package/{chunk-IIQ6JGRI.js → chunk-AD5EWDFD.js} +2 -2
  53. package/{chunk-WXYLV624.js → chunk-AIHYNKGV.js} +4 -4
  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-AN74ON4G.js +675 -0
  58. package/{chunk-HRMJUN5J.js → chunk-AQZ6BMRK.js} +1 -1
  59. package/{chunk-CQ46IRNN.js → chunk-B4GOW4MT.js} +445 -201
  60. package/{chunk-4KB6WQUL.js → chunk-BGP2EDFG.js} +1 -1
  61. package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
  62. package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
  63. package/{chunk-D2MDMY2M.js → chunk-BV3FLP2L.js} +47 -1
  64. package/{chunk-25JZEIXN.js → chunk-C4VAR65S.js} +92 -150
  65. package/{chunk-AVTVGMDY.js → chunk-C4WTX5TU.js} +2 -2
  66. package/{chunk-ZL5RAEEB.js → chunk-CIRB724Q.js} +1 -1
  67. package/{chunk-F6UUQOG6.js → chunk-CKT6QUE2.js} +4 -4
  68. package/{chunk-M6RL5JCD.js → chunk-CMZ3Z5PT.js} +14 -14
  69. package/{secretCommands-4QS3HCA2.js → chunk-D726I5AZ.js} +191 -16
  70. package/{chunk-INSBKSBB.js → chunk-DNKTQ3IN.js} +4 -4
  71. package/chunk-DVQH4BTR.js +1137 -0
  72. package/{chunk-SOHTHFV2.js → chunk-DWX2HEVC.js} +91 -132
  73. package/{chunk-NOMIGOST.js → chunk-EIAI3PPH.js} +116 -124
  74. package/chunk-EUCFKKDM.js +247 -0
  75. package/chunk-EWQ3HGNZ.js +90 -0
  76. package/{chunk-RPQXPZZF.js → chunk-F3GRJO4Z.js} +908 -13
  77. package/{chunk-GSQNH63I.js → chunk-FIYSMXHY.js} +3 -19
  78. package/{chunk-KSTEXKL6.js → chunk-FJ23FZXF.js} +76 -31
  79. package/{chunk-INN4LTAJ.js → chunk-FJK526XH.js} +2 -2
  80. package/chunk-FS2XP5D7.js +142 -0
  81. package/{chunk-QT6PKHYJ.js → chunk-FYF2TONJ.js} +5 -5
  82. package/{chunk-OXME3PEE.js → chunk-GBWGPTA7.js} +2 -1
  83. package/{chunk-RU4SD66C.js → chunk-GYVCJABP.js} +30 -254
  84. package/{chunk-YUXQAVRD.js → chunk-HOCHUZQ7.js} +257 -90
  85. package/{chunk-Y2WUYX4I.js → chunk-HXER7YJF.js} +4 -4
  86. package/chunk-HYIETXA6.js +99 -0
  87. package/{chunk-H2TJUNCH.js → chunk-I4EADJ4P.js} +6 -6
  88. package/{chunk-TCZHTTUU.js → chunk-I7WBYGBP.js} +8 -8
  89. package/{chunk-5RYBGBQH.js → chunk-IILMY4W4.js} +14 -9
  90. package/chunk-JA3ICVJY.js +271 -0
  91. package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
  92. package/{chunk-JNKSDZFS.js → chunk-KEN3N2TN.js} +310 -66
  93. package/{chunk-LEC5ALIN.js → chunk-KEPOVMF4.js} +1 -1
  94. package/{chunk-UHJGXRJ4.js → chunk-KQSYAIZR.js} +3 -3
  95. package/{chunk-4VJAC32I.js → chunk-L5I543VB.js} +3 -2
  96. package/chunk-LKA64WH4.js +227 -0
  97. package/{chunk-6OQUPIQF.js → chunk-LVL6GFCM.js} +4 -4
  98. package/{chunk-UTV2AYEG.js → chunk-MAIITKBT.js} +2 -2
  99. package/chunk-MBG66ZBH.js +226 -0
  100. package/{chunk-YUA6OAH5.js → chunk-MDLS23JK.js} +2 -2
  101. package/{chunk-VL5KOY2C.js → chunk-MK2Q7ZJD.js} +67 -5
  102. package/{chunk-B7NJ3T4A.js → chunk-MS4NZNKI.js} +10 -10
  103. package/{chunk-3AKFVZ2I.js → chunk-MYHNBEXD.js} +3 -3
  104. package/{chunk-VZKUKCA6.js → chunk-MZLE5HQ3.js} +3673 -241
  105. package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
  106. package/chunk-NIZ2BXFD.js +526 -0
  107. package/{chunk-YPD3VJZW.js → chunk-NWP2OYOX.js} +20 -20
  108. package/{chunk-3FOQHGHN.js → chunk-O6J3OTOP.js} +4 -4
  109. package/{chunk-3RQVYR4B.js → chunk-OB6DVWPF.js} +197 -65
  110. package/{chunk-YWSEPJ7C.js → chunk-OBWT45ZU.js} +3 -3
  111. package/{chunk-5AQR3DGV.js → chunk-ODJ7BVSI.js} +80 -11
  112. package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
  113. package/{chunk-GNDJKC4B.js → chunk-ON37YXGX.js} +29 -29
  114. package/{chunk-D5RCRX4A.js → chunk-P5ZJRTCH.js} +9415 -5169
  115. package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
  116. package/{chunk-EZFQ6XRV.js → chunk-PJCIP64Z.js} +861 -59
  117. package/{chunk-GPO7FCEZ.js → chunk-PJVKMGPZ.js} +1222 -1719
  118. package/{chunk-CKAHAVMK.js → chunk-PPJYZRSQ.js} +40 -26
  119. package/chunk-QHEN7NZ7.js +46 -0
  120. package/{chunk-4KH4J3G5.js → chunk-QNWG52I4.js} +19 -7
  121. package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
  122. package/chunk-RDH5CQ4T.js +1382 -0
  123. package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
  124. package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
  125. package/{chunk-KC4XDTT3.js → chunk-SOF4OWDM.js} +6 -4
  126. package/{chunk-IAPCBNEE.js → chunk-SQYIK6HO.js} +1 -1
  127. package/{chunk-22CIEBYO.js → chunk-SVT62ULE.js} +50 -48
  128. package/{chunk-KIM6CLW5.js → chunk-SY3C4SQ7.js} +42 -15
  129. package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
  130. package/{chunk-6NSSLV67.js → chunk-T6DXNI6Z.js} +52 -50
  131. package/chunk-TLE77UJ5.js +230 -0
  132. package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
  133. package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
  134. package/{chunk-MMNYUVLW.js → chunk-UB3D4TRQ.js} +11 -77
  135. package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
  136. package/{chunk-YOIW77S2.js → chunk-UYOICCYG.js} +29 -19
  137. package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
  138. package/{chunk-JIT6FSXJ.js → chunk-WAE3GFCJ.js} +3 -3
  139. package/{chunk-IJXYFTV7.js → chunk-WI67URFP.js} +20 -20
  140. package/{chunk-7OCO4TDT.js → chunk-WJVYAO6P.js} +1 -1
  141. package/{chunk-T43B7LB2.js → chunk-WKGQSYTB.js} +1 -1
  142. package/{chunk-YJMRHHGY.js → chunk-WUUH4LWZ.js} +60 -30
  143. package/{chunk-PDGKOTO7.js → chunk-X7UF53VA.js} +33 -22
  144. package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
  145. package/{chunk-OOF4UPC5.js → chunk-XWVCYUUU.js} +16 -159
  146. package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
  147. package/{chunk-EYLGAEB4.js → chunk-YGMBIXCF.js} +132 -0
  148. package/chunk-YL3EFYL3.js +199 -0
  149. package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
  150. package/{chunk-W4S457LU.js → chunk-YU4ZPWVF.js} +41 -5
  151. package/{chunk-NJR3WKVP.js → chunk-YWWDC3O7.js} +281 -159
  152. package/chunk-YZMNK53S.js +68 -0
  153. package/{chunk-FHU44LN3.js → chunk-Z2PITYZN.js} +2179 -552
  154. package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
  155. package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-TKYL43MT.js} +15 -16
  156. package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
  157. package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
  158. package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-VPSJ4XWC.js} +3 -3
  159. package/{cliExecutor-BWBF2MTI.js → cliExecutor-4MAX3PZL.js} +2 -2
  160. package/cliLocalAgentRecordReader-MHHD4T7R.js +90 -0
  161. package/{commandRegistry-VVMTPFAX.js → commandRegistry-5DA5UP7S.js} +106 -98
  162. package/{contentThunks-N52O67MI.js → contentThunks-5GUQ7FWJ.js} +47 -43
  163. package/{cooldownCommands-YXLWOXWR.js → cooldownCommands-X7P5M2V5.js} +5 -4
  164. package/{createAgentAutomationAction-ZC57YRSV.js → createAgentAutomationAction-UCLTHQRI.js} +51 -49
  165. package/{createDialogAction-VQW5WDYX.js → createDialogAction-UPN774AF.js} +46 -48
  166. package/{createPageAction-M5VDA7SC.js → createPageAction-JRQ2TA4O.js} +50 -48
  167. package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
  168. package/{db-HUCI5R4G.js → db-CS4ZJQKV.js} +1 -1
  169. package/{dbSlice-HP7G4LX3.js → dbSlice-WNON7TOL.js} +17 -16
  170. package/{deleteFile-7VQGLK2V.js → deleteFile-Q3YDB4ML.js} +9 -9
  171. package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
  172. package/{dialogCommands-JHMR2N2Y.js → dialogCommands-VRI7VCXH.js} +64 -57
  173. package/dialogNotifyCommand-6TMCX4D2.js +36 -0
  174. package/{dialogSlice-GRSVGDTF.js → dialogSlice-LFNVUSAN.js} +42 -40
  175. package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
  176. package/{docCreateCommands-F2K3UPSQ.js → docCreateCommands-AMPXMOX3.js} +61 -54
  177. package/{docDeleteCommands-XGXB5RFT.js → docDeleteCommands-I5WFAEHP.js} +63 -57
  178. package/{docReadCommands-7HWZZV6J.js → docReadCommands-X53ELNIE.js} +61 -54
  179. package/{docStore-KNZK6Y2G.js → docStore-2VAWVLWH.js} +21 -20
  180. package/{docUpdateCommands-OZZ7NQII.js → docUpdateCommands-6QPNDC7M.js} +64 -57
  181. package/{fetchMessages-M3QU7ZCQ.js → fetchMessages-TQEUZD7H.js} +8 -7
  182. package/{getPricing-2MNMXEVG.js → getPricing-MB2GBXOK.js} +6 -6
  183. package/{handleSendMessageAction-SHIH74GJ.js → handleSendMessageAction-AAJOHXOB.js} +193 -301
  184. package/{hostCredentialCreate-X64WK4JD.js → hostCredentialCreate-GLMJ22M6.js} +123 -114
  185. package/index.js +29 -29
  186. package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
  187. package/legacyMigration-TF4SYJCZ.js +19 -0
  188. package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
  189. package/{localDialogRead-XRLAH4CZ.js → localDialogRead-SVTPA5GY.js} +3 -3
  190. package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
  191. package/localRecall-2J6QPOK2.js +15 -0
  192. package/{localRuntimeAdapter-A7K3ABA6.js → localRuntimeAdapter-BMP57P42.js} +119 -110
  193. package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
  194. package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
  195. package/{machineCommands-DE3MR7CJ.js → machineCommands-3MLIAK5Q.js} +128 -119
  196. package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
  197. package/machineWsRunDispatch-FKIGROQF.js +191 -0
  198. package/{memberThunks-7WJAY5V6.js → memberThunks-ZGLZ36PK.js} +29 -28
  199. package/{memoryCommands-ASCE5STX.js → memoryCommands-5WC3T66U.js} +4 -4
  200. package/models-ULVWLSQ6.js +9 -0
  201. package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
  202. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-4IC3Y4C6.js} +4 -4
  203. package/overlay-THLKYIWY.js +11 -0
  204. package/package.json +2 -2
  205. package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
  206. package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
  207. package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
  208. package/{projectArchive-GGL5HLMD.js → projectArchive-HK63GMF4.js} +52 -50
  209. package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-OIFQ73LH.js} +19 -12
  210. package/{providerRegistry-S6UL6UNA.js → providerRegistry-KZ3SDZ3D.js} +10 -10
  211. package/{read-4VZQODSN.js → read-MRQHJMJ2.js} +10 -10
  212. package/{readDocTool-AVD32RUJ.js → readDocTool-4BGTXTXA.js} +2 -2
  213. package/{readlineWorkspace-XKYKNL2I.js → readlineWorkspace-AKAHSCNY.js} +6505 -4634
  214. package/{removeDialogAgentAction-FKL4BYMR.js → removeDialogAgentAction-B6H7DXFM.js} +23 -22
  215. package/{runAgentClientLoop-V7E2WBVM.js → runAgentClientLoop-UVAWGEON.js} +81 -79
  216. package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-FW6XKDUG.js} +12 -12
  217. package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
  218. package/secretCommands-LJXOOYA7.js +24 -0
  219. package/{setDialogExtraReferencesAction-TLIOLWWI.js → setDialogExtraReferencesAction-EVCY3TRW.js} +22 -21
  220. package/{setPrimaryDialogAgentAction-2OLWRFYR.js → setPrimaryDialogAgentAction-KPFVPHCJ.js} +23 -22
  221. package/{settingThunks-UGBPCNYF.js → settingThunks-ENOAK2WV.js} +97 -88
  222. package/{skillDiscovery-XKHROSH2.js → skillDiscovery-B5V23AXP.js} +4 -4
  223. package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
  224. package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
  225. package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
  226. package/{spaceCommands-4KSLKVNF.js → spaceCommands-DTTNAS2L.js} +61 -53
  227. package/store-JRVN62NM.js +46 -0
  228. package/{streamAgentChatTurn-7FR7X2NU.js → streamAgentChatTurn-R5UY25VB.js} +875 -618
  229. package/{switchDialogAgentAction-UZSAG2N5.js → switchDialogAgentAction-SZ44XDRY.js} +21 -20
  230. package/{tableCommands-MP6VFSVT.js → tableCommands-HITDSLHS.js} +10 -10
  231. package/tombstones-FQQMEDOW.js +32 -0
  232. package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
  233. package/{tools-ZLKCC25W.js → tools-HWFG6GMJ.js} +75 -74
  234. package/tuiSummaryLlmCaller-HQQZAMYF.js +44 -0
  235. package/{updateCommands-4744PL3P.js → updateCommands-RJVCRSBP.js} +10 -8
  236. package/{updateDialogTitleAction-U53ZT7PJ.js → updateDialogTitleAction-KNPOAMVS.js} +48 -46
  237. package/{usageCommand-F4IPVMIZ.js → usageCommand-FWZCB7AM.js} +11 -10
  238. package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-SP2BLNJU.js} +12 -11
  239. package/userDataMerge-HT2ZVHBJ.js +13 -0
  240. package/{windowsSelfUpdate-XSQVF2GK.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
  241. package/{workloadLifecycle-4BEQHMSD.js → workloadLifecycle-DYNEYHV5.js} +7 -6
  242. package/agentRecordCommands-L3QQ7HZ4.js +0 -167
  243. package/agentRunCommand-2IFGQHCO.js +0 -196
  244. package/chunk-3CGG2PAL.js +0 -594
  245. package/chunk-5XBUWM6I.js +0 -89
  246. package/chunk-BFM34N54.js +0 -842
  247. package/chunk-CJEIOP3E.js +0 -0
  248. package/chunk-CZM5YTZ7.js +0 -977
  249. package/chunk-EYUBHHFB.js +0 -636
  250. package/chunk-JTDORD5P.js +0 -415
  251. package/chunk-NRFKLKRU.js +0 -339
  252. package/chunk-VPAZOH2D.js +0 -115
  253. package/chunk-WJZOQR2J.js +0 -151
  254. package/chunk-ZCWRMUWT.js +0 -89
  255. package/dist-M676ULYG.js +0 -7314
  256. package/machineWsRunDispatch-R26P5V36.js +0 -182
  257. package/models-PJBE6JDV.js +0 -9
  258. package/tuiSummaryLlmCaller-WC54MVGP.js +0 -160
  259. package/{chunk-WACI5I6V.js → chunk-2THCNKE4.js} +3 -3
  260. package/{chunk-2QHFH3DR.js → chunk-47ITIXO7.js} +6 -6
  261. package/{chunk-GOO6G4PY.js → chunk-CKG3PRZ7.js} +0 -0
  262. package/{chunk-OQHIVPG4.js → chunk-SNBZZPYH.js} +3 -3
  263. package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dialogMessageKey
3
- } from "./chunk-XJWWBO34.js";
3
+ } from "./chunk-OJKUU3LP.js";
4
4
  import {
5
5
  asOptionalFiniteNumber
6
6
  } from "./chunk-WWC7I6TA.js";
@@ -5,15 +5,15 @@ import {
5
5
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
6
6
  isAntigravityCloudCodeBaseUrl,
7
7
  isAntigravityOAuthAgent
8
- } from "./chunk-KIM6CLW5.js";
8
+ } from "./chunk-SY3C4SQ7.js";
9
9
  import {
10
10
  isOpenAiResponsesModel,
11
11
  resolvePlatformChatCompletionsEndpoint,
12
12
  resolvePlatformResponsesEndpoint
13
- } from "./chunk-YUA6OAH5.js";
13
+ } from "./chunk-MDLS23JK.js";
14
14
  import {
15
15
  findModelConfig
16
- } from "./chunk-SM3NSZJV.js";
16
+ } from "./chunk-2UCBGYO4.js";
17
17
  import {
18
18
  asTrimmedLowercaseString
19
19
  } from "./chunk-QSJ3HFEF.js";
@@ -43,7 +43,7 @@ var normalizeLocale = (value) => {
43
43
  return language;
44
44
  };
45
45
  var resolveUserResponseLanguage = (input = {}) => {
46
- const raw = asLocale(input.responseLanguage) || asLocale(input.language) || asLocale(input.fallbackLanguage) || "en-US";
46
+ const raw = asLocale(input.language) || "en-US";
47
47
  const locale = normalizeLocale(raw);
48
48
  return {
49
49
  locale,
@@ -80,7 +80,8 @@ var MEMORY_USE_GUIDANCE = `--- \u8BB0\u5FC6\u4F7F\u7528\u65B9\u5F0F ---
80
80
  - \u8BB0\u5FC6\u542B\u7528\u6237\u8EAB\u4EFD/\u79F0\u547C/\u5173\u7CFB/\u957F\u671F\u504F\u597D/\u9879\u76EE\u80CC\u666F\u65F6\uFF0C\u76F8\u5173\u5904\u81EA\u7136\u4F53\u73B0\uFF08\u5F00\u573A\u79F0\u547C\u3001\u4E0A\u4E0B\u6587\u786E\u8BA4\u3001\u56DE\u7B54\u7ED3\u6784\u3001\u53D6\u820D\u6807\u51C6\uFF09\uFF0C\u4E0D\u8981\u6BCF\u53E5\u673A\u68B0\u79F0\u547C\u7528\u6237\u3002
81
81
  - \u201C\u4E0A\u6B21/\u7EE7\u7EED/\u8FD9\u4E2A\u9879\u76EE\u201D\u7B49\u6307\u4EE3\u4F18\u5148\u6309\u5F53\u524D dialog/space/project/agent/sourceDialog \u7B49 KV \u8DEF\u5F84\u548C\u65F6\u95F4\u7EBF\u5B9A\u4F4D\uFF0C\u4E0D\u8981\u53EA\u6309\u8BED\u4E49\u76F8\u4F3C\u5EA6\u635E\u4E00\u6761\u3002
82
82
  - \u63A8\u65AD\u578B\u8BB0\u5FC6\uFF08inferred\uFF09\u53EA\u7528\u4E8E\u628A\u63E1\u8BED\u6C14\u3001\u72B6\u6001\u548C\u672A\u5B8C\u6210\u4E8B\u9879\uFF0C\u4E0D\u8981\u8BF4\u6210\u201C\u4F60\u660E\u786E\u544A\u8BC9\u8FC7\u6211\u201D\u6216\u5F53\u6210\u7528\u6237\u5DF2\u6388\u6743\u4FDD\u5B58\u7684\u4E8B\u5B9E\uFF1B\u51B2\u7A81\u6216\u573A\u666F\u4E0D\u660E\u65F6\u8BF4\u660E\u4F9D\u636E\u6216\u7B80\u77ED\u786E\u8BA4\uFF0C\u4E0D\u8981\u786C\u5957\u3002
83
- - \u7F6E\u4FE1\u5EA6\uFF08verified/stated/inferred\uFF09\u3001\u53EC\u56DE\u4E0A\u4E0B\u6587\u8981\u6C42\u4E0E\u964D\u6743/\u5220\u9664\u8FB9\u754C\u4EE5\u8BB0\u5FC6\u5DE5\u5177\uFF08rememberMemory / queryMemory / deleteMemory\uFF09schema \u4E3A\u51C6\u3002`;
83
+ - \u7F6E\u4FE1\u5EA6\uFF08verified/stated/inferred\uFF09\u3001\u53EC\u56DE\u4E0A\u4E0B\u6587\u8981\u6C42\u4E0E\u964D\u6743/\u5220\u9664\u8FB9\u754C\u4EE5\u8BB0\u5FC6\u5DE5\u5177\uFF08rememberMemory / queryMemory / deleteMemory\uFF09schema \u4E3A\u51C6\u3002
84
+ - \u7528\u6237\u660E\u786E\u8868\u8FBE**\u8DE8\u4F1A\u8BDD**\u7684\u6253\u6270\u5F3A\u5EA6\u504F\u597D\u65F6\uFF08\u5982\u300C\u4EE5\u540E\u90FD\u53EA\u62A5\u7ED3\u679C\u300D\u300C\u6BCF\u6B21\u90FD\u7ED9\u6211\u770B\u8BE6\u7EC6\u8FC7\u7A0B\u300D\uFF0C\u800C\u975E\u4E00\u6B21\u4EFB\u52A1\u91CC\u7684\u300C\u8FD9\u6B21\u522B\u70E6\u6211\u300D\uFF09\uFF0C\u7528 rememberMemory \u8BB0\u4E3A\u7528\u6237\u504F\u597D\uFF1B\u4E4B\u540E\u6309\u5B83\u8C03\u6574 ignore / FYI / important \u7684\u8BE6\u7565\u3002\u8BB0\u5FC6\u504F\u597D\u7EDD\u4E0D\u80FD\u53D6\u6D88 decision / blocked / failed \u4E09\u7C7B\u5FC5\u987B\u62A5\u7684\u5185\u5BB9\u3002`;
84
85
 
85
86
  export {
86
87
  buildUserResponseLanguageContext,
@@ -0,0 +1,227 @@
1
+ import {
2
+ canonicalizeToolName
3
+ } from "./chunk-6OVNSQHN.js";
4
+
5
+ // packages/ai/tools/toolExecutionSemantics.ts
6
+ var UNKNOWN_TOOL_EXECUTION_CONTRACT = {
7
+ replay: "unknown",
8
+ sideEffects: "unknown",
9
+ locality: "unknown",
10
+ interaction: "unknown",
11
+ concurrency: "exclusive",
12
+ durableWebForeground: false
13
+ };
14
+ var serverPureRead = (durableWebForeground) => ({
15
+ replay: "pure",
16
+ sideEffects: "none",
17
+ locality: "server",
18
+ interaction: "none",
19
+ concurrency: "safe",
20
+ durableWebForeground
21
+ });
22
+ var serverExternalRead = (durableWebForeground) => ({
23
+ // Repeating the request should not mutate the target resource, but may spend
24
+ // provider quota/money and may observe newer remote state; it is not pure.
25
+ replay: "idempotent",
26
+ sideEffects: "observable",
27
+ locality: "server",
28
+ interaction: "none",
29
+ concurrency: "safe",
30
+ durableWebForeground
31
+ });
32
+ var serverConfirmedHandoffStep = () => ({
33
+ replay: "unsafe",
34
+ sideEffects: "observable",
35
+ locality: "server",
36
+ interaction: "handoff",
37
+ concurrency: "exclusive",
38
+ durableWebForeground: false
39
+ });
40
+ var TOOL_EXECUTION_CONTRACT = Object.freeze({
41
+ // Proven durable network reads. They execute on the server but touch external
42
+ // systems, so replay/cost semantics are intentionally not called "pure".
43
+ exa_search: serverExternalRead("read-only"),
44
+ fetchWebpage: serverExternalRead("read-only"),
45
+ // Proven durable server-hosted workspace reads/queries.
46
+ searchDialogMessages: serverPureRead("read-only"),
47
+ listDialogs: serverPureRead("read-only"),
48
+ readDialog: serverPureRead("read-only"),
49
+ queryDialogsBySubjectRef: serverPureRead("read-only"),
50
+ listAgents: serverPureRead("read-only"),
51
+ readAgent: serverPureRead("read-only"),
52
+ listSpaces: serverPureRead("read-only"),
53
+ readSpace: serverPureRead("read-only"),
54
+ readDoc: serverPureRead("read-only"),
55
+ readSkillDoc: serverPureRead("read-only"),
56
+ listTables: serverPureRead("read-only"),
57
+ queryTableRows: serverPureRead("read-only"),
58
+ list_cloud_resources: serverPureRead("read-only"),
59
+ cloud_probe: serverPureRead("read-only"),
60
+ // Audited execution against an owned cloud resource. Same class as execShell
61
+ // (arbitrary command, not replayable), except the executor itself runs on the
62
+ // server through the authorization/capability/audit gate. Never read-only.
63
+ cloud_exec: {
64
+ replay: "unsafe",
65
+ sideEffects: "mutation",
66
+ locality: "server",
67
+ interaction: "none",
68
+ concurrency: "exclusive",
69
+ durableWebForeground: false
70
+ },
71
+ // Read-only presentation payload. Actions remain inert; this adds no submit or
72
+ // open-app authority to server-owned projection.
73
+ show_interaction: {
74
+ replay: "pure",
75
+ sideEffects: "none",
76
+ locality: "server",
77
+ interaction: "none",
78
+ concurrency: "safe",
79
+ durableWebForeground: "read-only"
80
+ },
81
+ // Durable interactive boundary: the current execution ends and a later user
82
+ // choice starts a new execution. It is intentionally not modeled as a read.
83
+ ask_user: {
84
+ replay: "unsafe",
85
+ sideEffects: "observable",
86
+ locality: "server",
87
+ interaction: "blocking",
88
+ concurrency: "exclusive",
89
+ durableWebForeground: "interactive"
90
+ },
91
+ // Confirmed human hand-off boundary for the media step family. These tools
92
+ // do not start work needing authorization: they return
93
+ // `{ status: "requires_confirmation", ... }` and the run must stop and wait
94
+ // for the user. Registered explicitly (rather than inferred from any status)
95
+ // so a random tool echoing the same status never pauses the run, and kept out
96
+ // of the durable Web foreground plane on purpose (media ServerTool admission
97
+ // is owned elsewhere).
98
+ transcribe: serverConfirmedHandoffStep(),
99
+ translate: serverConfirmedHandoffStep(),
100
+ exportDocument: serverConfirmedHandoffStep(),
101
+ readArtifact: serverConfirmedHandoffStep(),
102
+ // Representative explicitly non-durable execution classes. These entries
103
+ // make the reason machine-readable; unlisted tools remain UNKNOWN.
104
+ execShell: {
105
+ replay: "unsafe",
106
+ sideEffects: "mutation",
107
+ locality: "workspace",
108
+ interaction: "none",
109
+ concurrency: "exclusive",
110
+ durableWebForeground: false
111
+ },
112
+ readFile: {
113
+ replay: "idempotent",
114
+ sideEffects: "none",
115
+ locality: "device",
116
+ interaction: "none",
117
+ concurrency: "safe",
118
+ durableWebForeground: false
119
+ },
120
+ globFiles: {
121
+ replay: "idempotent",
122
+ sideEffects: "none",
123
+ locality: "device",
124
+ interaction: "none",
125
+ concurrency: "safe",
126
+ durableWebForeground: false
127
+ },
128
+ createDoc: {
129
+ replay: "unsafe",
130
+ sideEffects: "mutation",
131
+ locality: "server",
132
+ interaction: "none",
133
+ concurrency: "exclusive",
134
+ durableWebForeground: false
135
+ },
136
+ updateDoc: {
137
+ replay: "unsafe",
138
+ sideEffects: "mutation",
139
+ locality: "server",
140
+ interaction: "none",
141
+ concurrency: "exclusive",
142
+ durableWebForeground: false
143
+ },
144
+ createHtmlArtifact: {
145
+ replay: "unsafe",
146
+ sideEffects: "mutation",
147
+ locality: "server",
148
+ interaction: "none",
149
+ concurrency: "exclusive",
150
+ durableWebForeground: "mutating"
151
+ },
152
+ readHtmlArtifact: serverPureRead("read-only"),
153
+ updateHtmlArtifact: {
154
+ replay: "unsafe",
155
+ sideEffects: "mutation",
156
+ locality: "server",
157
+ interaction: "none",
158
+ concurrency: "exclusive",
159
+ durableWebForeground: "mutating"
160
+ },
161
+ deleteDialogs: {
162
+ replay: "unsafe",
163
+ sideEffects: "mutation",
164
+ locality: "server",
165
+ interaction: "confirm",
166
+ concurrency: "exclusive",
167
+ durableWebForeground: false
168
+ },
169
+ loadSkill: {
170
+ replay: "unsafe",
171
+ sideEffects: "observable",
172
+ locality: "server",
173
+ interaction: "none",
174
+ concurrency: "exclusive",
175
+ durableWebForeground: false
176
+ }
177
+ });
178
+ function resolveToolExecutionContract(toolName) {
179
+ if (typeof toolName !== "string" || !toolName.trim()) {
180
+ return UNKNOWN_TOOL_EXECUTION_CONTRACT;
181
+ }
182
+ const canonicalName = canonicalizeToolName(toolName);
183
+ return TOOL_EXECUTION_CONTRACT[canonicalName] ?? UNKNOWN_TOOL_EXECUTION_CONTRACT;
184
+ }
185
+ function collectDurableWebToolNames(durableClass) {
186
+ return new Set(
187
+ Object.entries(TOOL_EXECUTION_CONTRACT).filter(([, contract]) => contract.durableWebForeground === durableClass).map(([name]) => name)
188
+ );
189
+ }
190
+ var DURABLE_WEB_FOREGROUND_READ_ONLY_TOOL_NAMES = collectDurableWebToolNames("read-only");
191
+ var DURABLE_WEB_FOREGROUND_INTERACTIVE_TOOL_NAMES = collectDurableWebToolNames("interactive");
192
+ var DURABLE_WEB_FOREGROUND_MUTATING_TOOL_NAMES = collectDurableWebToolNames("mutating");
193
+ var DURABLE_WEB_FOREGROUND_TOOL_NAMES = /* @__PURE__ */ new Set([
194
+ ...DURABLE_WEB_FOREGROUND_READ_ONLY_TOOL_NAMES,
195
+ ...DURABLE_WEB_FOREGROUND_INTERACTIVE_TOOL_NAMES,
196
+ ...DURABLE_WEB_FOREGROUND_MUTATING_TOOL_NAMES
197
+ ]);
198
+ var CONFIRMED_HANDOFF_TOOL_NAMES = new Set(
199
+ Object.entries(TOOL_EXECUTION_CONTRACT).filter(([, contract]) => contract.interaction === "handoff").map(([name]) => name)
200
+ );
201
+ function hasProvenServerReadOnlySemantics(toolName) {
202
+ const contract = resolveToolExecutionContract(toolName);
203
+ return contract.durableWebForeground === "read-only" && (contract.replay === "pure" || contract.replay === "idempotent") && (contract.sideEffects === "none" || contract.sideEffects === "observable") && contract.locality === "server" && contract.interaction === "none";
204
+ }
205
+ function hasProvenServerMutatingSemantics(toolName) {
206
+ const contract = resolveToolExecutionContract(toolName);
207
+ return contract.durableWebForeground === "mutating" && (contract.replay === "unsafe" || contract.replay === "deduplicated") && contract.sideEffects === "mutation" && contract.locality === "server" && contract.interaction === "none";
208
+ }
209
+ function hasProvenDurableWebForegroundSemantics(toolName) {
210
+ const contract = resolveToolExecutionContract(toolName);
211
+ if (contract.durableWebForeground === "read-only") {
212
+ return hasProvenServerReadOnlySemantics(toolName);
213
+ }
214
+ if (contract.durableWebForeground === "interactive") {
215
+ return contract.locality === "server" && contract.interaction === "blocking" && contract.sideEffects === "observable";
216
+ }
217
+ if (contract.durableWebForeground === "mutating") {
218
+ return hasProvenServerMutatingSemantics(toolName);
219
+ }
220
+ return false;
221
+ }
222
+
223
+ export {
224
+ resolveToolExecutionContract,
225
+ DURABLE_WEB_FOREGROUND_TOOL_NAMES,
226
+ hasProvenDurableWebForegroundSemantics
227
+ };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-RU4SD66C.js";
4
+ } from "./chunk-GYVCJABP.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-VZKUKCA6.js";
7
+ } from "./chunk-MZLE5HQ3.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
- } from "./chunk-OWYYDMGJ.js";
10
+ } from "./chunk-S2NTVGA2.js";
11
11
  import {
12
12
  extractReasoningFromResponseOutput,
13
13
  extractTextFromResponseOutput,
14
14
  extractToolCallsFromResponseOutput
15
- } from "./chunk-UTV2AYEG.js";
15
+ } from "./chunk-MAIITKBT.js";
16
16
  import {
17
17
  isRecord
18
18
  } from "./chunk-KUG52IAP.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-E2BESSAW.js";
11
11
  import {
12
12
  getModelContextWindow
13
- } from "./chunk-CZM5YTZ7.js";
13
+ } from "./chunk-RDH5CQ4T.js";
14
14
  import {
15
15
  isRecord
16
16
  } from "./chunk-KUG52IAP.js";
@@ -18,7 +18,7 @@ import {
18
18
  PLATFORM_HOSTED_KIMI_K3_MODEL,
19
19
  isFireworksKimiModel,
20
20
  isNoloHostedProvider
21
- } from "./chunk-GOO6G4PY.js";
21
+ } from "./chunk-CKG3PRZ7.js";
22
22
  import {
23
23
  asTrimmedLowercaseString
24
24
  } from "./chunk-QSJ3HFEF.js";
@@ -0,0 +1,226 @@
1
+ import {
2
+ require_react
3
+ } from "./chunk-5FUN7EG4.js";
4
+ import {
5
+ normalizeSpaceId
6
+ } from "./chunk-UAD2WT54.js";
7
+ import {
8
+ toTimestampMs
9
+ } from "./chunk-44X52WOJ.js";
10
+ import {
11
+ __toESM
12
+ } from "./chunk-U67V476Y.js";
13
+
14
+ // packages/create/space/spaceCurrentStore.ts
15
+ var import_react = __toESM(require_react(), 1);
16
+ var VIEW_MODE_STORAGE_KEY = "nolo-space-view-mode";
17
+ var readStoredViewMode = () => {
18
+ try {
19
+ if (typeof window === "undefined") return "all";
20
+ return window.localStorage.getItem(VIEW_MODE_STORAGE_KEY) === "categories" ? "categories" : "all";
21
+ } catch {
22
+ return "all";
23
+ }
24
+ };
25
+ var writeStoredViewMode = (mode) => {
26
+ try {
27
+ if (typeof window === "undefined") return;
28
+ window.localStorage.setItem(VIEW_MODE_STORAGE_KEY, mode);
29
+ } catch {
30
+ }
31
+ };
32
+ var createInitialState = () => ({
33
+ currentSpaceId: null,
34
+ currentSpace: null,
35
+ viewMode: readStoredViewMode()
36
+ });
37
+ var state = createInitialState();
38
+ var listeners = /* @__PURE__ */ new Set();
39
+ var version = 0;
40
+ var notify = () => {
41
+ version += 1;
42
+ for (const listener of listeners) {
43
+ try {
44
+ listener();
45
+ } catch {
46
+ }
47
+ }
48
+ };
49
+ function getCurrentSpaceId() {
50
+ return state.viewMode === "all" ? null : state.currentSpaceId;
51
+ }
52
+ function getCurrentSpaceIdRaw() {
53
+ return state.currentSpaceId;
54
+ }
55
+ function getCurrentSpaceRaw() {
56
+ return state.currentSpace;
57
+ }
58
+ function getViewMode() {
59
+ return state.viewMode;
60
+ }
61
+ function setViewMode(mode) {
62
+ if (state.viewMode === mode) return;
63
+ state = { ...state, viewMode: mode };
64
+ writeStoredViewMode(mode);
65
+ notify();
66
+ }
67
+ function setCurrentSpace(space) {
68
+ state = { ...state, currentSpace: space };
69
+ notify();
70
+ }
71
+ function setCurrentSpaceBoth(spaceId, space) {
72
+ state = { ...state, currentSpaceId: spaceId, currentSpace: space };
73
+ notify();
74
+ }
75
+ function updateCurrentSpaceIfMatch(spaceId, space) {
76
+ const currentId = state.currentSpaceId;
77
+ if (currentId && normalizeSpaceId(currentId) === normalizeSpaceId(spaceId)) {
78
+ state = { ...state, currentSpace: space };
79
+ notify();
80
+ }
81
+ }
82
+
83
+ // packages/create/space/spaceMembershipStore.ts
84
+ var import_react2 = __toESM(require_react(), 1);
85
+ var createInitialState2 = () => ({
86
+ memberSpaces: null,
87
+ loading: false,
88
+ membershipStatus: "idle",
89
+ initialized: false
90
+ });
91
+ var state2 = createInitialState2();
92
+ var listeners2 = /* @__PURE__ */ new Set();
93
+ var version2 = 0;
94
+ var notify2 = () => {
95
+ version2 += 1;
96
+ for (const listener of listeners2) {
97
+ try {
98
+ listener();
99
+ } catch {
100
+ }
101
+ }
102
+ };
103
+ var getMembershipUpdatedAt = (space) => {
104
+ if (!space) return 0;
105
+ return toTimestampMs(
106
+ space.spaceUpdatedAt ?? space.memberUpdatedAt ?? space.updatedAt ?? space.createdAt ?? space.joinedAt
107
+ );
108
+ };
109
+ function dedupeMemberSpacesById(memberSpaces) {
110
+ const membershipMap = /* @__PURE__ */ new Map();
111
+ memberSpaces.forEach((space) => {
112
+ const prev = membershipMap.get(space.spaceId);
113
+ if (!prev || getMembershipUpdatedAt(space) >= getMembershipUpdatedAt(prev)) {
114
+ membershipMap.set(space.spaceId, space);
115
+ }
116
+ });
117
+ return Array.from(membershipMap.values());
118
+ }
119
+ function getAllMemberSpaces() {
120
+ const memberSpaces = dedupeMemberSpacesById(state2.memberSpaces || []);
121
+ return [...memberSpaces].sort((a, b) => {
122
+ return getMembershipUpdatedAt(b) - getMembershipUpdatedAt(a);
123
+ });
124
+ }
125
+ function setMemberSpaces(spaces) {
126
+ state2 = {
127
+ ...state2,
128
+ memberSpaces: spaces,
129
+ loading: false,
130
+ error: void 0,
131
+ membershipStatus: "fresh",
132
+ initialized: true
133
+ };
134
+ notify2();
135
+ }
136
+ function setMembershipLoading() {
137
+ state2 = { ...state2, loading: true, membershipStatus: "loading" };
138
+ notify2();
139
+ }
140
+ function setMembershipRejected(errorMessage, isRemoteUnavailable) {
141
+ const membershipStatus = isRemoteUnavailable ? "offline" : state2.membershipStatus === "loading" ? "idle" : state2.membershipStatus;
142
+ state2 = {
143
+ ...state2,
144
+ loading: false,
145
+ error: errorMessage,
146
+ membershipStatus
147
+ };
148
+ notify2();
149
+ }
150
+ function appendRecoveredMemberships(recovered) {
151
+ if (!recovered || recovered.length === 0) return;
152
+ if (state2.memberSpaces === null) {
153
+ state2 = {
154
+ ...state2,
155
+ memberSpaces: dedupeMemberSpacesById(recovered)
156
+ };
157
+ notify2();
158
+ return;
159
+ }
160
+ state2 = {
161
+ ...state2,
162
+ memberSpaces: dedupeMemberSpacesById([
163
+ ...state2.memberSpaces,
164
+ ...recovered
165
+ ]).sort((a, b) => toTimestampMs(b.joinedAt) - toTimestampMs(a.joinedAt))
166
+ };
167
+ notify2();
168
+ }
169
+ function setSpaceInitialized() {
170
+ state2 = { ...state2, initialized: true };
171
+ notify2();
172
+ }
173
+ function setMembershipLoaded() {
174
+ state2 = { ...state2, loading: false, error: void 0 };
175
+ notify2();
176
+ }
177
+ function addMemberSpace(space) {
178
+ const existing = state2.memberSpaces || [];
179
+ state2 = {
180
+ ...state2,
181
+ memberSpaces: dedupeMemberSpacesById([...existing, space])
182
+ };
183
+ notify2();
184
+ }
185
+ function removeMemberSpace(spaceId) {
186
+ if (!state2.memberSpaces) return;
187
+ const normalized = normalizeSpaceId(spaceId);
188
+ state2 = {
189
+ ...state2,
190
+ memberSpaces: state2.memberSpaces.filter(
191
+ (s) => normalizeSpaceId(s.spaceId) !== normalized
192
+ )
193
+ };
194
+ notify2();
195
+ }
196
+ function updateMemberSpaceName(spaceId, name) {
197
+ if (!state2.memberSpaces || !name) return;
198
+ state2 = {
199
+ ...state2,
200
+ memberSpaces: state2.memberSpaces.map(
201
+ (space) => space.spaceId === spaceId ? { ...space, spaceName: name } : space
202
+ )
203
+ };
204
+ notify2();
205
+ }
206
+
207
+ export {
208
+ getCurrentSpaceId,
209
+ getCurrentSpaceIdRaw,
210
+ getCurrentSpaceRaw,
211
+ getViewMode,
212
+ setViewMode,
213
+ setCurrentSpace,
214
+ setCurrentSpaceBoth,
215
+ updateCurrentSpaceIfMatch,
216
+ getAllMemberSpaces,
217
+ setMemberSpaces,
218
+ setMembershipLoading,
219
+ setMembershipRejected,
220
+ appendRecoveredMemberships,
221
+ setSpaceInitialized,
222
+ setMembershipLoaded,
223
+ addMemberSpace,
224
+ removeMemberSpace,
225
+ updateMemberSpaceName
226
+ };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-SM3NSZJV.js";
3
+ } from "./chunk-2UCBGYO4.js";
4
4
  import {
5
5
  isPlatformHostedDeepseekModel,
6
6
  isPlatformHostedOpenAIImageModel,
7
7
  resolvePlatformHostedRouting
8
- } from "./chunk-GOO6G4PY.js";
8
+ } from "./chunk-CKG3PRZ7.js";
9
9
  import {
10
10
  asTrimmedLowercaseString
11
11
  } from "./chunk-QSJ3HFEF.js";