mtech-ai-local-runner 0.1.88 → 0.1.89

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.
@@ -198,7 +198,8 @@ export class GitSnapshotHost {
198
198
  if (before.length > o.maxFileBytes)
199
199
  throw denied();
200
200
  }
201
- total += (before?.length ?? 0) + (current?.bytes.length ?? 0);
201
+ // The cap bounds the tree, as matches() and batchObjects() do: each path counts once, at its larger version.
202
+ total += Math.max(before?.length ?? 0, current?.bytes.length ?? 0);
202
203
  if (total > o.maxTotalBytes)
203
204
  throw denied();
204
205
  if (current)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mtech-ai-local-runner",
3
- "version": "0.1.88",
3
+ "version": "0.1.89",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "bin": {