@vibedeckx/darwin-arm64 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +5 -2
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -187361,6 +187361,10 @@ var createAgentSessionRepos = (kdb, h) => ({
|
|
|
187361
187361
|
}
|
|
187362
187362
|
},
|
|
187363
187363
|
workspaceBindingMigration: {
|
|
187364
|
+
listUnboundLocalProjects: async () => {
|
|
187365
|
+
const rows = await kdb.selectFrom("agent_sessions as s").innerJoin("projects as p", "p.id", "s.project_id").select(["p.id", "p.path"]).where("s.workspace_checkout_id", "is", null).where("p.path", "is not", null).where("p.path", "<>", "").groupBy(["p.id", "p.path"]).execute();
|
|
187366
|
+
return rows.map((row) => ({ id: row.id, path: row.path }));
|
|
187367
|
+
},
|
|
187364
187368
|
backfill: async ({ kind, dryRun = true, batchSize = 100, afterId = "" }) => {
|
|
187365
187369
|
const limit = Math.max(1, Math.min(1e3, batchSize));
|
|
187366
187370
|
const source = kind === "local" ? await kdb.selectFrom("agent_sessions").select(["id", "project_id", "branch"]).where("workspace_checkout_id", "is", null).where("id", ">", afterId).orderBy("id", "asc").limit(limit).execute() : await kdb.selectFrom("remote_session_mappings").select(["local_session_id as id", "project_id", "branch", "remote_server_id"]).where("workspace_checkout_id", "is", null).where("local_session_id", ">", afterId).orderBy("local_session_id", "asc").limit(limit).execute();
|
|
@@ -240242,9 +240246,8 @@ async function registerReportedWorktrees(storage, opts) {
|
|
|
240242
240246
|
}
|
|
240243
240247
|
}
|
|
240244
240248
|
async function syncLocalWorkspaceRegistry(storage) {
|
|
240245
|
-
const projects = await storage.
|
|
240249
|
+
const projects = await storage.workspaceBindingMigration.listUnboundLocalProjects();
|
|
240246
240250
|
for (const project of projects) {
|
|
240247
|
-
if (!project.path) continue;
|
|
240248
240251
|
try {
|
|
240249
240252
|
await getRegisteredWorktreeBranches(storage, project.id, project.path);
|
|
240250
240253
|
} catch (error48) {
|