@opencode-ai/sdk 0.9.8 → 0.9.10

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.
@@ -609,6 +609,9 @@ export type TextPart = {
609
609
  type: "text";
610
610
  text: string;
611
611
  synthetic?: boolean;
612
+ metadata?: {
613
+ [key: string]: unknown;
614
+ };
612
615
  time?: {
613
616
  start: number;
614
617
  end?: number;
@@ -720,6 +723,9 @@ export type ToolPart = {
720
723
  callID: string;
721
724
  tool: string;
722
725
  state: ToolState;
726
+ metadata?: {
727
+ [key: string]: unknown;
728
+ };
723
729
  };
724
730
  export type StepStartPart = {
725
731
  id: string;
@@ -776,6 +782,9 @@ export type TextPartInput = {
776
782
  type: "text";
777
783
  text: string;
778
784
  synthetic?: boolean;
785
+ metadata?: {
786
+ [key: string]: unknown;
787
+ };
779
788
  time?: {
780
789
  start: number;
781
790
  end?: number;
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": "0.9.8",
4
+ "version": "0.9.10",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit"