@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.
Files changed (34) hide show
  1. package/dist/addon.js +14 -43
  2. package/dist/addon.mjs +14 -43
  3. package/dist/capabilities/alerts.cap.d.ts +5 -5
  4. package/dist/capabilities/index.d.ts +7 -5
  5. package/dist/capabilities/notifier.cap.d.ts +3 -3
  6. package/dist/capabilities/pet-feeder.cap.d.ts +4 -4
  7. package/dist/capabilities/snapshot.cap.d.ts +2 -2
  8. package/dist/capabilities/storage-occupancy.cap.d.ts +72 -0
  9. package/dist/capabilities/storage-provider.cap.d.ts +110 -11
  10. package/dist/capabilities/storage.cap.d.ts +43 -22
  11. package/dist/capabilities/stream-broker.cap.d.ts +1 -1
  12. package/dist/enums/event-category.d.ts +13 -0
  13. package/dist/enums.js +1 -1
  14. package/dist/enums.mjs +1 -1
  15. package/dist/{event-category-b8kBSOTT.js → event-category-BVo6ta6_.js} +13 -0
  16. package/dist/{event-category-zAv7pMUz.mjs → event-category-CnLqLOKs.mjs} +13 -0
  17. package/dist/generated/addon-api.d.ts +22 -7
  18. package/dist/generated/capability-router-map.d.ts +5 -2
  19. package/dist/generated/collection-array-methods.d.ts +1 -1
  20. package/dist/generated/method-access-map.d.ts +1 -1
  21. package/dist/generated/system-proxy.d.ts +1 -1
  22. package/dist/index.d.ts +17 -15
  23. package/dist/index.js +2049 -1702
  24. package/dist/index.mjs +2028 -1703
  25. package/dist/interfaces/event-bus.d.ts +19 -0
  26. package/dist/interfaces/storage-location-mode.d.ts +135 -0
  27. package/dist/interfaces/storage-location.d.ts +79 -4
  28. package/dist/node.d.ts +13 -11
  29. package/dist/node.js +935 -876
  30. package/dist/node.mjs +936 -879
  31. package/dist/{sleep-DDIFZGbc.js → sleep-BZtO-eFY.js} +1 -1
  32. package/dist/{sleep-Cfij6Jj9.mjs → sleep-Bd-Y4RUt.mjs} +1 -1
  33. package/dist/storage/physical-root.d.ts +25 -0
  34. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const require_event_category = require("./event-category-b8kBSOTT.js");
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.
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-zAv7pMUz.mjs";
1
+ import { t as EventCategory } from "./event-category-CnLqLOKs.mjs";
2
2
  import { z } from "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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.161",
3
+ "version": "1.2.163",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",