@camstack/addon-pipeline-orchestrator 1.1.33 → 1.1.35
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/_stub.js +311 -299
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-D_of6q00.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-vZTi0c_a.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-iO-Czqhz.mjs +26 -0
- package/dist/{_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CoYg1yd1.mjs → _virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-IzxaZxNX.mjs} +1 -1
- package/dist/{hostInit-BhDuKPG5.mjs → hostInit-gtkVoSWG.mjs} +3 -3
- package/dist/index.js +394 -30
- package/dist/index.mjs +370 -30
- package/dist/remoteEntry.js +1 -1
- package/package.json +4 -1
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DGe4IqDd.mjs +0 -26
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
1
4
|
//#region ../../node_modules/zod/v4/core/core.js
|
|
2
5
|
var _a$1;
|
|
3
6
|
function $constructor(name, initializer, params) {
|
|
@@ -4627,7 +4630,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4627
4630
|
return inst;
|
|
4628
4631
|
}
|
|
4629
4632
|
//#endregion
|
|
4630
|
-
//#region ../types/dist/sleep-
|
|
4633
|
+
//#region ../types/dist/sleep-DJaTV2D7.mjs
|
|
4631
4634
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4632
4635
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4633
4636
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5348,10 +5351,6 @@ function hydrateField(field, values) {
|
|
|
5348
5351
|
};
|
|
5349
5352
|
}
|
|
5350
5353
|
const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
|
|
5351
|
-
if (field.type === "password") return {
|
|
5352
|
-
...field,
|
|
5353
|
-
value: ""
|
|
5354
|
-
};
|
|
5355
5354
|
const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
|
|
5356
5355
|
return {
|
|
5357
5356
|
...field,
|
|
@@ -7111,9 +7110,28 @@ function method(input, output, options) {
|
|
|
7111
7110
|
timeoutMs: options?.timeoutMs
|
|
7112
7111
|
};
|
|
7113
7112
|
}
|
|
7113
|
+
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
7114
|
+
var VersionOutputSchema$1 = object({ version: string() });
|
|
7115
|
+
method(_void(), StaticDirOutputSchema$1), method(_void(), VersionOutputSchema$1);
|
|
7114
7116
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
7115
7117
|
var VersionOutputSchema = object({ version: string() });
|
|
7116
|
-
|
|
7118
|
+
/**
|
|
7119
|
+
* viewer-ui — serves the CamStack VIEWER web build (the Expo/React-Native
|
|
7120
|
+
* universal client's PWA export) from the hub, alongside admin-ui. Mirrors
|
|
7121
|
+
* `admin-ui` exactly: a singleton, server-internal cap exposing the static
|
|
7122
|
+
* dist directory + build version so `main.ts` can mount the SPA under a
|
|
7123
|
+
* dedicated prefix.
|
|
7124
|
+
*/
|
|
7125
|
+
var viewerUiCapability = {
|
|
7126
|
+
name: "viewer-ui",
|
|
7127
|
+
scope: "system",
|
|
7128
|
+
mode: "singleton",
|
|
7129
|
+
internal: true,
|
|
7130
|
+
methods: {
|
|
7131
|
+
getStaticDir: method(_void(), StaticDirOutputSchema),
|
|
7132
|
+
getVersion: method(_void(), VersionOutputSchema)
|
|
7133
|
+
}
|
|
7134
|
+
};
|
|
7117
7135
|
/**
|
|
7118
7136
|
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
7119
7137
|
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
@@ -13428,6 +13446,17 @@ var WidgetMetadataSchema = object({
|
|
|
13428
13446
|
deviceContext: boolean().default(false),
|
|
13429
13447
|
integrationContext: boolean().default(false)
|
|
13430
13448
|
}),
|
|
13449
|
+
/**
|
|
13450
|
+
* Loadable BEFORE authentication. The normal widget registry listing
|
|
13451
|
+
* (`addon-widgets.listWidgets`) is auth-gated, so a pre-auth surface
|
|
13452
|
+
* (the login page) cannot discover a widget through it. A widget that
|
|
13453
|
+
* declares `preAuth: true` marks itself as safe to mount on a pre-auth
|
|
13454
|
+
* screen — it is surfaced through the PUBLIC `auth.listLoginMethods`
|
|
13455
|
+
* login-method contribution channel (see `login-method.cap.ts`) rather
|
|
13456
|
+
* than the authenticated registry, and its bundle is served by the
|
|
13457
|
+
* public `/api/addon-widgets/:addonId/*` static route. Defaults false.
|
|
13458
|
+
*/
|
|
13459
|
+
preAuth: boolean().optional().default(false),
|
|
13431
13460
|
/** Dashboard placement HINTS (operator can override per instance). */
|
|
13432
13461
|
defaultSize: WidgetSizeEnum.default("md"),
|
|
13433
13462
|
allowedSizes: array(WidgetSizeEnum).readonly().default([
|
|
@@ -13735,6 +13764,66 @@ method(object({
|
|
|
13735
13764
|
password: string()
|
|
13736
13765
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
13737
13766
|
/**
|
|
13767
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
13768
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
13769
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
13770
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
13771
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
13772
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
13773
|
+
*
|
|
13774
|
+
* A contribution is a discriminated union on `kind`:
|
|
13775
|
+
*
|
|
13776
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
13777
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
13778
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
13779
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
13780
|
+
* login page needs NO change.
|
|
13781
|
+
*
|
|
13782
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
13783
|
+
* `loadRemoteBundle`) for an in-page ceremony. Covers the passkey
|
|
13784
|
+
* login ceremony, which must run `@simplewebauthn/browser` INSIDE the
|
|
13785
|
+
* addon bundle. The referenced widget also declares `preAuth: true` in
|
|
13786
|
+
* its `addon-widgets-source` catalog entry. `auth.listLoginMethods`
|
|
13787
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`.
|
|
13788
|
+
*
|
|
13789
|
+
* Every contribution carries a `stage`:
|
|
13790
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
13791
|
+
* magic-link buttons; a future usernameless passkey).
|
|
13792
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
13793
|
+
* returned `factors` (passkey-as-2FA today).
|
|
13794
|
+
*
|
|
13795
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
13796
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
13797
|
+
* tRPC router.
|
|
13798
|
+
*/
|
|
13799
|
+
/** When a login method renders in the two-phase login flow. */
|
|
13800
|
+
var LoginStageEnum = _enum(["primary", "second-factor"]);
|
|
13801
|
+
/** One login-method contribution — redirect button OR pre-auth widget. */
|
|
13802
|
+
var LoginMethodContributionSchema = discriminatedUnion("kind", [object({
|
|
13803
|
+
kind: literal("redirect"),
|
|
13804
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
13805
|
+
id: string(),
|
|
13806
|
+
/** Operator-facing button label. */
|
|
13807
|
+
label: string(),
|
|
13808
|
+
/** lucide-react icon name. */
|
|
13809
|
+
icon: string().optional(),
|
|
13810
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
13811
|
+
startUrl: string(),
|
|
13812
|
+
stage: LoginStageEnum
|
|
13813
|
+
}), object({
|
|
13814
|
+
kind: literal("widget"),
|
|
13815
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
13816
|
+
id: string(),
|
|
13817
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
13818
|
+
addonId: string(),
|
|
13819
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
13820
|
+
bundle: string(),
|
|
13821
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
13822
|
+
remote: WidgetRemoteSchema,
|
|
13823
|
+
stage: LoginStageEnum
|
|
13824
|
+
})]);
|
|
13825
|
+
method(_void(), array(LoginMethodContributionSchema).readonly());
|
|
13826
|
+
/**
|
|
13738
13827
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
13739
13828
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
13740
13829
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -16706,6 +16795,131 @@ var pipelineOrchestratorCapability = {
|
|
|
16706
16795
|
}
|
|
16707
16796
|
};
|
|
16708
16797
|
/**
|
|
16798
|
+
* server-management — per-NODE singleton capability for a node's ROOT
|
|
16799
|
+
* package lifecycle (runtime-updatable node packages, phase 2: hub + docker
|
|
16800
|
+
* agents).
|
|
16801
|
+
*
|
|
16802
|
+
* Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
|
|
16803
|
+
* on agents) carries the whole software stack in its npm dep tree, so ONE
|
|
16804
|
+
* version describes the node. Updates install into
|
|
16805
|
+
* `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
|
|
16806
|
+
* starter (probation boot + auto-rollback to N-1).
|
|
16807
|
+
*
|
|
16808
|
+
* Providers:
|
|
16809
|
+
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
16810
|
+
* (`buildServerProviders` in trpc.router.ts) — the default target for
|
|
16811
|
+
* unpinned calls.
|
|
16812
|
+
* - AGENT: `AgentUpdateService` registered by the agent bootstrap under
|
|
16813
|
+
* the synthetic `agent-runtime` addonId and declared in the agent's
|
|
16814
|
+
* `$hub.registerNode` manifest.
|
|
16815
|
+
*
|
|
16816
|
+
* Node routing: singleton caps get the codegen/runtime-builder `nodeId`
|
|
16817
|
+
* injection on every method — `input.nodeId` (or `nodePin(nodeId)` from the
|
|
16818
|
+
* SDK) routes the call to that node's provider via the standard remote
|
|
16819
|
+
* proxy (`createCapabilityProxy` → `$agent-cap-fwd` → the agent's
|
|
16820
|
+
* in-process provider lookup). No `nodeId` → the hub's own provider.
|
|
16821
|
+
*
|
|
16822
|
+
* Spec: docs/superpowers/specs/2026-07-12-runtime-updatable-node-packages-design.md
|
|
16823
|
+
*/
|
|
16824
|
+
/**
|
|
16825
|
+
* Where the running hub's code was loaded from:
|
|
16826
|
+
* - `workspace` — dev checkout (tsx / workspace dist); the starter defers to
|
|
16827
|
+
* plain resolution and runtime updates are refused.
|
|
16828
|
+
* - `baked` — the immutable image seed closure (no data-dir root active).
|
|
16829
|
+
* - `data-root` — the runtime-updatable `<dataDir>/server-root` closure.
|
|
16830
|
+
*/
|
|
16831
|
+
var ServerBootModeSchema = _enum([
|
|
16832
|
+
"workspace",
|
|
16833
|
+
"baked",
|
|
16834
|
+
"data-root"
|
|
16835
|
+
]);
|
|
16836
|
+
/**
|
|
16837
|
+
* Update lifecycle state:
|
|
16838
|
+
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
16839
|
+
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
16840
|
+
* restarted onto it (still running the OLD version).
|
|
16841
|
+
* - `awaiting-confirmation` — the node HAS restarted onto the staged version
|
|
16842
|
+
* (it is the active probation boot) and is waiting to confirm boot-health.
|
|
16843
|
+
* Apply/rollback are refused in this state and the node must NOT be
|
|
16844
|
+
* manually restarted, or the probation boot auto-rolls-back.
|
|
16845
|
+
*/
|
|
16846
|
+
var ServerUpdateStateSchema = _enum([
|
|
16847
|
+
"idle",
|
|
16848
|
+
"checking",
|
|
16849
|
+
"staging",
|
|
16850
|
+
"pending-restart",
|
|
16851
|
+
"awaiting-confirmation"
|
|
16852
|
+
]);
|
|
16853
|
+
var ServerRollbackInfoSchema = object({
|
|
16854
|
+
/** The version that failed (or was manually rolled back). */
|
|
16855
|
+
fromVersion: string(),
|
|
16856
|
+
/** The version rolled back to; null = the baked seed. */
|
|
16857
|
+
toVersion: string().nullable(),
|
|
16858
|
+
atMs: number(),
|
|
16859
|
+
reason: string()
|
|
16860
|
+
});
|
|
16861
|
+
var ServerPackageStatusSchema = object({
|
|
16862
|
+
/** Root package name (`@camstack/server` on the hub). */
|
|
16863
|
+
packageName: string(),
|
|
16864
|
+
/** Version of the code the running process ACTUALLY loaded. */
|
|
16865
|
+
runningVersion: string().nullable(),
|
|
16866
|
+
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
16867
|
+
nodeRuntimeVersion: string().nullable(),
|
|
16868
|
+
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
16869
|
+
activeVersion: string().nullable(),
|
|
16870
|
+
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
16871
|
+
previousVersion: string().nullable(),
|
|
16872
|
+
/** Version of the immutable baked seed closure (image fallback). */
|
|
16873
|
+
seedVersion: string().nullable(),
|
|
16874
|
+
/** Latest registry version from the most recent check (null = never checked). */
|
|
16875
|
+
latestVersion: string().nullable(),
|
|
16876
|
+
updateAvailable: boolean(),
|
|
16877
|
+
bootMode: ServerBootModeSchema,
|
|
16878
|
+
updateState: ServerUpdateStateSchema,
|
|
16879
|
+
/** Version staged + awaiting its probation boot, when one is pending. */
|
|
16880
|
+
pendingVersion: string().nullable(),
|
|
16881
|
+
/** Set when the last freshly-activated version failed its boot health-check. */
|
|
16882
|
+
rolledBack: ServerRollbackInfoSchema.nullable(),
|
|
16883
|
+
/**
|
|
16884
|
+
* True when `server-root/state.json` EXISTS but is unreadable/corrupt — the
|
|
16885
|
+
* hub is running from the baked seed (or workspace) while installed data-dir
|
|
16886
|
+
* versions are being IGNORED. Surfaced as a warning in the UI.
|
|
16887
|
+
*/
|
|
16888
|
+
stateFileCorrupt: boolean(),
|
|
16889
|
+
lastCheckedAtMs: number().nullable()
|
|
16890
|
+
});
|
|
16891
|
+
var ServerUpdateCheckResultSchema = object({
|
|
16892
|
+
packageName: string(),
|
|
16893
|
+
runningVersion: string().nullable(),
|
|
16894
|
+
latestVersion: string().nullable(),
|
|
16895
|
+
updateAvailable: boolean(),
|
|
16896
|
+
checkedAtMs: number(),
|
|
16897
|
+
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
16898
|
+
error: string().nullable()
|
|
16899
|
+
});
|
|
16900
|
+
var ServerUpdateActionResultSchema = object({
|
|
16901
|
+
accepted: boolean(),
|
|
16902
|
+
targetVersion: string().nullable(),
|
|
16903
|
+
/** True when a graceful restart was scheduled to apply the change. */
|
|
16904
|
+
restarting: boolean(),
|
|
16905
|
+
message: string()
|
|
16906
|
+
});
|
|
16907
|
+
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
16908
|
+
kind: "mutation",
|
|
16909
|
+
auth: "admin"
|
|
16910
|
+
}), method(object({
|
|
16911
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
16912
|
+
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
16913
|
+
kind: "mutation",
|
|
16914
|
+
auth: "admin"
|
|
16915
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
16916
|
+
kind: "mutation",
|
|
16917
|
+
auth: "admin"
|
|
16918
|
+
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
16919
|
+
kind: "mutation",
|
|
16920
|
+
auth: "admin"
|
|
16921
|
+
});
|
|
16922
|
+
/**
|
|
16709
16923
|
* Query filter for settings-store collections.
|
|
16710
16924
|
*/
|
|
16711
16925
|
var QueryFilterSchema = object({
|
|
@@ -18692,6 +18906,16 @@ var TopologyCategorySchema = object({
|
|
|
18692
18906
|
healthy: number(),
|
|
18693
18907
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
18694
18908
|
});
|
|
18909
|
+
/**
|
|
18910
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
|
|
18911
|
+
* `@camstack/agent` on agents) as reported by its `registerNode` manifest —
|
|
18912
|
+
* version visibility for the Server management surface. Nullable: offline
|
|
18913
|
+
* rows and pre-phase-2 nodes report none.
|
|
18914
|
+
*/
|
|
18915
|
+
var TopologyRootPackageSchema = object({
|
|
18916
|
+
name: string(),
|
|
18917
|
+
version: string()
|
|
18918
|
+
});
|
|
18695
18919
|
var TopologyNodeSchema = object({
|
|
18696
18920
|
id: string(),
|
|
18697
18921
|
name: string(),
|
|
@@ -18715,7 +18939,8 @@ var TopologyNodeSchema = object({
|
|
|
18715
18939
|
status: string()
|
|
18716
18940
|
})).readonly(),
|
|
18717
18941
|
processes: array(TopologyProcessSchema).readonly(),
|
|
18718
|
-
categories: array(TopologyCategorySchema).readonly()
|
|
18942
|
+
categories: array(TopologyCategorySchema).readonly(),
|
|
18943
|
+
rootPackage: TopologyRootPackageSchema.nullable()
|
|
18719
18944
|
});
|
|
18720
18945
|
var CapUsageEdgeSchema = object({
|
|
18721
18946
|
callerAddonId: string(),
|
|
@@ -21515,6 +21740,12 @@ Object.freeze({
|
|
|
21515
21740
|
addonId: null,
|
|
21516
21741
|
access: "create"
|
|
21517
21742
|
},
|
|
21743
|
+
"loginMethod.getLoginMethods": {
|
|
21744
|
+
capName: "login-method",
|
|
21745
|
+
capScope: "system",
|
|
21746
|
+
addonId: null,
|
|
21747
|
+
access: "view"
|
|
21748
|
+
},
|
|
21518
21749
|
"mediaPlayer.next": {
|
|
21519
21750
|
capName: "media-player",
|
|
21520
21751
|
capScope: "device",
|
|
@@ -22877,6 +23108,36 @@ Object.freeze({
|
|
|
22877
23108
|
addonId: null,
|
|
22878
23109
|
access: "create"
|
|
22879
23110
|
},
|
|
23111
|
+
"serverManagement.applyServerUpdate": {
|
|
23112
|
+
capName: "server-management",
|
|
23113
|
+
capScope: "system",
|
|
23114
|
+
addonId: null,
|
|
23115
|
+
access: "create"
|
|
23116
|
+
},
|
|
23117
|
+
"serverManagement.checkServerUpdate": {
|
|
23118
|
+
capName: "server-management",
|
|
23119
|
+
capScope: "system",
|
|
23120
|
+
addonId: null,
|
|
23121
|
+
access: "create"
|
|
23122
|
+
},
|
|
23123
|
+
"serverManagement.getServerPackageStatus": {
|
|
23124
|
+
capName: "server-management",
|
|
23125
|
+
capScope: "system",
|
|
23126
|
+
addonId: null,
|
|
23127
|
+
access: "view"
|
|
23128
|
+
},
|
|
23129
|
+
"serverManagement.restartServer": {
|
|
23130
|
+
capName: "server-management",
|
|
23131
|
+
capScope: "system",
|
|
23132
|
+
addonId: null,
|
|
23133
|
+
access: "create"
|
|
23134
|
+
},
|
|
23135
|
+
"serverManagement.rollbackServerUpdate": {
|
|
23136
|
+
capName: "server-management",
|
|
23137
|
+
capScope: "system",
|
|
23138
|
+
addonId: null,
|
|
23139
|
+
access: "create"
|
|
23140
|
+
},
|
|
22880
23141
|
"settingsStore.count": {
|
|
22881
23142
|
capName: "settings-store",
|
|
22882
23143
|
capScope: "system",
|
|
@@ -23741,6 +24002,18 @@ Object.freeze({
|
|
|
23741
24002
|
addonId: null,
|
|
23742
24003
|
access: "view"
|
|
23743
24004
|
},
|
|
24005
|
+
"viewerUi.getStaticDir": {
|
|
24006
|
+
capName: "viewer-ui",
|
|
24007
|
+
capScope: "system",
|
|
24008
|
+
addonId: null,
|
|
24009
|
+
access: "view"
|
|
24010
|
+
},
|
|
24011
|
+
"viewerUi.getVersion": {
|
|
24012
|
+
capName: "viewer-ui",
|
|
24013
|
+
capScope: "system",
|
|
24014
|
+
addonId: null,
|
|
24015
|
+
access: "view"
|
|
24016
|
+
},
|
|
23744
24017
|
"waterHeater.setAway": {
|
|
23745
24018
|
capName: "water-heater",
|
|
23746
24019
|
capScope: "device",
|
|
@@ -26495,7 +26768,7 @@ var DetectionWiringController = class {
|
|
|
26495
26768
|
* the motion stream id.
|
|
26496
26769
|
*
|
|
26497
26770
|
* Public — `PlacementService`'s `buildWatchdogCamera` closure (wired in
|
|
26498
|
-
* `
|
|
26771
|
+
* `orchestrator-bootstrap.ts`) calls straight through to this method.
|
|
26499
26772
|
*/
|
|
26500
26773
|
buildWatchdogCamera(config, deviceName) {
|
|
26501
26774
|
const continuousStages = /* @__PURE__ */ new Map();
|
|
@@ -26519,8 +26792,8 @@ var DetectionWiringController = class {
|
|
|
26519
26792
|
* source refresh on ITS OWN stream so a dropped rfc4571 source
|
|
26520
26793
|
* re-materializes and the runner's frame poller resumes.
|
|
26521
26794
|
*
|
|
26522
|
-
* Public — `PipelineWatchdog`'s `recover` closure (wired in
|
|
26523
|
-
* calls straight through to this method.
|
|
26795
|
+
* Public — `PipelineWatchdog`'s `recover` closure (wired in
|
|
26796
|
+
* `orchestrator-bootstrap.ts`) calls straight through to this method.
|
|
26524
26797
|
*/
|
|
26525
26798
|
recoverPipelineStage(deviceId, stage, streamId) {
|
|
26526
26799
|
if (stage === "audio") {
|
|
@@ -26954,7 +27227,7 @@ function selectRunnerFrameSource(input) {
|
|
|
26954
27227
|
}
|
|
26955
27228
|
//#endregion
|
|
26956
27229
|
//#region src/placement-service.ts
|
|
26957
|
-
/** Key under which the orchestrator stores its per-device manual pin — shared with `readPipelinePin
|
|
27230
|
+
/** Key under which the orchestrator stores its per-device manual pin — shared with `readPipelinePin` (index.ts) and `handleNodeDisconnect` (`node-lifecycle-handler.ts`). */
|
|
26958
27231
|
var PREFERRED_AGENT_SETTING = "preferredAgent";
|
|
26959
27232
|
var PlacementService = class {
|
|
26960
27233
|
deps;
|
|
@@ -28735,6 +29008,8 @@ var PipelineSettingsStore = class PipelineSettingsStore {
|
|
|
28735
29008
|
dispose() {
|
|
28736
29009
|
this.disposed = true;
|
|
28737
29010
|
}
|
|
29011
|
+
blobWriteLock = new KeyedAsyncLock({ isShuttingDown: () => this.disposed });
|
|
29012
|
+
static AGENT_SETTINGS_LOCK_KEY = "agentSettings";
|
|
28738
29013
|
_nodeBindingsState = null;
|
|
28739
29014
|
_templatesState = null;
|
|
28740
29015
|
_agentSettingsState = null;
|
|
@@ -28796,28 +29071,47 @@ var PipelineSettingsStore = class PipelineSettingsStore {
|
|
|
28796
29071
|
async readAgentSettingsMap() {
|
|
28797
29072
|
return { ...await this.agentSettingsState.get() };
|
|
28798
29073
|
}
|
|
28799
|
-
/**
|
|
29074
|
+
/**
|
|
29075
|
+
* Overwrite one agent's settings. Does NOT touch other agents' entries.
|
|
29076
|
+
* The read-modify-write runs under {@link blobWriteLock}, so a concurrent
|
|
29077
|
+
* write for a DIFFERENT node can never be dropped (both re-read the fresh
|
|
29078
|
+
* blob when their turn comes and only overlay their own node's entry).
|
|
29079
|
+
*/
|
|
28800
29080
|
async writeAgentSettings(nodeId, settings) {
|
|
28801
29081
|
if (typeof nodeId !== "string" || nodeId.length === 0 || nodeId === "undefined" || nodeId === "null") {
|
|
28802
29082
|
this.deps.logger.warn("writeAgentSettings: refusing to persist malformed nodeId", { meta: { nodeId } });
|
|
28803
29083
|
return;
|
|
28804
29084
|
}
|
|
28805
|
-
|
|
28806
|
-
|
|
28807
|
-
|
|
28808
|
-
|
|
28809
|
-
|
|
28810
|
-
|
|
28811
|
-
|
|
28812
|
-
|
|
29085
|
+
await this.blobWriteLock.run(PipelineSettingsStore.AGENT_SETTINGS_LOCK_KEY, async () => {
|
|
29086
|
+
const all = await this.readAgentSettingsMap();
|
|
29087
|
+
const existing = all[nodeId];
|
|
29088
|
+
const merged = {
|
|
29089
|
+
...existing,
|
|
29090
|
+
...settings,
|
|
29091
|
+
maxCameras: settings.maxCameras !== void 0 ? settings.maxCameras ?? null : existing?.maxCameras ?? null
|
|
29092
|
+
};
|
|
29093
|
+
await this.agentSettingsState.set({
|
|
29094
|
+
...all,
|
|
29095
|
+
[nodeId]: merged
|
|
29096
|
+
});
|
|
29097
|
+
});
|
|
28813
29098
|
}
|
|
28814
|
-
/**
|
|
29099
|
+
/**
|
|
29100
|
+
* Drop one agent's persisted settings entry. Returns whether an entry
|
|
29101
|
+
* existed (`false` also when the store is already disposed — the locked
|
|
29102
|
+
* section becomes a no-op then). Serialized via {@link blobWriteLock} for
|
|
29103
|
+
* the same lost-write reason as {@link writeAgentSettings}.
|
|
29104
|
+
*/
|
|
28815
29105
|
async removeAgentSettings(nodeId) {
|
|
28816
|
-
|
|
28817
|
-
|
|
28818
|
-
|
|
28819
|
-
|
|
28820
|
-
|
|
29106
|
+
let removed = false;
|
|
29107
|
+
await this.blobWriteLock.run(PipelineSettingsStore.AGENT_SETTINGS_LOCK_KEY, async () => {
|
|
29108
|
+
const all = await this.readAgentSettingsMap();
|
|
29109
|
+
if (!(nodeId in all)) return;
|
|
29110
|
+
const { [nodeId]: _drop, ...rest } = all;
|
|
29111
|
+
await this.agentSettingsState.set(rest);
|
|
29112
|
+
removed = true;
|
|
29113
|
+
});
|
|
29114
|
+
return removed;
|
|
28821
29115
|
}
|
|
28822
29116
|
/** Read the `cameraSettings` map (keyed on `deviceId` as string) via the durable handle. */
|
|
28823
29117
|
async readCameraSettingsMap() {
|
|
@@ -29960,9 +30254,10 @@ var SessionDispatchController = class {
|
|
|
29960
30254
|
this.sessionRegistry.setTeardownTimer(deviceId, timer);
|
|
29961
30255
|
}
|
|
29962
30256
|
/**
|
|
29963
|
-
* The session + motion-watch teardown half of
|
|
29964
|
-
*
|
|
29965
|
-
* `
|
|
30257
|
+
* The session + motion-watch teardown half of `stopDetection` (the other
|
|
30258
|
+
* half — `releaseCamera` + `audio.stopForDevice` — lives in
|
|
30259
|
+
* `DetectionWiringController.stopDetection` since S11 Task 3, which calls
|
|
30260
|
+
* this AFTER those run, same ordering as before).
|
|
29966
30261
|
*
|
|
29967
30262
|
* Stopping/disabling/removing an on-motion camera must also close any
|
|
29968
30263
|
* ACTIVE detection session and release the motion-watch attach.
|
|
@@ -30427,7 +30722,6 @@ async function buildOrchestratorControllers(deps) {
|
|
|
30427
30722
|
},
|
|
30428
30723
|
listZones: async (deviceId) => await zonesProvider?.listZones({ deviceId }) ?? [],
|
|
30429
30724
|
readPipelinePin: (deviceId) => deps.readPipelinePin(deviceId),
|
|
30430
|
-
eventBus: deps.ctx().eventBus,
|
|
30431
30725
|
logger: deps.ctx().logger
|
|
30432
30726
|
});
|
|
30433
30727
|
const deviceConfig = new DeviceConfigContributions({
|
|
@@ -30681,10 +30975,51 @@ async function buildOrchestratorControllers(deps) {
|
|
|
30681
30975
|
};
|
|
30682
30976
|
}
|
|
30683
30977
|
//#endregion
|
|
30978
|
+
//#region src/viewer-ui-provider.ts
|
|
30979
|
+
/**
|
|
30980
|
+
* viewer-ui provider — the pipeline-orchestrator serves the CamStack viewer web
|
|
30981
|
+
* SPA (mirrors what the now-removed standalone addon-viewer-ui used to do).
|
|
30982
|
+
*
|
|
30983
|
+
* Why here: the orchestrator is a hub bootstrap addon (always installed + baked),
|
|
30984
|
+
* so folding the viewer serving into it avoids a second addon whose only job was
|
|
30985
|
+
* to hold static files. The viewer's Expo web export is COPIED into this addon's
|
|
30986
|
+
* `assets/viewer/` locally by the viewer repo's `scripts/copy-dist-to-orchestrator.js`
|
|
30987
|
+
* (run from a checkout that HAS the `camstack/` submodule + Expo toolchain — the
|
|
30988
|
+
* publish/image CI does not, which is exactly why we copy a pre-built dist rather
|
|
30989
|
+
* than build it here). vite emits only into `dist/`, so `assets/viewer` survives
|
|
30990
|
+
* the addon build; `assets` is in the package `files`, so it ships on
|
|
30991
|
+
* `camstack deploy`. The hub's `main.ts` resolves the `viewer-ui` singleton at
|
|
30992
|
+
* boot and mounts the SPA at `/viewer/camstack`.
|
|
30993
|
+
*
|
|
30994
|
+
* `index.js` runs from `dist/`, so the SPA root is one level up + `assets/viewer`.
|
|
30995
|
+
*/
|
|
30996
|
+
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
30997
|
+
/** Absolute path to the staged viewer web SPA (`<addon-root>/assets/viewer`). */
|
|
30998
|
+
function resolveViewerDistDir() {
|
|
30999
|
+
return path.resolve(__dirname, "..", "assets", "viewer");
|
|
31000
|
+
}
|
|
31001
|
+
/** Version of the staged viewer, written by the copy script; 'unknown' if absent. */
|
|
31002
|
+
function readViewerVersion() {
|
|
31003
|
+
try {
|
|
31004
|
+
const raw = fs.readFileSync(path.join(resolveViewerDistDir(), ".viewer-version"), "utf-8").trim();
|
|
31005
|
+
if (raw) return raw;
|
|
31006
|
+
} catch {}
|
|
31007
|
+
return "unknown";
|
|
31008
|
+
}
|
|
31009
|
+
/** Build the viewer-ui provider. Serves whatever dist was staged into
|
|
31010
|
+
* `assets/viewer`; when nothing is staged the hub's mount cleanly 404s. */
|
|
31011
|
+
function createViewerUiProvider() {
|
|
31012
|
+
return {
|
|
31013
|
+
getStaticDir: async () => ({ staticDir: resolveViewerDistDir() }),
|
|
31014
|
+
getVersion: async () => ({ version: readViewerVersion() })
|
|
31015
|
+
};
|
|
31016
|
+
}
|
|
31017
|
+
//#endregion
|
|
30684
31018
|
//#region src/widget-catalog.ts
|
|
30685
31019
|
var pipelineOrchestratorWidgets = [{
|
|
30686
31020
|
tab: "device-tab",
|
|
30687
31021
|
label: "Pipeline Quick Stats",
|
|
31022
|
+
preAuth: false,
|
|
30688
31023
|
kind: "remote",
|
|
30689
31024
|
remote: {
|
|
30690
31025
|
remoteName: "addon_pipeline_orchestrator_widgets",
|
|
@@ -30711,6 +31046,7 @@ var pipelineOrchestratorWidgets = [{
|
|
|
30711
31046
|
}, {
|
|
30712
31047
|
tab: "device-tab",
|
|
30713
31048
|
label: "Zone Editor",
|
|
31049
|
+
preAuth: false,
|
|
30714
31050
|
kind: "remote",
|
|
30715
31051
|
remote: {
|
|
30716
31052
|
remoteName: "addon_pipeline_orchestrator_widgets",
|
|
@@ -31378,6 +31714,10 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
31378
31714
|
{
|
|
31379
31715
|
capability: addonWidgetsSourceCapability,
|
|
31380
31716
|
provider: { listWidgets: async () => pipelineOrchestratorWidgets }
|
|
31717
|
+
},
|
|
31718
|
+
{
|
|
31719
|
+
capability: viewerUiCapability,
|
|
31720
|
+
provider: createViewerUiProvider()
|
|
31381
31721
|
}
|
|
31382
31722
|
],
|
|
31383
31723
|
customActions: pipelineOrchestratorActions,
|
package/dist/remoteEntry.js
CHANGED
|
@@ -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_orchestrator_widgets-
|
|
33
|
+
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-vZTi0c_a.mjs")).catch((e) => {
|
|
34
34
|
throw l = void 0, e;
|
|
35
35
|
}), l;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-pipeline-orchestrator",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.35",
|
|
4
4
|
"description": "Hub-side camera-to-agent load balancer — tracks runner capacity and dispatches attachCamera calls to the optimal pipeline-runner instance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"name": "addon-widgets-source"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "viewer-ui"
|
|
58
61
|
}
|
|
59
62
|
],
|
|
60
63
|
"passive": true,
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//#region \0virtual:mf:__mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js
|
|
2
|
-
var e = "__mf_init__virtual:mf:__mfe_internal__addon_pipeline_orchestrator_widgets__mf_v__runtimeInit__mf_v__.js__", t = globalThis[e];
|
|
3
|
-
if (!t) {
|
|
4
|
-
let n, r, i = new Promise((e, t) => {
|
|
5
|
-
n = e, r = t;
|
|
6
|
-
});
|
|
7
|
-
t = globalThis[e] = {
|
|
8
|
-
initPromise: i,
|
|
9
|
-
initResolve: n,
|
|
10
|
-
initReject: r
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
var n = t.initPromise, r = "__mf_module_cache__";
|
|
14
|
-
globalThis[r] ||= {
|
|
15
|
-
share: {},
|
|
16
|
-
remote: {}
|
|
17
|
-
}, globalThis[r].share ||= {}, globalThis[r].remote ||= {};
|
|
18
|
-
var i = globalThis[r], a, o = (e) => {
|
|
19
|
-
e.ACCESSORY_LABEL, e.ALL_CAPABILITY_DEFINITIONS, e.APPLE_SA_TO_MACRO, e.AUDIO_BACKEND_CHOICES, e.AUDIO_MACRO_LABELS, e.AccessoriesStatusSchema, e.AccessoryKind, e.AddBrokerInputSchema, e.AddonAutoUpdateSchema, e.AddonListItemSchema, e.AddonPageDeclarationSchema, e.AddonPageInfoSchema, e.AdoptionAdoptInputSchema, e.AdoptionAdoptResultSchema, e.AdoptionFilterSchema, e.AdoptionGetCandidateInputSchema, e.AdoptionListCandidatesInputSchema, e.AdoptionListCandidatesOutputSchema, e.AdoptionReleaseInputSchema, e.AdoptionStatusSchema, e.AgentLoadSummarySchema, e.AirQualitySensorStatusSchema, e.AlarmArmModeSchema, e.AlarmPanelStatusSchema, e.AlarmStateSchema, e.AlertSchema, e.AlertSeveritySchema, e.AlertSourceSchema, e.AlertStatusSchema, e.AmbientLightSensorStatusSchema, e.ApiKeyRecordSchema, e.ApiKeySummarySchema, e.ArchiveEntrySchema, e.ArchiveManifestSchema, e.AttachmentMediaTypeSchema, e.AttachmentSchema, e.AudioAnalysisResultSchema, e.AudioAnalysisSettingsSchema, e.AudioChunkInputSchema, e.AudioClassSummarySchema, e.AudioClassificationLabelSchema, e.AudioClassificationResultSchema, e.AudioCodecInfoSchema, e.AudioDecodeSessionConfigSchema, e.AudioEncodeSchema, e.AudioEncodeSessionConfigSchema, e.AudioEncodedChunkSchema, e.AudioEventSchema, e.AudioLevelSchema, e.AudioMetricsHistoryPointSchema, e.AudioMetricsHistorySchema, e.AudioMetricsSnapshotSchema, e.AudioPcmChunkSchema, e.AuthResultSchema, e.AutoUpdateSettingsSchema, e.AutomationControlStatusSchema, e.AvailableIntegrationTypeSchema, e.BACKEND_TO_FORMAT, e.BATTERY_DEVICE_PROFILE, e.BacklightModeSchema, e.BackupDestinationInfoSchema, e.BackupEntrySchema, e.BaseAddon, e.BaseDevice, e.BaseDeviceProvider, e.BatteryStatusSchema, e.BinaryStatusSchema, e.BoundingBoxSchema, e.BrightnessStatusSchema, e.BrokerAddInputSchema, e.BrokerAudioClientSchema, e.BrokerClientsSchema, e.BrokerConnectionDetailsSchema, e.BrokerConsumerAttributionSchema, e.BrokerConsumerKindSchema, e.BrokerDecodedClientSchema, e.BrokerEncodedClientSchema, e.BrokerGetStateInputSchema, e.BrokerInfoSchema, e.BrokerProviderInfoSchema, e.BrokerPublishInputSchema, e.BrokerRegistryStatusSchema, e.BrokerRtspClientSchema, e.BrokerStatsSchema, e.BrokerStatusEnum, e.BrokerStatusSchema, e.BrokerSubscribeInputSchema, e.BrokerSubscribeResultSchema, e.BrokerTestConnectionResultSchema, e.BrokerUnsubscribeInputSchema, e.CAM_PROFILE_ORDER, e.CAPABILITY_NAMES, e.CAPABILITY_ROUTER_KEYS, e.CAP_NAMES_WITH_STATUS, e.CAP_NODE_PIN_CONTEXT_KEY, e.CAP_PROVIDER_KIND_MAP, e.COCO_80_LABELS, e.COCO_TO_MACRO, e.CamProfileSchema, e.CamStreamDescriptorSchema, e.CamStreamKindSchema, e.CamStreamResolutionSchema, e.CameraAssignmentStatusSchema, e.CameraAudioStatusSchema, e.CameraBrokerProfileSchema, e.CameraBrokerStatusSchema, e.CameraCredentialsSchema, e.CameraCredentialsStatusSchema, e.CameraDecoderShmSchema, e.CameraDecoderStatusSchema, e.CameraDetectionPhaseSchema, e.CameraDetectionProvisioningSchema, e.CameraDetectionProvisioningStateSchema, e.CameraDetectionStatusSchema, e.CameraMetricsSchema, e.CameraMetricsWithDeviceIdSchema, e.CameraMotionStatusSchema, e.CameraRecordingModeSchema, e.CameraRecordingStatusSchema, e.CameraSourceStatusSchema, e.CameraSourceStreamSchema, e.CameraStatusSchema, e.CameraStreamSchema, e.CandidateQueryFilterSchema, e.CapScopeSchema, e.CapabilityBindingsSchema, e.CarbonMonoxideStatusSchema, e.ChargingStatus, e.ClientNetworkStatsSchema, e.ClimateControlStatusSchema, e.ClipPlaybackSchema, e.ClipSchema, e.ClusterAddonNodeDeploymentSchema, e.ClusterAddonStatusEntrySchema, e.CollectionColumnSchema, e.CollectionIndexSchema, e.ColorStatusSchema, e.ConfigEntrySchema, e.ConfigSectionWithValuesSchema, e.ConfigTabDeclarationSchema, e.ConnectivityStatusSchema, e.ConsumableItemSchema, e.ConsumablesStatusSchema, e.ContactStatusSchema, e.ControlKindSchema, e.ControlStatusSchema, e.ConvertArtifactSchema, e.ConvertResultSchema, e.ConvertTargetSchema, e.CoverStateSchema, e.CoverStatusSchema, e.CreateApiKeyInputSchema, e.CreateApiKeyResultSchema, e.CreateIntegrationInputSchema, e.CreateScopedTokenInputSchema, e.CreateScopedTokenResultSchema, e.CreateUserInputSchema, e.CustomActionInputSchema, e.CustomModelDescriptorSchema, e.DATAPLANE_SECRET_HEADER, e.DEFAULT_ADDON_PLACEMENT, e.DEFAULT_AUDIO_ANALYZER_CONFIG, e.DEFAULT_DECODER_HWACCEL_CONFIG, e.DEFAULT_FEATURES, e.DEFAULT_RETENTION, e.DEVICE_CAP_NAMES, e.DEVICE_PROFILES, e.DEVICE_SETTINGS_CONTRIBUTION_METHODS, e.DEVICE_STATUS_METHOD, e.DEVICE_TYPE_INFO, e.DayNightModeSchema, e.DayNightOptionsSchema, e.DayNightSettingsPatchSchema, e.DayNightStatusSchema, e.DecodedAudioChunkSchema, e.DecodedFrameSchema, e.DecoderSessionConfigSchema, e.DecoderStatsSchema, e.DeleteIntegrationResultSchema, e.DetectionSourceSchema, e.DeviceCodeSeveritySchema, e.DeviceConfig, e.DeviceDiscoveryStatusSchema, e.DeviceExportExposeInputSchema, e.DeviceExportStatusSchema, e.DeviceExportUnexposeInputSchema, e.DeviceFeature, e.DeviceInfoSchema, e.DeviceNetworkStatsSchema, e.DeviceRole, e.DeviceRuntimeState, e.DeviceStatusSchema, e.DeviceType, e.DiscoveredChildDeviceSchema, e.DiscoveredChildStatusSchema, e.DiscoveredDeviceSchema, e.DiscoveredTargetSchema, e.DisposerChain, e.DoorbellPressEventSchema, e.DoorbellStatusSchema, e.EVENT_PAD_MS, e.EXPRESSION_BUILTINS, e.EXPRESSION_BUILTIN_NAMES, e.EXPRESSION_COMPILE_CACHE_CAPACITY, e.EXPRESSION_IDENTIFIER_RE, e.EXPRESSION_INJECTED_NOW, e.ElementConfigStore, e.EmbeddingInfoSchema, e.EmbeddingResultSchema, e.EncodeProfileSchema, e.EncodedPacketSchema, e.EnrichedWidgetMetadataSchema, e.EnumSensorDateTimeFormatSchema, e.EnumSensorStatusSchema, e.EventCategory, e.EventEmitterStatusSchema, e.EventFireSchema, e.EventItemSchema, e.EventKindSchema, e.EventSourceType, e.ExportSetupFieldSchema, e.ExportSetupSchema, e.ExposedDeviceSchema, e.ExposureModeSchema, e.ExpressionEvalError, e.ExpressionParseError, e.FanControlStatusSchema, e.FanDirectionSchema, e.FeatureManifestSchema, e.FeatureProbeStatusSchema, e.FloodStatusSchema, e.FrameHandleFormatSchema, e.FrameHandleSchema, e.FrameInputSchema, e.GasStatusSchema, e.GetStreamWithCodecInputSchema, e.GlobalMetricsSchema, e.HF_BASE_URL, e.HF_REPO, e.HWACCEL_OPTIONS, e.HealthStatusSchema, e.HistoryPointSchema, e.HistoryResolutionEnum, e.HumidifierStatusSchema, e.HumiditySensorStatusSchema, e.HvacModeSchema, e.ImageRotateSchema, e.ImageSettingsOptionsSchema, e.ImageSettingsPatchSchema, e.ImageSettingsStatusSchema, e.ImageStatusSchema, e.IngestOwnerSchema, e.InstalledPackageSchema, e.IntegrationLiteSchema, e.IntegrationWithStateSchema, e.IntercomAbilitySchema, e.IntercomStatusSchema, e.KNOWN_CAP_NAMES, e.LabelDefinitionSchema, e.LawnMowerActivitySchema, e.LawnMowerControlStatusSchema, e.LocateSegmentResultSchema, e.LocationStatSchema, e.LockControlStatusSchema, e.LockStateSchema, e.LogEntrySchema, e.LogLevelSchema, e.LogStreamEntrySchema, a = e.MACRO_LABELS, e.MAX_EXPRESSION_AST_NODES, e.MAX_EXPRESSION_BINDINGS, e.MAX_EXPRESSION_CALL_ARGS, e.MAX_EXPRESSION_EVAL_STEPS, e.MAX_EXPRESSION_SOURCE_LENGTH, e.METHOD_ACCESS_MAP, e.MODEL_FORMATS, e.MaskGridDimsSchema, e.MaskGridShapeSchema, e.MaskLineShapeSchema, e.MaskPointSchema, e.MaskPolygonShapeSchema, e.MaskPolygonVerticesSchema, e.MaskRectShapeSchema, e.MaskShapeKindSchema, e.MaskShapeSchema, e.MediaFileSchema, e.MediaPlayerRepeatSchema, e.MediaPlayerStateSchema, e.MediaPlayerStatusSchema, e.MeshPeerSchema, e.MeshStatusSchema, e.MethodAccessSchema, e.ModelCatalogEntrySchema, e.ModelConvertInputSchema, e.ModelConvertMetadataSchema, e.ModelDistributeInputSchema, e.ModelDistributeResultSchema, e.ModelExtraFileSchema, e.ModelFormatEntrySchema, e.ModelFormatsSchema, e.ModelSubstitutionSchema, e.ModelVariantGroupSchema, e.MotionAnalysisResultSchema, e.MotionEventSchema, e.MotionOnMotionChangedDataSchema, e.MotionRegionSchema, e.MotionSourceEnum, e.MotionSourcesSchema, e.MotionStatusSchema, e.MotionTriggerRuntimeStateSchema, e.MotionTriggerStatusSchema, e.MotionZoneOptionsSchema, e.MotionZonePatchSchema, e.MotionZoneRegionSchema, e.MotionZoneStatusSchema, e.MqttBrokerStatusSchema, e.NativeDetectionSchema, e.NativeObjectClassEnum, e.NativeObjectDetectionRuntimeStateSchema, e.NativeObjectDetectionStatusSchema, e.NetworkAccessStatusSchema, e.NetworkAddressSchema, e.NetworkEndpointSchema, e.NotificationActionSchema, e.NotificationFormatSchema, e.NotificationHistoryEntrySchema, e.NotificationRuleSchema, e.NotificationSchema, e.NotifierStatusSchema, e.NumericSensorStatusSchema, e.OauthIntegrationDescriptorSchema, e.ObjectEventSchema, e.OrchestratorMetricsSchema, e.OsdOverlayKindEnum, e.OsdOverlayPatchSchema, e.OsdOverlaySchema, e.OsdPositionEnum, e.OsdStatusSchema, e.PET_FEEDER_MANUAL_FEED_MAX, e.PET_FEEDER_MANUAL_FEED_MIN, e.PIPELINE_FLOW_CAPABILITY_NAMES, e.PIPELINE_OWNER_CAPABILITY_NAMES, e.PROVIDER_KIND_CAP_NAMES, e.PYTHON_SCRIPT, e.PackageUpdateSchema, e.PackageVersionInfoSchema, e.PasskeySummarySchema, e.PcmSampleFormatSchema, e.PerScopeBreakdownSchema, e.PetFeederStatusSchema, e.PickStreamPreferencesSchema, e.PickStreamRequirementsSchema, e.PickedCamStreamSchema, e.PipelineAssignmentSchema, e.PipelineDefaultStepSchema, e.PipelineEngineChoiceSchema, e.PipelineRunResultBridge, e.PipelineStepInputSchema, e.PipelineValidationIssueSchema, e.PipelineValidationResultSchema, e.PlaceholderReasonSchema, e.PolygonPointSchema, e.PowerMeterStatusSchema, e.PresenceStatusSchema, e.PressureSensorStatusSchema, e.PrivacyMaskOptionsSchema, e.PrivacyMaskPatchSchema, e.PrivacyMaskRegionSchema, e.PrivacyMaskShapeSchema, e.PrivacyMaskStatusSchema, e.ProfileRtspEntrySchema, e.ProfileSlotSchema, e.ProfileSlotStatusSchema, e.ProviderStatusSchema, e.PtzAutotrackRuntimeStateSchema, e.PtzAutotrackSettingsSchema, e.PtzAutotrackStatusSchema, e.PtzAutotrackTargetOptionSchema, e.PtzMoveCommandSchema, e.PtzPositionSchema, e.PtzPresetSchema, e.PtzStatusSchema, e.QueryFilterSchema, e.REACHABILITY_FAILURES_TO_OFFLINE, e.REACHABILITY_POLL_INTERVAL_MS, e.REACHABILITY_PROBE_TIMEOUT_MS, e.RECOGNITION_TYPES, e.RESERVED_BINDING_NAMES, e.RUNTIME_DEFAULTS, e.RUNTIME_TO_FORMAT, e.RawStateResultSchema, e.ReadSegmentBytesResultSchema, e.ReadinessRegistry, e.ReadinessTimeoutError, e.RecordingAvailabilitySchema, e.RecordingBandModeSchema, e.RecordingBandSchema, e.RecordingBandTriggersSchema, e.RecordingConfigSchema, e.RecordingDaysSchema, e.RecordingDeviceUsageSchema, e.RecordingLocationUsageSchema, e.RecordingManifestSchema, e.RecordingModeSchema, e.RecordingRangeSchema, e.RecordingRetentionSchema, e.RecordingRuleSchema, e.RecordingScheduleSchema, e.RecordingStatusSchema, e.RecordingStorageModeSchema, e.RecordingStorageUsageSchema, e.RecordingTriggersSchema, e.RecordingWeekdaySchema, e.RenderedAsSchema, e.ReportMotionInputSchema, e.RingBuffer, e.RtpSourceSchema, e.RtspRestreamEntrySchema, e.RunnerCameraConfigSchema, e.RunnerCameraDeviceUIFields, e.RunnerFrameSourceSchema, e.RunnerLocalLoadSchema, e.RunnerLocalMetricsSchema, e.SCOPE_PRESETS, e.SOURCE_INFO_METADATA_KEY, e.STREAM_PROFILE_META, e.STREAM_QUALITY_LABELS, e.SUB_DETECTION_TYPES, e.SYSTEM_CAP_NAMES, e.ScopedTokenSchema, e.ScopedTokenSummarySchema, e.ScoredObjectEventSchema, e.ScriptRunnerStatusSchema, e.SearchResultSchema, e.SendEmailInputSchema, e.SendEmailResultSchema, e.SendResultSchema, e.SettingsPatchSchema, e.SettingsRecordSchema, e.SettingsSchemaWithValuesSchema, e.SettingsUpdateResultSchema, e.ShmRingStatsSchema, e.SmokeStatusSchema, e.SmtpStatusSchema, e.SnapshotImageSchema, e.SourceInfoSchema, e.SpatialDetectionSchema, e.SsoBridgeClaimsSchema, e.StartEmbeddedInputSchema, e.StorageAbortUploadInputSchema, e.StorageBeginDownloadInputSchema, e.StorageBeginDownloadResultSchema, e.StorageBeginUploadInputSchema, e.StorageBeginUploadResultSchema, e.StorageEndDownloadInputSchema, e.StorageFinalizeUploadInputSchema, e.StorageLocationDeclarationSchema, e.StorageLocationRefSchema, e.StorageLocationSchema, e.StorageLocationTypeSchema, e.StorageProviderInfoSchema, e.StorageReadChunkInputSchema, e.StorageTestLocationResultSchema, e.StorageWriteChunkInputSchema, e.StreamCodecSchema, e.StreamFormatSchema, e.StreamNetworkStatsSchema, e.StreamParamsOptionsSchema, e.StreamParamsStatusSchema, e.StreamProfileConfigSchema, e.StreamProfileOptionsSchema, e.StreamProfilePatchSchema, e.StreamProfileSchema, e.StreamSourceEntrySchema, e.StreamSourceSchema, e.SubscribeAudioChunksInputSchema, e.SubscribeAudioChunksResultSchema, e.SubscribeFramesInputSchema, e.SubscribeFramesResultSchema, e.SwitchStatusSchema, e.SystemMetricsSchema, e.SystemMirror, e.TIMEZONES, e.TamperStatusSchema, e.TankStatusSchema, e.TargetKindCapsSchema, e.TargetKindLevelSchema, e.TargetKindSchema, e.TargetSchema, e.TemperatureSensorStatusSchema, e.TestConnectionResultSchema, e.TestResultSchema, e.ToastSchema, e.TokenScopeSchema, e.TopologyNodeSchema, e.TopologyProcessSchema, e.TopologyServiceSchema, e.TrackSchema, e.TrackStateSchema, e.TrackedDetectionSchema, e.TurnServerSchema, e.UNIT_TABLE, e.UnifiedBrokerInfoSchema, e.UnitConversionError, e.UpdateIntegrationInputSchema, e.UpdateStatusSchema, e.UpdateUserInputSchema, e.UserRecordSchema, e.UserSummarySchema, e.VacuumControlStatusSchema, e.VacuumStateSchema, e.ValveStateSchema, e.ValveStatusSchema, e.VibrationStatusSchema, e.VideoEncodeSchema, e.WELL_KNOWN_TABS, e.WELL_KNOWN_TAB_MAP, e.WaterHeaterStatusSchema, e.WeatherStatusSchema, e.WebrtcStreamChoiceSchema, e.WebrtcStreamTargetSchema, e.WhiteBalanceModeSchema, e.WidgetHostEnum, e.WidgetMetadataSchema, e.WidgetRemoteSchema, e.WidgetSizeEnum, e.YAMNET_TO_MACRO, e.ZoneKindEnum, e.ZoneRuleModeEnum, e.ZoneRuleSchema, e.ZoneRuleStageEnum, e.ZoneRulesArraySchema, e.ZoneSchema, e.ZoneScopeBreakdownSchema, e.accessoriesCapability, e.accessoryStableId, e.addonPagesCapability, e.addonPagesSourceCapability, e.addonRoutesCapability, e.addonSettingsCapability, e.addonWidgetsCapability, e.addonWidgetsSourceCapability, e.addonsCapability, e.adminUiCapability, e.advancedNotifierCapability, e.airQualitySensorCapability, e.alarmPanelCapability, e.alertsCapability, e.ambientLightSensorCapability, e.applyTransform, e.asBoolean, e.asJsonArray, e.asJsonObject, e.asNumber, e.asString, e.audioAnalysisCapability, e.audioAnalyzerCapability, e.audioCodecCapability, e.audioMetricsCapability, e.authProviderCapability, e.autoAssignProfiles, e.automationControlCapability, e.backupCapability, e.batteryCapability, e.bestLocationMatch, e.binaryCapability, e.bindAddonActions, e.brightnessCapability, e.brokerCapability, e.buildAddonRouteProvider, e.buildModelVariantGroups, e.buildStreamParamsConfigSchema, e.buttonCapability, e.cameraCredentialsCapability, e.cameraPipelineConfigCapability, e.cameraStreamsCapability, e.canConvertUnit, e.carbonMonoxideCapability, e.cellsToRects, e.classifyStream, e.classifyStreams, e.climateControlCapability, e.colorCapability, e.compileExpression, e.compileExpressionSafe, e.connectivityCapability, e.consumablesCapability, e.contactCapability, e.controlCapability, e.convertUnit, e.cosineSimilarity, e.coverCapability, e.createDeviceProxy, e.createDurableState, e.createEvent, e.createExpressionScope, e.createLazyTrpcSource, e.createMirrorSource, e.createRuntimeStateBridge, e.createSliceHandle, e.createSystemProxy, e.customAction, e.customModelRegistryCapability, e.dayNightCapability, e.decoderCapability, e.defaultDeviceFor, e.defineCustomActions, e.describeModelVariant, e.detectionPipelineCapability, e.deviceAdoptionCapability, e.deviceCustomAction, e.deviceDiscoveryCapability, e.deviceExportCapability, e.deviceManagerCapability, e.deviceMatchesProfile, e.deviceOpsCapability, e.deviceProviderCapability, e.deviceStateCapability, e.deviceStatusCapability, e.doorbellCapability, e.embeddingEncoderCapability, e.emitDownForOwnedCaps, e.emitReadiness, e.encodeProfileFromStreamShape, e.enumSensorCapability, e.enumerateItemArrayFields, e.enumerateSchemaFields, e.errMsg, e.evaluateAst, e.evaluateLinkExpression, e.evaluateZoneRules, e.event, e.eventEmitterCapability, e.eventsCapability, e.expandCapMethods, e.extractSourceInfoFromMetadata, e.faceGalleryCapability, e.fanControlCapability, e.featureProbeCapability, e.filesystemBrowseCapability, e.findTimezone, e.floodCapability, e.formatForBackend, e.formatForRuntime, e.frameworkSwapConfirmSchema, e.frameworkSwapPackageSchema, e.gasCapability, e.getAudioMacroClassIds, e.getByPath, e.getCapsByProviderKind, e.hfModelUrl, e.htmlToText, e.humidifierCapability, e.humiditySensorCapability, e.hydrateSchema, e.imageCapability, e.imageSettingsCapability, e.integrationsCapability, e.intercomCapability, e.isAgentOnlyPlacement, e.isArrayOutputSchema, e.isDeployableToAgent, e.isDeviceConfigCap, e.isEvent, e.isObjectInput, e.isVoidInput, e.jobKindSchema, e.kebabToCamel, e.lawnMowerControlCapability, e.lifecycleJobSchema, e.lifecycleJobScopeSchema, e.lifecycleJobStateSchema, e.lifecycleTaskSchema, e.localNetworkCapability, e.locationSimilarity, e.lockControlCapability, e.logDestinationCapability, e.looseSchema, e.makeProfileBrokerId, e.makeSourceBrokerId, e.mapAudioLabelToMacro, e.markdownToHtmlLite, e.markdownToText, e.maskUrlCredentials, e.mediaPlayerCapability, e.mergeSourceInfo, e.meshNetworkCapability, e.method, e.metricsProviderCapability, e.migrateConfigToBands, e.modelConvertCapability, e.modelDistributorCapability, e.modelFormatForRuntime, e.motionCapability, e.motionDetectionCapability, e.motionTriggerCapability, e.motionZonesCapability, e.mqttBrokerCapability, e.nativeObjectDetectionCapability, e.networkAccessCapability, e.networkQualityCapability, e.nodePin, e.nodesCapability, e.normalizeAddonInitResult, e.normalizeUnit, e.notificationOutputCapability, e.notifierCapability, e.numericSensorCapability, e.oauthIntegrationCapability, e.osdCapability, e.parseCameraStreamConfig, e.parseExpression, e.parseJsonArray, e.parseJsonObject, e.parseJsonUnknown, e.parseProfileBrokerId, e.parseStreamParamsFormPatch, e.pendingFrameworkSwapSchema, e.petFeederCapability, e.pickPreferredRtspEntry, e.pipelineAnalyticsCapability, e.pipelineExecutorCapability, e.pipelineOrchestratorCapability, e.pipelineRunnerCapability, e.plateGalleryCapability, e.platformProbeCapability, e.powerMeterCapability, e.prepareNotification, e.presenceCapability, e.pressureSensorCapability, e.privacyMaskCapability, e.procedureAuthKey, e.ptzAutotrackCapability, e.ptzCapability, e.pythonScriptForBackend, e.readNodePin, e.readinessKey, e.rebootCapability, e.recordingCapability, e.rectsToCells, e.requiresPython, e.resolveAddonExecution, e.resolveAddonGroup, e.resolveAddonPlacement, e.resolveAddonRuntime, e.resolveCapMount, e.resolveDetectionRuntime, e.resolveDeviceProfile, e.resolveFormat, e.resolveModelFormat, e.resolveRunnerId, e.resolveVariantModelId, e.runInferenceStep, e.runtimeDevices, e.scopeKey, e.scoreRuntimes, e.scriptRunnerCapability, e.selectAssignedProfileSlots, e.setByPath, e.settingsStoreCapability, e.sleep, e.sleepCancellable, e.smokeCapability, e.smtpProviderCapability, e.snapshotCapability, e.ssoBridgeCapability, e.startReachabilityPoll, e.storageCapability, e.storageEvictableCapability, e.storageProviderCapability, e.streamBrokerCapability, e.streamCatalogCapability, e.streamParamsCapability, e.streamPixels, e.streamQualityLabel, e.supportedRuntimes, e.switchCapability, e.synthesizeSourceInfo, e.systemCapability, e.tamperCapability, e.taskLogEntrySchema, e.taskPhaseSchema, e.taskTargetSchema, e.temperatureSensorCapability, e.textToHtml, e.toDeviceSummary, e.toExpressionValue, e.toStreamSourceEntry, e.toastCapability, e.tokenize, e.transcodeBody, e.tryConvertUnit, e.turnProviderCapability, e.unitDimension, e.unitsForDimension, e.updateCapability, e.userManagementCapability, e.userPasskeysCapability, e.vacuumControlCapability, e.validateExpressionSource, e.valveCapability, e.vibrationCapability, e.videoclipsCapability, e.waterHeaterCapability, e.weatherCapability, e.webrtcClientHintsSchema, e.webrtcSessionCapability, e.wiringAddonHealthSchema, e.wiringHealthSnapshotSchema, e.wiringNodeHealthSchema, e.wiringProbeKindSchema, e.wiringProbeResultSchema, e.zodEntriesToConfigUI, e.zoneAnalyticsCapability, e.zoneRulesCapability, e.zonesCapability, e.default;
|
|
20
|
-
}, s = i.share["default:@camstack/types"];
|
|
21
|
-
s === void 0 ? n.then(() => {
|
|
22
|
-
if (s = i.share["default:@camstack/types"], s === void 0) throw Error("[Module Federation] Shared module @camstack/types was imported before federation bootstrap finished.");
|
|
23
|
-
o(s);
|
|
24
|
-
}) : o(s);
|
|
25
|
-
//#endregion
|
|
26
|
-
export { a as t };
|