@camstack/addon-post-analysis 1.0.7 → 1.0.8

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.
@@ -4649,7 +4649,7 @@ function _instanceof(cls, params = {}) {
4649
4649
  return inst;
4650
4650
  }
4651
4651
  //#endregion
4652
- //#region ../types/dist/sleep-D7JeS58T.mjs
4652
+ //#region ../types/dist/sleep-B1dKJAMJ.mjs
4653
4653
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4654
4654
  EventCategory["SystemBoot"] = "system.boot";
4655
4655
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5623,7 +5623,7 @@ var BaseAddon = class {
5623
5623
  deviceSettingsSchema() {
5624
5624
  return null;
5625
5625
  }
5626
- async getGlobalSettings(overlay, cap) {
5626
+ async getGlobalSettings(overlay, cap, _nodeId) {
5627
5627
  const schema = this.globalSettingsSchema(cap);
5628
5628
  if (!schema) return { sections: [] };
5629
5629
  const raw = await this._ctx?.settings?.readAddonStore() ?? {};
@@ -5632,7 +5632,7 @@ var BaseAddon = class {
5632
5632
  ...overlay
5633
5633
  } : raw);
5634
5634
  }
5635
- async updateGlobalSettings(patch) {
5635
+ async updateGlobalSettings(patch, _nodeId) {
5636
5636
  await this._ctx?.settings?.writeAddonStore(patch);
5637
5637
  await this.resolveConfig();
5638
5638
  await this.onConfigChanged();
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-D7JeS58T.mjs
4630
+ //#region ../types/dist/sleep-B1dKJAMJ.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5601,7 +5601,7 @@ var BaseAddon = class {
5601
5601
  deviceSettingsSchema() {
5602
5602
  return null;
5603
5603
  }
5604
- async getGlobalSettings(overlay, cap) {
5604
+ async getGlobalSettings(overlay, cap, _nodeId) {
5605
5605
  const schema = this.globalSettingsSchema(cap);
5606
5606
  if (!schema) return { sections: [] };
5607
5607
  const raw = await this._ctx?.settings?.readAddonStore() ?? {};
@@ -5610,7 +5610,7 @@ var BaseAddon = class {
5610
5610
  ...overlay
5611
5611
  } : raw);
5612
5612
  }
5613
- async updateGlobalSettings(patch) {
5613
+ async updateGlobalSettings(patch, _nodeId) {
5614
5614
  await this._ctx?.settings?.writeAddonStore(patch);
5615
5615
  await this.resolveConfig();
5616
5616
  await this.onConfigChanged();
@@ -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-BNZBQuDr.js");
5
+ const require_dist = require("../dist-BO4vHZS6.js");
6
6
  let node_path = require("node:path");
7
7
  let node_path$1 = require_dist.__toESM(node_path, 1);
8
8
  node_path = require_dist.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { d as BaseAddon, i as embeddingEncoderCapability } from "../dist-CJslCJXG.mjs";
1
+ import { d as BaseAddon, i as embeddingEncoderCapability } from "../dist-xZ1nMZGV.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import * as path$1 from "node:path";
4
4
  import * as fs from "node:fs";
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-BNZBQuDr.js");
6
- const require_resolve_frame = require("../resolve-frame-CIsja8aH.js");
5
+ const require_dist = require("../dist-BO4vHZS6.js");
6
+ const require_resolve_frame = require("../resolve-frame-A6QovqGd.js");
7
7
  let _camstack_shm_ring = require("@camstack/shm-ring");
8
8
  //#region src/enrichment-engine/types.ts
9
9
  var DEFAULT_ENRICHMENT_CONFIG = {
@@ -1,4 +1,4 @@
1
- import { C as tuple, S as string, _ as _enum, b as number, d as BaseAddon, h as createEvent, m as asJsonObject, p as EventCategory, v as array, x as object, y as boolean } from "../dist-CJslCJXG.mjs";
1
+ import { C as tuple, S as string, _ as _enum, b as number, d as BaseAddon, h as createEvent, m as asJsonObject, p as EventCategory, v as array, x as object, y as boolean } from "../dist-xZ1nMZGV.mjs";
2
2
  import { n as extractCrop, t as resolveFrame } from "../resolve-frame-CT1T1tWy.mjs";
3
3
  import { FrameRingReaderCache } from "@camstack/shm-ring";
4
4
  //#region src/enrichment-engine/types.ts
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.0.6",
6
+ version: "1.0.7",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_pipeline_analytics_widgets",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.0.6",
21
+ version: "1.0.7",
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.0.6",
36
+ version: "1.0.7",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_pipeline_analytics_widgets",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.0.6",
39
+ version: "1.0.7",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.0.6",
48
+ version: "1.0.7",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.0.6",
84
+ version: "1.0.7",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-BNZBQuDr.js");
6
- const require_resolve_frame = require("../resolve-frame-CIsja8aH.js");
5
+ const require_dist = require("../dist-BO4vHZS6.js");
6
+ const require_resolve_frame = require("../resolve-frame-A6QovqGd.js");
7
7
  let _camstack_shm_ring = require("@camstack/shm-ring");
8
8
  let sharp = require("sharp");
9
9
  sharp = require_dist.__toESM(sharp);
@@ -484,8 +484,8 @@ function levenshtein(a, b) {
484
484
  if (a === b) return 0;
485
485
  if (a.length === 0) return b.length;
486
486
  if (b.length === 0) return a.length;
487
- let prev = new Array(b.length + 1);
488
- let curr = new Array(b.length + 1);
487
+ let prev = Array.from({ length: b.length + 1 });
488
+ let curr = Array.from({ length: b.length + 1 });
489
489
  for (let j = 0; j <= b.length; j++) prev[j] = j;
490
490
  for (let i = 1; i <= a.length; i++) {
491
491
  curr[0] = i;
@@ -1,4 +1,4 @@
1
- import { a as faceGalleryCapability, b as number, c as videoclipsCapability, d as BaseAddon, f as DeviceType, g as hydrateSchema, l as zoneAnalyticsCapability, n as audioMetricsCapability, o as pipelineAnalyticsCapability, p as EventCategory, r as cosineSimilarity, s as plateGalleryCapability, t as addonWidgetsSourceCapability, u as errMsg, x as object, y as boolean } from "../dist-CJslCJXG.mjs";
1
+ import { a as faceGalleryCapability, b as number, c as videoclipsCapability, d as BaseAddon, f as DeviceType, g as hydrateSchema, l as zoneAnalyticsCapability, n as audioMetricsCapability, o as pipelineAnalyticsCapability, p as EventCategory, r as cosineSimilarity, s as plateGalleryCapability, t as addonWidgetsSourceCapability, u as errMsg, x as object, y as boolean } from "../dist-xZ1nMZGV.mjs";
2
2
  import { n as extractCrop, t as resolveFrame } from "../resolve-frame-CT1T1tWy.mjs";
3
3
  import { FrameRingReaderCache } from "@camstack/shm-ring";
4
4
  import sharp from "sharp";
@@ -479,8 +479,8 @@ function levenshtein(a, b) {
479
479
  if (a === b) return 0;
480
480
  if (a.length === 0) return b.length;
481
481
  if (b.length === 0) return a.length;
482
- let prev = new Array(b.length + 1);
483
- let curr = new Array(b.length + 1);
482
+ let prev = Array.from({ length: b.length + 1 });
483
+ let curr = Array.from({ length: b.length + 1 });
484
484
  for (let j = 0; j <= b.length; j++) prev[j] = j;
485
485
  for (let i = 1; i <= a.length; i++) {
486
486
  curr[0] = i;
@@ -30,7 +30,7 @@ async function d(e) {
30
30
  }
31
31
  }
32
32
  async function f() {
33
- return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CApQds-5.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CZHFM7Cg.mjs")).catch((e) => {
34
34
  throw l = void 0, e;
35
35
  }), l;
36
36
  }
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-BNZBQuDr.js");
1
+ const require_dist = require("./dist-BO4vHZS6.js");
2
2
  let sharp = require("sharp");
3
3
  sharp = require_dist.__toESM(sharp);
4
4
  //#region src/shared/frame/crop-extractor.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-post-analysis",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "CamStack Post-Analysis bundle — enrichment, embedding-encoder, pipeline-analytics. Multi-entry npm package shipping addons that consume pipeline output.",
5
5
  "keywords": [
6
6
  "camstack",