@ours.network/install 2.1.6 → 2.1.8

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
@@ -93,10 +93,10 @@ New images use Node.js 24.22.1. Existing images, retained Dockerfiles, running p
93
93
  ## Install first, connect the App afterwards
94
94
 
95
95
  ```sh
96
- ours-install --username alex --name Alex --surname Taylor --disable-fleet-agents-setup
96
+ ours-install --scope all --username alex --name Alex --surname Taylor --disable-fleet-agents-setup
97
97
  ```
98
98
 
99
- This permanent command contains no tunnel credentials or enrollment expiry. On a terminal it asks for the remaining installation choices, including Docker, Podman or native packages. The username is local and has no global uniqueness check. A fresh root is named `<username>@<hostname>`; the optional `--hostname` defaults to the machine name. Messenger stores Name and Surname through its supported profile API. Retried setup retains root identities and existing Messenger profiles.
99
+ This permanent command contains no tunnel credentials or enrollment expiry. `--scope all` installs everything on this computer, so no server/client choice is asked. On a terminal it first offers **Install recommended setup** (the default: `~/.ours-install`, Docker, Fleet and the detected agent apps) or **Customize** (folder, Docker or Podman, apps, ports). An installation already found in `~/.ours-install` or another `~/.ours*` folder, or elsewhere through its Docker/Podman containers, is updated in place with its runtime, ports and connected apps, after the usual recovery-backup consent; several installations, one that cannot be read, or a native Ours service from another folder are refused until `--state-dir` selects one. Valid supplied profile values are used without asking; missing or invalid ones are asked. The username is local and has no global uniqueness check. A fresh root is named `<username>@<hostname>`; the optional `--hostname` defaults to the machine name. Messenger stores Name and Surname through its supported profile API. Retried setup retains root identities and existing Messenger profiles.
100
100
 
101
101
  `--disable-fleet-agents-setup` installs the Fleet CLI and saves the choice without opening its agent/model wizard or rewriting existing Fleet configuration. Configure agents in the App after device linking. Complete presets still work unattended; partial presets require a terminal and cannot use `OURS_ASSUME_YES`.
102
102
 
@@ -1,38 +1,38 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "channel": "stable",
4
- "installerVersion": "2.1.6",
5
- "commit": "a65e9bf2e50a6e0211bdda41be5460760dd87f9b",
4
+ "installerVersion": "2.1.8",
5
+ "commit": "57b27b3b43c542ae45514d079b2d411cc0ca93eb",
6
6
  "platform": "linux/amd64",
7
7
  "variants": {
8
8
  "server": {
9
- "policySha256": "666953aac3f12ae425c699fd45e0825a7a896fbf8643c7936b06eba7648a9a2a",
9
+ "policySha256": "a1cc2ce3ce996ce6474f2043b8a3986c85154429ac914d6bfe17a7381d58ed56",
10
10
  "runtime": {
11
11
  "repository": "docker.io/adaptframework/ours-runtime",
12
- "index": "sha256:67a7a91e0b72275cbcc68a6c92d029fa00a13fbf53a9f18a7461f2ee2d4fde8f",
13
- "manifest": "sha256:c758b9a2092d33e4aefa21117d1eec68f6115dea9f9d0f32a4e58cd0afb07004",
14
- "config": "sha256:3715f88a117d909529e1431910e3d39a2371bb1ab92fc161908b0ab145113bbc"
12
+ "index": "sha256:95b8a2f367c62e4792a8d67a041fbecf6305fbcb03449212296b0c5ea63b20cf",
13
+ "manifest": "sha256:a3f395d165efb223813f3cdd4b54d8573bc1e127bacfe1bb5fa6120b5b48af73",
14
+ "config": "sha256:6ccf5eba9f0bf6d33cf61f2d4119a1351a1d05431da7ab0d3c908ebbcc2b9f9a"
15
15
  },
16
16
  "maintenance": {
17
17
  "repository": "docker.io/adaptframework/ours-maintenance",
18
- "index": "sha256:1f5a97e1ce5ee8149fb7547e261c8bffaf9e0d45ac27c45cb3e4d48b0df088bd",
19
- "manifest": "sha256:fd54cd2e333df18ce2bdc6a24e2a2dde10b6e16a8a8205ba4f425bacb2a58094",
20
- "config": "sha256:116e3d4885ddaddbe5d480df96cc1d41843446ef87394d67084e0657ce386edf"
18
+ "index": "sha256:28941a30dd09b5e494af14adb8304012cbf1394eec1fa6586abb9f84bdca30e0",
19
+ "manifest": "sha256:0bc0fb9e60dd338875bc667e9eeba58686006f83e4b40f80d1b460e66d039abc",
20
+ "config": "sha256:c032f0c989a07d13c49a3bf3073e98c301b3e3717afef2f7bac6aa4b496e8469"
21
21
  }
22
22
  },
23
23
  "daemon": {
24
- "policySha256": "d09e46aa9908f95b6bd0f28f555f22b12819b86033f2c1d0f95098e4d19ac1bb",
24
+ "policySha256": "432ba050fb017041f704701fc63cd75ad437c39eaf5d1b1e2ca046794f116dc3",
25
25
  "runtime": {
26
26
  "repository": "docker.io/adaptframework/ours-runtime",
27
- "index": "sha256:920d03bab76d2722d0f91c04a0162f9494a9b734855a857f208f5c97f7243693",
28
- "manifest": "sha256:425f14b42138d2664757172b31aa86b7d07b717e8065d7134596e53eb40a6e1c",
29
- "config": "sha256:e74ecca100db6730359a1abb21da927cba6dbece86f4a9c1e771671109192339"
27
+ "index": "sha256:faf5e1c725a3995e2c5a5e73410899545db60d8df64af496d0c98c1651807f0a",
28
+ "manifest": "sha256:337ecda086b9f62f58efeb2d1c25a474db7f6f919a2f9c83426e86991485d07a",
29
+ "config": "sha256:81f07ee05471456e9941c4fc6bc65849d95ed30eb4f52dbcd90cc5be471baf4f"
30
30
  },
31
31
  "maintenance": {
32
32
  "repository": "docker.io/adaptframework/ours-maintenance",
33
- "index": "sha256:54d0f414dd46b5b7039bde797aecbd7dca5a44b43a39d0fe2278d8400492d65c",
34
- "manifest": "sha256:0a29b80c3c8c90cd9895e1e2fda510020738e7d0353610de657155eb43777191",
35
- "config": "sha256:9db4fbaba42009d33bfa62fafc337a11f19ba68c1b2e8a6cb6c2720039034797"
33
+ "index": "sha256:1cc4bde92c2045486a40cddf92589097fa0f05042616299dd05eb1cd65b17a7d",
34
+ "manifest": "sha256:56fc81d76d142746737e96361af21a72ae34226f81196551c1eeb495599f2437",
35
+ "config": "sha256:26e84bc0ea341f678dab1fa8bb606d017b78452857a34038eb2c9166acf273e0"
36
36
  }
37
37
  }
38
38
  }
@@ -13,7 +13,7 @@
13
13
  "@ours.network/codex": "2.0.4",
14
14
  "@ours.network/cowork": "2.0.3",
15
15
  "@ours.network/daemon": "5.2.0",
16
- "@ours.network/fleet": "2.3.5",
16
+ "@ours.network/fleet": "2.4.0",
17
17
  "@ours.network/mcp": "2.0.4",
18
18
  "@ours.network/messenger-server": "2.0.3",
19
19
  "@ours.network/notifications": "1.0.2",
@@ -354,15 +354,16 @@
354
354
  }
355
355
  },
356
356
  "node_modules/@agentclientprotocol/claude-agent-acp": {
357
- "version": "0.63.0",
358
- "resolved": "https://registry.npmjs.org/@agentclientprotocol/claude-agent-acp/-/claude-agent-acp-0.63.0.tgz",
359
- "integrity": "sha512-/Ylytz6KPGkih1sZd2sJAmWIGMh59T+FCJhlsfW9zpB1Lrg0/Njgk/7TplRfX2f7dELx0FeN+SBG+Uju12XwlA==",
357
+ "version": "0.103.0",
358
+ "resolved": "https://registry.npmjs.org/@agentclientprotocol/claude-agent-acp/-/claude-agent-acp-0.103.0.tgz",
359
+ "integrity": "sha512-ypU56QEre6RKCxxQfP34GGcRTGpXgdD9RVLXXN0OgaXglq9oIauwnY8SKerOx068J9d+RulZZ3fIj39EgX9wwA==",
360
360
  "license": "Apache-2.0",
361
361
  "optional": true,
362
362
  "dependencies": {
363
- "@agentclientprotocol/sdk": "1.3.0",
364
- "@anthropic-ai/claude-agent-sdk": "0.3.220",
365
- "zod": "^3.25.0 || ^4.0.0"
363
+ "@agentclientprotocol/sdk": "2.5.0",
364
+ "@anthropic-ai/claude-agent-sdk": "0.3.321",
365
+ "diff": "9.0.0",
366
+ "zod": "4.6.7"
366
367
  },
367
368
  "bin": {
368
369
  "claude-agent-acp": "dist/index.js"
@@ -372,33 +373,39 @@
372
373
  }
373
374
  },
374
375
  "node_modules/@agentclientprotocol/claude-agent-acp/node_modules/@agentclientprotocol/sdk": {
375
- "version": "1.3.0",
376
- "resolved": "https://registry.npmjs.org/@agentclientprotocol/sdk/-/sdk-1.3.0.tgz",
377
- "integrity": "sha512-i3h/efaeuMUFAO1HSfo97QZQnnvMd7wWBYtBsdL6UMZg3a78sk3Ffya5Xu7C7tYsXomXoDXJBAzQF2PcFKAhIQ==",
376
+ "version": "2.5.0",
377
+ "resolved": "https://registry.npmjs.org/@agentclientprotocol/sdk/-/sdk-2.5.0.tgz",
378
+ "integrity": "sha512-MFlXeIuwN6nZSK45SAsSnVjbLgQ2r4fnthoF1lQoGJP3PdaPRpOZeCF2Dds8S4cN8yZP5QbxB1bkJccGskmcYw==",
378
379
  "license": "Apache-2.0",
379
380
  "optional": true,
380
381
  "peerDependencies": {
381
- "zod": "^3.25.0 || ^4.0.0"
382
+ "@modelcontextprotocol/server": "^2.4.0",
383
+ "zod": "^3.25.76 || ^4.0.0"
384
+ },
385
+ "peerDependenciesMeta": {
386
+ "@modelcontextprotocol/server": {
387
+ "optional": true
388
+ }
382
389
  }
383
390
  },
