@opencode-ai/sdk 1.15.7 → 1.15.9

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.
@@ -502,6 +502,7 @@ export declare class Vcs extends HeyApiClient {
502
502
  directory?: string;
503
503
  workspace?: string;
504
504
  mode: "git" | "branch";
505
+ context?: number;
505
506
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsDiffResponses, VcsDiffErrors, ThrowOnError, "fields">;
506
507
  /**
507
508
  * Apply VCS patch
@@ -1008,6 +1008,7 @@ export class Vcs extends HeyApiClient {
1008
1008
  { in: "query", key: "directory" },
1009
1009
  { in: "query", key: "workspace" },
1010
1010
  { in: "query", key: "mode" },
1011
+ { in: "query", key: "context" },
1011
1012
  ],
1012
1013
  },
1013
1014
  ]);
@@ -801,6 +801,7 @@ export type McpOAuthConfig = {
801
801
  clientId?: string;
802
802
  clientSecret?: string;
803
803
  scope?: string;
804
+ callbackPort?: number;
804
805
  redirectUri?: string;
805
806
  };
806
807
  export type McpRemoteConfig = {
@@ -1291,14 +1292,34 @@ export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed
1291
1292
  export type McpUnsupportedOAuthError = {
1292
1293
  error: string;
1293
1294
  };
1294
- export type NotFoundError = {
1295
- name: "NotFoundError";
1296
- data: {
1297
- message: string;
1298
- };
1295
+ export type McpServerNotFoundError = {
1296
+ _tag: "McpServerNotFoundError";
1297
+ name: string;
1298
+ message: string;
1299
1299
  };
1300
- export type EffectHttpApiErrorForbidden = {
1301
- _tag: "Forbidden";
1300
+ export type ProjectNotFoundError = {
1301
+ _tag: "ProjectNotFoundError";
1302
+ projectID: string;
1303
+ message: string;
1304
+ };
1305
+ export type PtyNotFoundError = {
1306
+ _tag: "PtyNotFoundError";
1307
+ ptyID: string;
1308
+ message: string;
1309
+ };
1310
+ export type PtyForbiddenError = {
1311
+ _tag: "PtyForbiddenError";
1312
+ message: string;
1313
+ };
1314
+ export type QuestionNotFoundError = {
1315
+ _tag: "QuestionNotFoundError";
1316
+ requestID: string;
1317
+ message: string;
1318
+ };
1319
+ export type PermissionNotFoundError = {
1320
+ _tag: "PermissionNotFoundError";
1321
+ requestID: string;
1322
+ message: string;
1302
1323
  };
1303
1324
  export type ProviderAuthMethod = {
1304
1325
  type: "oauth" | "api";
@@ -1343,6 +1364,12 @@ export type ProviderAuthError1 = {
1343
1364
  kind?: string;
1344
1365
  };
1345
1366
  };
1367
+ export type NotFoundError = {
1368
+ name: "NotFoundError";
1369
+ data: {
1370
+ message: string;
1371
+ };
1372
+ };
1346
1373
  export type TextPartInput = {
1347
1374
  id?: string;
1348
1375
  type: "text";
@@ -1387,6 +1414,11 @@ export type SubtaskPartInput = {
1387
1414
  };
1388
1415
  command?: string;
1389
1416
  };
1417
+ export type SessionBusyError = {
1418
+ _tag: "SessionBusyError";
1419
+ sessionID: string;
1420
+ message: string;
1421
+ };
1390
1422
  export type V2SessionsResponse = {
1391
1423
  items: Array<SessionInfo>;
1392
1424
  cursor: {
@@ -1475,6 +1507,9 @@ export type WorkspaceWarpError = {
1475
1507
  message: string;
1476
1508
  };
1477
1509
  };
1510
+ export type EffectHttpApiErrorForbidden = {
1511
+ _tag: "Forbidden";
1512
+ };
1478
1513
  export type SyncEventMessageUpdated = {
1479
1514
  type: "sync";
1480
1515
  name: "message.updated.1";
@@ -3990,6 +4025,7 @@ export type VcsDiffData = {
3990
4025
  directory?: string;
3991
4026
  workspace?: string;
3992
4027
  mode: "git" | "branch";
4028
+ context?: number;
3993
4029
  };
3994
4030
  url: "/vcs/diff";
3995
4031
  };
@@ -4247,9 +4283,9 @@ export type McpAuthRemoveErrors = {
4247
4283
  */
4248
4284
  400: BadRequestError;
4249
4285
  /**
4250
- * Not found
4286
+ * McpServerNotFoundError
4251
4287
  */
4252
- 404: NotFoundError;
4288
+ 404: McpServerNotFoundError;
4253
4289
  };
4254
4290
  export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors];
4255
4291
  export type McpAuthRemoveResponses = {
@@ -4278,9 +4314,9 @@ export type McpAuthStartErrors = {
4278
4314
  */
4279
4315
  400: McpUnsupportedOAuthError | InvalidRequestError;
4280
4316
  /**
4281
- * Not found
4317
+ * McpServerNotFoundError
4282
4318
  */
4283
- 404: NotFoundError;
4319
+ 404: McpServerNotFoundError;
4284
4320
  };
4285
4321
  export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors];
