@opencode/client 0.0.0-dev-19555 → 0.0.0-dev-19557

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.
@@ -6,6 +6,14 @@ export type ServerStatus = {
6
6
  pid: number;
7
7
  urls: Array<string>;
8
8
  };
9
+ export type LocationPublicInfo = {
10
+ directory: string;
11
+ project: {
12
+ id: string;
13
+ directory: string;
14
+ canonical: string;
15
+ };
16
+ };
9
17
  export type ModelRef = {
10
18
  id: string;
11
19
  providerID: string;
@@ -59,10 +67,6 @@ export type TokenUsageInfo = {
59
67
  write: number;
60
68
  };
61
69
  };
62
- export type LocationRef = {
63
- directory: string;
64
- workspaceID?: string;
65
- };
66
70
  export type SessionMetadata = {
67
71
  [x: string]: JsonValue;
68
72
  };
@@ -73,6 +77,9 @@ export type FileDiffInfo = {
73
77
  deletions: number;
74
78
  status: "added" | "deleted" | "modified";
75
79
  };
80
+ export type LocationPublicRef = {
81
+ directory: string;
82
+ };
76
83
  export type SessionStatsToolTotals = {
77
84
  calls: number;
78
85
  succeeded: number;
@@ -255,6 +262,10 @@ export type SessionGenerateResponse = {
255
262
  text: string;
256
263
  };
257
264
  };
