@dominevo/server 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.2] - 2026-11-28
11
+
12
+ ### Changed
13
+
14
+ - Rebuilt against updated dependencies.
15
+
10
16
  ## [0.1.1] - 2026-11-28
11
17
 
12
18
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dominevo/server",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -68,58 +68,7 @@
68
68
  ],
69
69
  "requires": {
70
70
  "addons": {
71
- "@dominevo/addon-admin-ui": ">=0.1.1",
72
- "@dominevo/addon-agent-ui": ">=0.1.1",
73
- "@dominevo/addon-ai": ">=0.1.1",
74
- "@dominevo/addon-auth": ">=0.1.1",
75
- "@dominevo/addon-benchmark": ">=0.1.1",
76
- "@dominevo/addon-cloudflare": ">=0.1.1",
77
- "@dominevo/addon-decoder-nodeav": ">=0.1.1",
78
- "@dominevo/addon-export-alexa": ">=0.1.1",
79
- "@dominevo/addon-export-google": ">=0.1.1",
80
- "@dominevo/addon-export-hap": ">=0.1.1",
81
- "@dominevo/addon-google-services": ">=0.1.1",
82
- "@dominevo/addon-import-alexa": ">=0.1.1",
83
- "@dominevo/addon-matter-broker": ">=0.1.1",
84
- "@dominevo/addon-model-studio": ">=0.1.1",
85
- "@dominevo/addon-mqtt-broker": ">=0.1.1",
86
- "@dominevo/addon-notifiers": ">=0.1.1",
87
- "@dominevo/addon-osd-manager": ">=0.1.1",
88
- "@dominevo/addon-pipeline": ">=0.1.1",
89
- "@dominevo/addon-pipeline-orchestrator": ">=0.1.1",
90
- "@dominevo/addon-post-analysis": ">=0.1.1",
91
- "@dominevo/addon-provider-amcrest": ">=0.1.1",
92
- "@dominevo/addon-provider-bosch": ">=0.1.1",
93
- "@dominevo/addon-provider-dreame": ">=0.1.1",
94
- "@dominevo/addon-provider-dreo": ">=0.1.1",
95
- "@dominevo/addon-provider-ecowitt": ">=0.1.1",
96
- "@dominevo/addon-provider-enpal": ">=0.1.1",
97
- "@dominevo/addon-provider-esphome": ">=0.1.1",
98
- "@dominevo/addon-provider-gree": ">=0.1.1",
99
- "@dominevo/addon-provider-hikvision": ">=0.1.1",
100
- "@dominevo/addon-provider-homeassistant": ">=0.1.1",
101
- "@dominevo/addon-provider-homematic": ">=0.1.1",
102
- "@dominevo/addon-provider-kia": ">=0.1.1",
103
- "@dominevo/addon-provider-mqtt-ha": ">=0.1.1",
104
- "@dominevo/addon-provider-onvif": ">=0.1.1",
105
- "@dominevo/addon-provider-petkit": ">=0.1.1",
106
- "@dominevo/addon-provider-rademacher": ">=0.1.1",
107
- "@dominevo/addon-provider-reolink": ">=0.1.1",
108
- "@dominevo/addon-provider-rtsp": ">=0.1.1",
109
- "@dominevo/addon-provider-tuya": ">=0.1.1",
110
- "@dominevo/addon-provider-unifi": ">=0.1.1",
111
- "@dominevo/addon-provider-unraid": ">=0.1.1",
112
- "@dominevo/addon-provider-velux": ">=0.1.1",
113
- "@dominevo/addon-provider-vesync": ">=0.1.1",
114
- "@dominevo/addon-provider-wyze": ">=0.1.1",
115
- "@dominevo/addon-provider-zigbee-z2m": ">=0.1.1",
116
- "@dominevo/addon-remote-storage": ">=0.1.1",
117
- "@dominevo/addon-smtp-nodemailer": ">=0.1.1",
118
- "@dominevo/addon-static-turn": ">=0.1.1",
119
- "@dominevo/addon-tailscale": ">=0.1.1",
120
- "@dominevo/addon-terminal": ">=0.1.1",
121
- "@dominevo/addon-training": ">=0.1.1",
122
- "@dominevo/addon-waste-collections": ">=0.1.1"
71
+ "@dominevo/addon-admin-ui": ">=0.1.2"
123
72
  },
124
73
  "wrapper": {
125
74
  "desktop": ">=0.1.0",
@@ -128,7 +77,7 @@
128
77
  }
129
78
  },
