@camstack/addon-pipeline-orchestrator 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 (59) hide show
  1. package/dist/@mf-types/compiled-types/widgets/PipelineQuickStats.d.ts +3 -0
  2. package/dist/@mf-types/compiled-types/widgets/PipelineQuickStats.d.ts.map +1 -0
  3. package/dist/@mf-types/compiled-types/widgets/ZoneEditor.d.ts +17 -0
  4. package/dist/@mf-types/compiled-types/widgets/ZoneEditor.d.ts.map +1 -0
  5. package/dist/@mf-types/compiled-types/widgets/ZonesTab.d.ts +7 -0
  6. package/dist/@mf-types/compiled-types/widgets/ZonesTab.d.ts.map +1 -0
  7. package/dist/@mf-types/compiled-types/widgets/index.d.ts +13 -0
  8. package/dist/@mf-types/compiled-types/widgets/index.d.ts.map +1 -0
  9. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneCanvas.d.ts +60 -0
  10. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneCanvas.d.ts.map +1 -0
  11. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneForm.d.ts +23 -0
  12. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneForm.d.ts.map +1 -0
  13. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneList.d.ts +15 -0
  14. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneList.d.ts.map +1 -0
  15. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneOverlay.d.ts +19 -0
  16. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneOverlay.d.ts.map +1 -0
  17. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneRulesEditor.d.ts +9 -0
  18. package/dist/@mf-types/compiled-types/widgets/zone-editor/ZoneRulesEditor.d.ts.map +1 -0
  19. package/dist/@mf-types/widgets.d.ts +2 -0
  20. package/dist/@mf-types.d.ts +3 -0
  21. package/dist/@mf-types.zip +0 -0
  22. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.mjs-CCBTZBOa.mjs +12 -0
  23. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-CvusB3VY.mjs +17 -0
  24. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.mjs-BrYYwKk_.mjs +34 -0
  25. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-DoWbefqS.mjs +104 -0
  26. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-D4eEXltm.mjs +85 -0
  27. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.mjs-CVrnrGED.mjs +62 -0
  28. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.mjs-B848Fc_m.mjs +88 -0
  29. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.mjs_commonjs-proxy-B-q1guKT.mjs +29 -0
  30. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-Cg6QsnjR.mjs +36 -0
  31. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react_mf_2_dom__loadShare__.mjs-Dp8hqYOB.mjs +45 -0
  32. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-CeGb2_QF.mjs +6 -0
  33. package/dist/__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs-BBmNf5hf.mjs +34 -0
  34. package/dist/_stub.js +16268 -0
  35. package/dist/_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-C5Dbnljh.mjs +157 -0
  36. package/dist/client-BkQItW6e.mjs +9836 -0
  37. package/dist/getErrorShape-BPSzUA7W-TlK8ipWe.mjs +211 -0
  38. package/dist/hostInit-xzBPWUz0.mjs +168 -0
  39. package/dist/index-BI-_eQhe.mjs +185 -0
  40. package/dist/index-BJzn4K_R.mjs +2603 -0
  41. package/dist/index-BZ6YICSw.mjs +17936 -0
  42. package/dist/index-Bj470a3A.mjs +725 -0
  43. package/dist/index-C3iAUQqS.mjs +533 -0
  44. package/dist/index-CWkKuNLr.mjs +232 -0
  45. package/dist/index-Cj-UePAd.mjs +435 -0
  46. package/dist/index-D0dNM7_R.mjs +2892 -0
  47. package/dist/index-DNWfP1gi.mjs +2464 -0
  48. package/dist/index-DnFVXz0U.mjs +14162 -0
  49. package/dist/index-xncRG7-x.mjs +2713 -0
  50. package/dist/index.d.mts +907 -0
  51. package/dist/index.d.ts +907 -0
  52. package/dist/index.js +18670 -0
  53. package/dist/index.js.map +1 -0
  54. package/dist/index.mjs +18668 -0
  55. package/dist/index.mjs.map +1 -0
  56. package/dist/jsx-runtime-CJ4xYF4l.mjs +55 -0
  57. package/dist/remoteEntry.js +85 -0
  58. package/dist/virtualExposes-8FzWTdq3.mjs +42 -0
  59. package/package.json +95 -0
