@ngosangns/ns-bridge 0.1.19 → 0.1.20
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/refresh-entry.js +19 -3
- package/package.json +1 -1
package/dist/refresh-entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @ngosangns/ns-bridge 0.1.
|
|
1
|
+
// @ngosangns/ns-bridge 0.1.20 — catalog refresh bundle.
|
|
2
2
|
import { createRequire as __nsBridgeCreateRequire } from 'node:module';
|
|
3
3
|
const require = __nsBridgeCreateRequire(import.meta.url);
|
|
4
4
|
var __create = Object.create;
|
|
@@ -98920,6 +98920,19 @@ function getKiroEffortConfig(schema, kiroModelId) {
|
|
|
98920
98920
|
|
|
98921
98921
|
// ../kiro-core/dist/models.js
|
|
98922
98922
|
init_endpoints();
|
|
98923
|
+
|
|
98924
|
+
// ../kiro-core/dist/long-context.js
|
|
98925
|
+
var KIRO_LONG_CONTEXT_THRESHOLDS = {
|
|
98926
|
+
"gpt-5-6-luna": 272e3,
|
|
98927
|
+
"gpt-5-6-sol": 272e3,
|
|
98928
|
+
"gpt-5-6-terra": 272e3
|
|
98929
|
+
};
|
|
98930
|
+
function kiroStandardContextWindow(model) {
|
|
98931
|
+
const threshold = Object.hasOwn(KIRO_LONG_CONTEXT_THRESHOLDS, model.id) ? KIRO_LONG_CONTEXT_THRESHOLDS[model.id] : void 0;
|
|
98932
|
+
return threshold !== void 0 && threshold < model.contextWindow ? threshold : model.contextWindow;
|
|
98933
|
+
}
|
|
98934
|
+
|
|
98935
|
+
// ../kiro-core/dist/models.js
|
|
98923
98936
|
init_profile();
|
|
98924
98937
|
init_endpoints();
|
|
98925
98938
|
var KIRO_MANAGEMENT_CACHE_VERSION = 1;
|
|
@@ -99143,7 +99156,7 @@ var kiroModels = bootstrapKiroModels.map((model) => ({
|
|
|
99143
99156
|
// The seed is what a machine that never refreshed serves, so it carries the
|
|
99144
99157
|
// same budget a refresh would write. `compactionBudget` never returns
|
|
99145
99158
|
// undefined for these windows.
|
|
99146
|
-
compaction:
|
|
99159
|
+
compaction: kiroCompactionBudget(model) ?? { reserveTokens: model.maxTokens, thresholdTokens: model.contextWindow }
|
|
99147
99160
|
}));
|
|
99148
99161
|
var BOOTSTRAP_KIRO_MODEL_IDS = kiroModels.map((model) => model.kiroModelId);
|
|
99149
99162
|
var KIRO_MODEL_IDS = new Set(BOOTSTRAP_KIRO_MODEL_IDS);
|
|
@@ -99264,8 +99277,11 @@ function hasReasoningFamilyFallback(modelId) {
|
|
|
99264
99277
|
function hasVerifiedImageInput(kiroModelId) {
|
|
99265
99278
|
return kiroModelId.startsWith("claude-") || VERIFIED_IMAGE_MODEL_IDS.has(kiroModelId.toLowerCase());
|
|
99266
99279
|
}
|
|
99280
|
+
function kiroCompactionBudget(model) {
|
|
99281
|
+
return compactionBudget({ contextWindow: kiroStandardContextWindow(model), maxTokens: model.maxTokens });
|
|
99282
|
+
}
|
|
99267
99283
|
function withCompaction3(model) {
|
|
99268
|
-
const budget =
|
|
99284
|
+
const budget = kiroCompactionBudget(model);
|
|
99269
99285
|
if (!budget)
|
|
99270
99286
|
return model;
|
|
99271
99287
|
const current = model.compaction;
|