@getpaseo/server 0.1.18 → 0.1.20

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.
Files changed (74) hide show
  1. package/dist/server/client/daemon-client.d.ts +5 -1
  2. package/dist/server/client/daemon-client.d.ts.map +1 -1
  3. package/dist/server/client/daemon-client.js +22 -0
  4. package/dist/server/client/daemon-client.js.map +1 -1
  5. package/dist/server/server/agent/agent-management-mcp.d.ts.map +1 -1
  6. package/dist/server/server/agent/agent-management-mcp.js +11 -28
  7. package/dist/server/server/agent/agent-management-mcp.js.map +1 -1
  8. package/dist/server/server/agent/agent-manager.d.ts +2 -0
  9. package/dist/server/server/agent/agent-manager.d.ts.map +1 -1
  10. package/dist/server/server/agent/agent-manager.js +50 -6
  11. package/dist/server/server/agent/agent-manager.js.map +1 -1
  12. package/dist/server/server/agent/mcp-server.d.ts.map +1 -1
  13. package/dist/server/server/agent/mcp-server.js +11 -34
  14. package/dist/server/server/agent/mcp-server.js.map +1 -1
  15. package/dist/server/server/agent/providers/claude-agent.d.ts.map +1 -1
  16. package/dist/server/server/agent/providers/claude-agent.js +169 -43
  17. package/dist/server/server/agent/providers/claude-agent.js.map +1 -1
  18. package/dist/server/server/bootstrap.d.ts +13 -0
  19. package/dist/server/server/bootstrap.d.ts.map +1 -1
  20. package/dist/server/server/bootstrap.js +46 -32
  21. package/dist/server/server/bootstrap.js.map +1 -1
  22. package/dist/server/server/persisted-config.d.ts +22 -22
  23. package/dist/server/server/session.d.ts +10 -6
  24. package/dist/server/server/session.d.ts.map +1 -1
  25. package/dist/server/server/session.js +191 -223
  26. package/dist/server/server/session.js.map +1 -1
  27. package/dist/server/server/speech/speech-types.d.ts +2 -2
  28. package/dist/server/server/websocket-server.d.ts +4 -1
  29. package/dist/server/server/websocket-server.d.ts.map +1 -1
  30. package/dist/server/server/websocket-server.js +27 -1
  31. package/dist/server/server/websocket-server.js.map +1 -1
  32. package/dist/server/server/workspace-registry-bootstrap.d.ts +11 -0
  33. package/dist/server/server/workspace-registry-bootstrap.d.ts.map +1 -0
  34. package/dist/server/server/workspace-registry-bootstrap.js +98 -0
  35. package/dist/server/server/workspace-registry-bootstrap.js.map +1 -0
  36. package/dist/server/server/workspace-registry-model.d.ts +26 -0
  37. package/dist/server/server/workspace-registry-model.d.ts.map +1 -0
  38. package/dist/server/server/workspace-registry-model.js +150 -0
  39. package/dist/server/server/workspace-registry-model.js.map +1 -0
  40. package/dist/server/server/workspace-registry.d.ts +128 -0
  41. package/dist/server/server/workspace-registry.d.ts.map +1 -0
  42. package/dist/server/server/workspace-registry.js +141 -0
  43. package/dist/server/server/workspace-registry.js.map +1 -0
  44. package/dist/server/shared/messages.d.ts +1510 -0
  45. package/dist/server/shared/messages.d.ts.map +1 -1
  46. package/dist/server/shared/messages.js +39 -0
  47. package/dist/server/shared/messages.js.map +1 -1
  48. package/dist/server/utils/checkout-git.d.ts +5 -0
  49. package/dist/server/utils/checkout-git.d.ts.map +1 -1
  50. package/dist/server/utils/checkout-git.js +64 -4
  51. package/dist/server/utils/checkout-git.js.map +1 -1
  52. package/dist/src/server/agent/agent-manager.js +50 -6
  53. package/dist/src/server/agent/agent-manager.js.map +1 -1
  54. package/dist/src/server/agent/mcp-server.js +11 -34
  55. package/dist/src/server/agent/mcp-server.js.map +1 -1
  56. package/dist/src/server/agent/providers/claude-agent.js +169 -43
  57. package/dist/src/server/agent/providers/claude-agent.js.map +1 -1
  58. package/dist/src/server/bootstrap.js +46 -32
  59. package/dist/src/server/bootstrap.js.map +1 -1
  60. package/dist/src/server/session.js +191 -223
  61. package/dist/src/server/session.js.map +1 -1
  62. package/dist/src/server/websocket-server.js +27 -1
  63. package/dist/src/server/websocket-server.js.map +1 -1
  64. package/dist/src/server/workspace-registry-bootstrap.js +98 -0
  65. package/dist/src/server/workspace-registry-bootstrap.js.map +1 -0
  66. package/dist/src/server/workspace-registry-model.js +150 -0
  67. package/dist/src/server/workspace-registry-model.js.map +1 -0
  68. package/dist/src/server/workspace-registry.js +141 -0
  69. package/dist/src/server/workspace-registry.js.map +1 -0
  70. package/dist/src/shared/messages.js +39 -0
  71. package/dist/src/shared/messages.js.map +1 -1
  72. package/dist/src/utils/checkout-git.js +64 -4
  73. package/dist/src/utils/checkout-git.js.map +1 -1
  74. package/package.json +4 -3
@@ -1829,6 +1829,32 @@ export declare const PaseoWorktreeArchiveRequestSchema: z.ZodObject<{
1829
1829
  branchName?: string | undefined;
1830
1830
  repoRoot?: string | undefined;
1831
1831
  }>;
