@ours.network/install 1.2.1-nightly.45 → 1.2.1-nightly.47
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/GATEWAY_SETUP.md +3 -3
- package/README.md +2 -2
- package/assets/release-lock.json +30 -18
- package/assets/release.json +7 -7
- package/assets/sources.json +10 -10
- package/lib/effects.mjs +12 -0
- package/lib/gateway.mjs +1 -0
- package/package.json +1 -1
package/GATEWAY_SETUP.md
CHANGED
|
@@ -11,9 +11,9 @@ control local processes; they do not carry server management requests.
|
|
|
11
11
|
|
|
12
12
|
The nightly manifest selects one published dependency graph: SDK
|
|
13
13
|
`3.8.1-nightly.18`, CLI `2.8.1-nightly.16`, daemon `3.8.1-nightly.10`,
|
|
14
|
-
Fleet `1.2.0-nightly.
|
|
15
|
-
Telegram `1.0.1-nightly.12`, Messenger `1.0.31-nightly.
|
|
16
|
-
`1.3.4-nightly.20261013.e8a690f`. Exact archive checksums are retained in
|
|
14
|
+
Fleet `1.2.0-nightly.63`, MCP/Codex/Claude Code `1.2.0-nightly.14`,
|
|
15
|
+
Telegram `1.0.1-nightly.12`, Messenger `1.0.31-nightly.19`, Notifications
|
|
16
|
+
`0.3.1-nightly.4`, and Cowork `1.3.4-nightly.20261013.e8a690f`. Exact archive checksums are retained in
|
|
17
17
|
`releases/nightly.json`; the host CLI uses the same SDK/CLI pair.
|
|
18
18
|
|
|
19
19
|
The coordinated installer release must include these pins before using the
|
package/README.md
CHANGED
|
@@ -739,7 +739,7 @@ Existing installation records keep their ports and identities. A listener acquir
|
|
|
739
739
|
by another process after preflight still causes startup to fail safely; no foreign
|
|
740
740
|
process is stopped and no retained installation is silently moved.
|
|
741
741
|
|
|
742
|
-
Workspace setup pins Fleet `1.2.0-nightly.
|
|
742
|
+
Workspace setup pins Fleet `1.2.0-nightly.63` with its recorded registry integrity. This release includes first-time Fleet setup through the host API for the account App, direct App access to the workspace services with the device credential, v2 positional one-use grants and automatic QR/connection-code output from `ours-fleet setup-tunnel`, optional private file/stdin inputs for legacy v1 payloads, a separate `ours-fleet link-device` command for additional devices, host prerequisite checks before the one-time workspace proof (`setup-tunnel --check`), `setup-tunnel --resume` to finish a setup that stopped after the host saved its private pending setup record (not when the proof's answer was lost, or after the setup window expired with an unconfirmed non-default port), and persists the available Fleet loopback port used by the workspace tunnel. It also accepts a setup-generated configuration left behind after the host enrollment state was removed, runs the host Codex when it is at least as new as the packaged one, offers only the Codex models the signed-in account can use, and removes the temporary setup contact after confirmation. Fleet serves no pages and opens no browser: every screen is in the App. Fleet also serves the workspace notification routes, produces notifications through the server gateway with the imported producer credential, accepts the App's device credential on the notification presence socket so an open App receives no push, and defaults agent wakes to `monitor.interrupt: after_tool` (Hermes: no interrupt; role snapshots saved before this default keep no interrupt). Existing installation identities and configured ports remain retained; a retained-port collision fails safely.
|
|
743
743
|
|
|
744
744
|
### App tunnel setup prerelease sequencing
|
|
745
745
|
|
|
@@ -756,7 +756,7 @@ connection code automatically; the App checks readiness and opens the code field
|
|
|
756
756
|
Private `--file`/`--stdin` transports remain optional and are the only transports
|
|
757
757
|
for legacy v1 payloads with long-lived credentials.
|
|
758
758
|
|
|
759
|
-
The nightly installer release manifest selects published Fleet `1.2.0-nightly.
|
|
759
|
+
The nightly installer release manifest selects published Fleet `1.2.0-nightly.63`
|
|
760
760
|
and its actual registry integrity through the normal release manifest/source-policy
|
|
761
761
|
generators. This release includes v2 argument and private-input support. The former
|
|
762
762
|
nightly.41 selection predates this capability. Merge and publish the repinned
|
package/assets/release-lock.json
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"@ours.network/codex": "1.2.0-nightly.14",
|
|
14
14
|
"@ours.network/cowork": "1.3.4-nightly.20261013.e8a690f",
|
|
15
15
|
"@ours.network/daemon": "3.8.1-nightly.10",
|
|
16
|
-
"@ours.network/fleet": "1.2.0-nightly.
|
|
16
|
+
"@ours.network/fleet": "1.2.0-nightly.63",
|
|
17
17
|
"@ours.network/mcp": "1.2.0-nightly.14",
|
|
18
|
-
"@ours.network/messenger-server": "1.0.31-nightly.
|
|
19
|
-
"@ours.network/notifications": "0.3.1-nightly.
|
|
18
|
+
"@ours.network/messenger-server": "1.0.31-nightly.19",
|
|
19
|
+
"@ours.network/notifications": "0.3.1-nightly.4",
|
|
20
20
|
"@ours.network/sdk": "3.8.1-nightly.18",
|
|
21
21
|
"@ours.network/tg-connector": "1.0.1-nightly.12"
|
|
22
22
|
}
|
|
@@ -542,13 +542,14 @@
|
|
|
542
542
|
]
|
|
543
543
|
},
|
|
544
544
|
"node_modules/@anthropic-ai/sdk": {
|
|
545
|
-
"version": "0.
|
|
546
|
-
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.
|
|
547
|
-
"integrity": "sha512-
|
|
545
|
+
"version": "0.134.0",
|
|
546
|
+
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.134.0.tgz",
|
|
547
|
+
"integrity": "sha512-j0DNXXKUKkr3kKyVR/I3pPWVv93g7vgHjgGYgh9uCXv5IKoXZPWmTwXKiVq/SZSbhBaD3KmtKhIszzt8dBnzog==",
|
|
548
548
|
"license": "MIT",
|
|
549
549
|
"optional": true,
|
|
550
550
|
"peer": true,
|
|
551
551
|
"dependencies": {
|
|
552
|
+
"@opentelemetry/api": "^1.4.1",
|
|
552
553
|
"json-schema-to-ts": "^3.1.1",
|
|
553
554
|
"standardwebhooks": "^1.0.0"
|
|
554
555
|
},
|
|
@@ -923,6 +924,17 @@
|
|
|
923
924
|
"node": ">=16"
|
|
924
925
|
}
|
|
925
926
|
},
|
|
927
|
+
"node_modules/@opentelemetry/api": {
|
|
928
|
+
"version": "1.9.1",
|
|
929
|
+
"resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.1.tgz",
|
|
930
|
+
"integrity": "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==",
|
|
931
|
+
"license": "Apache-2.0",
|
|
932
|
+
"optional": true,
|
|
933
|
+
"peer": true,
|
|
934
|
+
"engines": {
|
|
935
|
+
"node": ">=8.0.0"
|
|
936
|
+
}
|
|
937
|
+
},
|
|
926
938
|
"node_modules/@ours.network/claude-code": {
|
|
927
939
|
"version": "1.2.0-nightly.14",
|
|
928
940
|
"resolved": "https://registry.npmjs.org/@ours.network/claude-code/-/claude-code-1.2.0-nightly.14.tgz",
|
|
@@ -1018,9 +1030,9 @@
|
|
|
1018
1030
|
}
|
|
1019
1031
|
},
|
|
1020
1032
|
"node_modules/@ours.network/fleet": {
|
|
1021
|
-
"version": "1.2.0-nightly.
|
|
1022
|
-
"resolved": "https://registry.npmjs.org/@ours.network/fleet/-/fleet-1.2.0-nightly.
|
|
1023
|
-
"integrity": "sha512-
|
|
1033
|
+
"version": "1.2.0-nightly.63",
|
|
1034
|
+
"resolved": "https://registry.npmjs.org/@ours.network/fleet/-/fleet-1.2.0-nightly.63.tgz",
|
|
1035
|
+
"integrity": "sha512-IlpPKMwMSF+zF3B8qyU75yjW7J7c+URX2pE+Ud/3FF3ECaPeYV5Mk15LUINSasThKb8LU9iTDq6JSeXBNqgh/A==",
|
|
1024
1036
|
"license": "FSL-1.1-Apache-2.0",
|
|
1025
1037
|
"dependencies": {
|
|
1026
1038
|
"@agentclientprotocol/sdk": "^1.3.0",
|
|
@@ -1064,9 +1076,9 @@
|
|
|
1064
1076
|
}
|
|
1065
1077
|
},
|
|
1066
1078
|
"node_modules/@ours.network/messenger-server": {
|
|
1067
|
-
"version": "1.0.31-nightly.
|
|
1068
|
-
"resolved": "https://registry.npmjs.org/@ours.network/messenger-server/-/messenger-server-1.0.31-nightly.
|
|
1069
|
-
"integrity": "sha512-
|
|
1079
|
+
"version": "1.0.31-nightly.19",
|
|
1080
|
+
"resolved": "https://registry.npmjs.org/@ours.network/messenger-server/-/messenger-server-1.0.31-nightly.19.tgz",
|
|
1081
|
+
"integrity": "sha512-2yuvk8B5W5giQQoZu5HOd9ZS1D3aLI/1J1HZKlHKHQ34LDMMLtHpZf3oMNPXyrZWpZJm4p3hC9X8Pf13pOmcYw==",
|
|
1070
1082
|
"license": "FSL-1.1-Apache-2.0",
|
|
1071
1083
|
"dependencies": {
|
|
1072
1084
|
"@eslint-community/regexpp": "4.12.2",
|
|
@@ -1083,9 +1095,9 @@
|
|
|
1083
1095
|
}
|
|
1084
1096
|
},
|
|
1085
1097
|
"node_modules/@ours.network/notifications": {
|
|
1086
|
-
"version": "0.3.1-nightly.
|
|
1087
|
-
"resolved": "https://registry.npmjs.org/@ours.network/notifications/-/notifications-0.3.1-nightly.
|
|
1088
|
-
"integrity": "sha512-
|
|
1098
|
+
"version": "0.3.1-nightly.4",
|
|
1099
|
+
"resolved": "https://registry.npmjs.org/@ours.network/notifications/-/notifications-0.3.1-nightly.4.tgz",
|
|
1100
|
+
"integrity": "sha512-z2n4MKigIsDNvOBgJ6rhyWMHT+lfAFNT8bL9mna1IR0ysSz4diAHZSvdc18KE5AdXEXr4YypH9Rmx7frMPG6rA==",
|
|
1089
1101
|
"license": "FSL-1.1-Apache-2.0",
|
|
1090
1102
|
"dependencies": {
|
|
1091
1103
|
"web-push": "3.6.7",
|
|
@@ -3027,9 +3039,9 @@
|
|
|
3027
3039
|
}
|
|
3028
3040
|
},
|
|
3029
3041
|
"node_modules/qs": {
|
|
3030
|
-
"version": "6.16.
|
|
3031
|
-
"resolved": "https://registry.npmjs.org/qs/-/qs-6.16.
|
|
3032
|
-
"integrity": "sha512-
|
|
3042
|
+
"version": "6.16.1",
|
|
3043
|
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.16.1.tgz",
|
|
3044
|
+
"integrity": "sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==",
|
|
3033
3045
|
"license": "BSD-3-Clause",
|
|
3034
3046
|
"dependencies": {
|
|
3035
3047
|
"es-define-property": "^1.0.1",
|
package/assets/release.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"channel": "nightly",
|
|
4
|
-
"installerVersion": "1.2.1-nightly.
|
|
4
|
+
"installerVersion": "1.2.1-nightly.47",
|
|
5
5
|
"packages": {
|
|
6
6
|
"@ours.network/sdk": {
|
|
7
7
|
"version": "3.8.1-nightly.18",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"integrity": "sha512-t0eQoyMcfp5ar/eXkvGwTHHkkwvuD119WMbcFffsRhknJkZtnQOeLcKgfIiajVwk1HZIEONNeA4Eibml5M0DGw=="
|
|
21
21
|
},
|
|
22
22
|
"@ours.network/messenger-server": {
|
|
23
|
-
"version": "1.0.31-nightly.
|
|
24
|
-
"integrity": "sha512-
|
|
23
|
+
"version": "1.0.31-nightly.19",
|
|
24
|
+
"integrity": "sha512-2yuvk8B5W5giQQoZu5HOd9ZS1D3aLI/1J1HZKlHKHQ34LDMMLtHpZf3oMNPXyrZWpZJm4p3hC9X8Pf13pOmcYw=="
|
|
25
25
|
},
|
|
26
26
|
"@ours.network/notifications": {
|
|
27
|
-
"version": "0.3.1-nightly.
|
|
28
|
-
"integrity": "sha512-
|
|
27
|
+
"version": "0.3.1-nightly.4",
|
|
28
|
+
"integrity": "sha512-z2n4MKigIsDNvOBgJ6rhyWMHT+lfAFNT8bL9mna1IR0ysSz4diAHZSvdc18KE5AdXEXr4YypH9Rmx7frMPG6rA=="
|
|
29
29
|
},
|
|
30
30
|
"@ours.network/fleet": {
|
|
31
|
-
"version": "1.2.0-nightly.
|
|
32
|
-
"integrity": "sha512-
|
|
31
|
+
"version": "1.2.0-nightly.63",
|
|
32
|
+
"integrity": "sha512-IlpPKMwMSF+zF3B8qyU75yjW7J7c+URX2pE+Ud/3FF3ECaPeYV5Mk15LUINSasThKb8LU9iTDq6JSeXBNqgh/A=="
|
|
33
33
|
},
|
|
34
34
|
"@ours.network/mcp": {
|
|
35
35
|
"version": "1.2.0-nightly.14",
|
package/assets/sources.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"release": {
|
|
3
3
|
"schema": 1,
|
|
4
4
|
"channel": "nightly",
|
|
5
|
-
"installerVersion": "1.2.1-nightly.
|
|
5
|
+
"installerVersion": "1.2.1-nightly.47",
|
|
6
6
|
"packages": {
|
|
7
7
|
"@ours.network/sdk": {
|
|
8
8
|
"version": "3.8.1-nightly.18",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"integrity": "sha512-t0eQoyMcfp5ar/eXkvGwTHHkkwvuD119WMbcFffsRhknJkZtnQOeLcKgfIiajVwk1HZIEONNeA4Eibml5M0DGw=="
|
|
22
22
|
},
|
|
23
23
|
"@ours.network/messenger-server": {
|
|
24
|
-
"version": "1.0.31-nightly.
|
|
25
|
-
"integrity": "sha512-
|
|
24
|
+
"version": "1.0.31-nightly.19",
|
|
25
|
+
"integrity": "sha512-2yuvk8B5W5giQQoZu5HOd9ZS1D3aLI/1J1HZKlHKHQ34LDMMLtHpZf3oMNPXyrZWpZJm4p3hC9X8Pf13pOmcYw=="
|
|
26
26
|
},
|
|
27
27
|
"@ours.network/notifications": {
|
|
28
|
-
"version": "0.3.1-nightly.
|
|
29
|
-
"integrity": "sha512-
|
|
28
|
+
"version": "0.3.1-nightly.4",
|
|
29
|
+
"integrity": "sha512-z2n4MKigIsDNvOBgJ6rhyWMHT+lfAFNT8bL9mna1IR0ysSz4diAHZSvdc18KE5AdXEXr4YypH9Rmx7frMPG6rA=="
|
|
30
30
|
},
|
|
31
31
|
"@ours.network/fleet": {
|
|
32
|
-
"version": "1.2.0-nightly.
|
|
33
|
-
"integrity": "sha512-
|
|
32
|
+
"version": "1.2.0-nightly.63",
|
|
33
|
+
"integrity": "sha512-IlpPKMwMSF+zF3B8qyU75yjW7J7c+URX2pE+Ud/3FF3ECaPeYV5Mk15LUINSasThKb8LU9iTDq6JSeXBNqgh/A=="
|
|
34
34
|
},
|
|
35
35
|
"@ours.network/mcp": {
|
|
36
36
|
"version": "1.2.0-nightly.14",
|
|
@@ -79,15 +79,15 @@
|
|
|
79
79
|
},
|
|
80
80
|
"@ours.network/messenger-server": {
|
|
81
81
|
"type": "npm",
|
|
82
|
-
"version": "1.0.31-nightly.
|
|
82
|
+
"version": "1.0.31-nightly.19"
|
|
83
83
|
},
|
|
84
84
|
"@ours.network/notifications": {
|
|
85
85
|
"type": "npm",
|
|
86
|
-
"version": "0.3.1-nightly.
|
|
86
|
+
"version": "0.3.1-nightly.4"
|
|
87
87
|
},
|
|
88
88
|
"@ours.network/fleet": {
|
|
89
89
|
"type": "npm",
|
|
90
|
-
"version": "1.2.0-nightly.
|
|
90
|
+
"version": "1.2.0-nightly.63"
|
|
91
91
|
},
|
|
92
92
|
"@ours.network/mcp": {
|
|
93
93
|
"type": "npm",
|
package/lib/effects.mjs
CHANGED
|
@@ -690,12 +690,20 @@ export function networkEffects(effects) {
|
|
|
690
690
|
const args = service === 'daemon' ? [...(daemonBinary === 'ours' ? ['daemon'] : []), op, ...(['install-service', 'uninstall-service'].includes(op) ? ['--yes'] : []), '--config', record.configPath, '--state-dir', installationPaths(record).daemon, '--json'] : [op];
|
|
691
691
|
return effects.run(bin(record, name), args, { ...options, env: localEnv(record, service) });
|
|
692
692
|
};
|
|
693
|
+
const statelessGateway = (record, detail) => {
|
|
694
|
+
const labels = detail?.Config?.Labels ?? {};
|
|
695
|
+
return labels['com.docker.compose.project'] === record.project && labels['com.docker.compose.service'] === 'gateway'
|
|
696
|
+
&& detail.HostConfig?.ReadonlyRootfs === true && Array.isArray(detail.Mounts) && detail.Mounts.every(mount => mount.Type === 'tmpfs');
|
|
697
|
+
};
|
|
693
698
|
const requireCleanContainerExit = async (record, selected) => {
|
|
694
699
|
const containers = await compose(record, ['ps', '-aq', ...selected]);
|
|
695
700
|
for (const id of containers.stdout.split(/\s+/).filter(Boolean)) {
|
|
696
701
|
const result = await container(record, ['inspect', '--format', '{{json .State}}', id]);
|
|
697
702
|
const state = JSON.parse(result.stdout);
|
|
698
703
|
if (state.Status !== 'exited' || state.ExitCode !== 0 || state.OOMKilled !== false || state.Dead !== false) {
|
|
704
|
+
// A forced gateway stop cannot damage stored state: accept it only when
|
|
705
|
+
// the container itself proves it has a read-only root and tmpfs mounts.
|
|
706
|
+
if (state.Status === 'exited' && statelessGateway(record, JSON.parse((await container(record, ['inspect', '--format', '{{json .}}', id])).stdout))) continue;
|
|
699
707
|
throw new Error('Selected source container did not stop cleanly; state operation refused');
|
|
700
708
|
}
|
|
701
709
|
}
|
|
@@ -1430,6 +1438,10 @@ export function networkEffects(effects) {
|
|
|
1430
1438
|
}
|
|
1431
1439
|
if (operation === 'stop') {
|
|
1432
1440
|
const consumers = selected.filter(s => s !== 'daemon').reverse();
|
|
1441
|
+
// Gateways created before stop_signal was set still stop with nginx's
|
|
1442
|
+
// SIGQUIT, which waits for open streams beyond the grace period and
|
|
1443
|
+
// ends in SIGKILL. SIGTERM is nginx's fast shutdown; it exits cleanly.
|
|
1444
|
+
if (consumers.includes('gateway')) await compose(record, ['kill', '-s', 'SIGTERM', 'gateway']);
|
|
1433
1445
|
if (consumers.length) await compose(record, ['stop', ...consumers]);
|
|
1434
1446
|
if (selected.includes('daemon')) await compose(record, ['stop', 'daemon']);
|
|
1435
1447
|
if ((await effects.serverLifecycle(record, 'status', selected)).length) throw new Error('Writers did not stop');
|
package/lib/gateway.mjs
CHANGED
|
@@ -57,6 +57,7 @@ export function gatewayCompose(record) {
|
|
|
57
57
|
ports:
|
|
58
58
|
- {target: 8080, published: "${record.port}", host_ip: "127.0.0.1"}
|
|
59
59
|
restart: unless-stopped
|
|
60
|
+
stop_signal: SIGTERM
|
|
60
61
|
stop_grace_period: 10s
|
|
61
62
|
healthcheck:
|
|
62
63
|
test: [CMD, wget, -q, -O, /dev/null, http://127.0.0.1:8080/healthz]
|
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.47",
|
|
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",
|