384
391
  "node_modules/@agentclientprotocol/claude-agent-acp/node_modules/@anthropic-ai/claude-agent-sdk": {
385
- "version": "0.3.220",
386
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.220.tgz",
387
- "integrity": "sha512-glc7SdwPkOkLw8oxwLo9PKTdLJGqW/PIR4urWXFoRtX9YllwozsEVc5Tc1+EvLSkfrsxPJqQWqOgpjUOQXf1oA==",
392
+ "version": "0.3.321",
393
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.321.tgz",
394
+ "integrity": "sha512-Smer/h/jQLTtT+l4sxaAUwZq7wif/9RzzuqltS5Gy+kAFo/iP89H7JHa8avhVT0xGkPBvBD/1Bbdg3pcArhQcw==",
388
395
  "license": "SEE LICENSE IN README.md",
389
396
  "optional": true,
390
397
  "engines": {
391
- "node": ">=18.0.0"
398
+ "node": ">=18.14.0"
392
399
  },
393
400
  "optionalDependencies": {
394
- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.220",
395
- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.220",
396
- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.220",
397
- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.220",
398
- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.220",
399
- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.220",
400
- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.220",
401
- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.220"
401
+ "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.321",
402
+ "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.321",
403
+ "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.321",
404
+ "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.321",
405
+ "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.321",
406
+ "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.321",
407
+ "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.321",
408
+ "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.321"
402
409
  },
403
410
  "peerDependencies": {
404
411
  "@anthropic-ai/sdk": ">=0.93.0",
@@ -417,14 +424,15 @@
417
424
  }
418
425
  },
419
426
  "node_modules/@agentclientprotocol/codex-acp": {
420
- "version": "1.10.0",
421
- "resolved": "https://registry.npmjs.org/@agentclientprotocol/codex-acp/-/codex-acp-1.10.0.tgz",
422
- "integrity": "sha512-b4dDCPkH/GgHRb3JelXz4QdNirdoTjO3yYM1ImUJMxVXxgZLZMguEXNhZOH2G755UKzf6ZypiiC7UHe3fKgp2Q==",
427
+ "version": "2.7.0",
428
+ "resolved": "https://registry.npmjs.org/@agentclientprotocol/codex-acp/-/codex-acp-2.7.0.tgz",
429
+ "integrity": "sha512-fFFU/tV5DltBzN4cZIh5tJEWGTZFXbwHU7I5RxPkmrGraw3jhAIuvTeudYwK3wAbV311WgIi7qONl2I8uRV2jw==",
423
430
  "license": "Apache-2.0",
424
431
  "optional": true,
425
432
  "dependencies": {
426
- "@agentclientprotocol/sdk": "^1.4.0",
427
- "@openai/codex": "^0.153.3",
433
+ "@agentclientprotocol/sdk": "~2.6.0",
434
+ "@openai/codex": "^0.166.0",
435
+ "cross-spawn": "^7.0.6",
428
436
  "diff": "^9.0.0",
429
437
  "open": "^11.0.1",
430
438
  "vscode-jsonrpc": "^9.0.1",
@@ -434,6 +442,22 @@
434
442
  "codex-acp": "dist/index.js"
435
443
  }
436
444
  },
445
+ "node_modules/@agentclientprotocol/codex-acp/node_modules/@agentclientprotocol/sdk": {
446
+ "version": "2.6.0",
447
+ "resolved": "https://registry.npmjs.org/@agentclientprotocol/sdk/-/sdk-2.6.0.tgz",
448
+ "integrity": "sha512-3FtL6MkAV5F9qxg0FQV8wmBszIm2xuVPoDWOILIFSDQ+Vq3Twdh7Cw6Hk2GOPUbevgrTUpUAqZXQy7Geaj79mw==",
449
+ "license": "Apache-2.0",
450
+ "optional": true,
451
+ "peerDependencies": {
452
+ "@modelcontextprotocol/server": "^2.4.0",
453
+ "zod": "^3.25.76 || ^4.0.0"
454
+ },
455
+ "peerDependenciesMeta": {
456
+ "@modelcontextprotocol/server": {
457
+ "optional": true
458
+ }
459
+ }
460
+ },
437
461
  "node_modules/@agentclientprotocol/codex-acp/node_modules/zod": {
438
462
  "version": "4.6.7",
439
463
  "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",
@@ -454,9 +478,9 @@
454
478
  }
455
479
  },
456
480
  "node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {
457
- "version": "0.3.220",
458
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.220.tgz",
459
- "integrity": "sha512-7VxlbEosK7DODiOnsjoVd0DSJzbnaPrM2jelMHI0y8zx1UnLS3WC6EFUXbvy74F2sXqEznh2tzn7EKWInaRN6Q==",
481
+ "version": "0.3.321",
482
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.321.tgz",
483
+ "integrity": "sha512-r718mW98hvRbmCa0TtSgImHkgyPUjPXSHOsORrehn2a8Z0FU1A2RkX9gCjY7EzZgL0RNbZXsBbkuab//kUjzJw==",
460
484
  "cpu": [
461
485
  "arm64"
462
486
  ],
@@ -467,9 +491,9 @@
467
491
  ]
468
492
  },
469
493
  "node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {
470
- "version": "0.3.220",
471
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.220.tgz",
472
- "integrity": "sha512-X9RwDsSmbF6ultKZroaip+DL8WRgC64gHbrAwrRlAFSPNZV7zmJyP2ur8rW7KrxqmtuehdMMkw8+SAC/6hD2PA==",
494
+ "version": "0.3.321",
495
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.321.tgz",
496
+ "integrity": "sha512-C08vEnnDylWDaFprx/B1B13RZK3la1HOqR986igkZSwhY//Yxsk5eRI+gz7sxMfhcLZX2NS8PftCOiXr3S74/Q==",
473
497
  "cpu": [
474
498
  "x64"
475
499
  ],
@@ -480,9 +504,9 @@
480
504
  ]
481
505
  },
482
506
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {
483
- "version": "0.3.220",
484
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.220.tgz",
485
- "integrity": "sha512-WkROPwWskqhKR9XgnmseHQ6rLi9zM9qt57IWoToIjL/eXOqDWipp7JXZ1L5ud+LrA42dunHPZfBwD/vXZ+A7LA==",
507
+ "version": "0.3.321",
508
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.321.tgz",
509
+ "integrity": "sha512-vdk9tON09SnsSh/6ULzYTBgsKRat6FyIaqnh4snYl3uy3qX0jpv5UuFUWgS5tvQ1ewI0qYF2k+D78El4gi7/iQ==",
486
510
  "cpu": [
487
511
  "arm64"
488
512
  ],
@@ -493,9 +517,9 @@
493
517
  ]
494
518
  },
495
519
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {
496
- "version": "0.3.220",
497
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.220.tgz",
498
- "integrity": "sha512-OHoZOZ8Cf2TBr6oXIXPwyvUxj9jrq2w8E4poA8dMpacXszcPSPiCQCMuuOh4aWJzfeJE1+TtWxhKMVb2csXyZQ==",
520
+ "version": "0.3.321",
521
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.321.tgz",
522
+ "integrity": "sha512-+8zFXMpJT2r+0j4E1v9BgRf+Qjtmmp4IG/3mDLT6jB6iA+9UvG9RLex+cqct09d+7xP2mDP8kL4cD1WtKUFX1w==",
499
523
  "cpu": [
500
524
  "arm64"
501
525
  ],
@@ -506,9 +530,9 @@
506
530
  ]
507
531
  },
508
532
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {
509
- "version": "0.3.220",
510
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.220.tgz",
511
- "integrity": "sha512-tkTJFnpR9VifvWX2fmkCAPkT6+8Wk/gVu8B5jsVekKZPiZoWRHmMXO30BnZn+f0TZhgYP+82PSX3S8crH1kn+w==",
533
+ "version": "0.3.321",
534
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.321.tgz",
535
+ "integrity": "sha512-i/Y8Ps4q68SRwWB54yFXyItBwn5YHIOYY4R1gla6p4UwF/pM+xxrHycv+yecbC7oU30ShuBYKWN9mRIZ/BCMqw==",
512
536
  "cpu": [
513
537
  "x64"
514
538
  ],
@@ -519,9 +543,9 @@
519
543
  ]
520
544
  },
521
545
  "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {
522
- "version": "0.3.220",
523
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.220.tgz",
524
- "integrity": "sha512-K+FWj+LcGhC1Z7wqeWoLxm1iemcba5xKpLLFVwYm4V6HyMx3ruYd/2r2TiQtjT+JWeNFWIys0ScHiItR6vWAiA==",
546
+ "version": "0.3.321",
547
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.321.tgz",
548
+ "integrity": "sha512-ils3IGsNKIDiURuOgSWorLsjMOlKcMdXQCQyaygEycdtPFItPoIBIYDVjoC1I0XV4tlfXXCHfUvNrs23g4HKNw==",
525
549
  "cpu": [
526
550
  "x64"
527
551
  ],
@@ -532,9 +556,9 @@
532
556
  ]
533
557
  },
534
558
  "node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {
535
- "version": "0.3.220",
536
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.220.tgz",
537
- "integrity": "sha512-rIwgq0UwQExWl6KrHUyC4w5KwpL9l6nd95aUTx6RitexaAuEw//xtfTVLnuE4hDDQZFkzEwpdKc3nxDWoGcUbA==",
559
+ "version": "0.3.321",
560
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.321.tgz",
561
+ "integrity": "sha512-v6/8ikUcYRSYhH5PSGcHq8L6+DKRq/M4I3BzFckis6kMh3degvSuUD1u3+M/oSJ/bcSOA8tXbUgTTwKrlOgvwQ==",
538
562
  "cpu": [
539
563
  "arm64"
540
564
  ],
@@ -545,9 +569,9 @@
545
569
  ]
546
570
  },
547
571
  "node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {
