camstack 1.2.139 → 1.2.140
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.
|
@@ -28352,6 +28352,14 @@ var NativeCropResultSchema = external_exports.object({
|
|
|
28352
28352
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
28353
28353
|
*/
|
|
28354
28354
|
jpeg: external_exports.string().optional(),
|
|
28355
|
+
/**
|
|
28356
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
28357
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
28358
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
28359
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
28360
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
28361
|
+
*/
|
|
28362
|
+
jpegBytes: external_exports.instanceof(Uint8Array).optional(),
|
|
28355
28363
|
width: external_exports.number().int().positive(),
|
|
28356
28364
|
height: external_exports.number().int().positive(),
|
|
28357
28365
|
/**
|
|
@@ -28393,7 +28401,14 @@ var ParkTrackFrameResultSchema = external_exports.discriminatedUnion("parked", [
|
|
|
28393
28401
|
detail: external_exports.string().optional()
|
|
28394
28402
|
})]);
|
|
28395
28403
|
var ParkedTrackFrameSchema = external_exports.object({
|
|
28396
|
-
|
|
28404
|
+
/**
|
|
28405
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
28406
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
28407
|
+
* Exactly one of the two is present.
|
|
28408
|
+
*/
|
|
28409
|
+
jpeg: external_exports.string().optional(),
|
|
28410
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
28411
|
+
jpegBytes: external_exports.instanceof(Uint8Array).optional(),
|
|
28397
28412
|
width: external_exports.number().int().positive(),
|
|
28398
28413
|
height: external_exports.number().int().positive(),
|
|
28399
28414
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -29049,6 +29064,13 @@ var pipelineRunnerCapability = {
|
|
|
29049
29064
|
bbox: NativeCropBboxSchema,
|
|
29050
29065
|
maxWidth: external_exports.number().int().positive().optional(),
|
|
29051
29066
|
/**
|
|
29067
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
29068
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
29069
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
29070
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
29071
|
+
*/
|
|
29072
|
+
acceptJpegBytes: external_exports.boolean().optional(),
|
|
29073
|
+
/**
|
|
29052
29074
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
29053
29075
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
29054
29076
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -29221,7 +29243,14 @@ var pipelineRunnerCapability = {
|
|
|
29221
29243
|
getParkedTrackFrame: method(external_exports.object({
|
|
29222
29244
|
deviceId: external_exports.number(),
|
|
29223
29245
|
trackId: external_exports.string(),
|
|
29224
|
-
kind: ParkedFrameKindSchema
|
|
29246
|
+
kind: ParkedFrameKindSchema,
|
|
29247
|
+
/**
|
|
29248
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
29249
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
29250
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
29251
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
29252
|
+
*/
|
|
29253
|
+
acceptJpegBytes: external_exports.boolean().optional()
|
|
29225
29254
|
}), ParkedTrackFrameSchema.nullable()),
|
|
29226
29255
|
/**
|
|
29227
29256
|
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runDiscover
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I7QELQM5.js";
|
|
5
5
|
import "./chunk-LMMQX4CK.js";
|
|
6
6
|
|
|
7
7
|
// src/cli.ts
|
|
@@ -38,7 +38,7 @@ async function runServe(args) {
|
|
|
38
38
|
...typeof values.data === "string" ? { data: values.data } : {}
|
|
39
39
|
};
|
|
40
40
|
Object.assign(process.env, buildServeEnv(opts));
|
|
41
|
-
await import("./launcher-
|
|
41
|
+
await import("./launcher-TQKCEWPV.js");
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// src/commands/agent.ts
|
|
@@ -83,7 +83,7 @@ async function runAgent(args) {
|
|
|
83
83
|
...typeof values.port === "string" ? { port: values.port } : {}
|
|
84
84
|
};
|
|
85
85
|
Object.assign(process.env, buildAgentEnv(opts));
|
|
86
|
-
await import("./launcher-
|
|
86
|
+
await import("./launcher-TQKCEWPV.js");
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// src/commands/setup.ts
|
|
@@ -1130,7 +1130,7 @@ function isUnknown(_value) {
|
|
|
1130
1130
|
return true;
|
|
1131
1131
|
}
|
|
1132
1132
|
async function resolveServerInteractive(presetNamespace) {
|
|
1133
|
-
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-
|
|
1133
|
+
const { discoverNodes, resolveHubFromDiscovered, filterHubNodes, DEFAULT_HUB_HTTPS_PORT } = await import("./discover-ELE6KHU4.js");
|
|
1134
1134
|
if (presetNamespace) {
|
|
1135
1135
|
const spinner4 = clack.spinner();
|
|
1136
1136
|
spinner4.start(`Discovering hub on LAN (namespace "${presetNamespace}")`);
|
|
@@ -23633,9 +23633,9 @@ var require_zod = __commonJS({
|
|
|
23633
23633
|
}
|
|
23634
23634
|
});
|
|
23635
23635
|
|
|
23636
|
-
// ../system/dist/dist-
|
|
23637
|
-
var
|
|
23638
|
-
"../system/dist/dist-
|
|
23636
|
+
// ../system/dist/dist-0sWJNwme.js
|
|
23637
|
+
var require_dist_0sWJNwme = __commonJS({
|
|
23638
|
+
"../system/dist/dist-0sWJNwme.js"(exports) {
|
|
23639
23639
|
"use strict";
|
|
23640
23640
|
var zod = require_zod();
|
|
23641
23641
|
var EventCategory = /* @__PURE__ */ (function(EventCategory2) {
|
|
@@ -39130,6 +39130,14 @@ var require_dist_CllKpcTd = __commonJS({
|
|
|
39130
39130
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
39131
39131
|
*/
|
|
39132
39132
|
jpeg: zod.z.string().optional(),
|
|
39133
|
+
/**
|
|
39134
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
39135
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
39136
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
39137
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
39138
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
39139
|
+
*/
|
|
39140
|
+
jpegBytes: zod.z.instanceof(Uint8Array).optional(),
|
|
39133
39141
|
width: zod.z.number().int().positive(),
|
|
39134
39142
|
height: zod.z.number().int().positive(),
|
|
39135
39143
|
/**
|
|
@@ -39171,7 +39179,14 @@ var require_dist_CllKpcTd = __commonJS({
|
|
|
39171
39179
|
detail: zod.z.string().optional()
|
|
39172
39180
|
})]);
|
|
39173
39181
|
var ParkedTrackFrameSchema = zod.z.object({
|
|
39174
|
-
|
|
39182
|
+
/**
|
|
39183
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
39184
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
39185
|
+
* Exactly one of the two is present.
|
|
39186
|
+
*/
|
|
39187
|
+
jpeg: zod.z.string().optional(),
|
|
39188
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
39189
|
+
jpegBytes: zod.z.instanceof(Uint8Array).optional(),
|
|
39175
39190
|
width: zod.z.number().int().positive(),
|
|
39176
39191
|
height: zod.z.number().int().positive(),
|
|
39177
39192
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -39654,6 +39669,13 @@ var require_dist_CllKpcTd = __commonJS({
|
|
|
39654
39669
|
bbox: NativeCropBboxSchema,
|
|
39655
39670
|
maxWidth: zod.z.number().int().positive().optional(),
|
|
39656
39671
|
/**
|
|
39672
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
39673
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
39674
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
39675
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
39676
|
+
*/
|
|
39677
|
+
acceptJpegBytes: zod.z.boolean().optional(),
|
|
39678
|
+
/**
|
|
39657
39679
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
39658
39680
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
39659
39681
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -39826,7 +39848,14 @@ var require_dist_CllKpcTd = __commonJS({
|
|
|
39826
39848
|
getParkedTrackFrame: method(zod.z.object({
|
|
39827
39849
|
deviceId: zod.z.number(),
|
|
39828
39850
|
trackId: zod.z.string(),
|
|
39829
|
-
kind: ParkedFrameKindSchema
|
|
39851
|
+
kind: ParkedFrameKindSchema,
|
|
39852
|
+
/**
|
|
39853
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
39854
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
39855
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
39856
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
39857
|
+
*/
|
|
39858
|
+
acceptJpegBytes: zod.z.boolean().optional()
|
|
39830
39859
|
}), ParkedTrackFrameSchema.nullable()),
|
|
39831
39860
|
/**
|
|
39832
39861
|
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|
|
@@ -61710,7 +61739,7 @@ var require_alerts_addon = __commonJS({
|
|
|
61710
61739
|
[Symbol.toStringTag]: { value: "Module" }
|
|
61711
61740
|
});
|
|
61712
61741
|
require_chunk_Cek0wNdY();
|
|
61713
|
-
var require_dist10 =
|
|
61742
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
61714
61743
|
function selectExpired(alerts, cutoffMs) {
|
|
61715
61744
|
return alerts.filter((a) => a.createdAt < cutoffMs).sort((a, b) => a.createdAt - b.createdAt).map((a) => a.id);
|
|
61716
61745
|
}
|
|
@@ -62529,7 +62558,7 @@ var require_console_logging = __commonJS({
|
|
|
62529
62558
|
[Symbol.toStringTag]: { value: "Module" }
|
|
62530
62559
|
});
|
|
62531
62560
|
require_chunk_Cek0wNdY();
|
|
62532
|
-
var require_dist10 =
|
|
62561
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
62533
62562
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
62534
62563
|
var LEVEL_RANK = {
|
|
62535
62564
|
debug: 0,
|
|
@@ -62623,7 +62652,7 @@ var require_core_blocks_addon = __commonJS({
|
|
|
62623
62652
|
"use strict";
|
|
62624
62653
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
62625
62654
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
62626
|
-
var require_dist10 =
|
|
62655
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
62627
62656
|
var node_crypto = __require("crypto");
|
|
62628
62657
|
var node_fs_promises = __require("fs/promises");
|
|
62629
62658
|
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
@@ -63520,11 +63549,11 @@ var require_core_blocks = __commonJS({
|
|
|
63520
63549
|
}
|
|
63521
63550
|
});
|
|
63522
63551
|
|
|
63523
|
-
// ../system/dist/retired-settings-keys-
|
|
63524
|
-
var
|
|
63525
|
-
"../system/dist/retired-settings-keys-
|
|
63552
|
+
// ../system/dist/retired-settings-keys-Dh-XMfFx.js
|
|
63553
|
+
var require_retired_settings_keys_Dh_XMfFx = __commonJS({
|
|
63554
|
+
"../system/dist/retired-settings-keys-Dh-XMfFx.js"(exports) {
|
|
63526
63555
|
"use strict";
|
|
63527
|
-
var require_dist10 =
|
|
63556
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
63528
63557
|
function settingsStoreIsAuthoritativeHere(env) {
|
|
63529
63558
|
const raw = (env["CAMSTACK_ROLE"] ?? "").trim().toLowerCase();
|
|
63530
63559
|
return raw === "" || raw === "hub";
|
|
@@ -65759,8 +65788,8 @@ var require_device_manager_addon = __commonJS({
|
|
|
65759
65788
|
[Symbol.toStringTag]: { value: "Module" }
|
|
65760
65789
|
});
|
|
65761
65790
|
require_chunk_Cek0wNdY();
|
|
65762
|
-
var require_dist10 =
|
|
65763
|
-
var require_retired_settings_keys =
|
|
65791
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
65792
|
+
var require_retired_settings_keys = require_retired_settings_keys_Dh_XMfFx();
|
|
65764
65793
|
var node_crypto = __require("crypto");
|
|
65765
65794
|
var _camstack_types_node = require_node();
|
|
65766
65795
|
var JOB_HISTORY = 20;
|
|
@@ -71385,7 +71414,7 @@ var require_hub_forwarder = __commonJS({
|
|
|
71385
71414
|
[Symbol.toStringTag]: { value: "Module" }
|
|
71386
71415
|
});
|
|
71387
71416
|
require_chunk_Cek0wNdY();
|
|
71388
|
-
var require_dist10 =
|
|
71417
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
71389
71418
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
71390
71419
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
71391
71420
|
var HubForwarderDestination = class {
|
|
@@ -71522,7 +71551,7 @@ var require_liveness_monitor_addon = __commonJS({
|
|
|
71522
71551
|
"use strict";
|
|
71523
71552
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
71524
71553
|
require_chunk_Cek0wNdY();
|
|
71525
|
-
var require_dist10 =
|
|
71554
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
71526
71555
|
var NO_DEVICES = "liveness:no-devices";
|
|
71527
71556
|
var ALL_OFFLINE = "liveness:all-devices-offline";
|
|
71528
71557
|
var NO_FOOTAGE_PREFIX = "liveness:no-footage:";
|
|
@@ -71718,7 +71747,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
71718
71747
|
[Symbol.toStringTag]: { value: "Module" }
|
|
71719
71748
|
});
|
|
71720
71749
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
71721
|
-
var require_dist10 =
|
|
71750
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
71722
71751
|
var node_crypto = __require("crypto");
|
|
71723
71752
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
71724
71753
|
var crypto$1 = __require("crypto");
|
|
@@ -79531,7 +79560,7 @@ var require_loki_logging = __commonJS({
|
|
|
79531
79560
|
[Symbol.toStringTag]: { value: "Module" }
|
|
79532
79561
|
});
|
|
79533
79562
|
require_chunk_Cek0wNdY();
|
|
79534
|
-
var require_dist10 =
|
|
79563
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
79535
79564
|
function sanitizeLabelName(raw) {
|
|
79536
79565
|
const replaced = raw.replaceAll(/[^a-zA-Z0-9_]/g, "_");
|
|
79537
79566
|
return /^[a-zA-Z_]/.test(replaced) ? replaced : `_${replaced}`;
|
|
@@ -80118,7 +80147,7 @@ var require_native_metrics_addon = __commonJS({
|
|
|
80118
80147
|
[Symbol.toStringTag]: { value: "Module" }
|
|
80119
80148
|
});
|
|
80120
80149
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
80121
|
-
var require_dist10 =
|
|
80150
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
80122
80151
|
var node_fs_promises = __require("fs/promises");
|
|
80123
80152
|
var node_fs = __require("fs");
|
|
80124
80153
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -82871,7 +82900,7 @@ var require_filesystem_storage_addon = __commonJS({
|
|
|
82871
82900
|
[Symbol.toStringTag]: { value: "Module" }
|
|
82872
82901
|
});
|
|
82873
82902
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
82874
|
-
var require_dist10 =
|
|
82903
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
82875
82904
|
var node_crypto = __require("crypto");
|
|
82876
82905
|
var node_fs_promises = __require("fs/promises");
|
|
82877
82906
|
var node_path = __require("path");
|
|
@@ -84098,8 +84127,8 @@ var require_sqlite_settings_addon = __commonJS({
|
|
|
84098
84127
|
[Symbol.toStringTag]: { value: "Module" }
|
|
84099
84128
|
});
|
|
84100
84129
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
84101
|
-
var require_dist10 =
|
|
84102
|
-
var require_retired_settings_keys =
|
|
84130
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
84131
|
+
var require_retired_settings_keys = require_retired_settings_keys_Dh_XMfFx();
|
|
84103
84132
|
var require_wal_checkpoint_policy = require_wal_checkpoint_policy_CCJZngds();
|
|
84104
84133
|
var node_crypto = __require("crypto");
|
|
84105
84134
|
var node_path = __require("path");
|
|
@@ -86766,7 +86795,7 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
86766
86795
|
[Symbol.toStringTag]: { value: "Module" }
|
|
86767
86796
|
});
|
|
86768
86797
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
86769
|
-
var require_dist10 =
|
|
86798
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
86770
86799
|
var require_hub_cap_forward = require_hub_cap_forward_DmHNjbB0();
|
|
86771
86800
|
var zod = require_zod();
|
|
86772
86801
|
var node_crypto = __require("crypto");
|
|
@@ -90416,7 +90445,7 @@ var require_system_config_addon = __commonJS({
|
|
|
90416
90445
|
[Symbol.toStringTag]: { value: "Module" }
|
|
90417
90446
|
});
|
|
90418
90447
|
require_chunk_Cek0wNdY();
|
|
90419
|
-
var require_dist10 =
|
|
90448
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
90420
90449
|
var SECTION_TITLES = {
|
|
90421
90450
|
server: "Server",
|
|
90422
90451
|
auth: "Authentication"
|
|
@@ -108477,7 +108506,7 @@ var require_winston_logging = __commonJS({
|
|
|
108477
108506
|
[Symbol.toStringTag]: { value: "Module" }
|
|
108478
108507
|
});
|
|
108479
108508
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
108480
|
-
var require_dist10 =
|
|
108509
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
108481
108510
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
108482
108511
|
var node_path = __require("path");
|
|
108483
108512
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -130540,11 +130569,11 @@ var require_manifest_system_deps_DfpwaXkh = __commonJS({
|
|
|
130540
130569
|
}
|
|
130541
130570
|
});
|
|
130542
130571
|
|
|
130543
|
-
// ../system/dist/custom-action-registry-
|
|
130544
|
-
var
|
|
130545
|
-
"../system/dist/custom-action-registry-
|
|
130572
|
+
// ../system/dist/custom-action-registry-DvVMHLfJ.js
|
|
130573
|
+
var require_custom_action_registry_DvVMHLfJ = __commonJS({
|
|
130574
|
+
"../system/dist/custom-action-registry-DvVMHLfJ.js"(exports) {
|
|
130546
130575
|
"use strict";
|
|
130547
|
-
var require_dist10 =
|
|
130576
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
130548
130577
|
var CustomActionRegistry = class {
|
|
130549
130578
|
byAddon = /* @__PURE__ */ new Map();
|
|
130550
130579
|
registerAddon(addonId, catalog, handler) {
|
|
@@ -134358,7 +134387,7 @@ var require_dist3 = __commonJS({
|
|
|
134358
134387
|
"use strict";
|
|
134359
134388
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
134360
134389
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
134361
|
-
var require_dist10 =
|
|
134390
|
+
var require_dist10 = require_dist_0sWJNwme();
|
|
134362
134391
|
var require_builtins_alerts_alerts_addon = require_alerts_addon();
|
|
134363
134392
|
require_alerts();
|
|
134364
134393
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
@@ -134387,7 +134416,7 @@ var require_dist3 = __commonJS({
|
|
|
134387
134416
|
var require_tls$1 = require_tls_BFs4PzoW();
|
|
134388
134417
|
var require_manifest_system_deps = require_manifest_system_deps_DfpwaXkh();
|
|
134389
134418
|
var require_resource_monitor = require_resource_monitor_LVE1BoLs();
|
|
134390
|
-
var require_custom_action_registry =
|
|
134419
|
+
var require_custom_action_registry = require_custom_action_registry_DvVMHLfJ();
|
|
134391
134420
|
var zod = require_zod();
|
|
134392
134421
|
var node_crypto = __require("crypto");
|
|
134393
134422
|
var _camstack_types_node = require_node();
|
|
@@ -231696,6 +231725,14 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
231696
231725
|
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
231697
231726
|
*/
|
|
231698
231727
|
jpeg: zod.z.string().optional(),
|
|
231728
|
+
/**
|
|
231729
|
+
* The SAME compressed JPEG as `jpeg`, as bytes (D462). Present instead of
|
|
231730
|
+
* `jpeg` when the request set `acceptJpegBytes`; a request that did not gets
|
|
231731
|
+
* `jpeg` exactly as before. MsgPack and the mesh leg both carry binary —
|
|
231732
|
+
* `bytes` above has crossed this boundary as a `Uint8Array` all along — so
|
|
231733
|
+
* base64 was buying nothing but a multi-megabyte string in the relay's heap.
|
|
231734
|
+
*/
|
|
231735
|
+
jpegBytes: zod.z.instanceof(Uint8Array).optional(),
|
|
231699
231736
|
width: zod.z.number().int().positive(),
|
|
231700
231737
|
height: zod.z.number().int().positive(),
|
|
231701
231738
|
/**
|
|
@@ -231737,7 +231774,14 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
231737
231774
|
detail: zod.z.string().optional()
|
|
231738
231775
|
})]);
|
|
231739
231776
|
var ParkedTrackFrameSchema = zod.z.object({
|
|
231740
|
-
|
|
231777
|
+
/**
|
|
231778
|
+
* Base64 JPEG — the pre-D462 wire. OPTIONAL since D462: a request that set
|
|
231779
|
+
* `acceptJpegBytes` is answered in `jpegBytes` and this is then absent.
|
|
231780
|
+
* Exactly one of the two is present.
|
|
231781
|
+
*/
|
|
231782
|
+
jpeg: zod.z.string().optional(),
|
|
231783
|
+
/** The same JPEG as bytes, for a caller that declared it reads them (D462). */
|
|
231784
|
+
jpegBytes: zod.z.instanceof(Uint8Array).optional(),
|
|
231741
231785
|
width: zod.z.number().int().positive(),
|
|
231742
231786
|
height: zod.z.number().int().positive(),
|
|
231743
231787
|
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
@@ -232393,6 +232437,13 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
232393
232437
|
bbox: NativeCropBboxSchema,
|
|
232394
232438
|
maxWidth: zod.z.number().int().positive().optional(),
|
|
232395
232439
|
/**
|
|
232440
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
232441
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
232442
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
232443
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
232444
|
+
*/
|
|
232445
|
+
acceptJpegBytes: zod.z.boolean().optional(),
|
|
232446
|
+
/**
|
|
232396
232447
|
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
232397
232448
|
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
232398
232449
|
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
@@ -232565,7 +232616,14 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
232565
232616
|
getParkedTrackFrame: require_sleep.method(zod.z.object({
|
|
232566
232617
|
deviceId: zod.z.number(),
|
|
232567
232618
|
trackId: zod.z.string(),
|
|
232568
|
-
kind: ParkedFrameKindSchema
|
|
232619
|
+
kind: ParkedFrameKindSchema,
|
|
232620
|
+
/**
|
|
232621
|
+
* The caller reads a `Uint8Array` (D462). When set, a JPEG answer comes
|
|
232622
|
+
* back in `jpegBytes` instead of base64 `jpeg`. Absent means the old
|
|
232623
|
+
* wire — never assume consent: a pre-D462 caller parses the field as
|
|
232624
|
+
* base64 and bytes would decode to garbage rather than fail.
|
|
232625
|
+
*/
|
|
232626
|
+
acceptJpegBytes: zod.z.boolean().optional()
|
|
232569
232627
|
}), ParkedTrackFrameSchema.nullable()),
|
|
232570
232628
|
/**
|
|
232571
232629
|
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|