@dominevo/types 0.1.0 → 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.
- package/CHANGELOG.md +8 -0
- package/dist/addon/base-addon.d.ts +2 -16
- package/dist/addon.d.ts +4 -4
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/app-bridge.d.ts +16 -16
- package/dist/auth/app-callback.d.ts +2 -3
- package/dist/auth/credential-scope.d.ts +1 -1
- package/dist/auth/device-certificate.d.ts +5 -5
- package/dist/auth/sso-state.d.ts +1 -1
- package/dist/brokers/smtp-inbound.d.ts +1 -1
- package/dist/cap-call-context.d.ts +2 -2
- package/dist/capabilities/backup.cap.d.ts +1 -1
- package/dist/capabilities/capability-definition.d.ts +1 -1
- package/dist/capabilities/custom-model-registry.cap.d.ts +8 -8
- package/dist/capabilities/display-palette.cap.d.ts +2 -2
- package/dist/capabilities/hub-address.d.ts +5 -5
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/keychain-admin.cap.d.ts +2 -2
- package/dist/capabilities/load-contribution.cap.d.ts +1 -1
- package/dist/capabilities/local-network.cap.d.ts +1 -1
- package/dist/capabilities/metrics-provider.cap.d.ts +1 -1
- package/dist/capabilities/migrations.cap.d.ts +1 -1
- package/dist/capabilities/model-convert.cap.d.ts +2 -2
- package/dist/capabilities/model-distributor.cap.d.ts +4 -4
- package/dist/capabilities/notification-rules.cap.d.ts +1 -1
- package/dist/capabilities/oauth-integration.cap.d.ts +1 -1
- package/dist/capabilities/pipeline-executor.cap.d.ts +5 -5
- package/dist/capabilities/pipeline-orchestrator.cap.d.ts +1 -1
- package/dist/capabilities/pipeline-runner.cap.d.ts +1 -1
- package/dist/capabilities/recording.cap.d.ts +5 -5
- package/dist/capabilities/reserved-collection-sources.d.ts +1 -1
- package/dist/capabilities/server-management.cap.d.ts +4 -4
- package/dist/capabilities/settings-store.cap.d.ts +1 -1
- package/dist/capabilities/training.cap.d.ts +1 -1
- package/dist/capabilities/videoclips.cap.d.ts +5 -5
- package/dist/capabilities/viewer-link-url.d.ts +4 -4
- package/dist/catalogs/display-palette-tables.d.ts +2 -2
- package/dist/catalogs/display-palette.d.ts +3 -3
- package/dist/catalogs/palette-entries.d.ts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +19 -27
- package/dist/client.mjs +19 -27
- package/dist/constants.d.ts +2 -2
- package/dist/deps/edgetpu-delegate.d.ts +4 -4
- package/dist/deps/ffmpeg-binary-source.d.ts +2 -2
- package/dist/deps/ffmpeg-downloader.d.ts +1 -1
- package/dist/device/icon-catalog.generated.d.ts +2 -5
- package/dist/enums/event-category.d.ts +2 -2
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/esm/addon/base-addon.mjs +2 -22
- package/dist/esm/addon/notification-targets.mjs +1 -1
- package/dist/esm/addon/record-integration-instances.mjs +2 -2
- package/dist/esm/addon.mjs +1 -1
- package/dist/esm/app-bridge.mjs +2 -2
- package/dist/esm/auth/app-callback.mjs +3 -9
- package/dist/esm/auth/credential-scope.mjs +2 -2
- package/dist/esm/auth/device-certificate.mjs +6 -11
- package/dist/esm/auth/sso-state.mjs +1 -1
- package/dist/esm/brokers/smtp-inbound.mjs +1 -1
- package/dist/esm/cap-call-context.mjs +2 -2
- package/dist/esm/capabilities/backup.cap.mjs +1 -1
- package/dist/esm/capabilities/custom-model-registry.cap.mjs +1 -1
- package/dist/esm/capabilities/device-export.cap.mjs +1 -1
- package/dist/esm/capabilities/face-gallery.cap.mjs +1 -1
- package/dist/esm/capabilities/hub-address.mjs +8 -8
- package/dist/esm/capabilities/ir-transmitter.cap.mjs +1 -1
- package/dist/esm/capabilities/keychain-admin.cap.mjs +2 -2
- package/dist/esm/capabilities/load-contribution.cap.mjs +1 -1
- package/dist/esm/capabilities/local-network.cap.mjs +1 -1
- package/dist/esm/capabilities/mesh-network.cap.mjs +2 -2
- package/dist/esm/capabilities/metrics-provider.cap.mjs +2 -2
- package/dist/esm/capabilities/migrations.cap.mjs +1 -1
- package/dist/esm/capabilities/notification-rules.cap.mjs +1 -1
- package/dist/esm/capabilities/oauth-integration.cap.mjs +1 -1
- package/dist/esm/capabilities/pipeline-orchestrator.cap.mjs +2 -2
- package/dist/esm/capabilities/pipeline-runner.cap.mjs +2 -2
- package/dist/esm/capabilities/recording.cap.mjs +7 -7
- package/dist/esm/capabilities/reserved-collection-sources.mjs +1 -1
- package/dist/esm/capabilities/server-management.cap.mjs +4 -4
- package/dist/esm/capabilities/settings-store.cap.mjs +1 -1
- package/dist/esm/capabilities/sso-bridge.cap.mjs +1 -1
- package/dist/esm/capabilities/training-provider.cap.mjs +1 -1
- package/dist/esm/capabilities/videoclips.cap.mjs +6 -6
- package/dist/esm/capabilities/viewer-link-url.mjs +5 -5
- package/dist/esm/catalogs/display-palette-tables.mjs +3 -3
- package/dist/esm/catalogs/display-palette.mjs +6 -6
- package/dist/esm/catalogs/event-taxonomy.mjs +2 -2
- package/dist/esm/catalogs/palette-entries.mjs +1 -1
- package/dist/esm/constants.mjs +1 -1
- package/dist/esm/deps/binary-downloader.mjs +1 -1
- package/dist/esm/deps/edgetpu-delegate.mjs +6 -6
- package/dist/esm/deps/ffmpeg-artifacts.mjs +1 -1
- package/dist/esm/deps/ffmpeg-binary-source.mjs +2 -2
- package/dist/esm/deps/ffmpeg-downloader.mjs +1 -1
- package/dist/esm/deps/python-downloader.mjs +1 -1
- package/dist/esm/device/icon-catalog.generated.mjs +2 -5
- package/dist/esm/enums/event-category.mjs +2 -2
- package/dist/esm/ffmpeg/egress-sharing-key.mjs +19 -0
- package/dist/esm/ffmpeg/sharing-key.mjs +1 -35
- package/dist/esm/generated/method-descriptions.mjs +3 -3
- package/dist/esm/generated/scope-presets.mjs +1 -1
- package/dist/esm/i18n/{camstack-error.mjs → dominevo-error.mjs} +5 -5
- package/dist/esm/index.mjs +7 -8
- package/dist/esm/interfaces/addon-data-plane.mjs +2 -2
- package/dist/esm/interfaces/config-ui-secrets.mjs +1 -1
- package/dist/esm/interfaces/storage-location-declaration.mjs +4 -4
- package/dist/esm/keychain/known-secrets.mjs +1 -1
- package/dist/esm/keychain/secret-marker.mjs +1 -1
- package/dist/esm/node.mjs +5 -2
- package/dist/esm/notification/email-mime.mjs +2 -2
- package/dist/esm/notification/scope-picker-items.mjs +3 -3
- package/dist/esm/pipeline/native-lease.mjs +1 -1
- package/dist/esm/pipeline/node-benchmark/schemas.mjs +1 -1
- package/dist/esm/records/errors.mjs +1 -1
- package/dist/esm/records/in-memory-records-rows.mjs +1 -1
- package/dist/esm/records/secret-views.mjs +1 -1
- package/dist/esm/storage/atomic-write.mjs +1 -1
- package/dist/esm/storage/filesystem-storage-provider.mjs +3 -3
- package/dist/esm/template/automation-template.mjs +1 -1
- package/dist/esm/training/trainer-contract.mjs +10 -10
- package/dist/esm/treeshake-canary.mjs +1 -1
- package/dist/esm/types/models.mjs +7 -7
- package/dist/esm/util/models-dir.mjs +19 -0
- package/dist/esm/utils/pool-memory-watchdog.mjs +8 -8
- package/dist/esm/vendor-login-proxy/login-proxy.mjs +1 -1
- package/dist/esm/vendor-login-proxy/url-rewrite.mjs +1 -1
- package/dist/{event-category-7IiGF_Ui.mjs → event-category-CwprdwEL.mjs} +2 -2
- package/dist/{event-category-BJe9O5KZ.js → event-category-DhlUHlM5.js} +2 -2
- package/dist/ffmpeg/egress-sharing-key.d.ts +19 -0
- package/dist/ffmpeg/sharing-key.d.ts +19 -12
- package/dist/generated/addon-api.d.ts +2 -2
- package/dist/i18n/{camstack-error.d.ts → dominevo-error.d.ts} +2 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.js +133 -326
- package/dist/index.mjs +126 -316
- package/dist/interfaces/addon-data-plane.d.ts +4 -4
- package/dist/interfaces/addon.d.ts +11 -11
- package/dist/interfaces/analysis.d.ts +2 -2
- package/dist/interfaces/capability.d.ts +1 -1
- package/dist/interfaces/config-ui-secrets.d.ts +1 -1
- package/dist/interfaces/context.d.ts +2 -2
- package/dist/interfaces/detection-addon.d.ts +2 -2
- package/dist/interfaces/device-provider.d.ts +2 -2
- package/dist/interfaces/event-bus.d.ts +1 -1
- package/dist/interfaces/kernel-abstractions.d.ts +1 -1
- package/dist/interfaces/storage-location-declaration.d.ts +1 -1
- package/dist/node.d.ts +3 -0
- package/dist/node.js +168 -13
- package/dist/node.mjs +164 -13
- package/dist/notification/scope-picker-items.d.ts +2 -2
- package/dist/{runtime-capabilities-B9CE8DzI.js → runtime-capabilities-Db29ELdy.js} +26 -46
- package/dist/{runtime-capabilities-CAGwQ-Ec.mjs → runtime-capabilities-Dg5DXZkO.mjs} +21 -41
- package/dist/storage/filesystem-storage-provider.d.ts +1 -1
- package/dist/template/automation-template.d.ts +2 -2
- package/dist/training/trainer-contract.d.ts +9 -9
- package/dist/treeshake-canary.d.ts +3 -3
- package/dist/types/agent-pipeline-settings.d.ts +1 -1
- package/dist/types/models.d.ts +11 -11
- package/dist/util/models-dir.d.ts +10 -0
- package/dist/utils/pool-memory-watchdog.d.ts +1 -1
- package/dist/{wake-on-lan-BocEJPCO.js → wake-on-lan-CAbNKvo9.js} +62 -34
- package/dist/{wake-on-lan-Dm-fxZ7N.mjs → wake-on-lan-DqbzeHhm.mjs} +57 -35
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IScopedLogger } from '../interfaces/logging.js';
|
|
2
2
|
/** The path override (a library PATH, never a secret). */
|
|
3
|
-
export declare const EDGETPU_LIB_ENV = "
|
|
3
|
+
export declare const EDGETPU_LIB_ENV = "DOMINEVO_EDGETPU_LIB";
|
|
4
4
|
/** The pinned feranick release. Changing it is the delegate version change. */
|
|
5
5
|
export declare const EDGETPU_DELEGATE_RELEASE: '16.0TF2.17.1-1';
|
|
6
6
|
/** Where the hub image's installer has always put the delegate. */
|
|
@@ -38,9 +38,9 @@ export interface EdgetpuDelegateChoice {
|
|
|
38
38
|
}
|
|
39
39
|
export interface EdgetpuDelegateLookup {
|
|
40
40
|
readonly platform: NodeJS.Platform;
|
|
41
|
-
/** The node data root (`
|
|
41
|
+
/** The node data root (`DOMINEVO_DATA`), or `undefined` when unknown. */
|
|
42
42
|
readonly dataDir: string | undefined;
|
|
43
|
-
/** `
|
|
43
|
+
/** `DOMINEVO_EDGETPU_LIB`, verbatim. */
|
|
44
44
|
readonly override: string | undefined;
|
|
45
45
|
readonly exists: (path: string) => boolean;
|
|
46
46
|
}
|
|
@@ -65,7 +65,7 @@ export type EdgetpuDelegateResult = {
|
|
|
65
65
|
* without on this line; `installPythonRequirements` stages it after pip.
|
|
66
66
|
* (`ai-edge-litert` imports without the delegate and is useless without it.)
|
|
67
67
|
*/
|
|
68
|
-
export declare const EDGETPU_DELEGATE_DIRECTIVE = "#
|
|
68
|
+
export declare const EDGETPU_DELEGATE_DIRECTIVE = "# dominevo-native-dep: edgetpu-delegate";
|
|
69
69
|
export declare function declaresEdgetpuDelegate(requirementsText: string): boolean;
|
|
70
70
|
export interface EnsureEdgetpuDelegateOptions {
|
|
71
71
|
readonly env?: NodeJS.ProcessEnv;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* ## The rule
|
|
5
5
|
*
|
|
6
|
-
* 1. `
|
|
6
|
+
* 1. `DOMINEVO_FFMPEG_PATH`, when the operator set it and it exists. Pointing
|
|
7
7
|
* at your own build is a deliberate act and it wins over everything.
|
|
8
8
|
* 2. The pinned build this node has already downloaded, named by release
|
|
9
9
|
* (`ffmpeg-<release>`), in `<dataDir>/deps`.
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* rollback is a file that is already on disk rather than a download.
|
|
40
40
|
*/
|
|
41
41
|
/** Operator override. Unset on every node unless a human deliberately set it. */
|
|
42
|
-
export declare const FFMPEG_PATH_ENV = "
|
|
42
|
+
export declare const FFMPEG_PATH_ENV = "DOMINEVO_FFMPEG_PATH";
|
|
43
43
|
export type FfmpegBinaryOrigin = 'override' | 'downloaded';
|
|
44
44
|
export interface FfmpegBinaryChoice {
|
|
45
45
|
readonly origin: FfmpegBinaryOrigin;
|
|
@@ -3,7 +3,7 @@ import type { IScopedLogger } from '../interfaces/logging.js';
|
|
|
3
3
|
* The ffmpeg this node runs, downloading the pinned build if it is not here
|
|
4
4
|
* yet, and reporting what it got.
|
|
5
5
|
*
|
|
6
|
-
* Order: the operator's `
|
|
6
|
+
* Order: the operator's `DOMINEVO_FFMPEG_PATH` → the pinned build already on
|
|
7
7
|
* disk → download it. No PATH, no image copy, no per-platform special case —
|
|
8
8
|
* see `ffmpeg-binary-source.ts` for why the image stopped being special after
|
|
9
9
|
* exactly one day.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ICON_CATALOG_SOURCE: {
|
|
2
2
|
readonly lucideReact: '0.576.0';
|
|
3
|
-
readonly lucideReactNative: '1.
|
|
3
|
+
readonly lucideReactNative: '1.83.0';
|
|
4
4
|
readonly metadata: 'lucide-icons/lucide@0.576.0 icons/*.json';
|
|
5
5
|
};
|
|
6
6
|
/** Lucide category ids, alphabetical. `ICON_META` indexes into this. */
|
|
@@ -10,10 +10,7 @@ export declare const ICON_KEYS: readonly ['a-arrow-down', 'a-arrow-up', 'a-large
|
|
|
10
10
|
/** Parallel to `ICON_KEYS`: [category indexes (first = primary), English tags]. */
|
|
11
11
|
export declare const ICON_META: readonly (readonly [readonly number[], readonly string[]])[];
|
|
12
12
|
/** Keys whose viewer module (`lucide-react-native/icons/<module>`) is not the key. */
|
|
13
|
-
export declare const ICON_VIEWER_MODULES: {
|
|
14
|
-
readonly 'text-select': 'square-dashed-text';
|
|
15
|
-
readonly waves: 'waves-horizontal';
|
|
16
|
-
};
|
|
13
|
+
export declare const ICON_VIEWER_MODULES: {};
|
|
17
14
|
/** Old spelling → canonical key, for ids both packages still accept. */
|
|
18
15
|
export declare const ICON_ALIASES: {
|
|
19
16
|
readonly 'activity-square': 'square-activity';
|
|
@@ -119,7 +119,7 @@ export declare enum EventCategory {
|
|
|
119
119
|
AddonLoadRecovered = "addon.load-recovered",
|
|
120
120
|
/**
|
|
121
121
|
* An addon is RUNNING although its installed package is below what the
|
|
122
|
-
* running server requires (`
|
|
122
|
+
* running server requires (`dominevo.requires.addons` of the server, or the
|
|
123
123
|
* addon's own `requires.server`). Raised once per streak by the unsupported-
|
|
124
124
|
* addon tracker, on the hub and on agents; AlertCenter turns it into one
|
|
125
125
|
* operator alert per node and package. The addon is never held back for it.
|
|
@@ -607,7 +607,7 @@ export declare enum EventCategory {
|
|
|
607
607
|
*/
|
|
608
608
|
MetricsNodeResourcesSnapshot = "metrics.node-resources-snapshot",
|
|
609
609
|
/**
|
|
610
|
-
* Periodic per-node process-tree snapshot (
|
|
610
|
+
* Periodic per-node process-tree snapshot (dominevo-related pids
|
|
611
611
|
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
612
612
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
613
613
|
* without polling `metricsProvider.listNodeProcesses`.
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_event_category = require("./event-category-DhlUHlM5.js");
|
|
3
3
|
//#region src/enums/event-category-catalog.ts
|
|
4
4
|
/**
|
|
5
5
|
* The event-category catalogue: what an operator-facing surface (a picker, the
|
package/dist/enums.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-
|
|
1
|
+
import { r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-CwprdwEL.mjs";
|
|
2
2
|
//#region src/enums/event-category-catalog.ts
|
|
3
3
|
/**
|
|
4
4
|
* The event-category catalogue: what an operator-facing surface (a picker, the
|
|
@@ -1103,26 +1103,6 @@ var BaseAddon = class {
|
|
|
1103
1103
|
} catch {}
|
|
1104
1104
|
}
|
|
1105
1105
|
/**
|
|
1106
|
-
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
1107
|
-
*
|
|
1108
|
-
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
1109
|
-
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
1110
|
-
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
1111
|
-
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
1112
|
-
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
1113
|
-
* whose real data dir differs (e.g. the macOS electron agent).
|
|
1114
|
-
*
|
|
1115
|
-
* `node:path`/`node:fs` are imported dynamically so the `@dominevo/types` root
|
|
1116
|
-
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
1117
|
-
*/
|
|
1118
|
-
async resolveModelsDir() {
|
|
1119
|
-
const { join } = await import("node:path");
|
|
1120
|
-
const { promises: fsp } = await import("node:fs");
|
|
1121
|
-
const dir = join(this.ctx.nodeDataDir, "models");
|
|
1122
|
-
await fsp.mkdir(dir, { recursive: true });
|
|
1123
|
-
return dir;
|
|
1124
|
-
}
|
|
1125
|
-
/**
|
|
1126
1106
|
* Access the runtime capability registry for in-process provider lookups.
|
|
1127
1107
|
* Returns null if the registry is not available (e.g. on agents).
|
|
1128
1108
|
* Used by addons that consume other capabilities directly (snapshot, stream-broker, enrichment).
|
|
@@ -1537,14 +1517,14 @@ function collectFieldKeys(fields) {
|
|
|
1537
1517
|
return collected;
|
|
1538
1518
|
}
|
|
1539
1519
|
/**
|
|
1540
|
-
* Normalize an `
|
|
1520
|
+
* Normalize an `IDominevoAddon.initialize()` return value into the
|
|
1541
1521
|
* `AddonInitResult` envelope. Arrays are wrapped into `{ providers }`;
|
|
1542
1522
|
* envelopes pass through; void stays void.
|
|
1543
1523
|
*
|
|
1544
1524
|
* Exported so the kernel boot path and the backend addon registry can
|
|
1545
1525
|
* share the same normalizer instead of duplicating the shim. Addons that
|
|
1546
1526
|
* extend `BaseAddon` already emit the envelope, so this helper is only a
|
|
1547
|
-
* safety net for direct `
|
|
1527
|
+
* safety net for direct `IDominevoAddon` implementations (mostly tests).
|
|
1548
1528
|
*/
|
|
1549
1529
|
function normalizeAddonInitResult(result) {
|
|
1550
1530
|
if (result == null) return;
|
|
@@ -2,7 +2,7 @@ import { isInstanceOn, recordInstanceSwitch } from "./instance-switches.mjs";
|
|
|
2
2
|
import { optionalLinkField } from "./instance-link-meta.mjs";
|
|
3
3
|
import { RecordIntegrationInstances } from "./record-integration-instances.mjs";
|
|
4
4
|
import { composeInstanceKinds } from "./compose-instance-kinds.mjs";
|
|
5
|
-
import { forbiddenError } from "../i18n/
|
|
5
|
+
import { forbiddenError } from "../i18n/dominevo-error.mjs";
|
|
6
6
|
import { TargetSchema } from "../capabilities/notification-output.cap.mjs";
|
|
7
7
|
import { defineEntryKind } from "../records/entry-kind.mjs";
|
|
8
8
|
import { instanceSourceOverApi, instancesOfCap } from "./instances-of-cap.mjs";
|
|
@@ -41,7 +41,7 @@ function secretMapPatch(value) {
|
|
|
41
41
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
42
42
|
const out = {};
|
|
43
43
|
for (const [key, entry] of Object.entries(value)) if (entry === null || isSecretClear(entry)) out[key] = null;
|
|
44
|
-
else if (typeof entry === "string" && entry !== "" && entry !== "
|
|
44
|
+
else if (typeof entry === "string" && entry !== "" && entry !== "__dominevo_redacted__" && !isSecretFieldView(entry)) out[key] = entry;
|
|
45
45
|
return Object.keys(out).length > 0 ? out : null;
|
|
46
46
|
}
|
|
47
47
|
var RecordIntegrationInstances = class {
|
|
@@ -232,7 +232,7 @@ var RecordIntegrationInstances = class {
|
|
|
232
232
|
if (entries !== null) patch[key] = entries;
|
|
233
233
|
} else if (!this.secretKeys.has(key)) patch[key] = value;
|
|
234
234
|
else if (isSecretClear(value)) patch[key] = null;
|
|
235
|
-
else if (typeof value === "string" && value !== "" && value !== "
|
|
235
|
+
else if (typeof value === "string" && value !== "" && value !== "__dominevo_redacted__" && !isSecretFieldView(value)) patch[key] = value;
|
|
236
236
|
}
|
|
237
237
|
return patch;
|
|
238
238
|
}
|
package/dist/esm/addon.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { secretViewsOf } from "./records/secret-views.mjs";
|
|
|
11
11
|
import { isInstanceSwitchesUnreadError } from "./addon/instance-switches-unread-error.mjs";
|
|
12
12
|
import { SCOPED_SETTINGS_SCOPES, nodeIdOfScopedKey, resolveDeviceSettings, resolvedValues } from "./addon/scoped-settings.mjs";
|
|
13
13
|
import { BaseAddon, normalizeAddonInitResult } from "./addon/base-addon.mjs";
|
|
14
|
-
import { ErrorI18nPayloadSchema, readErrorI18n } from "./i18n/
|
|
14
|
+
import { ErrorI18nPayloadSchema, readErrorI18n } from "./i18n/dominevo-error.mjs";
|
|
15
15
|
import { expandCapMethods } from "./capabilities/capability-definition.mjs";
|
|
16
16
|
import { collectZodSecretPaths, isZodSecret } from "./device/zod-secret.mjs";
|
|
17
17
|
import { EntryDescriptorSchema, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordRetentionSchema, StoredRecordKindDeclarationSchema, assertValidDeclaration, declarationsOf, defineRecordKinds } from "./records/record-kind.mjs";
|
package/dist/esm/app-bridge.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import { z } from "zod";
|
|
|
2
2
|
//#region src/app-bridge.ts
|
|
3
3
|
/**
|
|
4
4
|
* The `postMessage` bridge between the viewer shell and an embedded app (D1096).
|
|
5
|
-
* Every message is `{
|
|
5
|
+
* Every message is `{ dominevo: 'app-bridge', v: 1, type, ... }`; anything else
|
|
6
6
|
* parses to `null` and is ignored.
|
|
7
7
|
*/
|
|
8
8
|
var Envelope = {
|
|
9
|
-
|
|
9
|
+
dominevo: /* @__PURE__ */ z.literal("app-bridge"),
|
|
10
10
|
v: /* @__PURE__ */ z.literal(1)
|
|
11
11
|
};
|
|
12
12
|
var ShellToAppMessageSchema = /* @__PURE__ */ z.discriminatedUnion("type", [
|
|
@@ -10,16 +10,10 @@
|
|
|
10
10
|
* refused by the other.
|
|
11
11
|
*
|
|
12
12
|
* `dominevo` is the production app; `dominevo.dev` the dev client
|
|
13
|
-
* (`APP_VARIANT=development`).
|
|
14
|
-
* previous store app is still installed against production hubs. Exact match after canonicalisation — no
|
|
13
|
+
* (`APP_VARIANT=development`). Exact match after canonicalisation — no
|
|
15
14
|
* query or fragment riders, no http(s).
|
|
16
15
|
*/
|
|
17
|
-
var APP_AUTH_CALLBACK_URLS = [
|
|
18
|
-
"dominevo://auth-callback",
|
|
19
|
-
"dominevo.dev://auth-callback",
|
|
20
|
-
"camstack://auth-callback",
|
|
21
|
-
"camstack.dev://auth-callback"
|
|
22
|
-
];
|
|
16
|
+
var APP_AUTH_CALLBACK_URLS = ["dominevo://auth-callback", "dominevo.dev://auth-callback"];
|
|
23
17
|
/** Longest raw callback value considered at all. */
|
|
24
18
|
var APP_AUTH_CALLBACK_MAX_LENGTH = 512;
|
|
25
19
|
/**
|
|
@@ -37,7 +31,7 @@ function parseAppAuthCallback(raw) {
|
|
|
37
31
|
const canonical = canonicalizeAppCallback(raw);
|
|
38
32
|
return APP_AUTH_CALLBACK_URLS.includes(canonical) ? canonical : null;
|
|
39
33
|
}
|
|
40
|
-
/** True for a URL with a scheme (`
|
|
34
|
+
/** True for a URL with a scheme (`dominevo://…`, `https://…`) — not a hub-relative path. */
|
|
41
35
|
function hasUrlScheme(url) {
|
|
42
36
|
return /^[a-z][a-z0-9+.-]*:/i.test(url);
|
|
43
37
|
}
|
|
@@ -124,13 +124,13 @@ var CREDENTIAL_TOKEN_KIND = "credential";
|
|
|
124
124
|
* can never be replayed as a person's session. Only the credential verifier's
|
|
125
125
|
* own door (`verifyCredentialToken`) accepts it.
|
|
126
126
|
*/
|
|
127
|
-
var CREDENTIAL_TOKEN_AUDIENCE = "
|
|
127
|
+
var CREDENTIAL_TOKEN_AUDIENCE = "dominevo:credential";
|
|
128
128
|
/** Does a verified JWT payload belong to the minted-token family? */
|
|
129
129
|
function isCredentialTokenPayload(payload) {
|
|
130
130
|
if (payload === null || typeof payload !== "object") return false;
|
|
131
131
|
const kind = Reflect.get(payload, "kind");
|
|
132
132
|
const aud = Reflect.get(payload, "aud");
|
|
133
|
-
return kind === "credential" || aud === "
|
|
133
|
+
return kind === "credential" || aud === "dominevo:credential" || Array.isArray(aud) && aud.includes("dominevo:credential");
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
136
|
* The claims of a unified token (`auth.mintToken`). It carries no `exp`: its
|
|
@@ -18,7 +18,7 @@ import { z } from "zod";
|
|
|
18
18
|
/** Signature algorithm of every device credential: ECDSA, curve P-256, SHA-256. */
|
|
19
19
|
var DEVICE_CERT_SIGNATURE = "ecdsa-p256-sha256";
|
|
20
20
|
/** First line of every signed message; a change of format bumps the version. */
|
|
21
|
-
var DEVICE_SIGNATURE_MESSAGE_VERSION = "
|
|
21
|
+
var DEVICE_SIGNATURE_MESSAGE_VERSION = "dominevo-device-cert-v1";
|
|
22
22
|
/** What a signature is for. A login signature can never be replayed as a renewal. */
|
|
23
23
|
var DeviceSignaturePurposeSchema = /* @__PURE__ */ z.enum([
|
|
24
24
|
"login",
|
|
@@ -32,12 +32,12 @@ var DEVICE_CERT_RENEW_WINDOW_DAYS = 30;
|
|
|
32
32
|
var DEVICE_ENROLLMENT_TTL_MS = 10 * 6e4;
|
|
33
33
|
var DEVICE_NONCE_TTL_MS = 6e4;
|
|
34
34
|
/** SAN URI prefixes of a device leaf. */
|
|
35
|
-
var DEVICE_SAN_CREDENTIAL_PREFIX = "
|
|
36
|
-
var DEVICE_SAN_USER_PREFIX = "
|
|
35
|
+
var DEVICE_SAN_CREDENTIAL_PREFIX = "dominevo:credential:";
|
|
36
|
+
var DEVICE_SAN_USER_PREFIX = "dominevo:user:";
|
|
37
37
|
/**
|
|
38
38
|
* The exact bytes a device signs (UTF-8, `\n` separators, no trailing newline):
|
|
39
39
|
*
|
|
40
|
-
*
|
|
40
|
+
* dominevo-device-cert-v1
|
|
41
41
|
* <login|renew>
|
|
42
42
|
* <origin> the hub origin returned by `getDeviceChallenge`
|
|
43
43
|
* <nonce>
|
|
@@ -54,13 +54,8 @@ function buildDeviceSignatureMessage(input) {
|
|
|
54
54
|
input.nonce
|
|
55
55
|
].join("\n");
|
|
56
56
|
}
|
|
57
|
-
/** The app schemes an enrollment link may carry: the
|
|
58
|
-
var ENROLLMENT_PROTOCOLS = [
|
|
59
|
-
"dominevo:",
|
|
60
|
-
"dominevo.dev:",
|
|
61
|
-
"camstack:",
|
|
62
|
-
"camstack.dev:"
|
|
63
|
-
];
|
|
57
|
+
/** The app schemes an enrollment link may carry: the app and its dev client. */
|
|
58
|
+
var ENROLLMENT_PROTOCOLS = ["dominevo:", "dominevo.dev:"];
|
|
64
59
|
/** The deep link a QR carries: `dominevo://enroll?hub=<origin>&code=<code>`. */
|
|
65
60
|
function buildDeviceEnrollmentLink(input) {
|
|
66
61
|
const query = new URLSearchParams();
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* One name, two readers (the OIDC addon that sets it, the hub that checks it).
|
|
14
14
|
*/
|
|
15
|
-
var SSO_STATE_COOKIE = "
|
|
15
|
+
var SSO_STATE_COOKIE = "dominevo_sso_state";
|
|
16
16
|
/** Seconds the state cookie lives — the pending IdP state lasts 5 minutes, the bridge 5 more. */
|
|
17
17
|
var SSO_STATE_COOKIE_MAX_AGE_SEC = 600;
|
|
18
18
|
//#endregion
|
|
@@ -12,7 +12,7 @@ var SMTP_INBOUND_KIND = "smtp-inbound";
|
|
|
12
12
|
/** The id the first mailbox is minted under (adopt-id), so a consumer can find it again. */
|
|
13
13
|
var SMTP_INBOUND_DEFAULT_ID = "smtp-inbound-default";
|
|
14
14
|
var SMTP_INBOUND_DEFAULT_PORT = 2525;
|
|
15
|
-
var SMTP_INBOUND_DEFAULT_DOMAIN = "
|
|
15
|
+
var SMTP_INBOUND_DEFAULT_DOMAIN = "dominevo.local";
|
|
16
16
|
var SMTP_INBOUND_DEFAULT_MAX_MESSAGE_BYTES = 25 * 1024 * 1024;
|
|
17
17
|
/** The ring keeps the last N messages of one mailbox, each for at most the age below. */
|
|
18
18
|
var SMTP_INBOUND_RING_MAX_MESSAGES = 200;
|
|
@@ -22,7 +22,7 @@ import { CommandOriginClaimSchema } from "./audit/command-origin-claim.mjs";
|
|
|
22
22
|
* await api.platformProbe.getCapabilities.query(undefined, nodePin(nodeId))
|
|
23
23
|
*/
|
|
24
24
|
/** tRPC `op.context` key carrying a per-call node pin. */
|
|
25
|
-
var CAP_NODE_PIN_CONTEXT_KEY = "
|
|
25
|
+
var CAP_NODE_PIN_CONTEXT_KEY = "__dominevoNodePin";
|
|
26
26
|
/**
|
|
27
27
|
* Build the tRPC request options that pin a single capability call to `nodeId`.
|
|
28
28
|
* Pass as the second argument to `.query(input, …)` / `.mutate(input, …)`.
|
|
@@ -69,7 +69,7 @@ function readNodePin(context) {
|
|
|
69
69
|
return typeof value === "string" ? value : void 0;
|
|
70
70
|
}
|
|
71
71
|
/** tRPC `op.context` key carrying a per-call command origin claim (D1022). */
|
|
72
|
-
var CAP_COMMAND_ORIGIN_CONTEXT_KEY = "
|
|
72
|
+
var CAP_COMMAND_ORIGIN_CONTEXT_KEY = "__dominevoCommandOrigin";
|
|
73
73
|
/**
|
|
74
74
|
* Build the tRPC request options that state WHY a device command is being issued
|
|
75
75
|
* (an action run, a scheduler). Pass as the second argument to `.mutate(input, …)`;
|
|
@@ -380,7 +380,7 @@ var backupCapability = {
|
|
|
380
380
|
*/
|
|
381
381
|
listLocations: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(LocationStatSchema).readonly(), { auth: "admin" }),
|
|
382
382
|
/**
|
|
383
|
-
* Read the embedded `.
|
|
383
|
+
* Read the embedded `.dominevo-backup-manifest.json` from a
|
|
384
384
|
* previously-created archive. The manifest carries the full
|
|
385
385
|
* file/dir listing with sizes + mtimes — the readdir snapshot
|
|
386
386
|
* the UI shows in the "Contents" panel. Returns `null` when the
|
|
@@ -39,7 +39,7 @@ var ImportModelBundleInputSchema = /* @__PURE__ */ z.object({
|
|
|
39
39
|
stepId: /* @__PURE__ */ z.string().min(1),
|
|
40
40
|
/**
|
|
41
41
|
* The catalog rows to register, complete, every format URL already
|
|
42
|
-
* `
|
|
42
|
+
* `dominevo-local://<modelId>/<file>` naming a file of the bundle. One
|
|
43
43
|
* bundle may carry several rows (a base and its INT8 variant).
|
|
44
44
|
*/
|
|
45
45
|
entries: /* @__PURE__ */ z.array(ModelCatalogEntrySchema).min(1).max(4),
|
|
@@ -2,7 +2,7 @@ import { method, optionalMethod } from "./capability-definition.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/capabilities/device-export.cap.ts
|
|
4
4
|
/**
|
|
5
|
-
* `device-export` — collection cap for addons that export
|
|
5
|
+
* `device-export` — collection cap for addons that export dominevo
|
|
6
6
|
* devices to external ecosystems (HomeAssistant via MQTT discovery,
|
|
7
7
|
* HomeKit/HAP, Alexa Smart Home, …).
|
|
8
8
|
*
|
|
@@ -106,7 +106,7 @@ var FaceInfoSchema = /* @__PURE__ */ z.object({
|
|
|
106
106
|
* snapshot surfaces made on 2026-08-08.
|
|
107
107
|
*
|
|
108
108
|
* Served by the `event-media` plane, which resolves a raw MediaStore key and
|
|
109
|
-
* is `access: 'authenticated'`: a bare `<img>` carries the `
|
|
109
|
+
* is `access: 'authenticated'`: a bare `<img>` carries the `dominevo_session`
|
|
110
110
|
* cookie, so no header plumbing is needed. The bytes then ride the browser's
|
|
111
111
|
* HTTP cache with an ETag and `immutable`, instead of the WebSocket.
|
|
112
112
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DOMINEVO_APP_LINK_ORIGIN, isAppLinkBase } from "./viewer-link-url.mjs";
|
|
2
2
|
//#region src/capabilities/hub-address.ts
|
|
3
3
|
var HUB_ADDRESS_ROLES = [
|
|
4
4
|
"appConnections",
|
|
@@ -136,7 +136,7 @@ var PUBLIC_ENDPOINT_HTTP_REASON = "The public endpoint needs an https:// address
|
|
|
136
136
|
function checkRoleAddress(role, baseUrl, options = {}) {
|
|
137
137
|
if (isAppLinkBase(baseUrl)) return role === "notificationTaps" ? {
|
|
138
138
|
ok: true,
|
|
139
|
-
baseUrl:
|
|
139
|
+
baseUrl: DOMINEVO_APP_LINK_ORIGIN
|
|
140
140
|
} : {
|
|
141
141
|
ok: false,
|
|
142
142
|
reason: "The Dominevo app link is not a hub address — only notification taps can use it."
|
|
@@ -216,7 +216,7 @@ function resolveNotificationTapAddress(flags) {
|
|
|
216
216
|
};
|
|
217
217
|
return {
|
|
218
218
|
flagged: null,
|
|
219
|
-
resolved:
|
|
219
|
+
resolved: DOMINEVO_APP_LINK_ORIGIN,
|
|
220
220
|
source: "auto"
|
|
221
221
|
};
|
|
222
222
|
}
|
|
@@ -270,13 +270,13 @@ function hubAddressHostname(baseUrl) {
|
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* How a client finds a hub on the LAN (D838): the hub publishes ONE mDNS
|
|
273
|
-
* service for its HTTPS endpoint. `
|
|
273
|
+
* service for its HTTPS endpoint. `_dominevo._tcp` carries the hub's `internal`
|
|
274
274
|
* address in `url`, and nothing secret — finding a hub grants nothing, every
|
|
275
275
|
* client still signs in. The mesh channel stays retired (D826).
|
|
276
276
|
*/
|
|
277
|
-
var HUB_MDNS_SERVICE_TYPE = "
|
|
277
|
+
var HUB_MDNS_SERVICE_TYPE = "dominevo";
|
|
278
278
|
/** The fully-qualified name a client browses for. */
|
|
279
|
-
var HUB_MDNS_QUERY_NAME = "
|
|
279
|
+
var HUB_MDNS_QUERY_NAME = "_dominevo._tcp.local";
|
|
280
280
|
/** The TXT keys of the advertisement. Every value is public. */
|
|
281
281
|
var HUB_MDNS_TXT_KEYS = {
|
|
282
282
|
nodeId: "nodeId",
|
|
@@ -302,9 +302,9 @@ function isHubId(value) {
|
|
|
302
302
|
* port, paired or not. The TXT record carries only public facts. Finding an agent grants
|
|
303
303
|
* nothing: pairing still needs the six-digit code confirmed on both screens.
|
|
304
304
|
*/
|
|
305
|
-
var AGENT_MDNS_SERVICE_TYPE = "
|
|
305
|
+
var AGENT_MDNS_SERVICE_TYPE = "dominevo-agent";
|
|
306
306
|
/** The fully-qualified name a hub browses for. */
|
|
307
|
-
var AGENT_MDNS_QUERY_NAME = "
|
|
307
|
+
var AGENT_MDNS_QUERY_NAME = "_dominevo-agent._tcp.local";
|
|
308
308
|
/** The TXT keys of the agent advertisement. Every value is public. */
|
|
309
309
|
var AGENT_MDNS_TXT_KEYS = {
|
|
310
310
|
nodeId: "nodeId",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { readErrorI18n } from "../i18n/
|
|
1
|
+
import { readErrorI18n } from "../i18n/dominevo-error.mjs";
|
|
2
2
|
import { method } from "./capability-definition.mjs";
|
|
3
3
|
import { DeviceType } from "../device/device-type.mjs";
|
|
4
4
|
import { t } from "../device/cap-vocabulary/l10n.mjs";
|
|
@@ -13,7 +13,7 @@ import { z } from "zod";
|
|
|
13
13
|
* returns a value.
|
|
14
14
|
*
|
|
15
15
|
* The master key's LOCATION is a fixed path, never an env var (D788, D991):
|
|
16
|
-
* `/run/secrets/
|
|
16
|
+
* `/run/secrets/dominevo-master-key` when that file exists, the OS keychain on
|
|
17
17
|
* a desktop hub, else
|
|
18
18
|
* `<dataDir>/.keychain/master.key` — which sits beside the database in every
|
|
19
19
|
* whole-volume backup, and the status says so.
|
|
@@ -211,7 +211,7 @@ var keychainAdminCapability = {
|
|
|
211
211
|
* a new master key, write it there, re-wrap. A file or OS-keychain primary
|
|
212
212
|
* that is already in use cannot be replaced from here — put the new key at
|
|
213
213
|
* the source, keep the old one at
|
|
214
|
-
* `/run/secrets/
|
|
214
|
+
* `/run/secrets/dominevo-master-key.previous`, restart, and rotate. No value is re-encrypted either way; the previous wrap is kept
|
|
215
215
|
* (retired) until purged.
|
|
216
216
|
*/
|
|
217
217
|
rotateMasterKey: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.object({
|
|
@@ -38,7 +38,7 @@ import { z } from "zod";
|
|
|
38
38
|
*
|
|
39
39
|
* ## The external observer still has a job
|
|
40
40
|
*
|
|
41
|
-
* `metrics.node-processes-snapshot` measures every
|
|
41
|
+
* `metrics.node-processes-snapshot` measures every dominevo-shaped process on
|
|
42
42
|
* the node whether or not anybody claims it. Contributions cover what the
|
|
43
43
|
* addons know about; the snapshot covers what is actually running. **The
|
|
44
44
|
* difference is the finding** — a process nobody claims is either a leak or a
|
|
@@ -390,7 +390,7 @@ var localNetworkCapability = {
|
|
|
390
390
|
* belongs to whoever already owns it). This method used to take a `port`
|
|
391
391
|
* and echo it onto every LAN and loopback URL it advertised, which made
|
|
392
392
|
* every client a second authority on a socket only the hub binds. A viewer
|
|
393
|
-
* configured with a port-less public URL (`https://
|
|
393
|
+
* configured with a port-less public URL (`https://dominevo.example.top`)
|
|
394
394
|
* infers 443 from the scheme, asks with 443, and was handed
|
|
395
395
|
* `https://192.168.10.9:443` for a hub listening on 4443. That candidate
|
|
396
396
|
* cannot ever answer, and losing its race reads in the log exactly like
|
|
@@ -36,7 +36,7 @@ var MeshEndpointSchema = /* @__PURE__ */ z.object({
|
|
|
36
36
|
* - `public`: open internet (Funnel, public-tunnel pass-through)
|
|
37
37
|
*/
|
|
38
38
|
scope: /* @__PURE__ */ z.enum(["mesh", "public"]),
|
|
39
|
-
/** Full base URL (e.g. `https://
|
|
39
|
+
/** Full base URL (e.g. `https://dominevo.tail-abc.ts.net`). */
|
|
40
40
|
url: /* @__PURE__ */ z.string(),
|
|
41
41
|
/** Hostname portion (for SAN cert checks + display). */
|
|
42
42
|
hostname: /* @__PURE__ */ z.string(),
|
|
@@ -97,7 +97,7 @@ var MeshStatusSchema = /* @__PURE__ */ z.object({
|
|
|
97
97
|
joined: /* @__PURE__ */ z.boolean(),
|
|
98
98
|
/** Local mesh IPv4 (e.g. `100.x.x.x` for Tailscale). Empty when not joined. */
|
|
99
99
|
meshIp: /* @__PURE__ */ z.string(),
|
|
100
|
-
/** MagicDNS / mesh hostname (e.g. `
|
|
100
|
+
/** MagicDNS / mesh hostname (e.g. `dominevo.tail-abc.ts.net`). Empty if not configured. */
|
|
101
101
|
magicDnsHostname: /* @__PURE__ */ z.string(),
|
|
102
102
|
/** Number of peers visible to this host (excluding self). */
|
|
103
103
|
peerCount: /* @__PURE__ */ z.number(),
|
|
@@ -203,7 +203,7 @@ var ContainerMemoryPointSchema = /* @__PURE__ */ (/* @__PURE__ */ z.object({
|
|
|
203
203
|
* component of `currentBytes` and must not be subtracted from it; it says
|
|
204
204
|
* what put the shmem there, where `shmemBytes` only says how much.
|
|
205
205
|
*
|
|
206
|
-
* `null` wherever debugfs is not mounted — which is inside every
|
|
206
|
+
* `null` wherever debugfs is not mounted — which is inside every dominevo
|
|
207
207
|
* container today — and on any node with no Intel GPU.
|
|
208
208
|
*/
|
|
209
209
|
gpuShmemBytes: /* @__PURE__ */ z.number().nullable()
|
|
@@ -366,7 +366,7 @@ var metricsProviderCapability = {
|
|
|
366
366
|
*/
|
|
367
367
|
getAddonStats: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ addonId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ PidResourceStatsSchema.nullable()),
|
|
368
368
|
/**
|
|
369
|
-
* Snapshot of every
|
|
369
|
+
* Snapshot of every dominevo-related process on this node with a
|
|
370
370
|
* root/managed/system classification. Powers the Cluster → Agent →
|
|
371
371
|
* Processes tab: cross-references `$process.list` against a `ps` scan so
|
|
372
372
|
* per-addon CPU and RSS can be attributed, and so a process the cluster
|
|
@@ -8,7 +8,7 @@ import { z } from "zod";
|
|
|
8
8
|
/**
|
|
9
9
|
* migrations — the ledger and the controls of the boot-time migration engine
|
|
10
10
|
* (D987). Hub-only and internal: `sqlite-settings` is the registrant, because the
|
|
11
|
-
* ledger lives INSIDE the database files it serves (`
|
|
11
|
+
* ledger lives INSIDE the database files it serves (`dominevo.db`, `events.db`,
|
|
12
12
|
* `history.db`) and only its connection or worker may touch them (D679).
|
|
13
13
|
*
|
|
14
14
|
* The engine itself runs in the owner's `afterOpen`, before any provider is
|
|
@@ -1480,7 +1480,7 @@ var NcRulePatchSchema = /* @__PURE__ */ NcRuleInputSchema.partial().extend({
|
|
|
1480
1480
|
* Keys an older client may still name in `clear` (D692 §2.3). Accepted so its saves are never
|
|
1481
1481
|
* refused. They are no longer rule fields: `NcRuleStore.update` only strips them from the
|
|
1482
1482
|
* STORED row, and `NcRuleStore.load` projects what a stored row still carries (D692 §9).
|
|
1483
|
-
* Removed one release after the viewer pin in
|
|
1483
|
+
* Removed one release after the viewer pin in dominevo-server stops sending them.
|
|
1484
1484
|
*/
|
|
1485
1485
|
var NC_RULE_RETIRED_CLEAR_KEYS = ["waitForEnhancement", "groupIdleSec"];
|
|
1486
1486
|
/**
|
|
@@ -18,7 +18,7 @@ import { z } from "zod";
|
|
|
18
18
|
* `oauth2-routes.ts` ([D101](../../../../docs/decisions/adr-0101.md)). Three
|
|
19
19
|
* steps, no others:
|
|
20
20
|
*
|
|
21
|
-
* 1. Add `{ "name": "oauth-integration" }` to the addon's `
|
|
21
|
+
* 1. Add `{ "name": "oauth-integration" }` to the addon's `dominevo.addons[]`
|
|
22
22
|
* manifest entry. This is also what tells the hub, at addon-LOAD time, that
|
|
23
23
|
* a descriptor is owed — see "the boot window" below.
|
|
24
24
|
* 2. Return a provider from `onInitialize()`:
|
|
@@ -78,7 +78,7 @@ var AgentPipelineSettingsSchema = /* @__PURE__ */ z.object({
|
|
|
78
78
|
/**
|
|
79
79
|
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
80
80
|
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
81
|
-
* falls back to its `
|
|
81
|
+
* falls back to its `DOMINEVO_HUB_URL`-derived host (the Moleculer address
|
|
82
82
|
* it already uses to reach the hub). Set this only when the auto-detected
|
|
83
83
|
* address is wrong (multi-homed host, NAT, custom interface).
|
|
84
84
|
*/
|
|
@@ -953,7 +953,7 @@ var pipelineOrchestratorCapability = {
|
|
|
953
953
|
/**
|
|
954
954
|
* Set (or clear) the operator override for the LAN host a cross-node
|
|
955
955
|
* decoder dials to reach this node's restream. Pass a non-empty string to
|
|
956
|
-
* override the auto-detected address (the runner's `
|
|
956
|
+
* override the auto-detected address (the runner's `DOMINEVO_HUB_URL`
|
|
957
957
|
* default); pass `null` or an empty string to clear it and revert to
|
|
958
958
|
* auto-detect. Applied on the next dispatch cycle — takes effect for new
|
|
959
959
|
* cross-node attaches; existing attaches keep their current host until
|
|
@@ -483,7 +483,7 @@ var ReportMotionInputSchema = /* @__PURE__ */ z.object({
|
|
|
483
483
|
* pull-mode decoder session pinned to its own node. The shm ring stays
|
|
484
484
|
* node-local; only H.264/H.265 packets cross the wire.
|
|
485
485
|
* `hubHostnameOverride` mirrors the recorder's `recordingHubHostname`:
|
|
486
|
-
* when set it overrides the `
|
|
486
|
+
* when set it overrides the `DOMINEVO_HUB_URL`-derived host the runner
|
|
487
487
|
* dials for the owner's restream.
|
|
488
488
|
*/
|
|
489
489
|
var RunnerFrameSourceSchema = /* @__PURE__ */ z.discriminatedUnion("kind", [/* @__PURE__ */ z.object({ kind: /* @__PURE__ */ z.literal("local-broker") }), /* @__PURE__ */ z.object({
|
|
@@ -494,7 +494,7 @@ var RunnerFrameSourceSchema = /* @__PURE__ */ z.discriminatedUnion("kind", [/* @
|
|
|
494
494
|
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
495
495
|
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
496
496
|
* dials THIS host for the owner's restream, in preference to the
|
|
497
|
-
* `
|
|
497
|
+
* `DOMINEVO_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
498
498
|
*/
|
|
499
499
|
ownerReachableHost: /* @__PURE__ */ z.string().optional(),
|
|
500
500
|
/** Operator override for the owner host the runner dials. */
|