@camstack/addon-remote-storage 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/s3.addon.js +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-Df-ffKz9.mjs → shared-B9MZZLEG.mjs} +17 -8
- package/dist/{shared-DB-bSHfI.js → shared-Cg0_vqM3.js} +17 -8
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +1 -1
package/dist/s3.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-Cg0_vqM3.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
8
8
|
let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
|
package/dist/s3.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-B9MZZLEG.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
4
4
|
import { Upload } from "@aws-sdk/lib-storage";
|
package/dist/sftp.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-Cg0_vqM3.js");
|
|
6
6
|
let ssh2 = require("ssh2");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
package/dist/sftp.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-B9MZZLEG.mjs";
|
|
2
2
|
import { Client } from "ssh2";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
//#region src/providers/sftp/sftp-config-schema.ts
|
|
@@ -4629,7 +4629,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4629
4629
|
return inst;
|
|
4630
4630
|
}
|
|
4631
4631
|
//#endregion
|
|
4632
|
-
//#region ../types/dist/sleep-
|
|
4632
|
+
//#region ../types/dist/sleep-_J5S7OEP.mjs
|
|
4633
4633
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4634
4634
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4635
4635
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -5744,15 +5744,24 @@ var BaseAddon = class {
|
|
|
5744
5744
|
} catch {}
|
|
5745
5745
|
}
|
|
5746
5746
|
/**
|
|
5747
|
-
* Resolve the shared models directory
|
|
5748
|
-
*
|
|
5749
|
-
*
|
|
5747
|
+
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
5748
|
+
*
|
|
5749
|
+
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
5750
|
+
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
5751
|
+
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
5752
|
+
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
5753
|
+
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
5754
|
+
* whose real data dir differs (e.g. the macOS electron agent).
|
|
5755
|
+
*
|
|
5756
|
+
* `node:path`/`node:fs` are imported dynamically so the `@camstack/types` root
|
|
5757
|
+
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
5750
5758
|
*/
|
|
5751
5759
|
async resolveModelsDir() {
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5760
|
+
const { join } = await import("node:path");
|
|
5761
|
+
const { promises: fsp } = await import("node:fs");
|
|
5762
|
+
const dir = join(this.ctx.nodeDataDir, "models");
|
|
5763
|
+
await fsp.mkdir(dir, { recursive: true });
|
|
5764
|
+
return dir;
|
|
5756
5765
|
}
|
|
5757
5766
|
/**
|
|
5758
5767
|
* Access the runtime capability registry for in-process provider lookups.
|
|
@@ -4652,7 +4652,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4652
4652
|
return inst;
|
|
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/dist/webdav.addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_shared = require("./shared-
|
|
5
|
+
const require_shared = require("./shared-Cg0_vqM3.js");
|
|
6
6
|
let node_stream = require("node:stream");
|
|
7
7
|
let webdav = require("webdav");
|
|
8
8
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/dist/webdav.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-
|
|
1
|
+
import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-B9MZZLEG.mjs";
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import { AuthType, createClient } from "webdav";
|
|
4
4
|
//#region src/providers/webdav/webdav-config-schema.ts
|
package/package.json
CHANGED