@ours.network/install 2.0.1 → 2.0.3

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 CHANGED
@@ -521,9 +521,16 @@ removed. Messenger produces message notifications over loopback.
521
521
 
522
522
  `prepare` creates the private configuration once in
523
523
  `storage/state/notifications/config.json`: the owner token, separate Fleet and
524
- Messenger producer tokens, and VAPID keys. Later runs only validate it; rotating
525
- the owner token or VAPID keys would orphan every browser subscription, so a
526
- differing configuration is refused rather than rewritten. Back it up with the
524
+ Messenger producer tokens, and VAPID keys. Fresh setup and updates explicitly grant
525
+ `mission-ownership` only to the installer-selected `owner` / `fleet` producer,
526
+ so Fleet can register and retire its mission notification targets. Messenger
527
+ keeps its existing message-only producer permissions. The migration retains all
528
+ tokens, VAPID keys, preferences and other configuration fields, and is idempotent;
529
+ an existing Fleet delivery token must match the selected producer before any
530
+ grant. A differing or ambiguous configuration is refused for maintenance rather
531
+ than guessed. The gateway passes only the exact mission association, bootstrap
532
+ and deletion POST routes using that producer credential, after checking the
533
+ server credential; Notifications still enforces its account and capability scope. Back it up with the
527
534
  rest of the server state. A local client setup binds the Fleet producer token
528
535
  to this server in `~/.ours-client/notifications-producer.json`; Fleet then sends
529
536
  agent completions through `<serverUrl>/notifications/`. Remote clients and
package/assets/Dockerfile CHANGED
@@ -22,7 +22,7 @@ COPY --chmod=644 scripts/maintenance/build-context.mjs scripts/maintenance/prove
22
22
  COPY --chmod=644 scripts/runtime/runtime-common.mjs /opt/ours/docker/runtime-common.mjs
23
23
  COPY --chmod=644 scripts/runtime/check-client.mjs /opt/ours/docker/check-client.mjs
24
24
  COPY --chmod=644 scripts/runtime/check-start.mjs /opt/ours/docker/check-start.mjs
25
- COPY --chmod=644 scripts/runtime/client-setup.mjs /opt/ours/docker/client-setup.mjs
25
+ COPY --chmod=644 scripts/runtime/client-setup.mjs scripts/runtime/notification-config.mjs /opt/ours/docker/
26
26
  COPY --chmod=644 scripts/runtime/diagnostics.mjs /opt/ours/docker/diagnostics.mjs
27
27
  COPY --chmod=644 scripts/runtime/legacy-import.mjs /opt/ours/docker/legacy-import.mjs
28
28
  COPY --chmod=644 scripts/runtime/entrypoint.sh /opt/ours/docker/entrypoint.sh
@@ -8,17 +8,17 @@
8
8
  "name": "ours-release-set-verification",
9
9
  "version": "0.0.0",
10
10
  "dependencies": {
11
- "@ours.network/claude-code": "2.0.0",
12
- "@ours.network/cli": "4.0.0",
13
- "@ours.network/codex": "2.0.0",
14
- "@ours.network/cowork": "2.0.0",
15
- "@ours.network/daemon": "5.0.0",
16
- "@ours.network/fleet": "2.0.0",
17
- "@ours.network/mcp": "2.0.0",
18
- "@ours.network/messenger-server": "2.0.0",
19
- "@ours.network/notifications": "1.0.0",
20
- "@ours.network/sdk": "5.0.0",
21
- "@ours.network/tg-connector": "2.0.0"
11
+ "@ours.network/claude-code": "2.0.1",
12
+ "@ours.network/cli": "4.0.1",
13
+ "@ours.network/codex": "2.0.1",
14
+ "@ours.network/cowork": "2.0.1",
15
+ "@ours.network/daemon": "5.0.1",
16
+ "@ours.network/fleet": "2.2.0",
17
+ "@ours.network/mcp": "2.0.1",
18
+ "@ours.network/messenger-server": "2.0.1",
19
+ "@ours.network/notifications": "1.0.1",
20
+ "@ours.network/sdk": "5.0.1",
21
+ "@ours.network/tg-connector": "2.0.1"
22
22
  }
23
23
  },
24
24
  "node_modules/@adapt-toolkit/sdk": {
@@ -952,14 +952,14 @@
952
952
  }
953
953
  },
954
954
  "node_modules/@ours.network/claude-code": {
955
- "version": "2.0.0",
956
- "resolved": "https://registry.npmjs.org/@ours.network/claude-code/-/claude-code-2.0.0.tgz",
957
- "integrity": "sha512-aRrdBt8F5JNbGL3KNorzSamjqJVB3RiEmjATzY2q33T9dqh38dd1u2yIOvwQZaLxfh4+l/G0BX/WNGZUHsYKIQ==",
955
+ "version": "2.0.1",
956
+ "resolved": "https://registry.npmjs.org/@ours.network/claude-code/-/claude-code-2.0.1.tgz",
957
+ "integrity": "sha512-AxhhV2yXxJyVZRPOD2yhYSag9BvgEpXriYios9qxrN3d107LYELZswXPpfxYJckNg4dIwHYouBGf9i2VJT4v9g==",
958
958
  "license": "FSL-1.1-Apache-2.0",
959
959
  "dependencies": {
960
960
  "@modelcontextprotocol/sdk": "^1.29.0",
961
- "@ours.network/mcp": "2.0.0",
962
- "@ours.network/sdk": "5.0.0",
961
+ "@ours.network/mcp": "2.0.1",
962
+ "@ours.network/sdk": "5.0.1",
963
963
  "ws": "^8.21.0",
964
964
  "zod": "^3.25.76"
965
965
  },
@@ -968,12 +968,12 @@
968
968
  }
969
969
  },
970
970
  "node_modules/@ours.network/cli": {
971
- "version": "4.0.0",
972
- "resolved": "https://registry.npmjs.org/@ours.network/cli/-/cli-4.0.0.tgz",
973
- "integrity": "sha512-EGQQbIJDy2PCJ8neL7E9b0EcRXzm7VHZIO2gnznMGRiUCrQmbZX+zndWE76oGPW9pVKEa927zSXJZdZOTPU8KA==",
971
+ "version": "4.0.1",
972
+ "resolved": "https://registry.npmjs.org/@ours.network/cli/-/cli-4.0.1.tgz",
973
+ "integrity": "sha512-kFLW5E6aB3YN6VbMMu18gx/A/aJSG8yypHtvsG2jDius0tHBi+ckvQ9XxWRis9exnIw1nqu7ajfQq4J+HI7iNw==",
974
974
  "license": "FSL-1.1-Apache-2.0",
975
975
  "dependencies": {
976
- "@ours.network/sdk": "^5.0.0"
976
+ "@ours.network/sdk": "^5.0.1"
977
977
  },
978
978
  "bin": {
979
979
  "ours": "dist/cli.js"
@@ -983,14 +983,14 @@
983
983
  }
984
984
  },