1832
+ export declare const OpenProjectRequestSchema: z.ZodObject<{
1833
+ type: z.ZodLiteral<"open_project_request">;
1834
+ cwd: z.ZodString;
1835
+ requestId: z.ZodString;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ cwd: string;
1838
+ type: "open_project_request";
1839
+ requestId: string;
1840
+ }, {
1841
+ cwd: string;
1842
+ type: "open_project_request";
1843
+ requestId: string;
1844
+ }>;
1845
+ export declare const ArchiveWorkspaceRequestSchema: z.ZodObject<{
1846
+ type: z.ZodLiteral<"archive_workspace_request">;
1847
+ workspaceId: z.ZodString;
1848
+ requestId: z.ZodString;
1849
+ }, "strip", z.ZodTypeAny, {
1850
+ type: "archive_workspace_request";
1851
+ requestId: string;
1852
+ workspaceId: string;
1853
+ }, {
1854
+ type: "archive_workspace_request";
1855
+ requestId: string;
1856
+ workspaceId: string;
1857
+ }>;
1832
1858
  export declare const FileExplorerRequestSchema: z.ZodObject<{
1833
1859
  type: z.ZodLiteral<"file_explorer_request">;
1834
1860
  cwd: z.ZodString;
@@ -3446,6 +3472,30 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3446
3472
  worktreePath?: string | undefined;
3447
3473
  branchName?: string | undefined;
3448
3474
  repoRoot?: string | undefined;
3475
+ }>, z.ZodObject<{
3476
+ type: z.ZodLiteral<"open_project_request">;
3477
+ cwd: z.ZodString;
3478
+ requestId: z.ZodString;
3479
+ }, "strip", z.ZodTypeAny, {
3480
+ cwd: string;
3481
+ type: "open_project_request";
3482
+ requestId: string;
3483
+ }, {
3484
+ cwd: string;
3485
+ type: "open_project_request";
3486
+ requestId: string;
3487
+ }>, z.ZodObject<{
3488
+ type: z.ZodLiteral<"archive_workspace_request">;
3489
+ workspaceId: z.ZodString;
3490
+ requestId: z.ZodString;
3491
+ }, "strip", z.ZodTypeAny, {
3492
+ type: "archive_workspace_request";
3493
+ requestId: string;
3494
+ workspaceId: string;
3495
+ }, {
3496
+ type: "archive_workspace_request";
3497
+ requestId: string;
3498
+ workspaceId: string;
3449
3499
  }>, z.ZodObject<{
3450
3500
  type: z.ZodLiteral<"file_explorer_request">;
3451
3501
  cwd: z.ZodString;
@@ -5603,21 +5653,51 @@ export declare const ProjectPlacementPayloadSchema: z.ZodObject<{
5603
5653
  export declare const WorkspaceDescriptorPayloadSchema: z.ZodObject<{
5604
5654
  id: z.ZodString;
5605
5655
  projectId: z.ZodString;
5656
+ projectDisplayName: z.ZodString;
5657
+ projectRootPath: z.ZodString;
5658
+ projectKind: z.ZodEnum<["git", "non_git"]>;
5659
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
5606
5660
  name: z.ZodString;
5607
5661
  status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
5608
5662
  activityAt: z.ZodNullable<z.ZodString>;
5663
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5664
+ additions: z.ZodNumber;
5665
+ deletions: z.ZodNumber;
5666
+ }, "strip", z.ZodTypeAny, {
5667
+ additions: number;
5668
+ deletions: number;
5669
+ }, {
5670
+ additions: number;
5671
+ deletions: number;
5672
+ }>>>;
5609
5673
  }, "strip", z.ZodTypeAny, {
5610
5674
  id: string;
5611
5675
  status: "running" | "failed" | "needs_input" | "attention" | "done";
5612
5676
  name: string;
5613
5677
  projectId: string;
5678
+ projectDisplayName: string;
5679
+ projectRootPath: string;
5680
+ projectKind: "git" | "non_git";
5681
+ workspaceKind: "directory" | "local_checkout" | "worktree";
5614
5682
  activityAt: string | null;
5683
+ diffStat?: {
5684
+ additions: number;
5685
+ deletions: number;
5686
+ } | null | undefined;
5615
5687
  }, {
5616
5688
  id: string;
5617
5689
  status: "running" | "failed" | "needs_input" | "attention" | "done";
5618
5690
  name: string;
5619
5691
  projectId: string;
5692
+ projectDisplayName: string;
5693
+ projectRootPath: string;
5694
+ projectKind: "git" | "non_git";
5695
+ workspaceKind: "directory" | "local_checkout" | "worktree";
5620
5696
  activityAt: string | null;
5697
+ diffStat?: {
5698
+ additions: number;
5699
+ deletions: number;
5700
+ } | null | undefined;
5621
5701
  }>;
5622
5702
  export declare const AgentUpdateMessageSchema: z.ZodObject<{
5623
5703
  type: z.ZodLiteral<"agent_update">;
@@ -7447,21 +7527,51 @@ export declare const FetchWorkspacesResponseMessageSchema: z.ZodObject<{
7447
7527
  entries: z.ZodArray<z.ZodObject<{
7448
7528
  id: z.ZodString;
7449
7529
  projectId: z.ZodString;
7530
+ projectDisplayName: z.ZodString;
7531
+ projectRootPath: z.ZodString;
7532
+ projectKind: z.ZodEnum<["git", "non_git"]>;
7533
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
7450
7534
  name: z.ZodString;
7451
7535
  status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
7452
7536
  activityAt: z.ZodNullable<z.ZodString>;
7537
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7538
+ additions: z.ZodNumber;
7539
+ deletions: z.ZodNumber;
7540
+ }, "strip", z.ZodTypeAny, {
7541
+ additions: number;
7542
+ deletions: number;
7543
+ }, {
7544
+ additions: number;
7545
+ deletions: number;
7546
+ }>>>;
7453
7547
  }, "strip", z.ZodTypeAny, {
7454
7548
  id: string;
7455
7549
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7456
7550
  name: string;
7457
7551
  projectId: string;
7552
+ projectDisplayName: string;
7553
+ projectRootPath: string;
7554
+ projectKind: "git" | "non_git";
7555
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7458
7556
  activityAt: string | null;
7557
+ diffStat?: {
7558
+ additions: number;
7559
+ deletions: number;
7560
+ } | null | undefined;
7459
7561
  }, {
7460
7562
  id: string;
7461
7563
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7462
7564
  name: string;
7463
7565
  projectId: string;
7566
+ projectDisplayName: string;
7567
+ projectRootPath: string;
7568
+ projectKind: "git" | "non_git";
7569
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7464
7570
  activityAt: string | null;
7571
+ diffStat?: {
7572
+ additions: number;
7573
+ deletions: number;
7574
+ } | null | undefined;
7465
7575
  }>, "many">;
7466
7576
  pageInfo: z.ZodObject<{
7467
7577
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -7482,7 +7592,15 @@ export declare const FetchWorkspacesResponseMessageSchema: z.ZodObject<{
7482
7592
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7483
7593
  name: string;
7484
7594
  projectId: string;
7595
+ projectDisplayName: string;
7596
+ projectRootPath: string;
7597
+ projectKind: "git" | "non_git";
7598
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7485
7599
  activityAt: string | null;
7600
+ diffStat?: {
7601
+ additions: number;
7602
+ deletions: number;
7603
+ } | null | undefined;
7486
7604
  }[];
7487
7605
  requestId: string;
7488
7606
  pageInfo: {
@@ -7497,7 +7615,15 @@ export declare const FetchWorkspacesResponseMessageSchema: z.ZodObject<{
7497
7615
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7498
7616
  name: string;
7499
7617
  projectId: string;
7618
+ projectDisplayName: string;
7619
+ projectRootPath: string;
7620
+ projectKind: "git" | "non_git";
7621
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7500
7622
  activityAt: string | null;
7623
+ diffStat?: {
7624
+ additions: number;
7625
+ deletions: number;
7626
+ } | null | undefined;
7501
7627
  }[];
7502
7628
  requestId: string;
7503
7629
  pageInfo: {
@@ -7515,7 +7641,15 @@ export declare const FetchWorkspacesResponseMessageSchema: z.ZodObject<{
7515
7641
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7516
7642
  name: string;
7517
7643
  projectId: string;
7644
+ projectDisplayName: string;
7645
+ projectRootPath: string;
7646
+ projectKind: "git" | "non_git";
7647
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7518
7648
  activityAt: string | null;
7649
+ diffStat?: {
7650
+ additions: number;
7651
+ deletions: number;
7652
+ } | null | undefined;
7519
7653
  }[];
7520
7654
  requestId: string;
7521
7655
  pageInfo: {
@@ -7533,7 +7667,15 @@ export declare const FetchWorkspacesResponseMessageSchema: z.ZodObject<{
7533
7667
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7534
7668
  name: string;
7535
7669
  projectId: string;
7670
+ projectDisplayName: string;
7671
+ projectRootPath: string;
7672
+ projectKind: "git" | "non_git";
7673
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7536
7674
  activityAt: string | null;
7675
+ diffStat?: {
7676
+ additions: number;
7677
+ deletions: number;
7678
+ } | null | undefined;
7537
7679
  }[];
7538
7680
  requestId: string;
7539
7681
  pageInfo: {
@@ -7551,21 +7693,51 @@ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
7551
7693
  workspace: z.ZodObject<{
7552
7694
  id: z.ZodString;
7553
7695
  projectId: z.ZodString;
7696
+ projectDisplayName: z.ZodString;
7697
+ projectRootPath: z.ZodString;
7698
+ projectKind: z.ZodEnum<["git", "non_git"]>;
7699
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
7554
7700
  name: z.ZodString;
7555
7701
  status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
7556
7702
  activityAt: z.ZodNullable<z.ZodString>;
7703
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7704
+ additions: z.ZodNumber;
7705
+ deletions: z.ZodNumber;
7706
+ }, "strip", z.ZodTypeAny, {
7707
+ additions: number;
7708
+ deletions: number;
7709
+ }, {
7710
+ additions: number;
7711
+ deletions: number;
7712
+ }>>>;
7557
7713
  }, "strip", z.ZodTypeAny, {
7558
7714
  id: string;
7559
7715
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7560
7716
  name: string;
7561
7717
  projectId: string;
7718
+ projectDisplayName: string;
7719
+ projectRootPath: string;
7720
+ projectKind: "git" | "non_git";
7721
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7562
7722
  activityAt: string | null;
7723
+ diffStat?: {
7724
+ additions: number;
7725
+ deletions: number;
7726
+ } | null | undefined;
7563
7727
  }, {
7564
7728
  id: string;
7565
7729
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7566
7730
  name: string;
7567
7731
  projectId: string;
7732
+ projectDisplayName: string;
7733
+ projectRootPath: string;
7734
+ projectKind: "git" | "non_git";
7735
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7568
7736
  activityAt: string | null;
7737
+ diffStat?: {
7738
+ additions: number;
7739
+ deletions: number;
7740
+ } | null | undefined;
7569
7741
  }>;
7570
7742
  }, "strip", z.ZodTypeAny, {
7571
7743
  kind: "upsert";
@@ -7574,7 +7746,15 @@ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
7574
7746
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7575
7747
  name: string;
7576
7748
  projectId: string;
7749
+ projectDisplayName: string;
7750
+ projectRootPath: string;
7751
+ projectKind: "git" | "non_git";
7752
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7577
7753
  activityAt: string | null;
7754
+ diffStat?: {
7755
+ additions: number;
7756
+ deletions: number;
7757
+ } | null | undefined;
7578
7758
  };
7579
7759
  }, {
7580
7760
  kind: "upsert";
@@ -7583,7 +7763,15 @@ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
7583
7763
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7584
7764
  name: string;
7585
7765
  projectId: string;
7766
+ projectDisplayName: string;
7767
+ projectRootPath: string;
7768
+ projectKind: "git" | "non_git";
7769
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7586
7770
  activityAt: string | null;
7771
+ diffStat?: {
7772
+ additions: number;
7773
+ deletions: number;
7774
+ } | null | undefined;
7587
7775
  };
7588
7776
  }>, z.ZodObject<{
7589
7777
  kind: z.ZodLiteral<"remove">;
@@ -7604,7 +7792,15 @@ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
7604
7792
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7605
7793
  name: string;
7606
7794
  projectId: string;
7795
+ projectDisplayName: string;
7796
+ projectRootPath: string;
7797
+ projectKind: "git" | "non_git";
7798
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7607
7799
  activityAt: string | null;
7800
+ diffStat?: {
7801
+ additions: number;
7802
+ deletions: number;
7803
+ } | null | undefined;
7608
7804
  };
7609
7805
  } | {
7610
7806
  id: string;
@@ -7619,13 +7815,190 @@ export declare const WorkspaceUpdateMessageSchema: z.ZodObject<{
7619
7815
  status: "running" | "failed" | "needs_input" | "attention" | "done";
7620
7816
  name: string;
7621
7817
  projectId: string;
7818
+ projectDisplayName: string;
7819
+ projectRootPath: string;
7820
+ projectKind: "git" | "non_git";
7821
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7622
7822
  activityAt: string | null;
7823
+ diffStat?: {
7824
+ additions: number;
7825
+ deletions: number;
7826
+ } | null | undefined;
7623
7827
  };
7624
7828
  } | {
7625
7829
  id: string;
7626
7830
  kind: "remove";
7627
7831
  };
7628
7832
  }>;
7833
+ export declare const OpenProjectResponseMessageSchema: z.ZodObject<{
7834
+ type: z.ZodLiteral<"open_project_response">;
7835
+ payload: z.ZodObject<{
7836
+ requestId: z.ZodString;
7837
+ workspace: z.ZodNullable<z.ZodObject<{
7838
+ id: z.ZodString;
7839
+ projectId: z.ZodString;
7840
+ projectDisplayName: z.ZodString;
7841
+ projectRootPath: z.ZodString;
7842
+ projectKind: z.ZodEnum<["git", "non_git"]>;
7843
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
7844
+ name: z.ZodString;
7845
+ status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
7846
+ activityAt: z.ZodNullable<z.ZodString>;
7847
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7848
+ additions: z.ZodNumber;
7849
+ deletions: z.ZodNumber;
7850
+ }, "strip", z.ZodTypeAny, {
7851
+ additions: number;
7852
+ deletions: number;
7853
+ }, {
7854
+ additions: number;
7855
+ deletions: number;
7856
+ }>>>;
7857
+ }, "strip", z.ZodTypeAny, {
7858
+ id: string;
7859
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
7860
+ name: string;
7861
+ projectId: string;
7862
+ projectDisplayName: string;
7863
+ projectRootPath: string;
7864
+ projectKind: "git" | "non_git";
7865
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7866
+ activityAt: string | null;
7867
+ diffStat?: {
7868
+ additions: number;
7869
+ deletions: number;
7870
+ } | null | undefined;
7871
+ }, {
7872
+ id: string;
7873
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
7874
+ name: string;
7875
+ projectId: string;
7876
+ projectDisplayName: string;
7877
+ projectRootPath: string;
7878
+ projectKind: "git" | "non_git";
7879
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7880
+ activityAt: string | null;
7881
+ diffStat?: {
7882
+ additions: number;
7883
+ deletions: number;
7884
+ } | null | undefined;
7885
+ }>>;
7886
+ error: z.ZodNullable<z.ZodString>;
7887
+ }, "strip", z.ZodTypeAny, {
7888
+ error: string | null;
7889
+ requestId: string;
7890
+ workspace: {
7891
+ id: string;
7892
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
7893
+ name: string;
7894
+ projectId: string;
7895
+ projectDisplayName: string;
7896
+ projectRootPath: string;
7897
+ projectKind: "git" | "non_git";
7898
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7899
+ activityAt: string | null;
7900
+ diffStat?: {
7901
+ additions: number;
7902
+ deletions: number;
7903
+ } | null | undefined;
7904
+ } | null;
7905
+ }, {
7906
+ error: string | null;
7907
+ requestId: string;
7908
+ workspace: {
7909
+ id: string;
7910
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
7911
+ name: string;
7912
+ projectId: string;
7913
+ projectDisplayName: string;
7914
+ projectRootPath: string;
7915
+ projectKind: "git" | "non_git";
7916
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7917
+ activityAt: string | null;
7918
+ diffStat?: {
7919
+ additions: number;
7920
+ deletions: number;
7921
+ } | null | undefined;
7922
+ } | null;
7923
+ }>;
7924
+ }, "strip", z.ZodTypeAny, {
7925
+ type: "open_project_response";
7926
+ payload: {
7927
+ error: string | null;
7928
+ requestId: string;
7929
+ workspace: {
7930
+ id: string;
7931
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
7932
+ name: string;
7933
+ projectId: string;
7934
+ projectDisplayName: string;
7935
+ projectRootPath: string;
7936
+ projectKind: "git" | "non_git";
7937
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7938
+ activityAt: string | null;
7939
+ diffStat?: {
7940
+ additions: number;
7941
+ deletions: number;
7942
+ } | null | undefined;
7943
+ } | null;
7944
+ };
7945
+ }, {
7946
+ type: "open_project_response";
7947
+ payload: {
7948
+ error: string | null;
7949
+ requestId: string;
7950
+ workspace: {
7951
+ id: string;
7952
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
7953
+ name: string;
7954
+ projectId: string;
7955
+ projectDisplayName: string;
7956
+ projectRootPath: string;
7957
+ projectKind: "git" | "non_git";
7958
+ workspaceKind: "directory" | "local_checkout" | "worktree";
7959
+ activityAt: string | null;
7960
+ diffStat?: {
7961
+ additions: number;
7962
+ deletions: number;
7963
+ } | null | undefined;
7964
+ } | null;
7965
+ };
7966
+ }>;
7967
+ export declare const ArchiveWorkspaceResponseMessageSchema: z.ZodObject<{
7968
+ type: z.ZodLiteral<"archive_workspace_response">;
7969
+ payload: z.ZodObject<{
7970
+ requestId: z.ZodString;
7971
+ workspaceId: z.ZodString;
7972
+ archivedAt: z.ZodNullable<z.ZodString>;
7973
+ error: z.ZodNullable<z.ZodString>;
7974
+ }, "strip", z.ZodTypeAny, {
7975
+ error: string | null;
7976
+ archivedAt: string | null;
7977
+ requestId: string;
7978
+ workspaceId: string;
7979
+ }, {
7980
+ error: string | null;
7981
+ archivedAt: string | null;
7982
+ requestId: string;
7983
+ workspaceId: string;
7984
+ }>;
7985
+ }, "strip", z.ZodTypeAny, {
7986
+ type: "archive_workspace_response";
7987
+ payload: {
7988
+ error: string | null;
7989
+ archivedAt: string | null;
7990
+ requestId: string;
7991
+ workspaceId: string;
7992
+ };
7993
+ }, {
7994
+ type: "archive_workspace_response";
7995
+ payload: {
7996
+ error: string | null;
7997
+ archivedAt: string | null;
7998
+ requestId: string;
7999
+ workspaceId: string;
8000
+ };
8001
+ }>;
7629
8002
  export declare const FetchAgentResponseMessageSchema: z.ZodObject<{
7630
8003
  type: z.ZodLiteral<"fetch_agent_response">;
7631
8004
  payload: z.ZodObject<{
@@ -12676,21 +13049,51 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12676
13049
  workspace: z.ZodObject<{
12677
13050
  id: z.ZodString;
12678
13051
  projectId: z.ZodString;
13052
+ projectDisplayName: z.ZodString;
13053
+ projectRootPath: z.ZodString;
13054
+ projectKind: z.ZodEnum<["git", "non_git"]>;
13055
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
12679
13056
  name: z.ZodString;
12680
13057
  status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
12681
13058
  activityAt: z.ZodNullable<z.ZodString>;
13059
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13060
+ additions: z.ZodNumber;
13061
+ deletions: z.ZodNumber;
13062
+ }, "strip", z.ZodTypeAny, {
13063
+ additions: number;
13064
+ deletions: number;
13065
+ }, {
13066
+ additions: number;
13067
+ deletions: number;
13068
+ }>>>;
12682
13069
  }, "strip", z.ZodTypeAny, {
12683
13070
  id: string;
12684
13071
  status: "running" | "failed" | "needs_input" | "attention" | "done";
12685
13072
  name: string;
12686
13073
  projectId: string;
13074
+ projectDisplayName: string;
13075
+ projectRootPath: string;
13076
+ projectKind: "git" | "non_git";
13077
+ workspaceKind: "directory" | "local_checkout" | "worktree";
12687
13078
  activityAt: string | null;
13079
+ diffStat?: {
13080
+ additions: number;
13081
+ deletions: number;
13082
+ } | null | undefined;
12688
13083
  }, {
12689
13084
  id: string;
12690
13085
  status: "running" | "failed" | "needs_input" | "attention" | "done";
12691
13086
  name: string;
12692
13087
  projectId: string;
13088
+ projectDisplayName: string;
13089
+ projectRootPath: string;
13090
+ projectKind: "git" | "non_git";
13091
+ workspaceKind: "directory" | "local_checkout" | "worktree";
12693
13092
  activityAt: string | null;
13093
+ diffStat?: {
13094
+ additions: number;
13095
+ deletions: number;
13096
+ } | null | undefined;
12694
13097
  }>;
12695
13098
  }, "strip", z.ZodTypeAny, {
12696
13099
  kind: "upsert";
@@ -12699,7 +13102,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12699
13102
  status: "running" | "failed" | "needs_input" | "attention" | "done";
12700
13103
  name: string;
12701
13104
  projectId: string;
13105
+ projectDisplayName: string;
13106
+ projectRootPath: string;
13107
+ projectKind: "git" | "non_git";
13108
+ workspaceKind: "directory" | "local_checkout" | "worktree";
12702
13109
  activityAt: string | null;
13110
+ diffStat?: {
13111
+ additions: number;
13112
+ deletions: number;
13113
+ } | null | undefined;
12703
13114
  };
