@camstack/addon-post-analysis 1.2.42 → 1.2.43
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/{dist-CUnWKs0D.js → dist-BIBeAcEY.js} +0 -6
- package/dist/{dist-Bd7HioQT.mjs → dist-D4eie2px.mjs} +1 -1
- package/dist/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +1 -1
- package/dist/{node-ByXsH-Ce.js → node-INtH-sDE.js} +1 -1
- package/dist/pipeline-analytics/index.js +14 -4
- package/dist/pipeline-analytics/index.mjs +13 -3
- package/package.json +1 -1
|
@@ -31530,12 +31530,6 @@ Object.defineProperty(exports, "_enum", {
|
|
|
31530
31530
|
return _enum;
|
|
31531
31531
|
}
|
|
31532
31532
|
});
|
|
31533
|
-
Object.defineProperty(exports, "_void", {
|
|
31534
|
-
enumerable: true,
|
|
31535
|
-
get: function() {
|
|
31536
|
-
return _void;
|
|
31537
|
-
}
|
|
31538
|
-
});
|
|
31539
31533
|
Object.defineProperty(exports, "addonWidgetsSourceCapability", {
|
|
31540
31534
|
enumerable: true,
|
|
31541
31535
|
get: function() {
|
|
@@ -31370,4 +31370,4 @@ function encodeVectorBase64(vector) {
|
|
|
31370
31370
|
return Buffer.from(bytes).toString("base64");
|
|
31371
31371
|
}
|
|
31372
31372
|
//#endregion
|
|
31373
|
-
export {
|
|
31373
|
+
export { unknown as $, kebabToCamel as A, DeviceType as B, cosineSimilarity as C, encodeVectorBase64 as D, embeddingEncoderCapability as E, subKindsOf as F, _enum as G, hydrateSchema as H, videoclipsCapability as I, literal as J, array as K, zoneAnalyticsCapability as L, pipelineAnalyticsCapability as M, plateGalleryCapability as N, faceGalleryCapability as O, readDeviceStateFrom as P, string as Q, errMsg as R, buildEventKindDescriptor as S, defineCustomActions as T, isDeviceScopedCap as U, createEvent as V, nodePin as W, object as X, number as Y, record as Z, TimelapseRuleInputSchema as _, MACRO_LABELS as a, alarmPanelCapability as b, NcConditionDescriptorSchema as c, NcRuleSchema as d, EventCategory as et, NcSnoozeInputSchema as f, OpsLogEntrySchema as g, NcTaxonomySchema as h, EVENT_PAD_MS as i, notificationRulesCapability as j, hfModelUrl as k, NcRuleInputSchema as l, NcSnoozeSuppressedSchema as m, DEFAULT_EVENT_COLOR as n, NC_CONDITION_CATALOG as o, NcSnoozeSchema as p, boolean as q, EVENT_KIND_BY_CAP as r, NC_TAXONOMY as s, BaseDevice as t, NcRulePatchSchema as u, TimelapseRuleSchema as v, customAction as w, audioMetricsCapability as x, addonWidgetsSourceCapability as y, BaseAddon as z };
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-BIBeAcEY.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
let node_fs$1 = require_dist.__toESM(node_fs, 1);
|
|
8
8
|
node_fs = require_dist.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as embeddingEncoderCapability, k as hfModelUrl, z as BaseAddon } from "../dist-
|
|
1
|
+
import { E as embeddingEncoderCapability, k as hfModelUrl, z as BaseAddon } from "../dist-D4eie2px.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import "node:fs";
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-BIBeAcEY.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_dist.__toESM(node_path);
|
|
@@ -5875,10 +5875,20 @@ var RebuildStatusSchema = require_dist.object({
|
|
|
5875
5875
|
indexed: require_dist.number()
|
|
5876
5876
|
});
|
|
5877
5877
|
var WipeResultSchema = require_dist.object({ deleted: require_dist.number() });
|
|
5878
|
+
/**
|
|
5879
|
+
* An input-less action still takes an OBJECT, never `z.void()`.
|
|
5880
|
+
*
|
|
5881
|
+
* The `addons.custom` envelope requires an `input` field — omitting it fails
|
|
5882
|
+
* envelope validation before the action is even looked up — and the settings
|
|
5883
|
+
* form's button always sends one. So `z.void()` makes an action that resolves
|
|
5884
|
+
* and can never be called: the bridge insists on `{}` and the schema rejects
|
|
5885
|
+
* it. Verified on the live hub, both directions.
|
|
5886
|
+
*/
|
|
5887
|
+
var NoInputSchema = require_dist.object({});
|
|
5878
5888
|
var embeddingActions = require_dist.defineCustomActions({
|
|
5879
5889
|
"embedding.rebuild": require_dist.customAction(RebuildInputSchema, RebuildStartedSchema, { auth: "admin" }),
|
|
5880
|
-
"embedding.rebuildStatus": require_dist.customAction(
|
|
5881
|
-
"embedding.wipe": require_dist.customAction(
|
|
5890
|
+
"embedding.rebuildStatus": require_dist.customAction(NoInputSchema, RebuildStatusSchema),
|
|
5891
|
+
"embedding.wipe": require_dist.customAction(NoInputSchema, WipeResultSchema, { auth: "admin" })
|
|
5882
5892
|
});
|
|
5883
5893
|
//#endregion
|
|
5884
5894
|
//#region src/pipeline-analytics/pipeline/face-clustering.ts
|
|
@@ -23928,7 +23938,7 @@ var PipelineAnalyticsAddon = class extends require_dist.BaseAddon {
|
|
|
23928
23938
|
let storage = this.ctx.kernel.storage;
|
|
23929
23939
|
const mediaRoot = process.env.CAMSTACK_MEDIA_ROOT?.trim();
|
|
23930
23940
|
if (mediaRoot) {
|
|
23931
|
-
const { FilesystemStorageProvider } = await Promise.resolve().then(() => require("../node-
|
|
23941
|
+
const { FilesystemStorageProvider } = await Promise.resolve().then(() => require("../node-INtH-sDE.js"));
|
|
23932
23942
|
storage = new FilesystemStorageProvider(mediaRoot, { eventMedia: mediaRoot });
|
|
23933
23943
|
logger.info("pipeline-analytics: event media rooted at CAMSTACK_MEDIA_ROOT", { meta: { mediaRoot } });
|
|
23934
23944
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as unknown, A as kebabToCamel, B as DeviceType, C as cosineSimilarity, D as encodeVectorBase64, F as subKindsOf, G as _enum, H as hydrateSchema, I as videoclipsCapability, J as literal, K as array, L as zoneAnalyticsCapability, M as pipelineAnalyticsCapability, N as plateGalleryCapability, O as faceGalleryCapability, P as readDeviceStateFrom, Q as string, R as errMsg, S as buildEventKindDescriptor, T as defineCustomActions, U as isDeviceScopedCap, V as createEvent, W as nodePin, X as object, Y as number, Z as record, _ as TimelapseRuleInputSchema, a as MACRO_LABELS, b as alarmPanelCapability, c as NcConditionDescriptorSchema, d as NcRuleSchema, et as EventCategory, f as NcSnoozeInputSchema, g as OpsLogEntrySchema, h as NcTaxonomySchema, i as EVENT_PAD_MS, j as notificationRulesCapability, l as NcRuleInputSchema, m as NcSnoozeSuppressedSchema, n as DEFAULT_EVENT_COLOR, o as NC_CONDITION_CATALOG, p as NcSnoozeSchema, q as boolean, r as EVENT_KIND_BY_CAP, s as NC_TAXONOMY, t as BaseDevice, u as NcRulePatchSchema, v as TimelapseRuleSchema, w as customAction, x as audioMetricsCapability, y as addonWidgetsSourceCapability, z as BaseAddon } from "../dist-D4eie2px.mjs";
|
|
2
2
|
import { promises } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -5869,10 +5869,20 @@ var RebuildStatusSchema = object({
|
|
|
5869
5869
|
indexed: number()
|
|
5870
5870
|
});
|
|
5871
5871
|
var WipeResultSchema = object({ deleted: number() });
|
|
5872
|
+
/**
|
|
5873
|
+
* An input-less action still takes an OBJECT, never `z.void()`.
|
|
5874
|
+
*
|
|
5875
|
+
* The `addons.custom` envelope requires an `input` field — omitting it fails
|
|
5876
|
+
* envelope validation before the action is even looked up — and the settings
|
|
5877
|
+
* form's button always sends one. So `z.void()` makes an action that resolves
|
|
5878
|
+
* and can never be called: the bridge insists on `{}` and the schema rejects
|
|
5879
|
+
* it. Verified on the live hub, both directions.
|
|
5880
|
+
*/
|
|
5881
|
+
var NoInputSchema = object({});
|
|
5872
5882
|
var embeddingActions = defineCustomActions({
|
|
5873
5883
|
"embedding.rebuild": customAction(RebuildInputSchema, RebuildStartedSchema, { auth: "admin" }),
|
|
5874
|
-
"embedding.rebuildStatus": customAction(
|
|
5875
|
-
"embedding.wipe": customAction(
|
|
5884
|
+
"embedding.rebuildStatus": customAction(NoInputSchema, RebuildStatusSchema),
|
|
5885
|
+
"embedding.wipe": customAction(NoInputSchema, WipeResultSchema, { auth: "admin" })
|
|
5876
5886
|
});
|
|
5877
5887
|
//#endregion
|
|
5878
5888
|
//#region src/pipeline-analytics/pipeline/face-clustering.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-post-analysis",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.43",
|
|
4
4
|
"description": "Post-Analysis bundle — enrichment, embedding-encoder, pipeline-analytics. Multi-entry npm package shipping addons that consume pipeline output.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|