985
985
  "node_modules/@ours.network/codex": {
986
- "version": "2.0.0",
987
- "resolved": "https://registry.npmjs.org/@ours.network/codex/-/codex-2.0.0.tgz",
988
- "integrity": "sha512-OUbNbSE7fxfR2prU6CPIc2QtUTIGpQ95xRX3itd6Gd3QNQzZpL7VzDyLh1ekxXwLTcsMuIxjggWlQd/BjgV3wA==",
986
+ "version": "2.0.1",
987
+ "resolved": "https://registry.npmjs.org/@ours.network/codex/-/codex-2.0.1.tgz",
988
+ "integrity": "sha512-YZZXi+dwxSz2IgHQ334auOLpKZlmg0MCPmGaXnS2ZjI6GZFKzJxjYegvvEkQOVEKJL8CEhuZ7DFdJ5i4+oW6Xw==",
989
989
  "license": "FSL-1.1-Apache-2.0",
990
990
  "dependencies": {
991
991
  "@modelcontextprotocol/sdk": "^1.29.0",
992
- "@ours.network/mcp": "2.0.0",
993
- "@ours.network/sdk": "5.0.0",
992
+ "@ours.network/mcp": "2.0.1",
993
+ "@ours.network/sdk": "5.0.1",
994
994
  "ws": "^8.21.0",
995
995
  "zod": "^3.25.76"
996
996
  },
@@ -1003,12 +1003,12 @@
1003
1003
  }
1004
1004
  },
1005
1005
  "node_modules/@ours.network/cowork": {
1006
- "version": "2.0.0",
1007
- "resolved": "https://registry.npmjs.org/@ours.network/cowork/-/cowork-2.0.0.tgz",
1008
- "integrity": "sha512-Y8dR4phd73Q3PXZdGh0yWMkFnI9BFp/s+FT1JenziY5G/Tv/62bGVMtruFfhrqF150rYHAj8v5NRy4w3qgPrjw==",
1006
+ "version": "2.0.1",
1007
+ "resolved": "https://registry.npmjs.org/@ours.network/cowork/-/cowork-2.0.1.tgz",
1008
+ "integrity": "sha512-KrDQ+4S33BZJ3HuD+704kdq/Ezk5qrVB78YsSkAxS1dlq6z3EHPDkn4579I23/0QwbhKko71o4qUYo7JOAlz2w==",
1009
1009
  "license": "FSL-1.1-Apache-2.0",
1010
1010
  "dependencies": {
1011
- "@ours.network/sdk": "5.0.0",
1011
+ "@ours.network/sdk": "5.0.1",
1012
1012
  "ajv": "8.20.0",
1013
1013
  "better-sqlite3": "13.0.3",
1014
1014
  "react": "18.3.1",
@@ -1023,14 +1023,14 @@
1023
1023
  }
1024
1024
  },
1025
1025
  "node_modules/@ours.network/daemon": {
1026
- "version": "5.0.0",
1027
- "resolved": "https://registry.npmjs.org/@ours.network/daemon/-/daemon-5.0.0.tgz",
1028
- "integrity": "sha512-B/TYgk9onup1woVzlKk9cK0lnhPzmc9DWoPQvuJrrPhoYwmQVVd6brEUCcwYnSkO5gh7HBWZ9o+sA+tROoykjg==",
1026
+ "version": "5.0.1",
1027
+ "resolved": "https://registry.npmjs.org/@ours.network/daemon/-/daemon-5.0.1.tgz",
1028
+ "integrity": "sha512-fovi1la/WmajrPnSKGH+d7f1CqoMxPcbjhU6fRBSpKIVdxkQPLwflbJwL/vfAwuwrl1SOLLMJFUJskVXYJdDRw==",
1029
1029
  "license": "FSL-1.1-Apache-2.0",
1030
1030
  "dependencies": {
1031
1031
  "@adapt-toolkit/sdk": "0.12.1",
1032
1032
  "@adapt-toolkit/sdk-native": "0.12.1",
1033
- "@ours.network/sdk": "^5.0.0",
1033
+ "@ours.network/sdk": "^5.0.1",
1034
1034
  "ajv": "^8.20.0",
1035
1035
  "pg": "^8.16.3",
1036
1036
  "ws": "^8.22.0"
@@ -1046,16 +1046,16 @@
1046
1046
  }
1047
1047
  },
1048
1048
  "node_modules/@ours.network/fleet": {
1049
- "version": "2.0.0",
1050
- "resolved": "https://registry.npmjs.org/@ours.network/fleet/-/fleet-2.0.0.tgz",
1051
- "integrity": "sha512-JBL8P/ObjamR80i+xli5dHb+azWsLWVocm5mclttt6Zn6h0ZGHvjVoLPiAZq1nrPG9fJHhkmE1RaPKHvZhZ2xg==",
1049
+ "version": "2.2.0",
1050
+ "resolved": "https://registry.npmjs.org/@ours.network/fleet/-/fleet-2.2.0.tgz",
1051
+ "integrity": "sha512-oA/M5FGjFg23NkPl7sIWaVxhwZ+7vqyHWKzbpm0U2mzeQuwHJiCKjgK+V5oJkU5sa2y3vL6v88AffvTXMEfNbA==",
1052
1052
  "license": "FSL-1.1-Apache-2.0",
1053
1053
  "dependencies": {
1054
1054
  "@agentclientprotocol/sdk": "^1.3.0",
1055
1055
  "@fastify/websocket": "^11.2.0",
1056
- "@ours.network/cli": "4.0.0",
1057
- "@ours.network/mcp": "2.0.0",
1058
- "@ours.network/sdk": "5.0.0",
1056
+ "@ours.network/cli": "4.0.1",
1057
+ "@ours.network/mcp": "2.0.1",
1058
+ "@ours.network/sdk": "5.0.1",
1059
1059
  "commander": "^12.1.0",
1060
1060
  "fastify": "^5.4.0",
1061
1061
  "qrcode": "1.5.4",
@@ -1068,7 +1068,7 @@
1068
1068
  "ours-fleet": "dist/cli.js"
1069
1069
  },
1070
1070
  "engines": {
1071
- "node": ">=22.13.0"
1071
+ "node": ">=22.23.4 <23 || >=24.22.1 <25 || >=26.12.1 <27"
1072
1072
  },
1073
1073
  "optionalDependencies": {
1074
1074
  "@agentclientprotocol/claude-agent-acp": "^0.63.0",
@@ -1085,13 +1085,13 @@
1085
1085
  }
1086
1086
  },
