mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
feat: workspace improvements - nullable cwd, repo-only workspaces, and resolution refactor
Make workspace cwd optional to support repo-only workspaces that don't require a local directory. Refactor workspace resolution in heartbeat service to pass all workspace hints to adapters, add fallback logic when project workspaces have no valid local cwd, and improve workspace name derivation. Also adds limit param to heartbeat runs list endpoint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
30522f3f11
commit
20a4ca08a5
10 changed files with 5822 additions and 67 deletions
1
packages/db/src/migrations/0020_white_anita_blake.sql
Normal file
1
packages/db/src/migrations/0020_white_anita_blake.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE "project_workspaces" ALTER COLUMN "cwd" DROP NOT NULL;
|
||||
5603
packages/db/src/migrations/meta/0020_snapshot.json
Normal file
5603
packages/db/src/migrations/meta/0020_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -141,6 +141,13 @@
|
|||
"when": 1772029333401,
|
||||
"tag": "0019_public_victor_mancha",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 20,
|
||||
"version": "7",
|
||||
"when": 1772032176413,
|
||||
"tag": "0020_white_anita_blake",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@ export const projectWorkspaces = pgTable(
|
|||
companyId: uuid("company_id").notNull().references(() => companies.id),
|
||||
projectId: uuid("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
||||
name: text("name").notNull(),
|
||||
cwd: text("cwd").notNull(),
|
||||
cwd: text("cwd"),
|
||||
repoUrl: text("repo_url"),
|
||||
repoRef: text("repo_ref"),
|
||||
metadata: jsonb("metadata").$type<Record<string, unknown>>(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue