@mx-space/cli 0.2.0 → 0.2.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.
- package/dist/{Lexical.dev-DpU35QTu.mjs → Lexical.dev-CMevU1DO.mjs} +1 -1
- package/dist/{Lexical.dev-DpU35QTu.mjs.map → Lexical.dev-CMevU1DO.mjs.map} +1 -1
- package/dist/{Lexical.node-gYNDt_p9.mjs → Lexical.node-BR9e7Cyk.mjs} +2 -2
- package/dist/{Lexical.node-gYNDt_p9.mjs.map → Lexical.node-BR9e7Cyk.mjs.map} +1 -1
- package/dist/{Lexical.prod-t4c3bHV3.mjs → Lexical.prod-PUD-z9fY.mjs} +1 -1
- package/dist/{Lexical.prod-t4c3bHV3.mjs.map → Lexical.prod-PUD-z9fY.mjs.map} +1 -1
- package/dist/{LexicalClipboard.dev-CdeeWCIq.mjs → LexicalClipboard.dev-DZC2zppG.mjs} +6 -6
- package/dist/{LexicalClipboard.dev-CdeeWCIq.mjs.map → LexicalClipboard.dev-DZC2zppG.mjs.map} +1 -1
- package/dist/{LexicalClipboard.node-0e9GBL1g.mjs → LexicalClipboard.node-e5G1wVGb.mjs} +2 -2
- package/dist/{LexicalClipboard.node-0e9GBL1g.mjs.map → LexicalClipboard.node-e5G1wVGb.mjs.map} +1 -1
- package/dist/{LexicalClipboard.prod-CsCWYmV7.mjs → LexicalClipboard.prod-DE2azzIb.mjs} +6 -6
- package/dist/{LexicalClipboard.prod-CsCWYmV7.mjs.map → LexicalClipboard.prod-DE2azzIb.mjs.map} +1 -1
- package/dist/{LexicalCodeCore.dev-haI2cqH8.mjs → LexicalCodeCore.dev-gs--x55I.mjs} +3 -3
- package/dist/{LexicalCodeCore.dev-haI2cqH8.mjs.map → LexicalCodeCore.dev-gs--x55I.mjs.map} +1 -1
- package/dist/{LexicalCodeCore.prod-D_k7zuE5.mjs → LexicalCodeCore.prod-DPHOnyEj.mjs} +3 -3
- package/dist/{LexicalCodeCore.prod-D_k7zuE5.mjs.map → LexicalCodeCore.prod-DPHOnyEj.mjs.map} +1 -1
- package/dist/{LexicalDragon.dev-CAggdFh_.mjs → LexicalDragon.dev-CVe8bzVN.mjs} +3 -3
- package/dist/{LexicalDragon.dev-CAggdFh_.mjs.map → LexicalDragon.dev-CVe8bzVN.mjs.map} +1 -1
- package/dist/{LexicalDragon.node-QMR_wqJg.mjs → LexicalDragon.node-c7EHvcnK.mjs} +2 -2
- package/dist/{LexicalDragon.node-QMR_wqJg.mjs.map → LexicalDragon.node-c7EHvcnK.mjs.map} +1 -1
- package/dist/{LexicalDragon.prod-OssQhwS-.mjs → LexicalDragon.prod-D6KvqyLD.mjs} +3 -3
- package/dist/{LexicalDragon.prod-OssQhwS-.mjs.map → LexicalDragon.prod-D6KvqyLD.mjs.map} +1 -1
- package/dist/{LexicalExtension.dev-CtDZiMCU.mjs → LexicalExtension.dev-PDo8HyEw.mjs} +3 -3
- package/dist/{LexicalExtension.dev-CtDZiMCU.mjs.map → LexicalExtension.dev-PDo8HyEw.mjs.map} +1 -1
- package/dist/{LexicalExtension.node-BM0gh8zu.mjs → LexicalExtension.node-BKzjRb-0.mjs} +2 -2
- package/dist/{LexicalExtension.node-BM0gh8zu.mjs.map → LexicalExtension.node-BKzjRb-0.mjs.map} +1 -1
- package/dist/{LexicalExtension.prod-Ug6emhEO.mjs → LexicalExtension.prod-D0x_lX7q.mjs} +3 -3
- package/dist/{LexicalExtension.prod-Ug6emhEO.mjs.map → LexicalExtension.prod-D0x_lX7q.mjs.map} +1 -1
- package/dist/{LexicalHeadless.dev-D4yQpl_s.mjs → LexicalHeadless.dev-DBKcW82j.mjs} +2 -2
- package/dist/{LexicalHeadless.dev-D4yQpl_s.mjs.map → LexicalHeadless.dev-DBKcW82j.mjs.map} +1 -1
- package/dist/{LexicalHeadless.prod-jeN65B3k.mjs → LexicalHeadless.prod-D4nEh7cR.mjs} +2 -2
- package/dist/{LexicalHeadless.prod-jeN65B3k.mjs.map → LexicalHeadless.prod-D4nEh7cR.mjs.map} +1 -1
- package/dist/{LexicalHtml.dev-BdU1_ITQ.mjs → LexicalHtml.dev-vsWW05es.mjs} +4 -4
- package/dist/{LexicalHtml.dev-BdU1_ITQ.mjs.map → LexicalHtml.dev-vsWW05es.mjs.map} +1 -1
- package/dist/{LexicalHtml.node-DLtAh00E.mjs → LexicalHtml.node-CpibAfba.mjs} +2 -2
- package/dist/{LexicalHtml.node-DLtAh00E.mjs.map → LexicalHtml.node-CpibAfba.mjs.map} +1 -1
- package/dist/{LexicalHtml.prod-DdLE1HHT.mjs → LexicalHtml.prod-Bqz-3WAp.mjs} +4 -4
- package/dist/{LexicalHtml.prod-DdLE1HHT.mjs.map → LexicalHtml.prod-Bqz-3WAp.mjs.map} +1 -1
- package/dist/{LexicalLink.dev-DK87Biuy.mjs → LexicalLink.dev-BO0J0B1E.mjs} +4 -4
- package/dist/{LexicalLink.dev-DK87Biuy.mjs.map → LexicalLink.dev-BO0J0B1E.mjs.map} +1 -1
- package/dist/{LexicalLink.prod-fssuv6Sf.mjs → LexicalLink.prod-D66AhUCZ.mjs} +4 -4
- package/dist/{LexicalLink.prod-fssuv6Sf.mjs.map → LexicalLink.prod-D66AhUCZ.mjs.map} +1 -1
- package/dist/{LexicalList.dev-BJ4dr_rk.mjs → LexicalList.dev-DVGTWRk0.mjs} +4 -4
- package/dist/{LexicalList.dev-BJ4dr_rk.mjs.map → LexicalList.dev-DVGTWRk0.mjs.map} +1 -1
- package/dist/{LexicalList.prod-jWBbaWfi.mjs → LexicalList.prod-Bao7NGl7.mjs} +4 -4
- package/dist/{LexicalList.prod-jWBbaWfi.mjs.map → LexicalList.prod-Bao7NGl7.mjs.map} +1 -1
- package/dist/{LexicalMarkdown.dev-C8e-eh6y.mjs → LexicalMarkdown.dev-CRWkZwlp.mjs} +4 -4
- package/dist/{LexicalMarkdown.dev-C8e-eh6y.mjs.map → LexicalMarkdown.dev-CRWkZwlp.mjs.map} +1 -1
- package/dist/{LexicalMarkdown.prod-k73tZVb2.mjs → LexicalMarkdown.prod-tGG6js4r.mjs} +4 -4
- package/dist/{LexicalMarkdown.prod-k73tZVb2.mjs.map → LexicalMarkdown.prod-tGG6js4r.mjs.map} +1 -1
- package/dist/{LexicalRichText.dev-CrSqq3K-.mjs → LexicalRichText.dev-DPXfQePC.mjs} +6 -6
- package/dist/{LexicalRichText.dev-CrSqq3K-.mjs.map → LexicalRichText.dev-DPXfQePC.mjs.map} +1 -1
- package/dist/{LexicalRichText.node-B7k7wlQz.mjs → LexicalRichText.node-BEkm_YwY.mjs} +5 -5
- package/dist/{LexicalRichText.node-B7k7wlQz.mjs.map → LexicalRichText.node-BEkm_YwY.mjs.map} +1 -1
- package/dist/{LexicalRichText.prod-CqvyxQ9m.mjs → LexicalRichText.prod-DlfudC5w.mjs} +6 -6
- package/dist/{LexicalRichText.prod-CqvyxQ9m.mjs.map → LexicalRichText.prod-DlfudC5w.mjs.map} +1 -1
- package/dist/{LexicalSelection.dev-sNOHKHe_.mjs → LexicalSelection.dev-BVTArZ-b.mjs} +2 -2
- package/dist/{LexicalSelection.dev-sNOHKHe_.mjs.map → LexicalSelection.dev-BVTArZ-b.mjs.map} +1 -1
- package/dist/{LexicalSelection.node-Di7GwBCZ.mjs → LexicalSelection.node-CQ8iTYsz.mjs} +2 -2
- package/dist/{LexicalSelection.node-Di7GwBCZ.mjs.map → LexicalSelection.node-CQ8iTYsz.mjs.map} +1 -1
- package/dist/{LexicalSelection.prod-SWllPJop.mjs → LexicalSelection.prod-BZKGGs-G.mjs} +2 -2
- package/dist/{LexicalSelection.prod-SWllPJop.mjs.map → LexicalSelection.prod-BZKGGs-G.mjs.map} +1 -1
- package/dist/{LexicalTable.dev-CQkLHXJx.mjs → LexicalTable.dev-C-AOEpJn.mjs} +5 -5
- package/dist/{LexicalTable.dev-CQkLHXJx.mjs.map → LexicalTable.dev-C-AOEpJn.mjs.map} +1 -1
- package/dist/{LexicalTable.prod-BtqCwKSi.mjs → LexicalTable.prod-Cyn0qWxZ.mjs} +5 -5
- package/dist/{LexicalTable.prod-BtqCwKSi.mjs.map → LexicalTable.prod-Cyn0qWxZ.mjs.map} +1 -1
- package/dist/{LexicalUtils.dev-DiUpsXE8.mjs → LexicalUtils.dev-DRRDyAlS.mjs} +3 -3
- package/dist/{LexicalUtils.dev-DiUpsXE8.mjs.map → LexicalUtils.dev-DRRDyAlS.mjs.map} +1 -1
- package/dist/{LexicalUtils.node-CmK462d1.mjs → LexicalUtils.node-Dz-HANi6.mjs} +2 -2
- package/dist/{LexicalUtils.node-CmK462d1.mjs.map → LexicalUtils.node-Dz-HANi6.mjs.map} +1 -1
- package/dist/{LexicalUtils.prod-bWwV4GAF.mjs → LexicalUtils.prod-CmeHwh8W.mjs} +3 -3
- package/dist/{LexicalUtils.prod-bWwV4GAF.mjs.map → LexicalUtils.prod-CmeHwh8W.mjs.map} +1 -1
- package/dist/{auth-Duj8jJn9.mjs → auth-CAKmTDpF.mjs} +11 -11
- package/dist/auth-CAKmTDpF.mjs.map +1 -0
- package/dist/bin/mxs.d.mts +1 -1
- package/dist/bin/mxs.mjs +206 -61
- package/dist/bin/mxs.mjs.map +1 -1
- package/dist/{config-store-DmwX2iZU.mjs → config-store-B8_9iStL.mjs} +8 -7
- package/dist/config-store-B8_9iStL.mjs.map +1 -0
- package/dist/{create-Cqt1rrSZ.mjs → create-5wbU7IQh.mjs} +5 -5
- package/dist/{create-Cqt1rrSZ.mjs.map → create-5wbU7IQh.mjs.map} +1 -1
- package/dist/{create-_H8YO7ze.mjs → create-Bs6K7AyQ.mjs} +3 -3
- package/dist/{create-_H8YO7ze.mjs.map → create-Bs6K7AyQ.mjs.map} +1 -1
- package/dist/{create-DAt3FXLf.mjs → create-DBReocgJ.mjs} +5 -5
- package/dist/{create-DAt3FXLf.mjs.map → create-DBReocgJ.mjs.map} +1 -1
- package/dist/{create-kYlrs4d6.mjs → create-DGVaE0_S.mjs} +4 -4
- package/dist/{create-kYlrs4d6.mjs.map → create-DGVaE0_S.mjs.map} +1 -1
- package/dist/{create-D7cR9xcN.mjs → create-lLFZuMsz.mjs} +3 -3
- package/dist/{create-D7cR9xcN.mjs.map → create-lLFZuMsz.mjs.map} +1 -1
- package/dist/{delete-D_NRteuq.mjs → delete-6tkhHQDp.mjs} +5 -5
- package/dist/delete-6tkhHQDp.mjs.map +1 -0
- package/dist/{delete-ZIjkquZj.mjs → delete-CRFxitDN.mjs} +6 -6
- package/dist/delete-CRFxitDN.mjs.map +1 -0
- package/dist/{delete-DVNebWqO.mjs → delete-DU2Hvsy8.mjs} +5 -5
- package/dist/delete-DU2Hvsy8.mjs.map +1 -0
- package/dist/{delete-aCVSWuKi.mjs → delete-nJmHtvfq.mjs} +6 -6
- package/dist/delete-nJmHtvfq.mjs.map +1 -0
- package/dist/{delete-DmKPzzsQ.mjs → delete-tJhXI8s4.mjs} +5 -5
- package/dist/delete-tJhXI8s4.mjs.map +1 -0
- package/dist/{document-output-BtY8T7eY.mjs → document-output-BFJdwPV0.mjs} +5 -5
- package/dist/document-output-BFJdwPV0.mjs.map +1 -0
- package/dist/{edit-DjRE8Gk-.mjs → edit-BMjTbPQO.mjs} +5 -5
- package/dist/edit-BMjTbPQO.mjs.map +1 -0
- package/dist/{edit-R6H5RtWd.mjs → edit-BnEmMmv6.mjs} +9 -9
- package/dist/edit-BnEmMmv6.mjs.map +1 -0
- package/dist/{edit-CHCuoiWT.mjs → edit-C4vRSmRy.mjs} +9 -9
- package/dist/{edit-CHCuoiWT.mjs.map → edit-C4vRSmRy.mjs.map} +1 -1
- package/dist/{edit-BWX7X4sy.mjs → edit-CQsW5gnk.mjs} +8 -8
- package/dist/{edit-BWX7X4sy.mjs.map → edit-CQsW5gnk.mjs.map} +1 -1
- package/dist/{editor-Dywlo4-8.mjs → editor-BIw1ALTF.mjs} +4 -4
- package/dist/editor-BIw1ALTF.mjs.map +1 -0
- package/dist/{envelope-overlays-D1gmGVe5.mjs → envelope-overlays-DXXygxdF.mjs} +2 -2
- package/dist/{envelope-overlays-D1gmGVe5.mjs.map → envelope-overlays-DXXygxdF.mjs.map} +1 -1
- package/dist/{get-IQQv4_rP.mjs → get-B3Y5hAAO.mjs} +3 -3
- package/dist/{get-IQQv4_rP.mjs.map → get-B3Y5hAAO.mjs.map} +1 -1
- package/dist/{get-DbH58EkF.mjs → get-C5fmd5Vf.mjs} +4 -4
- package/dist/{get-DbH58EkF.mjs.map → get-C5fmd5Vf.mjs.map} +1 -1
- package/dist/{get-CkBqVyGi.mjs → get-Cdp2tmwz.mjs} +6 -6
- package/dist/get-Cdp2tmwz.mjs.map +1 -0
- package/dist/{get-DNdde54z.mjs → get-D18ChSKU.mjs} +3 -3
- package/dist/{get-DNdde54z.mjs.map → get-D18ChSKU.mjs.map} +1 -1
- package/dist/{get-xtByxURm.mjs → get-NSHTGu4Y.mjs} +4 -4
- package/dist/{get-xtByxURm.mjs.map → get-NSHTGu4Y.mjs.map} +1 -1
- package/dist/{get-CiLnUGHw.mjs → get-XBPJr95m.mjs} +4 -4
- package/dist/{get-CiLnUGHw.mjs.map → get-XBPJr95m.mjs.map} +1 -1
- package/dist/index.d.mts +40 -11
- package/dist/index.mjs +11 -10
- package/dist/{list-Bnlg9SfR.mjs → list-B6703n9X.mjs} +3 -3
- package/dist/{list-Bnlg9SfR.mjs.map → list-B6703n9X.mjs.map} +1 -1
- package/dist/{list-lmpHwOQx.mjs → list-BtNocJhc.mjs} +3 -3
- package/dist/{list-lmpHwOQx.mjs.map → list-BtNocJhc.mjs.map} +1 -1
- package/dist/{list-DW5TcGxS.mjs → list-C9dXrU9H.mjs} +3 -3
- package/dist/{list-DW5TcGxS.mjs.map → list-C9dXrU9H.mjs.map} +1 -1
- package/dist/{list-C6z1iw4a.mjs → list-CcwcYZgN.mjs} +3 -3
- package/dist/{list-C6z1iw4a.mjs.map → list-CcwcYZgN.mjs.map} +1 -1
- package/dist/{list-CD9j9did.mjs → list-Ctc8b5gT.mjs} +3 -3
- package/dist/{list-CD9j9did.mjs.map → list-Ctc8b5gT.mjs.map} +1 -1
- package/dist/{list-DVMtBAHG.mjs → list-b60JzCTw.mjs} +3 -3
- package/dist/{list-DVMtBAHG.mjs.map → list-b60JzCTw.mjs.map} +1 -1
- package/dist/{litexml-codec-D-1oggXL.mjs → litexml-codec-CfIxcPG0.mjs} +9 -9
- package/dist/{litexml-codec-D-1oggXL.mjs.map → litexml-codec-CfIxcPG0.mjs.map} +1 -1
- package/dist/{login-D-SoeV01.mjs → login-bZx4HaVs.mjs} +5 -4
- package/dist/{login-D-SoeV01.mjs.map → login-bZx4HaVs.mjs.map} +1 -1
- package/dist/{logout-D63ZU-1Q.mjs → logout-C0Dzitsu.mjs} +4 -3
- package/dist/logout-C0Dzitsu.mjs.map +1 -0
- package/dist/{ls-Bz3BCcwU.mjs → ls-wMiTXZPQ.mjs} +3 -2
- package/dist/{ls-Bz3BCcwU.mjs.map → ls-wMiTXZPQ.mjs.map} +1 -1
- package/dist/{mark-N-IpKK17.mjs → mark-Dh9BErsf.mjs} +5 -4
- package/dist/mark-Dh9BErsf.mjs.map +1 -0
- package/dist/{onboarding-FPMcuqn8.mjs → onboarding-Bw_I8qpf.mjs} +17 -15
- package/dist/onboarding-Bw_I8qpf.mjs.map +1 -0
- package/dist/{output-DQMhacTo.d.mts → output-D2dDlyV2.d.mts} +1 -1
- package/dist/output-vzequvhd.mjs +163 -0
- package/dist/output-vzequvhd.mjs.map +1 -0
- package/dist/{payload-CjlZ9CeZ.mjs → payload-CO4zbNr8.mjs} +17 -17
- package/dist/payload-CO4zbNr8.mjs.map +1 -0
- package/dist/profile-CNe2uWJi.mjs +172 -0
- package/dist/profile-CNe2uWJi.mjs.map +1 -0
- package/dist/{publish-yuM6YGSb.mjs → publish-CzzucXQq.mjs} +4 -4
- package/dist/{publish-yuM6YGSb.mjs.map → publish-CzzucXQq.mjs.map} +1 -1
- package/dist/{publish-C9O5obZ6.mjs → publish-DRQkpxsz.mjs} +4 -4
- package/dist/{publish-C9O5obZ6.mjs.map → publish-DRQkpxsz.mjs.map} +1 -1
- package/dist/{resolve-TBYXBS4i.mjs → resolve-BYg5Gees.mjs} +5 -5
- package/dist/resolve-BYg5Gees.mjs.map +1 -0
- package/dist/{resolve-U6RJ3AnQ.mjs → resolve-BlpMdnaM.mjs} +4 -4
- package/dist/resolve-BlpMdnaM.mjs.map +1 -0
- package/dist/{resolve-DIu9N2sD.mjs → resolve-CUsHGcb-.mjs} +4 -4
- package/dist/resolve-CUsHGcb-.mjs.map +1 -0
- package/dist/{resolve-helpers-C7PIVziv.mjs → resolve-helpers-CoHYa2uk.mjs} +2 -2
- package/dist/{resolve-helpers-C7PIVziv.mjs.map → resolve-helpers-CoHYa2uk.mjs.map} +1 -1
- package/dist/{resolve-B4-fMQ6I.mjs → resolve-jdb1VqAG.mjs} +5 -5
- package/dist/resolve-jdb1VqAG.mjs.map +1 -0
- package/dist/{rm-D9GvLhhF.mjs → rm-D-2iW1Cr.mjs} +5 -4
- package/dist/rm-D-2iW1Cr.mjs.map +1 -0
- package/dist/run-Dnax6uhZ.mjs +130 -0
- package/dist/run-Dnax6uhZ.mjs.map +1 -0
- package/dist/self-update-CZywTwGd.mjs +1610 -0
- package/dist/self-update-CZywTwGd.mjs.map +1 -0
- package/dist/{set-jD79hpuF.mjs → set-Dk28LAy5.mjs} +5 -5
- package/dist/set-Dk28LAy5.mjs.map +1 -0
- package/dist/{shared-SryY2QPY.mjs → shared-d0_6ZPn_.mjs} +5 -5
- package/dist/shared-d0_6ZPn_.mjs.map +1 -0
- package/dist/{show-C5Zk0tcK.mjs → show-DScu6mXz.mjs} +5 -4
- package/dist/show-DScu6mXz.mjs.map +1 -0
- package/dist/{status-evZpPR3N.mjs → status-8F6tgphP.mjs} +4 -3
- package/dist/{status-evZpPR3N.mjs.map → status-8F6tgphP.mjs.map} +1 -1
- package/dist/{update-hhAcAz_M.mjs → update-B1LGxV0n.mjs} +6 -6
- package/dist/{update-hhAcAz_M.mjs.map → update-B1LGxV0n.mjs.map} +1 -1
- package/dist/{update--7NPzL_w.mjs → update-CXetpFT3.mjs} +4 -4
- package/dist/{update--7NPzL_w.mjs.map → update-CXetpFT3.mjs.map} +1 -1
- package/dist/{update-CPJXcOg_.mjs → update-Dr4BW8U-.mjs} +6 -6
- package/dist/{update-CPJXcOg_.mjs.map → update-Dr4BW8U-.mjs.map} +1 -1
- package/dist/{update-0q5hxJFh.mjs → update-bqcHRJPC.mjs} +6 -6
- package/dist/update-bqcHRJPC.mjs.map +1 -0
- package/dist/{update-DN78pXGZ.mjs → update-dBtzzmkN.mjs} +5 -5
- package/dist/update-dBtzzmkN.mjs.map +1 -0
- package/dist/{use-CHDCEe38.mjs → use-D7eKESSW.mjs} +6 -5
- package/dist/use-D7eKESSW.mjs.map +1 -0
- package/dist/{whoami-BHDYyY5D.mjs → whoami-CKSNd6zL.mjs} +5 -4
- package/dist/whoami-CKSNd6zL.mjs.map +1 -0
- package/package.json +15 -13
- package/LICENSE +0 -33
- package/dist/auth-Duj8jJn9.mjs.map +0 -1
- package/dist/config-store-DmwX2iZU.mjs.map +0 -1
- package/dist/delete-DVNebWqO.mjs.map +0 -1
- package/dist/delete-D_NRteuq.mjs.map +0 -1
- package/dist/delete-DmKPzzsQ.mjs.map +0 -1
- package/dist/delete-ZIjkquZj.mjs.map +0 -1
- package/dist/delete-aCVSWuKi.mjs.map +0 -1
- package/dist/document-output-BtY8T7eY.mjs.map +0 -1
- package/dist/edit-DjRE8Gk-.mjs.map +0 -1
- package/dist/edit-R6H5RtWd.mjs.map +0 -1
- package/dist/editor-Dywlo4-8.mjs.map +0 -1
- package/dist/get-CkBqVyGi.mjs.map +0 -1
- package/dist/logout-D63ZU-1Q.mjs.map +0 -1
- package/dist/mark-N-IpKK17.mjs.map +0 -1
- package/dist/onboarding-FPMcuqn8.mjs.map +0 -1
- package/dist/output-Dg8PISJM.mjs +0 -299
- package/dist/output-Dg8PISJM.mjs.map +0 -1
- package/dist/payload-CjlZ9CeZ.mjs.map +0 -1
- package/dist/resolve-B4-fMQ6I.mjs.map +0 -1
- package/dist/resolve-DIu9N2sD.mjs.map +0 -1
- package/dist/resolve-TBYXBS4i.mjs.map +0 -1
- package/dist/resolve-U6RJ3AnQ.mjs.map +0 -1
- package/dist/rm-D9GvLhhF.mjs.map +0 -1
- package/dist/set-jD79hpuF.mjs.map +0 -1
- package/dist/shared-SryY2QPY.mjs.map +0 -1
- package/dist/show-C5Zk0tcK.mjs.map +0 -1
- package/dist/update-0q5hxJFh.mjs.map +0 -1
- package/dist/update-DN78pXGZ.mjs.map +0 -1
- package/dist/use-CHDCEe38.mjs.map +0 -1
- package/dist/whoami-BHDYyY5D.mjs.map +0 -1
package/dist/bin/mxs.mjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { i as __commonJSMin, n as ue, o as __require, r as q, s as __toESM } from "../dist-DJF1Ntdn.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { c as MxsErrorCode, l as exitCodeForError, n as emitError, s as MxsError } from "../output-vzequvhd.mjs";
|
|
4
|
+
import { f as setCurrentProfile, g as getConfigDir, h as writeProfileCredentials, m as writeProfileConfig, p as validateProfileName, r as getCurrentProfile, s as getProfilesDir } from "../profile-CNe2uWJi.mjs";
|
|
5
|
+
import { a as getLegacyConfigPath, o as getLegacyCredentialsPath } from "../config-store-B8_9iStL.mjs";
|
|
6
|
+
import { i as fetchLatestVersion, n as compareSemver } from "../self-update-CZywTwGd.mjs";
|
|
7
|
+
import path from "node:path";
|
|
8
|
+
import { mkdirSync, promises, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
6
9
|
//#region ../../node_modules/.pnpm/commander@14.0.3/node_modules/commander/lib/error.js
|
|
7
10
|
var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
11
|
/**
|
|
@@ -1019,7 +1022,7 @@ var require_suggestSimilar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1019
1022
|
var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1020
1023
|
const EventEmitter = __require("node:events").EventEmitter;
|
|
1021
1024
|
const childProcess = __require("node:child_process");
|
|
1022
|
-
const path = __require("node:path");
|
|
1025
|
+
const path$1 = __require("node:path");
|
|
1023
1026
|
const fs$1 = __require("node:fs");
|
|
1024
1027
|
const process$1 = __require("node:process");
|
|
1025
1028
|
const { Argument, humanReadableArgName } = require_argument();
|
|
@@ -1939,9 +1942,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1939
1942
|
".cjs"
|
|
1940
1943
|
];
|
|
1941
1944
|
function findFile(baseDir, baseName) {
|
|
1942
|
-
const localBin = path.resolve(baseDir, baseName);
|
|
1945
|
+
const localBin = path$1.resolve(baseDir, baseName);
|
|
1943
1946
|
if (fs$1.existsSync(localBin)) return localBin;
|
|
1944
|
-
if (sourceExt.includes(path.extname(baseName))) return void 0;
|
|
1947
|
+
if (sourceExt.includes(path$1.extname(baseName))) return void 0;
|
|
1945
1948
|
const foundExt = sourceExt.find((ext) => fs$1.existsSync(`${localBin}${ext}`));
|
|
1946
1949
|
if (foundExt) return `${localBin}${foundExt}`;
|
|
1947
1950
|
}
|
|
@@ -1956,17 +1959,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1956
1959
|
} catch {
|
|
1957
1960
|
resolvedScriptPath = this._scriptPath;
|
|
1958
1961
|
}
|
|
1959
|
-
executableDir = path.resolve(path.dirname(resolvedScriptPath), executableDir);
|
|
1962
|
+
executableDir = path$1.resolve(path$1.dirname(resolvedScriptPath), executableDir);
|
|
1960
1963
|
}
|
|
1961
1964
|
if (executableDir) {
|
|
1962
1965
|
let localFile = findFile(executableDir, executableFile);
|
|
1963
1966
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
1964
|
-
const legacyName = path.basename(this._scriptPath, path.extname(this._scriptPath));
|
|
1967
|
+
const legacyName = path$1.basename(this._scriptPath, path$1.extname(this._scriptPath));
|
|
1965
1968
|
if (legacyName !== this._name) localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`);
|
|
1966
1969
|
}
|
|
1967
1970
|
executableFile = localFile || executableFile;
|
|
1968
1971
|
}
|
|
1969
|
-
launchWithNode = sourceExt.includes(path.extname(executableFile));
|
|
1972
|
+
launchWithNode = sourceExt.includes(path$1.extname(executableFile));
|
|
1970
1973
|
let proc;
|
|
1971
1974
|
if (process$1.platform !== "win32") if (launchWithNode) {
|
|
1972
1975
|
args.unshift(executableFile);
|
|
@@ -2734,7 +2737,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2734
2737
|
* @return {Command}
|
|
2735
2738
|
*/
|
|
2736
2739
|
nameFromFilename(filename) {
|
|
2737
|
-
this._name = path.basename(filename, path.extname(filename));
|
|
2740
|
+
this._name = path$1.basename(filename, path$1.extname(filename));
|
|
2738
2741
|
return this;
|
|
2739
2742
|
}
|
|
2740
2743
|
/**
|
|
@@ -3071,7 +3074,7 @@ async function runLegacyMigrationIfNeeded(opts) {
|
|
|
3071
3074
|
legacyConfig = JSON.parse(raw);
|
|
3072
3075
|
} catch (err) {
|
|
3073
3076
|
if (err?.code !== "ENOENT") throw new MxsError({
|
|
3074
|
-
code:
|
|
3077
|
+
code: MxsErrorCode.ConfigMigrationFailed,
|
|
3075
3078
|
message: `failed to read legacy config at ${legacyConfigPath}: ${err.message}`,
|
|
3076
3079
|
cause: err
|
|
3077
3080
|
});
|
|
@@ -3082,7 +3085,7 @@ async function runLegacyMigrationIfNeeded(opts) {
|
|
|
3082
3085
|
legacyCredentials = JSON.parse(raw);
|
|
3083
3086
|
} catch (err) {
|
|
3084
3087
|
if (err?.code !== "ENOENT") throw new MxsError({
|
|
3085
|
-
code:
|
|
3088
|
+
code: MxsErrorCode.ConfigMigrationFailed,
|
|
3086
3089
|
message: `failed to read legacy credentials at ${legacyCredentialsPath}: ${err.message}`,
|
|
3087
3090
|
cause: err
|
|
3088
3091
|
});
|
|
@@ -3104,7 +3107,7 @@ async function runLegacyMigrationIfNeeded(opts) {
|
|
|
3104
3107
|
await writeProfileConfig("default", migratedConfig);
|
|
3105
3108
|
} catch (err) {
|
|
3106
3109
|
throw new MxsError({
|
|
3107
|
-
code:
|
|
3110
|
+
code: MxsErrorCode.ConfigMigrationFailed,
|
|
3108
3111
|
message: `failed to write profile config during migration: ${err.message}`,
|
|
3109
3112
|
cause: err
|
|
3110
3113
|
});
|
|
@@ -3113,7 +3116,7 @@ async function runLegacyMigrationIfNeeded(opts) {
|
|
|
3113
3116
|
await writeProfileCredentials("default", legacyCredentials);
|
|
3114
3117
|
} catch (err) {
|
|
3115
3118
|
throw new MxsError({
|
|
3116
|
-
code:
|
|
3119
|
+
code: MxsErrorCode.ConfigMigrationFailed,
|
|
3117
3120
|
message: `failed to write profile credentials during migration: ${err.message}`,
|
|
3118
3121
|
cause: err
|
|
3119
3122
|
});
|
|
@@ -3146,9 +3149,14 @@ const PREACTION_EXEMPT_COMMANDS = [{
|
|
|
3146
3149
|
parent: "auth",
|
|
3147
3150
|
name: "login"
|
|
3148
3151
|
}];
|
|
3152
|
+
/**
|
|
3153
|
+
* Top-level command names that are exempt from the profile.none_active guard.
|
|
3154
|
+
* Used for commands that should work without a configured server (e.g. `mxs update`).
|
|
3155
|
+
*/
|
|
3156
|
+
const PREACTION_EXEMPT_TOPLEVEL = new Set(["update"]);
|
|
3149
3157
|
/** Returns true if the command is exempt from the profile.none_active guard. */
|
|
3150
3158
|
function isPreActionExempt(input) {
|
|
3151
|
-
return PREACTION_EXEMPT_PARENTS.has(input.parentName) || input.commandName === "profile" || PREACTION_EXEMPT_COMMANDS.some((c) => c.parent === input.parentName && c.name === input.commandName);
|
|
3159
|
+
return PREACTION_EXEMPT_PARENTS.has(input.parentName) || input.commandName === "profile" || PREACTION_EXEMPT_TOPLEVEL.has(input.commandName) || PREACTION_EXEMPT_COMMANDS.some((c) => c.parent === input.parentName && c.name === input.commandName);
|
|
3152
3160
|
}
|
|
3153
3161
|
/**
|
|
3154
3162
|
* Returns true if the guard should throw profile.none_active.
|
|
@@ -3162,16 +3170,130 @@ function requiresActiveProfile(input) {
|
|
|
3162
3170
|
return true;
|
|
3163
3171
|
}
|
|
3164
3172
|
//#endregion
|
|
3173
|
+
//#region src/core/update-notifier.ts
|
|
3174
|
+
const CACHE_FILE = "update-check.json";
|
|
3175
|
+
const THROTTLE_MS = 1440 * 60 * 1e3;
|
|
3176
|
+
const FETCH_TIMEOUT_MS = 3e3;
|
|
3177
|
+
function cachePath(ctx) {
|
|
3178
|
+
return path.join(ctx.configDir ?? getConfigDir(), CACHE_FILE);
|
|
3179
|
+
}
|
|
3180
|
+
function readCache(ctx = { currentVersion: "0.0.0" }) {
|
|
3181
|
+
try {
|
|
3182
|
+
const raw = readFileSync(cachePath(ctx), "utf8");
|
|
3183
|
+
const parsed = JSON.parse(raw);
|
|
3184
|
+
if (typeof parsed?.last_check_ts !== "number") return null;
|
|
3185
|
+
return parsed;
|
|
3186
|
+
} catch {
|
|
3187
|
+
return null;
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
function writeCacheAtomic(state, ctx = { currentVersion: "0.0.0" }) {
|
|
3191
|
+
const target = cachePath(ctx);
|
|
3192
|
+
const dir = path.dirname(target);
|
|
3193
|
+
try {
|
|
3194
|
+
mkdirSync(dir, { recursive: true });
|
|
3195
|
+
} catch {}
|
|
3196
|
+
const tmp = `${target}.tmp`;
|
|
3197
|
+
writeFileSync(tmp, JSON.stringify(state));
|
|
3198
|
+
renameSync(tmp, target);
|
|
3199
|
+
}
|
|
3200
|
+
function shouldSkipNotify(ctx) {
|
|
3201
|
+
const env = ctx.env ?? process.env;
|
|
3202
|
+
if (ctx.quiet || ctx.json) return true;
|
|
3203
|
+
if (ctx.output === "json") return true;
|
|
3204
|
+
if (env.CI && env.CI !== "" && env.CI !== "0" && env.CI !== "false") return true;
|
|
3205
|
+
if (env.MXS_NO_UPDATE_CHECK === "1") return true;
|
|
3206
|
+
if (ctx.isTTY === false) return true;
|
|
3207
|
+
if (ctx.commandName === "update") return true;
|
|
3208
|
+
if (ctx.parentName === "update") return true;
|
|
3209
|
+
return false;
|
|
3210
|
+
}
|
|
3211
|
+
function emitNotification(ctx, current, latest) {
|
|
3212
|
+
const msg = `mxs update available: ${current} → ${latest} run 'mxs update' to upgrade`;
|
|
3213
|
+
if (ctx.emit) {
|
|
3214
|
+
ctx.emit(msg);
|
|
3215
|
+
return;
|
|
3216
|
+
}
|
|
3217
|
+
process.stderr.write(`${msg}\n`);
|
|
3218
|
+
}
|
|
3219
|
+
/**
|
|
3220
|
+
* Fire-and-forget update notifier. Never throws. Returns a promise that callers
|
|
3221
|
+
* may optionally await in tests; production code drops the promise on the floor.
|
|
3222
|
+
*/
|
|
3223
|
+
async function maybeNotify(ctx) {
|
|
3224
|
+
try {
|
|
3225
|
+
if (shouldSkipNotify(ctx)) return;
|
|
3226
|
+
const now = (ctx.now ?? Date.now)();
|
|
3227
|
+
const cache = readCache(ctx);
|
|
3228
|
+
const channel = ctx.channel ?? readChannelFromEnv(ctx.env ?? process.env);
|
|
3229
|
+
if (cache && !ctx.force && now - cache.last_check_ts < THROTTLE_MS) {
|
|
3230
|
+
if (cache.latest_version && compareSemver(ctx.currentVersion, cache.latest_version) < 0) emitNotification(ctx, ctx.currentVersion, cache.latest_version);
|
|
3231
|
+
return;
|
|
3232
|
+
}
|
|
3233
|
+
const controller = new AbortController();
|
|
3234
|
+
const timer = setTimeout(() => controller.abort(), FETCH_TIMEOUT_MS);
|
|
3235
|
+
if (typeof timer.unref === "function") timer.unref();
|
|
3236
|
+
try {
|
|
3237
|
+
const hit = await fetchLatestVersion(channel, {
|
|
3238
|
+
etag: cache?.etag,
|
|
3239
|
+
signal: controller.signal,
|
|
3240
|
+
fetchImpl: ctx.fetchImpl
|
|
3241
|
+
});
|
|
3242
|
+
clearTimeout(timer);
|
|
3243
|
+
if ("notModified" in hit && hit.notModified) {
|
|
3244
|
+
writeCacheAtomic({
|
|
3245
|
+
last_check_ts: now,
|
|
3246
|
+
latest_version: cache?.latest_version,
|
|
3247
|
+
etag: cache?.etag
|
|
3248
|
+
}, ctx);
|
|
3249
|
+
return;
|
|
3250
|
+
}
|
|
3251
|
+
writeCacheAtomic({
|
|
3252
|
+
last_check_ts: now,
|
|
3253
|
+
latest_version: hit.version,
|
|
3254
|
+
etag: hit.etag
|
|
3255
|
+
}, ctx);
|
|
3256
|
+
} catch {
|
|
3257
|
+
clearTimeout(timer);
|
|
3258
|
+
writeCacheAtomic({
|
|
3259
|
+
last_check_ts: now,
|
|
3260
|
+
latest_version: cache?.latest_version,
|
|
3261
|
+
etag: cache?.etag
|
|
3262
|
+
}, ctx);
|
|
3263
|
+
}
|
|
3264
|
+
} catch {}
|
|
3265
|
+
}
|
|
3266
|
+
function readChannelFromEnv(env) {
|
|
3267
|
+
return env.MXS_UPDATE_CHANNEL === "next" ? "next" : "stable";
|
|
3268
|
+
}
|
|
3269
|
+
/**
|
|
3270
|
+
* Construct a NotifyContext from current process + global flags.
|
|
3271
|
+
*/
|
|
3272
|
+
function buildContextFromFlags(input) {
|
|
3273
|
+
return {
|
|
3274
|
+
currentVersion: input.currentVersion,
|
|
3275
|
+
quiet: input.flags.quiet,
|
|
3276
|
+
json: input.flags.json,
|
|
3277
|
+
output: input.flags.output,
|
|
3278
|
+
commandName: input.commandName,
|
|
3279
|
+
parentName: input.parentName,
|
|
3280
|
+
force: input.force,
|
|
3281
|
+
isTTY: Boolean(process.stderr.isTTY),
|
|
3282
|
+
env: process.env
|
|
3283
|
+
};
|
|
3284
|
+
}
|
|
3285
|
+
//#endregion
|
|
3165
3286
|
//#region src/bin/mxs.ts
|
|
3287
|
+
const CLI_VERSION = "0.2.0";
|
|
3166
3288
|
const program = new Command();
|
|
3167
|
-
program.name("mxs").description("mx-space CLI — manage your mx-core blog from the command line").version(
|
|
3289
|
+
program.name("mxs").description("mx-space CLI — manage your mx-core blog from the command line").version(CLI_VERSION).option("--json", "emit JSON output").option("--output <mode>", "pretty-json | json | readable | llm | envelope").option("--api-url <url>", "override the configured API URL").option("--token <t>", "override the stored access token").option("--api-key <key>", "authenticate with an x-api-key API key").option("--lang <code>", "request translated read data for a locale").option("-q, --quiet", "suppress non-error stderr").option("--verbose", "log HTTP method/url/status/duration").option("--dry-run", "show resolved payload without calling the server").option("--profile <name>", "profile to use (overrides MXS_PROFILE and the active profile pointer)");
|
|
3168
3290
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
3169
3291
|
const opts = thisCommand.optsWithGlobals();
|
|
3170
3292
|
if (opts.profile) try {
|
|
3171
3293
|
validateProfileName(opts.profile);
|
|
3172
3294
|
} catch (err) {
|
|
3173
3295
|
if (err instanceof MxsError) throw new MxsError({
|
|
3174
|
-
code:
|
|
3296
|
+
code: MxsErrorCode.ProfileInvalidName,
|
|
3175
3297
|
message: err.message,
|
|
3176
3298
|
hint: "profile name must match ^[a-z0-9_-]{1,32}$ and must not be \"current\""
|
|
3177
3299
|
});
|
|
@@ -3188,10 +3310,20 @@ program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
|
3188
3310
|
parentName: actionCommand.parent?.name() ?? "",
|
|
3189
3311
|
commandName: actionCommand.name()
|
|
3190
3312
|
})) throw new MxsError({
|
|
3191
|
-
code:
|
|
3313
|
+
code: MxsErrorCode.ProfileNoneActive,
|
|
3192
3314
|
message: "no active mxs profile",
|
|
3193
3315
|
hint: "run `mxs profile use <name>` to switch, or `mxs auth login --profile <name>` to create one"
|
|
3194
3316
|
});
|
|
3317
|
+
maybeNotify(buildContextFromFlags({
|
|
3318
|
+
currentVersion: CLI_VERSION,
|
|
3319
|
+
flags: {
|
|
3320
|
+
quiet: opts.quiet,
|
|
3321
|
+
json: opts.json,
|
|
3322
|
+
output: opts.output
|
|
3323
|
+
},
|
|
3324
|
+
commandName: actionCommand.name(),
|
|
3325
|
+
parentName: actionCommand.parent?.name() ?? ""
|
|
3326
|
+
}));
|
|
3195
3327
|
});
|
|
3196
3328
|
addAuthCommands(program);
|
|
3197
3329
|
addProfileCommands(program);
|
|
@@ -3201,6 +3333,7 @@ addPageCommands(program);
|
|
|
3201
3333
|
addCategoryCommands(program);
|
|
3202
3334
|
addTopicCommands(program);
|
|
3203
3335
|
addConfigCommands(program);
|
|
3336
|
+
addUpdateCommand(program);
|
|
3204
3337
|
program.parseAsync(process.argv).catch((err) => {
|
|
3205
3338
|
emitError(err, readGlobalOptions(program));
|
|
3206
3339
|
process.exit(exitCodeForError(err));
|
|
@@ -3217,48 +3350,60 @@ function readGlobalOptions(cmd) {
|
|
|
3217
3350
|
function readGlobalFlags(cmd) {
|
|
3218
3351
|
return cmd.optsWithGlobals();
|
|
3219
3352
|
}
|
|
3353
|
+
function addUpdateCommand(parent) {
|
|
3354
|
+
parent.command("update").description("check for and install a newer mxs release").option("--check", "compare versions only; do not install").option("--prerelease", "use the `next` dist-tag channel").option("--pm <name>", "force package manager: npm | pnpm | yarn | bun").option("--force", "bypass the 24h passive-check cache").option("--yes", "skip the confirmation prompt").action(async (opts, command) => {
|
|
3355
|
+
const { run } = await import("../run-Dnax6uhZ.mjs");
|
|
3356
|
+
await run({
|
|
3357
|
+
check: opts.check,
|
|
3358
|
+
prerelease: opts.prerelease,
|
|
3359
|
+
pm: opts.pm,
|
|
3360
|
+
force: opts.force,
|
|
3361
|
+
yes: opts.yes
|
|
3362
|
+
}, readGlobalFlags(command), readGlobalOptions(command), CLI_VERSION);
|
|
3363
|
+
});
|
|
3364
|
+
}
|
|
3220
3365
|
function addAuthCommands(parent) {
|
|
3221
3366
|
const auth = parent.command("auth").description("authentication");
|
|
3222
3367
|
auth.command("login").description("start device authorization flow").option("--production", "mark the target profile as production after login").action(async (opts, command) => {
|
|
3223
|
-
const { run } = await import("../login-
|
|
3368
|
+
const { run } = await import("../login-bZx4HaVs.mjs");
|
|
3224
3369
|
await run(readGlobalFlags(command), readGlobalOptions(command), { production: opts.production });
|
|
3225
3370
|
});
|
|
3226
3371
|
auth.command("logout").description("delete stored credentials").action(async (_opts, command) => {
|
|
3227
|
-
const { run } = await import("../logout-
|
|
3372
|
+
const { run } = await import("../logout-C0Dzitsu.mjs");
|
|
3228
3373
|
await run(readGlobalFlags(command), readGlobalOptions(command));
|
|
3229
3374
|
});
|
|
3230
3375
|
auth.command("whoami").description("show the authenticated user").action(async (_opts, command) => {
|
|
3231
|
-
const { run } = await import("../whoami-
|
|
3376
|
+
const { run } = await import("../whoami-CKSNd6zL.mjs");
|
|
3232
3377
|
await run(readGlobalFlags(command), readGlobalOptions(command));
|
|
3233
3378
|
});
|
|
3234
3379
|
auth.command("status").description("show token validity and expiry").action(async (_opts, command) => {
|
|
3235
|
-
const { run } = await import("../status-
|
|
3380
|
+
const { run } = await import("../status-8F6tgphP.mjs");
|
|
3236
3381
|
await run(readGlobalFlags(command), readGlobalOptions(command));
|
|
3237
3382
|
});
|
|
3238
3383
|
}
|
|
3239
3384
|
function addPostCommands(parent) {
|
|
3240
3385
|
const post = parent.command("post").description("manage posts");
|
|
3241
3386
|
post.command("list").option("--page <n>", "page number", (v) => Number(v)).option("--size <n>", "page size", (v) => Number(v)).option("--state <s>", "draft | publish").option("--sort <s>", "created | modified").action(async (opts, command) => {
|
|
3242
|
-
const { run } = await import("../list-
|
|
3387
|
+
const { run } = await import("../list-b60JzCTw.mjs");
|
|
3243
3388
|
await run(opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3244
3389
|
});
|
|
3245
3390
|
post.command("get <slugOrId>").action(async (id, _opts, command) => {
|
|
3246
|
-
const { run } = await import("../get-
|
|
3391
|
+
const { run } = await import("../get-C5fmd5Vf.mjs");
|
|
3247
3392
|
await run(id, readGlobalFlags(command), readGlobalOptions(command));
|
|
3248
3393
|
});
|
|
3249
3394
|
addPostWriteCommand(post, "create");
|
|
3250
3395
|
addPostWriteCommand(post, "edit", true);
|
|
3251
3396
|
addPostWriteCommand(post, "update", true);
|
|
3252
3397
|
post.command("delete <slugOrId>").option("--force", "skip confirmation").action(async (id, opts, command) => {
|
|
3253
|
-
const { run } = await import("../delete-
|
|
3398
|
+
const { run } = await import("../delete-6tkhHQDp.mjs");
|
|
3254
3399
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3255
3400
|
});
|
|
3256
3401
|
post.command("publish <slugOrId>").action(async (id, _opts, command) => {
|
|
3257
|
-
const { run } = await import("../publish-
|
|
3402
|
+
const { run } = await import("../publish-CzzucXQq.mjs");
|
|
3258
3403
|
await run(id, true, readGlobalFlags(command), readGlobalOptions(command));
|
|
3259
3404
|
});
|
|
3260
3405
|
post.command("unpublish <slugOrId>").action(async (id, _opts, command) => {
|
|
3261
|
-
const { run } = await import("../publish-
|
|
3406
|
+
const { run } = await import("../publish-CzzucXQq.mjs");
|
|
3262
3407
|
await run(id, false, readGlobalFlags(command), readGlobalOptions(command));
|
|
3263
3408
|
});
|
|
3264
3409
|
}
|
|
@@ -3270,13 +3415,13 @@ function addPostWriteCommand(parent, name, requiresId = false) {
|
|
|
3270
3415
|
const opts = args.at(-2);
|
|
3271
3416
|
const id = requiresId ? args[0] : void 0;
|
|
3272
3417
|
if (name === "create") {
|
|
3273
|
-
const { run } = await import("../create-
|
|
3418
|
+
const { run } = await import("../create-DBReocgJ.mjs");
|
|
3274
3419
|
await run(opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3275
3420
|
} else if (name === "edit") {
|
|
3276
|
-
const { run } = await import("../edit-
|
|
3421
|
+
const { run } = await import("../edit-CQsW5gnk.mjs");
|
|
3277
3422
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3278
3423
|
} else {
|
|
3279
|
-
const { run } = await import("../update-
|
|
3424
|
+
const { run } = await import("../update-B1LGxV0n.mjs");
|
|
3280
3425
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3281
3426
|
}
|
|
3282
3427
|
});
|
|
@@ -3287,26 +3432,26 @@ function attachPostWriteFlags(cmd) {
|
|
|
3287
3432
|
function addNoteCommands(parent) {
|
|
3288
3433
|
const note = parent.command("note").description("manage notes");
|
|
3289
3434
|
note.command("list").option("--page <n>", "", (v) => Number(v)).option("--size <n>", "", (v) => Number(v)).option("--state <s>").option("--sort <s>").action(async (opts, command) => {
|
|
3290
|
-
const { run } = await import("../list-
|
|
3435
|
+
const { run } = await import("../list-BtNocJhc.mjs");
|
|
3291
3436
|
await run(opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3292
3437
|
});
|
|
3293
3438
|
note.command("get <slugOrId>").action(async (id, _opts, command) => {
|
|
3294
|
-
const { run } = await import("../get-
|
|
3439
|
+
const { run } = await import("../get-Cdp2tmwz.mjs");
|
|
3295
3440
|
await run(id, readGlobalFlags(command), readGlobalOptions(command));
|
|
3296
3441
|
});
|
|
3297
3442
|
addNoteWriteCommand(note, "create");
|
|
3298
3443
|
addNoteWriteCommand(note, "edit", true);
|
|
3299
3444
|
addNoteWriteCommand(note, "update", true);
|
|
3300
3445
|
note.command("delete <slugOrId>").option("--force").action(async (id, opts, command) => {
|
|
3301
|
-
const { run } = await import("../delete-
|
|
3446
|
+
const { run } = await import("../delete-tJhXI8s4.mjs");
|
|
3302
3447
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3303
3448
|
});
|
|
3304
3449
|
note.command("publish <slugOrId>").action(async (id, _opts, command) => {
|
|
3305
|
-
const { run } = await import("../publish-
|
|
3450
|
+
const { run } = await import("../publish-DRQkpxsz.mjs");
|
|
3306
3451
|
await run(id, true, readGlobalFlags(command), readGlobalOptions(command));
|
|
3307
3452
|
});
|
|
3308
3453
|
note.command("unpublish <slugOrId>").action(async (id, _opts, command) => {
|
|
3309
|
-
const { run } = await import("../publish-
|
|
3454
|
+
const { run } = await import("../publish-DRQkpxsz.mjs");
|
|
3310
3455
|
await run(id, false, readGlobalFlags(command), readGlobalOptions(command));
|
|
3311
3456
|
});
|
|
3312
3457
|
}
|
|
@@ -3318,13 +3463,13 @@ function addNoteWriteCommand(parent, name, requiresId = false) {
|
|
|
3318
3463
|
const opts = args.at(-2);
|
|
3319
3464
|
const id = requiresId ? args[0] : void 0;
|
|
3320
3465
|
if (name === "create") {
|
|
3321
|
-
const { run } = await import("../create-
|
|
3466
|
+
const { run } = await import("../create-5wbU7IQh.mjs");
|
|
3322
3467
|
await run(opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3323
3468
|
} else if (name === "edit") {
|
|
3324
|
-
const { run } = await import("../edit-
|
|
3469
|
+
const { run } = await import("../edit-C4vRSmRy.mjs");
|
|
3325
3470
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3326
3471
|
} else {
|
|
3327
|
-
const { run } = await import("../update-
|
|
3472
|
+
const { run } = await import("../update-Dr4BW8U-.mjs");
|
|
3328
3473
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3329
3474
|
}
|
|
3330
3475
|
});
|
|
@@ -3332,11 +3477,11 @@ function addNoteWriteCommand(parent, name, requiresId = false) {
|
|
|
3332
3477
|
function addPageCommands(parent) {
|
|
3333
3478
|
const page = parent.command("page").description("manage pages");
|
|
3334
3479
|
page.command("list").action(async (_opts, command) => {
|
|
3335
|
-
const { run } = await import("../list-
|
|
3480
|
+
const { run } = await import("../list-C9dXrU9H.mjs");
|
|
3336
3481
|
await run({}, readGlobalFlags(command), readGlobalOptions(command));
|
|
3337
3482
|
});
|
|
3338
3483
|
page.command("get <slugOrId>").action(async (id, _opts, command) => {
|
|
3339
|
-
const { run } = await import("../get-
|
|
3484
|
+
const { run } = await import("../get-XBPJr95m.mjs");
|
|
3340
3485
|
await run(id, readGlobalFlags(command), readGlobalOptions(command));
|
|
3341
3486
|
});
|
|
3342
3487
|
const writeCmd = (name, requiresId) => {
|
|
@@ -3346,102 +3491,102 @@ function addPageCommands(parent) {
|
|
|
3346
3491
|
const command = args.at(-1);
|
|
3347
3492
|
const opts = args.at(-2);
|
|
3348
3493
|
const id = requiresId ? args[0] : void 0;
|
|
3349
|
-
await (name === "create" ? await import("../create-
|
|
3494
|
+
await (name === "create" ? await import("../create-DGVaE0_S.mjs") : name === "edit" ? await import("../edit-BnEmMmv6.mjs") : await import("../update-bqcHRJPC.mjs")).run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3350
3495
|
});
|
|
3351
3496
|
};
|
|
3352
3497
|
writeCmd("create", false);
|
|
3353
3498
|
writeCmd("edit", true);
|
|
3354
3499
|
writeCmd("update", true);
|
|
3355
3500
|
page.command("delete <slugOrId>").option("--force").action(async (id, opts, command) => {
|
|
3356
|
-
const { run } = await import("../delete-
|
|
3501
|
+
const { run } = await import("../delete-CRFxitDN.mjs");
|
|
3357
3502
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3358
3503
|
});
|
|
3359
3504
|
}
|
|
3360
3505
|
function addCategoryCommands(parent) {
|
|
3361
3506
|
const cat = parent.command("category").description("manage categories / tags");
|
|
3362
3507
|
cat.command("list").action(async (_o, command) => {
|
|
3363
|
-
const { run } = await import("../list-
|
|
3508
|
+
const { run } = await import("../list-Ctc8b5gT.mjs");
|
|
3364
3509
|
await run(readGlobalFlags(command), readGlobalOptions(command));
|
|
3365
3510
|
});
|
|
3366
3511
|
cat.command("get <slugOrId>").action(async (id, _o, command) => {
|
|
3367
|
-
const { run } = await import("../get-
|
|
3512
|
+
const { run } = await import("../get-B3Y5hAAO.mjs");
|
|
3368
3513
|
await run(id, readGlobalFlags(command), readGlobalOptions(command));
|
|
3369
3514
|
});
|
|
3370
3515
|
cat.command("create").requiredOption("--name <s>").requiredOption("--slug <s>").option("--type <s>", "category | tag").option("--icon <s>").action(async (opts, command) => {
|
|
3371
|
-
const { run } = await import("../create-
|
|
3516
|
+
const { run } = await import("../create-Bs6K7AyQ.mjs");
|
|
3372
3517
|
await run(opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3373
3518
|
});
|
|
3374
3519
|
cat.command("update <slugOrId>").option("--name <s>").option("--slug <s>").option("--type <s>").option("--icon <s>").action(async (id, opts, command) => {
|
|
3375
|
-
const { run } = await import("../update
|
|
3520
|
+
const { run } = await import("../update-CXetpFT3.mjs");
|
|
3376
3521
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3377
3522
|
});
|
|
3378
3523
|
cat.command("delete <slugOrId>").option("--force").action(async (id, opts, command) => {
|
|
3379
|
-
const { run } = await import("../delete-
|
|
3524
|
+
const { run } = await import("../delete-DU2Hvsy8.mjs");
|
|
3380
3525
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3381
3526
|
});
|
|
3382
3527
|
}
|
|
3383
3528
|
function addTopicCommands(parent) {
|
|
3384
3529
|
const topic = parent.command("topic").description("manage topics");
|
|
3385
3530
|
topic.command("list").action(async (_o, command) => {
|
|
3386
|
-
const { run } = await import("../list-
|
|
3531
|
+
const { run } = await import("../list-B6703n9X.mjs");
|
|
3387
3532
|
await run(readGlobalFlags(command), readGlobalOptions(command));
|
|
3388
3533
|
});
|
|
3389
3534
|
topic.command("get <slugOrId>").action(async (id, _o, command) => {
|
|
3390
|
-
const { run } = await import("../get-
|
|
3535
|
+
const { run } = await import("../get-NSHTGu4Y.mjs");
|
|
3391
3536
|
await run(id, readGlobalFlags(command), readGlobalOptions(command));
|
|
3392
3537
|
});
|
|
3393
3538
|
topic.command("create").requiredOption("--name <s>").requiredOption("--slug <s>").option("--description <s>").option("--icon <s>").action(async (opts, command) => {
|
|
3394
|
-
const { run } = await import("../create-
|
|
3539
|
+
const { run } = await import("../create-lLFZuMsz.mjs");
|
|
3395
3540
|
await run(opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3396
3541
|
});
|
|
3397
3542
|
topic.command("update <slugOrId>").option("--name <s>").option("--slug <s>").option("--description <s>").option("--icon <s>").action(async (id, opts, command) => {
|
|
3398
|
-
const { run } = await import("../update-
|
|
3543
|
+
const { run } = await import("../update-dBtzzmkN.mjs");
|
|
3399
3544
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3400
3545
|
});
|
|
3401
3546
|
topic.command("delete <slugOrId>").option("--force").action(async (id, opts, command) => {
|
|
3402
|
-
const { run } = await import("../delete-
|
|
3547
|
+
const { run } = await import("../delete-nJmHtvfq.mjs");
|
|
3403
3548
|
await run(id, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3404
3549
|
});
|
|
3405
3550
|
}
|
|
3406
3551
|
function addConfigCommands(parent) {
|
|
3407
3552
|
const cfg = parent.command("config").description("manage server options");
|
|
3408
3553
|
cfg.command("list").action(async (_o, command) => {
|
|
3409
|
-
const { run } = await import("../list-
|
|
3554
|
+
const { run } = await import("../list-CcwcYZgN.mjs");
|
|
3410
3555
|
await run(readGlobalFlags(command), readGlobalOptions(command));
|
|
3411
3556
|
});
|
|
3412
3557
|
cfg.command("get <key>").action(async (key, _o, command) => {
|
|
3413
|
-
const { run } = await import("../get-
|
|
3558
|
+
const { run } = await import("../get-D18ChSKU.mjs");
|
|
3414
3559
|
await run(key, readGlobalFlags(command), readGlobalOptions(command));
|
|
3415
3560
|
});
|
|
3416
3561
|
cfg.command("set <key> <value>").option("--type <t>", "json | string | number | bool").action(async (key, value, opts, command) => {
|
|
3417
|
-
const { run } = await import("../set-
|
|
3562
|
+
const { run } = await import("../set-Dk28LAy5.mjs");
|
|
3418
3563
|
await run(key, value, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3419
3564
|
});
|
|
3420
3565
|
cfg.command("edit").action(async (_o, command) => {
|
|
3421
|
-
const { run } = await import("../edit-
|
|
3566
|
+
const { run } = await import("../edit-BMjTbPQO.mjs");
|
|
3422
3567
|
await run(readGlobalFlags(command), readGlobalOptions(command));
|
|
3423
3568
|
});
|
|
3424
3569
|
}
|
|
3425
3570
|
function addProfileCommands(parent) {
|
|
3426
3571
|
const profile = parent.command("profile").description("manage mxs profiles");
|
|
3427
3572
|
profile.command("ls").description("list profiles").action(async (_opts, command) => {
|
|
3428
|
-
const { run } = await import("../ls-
|
|
3573
|
+
const { run } = await import("../ls-wMiTXZPQ.mjs");
|
|
3429
3574
|
await run(readGlobalFlags(command), readGlobalOptions(command));
|
|
3430
3575
|
});
|
|
3431
3576
|
profile.command("show [name]").description("show resolved info for a profile").action(async (name, _opts, command) => {
|
|
3432
|
-
const { run } = await import("../show-
|
|
3577
|
+
const { run } = await import("../show-DScu6mXz.mjs");
|
|
3433
3578
|
await run(name, readGlobalFlags(command), readGlobalOptions(command));
|
|
3434
3579
|
});
|
|
3435
3580
|
profile.command("use <name>").description("set the active profile").action(async (name, _opts, command) => {
|
|
3436
|
-
const { run } = await import("../use-
|
|
3581
|
+
const { run } = await import("../use-D7eKESSW.mjs");
|
|
3437
3582
|
await run(name, readGlobalFlags(command), readGlobalOptions(command));
|
|
3438
3583
|
});
|
|
3439
3584
|
profile.command("mark <name>").description("toggle production flag on a profile").option("--production", "mark profile as production").option("--no-production", "mark profile as non-production").action(async (name, opts, command) => {
|
|
3440
|
-
const { run } = await import("../mark-
|
|
3585
|
+
const { run } = await import("../mark-Dh9BErsf.mjs");
|
|
3441
3586
|
await run(name, { production: opts.production }, readGlobalFlags(command), readGlobalOptions(command));
|
|
3442
3587
|
});
|
|
3443
3588
|
profile.command("rm <name>").description("remove a profile").option("--force", "skip confirmation and allow removing current profile").action(async (name, opts, command) => {
|
|
3444
|
-
const { run } = await import("../rm-
|
|
3589
|
+
const { run } = await import("../rm-D-2iW1Cr.mjs");
|
|
3445
3590
|
await run(name, opts, readGlobalFlags(command), readGlobalOptions(command));
|
|
3446
3591
|
});
|
|
3447
3592
|
}
|