1087
1087
  "node_modules/@ours.network/mcp": {
1088
- "version": "2.0.0",
1089
- "resolved": "https://registry.npmjs.org/@ours.network/mcp/-/mcp-2.0.0.tgz",
1090
- "integrity": "sha512-wyrSssiNNXoQ0Jh3pEMfmcWz1wKAXFs1dTqB9P5REZrtoFzYxKzWpzDcxZzpZpSK6VfFj1wlJAcXcn/+FsVKyw==",
1088
+ "version": "2.0.1",
1089
+ "resolved": "https://registry.npmjs.org/@ours.network/mcp/-/mcp-2.0.1.tgz",
1090
+ "integrity": "sha512-P/+RyV3oJf6KQ4H/D7XVHye8yazEfT9fwDaV8ldkCeFN+/7k7MoxJcZPTZrZic2Ielf5kmuSu2misK2FVyv6zA==",
1091
1091
  "license": "FSL-1.1-Apache-2.0",
1092
1092
  "dependencies": {
1093
1093
  "@modelcontextprotocol/sdk": "^1.29.0",
1094
- "@ours.network/sdk": "5.0.0",
1094
+ "@ours.network/sdk": "5.0.1",
1095
1095
  "zod": "^3.23.8"
1096
1096
  },
1097
1097
  "bin": {
@@ -1102,13 +1102,13 @@
1102
1102
  }
1103
1103
  },
1104
1104
  "node_modules/@ours.network/messenger-server": {
1105
- "version": "2.0.0",
1106
- "resolved": "https://registry.npmjs.org/@ours.network/messenger-server/-/messenger-server-2.0.0.tgz",
1107
- "integrity": "sha512-rRIeZeBxwXNGyZTNzSLZ9y/Wl61T3pmUFz6V71MicUjFM781x9bl7W7S3p694PRymAJU6x1lOFUpgQy46Bw5fg==",
1105
+ "version": "2.0.1",
1106
+ "resolved": "https://registry.npmjs.org/@ours.network/messenger-server/-/messenger-server-2.0.1.tgz",
1107
+ "integrity": "sha512-P/mg84GJKZRpX+vrEaoIJDuRof/+vFPYH+AwCElERgIhRAz48iqj+a/HuYa+NpE0flzdlW5cFEZJvelkNcFy1A==",
1108
1108
  "license": "FSL-1.1-Apache-2.0",
1109
1109
  "dependencies": {
1110
1110
  "@eslint-community/regexpp": "4.12.2",
1111
- "@ours.network/sdk": "5.0.0",
1111
+ "@ours.network/sdk": "5.0.1",
1112
1112
  "parse5": "^8.0.1",
1113
1113
  "web-push": "^3.6.7",
1114
1114
  "ws": "^8.21.0"
@@ -1121,9 +1121,9 @@
1121
1121
  }
1122
1122
  },
1123
1123
  "node_modules/@ours.network/notifications": {
1124
- "version": "1.0.0",
1125
- "resolved": "https://registry.npmjs.org/@ours.network/notifications/-/notifications-1.0.0.tgz",
1126
- "integrity": "sha512-wN2Aoj/7nzk4Rq2MjiquCr8yvb44WsHy+R1Qw/FRT1XN6Kes2RfWXI+uhmPPpxEjf9HY90COd/StAcszZW87Uw==",
1124
+ "version": "1.0.1",
1125
+ "resolved": "https://registry.npmjs.org/@ours.network/notifications/-/notifications-1.0.1.tgz",
1126
+ "integrity": "sha512-4AUpWQd13m53EinmxF6Q2OO9xfkZ5+UrKwTvlnq3LaLCnPz/AfchzaHkAWDAq9ZeIMZHpsgaJ0FptS+ToFXzbg==",
1127
1127
  "license": "FSL-1.1-Apache-2.0",
1128
1128
  "dependencies": {
1129
1129
  "web-push": "3.6.7",
@@ -1137,9 +1137,9 @@
1137
1137
  }
1138
1138
  },
1139
1139
  "node_modules/@ours.network/sdk": {
1140
- "version": "5.0.0",
1141
- "resolved": "https://registry.npmjs.org/@ours.network/sdk/-/sdk-5.0.0.tgz",
1142
- "integrity": "sha512-Ymt3L1cb6ND/iUIPYlO4+75cNeMBB4iTTnPwzOzpwVPoXDnHY+2ByMw4NdonR3iKuAlsPfFbdAcvhhyeFUWkiA==",
1140
+ "version": "5.0.1",
1141
+ "resolved": "https://registry.npmjs.org/@ours.network/sdk/-/sdk-5.0.1.tgz",
1142
+ "integrity": "sha512-V05UlHsttQrzoyVKm+hwMb84ym47svn1yzp7Kp56JAsGWKXH6TtHLfzSlbxHf42+Hv89a2T3Zx5HXmUNWX7eFg==",
1143
1143
  "license": "FSL-1.1-Apache-2.0",
1144
1144
  "workspaces": [
1145
1145
  ".",
@@ -1150,12 +1150,12 @@
1150
1150
  }
1151
1151
  },
