@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
|
@@ -28,7 +28,7 @@ import { z } from "zod";
|
|
|
28
28
|
*
|
|
29
29
|
* ## The default is OURS, and there is nowhere to say otherwise
|
|
30
30
|
*
|
|
31
|
-
* {@link
|
|
31
|
+
* {@link RECORDING_SOURCE_DOMINEVO} is RESERVED. The absence of an operator
|
|
32
32
|
* choice MEANS that value; it is not a row that happened to sort first. Clips
|
|
33
33
|
* end their resolver with `?? sources[0]` and that is right for clips — a
|
|
34
34
|
* camera full of onboard clips that says "no clips" is the defect that work
|
|
@@ -54,15 +54,15 @@ import { z } from "zod";
|
|
|
54
54
|
* `listSources`, and the absence of an operator choice MEANS this value.
|
|
55
55
|
*
|
|
56
56
|
* Reserved is ENFORCED, not requested — `device-collection-dispatch.ts` drops a
|
|
57
|
-
* row spelling it from any addon but {@link
|
|
57
|
+
* row spelling it from any addon but {@link RECORDING_SOURCE_DOMINEVO_ADDON},
|
|
58
58
|
* naming the impostor, and `scripts/check-reserved-collection-sources.ts`
|
|
59
59
|
* fails CI on a provider package that spells it at all. A rule nothing checks
|
|
60
60
|
* has already been broken somewhere.
|
|
61
61
|
*/
|
|
62
|
-
var
|
|
63
|
-
/** The one addon allowed to serve {@link
|
|
62
|
+
var RECORDING_SOURCE_DOMINEVO = "dominevo";
|
|
63
|
+
/** The one addon allowed to serve {@link RECORDING_SOURCE_DOMINEVO}: the
|
|
64
64
|
* recorder, which is the addon that writes the footage (D560). */
|
|
65
|
-
var
|
|
65
|
+
var RECORDING_SOURCE_DOMINEVO_ADDON = "recorder";
|
|
66
66
|
var RecordingRangeSchema = /* @__PURE__ */ z.object({
|
|
67
67
|
profile: /* @__PURE__ */ z.string(),
|
|
68
68
|
startMs: /* @__PURE__ */ z.number(),
|
|
@@ -160,7 +160,7 @@ var RecordingSourceAvailabilitySchema = /* @__PURE__ */ z.object({
|
|
|
160
160
|
* particular is what stops a battery camera being woken to paint a bar.
|
|
161
161
|
*/
|
|
162
162
|
var RecordingSourceSchema = /* @__PURE__ */ z.object({
|
|
163
|
-
/** The source id. {@link
|
|
163
|
+
/** The source id. {@link RECORDING_SOURCE_DOMINEVO} for ours (RESERVED), a
|
|
164
164
|
* vendor namespace (`native:reolink:onboard`, …) for a camera's own store. */
|
|
165
165
|
source: /* @__PURE__ */ z.string(),
|
|
166
166
|
/** Operator-facing name of the source ("Dominevo recordings", "SD card"). */
|
|
@@ -389,4 +389,4 @@ var recordingCapability = {
|
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
//#endregion
|
|
392
|
-
export {
|
|
392
|
+
export { RECORDING_SOURCE_DOMINEVO, RECORDING_SOURCE_DOMINEVO_ADDON, RecordingAvailabilitySchema, RecordingDaysSchema, RecordingManifestSchema, RecordingPlaybackSchema, RecordingRangeSchema, RecordingReadSchema, RecordingSourceAvailabilitySchema, RecordingSourceOptionsSchema, RecordingSourceSchema, recordingCapability };
|
|
@@ -63,7 +63,7 @@ var ServerUpdateStateSchema = /* @__PURE__ */ z.enum([
|
|
|
63
63
|
* deliver today. `applyServerUpdate` swaps the data-root closure and NEVER
|
|
64
64
|
* touches the image, so `runningVersion` can be perfectly current while the
|
|
65
65
|
* container is weeks old, from a renamed repository nothing rebuilds — which
|
|
66
|
-
* is exactly what happened on 2026-08-02 (hub on `
|
|
66
|
+
* is exactly what happened on 2026-08-02 (hub on `dominevo-server:intel-1.1.74`
|
|
67
67
|
* while every existing surface said "up to date"). The seed version is the one
|
|
68
68
|
* image fingerprint a container can see from inside (no docker socket).
|
|
69
69
|
*
|
|
@@ -111,16 +111,16 @@ var ImageContractSchema = /* @__PURE__ */ z.object({
|
|
|
111
111
|
*
|
|
112
112
|
* On 2026-08-02 `check-deployment-templates.ts` proved every day that the
|
|
113
113
|
* templates declared `ghcr.io/dominevo/dominevo:intel-latest` while the hub
|
|
114
|
-
* actually ran `
|
|
114
|
+
* actually ran `dominevo-server:intel-1.1.74` from a repository that had been
|
|
115
115
|
* renamed and received no builds. The declaration was right; reality was not;
|
|
116
|
-
* nothing compared them. A `
|
|
116
|
+
* nothing compared them. A `DOMINEVO_WRAPPER=docker` written into a template
|
|
117
117
|
* would be exactly that same declaration, so `kind` is NEVER an env var.
|
|
118
118
|
*
|
|
119
119
|
* What can honestly be observed from inside: `/.dockerenv` and `/proc/1/cgroup`
|
|
120
120
|
* (a container), and the platform (a Linux container cannot exist on darwin or
|
|
121
121
|
* win32). What cannot: that the node is a CHILD of an Electron main process —
|
|
122
122
|
* `process.versions.electron` is `undefined` in the child, so the only channel
|
|
123
|
-
* is `
|
|
123
|
+
* is `DOMINEVO_AGENT_APP_VERSION`, which the main process already writes
|
|
124
124
|
* (`packages/desktop/src/main.ts`). That one declaration is unavoidable, and it
|
|
125
125
|
* is marked as such on every row of {@link WrapperEvidenceSchema}.
|
|
126
126
|
*
|
|
@@ -88,7 +88,7 @@ var BulkRecordSchema = /* @__PURE__ */ z.object({
|
|
|
88
88
|
* The database FILES one `sqlite-settings` engine process owns (D851).
|
|
89
89
|
* Closed on purpose: a file is a thing the engine opens, backs up and gives a
|
|
90
90
|
* serving thread, so a new one is a code change, never a string a caller
|
|
91
|
-
* invents. `settings` is `
|
|
91
|
+
* invents. `settings` is `dominevo.db` and the default for every collection
|
|
92
92
|
* that names no file.
|
|
93
93
|
*/
|
|
94
94
|
var DataStoreDatabaseSchema = /* @__PURE__ */ z.enum([
|
|
@@ -77,7 +77,7 @@ var SsoBridgeClaimsSchema = /* @__PURE__ */ z.object({
|
|
|
77
77
|
*/
|
|
78
78
|
issuer: /* @__PURE__ */ z.string().optional(),
|
|
79
79
|
/**
|
|
80
|
-
* SHA-256 (hex) of the `
|
|
80
|
+
* SHA-256 (hex) of the `dominevo_sso_state` cookie the IdP `/start` set in
|
|
81
81
|
* the browser that began this sign-in. `/api/auth/sso/finish` requires the
|
|
82
82
|
* request to present the matching cookie — a login bridge is useless in
|
|
83
83
|
* any other browser.
|
|
@@ -142,7 +142,7 @@ var ProviderJobStatusSchema = /* @__PURE__ */ z.object({
|
|
|
142
142
|
* in `result.json`.
|
|
143
143
|
*/
|
|
144
144
|
var TrainerSourceRefSchema = /* @__PURE__ */ z.object({
|
|
145
|
-
/** Hugging Face repo id, e.g. `
|
|
145
|
+
/** Hugging Face repo id, e.g. `Dominevo/dominevo-trainer`. */
|
|
146
146
|
repo: /* @__PURE__ */ z.string().min(1),
|
|
147
147
|
/** A commit sha (never a branch) — the job must be reproducible. */
|
|
148
148
|
revision: /* @__PURE__ */ z.string().regex(/^[0-9a-f]{7,64}$/)
|
|
@@ -56,7 +56,7 @@ var MAX_CLIP_LABELS = 3;
|
|
|
56
56
|
/**
|
|
57
57
|
* Every reason a still-mint route may refuse, as a TOKEN — never prose.
|
|
58
58
|
*
|
|
59
|
-
* The route also sends the prose (`x-
|
|
59
|
+
* The route also sends the prose (`x-dominevo-reason`), because a firmware's
|
|
60
60
|
* own words are the only thing that explains a `camera-refused`. But the token
|
|
61
61
|
* is what a surface may key a table on, and the code and the prose are
|
|
62
62
|
* separate headers precisely because they had been the same one: the route
|
|
@@ -90,7 +90,7 @@ var ClipStillRefusalCodeSchema = /* @__PURE__ */ z.enum([
|
|
|
90
90
|
*/
|
|
91
91
|
var ClipStillDispositionSchema = /* @__PURE__ */ z.enum(["deferred", "final"]);
|
|
92
92
|
/** The camera's / provider's own words. Kept verbatim, never parsed. */
|
|
93
|
-
var CLIP_STILL_REASON_HEADER = "x-
|
|
93
|
+
var CLIP_STILL_REASON_HEADER = "x-dominevo-reason";
|
|
94
94
|
/** Longest reason a header carries. Beyond this the sentence is cut. */
|
|
95
95
|
var CLIP_REASON_HEADER_MAX = 500;
|
|
96
96
|
/**
|
|
@@ -127,9 +127,9 @@ function clipReasonHeaderValue(reason) {
|
|
|
127
127
|
return out.slice(0, 500).trim();
|
|
128
128
|
}
|
|
129
129
|
/** One {@link ClipStillRefusalCodeSchema} token, alone. */
|
|
130
|
-
var CLIP_STILL_REASON_CODE_HEADER = "x-
|
|
130
|
+
var CLIP_STILL_REASON_CODE_HEADER = "x-dominevo-reason-code";
|
|
131
131
|
/** One {@link ClipStillDispositionSchema} token, alone. */
|
|
132
|
-
var CLIP_STILL_DISPOSITION_HEADER = "x-
|
|
132
|
+
var CLIP_STILL_DISPOSITION_HEADER = "x-dominevo-disposition";
|
|
133
133
|
/**
|
|
134
134
|
* The clip STREAM route's own statement of what it is (D597): the value is
|
|
135
135
|
* `forward-only`. A producer writes it on the 200; a consumer that dials a
|
|
@@ -138,7 +138,7 @@ var CLIP_STILL_DISPOSITION_HEADER = "x-camstack-disposition";
|
|
|
138
138
|
* Named here because BOTH the provider and the broker spell it, and two
|
|
139
139
|
* copies of a header name is how one of them stops being checked.
|
|
140
140
|
*/
|
|
141
|
-
var CLIP_STREAM_TRANSPORT_HEADER = "x-
|
|
141
|
+
var CLIP_STREAM_TRANSPORT_HEADER = "x-dominevo-clip-transport";
|
|
142
142
|
var ClipSchema = /* @__PURE__ */ z.object({
|
|
143
143
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
144
144
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -218,7 +218,7 @@ var ClipSchema = /* @__PURE__ */ z.object({
|
|
|
218
218
|
* A URL that MAY produce this clip's still, asked only for rows actually on
|
|
219
219
|
* screen. The opposite of {@link ClipSchema.thumbnail}: that one is VOUCHED
|
|
220
220
|
* (a JPEG is already on disk), this one is an offer. The route answers 200
|
|
221
|
-
* with the image, or 204 with `x-
|
|
221
|
+
* with the image, or 204 with `x-dominevo-reason` when it could not mint one
|
|
222
222
|
* — a surface latches that refusal to the instant rather than retrying.
|
|
223
223
|
*
|
|
224
224
|
* Never both: a clip with a vouched `thumbnail` needs no mint.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
//#region src/capabilities/viewer-link-url.ts
|
|
2
2
|
/** The central link domain the viewer app claims (Universal Links / App Links). */
|
|
3
|
-
var
|
|
3
|
+
var DOMINEVO_APP_LINK_ORIGIN = "https://camstack.zentik.app";
|
|
4
4
|
/** Where the hub serves the viewer SPA. */
|
|
5
|
-
var HUB_VIEWER_MOUNT = "/viewer/
|
|
5
|
+
var HUB_VIEWER_MOUNT = "/viewer/dominevo";
|
|
6
6
|
/** True when `baseUrl` names the Dominevo app link rather than a hub address. */
|
|
7
7
|
function isAppLinkBase(baseUrl) {
|
|
8
8
|
if (baseUrl === null || baseUrl === void 0 || baseUrl === "") return false;
|
|
9
9
|
try {
|
|
10
|
-
return new URL(baseUrl).origin ===
|
|
10
|
+
return new URL(baseUrl).origin === DOMINEVO_APP_LINK_ORIGIN;
|
|
11
11
|
} catch {
|
|
12
12
|
return false;
|
|
13
13
|
}
|
|
@@ -108,10 +108,10 @@ function buildViewerLink(input) {
|
|
|
108
108
|
if (input.base.form === "app") {
|
|
109
109
|
const origin = base === "" ? null : toAppLinkHubOrigin(base);
|
|
110
110
|
const query = origin === null ? route.query : [...route.query, ["hub", origin]];
|
|
111
|
-
return `${
|
|
111
|
+
return `${DOMINEVO_APP_LINK_ORIGIN}${route.path}${encodeQuery(query)}`;
|
|
112
112
|
}
|
|
113
113
|
if (base === "" || isAppLinkBase(base)) return null;
|
|
114
114
|
return `${base}${HUB_VIEWER_MOUNT}${route.path}${encodeQuery(route.query)}`;
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
|
-
export {
|
|
117
|
+
export { DOMINEVO_APP_LINK_ORIGIN, HUB_VIEWER_MOUNT, buildViewerLink, isAppLinkBase, pickAppLinkHub, toAppLinkHubOrigin, viewerLinkBaseOf };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/catalogs/display-palette-tables.ts
|
|
2
2
|
/** Frozen palette tables (D939). The spec refuses a table that breaks the rule. */
|
|
3
|
-
var
|
|
3
|
+
var DOMINEVO_HEX = {
|
|
4
4
|
motion: "#d946ef",
|
|
5
5
|
audio: "#059eb8",
|
|
6
6
|
recording: "#ef4444",
|
|
@@ -56,7 +56,7 @@ var CAMSTACK_HEX = {
|
|
|
56
56
|
doorbell: "#0087ab",
|
|
57
57
|
"appliance-cycle": "#2a8c8c"
|
|
58
58
|
};
|
|
59
|
-
var
|
|
59
|
+
var DOMINEVO_FALLBACK = [
|
|
60
60
|
"#b34dc7",
|
|
61
61
|
"#1d7d34",
|
|
62
62
|
"#db6b6c",
|
|
@@ -199,4 +199,4 @@ var OKABE_ITO_FALLBACK = [
|
|
|
199
199
|
"#4b6628"
|
|
200
200
|
];
|
|
201
201
|
//#endregion
|
|
202
|
-
export {
|
|
202
|
+
export { DOMINEVO_FALLBACK, DOMINEVO_HEX, HIGH_CONTRAST_FALLBACK, HIGH_CONTRAST_HEX, OKABE_ITO_FALLBACK, OKABE_ITO_HEX };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AUDIO_ENTRY_ID, AUDIO_GRADIENT_ALPHAS, PALETTE_ENTRY_IDS, PALETTE_PRESET_IDS, isPaletteEntryId, isPalettePresetId } from "./palette-entries.mjs";
|
|
2
2
|
import { PALETTE_BACKGROUNDS, PALETTE_MARK_PAIR, contrastRatio, deltaE00 } from "./palette-cie.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { DOMINEVO_FALLBACK, DOMINEVO_HEX, HIGH_CONTRAST_FALLBACK, HIGH_CONTRAST_HEX, OKABE_ITO_FALLBACK, OKABE_ITO_HEX } from "./display-palette-tables.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/catalogs/display-palette.ts
|
|
6
6
|
/**
|
|
@@ -71,15 +71,15 @@ function preset(id, name, hexes, fallbacks) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
var DISPLAY_PRESETS = [
|
|
74
|
-
/* @__PURE__ */ preset("
|
|
74
|
+
/* @__PURE__ */ preset("dominevo", "Dominevo", DOMINEVO_HEX, DOMINEVO_FALLBACK),
|
|
75
75
|
/* @__PURE__ */ preset("high-contrast", "High contrast", HIGH_CONTRAST_HEX, HIGH_CONTRAST_FALLBACK),
|
|
76
76
|
/* @__PURE__ */ preset("okabe-ito", "Colour-blind safe", OKABE_ITO_HEX, OKABE_ITO_FALLBACK)
|
|
77
77
|
];
|
|
78
78
|
function presetById(id) {
|
|
79
79
|
return DISPLAY_PRESETS.find((item) => item.id === id);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const presetRow = presetById("
|
|
81
|
+
function bundledDominevo() {
|
|
82
|
+
const presetRow = presetById("dominevo");
|
|
83
83
|
if (presetRow === void 0) throw new Error("Dominevo preset missing");
|
|
84
84
|
return readyOf(presetRow, "unconfigured", false);
|
|
85
85
|
}
|
|
@@ -248,7 +248,7 @@ function isEmptyRecord(value) {
|
|
|
248
248
|
* `unknown` — never the default wearing the stored preset's name.
|
|
249
249
|
*/
|
|
250
250
|
function paletteFromStored(value) {
|
|
251
|
-
if (value === void 0 || value === null || isEmptyRecord(value)) return
|
|
251
|
+
if (value === void 0 || value === null || isEmptyRecord(value)) return bundledDominevo();
|
|
252
252
|
const parsed = storedPaletteSchema.safeParse(value);
|
|
253
253
|
if (!parsed.success) return {
|
|
254
254
|
status: "unknown",
|
|
@@ -282,4 +282,4 @@ function storedFromReady(ready, overrides) {
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
//#endregion
|
|
285
|
-
export { DISPLAY_PRESETS, PaletteRejectedError,
|
|
285
|
+
export { DISPLAY_PRESETS, PaletteRejectedError, bundledDominevo, formatPaletteViolations, mergeOverrides, paintHex, paletteFromInput, paletteFromStored, paletteReadySchema, paletteResultSchema, paletteSwatchSchema, presetById, setPaletteInputSchema, storedFromReady, storedPaletteSchema, swatchHex, validatePalette };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { COCO_TO_MACRO } from "./coco-classmap.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { bundledDominevo, paintHex } from "./display-palette.mjs";
|
|
3
3
|
import { AUDIO_MACRO_LABELS } from "./audio-classmap.mjs";
|
|
4
4
|
//#region src/catalogs/event-taxonomy.ts
|
|
5
5
|
/**
|
|
@@ -24,7 +24,7 @@ import { AUDIO_MACRO_LABELS } from "./audio-classmap.mjs";
|
|
|
24
24
|
*
|
|
25
25
|
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
26
26
|
*/
|
|
27
|
-
var BUNDLED_PALETTE = /* @__PURE__ */
|
|
27
|
+
var BUNDLED_PALETTE = /* @__PURE__ */ bundledDominevo();
|
|
28
28
|
function kindColor(kind) {
|
|
29
29
|
return paintHex(BUNDLED_PALETTE.swatches, BUNDLED_PALETTE.fallbacks, kind);
|
|
30
30
|
}
|
package/dist/esm/constants.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { extractArchive } from "./archive-extract.mjs";
|
|
2
|
-
import { createHash } from "node:crypto";
|
|
3
2
|
import { chmodSync, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, unlinkSync } from "node:fs";
|
|
4
3
|
import { join } from "node:path";
|
|
5
4
|
import { pipeline } from "node:stream/promises";
|
|
6
5
|
import { Readable } from "node:stream";
|
|
7
6
|
import { execFileSync } from "node:child_process";
|
|
7
|
+
import { createHash } from "node:crypto";
|
|
8
8
|
//#region src/deps/binary-downloader.ts
|
|
9
9
|
/**
|
|
10
10
|
* Recursively find the first file named exactly `name` under `dir`. Used as the
|
|
@@ -27,14 +27,14 @@ import { join } from "node:path";
|
|
|
27
27
|
* Windows delegate is built for a TFLite ai-edge-litert 2.1.6 cannot load.
|
|
28
28
|
*
|
|
29
29
|
* Resolution order, mirrored by `edgetpu_device.edgetpu_library_path` in the
|
|
30
|
-
* Python pool: the `
|
|
31
|
-
* under `<
|
|
30
|
+
* Python pool: the `DOMINEVO_EDGETPU_LIB` path override → the copy staged
|
|
31
|
+
* under `<DOMINEVO_DATA>/deps/edgetpu/lib/` → the hub's historical
|
|
32
32
|
* `/data/deps/edgetpu/lib/libedgetpu.so.1`. On the hub image
|
|
33
|
-
* `
|
|
33
|
+
* `DOMINEVO_DATA=/data`, so the staged path and the historical one are the
|
|
34
34
|
* same file and nothing moves.
|
|
35
35
|
*/
|
|
36
36
|
/** The path override (a library PATH, never a secret). */
|
|
37
|
-
var EDGETPU_LIB_ENV = "
|
|
37
|
+
var EDGETPU_LIB_ENV = "DOMINEVO_EDGETPU_LIB";
|
|
38
38
|
/** The pinned feranick release. Changing it is the delegate version change. */
|
|
39
39
|
var EDGETPU_DELEGATE_RELEASE = "16.0TF2.17.1-1";
|
|
40
40
|
/** Where the hub image's installer has always put the delegate. */
|
|
@@ -122,7 +122,7 @@ function chooseEdgetpuDelegate(lookup) {
|
|
|
122
122
|
}
|
|
123
123
|
/** The node data root the way every node process names it. */
|
|
124
124
|
function nodeDataRootFromEnv(env) {
|
|
125
|
-
return env["
|
|
125
|
+
return env["DOMINEVO_DATA"] ?? env["DOMINEVO_DATA_DIR"];
|
|
126
126
|
}
|
|
127
127
|
/** Under 1 MB each: held whole, written once, hashed from disk before use. */
|
|
128
128
|
async function download(url, target) {
|
|
@@ -168,7 +168,7 @@ async function stageFile(file, libDir, workRoot) {
|
|
|
168
168
|
* without on this line; `installPythonRequirements` stages it after pip.
|
|
169
169
|
* (`ai-edge-litert` imports without the delegate and is useless without it.)
|
|
170
170
|
*/
|
|
171
|
-
var EDGETPU_DELEGATE_DIRECTIVE = "#
|
|
171
|
+
var EDGETPU_DELEGATE_DIRECTIVE = "# dominevo-native-dep: edgetpu-delegate";
|
|
172
172
|
function declaresEdgetpuDelegate(requirementsText) {
|
|
173
173
|
return requirementsText.split(/\r?\n/).some((line) => line.trim() === EDGETPU_DELEGATE_DIRECTIVE);
|
|
174
174
|
}
|
|
@@ -123,7 +123,7 @@ var FFMPEG_ARTIFACTS = {
|
|
|
123
123
|
/** The artifact for this node, or a refusal naming what was asked for. */
|
|
124
124
|
function getFfmpegArtifact(platform, arch) {
|
|
125
125
|
const artifact = FFMPEG_ARTIFACTS[`${platform}-${arch}`];
|
|
126
|
-
if (!artifact) throw new Error(`Unsupported platform/architecture for ffmpeg: ${platform}-${arch}. Point
|
|
126
|
+
if (!artifact) throw new Error(`Unsupported platform/architecture for ffmpeg: ${platform}-${arch}. Point DOMINEVO_FFMPEG_PATH at a binary this node can run.`);
|
|
127
127
|
return artifact;
|
|
128
128
|
}
|
|
129
129
|
/** The URL alone, for a caller that wants nothing else. */
|
|
@@ -5,7 +5,7 @@ import { FFMPEG_RELEASE } from "./ffmpeg-artifacts.mjs";
|
|
|
5
5
|
*
|
|
6
6
|
* ## The rule
|
|
7
7
|
*
|
|
8
|
-
* 1. `
|
|
8
|
+
* 1. `DOMINEVO_FFMPEG_PATH`, when the operator set it and it exists. Pointing
|
|
9
9
|
* at your own build is a deliberate act and it wins over everything.
|
|
10
10
|
* 2. The pinned build this node has already downloaded, named by release
|
|
11
11
|
* (`ffmpeg-<release>`), in `<dataDir>/deps`.
|
|
@@ -41,7 +41,7 @@ import { FFMPEG_RELEASE } from "./ffmpeg-artifacts.mjs";
|
|
|
41
41
|
* rollback is a file that is already on disk rather than a download.
|
|
42
42
|
*/
|
|
43
43
|
/** Operator override. Unset on every node unless a human deliberately set it. */
|
|
44
|
-
var FFMPEG_PATH_ENV = "
|
|
44
|
+
var FFMPEG_PATH_ENV = "DOMINEVO_FFMPEG_PATH";
|
|
45
45
|
/**
|
|
46
46
|
* The file name the pinned build is stored under.
|
|
47
47
|
*
|
|
@@ -17,7 +17,7 @@ import { join } from "node:path";
|
|
|
17
17
|
* The ffmpeg this node runs, downloading the pinned build if it is not here
|
|
18
18
|
* yet, and reporting what it got.
|
|
19
19
|
*
|
|
20
|
-
* Order: the operator's `
|
|
20
|
+
* Order: the operator's `DOMINEVO_FFMPEG_PATH` → the pinned build already on
|
|
21
21
|
* disk → download it. No PATH, no image copy, no per-platform special case —
|
|
22
22
|
* see `ffmpeg-binary-source.ts` for why the image stopped being special after
|
|
23
23
|
* exactly one day.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { errMsg } from "../utils/err-msg.mjs";
|
|
2
2
|
import { extractArchive } from "./archive-extract.mjs";
|
|
3
3
|
import { verifySha256 } from "./binary-downloader.mjs";
|
|
4
|
-
import { createHash } from "node:crypto";
|
|
5
4
|
import { chmodSync, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
6
5
|
import { basename, join } from "node:path";
|
|
7
6
|
import { pipeline } from "node:stream/promises";
|
|
8
7
|
import { Readable } from "node:stream";
|
|
9
8
|
import { execFileSync } from "node:child_process";
|
|
9
|
+
import { createHash } from "node:crypto";
|
|
10
10
|
//#region src/deps/python-downloader.ts
|
|
11
11
|
/**
|
|
12
12
|
* Download portable Python (headless) from bjia56/portable-python.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/device/icon-catalog.generated.ts
|
|
2
2
|
var ICON_CATALOG_SOURCE = {
|
|
3
3
|
lucideReact: "0.576.0",
|
|
4
|
-
lucideReactNative: "1.
|
|
4
|
+
lucideReactNative: "1.83.0",
|
|
5
5
|
metadata: "lucide-icons/lucide@0.576.0 icons/*.json"
|
|
6
6
|
};
|
|
7
7
|
/** Lucide category ids, alphabetical. `ICON_META` indexes into this. */
|
|
@@ -18910,10 +18910,7 @@ var ICON_META = [
|
|
|
18910
18910
|
], ["magnifying glass", "plus"]]
|
|
18911
18911
|
];
|
|
18912
18912
|
/** Keys whose viewer module (`lucide-react-native/icons/<module>`) is not the key. */
|
|
18913
|
-
var ICON_VIEWER_MODULES = {
|
|
18914
|
-
"text-select": "square-dashed-text",
|
|
18915
|
-
"waves": "waves-horizontal"
|
|
18916
|
-
};
|
|
18913
|
+
var ICON_VIEWER_MODULES = {};
|
|
18917
18914
|
/** Old spelling → canonical key, for ids both packages still accept. */
|
|
18918
18915
|
var ICON_ALIASES = {
|
|
18919
18916
|
"activity-square": "square-activity",
|
|
@@ -120,7 +120,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
120
120
|
EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
|
|
121
121
|
/**
|
|
122
122
|
* An addon is RUNNING although its installed package is below what the
|
|
123
|
-
* running server requires (`
|
|
123
|
+
* running server requires (`dominevo.requires.addons` of the server, or the
|
|
124
124
|
* addon's own `requires.server`). Raised once per streak by the unsupported-
|
|
125
125
|
* addon tracker, on the hub and on agents; AlertCenter turns it into one
|
|
126
126
|
* operator alert per node and package. The addon is never held back for it.
|
|
@@ -608,7 +608,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
608
608
|
*/
|
|
609
609
|
EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
|
|
610
610
|
/**
|
|
611
|
-
* Periodic per-node process-tree snapshot (
|
|
611
|
+
* Periodic per-node process-tree snapshot (dominevo-related pids
|
|
612
612
|
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
613
613
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
614
614
|
* without polling `metricsProvider.listNodeProcesses`.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { canonicalEgressPlan, egressTransportFromRequest } from "./sharing-key.mjs";
|
|
2
|
+
import { canonicalHash } from "../utils/canonical-hash.mjs";
|
|
3
|
+
//#region src/ffmpeg/egress-sharing-key.ts
|
|
4
|
+
/**
|
|
5
|
+
* The refcount / dedup key. `canonicalHash` sorts object keys at every depth,
|
|
6
|
+
* so a request built with a different field order produces the same digest.
|
|
7
|
+
*
|
|
8
|
+
* The handle this keys is IMMUTABLE: there is no `reconfigure`. A consumer
|
|
9
|
+
* whose requirements change RELEASES and re-acquires; the refcount does the
|
|
10
|
+
* rest. That is what stops co-tenants disturbing each other — the co-tenant
|
|
11
|
+
* hazard that made Alexa's shared `derived:alexa-<id>` stream a hazard was
|
|
12
|
+
* exactly a mutable shared object, where one consumer's downgrade dragged
|
|
13
|
+
* every other consumer to 360p.
|
|
14
|
+
*/
|
|
15
|
+
function egressTranscodeSharingKey(request, delivery = egressTransportFromRequest(request)) {
|
|
16
|
+
return `egress:${canonicalHash(canonicalEgressPlan(request, delivery))}`;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { egressTranscodeSharingKey };
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
import { canonicalHash } from "../utils/canonical-hash.mjs";
|
|
2
1
|
//#region src/ffmpeg/sharing-key.ts
|
|
3
2
|
/**
|
|
4
|
-
* The sharing key for `streamBroker.acquireEgressTranscode`.
|
|
5
|
-
*
|
|
6
|
-
* **Two requesters asking for exactly the same argument set reach the same
|
|
7
|
-
* process.** Exact match, never fuzzy: a quantised ladder that merged
|
|
8
|
-
* NEARLY-identical requests would make the stream a consumer receives depend
|
|
9
|
-
* on who else is watching and in what order they arrived — unpredictable in
|
|
10
|
-
* precisely the way a debugging session cannot tolerate. Same arguments ⇒ same
|
|
11
|
-
* process. Different arguments ⇒ different process, and that is fine; the
|
|
12
|
-
* operator accepted the cost ("it's fine to have several processes").
|
|
13
|
-
*
|
|
14
|
-
* Derived from the STRUCTURED plan, not from a flag array. `pipelineKeyFor`
|
|
15
|
-
* (`transcode-pipeline.ts`) folds `getStreamWithCodec`'s raw `outputArgs` into
|
|
16
|
-
* its key, so that method's extensibility hatch and its sharing key are the
|
|
17
|
-
* same field — a consumer needing one extra flag silently forks the child, and
|
|
18
|
-
* two consumers that want the same thing but spell it differently never share.
|
|
19
|
-
* Here every knob is a named field, and defaults are APPLIED before hashing so
|
|
20
|
-
* an omitted field and its explicit default land on the same key.
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
3
|
* The transport a CAP request describes. `fragments` is deliberately
|
|
24
4
|
* unreachable from here — the request schema has no way to ask for it, so the
|
|
25
5
|
* cap path can never be handed a fragment child by accident.
|
|
@@ -73,19 +53,5 @@ function canonicalEgressPlan(request, delivery = egressTransportFromRequest(requ
|
|
|
73
53
|
decodeHwAccel: request.decodeHwAccel ?? UNSET
|
|
74
54
|
};
|
|
75
55
|
}
|
|
76
|
-
/**
|
|
77
|
-
* The refcount / dedup key. `canonicalHash` sorts object keys at every depth,
|
|
78
|
-
* so a request built with a different field order produces the same digest.
|
|
79
|
-
*
|
|
80
|
-
* The handle this keys is IMMUTABLE: there is no `reconfigure`. A consumer
|
|
81
|
-
* whose requirements change RELEASES and re-acquires; the refcount does the
|
|
82
|
-
* rest. That is what stops co-tenants disturbing each other — the co-tenant
|
|
83
|
-
* hazard that made Alexa's shared `derived:alexa-<id>` stream a hazard was
|
|
84
|
-
* exactly a mutable shared object, where one consumer's downgrade dragged
|
|
85
|
-
* every other consumer to 360p.
|
|
86
|
-
*/
|
|
87
|
-
function egressTranscodeSharingKey(request, delivery = egressTransportFromRequest(request)) {
|
|
88
|
-
return `egress:${canonicalHash(canonicalEgressPlan(request, delivery))}`;
|
|
89
|
-
}
|
|
90
56
|
//#endregion
|
|
91
|
-
export { canonicalEgressPlan,
|
|
57
|
+
export { canonicalEgressPlan, egressTransportFromRequest };
|
|
@@ -124,7 +124,7 @@ var METHOD_DESCRIPTIONS = /* @__PURE__ */ Object.freeze({
|
|
|
124
124
|
"backup.deleteSchedule": "Delete a schedule by id. Does not touch the target locations.",
|
|
125
125
|
"backup.disableEncryption": "New archives are plain again. Existing encrypted archives keep needing their key.",
|
|
126
126
|
"backup.getEncryption": "The encryption setting — public keys only.",
|
|
127
|
-
"backup.getEntries": "Read the embedded .
|
|
127
|
+
"backup.getEntries": "Read the embedded .dominevo-backup-manifest.json from a previously-created archive. The manifest carries the full file/dir listing with sizes + mtimes — the readdir snapshot the UI shows in the \"Contents\" panel. Returns null when the archive predates manifests (created before this feature shipped).",
|
|
128
128
|
"backup.list": "Union of every destination's archives, each tagged with destinationId.",
|
|
129
129
|
"backup.listArchives": "List archives at a single destination. Reads the per-location manifests.json and returns one entry per archive (newest first). Powers the destinations-table drill-in in admin UI.",
|
|
130
130
|
"backup.listAvailableDatabases": "The database files that exist on this hub right now (the owner's open files), so the selection UI can offer all of them and mark a file that is not created yet. answered: false = the owner did not answer, which is not the same as \"none exist\".",
|
|
@@ -735,7 +735,7 @@ var METHOD_DESCRIPTIONS = /* @__PURE__ */ Object.freeze({
|
|
|
735
735
|
"metricsProvider.getLoadSeries": "The retained per-node load series — the ONE reader over BOTH tiers.",
|
|
736
736
|
"metricsProvider.getProcessStats": "Per-PID resource stats. Missing/dead PIDs are omitted from the result.",
|
|
737
737
|
"metricsProvider.listAddonInstances": "List addon instances known to this node — one entry per forked worker plus a synthetic 'hub' entry representing the local hub process. Used by benchmarks/observability to detect whether a given addon runs in its own process (measurable independently) or inline with the hub.",
|
|
738
|
-
"metricsProvider.listNodeProcesses": "Snapshot of every
|
|
738
|
+
"metricsProvider.listNodeProcesses": "Snapshot of every dominevo-related process on this node with a root/managed/system classification. Powers the Cluster → Agent → Processes tab: cross-references $process.list against a ps scan so per-addon CPU and RSS can be attributed, and so a process the cluster does not manage is still visible.",
|
|
739
739
|
"migrations.clearLegacyIntegrationRows": "Migration-only. Delete that integration's rows. The caller releases the keychain values first. secrets is how many marker refs the rows held. A missing store deletes nothing. Deleted with the last copy migration.",
|
|
740
740
|
"migrations.declareOwner": "An ADDON offers its catalogue at its own boot (D987 M3). The engine checks it together with every other owner's, takes the pre-migration snapshot of each file a pending migration touches, and answers the owner's steps in the order the framework decides. A catalogue the engine refuses (a cycle, a foreign owner, a body kind the owner cannot run) is refused whole and writes nothing.",
|
|
741
741
|
"migrations.deleteLegacyIntegrationRowKeys": "Migration-only. Remove the named keys. present is false when the store is gone; removed is what those keys held (markers included). Deleted with the last copy migration.",
|
|
@@ -1057,7 +1057,7 @@ var METHOD_DESCRIPTIONS = /* @__PURE__ */ Object.freeze({
|
|
|
1057
1057
|
"pipelineOrchestrator.setAgentDecodeLimits": "Size ONE node's decode admission: its RAM budget and live-worker cap. null clears a limit (back to the cluster setting or the RAM-derived default); an omitted key leaves it alone. Read by the node's runner on its next lease refresh (D365).",
|
|
1058
1058
|
"pipelineOrchestrator.setAgentInferenceDevices": "Set one node's multi-device inference opt-in (Phase 4 multi-device) — the per-node deviceKey → { enabled, weight } map that decides which accelerators the dispatcher may balance detection sessions across. The map REPLACES the node's stored inferenceDevices wholesale (pass the complete desired set; an empty map clears the opt-in → the node reverts to its single DEFAULT accelerator). weight is optional and defaults to 1. models is the optional per-device model override (stepId → modelId, C7.2/C7.4) — a stepId absent ⇒ the step uses that device's default model. Creates the node's settings entry if absent. Changes take effect on the next dispatch/rebalance cycle — the dispatcher reads the enabled set via PipelineSettingsStore.buildNodeInferenceDevices when placing sessions and the per-(node,device) base provisioning via buildNodeInferenceDeviceSteps. maxSessions is a LIMIT, with one exception: when the node's default pool is itself an excluded device (turned off or not functional) a camera that would overflow every cap is placed over the cap on the least-loaded eligible device, because the default pool must never serve it (#610). The overflow is logged, naming any pin it overrode.",
|
|
1059
1059
|
"pipelineOrchestrator.setAgentMaxCameras": "Set the per-node camera cap for one agent.",
|
|
1060
|
-
"pipelineOrchestrator.setAgentReachableHost": "Set (or clear) the operator override for the LAN host a cross-node decoder dials to reach this node's restream. Pass a non-empty string to override the auto-detected address (the runner's
|
|
1060
|
+
"pipelineOrchestrator.setAgentReachableHost": "Set (or clear) the operator override for the LAN host a cross-node decoder dials to reach this node's restream. Pass a non-empty string to override the auto-detected address (the runner's DOMINEVO_HUB_URL default); pass null or an empty string to clear it and revert to auto-detect. Applied on the next dispatch cycle — takes effect for new cross-node attaches; existing attaches keep their current host until re-dispatched.",
|
|
1061
1061
|
"pipelineOrchestrator.setCameraDetectionSource": "Pick where this camera's detections come from. Writes detectionSources and arms (or disarms) the vendor's boxed sub-stream that the choice drives. Refuses onboard on a camera with no onboard detector.",
|
|
1062
1062
|
"pipelineOrchestrator.setCameraSensors": "Attach sensors to a camera, or detach them with config: null (D672 configuration, G5/D676). Written to the orchestrator's per-device store under the same key applyDeviceSettingsPatch writes, and announced as a settings change so the camera-sensors bridge refreshes. Refused by name — nothing written — for a device that cannot be read, does not exist, is not a camera, or names itself as its own sensor.",
|
|
1063
1063
|
"pipelineOrchestrator.setCameraStepSettings": "Write or clear one step's CAMERA-WIDE settings (D754) — the camera-semantic fields this camera overrides on every accelerator it runs on. settings is the whole field-level bag for that step (only the overridden keys); null or {} clears it. Merged at dispatch over the node base, key by key. REFUSES a model-scoped key — a model id, a model binding or a minConfidence* floor (D927): those belong to the accelerator that runs the model.",
|
|
@@ -45,7 +45,7 @@ var SCOPE_PRESETS = [
|
|
|
45
45
|
{
|
|
46
46
|
id: "cli-deployer",
|
|
47
47
|
label: "CLI deployer",
|
|
48
|
-
description: "Push addons to the hub and tail their logs. Used by the `
|
|
48
|
+
description: "Push addons to the hub and tail their logs. Used by the `dominevo` CLI on dev machines. No delete access — a stolen token cannot uninstall.",
|
|
49
49
|
rows: [{
|
|
50
50
|
type: "capability",
|
|
51
51
|
target: "addons",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/i18n/
|
|
2
|
+
//#region src/i18n/dominevo-error.ts
|
|
3
3
|
/**
|
|
4
4
|
* A user-facing error with a STABLE code (D863).
|
|
5
5
|
*
|
|
@@ -16,19 +16,19 @@ var ErrorI18nPayloadSchema = /* @__PURE__ */ z.object({
|
|
|
16
16
|
code: ErrorCodeSchema,
|
|
17
17
|
params: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.number()])).optional()
|
|
18
18
|
});
|
|
19
|
-
var
|
|
19
|
+
var DominevoError = class extends Error {
|
|
20
20
|
i18nCode;
|
|
21
21
|
i18nParams;
|
|
22
22
|
constructor(code, params, englishMessage) {
|
|
23
23
|
super(englishMessage);
|
|
24
|
-
this.name = "
|
|
24
|
+
this.name = "DominevoError";
|
|
25
25
|
this.i18nCode = code;
|
|
26
26
|
this.i18nParams = params;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
/** `throw userError('device.not-found', { id }, 'Device 12 not found')` */
|
|
30
30
|
function userError(code, params, englishFallback) {
|
|
31
|
-
return new
|
|
31
|
+
return new DominevoError(code, params, englishFallback);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Finds a code on `err` or anywhere down its `.cause` chain. Duck-typed on
|
|
@@ -63,4 +63,4 @@ function forbiddenError(reason) {
|
|
|
63
63
|
return /* @__PURE__ */ new Error(`${FORBIDDEN_MESSAGE_PREFIX}${reason}`);
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
|
-
export {
|
|
66
|
+
export { DominevoError, ErrorCodeSchema, ErrorI18nPayloadSchema, FORBIDDEN_MESSAGE_PREFIX, forbiddenError, readErrorI18n, userError };
|