@camstack/addon-import-alexa 0.2.52 → 0.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/addon.js CHANGED
@@ -13764,6 +13764,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
13764
13764
  auth: "admin"
13765
13765
  });
13766
13766
  /**
13767
+ * Transport bounds for AI capability methods.
13768
+ *
13769
+ * Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
13770
+ * each other: declaring the constant in either one hands the other `undefined`
13771
+ * at module-init time, and an undefined `timeoutMs` silently falls back to the
13772
+ * kernel's 60 s default — the exact failure this constant exists to prevent,
13773
+ * reintroduced invisibly. Found by the guard, not by review.
13774
+ */
13775
+ /**
13776
+ * Ceiling for a cap method that runs inference or loads a model.
13777
+ *
13778
+ * Deliberately far above anything the AI layer itself may wait for (a summary
13779
+ * asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
13780
+ * never be the layer that gives up first: when it does, the failure is
13781
+ * reported as a transport error for a model that was still thinking, naming
13782
+ * the wrong layer and hiding the real one.
13783
+ *
13784
+ * Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
13785
+ * more on a cold model load. With no declaration every digest failed at
13786
+ * exactly 60 s and shipped without its text.
13787
+ *
13788
+ * A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
13789
+ * the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
13790
+ * decide when to stop, because only they can say WHY.
13791
+ */
13792
+ var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
13793
+ /** A multi-gigabyte download. An hour is not generous, it is honest. */
13794
+ var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
13795
+ /**
13767
13796
  * Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
13768
13797
  * surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
13769
13798
  * caps stay wire-compatible without a circular cap→cap import.
@@ -14035,16 +14064,19 @@ method(LlmGenerateBaseInputSchema.extend({
14035
14064
  timeoutMs: number().int().positive().optional()
14036
14065
  }), LlmGenerateResultSchema, {
14037
14066
  kind: "mutation",
14038
- auth: "admin"
14067
+ auth: "admin",
14068
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14039
14069
  }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
14040
14070
  kind: "mutation",
14041
- auth: "admin"
14071
+ auth: "admin",
14072
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14042
14073
  }), method(object({}), _void(), {
14043
14074
  kind: "mutation",
14044
14075
  auth: "admin"
14045
14076
  }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
14046
14077
  kind: "mutation",
14047
- auth: "admin"
14078
+ auth: "admin",
14079
+ timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
14048
14080
  }), method(object({ file: string() }), _void(), {
14049
14081
  kind: "mutation",
14050
14082
  auth: "admin"
@@ -14212,7 +14244,13 @@ var ProfileRefInputSchema = object({
14212
14244
  addonId: string(),
14213
14245
  profileId: string()
14214
14246
  });
14215
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
14247
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
14248
+ kind: "mutation",
14249
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14250
+ }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
14251
+ kind: "mutation",
14252
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14253
+ }), method(object({
14216
14254
  addonId: string().optional(),
14217
14255
  requestId: string()
14218
14256
  }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
@@ -14223,7 +14261,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
14223
14261
  auth: "admin"
14224
14262
  }), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
14225
14263
  kind: "mutation",
14226
- auth: "admin"
14264
+ auth: "admin",
14265
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14227
14266
  }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
14228
14267
  selector: LlmDefaultSelectorSchema,
14229
14268
  profileId: string().nullable()
@@ -14689,17 +14728,6 @@ var ContainerMemoryPointSchema = object({
14689
14728
  */
14690
14729
  gpuShmemBytes: number().nullable()
14691
14730
  }).extend({ atMs: number() });