1152
1152
  "node_modules/@ours.network/tg-connector": {
1153
- "version": "2.0.0",
1154
- "resolved": "https://registry.npmjs.org/@ours.network/tg-connector/-/tg-connector-2.0.0.tgz",
1155
- "integrity": "sha512-YF+ypgJPjt2Lr97jve3ISOMiioXtGrc1iVmhNUczCNb6IbQtho5qQ/sV3lZm65dpjliHtlQFMtbG7ShsM7Yswg==",
1153
+ "version": "2.0.1",
1154
+ "resolved": "https://registry.npmjs.org/@ours.network/tg-connector/-/tg-connector-2.0.1.tgz",
1155
+ "integrity": "sha512-o37XVXLbVmyKdnJiZpY7skfvAve2d3Wo9VO1vstaKFVFvbsXME1zoJNPONBrVcqXu0RxPoaer4teSll2JCrFoQ==",
1156
1156
  "license": "FSL-1.1-Apache-2.0",
1157
1157
  "dependencies": {
1158
- "@ours.network/sdk": "5.0.0",
1158
+ "@ours.network/sdk": "5.0.1",
1159
1159
  "undici": "^7.28.0"
1160
1160
  },
1161
1161
  "bin": {
@@ -1711,12 +1711,16 @@
1711
1711
  "license": "MIT"
1712
1712
  },
1713
1713
  "node_modules/encodeurl": {
1714
- "version": "2.0.0",
1715
- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
1716
- "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
1714
+ "version": "2.0.1",
1715
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.1.tgz",
1716
+ "integrity": "sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A==",
1717
1717
  "license": "MIT",
1718
1718
  "engines": {
1719
1719
  "node": ">= 0.8"
1720
+ },
1721
+ "funding": {
1722
+ "type": "opencollective",
1723
+ "url": "https://opencollective.com/express"
1720
1724
  }
1721
1725
  },
1722
1726
  "node_modules/end-of-stream": {
@@ -3069,9 +3073,9 @@
3069
3073
  }
3070
3074
  },