130
79
  "dependencies": {
131
- "@dominevo/addon-admin-ui": "0.1.1",
80
+ "@dominevo/addon-admin-ui": "0.1.2",
132
81
  "@dominevo/addon-agent-ui": "0.1.1",
133
82
  "@dominevo/addon-auth": "0.1.1",
134
83
  "@dominevo/addon-benchmark": "0.1.1",
@@ -1,4 +1,4 @@
1
1
  import { n as readCurrentCommandOrigin } from "./cap-call-scope-Dr3l8_XS.mjs";
2
- import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-BklzKCJe.mjs";
2
+ import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-Ci7Lw1TM.mjs";
3
3
  import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg, t as COURTESY_DEFAULT_WIDTH } from "./snapshot-courtesy-CyFs1M3I.mjs";
4
4
  export { COURTESY_DEFAULT_WIDTH, CustomActionRegistry, ModelDownloadHttpError, ModelDownloadService, STALL_REPORT_MS, STALL_TICK_MS, adoptModelRevisions, attributeStall, collectModelFiles, contentTypeFor, courtesyCacheKey, createFileDataPlaneHandler, deleteModelFromDisk, downloadFile, ensureModel, getModelFilePath, isModelDownloadHttpError, isModelDownloaded, parseRangeHeader, readCurrentCommandOrigin, renderCourtesyJpeg, renderCourtesyOverlayJpeg, resolveFormatRevision, startEventLoopStallMonitor };
@@ -3,7 +3,7 @@ import { Z as errMsg } from "../../scoped-settings-DnkTDuvk.mjs";
3
3
  import { t as addonPagesCapability } from "../../addon-pages.cap-ByX6jN6N.mjs";
4
4
  import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
5
5
  import { createHash, randomUUID } from "node:crypto";
6
- import * as fs from "node:fs";
6
+ import * as fs$1 from "node:fs";
7
7
  import * as path$1 from "node:path";
8
8
  //#region src/builtins/addon-pages-aggregator/dedupe-pages.ts
9
9
  /** Stable identity for an addon page, independent of which node reported it. */
