@camstack/types 1.2.161 → 1.2.163
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/dist/addon.js +14 -43
- package/dist/addon.mjs +14 -43
- package/dist/capabilities/alerts.cap.d.ts +5 -5
- package/dist/capabilities/index.d.ts +7 -5
- package/dist/capabilities/notifier.cap.d.ts +3 -3
- package/dist/capabilities/pet-feeder.cap.d.ts +4 -4
- package/dist/capabilities/snapshot.cap.d.ts +2 -2
- package/dist/capabilities/storage-occupancy.cap.d.ts +72 -0
- package/dist/capabilities/storage-provider.cap.d.ts +110 -11
- package/dist/capabilities/storage.cap.d.ts +43 -22
- package/dist/capabilities/stream-broker.cap.d.ts +1 -1
- package/dist/enums/event-category.d.ts +13 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-b8kBSOTT.js → event-category-BVo6ta6_.js} +13 -0
- package/dist/{event-category-zAv7pMUz.mjs → event-category-CnLqLOKs.mjs} +13 -0
- package/dist/generated/addon-api.d.ts +22 -7
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +17 -15
- package/dist/index.js +2049 -1702
- package/dist/index.mjs +2028 -1703
- package/dist/interfaces/event-bus.d.ts +19 -0
- package/dist/interfaces/storage-location-mode.d.ts +135 -0
- package/dist/interfaces/storage-location.d.ts +79 -4
- package/dist/node.d.ts +13 -11
- package/dist/node.js +935 -876
- package/dist/node.mjs +936 -879
- package/dist/{sleep-DDIFZGbc.js → sleep-BZtO-eFY.js} +1 -1
- package/dist/{sleep-Cfij6Jj9.mjs → sleep-Bd-Y4RUt.mjs} +1 -1
- package/dist/storage/physical-root.d.ts +25 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_event_category = require("./event-category-
|
|
1
|
+
const require_event_category = require("./event-category-BVo6ta6_.js");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/interfaces/config-ui.ts
|
|
4
4
|
/** Predefined tabs with standard label, icon, and sort order.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Injectable realpath (defaults to the sync fs call) — lets tests drive it. */
|
|
2
|
+
export type RealpathSync = (p: string) => string;
|
|
3
|
+
/** A resolved physical root, and whether the filesystem actually answered. */
|
|
4
|
+
export interface PhysicalRoot {
|
|
5
|
+
/** `realpath` of the path, or the lexically-resolved path when it could not
|
|
6
|
+
* be taken. Always usable as a comparison key. */
|
|
7
|
+
readonly key: string;
|
|
8
|
+
/** True when `realpath` answered. FALSE means "I could not tell" — which is
|
|
9
|
+
* not the same as "they differ", and a refusal must never be built on it. */
|
|
10
|
+
readonly resolved: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** Resolve a location root to its physical key. Never throws. */
|
|
13
|
+
export declare function physicalRootOf(root: string, realpath?: RealpathSync): PhysicalRoot;
|
|
14
|
+
/**
|
|
15
|
+
* Is `inner` the same directory as `outer`, or nested inside it?
|
|
16
|
+
*
|
|
17
|
+
* Containment matters as much as equality: a location inside another's tree is
|
|
18
|
+
* WORSE than two equal roots, because the occupancy accounting silently
|
|
19
|
+
* overlaps and a deletion under the outer one can take the inner one's footage
|
|
20
|
+
* with it.
|
|
21
|
+
*
|
|
22
|
+
* Compared on path SEGMENTS, never as a string prefix — `/mnt/disk1` is not
|
|
23
|
+
* inside `/mnt/disk` even though the string says so.
|
|
24
|
+
*/
|
|
25
|
+
export declare function containsOrEquals(outer: string, inner: string): boolean;
|