@camstack/addon-mqtt-broker 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/mqtt-broker.addon.js +17 -8
- package/dist/mqtt-broker.addon.mjs +17 -8
- package/package.json +1 -1
|
@@ -4673,7 +4673,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4673
4673
|
return inst;
|
|
4674
4674
|
}
|
|
4675
4675
|
//#endregion
|
|
4676
|
-
//#region ../types/dist/sleep-
|
|
4676
|
+
//#region ../types/dist/sleep-_J5S7OEP.mjs
|
|
4677
4677
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4678
4678
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4679
4679
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5788,15 +5788,24 @@ var BaseAddon = class {
|
|
|
5788
5788
|
} catch {}
|
|
5789
5789
|
}
|
|
5790
5790
|
/**
|
|
5791
|
-
* Resolve the shared models directory
|
|
5792
|
-
*
|
|
5793
|
-
*
|
|
5791
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
5792
|
+
*
|
|
5793
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
5794
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
5795
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
5796
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
5797
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
5798
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
5799
|
+
*
|
|
5800
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
5801
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
5794
5802
|
*/
|
|
5795
5803
|
async resolveModelsDir() {
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5804
|
+
const { join } = await import("node:path");
|
|
5805
|
+
const { promises: fsp } = await import("node:fs");
|
|
5806
|
+
const dir = join(this.ctx.nodeDataDir, "models");
|
|
5807
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
5808
|
+
return dir;
|
|
5800
5809
|
}
|
|
5801
5810
|
/**
|
|
5802
5811
|
* Access the runtime capability registry for in-process provider lookups.
|
|
@@ -4668,7 +4668,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4668
4668
|
return inst;
|
|
4669
4669
|
}
|
|
4670
4670
|
//#endregion
|
|
4671
|
-
//#region ../types/dist/sleep-
|
|
4671
|
+
//#region ../types/dist/sleep-_J5S7OEP.mjs
|
|
4672
4672
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4673
4673
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4674
4674
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5783,15 +5783,24 @@ var BaseAddon = class {
|
|
|
5783
5783
|
} catch {}
|
|
5784
5784
|
}
|
|
5785
5785
|
/**
|
|
5786
|
-
* Resolve the shared models directory
|
|
5787
|
-
*
|
|
5788
|
-
*
|
|
5786
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
5787
|
+
*
|
|
5788
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
5789
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
5790
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
5791
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
5792
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
5793
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
5794
|
+
*
|
|
5795
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
5796
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
5789
5797
|
*/
|
|
5790
5798
|
async resolveModelsDir() {
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5799
|
+
const { join } = await import("node:path");
|
|
5800
|
+
const { promises: fsp } = await import("node:fs");
|
|
5801
|
+
const dir = join(this.ctx.nodeDataDir, "models");
|
|
5802
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
5803
|
+
return dir;
|
|
5795
5804
|
}
|
|
5796
5805
|
/**
|
|
5797
5806
|
* Access the runtime capability registry for in-process provider lookups.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-mqtt-broker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|