@elisym/sdk 0.24.0 → 0.25.0
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/agent-store.cjs +5 -2
- package/dist/agent-store.cjs.map +1 -1
- package/dist/agent-store.js +5 -2
- package/dist/agent-store.js.map +1 -1
- package/dist/index.cjs +128 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +129 -3
- package/dist/index.js.map +1 -1
- package/dist/llm-health.cjs.map +1 -1
- package/dist/llm-health.d.cts +2 -2
- package/dist/llm-health.d.ts +2 -2
- package/dist/llm-health.js.map +1 -1
- package/dist/node.cjs +1 -2
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1 -2
- package/dist/node.js.map +1 -1
- package/dist/skills.cjs.map +1 -1
- package/dist/skills.d.cts +1 -1
- package/dist/skills.d.ts +1 -1
- package/dist/skills.js.map +1 -1
- package/dist/{types-Cdscy9kY.d.cts → types-CqN9kFTn.d.cts} +6 -1
- package/dist/{types-Cdscy9kY.d.ts → types-CqN9kFTn.d.ts} +6 -1
- package/package.json +1 -1
|
@@ -13,7 +13,11 @@ type LlmHealthStatus = 'unknown' | 'healthy' | 'invalid' | 'billing' | 'unavaila
|
|
|
13
13
|
* - `billing`: HTTP 402, or 400 with credit/billing/insufficient marker,
|
|
14
14
|
* or OpenAI's 429 with `insufficient_quota`. Operator out of credits.
|
|
15
15
|
* - `unavailable`: transient (HTTP 429 without quota marker, 5xx, network
|
|
16
|
-
* error). May resolve on retry.
|
|
16
|
+
* error). May resolve on retry. `status` carries the HTTP status when the
|
|
17
|
+
* failure was an HTTP response (absent for a network throw), letting callers
|
|
18
|
+
* distinguish a transient 5xx/429 from a permanent 404 "model no longer
|
|
19
|
+
* exists" without re-parsing `error`. Unlike `invalid`/`billing`,
|
|
20
|
+
* `unavailable` is per-model and never cascades to sibling models.
|
|
17
21
|
*/
|
|
18
22
|
type LlmKeyVerification = {
|
|
19
23
|
ok: true;
|
|
@@ -30,6 +34,7 @@ type LlmKeyVerification = {
|
|
|
30
34
|
} | {
|
|
31
35
|
ok: false;
|
|
32
36
|
reason: 'unavailable';
|
|
37
|
+
status?: number;
|
|
33
38
|
error: string;
|
|
34
39
|
};
|
|
35
40
|
type LlmHealthErrorReason = 'invalid' | 'billing' | 'unavailable';
|