265
+ export type LocationRef = {
266
+ directory: string;
267
+ workspaceID?: string;
268
+ };
258
269
  export type SessionInboxSyntheticPayload1 = {
259
270
  text: string;
260
271
  description?: string;
@@ -373,37 +384,47 @@ export type ConnectionEnvInfo = {
373
384
  type: "env";
374
385
  name: string;
375
386
  };
387
+ export type IntegrationAttempt = {
388
+ attemptID: string;
389
+ url: string;
390
+ instructions: string;
391
+ mode: "auto" | "code";
392
+ time: {
393
+ created: number;
394
+ expires: number;
395
+ };
396
+ };
376
397
  export type IntegrationAttemptStatus = {
377
398
  status: "pending";
378
399
  time: {
379
- created: number | "Infinity" | "-Infinity" | "NaN";
380
- expires: number | "Infinity" | "-Infinity" | "NaN";
400
+ created: number;
401
+ expires: number;
381
402
  };
382
403
  } | {
383
404
  status: "complete";
384
405
  time: {
385
- created: number | "Infinity" | "-Infinity" | "NaN";
386
- expires: number | "Infinity" | "-Infinity" | "NaN";
406
+ created: number;
407
+ expires: number;
387
408
  };
388
409
  } | {
389
410
  status: "failed";
390
411
  message: string;
391
412
  time: {
392
- created: number | "Infinity" | "-Infinity" | "NaN";
393
- expires: number | "Infinity" | "-Infinity" | "NaN";
413
+ created: number;
414
+ expires: number;
394
415
  };
395
416
  } | {
396
417
  status: "expired";
397
418
  time: {
398
- created: number | "Infinity" | "-Infinity" | "NaN";
399
- expires: number | "Infinity" | "-Infinity" | "NaN";
419
+ created: number;
420
+ expires: number;
400
421
  };
401
422
  };
402
423
  export type IntegrationCommandAttempt = {
403
424
  attemptID: string;
404
425
  time: {
405
- created: number | "Infinity" | "-Infinity" | "NaN";
406
- expires: number | "Infinity" | "-Infinity" | "NaN";
426
+ created: number;
427
+ expires: number;
407
428
  };
408
429
  };
409
430
  export type IntegrationCommandAttemptStatus = {
@@ -631,9 +652,6 @@ export type WorktreeDirectory = {
631
652
  export type WorktreeInfo = {
632
653
  directory: string;
633
654
  };
634
- export type WorkspaceDestroyResult = {
635
- destroyed: boolean;
636
- };
637
655
  export type VcsBranch = {
638
656
  current?: string;
639
657
  default?: string;
@@ -696,6 +714,12 @@ export type PluginInfo = {
696
714
  features: PluginFeatures;
697
715
  state: PluginState;
698
716
  };
717
+ export type SessionRevert = {
718
+ messageID: string;
719
+ partID?: string;
720
+ snapshot?: string;
721
+ files?: Array<FileDiffInfo>;
722
+ };
699
723
  export type SessionMessageLocationSwitched = {
700
724
  id: string;
701
725
  metadata?: {
@@ -705,19 +729,19 @@ export type SessionMessageLocationSwitched = {
705
729
  created: number;
706
730
  };
707
731
  type: "location-switched";
708
- location: LocationRef;
709
732
  projectID?: string;
710
733
  subpath?: string;
734
+ location: LocationPublicRef;
711
735
  previous?: {
712
- location: LocationRef;
736
+ location: LocationPublicRef;
713
737
  projectID?: string;
714
738
  subpath?: string;
715
- };
739
+ } | null;
716
740
  };
717
741
  export type SessionInboxMovePayload = {
718
- location: LocationRef;
719
742
  projectID: string;
720
743
  subpath?: string;
744
+ location: LocationPublicRef;
721
745
  };
722
746
  export type V2EventRpc = {
723
747
  id: string;
@@ -726,7 +750,7 @@ export type V2EventRpc = {
726
750
  [x: string]: any;
727
751
  } | undefined;
728
752
  type: `${"rpc."}${string}`;
729
- location: LocationRef;
753
+ location: LocationPublicRef;
730
754
  data: {
731
755
  [x: string]: any;
732
756
  };
@@ -736,16 +760,10 @@ export type V2EventServerConnected = {
736
760
  metadata?: {
737
761
  [x: string]: any;
738
762
  } | undefined;
739
- location?: LocationRef | undefined;
763
+ location?: LocationPublicRef | undefined;
740
764
  type: "server.connected";
741
765
  data: {};
742
766
  };
743
- export type SessionRevert = {
744
- messageID: string;
745
- partID?: string;
746
- snapshot?: string;
747
- files?: Array<FileDiffInfo>;
748
- };
749
767
  export type SessionStatsTools = {
750
768
  mode: "none";
751
769
  } | {
@@ -895,26 +913,6 @@ export type SessionModelSelected = {
895
913
  previous?: ModelRef;
896
914
  };
897
915
  };
898
- export type SessionMoved = {
899
- id: string;
900
- created: number;
901
- metadata?: {
902
- [x: string]: any;
903
- };
904
- type: "session.moved";
905
- durable: {
906
- aggregateID: string;
907
- seq: number;
908
- version: 1;
909
- };
910
- location?: LocationRef;
911
- data: {
912
- sessionID: string;
913
- location: LocationRef;
914
- projectID: string;
915
- subpath?: string;
916
- };
917
- };
918
916
  export type SessionRenamed = {
919
917
  id: string;
920
918
  created: number;
@@ -1829,6 +1827,31 @@ export type McpResourcesChanged = {
1829
1827
  server: string;
1830
1828
  };
1831
1829
  };
1830
+ export type SessionMoved = {
1831
+ id: string;
1832
+ created: number;
1833
+ metadata?: {
1834
+ [x: string]: any;
1835
+ };
1836
+ type: "session.moved";
1837
+ durable: {
1838
+ aggregateID: string;
1839
+ seq: number;
1840
+ version: 1;
1841
+ };
1842
+ location?: LocationRef;
1843
+ data: {
1844
+ sessionID: string;
1845
+ location: LocationRef;
1846
+ projectID: string;
1847
+ subpath?: string;
1848
+ };
1849
+ };
1850
+ export type SessionInboxMovePayload1 = {
1851
+ location: LocationRef;
1852
+ projectID: string;
1853
+ subpath?: string;
1854
+ };
1832
1855
  export type SessionShellStarted = {
1833
1856
  id: string;
1834
1857
  created: number;
@@ -2347,14 +2370,6 @@ export type VcsInfo = {
2347
2370
  branch: VcsBranch;
2348
2371
  };
2349
2372
  export type PermissionRuleset = Array<PermissionRule>;
2350
- export type SessionInboxMove = {
2351
- id: string;
2352
- sessionID: string;
2353
- timeCreated: number;
2354
- type: "move";
2355
- payload: SessionInboxMovePayload;
2356
- delivery: SessionInboxDelivery;
2357
- };
2358
2373
  export type SessionRevertStaged = {
2359
2374
  id: string;
2360
2375
  created: number;
@@ -2373,6 +2388,14 @@ export type SessionRevertStaged = {
2373
2388
  revert: SessionRevert;
2374
2389
  };
2375
2390
  };
2391
+ export type SessionInboxMove = {
2392
+ id: string;
2393
+ sessionID: string;
2394
+ timeCreated: number;
2395
+ type: "move";
2396
+ delivery: SessionInboxDelivery;
2397
+ payload: SessionInboxMovePayload;
2398
+ };
2376
2399
  export type SessionStatsInfo = {
2377
2400
  range: {
2378
2401
  from: number;
@@ -2699,11 +2722,11 @@ export type SessionInfo = {
2699
2722
  archived?: number;
2700
2723
  };
2701
2724
  title?: string;
2702
- location: LocationRef;
2703
2725
  subpath?: string;
2704
2726
  metadata?: SessionMetadata;
2705
2727
  permissions?: PermissionRuleset;
2706
2728
  revert?: SessionRevert;
2729
+ location: LocationPublicRef;
2707
2730
  };
2708
2731
  export type SessionCreated = {
2709
2732
  id: string;
@@ -3035,7 +3058,7 @@ export type SessionInboxItem = {
3035
3058
  delivery: SessionInboxDelivery;
3036
3059
  } | {
3037
3060
  type: "move";
3038
- payload: SessionInboxMovePayload;
3061
+ payload: SessionInboxMovePayload1;
3039
3062
  delivery: SessionInboxDelivery;
3040
3063
  };
3041
3064
  export type SessionMessageAssistantTool = {
@@ -3382,37 +3405,19 @@ export type LocationGetInput = {
3382
3405
  readonly location?: {
3383
3406
  readonly location?: {
3384
3407
  readonly directory?: string | undefined;
3385
- readonly workspace?: string | undefined;
3386
3408
  } | undefined;
3387
3409
  }["location"];
3388
3410
  };
3389
- export type LocationGetOutput = {
3390
- directory: string;
3391
- workspaceID?: string;
3392
- project: {
3393
- id: string;
3394
- directory: string;
3395
- canonical: string;
3396
- };
3397
- };
3411
+ export type LocationGetOutput = LocationPublicInfo;
3398
3412
  export type AgentListInput = {
3399
3413
  readonly location?: {
3400
3414
  readonly location?: {
3401
3415
  readonly directory?: string | undefined;
3402
- readonly workspace?: string | undefined;
3403
3416
  } | undefined;
3404
3417
  }["location"];
3405
3418
  };
3406
3419
  export type AgentListOutput = {
3407
- location: {
3408
- directory: string;
3409
- workspaceID?: string;
3410
- project: {
3411
- id: string;
3412
- directory: string;
3413
- canonical: string;
3414
- };
3415
- };
3420
+ location: LocationPublicInfo;
3416
3421
  data: Array<AgentInfo>;
3417
3422
  };
3418
3423
  export type AgentGetInput = {
@@ -3422,47 +3427,28 @@ export type AgentGetInput = {
3422
3427
  readonly location?: {
3423
3428
  readonly location?: {
3424
3429
  readonly directory?: string | undefined;
3425
- readonly workspace?: string | undefined;
3426
3430
  } | undefined;
3427
3431
  }["location"];
3428
3432
  };
3429
3433
  export type AgentGetOutput = {
3430
- location: {
3431
- directory: string;
3432
- workspaceID?: string;
3433
- project: {
3434
- id: string;
3435
- directory: string;
3436
- canonical: string;
3437
- };
3438
- };
3434
+ location: LocationPublicInfo;
3439
3435
  data: AgentInfo;
3440
3436
  };
3441
3437
  export type PluginListInput = {
3442
3438
  readonly location?: {
3443
3439
  readonly location?: {
3444
3440
  readonly directory?: string | undefined;
3445
- readonly workspace?: string | undefined;
3446
3441
  } | undefined;
3447
3442
  }["location"];
3448
3443
  };
3449
3444
  export type PluginListOutput = {
3450
- location: {
3451
- directory: string;
3452
- workspaceID?: string;
3453
- project: {
3454
- id: string;
3455
- directory: string;
3456
- canonical: string;
3457
- };
3458
- };
3445
+ location: LocationPublicInfo;
3459
3446
  data: Array<PluginInfo>;
3460
3447
  };
3461
3448
  export type PluginAwaitActivationInput = {
3462
3449
  readonly location?: {
3463
3450
  readonly location?: {
3464
3451
  readonly directory?: string | undefined;
3465
- readonly workspace?: string | undefined;
3466
3452
  } | undefined;
3467
3453
  }["location"];
3468
3454
  };
@@ -3471,7 +3457,6 @@ export type PluginCheckInput = {
3471
3457
  readonly location?: {
3472
3458
  readonly location?: {
3473
3459
  readonly directory?: string | undefined;
3474
- readonly workspace?: string | undefined;
3475
3460
  } | undefined;
3476
3461
  }["location"];
3477
3462
  readonly target?: {
@@ -3479,22 +3464,13 @@ export type PluginCheckInput = {
3479
3464
  }["target"];
3480
3465
  };
3481
3466
  export type PluginCheckOutput = {
3482
- location: {
3483
- directory: string;
3484
- workspaceID?: string;
3485
- project: {
3486
- id: string;
3487
- directory: string;
3488
- canonical: string;
3489
- };
3490
- };
3467
+ location: LocationPublicInfo;
3491
3468
  data: Array<PluginInfo>;
3492
3469
  };
3493
3470
  export type PluginUpdateInput = {
3494
3471
  readonly location?: {
3495
3472
  readonly location?: {
3496
3473
  readonly directory?: string | undefined;
3497
- readonly workspace?: string | undefined;
3498
3474
  } | undefined;
3499
3475
  }["location"];
3500
3476
  readonly targets: {
@@ -3503,19 +3479,7 @@ export type PluginUpdateInput = {
3503
3479
  };
3504
3480
  export type PluginUpdateOutput = void;
3505
3481
  export type SessionListInput = {
3506
- readonly workspace?: {
3507
- readonly workspace?: string | undefined;
3508
- readonly limit?: number | undefined;
3509
- readonly order?: "asc" | "desc" | undefined;
3510
- readonly search?: string | undefined;
3511
- readonly parentID?: string | null | undefined;
3512
- readonly directory?: string | undefined;
3513
- readonly project?: string | undefined;
3514
- readonly subpath?: string | undefined;
3515
- readonly cursor?: string | undefined;
3516
- }["workspace"];
3517
3482
  readonly limit?: {
3518
- readonly workspace?: string | undefined;
3519
3483
  readonly limit?: number | undefined;
3520
3484
  readonly order?: "asc" | "desc" | undefined;
3521
3485
  readonly search?: string | undefined;
@@ -3526,7 +3490,6 @@ export type SessionListInput = {
3526
3490
  readonly cursor?: string | undefined;
3527
3491
  }["limit"];
3528
3492
  readonly order?: {
3529
- readonly workspace?: string | undefined;
3530
3493
  readonly limit?: number | undefined;
3531
3494
  readonly order?: "asc" | "desc" | undefined;
3532
3495
  readonly search?: string | undefined;
@@ -3537,7 +3500,6 @@ export type SessionListInput = {
3537
3500
  readonly cursor?: string | undefined;
3538
3501
  }["order"];
3539
3502
  readonly search?: {
3540
- readonly workspace?: string | undefined;
3541
3503
  readonly limit?: number | undefined;
3542
3504
  readonly order?: "asc" | "desc" | undefined;
3543
3505
  readonly search?: string | undefined;
@@ -3548,7 +3510,6 @@ export type SessionListInput = {
3548
3510
  readonly cursor?: string | undefined;
3549
3511
  }["search"];
3550
3512
  readonly parentID?: {
3551
- readonly workspace?: string | undefined;
3552
3513
  readonly limit?: number | undefined;
3553
3514
  readonly order?: "asc" | "desc" | undefined;
3554
3515
  readonly search?: string | undefined;
@@ -3559,7 +3520,6 @@ export type SessionListInput = {
3559
3520
  readonly cursor?: string | undefined;
3560
3521
  }["parentID"];
3561
3522
  readonly directory?: {
3562
- readonly workspace?: string | undefined;
3563
3523
  readonly limit?: number | undefined;
3564
3524
  readonly order?: "asc" | "desc" | undefined;
3565
3525
  readonly search?: string | undefined;
@@ -3570,7 +3530,6 @@ export type SessionListInput = {
3570
3530
  readonly cursor?: string | undefined;
3571
3531
  }["directory"];
3572
3532
  readonly project?: {
3573
- readonly workspace?: string | undefined;
3574
3533
  readonly limit?: number | undefined;
3575
3534
  readonly order?: "asc" | "desc" | undefined;
3576
3535
  readonly search?: string | undefined;
@@ -3581,7 +3540,6 @@ export type SessionListInput = {
3581
3540
  readonly cursor?: string | undefined;
3582
3541
  }["project"];
3583
3542
  readonly subpath?: {
3584
- readonly workspace?: string | undefined;
3585
3543
  readonly limit?: number | undefined;
3586
3544
  readonly order?: "asc" | "desc" | undefined;
3587
3545
  readonly search?: string | undefined;
@@ -3592,7 +3550,6 @@ export type SessionListInput = {
3592
3550
  readonly cursor?: string | undefined;
3593
3551
  }["subpath"];
3594
3552
  readonly cursor?: {
3595
- readonly workspace?: string | undefined;
3596
3553
  readonly limit?: number | undefined;
3597
3554
  readonly order?: "asc" | "desc" | undefined;
3598
3555
  readonly search?: string | undefined;
@@ -3656,7 +3613,6 @@ export type SessionCreateInput = {
3656
3613
  } | null;
3657
3614
  readonly location?: {
3658
3615
  readonly directory: string;
3659
- readonly workspaceID?: string;
3660
3616
  } | null;
3661
3617
  readonly metadata?: {
3662
3618
  readonly [x: string]: JsonValue;
@@ -3678,7 +3634,6 @@ export type SessionCreateInput = {
3678
3634
  } | null;
3679
3635
  readonly location?: {
3680
3636
  readonly directory: string;
3681
- readonly workspaceID?: string;
3682
3637
  } | null;
3683
3638
  readonly metadata?: {
3684
3639
  readonly [x: string]: JsonValue;
@@ -3700,7 +3655,6 @@ export type SessionCreateInput = {
3700
3655
  } | null;
3701
3656
  readonly location?: {
3702
3657
  readonly directory: string;
3703
- readonly workspaceID?: string;
3704
3658
  } | null;
3705
3659
  readonly metadata?: {
3706
3660
  readonly [x: string]: JsonValue;
@@ -3722,7 +3676,6 @@ export type SessionCreateInput = {
3722
3676
  } | null;
3723
3677
  readonly location?: {
3724
3678
  readonly directory: string;
3725
- readonly workspaceID?: string;
3726
3679
  } | null;
3727
3680
  readonly metadata?: {
3728
3681
  readonly [x: string]: JsonValue;
@@ -3744,7 +3697,6 @@ export type SessionCreateInput = {
3744
3697
  } | null;
3745
3698
  readonly location?: {
3746
3699
  readonly directory: string;
3747
- readonly workspaceID?: string;
3748
3700
  } | null;
3749
3701
  readonly metadata?: {
3750
3702
  readonly [x: string]: JsonValue;
@@ -3766,7 +3718,6 @@ export type SessionCreateInput = {
3766
3718
  } | null;
3767
3719
  readonly location?: {
3768
3720
  readonly directory: string;
3769
- readonly workspaceID?: string;
3770
3721
  } | null;
3771
3722
  readonly metadata?: {
3772
3723
  readonly [x: string]: JsonValue;
@@ -3788,7 +3739,6 @@ export type SessionCreateInput = {
3788
3739
  } | null;
3789
3740
  readonly location?: {
3790
3741
  readonly directory: string;
3791
- readonly workspaceID?: string;
3792
3742
  } | null;
3793
3743
  readonly metadata?: {
3794
3744
  readonly [x: string]: JsonValue;
@@ -3844,10 +3794,6 @@ export type SessionImportInput = {
3844
3794
  readonly archived?: number;
3845
3795
  };
3846
3796
  readonly title?: string;
3847
- readonly location: {
3848
- readonly directory: string;
3849
- readonly workspaceID?: string;
3850
- };
3851
3797
  readonly subpath?: string;
3852
3798
  readonly metadata?: {
3853
3799
  readonly [x: string]: JsonValue;
@@ -3869,6 +3815,9 @@ export type SessionImportInput = {
3869
3815
  readonly status: "added" | "deleted" | "modified";
3870
3816
  }>;
3871
3817
  };
3818
+ readonly location: {
3819
+ readonly directory: string;
3820
+ };
3872
3821
  };
3873
3822
  readonly messages: ReadonlyArray<{
3874
3823
  readonly id: string;
@@ -3909,20 +3858,18 @@ export type SessionImportInput = {
3909
3858
  readonly created: number;
3910
3859
  };
3911
3860
  readonly type: "location-switched";
3861
+ readonly projectID?: string;
3862
+ readonly subpath?: string;
3912
3863
  readonly location: {
3913
3864
  readonly directory: string;
3914
- readonly workspaceID?: string;
3915
3865
  };
3916
- readonly projectID?: string;
3917
- readonly subpath?: string;
3918
3866
  readonly previous?: {
3919
3867
  readonly location: {
3920
3868
  readonly directory: string;
3921
- readonly workspaceID?: string;
3922
3869
  };
3923
3870
  readonly projectID?: string;
3924
3871
  readonly subpath?: string;
3925
- };
3872
+ } | null;
3926
3873
  } | {
3927
3874
  readonly id: string;
3928
3875
  readonly metadata?: {
@@ -4274,7 +4221,6 @@ export type SessionImportInput = {
4274
4221
  }>;
4275
4222
  readonly location?: {
4276
4223
  readonly directory: string;
4277
- readonly workspaceID?: string;
4278
4224
  } | null;
4279
4225
  }["info"];
4280
4226
  readonly messages: {
@@ -4317,10 +4263,6 @@ export type SessionImportInput = {
4317
4263
  readonly archived?: number;
4318
4264
  };
4319
4265
  readonly title?: string;
4320
- readonly location: {
4321
- readonly directory: string;
4322
- readonly workspaceID?: string;
4323
- };
4324
4266
  readonly subpath?: string;
4325
4267
  readonly metadata?: {
4326
4268
  readonly [x: string]: JsonValue;
@@ -4342,6 +4284,9 @@ export type SessionImportInput = {
4342
4284
  readonly status: "added" | "deleted" | "modified";
4343
4285
  }>;
4344
4286
  };
4287
+ readonly location: {
4288
+ readonly directory: string;
4289
+ };
4345
4290
  };
4346
4291
  readonly messages: ReadonlyArray<{
4347
4292
  readonly id: string;
@@ -4382,20 +4327,18 @@ export type SessionImportInput = {
4382
4327
  readonly created: number;
4383
4328
  };
4384
4329
  readonly type: "location-switched";
4330
+ readonly projectID?: string;
4331
+ readonly subpath?: string;
4385
4332
  readonly location: {
4386
4333
  readonly directory: string;
4387
- readonly workspaceID?: string;
4388
4334
  };
4389
- readonly projectID?: string;
4390
- readonly subpath?: string;
4391
4335
  readonly previous?: {
4392
4336
  readonly location: {
4393
4337
  readonly directory: string;
4394
- readonly workspaceID?: string;
4395
4338
  };
4396
4339
  readonly projectID?: string;
4397
4340
  readonly subpath?: string;
4398
- };
4341
+ } | null;
4399
4342
  } | {
4400
4343
  readonly id: string;
4401
4344
  readonly metadata?: {
@@ -4747,7 +4690,6 @@ export type SessionImportInput = {
4747
4690
  }>;
4748
4691
  readonly location?: {
4749
4692
  readonly directory: string;
4750
- readonly workspaceID?: string;
4751
4693
  } | null;
4752
4694
  }["messages"];
4753
4695
  readonly location?: {
@@ -4790,10 +4732,6 @@ export type SessionImportInput = {
4790
4732
  readonly archived?: number;
4791
4733
  };
4792
4734
  readonly title?: string;
4793
- readonly location: {
4794
- readonly directory: string;
4795
- readonly workspaceID?: string;
4796
- };
4797
4735
  readonly subpath?: string;
4798
4736
  readonly metadata?: {
4799
4737
  readonly [x: string]: JsonValue;
@@ -4815,6 +4753,9 @@ export type SessionImportInput = {
4815
4753
  readonly status: "added" | "deleted" | "modified";
4816
4754
  }>;
4817
4755
  };
4756
+ readonly location: {
4757
+ readonly directory: string;
4758
+ };
4818
4759
  };
4819
4760
  readonly messages: ReadonlyArray<{
4820
4761
  readonly id: string;
@@ -4855,20 +4796,18 @@ export type SessionImportInput = {
4855
4796
  readonly created: number;
4856
4797
  };
4857
4798
  readonly type: "location-switched";
4799
+ readonly projectID?: string;
4800
+ readonly subpath?: string;
4858
4801
  readonly location: {
4859
4802
  readonly directory: string;
4860
- readonly workspaceID?: string;
4861
4803
  };
4862
- readonly projectID?: string;
4863
- readonly subpath?: string;
4864
4804
  readonly previous?: {
4865
4805
  readonly location: {
4866
4806
  readonly directory: string;
4867
- readonly workspaceID?: string;
4868
4807
  };
4869
4808
  readonly projectID?: string;
4870
4809
  readonly subpath?: string;
4871
- };
4810
+ } | null;
4872
4811
  } | {
4873
4812
  readonly id: string;
4874
4813
  readonly metadata?: {
@@ -5220,7 +5159,6 @@ export type SessionImportInput = {
5220
5159
  }>;
5221
5160
  readonly location?: {
5222
5161
  readonly directory: string;
5223
- readonly workspaceID?: string;
5224
5162
  } | null;
5225
5163
  }["location"];
5226
5164
  };
@@ -5310,18 +5248,11 @@ export type SessionMoveInput = {
5310
5248
  }["sessionID"];
5311
5249
  readonly directory: {
5312
5250
  readonly directory: string;
5313
- readonly workspaceID?: string;
5314
- readonly delivery?: ("steer" | "queue") | null;
5251
+ readonly delivery?: ("steer" | "queue") | undefined;
5315
5252
  }["directory"];
5316
- readonly workspaceID?: {
5317
- readonly directory: string;
5318
- readonly workspaceID?: string;
5319
- readonly delivery?: ("steer" | "queue") | null;
5320
- }["workspaceID"];
5321
5253
  readonly delivery?: {
5322
5254
  readonly directory: string;
5323
- readonly workspaceID?: string;
5324
- readonly delivery?: ("steer" | "queue") | null;
5255
+ readonly delivery?: ("steer" | "queue") | undefined;
5325
5256
  }["delivery"];
5326
5257
  };
5327
5258
  export type SessionMoveOutput = void;
@@ -6168,40 +6099,22 @@ export type ModelListInput = {
6168
6099
  readonly location?: {
6169
6100
  readonly location?: {
6170
6101
  readonly directory?: string | undefined;
6171
- readonly workspace?: string | undefined;
6172
6102
  } | undefined;
6173
6103
  }["location"];
6174
6104
  };
6175
6105
  export type ModelListOutput = {
6176
- location: {
6177
- directory: string;
6178
- workspaceID?: string;
6179
- project: {
6180
- id: string;
6181
- directory: string;
6182
- canonical: string;
6183
- };
6184
- };
6106
+ location: LocationPublicInfo;
6185
6107
  data: Array<ModelInfo>;
6186
6108
  };
6187
6109
  export type ModelDefaultInput = {
6188
6110
  readonly location?: {
6189
6111
  readonly location?: {
6190
6112
  readonly directory?: string | undefined;
6191
- readonly workspace?: string | undefined;
6192
6113
  } | undefined;
6193
6114
  }["location"];
6194
6115
  };
6195
6116
  export type ModelDefaultOutput = {
6196
- location: {
6197
- directory: string;
6198
- workspaceID?: string;
6199
- project: {
6200
- id: string;
6201
- directory: string;
6202
- canonical: string;
6203
- };
6204
- };
6117
+ location: LocationPublicInfo;
6205
6118
  data: ModelInfo | null;
6206
6119
  };
6207
6120
  export type GenerateTextInput = {
@@ -6227,20 +6140,11 @@ export type ProviderListInput = {
6227
6140
  readonly location?: {
6228
6141
  readonly location?: {
6229
6142
  readonly directory?: string | undefined;
6230
- readonly workspace?: string | undefined;
6231
6143
  } | undefined;
6232
6144
  }["location"];
6233
6145
  };
6234
6146
  export type ProviderListOutput = {
6235
- location: {
6236
- directory: string;
6237
- workspaceID?: string;
6238
- project: {
6239
- id: string;
6240
- directory: string;
6241
- canonical: string;
6242
- };
6243
- };
6147
+ location: LocationPublicInfo;
6244
6148
  data: Array<ProviderInfo>;
6245
6149
  };
6246
6150
  export type ProviderGetInput = {
@@ -6250,40 +6154,22 @@ export type ProviderGetInput = {
6250
6154
  readonly location?: {
6251
6155
  readonly location?: {
6252
6156
  readonly directory?: string | undefined;
6253
- readonly workspace?: string | undefined;
6254
6157
  } | undefined;
6255
6158
  }["location"];
6256
6159
  };
6257
6160
  export type ProviderGetOutput = {
6258
- location: {
6259
- directory: string;
6260
- workspaceID?: string;
6261
- project: {
6262
- id: string;
6263
- directory: string;
6264
- canonical: string;
6265
- };
6266
- };
6161
+ location: LocationPublicInfo;
6267
6162
  data: ProviderInfo;
6268
6163
  };
6269
6164
  export type IntegrationListInput = {
6270
6165
  readonly location?: {
6271
6166
  readonly location?: {
6272
6167
  readonly directory?: string | undefined;
6273
- readonly workspace?: string | undefined;
6274
6168
  } | undefined;
6275
6169
  }["location"];
6276
6170
  };
6277
6171
  export type IntegrationListOutput = {
6278
- location: {
6279
- directory: string;
6280
- workspaceID?: string;
6281
- project: {
6282
- id: string;
6283
- directory: string;
6284
- canonical: string;
6285
- };
6286
- };
6172
+ location: LocationPublicInfo;
6287
6173
  data: Array<IntegrationInfo>;
6288
6174
  };
6289
6175
  export type IntegrationGetInput = {
@@ -6293,27 +6179,17 @@ export type IntegrationGetInput = {
6293
6179
  readonly location?: {
6294
6180
  readonly location?: {
6295
6181
  readonly directory?: string | undefined;
6296
- readonly workspace?: string | undefined;
6297
6182
  } | undefined;
6298
6183
  }["location"];
6299
6184
  };
6300
6185
  export type IntegrationGetOutput = {
6301
- location: {
6302
- directory: string;
6303
- workspaceID?: string;
6304
- project: {
6305
- id: string;
6306
- directory: string;
6307
- canonical: string;
6308
- };
6309
- };
6186
+ location: LocationPublicInfo;
6310
6187
  data: IntegrationInfo | null;
6311
6188
  };
6312
6189
  export type IntegrationWellknownAddInput = {
6313
6190
  readonly location?: {
6314
6191
  readonly location?: {
6315
6192
  readonly directory?: string | undefined;
6316
- readonly workspace?: string | undefined;
6317
6193
  } | undefined;
6318
6194
  }["location"];
6319
6195
  readonly url: {
@@ -6328,7 +6204,6 @@ export type IntegrationConnectKeyInput = {
6328
6204
  readonly location?: {
6329
6205
  readonly location?: {
6330
6206
  readonly directory?: string | undefined;
6331
- readonly workspace?: string | undefined;
6332
6207
  } | undefined;
6333
6208
  }["location"];
6334
6209
  readonly key: {
@@ -6361,7 +6236,6 @@ export type IntegrationOauthConnectInput = {
6361
6236
  readonly location?: {
6362
6237
  readonly location?: {
6363
6238
  readonly directory?: string | undefined;
6364
- readonly workspace?: string | undefined;
6365
6239
  } | undefined;
6366
6240
  }["location"];
6367
6241
  readonly methodID: {
@@ -6387,25 +6261,8 @@ export type IntegrationOauthConnectInput = {
6387
6261
  }["label"];
6388
6262
  };
6389
6263
  export type IntegrationOauthConnectOutput = {
6390
- location: {
6391
- directory: string;
6392
- workspaceID?: string;
6393
- project: {
6394
- id: string;
6395
- directory: string;
6396
- canonical: string;
6397
- };
6398
- };
6399
- data: {
6400
- attemptID: string;
6401
- url: string;
6402
- instructions: string;
6403
- mode: "auto" | "code";
6404
- time: {
6405
- created: number | "Infinity" | "-Infinity" | "NaN";
6406
- expires: number | "Infinity" | "-Infinity" | "NaN";
6407
- };
6408
- };
6264
+ location: LocationPublicInfo;
6265
+ data: IntegrationAttempt;
6409
6266
  };
6410
6267
  export type IntegrationOauthStatusInput = {
6411
6268
  readonly integrationID: {
@@ -6419,20 +6276,11 @@ export type IntegrationOauthStatusInput = {
6419
6276
  readonly location?: {
6420
6277
  readonly location?: {
6421
6278
  readonly directory?: string | undefined;
6422
- readonly workspace?: string | undefined;
6423
6279
  } | undefined;
6424
6280
  }["location"];
6425
6281
  };
6426
6282
  export type IntegrationOauthStatusOutput = {
6427
- location: {
6428
- directory: string;
6429
- workspaceID?: string;
6430
- project: {
6431
- id: string;
6432
- directory: string;
6433
- canonical: string;
6434
- };
6435
- };
6283
+ location: LocationPublicInfo;
6436
6284
  data: IntegrationAttemptStatus;
6437
6285
  };
6438
6286
  export type IntegrationOauthCompleteInput = {
@@ -6447,7 +6295,6 @@ export type IntegrationOauthCompleteInput = {
6447
6295
  readonly location?: {
6448
6296
  readonly location?: {
6449
6297
  readonly directory?: string | undefined;
6450
- readonly workspace?: string | undefined;
6451
6298
  } | undefined;
6452
6299
  }["location"];
6453
6300
  readonly code?: {
@@ -6467,7 +6314,6 @@ export type IntegrationOauthCancelInput = {
6467
6314
  readonly location?: {
6468
6315
  readonly location?: {
6469
6316
  readonly directory?: string | undefined;
6470
- readonly workspace?: string | undefined;
6471
6317
  } | undefined;
6472
6318
  }["location"];
6473
6319
  };
@@ -6479,7 +6325,6 @@ export type IntegrationCommandConnectInput = {
6479
6325
  readonly location?: {
6480
6326
  readonly location?: {
6481
6327
  readonly directory?: string | undefined;
6482
- readonly workspace?: string | undefined;
6483
6328
  } | undefined;
6484
6329
  }["location"];
6485
6330
  readonly methodID: {
@@ -6492,15 +6337,7 @@ export type IntegrationCommandConnectInput = {
6492
6337
  }["label"];
6493
6338
  };
6494
6339
  export type IntegrationCommandConnectOutput = {
6495
- location: {
6496
- directory: string;
6497
- workspaceID?: string;
6498
- project: {
6499
- id: string;
6500
- directory: string;
6501
- canonical: string;
6502
- };
6503
- };
6340
+ location: LocationPublicInfo;
6504
6341
  data: IntegrationCommandAttempt;
6505
6342
  };
6506
6343
  export type IntegrationCommandStatusInput = {
@@ -6515,20 +6352,11 @@ export type IntegrationCommandStatusInput = {
6515
6352
  readonly location?: {
6516
6353
  readonly location?: {
6517
6354
  readonly directory?: string | undefined;
6518
- readonly workspace?: string | undefined;
6519
6355
  } | undefined;
6520
6356
  }["location"];
6521
6357
  };
6522
6358
  export type IntegrationCommandStatusOutput = {
6523
- location: {
6524
- directory: string;
6525
- workspaceID?: string;
6526
- project: {
6527
- id: string;
6528
- directory: string;
6529
- canonical: string;
6530
- };
6531
- };
6359
+ location: LocationPublicInfo;
6532
6360
  data: IntegrationCommandAttemptStatus;
6533
6361
  };
6534
6362
  export type IntegrationCommandCancelInput = {
@@ -6543,7 +6371,6 @@ export type IntegrationCommandCancelInput = {
6543
6371
  readonly location?: {
6544
6372
  readonly location?: {
6545
6373
  readonly directory?: string | undefined;
6546
- readonly workspace?: string | undefined;
6547
6374
  } | undefined;
6548
6375
  }["location"];
6549
6376
  };
@@ -6552,20 +6379,11 @@ export type McpListInput = {
6552
6379
  readonly location?: {
6553
6380
  readonly location?: {
6554
6381
  readonly directory?: string | undefined;
6555
- readonly workspace?: string | undefined;
6556
6382
  } | undefined;
6557
6383
  }["location"];
6558
6384
  };
6559
6385
  export type McpListOutput = {
6560
- location: {
6561
- directory: string;
6562
- workspaceID?: string;
6563
- project: {
6564
- id: string;
6565
- directory: string;
6566
- canonical: string;
6567
- };
6568
- };
6386
+ location: LocationPublicInfo;
6569
6387
  data: Array<McpServer>;
6570
6388
  };
6571
6389
  export type McpAddInput = {
@@ -6575,7 +6393,6 @@ export type McpAddInput = {
6575
6393
  readonly location?: {
6576
6394
  readonly location?: {
6577
6395
  readonly directory?: string | undefined;
6578
- readonly workspace?: string | undefined;
6579
6396
  } | undefined;
6580
6397
  }["location"];
6581
6398
  readonly config: {
@@ -6624,7 +6441,6 @@ export type McpRemoveInput = {
6624
6441
  readonly location?: {
6625
6442
  readonly location?: {
6626
6443
  readonly directory?: string | undefined;
6627
- readonly workspace?: string | undefined;
6628
6444
  } | undefined;
6629
6445
  }["location"];
6630
6446
  };
@@ -6636,7 +6452,6 @@ export type McpConnectInput = {
6636
6452
  readonly location?: {
6637
6453
  readonly location?: {
6638
6454
  readonly directory?: string | undefined;
6639
- readonly workspace?: string | undefined;
6640
6455
  } | undefined;
6641
6456
  }["location"];
6642
6457
  };
@@ -6648,7 +6463,6 @@ export type McpDisconnectInput = {
6648
6463
  readonly location?: {
6649
6464
  readonly location?: {
6650
6465
  readonly directory?: string | undefined;
6651
- readonly workspace?: string | undefined;
6652
6466
  } | undefined;
6653
6467
  }["location"];
6654
6468
  };
@@ -6657,20 +6471,11 @@ export type McpResourceCatalogInput = {
6657
6471
  readonly location?: {
6658
6472
  readonly location?: {
6659
6473
  readonly directory?: string | undefined;
6660
- readonly workspace?: string | undefined;
6661
6474
  } | undefined;
6662
6475
  }["location"];
6663
6476
  };
6664
6477
  export type McpResourceCatalogOutput = {
6665
- location: {
6666
- directory: string;
6667
- workspaceID?: string;
6668
- project: {
6669
- id: string;
6670
- directory: string;
6671
- canonical: string;
6672
- };
6673
- };
6478
+ location: LocationPublicInfo;
6674
6479
  data: McpResourceCatalog;
6675
6480
  };
6676
6481
  export type CredentialUpdateInput = {
@@ -6680,7 +6485,6 @@ export type CredentialUpdateInput = {
6680
6485
  readonly location?: {
6681
6486
  readonly location?: {
6682
6487
  readonly directory?: string | undefined;
6683
- readonly workspace?: string | undefined;
6684
6488
  } | undefined;
6685
6489
  }["location"];
6686
6490
  readonly label: {
@@ -6695,7 +6499,6 @@ export type CredentialActivateInput = {
6695
6499
  readonly location?: {
6696
6500
  readonly location?: {
6697
6501
  readonly directory?: string | undefined;
6698
- readonly workspace?: string | undefined;
6699
6502
  } | undefined;
6700
6503
  }["location"];
6701
6504
  };
@@ -6707,7 +6510,6 @@ export type CredentialRemoveInput = {
6707
6510
  readonly location?: {
6708
6511
  readonly location?: {
6709
6512
  readonly directory?: string | undefined;
6710
- readonly workspace?: string | undefined;
6711
6513
  } | undefined;
6712
6514
  }["location"];
6713
6515
  };
@@ -6771,20 +6573,11 @@ export type FormRequestListInput = {
6771
6573
  readonly location?: {
6772
6574
  readonly location?: {
6773
6575
  readonly directory?: string | undefined;
6774
- readonly workspace?: string | undefined;
6775
6576
  } | undefined;
6776
6577
  }["location"];
6777
6578
  };
6778
6579
  export type FormRequestListOutput = {
6779
- location: {
6780
- directory: string;
6781
- workspaceID?: string;
6782
- project: {
6783
- id: string;
6784
- directory: string;
6785
- canonical: string;
6786
- };
6787
- };
6580
+ location: LocationPublicInfo;
6788
6581
  data: Array<FormInfo>;
6789
6582
  };
6790
6583
  export type FormListInput = {
@@ -7616,20 +7409,11 @@ export type PermissionRequestListInput = {
7616
7409
  readonly location?: {
7617
7410
  readonly location?: {
7618
7411
  readonly directory?: string | undefined;
7619
- readonly workspace?: string | undefined;
7620
7412
  } | undefined;
7621
7413
  }["location"];
7622
7414
  };
7623
7415
  export type PermissionRequestListOutput = {
7624
- location: {
7625
- directory: string;
7626
- workspaceID?: string;
7627
- project: {
7628
- id: string;
7629
- directory: string;
7630
- canonical: string;
7631
- };
7632
- };
7416
+ location: LocationPublicInfo;
7633
7417
  data: Array<PermissionRequest>;
7634
7418
  };
7635
7419
  export type PermissionSavedListInput = {
@@ -7819,7 +7603,6 @@ export type FileReadInput = {
7819
7603
  readonly location?: {
7820
7604
  readonly location?: {
7821
7605
  readonly directory?: string | undefined;
7822
- readonly workspace?: string | undefined;
7823
7606
  } | undefined;
7824
7607
  }["location"];
7825
7608
  readonly path: string;
@@ -7829,35 +7612,24 @@ export type FileListInput = {
7829
7612
  readonly location?: {
7830
7613
  readonly location?: {
7831
7614
  readonly directory?: string | undefined;
7832
- readonly workspace?: string | undefined;
7833
7615
  } | undefined;
7834
7616
  readonly path?: string | undefined;
7835
7617
  }["location"];
7836
7618
  readonly path?: {
7837
7619
  readonly location?: {
7838
7620
  readonly directory?: string | undefined;
7839
- readonly workspace?: string | undefined;
7840
7621
  } | undefined;
7841
7622
  readonly path?: string | undefined;
7842
7623
  }["path"];
7843
7624
  };
7844
7625
  export type FileListOutput = {
7845
- location: {
7846
- directory: string;
7847
- workspaceID?: string;
7848
- project: {
7849
- id: string;
7850
- directory: string;
7851
- canonical: string;
7852
- };
7853
- };
7626
+ location: LocationPublicInfo;
7854
7627
  data: Array<FileSystemEntry>;
7855
7628
  };
7856
7629
  export type FileFindInput = {
7857
7630
  readonly location?: {
7858
7631
  readonly location?: {
7859
7632
  readonly directory?: string | undefined;
7860
- readonly workspace?: string | undefined;
7861
7633
  } | undefined;
7862
7634
  readonly query: string;
7863
7635
  readonly type?: "file" | "directory" | undefined;
@@ -7866,7 +7638,6 @@ export type FileFindInput = {
7866
7638
  readonly query: {
7867
7639
  readonly location?: {
7868
7640
  readonly directory?: string | undefined;
7869
- readonly workspace?: string | undefined;
7870
7641
  } | undefined;
7871
7642
  readonly query: string;
7872
7643
  readonly type?: "file" | "directory" | undefined;
@@ -7875,7 +7646,6 @@ export type FileFindInput = {
7875
7646
  readonly type?: {
7876
7647
  readonly location?: {
7877
7648
  readonly directory?: string | undefined;
7878
- readonly workspace?: string | undefined;
7879
7649
  } | undefined;
7880
7650
  readonly query: string;
7881
7651
  readonly type?: "file" | "directory" | undefined;
@@ -7884,7 +7654,6 @@ export type FileFindInput = {
7884
7654
  readonly limit?: {
7885
7655
  readonly location?: {
7886
7656
  readonly directory?: string | undefined;
7887
- readonly workspace?: string | undefined;
7888
7657
  } | undefined;
7889
7658
  readonly query: string;
7890
7659
  readonly type?: "file" | "directory" | undefined;
@@ -7892,55 +7661,29 @@ export type FileFindInput = {
7892
7661
  }["limit"];
7893
7662
  };
7894
7663
  export type FileFindOutput = {
7895
- location: {
7896
- directory: string;
7897
- workspaceID?: string;
7898
- project: {
7899
- id: string;
7900
- directory: string;
7901
- canonical: string;
7902
- };
7903
- };
7664
+ location: LocationPublicInfo;
7904
7665
  data: Array<FileSystemEntry>;
7905
7666
  };
7906
7667
  export type CommandListInput = {
7907
7668
  readonly location?: {
7908
7669
  readonly location?: {
7909
7670
  readonly directory?: string | undefined;
7910
- readonly workspace?: string | undefined;
7911
7671
  } | undefined;
7912
7672
  }["location"];
7913
7673
  };
7914
7674
  export type CommandListOutput = {
7915
- location: {
7916
- directory: string;
7917
- workspaceID?: string;
7918
- project: {
7919
- id: string;
7920
- directory: string;
7921
- canonical: string;
7922
- };
7923
- };
7675
+ location: LocationPublicInfo;
7924
7676
  data: Array<CommandInfo>;
7925
7677
  };
7926
7678
  export type SkillListInput = {
7927
7679
  readonly location?: {
7928
7680
  readonly location?: {
7929
7681
  readonly directory?: string | undefined;
7930
- readonly workspace?: string | undefined;
7931
7682
  } | undefined;
7932
7683
  }["location"];
7933
7684
  };
7934
7685
  export type SkillListOutput = {
7935
- location: {
7936
- directory: string;
7937
- workspaceID?: string;
7938
- project: {
7939
- id: string;
7940
- directory: string;
7941
- canonical: string;
7942
- };
7943
- };
7686
+ location: LocationPublicInfo;
7944
7687
  data: Array<SkillInfo>;
7945
7688
  };
7946
7689
  export type RpcCallInput = {
@@ -7955,7 +7698,6 @@ export type RpcCallInput = {
7955
7698
  readonly location?: {
7956
7699
  readonly location?: {
7957
7700
  readonly directory?: string | undefined;
7958
- readonly workspace?: string | undefined;
7959
7701
  } | undefined;
7960
7702
  }["location"];
7961
7703
  readonly input?: {
@@ -7968,27 +7710,17 @@ export type PtyListInput = {
7968
7710
  readonly location?: {
7969
7711
  readonly location?: {
7970
7712
  readonly directory?: string | undefined;
7971
- readonly workspace?: string | undefined;
7972
7713
  } | undefined;
7973
7714
  }["location"];
7974
7715
  };
7975
7716
  export type PtyListOutput = {
7976
- location: {
7977
- directory: string;
7978
- workspaceID?: string;
7979
- project: {
7980
- id: string;
7981
- directory: string;
7982
- canonical: string;
7983
- };
7984
- };
7717
+ location: LocationPublicInfo;
7985
7718
  data: Array<Pty>;
7986
7719
  };
7987
7720
  export type PtyCreateInput = {
7988
7721
  readonly location?: {
7989
7722
  readonly location?: {
7990
7723
  readonly directory?: string | undefined;
7991
- readonly workspace?: string | undefined;
7992
7724
  } | undefined;
7993
7725
  }["location"];
7994
7726
  readonly command?: {
@@ -8038,15 +7770,7 @@ export type PtyCreateInput = {
8038
7770
  }["env"];
8039
7771
  };
8040
7772
  export type PtyCreateOutput = {
8041
- location: {
8042
- directory: string;
8043
- workspaceID?: string;
8044
- project: {
8045
- id: string;
8046
- directory: string;
8047
- canonical: string;
8048
- };
8049
- };
7773
+ location: LocationPublicInfo;
8050
7774
  data: Pty;
8051
7775
  };
8052
7776
  export type PtyGetInput = {
@@ -8056,20 +7780,11 @@ export type PtyGetInput = {
8056
7780
  readonly location?: {
8057
7781
  readonly location?: {
8058
7782
  readonly directory?: string | undefined;
8059
- readonly workspace?: string | undefined;
8060
7783
  } | undefined;
8061
7784
  }["location"];
8062
7785
  };
8063
7786
  export type PtyGetOutput = {
8064
- location: {
8065
- directory: string;
8066
- workspaceID?: string;
8067
- project: {
8068
- id: string;
8069
- directory: string;
8070
- canonical: string;
8071
- };
8072
- };
7787
+ location: LocationPublicInfo;
8073
7788
  data: Pty;
8074
7789
  };
8075
7790
  export type PtyUpdateInput = {
@@ -8079,7 +7794,6 @@ export type PtyUpdateInput = {
8079
7794
  readonly location?: {
8080
7795
  readonly location?: {
8081
7796
  readonly directory?: string | undefined;
8082
- readonly workspace?: string | undefined;
8083
7797
  } | undefined;
8084
7798
  }["location"];
8085
7799
  readonly title?: {
@@ -8098,15 +7812,7 @@ export type PtyUpdateInput = {
8098
7812
  }["size"];
8099
7813
  };
8100
7814
  export type PtyUpdateOutput = {
8101
- location: {
8102
- directory: string;
8103
- workspaceID?: string;
8104
- project: {
8105
- id: string;
8106
- directory: string;
8107
- canonical: string;
8108
- };
8109
- };
7815
+ location: LocationPublicInfo;
8110
7816
  data: Pty;
8111
7817
  };
8112
7818
  export type PtyRemoveInput = {
@@ -8116,7 +7822,6 @@ export type PtyRemoveInput = {
8116
7822
  readonly location?: {
8117
7823
  readonly location?: {
8118
7824
  readonly directory?: string | undefined;
8119
- readonly workspace?: string | undefined;
8120
7825
  } | undefined;
8121
7826
  }["location"];
8122
7827
  };
@@ -8128,7 +7833,6 @@ export type PtyConnectTokenInput = {
8128
7833
  readonly location?: {
8129
7834
  readonly location?: {
8130
7835
  readonly directory?: string | undefined;
8131
- readonly workspace?: string | undefined;
8132
7836
  } | undefined;
8133
7837
  }["location"];
8134
7838
  readonly "x-opencode-ticket"?: {
@@ -8136,15 +7840,7 @@ export type PtyConnectTokenInput = {
8136
7840
  }["x-opencode-ticket"];
8137
7841
  };
8138
7842
  export type PtyConnectTokenOutput = {
8139
- location: {
8140
- directory: string;
8141
- workspaceID?: string;
8142
- project: {
8143
- id: string;
8144
- directory: string;
8145
- canonical: string;
8146
- };
8147
- };
7843
+ location: LocationPublicInfo;
8148
7844
  data: PtyTicketConnectToken;
8149
7845
  };
8150
7846
  export type ExperimentalPersistentPtyReadInput = {
@@ -8315,27 +8011,17 @@ export type ShellListInput = {
8315
8011
  readonly location?: {
8316
8012
  readonly location?: {
8317
8013
  readonly directory?: string | undefined;
8318
- readonly workspace?: string | undefined;
8319
8014
  } | undefined;
8320
8015
  }["location"];
8321
8016
  };
8322
8017
  export type ShellListOutput = {
8323
- location: {
8324
- directory: string;
8325
- workspaceID?: string;
8326
- project: {
8327
- id: string;
8328
- directory: string;
8329
- canonical: string;
8330
- };
8331
- };
8018
+ location: LocationPublicInfo;
8332
8019
  data: Array<ShellInfo1>;
8333
8020
  };
8334
8021
  export type ShellCreateInput = {
8335
8022
  readonly location?: {
8336
8023
  readonly location?: {
8337
8024
  readonly directory?: string | undefined;
8338
- readonly workspace?: string | undefined;
8339
8025
  } | undefined;
8340
8026
  }["location"];
8341
8027
  readonly command: {
@@ -8372,15 +8058,7 @@ export type ShellCreateInput = {
8372
8058
  }["metadata"];
8373
8059
  };
8374
8060
  export type ShellCreateOutput = {
8375
- location: {
8376
- directory: string;
8377
- workspaceID?: string;
8378
- project: {
8379
- id: string;
8380
- directory: string;
8381
- canonical: string;
8382
- };
8383
- };
8061
+ location: LocationPublicInfo;
8384
8062
  data: ShellInfo1;
8385
8063
  };
8386
8064
  export type ShellGetInput = {
@@ -8390,20 +8068,11 @@ export type ShellGetInput = {
8390
8068
  readonly location?: {
8391
8069
  readonly location?: {
8392
8070
  readonly directory?: string | undefined;
8393
- readonly workspace?: string | undefined;
8394
8071
  } | undefined;
8395
8072
  }["location"];
8396
8073
  };
8397
8074
  export type ShellGetOutput = {
8398
- location: {
8399
- directory: string;
8400
- workspaceID?: string;
8401
- project: {
8402
- id: string;
8403
- directory: string;
8404
- canonical: string;
8405
- };
8406
- };
8075
+ location: LocationPublicInfo;
8407
8076
  data: ShellInfo1;
8408
8077
  };
8409
8078
  export type ShellTimeoutInput = {
@@ -8413,7 +8082,6 @@ export type ShellTimeoutInput = {
8413
8082
  readonly location?: {
8414
8083
  readonly location?: {
8415
8084
  readonly directory?: string | undefined;
8416
- readonly workspace?: string | undefined;
8417
8085
  } | undefined;
8418
8086
  }["location"];
8419
8087
  readonly timeout: {
@@ -8421,15 +8089,7 @@ export type ShellTimeoutInput = {
8421
8089
  }["timeout"];
8422
8090
  };
8423
8091
  export type ShellTimeoutOutput = {
8424
- location: {
8425
- directory: string;
8426
- workspaceID?: string;
8427
- project: {
8428
- id: string;
8429
- directory: string;
8430
- canonical: string;
8431
- };
8432
- };
8092
+ location: LocationPublicInfo;
8433
8093
  data: ShellInfo1;
8434
8094
  };
8435
8095
  export type ShellOutputInput = {
@@ -8439,7 +8099,6 @@ export type ShellOutputInput = {
8439
8099
  readonly location?: {
8440
8100
  readonly location?: {
8441
8101
  readonly directory?: string | undefined;
8442
- readonly workspace?: string | undefined;
8443
8102
  } | undefined;
8444
8103
  readonly cursor?: number | undefined;
8445
8104
  readonly limit?: number | undefined;
@@ -8447,7 +8106,6 @@ export type ShellOutputInput = {
8447
8106
  readonly cursor?: {
8448
8107
  readonly location?: {
8449
8108
  readonly directory?: string | undefined;
8450
- readonly workspace?: string | undefined;
8451
8109
  } | undefined;
8452
8110
  readonly cursor?: number | undefined;
8453
8111
  readonly limit?: number | undefined;
@@ -8455,22 +8113,13 @@ export type ShellOutputInput = {
8455
8113
  readonly limit?: {
8456
8114
  readonly location?: {
8457
8115
  readonly directory?: string | undefined;
8458
- readonly workspace?: string | undefined;
8459
8116
  } | undefined;
8460
8117
  readonly cursor?: number | undefined;
8461
8118
  readonly limit?: number | undefined;
8462
8119
  }["limit"];
8463
8120
  };
8464
8121
  export type ShellOutputOutput = {
8465
- location: {
8466
- directory: string;
8467
- workspaceID?: string;
8468
- project: {
8469
- id: string;
8470
- directory: string;
8471
- canonical: string;
8472
- };
8473
- };
8122
+ location: LocationPublicInfo;
8474
8123
  data: {
8475
8124
  output: string;
8476
8125
  cursor: number;
@@ -8485,7 +8134,6 @@ export type ShellRemoveInput = {
8485
8134
  readonly location?: {
8486
8135
  readonly location?: {
8487
8136
  readonly directory?: string | undefined;
8488
- readonly workspace?: string | undefined;
8489
8137
  } | undefined;
8490
8138
  }["location"];
8491
8139
  };
@@ -8494,27 +8142,17 @@ export type ReferenceListInput = {
8494
8142
  readonly location?: {
8495
8143
  readonly location?: {
8496
8144
  readonly directory?: string | undefined;
8497
- readonly workspace?: string | undefined;
8498
8145
  } | undefined;
8499
8146
  }["location"];
8500
8147
  };
8501
8148
  export type ReferenceListOutput = {
8502
- location: {
8503
- directory: string;
8504
- workspaceID?: string;
8505
- project: {
8506
- id: string;
8507
- directory: string;
8508
- canonical: string;
8509
- };
8510
- };
8149
+ location: LocationPublicInfo;
8511
8150
  data: Array<ReferenceInfo>;
8512
8151
  };
8513
8152
  export type WorktreeListInput = {
8514
8153
  readonly location?: {
8515
8154
  readonly location?: {
8516
8155
  readonly directory?: string | undefined;
8517
- readonly workspace?: string | undefined;
8518
8156
  } | undefined;
8519
8157
  }["location"];
8520
8158
  };
@@ -8523,7 +8161,6 @@ export type WorktreeCreateInput = {
8523
8161
  readonly location?: {
8524
8162
  readonly location?: {
8525
8163
  readonly directory?: string | undefined;
8526
- readonly workspace?: string | undefined;
8527
8164
  } | undefined;
8528
8165
  }["location"];
8529
8166
  readonly strategy?: {
@@ -8567,7 +8204,6 @@ export type WorktreeRemoveInput = {
8567
8204
  readonly location?: {
8568
8205
  readonly location?: {
8569
8206
  readonly directory?: string | undefined;
8570
- readonly workspace?: string | undefined;
8571
8207
  } | undefined;
8572
8208
  }["location"];
8573
8209
  readonly directory: {
@@ -8584,95 +8220,47 @@ export type WorktreeRefreshInput = {
8584
8220
  readonly location?: {
8585
8221
  readonly location?: {
8586
8222
  readonly directory?: string | undefined;
8587
- readonly workspace?: string | undefined;
8588
8223
  } | undefined;
8589
8224
  }["location"];
8590
8225
  };
8591
8226
  export type WorktreeRefreshOutput = void;
8592
- export type WorkspaceCreateInput = {
8593
- readonly id?: {
8594
- readonly id?: string | undefined;
8595
- readonly provider: string;
8596
- }["id"];
8597
- readonly provider: {
8598
- readonly id?: string | undefined;
8599
- readonly provider: string;
8600
- }["provider"];
8601
- };
8602
- export type WorkspaceCreateOutput = {
8603
- data: string;
8604
- }["data"];
8605
- export type WorkspaceDestroyInput = {
8606
- readonly workspaceID: {
8607
- readonly workspaceID: string;
8608
- }["workspaceID"];
8609
- };
8610
- export type WorkspaceDestroyOutput = WorkspaceDestroyResult;
8611
8227
  export type VcsGetInput = {
8612
8228
  readonly location?: {
8613
8229
  readonly location?: {
8614
8230
  readonly directory?: string | undefined;
8615
- readonly workspace?: string | undefined;
8616
8231
  } | undefined;
8617
8232
  }["location"];
8618
8233
  };
8619
8234
  export type VcsGetOutput = {
8620
- location: {
8621
- directory: string;
8622
- workspaceID?: string;
8623
- project: {
8624
- id: string;
8625
- directory: string;
8626
- canonical: string;
8627
- };
8628
- };
8235
+ location: LocationPublicInfo;
8629
8236
  data: VcsInfo;
8630
8237
  };
8631
8238
  export type VcsBaseInput = {
8632
8239
  readonly location?: {
8633
8240
  readonly location?: {
8634
8241
  readonly directory?: string | undefined;
8635
- readonly workspace?: string | undefined;
8636
8242
  } | undefined;
8637
8243
  }["location"];
8638
8244
  };
8639
8245
  export type VcsBaseOutput = {
8640
- location: {
8641
- directory: string;
8642
- workspaceID?: string;
8643
- project: {
8644
- id: string;
8645
- directory: string;
8646
- canonical: string;
8647
- };
8648
- };
8246
+ location: LocationPublicInfo;
8649
8247
  data: VcsBase | null;
8650
8248
  };
8651
8249
  export type VcsStatusInput = {
8652
8250
  readonly location?: {
8653
8251
  readonly location?: {
8654
8252
  readonly directory?: string | undefined;
8655
- readonly workspace?: string | undefined;
8656
8253
  } | undefined;
8657
8254
  }["location"];
8658
8255
  };
8659
8256
  export type VcsStatusOutput = {
8660
- location: {
8661
- directory: string;
8662
- workspaceID?: string;
8663
- project: {
8664
- id: string;
8665
- directory: string;
8666
- canonical: string;
8667
- };
8668
- };
8257
+ location: LocationPublicInfo;
8669
8258
  data: Array<VcsFileStatus>;
8670
8259
  };
8671
8260
  export type VcsBranchesInput = {
8672
8261
  readonly location?: {
8673
8262
  readonly location?: {
8674
8263
  readonly directory?: string | undefined;
8675
- readonly workspace?: string | undefined;
8676
8264
  } | undefined;
8677
8265
  readonly search?: string | undefined;
8678
8266
  readonly limit?: number | undefined;
@@ -8680,7 +8268,6 @@ export type VcsBranchesInput = {
8680
8268
  readonly search?: {
8681
8269
  readonly location?: {
8682
8270
  readonly directory?: string | undefined;
8683
- readonly workspace?: string | undefined;
8684
8271
  } | undefined;
8685
8272
  readonly search?: string | undefined;
8686
8273
  readonly limit?: number | undefined;
@@ -8688,29 +8275,19 @@ export type VcsBranchesInput = {
8688
8275
  readonly limit?: {
8689
8276
  readonly location?: {
8690
8277
  readonly directory?: string | undefined;
8691
- readonly workspace?: string | undefined;
8692
8278
  } | undefined;
8693
8279
  readonly search?: string | undefined;
8694
8280
  readonly limit?: number | undefined;
8695
8281
  }["limit"];
8696
8282
  };
8697
8283
  export type VcsBranchesOutput = {
8698
- location: {
8699
- directory: string;
8700
- workspaceID?: string;
8701
- project: {
8702
- id: string;
8703
- directory: string;
8704
- canonical: string;
8705
- };
8706
- };
8284
+ location: LocationPublicInfo;
8707
8285
  data: VcsBranchList;
8708
8286
  };
8709
8287
  export type VcsDiffInput = {
8710
8288
  readonly location?: {
8711
8289
  readonly location?: {
8712
8290
  readonly directory?: string | undefined;
8713
- readonly workspace?: string | undefined;
8714
8291
  } | undefined;
8715
8292
  readonly mode: "working" | "branch" | "committed";
8716
8293
  readonly base?: string | undefined;
@@ -8719,7 +8296,6 @@ export type VcsDiffInput = {
8719
8296
  readonly mode: {
8720
8297
  readonly location?: {
8721
8298
  readonly directory?: string | undefined;
8722
- readonly workspace?: string | undefined;
8723
8299
  } | undefined;
8724
8300
  readonly mode: "working" | "branch" | "committed";
8725
8301
  readonly base?: string | undefined;
@@ -8728,7 +8304,6 @@ export type VcsDiffInput = {
8728
8304
  readonly base?: {
8729
8305
  readonly location?: {
8730
8306
  readonly directory?: string | undefined;
8731
- readonly workspace?: string | undefined;
8732
8307
  } | undefined;
8733
8308
  readonly mode: "working" | "branch" | "committed";
8734
8309
  readonly base?: string | undefined;
@@ -8737,7 +8312,6 @@ export type VcsDiffInput = {
8737
8312
  readonly context?: {
8738
8313
  readonly location?: {
8739
8314
  readonly directory?: string | undefined;
8740
- readonly workspace?: string | undefined;
8741
8315
  } | undefined;
8742
8316
  readonly mode: "working" | "branch" | "committed";
8743
8317
  readonly base?: string | undefined;
@@ -8745,23 +8319,14 @@ export type VcsDiffInput = {
8745
8319
  }["context"];
8746
8320
  };
8747
8321
  export type VcsDiffOutput = {
8748
- location: {
8749
- directory: string;
8750
- workspaceID?: string;
8751
- project: {
8752
- id: string;
8753
- directory: string;
8754
- canonical: string;
8755
- };
8756
- };
8322
+ location: LocationPublicInfo;
8757
8323
  data: Array<FileDiffInfo>;
8758
8324
  };
8759
- export type DebugLocationListOutput = Array<LocationRef>;
8325
+ export type DebugLocationListOutput = Array<LocationPublicRef>;
8760
8326
  export type DebugLocationEvictInput = {
8761
8327
  readonly location?: {
8762
8328
  readonly location?: {
8763
8329
  readonly directory?: string | undefined;
8764
- readonly workspace?: string | undefined;
8765
8330
  } | undefined;
8766
8331
  }["location"];
8767
8332
  };
@@ -8783,27 +8348,17 @@ export type WebsearchProvidersInput = {
8783
8348
  readonly location?: {
8784
8349
  readonly location?: {
8785
8350
  readonly directory?: string | undefined;
8786
- readonly workspace?: string | undefined;
8787
8351
  } | undefined;
8788
8352
  }["location"];
8789
8353
  };
8790
8354
  export type WebsearchProvidersOutput = {
8791
- location: {
8792
- directory: string;
8793
- workspaceID?: string;
8794
- project: {
8795
- id: string;
8796
- directory: string;
8797
- canonical: string;
8798
- };
8799
- };
8355
+ location: LocationPublicInfo;
8800
8356
  data: Array<WebSearchProvider>;
8801
8357
  };
8802
8358
  export type WebsearchQueryInput = {
8803
8359
  readonly location?: {
8804
8360
  readonly location?: {
8805
8361
  readonly directory?: string | undefined;
8806
- readonly workspace?: string | undefined;
8807
8362
  } | undefined;
8808
8363
  }["location"];
8809
8364
  readonly query: {
@@ -8816,15 +8371,7 @@ export type WebsearchQueryInput = {
8816
8371
  }["providerID"];
8817
8372
  };
8818
8373
  export type WebsearchQueryOutput = {
8819
- location: {
8820
- directory: string;
8821
- workspaceID?: string;
8822
- project: {
8823
- id: string;
8824
- directory: string;
8825
- canonical: string;
8826
- };
8827
- };
8374
+ location: LocationPublicInfo;
8828
8375
  data: {
8829
8376
  providerID: string;
8830
8377
  results: Array<WebSearchResult>;
@@ -8834,7 +8381,6 @@ export type ConfigGetInput = {
8834
8381
  readonly location?: {
8835
8382
  readonly location?: {
8836
8383
  readonly directory?: string | undefined;
8837
- readonly workspace?: string | undefined;
8838
8384
  } | undefined;
8839
8385
  }["location"];
8840
8386
  };