fix: migrate workspace/project IDs to string and widen schema enums

- Change workspace id/projectId from z.number() to z.union([z.string(), z.number()]).transform(String) for backward compat
- Add "non_git" to projectKind, "local_checkout" to workspaceKind enums
- Session converts numeric IDs to strings at the descriptor boundary
- Update tests and daemon-client event types to match
This commit is contained in:
Mohamed Boudra
2026-04-06 08:34:58 +07:00
parent d3e5d6929d
commit 8d4d445c85
4 changed files with 36 additions and 33 deletions
@@ -70,8 +70,8 @@ describe("openProjectDirectly", () => {
requestId: "request-1",
error: null,
workspace: {
id: 1,
projectId: 1,
id: "1",
projectId: "1",
projectDisplayName: "project",
projectRootPath: WORKSPACE_ID,
workspaceDirectory: WORKSPACE_ID,