@camstack/server 1.2.823 → 1.2.824

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 (104) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/api/trpc/generated-cap-routers.js +0 -45
  3. package/package.json +11 -10
  4. package/system/dist/addon-runner.js +24 -2
  5. package/system/dist/addon-runner.mjs +25 -3
  6. package/system/dist/addon-utils.d.ts +1 -0
  7. package/system/dist/addon-utils.js +2 -0
  8. package/system/dist/addon-utils.mjs +3 -2
  9. package/system/dist/{agent-https-Df53Fvk1.js → agent-https-B2nqARmj.js} +1 -1
  10. package/system/dist/{agent-https-CDl7mB_F.mjs → agent-https-BBO2OtNH.mjs} +1 -1
  11. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  12. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +4 -4
  13. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  14. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +5 -5
  15. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  16. package/system/dist/builtins/alerts/alerts.addon.mjs +3 -3
  17. package/system/dist/builtins/autotrack/index.js +1 -1
  18. package/system/dist/builtins/autotrack/index.mjs +1 -1
  19. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  20. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -5
  21. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  22. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  23. package/system/dist/builtins/camera-grid/index.js +1 -1
  24. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  25. package/system/dist/builtins/composer/composer.addon.js +4 -4
  26. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  27. package/system/dist/builtins/console-logging/index.js +1 -1
  28. package/system/dist/builtins/console-logging/index.mjs +1 -1
  29. package/system/dist/builtins/core-blocks/actions-service.d.ts +8 -0
  30. package/system/dist/builtins/core-blocks/core-blocks.addon.js +78 -22
  31. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +79 -23
  32. package/system/dist/builtins/core-blocks/record-kinds.d.ts +1 -0
  33. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  34. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  35. package/system/dist/builtins/device-manager/device-manager.addon.js +8 -3
  36. package/system/dist/builtins/device-manager/device-manager.addon.mjs +8 -3
  37. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  38. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  39. package/system/dist/builtins/keychain/index.js +4 -4
  40. package/system/dist/builtins/keychain/index.mjs +4 -4
  41. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  42. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  43. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  44. package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
  45. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  46. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  47. package/system/dist/builtins/loki-logging/index.js +1 -1
  48. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  49. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  50. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +10 -10
  51. package/system/dist/builtins/platform-probe/index.js +1 -1
  52. package/system/dist/builtins/platform-probe/index.mjs +10 -10
  53. package/system/dist/builtins/record-entries/index.js +1 -1
  54. package/system/dist/builtins/record-entries/index.mjs +1 -1
  55. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  56. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  57. package/system/dist/builtins/snapshot/index.js +1 -1
  58. package/system/dist/builtins/snapshot/index.mjs +1 -1
  59. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  60. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
  61. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  62. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  63. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  64. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  65. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  66. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  67. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  68. package/system/dist/builtins/system-config/system-config.addon.mjs +115 -115
  69. package/system/dist/builtins/winston-logging/index.js +1 -1
  70. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  71. package/system/dist/cap-call-scope-8eiugfLl.js +46 -0
  72. package/system/dist/cap-call-scope-Bic6Ekfw.mjs +30 -0
  73. package/system/dist/{capture-engine-D_GQBgrZ.mjs → capture-engine-C-rHYVFq.mjs} +1 -1
  74. package/system/dist/{capture-engine-C0Z5rwCO.js → capture-engine-DP4HbT3W.js} +1 -1
  75. package/system/dist/{composition-sources-mx-2yCDv.mjs → composition-sources-CL9JFN4y.mjs} +1 -1
  76. package/system/dist/{composition-sources-DIZx3mW3.js → composition-sources-CM9c_jAj.js} +1 -1
  77. package/system/dist/{constants-BQlx9HDp.mjs → constants-DzGFnCKZ.mjs} +1 -1
  78. package/system/dist/{constants-CAOcKiWT.js → constants-jk7JccZ0.js} +1 -1
  79. package/system/dist/{coral-accelerators-BW3OcrLD.mjs → coral-accelerators-DBlgWB8k.mjs} +6 -6
  80. package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
  81. package/system/dist/{device-ca-93LsCF_Q.js → device-ca-B7_R5WJh.js} +1 -1
  82. package/system/dist/{device-ca-CK6GTnNh.mjs → device-ca-DZ_OQiCc.mjs} +1 -1
  83. package/system/dist/{dist-BQiyo22b.mjs → dist-BgRMQHuL.mjs} +97 -160
  84. package/system/dist/{dist-izXDzt4g.js → dist-BpTL3uNe.js} +108 -159
  85. package/system/dist/file-host-worker.js +1 -1
  86. package/system/dist/file-host-worker.mjs +1 -1
  87. package/system/dist/{hub-mdns-ciao-srpOrqIP.mjs → hub-mdns-ciao-DIcBingB.mjs} +2 -2
  88. package/system/dist/{hub-mdns-ciao-Dt_tgvol.js → hub-mdns-ciao-DPUaYAD3.js} +2 -2
  89. package/system/dist/index.d.ts +1 -0
  90. package/system/dist/index.js +47 -29
  91. package/system/dist/index.mjs +257 -242
  92. package/system/dist/kernel/cap-call-scope.d.ts +10 -0
  93. package/system/dist/kernel/transport/cap-route-resolver.d.ts +27 -1
  94. package/system/dist/kernel/transport/child-cap-protocol.d.ts +1 -1
  95. package/system/dist/kernel/transport/parent-unowned-call.d.ts +0 -11
  96. package/system/dist/{legacy-integration-rows-door-wu2GWY6U.mjs → legacy-integration-rows-door-1GnkpMgH.mjs} +1 -1
  97. package/system/dist/{legacy-integration-rows-door-BH43eDu6.js → legacy-integration-rows-door-DYNePgj4.js} +1 -1
  98. package/system/dist/{rename-composition-block-CH6ZoSJA.mjs → rename-composition-block-Cp0_nwAI.mjs} +1 -1
  99. package/system/dist/{rename-composition-block-6oLQVzft.js → rename-composition-block-Dn2z4fnA.js} +1 -1
  100. package/system/dist/{restore-archive-C4rR2SYV.mjs → restore-archive-B3FEpUfz.mjs} +94 -94
  101. package/system/dist/{restore-archive-DpZ2PbLN.js → restore-archive-BGa5pdp9.js} +1 -1
  102. package/system/dist/{wal-maintenance-CNfp0HHX.mjs → wal-maintenance-BLWLlVfF.mjs} +0 -0
  103. package/system/dist/{wal-maintenance-DAA2qJja.js → wal-maintenance-GWFxnSnE.js} +0 -0
  104. package/system/package.json +1 -1
