@opencode/client 0.0.0-dev-19787 → 0.0.0-dev-19790

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.
@@ -420,7 +420,7 @@ export declare const make: (options?: {
420
420
  readonly [x: string]: unknown;
421
421
  };
422
422
  readonly command: string;
423
- readonly status: "running" | "exited" | "timeout" | "killed";
423
+ readonly status: "timeout" | "running" | "exited" | "killed";
424
424
  readonly time: {
425
425
  readonly started: number;
426
426
  readonly completed?: number | undefined;
@@ -445,7 +445,7 @@ export declare const make: (options?: {
445
445
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
446
446
  readonly data: {
447
447
  readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
448
- readonly status: "running" | "exited" | "timeout" | "killed";
448
+ readonly status: "timeout" | "running" | "exited" | "killed";
449
449
  readonly exit?: number | undefined;
450
450
  };
451
451
  readonly type: "shell.exited";
@@ -1042,7 +1042,7 @@ export declare const make: (options?: {
1042
1042
  readonly [x: string]: unknown;
1043
1043
  };
1044
1044
  readonly command: string;
1045
- readonly status: "running" | "exited" | "timeout" | "killed";
1045
+ readonly status: "timeout" | "running" | "exited" | "killed";
1046
1046
  readonly time: {
1047
1047
  readonly started: number;
1048
1048
  readonly completed?: number | undefined;
@@ -1078,7 +1078,7 @@ export declare const make: (options?: {
1078
1078
  readonly [x: string]: unknown;
1079
1079
  };
1080
1080
  readonly command: string;
1081
- readonly status: "running" | "exited" | "timeout" | "killed";
1081
+ readonly status: "timeout" | "running" | "exited" | "killed";
1082
1082
  readonly time: {
1083
1083
  readonly started: number;
1084
1084
  readonly completed?: number | undefined;
@@ -575,7 +575,7 @@ export declare const make: (options?: {
575
575
  readonly [x: string]: unknown;
576
576
  };
577
577
  readonly command: string;
578
- readonly status: "running" | "exited" | "timeout" | "killed";
578
+ readonly status: "timeout" | "running" | "exited" | "killed";
579
579
  readonly time: {
580
580
  readonly started: number;
581
581
  readonly completed?: number | undefined;
@@ -600,7 +600,7 @@ export declare const make: (options?: {
600
600
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
601
601
  readonly data: {
602
602
  readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
603
- readonly status: "running" | "exited" | "timeout" | "killed";
603
+ readonly status: "timeout" | "running" | "exited" | "killed";
604
604
  readonly exit?: number | undefined;
605
605
  };
606
606
  readonly type: "shell.exited";
@@ -1197,7 +1197,7 @@ export declare const make: (options?: {
1197
1197
  readonly [x: string]: unknown;
1198
1198
  };
1199
1199
  readonly command: string;
1200
- readonly status: "running" | "exited" | "timeout" | "killed";
1200
+ readonly status: "timeout" | "running" | "exited" | "killed";
1201
1201
  readonly time: {
1202
1202
  readonly started: number;
1203
1203
  readonly completed?: number | undefined;
@@ -1233,7 +1233,7 @@ export declare const make: (options?: {
1233
1233
  readonly [x: string]: unknown;
1234
1234
  };
1235
1235
  readonly command: string;
1236
- readonly status: "running" | "exited" | "timeout" | "killed";
1236
+ readonly status: "timeout" | "running" | "exited" | "killed";
1237
1237
  readonly time: {
1238
1238
  readonly started: number;
1239
1239
  readonly completed?: number | undefined;
@@ -25,9 +25,12 @@ export type ModelRef = {
25
25
  providerID: string;
26
26
  variant?: string;
27
27
  };
28
- export type ProviderSettings = {
29
- [x: string]: any;
28
+ export type ProviderCompaction = {
29
+ type: "summary";
30
+ } | {
31
+ type: "native";
30
32
  };
33
+ export type ProviderTransport = "http" | "websocket";
31
34
  export type AgentColor = string;
32
35
  export type PermissionEffect = "allow" | "deny" | "ask";
33
36
  export type PluginSource = {
@@ -342,30 +345,11 @@ export type FormExternalField = {
342
345
  export type FormValue = string | number | "Infinity" | "-Infinity" | "NaN" | boolean | Array<string>;
343
346
  export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
344
347
  export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens";
345
- export type ProviderCompaction = {
346
- mode: "local";
347
- } | {
348
- mode: "provider";
349
- threshold?: number;
350
- };
351
- export type ProviderTransport = "http" | "websocket";
352
348
  export type ModelCapabilities = {
353
349
  tools: boolean;
354
350
  input: Array<string>;
355
351
  output: Array<string>;
356
352
  };
357
- export type ModelVariant = {
358
- id: string;
359
- settings?: {
360
- [x: string]: any;
361
- };
362
- headers?: {
363
- [x: string]: string;
364
- };
365
- body?: {
366
- [x: string]: any;
367
- };
368
- };
369
353
  export type MoneyUSDPerMillionTokens = number;
370
354
  export type GenerateTextResponse = {
371
355
  data: {
@@ -739,14 +723,21 @@ export type V2EventServerConnected = {
739
723
  type: "server.connected";
740
724
  data: {};
741
725
  };
742
- export type ProviderRequest = {
743
- settings: ProviderSettings;
744
- headers: {
745
- [x: string]: string;
746
- };
747
- body: {
748
- [x: string]: any;
749
- };
726
+ export type ProviderSettings = {
727
+ timeout?: number | false;
728
+ chunkTimeout?: number;
729
+ compaction?: ProviderCompaction;
730
+ transport?: ProviderTransport;
731
+ } & {
732
+ [x: string]: any;
733
+ };
734
+ export type ConfigProviderSettings = {
735
+ timeout?: number | false;
736
+ chunkTimeout?: number;
737
+ compaction?: ProviderCompaction;
738
+ transport?: ProviderTransport;
739
+ } & {
740
+ [x: string]: JsonValue | null;
750
741
  };
751
742
  export type PermissionRule = {
752
743
  action: string;
@@ -2160,25 +2151,6 @@ export type ModelCompatibility = {
2160
2151
  requireAssistantAfterTool?: boolean;
2161
2152
  supportsPromptCacheKey?: boolean;
2162
2153
  };
2163
- export type ProviderInfo = {
2164
- id: string;
2165
- canonical?: string;
2166
- integrationID?: string;
2167
- name: string;
2168
- activation: "auto" | "enabled" | "disabled";
2169
- package: string;
2170
- compaction?: ProviderCompaction;
2171
- transport?: ProviderTransport;
2172
- settings?: {
2173
- [x: string]: any;
2174
- };
2175
- headers?: {
2176
- [x: string]: string;
2177
- };
2178
- body?: {
2179
- [x: string]: any;
2180
- };
2181
- };
2182
2154
  export type ModelCost = {
2183
2155
  tier?: {
2184
2156
  type: "context";
@@ -2420,6 +2392,40 @@ export type SessionInboxMove = {
2420
2392
  delivery: SessionInboxDelivery;
2421
2393
  payload: SessionInboxMovePayload;
2422
2394
  };
2395
+ export type ProviderRequest = {
2396
+ settings: ProviderSettings;
2397
+ headers: {
2398
+ [x: string]: string;
2399
+ };
2400
+ body: {
2401
+ [x: string]: any;
2402
+ };
2403
+ };
2404
+ export type ModelVariant = {
2405
+ id: string;
2406
+ settings?: ProviderSettings;
2407
+ headers?: {
2408
+ [x: string]: string;
2409
+ };
2410
+ body?: {
2411
+ [x: string]: any;
2412
+ };
2413
+ };
2414
+ export type ProviderInfo = {
2415
+ id: string;
2416
+ canonical?: string;
2417
+ integrationID?: string;
2418
+ name: string;
2419
+ activation: "auto" | "enabled" | "disabled";
2420
+ package: string;
2421
+ settings?: ProviderSettings;
2422
+ headers?: {
2423
+ [x: string]: string;
2424
+ };
2425
+ body?: {
2426
+ [x: string]: any;
2427
+ };
2428
+ };
2423
2429
  export type PermissionRuleset = Array<PermissionRule>;
2424
2430
  export type SessionRevertStaged = {
2425
2431
  id: string;
@@ -2657,6 +2663,28 @@ export type FormState = {
2657
2663
  } | {
2658
2664
  status: "cancelled";
2659
2665
  };
2666
+ export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
2667
+ export type FormReplied = {
2668
+ id: string;
2669
+ created: number;
2670
+ metadata?: {
2671
+ [x: string]: any;
2672
+ };
2673
+ type: "form.replied";
2674
+ location?: LocationRef;
2675
+ data: {
2676
+ id: string;
2677
+ sessionID: string;
2678
+ answer: FormAnswer1;
2679
+ };
2680
+ };
2681
+ export type ReferenceInfo = {
2682
+ name: string;
2683
+ path: string;
2684
+ description?: string;
2685
+ hidden?: boolean;
2686
+ source: ReferenceSource;
2687
+ };
2660
2688
  export type ModelInfo = {
2661
2689
  id: string;
2662
2690
  modelID: string;
@@ -2666,11 +2694,7 @@ export type ModelInfo = {
2666
2694
  name: string;
2667
2695
  compatibility?: ModelCompatibility;
2668
2696
  package?: string;
2669
- compaction?: ProviderCompaction;
2670
- transport?: ProviderTransport;
2671
- settings?: {
2672
- [x: string]: any;
2673
- };
2697
+ settings?: ProviderSettings;
2674
2698
  headers?: {
2675
2699
  [x: string]: string;
2676
2700
  };
@@ -2691,28 +2715,6 @@ export type ModelInfo = {
2691
2715
  output: number;
2692
2716
  };
2693
2717
  };
2694
- export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
2695
- export type FormReplied = {
2696
- id: string;
2697
- created: number;
2698
- metadata?: {
2699
- [x: string]: any;
2700
- };
2701
- type: "form.replied";
2702
- location?: LocationRef;
2703
- data: {
2704
- id: string;
2705
- sessionID: string;
2706
- answer: FormAnswer1;
2707
- };
2708
- };
2709
- export type ReferenceInfo = {
2710
- name: string;
2711
- path: string;
2712
- description?: string;
2713
- hidden?: boolean;
2714
- source: ReferenceSource;
2715
- };
2716
2718
  export type AgentInfo = {
2717
2719
  id: string;
2718
2720
  name: string;
@@ -2983,15 +2985,11 @@ export type ConfigEntry = {
2983
2985
  };
2984
2986
  providers?: {
2985
2987
  [x: string]: {
2986
- compaction?: ProviderCompaction;
2987
- transport?: ProviderTransport;
2988
2988
  canonical?: string;
2989
2989
  name?: string;
2990
2990
  env?: Array<string>;
2991
2991
  package?: string;
2992
- settings?: {
2993
- [x: string]: JsonValue;
2994
- };
2992
+ settings?: ConfigProviderSettings;
2995
2993
  headers?: {
2996
2994
  [x: string]: string;
2997
2995
  };
@@ -3000,16 +2998,12 @@ export type ConfigEntry = {
3000
2998
  };
3001
2999
  models?: {
3002
3000
  [x: string]: {
3003
- compaction?: ProviderCompaction;
3004
- transport?: ProviderTransport;
3005
3001
  modelID?: string;
3006
3002
  family?: string;
3007
3003
  name?: string;
3008
3004
  compatibility?: ModelCompatibility;
3009
3005
  package?: string;
3010
- settings?: {
3011
- [x: string]: JsonValue;
3012
- };
3006
+ settings?: ConfigProviderSettings;
3013
3007
  headers?: {
3014
3008
  [x: string]: string;
3015
3009
  };
@@ -3019,9 +3013,7 @@ export type ConfigEntry = {
3019
3013
  capabilities?: ModelCapabilities;
3020
3014
  variants?: Array<{
3021
3015
  id: string;
3022
- settings?: {
3023
- [x: string]: JsonValue;
3024
- };
3016
+ settings?: ConfigProviderSettings;
3025
3017
  headers?: {
3026
3018
  [x: string]: string;
3027
3019
  };
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-19787",
4
+ "version": "0.0.0-dev-19790",
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-19787",
61
- "@opencode/protocol": "0.0.0-dev-19787"
60
+ "@opencode/schema": "0.0.0-dev-19790",
61
+ "@opencode/protocol": "0.0.0-dev-19790"
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-19787",
77
+ "@opencode/httpapi-codegen": "0.0.0-dev-19790",
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",