nolo-cli 0.260.0-alpha.1 → 0.261.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.
- package/{_executeModel-EO6JFCOF.js → _executeModel-PODMRXJJ.js} +32 -32
- package/{action-WIA56QT4.js → action-NJTYNXXR.js} +6 -6
- package/{addContentAction-OCMWZLYG.js → addContentAction-RUPXLROG.js} +9 -9
- package/{addDialogAgentAction-ER2NZ7BC.js → addDialogAgentAction-57EJ2UBC.js} +9 -9
- package/{agentDeleteCommand-KSXSNPAU.js → agentDeleteCommand-DRFCOTYP.js} +46 -46
- package/{agentEmailCommands-NXRWS7NS.js → agentEmailCommands-FHENHUBF.js} +47 -47
- package/{agentGrantCommands-D2S7LCTU.js → agentGrantCommands-BMVKNYIY.js} +2 -2
- package/{agentListCommands-PFXGZZ3Y.js → agentListCommands-W66W5K3V.js} +10 -10
- package/{agentMachineCommands-2Q55CSL4.js → agentMachineCommands-C3BUBCXU.js} +7 -7
- package/{agentProviderCommands-EUNS7Y2Z.js → agentProviderCommands-VIWKP7DM.js} +2 -2
- package/{agentPullCommand-S2VMPSWL.js → agentPullCommand-5SNSXOY7.js} +3 -3
- package/{agentRecordCommands-FUFI526H.js → agentRecordCommands-DYMHWTID.js} +47 -47
- package/{agentRun-ZNMUPDHF.js → agentRun-QVFG3CI4.js} +49 -49
- package/{agentRunCommand-ISVQ2UYC.js → agentRunCommand-YV4V5HSL.js} +50 -50
- package/{agentRunControl-NEK44LDM.js → agentRunControl-RGBHKPKJ.js} +3 -3
- package/{agentRuntimeLocal-SST4EPLT.js → agentRuntimeLocal-LVEMOYS2.js} +4 -4
- package/{agentSlice-4ZJJJN4M.js → agentSlice-OJCM7OUX.js} +9 -9
- package/{appConfigCommands-MPHS6FHD.js → appConfigCommands-ZUXQLE7L.js} +7 -7
- package/{appDeleteCommands-W26WGENW.js → appDeleteCommands-L5UKUMXY.js} +7 -7
- package/{appDeployCommands-ER7IOF5E.js → appDeployCommands-KX2BRQUW.js} +7 -7
- package/{appDeployStatusCommands-VKLL3A77.js → appDeployStatusCommands-7LHRSWW7.js} +7 -7
- package/{appGetCommands-P6GXJNUD.js → appGetCommands-F7SDFCUK.js} +7 -7
- package/{appListCommands-ACA2IZZM.js → appListCommands-U4NJKSMZ.js} +7 -7
- package/{appMigrateCommands-OGF4E2W6.js → appMigrateCommands-JAPOLYSW.js} +7 -7
- package/{appSourceCommands-GAHVBRUM.js → appSourceCommands-TLXPWXUH.js} +7 -7
- package/{authCommand-PXE7NZTQ.js → authCommand-AU3GZBZ2.js} +5 -5
- package/{authCommands-AZPYXTUB.js → authCommands-JKBWMUQ4.js} +4 -4
- package/{chromeOpsCommands-7UKKUOBU.js → chromeOpsCommands-F47WYQWF.js} +2 -2
- package/{chunk-Y7THFNVJ.js → chunk-2FGFY72B.js} +6 -6
- package/{chunk-LIH7WSX5.js → chunk-3B7OTHDW.js} +2 -2
- package/{chunk-T4WU747C.js → chunk-3TII7WCF.js} +1 -1
- package/{chunk-DEAII55O.js → chunk-63G7JWEA.js} +3 -3
- package/{chunk-USFG4EWQ.js → chunk-6BBXJGIQ.js} +11 -11
- package/{chunk-VDC3BW24.js → chunk-7X4BFUJV.js} +1 -1
- package/{chunk-S7BF2OGX.js → chunk-A4O76A6V.js} +10 -10
- package/{chunk-VKM7DOYB.js → chunk-BUGLH2A7.js} +1 -1
- package/{chunk-7QO6YSA4.js → chunk-CK2LMTYO.js} +2 -2
- package/{chunk-GMBWWBSJ.js → chunk-CNYPQYXT.js} +2 -2
- package/{chunk-7RYH7YIY.js → chunk-EQOWWSNQ.js} +6 -6
- package/{chunk-75FZ2Z7C.js → chunk-ERCSHBUD.js} +17 -17
- package/{chunk-I3NWAILT.js → chunk-FNLT7NKG.js} +1 -7
- package/{chunk-EJHLDJWZ.js → chunk-FP46RAJQ.js} +3 -3
- package/{chunk-YNP3ITPU.js → chunk-GEC4CHS2.js} +5 -5
- package/{chunk-FKVLQNGJ.js → chunk-GF4LYNNZ.js} +2 -2
- package/{chunk-YU235GGN.js → chunk-GH6SS2DZ.js} +1 -1
- package/{chunk-ZD7OULYZ.js → chunk-HAZ6UVH4.js} +3 -3
- package/{chunk-52BNL6GP.js → chunk-HB4J5HA6.js} +1 -1
- package/{chunk-ZTCMXPIS.js → chunk-HMFKYZKP.js} +2 -2
- package/{chunk-BTIFQBYW.js → chunk-IN4B6Z2D.js} +4 -4
- package/{chunk-UYZOBSSO.js → chunk-IWWJSSST.js} +2 -2
- package/{chunk-XQFDCRG3.js → chunk-J22PFCQN.js} +4 -4
- package/{chunk-LCBAMY2M.js → chunk-JKVOKKMQ.js} +0 -7
- package/{chunk-GZ4I5EMM.js → chunk-JPYOHIHX.js} +5 -5
- package/{chunk-2CKFROQS.js → chunk-KALCFXQO.js} +30 -30
- package/{chunk-W2RQYNPI.js → chunk-KSV6T4AH.js} +1 -1
- package/{chunk-6Z6DGDPI.js → chunk-L43DGEPZ.js} +1 -1
- package/{chunk-G5JGA5YM.js → chunk-L45P4JTE.js} +4 -4
- package/{chunk-JVEKCQAP.js → chunk-LHCIIUCX.js} +2 -2
- package/{chunk-JUNYPVL6.js → chunk-LTCZOOAM.js} +1 -1
- package/{chunk-VH356OQ3.js → chunk-LUTSMSIL.js} +4 -4
- package/{chunk-RL6H2A2Z.js → chunk-M7VNNPVX.js} +22 -22
- package/{chunk-EMFZXJTN.js → chunk-MMXHIHJZ.js} +1 -1
- package/{chunk-42JZNSAY.js → chunk-MPWQI36J.js} +4 -4
- package/{chunk-3EPED3UO.js → chunk-MSFKHPA6.js} +1 -1
- package/{chunk-HPIY372N.js → chunk-NJCTPWJU.js} +3 -3
- package/{chunk-D3SAQ6T7.js → chunk-NLS7F5DW.js} +7 -7
- package/{chunk-RDZ5OIAT.js → chunk-O77F26YB.js} +1 -1
- package/{chunk-WXD6Y7DW.js → chunk-OIOMBPCA.js} +2 -2
- package/{chunk-VPAO5WQX.js → chunk-OSZNERNW.js} +6 -6
- package/{chunk-IM7HCFB4.js → chunk-P4I55ASV.js} +7 -7
- package/{chunk-GYFKKTDI.js → chunk-Q5IXZF3S.js} +3 -3
- package/{chunk-B4NA5UJR.js → chunk-QXWXRBOL.js} +3 -3
- package/{chunk-76K4GTY5.js → chunk-QZYQ3Y3G.js} +1 -1
- package/{chunk-DKJQEFNG.js → chunk-SARJZIGR.js} +1 -1
- package/{chunk-AMTF6FJD.js → chunk-SJFL32RD.js} +3 -3
- package/{chunk-CRGPRAJ4.js → chunk-SRVLHMES.js} +5 -5
- package/{chunk-YM5XULB2.js → chunk-SWJRX4M5.js} +2 -2
- package/{chunk-CZHIOBBK.js → chunk-T3Y2NA4H.js} +2 -2
- package/{chunk-SGEBRBF3.js → chunk-TJXO66M2.js} +3 -3
- package/{chunk-76B6YUQS.js → chunk-U5PSCTMR.js} +8 -8
- package/{chunk-6KUTNAPU.js → chunk-UBOTXA3Z.js} +1 -1
- package/{chunk-QZCLCAYC.js → chunk-UEZL3RBG.js} +10 -10
- package/{chunk-UOLGGEEC.js → chunk-UJL23HBL.js} +7 -7
- package/{chunk-WLJNHFEB.js → chunk-ULPU4C43.js} +8 -8
- package/{chunk-JHQNWV2C.js → chunk-VC3MAT33.js} +25 -25
- package/{chunk-7HUCUD2I.js → chunk-VCESLFF4.js} +1 -1
- package/{chunk-L3UFGEDU.js → chunk-VOO3YQQP.js} +1 -1
- package/{chunk-SX6PDLBZ.js → chunk-VZDSNDUD.js} +10 -10
- package/{chunk-LJOPY4TL.js → chunk-WEEB2JKA.js} +1 -1
- package/{chunk-6XAAKRJB.js → chunk-XKNDVHF5.js} +4 -4
- package/{chunk-PQ3QZMJK.js → chunk-XREMPMNK.js} +2 -2
- package/{chunk-YWEZSBLL.js → chunk-XUDXQT7R.js} +1 -1
- package/{chunk-YOUSQIIK.js → chunk-YVOUSIIA.js} +1 -1
- package/{chunk-SD4MBKZ7.js → chunk-Z27AH6A5.js} +4 -4
- package/{chunk-INN2PBW7.js → chunk-Z7EP5HDL.js} +1 -1
- package/{chunk-FGD4NMTP.js → chunk-ZB2E724W.js} +1 -1
- package/{cliAgentConfigHelpers-KMXS7JP5.js → cliAgentConfigHelpers-BJJEXHSZ.js} +3 -3
- package/{cliAuthorityBrokerProcess-DCCUT4YQ.js → cliAuthorityBrokerProcess-VIJEKQSX.js} +3 -3
- package/{cliEnvHelpers-YDGDHIEE.js → cliEnvHelpers-NDMKN4X2.js} +2 -2
- package/{cliLocalAgentRecordReader-X2YHEBWI.js → cliLocalAgentRecordReader-KCZS2MZU.js} +5 -5
- package/{cloudAutomationCommands-C6Q3BFRB.js → cloudAutomationCommands-2WQUGQSW.js} +7 -7
- package/{commandRegistry-TYYYTW5E.js → commandRegistry-C64JBZJ3.js} +142 -114
- package/{contentThunks-E6BJ5YSX.js → contentThunks-G3HEIRXC.js} +16 -16
- package/{createAgentAutomationAction-L3NLCIIW.js → createAgentAutomationAction-DSBL3X3A.js} +16 -16
- package/{createDialogAction-QSWKRPWQ.js → createDialogAction-OHFUHC53.js} +17 -17
- package/{createPageAction-ZVVUT4CZ.js → createPageAction-E6JZSZLU.js} +17 -17
- package/{dbSlice-SEVKNA7A.js → dbSlice-U3GPLEL3.js} +8 -8
- package/{deleteDbKey-43MTK2DI.js → deleteDbKey-DRXKWJX5.js} +17 -17
- package/{dialogCommands-UVMTIFSA.js → dialogCommands-4EX2OTIC.js} +11 -11
- package/{dialogNotifyCommand-LMWF7EQI.js → dialogNotifyCommand-4SCE2Z2R.js} +4 -4
- package/{dialogPortabilityCommands-PAMLEBST.js → dialogPortabilityCommands-ZSFFHRX4.js} +2 -2
- package/{dialogSlice-VHPXENDZ.js → dialogSlice-PRZCIJCH.js} +14 -14
- package/{dialogTraceCommand-SO2WKAXW.js → dialogTraceCommand-RKB76OVX.js} +12 -12
- package/{dialogUsageCommand-EUO6JXTD.js → dialogUsageCommand-BP7HMRYP.js} +3 -3
- package/{docCreateCommands-H4RLIUNX.js → docCreateCommands-JGPNGIZ7.js} +6 -6
- package/{docDeleteCommands-OVAKCBMT.js → docDeleteCommands-XRJTNRDH.js} +7 -7
- package/{docReadCommands-KFISIUVA.js → docReadCommands-6GFO4ARS.js} +6 -6
- package/{docStore-X7BEA735.js → docStore-QRLIWFTU.js} +9 -9
- package/{docUpdateCommands-VOEER36L.js → docUpdateCommands-W2GXMUXW.js} +6 -6
- package/{handleSendMessageAction-GQ2KKOET.js → handleSendMessageAction-DHGWURJZ.js} +27 -27
- package/{hostCredentialCreate-PJAIKZQP.js → hostCredentialCreate-FPUZ7RMI.js} +47 -47
- package/index.js +10 -10
- package/{localAutomationCommands-UU66LOWB.js → localAutomationCommands-ZMU22RQJ.js} +6 -6
- package/{localAutomationRuntime-SW4R42SZ.js → localAutomationRuntime-MU5FGJ3V.js} +6 -6
- package/{localRuntimeAdapter-WRBLXFUZ.js → localRuntimeAdapter-YBXQBV4G.js} +44 -44
- package/{localRuntimeAuthority-3YDFZD3L.js → localRuntimeAuthority-LDXMEDO5.js} +4 -4
- package/{localRuntimeDb-CJWJK47G.js → localRuntimeDb-6TQZDLNU.js} +1 -1
- package/{machineCommands-JFYED66N.js → machineCommands-57RTUYRV.js} +46 -46
- package/{machineWsRunDispatch-CZUV2FXE.js → machineWsRunDispatch-VBKV3FFE.js} +45 -45
- package/{mcpLocalAuthorizeCommand-HLU72QME.js → mcpLocalAuthorizeCommand-J76SOJVZ.js} +6 -6
- package/{mcpLocalManageCommands-OHHU6F5C.js → mcpLocalManageCommands-USETIMHB.js} +6 -6
- package/{memberThunks-FJW4GPM5.js → memberThunks-7UERUEMI.js} +10 -10
- package/{memoryCommands-2RLHDMU2.js → memoryCommands-N7NHEE55.js} +2 -2
- package/package.json +1 -1
- package/{parityCommands-7EWR34P3.js → parityCommands-LYDLWSLK.js} +7 -7
- package/{projectArchive-JIVRMXVV.js → projectArchive-KCNQDVWJ.js} +17 -17
- package/{read-6YR57D6V.js → read-SPSQ6NLR.js} +6 -6
- package/{readDocTool-NKOGL2MW.js → readDocTool-ENUL2GNL.js} +1 -1
- package/{readlineWorkspace-V26AN2FL.js → readlineWorkspace-MKS7TAEF.js} +58 -58
- package/{remove-BF33RCTH.js → remove-TNNDO635.js} +6 -6
- package/{removeDialogAgentAction-GWHBWF4W.js → removeDialogAgentAction-POPUZ3WU.js} +11 -11
- package/{runAgentClientLoop-EKD2EEEA.js → runAgentClientLoop-KVILXQNI.js} +30 -30
- package/{runtimeDoctorCommands-IALUR5BZ.js → runtimeDoctorCommands-4J2DP4LZ.js} +4 -4
- package/{setDialogExtraReferencesAction-RL6FGO7T.js → setDialogExtraReferencesAction-35THMVBP.js} +10 -10
- package/{setPrimaryDialogAgentAction-XJASBB3K.js → setPrimaryDialogAgentAction-WLXBNIG7.js} +11 -11
- package/{settingThunks-ZT7ZYXXL.js → settingThunks-6Y5U5M5N.js} +9 -9
- package/{spaceCommands-65WQHVOI.js → spaceCommands-LXNJBO2U.js} +231 -7
- package/{spacePruneCommand-PTMRUWYJ.js → spacePruneCommand-2ITUFYBM.js} +2 -2
- package/{streamAgentChatTurn-B5NICHZW.js → streamAgentChatTurn-EY6MFKCA.js} +33 -33
- package/{switchDialogAgentAction-X6DFOIAX.js → switchDialogAgentAction-TG6BQRDA.js} +9 -9
- package/{tableCommands-6E77VD73.js → tableCommands-35G34R4B.js} +2 -2
- package/{toolApiClient-GTTWEV6P.js → toolApiClient-MPQIFYXP.js} +5 -5
- package/{tools-UMCPIQX6.js → tools-CSLTRRUR.js} +27 -27
- package/{tuiRestart-O7UDLNQU.js → tuiRestart-ALR4Q3JM.js} +4 -4
- package/{tuiSummaryLlmCaller-7APIUIIV.js → tuiSummaryLlmCaller-3Y3JEXJK.js} +4 -4
- package/{updateCommands-DXDIAQFS.js → updateCommands-GHQVP6Z5.js} +3 -3
- package/{updateDialogTitleAction-HZLKWVKM.js → updateDialogTitleAction-LFAWF5EW.js} +16 -16
- package/{usageCommand-WYLNBDHB.js → usageCommand-5VKW6T4C.js} +2 -2
- package/{usageRebuildCommand-AEUPY2PE.js → usageRebuildCommand-VUQETFMW.js} +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAgentContexts,
|
|
3
3
|
updateAgentTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FP46RAJQ.js";
|
|
5
5
|
import {
|
|
6
6
|
generateRequestBody,
|
|
7
7
|
performFetchRequest,
|
|
@@ -9,60 +9,60 @@ import {
|
|
|
9
9
|
sanitizeOutboundBody,
|
|
10
10
|
sanitizeToolErrorText,
|
|
11
11
|
stripModelToolArgs
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SRVLHMES.js";
|
|
13
13
|
import "./chunk-56OAS5RZ.js";
|
|
14
14
|
import {
|
|
15
15
|
findToolExecutor
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KALCFXQO.js";
|
|
17
17
|
import "./chunk-FF5ZRKW7.js";
|
|
18
18
|
import "./chunk-NHLLXINQ.js";
|
|
19
19
|
import "./chunk-MVOZ22RZ.js";
|
|
20
20
|
import "./chunk-WDWZPASX.js";
|
|
21
21
|
import {
|
|
22
22
|
mergeReferences
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-JPYOHIHX.js";
|
|
24
24
|
import {
|
|
25
25
|
getToolResultErrorData
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ULPU4C43.js";
|
|
27
27
|
import "./chunk-NF64D32W.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-WEEB2JKA.js";
|
|
29
|
+
import "./chunk-A4O76A6V.js";
|
|
30
|
+
import "./chunk-BUGLH2A7.js";
|
|
31
|
+
import "./chunk-GEC4CHS2.js";
|
|
32
|
+
import "./chunk-QXWXRBOL.js";
|
|
33
33
|
import "./chunk-WX266G2C.js";
|
|
34
34
|
import "./chunk-AGIM7IMJ.js";
|
|
35
35
|
import "./chunk-VF4K2QE6.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-IWWJSSST.js";
|
|
37
37
|
import "./chunk-63W5N6P3.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-XKNDVHF5.js";
|
|
39
|
+
import "./chunk-EQOWWSNQ.js";
|
|
40
|
+
import "./chunk-VZDSNDUD.js";
|
|
41
|
+
import "./chunk-M7VNNPVX.js";
|
|
42
42
|
import "./chunk-KDDXC2IH.js";
|
|
43
43
|
import "./chunk-TZXPT53C.js";
|
|
44
44
|
import "./chunk-6QDYSCPW.js";
|
|
45
45
|
import "./chunk-ER6NTALN.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-P4I55ASV.js";
|
|
47
|
+
import "./chunk-OIOMBPCA.js";
|
|
48
48
|
import "./chunk-BYXBJQAS.js";
|
|
49
49
|
import "./chunk-AMNZPQCY.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-Z27AH6A5.js";
|
|
51
51
|
import "./chunk-REAE2SZK.js";
|
|
52
52
|
import "./chunk-PL5RKESU.js";
|
|
53
53
|
import {
|
|
54
54
|
selectCurrentServer
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-GF4LYNNZ.js";
|
|
56
|
+
import "./chunk-IN4B6Z2D.js";
|
|
57
57
|
import "./chunk-UAD2WT54.js";
|
|
58
58
|
import {
|
|
59
59
|
read
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-U5PSCTMR.js";
|
|
61
61
|
import "./chunk-3PVYUPXK.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-J22PFCQN.js";
|
|
63
|
+
import "./chunk-Q5IXZF3S.js";
|
|
64
|
+
import "./chunk-MPWQI36J.js";
|
|
65
|
+
import "./chunk-SJFL32RD.js";
|
|
66
66
|
import "./chunk-HXER7YJF.js";
|
|
67
67
|
import "./chunk-NTBTVKKB.js";
|
|
68
68
|
import "./chunk-AMWMV56B.js";
|
|
@@ -70,13 +70,13 @@ import "./chunk-YY7IGJMN.js";
|
|
|
70
70
|
import "./chunk-3L2WKC3W.js";
|
|
71
71
|
import "./chunk-UEILX4EV.js";
|
|
72
72
|
import "./chunk-S25VJYXV.js";
|
|
73
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-63G7JWEA.js";
|
|
74
74
|
import "./chunk-QYPE3TS3.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-YVOUSIIA.js";
|
|
76
76
|
import {
|
|
77
77
|
selectIdentityToken
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import "./chunk-
|
|
78
|
+
} from "./chunk-SWJRX4M5.js";
|
|
79
|
+
import "./chunk-FNLT7NKG.js";
|
|
80
80
|
import "./chunk-MRACVEPZ.js";
|
|
81
81
|
import "./chunk-QQ56R7KS.js";
|
|
82
82
|
import "./chunk-GBWGPTA7.js";
|
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
isRecord
|
|
160
160
|
} from "./chunk-KUG52IAP.js";
|
|
161
161
|
import "./chunk-72VWN4VK.js";
|
|
162
|
-
import "./chunk-
|
|
162
|
+
import "./chunk-JKVOKKMQ.js";
|
|
163
163
|
import "./chunk-IV6VUVLJ.js";
|
|
164
164
|
import {
|
|
165
165
|
asOptionalTrimmedString
|
|
@@ -34,10 +34,10 @@ import "./chunk-KUG52IAP.js";
|
|
|
34
34
|
import {
|
|
35
35
|
resolveAuthToken,
|
|
36
36
|
resolveServerUrl
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LTCZOOAM.js";
|
|
38
38
|
import "./chunk-RF576RYE.js";
|
|
39
39
|
import "./chunk-72VWN4VK.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-JKVOKKMQ.js";
|
|
41
41
|
import "./chunk-IV6VUVLJ.js";
|
|
42
42
|
import "./chunk-G3SUCT4W.js";
|
|
43
43
|
import "./chunk-FI4DPLR7.js";
|
|
@@ -140,7 +140,7 @@ function detectProviderLabel(env) {
|
|
|
140
140
|
return "missing";
|
|
141
141
|
}
|
|
142
142
|
async function defaultLocalRuntimeProbe(env, deps = {}) {
|
|
143
|
-
const { resolveCliLocalRuntimeDbPath } = await import("./localRuntimeDb-
|
|
143
|
+
const { resolveCliLocalRuntimeDbPath } = await import("./localRuntimeDb-6TQZDLNU.js");
|
|
144
144
|
const dbPath = resolveCliLocalRuntimeDbPath({ env });
|
|
145
145
|
const authorityDriver = resolveCliAuthorityStoreDriver({ env });
|
|
146
146
|
const authorityEndpoint = resolveCliAuthorityBrokerEndpoint({ transport: "tcp", env });
|
|
@@ -148,7 +148,7 @@ async function defaultLocalRuntimeProbe(env, deps = {}) {
|
|
|
148
148
|
const authorityHealthPath = resolveCliAuthorityBrokerHealthPath({ transport: "tcp", env });
|
|
149
149
|
const agentKey = readLocalAgentKey(env);
|
|
150
150
|
try {
|
|
151
|
-
const db = deps.getDb ? await deps.getDb() : await import("./localRuntimeDb-
|
|
151
|
+
const db = deps.getDb ? await deps.getDb() : await import("./localRuntimeDb-6TQZDLNU.js").then(
|
|
152
152
|
({ getDefaultCliLocalRuntimeDb }) => getDefaultCliLocalRuntimeDb({ env })
|
|
153
153
|
);
|
|
154
154
|
const authorityHealth = await (deps.probeAuthorityHealth ?? probeCliAuthorityBrokerHealth)({
|
package/{setDialogExtraReferencesAction-RL6FGO7T.js → setDialogExtraReferencesAction-35THMVBP.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setDialogExtraReferencesAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IWWJSSST.js";
|
|
4
4
|
import "./chunk-PL5RKESU.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-U5PSCTMR.js";
|
|
6
6
|
import "./chunk-3PVYUPXK.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-J22PFCQN.js";
|
|
8
|
+
import "./chunk-Q5IXZF3S.js";
|
|
9
|
+
import "./chunk-MPWQI36J.js";
|
|
10
|
+
import "./chunk-SJFL32RD.js";
|
|
11
11
|
import "./chunk-UEILX4EV.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-YVOUSIIA.js";
|
|
13
|
+
import "./chunk-SWJRX4M5.js";
|
|
14
|
+
import "./chunk-FNLT7NKG.js";
|
|
15
15
|
import "./chunk-MRACVEPZ.js";
|
|
16
16
|
import "./chunk-QQ56R7KS.js";
|
|
17
17
|
import "./chunk-7DPNBQSV.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-3EUW3WEO.js";
|
|
|
27
27
|
import "./chunk-WWC7I6TA.js";
|
|
28
28
|
import "./chunk-U6VC4MU4.js";
|
|
29
29
|
import "./chunk-KUG52IAP.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-JKVOKKMQ.js";
|
|
31
31
|
import "./chunk-IV6VUVLJ.js";
|
|
32
32
|
import "./chunk-G3SUCT4W.js";
|
|
33
33
|
import "./chunk-4SN6J65J.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanupCliSessionForDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z27AH6A5.js";
|
|
4
4
|
import {
|
|
5
5
|
getPrimaryDialogAgentId,
|
|
6
6
|
replacePrimaryDialogAgentId
|
|
@@ -8,22 +8,22 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
formatLocalIso
|
|
10
10
|
} from "./chunk-PL5RKESU.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-GF4LYNNZ.js";
|
|
12
12
|
import {
|
|
13
13
|
patch,
|
|
14
14
|
selectById
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U5PSCTMR.js";
|
|
16
16
|
import "./chunk-3PVYUPXK.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-J22PFCQN.js";
|
|
18
|
+
import "./chunk-Q5IXZF3S.js";
|
|
19
|
+
import "./chunk-MPWQI36J.js";
|
|
20
|
+
import "./chunk-SJFL32RD.js";
|
|
21
21
|
import "./chunk-UEILX4EV.js";
|
|
22
22
|
import {
|
|
23
23
|
getActiveDialogKey
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-YVOUSIIA.js";
|
|
25
|
+
import "./chunk-SWJRX4M5.js";
|
|
26
|
+
import "./chunk-FNLT7NKG.js";
|
|
27
27
|
import "./chunk-MRACVEPZ.js";
|
|
28
28
|
import "./chunk-QQ56R7KS.js";
|
|
29
29
|
import "./chunk-7DPNBQSV.js";
|
|
@@ -40,7 +40,7 @@ import "./chunk-WWC7I6TA.js";
|
|
|
40
40
|
import "./chunk-U6VC4MU4.js";
|
|
41
41
|
import "./chunk-JRTNUU5Z.js";
|
|
42
42
|
import "./chunk-KUG52IAP.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-JKVOKKMQ.js";
|
|
44
44
|
import "./chunk-IV6VUVLJ.js";
|
|
45
45
|
import "./chunk-G3SUCT4W.js";
|
|
46
46
|
import "./chunk-4SN6J65J.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
omitKeys,
|
|
14
14
|
pickUserPreferences,
|
|
15
15
|
preferenceSessionFromSnapshot
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WEEB2JKA.js";
|
|
17
17
|
import {
|
|
18
18
|
createAsyncThunk
|
|
19
19
|
} from "./chunk-AMNZPQCY.js";
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
upsertAction,
|
|
26
26
|
upsertSSREntity,
|
|
27
27
|
write
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-U5PSCTMR.js";
|
|
29
29
|
import "./chunk-3PVYUPXK.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-J22PFCQN.js";
|
|
31
|
+
import "./chunk-Q5IXZF3S.js";
|
|
32
32
|
import {
|
|
33
33
|
getRuntimeServerContext
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-MPWQI36J.js";
|
|
35
|
+
import "./chunk-SJFL32RD.js";
|
|
36
36
|
import "./chunk-UEILX4EV.js";
|
|
37
37
|
import {
|
|
38
38
|
getRuntimeServerSnapshot,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
getSessionGenerationForState,
|
|
41
41
|
getSessionSnapshotForState,
|
|
42
42
|
selectIdentityUserId
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-SWJRX4M5.js";
|
|
44
44
|
import {
|
|
45
45
|
fetchFromServer
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-FNLT7NKG.js";
|
|
47
47
|
import "./chunk-MRACVEPZ.js";
|
|
48
48
|
import "./chunk-QQ56R7KS.js";
|
|
49
49
|
import {
|
|
@@ -69,7 +69,7 @@ import "./chunk-3EUW3WEO.js";
|
|
|
69
69
|
import "./chunk-WWC7I6TA.js";
|
|
70
70
|
import "./chunk-U6VC4MU4.js";
|
|
71
71
|
import "./chunk-KUG52IAP.js";
|
|
72
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-JKVOKKMQ.js";
|
|
73
73
|
import "./chunk-IV6VUVLJ.js";
|
|
74
74
|
import "./chunk-G3SUCT4W.js";
|
|
75
75
|
import "./chunk-4SN6J65J.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
authRoutes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KSV6T4AH.js";
|
|
4
4
|
import "./chunk-BYXBJQAS.js";
|
|
5
5
|
import {
|
|
6
6
|
createSpaceKey,
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
} from "./chunk-3PVYUPXK.js";
|
|
12
12
|
import {
|
|
13
13
|
readLiveDbRecordAfterTombstoneMerge
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZB2E724W.js";
|
|
15
15
|
import {
|
|
16
16
|
readDbRecord,
|
|
17
17
|
writeAgentRecord
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MMXHIHJZ.js";
|
|
19
19
|
import "./chunk-NTBTVKKB.js";
|
|
20
20
|
import "./chunk-AMWMV56B.js";
|
|
21
21
|
import "./chunk-UEILX4EV.js";
|
|
22
22
|
import "./chunk-GBWGPTA7.js";
|
|
23
23
|
import "./chunk-LHJB4BXJ.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-CNYPQYXT.js";
|
|
25
25
|
import "./chunk-ZNFJWEN4.js";
|
|
26
26
|
import "./chunk-BKP325XS.js";
|
|
27
27
|
import "./chunk-Q5FJJ6XI.js";
|
|
@@ -81,7 +81,7 @@ import "./chunk-KHCLMKZZ.js";
|
|
|
81
81
|
import "./chunk-DLXL4NSL.js";
|
|
82
82
|
import "./chunk-OJKUU3LP.js";
|
|
83
83
|
import "./chunk-YZMNK53S.js";
|
|
84
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-UBOTXA3Z.js";
|
|
85
85
|
import "./chunk-BR3GT6MR.js";
|
|
86
86
|
import "./chunk-FOC4TORM.js";
|
|
87
87
|
import "./chunk-UB7NV7NN.js";
|
|
@@ -106,12 +106,12 @@ import {
|
|
|
106
106
|
resolveAuthToken,
|
|
107
107
|
resolveServerCandidates,
|
|
108
108
|
resolveServerUrl
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-LTCZOOAM.js";
|
|
110
110
|
import {
|
|
111
111
|
hasCliFlag
|
|
112
112
|
} from "./chunk-RF576RYE.js";
|
|
113
113
|
import "./chunk-72VWN4VK.js";
|
|
114
|
-
import "./chunk-
|
|
114
|
+
import "./chunk-JKVOKKMQ.js";
|
|
115
115
|
import "./chunk-IV6VUVLJ.js";
|
|
116
116
|
import "./chunk-G3SUCT4W.js";
|
|
117
117
|
import "./chunk-FI4DPLR7.js";
|
|
@@ -644,12 +644,236 @@ async function runSpaceUploadCommand(args, deps) {
|
|
|
644
644
|
}
|
|
645
645
|
return 0;
|
|
646
646
|
}
|
|
647
|
+
async function callSpaceCrudApi(args, deps, method, path, body) {
|
|
648
|
+
const token = resolveAuthToken(args, deps.env);
|
|
649
|
+
if (!token) {
|
|
650
|
+
writeOutput(deps, "[nolo] Auth token required. Run `nolo login` or set AUTH_TOKEN.\n");
|
|
651
|
+
return { ok: false, exitCode: 1 };
|
|
652
|
+
}
|
|
653
|
+
const serverUrl = resolveServerUrl(args, deps.env);
|
|
654
|
+
const fetchFn = deps.fetchImpl ?? fetch;
|
|
655
|
+
const res = await fetchFn(`${serverUrl}${path}`, {
|
|
656
|
+
method,
|
|
657
|
+
headers: {
|
|
658
|
+
"Content-Type": "application/json",
|
|
659
|
+
Authorization: `Bearer ${token}`
|
|
660
|
+
},
|
|
661
|
+
...body !== void 0 ? { body: JSON.stringify(body) } : {}
|
|
662
|
+
});
|
|
663
|
+
const payload = await res.json().catch(() => ({}));
|
|
664
|
+
if (!res.ok) {
|
|
665
|
+
writeOutput(deps, `[nolo] ${payload?.error || `Request failed (HTTP ${res.status})`}
|
|
666
|
+
`);
|
|
667
|
+
return { ok: false, exitCode: 1 };
|
|
668
|
+
}
|
|
669
|
+
return { ok: true, data: payload };
|
|
670
|
+
}
|
|
671
|
+
function collectPositionalArgs(args, valueFlags) {
|
|
672
|
+
const out = [];
|
|
673
|
+
for (let i = 0; i < args.length; i++) {
|
|
674
|
+
const cur = args[i];
|
|
675
|
+
if (valueFlags.has(cur)) {
|
|
676
|
+
i += 1;
|
|
677
|
+
continue;
|
|
678
|
+
}
|
|
679
|
+
if (cur.startsWith("--")) continue;
|
|
680
|
+
out.push(cur);
|
|
681
|
+
}
|
|
682
|
+
return out;
|
|
683
|
+
}
|
|
684
|
+
async function runSpaceUpdateCommand(args, deps) {
|
|
685
|
+
const positionals = collectPositionalArgs(args, /* @__PURE__ */ new Set(["--name", "--description", "--visibility", "--server", "--token"]));
|
|
686
|
+
const spaceId = positionals[0];
|
|
687
|
+
if (!spaceId) {
|
|
688
|
+
writeOutput(deps, "Usage: nolo space update <spaceId> [--name <name>] [--description <desc>] [--visibility private|public] [--json]\n");
|
|
689
|
+
return 1;
|
|
690
|
+
}
|
|
691
|
+
const body = {};
|
|
692
|
+
const name = readOption(args, "--name");
|
|
693
|
+
const description = readOption(args, "--description");
|
|
694
|
+
const visibility = readOption(args, "--visibility");
|
|
695
|
+
if (name !== void 0) body.name = name;
|
|
696
|
+
if (description !== void 0) body.description = description;
|
|
697
|
+
if (visibility !== void 0) body.visibility = visibility;
|
|
698
|
+
const res = await callSpaceCrudApi(args, deps, "PATCH", `/api/v1/spaces/${encodeURIComponent(normalizeSpaceId(spaceId))}`, body);
|
|
699
|
+
if (!res.ok) return res.exitCode;
|
|
700
|
+
if (hasFlag(args, "--json")) {
|
|
701
|
+
writeOutput(deps, `${JSON.stringify(res.data, null, 2)}
|
|
702
|
+
`);
|
|
703
|
+
} else {
|
|
704
|
+
writeOutput(deps, `Updated space ${res.data.space?.spaceId} (${(res.data.updatedFields ?? []).join(", ")})
|
|
705
|
+
`);
|
|
706
|
+
}
|
|
707
|
+
return 0;
|
|
708
|
+
}
|
|
709
|
+
async function runSpaceDeleteCommand(args, deps) {
|
|
710
|
+
const positionals = collectPositionalArgs(args, /* @__PURE__ */ new Set(["--items", "--target", "--server", "--token"]));
|
|
711
|
+
const spaceId = positionals[0];
|
|
712
|
+
if (!spaceId) {
|
|
713
|
+
writeOutput(deps, "Usage: nolo space delete <spaceId> [--items unlink|move|delete] [--target <spaceId>] [--dry-run] [--json]\n");
|
|
714
|
+
return 1;
|
|
715
|
+
}
|
|
716
|
+
const itemDisposition = readOption(args, "--items") ?? "unlink";
|
|
717
|
+
const targetSpaceId = readOption(args, "--target");
|
|
718
|
+
const dryRun = hasFlag(args, "--dry-run");
|
|
719
|
+
const res = await callSpaceCrudApi(args, deps, "POST", `/api/v1/spaces/${encodeURIComponent(normalizeSpaceId(spaceId))}/delete`, {
|
|
720
|
+
itemDisposition,
|
|
721
|
+
...targetSpaceId ? { targetSpaceId } : {},
|
|
722
|
+
dryRun
|
|
723
|
+
});
|
|
724
|
+
if (!res.ok) return res.exitCode;
|
|
725
|
+
if (hasFlag(args, "--json")) {
|
|
726
|
+
writeOutput(deps, `${JSON.stringify(res.data, null, 2)}
|
|
727
|
+
`);
|
|
728
|
+
} else {
|
|
729
|
+
const prefix = dryRun ? "[dry-run] Would delete" : "Deleted";
|
|
730
|
+
writeOutput(deps, `${prefix} space ${res.data.spaceId} (${res.data.itemCount ?? 0} items, disposition: ${res.data.itemDisposition})
|
|
731
|
+
`);
|
|
732
|
+
}
|
|
733
|
+
return 0;
|
|
734
|
+
}
|
|
735
|
+
async function runSpaceMergeCommand(args, deps) {
|
|
736
|
+
const fromRaw = readOption(args, "--from");
|
|
737
|
+
const targetSpaceId = readOption(args, "--to");
|
|
738
|
+
if (!fromRaw || !targetSpaceId) {
|
|
739
|
+
writeOutput(deps, "Usage: nolo space merge --from <spaceId1,spaceId2> --to <targetSpaceId> [--dry-run] [--json]\n");
|
|
740
|
+
return 1;
|
|
741
|
+
}
|
|
742
|
+
const sourceSpaceIds = fromRaw.split(",").map((s) => s.trim()).filter(Boolean);
|
|
743
|
+
const dryRun = hasFlag(args, "--dry-run");
|
|
744
|
+
const res = await callSpaceCrudApi(args, deps, "POST", "/api/v1/spaces/merge", {
|
|
745
|
+
sourceSpaceIds,
|
|
746
|
+
targetSpaceId,
|
|
747
|
+
dryRun
|
|
748
|
+
});
|
|
749
|
+
if (!res.ok) return res.exitCode;
|
|
750
|
+
if (hasFlag(args, "--json")) {
|
|
751
|
+
writeOutput(deps, `${JSON.stringify(res.data, null, 2)}
|
|
752
|
+
`);
|
|
753
|
+
} else {
|
|
754
|
+
const prefix = dryRun ? "[dry-run] Would merge" : "Merged";
|
|
755
|
+
writeOutput(
|
|
756
|
+
deps,
|
|
757
|
+
`${prefix} ${sourceSpaceIds.join(", ")} -> ${res.data.targetSpaceId} (${res.data.itemsToMoveCount ?? res.data.itemsMovedCount ?? 0} items)
|
|
758
|
+
`
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
return 0;
|
|
762
|
+
}
|
|
763
|
+
async function runSpaceItemsListCommand(args, deps) {
|
|
764
|
+
const positionals = collectPositionalArgs(args, /* @__PURE__ */ new Set(["--type", "--category", "--limit", "--server", "--token"]));
|
|
765
|
+
const spaceId = positionals[0];
|
|
766
|
+
if (!spaceId) {
|
|
767
|
+
writeOutput(deps, "Usage: nolo space items <spaceId> [--type <type>] [--category <catId>] [--limit <n>] [--json]\n");
|
|
768
|
+
return 1;
|
|
769
|
+
}
|
|
770
|
+
const params = new URLSearchParams();
|
|
771
|
+
const type = readOption(args, "--type");
|
|
772
|
+
const category = readOption(args, "--category");
|
|
773
|
+
const limit = readOption(args, "--limit");
|
|
774
|
+
if (type) params.set("type", type);
|
|
775
|
+
if (category) params.set("categoryId", category);
|
|
776
|
+
if (limit) params.set("limit", limit);
|
|
777
|
+
const qs = params.toString() ? `?${params.toString()}` : "";
|
|
778
|
+
const res = await callSpaceCrudApi(args, deps, "GET", `/api/v1/spaces/${encodeURIComponent(normalizeSpaceId(spaceId))}/items${qs}`);
|
|
779
|
+
if (!res.ok) return res.exitCode;
|
|
780
|
+
if (hasFlag(args, "--json")) {
|
|
781
|
+
writeOutput(deps, `${JSON.stringify(res.data, null, 2)}
|
|
782
|
+
`);
|
|
783
|
+
} else {
|
|
784
|
+
const items = Array.isArray(res.data.items) ? res.data.items : [];
|
|
785
|
+
for (const item of items) {
|
|
786
|
+
writeOutput(deps, `${item.contentKey} ${item.type ?? "-"} ${item.title ?? ""}
|
|
787
|
+
`);
|
|
788
|
+
}
|
|
789
|
+
writeOutput(deps, `Total: ${res.data.total ?? items.length}
|
|
790
|
+
`);
|
|
791
|
+
}
|
|
792
|
+
return 0;
|
|
793
|
+
}
|
|
794
|
+
async function runSpaceItemsMoveCommand(args, deps) {
|
|
795
|
+
const positionals = collectPositionalArgs(args, /* @__PURE__ */ new Set(["--to", "--from", "--category", "--server", "--token"]));
|
|
796
|
+
const toRaw = readOption(args, "--to");
|
|
797
|
+
if (positionals.length === 0 || toRaw === void 0) {
|
|
798
|
+
writeOutput(deps, "Usage: nolo space move <contentKey...> --to <targetSpaceId|none> [--from <sourceSpaceId>] [--category <catId>] [--json]\n");
|
|
799
|
+
return 1;
|
|
800
|
+
}
|
|
801
|
+
const sourceSpaceId = readOption(args, "--from");
|
|
802
|
+
const categoryId = readOption(args, "--category");
|
|
803
|
+
const targetSpaceId = toRaw === "none" || toRaw === "null" ? null : toRaw;
|
|
804
|
+
const res = await callSpaceCrudApi(args, deps, "POST", "/api/v1/spaces/items/move", {
|
|
805
|
+
contentKeys: positionals,
|
|
806
|
+
...sourceSpaceId ? { sourceSpaceId } : {},
|
|
807
|
+
targetSpaceId,
|
|
808
|
+
...categoryId !== void 0 ? { categoryId } : {}
|
|
809
|
+
});
|
|
810
|
+
if (!res.ok) return res.exitCode;
|
|
811
|
+
if (hasFlag(args, "--json")) {
|
|
812
|
+
writeOutput(deps, `${JSON.stringify(res.data, null, 2)}
|
|
813
|
+
`);
|
|
814
|
+
} else {
|
|
815
|
+
writeOutput(deps, `Moved ${res.data.movedCount ?? positionals.length} item(s) -> ${targetSpaceId ?? "(unlinked)"}
|
|
816
|
+
`);
|
|
817
|
+
}
|
|
818
|
+
return 0;
|
|
819
|
+
}
|
|
820
|
+
async function runSpaceItemsUnlinkCommand(args, deps) {
|
|
821
|
+
const positionals = collectPositionalArgs(args, /* @__PURE__ */ new Set(["--server", "--token"]));
|
|
822
|
+
const [spaceId, ...contentKeys] = positionals;
|
|
823
|
+
if (!spaceId || contentKeys.length === 0) {
|
|
824
|
+
writeOutput(deps, "Usage: nolo space unlink <spaceId> <contentKey...> [--json]\n");
|
|
825
|
+
return 1;
|
|
826
|
+
}
|
|
827
|
+
const res = await callSpaceCrudApi(args, deps, "POST", `/api/v1/spaces/${encodeURIComponent(normalizeSpaceId(spaceId))}/items/unlink`, {
|
|
828
|
+
contentKeys
|
|
829
|
+
});
|
|
830
|
+
if (!res.ok) return res.exitCode;
|
|
831
|
+
if (hasFlag(args, "--json")) {
|
|
832
|
+
writeOutput(deps, `${JSON.stringify(res.data, null, 2)}
|
|
833
|
+
`);
|
|
834
|
+
} else {
|
|
835
|
+
writeOutput(deps, `Unlinked ${res.data.unlinkedCount ?? contentKeys.length} item(s) from space ${res.data.spaceId}
|
|
836
|
+
`);
|
|
837
|
+
}
|
|
838
|
+
return 0;
|
|
839
|
+
}
|
|
840
|
+
async function runSpaceItemsDeleteCommand(args, deps) {
|
|
841
|
+
const positionals = collectPositionalArgs(args, /* @__PURE__ */ new Set(["--space", "--server", "--token"]));
|
|
842
|
+
if (positionals.length === 0) {
|
|
843
|
+
writeOutput(deps, "Usage: nolo space delete-items <contentKey...> [--space <spaceId>] [--dry-run] [--json]\n");
|
|
844
|
+
return 1;
|
|
845
|
+
}
|
|
846
|
+
const spaceId = readOption(args, "--space");
|
|
847
|
+
const dryRun = hasFlag(args, "--dry-run");
|
|
848
|
+
const res = await callSpaceCrudApi(args, deps, "POST", "/api/v1/spaces/items/delete", {
|
|
849
|
+
contentKeys: positionals,
|
|
850
|
+
...spaceId ? { spaceId } : {},
|
|
851
|
+
dryRun
|
|
852
|
+
});
|
|
853
|
+
if (!res.ok) return res.exitCode;
|
|
854
|
+
if (hasFlag(args, "--json")) {
|
|
855
|
+
writeOutput(deps, `${JSON.stringify(res.data, null, 2)}
|
|
856
|
+
`);
|
|
857
|
+
} else {
|
|
858
|
+
const prefix = dryRun ? "[dry-run] Would delete" : "Deleted";
|
|
859
|
+
writeOutput(deps, `${prefix} ${res.data.deletableCount ?? res.data.deletedCount ?? 0} item(s)
|
|
860
|
+
`);
|
|
861
|
+
}
|
|
862
|
+
return 0;
|
|
863
|
+
}
|
|
647
864
|
export {
|
|
648
865
|
resolveFilePageUrl,
|
|
649
866
|
resolveUploadMimeType,
|
|
650
867
|
resolveUploadName,
|
|
651
868
|
runSpaceAcceptInviteCommand,
|
|
652
869
|
runSpaceCreateCommand,
|
|
870
|
+
runSpaceDeleteCommand,
|
|
653
871
|
runSpaceInviteCommand,
|
|
872
|
+
runSpaceItemsDeleteCommand,
|
|
873
|
+
runSpaceItemsListCommand,
|
|
874
|
+
runSpaceItemsMoveCommand,
|
|
875
|
+
runSpaceItemsUnlinkCommand,
|
|
876
|
+
runSpaceMergeCommand,
|
|
877
|
+
runSpaceUpdateCommand,
|
|
654
878
|
runSpaceUploadCommand
|
|
655
879
|
};
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
readOption,
|
|
11
11
|
resolveAuthToken,
|
|
12
12
|
resolveServerUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LTCZOOAM.js";
|
|
14
14
|
import {
|
|
15
15
|
hasCliFlag
|
|
16
16
|
} from "./chunk-RF576RYE.js";
|
|
17
17
|
import "./chunk-72VWN4VK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JKVOKKMQ.js";
|
|
19
19
|
import "./chunk-IV6VUVLJ.js";
|
|
20
20
|
import "./chunk-G3SUCT4W.js";
|
|
21
21
|
import "./chunk-FI4DPLR7.js";
|