@@ -1221,7 +1221,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1221
1221
  */
1222
1222
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1223
1223
  //#endregion
1224
- //#region ../types/dist/sleep-B36hHDDz.mjs
1224
+ //#region ../types/dist/sleep-VrfKAAGN.mjs
1225
1225
  /**
1226
1226
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1227
1227
  * window to float samples (D455).
@@ -5567,15 +5567,58 @@ function assertTransactScope(members) {
5567
5567
  if (missing.length > 0) throw new TransactRefusedError(`no-family: ${missing.map((m) => m.kind).join(", ")} declare no transactFamily; kinds that must agree through transact share one`);
5568
5568
  if (new Set(kinds.map((m) => m.declaration.transactFamily)).size > 1) throw new TransactRefusedError(`cross-family: the ops span more than one transactFamily (${kinds.map((m) => `${m.kind}=${String(m.declaration.transactFamily)}`).join(", ")})`);
5569
5569
  }
5570
- zod.z.discriminatedUnion("kind", [zod.z.object({
5571
- kind: zod.z.literal("action"),
5572
- actionId: zod.z.string(),
5573
- runId: zod.z.string(),
5574
- automationId: zod.z.string().optional()
5575
- }), zod.z.object({
5576
- kind: zod.z.literal("scheduler"),
5577
- schedulerId: zod.z.string()
5578
- })]);
5570
+ /**
5571
+ * The match a notification rule fired on (D705). Carried as a command origin so an
5572
+ * Action the rule starts can press `alarm-panel.trigger` as that match, not as an
5573
+ * anonymous press (D735). The same fields a rule fire ref freezes.
5574
+ */
5575
+ var RuleFireOriginSchema = zod.z.object({
5576
+ ruleId: zod.z.string(),
5577
+ ruleName: zod.z.string(),
5578
+ deviceId: zod.z.number().int(),
5579
+ sourceDeviceId: zod.z.number().int().optional(),
5580
+ recordId: zod.z.string(),
5581
+ timestamp: zod.z.number(),
5582
+ trackId: zod.z.string().optional(),
5583
+ eventId: zod.z.string().optional(),
5584
+ className: zod.z.string().optional(),
5585
+ label: zod.z.string().optional(),
5586
+ zones: zod.z.array(zod.z.string()).optional(),
5587
+ confidence: zod.z.number().optional(),
5588
+ sensorChange: zod.z.object({
5589
+ name: zod.z.string(),
5590
+ kind: zod.z.string(),
5591
+ state: zod.z.string()
5592
+ }).optional(),
5593
+ extraStills: zod.z.array(zod.z.object({
5594
+ ownerId: zod.z.string(),
5595
+ cameraId: zod.z.number().int()
5596
+ })).optional()
5597
+ });
5598
+ zod.z.discriminatedUnion("kind", [
5599
+ zod.z.object({
5600
+ kind: zod.z.literal("action"),
5601
+ actionId: zod.z.string(),
5602
+ runId: zod.z.string(),
5603
+ automationId: zod.z.string().optional(),
5604
+ /** The rule fire that started this run, when one did (D705). */
5605
+ ruleFire: RuleFireOriginSchema.optional()
5606
+ }),
5607
+ zod.z.object({
5608
+ kind: zod.z.literal("scheduler"),
5609
+ schedulerId: zod.z.string()
5610
+ }),
5611
+ zod.z.object({
5612
+ kind: zod.z.literal("rule"),
5613
+ fire: RuleFireOriginSchema
5614
+ })
5615
+ ]);
5616
+ /** The rule fire a claim carries, if it carries one. */
5617
+ function ruleFireOfClaim(claim) {
5618
+ if (claim === void 0) return void 0;
5619
+ if (claim.kind === "rule") return claim.fire;
5620
+ if (claim.kind === "action") return claim.ruleFire;
5621
+ }
5579
5622
  /**
5580
5623
  * One recorded device transition (D1022): a status field of a device went from
5581
5624
  * one value to another, with who or what asked for it.
@@ -43765,30 +43808,21 @@ function convertLegacyWhen(half) {
43765
43808
  * (instants) and state leaves (durations). It replaces the flat trigger list
43766
43809
  * plus the separate condition tree; the firing rule is in that file and in
43767
43810
  * ADR "one tree".
43768
- * - **Actions** — `NcRuleActionSchema`'s two steps, plus the `{kind:'code'}`
43769
- * fragment of §3.2.2. See {@link AutomationActionSchema} for the ONE place
43770
- * this had to diverge from "verbatim", and why.
43811
+ * - **Actions** — the `wait` and `cap` steps, plus the `{kind:'code'}`
43812
+ * fragment of §3.2.2. See {@link AutomationActionSchema}.
43771
43813
  *
43772
43814
  * A recipe stored in the old shape (`triggers` + `conditions`) still LOADS:
43773
43815
  * {@link AutomationRecipeSchema} (the parse-anywhere schema) converts it on parse. Nothing writes it.
43774
43816
  */