12704
13115
  }, {
12705
13116
  kind: "upsert";
@@ -12708,7 +13119,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12708
13119
  status: "running" | "failed" | "needs_input" | "attention" | "done";
12709
13120
  name: string;
12710
13121
  projectId: string;
13122
+ projectDisplayName: string;
13123
+ projectRootPath: string;
13124
+ projectKind: "git" | "non_git";
13125
+ workspaceKind: "directory" | "local_checkout" | "worktree";
12711
13126
  activityAt: string | null;
13127
+ diffStat?: {
13128
+ additions: number;
13129
+ deletions: number;
13130
+ } | null | undefined;
12712
13131
  };
12713
13132
  }>, z.ZodObject<{
12714
13133
  kind: z.ZodLiteral<"remove">;
@@ -12729,7 +13148,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12729
13148
  status: "running" | "failed" | "needs_input" | "attention" | "done";
12730
13149
  name: string;
12731
13150
  projectId: string;
13151
+ projectDisplayName: string;
13152
+ projectRootPath: string;
13153
+ projectKind: "git" | "non_git";
13154
+ workspaceKind: "directory" | "local_checkout" | "worktree";
12732
13155
  activityAt: string | null;
13156
+ diffStat?: {
13157
+ additions: number;
13158
+ deletions: number;
13159
+ } | null | undefined;
12733
13160
  };
12734
13161
  } | {
12735
13162
  id: string;
@@ -12744,7 +13171,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
12744
13171
  status: "running" | "failed" | "needs_input" | "attention" | "done";
12745
13172
  name: string;
12746
13173
  projectId: string;
13174
+ projectDisplayName: string;
13175
+ projectRootPath: string;
13176
+ projectKind: "git" | "non_git";
13177
+ workspaceKind: "directory" | "local_checkout" | "worktree";
12747
13178
  activityAt: string | null;
13179
+ diffStat?: {
13180
+ additions: number;
13181
+ deletions: number;
13182
+ } | null | undefined;
12748
13183
  };
12749
13184
  } | {
12750
13185
  id: string;
@@ -13943,21 +14378,51 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13943
14378
  entries: z.ZodArray<z.ZodObject<{
13944
14379
  id: z.ZodString;
13945
14380
  projectId: z.ZodString;
14381
+ projectDisplayName: z.ZodString;
14382
+ projectRootPath: z.ZodString;
14383
+ projectKind: z.ZodEnum<["git", "non_git"]>;
14384
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
13946
14385
  name: z.ZodString;
13947
14386
  status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
13948
14387
  activityAt: z.ZodNullable<z.ZodString>;
14388
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14389
+ additions: z.ZodNumber;
14390
+ deletions: z.ZodNumber;
14391
+ }, "strip", z.ZodTypeAny, {
14392
+ additions: number;
14393
+ deletions: number;
14394
+ }, {
14395
+ additions: number;
14396
+ deletions: number;
14397
+ }>>>;
13949
14398
  }, "strip", z.ZodTypeAny, {
13950
14399
  id: string;
13951
14400
  status: "running" | "failed" | "needs_input" | "attention" | "done";
13952
14401
  name: string;
13953
14402
  projectId: string;
14403
+ projectDisplayName: string;
14404
+ projectRootPath: string;
14405
+ projectKind: "git" | "non_git";
14406
+ workspaceKind: "directory" | "local_checkout" | "worktree";
13954
14407
  activityAt: string | null;
14408
+ diffStat?: {
14409
+ additions: number;
14410
+ deletions: number;
14411
+ } | null | undefined;
13955
14412
  }, {
13956
14413
  id: string;
13957
14414
  status: "running" | "failed" | "needs_input" | "attention" | "done";
13958
14415
  name: string;
13959
14416
  projectId: string;
14417
+ projectDisplayName: string;
14418
+ projectRootPath: string;
14419
+ projectKind: "git" | "non_git";
14420
+ workspaceKind: "directory" | "local_checkout" | "worktree";
13960
14421
  activityAt: string | null;
14422
+ diffStat?: {
14423
+ additions: number;
14424
+ deletions: number;
14425
+ } | null | undefined;
13961
14426
  }>, "many">;
13962
14427
  pageInfo: z.ZodObject<{
13963
14428
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -13978,7 +14443,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13978
14443
  status: "running" | "failed" | "needs_input" | "attention" | "done";
13979
14444
  name: string;
13980
14445
  projectId: string;
14446
+ projectDisplayName: string;
14447
+ projectRootPath: string;
14448
+ projectKind: "git" | "non_git";
14449
+ workspaceKind: "directory" | "local_checkout" | "worktree";
13981
14450
  activityAt: string | null;
14451
+ diffStat?: {
14452
+ additions: number;
14453
+ deletions: number;
14454
+ } | null | undefined;
13982
14455
  }[];
13983
14456
  requestId: string;
13984
14457
  pageInfo: {
@@ -13993,7 +14466,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
13993
14466
  status: "running" | "failed" | "needs_input" | "attention" | "done";
13994
14467
  name: string;
13995
14468
  projectId: string;
14469
+ projectDisplayName: string;
14470
+ projectRootPath: string;
14471
+ projectKind: "git" | "non_git";
14472
+ workspaceKind: "directory" | "local_checkout" | "worktree";
13996
14473
  activityAt: string | null;
14474
+ diffStat?: {
14475
+ additions: number;
14476
+ deletions: number;
14477
+ } | null | undefined;
13997
14478
  }[];
13998
14479
  requestId: string;
