@junctionpanel/server 0.1.100 → 0.1.102

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.
@@ -1582,25 +1582,31 @@ export declare const CancelAgentRequestMessageSchema: z.ZodObject<{
1582
1582
  export declare const RestartServerRequestMessageSchema: z.ZodObject<{
1583
1583
  type: z.ZodLiteral<"restart_server_request">;
1584
1584
  reason: z.ZodOptional<z.ZodString>;
1585
+ sourceCommand: z.ZodOptional<z.ZodString>;
1585
1586
  requestId: z.ZodString;
1586
1587
  }, "strip", z.ZodTypeAny, {
1587
1588
  type: "restart_server_request";
1588
1589
  requestId: string;
1589
1590
  reason?: string | undefined;
1591
+ sourceCommand?: string | undefined;
1590
1592
  }, {
1591
1593
  type: "restart_server_request";
1592
1594
  requestId: string;
1593
1595
  reason?: string | undefined;
1596
+ sourceCommand?: string | undefined;
1594
1597
  }>;
1595
1598
  export declare const ShutdownServerRequestMessageSchema: z.ZodObject<{
1596
1599
  type: z.ZodLiteral<"shutdown_server_request">;
1600
+ sourceCommand: z.ZodOptional<z.ZodString>;
1597
1601
  requestId: z.ZodString;
1598
1602
  }, "strip", z.ZodTypeAny, {
1599
1603
  type: "shutdown_server_request";
1600
1604
  requestId: string;
1605
+ sourceCommand?: string | undefined;
1601
1606
  }, {
1602
1607
  type: "shutdown_server_request";
1603
1608
  requestId: string;
1609
+ sourceCommand?: string | undefined;
1604
1610
  }>;
1605
1611
  export declare const AgentTimelineCursorSchema: z.ZodObject<{
1606
1612
  epoch: z.ZodString;
@@ -2412,6 +2418,47 @@ export declare const WorkspaceFileExplorerRequestSchema: z.ZodObject<{
2412
2418
  ref?: string | undefined;
2413
2419
  allowMissing?: boolean | undefined;
2414
2420
  }>;
2421
+ export declare const WorkspaceFileWriteRequestSchema: z.ZodObject<{
2422
+ type: z.ZodLiteral<"workspace_file_write_request">;
2423
+ cwd: z.ZodString;
2424
+ path: z.ZodString;
2425
+ content: z.ZodString;
2426
+ requestId: z.ZodString;
2427
+ }, "strip", z.ZodTypeAny, {
2428
+ path: string;
2429
+ type: "workspace_file_write_request";
2430
+ requestId: string;
2431
+ cwd: string;
2432
+ content: string;
2433
+ }, {
2434
+ path: string;
2435
+ type: "workspace_file_write_request";
2436
+ requestId: string;
2437
+ cwd: string;
2438
+ content: string;
2439
+ }>;
2440
+ export declare const WorkspaceCreateWorktreeRequestSchema: z.ZodObject<{
2441
+ type: z.ZodLiteral<"workspace_create_worktree_request">;
2442
+ cwd: z.ZodString;
2443
+ branchName: z.ZodString;
2444
+ baseBranch: z.ZodOptional<z.ZodString>;
2445
+ remoteName: z.ZodOptional<z.ZodString>;
2446
+ requestId: z.ZodString;
2447
+ }, "strip", z.ZodTypeAny, {
2448
+ type: "workspace_create_worktree_request";
2449
+ requestId: string;
2450
+ cwd: string;
2451
+ branchName: string;
2452
+ baseBranch?: string | undefined;
2453
+ remoteName?: string | undefined;
2454
+ }, {
2455
+ type: "workspace_create_worktree_request";
2456
+ requestId: string;
2457
+ cwd: string;
2458
+ branchName: string;
2459
+ baseBranch?: string | undefined;
2460
+ remoteName?: string | undefined;
2461
+ }>;
2415
2462
  export declare const ProjectIconRequestSchema: z.ZodObject<{
2416
2463
  type: z.ZodLiteral<"project_icon_request">;
2417
2464
  cwd: z.ZodString;
@@ -3844,25 +3891,31 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
3844
3891
  type: "cancel_agent_request";
3845
3892
  }>, z.ZodObject<{
3846
3893
  type: z.ZodLiteral<"shutdown_server_request">;
3894
+ sourceCommand: z.ZodOptional<z.ZodString>;
3847
3895
  requestId: z.ZodString;
3848
3896
  }, "strip", z.ZodTypeAny, {
3849
3897
  type: "shutdown_server_request";
3850
3898
  requestId: string;
3899
+ sourceCommand?: string | undefined;
3851
3900
  }, {
3852
3901
  type: "shutdown_server_request";
3853
3902
  requestId: string;
3903
+ sourceCommand?: string | undefined;
3854
3904
  }>, z.ZodObject<{
3855
3905
  type: z.ZodLiteral<"restart_server_request">;
3856
3906
  reason: z.ZodOptional<z.ZodString>;
3907
+ sourceCommand: z.ZodOptional<z.ZodString>;
3857
3908
  requestId: z.ZodString;
3858
3909
  }, "strip", z.ZodTypeAny, {
3859
3910
  type: "restart_server_request";
3860
3911
  requestId: string;
3861
3912
  reason?: string | undefined;
3913
+ sourceCommand?: string | undefined;
3862
3914
  }, {
3863
3915
  type: "restart_server_request";
3864
3916
  requestId: string;
3865
3917
  reason?: string | undefined;
3918
+ sourceCommand?: string | undefined;
3866
3919
  }>, z.ZodObject<{
3867
3920
  type: z.ZodLiteral<"fetch_agent_timeline_request">;
3868
3921
  agentId: z.ZodString;
@@ -4457,6 +4510,45 @@ export declare const SessionInboundMessageSchema: z.ZodDiscriminatedUnion<"type"
4457
4510
  detail?: "full" | "minimal" | undefined;
4458
4511
  ref?: string | undefined;
4459
4512
  allowMissing?: boolean | undefined;
4513
+ }>, z.ZodObject<{
4514
+ type: z.ZodLiteral<"workspace_file_write_request">;
4515
+ cwd: z.ZodString;
4516
+ path: z.ZodString;
4517
+ content: z.ZodString;
4518
+ requestId: z.ZodString;
4519
+ }, "strip", z.ZodTypeAny, {
4520
+ path: string;
4521
+ type: "workspace_file_write_request";
4522
+ requestId: string;
4523
+ cwd: string;
4524
+ content: string;
4525
+ }, {
4526
+ path: string;
4527
+ type: "workspace_file_write_request";
4528
+ requestId: string;
4529
+ cwd: string;
4530
+ content: string;
4531
+ }>, z.ZodObject<{
4532
+ type: z.ZodLiteral<"workspace_create_worktree_request">;
4533
+ cwd: z.ZodString;
4534
+ branchName: z.ZodString;
4535
+ baseBranch: z.ZodOptional<z.ZodString>;
4536
+ remoteName: z.ZodOptional<z.ZodString>;
4537
+ requestId: z.ZodString;
4538
+ }, "strip", z.ZodTypeAny, {
4539
+ type: "workspace_create_worktree_request";
4540
+ requestId: string;
4541
+ cwd: string;
4542
+ branchName: string;
4543
+ baseBranch?: string | undefined;
4544
+ remoteName?: string | undefined;
4545
+ }, {
4546
+ type: "workspace_create_worktree_request";
4547
+ requestId: string;
4548
+ cwd: string;
4549
+ branchName: string;
4550
+ baseBranch?: string | undefined;
4551
+ remoteName?: string | undefined;
4460
4552
  }>, z.ZodObject<{
4461
4553
  type: z.ZodLiteral<"project_icon_request">;
4462
4554
  cwd: z.ZodString;
@@ -6304,30 +6396,36 @@ export declare const RestartRequestedStatusPayloadSchema: z.ZodObject<{
6304
6396
  status: z.ZodLiteral<"restart_requested">;
6305
6397
  clientId: z.ZodString;
6306
6398
  reason: z.ZodOptional<z.ZodString>;
6399
+ sourceCommand: z.ZodOptional<z.ZodString>;
6307
6400
  requestId: z.ZodString;
6308
6401
  }, "strip", z.ZodTypeAny, {
6309
6402
  status: "restart_requested";
6310
6403
  requestId: string;
6311
6404
  clientId: string;
6312
6405
  reason?: string | undefined;
6406
+ sourceCommand?: string | undefined;
6313
6407
  }, {
6314
6408
  status: "restart_requested";
6315
6409
  requestId: string;
6316
6410
  clientId: string;
6317
6411
  reason?: string | undefined;
6412
+ sourceCommand?: string | undefined;
6318
6413
  }>;
6319
6414
  export declare const ShutdownRequestedStatusPayloadSchema: z.ZodObject<{
6320
6415
  status: z.ZodLiteral<"shutdown_requested">;
6321
6416
  clientId: z.ZodString;
6417
+ sourceCommand: z.ZodOptional<z.ZodString>;
6322
6418
  requestId: z.ZodString;
6323
6419
  }, "strip", z.ZodTypeAny, {
6324
6420
  status: "shutdown_requested";
6325
6421
  requestId: string;
6326
6422
  clientId: string;
6423
+ sourceCommand?: string | undefined;
6327
6424
  }, {
6328
6425
  status: "shutdown_requested";
6329
6426
  requestId: string;
6330
6427
  clientId: string;
6428
+ sourceCommand?: string | undefined;
6331
6429
  }>;
6332
6430
  export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
6333
6431
  status: z.ZodLiteral<"agent_created">;
@@ -7304,30 +7402,36 @@ export declare const KnownStatusPayloadSchema: z.ZodDiscriminatedUnion<"status",
7304
7402
  }>, z.ZodObject<{
7305
7403
  status: z.ZodLiteral<"shutdown_requested">;
7306
7404
  clientId: z.ZodString;
7405
+ sourceCommand: z.ZodOptional<z.ZodString>;
7307
7406
  requestId: z.ZodString;
7308
7407
  }, "strip", z.ZodTypeAny, {
7309
7408
  status: "shutdown_requested";
7310
7409
  requestId: string;
7311
7410
  clientId: string;
7411
+ sourceCommand?: string | undefined;
7312
7412
  }, {
7313
7413
  status: "shutdown_requested";
7314
7414
  requestId: string;
7315
7415
  clientId: string;
7416
+ sourceCommand?: string | undefined;
7316
7417
  }>, z.ZodObject<{
7317
7418
  status: z.ZodLiteral<"restart_requested">;
7318
7419
  clientId: z.ZodString;
7319
7420
  reason: z.ZodOptional<z.ZodString>;
7421
+ sourceCommand: z.ZodOptional<z.ZodString>;
7320
7422
  requestId: z.ZodString;
7321
7423
  }, "strip", z.ZodTypeAny, {
7322
7424
  status: "restart_requested";
7323
7425
  requestId: string;
7324
7426
  clientId: string;
7325
7427
  reason?: string | undefined;
7428
+ sourceCommand?: string | undefined;
7326
7429
  }, {
7327
7430
  status: "restart_requested";
7328
7431
  requestId: string;
7329
7432
  clientId: string;
7330
7433
  reason?: string | undefined;
7434
+ sourceCommand?: string | undefined;
7331
7435
  }>]>;
7332
7436
  export type KnownStatusPayload = z.infer<typeof KnownStatusPayloadSchema>;
7333
7437
  export declare const ArtifactMessageSchema: z.ZodObject<{
@@ -18707,6 +18811,81 @@ export declare const WorkspaceFileExplorerResponseSchema: z.ZodObject<{
18707
18811
  } | null;
18708
18812
  };
18709
18813
  }>;
