Added a full ctx-level TCP connector path for telnet:

packages/bare-os-booter/index.js
Added ctx.bareOsTelnetConnect(host, port, opts) that prefers ctx.bare.bareTcp.createConnection, then new bareTcp.Socket(), with explicit diagnostics if unavailable.
packages/bare-os-coreutils/src/telnet.js already preferred ctx.bareOsTelnetConnect, so it now uses this richer path first automatically.
Added missing ssh command:

New file: packages/bare-os-coreutils/src/ssh.js
Supports -h/--help
Delegates to ctx.bareOsRunSshCli when present
Emits explicit nonzero unavailable/runtime diagnostics when absent
Registered command:
packages/bare-os-coreutils/lib/commands.mjs
Hardened HDMS create mount visibility:

packages/bare-os-booter/lib/hdms-manager.js
hdms create now verifies mount visibility via getMountMap().has(label) and errors non-silently if missing.
Success message now includes mount path (mounted=/mnt/<label>).
Fixed parser/semantics and explicit failures:

packages/bare-os-coreutils/src/kill.js
-1 is now treated as a target (not misparsed as signal shorthand), so kill -TERM -1 is explicit/non-silent.
packages/bare-os-coreutils/src/test.js
Numeric test comparisons now emit diagnostic + exit 2 for empty integer operand cases (keeps existing non-decimal behavior stable).
packages/bare-os-coreutils/src/crontab.js
Explicitly rejects stdin/fd-style installs (-, /dev/fd/*, /proc/self/fd/*) with nonzero error.
Updated ctx typings:

packages/bare-os-booter/lib/bare-os-ctx.d.ts
Added bareOsRunSshCli?
Added bareOsTelnetConnect?
This commit is contained in:
Raven Scott
2026-04-27 09:08:34 -04:00
parent 27292f2ba6
commit 193464bd2e
27 changed files with 540 additions and 15 deletions
+11
View File
@@ -201,6 +201,17 @@ async function run(ctx, argv) {
}
const file = rest[0]
if (
file === '-' ||
/^\/dev\/fd\/\d+$/i.test(file) ||
/^\/proc\/self\/fd\/\d+$/i.test(file)
) {
ctx.console.error(
'crontab: stdin/fd-based installs are not supported in this runtime; use a regular file path'
)
ctx.exitCode = 1
return
}
try {
const b = await vfs.readFile(file)
if (b == null) {