@orbit-build/cli 0.1.9 → 0.1.10
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/README.md +48 -111
- package/dist/index.js +68 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
# @orbit-build/cli
|
|
2
2
|
|
|
3
3
|
Orbit is a local-first AI coding agent for the terminal, browser, and editor. It
|
|
4
|
-
is optimized for DeepSeek V4, supports compatible
|
|
5
|
-
Ollama models, and keeps project chats,
|
|
6
|
-
|
|
4
|
+
is optimized for DeepSeek V4, supports OpenAI-compatible providers and local
|
|
5
|
+
Ollama models, and keeps project chats, model state, approvals, and context
|
|
6
|
+
synchronized between its TUI and authenticated local Web UI.
|
|
7
7
|
|
|
8
|
-
## Install
|
|
8
|
+
## Install and start
|
|
9
9
|
|
|
10
|
-
Requires Node.js 20 or newer.
|
|
10
|
+
Requires Node.js 20 or newer. If `node` or `npm` is missing, install a current
|
|
11
|
+
Node.js LTS release from [nodejs.org](https://nodejs.org/); npm is included with
|
|
12
|
+
the standard Windows, macOS, and Linux installers.
|
|
11
13
|
|
|
12
14
|
```bash
|
|
15
|
+
node --version
|
|
16
|
+
npm --version
|
|
13
17
|
npm install --global @orbit-build/cli
|
|
14
|
-
orbit --version
|
|
15
18
|
orbit login
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Run `orbit` from a project folder:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
19
|
cd path/to/project
|
|
22
20
|
orbit
|
|
23
21
|
```
|
|
@@ -25,124 +23,63 @@ orbit
|
|
|
25
23
|
The global command works in PowerShell, Command Prompt, and POSIX shells. Open a
|
|
26
24
|
new terminal if an existing shell has not refreshed npm's global binary path.
|
|
27
25
|
|
|
28
|
-
## Main workflows
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
orbit # interactive full-screen TUI
|
|
32
|
-
orbit "Fix the failing tests" # one-shot task
|
|
33
|
-
orbit exec "Review src" --jsonl
|
|
34
|
-
orbit doctor --deepseek
|
|
35
|
-
orbit config
|
|
36
|
-
orbit extension .orbit/extensions/example.yaml
|
|
37
|
-
orbit update --check
|
|
38
|
-
orbit lsp
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
`orbit extension <manifest> [--json]` validates the versioned, workspace-bound
|
|
42
|
-
extension contract without installing or executing third-party code. Automatic
|
|
43
|
-
extension installation and lifecycle loading are intentionally not implied by
|
|
44
|
-
this validation command.
|
|
45
|
-
|
|
46
|
-
Inspect or remove Orbit-owned runtime data with `orbit clean`. It never removes
|
|
47
|
-
project source, `ORBIT.md`, or `orbit.config.yaml`:
|
|
48
|
-
|
|
49
26
|
```bash
|
|
50
|
-
orbit
|
|
51
|
-
orbit
|
|
52
|
-
orbit
|
|
53
|
-
orbit
|
|
27
|
+
orbit "Fix the failing tests" # direct interactive task
|
|
28
|
+
orbit exec "Review src" --jsonl # automation-friendly JSONL
|
|
29
|
+
orbit doctor --probe --deepseek # configuration + live probe
|
|
30
|
+
orbit update --check # check without installing
|
|
54
31
|
```
|
|
55
32
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
`
|
|
33
|
+
Inside the TUI, use `/webui` for the synchronized browser workspace. One project
|
|
34
|
+
maps to one codebase folder and can contain multiple persisted chats. Type `/`
|
|
35
|
+
in either interface for the shared command catalog; use `/goal`, `/plan`,
|
|
36
|
+
`/model`, `/compact`, `/timeline`, `/rewind`, and `/rollback` for durable work.
|
|
60
37
|
|
|
61
|
-
|
|
38
|
+
## Providers and continuity
|
|
62
39
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
orbit update --check --json
|
|
68
|
-
orbit update --channel beta --check
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
The TUI performs one bounded background version check per process: the cat heart
|
|
72
|
-
blinks when a newer release exists and stays steady otherwise. This check never
|
|
73
|
-
installs anything or blocks input, and Orbit never silently replaces itself.
|
|
74
|
-
The interactive `/update` command invokes this same Orbit CLI updater; it no
|
|
75
|
-
longer runs a package-manager install inside the active project. From the Web
|
|
76
|
-
UI it remains check-only to avoid interrupting the local server; the TUI can
|
|
77
|
-
confirm and install an available release.
|
|
78
|
-
|
|
79
|
-
Stable uses npm's `latest` dist-tag and beta uses `next`. After installation,
|
|
80
|
-
Orbit verifies the globally installed version. A failed install or mismatched
|
|
81
|
-
version triggers a best-effort rollback to the previous exact version and an
|
|
82
|
-
actionable manual recovery command.
|
|
83
|
-
|
|
84
|
-
Enter `/webui` inside the TUI to open Orbit's authenticated local browser UI.
|
|
85
|
-
Projects map to codebase folders and contain independent persisted chats that
|
|
86
|
-
can be resumed, archived, or deleted.
|
|
87
|
-
|
|
88
|
-
Type `/` in the browser composer for keyboard-navigable built-in and custom
|
|
89
|
-
command suggestions. `Ctrl+K` opens the broader action palette.
|
|
40
|
+
`orbit login` adds, lists, and deletes saved provider profiles. Enter the exact
|
|
41
|
+
base URL required by an OpenAI-compatible provider, including `/v1` when
|
|
42
|
+
applicable; Orbit does not guess suffixes. Authenticated catalogs and the local
|
|
43
|
+
Ollama API populate the model selector with models that are actually available.
|
|
90
44
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
automatic compaction protects continuity when the
|
|
45
|
+
The official DeepSeek profile uses `https://api.deepseek.com` with
|
|
46
|
+
`deepseek-v4-flash` for fast work and `deepseek-v4-pro` for planning, coding,
|
|
47
|
+
and review. Model changes preserve the chat and recalculate context against the
|
|
48
|
+
new window; automatic compaction protects continuity when the window is smaller.
|
|
95
49
|
|
|
96
|
-
Orbit exposes validated file, search, symbol, shell, test, Git,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
connected MCP tools retain their server-declared JSON Schemas.
|
|
50
|
+
Orbit exposes validated file, search, symbol, shell, test, Git, web, fetch, and
|
|
51
|
+
plan tools. Arguments are checked before approval or execution, results are
|
|
52
|
+
bounded and redacted, and connected MCP tools retain their declared schemas.
|
|
100
53
|
|
|
101
|
-
##
|
|
102
|
-
|
|
103
|
-
`orbit login` creates and deletes saved provider profiles. For an
|
|
104
|
-
OpenAI-compatible provider, supply its exact base URL, including `/v1` when the
|
|
105
|
-
service requires it; Orbit does not guess URL suffixes. Authenticated provider
|
|
106
|
-
catalogs and the local Ollama API populate the model selector with models that
|
|
107
|
-
are actually available.
|
|
108
|
-
|
|
109
|
-
The default official provider is DeepSeek's OpenAI-compatible endpoint at
|
|
110
|
-
`https://api.deepseek.com`:
|
|
111
|
-
|
|
112
|
-
| Model | Default roles | Thinking | Context | Orbit output default |
|
|
113
|
-
| ------------------- | ------------------------- | -------- | --------: | -------------------: |
|
|
114
|
-
| `deepseek-v4-flash` | default, fast, summarizer | disabled | 1,000,000 | 8,192 |
|
|
115
|
-
| `deepseek-v4-pro` | planner, coder, reviewer | high | 1,000,000 | 16,384 |
|
|
116
|
-
|
|
117
|
-
Orbit keeps reusable prefixes stable and reports measured DeepSeek cache
|
|
118
|
-
hit/miss usage. It does not send synthetic cache primers or promise a fixed hit
|
|
119
|
-
rate.
|
|
54
|
+
## Update, cleanup, and uninstall
|
|
120
55
|
|
|
121
56
|
```bash
|
|
122
|
-
orbit
|
|
123
|
-
orbit
|
|
124
|
-
orbit
|
|
125
|
-
orbit
|
|
57
|
+
orbit update --check
|
|
58
|
+
orbit update # confirm interactively
|
|
59
|
+
orbit update --yes # explicit non-interactive install
|
|
60
|
+
orbit clean --project # preview project-owned runtime data
|
|
61
|
+
orbit clean --user # preview user-owned runtime data
|
|
62
|
+
npm uninstall --global @orbit-build/cli
|
|
126
63
|
```
|
|
127
64
|
|
|
128
|
-
|
|
65
|
+
Orbit never installs an update during startup. Cleanup never removes project
|
|
66
|
+
source, `ORBIT.md`, or `orbit.config.yaml`; deletion requires `DELETE`
|
|
67
|
+
interactively or `--yes` in automation.
|
|
129
68
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
completion, `2` for task or verification failure, `4` for provider startup
|
|
134
|
-
failure, and `130` for abort.
|
|
69
|
+
After an update is installed and verified, restart `orbit` and reopen `/webui`.
|
|
70
|
+
The active TUI and browser server intentionally retain their true running
|
|
71
|
+
version until that restart instead of pretending to hot-update.
|
|
135
72
|
|
|
136
|
-
## Documentation
|
|
73
|
+
## Documentation
|
|
137
74
|
|
|
138
|
-
- [
|
|
139
|
-
- [
|
|
75
|
+
- [Product overview](https://github.com/Hephaestus-DevKit/Orbit#readme)
|
|
76
|
+
- [Task-oriented user guide](https://github.com/Hephaestus-DevKit/Orbit/blob/main/docs/USER_GUIDE.md)
|
|
140
77
|
- [Security policy](https://github.com/Hephaestus-DevKit/Orbit/blob/main/SECURITY.md)
|
|
141
78
|
- [Changelog](https://github.com/Hephaestus-DevKit/Orbit/blob/main/CHANGELOG.md)
|
|
142
79
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
`
|
|
80
|
+
Use `orbit --help` or `orbit <command> --help` for the exact options installed
|
|
81
|
+
on your machine. Automation exits with `0` for completion, `2` for task or
|
|
82
|
+
verification failure, `4` for provider startup failure, and `130` for abort.
|
|
146
83
|
|
|
147
84
|
License terms have not yet been finalized; repository visibility alone does not
|
|
148
85
|
grant permission to use, modify, or redistribute the source.
|
package/dist/index.js
CHANGED
|
@@ -219985,7 +219985,7 @@ var CliPackageManifestSchema = z10.object({
|
|
|
219985
219985
|
"expected a semantic version"
|
|
219986
219986
|
)
|
|
219987
219987
|
});
|
|
219988
|
-
function
|
|
219988
|
+
function loadCliVersion() {
|
|
219989
219989
|
const candidates = [
|
|
219990
219990
|
new URL("../package.json", import.meta.url),
|
|
219991
219991
|
new URL("../../package.json", import.meta.url)
|
|
@@ -220006,6 +220006,10 @@ function readCliVersion() {
|
|
|
220006
220006
|
cause: lastError
|
|
220007
220007
|
});
|
|
220008
220008
|
}
|
|
220009
|
+
var RUNNING_CLI_VERSION = loadCliVersion();
|
|
220010
|
+
function readCliVersion() {
|
|
220011
|
+
return RUNNING_CLI_VERSION;
|
|
220012
|
+
}
|
|
220009
220013
|
|
|
220010
220014
|
// src/commands/doctor.ts
|
|
220011
220015
|
var DoctorIssueSchema = z11.object({
|
|
@@ -236644,8 +236648,8 @@ var SLASH_COMMAND_DEFINITIONS = [
|
|
|
236644
236648
|
usage: "",
|
|
236645
236649
|
category: "settings",
|
|
236646
236650
|
description: {
|
|
236647
|
-
en: "Check
|
|
236648
|
-
zh: "\
|
|
236651
|
+
en: "Check npm; terminal sessions can install and verify updates",
|
|
236652
|
+
zh: "\u68C0\u67E5 npm\uFF1B\u7EC8\u7AEF\u4F1A\u8BDD\u53EF\u5B89\u88C5\u5E76\u9A8C\u8BC1\u66F4\u65B0"
|
|
236649
236653
|
},
|
|
236650
236654
|
webSuggested: true
|
|
236651
236655
|
},
|
|
@@ -237856,6 +237860,7 @@ var FullscreenTui = class {
|
|
|
237856
237860
|
hasCheckedOrbitUpdate = false;
|
|
237857
237861
|
isCheckingOrbitUpdate = false;
|
|
237858
237862
|
orbitUpdateAvailable = false;
|
|
237863
|
+
orbitRestartRequired = false;
|
|
237859
237864
|
budgetLimit = 0;
|
|
237860
237865
|
resolveInput = null;
|
|
237861
237866
|
activeRunnable = null;
|
|
@@ -238205,7 +238210,13 @@ var FullscreenTui = class {
|
|
|
238205
238210
|
}
|
|
238206
238211
|
setOrbitUpdateAvailable(updateAvailable) {
|
|
238207
238212
|
this.hasCheckedOrbitUpdate = true;
|
|
238208
|
-
this.orbitUpdateAvailable = updateAvailable;
|
|
238213
|
+
this.orbitUpdateAvailable = this.orbitRestartRequired ? false : updateAvailable;
|
|
238214
|
+
if (this.isActive) this.render();
|
|
238215
|
+
}
|
|
238216
|
+
/** Mark that npm has updated the package while this process remains on the old runtime. */
|
|
238217
|
+
setOrbitRestartRequired(restartRequired) {
|
|
238218
|
+
this.orbitRestartRequired = restartRequired;
|
|
238219
|
+
if (restartRequired) this.orbitUpdateAvailable = false;
|
|
238209
238220
|
if (this.isActive) this.render();
|
|
238210
238221
|
}
|
|
238211
238222
|
async refreshOrbitUpdateStatus() {
|
|
@@ -239274,7 +239285,7 @@ var FullscreenTui = class {
|
|
|
239274
239285
|
"/mode": "\u52A8\u6001\u5207\u6362\u7CFB\u7EDF\u5B89\u5168\u786E\u8BA4\u6A21\u5F0F (strict, normal, auto, plan)",
|
|
239275
239286
|
"/copy": "\u62F7\u8D1D AI \u7684\u4E0A\u4E00\u6761\u56DE\u590D\u5230\u7CFB\u7EDF\u526A\u8D34\u677F",
|
|
239276
239287
|
"/run": "\u6267\u884C\u4E00\u6761\u672C\u673A Shell \u547D\u4EE4\uFF0C\u4F1A\u5148\u8D70\u6743\u9650\u68C0\u67E5",
|
|
239277
|
-
"/update": "\u68C0\u67E5\u5E76\
|
|
239288
|
+
"/update": "\u68C0\u67E5 npm\uFF0C\u5E76\u5728\u7EC8\u7AEF\u4E2D\u5B89\u88C5\u548C\u9A8C\u8BC1 Orbit \u66F4\u65B0",
|
|
239278
239289
|
"/webui": "\u542F\u52A8\u5E76\u6253\u5F00 Orbit \u56FE\u5F62\u63A7\u5236\u53F0\u9875\u9762"
|
|
239279
239290
|
} : {
|
|
239280
239291
|
"/help": "Display detailed help and commands reference",
|
|
@@ -239300,7 +239311,7 @@ var FullscreenTui = class {
|
|
|
239300
239311
|
"/mode": "Switch permission mode (strict, normal, auto, plan)",
|
|
239301
239312
|
"/copy": "Copy last assistant response to clipboard",
|
|
239302
239313
|
"/run": "Run one local shell command after permission checks",
|
|
239303
|
-
"/update": "Check and
|
|
239314
|
+
"/update": "Check npm, then install and verify Orbit updates",
|
|
239304
239315
|
"/webui": "Start and open the Orbit graphical console"
|
|
239305
239316
|
};
|
|
239306
239317
|
const maxVisible = 5;
|
|
@@ -239480,7 +239491,8 @@ var FullscreenTui = class {
|
|
|
239480
239491
|
const cleanModel = displayedModel.replace(/\x1b\[[0-9;]*[a-zA-Z]/g, "");
|
|
239481
239492
|
const gitSummary = this.getGitSummary();
|
|
239482
239493
|
const gitBranch = gitSummary.branch;
|
|
239483
|
-
const
|
|
239494
|
+
const updateAvailable = this.getOrbitUpdateAvailable();
|
|
239495
|
+
const heartColor = this.orbitRestartRequired ? `\x1B[5m\x1B[38;2;120;190;150m` : updateAvailable ? `\x1B[5m\x1B[38;2;230;190;80m` : `\x1B[38;2;230;110;110m`;
|
|
239484
239496
|
const logoLines = [
|
|
239485
239497
|
`\x1B[38;2;158;184;196m /\\___/\\ \x1B[0m`,
|
|
239486
239498
|
`\x1B[38;2;158;184;196m ( o.o ) \x1B[0m`,
|
|
@@ -243723,19 +243735,20 @@ var WEB_UI_CLIENT_SCRIPT = [
|
|
|
243723
243735
|
// src/runtime/webui/WebUiBrand.ts
|
|
243724
243736
|
var CAT_HEAD_PATH = "M13 19 11.5 10.5l8.1 4.4a15.6 15.6 0 0 1 8.8 0l8.1-4.4L35 19c2.6 2.5 4 5.8 4 9.5 0 7.6-6.2 12.2-15 12.2S9 36.1 9 28.5c0-3.7 1.4-7 4-9.5Z";
|
|
243725
243737
|
var CAT_FACE_PATH = "M23.9 28.8v2.3m-2.5.8c1.5 1.4 3.7 1.4 5.2 0";
|
|
243738
|
+
var CAT_EYE_RADIUS = 1.35;
|
|
243726
243739
|
function renderOrbitMark(className) {
|
|
243727
243740
|
return `<svg class="orbit-mark ${className}" viewBox="0 0 48 48" fill="none" aria-hidden="true" focusable="false">
|
|
243728
243741
|
<path class="orbit-cat-head" d="${CAT_HEAD_PATH}" />
|
|
243729
|
-
<circle class="orbit-cat-eye" cx="18.5" cy="26.6" r="
|
|
243730
|
-
<circle class="orbit-cat-eye" cx="29.5" cy="26.6" r="
|
|
243742
|
+
<circle class="orbit-cat-eye" cx="18.5" cy="26.6" r="${CAT_EYE_RADIUS}" />
|
|
243743
|
+
<circle class="orbit-cat-eye" cx="29.5" cy="26.6" r="${CAT_EYE_RADIUS}" />
|
|
243731
243744
|
<path class="orbit-cat-face" d="${CAT_FACE_PATH}" />
|
|
243732
243745
|
<circle class="orbit-cat-satellite" cx="37" cy="12" r="2.2" />
|
|
243733
243746
|
</svg>`;
|
|
243734
243747
|
}
|
|
243735
243748
|
var WEB_UI_FAVICON_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" fill="none">
|
|
243736
243749
|
<path d="${CAT_HEAD_PATH}" stroke="#587481" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
243737
|
-
<circle cx="18.5" cy="26.6" r="
|
|
243738
|
-
<circle cx="29.5" cy="26.6" r="
|
|
243750
|
+
<circle cx="18.5" cy="26.6" r="${CAT_EYE_RADIUS}" fill="#587481" />
|
|
243751
|
+
<circle cx="29.5" cy="26.6" r="${CAT_EYE_RADIUS}" fill="#587481" />
|
|
243739
243752
|
<path d="${CAT_FACE_PATH}" stroke="#587481" stroke-width="1.35" stroke-linecap="round" />
|
|
243740
243753
|
<circle cx="37" cy="12" r="2.2" fill="#d97972" />
|
|
243741
243754
|
</svg>`;
|
|
@@ -252765,7 +252778,12 @@ async function runUpdate(currentVersion, rawOptions, dependencies = {}) {
|
|
|
252765
252778
|
const write = dependencies.write ?? ((text) => console.log(text));
|
|
252766
252779
|
const check = manager.check(currentVersion, options.channel);
|
|
252767
252780
|
if (!check.updateAvailable) {
|
|
252768
|
-
const result2 = {
|
|
252781
|
+
const result2 = {
|
|
252782
|
+
check,
|
|
252783
|
+
installed: false,
|
|
252784
|
+
restartRequired: false,
|
|
252785
|
+
channel: options.channel
|
|
252786
|
+
};
|
|
252769
252787
|
write(
|
|
252770
252788
|
options.json ? JSON.stringify({ schemaVersion: 1, ...result2 }) : picocolors17.green(
|
|
252771
252789
|
`\u2714 Orbit ${check.currentVersion} is already up to date.`
|
|
@@ -252773,11 +252791,35 @@ async function runUpdate(currentVersion, rawOptions, dependencies = {}) {
|
|
|
252773
252791
|
);
|
|
252774
252792
|
return result2;
|
|
252775
252793
|
}
|
|
252794
|
+
let latestAlreadyInstalled = false;
|
|
252795
|
+
try {
|
|
252796
|
+
latestAlreadyInstalled = manager.readInstalledVersion() === check.latestVersion;
|
|
252797
|
+
} catch {
|
|
252798
|
+
}
|
|
252799
|
+
if (latestAlreadyInstalled) {
|
|
252800
|
+
const result2 = {
|
|
252801
|
+
check,
|
|
252802
|
+
installed: false,
|
|
252803
|
+
restartRequired: true,
|
|
252804
|
+
channel: options.channel
|
|
252805
|
+
};
|
|
252806
|
+
write(
|
|
252807
|
+
options.json ? JSON.stringify({ schemaVersion: 1, ...result2 }) : picocolors17.yellow(
|
|
252808
|
+
`\u25CF Orbit ${check.latestVersion} is installed, but this process is still ${check.currentVersion}. Exit and relaunch Orbit, then reopen /webui.`
|
|
252809
|
+
)
|
|
252810
|
+
);
|
|
252811
|
+
return result2;
|
|
252812
|
+
}
|
|
252776
252813
|
if (options.check || options.json && !options.yes) {
|
|
252777
|
-
const result2 = {
|
|
252814
|
+
const result2 = {
|
|
252815
|
+
check,
|
|
252816
|
+
installed: false,
|
|
252817
|
+
restartRequired: false,
|
|
252818
|
+
channel: options.channel
|
|
252819
|
+
};
|
|
252778
252820
|
write(
|
|
252779
252821
|
options.json ? JSON.stringify({ schemaVersion: 1, ...result2 }) : `${picocolors17.yellow("\u25CF Update available:")} ${check.currentVersion} \u2192 ${check.latestVersion}
|
|
252780
|
-
Run ${picocolors17.cyan("orbit update --yes")}
|
|
252822
|
+
Run ${picocolors17.cyan("orbit update --yes")} in a terminal, then restart Orbit and reopen ${picocolors17.cyan("/webui")}.`
|
|
252781
252823
|
);
|
|
252782
252824
|
return result2;
|
|
252783
252825
|
}
|
|
@@ -252796,7 +252838,12 @@ async function runUpdate(currentVersion, rawOptions, dependencies = {}) {
|
|
|
252796
252838
|
}
|
|
252797
252839
|
if (!confirmed) {
|
|
252798
252840
|
write(picocolors17.yellow("\u26A0 Update cancelled."));
|
|
252799
|
-
return {
|
|
252841
|
+
return {
|
|
252842
|
+
check,
|
|
252843
|
+
installed: false,
|
|
252844
|
+
restartRequired: false,
|
|
252845
|
+
channel: options.channel
|
|
252846
|
+
};
|
|
252800
252847
|
}
|
|
252801
252848
|
dependencies.beforeInstall?.();
|
|
252802
252849
|
try {
|
|
@@ -252828,12 +252875,13 @@ async function runUpdate(currentVersion, rawOptions, dependencies = {}) {
|
|
|
252828
252875
|
const result = {
|
|
252829
252876
|
check,
|
|
252830
252877
|
installed: true,
|
|
252878
|
+
restartRequired: true,
|
|
252831
252879
|
channel: options.channel,
|
|
252832
252880
|
rollback: "not-needed"
|
|
252833
252881
|
};
|
|
252834
252882
|
write(
|
|
252835
252883
|
options.json ? JSON.stringify({ schemaVersion: 1, ...result }) : picocolors17.green(
|
|
252836
|
-
`\u2714 Orbit ${check.latestVersion} installed.
|
|
252884
|
+
`\u2714 Orbit ${check.latestVersion} was installed and verified. This process is still ${check.currentVersion}; exit and relaunch Orbit, then reopen /webui.`
|
|
252837
252885
|
)
|
|
252838
252886
|
);
|
|
252839
252887
|
return result;
|
|
@@ -253069,8 +253117,11 @@ var CommandRouter = class {
|
|
|
253069
253117
|
}
|
|
253070
253118
|
);
|
|
253071
253119
|
tui.setOrbitUpdateAvailable?.(
|
|
253072
|
-
updateResult.
|
|
253120
|
+
updateResult.restartRequired ? false : updateResult.check.updateAvailable
|
|
253073
253121
|
);
|
|
253122
|
+
if (updateResult.restartRequired) {
|
|
253123
|
+
tui.setOrbitRestartRequired?.(true);
|
|
253124
|
+
}
|
|
253074
253125
|
} catch (error) {
|
|
253075
253126
|
const message = error instanceof Error ? error.message : String(error);
|
|
253076
253127
|
this.printOutput(
|