Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
# Workspaces
A session workspace identifies the directory where its work runs. The daemon
represents it as a local path or an SSH location. [Worktrees](worktrees.md) are
separate checkouts that can supply a workspace.
## Locations
A location is the SDK's value
([`sdk/location`](../packages/albedo_sdk/src/albedo_sdk/location.gleam)), and
every check that reads a disk or a host is core's
([`locations`](../apps/albedo/src/albedo/workspace/locations.gleam)).
`location.parse` accepts local strings beginning with `/` or `~`, and remote
locations of the form `[user@]host:/absolute/path`. Bracketed IPv6 addresses are
supported. Remote paths are normalized lexically. This does not resolve
filesystem links. User and host names must begin with a letter or digit.
`locations.workspace` validates an existing local directory when a session is
created or moved. It resolves remote `~` through SSH, but accepts an absolute
remote path without checking its existence at that point. A later operation can
fail when the host or directory is unavailable.
`locations.exists` observes a local or remote folder without opening it. An
unreachable host returns an error, not a missing-folder result. The remote probe
and gather retain their separate time bounds.
`location.label` and `location.to_json` show a remote host's alias, with `user@`
only when it differs from the user ssh config picks for it. The SDK formats
without reading anything: the caller passes that lookup. `locations.label` and
`locations.to_json` pass core's `ssh -G` reading, which the daemon caches for
its life.
Extensions reach these checks through the `hosts`
[capability](extensions.md#extension-capabilities)
([`sdk/hosts`](../packages/albedo_sdk/src/albedo_sdk/hosts.gleam)) on
`extension.Daemon` and `extension.Preparation`: `observe` a host's cached probe,
check whether a folder `exists`, and resolve a `workspace`. The links extension
declares it to show members' presence. It is separate from `Remote`, which
reaches sessions on other daemons.
## Linked workspaces
[`l…