@whoz-oss/coday-web 0.0.0-workstream-forge.171 → 0.0.0-workstream-forge.172

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.
Files changed (2) hide show
  1. package/README.md +13 -5
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -13,8 +13,9 @@ In a terminal (Nx mode, see below) the browser opens by itself, always on **`/we
13
13
  (`http://localhost:3000/welcome`), as soon as the Express server listens and whatever the install: that page only talks
14
14
  to Coday's own server, so it does not wait for AgentOS. On a **first run** it is the wizard. Otherwise (setup done, or an
15
15
  install without a wizard: `--auth`, an external AgentOS, an existing install without a wizard identity) it is a plain
16
- loading page (download, Java, AgentOS, Factory: nothing that reads as a setup) that follows the startup and leads into
17
- the app by itself as soon as AgentOS is up. With an external `AGENTOS_URL` / `FACTORY_URL` the page has nothing to
16
+ loading page (download, Java, AgentOS, Factory: nothing that reads as a setup) that follows the startup and, as soon as
17
+ AgentOS is up, leads into **the personal namespace of the user** (`user:<email>`) by itself. `/` redirects to `/welcome`.
18
+ With an external `AGENTOS_URL` / `FACTORY_URL` the page has nothing to
18
19
  download or start for that service and only waits for it to answer. Pass `--no-open` or set `CODAY_NO_OPEN=1` to keep
19
20
  the browser closed (it is also never opened with `--auth`, a non-loopback host or `CI`). Without a terminal
20
21
  (`--managed`, desktop apps) nothing is opened: open the URL printed as `Server is running on http://localhost:PORT`
@@ -106,6 +107,10 @@ back to the next free port, the choice is written to `runtime/state.json`). The
106
107
  (Factory) and 7688 (Bolt) are reserved for dev mode** (`pnpm web:serve:dev`, `bootRun`), so a packaged instance and a
107
108
  dev stack run side by side without colliding or picking up each other's services.
108
109
 
110
+ `web:local` has its own preferred ports too: **AgentOS 8324, Factory 8341, Bolt 7888** (Express 3001), so it runs next
111
+ to an `npx` / `coday-web` instance (8224 / 8241 / 7788, Express 3000) without ever taking its ports. They are only
112
+ preferences (`CODAY_AGENTOS_PORT`, `CODAY_FACTORY_PORT`, `CODAY_AGENTOS_BOLT_PORT`): a taken port falls back to the next free one.
113
+
109
114
  ### Logs
110
115
 
111
116
  Each process writes to its own file, in addition to its pane / the console:
@@ -139,7 +144,10 @@ existing installs without a wizard identity keep their previous behaviour: no wi
139
144
  | `--managed` / `CODAY_NO_NX=1` | Force the single-process mode (no Nx) |
140
145
  | `--no-open` / `CODAY_NO_OPEN=1` | Do not open the browser on start (only Nx mode opens it; never with `--auth`, a non-loopback host or `CI`) |
141
146
  | `PORT` | Express port (strict when set; default 3000, 4100 in dev) |
142
- | `AGENTOS_URL`, `FACTORY_URL` | Use an external AgentOS / Factory instead of managed ones |
147
+ | `CODAY_AGENTOS_PORT`, `CODAY_FACTORY_PORT`, `CODAY_AGENTOS_BOLT_PORT` | Preferred ports of the managed AgentOS, Factory and AgentOS Bolt (defaults 8224 / 8241 / 7788; next free port when taken). Set by `web:local` (8324 / 8341 / 7888) |
148
+ | `AGENTOS_URL`, `FACTORY_URL` | Use an external AgentOS / Factory instead of managed ones. A service that is external has no pane in the Nx run (nothing to run); the `status` pane still reports it |
149
+ | `CODAY_NO_FACTORY=1` | Leave the managed Factory out: no `factory` pane in the Nx run, it is neither downloaded nor started, `/api/factory` is not proxied, and the wizard and the loading page do not mention it. An external `FACTORY_URL` is still used |
150
+ | `--profile laptop\|managed` / `CODAY_PROFILE` | Force the profile instead of deriving it (the flag wins over the env var). E.g. a dev server (`AGENTOS_URL`) started on the configDir of a running `coday-web` with `--profile laptop` keeps forwarding the wizard identity to that AgentOS. An external AgentOS on an already provisioned configDir never rewrites `runtime/state.json` (ports, progress) in the single-process mode, except for this profile |
143
151
  | `AGENTOS_EXTERNAL_USERID` | Impose the identity forwarded to AgentOS (disables the wizard) |
144
152
  | `CODAY_AGENTOS_VERSION`, `CODAY_FACTORY_VERSION` | JAR version to run (`dev` = JARs placed by hand in `<configDir>/{agentos,factory}`) |
145
153
  | `CODAY_DEFAULT_FILES_DIR` | Folder proposed by the wizard instead of `~/Coday` |
@@ -156,7 +164,7 @@ pnpm nx run web:local # everyday: build local code, run it l
156
164
  pnpm nx run web:local -- --fresh # test the first-run wizard again (deletes the local config first)
157
165
  pnpm nx run web:local -- --managed # single process, plain console (instead of the Nx TUI)
158
166
  pnpm nx run web:local -- --no-open # do not open the browser (every restart would otherwise open a tab)
159
- pnpm nx run web:local -- --port 3100 # pick the port
167
+ pnpm nx run web:local -- --port 3100 # pick another port (default 3001: 3000 is left to the coday-web package)
160
168
  ```
161
169
 
162
170
  The first time you get the wizard; afterwards the loading page and then the app, on the instance you configured, so you can stop,
@@ -181,7 +189,7 @@ lies in, them, your home or the repository), and nothing is published.
181
189
  | Option / env | Effect |
182
190
  |---|---|
183
191
  | `--fresh` | Delete `config/` and `files/` (printed) before starting: a brand-new first run |
184
- | `--managed`, `--port <n>` | Single-process mode, Express port |
192
+ | `--managed`, `--port <n>` | Single-process mode, Express port (default **3001**, taken strictly: the run fails rather than use 3000, which belongs to the `coday-web` package) |
185
193
  | `--no-open` | Do not open the browser (also `CODAY_NO_OPEN=1`) |
186
194
  | `--prepare-only` | Prepare everything, print the paths as JSON on the last line, no server |
187
195
  | `--clean` | Delete the **whole** root when the server stops (setup and data included) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whoz-oss/coday-web",
3
- "version": "0.0.0-workstream-forge.171",
3
+ "version": "0.0.0-workstream-forge.172",
4
4
  "repository": "https://github.com/whoz-oss/coday",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,9 +13,9 @@
13
13
  ],
14
14
  "dependencies": {
15
15
  "nx": "23.1.1",
16
- "@whoz-oss/coday-client": "0.0.0-workstream-forge.171",
17
- "@whoz-oss/coday-factory-cockpit": "0.0.0-workstream-forge.171",
18
- "@whoz-oss/coday-server": "0.0.0-workstream-forge.171"
16
+ "@whoz-oss/coday-client": "0.0.0-workstream-forge.172",
17
+ "@whoz-oss/coday-factory-cockpit": "0.0.0-workstream-forge.172",
18
+ "@whoz-oss/coday-server": "0.0.0-workstream-forge.172"
19
19
  },
20
20
  "publishConfig": {
21
21
  "access": "public"