@ours.network/install 2.2.0 → 2.2.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 +3 -3
- package/assets/images.json +16 -16
- package/assets/release-lock.json +4 -4
- package/assets/release.json +3 -3
- package/assets/sources.json +4 -4
- package/lib/effects.mjs +4 -4
- package/lib/native-sessions.mjs +23 -23
- package/lib/orchestrate.mjs +4 -4
- package/lib/plan.mjs +1 -1
- package/lib/setup-options.mjs +0 -6
- package/lib/setup.mjs +0 -1
- package/lib/usage.mjs +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,11 +104,11 @@ This permanent command contains no tunnel credentials or enrollment expiry. `--s
|
|
|
104
104
|
|
|
105
105
|
After Fleet configuration, and again on update, the installer asks the exact Fleet it installed to run `ours-fleet managed-cli setup`. Fleet owns that policy; this step writes no Codex rule or Claude setting itself, and starts no agent session and no model. It runs only when the installed Fleet declares the `managed-cli.setup-v1` capability; the Fleet release this installer pins does. With an earlier Fleet (a retained or development installation) it is skipped (and `--fleet-task-workflow` reports that it was not applied), and it never fails an installation: an unsupported combination is printed with Fleet's reason and left exactly as sandboxed as before.
|
|
106
106
|
|
|
107
|
-
###
|
|
107
|
+
### Terminal sessions
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
Client/all setup automatically connects terminal sessions when Claude Code and/or Codex are selected, including unattended setup. Fleet is installed as the terminal-session component without requiring its persistent-agent wizard. The installer reads the Human identity from the saved workspace profile; it does not ask for a CID or an extra permission. Terminal sessions provide visible history, browser input and peer-mail wake. A missing or ambiguous Human identity produces an actionable setup error.
|
|
110
110
|
|
|
111
|
-
Setup uses the installed Fleet's participation commands and local native plugin. It merges participation hooks while retaining Ours identity hooks and other settings. Existing Claude sessions need a plugin reload. For Codex,
|
|
111
|
+
Setup uses the installed Fleet's participation commands and local native plugin. It merges participation hooks while retaining Ours identity hooks and other settings. Existing Claude sessions need a plugin reload. For Codex, setup starts its App Server once with `codex app-server daemon start`. A start failure is reported directly; setup does not retry. Linux setup installs the user service `ours-fleet-native-codex.service` with `Restart=on-failure`. While the Codex App Server is not running, the watcher waits for it; after a crash systemd restarts it. Inspect `journalctl --user -u ours-fleet-native-codex.service`. Automatic service setup for other platforms is not provided.
|
|
112
112
|
|
|
113
113
|
Inspect sessions with `ours-fleet participation ls --json`. Revoke access with `ours-fleet participation disable`; stop discovery with `systemctl --user disable --now ours-fleet-native-codex.service`. Existing identity creation and retirement remain owned by the native Ours hooks.
|
|
114
114
|
|
package/assets/images.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"channel": "stable",
|
|
4
|
-
"installerVersion": "2.2.
|
|
5
|
-
"commit": "
|
|
4
|
+
"installerVersion": "2.2.2",
|
|
5
|
+
"commit": "9eeaf517da32e3bc7a566425603e7fa99b82a4b5",
|
|
6
6
|
"platform": "linux/amd64",
|
|
7
7
|
"variants": {
|
|
8
8
|
"server": {
|
|
9
|
-
"policySha256": "
|
|
9
|
+
"policySha256": "53ca6ce29b215aa43f1be0a52cec7ca24b7b9de6fc95199c4524922c7aa24951",
|
|
10
10
|
"runtime": {
|
|
11
11
|
"repository": "docker.io/adaptframework/ours-runtime",
|
|
12
|
-
"index": "sha256:
|
|
13
|
-
"manifest": "sha256:
|
|
14
|
-
"config": "sha256:
|
|
12
|
+
"index": "sha256:88b5c5a16d19d5d293bf2678474c303e0b2d252cf55701a6e862fa44dac83c21",
|
|
13
|
+
"manifest": "sha256:a56fee31b6465e3ea2eab8fd860d6f462a97fe3ac6ddecbb9e20531719524d1e",
|
|
14
|
+
"config": "sha256:47f3ab488b8054b09088488b4cecf40e8ba33c2fe27aaa800759b33f63e2fa41"
|
|
15
15
|
},
|
|
16
16
|
"maintenance": {
|
|
17
17
|
"repository": "docker.io/adaptframework/ours-maintenance",
|
|
18
|
-
"index": "sha256:
|
|
19
|
-
"manifest": "sha256:
|
|
20
|
-
"config": "sha256:
|
|
18
|
+
"index": "sha256:3248273845f3c7edd61563a1804721a95000f4a2a97af177021271748cf867ca",
|
|
19
|
+
"manifest": "sha256:4fa0f00d9966cc617cecb2eecbdbe2e4f86145999c4bd5e81d91a0608eaea8e6",
|
|
20
|
+
"config": "sha256:57fd051b7642b12be265ffcd3669c7a2cb5f65f67caf4c64e7ff19418d4b080a"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"daemon": {
|
|
24
|
-
"policySha256": "
|
|
24
|
+
"policySha256": "bb6373331716a2fa2d0d097f3afe9b8593b43f070612a982a122331fe1d5ee99",
|
|
25
25
|
"runtime": {
|
|
26
26
|
"repository": "docker.io/adaptframework/ours-runtime",
|
|
27
|
-
"index": "sha256:
|
|
28
|
-
"manifest": "sha256:
|
|
29
|
-
"config": "sha256:
|
|
27
|
+
"index": "sha256:50d07cb9db7184e10e51387c19f5f96ca31f03590eada78fe6b5676f4e974c8e",
|
|
28
|
+
"manifest": "sha256:2bad902bc65f5806e1f8de57414aed99616cfc6eb653a88044adedb84be9fa91",
|
|
29
|
+
"config": "sha256:904fdf9cabcf63c406ce101353a0fd92104b79d7623badcf4e580d3e7cdc809d"
|
|
30
30
|
},
|
|
31
31
|
"maintenance": {
|
|
32
32
|
"repository": "docker.io/adaptframework/ours-maintenance",
|
|
33
|
-
"index": "sha256:
|
|
34
|
-
"manifest": "sha256:
|
|
35
|
-
"config": "sha256:
|
|
33
|
+
"index": "sha256:2f3a29656db56b53528db90fe4faf6d384e528ee1bc27facee741b8bd6505a16",
|
|
34
|
+
"manifest": "sha256:154acdba94e65c2c4fc3a709e494a2992be51a715f88a049e78600611c8a7868",
|
|
35
|
+
"config": "sha256:c471beac206ebc5891776cc36cbd980382d4e77939ca1eaa4b05063adf1d8674"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
package/assets/release-lock.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@ours.network/codex": "2.0.6",
|
|
14
14
|
"@ours.network/cowork": "2.0.4",
|
|
15
15
|
"@ours.network/daemon": "6.1.0",
|
|
16
|
-
"@ours.network/fleet": "2.4.
|
|
16
|
+
"@ours.network/fleet": "2.4.3",
|
|
17
17
|
"@ours.network/mcp": "2.0.6",
|
|
18
18
|
"@ours.network/messenger-server": "2.0.4",
|
|
19
19
|
"@ours.network/notifications": "1.0.2",
|
|
@@ -1070,9 +1070,9 @@
|
|
|
1070
1070
|
}
|
|
1071
1071
|
},
|
|
1072
1072
|
"node_modules/@ours.network/fleet": {
|
|
1073
|
-
"version": "2.4.
|
|
1074
|
-
"resolved": "https://registry.npmjs.org/@ours.network/fleet/-/fleet-2.4.
|
|
1075
|
-
"integrity": "sha512-
|
|
1073
|
+
"version": "2.4.3",
|
|
1074
|
+
"resolved": "https://registry.npmjs.org/@ours.network/fleet/-/fleet-2.4.3.tgz",
|
|
1075
|
+
"integrity": "sha512-OQ2sYs1Ra33Uw9FkEI0JHZqeu10zIM5QOvSNVXhjLQrtn/UuidKGQsIKDPnQb/mBqFAom2e8qQ3YH18Qfg+vrw==",
|
|
1076
1076
|
"license": "FSL-1.1-Apache-2.0",
|
|
1077
1077
|
"dependencies": {
|
|
1078
1078
|
"@agentclientprotocol/sdk": "^1.3.0",
|
package/assets/release.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"channel": "stable",
|
|
4
|
-
"installerVersion": "2.2.
|
|
4
|
+
"installerVersion": "2.2.2",
|
|
5
5
|
"packages": {
|
|
6
6
|
"@ours.network/sdk": {
|
|
7
7
|
"version": "6.1.0",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"integrity": "sha512-jqGvgzgyaYVqkROLZyzno6NzQyb6oszXATwmtukQ+ZrHVik86jQHGKvBDwa9ZvOVZEefmm+OhnQoLkXGcA/mwQ=="
|
|
29
29
|
},
|
|
30
30
|
"@ours.network/fleet": {
|
|
31
|
-
"version": "2.4.
|
|
32
|
-
"integrity": "sha512-
|
|
31
|
+
"version": "2.4.3",
|
|
32
|
+
"integrity": "sha512-OQ2sYs1Ra33Uw9FkEI0JHZqeu10zIM5QOvSNVXhjLQrtn/UuidKGQsIKDPnQb/mBqFAom2e8qQ3YH18Qfg+vrw=="
|
|
33
33
|
},
|
|
34
34
|
"@ours.network/mcp": {
|
|
35
35
|
"version": "2.0.6",
|
package/assets/sources.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"release": {
|
|
3
3
|
"schema": 1,
|
|
4
4
|
"channel": "stable",
|
|
5
|
-
"installerVersion": "2.2.
|
|
5
|
+
"installerVersion": "2.2.2",
|
|
6
6
|
"packages": {
|
|
7
7
|
"@ours.network/sdk": {
|
|
8
8
|
"version": "6.1.0",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"integrity": "sha512-jqGvgzgyaYVqkROLZyzno6NzQyb6oszXATwmtukQ+ZrHVik86jQHGKvBDwa9ZvOVZEefmm+OhnQoLkXGcA/mwQ=="
|
|
30
30
|
},
|
|
31
31
|
"@ours.network/fleet": {
|
|
32
|
-
"version": "2.4.
|
|
33
|
-
"integrity": "sha512-
|
|
32
|
+
"version": "2.4.3",
|
|
33
|
+
"integrity": "sha512-OQ2sYs1Ra33Uw9FkEI0JHZqeu10zIM5QOvSNVXhjLQrtn/UuidKGQsIKDPnQb/mBqFAom2e8qQ3YH18Qfg+vrw=="
|
|
34
34
|
},
|
|
35
35
|
"@ours.network/mcp": {
|
|
36
36
|
"version": "2.0.6",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
},
|
|
88
88
|
"@ours.network/fleet": {
|
|
89
89
|
"type": "npm",
|
|
90
|
-
"version": "2.4.
|
|
90
|
+
"version": "2.4.3"
|
|
91
91
|
},
|
|
92
92
|
"@ours.network/mcp": {
|
|
93
93
|
"type": "npm",
|
package/lib/effects.mjs
CHANGED
|
@@ -1414,7 +1414,7 @@ export function networkEffects(effects) {
|
|
|
1414
1414
|
// Every client installation includes the native CLI and its SDK dependency.
|
|
1415
1415
|
const selected = clientPackageNames(integrations);
|
|
1416
1416
|
const packages = selectSourcePackages(manifest, 'client', selected);
|
|
1417
|
-
const selectionKey = JSON.stringify([hostCliOnly ? 'host-cli-private-v1' : 'host-cli-v1', configPath, ...(hostCliOnly ? [manifest] : []), ...(refresh ? [manifest, integrations] : [])]);
|
|
1417
|
+
const selectionKey = JSON.stringify([hostCliOnly ? 'host-cli-private-v1' : 'host-cli-v1', configPath, selected, ...(hostCliOnly ? [manifest] : []), ...(refresh ? [manifest, integrations] : [])]);
|
|
1418
1418
|
const root = join(home, '.ours-client-install', createHash('sha256').update(selectionKey).digest('hex').slice(0, 16));
|
|
1419
1419
|
const hasGit = Object.values(packages).some(selection => selection.source);
|
|
1420
1420
|
await effects.run('npm', ['--version']);
|
|
@@ -1455,7 +1455,7 @@ export function networkEffects(effects) {
|
|
|
1455
1455
|
writePrivateNew(join(root, '.packages-ready'), 'ready\n');
|
|
1456
1456
|
}
|
|
1457
1457
|
verifyReleaseGraph(root, manifest, { requiredPackages: Object.keys(packages) });
|
|
1458
|
-
if (
|
|
1458
|
+
if (selected.includes('fleet') && (gatewayServerUrl || readHostProfileFile(configPath)?.serverUrl)) {
|
|
1459
1459
|
let info;
|
|
1460
1460
|
try { info = JSON.parse(readFileSync(join(root, 'node_modules/@ours.network/fleet/dist/build-info.json'), 'utf8')); } catch {}
|
|
1461
1461
|
if (!Array.isArray(info?.capabilities) || !info.capabilities.includes('cowork.http-management-v1'))
|
|
@@ -1465,7 +1465,7 @@ export function networkEffects(effects) {
|
|
|
1465
1465
|
const cliPolicy = hostCliOnly ? null : hostCliPolicy(manifest);
|
|
1466
1466
|
// Local acquisition alone does not publish native commands. Use the user's
|
|
1467
1467
|
// configured npm prefix and retained dependency closure, including on retry.
|
|
1468
|
-
for (const name of
|
|
1468
|
+
for (const name of selected.filter(name => name === 'fleet' || name === 'codex')) {
|
|
1469
1469
|
await effects.run('npm', ['install', '--global', '--install-links=false', '--offline', '--ignore-scripts', '--no-audit', '--no-fund', join(root, 'node_modules', '@ours.network', name)]);
|
|
1470
1470
|
}
|
|
1471
1471
|
let cliBin = join(root, 'node_modules/.bin/ours');
|
|
@@ -1481,7 +1481,7 @@ export function networkEffects(effects) {
|
|
|
1481
1481
|
await publishClientCli(effects, join(root, 'node_modules', '@ours.network/cli'), { policy: manifest, isolated: hostCliOnly });
|
|
1482
1482
|
}
|
|
1483
1483
|
const localPackages = Object.fromEntries(integrations.filter(n => n !== 'fleet').map(name => [name, join(root, 'node_modules', '@ours.network', name)]));
|
|
1484
|
-
return { localPackages, packages: {}, cliBin, fleetBin:
|
|
1484
|
+
return { localPackages, packages: {}, cliBin, fleetBin: selected.includes('fleet') ? join(root, 'node_modules/.bin/ours-fleet') : null };
|
|
1485
1485
|
},
|
|
1486
1486
|
/** Capability tokens the given Fleet executable reports for itself; [] when it reports none. */
|
|
1487
1487
|
async fleetCapabilities(fleetBin, env = null) {
|
package/lib/native-sessions.mjs
CHANGED
|
@@ -33,27 +33,27 @@ export function nativeCodexUnit({ fleetEntry, profile, env = {} }) {
|
|
|
33
33
|
if ([fleetEntry, ...Object.values(selected)].some(value => /[\r\n\0]/.test(String(value)))) throw new Error('Invalid newline in native discovery service configuration.');
|
|
34
34
|
return `${marker}\n# Profile: ${profile}\n[Unit]\nDescription=Ours Fleet terminal session discovery\n[Service]\nType=simple\n`
|
|
35
35
|
+ Object.entries(selected).map(([key, value]) => `Environment=${unitQuote(`${key}=${value}`)}\n`).join('')
|
|
36
|
-
+ `ExecStart=${unitQuote(process.execPath).replaceAll('$', () => '$$')} ${unitQuote(fleetEntry).replaceAll('$', () => '$$')} participation serve-codex\nRestart=
|
|
36
|
+
+ `ExecStart=${unitQuote(process.execPath).replaceAll('$', () => '$$')} ${unitQuote(fleetEntry).replaceAll('$', () => '$$')} participation serve-codex\nRestart=on-failure\nRestartSec=5\n[Install]\nWantedBy=default.target\n`;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
// Called
|
|
40
|
-
//
|
|
41
|
-
export async function setupNativeSessions(command, effects, { fleetBin, configPath, integrations }) {
|
|
39
|
+
// Called after a complete client installation. Resolve the Human from the same
|
|
40
|
+
// installed profile; users never need to find or enter an internal CID.
|
|
41
|
+
export async function setupNativeSessions(command, effects, { fleetBin, cliBin, configPath, integrations }) {
|
|
42
42
|
const selected = integrations.filter(name => name === 'claude-code' || name === 'codex');
|
|
43
|
-
if (!selected.length) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
if (!humanCid) {
|
|
53
|
-
effects.out(info('Terminal session sharing settings were left unchanged. To configure sharing, add --native-sessions-human-cid <Human-root-CID> to your client setup command.'));
|
|
54
|
-
return { state: 'skipped' };
|
|
43
|
+
if (!selected.length) return { state: 'skipped' };
|
|
44
|
+
let identities;
|
|
45
|
+
try {
|
|
46
|
+
const result = await effects.run(cliBin, ['identity', 'list', '--json'], { env: { OURS_CONFIG: configPath } });
|
|
47
|
+
if (result.code !== undefined && result.code !== 0) throw new Error('identity lookup failed');
|
|
48
|
+
identities = JSON.parse(result.stdout);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
throw new Error(`Cannot read the Human identity for terminal sessions from ${configPath}: ${installerFailure(error)}. Check the saved workspace connection and complete workspace setup, then run the installer again.`);
|
|
55
51
|
}
|
|
56
|
-
if (
|
|
52
|
+
if (!Array.isArray(identities)) throw new Error('The saved workspace returned an invalid identity list. Check the workspace connection, then run the installer again.');
|
|
53
|
+
const roots = identities.filter(row => row?.kind === 'root');
|
|
54
|
+
if (roots.length !== 1 || typeof roots[0].cid !== 'string' || !/^[0-9a-f]{64}$/i.test(roots[0].cid))
|
|
55
|
+
throw new Error(`Terminal sessions require one Human identity in the saved workspace; found ${roots.length}. Complete Human identity setup for this workspace, then run the installer again.`);
|
|
56
|
+
const humanCid = roots[0].cid;
|
|
57
57
|
const fleetEntry = effects.realpath(fleetBin);
|
|
58
58
|
if (!fleetEntry || !isAbsolute(fleetEntry)) throw new Error('Cannot locate the installed Fleet executable for native session setup.');
|
|
59
59
|
const env = { OURS_CONFIG: configPath };
|
|
@@ -64,10 +64,10 @@ export async function setupNativeSessions(command, effects, { fleetBin, configPa
|
|
|
64
64
|
if (codex) {
|
|
65
65
|
if (effects.platform.platform !== 'linux') throw new Error('Automatic Codex discovery service setup currently supports Linux. Run ours-fleet participation serve-codex manually on this platform.');
|
|
66
66
|
await effects.run('systemctl', ['--user', 'show-environment']);
|
|
67
|
-
//
|
|
68
|
-
//
|
|
69
|
-
try { await effects.run('codex', ['app-server', 'daemon', '
|
|
70
|
-
catch (error) { throw new Error(`Codex App Server
|
|
67
|
+
// Starting the selected App Server is an installation action, not a
|
|
68
|
+
// response to a failed health check. Execute once; surface any failure.
|
|
69
|
+
try { await effects.run('codex', ['app-server', 'daemon', 'start'], { timeout: 30_000 }); }
|
|
70
|
+
catch (error) { throw new Error(`Could not start the Codex App Server: ${installerFailure(error)}. Check codex app-server daemon start, then run the installer again.`); }
|
|
71
71
|
unitPath = join(effects.home, '.config/systemd/user', NATIVE_CODEX_SERVICE);
|
|
72
72
|
const previous = effects.readText(unitPath);
|
|
73
73
|
if (previous !== null && (!previous.startsWith(marker + '\n') || !previous.includes(`# Profile: ${configPath}\n`)))
|
|
@@ -83,7 +83,7 @@ export async function setupNativeSessions(command, effects, { fleetBin, configPa
|
|
|
83
83
|
mergeNativeHooks(existing === null ? {} : JSON.parse(existing), generatedHooks);
|
|
84
84
|
}
|
|
85
85
|
// Fleet validates the selected root through the existing daemon. It owns the
|
|
86
|
-
// grant
|
|
86
|
+
// participation grant; the installer does not create an identity.
|
|
87
87
|
await cli(['participation', 'enable', '--human-cid', humanCid, '--authorize-registration-and-wake', ...(codex ? ['--codex'] : [])]);
|
|
88
88
|
try {
|
|
89
89
|
if (claude) {
|
|
@@ -100,7 +100,7 @@ export async function setupNativeSessions(command, effects, { fleetBin, configPa
|
|
|
100
100
|
await effects.run('systemctl', ['--user', 'daemon-reload']);
|
|
101
101
|
await effects.run('systemctl', ['--user', 'enable', NATIVE_CODEX_SERVICE]);
|
|
102
102
|
await effects.run('systemctl', ['--user', 'restart', NATIVE_CODEX_SERVICE]);
|
|
103
|
-
effects.out(ok(`Codex discovery service enabled
|
|
103
|
+
effects.out(ok(`Codex discovery service enabled and restarts after a failure; inspect it with journalctl --user -u ${NATIVE_CODEX_SERVICE}.`));
|
|
104
104
|
}
|
|
105
105
|
} catch (error) {
|
|
106
106
|
throw new Error(`Terminal sharing remains authorized, but setup did not complete: ${installerFailure(error)}. Re-run the same setup command to finish, or revoke sharing with OURS_CONFIG=${shellQuote(configPath)} ${shellQuote(fleetBin)} participation disable. No automatic recovery was attempted.`);
|
package/lib/orchestrate.mjs
CHANGED
|
@@ -1762,11 +1762,11 @@ export async function runClientCommand(command, effects) {
|
|
|
1762
1762
|
summary.push(await runFleetPhase(args, effects, { target, isDefaultStateDir: false }));
|
|
1763
1763
|
}
|
|
1764
1764
|
const incomplete = integrations.filter(name => !summary.some(row => row.key === name && row.state === 'installed'));
|
|
1765
|
-
if (incomplete.length &&
|
|
1766
|
-
effects.out(warn(`Terminal session setup
|
|
1767
|
-
if (!incomplete.length && integrations.
|
|
1765
|
+
if (incomplete.length && integrations.some(name => ['codex', 'claude-code'].includes(name)))
|
|
1766
|
+
effects.out(warn(`Terminal session setup could not finish because these integrations are incomplete: ${incomplete.join(', ')}. Existing sharing settings were retained; finish those integrations, then re-run the same setup command.`));
|
|
1767
|
+
if (!incomplete.length && integrations.some(name => ['codex', 'claude-code'].includes(name))) {
|
|
1768
1768
|
phase = 'Configure terminal session sharing';
|
|
1769
|
-
await setupNativeSessions(command, effects, { fleetBin: exactSuite.fleetBin, configPath: imported.configPath, integrations });
|
|
1769
|
+
await setupNativeSessions(command, effects, { fleetBin: exactSuite.fleetBin, cliBin: exactSuite.cliBin, configPath: imported.configPath, integrations });
|
|
1770
1770
|
}
|
|
1771
1771
|
if (effects.env.OURS_CONFIG && resolve(effects.env.OURS_CONFIG) !== imported.configPath)
|
|
1772
1772
|
effects.out(warn('This shell has an explicit OURS_CONFIG override. Unset it for new clients to use the saved default; installer did not edit your shell.'));
|
package/lib/plan.mjs
CHANGED
|
@@ -477,5 +477,5 @@ export function consumerServiceState(text, service, platform) {
|
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
export function clientPackageNames(integrations) {
|
|
480
|
-
return [...new Set(['sdk', 'cli', ...(integrations.some(name => ['codex', 'claude-code'].includes(name)) ? ['mcp'] : []), ...integrations])];
|
|
480
|
+
return [...new Set(['sdk', 'cli', ...(integrations.some(name => ['codex', 'claude-code'].includes(name)) ? ['mcp', 'fleet'] : []), ...integrations])];
|
|
481
481
|
}
|
package/lib/setup-options.mjs
CHANGED
|
@@ -12,7 +12,6 @@ const valueFlags = new Map(Object.entries({
|
|
|
12
12
|
'--container-engine': 'containerEngine', '--server-url': 'serverUrl', '--scope': 'scope', '--action': 'operation', '--mode': 'mode', '--state-dir': 'stateDir',
|
|
13
13
|
'--username': 'localUsername', '--name': 'name', '--surname': 'surname', '--hostname': 'hostname',
|
|
14
14
|
'--identity-name': 'identityName', '--integrations': 'integrations', '--fleet-settings': 'fleetSettingsPath', '--fleet-task-workflow': 'fleetTaskWorkflowAgents',
|
|
15
|
-
'--native-sessions-human-cid': 'nativeSessionsHumanCid',
|
|
16
15
|
'--config': 'config', '--sources': 'sources', '--port': 'port', '--cowork-port': 'coworkPort', '--messenger-port': 'messengerPort',
|
|
17
16
|
}));
|
|
18
17
|
const boolFlags = new Map([['--compatible', 'compatible'], ['--dry-run', 'dryRun'], ['--migrate', 'migrate'], ['--disable-fleet-agents-setup', 'disableFleetAgentsSetup']]);
|
|
@@ -38,11 +37,6 @@ export function validateSetupOptions(input, { interactive = input?.interactive =
|
|
|
38
37
|
if (!['install', 'update'].includes(options.operation)) throw new Error('Operation must be install or update');
|
|
39
38
|
const server = options.scope !== 'client';
|
|
40
39
|
const client = options.scope !== 'server';
|
|
41
|
-
if (options.nativeSessionsHumanCid !== undefined) {
|
|
42
|
-
if (!client || !options.integrations?.includes('fleet') || !options.integrations.some(name => ['claude-code', 'codex'].includes(name)))
|
|
43
|
-
throw new Error('--native-sessions-human-cid requires Fleet and a Claude Code or Codex integration');
|
|
44
|
-
if (!/^[0-9a-f]{64}$/i.test(options.nativeSessionsHumanCid)) throw new Error('--native-sessions-human-cid requires a 64-character hexadecimal Human root CID');
|
|
45
|
-
}
|
|
46
40
|
const suppliedHuman = ['localUsername', 'name', 'surname'].some(key => options[key] !== undefined);
|
|
47
41
|
if (suppliedHuman) {
|
|
48
42
|
for (const key of ['localUsername', 'name', 'surname']) if (!nonempty(options[key])) throw new Error(`Missing human profile option: ${key}`);
|
package/lib/setup.mjs
CHANGED
|
@@ -149,7 +149,6 @@ export async function executeSetupPlan(plan, effects, { server = runServerComman
|
|
|
149
149
|
const result = await client({ role: 'client', operation: 'install', config: clientConfig,
|
|
150
150
|
integrations: plan.integrations, fleetSettingsPath: plan.fleetSettingsPath, sourcePolicy: clientPolicy,
|
|
151
151
|
disableFleetAgentsSetup: plan.disableFleetAgentsSetup, fleetTaskWorkflowAgents: plan.fleetTaskWorkflowAgents,
|
|
152
|
-
nativeSessionsHumanCid: plan.nativeSessionsHumanCid,
|
|
153
152
|
preset: true, nonInteractive: !plan.interactive }, effects);
|
|
154
153
|
if (result !== 0) return result;
|
|
155
154
|
}
|
package/lib/usage.mjs
CHANGED
|
@@ -55,7 +55,6 @@ export const USAGE = `ours-install — interactive setup with optional CLI prese
|
|
|
55
55
|
--integrations LIST codex,claude-code,fleet; use none to skip clients explicitly
|
|
56
56
|
--fleet-settings PATH JSON settings for Fleet; required unless Fleet agents setup is disabled
|
|
57
57
|
--fleet-task-workflow A[,B] let these Fleet agents run Fleet task commands outside their command sandbox
|
|
58
|
-
--native-sessions-human-cid CID opt in to terminal history, browser input and peer-mail wake under this Human
|
|
59
58
|
--config PATH complete connection profile for client-only setup
|
|
60
59
|
--sources PATH explicit full development source policy override
|
|
61
60
|
--port N public gateway port for Docker (default 3050; e.g. 4050)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ours.network/install",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.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",
|