18814
+ export declare const WorkspaceFileWriteResponseSchema: z.ZodObject<{
18815
+ type: z.ZodLiteral<"workspace_file_write_response">;
18816
+ payload: z.ZodObject<{
18817
+ cwd: z.ZodString;
18818
+ path: z.ZodString;
18819
+ success: z.ZodBoolean;
18820
+ error: z.ZodNullable<z.ZodString>;
18821
+ requestId: z.ZodString;
18822
+ }, "strip", z.ZodTypeAny, {
18823
+ error: string | null;
18824
+ path: string;
18825
+ requestId: string;
18826
+ cwd: string;
18827
+ success: boolean;
18828
+ }, {
18829
+ error: string | null;
18830
+ path: string;
18831
+ requestId: string;
18832
+ cwd: string;
18833
+ success: boolean;
18834
+ }>;
18835
+ }, "strip", z.ZodTypeAny, {
18836
+ type: "workspace_file_write_response";
18837
+ payload: {
18838
+ error: string | null;
18839
+ path: string;
18840
+ requestId: string;
18841
+ cwd: string;
18842
+ success: boolean;
18843
+ };
18844
+ }, {
18845
+ type: "workspace_file_write_response";
18846
+ payload: {
18847
+ error: string | null;
18848
+ path: string;
18849
+ requestId: string;
18850
+ cwd: string;
18851
+ success: boolean;
18852
+ };
18853
+ }>;
18854
+ export declare const WorkspaceCreateWorktreeResponseSchema: z.ZodObject<{
18855
+ type: z.ZodLiteral<"workspace_create_worktree_response">;
18856
+ payload: z.ZodObject<{
18857
+ worktreePath: z.ZodString;
18858
+ branchName: z.ZodString;
18859
+ error: z.ZodNullable<z.ZodString>;
18860
+ requestId: z.ZodString;
18861
+ }, "strip", z.ZodTypeAny, {
18862
+ error: string | null;
18863
+ requestId: string;
18864
+ worktreePath: string;
18865
+ branchName: string;
18866
+ }, {
18867
+ error: string | null;
18868
+ requestId: string;
18869
+ worktreePath: string;
18870
+ branchName: string;
18871
+ }>;
18872
+ }, "strip", z.ZodTypeAny, {
18873
+ type: "workspace_create_worktree_response";
18874
+ payload: {
18875
+ error: string | null;
18876
+ requestId: string;
18877
+ worktreePath: string;
18878
+ branchName: string;
18879
+ };
18880
+ }, {
18881
+ type: "workspace_create_worktree_response";
18882
+ payload: {
18883
+ error: string | null;
18884
+ requestId: string;
18885
+ worktreePath: string;
18886
+ branchName: string;
18887
+ };
18888
+ }>;
18710
18889
  declare const ProjectIconSchema: z.ZodObject<{
18711
18890
  data: z.ZodString;
18712
18891
  mimeType: z.ZodString;
@@ -31490,6 +31669,79 @@ export declare const SessionOutboundMessageSchema: z.ZodDiscriminatedUnion<"type
31490
31669
  path: string;
31491
31670
  } | null;
