@opencode-ai/client 0.0.0-next-15016 → 0.0.0-next-15017

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.
@@ -406,16 +406,12 @@ export declare function make(options: ClientOptions): {
406
406
  };
407
407
  readonly content: ReadonlyArray<{
408
408
  readonly type: "text";
409
- readonly id: string;
410
409
  readonly text: string;
411
410
  } | {
412
411
  readonly type: "reasoning";
413
- readonly id: string;
414
412
  readonly text: string;
415
- readonly providerMetadata?: {
416
- readonly [x: string]: {
417
- readonly [x: string]: import("./types").JsonValue;
418
- };
413
+ readonly state?: {
414
+ readonly [x: string]: import("./types").JsonValue;
419
415
  };
420
416
  readonly time?: {
421
417
  readonly created: number;
@@ -425,18 +421,12 @@ export declare function make(options: ClientOptions): {
425
421
  readonly type: "tool";
426
422
  readonly id: string;
427
423
  readonly name: string;
428
- readonly provider?: {
429
- readonly executed: boolean;
430
- readonly metadata?: {
431
- readonly [x: string]: {
432
- readonly [x: string]: import("./types").JsonValue;
433
- };
434
- };
435
- readonly resultMetadata?: {
436
- readonly [x: string]: {
437
- readonly [x: string]: import("./types").JsonValue;
438
- };
439
- };
424
+ readonly executed?: boolean;
425
+ readonly providerState?: {
426
+ readonly [x: string]: import("./types").JsonValue;
427
+ };
428
+ readonly providerResultState?: {
429
+ readonly [x: string]: import("./types").JsonValue;
440
430
  };
441
431
  readonly state: {
442
432
  readonly status: "pending";
@@ -512,7 +502,7 @@ export declare function make(options: ClientOptions): {
512
502
  readonly [x: string]: import("./types").JsonValue;
513
503
  };
514
504
  readonly error: {
515
- readonly type: "unknown";
505
+ readonly type: string;
516
506
  readonly message: string;
517
507
  };
518
508
  readonly result?: import("./types").JsonValue;
@@ -529,7 +519,7 @@ export declare function make(options: ClientOptions): {
529
519
  readonly end?: string;
530
520
  readonly files?: ReadonlyArray<string>;
531
521
  };
532
- readonly finish?: string;
522
+ readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
533
523
  readonly cost?: number;
534
524
  readonly tokens?: {
535
525
  readonly input: number;
@@ -541,9 +531,17 @@ export declare function make(options: ClientOptions): {
541
531
  };
542
532
  };
543
533
  readonly error?: {
544
- readonly type: "unknown";
534
+ readonly type: string;
545
535
  readonly message: string;
546
536
  };
537
+ readonly retry?: {
538
+ readonly attempt: number;
539
+ readonly at: number;
540
+ readonly error: {
541
+ readonly type: string;
542
+ readonly message: string;
543
+ };
544
+ };
547
545
  } | {
548
546
  readonly type: "compaction";
549
547
  readonly reason: "auto" | "manual";
@@ -718,16 +716,12 @@ export declare function make(options: ClientOptions): {
718
716
  };
719
717
  readonly content: ReadonlyArray<{
720
718
  readonly type: "text";
721
- readonly id: string;
722
719
  readonly text: string;
723
720
  } | {
724
721
  readonly type: "reasoning";
725
- readonly id: string;
726
722
  readonly text: string;
727
- readonly providerMetadata?: {
728
- readonly [x: string]: {
729
- readonly [x: string]: import("./types").JsonValue;
730
- };
723
+ readonly state?: {
724
+ readonly [x: string]: import("./types").JsonValue;
731
725
  };
732
726
  readonly time?: {
733
727
  readonly created: number;
@@ -737,18 +731,12 @@ export declare function make(options: ClientOptions): {
737
731
  readonly type: "tool";
738
732
  readonly id: string;
739
733
  readonly name: string;
740
- readonly provider?: {
741
- readonly executed: boolean;
742
- readonly metadata?: {
743
- readonly [x: string]: {
744
- readonly [x: string]: import("./types").JsonValue;
745
- };
746
- };
747
- readonly resultMetadata?: {
748
- readonly [x: string]: {
749
- readonly [x: string]: import("./types").JsonValue;
750
- };
751
- };
734
+ readonly executed?: boolean;
735
+ readonly providerState?: {
736
+ readonly [x: string]: import("./types").JsonValue;
737
+ };
738
+ readonly providerResultState?: {
739
+ readonly [x: string]: import("./types").JsonValue;
752
740
  };
753
741
  readonly state: {
754
742
  readonly status: "pending";
@@ -824,7 +812,7 @@ export declare function make(options: ClientOptions): {
824
812
  readonly [x: string]: import("./types").JsonValue;
825
813
  };
826
814
  readonly error: {
827
- readonly type: "unknown";
815
+ readonly type: string;
828
816
  readonly message: string;
829
817
  };
830
818
  readonly result?: import("./types").JsonValue;
@@ -841,7 +829,7 @@ export declare function make(options: ClientOptions): {
841
829
  readonly end?: string;
842
830
  readonly files?: ReadonlyArray<string>;
843
831
  };
844
- readonly finish?: string;
832
+ readonly finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
845
833
  readonly cost?: number;
846
834
  readonly tokens?: {
847
835
  readonly input: number;
@@ -853,9 +841,17 @@ export declare function make(options: ClientOptions): {
853
841
  };
854
842
  };
855
843
  readonly error?: {
856
- readonly type: "unknown";
844
+ readonly type: string;
857
845
  readonly message: string;
858
846
  };
847
+ readonly retry?: {
848
+ readonly attempt: number;
849
+ readonly at: number;
850
+ readonly error: {
851
+ readonly type: string;
852
+ readonly message: string;
853
+ };
854
+ };
859
855
  } | {
860
856
  readonly type: "compaction";
861
857
  readonly reason: "auto" | "manual";