@camstack/addon-provider-reolink 1.2.76 → 1.2.79

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
@@ -14123,6 +14123,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
14123
14123
  auth: "admin"
14124
14124
  });
14125
14125
  /**
14126
+ * Transport bounds for AI capability methods.
14127
+ *
14128
+ * Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
14129
+ * each other: declaring the constant in either one hands the other `undefined`
14130
+ * at module-init time, and an undefined `timeoutMs` silently falls back to the
14131
+ * kernel's 60 s default — the exact failure this constant exists to prevent,
14132
+ * reintroduced invisibly. Found by the guard, not by review.
14133
+ */
14134
+ /**
14135
+ * Ceiling for a cap method that runs inference or loads a model.
14136
+ *
14137
+ * Deliberately far above anything the AI layer itself may wait for (a summary
14138
+ * asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
14139
+ * never be the layer that gives up first: when it does, the failure is
14140
+ * reported as a transport error for a model that was still thinking, naming
14141
+ * the wrong layer and hiding the real one.
14142
+ *
14143
+ * Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
14144
+ * more on a cold model load. With no declaration every digest failed at
14145
+ * exactly 60 s and shipped without its text.
14146
+ *
14147
+ * A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
14148
+ * the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
14149
+ * decide when to stop, because only they can say WHY.
14150
+ */
14151
+ var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
14152
+ /** A multi-gigabyte download. An hour is not generous, it is honest. */
14153
+ var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
14154
+ /**
14126
14155
  * Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
14127
14156
  * surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
14128
14157
  * caps stay wire-compatible without a circular cap→cap import.
@@ -14394,16 +14423,19 @@ method(LlmGenerateBaseInputSchema.extend({
14394
14423
  timeoutMs: number().int().positive().optional()
14395
14424
  }), LlmGenerateResultSchema, {
14396
14425
  kind: "mutation",
14397
- auth: "admin"
14426
+ auth: "admin",
14427
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14398
14428
  }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
14399
14429
  kind: "mutation",
14400
- auth: "admin"
14430
+ auth: "admin",
14431
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14401
14432
  }), method(object({}), _void(), {
14402
14433
  kind: "mutation",
14403
14434
  auth: "admin"
14404
14435
  }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
14405
14436
  kind: "mutation",
14406
- auth: "admin"
14437
+ auth: "admin",
14438
+ timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
14407
14439
  }), method(object({ file: string() }), _void(), {
14408
14440
  kind: "mutation",
14409
14441
  auth: "admin"
@@ -14571,7 +14603,13 @@ var ProfileRefInputSchema = object({
14571
14603
  addonId: string(),
14572
14604
  profileId: string()
14573
14605
  });
14574
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
14606
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
14607
+ kind: "mutation",
14608
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14609
+ }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
14610
+ kind: "mutation",
14611
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14612
+ }), method(object({
14575
14613
  addonId: string().optional(),
14576
14614
  requestId: string()
14577
14615
  }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
@@ -14582,7 +14620,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
14582
14620
  auth: "admin"
14583
14621
  }), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
14584
14622
  kind: "mutation",
14585
- auth: "admin"
14623
+ auth: "admin",
14624
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14586
14625
  }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
14587
14626
  selector: LlmDefaultSelectorSchema,
14588
14627
  profileId: string().nullable()
@@ -15069,17 +15108,6 @@ var ContainerMemoryPointSchema = object({
15069
15108
  */
15070
15109
  gpuShmemBytes: number().nullable()
15071
15110
  }).extend({ atMs: number() });