31492
31671
  };
31672
+ }>, z.ZodObject<{
31673
+ type: z.ZodLiteral<"workspace_file_write_response">;
31674
+ payload: z.ZodObject<{
31675
+ cwd: z.ZodString;
31676
+ path: z.ZodString;
31677
+ success: z.ZodBoolean;
31678
+ error: z.ZodNullable<z.ZodString>;
31679
+ requestId: z.ZodString;
31680
+ }, "strip", z.ZodTypeAny, {
31681
+ error: string | null;
31682
+ path: string;
31683
+ requestId: string;
31684
+ cwd: string;
31685
+ success: boolean;
31686
+ }, {
31687
+ error: string | null;
31688
+ path: string;
31689
+ requestId: string;
31690
+ cwd: string;
31691
+ success: boolean;
31692
+ }>;
31693
+ }, "strip", z.ZodTypeAny, {
31694
+ type: "workspace_file_write_response";
31695
+ payload: {
31696
+ error: string | null;
31697
+ path: string;
31698
+ requestId: string;
31699
+ cwd: string;
31700
+ success: boolean;
31701
+ };
31702
+ }, {
31703
+ type: "workspace_file_write_response";
31704
+ payload: {
31705
+ error: string | null;
31706
+ path: string;
31707
+ requestId: string;
31708
+ cwd: string;
31709
+ success: boolean;
31710
+ };
31711
+ }>, z.ZodObject<{
31712
+ type: z.ZodLiteral<"workspace_create_worktree_response">;
31713
+ payload: z.ZodObject<{
31714
+ worktreePath: z.ZodString;
31715
+ branchName: z.ZodString;
31716
+ error: z.ZodNullable<z.ZodString>;
31717
+ requestId: z.ZodString;
31718
+ }, "strip", z.ZodTypeAny, {
31719
+ error: string | null;
31720
+ requestId: string;
31721
+ worktreePath: string;
31722
+ branchName: string;
31723
+ }, {
31724
+ error: string | null;
31725
+ requestId: string;
31726
+ worktreePath: string;
31727
+ branchName: string;
31728
+ }>;
31729
+ }, "strip", z.ZodTypeAny, {
31730
+ type: "workspace_create_worktree_response";
31731
+ payload: {
31732
+ error: string | null;
31733
+ requestId: string;
31734
+ worktreePath: string;
31735
+ branchName: string;
31736
+ };
31737
+ }, {
31738
+ type: "workspace_create_worktree_response";
31739
+ payload: {
31740
+ error: string | null;
31741
+ requestId: string;
31742
+ worktreePath: string;
31743
+ branchName: string;
31744
+ };
31493
31745
  }>, z.ZodObject<{
31494
31746
  type: z.ZodLiteral<"project_icon_response">;
31495
31747
  payload: z.ZodObject<{
@@ -33572,6 +33824,12 @@ export type FileExplorerRequest = z.infer<typeof FileExplorerRequestSchema>;
33572
33824
  export type FileExplorerResponse = z.infer<typeof FileExplorerResponseSchema>;
33573
33825
  export type WorkspaceFileExplorerRequest = z.infer<typeof WorkspaceFileExplorerRequestSchema>;
33574
33826
  export type WorkspaceFileExplorerResponse = z.infer<typeof WorkspaceFileExplorerResponseSchema>;
33827
+ export type WorkspaceFileWriteRequest = z.infer<typeof WorkspaceFileWriteRequestSchema>;
33828
+ export type WorkspaceFileWriteResponse = z.infer<typeof WorkspaceFileWriteResponseSchema>;
33829
+ export type WorkspaceFileWritePayload = WorkspaceFileWriteResponse['payload'];
33830
+ export type WorkspaceCreateWorktreeRequest = z.infer<typeof WorkspaceCreateWorktreeRequestSchema>;
33831
+ export type WorkspaceCreateWorktreeResponse = z.infer<typeof WorkspaceCreateWorktreeResponseSchema>;
33832
+ export type WorkspaceCreateWorktreePayload = WorkspaceCreateWorktreeResponse['payload'];
33575
33833
  export type ProjectIconRequest = z.infer<typeof ProjectIconRequestSchema>;
33576
33834
  export type ProjectIconResponse = z.infer<typeof ProjectIconResponseSchema>;
33577
33835
  export type ProjectIcon = z.infer<typeof ProjectIconSchema>;
@@ -34666,25 +34924,31 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
34666
34924
  type: "cancel_agent_request";
34667
34925
  }>, z.ZodObject<{
34668
34926
  type: z.ZodLiteral<"shutdown_server_request">;
34927
+ sourceCommand: z.ZodOptional<z.ZodString>;
34669
34928
  requestId: z.ZodString;
34670
34929
  }, "strip", z.ZodTypeAny, {
34671
34930
  type: "shutdown_server_request";
34672
34931
  requestId: string;
34932
+ sourceCommand?: string | undefined;
34673
34933
  }, {
34674
34934
  type: "shutdown_server_request";
34675
34935
  requestId: string;
34936
+ sourceCommand?: string | undefined;
34676
34937
  }>, z.ZodObject<{
34677
34938
  type: z.ZodLiteral<"restart_server_request">;
34678
34939
  reason: z.ZodOptional<z.ZodString>;
34940
+ sourceCommand: z.ZodOptional<z.ZodString>;
34679
34941
  requestId: z.ZodString;
34680
34942
  }, "strip", z.ZodTypeAny, {
34681
34943
  type: "restart_server_request";
34682
34944
  requestId: string;
34683
34945
  reason?: string | undefined;
34946
+ sourceCommand?: string | undefined;
34684
34947
  }, {
34685
34948
  type: "restart_server_request";
34686
34949
  requestId: string;
34687
34950
  reason?: string | undefined;
34951
+ sourceCommand?: string | undefined;
34688
34952
  }>, z.ZodObject<{
34689
34953
  type: z.ZodLiteral<"fetch_agent_timeline_request">;
34690
34954
  agentId: z.ZodString;
@@ -35279,6 +35543,45 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
35279
35543
  detail?: "full" | "minimal" | undefined;
35280
35544
  ref?: string | undefined;
35281
35545
  allowMissing?: boolean | undefined;
35546
+ }>, z.ZodObject<{
35547
+ type: z.ZodLiteral<"workspace_file_write_request">;
35548
+ cwd: z.ZodString;
35549
+ path: z.ZodString;
35550
+ content: z.ZodString;
35551
+ requestId: z.ZodString;
35552
+ }, "strip", z.ZodTypeAny, {
35553
+ path: string;
35554
+ type: "workspace_file_write_request";
35555
+ requestId: string;
35556
+ cwd: string;
35557
+ content: string;
35558
+ }, {
35559
+ path: string;
35560
+ type: "workspace_file_write_request";
35561
+ requestId: string;
35562
+ cwd: string;
35563
+ content: string;
35564
+ }>, z.ZodObject<{
35565
+ type: z.ZodLiteral<"workspace_create_worktree_request">;
35566
+ cwd: z.ZodString;
35567
+ branchName: z.ZodString;
35568
+ baseBranch: z.ZodOptional<z.ZodString>;
35569
+ remoteName: z.ZodOptional<z.ZodString>;
35570
+ requestId: z.ZodString;
35571
+ }, "strip", z.ZodTypeAny, {
35572
+ type: "workspace_create_worktree_request";
35573
+ requestId: string;
35574
+ cwd: string;
35575
+ branchName: string;
35576
+ baseBranch?: string | undefined;
35577
+ remoteName?: string | undefined;
35578
+ }, {
35579
+ type: "workspace_create_worktree_request";
35580
+ requestId: string;
35581
+ cwd: string;
35582
+ branchName: string;
35583
+ baseBranch?: string | undefined;
35584
+ remoteName?: string | undefined;
35282
35585
  }>, z.ZodObject<{
35283
35586
  type: z.ZodLiteral<"project_icon_request">;
35284
35587
  cwd: z.ZodString;
@@ -35951,9 +36254,11 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
35951
36254
  type: "restart_server_request";
35952
36255
  requestId: string;
35953
36256
  reason?: string | undefined;
36257
+ sourceCommand?: string | undefined;
35954
36258
  } | {
35955
36259
  type: "shutdown_server_request";
35956
36260
  requestId: string;
36261
+ sourceCommand?: string | undefined;
35957
36262
  } | {
35958
36263
  agentId: string;
35959
36264
  type: "fetch_agent_timeline_request";
@@ -36148,6 +36453,19 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
36148
36453
  detail?: "full" | "minimal" | undefined;
36149
36454
  ref?: string | undefined;
36150
36455
  allowMissing?: boolean | undefined;
36456
+ } | {
36457
+ path: string;
36458
+ type: "workspace_file_write_request";
36459
+ requestId: string;
36460
+ cwd: string;
36461
+ content: string;
36462
+ } | {
36463
+ type: "workspace_create_worktree_request";
36464
+ requestId: string;
36465
+ cwd: string;
36466
+ branchName: string;
36467
+ baseBranch?: string | undefined;
36468
+ remoteName?: string | undefined;
36151
36469
  } | {
36152
36470
  type: "project_icon_request";
36153
36471
  requestId: string;
@@ -36511,9 +36829,11 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
36511
36829
  type: "restart_server_request";
36512
36830
  requestId: string;
36513
36831
  reason?: string | undefined;
36832
+ sourceCommand?: string | undefined;
36514
36833
  } | {
36515
36834
  type: "shutdown_server_request";
36516
36835
  requestId: string;
36836
+ sourceCommand?: string | undefined;
36517
36837
  } | {
36518
36838
  agentId: string;
36519
36839
  type: "fetch_agent_timeline_request";
@@ -36708,6 +37028,19 @@ export declare const WSSessionInboundSchema: z.ZodObject<{
36708
37028
  detail?: "full" | "minimal" | undefined;
36709
37029
  ref?: string | undefined;
36710
37030
  allowMissing?: boolean | undefined;
37031
+ } | {
37032
+ path: string;
37033
+ type: "workspace_file_write_request";
37034
+ requestId: string;
37035
+ cwd: string;
37036
+ content: string;
37037
+ } | {
37038
+ type: "workspace_create_worktree_request";
37039
+ requestId: string;
37040
+ cwd: string;
37041
+ branchName: string;
37042
+ baseBranch?: string | undefined;
37043
+ remoteName?: string | undefined;
36711
37044
  } | {
36712
37045
  type: "project_icon_request";
36713
37046
  requestId: string;
@@ -47637,6 +47970,79 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
47637
47970
  path: string;
47638
47971
  } | null;
47639
47972
  };
47973
+ }>, z.ZodObject<{
47974
+ type: z.ZodLiteral<"workspace_file_write_response">;
47975
+ payload: z.ZodObject<{
47976
+ cwd: z.ZodString;
47977
+ path: z.ZodString;
47978
+ success: z.ZodBoolean;
47979
+ error: z.ZodNullable<z.ZodString>;
47980
+ requestId: z.ZodString;
47981
+ }, "strip", z.ZodTypeAny, {
47982
+ error: string | null;
47983
+ path: string;
47984
+ requestId: string;
47985
+ cwd: string;
47986
+ success: boolean;
47987
+ }, {
47988
+ error: string | null;
47989
+ path: string;
47990
+ requestId: string;
47991
+ cwd: string;
47992
+ success: boolean;
47993
+ }>;
47994
+ }, "strip", z.ZodTypeAny, {
47995
+ type: "workspace_file_write_response";
47996
+ payload: {
47997
+ error: string | null;
47998
+ path: string;
47999
+ requestId: string;
48000
+ cwd: string;
48001
+ success: boolean;
48002
+ };
48003
+ }, {
48004
+ type: "workspace_file_write_response";
48005
+ payload: {
48006
+ error: string | null;
48007
+ path: string;
48008
+ requestId: string;
48009
+ cwd: string;
48010
+ success: boolean;
48011
+ };
48012
+ }>, z.ZodObject<{
48013
+ type: z.ZodLiteral<"workspace_create_worktree_response">;
48014
+ payload: z.ZodObject<{
48015
+ worktreePath: z.ZodString;
48016
+ branchName: z.ZodString;
48017
+ error: z.ZodNullable<z.ZodString>;
48018
+ requestId: z.ZodString;
48019
+ }, "strip", z.ZodTypeAny, {
48020
+ error: string | null;
48021
+ requestId: string;
48022
+ worktreePath: string;
48023
+ branchName: string;
48024
+ }, {
48025
+ error: string | null;
48026
+ requestId: string;
48027
+ worktreePath: string;
48028
+ branchName: string;
48029
+ }>;
48030
+ }, "strip", z.ZodTypeAny, {
48031
+ type: "workspace_create_worktree_response";
48032
+ payload: {
48033
+ error: string | null;
48034
+ requestId: string;
48035
+ worktreePath: string;
48036
+ branchName: string;
48037
+ };
48038
+ }, {
48039
+ type: "workspace_create_worktree_response";
48040
+ payload: {
48041
+ error: string | null;
48042
+ requestId: string;
48043
+ worktreePath: string;
48044
+ branchName: string;
48045
+ };
47640
48046
  }>, z.ZodObject<{
47641
48047
  type: z.ZodLiteral<"project_icon_response">;
47642
48048
  payload: z.ZodObject<{
@@ -51154,6 +51560,23 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
51154
51560
  path: string;
51155
51561
  } | null;
51156
51562
  };
