show-me-the-env 0.93.3 → 0.94.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/package.json
CHANGED
|
@@ -40,6 +40,9 @@ export function modelSettings(models = {}, home = os.homedir()) {
|
|
|
40
40
|
tiers: { fast: 'lazycodex-worker-low', standard: 'lazycodex-worker-medium', frontier: 'lazycodex-worker-high', ...models.tiers },
|
|
41
41
|
whenThrottled: models.whenThrottled ?? {},
|
|
42
42
|
shareFile: models.shareFile ? expandHome(models.shareFile, home) : null,
|
|
43
|
+
// Points of the Claude weekly share summed over the accounts (the share file's unit); under it a read-only or markdown unit runs
|
|
44
|
+
// on the model whenThrottled names. No default: without it nothing moves before the share is gone.
|
|
45
|
+
claudeReserve: Number.isFinite(models.claudeReserve) ? models.claudeReserve : 0,
|
|
43
46
|
};
|
|
44
47
|
}
|
|
45
48
|
|
|
@@ -144,6 +147,9 @@ export function pick(u, settings, { claudeShareLeft = Infinity, effortPin = null
|
|
|
144
147
|
} else if (claudeShareLeft <= 0 && elsewhere) {
|
|
145
148
|
extra = '; no Claude share left at the account guard, ' + model + ' runs as ' + elsewhere;
|
|
146
149
|
model = elsewhere;
|
|
150
|
+
} else if (claudeShareLeft < settings.claudeReserve && elsewhere && (chk.domain === 'knowledge' || chk.domain === 'writing')) {
|
|
151
|
+
extra = '; Claude share ' + claudeShareLeft + ' under the reserve ' + settings.claudeReserve + ', a ' + chk.domain + ' unit runs as ' + elsewhere;
|
|
152
|
+
model = elsewhere;
|
|
147
153
|
} else if (hot(model) && elsewhere) {
|
|
148
154
|
extra = '; ' + model + ' ended a session on 429 within 30 min, runs as ' + elsewhere;
|
|
149
155
|
model = elsewhere;
|