@camstack/addon-advanced-notifier 1.1.2 → 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
|
@@ -4632,7 +4632,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4632
4632
|
return inst;
|
|
4633
4633
|
}
|
|
4634
4634
|
//#endregion
|
|
4635
|
-
//#region ../types/dist/sleep-
|
|
4635
|
+
//#region ../types/dist/sleep-_J5S7OEP.mjs
|
|
4636
4636
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4637
4637
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4638
4638
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5747,15 +5747,24 @@ var BaseAddon = class {
|
|
|
5747
5747
|
} catch {}
|
|
5748
5748
|
}
|
|
5749
5749
|
/**
|
|
5750
|
-
* Resolve the shared models directory
|
|
5751
|
-
*
|
|
5752
|
-
*
|
|
5750
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
5751
|
+
*
|
|
5752
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
5753
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
5754
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
5755
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
5756
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
5757
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
5758
|
+
*
|
|
5759
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
5760
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
5753
5761
|
*/
|
|
5754
5762
|
async resolveModelsDir() {
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5763
|
+
const { join } = await import("node:path");
|
|
5764
|
+
const { promises: fsp } = await import("node:fs");
|
|
5765
|
+
const dir = join(this.ctx.nodeDataDir, "models");
|
|
5766
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
5767
|
+
return dir;
|
|
5759
5768
|
}
|
|
5760
5769
|
/**
|
|
5761
5770
|
* Access the runtime capability registry for in-process provider lookups.
|
package/dist/addon.mjs
CHANGED
|
@@ -4628,7 +4628,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4628
4628
|
return inst;
|
|
4629
4629
|
}
|
|
4630
4630
|
//#endregion
|
|
4631
|
-
//#region ../types/dist/sleep-
|
|
4631
|
+
//#region ../types/dist/sleep-_J5S7OEP.mjs
|
|
4632
4632
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4633
4633
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4634
4634
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5743,15 +5743,24 @@ var BaseAddon = class {
|
|
|
5743
5743
|
} catch {}
|
|
5744
5744
|
}
|
|
5745
5745
|
/**
|
|
5746
|
-
* Resolve the shared models directory
|
|
5747
|
-
*
|
|
5748
|
-
*
|
|
5746
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
5747
|
+
*
|
|
5748
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
5749
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
5750
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
5751
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
5752
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
5753
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
5754
|
+
*
|
|
5755
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
5756
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
5749
5757
|
*/
|
|
5750
5758
|
async resolveModelsDir() {
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5759
|
+
const { join } = await import("node:path");
|
|
5760
|
+
const { promises: fsp } = await import("node:fs");
|
|
5761
|
+
const dir = join(this.ctx.nodeDataDir, "models");
|
|
5762
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
5763
|
+
return dir;
|
|
5755
5764
|
}
|
|
5756
5765
|
/**
|
|
5757
5766
|
* Access the runtime capability registry for in-process provider lookups.
|