@camstack/addon-pipeline 1.2.43 → 1.2.44

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.
Files changed (37) hide show
  1. package/dist/audio-analyzer/index.js +1 -1
  2. package/dist/audio-analyzer/index.mjs +1 -1
  3. package/dist/detection-pipeline/index.js +157 -81
  4. package/dist/detection-pipeline/index.mjs +157 -81
  5. package/dist/{dist-UHbKZiSa.js → dist-BuFE5rOK.js} +724 -39
  6. package/dist/{dist-B-VVBzrL.mjs → dist-DOu93i_g.mjs} +659 -40
  7. package/dist/{event-loop-stall-monitor-DfKdC7G4.mjs → event-loop-stall-monitor-CShgQE6l.mjs} +40 -2
  8. package/dist/{event-loop-stall-monitor-C7_L6vHO.js → event-loop-stall-monitor-L08yG6bB.js} +40 -2
  9. package/dist/motion-wasm/index.js +1 -1
  10. package/dist/motion-wasm/index.mjs +1 -1
  11. package/dist/pipeline-runner/index.js +342 -69
  12. package/dist/pipeline-runner/index.mjs +342 -69
  13. package/dist/recorder/index.js +189 -6
  14. package/dist/recorder/index.mjs +189 -6
  15. package/dist/session-decode/decode-worker-child.js +197 -24
  16. package/dist/session-decode/decode-worker-child.mjs +197 -24
  17. package/dist/stream-broker/_stub.js +2 -2
  18. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-D7iQbuKY.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-DiXoZnou.mjs} +2 -2
  19. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BRc-m6W-.mjs +26 -0
  20. package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-54IklEep.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-B_hakWAb.mjs} +1 -1
  21. package/dist/stream-broker/{hostInit-CKYS9yZO.mjs → hostInit-khRXMnjl.mjs} +2 -2
  22. package/dist/stream-broker/index.js +3952 -1103
  23. package/dist/stream-broker/index.mjs +3953 -1104
  24. package/dist/stream-broker/remoteEntry.js +1 -1
  25. package/dist/worker-protocol-BOXlUhWO.mjs +244 -0
  26. package/dist/worker-protocol-VURr0nUh.js +279 -0
  27. package/embed-dist/assets/{MaskShapeCanvas-DI4BY7W2-DxZ75vB8.js → MaskShapeCanvas-DI4BY7W2-DHZuYYjH.js} +1 -1
  28. package/embed-dist/assets/{MotionZonesSettings-NcxxQN8r-BBY2Ztz5.js → MotionZonesSettings-NcxxQN8r-jFDOzPCD.js} +1 -1
  29. package/embed-dist/assets/{PrivacyMaskSettings-APgPLF7p-BC-3QmHa.js → PrivacyMaskSettings-APgPLF7p-BPBXgIX8.js} +1 -1
  30. package/embed-dist/assets/{index-on1wyOnd.js → index-4CtQAybX.js} +12 -12
  31. package/embed-dist/assets/index-DC63og2c.css +2 -0
  32. package/embed-dist/index.html +2 -2
  33. package/package.json +1 -1
  34. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CCC9fqHH.mjs +0 -26
  35. package/dist/worker-protocol-D7RzZIla.mjs +0 -77
  36. package/dist/worker-protocol-DextwlTX.js +0 -94
  37. package/embed-dist/assets/index-CGdwTcwE.css +0 -2
@@ -1,4 +1,4 @@
1
- import { a as COCO_80_LABELS, j as hfModelUrl, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-B-VVBzrL.mjs";
1
+ import { a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS, z as hfModelUrl } from "./dist-DOu93i_g.mjs";
2
2
  import { PerformanceObserver } from "node:perf_hooks";
3
3
  //#region src/detection-pipeline/registry/model-catalogs.ts
4
4
  var HF_REPO = "camstack/camstack-models";
@@ -1455,6 +1455,44 @@ var AnimalClassifierStep = class {
1455
1455
  }];
1456
1456
  }
1457
1457
  };