3071
3075
  "node_modules/qs": {
3072
- "version": "6.17.0",
3073
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.0.tgz",
3074
- "integrity": "sha512-5LK5BZ2XDHMvcUJaf0CQ5HL3aVgKbpklvByC7qLSxYkfE8COEEbJg5xCHWCTqzqi0Gs4Jn5Mv5v3R38W6edscA==",
3076
+ "version": "6.17.1",
3077
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz",
3078
+ "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==",
3075
3079
  "license": "BSD-3-Clause",
3076
3080
  "dependencies": {
3077
3081
  "es-define-property": "^1.0.1",
@@ -1,61 +1,61 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "channel": "stable",
4
- "installerVersion": "2.0.1",
4
+ "installerVersion": "2.0.3",
5
5
  "packages": {
6
6
  "@ours.network/sdk": {
7
- "version": "5.0.0",
8
- "integrity": "sha512-Ymt3L1cb6ND/iUIPYlO4+75cNeMBB4iTTnPwzOzpwVPoXDnHY+2ByMw4NdonR3iKuAlsPfFbdAcvhhyeFUWkiA=="
7
+ "version": "5.0.1",
8
+ "integrity": "sha512-V05UlHsttQrzoyVKm+hwMb84ym47svn1yzp7Kp56JAsGWKXH6TtHLfzSlbxHf42+Hv89a2T3Zx5HXmUNWX7eFg=="
9
9
  },
10
10
  "@ours.network/cli": {
11
- "version": "4.0.0",
12
- "integrity": "sha512-EGQQbIJDy2PCJ8neL7E9b0EcRXzm7VHZIO2gnznMGRiUCrQmbZX+zndWE76oGPW9pVKEa927zSXJZdZOTPU8KA=="
11
+ "version": "4.0.1",
12
+ "integrity": "sha512-kFLW5E6aB3YN6VbMMu18gx/A/aJSG8yypHtvsG2jDius0tHBi+ckvQ9XxWRis9exnIw1nqu7ajfQq4J+HI7iNw=="
13
13
  },
14
14
  "@ours.network/tg-connector": {
15
- "version": "2.0.0",
16
- "integrity": "sha512-YF+ypgJPjt2Lr97jve3ISOMiioXtGrc1iVmhNUczCNb6IbQtho5qQ/sV3lZm65dpjliHtlQFMtbG7ShsM7Yswg=="
15
+ "version": "2.0.1",
16
+ "integrity": "sha512-o37XVXLbVmyKdnJiZpY7skfvAve2d3Wo9VO1vstaKFVFvbsXME1zoJNPONBrVcqXu0RxPoaer4teSll2JCrFoQ=="
17
17
  },
18
18
  "@ours.network/cowork": {
19
- "version": "2.0.0",
20
- "integrity": "sha512-Y8dR4phd73Q3PXZdGh0yWMkFnI9BFp/s+FT1JenziY5G/Tv/62bGVMtruFfhrqF150rYHAj8v5NRy4w3qgPrjw=="
19
+ "version": "2.0.1",
20
+ "integrity": "sha512-KrDQ+4S33BZJ3HuD+704kdq/Ezk5qrVB78YsSkAxS1dlq6z3EHPDkn4579I23/0QwbhKko71o4qUYo7JOAlz2w=="
21
21
  },
22
22
  "@ours.network/messenger-server": {
23
- "version": "2.0.0",
24
- "integrity": "sha512-rRIeZeBxwXNGyZTNzSLZ9y/Wl61T3pmUFz6V71MicUjFM781x9bl7W7S3p694PRymAJU6x1lOFUpgQy46Bw5fg=="
23
+ "version": "2.0.1",
24
+ "integrity": "sha512-P/mg84GJKZRpX+vrEaoIJDuRof/+vFPYH+AwCElERgIhRAz48iqj+a/HuYa+NpE0flzdlW5cFEZJvelkNcFy1A=="
25
25
  },
26
26
  "@ours.network/notifications": {
27
- "version": "1.0.0",
28
- "integrity": "sha512-wN2Aoj/7nzk4Rq2MjiquCr8yvb44WsHy+R1Qw/FRT1XN6Kes2RfWXI+uhmPPpxEjf9HY90COd/StAcszZW87Uw=="
27
+ "version": "1.0.1",
28
+ "integrity": "sha512-4AUpWQd13m53EinmxF6Q2OO9xfkZ5+UrKwTvlnq3LaLCnPz/AfchzaHkAWDAq9ZeIMZHpsgaJ0FptS+ToFXzbg=="
29
29
  },
30
30
  "@ours.network/fleet": {
31
- "version": "2.0.0",
32
- "integrity": "sha512-JBL8P/ObjamR80i+xli5dHb+azWsLWVocm5mclttt6Zn6h0ZGHvjVoLPiAZq1nrPG9fJHhkmE1RaPKHvZhZ2xg=="
31
+ "version": "2.2.0",
32
+ "integrity": "sha512-oA/M5FGjFg23NkPl7sIWaVxhwZ+7vqyHWKzbpm0U2mzeQuwHJiCKjgK+V5oJkU5sa2y3vL6v88AffvTXMEfNbA=="
33
33
  },
34
34
  "@ours.network/mcp": {
35
- "version": "2.0.0",
36
- "integrity": "sha512-wyrSssiNNXoQ0Jh3pEMfmcWz1wKAXFs1dTqB9P5REZrtoFzYxKzWpzDcxZzpZpSK6VfFj1wlJAcXcn/+FsVKyw=="
35
+ "version": "2.0.1",
36
+ "integrity": "sha512-P/+RyV3oJf6KQ4H/D7XVHye8yazEfT9fwDaV8ldkCeFN+/7k7MoxJcZPTZrZic2Ielf5kmuSu2misK2FVyv6zA=="
37
37
  },
38
38
  "@ours.network/codex": {
39
- "version": "2.0.0",
40
- "integrity": "sha512-OUbNbSE7fxfR2prU6CPIc2QtUTIGpQ95xRX3itd6Gd3QNQzZpL7VzDyLh1ekxXwLTcsMuIxjggWlQd/BjgV3wA=="
39
+ "version": "2.0.1",
40
+ "integrity": "sha512-YZZXi+dwxSz2IgHQ334auOLpKZlmg0MCPmGaXnS2ZjI6GZFKzJxjYegvvEkQOVEKJL8CEhuZ7DFdJ5i4+oW6Xw=="
41
41
  },
42
42
  "@ours.network/claude-code": {
43
- "version": "2.0.0",
44
- "integrity": "sha512-aRrdBt8F5JNbGL3KNorzSamjqJVB3RiEmjATzY2q33T9dqh38dd1u2yIOvwQZaLxfh4+l/G0BX/WNGZUHsYKIQ=="
43
+ "version": "2.0.1",
44
+ "integrity": "sha512-AxhhV2yXxJyVZRPOD2yhYSag9BvgEpXriYios9qxrN3d107LYELZswXPpfxYJckNg4dIwHYouBGf9i2VJT4v9g=="
45
45
  },
46
46
  "@ours.network/daemon": {
47
- "version": "5.0.0",
48
- "integrity": "sha512-B/TYgk9onup1woVzlKk9cK0lnhPzmc9DWoPQvuJrrPhoYwmQVVd6brEUCcwYnSkO5gh7HBWZ9o+sA+tROoykjg=="
47
+ "version": "5.0.1",
48
+ "integrity": "sha512-fovi1la/WmajrPnSKGH+d7f1CqoMxPcbjhU6fRBSpKIVdxkQPLwflbJwL/vfAwuwrl1SOLLMJFUJskVXYJdDRw=="
49
49
  }
50
50
  },
51
51
  "hostCli": {
52
52
  "@ours.network/sdk": {
53
- "version": "5.0.0",
54
- "integrity": "sha512-Ymt3L1cb6ND/iUIPYlO4+75cNeMBB4iTTnPwzOzpwVPoXDnHY+2ByMw4NdonR3iKuAlsPfFbdAcvhhyeFUWkiA=="
53
+ "version": "5.0.1",
54
+ "integrity": "sha512-V05UlHsttQrzoyVKm+hwMb84ym47svn1yzp7Kp56JAsGWKXH6TtHLfzSlbxHf42+Hv89a2T3Zx5HXmUNWX7eFg=="
55
55
  },
56
56
  "@ours.network/cli": {
57
- "version": "4.0.0",
58
- "integrity": "sha512-EGQQbIJDy2PCJ8neL7E9b0EcRXzm7VHZIO2gnznMGRiUCrQmbZX+zndWE76oGPW9pVKEa927zSXJZdZOTPU8KA=="
57
+ "version": "4.0.1",
58
+ "integrity": "sha512-kFLW5E6aB3YN6VbMMu18gx/A/aJSG8yypHtvsG2jDius0tHBi+ckvQ9XxWRis9exnIw1nqu7ajfQq4J+HI7iNw=="
59
59
  }
60
60
  }
61
61
  }
@@ -1,7 +1,8 @@
1
+ import { notificationConfig, upgradeFleetMissionCapability } from './notification-config.mjs';
1
2
  import { readBuildRecords, initializeBuildMarker } from '../maintenance/build-context.mjs';
2
3
  import { redactDiagnostic } from './diagnostics.mjs';
3
4
  import { spawnSync } from 'node:child_process';
4
- import { generateKeyPairSync, randomBytes } from 'node:crypto';
5
+ import { randomBytes } from 'node:crypto';
5
6
  import {
6
7
  existsSync, closeSync, constants, fstatSync, lstatSync, mkdirSync, openSync, readFileSync,
7
8
  realpathSync, renameSync, unlinkSync, writeFileSync, readdirSync, chmodSync, chownSync,
@@ -87,7 +88,6 @@ function composeConfig(domain) {
87
88
  return null;
88
89
  }
89
90
 
90
- const NOTIFICATIONS_PORT = 49677;
91
91
  const NOTIFICATION_FILES = {
92
92
  config: '/storage/state/notifications/config.json',
93
93
  messenger: '/storage/state/credentials/messenger/notifications-producer',
@@ -102,32 +102,8 @@ function privateText(path, value) {
102
102
  finally { try { unlinkSync(temp); } catch (error) { if (error.code !== 'ENOENT') throw error; } }
103
103
  }
104
104
 
105
- function notificationConfig() {
106
- const token = () => randomBytes(32).toString('base64url');
107
- const { publicKey, privateKey } = generateKeyPairSync('ec', { namedCurve: 'prime256v1' });
108
- const pub = publicKey.export({ format: 'jwk' }), key = privateKey.export({ format: 'jwk' });
109
- const raw = Buffer.concat([Buffer.from([4]), Buffer.from(pub.x, 'base64url'), Buffer.from(pub.y, 'base64url')]);
110
- return {
111
- host: '0.0.0.0', port: NOTIFICATIONS_PORT, stateFile: '/var/lib/ours-notifications/state.json',
112
- users: [{ userId: 'owner', token: token() }],
113
- producers: [{ userId: 'owner', source: 'fleet', token: token() }, { userId: 'owner', source: 'messenger', token: token() }],
114
- vapid: { subject: 'https://ours.network', publicKey: raw.toString('base64url'), privateKey: key.d },
115
- };
116
- }
117
-
118
- /** Exact retained shape; any other content is operator state the installer will not rewrite. */
119
- function validNotificationConfig(config) {
120
- const tokens = [...(config.users ?? []), ...(config.producers ?? [])].map(entry => entry?.token);
121
- return config.host === '0.0.0.0' && config.port === NOTIFICATIONS_PORT && config.stateFile === '/var/lib/ours-notifications/state.json'
122
- && Array.isArray(config.users) && config.users.length === 1 && config.users[0].userId === 'owner'
123
- && Array.isArray(config.producers) && config.producers.length === 2
124
- && ['fleet', 'messenger'].every(source => config.producers.some(p => p?.source === source && p.userId === 'owner'))
125
- && tokens.every(t => typeof t === 'string' && t.length >= 32) && new Set(tokens).size === tokens.length
126
- && typeof config.vapid?.subject === 'string' && /^[A-Za-z0-9_-]{87}$/.test(config.vapid.publicKey ?? '') && /^[A-Za-z0-9_-]{43}$/.test(config.vapid.privateKey ?? '');
127
- }
128
-
129
105
  /**
130
- * Notification secrets are created once and then only validated: rotating the
106
+ * Notification secrets are created once and retained across capability upgrades: rotating the
131
107
  * owner token or VAPID keys would orphan every browser subscription. Producer
132
108
  * delivery files are derived from the retained configuration on every run.
133
109
  */
@@ -138,7 +114,8 @@ function prepareNotifications() {
138
114
  initializeBuildMarker('/storage/state/notifications/.ours-provenance', readBuildRecords('/opt/ours'));
139
115
  if (!existingPrivate(NOTIFICATION_FILES.config, false)) atomicJson(NOTIFICATION_FILES.config, notificationConfig());
140
116
  const config = jsonObject(NOTIFICATION_FILES.config);
141
- if (!validNotificationConfig(config)) fail('Existing notification configuration differs; use the supported maintenance workflow');
117
+ const deliveredFleetToken = existingPrivate(NOTIFICATION_FILES.fleet, false) ? readFileSync(NOTIFICATION_FILES.fleet, 'utf8') : undefined;
118
+ if (upgradeFleetMissionCapability(config, deliveredFleetToken)) atomicJson(NOTIFICATION_FILES.config, config);
142
119
  for (const source of ['messenger', 'fleet']) privateText(NOTIFICATION_FILES[source], config.producers.find(p => p.source === source).token);
143
120
  }
144
121
 
@@ -0,0 +1,41 @@
1
+ import { generateKeyPairSync, randomBytes } from 'node:crypto';
2
+
3
+ const NOTIFICATIONS_PORT = 49677;
4
+
5
+ export function notificationConfig() {
6
+ const token = () => randomBytes(32).toString('base64url');
7
+ const { publicKey, privateKey } = generateKeyPairSync('ec', { namedCurve: 'prime256v1' });
8
+ const pub = publicKey.export({ format: 'jwk' }), key = privateKey.export({ format: 'jwk' });
9
+ const raw = Buffer.concat([Buffer.from([4]), Buffer.from(pub.x, 'base64url'), Buffer.from(pub.y, 'base64url')]);
10
+ return {
11
+ host: '0.0.0.0', port: NOTIFICATIONS_PORT, stateFile: '/var/lib/ours-notifications/state.json',
12
+ users: [{ userId: 'owner', token: token() }],
13
+ producers: [{ userId: 'owner', source: 'fleet', token: token(), capabilities: ['mission-ownership'] }, { userId: 'owner', source: 'messenger', token: token() }],
14
+ vapid: { subject: 'https://ours.network', publicKey: raw.toString('base64url'), privateKey: key.d },
15
+ };
16
+ }
17
+
18
+ /** Exact retained shape; any other content is operator state the installer will not rewrite. */
19
+ export function validNotificationConfig(config) {
20
+ const tokens = [...(config.users ?? []), ...(config.producers ?? [])].map(entry => entry?.token);
21
+ return config.host === '0.0.0.0' && config.port === NOTIFICATIONS_PORT && config.stateFile === '/var/lib/ours-notifications/state.json'
22
+ && Array.isArray(config.users) && config.users.length === 1 && config.users[0].userId === 'owner'
23
+ && Array.isArray(config.producers) && config.producers.length === 2
24
+ && ['fleet', 'messenger'].every(source => config.producers.some(p => p?.source === source && p.userId === 'owner'))
25
+ && tokens.every(t => typeof t === 'string' && t.length >= 32) && new Set(tokens).size === tokens.length
26
+ && typeof config.vapid?.subject === 'string' && /^[A-Za-z0-9_-]{87}$/.test(config.vapid.publicKey ?? '') && /^[A-Za-z0-9_-]{43}$/.test(config.vapid.privateKey ?? '');
27
+ }
28
+
29
+ /** Upgrade only the installer-selected owner/Fleet credential; tokens and other settings are retained.
30
+ * A delivery file, when already present, must agree before permissions change. */
31
+ export function upgradeFleetMissionCapability(config, deliveredFleetToken) {
32
+ if (!validNotificationConfig(config)) throw new Error('Existing notification configuration differs; use the supported maintenance workflow');
33
+ const fleet = config.producers.find(p => p.source === 'fleet');
34
+ if (deliveredFleetToken !== undefined && deliveredFleetToken !== fleet.token)
35
+ throw new Error('Existing Fleet notification credential binding differs; use the supported maintenance workflow');
36
+ if (fleet.capabilities !== undefined && (!Array.isArray(fleet.capabilities) || fleet.capabilities.some(c => typeof c !== 'string')))
37
+ throw new Error('Existing Fleet notification capabilities are invalid; use the supported maintenance workflow');
38
+ if (fleet.capabilities?.includes('mission-ownership')) return false;
39
+ fleet.capabilities = [...(fleet.capabilities ?? []), 'mission-ownership'];
40
+ return true;
41
+ }
@@ -36,7 +36,7 @@ export function createNotificationsAdapter({ service, userToken, verifyServerCre
36
36
  try { verified = await verifyServerCredential(credential); } catch { return 503; }
37
37
  if (verified !== true) return verified === false ? 401 : 503;
38
38
  const path = new URL(req.url ?? '/', 'http://localhost').pathname;
39
- if (producer !== undefined && !(req.method === 'POST' && ['/api/v1/send', '/api/v1/delete-target'].includes(path))) return 401;
39
+ if (producer !== undefined && !(req.method === 'POST' && ['/api/v1/send', '/api/v1/delete-target', '/api/v1/missions/associate', '/api/v1/missions/bootstrap', '/api/v1/missions/delete'].includes(path))) return 401;
40
40
  req.headers.authorization = `Bearer ${producer ?? userToken}`;
41
41
  return 200;
42
42
  };
@@ -2,108 +2,108 @@
2
2
  "release": {
3
3
  "schema": 1,
4
4
  "channel": "stable",
5
- "installerVersion": "2.0.1",
5
+ "installerVersion": "2.0.3",
6
6
  "packages": {
7
7
  "@ours.network/sdk": {
8
- "version": "5.0.0",
9
- "integrity": "sha512-Ymt3L1cb6ND/iUIPYlO4+75cNeMBB4iTTnPwzOzpwVPoXDnHY+2ByMw4NdonR3iKuAlsPfFbdAcvhhyeFUWkiA=="
8
+ "version": "5.0.1",
9
+ "integrity": "sha512-V05UlHsttQrzoyVKm+hwMb84ym47svn1yzp7Kp56JAsGWKXH6TtHLfzSlbxHf42+Hv89a2T3Zx5HXmUNWX7eFg=="
10
10
  },
11
11
  "@ours.network/cli": {
12
- "version": "4.0.0",
13
- "integrity": "sha512-EGQQbIJDy2PCJ8neL7E9b0EcRXzm7VHZIO2gnznMGRiUCrQmbZX+zndWE76oGPW9pVKEa927zSXJZdZOTPU8KA=="
12
+ "version": "4.0.1",
13
+ "integrity": "sha512-kFLW5E6aB3YN6VbMMu18gx/A/aJSG8yypHtvsG2jDius0tHBi+ckvQ9XxWRis9exnIw1nqu7ajfQq4J+HI7iNw=="
14
14
  },
15
15
  "@ours.network/tg-connector": {
16
- "version": "2.0.0",
17
- "integrity": "sha512-YF+ypgJPjt2Lr97jve3ISOMiioXtGrc1iVmhNUczCNb6IbQtho5qQ/sV3lZm65dpjliHtlQFMtbG7ShsM7Yswg=="
16
+ "version": "2.0.1",
17
+ "integrity": "sha512-o37XVXLbVmyKdnJiZpY7skfvAve2d3Wo9VO1vstaKFVFvbsXME1zoJNPONBrVcqXu0RxPoaer4teSll2JCrFoQ=="
18
18
  },
19
19
  "@ours.network/cowork": {
20
- "version": "2.0.0",
21
- "integrity": "sha512-Y8dR4phd73Q3PXZdGh0yWMkFnI9BFp/s+FT1JenziY5G/Tv/62bGVMtruFfhrqF150rYHAj8v5NRy4w3qgPrjw=="
20
+ "version": "2.0.1",
21
+ "integrity": "sha512-KrDQ+4S33BZJ3HuD+704kdq/Ezk5qrVB78YsSkAxS1dlq6z3EHPDkn4579I23/0QwbhKko71o4qUYo7JOAlz2w=="
22
22
  },
23
23
  "@ours.network/messenger-server": {
24
- "version": "2.0.0",
25
- "integrity": "sha512-rRIeZeBxwXNGyZTNzSLZ9y/Wl61T3pmUFz6V71MicUjFM781x9bl7W7S3p694PRymAJU6x1lOFUpgQy46Bw5fg=="
24
+ "version": "2.0.1",
25
+ "integrity": "sha512-P/mg84GJKZRpX+vrEaoIJDuRof/+vFPYH+AwCElERgIhRAz48iqj+a/HuYa+NpE0flzdlW5cFEZJvelkNcFy1A=="
26
26
  },
27
27
  "@ours.network/notifications": {
28
- "version": "1.0.0",
29
- "integrity": "sha512-wN2Aoj/7nzk4Rq2MjiquCr8yvb44WsHy+R1Qw/FRT1XN6Kes2RfWXI+uhmPPpxEjf9HY90COd/StAcszZW87Uw=="
28
+ "version": "1.0.1",
29
+ "integrity": "sha512-4AUpWQd13m53EinmxF6Q2OO9xfkZ5+UrKwTvlnq3LaLCnPz/AfchzaHkAWDAq9ZeIMZHpsgaJ0FptS+ToFXzbg=="
30
30
  },
31
31
  "@ours.network/fleet": {
32
- "version": "2.0.0",
33
- "integrity": "sha512-JBL8P/ObjamR80i+xli5dHb+azWsLWVocm5mclttt6Zn6h0ZGHvjVoLPiAZq1nrPG9fJHhkmE1RaPKHvZhZ2xg=="
32
+ "version": "2.2.0",
33
+ "integrity": "sha512-oA/M5FGjFg23NkPl7sIWaVxhwZ+7vqyHWKzbpm0U2mzeQuwHJiCKjgK+V5oJkU5sa2y3vL6v88AffvTXMEfNbA=="
34
34
  },
35
35
  "@ours.network/mcp": {
36
- "version": "2.0.0",
37
- "integrity": "sha512-wyrSssiNNXoQ0Jh3pEMfmcWz1wKAXFs1dTqB9P5REZrtoFzYxKzWpzDcxZzpZpSK6VfFj1wlJAcXcn/+FsVKyw=="
36
+ "version": "2.0.1",
37
+ "integrity": "sha512-P/+RyV3oJf6KQ4H/D7XVHye8yazEfT9fwDaV8ldkCeFN+/7k7MoxJcZPTZrZic2Ielf5kmuSu2misK2FVyv6zA=="
38
38
  },
39
39
  "@ours.network/codex": {
40
- "version": "2.0.0",
41
- "integrity": "sha512-OUbNbSE7fxfR2prU6CPIc2QtUTIGpQ95xRX3itd6Gd3QNQzZpL7VzDyLh1ekxXwLTcsMuIxjggWlQd/BjgV3wA=="
40
+ "version": "2.0.1",
41
+ "integrity": "sha512-YZZXi+dwxSz2IgHQ334auOLpKZlmg0MCPmGaXnS2ZjI6GZFKzJxjYegvvEkQOVEKJL8CEhuZ7DFdJ5i4+oW6Xw=="
42
42
  },
43
43
  "@ours.network/claude-code": {
44
- "version": "2.0.0",
45
- "integrity": "sha512-aRrdBt8F5JNbGL3KNorzSamjqJVB3RiEmjATzY2q33T9dqh38dd1u2yIOvwQZaLxfh4+l/G0BX/WNGZUHsYKIQ=="
44
+ "version": "2.0.1",
45
+ "integrity": "sha512-AxhhV2yXxJyVZRPOD2yhYSag9BvgEpXriYios9qxrN3d107LYELZswXPpfxYJckNg4dIwHYouBGf9i2VJT4v9g=="
46
46
  },
47
47
  "@ours.network/daemon": {
48
- "version": "5.0.0",
49
- "integrity": "sha512-B/TYgk9onup1woVzlKk9cK0lnhPzmc9DWoPQvuJrrPhoYwmQVVd6brEUCcwYnSkO5gh7HBWZ9o+sA+tROoykjg=="
48
+ "version": "5.0.1",
49
+ "integrity": "sha512-fovi1la/WmajrPnSKGH+d7f1CqoMxPcbjhU6fRBSpKIVdxkQPLwflbJwL/vfAwuwrl1SOLLMJFUJskVXYJdDRw=="
50
50
  }
51
51
  },
52
52
  "hostCli": {
53
53
  "@ours.network/sdk": {
54
- "version": "5.0.0",
55
- "integrity": "sha512-Ymt3L1cb6ND/iUIPYlO4+75cNeMBB4iTTnPwzOzpwVPoXDnHY+2ByMw4NdonR3iKuAlsPfFbdAcvhhyeFUWkiA=="
54
+ "version": "5.0.1",
55
+ "integrity": "sha512-V05UlHsttQrzoyVKm+hwMb84ym47svn1yzp7Kp56JAsGWKXH6TtHLfzSlbxHf42+Hv89a2T3Zx5HXmUNWX7eFg=="
56
56
  },
57
57
  "@ours.network/cli": {
58
- "version": "4.0.0",
59
- "integrity": "sha512-EGQQbIJDy2PCJ8neL7E9b0EcRXzm7VHZIO2gnznMGRiUCrQmbZX+zndWE76oGPW9pVKEa927zSXJZdZOTPU8KA=="
58
+ "version": "4.0.1",
59
+ "integrity": "sha512-kFLW5E6aB3YN6VbMMu18gx/A/aJSG8yypHtvsG2jDius0tHBi+ckvQ9XxWRis9exnIw1nqu7ajfQq4J+HI7iNw=="
60
60
  }
61
61
  }
62
62
  },
63
63
  "packages": {
64
64
  "@ours.network/sdk": {
65
65
  "type": "npm",
66
- "version": "5.0.0"
66
+ "version": "5.0.1"
67
67
  },
68
68
  "@ours.network/cli": {
69
69
  "type": "npm",
70
- "version": "4.0.0"
70
+ "version": "4.0.1"
71
71
  },
72
72
  "@ours.network/tg-connector": {
73
73
  "type": "npm",
74
- "version": "2.0.0"
74
+ "version": "2.0.1"
75
75
  },
76
76
  "@ours.network/cowork": {
77
77
  "type": "npm",
78
- "version": "2.0.0"
78
+ "version": "2.0.1"
79
79
  },
80
80
  "@ours.network/messenger-server": {
81
81
  "type": "npm",
82
- "version": "2.0.0"
82
+ "version": "2.0.1"
83
83
  },
84
84
  "@ours.network/notifications": {
85
85
  "type": "npm",
86
- "version": "1.0.0"
86
+ "version": "1.0.1"
87
87
  },
88
88
  "@ours.network/fleet": {
89
89
  "type": "npm",
90
- "version": "2.0.0"
90
+ "version": "2.2.0"
91
91
  },
92
92
  "@ours.network/mcp": {
93
93
  "type": "npm",
94
- "version": "2.0.0"
94
+ "version": "2.0.1"
95
95
  },
96
96
  "@ours.network/codex": {
97
97
  "type": "npm",
98
- "version": "2.0.0"
98
+ "version": "2.0.1"
99
99
  },
100
100
  "@ours.network/claude-code": {
101
101
  "type": "npm",
102
- "version": "2.0.0"
102
+ "version": "2.0.1"
103
103
  },
104
104
  "@ours.network/daemon": {
105
105
  "type": "npm",
106
- "version": "5.0.0"
106
+ "version": "5.0.1"
107
107
  }
108
108
  }
109
109
  }
package/lib/effects.mjs CHANGED
@@ -1187,9 +1187,11 @@ export function networkEffects(effects) {
1187
1187
  // Execute the shipped installer helper against the SAME selected image
1188
1188
  // and Compose volume/user/environment contract, without retag/rebuild.
1189
1189
  const diagnosticsUrl = `data:text/javascript;base64,${readFileSync(join(INSTALLER_ASSETS, 'scripts/runtime/diagnostics.mjs')).toString('base64')}`;
1190
+ const notificationConfigUrl = `data:text/javascript;base64,${readFileSync(join(INSTALLER_ASSETS, 'scripts/runtime/notification-config.mjs')).toString('base64')}`;
1190
1191
  const helper = `process.argv.splice(1, 0, '/opt/ours/docker/client-setup.mjs');\n` + readFileSync(join(INSTALLER_ASSETS, 'scripts/runtime/client-setup.mjs'), 'utf8')
1191
1192
  .replace("'../maintenance/build-context.mjs'", "'/opt/ours/maintenance/build-context.mjs'")
1192
- .replace("'./diagnostics.mjs'", JSON.stringify(diagnosticsUrl));
1193
+ .replace("'./diagnostics.mjs'", JSON.stringify(diagnosticsUrl))
1194
+ .replace("'./notification-config.mjs'", JSON.stringify(notificationConfigUrl));
1193
1195
  const accessArgs = (...args) => ['--entrypoint', 'node', 'access', '--input-type=module', '-e', helper, '--', ...args];
1194
1196
  if (!output) return compose(record, ['run', '--rm', '--no-deps', '-T', ...accessArgs(operation)], { sensitive: true, env: { OURS_ACCESS_MIGRATE: migrate ? '1' : '0' } });
1195
1197
  privateDirectory(dirname(output));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ours.network/install",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
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",
@@ -31,6 +31,7 @@
31
31
  "node": ">=22.23.4 <23 || >=24.22.1 <25 || >=26.12.1 <27"
32
32
  },
33
33
  "scripts": {
34
+ "pretest": "node ../../scripts/prepare-installer.mjs",
34
35
  "test": "node --test",
35
36
  "prepack": "node ../../scripts/prepare-installer.mjs"
36
37
  },