13999
14480
  pageInfo: {
@@ -14011,7 +14492,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14011
14492
  status: "running" | "failed" | "needs_input" | "attention" | "done";
14012
14493
  name: string;
14013
14494
  projectId: string;
14495
+ projectDisplayName: string;
14496
+ projectRootPath: string;
14497
+ projectKind: "git" | "non_git";
14498
+ workspaceKind: "directory" | "local_checkout" | "worktree";
14014
14499
  activityAt: string | null;
14500
+ diffStat?: {
14501
+ additions: number;
14502
+ deletions: number;
14503
+ } | null | undefined;
14015
14504
  }[];
14016
14505
  requestId: string;
14017
14506
  pageInfo: {
@@ -14029,7 +14518,15 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14029
14518
  status: "running" | "failed" | "needs_input" | "attention" | "done";
14030
14519
  name: string;
14031
14520
  projectId: string;
14521
+ projectDisplayName: string;
14522
+ projectRootPath: string;
14523
+ projectKind: "git" | "non_git";
14524
+ workspaceKind: "directory" | "local_checkout" | "worktree";
14032
14525
  activityAt: string | null;
14526
+ diffStat?: {
14527
+ additions: number;
14528
+ deletions: number;
14529
+ } | null | undefined;
14033
14530
  }[];
14034
14531
  requestId: string;
14035
14532
  pageInfo: {
@@ -14039,6 +14536,173 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
14039
14536
  };
14040
14537
  subscriptionId?: string | null | undefined;
14041
14538
  };
14539
+ }>, z.ZodObject<{
14540
+ type: z.ZodLiteral<"open_project_response">;
14541
+ payload: z.ZodObject<{
14542
+ requestId: z.ZodString;
14543
+ workspace: z.ZodNullable<z.ZodObject<{
14544
+ id: z.ZodString;
14545
+ projectId: z.ZodString;
14546
+ projectDisplayName: z.ZodString;
14547
+ projectRootPath: z.ZodString;
14548
+ projectKind: z.ZodEnum<["git", "non_git"]>;
14549
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
14550
+ name: z.ZodString;
14551
+ status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
14552
+ activityAt: z.ZodNullable<z.ZodString>;
14553
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14554
+ additions: z.ZodNumber;
14555
+ deletions: z.ZodNumber;
14556
+ }, "strip", z.ZodTypeAny, {
14557
+ additions: number;
14558
+ deletions: number;
14559
+ }, {
14560
+ additions: number;
14561
+ deletions: number;
14562
+ }>>>;
14563
+ }, "strip", z.ZodTypeAny, {
14564
+ id: string;
14565
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
14566
+ name: string;
14567
+ projectId: string;
14568
+ projectDisplayName: string;
14569
+ projectRootPath: string;
14570
+ projectKind: "git" | "non_git";
14571
+ workspaceKind: "directory" | "local_checkout" | "worktree";
14572
+ activityAt: string | null;
14573
+ diffStat?: {
14574
+ additions: number;
14575
+ deletions: number;
14576
+ } | null | undefined;
14577
+ }, {
14578
+ id: string;
14579
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
14580
+ name: string;
14581
+ projectId: string;
14582
+ projectDisplayName: string;
14583
+ projectRootPath: string;
14584
+ projectKind: "git" | "non_git";
14585
+ workspaceKind: "directory" | "local_checkout" | "worktree";
14586
+ activityAt: string | null;
14587
+ diffStat?: {
14588
+ additions: number;
14589
+ deletions: number;
14590
+ } | null | undefined;
14591
+ }>>;
14592
+ error: z.ZodNullable<z.ZodString>;
14593
+ }, "strip", z.ZodTypeAny, {
14594
+ error: string | null;
14595
+ requestId: string;
14596
+ workspace: {
14597
+ id: string;
14598
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
14599
+ name: string;
14600
+ projectId: string;
14601
+ projectDisplayName: string;
14602
+ projectRootPath: string;
14603
+ projectKind: "git" | "non_git";
14604
+ workspaceKind: "directory" | "local_checkout" | "worktree";
14605
+ activityAt: string | null;
14606
+ diffStat?: {
14607
+ additions: number;
14608
+ deletions: number;
14609
+ } | null | undefined;
14610
+ } | null;
14611
+ }, {
14612
+ error: string | null;
14613
+ requestId: string;
14614
+ workspace: {
14615
+ id: string;
14616
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
14617
+ name: string;
14618
+ projectId: string;
14619
+ projectDisplayName: string;
14620
+ projectRootPath: string;
14621
+ projectKind: "git" | "non_git";
14622
+ workspaceKind: "directory" | "local_checkout" | "worktree";
14623
+ activityAt: string | null;
14624
+ diffStat?: {
14625
+ additions: number;
14626
+ deletions: number;
14627
+ } | null | undefined;
14628
+ } | null;
14629
+ }>;
14630
+ }, "strip", z.ZodTypeAny, {
14631
+ type: "open_project_response";
14632
+ payload: {
14633
+ error: string | null;
14634
+ requestId: string;
14635
+ workspace: {
14636
+ id: string;
14637
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
14638
+ name: string;
14639
+ projectId: string;
14640
+ projectDisplayName: string;
14641
+ projectRootPath: string;
14642
+ projectKind: "git" | "non_git";
14643
+ workspaceKind: "directory" | "local_checkout" | "worktree";
14644
+ activityAt: string | null;
14645
+ diffStat?: {
14646
+ additions: number;
14647
+ deletions: number;
14648
+ } | null | undefined;
14649
+ } | null;
14650
+ };
14651
+ }, {
14652
+ type: "open_project_response";
14653
+ payload: {
14654
+ error: string | null;
14655
+ requestId: string;
14656
+ workspace: {
14657
+ id: string;
14658
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
14659
+ name: string;
14660
+ projectId: string;
14661
+ projectDisplayName: string;
14662
+ projectRootPath: string;
14663
+ projectKind: "git" | "non_git";
14664
+ workspaceKind: "directory" | "local_checkout" | "worktree";
14665
+ activityAt: string | null;
14666
+ diffStat?: {
14667
+ additions: number;
14668
+ deletions: number;
14669
+ } | null | undefined;
14670
+ } | null;
14671
+ };
14672
+ }>, z.ZodObject<{
14673
+ type: z.ZodLiteral<"archive_workspace_response">;
14674
+ payload: z.ZodObject<{
14675
+ requestId: z.ZodString;
14676
+ workspaceId: z.ZodString;
14677
+ archivedAt: z.ZodNullable<z.ZodString>;
14678
+ error: z.ZodNullable<z.ZodString>;
14679
+ }, "strip", z.ZodTypeAny, {
14680
+ error: string | null;
14681
+ archivedAt: string | null;
14682
+ requestId: string;
14683
+ workspaceId: string;
14684
+ }, {
14685
+ error: string | null;
14686
+ archivedAt: string | null;
14687
+ requestId: string;
14688
+ workspaceId: string;
14689
+ }>;
14690
+ }, "strip", z.ZodTypeAny, {
14691
+ type: "archive_workspace_response";
14692
+ payload: {
14693
+ error: string | null;
14694
+ archivedAt: string | null;
14695
+ requestId: string;
14696
+ workspaceId: string;
14697
+ };
14698
+ }, {
14699
+ type: "archive_workspace_response";
14700
+ payload: {
14701
+ error: string | null;
14702
+ archivedAt: string | null;
14703
+ requestId: string;
14704
+ workspaceId: string;
14705
+ };
14042
14706
  }>, z.ZodObject<{
14043
14707
  type: z.ZodLiteral<"fetch_agent_response">;
14044
14708
  payload: z.ZodObject<{
@@ -18328,6 +18992,8 @@ export type WorkspaceStateBucket = z.infer<typeof WorkspaceStateBucketSchema>;
18328
18992
  export type WorkspaceDescriptorPayload = z.infer<typeof WorkspaceDescriptorPayloadSchema>;
18329
18993
  export type FetchAgentsResponseMessage = z.infer<typeof FetchAgentsResponseMessageSchema>;
18330
18994
  export type FetchWorkspacesResponseMessage = z.infer<typeof FetchWorkspacesResponseMessageSchema>;
18995
+ export type OpenProjectResponseMessage = z.infer<typeof OpenProjectResponseMessageSchema>;
18996
+ export type ArchiveWorkspaceResponseMessage = z.infer<typeof ArchiveWorkspaceResponseMessageSchema>;
18331
18997
  export type FetchAgentResponseMessage = z.infer<typeof FetchAgentResponseMessageSchema>;
18332
18998
  export type FetchAgentTimelineResponseMessage = z.infer<typeof FetchAgentTimelineResponseMessageSchema>;
18333
18999
  export type SendAgentMessageResponseMessage = z.infer<typeof SendAgentMessageResponseMessageSchema>;
@@ -18392,6 +19058,8 @@ export type PaseoWorktreeListRequest = z.infer<typeof PaseoWorktreeListRequestSc
18392
19058
  export type PaseoWorktreeListResponse = z.infer<typeof PaseoWorktreeListResponseSchema>;
18393
19059
  export type PaseoWorktreeArchiveRequest = z.infer<typeof PaseoWorktreeArchiveRequestSchema>;
18394
19060
  export type PaseoWorktreeArchiveResponse = z.infer<typeof PaseoWorktreeArchiveResponseSchema>;
19061
+ export type OpenProjectRequest = z.infer<typeof OpenProjectRequestSchema>;
19062
+ export type ArchiveWorkspaceRequest = z.infer<typeof ArchiveWorkspaceRequestSchema>;
18395
19063
  export type FileExplorerRequest = z.infer<typeof FileExplorerRequestSchema>;
18396
19064
  export type FileExplorerResponse = z.infer<typeof FileExplorerResponseSchema>;
18397
19065
  export type ProjectIconRequest = z.infer<typeof ProjectIconRequestSchema>;
@@ -19982,6 +20650,30 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
19982
20650
  worktreePath?: string | undefined;
19983
20651
  branchName?: string | undefined;
19984
20652
  repoRoot?: string | undefined;
20653
+ }>, z.ZodObject<{
20654
+ type: z.ZodLiteral<"open_project_request">;
20655
+ cwd: z.ZodString;
20656
+ requestId: z.ZodString;
20657
+ }, "strip", z.ZodTypeAny, {
20658
+ cwd: string;
20659
+ type: "open_project_request";
20660
+ requestId: string;
20661
+ }, {
20662
+ cwd: string;
20663
+ type: "open_project_request";
20664
+ requestId: string;
20665
+ }>, z.ZodObject<{
20666
+ type: z.ZodLiteral<"archive_workspace_request">;
20667
+ workspaceId: z.ZodString;
20668
+ requestId: z.ZodString;
20669
+ }, "strip", z.ZodTypeAny, {
20670
+ type: "archive_workspace_request";
20671
+ requestId: string;
20672
+ workspaceId: string;
20673
+ }, {
20674
+ type: "archive_workspace_request";
20675
+ requestId: string;
20676
+ workspaceId: string;
19985
20677
  }>, z.ZodObject<{
19986
20678
  type: z.ZodLiteral<"file_explorer_request">;
19987
20679
  cwd: z.ZodString;
@@ -20644,6 +21336,14 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
20644
21336
  worktreePath?: string | undefined;
20645
21337
  branchName?: string | undefined;
20646
21338
  repoRoot?: string | undefined;
21339
+ } | {
21340
+ cwd: string;
21341
+ type: "open_project_request";
21342
+ requestId: string;
21343
+ } | {
21344
+ type: "archive_workspace_request";
21345
+ requestId: string;
21346
+ workspaceId: string;
20647
21347
  } | {
20648
21348
  mode: "file" | "list";
20649
21349
  cwd: string;
@@ -21075,6 +21775,14 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
21075
21775
  worktreePath?: string | undefined;
21076
21776
  branchName?: string | undefined;
21077
21777
  repoRoot?: string | undefined;
21778
+ } | {
21779
+ cwd: string;
21780
+ type: "open_project_request";
21781
+ requestId: string;
21782
+ } | {
21783
+ type: "archive_workspace_request";
21784
+ requestId: string;
21785
+ workspaceId: string;
21078
21786
  } | {
21079
21787
  mode: "file" | "list";
21080
21788
  cwd: string;
@@ -22061,21 +22769,51 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22061
22769
  workspace: z.ZodObject<{
22062
22770
  id: z.ZodString;
22063
22771
  projectId: z.ZodString;
22772
+ projectDisplayName: z.ZodString;
22773
+ projectRootPath: z.ZodString;
22774
+ projectKind: z.ZodEnum<["git", "non_git"]>;
22775
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
22064
22776
  name: z.ZodString;
22065
22777
  status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
22066
22778
  activityAt: z.ZodNullable<z.ZodString>;
22779
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22780
+ additions: z.ZodNumber;
22781
+ deletions: z.ZodNumber;
22782
+ }, "strip", z.ZodTypeAny, {
22783
+ additions: number;
22784
+ deletions: number;
22785
+ }, {
22786
+ additions: number;
22787
+ deletions: number;
22788
+ }>>>;
22067
22789
  }, "strip", z.ZodTypeAny, {
22068
22790
  id: string;
22069
22791
  status: "running" | "failed" | "needs_input" | "attention" | "done";
22070
22792
  name: string;
22071
22793
  projectId: string;
22794
+ projectDisplayName: string;
22795
+ projectRootPath: string;
22796
+ projectKind: "git" | "non_git";
22797
+ workspaceKind: "directory" | "local_checkout" | "worktree";
22072
22798
  activityAt: string | null;
22799
+ diffStat?: {
22800
+ additions: number;
22801
+ deletions: number;
22802
+ } | null | undefined;
22073
22803
  }, {
22074
22804
  id: string;
22075
22805
  status: "running" | "failed" | "needs_input" | "attention" | "done";
22076
22806
  name: string;
22077
22807
  projectId: string;
22808
+ projectDisplayName: string;
22809
+ projectRootPath: string;
22810
+ projectKind: "git" | "non_git";
22811
+ workspaceKind: "directory" | "local_checkout" | "worktree";
22078
22812
  activityAt: string | null;
22813
+ diffStat?: {
22814
+ additions: number;
22815
+ deletions: number;
22816
+ } | null | undefined;
22079
22817
  }>;
22080
22818
  }, "strip", z.ZodTypeAny, {
22081
22819
  kind: "upsert";
@@ -22084,7 +22822,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22084
22822
  status: "running" | "failed" | "needs_input" | "attention" | "done";
22085
22823
  name: string;
22086
22824
  projectId: string;
22825
+ projectDisplayName: string;
22826
+ projectRootPath: string;
22827
+ projectKind: "git" | "non_git";
22828
+ workspaceKind: "directory" | "local_checkout" | "worktree";
22087
22829
  activityAt: string | null;
22830
+ diffStat?: {
22831
+ additions: number;
22832
+ deletions: number;
22833
+ } | null | undefined;
22088
22834
  };
