@camstack/server 1.2.873 → 1.2.875

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.
Files changed (89) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/api/trpc/generated-cap-routers.js +18 -0
  3. package/package.json +11 -14
  4. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  5. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  6. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  7. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  8. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  9. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  10. package/system/dist/builtins/autotrack/index.js +1 -1
  11. package/system/dist/builtins/autotrack/index.mjs +1 -1
  12. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  13. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  14. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  15. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  16. package/system/dist/builtins/camera-grid/index.js +1 -1
  17. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  18. package/system/dist/builtins/composer/composer.addon.js +4 -4
  19. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  20. package/system/dist/builtins/console-logging/index.js +1 -1
  21. package/system/dist/builtins/console-logging/index.mjs +1 -1
  22. package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
  23. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
  24. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  25. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  26. package/system/dist/builtins/device-manager/device-manager.addon.js +87 -29
  27. package/system/dist/builtins/device-manager/device-manager.addon.mjs +87 -29
  28. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  29. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  30. package/system/dist/builtins/keychain/index.js +4 -4
  31. package/system/dist/builtins/keychain/index.mjs +4 -4
  32. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  33. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  34. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  35. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  36. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  37. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  38. package/system/dist/builtins/loki-logging/index.js +1 -1
  39. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  40. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  41. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  42. package/system/dist/builtins/platform-probe/index.js +1 -1
  43. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  44. package/system/dist/builtins/record-entries/index.js +1 -1
  45. package/system/dist/builtins/record-entries/index.mjs +1 -1
  46. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  47. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  48. package/system/dist/builtins/snapshot/index.js +1 -1
  49. package/system/dist/builtins/snapshot/index.mjs +1 -1
  50. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  51. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  52. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  53. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  54. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  55. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  56. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  57. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  58. package/system/dist/builtins/system-config/system-config.addon.js +38 -4
  59. package/system/dist/builtins/system-config/system-config.addon.mjs +319 -285
  60. package/system/dist/builtins/winston-logging/index.js +1 -1
  61. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  62. package/system/dist/{capture-engine-WL-mpqRt.mjs → capture-engine-BuASS_Qx.mjs} +1 -1
  63. package/system/dist/{capture-engine-p0DLUXcQ.js → capture-engine-DWdcVTA3.js} +1 -1
  64. package/system/dist/{composition-sources-Dheuv9_O.mjs → composition-sources-BHFgbF7C.mjs} +1 -1
  65. package/system/dist/{composition-sources-BuRkhqkL.js → composition-sources-DNuBqIPL.js} +1 -1
  66. package/system/dist/{constants-Ci169fqS.mjs → constants-DaIPFvoS.mjs} +1 -1
  67. package/system/dist/{constants-D8fNaNti.js → constants-dRd1d6-d.js} +1 -1
  68. package/system/dist/{device-ca-Cu6Xu_CS.mjs → device-ca-B9cTeWPe.mjs} +1 -1
  69. package/system/dist/{device-ca-CPeChXfp.js → device-ca-sBPs1k-W.js} +1 -1
  70. package/system/dist/{dist-BBWAHu-O.mjs → dist-D5_u_9iZ.mjs} +223 -4
  71. package/system/dist/{dist-BHAE4TbZ.js → dist-DJx80O4F.js} +228 -3
  72. package/system/dist/file-host-worker.js +1 -1
  73. package/system/dist/file-host-worker.mjs +1 -1
  74. package/system/dist/{hub-identity-BPdwL_Qn.mjs → hub-identity-CSc-vdeW.mjs} +1 -1
  75. package/system/dist/{hub-identity-CfaF_M6Y.js → hub-identity-DiepURf3.js} +1 -1
  76. package/system/dist/{hub-mdns-ciao-DS7-X9U_.js → hub-mdns-ciao-CoC9aqlm.js} +2 -2
  77. package/system/dist/{hub-mdns-ciao-1NZAZ7Mp.mjs → hub-mdns-ciao-D0wRh6bF.mjs} +2 -2
  78. package/system/dist/index.js +20 -16
  79. package/system/dist/index.mjs +20 -16
  80. package/system/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +7 -0
  81. package/system/dist/{legacy-integration-rows-door-Bnz-aNu6.js → legacy-integration-rows-door-CWNpyTAj.js} +1 -1
  82. package/system/dist/{legacy-integration-rows-door-CsxfaUSU.mjs → legacy-integration-rows-door-XOO5sLJR.mjs} +1 -1
  83. package/system/dist/{rename-composition-block-Dxywwjac.mjs → rename-composition-block-BUF2b8XW.mjs} +1 -1
  84. package/system/dist/{rename-composition-block-CQUr1lYO.js → rename-composition-block-BcTOU8JW.js} +1 -1
  85. package/system/dist/{restore-archive-CFMsgNKV.mjs → restore-archive-B5BDrHVW.mjs} +82 -82
  86. package/system/dist/{restore-archive-CbMms_b0.js → restore-archive-DL8S6pRE.js} +1 -1
  87. package/system/dist/{wal-maintenance-6782RP08.mjs → wal-maintenance-CxsAE_CD.mjs} +0 -0
  88. package/system/dist/{wal-maintenance-DJ76u4GY.js → wal-maintenance-aJK7q2BO.js} +0 -0
  89. package/system/package.json +1 -1
@@ -73639,7 +73639,19 @@ var IdentitySampleInfoSchema = zod.z.object({
73639
73639
  source: zod.z.enum(["detected", "photo"]),
73640
73640
  addedAt: zod.z.number().int(),
73641
73641
  deviceId: zod.z.number().int().optional(),
73642
- base64: zod.z.string().optional()
73642
+ base64: zod.z.string().optional(),
73643
+ /**
73644
+ * The sample's own crop, when it has one. The bytes stay on the event-media
73645
+ * plane — this list does not inline them.
73646
+ */
73647
+ mediaId: zod.z.number().int().optional(),
73648
+ /**
73649
+ * The source face's key frame (or the photo the sample was cut from), when
73650
+ * the sample has no crop of its own. Draw {@link faceBbox} on it.
73651
+ */
73652
+ keyFrameMediaId: zod.z.number().int().optional(),
73653
+ /** The face box on {@link keyFrameMediaId}, pixel space. */
73654
+ faceBbox: BoundingBoxSchema.optional()
73643
73655
  });
