bridex-worker 0.1.2 → 0.1.4

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 (3) hide show
  1. package/README.md +19 -6
  2. package/dist/cli.js +2847 -1990
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -19,7 +19,9 @@ instances at once over one pool of slots and one cache.
19
19
  Needs Node 20 or later (22 adds the `node22` cap), git, bwrap on Linux and
20
20
  WSL2 (Seatbelt is built into macOS), rclone for the `mount`/`sync` artifact
21
21
  modes (optional), and the agent CLIs (`claude`, `codex`, …) on PATH for
22
- `adapter:cli:*` agents.
22
+ `adapter:cli:*` agents. Plan runs (an agent's `plan_run_start`) also need
23
+ `loopai` on PATH, plus `claude` and/or `codex` for the providers the plan
24
+ uses: loopai starts those CLIs itself.
23
25
 
24
26
  ## Join (once)
25
27
 
@@ -150,11 +152,20 @@ codex_transport: auto # exec
150
152
  `chromium` (also Playwright's browser cache — runs get it read-only, with
151
153
  `PLAYWRIGHT_BROWSERS_PATH` on it), `gpu`, `ffmpeg`, `blender`,
152
154
  `dotnet`, `gdre`, `cli` and `cli:<preset>` for each agent CLI on PATH, `sdk`,
153
- `rclone`. An agent's `requires:` and a project's `requires:` must be among
154
- them for a run to come here.
155
+ `plan` when `loopai` is on PATH, `rclone`. An agent's `requires:` and a
156
+ project's `requires:` must be among them for a run to come here. A plan run
157
+ needs `plan` and `cli:<preset>` for each provider its plan uses; install
158
+ `loopai` and restart the worker to advertise it.
155
159
  - **Slots and load.** A grant is refused when every slot is taken, free memory
156
- or the cache disk is below the reserve (3 GB), or the load per core is
157
- above 1.5 — your own work on the machine comes first. Slots are shared by
160
+ is below 700 MB, the cache disk has less than 3 GB free, or the load per
161
+ core is above 1.5 — your own work on the machine comes first. Free memory
162
+ is what the system can hand a run now: on Linux the kernel's available
163
+ memory, within the cgroup's limit when there is one; on macOS the free,
164
+ speculative, inactive and purgeable pages from `vm_stat`, whatever Node
165
+ version runs the worker. If `vm_stat` cannot run, the worker falls back to
166
+ Node's own reading without a log line, and on Node 20 and 22 that leaves
167
+ out the inactive pages macOS reclaims on demand (mostly file cache), so a
168
+ busy Mac shows a few hundred MB. Slots are shared by
158
169
  every instance served: each sees the machine's free slots, capped by its
159
170
  `max_slots`.
160
171
  - **Cache.** `repos/` bare clones, `work/` one checkout per task, `templates/`
@@ -509,7 +520,9 @@ worker's tests, builds, packs and checks the tarball
509
520
  publishes exactly that tarball with the `NPM_TOKEN` repository secret. npm
510
521
  never overwrites a version, so a version already published makes the last
511
522
  step fail. A prerelease goes under npm's `next` tag. A stable version goes
512
- under `staged`; a second job then points `latest` at the highest stable
523
+ under `staged`; a second job waits until npm shows that version and its
524
+ tarball (npm answers a publish minutes before the registry shows it), then
525
+ points `latest` at the highest stable
513
526
  version on npm, never below the one `latest` names already. That job runs
514
527
  for one tag at a time and reads the registry afresh each time, so releases
515
528
  that overlap (two tags pushed together, a backport) leave `latest` on the