@@ -0,0 +1,55 @@
1
+ import { a as f } from "./__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare__react__loadShare__.mjs_commonjs-proxy-B-q1guKT.mjs";
2
+ function p(s, t) {
3
+ for (var e = 0; e < t.length; e++) {
4
+ const r = t[e];
5
+ if (typeof r != "string" && !Array.isArray(r)) {
6
+ for (const o in r)
7
+ if (o !== "default" && !(o in s)) {
8
+ const u = Object.getOwnPropertyDescriptor(r, o);
9
+ u && Object.defineProperty(s, o, u.get ? u : {
10
+ enumerable: !0,
11
+ get: () => r[o]
12
+ });
13
+ }
14
+ }
15
+ }
16
+ return Object.freeze(Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }));
17
+ }
18
+ var a = { exports: {} }, n = {};
19
+ /**
20
+ * @license React
21
+ * react-jsx-runtime.production.js
22
+ *
23
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */
28
+ var x = Symbol.for("react.transitional.element"), j = Symbol.for("react.fragment");
29
+ function l(s, t, e) {
30
+ var r = null;
31
+ if (e !== void 0 && (r = "" + e), t.key !== void 0 && (r = "" + t.key), "key" in t) {
32
+ e = {};
33
+ for (var o in t)
34
+ o !== "key" && (e[o] = t[o]);
35
+ } else e = t;
36
+ return t = e.ref, {
37
+ $$typeof: x,
38
+ type: s,
39
+ key: r,
40
+ ref: t !== void 0 ? t : null,
41
+ props: e
42
+ };
43
+ }
44
+ n.Fragment = j;
45
+ n.jsx = l;
46
+ n.jsxs = l;
47
+ a.exports = n;
48
+ var i = a.exports;
49
+ const d = /* @__PURE__ */ f(i), _ = /* @__PURE__ */ p({
50
+ __proto__: null,
51
+ default: d
52
+ }, [i]);
53
+ export {
54
+ _ as j
55
+ };
@@ -0,0 +1,85 @@
1
+ import { d as w } 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_orchestrator_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 y = 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_orchestrator_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_orchestrator_widgets-C5Dbnljh.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 = w.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), y(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 (g) {
72
+ console.error("[Module Federation]", g);
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,95 @@
1
+ {
2
+ "name": "@camstack/addon-pipeline-orchestrator",
3
+ "version": "0.1.1",
4
+ "description": "Hub-side camera-to-agent load balancer — tracks runner capacity and dispatches attachCamera calls to the optimal pipeline-runner instance",
5
+ "keywords": [
6
+ "camstack",
7
+ "addon",
8
+ "camstack-addon",
9
+ "pipeline",
10
+ "orchestrator",
11
+ "load-balancer"
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 Orchestrator",
31
+ "addons": [
32
+ {
33
+ "id": "pipeline-orchestrator",
34
+ "name": "Pipeline Orchestrator",
35
+ "version": "0.1.0",
36
+ "description": "Hub-side camera-to-agent load balancer with L1 manual affinity, L2 capacity, and L3 hardware-aware dispatch",
37
+ "entry": "./dist/index.js",
38
+ "execution": {
39
+ "placement": "hub-only",
40
+ "group": "pipeline"
41
+ },
42
+ "capabilities": [
43
+ {
44
+ "name": "pipeline-orchestrator"
45
+ },
46
+ {
47
+ "name": "zones"
48
+ },
49
+ {
50
+ "name": "zone-rules"
51
+ },
52
+ {
53
+ "name": "addon-widgets-source"
54
+ }
55
+ ],
56
+ "passive": true
57
+ }
58
+ ]
59
+ },
60
+ "files": [
61
+ "dist"
62
+ ],
63
+ "scripts": {
64
+ "build": "tsup && vite build --config vite.widgets.config.ts",
65
+ "build:server": "tsup",
66
+ "build:widgets": "vite build --config vite.widgets.config.ts",
67
+ "dev": "tsup --watch",
68
+ "typecheck": "tsc --noEmit",
69
+ "test": "vitest run"
70
+ },
71
+ "peerDependencies": {
72
+ "@camstack/types": "^0.1.0",
73
+ "react": ">=18",
74
+ "react-dom": ">=18"
75
+ },
76
+ "devDependencies": {
77
+ "@camstack/addon-pipeline-runner": "*",
78
+ "@camstack/addon-test-integration": "*",
79
+ "@camstack/types": "*",
80
+ "@camstack/ui-library": "*",
81
+ "@module-federation/vite": "^1.15.2",
82
+ "@vitejs/plugin-react": "^4.0.0",
83
+ "konva": "^10.2.3",
84
+ "lucide-react": "^0.511.0",
85
+ "moleculer": "^0.14.35",
86
+ "react": "^19.0.0",
87
+ "react-dom": "^19.0.0",
88
+ "react-konva": "^19.2.3",
89
+ "tsup": "^8.0.0",
90
+ "typescript": "~5.9.0",
91
+ "vite": "^6.3.0",
92
+ "vitest": "^3.0.0",
93
+ "zod": "^4.3.6"
94
+ }
95
+ }