@camstack/addon-provider-gree 0.2.52 → 0.2.54
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
|
@@ -13524,6 +13524,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13524
13524
|
auth: "admin"
|
|
13525
13525
|
});
|
|
13526
13526
|
/**
|
|
13527
|
+
* Transport bounds for AI capability methods.
|
|
13528
|
+
*
|
|
13529
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13530
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13531
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13532
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13533
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13534
|
+
*/
|
|
13535
|
+
/**
|
|
13536
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13537
|
+
*
|
|
13538
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13539
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13540
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13541
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13542
|
+
* the wrong layer and hiding the real one.
|
|
13543
|
+
*
|
|
13544
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13545
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13546
|
+
* exactly 60 s and shipped without its text.
|
|
13547
|
+
*
|
|
13548
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13549
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13550
|
+
* decide when to stop, because only they can say WHY.
|
|
13551
|
+
*/
|
|
13552
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13553
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13554
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13555
|
+
/**
|
|
13527
13556
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13528
13557
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13529
13558
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13795,16 +13824,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13795
13824
|
timeoutMs: number().int().positive().optional()
|
|
13796
13825
|
}), LlmGenerateResultSchema, {
|
|
13797
13826
|
kind: "mutation",
|
|
13798
|
-
auth: "admin"
|
|
13827
|
+
auth: "admin",
|
|
13828
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13799
13829
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13800
13830
|
kind: "mutation",
|
|
13801
|
-
auth: "admin"
|
|
13831
|
+
auth: "admin",
|
|
13832
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13802
13833
|
}), method(object({}), _void(), {
|
|
13803
13834
|
kind: "mutation",
|
|
13804
13835
|
auth: "admin"
|
|
13805
13836
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13806
13837
|
kind: "mutation",
|
|
13807
|
-
auth: "admin"
|
|
13838
|
+
auth: "admin",
|
|
13839
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13808
13840
|
}), method(object({ file: string() }), _void(), {
|
|
13809
13841
|
kind: "mutation",
|
|
13810
13842
|
auth: "admin"
|
|
@@ -13972,7 +14004,13 @@ var ProfileRefInputSchema = object({
|
|
|
13972
14004
|
addonId: string(),
|
|
13973
14005
|
profileId: string()
|
|
13974
14006
|
});
|
|
13975
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14007
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14008
|
+
kind: "mutation",
|
|
14009
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14010
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
14011
|
+
kind: "mutation",
|
|
14012
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14013
|
+
}), method(object({
|
|
13976
14014
|
addonId: string().optional(),
|
|
13977
14015
|
requestId: string()
|
|
13978
14016
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -13983,7 +14021,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
13983
14021
|
auth: "admin"
|
|
13984
14022
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
13985
14023
|
kind: "mutation",
|
|
13986
|
-
auth: "admin"
|
|
14024
|
+
auth: "admin",
|
|
14025
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13987
14026
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
13988
14027
|
selector: LlmDefaultSelectorSchema,
|
|
13989
14028
|
profileId: string().nullable()
|
package/dist/addon.mjs
CHANGED
|
@@ -13523,6 +13523,35 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
13523
13523
|
auth: "admin"
|
|
13524
13524
|
});
|
|
13525
13525
|
/**
|
|
13526
|
+
* Transport bounds for AI capability methods.
|
|
13527
|
+
*
|
|
13528
|
+
* Its own module because `llm.cap.ts` and `llm-runtime.cap.ts` already import
|
|
13529
|
+
* each other: declaring the constant in either one hands the other `undefined`
|
|
13530
|
+
* at module-init time, and an undefined `timeoutMs` silently falls back to the
|
|
13531
|
+
* kernel's 60 s default — the exact failure this constant exists to prevent,
|
|
13532
|
+
* reintroduced invisibly. Found by the guard, not by review.
|
|
13533
|
+
*/
|
|
13534
|
+
/**
|
|
13535
|
+
* Ceiling for a cap method that runs inference or loads a model.
|
|
13536
|
+
*
|
|
13537
|
+
* Deliberately far above anything the AI layer itself may wait for (a summary
|
|
13538
|
+
* asks 180 s by default, a rule may ask 600 s), because the TRANSPORT must
|
|
13539
|
+
* never be the layer that gives up first: when it does, the failure is
|
|
13540
|
+
* reported as a transport error for a model that was still thinking, naming
|
|
13541
|
+
* the wrong layer and hiding the real one.
|
|
13542
|
+
*
|
|
13543
|
+
* Measured 2026-09-03: a 6-image vision request needs 44.8 s warm and ~20 s
|
|
13544
|
+
* more on a cold model load. With no declaration every digest failed at
|
|
13545
|
+
* exactly 60 s and shipped without its text.
|
|
13546
|
+
*
|
|
13547
|
+
* A ceiling, not a budget. The AI layer's own timeouts (the rule's `timeoutMs`,
|
|
13548
|
+
* the profile's `timeoutMs` / `firstTokenTimeoutMs`) remain the things that
|
|
13549
|
+
* decide when to stop, because only they can say WHY.
|
|
13550
|
+
*/
|
|
13551
|
+
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
13552
|
+
/** A multi-gigabyte download. An hour is not generous, it is honest. */
|
|
13553
|
+
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
13554
|
+
/**
|
|
13526
13555
|
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
13527
13556
|
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
13528
13557
|
* caps stay wire-compatible without a circular cap→cap import.
|
|
@@ -13794,16 +13823,19 @@ method(LlmGenerateBaseInputSchema.extend({
|
|
|
13794
13823
|
timeoutMs: number().int().positive().optional()
|
|
13795
13824
|
}), LlmGenerateResultSchema, {
|
|
13796
13825
|
kind: "mutation",
|
|
13797
|
-
auth: "admin"
|
|
13826
|
+
auth: "admin",
|
|
13827
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13798
13828
|
}), method(object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
13799
13829
|
kind: "mutation",
|
|
13800
|
-
auth: "admin"
|
|
13830
|
+
auth: "admin",
|
|
13831
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13801
13832
|
}), method(object({}), _void(), {
|
|
13802
13833
|
kind: "mutation",
|
|
13803
13834
|
auth: "admin"
|
|
13804
13835
|
}), method(object({}), LlmRuntimeStatusSchema, { auth: "admin" }), method(object({ model: ManagedModelRefSchema }), _void(), {
|
|
13805
13836
|
kind: "mutation",
|
|
13806
|
-
auth: "admin"
|
|
13837
|
+
auth: "admin",
|
|
13838
|
+
timeoutMs: AI_MODEL_INSTALL_TIMEOUT_MS
|
|
13807
13839
|
}), method(object({ file: string() }), _void(), {
|
|
13808
13840
|
kind: "mutation",
|
|
13809
13841
|
auth: "admin"
|
|
@@ -13971,7 +14003,13 @@ var ProfileRefInputSchema = object({
|
|
|
13971
14003
|
addonId: string(),
|
|
13972
14004
|
profileId: string()
|
|
13973
14005
|
});
|
|
13974
|
-
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14006
|
+
method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
14007
|
+
kind: "mutation",
|
|
14008
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14009
|
+
}), method(GenerateVisionInputSchema, LlmGenerateResultSchema, {
|
|
14010
|
+
kind: "mutation",
|
|
14011
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
14012
|
+
}), method(object({
|
|
13975
14013
|
addonId: string().optional(),
|
|
13976
14014
|
requestId: string()
|
|
13977
14015
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
@@ -13982,7 +14020,8 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }
|
|
|
13982
14020
|
auth: "admin"
|
|
13983
14021
|
}), method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
13984
14022
|
kind: "mutation",
|
|
13985
|
-
auth: "admin"
|
|
14023
|
+
auth: "admin",
|
|
14024
|
+
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
13986
14025
|
}), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
13987
14026
|
selector: LlmDefaultSelectorSchema,
|
|
13988
14027
|
profileId: string().nullable()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-gree",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.54",
|
|
4
4
|
"description": "Gree air-conditioner device-provider addon for CamStack — wraps the @apocaliss92/nodegree local-UDP client (LAN discovery + AES control), exposing climate-control and fan-control",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|