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

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