73644
73656
  /**
73645
73657
  * One enrolled sample, judged against the gallery it lives in.
@@ -73879,6 +73891,18 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(IdentitySche
73879
73891
  kind: "mutation",
73880
73892
  auth: "admin"
73881
73893
  }),
73894
+ /**
73895
+ * Move an enrolled sample onto another person. The crop is re-owned, the
73896
+ * source face keeps its link and follows (`recognizedIdentityId`), and an
73897
+ * unknown person is refused.
73898
+ */
73899
+ moveIdentitySample: method(zod.z.object({
73900
+ sampleId: zod.z.string().min(1),
73901
+ toIdentityId: zod.z.string().min(1)
73902
+ }), zod.z.void(), {
73903
+ kind: "mutation",
73904
+ auth: "admin"
73905
+ }),
73882
73906
  listRecentFaces: method(zod.z.object({
73883
73907
  /**
73884
73908
  * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
@@ -96658,7 +96682,19 @@ var VehicleSampleInfoSchema = zod.z.object({
96658
96682
  score: zod.z.number(),
96659
96683
  addedAt: zod.z.number().int(),
96660
96684
  deviceId: zod.z.number().int().optional(),
96661
- base64: zod.z.string().optional()
96685
+ base64: zod.z.string().optional(),
96686
+ /**
96687
+ * The sample's own crop, when it has one. Prefer this over {@link base64}:
96688
+ * the bytes are on the event-media plane (`/m/<mediaId>`), never inlined.
96689
+ */
96690
+ mediaId: zod.z.number().int().optional(),
96691
+ /**
96692
+ * The source plate's key frame, when the sample has no crop of its own.
96693
+ * Draw {@link plateBbox} on it. Absent when {@link mediaId} is set.
96694
+ */
96695
+ keyFrameMediaId: zod.z.number().int().optional(),
96696
+ /** The plate box on {@link keyFrameMediaId}, pixel space. */
96697
+ plateBbox: BoundingBoxSchema.optional()
96662
96698
  });
96663
96699
  var PlateInfoSchema = zod.z.object({
96664
96700
  plateId: zod.z.string(),
@@ -96688,7 +96724,17 @@ var PlateInfoSchema = zod.z.object({
96688
96724
  * and `searchPlates` inline the crop only when their `includeCrops` input is
96689
96725
  * left at its `true` default.
96690
96726
  */
96691
- cropUrl: zod.z.string().optional()
96727
+ cropUrl: zod.z.string().optional(),
96728
+ /**
96729
+ * Why {@link cropUrl} is absent. One of `no-frame-handle`,
96730
+ * `live-capture-missed`, `live-capture-threw`, `no-key-frame`,
96731
+ * `derive-not-wired`, `subject-moved`, `temporal-skew`, `key-frame-absent`,
96732
+ * `bad-frame-size`, `decode-empty`, `derive-threw`, `derive-returned-null`,
96733
+ * `put-failed`. A crossing vehicle whose live capture missed is
96734
+ * `subject-moved`: the key frame is a different instant, and the crop is
96735
+ * legitimately absent.
96736
+ */
96737
+ cropMissReason: zod.z.string().optional()
96692
96738
  });
96693
96739
  /**
96694
96740
  * One gallery media row: what the crop is, how big it is, and WHERE its bytes
@@ -96818,6 +96864,18 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(VehicleSchem
96818
96864
  kind: "mutation",
96819
96865
  auth: "admin"
96820
96866
  }),
96867
+ /**
96868
+ * Move an enrolled sample onto another vehicle. The crop is re-owned, the
96869
+ * source plate keeps its link and follows (`recognizedVehicleId`), and an
96870
+ * unknown vehicle is refused.
96871
+ */
96872
+ moveVehicleSample: method(zod.z.object({
96873
+ sampleId: zod.z.string().min(1),
96874
+ toVehicleId: zod.z.string().min(1)
96875
+ }), zod.z.void(), {
96876
+ kind: "mutation",
96877
+ auth: "admin"
96878
+ }),
96821
96879
  assignPlate: method(zod.z.object({
96822
96880
  plateId: zod.z.string(),
96823
96881
  vehicleId: zod.z.string()
@@ -121633,6 +121691,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
121633
121691
  access: "view",
121634
121692
  role: "feature:face-assignment"
121635
121693
  },
121694
+ "faceGallery.moveIdentitySample": {
121695
+ capName: "face-gallery",
121696
+ capScope: "system",
121697
+ addonId: null,
121698
+ access: "create",
121699
+ role: "feature:face-assignment"
121700
+ },
121636
121701
  "faceGallery.removeSample": {
121637
121702
  capName: "face-gallery",
121638
121703
  capScope: "system",
@@ -125553,6 +125618,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
125553
125618
  access: "view",
125554
125619
  role: "feature:plate-assignment"
125555
125620
  },
125621
+ "plateGallery.moveVehicleSample": {
125622
+ capName: "plate-gallery",
125623
+ capScope: "system",
125624
+ addonId: null,
125625
+ access: "create",
125626
+ role: "feature:plate-assignment"
125627
+ },
125556
125628
  "plateGallery.removeVehicleSample": {
125557
125629
  capName: "plate-gallery",
125558
125630
  capScope: "system",
@@ -134500,6 +134572,153 @@ zod.z.object({
134500
134572
  delay: zod.z.number().nonnegative().optional(),
134501
134573
  commands: zod.z.record(zod.z.string(), zod.z.unknown())
134502
134574
  });
134575
+ /**
134576
+ * Shared text ranking for the admin global search and `deviceManager.search`.
134577
+ *
134578
+ * One ascending scale. Lower is better; `null` is no match. Exact levels
134579
+ * (0–5) are tried before either fuzzy level (6–7), so a fuzzy hit cannot
134580
+ * outrank an exact one. Identifiers match on equality only — a device id is
134581
+ * a fact, not a spelling, and "108" must never fuzzy-match device 102.
134582
+ *
134583
+ * Fuzzy runs on the label first. Keywords are fuzzied only when the label
134584
+ * itself did not match, so an item that already matched keeps its rank.
134585
+ */
134586
+ var COMBINING_MARKS = /\p{Mn}/gu;
134587
+ /** Case- and diacritic-insensitive. "Perche" and "Perché" compare equal. */
134588
+ function normalizeSearchText(value) {
134589
+ return value.normalize("NFD").replace(COMBINING_MARKS, "").toLowerCase().trim();
134590
+ }
134591
+ var RANK_EXACT_IDENTIFIER = 0;
134592
+ var RANK_EXACT_LABEL = 1;
134593
+ var RANK_LABEL_PREFIX = 2;
134594
+ var RANK_WORD_PREFIX = 3;
134595
+ var RANK_LABEL_SUBSTRING = 4;
134596
+ var RANK_KEYWORD_SUBSTRING = 5;
134597
+ var RANK_SUBSEQUENCE = 6;
134598
+ var RANK_FUZZY_WORD = 7;
134599
+ /**
134600
+ * Exact levels. `null` means no exact match; the caller falls through to fuzzy.
134601
+ * 0 — the query IS one of `identifiers`
134602
+ * 1 — exact label
134603
+ * 2 — label starts with the query
134604
+ * 3 — some whole word in the label starts with the query
134605
+ * 4 — query appears anywhere in the label
134606
+ * 5 — query appears in a keyword (stableId, parent name, path, …)
134607
+ *
134608
+ * Level 0 sits above the exact label: `102` is a device id, and a camera
134609
+ * named "Garage 102" must not bury it.
134610
+ */
134611
+ function matchRank(normalizedLabel, normalizedKeywords, normalizedIdentifiers, query) {
134612
+ if (normalizedIdentifiers.includes(query)) return RANK_EXACT_IDENTIFIER;
134613
+ if (normalizedLabel === query) return RANK_EXACT_LABEL;
134614
+ if (normalizedLabel.startsWith(query)) return RANK_LABEL_PREFIX;
134615
+ if (normalizedLabel.split(/\s+/).some((word) => word.startsWith(query))) return RANK_WORD_PREFIX;
134616
+ if (normalizedLabel.includes(query)) return RANK_LABEL_SUBSTRING;
134617
+ if (normalizedKeywords.some((keyword) => keyword.includes(query))) return RANK_KEYWORD_SUBSTRING;
134618
+ return null;
134619
+ }
134620
+ /** Every character of `query` appears in `label`, in order. Gaps allowed. */
134621
+ function isSubsequence(label, query) {
134622
+ let queryIndex = 0;
134623
+ for (let labelIndex = 0; labelIndex < label.length && queryIndex < query.length; labelIndex++) {
134624
+ const labelChar = label[labelIndex];
134625
+ const queryChar = query[queryIndex];
134626
+ if (labelChar !== void 0 && labelChar === queryChar) queryIndex++;
134627
+ }
134628
+ return queryIndex === query.length;
134629
+ }
134630
+ /**
134631
+ * Edit-distance budget, proportional to query length. A fixed budget would
134632
+ * let a 3-letter query match nearly any 3-letter word.
134633
+ */
134634
+ function fuzzyThreshold(queryLength) {
134635
+ if (queryLength < 4) return 0;
134636
+ if (queryLength <= 7) return 1;
134637
+ if (queryLength <= 12) return 2;
134638
+ return 3;
134639
+ }
134640
+ /**
134641
+ * Bounded Damerau-Levenshtein (optimal string alignment: one adjacent
134642
+ * transposition is one edit). `null` once the distance is provably over
134643
+ * `maxDistance`. Three rotating rows because the transposition term reads
134644
+ * the row two back.
134645
+ */
134646
+ function boundedOsaDistance(a, b, maxDistance) {
134647
+ if (a === b) return 0;
134648
+ if (maxDistance <= 0) return null;
134649
+ if (Math.abs(a.length - b.length) > maxDistance) return null;
134650
+ const bLen = b.length;
134651
+ let rowBefore = new Array(bLen + 1).fill(0);
134652
+ let rowPrev = Array.from({ length: bLen + 1 }, (_, j) => j);
134653
+ let rowCurr = new Array(bLen + 1).fill(0);
134654
+ for (let i = 1; i <= a.length; i++) {
134655
+ rowCurr[0] = i;
134656
+ let rowMin = i;
134657
+ const aChar = a[i - 1];
134658
+ if (aChar === void 0) return null;
134659
+ for (let j = 1; j <= bLen; j++) {
134660
+ const bChar = b[j - 1];
134661
+ const prevDelete = rowPrev[j];
134662
+ const prevDiag = rowPrev[j - 1];
134663
+ const currInsert = rowCurr[j - 1];
134664
+ if (bChar === void 0 || prevDelete === void 0 || prevDiag === void 0) return null;
134665
+ if (currInsert === void 0) return null;
134666
+ const substitutionCost = aChar === bChar ? 0 : 1;
134667
+ let value = Math.min(prevDelete + 1, currInsert + 1, prevDiag + substitutionCost);
134668
+ const prevA = a[i - 2];
134669
+ const prevB = b[j - 2];
134670
+ const transpose = rowBefore[j - 2];
134671
+ if (i > 1 && j > 1 && prevA !== void 0 && prevB !== void 0 && aChar === prevB && prevA === bChar) {
134672
+ if (transpose !== void 0) value = Math.min(value, transpose + 1);
134673
+ }
134674
+ rowCurr[j] = value;
134675
+ if (value < rowMin) rowMin = value;
134676
+ }
134677
+ if (rowMin > maxDistance) return null;
134678
+ const recycled = rowBefore;
134679
+ rowBefore = rowPrev;
134680
+ rowPrev = rowCurr;
134681
+ rowCurr = recycled;
134682
+ }
134683
+ const result = rowPrev[bLen] ?? Infinity;
134684
+ return result <= maxDistance ? result : null;
134685
+ }
134686
+ /**
134687
+ * Fuzzy levels, only after every exact level missed.
134688
+ * 6 — subsequence of the whole text
134689
+ * 7 — some WORD of the text is within a length-proportional OSA distance
134690
+ */
134691
+ function fuzzyMatchRank(normalizedText, query) {
134692
+ if (isSubsequence(normalizedText, query)) return RANK_SUBSEQUENCE;
134693
+ const threshold = fuzzyThreshold(query.length);
134694
+ if (threshold > 0) {
134695
+ for (const word of normalizedText.split(/\s+/)) if (boundedOsaDistance(word, query, threshold) !== null) return RANK_FUZZY_WORD;
134696
+ }
134697
+ return null;
134698
+ }
134699
+ /** Best fuzzy rank across `texts`, or `null`. Subsequence (6) is the best fuzzy can be. */
134700
+ function bestFuzzy(texts, query) {
134701
+ let best = null;
134702
+ for (const text of texts) {
134703
+ const rank = fuzzyMatchRank(text, query);
134704
+ if (rank === null) continue;
134705
+ if (best === null || rank < best) best = rank;
134706
+ if (best === RANK_SUBSEQUENCE) return best;
134707
+ }
134708
+ return best;
134709
+ }
134710
+ /**
134711
+ * Rank `rawQuery` against one record. `null` when nothing matches, including
134712
+ * a blank query. Keywords are fuzzied only when the label produced no rank,
134713
+ * so a label hit is never demoted or promoted by a keyword.
134714
+ */
134715
+ function searchRank(rawQuery, fields) {
134716
+ const query = normalizeSearchText(rawQuery);
134717
+ if (query.length === 0) return null;
134718
+ const label = normalizeSearchText(fields.label);
134719
+ const keywords = (fields.keywords ?? []).map(normalizeSearchText).filter((keyword) => keyword.length > 0);
134720
+ return matchRank(label, keywords, (fields.identifiers ?? []).map(normalizeSearchText).filter((identifier) => identifier.length > 0), query) ?? fuzzyMatchRank(label, query) ?? bestFuzzy(keywords, query);
134721
+ }
134503
134722
  //#endregion
134504
134723
  Object.defineProperty(exports, "ACTION_RUN_MAX_MS", {
134505
134724
  enumerable: true,
@@ -137309,6 +137528,12 @@ Object.defineProperty(exports, "scoreRuntimes", {
137309
137528
  return scoreRuntimes;
137310
137529
  }
137311
137530
  });
137531
+ Object.defineProperty(exports, "searchRank", {
137532
+ enumerable: true,
137533
+ get: function() {
137534
+ return searchRank;
137535
+ }
137536
+ });
137312
137537
  Object.defineProperty(exports, "secretTreeFromPaths", {
137313
137538
  enumerable: true,
137314
137539
  get: function() {
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Cek0wNdY.js");
2
- const require_wal_maintenance = require("./wal-maintenance-DJ76u4GY.js");
2
+ const require_wal_maintenance = require("./wal-maintenance-aJK7q2BO.js");
3
3
  let node_worker_threads = require("node:worker_threads");
4
4
  //#region src/builtins/sqlite-storage/file-host-worker.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-6782RP08.mjs";
1
+ import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-CxsAE_CD.mjs";
2
2
  import { parentPort, threadId, workerData } from "node:worker_threads";
3
3
  //#region src/builtins/sqlite-storage/file-host-worker.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Rc as defineRecordKinds } from "./dist-BBWAHu-O.mjs";
1
+ import { zc as defineRecordKinds } from "./dist-D5_u_9iZ.mjs";
2
2
  import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
3
3
  import { z } from "zod";
4
4
  import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-BHAE4TbZ.js");
2
+ const require_dist = require("./dist-DJx80O4F.js");
3
3
  const require_x509_es = require("./x509.es-WtnRNyYS.js");
4
4
  let zod = require("zod");
5
5
  let node_crypto = require("node:crypto");
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-BHAE4TbZ.js");
2
+ const require_dist = require("./dist-DJx80O4F.js");
3
3
  const require_x509_es = require("./x509.es-WtnRNyYS.js");
4
- const require_hub_identity = require("./hub-identity-CfaF_M6Y.js");
4
+ const require_hub_identity = require("./hub-identity-DiepURf3.js");
5
5
  let node_crypto = require("node:crypto");
6
6
  let _camstack_types_node = require("@camstack/types/node");
7
7
  let node_fs = require("node:fs");
@@ -1,7 +1,7 @@
1
1
  import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
2
- import { Ol as userError } from "./dist-BBWAHu-O.mjs";
2
+ import { kl as userError } from "./dist-D5_u_9iZ.mjs";
3
3
  import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
4
- import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-BPdwL_Qn.mjs";
4
+ import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-CSc-vdeW.mjs";
5
5
  import { X509Certificate, createPrivateKey } from "node:crypto";
6
6
  import { writeOwnerOnlyFileSync } from "@camstack/types/node";
7
7
  import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("./chunk-Cek0wNdY.js");
3
- const require_dist = require("./dist-BHAE4TbZ.js");
4
- const require_device_ca = require("./device-ca-CPeChXfp.js");
3
+ const require_dist = require("./dist-DJx80O4F.js");
4
+ const require_device_ca = require("./device-ca-sBPs1k-W.js");
5
5
  const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
6
6
  const require_log_redactor = require("./log-redactor-BhIEMaG9.js");
7
7
  const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
@@ -28,22 +28,22 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
28
28
  const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
29
29
  const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
30
30
  const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
31
- const require_wal_maintenance = require("./wal-maintenance-DJ76u4GY.js");
32
- const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-Bnz-aNu6.js");
31
+ const require_wal_maintenance = require("./wal-maintenance-aJK7q2BO.js");
32
+ const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-CWNpyTAj.js");
33
33
  const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
34
34
  const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
35
35
  const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
36
36
  require("./builtins/storage-orchestrator/index.js");
37
- const require_hub_identity = require("./hub-identity-CfaF_M6Y.js");
38
- const require_constants = require("./constants-D8fNaNti.js");
37
+ const require_hub_identity = require("./hub-identity-DiepURf3.js");
38
+ const require_constants = require("./constants-dRd1d6-d.js");
39
39
  const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
40
40
  require("./builtins/system-config/index.js");
41
41
  const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
42
42
  const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
43
- const require_hub_mdns_ciao = require("./hub-mdns-ciao-DS7-X9U_.js");
43
+ const require_hub_mdns_ciao = require("./hub-mdns-ciao-CoC9aqlm.js");
44
44
  const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
45
45
  const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
46
- const require_restore_archive = require("./restore-archive-CbMms_b0.js");
46
+ const require_restore_archive = require("./restore-archive-DL8S6pRE.js");
47
47
  const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
48
48
  let zod = require("zod");
49
49
  let node_crypto = require("node:crypto");
@@ -25535,7 +25535,7 @@ var en_default = {
25535
25535
  "auth.share-never-expiring-extend": "A never-expiring share token cannot be extended",
25536
25536
  "auth.share-owner-only-extend": "Only the token owner or an admin can extend a share token",
25537
25537
  "auth.share-owner-only-revoke": "Only the token owner or an admin can revoke a share token",
25538
- "auth.share-token-not-found": "Share token not found: {id}",
25538
+ "auth.share-token-not-found": "Share token not found: {{id}}",
25539
25539
  "auth.password-incorrect": "Password is incorrect",
25540
25540
  "auth.session-required": "Requires a signed-in user session",
25541
25541
  "auth.admin-required": "Admin required",
@@ -25549,7 +25549,7 @@ var en_default = {
25549
25549
  "device.certificates-unavailable": "Device certificates are not available",
25550
25550
  "device.not-found": "Device {id} not found",
25551
25551
  "device.credentials-unavailable": "Device credentials not available",
25552
- "device.credential-not-found": "Device credential not found: {id}",
25552
+ "device.credential-not-found": "Device credential not found: {{id}}",
25553
25553
  "storage.no-provider": "No storage provider configured",
25554
25554
  "preferences.forbidden": "This credential cannot reach account preferences",
25555
25555
  "preferences.unavailable": "Account preferences are not available",
@@ -25758,7 +25758,7 @@ var en_default = {
25758
25758
  "server.app-confirmations-busy": "Too many pending app confirmations",
25759
25759
  "server.step-up-busy": "Too many pending step-up proofs",
25760
25760
  "server.login-unavailable": "Login unavailable — `user-management` capability not registered",
25761
- "server.share-token-expired": "Share token expired: {id}",
25761
+ "server.share-token-expired": "Share token expired: {{id}}",
25762
25762
  "server.package-not-allowed": "Package \"{name}\" is not an allowed @camstack/* package",
25763
25763
  "server.package-protected": "Cannot uninstall protected package \"{name}\"",
25764
25764
  "server.package-required": "Package {packageName} is required and cannot be uninstalled",
@@ -25789,7 +25789,9 @@ var en_default = {
25789
25789
  "ir-transmitter.learn-undecodable": "The code learned by {{name}} could not be read",
25790
25790
  "ir-transmitter.learn-busy": "The transmitter {{name}} is already learning a code",
25791
25791
  "ir-transmitter.native-unsupported": "The transmitter {{name}} cannot send this kind of code",
25792
- "ir-transmitter.no-code": "Nothing to send: give a pulse train or a native code"
25792
+ "ir-transmitter.no-code": "Nothing to send: give a pulse train or a native code",
25793
+ "gallery.unknown-target": "Unknown gallery target: {{id}}",
25794
+ "gallery.unknown-sample": "Unknown gallery sample: {{id}}"
25793
25795
  };
25794
25796
  //#endregion
25795
25797
  //#region src/i18n/it.json
@@ -25806,7 +25808,7 @@ var it_default = {
25806
25808
  "auth.share-never-expiring-extend": "Un token di condivisione senza scadenza non può essere prorogato",
25807
25809
  "auth.share-owner-only-extend": "Solo il proprietario del token o un amministratore può prorogare un token di condivisione",
25808
25810
  "auth.share-owner-only-revoke": "Solo il proprietario del token o un amministratore può revocare un token di condivisione",
25809
- "auth.share-token-not-found": "Token di condivisione non trovato: {id}",
25811
+ "auth.share-token-not-found": "Token di condivisione non trovato: {{id}}",
25810
25812
  "auth.password-incorrect": "La password non è corretta",
25811
25813
  "auth.session-required": "Serve una sessione utente con accesso effettuato",
25812
25814
  "auth.admin-required": "Serve un amministratore",
@@ -25820,7 +25822,7 @@ var it_default = {
25820
25822
  "device.certificates-unavailable": "I certificati dei dispositivi non sono disponibili",
25821
25823
  "device.not-found": "Dispositivo {id} non trovato",
25822
25824
  "device.credentials-unavailable": "Le credenziali del dispositivo non sono disponibili",
25823
- "device.credential-not-found": "Credenziale del dispositivo non trovata: {id}",
25825
+ "device.credential-not-found": "Credenziale del dispositivo non trovata: {{id}}",
25824
25826
  "storage.no-provider": "Nessun provider di archiviazione configurato",
25825
25827
  "preferences.forbidden": "Questa credenziale non può accedere alle preferenze dell’account",
25826
25828
  "preferences.unavailable": "Le preferenze dell’account non sono disponibili",
@@ -26029,7 +26031,7 @@ var it_default = {
26029
26031
  "server.app-confirmations-busy": "Troppe conferme di app in attesa",
26030
26032
  "server.step-up-busy": "Troppe verifiche di sicurezza in attesa",
26031
26033
  "server.login-unavailable": "Accesso non disponibile — la capacità `user-management` non è registrata",
26032
- "server.share-token-expired": "Token di condivisione scaduto: {id}",
26034
+ "server.share-token-expired": "Token di condivisione scaduto: {{id}}",
26033
26035
  "server.package-not-allowed": "Il pacchetto \"{name}\" non è un pacchetto @camstack/* consentito",
26034
26036
  "server.package-protected": "Impossibile disinstallare il pacchetto protetto \"{name}\"",
26035
26037
  "server.package-required": "Il pacchetto {packageName} è necessario e non può essere disinstallato",
@@ -26060,7 +26062,9 @@ var it_default = {
26060
26062
  "ir-transmitter.learn-undecodable": "Il codice appreso da {{name}} non può essere letto",
26061
26063
  "ir-transmitter.learn-busy": "Il trasmettitore {{name}} sta già apprendendo un codice",
26062
26064
  "ir-transmitter.native-unsupported": "Il trasmettitore {{name}} non può inviare questo tipo di codice",
26063
- "ir-transmitter.no-code": "Niente da inviare: indica un treno di impulsi o un codice nativo"
26065
+ "ir-transmitter.no-code": "Niente da inviare: indica un treno di impulsi o un codice nativo",
26066
+ "gallery.unknown-target": "Destinazione della galleria sconosciuta: {{id}}",
26067
+ "gallery.unknown-sample": "Campione della galleria sconosciuto: {{id}}"
26064
26068
  };
26065
26069
  //#endregion
26066
26070
  //#region src/i18n/catalog-registry.ts
@@ -1,6 +1,6 @@
1
1
  import { i as __require } from "./chunk-CNf5ZN-e.mjs";
2
- import { A as CatalogFileSchema, Ai as kebabToCamel$1, At as LOG_LEVEL_RANK, Bs as DEVICE_SETTINGS_CONTRIBUTION_METHODS, C as CATALOG_LANGS, Di as isObjectInput, Er as describeUnmet, Fi as lifecycleJobSchema, Hc as expandCapMethods, Hi as logLevelAtMost, Ht as PackageRequiresSchema, Il as errMsg$1, Kr as extractNestedAddonId, Nc as createEvent$1, Ol as userError, Pn as bareAddonId, Rc as defineRecordKinds, Rl as EventCategory$1, Rs as CALLER_STAMPED_CAPABILITIES$1, Sc as asString$1, Ui as looseSchema, Vs as DEVICE_STATUS_METHOD, Wc as getDebugInterest, Ya as resolveMethodAuth, Yc as isDebugChannelName, _l as resolveCapMount, a as AGENT_MDNS_SERVICE_TYPE, ac as ReadinessTimeoutError, bc as asJsonObject$1, bl as scopeKey, bo as splitTranslationRef, co as scopesAllowDeviceCap, fl as parseJsonObject, hi as isAddonInstanceId, hl as readinessKey, ic as ReadinessRegistry, jl as withoutCallerStamp, jt as METHOD_ACCESS_MAP, kc as collectSecretMarkerRefs, ki as isVoidInput, ko as supportedRuntimes, mi as interpolate, o as AGENT_MDNS_TXT_KEYS, oa as objectInputDeclaresAddonId, pl as parseJsonUnknown, rc as RUNTIME_DEFAULTS, rr as compareVersions, s as ALL_CAPABILITY_DEFINITIONS, sa as objectInputDeclaresRequiredDeviceId, so as scopesAllowAddon, wa as procedureAuthKey, wn as addonSettingsCapability, xc as asNumber, xi as isCollectionArrayMethod, yi as isArrayOutputSchema, zc as emitDownForOwnedCaps, zo as unmetRequirements, zs as DATAPLANE_SECRET_HEADER$1 } from "./dist-BBWAHu-O.mjs";
3
- import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-Cu6Xu_CS.mjs";
2
+ import { A as CatalogFileSchema, Ac as collectSecretMarkerRefs, Ai as kebabToCamel$1, Ao as supportedRuntimes, At as LOG_LEVEL_RANK, Bc as emitDownForOwnedCaps, Bo as unmetRequirements, Bs as DATAPLANE_SECRET_HEADER$1, C as CATALOG_LANGS, Cc as asString$1, Di as isObjectInput, Er as describeUnmet, Fi as lifecycleJobSchema, Gc as getDebugInterest, Hi as logLevelAtMost, Hs as DEVICE_STATUS_METHOD, Ht as PackageRequiresSchema, Kr as extractNestedAddonId, Ll as errMsg$1, Ml as withoutCallerStamp, Pc as createEvent$1, Pn as bareAddonId, Sc as asNumber, Uc as expandCapMethods, Ui as looseSchema, Vs as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Xc as isDebugChannelName, Ya as resolveMethodAuth, a as AGENT_MDNS_SERVICE_TYPE, ac as ReadinessRegistry, co as scopesAllowDeviceCap, gl as readinessKey, hi as isAddonInstanceId, ic as RUNTIME_DEFAULTS, jt as METHOD_ACCESS_MAP, ki as isVoidInput, kl as userError, mi as interpolate, ml as parseJsonUnknown, o as AGENT_MDNS_TXT_KEYS, oa as objectInputDeclaresAddonId, oc as ReadinessTimeoutError, pl as parseJsonObject, rr as compareVersions, s as ALL_CAPABILITY_DEFINITIONS, sa as objectInputDeclaresRequiredDeviceId, so as scopesAllowAddon, vl as resolveCapMount, wa as procedureAuthKey, wn as addonSettingsCapability, xc as asJsonObject$1, xi as isCollectionArrayMethod, xl as scopeKey, xo as splitTranslationRef, yi as isArrayOutputSchema, zc as defineRecordKinds, zl as EventCategory$1, zs as CALLER_STAMPED_CAPABILITIES$1 } from "./dist-D5_u_9iZ.mjs";
3
+ import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-B9cTeWPe.mjs";
4
4
  import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
5
5
  import { a as redactLogText, i as redactLogMeta, r as redactLogEntry, t as isCredentialKeyName } from "./log-redactor-XLDrPzOi.mjs";
6
6
  import { AlertCenterAddon, n as lastCauseAfterChunk, r as readRunnerDisplayName, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
@@ -27,22 +27,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
27
27
  import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
28
28
  import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
29
29
  import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
30
- import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-6782RP08.mjs";
31
- import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-CsxfaUSU.mjs";
30
+ import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-CxsAE_CD.mjs";
31
+ import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-XOO5sLJR.mjs";
32
32
  import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
33
33
  import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
34
34
  import { StorageOrchestratorAddon, a as createHubCapForwardService, i as HUB_CAP_FWD_SERVICE, o as stripForwardedCaller, r as HUB_CAP_FWD_ACTION, s as buildStorageLocationRegistry, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
35
35
  import "./builtins/storage-orchestrator/index.mjs";
36
- import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-BPdwL_Qn.mjs";
37
- import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-Ci169fqS.mjs";
36
+ import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-CSc-vdeW.mjs";
37
+ import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-DaIPFvoS.mjs";
38
38
  import { $ as getProcessMeshCaState, A as emitProcessNodeRegistered, At as readCidrSetting, B as getProcessMeshTlsListenerState, C as verifyMembershipAnswer, Ct as isInsecureOrigin, D as ServiceBroker, Dt as createCidrMatcher, E as Errors, Et as readOriginSetting, F as onProcessNodeRegistered, G as MeshCertificateRegistry, H as setProcessMeshTlsListenerState, I as setProcessMeshHandshakeReporter, J as getProcessMeshCertificateRegistry, K as RENEWAL_ABANDONED, L as setProcessMeshPeerTransportLookup, M as getProcessNodeMeshTransport, N as getProcessPeerLeaf, O as setProcessMeshTlsEnabler, Ot as normalizeIp, P as isProcessVerifiedMeshPeer, Q as MeshCaKeeper, R as renewMeshCertificate, S as signMembershipProof, St as OPAQUE_ORIGIN, SystemConfigAddon, T as TlsTcpTransporter, Tt as parseOriginList, U as MESH_NODE_CERTIFICATES_COLLECTION, V as openMeshTlsWhenRevocationsLoaded, W as MESH_NODE_CERTIFICATES_COLUMNS, X as MeshCrl, Y as setProcessMeshCertificateRegistry, Z as processMeshCrl, _ as keyFingerprintShort, _t as isAllowedAgentDashboardReturnTo, a as dialableHubHost, at as generateMeshCa, b as MEMBERSHIP_PATHS, bt as verifyAgentUiUnlockTicket, c as PAIRING_MAX_CODE_ATTEMPTS, ct as issueMeshLeafForNode, d as PAIRING_PIN_DIGITS, dt as AGENT_DASHBOARD_ORIGINS_FIELD, et as requireProcessMeshCa, f as PAIRING_PROTOCOL, ft as AGENT_UI_UNLOCK_TTL_MS, g as describeCsr, gt as UnlockTicketJtiStore, h as computePairingSas, ht as AGENT_UI_UNLOCK_VERSION, i as AgentPairing, it as exportMeshPrivateKeyPem, j as getProcessMeshHandshakeReporter, k as dropProcessPeer, kt as parseCidrList, l as PAIRING_MAX_SESSIONS, lt as issueMeshLeafFromCsr, m as computePairingCommitment, mt as AGENT_UI_UNLOCK_USE, n as HubPairing, nt as caFingerprintCompact, o as hubHostFromMeshAddress, ot as generateMeshKeyPair, p as PAIRING_TTL_MS, pt as AGENT_UI_UNLOCK_TYP, q as describeMeshLeaf, r as PairingHttpError, rt as createMeshCsrPem, s as PAIRING_CODE_DIGITS, st as isValidAgentNodeId, tt as caFingerprint, u as PAIRING_PATHS, ut as loadMeshCa, v as signPairingProof, vt as mintAgentUiUnlockTicket, w as MESH_TLS_PORT_HELLO_FIELD, wt as normalizeOrigin, x as MembershipResponder, xt as InvalidCorsOriginError, y as verifyPairingProof, yt as parseAgentDashboardOrigins, z as revokeMeshCertificate } from "./builtins/system-config/system-config.addon.mjs";
39
39
  import "./builtins/system-config/index.mjs";
40
40
  import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
41
41
  import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-B9zFBNVa.mjs";
42
- import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-1NZAZ7Mp.mjs";
42
+ import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-D0wRh6bF.mjs";
43
43
  import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
44
44
  import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
45
- import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-CFMsgNKV.mjs";
45
+ import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-B5BDrHVW.mjs";
46
46
  import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
47
47
  import { z } from "zod";
48
48
  import * as crypto$1 from "node:crypto";
@@ -25531,7 +25531,7 @@ var en_default = {
25531
25531
  "auth.share-never-expiring-extend": "A never-expiring share token cannot be extended",
25532
25532
  "auth.share-owner-only-extend": "Only the token owner or an admin can extend a share token",
25533
25533
  "auth.share-owner-only-revoke": "Only the token owner or an admin can revoke a share token",
25534
- "auth.share-token-not-found": "Share token not found: {id}",
25534
+ "auth.share-token-not-found": "Share token not found: {{id}}",
25535
25535
  "auth.password-incorrect": "Password is incorrect",
25536
25536
  "auth.session-required": "Requires a signed-in user session",
25537
25537
  "auth.admin-required": "Admin required",
@@ -25545,7 +25545,7 @@ var en_default = {
25545
25545
  "device.certificates-unavailable": "Device certificates are not available",
25546
25546
  "device.not-found": "Device {id} not found",
25547
25547
  "device.credentials-unavailable": "Device credentials not available",
25548
- "device.credential-not-found": "Device credential not found: {id}",
25548
+ "device.credential-not-found": "Device credential not found: {{id}}",
25549
25549
  "storage.no-provider": "No storage provider configured",
25550
25550
  "preferences.forbidden": "This credential cannot reach account preferences",
25551
25551
  "preferences.unavailable": "Account preferences are not available",
@@ -25754,7 +25754,7 @@ var en_default = {
25754
25754
  "server.app-confirmations-busy": "Too many pending app confirmations",
25755
25755
  "server.step-up-busy": "Too many pending step-up proofs",
25756
25756
  "server.login-unavailable": "Login unavailable — `user-management` capability not registered",
25757
- "server.share-token-expired": "Share token expired: {id}",
25757
+ "server.share-token-expired": "Share token expired: {{id}}",
25758
25758
  "server.package-not-allowed": "Package \"{name}\" is not an allowed @camstack/* package",
25759
25759
  "server.package-protected": "Cannot uninstall protected package \"{name}\"",
25760
25760
  "server.package-required": "Package {packageName} is required and cannot be uninstalled",
@@ -25785,7 +25785,9 @@ var en_default = {
25785
25785
  "ir-transmitter.learn-undecodable": "The code learned by {{name}} could not be read",
25786
25786
  "ir-transmitter.learn-busy": "The transmitter {{name}} is already learning a code",
25787
25787
  "ir-transmitter.native-unsupported": "The transmitter {{name}} cannot send this kind of code",
25788
- "ir-transmitter.no-code": "Nothing to send: give a pulse train or a native code"
25788
+ "ir-transmitter.no-code": "Nothing to send: give a pulse train or a native code",
25789
+ "gallery.unknown-target": "Unknown gallery target: {{id}}",
25790
+ "gallery.unknown-sample": "Unknown gallery sample: {{id}}"
25789
25791
  };
25790
25792
  //#endregion
25791
25793
  //#region src/i18n/it.json
@@ -25802,7 +25804,7 @@ var it_default = {
25802
25804
  "auth.share-never-expiring-extend": "Un token di condivisione senza scadenza non può essere prorogato",
25803
25805
  "auth.share-owner-only-extend": "Solo il proprietario del token o un amministratore può prorogare un token di condivisione",
25804
25806
  "auth.share-owner-only-revoke": "Solo il proprietario del token o un amministratore può revocare un token di condivisione",
25805
- "auth.share-token-not-found": "Token di condivisione non trovato: {id}",
25807
+ "auth.share-token-not-found": "Token di condivisione non trovato: {{id}}",
25806
25808
  "auth.password-incorrect": "La password non è corretta",
25807
25809
  "auth.session-required": "Serve una sessione utente con accesso effettuato",
25808
25810
  "auth.admin-required": "Serve un amministratore",
@@ -25816,7 +25818,7 @@ var it_default = {
25816
25818
  "device.certificates-unavailable": "I certificati dei dispositivi non sono disponibili",
25817
25819
  "device.not-found": "Dispositivo {id} non trovato",
25818
25820
  "device.credentials-unavailable": "Le credenziali del dispositivo non sono disponibili",
25819
- "device.credential-not-found": "Credenziale del dispositivo non trovata: {id}",
25821
+ "device.credential-not-found": "Credenziale del dispositivo non trovata: {{id}}",
25820
25822
  "storage.no-provider": "Nessun provider di archiviazione configurato",
25821
25823
  "preferences.forbidden": "Questa credenziale non può accedere alle preferenze dell’account",
25822
25824
  "preferences.unavailable": "Le preferenze dell’account non sono disponibili",
@@ -26025,7 +26027,7 @@ var it_default = {
26025
26027
  "server.app-confirmations-busy": "Troppe conferme di app in attesa",
26026
26028
  "server.step-up-busy": "Troppe verifiche di sicurezza in attesa",
26027
26029
  "server.login-unavailable": "Accesso non disponibile — la capacità `user-management` non è registrata",
26028
- "server.share-token-expired": "Token di condivisione scaduto: {id}",
26030
+ "server.share-token-expired": "Token di condivisione scaduto: {{id}}",
26029
26031
  "server.package-not-allowed": "Il pacchetto \"{name}\" non è un pacchetto @camstack/* consentito",
26030
26032
  "server.package-protected": "Impossibile disinstallare il pacchetto protetto \"{name}\"",
26031
26033
  "server.package-required": "Il pacchetto {packageName} è necessario e non può essere disinstallato",
@@ -26056,7 +26058,9 @@ var it_default = {
26056
26058
  "ir-transmitter.learn-undecodable": "Il codice appreso da {{name}} non può essere letto",
26057
26059
  "ir-transmitter.learn-busy": "Il trasmettitore {{name}} sta già apprendendo un codice",
26058
26060
  "ir-transmitter.native-unsupported": "Il trasmettitore {{name}} non può inviare questo tipo di codice",
26059
- "ir-transmitter.no-code": "Niente da inviare: indica un treno di impulsi o un codice nativo"
26061
+ "ir-transmitter.no-code": "Niente da inviare: indica un treno di impulsi o un codice nativo",
26062
+ "gallery.unknown-target": "Destinazione della galleria sconosciuta: {{id}}",
26063
+ "gallery.unknown-sample": "Campione della galleria sconosciuto: {{id}}"
26060
26064
  };
26061
26065
  //#endregion
26062
26066
  //#region src/i18n/catalog-registry.ts
@@ -266,6 +266,13 @@ export declare class TlsTcpTransporter extends TcpTransporterBase {
266
266
  * which swaps it for the no-expiry leaf. The WARN is not rate limited - it is a recovery event.
267
267
  */
268
268
  private admitExpiredLeaf;
269
+ /**
270
+ * The hub dialed a peer's TLS server: apply the verdict the inbound side applies (chain, CRL,
271
+ * a leaf that only expired is admitted) plus the CN must be the node dialed. The expired
272
+ * admission is not announced here: the peer's own inbound connection already hands the node to
273
+ * the renewal, and a second trigger would only double the log line.
274
+ */
275
+ private judgeDialedServer;
269
276
  private onTlsClientConnected;
270
277
  }
271
278
  export type { NetServer };
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-BHAE4TbZ.js");
1
+ const require_dist = require("./dist-DJx80O4F.js");
2
2
  //#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
3
3
  /**
4
4
  * Migration-only door for the leftover integration rows (planning#416).
@@ -1,4 +1,4 @@
1
- import { kc as collectSecretMarkerRefs } from "./dist-BBWAHu-O.mjs";
1
+ import { Ac as collectSecretMarkerRefs } from "./dist-D5_u_9iZ.mjs";
2
2
  //#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
3
3
  /**
4
4
  * Migration-only door for the leftover integration rows (planning#416).
@@ -1,4 +1,4 @@
1
- import { Il as errMsg, Ml as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./dist-BBWAHu-O.mjs";
1
+ import { Ll as errMsg, Nl as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./dist-D5_u_9iZ.mjs";
2
2
  //#region src/builtins/core-blocks/rename-composition-block.ts
3
3
  /**
4
4
  * An operator rename of a composed device writes the composition block's