22089
22835
  }, {
22090
22836
  kind: "upsert";
@@ -22093,7 +22839,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22093
22839
  status: "running" | "failed" | "needs_input" | "attention" | "done";
22094
22840
  name: string;
22095
22841
  projectId: string;
22842
+ projectDisplayName: string;
22843
+ projectRootPath: string;
22844
+ projectKind: "git" | "non_git";
22845
+ workspaceKind: "directory" | "local_checkout" | "worktree";
22096
22846
  activityAt: string | null;
22847
+ diffStat?: {
22848
+ additions: number;
22849
+ deletions: number;
22850
+ } | null | undefined;
22097
22851
  };
22098
22852
  }>, z.ZodObject<{
22099
22853
  kind: z.ZodLiteral<"remove">;
@@ -22114,7 +22868,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22114
22868
  status: "running" | "failed" | "needs_input" | "attention" | "done";
22115
22869
  name: string;
22116
22870
  projectId: string;
22871
+ projectDisplayName: string;
22872
+ projectRootPath: string;
22873
+ projectKind: "git" | "non_git";
22874
+ workspaceKind: "directory" | "local_checkout" | "worktree";
22117
22875
  activityAt: string | null;
22876
+ diffStat?: {
22877
+ additions: number;
22878
+ deletions: number;
22879
+ } | null | undefined;
22118
22880
  };
22119
22881
  } | {
22120
22882
  id: string;
@@ -22129,7 +22891,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
22129
22891
  status: "running" | "failed" | "needs_input" | "attention" | "done";
22130
22892
  name: string;
22131
22893
  projectId: string;
22894
+ projectDisplayName: string;
22895
+ projectRootPath: string;
22896
+ projectKind: "git" | "non_git";
22897
+ workspaceKind: "directory" | "local_checkout" | "worktree";
22132
22898
  activityAt: string | null;
22899
+ diffStat?: {
22900
+ additions: number;
22901
+ deletions: number;
22902
+ } | null | undefined;
22133
22903
  };
22134
22904
  } | {
22135
22905
  id: string;
@@ -23328,21 +24098,51 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23328
24098
  entries: z.ZodArray<z.ZodObject<{
23329
24099
  id: z.ZodString;
23330
24100
  projectId: z.ZodString;
24101
+ projectDisplayName: z.ZodString;
24102
+ projectRootPath: z.ZodString;
24103
+ projectKind: z.ZodEnum<["git", "non_git"]>;
24104
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
23331
24105
  name: z.ZodString;
23332
24106
  status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
23333
24107
  activityAt: z.ZodNullable<z.ZodString>;
24108
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24109
+ additions: z.ZodNumber;
24110
+ deletions: z.ZodNumber;
24111
+ }, "strip", z.ZodTypeAny, {
24112
+ additions: number;
24113
+ deletions: number;
24114
+ }, {
24115
+ additions: number;
24116
+ deletions: number;
24117
+ }>>>;
23334
24118
  }, "strip", z.ZodTypeAny, {
23335
24119
  id: string;
23336
24120
  status: "running" | "failed" | "needs_input" | "attention" | "done";
23337
24121
  name: string;
23338
24122
  projectId: string;
24123
+ projectDisplayName: string;
24124
+ projectRootPath: string;
24125
+ projectKind: "git" | "non_git";
24126
+ workspaceKind: "directory" | "local_checkout" | "worktree";
23339
24127
  activityAt: string | null;
24128
+ diffStat?: {
24129
+ additions: number;
24130
+ deletions: number;
24131
+ } | null | undefined;
23340
24132
  }, {
23341
24133
  id: string;
23342
24134
  status: "running" | "failed" | "needs_input" | "attention" | "done";
23343
24135
  name: string;
23344
24136
  projectId: string;
24137
+ projectDisplayName: string;
24138
+ projectRootPath: string;
24139
+ projectKind: "git" | "non_git";
24140
+ workspaceKind: "directory" | "local_checkout" | "worktree";
23345
24141
  activityAt: string | null;
24142
+ diffStat?: {
24143
+ additions: number;
24144
+ deletions: number;
24145
+ } | null | undefined;
23346
24146
  }>, "many">;
23347
24147
  pageInfo: z.ZodObject<{
23348
24148
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -23363,7 +24163,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23363
24163
  status: "running" | "failed" | "needs_input" | "attention" | "done";
23364
24164
  name: string;
23365
24165
  projectId: string;
24166
+ projectDisplayName: string;
24167
+ projectRootPath: string;
24168
+ projectKind: "git" | "non_git";
24169
+ workspaceKind: "directory" | "local_checkout" | "worktree";
23366
24170
  activityAt: string | null;
24171
+ diffStat?: {
24172
+ additions: number;
24173
+ deletions: number;
24174
+ } | null | undefined;
23367
24175
  }[];
23368
24176
  requestId: string;
23369
24177
  pageInfo: {
@@ -23378,7 +24186,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23378
24186
  status: "running" | "failed" | "needs_input" | "attention" | "done";
23379
24187
  name: string;
23380
24188
  projectId: string;
24189
+ projectDisplayName: string;
24190
+ projectRootPath: string;
24191
+ projectKind: "git" | "non_git";
24192
+ workspaceKind: "directory" | "local_checkout" | "worktree";
23381
24193
  activityAt: string | null;
24194
+ diffStat?: {
24195
+ additions: number;
24196
+ deletions: number;
24197
+ } | null | undefined;
23382
24198
  }[];
23383
24199
  requestId: string;
23384
24200
  pageInfo: {
@@ -23396,7 +24212,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23396
24212
  status: "running" | "failed" | "needs_input" | "attention" | "done";
23397
24213
  name: string;
23398
24214
  projectId: string;
24215
+ projectDisplayName: string;
24216
+ projectRootPath: string;
24217
+ projectKind: "git" | "non_git";
24218
+ workspaceKind: "directory" | "local_checkout" | "worktree";
23399
24219
  activityAt: string | null;
24220
+ diffStat?: {
24221
+ additions: number;
24222
+ deletions: number;
24223
+ } | null | undefined;
23400
24224
  }[];
23401
24225
  requestId: string;
23402
24226
  pageInfo: {
@@ -23414,7 +24238,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23414
24238
  status: "running" | "failed" | "needs_input" | "attention" | "done";
23415
24239
  name: string;
23416
24240
  projectId: string;
24241
+ projectDisplayName: string;
24242
+ projectRootPath: string;
24243
+ projectKind: "git" | "non_git";
24244
+ workspaceKind: "directory" | "local_checkout" | "worktree";
23417
24245
  activityAt: string | null;
24246
+ diffStat?: {
24247
+ additions: number;
24248
+ deletions: number;
24249
+ } | null | undefined;
23418
24250
  }[];
23419
24251
  requestId: string;
23420
24252
  pageInfo: {
@@ -23424,6 +24256,173 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
23424
24256
  };
23425
24257
  subscriptionId?: string | null | undefined;
23426
24258
  };
