Commit Graph
264 Commits
Author SHA1 Message Date
Raven Scott 300f011f01 Remove logger 2026-04-23 20:49:38 -04:00
Raven Scott 80485468f0 feat(booter): ephemeral port fallback on EADDRINUSE
Retry listen(0)/bind(0) when the preferred port is taken, gated by
BARE_OS_BIND_FALLBACK (default on; set 0/false for strict bind).

- Add lib/bare-os-bind-fallback.js and use it from bare-os-www-initd and
  bare-openssh (including privilege-path + holesail actual port).
- POSIX socket bridge in index.js: TCP listen and UDP bind fallbacks.
- bare-holesail + bare-holesail-managed: retry Holesail ready(); persist
  resolved listen port in managed state when it changes.
- Add test.bare-os-bind-fallback.js.
2026-04-23 20:39:50 -04:00
Raven Scott 7a97138fc6 bareOsRunCurlCli / wget / openssl / ssh-keygen / sshd / tar / systemctl /
holesail called run*(ctx, argv) with the boot-time closure ctx, so work
done from SSH used the REPL console while Object.assign child ctx had the
PTY stream. Add exeCtxForStockCli() (prefer this when this.vfs is set) and
delegate stock CLIs through it.
2026-04-22 22:42:42 -04:00
Raven Scott 72a5f3f2b8 fix(booter): tolerate UTF-8 BOM in /lib/bare/bare-module-lock.json 2026-04-22 22:24:23 -04:00
Raven Scott 2cd72de061 feat(booter): default initd parallelism, cmdsubst, bin cache, telemetry NDJSON 2026-04-22 22:18:18 -04:00
Raven Scott 4fa8c14079 When the host leaves these unset, the booter now sets
BARE_OS_SHELL_STREAMING=1, BARE_OS_SHELL_STREAMING_MULT=2,
BARE_OS_PIPELINE_MAX_BYTES (512 MiB), and BARE_OS_PIPELINE_MAX_LINES
(2M) so the high-throughput ~512 MiB burst profile does not require
pre-launch exports.

Align getconf Tier-1 statics with those bases; note legacy rc.profile
exports; refresh handbook, environment appendix, cookbook, and
bare-os-booter CHANGELOG.
2026-04-22 22:09:58 -04:00
Raven Scott 9487e24ef3 Update Docs 2026-04-22 21:59:13 -04:00
Raven Scott 32446dfdef feat(booter): tune 1GiB-class hosts — pipeline ceilings, IPC/MQ, rlimits
Raise simulated pipeline absolute caps (defaults 512 MiB / 2 M lines) via
BARE_OS_PIPELINE_ABS_MAX_BYTES and BARE_OS_PIPELINE_ABS_MAX_LINES so large
BARE_OS_PIPELINE_MAX_* values take effect after streaming multiplier.

Copy missing host env into the guest (BARE_OS_IPC_MAX_CHANNELS, POSIX MQ
defaults, abs caps, BARE_OS_VFS_MAX_OPEN). Add aliases:
BARE_OS_STREAMING_MULTIPLIER → BARE_OS_SHELL_STREAMING_MULT,
BARE_OS_TIMER_BUDGET_MS → BARE_OS_EXEC_LINE_BUDGET_MS,
BARE_OS_TELEMETRY_OTEL=1 → default OTL JSONL path.

Extend POSIX mq_open defaults and maxmsg ceiling; mirror BARE_OS_VFS_MAX_OPEN
to RLIMIT_NOFILE in /proc/bare_os/rlimits.json.