548
- "version": "0.3.220",
549
- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.220.tgz",
550
- "integrity": "sha512-MuOuXhbr66HlGaWXD2f3w0k2PsvmnbkwcUZ0dAe2poFLdl72GC2dapwwOBefxm9QmoNqk9+jmv/dSKGOVWyvLw==",
572
+ "version": "0.3.321",
573
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.321.tgz",
574
+ "integrity": "sha512-9i7ziCR+Wg47cRhYONHnUpTGxUgxfy/+J3N3/4F8YGqz7WLSNH3hpGRj6uJzNK4EMyEhFsca532uD2we0ZMckQ==",
551
575
  "cpu": [
552
576
  "x64"
553
577
  ],
@@ -558,9 +582,9 @@
558
582
  ]
559
583
  },
560
584
  "node_modules/@anthropic-ai/sdk": {
561
- "version": "1.8.0",
562
- "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.8.0.tgz",
563
- "integrity": "sha512-yDOArk2+Qpd/djEKmZjrv7JZ+pn5iBHARJ9PAdvfhGf4H5wNqTgY/2K0/yDKdQdm8G8hrNQchMlBAHpPK7yBfg==",
585
+ "version": "1.10.0",
586
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.10.0.tgz",
587
+ "integrity": "sha512-j4uVct5p3aGIz/BU4K8VU5vt2A6AueHTvx2gfF3xr4mVpwH9IJMWEAUKNwSwdZSJOHQq1Za2tv5huYc5v02D0w==",
564
588
  "license": "Apache-2.0",
565
589
  "optional": true,
566
590
  "peer": true,
@@ -602,9 +626,9 @@
602
626
  }
603
627
  },
