@ours.network/install 1.2.1-nightly.15 → 1.2.1-nightly.17

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/target.mjs CHANGED
@@ -105,6 +105,13 @@ export function validateHostProfile(value) {
105
105
  return { endpoint: endpointBase, expectedInstanceId, credentialPath };
106
106
  }
107
107
 
108
+ /** Client installs require the single gateway even when a legacy server profile exists. */
109
+ export function validateGatewayClientProfile(value) {
110
+ if (!value || typeof value.serverUrl !== 'string') throw profileError('serverUrl is required; enable the server gateway and import its client profile. Direct daemon endpoints are not client routes.');
111
+ const serverUrl = serverBase(value.serverUrl);
112
+ return validateHostProfile({ ...value, endpoint: value.endpoint ?? serverUrl + '/daemon' });
113
+ }
114
+
108
115
  export function resolveProfileSelection({ args, env = {}, home = homedir(), exists, readProfile }) {
109
116
  const explicit = (env.OURS_CONFIG ?? '').trim();
110
117
  const configPath = explicit ? resolve(explicit) : resolve(home, DEFAULT_STATE_DIR_NAME, DAEMON_CONFIG);
@@ -464,7 +471,7 @@ export function parseNetworkArgs(argv) {
464
471
  const operations = role === 'client' ? ['install'] : ['install', 'status', 'start', 'stop', 'restart', 'access-issue', 'access-replace', 'backup', 'restore', 'reset', 'update', 'rebuild', 'gateway-enable'];
465
472
  if (!operations.includes(operation)) throw new InstallUsageError(`Unsupported ${role} operation: ${operation ?? '(missing)'}`);
466
473
  const allowed = role === 'client' ? ['config'] : ['state-dir'];
467
- if (role === 'server' && operation === 'install') allowed.push('mode', 'sources', 'migrate');
474
+ if (role === 'server' && operation === 'install') allowed.push('mode', 'sources', 'migrate', 'container-engine');
468
475
  if (role === 'server' && ['install', 'gateway-enable'].includes(operation)) allowed.push('server-url');
469
476
  if (operation === 'access-issue') allowed.push('output');
470
477
  if (['access-replace', 'reset'].includes(operation)) allowed.push('confirm');
@@ -494,13 +501,14 @@ export function parseNetworkArgs(argv) {
494
501
  } else {
495
502
  const value = inline ?? argv[++i];
496
503
  if (!value || value.startsWith('--')) throw new InstallUsageError(`--${name} requires a value`);
497
- result[key] = name === 'mode' ? value : name === 'server-url' ? serverBase(value) : resolve(value);
504
+ result[key] = ['mode', 'container-engine'].includes(name) ? value : name === 'server-url' ? serverBase(value) : resolve(value);
498
505
  }
499
506
  }
500
507
  const required = role === 'client' ? [] : ['stateDir'];
501
508
  if (operation === 'access-issue') required.push('output');
502
509
  if (['access-replace', 'reset'].includes(operation)) required.push('confirm');
503
510
  for (const key of required) if (!result[key]) throw new InstallUsageError(`${operation} requires --${key.replace(/[A-Z]/g, c => '-' + c.toLowerCase())}`);
511
+ if (result.containerEngine !== undefined && (result.mode !== 'docker' || !['docker', 'podman'].includes(result.containerEngine))) throw new InstallUsageError('--container-engine docker|podman requires --mode docker');
504
512
  if (result.mode && !['packages', 'docker'].includes(result.mode)) throw new InstallUsageError('--mode must be packages or docker');
505
513
  return result;
506
514
  }
package/lib/usage.mjs CHANGED
@@ -4,7 +4,7 @@ export const USAGE = `ours-install — interactive setup or complete CLI presets
4
4
  ours-install
5
5
  Opens the console form. Choose all (server + clients), server, or client;
6
6
  runtime, installation directory, identity, integrations and Fleet settings.
7
- Linux x64 recommends native; macOS/Windows recommend Docker. Windows uses WSL.
7
+ Docker provides the full-stack gateway; native mode is server-only. Windows uses WSL.
8
8
 
9
9
  Full stack, with every required answer preset (no prompts):
10
10
  ours-install --mode docker --state-dir /private/ours --identity-name "Your Name" --integrations codex,fleet --fleet-settings /private/fleet.json
@@ -22,13 +22,14 @@ export const USAGE = `ours-install — interactive setup or complete CLI presets
22
22
  --scope all|server|client preset which parts to configure (default all)
23
23
  --action install|update equivalent to the positional operation
24
24
  --mode docker|native packages is also accepted for native mode
25
+ --container-engine docker|podman server container backend (default Docker); retained for maintenance
25
26
  --state-dir PATH installation root; required for all/server
26
27
  --identity-name NAME desired Human name for a fresh server; existing root is retained
27
28
  --integrations LIST codex,claude-code,fleet; use none to skip clients explicitly
28
29
  --fleet-settings PATH JSON settings for Fleet; mandatory for CLI presets selecting Fleet
29
30
  --config PATH complete connection profile for client-only setup
30
31
  --sources PATH explicit full development source policy override
31
- --port N daemon port (default 3050 on a fresh installation)
32
+ --port N public gateway port for Docker (default 3050; e.g. 4050)
32
33
  --server-url URL external gateway URL (Docker install; configure authenticated entry separately)
33
34
  --cowork-port N cowork port (default 3052)
34
35
  --messenger-port N messenger port (default 8420)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ours.network/install",
3
- "version": "1.2.1-nightly.15",
3
+ "version": "1.2.1-nightly.17",
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",
@@ -15,7 +15,9 @@
15
15
  "uninstall.mjs",
16
16
  "uninstall.sh",
17
17
  "README.md",
18
- "LICENSE"
18
+ "ROOTLESS_PODMAN_VALIDATION.md",
19
+ "LICENSE",
20
+ "GATEWAY_SETUP.md"
19
21
  ],
20
22
  "license": "FSL-1.1-Apache-2.0",
21
23
  "author": "Adapt Toolkit",