24259
+ }>, z.ZodObject<{
24260
+ type: z.ZodLiteral<"open_project_response">;
24261
+ payload: z.ZodObject<{
24262
+ requestId: z.ZodString;
24263
+ workspace: z.ZodNullable<z.ZodObject<{
24264
+ id: z.ZodString;
24265
+ projectId: z.ZodString;
24266
+ projectDisplayName: z.ZodString;
24267
+ projectRootPath: z.ZodString;
24268
+ projectKind: z.ZodEnum<["git", "non_git"]>;
24269
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
24270
+ name: z.ZodString;
24271
+ status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
24272
+ activityAt: z.ZodNullable<z.ZodString>;
24273
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24274
+ additions: z.ZodNumber;
24275
+ deletions: z.ZodNumber;
24276
+ }, "strip", z.ZodTypeAny, {
24277
+ additions: number;
24278
+ deletions: number;
24279
+ }, {
24280
+ additions: number;
24281
+ deletions: number;
24282
+ }>>>;
24283
+ }, "strip", z.ZodTypeAny, {
24284
+ id: string;
24285
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
24286
+ name: string;
24287
+ projectId: string;
24288
+ projectDisplayName: string;
24289
+ projectRootPath: string;
24290
+ projectKind: "git" | "non_git";
24291
+ workspaceKind: "directory" | "local_checkout" | "worktree";
24292
+ activityAt: string | null;
24293
+ diffStat?: {
24294
+ additions: number;
24295
+ deletions: number;
24296
+ } | null | undefined;
24297
+ }, {
24298
+ id: string;
24299
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
24300
+ name: string;
24301
+ projectId: string;
24302
+ projectDisplayName: string;
24303
+ projectRootPath: string;
24304
+ projectKind: "git" | "non_git";
24305
+ workspaceKind: "directory" | "local_checkout" | "worktree";
24306
+ activityAt: string | null;
24307
+ diffStat?: {
24308
+ additions: number;
24309
+ deletions: number;
24310
+ } | null | undefined;
24311
+ }>>;
24312
+ error: z.ZodNullable<z.ZodString>;
24313
+ }, "strip", z.ZodTypeAny, {
24314
+ error: string | null;
24315
+ requestId: string;
24316
+ workspace: {
24317
+ id: string;
24318
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
24319
+ name: string;
24320
+ projectId: string;
24321
+ projectDisplayName: string;
24322
+ projectRootPath: string;
24323
+ projectKind: "git" | "non_git";
24324
+ workspaceKind: "directory" | "local_checkout" | "worktree";
24325
+ activityAt: string | null;
24326
+ diffStat?: {
24327
+ additions: number;
24328
+ deletions: number;
24329
+ } | null | undefined;
24330
+ } | null;
24331
+ }, {
24332
+ error: string | null;
24333
+ requestId: string;
24334
+ workspace: {
24335
+ id: string;
24336
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
24337
+ name: string;
24338
+ projectId: string;
24339
+ projectDisplayName: string;
24340
+ projectRootPath: string;
24341
+ projectKind: "git" | "non_git";
24342
+ workspaceKind: "directory" | "local_checkout" | "worktree";
24343
+ activityAt: string | null;
24344
+ diffStat?: {
24345
+ additions: number;
24346
+ deletions: number;
24347
+ } | null | undefined;
24348
+ } | null;
24349
+ }>;
24350
+ }, "strip", z.ZodTypeAny, {
24351
+ type: "open_project_response";
24352
+ payload: {
24353
+ error: string | null;
24354
+ requestId: string;
24355
+ workspace: {
24356
+ id: string;
24357
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
24358
+ name: string;
24359
+ projectId: string;
24360
+ projectDisplayName: string;
24361
+ projectRootPath: string;
24362
+ projectKind: "git" | "non_git";
24363
+ workspaceKind: "directory" | "local_checkout" | "worktree";
24364
+ activityAt: string | null;
24365
+ diffStat?: {
24366
+ additions: number;
24367
+ deletions: number;
24368
+ } | null | undefined;
24369
+ } | null;
24370
+ };
24371
+ }, {
24372
+ type: "open_project_response";
24373
+ payload: {
24374
+ error: string | null;
24375
+ requestId: string;
24376
+ workspace: {
24377
+ id: string;
24378
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
24379
+ name: string;
24380
+ projectId: string;
24381
+ projectDisplayName: string;
24382
+ projectRootPath: string;
24383
+ projectKind: "git" | "non_git";
24384
+ workspaceKind: "directory" | "local_checkout" | "worktree";
24385
+ activityAt: string | null;
24386
+ diffStat?: {
24387
+ additions: number;
24388
+ deletions: number;
24389
+ } | null | undefined;
24390
+ } | null;
24391
+ };
24392
+ }>, z.ZodObject<{
24393
+ type: z.ZodLiteral<"archive_workspace_response">;
24394
+ payload: z.ZodObject<{
24395
+ requestId: z.ZodString;
24396
+ workspaceId: z.ZodString;
24397
+ archivedAt: z.ZodNullable<z.ZodString>;
24398
+ error: z.ZodNullable<z.ZodString>;
24399
+ }, "strip", z.ZodTypeAny, {
24400
+ error: string | null;
24401
+ archivedAt: string | null;
24402
+ requestId: string;
24403
+ workspaceId: string;
24404
+ }, {
24405
+ error: string | null;
24406
+ archivedAt: string | null;
24407
+ requestId: string;
24408
+ workspaceId: string;
24409
+ }>;
24410
+ }, "strip", z.ZodTypeAny, {
24411
+ type: "archive_workspace_response";
24412
+ payload: {
24413
+ error: string | null;
24414
+ archivedAt: string | null;
24415
+ requestId: string;
24416
+ workspaceId: string;
24417
+ };
24418
+ }, {
24419
+ type: "archive_workspace_response";
24420
+ payload: {
24421
+ error: string | null;
24422
+ archivedAt: string | null;
24423
+ requestId: string;
24424
+ workspaceId: string;
24425
+ };
23427
24426
  }>, z.ZodObject<{
23428
24427
  type: z.ZodLiteral<"fetch_agent_response">;
23429
24428
  payload: z.ZodObject<{
@@ -28065,7 +29064,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28065
29064
  status: "running" | "failed" | "needs_input" | "attention" | "done";
28066
29065
  name: string;
28067
29066
  projectId: string;
29067
+ projectDisplayName: string;
29068
+ projectRootPath: string;
29069
+ projectKind: "git" | "non_git";
29070
+ workspaceKind: "directory" | "local_checkout" | "worktree";
28068
29071
  activityAt: string | null;
29072
+ diffStat?: {
29073
+ additions: number;
29074
+ deletions: number;
29075
+ } | null | undefined;
28069
29076
  }[];
28070
29077
  requestId: string;
28071
29078
  pageInfo: {
@@ -28084,12 +29091,49 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
28084
29091
  status: "running" | "failed" | "needs_input" | "attention" | "done";
28085
29092
  name: string;
28086
29093
  projectId: string;
29094
+ projectDisplayName: string;
29095
+ projectRootPath: string;
29096
+ projectKind: "git" | "non_git";
29097
+ workspaceKind: "directory" | "local_checkout" | "worktree";
28087
29098
  activityAt: string | null;
29099
+ diffStat?: {
29100
+ additions: number;
29101
+ deletions: number;
29102
+ } | null | undefined;
28088
29103
  };
28089
29104
  } | {
28090
29105
  id: string;
28091
29106
  kind: "remove";
28092
29107
  };
29108
+ } | {
29109
+ type: "open_project_response";
29110
+ payload: {
29111
+ error: string | null;
29112
+ requestId: string;
29113
+ workspace: {
29114
+ id: string;
29115
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
29116
+ name: string;
29117
+ projectId: string;
29118
+ projectDisplayName: string;
29119
+ projectRootPath: string;
29120
+ projectKind: "git" | "non_git";
29121
+ workspaceKind: "directory" | "local_checkout" | "worktree";
29122
+ activityAt: string | null;
29123
+ diffStat?: {
29124
+ additions: number;
29125
+ deletions: number;
29126
+ } | null | undefined;
29127
+ } | null;
29128
+ };
29129
+ } | {
29130
+ type: "archive_workspace_response";
29131
+ payload: {
29132
+ error: string | null;
29133
+ archivedAt: string | null;
29134
+ requestId: string;
29135
+ workspaceId: string;
29136
+ };
28093
29137
  } | {
28094
29138
  type: "fetch_agent_response";
28095
29139
  payload: {
@@ -29150,7 +30194,15 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29150
30194
  status: "running" | "failed" | "needs_input" | "attention" | "done";
29151
30195
  name: string;
29152
30196
  projectId: string;
30197
+ projectDisplayName: string;
30198
+ projectRootPath: string;
30199
+ projectKind: "git" | "non_git";
30200
+ workspaceKind: "directory" | "local_checkout" | "worktree";
29153
30201
  activityAt: string | null;
30202
+ diffStat?: {
30203
+ additions: number;
30204
+ deletions: number;
30205
+ } | null | undefined;
29154
30206
  }[];
29155
30207
  requestId: string;
29156
30208
  pageInfo: {
@@ -29169,12 +30221,49 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
29169
30221
  status: "running" | "failed" | "needs_input" | "attention" | "done";
29170
30222
  name: string;
29171
30223
  projectId: string;
30224
+ projectDisplayName: string;
30225
+ projectRootPath: string;
30226
+ projectKind: "git" | "non_git";
30227
+ workspaceKind: "directory" | "local_checkout" | "worktree";
29172
30228
  activityAt: string | null;
30229
+ diffStat?: {
30230
+ additions: number;
30231
+ deletions: number;
30232
+ } | null | undefined;
29173
30233
  };
29174
30234
  } | {
29175
30235
  id: string;
29176
30236
  kind: "remove";
29177
30237
  };
