@camstack/addon-post-analysis 1.2.289 → 1.2.291
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/{clip-model-registry-JFtcAZEB.js → clip-model-registry-CTY5co6P.js} +472 -27
- package/dist/{clip-model-registry-g3-Yz08Y.mjs → clip-model-registry-Cudz--Ql.mjs} +472 -27
- package/dist/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +1 -1
- package/dist/pipeline-analytics/_stub.js +2 -2
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-D5OpYfsh.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CBHxwCSj.mjs} +2 -2
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-2OwTV_D2.mjs +26 -0
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DAAKQ3sC.mjs +26 -0
- package/dist/pipeline-analytics/{hostInit-BsQiXbDx.mjs → hostInit-DSKT2dE4.mjs} +2 -2
- package/dist/pipeline-analytics/index.js +322 -59
- package/dist/pipeline-analytics/index.mjs +322 -59
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CfU5NAwo.mjs +0 -26
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-r4OU_ahc.mjs +0 -26
|
@@ -10271,6 +10271,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
10271
10271
|
*/
|
|
10272
10272
|
postprocessor: custom().optional(),
|
|
10273
10273
|
/**
|
|
10274
|
+
* Per-MODEL default confidence floor. Absent ⇒ the step's
|
|
10275
|
+
* `StepDefinition.defaultConfidence` applies. A score is a property of one
|
|
10276
|
+
* model's output scale, not of the step slot it sits in: YuNet's
|
|
10277
|
+
* `sqrt(cls·obj)` is not SCRFD's score, and inheriting SCRFD's 0.5 filled the
|
|
10278
|
+
* face gallery with wheels and hands (D662, amends D645). An operator's
|
|
10279
|
+
* explicit value still wins over it. Resolved in ONE place —
|
|
10280
|
+
* `addon-pipeline/.../registry/effective-confidence.ts`.
|
|
10281
|
+
*/
|
|
10282
|
+
defaultConfidence: number().min(0).max(1).optional(),
|
|
10283
|
+
/**
|
|
10274
10284
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
10275
10285
|
* onto the canonical template) before this step runs, instead of a plain
|
|
10276
10286
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -10403,23 +10413,6 @@ var ExpressionEvalError = class extends Error {
|
|
|
10403
10413
|
this.name = "ExpressionEvalError";
|
|
10404
10414
|
}
|
|
10405
10415
|
};
|
|
10406
|
-
/**
|
|
10407
|
-
* Frozen, null-prototype builtin function table for the expression engine
|
|
10408
|
-
* (spec §4 rule 4). The table is the SOLE surface of callable functions: the
|
|
10409
|
-
* parser rejects any callee not in it, and the evaluator gates each call on an
|
|
10410
|
-
* own-property check against it.
|
|
10411
|
-
*
|
|
10412
|
-
* Because the object has a NULL prototype AND is `Object.freeze`d:
|
|
10413
|
-
* - it cannot be polluted (no `__proto__` / `constructor` write reaches it);
|
|
10414
|
-
* - a lookup for `toString` / `hasOwnProperty` / `constructor` finds NOTHING
|
|
10415
|
-
* (there is no `Object.prototype` in the chain), so those names are not
|
|
10416
|
-
* callable — they are simply "unknown function" at parse time.
|
|
10417
|
-
*
|
|
10418
|
-
* Every numeric argument is validated as a finite number and every numeric
|
|
10419
|
-
* RESULT is re-checked finite, so `/0`, `sqrt(-1)` (→ NaN) and overflow
|
|
10420
|
-
* (`pow(10,400)` → Infinity) all raise `ExpressionEvalError` and fail the link
|
|
10421
|
-
* closed rather than emitting a garbage value.
|
|
10422
|
-
*/
|
|
10423
10416
|
function asFiniteNumber(value, name, index) {
|
|
10424
10417
|
if (typeof value !== "number" || !Number.isFinite(value)) throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a finite number`);
|
|
10425
10418
|
return value;
|
|
@@ -10435,6 +10428,10 @@ function finiteResult(value, name) {
|
|
|
10435
10428
|
function allFiniteNumbers(args, name) {
|
|
10436
10429
|
return args.map((a, idx) => asFiniteNumber(a, name, idx));
|
|
10437
10430
|
}
|
|
10431
|
+
function asBoolean$1(value, name, index) {
|
|
10432
|
+
if (typeof value !== "boolean") throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a boolean`);
|
|
10433
|
+
return value;
|
|
10434
|
+
}
|
|
10438
10435
|
var INF = Number.POSITIVE_INFINITY;
|
|
10439
10436
|
var table = {
|
|
10440
10437
|
min: {
|
|
@@ -10535,6 +10532,40 @@ var table = {
|
|
|
10535
10532
|
if (from === to) return x;
|
|
10536
10533
|
throw new ExpressionEvalError("convert: unit conversion table not installed");
|
|
10537
10534
|
}
|
|
10535
|
+
},
|
|
10536
|
+
any: {
|
|
10537
|
+
minArgs: 1,
|
|
10538
|
+
maxArgs: INF,
|
|
10539
|
+
apply: (args) => args.map((a, i) => asBoolean$1(a, "any", i)).some((b) => b)
|
|
10540
|
+
},
|
|
10541
|
+
all: {
|
|
10542
|
+
minArgs: 1,
|
|
10543
|
+
maxArgs: INF,
|
|
10544
|
+
apply: (args) => args.map((a, i) => asBoolean$1(a, "all", i)).every((b) => b)
|
|
10545
|
+
},
|
|
10546
|
+
within: {
|
|
10547
|
+
minArgs: 2,
|
|
10548
|
+
maxArgs: 2,
|
|
10549
|
+
apply: (args, hooks) => {
|
|
10550
|
+
const windowMs = asFiniteNumber(args[1], "within", 1);
|
|
10551
|
+
if (windowMs < 0) throw new ExpressionEvalError("within: the window must not be negative");
|
|
10552
|
+
const at = args[0];
|
|
10553
|
+
if (at === null) return false;
|
|
10554
|
+
const ts = asFiniteNumber(at, "within", 0);
|
|
10555
|
+
const now = hooks.now;
|
|
10556
|
+
if (now === void 0 || !Number.isFinite(now)) throw new ExpressionEvalError("within: no clock was supplied to this evaluation");
|
|
10557
|
+
const inside = now - ts <= windowMs;
|
|
10558
|
+
if (inside) hooks.noteDeadline?.(ts + windowMs + 1);
|
|
10559
|
+
return inside;
|
|
10560
|
+
}
|
|
10561
|
+
},
|
|
10562
|
+
latest: {
|
|
10563
|
+
minArgs: 1,
|
|
10564
|
+
maxArgs: INF,
|
|
10565
|
+
apply: (args) => {
|
|
10566
|
+
const present = args.flatMap((a, i) => a === null ? [] : [asFiniteNumber(a, "latest", i)]);
|
|
10567
|
+
return present.length === 0 ? null : finiteResult(Math.max(...present), "latest");
|
|
10568
|
+
}
|
|
10538
10569
|
}
|
|
10539
10570
|
};
|
|
10540
10571
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -11149,7 +11180,7 @@ var AutomationActionSchema = discriminatedUnion("kind", [
|
|
|
11149
11180
|
code: string().min(1).max(2e4)
|
|
11150
11181
|
})
|
|
11151
11182
|
]);
|
|
11152
|
-
object({
|
|
11183
|
+
var AutomationRecipeSchema = object({
|
|
11153
11184
|
triggers: array(AutomationTriggerSchema),
|
|
11154
11185
|
conditions: AutomationConditionSchema.optional(),
|
|
11155
11186
|
actions: array(AutomationActionSchema)
|
|
@@ -13325,6 +13356,195 @@ var cameraStreamsCapability = {
|
|
|
13325
13356
|
function kebabToCamel(s) {
|
|
13326
13357
|
return s.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
13327
13358
|
}
|
|
13359
|
+
/** A composed device's stableId is this prefix plus the block id. */
|
|
13360
|
+
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
13361
|
+
/** Longest snippet a `code` source may carry (slice 4). */
|
|
13362
|
+
var MAX_COMPOSITION_CODE_LENGTH = 2e4;
|
|
13363
|
+
var CompositionSourceRefSchema = object({
|
|
13364
|
+
/** The owning addon; `stableId` is unique only within it. */
|
|
13365
|
+
addonId: string().min(1),
|
|
13366
|
+
stableId: string().min(1)
|
|
13367
|
+
});
|
|
13368
|
+
/** One field of one capability of one source device. */
|
|
13369
|
+
var CompositionFieldReadSchema = object({
|
|
13370
|
+
source: CompositionSourceRefSchema,
|
|
13371
|
+
cap: string().min(1),
|
|
13372
|
+
/** Dotted path into the source cap's runtime-state slice. */
|
|
13373
|
+
fieldPath: string().min(1)
|
|
13374
|
+
});
|
|
13375
|
+
/** `from`: copy one source field verbatim. It is also an expression's `from` binding. */
|
|
13376
|
+
var CompositionFromSourceSchema = CompositionFieldReadSchema.extend({ kind: literal("from") });
|
|
13377
|
+
var CompositionBindingSchema = discriminatedUnion("kind", [CompositionFromSourceSchema, object({
|
|
13378
|
+
kind: literal("literal"),
|
|
13379
|
+
value: union([
|
|
13380
|
+
string(),
|
|
13381
|
+
number(),
|
|
13382
|
+
boolean(),
|
|
13383
|
+
_null()
|
|
13384
|
+
])
|
|
13385
|
+
})]);
|
|
13386
|
+
/**
|
|
13387
|
+
* `expression`: a formula over named bindings, in the salvaged expression
|
|
13388
|
+
* engine. Validated at parse by the SAME function every other consumer runs,
|
|
13389
|
+
* so the editor and the store cannot disagree.
|
|
13390
|
+
*/
|
|
13391
|
+
var CompositionExpressionSourceSchema = object({
|
|
13392
|
+
kind: literal("expression"),
|
|
13393
|
+
expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
|
|
13394
|
+
bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), CompositionBindingSchema)
|
|
13395
|
+
}).superRefine((src, ctx) => {
|
|
13396
|
+
const err = validateExpressionSource(src);
|
|
13397
|
+
if (err !== null) ctx.addIssue({
|
|
13398
|
+
code: "custom",
|
|
13399
|
+
message: err,
|
|
13400
|
+
path: ["expr"]
|
|
13401
|
+
});
|
|
13402
|
+
});
|
|
13403
|
+
/** `code`: RESERVED for slice 4 (own runner, one-way eject). */
|
|
13404
|
+
var CompositionCodeSourceSchema = object({
|
|
13405
|
+
kind: literal("code"),
|
|
13406
|
+
code: string().min(1).max(MAX_COMPOSITION_CODE_LENGTH)
|
|
13407
|
+
});
|
|
13408
|
+
var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
13409
|
+
CompositionFromSourceSchema,
|
|
13410
|
+
CompositionExpressionSourceSchema,
|
|
13411
|
+
CompositionCodeSourceSchema
|
|
13412
|
+
]);
|
|
13413
|
+
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
13414
|
+
kind: literal("forward"),
|
|
13415
|
+
source: CompositionSourceRefSchema,
|
|
13416
|
+
cap: string().min(1),
|
|
13417
|
+
method: string().min(1)
|
|
13418
|
+
}), CompositionCodeSourceSchema]);
|
|
13419
|
+
var CompositionFeatureSchema = discriminatedUnion("kind", [object({
|
|
13420
|
+
kind: literal("fields"),
|
|
13421
|
+
cap: string().min(1),
|
|
13422
|
+
fields: record(string().min(1), CompositionFieldSourceSchema).refine((fields) => Object.keys(fields).length <= 32, { message: `at most 32 fields per capability` }),
|
|
13423
|
+
/** RESERVED for slice 3; refused by the validator when non-empty. */
|
|
13424
|
+
commands: record(string().min(1), CompositionCommandTargetSchema).optional()
|
|
13425
|
+
}), object({
|
|
13426
|
+
kind: literal("passthrough"),
|
|
13427
|
+
cap: string().min(1),
|
|
13428
|
+
source: CompositionSourceRefSchema
|
|
13429
|
+
})]);
|
|
13430
|
+
var CompositionSchema = object({
|
|
13431
|
+
target: discriminatedUnion("kind", [object({
|
|
13432
|
+
kind: literal("new"),
|
|
13433
|
+
type: _enum(DeviceType),
|
|
13434
|
+
role: _enum(DeviceRole).optional()
|
|
13435
|
+
}), object({
|
|
13436
|
+
kind: literal("existing"),
|
|
13437
|
+
device: CompositionSourceRefSchema
|
|
13438
|
+
})]),
|
|
13439
|
+
features: array(CompositionFeatureSchema).min(1).max(16)
|
|
13440
|
+
}).superRefine((composition, ctx) => {
|
|
13441
|
+
const seen = /* @__PURE__ */ new Set();
|
|
13442
|
+
composition.features.forEach((feature, index) => {
|
|
13443
|
+
if (seen.has(feature.cap)) ctx.addIssue({
|
|
13444
|
+
code: "custom",
|
|
13445
|
+
message: `capability \`${feature.cap}\` is composed twice — one feature per capability`,
|
|
13446
|
+
path: [
|
|
13447
|
+
"features",
|
|
13448
|
+
index,
|
|
13449
|
+
"cap"
|
|
13450
|
+
]
|
|
13451
|
+
});
|
|
13452
|
+
seen.add(feature.cap);
|
|
13453
|
+
});
|
|
13454
|
+
});
|
|
13455
|
+
/** One refusal, named (D391). `path` points into the composition, e.g. `features[0].fields.celsius`. */
|
|
13456
|
+
var CompositionProblemSchema = object({
|
|
13457
|
+
code: _enum([
|
|
13458
|
+
"reserved-variant",
|
|
13459
|
+
"unknown-capability",
|
|
13460
|
+
"not-composable",
|
|
13461
|
+
"wrong-device-type",
|
|
13462
|
+
"has-commands",
|
|
13463
|
+
"unknown-field",
|
|
13464
|
+
"nested-field",
|
|
13465
|
+
"missing-field",
|
|
13466
|
+
"kind-mismatch",
|
|
13467
|
+
"may-be-null",
|
|
13468
|
+
"source-missing",
|
|
13469
|
+
"source-unreadable",
|
|
13470
|
+
"source-capability-missing",
|
|
13471
|
+
"source-field-unknown",
|
|
13472
|
+
"expression-invalid",
|
|
13473
|
+
"cycle",
|
|
13474
|
+
"duplicate-target"
|
|
13475
|
+
]),
|
|
13476
|
+
path: string(),
|
|
13477
|
+
message: string()
|
|
13478
|
+
});
|
|
13479
|
+
var CompositionFieldKindSchema = _enum([
|
|
13480
|
+
"string",
|
|
13481
|
+
"number",
|
|
13482
|
+
"boolean",
|
|
13483
|
+
"enum"
|
|
13484
|
+
]);
|
|
13485
|
+
/** How a field says "unavailable": `null` when its schema allows it, else the device goes offline (D393). */
|
|
13486
|
+
var CompositionUnavailableModeSchema = _enum(["null", "offline"]);
|
|
13487
|
+
/**
|
|
13488
|
+
* `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
|
|
13489
|
+
* field of its cap changes value · `constant` reads nothing, computed once.
|
|
13490
|
+
*/
|
|
13491
|
+
var CompositionFieldRoleSchema = _enum([
|
|
13492
|
+
"derived",
|
|
13493
|
+
"clock",
|
|
13494
|
+
"constant"
|
|
13495
|
+
]);
|
|
13496
|
+
var CompositionFieldPlanSchema = object({
|
|
13497
|
+
cap: string(),
|
|
13498
|
+
path: string(),
|
|
13499
|
+
/** Index into `composition.features` this field's capability came from —
|
|
13500
|
+
* lets a source/cycle problem name its path as `features[N].fields.<path>`
|
|
13501
|
+
* (the same convention `planComposition`'s own problems already use). */
|
|
13502
|
+
featureIndex: number().int().nonnegative(),
|
|
13503
|
+
kind: CompositionFieldKindSchema,
|
|
13504
|
+
nullable: boolean(),
|
|
13505
|
+
required: boolean(),
|
|
13506
|
+
unavailable: CompositionUnavailableModeSchema,
|
|
13507
|
+
role: CompositionFieldRoleSchema,
|
|
13508
|
+
source: CompositionFieldSourceSchema,
|
|
13509
|
+
reads: array(CompositionFieldReadSchema)
|
|
13510
|
+
});
|
|
13511
|
+
var CompositionValidationSchema = object({
|
|
13512
|
+
ok: boolean(),
|
|
13513
|
+
problems: array(CompositionProblemSchema),
|
|
13514
|
+
fields: array(CompositionFieldPlanSchema)
|
|
13515
|
+
});
|
|
13516
|
+
/** Mirrors `CoreBlockStatus`, pinned by `core-blocks-source.spec.ts` (Task 11). */
|
|
13517
|
+
var CompositionRunStatusSchema = _enum([
|
|
13518
|
+
"stopped",
|
|
13519
|
+
"starting",
|
|
13520
|
+
"running",
|
|
13521
|
+
"failed"
|
|
13522
|
+
]);
|
|
13523
|
+
var CompositionFieldStateKindSchema = _enum([
|
|
13524
|
+
"fresh",
|
|
13525
|
+
"stale",
|
|
13526
|
+
"unavailable"
|
|
13527
|
+
]);
|
|
13528
|
+
var CompositionFieldStateSchema = object({
|
|
13529
|
+
cap: string(),
|
|
13530
|
+
path: string(),
|
|
13531
|
+
state: CompositionFieldStateKindSchema,
|
|
13532
|
+
/** `null` whenever `state === 'unavailable'`; never a plausible stand-in (D393). */
|
|
13533
|
+
value: union([
|
|
13534
|
+
string(),
|
|
13535
|
+
number(),
|
|
13536
|
+
boolean(),
|
|
13537
|
+
_null()
|
|
13538
|
+
]),
|
|
13539
|
+
reason: string().optional()
|
|
13540
|
+
});
|
|
13541
|
+
var CompositionBlockStateSchema = object({
|
|
13542
|
+
blockId: string(),
|
|
13543
|
+
deviceId: number().nullable(),
|
|
13544
|
+
status: CompositionRunStatusSchema,
|
|
13545
|
+
reason: string().optional(),
|
|
13546
|
+
fields: array(CompositionFieldStateSchema)
|
|
13547
|
+
});
|
|
13328
13548
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
13329
13549
|
* agent is the reason placement is not fixed to the hub. */
|
|
13330
13550
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -13351,6 +13571,30 @@ var CoreBlockInputSchema = object({
|
|
|
13351
13571
|
*/
|
|
13352
13572
|
integrationId: string().optional()
|
|
13353
13573
|
});
|
|
13574
|
+
/**
|
|
13575
|
+
* What a block IS (D659). Absent means `code` — every row stored before this
|
|
13576
|
+
* union keeps working unchanged.
|
|
13577
|
+
* - `code`: the TypeScript in `code`, compiled and run in its own runner;
|
|
13578
|
+
* - `recipe`: RESERVED (automations), stored shape only; refused at run by name;
|
|
13579
|
+
* - `composition`: declarative, run by the shared `composer`; `code` is `''`.
|
|
13580
|
+
*/
|
|
13581
|
+
var CoreBlockSourceSchema = discriminatedUnion("kind", [
|
|
13582
|
+
object({ kind: literal("code") }),
|
|
13583
|
+
object({
|
|
13584
|
+
kind: literal("recipe"),
|
|
13585
|
+
recipe: AutomationRecipeSchema
|
|
13586
|
+
}),
|
|
13587
|
+
object({
|
|
13588
|
+
kind: literal("composition"),
|
|
13589
|
+
composition: CompositionSchema
|
|
13590
|
+
})
|
|
13591
|
+
]);
|
|
13592
|
+
/** The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7). */
|
|
13593
|
+
var CompositionBlockInputSchema = object({
|
|
13594
|
+
name: string().min(1).max(120),
|
|
13595
|
+
enabled: boolean(),
|
|
13596
|
+
composition: CompositionSchema
|
|
13597
|
+
});
|
|
13354
13598
|
/** A stored block. */
|
|
13355
13599
|
var CoreBlockSchema = CoreBlockInputSchema.extend({
|
|
13356
13600
|
id: string(),
|
|
@@ -13366,8 +13610,38 @@ var CoreBlockSchema = CoreBlockInputSchema.extend({
|
|
|
13366
13610
|
*/
|
|
13367
13611
|
lastError: string().optional(),
|
|
13368
13612
|
/** Ms epoch of the last state change. */
|
|
13369
|
-
lastChangedAt: number()
|
|
13613
|
+
lastChangedAt: number(),
|
|
13614
|
+
/** What the block is. Absent means `code` (D659). */
|
|
13615
|
+
source: CoreBlockSourceSchema.optional()
|
|
13616
|
+
});
|
|
13617
|
+
/** A stored composition block and what the composer says about it. */
|
|
13618
|
+
var CompositionViewSchema = object({
|
|
13619
|
+
block: CoreBlockSchema,
|
|
13620
|
+
state: discriminatedUnion("kind", [object({
|
|
13621
|
+
kind: literal("answered"),
|
|
13622
|
+
state: CompositionBlockStateSchema.nullable()
|
|
13623
|
+
}), object({
|
|
13624
|
+
kind: literal("unreachable"),
|
|
13625
|
+
error: string()
|
|
13626
|
+
})])
|
|
13627
|
+
});
|
|
13628
|
+
/**
|
|
13629
|
+
* A read of the stored compositions. `not-loaded` while the `core_blocks`
|
|
13630
|
+
* table has not been READ: an empty answer then would make "not yet known"
|
|
13631
|
+
* look like "none", and invite the operator to recreate what exists (D315).
|
|
13632
|
+
*/
|
|
13633
|
+
var CompositionsNotLoadedSchema = object({
|
|
13634
|
+
state: literal("not-loaded"),
|
|
13635
|
+
reason: string()
|
|
13370
13636
|
});
|
|
13637
|
+
var CompositionListReadSchema = discriminatedUnion("state", [object({
|
|
13638
|
+
state: literal("loaded"),
|
|
13639
|
+
views: array(CompositionViewSchema)
|
|
13640
|
+
}), CompositionsNotLoadedSchema]);
|
|
13641
|
+
var CompositionGetReadSchema = discriminatedUnion("state", [object({
|
|
13642
|
+
state: literal("loaded"),
|
|
13643
|
+
view: CompositionViewSchema.nullable()
|
|
13644
|
+
}), CompositionsNotLoadedSchema]);
|
|
13371
13645
|
/** What a compile attempt produced. */
|
|
13372
13646
|
var CoreBlockCompileResultSchema = object({
|
|
13373
13647
|
ok: boolean(),
|
|
@@ -13405,7 +13679,72 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13405
13679
|
}), method(object({}), object({ libs: array(object({
|
|
13406
13680
|
filePath: string(),
|
|
13407
13681
|
content: string()
|
|
13408
|
-
})) }), { auth: "admin" })
|
|
13682
|
+
})) }), { auth: "admin" }), method(object({ block: CompositionBlockInputSchema }), object({ block: CoreBlockSchema }), {
|
|
13683
|
+
kind: "mutation",
|
|
13684
|
+
auth: "admin",
|
|
13685
|
+
caller: "required"
|
|
13686
|
+
}), method(object({
|
|
13687
|
+
blockId: string(),
|
|
13688
|
+
expectedUpdatedAt: number(),
|
|
13689
|
+
block: CompositionBlockInputSchema.partial()
|
|
13690
|
+
}), object({ block: CoreBlockSchema }), {
|
|
13691
|
+
kind: "mutation",
|
|
13692
|
+
auth: "admin",
|
|
13693
|
+
caller: "required"
|
|
13694
|
+
}), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
13695
|
+
composition: CompositionSchema,
|
|
13696
|
+
blockId: string().optional()
|
|
13697
|
+
}), CompositionValidationSchema, {
|
|
13698
|
+
kind: "mutation",
|
|
13699
|
+
auth: "admin",
|
|
13700
|
+
access: "view"
|
|
13701
|
+
});
|
|
13702
|
+
var ComposerBlockSchema = object({
|
|
13703
|
+
id: string().min(1),
|
|
13704
|
+
name: string().min(1).max(120),
|
|
13705
|
+
enabled: boolean(),
|
|
13706
|
+
updatedAt: number(),
|
|
13707
|
+
composition: CompositionSchema
|
|
13708
|
+
});
|
|
13709
|
+
/**
|
|
13710
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13711
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13712
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13713
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13714
|
+
*/
|
|
13715
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13716
|
+
id: string().min(1),
|
|
13717
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13718
|
+
name: string().nullable(),
|
|
13719
|
+
/** The parse error, in the operator's words. */
|
|
13720
|
+
error: string()
|
|
13721
|
+
});
|
|
13722
|
+
method(object({
|
|
13723
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13724
|
+
integrationId: string().nullable(),
|
|
13725
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13726
|
+
storeLoaded: boolean(),
|
|
13727
|
+
blocks: array(ComposerBlockSchema),
|
|
13728
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13729
|
+
restartBlockIds: array(string()),
|
|
13730
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13731
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13732
|
+
}), object({
|
|
13733
|
+
blocks: array(object({
|
|
13734
|
+
blockId: string(),
|
|
13735
|
+
status: CompositionRunStatusSchema,
|
|
13736
|
+
reason: string().optional()
|
|
13737
|
+
})),
|
|
13738
|
+
/**
|
|
13739
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13740
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13741
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13742
|
+
*/
|
|
13743
|
+
acted: boolean()
|
|
13744
|
+
}), {
|
|
13745
|
+
kind: "mutation",
|
|
13746
|
+
auth: "admin"
|
|
13747
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13409
13748
|
/**
|
|
13410
13749
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13411
13750
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -19449,8 +19788,8 @@ var NcTestResultSchema = object({
|
|
|
19449
19788
|
className: string().optional(),
|
|
19450
19789
|
label: string().optional()
|
|
19451
19790
|
});
|
|
19452
|
-
/** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
|
|
19453
|
-
*
|
|
19791
|
+
/** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
|
|
19792
|
+
* `z.infer` of this schema — one shape, no twin. `mixed` is DERIVED
|
|
19454
19793
|
* (a stored system rule whose kinds span families, D637) and never authored. */
|
|
19455
19794
|
var NcRuleKindSchema = _enum([
|
|
19456
19795
|
"detection",
|
|
@@ -22845,7 +23184,15 @@ var RebuildObjectEmbeddingsInput = object({
|
|
|
22845
23184
|
* force is logged at start and finish so a deliberately slow pass reads
|
|
22846
23185
|
* differently from a stalled one.
|
|
22847
23186
|
*/
|
|
22848
|
-
pacingMs: number().int().nonnegative().optional()
|
|
23187
|
+
pacingMs: number().int().nonnegative().optional(),
|
|
23188
|
+
/**
|
|
23189
|
+
* Re-embed ONLY the tracks whose vector is ALREADY in the pinned model's
|
|
23190
|
+
* space (D664) — the in-space skip inverted. It exists to redo vectors
|
|
23191
|
+
* written from the wrong box, which a normal pass would skip as done
|
|
23192
|
+
* forever. Requires `maxTracks`: a forced pass without a bound is refused
|
|
23193
|
+
* (`force-requires-max-tracks`).
|
|
23194
|
+
*/
|
|
23195
|
+
force: boolean().optional()
|
|
22849
23196
|
});
|
|
22850
23197
|
/**
|
|
22851
23198
|
* Result of emptying the CLIP index.
|
|
@@ -22881,6 +23228,7 @@ var WipeObjectEmbeddingsResultSchema = object({
|
|
|
22881
23228
|
* - `reads-disagree` — the two reads named different choices.
|
|
22882
23229
|
* - `not-a-clip-model` — the CONFIRMED id has no CLIP metadata, so there is no
|
|
22883
23230
|
* index to fill and no dimension to check against (D649).
|
|
23231
|
+
* - `force-requires-max-tracks` — `force: true` with no `maxTracks` (D664).
|
|
22884
23232
|
*/
|
|
22885
23233
|
var RebuildObjectEmbeddingsRefusalSchema = _enum([
|
|
22886
23234
|
"stores-unavailable",
|
|
@@ -22888,7 +23236,8 @@ var RebuildObjectEmbeddingsRefusalSchema = _enum([
|
|
|
22888
23236
|
"method-unavailable",
|
|
22889
23237
|
"read-failed",
|
|
22890
23238
|
"reads-disagree",
|
|
22891
|
-
"not-a-clip-model"
|
|
23239
|
+
"not-a-clip-model",
|
|
23240
|
+
"force-requires-max-tracks"
|
|
22892
23241
|
]);
|
|
22893
23242
|
/**
|
|
22894
23243
|
* Acknowledgement that a rebuild STARTED.
|
|
@@ -22913,11 +23262,32 @@ var RebuildStatusSchema = object({
|
|
|
22913
23262
|
running: boolean(),
|
|
22914
23263
|
scanned: number(),
|
|
22915
23264
|
rebuilt: number(),
|
|
22916
|
-
/** Tracks whose key frame is gone — nothing to re-embed from.
|
|
23265
|
+
/** Tracks whose key frame is gone — nothing to re-embed from. Pixels ONLY:
|
|
23266
|
+
* `missingEvent` is its own field since D664, never summed in. */
|
|
22917
23267
|
missingKeyFrame: number(),
|
|
22918
|
-
/** Tracks with no
|
|
23268
|
+
/** Tracks with no object event at all (D664). */
|
|
23269
|
+
missingEvent: number(),
|
|
23270
|
+
/** Tracks with no box measured on the pixels to cut — see `boxSource.refused`. */
|
|
22919
23271
|
missingBbox: number(),
|
|
22920
23272
|
/**
|
|
23273
|
+
* Which rule placed each judged track's box (D664): the key frame row's own
|
|
23274
|
+
* `subjectBox`, `track.positions` at exactly its instant (older key frames),
|
|
23275
|
+
* the event box (a key frame recovered from the recording, at the event's
|
|
23276
|
+
* instant), or `refused` by name — the reasons are in the tagged log lines.
|
|
23277
|
+
*/
|
|
23278
|
+
boxSource: object({
|
|
23279
|
+
subjectBox: number(),
|
|
23280
|
+
positions: number(),
|
|
23281
|
+
event: number(),
|
|
23282
|
+
refused: number()
|
|
23283
|
+
}),
|
|
23284
|
+
/** Tracks skipped because their vector is already in the pinned space. */
|
|
23285
|
+
alreadyInSpace: number(),
|
|
23286
|
+
/** Whether the current / last pass was a `force` pass; `null` before any (D664). */
|
|
23287
|
+
force: boolean().nullable(),
|
|
23288
|
+
/** In-space tracks a `force` pass selected for re-embedding. */
|
|
23289
|
+
forcedInSpace: number(),
|
|
23290
|
+
/**
|
|
22921
23291
|
* Tracks an executing node REFUSED rather than broke on — an unreadable key
|
|
22922
23292
|
* frame, a step that threw. Separate from `failed` because the remedy is
|
|
22923
23293
|
* different, and because a whole camera silently contributing zero vectors
|
|
@@ -24082,7 +24452,8 @@ var PipelineModelOptionSchema = object({
|
|
|
24082
24452
|
})),
|
|
24083
24453
|
group: ModelVariantGroupSchema.optional(),
|
|
24084
24454
|
legacy: boolean().optional(),
|
|
24085
|
-
provider: ModelProviderIdSchema.optional()
|
|
24455
|
+
provider: ModelProviderIdSchema.optional(),
|
|
24456
|
+
defaultConfidence: number().optional()
|
|
24086
24457
|
});
|
|
24087
24458
|
var ConfigFieldBridge = custom();
|
|
24088
24459
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -39996,6 +40367,38 @@ var zoneRulesCapability = {
|
|
|
39996
40367
|
*/
|
|
39997
40368
|
durability: "restored"
|
|
39998
40369
|
};
|
|
40370
|
+
var NUMBER = {
|
|
40371
|
+
kind: "fixed",
|
|
40372
|
+
result: ["number"]
|
|
40373
|
+
};
|
|
40374
|
+
var BOOLEAN = {
|
|
40375
|
+
kind: "fixed",
|
|
40376
|
+
result: ["boolean"]
|
|
40377
|
+
};
|
|
40378
|
+
Object.freeze({
|
|
40379
|
+
min: NUMBER,
|
|
40380
|
+
max: NUMBER,
|
|
40381
|
+
abs: NUMBER,
|
|
40382
|
+
floor: NUMBER,
|
|
40383
|
+
ceil: NUMBER,
|
|
40384
|
+
sqrt: NUMBER,
|
|
40385
|
+
round: NUMBER,
|
|
40386
|
+
pow: NUMBER,
|
|
40387
|
+
clamp: NUMBER,
|
|
40388
|
+
avg: NUMBER,
|
|
40389
|
+
sum: NUMBER,
|
|
40390
|
+
age: NUMBER,
|
|
40391
|
+
convert: NUMBER,
|
|
40392
|
+
coalesce: { kind: "coalesce" },
|
|
40393
|
+
any: BOOLEAN,
|
|
40394
|
+
all: BOOLEAN,
|
|
40395
|
+
within: BOOLEAN,
|
|
40396
|
+
latest: {
|
|
40397
|
+
kind: "fixed",
|
|
40398
|
+
result: ["number", "null"]
|
|
40399
|
+
}
|
|
40400
|
+
});
|
|
40401
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
39999
40402
|
/**
|
|
40000
40403
|
* Most specific first. Extending this list is how a new device kind becomes
|
|
40001
40404
|
* gateable; nothing else needs to change.
|
|
@@ -43397,6 +43800,18 @@ Object.freeze({
|
|
|
43397
43800
|
addonId: null,
|
|
43398
43801
|
access: "create"
|
|
43399
43802
|
},
|
|
43803
|
+
"composer.applyBlocks": {
|
|
43804
|
+
capName: "composer",
|
|
43805
|
+
capScope: "system",
|
|
43806
|
+
addonId: null,
|
|
43807
|
+
access: "create"
|
|
43808
|
+
},
|
|
43809
|
+
"composer.getStates": {
|
|
43810
|
+
capName: "composer",
|
|
43811
|
+
capScope: "system",
|
|
43812
|
+
addonId: null,
|
|
43813
|
+
access: "view"
|
|
43814
|
+
},
|
|
43400
43815
|
"connectionTest.describeTest": {
|
|
43401
43816
|
capName: "connection-test",
|
|
43402
43817
|
capScope: "system",
|
|
@@ -43457,6 +43872,12 @@ Object.freeze({
|
|
|
43457
43872
|
addonId: null,
|
|
43458
43873
|
access: "create"
|
|
43459
43874
|
},
|
|
43875
|
+
"coreBlocks.createComposition": {
|
|
43876
|
+
capName: "core-blocks",
|
|
43877
|
+
capScope: "system",
|
|
43878
|
+
addonId: null,
|
|
43879
|
+
access: "create"
|
|
43880
|
+
},
|
|
43460
43881
|
"coreBlocks.delete": {
|
|
43461
43882
|
capName: "core-blocks",
|
|
43462
43883
|
capScope: "system",
|
|
@@ -43469,6 +43890,12 @@ Object.freeze({
|
|
|
43469
43890
|
addonId: null,
|
|
43470
43891
|
access: "view"
|
|
43471
43892
|
},
|
|
43893
|
+
"coreBlocks.getComposition": {
|
|
43894
|
+
capName: "core-blocks",
|
|
43895
|
+
capScope: "system",
|
|
43896
|
+
addonId: null,
|
|
43897
|
+
access: "view"
|
|
43898
|
+
},
|
|
43472
43899
|
"coreBlocks.getTypeDefs": {
|
|
43473
43900
|
capName: "core-blocks",
|
|
43474
43901
|
capScope: "system",
|
|
@@ -43481,6 +43908,12 @@ Object.freeze({
|
|
|
43481
43908
|
addonId: null,
|
|
43482
43909
|
access: "view"
|
|
43483
43910
|
},
|
|
43911
|
+
"coreBlocks.listCompositions": {
|
|
43912
|
+
capName: "core-blocks",
|
|
43913
|
+
capScope: "system",
|
|
43914
|
+
addonId: null,
|
|
43915
|
+
access: "view"
|
|
43916
|
+
},
|
|
43484
43917
|
"coreBlocks.restart": {
|
|
43485
43918
|
capName: "core-blocks",
|
|
43486
43919
|
capScope: "system",
|
|
@@ -43499,6 +43932,18 @@ Object.freeze({
|
|
|
43499
43932
|
addonId: null,
|
|
43500
43933
|
access: "create"
|
|
43501
43934
|
},
|
|
43935
|
+
"coreBlocks.updateComposition": {
|
|
43936
|
+
capName: "core-blocks",
|
|
43937
|
+
capScope: "system",
|
|
43938
|
+
addonId: null,
|
|
43939
|
+
access: "create"
|
|
43940
|
+
},
|
|
43941
|
+
"coreBlocks.validateComposition": {
|
|
43942
|
+
capName: "core-blocks",
|
|
43943
|
+
capScope: "system",
|
|
43944
|
+
addonId: null,
|
|
43945
|
+
access: "view"
|
|
43946
|
+
},
|
|
43502
43947
|
"cover.close": {
|
|
43503
43948
|
capName: "cover",
|
|
43504
43949
|
capScope: "device",
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_clip_model_registry = require("../clip-model-registry-
|
|
5
|
+
const require_clip_model_registry = require("../clip-model-registry-CTY5co6P.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
node_fs = require_clip_model_registry.__toESM(node_fs);
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as normalizeNodeId, Ht as embeddingRequirementsUnavailableError, Rt as embeddingEncoderCapability, Vt as embeddingRequirementsFailedError, a as CLIP_EMBEDDING_STEP_ID, c as resolveClusterModelPin, ft as PoolMemoryWatchdog, i as CLIP_TEXT_MODELS, jn as BaseAddon, mn as resolvePoolMemoryPolicy, n as DEFAULT_CLIP_MODEL, r as CLIP_IMAGE_MODELS, sn as parseProcStatus, t as BUILTIN_CLIP_MODELS, zt as embeddingModelFailedError } from "../clip-model-registry-
|
|
1
|
+
import { Bn as normalizeNodeId, Ht as embeddingRequirementsUnavailableError, Rt as embeddingEncoderCapability, Vt as embeddingRequirementsFailedError, a as CLIP_EMBEDDING_STEP_ID, c as resolveClusterModelPin, ft as PoolMemoryWatchdog, i as CLIP_TEXT_MODELS, jn as BaseAddon, mn as resolvePoolMemoryPolicy, n as DEFAULT_CLIP_MODEL, r as CLIP_IMAGE_MODELS, sn as parseProcStatus, t as BUILTIN_CLIP_MODELS, zt as embeddingModelFailedError } from "../clip-model-registry-Cudz--Ql.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react__loadShare__.js-C0AuF9av.mjs";
|
|
2
2
|
import { t as o } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-B3Wx5J80.mjs";
|
|
3
|
-
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
3
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DAAKQ3sC.mjs";
|
|
4
4
|
import { n as m, r as h, t as g } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Bm-iyjmq.mjs";
|
|
5
|
-
import { t as _ } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
5
|
+
import { t as _ } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-2OwTV_D2.mjs";
|
|
6
6
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
7
7
|
var v = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), y = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), b = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), x = (e) => {
|
|
8
8
|
let t = b(e);
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.267",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.209",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_analytics_widgets",
|