@ngosangns/ns-bridge 0.1.20 → 0.1.21

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.
@@ -1,4 +1,4 @@
1
- // @ngosangns/ns-bridge 0.1.20 — catalog refresh bundle.
1
+ // @ngosangns/ns-bridge 0.1.21 — 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;
@@ -98927,6 +98927,16 @@ var KIRO_LONG_CONTEXT_THRESHOLDS = {
98927
98927
  "gpt-5-6-sol": 272e3,
98928
98928
  "gpt-5-6-terra": 272e3
98929
98929
  };
98930
+ var KIRO_CLAUDE_COMPACTION_TARGET = 15e4;
98931
+ function kiroCompactionTarget(model) {
98932
+ if (!model.id.startsWith("claude-"))
98933
+ return void 0;
98934
+ if (model.contextWindow <= 2e5)
98935
+ return void 0;
98936
+ if (KIRO_CLAUDE_COMPACTION_TARGET >= model.contextWindow)
98937
+ return void 0;
98938
+ return KIRO_CLAUDE_COMPACTION_TARGET;
98939
+ }
98930
98940
  function kiroStandardContextWindow(model) {
98931
98941
  const threshold = Object.hasOwn(KIRO_LONG_CONTEXT_THRESHOLDS, model.id) ? KIRO_LONG_CONTEXT_THRESHOLDS[model.id] : void 0;
98932
98942
  return threshold !== void 0 && threshold < model.contextWindow ? threshold : model.contextWindow;
@@ -99278,6 +99288,13 @@ function hasVerifiedImageInput(kiroModelId) {
99278
99288
  return kiroModelId.startsWith("claude-") || VERIFIED_IMAGE_MODEL_IDS.has(kiroModelId.toLowerCase());
99279
99289
  }
99280
99290
  function kiroCompactionBudget(model) {
99291
+ const target = kiroCompactionTarget(model);
99292
+ if (target !== void 0) {
99293
+ return {
99294
+ reserveTokens: Math.max(1, Math.min(Math.floor(model.maxTokens), COMPACTION_RESERVE_FLOOR)),
99295
+ thresholdTokens: target
99296
+ };
99297
+ }
99281
99298
  return compactionBudget({ contextWindow: kiroStandardContextWindow(model), maxTokens: model.maxTokens });
99282
99299
  }
99283
99300
  function withCompaction3(model) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngosangns/ns-bridge",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "Install, update, and refresh ns-bridge providers outside Pi, OMP, and DSH.",
5
5
  "type": "module",
6
6
  "license": "MIT",