nolo-cli 0.180.0-alpha.2 → 0.182.0-alpha.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/{_executeModel-ACI2KGWO.js → _executeModel-ZMEMTJMS.js} +24 -24
- package/{agentDeleteCommand-LVSLONDD.js → agentDeleteCommand-VXMMVCHV.js} +32 -31
- package/{agentEmailCommands-BKH3Q6I6.js → agentEmailCommands-G3UR3SVL.js} +31 -30
- package/{agentListCommands-JPKRBHMP.js → agentListCommands-V2F7XVZN.js} +15 -14
- package/{agentMachineCommands-HRORJN73.js → agentMachineCommands-FALEGGEG.js} +9 -9
- package/{agentRecordCommands-OSZF2EHL.js → agentRecordCommands-HN7WNNGT.js} +30 -29
- package/{agentRunCommand-FCGNSB4D.js → agentRunCommand-N3RD7WQ2.js} +31 -30
- package/{agentRuntimeLocal-SWG5ULIJ.js → agentRuntimeLocal-B2CGM4VH.js} +6 -6
- package/{agentSlice-FCDRLXVA.js → agentSlice-NG7VBT4O.js} +1 -1
- package/{appDeleteCommands-YH3BYQYK.js → appDeleteCommands-2GVSRT6R.js} +14 -13
- package/{appDeployCommands-F44TNQJG.js → appDeployCommands-UJVGSH4V.js} +14 -13
- package/{appDeployStatusCommands-BFTGFVQY.js → appDeployStatusCommands-4UJDG7P3.js} +14 -13
- package/{appGetCommands-SFLFIXPW.js → appGetCommands-D5HZK3DJ.js} +14 -13
- package/{appListCommands-RUO5SEAJ.js → appListCommands-FAHI4R2I.js} +14 -13
- package/{authCommand-UIF5UTYV.js → authCommand-AX23Q2Q5.js} +6 -5
- package/{authCommands-BKDT4ZYB.js → authCommands-PIUTADO5.js} +2 -2
- package/{builtinSkillRegistry-MRI4FNCR.js → builtinSkillRegistry-HJCSXMKS.js} +4 -4
- package/{chromeOpsCommands-IWKUA4C3.js → chromeOpsCommands-2KFQEE3H.js} +24 -46
- package/{chunk-ZEQ6L6MZ.js → chunk-3FTJG5NU.js} +1 -1
- package/{chunk-CGKN34IJ.js → chunk-3YMDHQAK.js} +39 -39
- package/{chunk-6MXCQLLB.js → chunk-53HMDUG6.js} +14 -583
- package/{chunk-QOKJFYJK.js → chunk-7HZ23BLI.js} +11 -11
- package/{chunk-KUGOIFXV.js → chunk-AWFDDOVW.js} +3 -3
- package/{chunk-SGATEZV5.js → chunk-BNEHIKIR.js} +24 -24
- package/{chunk-PT6335JZ.js → chunk-E54QZNU3.js} +2 -2
- package/{chunk-QUCQVMYZ.js → chunk-EHPJFHFL.js} +7 -7
- package/{chunk-TCCBECTT.js → chunk-EUOPEEMO.js} +5 -5
- package/{chunk-EAWOT7M6.js → chunk-F2P6YUHC.js} +1 -1
- package/{chunk-COXNBVP7.js → chunk-G5IZWDSM.js} +8 -8
- package/chunk-G5LNJZJH.js +584 -0
- package/{chunk-HTSXDJHA.js → chunk-GQEQYXWV.js} +12 -12
- package/{chunk-OXYSTN6B.js → chunk-GTQKUQGF.js} +1 -1
- package/{chunk-WQAOAJ5Q.js → chunk-HRTEMYBI.js} +2 -2
- package/{chunk-H63VHVFY.js → chunk-J2EVUNED.js} +4 -4
- package/{chunk-GCAOOTIS.js → chunk-JGH3VOCR.js} +3 -3
- package/{chunk-MMKP2XWK.js → chunk-JX5XVFVW.js} +1 -1
- package/{chunk-NJI5HZQA.js → chunk-KBVF7LOK.js} +3 -3
- package/chunk-LKZPX6YH.js +0 -0
- package/{chunk-4FZUUCXQ.js → chunk-MMSZKZWA.js} +1 -1
- package/{chunk-CTEEJJVR.js → chunk-MPIAKYZ7.js} +1 -1
- package/{chunk-XJBWPOIL.js → chunk-NHBJHDVW.js} +1 -1
- package/{chunk-SK2UMOZC.js → chunk-NRYTWXXV.js} +1 -1
- package/{chunk-6PHS6ADB.js → chunk-ONFC3RLP.js} +2 -2
- package/{chunk-2D3YKEAQ.js → chunk-P7JNYLDW.js} +1 -1
- package/{chunk-TDX2L4W2.js → chunk-PS3GU7YU.js} +1857 -1138
- package/{chunk-HS7JBDUJ.js → chunk-QHFRRM5U.js} +3 -3
- package/{chunk-DTA4JVXW.js → chunk-RHFEDL32.js} +3 -3
- package/{chunk-PD4KNHVU.js → chunk-SO3N2323.js} +3 -3
- package/{chunk-OBKPOFOB.js → chunk-T5RLIVBZ.js} +10 -10
- package/{chunk-POYXVOYU.js → chunk-TQU64H2A.js} +2 -2
- package/{chunk-5LZBJZLT.js → chunk-TXJZ7QXG.js} +2 -2
- package/{chunk-DVSXZC7F.js → chunk-UU3QSEA5.js} +19 -19
- package/{chunk-4KDYRX3O.js → chunk-XYRSQHF2.js} +2 -2
- package/{chunk-YAN7XTXO.js → chunk-Y2CQS353.js} +5 -5
- package/{chunk-GHKEUJ6I.js → chunk-ZVVAK3DH.js} +2 -2
- package/{commandRegistry-UQ4GKJ5B.js → commandRegistry-LFXI3KRG.js} +80 -65
- package/{contentThunks-GZUPF67H.js → contentThunks-AH7QDS6H.js} +6 -6
- package/{cooldownCommands-NS63RGBO.js → cooldownCommands-QFV3ERZX.js} +14 -28
- package/{createAgentAutomationAction-ZOFCBZRE.js → createAgentAutomationAction-FAOPVXNF.js} +6 -6
- package/{createDialogAction-G7QCYQT7.js → createDialogAction-DBTKPCXV.js} +9 -9
- package/{createPageAction-Z6JQZYS5.js → createPageAction-PZGKZFPS.js} +8 -8
- package/{dialogCommands-MITLWDBY.js → dialogCommands-GQPHQ2U6.js} +10 -10
- package/{dialogSlice-PKFXK5WM.js → dialogSlice-VHGZCHAQ.js} +4 -4
- package/{docCreateCommands-G3S3LZMZ.js → docCreateCommands-CQHPL5IB.js} +18 -45
- package/{docDeleteCommands-MLRCMLVB.js → docDeleteCommands-Z5UPI5PX.js} +25 -45
- package/{docReadCommands-6A6SBCOP.js → docReadCommands-2AEKFEFV.js} +19 -35
- package/{docStore-NAEY4CEK.js → docStore-XGWH3T7Q.js} +1 -1
- package/{docUpdateCommands-UZQC2NDO.js → docUpdateCommands-FZD4GSGV.js} +26 -80
- package/{handleSendMessageAction-HUQLERJP.js → handleSendMessageAction-XTQQEVD4.js} +14 -14
- package/index.js +17 -7
- package/{localRuntimeAdapter-4DJDFM7A.js → localRuntimeAdapter-LXMUSNJ5.js} +28 -27
- package/{machineCommands-R2IP5OVT.js → machineCommands-AXD7ISGC.js} +33 -29
- package/{machineWsRunDispatch-CIJDSHTA.js → machineWsRunDispatch-PGB3VJGM.js} +29 -28
- package/package.json +1 -1
- package/{readlineWorkspace-YCNAWRDL.js → readlineWorkspace-IO45OJPW.js} +43 -41
- package/{runAgentClientLoop-K7WRMT27.js → runAgentClientLoop-2APY5UZL.js} +22 -22
- package/{secretCommands-7S6REMJV.js → secretCommands-XEQLKDB4.js} +33 -47
- package/{spaceCommands-L537SH5I.js → spaceCommands-LM74S5WK.js} +9 -9
- package/{streamAgentChatTurn-HKUZ7OCA.js → streamAgentChatTurn-Z3KS7XZL.js} +26 -26
- package/{tools-NS37KPGT.js → tools-VWAK7F7J.js} +18 -18
- package/{updateCommands-BXGFH4VX.js → updateCommands-KDYX32JR.js} +3 -1
- package/{updateDialogTitleAction-UUZ5HDM2.js → updateDialogTitleAction-WBIPSXFL.js} +6 -6
- package/windowsSelfUpdate-IYQK4IDS.js +14 -0
- package/{agentPullCommand-UXXV5KKW.js → agentPullCommand-7LHBOEYH.js} +1 -1
- package/{chunk-RV4DPEAM.js → chunk-XLQ646HU.js} +3 -3
- package/{workloadLifecycle-MZ2V5L43.js → workloadLifecycle-2F5YKFGW.js} +7 -7
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
runDialogSearchCommand,
|
|
16
16
|
runDialogStatusCommand,
|
|
17
17
|
sortDialogs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ONFC3RLP.js";
|
|
19
19
|
import "./chunk-ID4G2MAR.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-F2P6YUHC.js";
|
|
21
21
|
import "./chunk-Y5GCAMGP.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-GTQKUQGF.js";
|
|
23
23
|
import "./chunk-VP3BINY7.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-MPIAKYZ7.js";
|
|
25
25
|
import "./chunk-NBTY7YJF.js";
|
|
26
26
|
import "./chunk-KFHREHUQ.js";
|
|
27
27
|
import "./chunk-OXME3PEE.js";
|
|
@@ -30,24 +30,24 @@ import "./chunk-OFFL4DCR.js";
|
|
|
30
30
|
import "./chunk-QQ56R7KS.js";
|
|
31
31
|
import "./chunk-OW765XBU.js";
|
|
32
32
|
import "./chunk-D2MDMY2M.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-G5IZWDSM.js";
|
|
34
34
|
import "./chunk-KMSMIOOL.js";
|
|
35
35
|
import "./chunk-ZNFJWEN4.js";
|
|
36
36
|
import "./chunk-YO776XHS.js";
|
|
37
37
|
import "./chunk-HNUWUO75.js";
|
|
38
|
+
import "./chunk-HIVDQPQR.js";
|
|
38
39
|
import "./chunk-CHOZJMJS.js";
|
|
39
40
|
import "./chunk-PWTNI4N7.js";
|
|
40
|
-
import "./chunk-HIVDQPQR.js";
|
|
41
41
|
import "./chunk-CR5WXQX7.js";
|
|
42
42
|
import "./chunk-2WZXXAQD.js";
|
|
43
43
|
import "./chunk-P2BGRAW7.js";
|
|
44
44
|
import "./chunk-G6OOUQWJ.js";
|
|
45
45
|
import "./chunk-56GBUMO5.js";
|
|
46
46
|
import "./chunk-WJZOQR2J.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-TQU64H2A.js";
|
|
48
48
|
import "./chunk-JDCX5RWD.js";
|
|
49
49
|
import "./chunk-E2BESSAW.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-3FTJG5NU.js";
|
|
51
51
|
import "./chunk-JLR5NWP2.js";
|
|
52
52
|
import "./chunk-XAFCJN32.js";
|
|
53
53
|
import "./chunk-2MBTWINN.js";
|
|
@@ -64,8 +64,8 @@ import "./chunk-7DPNBQSV.js";
|
|
|
64
64
|
import "./chunk-ZWQUWF6W.js";
|
|
65
65
|
import "./chunk-VEA7H5FG.js";
|
|
66
66
|
import "./chunk-4VJAC32I.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-NHBJHDVW.js";
|
|
68
|
+
import "./chunk-JX5XVFVW.js";
|
|
69
69
|
import "./chunk-LOEO7LRC.js";
|
|
70
70
|
import "./chunk-M2EJHDJP.js";
|
|
71
71
|
import "./chunk-5EMSBTQ6.js";
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
switchDialogAgent,
|
|
21
21
|
updateDialogTitle,
|
|
22
22
|
updateTokens
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-OFFL4DCR.js";
|
|
23
|
+
} from "./chunk-GQEQYXWV.js";
|
|
25
24
|
import "./chunk-523DITKR.js";
|
|
25
|
+
import "./chunk-OFFL4DCR.js";
|
|
26
|
+
import "./chunk-BYXBJQAS.js";
|
|
26
27
|
import "./chunk-QYPE3TS3.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QHFRRM5U.js";
|
|
28
29
|
import "./chunk-4JH2UMJR.js";
|
|
29
|
-
import "./chunk-BYXBJQAS.js";
|
|
30
30
|
import "./chunk-ESMZW5PE.js";
|
|
31
31
|
import {
|
|
32
32
|
getActiveDialogAgentId
|
|
@@ -17,36 +17,36 @@ import {
|
|
|
17
17
|
resolveDocKind,
|
|
18
18
|
resolveWriteTargets,
|
|
19
19
|
writePageRecord
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MMSZKZWA.js";
|
|
21
21
|
import {
|
|
22
22
|
findPotentialSecrets,
|
|
23
23
|
formatSecretFindings
|
|
24
24
|
} from "./chunk-6QDYSCPW.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-GTQKUQGF.js";
|
|
26
|
+
import "./chunk-MPIAKYZ7.js";
|
|
27
27
|
import "./chunk-NBTY7YJF.js";
|
|
28
28
|
import "./chunk-VF4K2QE6.js";
|
|
29
29
|
import "./chunk-UAD2WT54.js";
|
|
30
30
|
import "./chunk-AETZ7AD6.js";
|
|
31
31
|
import "./chunk-KHCLMKZZ.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-G5IZWDSM.js";
|
|
33
33
|
import "./chunk-KMSMIOOL.js";
|
|
34
34
|
import "./chunk-ZNFJWEN4.js";
|
|
35
35
|
import "./chunk-YO776XHS.js";
|
|
36
36
|
import "./chunk-HNUWUO75.js";
|
|
37
|
+
import "./chunk-HIVDQPQR.js";
|
|
37
38
|
import "./chunk-CHOZJMJS.js";
|
|
38
39
|
import "./chunk-PWTNI4N7.js";
|
|
39
|
-
import "./chunk-HIVDQPQR.js";
|
|
40
40
|
import "./chunk-CR5WXQX7.js";
|
|
41
41
|
import "./chunk-2WZXXAQD.js";
|
|
42
42
|
import "./chunk-P2BGRAW7.js";
|
|
43
43
|
import "./chunk-G6OOUQWJ.js";
|
|
44
44
|
import "./chunk-56GBUMO5.js";
|
|
45
45
|
import "./chunk-WJZOQR2J.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-TQU64H2A.js";
|
|
47
47
|
import "./chunk-JDCX5RWD.js";
|
|
48
48
|
import "./chunk-E2BESSAW.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-3FTJG5NU.js";
|
|
50
50
|
import "./chunk-JLR5NWP2.js";
|
|
51
51
|
import "./chunk-XAFCJN32.js";
|
|
52
52
|
import "./chunk-2MBTWINN.js";
|
|
@@ -63,8 +63,8 @@ import "./chunk-7DPNBQSV.js";
|
|
|
63
63
|
import "./chunk-ZWQUWF6W.js";
|
|
64
64
|
import "./chunk-VEA7H5FG.js";
|
|
65
65
|
import "./chunk-4VJAC32I.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-NHBJHDVW.js";
|
|
67
|
+
import "./chunk-JX5XVFVW.js";
|
|
68
68
|
import "./chunk-LOEO7LRC.js";
|
|
69
69
|
import "./chunk-M2EJHDJP.js";
|
|
70
70
|
import "./chunk-5EMSBTQ6.js";
|
|
@@ -77,6 +77,9 @@ import {
|
|
|
77
77
|
import "./chunk-OLZBQWZU.js";
|
|
78
78
|
import "./chunk-LCBAMY2M.js";
|
|
79
79
|
import "./chunk-Y6ROFCZO.js";
|
|
80
|
+
import {
|
|
81
|
+
t
|
|
82
|
+
} from "./chunk-PS3GU7YU.js";
|
|
80
83
|
import "./chunk-HLAL63BZ.js";
|
|
81
84
|
import "./chunk-JOUFPRE4.js";
|
|
82
85
|
import "./chunk-WWC7I6TA.js";
|
|
@@ -96,38 +99,10 @@ import "./chunk-4VNS5WPM.js";
|
|
|
96
99
|
|
|
97
100
|
// packages/cli/docCreateCommands.ts
|
|
98
101
|
function printDocCreateUsage(output) {
|
|
99
|
-
output.write(
|
|
100
|
-
nolo doc create --title <title> [--body ... | --body-file path] [--id ...] [--space ...]
|
|
101
|
-
|
|
102
|
-
Options:
|
|
103
|
-
--description <text> Optional page description stored in meta.
|
|
104
|
-
--sync local,main,us Choose write targets. Values may also be full URLs.
|
|
105
|
-
--local-only Write only to the local server target.
|
|
106
|
-
--no-local Exclude local targets when --sync includes them.
|
|
107
|
-
--dry-run Build and validate without writing.
|
|
108
|
-
--json Print machine-readable JSON.
|
|
109
|
-
--allow-secrets Allow bodies that look like credentials.
|
|
110
|
-
--server <url> Default write target when --sync is omitted.
|
|
111
|
-
--token <jwt> Auth token. Required for writes.
|
|
112
|
-
`);
|
|
102
|
+
output.write(t("docCmd.createUsage"));
|
|
113
103
|
}
|
|
114
104
|
function printSkillDocCreateUsage(output) {
|
|
115
|
-
output.write(
|
|
116
|
-
nolo skill-doc create --title <title> --description <text> [--body ... | --body-file path]
|
|
117
|
-
nolo skill create-doc --title <title> --description <text> [--body ... | --body-file path]
|
|
118
|
-
|
|
119
|
-
Options:
|
|
120
|
-
--tools '["readDoc"]' Tool names this skill expects.
|
|
121
|
-
--required-skills '["skill-a"]' Required skill references.
|
|
122
|
-
--recommended-skills '["skill-b"]' Recommended skill references.
|
|
123
|
-
--trigger-mode explicit|required|recommended
|
|
124
|
-
--prompt-patch <text>
|
|
125
|
-
--page | --kind page Create a normal page instead of a skill-backed page.
|
|
126
|
-
--sync local,main,us Choose write targets. Values may also be full URLs.
|
|
127
|
-
--dry-run Build and validate without writing.
|
|
128
|
-
--json Print machine-readable JSON.
|
|
129
|
-
--token <jwt> Auth token. Required for writes.
|
|
130
|
-
`);
|
|
105
|
+
output.write(t("docCmd.skillCreateUsage"));
|
|
131
106
|
}
|
|
132
107
|
async function runCreateCommand(args, deps, options) {
|
|
133
108
|
if (hasHelpArg(args)) {
|
|
@@ -150,7 +125,7 @@ async function runCreateCommand(args, deps, options) {
|
|
|
150
125
|
if (secretFindings.length && !allowSecrets) {
|
|
151
126
|
throw new Error(
|
|
152
127
|
[
|
|
153
|
-
"
|
|
128
|
+
t("docCmd.secretBodyWarning"),
|
|
154
129
|
formatSecretFindings(secretFindings)
|
|
155
130
|
].join("\n")
|
|
156
131
|
);
|
|
@@ -158,7 +133,7 @@ async function runCreateCommand(args, deps, options) {
|
|
|
158
133
|
const { authToken, userId } = requireTokenUser(args, deps.env, shouldDryRun);
|
|
159
134
|
const targets = resolveWriteTargets(args, deps.env);
|
|
160
135
|
if (!targets.length) {
|
|
161
|
-
throw new Error("
|
|
136
|
+
throw new Error(t("docCmd.noWriteTargetsResolved"));
|
|
162
137
|
}
|
|
163
138
|
const explicitId = readOption(args, "--id");
|
|
164
139
|
const docId = explicitId ?? (docKind === "skill" ? buildSkillDocId(title) : createPageId());
|
|
@@ -222,11 +197,9 @@ async function runCreateCommand(args, deps, options) {
|
|
|
222
197
|
process.stdout.write(`${JSON.stringify(summary, null, 2)}
|
|
223
198
|
`);
|
|
224
199
|
} else if (shouldDryRun) {
|
|
225
|
-
process.stdout.write(
|
|
226
|
-
`);
|
|
200
|
+
process.stdout.write(t("docCmd.dryRunOk", dbKey));
|
|
227
201
|
} else {
|
|
228
|
-
process.stdout.write(
|
|
229
|
-
`);
|
|
202
|
+
process.stdout.write(t("docCmd.createdDoc", docKind, dbKey));
|
|
230
203
|
}
|
|
231
204
|
return 0;
|
|
232
205
|
}
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
requireTokenUser,
|
|
11
11
|
resolveDocKind,
|
|
12
12
|
resolveWriteTargets
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MMSZKZWA.js";
|
|
14
14
|
import {
|
|
15
15
|
deleteDbRecordOnServers
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-F2P6YUHC.js";
|
|
17
|
+
import "./chunk-GTQKUQGF.js";
|
|
18
|
+
import "./chunk-MPIAKYZ7.js";
|
|
19
19
|
import "./chunk-NBTY7YJF.js";
|
|
20
20
|
import "./chunk-OXME3PEE.js";
|
|
21
21
|
import "./chunk-VF4K2QE6.js";
|
|
@@ -23,24 +23,24 @@ import "./chunk-UAD2WT54.js";
|
|
|
23
23
|
import "./chunk-D2MDMY2M.js";
|
|
24
24
|
import "./chunk-AETZ7AD6.js";
|
|
25
25
|
import "./chunk-KHCLMKZZ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-G5IZWDSM.js";
|
|
27
27
|
import "./chunk-KMSMIOOL.js";
|
|
28
28
|
import "./chunk-ZNFJWEN4.js";
|
|
29
29
|
import "./chunk-YO776XHS.js";
|
|
30
30
|
import "./chunk-HNUWUO75.js";
|
|
31
|
+
import "./chunk-HIVDQPQR.js";
|
|
31
32
|
import "./chunk-CHOZJMJS.js";
|
|
32
33
|
import "./chunk-PWTNI4N7.js";
|
|
33
|
-
import "./chunk-HIVDQPQR.js";
|
|
34
34
|
import "./chunk-CR5WXQX7.js";
|
|
35
35
|
import "./chunk-2WZXXAQD.js";
|
|
36
36
|
import "./chunk-P2BGRAW7.js";
|
|
37
37
|
import "./chunk-G6OOUQWJ.js";
|
|
38
38
|
import "./chunk-56GBUMO5.js";
|
|
39
39
|
import "./chunk-WJZOQR2J.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-TQU64H2A.js";
|
|
41
41
|
import "./chunk-JDCX5RWD.js";
|
|
42
42
|
import "./chunk-E2BESSAW.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-3FTJG5NU.js";
|
|
44
44
|
import "./chunk-JLR5NWP2.js";
|
|
45
45
|
import "./chunk-XAFCJN32.js";
|
|
46
46
|
import "./chunk-2MBTWINN.js";
|
|
@@ -57,8 +57,8 @@ import "./chunk-7DPNBQSV.js";
|
|
|
57
57
|
import "./chunk-ZWQUWF6W.js";
|
|
58
58
|
import "./chunk-VEA7H5FG.js";
|
|
59
59
|
import "./chunk-4VJAC32I.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-NHBJHDVW.js";
|
|
61
|
+
import "./chunk-JX5XVFVW.js";
|
|
62
62
|
import "./chunk-LOEO7LRC.js";
|
|
63
63
|
import "./chunk-M2EJHDJP.js";
|
|
64
64
|
import "./chunk-5EMSBTQ6.js";
|
|
@@ -71,6 +71,9 @@ import {
|
|
|
71
71
|
import "./chunk-OLZBQWZU.js";
|
|
72
72
|
import "./chunk-LCBAMY2M.js";
|
|
73
73
|
import "./chunk-Y6ROFCZO.js";
|
|
74
|
+
import {
|
|
75
|
+
t
|
|
76
|
+
} from "./chunk-PS3GU7YU.js";
|
|
74
77
|
import "./chunk-HLAL63BZ.js";
|
|
75
78
|
import "./chunk-JOUFPRE4.js";
|
|
76
79
|
import "./chunk-WWC7I6TA.js";
|
|
@@ -90,35 +93,10 @@ import "./chunk-4VNS5WPM.js";
|
|
|
90
93
|
|
|
91
94
|
// packages/cli/docDeleteCommands.ts
|
|
92
95
|
function printDocDeleteUsage(output) {
|
|
93
|
-
output.write(
|
|
94
|
-
nolo doc delete (--id <pageId> | --key <pageKey>)
|
|
95
|
-
|
|
96
|
-
Options:
|
|
97
|
-
--id <pageId> Page id (without user prefix).
|
|
98
|
-
--key <pageKey> Full dbKey, e.g. page-<userId>-<pageId>.
|
|
99
|
-
--sync local,main,us Choose delete targets. Values may also be full URLs.
|
|
100
|
-
--local-only Delete only on the local server target.
|
|
101
|
-
--no-local Exclude local targets when --sync includes them.
|
|
102
|
-
--dry-run Show what would be deleted without deleting.
|
|
103
|
-
--json Print machine-readable JSON.
|
|
104
|
-
--server <url> Default target when --sync is omitted.
|
|
105
|
-
--token <jwt> Auth token. Required for deletes.
|
|
106
|
-
`);
|
|
96
|
+
output.write(t("docCmd.deleteUsage"));
|
|
107
97
|
}
|
|
108
98
|
function printSkillDocDeleteUsage(output) {
|
|
109
|
-
output.write(
|
|
110
|
-
nolo skill-doc delete (--id <skillId> | --key <pageKey>)
|
|
111
|
-
|
|
112
|
-
Options:
|
|
113
|
-
--id <skillId> Skill id (without user prefix).
|
|
114
|
-
--key <pageKey> Full dbKey, e.g. page-<userId>-<skillId>.
|
|
115
|
-
--sync local,main,us Choose delete targets. Values may also be full URLs.
|
|
116
|
-
--local-only Delete only on the local server target.
|
|
117
|
-
--no-local Exclude local targets when --sync includes them.
|
|
118
|
-
--dry-run Show what would be deleted without deleting.
|
|
119
|
-
--json Print machine-readable JSON.
|
|
120
|
-
--token <jwt> Auth token. Required for deletes.
|
|
121
|
-
`);
|
|
99
|
+
output.write(t("docCmd.skillDeleteUsage"));
|
|
122
100
|
}
|
|
123
101
|
async function runDeleteCommand(args, deps, options) {
|
|
124
102
|
if (hasHelpArg(args)) {
|
|
@@ -137,15 +115,15 @@ async function runDeleteCommand(args, deps, options) {
|
|
|
137
115
|
const { authToken, userId } = requireTokenUser(args, deps.env, shouldDryRun);
|
|
138
116
|
const targets = resolveWriteTargets(args, deps.env);
|
|
139
117
|
if (!targets.length) {
|
|
140
|
-
throw new Error("
|
|
118
|
+
throw new Error(t("docCmd.noDeleteTargetsResolved"));
|
|
141
119
|
}
|
|
142
120
|
const dbKey = explicitKey ?? (docKind === "skill" ? buildSkillPageKey(userId, explicitId) : buildPageKey(userId, explicitId));
|
|
143
121
|
const existing = await readPageRecord({ authToken, dbKey, serverUrl: targets[0] });
|
|
144
122
|
if (docKind === "page" && existing?.meta?.kind === "skill") {
|
|
145
|
-
throw new Error(
|
|
123
|
+
throw new Error(t("docCmd.targetIsSkillDocDelete", dbKey));
|
|
146
124
|
}
|
|
147
125
|
if (docKind === "skill" && existing?.meta?.kind !== "skill") {
|
|
148
|
-
throw new Error(
|
|
126
|
+
throw new Error(t("docCmd.targetNotSkillDocDelete", dbKey));
|
|
149
127
|
}
|
|
150
128
|
const spaceId = typeof existing?.spaceId === "string" ? existing.spaceId : null;
|
|
151
129
|
const summary = {
|
|
@@ -178,7 +156,11 @@ async function runDeleteCommand(args, deps, options) {
|
|
|
178
156
|
const failed = results.filter((result) => !result.ok);
|
|
179
157
|
if (failed.length) {
|
|
180
158
|
throw new Error(
|
|
181
|
-
|
|
159
|
+
t(
|
|
160
|
+
"docCmd.deleteFailedOnServers",
|
|
161
|
+
dbKey,
|
|
162
|
+
failed.map((result) => `${result.serverUrl}: ${result.error}`).join("; ")
|
|
163
|
+
)
|
|
182
164
|
);
|
|
183
165
|
}
|
|
184
166
|
summary.deletedTargets.push(...results.map((result) => result.serverUrl));
|
|
@@ -187,11 +169,9 @@ async function runDeleteCommand(args, deps, options) {
|
|
|
187
169
|
process.stdout.write(`${JSON.stringify(summary, null, 2)}
|
|
188
170
|
`);
|
|
189
171
|
} else if (shouldDryRun) {
|
|
190
|
-
process.stdout.write(
|
|
191
|
-
`);
|
|
172
|
+
process.stdout.write(t("docCmd.dryRunOk", dbKey));
|
|
192
173
|
} else {
|
|
193
|
-
process.stdout.write(
|
|
194
|
-
`);
|
|
174
|
+
process.stdout.write(t("docCmd.deletedDoc", docKind, dbKey));
|
|
195
175
|
}
|
|
196
176
|
return 0;
|
|
197
177
|
}
|
|
@@ -9,32 +9,32 @@ import {
|
|
|
9
9
|
requireTokenUser,
|
|
10
10
|
resolveDocKind,
|
|
11
11
|
resolveWriteTargets
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-MMSZKZWA.js";
|
|
13
|
+
import "./chunk-GTQKUQGF.js";
|
|
14
|
+
import "./chunk-MPIAKYZ7.js";
|
|
15
15
|
import "./chunk-NBTY7YJF.js";
|
|
16
16
|
import "./chunk-VF4K2QE6.js";
|
|
17
17
|
import "./chunk-UAD2WT54.js";
|
|
18
18
|
import "./chunk-AETZ7AD6.js";
|
|
19
19
|
import "./chunk-KHCLMKZZ.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-G5IZWDSM.js";
|
|
21
21
|
import "./chunk-KMSMIOOL.js";
|
|
22
22
|
import "./chunk-ZNFJWEN4.js";
|
|
23
23
|
import "./chunk-YO776XHS.js";
|
|
24
24
|
import "./chunk-HNUWUO75.js";
|
|
25
|
+
import "./chunk-HIVDQPQR.js";
|
|
25
26
|
import "./chunk-CHOZJMJS.js";
|
|
26
27
|
import "./chunk-PWTNI4N7.js";
|
|
27
|
-
import "./chunk-HIVDQPQR.js";
|
|
28
28
|
import "./chunk-CR5WXQX7.js";
|
|
29
29
|
import "./chunk-2WZXXAQD.js";
|
|
30
30
|
import "./chunk-P2BGRAW7.js";
|
|
31
31
|
import "./chunk-G6OOUQWJ.js";
|
|
32
32
|
import "./chunk-56GBUMO5.js";
|
|
33
33
|
import "./chunk-WJZOQR2J.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-TQU64H2A.js";
|
|
35
35
|
import "./chunk-JDCX5RWD.js";
|
|
36
36
|
import "./chunk-E2BESSAW.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-3FTJG5NU.js";
|
|
38
38
|
import "./chunk-JLR5NWP2.js";
|
|
39
39
|
import "./chunk-XAFCJN32.js";
|
|
40
40
|
import "./chunk-2MBTWINN.js";
|
|
@@ -51,8 +51,8 @@ import "./chunk-7DPNBQSV.js";
|
|
|
51
51
|
import "./chunk-ZWQUWF6W.js";
|
|
52
52
|
import "./chunk-VEA7H5FG.js";
|
|
53
53
|
import "./chunk-4VJAC32I.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-NHBJHDVW.js";
|
|
55
|
+
import "./chunk-JX5XVFVW.js";
|
|
56
56
|
import "./chunk-LOEO7LRC.js";
|
|
57
57
|
import "./chunk-M2EJHDJP.js";
|
|
58
58
|
import "./chunk-5EMSBTQ6.js";
|
|
@@ -65,6 +65,9 @@ import {
|
|
|
65
65
|
import "./chunk-OLZBQWZU.js";
|
|
66
66
|
import "./chunk-LCBAMY2M.js";
|
|
67
67
|
import "./chunk-Y6ROFCZO.js";
|
|
68
|
+
import {
|
|
69
|
+
t
|
|
70
|
+
} from "./chunk-PS3GU7YU.js";
|
|
68
71
|
import "./chunk-HLAL63BZ.js";
|
|
69
72
|
import "./chunk-JOUFPRE4.js";
|
|
70
73
|
import "./chunk-WWC7I6TA.js";
|
|
@@ -84,26 +87,10 @@ import "./chunk-4VNS5WPM.js";
|
|
|
84
87
|
|
|
85
88
|
// packages/cli/docReadCommands.ts
|
|
86
89
|
function printDocReadUsage(output) {
|
|
87
|
-
output.write(
|
|
88
|
-
nolo doc read (--id <pageId> | --key <pageKey>)
|
|
89
|
-
|
|
90
|
-
Options:
|
|
91
|
-
--id <pageId> Page id (without user prefix).
|
|
92
|
-
--key <pageKey> Full dbKey, e.g. page-<userId>-<pageId>.
|
|
93
|
-
--server <url> Server to read from.
|
|
94
|
-
--token <jwt> Auth token. Required for reads.
|
|
95
|
-
`);
|
|
90
|
+
output.write(t("docCmd.readUsage"));
|
|
96
91
|
}
|
|
97
92
|
function printSkillDocReadUsage(output) {
|
|
98
|
-
output.write(
|
|
99
|
-
nolo skill-doc read (--id <skillId> | --key <pageKey>)
|
|
100
|
-
|
|
101
|
-
Options:
|
|
102
|
-
--id <skillId> Skill id (without user prefix).
|
|
103
|
-
--key <pageKey> Full dbKey, e.g. page-<userId>-<skillId>.
|
|
104
|
-
--server <url> Server to read from.
|
|
105
|
-
--token <jwt> Auth token. Required for reads.
|
|
106
|
-
`);
|
|
93
|
+
output.write(t("docCmd.skillReadUsage"));
|
|
107
94
|
}
|
|
108
95
|
async function runReadCommand(args, deps, options) {
|
|
109
96
|
if (hasHelpArg(args)) {
|
|
@@ -121,7 +108,7 @@ async function runReadCommand(args, deps, options) {
|
|
|
121
108
|
const { authToken, userId } = requireTokenUser(args, deps.env, false);
|
|
122
109
|
const targets = resolveWriteTargets(args, deps.env);
|
|
123
110
|
if (!targets.length) {
|
|
124
|
-
throw new Error("
|
|
111
|
+
throw new Error(t("docCmd.noReadTargetsResolved"));
|
|
125
112
|
}
|
|
126
113
|
const dbKey = explicitKey ?? (docKind === "skill" ? buildSkillPageKey(userId, explicitId) : buildPageKey(userId, explicitId));
|
|
127
114
|
let record = null;
|
|
@@ -133,18 +120,15 @@ async function runReadCommand(args, deps, options) {
|
|
|
133
120
|
}
|
|
134
121
|
}
|
|
135
122
|
if (!record) {
|
|
136
|
-
throw new Error(
|
|
123
|
+
throw new Error(t("docCmd.docNotFound", dbKey));
|
|
137
124
|
}
|
|
138
125
|
if (shouldOutputJson) {
|
|
139
126
|
process.stdout.write(`${JSON.stringify({ dbKey, record }, null, 2)}
|
|
140
127
|
`);
|
|
141
128
|
} else {
|
|
142
|
-
process.stdout.write(
|
|
143
|
-
|
|
144
|
-
process.stdout.write(
|
|
145
|
-
`);
|
|
146
|
-
process.stdout.write(`spaceId: ${record.spaceId ?? "(none)"}
|
|
147
|
-
`);
|
|
129
|
+
process.stdout.write(t("docCmd.readDoc", docKind, dbKey));
|
|
130
|
+
process.stdout.write(t("docCmd.titleLine", String(record.title ?? t("docCmd.none"))));
|
|
131
|
+
process.stdout.write(t("docCmd.spaceIdLine", String(record.spaceId ?? t("docCmd.none"))));
|
|
148
132
|
}
|
|
149
133
|
return 0;
|
|
150
134
|
}
|