@camstack/addon-provider-dreame 0.2.53 → 0.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 +44 -5
- package/dist/addon.mjs +44 -5
- 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()
|
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()
|
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.55",
|
|
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",
|