@camstack/server 1.2.890 → 1.2.891
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/api/trpc/generated-cap-routers.js +18 -0
- package/package.json +12 -16
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +112 -15
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +112 -15
- package/system/dist/builtins/core-blocks/tags-service.d.ts +20 -3
- package/system/dist/builtins/core-blocks/tags-wiring.d.ts +15 -2
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-C1vdBL88.js → capture-engine-DXz37Mjg.js} +1 -1
- package/system/dist/{capture-engine-B1bMuzVX.mjs → capture-engine-nmelnj-Y.mjs} +1 -1
- package/system/dist/{composition-sources-BfLlyKRe.js → composition-sources-BLn3cU74.js} +1 -1
- package/system/dist/{composition-sources-Dj6qn5PP.mjs → composition-sources-uphZtYtN.mjs} +1 -1
- package/system/dist/{constants-DuB_xXYx.js → constants-BAaGwvKn.js} +1 -1
- package/system/dist/{constants-Ba51ywI4.mjs → constants-DWU46D02.mjs} +1 -1
- package/system/dist/{device-ca-CkXjf3ms.mjs → device-ca-CK6mLB2w.mjs} +1 -1
- package/system/dist/{device-ca-CVjaotgX.js → device-ca-jbH_rqZh.js} +1 -1
- package/system/dist/{dist-BKojK6Wf.mjs → dist-Dgq9nuvh.mjs} +103 -11
- package/system/dist/{dist-BjhII4Uq.js → dist-m5beNMze.js} +108 -10
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-C0ehkt78.js → hub-identity-CKCA89XP.js} +1 -1
- package/system/dist/{hub-identity-C0qf888i.mjs → hub-identity-DlBBoHJC.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-BYe34S2Q.mjs → hub-mdns-ciao-B8uFW-RG.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DJHjyjvT.js → hub-mdns-ciao-CqcCGPdi.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-G6EceE_J.js → legacy-integration-rows-door-Co0gj1Lm.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-BEYgXSXr.mjs → legacy-integration-rows-door-HI4nmSe_.mjs} +1 -1
- package/system/dist/{rename-composition-block-D6bq3Twf.mjs → rename-composition-block-BthBMrXA.mjs} +1 -1
- package/system/dist/{rename-composition-block-D1mO51F9.js → rename-composition-block-UeVUYCwx.js} +1 -1
- package/system/dist/{restore-archive-CJvMq13C.js → restore-archive-CJLsfBwK.js} +1 -1
- package/system/dist/{restore-archive-FXsCWq_f.mjs → restore-archive-P-ICnU58.mjs} +1 -1
- package/system/dist/{wal-maintenance-COJ_JxrD.js → wal-maintenance-CUtwx-2Z.js} +0 -0
- package/system/dist/{wal-maintenance-Ci9Dl-lB.mjs → wal-maintenance-qWjb7_f2.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $a as
|
|
1
|
+
import { $a as resolveCoreBlockFiles, $r as fanAxisPath, Ac as actionEffect, Al as ruleFireOfClaim, Ao as stableIdMapOf, Ar as describeComposableCaps, B as DEFAULT_HOLD_OVERRIDE, Bc as collectSecretMarkerRefs, Bl as vocabActionIdFor, Cn as actionSourceCapability, Cs as composedDeviceRef, D as CORE_BLOCK_ADDON_PREFIX, Dr as defaultTagColorId, E as CORE_BLOCKS_ADDON_ID, Ea as powerSourceLinkOfComposition, En as addonIdOfActionId, Eo as siteFor, Et as INTERNAL_ACTION_PREFIX, Fa as readRecipeLiteral, Fi as kebabToCamel, Fn as assertStepsOffered, Ft as MediaPlayerStatusSchema, Ga as removeFromTags, Gi as lockDoorLinkOfComposition, Gl as DeviceRole, Gn as buildHeroModel, Go as timedRunLimitOf, Gt as PowerSourceInfoSchema, Ha as remoteCapability, Hn as buildCapabilityLookup, Ho as tagsCapability, Ia as readStoredRemoteConfig, Ja as replacedFieldKeys, Jc as defineEntryKind, Jo as timedRunSeconds, Ka as renameInTags, Kc as defineAddonMigrations, Kl as DeviceType$1, Ko as timedRunMaxIn, Kr as evaluateStepCondition, Ma as projectDeviceRow, N as CoreBlockSchema, Na as proposeRunningThreshold, Nl as secretTreeFromSchema, Nn as appendTrace, Ns as helperMembers, Oa as prepareRecipeUnits, Oc as VocabActionError, Os as compositionSourceKey, Ps as historyRetentionFromSettings, Qa as resolveCoreBlockEntry, Qc as entryBody, Qn as capUnitResolver, Qo as validateComposition, Rl as transformSecretWrite, Rt as NcTaggedRuleKindSchema, Sa as planComposition, T as COMPOSER_RUNNER_ID, Ta as powerSourceCapability, Ti as isBuiltinTemplateId, Tn as actionsCapability, Ts as compositionFeatureEnabled, Tt as IDLE_ACTION_STATUS, Ua as remoteLayoutComponentsCapability, Uc as commandOrigin$1, Uo as templateCapability, Va as reexpandAutomationInstance, Vi as localDateOf, Vl as vocabCall, Vn as buildActionSteps, Vo as tagKey, Wa as remoteSourceSteps, Wo as timedRunCapability, Ya as resolveActionVariables, Yc as defineRecordKinds, Yl as EventCategory$1, Yo as toTimings, Yt as QuantityUnitError, Zn as canonicalStoredStepTargets, Zt as REMOTE_MEDIA_COMMANDS, _ as BUILTIN_REMOTE_COMPONENTS, _c as RecordIntegrationInstances, _i as integrationInstancesCapability, _n as TagStyleSchema, _r as coreBlockSourceKind, ai as findChannelSource, ar as collectWhenMirrorSources, as as weekdayOfLocalDate, c as ActionError, ca as normalizeActionUnits, co as resolveStepArgs, cr as compileScalarOverride, cs as zoneOnlySite, ct as EMPTY_REMOTE_CONFIG, d as ActionTargetResolver, do as runSteps, dr as compositionSourceRefs, ds as DAY_MS, dt as FAN_OSCILLATION_AXES, en as RemoteAssumedStateSchema, eo as resolveHeroLayout, es as validateSchedulerInput, f as ActionVariableSchema, fr as compositionUnionReads, ft as FAN_OSCILLATION_AXIS_SETTABLE, g as BUILTIN_AUTOMATION_TEMPLATES, gi as instanceCodeHash, gl as isSecretRefOwnedBy, gn as TagNameSchema, gr as coreBlockIdFromAddonId, gs as HelperMemberSchema, gt as FanPresetSchema, h as AutomationTemplatePayloadSchema, hi as heroLayoutCapability, hr as coreBlockComposition, il as hydrateSchema, ir as collectDeviceTemplates, j as ConditionMirror, ka as problemsBlockSave, ki as isInternalActionId, kl as resolveSecretMarkers, l as ActionMinDelaySecSchema, la as normalizeCoreBlockWrite, ls as COMPOSER_ADDON_ID, m as AutomationStateDocSchema, ma as occurrenceOn, mi as hasTimeLeaves, ml as isSecretMarker, mo as schedulersCapability, mr as coreBlockAddonId, mt as FanControlStatusSchema, n as ACTION_TARGET_INVALIDATION_EVENTS, ni as fanPresetsCapability, nn as RunningStateStatusSchema, nr as checkTemplatePayload, oa as nextOccurrence, on as SchedulerError, oo as resolveRemoteSource, ot as EMPTY_AUTOMATION_STATE, qa as replaceRecipeLiteral, ql as errMsg$1, qn as builtinAutomationTemplate, qo as timedRunQuickRun, qr as evaluateWhenTree, qs as BaseAddon, s as ALL_CAPABILITY_DEFINITIONS, sa as nextTimeBoundaryInMs, sn as SchedulerSchema, st as EMPTY_REMOTE_ASSUMED_STATE, tn as RemoteLayoutPayloadSchema, tt as DeclaredDevices, u as ActionStepSchema, ua as normalizeTags, ui as generateAutomationBlock, un as SetOscillationAxisInputSchema, us as CompositionSchema, ut as FAN_CAPTURE_FIELDS, vi as internalActionId, vn as TagsFieldSchema, vr as coreBlocksCapability, wa as powerSourceActuatorConflicts, wn as actionWaitTotalMs, ws as composedDeviceStableId, xr as customKeyOfRole, yn as TemplateKindSchema, yo as seedInstanceOnce, ys as canonicalStoredBlockTarget } from "../../dist-Dgq9nuvh.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { i as parseDeviceStateChanged, r as isRecord$1, t as describeCompositionSources } from "../../composition-sources-
|
|
4
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
3
|
+
import { i as parseDeviceStateChanged, r as isRecord$1, t as describeCompositionSources } from "../../composition-sources-uphZtYtN.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-nmelnj-Y.mjs";
|
|
5
5
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
6
6
|
import { n as unwrapStoredValue, t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
7
7
|
import { n as readCurrentCommandOrigin } from "../../cap-call-scope-Bic6Ekfw.mjs";
|
|
@@ -9241,14 +9241,16 @@ async function writeComposedDeviceName(port, logger, blockId, name) {
|
|
|
9241
9241
|
//#region src/builtins/core-blocks/tags-service.ts
|
|
9242
9242
|
/**
|
|
9243
9243
|
* The `tags` cap (D1054). A tag lives on the record it labels — a core block, a
|
|
9244
|
-
* scheduler, a template, an action, a device — and only
|
|
9245
|
-
* icon) is registered here. This service is the one place that knows every owner
|
|
9244
|
+
* scheduler, a template, an action, a device, a notification rule — and only
|
|
9245
|
+
* its STYLE (colour token, icon) is registered here. This service is the one place that knows every owner
|
|
9246
9246
|
* kind, so `rename` and `remove` are ONE server operation that rewrites all of
|
|
9247
9247
|
* them; the browser never drives that sequence (a closed tab would split the
|
|
9248
9248
|
* fleet across two spellings).
|
|
9249
9249
|
*
|
|
9250
9250
|
* Owners are reached through {@link TagOwnerPort}s: the local stores directly,
|
|
9251
|
-
* the devices through
|
|
9251
|
+
* the devices and notification rules through their caps over `ctx.api` — never
|
|
9252
|
+
* a second copy. An owner that cannot be read degrades `list` (its count is
|
|
9253
|
+
* `null`) and refuses `rename` / `remove` before any write.
|
|
9252
9254
|
* Tags compare trimmed and case-insensitively (`sameTag`).
|
|
9253
9255
|
*/
|
|
9254
9256
|
/** The order owners are read and rewritten in; also the order a first spelling is picked. */
|
|
@@ -9257,14 +9259,39 @@ var OWNER_KINDS = [
|
|
|
9257
9259
|
"schedulers",
|
|
9258
9260
|
"templates",
|
|
9259
9261
|
"actions",
|
|
9260
|
-
"devices"
|
|
9262
|
+
"devices",
|
|
9263
|
+
"notificationRules"
|
|
9261
9264
|
];
|
|
9265
|
+
/** The list counts: an owner that could not be read is `null`, never `0` (D393). */
|
|
9266
|
+
function withUnknown(counts, unreachable) {
|
|
9267
|
+
return {
|
|
9268
|
+
coreBlocks: unreachable.has("coreBlocks") ? null : counts.coreBlocks,
|
|
9269
|
+
schedulers: unreachable.has("schedulers") ? null : counts.schedulers,
|
|
9270
|
+
templates: unreachable.has("templates") ? null : counts.templates,
|
|
9271
|
+
actions: unreachable.has("actions") ? null : counts.actions,
|
|
9272
|
+
devices: unreachable.has("devices") ? null : counts.devices,
|
|
9273
|
+
notificationRules: unreachable.has("notificationRules") ? null : counts.notificationRules
|
|
9274
|
+
};
|
|
9275
|
+
}
|
|
9276
|
+
/**
|
|
9277
|
+
* A rename or remove refused because one owner kind could not be read. Nothing
|
|
9278
|
+
* was written; `owner` names which one, so the operator knows what to bring back.
|
|
9279
|
+
*/
|
|
9280
|
+
var TagOwnerUnreachableError = class extends Error {
|
|
9281
|
+
owner;
|
|
9282
|
+
name = "TagOwnerUnreachableError";
|
|
9283
|
+
constructor(owner, tag, cause) {
|
|
9284
|
+
super(`[tags] "${tag}" was not changed anywhere: the ${owner} owner could not be read (${cause instanceof Error ? cause.message : String(cause)}); nothing was written — retry once it is back`, { cause });
|
|
9285
|
+
this.owner = owner;
|
|
9286
|
+
}
|
|
9287
|
+
};
|
|
9262
9288
|
var NO_UPDATES = {
|
|
9263
9289
|
coreBlocks: 0,
|
|
9264
9290
|
schedulers: 0,
|
|
9265
9291
|
templates: 0,
|
|
9266
9292
|
actions: 0,
|
|
9267
|
-
devices: 0
|
|
9293
|
+
devices: 0,
|
|
9294
|
+
notificationRules: 0
|
|
9268
9295
|
};
|
|
9269
9296
|
function requireName(value, what) {
|
|
9270
9297
|
const parsed = TagNameSchema.safeParse(value);
|
|
@@ -9288,12 +9315,27 @@ var TagsService = class {
|
|
|
9288
9315
|
}
|
|
9289
9316
|
list = async () => {
|
|
9290
9317
|
const styles = new Map((await this.readStyles()).map((s) => [tagKey(s.name), s]));
|
|
9318
|
+
const unreachable = /* @__PURE__ */ new Set();
|
|
9319
|
+
const read = [];
|
|
9320
|
+
for (const kind of OWNER_KINDS) try {
|
|
9321
|
+
read.push({
|
|
9322
|
+
kind,
|
|
9323
|
+
records: await this.deps.owners[kind].list()
|
|
9324
|
+
});
|
|
9325
|
+
} catch (err) {
|
|
9326
|
+
unreachable.add(kind);
|
|
9327
|
+
this.deps.logger.warn("tag owner could not be read — its count is unknown on this list", { meta: {
|
|
9328
|
+
owner: kind,
|
|
9329
|
+
error: err instanceof Error ? err.message : String(err)
|
|
9330
|
+
} });
|
|
9331
|
+
}
|
|
9332
|
+
const zero = () => ({ ...NO_UPDATES });
|
|
9291
9333
|
const entries = /* @__PURE__ */ new Map();
|
|
9292
9334
|
for (const style of styles.values()) entries.set(tagKey(style.name), {
|
|
9293
9335
|
name: style.name,
|
|
9294
|
-
counts:
|
|
9336
|
+
counts: zero()
|
|
9295
9337
|
});
|
|
9296
|
-
for (const kind of
|
|
9338
|
+
for (const { kind, records } of read) for (const record of records) {
|
|
9297
9339
|
const seen = /* @__PURE__ */ new Set();
|
|
9298
9340
|
for (const tag of record.tags) {
|
|
9299
9341
|
const key = tagKey(tag);
|
|
@@ -9301,7 +9343,7 @@ var TagsService = class {
|
|
|
9301
9343
|
seen.add(key);
|
|
9302
9344
|
const entry = entries.get(key) ?? {
|
|
9303
9345
|
name: tag.trim(),
|
|
9304
|
-
counts:
|
|
9346
|
+
counts: zero()
|
|
9305
9347
|
};
|
|
9306
9348
|
entry.counts[kind] += 1;
|
|
9307
9349
|
entries.set(key, entry);
|
|
@@ -9315,7 +9357,7 @@ var TagsService = class {
|
|
|
9315
9357
|
color: style?.color ?? defaultTagColorId(entry.name),
|
|
9316
9358
|
icon: style?.icon ?? "tag",
|
|
9317
9359
|
styled: style !== void 0,
|
|
9318
|
-
counts: entry.counts
|
|
9360
|
+
counts: withUnknown(entry.counts, unreachable)
|
|
9319
9361
|
});
|
|
9320
9362
|
}
|
|
9321
9363
|
return out.toSorted((a, b) => a.name.localeCompare(b.name));
|
|
@@ -9363,7 +9405,7 @@ var TagsService = class {
|
|
|
9363
9405
|
const updated = { ...NO_UPDATES };
|
|
9364
9406
|
const failed = [];
|
|
9365
9407
|
const plan = [];
|
|
9366
|
-
for (const kind of OWNER_KINDS) for (const record of await this.
|
|
9408
|
+
for (const kind of OWNER_KINDS) for (const record of await this.readOwnerOrRefuse(kind, tag)) {
|
|
9367
9409
|
const next = change(record.tags);
|
|
9368
9410
|
if (next === null) continue;
|
|
9369
9411
|
if (next.length > 20) throw new Error(`[tags] "${tag}" cannot be applied: ${kind}:${record.id} would carry ${next.length} tags (max 20); nothing was written`);
|
|
@@ -9392,6 +9434,18 @@ var TagsService = class {
|
|
|
9392
9434
|
if (failed.length > 0) throw new Error(`[tags] "${tag}" was not rewritten on ${failed.length} record(s) (${failed.slice(0, 5).join(", ")}); the style was left alone — repeat the call`);
|
|
9393
9435
|
return updated;
|
|
9394
9436
|
}
|
|
9437
|
+
/**
|
|
9438
|
+
* An owner's records for a rewrite. One that cannot be read refuses the whole
|
|
9439
|
+
* call BEFORE anything is written: a rename applied to only some owners would
|
|
9440
|
+
* leave the fleet split across two spellings.
|
|
9441
|
+
*/
|
|
9442
|
+
async readOwnerOrRefuse(kind, tag) {
|
|
9443
|
+
try {
|
|
9444
|
+
return await this.deps.owners[kind].list();
|
|
9445
|
+
} catch (err) {
|
|
9446
|
+
throw new TagOwnerUnreachableError(kind, tag, err);
|
|
9447
|
+
}
|
|
9448
|
+
}
|
|
9395
9449
|
/** The style follows the tag; a merge onto a styled target keeps the TARGET's style. */
|
|
9396
9450
|
async moveStyle(from, to) {
|
|
9397
9451
|
const fromKey = tagKey(from);
|
|
@@ -9422,7 +9476,8 @@ var TagsService = class {
|
|
|
9422
9476
|
//#region src/builtins/core-blocks/tags-wiring.ts
|
|
9423
9477
|
/**
|
|
9424
9478
|
* Builds the `tags` cap provider (D1054) over the stores core-blocks owns and the
|
|
9425
|
-
* device manager (over `ctx.api`, never a copy of
|
|
9479
|
+
* device manager and the notification rules (over `ctx.api`, never a copy of
|
|
9480
|
+
* their data).
|
|
9426
9481
|
*/
|
|
9427
9482
|
function coreBlocksPort(blocks) {
|
|
9428
9483
|
return {
|
|
@@ -9504,6 +9559,47 @@ function devicesPort(api) {
|
|
|
9504
9559
|
}
|
|
9505
9560
|
};
|
|
9506
9561
|
}
|
|
9562
|
+
function needApi(api) {
|
|
9563
|
+
const current = api();
|
|
9564
|
+
if (current === void 0) throw new Error("[tags] the cluster API is not available yet");
|
|
9565
|
+
return current;
|
|
9566
|
+
}
|
|
9567
|
+
/**
|
|
9568
|
+
* A notification rule's owner-port id is `<kind>:<ruleId>`: event rules,
|
|
9569
|
+
* summaries, timelapses and calendar-events rules live in separate stores, so
|
|
9570
|
+
* the write must name which one.
|
|
9571
|
+
*/
|
|
9572
|
+
function ruleTagOwnerId(kind, ruleId) {
|
|
9573
|
+
return `${kind}:${ruleId}`;
|
|
9574
|
+
}
|
|
9575
|
+
function parseRuleTagOwnerId(id) {
|
|
9576
|
+
const sep = id.indexOf(":");
|
|
9577
|
+
const kind = NcTaggedRuleKindSchema.safeParse(sep < 0 ? "" : id.slice(0, sep));
|
|
9578
|
+
if (!kind.success) throw new Error(`[tags] not a notification-rule owner id: ${id}`);
|
|
9579
|
+
return {
|
|
9580
|
+
kind: kind.data,
|
|
9581
|
+
ruleId: id.slice(sep + 1)
|
|
9582
|
+
};
|
|
9583
|
+
}
|
|
9584
|
+
function notificationRulesPort(api) {
|
|
9585
|
+
return {
|
|
9586
|
+
list: async () => {
|
|
9587
|
+
const { rules } = await needApi(api).notificationRules.listRuleTags.query({});
|
|
9588
|
+
return rules.map((r) => ({
|
|
9589
|
+
id: ruleTagOwnerId(r.kind, r.ruleId),
|
|
9590
|
+
tags: r.tags
|
|
9591
|
+
}));
|
|
9592
|
+
},
|
|
9593
|
+
setTags: async (id, tags) => {
|
|
9594
|
+
const { kind, ruleId } = parseRuleTagOwnerId(id);
|
|
9595
|
+
await needApi(api).notificationRules.setRuleTags.mutate({
|
|
9596
|
+
kind,
|
|
9597
|
+
ruleId,
|
|
9598
|
+
tags
|
|
9599
|
+
});
|
|
9600
|
+
}
|
|
9601
|
+
};
|
|
9602
|
+
}
|
|
9507
9603
|
function buildTagsService(deps) {
|
|
9508
9604
|
const { records } = deps;
|
|
9509
9605
|
return new TagsService({
|
|
@@ -9518,7 +9614,8 @@ function buildTagsService(deps) {
|
|
|
9518
9614
|
actions: records.kind(coreBlocksRecordKinds.actions),
|
|
9519
9615
|
links: records.kind(coreBlocksRecordKinds["action-links"])
|
|
9520
9616
|
})),
|
|
9521
|
-
devices: deps.devices ?? devicesPort(deps.api)
|
|
9617
|
+
devices: deps.devices ?? devicesPort(deps.api),
|
|
9618
|
+
notificationRules: deps.notificationRules ?? notificationRulesPort(deps.api)
|
|
9522
9619
|
},
|
|
9523
9620
|
styles: records.kind(coreBlocksRecordKinds["tag-styles"]),
|
|
9524
9621
|
logger: deps.logger
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `tags` cap (D1054). A tag lives on the record it labels — a core block, a
|
|
3
|
-
* scheduler, a template, an action, a device — and only
|
|
4
|
-
* icon) is registered here. This service is the one place that knows every owner
|
|
3
|
+
* scheduler, a template, an action, a device, a notification rule — and only
|
|
4
|
+
* its STYLE (colour token, icon) is registered here. This service is the one place that knows every owner
|
|
5
5
|
* kind, so `rename` and `remove` are ONE server operation that rewrites all of
|
|
6
6
|
* them; the browser never drives that sequence (a closed tab would split the
|
|
7
7
|
* fleet across two spellings).
|
|
8
8
|
*
|
|
9
9
|
* Owners are reached through {@link TagOwnerPort}s: the local stores directly,
|
|
10
|
-
* the devices through
|
|
10
|
+
* the devices and notification rules through their caps over `ctx.api` — never
|
|
11
|
+
* a second copy. An owner that cannot be read degrades `list` (its count is
|
|
12
|
+
* `null`) and refuses `rename` / `remove` before any write.
|
|
11
13
|
* Tags compare trimmed and case-insensitively (`sameTag`).
|
|
12
14
|
*/
|
|
13
15
|
import { type IScopedLogger, type ITagsProvider, type RecordKindHandle, type TagUsageCounts } from "@camstack/types";
|
|
@@ -24,6 +26,15 @@ export interface TagOwnerPort {
|
|
|
24
26
|
}
|
|
25
27
|
export type TagOwnerKind = keyof TagUsageCounts;
|
|
26
28
|
export type TagOwnerPorts = Readonly<Record<TagOwnerKind, TagOwnerPort>>;
|
|
29
|
+
/**
|
|
30
|
+
* A rename or remove refused because one owner kind could not be read. Nothing
|
|
31
|
+
* was written; `owner` names which one, so the operator knows what to bring back.
|
|
32
|
+
*/
|
|
33
|
+
export declare class TagOwnerUnreachableError extends Error {
|
|
34
|
+
readonly owner: TagOwnerKind;
|
|
35
|
+
override readonly name = "TagOwnerUnreachableError";
|
|
36
|
+
constructor(owner: TagOwnerKind, tag: string, cause: unknown);
|
|
37
|
+
}
|
|
27
38
|
export interface TagsServiceDeps {
|
|
28
39
|
readonly owners: TagOwnerPorts;
|
|
29
40
|
/** Row id = `tagKey(name)`. */
|
|
@@ -45,6 +56,12 @@ export declare class TagsService implements ITagsProvider {
|
|
|
45
56
|
* operator repeats the same call (every step is idempotent).
|
|
46
57
|
*/
|
|
47
58
|
private rewrite;
|
|
59
|
+
/**
|
|
60
|
+
* An owner's records for a rewrite. One that cannot be read refuses the whole
|
|
61
|
+
* call BEFORE anything is written: a rename applied to only some owners would
|
|
62
|
+
* leave the fleet split across two spellings.
|
|
63
|
+
*/
|
|
64
|
+
private readOwnerOrRefuse;
|
|
48
65
|
/** The style follows the tag; a merge onto a styled target keeps the TARGET's style. */
|
|
49
66
|
private moveStyle;
|
|
50
67
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Builds the `tags` cap provider (D1054) over the stores core-blocks owns and the
|
|
3
|
-
* device manager (over `ctx.api`, never a copy of
|
|
3
|
+
* device manager and the notification rules (over `ctx.api`, never a copy of
|
|
4
|
+
* their data).
|
|
4
5
|
*/
|
|
5
|
-
import { type AddonApi, type IScopedLogger, type RecordsAccess } from "@camstack/types";
|
|
6
|
+
import { type AddonApi, type IScopedLogger, type NcTaggedRuleKind, type RecordsAccess } from "@camstack/types";
|
|
6
7
|
import type { CoreBlockStore } from "./core-block-store.js";
|
|
7
8
|
import { type TagOwnerPort, TagsService } from "./tags-service.js";
|
|
8
9
|
export interface TagsRuntimeDeps {
|
|
@@ -12,5 +13,17 @@ export interface TagsRuntimeDeps {
|
|
|
12
13
|
readonly logger: IScopedLogger;
|
|
13
14
|
/** A spec swaps the device owner; production reads the device manager over `api`. */
|
|
14
15
|
readonly devices?: TagOwnerPort;
|
|
16
|
+
/** A spec swaps the rule owner; production reads the notification rules over `api`. */
|
|
17
|
+
readonly notificationRules?: TagOwnerPort;
|
|
15
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* A notification rule's owner-port id is `<kind>:<ruleId>`: event rules,
|
|
21
|
+
* summaries, timelapses and calendar-events rules live in separate stores, so
|
|
22
|
+
* the write must name which one.
|
|
23
|
+
*/
|
|
24
|
+
export declare function ruleTagOwnerId(kind: NcTaggedRuleKind, ruleId: string): string;
|
|
25
|
+
export declare function parseRuleTagOwnerId(id: string): {
|
|
26
|
+
kind: NcTaggedRuleKind;
|
|
27
|
+
ruleId: string;
|
|
28
|
+
};
|
|
16
29
|
export declare function buildTagsService(deps: TagsRuntimeDeps): TagsService;
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-DXz37Mjg.js");
|
|
8
8
|
const require_retention = require("../../retention-BcOSL6b9.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-
|
|
1
|
+
import { Kl as DeviceType, Ks as wattMillisecondsToKwh, Lr as deviceRemovalHookCapability, Pn as armRemovalReconcile, Pr as deviceHistoryCapability, Rr as deviceRunsCapability, U as DEVICE_HISTORY_ENERGY_KEY, Vr as deviceTransitionsCapability, Yc as defineRecordKinds, Yl as EventCategory, Zc as emitReadiness, bc as RecordTooLargeError, bt as HISTORY_CATALOG, dl as isReadingQuantity, ec as DeviceTransitionSchema, ic as InvalidRecordError, nt as DeviceRunSchema, qs as BaseAddon, rl as historyUnitFor, xt as HISTORY_ITEM_CATALOG } from "../../dist-Dgq9nuvh.mjs";
|
|
2
|
+
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-nmelnj-Y.mjs";
|
|
3
3
|
import { a as FIVE_MINUTES_MS, c as bucketEndOf, i as DAY_MS, l as bucketStartOf, n as RetentionJob, o as HOUR_MS, r as DepartureTracker, s as ROLLUP_GRACE_MS, t as DEFAULT_RETENTION, u as floorTo } from "../../retention-CUOVI1p7.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -3,10 +3,10 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_log_redactor = require("../../log-redactor-BhIEMaG9.js");
|
|
9
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
9
|
+
const require_rename_composition_block = require("../../rename-composition-block-UeVUYCwx.js");
|
|
10
10
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
11
11
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
12
12
|
const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $c as expandCapMethods$1, Ai as isKernelDerivedFeature, Bl as vocabActionIdFor, Br as deviceStatusCapability, Cc as SECRET_CLEAR, Do as siteZoneKey, Fl as sleep$2, Fr as deviceManagerCapability, Fs as implementedMethodsOf$1, Gl as DeviceRole, Hc as commandEffect, Ic as auditedFields, Ir as deviceOffersActions, J as DEVICE_TEMPLATE_FILTERS, Kl as DeviceType$1, Kn as buildStreamParamsConfigSchema, La as reconcileReportedFeatures, Ll as toSecretFieldView, Ml as secretTreeFromPaths, Nr as deviceExtensionCapability, Nt as MINUTES_PER_DAY, Or as defineExtensionSlotProvider, Q as DEVICE_TEMPLATE_VALUES_CAP, Qr as extractSourceInfoFromMetadata, Ri as legacyAutoLinkIds, Rl as transformSecretWrite, S as CAP_NAMES_WITH_STATUS, Ui as locationIconKey, Ur as enumerateItemArrayFields, Vc as collectZodSecretPaths$1, Wl as DeviceFeature, Wr as enumerateSchemaFields, X as DEVICE_TEMPLATE_MAX_OUTPUT, Xn as canonicalIconKey, Y as DEVICE_TEMPLATE_MAX_LENGTH, Yc as defineRecordKinds, Yl as EventCategory$1, Yr as expandContainer, _t as FieldClaimModeSchema, al as isCommand$1, an as STREAM_PROFILE_META, at as DiscoveryProposalBodySchema, b as CAMERA_SWITCH_ORDER, br as createDeviceExtensionProvider, bs as canonicalStoredDeviceType, ci as formatMinutes, da as normalizeUnit, di as generateDeviceAlias, er as checkDeviceAlias, fl as isSecretClear, fo as runtimeFieldUnit, hl as isSecretMarkerLike, it as DeviceTombstoneSchema, j as ConditionMirror, kc as WELL_KNOWN_TAB_MAP, kl as resolveSecretMarkers, lo as resolveTemplateRef, lt as ExportNameRefusedError, ml as isSecretMarker, po as runtimeStatePolicyFor, ql as errMsg$1, qs as BaseAddon, rt as DeviceStatusSchema, s as ALL_CAPABILITY_DEFINITIONS, sl as isDeviceConfigCap, ua as normalizeTags, ul as isKeychainStoredField, va as parseStreamParamsFormPatch, vo as searchRank, vt as FieldClaimSchema, xo as settleDeviceFeatures, xs as capAppliesToDeviceKind, z as DAY_NAMES, zl as userError, zr as deviceStateCapability } from "../../dist-Dgq9nuvh.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { a as redactLogText, i as redactLogMeta, n as isSecretArgumentKey } from "../../log-redactor-XLDrPzOi.mjs";
|
|
4
|
-
import { n as renameCompositionBlock, t as composedBlockIdOf } from "../../rename-composition-block-
|
|
4
|
+
import { n as renameCompositionBlock, t as composedBlockIdOf } from "../../rename-composition-block-BthBMrXA.mjs";
|
|
5
5
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
6
6
|
import { t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
7
7
|
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-u6xQA6r7.mjs";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
9
9
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ki as logDestinationCapability, qs as BaseAddon } from "../../dist-Dgq9nuvh.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
4
4
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_device_ca = require("../../device-ca-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-jbH_rqZh.js");
|
|
8
8
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
9
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
10
|
-
const require_constants = require("../../constants-
|
|
9
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-Co0gj1Lm.js");
|
|
10
|
+
const require_constants = require("../../constants-BAaGwvKn.js");
|
|
11
11
|
const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
13
13
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { Dt as KEYCHAIN_RESET_TRIGGER_ACTOR, Ii as keychainAdminCapability, Li as keychainCapability, Ot as KeychainAuditEntrySchema, Sl as normalizeSecretOwner, Tl as parseSecretRef, Yc as defineRecordKinds, Yl as EventCategory, el as formatSecretScope, kt as KeychainResetRecordSchema, qs as BaseAddon } from "../../dist-Dgq9nuvh.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-CK6mLB2w.mjs";
|
|
3
3
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
4
|
-
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-
|
|
5
|
-
import { a as MESH_CA_KEY_REF } from "../../constants-
|
|
4
|
+
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-HI4nmSe_.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-DWU46D02.mjs";
|
|
6
6
|
import { n as getPlatformKeychainKey } from "../../platform-key-source-BWlq0jjn.mjs";
|
|
7
7
|
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
8
8
|
import { restrictDirToOwnerSync, restrictFileToOwnerSync, writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as RecordingStatusSchema, Wc as createEvent, Xi as mayWriteToLocation, Xt as RECORDING_SOURCE_CAMSTACK_ADDON, Yl as EventCategory, ql as errMsg, qs as BaseAddon } from "../../dist-Dgq9nuvh.mjs";
|
|
2
2
|
import { constants } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
@@ -3,10 +3,10 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_ms$1 = require("../../ms-LB3giGoU.js");
|
|
9
|
-
const require_device_ca = require("../../device-ca-
|
|
9
|
+
const require_device_ca = require("../../device-ca-jbH_rqZh.js");
|
|
10
10
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Di as isCredentialTokenPayload, G as DEVICE_NONCE_TTL_MS, H as DEVICE_ENROLLMENT_TTL_MS, In as authProviderCapability, Jt as PreferenceValueSchema, Kt as PreferenceDeviceIdSchema, Mr as deviceCredentialsCapability, O as CREDENTIAL_TOKEN_AUDIENCE, P as CredentialTokenClaimsSchema, Sn as UserRecordSchema, Un as buildDeviceEnrollmentLink, Vt as PREFERENCES_MAX_VALUE_BYTES, Wn as buildDeviceSignatureMessage, Yc as defineRecordKinds, Zo as userManagementCapability, _l as makeSecretMarker, bn as TokenScopeSchema, cn as ScopedTokenSchema, dn as SsoBridgeClaimsSchema, ml as isSecretMarker, qs as BaseAddon, qt as PreferenceNamespaceSchema, si as formatDeviceRevoker, zl as userError } from "../../dist-Dgq9nuvh.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { t as require_ms } from "../../ms-CgH2OFlD.mjs";
|
|
5
|
-
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-
|
|
5
|
+
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-CK6mLB2w.mjs";
|
|
6
6
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as crypto$1 from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
4
4
|
const require_dns_wire = require("../../dns-wire-B1BvF9Ao.js");
|
|
5
|
-
const require_hub_identity = require("../../hub-identity-
|
|
6
|
-
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
5
|
+
const require_hub_identity = require("../../hub-identity-CKCA89XP.js");
|
|
6
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-CqcCGPdi.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_net = require("node:net");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as validateCustomAddress, Ci as isAppLinkBase, Ct as HUB_MDNS_TXT_KEYS, Da as preconditionOf, Hi as localNetworkCapability, Kc as defineAddonMigrations, Oi as isDefaultAppConnectionEndpoint, St as HUB_MDNS_SERVICE_TYPE, To as shortHostname, Xa as resolveAppConnections, Yl as EventCategory, ao as resolveNotificationTapAddress, ql as errMsg, qs as BaseAddon, to as resolveHubAddressRoles, tr as checkRoleAddress, x as CAMSTACK_APP_LINK_ORIGIN, xa as pickAppLinkHub, zt as NetworkTunnelStartedDataSchema } from "../../dist-Dgq9nuvh.mjs";
|
|
2
2
|
import { a as emptyMdnsRecords, c as parseMdnsMessage, i as buildRecordQuery, l as parseMdnsRecords, n as MDNS_PORT, o as mergeMdnsRecords, r as buildPtrQuery, s as normalizeServiceType, t as MDNS_GROUP } from "../../dns-wire-Dm3H_7ST.mjs";
|
|
3
|
-
import { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-
|
|
4
|
-
import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-
|
|
3
|
+
import { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-DlBBoHJC.mjs";
|
|
4
|
+
import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-B8uFW-RG.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { isIP } from "node:net";
|
|
7
7
|
import { readFileSync } from "node:fs";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
7
|
const require_log_read_filter = require("../../log-read-filter-Bi066jwU.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Da as preconditionOf, Jc as defineEntryKind, Kc as defineAddonMigrations, Ki as logDestinationCapability, Ni as isSameAddonId, Rn as bareAddonId, Sc as RevConflictError, _c as RecordIntegrationInstances, _i as integrationInstancesCapability, ll as isInstanceEnabled, ml as isSecretMarker, pl as isSecretFieldView, qs as BaseAddon } from "../../dist-Dgq9nuvh.mjs";
|
|
2
2
|
import { n as compileLogFilter, o as lineMatches } from "../../log-read-filter-D7Ev3zm-.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ba as reducePoints, Qt as ROOT_BUCKET_KEY, Wc as createEvent, Yl as EventCategory, Za as resolveBucketMs, oi as foldSnapshotByFunction, ql as errMsg, qs as BaseAddon, ta as metricsProviderCapability, xn as UNATTRIBUTED_BUCKET_KEY } from "../../dist-Dgq9nuvh.mjs";
|
|
2
2
|
import * as fs$1 from "node:fs";
|
|
3
3
|
import { constants, readFileSync } from "node:fs";
|
|
4
4
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Ca as platformProbeCapability, Hr as enumerateInferenceDevices, Yl as EventCategory, Zc as emitReadiness, _o as scoreRuntimes, ga as parseAcceleratorFactsJson, ql as errMsg, qs as BaseAddon } from "../../dist-Dgq9nuvh.mjs";
|
|
3
3
|
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dc as UnknownRecordKindError, Pl as secretViewsOf, Ra as recordEntriesCapability, ic as InvalidRecordError, qs as BaseAddon } from "../../dist-Dgq9nuvh.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-m5beNMze.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
9
9
|
/**
|
package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Yl as EventCategory, qs as BaseAddon } from "../../dist-Dgq9nuvh.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
4
4
|
/**
|