@ours.network/install 1.2.1-nightly.16 → 1.2.1-nightly.18

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.
@@ -0,0 +1,178 @@
1
+ # Set up Ours with one client connection
2
+
3
+ Fleet, the `ours` CLI and MCP clients share `~/.ours-client/profile.json`.
4
+ Set the server address once. The address is the HTTP gateway: clients append
5
+ `/daemon`, `/cowork`, `/messenger` or `/tg-connector` as needed. They do not
6
+ connect to server Unix sockets, discover server state directories, or try port
7
+ 3050 after a connection failure. Fleet's local supervisor/harness sockets still
8
+ control local processes; they do not carry server management requests.
9
+
10
+ ## Release availability
11
+
12
+ The nightly manifest selects one published dependency graph: SDK
13
+ `3.8.1-nightly.14`, CLI `2.8.1-nightly.12`, daemon `3.8.1-nightly.6`,
14
+ Fleet `1.2.0-nightly.17`, MCP/Codex/Claude Code `1.2.0-nightly.9`,
15
+ Telegram `1.0.1-nightly.8`, Messenger `1.0.31-nightly.8`, and Cowork
16
+ `1.3.3-nightly.20260926.ceab465`. Exact archive checksums are retained in
17
+ `releases/nightly.json`; the host CLI uses the same SDK/CLI pair.
18
+
19
+ The coordinated installer release must include these pins before using the
20
+ commands below. Its release gate verifies the actual registry and vendored
21
+ package graphs, client acquisition/retry, and rejection of dependency drift.
22
+ These checks do not deploy or certify an existing server installation.
23
+
24
+ The daemon includes ADAPT SDK/native `0.12.1` and the shutdown socket-reset
25
+ correction from [SDK PR70](https://github.com/adapt-toolkit/ours-sdk/pull/70).
26
+ Client profile commands do not control server processes.
27
+
28
+ ## Fresh full-stack setup on localhost:4050
29
+
30
+ For an agent asked to “put the daemon on localhost port 4050”, use **4050 as the
31
+ public gateway port**. The daemon's internal container port stays 3050. Docker
32
+ publishes only the gateway. Run as the user who will run Fleet and the harnesses.
33
+ Use Node.js 22+ and a working Docker Compose installation.
34
+
35
+ ```sh
36
+ npm install -g @ours.network/install@nightly
37
+ ours-install all install --mode docker \
38
+ --state-dir "$HOME/ours-server" --identity-name "Your Name" \
39
+ --port 4050 --integrations codex,claude-code
40
+ ```
41
+
42
+ The installer starts the server, retains or creates its Human identity, issues a
43
+ separate client credential, and imports the connection into `~/.ours-client`.
44
+ For Fleet, add `fleet` to `--integrations` and provide
45
+ `--fleet-settings /absolute/path/fleet-settings.json`; see the Fleet settings
46
+ example in [assets/fleet-settings.example.json](assets/fleet-settings.example.json).
47
+ The example selects Codex for all three jobs; review its model and subscription
48
+ against the installed Fleet catalog before use. The installer prepares Fleet but leaves it
49
+ stopped for review. Use `--dry-run` first to inspect a complete preset.
50
+
51
+ Do not set `OURS_PORT=4050` in a client shell, Fleet role, or user service. The
52
+ single profile contains `serverUrl: "http://127.0.0.1:4050"`, with daemon requests
53
+ at `http://127.0.0.1:4050/daemon` and Cowork management at
54
+ `http://127.0.0.1:4050/cowork/management/rpc`.
55
+
56
+ ## Existing or remote server
57
+
58
+ An older Docker installation needs its gateway enabled on the **server host**:
59
+
60
+ ```sh
61
+ ours-install server gateway-enable --state-dir "$HOME/ours-server"
62
+ ```
63
+
64
+ This is a server migration that may restart its services; perform it in an
65
+ approved maintenance window. Do not change identities or reinstall a populated
66
+ server to change a client address. `--port` on an existing installation cannot
67
+ silently move the retained public port.
68
+
69
+ For a remote host, expose the gateway through an authenticated HTTPS entrypoint
70
+ and select that URL when installing the server, for example
71
+ `--server-url https://ours.example.net/base`. The reverse proxy must preserve the
72
+ base prefix, streaming responses and WebSocket upgrades. Do not expose the
73
+ individual service ports.
74
+
75
+ Obtain an issued credential using `ours-install server access-issue --state-dir
76
+ /absolute/server/root --output /private/credential` on the server. Transfer it
77
+ privately to the client user. Never print the credential or put it into command
78
+ arguments, source control, chat, or a service unit. Use a private directory
79
+ (mode 0700) and credential/profile files (mode 0600).
80
+
81
+ Prepare a client profile (the UUID must be the selected server's actual instance):
82
+
83
+ ```json
84
+ {
85
+ "serverUrl": "https://ours.example.net/base",
86
+ "endpoint": "https://ours.example.net/base/daemon",
87
+ "expectedInstanceId": "11111111-2222-3333-4444-555555555555",
88
+ "credentialPath": "/absolute/private/credential"
89
+ }
90
+ ```
91
+
92
+ `endpoint` is optional for the client resolver; when present it must exactly match
93
+ `serverUrl + "/daemon"` after trailing-slash normalization. Older endpoint-only
94
+ profiles must be migrated explicitly: supply the actual gateway URL, not a
95
+ guessed address derived from a direct daemon port.
96
+
97
+ ```sh
98
+ ours-install client --config /absolute/private/profile.json \
99
+ --integrations codex,claude-code
100
+ ```
101
+
102
+ This imports the profile and issued credential into `~/.ours-client`. All new
103
+ clients use that default without an environment export. A conflicting existing
104
+ server instance is refused and retained; do not delete it to bypass that check.
105
+ To change only the gateway address of the same server, prepare a private profile
106
+ with the new `serverUrl` and matching `/daemon` endpoint, keep its actual
107
+ `expectedInstanceId`, and run the same `ours-install client --config ...` command.
108
+ The installer validates authenticated access before importing the new address;
109
+ it preserves imported Fleet settings. New processes use the new address. A
110
+ failed verification leaves the old selection intact. A different server UUID
111
+ requires a separately planned migration, not an address edit.
112
+
113
+ Changing the retained Docker public listening port in place is not currently
114
+ supported. `--port 4050` above is for a fresh server. For an existing server,
115
+ configure an administered reverse proxy to its gateway at the desired address,
116
+ then use the same-instance client address procedure. Do not edit installation
117
+ state or recreate containers with new identities to work around this limitation.
118
+ Native server installations currently need a separately administered gateway;
119
+ the integrated gateway setup above uses Docker (or supported Podman Compose).
120
+
121
+ ## Fleet and systemd
122
+
123
+ For a new Fleet setup, save the linked JSON example as an absolute private file
124
+ and run as the same user after importing the client profile:
125
+
126
+ ```sh
127
+ ours-fleet init --settings /absolute/path/fleet-settings.json
128
+ ```
129
+
130
+ If the installer already imported Fleet settings, reuse them explicitly:
131
+
132
+ ```sh
133
+ ours-fleet init --settings "$HOME/.ours-client/fleet-settings.json"
134
+ ```
135
+
136
+ These commands work without a terminal. A bare `ours-fleet init` is interactive.
137
+ The installer also accepts `--fleet-settings /absolute/path/fleet-settings.json`
138
+ and passes it to this same noninteractive path. Generated systemd and launchd services persist only the common
139
+ profile path, not a service URL, port, or token. Lingering user services therefore
140
+ use the same selection as CLI and MCP after logout/reboot. Detached Fleet task
141
+ workers inherit the common profile and do not inherit legacy service selectors.
142
+
143
+ `OURS_CONFIG` is an explicit override for the **whole client profile**. Use it only
144
+ when all relevant clients intentionally share that same alternate file. It is
145
+ not a per-service address override. For the normal setup, leave it unset.
146
+
147
+ When migrating existing units, inspect `systemctl --user cat 'ours-fleet-agent@.service'`
148
+ and any per-role drop-ins. Remove stale `OURS_PORT`, `OURS_STATE_DIR`,
149
+ `OURS_API_TOKEN`, `OURS_DAEMON_ID` and Cowork-local overrides from their owning
150
+ configuration. Regenerate Fleet units with `ours-fleet init --settings /absolute/path/fleet-settings.json`
151
+ in the intended profile environment, then restart affected client roles only after approval.
152
+ Already-running clients retain their current connection until restarted; editing
153
+ a profile does not rebind running identities. Do not restart the server for a
154
+ client-only profile correction.
155
+
156
+ ## Verify and diagnose
157
+
158
+ ```sh
159
+ curl --fail http://127.0.0.1:4050/.well-known/ours
160
+ ours config show --json
161
+ ours identity list --json
162
+ ours-fleet doctor
163
+ ours-fleet room list
164
+ ```
165
+
166
+ Discovery must advertise the gateway and expected instance. `ours config show`
167
+ shows only connection metadata and a credential path, never the token. For a
168
+ remote server use its exact prefix in the discovery URL. Test both daemon
169
+ identity access and Cowork room listing: one succeeding does not prove the other.
170
+ Check `command -v ours-mcp` and `ours-mcp version` as well as the MCP binary launched
171
+ by the harness; Fleet can bundle a different MCP version than the global binary.
172
+
173
+ Missing/unsafe profiles, mismatched instances, rejected credentials, HTTP errors
174
+ and timeouts fail on the selected gateway. Fix that selection or service; do not
175
+ add localhost/socket fallbacks. If a task reports `room_probe_unavailable`, check
176
+ Cowork through the gateway. `control_unavailable` means Fleet could not query its
177
+ local role supervisor after its room checks; inspect the role's supervisor and
178
+ control channel separately. An active room alone does not establish agent readiness.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ See [one-connection setup, localhost:4050 and systemd migration](GATEWAY_SETUP.md) for the gateway-only client workflow.
2
+
1
3
  # @ours.network/install — one installer for the whole stack
2
4
 
3
5
  Requires Node.js 22+ and npm. Install the selected release channel:
@@ -10,8 +12,8 @@ ours-install
10
12
  With no arguments, the wizard explains each step and offers keyboard choices.
11
13
  Use arrow keys and Enter to choose, and Space to select integrations. Recommended
12
14
  settings keep advanced ports and package overrides out of the usual flow. Text
13
- input is used for your name and explicitly customized paths or ports. Linux x64
14
- recommends native mode; macOS and Windows recommend Docker. On Windows run the
15
+ input is used for your name and explicitly customized paths or ports. Docker is recommended for the integrated full-stack gateway on every platform;
16
+ native packages remain available for server-only setup. On Windows run the
15
17
  installer inside WSL with Docker Desktop integration. This recommendation concerns
16
18
  packaging and isolation, not a guarantee that emulated x64 is faster on ARM Macs.
17
19
 
@@ -68,12 +70,15 @@ it. They exclude the daemon and its native database/ADAPT dependencies. Fleet
68
70
  runs beside the harnesses on the client machine and calls the daemon HTTP API.
69
71
  Client commands report an unavailable server and never start one automatically.
70
72
 
71
- The checked-in source policy and packed installer select the same exact published
72
- nightly release set, including SDK `3.8.1-nightly.10`, CLI `2.8.1-nightly.8`, and
73
- daemon `3.8.1-nightly.2`. The isolated host CLI pair uses these released client
74
- artifacts. `releases/nightly.json` binds the gateway-capable consumers and daemon
75
- to verified SHA512 integrities. Mixed or unselected nested ours versions remain
76
- rejected. An explicit `--sources` override remains available for development.
73
+ The checked-in source policy and packed installer retain the existing server
74
+ release set (SDK `3.8.1-nightly.11`, CLI `2.8.1-nightly.9`, daemon
75
+ `3.8.1-nightly.3`). The isolated host CLI uses published SDK
76
+ `3.8.1-nightly.13` and CLI `2.8.1-nightly.11`, including the shared gateway
77
+ profile resolver. `releases/nightly.json` binds both selections to verified
78
+ SHA512 integrities. Gateway-only Fleet/MCP release adoption is still pending;
79
+ see [GATEWAY_SETUP.md](GATEWAY_SETUP.md). Mixed or unselected nested ours
80
+ versions remain rejected within each selected graph. An explicit `--sources`
81
+ override remains available for development.
77
82
 
78
83
  ## Migrate an existing global installation
79
84
 
@@ -232,7 +237,8 @@ an existing override and does not edit shell configuration or running sessions.
232
237
  Repeat with `ours-install client install` to reuse imported inputs and installed
233
238
  package records. Existing settings and Fleet-generated files are preserved. A
234
239
  prepared profile for the same endpoint/instance may supply a valid replacement
235
- issued token; another server is refused without changing the default. Invalid
240
+ issued token; a different server instance is refused without changing the default. A verified
241
+ new gateway address for the same instance updates the shared profile for new clients. Invalid
236
242
  server access is rejected before import. An acquisition or component failure
237
243
  reports incomplete setup and keeps the saved configuration for retry. Selected
238
244
  native integrations whose executable is unavailable are incomplete, not installed.
@@ -243,7 +249,7 @@ Interactive no-argument installation asks for package/Docker server mode, a
243
249
  prepared client profile, or `client`. Client setup offers the saved server when
244
250
  present. On first setup it asks for the server HTTP endpoint, issued-token file,
245
251
  source manifest and integration choices, obtains the instance UUID from
246
- `/selection`, displays it, then checks authenticated daemon API access before
252
+ `/.well-known/ours` at the gateway, displays it, then checks authenticated daemon API access before
247
253
  saving anything. No UUID must be entered manually. The 2.0 HTTP flow assumes the
248
254
  approved trusted same-host deployment; selection metadata is not cryptographic
249
255
  server authentication. Fleet collects missing setup answers through its own wizard.
@@ -514,3 +520,42 @@ OURS_TEST_DOCKER=1 node --test test/gateway-docker.test.mjs
514
520
  PODMAN_COMPOSE_PROVIDER=/absolute/path/to/docker-compose \
515
521
  OURS_TEST_PODMAN=1 node --test test/gateway-docker.test.mjs
516
522
  ```
523
+
524
+ ## Account workspace enrollment (task build)
525
+
526
+ The unmerged account onboarding feature requires matching reviewed installer,
527
+ Fleet and Messenger task builds. Do not advertise it as available in `@latest`.
528
+ Use an owned private directory and a 0600 downloaded payload:
529
+
530
+ ```sh
531
+ node /absolute/task-ours-network/packages/installer/install.mjs \
532
+ --setup-workspace-file /absolute/private/workspace.payload \
533
+ --workspace-fleet-bin /absolute/task-ours-fleet/dist/cli.js \
534
+ --sources /absolute/private/task-sources.json
535
+ ```
536
+
537
+ The wrapper defaults fresh hosts to the full Docker stack and retains existing
538
+ Human roots through the installed SDK with exact instance/private credential
539
+ selection. For an existing supported gateway add `--scope client --config` with
540
+ its private profile. It clears competing inherited daemon selectors before Fleet
541
+ initialization and enrollment; it never copies a browser device bearer to the
542
+ account server. A private stdin payload is also accepted by `--setup-workspace -`.
543
+ Encoding is not encryption; command arguments can enter history/process listings.
544
+ Cloudflare management tokens are forbidden in these payloads.
545
+
546
+ Docker and `cloudflared` are required for the fresh workflow. Supply a complete
547
+ `--fleet-settings` JSON for noninteractive Fleet initialization, or answer its
548
+ terminal prompts. Dry-run never initializes or enrolls Fleet. Read the matching
549
+ ours-app `server/DEPLOYMENT.md` for exact task source-policy generation, external
550
+ Google/Cloudflare prerequisites and account-server setup. On uncertain enrollment
551
+ check account status before requesting a new payload; do not reset identities or
552
+ replay a consumed invitation.
553
+
554
+ Workspace setup accepts exactly https://app.ours.network and the controlled test
555
+ account origin https://app.ours-tunnel.com. To move an existing same workspace to
556
+ the other origin, obtain a fresh payload from the moved account server and add
557
+ `--workspace-migrate-app-origin`. Fleet verifies the signed binding receipt before
558
+ changing local origin trust, preserves identities/config/device records, and
559
+ restarts the runtime. An implicit origin change is rejected. Browser account
560
+ cookies/device IndexedDB must be linked anew on the new origin. See the app
561
+ server/DEPLOYMENT.md switching procedure.
@@ -0,0 +1,48 @@
1
+ {
2
+ "subscriptions": [
3
+ "codex"
4
+ ],
5
+ "assignmentStrategy": "one-model",
6
+ "models": {
7
+ "development": {
8
+ "harness": "codex",
9
+ "session": "acp",
10
+ "model": "gpt-6-astra",
11
+ "efforts": [
12
+ "low",
13
+ "medium",
14
+ "high",
15
+ "xhigh",
16
+ "max",
17
+ "ultra"
18
+ ]
19
+ },
20
+ "review": {
21
+ "harness": "codex",
22
+ "session": "acp",
23
+ "model": "gpt-6-astra",
24
+ "efforts": [
25
+ "low",
26
+ "medium",
27
+ "high",
28
+ "xhigh",
29
+ "max",
30
+ "ultra"
31
+ ]
32
+ },
33
+ "coordination": {
34
+ "harness": "codex",
35
+ "session": "acp",
36
+ "model": "gpt-6-astra",
37
+ "efforts": [
38
+ "low",
39
+ "medium",
40
+ "high",
41
+ "xhigh",
42
+ "max",
43
+ "ultra"
44
+ ]
45
+ }
46
+ },
47
+ "reasoning": "balanced"
48
+ }