@camstack/addon-remote-storage 1.2.52 → 1.2.55

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 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-C10q8it6.js");
5
+ const require_shared = require("./shared-0jYjizzs.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-DXWSci5Y.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-BpCkqZUj.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";
@@ -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-C10q8it6.js");
5
+ const require_shared = require("./shared-0jYjizzs.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -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-DXWSci5Y.mjs";
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-BpCkqZUj.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
@@ -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, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
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()
@@ -14190,17 +14229,6 @@ var ContainerMemoryPointSchema = object({
14190
14229
  */
14191
14230
  gpuShmemBytes: number().nullable()
14192
14231
  }).extend({ atMs: number() });
14193
- var DumpHeapSnapshotInputSchema = object({
14194
- /** The addon whose runner should dump a heap snapshot. */
14195
- addonId: string() });
14196
- var DumpHeapSnapshotResultSchema = object({
14197
- success: boolean(),
14198
- /** Path of the written .heapsnapshot inside the runner's container/host. */
14199
- path: string().optional(),
14200
- /** Process pid that was signalled. */
14201
- pid: number().optional(),
14202
- reason: string().optional()
14203
- });
14204
14232
  /**
14205
14233
  * One point of one function's series.
14206
14234
  *
@@ -14324,10 +14352,7 @@ var SystemMetricsSchema = object({
14324
14352
  gpuPercent: number().optional(),
14325
14353
  gpuMemoryPercent: number().optional()
14326
14354
  });
14327
- method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSnapshotSchema.nullable()), method(_void(), SystemMetricsSchema), method(object({ dirPath: string() }), DiskSpaceInfoSchema), method(_void(), MetricsGpuInfoSchema.nullable()), method(_void(), number().nullable()), method(object({ pids: array(number()) }), array(PidResourceStatsSchema)), method(_void(), array(AddonInstanceSchema).readonly()), method(object({ addonId: string() }), PidResourceStatsSchema.nullable()), method(_void(), array(NodeProcessSchema).readonly()), method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema), method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
14328
- kind: "mutation",
14329
- auth: "admin"
14330
- });
14355
+ method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSnapshotSchema.nullable()), method(_void(), SystemMetricsSchema), method(object({ dirPath: string() }), DiskSpaceInfoSchema), method(_void(), MetricsGpuInfoSchema.nullable()), method(_void(), number().nullable()), method(object({ pids: array(number()) }), array(PidResourceStatsSchema)), method(_void(), array(AddonInstanceSchema).readonly()), method(object({ addonId: string() }), PidResourceStatsSchema.nullable()), method(_void(), array(NodeProcessSchema).readonly()), method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema);
14331
14356
  method(object({
14332
14357
  sourceUrl: string(),
14333
14358
  metadata: ModelConvertMetadataSchema,
@@ -18561,7 +18586,8 @@ var MediaFileKindEnum = _enum([
18561
18586
  "plateCrop",
18562
18587
  "keyFrame",
18563
18588
  "keyFrameSmall",
18564
- "thumbnailSmall"
18589
+ "thumbnailSmall",
18590
+ "sceneFrame"
18565
18591
  ]);
18566
18592
  /**
18567
18593
  * One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
@@ -31439,12 +31465,6 @@ Object.freeze({
31439
31465
  addonId: null,
31440
31466
  access: "view"
31441
31467
  },
31442
- "metricsProvider.dumpHeapSnapshot": {
31443
- capName: "metrics-provider",
31444
- capScope: "system",
31445
- addonId: null,
31446
- access: "create"
31447
- },
31448
31468
  "metricsProvider.getAddonStats": {
31449
31469
  capName: "metrics-provider",
31450
31470
  capScope: "system",
@@ -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, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
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()
@@ -14167,17 +14206,6 @@ var ContainerMemoryPointSchema = object({
14167
14206
  */
14168
14207
  gpuShmemBytes: number().nullable()
14169
14208
  }).extend({ atMs: number() });
14170
- var DumpHeapSnapshotInputSchema = object({
14171
- /** The addon whose runner should dump a heap snapshot. */
14172
- addonId: string() });
14173
- var DumpHeapSnapshotResultSchema = object({
14174
- success: boolean(),
14175
- /** Path of the written .heapsnapshot inside the runner's container/host. */
14176
- path: string().optional(),
14177
- /** Process pid that was signalled. */
14178
- pid: number().optional(),
14179
- reason: string().optional()
14180
- });
14181
14209
  /**
14182
14210
  * One point of one function's series.
14183
14211
  *
@@ -14301,10 +14329,7 @@ var SystemMetricsSchema = object({
14301
14329
  gpuPercent: number().optional(),
14302
14330
  gpuMemoryPercent: number().optional()
14303
14331
  });
14304
- method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSnapshotSchema.nullable()), method(_void(), SystemMetricsSchema), method(object({ dirPath: string() }), DiskSpaceInfoSchema), method(_void(), MetricsGpuInfoSchema.nullable()), method(_void(), number().nullable()), method(object({ pids: array(number()) }), array(PidResourceStatsSchema)), method(_void(), array(AddonInstanceSchema).readonly()), method(object({ addonId: string() }), PidResourceStatsSchema.nullable()), method(_void(), array(NodeProcessSchema).readonly()), method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema), method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
14305
- kind: "mutation",
14306
- auth: "admin"
14307
- });
14332
+ method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSnapshotSchema.nullable()), method(_void(), SystemMetricsSchema), method(object({ dirPath: string() }), DiskSpaceInfoSchema), method(_void(), MetricsGpuInfoSchema.nullable()), method(_void(), number().nullable()), method(object({ pids: array(number()) }), array(PidResourceStatsSchema)), method(_void(), array(AddonInstanceSchema).readonly()), method(object({ addonId: string() }), PidResourceStatsSchema.nullable()), method(_void(), array(NodeProcessSchema).readonly()), method(GetLoadSeriesInputSchema, NodeLoadSeriesSchema);
14308
14333
  method(object({
14309
14334
  sourceUrl: string(),
14310
14335
  metadata: ModelConvertMetadataSchema,
@@ -18538,7 +18563,8 @@ var MediaFileKindEnum = _enum([
18538
18563
  "plateCrop",
18539
18564
  "keyFrame",
18540
18565
  "keyFrameSmall",
18541
- "thumbnailSmall"
18566
+ "thumbnailSmall",
18567
+ "sceneFrame"
18542
18568
  ]);
18543
18569
  /**
18544
18570
  * One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
@@ -31416,12 +31442,6 @@ Object.freeze({
31416
31442
  addonId: null,
31417
31443
  access: "view"
31418
31444
  },
31419
- "metricsProvider.dumpHeapSnapshot": {
31420
- capName: "metrics-provider",
31421
- capScope: "system",
31422
- addonId: null,
31423
- access: "create"
31424
- },
31425
31445
  "metricsProvider.getAddonStats": {
31426
31446
  capName: "metrics-provider",
31427
31447
  capScope: "system",
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-C10q8it6.js");
5
+ const require_shared = require("./shared-0jYjizzs.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);
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-DXWSci5Y.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-BpCkqZUj.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";
@@ -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-C10q8it6.js");
5
+ const require_shared = require("./shared-0jYjizzs.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
@@ -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-DXWSci5Y.mjs";
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-BpCkqZUj.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.2.52",
3
+ "version": "1.2.55",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",