billion-context 0.1.78 → 0.1.79
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/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -46072,10 +46072,11 @@ function decideNudge(input) {
|
|
|
46072
46072
|
);
|
|
46073
46073
|
let injectedTier = null;
|
|
46074
46074
|
let injectedReason = "";
|
|
46075
|
-
const growthReady = growthSinceReference >= growthFloor;
|
|
46076
46075
|
const t1Eff = tiers[1]?.pending ?? 0;
|
|
46077
46076
|
const t2Pen = tiers[2]?.pending ?? 0;
|
|
46078
46077
|
const t3Pen = tiers[3]?.pending ?? 0;
|
|
46078
|
+
const firstSightMassReady = state.nudge.lastNudgeShownTokens === 0 && baseline === 0 && usage >= config.nudge.minContextLimitPct && Math.max(t1Eff, t2Pen, t3Pen) >= nudgeGrowthTokens;
|
|
46079
|
+
const growthReady = firstSightMassReady || growthSinceReference >= growthFloor;
|
|
46079
46080
|
const t2Count = tiers[2]?.targetBlocks.length ?? 0;
|
|
46080
46081
|
const t3Count = tiers[3]?.targetBlocks.length ?? 0;
|
|
46081
46082
|
if (pressure) {
|
|
@@ -46118,6 +46119,9 @@ function decideNudge(input) {
|
|
|
46118
46119
|
}
|
|
46119
46120
|
}
|
|
46120
46121
|
const shouldInject = injectedTier !== null;
|
|
46122
|
+
if (shouldInject && firstSightMassReady) {
|
|
46123
|
+
injectedReason += " [first-sight mass]";
|
|
46124
|
+
}
|
|
46121
46125
|
let reason;
|
|
46122
46126
|
if (injectedTier !== null) {
|
|
46123
46127
|
reason = injectedReason;
|