@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/client.mjs
CHANGED
|
@@ -613,11 +613,11 @@ method(z.object({}), z.array(TargetKindSchema)), method(z.object({
|
|
|
613
613
|
//#region src/app-bridge.ts
|
|
614
614
|
/**
|
|
615
615
|
* The `postMessage` bridge between the viewer shell and an embedded app (D1096).
|
|
616
|
-
* Every message is `{
|
|
616
|
+
* Every message is `{ dominevo: 'app-bridge', v: 1, type, ... }`; anything else
|
|
617
617
|
* parses to `null` and is ignored.
|
|
618
618
|
*/
|
|
619
619
|
var Envelope = {
|
|
620
|
-
|
|
620
|
+
dominevo: z.literal("app-bridge"),
|
|
621
621
|
v: z.literal(1)
|
|
622
622
|
};
|
|
623
623
|
var ShellToAppMessageSchema = z.discriminatedUnion("type", [
|
|
@@ -20220,10 +20220,7 @@ var ICON_META = [
|
|
|
20220
20220
|
], ["magnifying glass", "plus"]]
|
|
20221
20221
|
];
|
|
20222
20222
|
/** Keys whose viewer module (`lucide-react-native/icons/<module>`) is not the key. */
|
|
20223
|
-
var ICON_VIEWER_MODULES = {
|
|
20224
|
-
"text-select": "square-dashed-text",
|
|
20225
|
-
"waves": "waves-horizontal"
|
|
20226
|
-
};
|
|
20223
|
+
var ICON_VIEWER_MODULES = {};
|
|
20227
20224
|
/** Old spelling → canonical key, for ids both packages still accept. */
|
|
20228
20225
|
var ICON_ALIASES = {
|
|
20229
20226
|
"activity-square": "square-activity",
|
|
@@ -21679,7 +21676,7 @@ var AppLoginPathSchema = z.discriminatedUnion("kind", [z.object({ kind: z.litera
|
|
|
21679
21676
|
/** Signature algorithm of every device credential: ECDSA, curve P-256, SHA-256. */
|
|
21680
21677
|
var DEVICE_CERT_SIGNATURE = "ecdsa-p256-sha256";
|
|
21681
21678
|
/** First line of every signed message; a change of format bumps the version. */
|
|
21682
|
-
var DEVICE_SIGNATURE_MESSAGE_VERSION = "
|
|
21679
|
+
var DEVICE_SIGNATURE_MESSAGE_VERSION = "dominevo-device-cert-v1";
|
|
21683
21680
|
z.enum([
|
|
21684
21681
|
"login",
|
|
21685
21682
|
"renew",
|
|
@@ -21689,7 +21686,7 @@ var DEVICE_CERT_RENEW_WINDOW_DAYS = 30;
|
|
|
21689
21686
|
/**
|
|
21690
21687
|
* The exact bytes a device signs (UTF-8, `\n` separators, no trailing newline):
|
|
21691
21688
|
*
|
|
21692
|
-
*
|
|
21689
|
+
* dominevo-device-cert-v1
|
|
21693
21690
|
* <login|renew>
|
|
21694
21691
|
* <origin> the hub origin returned by `getDeviceChallenge`
|
|
21695
21692
|
* <nonce>
|
|
@@ -21706,13 +21703,8 @@ function buildDeviceSignatureMessage(input) {
|
|
|
21706
21703
|
input.nonce
|
|
21707
21704
|
].join("\n");
|
|
21708
21705
|
}
|
|
21709
|
-
/** The app schemes an enrollment link may carry: the
|
|
21710
|
-
var ENROLLMENT_PROTOCOLS = [
|
|
21711
|
-
"dominevo:",
|
|
21712
|
-
"dominevo.dev:",
|
|
21713
|
-
"camstack:",
|
|
21714
|
-
"camstack.dev:"
|
|
21715
|
-
];
|
|
21706
|
+
/** The app schemes an enrollment link may carry: the app and its dev client. */
|
|
21707
|
+
var ENROLLMENT_PROTOCOLS = ["dominevo:", "dominevo.dev:"];
|
|
21716
21708
|
/** The deep link a QR carries: `dominevo://enroll?hub=<origin>&code=<code>`. */
|
|
21717
21709
|
function buildDeviceEnrollmentLink(input) {
|
|
21718
21710
|
const query = new URLSearchParams();
|
|
@@ -22469,14 +22461,14 @@ var AUDIO_GRADIENT_ALPHAS = [
|
|
|
22469
22461
|
1
|
|
22470
22462
|
];
|
|
22471
22463
|
var PALETTE_PRESET_IDS = [
|
|
22472
|
-
"
|
|
22464
|
+
"dominevo",
|
|
22473
22465
|
"high-contrast",
|
|
22474
22466
|
"okabe-ito"
|
|
22475
22467
|
];
|
|
22476
22468
|
//#endregion
|
|
22477
22469
|
//#region src/catalogs/display-palette-tables.ts
|
|
22478
22470
|
/** Frozen palette tables (D939). The spec refuses a table that breaks the rule. */
|
|
22479
|
-
var
|
|
22471
|
+
var DOMINEVO_HEX = {
|
|
22480
22472
|
motion: "#d946ef",
|
|
22481
22473
|
audio: "#059eb8",
|
|
22482
22474
|
recording: "#ef4444",
|
|
@@ -22532,7 +22524,7 @@ var CAMSTACK_HEX = {
|
|
|
22532
22524
|
doorbell: "#0087ab",
|
|
22533
22525
|
"appliance-cycle": "#2a8c8c"
|
|
22534
22526
|
};
|
|
22535
|
-
var
|
|
22527
|
+
var DOMINEVO_FALLBACK = [
|
|
22536
22528
|
"#b34dc7",
|
|
22537
22529
|
"#1d7d34",
|
|
22538
22530
|
"#db6b6c",
|
|
@@ -22744,15 +22736,15 @@ function preset(id, name, hexes, fallbacks) {
|
|
|
22744
22736
|
};
|
|
22745
22737
|
}
|
|
22746
22738
|
var DISPLAY_PRESETS = [
|
|
22747
|
-
preset("
|
|
22739
|
+
preset("dominevo", "Dominevo", DOMINEVO_HEX, DOMINEVO_FALLBACK),
|
|
22748
22740
|
preset("high-contrast", "High contrast", HIGH_CONTRAST_HEX, HIGH_CONTRAST_FALLBACK),
|
|
22749
22741
|
preset("okabe-ito", "Colour-blind safe", OKABE_ITO_HEX, OKABE_ITO_FALLBACK)
|
|
22750
22742
|
];
|
|
22751
22743
|
function presetById(id) {
|
|
22752
22744
|
return DISPLAY_PRESETS.find((item) => item.id === id);
|
|
22753
22745
|
}
|
|
22754
|
-
function
|
|
22755
|
-
const presetRow = presetById("
|
|
22746
|
+
function bundledDominevo() {
|
|
22747
|
+
const presetRow = presetById("dominevo");
|
|
22756
22748
|
if (presetRow === void 0) throw new Error("Dominevo preset missing");
|
|
22757
22749
|
return readyOf(presetRow, "unconfigured", false);
|
|
22758
22750
|
}
|
|
@@ -23492,7 +23484,7 @@ for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set
|
|
|
23492
23484
|
*
|
|
23493
23485
|
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
23494
23486
|
*/
|
|
23495
|
-
var BUNDLED_PALETTE =
|
|
23487
|
+
var BUNDLED_PALETTE = bundledDominevo();
|
|
23496
23488
|
function kindColor(kind) {
|
|
23497
23489
|
return paintHex(BUNDLED_PALETTE.swatches, BUNDLED_PALETTE.fallbacks, kind);
|
|
23498
23490
|
}
|
|
@@ -26125,7 +26117,7 @@ var ClipSchema = z.object({
|
|
|
26125
26117
|
* A URL that MAY produce this clip's still, asked only for rows actually on
|
|
26126
26118
|
* screen. The opposite of {@link ClipSchema.thumbnail}: that one is VOUCHED
|
|
26127
26119
|
* (a JPEG is already on disk), this one is an offer. The route answers 200
|
|
26128
|
-
* with the image, or 204 with `x-
|
|
26120
|
+
* with the image, or 204 with `x-dominevo-reason` when it could not mint one
|
|
26129
26121
|
* — a surface latches that refusal to the instant rather than retrying.
|
|
26130
26122
|
*
|
|
26131
26123
|
* Never both: a clip with a vouched `thumbnail` needs no mint.
|
|
@@ -33849,17 +33841,17 @@ function nodePickerItems(nodes) {
|
|
|
33849
33841
|
* The kernel and builtins ship inside it, so there is no separate framework
|
|
33850
33842
|
* package to announce. `@dominevo/types` / `@dominevo/sdk` are framework
|
|
33851
33843
|
* packages for upload routing but are never announced, so they are NOT here.
|
|
33852
|
-
* - `
|
|
33844
|
+
* - `dominevo-wrapper` — `wrapper-update-available` (`WRAPPER_PACKAGE_NAME`,
|
|
33853
33845
|
* `wrapper-update-checker.ts`).
|
|
33854
33846
|
*
|
|
33855
33847
|
* Types cannot import those producers; the backend spec
|
|
33856
33848
|
* `core/updates/__tests__/update-event-package-names.spec.ts` pins each literal
|
|
33857
33849
|
* to its producer constant. This is a picker list, never a routing list.
|
|
33858
33850
|
*/
|
|
33859
|
-
var NC_UPDATE_EVENT_PACKAGE_NAMES = ["@dominevo/server", "
|
|
33851
|
+
var NC_UPDATE_EVENT_PACKAGE_NAMES = ["@dominevo/server", "dominevo-wrapper"];
|
|
33860
33852
|
var UPDATE_EVENT_PACKAGE_TYPE = {
|
|
33861
33853
|
"@dominevo/server": "server",
|
|
33862
|
-
"
|
|
33854
|
+
"dominevo-wrapper": "wrapper"
|
|
33863
33855
|
};
|
|
33864
33856
|
function isUpdateEventPackageName(name) {
|
|
33865
33857
|
return NC_UPDATE_EVENT_PACKAGE_NAMES.some((pinned) => pinned === name);
|
|
@@ -34355,4 +34347,4 @@ var TimelapseRuleSchema = TimelapseRuleInputSchema.extend({
|
|
|
34355
34347
|
updatedAt: z.number()
|
|
34356
34348
|
});
|
|
34357
34349
|
//#endregion
|
|
34358
|
-
export { APPLE_SA_TO_MACRO, AUDIO_MACRO_LABELS, AlarmArmModeSchema, AppBridgeMessageSchema, CLIP_BROKER_PACED_RATES, COCO_TO_MACRO, CONTAINER_PRIMARY_CHILD_RULES, CamProfileSchema, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DEFINITIVE_DEVICE_REFUSALS, DEVICE_CERT_RENEW_WINDOW_DAYS, DEVICE_CERT_SIGNATURE, DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE, DEVICE_REFRESH_REFUSAL_PREFIX, DEVICE_SIGNATURE_MESSAGE_VERSION, DeviceType, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_TAXONOMY, ICON_CATEGORIES, ICON_ENTRIES, ICON_KEYS, ICON_VIEWER_MODULES, IconKeySchema, LOCATION_ICON_FALLBACK, MACRO_LABELS, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CAMERA_SCOPE_CAP_NAME, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_GROUPING_DEFAULT_SEC, NC_GROUPING_MAX_SEC, NC_GROUPING_MIN_SEC, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SYSTEM_EVENT_CLASS_SPECS, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, NcAlarmConfigSchema, NcAlarmSensorsSchema, NcAlarmSettingsPatchSchema, NcHistoryEntrySchema, NcRuleLastRunsSchema, NodeDirectorySchema, RECORDING_EXPORT_MAX_READ_BYTES, REMOTE_CUSTOM_ROLE_ICON, REMOTE_ROLE_VOCABULARY, RETRAIN_REVIEW_ADJUSTED_IOU, RETRAIN_REVIEW_MATCH_IOU, RETRAIN_REVIEW_STATUSES, RETRAIN_REVISION_CONFLICT, SystemMirror, TIMELAPSE_DENSE_FLOOR_SEC, TimelapseRuleSchema, YAMNET_TO_MACRO, alarmDeviceBlocksArming, alarmDeviceSecureOnArm, alarmPatchLanded, buildDeviceEnrollmentLink, buildDeviceSignatureMessage, buildSubjectPath,
|
|
34350
|
+
export { APPLE_SA_TO_MACRO, AUDIO_MACRO_LABELS, AlarmArmModeSchema, AppBridgeMessageSchema, CLIP_BROKER_PACED_RATES, COCO_TO_MACRO, CONTAINER_PRIMARY_CHILD_RULES, CamProfileSchema, DEFAULT_TIMELAPSE_PREVIEW_TEXT, DEFINITIVE_DEVICE_REFUSALS, DEVICE_CERT_RENEW_WINDOW_DAYS, DEVICE_CERT_SIGNATURE, DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE, DEVICE_REFRESH_REFUSAL_PREFIX, DEVICE_SIGNATURE_MESSAGE_VERSION, DeviceType, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_TAXONOMY, ICON_CATEGORIES, ICON_ENTRIES, ICON_KEYS, ICON_VIEWER_MODULES, IconKeySchema, LOCATION_ICON_FALLBACK, MACRO_LABELS, NC_ALARM_DELAY_MAX_SEC, NC_ALARM_SENSORS_MAX, NC_ALARM_SYSTEM_EVENT_KINDS, NC_ALARM_TRIGGERED_MAX_SEC, NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS, NC_CAMERA_SCOPE_CAP_NAME, NC_CONSUMABLE_LOW_PERCENT_DEFAULT, NC_CONSUMABLE_LOW_PERCENT_MAX, NC_GROUPING_DEFAULT_SEC, NC_GROUPING_MAX_SEC, NC_GROUPING_MIN_SEC, NC_RULE_EDITOR_SECTION_ORDER, NC_RULE_KIND_SPECS, NC_SENSOR_TRANSITION_UNSUPPORTED_REASON, NC_SYSTEM_EVENT_CLASS_SPECS, NC_SYSTEM_EVENT_FAMILY_FILTERS, NC_SYSTEM_EVENT_KIND_GROUP_SPECS, NC_SYSTEM_EVENT_SUMMARY_FAMILIES, NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS, NC_TEMPLATE_VARS, NcAlarmConfigSchema, NcAlarmSensorsSchema, NcAlarmSettingsPatchSchema, NcHistoryEntrySchema, NcRuleLastRunsSchema, NodeDirectorySchema, RECORDING_EXPORT_MAX_READ_BYTES, REMOTE_CUSTOM_ROLE_ICON, REMOTE_ROLE_VOCABULARY, RETRAIN_REVIEW_ADJUSTED_IOU, RETRAIN_REVIEW_MATCH_IOU, RETRAIN_REVIEW_STATUSES, RETRAIN_REVISION_CONFLICT, SystemMirror, TIMELAPSE_DENSE_FLOOR_SEC, TimelapseRuleSchema, YAMNET_TO_MACRO, alarmDeviceBlocksArming, alarmDeviceSecureOnArm, alarmPatchLanded, buildDeviceEnrollmentLink, buildDeviceSignatureMessage, buildSubjectPath, bundledDominevo, canonicalIconKey, classifyRetrainReview, conditionVisibleForKind, createSystemProxy, deviceIconKey, deviceRefusalFromMessage, deviceTypeIconKey, droppedConditionsForKind, expandSystemEventClasses, iconCategoryLabel, iconEntry, iconsInCategory, isDefinitiveDeviceRefusal, isDrawableSubjectPath, isHeldBackTemplateVar, isIconKey, isSystemRuleKind, kindsForDiscriminator, knownValues, locationIconKey, nodePickerItems, packagePickerItems, paintHex, paletteResultSchema, parseAppBridgeMessage, parseDeviceEnrollmentLink, parseRetrainRevisionConflict, pickerForCondition, pickerForRuleClasses, primaryChildPreferenceOf, projectSubjectPath, remoteRoleIcon, remoteRoleLabel, remoteRoleLegend, resolveContainerPrimaryChild, resolveIconKey, resolveModeDelays, retrainBoxIou, retrainRevisionConflictMessage, ruleDeviceCompatCapNames, ruleEditorSectionsForKind, ruleGroupingApplies, ruleKindOf, ruleKindSpec, ruleSeedForSection, searchIcons, sensorTransitionNeverFires, sensorTransitionOffered, stateLabel, stepActuatesAlarmPanel, stepPullsAlarmTrigger, subjectPathSampleFromBox, subjectPathSvgPoints, summarizeReview, systemEventClassKinds, systemEventClassesFor, systemEventDeliveryProblems, systemEventFilterAppliesToAnyKind, systemEventKindsOfFamily, systemFamilyOfKind, templateCarriesSummary, templateVarDeliveryApplies, templateVarKindApplies, templateVarSystemEventApplies, withSystemEventClasses };
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const HF_REPO = "
|
|
2
|
-
export declare const HF_BASE_URL = "https://huggingface.co/
|
|
1
|
+
export declare const HF_REPO = "Dominevo/dominevo-models";
|
|
2
|
+
export declare const HF_BASE_URL = "https://huggingface.co/Dominevo/dominevo-models/resolve/main";
|
|
3
3
|
/**
|
|
4
4
|
* The ONE default session-JWT lifetime.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IScopedLogger } from '../interfaces/logging.js';
|
|
2
2
|
/** The path override (a library PATH, never a secret). */
|
|
3
|
-
export declare const EDGETPU_LIB_ENV = "
|
|
3
|
+
export declare const EDGETPU_LIB_ENV = "DOMINEVO_EDGETPU_LIB";
|
|
4
4
|
/** The pinned feranick release. Changing it is the delegate version change. */
|
|
5
5
|
export declare const EDGETPU_DELEGATE_RELEASE: '16.0TF2.17.1-1';
|
|
6
6
|
/** Where the hub image's installer has always put the delegate. */
|
|
@@ -38,9 +38,9 @@ export interface EdgetpuDelegateChoice {
|
|
|
38
38
|
}
|
|
39
39
|
export interface EdgetpuDelegateLookup {
|
|
40
40
|
readonly platform: NodeJS.Platform;
|
|
41
|
-
/** The node data root (`
|
|
41
|
+
/** The node data root (`DOMINEVO_DATA`), or `undefined` when unknown. */
|
|
42
42
|
readonly dataDir: string | undefined;
|
|
43
|
-
/** `
|
|
43
|
+
/** `DOMINEVO_EDGETPU_LIB`, verbatim. */
|
|
44
44
|
readonly override: string | undefined;
|
|
45
45
|
readonly exists: (path: string) => boolean;
|
|
46
46
|
}
|
|
@@ -65,7 +65,7 @@ export type EdgetpuDelegateResult = {
|
|
|
65
65
|
* without on this line; `installPythonRequirements` stages it after pip.
|
|
66
66
|
* (`ai-edge-litert` imports without the delegate and is useless without it.)
|
|
67
67
|
*/
|
|
68
|
-
export declare const EDGETPU_DELEGATE_DIRECTIVE = "#
|
|
68
|
+
export declare const EDGETPU_DELEGATE_DIRECTIVE = "# dominevo-native-dep: edgetpu-delegate";
|
|
69
69
|
export declare function declaresEdgetpuDelegate(requirementsText: string): boolean;
|
|
70
70
|
export interface EnsureEdgetpuDelegateOptions {
|
|
71
71
|
readonly env?: NodeJS.ProcessEnv;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* ## The rule
|
|
5
5
|
*
|
|
6
|
-
* 1. `
|
|
6
|
+
* 1. `DOMINEVO_FFMPEG_PATH`, when the operator set it and it exists. Pointing
|
|
7
7
|
* at your own build is a deliberate act and it wins over everything.
|
|
8
8
|
* 2. The pinned build this node has already downloaded, named by release
|
|
9
9
|
* (`ffmpeg-<release>`), in `<dataDir>/deps`.
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* rollback is a file that is already on disk rather than a download.
|
|
40
40
|
*/
|
|
41
41
|
/** Operator override. Unset on every node unless a human deliberately set it. */
|
|
42
|
-
export declare const FFMPEG_PATH_ENV = "
|
|
42
|
+
export declare const FFMPEG_PATH_ENV = "DOMINEVO_FFMPEG_PATH";
|
|
43
43
|
export type FfmpegBinaryOrigin = 'override' | 'downloaded';
|
|
44
44
|
export interface FfmpegBinaryChoice {
|
|
45
45
|
readonly origin: FfmpegBinaryOrigin;
|
|
@@ -3,7 +3,7 @@ import type { IScopedLogger } from '../interfaces/logging.js';
|
|
|
3
3
|
* The ffmpeg this node runs, downloading the pinned build if it is not here
|
|
4
4
|
* yet, and reporting what it got.
|
|
5
5
|
*
|
|
6
|
-
* Order: the operator's `
|
|
6
|
+
* Order: the operator's `DOMINEVO_FFMPEG_PATH` → the pinned build already on
|
|
7
7
|
* disk → download it. No PATH, no image copy, no per-platform special case —
|
|
8
8
|
* see `ffmpeg-binary-source.ts` for why the image stopped being special after
|
|
9
9
|
* exactly one day.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ICON_CATALOG_SOURCE: {
|
|
2
2
|
readonly lucideReact: '0.576.0';
|
|
3
|
-
readonly lucideReactNative: '1.
|
|
3
|
+
readonly lucideReactNative: '1.83.0';
|
|
4
4
|
readonly metadata: 'lucide-icons/lucide@0.576.0 icons/*.json';
|
|
5
5
|
};
|
|
6
6
|
/** Lucide category ids, alphabetical. `ICON_META` indexes into this. */
|
|
@@ -10,10 +10,7 @@ export declare const ICON_KEYS: readonly ['a-arrow-down', 'a-arrow-up', 'a-large
|
|
|
10
10
|
/** Parallel to `ICON_KEYS`: [category indexes (first = primary), English tags]. */
|
|
11
11
|
export declare const ICON_META: readonly (readonly [readonly number[], readonly string[]])[];
|
|
12
12
|
/** Keys whose viewer module (`lucide-react-native/icons/<module>`) is not the key. */
|
|
13
|
-
export declare const ICON_VIEWER_MODULES: {
|
|
14
|
-
readonly 'text-select': 'square-dashed-text';
|
|
15
|
-
readonly waves: 'waves-horizontal';
|
|
16
|
-
};
|
|
13
|
+
export declare const ICON_VIEWER_MODULES: {};
|
|
17
14
|
/** Old spelling → canonical key, for ids both packages still accept. */
|
|
18
15
|
export declare const ICON_ALIASES: {
|
|
19
16
|
readonly 'activity-square': 'square-activity';
|
|
@@ -119,7 +119,7 @@ export declare enum EventCategory {
|
|
|
119
119
|
AddonLoadRecovered = "addon.load-recovered",
|
|
120
120
|
/**
|
|
121
121
|
* An addon is RUNNING although its installed package is below what the
|
|
122
|
-
* running server requires (`
|
|
122
|
+
* running server requires (`dominevo.requires.addons` of the server, or the
|
|
123
123
|
* addon's own `requires.server`). Raised once per streak by the unsupported-
|
|
124
124
|
* addon tracker, on the hub and on agents; AlertCenter turns it into one
|
|
125
125
|
* operator alert per node and package. The addon is never held back for it.
|
|
@@ -607,7 +607,7 @@ export declare enum EventCategory {
|
|
|
607
607
|
*/
|
|
608
608
|
MetricsNodeResourcesSnapshot = "metrics.node-resources-snapshot",
|
|
609
609
|
/**
|
|
610
|
-
* Periodic per-node process-tree snapshot (
|
|
610
|
+
* Periodic per-node process-tree snapshot (dominevo-related pids
|
|
611
611
|
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
612
612
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
613
613
|
* without polling `metricsProvider.listNodeProcesses`.
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_event_category = require("./event-category-DhlUHlM5.js");
|
|
3
3
|
//#region src/enums/event-category-catalog.ts
|
|
4
4
|
/**
|
|
5
5
|
* The event-category catalogue: what an operator-facing surface (a picker, the
|
package/dist/enums.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-
|
|
1
|
+
import { r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-CwprdwEL.mjs";
|
|
2
2
|
//#region src/enums/event-category-catalog.ts
|
|
3
3
|
/**
|
|
4
4
|
* The event-category catalogue: what an operator-facing surface (a picker, the
|
|
@@ -1103,26 +1103,6 @@ var BaseAddon = class {
|
|
|
1103
1103
|
} catch {}
|
|
1104
1104
|
}
|
|
1105
1105
|
/**
|
|
1106
|
-
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
1107
|
-
*
|
|
1108
|
-
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
1109
|
-
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
1110
|
-
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
1111
|
-
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
1112
|
-
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
1113
|
-
* whose real data dir differs (e.g. the macOS electron agent).
|
|
1114
|
-
*
|
|
1115
|
-
* `node:path`/`node:fs` are imported dynamically so the `@dominevo/types` root
|
|
1116
|
-
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
1117
|
-
*/
|
|
1118
|
-
async resolveModelsDir() {
|
|
1119
|
-
const { join } = await import("node:path");
|
|
1120
|
-
const { promises: fsp } = await import("node:fs");
|
|
1121
|
-
const dir = join(this.ctx.nodeDataDir, "models");
|
|
1122
|
-
await fsp.mkdir(dir, { recursive: true });
|
|
1123
|
-
return dir;
|
|
1124
|
-
}
|
|
1125
|
-
/**
|
|
1126
1106
|
* Access the runtime capability registry for in-process provider lookups.
|
|
1127
1107
|
* Returns null if the registry is not available (e.g. on agents).
|
|
1128
1108
|
* Used by addons that consume other capabilities directly (snapshot, stream-broker, enrichment).
|
|
@@ -1537,14 +1517,14 @@ function collectFieldKeys(fields) {
|
|
|
1537
1517
|
return collected;
|
|
1538
1518
|
}
|
|
1539
1519
|
/**
|
|
1540
|
-
* Normalize an `
|
|
1520
|
+
* Normalize an `IDominevoAddon.initialize()` return value into the
|
|
1541
1521
|
* `AddonInitResult` envelope. Arrays are wrapped into `{ providers }`;
|
|
1542
1522
|
* envelopes pass through; void stays void.
|
|
1543
1523
|
*
|
|
1544
1524
|
* Exported so the kernel boot path and the backend addon registry can
|
|
1545
1525
|
* share the same normalizer instead of duplicating the shim. Addons that
|
|
1546
1526
|
* extend `BaseAddon` already emit the envelope, so this helper is only a
|
|
1547
|
-
* safety net for direct `
|
|
1527
|
+
* safety net for direct `IDominevoAddon` implementations (mostly tests).
|
|
1548
1528
|
*/
|
|
1549
1529
|
function normalizeAddonInitResult(result) {
|
|
1550
1530
|
if (result == null) return;
|
|
@@ -2,7 +2,7 @@ import { isInstanceOn, recordInstanceSwitch } from "./instance-switches.mjs";
|
|
|
2
2
|
import { optionalLinkField } from "./instance-link-meta.mjs";
|
|
3
3
|
import { RecordIntegrationInstances } from "./record-integration-instances.mjs";
|
|
4
4
|
import { composeInstanceKinds } from "./compose-instance-kinds.mjs";
|
|
5
|
-
import { forbiddenError } from "../i18n/
|
|
5
|
+
import { forbiddenError } from "../i18n/dominevo-error.mjs";
|
|
6
6
|
import { TargetSchema } from "../capabilities/notification-output.cap.mjs";
|
|
7
7
|
import { defineEntryKind } from "../records/entry-kind.mjs";
|
|
8
8
|
import { instanceSourceOverApi, instancesOfCap } from "./instances-of-cap.mjs";
|
|
@@ -41,7 +41,7 @@ function secretMapPatch(value) {
|
|
|
41
41
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
42
42
|
const out = {};
|
|
43
43
|
for (const [key, entry] of Object.entries(value)) if (entry === null || isSecretClear(entry)) out[key] = null;
|
|
44
|
-
else if (typeof entry === "string" && entry !== "" && entry !== "
|
|
44
|
+
else if (typeof entry === "string" && entry !== "" && entry !== "__dominevo_redacted__" && !isSecretFieldView(entry)) out[key] = entry;
|
|
45
45
|
return Object.keys(out).length > 0 ? out : null;
|
|
46
46
|
}
|
|
47
47
|
var RecordIntegrationInstances = class {
|
|
@@ -232,7 +232,7 @@ var RecordIntegrationInstances = class {
|
|
|
232
232
|
if (entries !== null) patch[key] = entries;
|
|
233
233
|
} else if (!this.secretKeys.has(key)) patch[key] = value;
|
|
234
234
|
else if (isSecretClear(value)) patch[key] = null;
|
|
235
|
-
else if (typeof value === "string" && value !== "" && value !== "
|
|
235
|
+
else if (typeof value === "string" && value !== "" && value !== "__dominevo_redacted__" && !isSecretFieldView(value)) patch[key] = value;
|
|
236
236
|
}
|
|
237
237
|
return patch;
|
|
238
238
|
}
|
package/dist/esm/addon.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { secretViewsOf } from "./records/secret-views.mjs";
|
|
|
11
11
|
import { isInstanceSwitchesUnreadError } from "./addon/instance-switches-unread-error.mjs";
|
|
12
12
|
import { SCOPED_SETTINGS_SCOPES, nodeIdOfScopedKey, resolveDeviceSettings, resolvedValues } from "./addon/scoped-settings.mjs";
|
|
13
13
|
import { BaseAddon, normalizeAddonInitResult } from "./addon/base-addon.mjs";
|
|
14
|
-
import { ErrorI18nPayloadSchema, readErrorI18n } from "./i18n/
|
|
14
|
+
import { ErrorI18nPayloadSchema, readErrorI18n } from "./i18n/dominevo-error.mjs";
|
|
15
15
|
import { expandCapMethods } from "./capabilities/capability-definition.mjs";
|
|
16
16
|
import { collectZodSecretPaths, isZodSecret } from "./device/zod-secret.mjs";
|
|
17
17
|
import { EntryDescriptorSchema, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordRetentionSchema, StoredRecordKindDeclarationSchema, assertValidDeclaration, declarationsOf, defineRecordKinds } from "./records/record-kind.mjs";
|
package/dist/esm/app-bridge.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import { z } from "zod";
|
|
|
2
2
|
//#region src/app-bridge.ts
|
|
3
3
|
/**
|
|
4
4
|
* The `postMessage` bridge between the viewer shell and an embedded app (D1096).
|
|
5
|
-
* Every message is `{
|
|
5
|
+
* Every message is `{ dominevo: 'app-bridge', v: 1, type, ... }`; anything else
|
|
6
6
|
* parses to `null` and is ignored.
|
|
7
7
|
*/
|
|
8
8
|
var Envelope = {
|
|
9
|
-
|
|
9
|
+
dominevo: /* @__PURE__ */ z.literal("app-bridge"),
|
|
10
10
|
v: /* @__PURE__ */ z.literal(1)
|
|
11
11
|
};
|
|
12
12
|
var ShellToAppMessageSchema = /* @__PURE__ */ z.discriminatedUnion("type", [
|
|
@@ -10,16 +10,10 @@
|
|
|
10
10
|
* refused by the other.
|
|
11
11
|
*
|
|
12
12
|
* `dominevo` is the production app; `dominevo.dev` the dev client
|
|
13
|
-
* (`APP_VARIANT=development`).
|
|
14
|
-
* previous store app is still installed against production hubs. Exact match after canonicalisation — no
|
|
13
|
+
* (`APP_VARIANT=development`). Exact match after canonicalisation — no
|
|
15
14
|
* query or fragment riders, no http(s).
|
|
16
15
|
*/
|
|
17
|
-
var APP_AUTH_CALLBACK_URLS = [
|
|
18
|
-
"dominevo://auth-callback",
|
|
19
|
-
"dominevo.dev://auth-callback",
|
|
20
|
-
"camstack://auth-callback",
|
|
21
|
-
"camstack.dev://auth-callback"
|
|
22
|
-
];
|
|
16
|
+
var APP_AUTH_CALLBACK_URLS = ["dominevo://auth-callback", "dominevo.dev://auth-callback"];
|
|
23
17
|
/** Longest raw callback value considered at all. */
|
|
24
18
|
var APP_AUTH_CALLBACK_MAX_LENGTH = 512;
|
|
25
19
|
/**
|
|
@@ -37,7 +31,7 @@ function parseAppAuthCallback(raw) {
|
|
|
37
31
|
const canonical = canonicalizeAppCallback(raw);
|
|
38
32
|
return APP_AUTH_CALLBACK_URLS.includes(canonical) ? canonical : null;
|
|
39
33
|
}
|
|
40
|
-
/** True for a URL with a scheme (`
|
|
34
|
+
/** True for a URL with a scheme (`dominevo://…`, `https://…`) — not a hub-relative path. */
|
|
41
35
|
function hasUrlScheme(url) {
|
|
42
36
|
return /^[a-z][a-z0-9+.-]*:/i.test(url);
|
|
43
37
|
}
|
|
@@ -124,13 +124,13 @@ var CREDENTIAL_TOKEN_KIND = "credential";
|
|
|
124
124
|
* can never be replayed as a person's session. Only the credential verifier's
|
|
125
125
|
* own door (`verifyCredentialToken`) accepts it.
|
|
126
126
|
*/
|
|
127
|
-
var CREDENTIAL_TOKEN_AUDIENCE = "
|
|
127
|
+
var CREDENTIAL_TOKEN_AUDIENCE = "dominevo:credential";
|
|
128
128
|
/** Does a verified JWT payload belong to the minted-token family? */
|
|
129
129
|
function isCredentialTokenPayload(payload) {
|
|
130
130
|
if (payload === null || typeof payload !== "object") return false;
|
|
131
131
|
const kind = Reflect.get(payload, "kind");
|
|
132
132
|
const aud = Reflect.get(payload, "aud");
|
|
133
|
-
return kind === "credential" || aud === "
|
|
133
|
+
return kind === "credential" || aud === "dominevo:credential" || Array.isArray(aud) && aud.includes("dominevo:credential");
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
136
|
* The claims of a unified token (`auth.mintToken`). It carries no `exp`: its
|
|
@@ -18,7 +18,7 @@ import { z } from "zod";
|
|
|
18
18
|
/** Signature algorithm of every device credential: ECDSA, curve P-256, SHA-256. */
|
|
19
19
|
var DEVICE_CERT_SIGNATURE = "ecdsa-p256-sha256";
|
|
20
20
|
/** First line of every signed message; a change of format bumps the version. */
|
|
21
|
-
var DEVICE_SIGNATURE_MESSAGE_VERSION = "
|
|
21
|
+
var DEVICE_SIGNATURE_MESSAGE_VERSION = "dominevo-device-cert-v1";
|
|
22
22
|
/** What a signature is for. A login signature can never be replayed as a renewal. */
|
|
23
23
|
var DeviceSignaturePurposeSchema = /* @__PURE__ */ z.enum([
|
|
24
24
|
"login",
|
|
@@ -32,12 +32,12 @@ var DEVICE_CERT_RENEW_WINDOW_DAYS = 30;
|
|
|
32
32
|
var DEVICE_ENROLLMENT_TTL_MS = 10 * 6e4;
|
|
33
33
|
var DEVICE_NONCE_TTL_MS = 6e4;
|
|
34
34
|
/** SAN URI prefixes of a device leaf. */
|
|
35
|
-
var DEVICE_SAN_CREDENTIAL_PREFIX = "
|
|
36
|
-
var DEVICE_SAN_USER_PREFIX = "
|
|
35
|
+
var DEVICE_SAN_CREDENTIAL_PREFIX = "dominevo:credential:";
|
|
36
|
+
var DEVICE_SAN_USER_PREFIX = "dominevo:user:";
|
|
37
37
|
/**
|
|
38
38
|
* The exact bytes a device signs (UTF-8, `\n` separators, no trailing newline):
|
|
39
39
|
*
|
|
40
|
-
*
|
|
40
|
+
* dominevo-device-cert-v1
|
|
41
41
|
* <login|renew>
|
|
42
42
|
* <origin> the hub origin returned by `getDeviceChallenge`
|
|
43
43
|
* <nonce>
|
|
@@ -54,13 +54,8 @@ function buildDeviceSignatureMessage(input) {
|
|
|
54
54
|
input.nonce
|
|
55
55
|
].join("\n");
|
|
56
56
|
}
|
|
57
|
-
/** The app schemes an enrollment link may carry: the
|
|
58
|
-
var ENROLLMENT_PROTOCOLS = [
|
|
59
|
-
"dominevo:",
|
|
60
|
-
"dominevo.dev:",
|
|
61
|
-
"camstack:",
|
|
62
|
-
"camstack.dev:"
|
|
63
|
-
];
|
|
57
|
+
/** The app schemes an enrollment link may carry: the app and its dev client. */
|
|
58
|
+
var ENROLLMENT_PROTOCOLS = ["dominevo:", "dominevo.dev:"];
|
|
64
59
|
/** The deep link a QR carries: `dominevo://enroll?hub=<origin>&code=<code>`. */
|
|
65
60
|
function buildDeviceEnrollmentLink(input) {
|
|
66
61
|
const query = new URLSearchParams();
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* One name, two readers (the OIDC addon that sets it, the hub that checks it).
|
|
14
14
|
*/
|
|
15
|
-
var SSO_STATE_COOKIE = "
|
|
15
|
+
var SSO_STATE_COOKIE = "dominevo_sso_state";
|
|
16
16
|
/** Seconds the state cookie lives — the pending IdP state lasts 5 minutes, the bridge 5 more. */
|
|
17
17
|
var SSO_STATE_COOKIE_MAX_AGE_SEC = 600;
|
|
18
18
|
//#endregion
|
|
@@ -12,7 +12,7 @@ var SMTP_INBOUND_KIND = "smtp-inbound";
|
|
|
12
12
|
/** The id the first mailbox is minted under (adopt-id), so a consumer can find it again. */
|
|
13
13
|
var SMTP_INBOUND_DEFAULT_ID = "smtp-inbound-default";
|
|
14
14
|
var SMTP_INBOUND_DEFAULT_PORT = 2525;
|
|
15
|
-
var SMTP_INBOUND_DEFAULT_DOMAIN = "
|
|
15
|
+
var SMTP_INBOUND_DEFAULT_DOMAIN = "dominevo.local";
|
|
16
16
|
var SMTP_INBOUND_DEFAULT_MAX_MESSAGE_BYTES = 25 * 1024 * 1024;
|
|
17
17
|
/** The ring keeps the last N messages of one mailbox, each for at most the age below. */
|
|
18
18
|
var SMTP_INBOUND_RING_MAX_MESSAGES = 200;
|
|
@@ -22,7 +22,7 @@ import { CommandOriginClaimSchema } from "./audit/command-origin-claim.mjs";
|
|
|
22
22
|
* await api.platformProbe.getCapabilities.query(undefined, nodePin(nodeId))
|
|
23
23
|
*/
|
|
24
24
|
/** tRPC `op.context` key carrying a per-call node pin. */
|
|
25
|
-
var CAP_NODE_PIN_CONTEXT_KEY = "
|
|
25
|
+
var CAP_NODE_PIN_CONTEXT_KEY = "__dominevoNodePin";
|
|
26
26
|
/**
|
|
27
27
|
* Build the tRPC request options that pin a single capability call to `nodeId`.
|
|
28
28
|
* Pass as the second argument to `.query(input, …)` / `.mutate(input, …)`.
|
|
@@ -69,7 +69,7 @@ function readNodePin(context) {
|
|
|
69
69
|
return typeof value === "string" ? value : void 0;
|
|
70
70
|
}
|
|
71
71
|
/** tRPC `op.context` key carrying a per-call command origin claim (D1022). */
|
|
72
|
-
var CAP_COMMAND_ORIGIN_CONTEXT_KEY = "
|
|
72
|
+
var CAP_COMMAND_ORIGIN_CONTEXT_KEY = "__dominevoCommandOrigin";
|
|
73
73
|
/**
|
|
74
74
|
* Build the tRPC request options that state WHY a device command is being issued
|
|
75
75
|
* (an action run, a scheduler). Pass as the second argument to `.mutate(input, …)`;
|
|
@@ -380,7 +380,7 @@ var backupCapability = {
|
|
|
380
380
|
*/
|
|
381
381
|
listLocations: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(LocationStatSchema).readonly(), { auth: "admin" }),
|
|
382
382
|
/**
|
|
383
|
-
* Read the embedded `.
|
|
383
|
+
* Read the embedded `.dominevo-backup-manifest.json` from a
|
|
384
384
|
* previously-created archive. The manifest carries the full
|
|
385
385
|
* file/dir listing with sizes + mtimes — the readdir snapshot
|
|
386
386
|
* the UI shows in the "Contents" panel. Returns `null` when the
|
|
@@ -39,7 +39,7 @@ var ImportModelBundleInputSchema = /* @__PURE__ */ z.object({
|
|
|
39
39
|
stepId: /* @__PURE__ */ z.string().min(1),
|
|
40
40
|
/**
|
|
41
41
|
* The catalog rows to register, complete, every format URL already
|
|
42
|
-
* `
|
|
42
|
+
* `dominevo-local://<modelId>/<file>` naming a file of the bundle. One
|
|
43
43
|
* bundle may carry several rows (a base and its INT8 variant).
|
|
44
44
|
*/
|
|
45
45
|
entries: /* @__PURE__ */ z.array(ModelCatalogEntrySchema).min(1).max(4),
|
|
@@ -2,7 +2,7 @@ import { method, optionalMethod } from "./capability-definition.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/capabilities/device-export.cap.ts
|
|
4
4
|
/**
|
|
5
|
-
* `device-export` — collection cap for addons that export
|
|
5
|
+
* `device-export` — collection cap for addons that export dominevo
|
|
6
6
|
* devices to external ecosystems (HomeAssistant via MQTT discovery,
|
|
7
7
|
* HomeKit/HAP, Alexa Smart Home, …).
|
|
8
8
|
*
|
|
@@ -106,7 +106,7 @@ var FaceInfoSchema = /* @__PURE__ */ z.object({
|
|
|
106
106
|
* snapshot surfaces made on 2026-08-08.
|
|
107
107
|
*
|
|
108
108
|
* Served by the `event-media` plane, which resolves a raw MediaStore key and
|
|
109
|
-
* is `access: 'authenticated'`: a bare `<img>` carries the `
|
|
109
|
+
* is `access: 'authenticated'`: a bare `<img>` carries the `dominevo_session`
|
|
110
110
|
* cookie, so no header plumbing is needed. The bytes then ride the browser's
|
|
111
111
|
* HTTP cache with an ETag and `immutable`, instead of the WebSocket.
|
|
112
112
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DOMINEVO_APP_LINK_ORIGIN, isAppLinkBase } from "./viewer-link-url.mjs";
|
|
2
2
|
//#region src/capabilities/hub-address.ts
|
|
3
3
|
var HUB_ADDRESS_ROLES = [
|
|
4
4
|
"appConnections",
|
|
@@ -136,7 +136,7 @@ var PUBLIC_ENDPOINT_HTTP_REASON = "The public endpoint needs an https:// address
|
|
|
136
136
|
function checkRoleAddress(role, baseUrl, options = {}) {
|
|
137
137
|
if (isAppLinkBase(baseUrl)) return role === "notificationTaps" ? {
|
|
138
138
|
ok: true,
|
|
139
|
-
baseUrl:
|
|
139
|
+
baseUrl: DOMINEVO_APP_LINK_ORIGIN
|
|
140
140
|
} : {
|
|
141
141
|
ok: false,
|
|
142
142
|
reason: "The Dominevo app link is not a hub address — only notification taps can use it."
|
|
@@ -216,7 +216,7 @@ function resolveNotificationTapAddress(flags) {
|
|
|
216
216
|
};
|
|
217
217
|
return {
|
|
218
218
|
flagged: null,
|
|
219
|
-
resolved:
|
|
219
|
+
resolved: DOMINEVO_APP_LINK_ORIGIN,
|
|
220
220
|
source: "auto"
|
|
221
221
|
};
|
|
222
222
|
}
|
|
@@ -270,13 +270,13 @@ function hubAddressHostname(baseUrl) {
|
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* How a client finds a hub on the LAN (D838): the hub publishes ONE mDNS
|
|
273
|
-
* service for its HTTPS endpoint. `
|
|
273
|
+
* service for its HTTPS endpoint. `_dominevo._tcp` carries the hub's `internal`
|
|
274
274
|
* address in `url`, and nothing secret — finding a hub grants nothing, every
|
|
275
275
|
* client still signs in. The mesh channel stays retired (D826).
|
|
276
276
|
*/
|
|
277
|
-
var HUB_MDNS_SERVICE_TYPE = "
|
|
277
|
+
var HUB_MDNS_SERVICE_TYPE = "dominevo";
|
|
278
278
|
/** The fully-qualified name a client browses for. */
|
|
279
|
-
var HUB_MDNS_QUERY_NAME = "
|
|
279
|
+
var HUB_MDNS_QUERY_NAME = "_dominevo._tcp.local";
|
|
280
280
|
/** The TXT keys of the advertisement. Every value is public. */
|
|
281
281
|
var HUB_MDNS_TXT_KEYS = {
|
|
282
282
|
nodeId: "nodeId",
|
|
@@ -302,9 +302,9 @@ function isHubId(value) {
|
|
|
302
302
|
* port, paired or not. The TXT record carries only public facts. Finding an agent grants
|
|
303
303
|
* nothing: pairing still needs the six-digit code confirmed on both screens.
|
|
304
304
|
*/
|
|
305
|
-
var AGENT_MDNS_SERVICE_TYPE = "
|
|
305
|
+
var AGENT_MDNS_SERVICE_TYPE = "dominevo-agent";
|
|
306
306
|
/** The fully-qualified name a hub browses for. */
|
|
307
|
-
var AGENT_MDNS_QUERY_NAME = "
|
|
307
|
+
var AGENT_MDNS_QUERY_NAME = "_dominevo-agent._tcp.local";
|
|
308
308
|
/** The TXT keys of the agent advertisement. Every value is public. */
|
|
309
309
|
var AGENT_MDNS_TXT_KEYS = {
|
|
310
310
|
nodeId: "nodeId",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { readErrorI18n } from "../i18n/
|
|
1
|
+
import { readErrorI18n } from "../i18n/dominevo-error.mjs";
|
|
2
2
|
import { method } from "./capability-definition.mjs";
|
|
3
3
|
import { DeviceType } from "../device/device-type.mjs";
|
|
4
4
|
import { t } from "../device/cap-vocabulary/l10n.mjs";
|
|
@@ -13,7 +13,7 @@ import { z } from "zod";
|
|
|
13
13
|
* returns a value.
|
|
14
14
|
*
|
|
15
15
|
* The master key's LOCATION is a fixed path, never an env var (D788, D991):
|
|
16
|
-
* `/run/secrets/
|
|
16
|
+
* `/run/secrets/dominevo-master-key` when that file exists, the OS keychain on
|
|
17
17
|
* a desktop hub, else
|
|
18
18
|
* `<dataDir>/.keychain/master.key` — which sits beside the database in every
|
|
19
19
|
* whole-volume backup, and the status says so.
|
|
@@ -211,7 +211,7 @@ var keychainAdminCapability = {
|
|
|
211
211
|
* a new master key, write it there, re-wrap. A file or OS-keychain primary
|
|
212
212
|
* that is already in use cannot be replaced from here — put the new key at
|
|
213
213
|
* the source, keep the old one at
|
|
214
|
-
* `/run/secrets/
|
|
214
|
+
* `/run/secrets/dominevo-master-key.previous`, restart, and rotate. No value is re-encrypted either way; the previous wrap is kept
|
|
215
215
|
* (retired) until purged.
|
|
216
216
|
*/
|
|
217
217
|
rotateMasterKey: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.object({
|