@ours.network/install 2.1.8 → 2.2.0
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 +11 -1
- package/assets/images.json +16 -16
- package/assets/release-lock.json +188 -114
- package/assets/release.json +25 -25
- package/assets/sources.json +35 -35
- package/lib/native-sessions.mjs +110 -0
- package/lib/orchestrate.mjs +7 -0
- package/lib/removal-plan.mjs +2 -1
- package/lib/removal.mjs +17 -2
- package/lib/setup-options.mjs +6 -0
- package/lib/setup.mjs +1 -0
- package/lib/usage.mjs +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,7 +102,17 @@ This permanent command contains no tunnel credentials or enrollment expiry. `--s
|
|
|
102
102
|
|
|
103
103
|
### Fleet task commands from a harness command sandbox
|
|
104
104
|
|
|
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;
|
|
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
|
+
|
|
107
|
+
### Optional terminal session sharing
|
|
108
|
+
|
|
109
|
+
Add `--native-sessions-human-cid <Human-root-CID>` to client/all setup with the Fleet and Claude Code and/or Codex integrations. This explicitly permits visible terminal history, browser input and peer-mail wake. Interactive setup offers the same choice; declining leaves native settings unchanged. General unattended installation does not grant this permission.
|
|
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, start its App Server with `codex app-server daemon start` before setup; setup never starts a daemon after a failed readiness check. Linux setup installs the user service `ours-fleet-native-codex.service` with `Restart=no`. Errors stop the watcher; inspect `journalctl --user -u ours-fleet-native-codex.service`, correct the reported problem and start it manually. Automatic service setup for other platforms is not provided.
|
|
112
|
+
|
|
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
|
+
|
|
115
|
+
Each terminal session must already have an Ours identity bound through its native integration. Fleet does not create one. Fresh automatic identity creation was not observed with the default 2.0.5 hook packages; use their existing identity tools before participation. Existing customized hooks are retained.
|
|
106
116
|
|
|
107
117
|
Nothing is prepared unless an Agent declares `managed_cli: [task-workflow]`. To opt agents in from the installer, name them:
|
|
108
118
|
|
package/assets/images.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"channel": "stable",
|
|
4
|
-
"installerVersion": "2.
|
|
5
|
-
"commit": "
|
|
4
|
+
"installerVersion": "2.2.0",
|
|
5
|
+
"commit": "948a3e8ee2cc8abe9dffade75b9fd51efada97cf",
|
|
6
6
|
"platform": "linux/amd64",
|
|
7
7
|
"variants": {
|
|
8
8
|
"server": {
|
|
9
|
-
"policySha256": "
|
|
9
|
+
"policySha256": "33d1f02fe927d107044b720011de40dda5a5e112c3383f4ed762145c7550910d",
|
|
10
10
|
"runtime": {
|
|
11
11
|
"repository": "docker.io/adaptframework/ours-runtime",
|
|
12
|
-
"index": "sha256:
|
|
13
|
-
"manifest": "sha256:
|
|
14
|
-
"config": "sha256:
|
|
12
|
+
"index": "sha256:8d2b7a628fda24b75ea7aa2735e3f21b6ea7dee90c3ed9631841b6f3d779ade8",
|
|
13
|
+
"manifest": "sha256:338048207126b881521121115988a36a490f353f83e189845300598da694d8c4",
|
|
14
|
+
"config": "sha256:905387906d36b2c5dadf1af1eaffbd7d044264c2988373c2b19ecfe8c726e0cb"
|
|
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:de9905d20d378e6efb1f45ca7225c2166417419f252a1d86d2fc418b65b6dbe7",
|
|
19
|
+
"manifest": "sha256:95afd069387ded2f69ef905a55e1e5505a49276cad5092b3493fbf2946a3715e",
|
|
20
|
+
"config": "sha256:13638e6df9a62196e74066484719e1e4f3c05d9b4e32182490661093ef60c76b"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"daemon": {
|
|
24
|
-
"policySha256": "
|
|
24
|
+
"policySha256": "fc96abb671799a66c0e1bae24d1512f4dfe5f5d2c243612c74fdfe2bc392c9e5",
|
|
25
25
|
"runtime": {
|
|
26
26
|
"repository": "docker.io/adaptframework/ours-runtime",
|
|
27
|
-
"index": "sha256:
|
|
28
|
-
"manifest": "sha256:
|
|
29
|
-
"config": "sha256:
|
|
27
|
+
"index": "sha256:c176abc60075103aa07d6e2ae1b012352b8773be202cf75478c2a8e05c3c0c13",
|
|
28
|
+
"manifest": "sha256:970f7eca22c8efd3883a2d080f66ffad58108cdff9c473050ec90b0bebc30fc8",
|
|
29
|
+
"config": "sha256:72ba1587d201a1b1558b7291e78a678912560f919d3f630a5539ea2e11c8985f"
|
|
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:9ac33d7cca0a77594b0c0c5d73305e479295eb9b48624a9c70f1a3134709886f",
|
|
34
|
+
"manifest": "sha256:e7cda7ca12988a709457193c6079527406c11659ac753f9a7082d39bdc51ab81",
|
|
35
|
+
"config": "sha256:9cb09f6b56ff324cbf92230d7997efe270443eff3bffbc17bd795963c8aabb47"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
package/assets/release-lock.json
CHANGED
|
@@ -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.
|
|
12
|
-
"@ours.network/cli": "
|
|
13
|
-
"@ours.network/codex": "2.0.
|
|
14
|
-
"@ours.network/cowork": "2.0.
|
|
15
|
-
"@ours.network/daemon": "
|
|
16
|
-
"@ours.network/fleet": "2.4.
|
|
17
|
-
"@ours.network/mcp": "2.0.
|
|
18
|
-
"@ours.network/messenger-server": "2.0.
|
|
11
|
+
"@ours.network/claude-code": "2.0.6",
|
|
12
|
+
"@ours.network/cli": "5.1.0",
|
|
13
|
+
"@ours.network/codex": "2.0.6",
|
|
14
|
+
"@ours.network/cowork": "2.0.4",
|
|
15
|
+
"@ours.network/daemon": "6.1.0",
|
|
16
|
+
"@ours.network/fleet": "2.4.2",
|
|
17
|
+
"@ours.network/mcp": "2.0.6",
|
|
18
|
+
"@ours.network/messenger-server": "2.0.4",
|
|
19
19
|
"@ours.network/notifications": "1.0.2",
|
|
20
|
-
"@ours.network/sdk": "
|
|
21
|
-
"@ours.network/tg-connector": "2.1.
|
|
20
|
+
"@ours.network/sdk": "6.1.0",
|
|
21
|
+
"@ours.network/tg-connector": "2.1.2"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"node_modules/@adapt-toolkit/sdk": {
|
|
@@ -582,9 +582,9 @@
|
|
|
582
582
|
]
|
|
583
583
|
},
|
|
584
584
|
"node_modules/@anthropic-ai/sdk": {
|
|
585
|
-
"version": "1.
|
|
586
|
-
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.
|
|
587
|
-
"integrity": "sha512-
|
|
585
|
+
"version": "1.16.0",
|
|
586
|
+
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.16.0.tgz",
|
|
587
|
+
"integrity": "sha512-cznGnPGLEixzaTsH7h06/k2Bq3ZwE8KqP5j/bZrQ4fYv13SQUqu/dAEuGaK233sW1JPIzmWLr7zE51U0WNhIHQ==",
|
|
588
588
|
"license": "Apache-2.0",
|
|
589
589
|
"optional": true,
|
|
590
590
|
"peer": true,
|
|
@@ -606,9 +606,9 @@
|
|
|
606
606
|
}
|
|
607
607
|
},
|
|
608
608
|
"node_modules/@babel/runtime": {
|
|
609
|
-
"version": "7.29.
|
|
610
|
-
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.
|
|
611
|
-
"integrity": "sha512-
|
|
609
|
+
"version": "7.29.17",
|
|
610
|
+
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.17.tgz",
|
|
611
|
+
"integrity": "sha512-CvlZdpED5dsu21yK0DfpXksJWt1zeW09lY49hp7P9cA5Qedx/QkwEs1PfluSJjijH9i94oT9LmtgGWlPY8ISzw==",
|
|
612
612
|
"license": "MIT",
|
|
613
613
|
"optional": true,
|
|
614
614
|
"peer": true,
|
|
@@ -647,9 +647,9 @@
|
|
|
647
647
|
}
|
|
648
648
|
},
|
|
649
649
|
"node_modules/@fastify/ajv-compiler/node_modules/fast-uri": {
|
|
650
|
-
"version": "4.2.
|
|
651
|
-
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-4.2.
|
|
652
|
-
"integrity": "sha512-
|
|
650
|
+
"version": "4.2.4",
|
|
651
|
+
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-4.2.4.tgz",
|
|
652
|
+
"integrity": "sha512-ARrctoImibWG27hlPe0Gc93d6HwZBYipqd9QhnXyYzS101vKmqx2J/1R8kzhnnYTph0umtJqu9rqIuYtVDaAOg==",
|
|
653
653
|
"funding": [
|
|
654
654
|
{
|
|
655
655
|
"type": "github",
|
|
@@ -679,9 +679,9 @@
|
|
|
679
679
|
"license": "MIT"
|
|
680
680
|
},
|
|
681
681
|
"node_modules/@fastify/error": {
|
|
682
|
-
"version": "4.
|
|
683
|
-
"resolved": "https://registry.npmjs.org/@fastify/error/-/error-4.
|
|
684
|
-
"integrity": "sha512-
|
|
682
|
+
"version": "4.3.0",
|
|
683
|
+
"resolved": "https://registry.npmjs.org/@fastify/error/-/error-4.3.0.tgz",
|
|
684
|
+
"integrity": "sha512-mtIdc4R7HnUMOuUDQgnJkEF+Omr2p3JrSSJ44+RME/eAQ5TqdDy5MvXAjze/RyVHhJckuJKkXnMhKfPmFMKqyA==",
|
|
685
685
|
"funding": [
|
|
686
686
|
{
|
|
687
687
|
"type": "github",
|
|
@@ -769,9 +769,9 @@
|
|
|
769
769
|
}
|
|
770
770
|
},
|
|
771
771
|
"node_modules/@fastify/websocket": {
|
|
772
|
-
"version": "11.3.
|
|
773
|
-
"resolved": "https://registry.npmjs.org/@fastify/websocket/-/websocket-11.3.
|
|
774
|
-
"integrity": "sha512-
|
|
772
|
+
"version": "11.3.8",
|
|
773
|
+
"resolved": "https://registry.npmjs.org/@fastify/websocket/-/websocket-11.3.8.tgz",
|
|
774
|
+
"integrity": "sha512-S4FhzLUOl0RNz0/sk93TP1DX4vhObG4y9nG3RzTH2O/iyrVhJm1uSxvYbpj8EGI1pCfFOz0BUOBR9I1aOwqy3g==",
|
|
775
775
|
"funding": [
|
|
776
776
|
{
|
|
777
777
|
"type": "github",
|
|
@@ -790,9 +790,9 @@
|
|
|
790
790
|
}
|
|
791
791
|
},
|
|
792
792
|
"node_modules/@hono/node-server": {
|
|
793
|
-
"version": "2.1.
|
|
794
|
-
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.
|
|
795
|
-
"integrity": "sha512-
|
|
793
|
+
"version": "2.1.11",
|
|
794
|
+
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.11.tgz",
|
|
795
|
+
"integrity": "sha512-KzKz9vl4vvr1vgLHamj+g5uonbrj5NwAdO3yzOS6cd2HjALVeOgTgeZOyAzNxejbkfOOPIcvuf/Tg8l1pEFLog==",
|
|
796
796
|
"license": "MIT",
|
|
797
797
|
"engines": {
|
|
798
798
|
"node": ">=20"
|
|
@@ -976,14 +976,14 @@
|
|
|
976
976
|
}
|
|
977
977
|
},
|
|
978
978
|
"node_modules/@ours.network/claude-code": {
|
|
979
|
-
"version": "2.0.
|
|
980
|
-
"resolved": "https://registry.npmjs.org/@ours.network/claude-code/-/claude-code-2.0.
|
|
981
|
-
"integrity": "sha512-
|
|
979
|
+
"version": "2.0.6",
|
|
980
|
+
"resolved": "https://registry.npmjs.org/@ours.network/claude-code/-/claude-code-2.0.6.tgz",
|
|
981
|
+
"integrity": "sha512-yyqAK/1EhTFSTcnmxrM1nXbvjRFJWZjxd7gVRniOXzKC6P8YpDNcWXvEE5HGK8ShEL12fJIfSkm6M3WsEqu6ag==",
|
|
982
982
|
"license": "FSL-1.1-Apache-2.0",
|
|
983
983
|
"dependencies": {
|
|
984
984
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
985
|
-
"@ours.network/mcp": "2.0.
|
|
986
|
-
"@ours.network/sdk": "
|
|
985
|
+
"@ours.network/mcp": "2.0.6",
|
|
986
|
+
"@ours.network/sdk": "6.1.0",
|
|
987
987
|
"ws": "^8.21.0",
|
|
988
988
|
"zod": "^3.25.76"
|
|
989
989
|
},
|
|
@@ -992,12 +992,12 @@
|
|
|
992
992
|
}
|
|
993
993
|
},
|
|
994
994
|
"node_modules/@ours.network/cli": {
|
|
995
|
-
"version": "
|
|
996
|
-
"resolved": "https://registry.npmjs.org/@ours.network/cli/-/cli-
|
|
997
|
-
"integrity": "sha512-
|
|
995
|
+
"version": "5.1.0",
|
|
996
|
+
"resolved": "https://registry.npmjs.org/@ours.network/cli/-/cli-5.1.0.tgz",
|
|
997
|
+
"integrity": "sha512-vFJLA4d8TaB6d1TkRch+HVavkAfAD+0pIMSlDfoAjdEsC20gcFnqa6MTr9Cc5ay8C2HQ1AbgSMOf/9+yxSi0QQ==",
|
|
998
998
|
"license": "FSL-1.1-Apache-2.0",
|
|
999
999
|
"dependencies": {
|
|
1000
|
-
"@ours.network/sdk": "^
|
|
1000
|
+
"@ours.network/sdk": "^6.1.0"
|
|
1001
1001
|
},
|
|
1002
1002
|
"bin": {
|
|
1003
1003
|
"ours": "dist/cli.js"
|
|
@@ -1007,14 +1007,14 @@
|
|
|
1007
1007
|
}
|
|
1008
1008
|
},
|
|
1009
1009
|
"node_modules/@ours.network/codex": {
|
|
1010
|
-
"version": "2.0.
|
|
1011
|
-
"resolved": "https://registry.npmjs.org/@ours.network/codex/-/codex-2.0.
|
|
1012
|
-
"integrity": "sha512-
|
|
1010
|
+
"version": "2.0.6",
|
|
1011
|
+
"resolved": "https://registry.npmjs.org/@ours.network/codex/-/codex-2.0.6.tgz",
|
|
1012
|
+
"integrity": "sha512-SzWBnfQrecvBvyqknusqbGaW5NnLrdUc1ieTzWGlGCP6Z0iV5NcnL4u6rovuwEoJF3732b2tow6JXHZ9jZuGRA==",
|
|
1013
1013
|
"license": "FSL-1.1-Apache-2.0",
|
|
1014
1014
|
"dependencies": {
|
|
1015
1015
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
1016
|
-
"@ours.network/mcp": "2.0.
|
|
1017
|
-
"@ours.network/sdk": "
|
|
1016
|
+
"@ours.network/mcp": "2.0.6",
|
|
1017
|
+
"@ours.network/sdk": "6.1.0",
|
|
1018
1018
|
"ws": "^8.21.0",
|
|
1019
1019
|
"zod": "^3.25.76"
|
|
1020
1020
|
},
|
|
@@ -1027,12 +1027,12 @@
|
|
|
1027
1027
|
}
|
|
1028
1028
|
},
|
|
1029
1029
|
"node_modules/@ours.network/cowork": {
|
|
1030
|
-
"version": "2.0.
|
|
1031
|
-
"resolved": "https://registry.npmjs.org/@ours.network/cowork/-/cowork-2.0.
|
|
1032
|
-
"integrity": "sha512-
|
|
1030
|
+
"version": "2.0.4",
|
|
1031
|
+
"resolved": "https://registry.npmjs.org/@ours.network/cowork/-/cowork-2.0.4.tgz",
|
|
1032
|
+
"integrity": "sha512-NtVabDxc9KU9GkE9HmdiwM0kJur80zwlRc98yGvzD4EP4U5s+Yq2t37Exf9syr6/QaS8s9WLkG70HlRmpxWKHg==",
|
|
1033
1033
|
"license": "FSL-1.1-Apache-2.0",
|
|
1034
1034
|
"dependencies": {
|
|
1035
|
-
"@ours.network/sdk": "
|
|
1035
|
+
"@ours.network/sdk": "6.1.0",
|
|
1036
1036
|
"ajv": "8.20.0",
|
|
1037
1037
|
"better-sqlite3": "13.0.3",
|
|
1038
1038
|
"react": "18.3.1",
|
|
@@ -1047,14 +1047,14 @@
|
|
|
1047
1047
|
}
|
|
1048
1048
|
},
|
|
1049
1049
|
"node_modules/@ours.network/daemon": {
|
|
1050
|
-
"version": "
|
|
1051
|
-
"resolved": "https://registry.npmjs.org/@ours.network/daemon/-/daemon-
|
|
1052
|
-
"integrity": "sha512-
|
|
1050
|
+
"version": "6.1.0",
|
|
1051
|
+
"resolved": "https://registry.npmjs.org/@ours.network/daemon/-/daemon-6.1.0.tgz",
|
|
1052
|
+
"integrity": "sha512-KuFQ5YFcy/WffouEJe825ZNGXYzv/KmLX7ClzIsXaSIRzAXLb1/GnK8cdz+L4ud9MfD1hO3N5X/me1N8CFfgBQ==",
|
|
1053
1053
|
"license": "FSL-1.1-Apache-2.0",
|
|
1054
1054
|
"dependencies": {
|
|
1055
1055
|
"@adapt-toolkit/sdk": "0.12.1",
|
|
1056
1056
|
"@adapt-toolkit/sdk-native": "0.12.1",
|
|
1057
|
-
"@ours.network/sdk": "^
|
|
1057
|
+
"@ours.network/sdk": "^6.1.0",
|
|
1058
1058
|
"ajv": "^8.20.0",
|
|
1059
1059
|
"pg": "^8.16.3",
|
|
1060
1060
|
"ws": "^8.22.0"
|
|
@@ -1070,16 +1070,16 @@
|
|
|
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.2",
|
|
1074
|
+
"resolved": "https://registry.npmjs.org/@ours.network/fleet/-/fleet-2.4.2.tgz",
|
|
1075
|
+
"integrity": "sha512-RTaeiK1jTXkgBBi9tEzCjW4LDHo69ggENjy0O8sY0AG9KkKPSIQWrQYgBNhWBI5fRF6uOyo39jOQy3YhzBHbnQ==",
|
|
1076
1076
|
"license": "FSL-1.1-Apache-2.0",
|
|
1077
1077
|
"dependencies": {
|
|
1078
1078
|
"@agentclientprotocol/sdk": "^1.3.0",
|
|
1079
1079
|
"@fastify/websocket": "^11.2.0",
|
|
1080
|
-
"@ours.network/cli": "
|
|
1081
|
-
"@ours.network/mcp": "2.0.
|
|
1082
|
-
"@ours.network/sdk": "
|
|
1080
|
+
"@ours.network/cli": "5.1.0",
|
|
1081
|
+
"@ours.network/mcp": "2.0.6",
|
|
1082
|
+
"@ours.network/sdk": "6.1.0",
|
|
1083
1083
|
"commander": "^12.1.0",
|
|
1084
1084
|
"fastify": "^5.4.0",
|
|
1085
1085
|
"qrcode": "1.5.4",
|
|
@@ -1109,13 +1109,13 @@
|
|
|
1109
1109
|
}
|
|
1110
1110
|
},
|
|
1111
1111
|
"node_modules/@ours.network/mcp": {
|
|
1112
|
-
"version": "2.0.
|
|
1113
|
-
"resolved": "https://registry.npmjs.org/@ours.network/mcp/-/mcp-2.0.
|
|
1114
|
-
"integrity": "sha512
|
|
1112
|
+
"version": "2.0.6",
|
|
1113
|
+
"resolved": "https://registry.npmjs.org/@ours.network/mcp/-/mcp-2.0.6.tgz",
|
|
1114
|
+
"integrity": "sha512-JORF6vWgRoEQ+hwKxlhCC2usZ1LFr1WI5yeUJHGLPdY0SONoXYp778aQ3gl+7s7HTqwv6qKcJPhI154phfdIrg==",
|
|
1115
1115
|
"license": "FSL-1.1-Apache-2.0",
|
|
1116
1116
|
"dependencies": {
|
|
1117
1117
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
1118
|
-
"@ours.network/sdk": "
|
|
1118
|
+
"@ours.network/sdk": "6.1.0",
|
|
1119
1119
|
"zod": "^3.23.8"
|
|
1120
1120
|
},
|
|
1121
1121
|
"bin": {
|
|
@@ -1126,13 +1126,13 @@
|
|
|
1126
1126
|
}
|
|
1127
1127
|
},
|
|
1128
1128
|
"node_modules/@ours.network/messenger-server": {
|
|
1129
|
-
"version": "2.0.
|
|
1130
|
-
"resolved": "https://registry.npmjs.org/@ours.network/messenger-server/-/messenger-server-2.0.
|
|
1131
|
-
"integrity": "sha512
|
|
1129
|
+
"version": "2.0.4",
|
|
1130
|
+
"resolved": "https://registry.npmjs.org/@ours.network/messenger-server/-/messenger-server-2.0.4.tgz",
|
|
1131
|
+
"integrity": "sha512-/GCY0G/8bCLN5bObbz2nDtCso8I3z5RNhdBL3JTzLYOuGUi/yZ9Ar/BEXFIqHpZcTzbVPWUvoWp5cNaYG8jkLw==",
|
|
1132
1132
|
"license": "FSL-1.1-Apache-2.0",
|
|
1133
1133
|
"dependencies": {
|
|
1134
1134
|
"@eslint-community/regexpp": "4.12.2",
|
|
1135
|
-
"@ours.network/sdk": "
|
|
1135
|
+
"@ours.network/sdk": "6.1.0",
|
|
1136
1136
|
"parse5": "^8.0.1",
|
|
1137
1137
|
"web-push": "^3.6.7",
|
|
1138
1138
|
"ws": "^8.21.0"
|
|
@@ -1182,9 +1182,9 @@
|
|
|
1182
1182
|
}
|
|
1183
1183
|
},
|
|
1184
1184
|
"node_modules/@ours.network/sdk": {
|
|
1185
|
-
"version": "
|
|
1186
|
-
"resolved": "https://registry.npmjs.org/@ours.network/sdk/-/sdk-
|
|
1187
|
-
"integrity": "sha512-
|
|
1185
|
+
"version": "6.1.0",
|
|
1186
|
+
"resolved": "https://registry.npmjs.org/@ours.network/sdk/-/sdk-6.1.0.tgz",
|
|
1187
|
+
"integrity": "sha512-d0nAbivAwrvqQAbYx0rdd7pG7DQD6vTZ7Ec6S1bDW0o/f+raWq1w2Tp4paTXCsJ/MmaG7bZU+XH3ybyN2uDJZw==",
|
|
1188
1188
|
"license": "FSL-1.1-Apache-2.0",
|
|
1189
1189
|
"workspaces": [
|
|
1190
1190
|
".",
|
|
@@ -1195,12 +1195,12 @@
|
|
|
1195
1195
|
}
|
|
1196
1196
|
},
|
|
1197
1197
|
"node_modules/@ours.network/tg-connector": {
|
|
1198
|
-
"version": "2.1.
|
|
1199
|
-
"resolved": "https://registry.npmjs.org/@ours.network/tg-connector/-/tg-connector-2.1.
|
|
1200
|
-
"integrity": "sha512-
|
|
1198
|
+
"version": "2.1.2",
|
|
1199
|
+
"resolved": "https://registry.npmjs.org/@ours.network/tg-connector/-/tg-connector-2.1.2.tgz",
|
|
1200
|
+
"integrity": "sha512-vup4qunSkbvvagQTZi5m3QfOkUTBCPUIba9hXr3FgISCcquTxDW/WrgVPJZeFI9FnGTd4TSJoHwfZNVva+oqww==",
|
|
1201
1201
|
"license": "FSL-1.1-Apache-2.0",
|
|
1202
1202
|
"dependencies": {
|
|
1203
|
-
"@ours.network/sdk": "
|
|
1203
|
+
"@ours.network/sdk": "6.1.0",
|
|
1204
1204
|
"undici": "^7.28.0"
|
|
1205
1205
|
},
|
|
1206
1206
|
"bin": {
|
|
@@ -1224,6 +1224,79 @@
|
|
|
1224
1224
|
"optional": true,
|
|
1225
1225
|
"peer": true
|
|
1226
1226
|
},
|
|
1227
|
+
"node_modules/@stablelib/binary": {
|
|
1228
|
+
"version": "1.0.1",
|
|
1229
|
+
"resolved": "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.1.tgz",
|
|
1230
|
+
"integrity": "sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==",
|
|
1231
|
+
"license": "MIT",
|
|
1232
|
+
"optional": true,
|
|
1233
|
+
"peer": true,
|
|
1234
|
+
"dependencies": {
|
|
1235
|
+
"@stablelib/int": "^1.0.1"
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
"node_modules/@stablelib/ed25519": {
|
|
1239
|
+
"version": "1.0.3",
|
|
1240
|
+
"resolved": "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.3.tgz",
|
|
1241
|
+
"integrity": "sha512-puIMWaX9QlRsbhxfDc5i+mNPMY+0TmQEskunY1rZEBPi1acBCVQAhnsk/1Hk50DGPtVsZtAWQg4NHGlVaO9Hqg==",
|
|
1242
|
+
"license": "MIT",
|
|
1243
|
+
"optional": true,
|
|
1244
|
+
"peer": true,
|
|
1245
|
+
"dependencies": {
|
|
1246
|
+
"@stablelib/random": "^1.0.2",
|
|
1247
|
+
"@stablelib/sha512": "^1.0.1",
|
|
1248
|
+
"@stablelib/wipe": "^1.0.1"
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
"node_modules/@stablelib/hash": {
|
|
1252
|
+
"version": "1.0.1",
|
|
1253
|
+
"resolved": "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.1.tgz",
|
|
1254
|
+
"integrity": "sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg==",
|
|
1255
|
+
"license": "MIT",
|
|
1256
|
+
"optional": true,
|
|
1257
|
+
"peer": true
|
|
1258
|
+
},
|
|
1259
|
+
"node_modules/@stablelib/int": {
|
|
1260
|
+
"version": "1.0.1",
|
|
1261
|
+
"resolved": "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz",
|
|
1262
|
+
"integrity": "sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==",
|
|
1263
|
+
"license": "MIT",
|
|
1264
|
+
"optional": true,
|
|
1265
|
+
"peer": true
|
|
1266
|
+
},
|
|
1267
|
+
"node_modules/@stablelib/random": {
|
|
1268
|
+
"version": "1.0.2",
|
|
1269
|
+
"resolved": "https://registry.npmjs.org/@stablelib/random/-/random-1.0.2.tgz",
|
|
1270
|
+
"integrity": "sha512-rIsE83Xpb7clHPVRlBj8qNe5L8ISQOzjghYQm/dZ7VaM2KHYwMW5adjQjrzTZCchFnNCNhkwtnOBa9HTMJCI8w==",
|
|
1271
|
+
"license": "MIT",
|
|
1272
|
+
"optional": true,
|
|
1273
|
+
"peer": true,
|
|
1274
|
+
"dependencies": {
|
|
1275
|
+
"@stablelib/binary": "^1.0.1",
|
|
1276
|
+
"@stablelib/wipe": "^1.0.1"
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
"node_modules/@stablelib/sha512": {
|
|
1280
|
+
"version": "1.0.1",
|
|
1281
|
+
"resolved": "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.1.tgz",
|
|
1282
|
+
"integrity": "sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw==",
|
|
1283
|
+
"license": "MIT",
|
|
1284
|
+
"optional": true,
|
|
1285
|
+
"peer": true,
|
|
1286
|
+
"dependencies": {
|
|
1287
|
+
"@stablelib/binary": "^1.0.1",
|
|
1288
|
+
"@stablelib/hash": "^1.0.1",
|
|
1289
|
+
"@stablelib/wipe": "^1.0.1"
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
"node_modules/@stablelib/wipe": {
|
|
1293
|
+
"version": "1.0.1",
|
|
1294
|
+
"resolved": "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz",
|
|
1295
|
+
"integrity": "sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==",
|
|
1296
|
+
"license": "MIT",
|
|
1297
|
+
"optional": true,
|
|
1298
|
+
"peer": true
|
|
1299
|
+
},
|
|
1227
1300
|
"node_modules/abstract-logging": {
|
|
1228
1301
|
"version": "2.0.1",
|
|
1229
1302
|
"resolved": "https://registry.npmjs.org/abstract-logging/-/abstract-logging-2.0.1.tgz",
|
|
@@ -1582,9 +1655,9 @@
|
|
|
1582
1655
|
}
|
|
1583
1656
|
},
|
|
1584
1657
|
"node_modules/cross-spawn": {
|
|
1585
|
-
"version": "7.
|
|
1586
|
-
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.
|
|
1587
|
-
"integrity": "sha512-
|
|
1658
|
+
"version": "7.1.2",
|
|
1659
|
+
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz",
|
|
1660
|
+
"integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==",
|
|
1588
1661
|
"license": "MIT",
|
|
1589
1662
|
"dependencies": {
|
|
1590
1663
|
"path-key": "^3.1.0",
|
|
@@ -1899,9 +1972,9 @@
|
|
|
1899
1972
|
}
|
|
1900
1973
|
},
|
|
1901
1974
|
"node_modules/express-rate-limit": {
|
|
1902
|
-
"version": "8.7.
|
|
1903
|
-
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.
|
|
1904
|
-
"integrity": "sha512-
|
|
1975
|
+
"version": "8.7.5",
|
|
1976
|
+
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.5.tgz",
|
|
1977
|
+
"integrity": "sha512-wi+v38cx2EqD0JnhE/e74o5tFqKWUOAPFJIgyEiqJ8v2MNpoOAA3kI2hXYOI+YM+HE5yqbdAlVxm2GqOIeYOgA==",
|
|
1905
1978
|
"license": "MIT",
|
|
1906
1979
|
"dependencies": {
|
|
1907
1980
|
"debug": "^4.4.3",
|
|
@@ -1943,9 +2016,9 @@
|
|
|
1943
2016
|
"license": "MIT"
|
|
1944
2017
|
},
|
|
1945
2018
|
"node_modules/fast-json-stringify": {
|
|
1946
|
-
"version": "7.3.
|
|
1947
|
-
"resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-7.3.
|
|
1948
|
-
"integrity": "sha512-
|
|
2019
|
+
"version": "7.3.12",
|
|
2020
|
+
"resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-7.3.12.tgz",
|
|
2021
|
+
"integrity": "sha512-o8lgW909IPeH9nontTtODLFYu18/YwyF8oJwuqtTj4mgOSXdYj5gcOR3Z4qqL9GCrxfL9xkfHj16mI0c90zXlQ==",
|
|
1949
2022
|
"funding": [
|
|
1950
2023
|
{
|
|
1951
2024
|
"type": "github",
|
|
@@ -1967,9 +2040,9 @@
|
|
|
1967
2040
|
}
|
|
1968
2041
|
},
|
|
1969
2042
|
"node_modules/fast-json-stringify/node_modules/fast-uri": {
|
|
1970
|
-
"version": "4.2.
|
|
1971
|
-
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-4.2.
|
|
1972
|
-
"integrity": "sha512-
|
|
2043
|
+
"version": "4.2.4",
|
|
2044
|
+
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-4.2.4.tgz",
|
|
2045
|
+
"integrity": "sha512-ARrctoImibWG27hlPe0Gc93d6HwZBYipqd9QhnXyYzS101vKmqx2J/1R8kzhnnYTph0umtJqu9rqIuYtVDaAOg==",
|
|
1973
2046
|
"funding": [
|
|
1974
2047
|
{
|
|
1975
2048
|
"type": "github",
|
|
@@ -2095,9 +2168,9 @@
|
|
|
2095
2168
|
}
|
|
2096
2169
|
},
|
|
2097
2170
|
"node_modules/find-my-way": {
|
|
2098
|
-
"version": "9.10.
|
|
2099
|
-
"resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-9.10.
|
|
2100
|
-
"integrity": "sha512-
|
|
2171
|
+
"version": "9.10.2",
|
|
2172
|
+
"resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-9.10.2.tgz",
|
|
2173
|
+
"integrity": "sha512-gbLMuTm2FV5QiRh/eM0uhL4nyOvbSqqa2K3mASAtkIqxvY8ZmoLOCLMd2syLWT/SyhrvOR7GPxOKj/kcV6o8bg==",
|
|
2101
2174
|
"license": "MIT",
|
|
2102
2175
|
"dependencies": {
|
|
2103
2176
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -2237,9 +2310,9 @@
|
|
|
2237
2310
|
"license": "MIT"
|
|
2238
2311
|
},
|
|
2239
2312
|
"node_modules/hono": {
|
|
2240
|
-
"version": "4.13.
|
|
2241
|
-
"resolved": "https://registry.npmjs.org/hono/-/hono-4.13.
|
|
2242
|
-
"integrity": "sha512-
|
|
2313
|
+
"version": "4.13.23",
|
|
2314
|
+
"resolved": "https://registry.npmjs.org/hono/-/hono-4.13.23.tgz",
|
|
2315
|
+
"integrity": "sha512-OS90dj7dcsftEEWCOef8jRbnHE5lbrOq0hNRqjSyPsOnaGZvvfof1KS05hQNb4kUOCfDq1mG3PmHoX37DMnHQg==",
|
|
2243
2316
|
"license": "MIT",
|
|
2244
2317
|
"engines": {
|
|
2245
2318
|
"node": ">=16.9.0"
|
|
@@ -2310,9 +2383,9 @@
|
|
|
2310
2383
|
"license": "ISC"
|
|
2311
2384
|
},
|
|
2312
2385
|
"node_modules/ip-address": {
|
|
2313
|
-
"version": "10.7.
|
|
2314
|
-
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.
|
|
2315
|
-
"integrity": "sha512-
|
|
2386
|
+
"version": "10.7.7",
|
|
2387
|
+
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.7.tgz",
|
|
2388
|
+
"integrity": "sha512-He15rAs4jip5AEAz7XM9L+S6Y8LBMIDj6YewbYuJfmDnOCKWb+3TLOGnHFBTAIW7wpm5ohtZ+Xyo5PEaG+O2vQ==",
|
|
2316
2389
|
"license": "MIT",
|
|
2317
2390
|
"engines": {
|
|
2318
2391
|
"node": ">= 12"
|
|
@@ -2422,9 +2495,9 @@
|
|
|
2422
2495
|
}
|
|
2423
2496
|
},
|
|
2424
2497
|
"node_modules/jose": {
|
|
2425
|
-
"version": "6.2.
|
|
2426
|
-
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.
|
|
2427
|
-
"integrity": "sha512-
|
|
2498
|
+
"version": "6.2.19",
|
|
2499
|
+
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.19.tgz",
|
|
2500
|
+
"integrity": "sha512-NnThKzdK4dJTUQOBoMB0bF3Xmw4EtbFTo4xzeLaoBwcuOdBVDQcKB3/86DUTWjVMXkZOdaqZVo2OU6DllhS+9Q==",
|
|
2428
2501
|
"license": "MIT",
|
|
2429
2502
|
"funding": {
|
|
2430
2503
|
"url": "https://github.com/sponsors/panva"
|
|
@@ -2711,9 +2784,9 @@
|
|
|
2711
2784
|
}
|
|
2712
2785
|
},
|
|
2713
2786
|
"node_modules/object-inspect": {
|
|
2714
|
-
"version": "1.
|
|
2715
|
-
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.
|
|
2716
|
-
"integrity": "sha512-
|
|
2787
|
+
"version": "1.14.0",
|
|
2788
|
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.14.0.tgz",
|
|
2789
|
+
"integrity": "sha512-IVgHNlp/jwQX271+Xzoq9LZNTWXxZK+cEOrGBOBxXNbn7fapnZ+Ts6TVMgNOuAezwG2wdtnMX97tTPK6VEnuOQ==",
|
|
2717
2790
|
"license": "MIT",
|
|
2718
2791
|
"engines": {
|
|
2719
2792
|
"node": ">= 0.4"
|
|
@@ -2989,9 +3062,9 @@
|
|
|
2989
3062
|
"license": "MIT"
|
|
2990
3063
|
},
|
|
2991
3064
|
"node_modules/pkce-challenge": {
|
|
2992
|
-
"version": "5.0.
|
|
2993
|
-
"resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.
|
|
2994
|
-
"integrity": "sha512-
|
|
3065
|
+
"version": "5.0.2",
|
|
3066
|
+
"resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.2.tgz",
|
|
3067
|
+
"integrity": "sha512-vCc54+qyIfKC5e2UN28AZKElwqjLINgiIV3RKI8pDu93TjaAJoB3QrgMzEBouy8yOKsXVXdAinO1QArJf9x5WA==",
|
|
2995
3068
|
"license": "MIT",
|
|
2996
3069
|
"engines": {
|
|
2997
3070
|
"node": ">=16.20.0"
|
|
@@ -3563,14 +3636,15 @@
|
|
|
3563
3636
|
}
|
|
3564
3637
|
},
|
|
3565
3638
|
"node_modules/standardwebhooks": {
|
|
3566
|
-
"version": "1.
|
|
3567
|
-
"resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.
|
|
3568
|
-
"integrity": "sha512-
|
|
3639
|
+
"version": "1.4.1",
|
|
3640
|
+
"resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.4.1.tgz",
|
|
3641
|
+
"integrity": "sha512-K1p/g4/3BBh3lQE/u9F3Oa5Do2+pN35JUaxJf2UL8I13tZpV22SZ+JPbgelyD/pikkjrRj9cNBB2rbKwpg0GFA==",
|
|
3569
3642
|
"license": "MIT",
|
|
3570
3643
|
"optional": true,
|
|
3571
3644
|
"peer": true,
|
|
3572
3645
|
"dependencies": {
|
|
3573
|
-
"@stablelib/base64": "^1.0.
|
|
3646
|
+
"@stablelib/base64": "^1.0.1",
|
|
3647
|
+
"@stablelib/ed25519": "^1.0.3",
|
|
3574
3648
|
"fast-sha256": "^1.3.0"
|
|
3575
3649
|
}
|
|
3576
3650
|
},
|
|
@@ -3590,9 +3664,9 @@
|
|
|
3590
3664
|
"license": "MIT"
|
|
3591
3665
|
},
|
|
3592
3666
|
"node_modules/string_decoder": {
|
|
3593
|
-
"version": "1.
|
|
3594
|
-
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.
|
|
3595
|
-
"integrity": "sha512-
|
|
3667
|
+
"version": "1.4.0",
|
|
3668
|
+
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.4.0.tgz",
|
|
3669
|
+
"integrity": "sha512-r8azg21Y67ckRmeG0hHol5CeDXMs4ZFkFT6eXMO39hX7khvJcopBcYTCeWZ0rQXkMoPh8lVdbjmsOMGL8krxRQ==",
|
|
3596
3670
|
"license": "MIT",
|
|
3597
3671
|
"dependencies": {
|
|
3598
3672
|
"safe-buffer": "~5.2.0"
|
|
@@ -3694,9 +3768,9 @@
|
|
|
3694
3768
|
}
|
|
3695
3769
|
},
|
|
3696
3770
|
"node_modules/undici": {
|
|
3697
|
-
"version": "7.30.
|
|
3698
|
-
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.
|
|
3699
|
-
"integrity": "sha512-
|
|
3771
|
+
"version": "7.30.3",
|
|
3772
|
+
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.3.tgz",
|
|
3773
|
+
"integrity": "sha512-Zlb+QdzEW3+j3Yt5GyAycC7nFHhrGQaZhK0C65WWslTvEh11sN3G5EkBkboFt+dcNZEGSFuK3XoDSq6YqmXo5Q==",
|
|
3700
3774
|
"license": "MIT",
|
|
3701
3775
|
"engines": {
|
|
3702
3776
|
"node": ">=20.18.1"
|
|
@@ -3806,9 +3880,9 @@
|
|
|
3806
3880
|
"license": "ISC"
|
|
3807
3881
|
},
|
|
3808
3882
|
"node_modules/ws": {
|
|
3809
|
-
"version": "8.23.
|
|
3810
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-8.23.
|
|
3811
|
-
"integrity": "sha512-
|
|
3883
|
+
"version": "8.23.1",
|
|
3884
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.23.1.tgz",
|
|
3885
|
+
"integrity": "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==",
|
|
3812
3886
|
"license": "MIT",
|
|
3813
3887
|
"engines": {
|
|
3814
3888
|
"node": ">=10.0.0"
|
package/assets/release.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"channel": "stable",
|
|
4
|
-
"installerVersion": "2.
|
|
4
|
+
"installerVersion": "2.2.0",
|
|
5
5
|
"packages": {
|
|
6
6
|
"@ours.network/sdk": {
|
|
7
|
-
"version": "
|
|
8
|
-
"integrity": "sha512-
|
|
7
|
+
"version": "6.1.0",
|
|
8
|
+
"integrity": "sha512-d0nAbivAwrvqQAbYx0rdd7pG7DQD6vTZ7Ec6S1bDW0o/f+raWq1w2Tp4paTXCsJ/MmaG7bZU+XH3ybyN2uDJZw=="
|
|
9
9
|
},
|
|
10
10
|
"@ours.network/cli": {
|
|
11
|
-
"version": "
|
|
12
|
-
"integrity": "sha512-
|
|
11
|
+
"version": "5.1.0",
|
|
12
|
+
"integrity": "sha512-vFJLA4d8TaB6d1TkRch+HVavkAfAD+0pIMSlDfoAjdEsC20gcFnqa6MTr9Cc5ay8C2HQ1AbgSMOf/9+yxSi0QQ=="
|
|
13
13
|
},
|
|
14
14
|
"@ours.network/tg-connector": {
|
|
15
|
-
"version": "2.1.
|
|
16
|
-
"integrity": "sha512-
|
|
15
|
+
"version": "2.1.2",
|
|
16
|
+
"integrity": "sha512-vup4qunSkbvvagQTZi5m3QfOkUTBCPUIba9hXr3FgISCcquTxDW/WrgVPJZeFI9FnGTd4TSJoHwfZNVva+oqww=="
|
|
17
17
|
},
|
|
18
18
|
"@ours.network/cowork": {
|
|
19
|
-
"version": "2.0.
|
|
20
|
-
"integrity": "sha512-
|
|
19
|
+
"version": "2.0.4",
|
|
20
|
+
"integrity": "sha512-NtVabDxc9KU9GkE9HmdiwM0kJur80zwlRc98yGvzD4EP4U5s+Yq2t37Exf9syr6/QaS8s9WLkG70HlRmpxWKHg=="
|
|
21
21
|
},
|
|
22
22
|
"@ours.network/messenger-server": {
|
|
23
|
-
"version": "2.0.
|
|
24
|
-
"integrity": "sha512
|
|
23
|
+
"version": "2.0.4",
|
|
24
|
+
"integrity": "sha512-/GCY0G/8bCLN5bObbz2nDtCso8I3z5RNhdBL3JTzLYOuGUi/yZ9Ar/BEXFIqHpZcTzbVPWUvoWp5cNaYG8jkLw=="
|
|
25
25
|
},
|
|
26
26
|
"@ours.network/notifications": {
|
|
27
27
|
"version": "1.0.2",
|
|
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.2",
|
|
32
|
+
"integrity": "sha512-RTaeiK1jTXkgBBi9tEzCjW4LDHo69ggENjy0O8sY0AG9KkKPSIQWrQYgBNhWBI5fRF6uOyo39jOQy3YhzBHbnQ=="
|
|
33
33
|
},
|
|
34
34
|
"@ours.network/mcp": {
|
|
35
|
-
"version": "2.0.
|
|
36
|
-
"integrity": "sha512
|
|
35
|
+
"version": "2.0.6",
|
|
36
|
+
"integrity": "sha512-JORF6vWgRoEQ+hwKxlhCC2usZ1LFr1WI5yeUJHGLPdY0SONoXYp778aQ3gl+7s7HTqwv6qKcJPhI154phfdIrg=="
|
|
37
37
|
},
|
|
38
38
|
"@ours.network/codex": {
|
|
39
|
-
"version": "2.0.
|
|
40
|
-
"integrity": "sha512-
|
|
39
|
+
"version": "2.0.6",
|
|
40
|
+
"integrity": "sha512-SzWBnfQrecvBvyqknusqbGaW5NnLrdUc1ieTzWGlGCP6Z0iV5NcnL4u6rovuwEoJF3732b2tow6JXHZ9jZuGRA=="
|
|
41
41
|
},
|
|
42
42
|
"@ours.network/claude-code": {
|
|
43
|
-
"version": "2.0.
|
|
44
|
-
"integrity": "sha512-
|
|
43
|
+
"version": "2.0.6",
|
|
44
|
+
"integrity": "sha512-yyqAK/1EhTFSTcnmxrM1nXbvjRFJWZjxd7gVRniOXzKC6P8YpDNcWXvEE5HGK8ShEL12fJIfSkm6M3WsEqu6ag=="
|
|
45
45
|
},
|
|
46
46
|
"@ours.network/daemon": {
|
|
47
|
-
"version": "
|
|
48
|
-
"integrity": "sha512-
|
|
47
|
+
"version": "6.1.0",
|
|
48
|
+
"integrity": "sha512-KuFQ5YFcy/WffouEJe825ZNGXYzv/KmLX7ClzIsXaSIRzAXLb1/GnK8cdz+L4ud9MfD1hO3N5X/me1N8CFfgBQ=="
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"hostCli": {
|
|
52
52
|
"@ours.network/sdk": {
|
|
53
|
-
"version": "
|
|
54
|
-
"integrity": "sha512-
|
|
53
|
+
"version": "6.1.0",
|
|
54
|
+
"integrity": "sha512-d0nAbivAwrvqQAbYx0rdd7pG7DQD6vTZ7Ec6S1bDW0o/f+raWq1w2Tp4paTXCsJ/MmaG7bZU+XH3ybyN2uDJZw=="
|
|
55
55
|
},
|
|
56
56
|
"@ours.network/cli": {
|
|
57
|
-
"version": "
|
|
58
|
-
"integrity": "sha512-
|
|
57
|
+
"version": "5.1.0",
|
|
58
|
+
"integrity": "sha512-vFJLA4d8TaB6d1TkRch+HVavkAfAD+0pIMSlDfoAjdEsC20gcFnqa6MTr9Cc5ay8C2HQ1AbgSMOf/9+yxSi0QQ=="
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
package/assets/sources.json
CHANGED
|
@@ -2,84 +2,84 @@
|
|
|
2
2
|
"release": {
|
|
3
3
|
"schema": 1,
|
|
4
4
|
"channel": "stable",
|
|
5
|
-
"installerVersion": "2.
|
|
5
|
+
"installerVersion": "2.2.0",
|
|
6
6
|
"packages": {
|
|
7
7
|
"@ours.network/sdk": {
|
|
8
|
-
"version": "
|
|
9
|
-
"integrity": "sha512-
|
|
8
|
+
"version": "6.1.0",
|
|
9
|
+
"integrity": "sha512-d0nAbivAwrvqQAbYx0rdd7pG7DQD6vTZ7Ec6S1bDW0o/f+raWq1w2Tp4paTXCsJ/MmaG7bZU+XH3ybyN2uDJZw=="
|
|
10
10
|
},
|
|
11
11
|
"@ours.network/cli": {
|
|
12
|
-
"version": "
|
|
13
|
-
"integrity": "sha512-
|
|
12
|
+
"version": "5.1.0",
|
|
13
|
+
"integrity": "sha512-vFJLA4d8TaB6d1TkRch+HVavkAfAD+0pIMSlDfoAjdEsC20gcFnqa6MTr9Cc5ay8C2HQ1AbgSMOf/9+yxSi0QQ=="
|
|
14
14
|
},
|
|
15
15
|
"@ours.network/tg-connector": {
|
|
16
|
-
"version": "2.1.
|
|
17
|
-
"integrity": "sha512-
|
|
16
|
+
"version": "2.1.2",
|
|
17
|
+
"integrity": "sha512-vup4qunSkbvvagQTZi5m3QfOkUTBCPUIba9hXr3FgISCcquTxDW/WrgVPJZeFI9FnGTd4TSJoHwfZNVva+oqww=="
|
|
18
18
|
},
|
|
19
19
|
"@ours.network/cowork": {
|
|
20
|
-
"version": "2.0.
|
|
21
|
-
"integrity": "sha512-
|
|
20
|
+
"version": "2.0.4",
|
|
21
|
+
"integrity": "sha512-NtVabDxc9KU9GkE9HmdiwM0kJur80zwlRc98yGvzD4EP4U5s+Yq2t37Exf9syr6/QaS8s9WLkG70HlRmpxWKHg=="
|
|
22
22
|
},
|
|
23
23
|
"@ours.network/messenger-server": {
|
|
24
|
-
"version": "2.0.
|
|
25
|
-
"integrity": "sha512
|
|
24
|
+
"version": "2.0.4",
|
|
25
|
+
"integrity": "sha512-/GCY0G/8bCLN5bObbz2nDtCso8I3z5RNhdBL3JTzLYOuGUi/yZ9Ar/BEXFIqHpZcTzbVPWUvoWp5cNaYG8jkLw=="
|
|
26
26
|
},
|
|
27
27
|
"@ours.network/notifications": {
|
|
28
28
|
"version": "1.0.2",
|
|
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.2",
|
|
33
|
+
"integrity": "sha512-RTaeiK1jTXkgBBi9tEzCjW4LDHo69ggENjy0O8sY0AG9KkKPSIQWrQYgBNhWBI5fRF6uOyo39jOQy3YhzBHbnQ=="
|
|
34
34
|
},
|
|
35
35
|
"@ours.network/mcp": {
|
|
36
|
-
"version": "2.0.
|
|
37
|
-
"integrity": "sha512
|
|
36
|
+
"version": "2.0.6",
|
|
37
|
+
"integrity": "sha512-JORF6vWgRoEQ+hwKxlhCC2usZ1LFr1WI5yeUJHGLPdY0SONoXYp778aQ3gl+7s7HTqwv6qKcJPhI154phfdIrg=="
|
|
38
38
|
},
|
|
39
39
|
"@ours.network/codex": {
|
|
40
|
-
"version": "2.0.
|
|
41
|
-
"integrity": "sha512-
|
|
40
|
+
"version": "2.0.6",
|
|
41
|
+
"integrity": "sha512-SzWBnfQrecvBvyqknusqbGaW5NnLrdUc1ieTzWGlGCP6Z0iV5NcnL4u6rovuwEoJF3732b2tow6JXHZ9jZuGRA=="
|
|
42
42
|
},
|
|
43
43
|
"@ours.network/claude-code": {
|
|
44
|
-
"version": "2.0.
|
|
45
|
-
"integrity": "sha512-
|
|
44
|
+
"version": "2.0.6",
|
|
45
|
+
"integrity": "sha512-yyqAK/1EhTFSTcnmxrM1nXbvjRFJWZjxd7gVRniOXzKC6P8YpDNcWXvEE5HGK8ShEL12fJIfSkm6M3WsEqu6ag=="
|
|
46
46
|
},
|
|
47
47
|
"@ours.network/daemon": {
|
|
48
|
-
"version": "
|
|
49
|
-
"integrity": "sha512-
|
|
48
|
+
"version": "6.1.0",
|
|
49
|
+
"integrity": "sha512-KuFQ5YFcy/WffouEJe825ZNGXYzv/KmLX7ClzIsXaSIRzAXLb1/GnK8cdz+L4ud9MfD1hO3N5X/me1N8CFfgBQ=="
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"hostCli": {
|
|
53
53
|
"@ours.network/sdk": {
|
|
54
|
-
"version": "
|
|
55
|
-
"integrity": "sha512-
|
|
54
|
+
"version": "6.1.0",
|
|
55
|
+
"integrity": "sha512-d0nAbivAwrvqQAbYx0rdd7pG7DQD6vTZ7Ec6S1bDW0o/f+raWq1w2Tp4paTXCsJ/MmaG7bZU+XH3ybyN2uDJZw=="
|
|
56
56
|
},
|
|
57
57
|
"@ours.network/cli": {
|
|
58
|
-
"version": "
|
|
59
|
-
"integrity": "sha512-
|
|
58
|
+
"version": "5.1.0",
|
|
59
|
+
"integrity": "sha512-vFJLA4d8TaB6d1TkRch+HVavkAfAD+0pIMSlDfoAjdEsC20gcFnqa6MTr9Cc5ay8C2HQ1AbgSMOf/9+yxSi0QQ=="
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"packages": {
|
|
64
64
|
"@ours.network/sdk": {
|
|
65
65
|
"type": "npm",
|
|
66
|
-
"version": "
|
|
66
|
+
"version": "6.1.0"
|
|
67
67
|
},
|
|
68
68
|
"@ours.network/cli": {
|
|
69
69
|
"type": "npm",
|
|
70
|
-
"version": "
|
|
70
|
+
"version": "5.1.0"
|
|
71
71
|
},
|
|
72
72
|
"@ours.network/tg-connector": {
|
|
73
73
|
"type": "npm",
|
|
74
|
-
"version": "2.1.
|
|
74
|
+
"version": "2.1.2"
|
|
75
75
|
},
|
|
76
76
|
"@ours.network/cowork": {
|
|
77
77
|
"type": "npm",
|
|
78
|
-
"version": "2.0.
|
|
78
|
+
"version": "2.0.4"
|
|
79
79
|
},
|
|
80
80
|
"@ours.network/messenger-server": {
|
|
81
81
|
"type": "npm",
|
|
82
|
-
"version": "2.0.
|
|
82
|
+
"version": "2.0.4"
|
|
83
83
|
},
|
|
84
84
|
"@ours.network/notifications": {
|
|
85
85
|
"type": "npm",
|
|
@@ -87,23 +87,23 @@
|
|
|
87
87
|
},
|
|
88
88
|
"@ours.network/fleet": {
|
|
89
89
|
"type": "npm",
|
|
90
|
-
"version": "2.4.
|
|
90
|
+
"version": "2.4.2"
|
|
91
91
|
},
|
|
92
92
|
"@ours.network/mcp": {
|
|
93
93
|
"type": "npm",
|
|
94
|
-
"version": "2.0.
|
|
94
|
+
"version": "2.0.6"
|
|
95
95
|
},
|
|
96
96
|
"@ours.network/codex": {
|
|
97
97
|
"type": "npm",
|
|
98
|
-
"version": "2.0.
|
|
98
|
+
"version": "2.0.6"
|
|
99
99
|
},
|
|
100
100
|
"@ours.network/claude-code": {
|
|
101
101
|
"type": "npm",
|
|
102
|
-
"version": "2.0.
|
|
102
|
+
"version": "2.0.6"
|
|
103
103
|
},
|
|
104
104
|
"@ours.network/daemon": {
|
|
105
105
|
"type": "npm",
|
|
106
|
-
"version": "
|
|
106
|
+
"version": "6.1.0"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { dirname, join, isAbsolute } from 'node:path';
|
|
2
|
+
import { installerFailure } from './diagnostics.mjs';
|
|
3
|
+
import { info, ok } from './ui.mjs';
|
|
4
|
+
import { shellQuote } from './extras.mjs';
|
|
5
|
+
|
|
6
|
+
export const NATIVE_CODEX_SERVICE = 'ours-fleet-native-codex.service';
|
|
7
|
+
const marker = '# Ours Fleet native terminal discovery';
|
|
8
|
+
const object = value => value && typeof value === 'object' && !Array.isArray(value);
|
|
9
|
+
const unitQuote = value => '"' + String(value).replaceAll('\\', '\\\\').replaceAll('"', '\\"').replaceAll('%', '%%') + '"';
|
|
10
|
+
|
|
11
|
+
// Replace only Fleet's generated participation hooks. Ours identity hooks and
|
|
12
|
+
// unrelated user hooks retain their order and content.
|
|
13
|
+
export function mergeNativeHooks(settings, addition) {
|
|
14
|
+
if (!object(settings) || !object(addition?.hooks) || (settings.hooks !== undefined && !object(settings.hooks)))
|
|
15
|
+
throw new Error('Claude settings or Fleet hook output is invalid; existing settings were retained.');
|
|
16
|
+
const hooks = { ...settings.hooks };
|
|
17
|
+
for (const [event, entries] of Object.entries(addition.hooks)) {
|
|
18
|
+
if (!Array.isArray(entries) || (hooks[event] !== undefined && !Array.isArray(hooks[event])))
|
|
19
|
+
throw new Error(`Claude ${event} hooks are invalid; existing settings were retained.`);
|
|
20
|
+
const retained = (hooks[event] ?? []).flatMap(entry => {
|
|
21
|
+
if (!Array.isArray(entry?.hooks)) return [entry];
|
|
22
|
+
const keep = entry.hooks.filter(hook => !(hook.type === 'command' && Array.isArray(hook.args)
|
|
23
|
+
&& hook.args.length === 3 && hook.args[1] === 'participation' && hook.args[2] === 'hook'));
|
|
24
|
+
return keep.length ? [{ ...entry, hooks: keep }] : [];
|
|
25
|
+
});
|
|
26
|
+
hooks[event] = [...retained, ...entries];
|
|
27
|
+
}
|
|
28
|
+
return { ...settings, hooks };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function nativeCodexUnit({ fleetEntry, profile, env = {} }) {
|
|
32
|
+
const selected = { ...env, OURS_CONFIG: profile };
|
|
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
|
+
return `${marker}\n# Profile: ${profile}\n[Unit]\nDescription=Ours Fleet terminal session discovery\n[Service]\nType=simple\n`
|
|
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=no\n[Install]\nWantedBy=default.target\n`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Called only for a complete client installation. A general --yes never grants
|
|
40
|
+
// access to native conversations: unattended use needs the explicit CID option.
|
|
41
|
+
export async function setupNativeSessions(command, effects, { fleetBin, configPath, integrations }) {
|
|
42
|
+
const selected = integrations.filter(name => name === 'claude-code' || name === 'codex');
|
|
43
|
+
if (!selected.length) {
|
|
44
|
+
if (command.nativeSessionsHumanCid) throw new Error('Terminal sharing was requested, but no Claude Code or Codex integration was selected.');
|
|
45
|
+
return { state: 'skipped' };
|
|
46
|
+
}
|
|
47
|
+
let humanCid = command.nativeSessionsHumanCid;
|
|
48
|
+
if (!humanCid && !command.nonInteractive && effects.interactive) {
|
|
49
|
+
if (await effects.ask('Show terminal sessions in Ours, share their visible history and allow browser messages and peer-mail wake?', false))
|
|
50
|
+
humanCid = (await effects.askLine('Human root CID to authorize: ', '')).trim();
|
|
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' };
|
|
55
|
+
}
|
|
56
|
+
if (!/^[0-9a-f]{64}$/i.test(humanCid)) throw new Error('Native session setup requires a 64-character hexadecimal Human root CID.');
|
|
57
|
+
const fleetEntry = effects.realpath(fleetBin);
|
|
58
|
+
if (!fleetEntry || !isAbsolute(fleetEntry)) throw new Error('Cannot locate the installed Fleet executable for native session setup.');
|
|
59
|
+
const env = { OURS_CONFIG: configPath };
|
|
60
|
+
const cli = (args, options = {}) => effects.run(fleetBin, args, { env, ...options });
|
|
61
|
+
const codex = selected.includes('codex');
|
|
62
|
+
const claude = selected.includes('claude-code');
|
|
63
|
+
let unitPath, unit;
|
|
64
|
+
if (codex) {
|
|
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
|
+
await effects.run('systemctl', ['--user', 'show-environment']);
|
|
67
|
+
// This is intentional setup, not recovery. An absent daemon needs the
|
|
68
|
+
// operator's explicit start; an arbitrary failed probe never starts one.
|
|
69
|
+
try { await effects.run('codex', ['app-server', 'daemon', 'version'], { timeout: 10_000 }); }
|
|
70
|
+
catch (error) { throw new Error(`Codex App Server is not ready: ${installerFailure(error)}. Start it with codex app-server daemon start, then repeat setup.`); }
|
|
71
|
+
unitPath = join(effects.home, '.config/systemd/user', NATIVE_CODEX_SERVICE);
|
|
72
|
+
const previous = effects.readText(unitPath);
|
|
73
|
+
if (previous !== null && (!previous.startsWith(marker + '\n') || !previous.includes(`# Profile: ${configPath}\n`)))
|
|
74
|
+
throw new Error(`${unitPath} belongs to another configuration; it was retained. Configure its discovery service manually.`);
|
|
75
|
+
const serviceEnv = Object.fromEntries(['PATH', 'CODEX_HOME', 'OURS_MCP_CONFIG'].filter(key => effects.env[key]).map(key => [key, effects.env[key]]));
|
|
76
|
+
unit = nativeCodexUnit({ fleetEntry, profile: configPath, env: serviceEnv });
|
|
77
|
+
}
|
|
78
|
+
let settingsPath, generatedHooks;
|
|
79
|
+
if (claude) {
|
|
80
|
+
settingsPath = join(effects.env.CLAUDE_CONFIG_DIR || join(effects.home, '.claude'), 'settings.json');
|
|
81
|
+
const existing = effects.readText(settingsPath);
|
|
82
|
+
generatedHooks = JSON.parse((await cli(['participation', 'hooks', 'claude'])).stdout);
|
|
83
|
+
mergeNativeHooks(existing === null ? {} : JSON.parse(existing), generatedHooks);
|
|
84
|
+
}
|
|
85
|
+
// Fleet validates the selected root through the existing daemon. It owns the
|
|
86
|
+
// grant and identity lifecycle; the installer does not create an identity.
|
|
87
|
+
await cli(['participation', 'enable', '--human-cid', humanCid, '--authorize-registration-and-wake', ...(codex ? ['--codex'] : [])]);
|
|
88
|
+
try {
|
|
89
|
+
if (claude) {
|
|
90
|
+
await effects.run('claude', ['plugin', 'install', 'ours-fleet-native', '--marketplace', join(dirname(dirname(fleetEntry)), 'contrib'), '--scope', 'user', '--json']);
|
|
91
|
+
// Plugin installation updates enabledPlugins in this same file. Merge into
|
|
92
|
+
// its current contents so that the newly installed plugin stays enabled.
|
|
93
|
+
const installed = effects.readText(settingsPath);
|
|
94
|
+
const settings = mergeNativeHooks(installed === null ? {} : JSON.parse(installed), generatedHooks);
|
|
95
|
+
effects.writeJson(settingsPath, JSON.stringify(settings, null, 2) + '\n');
|
|
96
|
+
effects.out(ok('Native Claude plugin and participation hooks installed. Existing identity hooks were retained. Reload existing Claude sessions.'));
|
|
97
|
+
}
|
|
98
|
+
if (codex) {
|
|
99
|
+
effects.writeJson(unitPath, unit);
|
|
100
|
+
await effects.run('systemctl', ['--user', 'daemon-reload']);
|
|
101
|
+
await effects.run('systemctl', ['--user', 'enable', NATIVE_CODEX_SERVICE]);
|
|
102
|
+
await effects.run('systemctl', ['--user', 'restart', NATIVE_CODEX_SERVICE]);
|
|
103
|
+
effects.out(ok(`Codex discovery service enabled. Errors stop it; inspect with journalctl --user -u ${NATIVE_CODEX_SERVICE}.`));
|
|
104
|
+
}
|
|
105
|
+
} catch (error) {
|
|
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.`);
|
|
107
|
+
}
|
|
108
|
+
effects.out(info('Inspect terminal sessions with ours-fleet participation ls --json. Revoke sharing with ours-fleet participation disable.'));
|
|
109
|
+
return { state: 'configured' };
|
|
110
|
+
}
|
package/lib/orchestrate.mjs
CHANGED
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
} from './marketplace.mjs';
|
|
49
49
|
import { USAGE } from './usage.mjs';
|
|
50
50
|
import { installerFailure } from './diagnostics.mjs';
|
|
51
|
+
import { setupNativeSessions } from './native-sessions.mjs';
|
|
51
52
|
import { ok, info, warn, heading, banner, box, c, progress } from './ui.mjs';
|
|
52
53
|
|
|
53
54
|
export const EXIT_OK = 0;
|
|
@@ -1761,6 +1762,12 @@ export async function runClientCommand(command, effects) {
|
|
|
1761
1762
|
summary.push(await runFleetPhase(args, effects, { target, isDefaultStateDir: false }));
|
|
1762
1763
|
}
|
|
1763
1764
|
const incomplete = integrations.filter(name => !summary.some(row => row.key === name && row.state === 'installed'));
|
|
1765
|
+
if (incomplete.length && command.nativeSessionsHumanCid)
|
|
1766
|
+
effects.out(warn(`Terminal session setup was requested but was not run 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.includes('fleet')) {
|
|
1768
|
+
phase = 'Configure terminal session sharing';
|
|
1769
|
+
await setupNativeSessions(command, effects, { fleetBin: exactSuite.fleetBin, configPath: imported.configPath, integrations });
|
|
1770
|
+
}
|
|
1764
1771
|
if (effects.env.OURS_CONFIG && resolve(effects.env.OURS_CONFIG) !== imported.configPath)
|
|
1765
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.'));
|
|
1766
1773
|
if (incomplete.length) {
|
package/lib/removal-plan.mjs
CHANGED
|
@@ -32,7 +32,7 @@ export const CLAUDE_PLUGIN = 'ours@ours.network';
|
|
|
32
32
|
export const CLAUDE_MARKETPLACE = 'ours.network';
|
|
33
33
|
export const CODEX_PLUGIN = 'ours@ours-codex-marketplace';
|
|
34
34
|
export const CODEX_MARKETPLACE = 'ours-codex-marketplace';
|
|
35
|
-
export const FLEET_UNITS = ['ours-fleet.service', 'ours-fleet-web.service', 'ours-fleet-watchdogs.service'];
|
|
35
|
+
export const FLEET_UNITS = ['ours-fleet.service', 'ours-fleet-web.service', 'ours-fleet-watchdogs.service', 'ours-fleet-native-codex.service'];
|
|
36
36
|
const UUID = /^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/;
|
|
37
37
|
const PROJECT = /^ours-[a-z0-9]+$/;
|
|
38
38
|
const GENERATION = /^[0-9a-f]{16}$/;
|
|
@@ -305,6 +305,7 @@ export function planRemoval(found, { home }) {
|
|
|
305
305
|
const claude = found.claude;
|
|
306
306
|
if (claude?.marketplace && !ownedMarketplace(claude.marketplace.path)) kept.push({ group: 'apps', label: `Claude Code marketplace "${CLAUDE_MARKETPLACE}"`, reason: `it points to ${claude.marketplace.path}, which this installer did not create` });
|
|
307
307
|
else if (claude) {
|
|
308
|
+
if (claude.nativePlugin) apps.push({ id: 'claude-native-plugin', group: 'apps', label: 'Fleet terminal plugin in Claude Code', type: 'command', command: ['claude', 'plugin', 'uninstall', 'ours-fleet-native@ours-fleet-experiment', '--scope', 'user'] });
|
|
308
309
|
if (claude.plugin) apps.push({ id: 'claude-plugin', group: 'apps', label: 'Ours plugin in Claude Code', type: 'command', command: ['claude', 'plugin', 'uninstall', CLAUDE_PLUGIN, '--scope', 'user'] });
|
|
309
310
|
if (claude.marketplace) apps.push({ id: 'claude-marketplace', group: 'apps', label: 'Ours plugin source in Claude Code', type: 'command', command: ['claude', 'plugin', 'marketplace', 'remove', CLAUDE_MARKETPLACE], after: ['claude-plugin'] });
|
|
310
311
|
if (claude.settingsEntries?.length) apps.push({ id: 'claude-settings', group: 'apps', label: `Ours entries in ${claude.settingsPath}`, type: 'claude-settings', path: claude.settingsPath, entries: claude.settingsEntries, after: ['claude-plugin', 'claude-marketplace'] });
|
package/lib/removal.mjs
CHANGED
|
@@ -170,12 +170,27 @@ export async function discoverFootprint(effects, { stateDirs = [], journal = nul
|
|
|
170
170
|
} catch { keep('programs', 'Global npm commands', 'npm is not available to check them', true); }
|
|
171
171
|
|
|
172
172
|
// Claude Code and Codex registrations.
|
|
173
|
-
const claudeSettingsPath = join(home, '.claude', 'settings.json');
|
|
173
|
+
const claudeSettingsPath = join(effects.env?.CLAUDE_CONFIG_DIR || join(home, '.claude'), 'settings.json');
|
|
174
174
|
const settingsText = effects.readText(claudeSettingsPath);
|
|
175
175
|
const settings = settingsText === null ? null : parseJsonc(settingsText, [], { allowTrailingComma: true });
|
|
176
176
|
const settingsEntries = [];
|
|
177
177
|
if (settings?.enabledPlugins && Object.hasOwn(settings.enabledPlugins, CLAUDE_PLUGIN)) settingsEntries.push(['enabledPlugins', CLAUDE_PLUGIN]);
|
|
178
178
|
if (settings?.extraKnownMarketplaces && Object.hasOwn(settings.extraKnownMarketplaces, CLAUDE_MARKETPLACE)) settingsEntries.push(['extraKnownMarketplaces', CLAUDE_MARKETPLACE]);
|
|
179
|
+
// Only the generated single-hook entries pointing into this installation.
|
|
180
|
+
// Descending indexes preserve the remaining entries during JSONC removal.
|
|
181
|
+
let nativeHooks = false;
|
|
182
|
+
for (const [event, entries] of Object.entries(settings?.hooks ?? {})) {
|
|
183
|
+
if (!Array.isArray(entries)) continue;
|
|
184
|
+
for (let index = entries.length - 1; index >= 0; index--) {
|
|
185
|
+
const hook = entries[index]?.hooks?.length === 1 ? entries[index].hooks[0] : null;
|
|
186
|
+
if (hook?.type === 'command' && hook.args?.length === 3 && hook.args[1] === 'participation'
|
|
187
|
+
&& hook.args[2] === 'hook' && within(hook.args[0], installRoot)) {
|
|
188
|
+
settingsEntries.push(['hooks', event, index]); nativeHooks = true;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (nativeHooks && settings?.enabledPlugins && Object.hasOwn(settings.enabledPlugins, 'ours-fleet-native@ours-fleet-experiment'))
|
|
193
|
+
settingsEntries.push(['enabledPlugins', 'ours-fleet-native@ours-fleet-experiment']);
|
|
179
194
|
const settingsMarketplacePath = settings?.extraKnownMarketplaces?.[CLAUDE_MARKETPLACE]?.source?.path ?? null;
|
|
180
195
|
let claude = null;
|
|
181
196
|
try {
|
|
@@ -186,7 +201,7 @@ export async function discoverFootprint(effects, { stateDirs = [], journal = nul
|
|
|
186
201
|
// Claude Code keeps its copy of the plugin after uninstalling it.
|
|
187
202
|
const cache = effects.stat(join(home, '.claude', 'plugins', 'cache', 'ours-network'))?.type === 'dir' ? join(home, '.claude', 'plugins', 'cache', 'ours-network') : null;
|
|
188
203
|
if (plugin || market || settingsEntries.length || cache) {
|
|
189
|
-
claude = { plugin: Boolean(plugin), marketplace: market || settingsMarketplacePath ? { path: market?.path ?? market?.installLocation ?? settingsMarketplacePath } : null, settingsPath: claudeSettingsPath, settingsEntries, cache };
|
|
204
|
+
claude = { plugin: Boolean(plugin), nativePlugin: nativeHooks && plugins.some(p => p?.id === 'ours-fleet-native@ours-fleet-experiment'), marketplace: market || settingsMarketplacePath ? { path: market?.path ?? market?.installLocation ?? settingsMarketplacePath } : null, settingsPath: claudeSettingsPath, settingsEntries, cache };
|
|
190
205
|
}
|
|
191
206
|
} catch {
|
|
192
207
|
if (settingsEntries.length || effects.stat(join(home, '.claude/plugins/cache/ours-network')))
|
package/lib/setup-options.mjs
CHANGED
|
@@ -12,6 +12,7 @@ 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',
|
|
15
16
|
'--config': 'config', '--sources': 'sources', '--port': 'port', '--cowork-port': 'coworkPort', '--messenger-port': 'messengerPort',
|
|
16
17
|
}));
|
|
17
18
|
const boolFlags = new Map([['--compatible', 'compatible'], ['--dry-run', 'dryRun'], ['--migrate', 'migrate'], ['--disable-fleet-agents-setup', 'disableFleetAgentsSetup']]);
|
|
@@ -37,6 +38,11 @@ export function validateSetupOptions(input, { interactive = input?.interactive =
|
|
|
37
38
|
if (!['install', 'update'].includes(options.operation)) throw new Error('Operation must be install or update');
|
|
38
39
|
const server = options.scope !== 'client';
|
|
39
40
|
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
|
+
}
|
|
40
46
|
const suppliedHuman = ['localUsername', 'name', 'surname'].some(key => options[key] !== undefined);
|
|
41
47
|
if (suppliedHuman) {
|
|
42
48
|
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,6 +149,7 @@ 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,
|
|
152
153
|
preset: true, nonInteractive: !plan.interactive }, effects);
|
|
153
154
|
if (result !== 0) return result;
|
|
154
155
|
}
|
package/lib/usage.mjs
CHANGED
|
@@ -55,6 +55,7 @@ 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
|
|
58
59
|
--config PATH complete connection profile for client-only setup
|
|
59
60
|
--sources PATH explicit full development source policy override
|
|
60
61
|
--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.
|
|
3
|
+
"version": "2.2.0",
|
|
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",
|