Files
bare-operating-system/packages/bare-os-coreutils/share/agent-workspace/loader.stub.js
T
2026-04-22 02:45:44 -04:00

15 lines
583 B
JavaScript

/**
* Optional ~/.agent/loader.js (seeded stub)
*
* In-guest /bin/agent loads ~/.agent/workspace/*.md via the bundled
* bareAgentLoadWorkspacePrompt() and appends a compact skills index +
* read_skill instructions — it does not import this file.
* Use this stub on the host (Node/Bare) if you build a custom harness that
* mirrors the agent loadWorkspace() pattern with bare-fs or Hyperdrive.
*/
export async function loadWorkspace() {
throw new Error(
'bare-os: use /bin/agent in-image, or implement readFile against your Hyperdrive root + ~/.agent/workspace'
)
}