feat: prepare issue workspaces from connected repositories

This commit is contained in:
-Puter
2026-07-24 02:19:35 +05:30
parent 7974bd5f3e
commit 7caad057db
12 changed files with 794 additions and 25 deletions

View File

@@ -143,11 +143,15 @@ export default defineSchema({
.index("by_project_and_number", ["projectId", "number"])
.index("by_project_and_status", ["projectId", "status"]),
projectWorkRuns: defineTable({
baseBranch: v.optional(v.string()),
branchName: v.optional(v.string()),
checkoutPath: v.optional(v.string()),
projectId: v.id("projects"),
issueId: v.id("projectIssues"),
agentId: v.string(),
daemonId: v.string(),
actorKey: v.array(v.string()),
sourceUrl: v.optional(v.string()),
status: v.union(
v.literal("ready"),
v.literal("queued"),