nolo-cli 0.11.0 → 0.12.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-ZEDPX6OF.js → _executeModel-MWAY74HA.js} +51 -50
- package/{action-AA4IJ5K2.js → action-RAXNQQKC.js} +8 -9
- package/{addContentAction-QYVO4SYP.js → addContentAction-ZHI7TVV3.js} +7 -9
- package/{addDialogAgentAction-WVVKT5WQ.js → addDialogAgentAction-JWXPKXNC.js} +9 -10
- package/{agentDeleteCommand-RDPGYIWF.js → agentDeleteCommand-LXR5A5FV.js} +38 -28
- package/{agentEmailCommands-2HJJKS5F.js → agentEmailCommands-DXRAP7BB.js} +64 -62
- package/{agentListCommands-HFEVV3ZW.js → agentListCommands-ZFMS5ZLY.js} +127 -31
- package/{agentMachineCommands-25ZOENJU.js → agentMachineCommands-ZJLYVV52.js} +37 -26
- package/{agentPullCommand-GOL2S4W2.js → agentPullCommand-KRBRIFIY.js} +7 -7
- package/{agentRecordCommands-GTCOAM3L.js → agentRecordCommands-DFS626TB.js} +56 -54
- package/{agentRunCommand-YBS3JDLD.js → agentRunCommand-GWBIE2TS.js} +59 -59
- package/{agentRunControl-K4VKNEHF.js → agentRunControl-IX4F5W2C.js} +3 -3
- package/{agentRuntimeLocal-UQBMQI2M.js → agentRuntimeLocal-YNZSHMZC.js} +30 -15
- package/{agentSlice-6EKOBCCS.js → agentSlice-T2PXOEPQ.js} +8 -9
- package/{authCommand-O2OWACN4.js → authCommand-DMW336GT.js} +15 -15
- package/{authCommands-H7365TZP.js → authCommands-GH5T6RYV.js} +6 -6
- package/{chunk-7D3JY6C2.js → chunk-3HHTVM6G.js} +64 -5
- package/{chunk-AFON4QUU.js → chunk-3QKO4EHV.js} +3 -3
- package/{chunk-4SOKXIW4.js → chunk-43UD5ZP7.js} +8 -11
- package/{chunk-S3GS2PRL.js → chunk-4BTHUYMY.js} +597 -68
- package/{chunk-SV5MWASH.js → chunk-4EH7AR52.js} +12 -12
- package/{chunk-FXXSGWAJ.js → chunk-4GBNEA5B.js} +1 -1
- package/{chunk-PXZAAB4L.js → chunk-4LG74DRG.js} +4 -4
- package/{chunk-2FTTDCD4.js → chunk-4ON5AV72.js} +2 -1
- package/{chunk-IWX4UW2E.js → chunk-524BDL33.js} +89 -8
- package/{chunk-X2S7JTIG.js → chunk-5ITRDSHY.js} +1240 -136
- package/{chunk-ISNCLGUZ.js → chunk-5NBHQD4D.js} +4 -3
- package/{chunk-GBDSZATH.js → chunk-6LMFFG3K.js} +3 -3
- package/{chunk-OUI3ZHYD.js → chunk-6OVCRC72.js} +1 -1
- package/{chunk-CKOJQDKR.js → chunk-7JJCGV7N.js} +146 -3
- package/{chunk-MQI77IRB.js → chunk-7MYHLZ3F.js} +2 -2
- package/{chunk-5MOUAAMK.js → chunk-AM53Q2SD.js} +194 -2564
- package/chunk-BYXBJQAS.js +0 -0
- package/{chunk-LAX2JSTX.js → chunk-DE5BA4O6.js} +20 -2
- package/{chunk-BX6U3ETE.js → chunk-DRMGJFGQ.js} +293 -89
- package/{chunk-KJR5KAUQ.js → chunk-EBH7G34M.js} +20 -7
- package/{chunk-E4HNJSHC.js → chunk-G3B356GF.js} +16 -18
- package/{chunk-KQQVGRA3.js → chunk-GDBCUWQ3.js} +35 -29
- package/{chunk-Q3UKJVU4.js → chunk-GPZM7QH6.js} +10 -10
- package/chunk-IKXL2HZ3.js +70 -0
- package/{chunk-QNMFBBZK.js → chunk-IVAOVLM7.js} +1 -1
- package/{chunk-EVZKZF32.js → chunk-JUN3HFMN.js} +182 -75
- package/{chunk-NEM67FX7.js → chunk-JZDIW766.js} +1 -1
- package/{chunk-TACHTH5D.js → chunk-LHSJMY5V.js} +18 -18
- package/{chunk-XYZA7S7V.js → chunk-MEVCDATU.js} +6 -6
- package/{chunk-YOCHZD7D.js → chunk-NCGFB7NN.js} +5 -3
- package/{chunk-O26GI2JP.js → chunk-NITP2JDG.js} +39 -8
- package/{chunk-YPRZSPF3.js → chunk-OCDEWRE2.js} +1 -1
- package/{chunk-PNEW2Z3T.js → chunk-OHEKYYJF.js} +7 -7
- package/chunk-OOIN7HSO.js +146 -0
- package/{chunk-DWGAEFJL.js → chunk-OPKKB25T.js} +1 -1
- package/{chunk-AEZAORLG.js → chunk-QCA3EPYK.js} +5 -5
- package/{chunk-C4FTUXVF.js → chunk-QLUFR47U.js} +11 -1
- package/{chunk-C2MDQQ4O.js → chunk-RNQ5BLR2.js} +1 -1
- package/{chunk-L53FGHA4.js → chunk-RSEUHW6T.js} +1 -1
- package/{chunk-2W2VYVI5.js → chunk-RZ735TLX.js} +527 -176
- package/chunk-S3UTETIC.js +4885 -0
- package/chunk-S73OEOHH.js +2286 -0
- package/{chunk-YTBMA7NO.js → chunk-TSKWE74T.js} +58 -8
- package/{chunk-5OIFWVX7.js → chunk-UG3WOFU6.js} +1 -1
- package/{chunk-4ZDM73SD.js → chunk-V2J635L5.js} +1 -1
- package/{chunk-IPYUUY4E.js → chunk-WPHL6ALY.js} +1 -1
- package/{chunk-3NSIQZZ6.js → chunk-WTYKCU4W.js} +9 -9
- package/{chunk-LP65VRCI.js → chunk-WWU275LU.js} +6 -6
- package/{chunk-XFOLQLDN.js → chunk-XHQWJUW4.js} +2 -2
- package/{chunk-D6OQHXVG.js → chunk-YDCZVUFP.js} +7 -7
- package/{chunk-PXQN7IBQ.js → chunk-YTQLJYLB.js} +2 -2
- package/{chunk-ZEYDOXHF.js → chunk-ZPFRLGIZ.js} +1467 -869
- package/{chunk-ZPRK73XY.js → chunk-ZR4VHQ5D.js} +14 -13
- package/cliEnvHelpers-VYC2OPTB.js +30 -0
- package/{createAgentAutomationAction-LTI5QU35.js → createAgentAutomationAction-G32GKDGV.js} +25 -26
- package/{createDialogAction-OJJ7L3L3.js → createDialogAction-TISANRZK.js} +26 -27
- package/{createPageAction-5MXWVRGY.js → createPageAction-O7KOYNV4.js} +26 -27
- package/{dbSlice-RQFQQVHT.js → dbSlice-WDP2ZZHK.js} +6 -7
- package/{deleteFile-7XP5BGC7.js → deleteFile-M7UNIUOO.js} +4 -4
- package/{dialogCommands-JTJ3RPPW.js → dialogCommands-6JPB3YQY.js} +33 -23
- package/{dialogSlice-OWROKURJ.js → dialogSlice-PRHHYSP5.js} +26 -27
- package/{docCreateCommands-WJBEW2V7.js → docCreateCommands-75E6TZNN.js} +33 -23
- package/{docDeleteCommands-BVEHJOY5.js → docDeleteCommands-EJHLN7LW.js} +34 -25
- package/{docReadCommands-NEWOZIJV.js → docReadCommands-RJYBC4FS.js} +33 -23
- package/{docStore-3DXRYBMD.js → docStore-H5VWKT5D.js} +25 -26
- package/{docUpdateCommands-C7WHT7UU.js → docUpdateCommands-MG4CNISV.js} +33 -23
- package/fetchMessages-KTNM7QAR.js +1 -1
- package/{getPricing-3E6UNPKL.js → getPricing-6TOZXPAU.js} +7 -3
- package/{handleSendMessageAction-B5PRR7BE.js → handleSendMessageAction-QTUGICSZ.js} +29 -30
- package/index.js +77 -76
- package/{localDialogRead-YSKFFRTT.js → localDialogRead-2VRI24F4.js} +1 -1
- package/{machineCommands-IIIREAEK.js → machineCommands-MAV7M3TK.js} +63 -61
- package/{machineWsRunDispatch-3SIU6ILW.js → machineWsRunDispatch-ZOEGTKHC.js} +55 -53
- package/{memoryCommands-O4MIPIWQ.js → memoryCommands-AFMES3LN.js} +5 -5
- package/{models-4OPOOLFS.js → models-LSCRJJ6P.js} +2 -2
- package/package.json +1 -1
- package/{read-QJNKRROM.js → read-2MIMRBZ2.js} +4 -4
- package/{readDocTool-H6X6KO6X.js → readDocTool-QHVGQHUJ.js} +1 -1
- package/{readlineWorkspace-HGP3I3OC.js → readlineWorkspace-SWQKC7ZS.js} +1113 -678
- package/{removeDialogAgentAction-TCT35SOF.js → removeDialogAgentAction-GTX5AN54.js} +13 -13
- package/{runAgentClientLoop-EFM4PTVI.js → runAgentClientLoop-P25HACXX.js} +47 -47
- package/{runtimeDoctorCommands-ID43Z7VX.js → runtimeDoctorCommands-QNF3J3UV.js} +6 -6
- package/{setDialogExtraReferencesAction-CGYLZMFH.js → setDialogExtraReferencesAction-WFQ63KYO.js} +9 -10
- package/{setPrimaryDialogAgentAction-F6BFQDJU.js → setPrimaryDialogAgentAction-P57FXTSU.js} +13 -13
- package/{settingSlice-2I5HMG47.js → settingSlice-CK5YZGNI.js} +7 -8
- package/{skillDiscovery-UGSQGX2U.js → skillDiscovery-ZYHSX7VD.js} +3 -3
- package/{spaceCommands-MT7BWCIL.js → spaceCommands-6O5EFEM5.js} +37 -29
- package/{spaceSlice-BS5TSW3W.js → spaceSlice-4EXTYXS4.js} +28 -27
- package/{streamAgentChatTurn-I3VBFNR3.js → streamAgentChatTurn-Q3FJAHG2.js} +222 -128
- package/{toolApiClient-C7P7YSE4.js → toolApiClient-QI3YBNWB.js} +2 -2
- package/{tools-XSD2BOEN.js → tools-AHNQE4GP.js} +34 -34
- package/{tuiSummaryLlmCaller-32NRHTT2.js → tuiSummaryLlmCaller-TXLF4MEI.js} +8 -6
- package/{updateCommands-VOSPKXFF.js → updateCommands-XZDOOYFH.js} +13 -5
- package/{updateDialogTitleAction-7FYNJOGP.js → updateDialogTitleAction-XZDVLKVX.js} +29 -29
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-AZPCASRE.js +0 -36
- package/chunk-BBYVOSU2.js +0 -792
- package/chunk-DCOA4QSN.js +0 -105
- package/chunk-UAD2WT54.js +0 -64
- package/{chunk-JK7VW2FN.js → chunk-5MIDPSSK.js} +3 -3
- package/{chunk-5CS33IBL.js → chunk-PDL2AV3E.js} +3 -3
- package/{chunk-5MMZUWSG.js → chunk-TOILAPLH.js} +5 -5
- package/{chunk-OOM6SJNR.js → chunk-TSUJOM6N.js} +6 -6
- package/{db-6QED3ZVO.js → db-HCJ5PRB5.js} +3 -3
- package/{offlineMarxistsAgentCommand-BCPJITJL.js → offlineMarxistsAgentCommand-5OOWZLJI.js} +3 -3
- package/{tableCommands-M3DJUETS.js → tableCommands-E4SQWDOX.js} +6 -6
- package/{understanding-ZOESBLF3.js → understanding-3CUQQ6SV.js} +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_NOLO_SERVER_URL
|
|
3
3
|
} from "./chunk-OLZBQWZU.js";
|
|
4
|
-
import {
|
|
5
|
-
DEFAULT_LOCAL_API_ORIGIN
|
|
6
|
-
} from "./chunk-4SN6J65J.js";
|
|
7
4
|
import {
|
|
8
5
|
NOLO_CLUSTER_SERVERS
|
|
9
6
|
} from "./chunk-LCBAMY2M.js";
|
|
7
|
+
import {
|
|
8
|
+
DEFAULT_LOCAL_API_ORIGIN
|
|
9
|
+
} from "./chunk-4SN6J65J.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeServerOrigin
|
|
12
12
|
} from "./chunk-CF7PE763.js";
|
|
@@ -134,6 +134,7 @@ function resolveCliEntrypointPath(fromModuleUrl = import.meta.url) {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
export {
|
|
137
|
+
resolveServerUrlFromEnv,
|
|
137
138
|
resolveServerUrl,
|
|
138
139
|
resolveServerCandidates,
|
|
139
140
|
resolveDeleteServerCandidates,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WTYKCU4W.js";
|
|
4
4
|
import {
|
|
5
5
|
patch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NITP2JDG.js";
|
|
7
7
|
import {
|
|
8
8
|
selectIdentityToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TSUJOM6N.js";
|
|
10
10
|
import {
|
|
11
11
|
getIsDesktopApp
|
|
12
12
|
} from "./chunk-OOSFSFMA.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-IDZTNRP2.js";
|
|
7
7
|
import {
|
|
8
8
|
isCompiledBinary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5NBHQD4D.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_NOLO_SERVER_URL
|
|
12
12
|
} from "./chunk-OLZBQWZU.js";
|
|
@@ -15,7 +15,8 @@ import {
|
|
|
15
15
|
} from "./chunk-CF7PE763.js";
|
|
16
16
|
|
|
17
17
|
// packages/cli/updateCommands.ts
|
|
18
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
18
|
+
import { existsSync, readFileSync, accessSync, constants } from "node:fs";
|
|
19
|
+
import { homedir } from "node:os";
|
|
19
20
|
import { dirname, join } from "node:path";
|
|
20
21
|
import { fileURLToPath } from "node:url";
|
|
21
22
|
function resolvePackageJsonPath() {
|
|
@@ -58,6 +59,39 @@ function renderProgressBar(percent, width = 30) {
|
|
|
58
59
|
function buildNpmSelfUpdateCommand(channel = "latest") {
|
|
59
60
|
return ["npm", "install", "-g", `nolo-cli@${channel}`, "--force", "--progress"];
|
|
60
61
|
}
|
|
62
|
+
function resolveStandaloneBundlePlatform(platform = process.platform, arch = process.arch) {
|
|
63
|
+
if (platform === "linux" && arch === "x64") {
|
|
64
|
+
return { tarballName: "nolo-linux-x64.tar.gz", extractSubdir: "nolo-linux-x64" };
|
|
65
|
+
}
|
|
66
|
+
if (platform === "darwin" && arch === "arm64") {
|
|
67
|
+
return { tarballName: "nolo-darwin-arm64.tar.gz", extractSubdir: "nolo-darwin-arm64" };
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
function resolveStandaloneBundleRepoBase(channel) {
|
|
72
|
+
return channel === "alpha" ? "https://us.nolo.chat" : "https://nolo.chat";
|
|
73
|
+
}
|
|
74
|
+
function buildStandaloneManualUpdateHint(channel) {
|
|
75
|
+
const repoBase = resolveStandaloneBundleRepoBase(channel);
|
|
76
|
+
return `curl -fsSL ${repoBase}/install-nolo.sh | sh`;
|
|
77
|
+
}
|
|
78
|
+
function resolveStandaloneInstallDir() {
|
|
79
|
+
const candidates = [
|
|
80
|
+
"/usr/local/bin",
|
|
81
|
+
join(homedir(), ".local/bin"),
|
|
82
|
+
join(homedir(), ".nolo/bin")
|
|
83
|
+
];
|
|
84
|
+
for (const dir of candidates) {
|
|
85
|
+
if (!existsSync(dir)) continue;
|
|
86
|
+
try {
|
|
87
|
+
accessSync(dir, constants.W_OK);
|
|
88
|
+
return dir;
|
|
89
|
+
} catch {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return join(homedir(), ".nolo/bin");
|
|
94
|
+
}
|
|
61
95
|
function readPackageInfo() {
|
|
62
96
|
if (PACKAGE_JSON_PATH) {
|
|
63
97
|
try {
|
|
@@ -111,7 +145,7 @@ function buildCliDoctorText(info) {
|
|
|
111
145
|
"If direct `nolo` differs from repo-local `bun ./packages/cli/index.ts`,",
|
|
112
146
|
"the global install is older than this checkout.",
|
|
113
147
|
"",
|
|
114
|
-
`Manual update: ${buildNpmSelfUpdateCommand(info.updateChannel).join(" ")}`
|
|
148
|
+
`Manual update: ${info.installKind === "standalone-bundle" ? buildStandaloneManualUpdateHint(info.updateChannel) : buildNpmSelfUpdateCommand(info.updateChannel).join(" ")}`
|
|
115
149
|
].join("\n");
|
|
116
150
|
}
|
|
117
151
|
function isRunSelfUpdateOptions(value) {
|
|
@@ -134,8 +168,113 @@ function normalizeSpawnChunk(chunk) {
|
|
|
134
168
|
}
|
|
135
169
|
return new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
136
170
|
}
|
|
171
|
+
async function runShellScript(script, {
|
|
172
|
+
output,
|
|
173
|
+
spawn,
|
|
174
|
+
env,
|
|
175
|
+
cwd,
|
|
176
|
+
useCustomSink
|
|
177
|
+
}) {
|
|
178
|
+
const proc = spawn({
|
|
179
|
+
cmd: ["sh", "-c", script],
|
|
180
|
+
cwd,
|
|
181
|
+
stdin: "inherit",
|
|
182
|
+
stdout: useCustomSink ? "pipe" : "inherit",
|
|
183
|
+
stderr: useCustomSink ? "pipe" : "inherit",
|
|
184
|
+
env
|
|
185
|
+
});
|
|
186
|
+
if (!useCustomSink) {
|
|
187
|
+
return proc.exited;
|
|
188
|
+
}
|
|
189
|
+
const [exitCode] = await Promise.all([
|
|
190
|
+
proc.exited,
|
|
191
|
+
forwardSpawnOutput(proc.stdout, output),
|
|
192
|
+
forwardSpawnOutput(proc.stderr, output)
|
|
193
|
+
]);
|
|
194
|
+
return exitCode;
|
|
195
|
+
}
|
|
196
|
+
async function runStandaloneBundleUpdate(options) {
|
|
197
|
+
const output = options.output ?? process.stdout;
|
|
198
|
+
const spawn = options.spawn ?? resolveDefaultSpawn();
|
|
199
|
+
const env = options.env ?? process.env;
|
|
200
|
+
const serverUrl = resolveSelfUpdateServerUrl(env, options.serverUrl);
|
|
201
|
+
const channel = getCliInstallChannel(serverUrl);
|
|
202
|
+
const platform = resolveStandaloneBundlePlatform();
|
|
203
|
+
if (!platform) {
|
|
204
|
+
output.write(
|
|
205
|
+
`\u2717 Standalone-bundle self-update is not supported on this platform
|
|
206
|
+
(platform=${process.platform}, arch=${process.arch}).
|
|
207
|
+
Only linux-x64 and darwin-arm64 bundles are published.
|
|
208
|
+
Falling back is not possible from a compiled binary; reinstall via:
|
|
209
|
+
${buildStandaloneManualUpdateHint(channel)}
|
|
210
|
+
`
|
|
211
|
+
);
|
|
212
|
+
return 1;
|
|
213
|
+
}
|
|
214
|
+
const { tarballName, extractSubdir } = platform;
|
|
215
|
+
const repoBase = resolveStandaloneBundleRepoBase(channel);
|
|
216
|
+
const tarballUrl = `${repoBase}/public/downloads/${tarballName}`;
|
|
217
|
+
const fallbackUrl = `https://nolo.chat/public/downloads/${tarballName}`;
|
|
218
|
+
const extractDir = join(homedir(), ".nolo", extractSubdir);
|
|
219
|
+
const installDir = resolveStandaloneInstallDir();
|
|
220
|
+
const symlinkPath = join(installDir, "nolo");
|
|
221
|
+
const script = `set -euo pipefail
|
|
222
|
+
TEMP_DIR=$(mktemp -d)
|
|
223
|
+
trap 'rm -rf "$TEMP_DIR"' EXIT
|
|
224
|
+
|
|
225
|
+
echo "Downloading nolo from ${tarballUrl}..."
|
|
226
|
+
if ! curl -fL --progress-bar "${tarballUrl}" -o "$TEMP_DIR/${tarballName}"; then
|
|
227
|
+
${tarballUrl !== fallbackUrl ? `echo "Primary source unavailable, trying ${fallbackUrl}..."
|
|
228
|
+
if ! curl -fL --progress-bar "${fallbackUrl}" -o "$TEMP_DIR/${tarballName}"; then
|
|
229
|
+
echo "Error: download failed from ${fallbackUrl}" >&2
|
|
230
|
+
exit 1
|
|
231
|
+
fi` : `echo "Error: download failed from ${tarballUrl}" >&2
|
|
232
|
+
exit 1`}
|
|
233
|
+
fi
|
|
234
|
+
|
|
235
|
+
mkdir -p "${extractDir}"
|
|
236
|
+
tar -xzf "$TEMP_DIR/${tarballName}" -C "${extractDir}"
|
|
237
|
+
chmod +x "${extractDir}/nolo"
|
|
238
|
+
|
|
239
|
+
mkdir -p "${installDir}"
|
|
240
|
+
if [ -e "${symlinkPath}" ] || [ -L "${symlinkPath}" ]; then
|
|
241
|
+
rm -f "${symlinkPath}"
|
|
242
|
+
fi
|
|
243
|
+
ln -s "${extractDir}/nolo" "${symlinkPath}"
|
|
244
|
+
trap - EXIT
|
|
245
|
+
|
|
246
|
+
echo "nolo updated to ${installDir}/nolo"
|
|
247
|
+
`;
|
|
248
|
+
output.write(`
|
|
249
|
+
Nolo Agent CLI Installer & Updater
|
|
250
|
+
`);
|
|
251
|
+
output.write(`-----------------------------------------
|
|
252
|
+
`);
|
|
253
|
+
output.write(`\u2713 Target channel: ${channel} (standalone bundle)
|
|
254
|
+
`);
|
|
255
|
+
output.write(`\u25B8 Downloading and installing bundle...
|
|
256
|
+
`);
|
|
257
|
+
const useCustomSink = options.output !== void 0;
|
|
258
|
+
const exitCode = await runShellScript(script, {
|
|
259
|
+
output,
|
|
260
|
+
spawn,
|
|
261
|
+
env,
|
|
262
|
+
useCustomSink
|
|
263
|
+
});
|
|
264
|
+
if (exitCode === 0) {
|
|
265
|
+
output.write(` ${renderProgressBar(100)}
|
|
266
|
+
`);
|
|
267
|
+
output.write(`\u2713 Update completed successfully!
|
|
268
|
+
|
|
269
|
+
`);
|
|
270
|
+
}
|
|
271
|
+
return exitCode;
|
|
272
|
+
}
|
|
137
273
|
async function runSelfUpdate(outputOrOptions) {
|
|
138
274
|
const options = outputOrOptions === void 0 ? {} : isRunSelfUpdateOptions(outputOrOptions) ? outputOrOptions : { output: outputOrOptions };
|
|
275
|
+
if (isCompiledBinary()) {
|
|
276
|
+
return runStandaloneBundleUpdate(options);
|
|
277
|
+
}
|
|
139
278
|
const output = options.output ?? process.stdout;
|
|
140
279
|
const spawn = options.spawn ?? resolveDefaultSpawn();
|
|
141
280
|
const env = options.env ?? process.env;
|
|
@@ -189,10 +328,14 @@ export {
|
|
|
189
328
|
getCliInstallChannel,
|
|
190
329
|
renderProgressBar,
|
|
191
330
|
buildNpmSelfUpdateCommand,
|
|
331
|
+
resolveStandaloneBundlePlatform,
|
|
332
|
+
resolveStandaloneBundleRepoBase,
|
|
333
|
+
buildStandaloneManualUpdateHint,
|
|
192
334
|
readPackageInfo,
|
|
193
335
|
buildCliVersionText,
|
|
194
336
|
buildSelfUpdateCommand,
|
|
195
337
|
resolveSelfUpdateServerUrl,
|
|
196
338
|
buildCliDoctorText,
|
|
339
|
+
runStandaloneBundleUpdate,
|
|
197
340
|
runSelfUpdate
|
|
198
341
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer,
|
|
3
3
|
selectRemoteServers
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WTYKCU4W.js";
|
|
5
5
|
import {
|
|
6
6
|
createUserKey,
|
|
7
7
|
extractAgentInfo,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
noloWriteRequest,
|
|
17
17
|
selectIdentityUser,
|
|
18
18
|
selectIdentityUserId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TSUJOM6N.js";
|
|
20
20
|
import {
|
|
21
21
|
normalizeTimeFields
|
|
22
22
|
} from "./chunk-OOSFSFMA.js";
|