@opencode/client 0.0.0-dev-20672 → 0.0.0-dev-20673

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.
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  make4,
3
3
  exports_client3
4
- } from "../chunks/contract-962mwvry.js";
4
+ } from "../chunks/contract-zqskgwe2.js";
5
5
  import"../chunks/contract-mnyft54j.js";
6
6
  import"../chunks/contract-6mptkzbc.js";
7
7
  import"../chunks/contract-raw99g3w.js";
8
8
  import"../chunks/contract-7f0py9js.js";
9
9
  import"../chunks/contract-vmytr4q8.js";
10
- import"../chunks/contract-t1xa31vm.js";
11
10
  import"../chunks/contract-frbwqjmf.js";
11
+ import"../chunks/contract-t1xa31vm.js";
12
12
  export {
13
13
  exports_client3 as OpenCode,
14
14
  make4 as make
@@ -9,7 +9,7 @@ import"../chunks/contract-t1xa31vm.js";
9
9
  import"../chunks/contract-mnyft54j.js";
10
10
  import {
11
11
  exports_client3
12
- } from "../chunks/contract-962mwvry.js";
12
+ } from "../chunks/contract-zqskgwe2.js";
13
13
 
14
14
  // src/effect/index.ts
15
15
  import { Agent } from "@opencode/schema/agent";
@@ -14,7 +14,7 @@ import {
14
14
  environment2,
15
15
  complete2,
16
16
  clear2
17
- } from "../chunks/contract-71wkqa80.js";
17
+ } from "../chunks/contract-ht6mbrag.js";
18
18
  import {
19
19
  decide2,
20
20
  fallback2,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  make2,
3
3
  exports_client
4
- } from "../chunks/contract-cqfz2qxq.js";
4
+ } from "../chunks/contract-er999wh1.js";
5
+ import"../chunks/contract-1y4a697q.js";
5
6
  import"../chunks/contract-vyas3vgt.js";
6
7
  import"../chunks/contract-qzsnm4q8.js";
7
8
  import"../chunks/contract-js54wxgp.js";
8
- import"../chunks/contract-1y4a697q.js";
9
9
  import"../chunks/contract-vt9jbch8.js";
10
10
  import"../chunks/contract-frbwqjmf.js";
11
11
  export {
@@ -496,6 +496,13 @@ export type CredentialOAuth = {
496
496
  [x: string]: JsonValue;
497
497
  };
498
498
  };
499
+ export type CredentialExternal = {
500
+ type: "external";
501
+ methodID: string;
502
+ metadata?: {
503
+ [x: string]: JsonValue;
504
+ };
505
+ };
499
506
  export type ProjectVcs = string;
500
507
  export type ProjectIcon = {
501
508
  url?: string;
@@ -2226,7 +2233,7 @@ export type ConnectionCredentialInfo = {
2226
2233
  type: "credential";
2227
2234
  id: string;
2228
2235
  label: string;
2229
- method: "key" | "oauth";
2236
+ method: "key" | "oauth" | "external";
2230
2237
  status?: ConnectionStatus;
2231
2238
  };
2232
2239
  export type ConnectionEnvInfo = {
@@ -3205,7 +3212,7 @@ export type SessionMessageAssistantTool1 = {
3205
3212
  };
3206
3213
  };
3207
3214
  export type FormFields = [FormField, ...Array<FormField>];
3208
- export type CredentialValue = CredentialOAuth | CredentialKey;
3215
+ export type CredentialValue = CredentialOAuth | CredentialKey | CredentialExternal;
3209
3216
  export type FormFields2 = [FormField1, ...Array<FormField1>];
3210
3217
  export type SessionsResponse = {
3211
3218
  data: Array<SessionInfo>;
@@ -7602,6 +7609,12 @@ export type CredentialCreateInput = {
7602
7609
  readonly configuration?: {
7603
7610
  readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7604
7611
  };
7612
+ } | {
7613
+ readonly type: "external";
7614
+ readonly methodID: string;
7615
+ readonly metadata?: {
7616
+ readonly [x: string]: JsonValue;
7617
+ };
7605
7618
  };
7606
7619
  readonly activate?: boolean;
7607
7620
  }["id"];
@@ -7627,6 +7640,12 @@ export type CredentialCreateInput = {
7627
7640
  readonly configuration?: {
7628
7641
  readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7629
7642
  };
7643
+ } | {
7644
+ readonly type: "external";
7645
+ readonly methodID: string;
7646
+ readonly metadata?: {
7647
+ readonly [x: string]: JsonValue;
7648
+ };
7630
7649
  };
7631
7650
  readonly activate?: boolean;
7632
7651
  }["integrationID"];
@@ -7652,6 +7671,12 @@ export type CredentialCreateInput = {
7652
7671
  readonly configuration?: {
7653
7672
  readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7654
7673
  };
7674
+ } | {
7675
+ readonly type: "external";
7676
+ readonly methodID: string;
7677
+ readonly metadata?: {
7678
+ readonly [x: string]: JsonValue;
7679
+ };
7655
7680
  };