51563
+ } | {
51564
+ type: "workspace_file_write_response";
51565
+ payload: {
51566
+ error: string | null;
51567
+ path: string;
51568
+ requestId: string;
51569
+ cwd: string;
51570
+ success: boolean;
51571
+ };
51572
+ } | {
51573
+ type: "workspace_create_worktree_response";
51574
+ payload: {
51575
+ error: string | null;
51576
+ requestId: string;
51577
+ worktreePath: string;
51578
+ branchName: string;
51579
+ };
51157
51580
  } | {
51158
51581
  type: "project_icon_response";
51159
51582
  payload: {
@@ -53040,6 +53463,23 @@ export declare const WSSessionOutboundSchema: z.ZodObject<{
53040
53463
  path: string;
53041
53464
  } | null;
53042
53465
  };
53466
+ } | {
53467
+ type: "workspace_file_write_response";
53468
+ payload: {
53469
+ error: string | null;
53470
+ path: string;
53471
+ requestId: string;
53472
+ cwd: string;
53473
+ success: boolean;
53474
+ };
53475
+ } | {
53476
+ type: "workspace_create_worktree_response";
53477
+ payload: {
53478
+ error: string | null;
53479
+ requestId: string;
53480
+ worktreePath: string;
53481
+ branchName: string;
53482
+ };
53043
53483
  } | {
53044
53484
  type: "project_icon_response";
53045
53485
  payload: {
@@ -54363,25 +54803,31 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
54363
54803
  type: "cancel_agent_request";
54364
54804
  }>, z.ZodObject<{
54365
54805
  type: z.ZodLiteral<"shutdown_server_request">;
54806
+ sourceCommand: z.ZodOptional<z.ZodString>;
54366
54807
  requestId: z.ZodString;
54367
54808
  }, "strip", z.ZodTypeAny, {
54368
54809
  type: "shutdown_server_request";
54369
54810
  requestId: string;
54811
+ sourceCommand?: string | undefined;
54370
54812
  }, {
54371
54813
  type: "shutdown_server_request";
54372
54814
  requestId: string;
54815
+ sourceCommand?: string | undefined;
54373
54816
  }>, z.ZodObject<{
54374
54817
  type: z.ZodLiteral<"restart_server_request">;
54375
54818
  reason: z.ZodOptional<z.ZodString>;
54819
+ sourceCommand: z.ZodOptional<z.ZodString>;
54376
54820
  requestId: z.ZodString;
54377
54821
  }, "strip", z.ZodTypeAny, {
54378
54822
  type: "restart_server_request";
54379
54823
  requestId: string;
54380
54824
  reason?: string | undefined;
54825
+ sourceCommand?: string | undefined;
54381
54826
  }, {
54382
54827
  type: "restart_server_request";
54383
54828
  requestId: string;
54384
54829
  reason?: string | undefined;
54830
+ sourceCommand?: string | undefined;
54385
54831
  }>, z.ZodObject<{
54386
54832
  type: z.ZodLiteral<"fetch_agent_timeline_request">;
54387
54833
  agentId: z.ZodString;
@@ -54976,6 +55422,45 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
54976
55422
  detail?: "full" | "minimal" | undefined;
54977
55423
  ref?: string | undefined;
54978
55424
  allowMissing?: boolean | undefined;
55425
+ }>, z.ZodObject<{
55426
+ type: z.ZodLiteral<"workspace_file_write_request">;
55427
+ cwd: z.ZodString;
55428
+ path: z.ZodString;
55429
+ content: z.ZodString;
55430
+ requestId: z.ZodString;
55431
+ }, "strip", z.ZodTypeAny, {
55432
+ path: string;
55433
+ type: "workspace_file_write_request";
55434
+ requestId: string;
55435
+ cwd: string;
55436
+ content: string;
55437
+ }, {
55438
+ path: string;
55439
+ type: "workspace_file_write_request";
55440
+ requestId: string;
55441
+ cwd: string;
55442
+ content: string;
55443
+ }>, z.ZodObject<{
55444
+ type: z.ZodLiteral<"workspace_create_worktree_request">;
55445
+ cwd: z.ZodString;
55446
+ branchName: z.ZodString;
55447
+ baseBranch: z.ZodOptional<z.ZodString>;
55448
+ remoteName: z.ZodOptional<z.ZodString>;
55449
+ requestId: z.ZodString;
55450
+ }, "strip", z.ZodTypeAny, {
55451
+ type: "workspace_create_worktree_request";
55452
+ requestId: string;
55453
+ cwd: string;
55454
+ branchName: string;
55455
+ baseBranch?: string | undefined;
55456
+ remoteName?: string | undefined;
55457
+ }, {
55458
+ type: "workspace_create_worktree_request";
55459
+ requestId: string;
55460
+ cwd: string;
55461
+ branchName: string;
55462
+ baseBranch?: string | undefined;
55463
+ remoteName?: string | undefined;
54979
55464
  }>, z.ZodObject<{
54980
55465
  type: z.ZodLiteral<"project_icon_request">;
54981
55466
  cwd: z.ZodString;
@@ -55648,9 +56133,11 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
55648
56133
  type: "restart_server_request";
55649
56134
  requestId: string;
55650
56135
  reason?: string | undefined;
56136
+ sourceCommand?: string | undefined;
55651
56137
  } | {
55652
56138
  type: "shutdown_server_request";
55653
56139
  requestId: string;
56140
+ sourceCommand?: string | undefined;
55654
56141
  } | {
55655
56142
  agentId: string;
55656
56143
  type: "fetch_agent_timeline_request";
@@ -55845,6 +56332,19 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
55845
56332
  detail?: "full" | "minimal" | undefined;
55846
56333
  ref?: string | undefined;
55847
56334
  allowMissing?: boolean | undefined;
56335
+ } | {
56336
+ path: string;
56337
+ type: "workspace_file_write_request";
56338
+ requestId: string;
56339
+ cwd: string;
56340
+ content: string;
56341
+ } | {
56342
+ type: "workspace_create_worktree_request";
56343
+ requestId: string;
56344
+ cwd: string;
56345
+ branchName: string;
56346
+ baseBranch?: string | undefined;
56347
+ remoteName?: string | undefined;
55848
56348
  } | {
55849
56349
  type: "project_icon_request";
55850
56350
  requestId: string;
@@ -56208,9 +56708,11 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
56208
56708
  type: "restart_server_request";
56209
56709
  requestId: string;
56210
56710
  reason?: string | undefined;
56711
+ sourceCommand?: string | undefined;
56211
56712
  } | {
56212
56713
  type: "shutdown_server_request";
56213
56714
  requestId: string;
56715
+ sourceCommand?: string | undefined;
56214
56716
  } | {
56215
56717
  agentId: string;
56216
56718
  type: "fetch_agent_timeline_request";
@@ -56405,6 +56907,19 @@ export declare const WSInboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z.
56405
56907
  detail?: "full" | "minimal" | undefined;
56406
56908
  ref?: string | undefined;
56407
56909
  allowMissing?: boolean | undefined;
56910
+ } | {
56911
+ path: string;
56912
+ type: "workspace_file_write_request";
56913
+ requestId: string;
56914
+ cwd: string;
56915
+ content: string;
56916
+ } | {
56917
+ type: "workspace_create_worktree_request";
56918
+ requestId: string;
56919
+ cwd: string;
56920
+ branchName: string;
56921
+ baseBranch?: string | undefined;
56922
+ remoteName?: string | undefined;
56408
56923
  } | {
56409
56924
  type: "project_icon_request";
56410
56925
  requestId: string;
@@ -67401,6 +67916,79 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
67401
67916
  path: string;
67402
67917
  } | null;
67403
67918
  };