43775
43817
  /**
43776
- * One action step.
43818
+ * One action step: `wait`, or a `cap` call.
43777
43819
  *
43778
- * `wait` and `cap` are `NcRuleActionSchema`'s two members, kept structurally
43779
- * identical so `NcRuleActionRunner` runs them unchanged — its device-scope
43780
- * check, stop-at-first-failure and per-sequence throttle are the whole reason
43781
- * to reuse it, and none of them are re-implemented here.
43782
- *
43783
- * **The one divergence, and it is forced.** `NcRuleActionSchema.cap.deviceId` is
43784
- * a literal `z.number().int()`, and the NC runner's own `RunSequencesInput`
43785
- * documents its subject device as *"for the log tag, never for routing"*. So an
43786
- * NC action can never target the device that triggered it — which is fine for
43787
- * the NC (its rules already scope to a device) and fatal for an automation
43788
- * ("sound the siren of the camera that saw the person"). `deviceId` therefore
43789
- * also accepts `{ $var }`, resolved from the run's `vars` bag BEFORE the runner
43790
- * is called. The runner still receives a number and is untouched; the
43791
- * resolution is the recipe's job, not the runner's.
43820
+ * A cap step's target is who it acts on (D983: `devices`, a `domain`, or a
43821
+ * `{ $var }` resolved from the run's variables); the legacy `deviceId` is still
43822
+ * READ, never written. The step runner (`runSteps`) owns the device-scope
43823
+ * check, the stop-at-first-failure and the variable substitution, once, for
43824
+ * every caller — automations, Actions, and the notification centre, which runs
43825
+ * only Actions (planning#473).
43792
43826
  */
