@opencode/protocol 0.0.0-dev-19812 → 0.0.0-dev-19815

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.
@@ -323,6 +323,17 @@ export declare namespace Frontend {
323
323
  }
324
324
  const Color: Schema.Tuple<readonly [Schema.Number, Schema.Number, Schema.Number, Schema.Number]>;
325
325
  type Color = Schema.Schema.Type<typeof Color>;
326
+ const CapturedImage: Schema.Struct<{
327
+ readonly x: Schema.Number;
328
+ readonly y: Schema.Number;
329
+ readonly width: Schema.Number;
330
+ readonly height: Schema.Number;
331
+ readonly pixelWidth: Schema.Number;
332
+ readonly pixelHeight: Schema.Number;
333
+ readonly rgba: Schema.String;
334
+ }>;
335
+ interface CapturedImage extends Schema.Schema.Type<typeof CapturedImage> {
336
+ }
326
337
  const CapturedFrame: Schema.Struct<{
327
338
  readonly cols: Schema.Number;
328
339
  readonly rows: Schema.Number;
@@ -336,6 +347,15 @@ export declare namespace Frontend {
336
347
  readonly width: Schema.Number;
337
348
  }>>;
338
349
  }>>;
350
+ readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
351
+ readonly x: Schema.Number;
352
+ readonly y: Schema.Number;
353
+ readonly width: Schema.Number;
354
+ readonly height: Schema.Number;
355
+ readonly pixelWidth: Schema.Number;
356
+ readonly pixelHeight: Schema.Number;
357
+ readonly rgba: Schema.String;
358
+ }>>>;
339
359
  }>;
340
360
  interface CapturedFrame extends Schema.Schema.Type<typeof CapturedFrame> {
341
361
  }
@@ -1498,6 +1518,15 @@ export declare const UiRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"simulation.handshake", S
1498
1518
  readonly width: Schema.Number;
1499
1519
  }>>;
1500
1520
  }>>;
1521
+ readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1522
+ readonly x: Schema.Number;
1523
+ readonly y: Schema.Number;
1524
+ readonly width: Schema.Number;
1525
+ readonly height: Schema.Number;
1526
+ readonly pixelWidth: Schema.Number;
1527
+ readonly pixelHeight: Schema.Number;
1528
+ readonly rgba: Schema.String;
1529
+ }>>>;
1501
1530
  }>, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.matches", Schema.Struct<{
1502
1531
  readonly text: Schema.String;
1503
1532
  }>, Schema.Boolean, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.recording.finish", Schema.Void, Schema.String, typeof SimulationRequestError, never, never> | Rpc.Rpc<"ui.type", Schema.Struct<{
@@ -265,6 +265,15 @@ export var Frontend;
265
265
  })),
266
266
  });
267
267
  Frontend.Color = Schema.Tuple([Schema.Number, Schema.Number, Schema.Number, Schema.Number]);
268
+ Frontend.CapturedImage = Schema.Struct({
269
+ x: Schema.Number,
270
+ y: Schema.Number,
271
+ width: Schema.Number,
272
+ height: Schema.Number,
273
+ pixelWidth: Schema.Number,
274
+ pixelHeight: Schema.Number,
275
+ rgba: Schema.String.check(Schema.isBase64()),
276
+ });
268
277
  Frontend.CapturedFrame = Schema.Struct({
269
278
  cols: Schema.Number,
270
279
  rows: Schema.Number,
@@ -278,6 +287,7 @@ export var Frontend;
278
287
  width: Schema.Number,
279
288
  })),
280
289
  })),
290
+ images: Schema.optionalKey(Schema.Array(Frontend.CapturedImage)),
281
291
  });
282
292
  Frontend.RecordingFinish = Schema.String;
283
293
  Frontend.Matches = Schema.Boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/protocol",
4
- "version": "0.0.0-dev-19812",
4
+ "version": "0.0.0-dev-19815",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "typecheck": "tsgo --noEmit"
33
33
  },
34
34
  "dependencies": {
35
- "@opencode/schema": "0.0.0-dev-19812",
35
+ "@opencode/schema": "0.0.0-dev-19815",
36
36
  "effect": "4.0.0-rc.112"
37
37
  },
38
38
  "devDependencies": {