@camstack/addon-provider-dreame 0.2.53 → 0.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
|
@@ -64043,6 +64043,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
64043
64043
|
auth: "admin"
|
|
64044
64044
|
});
|
|
64045
64045
|
/**
|
|
64046
|
+
* Transport bounds for AI capability methods.
|
|
64047
|
+
*
|
|
64048
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
64049
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
64050
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
64051
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
64052
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
64053
|
+
*/
|
|
64054
|
+
/**
|
|
64055
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
64056
|
+
*
|
|
64057
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
64058
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
64059
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
64060
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
64061
|
+
* the wrong layer and hiding the real one.
|
|
64062
|
+
*
|
|
64063
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
64064
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
64065
|
+
* exactly 60 s and shipped without its text.
|
|
64066
|
+
*
|
|
64067
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
64068
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
64069
|
+
* decide when to stop, because only they can say WHY.
|
|
64070
|
+
*/
|
|
64071
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
64072
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
64073
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
64074
|
+
/**
|
|
64046
64075
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
64047
64076
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
64048
64077
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -64314,16 +64343,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
64314
64343
|
timeoutMs: number().int().positive().optional()
|
|
64315
64344
|
}), LlmGenerateResultSchema, {
|
|
64316
64345
|
kind: "mutation",
|
|
64317
|
-
auth: "admin"
|
|
64346
|
+
auth: "admin",
|
|
64347
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64318
64348
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
64319
64349
|
kind: "mutation",
|
|
64320
|
-
auth: "admin"
|
|
64350
|
+
auth: "admin",
|
|
64351
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64321
64352
|
}), method(object({}), _void(), {
|
|
64322
64353
|
kind: "mutation",
|
|
64323
64354
|
auth: "admin"
|
|
64324
64355
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
64325
64356
|
kind: "mutation",
|
|
64326
|
-
auth: "admin"
|
|
64357
|
+
auth: "admin",
|
|
64358
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
64327
64359
|
}), method(object({ file: string() }), _void(), {
|
|
64328
64360
|
kind: "mutation",
|
|
64329
64361
|
auth: "admin"
|
|
@@ -64491,7 +64523,13 @@ var ProfileRefInputSchema = object({
|
|
|
64491
64523
|
addonId: string(),
|
|
64492
64524
|
profileId: string()
|
|
64493
64525
|
});
|
|
64494
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
64526
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
64527
|
+
kind: "mutation",
|
|
64528
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64529
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
64530
|
+
kind: "mutation",
|
|
64531
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64532
|
+
}), method(object({
|
|
64495
64533
|
addonId: string().optional(),
|
|
64496
64534
|
requestId: string()
|
|
64497
64535
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -64502,7 +64540,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
64502
64540
|
auth: "admin"
|
|
64503
64541
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
64504
64542
|
kind: "mutation",
|
|
64505
|
-
auth: "admin"
|
|
64543
|
+
auth: "admin",
|
|
64544
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64506
64545
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
64507
64546
|
selector: LlmDefaultSelectorSchema,
|
|
64508
64547
|
profileId: string().nullable()
|
|
@@ -64968,17 +65007,6 @@ var ContainerMemoryPointSchema = object({
|
|
|
64968
65007
|
*/
|
|
64969
65008
|
gpuShmemBytes: number().nullable()
|
|
64970
65009
|
}).extend({ atMs: number() });
|
|
64971
|
-
var DumpHeapSnapshotInputSchema = object({
|
|
64972
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
64973
|
-
addonId: string() });
|
|
64974
|
-
var DumpHeapSnapshotResultSchema = object({
|
|
64975
|
-
success: boolean(),
|
|
64976
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
64977
|
-
path: string().optional(),
|
|
64978
|
-
/** Process pid that was signalled. */
|
|
64979
|
-
pid: number().optional(),
|
|
64980
|
-
reason: string().optional()
|
|
64981
|
-
});
|
|
64982
65010
|
/**
|
|
64983
65011
|
* One point of one function's series.
|
|
64984
65012
|
*
|
|
@@ -65102,10 +65130,7 @@ var SystemMetricsSchema = object({
|
|
|
65102
65130
|
gpuPercent: number().optional(),
|
|
65103
65131
|
gpuMemoryPercent: number().optional()
|
|
65104
65132
|
});
|
|
65105
|
-
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)
|
|
65106
|
-
kind: "mutation",
|
|
65107
|
-
auth: "admin"
|
|
65108
|
-
});
|
|
65133
|
+
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);
|
|
65109
65134
|
method(object({
|
|
65110
65135
|
sourceUrl: string(),
|
|
65111
65136
|
metadata: ModelConvertMetadataSchema,
|
|
@@ -69417,7 +69442,8 @@ var MediaFileKindEnum = _enum([
|
|
|
69417
69442
|
"plateCrop",
|
|
69418
69443
|
"keyFrame",
|
|
69419
69444
|
"keyFrameSmall",
|
|
69420
|
-
"thumbnailSmall"
|
|
69445
|
+
"thumbnailSmall",
|
|
69446
|
+
"sceneFrame"
|
|
69421
69447
|
]);
|
|
69422
69448
|
/**
|
|
69423
69449
|
* One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
|
|
@@ -85674,12 +85700,6 @@ Object.freeze({
|
|
|
85674
85700
|
addonId: null,
|
|
85675
85701
|
access: "view"
|
|
85676
85702
|
},
|
|
85677
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
85678
|
-
capName: "metrics-provider",
|
|
85679
|
-
capScope: "system",
|
|
85680
|
-
addonId: null,
|
|
85681
|
-
access: "create"
|
|
85682
|
-
},
|
|
85683
85703
|
"metricsProvider.getAddonStats": {
|
|
85684
85704
|
capName: "metrics-provider",
|
|
85685
85705
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -64043,6 +64043,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
64043
64043
|
auth: "admin"
|
|
64044
64044
|
});
|
|
64045
64045
|
/**
|
|
64046
|
+
* Transport bounds for AI capability methods.
|
|
64047
|
+
*
|
|
64048
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
64049
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
64050
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
64051
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
64052
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
64053
|
+
*/
|
|
64054
|
+
/**
|
|
64055
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
64056
|
+
*
|
|
64057
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
64058
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
64059
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
64060
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
64061
|
+
* the wrong layer and hiding the real one.
|
|
64062
|
+
*
|
|
64063
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
64064
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
64065
|
+
* exactly 60 s and shipped without its text.
|
|
64066
|
+
*
|
|
64067
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
64068
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
64069
|
+
* decide when to stop, because only they can say WHY.
|
|
64070
|
+
*/
|
|
64071
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
64072
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
64073
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
64074
|
+
/**
|
|
64046
64075
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
64047
64076
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
64048
64077
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -64314,16 +64343,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
64314
64343
|
timeoutMs: number().int().positive().optional()
|
|
64315
64344
|
}), LlmGenerateResultSchema, {
|
|
64316
64345
|
kind: "mutation",
|
|
64317
|
-
auth: "admin"
|
|
64346
|
+
auth: "admin",
|
|
64347
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64318
64348
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
64319
64349
|
kind: "mutation",
|
|
64320
|
-
auth: "admin"
|
|
64350
|
+
auth: "admin",
|
|
64351
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64321
64352
|
}), method(object({}), _void(), {
|
|
64322
64353
|
kind: "mutation",
|
|
64323
64354
|
auth: "admin"
|
|
64324
64355
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
64325
64356
|
kind: "mutation",
|
|
64326
|
-
auth: "admin"
|
|
64357
|
+
auth: "admin",
|
|
64358
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
64327
64359
|
}), method(object({ file: string() }), _void(), {
|
|
64328
64360
|
kind: "mutation",
|
|
64329
64361
|
auth: "admin"
|
|
@@ -64491,7 +64523,13 @@ var ProfileRefInputSchema = object({
|
|
|
64491
64523
|
addonId: string(),
|
|
64492
64524
|
profileId: string()
|
|
64493
64525
|
});
|
|
64494
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
64526
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
64527
|
+
kind: "mutation",
|
|
64528
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64529
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
64530
|
+
kind: "mutation",
|
|
64531
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64532
|
+
}), method(object({
|
|
64495
64533
|
addonId: string().optional(),
|
|
64496
64534
|
requestId: string()
|
|
64497
64535
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -64502,7 +64540,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
64502
64540
|
auth: "admin"
|
|
64503
64541
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
64504
64542
|
kind: "mutation",
|
|
64505
|
-
auth: "admin"
|
|
64543
|
+
auth: "admin",
|
|
64544
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
64506
64545
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
64507
64546
|
selector: LlmDefaultSelectorSchema,
|
|
64508
64547
|
profileId: string().nullable()
|
|
@@ -64968,17 +65007,6 @@ var ContainerMemoryPointSchema = object({
|
|
|
64968
65007
|
*/
|
|
64969
65008
|
gpuShmemBytes: number().nullable()
|
|
64970
65009
|
}).extend({ atMs: number() });
|
|
64971
|
-
var DumpHeapSnapshotInputSchema = object({
|
|
64972
|
-
/** The addon whose runner should dump a heap snapshot. */
|
|
64973
|
-
addonId: string() });
|
|
64974
|
-
var DumpHeapSnapshotResultSchema = object({
|
|
64975
|
-
success: boolean(),
|
|
64976
|
-
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
64977
|
-
path: string().optional(),
|
|
64978
|
-
/** Process pid that was signalled. */
|
|
64979
|
-
pid: number().optional(),
|
|
64980
|
-
reason: string().optional()
|
|
64981
|
-
});
|
|
64982
65010
|
/**
|
|
64983
65011
|
* One point of one function's series.
|
|
64984
65012
|
*
|
|
@@ -65102,10 +65130,7 @@ var SystemMetricsSchema = object({
|
|
|
65102
65130
|
gpuPercent: number().optional(),
|
|
65103
65131
|
gpuMemoryPercent: number().optional()
|
|
65104
65132
|
});
|
|
65105
|
-
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)
|
|
65106
|
-
kind: "mutation",
|
|
65107
|
-
auth: "admin"
|
|
65108
|
-
});
|
|
65133
|
+
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);
|
|
65109
65134
|
method(object({
|
|
65110
65135
|
sourceUrl: string(),
|
|
65111
65136
|
metadata: ModelConvertMetadataSchema,
|
|
@@ -69417,7 +69442,8 @@ var MediaFileKindEnum = _enum([
|
|
|
69417
69442
|
"plateCrop",
|
|
69418
69443
|
"keyFrame",
|
|
69419
69444
|
"keyFrameSmall",
|
|
69420
|
-
"thumbnailSmall"
|
|
69445
|
+
"thumbnailSmall",
|
|
69446
|
+
"sceneFrame"
|
|
69421
69447
|
]);
|
|
69422
69448
|
/**
|
|
69423
69449
|
* One media row ON THE WIRE: what it is, how big it is, and WHERE ITS BYTES
|
|
@@ -85674,12 +85700,6 @@ Object.freeze({
|
|
|
85674
85700
|
addonId: null,
|
|
85675
85701
|
access: "view"
|
|
85676
85702
|
},
|
|
85677
|
-
"metricsProvider.dumpHeapSnapshot": {
|
|
85678
|
-
capName: "metrics-provider",
|
|
85679
|
-
capScope: "system",
|
|
85680
|
-
addonId: null,
|
|
85681
|
-
access: "create"
|
|
85682
|
-
},
|
|
85683
85703
|
"metricsProvider.getAddonStats": {
|
|
85684
85704
|
capName: "metrics-provider",
|
|
85685
85705
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.56",
|
|
4
4
|
"description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|