@camstack/addon-pipeline-analytics 0.1.1

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 (56) hide show
  1. package/dist/@mf-types/compiled-types/widgets/AudioHistoryChart.d.ts +5 -0
  2. package/dist/@mf-types/compiled-types/widgets/AudioHistoryChart.d.ts.map +1 -0
  3. package/dist/@mf-types/compiled-types/widgets/AudioMetricsPanel.d.ts +11 -0
  4. package/dist/@mf-types/compiled-types/widgets/AudioMetricsPanel.d.ts.map +1 -0
  5. package/dist/@mf-types/compiled-types/widgets/DetectionHistoryChart.d.ts +5 -0
  6. package/dist/@mf-types/compiled-types/widgets/DetectionHistoryChart.d.ts.map +1 -0
  7. package/dist/@mf-types/compiled-types/widgets/MotionHistoryChart.d.ts +5 -0
  8. package/dist/@mf-types/compiled-types/widgets/MotionHistoryChart.d.ts.map +1 -0
  9. package/dist/@mf-types/compiled-types/widgets/OccupancyHistoryChart.d.ts +5 -0
  10. package/dist/@mf-types/compiled-types/widgets/OccupancyHistoryChart.d.ts.map +1 -0
  11. package/dist/@mf-types/compiled-types/widgets/OccupancyPanel.d.ts +11 -0
  12. package/dist/@mf-types/compiled-types/widgets/OccupancyPanel.d.ts.map +1 -0
  13. package/dist/@mf-types/compiled-types/widgets/chart-utils.d.ts +98 -0
  14. package/dist/@mf-types/compiled-types/widgets/chart-utils.d.ts.map +1 -0
  15. package/dist/@mf-types/compiled-types/widgets/index.d.ts +28 -0
  16. package/dist/@mf-types/compiled-types/widgets/index.d.ts.map +1 -0
  17. package/dist/@mf-types/widgets.d.ts +2 -0
  18. package/dist/@mf-types.d.ts +3 -0
  19. package/dist/@mf-types.zip +0 -0
  20. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.mjs-CCBTZBOa.mjs +12 -0
  21. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-OesvKBZV.mjs +16 -0
  22. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-D0mniK1l.mjs +15 -0
  23. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-DoWbefqS.mjs +104 -0
  24. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-52bfkwC8.mjs +85 -0
  25. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.mjs-CVrnrGED.mjs +62 -0
  26. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare__react__loadShare__.mjs-DuO9h7li.mjs +85 -0
  27. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare__react__loadShare__.mjs_commonjs-proxy-CmqNjq44.mjs +29 -0
  28. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-BsyrX6NO.mjs +36 -0
  29. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_2_dom__loadShare__.mjs-Dp8hqYOB.mjs +45 -0
  30. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-CA8cCIEl.mjs +6 -0
  31. package/dist/__mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs-BZjEt71l.mjs +34 -0
  32. package/dist/_stub.js +1397 -0
  33. package/dist/_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-Cm7MAUA1.mjs +157 -0
  34. package/dist/client-DdXDZxzK.mjs +10063 -0
  35. package/dist/getErrorShape-BPSzUA7W-TlK8ipWe.mjs +211 -0
  36. package/dist/hostInit-WKMmag4S.mjs +168 -0
  37. package/dist/index-B4OKsa9p.mjs +2603 -0
  38. package/dist/index-C3iAUQqS.mjs +533 -0
  39. package/dist/index-D0dNM7_R.mjs +2892 -0
  40. package/dist/index-DKqbmJDl.mjs +2464 -0
  41. package/dist/index-DnFVXz0U.mjs +14162 -0
  42. package/dist/index-DyYvUfc7.mjs +725 -0
  43. package/dist/index-Oq45bZIA.mjs +17936 -0
  44. package/dist/index-k0CA0h_r.mjs +185 -0
  45. package/dist/index-kIgjN-uq.mjs +435 -0
  46. package/dist/index-xncRG7-x.mjs +2713 -0
  47. package/dist/index.d.mts +190 -0
  48. package/dist/index.d.ts +190 -0
  49. package/dist/index.js +2623 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/index.mjs +2602 -0
  52. package/dist/index.mjs.map +1 -0
  53. package/dist/jsx-runtime-4ro1c69i.mjs +55 -0
  54. package/dist/remoteEntry.js +85 -0
  55. package/dist/virtualExposes-8FzWTdq3.mjs +42 -0
  56. package/package.json +89 -0