604
628
  "node_modules/@fastify/ajv-compiler": {
605
- "version": "4.0.7",
606
- "resolved": "https://registry.npmjs.org/@fastify/ajv-compiler/-/ajv-compiler-4.0.7.tgz",
607
- "integrity": "sha512-VP0yIfwlc1ohj733keYDqyHm1VWeP9VQxYomunhr90jkC4aNNibbkrRiaNgPgqj1ORxUenILR4qzA/ppYBNAtQ==",
629
+ "version": "4.0.8",
630
+ "resolved": "https://registry.npmjs.org/@fastify/ajv-compiler/-/ajv-compiler-4.0.8.tgz",
631
+ "integrity": "sha512-xYcAFYoyP/NELMgj6I7LmMAmiqeXMal0wsM2SgueN9OyMr6bVKHomO9OxuStC7bIAEl4Z3JXBbDPwpXRp59NPQ==",
608
632
  "funding": [
609
633
  {
610
634
  "type": "github",
@@ -671,9 +695,9 @@
671
695
  "license": "MIT"
672
696
  },
673
697
  "node_modules/@fastify/fast-json-stringify-compiler": {
674
- "version": "5.1.1",
675
- "resolved": "https://registry.npmjs.org/@fastify/fast-json-stringify-compiler/-/fast-json-stringify-compiler-5.1.1.tgz",
676
- "integrity": "sha512-pyxRKk7UpUnnrztP9pF4+ZYxusEQ4LifTyzRdiXmyql1QezNHxO02D25MVU2o4kMeAMYWAjG6RKRlojgkbiDAw==",
698
+ "version": "5.2.0",
699
+ "resolved": "https://registry.npmjs.org/@fastify/fast-json-stringify-compiler/-/fast-json-stringify-compiler-5.2.0.tgz",
700
+ "integrity": "sha512-LPTVA0w4oPITWHAvox9NgI1rDSrjUnjxX6QN5MCb9FY+HqvDsUmgLucbj9eQakqC8lYwO7UgkDPHEQLJNl9vtg==",
677
701
  "funding": [
678
702
  {
679
703
  "type": "github",
@@ -686,7 +710,7 @@
686
710
  ],
687
711
  "license": "MIT",
688
712
  "dependencies": {
689
- "fast-json-stringify": "^7.0.0"
713
+ "fast-json-stringify": "^7.3.0"
690
714
  }
691
715
  },
692
716
  "node_modules/@fastify/forwarded": {
@@ -725,9 +749,9 @@
725
749
  }
726
750
  },
727
751
  "node_modules/@fastify/proxy-addr": {
728
- "version": "5.1.2",
729
- "resolved": "https://registry.npmjs.org/@fastify/proxy-addr/-/proxy-addr-5.1.2.tgz",
730
- "integrity": "sha512-uqB4QsgVoro0XDC+DIftIMGXHdBPn+lK6Ek3xXAIxPMCJfqxnbtyEoMCm2KPUVOuIosd7Cyw9HawEqMFM/UA+g==",
752
+ "version": "5.1.3",
753
+ "resolved": "https://registry.npmjs.org/@fastify/proxy-addr/-/proxy-addr-5.1.3.tgz",
754
+ "integrity": "sha512-ptgIgB+abBNTs5lsKNvFaKMCauPaTOE6ZIjxJr3FxCLehmYQQKYGg4srwwNICR9QQlFrYw59jWAo+i9GalVCaw==",
731
755
  "funding": [
732
756
  {
733
757
  "type": "github",
@@ -766,9 +790,9 @@
766
790
  }
767
791
  },
768
792
  "node_modules/@hono/node-server": {
769
- "version": "2.1.7",
770
- "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.7.tgz",
771
- "integrity": "sha512-Wr0E6S+v2Bw9FkpGNP5BQ5QbJvclUa06UVehd65WFZe6XeJwbrKQQ5wPDevc0IC+QyzbO7v3Llh5uo45IZcSnA==",
793
+ "version": "2.1.9",
794
+ "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.9.tgz",
795
+ "integrity": "sha512-Sk4NQd3GFY0WZWCzndwFMPwJhtD0y9qjsQ+pjID0/03nK9pxyBCUoUHCho8QYBLBVhi0ssL8UkNPHqbgSOFPIQ==",
772
796
  "license": "MIT",
773
797
  "engines": {
774
798
  "node": ">=20"
@@ -818,9 +842,9 @@
818
842
  }
819
843
  },
820
844
  "node_modules/@openai/codex": {
821
- "version": "0.153.4",
822
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.153.4.tgz",
823
- "integrity": "sha512-wbHDmit7S/YvBGVX1DQmk13xtWblZ2cApeJ/pB7xDZ10Cna+DZc5ij7f0F4OxdsXN4FW1oLT48OpogUI1+8Y2w==",
845
+ "version": "0.166.0",
846
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0.tgz",
847
+ "integrity": "sha512-2Szlp1l1cz5TX1ccpX4Zok3DZrot9xeZe0km+6/1v8JmqxADwyJxKBJah4dBymkwtS25j/u6dipJusTOI97Z8Q==",
824
848
  "license": "Apache-2.0",
825
849
  "optional": true,
826
850
  "bin": {
@@ -830,19 +854,19 @@
830
854
  "node": ">=16"
831
855
  },
832
856
  "optionalDependencies": {
833
- "@openai/codex-darwin-arm64": "npm:@openai/codex@0.153.4-darwin-arm64",
834
- "@openai/codex-darwin-x64": "npm:@openai/codex@0.153.4-darwin-x64",
835
- "@openai/codex-linux-arm64": "npm:@openai/codex@0.153.4-linux-arm64",
836
- "@openai/codex-linux-x64": "npm:@openai/codex@0.153.4-linux-x64",
837
- "@openai/codex-win32-arm64": "npm:@openai/codex@0.153.4-win32-arm64",
838
- "@openai/codex-win32-x64": "npm:@openai/codex@0.153.4-win32-x64"
857
+ "@openai/codex-darwin-arm64": "npm:@openai/codex@0.166.0-darwin-arm64",
858
+ "@openai/codex-darwin-x64": "npm:@openai/codex@0.166.0-darwin-x64",
859
+ "@openai/codex-linux-arm64": "npm:@openai/codex@0.166.0-linux-arm64",
860
+ "@openai/codex-linux-x64": "npm:@openai/codex@0.166.0-linux-x64",
861
+ "@openai/codex-win32-arm64": "npm:@openai/codex@0.166.0-win32-arm64",
862
+ "@openai/codex-win32-x64": "npm:@openai/codex@0.166.0-win32-x64"
839
863
  }
840
864
  },
841
865
  "node_modules/@openai/codex-darwin-arm64": {
842
866
  "name": "@openai/codex",
843
- "version": "0.153.4-darwin-arm64",
844
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.153.4-darwin-arm64.tgz",
845
- "integrity": "sha512-B1qhN3fa1ay0R0wGziXqgwSkB5icpYChNKHhtBHff/0UtSTC7z+l8aTtvMlGjH3E8HEvY3+njIJelM9CAAoVWg==",
867
+ "version": "0.166.0-darwin-arm64",
868
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-darwin-arm64.tgz",
869
+ "integrity": "sha512-5fWH6qqUInACcRADIewjlnRxDb4QLe0uriwehiZz0+viuAAB8I+WWefqw4xwHvyKaxeiGX4uK56+vrgfvFk3FQ==",
846
870
  "cpu": [
847
871
  "arm64"
848
872
  ],
@@ -857,9 +881,9 @@
857
881
  },
858
882
  "node_modules/@openai/codex-darwin-x64": {
859
883
  "name": "@openai/codex",
860
- "version": "0.153.4-darwin-x64",
861
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.153.4-darwin-x64.tgz",
862
- "integrity": "sha512-vnSbbPzfoDZmmyzsxswsDDXQ06IVFBzkQU7/hroB3ji93Ok2utcsq8Psfk2tjF5r9mEx8RWFJhzuTGHG26/NDA==",
884
+ "version": "0.166.0-darwin-x64",
885
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-darwin-x64.tgz",
886
+ "integrity": "sha512-Vj5wXJPizKmrzNtnRNQf9PP6FJkG3iJU/UO3NE4WvkENZGoQfmImdwf4MVRI5NgwjSuC6LT0HbBRHPVVnwGHuw==",
863
887
  "cpu": [
864
888
  "x64"
865
889
  ],
@@ -874,9 +898,9 @@
874
898
  },
875
899
  "node_modules/@openai/codex-linux-arm64": {
876
900
  "name": "@openai/codex",
877
- "version": "0.153.4-linux-arm64",
878
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.153.4-linux-arm64.tgz",
879
- "integrity": "sha512-QKdjYLYV4hXIuUQDP3P6F4NXuWFoKo9WUoV4nAREIx55kiUyi8UsYdsVobkeXir5n/maEQgYMCKLHVma4rNPiw==",
901
+ "version": "0.166.0-linux-arm64",
902
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-linux-arm64.tgz",
903
+ "integrity": "sha512-w0ScAsBr9aZKtIFrh6HN6KU2yjKKeSCzYfbb7DB0Ccj4BYPzeZtUeQprbycLCwuX3AFQdbdjapmLho2iot74jQ==",
880
904
  "cpu": [
881
905
  "arm64"
882
906
  ],
@@ -891,9 +915,9 @@
891
915
  },
892
916
  "node_modules/@openai/codex-linux-x64": {
893
917
  "name": "@openai/codex",
894
- "version": "0.153.4-linux-x64",
895
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.153.4-linux-x64.tgz",
896
- "integrity": "sha512-x1EcwBlY3AObM1VTUHNM2AzAJQsyreGdagpF+qFiYi/Oa30VBktvvG0C6tLtCzqW6hjZNWkGZQWmeVk7MuJKWg==",
918
+ "version": "0.166.0-linux-x64",
919
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-linux-x64.tgz",
920
+ "integrity": "sha512-CxDm3+D1cpbGJeHrdzINoG+3wn9BVncP4qpZaaNYkxe8iPtRJOYyCJnnPoVjWRIBvI9vPKbRoifsMSA5xDaUpw==",
897
921
  "cpu": [
898
922
  "x64"
899
923
  ],
@@ -908,9 +932,9 @@
908
932
  },
909
933
  "node_modules/@openai/codex-win32-arm64": {
910
934
  "name": "@openai/codex",
911
- "version": "0.153.4-win32-arm64",
912
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.153.4-win32-arm64.tgz",
913
- "integrity": "sha512-/FBh42976ltF1kxDoPQBg1Q6+hwChRU5/sm5dfeC8kFVQMvOCGoGeY5d8rRZGVJE8XojlXo74VQb0sHowcfgBw==",
935
+ "version": "0.166.0-win32-arm64",
936
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-win32-arm64.tgz",
937
+ "integrity": "sha512-LWO1cyGlxbKgeUM7QJ1a6QMSsJi++3PqgIi6BmIUBoj/kzZqRIR69UDMQgeU/9izzJFYMSbwt++lHnUFyjQXlA==",
914
938
  "cpu": [
915
939
  "arm64"
916
940
  ],
@@ -925,9 +949,9 @@
925
949
  },
926
950
  "node_modules/@openai/codex-win32-x64": {
927
951
  "name": "@openai/codex",
928
- "version": "0.153.4-win32-x64",
929
- "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.153.4-win32-x64.tgz",
930
- "integrity": "sha512-lMkB43kJZH0VFr+hoXc11qqR7QtQIbkr07ALgj4urKL1osNyUyuy1iXd3Vzz2iCYvBUCSw7I0l/W1cEPGx9euQ==",
952
+ "version": "0.166.0-win32-x64",
953
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.166.0-win32-x64.tgz",
954
+ "integrity": "sha512-NS8Ps5oG5r19pCrMCUXwUqOui6odnUIoBlQkrjCJ+h1k6KiwCzC/+mI9d3nSZCqFoVONPBTmqyq8NYq3YaFGyA==",
931
955
  "cpu": [
932
956
  "x64"
933
957
  ],
@@ -1046,9 +1070,9 @@
1046
1070
  }
1047
1071
  },
1048
1072
  "node_modules/@ours.network/fleet": {
1049
- "version": "2.3.5",
1050
- "resolved": "https://registry.npmjs.org/@ours.network/fleet/-/fleet-2.3.5.tgz",
1051
- "integrity": "sha512-0ziDFShIj44tRaYhezsc6NzcvNOHOotbFENA0HYoxKbD//KigUFOcwcV/QQ+ZDUKK+0LTmLrTnTAe7ooSyzv1A==",
1073
+ "version": "2.4.0",
1074
+ "resolved": "https://registry.npmjs.org/@ours.network/fleet/-/fleet-2.4.0.tgz",
1075
+ "integrity": "sha512-IZNb7AuVtUfRW0cybNhnZ8qbVNRGvmSn6GnKRBAQM1S+Vj2sxQO/+k1ND0Fr+wHBCPFPhKFp1x6cIsyAb8uhkg==",
1052
1076
  "license": "FSL-1.1-Apache-2.0",
1053
1077
  "dependencies": {
1054
1078
  "@agentclientprotocol/sdk": "^1.3.0",
@@ -1071,8 +1095,8 @@
1071
1095
  "node": ">=22.23.4 <23 || >=24.22.1 <25 || >=26.12.1 <27"
1072
1096
  },
1073
1097
  "optionalDependencies": {
1074
- "@agentclientprotocol/claude-agent-acp": "^0.63.0",
1075
- "@agentclientprotocol/codex-acp": "1.10.0"
1098
+ "@agentclientprotocol/claude-agent-acp": "0.103.0",
1099
+ "@agentclientprotocol/codex-acp": "2.7.0"
1076
1100
  }
1077
1101
  },
1078
1102
  "node_modules/@ours.network/fleet/node_modules/zod": {
@@ -1732,9 +1756,9 @@
1732
1756
  "license": "MIT"
1733
1757
  },
1734
1758
  "node_modules/encodeurl": {
1735
- "version": "2.0.2",
1736
- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.2.tgz",
1737
- "integrity": "sha512-ddmxiyS6ETq/v5/+mdA4fykK7JgEmqcShrGmQFTaKf5o43tL8XLuMzNLLsspuIC3/qGupS7Ci2TF+feJRkYY0w==",
1759
+ "version": "2.0.3",
1760
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.3.tgz",
1761
+ "integrity": "sha512-mIteYONiEfc4xWf2F1WXovh1c8npzS00vNeiUPdwFF+QlVJni+gNvpQltLMQhob8rew/bWWc/bGTuUr0EUGt0w==",
1738
1762
  "license": "MIT",
1739
1763
  "engines": {
1740
1764
  "node": ">= 0.8"
@@ -1919,9 +1943,9 @@
1919
1943
  "license": "MIT"
1920
1944
  },
1921
1945
  "node_modules/fast-json-stringify": {
1922
- "version": "7.3.5",
1923
- "resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-7.3.5.tgz",
1924
- "integrity": "sha512-g7H3xqJmdH9aWLWh8S3CqrRZFZ321yaeNHZp3QUDl3wtXDWjPChDXCDDTwA4M/zsU42nOhE+z5KmpCzgBaaCgw==",
1946
+ "version": "7.3.6",
1947
+ "resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-7.3.6.tgz",
1948
+ "integrity": "sha512-hXCpiZTZGiER/Xree1Tb4PY1DREPUnlWTP5Df9hgtoDnUppulV7Km8lh1/NEBuqz4JnNGSXghnABudfZ/iwIzg==",
1925
1949
  "funding": [
1926
1950
  {
1927
1951
  "type": "github",
@@ -2071,9 +2095,9 @@
2071
2095
  }
2072
2096
  },
2073
2097
  "node_modules/find-my-way": {
2074
- "version": "9.10.0",
2075
- "resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-9.10.0.tgz",
2076
- "integrity": "sha512-eru+uCPQ2g+nLBkf84MHP/KyNNMar0BDy0j+i8Fb72GF9/YHBZ58q7FODUtfVV7XU9nfRUHXSmaM8NmZcIbZ4Q==",
2098
+ "version": "9.10.1",
2099
+ "resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-9.10.1.tgz",
2100
+ "integrity": "sha512-UwbZdEdk59YXIGPW/rbDn/Ayr3mJ5fPH/HJeMPlK8Ez10aUin4iyRwgJvNTSkRfpZ2h8uLX0LbvZm/YUBUpymw==",
2077
2101
  "license": "MIT",
2078
2102
  "dependencies": {
2079
2103
  "fast-deep-equal": "^3.1.3",
@@ -2213,9 +2237,9 @@
2213
2237
  "license": "MIT"
2214
2238
  },
2215
2239
  "node_modules/hono": {
2216
- "version": "4.13.18",
2217
- "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.18.tgz",
2218
- "integrity": "sha512-H9q/E1XizaWstJxUW881dmLxEj+t/TrGGnyxINkm4+sK0qUwsMtFdo2BWI9Vs3cIS19MU6b6iCijoUoEf4f3DA==",
2240
+ "version": "4.13.19",
2241
+ "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.19.tgz",
2242
+ "integrity": "sha512-KmXvQAXwcAHV+muzbIwoJ23niEB5nMoDVr9WcRkU8mvjUECm/1+7v4Jgp7P7a+H6MLFrh+vXrGonGrGS+RQfkA==",
2219
2243
  "license": "MIT",
2220
2244
  "engines": {
2221
2245
  "node": ">=16.9.0"
@@ -2480,9 +2504,9 @@
2480
2504
  }
2481
2505
  },
2482
2506
  "node_modules/light-my-request": {
2483
- "version": "6.8.0",
2484
- "resolved": "https://registry.npmjs.org/light-my-request/-/light-my-request-6.8.0.tgz",
2485
- "integrity": "sha512-5Q8PjoSEdtGIB8fikZsTem5vgRo4F2mR6vUKTDW/H1g6MtAt8e3duQbg/QxL5yzg6BZhor2KOUm3hhWMWLTZwg==",
2507
+ "version": "6.8.1",
2508
+ "resolved": "https://registry.npmjs.org/light-my-request/-/light-my-request-6.8.1.tgz",
2509
+ "integrity": "sha512-20biUK0HAIPG9BZOK3/4s8uVAkAoi1+qW55lciHZCR0puTWipBgyMPEUjqXDWLjsZeqfO6DGsuwW5eyfsTGtyg==",
2486
2510
  "funding": [
2487
2511
  {
2488
2512
  "type": "github",
@@ -3238,9 +3262,9 @@
3238
3262
  "license": "MIT"
3239
3263
  },
3240
3264
  "node_modules/router": {
3241
- "version": "2.2.0",
3242
- "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
3243
- "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
3265
+ "version": "2.3.0",
3266
+ "resolved": "https://registry.npmjs.org/router/-/router-2.3.0.tgz",
3267
+ "integrity": "sha512-bpowRfGjEPe8t9R6fJIzhwmyCGAXwKvxBUsgJm+bJukwdcWmUXbMo7p22w7aYmQBPQTUMNqMV39YX0kMou3z8w==",
3244
3268
  "license": "MIT",
3245
3269
  "dependencies": {
3246
3270
  "debug": "^4.4.0",
@@ -3251,6 +3275,10 @@
3251
3275
  },
3252
3276
  "engines": {
3253
3277
  "node": ">= 18"
3278
+ },
3279
+ "funding": {
3280
+ "type": "opencollective",
3281
+ "url": "https://opencollective.com/express"
3254
3282
  }
3255
3283
  },
3256
3284
  "node_modules/run-applescript": {
@@ -3412,9 +3440,9 @@
3412
3440
  "license": "ISC"
3413
3441
  },
3414
3442
  "node_modules/set-cookie-parser": {
3415
- "version": "3.2.2",
3416
- "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-3.2.2.tgz",
3417
- "integrity": "sha512-df017qMeYuXo4emL09nlyMpi2i2MtEIKS/6jtXH3vmjFgIRsOi852/5RmhJ4EkvN3ZF8jXadM/EkTPXgc8yPIw==",
3443
+ "version": "3.2.3",
3444
+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-3.2.3.tgz",
3445
+ "integrity": "sha512-bDO7NdAkLprNt3BNl3LAh0oVnOS5+WspzxOxiboo7vRIyTqj2pvFmNWYEFynSGQgpJ+7yG/9nc/aSG20UDBUpg==",
3418
3446
  "license": "MIT"
3419
3447
  },
3420
3448
  "node_modules/setprototypeof": {
@@ -3778,9 +3806,9 @@
3778
3806
  "license": "ISC"
3779
3807
  },
3780
3808
  "node_modules/ws": {
3781
- "version": "8.22.2",
3782
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.2.tgz",
3783
- "integrity": "sha512-/rEZ2ejown2N5gxVTHUu9bVVC7ttu0/Tgzf5hbTOixR3Fs7mbbXgn2DbdbcKgJOmpQMtrIUWivtYuVMnp/W/yA==",
3809
+ "version": "8.23.0",
3810
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.0.tgz",
3811
+ "integrity": "sha512-wCkmX8QMOrKjgO8HW2WyDbTSGeqkocxgDzS9iR79rEAexty6/2qzilx3Ag8Tqf9ykop3irLKle0MtVn5qjVnoQ==",
3784
3812
  "license": "MIT",
3785
3813
  "engines": {
3786
3814
  "node": ">=10.0.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "channel": "stable",
4
- "installerVersion": "2.1.6",
4
+ "installerVersion": "2.1.8",
5
5
  "packages": {
6
6
  "@ours.network/sdk": {
7
7
  "version": "5.2.0",
@@ -28,8 +28,8 @@
28
28
  "integrity": "sha512-jqGvgzgyaYVqkROLZyzno6NzQyb6oszXATwmtukQ+ZrHVik86jQHGKvBDwa9ZvOVZEefmm+OhnQoLkXGcA/mwQ=="
29
29
  },
30
30
  "@ours.network/fleet": {
31
- "version": "2.3.5",
32
- "integrity": "sha512-0ziDFShIj44tRaYhezsc6NzcvNOHOotbFENA0HYoxKbD//KigUFOcwcV/QQ+ZDUKK+0LTmLrTnTAe7ooSyzv1A=="
31
+ "version": "2.4.0",
32
+ "integrity": "sha512-IZNb7AuVtUfRW0cybNhnZ8qbVNRGvmSn6GnKRBAQM1S+Vj2sxQO/+k1ND0Fr+wHBCPFPhKFp1x6cIsyAb8uhkg=="
33
33
  },
34
34
  "@ours.network/mcp": {
35
35
  "version": "2.0.4",
@@ -2,7 +2,7 @@
2
2
  "release": {
3
3
  "schema": 1,
4
4
  "channel": "stable",
5
- "installerVersion": "2.1.6",
5
+ "installerVersion": "2.1.8",
6
6
  "packages": {
7
7
  "@ours.network/sdk": {
8
8
  "version": "5.2.0",
@@ -29,8 +29,8 @@
29
29
  "integrity": "sha512-jqGvgzgyaYVqkROLZyzno6NzQyb6oszXATwmtukQ+ZrHVik86jQHGKvBDwa9ZvOVZEefmm+OhnQoLkXGcA/mwQ=="
30
30
  },
31
31
  "@ours.network/fleet": {
32
- "version": "2.3.5",
33
- "integrity": "sha512-0ziDFShIj44tRaYhezsc6NzcvNOHOotbFENA0HYoxKbD//KigUFOcwcV/QQ+ZDUKK+0LTmLrTnTAe7ooSyzv1A=="
32
+ "version": "2.4.0",
33
+ "integrity": "sha512-IZNb7AuVtUfRW0cybNhnZ8qbVNRGvmSn6GnKRBAQM1S+Vj2sxQO/+k1ND0Fr+wHBCPFPhKFp1x6cIsyAb8uhkg=="
34
34
  },
35
35
  "@ours.network/mcp": {
36
36
  "version": "2.0.4",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "@ours.network/fleet": {
89
89
  "type": "npm",
90
- "version": "2.3.5"
90
+ "version": "2.4.0"
91
91
  },
92
92
  "@ours.network/mcp": {
93
93
  "type": "npm",
package/lib/prompt.mjs CHANGED
@@ -132,11 +132,11 @@ function choose(write, fd, question, choices, defaults, multiple, {
132
132
  drawn = true;
133
133
  choices.forEach((choice, i) => {
134
134
  const marker = multiple ? (selected[i] ? c.green('[x]') : '[ ]') : (i === current ? c.green('(●)') : '( )');
135
- write(`\r\x1b[K ${i === current ? c.cyan('> ') : ' '}${marker} ${choice.label}\n`);
135
+ write(`\r\x1b[K ${i === current ? c.cyan('> ') : ' '}${marker} ${i === current ? c.bold(choice.label) : choice.label}\n`);
136
136
  });
137
137
  };
138
138
  try {
139
- write(`\x1b[?25l ${question}\n ${c.bold('↑/↓')} move${multiple ? ', ' + c.bold('Space') + ' toggle' : ''}, ${c.bold('Enter')} confirm\n`);
139
+ write(`\x1b[?25l\n ${c.bold(question)}\n ${c.gray(`↑/↓ move${multiple ? ', Space toggle' : ''}, Enter confirm`)}\n`);
140
140
  redraw();
141
141
  for (;;) {
142
142
  const byte = next();
@@ -112,7 +112,7 @@ process.stdout.write(JSON.stringify(output));
112
112
  return { rows, root: roots[0] };
113
113
  }
114
114
  function retained({ rows, root }) {
115
- effects.out?.(`Retained ${rows.length} existing ${rows.length === 1 ? 'identity' : 'identities'}; Human identity: ${root.name}.`);
115
+ effects.out?.(`Retained ${rows.length} existing ${rows.length === 1 ? 'identity' : 'identities'}, including your Human identity.`);
116
116
  return { name: root.name, cid: root.cid, created: false };
117
117
  }
118
118
  return {
@@ -123,7 +123,7 @@ process.stdout.write(JSON.stringify(output));
123
123
  const prior = await identities(record);
124
124
  if (prior.root) return retained(prior);
125
125
  if (prior.rows.some(row => row.name === name)) throw new Error('Requested Human identity name already exists; no identity was changed');
126
- effects.out?.(`Creating Human identity ${name}; retaining ${prior.rows.length} existing identities.`);
126
+ effects.out?.(`Creating your Human identity; retaining ${prior.rows.length} existing identities.`);
127
127
  try {
128
128
  await identityCommand(record, 'create-root', name);
129
129
  } catch (error) {
@@ -137,7 +137,7 @@ process.stdout.write(JSON.stringify(output));
137
137
  const after = await identities(record);
138
138
  if (!after.root) throw new Error('Human identity creation completed without a visible root');
139
139
  if (after.root.name !== name) return retained(after);
140
- effects.out?.(`Human identity ${after.root.name} is ready.`);
140
+ effects.out?.('Your Human identity is ready.');
141
141
  return { name: after.root.name, cid: after.root.cid, created: true };
142
142
  },
143
143
  /**
@@ -166,10 +166,10 @@ process.stdout.write(JSON.stringify(output));
166
166
  };
167
167
  if (prior.rows.some(row => row.name === name)) {
168
168
  const row = await adopt(prior);
169
- effects.out?.(`Retained Messenger identity ${name}.`);
169
+ effects.out?.('Retained your Messenger identity.');
170
170
  return { name, cid: row.cid, created: false };
171
171
  }
172
- effects.out?.(`Creating Messenger identity ${name} under ${prior.root.name}; retaining ${prior.rows.length} existing identities.`);
172
+ effects.out?.(`Creating your Messenger identity; retaining ${prior.rows.length} existing identities.`);
173
173
  let result;
174
174
  try {
175
175
  result = await identityCommand(record, 'create-role', name);
@@ -187,7 +187,7 @@ process.stdout.write(JSON.stringify(output));
187
187
  if (result?.created?.hierarchy !== 'role' || result.created.underRoot !== prior.root.name || after.root?.cid !== prior.root.cid
188
188
  || !listed(row) || result.created.info?.cid !== row.cid || !under(result.current, row))
189
189
  throw new Error('Messenger identity creation completed without a usable identity under the Human identity');
190
- effects.out?.(`Messenger identity ${name} is ready.`);
190
+ effects.out?.('Your Messenger identity is ready.');
191
191
  return { name, cid: row.cid, created: true };
192
192
  },
193
193
  async serverEnsureHumanProfile(record, human) {
@@ -4,6 +4,7 @@ import { join, resolve } from 'node:path';
4
4
  import { PRODUCTS, PLUGIN_ONLY, PLUGIN_ONLY_INTEGRATIONS } from './product.mjs';
5
5
  import { MIGRATE_FROM_UNSUPPORTED, refuseOldLayout } from './plan.mjs';
6
6
  import { InstallUsageError } from './target.mjs';
7
+ import { heading, info, warn } from './ui.mjs';
7
8
 
8
9
  const scopes = ['all', 'server', 'client'];
9
10
  const integrations = ['codex', 'claude-code', 'fleet'];
@@ -178,6 +179,92 @@ export function defaultHostname() {
178
179
  return hostname().toLowerCase().replace(/[^a-z0-9-]/g, '-').replace(/^[^a-z0-9]+/, '').slice(0, 30) || 'workspace';
179
180
  }
180
181
 
182
+ const personText = /[\\/\p{Cc}\p{Cf}\p{Cs}\p{Zl}\p{Zp}]/u;
183
+ const personPart = value => nonempty(value) && value.trim().length <= 100 && !personText.test(value.trim());
184
+ const profileChecks = {
185
+ localUsername: value => /^[a-z0-9][a-z0-9-]{0,29}$/.test(value),
186
+ name: personPart, surname: personPart,
187
+ hostname: value => value === '' || /^[a-z0-9][a-z0-9-]{0,29}$/.test(value.trim()),
188
+ };
189
+ // The same joined-name rule validateSetupOptions applies.
190
+ const personValid = (name, surname) => {
191
+ const person = `${name.trim()} ${surname.trim()}`;
192
+ return [...person].length <= 64 && person === person.normalize('NFC') && !personText.test(person);
193
+ };
194
+
195
+ // Valid supplied profile values are used silently; only missing or invalid ones are asked.
196
+ async function collectProfile(effects, options) {
197
+ const fields = [
198
+ ['localUsername', 'Local username: ', () => (effects.username?.() ?? 'me').toLowerCase().replace(/[^a-z0-9-]/g, '-').slice(0, 30)],
199
+ ['name', 'Name: ', () => ''], ['surname', 'Surname: ', () => ''], ['hostname', 'Host / machine name (optional): ', () => ''],
200
+ ];
201
+ const valid = key => typeof options[key] === 'string' && profileChecks[key](options[key]);
202
+ const joined = () => !valid('name') || !valid('surname') || personValid(options.name, options.surname);
203
+ fields.splice(0, fields.length, ...fields.filter(([key]) => !valid(key) || (!joined() && (key === 'name' || key === 'surname'))));
204
+ if (!fields.length) return;
205
+ const invalid = fields.filter(([key]) => options[key] !== undefined).map(([key]) => key);
206
+ effects.out(invalid.length ? warn(`Not valid: ${invalid.map(key => ({ localUsername: 'Local username', name: 'Name', surname: 'Surname', hostname: 'Host name' })[key]).join(', ')}. Please enter again.`) : info('Your Ours identity: Name and Surname appear in Messenger.'));
207
+ for (const [key, question, fallback] of fields) {
208
+ for (let attempt = 1; ; attempt++) {
209
+ const value = await effects.askLine(question, fallback());
210
+ if (profileChecks[key](value) && (key !== 'surname' || personValid(options.name, value))) { options[key] = value; break; }
211
+ if (attempt === 3) throw new Error(`Invalid ${key}; nothing was changed`);
212
+ effects.out(warn(key === 'localUsername' || key === 'hostname' ? 'Use 1–30 lowercase letters, digits or hyphens.'
213
+ : 'Use up to 64 characters for Name and Surname together, without slashes or control characters.'));
214
+ }
215
+ }
216
+ }
217
+
218
+ async function integrationDefaults(effects, existing, fleetRequired) {
219
+ const detected = typeof effects.detectHarnesses === 'function' ? await effects.detectHarnesses() : [];
220
+ // A retained full setup keeps the apps it already connected.
221
+ let saved = null;
222
+ try { saved = existing ? effects.readManagedClientProfile?.() : null; } catch { saved = null; }
223
+ const keep = saved && saved.expectedInstanceId === existing.instanceId ? saved.installer?.integrations : undefined;
224
+ const choices = [{ value: 'codex', label: 'Codex' }, { value: 'claude-code', label: 'Claude Code' }, ...(fleetRequired ? [] : [{ value: 'fleet', label: 'Fleet — persistent agents' }])];
225
+ const selected = keep ?? integrations.filter(name => name === 'fleet' || detected.some(item => item.name === name && item.status === 'ok'));
226
+ return { choices, selected };
227
+ }
228
+
229
+ /** The recommended full local setup: a retained installation keeps its folder, runtime and apps; a fresh one uses the defaults. */
230
+ async function recommendedSetup(effects, options, fleetRequired) {
231
+ const stateDir = expandPaths({ stateDir: options.stateDir ?? join(effects.home, '.ours-install') }, effects.home).stateDir;
232
+ const existing = refuseOldLayout(effects.readJson(join(stateDir, 'installation.json')), stateDir, effects.readJson);
233
+ if (existing?.mode === 'packages')
234
+ throw new Error('This installation runs natively, which supports the server only. Choose the server-only setup to maintain it (ours-install server); local clients need an installation that runs in Docker or Podman. Nothing was changed.');
235
+ const engine = existing ? (existing.containerEngine === 'podman' ? 'Podman' : 'Docker') : options.containerEngine === 'podman' ? 'Podman' : 'Docker';
236
+ effects.out(heading(existing ? 'Update Ours on this computer' : 'Install Ours on this computer'));
237
+ effects.out(info(existing ? `Recommended: update your existing Ours in ${stateDir} (${engine}), keeping its identities, data and apps.`
238
+ : `Recommended: the server, Fleet and your detected agent apps, in ${stateDir}, running in ${engine}.`));
239
+ const choice = await effects.select('How would you like to continue?', [
240
+ { value: 'recommended', label: existing ? 'Update with recommended setup' : 'Install recommended setup' },
241
+ { value: 'customize', label: 'Customize' },
242
+ ], 'recommended');
243
+ if (choice !== 'recommended') return null;
244
+ options.stateDir = stateDir;
245
+ options.operation ??= existing ? 'update' : 'install';
246
+ options.mode ??= 'docker';
247
+ if (existing) {
248
+ options.mode = existing.mode;
249
+ if (existing.containerEngine) options.containerEngine = existing.containerEngine;
250
+ }
251
+ const human = ['localUsername', 'name', 'surname'].some(key => options[key] !== undefined);
252
+ // Supplied profile inputs never rename a retained root.
253
+ if (existing?.messengerIdentity && !human) options.identityName ??= existing.messengerIdentity;
254
+ else if (human || options.identityName === undefined) await collectProfile(effects, options);
255
+ for (const [key, fallback] of Object.entries(defaults)) options[key] ??= existing?.[key] ?? fallback;
256
+ if (options.integrations === undefined) {
257
+ const { selected } = await integrationDefaults(effects, existing, fleetRequired);
258
+ options.integrations = fleetRequired || !existing ? [...selected.filter(name => name !== 'fleet'), 'fleet'] : selected;
259
+ }
260
+ if (options.operation === 'update') {
261
+ effects.out(info('The update keeps identities and messages and makes a recovery backup first.'));
262
+ options.compatible ??= await effects.ask('Update now and keep a recovery backup?', true);
263
+ if (!options.compatible) throw new Error('Update cancelled; nothing was changed');
264
+ }
265
+ return validateSetupOptions(expandPaths(options, effects.home), { interactive: true });
266
+ }
267
+
181
268
  export async function collectSetupOptions(effects, presets = {}) {
182
269
  if (effects.interactive !== true) throw new Error('Interactive setup requires a TTY; provide the complete CLI options instead');
183
270
  const options = { ...presets, interactive: true, explicitPorts: presets.explicitPorts ?? [] };
@@ -186,99 +273,100 @@ export async function collectSetupOptions(effects, presets = {}) {
186
273
  { value: 'server', label: 'Server only' },
187
274
  { value: 'client', label: 'Connect this computer to an existing server' },
188
275
  ];
189
- effects.out('Choose what this computer should do. Everything runs the server here and connects your selected apps; client-only uses a server you already have.');
190
- options.scope ??= await effects.select('What would you like to set up?', scopeChoices, 'all');
276
+ if (options.scope === undefined) {
277
+ effects.out(info('Everything runs the server here and connects your apps; client-only uses a server you already have.'));
278
+ options.scope = await effects.select('What would you like to set up?', scopeChoices, 'all');
279
+ }
191
280
  if (!scopes.includes(options.scope)) throw new Error('Scope must be all, server, or client');
281
+ // A full local setup started for the complete workspace (--disable-fleet-agents-setup) always includes Fleet.
282
+ const fleetRequired = options.scope === 'all' && options.disableFleetAgentsSetup === true;
283
+ // A preset full local setup (the App command) starts with one choice: the recommended setup or Customize.
284
+ if (presets.scope === 'all') {
285
+ const recommended = await recommendedSetup(effects, options, fleetRequired);
286
+ if (recommended) return recommended;
287
+ }
192
288
  let existing;
193
289
  if (options.scope !== 'client') {
194
290
  const recommendedRoot = join(effects.home, '.ours-install');
195
- effects.out(`Stores the server programs and data, including identities and messages. The recommended folder is ${recommendedRoot}; choose another only if you want to manage its location yourself.`);
196
- const location = options.stateDir ? 'preset' : await effects.select('Where should server programs and data be stored?', [
197
- { value: 'recommended', label: `Use the recommended folder (${recommendedRoot})` },
198
- { value: 'custom', label: 'Choose another folder' },
199
- ], 'recommended');
200
- options.stateDir ??= location === 'recommended' ? recommendedRoot : await effects.askLine('Folder for server programs and data: ', recommendedRoot);
291
+ if (!options.stateDir) {
292
+ effects.out(info('Ours keeps its programs and data (identities, messages) in one folder.'));
293
+ const location = await effects.select('Where should server programs and data be stored?', [
294
+ { value: 'recommended', label: `${recommendedRoot} (recommended)` },
295
+ { value: 'custom', label: 'Choose another folder' },
296
+ ], 'recommended');
297
+ options.stateDir = location === 'recommended' ? recommendedRoot : await effects.askLine('Folder for server programs and data: ', recommendedRoot);
298
+ }
201
299
  options.stateDir = expandPaths({ stateDir: options.stateDir }, effects.home).stateDir;
202
300
  existing = refuseOldLayout(effects.readJson(join(options.stateDir, 'installation.json')), options.stateDir, effects.readJson);
203
301
  }
204
- effects.out(existing
205
- ? 'This folder already contains an installation. Update selects this installer’s release while retaining state; repair reinstalls the retained package selection.'
206
- : options.scope === 'client' ? 'Install connects your selected apps. Update refreshes their packages while keeping the server connection.'
207
- : 'Install creates a managed installation in the selected folder. Update requires an installation already recorded there.');
208
- options.operation ??= !existing && options.scope !== 'client' ? 'install' : await effects.select('What should happen?', [
209
- { value: 'install', label: existing ? 'Repair this installation' : 'Install and configure' },
210
- { value: 'update', label: 'Update an existing installation' },
211
- ], existing ? 'update' : 'install');
302
+ if (options.operation === undefined) {
303
+ if (existing || options.scope === 'client') {
304
+ effects.out(info(existing ? `Ours is already installed in ${options.stateDir}. Update keeps your identities and data; repair reruns setup.`
305
+ : 'Install connects your apps; update refreshes them and keeps the server connection.'));
306
+ options.operation = await effects.select('What should happen?', [
307
+ { value: 'install', label: existing ? 'Repair this installation' : 'Install and configure' },
308
+ { value: 'update', label: existing ? 'Update (recommended)' : 'Update an existing installation' },
309
+ ], existing ? 'update' : 'install');
310
+ } else options.operation = 'install';
311
+ }
212
312
  if (options.scope !== 'client') {
213
- const recommendation = recommendedMode({ ...effects.platform, arch: effects.platform?.arch ?? process.arch });
214
313
  // Native runs the server only: local clients need the container gateway. A retained
215
314
  // native installation keeps its mode, so a full setup of it cannot finish.
216
315
  if (options.scope === 'all' && existing?.mode === 'packages')
217
316
  throw new Error('This installation runs natively, which supports the server only. Choose the server-only setup to maintain it (ours-install server); local clients need an installation that runs in Docker or Podman. Nothing was changed.');
218
- const nativeOffered = options.scope === 'server' || existing?.mode === 'packages';
219
- effects.out(nativeOffered
220
- ? `${recommendation.reason} Native runs directly on this computer; Docker runs in containers and needs Docker installed and running. An existing installation must keep its current mode.`
221
- : 'The server runs in containers. Docker and Podman both work; the one you choose must be installed and running. An existing installation must keep its current mode.');
222
- const runtime = options.mode ?? await effects.select('How should the server run?', [
223
- ...(nativeOffered ? [{ value: 'packages', label: 'Native packages' }] : []), { value: 'docker', label: 'Docker' }, { value: 'podman', label: 'Podman' },
224
- ], existing?.mode === 'docker' && existing?.containerEngine === 'podman' ? 'podman' : existing?.mode ?? recommendation.mode);
317
+ // A retained installation keeps its runtime, so there is nothing to choose.
318
+ const retained = existing ? (existing.mode === 'docker' && existing.containerEngine === 'podman' ? 'podman' : existing.mode) : undefined;
319
+ let runtime = options.mode ?? retained;
320
+ if (runtime === undefined) {
321
+ const nativeOffered = options.scope === 'server';
322
+ effects.out(info(nativeOffered ? 'Native runs directly on this computer; Docker and Podman run in containers and must be installed and running.'
323
+ : 'Ours runs in containers; Docker or Podman must be installed and running.'));
324
+ runtime = await effects.select('How should the server run?', [
325
+ { value: 'docker', label: 'Docker (recommended)' }, { value: 'podman', label: 'Podman' },
326
+ ...(nativeOffered ? [{ value: 'packages', label: 'Native packages' }] : []),
327
+ ], recommendedMode({ ...effects.platform, arch: effects.platform?.arch ?? process.arch }).mode);
328
+ }
225
329
  options.mode = runtime === 'podman' ? 'docker' : runtime;
226
330
  if (runtime === 'podman') options.containerEngine = 'podman';
227
- if (existing?.messengerIdentity) {
228
- effects.out(`Existing Human identity ${existing.messengerIdentity} and Messenger profile will be retained.`);
229
- // Supplied profile inputs never rename a retained root.
230
- if (!['localUsername', 'name', 'surname'].some(key => options[key] !== undefined)) options.identityName ??= existing.messengerIdentity;
231
- } else if (options.identityName === undefined || options.localUsername !== undefined) {
232
- effects.out('Choose a local username (no global uniqueness check). Name and Surname appear in Messenger; the optional host name identifies this workspace.');
233
- options.localUsername ??= await effects.askLine('Local username: ', (effects.username?.() ?? 'me').toLowerCase().replace(/[^a-z0-9-]/g, '-').slice(0, 30));
234
- options.name ??= await effects.askLine('Name: ', '');
235
- options.surname ??= await effects.askLine('Surname: ', '');
236
- options.hostname ??= await effects.askLine('Host / machine name (optional): ', '');
237
- }
238
- if (['localUsername', 'name', 'surname'].some(key => options[key] !== undefined)) {
239
- // Partial profile presets still collect missing fields on the retained
240
- // path; these inputs never replace its authoritative root.
241
- effects.out('Name and Surname initialize a missing Messenger profile; an existing profile is retained.');
242
- options.localUsername ??= await effects.askLine('Local username: ', (effects.username?.() ?? 'me').toLowerCase().replace(/[^a-z0-9-]/g, '-').slice(0, 30));
243
- options.name ??= await effects.askLine('Name: ', '');
244
- options.surname ??= await effects.askLine('Surname: ', '');
245
- options.hostname ??= await effects.askLine('Host / machine name (optional): ', '');
246
- }
331
+ const human = ['localUsername', 'name', 'surname'].some(key => options[key] !== undefined);
332
+ // Supplied profile inputs never rename a retained root.
333
+ if (existing?.messengerIdentity && !human) options.identityName ??= existing.messengerIdentity;
334
+ else if (human || options.identityName === undefined) await collectProfile(effects, options);
247
335
  for (const [key, fallback] of Object.entries(defaults)) options[key] ??= existing?.[key] ?? fallback;
248
336
  if (options.operation === 'update') {
249
- effects.out('The update retains identities and messages and creates a recovery backup before changing stored state. Proceed only if you accept this release for your existing data; compatibility is not automatically guaranteed.');
337
+ effects.out(info('The update keeps identities and messages and makes a recovery backup first; compatibility with older data is not guaranteed.'));
250
338
  options.compatible ??= await effects.ask('Proceed with this update and keep a recovery backup?', false);
251
339
  }
252
340
  } else {
253
341
  const savedProfile = join(effects.home, '.ours-client', 'profile.json');
254
- effects.out('A connection profile identifies the server and its private access credential. Reuse your saved connection or select a profile supplied by the server owner.');
255
- const connection = options.config ? 'preset' : await effects.select('Which server connection should this computer use?', [
256
- { value: 'saved', label: 'Use the saved server connection' }, { value: 'file', label: 'Choose a connection profile file' },
257
- ], effects.readJson(savedProfile) ? 'saved' : 'file');
258
- options.config ??= connection === 'saved' ? savedProfile : await effects.askLine('Connection profile file: ', savedProfile);
342
+ if (!options.config) {
343
+ effects.out(info('A connection profile names the server and its private access credential.'));
344
+ const connection = await effects.select('Which server connection should this computer use?', [
345
+ { value: 'saved', label: 'Use the saved server connection' }, { value: 'file', label: 'Choose a connection profile file' },
346
+ ], effects.readJson(savedProfile) ? 'saved' : 'file');
347
+ options.config = connection === 'saved' ? savedProfile : await effects.askLine('Connection profile file: ', savedProfile);
348
+ }
259
349
  }
260
- if (options.scope !== 'server') {
261
- const detected = typeof effects.detectHarnesses === 'function' ? await effects.detectHarnesses() : [];
262
- const selected = integrations.filter(name => name === 'fleet' || detected.some(item => item.name === name && item.status === 'ok'));
263
- effects.out('Choose the apps to connect. Detected agent apps are selected by default; Fleet configures persistent agents but leaves them stopped. Use Space to toggle choices, then Enter to continue. You can select none.');
264
- options.integrations ??= await effects.multiselect('Which integrations should be configured?', [
265
- { value: 'codex', label: 'Codex' }, { value: 'claude-code', label: 'Claude Code' }, { value: 'fleet', label: 'Fleet — persistent agents' },
266
- ], selected);
350
+ if (options.scope !== 'server' && options.integrations === undefined) {
351
+ const { choices, selected } = await integrationDefaults(effects, existing, fleetRequired);
352
+ effects.out(info(fleetRequired ? 'Fleet is included. Choose agent apps to connect.' : 'Choose apps to connect. Fleet agents stay stopped until you start them.'));
353
+ const chosen = await effects.multiselect('Which integrations should be configured?', choices, selected.filter(name => choices.some(choice => choice.value === name)));
354
+ options.integrations = fleetRequired ? [...chosen.filter(name => name !== 'fleet'), 'fleet'] : chosen;
267
355
  if (options.integrations.includes('fleet') && !options.disableFleetAgentsSetup && !options.fleetSettingsPath) {
268
- effects.out('Fleet needs model and agent settings. Its guided setup asks for these later; a prepared settings file applies your existing choices. Fleet roles will not start automatically.');
356
+ effects.out(info('Fleet needs model and agent settings; its roles will not start automatically.'));
269
357
  const fleetMode = await effects.select('How should Fleet be configured?', [
270
358
  { value: 'wizard', label: 'Configure interactively with Fleet' }, { value: 'file', label: 'Use a prepared settings file' },
271
359
  ], 'wizard');
272
360
  if (fleetMode === 'file') options.fleetSettingsPath = await effects.askLine('Fleet settings file: ', '');
273
361
  }
274
362
  }
275
- effects.out('Recommended settings use the standard service ports and this installer’s packaged release. Customize only if you need different ports or a development package selection.');
363
+ effects.out(info('Recommended settings use the standard ports and this installer’s release.'));
276
364
  const advanced = await effects.select('Installation settings', [
277
365
  { value: 'recommended', label: 'Use recommended settings' }, { value: 'custom', label: 'Customize' },
278
366
  ], 'recommended');
279
367
  if (advanced === 'custom') {
280
368
  if (options.scope !== 'client') {
281
- effects.out('Ports determine where local apps reach each service. Use three different available ports; an existing installation keeps its recorded ports.');
369
+ effects.out(info('Use three different available ports; an existing installation keeps its recorded ports.'));
282
370
  for (const key of Object.keys(defaults)) {
283
371
  const label = { port: 'Daemon', coworkPort: 'Cowork', messengerPort: 'Messenger' }[key];
284
372
  const value = await effects.askLine(`${label} port: `, String(options[key]));
@@ -286,14 +374,13 @@ export async function collectSetupOptions(effects, presets = {}) {
286
374
  options[key] = Number(value); options.explicitPorts.push(key);
287
375
  }
288
376
  }
289
- effects.out('A source override replaces the packaged release selection. Leave it empty for the supported packaged release; use a file only for a deliberate development override.');
377
+ effects.out(info('A source override replaces the packaged release; leave it empty unless you are developing Ours.'));
290
378
  const sources = await effects.askLine('Source policy override file (optional): ', '');
291
379
  if (sources.trim()) options.sources = sources;
292
380
  }
293
381
  const validated = validateSetupOptions(expandPaths(options, effects.home), { interactive: true });
294
382
  const scopeLabel = scopeChoices.find(choice => choice.value === validated.scope).label;
295
- effects.out(`Setup: ${scopeLabel}; ${validated.operation}${validated.mode ? ` using ${validated.mode === 'packages' ? 'native packages' : 'Docker'} in ${validated.stateDir}` : ` from ${validated.config}`}; integrations: ${validated.integrations?.join(', ') || 'none'}.`);
296
- effects.out('Continue to apply these choices. Cancelling now leaves programs, services and data unchanged.');
297
- if (!await effects.ask('Continue with this setup?', false)) throw new Error('Setup cancelled; nothing was changed');
383
+ effects.out(info(`Setup: ${scopeLabel}; ${validated.operation}${validated.mode ? ` using ${validated.mode === 'packages' ? 'native packages' : validated.containerEngine === 'podman' ? 'Podman' : 'Docker'} in ${validated.stateDir}` : ` from ${validated.config}`}; integrations: ${validated.integrations?.join(', ') || 'none'}. Nothing changes until you continue.`));
384
+ if (!await effects.ask('Continue with this setup?', true)) throw new Error('Setup cancelled; nothing was changed');
298
385
  return validated;
299
386
  }
package/lib/setup.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  import { validateGatewayClientProfile } from './target.mjs';
2
2
  import { gatewayAddress } from './gateway.mjs';
3
- import { join } from 'node:path';
3
+ import { dirname, join } from 'node:path';
4
4
  import { parseSetupArgs, collectSetupOptions, validateSetupOptions } from './setup-options.mjs';
5
5
  import { parseNetworkArgs, validateHostProfile, InstallUsageError } from './target.mjs';
6
- import { clientPackageNames, validateInstallation, refuseOldLayout } from './plan.mjs';
6
+ import { clientPackageNames, validateInstallation, refuseOldLayout, installationPaths, unitNameForStateDir, launchdLabelForStateDir } from './plan.mjs';
7
7
  import { runServerCommand, runClientCommand } from './orchestrate.mjs';
8
- import { banner, heading, info, ok, warn, progress } from './ui.mjs';
8
+ import { banner, c, heading, info, ok, warn, progress } from './ui.mjs';
9
9
  import { isCancel } from './prompt.mjs';
10
10
  import { USAGE } from './usage.mjs';
11
11
  import { validateIdentityName } from './server-onboarding.mjs';
12
12
  import { validateFleetSettings } from './fleet-settings.mjs';
13
13
  import { installerFailure } from './diagnostics.mjs';
14
14
  import { productOf, isPluginOnly, serverRole, PRODUCT_LABELS, PLUGIN_ONLY_INTEGRATIONS } from './product.mjs';
15
- import { collectWelcome, customHarnessGuidance, KEEPS_YOUR_SETUP } from './welcome.mjs';
15
+ import { collectWelcome, customHarnessGuidance, findInstallations, KEEPS_YOUR_SETUP } from './welcome.mjs';
16
16
  import { runRemoval } from './removal.mjs';
17
17
 
18
18
  const maintenance = new Set(['status', 'start', 'stop', 'restart', 'uninstall', 'rebuild', 'gateway-enable', 'access-issue', 'access-replace', 'backup', 'restore', 'reset']);
@@ -152,9 +152,12 @@ export async function executeSetupPlan(plan, effects, { server = runServerComman
152
152
  preset: true, nonInteractive: !plan.interactive }, effects);
153
153
  if (result !== 0) return result;
154
154
  }
155
- if (plan.retainFleetConfiguration && plan.integrations?.includes('fleet')) effects.out(info('Fleet was updated; your existing Fleet agents and their configuration were kept. Restart running agents when convenient: ours-fleet restart'));
156
- else if (plan.disableFleetAgentsSetup && plan.integrations?.includes('fleet')) effects.out(info('Fleet is installed. Run ours-fleet setup-tunnel with the expiring one-use payload from the App command; a compatible Fleet prints the QR and connection code automatically. Configure agents and models in the App after linking.'));
155
+ effects.out(heading('Your installation summary'));
157
156
  effects.out(ok(`Requested ${plan.operation} completed. Existing identities were retained.`));
157
+ if (plan.scope !== 'client') effects.out(info(`Ours: ${plan.stateDir}, running ${plan.mode === 'packages' ? 'natively' : plan.containerEngine === 'podman' ? 'in Podman' : 'in Docker'}`));
158
+ if (plan.scope !== 'server') effects.out(info(`Connected: ${plan.integrations.map(name => ({ codex: 'Codex', 'claude-code': 'Claude Code', fleet: 'Fleet' })[name]).join(', ') || 'none'}`));
159
+ if (plan.retainFleetConfiguration && plan.integrations?.includes('fleet')) effects.out(info('Fleet was updated; your existing Fleet agents and their configuration were kept. Restart running agents when convenient: ours-fleet restart'));
160
+ else if (plan.disableFleetAgentsSetup && plan.integrations?.includes('fleet')) effects.out(`\n ${c.bold('Next:')} return to the Ours App in your browser and continue to connect this workspace. Agents and models are configured there.\n`);
158
161
  if (plan.integrations?.includes('fleet') && !plan.disableFleetAgentsSetup) effects.out(info('Fleet is configured but stopped. Review its settings, then run ours-fleet doctor, ours-fleet config and ours-fleet up.'));
159
162
  if (isPluginOnly(plan.product) && plan.scope === 'all') {
160
163
  effects.out(info('Collaboration tools are ready. Restart Claude Code and start a new Codex session so they load the Ours tools; then ask your agent to create its Ours identity.'));
@@ -180,6 +183,52 @@ function preparedClaudeMarketplace(effects) {
180
183
  return null;
181
184
  }
182
185
 
186
+ /** Partial presets without --state-dir reuse the one installation already here, as the welcome screen does. */
187
+ async function retainedRoot(presets, effects) {
188
+ if (!['all', 'server'].includes(presets.scope) || presets.stateDir !== undefined) return {};
189
+ const found = findInstallations(effects);
190
+ const usable = found.filter(item => !item.invalid);
191
+ if (usable.length === 1) return { stateDir: usable[0].root };
192
+ if (usable.length > 1) throw new InstallUsageError(`Several Ours installations are on this computer (${usable.map(item => item.root).join(', ')}). Choose one with --state-dir; nothing was changed.`);
193
+ if (found.length) throw new InstallUsageError(`An Ours installation here could not be read (${found.map(item => item.root).join(', ')}). Run ours-install without options to review it; nothing was changed.`);
194
+ return outsideRoot(effects);
195
+ }
196
+
197
+ /**
198
+ * An installation in a folder outside ~/.ours*, found from what it runs: Compose labels name its
199
+ * runtime folder (<root>/runtime), and every native installation uses the same daemon service name.
200
+ */
201
+ async function outsideRoot(effects) {
202
+ const daemon = installationPaths({ root: effects.home }).daemon;
203
+ const service = effects.platform?.platform === 'darwin'
204
+ ? join(effects.home, 'Library/LaunchAgents', `${launchdLabelForStateDir(daemon).label}.plist`)
205
+ : join(effects.home, '.config/systemd/user', unitNameForStateDir(daemon).unit);
206
+ if (effects.exists?.(service)) throw new InstallUsageError(`An Ours service from another folder is set up for your user (${service}). Re-run with --state-dir <its folder> to update it; nothing was changed.`);
207
+ const roots = new Set(), unknown = new Set();
208
+ for (const engine of ['docker', 'podman']) {
209
+ let listed;
210
+ try { listed = await effects.run(engine, ['ps', '-a', '--format', '{{.Label "com.docker.compose.project"}}\t{{.Label "com.docker.compose.project.working_dir"}}']); }
211
+ catch (error) {
212
+ if (error?.code === 'ENOENT') continue;
213
+ // An installed engine that cannot be inspected could hide an installation: never assume there is none.
214
+ throw new InstallUsageError(`Could not check ${engine === 'docker' ? 'Docker' : 'Podman'} for an existing Ours installation. Start it (or fix access for your user) and retry, or re-run with --state-dir <folder>; nothing was changed.`);
215
+ }
216
+ for (const line of listed.stdout.split('\n')) {
217
+ const [project = '', workDir = ''] = line.trim().split('\t');
218
+ // Only Compose-created containers name a project folder; images inherit the project label alone.
219
+ if (!/^ours-/.test(project) || !workDir) continue;
220
+ const root = dirname(workDir);
221
+ let record = null;
222
+ try { record = validateInstallation(effects.readJson(join(root, 'installation.json')), root); } catch { record = null; }
223
+ if (record?.project === project && record.workDir === workDir) roots.add(root);
224
+ else unknown.add(project);
225
+ }
226
+ }
227
+ if (unknown.size) throw new InstallUsageError(`Ours containers without a readable installation are on this computer (${[...unknown].join(', ')}). Re-run with --state-dir <its folder> to update it; nothing was changed.`);
228
+ if (roots.size > 1) throw new InstallUsageError(`Several Ours installations are on this computer (${[...roots].join(', ')}). Choose one with --state-dir; nothing was changed.`);
229
+ return roots.size ? { stateDir: [...roots][0] } : {};
230
+ }
231
+
183
232
  /** The sole executable entry: manual answers and CLI presets share one plan/executor. */
184
233
  export async function runSetup(argv, effects) {
185
234
  try {
@@ -202,8 +251,8 @@ export async function runSetup(argv, effects) {
202
251
  const presets = parseSetupArgs(argv, { home: effects.home, validate: false });
203
252
  try { options = validateSetupOptions(presets, { interactive: false }); }
204
253
  catch (error) {
205
- if (!effects.interactive || effects.env?.OURS_ASSUME_YES || !/^Missing (required setup options|human profile option):/.test(error.message)) throw error;
206
- options = await collectSetupOptions(effects, presets);
254
+ if (!effects.interactive || effects.env?.OURS_ASSUME_YES || !/^(Missing (required setup options|human profile option):|Local username must|Hostname must|(name|surname) must contain|Name and Surname together)/.test(error.message)) throw error;
255
+ options = await collectSetupOptions(effects, { ...presets, ...await retainedRoot(presets, effects) });
207
256
  }
208
257
  }
209
258
  const plan = { ...await prepareSetupPlan(options, effects), ...extra };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ours.network/install",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
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",