@wrongstack/core 0.281.0 → 0.281.3
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/defaults/index.js +11 -7
- package/dist/defaults/index.js.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/models/index.js +11 -7
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22210,7 +22210,7 @@ var CODEX_MODELS = [
|
|
|
22210
22210
|
{
|
|
22211
22211
|
id: "gpt-5.3-codex-spark",
|
|
22212
22212
|
name: "GPT-5.3 Codex Spark",
|
|
22213
|
-
description: "Ultra-fast coding model."
|
|
22213
|
+
description: "Ultra-fast coding model (research preview)."
|
|
22214
22214
|
}
|
|
22215
22215
|
];
|
|
22216
22216
|
var BY_ID = new Map(CODEX_MODELS.map((m) => [m.id, m]));
|
|
@@ -22350,6 +22350,7 @@ var FAMILY_BY_NPM = {
|
|
|
22350
22350
|
"@ai-sdk/gateway": "openai-compatible",
|
|
22351
22351
|
"@aihubmix/ai-sdk-provider": "openai-compatible",
|
|
22352
22352
|
"venice-ai-sdk-provider": "openai-compatible",
|
|
22353
|
+
"@ai-sdk/deepseek": "openai-compatible",
|
|
22353
22354
|
"@ai-sdk/google": "google"
|
|
22354
22355
|
};
|
|
22355
22356
|
function classifyFamily(npm) {
|
|
@@ -22449,7 +22450,9 @@ var DefaultModelsRegistry = class {
|
|
|
22449
22450
|
}
|
|
22450
22451
|
if (overlayAvailable) {
|
|
22451
22452
|
console.warn(
|
|
22452
|
-
`ModelsRegistry: models.dev unavailable (${toErrorMessage(
|
|
22453
|
+
`ModelsRegistry: models.dev unavailable (${toErrorMessage(
|
|
22454
|
+
err
|
|
22455
|
+
)}); serving curated overlay only.`
|
|
22453
22456
|
);
|
|
22454
22457
|
return {};
|
|
22455
22458
|
}
|
|
@@ -22526,11 +22529,12 @@ var DefaultModelsRegistry = class {
|
|
|
22526
22529
|
method: "GET",
|
|
22527
22530
|
headers: { accept: "application/json" }
|
|
22528
22531
|
});
|
|
22529
|
-
if (!res.ok)
|
|
22530
|
-
|
|
22531
|
-
|
|
22532
|
-
|
|
22533
|
-
|
|
22532
|
+
if (!res.ok)
|
|
22533
|
+
throw new FetchError({
|
|
22534
|
+
message: `HTTP ${res.status}`,
|
|
22535
|
+
status: res.status,
|
|
22536
|
+
context: { url: this.url, op: "refreshModels" }
|
|
22537
|
+
});
|
|
22534
22538
|
const json = await res.json();
|
|
22535
22539
|
const envelope = {
|
|
22536
22540
|
fetchedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -52124,7 +52128,7 @@ ${hint.trim()}`);
|
|
|
52124
52128
|
);
|
|
52125
52129
|
if (contextManagement) lines.push(contextManagement);
|
|
52126
52130
|
} else {
|
|
52127
|
-
const maxCtx = this.modelCapabilities()?.maxContextTokens ??
|
|
52131
|
+
const maxCtx = this.modelCapabilities()?.maxContextTokens ?? 0;
|
|
52128
52132
|
const threshold = maxCtx <= 32e3 ? "50" : "70";
|
|
52129
52133
|
const contextManagement = this.instructionSection(
|
|
52130
52134
|
instructions,
|