@camstack/addon-provider-wyze 0.2.57 → 0.2.60
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
|
@@ -13570,6 +13570,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13570
13570
|
auth: "admin"
|
|
13571
13571
|
});
|
|
13572
13572
|
/**
|
|
13573
|
+
* Transport bounds for AI capability methods.
|
|
13574
|
+
*
|
|
13575
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13576
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13577
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13578
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13579
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13580
|
+
*/
|
|
13581
|
+
/**
|
|
13582
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13583
|
+
*
|
|
13584
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13585
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13586
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13587
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13588
|
+
* the wrong layer and hiding the real one.
|
|
13589
|
+
*
|
|
13590
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13591
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13592
|
+
* exactly 60 s and shipped without its text.
|
|
13593
|
+
*
|
|
13594
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13595
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13596
|
+
* decide when to stop, because only they can say WHY.
|
|
13597
|
+
*/
|
|
13598
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13599
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13600
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13601
|
+
/**
|
|
13573
13602
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13574
13603
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13575
13604
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13841,16 +13870,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13841
13870
|
timeoutMs: number().int().positive().optional()
|
|
13842
13871
|
}), LlmGenerateResultSchema, {
|
|
13843
13872
|
kind: "mutation",
|
|
13844
|
-
auth: "admin"
|
|
13873
|
+
auth: "admin",
|
|
13874
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13845
13875
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13846
13876
|
kind: "mutation",
|
|
13847
|
-
auth: "admin"
|
|
13877
|
+
auth: "admin",
|
|
13878
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13848
13879
|
}), method(object({}), _void(), {
|
|
13849
13880
|
kind: "mutation",
|
|
13850
13881
|
auth: "admin"
|
|
13851
13882
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13852
13883
|
kind: "mutation",
|
|
13853
|
-
auth: "admin"
|
|
13884
|
+
auth: "admin",
|
|
13885
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13854
13886
|
}), method(object({ file: string() }), _void(), {
|
|
13855
13887
|
kind: "mutation",
|
|
13856
13888
|
auth: "admin"
|
|
@@ -14018,7 +14050,13 @@ var ProfileRefInputSchema = object({
|
|
|
14018
14050
|
addonId: string(),
|
|
14019
14051
|
profileId: string()
|
|
14020
14052
|
});
|
|
14021
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14053
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14054
|
+
kind: "mutation",
|
|
14055
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14056
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
14057
|
+
kind: "mutation",
|
|
14058
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14059
|
+
}), method(object({
|
|
14022
14060
|
addonId: string().optional(),
|
|
14023
14061
|
requestId: string()
|
|
14024
14062
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -14029,7 +14067,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
14029
14067
|
auth: "admin"
|
|
14030
14068
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
14031
14069
|
kind: "mutation",
|
|
14032
|
-
auth: "admin"
|
|
14070
|
+
auth: "admin",
|
|
14071
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14033
14072
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
14034
14073
|
selector: LlmDefaultSelectorSchema,
|
|
14035
14074
|
profileId: string().nullable()
|
|
@@ -14495,17 +14534,6 @@ var ContainerMemoryPointSchema = object({
|
|
|
14495
14534
|
*/
|
|
14496
14535
|
gpuShmemBytes: number().nullable()
|
|
14497
14536
|
}).extend({ atMs: number() });
|
|
14498
|
-
var DumpHeapSnapshotInputSchema = object({
|
|
14499
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
14500
|
-
addonId: string() });
|
|
14501
|
-
var DumpHeapSnapshotResultSchema = object({
|
|
14502
|
-
success: boolean(),
|
|
14503
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
14504
|
-
path: string().optional(),
|
|
14505
|
-
/** Process pid that was signalled. */
|
|
14506
|
-
pid: number().optional(),
|
|
14507
|
-
reason: string().optional()
|
|
14508
|
-
});
|
|
14509
14537
|
/**
|
|
14510
14538
|
* One point of one function's series.
|
|
14511
14539
|
*
|
|
@@ -14629,10 +14657,7 @@ var SystemMetricsSchema = object({
|
|
|
14629
14657
|
gpuPercent: number().optional(),
|
|
14630
14658
|
gpuMemoryPercent: number().optional()
|
|
14631
14659
|
});
|
|
14632
|
-
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)
|
|
14633
|
-
kind: "mutation",
|
|
14634
|
-
auth: "admin"
|
|
14635
|
-
});
|
|
14660
|
+
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);
|
|
14636
14661
|
method(object({
|
|
14637
14662
|
sourceUrl: string(),
|
|
14638
14663
|
metadata: ModelConvertMetadataSchema,
|
|
@@ -18944,7 +18969,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18944
18969
|
"plateCrop",
|
|
18945
18970
|
"keyFrame",
|
|
18946
18971
|
"keyFrameSmall",
|
|
18947
|
-
"thumbnailSmall"
|
|
18972
|
+
"thumbnailSmall",
|
|
18973
|
+
"sceneFrame"
|
|
18948
18974
|
]);
|
|
18949
18975
|
/**
|
|
18950
18976
|
* One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
|
|
@@ -35288,12 +35314,6 @@ Object.freeze({
|
|
|
35288
35314
|
addonId: null,
|
|
35289
35315
|
access: "view"
|
|
35290
35316
|
},
|
|
35291
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
35292
|
-
capName: "metrics-provider",
|
|
35293
|
-
capScope: "system",
|
|
35294
|
-
addonId: null,
|
|
35295
|
-
access: "create"
|
|
35296
|
-
},
|
|
35297
35317
|
"metricsProvider.getAddonStats": {
|
|
35298
35318
|
capName: "metrics-provider",
|
|
35299
35319
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -13549,6 +13549,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13549
13549
|
auth: "admin"
|
|
13550
13550
|
});
|
|
13551
13551
|
/**
|
|
13552
|
+
* Transport bounds for AI capability methods.
|
|
13553
|
+
*
|
|
13554
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13555
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13556
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13557
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13558
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13559
|
+
*/
|
|
13560
|
+
/**
|
|
13561
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13562
|
+
*
|
|
13563
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13564
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13565
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13566
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13567
|
+
* the wrong layer and hiding the real one.
|
|
13568
|
+
*
|
|
13569
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13570
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13571
|
+
* exactly 60 s and shipped without its text.
|
|
13572
|
+
*
|
|
13573
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13574
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13575
|
+
* decide when to stop, because only they can say WHY.
|
|
13576
|
+
*/
|
|
13577
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13578
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13579
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13580
|
+
/**
|
|
13552
13581
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13553
13582
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13554
13583
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13820,16 +13849,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13820
13849
|
timeoutMs: number().int().positive().optional()
|
|
13821
13850
|
}), LlmGenerateResultSchema, {
|
|
13822
13851
|
kind: "mutation",
|
|
13823
|
-
auth: "admin"
|
|
13852
|
+
auth: "admin",
|
|
13853
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13824
13854
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13825
13855
|
kind: "mutation",
|
|
13826
|
-
auth: "admin"
|
|
13856
|
+
auth: "admin",
|
|
13857
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13827
13858
|
}), method(object({}), _void(), {
|
|
13828
13859
|
kind: "mutation",
|
|
13829
13860
|
auth: "admin"
|
|
13830
13861
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13831
13862
|
kind: "mutation",
|
|
13832
|
-
auth: "admin"
|
|
13863
|
+
auth: "admin",
|
|
13864
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13833
13865
|
}), method(object({ file: string() }), _void(), {
|
|
13834
13866
|
kind: "mutation",
|
|
13835
13867
|
auth: "admin"
|
|
@@ -13997,7 +14029,13 @@ var ProfileRefInputSchema = object({
|
|
|
13997
14029
|
addonId: string(),
|
|
13998
14030
|
profileId: string()
|
|
13999
14031
|
});
|
|
14000
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14032
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14033
|
+
kind: "mutation",
|
|
14034
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14035
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
14036
|
+
kind: "mutation",
|
|
14037
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14038
|
+
}), method(object({
|
|
14001
14039
|
addonId: string().optional(),
|
|
14002
14040
|
requestId: string()
|
|
14003
14041
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -14008,7 +14046,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
14008
14046
|
auth: "admin"
|
|
14009
14047
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
14010
14048
|
kind: "mutation",
|
|
14011
|
-
auth: "admin"
|
|
14049
|
+
auth: "admin",
|
|
14050
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14012
14051
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
14013
14052
|
selector: LlmDefaultSelectorSchema,
|
|
14014
14053
|
profileId: string().nullable()
|
|
@@ -14474,17 +14513,6 @@ var ContainerMemoryPointSchema = object({
|
|
|
14474
14513
|
*/
|
|
14475
14514
|
gpuShmemBytes: number().nullable()
|
|
14476
14515
|
}).extend({ atMs: number() });
|
|
14477
|
-
var DumpHeapSnapshotInputSchema = object({
|
|
14478
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
14479
|
-
addonId: string() });
|
|
14480
|
-
var DumpHeapSnapshotResultSchema = object({
|
|
14481
|
-
success: boolean(),
|
|
14482
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
14483
|
-
path: string().optional(),
|
|
14484
|
-
/** Process pid that was signalled. */
|
|
14485
|
-
pid: number().optional(),
|
|
14486
|
-
reason: string().optional()
|
|
14487
|
-
});
|
|
14488
14516
|
/**
|
|
14489
14517
|
* One point of one function's series.
|
|
14490
14518
|
*
|
|
@@ -14608,10 +14636,7 @@ var SystemMetricsSchema = object({
|
|
|
14608
14636
|
gpuPercent: number().optional(),
|
|
14609
14637
|
gpuMemoryPercent: number().optional()
|
|
14610
14638
|
});
|
|
14611
|
-
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)
|
|
14612
|
-
kind: "mutation",
|
|
14613
|
-
auth: "admin"
|
|
14614
|
-
});
|
|
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);
|
|
14615
14640
|
method(object({
|
|
14616
14641
|
sourceUrl: string(),
|
|
14617
14642
|
metadata: ModelConvertMetadataSchema,
|
|
@@ -18923,7 +18948,8 @@ var MediaFileKindEnum = _enum([
|
|
|
18923
18948
|
"plateCrop",
|
|
18924
18949
|
"keyFrame",
|
|
18925
18950
|
"keyFrameSmall",
|
|
18926
|
-
"thumbnailSmall"
|
|
18951
|
+
"thumbnailSmall",
|
|
18952
|
+
"sceneFrame"
|
|
18927
18953
|
]);
|
|
18928
18954
|
/**
|
|
18929
18955
|
* One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
|
|
@@ -35267,12 +35293,6 @@ Object.freeze({
|
|
|
35267
35293
|
addonId: null,
|
|
35268
35294
|
access: "view"
|
|
35269
35295
|
},
|
|
35270
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
35271
|
-
capName: "metrics-provider",
|
|
35272
|
-
capScope: "system",
|
|
35273
|
-
addonId: null,
|
|
35274
|
-
access: "create"
|
|
35275
|
-
},
|
|
35276
35296
|
"metricsProvider.getAddonStats": {
|
|
35277
35297
|
capName: "metrics-provider",
|
|
35278
35298
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-wyze",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.60",
|
|
4
4
|
"description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|