@@ -0,0 +1,85 @@
1
+ import { d as g } from "./index-D0dNM7_R.mjs";
2
+ typeof __VUE_HMR_RUNTIME__ > "u" && (globalThis.__VUE_HMR_RUNTIME__ = { createRecord() {
3
+ }, rerender() {
4
+ }, reload() {
5
+ } });
6
+ const p = "__mf_init____mf__virtual/__mfe_internal__addon_pipeline_analytics_widgets__mf_v__runtimeInit__mf_v__.js__";
7
+ let c = globalThis[p];
8
+ if (!c) {
9
+ let e, t;
10
+ const n = new Promise((l, i) => {
11
+ e = l, t = i;
12
+ });
13
+ c = globalThis[p] = {
14
+ initPromise: n,
15
+ initResolve: e,
16
+ initReject: t
17
+ }, typeof window > "u" && e({
18
+ loadRemote: function() {
19
+ return Promise.resolve(void 0);
20
+ },
21
+ loadShare: function() {
22
+ return Promise.resolve(void 0);
23
+ }
24
+ });
25
+ }
26
+ const w = c.initResolve, f = "__mf_module_cache__";
27
+ globalThis[f] ||= { share: {}, remote: {} };
28
+ globalThis[f].share ||= {};
29
+ globalThis[f].remote ||= {};
30
+ const u = {}, m = "default", h = "__mfe_internal__addon_pipeline_analytics_widgets";
31
+ let a, s, _;
32
+ async function d(e) {
33
+ for (let t = 0; ; t++)
34
+ try {
35
+ return await e();
36
+ } catch (n) {
37
+ throw n;
38
+ }
39
+ }
40
+ async function R() {
41
+ return s || (s = d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-Cm7MAUA1.mjs")).catch((e) => {
42
+ throw s = void 0, e;
43
+ })), s;
44
+ }
45
+ async function v() {
46
+ return _ || (_ = d(() => import("./virtualExposes-8FzWTdq3.mjs")).then((e) => e.default ?? e).catch((e) => {
47
+ throw _ = void 0, e;
48
+ })), _;
49
+ }
50
+ async function T(e = {}, t = []) {
51
+ const { usedShared: n, usedRemotes: l } = await R(), i = {
52
+ name: h,
53
+ remotes: l,
54
+ shared: n,
55
+ plugins: [],
56
+ shareStrategy: "version-first"
57
+ };
58
+ a ? a.initOptions(i) : a = g.createInstance(i);
59
+ const o = a;
60
+ var r = u[m];
61
+ if (r || (r = u[m] = { from: h }), !(t.indexOf(r) >= 0)) {
62
+ t.push(r), o.initShareScopeMap("default", e), w(o);
63
+ try {
64
+ await d(async () => {
65
+ await Promise.all(await o.initializeSharing("default", {
66
+ strategy: "version-first",
67
+ from: "build",
68
+ initScope: t
69
+ }));
70
+ });
71
+ } catch (y) {
72
+ console.error("[Module Federation]", y);
73
+ }
74
+ return o;
75
+ }
76
+ }
77
+ async function b(e) {
78
+ const t = await v();
79
+ if (!(e in t)) throw new Error(`[Module Federation] Module ${e} does not exist in container.`);
80
+ return t[e]().then((n) => () => n);
81
+ }
82
+ export {
83
+ b as get,
84
+ T as init
85
+ };
@@ -0,0 +1,42 @@
1
+ const l = {}, r = /* @__PURE__ */ new Set();
2
+ let o = Promise.resolve();
3
+ async function u(t) {
4
+ const e = o.then(t, t);
5
+ return o = e.then(
6
+ () => {
7
+ },
8
+ () => {
9
+ }
10
+ ), e;
11
+ }
12
+ async function c(t) {
13
+ if (typeof document > "u")
14
+ return;
15
+ const e = l[t] || [];
16
+ await Promise.all(
17
+ e.map((i) => {
18
+ const n = new URL(i, import.meta.url).href;
19
+ return r.has(n) || (r.add(n), document.querySelector(
20
+ `link[rel="stylesheet"][data-mf-href="${n}"]`
21
+ )) ? Promise.resolve() : new Promise((a, d) => {
22
+ const s = document.createElement("link");
23
+ s.rel = "stylesheet", s.href = n, s.setAttribute("data-mf-href", n), s.onload = () => a(), s.onerror = () => d(new Error(`[Module Federation] Failed to load CSS asset: ${n}`)), document.head.appendChild(s);
24
+ });
25
+ })
26
+ );
27
+ }
28
+ const m = {
29
+ "./widgets": async () => {
30
+ await c("./widgets");
31
+ const t = await u(
32
+ () => import("./_stub.js")
33
+ ), e = {};
34
+ return Object.assign(e, t), Object.defineProperty(e, "__esModule", {
35
+ value: !0,
36
+ enumerable: !1
37
+ }), e;
38
+ }
39
+ };
40
+ export {
41
+ m as default
42
+ };
package/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "@camstack/addon-pipeline-analytics",
3
+ "version": "0.1.1",
4
+ "description": "Post-detection refinement: SORT tracking, zone classification, state analysis, per-kind event storage (motion/object/audio), unified media store",
5
+ "keywords": [
6
+ "camstack",
7
+ "addon",
8
+ "camstack-addon",
9
+ "pipeline-analytics",
10
+ "tracking",
11
+ "detection-refinement"
12
+ ],
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/camstack/server"
17
+ },
18
+ "main": "./dist/index.js",
19
+ "module": "./dist/index.mjs",
20
+ "types": "./dist/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.mjs",
25
+ "require": "./dist/index.js"
26
+ },
27
+ "./package.json": "./package.json"
28
+ },
29
+ "camstack": {
30
+ "displayName": "Pipeline Analytics",
31
+ "addons": [
32
+ {
33
+ "id": "pipeline-analytics",
34
+ "name": "Pipeline Analytics",
35
+ "version": "0.1.0",
36
+ "description": "Refines raw per-frame detections (from the pipeline runner) into tracks, per-kind events, and persisted media. Subscribes to PipelineInferenceResult + AudioLevel on the event bus; no synchronous processFrame call.",
37
+ "entry": "./dist/index.js",
38
+ "capabilities": [
39
+ {
40
+ "name": "pipeline-analytics",
41
+ "kind": "wrapper",
42
+ "defaultActive": true
43
+ },
44
+ {
45
+ "name": "zone-analytics"
46
+ },
47
+ {
48
+ "name": "audio-metrics"
49
+ },
50
+ {
51
+ "name": "addon-widgets-source"
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ },
57
+ "files": [
58
+ "dist"
59
+ ],
60
+ "scripts": {
61
+ "build": "tsup && vite build --config vite.widgets.config.ts",
62
+ "build:server": "tsup",
63
+ "build:widgets": "vite build --config vite.widgets.config.ts",
64
+ "dev": "tsup --watch",
65
+ "typecheck": "tsc --noEmit",
66
+ "test": "vitest run --passWithNoTests"
67
+ },
68
+ "peerDependencies": {
69
+ "@camstack/types": "^0.1.0",
70
+ "react": ">=18",
71
+ "react-dom": ">=18"
72
+ },
73
+ "dependencies": {
74
+ "sharp": "^0.34.0"
75
+ },
76
+ "devDependencies": {
77
+ "@camstack/types": "*",
78
+ "@camstack/ui-library": "*",
79
+ "@module-federation/vite": "^1.15.2",
80
+ "@vitejs/plugin-react": "^4.0.0",
81
+ "lucide-react": "^0.511.0",
82
+ "react": "^19.0.0",
83
+ "react-dom": "^19.0.0",
84
+ "tsup": "^8.0.0",
85
+ "typescript": "~5.9.0",
86
+ "vite": "^6.3.0",
87
+ "vitest": "^3.0.0"
88
+ }
89
+ }