@opencode-ai/sdk 0.0.0-next-15298 → 0.0.0-next-15303

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.
@@ -616,6 +616,7 @@ export type GlobalEvent = {
616
616
  properties: {
617
617
  sessionID: string;
618
618
  parentID: string;
619
+ parentSeq: number;
619
620
  from?: string;
620
621
  };
621
622
  } | {
@@ -664,7 +665,9 @@ export type GlobalEvent = {
664
665
  type: "session.instructions.updated";
665
666
  properties: {
666
667
  sessionID: string;
667
- text: string;
668
+ delta: {
669
+ [key: string]: string | "removed";
670
+ };
668
671
  };
669
672
  } | {
670
673
  id: string;
@@ -2339,6 +2342,12 @@ export type UnknownError1 = {
2339
2342
  message: string;
2340
2343
  ref?: string;
2341
2344
  };
2345
+ export type InstructionEntryValueTooLargeError = {
2346
+ _tag: "InstructionEntryValueTooLargeError";
2347
+ actualBytes: number;
2348
+ maxBytes: number;
2349
+ message: string;
2350
+ };
2342
2351
  export type Shell1 = {
2343
2352
  id: string;
2344
2353
  status: "running" | "exited" | "timeout" | "killed";
@@ -3008,13 +3017,14 @@ export type SyncEventSessionForked = {
3008
3017
  type: "sync";
3009
3018
  id: string;
3010
3019
  syncEvent: {
3011
- type: "session.forked.1";
3020
+ type: "session.forked.2";
3012
3021
  id: string;
3013
3022
  seq: number;
3014
3023
  aggregateID: string;
3015
3024
  data: {
3016
3025
  sessionID: string;
3017
3026
  parentID: string;
3027
+ parentSeq: number;
3018
3028
  from?: string;
3019
3029
  };
3020
3030
  };
@@ -3106,13 +3116,15 @@ export type SyncEventSessionInstructionsUpdated = {
3106
3116
  type: "sync";
3107
3117
  id: string;
3108
3118
  syncEvent: {
3109
- type: "session.instructions.updated.1";
3119
+ type: "session.instructions.updated.2";
3110
3120
  id: string;
3111
3121
  seq: number;
3112
3122
  aggregateID: string;
3113
3123
  data: {
3114
3124
  sessionID: string;
3115
- text: string;
3125
+ delta: {
3126
+ [key: string]: string | "removed";
3127
+ };
3116
3128
  };
3117
3129
  };
3118
3130
  };
@@ -3989,12 +4001,13 @@ export type SessionForked = {
3989
4001
  durable: {
3990
4002
  aggregateID: string;
3991
4003
  seq: number;
3992
- version: 1;
4004
+ version: 2;
3993
4005
  };
3994
4006
  location?: LocationRef;
3995
4007
  data: {
3996
4008
  sessionID: string;
3997
4009
  parentID: string;
4010
+ parentSeq: number;
3998
4011
  from?: string;
3999
4012
  };
4000
4013
  };
@@ -4115,12 +4128,14 @@ export type SessionInstructionsUpdated = {
4115
4128
  durable: {
4116
4129
  aggregateID: string;
4117
4130
  seq: number;
4118
- version: 1;
4131
+ version: 2;
4119
4132
  };
4120
4133
  location?: LocationRef;
4121
4134
  data: {
4122
4135
  sessionID: string;
4123
- text: string;
4136
+ delta: {
4137
+ [key: string]: string | "removed";
4138
+ };
4124
4139
  };
4125
4140
  };
4126
4141
  export type SessionSynthetic = {
@@ -6049,6 +6064,7 @@ export type EventSessionForked = {
6049
6064
  properties: {
6050
6065
  sessionID: string;
6051
6066
  parentID: string;
6067
+ parentSeq: number;
6052
6068
  from?: string;
6053
6069
  };
6054
6070
  };
@@ -6104,7 +6120,9 @@ export type EventSessionInstructionsUpdated = {
6104
6120
  type: "session.instructions.updated";
6105
6121
  properties: {
6106
6122
  sessionID: string;
6107
- text: string;
6123
+ delta: {
6124
+ [key: string]: string | "removed";
6125
+ };
6108
6126
  };
6109
6127
  };
6110
6128
  export type EventSessionSynthetic = {
@@ -7689,12 +7707,13 @@ export type SessionForkedV2 = {
7689
7707
  durable: {
7690
7708
  aggregateID: string;
7691
7709
  seq: number;
7692
- version: 1;
7710
+ version: 2;
7693
7711
  };
7694
7712
  location?: LocationRefV2;
7695
7713
  data: {
7696
7714
  sessionID: string;
7697
7715
  parentID: string;
7716
+ parentSeq: number;
7698
7717
  from?: string;
7699
7718
  };
7700
7719
  };
@@ -7840,12 +7859,14 @@ export type SessionInstructionsUpdatedV2 = {
7840
7859
  durable: {
7841
7860
  aggregateID: string;
7842
7861
  seq: number;
7843
- version: 1;
7862
+ version: 2;
7844
7863
  };
7845
7864
  location?: LocationRefV2;
7846
7865
  data: {
7847
7866
  sessionID: string;
7848
- text: string;
7867
+ delta: {
7868
+ [key: string]: string | "removed";
7869
+ };
7849
7870
  };
7850
7871
  };
7851
7872
  export type SessionSyntheticV2 = {
@@ -13862,6 +13883,10 @@ export type V2SessionInstructionsEntryPutErrors = {
13862
13883
  * SessionNotFoundError
13863
13884
  */
13864
13885
  404: SessionNotFoundError;
13886
+ /**
13887
+ * InstructionEntryValueTooLargeError
13888
+ */
13889
+ 413: InstructionEntryValueTooLargeError;
13865
13890
  };
13866
13891
  export type V2SessionInstructionsEntryPutError = V2SessionInstructionsEntryPutErrors[keyof V2SessionInstructionsEntryPutErrors];
13867
13892
  export type V2SessionInstructionsEntryPutResponses = {
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.0.0-next-15298",
4
+ "version": "0.0.0-next-15303",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {