@camstack/addon-tailscale 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.
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_dist = require("../dist-DxOA3Ddo.js");
27
+ const require_dist = require("../dist-CaxA18E2.js");
28
28
  let node_child_process = require("node:child_process");
29
29
  let node_util = require("node:util");
30
30
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-BTq7tvIJ.mjs";
1
+ import { i as EventCategory, n as networkAccessCapability, r as BaseAddon, t as meshNetworkCapability } from "../dist-LzWxzaDF.mjs";
2
2
  import { execFile, spawn } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import * as fs from "node:fs";
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-BV7rLc6Y.mjs
4630
+ //#region ../types/dist/sleep-_J5S7OEP.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5742,15 +5742,24 @@ var BaseAddon = class {
5742
5742
  } catch {}
5743
5743
  }
5744
5744
  /**
5745
- * Resolve the shared models directory path via the storage capability.
5746
- * Falls back to `camstack-data/models` if storage is unavailable.
5747
- * Used by inference addons (detection-pipeline, audio-classifier, embedding-encoder).
5745
+ * Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
5746
+ *
5747
+ * This is the SINGLE centralized models-dir resolver for every inference addon
5748
+ * (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
5749
+ * anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
5750
+ * `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
5751
+ * cap, which returns the hub's `/data/models` to every node and breaks any node
5752
+ * whose real data dir differs (e.g. the macOS electron agent).
5753
+ *
5754
+ * `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
5755
+ * barrel (re-exported into browser bundles) stays free of node builtins.
5748
5756
  */
5749
5757
  async resolveModelsDir() {
5750
- return this.ctx.api.storage.resolve.query({
5751
- location: "models",
5752
- relativePath: ""
5753
- }).catch(() => "camstack-data/models");
5758
+ const { join } = await import("node:path");
5759
+ const { promises: fsp } = await import("node:fs");
5760
+ const dir = join(this.ctx.nodeDataDir, "models");
5761
+ await fsp.mkdir(dir, { recursive: true });
5762
+ return dir;
5754
5763
  }
5755
5764
  /**
5756
5765
  * Access the runtime capability registry for in-process provider lookups.
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-BV7rLc6Y.mjs
4630
+ //#region ../types/dist/sleep-_J5S7OEP.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5742,15 +5742,24 @@ var BaseAddon = class {
5742
5742
  } catch {}
5743
5743
  }
5744
5744
  /**
5745
- * Resolve the shared models directory path via the storage capability.
5746
- * Falls back to `camstack-data/models` if storage is unavailable.
5747
- * Used by inference addons (detection-pipeline, audio-classifier, embedding-encoder).
5745
+ * Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
5746
+ *
5747
+ * This is the SINGLE centralized models-dir resolver for every inference addon
5748
+ * (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
5749
+ * anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
5750
+ * `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
5751
+ * cap, which returns the hub's `/data/models` to every node and breaks any node
5752
+ * whose real data dir differs (e.g. the macOS electron agent).
5753
+ *
5754
+ * `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
5755
+ * barrel (re-exported into browser bundles) stays free of node builtins.
5748
5756
  */
5749
5757
  async resolveModelsDir() {
5750
- return this.ctx.api.storage.resolve.query({
5751
- location: "models",
5752
- relativePath: ""
5753
- }).catch(() => "camstack-data/models");
5758
+ const { join } = await import("node:path");
5759
+ const { promises: fsp } = await import("node:fs");
5760
+ const dir = join(this.ctx.nodeDataDir, "models");
5761
+ await fsp.mkdir(dir, { recursive: true });
5762
+ return dir;
5754
5763
  }
5755
5764
  /**
5756
5765
  * Access the runtime capability registry for in-process provider lookups.
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-DxOA3Ddo.js");
5
+ const require_dist = require("../dist-CaxA18E2.js");
6
6
  let node_child_process = require("node:child_process");
7
7
  let node_util = require("node:util");
8
8
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-BTq7tvIJ.mjs";
1
+ import { i as EventCategory, n as networkAccessCapability, r as BaseAddon } from "../dist-LzWxzaDF.mjs";
2
2
  import { execFile } from "node:child_process";
3
3
  import { promisify } from "node:util";
4
4
  import { randomUUID } from "node:crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-tailscale",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",