67919
+ }>, z.ZodObject<{
67920
+ type: z.ZodLiteral<"workspace_file_write_response">;
67921
+ payload: z.ZodObject<{
67922
+ cwd: z.ZodString;
67923
+ path: z.ZodString;
67924
+ success: z.ZodBoolean;
67925
+ error: z.ZodNullable<z.ZodString>;
67926
+ requestId: z.ZodString;
67927
+ }, "strip", z.ZodTypeAny, {
67928
+ error: string | null;
67929
+ path: string;
67930
+ requestId: string;
67931
+ cwd: string;
67932
+ success: boolean;
67933
+ }, {
67934
+ error: string | null;
67935
+ path: string;
67936
+ requestId: string;
67937
+ cwd: string;
67938
+ success: boolean;
67939
+ }>;
67940
+ }, "strip", z.ZodTypeAny, {
67941
+ type: "workspace_file_write_response";
67942
+ payload: {
67943
+ error: string | null;
67944
+ path: string;
67945
+ requestId: string;
67946
+ cwd: string;
67947
+ success: boolean;
67948
+ };
67949
+ }, {
67950
+ type: "workspace_file_write_response";
67951
+ payload: {
67952
+ error: string | null;
67953
+ path: string;
67954
+ requestId: string;
67955
+ cwd: string;
67956
+ success: boolean;
67957
+ };
67958
+ }>, z.ZodObject<{
67959
+ type: z.ZodLiteral<"workspace_create_worktree_response">;
67960
+ payload: z.ZodObject<{
67961
+ worktreePath: z.ZodString;
67962
+ branchName: z.ZodString;
67963
+ error: z.ZodNullable<z.ZodString>;
67964
+ requestId: z.ZodString;
67965
+ }, "strip", z.ZodTypeAny, {
67966
+ error: string | null;
67967
+ requestId: string;
67968
+ worktreePath: string;
67969
+ branchName: string;
67970
+ }, {
67971
+ error: string | null;
67972
+ requestId: string;
67973
+ worktreePath: string;
67974
+ branchName: string;
67975
+ }>;
67976
+ }, "strip", z.ZodTypeAny, {
67977
+ type: "workspace_create_worktree_response";
67978
+ payload: {
67979
+ error: string | null;
67980
+ requestId: string;
67981
+ worktreePath: string;
67982
+ branchName: string;
67983
+ };
67984
+ }, {
67985
+ type: "workspace_create_worktree_response";
67986
+ payload: {
67987
+ error: string | null;
67988
+ requestId: string;
67989
+ worktreePath: string;
67990
+ branchName: string;
67991
+ };
67404
67992
  }>, z.ZodObject<{
67405
67993
  type: z.ZodLiteral<"project_icon_response">;
67406
67994
  payload: z.ZodObject<{
@@ -70918,6 +71506,23 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
70918
71506
  path: string;
70919
71507
  } | null;
70920
71508
  };
