@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/lib/usage.mjs CHANGED
@@ -1,55 +1,58 @@
1
- // ours-install v3 the help text.
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
- export const USAGE = `ours-install — the unified ours.network stack installer.
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
- Selected network installation (uses the packaged compatible source policy):
10
- ours-install server install --mode packages|docker [--sources PATH] --state-dir PATH
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
- Install: npm i -g @ours.network/install && ours-install (recommended)
29
- npx @ours.network/install (one-off)
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
- ours-install [--state-dir PATH] [--port N] [--dry-run] [--help] [--version]
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
- Progress-driven setup for the whole stack: one shared daemon, MCP, Telegram,
34
- cowork, detected harness plugins (Claude Code / Codex / Hermes), a Human
35
- identity, and ours-fleet. The daemon, Telegram connector, and cowork shim start
36
- as durable services; only Fleet is staged but stopped. The installer asks only
37
- for information it cannot infer and
38
- ends with exact next commands plus a copy-paste agent hand-off prompt.
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
- --state-dir the daemon's STATE DIRECTORY, which is what identifies a daemon
41
- (default ~/.ours). A second state directory is a second daemon.
42
- --port used only when CREATING a daemon. For a daemon that already owns
43
- the state directory the port comes from its own record, and a
44
- --port that disagrees with it is refused rather than corrected.
45
- --dry-run walk the whole flow and print what it WOULD do — change nothing
46
- --help show this help and exit
47
- --version print the installer version and exit
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
- Env: OURS_ASSUME_YES=1 (accept defaults, no prompts) · OURS_INSTALL_DRY_RUN=1 ·
50
- OURS_CONFIG=/private/host-profile.json · OURS_CHANNEL=nightly ·
51
- OURS_BROKER_URL · OURS_NPM. A complete host profile selects client-only
52
- setup for an existing Compose-owned daemon. Docs: https://ours.network`;
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.1",
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",