@camstack/addon-provider-onvif 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/addon.js +47 -27
- package/dist/addon.mjs +47 -27
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13311,6 +13311,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13311
13311
|
auth: "admin"
|
|
13312
13312
|
});
|
|
13313
13313
|
/**
|
|
13314
|
+
* Transport bounds for AI capability methods.
|
|
13315
|
+
*
|
|
13316
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13317
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13318
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13319
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13320
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13321
|
+
*/
|
|
13322
|
+
/**
|
|
13323
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13324
|
+
*
|
|
13325
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13326
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13327
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13328
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13329
|
+
* the wrong layer and hiding the real one.
|
|
13330
|
+
*
|
|
13331
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13332
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13333
|
+
* exactly 60 s and shipped without its text.
|
|
13334
|
+
*
|
|
13335
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13336
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13337
|
+
* decide when to stop, because only they can say WHY.
|
|
13338
|
+
*/
|
|
13339
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13340
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13341
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13342
|
+
/**
|
|
13314
13343
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13315
13344
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13316
13345
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13582,16 +13611,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13582
13611
|
timeoutMs: number().int().positive().optional()
|
|
13583
13612
|
}), LlmGenerateResultSchema, {
|
|
13584
13613
|
kind: "mutation",
|
|
13585
|
-
auth: "admin"
|
|
13614
|
+
auth: "admin",
|
|
13615
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13586
13616
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13587
13617
|
kind: "mutation",
|
|
13588
|
-
auth: "admin"
|
|
13618
|
+
auth: "admin",
|
|
13619
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13589
13620
|
}), method(object({}), _void(), {
|
|
13590
13621
|
kind: "mutation",
|
|
13591
13622
|
auth: "admin"
|
|
13592
13623
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13593
13624
|
kind: "mutation",
|
|
13594
|
-
auth: "admin"
|
|
13625
|
+
auth: "admin",
|
|
13626
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13595
13627
|
}), method(object({ file: string() }), _void(), {
|
|
13596
13628
|
kind: "mutation",
|
|
13597
13629
|
auth: "admin"
|
|
@@ -13759,7 +13791,13 @@ var ProfileRefInputSchema = object({
|
|
|
13759
13791
|
addonId: string(),
|
|
13760
13792
|
profileId: string()
|
|
13761
13793
|
});
|
|
13762
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
13794
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
13795
|
+
kind: "mutation",
|
|
13796
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13797
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
13798
|
+
kind: "mutation",
|
|
13799
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13800
|
+
}), method(object({
|
|
13763
13801
|
addonId: string().optional(),
|
|
13764
13802
|
requestId: string()
|
|
13765
13803
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -13770,7 +13808,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
13770
13808
|
auth: "admin"
|
|
13771
13809
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
13772
13810
|
kind: "mutation",
|
|
13773
|
-
auth: "admin"
|
|
13811
|
+
auth: "admin",
|
|
13812
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13774
13813
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
13775
13814
|
selector: LlmDefaultSelectorSchema,
|
|
13776
13815
|
profileId: string().nullable()
|
|
@@ -14236,17 +14275,6 @@ var ContainerMemoryPointSchema = object({
|
|
|
14236
14275
|
*/
|
|
14237
14276
|
gpuShmemBytes: number().nullable()
|
|
14238
14277
|
}).extend({ atMs: number() });
|
|
14239
|
-
var DumpHeapSnapshotInputSchema = object({
|
|
14240
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
14241
|
-
addonId: string() });
|
|
14242
|
-
var DumpHeapSnapshotResultSchema = object({
|
|
14243
|
-
success: boolean(),
|
|
14244
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
14245
|
-
path: string().optional(),
|
|
14246
|
-
/** Process pid that was signalled. */
|
|
14247
|
-
pid: number().optional(),
|
|
14248
|
-
reason: string().optional()
|
|
14249
|
-
});
|
|
14250
14278
|
/**
|
|
14251
14279
|
* One point of one function's series.
|
|
14252
14280
|
*
|
|
@@ -14370,10 +14398,7 @@ var SystemMetricsSchema = object({
|
|
|
14370
14398
|
gpuPercent: number().optional(),
|
|
14371
14399
|
gpuMemoryPercent: number().optional()
|
|
14372
14400
|
});
|
|
14373
|
-
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)
|
|
14374
|
-
kind: "mutation",
|
|
14375
|
-
auth: "admin"
|
|
14376
|
-
});
|
|
14401
|
+
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);
|
|
14377
14402
|
method(object({
|
|
14378
14403
|
sourceUrl: string(),
|
|
14379
14404
|
metadata: ModelConvertMetadataSchema,
|
|
@@ -18607,7 +18632,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18607
18632
|
"plateCrop",
|
|
18608
18633
|
"keyFrame",
|
|
18609
18634
|
"keyFrameSmall",
|
|
18610
|
-
"thumbnailSmall"
|
|
18635
|
+
"thumbnailSmall",
|
|
18636
|
+
"sceneFrame"
|
|
18611
18637
|
]);
|
|
18612
18638
|
/**
|
|
18613
18639
|
* One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
|
|
@@ -31981,12 +32007,6 @@ Object.freeze({
|
|
|
31981
32007
|
addonId: null,
|
|
31982
32008
|
access: "view"
|
|
31983
32009
|
},
|
|
31984
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
31985
|
-
capName: "metrics-provider",
|
|
31986
|
-
capScope: "system",
|
|
31987
|
-
addonId: null,
|
|
31988
|
-
access: "create"
|
|
31989
|
-
},
|
|
31990
32010
|
"metricsProvider.getAddonStats": {
|
|
31991
32011
|
capName: "metrics-provider",
|
|
31992
32012
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -13312,6 +13312,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13312
13312
|
auth: "admin"
|
|
13313
13313
|
});
|
|
13314
13314
|
/**
|
|
13315
|
+
* Transport bounds for AI capability methods.
|
|
13316
|
+
*
|
|
13317
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13318
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13319
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13320
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13321
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13322
|
+
*/
|
|
13323
|
+
/**
|
|
13324
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13325
|
+
*
|
|
13326
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13327
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13328
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13329
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13330
|
+
* the wrong layer and hiding the real one.
|
|
13331
|
+
*
|
|
13332
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13333
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13334
|
+
* exactly 60 s and shipped without its text.
|
|
13335
|
+
*
|
|
13336
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13337
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13338
|
+
* decide when to stop, because only they can say WHY.
|
|
13339
|
+
*/
|
|
13340
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13341
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13342
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13343
|
+
/**
|
|
13315
13344
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13316
13345
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13317
13346
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13583,16 +13612,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13583
13612
|
timeoutMs: number().int().positive().optional()
|
|
13584
13613
|
}), LlmGenerateResultSchema, {
|
|
13585
13614
|
kind: "mutation",
|
|
13586
|
-
auth: "admin"
|
|
13615
|
+
auth: "admin",
|
|
13616
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13587
13617
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13588
13618
|
kind: "mutation",
|
|
13589
|
-
auth: "admin"
|
|
13619
|
+
auth: "admin",
|
|
13620
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13590
13621
|
}), method(object({}), _void(), {
|
|
13591
13622
|
kind: "mutation",
|
|
13592
13623
|
auth: "admin"
|
|
13593
13624
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13594
13625
|
kind: "mutation",
|
|
13595
|
-
auth: "admin"
|
|
13626
|
+
auth: "admin",
|
|
13627
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13596
13628
|
}), method(object({ file: string() }), _void(), {
|
|
13597
13629
|
kind: "mutation",
|
|
13598
13630
|
auth: "admin"
|
|
@@ -13760,7 +13792,13 @@ var ProfileRefInputSchema = object({
|
|
|
13760
13792
|
addonId: string(),
|
|
13761
13793
|
profileId: string()
|
|
13762
13794
|
});
|
|
13763
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
13795
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
13796
|
+
kind: "mutation",
|
|
13797
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13798
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
13799
|
+
kind: "mutation",
|
|
13800
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13801
|
+
}), method(object({
|
|
13764
13802
|
addonId: string().optional(),
|
|
13765
13803
|
requestId: string()
|
|
13766
13804
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -13771,7 +13809,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
13771
13809
|
auth: "admin"
|
|
13772
13810
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
13773
13811
|
kind: "mutation",
|
|
13774
|
-
auth: "admin"
|
|
13812
|
+
auth: "admin",
|
|
13813
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13775
13814
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
13776
13815
|
selector: LlmDefaultSelectorSchema,
|
|
13777
13816
|
profileId: string().nullable()
|
|
@@ -14237,17 +14276,6 @@ var ContainerMemoryPointSchema = object({
|
|
|
14237
14276
|
*/
|
|
14238
14277
|
gpuShmemBytes: number().nullable()
|
|
14239
14278
|
}).extend({ atMs: number() });
|
|
14240
|
-
var DumpHeapSnapshotInputSchema = object({
|
|
14241
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
14242
|
-
addonId: string() });
|
|
14243
|
-
var DumpHeapSnapshotResultSchema = object({
|
|
14244
|
-
success: boolean(),
|
|
14245
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
14246
|
-
path: string().optional(),
|
|
14247
|
-
/** Process pid that was signalled. */
|
|
14248
|
-
pid: number().optional(),
|
|
14249
|
-
reason: string().optional()
|
|
14250
|
-
});
|
|
14251
14279
|
/**
|
|
14252
14280
|
* One point of one function's series.
|
|
14253
14281
|
*
|
|
@@ -14371,10 +14399,7 @@ var SystemMetricsSchema = object({
|
|
|
14371
14399
|
gpuPercent: number().optional(),
|
|
14372
14400
|
gpuMemoryPercent: number().optional()
|
|
14373
14401
|
});
|
|
14374
|
-
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)
|
|
14375
|
-
kind: "mutation",
|
|
14376
|
-
auth: "admin"
|
|
14377
|
-
});
|
|
14402
|
+
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);
|
|
14378
14403
|
method(object({
|
|
14379
14404
|
sourceUrl: string(),
|
|
14380
14405
|
metadata: ModelConvertMetadataSchema,
|
|
@@ -18608,7 +18633,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18608
18633
|
"plateCrop",
|
|
18609
18634
|
"keyFrame",
|
|
18610
18635
|
"keyFrameSmall",
|
|
18611
|
-
"thumbnailSmall"
|
|
18636
|
+
"thumbnailSmall",
|
|
18637
|
+
"sceneFrame"
|
|
18612
18638
|
]);
|
|
18613
18639
|
/**
|
|
18614
18640
|
* One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
|
|
@@ -31982,12 +32008,6 @@ Object.freeze({
|
|
|
31982
32008
|
addonId: null,
|
|
31983
32009
|
access: "view"
|
|
31984
32010
|
},
|
|
31985
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
31986
|
-
capName: "metrics-provider",
|
|
31987
|
-
capScope: "system",
|
|
31988
|
-
addonId: null,
|
|
31989
|
-
access: "create"
|
|
31990
|
-
},
|
|
31991
32011
|
"metricsProvider.getAddonStats": {
|
|
31992
32012
|
capName: "metrics-provider",
|
|
31993
32013
|
capScope: "system",
|