4286
4322
  export type McpAuthStartResponses = {
@@ -4312,9 +4348,9 @@ export type McpAuthCallbackErrors = {
4312
4348
  */
4313
4349
  400: EffectHttpApiErrorBadRequest | InvalidRequestError;
4314
4350
  /**
4315
- * Not found
4351
+ * McpServerNotFoundError
4316
4352
  */
4317
- 404: NotFoundError;
4353
+ 404: McpServerNotFoundError;
4318
4354
  };
4319
4355
  export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors];
4320
4356
  export type McpAuthCallbackResponses = {
@@ -4341,9 +4377,9 @@ export type McpAuthAuthenticateErrors = {
4341
4377
  */
4342
4378
  400: McpUnsupportedOAuthError | InvalidRequestError;
4343
4379
  /**
4344
- * Not found
4380
+ * McpServerNotFoundError
4345
4381
  */
4346
- 404: NotFoundError;
4382
+ 404: McpServerNotFoundError;
4347
4383
  };
4348
4384
  export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors];
4349
4385
  export type McpAuthAuthenticateResponses = {
@@ -4369,6 +4405,10 @@ export type McpConnectErrors = {
4369
4405
  * Bad request
4370
4406
  */
4371
4407
  400: BadRequestError;
4408
+ /**
4409
+ * McpServerNotFoundError
4410
+ */
4411
+ 404: McpServerNotFoundError;
4372
4412
  };
4373
4413
  export type McpConnectError = McpConnectErrors[keyof McpConnectErrors];
4374
4414
  export type McpConnectResponses = {
@@ -4394,6 +4434,10 @@ export type McpDisconnectErrors = {
4394
4434
  * Bad request
4395
4435
  */
4396
4436
  400: BadRequestError;
4437
+ /**
4438
+ * McpServerNotFoundError
4439
+ */
4440
+ 404: McpServerNotFoundError;
4397
4441
  };
4398
4442
  export type McpDisconnectError = McpDisconnectErrors[keyof McpDisconnectErrors];
4399
4443
  export type McpDisconnectResponses = {
@@ -4502,9 +4546,9 @@ export type ProjectUpdateErrors = {
4502
4546
  */
4503
4547
  400: EffectHttpApiErrorBadRequest | InvalidRequestError;
4504
4548
  /**
4505
- * Not found
4549
+ * ProjectNotFoundError
4506
4550
  */
4507
- 404: NotFoundError;
4551
+ 404: ProjectNotFoundError;
4508
4552
  };
4509
4553
  export type ProjectUpdateError = ProjectUpdateErrors[keyof ProjectUpdateErrors];
4510
4554
  export type ProjectUpdateResponses = {
@@ -4612,9 +4656,9 @@ export type PtyRemoveErrors = {
4612
4656
  */
4613
4657
  400: BadRequestError;
4614
4658
  /**
4615
- * NotFoundError
4659
+ * PtyNotFoundError
4616
4660
  */
4617
- 404: NotFoundError;
4661
+ 404: PtyNotFoundError;
4618
4662
  };
4619
4663
  export type PtyRemoveError = PtyRemoveErrors[keyof PtyRemoveErrors];
4620
4664
  export type PtyRemoveResponses = {
@@ -4641,9 +4685,9 @@ export type PtyGetErrors = {
4641
4685
  */
4642
4686
  400: BadRequestError;
4643
4687
  /**
4644
- * NotFoundError
4688
+ * PtyNotFoundError
4645
4689
  */
4646
- 404: NotFoundError;
4690
+ 404: PtyNotFoundError;
4647
4691
  };
4648
4692
  export type PtyGetError = PtyGetErrors[keyof PtyGetErrors];
4649
4693
  export type PtyGetResponses = {
@@ -4675,6 +4719,10 @@ export type PtyUpdateErrors = {
4675
4719
  * BadRequest | InvalidRequestError
4676
4720
  */
4677
4721
  400: EffectHttpApiErrorBadRequest | InvalidRequestError;
4722
+ /**
4723
+ * PtyNotFoundError
4724
+ */
4725
+ 404: PtyNotFoundError;
4678
4726
  };
4679
4727
  export type PtyUpdateError = PtyUpdateErrors[keyof PtyUpdateErrors];
4680
4728
  export type PtyUpdateResponses = {
@@ -4701,13 +4749,13 @@ export type PtyConnectTokenErrors = {
4701
4749
  */
4702
4750
  400: BadRequestError;
4703
4751
  /**
4704
- * Forbidden
4752
+ * PtyForbiddenError
4705
4753
  */
4706
- 403: EffectHttpApiErrorForbidden;
4754
+ 403: PtyForbiddenError;
4707
4755
  /**
4708
- * NotFoundError
4756
+ * PtyNotFoundError
4709
4757
  */
4710
- 404: NotFoundError;
4758
+ 404: PtyNotFoundError;
4711
4759
  };
4712
4760
  export type PtyConnectTokenError = PtyConnectTokenErrors[keyof PtyConnectTokenErrors];
4713
4761
  export type PtyConnectTokenResponses = {
@@ -4765,9 +4813,9 @@ export type QuestionReplyErrors = {
4765
4813
  */
4766
4814
  400: EffectHttpApiErrorBadRequest | InvalidRequestError;
4767
4815
  /**
4768
- * Not found
4816
+ * QuestionNotFoundError
4769
4817
  */
4770
- 404: NotFoundError;
4818
+ 404: QuestionNotFoundError;
4771
4819
  };
4772
4820
  export type QuestionReplyError = QuestionReplyErrors[keyof QuestionReplyErrors];
4773
4821
  export type QuestionReplyResponses = {
@@ -4794,9 +4842,9 @@ export type QuestionRejectErrors = {
4794
4842
  */
4795
4843
  400: EffectHttpApiErrorBadRequest | InvalidRequestError;
4796
4844
  /**
4797
- * Not found
4845
+ * QuestionNotFoundError
4798
4846
  */
4799
- 404: NotFoundError;
4847
+ 404: QuestionNotFoundError;
4800
4848
  };
4801
4849
  export type QuestionRejectError = QuestionRejectErrors[keyof QuestionRejectErrors];
4802
4850
  export type QuestionRejectResponses = {
@@ -4849,9 +4897,9 @@ export type PermissionReplyErrors = {
4849
4897
  */
4850
4898
  400: EffectHttpApiErrorBadRequest | InvalidRequestError;
4851
4899
  /**
4852
- * Not found
4900
+ * PermissionNotFoundError
4853
4901
  */
4854
- 404: NotFoundError;
4902
+ 404: PermissionNotFoundError;
4855
4903
  };
4856
4904
  export type PermissionReplyError = PermissionReplyErrors[keyof PermissionReplyErrors];
4857
4905
  export type PermissionReplyResponses = {
@@ -5346,6 +5394,10 @@ export type SessionDeleteMessageErrors = {
5346
5394
  * NotFoundError
5347
5395
  */
5348
5396
  404: NotFoundError;
5397
+ /**
5398
+ * SessionBusyError
5399
+ */
5400
+ 409: SessionBusyError;
5349
5401
  };
5350
5402
  export type SessionDeleteMessageError = SessionDeleteMessageErrors[keyof SessionDeleteMessageErrors];
5351
5403
  export type SessionDeleteMessageResponses = {
@@ -5695,6 +5747,10 @@ export type SessionShellErrors = {
5695
5747
  * NotFoundError
5696
5748
  */
5697
5749
  404: NotFoundError;
5750
+ /**
5751
+ * SessionBusyError
5752
+ */
5753
+ 409: SessionBusyError;
5698
5754
  };
5699
5755
  export type SessionShellError = SessionShellErrors[keyof SessionShellErrors];
5700
5756
  export type SessionShellResponses = {
@@ -5730,6 +5786,10 @@ export type SessionRevertErrors = {
5730
5786
  * NotFoundError
5731
5787
  */
5732
5788
  404: NotFoundError;
5789
+ /**
5790
+ * SessionBusyError
5791
+ */
5792
+ 409: SessionBusyError;
5733
5793
  };
5734
5794
  export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors];
5735
5795
  export type SessionRevertResponses = {
@@ -5759,6 +5819,10 @@ export type SessionUnrevertErrors = {
5759
5819
  * NotFoundError
5760
5820
  */
5761
5821
  404: NotFoundError;
5822
+ /**
5823
+ * SessionBusyError
5824
+ */
5825
+ 409: SessionBusyError;
5762
5826
  };
5763
5827
  export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors];
5764
5828
  export type SessionUnrevertResponses = {
@@ -5788,9 +5852,9 @@ export type PermissionRespondErrors = {
5788
5852
  */
5789
5853
  400: EffectHttpApiErrorBadRequest | InvalidRequestError;
5790
5854
  /**
5791
- * NotFoundError
5855
+ * NotFoundError | PermissionNotFoundError
5792
5856
  */
5793
- 404: NotFoundError;
5857
+ 404: NotFoundError | PermissionNotFoundError;
5794
5858
  };
5795
5859
  export type PermissionRespondError = PermissionRespondErrors[keyof PermissionRespondErrors];
5796
5860
  export type PermissionRespondResponses = {
@@ -6807,6 +6871,10 @@ export type ExperimentalWorkspaceWarpErrors = {
6807
6871
  * WorkspaceWarpError | VcsApplyError | InvalidRequestError
6808
6872
  */
6809
6873
  400: WorkspaceWarpError | VcsApplyError | InvalidRequestError;
6874
+ /**
6875
+ * NotFoundError
6876
+ */
6877
+ 404: NotFoundError;
6810
6878
  };
6811
6879
  export type ExperimentalWorkspaceWarpError = ExperimentalWorkspaceWarpErrors[keyof ExperimentalWorkspaceWarpErrors];
6812
6880
  export type ExperimentalWorkspaceWarpResponses = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "1.15.7",
4
+ "version": "1.15.9",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {