@dominevo/types 0.1.0 → 0.1.2
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 +15 -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 +2 -2
- 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/user-management.cap.d.ts +8 -2
- package/dist/capabilities/videoclips.cap.d.ts +5 -5
- package/dist/capabilities/viewer-link-url.d.ts +6 -6
- 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 +3 -3
- 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/user-management.cap.mjs +5 -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 +4 -4
- 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 +40 -6
- package/dist/i18n/{camstack-error.d.ts → dominevo-error.d.ts} +2 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.js +141 -330
- package/dist/index.mjs +134 -320
- 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
package/dist/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_runtime_capabilities = require("./runtime-capabilities-
|
|
3
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_runtime_capabilities = require("./runtime-capabilities-Db29ELdy.js");
|
|
3
|
+
const require_event_category = require("./event-category-DhlUHlM5.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-C9Vwl-Qd.js");
|
|
5
|
-
const require_wake_on_lan = require("./wake-on-lan-
|
|
5
|
+
const require_wake_on_lan = require("./wake-on-lan-CAbNKvo9.js");
|
|
6
6
|
const require_node_color = require("./node-color.js");
|
|
7
7
|
const require_convert = require("./convert-xBpcpRfm.js");
|
|
8
8
|
const require_device_template_catalogue = require("./device-template-catalogue.js");
|
|
9
9
|
const require_enums = require("./enums.js");
|
|
10
10
|
let zod = require("zod");
|
|
11
|
-
let node_crypto = require("node:crypto");
|
|
12
11
|
//#region src/brokers/smtp-inbound.ts
|
|
13
12
|
/**
|
|
14
13
|
* The `smtp-inbound` broker kind (D999): a mailbox a device can send mail to.
|
|
@@ -22,7 +21,7 @@ var SMTP_INBOUND_KIND = "smtp-inbound";
|
|
|
22
21
|
/** The id the first mailbox is minted under (adopt-id), so a consumer can find it again. */
|
|
23
22
|
var SMTP_INBOUND_DEFAULT_ID = "smtp-inbound-default";
|
|
24
23
|
var SMTP_INBOUND_DEFAULT_PORT = 2525;
|
|
25
|
-
var SMTP_INBOUND_DEFAULT_DOMAIN = "
|
|
24
|
+
var SMTP_INBOUND_DEFAULT_DOMAIN = "dominevo.local";
|
|
26
25
|
var SMTP_INBOUND_DEFAULT_MAX_MESSAGE_BYTES = 25 * 1024 * 1024;
|
|
27
26
|
/** The ring keeps the last N messages of one mailbox, each for at most the age below. */
|
|
28
27
|
var SMTP_INBOUND_RING_MAX_MESSAGES = 200;
|
|
@@ -2235,11 +2234,11 @@ function encodeProfileFromStreamShape(stream) {
|
|
|
2235
2234
|
//#region src/app-bridge.ts
|
|
2236
2235
|
/**
|
|
2237
2236
|
* The `postMessage` bridge between the viewer shell and an embedded app (D1096).
|
|
2238
|
-
* Every message is `{
|
|
2237
|
+
* Every message is `{ dominevo: 'app-bridge', v: 1, type, ... }`; anything else
|
|
2239
2238
|
* parses to `null` and is ignored.
|
|
2240
2239
|
*/
|
|
2241
2240
|
var Envelope = {
|
|
2242
|
-
|
|
2241
|
+
dominevo: /* @__PURE__ */ zod.z.literal("app-bridge"),
|
|
2243
2242
|
v: /* @__PURE__ */ zod.z.literal(1)
|
|
2244
2243
|
};
|
|
2245
2244
|
var ShellToAppMessageSchema = /* @__PURE__ */ zod.z.discriminatedUnion("type", [
|
|
@@ -2627,95 +2626,6 @@ function gifFromMp4Args(input) {
|
|
|
2627
2626
|
];
|
|
2628
2627
|
}
|
|
2629
2628
|
//#endregion
|
|
2630
|
-
//#region src/ffmpeg/sharing-key.ts
|
|
2631
|
-
/**
|
|
2632
|
-
* The sharing key for `streamBroker.acquireEgressTranscode`.
|
|
2633
|
-
*
|
|
2634
|
-
* **Two requesters asking for exactly the same argument set reach the same
|
|
2635
|
-
* process.** Exact match, never fuzzy: a quantised ladder that merged
|
|
2636
|
-
* NEARLY-identical requests would make the stream a consumer receives depend
|
|
2637
|
-
* on who else is watching and in what order they arrived — unpredictable in
|
|
2638
|
-
* precisely the way a debugging session cannot tolerate. Same arguments ⇒ same
|
|
2639
|
-
* process. Different arguments ⇒ different process, and that is fine; the
|
|
2640
|
-
* operator accepted the cost ("it's fine to have several processes").
|
|
2641
|
-
*
|
|
2642
|
-
* Derived from the STRUCTURED plan, not from a flag array. `pipelineKeyFor`
|
|
2643
|
-
* (`transcode-pipeline.ts`) folds `getStreamWithCodec`'s raw `outputArgs` into
|
|
2644
|
-
* its key, so that method's extensibility hatch and its sharing key are the
|
|
2645
|
-
* same field — a consumer needing one extra flag silently forks the child, and
|
|
2646
|
-
* two consumers that want the same thing but spell it differently never share.
|
|
2647
|
-
* Here every knob is a named field, and defaults are APPLIED before hashing so
|
|
2648
|
-
* an omitted field and its explicit default land on the same key.
|
|
2649
|
-
*/
|
|
2650
|
-
/**
|
|
2651
|
-
* The transport a CAP request describes. `fragments` is deliberately
|
|
2652
|
-
* unreachable from here — the request schema has no way to ask for it, so the
|
|
2653
|
-
* cap path can never be handed a fragment child by accident.
|
|
2654
|
-
*/
|
|
2655
|
-
function egressTransportFromRequest(request) {
|
|
2656
|
-
return { transport: request.publishLocally === true ? "push" : "dial" };
|
|
2657
|
-
}
|
|
2658
|
-
/** Absent optional ⇒ this sentinel, so `undefined` and "not set" agree. */
|
|
2659
|
-
var UNSET = "\0unset";
|
|
2660
|
-
function canonicalVideo(video) {
|
|
2661
|
-
return {
|
|
2662
|
-
codec: video.codec,
|
|
2663
|
-
profile: video.profile ?? UNSET,
|
|
2664
|
-
level: video.level ?? UNSET,
|
|
2665
|
-
width: video.width ?? -1,
|
|
2666
|
-
height: video.height ?? -1,
|
|
2667
|
-
fps: video.fps ?? -1,
|
|
2668
|
-
bitrateKbps: video.bitrateKbps ?? -1,
|
|
2669
|
-
gopFrames: video.gopFrames ?? -1,
|
|
2670
|
-
bf: video.bf ?? -1,
|
|
2671
|
-
preset: video.preset ?? UNSET,
|
|
2672
|
-
tune: video.tune ?? UNSET,
|
|
2673
|
-
singleSlicePerFrame: video.singleSlicePerFrame === void 0 ? UNSET : String(video.singleSlicePerFrame)
|
|
2674
|
-
};
|
|
2675
|
-
}
|
|
2676
|
-
function canonicalAudio(audio) {
|
|
2677
|
-
if (audio === "passthrough") return { codec: "passthrough" };
|
|
2678
|
-
return {
|
|
2679
|
-
codec: audio.codec,
|
|
2680
|
-
bitrateKbps: audio.bitrateKbps ?? -1,
|
|
2681
|
-
sampleRateHz: audio.sampleRateHz ?? -1,
|
|
2682
|
-
channels: audio.channels ?? -1
|
|
2683
|
-
};
|
|
2684
|
-
}
|
|
2685
|
-
/**
|
|
2686
|
-
* The normalised plan a key is computed from. Exported so a test — and a
|
|
2687
|
-
* future operator-facing "why are these two not sharing?" surface — can diff
|
|
2688
|
-
* two requests without reversing a hash.
|
|
2689
|
-
*/
|
|
2690
|
-
function canonicalEgressPlan(request, delivery = egressTransportFromRequest(request)) {
|
|
2691
|
-
return {
|
|
2692
|
-
deviceId: request.deviceId,
|
|
2693
|
-
source: request.source.kind === "profile" ? `profile:${request.source.profile}` : `cam-stream:${request.source.camStreamId}`,
|
|
2694
|
-
transport: delivery.transport,
|
|
2695
|
-
fragmentMs: delivery.fragmentMs ?? -1,
|
|
2696
|
-
video: canonicalVideo(request.encode.video),
|
|
2697
|
-
audio: canonicalAudio(request.encode.audio),
|
|
2698
|
-
rateControl: request.rateControl ?? "relaxed",
|
|
2699
|
-
bitstreamFilter: request.bitstreamFilter ?? UNSET,
|
|
2700
|
-
pixelFormat: request.pixelFormat ?? UNSET,
|
|
2701
|
-
decodeHwAccel: request.decodeHwAccel ?? UNSET
|
|
2702
|
-
};
|
|
2703
|
-
}
|
|
2704
|
-
/**
|
|
2705
|
-
* The refcount / dedup key. `canonicalHash` sorts object keys at every depth,
|
|
2706
|
-
* so a request built with a different field order produces the same digest.
|
|
2707
|
-
*
|
|
2708
|
-
* The handle this keys is IMMUTABLE: there is no `reconfigure`. A consumer
|
|
2709
|
-
* whose requirements change RELEASES and re-acquires; the refcount does the
|
|
2710
|
-
* rest. That is what stops co-tenants disturbing each other — the co-tenant
|
|
2711
|
-
* hazard that made Alexa's shared `derived:alexa-<id>` stream a hazard was
|
|
2712
|
-
* exactly a mutable shared object, where one consumer's downgrade dragged
|
|
2713
|
-
* every other consumer to 360p.
|
|
2714
|
-
*/
|
|
2715
|
-
function egressTranscodeSharingKey(request, delivery = egressTransportFromRequest(request)) {
|
|
2716
|
-
return `egress:${require_wake_on_lan.canonicalHash(canonicalEgressPlan(request, delivery))}`;
|
|
2717
|
-
}
|
|
2718
|
-
//#endregion
|
|
2719
2629
|
//#region src/ffmpeg/pinned-binary.ts
|
|
2720
2630
|
/**
|
|
2721
2631
|
* Memoize `ensure` on SUCCESS only.
|
|
@@ -3602,7 +3512,7 @@ var BulkRecordSchema = /* @__PURE__ */ zod.z.object({
|
|
|
3602
3512
|
* The database FILES one `sqlite-settings` engine process owns (D851).
|
|
3603
3513
|
* Closed on purpose: a file is a thing the engine opens, backs up and gives a
|
|
3604
3514
|
* serving thread, so a new one is a code change, never a string a caller
|
|
3605
|
-
* invents. `settings` is `
|
|
3515
|
+
* invents. `settings` is `dominevo.db` and the default for every collection
|
|
3606
3516
|
* that names no file.
|
|
3607
3517
|
*/
|
|
3608
3518
|
var DataStoreDatabaseSchema = /* @__PURE__ */ zod.z.enum([
|
|
@@ -4960,21 +4870,21 @@ function defaultIntegrationApiOver(api) {
|
|
|
4960
4870
|
* The trainer contract — what the hub hands the cloud trainer and what it
|
|
4961
4871
|
* gets back (cloud training, D805+).
|
|
4962
4872
|
*
|
|
4963
|
-
* The trainer (`hf/
|
|
4964
|
-
* `
|
|
4965
|
-
* imports: `job.json` goes in, files come out, and progress is `
|
|
4873
|
+
* The trainer (`hf/dominevo-trainer`, published as the Hugging Face repo
|
|
4874
|
+
* `Dominevo/dominevo-trainer`) is a separate AGPL program the hub never
|
|
4875
|
+
* imports: `job.json` goes in, files come out, and progress is `DOMINEVO_EVENT`
|
|
4966
4876
|
* lines on stdout. These schemas are the hub's half of that boundary; the
|
|
4967
4877
|
* trainer's pydantic models (and the JSON Schemas generated from them under
|
|
4968
|
-
* `hf/
|
|
4878
|
+
* `hf/dominevo-trainer/schemas/`) are the other half. A change here is a
|
|
4969
4879
|
* change there, in the same piece of work.
|
|
4970
4880
|
*
|
|
4971
4881
|
* No `.default()` anywhere: defaults do not run on the addon cap path, so the
|
|
4972
4882
|
* orchestrator fills every field of a job spec explicitly.
|
|
4973
4883
|
*/
|
|
4974
|
-
var TRAINING_JOB_SCHEMA = "
|
|
4975
|
-
var TRAINING_RESULT_SCHEMA = "
|
|
4884
|
+
var TRAINING_JOB_SCHEMA = "dominevo.training/v1";
|
|
4885
|
+
var TRAINING_RESULT_SCHEMA = "dominevo.training-result/v1";
|
|
4976
4886
|
/** The stdout prefix of a progress line. Anything else on stdout is log text. */
|
|
4977
|
-
var
|
|
4887
|
+
var DOMINEVO_EVENT_PREFIX = "DOMINEVO_EVENT ";
|
|
4978
4888
|
/** What the trainer can export. Edge TPU is a later, separate image. */
|
|
4979
4889
|
var TrainingExportSchema = /* @__PURE__ */ zod.z.enum([
|
|
4980
4890
|
"onnx",
|
|
@@ -5055,7 +4965,7 @@ var TrainingResultFileSchema = /* @__PURE__ */ zod.z.object({
|
|
|
5055
4965
|
variant: /* @__PURE__ */ zod.z.enum(["base", "int8"])
|
|
5056
4966
|
});
|
|
5057
4967
|
var DraftFormatSchema = /* @__PURE__ */ zod.z.object({
|
|
5058
|
-
/** RELATIVE path inside the bundle; the hub rewrites it to `
|
|
4968
|
+
/** RELATIVE path inside the bundle; the hub rewrites it to `dominevo-local://`. */
|
|
5059
4969
|
url: /* @__PURE__ */ zod.z.string().min(1),
|
|
5060
4970
|
sizeMB: /* @__PURE__ */ zod.z.number().nonnegative(),
|
|
5061
4971
|
isDirectory: /* @__PURE__ */ zod.z.boolean().optional(),
|
|
@@ -5235,7 +5145,7 @@ var TrainingEventSchema = /* @__PURE__ */ zod.z.discriminatedUnion("type", [
|
|
|
5235
5145
|
* line this hub does not understand — a newer trainer may add types).
|
|
5236
5146
|
*/
|
|
5237
5147
|
function parseTrainingEventLine(line) {
|
|
5238
|
-
const start = line.indexOf(
|
|
5148
|
+
const start = line.indexOf(DOMINEVO_EVENT_PREFIX);
|
|
5239
5149
|
if (start < 0) return null;
|
|
5240
5150
|
let raw;
|
|
5241
5151
|
try {
|
|
@@ -7745,7 +7655,7 @@ var StorageLocationRefSchema = /* @__PURE__ */ zod.z.union([StorageLocationTypeS
|
|
|
7745
7655
|
//#region src/interfaces/storage-location-declaration.ts
|
|
7746
7656
|
/**
|
|
7747
7657
|
* `StorageLocationDeclaration` — a single storage-location entry declared by
|
|
7748
|
-
* an addon in its `package.json` under `
|
|
7658
|
+
* an addon in its `package.json` under `dominevo.storageLocations`.
|
|
7749
7659
|
*
|
|
7750
7660
|
* Design intent:
|
|
7751
7661
|
* - **Addon declares its needs** — each addon describes the logical storage
|
|
@@ -7836,12 +7746,12 @@ var StorageLocationDeclarationSchema = /* @__PURE__ */ zod.z.object({
|
|
|
7836
7746
|
/**
|
|
7837
7747
|
* Which node root the seeded `<id>:default` instance is placed under on a
|
|
7838
7748
|
* FRESH install:
|
|
7839
|
-
* - `'data'` (default) — the node's data dir (`
|
|
7749
|
+
* - `'data'` (default) — the node's data dir (`DOMINEVO_DATA` / boot dir),
|
|
7840
7750
|
* the appData volume. Right for small/durable data (logs, models).
|
|
7841
|
-
* - `'media'` — the dedicated media volume (`
|
|
7751
|
+
* - `'media'` — the dedicated media volume (`DOMINEVO_MEDIA_ROOT`) when that
|
|
7842
7752
|
* env is set, else falls back to the data root. Right for bulky, hot media
|
|
7843
7753
|
* (recordings, event media) that should stay off the appData disk.
|
|
7844
|
-
* - `'backup'` — the dedicated backup volume (`
|
|
7754
|
+
* - `'backup'` — the dedicated backup volume (`DOMINEVO_BACKUP_ROOT`, default
|
|
7845
7755
|
* `/backups` in the image) so archives live on their own mount rather than
|
|
7846
7756
|
* filling the appData disk. Falls back to the data root when unset.
|
|
7847
7757
|
*
|
|
@@ -8854,7 +8764,7 @@ function cameraScopedStepSettings(bag) {
|
|
|
8854
8764
|
//#region src/device/icon-catalog.generated.ts
|
|
8855
8765
|
var ICON_CATALOG_SOURCE = {
|
|
8856
8766
|
lucideReact: "0.576.0",
|
|
8857
|
-
lucideReactNative: "1.
|
|
8767
|
+
lucideReactNative: "1.83.0",
|
|
8858
8768
|
metadata: "lucide-icons/lucide@0.576.0 icons/*.json"
|
|
8859
8769
|
};
|
|
8860
8770
|
/** Lucide category ids, alphabetical. `ICON_META` indexes into this. */
|
|
@@ -27763,10 +27673,7 @@ var ICON_META = [
|
|
|
27763
27673
|
], ["magnifying glass", "plus"]]
|
|
27764
27674
|
];
|
|
27765
27675
|
/** Keys whose viewer module (`lucide-react-native/icons/<module>`) is not the key. */
|
|
27766
|
-
var ICON_VIEWER_MODULES = {
|
|
27767
|
-
"text-select": "square-dashed-text",
|
|
27768
|
-
"waves": "waves-horizontal"
|
|
27769
|
-
};
|
|
27676
|
+
var ICON_VIEWER_MODULES = {};
|
|
27770
27677
|
/** Old spelling → canonical key, for ids both packages still accept. */
|
|
27771
27678
|
var ICON_ALIASES = {
|
|
27772
27679
|
"activity-square": "square-activity",
|
|
@@ -29661,8 +29568,8 @@ function describeRootSupplies(supplies) {
|
|
|
29661
29568
|
* HuggingFace API (slower).
|
|
29662
29569
|
* - Single-file formats (no `isDirectory`, e.g. OpenVINO IR): sibling
|
|
29663
29570
|
* files fetched from the SAME remote directory as `url` and stored flat
|
|
29664
|
-
* alongside the main file — e.g. `['
|
|
29665
|
-
* weights next to `
|
|
29571
|
+
* alongside the main file — e.g. `['dominevo-yolov9t.bin']` for the IR
|
|
29572
|
+
* weights next to `dominevo-yolov9t.xml`.
|
|
29666
29573
|
*/
|
|
29667
29574
|
var ModelFormatEntrySchema = /* @__PURE__ */ zod.z.object({
|
|
29668
29575
|
url: /* @__PURE__ */ zod.z.string(),
|
|
@@ -29777,10 +29684,10 @@ var ModelVariantGroupSchema = /* @__PURE__ */ zod.z.object({
|
|
|
29777
29684
|
* Where a catalog entry came from. The pipeline stepper partitions the picker
|
|
29778
29685
|
* by this id (Dominevo / plus catalog / plugin catalog / Custom). Absent on older durable
|
|
29779
29686
|
* registry rows — {@link inferModelProvider} fills it at read time. Built-in
|
|
29780
|
-
* catalog entries omit it and `getSchema` treats them as `
|
|
29687
|
+
* catalog entries omit it and `getSchema` treats them as `dominevo`.
|
|
29781
29688
|
*/
|
|
29782
29689
|
var MODEL_PROVIDER_IDS = [
|
|
29783
|
-
"
|
|
29690
|
+
"dominevo",
|
|
29784
29691
|
"frigate",
|
|
29785
29692
|
"scrypted",
|
|
29786
29693
|
"custom"
|
|
@@ -29800,7 +29707,7 @@ function inferModelProvider(entry) {
|
|
|
29800
29707
|
return "custom";
|
|
29801
29708
|
}
|
|
29802
29709
|
var MODEL_HOSTING = [
|
|
29803
|
-
"
|
|
29710
|
+
"dominevo-hf",
|
|
29804
29711
|
"third-party",
|
|
29805
29712
|
"built-in"
|
|
29806
29713
|
];
|
|
@@ -29824,7 +29731,7 @@ var ModelLicenseRecordSchema = /* @__PURE__ */ zod.z.object({
|
|
|
29824
29731
|
url: /* @__PURE__ */ zod.z.string().url().optional(),
|
|
29825
29732
|
/** Attribution the licence REQUIRES, verbatim. */
|
|
29826
29733
|
attribution: /* @__PURE__ */ zod.z.string().min(1).optional(),
|
|
29827
|
-
/** What Dominevo changed. Required when `hosting` is `
|
|
29734
|
+
/** What Dominevo changed. Required when `hosting` is `dominevo-hf` (guard). */
|
|
29828
29735
|
modifications: /* @__PURE__ */ zod.z.string().min(1).optional(),
|
|
29829
29736
|
/** Who serves the file a node downloads. */
|
|
29830
29737
|
hosting: /* @__PURE__ */ zod.z.enum(MODEL_HOSTING).optional(),
|
|
@@ -30028,7 +29935,7 @@ var ModelCatalogEntrySchema = /* @__PURE__ */ zod.z.object({
|
|
|
30028
29935
|
group: /* @__PURE__ */ ModelVariantGroupSchema.optional(),
|
|
30029
29936
|
/**
|
|
30030
29937
|
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
30031
|
-
* built-in Dominevo entries (treated as `
|
|
29938
|
+
* built-in Dominevo entries (treated as `dominevo`) and on registry rows
|
|
30032
29939
|
* persisted before this field existed (`inferModelProvider` fills those).
|
|
30033
29940
|
*/
|
|
30034
29941
|
provider: /* @__PURE__ */ ModelProviderIdSchema.optional(),
|
|
@@ -30669,13 +30576,13 @@ var CREDENTIAL_TOKEN_KIND = "credential";
|
|
|
30669
30576
|
* can never be replayed as a person's session. Only the credential verifier's
|
|
30670
30577
|
* own door (`verifyCredentialToken`) accepts it.
|
|
30671
30578
|
*/
|
|
30672
|
-
var CREDENTIAL_TOKEN_AUDIENCE = "
|
|
30579
|
+
var CREDENTIAL_TOKEN_AUDIENCE = "dominevo:credential";
|
|
30673
30580
|
/** Does a verified JWT payload belong to the minted-token family? */
|
|
30674
30581
|
function isCredentialTokenPayload(payload) {
|
|
30675
30582
|
if (payload === null || typeof payload !== "object") return false;
|
|
30676
30583
|
const kind = Reflect.get(payload, "kind");
|
|
30677
30584
|
const aud = Reflect.get(payload, "aud");
|
|
30678
|
-
return kind === "credential" || aud === "
|
|
30585
|
+
return kind === "credential" || aud === "dominevo:credential" || Array.isArray(aud) && aud.includes("dominevo:credential");
|
|
30679
30586
|
}
|
|
30680
30587
|
/**
|
|
30681
30588
|
* The claims of a unified token (`auth.mintToken`). It carries no `exp`: its
|
|
@@ -30845,16 +30752,10 @@ var ApiCatalogInputSchemaOutputSchema = /* @__PURE__ */ zod.z.object({
|
|
|
30845
30752
|
* refused by the other.
|
|
30846
30753
|
*
|
|
30847
30754
|
* `dominevo` is the production app; `dominevo.dev` the dev client
|
|
30848
|
-
* (`APP_VARIANT=development`).
|
|
30849
|
-
* previous store app is still installed against production hubs. Exact match after canonicalisation — no
|
|
30755
|
+
* (`APP_VARIANT=development`). Exact match after canonicalisation — no
|
|
30850
30756
|
* query or fragment riders, no http(s).
|
|
30851
30757
|
*/
|
|
30852
|
-
var APP_AUTH_CALLBACK_URLS = [
|
|
30853
|
-
"dominevo://auth-callback",
|
|
30854
|
-
"dominevo.dev://auth-callback",
|
|
30855
|
-
"camstack://auth-callback",
|
|
30856
|
-
"camstack.dev://auth-callback"
|
|
30857
|
-
];
|
|
30758
|
+
var APP_AUTH_CALLBACK_URLS = ["dominevo://auth-callback", "dominevo.dev://auth-callback"];
|
|
30858
30759
|
/** Longest raw callback value considered at all. */
|
|
30859
30760
|
var APP_AUTH_CALLBACK_MAX_LENGTH = 512;
|
|
30860
30761
|
/**
|
|
@@ -30872,7 +30773,7 @@ function parseAppAuthCallback(raw) {
|
|
|
30872
30773
|
const canonical = canonicalizeAppCallback(raw);
|
|
30873
30774
|
return APP_AUTH_CALLBACK_URLS.includes(canonical) ? canonical : null;
|
|
30874
30775
|
}
|
|
30875
|
-
/** True for a URL with a scheme (`
|
|
30776
|
+
/** True for a URL with a scheme (`dominevo://…`, `https://…`) — not a hub-relative path. */
|
|
30876
30777
|
function hasUrlScheme(url) {
|
|
30877
30778
|
return /^[a-z][a-z0-9+.-]*:/i.test(url);
|
|
30878
30779
|
}
|
|
@@ -31015,7 +30916,7 @@ var AppLoginPathSchema = /* @__PURE__ */ zod.z.discriminatedUnion("kind", [/* @_
|
|
|
31015
30916
|
*
|
|
31016
30917
|
* One name, two readers (the OIDC addon that sets it, the hub that checks it).
|
|
31017
30918
|
*/
|
|
31018
|
-
var SSO_STATE_COOKIE = "
|
|
30919
|
+
var SSO_STATE_COOKIE = "dominevo_sso_state";
|
|
31019
30920
|
/** Seconds the state cookie lives — the pending IdP state lasts 5 minutes, the bridge 5 more. */
|
|
31020
30921
|
var SSO_STATE_COOKIE_MAX_AGE_SEC = 600;
|
|
31021
30922
|
//#endregion
|
|
@@ -31037,7 +30938,7 @@ var SSO_STATE_COOKIE_MAX_AGE_SEC = 600;
|
|
|
31037
30938
|
/** Signature algorithm of every device credential: ECDSA, curve P-256, SHA-256. */
|
|
31038
30939
|
var DEVICE_CERT_SIGNATURE = "ecdsa-p256-sha256";
|
|
31039
30940
|
/** First line of every signed message; a change of format bumps the version. */
|
|
31040
|
-
var DEVICE_SIGNATURE_MESSAGE_VERSION = "
|
|
30941
|
+
var DEVICE_SIGNATURE_MESSAGE_VERSION = "dominevo-device-cert-v1";
|
|
31041
30942
|
/** What a signature is for. A login signature can never be replayed as a renewal. */
|
|
31042
30943
|
var DeviceSignaturePurposeSchema = /* @__PURE__ */ zod.z.enum([
|
|
31043
30944
|
"login",
|
|
@@ -31051,12 +30952,12 @@ var DEVICE_CERT_RENEW_WINDOW_DAYS = 30;
|
|
|
31051
30952
|
var DEVICE_ENROLLMENT_TTL_MS = 10 * 6e4;
|
|
31052
30953
|
var DEVICE_NONCE_TTL_MS = 6e4;
|
|
31053
30954
|
/** SAN URI prefixes of a device leaf. */
|
|
31054
|
-
var DEVICE_SAN_CREDENTIAL_PREFIX = "
|
|
31055
|
-
var DEVICE_SAN_USER_PREFIX = "
|
|
30955
|
+
var DEVICE_SAN_CREDENTIAL_PREFIX = "dominevo:credential:";
|
|
30956
|
+
var DEVICE_SAN_USER_PREFIX = "dominevo:user:";
|
|
31056
30957
|
/**
|
|
31057
30958
|
* The exact bytes a device signs (UTF-8, `\n` separators, no trailing newline):
|
|
31058
30959
|
*
|
|
31059
|
-
*
|
|
30960
|
+
* dominevo-device-cert-v1
|
|
31060
30961
|
* <login|renew>
|
|
31061
30962
|
* <origin> the hub origin returned by `getDeviceChallenge`
|
|
31062
30963
|
* <nonce>
|
|
@@ -31073,13 +30974,8 @@ function buildDeviceSignatureMessage(input) {
|
|
|
31073
30974
|
input.nonce
|
|
31074
30975
|
].join("\n");
|
|
31075
30976
|
}
|
|
31076
|
-
/** The app schemes an enrollment link may carry: the
|
|
31077
|
-
var ENROLLMENT_PROTOCOLS = [
|
|
31078
|
-
"dominevo:",
|
|
31079
|
-
"dominevo.dev:",
|
|
31080
|
-
"camstack:",
|
|
31081
|
-
"camstack.dev:"
|
|
31082
|
-
];
|
|
30977
|
+
/** The app schemes an enrollment link may carry: the app and its dev client. */
|
|
30978
|
+
var ENROLLMENT_PROTOCOLS = ["dominevo:", "dominevo.dev:"];
|
|
31083
30979
|
/** The deep link a QR carries: `dominevo://enroll?hub=<origin>&code=<code>`. */
|
|
31084
30980
|
function buildDeviceEnrollmentLink(input) {
|
|
31085
30981
|
const query = new URLSearchParams();
|
|
@@ -41859,7 +41755,7 @@ function pruneDeletedEntities(selection, live, log, exporter) {
|
|
|
41859
41755
|
//#endregion
|
|
41860
41756
|
//#region src/capabilities/device-export.cap.ts
|
|
41861
41757
|
/**
|
|
41862
|
-
* `device-export` — collection cap for addons that export
|
|
41758
|
+
* `device-export` — collection cap for addons that export dominevo
|
|
41863
41759
|
* devices to external ecosystems (HomeAssistant via MQTT discovery,
|
|
41864
41760
|
* HomeKit/HAP, Alexa Smart Home, …).
|
|
41865
41761
|
*
|
|
@@ -45681,7 +45577,7 @@ var backupCapability = {
|
|
|
45681
45577
|
*/
|
|
45682
45578
|
listLocations: /* @__PURE__ */ require_runtime_capabilities.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(LocationStatSchema).readonly(), { auth: "admin" }),
|
|
45683
45579
|
/**
|
|
45684
|
-
* Read the embedded `.
|
|
45580
|
+
* Read the embedded `.dominevo-backup-manifest.json` from a
|
|
45685
45581
|
* previously-created archive. The manifest carries the full
|
|
45686
45582
|
* file/dir listing with sizes + mtimes — the readdir snapshot
|
|
45687
45583
|
* the UI shows in the "Contents" panel. Returns `null` when the
|
|
@@ -58382,7 +58278,7 @@ var ImportModelBundleInputSchema = /* @__PURE__ */ zod.z.object({
|
|
|
58382
58278
|
stepId: /* @__PURE__ */ zod.z.string().min(1),
|
|
58383
58279
|
/**
|
|
58384
58280
|
* The catalog rows to register, complete, every format URL already
|
|
58385
|
-
* `
|
|
58281
|
+
* `dominevo-local://<modelId>/<file>` naming a file of the bundle. One
|
|
58386
58282
|
* bundle may carry several rows (a base and its INT8 variant).
|
|
58387
58283
|
*/
|
|
58388
58284
|
entries: /* @__PURE__ */ zod.z.array(ModelCatalogEntrySchema).min(1).max(4),
|
|
@@ -64953,7 +64849,7 @@ var AUDIO_GRADIENT_ALPHAS = [
|
|
|
64953
64849
|
1
|
|
64954
64850
|
];
|
|
64955
64851
|
var PALETTE_PRESET_IDS = [
|
|
64956
|
-
"
|
|
64852
|
+
"dominevo",
|
|
64957
64853
|
"high-contrast",
|
|
64958
64854
|
"okabe-ito"
|
|
64959
64855
|
];
|
|
@@ -65074,7 +64970,7 @@ function deltaE00(hex1, hex2) {
|
|
|
65074
64970
|
//#endregion
|
|
65075
64971
|
//#region src/catalogs/display-palette-tables.ts
|
|
65076
64972
|
/** Frozen palette tables (D939). The spec refuses a table that breaks the rule. */
|
|
65077
|
-
var
|
|
64973
|
+
var DOMINEVO_HEX = {
|
|
65078
64974
|
motion: "#d946ef",
|
|
65079
64975
|
audio: "#059eb8",
|
|
65080
64976
|
recording: "#ef4444",
|
|
@@ -65130,7 +65026,7 @@ var CAMSTACK_HEX = {
|
|
|
65130
65026
|
doorbell: "#0087ab",
|
|
65131
65027
|
"appliance-cycle": "#2a8c8c"
|
|
65132
65028
|
};
|
|
65133
|
-
var
|
|
65029
|
+
var DOMINEVO_FALLBACK = [
|
|
65134
65030
|
"#b34dc7",
|
|
65135
65031
|
"#1d7d34",
|
|
65136
65032
|
"#db6b6c",
|
|
@@ -65342,15 +65238,15 @@ function preset(id, name, hexes, fallbacks) {
|
|
|
65342
65238
|
};
|
|
65343
65239
|
}
|
|
65344
65240
|
var DISPLAY_PRESETS = [
|
|
65345
|
-
/* @__PURE__ */ preset("
|
|
65241
|
+
/* @__PURE__ */ preset("dominevo", "Dominevo", DOMINEVO_HEX, DOMINEVO_FALLBACK),
|
|
65346
65242
|
/* @__PURE__ */ preset("high-contrast", "High contrast", HIGH_CONTRAST_HEX, HIGH_CONTRAST_FALLBACK),
|
|
65347
65243
|
/* @__PURE__ */ preset("okabe-ito", "Colour-blind safe", OKABE_ITO_HEX, OKABE_ITO_FALLBACK)
|
|
65348
65244
|
];
|
|
65349
65245
|
function presetById(id) {
|
|
65350
65246
|
return DISPLAY_PRESETS.find((item) => item.id === id);
|
|
65351
65247
|
}
|
|
65352
|
-
function
|
|
65353
|
-
const presetRow = presetById("
|
|
65248
|
+
function bundledDominevo() {
|
|
65249
|
+
const presetRow = presetById("dominevo");
|
|
65354
65250
|
if (presetRow === void 0) throw new Error("Dominevo preset missing");
|
|
65355
65251
|
return readyOf(presetRow, "unconfigured", false);
|
|
65356
65252
|
}
|
|
@@ -65519,7 +65415,7 @@ function isEmptyRecord(value) {
|
|
|
65519
65415
|
* `unknown` — never the default wearing the stored preset's name.
|
|
65520
65416
|
*/
|
|
65521
65417
|
function paletteFromStored(value) {
|
|
65522
|
-
if (value === void 0 || value === null || isEmptyRecord(value)) return
|
|
65418
|
+
if (value === void 0 || value === null || isEmptyRecord(value)) return bundledDominevo();
|
|
65523
65419
|
const parsed = storedPaletteSchema.safeParse(value);
|
|
65524
65420
|
if (!parsed.success) return {
|
|
65525
65421
|
status: "unknown",
|
|
@@ -66493,7 +66389,7 @@ var FaceInfoSchema = /* @__PURE__ */ zod.z.object({
|
|
|
66493
66389
|
* snapshot surfaces made on 2026-08-08.
|
|
66494
66390
|
*
|
|
66495
66391
|
* Served by the `event-media` plane, which resolves a raw MediaStore key and
|
|
66496
|
-
* is `access: 'authenticated'`: a bare `<img>` carries the `
|
|
66392
|
+
* is `access: 'authenticated'`: a bare `<img>` carries the `dominevo_session`
|
|
66497
66393
|
* cookie, so no header plumbing is needed. The bytes then ride the browser's
|
|
66498
66394
|
* HTTP cache with an ETag and `immutable`, instead of the WebSocket.
|
|
66499
66395
|
*
|
|
@@ -72384,7 +72280,7 @@ var keychainCapability = {
|
|
|
72384
72280
|
* returns a value.
|
|
72385
72281
|
*
|
|
72386
72282
|
* The master key's LOCATION is a fixed path, never an env var (D788, D991):
|
|
72387
|
-
* `/run/secrets/
|
|
72283
|
+
* `/run/secrets/dominevo-master-key` when that file exists, the OS keychain on
|
|
72388
72284
|
* a desktop hub, else
|
|
72389
72285
|
* `<dataDir>/.keychain/master.key` — which sits beside the database in every
|
|
72390
72286
|
* whole-volume backup, and the status says so.
|
|
@@ -72582,7 +72478,7 @@ var keychainAdminCapability = {
|
|
|
72582
72478
|
* a new master key, write it there, re-wrap. A file or OS-keychain primary
|
|
72583
72479
|
* that is already in use cannot be replaced from here — put the new key at
|
|
72584
72480
|
* the source, keep the old one at
|
|
72585
|
-
* `/run/secrets/
|
|
72481
|
+
* `/run/secrets/dominevo-master-key.previous`, restart, and rotate. No value is re-encrypted either way; the previous wrap is kept
|
|
72586
72482
|
* (retired) until purged.
|
|
72587
72483
|
*/
|
|
72588
72484
|
rotateMasterKey: /* @__PURE__ */ require_runtime_capabilities.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.object({
|
|
@@ -73709,7 +73605,7 @@ var llmCapability = {
|
|
|
73709
73605
|
*
|
|
73710
73606
|
* ## The external observer still has a job
|
|
73711
73607
|
*
|
|
73712
|
-
* `metrics.node-processes-snapshot` measures every
|
|
73608
|
+
* `metrics.node-processes-snapshot` measures every dominevo-shaped process on
|
|
73713
73609
|
* the node whether or not anybody claims it. Contributions cover what the
|
|
73714
73610
|
* addons know about; the snapshot covers what is actually running. **The
|
|
73715
73611
|
* difference is the finding** — a process nobody claims is either a leak or a
|
|
@@ -73835,14 +73731,14 @@ list: /* @__PURE__ */ require_runtime_capabilities.method(/* @__PURE__ */ zod.z.
|
|
|
73835
73731
|
//#endregion
|
|
73836
73732
|
//#region src/capabilities/viewer-link-url.ts
|
|
73837
73733
|
/** The central link domain the viewer app claims (Universal Links / App Links). */
|
|
73838
|
-
var
|
|
73734
|
+
var DOMINEVO_APP_LINK_ORIGIN = "https://viewer.dominevo.app";
|
|
73839
73735
|
/** Where the hub serves the viewer SPA. */
|
|
73840
|
-
var HUB_VIEWER_MOUNT = "/viewer/
|
|
73736
|
+
var HUB_VIEWER_MOUNT = "/viewer/dominevo";
|
|
73841
73737
|
/** True when `baseUrl` names the Dominevo app link rather than a hub address. */
|
|
73842
73738
|
function isAppLinkBase(baseUrl) {
|
|
73843
73739
|
if (baseUrl === null || baseUrl === void 0 || baseUrl === "") return false;
|
|
73844
73740
|
try {
|
|
73845
|
-
return new URL(baseUrl).origin ===
|
|
73741
|
+
return new URL(baseUrl).origin === DOMINEVO_APP_LINK_ORIGIN;
|
|
73846
73742
|
} catch {
|
|
73847
73743
|
return false;
|
|
73848
73744
|
}
|
|
@@ -73943,7 +73839,7 @@ function buildViewerLink(input) {
|
|
|
73943
73839
|
if (input.base.form === "app") {
|
|
73944
73840
|
const origin = base === "" ? null : toAppLinkHubOrigin(base);
|
|
73945
73841
|
const query = origin === null ? route.query : [...route.query, ["hub", origin]];
|
|
73946
|
-
return `${
|
|
73842
|
+
return `${DOMINEVO_APP_LINK_ORIGIN}${route.path}${encodeQuery(query)}`;
|
|
73947
73843
|
}
|
|
73948
73844
|
if (base === "" || isAppLinkBase(base)) return null;
|
|
73949
73845
|
return `${base}${HUB_VIEWER_MOUNT}${route.path}${encodeQuery(route.query)}`;
|
|
@@ -74086,7 +73982,7 @@ var PUBLIC_ENDPOINT_HTTP_REASON = "The public endpoint needs an https:// address
|
|
|
74086
73982
|
function checkRoleAddress(role, baseUrl, options = {}) {
|
|
74087
73983
|
if (isAppLinkBase(baseUrl)) return role === "notificationTaps" ? {
|
|
74088
73984
|
ok: true,
|
|
74089
|
-
baseUrl:
|
|
73985
|
+
baseUrl: DOMINEVO_APP_LINK_ORIGIN
|
|
74090
73986
|
} : {
|
|
74091
73987
|
ok: false,
|
|
74092
73988
|
reason: "The Dominevo app link is not a hub address — only notification taps can use it."
|
|
@@ -74166,7 +74062,7 @@ function resolveNotificationTapAddress(flags) {
|
|
|
74166
74062
|
};
|
|
74167
74063
|
return {
|
|
74168
74064
|
flagged: null,
|
|
74169
|
-
resolved:
|
|
74065
|
+
resolved: DOMINEVO_APP_LINK_ORIGIN,
|
|
74170
74066
|
source: "auto"
|
|
74171
74067
|
};
|
|
74172
74068
|
}
|
|
@@ -74220,13 +74116,13 @@ function hubAddressHostname(baseUrl) {
|
|
|
74220
74116
|
}
|
|
74221
74117
|
/**
|
|
74222
74118
|
* How a client finds a hub on the LAN (D838): the hub publishes ONE mDNS
|
|
74223
|
-
* service for its HTTPS endpoint. `
|
|
74119
|
+
* service for its HTTPS endpoint. `_dominevo._tcp` carries the hub's `internal`
|
|
74224
74120
|
* address in `url`, and nothing secret — finding a hub grants nothing, every
|
|
74225
74121
|
* client still signs in. The mesh channel stays retired (D826).
|
|
74226
74122
|
*/
|
|
74227
|
-
var HUB_MDNS_SERVICE_TYPE = "
|
|
74123
|
+
var HUB_MDNS_SERVICE_TYPE = "dominevo";
|
|
74228
74124
|
/** The fully-qualified name a client browses for. */
|
|
74229
|
-
var HUB_MDNS_QUERY_NAME = "
|
|
74125
|
+
var HUB_MDNS_QUERY_NAME = "_dominevo._tcp.local";
|
|
74230
74126
|
/** The TXT keys of the advertisement. Every value is public. */
|
|
74231
74127
|
var HUB_MDNS_TXT_KEYS = {
|
|
74232
74128
|
nodeId: "nodeId",
|
|
@@ -74252,9 +74148,9 @@ function isHubId(value) {
|
|
|
74252
74148
|
* port, paired or not. The TXT record carries only public facts. Finding an agent grants
|
|
74253
74149
|
* nothing: pairing still needs the six-digit code confirmed on both screens.
|
|
74254
74150
|
*/
|
|
74255
|
-
var AGENT_MDNS_SERVICE_TYPE = "
|
|
74151
|
+
var AGENT_MDNS_SERVICE_TYPE = "dominevo-agent";
|
|
74256
74152
|
/** The fully-qualified name a hub browses for. */
|
|
74257
|
-
var AGENT_MDNS_QUERY_NAME = "
|
|
74153
|
+
var AGENT_MDNS_QUERY_NAME = "_dominevo-agent._tcp.local";
|
|
74258
74154
|
/** The TXT keys of the agent advertisement. Every value is public. */
|
|
74259
74155
|
var AGENT_MDNS_TXT_KEYS = {
|
|
74260
74156
|
nodeId: "nodeId",
|
|
@@ -74446,7 +74342,7 @@ var NotificationEndpointSchema = /* @__PURE__ */ zod.z.object({
|
|
|
74446
74342
|
baseUrl: /* @__PURE__ */ zod.z.string().nullable(),
|
|
74447
74343
|
/**
|
|
74448
74344
|
* The effective flagged address: the explicit choice, else (AUTO) the
|
|
74449
|
-
* Dominevo app link `https://
|
|
74345
|
+
* Dominevo app link `https://viewer.dominevo.app` (D709). A pre-D709 hub
|
|
74450
74346
|
* answered the public tunnel / mesh here, or null.
|
|
74451
74347
|
*/
|
|
74452
74348
|
resolved: /* @__PURE__ */ zod.z.string().nullable(),
|
|
@@ -74654,7 +74550,7 @@ var localNetworkCapability = {
|
|
|
74654
74550
|
* belongs to whoever already owns it). This method used to take a `port`
|
|
74655
74551
|
* and echo it onto every LAN and loopback URL it advertised, which made
|
|
74656
74552
|
* every client a second authority on a socket only the hub binds. A viewer
|
|
74657
|
-
* configured with a port-less public URL (`https://
|
|
74553
|
+
* configured with a port-less public URL (`https://dominevo.example.top`)
|
|
74658
74554
|
* infers 443 from the scheme, asks with 443, and was handed
|
|
74659
74555
|
* `https://192.168.10.9:443` for a hub listening on 4443. That candidate
|
|
74660
74556
|
* cannot ever answer, and losing its race reads in the log exactly like
|
|
@@ -74698,7 +74594,7 @@ var localNetworkCapability = {
|
|
|
74698
74594
|
/**
|
|
74699
74595
|
* The `notificationTaps` role (D734): where TAPPING a notification opens.
|
|
74700
74596
|
* `baseUrl: null` means AUTO, which is the Dominevo app link (D709): taps
|
|
74701
|
-
* go through `https://
|
|
74597
|
+
* go through `https://viewer.dominevo.app/…?hub=<appLinkHub>` and open the
|
|
74702
74598
|
* app. Any hub address the palette lists can be flagged instead; then a
|
|
74703
74599
|
* tap opens that address. Only the tap: action buttons, attachment /
|
|
74704
74600
|
* media links and admin links follow the `publicEndpoint` role
|
|
@@ -75730,7 +75626,7 @@ var MeshEndpointSchema = /* @__PURE__ */ zod.z.object({
|
|
|
75730
75626
|
* - `public`: open internet (Funnel, public-tunnel pass-through)
|
|
75731
75627
|
*/
|
|
75732
75628
|
scope: /* @__PURE__ */ zod.z.enum(["mesh", "public"]),
|
|
75733
|
-
/** Full base URL (e.g. `https://
|
|
75629
|
+
/** Full base URL (e.g. `https://dominevo.tail-abc.ts.net`). */
|
|
75734
75630
|
url: /* @__PURE__ */ zod.z.string(),
|
|
75735
75631
|
/** Hostname portion (for SAN cert checks + display). */
|
|
75736
75632
|
hostname: /* @__PURE__ */ zod.z.string(),
|
|
@@ -75791,7 +75687,7 @@ var MeshStatusSchema = /* @__PURE__ */ zod.z.object({
|
|
|
75791
75687
|
joined: /* @__PURE__ */ zod.z.boolean(),
|
|
75792
75688
|
/** Local mesh IPv4 (e.g. `100.x.x.x` for Tailscale). Empty when not joined. */
|
|
75793
75689
|
meshIp: /* @__PURE__ */ zod.z.string(),
|
|
75794
|
-
/** MagicDNS / mesh hostname (e.g. `
|
|
75690
|
+
/** MagicDNS / mesh hostname (e.g. `dominevo.tail-abc.ts.net`). Empty if not configured. */
|
|
75795
75691
|
magicDnsHostname: /* @__PURE__ */ zod.z.string(),
|
|
75796
75692
|
/** Number of peers visible to this host (excluding self). */
|
|
75797
75693
|
peerCount: /* @__PURE__ */ zod.z.number(),
|
|
@@ -76163,7 +76059,7 @@ var ContainerMemoryPointSchema = /* @__PURE__ */ (/* @__PURE__ */ zod.z.object({
|
|
|
76163
76059
|
* component of `currentBytes` and must not be subtracted from it; it says
|
|
76164
76060
|
* what put the shmem there, where `shmemBytes` only says how much.
|
|
76165
76061
|
*
|
|
76166
|
-
* `null` wherever debugfs is not mounted — which is inside every
|
|
76062
|
+
* `null` wherever debugfs is not mounted — which is inside every dominevo
|
|
76167
76063
|
* container today — and on any node with no Intel GPU.
|
|
76168
76064
|
*/
|
|
76169
76065
|
gpuShmemBytes: /* @__PURE__ */ zod.z.number().nullable()
|
|
@@ -76326,7 +76222,7 @@ var metricsProviderCapability = {
|
|
|
76326
76222
|
*/
|
|
76327
76223
|
getAddonStats: /* @__PURE__ */ require_runtime_capabilities.method(/* @__PURE__ */ zod.z.object({ addonId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ PidResourceStatsSchema.nullable()),
|
|
76328
76224
|
/**
|
|
76329
|
-
* Snapshot of every
|
|
76225
|
+
* Snapshot of every dominevo-related process on this node with a
|
|
76330
76226
|
* root/managed/system classification. Powers the Cluster → Agent →
|
|
76331
76227
|
* Processes tab: cross-references `$process.list` against a `ps` scan so
|
|
76332
76228
|
* per-addon CPU and RSS can be attributed, and so a process the cluster
|
|
@@ -76959,7 +76855,7 @@ var MIGRATION_API_V1_METHODS = {
|
|
|
76959
76855
|
/**
|
|
76960
76856
|
* migrations — the ledger and the controls of the boot-time migration engine
|
|
76961
76857
|
* (D987). Hub-only and internal: `sqlite-settings` is the registrant, because the
|
|
76962
|
-
* ledger lives INSIDE the database files it serves (`
|
|
76858
|
+
* ledger lives INSIDE the database files it serves (`dominevo.db`, `events.db`,
|
|
76963
76859
|
* `history.db`) and only its connection or worker may touch them (D679).
|
|
76964
76860
|
*
|
|
76965
76861
|
* The engine itself runs in the owner's `afterOpen`, before any provider is
|
|
@@ -82411,7 +82307,7 @@ var NodeBenchFingerprintSchema = /* @__PURE__ */ zod.z.object({
|
|
|
82411
82307
|
});
|
|
82412
82308
|
/** The frames the run used. */
|
|
82413
82309
|
var NodeBenchClipSchema = /* @__PURE__ */ zod.z.object({
|
|
82414
|
-
/** `
|
|
82310
|
+
/** `dominevo-bench-v1` or `reference-images` (the fallback when the clip is not reachable). */
|
|
82415
82311
|
id: /* @__PURE__ */ zod.z.string(),
|
|
82416
82312
|
revision: /* @__PURE__ */ zod.z.string().nullable(),
|
|
82417
82313
|
frames: /* @__PURE__ */ zod.z.number(),
|
|
@@ -83051,7 +82947,7 @@ var ReportMotionInputSchema = /* @__PURE__ */ zod.z.object({
|
|
|
83051
82947
|
* pull-mode decoder session pinned to its own node. The shm ring stays
|
|
83052
82948
|
* node-local; only H.264/H.265 packets cross the wire.
|
|
83053
82949
|
* `hubHostnameOverride` mirrors the recorder's `recordingHubHostname`:
|
|
83054
|
-
* when set it overrides the `
|
|
82950
|
+
* when set it overrides the `DOMINEVO_HUB_URL`-derived host the runner
|
|
83055
82951
|
* dials for the owner's restream.
|
|
83056
82952
|
*/
|
|
83057
82953
|
var RunnerFrameSourceSchema = /* @__PURE__ */ zod.z.discriminatedUnion("kind", [/* @__PURE__ */ zod.z.object({ kind: /* @__PURE__ */ zod.z.literal("local-broker") }), /* @__PURE__ */ zod.z.object({
|
|
@@ -83062,7 +82958,7 @@ var RunnerFrameSourceSchema = /* @__PURE__ */ zod.z.discriminatedUnion("kind", [
|
|
|
83062
82958
|
* The owner's LAN-reachable host, resolved by the orchestrator from the
|
|
83063
82959
|
* per-node `reachableHost` override (Cluster UI). When present the runner
|
|
83064
82960
|
* dials THIS host for the owner's restream, in preference to the
|
|
83065
|
-
* `
|
|
82961
|
+
* `DOMINEVO_HUB_URL`-derived default. Absent → auto-detect fallback.
|
|
83066
82962
|
*/
|
|
83067
82963
|
ownerReachableHost: /* @__PURE__ */ zod.z.string().optional(),
|
|
83068
82964
|
/** Operator override for the owner host the runner dials. */
|
|
@@ -86535,7 +86431,7 @@ function getAudioMacroClassIds() {
|
|
|
86535
86431
|
*
|
|
86536
86432
|
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
86537
86433
|
*/
|
|
86538
|
-
var BUNDLED_PALETTE = /* @__PURE__ */
|
|
86434
|
+
var BUNDLED_PALETTE = /* @__PURE__ */ bundledDominevo();
|
|
86539
86435
|
function kindColor(kind) {
|
|
86540
86436
|
return paintHex(BUNDLED_PALETTE.swatches, BUNDLED_PALETTE.fallbacks, kind);
|
|
86541
86437
|
}
|
|
@@ -88159,7 +88055,7 @@ var NcRulePatchSchema = /* @__PURE__ */ NcRuleInputSchema.partial().extend({
|
|
|
88159
88055
|
* Keys an older client may still name in `clear` (D692 §2.3). Accepted so its saves are never
|
|
88160
88056
|
* refused. They are no longer rule fields: `NcRuleStore.update` only strips them from the
|
|
88161
88057
|
* STORED row, and `NcRuleStore.load` projects what a stored row still carries (D692 §9).
|
|
88162
|
-
* Removed one release after the viewer pin in
|
|
88058
|
+
* Removed one release after the viewer pin in dominevo-server stops sending them.
|
|
88163
88059
|
*/
|
|
88164
88060
|
var NC_RULE_RETIRED_CLEAR_KEYS = ["waitForEnhancement", "groupIdleSec"];
|
|
88165
88061
|
/**
|
|
@@ -90377,7 +90273,7 @@ var numericSensorCapability = {
|
|
|
90377
90273
|
* `oauth2-routes.ts` ([D101](../../../../docs/decisions/adr-0101.md)). Three
|
|
90378
90274
|
* steps, no others:
|
|
90379
90275
|
*
|
|
90380
|
-
* 1. Add `{ "name": "oauth-integration" }` to the addon's `
|
|
90276
|
+
* 1. Add `{ "name": "oauth-integration" }` to the addon's `dominevo.addons[]`
|
|
90381
90277
|
* manifest entry. This is also what tells the hub, at addon-LOAD time, that
|
|
90382
90278
|
* a descriptor is owed — see "the boot window" below.
|
|
90383
90279
|
* 2. Return a provider from `onInitialize()`:
|
|
@@ -93764,7 +93660,7 @@ var AgentPipelineSettingsSchema = /* @__PURE__ */ zod.z.object({
|
|
|
93764
93660
|
/**
|
|
93765
93661
|
* Operator override for the LAN host a cross-node decoder dials to reach
|
|
93766
93662
|
* THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
|
|
93767
|
-
* falls back to its `
|
|
93663
|
+
* falls back to its `DOMINEVO_HUB_URL`-derived host (the Moleculer address
|
|
93768
93664
|
* it already uses to reach the hub). Set this only when the auto-detected
|
|
93769
93665
|
* address is wrong (multi-homed host, NAT, custom interface).
|
|
93770
93666
|
*/
|
|
@@ -94639,7 +94535,7 @@ var pipelineOrchestratorCapability = {
|
|
|
94639
94535
|
/**
|
|
94640
94536
|
* Set (or clear) the operator override for the LAN host a cross-node
|
|
94641
94537
|
* decoder dials to reach this node's restream. Pass a non-empty string to
|
|
94642
|
-
* override the auto-detected address (the runner's `
|
|
94538
|
+
* override the auto-detected address (the runner's `DOMINEVO_HUB_URL`
|
|
94643
94539
|
* default); pass `null` or an empty string to clear it and revert to
|
|
94644
94540
|
* auto-detect. Applied on the next dispatch cycle — takes effect for new
|
|
94645
94541
|
* cross-node attaches; existing attaches keep their current host until
|
|
@@ -97130,7 +97026,7 @@ var recordEntriesCapability = {
|
|
|
97130
97026
|
*
|
|
97131
97027
|
* ## The default is OURS, and there is nowhere to say otherwise
|
|
97132
97028
|
*
|
|
97133
|
-
* {@link
|
|
97029
|
+
* {@link RECORDING_SOURCE_DOMINEVO} is RESERVED. The absence of an operator
|
|
97134
97030
|
* choice MEANS that value; it is not a row that happened to sort first. Clips
|
|
97135
97031
|
* end their resolver with `?? sources[0]` and that is right for clips — a
|
|
97136
97032
|
* camera full of onboard clips that says "no clips" is the defect that work
|
|
@@ -97156,15 +97052,15 @@ var recordEntriesCapability = {
|
|
|
97156
97052
|
* `listSources`, and the absence of an operator choice MEANS this value.
|
|
97157
97053
|
*
|
|
97158
97054
|
* Reserved is ENFORCED, not requested — `device-collection-dispatch.ts` drops a
|
|
97159
|
-
* row spelling it from any addon but {@link
|
|
97055
|
+
* row spelling it from any addon but {@link RECORDING_SOURCE_DOMINEVO_ADDON},
|
|
97160
97056
|
* naming the impostor, and `scripts/check-reserved-collection-sources.ts`
|
|
97161
97057
|
* fails CI on a provider package that spells it at all. A rule nothing checks
|
|
97162
97058
|
* has already been broken somewhere.
|
|
97163
97059
|
*/
|
|
97164
|
-
var
|
|
97165
|
-
/** The one addon allowed to serve {@link
|
|
97060
|
+
var RECORDING_SOURCE_DOMINEVO = "dominevo";
|
|
97061
|
+
/** The one addon allowed to serve {@link RECORDING_SOURCE_DOMINEVO}: the
|
|
97166
97062
|
* recorder, which is the addon that writes the footage (D560). */
|
|
97167
|
-
var
|
|
97063
|
+
var RECORDING_SOURCE_DOMINEVO_ADDON = "recorder";
|
|
97168
97064
|
var RecordingRangeSchema = /* @__PURE__ */ zod.z.object({
|
|
97169
97065
|
profile: /* @__PURE__ */ zod.z.string(),
|
|
97170
97066
|
startMs: /* @__PURE__ */ zod.z.number(),
|
|
@@ -97262,7 +97158,7 @@ var RecordingSourceAvailabilitySchema = /* @__PURE__ */ zod.z.object({
|
|
|
97262
97158
|
* particular is what stops a battery camera being woken to paint a bar.
|
|
97263
97159
|
*/
|
|
97264
97160
|
var RecordingSourceSchema = /* @__PURE__ */ zod.z.object({
|
|
97265
|
-
/** The source id. {@link
|
|
97161
|
+
/** The source id. {@link RECORDING_SOURCE_DOMINEVO} for ours (RESERVED), a
|
|
97266
97162
|
* vendor namespace (`native:reolink:onboard`, …) for a camera's own store. */
|
|
97267
97163
|
source: /* @__PURE__ */ zod.z.string(),
|
|
97268
97164
|
/** Operator-facing name of the source ("Dominevo recordings", "SD card"). */
|
|
@@ -98285,7 +98181,7 @@ var MAX_CLIP_LABELS = 3;
|
|
|
98285
98181
|
/**
|
|
98286
98182
|
* Every reason a still-mint route may refuse, as a TOKEN — never prose.
|
|
98287
98183
|
*
|
|
98288
|
-
* The route also sends the prose (`x-
|
|
98184
|
+
* The route also sends the prose (`x-dominevo-reason`), because a firmware's
|
|
98289
98185
|
* own words are the only thing that explains a `camera-refused`. But the token
|
|
98290
98186
|
* is what a surface may key a table on, and the code and the prose are
|
|
98291
98187
|
* separate headers precisely because they had been the same one: the route
|
|
@@ -98319,7 +98215,7 @@ var ClipStillRefusalCodeSchema = /* @__PURE__ */ zod.z.enum([
|
|
|
98319
98215
|
*/
|
|
98320
98216
|
var ClipStillDispositionSchema = /* @__PURE__ */ zod.z.enum(["deferred", "final"]);
|
|
98321
98217
|
/** The camera's / provider's own words. Kept verbatim, never parsed. */
|
|
98322
|
-
var CLIP_STILL_REASON_HEADER = "x-
|
|
98218
|
+
var CLIP_STILL_REASON_HEADER = "x-dominevo-reason";
|
|
98323
98219
|
/** Longest reason a header carries. Beyond this the sentence is cut. */
|
|
98324
98220
|
var CLIP_REASON_HEADER_MAX = 500;
|
|
98325
98221
|
/**
|
|
@@ -98356,9 +98252,9 @@ function clipReasonHeaderValue(reason) {
|
|
|
98356
98252
|
return out.slice(0, 500).trim();
|
|
98357
98253
|
}
|
|
98358
98254
|
/** One {@link ClipStillRefusalCodeSchema} token, alone. */
|
|
98359
|
-
var CLIP_STILL_REASON_CODE_HEADER = "x-
|
|
98255
|
+
var CLIP_STILL_REASON_CODE_HEADER = "x-dominevo-reason-code";
|
|
98360
98256
|
/** One {@link ClipStillDispositionSchema} token, alone. */
|
|
98361
|
-
var CLIP_STILL_DISPOSITION_HEADER = "x-
|
|
98257
|
+
var CLIP_STILL_DISPOSITION_HEADER = "x-dominevo-disposition";
|
|
98362
98258
|
/**
|
|
98363
98259
|
* The clip STREAM route's own statement of what it is (D597): the value is
|
|
98364
98260
|
* `forward-only`. A producer writes it on the 200; a consumer that dials a
|
|
@@ -98367,7 +98263,7 @@ var CLIP_STILL_DISPOSITION_HEADER = "x-camstack-disposition";
|
|
|
98367
98263
|
* Named here because BOTH the provider and the broker spell it, and two
|
|
98368
98264
|
* copies of a header name is how one of them stops being checked.
|
|
98369
98265
|
*/
|
|
98370
|
-
var CLIP_STREAM_TRANSPORT_HEADER = "x-
|
|
98266
|
+
var CLIP_STREAM_TRANSPORT_HEADER = "x-dominevo-clip-transport";
|
|
98371
98267
|
var ClipSchema = /* @__PURE__ */ zod.z.object({
|
|
98372
98268
|
/** Opaque, provider-namespaced id. The default provider encodes the time
|
|
98373
98269
|
* window so `getClipPlayback` is self-contained (no event re-query). */
|
|
@@ -98447,7 +98343,7 @@ var ClipSchema = /* @__PURE__ */ zod.z.object({
|
|
|
98447
98343
|
* A URL that MAY produce this clip's still, asked only for rows actually on
|
|
98448
98344
|
* screen. The opposite of {@link ClipSchema.thumbnail}: that one is VOUCHED
|
|
98449
98345
|
* (a JPEG is already on disk), this one is an offer. The route answers 200
|
|
98450
|
-
* with the image, or 204 with `x-
|
|
98346
|
+
* with the image, or 204 with `x-dominevo-reason` when it could not mint one
|
|
98451
98347
|
* — a surface latches that refusal to the instant rather than retrying.
|
|
98452
98348
|
*
|
|
98453
98349
|
* Never both: a clip with a vouched `thumbnail` needs no mint.
|
|
@@ -102149,7 +102045,7 @@ var ServerUpdateStateSchema = /* @__PURE__ */ zod.z.enum([
|
|
|
102149
102045
|
* deliver today. `applyServerUpdate` swaps the data-root closure and NEVER
|
|
102150
102046
|
* touches the image, so `runningVersion` can be perfectly current while the
|
|
102151
102047
|
* container is weeks old, from a renamed repository nothing rebuilds — which
|
|
102152
|
-
* is exactly what happened on 2026-08-02 (hub on `
|
|
102048
|
+
* is exactly what happened on 2026-08-02 (hub on `dominevo-server:intel-1.1.74`
|
|
102153
102049
|
* while every existing surface said "up to date"). The seed version is the one
|
|
102154
102050
|
* image fingerprint a container can see from inside (no docker socket).
|
|
102155
102051
|
*
|
|
@@ -102197,16 +102093,16 @@ var ImageContractSchema = /* @__PURE__ */ zod.z.object({
|
|
|
102197
102093
|
*
|
|
102198
102094
|
* On 2026-08-02 `check-deployment-templates.ts` proved every day that the
|
|
102199
102095
|
* templates declared `ghcr.io/dominevo/dominevo:intel-latest` while the hub
|
|
102200
|
-
* actually ran `
|
|
102096
|
+
* actually ran `dominevo-server:intel-1.1.74` from a repository that had been
|
|
102201
102097
|
* renamed and received no builds. The declaration was right; reality was not;
|
|
102202
|
-
* nothing compared them. A `
|
|
102098
|
+
* nothing compared them. A `DOMINEVO_WRAPPER=docker` written into a template
|
|
102203
102099
|
* would be exactly that same declaration, so `kind` is NEVER an env var.
|
|
102204
102100
|
*
|
|
102205
102101
|
* What can honestly be observed from inside: `/.dockerenv` and `/proc/1/cgroup`
|
|
102206
102102
|
* (a container), and the platform (a Linux container cannot exist on darwin or
|
|
102207
102103
|
* win32). What cannot: that the node is a CHILD of an Electron main process —
|
|
102208
102104
|
* `process.versions.electron` is `undefined` in the child, so the only channel
|
|
102209
|
-
* is `
|
|
102105
|
+
* is `DOMINEVO_AGENT_APP_VERSION`, which the main process already writes
|
|
102210
102106
|
* (`packages/desktop/src/main.ts`). That one declaration is unavoidable, and it
|
|
102211
102107
|
* is marked as such on every row of {@link WrapperEvidenceSchema}.
|
|
102212
102108
|
*
|
|
@@ -102899,7 +102795,7 @@ var EMAIL_IMAGE_MAX_TOTAL_BYTES = 5 * 1024 * 1024;
|
|
|
102899
102795
|
* Where an HTML body leaves room for the inline images: under the text, above
|
|
102900
102796
|
* the click link. The builder replaces it; a message with no image loses it.
|
|
102901
102797
|
*/
|
|
102902
|
-
var EMAIL_IMAGE_SLOT = "<!--
|
|
102798
|
+
var EMAIL_IMAGE_SLOT = "<!--dominevo-images-->";
|
|
102903
102799
|
var EmailImagePartSchema = /* @__PURE__ */ zod.z.object({
|
|
102904
102800
|
ticket: require_runtime_capabilities.PeerBytesTicketSchema,
|
|
102905
102801
|
mime: /* @__PURE__ */ zod.z.string().min(1),
|
|
@@ -102911,7 +102807,7 @@ var EmailImagePartSchema = /* @__PURE__ */ zod.z.object({
|
|
|
102911
102807
|
var mimeSeq = 0;
|
|
102912
102808
|
function nextBoundary(kind) {
|
|
102913
102809
|
mimeSeq += 1;
|
|
102914
|
-
return `
|
|
102810
|
+
return `dominevo_${kind}_${mimeSeq.toString(36)}_${Date.now().toString(36)}`;
|
|
102915
102811
|
}
|
|
102916
102812
|
function encodeHeaderWord(value) {
|
|
102917
102813
|
if (/^[\x20-\x7E]*$/.test(value)) return value;
|
|
@@ -103433,7 +103329,7 @@ var SsoBridgeClaimsSchema = /* @__PURE__ */ zod.z.object({
|
|
|
103433
103329
|
*/
|
|
103434
103330
|
issuer: /* @__PURE__ */ zod.z.string().optional(),
|
|
103435
103331
|
/**
|
|
103436
|
-
* SHA-256 (hex) of the `
|
|
103332
|
+
* SHA-256 (hex) of the `dominevo_sso_state` cookie the IdP `/start` set in
|
|
103437
103333
|
* the browser that began this sign-in. `/api/auth/sso/finish` requires the
|
|
103438
103334
|
* request to present the matching cookie — a login bridge is useless in
|
|
103439
103335
|
* any other browser.
|
|
@@ -106489,7 +106385,7 @@ function appendAt(root, path, items, key) {
|
|
|
106489
106385
|
return setAt(root, path, [...list, ...items]);
|
|
106490
106386
|
}
|
|
106491
106387
|
/** The entries a row holds under `key`, each trigger carrying the leaf id the `triggered-by` of its row reads. */
|
|
106492
|
-
function entriesOf
|
|
106388
|
+
function entriesOf(row, input, rowId) {
|
|
106493
106389
|
const value = row.scalars.get(input.key);
|
|
106494
106390
|
const parsed = TemplateEntriesValueSchema.safeParse(value);
|
|
106495
106391
|
const entries = parsed.success ? parsed.data : [];
|
|
@@ -106520,11 +106416,11 @@ function fillItem(template, bindings, group, row, rowId) {
|
|
|
106520
106416
|
const nested = group.inputs.find((i) => i.key === binding.input);
|
|
106521
106417
|
if (binding.kind === "entries") {
|
|
106522
106418
|
if (nested === void 0 || nested.kind !== "entries") continue;
|
|
106523
|
-
item = appendAt(item, binding.path, entriesOf
|
|
106419
|
+
item = appendAt(item, binding.path, entriesOf(row, nested, rowId), nested.key);
|
|
106524
106420
|
continue;
|
|
106525
106421
|
}
|
|
106526
106422
|
if (binding.kind === "row-ids" && nested !== void 0 && nested.kind === "entries") {
|
|
106527
|
-
item = setAt(item, binding.path, entriesOf
|
|
106423
|
+
item = setAt(item, binding.path, entriesOf(row, nested, rowId).map((entry) => Reflect.get(entry, "id")));
|
|
106528
106424
|
continue;
|
|
106529
106425
|
}
|
|
106530
106426
|
if (nested === void 0 || nested.kind !== "group") continue;
|
|
@@ -106553,7 +106449,7 @@ function applyEntriesOfRows(root, binding, inputs, resolved) {
|
|
|
106553
106449
|
if (group === void 0 || group.kind !== "group") return root;
|
|
106554
106450
|
const entries = group.inputs.find((i) => i.key === binding.input);
|
|
106555
106451
|
if (entries === void 0 || entries.kind !== "entries") return root;
|
|
106556
|
-
const items = (resolved.groups.get(group.key) ?? []).flatMap((row, index) => entriesOf
|
|
106452
|
+
const items = (resolved.groups.get(group.key) ?? []).flatMap((row, index) => entriesOf(row, entries, rowIdOf(null, group.key, index)));
|
|
106557
106453
|
return appendAt(root, binding.path, items, entries.key);
|
|
106558
106454
|
}
|
|
106559
106455
|
/** The body with the values written in, as a recipe — or every reason it is not one. */
|
|
@@ -106680,7 +106576,7 @@ function detachAutomationInstance(recipe) {
|
|
|
106680
106576
|
const { template: _link, ...free } = recipe;
|
|
106681
106577
|
return free;
|
|
106682
106578
|
}
|
|
106683
|
-
var AUTOMATION_TEMPLATE_EXPORT_FORMAT = "
|
|
106579
|
+
var AUTOMATION_TEMPLATE_EXPORT_FORMAT = "dominevo.automation-template";
|
|
106684
106580
|
var AutomationTemplateExportSchema = /* @__PURE__ */ zod.z.object({
|
|
106685
106581
|
format: /* @__PURE__ */ zod.z.literal(AUTOMATION_TEMPLATE_EXPORT_FORMAT),
|
|
106686
106582
|
version: /* @__PURE__ */ zod.z.literal(1),
|
|
@@ -107169,7 +107065,7 @@ var ProviderJobStatusSchema = /* @__PURE__ */ zod.z.object({
|
|
|
107169
107065
|
* in `result.json`.
|
|
107170
107066
|
*/
|
|
107171
107067
|
var TrainerSourceRefSchema = /* @__PURE__ */ zod.z.object({
|
|
107172
|
-
/** Hugging Face repo id, e.g. `
|
|
107068
|
+
/** Hugging Face repo id, e.g. `Dominevo/dominevo-trainer`. */
|
|
107173
107069
|
repo: /* @__PURE__ */ zod.z.string().min(1),
|
|
107174
107070
|
/** A commit sha (never a branch) — the job must be reproducible. */
|
|
107175
107071
|
revision: /* @__PURE__ */ zod.z.string().regex(/^[0-9a-f]{7,64}$/)
|
|
@@ -107801,7 +107697,11 @@ var OauthSessionSummarySchema = /* @__PURE__ */ zod.z.object({
|
|
|
107801
107697
|
instanceId: /* @__PURE__ */ zod.z.string().nullable().optional(),
|
|
107802
107698
|
scopes: /* @__PURE__ */ zod.z.array(TokenScopeSchema),
|
|
107803
107699
|
createdAt: /* @__PURE__ */ zod.z.number(),
|
|
107804
|
-
|
|
107700
|
+
/** The last real use of an access token of this link; `null` = never used. A refresh is not a use. */
|
|
107701
|
+
lastUsedAt: /* @__PURE__ */ zod.z.number().nullable(),
|
|
107702
|
+
lastUsedFrom: /* @__PURE__ */ zod.z.string().nullable(),
|
|
107703
|
+
lastUsedClient: /* @__PURE__ */ zod.z.string().nullable(),
|
|
107704
|
+
useCount: /* @__PURE__ */ zod.z.number().int().nonnegative(),
|
|
107805
107705
|
revokedAt: /* @__PURE__ */ zod.z.number().nullable()
|
|
107806
107706
|
});
|
|
107807
107707
|
var TotpSetupResultSchema = /* @__PURE__ */ zod.z.object({
|
|
@@ -114946,7 +114846,7 @@ function describeOnboardClamp(patch, landed) {
|
|
|
114946
114846
|
*/
|
|
114947
114847
|
var RESERVED_COLLECTION_SOURCES = [{
|
|
114948
114848
|
capName: "recording",
|
|
114949
|
-
sourceId: "
|
|
114849
|
+
sourceId: "dominevo",
|
|
114950
114850
|
addonId: "recorder"
|
|
114951
114851
|
}];
|
|
114952
114852
|
/**
|
|
@@ -141624,7 +141524,7 @@ var METHOD_DESCRIPTIONS = /* @__PURE__ */ Object.freeze({
|
|
|
141624
141524
|
"backup.deleteSchedule": "Delete a schedule by id. Does not touch the target locations.",
|
|
141625
141525
|
"backup.disableEncryption": "New archives are plain again. Existing encrypted archives keep needing their key.",
|
|
141626
141526
|
"backup.getEncryption": "The encryption setting — public keys only.",
|
|
141627
|
-
"backup.getEntries": "Read the embedded .
|
|
141527
|
+
"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).",
|
|
141628
141528
|
"backup.list": "Union of every destination's archives, each tagged with destinationId.",
|
|
141629
141529
|
"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.",
|
|
141630
141530
|
"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\".",
|
|
@@ -142167,7 +142067,7 @@ var METHOD_DESCRIPTIONS = /* @__PURE__ */ Object.freeze({
|
|
|
142167
142067
|
"localNetwork.getAllowedAddresses": "Read the operator's allowlist. Empty = \"auto\" (no filter). Used by the admin UI's address selector to seed its checkbox state.",
|
|
142168
142068
|
"localNetwork.getConnectionEndpoints": "Ordered candidate base URLs (the palette the Network tab shows). Includes LAN IPv4, stable LAN IPv6, the public tunnel, and mesh when joined. Loopback is off by default. The SDK races the subset from getViewerEndpoints, not this full list — IPv6 stays here because WebRTC ICE gathers dual-stack regardless of the HTTP race. Honours getAllowedAddresses() when set — addresses outside the allowlist are dropped (the public tunnel is still included as an escape hatch).",
|
|
142169
142069
|
"localNetwork.getHubAddresses": "The hub's cluster and browser addresses (deprecated; use getAddresses).",
|
|
142170
|
-
"localNetwork.getNotificationEndpoint": "The notificationTaps role (D734): where TAPPING a notification opens. baseUrl: null means AUTO, which is the Dominevo app link (D709): taps go through https://
|
|
142070
|
+
"localNetwork.getNotificationEndpoint": "The notificationTaps role (D734): where TAPPING a notification opens. baseUrl: null means AUTO, which is the Dominevo app link (D709): taps go through https://viewer.dominevo.app/…?hub=<appLinkHub> and open the app. Any hub address the palette lists can be flagged instead; then a tap opens that address. Only the tap: action buttons, attachment / media links and admin links follow the publicEndpoint role (getAddresses().roles.publicEndpoint), never this one.",
|
|
142171
142071
|
"localNetwork.getPreferred": "Auto-selected outbound interface. Heuristic: 1. Skip internal / link-local / 169.254.*. 2. Prefer LAN/wifi (real Ethernet) over docker/vpn. 3. IPv4 wins over IPv6 (compat with legacy consumers). 4. Tie-break on lowest CIDR mask (most-specific subnet). Returns null only when the host has zero non-loopback addresses. Honours getAllowedAddresses() — if the operator pinned an allowlist, only those addresses are candidates.",
|
|
142172
142072
|
"localNetwork.getScanSubnets": "Extra subnets every scan covers besides the hub's own, as CIDR strings.",
|
|
142173
142073
|
"localNetwork.getTlsStatus": "Live TLS material for the Network → Local access certificate card. LAN HTTP / hostname are scoped settings (the cap's own form), not a second store — this query is status, not configuration.",
|
|
@@ -142235,7 +142135,7 @@ var METHOD_DESCRIPTIONS = /* @__PURE__ */ Object.freeze({
|
|
|
142235
142135
|
"metricsProvider.getLoadSeries": "The retained per-node load series — the ONE reader over BOTH tiers.",
|
|
142236
142136
|
"metricsProvider.getProcessStats": "Per-PID resource stats. Missing/dead PIDs are omitted from the result.",
|
|
142237
142137
|
"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.",
|
|
142238
|
-
"metricsProvider.listNodeProcesses": "Snapshot of every
|
|
142138
|
+
"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.",
|
|
142239
142139
|
"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.",
|
|
142240
142140
|
"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.",
|
|
142241
142141
|
"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.",
|
|
@@ -142557,7 +142457,7 @@ var METHOD_DESCRIPTIONS = /* @__PURE__ */ Object.freeze({
|
|
|
142557
142457
|
"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).",
|
|
142558
142458
|
"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.",
|
|
142559
142459
|
"pipelineOrchestrator.setAgentMaxCameras": "Set the per-node camera cap for one agent.",
|
|
142560
|
-
"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
|
|
142460
|
+
"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.",
|
|
142561
142461
|
"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.",
|
|
142562
142462
|
"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.",
|
|
142563
142463
|
"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.",
|
|
@@ -147653,7 +147553,7 @@ var SCOPE_PRESETS = [
|
|
|
147653
147553
|
{
|
|
147654
147554
|
id: "cli-deployer",
|
|
147655
147555
|
label: "CLI deployer",
|
|
147656
|
-
description: "Push addons to the hub and tail their logs. Used by the `
|
|
147556
|
+
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.",
|
|
147657
147557
|
rows: [{
|
|
147658
147558
|
type: "capability",
|
|
147659
147559
|
target: "addons",
|
|
@@ -153808,17 +153708,17 @@ var NC_SERVER_PACKAGE_NAME = "@dominevo/server";
|
|
|
153808
153708
|
* The kernel and builtins ship inside it, so there is no separate framework
|
|
153809
153709
|
* package to announce. `@dominevo/types` / `@dominevo/sdk` are framework
|
|
153810
153710
|
* packages for upload routing but are never announced, so they are NOT here.
|
|
153811
|
-
* - `
|
|
153711
|
+
* - `dominevo-wrapper` — `wrapper-update-available` (`WRAPPER_PACKAGE_NAME`,
|
|
153812
153712
|
* `wrapper-update-checker.ts`).
|
|
153813
153713
|
*
|
|
153814
153714
|
* Types cannot import those producers; the backend spec
|
|
153815
153715
|
* `core/updates/__tests__/update-event-package-names.spec.ts` pins each literal
|
|
153816
153716
|
* to its producer constant. This is a picker list, never a routing list.
|
|
153817
153717
|
*/
|
|
153818
|
-
var NC_UPDATE_EVENT_PACKAGE_NAMES = [NC_SERVER_PACKAGE_NAME, "
|
|
153718
|
+
var NC_UPDATE_EVENT_PACKAGE_NAMES = [NC_SERVER_PACKAGE_NAME, "dominevo-wrapper"];
|
|
153819
153719
|
var UPDATE_EVENT_PACKAGE_TYPE = {
|
|
153820
153720
|
"@dominevo/server": "server",
|
|
153821
|
-
"
|
|
153721
|
+
"dominevo-wrapper": "wrapper"
|
|
153822
153722
|
};
|
|
153823
153723
|
function isUpdateEventPackageName(name) {
|
|
153824
153724
|
return NC_UPDATE_EVENT_PACKAGE_NAMES.some((pinned) => pinned === name);
|
|
@@ -156799,7 +156699,7 @@ var NATIVE_LEASE_ADMISSION_FIELD = {
|
|
|
156799
156699
|
* the schema's own `default` (verified live on the hub: a cluster that has never
|
|
156800
156700
|
* opened the form still reports `nativeLeaseHoldFrames = 8`). A reader that took
|
|
156801
156701
|
* that at face value would report all three knobs as "set" on every cluster on
|
|
156802
|
-
* the day this shipped, permanently retiring the `
|
|
156702
|
+
* the day this shipped, permanently retiring the `DOMINEVO_SESSION_NATIVE_LEASE_*`
|
|
156803
156703
|
* emergency override that the precedence promises. There is no raw-store read on
|
|
156804
156704
|
* this cap to distinguish the two, so the default value itself is treated as
|
|
156805
156705
|
* "the operator has expressed no preference" — which is also what leaving a
|
|
@@ -158133,7 +158033,7 @@ function rewriteFormBody(body, route) {
|
|
|
158133
158033
|
}
|
|
158134
158034
|
/** Cookies the browser holds for the hub itself must never reach a vendor. */
|
|
158135
158035
|
function filterForwardedCookies(cookieHeader) {
|
|
158136
|
-
return cookieHeader.split(";").map((part) => part.trim()).filter((part) => part.length > 0 && !part.toLowerCase().startsWith("
|
|
158036
|
+
return cookieHeader.split(";").map((part) => part.trim()).filter((part) => part.length > 0 && !part.toLowerCase().startsWith("dominevo_")).join("; ");
|
|
158137
158037
|
}
|
|
158138
158038
|
//#endregion
|
|
158139
158039
|
//#region src/vendor-login-proxy/cookie-jar.ts
|
|
@@ -158328,7 +158228,7 @@ var DROP_REQUEST_HEADERS = /* @__PURE__ */ new Set([
|
|
|
158328
158228
|
"cookie",
|
|
158329
158229
|
"origin",
|
|
158330
158230
|
"referer",
|
|
158331
|
-
"x-
|
|
158231
|
+
"x-dominevo-dataplane-secret",
|
|
158332
158232
|
"x-forwarded-for",
|
|
158333
158233
|
"x-forwarded-host",
|
|
158334
158234
|
"x-forwarded-proto",
|
|
@@ -158666,7 +158566,7 @@ var DEFAULT_POOL_MEMORY_POLICY = {
|
|
|
158666
158566
|
restartWindowMs: 1440 * 6e4
|
|
158667
158567
|
};
|
|
158668
158568
|
/**
|
|
158669
|
-
* Resolve the policy from env overrides (`
|
|
158569
|
+
* Resolve the policy from env overrides (`DOMINEVO_POOL_MEM_*`). Garbage or
|
|
158670
158570
|
* absent values keep the default — an operator typo must never disable the
|
|
158671
158571
|
* bound or set it to zero.
|
|
158672
158572
|
*/
|
|
@@ -158679,15 +158579,15 @@ function resolvePoolMemoryPolicy(env) {
|
|
|
158679
158579
|
};
|
|
158680
158580
|
const d = DEFAULT_POOL_MEMORY_POLICY;
|
|
158681
158581
|
return {
|
|
158682
|
-
sampleIntervalMs: num("
|
|
158582
|
+
sampleIntervalMs: num("DOMINEVO_POOL_MEM_INTERVAL_MS", d.sampleIntervalMs, 5e3),
|
|
158683
158583
|
baselineSettleSamples: d.baselineSettleSamples,
|
|
158684
158584
|
baselineSampleCount: d.baselineSampleCount,
|
|
158685
|
-
restartMultiple: num("
|
|
158686
|
-
floorBytes: num("
|
|
158687
|
-
ceilingBytes: num("
|
|
158688
|
-
cooldownMs: num("
|
|
158689
|
-
maxRestartsPerWindow: num("
|
|
158690
|
-
restartWindowMs: num("
|
|
158585
|
+
restartMultiple: num("DOMINEVO_POOL_MEM_MULTIPLE", d.restartMultiple, 1.5),
|
|
158586
|
+
floorBytes: num("DOMINEVO_POOL_MEM_FLOOR_MB", d.floorBytes / MB, 128) * MB,
|
|
158587
|
+
ceilingBytes: num("DOMINEVO_POOL_MEM_CEILING_MB", d.ceilingBytes / MB, 256) * MB,
|
|
158588
|
+
cooldownMs: num("DOMINEVO_POOL_MEM_COOLDOWN_MS", d.cooldownMs, 6e4),
|
|
158589
|
+
maxRestartsPerWindow: num("DOMINEVO_POOL_MEM_MAX_RESTARTS", d.maxRestartsPerWindow, 1),
|
|
158590
|
+
restartWindowMs: num("DOMINEVO_POOL_MEM_RESTART_WINDOW_MS", d.restartWindowMs, 6e4)
|
|
158691
158591
|
};
|
|
158692
158592
|
}
|
|
158693
158593
|
/** Parse the fields this watchdog needs out of `/proc/<pid>/status` text.
|
|
@@ -159646,92 +159546,6 @@ function buildLinkedInstances(records, spec) {
|
|
|
159646
159546
|
return instances;
|
|
159647
159547
|
}
|
|
159648
159548
|
//#endregion
|
|
159649
|
-
//#region src/migrations/calendar-ids-to-records.ts
|
|
159650
|
-
/**
|
|
159651
|
-
* The calendars an account imports leave the account (D1013). An account record used to carry a
|
|
159652
|
-
* `calendarIds` array; each calendar is now a record of its own that LINKS to the account
|
|
159653
|
-
* (`calendars`, one per account and calendar). For every account row with an array:
|
|
159654
|
-
*
|
|
159655
|
-
* 1. each entry becomes a calendar record under a deterministic id (an existing one is kept);
|
|
159656
|
-
* 2. each record is read back and must name this account and calendar;
|
|
159657
|
-
* 3. only then is the array cleared (a patch: nothing else on the account is touched).
|
|
159658
|
-
*
|
|
159659
|
-
* An entry that names another account, or is not a calendar id at all, selected nothing before
|
|
159660
|
-
* (the reader only matched its own account's ids): it is counted, named in a warning and goes with
|
|
159661
|
-
* the array. An array that is not a list of strings is left where it is. A failure on one account
|
|
159662
|
-
* does not stop the others; the run then throws, and the accounts that failed keep their array.
|
|
159663
|
-
* Accounts are never created or deleted. Idempotent: with the arrays cleared nothing is left to do.
|
|
159664
|
-
*/
|
|
159665
|
-
/** The id of the calendar record of one (account, calendar): the same pair is always the same row. */
|
|
159666
|
-
function calendarRecordId(accountId, calendarId) {
|
|
159667
|
-
return `cal_${(0, node_crypto.createHash)("sha1").update(`${accountId}\0${calendarId}`).digest("hex").slice(0, 16)}`;
|
|
159668
|
-
}
|
|
159669
|
-
function entriesOf(value) {
|
|
159670
|
-
if (!Array.isArray(value)) return null;
|
|
159671
|
-
const out = [];
|
|
159672
|
-
for (const item of value) {
|
|
159673
|
-
if (typeof item !== "string") return null;
|
|
159674
|
-
out.push(item);
|
|
159675
|
-
}
|
|
159676
|
-
return out;
|
|
159677
|
-
}
|
|
159678
|
-
async function moveCalendarIdsToRecords(ports, spec) {
|
|
159679
|
-
let created = 0;
|
|
159680
|
-
let cleared = 0;
|
|
159681
|
-
let dropped = 0;
|
|
159682
|
-
const failed = [];
|
|
159683
|
-
for (const account of await ports.listAccounts()) {
|
|
159684
|
-
if (account.calendarIds === void 0 || account.calendarIds === null) continue;
|
|
159685
|
-
const entries = entriesOf(account.calendarIds);
|
|
159686
|
-
if (entries === null) {
|
|
159687
|
-
ports.warn(`account '${account.id}': calendarIds is not a list of ids and stays as it is`);
|
|
159688
|
-
failed.push(account.id);
|
|
159689
|
-
continue;
|
|
159690
|
-
}
|
|
159691
|
-
try {
|
|
159692
|
-
const own = /* @__PURE__ */ new Set();
|
|
159693
|
-
const inert = [];
|
|
159694
|
-
for (const entry of entries) {
|
|
159695
|
-
const calendarId = spec.calendarIdOf(account.id, entry);
|
|
159696
|
-
if (calendarId === null || calendarId === "") inert.push(entry);
|
|
159697
|
-
else own.add(calendarId);
|
|
159698
|
-
}
|
|
159699
|
-
for (const calendarId of own) {
|
|
159700
|
-
const recordId = calendarRecordId(account.id, calendarId);
|
|
159701
|
-
const body = {
|
|
159702
|
-
name: calendarId,
|
|
159703
|
-
accountId: account.id,
|
|
159704
|
-
calendarId
|
|
159705
|
-
};
|
|
159706
|
-
if (await ports.readCalendar(recordId) === null) {
|
|
159707
|
-
await ports.putCalendar(recordId, body);
|
|
159708
|
-
created += 1;
|
|
159709
|
-
}
|
|
159710
|
-
const back = await ports.readCalendar(recordId);
|
|
159711
|
-
if (back?.accountId !== account.id || back.calendarId !== calendarId) throw new Error(`account '${account.id}': the calendar record '${recordId}' did not read back; the array stays`);
|
|
159712
|
-
}
|
|
159713
|
-
if (inert.length > 0) {
|
|
159714
|
-
ports.warn(`account '${account.id}': ${inert.length} entr${inert.length === 1 ? "y" : "ies"} of calendarIds named another account or no calendar and selected nothing: ${inert.join(", ")}`);
|
|
159715
|
-
dropped += inert.length;
|
|
159716
|
-
}
|
|
159717
|
-
await ports.clearCalendarIds(account.id);
|
|
159718
|
-
cleared += 1;
|
|
159719
|
-
} catch (error) {
|
|
159720
|
-
ports.warn(error instanceof Error ? error.message : String(error));
|
|
159721
|
-
failed.push(account.id);
|
|
159722
|
-
}
|
|
159723
|
-
}
|
|
159724
|
-
if (failed.length > 0) throw new Error(`calendarIds kept on ${failed.length} account(s) (${failed.join(", ")}); ${created} calendar record(s) written, ${cleared} account(s) cleared`);
|
|
159725
|
-
return {
|
|
159726
|
-
outcome: created === 0 && cleared === 0 ? "already-done" : "done",
|
|
159727
|
-
summary: {
|
|
159728
|
-
created,
|
|
159729
|
-
cleared,
|
|
159730
|
-
dropped
|
|
159731
|
-
}
|
|
159732
|
-
};
|
|
159733
|
-
}
|
|
159734
|
-
//#endregion
|
|
159735
159549
|
//#region src/migrations/broker-links-to-connections.ts
|
|
159736
159550
|
var BROKER_ROWS_MAX = 1e3;
|
|
159737
159551
|
var STRAY_REGISTRY_ID = /^int_\d+$/;
|
|
@@ -160200,7 +160014,7 @@ function clampToCaps(notification, caps) {
|
|
|
160200
160014
|
* one pre-bundled, side-effectful file; the finer regression (an initializer kept inside a
|
|
160201
160015
|
* module that IS reached) is `check-addon-types-reachability.ts`.
|
|
160202
160016
|
*/
|
|
160203
|
-
var TREESHAKE_CANARY_LITERAL = "
|
|
160017
|
+
var TREESHAKE_CANARY_LITERAL = "dominevo-types-treeshake-canary-7c1e";
|
|
160204
160018
|
var TreeshakeCanarySchema = /* @__PURE__ */ Object.freeze({
|
|
160205
160019
|
literal: TREESHAKE_CANARY_LITERAL,
|
|
160206
160020
|
schema: /* @__PURE__ */ zod.z.object({ [TREESHAKE_CANARY_LITERAL]: /* @__PURE__ */ zod.z.string() })
|
|
@@ -160544,8 +160358,6 @@ exports.CAMERA_SENSORS_SETTINGS_KEY = CAMERA_SENSORS_SETTINGS_KEY;
|
|
|
160544
160358
|
exports.CAMERA_SWITCH_CATALOG = CAMERA_SWITCH_CATALOG;
|
|
160545
160359
|
exports.CAMERA_SWITCH_ORDER = CAMERA_SWITCH_ORDER;
|
|
160546
160360
|
exports.CAMERA_TRIGGER = CAMERA_TRIGGER;
|
|
160547
|
-
exports.CAMSTACK_APP_LINK_ORIGIN = CAMSTACK_APP_LINK_ORIGIN;
|
|
160548
|
-
exports.CAMSTACK_EVENT_PREFIX = CAMSTACK_EVENT_PREFIX;
|
|
160549
160361
|
exports.CAM_PROFILE_ORDER = require_runtime_capabilities.CAM_PROFILE_ORDER;
|
|
160550
160362
|
exports.CAPABILITY_NAMES = CAPABILITY_NAMES;
|
|
160551
160363
|
exports.CAPABILITY_ROUTER_KEYS = CAPABILITY_ROUTER_KEYS;
|
|
@@ -160675,7 +160487,6 @@ exports.CameraSwitchIdSchema = CameraSwitchIdSchema;
|
|
|
160675
160487
|
exports.CameraSwitchSchema = CameraSwitchSchema;
|
|
160676
160488
|
exports.CameraSwitchUnavailableReasonSchema = CameraSwitchUnavailableReasonSchema;
|
|
160677
160489
|
exports.CameraSwitchWarningSchema = CameraSwitchWarningSchema;
|
|
160678
|
-
exports.CamstackError = require_runtime_capabilities.CamstackError;
|
|
160679
160490
|
exports.CandidateQueryFilterSchema = CandidateQueryFilterSchema;
|
|
160680
160491
|
exports.CapLinkStateSchema = CapLinkStateSchema;
|
|
160681
160492
|
exports.CapLinkViewSchema = CapLinkViewSchema;
|
|
@@ -160959,6 +160770,8 @@ exports.DEVICE_TYPE_INFO = DEVICE_TYPE_INFO;
|
|
|
160959
160770
|
exports.DISABLED_STEP_MESSAGE = DISABLED_STEP_MESSAGE;
|
|
160960
160771
|
exports.DISPLAY_PREFERENCES = require_runtime_capabilities.DISPLAY_PREFERENCES;
|
|
160961
160772
|
exports.DISPLAY_PRESETS = DISPLAY_PRESETS;
|
|
160773
|
+
exports.DOMINEVO_APP_LINK_ORIGIN = DOMINEVO_APP_LINK_ORIGIN;
|
|
160774
|
+
exports.DOMINEVO_EVENT_PREFIX = DOMINEVO_EVENT_PREFIX;
|
|
160962
160775
|
exports.DOORBELL_RISE_DEBOUNCE_MS = DOORBELL_RISE_DEBOUNCE_MS;
|
|
160963
160776
|
exports.DRAFT_KINDS = DRAFT_KINDS;
|
|
160964
160777
|
exports.DataStoreDatabaseSchema = DataStoreDatabaseSchema;
|
|
@@ -161113,6 +160926,7 @@ exports.DishwasherValueSchema = DishwasherValueSchema;
|
|
|
161113
160926
|
exports.DiskReconcileJobSchema = DiskReconcileJobSchema;
|
|
161114
160927
|
exports.DisposerChain = require_runtime_capabilities.DisposerChain;
|
|
161115
160928
|
exports.DoNotDisturbStatusSchema = DoNotDisturbStatusSchema;
|
|
160929
|
+
exports.DominevoError = require_runtime_capabilities.DominevoError;
|
|
161116
160930
|
exports.DoorbellPressEventSchema = DoorbellPressEventSchema;
|
|
161117
160931
|
exports.DoorbellStatusSchema = DoorbellStatusSchema;
|
|
161118
160932
|
exports.DraftKindSchema = DraftKindSchema;
|
|
@@ -162369,8 +162183,8 @@ exports.RECALL_TIE = RECALL_TIE;
|
|
|
162369
162183
|
exports.RECOGNITION_TYPES = RECOGNITION_TYPES;
|
|
162370
162184
|
exports.RECORDING_AUDIO_TRIGGER_OFFERED_DBFS = RECORDING_AUDIO_TRIGGER_OFFERED_DBFS;
|
|
162371
162185
|
exports.RECORDING_EXPORT_MAX_READ_BYTES = RECORDING_EXPORT_MAX_READ_BYTES;
|
|
162372
|
-
exports.
|
|
162373
|
-
exports.
|
|
162186
|
+
exports.RECORDING_SOURCE_DOMINEVO = RECORDING_SOURCE_DOMINEVO;
|
|
162187
|
+
exports.RECORDING_SOURCE_DOMINEVO_ADDON = RECORDING_SOURCE_DOMINEVO_ADDON;
|
|
162374
162188
|
exports.RECORDING_TIMELINE_BATCH_MAX = RECORDING_TIMELINE_BATCH_MAX;
|
|
162375
162189
|
exports.RECORDS_ERROR_CODES = require_runtime_capabilities.RECORDS_ERROR_CODES;
|
|
162376
162190
|
exports.RECORD_BATCH_MAX = require_runtime_capabilities.RECORD_BATCH_MAX;
|
|
@@ -163379,11 +163193,10 @@ exports.buildVocabularySlice = buildVocabularySlice;
|
|
|
163379
163193
|
exports.builtCapabilityBlockers = builtCapabilityBlockers;
|
|
163380
163194
|
exports.builtinAutomationTemplate = builtinAutomationTemplate;
|
|
163381
163195
|
exports.builtinRemoteComponent = builtinRemoteComponent;
|
|
163382
|
-
exports.
|
|
163196
|
+
exports.bundledDominevo = bundledDominevo;
|
|
163383
163197
|
exports.buttonCapability = buttonCapability;
|
|
163384
163198
|
exports.calendarEventLocalSpan = calendarEventLocalSpan;
|
|
163385
163199
|
exports.calendarEventOnLocalDay = calendarEventOnLocalDay;
|
|
163386
|
-
exports.calendarRecordId = calendarRecordId;
|
|
163387
163200
|
exports.calendarSourceCapability = calendarSourceCapability;
|
|
163388
163201
|
exports.calendarsCapability = calendarsCapability;
|
|
163389
163202
|
exports.cameraCredentialsCapability = cameraCredentialsCapability;
|
|
@@ -163394,7 +163207,7 @@ exports.cameraScopedStepSettings = cameraScopedStepSettings;
|
|
|
163394
163207
|
exports.cameraSensorRefKey = cameraSensorRefKey;
|
|
163395
163208
|
exports.cameraStreamsCapability = cameraStreamsCapability;
|
|
163396
163209
|
exports.canConvertUnit = require_convert.canConvertUnit;
|
|
163397
|
-
exports.canonicalEgressPlan = canonicalEgressPlan;
|
|
163210
|
+
exports.canonicalEgressPlan = require_wake_on_lan.canonicalEgressPlan;
|
|
163398
163211
|
exports.canonicalIconKey = canonicalIconKey;
|
|
163399
163212
|
exports.canonicalJson = canonicalJson;
|
|
163400
163213
|
exports.canonicalStoredBlockTarget = require_wake_on_lan.canonicalStoredBlockTarget;
|
|
@@ -163696,8 +163509,7 @@ exports.edgetpuDelegateDevice = require_runtime_capabilities.edgetpuDelegateDevi
|
|
|
163696
163509
|
exports.effectConditionHolds = require_runtime_capabilities.effectConditionHolds;
|
|
163697
163510
|
exports.effectiveRefreshIntervalMs = effectiveRefreshIntervalMs;
|
|
163698
163511
|
exports.effectiveStepSettings = effectiveStepSettings;
|
|
163699
|
-
exports.
|
|
163700
|
-
exports.egressTransportFromRequest = egressTransportFromRequest;
|
|
163512
|
+
exports.egressTransportFromRequest = require_wake_on_lan.egressTransportFromRequest;
|
|
163701
163513
|
exports.electByShare = electByShare;
|
|
163702
163514
|
exports.electByShareWithAffinity = electByShareWithAffinity;
|
|
163703
163515
|
exports.eligibleUnderBenchmark = eligibleUnderBenchmark;
|
|
@@ -164194,7 +164006,6 @@ exports.motionTriggerCapability = motionTriggerCapability;
|
|
|
164194
164006
|
exports.motionZonesCapability = motionZonesCapability;
|
|
164195
164007
|
exports.moveBodySwitchToRegistry = require_runtime_capabilities.moveBodySwitchToRegistry;
|
|
164196
164008
|
exports.moveBrokerLinksToConnections = moveBrokerLinksToConnections;
|
|
164197
|
-
exports.moveCalendarIdsToRecords = moveCalendarIdsToRecords;
|
|
164198
164009
|
exports.moveCropRect = moveCropRect;
|
|
164199
164010
|
exports.moveGroup = moveGroup;
|
|
164200
164011
|
exports.moveIntegrationRowsToRecords = moveIntegrationRowsToRecords;
|