7656
7681
  readonly activate?: boolean;
7657
7682
  }["label"];
@@ -7677,6 +7702,12 @@ export type CredentialCreateInput = {
7677
7702
  readonly configuration?: {
7678
7703
  readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7679
7704
  };
7705
+ } | {
7706
+ readonly type: "external";
7707
+ readonly methodID: string;
7708
+ readonly metadata?: {
7709
+ readonly [x: string]: JsonValue;
7710
+ };
7680
7711
  };
7681
7712
  readonly activate?: boolean;
7682
7713
  }["value"];
@@ -7702,6 +7733,12 @@ export type CredentialCreateInput = {
7702
7733
  readonly configuration?: {
7703
7734
  readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7704
7735
  };
7736
+ } | {
7737
+ readonly type: "external";
7738
+ readonly methodID: string;
7739
+ readonly metadata?: {
7740
+ readonly [x: string]: JsonValue;
7741
+ };
7705
7742
  };
7706
7743
  readonly activate?: boolean;
7707
7744
  }["activate"];
@@ -1,13 +1,13 @@
1
1
  import"../chunks/contract-m2eywc8w.js";
2
2
  import {
3
3
  exports_client
4
- } from "../chunks/contract-cqfz2qxq.js";
4
+ } from "../chunks/contract-er999wh1.js";
5
+ import"../chunks/contract-1y4a697q.js";
5
6
  import"../chunks/contract-vyas3vgt.js";
6
7
  import"../chunks/contract-qzsnm4q8.js";
7
8
  import {
8
9
  ClientError2
9
10
  } from "../chunks/contract-js54wxgp.js";
10
- import"../chunks/contract-1y4a697q.js";
11
11
  import {
12
12
  isInvalidRequestError2,
13
13
  isUnauthorizedError2,
@@ -14,7 +14,7 @@ import {
14
14
  environment2,
15
15
  complete2,
16
16
  clear2
17
- } from "../chunks/contract-71wkqa80.js";
17
+ } from "../chunks/contract-ht6mbrag.js";
18
18
  import {
19
19
  decide2,
20
20
  fallback2,
@@ -4,7 +4,7 @@ import {
4
4
  complete2,
5
5
  clear2,
6
6
  exports_pty_handoff
7
- } from "./chunks/contract-71wkqa80.js";
7
+ } from "./chunks/contract-ht6mbrag.js";
8
8
  export {
9
9
  exports_pty_handoff as PtyHandoff,
10
10
  clear2 as clear,
@@ -4,11 +4,11 @@ import {
4
4
  createData2
5
5
  } from "../chunks/contract-src6by76.js";
6
6
  import"../chunks/contract-m2eywc8w.js";
7
- import"../chunks/contract-cqfz2qxq.js";
7
+ import"../chunks/contract-er999wh1.js";
8
+ import"../chunks/contract-1y4a697q.js";
8
9
  import"../chunks/contract-vyas3vgt.js";
9
10
  import"../chunks/contract-qzsnm4q8.js";
10
11
  import"../chunks/contract-js54wxgp.js";
11
- import"../chunks/contract-1y4a697q.js";
12
12
  import"../chunks/contract-vt9jbch8.js";
13
13
  import"../chunks/contract-frbwqjmf.js";
14
14
  export {
@@ -4,7 +4,7 @@ import"../chunks/contract-vt9jbch8.js";
4
4
  import"../chunks/contract-vyas3vgt.js";
5
5
  import"../chunks/contract-frbwqjmf.js";
6
6
  import"../chunks/contract-1y4a697q.js";
7
- import"../chunks/contract-cqfz2qxq.js";
7
+ import"../chunks/contract-er999wh1.js";
8
8
  import"../chunks/contract-m2eywc8w.js";
9
9
  import {
10
10
  settleMs2,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/client",
4
- "version": "0.0.0-dev-20672",
4
+ "version": "0.0.0-dev-20673",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -57,8 +57,8 @@
57
57
  "typecheck": "tsgo --noEmit"
58
58
  },
59
59
  "dependencies": {
60
- "@opencode/schema": "0.0.0-dev-20672",
61
- "@opencode/protocol": "0.0.0-dev-20672"
60
+ "@opencode/schema": "0.0.0-dev-20673",
61
+ "@opencode/protocol": "0.0.0-dev-20673"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "4.0.0-rc.112",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@effect/platform-node": "4.0.0-rc.112",
77
- "@opencode/httpapi-codegen": "0.0.0-dev-20672",
77
+ "@opencode/httpapi-codegen": "0.0.0-dev-20673",
78
78
  "@tsconfig/bun": "1.0.9",
79
79
  "@types/bun": "1.4.0",
80
80
  "@typescript/native-preview": "7.0.0-dev.20251207.1",