@camstack/addon-agent-ui 1.2.101 → 1.2.102
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.
- package/dist/addon.js +32 -3
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -20333,6 +20333,14 @@ var NativeCropResultSchema = object({
|
|
|
20333
20333
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
20334
20334
|
*/
|
|
20335
20335
|
jpeg: string().optional(),
|
|
20336
|
+
/**
|
|
20337
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
20338
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
20339
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
20340
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
20341
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
20342
|
+
*/
|
|
20343
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
20336
20344
|
width: number().int().positive(),
|
|
20337
20345
|
height: number().int().positive(),
|
|
20338
20346
|
/**
|
|
@@ -20399,7 +20407,14 @@ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
|
|
|
20399
20407
|
})]);
|
|
20400
20408
|
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20401
20409
|
var ParkedTrackFrameSchema = object({
|
|
20402
|
-
|
|
20410
|
+
/**
|
|
20411
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
20412
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
20413
|
+
* Exactly one of the two is present.
|
|
20414
|
+
*/
|
|
20415
|
+
jpeg: string().optional(),
|
|
20416
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
20417
|
+
jpegBytes: _instanceof(Uint8Array).optional(),
|
|
20403
20418
|
width: number().int().positive(),
|
|
20404
20419
|
height: number().int().positive(),
|
|
20405
20420
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -20986,6 +21001,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
20986
21001
|
bbox: NativeCropBboxSchema,
|
|
20987
21002
|
maxWidth: number().int().positive().optional(),
|
|
20988
21003
|
/**
|
|
21004
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21005
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21006
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21007
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21008
|
+
*/
|
|
21009
|
+
acceptJpegBytes: boolean().optional(),
|
|
21010
|
+
/**
|
|
20989
21011
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
20990
21012
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
20991
21013
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -21053,7 +21075,14 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
21053
21075
|
}), ParkTrackFrameResultSchema, { kind: "mutation" }), method(object({
|
|
21054
21076
|
deviceId: number(),
|
|
21055
21077
|
trackId: string(),
|
|
21056
|
-
kind: ParkedFrameKindSchema
|
|
21078
|
+
kind: ParkedFrameKindSchema,
|
|
21079
|
+
/**
|
|
21080
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
21081
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
21082
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
21083
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
21084
|
+
*/
|
|
21085
|
+
acceptJpegBytes: boolean().optional()
|
|
21057
21086
|
}), ParkedTrackFrameSchema.nullable()), method(object({
|
|
21058
21087
|
deviceId: number(),
|
|
21059
21088
|
trackId: string()
|
|
@@ -38968,7 +38997,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
38968
38997
|
capability: adminUiCapability,
|
|
38969
38998
|
provider: {
|
|
38970
38999
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
38971
|
-
getVersion: async () => ({ version: "1.2.
|
|
39000
|
+
getVersion: async () => ({ version: "1.2.102" })
|
|
38972
39001
|
}
|
|
38973
39002
|
}];
|
|
38974
39003
|
}
|