30238
+ } | {
30239
+ type: "open_project_response";
30240
+ payload: {
30241
+ error: string | null;
30242
+ requestId: string;
30243
+ workspace: {
30244
+ id: string;
30245
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
30246
+ name: string;
30247
+ projectId: string;
30248
+ projectDisplayName: string;
30249
+ projectRootPath: string;
30250
+ projectKind: "git" | "non_git";
30251
+ workspaceKind: "directory" | "local_checkout" | "worktree";
30252
+ activityAt: string | null;
30253
+ diffStat?: {
30254
+ additions: number;
30255
+ deletions: number;
30256
+ } | null | undefined;
30257
+ } | null;
30258
+ };
30259
+ } | {
30260
+ type: "archive_workspace_response";
30261
+ payload: {
30262
+ error: string | null;
30263
+ archivedAt: string | null;
30264
+ requestId: string;
30265
+ workspaceId: string;
30266
+ };
29178
30267
  } | {
29179
30268
  type: "fetch_agent_response";
29180
30269
  payload: {
@@ -31183,6 +32272,30 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
31183
32272
  worktreePath?: string | undefined;
31184
32273
  branchName?: string | undefined;
31185
32274
  repoRoot?: string | undefined;
32275
+ }>, z.ZodObject<{
32276
+ type: z.ZodLiteral<"open_project_request">;
32277
+ cwd: z.ZodString;
32278
+ requestId: z.ZodString;
32279
+ }, "strip", z.ZodTypeAny, {
32280
+ cwd: string;
32281
+ type: "open_project_request";
32282
+ requestId: string;
32283
+ }, {
32284
+ cwd: string;
32285
+ type: "open_project_request";
32286
+ requestId: string;
32287
+ }>, z.ZodObject<{
32288
+ type: z.ZodLiteral<"archive_workspace_request">;
32289
+ workspaceId: z.ZodString;
32290
+ requestId: z.ZodString;
32291
+ }, "strip", z.ZodTypeAny, {
32292
+ type: "archive_workspace_request";
32293
+ requestId: string;
32294
+ workspaceId: string;
32295
+ }, {
32296
+ type: "archive_workspace_request";
32297
+ requestId: string;
32298
+ workspaceId: string;
31186
32299
  }>, z.ZodObject<{
31187
32300
  type: z.ZodLiteral<"file_explorer_request">;
31188
32301
  cwd: z.ZodString;
@@ -31845,6 +32958,14 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
31845
32958
  worktreePath?: string | undefined;
31846
32959
  branchName?: string | undefined;
31847
32960
  repoRoot?: string | undefined;
32961
+ } | {
32962
+ cwd: string;
32963
+ type: "open_project_request";
32964
+ requestId: string;
32965
+ } | {
32966
+ type: "archive_workspace_request";
32967
+ requestId: string;
32968
+ workspaceId: string;
31848
32969
  } | {
31849
32970
  mode: "file" | "list";
31850
32971
  cwd: string;
@@ -32276,6 +33397,14 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
32276
33397
  worktreePath?: string | undefined;
32277
33398
  branchName?: string | undefined;
32278
33399
  repoRoot?: string | undefined;
33400
+ } | {
33401
+ cwd: string;
33402
+ type: "open_project_request";
33403
+ requestId: string;
33404
+ } | {
33405
+ type: "archive_workspace_request";
33406
+ requestId: string;
33407
+ workspaceId: string;
32279
33408
  } | {
32280
33409
  mode: "file" | "list";
32281
33410
  cwd: string;
@@ -33494,21 +34623,51 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33494
34623
  workspace: z.ZodObject<{
33495
34624
  id: z.ZodString;
33496
34625
  projectId: z.ZodString;
34626
+ projectDisplayName: z.ZodString;
34627
+ projectRootPath: z.ZodString;
34628
+ projectKind: z.ZodEnum<["git", "non_git"]>;
34629
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
33497
34630
  name: z.ZodString;
33498
34631
  status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
33499
34632
  activityAt: z.ZodNullable<z.ZodString>;
34633
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34634
+ additions: z.ZodNumber;
34635
+ deletions: z.ZodNumber;
34636
+ }, "strip", z.ZodTypeAny, {
34637
+ additions: number;
34638
+ deletions: number;
34639
+ }, {
34640
+ additions: number;
34641
+ deletions: number;
34642
+ }>>>;
33500
34643
  }, "strip", z.ZodTypeAny, {
33501
34644
  id: string;
33502
34645
  status: "running" | "failed" | "needs_input" | "attention" | "done";
33503
34646
  name: string;
33504
34647
  projectId: string;
34648
+ projectDisplayName: string;
34649
+ projectRootPath: string;
34650
+ projectKind: "git" | "non_git";
34651
+ workspaceKind: "directory" | "local_checkout" | "worktree";
33505
34652
  activityAt: string | null;
34653
+ diffStat?: {
34654
+ additions: number;
34655
+ deletions: number;
34656
+ } | null | undefined;
33506
34657
  }, {
33507
34658
  id: string;
33508
34659
  status: "running" | "failed" | "needs_input" | "attention" | "done";
33509
34660
  name: string;
33510
34661
  projectId: string;
34662
+ projectDisplayName: string;
34663
+ projectRootPath: string;
34664
+ projectKind: "git" | "non_git";
34665
+ workspaceKind: "directory" | "local_checkout" | "worktree";
33511
34666
  activityAt: string | null;
34667
+ diffStat?: {
34668
+ additions: number;
34669
+ deletions: number;
34670
+ } | null | undefined;
33512
34671
  }>;
33513
34672
  }, "strip", z.ZodTypeAny, {
33514
34673
  kind: "upsert";
@@ -33517,7 +34676,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33517
34676
  status: "running" | "failed" | "needs_input" | "attention" | "done";
33518
34677
  name: string;
33519
34678
  projectId: string;
34679
+ projectDisplayName: string;
34680
+ projectRootPath: string;
34681
+ projectKind: "git" | "non_git";
34682
+ workspaceKind: "directory" | "local_checkout" | "worktree";
33520
34683
  activityAt: string | null;
34684
+ diffStat?: {
34685
+ additions: number;
34686
+ deletions: number;
34687
+ } | null | undefined;
33521
34688
  };
33522
34689
  }, {
33523
34690
  kind: "upsert";
@@ -33526,7 +34693,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33526
34693
  status: "running" | "failed" | "needs_input" | "attention" | "done";
33527
34694
  name: string;
33528
34695
  projectId: string;
34696
+ projectDisplayName: string;
34697
+ projectRootPath: string;
34698
+ projectKind: "git" | "non_git";
34699
+ workspaceKind: "directory" | "local_checkout" | "worktree";
33529
34700
  activityAt: string | null;
34701
+ diffStat?: {
34702
+ additions: number;
34703
+ deletions: number;
34704
+ } | null | undefined;
33530
34705
  };
33531
34706
  }>, z.ZodObject<{
33532
34707
  kind: z.ZodLiteral<"remove">;
@@ -33547,7 +34722,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33547
34722
  status: "running" | "failed" | "needs_input" | "attention" | "done";
33548
34723
  name: string;
33549
34724
  projectId: string;
34725
+ projectDisplayName: string;
34726
+ projectRootPath: string;
34727
+ projectKind: "git" | "non_git";
34728
+ workspaceKind: "directory" | "local_checkout" | "worktree";
33550
34729
  activityAt: string | null;
34730
+ diffStat?: {
34731
+ additions: number;
34732
+ deletions: number;
34733
+ } | null | undefined;
33551
34734
  };
33552
34735
  } | {
33553
34736
  id: string;
@@ -33562,7 +34745,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
33562
34745
  status: "running" | "failed" | "needs_input" | "attention" | "done";
33563
34746
  name: string;
33564
34747
  projectId: string;
34748
+ projectDisplayName: string;
34749
+ projectRootPath: string;
34750
+ projectKind: "git" | "non_git";
34751
+ workspaceKind: "directory" | "local_checkout" | "worktree";
33565
34752
  activityAt: string | null;
34753
+ diffStat?: {
34754
+ additions: number;
34755
+ deletions: number;
34756
+ } | null | undefined;
33566
34757
  };
33567
34758
  } | {
33568
34759
  id: string;
@@ -34761,21 +35952,51 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34761
35952
  entries: z.ZodArray<z.ZodObject<{
34762
35953
  id: z.ZodString;
34763
35954
  projectId: z.ZodString;
35955
+ projectDisplayName: z.ZodString;
35956
+ projectRootPath: z.ZodString;
35957
+ projectKind: z.ZodEnum<["git", "non_git"]>;
35958
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
34764
35959
  name: z.ZodString;
34765
35960
  status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
34766
35961
  activityAt: z.ZodNullable<z.ZodString>;
35962
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35963
+ additions: z.ZodNumber;
35964
+ deletions: z.ZodNumber;
35965
+ }, "strip", z.ZodTypeAny, {
35966
+ additions: number;
35967
+ deletions: number;
35968
+ }, {
35969
+ additions: number;
35970
+ deletions: number;
35971
+ }>>>;
34767
35972
  }, "strip", z.ZodTypeAny, {
34768
35973
  id: string;
34769
35974
  status: "running" | "failed" | "needs_input" | "attention" | "done";
34770
35975
  name: string;
34771
35976
  projectId: string;
35977
+ projectDisplayName: string;
35978
+ projectRootPath: string;
35979
+ projectKind: "git" | "non_git";
35980
+ workspaceKind: "directory" | "local_checkout" | "worktree";
34772
35981
  activityAt: string | null;
35982
+ diffStat?: {
35983
+ additions: number;
35984
+ deletions: number;
35985
+ } | null | undefined;
34773
35986
  }, {
34774
35987
  id: string;
34775
35988
  status: "running" | "failed" | "needs_input" | "attention" | "done";
34776
35989
  name: string;
34777
35990
  projectId: string;
35991
+ projectDisplayName: string;
35992
+ projectRootPath: string;
35993
+ projectKind: "git" | "non_git";
35994
+ workspaceKind: "directory" | "local_checkout" | "worktree";
34778
35995
  activityAt: string | null;
35996
+ diffStat?: {
35997
+ additions: number;
35998
+ deletions: number;
35999
+ } | null | undefined;
34779
36000
  }>, "many">;
34780
36001
  pageInfo: z.ZodObject<{
34781
36002
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -34796,7 +36017,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34796
36017
  status: "running" | "failed" | "needs_input" | "attention" | "done";
34797
36018
  name: string;
34798
36019
  projectId: string;
36020
+ projectDisplayName: string;
36021
+ projectRootPath: string;
36022
+ projectKind: "git" | "non_git";
36023
+ workspaceKind: "directory" | "local_checkout" | "worktree";
34799
36024
  activityAt: string | null;
36025
+ diffStat?: {
36026
+ additions: number;
36027
+ deletions: number;
36028
+ } | null | undefined;
34800
36029
  }[];
34801
36030
  requestId: string;
34802
36031
  pageInfo: {
@@ -34811,7 +36040,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34811
36040
  status: "running" | "failed" | "needs_input" | "attention" | "done";
34812
36041
  name: string;
34813
36042
  projectId: string;
36043
+ projectDisplayName: string;
36044
+ projectRootPath: string;
36045
+ projectKind: "git" | "non_git";
36046
+ workspaceKind: "directory" | "local_checkout" | "worktree";
34814
36047
  activityAt: string | null;
36048
+ diffStat?: {
36049
+ additions: number;
36050
+ deletions: number;
36051
+ } | null | undefined;
34815
36052
  }[];
34816
36053
  requestId: string;
34817
36054
  pageInfo: {
@@ -34829,7 +36066,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34829
36066
  status: "running" | "failed" | "needs_input" | "attention" | "done";
34830
36067
  name: string;
34831
36068
  projectId: string;
36069
+ projectDisplayName: string;
36070
+ projectRootPath: string;
36071
+ projectKind: "git" | "non_git";
36072
+ workspaceKind: "directory" | "local_checkout" | "worktree";
34832
36073
  activityAt: string | null;
36074
+ diffStat?: {
36075
+ additions: number;
36076
+ deletions: number;
36077
+ } | null | undefined;
34833
36078
  }[];
34834
36079
  requestId: string;
34835
36080
  pageInfo: {
@@ -34847,7 +36092,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34847
36092
  status: "running" | "failed" | "needs_input" | "attention" | "done";
34848
36093
  name: string;
34849
36094
  projectId: string;
36095
+ projectDisplayName: string;
36096
+ projectRootPath: string;
36097
+ projectKind: "git" | "non_git";
36098
+ workspaceKind: "directory" | "local_checkout" | "worktree";
34850
36099
  activityAt: string | null;
36100
+ diffStat?: {
36101
+ additions: number;
36102
+ deletions: number;
36103
+ } | null | undefined;
34851
36104
  }[];
34852
36105
  requestId: string;
34853
36106
  pageInfo: {
@@ -34857,6 +36110,173 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
34857
36110
  };
34858
36111
  subscriptionId?: string | null | undefined;
34859
36112
  };
