Repository navigation
feat(server): read-only workspace and project APIs for Companion devices - #63
Merged
DimoADE merged 1 commit intoNov 7, 2026
Conversation
Adds conversation_workspace_tree, conversation_workspace_file and conversation_workspace_diff (artifact.read) and conversation_projects (conversation.read). Paths are relative to the workspace root; .., symlink escapes, .git and .env* are refused; files are capped at 256KB and per-file diffs at 200KB. conversation_projects returns each project with its workspace ids so a client can group conversations by project. shared/hostCommands.ts regenerated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New read-only Host commands for Companion Devices:
conversation_workspace_treeartifact.readconversation_workspace_fileartifact.readconversation_workspace_diffartifact.readconversation_projectsconversation.readconversation_projectslets a client group conversations by project (the recent list only carriesworkspace_id). No new scope was added.Evidence
cargo test -p application --test command_contract,cargo test -p server --test web_domains --test host_parity_contract --test mobile_contract.pnpm run generate-typesregeneratedshared/hostCommands.tsonly.Merge Danger
Door: two-way for the code; the command names become part of the Remote surface once clients use them.
Blast Radius: Remote clients with
artifact.read/conversation.readcan now read files inside a workspace root. Paths cannot leave the root and credential files are refused.