@opencode-ai/schema 0.0.0-next-16828 → 0.0.0-next-16830

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.
@@ -1014,6 +1014,7 @@ export declare const SessionDurable: {
1014
1014
  }>>, never, never>;
1015
1015
  readonly data: import("effect/Schema").Struct<{
1016
1016
  readonly delta: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">, import("effect/Schema").Literal<"removed">]>>;
1017
+ readonly text: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
1017
1018
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1018
1019
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1019
1020
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -1028,6 +1029,7 @@ export declare const SessionDurable: {
1028
1029
  };
1029
1030
  data: import("effect/Schema").Struct<{
1030
1031
  readonly delta: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Union<readonly [import("effect/Schema").brand<import("effect/Schema").String, "Instruction.Hash">, import("effect/Schema").Literal<"removed">]>>;
1032
+ readonly text: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
1031
1033
  readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
1032
1034
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1033
1035
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3563,6 +3563,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3563
3563
  }>>, never, never>;
3564
3564
  readonly data: Schema.Struct<{
3565
3565
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
3566
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3566
3567
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3567
3568
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3568
3569
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -3577,6 +3578,7 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
3577
3578
  };
3578
3579
  data: Schema.Struct<{
3579
3580
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
3581
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
3580
3582
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
3581
3583
  create: () => string & import("effect/Brand").Brand<"SessionID">;
3582
3584
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -8807,6 +8809,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8807
8809
  }>>, never, never>;
8808
8810
  readonly data: Schema.Struct<{
8809
8811
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
8812
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8810
8813
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8811
8814
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8812
8815
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -8821,6 +8824,7 @@ export declare const Definitions: readonly [Schema.Struct<{
8821
8824
  };
8822
8825
  data: Schema.Struct<{
8823
8826
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
8827
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
8824
8828
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
8825
8829
  create: () => string & import("effect/Brand").Brand<"SessionID">;
8826
8830
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -1193,6 +1193,11 @@ export declare const InstructionsUpdated: Schema.Struct<{
1193
1193
  }>>, never, never>;
1194
1194
  readonly data: Schema.Struct<{
1195
1195
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
1196
+ /**
1197
+ * The rendered chronological update shown to the model, frozen at emit time.
1198
+ * Absent for the initial baseline observation and for deltas that render empty.
1199
+ */
1200
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1196
1201
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1197
1202
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1198
1203
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -1207,6 +1212,11 @@ export declare const InstructionsUpdated: Schema.Struct<{
1207
1212
  };
1208
1213
  data: Schema.Struct<{
1209
1214
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
1215
+ /**
1216
+ * The rendered chronological update shown to the model, frozen at emit time.
1217
+ * Absent for the initial baseline observation and for deltas that render empty.
1218
+ */
1219
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
1210
1220
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
1211
1221
  create: () => string & import("effect/Brand").Brand<"SessionID">;
1212
1222
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -4403,6 +4413,11 @@ export declare const Definitions: readonly [Schema.Struct<{
4403
4413
  }>>, never, never>;
4404
4414
  readonly data: Schema.Struct<{
4405
4415
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
4416
+ /**
4417
+ * The rendered chronological update shown to the model, frozen at emit time.
4418
+ * Absent for the initial baseline observation and for deltas that render empty.
4419
+ */
4420
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4406
4421
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4407
4422
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4408
4423
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -4417,6 +4432,11 @@ export declare const Definitions: readonly [Schema.Struct<{
4417
4432
  };
4418
4433
  data: Schema.Struct<{
4419
4434
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
4435
+ /**
4436
+ * The rendered chronological update shown to the model, frozen at emit time.
4437
+ * Absent for the initial baseline observation and for deltas that render empty.
4438
+ */
4439
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
4420
4440
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
4421
4441
  create: () => string & import("effect/Brand").Brand<"SessionID">;
4422
4442
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -7466,6 +7486,11 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
7466
7486
  }>>, never, never>;
7467
7487
  readonly data: Schema.Struct<{
7468
7488
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
7489
+ /**
7490
+ * The rendered chronological update shown to the model, frozen at emit time.
7491
+ * Absent for the initial baseline observation and for deltas that render empty.
7492
+ */
7493
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7469
7494
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7470
7495
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7471
7496
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -7480,6 +7505,11 @@ export declare const DurableDefinitions: readonly [...((Schema.Struct<{
7480
7505
  };
7481
7506
  data: Schema.Struct<{
7482
7507
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
7508
+ /**
7509
+ * The rendered chronological update shown to the model, frozen at emit time.
7510
+ * Absent for the initial baseline observation and for deltas that render empty.
7511
+ */
7512
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
7483
7513
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
7484
7514
  create: () => string & import("effect/Brand").Brand<"SessionID">;
7485
7515
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -10345,6 +10375,11 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
10345
10375
  }>>, never, never>;
10346
10376
  readonly data: Schema.Struct<{
10347
10377
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
10378
+ /**
10379
+ * The rendered chronological update shown to the model, frozen at emit time.
10380
+ * Absent for the initial baseline observation and for deltas that render empty.
10381
+ */
10382
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10348
10383
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10349
10384
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10350
10385
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -10359,6 +10394,11 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
10359
10394
  };
10360
10395
  data: Schema.Struct<{
10361
10396
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
10397
+ /**
10398
+ * The rendered chronological update shown to the model, frozen at emit time.
10399
+ * Absent for the initial baseline observation and for deltas that render empty.
10400
+ */
10401
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10362
10402
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
10363
10403
  create: () => string & import("effect/Brand").Brand<"SessionID">;
10364
10404
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -13291,6 +13331,11 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13291
13331
  }>>, never, never>;
13292
13332
  readonly data: Schema.Struct<{
13293
13333
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
13334
+ /**
13335
+ * The rendered chronological update shown to the model, frozen at emit time.
13336
+ * Absent for the initial baseline observation and for deltas that render empty.
13337
+ */
13338
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13294
13339
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13295
13340
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13296
13341
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -13305,6 +13350,11 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
13305
13350
  };
13306
13351
  data: Schema.Struct<{
13307
13352
  readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
13353
+ /**
13354
+ * The rendered chronological update shown to the model, frozen at emit time.
13355
+ * Absent for the initial baseline observation and for deltas that render empty.
13356
+ */
13357
+ readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
13308
13358
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
13309
13359
  create: () => string & import("effect/Brand").Brand<"SessionID">;
13310
13360
  descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
@@ -153,6 +153,11 @@ export const InstructionsUpdated = Event.durable({
153
153
  schema: {
154
154
  ...Base,
155
155
  delta: Instruction.Delta,
156
+ /**
157
+ * The rendered chronological update shown to the model, frozen at emit time.
158
+ * Absent for the initial baseline observation and for deltas that render empty.
159
+ */
160
+ text: Schema.String.pipe(optional),
156
161
  },
157
162
  });
158
163
  export const Synthetic = Event.durable({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/schema",
4
- "version": "0.0.0-next-16828",
4
+ "version": "0.0.0-next-16830",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {