nolo-cli 0.228.0-alpha.2 → 0.228.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 (260) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-VYCHHZVT.js → _executeModel-AKCTHGMP.js} +89 -83
  3. package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
  4. package/{action-GDZDXPMB.js → action-C6IQAKN4.js} +8 -5
  5. package/{addContentAction-7RO4AMRI.js → addContentAction-53364YDW.js} +13 -12
  6. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-U5DD5EN5.js} +16 -15
  7. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2E5FAGUO.js} +128 -115
  8. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-UGZZAH7E.js} +128 -111
  9. package/{agentListCommands-4WLG32IW.js → agentListCommands-JCTW3J2K.js} +398 -179
  10. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-QPG5ZXF4.js} +58 -47
  11. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-QLTABYR7.js} +2 -2
  12. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-2EYJ5ENC.js} +1 -1
  13. package/agentRecordCommands-4NTVR6MZ.js +194 -0
  14. package/agentRunCommand-VHF34PYC.js +232 -0
  15. package/{agentRunControl-MBG4U6SL.js → agentRunControl-QYTXUQGY.js} +14 -9
  16. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-U54AKHXH.js} +58 -43
  17. package/{agentSlice-UG76KEBH.js → agentSlice-4JGDEXWK.js} +14 -13
  18. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-XBE5QJ6P.js} +58 -47
  19. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-QIYLXXGA.js} +58 -47
  20. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-JXS6ZQZZ.js} +58 -47
  21. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-SZS7SJPK.js} +58 -47
  22. package/{appListCommands-CUCPRUXW.js → appListCommands-B3GBJSNV.js} +58 -47
  23. package/{authCommand-OZ2KTP4Z.js → authCommand-V6EOMZX6.js} +25 -19
  24. package/{authCommands-55OGQGCR.js → authCommands-T5FODCEG.js} +12 -6
  25. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-ZQC3IIO2.js} +8 -7
  26. package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
  27. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-OFX7ZGKP.js} +3 -3
  28. package/{chunk-DBUR22G5.js → chunk-223KZUJ6.js} +19 -15
  29. package/{chunk-3U44JB3O.js → chunk-2C5VN7NH.js} +1 -1
  30. package/{chunk-PWTNI4N7.js → chunk-2E4BYAUE.js} +22 -0
  31. package/{chunk-L32W3PRP.js → chunk-2FZVXOFX.js} +234 -18
  32. package/{chunk-HBRDSQ3M.js → chunk-2JHGUL5K.js} +3 -2
  33. package/chunk-2SXN7LAY.js +15 -0
  34. package/chunk-3A5NNQCN.js +64 -0
  35. package/chunk-3F2FRLIO.js +372 -0
  36. package/{chunk-DEA37IUY.js → chunk-46FETNLF.js} +2 -2
  37. package/{chunk-ZEVQHCLM.js → chunk-4GYVS4PM.js} +8 -6
  38. package/{chunk-CBUZ6DKA.js → chunk-4YPH5KRA.js} +1 -1
  39. package/chunk-4ZCTKB27.js +31 -0
  40. package/chunk-53W5BXLN.js +340 -0
  41. package/{chunk-7FEP5USX.js → chunk-5AYP5QBB.js} +5 -5
  42. package/{chunk-XAG3FWBE.js → chunk-5ISNPTQH.js} +5 -5
  43. package/{chunk-EVGU5P4U.js → chunk-5P3PPQVP.js} +1 -1
  44. package/{chunk-XSW4EXQV.js → chunk-6BMTKYAO.js} +55 -18
  45. package/chunk-6PAHSSD2.js +33401 -0
  46. package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
  47. package/{chunk-7JGMNKKG.js → chunk-6SOWMEAY.js} +30 -9
  48. package/{chunk-RG2DGNL6.js → chunk-6VEO7Z3Y.js} +3 -3
  49. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  50. package/{chunk-DGYCDA6W.js → chunk-7BIJFGKS.js} +36 -17
  51. package/{chunk-WFDNADFX.js → chunk-7OVOZRZF.js} +8 -8
  52. package/{chunk-WCFFRBL5.js → chunk-7PON4LBY.js} +45 -27
  53. package/{chunk-QRGDJA4B.js → chunk-7WHCIA5V.js} +33 -7
  54. package/{chunk-CMMI3DAT.js → chunk-ADYWV732.js} +59 -30
  55. package/{chunk-QYB23WUH.js → chunk-AIFQKNPP.js} +1 -1
  56. package/{chunk-HGDKT2D6.js → chunk-BPB3T5EU.js} +174 -1
  57. package/{chunk-DUUDXSLX.js → chunk-BZLGPM5B.js} +28 -4
  58. package/{chunk-ATEKLSLR.js → chunk-BZMDWGQQ.js} +14 -9
  59. package/chunk-C5A54QS7.js +108 -0
  60. package/{chunk-S6K5F3KP.js → chunk-CEKRIR22.js} +1 -1
  61. package/{chunk-42OKN2LI.js → chunk-D634SL2Y.js} +9 -107
  62. package/{chunk-DLXMMTGM.js → chunk-DHRPLRIR.js} +1283 -786
  63. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  64. package/{chunk-OBIC6EG7.js → chunk-DNNPARJK.js} +9 -5
  65. package/{chunk-X3E6EHJW.js → chunk-E3LSO6EI.js} +292 -207
  66. package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
  67. package/chunk-EHFBP6IK.js +791 -0
  68. package/chunk-EJQE5HB7.js +21 -0
  69. package/{chunk-VQ5N5GSV.js → chunk-EL5NRJHI.js} +4 -4
  70. package/chunk-EUGTFFO6.js +42 -0
  71. package/{chunk-7BCG67EI.js → chunk-EVHTYVD2.js} +1199 -442
  72. package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
  73. package/{chunk-262R3XNN.js → chunk-FEIVARWR.js} +377 -112
  74. package/{chunk-3VZLEKV2.js → chunk-FLBJ7IJI.js} +14 -14
  75. package/{chunk-EEOOBRA7.js → chunk-FXEPZKNJ.js} +13 -6
  76. package/{chunk-XTJKU3Z4.js → chunk-FYAMUU55.js} +677 -140
  77. package/{chunk-M3OZRQNH.js → chunk-FZANZZ63.js} +1 -1
  78. package/chunk-GAHJLSDO.js +107 -0
  79. package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
  80. package/{chunk-4N6G2CKP.js → chunk-HDKMVYNJ.js} +47 -1
  81. package/chunk-HEVRQGGH.js +106 -0
  82. package/{chunk-BIWI5M4E.js → chunk-HFHJPHFK.js} +1 -1
  83. package/{chunk-R6Z5S5GA.js → chunk-HPDLPEUG.js} +60 -17
  84. package/{chunk-YKY4OVOX.js → chunk-HQUGB2HM.js} +17 -170
  85. package/chunk-IIRJ4P4I.js +24 -0
  86. package/chunk-IVK2KT3H.js +209 -0
  87. package/{chunk-ALAES342.js → chunk-IYLUK67R.js} +9 -5
  88. package/{chunk-N5Z2V73W.js → chunk-J55F3IEZ.js} +1 -1
  89. package/{chunk-S6FDXXZV.js → chunk-J7JRCOIW.js} +2 -2
  90. package/{chunk-OWKNSIXL.js → chunk-JAKRY74O.js} +470 -83
  91. package/{chunk-VS276URX.js → chunk-JCQ3WCQ3.js} +4 -2
  92. package/chunk-JLZJL3WC.js +988 -0
  93. package/{chunk-OBSEKCVK.js → chunk-JPXACKSW.js} +219 -52
  94. package/{chunk-OTKSESZR.js → chunk-KDBDOXOM.js} +138 -54
  95. package/{chunk-VP3BINY7.js → chunk-KDDHQMSH.js} +31 -1
  96. package/{chunk-RBPUNSG5.js → chunk-KG27JIG4.js} +18 -108
  97. package/{chunk-4WVJLODK.js → chunk-KHYSFS3W.js} +88 -7
  98. package/{chunk-TCZ2VJZQ.js → chunk-KKIQAVDR.js} +9 -9
  99. package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
  100. package/chunk-KXOPLLFP.js +190 -0
  101. package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
  102. package/{chunk-HYLRQDEE.js → chunk-LLUBUHNT.js} +6 -6
  103. package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
  104. package/{chunk-RTHFJZ6M.js → chunk-LVZVSLKO.js} +29 -9
  105. package/{chunk-TI2EPRHE.js → chunk-MNFUKRRU.js} +3 -3
  106. package/chunk-MVOZ22RZ.js +26 -0
  107. package/{chunk-CNMY2XM6.js → chunk-O3A2CHAL.js} +6 -6
  108. package/{chunk-TSPMLCWI.js → chunk-OB4FBZXJ.js} +5 -5
  109. package/{chunk-LYD6C7OU.js → chunk-OJSJJKHF.js} +6 -6
  110. package/{chunk-M4SFKP5L.js → chunk-OKAXQFON.js} +3 -3
  111. package/{chunk-CD3RU7XL.js → chunk-OKH74FML.js} +121 -14
  112. package/{chunk-U2HBB7RS.js → chunk-OOV5JN25.js} +130 -30
  113. package/{chunk-ZH3KXFHS.js → chunk-OOVOAG4Q.js} +1 -1
  114. package/chunk-OQFOE4SJ.js +405 -0
  115. package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
  116. package/chunk-P27E22MA.js +203 -0
  117. package/{chunk-SRCCSTIM.js → chunk-P4R5KXU7.js} +4 -4
  118. package/{chunk-FJ23FZXF.js → chunk-PHREU2KZ.js} +5 -3
  119. package/{chunk-HSSBDZLD.js → chunk-PIVTQRX6.js} +43 -13
  120. package/{chunk-XFXFPUO7.js → chunk-PJL7OJRC.js} +13 -39
  121. package/{chunk-RRDRQOEC.js → chunk-PNLDLUMO.js} +276 -303
  122. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  123. package/{chunk-HHFGE2WF.js → chunk-QGFLVQ6E.js} +5 -5
  124. package/{chunk-EGHP7KOY.js → chunk-QONAOHVW.js} +38 -29
  125. package/chunk-R3FZHW4Q.js +103 -0
  126. package/{chunk-ZYKJBRZ3.js → chunk-R3MV2GII.js} +1 -47
  127. package/chunk-R72QWIFO.js +50 -0
  128. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  129. package/{chunk-ILHQ2AXT.js → chunk-RIWKZT7E.js} +36 -8
  130. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  131. package/{chunk-45CAVC35.js → chunk-S7H4KTMB.js} +2568 -337
  132. package/{chunk-OJ45MEEI.js → chunk-SA356NGW.js} +1 -1
  133. package/{chunk-F6Z6ZCUV.js → chunk-SCAC3NM5.js} +3 -3
  134. package/{chunk-YVFH2MFB.js → chunk-SLUN7W6S.js} +7 -7
  135. package/chunk-SQL7YNED.js +650 -0
  136. package/chunk-SR4FE5VD.js +9 -0
  137. package/{chunk-HF7BLF3F.js → chunk-SSOR2EDT.js} +107 -104
  138. package/chunk-TRRXYFTR.js +46 -0
  139. package/{chunk-3QIYD3VM.js → chunk-TUOHSUK5.js} +20068 -18402
  140. package/chunk-TYJCIA2O.js +835 -0
  141. package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
  142. package/{chunk-GAYNXB6T.js → chunk-U3BUWDUP.js} +1031 -2155
  143. package/{chunk-BP5ZJ6B4.js → chunk-U6QNVOR5.js} +1 -1
  144. package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
  145. package/chunk-UAF5VQCE.js +77 -0
  146. package/{chunk-TQEKUOTI.js → chunk-UFGUJ2IH.js} +12 -12
  147. package/{chunk-VMJVAJ6W.js → chunk-UP7KBWLE.js} +109 -33
  148. package/{chunk-2X7WFDT6.js → chunk-UUCYUN6Y.js} +1 -1
  149. package/{chunk-5YMA6DDZ.js → chunk-UZKBVQUX.js} +1 -1
  150. package/chunk-V5TI7HJH.js +133 -0
  151. package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
  152. package/{chunk-MNEZUL5S.js → chunk-VJFDG3ZG.js} +63 -94
  153. package/{chunk-G7IUT2V3.js → chunk-WC3J5SL2.js} +635 -350
  154. package/{chunk-HXB4VDGK.js → chunk-WD5547ZF.js} +33 -30
  155. package/chunk-WDWZPASX.js +29 -0
  156. package/{chunk-4ZGPHFLE.js → chunk-WS36XPJD.js} +2 -2
  157. package/{chunk-6QHKRARD.js → chunk-WSLL7VV4.js} +29 -5
  158. package/chunk-XRGBJHZX.js +136 -0
  159. package/{chunk-MZG5CETE.js → chunk-Y2KWJTOZ.js} +4 -4
  160. package/{dialogUsageCommand-W2WCSGKF.js → chunk-Y2TCTNUD.js} +27 -20
  161. package/chunk-YJPK35HB.js +175 -0
  162. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  163. package/{chunk-547ENH5T.js → chunk-YN23INFZ.js} +4 -4
  164. package/{chunk-4QYJPWHH.js → chunk-YXK3GJF5.js} +232 -10
  165. package/{chunk-MJI3UAXN.js → chunk-Z2OWAYMI.js} +77 -51
  166. package/{chunk-7Z6EW7AH.js → chunk-ZTHAJU3O.js} +106 -14
  167. package/{chunk-YFLVRVYK.js → chunk-ZYPXOQS2.js} +1 -1
  168. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-BXHQ3PXP.js} +9 -9
  169. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
  170. package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
  171. package/cliLocalAgentRecordReader-47PXMHPH.js +104 -0
  172. package/{commandRegistry-FVYPE2IN.js → commandRegistry-CTMPAQH2.js} +111 -162
  173. package/{contentThunks-GNFPG32S.js → contentThunks-CAHIIZO5.js} +38 -36
  174. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-WDOI5VD7.js} +3 -3
  175. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-M25XZSPD.js} +38 -36
  176. package/{createDialogAction-EVTOPY7A.js → createDialogAction-4SN7FKI7.js} +39 -37
  177. package/{createPageAction-2UYF2IDZ.js → createPageAction-N7QPDN3M.js} +43 -41
  178. package/{db-M7FU2GNK.js → db-VR74ADGC.js} +7 -2
  179. package/{dbSlice-XRUZOGSU.js → dbSlice-RWPSVHBC.js} +12 -11
  180. package/{deleteFile-6URDHYRB.js → deleteFile-ECU6FU5C.js} +15 -7
  181. package/{dialogCommands-6SZD4TYP.js → dialogCommands-BBHWCKDP.js} +69 -53
  182. package/dialogMessageRecord-OAV77LT7.js +7 -0
  183. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-IASQGEMW.js} +11 -11
  184. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-JI3J22RV.js} +39 -37
  185. package/dialogTraceCommand-EW2KK6A4.js +961 -0
  186. package/dialogUsageCommand-WJ3U6KZU.js +27 -0
  187. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-QSX3X5U4.js} +57 -46
  188. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-63JBG2HQ.js} +59 -48
  189. package/{docReadCommands-JY2E5XEN.js → docReadCommands-CQFKRQUI.js} +57 -46
  190. package/{docStore-OKKIKLT3.js → docStore-XLBKGGNM.js} +14 -13
  191. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-534LUK25.js} +57 -46
  192. package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
  193. package/fetchMessages-TQEUZD7H.js +1 -1
  194. package/{getPricing-LF5C4XSI.js → getPricing-5BLZRPTM.js} +4 -4
  195. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-Q2VMEVOR.js} +127 -81
  196. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-C57T7YPE.js} +127 -109
  197. package/index.js +23 -11
  198. package/{localDialogRead-CCOCVGAP.js → localDialogRead-BJJT3TF5.js} +1 -1
  199. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-OALZPFZU.js} +134 -115
  200. package/localRuntimeAuthority-UF2DAQ3F.js +28 -0
  201. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-ZJFGNHML.js} +1 -1
  202. package/{machineCommands-HSQHDHOT.js → machineCommands-N6IVWRZT.js} +262 -325
  203. package/machineWsRunDispatch-PDWYB33B.js +209 -0
  204. package/markdownToSlate-PXYAIBVL.js +8 -0
  205. package/mcpLocalAuthorizeCommand-KYI4EGF5.js +110 -0
  206. package/{memberThunks-7Y3OYSJQ.js → memberThunks-43B7UYC5.js} +21 -16
  207. package/{models-H5NNZRLH.js → models-ZX2BYIMB.js} +2 -2
  208. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  209. package/package.json +2 -1
  210. package/{projectArchive-FQO654Z3.js → projectArchive-TJNW5DLM.js} +46 -44
  211. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-NTJUINI6.js} +36 -17
  212. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-W45SLUV6.js} +6 -6
  213. package/{read-TYMBGEXO.js → read-KG6INYUT.js} +13 -7
  214. package/{readDocTool-SKQVHBLO.js → readDocTool-N3GA52JR.js} +1 -1
  215. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-PJZJVGA5.js} +7486 -4492
  216. package/rememberExplicit-CPAPONSI.js +15 -0
  217. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-EEVSOQOJ.js} +18 -17
  218. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-3VC5TCDW.js} +107 -76
  219. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
  220. package/{secretCommands-KZWBZIYS.js → secretCommands-KVVZS7A6.js} +3 -3
  221. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-DNO5POHA.js} +15 -14
  222. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-QABBEO4C.js} +18 -17
  223. package/{settingThunks-ZRGWVGZD.js → settingThunks-DVKG4X4S.js} +181 -66
  224. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-ZMJH36AK.js} +4 -3
  225. package/{spaceCommands-5VNWMDBE.js → spaceCommands-AGGZXPY3.js} +235 -87
  226. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-4GTLL2OF.js} +242 -169
  227. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-KYWJSGOO.js} +16 -15
  228. package/{tableCommands-FTAOCBTX.js → tableCommands-EFA754RE.js} +7 -4
  229. package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
  230. package/{tools-M35PTIFB.js → tools-5AGPOPLW.js} +69 -65
  231. package/{tuiRestart-2IL37YIB.js → tuiRestart-77E7PL4R.js} +11 -10
  232. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-HROLGN4F.js} +16 -15
  233. package/{updateCommands-CPATDG6J.js → updateCommands-GJGRS6JK.js} +3 -3
  234. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-5OSEDGRK.js} +40 -38
  235. package/{usageCommand-2BF74MKF.js → usageCommand-WI6SQOPB.js} +2 -2
  236. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
  237. package/webapi-QVV65DQF.js +2487 -0
  238. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
  239. package/workContext-Y3ADAPZU.js +14 -0
  240. package/workContextAccess-VU5I4LKZ.js +11 -0
  241. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  242. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-P2SJVV3S.js} +2 -2
  243. package/agentRecordCommands-IZYUVHME.js +0 -177
  244. package/agentRunCommand-QM7ETUTX.js +0 -209
  245. package/chunk-2YGBI2XB.js +0 -30
  246. package/chunk-5ZMIIR23.js +0 -265
  247. package/chunk-5ZUOVCKT.js +0 -32
  248. package/chunk-62HXNQVV.js +0 -134
  249. package/chunk-FJSNBZXR.js +0 -142
  250. package/chunk-FPBJM2BW.js +0 -689
  251. package/chunk-JQZRSXS5.js +0 -90
  252. package/chunk-P2ZLUIW2.js +0 -795
  253. package/chunk-PPJYZRSQ.js +0 -160
  254. package/chunk-TUSTONB3.js +0 -81
  255. package/chunk-ZXF6D3I6.js +0 -359
  256. package/cliLocalAgentRecordReader-H3HYQRRR.js +0 -91
  257. package/lib-OT5OTXRU.js +0 -21046
  258. package/localRuntimeAuthority-IBJAT62G.js +0 -16
  259. package/machineWsRunDispatch-L6H7J66T.js +0 -192
  260. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
@@ -1,15 +1,7 @@
1
1
  import {
2
2
  authRoutes
3
- } from "./chunk-M3JEW6N6.js";
3
+ } from "./chunk-OYUMJMC5.js";
4
4
  import "./chunk-BYXBJQAS.js";
5
- import {
6
- readLiveDbRecordAfterTombstoneMerge
7
- } from "./chunk-M3OZRQNH.js";
8
- import {
9
- readDbRecord,
10
- writeAgentRecord
11
- } from "./chunk-TQEKUOTI.js";
12
- import "./chunk-5ZUOVCKT.js";
13
5
  import {
14
6
  createSpaceKey,
15
7
  normalizeSpaceId
@@ -17,66 +9,85 @@ import {
17
9
  import {
18
10
  resolveFileCategory
19
11
  } from "./chunk-3PVYUPXK.js";
12
+ import {
13
+ readLiveDbRecordAfterTombstoneMerge
14
+ } from "./chunk-FZANZZ63.js";
15
+ import {
16
+ readDbRecord,
17
+ writeAgentRecord
18
+ } from "./chunk-UFGUJ2IH.js";
19
+ import "./chunk-PNLDLUMO.js";
20
+ import "./chunk-AMWMV56B.js";
21
+ import "./chunk-UEILX4EV.js";
20
22
  import "./chunk-GBWGPTA7.js";
21
- import "./chunk-BV3FLP2L.js";
22
- import "./chunk-OJ45MEEI.js";
23
- import "./chunk-BR3GT6MR.js";
24
- import "./chunk-3QIYD3VM.js";
23
+ import "./chunk-SA356NGW.js";
24
+ import "./chunk-TUOHSUK5.js";
25
25
  import "./chunk-ZNFJWEN4.js";
26
- import "./chunk-U2HBB7RS.js";
27
- import "./chunk-PWTNI4N7.js";
26
+ import "./chunk-EHFBP6IK.js";
27
+ import "./chunk-OOV5JN25.js";
28
+ import "./chunk-2E4BYAUE.js";
28
29
  import "./chunk-AL3TYDIF.js";
29
- import "./chunk-HSSBDZLD.js";
30
+ import "./chunk-PIVTQRX6.js";
30
31
  import "./chunk-HNUWUO75.js";
31
32
  import "./chunk-CHOZJMJS.js";
32
- import "./chunk-XAG3FWBE.js";
33
- import "./chunk-LKA64WH4.js";
33
+ import "./chunk-DMPZMYH4.js";
34
+ import "./chunk-5ISNPTQH.js";
34
35
  import "./chunk-BYXBJQAS.js";
35
- import "./chunk-DUUDXSLX.js";
36
- import "./chunk-QYB23WUH.js";
36
+ import "./chunk-BZLGPM5B.js";
37
+ import "./chunk-AIFQKNPP.js";
37
38
  import "./chunk-56GBUMO5.js";
38
- import "./chunk-FPBJM2BW.js";
39
- import "./chunk-EEOOBRA7.js";
39
+ import "./chunk-TYJCIA2O.js";
40
+ import "./chunk-VJFDG3ZG.js";
41
+ import "./chunk-LS5KAVFQ.js";
42
+ import "./chunk-FXEPZKNJ.js";
40
43
  import "./chunk-X4O7FJF5.js";
41
- import "./chunk-MNEZUL5S.js";
42
- import "./chunk-QJTZ76CP.js";
43
- import "./chunk-VS276URX.js";
44
44
  import "./chunk-TLE77UJ5.js";
45
- import "./chunk-OBIC6EG7.js";
46
- import "./chunk-WFGNWWJI.js";
47
- import "./chunk-FJSNBZXR.js";
45
+ import "./chunk-VH7UO6E5.js";
46
+ import "./chunk-KXOPLLFP.js";
47
+ import "./chunk-DNNPARJK.js";
48
48
  import "./chunk-2MBTWINN.js";
49
- import "./chunk-QRGDJA4B.js";
49
+ import "./chunk-7WHCIA5V.js";
50
50
  import "./chunk-5ZUL4CUO.js";
51
- import "./chunk-L32W3PRP.js";
51
+ import "./chunk-2FZVXOFX.js";
52
52
  import "./chunk-H57T64RA.js";
53
53
  import "./chunk-UKZX3NHN.js";
54
+ import "./chunk-SR4FE5VD.js";
54
55
  import "./chunk-5MMAK75Q.js";
55
56
  import "./chunk-USGHJSGO.js";
57
+ import "./chunk-E6A5NHDH.js";
56
58
  import "./chunk-KX6YBIHG.js";
57
- import "./chunk-OQHIVPG4.js";
59
+ import "./chunk-UP7KBWLE.js";
60
+ import "./chunk-HEVRQGGH.js";
61
+ import "./chunk-EWQ3HGNZ.js";
62
+ import "./chunk-PSCNXBYA.js";
63
+ import "./chunk-IVK2KT3H.js";
58
64
  import "./chunk-DWLEOOGR.js";
59
65
  import "./chunk-7DPNBQSV.js";
60
66
  import "./chunk-OW765XBU.js";
61
- import "./chunk-VMJVAJ6W.js";
62
- import "./chunk-EWQ3HGNZ.js";
63
- import "./chunk-PSCNXBYA.js";
67
+ import "./chunk-D634SL2Y.js";
68
+ import "./chunk-UAF5VQCE.js";
69
+ import "./chunk-2SXN7LAY.js";
64
70
  import "./chunk-G7Y4GXTY.js";
65
71
  import "./chunk-6UBGXX2W.js";
66
- import "./chunk-G7IUT2V3.js";
67
- import "./chunk-6OVNSQHN.js";
68
- import "./chunk-W6RFEDN4.js";
69
- import "./chunk-EVGU5P4U.js";
70
- import "./chunk-ILHQ2AXT.js";
71
- import "./chunk-M2EJHDJP.js";
72
+ import "./chunk-BV3FLP2L.js";
73
+ import "./chunk-4ZCTKB27.js";
74
+ import "./chunk-WC3J5SL2.js";
75
+ import "./chunk-EUGTFFO6.js";
76
+ import "./chunk-AETZ7AD6.js";
77
+ import "./chunk-5P3PPQVP.js";
78
+ import "./chunk-KHCLMKZZ.js";
72
79
  import "./chunk-SYTHYBMI.js";
73
80
  import "./chunk-OJKUU3LP.js";
74
81
  import "./chunk-YZMNK53S.js";
82
+ import "./chunk-QGFLVQ6E.js";
83
+ import "./chunk-BR3GT6MR.js";
84
+ import "./chunk-JCQ3WCQ3.js";
85
+ import "./chunk-UUCYUN6Y.js";
86
+ import "./chunk-YLAHYLDQ.js";
87
+ import "./chunk-RIWKZT7E.js";
88
+ import "./chunk-M2EJHDJP.js";
75
89
  import "./chunk-I42VC5KR.js";
76
90
  import "./chunk-U6VC4MU4.js";
77
- import "./chunk-42OKN2LI.js";
78
- import "./chunk-JQZRSXS5.js";
79
- import "./chunk-KHCLMKZZ.js";
80
91
  import {
81
92
  parseUserIdFromAuthToken,
82
93
  readOption,
@@ -87,20 +98,20 @@ import {
87
98
  import "./chunk-OLZBQWZU.js";
88
99
  import "./chunk-LCBAMY2M.js";
89
100
  import "./chunk-4O22PGNQ.js";
90
- import "./chunk-62HXNQVV.js";
91
- import "./chunk-7JGMNKKG.js";
92
- import "./chunk-RTHFJZ6M.js";
93
- import "./chunk-HBRDSQ3M.js";
101
+ import "./chunk-EJQE5HB7.js";
102
+ import "./chunk-6SOWMEAY.js";
94
103
  import "./chunk-HNMXYYJR.js";
104
+ import "./chunk-LVZVSLKO.js";
105
+ import "./chunk-2JHGUL5K.js";
95
106
  import "./chunk-3EUW3WEO.js";
96
- import "./chunk-CD3RU7XL.js";
107
+ import "./chunk-WWC7I6TA.js";
108
+ import "./chunk-OKH74FML.js";
97
109
  import "./chunk-JRTNUU5Z.js";
98
110
  import "./chunk-KUG52IAP.js";
99
- import "./chunk-WWC7I6TA.js";
100
111
  import "./chunk-G3SUCT4W.js";
101
112
  import "./chunk-4SN6J65J.js";
102
113
  import "./chunk-CF7PE763.js";
103
- import "./chunk-OBSEKCVK.js";
114
+ import "./chunk-JPXACKSW.js";
104
115
  import "./chunk-QSJ3HFEF.js";
105
116
  import "./chunk-U67V476Y.js";
106
117
 
@@ -113,6 +124,77 @@ var VALID_INVITE_ROLES = /* @__PURE__ */ new Set([
113
124
  "member" /* MEMBER */,
114
125
  "guest" /* GUEST */
115
126
  ]);
127
+ var UPLOAD_MIME_BY_EXTENSION = {
128
+ ".yaml": "application/yaml",
129
+ ".yml": "application/yaml",
130
+ ".json": "application/json",
131
+ ".csv": "text/csv",
132
+ ".tsv": "text/tab-separated-values",
133
+ ".txt": "text/plain",
134
+ ".md": "text/markdown",
135
+ ".pdf": "application/pdf",
136
+ ".epub": "application/epub+zip",
137
+ ".mobi": "application/x-mobipocket-ebook",
138
+ ".azw3": "application/vnd.amazon.ebook",
139
+ ".doc": "application/msword",
140
+ ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
141
+ ".xls": "application/vnd.ms-excel",
142
+ ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
143
+ ".ppt": "application/vnd.ms-powerpoint",
144
+ ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
145
+ ".odt": "application/vnd.oasis.opendocument.text",
146
+ ".rtf": "application/rtf",
147
+ ".zip": "application/zip",
148
+ ".png": "image/png",
149
+ ".jpg": "image/jpeg",
150
+ ".jpeg": "image/jpeg",
151
+ ".webp": "image/webp",
152
+ ".gif": "image/gif"
153
+ // Deliberately NOT mapped: active content (.html/.htm/.svg/.xhtml). The server
154
+ // stores this mime and replays it as Content-Type on file reads; public/space
155
+ // reads are served inline (no Content-Disposition) from the app origin
156
+ // (packages/database/server/routes/fileRead.ts buildFileContentHeaders), so a
157
+ // mapped text/html would make the CLI a stored-XSS uploader. Those extensions
158
+ // fall back to application/octet-stream and download instead of rendering.
159
+ };
160
+ function resolveUploadMimeType(extension) {
161
+ const normalized = extension.trim().toLowerCase();
162
+ const key = normalized.startsWith(".") ? normalized : `.${normalized}`;
163
+ return UPLOAD_MIME_BY_EXTENSION[key] ?? "application/octet-stream";
164
+ }
165
+ function resolveUploadName(args) {
166
+ const fileExt = extname(args.filePath).toLowerCase();
167
+ if (args.displayName === void 0) return basename(args.filePath);
168
+ const raw = args.displayName.trim();
169
+ if (!raw) {
170
+ throw new Error("space upload --name must not be empty; omit --name to keep the original file name.");
171
+ }
172
+ if (/[\u0000-\u001f\u007f]/.test(raw)) {
173
+ throw new Error(
174
+ "space upload --name must not contain control characters (tab, newline, CR, DEL, \u2026)."
175
+ );
176
+ }
177
+ if (raw === "." || raw === ".." || raw.includes("/") || raw.includes("\\")) {
178
+ throw new Error(
179
+ `space upload --name must be a plain file name without path separators, got: ${raw}`
180
+ );
181
+ }
182
+ if (basename(raw) !== raw) {
183
+ throw new Error(`space upload --name must be a plain file name, got: ${raw}`);
184
+ }
185
+ const rawExt = extname(raw);
186
+ if (!rawExt) return `${raw}${fileExt}`;
187
+ if (rawExt.toLowerCase() !== fileExt) {
188
+ throw new Error(
189
+ `space upload --name extension (${rawExt}) must match the uploaded file extension (${fileExt}); the stored MIME type is inferred from the real file name.`
190
+ );
191
+ }
192
+ return raw;
193
+ }
194
+ function resolveFilePageUrl(args) {
195
+ const pageKey = encodeURIComponent(args.fileDbKey);
196
+ return args.spaceId ? `${args.serverUrl}/space/${args.spaceId}/${pageKey}` : `${args.serverUrl}/${pageKey}`;
197
+ }
116
198
  function hasHelpArg(args) {
117
199
  return args.includes("--help") || args.includes("-h");
118
200
  }
@@ -173,15 +255,32 @@ Options:
173
255
  }
174
256
  function printUploadUsage(output) {
175
257
  output.write(`Usage:
176
- nolo space upload --space <spaceId> --file <path>
258
+ nolo space upload --space <spaceId> --file <path> [--name <displayName>]
259
+ nolo space upload --personal --file <path> [--name <displayName>]
260
+
261
+ Target (exactly one is required):
262
+ --space <spaceId> Upload into a space (members-only).
263
+ --personal, --private-storage
264
+ Upload into the current user's personal storage
265
+ (outside any space; no space contents record).
177
266
 
178
267
  Options:
268
+ --name <displayName> Override the displayed file name, e.g.
269
+ "\u6743\u529B\u4E0E\u8FDB\u6B65 - \u8FBE\u9F99\xB7\u963F\u897F\u83AB\u683C\u9C81.epub". Must be a bare
270
+ file name (no path separators); when the extension is
271
+ omitted the real file's extension is appended, and a
272
+ different extension is rejected because the stored MIME
273
+ type comes from the real file name.
179
274
  --server <url> Default API target.
180
275
  --token <jwt> Auth token. Required for writes.
181
- --json Print machine-readable JSON.
276
+ --json Print machine-readable JSON (fileId, dbKey, uploadName,
277
+ mimeType, target, pageUrl).
182
278
 
183
279
  Note:
184
- Currently only YAML files (.yaml, .yml) are supported.
280
+ Any file type is accepted as long as the file name has a non-empty extension
281
+ (book.epub); the stored MIME type is inferred from that extension. .yaml/.yml
282
+ map to application/yaml, unknown and active-content extensions (.html, .svg)
283
+ fall back to application/octet-stream.
185
284
  `);
186
285
  }
187
286
  async function writeDbRecord(args) {
@@ -395,30 +494,45 @@ async function runSpaceUploadCommand(args, deps) {
395
494
  printUploadUsage(deps.output ?? process.stdout);
396
495
  return 0;
397
496
  }
497
+ const personalStorage = hasFlag(args, "--personal") || hasFlag(args, "--private-storage");
398
498
  const spaceIdRaw = readOption(args, "--space") ?? readOption(args, "--space-id");
399
499
  const filePath = readOption(args, "--file");
400
- if (!spaceIdRaw?.trim()) throw new Error("space upload requires --space <spaceId>.");
500
+ if (personalStorage && spaceIdRaw?.trim()) {
501
+ throw new Error(
502
+ "space upload takes exactly one target: --space <spaceId> or --personal (they are mutually exclusive)."
503
+ );
504
+ }
505
+ if (!personalStorage && !spaceIdRaw?.trim()) {
506
+ throw new Error(
507
+ "space upload requires a target: --space <spaceId> for a space, or --personal for your own private storage."
508
+ );
509
+ }
401
510
  if (!filePath?.trim()) throw new Error("space upload requires --file <path>.");
402
511
  const ext = extname(filePath).toLowerCase();
403
- if (ext !== ".yaml" && ext !== ".yml") {
404
- throw new Error("Only YAML files (.yaml, .yml) are supported for space upload.");
512
+ if (!ext || ext === ".") {
513
+ throw new Error(
514
+ "space upload requires a file name with a non-empty extension (the extension decides the stored MIME type), e.g. book.epub"
515
+ );
405
516
  }
517
+ const mimeType = resolveUploadMimeType(ext);
518
+ const uploadName = resolveUploadName({
519
+ filePath,
520
+ displayName: readOption(args, "--name")
521
+ });
406
522
  const { authToken, userId } = requireTokenUser(args, deps.env);
407
523
  const serverUrl = resolveServerUrl(args, deps.env);
408
524
  const fetchImpl = deps.fetchImpl ?? fetch;
409
- const spaceId = normalizeSpaceId(spaceIdRaw);
525
+ const spaceId = personalStorage ? null : normalizeSpaceId(spaceIdRaw);
410
526
  const fileContent = readFileSync(filePath);
411
- const spaceKey = createSpaceKey.space(spaceId);
412
- const uploadName = basename(filePath);
413
- const mimeType = "application/yaml";
527
+ const spaceKey = spaceId ? createSpaceKey.space(spaceId) : null;
414
528
  const now = Date.now();
415
529
  const nowIso = new Date(now).toISOString();
416
- const { record: spaceRecord } = await readLiveDbRecordAfterTombstoneMerge({
530
+ const spaceRecord = spaceKey ? (await readLiveDbRecordAfterTombstoneMerge({
417
531
  dbKey: spaceKey,
418
532
  authToken,
419
533
  fetchImpl,
420
534
  serverUrls: resolveServerCandidates(args, deps.env, serverUrl)
421
- });
535
+ })).record : null;
422
536
  const formData = new FormData();
423
537
  formData.append("file", new Blob([fileContent], { type: mimeType }), uploadName);
424
538
  const fileId = ulid();
@@ -438,17 +552,17 @@ async function runSpaceUploadCommand(args, deps) {
438
552
  }),
439
553
  dbKey: fileDbKey,
440
554
  userId,
441
- ownerType: "space",
442
- ownerId: spaceId,
443
- ownerDbKey: spaceKey,
444
- source: "cli-space-upload",
555
+ ownerType: personalStorage ? "user" : "space",
556
+ ownerId: personalStorage ? userId : spaceId,
557
+ ...personalStorage ? {} : { ownerDbKey: spaceKey },
558
+ source: personalStorage ? "cli-personal-upload" : "cli-space-upload",
445
559
  createdAt: nowIso,
446
560
  updatedAt: nowIso
447
561
  }));
448
562
  formData.append("customKey", fileDbKey);
449
563
  formData.append("userId", userId);
450
- formData.append("ownerType", "space");
451
- formData.append("ownerId", spaceId);
564
+ formData.append("ownerType", personalStorage ? "user" : "space");
565
+ formData.append("ownerId", personalStorage ? userId : spaceId);
452
566
  const uploadRes = await fetchImpl(`${serverUrl}/api/v1/db/upload`, {
453
567
  method: "POST",
454
568
  headers: {
@@ -462,33 +576,67 @@ async function runSpaceUploadCommand(args, deps) {
462
576
  uploadData?.error?.message || uploadData?.error || `space upload failed: HTTP ${uploadRes.status}`
463
577
  );
464
578
  }
465
- const contents = spaceRecord.contents || {};
466
- contents[fileDbKey] = {
467
- ...contents[fileDbKey] ?? {},
468
- title: uploadName,
469
- type: "file" /* FILE */,
470
- contentKey: fileDbKey,
471
- createdAt: contents[fileDbKey]?.createdAt ?? now,
472
- updatedAt: now
579
+ const rawServerMimeType = uploadData?.metadata?.mimeType;
580
+ const serverMimeType = typeof rawServerMimeType === "string" && rawServerMimeType.trim() ? rawServerMimeType.trim() : null;
581
+ const storedMimeType = serverMimeType ?? mimeType;
582
+ const mimeTypeSource = serverMimeType ? "server" : "inferred";
583
+ if (spaceRecord && spaceKey) {
584
+ const contents = spaceRecord.contents || {};
585
+ contents[fileDbKey] = {
586
+ ...contents[fileDbKey] ?? {},
587
+ title: uploadName,
588
+ type: "file" /* FILE */,
589
+ contentKey: fileDbKey,
590
+ createdAt: contents[fileDbKey]?.createdAt ?? now,
591
+ updatedAt: now
592
+ };
593
+ await writeDbRecord({
594
+ authToken,
595
+ dbKey: spaceKey,
596
+ fetchImpl,
597
+ record: { ...spaceRecord, contents, updatedAt: now },
598
+ serverUrl,
599
+ userId
600
+ });
601
+ }
602
+ const result = {
603
+ ...uploadData,
604
+ fileId,
605
+ dbKey: fileDbKey,
606
+ uploadName,
607
+ // MIME 口径:服务端返回的落库值优先(它与真实字节一起被持久化),
608
+ // 响应没给才回退到本地按扩展名推断的值,并如实标注来源。
609
+ mimeType: storedMimeType,
610
+ mimeTypeSource,
611
+ target: personalStorage ? "personal" : "space",
612
+ spaceId,
613
+ spaceKey,
614
+ pageUrl: resolveFilePageUrl({ serverUrl, fileDbKey, spaceId })
473
615
  };
474
- await writeDbRecord({
475
- authToken,
476
- dbKey: spaceKey,
477
- fetchImpl,
478
- record: { ...spaceRecord, contents, updatedAt: now },
479
- serverUrl,
480
- userId
481
- });
482
616
  if (hasFlag(args, "--json")) {
483
- writeOutput(deps, `${JSON.stringify({ ...uploadData, spaceId, spaceKey }, null, 2)}
617
+ writeOutput(deps, `${JSON.stringify(result, null, 2)}
484
618
  `);
619
+ } else if (personalStorage) {
620
+ writeOutput(
621
+ deps,
622
+ `Uploaded ${uploadName} to your personal storage (fileId: ${fileId})
623
+ page: ${result.pageUrl}
624
+ `
625
+ );
485
626
  } else {
486
- writeOutput(deps, `Uploaded ${uploadName} to space ${spaceId} (fileId: ${fileId})
487
- `);
627
+ writeOutput(
628
+ deps,
629
+ `Uploaded ${uploadName} to space ${spaceId} (fileId: ${fileId})
630
+ page: ${result.pageUrl}
631
+ `
632
+ );
488
633
  }
489
634
  return 0;
490
635
  }
491
636
  export {
637
+ resolveFilePageUrl,
638
+ resolveUploadMimeType,
639
+ resolveUploadName,
492
640
  runSpaceAcceptInviteCommand,
493
641
  runSpaceCreateCommand,
494
642
  runSpaceInviteCommand,