@ours.network/install 1.2.1-nightly.1 → 1.2.1-nightly.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/README.md +58 -129
- package/assets/release.json +1 -1
- package/assets/sources.json +1 -1
- package/install.mjs +2 -2
- package/lib/build-transition.mjs +13 -7
- package/lib/effects.mjs +81 -25
- package/lib/fleet-settings.mjs +43 -0
- package/lib/orchestrate.mjs +64 -23
- package/lib/server-onboarding.mjs +113 -0
- package/lib/setup-options.mjs +157 -0
- package/lib/setup.mjs +145 -0
- package/lib/usage.mjs +47 -44
- package/package.json +1 -1
package/lib/usage.mjs
CHANGED
|
@@ -1,55 +1,58 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
// It lives here rather than in the bin because `--help` is a behaviour with a
|
|
4
|
-
// contract (the flags it names must be the flags target.mjs accepts), and a bin
|
|
5
|
-
// that is three lines long cannot be the place a contract is asserted.
|
|
1
|
+
// Public setup and maintenance commands.
|
|
2
|
+
export const USAGE = `ours-install — interactive setup or complete CLI presets.
|
|
6
3
|
|
|
7
|
-
|
|
4
|
+
ours-install
|
|
5
|
+
Opens the console form. Choose all (server + clients), server, or client;
|
|
6
|
+
runtime, installation directory, identity, integrations and Fleet settings.
|
|
7
|
+
Linux x64 recommends native; macOS/Windows recommend Docker. Windows uses WSL.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
ours-install
|
|
11
|
-
ours-install server status|start|stop|restart --state-dir PATH
|
|
12
|
-
ours-install server rebuild --state-dir PATH
|
|
13
|
-
ours-install server update --state-dir PATH [--sources PATH] --compatible
|
|
14
|
-
ours-install server access-issue --state-dir PATH --output PATH
|
|
15
|
-
ours-install server access-replace --state-dir PATH --confirm
|
|
16
|
-
ours-install server backup|restore server LABEL --state-dir PATH
|
|
17
|
-
ours-install server backup|restore daemon|telegram|cowork|messenger LABEL --state-dir PATH
|
|
18
|
-
ours-install server reset daemon|telegram|cowork|messenger --confirm --state-dir PATH
|
|
19
|
-
ours-install client install --config PATH
|
|
20
|
-
Client profile settings select installer.integrations and may override installer.sourcesPath,
|
|
21
|
-
and optional installer.fleetSettingsPath (relative paths use the profile directory).
|
|
22
|
-
Repeat selected server install repairs setup without replacing existing authority.
|
|
23
|
-
Daemon maintenance includes MCP state. Full-server reset is not supported.
|
|
24
|
-
Update requires reviewed storage compatibility; --compatible records that attestation.
|
|
25
|
-
Existing managed layouts are converted before service startup.
|
|
9
|
+
Full stack, with every required answer preset (no prompts):
|
|
10
|
+
ours-install --mode docker --state-dir /private/ours --identity-name "Your Name" --integrations codex,fleet --fleet-settings /private/fleet.json
|
|
26
11
|
|
|
12
|
+
Server preset (native is an alias for packages):
|
|
13
|
+
ours-install server --mode native --state-dir /private/ours --identity-name "Your Name"
|
|
14
|
+
ours-install server install --mode docker --state-dir /private/ours --identity-name "Your Name"
|
|
27
15
|
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
Client preset for an existing server:
|
|
17
|
+
ours-install client --config /private/profile.json --integrations codex,fleet --fleet-settings /private/fleet.json
|
|
30
18
|
|
|
31
|
-
|
|
19
|
+
Update a retained installation, preserving its identities:
|
|
20
|
+
ours-install all update --mode docker --state-dir /private/ours --identity-name "Your Name" --integrations codex,fleet --fleet-settings /private/fleet.json --compatible
|
|
32
21
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
for
|
|
38
|
-
|
|
22
|
+
--scope all|server|client preset which parts to configure (default all)
|
|
23
|
+
--action install|update equivalent to the positional operation
|
|
24
|
+
--mode docker|native packages is also accepted for native mode
|
|
25
|
+
--state-dir PATH installation root; required for all/server
|
|
26
|
+
--identity-name NAME desired Human name for a fresh server; existing root is retained
|
|
27
|
+
--integrations LIST codex,claude-code,fleet; use none to skip clients explicitly
|
|
28
|
+
--fleet-settings PATH JSON settings for Fleet; mandatory for CLI presets selecting Fleet
|
|
29
|
+
--config PATH complete connection profile for client-only setup
|
|
30
|
+
--sources PATH explicit full development source policy override
|
|
31
|
+
--port N daemon port (default 3050 on a fresh installation)
|
|
32
|
+
--cowork-port N cowork port (default 3052)
|
|
33
|
+
--messenger-port N messenger port (default 8420)
|
|
34
|
+
--compatible required attestation for server updates of retained state
|
|
35
|
+
--migrate explicit legacy access migration during install
|
|
36
|
+
--dry-run show the validated plan without changing anything
|
|
37
|
+
--help, -h show help
|
|
38
|
+
--version, -V print installer version
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
CLI presets must be complete and never open the interactive form or a Fleet wizard.
|
|
41
|
+
Missing answers are reported before installation. Both input modes run the same
|
|
42
|
+
installer with preparation, identity restoration, update and readiness progress.
|
|
43
|
+
Fleet is configured but left stopped for operator review.
|
|
44
|
+
|
|
45
|
+
Scoped maintenance:
|
|
46
|
+
ours-install server status|start|stop|restart|rebuild --state-dir PATH
|
|
47
|
+
ours-install server access-issue --state-dir PATH --output PATH
|
|
48
|
+
ours-install server access-replace --state-dir PATH --confirm
|
|
49
|
+
ours-install server backup|restore server|daemon|telegram|cowork|messenger LABEL --state-dir PATH
|
|
50
|
+
ours-install server reset daemon|telegram|cowork|messenger --state-dir PATH --confirm
|
|
48
51
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
Install the selected channel with npm install -g @ours.network/install@nightly
|
|
53
|
+
(or @latest for a qualified stable release). Component versions come from the
|
|
54
|
+
installer's embedded release manifest. Node.js 22+ is required.
|
|
55
|
+
`;
|
|
53
56
|
|
|
54
57
|
export const UNINSTALL_USAGE = `ours-uninstall — remove one ours daemon and what attaches to it.
|
|
55
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ours.network/install",
|
|
3
|
-
"version": "1.2.1-nightly.
|
|
3
|
+
"version": "1.2.1-nightly.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The all-in-one ours.network installer: one shared daemon, MCP, cowork, Telegram, Fleet initialization, harness plugins, Human identity, progress UI, and guided next steps.",
|
|
6
6
|
"type": "module",
|