@camstack/system 1.2.455 → 1.2.457

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 (133) hide show
  1. package/dist/addon-runner.js +96 -10
  2. package/dist/addon-runner.mjs +96 -10
  3. package/dist/{agent-https-CLWrOO3o.mjs → agent-https-CK9Z4sSR.mjs} +32 -5
  4. package/dist/{agent-https-CCvlRQKV.js → agent-https-CoyOZ3pC.js} +37 -4
  5. package/dist/auth/auth-manager.d.ts +9 -0
  6. package/dist/auth/legacy-token-tables.d.ts +16 -0
  7. package/dist/auth/user-management-internal.d.ts +9 -28
  8. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  9. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  10. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  11. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  12. package/dist/builtins/alerts/alerts.addon.js +2 -2
  13. package/dist/builtins/alerts/alerts.addon.mjs +2 -2
  14. package/dist/builtins/autotrack/index.js +1 -1
  15. package/dist/builtins/autotrack/index.mjs +1 -1
  16. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  17. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  18. package/dist/builtins/calendars/calendars.addon.js +1 -1
  19. package/dist/builtins/calendars/calendars.addon.mjs +1 -1
  20. package/dist/builtins/camera-grid/index.js +1 -1
  21. package/dist/builtins/camera-grid/index.mjs +1 -1
  22. package/dist/builtins/composer/composer.addon.js +2 -2
  23. package/dist/builtins/composer/composer.addon.mjs +2 -2
  24. package/dist/builtins/console-logging/console-destination.d.ts +1 -2
  25. package/dist/builtins/console-logging/index.js +1 -4
  26. package/dist/builtins/console-logging/index.mjs +1 -4
  27. package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
  28. package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
  29. package/dist/builtins/device-history/capture/capture-engine.d.ts +6 -0
  30. package/dist/builtins/device-history/device-history.addon.js +441 -83
  31. package/dist/builtins/device-history/device-history.addon.mjs +441 -83
  32. package/dist/builtins/device-history/query/history-query.d.ts +35 -9
  33. package/dist/builtins/device-history/query/point-shape.d.ts +33 -0
  34. package/dist/builtins/device-history/retention/retention.d.ts +1 -1
  35. package/dist/builtins/device-history/rollup/rollup-engine.d.ts +2 -0
  36. package/dist/builtins/device-history/rollup/rollup-math.d.ts +6 -0
  37. package/dist/builtins/device-history/store/history-store.d.ts +7 -0
  38. package/dist/builtins/device-history/store/series-registry.d.ts +26 -1
  39. package/dist/builtins/device-manager/device-manager.addon.js +1 -1
  40. package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
  41. package/dist/builtins/hub-forwarder/hub-forwarder-destination.d.ts +1 -2
  42. package/dist/builtins/hub-forwarder/index.js +1 -4
  43. package/dist/builtins/hub-forwarder/index.mjs +1 -4
  44. package/dist/builtins/keychain/index.js +4 -4
  45. package/dist/builtins/keychain/index.mjs +4 -4
  46. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  47. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  48. package/dist/builtins/local-auth/auth-schema.d.ts +4 -7
  49. package/dist/builtins/local-auth/local-auth.addon.d.ts +7 -8
  50. package/dist/builtins/local-auth/local-auth.addon.js +1086 -1329
  51. package/dist/builtins/local-auth/local-auth.addon.mjs +1085 -1326
  52. package/dist/builtins/local-auth/preferences-record-kinds.d.ts +27 -0
  53. package/dist/builtins/local-auth/record-kinds.d.ts +4 -3
  54. package/dist/builtins/local-auth/user-preferences-store.d.ts +56 -0
  55. package/dist/builtins/local-network/local-network.addon.d.ts +8 -0
  56. package/dist/builtins/local-network/local-network.addon.js +30 -5
  57. package/dist/builtins/local-network/local-network.addon.mjs +30 -5
  58. package/dist/builtins/loki-logging/index.js +323 -7
  59. package/dist/builtins/loki-logging/index.mjs +323 -7
  60. package/dist/builtins/loki-logging/loki-destination.d.ts +20 -3
  61. package/dist/builtins/loki-logging/loki-read.d.ts +51 -0
  62. package/dist/builtins/native-metrics/native-metrics.addon.js +290 -112
  63. package/dist/builtins/native-metrics/native-metrics.addon.mjs +290 -112
  64. package/dist/builtins/native-metrics/node-metrics-history-recorder.d.ts +106 -35
  65. package/dist/builtins/platform-probe/index.js +1 -1
  66. package/dist/builtins/platform-probe/index.mjs +1 -1
  67. package/dist/builtins/record-entries/index.js +1 -1
  68. package/dist/builtins/record-entries/index.mjs +1 -1
  69. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  70. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  71. package/dist/builtins/snapshot/index.js +1 -1
  72. package/dist/builtins/snapshot/index.mjs +1 -1
  73. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  74. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  75. package/dist/builtins/sqlite-storage/index.js +1 -1
  76. package/dist/builtins/sqlite-storage/index.mjs +1 -1
  77. package/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +1 -0
  78. package/dist/builtins/sqlite-storage/records/records-provider.d.ts +13 -0
  79. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +52 -6
  80. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +52 -6
  81. package/dist/builtins/storage-orchestrator/location-history-recorder.d.ts +76 -0
  82. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +9 -0
  83. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +144 -1
  84. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +144 -1
  85. package/dist/builtins/system-config/system-config.addon.js +3 -3
  86. package/dist/builtins/system-config/system-config.addon.mjs +3 -3
  87. package/dist/builtins/winston-logging/index.js +165 -3
  88. package/dist/builtins/winston-logging/index.mjs +165 -3
  89. package/dist/builtins/winston-logging/log-file-cursor.d.ts +12 -0
  90. package/dist/builtins/winston-logging/log-file-index-store.d.ts +11 -0
  91. package/dist/builtins/winston-logging/log-file-index.d.ts +77 -0
  92. package/dist/builtins/winston-logging/log-file-read-client.d.ts +44 -0
  93. package/dist/builtins/winston-logging/log-file-read-protocol.d.ts +41 -0
  94. package/dist/builtins/winston-logging/log-file-read-worker.d.ts +1 -0
  95. package/dist/builtins/winston-logging/log-file-reader.d.ts +51 -0
  96. package/dist/builtins/winston-logging/winston-destination.d.ts +20 -2
  97. package/dist/{composition-sources-CSzD5_qX.mjs → composition-sources-B_jeZDRJ.mjs} +1 -1
  98. package/dist/{composition-sources-BxUkLNSo.js → composition-sources-qKyvMAvc.js} +1 -1
  99. package/dist/{constants-DruwCkfp.js → constants-B_X9cWEK.js} +1 -1
  100. package/dist/{constants-DOlYt1t1.mjs → constants-cxKcZRMi.mjs} +1 -1
  101. package/dist/{device-ca-uFbTyY_o.mjs → device-ca-BB6nHAL5.mjs} +1 -1
  102. package/dist/{device-ca-QPBgfqVY.js → device-ca-CVK3YcR_.js} +1 -1
  103. package/dist/{dist-DjQ8C-ku.js → dist-C89nqNnn.js} +721 -154
  104. package/dist/{dist-BpSENkRJ.mjs → dist-Dhux90yB.mjs} +668 -155
  105. package/dist/file-host-worker.js +1 -1
  106. package/dist/file-host-worker.mjs +1 -1
  107. package/dist/{hub-mdns-ciao-DlgkFJVY.mjs → hub-mdns-ciao-B8olZqqd.mjs} +20 -13
  108. package/dist/{hub-mdns-ciao-Bkrvgnma.js → hub-mdns-ciao-DB1Y9agt.js} +20 -13
  109. package/dist/index.d.ts +3 -4
  110. package/dist/index.js +145 -24
  111. package/dist/index.mjs +138 -22
  112. package/dist/kernel/config-schema.d.ts +5 -0
  113. package/dist/kernel/moleculer/accessory-prune-gate.d.ts +55 -0
  114. package/dist/log-file-read-protocol-B7M3X3bT.mjs +785 -0
  115. package/dist/log-file-read-protocol-D0WcLbIV.js +817 -0
  116. package/dist/log-file-read-worker.js +64 -0
  117. package/dist/log-file-read-worker.mjs +64 -0
  118. package/dist/log-read-filter-Bi066jwU.js +134 -0
  119. package/dist/log-read-filter-D7Ev3zm-.mjs +93 -0
  120. package/dist/logging/log-manager.d.ts +10 -6
  121. package/dist/logging/log-read-filter.d.ts +43 -0
  122. package/dist/{phase6-declare-gate-DrmTtz7F.js → phase6-declare-gate-BO-_jLh_.js} +1 -1
  123. package/dist/{phase6-declare-gate-JQUqgQgq.mjs → phase6-declare-gate-x9ZCbQJP.mjs} +1 -1
  124. package/dist/{restore-archive-4OP0EYg6.js → restore-archive-4DOUR5Gu.js} +1 -1
  125. package/dist/{restore-archive-YFSJRtKy.mjs → restore-archive-DyOaPeAr.mjs} +1 -1
  126. package/dist/tls/cert-issue.d.ts +16 -1
  127. package/dist/tls/cert-manager.d.ts +6 -0
  128. package/dist/tls/index.d.ts +1 -1
  129. package/dist/{wal-maintenance-TyuOEVy1.mjs → wal-maintenance-BMiX6UIa.mjs} +0 -0
  130. package/dist/{wal-maintenance-Bl0ZKjVR.js → wal-maintenance-DVN-DiVP.js} +0 -0
  131. package/package.json +1 -1
  132. package/dist/auth/admin-token-manager.d.ts +0 -51
  133. package/dist/auth/scoped-token-manager.d.ts +0 -25
