show-me-the-env 0.93.2 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "show-me-the-env",
3
- "version": "0.93.2",
3
+ "version": "0.94.0",
4
4
  "description": "Save and restore your whole agent and coding environment as one versioned .agenv repository.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -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;
@@ -51,7 +51,9 @@ const isGpt = (model) => /^gpt-/i.test(String(model ?? ''));
51
51
 
52
52
  const READ = ['Read', 'Glob', 'Grep', 'LS', 'WebSearch', 'WebFetch', 'TodoWrite', 'Task'];
53
53
  const EFFORTS = ['low', 'medium', 'high', 'xhigh', 'max'];
54
- const WRITE = [...READ, 'Edit', 'MultiEdit', 'Write', 'NotebookEdit', 'Bash(git:*)', 'Bash(node:*)', 'Bash(pnpm:*)', 'Bash(npm:*)', 'Bash(npx:*)', 'Bash(curl:*)', 'Bash(unzip:*)', 'Bash(sha256sum:*)', 'Bash(file:*)', 'Bash(ls:*)', 'Bash(cat:*)', 'Bash(head:*)', 'Bash(tail:*)', 'Bash(wc:*)', 'Bash(mkdir:*)', 'Bash(cp:*)', 'Bash(mv:*)', 'Bash(rg:*)'];
54
+ // python, uv, ffmpeg and docker joined on 2026-12-04, when three runner units stopped BLOCKED on a refused sound measurement, a
55
+ // uv-run test suite and a postgres:17 test database.
56
+ const WRITE = [...READ, 'Edit', 'MultiEdit', 'Write', 'NotebookEdit', 'Bash(git:*)', 'Bash(node:*)', 'Bash(pnpm:*)', 'Bash(npm:*)', 'Bash(npx:*)', 'Bash(curl:*)', 'Bash(unzip:*)', 'Bash(sha256sum:*)', 'Bash(file:*)', 'Bash(ls:*)', 'Bash(cat:*)', 'Bash(head:*)', 'Bash(tail:*)', 'Bash(wc:*)', 'Bash(mkdir:*)', 'Bash(cp:*)', 'Bash(mv:*)', 'Bash(rg:*)', 'Bash(python:*)', 'Bash(python3:*)', 'Bash(uv:*)', 'Bash(uvx:*)', 'Bash(ffmpeg:*)', 'Bash(ffprobe:*)', 'Bash(docker:*)'];
55
57
  const LEAD = /^[\s>*_`#-]+/;
56
58
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
57
59
  const alive = (pid) => { if (!pid) return false; try { process.kill(pid, 0); return true; } catch (e) { return e.code === 'EPERM'; } };