1458
+ /**
1459
+ * `package-detection` — a ROOT detector, so its threshold is NOT the
1460
+ * classifier's `minConfidence` key.
1461
+ *
1462
+ * The executor filters every root detection through `macroFilterVerdict`, which
1463
+ * builds its key as `minConfidence${capitalize(macroClass)}`. This detector's
1464
+ * model emits `class: 'package'` and the step declares no `classMap`, so
1465
+ * `toMutableRootDetection` copies that through verbatim and the key the gate
1466
+ * reads is `minConfidencePackage`. A schema declaring `minConfidence` here
1467
+ * would render a slider that filters nothing.
1468
+ *
1469
+ * Why it exists: the 0.5 floor lived only in `definition.defaultConfidence`,
1470
+ * which is forwarded to the Python pool and reachable from no operator surface
1471
+ * (the catalog carries `configSchema` to the admin-ui; an empty schema renders
1472
+ * no form). Camera 615 reported a DOORMAT at 0.5669 on 2026-08-07, and the
1473
+ * model's own benchmark had already noted a doormat near-FP at 0.49 — the
1474
+ * shipped floor sat 0.01 above a known false positive with no way to move it.
1475
+ *
1476
+ * There is deliberately NO enable switch. Enablement is zone-driven
1477
+ * (`applyPackageZoneActivation` — drawing a `package`-stage zone rule IS the
1478
+ * enable), and a second enablement authority beside the zone rule is the exact
1479
+ * bug `packageDropEnabled` already was.
1480
+ */
1481
+ var PackageDetectionStep = class extends PipelineStepBase {
1482
+ getConfigSchema() {
1483
+ return [{
1484
+ type: "slider",
1485
+ key: "minConfidencePackage",
1486
+ label: "Min Confidence — Package",
1487
+ description: "Drop package predictions below this score. Raise it when static porch furniture (a doormat, a plant pot) is reported as a parcel — those sit just above the default.",
1488
+ min: 0,
1489
+ max: 1,
1490
+ step: .05,
1491
+ default: this.definition.defaultConfidence,
1492
+ showValue: true
1493
+ }];
1494
+ }
1495
+ };
1458
1496
  var ClassifierWithMinConfidence = class extends PipelineStepBase {
1459
1497
  getConfigSchema() {
1460
1498
  return [{
@@ -1628,7 +1666,7 @@ var STEP_PLATE_OCR = new PlateOcrStep({
1628
1666
  maxPerTrack: 5
1629
1667
  }
1630
1668
  });
1631
- var STEP_PACKAGE_DETECTION = new PipelineStepBase({
1669
+ var STEP_PACKAGE_DETECTION = new PackageDetectionStep({
1632
1670
  id: "package-detection",
1633
1671
  name: "Package Detection",
1634
1672
  slot: "detector",
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-UHbKZiSa.js");
1
+ const require_dist = require("./dist-BuFE5rOK.js");
2
2
  let node_perf_hooks = require("node:perf_hooks");
3
3
  //#region src/detection-pipeline/registry/model-catalogs.ts
4
4
  var HF_REPO = "camstack/camstack-models";
@@ -1455,6 +1455,44 @@ var AnimalClassifierStep = class {
1455
1455
  }];
1456
1456
  }
1457
1457
  };
1458
+ /**
1459
+ * `package-detection` — a ROOT detector, so its threshold is NOT the
1460
+ * classifier's `minConfidence` key.
1461
+ *
1462
+ * The executor filters every root detection through `macroFilterVerdict`, which
1463
+ * builds its key as `minConfidence${capitalize(macroClass)}`. This detector's
1464
+ * model emits `class: 'package'` and the step declares no `classMap`, so
1465
+ * `toMutableRootDetection` copies that through verbatim and the key the gate
1466
+ * reads is `minConfidencePackage`. A schema declaring `minConfidence` here
1467
+ * would render a slider that filters nothing.
1468
+ *
1469
+ * Why it exists: the 0.5 floor lived only in `definition.defaultConfidence`,
1470
+ * which is forwarded to the Python pool and reachable from no operator surface
1471
+ * (the catalog carries `configSchema` to the admin-ui; an empty schema renders
1472
+ * no form). Camera 615 reported a DOORMAT at 0.5669 on 2026-08-07, and the
1473
+ * model's own benchmark had already noted a doormat near-FP at 0.49 — the
1474
+ * shipped floor sat 0.01 above a known false positive with no way to move it.
1475
+ *
1476
+ * There is deliberately NO enable switch. Enablement is zone-driven
1477
+ * (`applyPackageZoneActivation` — drawing a `package`-stage zone rule IS the
1478
+ * enable), and a second enablement authority beside the zone rule is the exact
1479
+ * bug `packageDropEnabled` already was.
1480
+ */
1481
+ var PackageDetectionStep = class extends PipelineStepBase {
1482
+ getConfigSchema() {
1483
+ return [{
1484
+ type: "slider",
1485
+ key: "minConfidencePackage",
1486
+ label: "Min Confidence — Package",
1487
+ description: "Drop package predictions below this score. Raise it when static porch furniture (a doormat, a plant pot) is reported as a parcel — those sit just above the default.",
1488
+ min: 0,
1489
+ max: 1,
1490
+ step: .05,
1491
+ default: this.definition.defaultConfidence,
1492
+ showValue: true
1493
+ }];
1494
+ }
1495
+ };
1458
1496
  var ClassifierWithMinConfidence = class extends PipelineStepBase {
1459
1497
  getConfigSchema() {
1460
1498
  return [{
@@ -1628,7 +1666,7 @@ var STEP_PLATE_OCR = new PlateOcrStep({
1628
1666
  maxPerTrack: 5
1629
1667
  }
1630
1668
  });
1631
- var STEP_PACKAGE_DETECTION = new PipelineStepBase({
1669
+ var STEP_PACKAGE_DETECTION = new PackageDetectionStep({
1632
1670
  id: "package-detection",
1633
1671
  name: "Package Detection",
1634
1672
  slot: "detector",
@@ -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-UHbKZiSa.js");
5
+ const require_dist = require("../dist-BuFE5rOK.js");
6
6
  const require_lazy_sharp = require("../lazy-sharp-CcYuXtsa.js");
7
7
  let node_fs = require("node:fs");
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { A as evaluateZoneRules, F as motionDetectionCapability, Q as hydrateSchema, X as DeviceType, q as BaseAddon } from "../dist-B-VVBzrL.mjs";
1
+ import { R as evaluateZoneRules, W as motionDetectionCapability, it as BaseAddon, lt as hydrateSchema, st as DeviceType } from "../dist-DOu93i_g.mjs";
2
2
  import { t as getSharp } from "../lazy-sharp-B-mb8uWx.mjs";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { join } from "node:path";