@@ -0,0 +1,77 @@
1
+ export declare const INDEX_VERSION = 1;
2
+ export declare const BLOCK_BYTES: number;
3
+ /** Above this many distinct values a block's set becomes `null` (anything). */
4
+ export declare const MAX_SET = 256;
5
+ /** One completed block of the sidecar. */
6
+ export interface IndexBlock {
7
+ /** Byte range [s, e), e on a line boundary. */
8
+ readonly s: number;
9
+ readonly e: number;
10
+ readonly n: number;
11
+ /** Epoch ms range; null when a line's timestamp could not be read. */
12
+ readonly t0: number | null;
13
+ readonly t1: number | null;
14
+ readonly d: number[] | null;
15
+ readonly a: string[] | null;
16
+ readonly o: string[] | null;
17
+ /** Highest level rank in the block. */
18
+ readonly l: number;
19
+ }
20
+ /** What one raw line contributes to its block. */
21
+ export interface LineFacts {
22
+ readonly ts: number | null;
23
+ readonly level: number;
24
+ readonly deviceIds: readonly number[];
25
+ readonly addonIds: readonly string[];
26
+ readonly nodes: readonly string[];
27
+ }
28
+ /** Facts off the raw text — no JSON.parse. */
29
+ export declare function extractLineFacts(line: string): LineFacts;
30
+ /** Accumulates lines into one block. */
31
+ export declare class BlockBuilder {
32
+ readonly start: number;
33
+ private n;
34
+ private t0;
35
+ private t1;
36
+ private tsUnknown;
37
+ private readonly d;
38
+ private readonly a;
39
+ private readonly o;
40
+ private l;
41
+ constructor(start: number);
42
+ add(facts: LineFacts): void;
43
+ /** A line whose facts could not be read: the block may hold anything. */
44
+ addUnknown(): void;
45
+ get lines(): number;
46
+ finish(end: number): IndexBlock;
47
+ }
48
+ /** In-memory index state of one file. */
49
+ export interface FileIndex {
50
+ readonly ino: number;
51
+ /** Completed blocks, ascending, tiling [0, indexedEnd). */
52
+ readonly blocks: IndexBlock[];
53
+ }
54
+ export declare function indexEnd(index: FileIndex): number;
55
+ export declare function indexPathOf(logPath: string): string;
56
+ /**
57
+ * Load `<file>.idx`. Returns an empty index (to be rebuilt) when the sidecar
58
+ * is missing, belongs to another inode, or is not a contiguous tiling; keeps
59
+ * the valid prefix when only its tail is torn.
60
+ */
61
+ export declare function loadFileIndex(logPath: string, ino: number, size: number): Promise<{
62
+ readonly index: FileIndex;
63
+ /** True when the sidecar must be rewritten from `index` before appending. */
64
+ readonly rewrite: boolean;
65
+ }>;
66
+ /** Something that yields between chunks so a reader on the same thread can run. */
67
+ export type Yield = () => Promise<void>;
68
+ /**
69
+ * Extend `index` over whatever complete lines were appended to the file since
70
+ * its last completed block, persisting each block as it completes. Returns
71
+ * the number of bytes read.
72
+ */
73
+ export declare function catchUpFileIndex(logPath: string, index: FileIndex, opts: {
74
+ readonly rewrite: boolean;
75
+ readonly yieldFn?: Yield;
76
+ readonly shouldStop?: () => boolean;
77
+ }): Promise<number>;
@@ -0,0 +1,44 @@
1
+ import type { LogReadQuery, LogReadResult } from "@camstack/types";
2
+ import { type ReadWorkerData, type ToReader } from "./log-file-read-protocol.js";
3
+ /** The structural surface of a `Worker` this client uses. */
4
+ export interface ReaderWorkerHandle {
5
+ on(event: "message", listener: (message: unknown) => void): unknown;
6
+ on(event: "error", listener: (err: unknown) => void): unknown;
7
+ on(event: "exit", listener: (code: number) => void): unknown;
8
+ postMessage(message: ToReader): void;
9
+ unref?(): void;
10
+ }
11
+ export type ReaderWorkerFactory = (data: ReadWorkerData) => ReaderWorkerHandle;
12
+ /** `dist/log-file-read-worker.js` at the package root, found through its own `package.json`. */
13
+ export declare function defaultReaderWorkerPath(): string;
14
+ export interface LogFileReadClientOptions {
15
+ readonly logsDir: string;
16
+ /** Background index pass period. Default 60 s; 0 disables (specs). */
17
+ readonly backgroundPassMs?: number;
18
+ /** Run in the calling thread — specs only. */
19
+ readonly inProcess?: boolean;
20
+ readonly workerPath?: string;
21
+ readonly workerExecArgv?: readonly string[];
22
+ readonly workerFactory?: ReaderWorkerFactory;
23
+ }
24
+ export declare class LogFileReadClient {
25
+ private readonly logsDir;
26
+ private readonly backgroundPassMs;
27
+ private readonly spawn;
28
+ private worker;
29
+ private nextId;
30
+ private readonly pending;
31
+ private readonly local;
32
+ constructor(options: LogFileReadClientOptions);
33
+ read(query: LogReadQuery): Promise<LogReadResult>;
34
+ /**
35
+ * Start the thread now, so its background pass indexes the existing files
36
+ * before anyone reads them. The hub calls this; an agent, whose files
37
+ * nobody reads, leaves the thread unstarted.
38
+ */
39
+ warm(): void;
40
+ cancel(requestId: string): boolean;
41
+ stop(): void;
42
+ private ensureWorker;
43
+ private failAll;
44
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Messages between `WinstonDestination` and its reader thread (D898), and the
3
+ * one function both the thread and the in-process mode run.
4
+ */
5
+ import type { LogReadQuery, LogReadResult } from "@camstack/types";
6
+ import type { LogFileIndexStore } from "./log-file-index-store.js";
7
+ import { type FileReadOutcome } from "./log-file-reader.js";
8
+ export interface ReadWorkerData {
9
+ readonly logsDir: string;
10
+ /** Period of the background index pass; 0 disables it (specs). */
11
+ readonly backgroundPassMs: number;
12
+ }
13
+ export type ToReader = {
14
+ readonly type: "read";
15
+ readonly id: number;
16
+ readonly query: LogReadQuery;
17
+ } | {
18
+ readonly type: "cancel";
19
+ readonly requestId: string;
20
+ } | {
21
+ readonly type: "stop";
22
+ };
23
+ export type FromReader = {
24
+ readonly type: "result";
25
+ readonly id: number;
26
+ readonly result: LogReadResult;
27
+ } | {
28
+ readonly type: "error";
29
+ readonly id: number;
30
+ readonly message: string;
31
+ };
32
+ export declare function isFromReader(value: unknown): value is FromReader;
33
+ export declare function isToReader(value: unknown): value is ToReader;
34
+ /** Requests cancelled before or while they run, with when, so the set cannot grow. */
35
+ export declare class CancelBook {
36
+ private readonly at;
37
+ cancel(requestId: string, now?: number): void;
38
+ isCancelled(requestId: string | undefined): boolean;
39
+ settle(requestId: string | undefined): void;
40
+ }
41
+ export declare function serveRead(logsDir: string, store: LogFileIndexStore, cancels: CancelBook, query: LogReadQuery): Promise<FileReadOutcome>;
@@ -0,0 +1,51 @@
1
+ import type { LogReadEntry, LogReadQuery, LogReadResult } from "@camstack/types";
2
+ import { type CompiledLogFilter, type ReadableLine } from "../../logging/log-read-filter.js";
3
+ import { type FileIndex, type IndexBlock } from "./log-file-index.js";
4
+ export declare const DEFAULT_READ_LIMIT = 200;
5
+ export declare const DEFAULT_BUDGET_MS = 1e3;
6
+ export declare const MAX_BUDGET_MS = 5e3;
7
+ export interface FileReadStats {
8
+ /** Blocks the index ruled out — never read. */
9
+ blocksSkipped: number;
10
+ /** Blocks (or unindexed regions) actually read. */
11
+ regionsRead: number;
12
+ /** Of those, INDEXED blocks — the ones the index could have skipped. */
13
+ blocksRead: number;
14
+ /** Lines handed to JSON.parse. */
15
+ linesParsed: number;
16
+ }
17
+ export interface FileReadOutcome {
18
+ readonly result: LogReadResult;
19
+ readonly stats: FileReadStats;
20
+ }
21
+ export interface FileReadContext {
22
+ readonly logsDir: string;
23
+ /** The file's index as far as it reaches (may be empty — then nothing is skipped). */
24
+ readonly indexOf: (fileName: string) => Promise<FileIndex | null>;
25
+ readonly isCancelled: () => boolean;
26
+ readonly now?: () => number;
27
+ }
28
+ /** What a reader can rule out from a block alone. */
29
+ export declare function blockMayMatch(block: IndexBlock, filter: CompiledLogFilter): boolean;
30
+ interface ParsedRow {
31
+ readonly entry: LogReadEntry;
32
+ readonly line: ReadableLine;
33
+ }
34
+ /** One JSON row → a read entry, or null for a line that is not one of ours. */
35
+ export declare function parseLogRow(text: string): ParsedRow | null;
36
+ /** Daily files, newest first. */
37
+ export declare function listLogFiles(logsDir: string): Promise<string[]>;
38
+ /**
39
+ * One backward slice. `entries` newest first; `nextBefore` resumes exactly
40
+ * where this slice stopped.
41
+ */
42
+ export declare function readLogFilesBackward(ctx: FileReadContext, query: LogReadQuery): Promise<FileReadOutcome>;
43
+ /**
44
+ * One forward slice: lines strictly after `after`, scanned oldest first and
45
+ * returned newest first like every page. `nextAfter` is where the next poll
46
+ * starts; `done` means the scan reached the end of the newest file.
47
+ */
48
+ export declare function readLogFilesForward(ctx: FileReadContext, query: LogReadQuery & {
49
+ readonly after: string;
50
+ }): Promise<FileReadOutcome>;
51
+ export {};
@@ -1,4 +1,5 @@
1
- import type { ILogDestination, LogEntry, LogFilter } from "@camstack/types";
1
+ import type { ILogDestination, LogEntry, LogReadCapabilities, LogReadQuery, LogReadResult } from "@camstack/types";
2
+ import { type LogFileReadClientOptions } from "./log-file-read-client.js";
2
3
  interface WinstonConfig {
3
4
  readonly level: string;
4
5
  readonly retentionDays: number;
@@ -12,10 +13,27 @@ interface WinstonConfig {
12
13
  * structured JSON shape so log tooling can query tags/meta.
13
14
  */
14
15
  export declare class WinstonDestination implements ILogDestination {
16
+ private readonly readerOptions;
15
17
  private logger;
18
+ private reader;
19
+ private retentionDays;
20
+ /**
21
+ * `readerOptions` reaches the history reader (D898) — a spec runs it in
22
+ * process or points the thread at the TypeScript source.
23
+ */
24
+ constructor(readerOptions?: Omit<LogFileReadClientOptions, "logsDir">);
16
25
  initialize(config?: WinstonConfig): Promise<void>;
17
26
  write(entry: LogEntry): void;
18
- query(_filter: LogFilter): Promise<readonly LogEntry[]>;
27
+ /** The rotated files ARE the hub's history (D898): every filter is applied here. */
28
+ describeRead(): Promise<LogReadCapabilities>;
29
+ /** Index the existing files in the background now (the hub's history). */
30
+ startBackgroundIndexing(): void;
31
+ read(query: LogReadQuery): Promise<LogReadResult>;
32
+ cancelRead(input: {
33
+ readonly requestId: string;
34
+ }): Promise<{
35
+ readonly cancelled: boolean;
36
+ }>;
19
37
  shutdown(): Promise<void>;
20
38
  }
21
39
  export {};
@@ -1,4 +1,4 @@
1
- import { Kr as errMsg, zr as compositionSourceKey } from "./dist-BpSENkRJ.mjs";
1
+ import { Jr as compositionSourceKey, ti as errMsg } from "./dist-Dhux90yB.mjs";
2
2
  //#region src/builtins/core-blocks/composition-sources.ts
3
3
  /**
4
4
  * Describe what a composition reads and writes for SAVE-time validation
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-DjQ8C-ku.js");
1
+ const require_dist = require("./dist-C89nqNnn.js");
2
2
  //#region src/builtins/core-blocks/composition-sources.ts
3
3
  /**
4
4
  * Describe what a composition reads and writes for SAVE-time validation
@@ -1,5 +1,5 @@
1
1
  /** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
2
- var MESH_CA_KEY_REF = require("./dist-DjQ8C-ku.js").buildSecretRef({
2
+ var MESH_CA_KEY_REF = require("./dist-C89nqNnn.js").buildSecretRef({
3
3
  owner: "system",
4
4
  scope: { kind: "global" },
5
5
  fieldPath: "meshCaKey"
@@ -1,4 +1,4 @@
1
- import { Oi as buildSecretRef } from "./dist-BpSENkRJ.mjs";
1
+ import { Li as buildSecretRef } from "./dist-Dhux90yB.mjs";
2
2
  /** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
3
3
  var MESH_CA_KEY_REF = buildSecretRef({
4
4
  owner: "system",
@@ -1,4 +1,4 @@
1
- import { O as DEVICE_SAN_CREDENTIAL_PREFIX, Oi as buildSecretRef, k as DEVICE_SAN_USER_PREFIX } from "./dist-BpSENkRJ.mjs";
1
+ import { A as DEVICE_SAN_CREDENTIAL_PREFIX, Li as buildSecretRef, j as DEVICE_SAN_USER_PREFIX } from "./dist-Dhux90yB.mjs";
2
2
  import { S as backdatedNotBefore, a as KeyUsageFlags, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension } from "./x509.es-DK__ETIe.mjs";
3
3
  import { X509Certificate, createPublicKey, randomBytes, verify, webcrypto } from "node:crypto";
4
4
  //#region src/auth/jwt-signing-key.ts
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-DjQ8C-ku.js");
1
+ const require_dist = require("./dist-C89nqNnn.js");
2
2
  const require_x509_es = require("./x509.es-C4cOo48M.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  //#region src/auth/jwt-signing-key.ts