adom-vscode
Public Made by Adomby adom
Let Claude, Codex and Kimi drive VS Code inside your Adom container
Read-only file verb (file.read) scoped to the workspace folder, allowed on cloud containers
Context: shared Hydrogen workspaces (hydrogen/workspace.json in a project repo; wiki dispatch A on prod, adom-wiki 1.7.42, adom-cli 0.6.0, Hydrogen Cloud dispatch D deployed today). Hydrogen Cloud's Project workspaces dropdown and its Apply button run adom-cli hydrogen workspace apply in the container through this extension's POST /terminal/tui verb, which works on cloud containers. What the cloud cannot do is READ the container's checkout: /exec is disabled on cloud by policy (correctly), and there is no file verb, so the dropdown lists a mirror of hydrogen/workspace.json kept in a bucket instead of the file in ~/project, and Apply cannot consult ~/.adom/launches.json to know which apps already serve.
Ask: a read-only file verb, allowed on cloud containers the way terminal.tui is.
GET /file?path=<relative>(orPOST /file/read {path}): returns the file's bytes (or{content, size, mtime}as JSON for text), 404 when absent.- Scope: paths resolved under the workspace folder
/home/adom/projectonly (the same scope rule the extension already enforces elsewhere), no symlink escape, plus an explicit allow-list for~/.adom/launches.json(the adom-cli launch registry) since it lives outside the workspace. - Read-only, no listing needed for this use (a
GET /file/list?path=would be welcome but is not required). - Feature-detect through the
/healthverb roster (file.read), like every other verb.
Consumers ready to switch the day it lands: Hydrogen Cloud src/lib/server/sharedWorkspaces.ts (the only file that changes there, per the HC thread), and the wiki's Open in Hydrogen deep link. Until then adom-cli posts the file to the cloud's write route on export and apply as a workaround.
Reference: ~/project/hydrogen-cloud-workspaces-spec.md and ~/project/shared-workspaces-plan.md on Colby's container; adom-vscode 1.1.49 is what the cloud verified against.