feat(claw): run bash on an ssh login, no daemon on the far end
The framework ships rhema-sandbox-ssh; the claw's sandbox seam now wires it as a third kind beside local and http. The ssh choice carries a host (any destination the local ssh config resolves) and a workspace base, default /root, with one directory per claw workspace under it so two sessions never share a root. The seed probe makes the root first and quotes it for the remote bash. The settings screen gains the SSH host card, and /v1/sandbox carries host and workspace. The rhema family moves to 0.4.1 in lockstep to pick the crate up.
This commit is contained in:
1 parent
f779415b2b
commit
cdeb5c3994
13 files changed
+548
-139
No files matched your search
@@ -231,9 +231,9 @@ export interface ActiveBackend {
|
||||
active: { provider: string; model: string }
|
||||
}
|
||||
|
||||
/** Where the agent's `bash` runs: this host or a daemon speaking the
|
||||
* sandbox protocol over HTTP. */
|
||||
export type SandboxKind = 'local' | 'http'
|
||||
/** Where the agent's `bash` runs: this host, a daemon speaking the
|
||||
* sandbox protocol over HTTP, or an ssh login on a far box. */
|
||||
export type SandboxKind = 'local' | 'http' | 'ssh'
|
||||
|
||||
/** The sandbox state `GET /v1/sandbox` serves. The token never rides
|
||||
* the wire; `token_set` says whether one is stored. */
|
||||
@@ -241,6 +241,12 @@ export interface SandboxState {
|
||||
kind: SandboxKind
|
||||
url: string | null
|
||||
token_set: boolean
|
||||
/** The ssh destination, an alias or `user@host` the local ssh
|
||||
* config resolves. */
|
||||
host: string | null
|
||||
/** The ssh workspace base the workspaces sit under, `null` for the
|
||||
* default. */
|
||||
ssh_workspace: string | null
|
||||
/** Where `bash` starts under the current choice. */
|
||||
workspace: string
|
||||
/** The daemon's chat workspace, whatever the choice. */
|
||||
@@ -257,6 +263,10 @@ export interface SandboxSelection {
|
||||
url?: string
|
||||
token?: string
|
||||
clear_token?: boolean
|
||||
host?: string
|
||||
/** The ssh workspace base; the per-workspace directories land under
|
||||
* it. An omitted value keeps the current one. */
|
||||
workspace?: string
|
||||
}
|
||||
|
||||
/** A failed API call: the status plus the claw's `error` string when it sent one. */
|
||||
|
||||
Reference in new issue
Block a user