@@ -213,11 +213,11 @@ var AddonPagesAggregatorAddon = class extends BaseAddon {
213
213
  const bundlePath = this.resolveBundlePath(addonId, bundle);
214
214
  if (bundlePath === null) return `/api/addon-pages/${addonId}/${bundle}?v=${Math.floor(Date.now())}`;
215
215
  try {
216
- const stat = fs.statSync(bundlePath);
216
+ const stat = fs$1.statSync(bundlePath);
217
217
  const cacheKey = `${bundlePath}:${stat.size}:${stat.mtimeMs}`;
218
218
  let v = this.bundleHashCache.get(cacheKey);
219
219
  if (v === void 0) {
220
- v = createHash("sha1").update(fs.readFileSync(bundlePath)).digest("hex").slice(0, 12);
220
+ v = createHash("sha1").update(fs$1.readFileSync(bundlePath)).digest("hex").slice(0, 12);
221
221
  this.bundleHashCache.set(cacheKey, v);
222
222
  }
223
223
  return `/api/addon-pages/${addonId}/${bundle}?v=${v}`;
@@ -3,7 +3,7 @@ import { Z as errMsg } from "../../scoped-settings-DnkTDuvk.mjs";
3
3
  import { t as addonWidgetsCapability } from "../../addon-widgets.cap-5b8kzbP1.mjs";
4
4
  import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
5
5
  import { createHash, randomUUID } from "node:crypto";
6
- import * as fs from "node:fs";
6
+ import * as fs$1 from "node:fs";
7
7
  import * as path$1 from "node:path";
8
8
  //#region src/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.ts
9
9
  /**
@@ -206,9 +206,9 @@ var AddonWidgetsAggregatorAddon = class extends BaseAddon {
206
206
  if (entryPath === null) return String(Math.floor(Date.now()));
207
207
  try {
208
208
  const dir = path$1.dirname(entryPath);
209
- const files = fs.readdirSync(dir).filter((f) => fs.statSync(path$1.join(dir, f)).isFile()).sort();
209
+ const files = fs$1.readdirSync(dir).filter((f) => fs$1.statSync(path$1.join(dir, f)).isFile()).sort();
210
210
  const cacheKey = `${dir}#${files.map((f) => {
211
- const s = fs.statSync(path$1.join(dir, f));
211
+ const s = fs$1.statSync(path$1.join(dir, f));
212
212
  return `${f}:${s.size}:${s.mtimeMs}`;
213
213
  }).join("|")}`;
214
214
  const cached = this.bundleHashCache.get(cacheKey);
@@ -216,7 +216,7 @@ var AddonWidgetsAggregatorAddon = class extends BaseAddon {
216
216
  const hash = createHash("sha1");
217
217
  for (const f of files) {
218
218
  hash.update(f);
219
- hash.update(fs.readFileSync(path$1.join(dir, f)));
219
+ hash.update(fs$1.readFileSync(path$1.join(dir, f)));
220
220
  }
221
221
  const digest = hash.digest("hex").slice(0, 12);
222
222
  this.bundleHashCache.set(cacheKey, digest);
@@ -9,7 +9,7 @@ import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
9
9
  import { a as redactLogText } from "../../log-redactor-B6FjCuXc.mjs";
10
10
  import { z } from "zod";
11
11
  import { randomUUID } from "node:crypto";
12
- import * as fs from "node:fs";
12
+ import * as fs$1 from "node:fs";
13
13
  import * as path$1 from "node:path";
14
14
  //#region src/builtins/alerts/alert-episode-policy.ts
15
15
  /**
@@ -157,7 +157,7 @@ function lastCauseAfterChunk(previous, chunk) {
157
157
  function readRunnerDisplayName(addonDirs, runnerId) {
158
158
  const names = [];
159
159
  for (const dir of addonDirs) try {
160
- const raw = JSON.parse(fs.readFileSync(path$1.join(dir, "package.json"), "utf-8"));
160
+ const raw = JSON.parse(fs$1.readFileSync(path$1.join(dir, "package.json"), "utf-8"));
161
161
  const dominevo = typeof raw === "object" && raw !== null ? Reflect.get(raw, "dominevo") : null;
162
162
  const addons = typeof dominevo === "object" && dominevo !== null ? Reflect.get(dominevo, "addons") : null;
163
163
  if (!Array.isArray(addons)) continue;
@@ -3,9 +3,9 @@ import { o as mayWriteToLocation } from "../../storage-location-mode-B21UVRRX.mj
3
3
  import { n as backupCapability, t as storageOccupancyCapability } from "../../storage-occupancy.cap-_VVBswn4.mjs";
4
4
  import { n as nodePin, r as toNodeId } from "../../cap-call-context-C_59UKvE.mjs";
5
5
  import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
6
- import { _ as backupRecordStoresOf, a as BackupSnapshotRefusedError, d as ENCRYPTED_BACKUP_SUFFIX, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, i as BackupCancelledError, l as BackupKeyFormatError, m as parseBackupSecretKey, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as parseBackupPublicKey, r as prepareRestoreArchive, s as SystemBackupService } from "../../restore-archive-DngNk5Yg.mjs";
6
+ import { _ as backupRecordStoresOf, a as BackupSnapshotRefusedError, d as ENCRYPTED_BACKUP_SUFFIX, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, i as BackupCancelledError, l as BackupKeyFormatError, m as parseBackupSecretKey, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as parseBackupPublicKey, r as prepareRestoreArchive, s as SystemBackupService } from "../../restore-archive-CyUiUvKj.mjs";
7
7
  import { randomUUID } from "node:crypto";
8
- import * as fs from "node:fs";
8
+ import * as fs$1 from "node:fs";
9
9
  import * as path$1 from "node:path";
10
10
  import * as fsp from "node:fs/promises";
11
11
  //#region src/builtins/backup-orchestrator/backup-databases.ts
@@ -1021,7 +1021,7 @@ async function downloadArchiveToCache(input) {
1021
1021
  location: input.locationId,
1022
1022
  relativePath: input.filename
1023
1023
  });
1024
- const writeStream = fs.createWriteStream(input.cachePath);
1024
+ const writeStream = fs$1.createWriteStream(input.cachePath);
1025
1025
  let offset = 0;
1026
1026
  try {
1027
1027
  while (offset < sizeBytes) {
@@ -2505,7 +2505,7 @@ var BackupOrchestratorAddon = class extends BaseAddon {
2505
2505
  });
2506
2506
  try {
2507
2507
  let offset = 0;
2508
- const stream = fs.createReadStream(input.cachePath, { highWaterMark: UPLOAD_CHUNK_BYTES });
2508
+ const stream = fs$1.createReadStream(input.cachePath, { highWaterMark: UPLOAD_CHUNK_BYTES });
2509
2509
  for await (const rawChunk of stream) {
2510
2510
  if (input.signal?.aborted) {
2511
2511
  stream.destroy();
@@ -13,7 +13,7 @@ import { z } from "zod";
13
13
  import nodeCrypto from "crypto";
14
14
  import * as crypto$1 from "node:crypto";
15
15
  import { X509Certificate, createHash, randomUUID, timingSafeEqual } from "node:crypto";
16
- import * as fs from "node:fs";
16
+ import * as fs$1 from "node:fs";
17
17
  import * as path$1 from "node:path";
18
18
  //#region ../types/dist/esm/interfaces/addon-data-plane.mjs
19
19
  /**
@@ -12025,8 +12025,8 @@ var LocalAuthAddon = class extends BaseAddon {
12025
12025
  users: this.userManager,
12026
12026
  dataDir: this.ctx.nodeDataDir,
12027
12027
  fs: {
12028
- exists: (filePath) => fs.existsSync(filePath),
12029
- remove: (filePath) => fs.rmSync(filePath, { force: true })
12028
+ exists: (filePath) => fs$1.existsSync(filePath),
12029
+ remove: (filePath) => fs$1.rmSync(filePath, { force: true })
12030
12030
  },
12031
12031
  logger: this.ctx.logger
12032
12032
  });
@@ -4,8 +4,8 @@ import { u as preconditionOf } from "../../migration-DDDUJnTU.mjs";
4
4
  import { _ as pickAppLinkHub, c as checkRoleAddress, d as resolveAppConnections, f as resolveHubAddressRoles, g as isAppLinkBase, h as DOMINEVO_APP_LINK_ORIGIN, l as isDefaultAppConnectionEndpoint, m as validateCustomAddress, o as HUB_MDNS_SERVICE_TYPE, p as resolveNotificationTapAddress, r as localNetworkCapability, s as HUB_MDNS_TXT_KEYS, t as NetworkTunnelStartedDataSchema, u as livePublicTunnelAddress } from "../../network-access.cap-DcLn1v6p.mjs";
5
5
  import { r as shortHostname } from "../../server-name-Dq4Z3zMJ.mjs";
6
6
  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";
7
- import { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-C1lUxisZ.mjs";
8
- 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-D5Udd2A_.mjs";
7
+ import { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-vHr6cT94.mjs";
8
+ 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-CK1Y4z73.mjs";
9
9
  import { z } from "zod";
10
10
  import { isIP } from "node:net";
11
11
  import { readFileSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  import { b as EventCategory, p as createEvent, t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
2
2
  import { Z as errMsg } from "../../scoped-settings-DnkTDuvk.mjs";
3
3
  import { t as metricsProviderCapability } from "../../metrics-provider.cap-BKzH22yb.mjs";
4
- import * as fs from "node:fs";
4
+ import * as fs$1 from "node:fs";
5
5
  import { constants, readFileSync } from "node:fs";
6
6
  import { access, readFile, readdir } from "node:fs/promises";
7
7
  import { promisify } from "node:util";
@@ -1827,7 +1827,7 @@ var NativeMetricsProvider = class {
1827
1827
  let swapUsedBytes = 0;
1828
1828
  let swapTotalBytes = 0;
1829
1829
  if (IS_LINUX) try {
1830
- const meminfo = fs.readFileSync("/proc/meminfo", "utf-8");
1830
+ const meminfo = fs$1.readFileSync("/proc/meminfo", "utf-8");
1831
1831
  const availKb = meminfo.match(/MemAvailable:\s+(\d+)/)?.[1];
1832
1832
  if (availKb !== void 0) available = parseInt(availKb, 10) * 1024;
1833
1833
  const swapTotal = parseInt(meminfo.match(/SwapTotal:\s+(\d+)/)?.[1] ?? "0", 10) * 1024;
@@ -1920,7 +1920,7 @@ async function sampleMacMemory(provider) {
1920
1920
  }
1921
1921
  function getDiskSpaceInternal(dirPath) {
1922
1922
  return new Promise((resolve, reject) => {
1923
- fs.statfs(dirPath, (err, stats) => {
1923
+ fs$1.statfs(dirPath, (err, stats) => {
1924
1924
  if (err) return reject(err);
1925
1925
  const totalBytes = stats.blocks * stats.bsize;
1926
1926
  const availableBytes = stats.bavail * stats.bsize;
@@ -1938,7 +1938,7 @@ function getDiskSpaceInternal(dirPath) {
1938
1938
  async function takeDiskIoSnapshot() {
1939
1939
  const now = Date.now();
1940
1940
  if (IS_LINUX) try {
1941
- const data = fs.readFileSync("/proc/diskstats", "utf-8");
1941
+ const data = fs$1.readFileSync("/proc/diskstats", "utf-8");
1942
1942
  let readOps = 0, readBytes = 0, writeOps = 0, writeBytes = 0;
1943
1943
  for (const line of data.split("\n")) {
1944
1944
  const parts = line.trim().split(/\s+/);
@@ -1969,7 +1969,7 @@ async function takeDiskIoSnapshot() {
1969
1969
  async function takeNetworkIoSnapshot() {
1970
1970
  const now = Date.now();
1971
1971
  if (IS_LINUX) try {
1972
- const data = fs.readFileSync("/proc/net/dev", "utf-8");
1972
+ const data = fs$1.readFileSync("/proc/net/dev", "utf-8");
1973
1973
  let rxBytes = 0, txBytes = 0, rxPackets = 0, txPackets = 0, rxErrors = 0, txErrors = 0;
1974
1974
  for (const line of data.split("\n")) {
1975
1975
  const match = line.match(/^\s*(\w+):\s+(.+)$/);
@@ -2030,7 +2030,7 @@ async function takeNetworkIoSnapshot() {
2030
2030
  }
2031
2031
  async function getCpuTemperatureInternal() {
2032
2032
  if (IS_LINUX) for (const p of ["/sys/class/thermal/thermal_zone0/temp", "/sys/class/hwmon/hwmon0/temp1_input"]) try {
2033
- const raw = fs.readFileSync(p, "utf-8").trim();
2033
+ const raw = fs$1.readFileSync(p, "utf-8").trim();
2034
2034
  const millideg = parseInt(raw, 10);
2035
2035
  if (!isNaN(millideg)) return Math.round(millideg / 100) / 10;
2036
2036
  } catch {
@@ -2081,10 +2081,10 @@ function getProcessResources() {
2081
2081
  let threadCount = 0;
2082
2082
  if (IS_LINUX) {
2083
2083
  try {
2084
- openFds = fs.readdirSync(`/proc/${process.pid}/fd`).length;
2084
+ openFds = fs$1.readdirSync(`/proc/${process.pid}/fd`).length;
2085
2085
  } catch {}
2086
2086
  try {
2087
- const match = fs.readFileSync(`/proc/${process.pid}/status`, "utf-8").match(/Threads:\s+(\d+)/);
2087
+ const match = fs$1.readFileSync(`/proc/${process.pid}/status`, "utf-8").match(/Threads:\s+(\d+)/);
2088
2088
  if (match) threadCount = parseInt(match[1], 10);
2089
2089
  } catch {}
2090
2090
  }
@@ -2099,7 +2099,7 @@ function getProcessResources() {
2099
2099
  function getPressure(resource) {
2100
2100
  if (!IS_LINUX) return null;
2101
2101
  try {
2102
- const data = fs.readFileSync(`/proc/pressure/${resource}`, "utf-8");
2102
+ const data = fs$1.readFileSync(`/proc/pressure/${resource}`, "utf-8");
2103
2103
  const parseLine = (prefix) => {
2104
2104
  const match = data.match(new RegExp(`${prefix} avg10=(\\d+\\.\\d+) avg60=(\\d+\\.\\d+) avg300=(\\d+\\.\\d+)`));
2105
2105
  if (!match) return null;
@@ -2,8 +2,8 @@ import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
2
2
  import { b as EventCategory, m as emitReadiness, t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
3
3
  import { Z as errMsg } from "../../scoped-settings-DnkTDuvk.mjs";
4
4
  import { n as parseAcceleratorFactsJson, t as platformProbeCapability } from "../../platform-probe.cap-D6VmPwxU.mjs";
5
- import { a as enumerateInferenceDevices, i as describeNvidia, n as detectCoralAccelerator, o as scoreRuntimes, r as nodeCoralFs } from "../../coral-accelerators-CSu5Ahx5.mjs";
6
- import * as fs from "node:fs";
5
+ import { a as enumerateInferenceDevices, i as describeNvidia, n as detectCoralAccelerator, o as scoreRuntimes, r as nodeCoralFs } from "../../coral-accelerators-DXDOGcym.mjs";
6
+ import * as fs$1 from "node:fs";
7
7
  import * as path$1 from "node:path";
8
8
  import { promisify } from "node:util";
9
9
  import * as os$1 from "node:os";
@@ -503,14 +503,14 @@ var PlatformScorer = class {
503
503
  nvidiaProbe = await this.probeNvidiaSmi();
504
504
  const listRenderNodes = () => {
505
505
  try {
506
- return fs.readdirSync("/dev/dri").filter((n) => n.startsWith("renderD")).map((n) => `/dev/dri/${n}`);
506
+ return fs$1.readdirSync("/dev/dri").filter((n) => n.startsWith("renderD")).map((n) => `/dev/dri/${n}`);
507
507
  } catch {
508
508
  return [];
509
509
  }
510
510
  };
511
511
  const readDrmAttr = (node, attr) => {
512
512
  try {
513
- return fs.readFileSync(`/sys/class/drm/${node.split("/").pop()}/device/${attr}`, "utf8");
513
+ return fs$1.readFileSync(`/sys/class/drm/${node.split("/").pop()}/device/${attr}`, "utf8");
514
514
  } catch {
515
515
  return "";
516
516
  }
@@ -536,12 +536,12 @@ var PlatformScorer = class {
536
536
  }
537
537
  const listDir = (p) => {
538
538
  try {
539
- return fs.readdirSync(p);
539
+ return fs$1.readdirSync(p);
540
540
  } catch {
541
541
  return [];
542
542
  }
543
543
  };
544
- const exists = (p) => fs.existsSync(p);
544
+ const exists = (p) => fs$1.existsSync(p);
545
545
  if (!npu) {
546
546
  const { classifyIntelNpu } = await import("../../intel-npu-C8HKvRQF.mjs");
547
547
  npu = classifyIntelNpu({
@@ -569,7 +569,7 @@ var PlatformScorer = class {
569
569
  exists,
570
570
  readFile: (p) => {
571
571
  try {
572
- return fs.readFileSync(p, "utf8");
572
+ return fs$1.readFileSync(p, "utf8");
573
573
  } catch {
574
574
  return "";
575
575
  }
@@ -873,7 +873,7 @@ function jsonValue(text) {
873
873
  function readPublishedAcceleratorFacts(filePath) {
874
874
  let text;
875
875
  try {
876
- text = fs.readFileSync(filePath, "utf8");
876
+ text = fs$1.readFileSync(filePath, "utf8");
877
877
  } catch {
878
878
  return null;
879
879
  }
@@ -888,7 +888,7 @@ function findAcceleratorFactsScript(dataDir, cwd = process.cwd()) {
888
888
  const candidates = [];
889
889
  if (typeof dataDir === "string" && dataDir !== "") candidates.push(path$1.join(dataDir, "addons", "@dominevo", "addon-pipeline", "python", "accelerator_facts.py"));
890
890
  candidates.push(path$1.join(cwd, "packages", "addon-pipeline", "python", "accelerator_facts.py"));
891
- for (const candidate of candidates) if (fs.existsSync(candidate)) return candidate;
891
+ for (const candidate of candidates) if (fs$1.existsSync(candidate)) return candidate;
892
892
  return null;
893
893
  }
894
894
  async function defaultExec(command, args, timeoutMs) {
@@ -1,7 +1,7 @@
1
1
  import { t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
2
2
  import { n as filesystemBrowseCapability, t as storageProviderCapability } from "../../storage-provider.cap-BswyifK2.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
- import * as fs from "node:fs";
4
+ import * as fs$1 from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import { basename, dirname, isAbsolute, join, resolve, sep } from "node:path";
7
7
  import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
@@ -170,16 +170,16 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
170
170
  error: "config.basePath must be a non-empty string"
171
171
  };
172
172
  try {
173
- const stat = await fs.promises.stat(basePath).catch(() => null);
173
+ const stat = await fs$1.promises.stat(basePath).catch(() => null);
174
174
  if (stat) {
175
175
  if (!stat.isDirectory()) return {
176
176
  ok: false,
177
177
  error: `Path "${basePath}" exists but is not a directory`
178
178
  };
179
- await fs.promises.access(basePath, fs.constants.W_OK);
179
+ await fs$1.promises.access(basePath, fs$1.constants.W_OK);
180
180
  return { ok: true };
181
181
  }
182
- await fs.promises.mkdir(basePath, { recursive: true });
182
+ await fs$1.promises.mkdir(basePath, { recursive: true });
183
183
  return { ok: true };
184
184
  } catch (err) {
185
185
  return {
@@ -193,12 +193,12 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
193
193
  }
194
194
  async write({ location, relativePath, data }) {
195
195
  const filePath = safeResolve(getBasePath(location), relativePath);
196
- await fs.promises.mkdir(path$1.dirname(filePath), { recursive: true });
197
- await fs.promises.writeFile(filePath, data);
196
+ await fs$1.promises.mkdir(path$1.dirname(filePath), { recursive: true });
197
+ await fs$1.promises.writeFile(filePath, data);
198
198
  }
199
199
  async read({ location, relativePath }) {
200
200
  const filePath = safeResolve(getBasePath(location), relativePath);
201
- const buf = await fs.promises.readFile(filePath);
201
+ const buf = await fs$1.promises.readFile(filePath);
202
202
  const out = new Uint8Array(new ArrayBuffer(buf.byteLength));
203
203
  out.set(buf);
204
204
  return out;
@@ -206,7 +206,7 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
206
206
  async exists({ location, relativePath }) {
207
207
  const filePath = safeResolve(getBasePath(location), relativePath);
208
208
  try {
209
- await fs.promises.access(filePath);
209
+ await fs$1.promises.access(filePath);
210
210
  return true;
211
211
  } catch {
212
212
  return false;
@@ -216,25 +216,25 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
216
216
  const base = getBasePath(location);
217
217
  const dir = prefix ? safeResolve(base, prefix) : path$1.resolve(base);
218
218
  try {
219
- return (await fs.promises.readdir(dir, { withFileTypes: true })).map((e) => prefix ? `${prefix}/${e.name}` : e.name);
219
+ return (await fs$1.promises.readdir(dir, { withFileTypes: true })).map((e) => prefix ? `${prefix}/${e.name}` : e.name);
220
220
  } catch {
221
221
  return [];
222
222
  }
223
223
  }
224
224
  async delete({ location, relativePath }) {
225
225
  const filePath = safeResolve(getBasePath(location), relativePath);
226
- await fs.promises.rm(filePath, { force: true });
226
+ await fs$1.promises.rm(filePath, { force: true });
227
227
  }
228
228
  async getAvailableSpace({ location }) {
229
229
  const base = path$1.resolve(getBasePath(location));
230
230
  try {
231
231
  let target = base;
232
- while (!fs.existsSync(target)) {
232
+ while (!fs$1.existsSync(target)) {
233
233
  const parent = path$1.dirname(target);
234
234
  if (!parent || parent === target) return null;
235
235
  target = parent;
236
236
  }
237
- const stats = await fs.promises.statfs(target);
237
+ const stats = await fs$1.promises.statfs(target);
238
238
  return stats.bavail * stats.bsize;
239
239
  } catch {
240
240
  return null;
@@ -243,9 +243,9 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
243
243
  async beginUpload({ location, relativePath }) {
244
244
  const target = safeResolve(getBasePath(location), relativePath);
245
245
  const partial = `${target}.partial`;
246
- await fs.promises.mkdir(path$1.dirname(target), { recursive: true });
247
- await fs.promises.unlink(partial).catch(() => {});
248
- const stream = fs.createWriteStream(partial);
246
+ await fs$1.promises.mkdir(path$1.dirname(target), { recursive: true });
247
+ await fs$1.promises.unlink(partial).catch(() => {});
248
+ const stream = fs$1.createWriteStream(partial);
249
249
  const uploadId = randomUUID();
250
250
  const session = {
251
251
  stream,
@@ -286,7 +286,7 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
286
286
  session.stream.end(() => resolve());
287
287
  session.stream.on("error", reject);
288
288
  });
289
- await fs.promises.rename(session.partial, session.target);
289
+ await fs$1.promises.rename(session.partial, session.target);
290
290
  clearTimeout(session.timer);
291
291
  this.uploads.delete(uploadId);
292
292
  }
@@ -296,14 +296,14 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
296
296
  try {
297
297
  session.stream.destroy();
298
298
  } catch {}
299
- await fs.promises.unlink(session.partial).catch(() => {});
299
+ await fs$1.promises.unlink(session.partial).catch(() => {});
300
300
  clearTimeout(session.timer);
301
301
  this.uploads.delete(uploadId);
302
302
  }
303
303
  async beginDownload({ location, relativePath }) {
304
304
  const target = safeResolve(getBasePath(location), relativePath);
305
- const stat = await fs.promises.stat(target);
306
- const fd = await fs.promises.open(target, "r");
305
+ const stat = await fs$1.promises.stat(target);
306
+ const fd = await fs$1.promises.open(target, "r");
307
307
  const downloadId = randomUUID();
308
308
  const session = {
309
309
  fd,