feat: support typed remote repository sources

This commit is contained in:
2026-08-24 13:35:19 +09:00
parent d69c367285
commit 163a403636
17 changed files with 1041 additions and 199 deletions
@@ -7,13 +7,29 @@ export type WorkspaceCatalogRecord = {
updated_at: string;
};
export type RepositorySourceKind =
| "local_path"
| "file"
| "ssh"
| "http"
| "https"
| "invalid";
export type WorkspaceRepositoryRecord = {
workspace_id: string;
repository_id: string;
name: string;
kind: string;
uri: string;
provider: string | null;
source: {
kind: RepositorySourceKind;
uri: string;
};
default_ref: string | null;
source_revision: number;
source_fingerprint: string;
observed_status: "unverified" | "ready" | "invalid";
observed_at: string | null;
};
export type WorkspaceCatalogItem = WorkspaceCatalogRecord & {
+1 -2
View File
@@ -155,8 +155,7 @@
<p class="workspace-catalog-eyebrow">New team space</p>
<h2 id="workspace-create-title">Create Workspace</h2>
<p>
Repository paths and URIs are interpreted by the Backend. Browser-local paths are
not authority.
Repository sources are interpreted by Backend authority. Supported Git sources are absolute local paths, file://, ssh://, http(s)://, and user@host:path; Browser-local paths and embedded credentials are not authority.
</p>
</div>
<form onsubmit={submitCreation}>