@camstack/system 1.2.357 → 1.2.358
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-runner.js +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/auth/user-manager.d.ts +43 -2
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +2 -2
- package/dist/builtins/autotrack/index.mjs +2 -2
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +8 -8
- package/dist/builtins/composer/composer.addon.mjs +8 -8
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +9 -9
- package/dist/builtins/device-manager/device-manager.addon.mjs +9 -9
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/admin-account-boot.d.ts +27 -0
- package/dist/builtins/local-auth/auth-schema.d.ts +3 -2
- package/dist/builtins/local-auth/local-auth.addon.js +281 -8
- package/dist/builtins/local-auth/local-auth.addon.mjs +291 -22
- package/dist/builtins/local-network/local-network.addon.d.ts +19 -0
- package/dist/builtins/local-network/local-network.addon.js +32 -2
- package/dist/builtins/local-network/local-network.addon.mjs +32 -2
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{child-cap-dispatch-wbIQJctP.js → child-cap-dispatch-BWk99kmA.js} +2 -2
- package/dist/{child-cap-dispatch-BcRHQBKW.mjs → child-cap-dispatch-C2dFiu87.mjs} +2 -2
- package/dist/{composition-sources-CeO0K2cl.js → composition-sources-BaHPH661.js} +1 -1
- package/dist/{composition-sources-BBfqepyT.mjs → composition-sources-D8Hapyav.mjs} +1 -1
- package/dist/{dist-B7WRgEZY.mjs → dist-D3bhbMY3.mjs} +321 -65
- package/dist/{dist-CFVOy8VT.js → dist-DzAHit0a.js} +332 -64
- package/dist/index.js +6 -141
- package/dist/index.mjs +4 -139
- package/dist/kernel/config-manager.d.ts +1 -1
- package/dist/kernel/config-schema.d.ts +6 -1
- package/dist/{retired-settings-keys-DKRjfz0U.mjs → retired-settings-keys-B6AFmtlO.mjs} +1 -1
- package/dist/{retired-settings-keys-CRlTzxaS.js → retired-settings-keys-CkXoPjKy.js} +1 -1
- package/package.json +3 -3
|
@@ -7867,57 +7867,15 @@ var ClipSearchStrictnessSchema = zod.z.enum([
|
|
|
7867
7867
|
"balanced",
|
|
7868
7868
|
"strict"
|
|
7869
7869
|
]);
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
id: "person",
|
|
7873
|
-
name: "Person"
|
|
7874
|
-
},
|
|
7875
|
-
{
|
|
7876
|
-
id: "vehicle",
|
|
7877
|
-
name: "Vehicle"
|
|
7878
|
-
},
|
|
7879
|
-
{
|
|
7880
|
-
id: "animal",
|
|
7881
|
-
name: "Animal"
|
|
7882
|
-
},
|
|
7883
|
-
{
|
|
7884
|
-
id: "package",
|
|
7885
|
-
name: "Package"
|
|
7886
|
-
}
|
|
7887
|
-
].map((l) => l.id));
|
|
7888
|
-
var COCO_TO_MACRO = {
|
|
7889
|
-
mapping: {
|
|
7890
|
-
person: "person",
|
|
7891
|
-
bicycle: "vehicle",
|
|
7892
|
-
car: "vehicle",
|
|
7893
|
-
motorcycle: "vehicle",
|
|
7894
|
-
airplane: "vehicle",
|
|
7895
|
-
bus: "vehicle",
|
|
7896
|
-
train: "vehicle",
|
|
7897
|
-
truck: "vehicle",
|
|
7898
|
-
boat: "vehicle",
|
|
7899
|
-
bird: "animal",
|
|
7900
|
-
cat: "animal",
|
|
7901
|
-
dog: "animal",
|
|
7902
|
-
horse: "animal",
|
|
7903
|
-
sheep: "animal",
|
|
7904
|
-
cow: "animal",
|
|
7905
|
-
elephant: "animal",
|
|
7906
|
-
bear: "animal",
|
|
7907
|
-
zebra: "animal",
|
|
7908
|
-
giraffe: "animal",
|
|
7909
|
-
suitcase: "package",
|
|
7910
|
-
backpack: "package",
|
|
7911
|
-
handbag: "package"
|
|
7912
|
-
},
|
|
7913
|
-
preserveOriginal: false
|
|
7914
|
-
};
|
|
7915
|
-
/** Steps a root detector may declare it fills. */
|
|
7916
|
-
var FILLABLE_STEP_IDS = [
|
|
7870
|
+
/** Steps whose effect a root label can BE. */
|
|
7871
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
7917
7872
|
"animal-classifier",
|
|
7918
7873
|
"vehicle-classifier",
|
|
7919
7874
|
"package-detection"
|
|
7920
7875
|
];
|
|
7876
|
+
/** Steps whose box a root detection can BE. */
|
|
7877
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
7878
|
+
[...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
|
|
7921
7879
|
var MODEL_FORMATS = [
|
|
7922
7880
|
"onnx",
|
|
7923
7881
|
"coreml",
|
|
@@ -8051,12 +8009,35 @@ var ModelLicenseRecordSchema = zod.z.object({
|
|
|
8051
8009
|
* `camstack/docs` → `/docs/detection/models`.
|
|
8052
8010
|
*/
|
|
8053
8011
|
var ModelLicenseSchema = zod.z.preprocess((value) => typeof value === "string" ? { weights: value } : value, ModelLicenseRecordSchema);
|
|
8054
|
-
/**
|
|
8055
|
-
|
|
8056
|
-
|
|
8012
|
+
/**
|
|
8013
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
8014
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
8015
|
+
*
|
|
8016
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
8017
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
8018
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
8019
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
8020
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
8021
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
8022
|
+
*/
|
|
8023
|
+
var RootStepSupplySchema = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
8024
|
+
kind: zod.z.literal("label"),
|
|
8025
|
+
stepId: zod.z.enum(LABEL_SUPPLY_STEP_IDS),
|
|
8057
8026
|
labelToEffect: zod.z.record(zod.z.string(), zod.z.string()),
|
|
8058
8027
|
uncovered: zod.z.array(zod.z.string()).readonly()
|
|
8059
|
-
})
|
|
8028
|
+
}), zod.z.object({
|
|
8029
|
+
kind: zod.z.literal("crop"),
|
|
8030
|
+
stepId: zod.z.enum(CROP_SUPPLY_STEP_IDS),
|
|
8031
|
+
rootLabels: zod.z.array(zod.z.string()).readonly(),
|
|
8032
|
+
parentMacro: zod.z.enum(["vehicle", "person"]),
|
|
8033
|
+
childClass: zod.z.enum(["plate", "face"]),
|
|
8034
|
+
/**
|
|
8035
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
8036
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
8037
|
+
* stored by an import.
|
|
8038
|
+
*/
|
|
8039
|
+
rootInputPx: zod.z.number().int().positive().optional()
|
|
8040
|
+
})]);
|
|
8060
8041
|
var ModelCatalogEntrySchema = zod.z.object({
|
|
8061
8042
|
id: zod.z.string(),
|
|
8062
8043
|
name: zod.z.string(),
|
|
@@ -8183,15 +8164,15 @@ var ModelCatalogEntrySchema = zod.z.object({
|
|
|
8183
8164
|
*/
|
|
8184
8165
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
8185
8166
|
/**
|
|
8186
|
-
* The pipeline steps this ROOT detector
|
|
8187
|
-
* its labels name
|
|
8188
|
-
*
|
|
8189
|
-
* labelmap by `
|
|
8190
|
-
*
|
|
8191
|
-
*
|
|
8192
|
-
* `
|
|
8167
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
8168
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
8169
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
8170
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
8171
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
8172
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
8173
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
8193
8174
|
*/
|
|
8194
|
-
|
|
8175
|
+
suppliesSteps: zod.z.array(RootStepSupplySchema).readonly().optional(),
|
|
8195
8176
|
/**
|
|
8196
8177
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
8197
8178
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
@@ -12298,7 +12279,7 @@ function unavailableFor(tf, role, mode, cap, at) {
|
|
|
12298
12279
|
};
|
|
12299
12280
|
return {
|
|
12300
12281
|
ok: false,
|
|
12301
|
-
problem: problem("not-replaceable", at, `\`${cap}.${tf.path}\` reads a source but can say neither null nor 'unknown', and an ADDED capability has no native reading to fall back to
|
|
12282
|
+
problem: problem("not-replaceable", at, `\`${cap}.${tf.path}\` reads a source but can say neither null nor 'unknown', and an ADDED capability has no native reading to fall back to`)
|
|
12302
12283
|
};
|
|
12303
12284
|
}
|
|
12304
12285
|
/** Item fields the composer writes itself, with the value it writes. */
|
|
@@ -17197,6 +17178,131 @@ var filesystemBrowseCapability = {
|
|
|
17197
17178
|
})
|
|
17198
17179
|
}
|
|
17199
17180
|
};
|
|
17181
|
+
var IPV4_LITERAL = /^\d{1,3}(?:\.\d{1,3}){3}$/;
|
|
17182
|
+
function hostnameOf(baseUrl) {
|
|
17183
|
+
try {
|
|
17184
|
+
const host = new URL(baseUrl).hostname;
|
|
17185
|
+
return host.length > 0 ? host : null;
|
|
17186
|
+
} catch {
|
|
17187
|
+
return null;
|
|
17188
|
+
}
|
|
17189
|
+
}
|
|
17190
|
+
function isMesh(endpoint) {
|
|
17191
|
+
return endpoint.kind === "public" && endpoint.interfaceKind === "vpn";
|
|
17192
|
+
}
|
|
17193
|
+
function isTunnel(endpoint) {
|
|
17194
|
+
return endpoint.kind === "public" && endpoint.interfaceKind === "public";
|
|
17195
|
+
}
|
|
17196
|
+
function isPlausibleLan(endpoint) {
|
|
17197
|
+
return (endpoint.kind === "lan-ipv4" || endpoint.kind === "lan-ipv6") && endpoint.plausible;
|
|
17198
|
+
}
|
|
17199
|
+
function isLanIpv4Literal(endpoint) {
|
|
17200
|
+
if (endpoint.kind !== "lan-ipv4" || !endpoint.plausible) return false;
|
|
17201
|
+
const host = hostnameOf(endpoint.baseUrl);
|
|
17202
|
+
return host !== null && IPV4_LITERAL.test(host);
|
|
17203
|
+
}
|
|
17204
|
+
/** Lower = better; `null` = never this audience's answer. */
|
|
17205
|
+
function rankFor(audience, endpoint) {
|
|
17206
|
+
if (endpoint.kind === "loopback" || endpoint.kind === "app-link") return null;
|
|
17207
|
+
if (hostnameOf(endpoint.baseUrl) === null) return null;
|
|
17208
|
+
if (audience === "cluster") {
|
|
17209
|
+
if (isLanIpv4Literal(endpoint)) return 0;
|
|
17210
|
+
if (isPlausibleLan(endpoint)) return 1;
|
|
17211
|
+
if (isMesh(endpoint)) return 2;
|
|
17212
|
+
return null;
|
|
17213
|
+
}
|
|
17214
|
+
if (isTunnel(endpoint)) return 0;
|
|
17215
|
+
if (isMesh(endpoint)) return 1;
|
|
17216
|
+
if (isLanIpv4Literal(endpoint)) return 2;
|
|
17217
|
+
if (isPlausibleLan(endpoint)) return 3;
|
|
17218
|
+
return null;
|
|
17219
|
+
}
|
|
17220
|
+
var LOOPBACK_HOSTS = new Set([
|
|
17221
|
+
"localhost",
|
|
17222
|
+
"0.0.0.0",
|
|
17223
|
+
"::1",
|
|
17224
|
+
"[::1]",
|
|
17225
|
+
"::",
|
|
17226
|
+
"[::]"
|
|
17227
|
+
]);
|
|
17228
|
+
function isLoopbackHost(hostname) {
|
|
17229
|
+
const h = hostname.toLowerCase();
|
|
17230
|
+
if (LOOPBACK_HOSTS.has(h) || h.endsWith(".localhost")) return true;
|
|
17231
|
+
return /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(h);
|
|
17232
|
+
}
|
|
17233
|
+
/**
|
|
17234
|
+
* Validate an operator-typed override: an http(s) URL with a host, no
|
|
17235
|
+
* credentials, no path, and never loopback (it would name whoever dials it).
|
|
17236
|
+
* Answers the normalised origin (`scheme://host[:port]`).
|
|
17237
|
+
*/
|
|
17238
|
+
function validateHubAddressOverride(raw) {
|
|
17239
|
+
const trimmed = raw.trim();
|
|
17240
|
+
if (trimmed === "") return {
|
|
17241
|
+
ok: false,
|
|
17242
|
+
reason: "Enter an address, e.g. https://192.168.1.50:4443."
|
|
17243
|
+
};
|
|
17244
|
+
let parsed;
|
|
17245
|
+
try {
|
|
17246
|
+
parsed = new URL(trimmed);
|
|
17247
|
+
} catch {
|
|
17248
|
+
return {
|
|
17249
|
+
ok: false,
|
|
17250
|
+
reason: "Not a URL — include http:// or https://."
|
|
17251
|
+
};
|
|
17252
|
+
}
|
|
17253
|
+
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return {
|
|
17254
|
+
ok: false,
|
|
17255
|
+
reason: "Use an http:// or https:// address."
|
|
17256
|
+
};
|
|
17257
|
+
if (parsed.username !== "" || parsed.password !== "") return {
|
|
17258
|
+
ok: false,
|
|
17259
|
+
reason: "The address must not carry a user name or password."
|
|
17260
|
+
};
|
|
17261
|
+
if (parsed.hostname === "") return {
|
|
17262
|
+
ok: false,
|
|
17263
|
+
reason: "The address has no host."
|
|
17264
|
+
};
|
|
17265
|
+
if (isLoopbackHost(parsed.hostname)) return {
|
|
17266
|
+
ok: false,
|
|
17267
|
+
reason: "A loopback address names whoever dials it, never this hub — use an address other machines reach."
|
|
17268
|
+
};
|
|
17269
|
+
if (parsed.pathname !== "/" || parsed.search !== "" || parsed.hash !== "") return {
|
|
17270
|
+
ok: false,
|
|
17271
|
+
reason: "Enter only the address (scheme, host and port), without a path."
|
|
17272
|
+
};
|
|
17273
|
+
return {
|
|
17274
|
+
ok: true,
|
|
17275
|
+
baseUrl: parsed.origin
|
|
17276
|
+
};
|
|
17277
|
+
}
|
|
17278
|
+
/** {@link pickHubBaseUrl}, saying where the answer came from. */
|
|
17279
|
+
function resolveHubAddress(endpoints, audience, override) {
|
|
17280
|
+
if (override !== null && override !== "") {
|
|
17281
|
+
const check = validateHubAddressOverride(override);
|
|
17282
|
+
if (check.ok) return {
|
|
17283
|
+
override,
|
|
17284
|
+
resolved: check.baseUrl,
|
|
17285
|
+
source: "override"
|
|
17286
|
+
};
|
|
17287
|
+
}
|
|
17288
|
+
const auto = pickFromPalette(endpoints, audience);
|
|
17289
|
+
return {
|
|
17290
|
+
override: override === null || override === "" ? null : override,
|
|
17291
|
+
resolved: auto,
|
|
17292
|
+
source: auto === null ? "none" : "auto"
|
|
17293
|
+
};
|
|
17294
|
+
}
|
|
17295
|
+
function pickFromPalette(endpoints, audience) {
|
|
17296
|
+
const best = endpoints.flatMap((endpoint) => {
|
|
17297
|
+
const rank = rankFor(audience, endpoint);
|
|
17298
|
+
return rank === null ? [] : [{
|
|
17299
|
+
rank,
|
|
17300
|
+
priority: endpoint.priority,
|
|
17301
|
+
endpoint
|
|
17302
|
+
}];
|
|
17303
|
+
}).toSorted((a, b) => a.rank - b.rank || a.priority - b.priority)[0];
|
|
17304
|
+
return best === void 0 ? null : best.endpoint.baseUrl.replace(/\/+$/, "");
|
|
17305
|
+
}
|
|
17200
17306
|
/**
|
|
17201
17307
|
* Transport bounds for AI capability methods.
|
|
17202
17308
|
*
|
|
@@ -19280,6 +19386,51 @@ var notificationOutputCapability = {
|
|
|
19280
19386
|
})
|
|
19281
19387
|
}
|
|
19282
19388
|
};
|
|
19389
|
+
new Set([
|
|
19390
|
+
{
|
|
19391
|
+
id: "person",
|
|
19392
|
+
name: "Person"
|
|
19393
|
+
},
|
|
19394
|
+
{
|
|
19395
|
+
id: "vehicle",
|
|
19396
|
+
name: "Vehicle"
|
|
19397
|
+
},
|
|
19398
|
+
{
|
|
19399
|
+
id: "animal",
|
|
19400
|
+
name: "Animal"
|
|
19401
|
+
},
|
|
19402
|
+
{
|
|
19403
|
+
id: "package",
|
|
19404
|
+
name: "Package"
|
|
19405
|
+
}
|
|
19406
|
+
].map((l) => l.id));
|
|
19407
|
+
var COCO_TO_MACRO = {
|
|
19408
|
+
mapping: {
|
|
19409
|
+
person: "person",
|
|
19410
|
+
bicycle: "vehicle",
|
|
19411
|
+
car: "vehicle",
|
|
19412
|
+
motorcycle: "vehicle",
|
|
19413
|
+
airplane: "vehicle",
|
|
19414
|
+
bus: "vehicle",
|
|
19415
|
+
train: "vehicle",
|
|
19416
|
+
truck: "vehicle",
|
|
19417
|
+
boat: "vehicle",
|
|
19418
|
+
bird: "animal",
|
|
19419
|
+
cat: "animal",
|
|
19420
|
+
dog: "animal",
|
|
19421
|
+
horse: "animal",
|
|
19422
|
+
sheep: "animal",
|
|
19423
|
+
cow: "animal",
|
|
19424
|
+
elephant: "animal",
|
|
19425
|
+
bear: "animal",
|
|
19426
|
+
zebra: "animal",
|
|
19427
|
+
giraffe: "animal",
|
|
19428
|
+
suitcase: "package",
|
|
19429
|
+
backpack: "package",
|
|
19430
|
+
handbag: "package"
|
|
19431
|
+
},
|
|
19432
|
+
preserveOriginal: false
|
|
19433
|
+
};
|
|
19283
19434
|
var AUDIO_MACRO_LABELS = [
|
|
19284
19435
|
{
|
|
19285
19436
|
id: "speech",
|
|
@@ -25513,6 +25664,34 @@ var pipelineAnalyticsCapability = {
|
|
|
25513
25664
|
}
|
|
25514
25665
|
};
|
|
25515
25666
|
/**
|
|
25667
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
25668
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
25669
|
+
*/
|
|
25670
|
+
var SuppliedRootOutputSchema = zod.z.object({
|
|
25671
|
+
stepId: zod.z.string(),
|
|
25672
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
25673
|
+
modelId: zod.z.string(),
|
|
25674
|
+
detections: zod.z.array(zod.z.object({
|
|
25675
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
25676
|
+
bbox: zod.z.tuple([
|
|
25677
|
+
zod.z.number(),
|
|
25678
|
+
zod.z.number(),
|
|
25679
|
+
zod.z.number(),
|
|
25680
|
+
zod.z.number()
|
|
25681
|
+
]),
|
|
25682
|
+
score: zod.z.number(),
|
|
25683
|
+
/**
|
|
25684
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
25685
|
+
* detector already re-found inside a root face box (D730), so its
|
|
25686
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
25687
|
+
*/
|
|
25688
|
+
landmarks: zod.z.array(zod.z.object({
|
|
25689
|
+
x: zod.z.number(),
|
|
25690
|
+
y: zod.z.number()
|
|
25691
|
+
})).optional()
|
|
25692
|
+
})).min(1)
|
|
25693
|
+
});
|
|
25694
|
+
/**
|
|
25516
25695
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
25517
25696
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
25518
25697
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -25644,7 +25823,7 @@ var PipelineModelOptionSchema = zod.z.object({
|
|
|
25644
25823
|
legacy: zod.z.boolean().optional(),
|
|
25645
25824
|
provider: ModelProviderIdSchema.optional(),
|
|
25646
25825
|
defaultConfidence: zod.z.number().optional(),
|
|
25647
|
-
|
|
25826
|
+
suppliesSteps: zod.z.array(RootStepSupplySchema).readonly().optional()
|
|
25648
25827
|
});
|
|
25649
25828
|
var ConfigFieldBridge = zod.z.custom();
|
|
25650
25829
|
var PipelineAddonSchemaSchema = zod.z.object({
|
|
@@ -26048,7 +26227,16 @@ var pipelineExecutorCapability = {
|
|
|
26048
26227
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
26049
26228
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
26050
26229
|
*/
|
|
26051
|
-
replay: zod.z.literal(true).optional()
|
|
26230
|
+
replay: zod.z.literal(true).optional(),
|
|
26231
|
+
/**
|
|
26232
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
26233
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
26234
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
26235
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
26236
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
26237
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
26238
|
+
*/
|
|
26239
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
26052
26240
|
}), PipelineRunResultBridge, { kind: "mutation" }),
|
|
26053
26241
|
/**
|
|
26054
26242
|
* Batched run — N raw frames packed into one cap call. The provider
|
|
@@ -27361,7 +27549,22 @@ var pipelineRunnerCapability = {
|
|
|
27361
27549
|
*/
|
|
27362
27550
|
cropJpeg: zod.z.string().optional(),
|
|
27363
27551
|
parent: DetailParentSchema,
|
|
27364
|
-
steps: zod.z.array(zod.z.string()).optional()
|
|
27552
|
+
steps: zod.z.array(zod.z.string()).optional(),
|
|
27553
|
+
/**
|
|
27554
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
27555
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
27556
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
27557
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
27558
|
+
* requested step infers as before.
|
|
27559
|
+
*/
|
|
27560
|
+
supplied: zod.z.object({
|
|
27561
|
+
stepId: zod.z.string(),
|
|
27562
|
+
modelId: zod.z.string(),
|
|
27563
|
+
boxes: zod.z.array(zod.z.object({
|
|
27564
|
+
bbox: NativeCropBboxSchema,
|
|
27565
|
+
score: zod.z.number()
|
|
27566
|
+
})).min(1)
|
|
27567
|
+
}).optional()
|
|
27365
27568
|
}), zod.z.object({ details: zod.z.array(DetailResultSchema) }).nullable(), { kind: "mutation" }),
|
|
27366
27569
|
/**
|
|
27367
27570
|
* Run ONE enrichment step against caller-supplied pixels, with NO camera
|
|
@@ -36416,6 +36619,27 @@ var ViewerEndpointsSchema = zod.z.object({
|
|
|
36416
36619
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
36417
36620
|
resolved: zod.z.array(zod.z.string()).readonly()
|
|
36418
36621
|
});
|
|
36622
|
+
/**
|
|
36623
|
+
* One audience's hub address (see `hub-address.ts`): the operator's stored
|
|
36624
|
+
* override, the address in use, and where it came from.
|
|
36625
|
+
*/
|
|
36626
|
+
var HubAddressSnapshotSchema = zod.z.object({
|
|
36627
|
+
/** The operator's override, or null for automatic. */
|
|
36628
|
+
override: zod.z.string().nullable(),
|
|
36629
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
36630
|
+
resolved: zod.z.string().nullable(),
|
|
36631
|
+
source: zod.z.enum([
|
|
36632
|
+
"override",
|
|
36633
|
+
"auto",
|
|
36634
|
+
"none"
|
|
36635
|
+
])
|
|
36636
|
+
});
|
|
36637
|
+
var HubAddressesSchema = zod.z.object({
|
|
36638
|
+
/** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
|
|
36639
|
+
cluster: HubAddressSnapshotSchema,
|
|
36640
|
+
/** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
|
|
36641
|
+
browser: HubAddressSnapshotSchema
|
|
36642
|
+
});
|
|
36419
36643
|
var AllowedAddressesSchema = zod.z.object({
|
|
36420
36644
|
/**
|
|
36421
36645
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -36548,6 +36772,26 @@ var localNetworkCapability = {
|
|
|
36548
36772
|
*/
|
|
36549
36773
|
setViewerEndpoints: method(zod.z.object({ baseUrls: zod.z.array(zod.z.string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }),
|
|
36550
36774
|
/**
|
|
36775
|
+
* The hub's address for each audience — agents (`cluster`) and sign-in
|
|
36776
|
+
* links (`browser`) — as every consumer must read it: the operator's
|
|
36777
|
+
* override when set, else the automatic pick from this cap's palette,
|
|
36778
|
+
* never loopback. The ONE answer to "at which address is this hub
|
|
36779
|
+
* reached?"; there is no environment variable for it.
|
|
36780
|
+
*/
|
|
36781
|
+
getHubAddresses: method(zod.z.void(), HubAddressesSchema),
|
|
36782
|
+
/**
|
|
36783
|
+
* Set or clear (`baseUrl: null`) one audience's override. Validated: an
|
|
36784
|
+
* http(s) origin with a host, no credentials, no path, never loopback —
|
|
36785
|
+
* an invalid value is refused with the reason, nothing is stored.
|
|
36786
|
+
*/
|
|
36787
|
+
setHubAddress: method(zod.z.object({
|
|
36788
|
+
audience: zod.z.enum(["cluster", "browser"]),
|
|
36789
|
+
baseUrl: zod.z.string().nullable()
|
|
36790
|
+
}), HubAddressesSchema, {
|
|
36791
|
+
kind: "mutation",
|
|
36792
|
+
auth: "admin"
|
|
36793
|
+
}),
|
|
36794
|
+
/**
|
|
36551
36795
|
* Read the operator's allowlist. Empty = "auto" (no filter). Used
|
|
36552
36796
|
* by the admin UI's address selector to seed its checkbox state.
|
|
36553
36797
|
*/
|
|
@@ -49660,6 +49904,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
49660
49904
|
addonId: null,
|
|
49661
49905
|
access: "view"
|
|
49662
49906
|
},
|
|
49907
|
+
"localNetwork.getHubAddresses": {
|
|
49908
|
+
capName: "local-network",
|
|
49909
|
+
capScope: "system",
|
|
49910
|
+
addonId: null,
|
|
49911
|
+
access: "view"
|
|
49912
|
+
},
|
|
49663
49913
|
"localNetwork.getNotificationEndpoint": {
|
|
49664
49914
|
capName: "local-network",
|
|
49665
49915
|
capScope: "system",
|
|
@@ -49714,6 +49964,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
49714
49964
|
addonId: null,
|
|
49715
49965
|
access: "create"
|
|
49716
49966
|
},
|
|
49967
|
+
"localNetwork.setHubAddress": {
|
|
49968
|
+
capName: "local-network",
|
|
49969
|
+
capScope: "system",
|
|
49970
|
+
addonId: null,
|
|
49971
|
+
access: "create"
|
|
49972
|
+
},
|
|
49717
49973
|
"localNetwork.setNotificationEndpoint": {
|
|
49718
49974
|
capName: "local-network",
|
|
49719
49975
|
capScope: "system",
|
|
@@ -58972,7 +59228,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
58972
59228
|
{
|
|
58973
59229
|
name: "summarySection",
|
|
58974
59230
|
label: "Summary: this section",
|
|
58975
|
-
description: "The section a per-section summary row is about
|
|
59231
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
58976
59232
|
example: "Batterie scariche",
|
|
58977
59233
|
group: "system",
|
|
58978
59234
|
families: ["rule"],
|
|
@@ -60702,6 +60958,12 @@ Object.defineProperty(exports, "resolveCoreBlockFiles", {
|
|
|
60702
60958
|
return resolveCoreBlockFiles;
|
|
60703
60959
|
}
|
|
60704
60960
|
});
|
|
60961
|
+
Object.defineProperty(exports, "resolveHubAddress", {
|
|
60962
|
+
enumerable: true,
|
|
60963
|
+
get: function() {
|
|
60964
|
+
return resolveHubAddress;
|
|
60965
|
+
}
|
|
60966
|
+
});
|
|
60705
60967
|
Object.defineProperty(exports, "resolveLocationMode", {
|
|
60706
60968
|
enumerable: true,
|
|
60707
60969
|
get: function() {
|
|
@@ -60828,6 +61090,12 @@ Object.defineProperty(exports, "validateComposition", {
|
|
|
60828
61090
|
return validateComposition;
|
|
60829
61091
|
}
|
|
60830
61092
|
});
|
|
61093
|
+
Object.defineProperty(exports, "validateHubAddressOverride", {
|
|
61094
|
+
enumerable: true,
|
|
61095
|
+
get: function() {
|
|
61096
|
+
return validateHubAddressOverride;
|
|
61097
|
+
}
|
|
61098
|
+
});
|
|
60831
61099
|
Object.defineProperty(exports, "vectorDimFromBase64", {
|
|
60832
61100
|
enumerable: true,
|
|
60833
61101
|
get: function() {
|