36113
+ }>, z.ZodObject<{
36114
+ type: z.ZodLiteral<"open_project_response">;
36115
+ payload: z.ZodObject<{
36116
+ requestId: z.ZodString;
36117
+ workspace: z.ZodNullable<z.ZodObject<{
36118
+ id: z.ZodString;
36119
+ projectId: z.ZodString;
36120
+ projectDisplayName: z.ZodString;
36121
+ projectRootPath: z.ZodString;
36122
+ projectKind: z.ZodEnum<["git", "non_git"]>;
36123
+ workspaceKind: z.ZodEnum<["local_checkout", "worktree", "directory"]>;
36124
+ name: z.ZodString;
36125
+ status: z.ZodEnum<["needs_input", "failed", "running", "attention", "done"]>;
36126
+ activityAt: z.ZodNullable<z.ZodString>;
36127
+ diffStat: z.ZodOptional<z.ZodNullable<z.ZodObject<{
36128
+ additions: z.ZodNumber;
36129
+ deletions: z.ZodNumber;
36130
+ }, "strip", z.ZodTypeAny, {
36131
+ additions: number;
36132
+ deletions: number;
36133
+ }, {
36134
+ additions: number;
36135
+ deletions: number;
36136
+ }>>>;
36137
+ }, "strip", z.ZodTypeAny, {
36138
+ id: string;
36139
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
36140
+ name: string;
36141
+ projectId: string;
36142
+ projectDisplayName: string;
36143
+ projectRootPath: string;
36144
+ projectKind: "git" | "non_git";
36145
+ workspaceKind: "directory" | "local_checkout" | "worktree";
36146
+ activityAt: string | null;
36147
+ diffStat?: {
36148
+ additions: number;
36149
+ deletions: number;
36150
+ } | null | undefined;
36151
+ }, {
36152
+ id: string;
36153
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
36154
+ name: string;
36155
+ projectId: string;
36156
+ projectDisplayName: string;
36157
+ projectRootPath: string;
36158
+ projectKind: "git" | "non_git";
36159
+ workspaceKind: "directory" | "local_checkout" | "worktree";
36160
+ activityAt: string | null;
36161
+ diffStat?: {
36162
+ additions: number;
36163
+ deletions: number;
36164
+ } | null | undefined;
36165
+ }>>;
36166
+ error: z.ZodNullable<z.ZodString>;
36167
+ }, "strip", z.ZodTypeAny, {
36168
+ error: string | null;
36169
+ requestId: string;
36170
+ workspace: {
36171
+ id: string;
36172
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
36173
+ name: string;
36174
+ projectId: string;
36175
+ projectDisplayName: string;
36176
+ projectRootPath: string;
36177
+ projectKind: "git" | "non_git";
36178
+ workspaceKind: "directory" | "local_checkout" | "worktree";
36179
+ activityAt: string | null;
36180
+ diffStat?: {
36181
+ additions: number;
36182
+ deletions: number;
36183
+ } | null | undefined;
36184
+ } | null;
36185
+ }, {
36186
+ error: string | null;
36187
+ requestId: string;
36188
+ workspace: {
36189
+ id: string;
36190
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
36191
+ name: string;
36192
+ projectId: string;
36193
+ projectDisplayName: string;
36194
+ projectRootPath: string;
36195
+ projectKind: "git" | "non_git";
36196
+ workspaceKind: "directory" | "local_checkout" | "worktree";
36197
+ activityAt: string | null;
36198
+ diffStat?: {
36199
+ additions: number;
36200
+ deletions: number;
36201
+ } | null | undefined;
36202
+ } | null;
36203
+ }>;
36204
+ }, "strip", z.ZodTypeAny, {
36205
+ type: "open_project_response";
36206
+ payload: {
36207
+ error: string | null;
36208
+ requestId: string;
36209
+ workspace: {
36210
+ id: string;
36211
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
36212
+ name: string;
36213
+ projectId: string;
36214
+ projectDisplayName: string;
36215
+ projectRootPath: string;
36216
+ projectKind: "git" | "non_git";
36217
+ workspaceKind: "directory" | "local_checkout" | "worktree";
36218
+ activityAt: string | null;
36219
+ diffStat?: {
36220
+ additions: number;
36221
+ deletions: number;
36222
+ } | null | undefined;
36223
+ } | null;
36224
+ };
36225
+ }, {
36226
+ type: "open_project_response";
36227
+ payload: {
36228
+ error: string | null;
36229
+ requestId: string;
36230
+ workspace: {
36231
+ id: string;
36232
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
36233
+ name: string;
36234
+ projectId: string;
36235
+ projectDisplayName: string;
36236
+ projectRootPath: string;
36237
+ projectKind: "git" | "non_git";
36238
+ workspaceKind: "directory" | "local_checkout" | "worktree";
36239
+ activityAt: string | null;
36240
+ diffStat?: {
36241
+ additions: number;
36242
+ deletions: number;
36243
+ } | null | undefined;
36244
+ } | null;
36245
+ };
36246
+ }>, z.ZodObject<{
36247
+ type: z.ZodLiteral<"archive_workspace_response">;
36248
+ payload: z.ZodObject<{
36249
+ requestId: z.ZodString;
36250
+ workspaceId: z.ZodString;
36251
+ archivedAt: z.ZodNullable<z.ZodString>;
36252
+ error: z.ZodNullable<z.ZodString>;
36253
+ }, "strip", z.ZodTypeAny, {
36254
+ error: string | null;
36255
+ archivedAt: string | null;
36256
+ requestId: string;
36257
+ workspaceId: string;
36258
+ }, {
36259
+ error: string | null;
36260
+ archivedAt: string | null;
36261
+ requestId: string;
36262
+ workspaceId: string;
36263
+ }>;
36264
+ }, "strip", z.ZodTypeAny, {
36265
+ type: "archive_workspace_response";
36266
+ payload: {
36267
+ error: string | null;
36268
+ archivedAt: string | null;
36269
+ requestId: string;
36270
+ workspaceId: string;
36271
+ };
36272
+ }, {
36273
+ type: "archive_workspace_response";
36274
+ payload: {
36275
+ error: string | null;
36276
+ archivedAt: string | null;
36277
+ requestId: string;
36278
+ workspaceId: string;
36279
+ };
34860
36280
  }>, z.ZodObject<{
34861
36281
  type: z.ZodLiteral<"fetch_agent_response">;
34862
36282
  payload: z.ZodObject<{
@@ -39498,7 +40918,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
39498
40918
  status: "running" | "failed" | "needs_input" | "attention" | "done";
39499
40919
  name: string;
39500
40920
  projectId: string;
40921
+ projectDisplayName: string;
40922
+ projectRootPath: string;
40923
+ projectKind: "git" | "non_git";
40924
+ workspaceKind: "directory" | "local_checkout" | "worktree";
39501
40925
  activityAt: string | null;
40926
+ diffStat?: {
40927
+ additions: number;
40928
+ deletions: number;
40929
+ } | null | undefined;
39502
40930
  }[];
39503
40931
  requestId: string;
39504
40932
  pageInfo: {
@@ -39517,12 +40945,49 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
39517
40945
  status: "running" | "failed" | "needs_input" | "attention" | "done";
39518
40946
  name: string;
39519
40947
  projectId: string;
40948
+ projectDisplayName: string;
40949
+ projectRootPath: string;
40950
+ projectKind: "git" | "non_git";
40951
+ workspaceKind: "directory" | "local_checkout" | "worktree";
39520
40952
  activityAt: string | null;
40953
+ diffStat?: {
40954
+ additions: number;
40955
+ deletions: number;
40956
+ } | null | undefined;
39521
40957
  };
39522
40958
  } | {
39523
40959
  id: string;
39524
40960
  kind: "remove";
39525
40961
  };
40962
+ } | {
40963
+ type: "open_project_response";
40964
+ payload: {
40965
+ error: string | null;
40966
+ requestId: string;
40967
+ workspace: {
40968
+ id: string;
40969
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
40970
+ name: string;
40971
+ projectId: string;
40972
+ projectDisplayName: string;
40973
+ projectRootPath: string;
40974
+ projectKind: "git" | "non_git";
40975
+ workspaceKind: "directory" | "local_checkout" | "worktree";
40976
+ activityAt: string | null;
40977
+ diffStat?: {
40978
+ additions: number;
40979
+ deletions: number;
40980
+ } | null | undefined;
40981
+ } | null;
40982
+ };
40983
+ } | {
40984
+ type: "archive_workspace_response";
40985
+ payload: {
40986
+ error: string | null;
40987
+ archivedAt: string | null;
40988
+ requestId: string;
40989
+ workspaceId: string;
40990
+ };
39526
40991
  } | {
39527
40992
  type: "fetch_agent_response";
39528
40993
  payload: {
@@ -40583,7 +42048,15 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
40583
42048
  status: "running" | "failed" | "needs_input" | "attention" | "done";
40584
42049
  name: string;
40585
42050
  projectId: string;
42051
+ projectDisplayName: string;
42052
+ projectRootPath: string;
42053
+ projectKind: "git" | "non_git";
42054
+ workspaceKind: "directory" | "local_checkout" | "worktree";
40586
42055
  activityAt: string | null;
42056
+ diffStat?: {
42057
+ additions: number;
42058
+ deletions: number;
42059
+ } | null | undefined;
40587
42060
  }[];
40588
42061
  requestId: string;
40589
42062
  pageInfo: {
@@ -40602,12 +42075,49 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
40602
42075
  status: "running" | "failed" | "needs_input" | "attention" | "done";
40603
42076
  name: string;
40604
42077
  projectId: string;
42078
+ projectDisplayName: string;
42079
+ projectRootPath: string;
42080
+ projectKind: "git" | "non_git";
42081
+ workspaceKind: "directory" | "local_checkout" | "worktree";
40605
42082
  activityAt: string | null;
42083
+ diffStat?: {
42084
+ additions: number;
42085
+ deletions: number;
42086
+ } | null | undefined;
40606
42087
  };
40607
42088
  } | {
40608
42089
  id: string;
40609
42090
  kind: "remove";
40610
42091
  };
42092
+ } | {
42093
+ type: "open_project_response";
42094
+ payload: {
42095
+ error: string | null;
42096
+ requestId: string;
42097
+ workspace: {
42098
+ id: string;
42099
+ status: "running" | "failed" | "needs_input" | "attention" | "done";
42100
+ name: string;
42101
+ projectId: string;
42102
+ projectDisplayName: string;
42103
+ projectRootPath: string;
42104
+ projectKind: "git" | "non_git";
42105
+ workspaceKind: "directory" | "local_checkout" | "worktree";
42106
+ activityAt: string | null;
42107
+ diffStat?: {
42108
+ additions: number;
42109
+ deletions: number;
42110
+ } | null | undefined;
42111
+ } | null;
42112
+ };
42113
+ } | {
42114
+ type: "archive_workspace_response";
42115
+ payload: {
42116
+ error: string | null;
42117
+ archivedAt: string | null;
42118
+ requestId: string;
42119
+ workspaceId: string;
42120
+ };
40611
42121
  } | {
40612
42122
  type: "fetch_agent_response";
40613
42123
  payload: {