@camstack/addon-remote-storage 1.2.52 → 1.2.54
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-DXWSci5Y.mjs → shared-1TJGwDse.mjs} +44 -5
- package/dist/{shared-C10q8it6.js → shared-CYlPexMB.js} +44 -5
- package/dist/smb.addon.js +1 -1
- package/dist/smb.addon.mjs +1 -1
- 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-CYlPexMB.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-1TJGwDse.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-CYlPexMB.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-1TJGwDse.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
|
|
@@ -13242,6 +13242,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13242
13242
|
auth: "admin"
|
|
13243
13243
|
});
|
|
13244
13244
|
/**
|
|
13245
|
+
* Transport bounds for AI capability methods.
|
|
13246
|
+
*
|
|
13247
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13248
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13249
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13250
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13251
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13252
|
+
*/
|
|
13253
|
+
/**
|
|
13254
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13255
|
+
*
|
|
13256
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13257
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13258
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13259
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13260
|
+
* the wrong layer and hiding the real one.
|
|
13261
|
+
*
|
|
13262
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13263
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13264
|
+
* exactly 60 s and shipped without its text.
|
|
13265
|
+
*
|
|
13266
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13267
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13268
|
+
* decide when to stop, because only they can say WHY.
|
|
13269
|
+
*/
|
|
13270
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13271
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13272
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13273
|
+
/**
|
|
13245
13274
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13246
13275
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13247
13276
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13513,16 +13542,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13513
13542
|
timeoutMs: number().int().positive().optional()
|
|
13514
13543
|
}), LlmGenerateResultSchema, {
|
|
13515
13544
|
kind: "mutation",
|
|
13516
|
-
auth: "admin"
|
|
13545
|
+
auth: "admin",
|
|
13546
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13517
13547
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13518
13548
|
kind: "mutation",
|
|
13519
|
-
auth: "admin"
|
|
13549
|
+
auth: "admin",
|
|
13550
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13520
13551
|
}), method(object({}), _void(), {
|
|
13521
13552
|
kind: "mutation",
|
|
13522
13553
|
auth: "admin"
|
|
13523
13554
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13524
13555
|
kind: "mutation",
|
|
13525
|
-
auth: "admin"
|
|
13556
|
+
auth: "admin",
|
|
13557
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13526
13558
|
}), method(object({ file: string() }), _void(), {
|
|
13527
13559
|
kind: "mutation",
|
|
13528
13560
|
auth: "admin"
|
|
@@ -13690,7 +13722,13 @@ var ProfileRefInputSchema = object({
|
|
|
13690
13722
|
addonId: string(),
|
|
13691
13723
|
profileId: string()
|
|
13692
13724
|
});
|
|
13693
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
13725
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
13726
|
+
kind: "mutation",
|
|
13727
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13728
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
13729
|
+
kind: "mutation",
|
|
13730
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13731
|
+
}), method(object({
|
|
13694
13732
|
addonId: string().optional(),
|
|
13695
13733
|
requestId: string()
|
|
13696
13734
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -13701,7 +13739,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
13701
13739
|
auth: "admin"
|
|
13702
13740
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
13703
13741
|
kind: "mutation",
|
|
13704
|
-
auth: "admin"
|
|
13742
|
+
auth: "admin",
|
|
13743
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13705
13744
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
13706
13745
|
selector: LlmDefaultSelectorSchema,
|
|
13707
13746
|
profileId: string().nullable()
|
|
@@ -13265,6 +13265,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13265
13265
|
auth: "admin"
|
|
13266
13266
|
});
|
|
13267
13267
|
/**
|
|
13268
|
+
* Transport bounds for AI capability methods.
|
|
13269
|
+
*
|
|
13270
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13271
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13272
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13273
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13274
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13275
|
+
*/
|
|
13276
|
+
/**
|
|
13277
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13278
|
+
*
|
|
13279
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13280
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13281
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13282
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13283
|
+
* the wrong layer and hiding the real one.
|
|
13284
|
+
*
|
|
13285
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13286
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13287
|
+
* exactly 60 s and shipped without its text.
|
|
13288
|
+
*
|
|
13289
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13290
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13291
|
+
* decide when to stop, because only they can say WHY.
|
|
13292
|
+
*/
|
|
13293
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13294
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13295
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13296
|
+
/**
|
|
13268
13297
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13269
13298
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13270
13299
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13536,16 +13565,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13536
13565
|
timeoutMs: number().int().positive().optional()
|
|
13537
13566
|
}), LlmGenerateResultSchema, {
|
|
13538
13567
|
kind: "mutation",
|
|
13539
|
-
auth: "admin"
|
|
13568
|
+
auth: "admin",
|
|
13569
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13540
13570
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13541
13571
|
kind: "mutation",
|
|
13542
|
-
auth: "admin"
|
|
13572
|
+
auth: "admin",
|
|
13573
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13543
13574
|
}), method(object({}), _void(), {
|
|
13544
13575
|
kind: "mutation",
|
|
13545
13576
|
auth: "admin"
|
|
13546
13577
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13547
13578
|
kind: "mutation",
|
|
13548
|
-
auth: "admin"
|
|
13579
|
+
auth: "admin",
|
|
13580
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13549
13581
|
}), method(object({ file: string() }), _void(), {
|
|
13550
13582
|
kind: "mutation",
|
|
13551
13583
|
auth: "admin"
|
|
@@ -13713,7 +13745,13 @@ var ProfileRefInputSchema = object({
|
|
|
13713
13745
|
addonId: string(),
|
|
13714
13746
|
profileId: string()
|
|
13715
13747
|
});
|
|
13716
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
13748
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
13749
|
+
kind: "mutation",
|
|
13750
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13751
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
13752
|
+
kind: "mutation",
|
|
13753
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13754
|
+
}), method(object({
|
|
13717
13755
|
addonId: string().optional(),
|
|
13718
13756
|
requestId: string()
|
|
13719
13757
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -13724,7 +13762,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
13724
13762
|
auth: "admin"
|
|
13725
13763
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
13726
13764
|
kind: "mutation",
|
|
13727
|
-
auth: "admin"
|
|
13765
|
+
auth: "admin",
|
|
13766
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13728
13767
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
13729
13768
|
selector: LlmDefaultSelectorSchema,
|
|
13730
13769
|
profileId: string().nullable()
|
package/dist/smb.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-CYlPexMB.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
package/dist/smb.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-1TJGwDse.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
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-CYlPexMB.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-1TJGwDse.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