Document the profile in the Pear cookbook and refresh pipeline limits in the
handbook; extend runtime caps env key list.
2026-04-22 21:54:42 -04:00
Raven Scott 463e482198 Update Docs 2026-04-22 21:11:28 -04:00
Raven Scott ff9a1f8888 OpenSSH Holesail 2026-04-22 21:01:08 -04:00
Raven Scott 790c95105e Remove Log Config 2026-04-22 20:54:49 -04:00
Raven Scott 23172a2616 Stabilize Keys on login 2026-04-22 20:48:16 -04:00
Raven Scott 638b1141e4 Updates 2026-04-22 20:40:39 -04:00
Raven Scott dd1003e3ae tests 2026-04-22 20:32:40 -04:00
Raven Scott d562c78ebb updates 2026-04-22 20:26:24 -04:00
Raven Scott c1fb344784 seed 2026-04-22 20:18:19 -04:00
Raven Scott 835de02ae5 tests 2026-04-22 20:06:18 -04:00
Raven Scott 45a8a3fde6 Tests 2026-04-22 19:48:28 -04:00
Raven Scott c8e6b3b6d4 Update 2026-04-22 19:42:52 -04:00
Raven Scott 24f1067330 Tests 2026-04-22 19:39:30 -04:00
Raven Scott c5256b9a0e Fixes 2026-04-22 19:31:00 -04:00
Raven Scott 59af2a3dbf Attempt 3 2026-04-22 19:17:59 -04:00
Raven Scott 1371a15314 Attempt 2 2026-04-22 19:11:53 -04:00
Raven Scott c4e60fd83e HS Fixes 2026-04-22 18:57:40 -04:00
Raven Scott 93198d4fa6 - captureExec: stop wrapping with { … ; }; Bare shell splits ; naively, so {
became argv[0] (“unknown command: {”). Redirect only, append EXIT:N from
  BARE_OS_EXIT_STATUS after execLine.

- Streaming: normalize newlines for SSH PTY (bareOsPtyStdoutCrlf on SSH child ctx,
  bareAgentWriteOut uses ctx).
2026-04-22 17:34:02 -04:00
Raven Scott bc22a0d63e Attempts to normalized Agent output when using OpenSSH Server 2026-04-22 17:11:42 -04:00
Raven Scott 50f90320f7 Continue resolve for www server 2026-04-22 16:00:34 -04:00
Raven Scott 594c9d2279 web server service detect sub directory index.html 2026-04-22 15:54:32 -04:00
Raven Scott faba92f8b1 More Mux Fixes 2026-04-22 06:38:52 -04:00
Raven Scott e4f28533cf changes - may reverse 2026-04-22 06:25:02 -04:00
Raven Scott 5ea2f6ebdf Fix Mux Pair 2026-04-22 05:48:24 -04:00
Raven Scott 200873ab41 simplify 2026-04-22 05:40:16 -04:00
Raven Scott 33e343a127 Test 2026-04-22 05:28:46 -04:00
Raven Scott 0dd2539f66 test fix 2026-04-22 05:22:21 -04:00
Raven Scott 2f53540b1e key persist 2026-04-22 05:15:53 -04:00
Raven Scott 3ee37febc8 Fixes 2026-04-22 05:09:01 -04:00
Raven Scott 2151550f3a Updates 2026-04-22 04:58:18 -04:00
Raven Scott 19b42d647f Updates 2026-04-22 04:47:24 -04:00
Raven Scott 6b8f28bdfd Updates 2026-04-22 04:41:19 -04:00
Raven Scott eebf6a0e23 Holesail URL Persist 2026-04-22 04:21:32 -04:00
Raven Scott 1b7381c137 http server updates and docs 2026-04-22 04:12:27 -04:00
Raven Scott 4b87f2e2d8 Fixes for http 2026-04-22 03:55:14 -04:00
Raven Scott 7b8fb056c0 Attempt at HTTP Server 2026-04-22 03:44:42 -04:00
Raven Scott 9200780e21 hdms and holesail skills 2026-04-22 03:30:37 -04:00
Raven Scott 5731445ab4 Developer Skill 2026-04-22 03:15:00 -04:00
Raven Scott cb6f643273 Further updates to configure 2026-04-22 03:07:28 -04:00
Raven Scott 5eb559c554 Agent Workspace Mount After Config 2026-04-22 02:57:42 -04:00
Raven Scott 6ee7cfcb57 TUI CONFIG 2026-04-22 02:51:45 -04:00
Raven Scott bc737094ca Attempts at agent skills 2026-04-22 02:45:44 -04:00
Raven Scott 5b12254fe1 Add agent workspace 2026-04-22 02:28:25 -04:00