@camstack/addon-post-analysis 1.2.660 → 1.2.662
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/CHANGELOG.md +14 -0
- package/dist/{clip-model-registry-DAKPBZfa.js → clip-model-registry-C3N1NpST.js} +274 -36
- package/dist/{clip-model-registry-D9BbIQ-h.mjs → clip-model-registry-ELaSS9jq.mjs} +269 -37
- 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-CvrKdp_8.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BvOlyiL9.mjs} +2 -2
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D4zkNcgf.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-vaatUWY6.mjs +26 -0
- package/dist/pipeline-analytics/{hostInit--CbMNXQy.mjs → hostInit-BjZchMMh.mjs} +2 -2
- package/dist/pipeline-analytics/index.js +506 -172
- package/dist/pipeline-analytics/index.mjs +506 -172
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +2 -2
- package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BDKliSzv.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-BwWOFFOc.mjs +0 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-BmPm98n0.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -483,6 +483,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
483
483
|
EventCategory["RunningStarted"] = "running.started";
|
|
484
484
|
/** Mirrors `runningStateCapability.events.onFinished`. */
|
|
485
485
|
EventCategory["RunningFinished"] = "running.finished";
|
|
486
|
+
/** Mirrors `deviceRunsCapability.events.onRunOpened` - a durable run record opened. */
|
|
487
|
+
EventCategory["DeviceRunOpened"] = "device-run.opened";
|
|
488
|
+
/** Mirrors `deviceRunsCapability.events.onRunClosed` - a durable run record closed. */
|
|
489
|
+
EventCategory["DeviceRunClosed"] = "device-run.closed";
|
|
486
490
|
/**
|
|
487
491
|
* Cap event fired by every device that registers the `event-emitter`
|
|
488
492
|
* capability. Mirrors `eventEmitterCapability.events.onEvent`. Carries
|
|
@@ -6021,7 +6025,7 @@ var ZodIssueCode = {
|
|
|
6021
6025
|
var ZodFirstPartyTypeKind;
|
|
6022
6026
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6023
6027
|
//#endregion
|
|
6024
|
-
//#region ../types/dist/sleep-
|
|
6028
|
+
//#region ../types/dist/sleep-BKzhQTSm.mjs
|
|
6025
6029
|
/**
|
|
6026
6030
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6027
6031
|
* window to float samples (D455).
|
|
@@ -6537,6 +6541,53 @@ function emitReadiness(bus, params) {
|
|
|
6537
6541
|
ts
|
|
6538
6542
|
}));
|
|
6539
6543
|
}
|
|
6544
|
+
/** Why a catalogue entry is not a runnable body of its declared kind. */
|
|
6545
|
+
var AddonMigrationDefinitionError = class extends Error {
|
|
6546
|
+
id;
|
|
6547
|
+
constructor(id, message) {
|
|
6548
|
+
super(`${id}: ${message}`);
|
|
6549
|
+
this.id = id;
|
|
6550
|
+
this.name = "AddonMigrationDefinitionError";
|
|
6551
|
+
}
|
|
6552
|
+
};
|
|
6553
|
+
/**
|
|
6554
|
+
* Bind a catalogue to the addon's ports. Throws {@link AddonMigrationDefinitionError} when
|
|
6555
|
+
* an entry's `bodyKind` does not match the body it carries, or is `sql` (a hub-only
|
|
6556
|
+
* body). A throwing body never escapes `execute`: it is reported as a failed result.
|
|
6557
|
+
*/
|
|
6558
|
+
function defineAddonMigrations(catalogue, ports) {
|
|
6559
|
+
return catalogue.map((entry) => {
|
|
6560
|
+
const { meta } = entry;
|
|
6561
|
+
if ("plan" in entry) {
|
|
6562
|
+
if (meta.bodyKind !== "plan") throw new AddonMigrationDefinitionError(meta.id, `carries a plan body but declares "${meta.bodyKind}"`);
|
|
6563
|
+
return {
|
|
6564
|
+
meta,
|
|
6565
|
+
execute: () => guarded(async () => ({
|
|
6566
|
+
kind: "plan",
|
|
6567
|
+
plan: await entry.plan(ports)
|
|
6568
|
+
}))
|
|
6569
|
+
};
|
|
6570
|
+
}
|
|
6571
|
+
if (meta.bodyKind !== "procedure") throw new AddonMigrationDefinitionError(meta.id, `carries a procedure body but declares "${meta.bodyKind}"`);
|
|
6572
|
+
return {
|
|
6573
|
+
meta,
|
|
6574
|
+
execute: () => guarded(async () => ({
|
|
6575
|
+
kind: "procedure",
|
|
6576
|
+
result: await entry.procedure(ports)
|
|
6577
|
+
}))
|
|
6578
|
+
};
|
|
6579
|
+
});
|
|
6580
|
+
}
|
|
6581
|
+
async function guarded(work) {
|
|
6582
|
+
try {
|
|
6583
|
+
return await work();
|
|
6584
|
+
} catch (err) {
|
|
6585
|
+
return {
|
|
6586
|
+
kind: "failed",
|
|
6587
|
+
error: errMsg(err)
|
|
6588
|
+
};
|
|
6589
|
+
}
|
|
6590
|
+
}
|
|
6540
6591
|
var NOT_RUN = {
|
|
6541
6592
|
declared: false,
|
|
6542
6593
|
snapshot: null,
|
|
@@ -9740,6 +9791,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
9740
9791
|
"device-ops",
|
|
9741
9792
|
"device-provider",
|
|
9742
9793
|
"device-removal-hook",
|
|
9794
|
+
"device-runs",
|
|
9743
9795
|
"device-state",
|
|
9744
9796
|
"device-status",
|
|
9745
9797
|
"dishwasher",
|
|
@@ -11686,7 +11738,7 @@ Object.freeze({
|
|
|
11686
11738
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
11687
11739
|
* (~144MB RSS per runner, D28).
|
|
11688
11740
|
*
|
|
11689
|
-
* Coverage:
|
|
11741
|
+
* Coverage: 99 device-scoped capabilities.
|
|
11690
11742
|
*/
|
|
11691
11743
|
var DEVICE_SCOPED_CAPS = new Set([
|
|
11692
11744
|
"accessories",
|
|
@@ -11718,6 +11770,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
11718
11770
|
"device-discovery",
|
|
11719
11771
|
"device-extension",
|
|
11720
11772
|
"device-ops",
|
|
11773
|
+
"device-runs",
|
|
11721
11774
|
"device-status",
|
|
11722
11775
|
"dishwasher",
|
|
11723
11776
|
"doorbell",
|
|
@@ -14458,7 +14511,13 @@ var MigrationLedgerEntrySchema = object({
|
|
|
14458
14511
|
/** Why it is `blocked` or `held` (`dependency-failed`, `snapshot-refused`, …). */
|
|
14459
14512
|
reason: string().nullable(),
|
|
14460
14513
|
nodeId: string().nullable(),
|
|
14461
|
-
bootId: string().nullable()
|
|
14514
|
+
bootId: string().nullable(),
|
|
14515
|
+
/**
|
|
14516
|
+
* The catalogued meta of this id (description, body kind, store, `dependsOn`…),
|
|
14517
|
+
* joined by the engine from the catalogues it knows this boot. Absent when no
|
|
14518
|
+
* catalogue lists the id (a newer database).
|
|
14519
|
+
*/
|
|
14520
|
+
meta: MigrationMetaSchema.optional()
|
|
14462
14521
|
});
|
|
14463
14522
|
/** A catalogued migration that is not applied, with where it stands. */
|
|
14464
14523
|
var MigrationPendingEntrySchema = object({
|
|
@@ -20898,6 +20957,14 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
20898
20957
|
}
|
|
20899
20958
|
} }
|
|
20900
20959
|
},
|
|
20960
|
+
"device-runs": {
|
|
20961
|
+
scope: "device",
|
|
20962
|
+
noun: t("Runs", "Esecuzioni"),
|
|
20963
|
+
events: {
|
|
20964
|
+
onRunOpened: { notOperatorFacing: "the durable record of a run that the running-state start flip already announces" },
|
|
20965
|
+
onRunClosed: { notOperatorFacing: "the durable record of a run that the running-state finish flip already announces" }
|
|
20966
|
+
}
|
|
20967
|
+
},
|
|
20901
20968
|
update: {
|
|
20902
20969
|
scope: "device",
|
|
20903
20970
|
noun: t("Firmware update", "Aggiornamento firmware"),
|
|
@@ -49268,6 +49335,101 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
49268
49335
|
kind: "mutation",
|
|
49269
49336
|
auth: "admin"
|
|
49270
49337
|
});
|
|
49338
|
+
/**
|
|
49339
|
+
* device-runs - the durable record of ONE run of a device: a washing cycle, a
|
|
49340
|
+
* dishwasher cycle, later a mow or a clean (D992).
|
|
49341
|
+
*
|
|
49342
|
+
* A run is a DOCUMENT (opened at one instant, closed at another, carrying what
|
|
49343
|
+
* was measured over it), never a sample - device-history keeps the numbers over
|
|
49344
|
+
* time and its `device-runs` provider keeps these documents beside them, because
|
|
49345
|
+
* the energy of a run is a question about device-history's own series. The
|
|
49346
|
+
* record is written from the `running-state` flip on `DeviceStateChanged`; it
|
|
49347
|
+
* survives a restart (the open row is on disk) and a missed flip (boot compares
|
|
49348
|
+
* the open rows against the live snapshots).
|
|
49349
|
+
*
|
|
49350
|
+
* Every measurement is `number | null` and `null` means "could not be
|
|
49351
|
+
* measured", never `0` (D393). A run closed by the boot reconcile because the
|
|
49352
|
+
* device stopped while nobody was watching has `outcome: 'unknown'`.
|
|
49353
|
+
*/
|
|
49354
|
+
var DeviceRunKindSchema = _enum([
|
|
49355
|
+
"appliance",
|
|
49356
|
+
"mower",
|
|
49357
|
+
"vacuum"
|
|
49358
|
+
]);
|
|
49359
|
+
var DeviceRunStateSchema = _enum(["open", "closed"]);
|
|
49360
|
+
var DeviceRunOutcomeSchema = _enum([
|
|
49361
|
+
"completed",
|
|
49362
|
+
"aborted",
|
|
49363
|
+
"error",
|
|
49364
|
+
"unknown"
|
|
49365
|
+
]);
|
|
49366
|
+
/** What opened or closed the run. `reconcile` is the boot comparison against live state. */
|
|
49367
|
+
var DeviceRunSourceSchema = _enum([
|
|
49368
|
+
"running-state",
|
|
49369
|
+
"activity",
|
|
49370
|
+
"reconcile"
|
|
49371
|
+
]);
|
|
49372
|
+
/** How the energy of a run was obtained; `null` when it could not be. */
|
|
49373
|
+
var DeviceRunEnergyMethodSchema = _enum(["counter-delta", "history-integral"]);
|
|
49374
|
+
var DeviceRunPhaseSchema = object({
|
|
49375
|
+
phase: string(),
|
|
49376
|
+
at: number()
|
|
49377
|
+
});
|
|
49378
|
+
/** The kind-specific block; a later phase adds a branch, nothing else changes. */
|
|
49379
|
+
var DeviceRunDetailSchema = discriminatedUnion("kind", [object({
|
|
49380
|
+
kind: literal("appliance"),
|
|
49381
|
+
/** kWh used over the run. */
|
|
49382
|
+
energyKwh: number().nullable().meta(readingMeta("energy")),
|
|
49383
|
+
energyMethod: DeviceRunEnergyMethodSchema.nullable(),
|
|
49384
|
+
/** Highest power seen while the run was open. */
|
|
49385
|
+
peakW: number().nullable().meta(readingMeta("power")),
|
|
49386
|
+
/** Time-weighted mean power while the run was open. */
|
|
49387
|
+
avgW: number().nullable().meta(readingMeta("power")),
|
|
49388
|
+
/** The program the appliance said it ran when the run opened. */
|
|
49389
|
+
program: string().nullable(),
|
|
49390
|
+
remainingAtStartSec: number().nullable().meta(readingMeta("duration")),
|
|
49391
|
+
/** The last phase the device reported before the run closed. */
|
|
49392
|
+
finalPhase: string().nullable(),
|
|
49393
|
+
/**
|
|
49394
|
+
* The meter's energy counter when the run opened; `null` when the meter had
|
|
49395
|
+
* not said (or the run was opened late, by the boot reconcile). It lives in
|
|
49396
|
+
* the row so a run that outlives a restart still ends with `end - start`.
|
|
49397
|
+
*/
|
|
49398
|
+
energyStartKwh: number().nullable().meta(readingMeta("energy")),
|
|
49399
|
+
/** Milliseconds of power readings behind `avgW` - the weight a restart resumes the mean with. */
|
|
49400
|
+
powerObservedMs: number()
|
|
49401
|
+
})]);
|
|
49402
|
+
var DeviceRunSchema = object({
|
|
49403
|
+
/** `${deviceId}:${startedAt}`. */
|
|
49404
|
+
runId: string(),
|
|
49405
|
+
deviceId: number().int(),
|
|
49406
|
+
kind: DeviceRunKindSchema,
|
|
49407
|
+
state: DeviceRunStateSchema,
|
|
49408
|
+
startedAt: number(),
|
|
49409
|
+
endedAt: number().nullable(),
|
|
49410
|
+
durationMs: number().nullable(),
|
|
49411
|
+
outcome: DeviceRunOutcomeSchema.nullable(),
|
|
49412
|
+
startSource: DeviceRunSourceSchema,
|
|
49413
|
+
endSource: DeviceRunSourceSchema.nullable(),
|
|
49414
|
+
/** Where the device's running bit came from (`running-state.source`); `null` when it did not say. */
|
|
49415
|
+
runningSource: _enum(["native", "assigned"]).nullable(),
|
|
49416
|
+
phases: array(DeviceRunPhaseSchema),
|
|
49417
|
+
detail: DeviceRunDetailSchema
|
|
49418
|
+
});
|
|
49419
|
+
DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, method(object({
|
|
49420
|
+
deviceId: number().int(),
|
|
49421
|
+
outcome: DeviceRunOutcomeSchema.optional(),
|
|
49422
|
+
atFrom: number().optional(),
|
|
49423
|
+
atTo: number().optional(),
|
|
49424
|
+
limit: number().int().positive().max(200).default(50),
|
|
49425
|
+
cursor: string().optional()
|
|
49426
|
+
}), object({
|
|
49427
|
+
runs: array(DeviceRunSchema).readonly(),
|
|
49428
|
+
nextCursor: string().nullable()
|
|
49429
|
+
})), method(object({
|
|
49430
|
+
deviceId: number().int(),
|
|
49431
|
+
runId: string()
|
|
49432
|
+
}), DeviceRunSchema.nullable()), method(object({ deviceId: number().int() }), DeviceRunSchema.nullable());
|
|
49271
49433
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
49272
49434
|
object({ state: literal("absent") }),
|
|
49273
49435
|
object({
|
|
@@ -49403,8 +49565,8 @@ method(object({}), object({
|
|
|
49403
49565
|
});
|
|
49404
49566
|
var KeychainKeySourceSchema = object({
|
|
49405
49567
|
kind: _enum([
|
|
49406
|
-
"
|
|
49407
|
-
"previous-
|
|
49568
|
+
"mounted-file",
|
|
49569
|
+
"previous-mounted-file",
|
|
49408
49570
|
"platform",
|
|
49409
49571
|
"default-file"
|
|
49410
49572
|
]),
|
|
@@ -67913,10 +68075,7 @@ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSc
|
|
|
67913
68075
|
}), InstallPackageResultSchema, {
|
|
67914
68076
|
kind: "mutation",
|
|
67915
68077
|
auth: "admin"
|
|
67916
|
-
}), method(object({
|
|
67917
|
-
kind: "mutation",
|
|
67918
|
-
auth: "admin"
|
|
67919
|
-
}), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
|
|
68078
|
+
}), method(object({
|
|
67920
68079
|
packageName: string().min(1),
|
|
67921
68080
|
nodeId: string().optional(),
|
|
67922
68081
|
everywhere: boolean().optional()
|
|
@@ -80630,7 +80789,7 @@ var ExternalIdentityKeySchema = object({
|
|
|
80630
80789
|
provider: string().min(1),
|
|
80631
80790
|
subject: string().min(1)
|
|
80632
80791
|
});
|
|
80633
|
-
method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
|
|
80792
|
+
method(_void(), array(UserSummarySchema), { auth: "admin" }), method(_void(), object({ defaultPasswordInUse: boolean() }), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
|
|
80634
80793
|
kind: "mutation",
|
|
80635
80794
|
auth: "admin",
|
|
80636
80795
|
access: "create"
|
|
@@ -83528,13 +83687,6 @@ Object.freeze({
|
|
|
83528
83687
|
access: "view",
|
|
83529
83688
|
role: "admin"
|
|
83530
83689
|
},
|
|
83531
|
-
"addons.installFromWorkspace": {
|
|
83532
|
-
capName: "addons",
|
|
83533
|
-
capScope: "system",
|
|
83534
|
-
addonId: null,
|
|
83535
|
-
access: "create",
|
|
83536
|
-
role: "admin"
|
|
83537
|
-
},
|
|
83538
83690
|
"addons.installPackage": {
|
|
83539
83691
|
capName: "addons",
|
|
83540
83692
|
capScope: "system",
|
|
@@ -83542,13 +83694,6 @@ Object.freeze({
|
|
|
83542
83694
|
access: "create",
|
|
83543
83695
|
role: "admin"
|
|
83544
83696
|
},
|
|
83545
|
-
"addons.isWorkspaceAvailable": {
|
|
83546
|
-
capName: "addons",
|
|
83547
|
-
capScope: "system",
|
|
83548
|
-
addonId: null,
|
|
83549
|
-
access: "view",
|
|
83550
|
-
role: "admin"
|
|
83551
|
-
},
|
|
83552
83697
|
"addons.list": {
|
|
83553
83698
|
capName: "addons",
|
|
83554
83699
|
capScope: "system",
|
|
@@ -83598,13 +83743,6 @@ Object.freeze({
|
|
|
83598
83743
|
access: "view",
|
|
83599
83744
|
role: "admin"
|
|
83600
83745
|
},
|
|
83601
|
-
"addons.listWorkspacePackages": {
|
|
83602
|
-
capName: "addons",
|
|
83603
|
-
capScope: "system",
|
|
83604
|
-
addonId: null,
|
|
83605
|
-
access: "view",
|
|
83606
|
-
role: "admin"
|
|
83607
|
-
},
|
|
83608
83746
|
"addons.onAddonLogs": {
|
|
83609
83747
|
capName: "addons",
|
|
83610
83748
|
capScope: "system",
|
|
@@ -86272,6 +86410,27 @@ Object.freeze({
|
|
|
86272
86410
|
access: "create",
|
|
86273
86411
|
role: "admin"
|
|
86274
86412
|
},
|
|
86413
|
+
"deviceRuns.getCurrentRun": {
|
|
86414
|
+
capName: "device-runs",
|
|
86415
|
+
capScope: "device",
|
|
86416
|
+
addonId: null,
|
|
86417
|
+
access: "view",
|
|
86418
|
+
role: "viewer"
|
|
86419
|
+
},
|
|
86420
|
+
"deviceRuns.getRun": {
|
|
86421
|
+
capName: "device-runs",
|
|
86422
|
+
capScope: "device",
|
|
86423
|
+
addonId: null,
|
|
86424
|
+
access: "view",
|
|
86425
|
+
role: "viewer"
|
|
86426
|
+
},
|
|
86427
|
+
"deviceRuns.listRuns": {
|
|
86428
|
+
capName: "device-runs",
|
|
86429
|
+
capScope: "device",
|
|
86430
|
+
addonId: null,
|
|
86431
|
+
access: "view",
|
|
86432
|
+
role: "viewer"
|
|
86433
|
+
},
|
|
86275
86434
|
"deviceState.claimFields": {
|
|
86276
86435
|
capName: "device-state",
|
|
86277
86436
|
capScope: "system",
|
|
@@ -92985,6 +93144,13 @@ Object.freeze({
|
|
|
92985
93144
|
access: "view",
|
|
92986
93145
|
role: "admin"
|
|
92987
93146
|
},
|
|
93147
|
+
"userManagement.getAdminBootstrapStatus": {
|
|
93148
|
+
capName: "user-management",
|
|
93149
|
+
capScope: "system",
|
|
93150
|
+
addonId: null,
|
|
93151
|
+
access: "view",
|
|
93152
|
+
role: "admin"
|
|
93153
|
+
},
|
|
92988
93154
|
"userManagement.getTotpStatus": {
|
|
92989
93155
|
capName: "user-management",
|
|
92990
93156
|
capScope: "system",
|
|
@@ -94470,6 +94636,21 @@ Object.freeze({
|
|
|
94470
94636
|
form: "single",
|
|
94471
94637
|
optional: false
|
|
94472
94638
|
}],
|
|
94639
|
+
"deviceRuns.getCurrentRun": [{
|
|
94640
|
+
name: "deviceId",
|
|
94641
|
+
form: "single",
|
|
94642
|
+
optional: false
|
|
94643
|
+
}],
|
|
94644
|
+
"deviceRuns.getRun": [{
|
|
94645
|
+
name: "deviceId",
|
|
94646
|
+
form: "single",
|
|
94647
|
+
optional: false
|
|
94648
|
+
}],
|
|
94649
|
+
"deviceRuns.listRuns": [{
|
|
94650
|
+
name: "deviceId",
|
|
94651
|
+
form: "single",
|
|
94652
|
+
optional: false
|
|
94653
|
+
}],
|
|
94473
94654
|
"deviceState.claimFields": [{
|
|
94474
94655
|
name: "deviceId",
|
|
94475
94656
|
form: "single",
|
|
@@ -98758,8 +98939,9 @@ var STATE_SUMMARY_VARS = [
|
|
|
98758
98939
|
];
|
|
98759
98940
|
var NC_TEMPLATE_VARS = [
|
|
98760
98941
|
{
|
|
98761
|
-
name: "
|
|
98762
|
-
label: "
|
|
98942
|
+
name: "device",
|
|
98943
|
+
label: "Device",
|
|
98944
|
+
description: "The device the event is about: the camera for a track, the appliance or sensor for a device event.",
|
|
98763
98945
|
example: "Front door",
|
|
98764
98946
|
group: "subject",
|
|
98765
98947
|
families: ["rule", "timelapse"],
|
|
@@ -99006,6 +99188,46 @@ var NC_TEMPLATE_VARS = [
|
|
|
99006
99188
|
fields: [...RULE_TEXT],
|
|
99007
99189
|
kinds: ["sensor"]
|
|
99008
99190
|
},
|
|
99191
|
+
{
|
|
99192
|
+
name: "duration",
|
|
99193
|
+
label: "Cycle duration",
|
|
99194
|
+
description: "How long a finished appliance cycle ran, e.g. \"52 minutes\" or \"1 h 12 min\"; empty when the start is unknown.",
|
|
99195
|
+
example: "52 minuti",
|
|
99196
|
+
group: "sensor",
|
|
99197
|
+
families: ["rule"],
|
|
99198
|
+
fields: [...RULE_TEXT],
|
|
99199
|
+
kinds: ["sensor"]
|
|
99200
|
+
},
|
|
99201
|
+
{
|
|
99202
|
+
name: "energy",
|
|
99203
|
+
label: "Cycle energy",
|
|
99204
|
+
description: "Energy an appliance used over its finished cycle, e.g. \"0.84 kWh\"; empty without a power meter.",
|
|
99205
|
+
example: "0,84 kWh",
|
|
99206
|
+
group: "sensor",
|
|
99207
|
+
families: ["rule"],
|
|
99208
|
+
fields: [...RULE_TEXT],
|
|
99209
|
+
kinds: ["sensor"]
|
|
99210
|
+
},
|
|
99211
|
+
{
|
|
99212
|
+
name: "afterDuration",
|
|
99213
|
+
label: "\"after <duration>\" fragment",
|
|
99214
|
+
description: "Leading space included; empty when the cycle duration is unknown.",
|
|
99215
|
+
example: " dopo 52 minuti",
|
|
99216
|
+
group: "sensor",
|
|
99217
|
+
families: ["rule"],
|
|
99218
|
+
fields: [...RULE_TEXT],
|
|
99219
|
+
kinds: ["sensor"]
|
|
99220
|
+
},
|
|
99221
|
+
{
|
|
99222
|
+
name: "usedEnergy",
|
|
99223
|
+
label: "\"used <energy>\" fragment",
|
|
99224
|
+
description: "Leading space included; empty when the energy is unknown.",
|
|
99225
|
+
example: " e ha consumato 0,84 kWh",
|
|
99226
|
+
group: "sensor",
|
|
99227
|
+
families: ["rule"],
|
|
99228
|
+
fields: [...RULE_TEXT],
|
|
99229
|
+
kinds: ["sensor"]
|
|
99230
|
+
},
|
|
99009
99231
|
{
|
|
99010
99232
|
name: "ai",
|
|
99011
99233
|
label: "AI sentence",
|
|
@@ -99144,6 +99366,16 @@ var NC_TEMPLATE_VARS = [
|
|
|
99144
99366
|
kinds: ["system"],
|
|
99145
99367
|
systemEventKinds: ["node-online", "node-offline"]
|
|
99146
99368
|
},
|
|
99369
|
+
{
|
|
99370
|
+
name: "graceMin",
|
|
99371
|
+
label: "Update grace (minutes)",
|
|
99372
|
+
example: "10",
|
|
99373
|
+
group: "system",
|
|
99374
|
+
families: ["rule"],
|
|
99375
|
+
fields: [...RULE_TEXT],
|
|
99376
|
+
kinds: ["system"],
|
|
99377
|
+
systemEventKinds: ["node-offline"]
|
|
99378
|
+
},
|
|
99147
99379
|
{
|
|
99148
99380
|
name: "offlineFor",
|
|
99149
99381
|
label: "Offline for",
|
|
@@ -99776,7 +100008,7 @@ function templateVarDeliveryApplies(d, ctx) {
|
|
|
99776
100008
|
* descriptor so the whole rule stays in one line of code. */
|
|
99777
100009
|
var CAPTION_VARS = {
|
|
99778
100010
|
previewText: [
|
|
99779
|
-
"
|
|
100011
|
+
"device",
|
|
99780
100012
|
"rule",
|
|
99781
100013
|
"from",
|
|
99782
100014
|
"to"
|
|
@@ -100726,7 +100958,7 @@ var TimelapseRuleInputSchema = object({
|
|
|
100726
100958
|
* before this field existed still reads "Timelapse Camera front door" and
|
|
100727
100959
|
* not the literal braces.
|
|
100728
100960
|
*/
|
|
100729
|
-
var DEFAULT_TIMELAPSE_PREVIEW_TEXT = "Timelapse {{
|
|
100961
|
+
var DEFAULT_TIMELAPSE_PREVIEW_TEXT = "Timelapse {{device}}";
|
|
100730
100962
|
/**
|
|
100731
100963
|
* Partial patch for an update — any subset of the INPUT fields, with NO
|
|
100732
100964
|
* defaults (an absent key means "leave unchanged", never "reset to default").
|
|
@@ -101850,4 +102082,4 @@ function buildClipModelRegistry(entries) {
|
|
|
101850
102082
|
/** The built-in catalog's registry. */
|
|
101851
102083
|
var BUILTIN_CLIP_MODELS = buildClipModelRegistry(CLIP_IMAGE_MODELS);
|
|
101852
102084
|
//#endregion
|
|
101853
|
-
export { MAX_TRACK_RELATIONS as $, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as $i, bundledCamstack as $n, normalizeNcAction as $r, NcTemplateVarDescriptorSchema as $t, DETECTION_MACRO_CLASSES as A,
|
|
102085
|
+
export { MAX_TRACK_RELATIONS as $, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as $i, bundledCamstack as $n, normalizeNcAction as $r, NcTemplateVarDescriptorSchema as $t, DETECTION_MACRO_CLASSES as A, strictObject as Aa, sceneMonitorCapability as Ai, TrackPuritySchema as An, isAlertEpisodeOpen as Ar, NcAlarmConfigSchema as At, EXPORT_DENSE_MAX_RANGES as B, sunTimes as Bi, alertEpisodeKind as Bn, isLabelSupplyStepId as Br, NcRuleSchema as Bt, COCO_TO_MACRO as C, discriminatedUnion as Ca, retrainRevisionConflictMessage as Ci, SetTrackRelationInputSchema as Cn, eventKindLabel as Cr, NC_GROUPING_MIN_SEC as Ct, DEFAULT_DETAIL_CROP_CONVENTION as D, object as Da, ruleDeviceCompatCapQueries as Di, TimelapseRulePatchSchema as Dn, gifDeriveSpeed as Dr, NC_SYSTEM_EVENT_KIND_GROUP_SPECS as Dt, CoverStateSchema as E, number as Ea, ruleBelongsToAlarm as Ei, TimelapseRuleInputSchema as En, failureContributionCapability as Er, NC_STATE_SUMMARY_SECTION_IDS as Et, EMBEDDING_REQUIREMENTS_FAILED as F, unknown as Fa, storageOccupancyCapability as Fi, activateAlarmProfile as Fn, isDetectionMacroClass as Fr, NcConditionDescriptorSchema as Ft, LabelAttributionSchema as G, systemEventSummaryScheduleOf as Gi, applySecureOnArmEdit as Gn, isSystemDelivery as Gr, NcSnoozeInputSchema as Gt, FULL_IMAGE_BBOX as H, systemEventDeliveryProblems as Hi, applyBlockingEdit as Hn, isRetiredClearKey as Hr, NcRuleUpdateInputSchema as Ht, EMBEDDING_REQUIREMENTS_UNAVAILABLE as I, DeviceType as Ia, subKindsOf as Ii, addonWidgetsSourceCapability as In, isDrawableSubjectPath as Ir, NcConditionsSchema as It, LockStateSchema as J, templateVarsFor as Ji, audioMetricsCapability as Jn, kebabToCamel as Jr, NcStateSummarySectionIdSchema as Jt, ListTrackRelationsInputSchema as K, systemEventSummarySplitOf as Ki, armRemovalReconcile as Kn, isSystemEventSummaryRule as Kr, NcSnoozeSchema as Kt, EVENT_DENSITY_BATCH_MAX as L, errMsg as La, subjectPathSampleFromBox as Li, alarmDeviceSecureOnArm as Ln, isEventKindLabelKey as Lr, NcRuleActionSchema as Lt, DeclaredDevices as M, templateLiteral as Ma, sensorRaisedOf as Mi, TrackRelationSchema as Mn, isAppLinkBase as Mr, NcAlarmSensorsInputSchema as Mt, DetectionSourceSchema as N, tuple as Na, servedTemplateVars as Ni, TrackSideSchema as Nn, isAudioClassName as Nr, NcAlarmSensorsSchema as Nt, DEFAULT_EVENT_COLOR as O, partialRecord as Oa, ruleGroupingApplies as Oi, TimelapseRuleSchema as On, gifFromMp4Args as Or, NC_TAXONOMY as Ot, EMBEDDING_MODEL_FAILED as P, union as Pa, startMoverUnderClearance as Pi, TrackSourceSchema as Pn, isDefaultAlarmProfileId as Pr, NcAlarmSettingsPatchSchema as Pt, MAX_TRACK_PURITIES as Q, zoneAnalyticsCapability as Qi, buildViewerLink as Qn, ncMediaPolicyError as Qr, NcTemplatePreviewSchema as Qt, EVENT_KIND_BY_CAP as R, EventCategory as Ra, subjectPathSvgPoints as Ri, alarmPanelCapability as Rn, isEventOwnerType as Rr, NcRuleInputSchema as Rt, BucketAccumulator as S, boolean as Sa, resolvePoolMemoryPolicy as Si, SetTrackPurityResultSchema as Sn, ensureAlarmProfiles as Sr, NC_GROUPING_MAX_SEC as St, ClearTrackRelationResultSchema as T, looseObject as Ta, ruleAutoTriggersAlarm as Ti, TRACK_RELATIONS_DEFAULT_LIMIT as Tn, faceGalleryCapability as Tr, NC_SNOOZE_MAX_MINUTES as Tt, FailureCounters as U, systemEventFamilyProblems as Ui, applyModeDelaysEdits as Un, isRootSuppliableStepId as Ur, NcScheduleSchema as Ut, FIRST_LEVEL_MACRO_CLASSES as V, syncActiveAlarmProfileSettings as Vi, alertEpisodePayload as Vn, isMediaOwnerType as Vr, NcRuleTargetSchema as Vt, LABEL_SUPPLY_MACRO as W, systemEventFilterApplies as Wi, applyNonBlockingEdit as Wn, isScheduleActive as Wr, NcSharedSequenceSchema as Wt, MAX_BIRTH_DECISION_RECORDS as X, viewerLinkBaseOf as Xi, buildEventKindDescriptor as Xn, mayWriteToLocation as Xr, NcTaxonomySchema as Xt, MAX_ARCHIVED_DEBUG_NOTES as Y, vectorDimFromBase64 as Yi, audioModeOf as Yn, linkedStepOf as Yr, NcSystemEventKindSchema as Yt, MAX_BIRTH_LATENCY_PROXY_MS as Z, withSystemEventClasses as Zi, buildSubjectPath as Zn, memoizePinnedFfmpeg as Zr, NcTemplatePreviewInputSchema as Zt, AlarmArmModeSchema as _, normalizeNodeId as _a, resolveDeliveryParams as _i, SCENE_DEFAULT_UNCOVERED_POLICY as _n, embeddingModelFailedError as _r, NC_CONFIRM_DEFAULT_TIMEOUT_MS as _t, CLIP_EMBEDDING_STEP_ID as a, CamProfileSchema as aa, paletteResultSchema as ai, RECORDING_SOURCE_CAMSTACK_ADDON as an, coreBlockIdFromAddonId as ar, NC_ALARM_DELAY_FIELDS as at, BaseDevice as b, _enum as ba, resolveModeNotifyPolicy as bi, SceneMonitorSchema as bn, embeddingRequirementsUnavailableError as br, NC_DEFAULT_SNOOZE_MINUTES as bt, readClusterModelPinStrict as c, RECORD_QUERY_MAX as ca, pickFaceRescoreIntervalMinutes as ci, RetrainOriginSchema as cn, deleteAlarmProfile as cr, NC_ALARM_SYSTEM_EVENT_KINDS as ct, APPEARANCE_BIN_COUNT as d, defineAddonMigrations as da, projectSubjectPath as di, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX as dn, deriveRecordingMode as dr, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT as dt, canonicalHash as ea, normalizeNcCapTarget as ei, OPS_LOG_DEFAULT_LIMIT as en, calendarEventLocalSpan as er, MOTION_CLOSE_AFTER_MS as et, APPEARANCE_BLOCKS as f, defineCustomActions as fa, readDeviceStateFrom as fi, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS as fn, describeSystemEventDeliveryProblem as fr, NC_CLIP_POST_ROLL_DEFAULT_SEC as ft, ActionTargetResolver as g, nodePin as ga, resolveClipSearchMinScore as gi, SCENE_DEFAULT_QUIET_SECONDS as gn, embeddingEncoderCapability as gr, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX as gt, AUDIO_MACRO_LABELS as h, isDeviceScopedCap as ha, renameAlarmProfile as hi, SCENE_DEFAULT_OBSERVATION_SPACING_SEC as hn, deviceRemovalHookCapability as hr, NC_CONDITION_CATALOG as ht, CLIP_TEXT_MODELS as i, CAP_ADVANCE_FIELDS as ia, paintHex as ii, RECORDING_EXPORT_MAX_READ_BYTES as in, consumableLowPercentOf as ir, NC_ALARM_DEFAULT_TRIGGERED_DURATION_SEC as it, DETECTION_PIPELINE_CAP_NAME as j, string as ja, secureActuationFor as ji, TrackRelationKindSchema as jn, isAlertEpisodeSeverity as jr, NcAlarmPostTriggeredActionSchema as jt, DEFAULT_TIMELAPSE_PREVIEW_TEXT as k, record as ka, ruleKindOf as ki, TrackPlacementSchema as kn, isAlarmControllableCap as kr, NC_TEMPLATE_VARS as kt, resolveClusterModelPin as l, createEvent as la, pipelineAnalyticsCapability as li, RetrainStatusSchema as ln, deriveDetailCropRect as lr, NC_ALARM_TRIGGERED_MAX_SEC as lt, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT as m, hydrateSchema as ma, readTimelapseGeneratedAt as mi, SCENE_DEFAULT_CHECK_INTERVAL_SEC as mn, deviceAttentionKind as mr, NC_CLIP_RETENTION_MAX_SEC as mt, DEFAULT_CLIP_MODEL as n, isSourceCap as na, notificationRulesCapability as ni, PackageLlmVerdictSchema as nn, cloneAlarmSettings as nr, MotionTriggeredBySchema as nt, CLUSTER_MODEL_OWNER_ADDON_ID as o, InvalidRecordError as oa, parseAlertEpisodePayload as oi, RebuildObjectEmbeddingsRefusalSchema as on, cosineSimilarity as or, NC_ALARM_DELAY_MAX_SEC as ot, APPEARANCE_RESOLVES_AMBIGUITY_DEFAULT as p, defineRecordKinds as pa, readMotionTriggeredBy as pi, SCENE_DEFAULT_ANCHOR_THRESHOLD as pn, describeSystemEventFamilyProblem as pr, NC_CLIP_PRE_ROLL_DEFAULT_SEC as pt, ListTrackRelationsResultSchema as q, templateCarriesSummary as qi, assertTimelapseCadences as qn, isVectorIndexDimConflict as qr, NcSnoozeSuppressedSchema as qt, CLIP_IMAGE_MODELS as r, BaseAddon as ra, occupancyScope as ri, PoolMemoryWatchdog as rn, consumableFormOf as rr, NC_ALARM_DEFAULT_PROFILE_ID as rt, FACE_EMBEDDING_STEP_ID as s, RECORD_MAX_DATA_BYTES as sa, parseProcStatus as si, RetrainDismissedSchema as sn, createAlarmProfile as sr, NC_ALARM_NOTIFY_FIELDS as st, BUILTIN_CLIP_MODELS as t, evaluateSensorEdge as ta, normalizeNcMediaPolicy as ti, OpsLogEntrySchema as tn, classifyRetrainReview as tr, MediaFileKindEnum as tt, ACTION_TARGET_INVALIDATION_EVENTS as u, customAction as ua, plateGalleryCapability as ui, RetrainVerdictSubjectSchema as un, derivePostTriggeredAction as ur, NC_AUDIO_CONFIRM_HITS_DEFAULT as ut, ArchivedDebugNoteSchema as v, sleep as va, resolveLocationMode as vi, SCENE_DIVERGED as vn, embeddingRefusalOf as vr, NC_CONSUMABLE_LOW_PERCENT_DEFAULT as vt, ClearTrackRelationInputSchema as w, literal as wa, rootSupplyServes as wi, TIMELAPSE_DENSE_FLOOR_SEC as wn, evictionPolicyOfLocation as wr, NC_SENSOR_TRANSITION_KINDS as wt, BirthDecisionRecordSchema as x, array as xa, resolveNcMediaImage as xi, SetTrackPurityInputSchema as xn, encodeVectorBase64 as xr, NC_GROUPING_DEFAULT_SEC as xt, BIRTH_DECISION_DEFAULT_LIMIT as y, ZodObject as ya, resolveModeDelays as yi, SCENE_RESET_RECAPTURES as yn, embeddingRequirementsFailedError as yr, NC_CONSUMABLE_SYSTEM_EVENT_KINDS as yt, EVENT_OWNER_TYPES as z, summarizeReview as zi, alertEpisodeId as zn, isKnownTemplateVar as zr, NcRulePatchSchema as zt };
|
|
@@ -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-C3N1NpST.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 { Si as resolvePoolMemoryPolicy, _r as embeddingModelFailedError, a as CLIP_EMBEDDING_STEP_ID, br as embeddingRequirementsUnavailableError,
|
|
1
|
+
import { Si as resolvePoolMemoryPolicy, _a as normalizeNodeId, _r as embeddingModelFailedError, a as CLIP_EMBEDDING_STEP_ID, br as embeddingRequirementsUnavailableError, gr as embeddingEncoderCapability, i as CLIP_TEXT_MODELS, l as resolveClusterModelPin, n as DEFAULT_CLIP_MODEL, r as CLIP_IMAGE_MODELS, ra as BaseAddon, rn as PoolMemoryWatchdog, si as parseProcStatus, t as BUILTIN_CLIP_MODELS, yr as embeddingRequirementsFailedError } from "../clip-model-registry-ELaSS9jq.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-Cx9AsA5q.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, c, d as l, f as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b } 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, c, d as l, f as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-vaatUWY6.mjs";
|
|
4
4
|
import { n as x, t as S } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-CkwmHEi0.mjs";
|
|
5
|
-
import { t as C } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
5
|
+
import { t as C } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D4zkNcgf.mjs";
|
|
6
6
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
7
7
|
var w = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), T = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), E = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), D = (e) => {
|
|
8
8
|
let t = E(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.469",
|
|
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.368",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_analytics_widgets",
|