@camstack/addon-provider-homematic 1.1.3 → 1.1.4
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 +17 -8
- package/dist/addon.mjs +17 -8
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -4651,7 +4651,7 @@ function preprocess(fn, schema) {
|
|
|
4651
4651
|
});
|
|
4652
4652
|
}
|
|
4653
4653
|
//#endregion
|
|
4654
|
-
//#region ../types/dist/sleep-
|
|
4654
|
+
//#region ../types/dist/sleep-_J5S7OEP.mjs
|
|
4655
4655
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4656
4656
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4657
4657
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5766,15 +5766,24 @@ var BaseAddon = class {
|
|
|
5766
5766
|
} catch {}
|
|
5767
5767
|
}
|
|
5768
5768
|
/**
|
|
5769
|
-
* Resolve the shared models directory
|
|
5770
|
-
*
|
|
5771
|
-
*
|
|
5769
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
5770
|
+
*
|
|
5771
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
5772
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
5773
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
5774
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
5775
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
5776
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
5777
|
+
*
|
|
5778
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
5779
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
5772
5780
|
*/
|
|
5773
5781
|
async resolveModelsDir() {
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5782
|
+
const { join } = await import("node:path");
|
|
5783
|
+
const { promises: fsp } = await import("node:fs");
|
|
5784
|
+
const dir = join(this.ctx.nodeDataDir, "models");
|
|
5785
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
5786
|
+
return dir;
|
|
5778
5787
|
}
|
|
5779
5788
|
/**
|
|
5780
5789
|
* Access the runtime capability registry for in-process provider lookups.
|
package/dist/addon.mjs
CHANGED
|
@@ -4652,7 +4652,7 @@ function preprocess(fn, schema) {
|
|
|
4652
4652
|
});
|
|
4653
4653
|
}
|
|
4654
4654
|
//#endregion
|
|
4655
|
-
//#region ../types/dist/sleep-
|
|
4655
|
+
//#region ../types/dist/sleep-_J5S7OEP.mjs
|
|
4656
4656
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4657
4657
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4658
4658
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5767,15 +5767,24 @@ var BaseAddon = class {
|
|
|
5767
5767
|
} catch {}
|
|
5768
5768
|
}
|
|
5769
5769
|
/**
|
|
5770
|
-
* Resolve the shared models directory
|
|
5771
|
-
*
|
|
5772
|
-
*
|
|
5770
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
5771
|
+
*
|
|
5772
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
5773
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
5774
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
5775
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
5776
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
5777
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
5778
|
+
*
|
|
5779
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
5780
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
5773
5781
|
*/
|
|
5774
5782
|
async resolveModelsDir() {
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5783
|
+
const { join } = await import("node:path");
|
|
5784
|
+
const { promises: fsp } = await import("node:fs");
|
|
5785
|
+
const dir = join(this.ctx.nodeDataDir, "models");
|
|
5786
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
5787
|
+
return dir;
|
|
5779
5788
|
}
|
|
5780
5789
|
/**
|
|
5781
5790
|
* Access the runtime capability registry for in-process provider lookups.
|
package/package.json
CHANGED