43793
43827
  var AutomationWaitStepSchema = zod.z.object({
43794
43828
  kind: zod.z.literal("wait"),
@@ -45118,6 +45152,8 @@ var IDLE_ACTION_STATUS = {
45118
45152
  lastRunAt: null,
45119
45153
  lastError: null
45120
45154
  };
45155
+ /** The throttle window of an action, in seconds; absent or 0 = no throttle. */
45156
+ var ActionMinDelaySecSchema = zod.z.number().int().min(0).max(86400);
45121
45157
  var ActionEntrySchema = zod.z.object({
45122
45158
  /** `internal:<uuid>` or `<addonId>:<localId>`. */
45123
45159
  id: zod.z.string().min(3),
@@ -45130,6 +45166,14 @@ var ActionEntrySchema = zod.z.object({
45130
45166
  /** Internal only: cap and wait steps. No action-in-action, so no cycles. */
45131
45167
  steps: zod.z.array(ActionStepSchema).min(1).max(50).optional(),
45132
45168
  variables: zod.z.array(ActionVariableSchema).max(20).optional(),
45169
+ /**
45170
+ * Internal only: the least time between two run STARTS. A run that begins
45171
+ * inside the window is skipped (`skipped-cooldown`), traced and logged. It
45172
+ * is an actuator's budget — "how often may this gate physically open" —
45173
+ * not a notification cooldown, and it is shared by every caller of the
45174
+ * action (two rules, a button, an automation).
45175
+ */
45176
+ minDelaySec: ActionMinDelaySecSchema.optional(),
45133
45177
  status: ActionStatusSchema
45134
45178
  }).superRefine((entry, ctx) => {
45135
45179
  if (entry.source === "internal") {
@@ -45160,7 +45204,8 @@ var ActionEntrySchema = zod.z.object({
45160
45204
  var ActionInputSchema = zod.z.object({
45161
45205
  name: zod.z.string().min(1).max(120),
45162
45206
  steps: zod.z.array(ActionStepSchema).min(1).max(50),
45163
- variables: zod.z.array(ActionVariableSchema).max(20).optional()
45207
+ variables: zod.z.array(ActionVariableSchema).max(20).optional(),
45208
+ minDelaySec: ActionMinDelaySecSchema.optional()
45164
45209
  });
45165
45210
  /** Who started a run. Absent = the operator pressed it. */
45166
45211
  var ActionRunOriginSchema = zod.z.object({
@@ -78615,101 +78660,21 @@ var NcZoneConditionSchema = zod.z.object({
78615
78660
  * membership lists are OR within the list (spec §2.3).
78616
78661
  */
78617
78662
  /**
78618
- * What a rule may actuate.
78619
- *
78620
- * **No hand-maintained allowlist** (operator decision, and the right one — a
78621
- * written list of methods is a third parallel map to keep aligned, and this
78622
- * repo has paid for those). The boundary instead comes from a property the
78623
- * capabilities already carry: an action may target only a **device-scoped**
78624
- * capability method.
78625
- *
78626
- * That is not decoration. A rule can be authored by a NON-ADMIN — personal
78627
- * rules are a supported flow — and the executor runs with the addon's
78628
- * privileges, so an unbounded action is an arbitrary RPC channel with a
78629
- * privilege escalation attached. Restricting to device scope excludes the
78630
- * system caps (`device-manager.removeDevice` and friends) by construction,
78631
- * costs nothing to maintain, and cannot rot: a cap that stops being
78632
- * device-scoped stops being actuatable in the same change.
78663
+ * What a rule or a button runs: an **Action** of the `actions` surface
78664
+ * (`internal:<uuid>` or an addon's), by id, and nothing else (planning#473).
78633
78665
  *
78634
- * The executor enforces it; {@link NcRuleActionSchema} carries the intent.
78666
+ * The notification centre has no step vocabulary of its own. The steps, the
78667
+ * device-scope boundary, the stop-at-first-failure, the throttle
78668
+ * (`minDelaySec`), the variables and the runs ledger all belong to the Action;
78669
+ * an operator edits them in ONE place (the Actions page) and a rule points at
78670
+ * the result. A rule can be authored by a non-admin (personal rules), which is
78671
+ * safe for the same reason: it can only name an Action an admin already wrote.
78635
78672
  */
78673
+ var NcActionIdSchema = zod.z.string().min(1);
78674
+ /** Action ids one hook edge runs, in order. Capped so a slot never becomes a second editor. */
78675
+ var NcHookActionIdsSchema = zod.z.array(NcActionIdSchema).max(4);
78636
78676
  /**
78637
- * One step of a sequence.
78638
- *
78639
- * `wait` is a first-class step rather than a property of the next action: it is
78640
- * what makes a sequence a SEQUENCE and not a list — "unlock, wait 5s, open"
78641
- * cannot be expressed otherwise.
78642
- */
78643
- var NcRuleActionSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
78644
- kind: zod.z.literal("wait"),
78645
- seconds: zod.z.number().min(0).max(300)
78646
- }), zod.z.object({
78647
- kind: zod.z.literal("cap"),
78648
- /**
78649
- * WHO the step acts on (D983) — the only shape that is written. A sequence
78650
- * stored before D983 carries `deviceId`; the sequence store reads it as a
78651
- * `devices` target.
78652
- */
78653
- target: ActionTargetSchema.optional(),
78654
- /** The vocabulary action the step performs; required for a `domain` target. */
78655
- actionId: zod.z.string().min(1).optional(),
78656
- /** @deprecated The pre-D983 single device. Read, never written. */
78657
- deviceId: zod.z.number().int().optional(),
78658
- /** Capability name, e.g. `alarm-panel`. */
78659
- cap: zod.z.string().min(1),
78660
- /** Method on it. The executor refuses a non-device-scoped cap. */
78661
- method: zod.z.string().min(1),
78662
- /** Method arguments, minus `deviceId` (the executor injects it). */
78663
- args: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
78664
- }).refine((step) => step.target !== void 0 || step.deviceId !== void 0, {
78665
- message: "a cap step needs a target",
78666
- path: ["target"]
78667
- }).refine((step) => step.target?.kind !== "domain" || step.actionId !== void 0, {
78668
- message: "a domain target needs the vocabulary action it applies to (actionId)",
78669
- path: ["actionId"]
78670
- })]);
78671
- /**
78672
- * A named, ordered run of steps shared across rules, with its own throttle.
78673
- *
78674
- * Sequences live in the notification centre's sequence store — never inline on
78675
- * a rule. A rule binds to one by id ({@link NcActionBindingSchema}), and a
78676
- * button names one the same way. `minDelaySec` exists because a noisy rule
78677
- * otherwise hammers a physical actuator — the rule's own cooldown governs
78678
- * NOTIFICATIONS, which is a different budget from "how often may this gate
78679
- * actually open". The throttle key is the sequence id, so two rules sharing
78680
- * one sequence share its budget.
78681
- */
78682
- var NcSharedSequenceSchema = zod.z.object({
78683
- id: zod.z.string().min(1),
78684
- name: zod.z.string().min(1).max(120),
78685
- minDelaySec: zod.z.number().int().min(0).max(86400).optional(),
78686
- actions: zod.z.array(NcRuleActionSchema).min(1)
78687
- });
78688
- /** Create / update body — the id is minted by the provider. */
78689
- var NcSharedSequenceInputSchema = zod.z.object({
78690
- name: zod.z.string().min(1).max(120),
78691
- minDelaySec: zod.z.number().int().min(0).max(86400).optional(),
78692
- actions: zod.z.array(NcRuleActionSchema).min(1)
78693
- });
78694
- /**
78695
- * What one hook slot may run: a shared sequence, or a single step authored
78696
- * inline ("Do").
78697
- *
78698
- * A button may ONLY name a sequence — a one-shot Do on a public callback would
78699
- * be a parallel actuation vocabulary with no throttle and no shared authoring
78700
- * surface.
78701
- */
78702
- var NcActionBindingSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
78703
- kind: zod.z.literal("sequence"),
78704
- sequenceId: zod.z.string().min(1)
78705
- }), zod.z.object({
78706
- kind: zod.z.literal("do"),
78707
- action: NcRuleActionSchema
78708
- })]);
78709
- /** Bindings on one hook edge. Cap keeps a slot from becoming a second sequence editor. */
78710
- var NcHookBindingsSchema = zod.z.array(NcActionBindingSchema).max(4);
78711
- /**
78712
- * One button carried by the notification, running a shared sequence on tap.
78677
+ * One button carried by the notification, running an Action on tap.
78713
78678
  *
78714
78679
  * **Read this before adding a button that does something physical.** The tap
78715
78680
  * arrives over a link that travelled through third-party infrastructure — ntfy,
@@ -78724,9 +78689,9 @@ var NcRuleNotificationButtonSchema = zod.z.object({
78724
78689
  /** Stable id — travels in the callback and identifies the button in logs. */
78725
78690
  id: zod.z.string().min(1).max(64),
78726
78691
  label: zod.z.string().min(1).max(40),
78727
- /** Id of a shared sequence. The dispatcher drops a button whose sequence
78728
- * does not exist rather than minting a token for nothing. */
78729
- sequenceId: zod.z.string().min(1),
78692
+ /** The Action the tap runs. The dispatcher drops a button whose Action does
78693
+ * not exist rather than minting a token for nothing. */
78694
+ actionId: NcActionIdSchema,
78730
78695
  icon: NotificationActionIconSchema.optional(),
78731
78696
  destructive: zod.z.boolean().optional()
78732
78697
  });
@@ -78741,25 +78706,19 @@ var NcRuleNotificationButtonSchema = zod.z.object({
78741
78706
  * leave). A delivery with no clear edge never produces this hook.
78742
78707
  */
78743
78708
  var NcRuleActionsSchema = zod.z.object({
78744
- onActivation: NcHookBindingsSchema.optional(),
78745
- onDeactivation: NcHookBindingsSchema.optional(),
78709
+ onActivation: NcHookActionIdsSchema.optional(),
78710
+ onDeactivation: NcHookActionIdsSchema.optional(),
78746
78711
  /** Runs on a positive / raised match. */
78747
- onTrigger: NcHookBindingsSchema.optional(),
78712
+ onTrigger: NcHookActionIdsSchema.optional(),
78748
78713
  /** Runs on a clear / leave match, when the subject carries one. */
78749
- onTriggerOff: NcHookBindingsSchema.optional(),
78714
+ onTriggerOff: NcHookActionIdsSchema.optional(),
78750
78715
  /**
78751
- * Buttons the NOTIFICATION carries, each running one shared sequence when
78752
- * tapped. Deliberately a REFERENCE — a button that could define its own
78753
- * actions would be a parallel actuation vocabulary.
78716
+ * Buttons the NOTIFICATION carries, each running one Action when tapped.
78717
+ * Deliberately a REFERENCE — a button that could define its own steps would
78718
+ * be a parallel actuation vocabulary.
78754
78719
  */
78755
78720
  buttons: zod.z.array(NcRuleNotificationButtonSchema).max(8).optional()
78756
78721
  });
78757
- zod.z.object({
78758
- name: zod.z.string().min(1).max(120),
78759
- enabled: zod.z.boolean(),
78760
- minDelaySec: zod.z.number().int().min(0).max(86400).optional(),
78761
- actions: zod.z.array(NcRuleActionSchema).min(1)
78762
- });
78763
78722
  /**
78764
78723
  * "This rule applies only while `deviceId` is in one of `states`."
78765
78724
  *
@@ -80473,28 +80432,6 @@ var notificationRulesCapability = {
80473
80432
  auth: "admin"
80474
80433
  }),
80475
80434
  /**
80476
- * Shared action sequences — named step lists rules and buttons bind to by
80477
- * id. One store for the whole notification centre so two rules sharing a
80478
- * gate share its throttle too.
80479
- */
80480
- listSequences: method(zod.z.object({}), zod.z.object({ sequences: zod.z.array(NcSharedSequenceSchema) }), { auth: "admin" }),
80481
- getSequence: method(zod.z.object({ sequenceId: zod.z.string().min(1) }), zod.z.object({ sequence: NcSharedSequenceSchema.nullable() }), { auth: "admin" }),
80482
- createSequence: method(zod.z.object({ sequence: NcSharedSequenceInputSchema }), zod.z.object({ sequence: NcSharedSequenceSchema }), {
80483
- kind: "mutation",
80484
- auth: "admin"
80485
- }),
80486
- updateSequence: method(zod.z.object({
80487
- sequenceId: zod.z.string().min(1),
80488
- sequence: NcSharedSequenceInputSchema
80489
- }), zod.z.object({ sequence: NcSharedSequenceSchema }), {
80490
- kind: "mutation",
80491
- auth: "admin"
80492
- }),
80493
- deleteSequence: method(zod.z.object({ sequenceId: zod.z.string().min(1) }), zod.z.object({ success: zod.z.literal(true) }), {
80494
- kind: "mutation",
80495
- auth: "admin"
80496
- }),
80497
- /**
80498
80435
  * WHAT THE RULES ACTUALLY ASK the stream broker to retain, per camera.
80499
80436
  *
80500
80437
  * The notification centre owns the rules, so it is the only thing that can
@@ -118567,6 +118504,12 @@ Object.defineProperty(exports, "ActionError", {
118567
118504
  return ActionError;
118568
118505
  }
118569
118506
  });
118507
+ Object.defineProperty(exports, "ActionMinDelaySecSchema", {
118508
+ enumerable: true,
118509
+ get: function() {
118510
+ return ActionMinDelaySecSchema;
118511
+ }
118512
+ });
118570
118513
  Object.defineProperty(exports, "ActionStepSchema", {
118571
118514
  enumerable: true,
118572
118515
  get: function() {
@@ -121087,6 +121030,12 @@ Object.defineProperty(exports, "resolveTemplateRef", {
121087
121030
  return resolveTemplateRef;
121088
121031
  }
121089
121032
  });
121033
+ Object.defineProperty(exports, "ruleFireOfClaim", {
121034
+ enumerable: true,
121035
+ get: function() {
121036
+ return ruleFireOfClaim;
121037
+ }
121038
+ });
121090
121039
  Object.defineProperty(exports, "runFanOut", {
121091
121040
  enumerable: true,
121092
121041
  get: function() {
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Cek0wNdY.js");
2
- const require_wal_maintenance = require("./wal-maintenance-DAA2qJja.js");
2
+ const require_wal_maintenance = require("./wal-maintenance-GWFxnSnE.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-CNfp0HHX.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-BLWLlVfF.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,7 +1,7 @@
1
1
  import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
2
- import { Xc as userError } from "./dist-BQiyo22b.mjs";
2
+ import { Qc as userError } from "./dist-BgRMQHuL.mjs";
3
3
  import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
4
- import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-CDl7mB_F.mjs";
4
+ import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-BBO2OtNH.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
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-izXDzt4g.js");
2
+ const require_dist = require("./dist-BpTL3uNe.js");
3
3
  const require_x509_es = require("./x509.es-WtnRNyYS.js");
4
- const require_agent_https = require("./agent-https-Df53Fvk1.js");
4
+ const require_agent_https = require("./agent-https-B2nqARmj.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");
@@ -143,6 +143,7 @@ export { storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/
143
143
  export { backupOrchestratorRecordKinds, backupRecordStoresOf, type BackupRecordStores } from "./builtins/backup-orchestrator/record-kinds.js";
144
144
  export { readAllRows } from "./records/read-all-rows.js";
145
145
  export { clearNodeSettings } from "./kernel/addon-settings-store.js";
146
+ export { currentCapCallContext, readCurrentCommandOrigin, runWithCapCallContext } from "./kernel/cap-call-scope.js";
146
147
  export { RecordsEngine, type RecordsEngineOptions } from "./builtins/sqlite-storage/records/records-engine.js";
147
148
  export { type EnsureAddonNativePrebuildsOptions, ensureAddonNativePrebuilds, type NativeEnsureOutcome, type NativeEnsureResult } from "./kernel/deps/ensure-addon-natives.js";
148
149
  export { type EnsureNativePrebuildsOptions, ensureNativePrebuilds, hasDotNode, NATIVE_SCAN_DEPTH, type PrebuildFetchFn, type PrebuildTarget, TRADITIONAL_NATIVE_PACKAGES } from "./kernel/deps/ensure-native-prebuilds.js";
@@ -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-izXDzt4g.js");
4
- const require_device_ca = require("./device-ca-93LsCF_Q.js");
3
+ const require_dist = require("./dist-BpTL3uNe.js");
4
+ const require_device_ca = require("./device-ca-B7_R5WJh.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");
@@ -13,6 +13,7 @@ require("./builtins/composer/index.js");
13
13
  const require_formatter = require("./formatter-xbxeV4GD.js");
14
14
  const require_builtins_console_logging_index = require("./builtins/console-logging/index.js");
15
15
  const require_prefix_walk = require("./prefix-walk-Dv6MLZlM.js");
16
+ const require_cap_call_scope = require("./cap-call-scope-8eiugfLl.js");
16
17
  const require_builtins_core_blocks_core_blocks_addon = require("./builtins/core-blocks/core-blocks.addon.js");
17
18
  require("./builtins/core-blocks/index.js");
18
19
  const require_builtins_device_manager_device_manager_addon = require("./builtins/device-manager/device-manager.addon.js");
@@ -27,22 +28,22 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
27
28
  const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
28
29
  const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
29
30
  const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
30
- const require_wal_maintenance = require("./wal-maintenance-DAA2qJja.js");
31
- const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-BH43eDu6.js");
31
+ const require_wal_maintenance = require("./wal-maintenance-GWFxnSnE.js");
32
+ const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-DYNePgj4.js");
32
33
  const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
33
34
  const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
34
35
  const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
35
36
  require("./builtins/storage-orchestrator/index.js");
36
- const require_agent_https = require("./agent-https-Df53Fvk1.js");
37
- const require_constants = require("./constants-CAOcKiWT.js");
37
+ const require_agent_https = require("./agent-https-B2nqARmj.js");
38
+ const require_constants = require("./constants-jk7JccZ0.js");
38
39
  const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
39
40
  require("./builtins/system-config/index.js");
40
41
  const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
41
42
  const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
42
- const require_hub_mdns_ciao = require("./hub-mdns-ciao-Dt_tgvol.js");
43
+ const require_hub_mdns_ciao = require("./hub-mdns-ciao-DPUaYAD3.js");
43
44
  const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
44
45
  const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
45
- const require_restore_archive = require("./restore-archive-DpZ2PbLN.js");
46
+ const require_restore_archive = require("./restore-archive-BGa5pdp9.js");
46
47
  const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
47
48
  let zod = require("zod");
48
49
  let node_crypto = require("node:crypto");
@@ -17870,9 +17871,9 @@ var CapRouteResolver = class {
17870
17871
  * {@link CapCallInput.callerAddonId} so the child can stamp before invoke
17871
17872
  * (without it, `stampCallerAddonId` strips an args-only claim).
17872
17873
  */
17873
- async dispatch(route, method, args, addonId, callerAddonId) {
17874
+ async dispatch(route, method, args, addonId, callerAddonId, origin) {
17874
17875
  try {
17875
- return await this.dispatchInner(route, method, args, addonId, callerAddonId);
17876
+ return await this.dispatchInner(route, method, args, addonId, callerAddonId, origin);
17876
17877
  } catch (err) {
17877
17878
  if (err instanceof CapRouteError) throw err;
17878
17879
  if (route.kind === "hub-in-process" || err instanceof PeerAnsweredError) throw err;
@@ -17892,9 +17893,13 @@ var CapRouteResolver = class {
17892
17893
  * Inner dispatch: may throw CapRouteError (validation failures) or arbitrary
17893
17894
  * transport errors. The outer `dispatch` wraps non-CapRouteErrors.
17894
17895
  */
17895
- async dispatchInner(route, method, args, addonId, callerAddonId) {
17896
+ async dispatchInner(route, method, args, addonId, callerAddonId, origin) {
17897
+ const carried = origin ?? require_cap_call_scope.readCurrentCommandOrigin();
17896
17898
  switch (route.kind) {
17897
- case "hub-in-process": return route.ref.invoke(method, stampCallerAddonId(args, callerAddonId));
17899
+ case "hub-in-process": {
17900
+ const invoke = () => route.ref.invoke(method, stampCallerAddonId(args, callerAddonId));
17901
+ return carried === void 0 ? invoke() : require_cap_call_scope.runWithCapCallContext((0, _camstack_types_addon.commandOrigin)(carried).context, invoke);
17902
+ }
17898
17903
  case "hub-local-uds": {
17899
17904
  const registry = this.hubLocalRegistry;
17900
17905
  if (registry === null) throw new CapRouteError(route.capName, method, {
@@ -17911,7 +17916,8 @@ var CapRouteResolver = class {
17911
17916
  method,
17912
17917
  args,
17913
17918
  ...deviceId !== void 0 ? { deviceId } : {},
17914
- ...wireCaller !== void 0 ? { callerAddonId: wireCaller } : {}
17919
+ ...wireCaller !== void 0 ? { callerAddonId: wireCaller } : {},
17920
+ ...carried !== void 0 ? { origin: carried } : {}
17915
17921
  };
17916
17922
  return registry.callCapOnChild(route.childId, input);
17917
17923
  }
@@ -21037,7 +21043,8 @@ var LocalChildRegistry = class {
21037
21043
  args: input.args,
21038
21044
  ...input.deviceId !== void 0 ? { deviceId: input.deviceId } : {},
21039
21045
  ...input.addonId !== void 0 ? { addonId: input.addonId } : {},
21040
- ...input.callerAddonId !== void 0 ? { callerAddonId: input.callerAddonId } : {}
21046
+ ...input.callerAddonId !== void 0 ? { callerAddonId: input.callerAddonId } : {},
21047
+ ...input.origin !== void 0 ? { origin: input.origin } : {}
21041
21048
  };
21042
21049
  }
21043
21050
  listChildren() {
@@ -21295,6 +21302,7 @@ var LocalChildRegistry = class {
21295
21302
  args: materialise(),
21296
21303
  ...out.deviceId !== void 0 ? { deviceId: out.deviceId } : {},
21297
21304
  ...out.nodeId !== void 0 ? { nodeId: out.nodeId } : {},
21305
+ ...out.origin !== void 0 ? { origin: out.origin } : {},
21298
21306
  ...out.native === true ? { native: true } : {},
21299
21307
  ...callerStamp !== null ? { callerAddonId: callerStamp } : {}
21300
21308
  });
@@ -21587,7 +21595,8 @@ var LocalChildClient = class {
21587
21595
  args,
21588
21596
  ...msg.deviceId !== void 0 ? { deviceId: msg.deviceId } : {},
21589
21597
  ...msg.addonId !== void 0 ? { addonId: msg.addonId } : {},
21590
- ...msg.callerAddonId !== void 0 ? { callerAddonId: msg.callerAddonId } : {}
21598
+ ...msg.callerAddonId !== void 0 ? { callerAddonId: msg.callerAddonId } : {},
21599
+ ...msg.origin !== void 0 ? { origin: msg.origin } : {}
21591
21600
  });
21592
21601
  if (payload !== void 0 && result !== void 0) return new PayloadReply(void 0, packPayload(result));
21593
21602
  return result;
@@ -22020,6 +22029,12 @@ var delay$1 = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
22020
22029
  * - surfaces a clear error when the call is genuinely unroutable (so the
22021
22030
  * child's call rejects rather than hanging).
22022
22031
  */
22032
+ /** Resolver dispatch that keeps a 3-arg call when the frame carried nothing extra. */
22033
+ function dispatchInbound(resolver, route, input) {
22034
+ if (input.origin !== void 0) return resolver.dispatch(route, input.method, input.args, void 0, input.callerAddonId, input.origin);
22035
+ if (input.callerAddonId !== void 0) return resolver.dispatch(route, input.method, input.args, void 0, input.callerAddonId);
22036
+ return resolver.dispatch(route, input.method, input.args);
22037
+ }
22023
22038
  function createParentUnownedCallHandler(deps) {
22024
22039
  return async (input) => {
22025
22040
  const argDeviceId = input.deviceId ?? extractDeviceId(input.args);
@@ -22071,11 +22086,10 @@ function createParentUnownedCallHandler(deps) {
22071
22086
  }
22072
22087
  const resolver = deps.getResolver();
22073
22088
  if (resolver !== null) try {
22074
- const route = resolver.resolveCapRoute(input.capName, {
22089
+ return await dispatchInbound(resolver, resolver.resolveCapRoute(input.capName, {
22075
22090
  ...nodeId !== void 0 ? { nodeId } : {},
22076
22091
  ...deviceId !== void 0 ? { deviceId } : {}
22077
- });
22078
- return input.callerAddonId !== void 0 ? await resolver.dispatch(route, input.method, input.args, void 0, input.callerAddonId) : await resolver.dispatch(route, input.method, input.args);
22092
+ }), input);
22079
22093
  } catch (err) {
22080
22094
  if (!(err instanceof CapRouteError) || err.reason !== "no-provider") throw err;
22081
22095
  }
@@ -22127,11 +22141,10 @@ function createParentUnownedCallHandler(deps) {
22127
22141
  await delay$1(ADDON_CAP_RETRY_DELAY_MS);
22128
22142
  const retryResolver = deps.getResolver();
22129
22143
  if (retryResolver !== null) try {
22130
- const route = retryResolver.resolveCapRoute(input.capName, {
22144
+ return await dispatchInbound(retryResolver, retryResolver.resolveCapRoute(input.capName, {
22131
22145
  ...nodeId !== void 0 ? { nodeId } : {},
22132
22146
  ...deviceId !== void 0 ? { deviceId } : {}
22133
- });
22134
- return input.callerAddonId !== void 0 ? await retryResolver.dispatch(route, input.method, input.args, void 0, input.callerAddonId) : await retryResolver.dispatch(route, input.method, input.args);
22147
+ }), input);
22135
22148
  } catch (err) {
22136
22149
  if (!(err instanceof CapRouteError) || err.reason !== "no-provider") throw err;
22137
22150
  }
@@ -22533,14 +22546,16 @@ function deviceCapResolverLink(dispatch, isDeviceScoped) {
22533
22546
  const deviceId = input !== null && typeof input === "object" ? Reflect.get(input, "deviceId") : void 0;
22534
22547
  if (typeof deviceId !== "number" || !Number.isFinite(deviceId)) return next(op);
22535
22548
  return require_builtins_device_manager_device_manager_addon.observable((observer) => {
22536
- dispatch(parsed.capName, parsed.method, input).then((data) => {
22537
- observer.next({ result: {
22538
- type: "data",
22539
- data
22540
- } });
22541
- observer.complete();
22542
- }).catch((cause) => {
22543
- observer.error(_trpc_client.TRPCClientError.from(cause instanceof Error ? cause : new Error(String(cause))));
22549
+ require_cap_call_scope.runWithCapCallContext(op.context, () => {
22550
+ dispatch(parsed.capName, parsed.method, input).then((data) => {
22551
+ observer.next({ result: {
22552
+ type: "data",
22553
+ data
22554
+ } });
22555
+ observer.complete();
22556
+ }).catch((cause) => {
22557
+ observer.error(_trpc_client.TRPCClientError.from(cause instanceof Error ? cause : new Error(String(cause))));
22558
+ });
22544
22559
  });
22545
22560
  return () => {};
22546
22561
  });
@@ -28811,6 +28826,7 @@ exports.createUdsLogger = createUdsLogger;
28811
28826
  exports.createUdsLoggerWithControl = createUdsLoggerWithControl;
28812
28827
  exports.createV8Reclaimer = createV8Reclaimer;
28813
28828
  exports.currentBrokerTransporter = currentBrokerTransporter;
28829
+ exports.currentCapCallContext = require_cap_call_scope.currentCapCallContext;
28814
28830
  exports.decideAddonVersionMove = decideAddonVersionMove;
28815
28831
  exports.deleteModelFromDisk = require_custom_action_registry.deleteModelFromDisk;
28816
28832
  exports.deriveAgentListenPort = deriveAgentListenPort;
@@ -29035,6 +29051,7 @@ Object.defineProperty(exports, "readAllRows", {
29035
29051
  });
29036
29052
  exports.readBackupEncryptionHeader = require_restore_archive.readBackupEncryptionHeader;
29037
29053
  exports.readCidrSetting = require_builtins_system_config_system_config_addon.readCidrSetting;
29054
+ exports.readCurrentCommandOrigin = require_cap_call_scope.readCurrentCommandOrigin;
29038
29055
  exports.readExtraSans = require_hub_mdns_ciao.readExtraSans;
29039
29056
  exports.readHeapSpaces = readHeapSpaces;
29040
29057
  exports.readLanHttpState = require_hub_mdns_ciao.readLanHttpState;
@@ -29073,6 +29090,7 @@ exports.revokeMeshCertificate = require_builtins_system_config_system_config_add
29073
29090
  exports.runHubAddonBoot = runHubAddonBoot;
29074
29091
  exports.runNpm = runNpm;
29075
29092
  exports.runObservedCommand = require_builtins_device_manager_device_manager_addon.runObservedCommand;
29093
+ exports.runWithCapCallContext = require_cap_call_scope.runWithCapCallContext;
29076
29094
  exports.sampleSocketDirection = sampleSocketDirection;
29077
29095
  exports.scheduleSelfRestart = scheduleSelfRestart;
29078
29096
  exports.scopeKey = require_dist.scopeKey;