@camstack/addon-provider-rtsp 1.2.53 → 1.2.56
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
|
@@ -13577,6 +13577,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13577
13577
|
auth: "admin"
|
|
13578
13578
|
});
|
|
13579
13579
|
/**
|
|
13580
|
+
* Transport bounds for AI capability methods.
|
|
13581
|
+
*
|
|
13582
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13583
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13584
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13585
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13586
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13587
|
+
*/
|
|
13588
|
+
/**
|
|
13589
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13590
|
+
*
|
|
13591
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13592
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13593
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13594
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13595
|
+
* the wrong layer and hiding the real one.
|
|
13596
|
+
*
|
|
13597
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13598
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13599
|
+
* exactly 60 s and shipped without its text.
|
|
13600
|
+
*
|
|
13601
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13602
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13603
|
+
* decide when to stop, because only they can say WHY.
|
|
13604
|
+
*/
|
|
13605
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13606
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13607
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13608
|
+
/**
|
|
13580
13609
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13581
13610
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13582
13611
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13848,16 +13877,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13848
13877
|
timeoutMs: number().int().positive().optional()
|
|
13849
13878
|
}), LlmGenerateResultSchema, {
|
|
13850
13879
|
kind: "mutation",
|
|
13851
|
-
auth: "admin"
|
|
13880
|
+
auth: "admin",
|
|
13881
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13852
13882
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13853
13883
|
kind: "mutation",
|
|
13854
|
-
auth: "admin"
|
|
13884
|
+
auth: "admin",
|
|
13885
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13855
13886
|
}), method(object({}), _void(), {
|
|
13856
13887
|
kind: "mutation",
|
|
13857
13888
|
auth: "admin"
|
|
13858
13889
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13859
13890
|
kind: "mutation",
|
|
13860
|
-
auth: "admin"
|
|
13891
|
+
auth: "admin",
|
|
13892
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13861
13893
|
}), method(object({ file: string() }), _void(), {
|
|
13862
13894
|
kind: "mutation",
|
|
13863
13895
|
auth: "admin"
|
|
@@ -14025,7 +14057,13 @@ var ProfileRefInputSchema = object({
|
|
|
14025
14057
|
addonId: string(),
|
|
14026
14058
|
profileId: string()
|
|
14027
14059
|
});
|
|
14028
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14060
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14061
|
+
kind: "mutation",
|
|
14062
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14063
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
14064
|
+
kind: "mutation",
|
|
14065
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14066
|
+
}), method(object({
|
|
14029
14067
|
addonId: string().optional(),
|
|
14030
14068
|
requestId: string()
|
|
14031
14069
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -14036,7 +14074,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
14036
14074
|
auth: "admin"
|
|
14037
14075
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
14038
14076
|
kind: "mutation",
|
|
14039
|
-
auth: "admin"
|
|
14077
|
+
auth: "admin",
|
|
14078
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14040
14079
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
14041
14080
|
selector: LlmDefaultSelectorSchema,
|
|
14042
14081
|
profileId: string().nullable()
|
|
@@ -14502,17 +14541,6 @@ var ContainerMemoryPointSchema = object({
|
|
|
14502
14541
|
*/
|
|
14503
14542
|
gpuShmemBytes: number().nullable()
|
|
14504
14543
|
}).extend({ atMs: number() });
|
|
14505
|
-
var DumpHeapSnapshotInputSchema = object({
|
|
14506
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
14507
|
-
addonId: string() });
|
|
14508
|
-
var DumpHeapSnapshotResultSchema = object({
|
|
14509
|
-
success: boolean(),
|
|
14510
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
14511
|
-
path: string().optional(),
|
|
14512
|
-
/** Process pid that was signalled. */
|
|
14513
|
-
pid: number().optional(),
|
|
14514
|
-
reason: string().optional()
|
|
14515
|
-
});
|
|
14516
14544
|
/**
|
|
14517
14545
|
* One point of one function's series.
|
|
14518
14546
|
*
|
|
@@ -14636,10 +14664,7 @@ var SystemMetricsSchema = object({
|
|
|
14636
14664
|
gpuPercent: number().optional(),
|
|
14637
14665
|
gpuMemoryPercent: number().optional()
|
|
14638
14666
|
});
|
|
14639
|
-
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)
|
|
14640
|
-
kind: "mutation",
|
|
14641
|
-
auth: "admin"
|
|
14642
|
-
});
|
|
14667
|
+
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);
|
|
14643
14668
|
method(object({
|
|
14644
14669
|
sourceUrl: string(),
|
|
14645
14670
|
metadata: ModelConvertMetadataSchema,
|
|
@@ -18951,7 +18976,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18951
18976
|
"plateCrop",
|
|
18952
18977
|
"keyFrame",
|
|
18953
18978
|
"keyFrameSmall",
|
|
18954
|
-
"thumbnailSmall"
|
|
18979
|
+
"thumbnailSmall",
|
|
18980
|
+
"sceneFrame"
|
|
18955
18981
|
]);
|
|
18956
18982
|
/**
|
|
18957
18983
|
* One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
|
|
@@ -35361,12 +35387,6 @@ Object.freeze({
|
|
|
35361
35387
|
addonId: null,
|
|
35362
35388
|
access: "view"
|
|
35363
35389
|
},
|
|
35364
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
35365
|
-
capName: "metrics-provider",
|
|
35366
|
-
capScope: "system",
|
|
35367
|
-
addonId: null,
|
|
35368
|
-
access: "create"
|
|
35369
|
-
},
|
|
35370
35390
|
"metricsProvider.getAddonStats": {
|
|
35371
35391
|
capName: "metrics-provider",
|
|
35372
35392
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -13553,6 +13553,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13553
13553
|
auth: "admin"
|
|
13554
13554
|
});
|
|
13555
13555
|
/**
|
|
13556
|
+
* Transport bounds for AI capability methods.
|
|
13557
|
+
*
|
|
13558
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13559
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13560
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13561
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13562
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13563
|
+
*/
|
|
13564
|
+
/**
|
|
13565
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13566
|
+
*
|
|
13567
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13568
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13569
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13570
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13571
|
+
* the wrong layer and hiding the real one.
|
|
13572
|
+
*
|
|
13573
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13574
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13575
|
+
* exactly 60 s and shipped without its text.
|
|
13576
|
+
*
|
|
13577
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13578
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13579
|
+
* decide when to stop, because only they can say WHY.
|
|
13580
|
+
*/
|
|
13581
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13582
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13583
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13584
|
+
/**
|
|
13556
13585
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13557
13586
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13558
13587
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13824,16 +13853,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13824
13853
|
timeoutMs: number().int().positive().optional()
|
|
13825
13854
|
}), LlmGenerateResultSchema, {
|
|
13826
13855
|
kind: "mutation",
|
|
13827
|
-
auth: "admin"
|
|
13856
|
+
auth: "admin",
|
|
13857
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13828
13858
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13829
13859
|
kind: "mutation",
|
|
13830
|
-
auth: "admin"
|
|
13860
|
+
auth: "admin",
|
|
13861
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13831
13862
|
}), method(object({}), _void(), {
|
|
13832
13863
|
kind: "mutation",
|
|
13833
13864
|
auth: "admin"
|
|
13834
13865
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13835
13866
|
kind: "mutation",
|
|
13836
|
-
auth: "admin"
|
|
13867
|
+
auth: "admin",
|
|
13868
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13837
13869
|
}), method(object({ file: string() }), _void(), {
|
|
13838
13870
|
kind: "mutation",
|
|
13839
13871
|
auth: "admin"
|
|
@@ -14001,7 +14033,13 @@ var ProfileRefInputSchema = object({
|
|
|
14001
14033
|
addonId: string(),
|
|
14002
14034
|
profileId: string()
|
|
14003
14035
|
});
|
|
14004
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14036
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14037
|
+
kind: "mutation",
|
|
14038
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14039
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
14040
|
+
kind: "mutation",
|
|
14041
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14042
|
+
}), method(object({
|
|
14005
14043
|
addonId: string().optional(),
|
|
14006
14044
|
requestId: string()
|
|
14007
14045
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -14012,7 +14050,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
14012
14050
|
auth: "admin"
|
|
14013
14051
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
14014
14052
|
kind: "mutation",
|
|
14015
|
-
auth: "admin"
|
|
14053
|
+
auth: "admin",
|
|
14054
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14016
14055
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
14017
14056
|
selector: LlmDefaultSelectorSchema,
|
|
14018
14057
|
profileId: string().nullable()
|
|
@@ -14478,17 +14517,6 @@ var ContainerMemoryPointSchema = object({
|
|
|
14478
14517
|
*/
|
|
14479
14518
|
gpuShmemBytes: number().nullable()
|
|
14480
14519
|
}).extend({ atMs: number() });
|
|
14481
|
-
var DumpHeapSnapshotInputSchema = object({
|
|
14482
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
14483
|
-
addonId: string() });
|
|
14484
|
-
var DumpHeapSnapshotResultSchema = object({
|
|
14485
|
-
success: boolean(),
|
|
14486
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
14487
|
-
path: string().optional(),
|
|
14488
|
-
/** Process pid that was signalled. */
|
|
14489
|
-
pid: number().optional(),
|
|
14490
|
-
reason: string().optional()
|
|
14491
|
-
});
|
|
14492
14520
|
/**
|
|
14493
14521
|
* One point of one function's series.
|
|
14494
14522
|
*
|
|
@@ -14612,10 +14640,7 @@ var SystemMetricsSchema = object({
|
|
|
14612
14640
|
gpuPercent: number().optional(),
|
|
14613
14641
|
gpuMemoryPercent: number().optional()
|
|
14614
14642
|
});
|
|
14615
|
-
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)
|
|
14616
|
-
kind: "mutation",
|
|
14617
|
-
auth: "admin"
|
|
14618
|
-
});
|
|
14643
|
+
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);
|
|
14619
14644
|
method(object({
|
|
14620
14645
|
sourceUrl: string(),
|
|
14621
14646
|
metadata: ModelConvertMetadataSchema,
|
|
@@ -18927,7 +18952,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18927
18952
|
"plateCrop",
|
|
18928
18953
|
"keyFrame",
|
|
18929
18954
|
"keyFrameSmall",
|
|
18930
|
-
"thumbnailSmall"
|
|
18955
|
+
"thumbnailSmall",
|
|
18956
|
+
"sceneFrame"
|
|
18931
18957
|
]);
|
|
18932
18958
|
/**
|
|
18933
18959
|
* One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
|
|
@@ -35337,12 +35363,6 @@ Object.freeze({
|
|
|
35337
35363
|
addonId: null,
|
|
35338
35364
|
access: "view"
|
|
35339
35365
|
},
|
|
35340
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
35341
|
-
capName: "metrics-provider",
|
|
35342
|
-
capScope: "system",
|
|
35343
|
-
addonId: null,
|
|
35344
|
-
access: "create"
|
|
35345
|
-
},
|
|
35346
35366
|
"metricsProvider.getAddonStats": {
|
|
35347
35367
|
capName: "metrics-provider",
|
|
35348
35368
|
capScope: "system",
|