15072
- var DumpHeapSnapshotInputSchema = object({
15073
- /** The addon whose runner should dump a heap snapshot. */
15074
- addonId: string() });
15075
- var DumpHeapSnapshotResultSchema = object({
15076
- success: boolean(),
15077
- /** Path of the written .heapsnapshot inside the runner's container/host. */
15078
- path: string().optional(),
15079
- /** Process pid that was signalled. */
15080
- pid: number().optional(),
15081
- reason: string().optional()
15082
- });
15083
15111
  /**
15084
15112
  * One point of one function's series.
15085
15113
  *
@@ -15203,10 +15231,7 @@ var SystemMetricsSchema = object({
15203
15231
  gpuPercent: number().optional(),
15204
15232
  gpuMemoryPercent: number().optional()
15205
15233
  });
15206
- 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, {
15207
- kind: "mutation",
15208
- auth: "admin"
15209
- });
15234
+ 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);
15210
15235
  method(object({
15211
15236
  sourceUrl: string(),
15212
15237
  metadata: ModelConvertMetadataSchema,
@@ -19518,7 +19543,8 @@ var MediaFileKindEnum = _enum([
19518
19543
  "plateCrop",
19519
19544
  "keyFrame",
19520
19545
  "keyFrameSmall",
19521
- "thumbnailSmall"
19546
+ "thumbnailSmall",
19547
+ "sceneFrame"
19522
19548
  ]);
19523
19549
  /**
19524
19550
  * One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
@@ -36306,12 +36332,6 @@ Object.freeze({
36306
36332
  addonId: null,
36307
36333
  access: "view"
36308
36334
  },
36309
- "metricsProvider.dumpHeapSnapshot": {
36310
- capName: "metrics-provider",
36311
- capScope: "system",
36312
- addonId: null,
36313
- access: "create"
36314
- },
36315
36335
  "metricsProvider.getAddonStats": {
36316
36336
  capName: "metrics-provider",
36317
36337
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -14118,6 +14118,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
14118
14118
  auth: "admin"
14119
14119
  });
14120
14120
  /**
14121
+ * Transport bounds for AI capability methods.
14122
+ *
14123
+ * Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
14124
+ * each other: declaring the constant in either one hands the other `undefined`
14125
+ * at module-init time, and an undefined `timeoutMs` silently falls back to the
14126
+ * kernel's 60 s default — the exact failure this constant exists to prevent,
14127
+ * reintroduced invisibly. Found by the guard, not by review.
14128
+ */
14129
+ /**
14130
+ * Ceiling for a cap method that runs inference or loads a model.
14131
+ *
14132
+ * Deliberately far above anything the AI layer itself may wait for (a summary
14133
+ * asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
14134
+ * never be the layer that gives up first: when it does, the failure is
14135
+ * reported as a transport error for a model that was still thinking, naming
14136
+ * the wrong layer and hiding the real one.
14137
+ *
14138
+ * Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
14139
+ * more on a cold model load. With no declaration every digest failed at
14140
+ * exactly 60 s and shipped without its text.
14141
+ *
14142
+ * A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
14143
+ * the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
14144
+ * decide when to stop, because only they can say WHY.
14145
+ */
14146
+ var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
14147
+ /** A multi-gigabyte download. An hour is not generous, it is honest. */
14148
+ var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
14149
+ /**
14121
14150
  * Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
14122
14151
  * surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
14123
14152
  * caps stay wire-compatible without a circular cap→cap import.
@@ -14389,16 +14418,19 @@ method(LlmGenerateBaseInputSchema.extend({
14389
14418
  timeoutMs: number().int().positive().optional()
14390
14419
  }), LlmGenerateResultSchema, {
14391
14420
  kind: "mutation",
14392
- auth: "admin"
14421
+ auth: "admin",
14422
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14393
14423
  }), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
14394
14424
  kind: "mutation",
14395
- auth: "admin"
14425
+ auth: "admin",
14426
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14396
14427
  }), method(object({}), _void(), {
14397
14428
  kind: "mutation",
14398
14429
  auth: "admin"
14399
14430
  }), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
14400
14431
  kind: "mutation",
14401
- auth: "admin"
14432
+ auth: "admin",
14433
+ timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
14402
14434
  }), method(object({ file: string() }), _void(), {
14403
14435
  kind: "mutation",
14404
14436
  auth: "admin"
@@ -14566,7 +14598,13 @@ var ProfileRefInputSchema = object({
14566
14598
  addonId: string(),
14567
14599
  profileId: string()
14568
14600
  });
14569
- method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }), method(object({
14601
+ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
14602
+ kind: "mutation",
14603
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14604
+ }), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
14605
+ kind: "mutation",
14606
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14607
+ }), method(object({
14570
14608
  addonId: string().optional(),
14571
14609
  requestId: string()
14572
14610
  }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
@@ -14577,7 +14615,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
14577
14615
  auth: "admin"
14578
14616
  }), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
14579
14617
  kind: "mutation",
14580
- auth: "admin"
14618
+ auth: "admin",
14619
+ timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
14581
14620
  }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
14582
14621
  selector: LlmDefaultSelectorSchema,
14583
14622
  profileId: string().nullable()
@@ -15064,17 +15103,6 @@ var ContainerMemoryPointSchema = object({
15064
15103
  */
15065
15104
  gpuShmemBytes: number().nullable()
15066
15105
  }).extend({ atMs: number() });
15067
- var DumpHeapSnapshotInputSchema = object({
15068
- /** The addon whose runner should dump a heap snapshot. */
15069
- addonId: string() });
15070
- var DumpHeapSnapshotResultSchema = object({
15071
- success: boolean(),
15072
- /** Path of the written .heapsnapshot inside the runner's container/host. */
15073
- path: string().optional(),
15074
- /** Process pid that was signalled. */
15075
- pid: number().optional(),
15076
- reason: string().optional()
15077
- });
15078
15106
  /**
15079
15107
  * One point of one function's series.
15080
15108
  *
@@ -15198,10 +15226,7 @@ var SystemMetricsSchema = object({
15198
15226
  gpuPercent: number().optional(),
15199
15227
  gpuMemoryPercent: number().optional()
15200
15228
  });
15201
- 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, {
15202
- kind: "mutation",
15203
- auth: "admin"
15204
- });
15229
+ 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);
15205
15230
  method(object({
15206
15231
  sourceUrl: string(),
15207
15232
  metadata: ModelConvertMetadataSchema,
@@ -19513,7 +19538,8 @@ var MediaFileKindEnum = _enum([
19513
19538
  "plateCrop",
19514
19539
  "keyFrame",
19515
19540
  "keyFrameSmall",
19516
- "thumbnailSmall"
19541
+ "thumbnailSmall",
19542
+ "sceneFrame"
19517
19543
  ]);
19518
19544
  /**
19519
19545
  * One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
@@ -36301,12 +36327,6 @@ Object.freeze({
36301
36327
  addonId: null,
36302
36328
  access: "view"
36303
36329
  },
36304
- "metricsProvider.dumpHeapSnapshot": {
36305
- capName: "metrics-provider",
36306
- capScope: "system",
36307
- addonId: null,
36308
- access: "create"
36309
- },
36310
36330
  "metricsProvider.getAddonStats": {
36311
36331
  capName: "metrics-provider",
36312
36332
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.2.76",
3
+ "version": "1.2.79",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",