71509
+ } | {
71510
+ type: "workspace_file_write_response";
71511
+ payload: {
71512
+ error: string | null;
71513
+ path: string;
71514
+ requestId: string;
71515
+ cwd: string;
71516
+ success: boolean;
71517
+ };
71518
+ } | {
71519
+ type: "workspace_create_worktree_response";
71520
+ payload: {
71521
+ error: string | null;
71522
+ requestId: string;
71523
+ worktreePath: string;
71524
+ branchName: string;
71525
+ };
70921
71526
  } | {
70922
71527
  type: "project_icon_response";
70923
71528
  payload: {
@@ -72804,6 +73409,23 @@ export declare const WSOutboundMessageSchema: z.ZodDiscriminatedUnion<"type", [z
72804
73409
  path: string;
72805
73410
  } | null;
72806
73411
  };
73412
+ } | {
73413
+ type: "workspace_file_write_response";
73414
+ payload: {
73415
+ error: string | null;
73416
+ path: string;
73417
+ requestId: string;
73418
+ cwd: string;
73419
+ success: boolean;
73420
+ };
73421
+ } | {
73422
+ type: "workspace_create_worktree_response";
73423
+ payload: {
73424
+ error: string | null;
73425
+ requestId: string;
73426
+ worktreePath: string;
73427
+ branchName: string;
73428
+ };
72807
73429
  } | {
72808
73430
  type: "project_icon_response";
72809
73431
  payload: {