Files
bare-operating-system/packages/bare-os-booter/lib/shell-tokenizer.js
T
Raven Scott a485ce98d3 feat(boot,vfs,security): expand kernel boot contract, VFS snapshots, and ctx surfaces
- Kernel: strict capability contract merge, junit selftest, startup class, cold boot
  budget warning, boot txn schema v1, rc/kernel.ext resolution traces, richer
  bareOsPublishBootReady (steps/bootSteps, FSM sketch)
- Booter: warm reboot extra cycles, boot provenance on boot.json, step mirroring,
  corestore/swarm suspend-resume hooks, swarm connection manager sketch, event bus
  + optional NDJSON, security_posture proc schema v2, key handle TTL/scopes
- VFS: snapshot path class + BARE_OS_VFS_SNAPSHOTS checkout views, policy metrics,
  batch put + diff helpers, watch consistency hint, quotas vfsQuota fields
- Protocol: BARE_OS_PROTOMUX_CORK_HINT_VERSION via channel exports
- Initd: BARE_INITD_UNIT_STATES; shell: tokenizer module split
- Extensions: capability conflict detector in kernel-extension-resolver
- Docs/scripts: reference index map, observability event bus, dry-run vs rollback
  table, benchmark trend + integration-lab smoke, scripts README
- Tests: /proc listing + pseudo path caps for snapshots and security_posture
2026-04-04 17:24:48 -04:00

17 lines
456 B
JavaScript

/**
* Shell tokenizer slice (diagnostics / trace); planner and executor stay in {@link ./shell.js}.
* @param {string} line
* @returns {{ type: 'word', value: string }[]}
*/
export function tokenizeBareShellLineForDiagnostics(line) {
const s = String(line || '')
/** @type {{ type: 'word', value: string }[]} */
const out = []
const re = /\S+/g
let m
while ((m = re.exec(s))) {
out.push({ type: 'word', value: m[0] })
}
return out
}