@lousy-agents/cli 5.22.2 → 5.22.3

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.
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@biomejs/biome": "2.5.15",
21
- "@lousy-agents/mcp": "5.22.1",
21
+ "@lousy-agents/mcp": "5.22.2",
22
22
  "@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
23
23
  "@testcontainers/postgresql": "12.2.1",
24
24
  "@types/node": "24.19.2",
@@ -958,9 +958,9 @@
958
958
  }
959
959
  },
960
960
  "node_modules/@lousy-agents/mcp": {
961
- "version": "5.22.1",
962
- "resolved": "https://registry.npmjs.org/@lousy-agents/mcp/-/mcp-5.22.1.tgz",
963
- "integrity": "sha512-UP7vm2anx2hyyWTR21Fw2YgmNxzSk1H7sId1ombH223CwnYUx5pZC1hBh+1TOzUolO81XhRDJypqQGEHm1xrqw==",
961
+ "version": "5.22.2",
962
+ "resolved": "https://registry.npmjs.org/@lousy-agents/mcp/-/mcp-5.22.2.tgz",
963
+ "integrity": "sha512-8V5umxoO9lV7+Zo5eLwae0GhpqIrVsNxBKuuRnCm/7ygWr7k10jJNYciklxZZ9WPKswyXOiFNtHySibYO8w/Wg==",
964
964
  "dev": true,
965
965
  "license": "BSD-2-Clause-Patent",
966
966
  "dependencies": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@biomejs/biome": "2.5.15",
32
- "@lousy-agents/mcp": "5.22.1",
32
+ "@lousy-agents/mcp": "5.22.2",
33
33
  "@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
34
34
  "@testcontainers/postgresql": "12.2.1",
35
35
  "@types/node": "24.19.2",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@biomejs/biome": "2.5.15",
23
- "@lousy-agents/mcp": "5.22.1",
23
+ "@lousy-agents/mcp": "5.22.2",
24
24
  "@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
25
25
  "@types/node": "24.19.2",
26
26
  "chance": "1.1.13",
package/dist/index.js CHANGED
@@ -8437,7 +8437,7 @@ class AtomicFile {
8437
8437
  }
8438
8438
  *readFile(sizeHint) {
8439
8439
  if (typeof this.resource !== "number")
8440
- return yield* atomic_io_wait(this.resource.readFile());
8440
+ return yield* atomic_io_wait(readFileHandleBounded(this.resource, Infinity));
8441
8441
  if (sizeHint === undefined)
8442
8442
  return this.io.syncFs.readFileSync(this.resource);
8443
8443
  const fd = this.resource;
@@ -18833,6 +18833,7 @@ function publishThroughPlaceholder(params, assertCurrent) {
18833
18833
 
18834
18834
 
18835
18835
 
18836
+
18836
18837
 
18837
18838
 
18838
18839
  async function runPinnedStagedWrite(params, parentPath, parentGuard) {
@@ -18951,7 +18952,7 @@ async function runPinnedStagedWrite(params, parentPath, parentGuard) {
18951
18952
  const expectedHash = sha256Hex(params.input.data, params.input.encoding);
18952
18953
  readHandle = await promises_.open(targetPath, read_open_flags_resolveReadOpenFlags());
18953
18954
  const readHandleStat = external_node_fs_.fstatSync(readHandle.fd, { bigint: true });
18954
- const actualHash = sha256Hex(await readHandle.readFile());
18955
+ const actualHash = sha256Hex(await readFileHandleBounded(readHandle, Infinity));
18955
18956
  if (actualHash !== expectedHash) {
18956
18957
  throw new errors_FsSafeError("path-mismatch", "fallback target changed during write");
18957
18958
  }
@@ -19702,9 +19703,7 @@ async function read_opened_file_readOpenedFileSafely(params) {
19702
19703
  if (maxBytes !== undefined && params.opened.stat.size > maxBytes) {
19703
19704
  throw new errors_FsSafeError("too-large", `file exceeds limit of ${maxBytes} bytes (got ${params.opened.stat.size})`);
19704
19705
  }
19705
- const buffer = maxBytes === undefined
19706
- ? await params.opened.handle.readFile()
19707
- : await readFileHandleBoundedWithSize(params.opened.handle, maxBytes, params.opened.stat.size);
19706
+ const buffer = await readFileHandleBoundedWithSize(params.opened.handle, maxBytes ?? Infinity, params.opened.stat.size);
19708
19707
  return {
19709
19708
  buffer,
19710
19709
  containment: params.opened.containment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lousy-agents/cli",
3
- "version": "5.22.2",
3
+ "version": "5.22.3",
4
4
  "description": "CLI scaffolding tool that sets up projects with structure, instructions, and feedback loops for AI coding assistants",
5
5
  "type": "module",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "devDependencies": {
24
24
  "@biomejs/biome": "2.5.15",
25
25
  "@eslint/eslintrc": "3.3.7",
26
- "@lousy-agents/mcp": "5.22.1",
26
+ "@lousy-agents/mcp": "5.22.2",
27
27
  "@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
28
28
  "@testing-library/jest-dom": "7.0.1",
29
29
  "@testing-library/react": "16.3.3",