14692
- var DumpHeapSnapshotInputSchema = object({
14693
- /** The addon whose runner should dump a heap snapshot. */
14694
- addonId: string() });
14695
- var DumpHeapSnapshotResultSchema = object({
14696
- success: boolean(),
14697
- /** Path of the written .heapsnapshot inside the runner's container/host. */
14698
- path: string().optional(),
14699
- /** Process pid that was signalled. */
14700
- pid: number().optional(),
14701
- reason: string().optional()
14702
- });
14703
14731
  /**
14704
14732
  * One point of one function's series.
14705
14733
  *
@@ -14823,10 +14851,7 @@ var SystemMetricsSchema = object({
14823
14851
  gpuPercent: number().optional(),
14824
14852
  gpuMemoryPercent: number().optional()
14825
14853
  });
14826
- 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, {
14827
- kind: "mutation",
14828
- auth: "admin"
14829
- });
14854
+ 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);
14830
14855
  method(object({
14831
14856
  sourceUrl: string(),
14832
14857
  metadata: ModelConvertMetadataSchema,
@@ -19138,7 +19163,8 @@ var MediaFileKindEnum = _enum([
19138
19163
  "plateCrop",
19139
19164
  "keyFrame",
19140
19165
  "keyFrameSmall",
19141
- "thumbnailSmall"
19166
+ "thumbnailSmall",
19167
+ "sceneFrame"
19142
19168
  ]);
19143
19169
  /**
19144
19170
  * One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
@@ -35387,12 +35413,6 @@ Object.freeze({
35387
35413
  addonId: null,
35388
35414
  access: "view"
35389
35415
  },
35390
- "metricsProvider.dumpHeapSnapshot": {
35391
- capName: "metrics-provider",
35392
- capScope: "system",
35393
- addonId: null,
35394
- access: "create"
35395
- },
35396
35416
  "metricsProvider.getAddonStats": {
35397
35417
  capName: "metrics-provider",
35398
35418
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13764,6 +13764,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
13764
13764
  auth: "admin"
13765
13765
  });
13766
13766
  /**
13767
+ * Transport bounds for AI capability methods.
13768
+ *
13769
+ * Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
13770
+ * each other: declaring the constant in either one hands the other `undefined`
13771
+ * at module-init time, and an undefined `timeoutMs` silently falls back to the
13772
+ * kernel's 60 s default — the exact failure this constant exists to prevent,
13773
+ * reintroduced invisibly. Found by the guard, not by review.
13774
+ */
13775
+ /**
13776
+ * Ceiling for a cap method that runs inference or loads a model.
13777
+ *
13778
+ * Deliberately far above anything the AI layer itself may wait for (a summary
13779
+ * asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
13780
+ * never be the layer that gives up first: when it does, the failure is
13781
+ * reported as a transport error for a model that was still thinking, naming
13782
+ * the wrong layer and hiding the real one.
13783
+ *
13784
+ * Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
13785
+ * more on a cold model load. With no declaration every digest failed at
13786
+ * exactly 60 s and shipped without its text.
13787
+ *
13788
+ * A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
13789
+ * the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
13790
+ * decide when to stop, because only they can say WHY.
13791
+ */
13792
+ var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
13793
+ /** A multi-gigabyte download. An hour is not generous, it is honest. */
13794
+ var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
13795
+ /**
13767
13796
  * Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
13768
13797
  * surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
13769
13798
  * caps stay wire-compatible without a circular cap→cap import.
@@ -14035,16 +14064,19 @@ method(LlmGenerateBaseInputSchema.extend({
14035
14064
  timeoutMs: number().int().positive().optional()
14036
14065
  }), LlmGenerateResultSchema, {
14037
14066
  kind: "mutation",
14038
- auth: "admin"
14067
+ auth: "admin",
14068
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14039
14069
  }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
14040
14070
  kind: "mutation",
14041
- auth: "admin"
14071
+ auth: "admin",
14072
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14042
14073
  }), method(object({}), _void(), {
14043
14074
  kind: "mutation",
14044
14075
  auth: "admin"
14045
14076
  }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
14046
14077
  kind: "mutation",
14047
- auth: "admin"
14078
+ auth: "admin",
14079
+ timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
14048
14080
  }), method(object({ file: string() }), _void(), {
14049
14081
  kind: "mutation",
14050
14082
  auth: "admin"
@@ -14212,7 +14244,13 @@ var ProfileRefInputSchema = object({
14212
14244
  addonId: string(),
14213
14245
  profileId: string()
14214
14246
  });
14215
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
14247
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
14248
+ kind: "mutation",
14249
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14250
+ }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
14251
+ kind: "mutation",
14252
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14253
+ }), method(object({
14216
14254
  addonId: string().optional(),
14217
14255
  requestId: string()
14218
14256
  }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
@@ -14223,7 +14261,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
14223
14261
  auth: "admin"
14224
14262
  }), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
14225
14263
  kind: "mutation",
14226
- auth: "admin"
14264
+ auth: "admin",
14265
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14227
14266
  }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
14228
14267
  selector: LlmDefaultSelectorSchema,
14229
14268
  profileId: string().nullable()
@@ -14689,17 +14728,6 @@ var ContainerMemoryPointSchema = object({
14689
14728
  */
14690
14729
  gpuShmemBytes: number().nullable()
14691
14730
  }).extend({ atMs: number() });
14692
- var DumpHeapSnapshotInputSchema = object({
14693
- /** The addon whose runner should dump a heap snapshot. */
14694
- addonId: string() });
14695
- var DumpHeapSnapshotResultSchema = object({
14696
- success: boolean(),
14697
- /** Path of the written .heapsnapshot inside the runner's container/host. */
14698
- path: string().optional(),
14699
- /** Process pid that was signalled. */
14700
- pid: number().optional(),
14701
- reason: string().optional()
14702
- });
14703
14731
  /**
14704
14732
  * One point of one function's series.
14705
14733
  *
@@ -14823,10 +14851,7 @@ var SystemMetricsSchema = object({
14823
14851
  gpuPercent: number().optional(),
14824
14852
  gpuMemoryPercent: number().optional()
14825
14853
  });
14826
- 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, {
14827
- kind: "mutation",
14828
- auth: "admin"
14829
- });
14854
+ 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);
14830
14855
  method(object({
14831
14856
  sourceUrl: string(),
14832
14857
  metadata: ModelConvertMetadataSchema,
@@ -19138,7 +19163,8 @@ var MediaFileKindEnum = _enum([
19138
19163
  "plateCrop",
19139
19164
  "keyFrame",
19140
19165
  "keyFrameSmall",
19141
- "thumbnailSmall"
19166
+ "thumbnailSmall",
19167
+ "sceneFrame"
19142
19168
  ]);
19143
19169
  /**
19144
19170
  * One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
@@ -35387,12 +35413,6 @@ Object.freeze({
35387
35413
  addonId: null,
35388
35414
  access: "view"
35389
35415
  },
35390
- "metricsProvider.dumpHeapSnapshot": {
35391
- capName: "metrics-provider",
35392
- capScope: "system",
35393
- addonId: null,
35394
- access: "create"
35395
- },
35396
35416
  "metricsProvider.getAddonStats": {
35397
35417
  capName: "metrics-provider",
35398
35418
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.52",
3
+ "version": "0.2.55",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",