@camstack/server 1.2.932 → 1.2.934
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 +18 -0
- package/dist/api/trpc/generated-cap-routers.js +20 -0
- package/package.json +8 -7
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{base-device-IuM1AwXZ.mjs → base-device-Bwiblqmn.mjs} +1 -1
- package/system/dist/{base-device-2sL1DMm1.js → base-device-C1z4zYGR.js} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +3 -3
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +4 -4
- package/system/dist/builtins/alerts/alerts.addon.js +2 -2
- package/system/dist/builtins/alerts/alerts.addon.mjs +4 -4
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +4 -4
- package/system/dist/builtins/camera-grid/index.js +2 -2
- package/system/dist/builtins/camera-grid/index.mjs +2 -2
- package/system/dist/builtins/composer/composer.addon.js +5 -5
- package/system/dist/builtins/composer/composer.addon.mjs +5 -5
- package/system/dist/builtins/core-blocks/cap-links.d.ts +34 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +4 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +282 -8
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +282 -8
- package/system/dist/builtins/device-manager/device-manager.addon.js +18 -4
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +18 -4
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +9 -9
- package/system/dist/builtins/platform-probe/index.mjs +9 -9
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +19 -19
- package/system/dist/builtins/system-config/system-config.addon.mjs +113 -113
- package/system/dist/{composition-sources-BEUWn2s_.mjs → composition-sources-B0QW4g86.mjs} +2 -2
- package/system/dist/{composition-sources-acfR4hDq.js → composition-sources-BtUx1MfU.js} +2 -2
- package/system/dist/{coral-accelerators-zTMTEd-8.mjs → coral-accelerators-BKcXP59c.mjs} +6 -6
- package/system/dist/{core-blocks.cap-BRPsLAij.mjs → core-blocks.cap-CnwBuf7E.mjs} +1524 -1267
- package/system/dist/{core-blocks.cap-BMeMCBrx.js → core-blocks.cap-DlEuHq-S.js} +1555 -1268
- package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
- package/system/dist/{error.cap-CSM_SRfR.mjs → error.cap-5zNPAgU2.mjs} +19 -2
- package/system/dist/{error.cap-DBhgPeWK.js → error.cap-BCqzFlo2.js} +24 -1
- package/system/dist/{hub-identity-_IOgPJ00.mjs → hub-identity-DjMN9Ac2.mjs} +9 -9
- package/system/dist/{hub-mdns-ciao-Dk7ts_Uk.mjs → hub-mdns-ciao-DBrtHOcc.mjs} +1 -1
- package/system/dist/index.js +2 -2
- package/system/dist/index.mjs +214 -214
- package/system/dist/{prefix-walk-ifwg_ukx.mjs → prefix-walk-CRnbYJcC.mjs} +2 -2
- package/system/dist/{prefix-walk-BkMxoXpL.js → prefix-walk-DD1BM923.js} +2 -2
- package/system/dist/{rename-composition-block-BJsL58Ih.js → rename-composition-block-BRgyBO25.js} +20 -2
- package/system/dist/{rename-composition-block-OAtErZgq.mjs → rename-composition-block-BYRBlx-V.mjs} +20 -2
- package/system/dist/{restore-archive-kSFNjkWY.mjs → restore-archive-CjAyKpgX.mjs} +93 -93
- package/system/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Z as errMsg } from "./scoped-settings-DVWUIP7Z.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { N as compositionSourceKey, c as isIdentifier, d as signedToken, f as unsignedToken, l as linearExpr, o as constantExpr, s as dwellExpr, u as overrideExpr } from "./error.cap-
|
|
2
|
+
import { Q as CAP_CUSTOMIZE_CATALOG } from "./core-blocks.cap-CnwBuf7E.mjs";
|
|
3
|
+
import { N as compositionSourceKey, c as isIdentifier, d as signedToken, f as unsignedToken, l as linearExpr, o as constantExpr, s as dwellExpr, u as overrideExpr } from "./error.cap-5zNPAgU2.mjs";
|
|
4
4
|
//#region ../types/dist/esm/composition/customize/field-source.mjs
|
|
5
5
|
function fromRead(source, cap, fieldPath) {
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_scoped_settings = require("./scoped-settings-CylSSq_8.js");
|
|
2
|
-
const require_core_blocks_cap = require("./core-blocks.cap-
|
|
3
|
-
const require_error_cap = require("./error.cap-
|
|
2
|
+
const require_core_blocks_cap = require("./core-blocks.cap-DlEuHq-S.js");
|
|
3
|
+
const require_error_cap = require("./error.cap-BCqzFlo2.js");
|
|
4
4
|
//#region ../types/dist/esm/composition/customize/field-source.mjs
|
|
5
5
|
function fromRead(source, cap, fieldPath) {
|
|
6
6
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EDGETPU_LIB_ENV, chooseEdgetpuDelegate, nodeDataRootFromEnv } from "@camstack/types/node";
|
|
2
|
-
import
|
|
2
|
+
import fs from "node:fs";
|
|
3
3
|
//#region ../types/dist/esm/inference/coral-units.mjs
|
|
4
4
|
/** Bus order of the enumeration: USB first (the historical key), then PCIe. */
|
|
5
5
|
var BUS_ORDER = ["usb", "pci"];
|
|
@@ -475,21 +475,21 @@ function detectCoralAccelerator(fsx, delegateHost = currentDelegateHost()) {
|
|
|
475
475
|
}
|
|
476
476
|
function safeListOrNull(dir) {
|
|
477
477
|
try {
|
|
478
|
-
return
|
|
478
|
+
return fs.readdirSync(dir);
|
|
479
479
|
} catch {
|
|
480
480
|
return null;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
function safeList(dir) {
|
|
484
484
|
try {
|
|
485
|
-
return
|
|
485
|
+
return fs.readdirSync(dir);
|
|
486
486
|
} catch {
|
|
487
487
|
return [];
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
function safeRead(path) {
|
|
491
491
|
try {
|
|
492
|
-
return
|
|
492
|
+
return fs.readFileSync(path, "utf8").trim();
|
|
493
493
|
} catch {
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
@@ -503,7 +503,7 @@ var nodeCoralFs = {
|
|
|
503
503
|
listApexClass: () => safeList("/sys/class/apex"),
|
|
504
504
|
canOpen: (path) => {
|
|
505
505
|
try {
|
|
506
|
-
|
|
506
|
+
fs.accessSync(path, fs.constants.R_OK | fs.constants.W_OK);
|
|
507
507
|
return true;
|
|
508
508
|
} catch {
|
|
509
509
|
return false;
|
|
@@ -511,7 +511,7 @@ var nodeCoralFs = {
|
|
|
511
511
|
},
|
|
512
512
|
exists: (path) => {
|
|
513
513
|
try {
|
|
514
|
-
return
|
|
514
|
+
return fs.existsSync(path);
|
|
515
515
|
} catch {
|
|
516
516
|
return false;
|
|
517
517
|
}
|