@lousy-agents/cli 5.23.3 → 5.23.4

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "root": true,
3
- "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
+ "$schema": "https://biomejs.dev/schemas/2.6.5/schema.json",
4
4
  "vcs": {
5
5
  "enabled": true,
6
6
  "clientKind": "git",
@@ -14,6 +14,16 @@
14
14
  "indentStyle": "space",
15
15
  "indentWidth": 4
16
16
  },
17
+ "markdown": {
18
+ "formatter": {
19
+ "enabled": false
20
+ }
21
+ },
22
+ "yaml": {
23
+ "formatter": {
24
+ "enabled": false
25
+ }
26
+ },
17
27
  "linter": {
18
28
  "enabled": true,
19
29
  "rules": {
@@ -13,12 +13,12 @@
13
13
  "fastify": "5.12.8",
14
14
  "kysely": "0.29.8",
15
15
  "pino": "10.4.0",
16
- "postgres": "4.0.0",
16
+ "postgres": "4.1.0",
17
17
  "zod": "4.6.7"
18
18
  },
19
19
  "devDependencies": {
20
- "@biomejs/biome": "2.5.15",
21
- "@lousy-agents/mcp": "5.23.2",
20
+ "@biomejs/biome": "2.6.5",
21
+ "@lousy-agents/mcp": "5.23.3",
22
22
  "@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
23
23
  "@testcontainers/postgresql": "12.2.1",
24
24
  "@types/node": "26.6.6",
@@ -37,9 +37,9 @@
37
37
  "license": "Apache-2.0"
38
38
  },
39
39
  "node_modules/@biomejs/biome": {
40
- "version": "2.5.15",
41
- "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.5.15.tgz",
42
- "integrity": "sha512-WZTW4slm/pdkh92K6t/3aEN++44JD1PQ7squ7RCMLI1flHGl43DVOIGXvCjHiZgBMO1V4uYxoFNtqrIA4qGuIQ==",
40
+ "version": "2.6.5",
41
+ "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.6.5.tgz",
42
+ "integrity": "sha512-n0sp74QbSVEkWXlH659TKv4oJNylwAvDeZ8K8vt/PbcF1xneuNWe57z/G0Bxfh00cufhWXF6DiStLM8+jcLUpg==",
43
43
  "dev": true,
44
44
  "license": "MIT OR Apache-2.0",
45
45
  "bin": {
@@ -53,20 +53,56 @@
53
53
  "url": "https://opencollective.com/biome"
54
54
  },
55
55
  "optionalDependencies": {
56
- "@biomejs/cli-darwin-arm64": "2.5.15",
57
- "@biomejs/cli-darwin-x64": "2.5.15",
58
- "@biomejs/cli-linux-arm64": "2.5.15",
59
- "@biomejs/cli-linux-arm64-musl": "2.5.15",
60
- "@biomejs/cli-linux-x64": "2.5.15",
61
- "@biomejs/cli-linux-x64-musl": "2.5.15",
62
- "@biomejs/cli-win32-arm64": "2.5.15",
63
- "@biomejs/cli-win32-x64": "2.5.15"
56
+ "@biomejs/cli-android-arm64": "2.6.5",
57
+ "@biomejs/cli-android-x64": "2.6.5",
58
+ "@biomejs/cli-darwin-arm64": "2.6.5",
59
+ "@biomejs/cli-darwin-x64": "2.6.5",
60
+ "@biomejs/cli-linux-arm64": "2.6.5",
61
+ "@biomejs/cli-linux-arm64-musl": "2.6.5",
62
+ "@biomejs/cli-linux-x64": "2.6.5",
63
+ "@biomejs/cli-linux-x64-musl": "2.6.5",
64
+ "@biomejs/cli-win32-arm64": "2.6.5",
65
+ "@biomejs/cli-win32-x64": "2.6.5"
66
+ }
67
+ },
68
+ "node_modules/@biomejs/cli-android-arm64": {
69
+ "version": "2.6.5",
70
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-android-arm64/-/cli-android-arm64-2.6.5.tgz",
71
+ "integrity": "sha512-fkLzc1WRU7wRIUNmAm7cxILb4dd6eESz/VycWvVFKVn6tXx0gFQKdUbPnwT42xys8AEvIJQpFGcK00kURwqorg==",
72
+ "cpu": [
73
+ "arm64"
74
+ ],
75
+ "dev": true,
76
+ "license": "MIT OR Apache-2.0",
77
+ "optional": true,
78
+ "os": [
79
+ "android"
80
+ ],
81
+ "engines": {
82
+ "node": ">=14.21.3"
83
+ }
84
+ },
85
+ "node_modules/@biomejs/cli-android-x64": {
86
+ "version": "2.6.5",
87
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-android-x64/-/cli-android-x64-2.6.5.tgz",
88
+ "integrity": "sha512-fkZ9dPnDAzAcaPtPCiwqtkub5C9FQK/oGCGaU9sq+DysTaq13pE9FxBIMcEZ3ydn8/FfcMdXi/DDzKDP+qyn2Q==",
89
+ "cpu": [
90
+ "x64"
91
+ ],
92
+ "dev": true,
93
+ "license": "MIT OR Apache-2.0",
94
+ "optional": true,
95
+ "os": [
96
+ "android"
97
+ ],
98
+ "engines": {
99
+ "node": ">=14.21.3"
64
100
  }
65
101
  },
66
102
  "node_modules/@biomejs/cli-darwin-arm64": {
67
- "version": "2.5.15",
68
- "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.5.15.tgz",
69
- "integrity": "sha512-BZVzFhJ/mUvTLMYbc9x6el0o2Uv5zP7bACYyhFb6fSc1giroXm7PL0a5KqMJ9F+/BnkYRjagD/ROSDVOZ6eapg==",
103
+ "version": "2.6.5",
104
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.6.5.tgz",
105
+ "integrity": "sha512-bKd0EOREgnVjeZm4s9knQ+WdPOkWS3JHB+eWGHlx+Pq66bqQA1/KybwU0O+zuyAyXiphSCBcrLruZt3YtnJoaQ==",
70
106
  "cpu": [
71
107
  "arm64"
72
108
  ],
@@ -81,9 +117,9 @@
81
117
  }
82
118
  },
83
119
  "node_modules/@biomejs/cli-darwin-x64": {
84
- "version": "2.5.15",
85
- "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.5.15.tgz",
86
- "integrity": "sha512-V5Kw63V+fVGNFhFrizDxMbGXAzZCh8kYzJpy3GI6gTapWDg7bZK9oYC9CbVgQSEdTnupz0U5Efz8Ev+5vdBBXw==",
120
+ "version": "2.6.5",
121
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.6.5.tgz",
122
+ "integrity": "sha512-UkT9BECNOXSiW6SGddjyaRACy362Sc9n3vDaTFkccL0bC2gW7JzM16i4+JKPbEaDn1Sa+oETHV8KungnI/y40Q==",
87
123
  "cpu": [
88
124
  "x64"
89
125
  ],
@@ -98,9 +134,9 @@
98
134
  }
99
135
  },
100
136
  "node_modules/@biomejs/cli-linux-arm64": {
101
- "version": "2.5.15",
102
- "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.5.15.tgz",
103
- "integrity": "sha512-XaG7P7eeSLYETD3K9grfB0mQmpLQZjygdbsxekWBJAg4am79fGAtRpfRyNnTvXB2fZFNnJZG3nXm7HBat0+VUw==",
137
+ "version": "2.6.5",
138
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.6.5.tgz",
139
+ "integrity": "sha512-H9cVMWBqW/lkFK9NHJdt0bpM2q7PacUDEjQoff9+m0dCV09H/jmBykfTCkbDthHf8+jCuWDJWiQFJ7bDkiGOcA==",
104
140
  "cpu": [
105
141
  "arm64"
106
142
  ],
@@ -118,9 +154,9 @@
118
154
  }
119
155
  },
120
156
  "node_modules/@biomejs/cli-linux-arm64-musl": {
121
- "version": "2.5.15",
122
- "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.5.15.tgz",
123
- "integrity": "sha512-tGzZUTcJCV7tj5Adh/Gn6nR4MycqA3iohq2LEcrarAgRBkU0h0OKd2UzCRkOsOYOuUGaUJb4YmqRqyy2feGGSw==",
157
+ "version": "2.6.5",
158
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.6.5.tgz",
159
+ "integrity": "sha512-kfc3AePW1a0/d/gUpcIz95nf3Ce8YY2/xL0Fk3fLqAhKsotqUi6PN6BaVWss4p6ijWbiuacZ9NQ4NiQtpjbYpw==",
124
160
  "cpu": [
125
161
  "arm64"
126
162
  ],
@@ -138,9 +174,9 @@
138
174
  }
139
175
  },
140
176
  "node_modules/@biomejs/cli-linux-x64": {
141
- "version": "2.5.15",
142
- "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.5.15.tgz",
143
- "integrity": "sha512-xE4iEW/3LqlYj9GFgGrFsFSH51dEEpUbYWBfeOv0q87WkUDxK2o/HhreSb7qMJqck70RVM6Lg96hgedcAYcOkA==",
177
+ "version": "2.6.5",
178
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.6.5.tgz",
179
+ "integrity": "sha512-e6/WMSN/+FhH+ZOoBevps/euxFQmv6BXqYNuTn1+ITR6O4XYFjHF5PeVSNZnjkgSYmvhcDkfepSX5lXczMijGA==",
144
180
  "cpu": [
145
181
  "x64"
146
182
  ],
@@ -158,9 +194,9 @@
158
194
  }
159
195
  },
160
196
  "node_modules/@biomejs/cli-linux-x64-musl": {
161
- "version": "2.5.15",
162
- "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.5.15.tgz",
163
- "integrity": "sha512-IlxUcyxilVGPsE008x13pWdkTbU3nQpP2i9b5UrbOYj6goBkKsRX1XB7yJLcV+O1H9LBchIIm4adOaVLZBX0ZQ==",
197
+ "version": "2.6.5",
198
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.6.5.tgz",
199
+ "integrity": "sha512-0mHVpLNt7/FugfZ2VPugUIEIiooWIyHGGJUqU9StxamBln9hz+maXRFIECU50jaf5/ZB93veGIViN5VKgw2AEA==",
164
200
  "cpu": [
165
201
  "x64"
166
202
  ],
@@ -178,9 +214,9 @@
178
214
  }
179
215
  },
180
216
  "node_modules/@biomejs/cli-win32-arm64": {
181
- "version": "2.5.15",
182
- "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.5.15.tgz",
183
- "integrity": "sha512-2kPKzhNlm8C+Ru3GcO0Me2ODkCBLrVOUNuyi84RJyWDVKAA4+Kjj3jMjL938lF6BRfvltC4vB2nPY9SvN51Ovg==",
217
+ "version": "2.6.5",
218
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.6.5.tgz",
219
+ "integrity": "sha512-uBbfpdR/cH5up1iRJFGAPP97xKMzrgMs685CSrY7NM+Q4Unw7chY0o3JulEvJdmU6c6hGQxwqotMq7DDH0DzxA==",
184
220
  "cpu": [
185
221
  "arm64"
186
222
  ],
@@ -195,9 +231,9 @@
195
231
  }
196
232
  },
197
233
  "node_modules/@biomejs/cli-win32-x64": {
198
- "version": "2.5.15",
199
- "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.5.15.tgz",
200
- "integrity": "sha512-yAzh4UqEImV6Hcy0zjUqNfJAsUhoD64FBQCdTG8Md/Z2wQeVP/ZmJ3XRYAs1g8J9fjTFyl2fCtc5FB5til47+g==",
234
+ "version": "2.6.5",
235
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.6.5.tgz",
236
+ "integrity": "sha512-07LaCeN9vvmbAAMOMsUjMfL5UbsCDkvVeyMJIgwNRc0xYqhizBGkjVzx05LYEwCXl2AiHcdzqVPR4IOYAsI1QQ==",
201
237
  "cpu": [
202
238
  "x64"
203
239
  ],
@@ -974,9 +1010,9 @@
974
1010
  }
975
1011
  },
976
1012
  "node_modules/@lousy-agents/mcp": {
977
- "version": "5.23.2",
978
- "resolved": "https://registry.npmjs.org/@lousy-agents/mcp/-/mcp-5.23.2.tgz",
979
- "integrity": "sha512-rbDZKcKiFpLy+kEbW/32kMYyJcbZoiOuGlOW5DMkXJ5sD2nkjGuT14y1wmN4NKy3WPlzS4zDdj0fulq6MlMaTA==",
1013
+ "version": "5.23.3",
1014
+ "resolved": "https://registry.npmjs.org/@lousy-agents/mcp/-/mcp-5.23.3.tgz",
1015
+ "integrity": "sha512-2buRTuQ7ufmI+dmwXWRffLIcOnulT0gEfdIT/8V9Iehq8ELbxbp40cuqlPWERRqK5/37LzH/cg7+6TspV/TKHw==",
980
1016
  "dev": true,
981
1017
  "license": "BSD-2-Clause-Patent",
982
1018
  "dependencies": {
@@ -4634,12 +4670,12 @@
4634
4670
  }
4635
4671
  },
4636
4672
  "node_modules/postgres": {
4637
- "version": "4.0.0",
4638
- "resolved": "https://registry.npmjs.org/postgres/-/postgres-4.0.0.tgz",
4639
- "integrity": "sha512-kBh8qXtcvvIAc00DftQyOxz7M/3Zxww1tRMXZPLzipNXXl5PIzHml+9zB3Mrge2U8ldc0WF1ZdLp1iYQi7Kh3A==",
4673
+ "version": "4.1.0",
4674
+ "resolved": "https://registry.npmjs.org/postgres/-/postgres-4.1.0.tgz",
4675
+ "integrity": "sha512-s+0WH67YAyLdBQUb6XczbziBhY+C9uiQsg9S8R5RHdZhk6sdyK6202E+T2tXpiInSEEjDLRSJ3OpYBe3PN6MsQ==",
4640
4676
  "license": "Unlicense",
4641
4677
  "engines": {
4642
- "node": ">=20"
4678
+ "node": ">=18"
4643
4679
  },
4644
4680
  "funding": {
4645
4681
  "type": "individual",
@@ -21,15 +21,15 @@
21
21
  "fastify": "5.12.8",
22
22
  "kysely": "0.29.8",
23
23
  "pino": "10.4.0",
24
- "postgres": "4.0.0",
24
+ "postgres": "4.1.0",
25
25
  "zod": "4.6.7"
26
26
  },
27
27
  "overrides": {
28
28
  "zod": "4.6.7"
29
29
  },
30
30
  "devDependencies": {
31
- "@biomejs/biome": "2.5.15",
32
- "@lousy-agents/mcp": "5.23.2",
31
+ "@biomejs/biome": "2.6.5",
32
+ "@lousy-agents/mcp": "5.23.3",
33
33
  "@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
34
34
  "@testcontainers/postgresql": "12.2.1",
35
35
  "@types/node": "26.6.6",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "root": true,
3
- "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
+ "$schema": "https://biomejs.dev/schemas/2.6.5/schema.json",
4
4
  "vcs": {
5
5
  "enabled": true,
6
6
  "clientKind": "git",
@@ -19,8 +19,8 @@
19
19
  "zod": "4.6.7"
20
20
  },
21
21
  "devDependencies": {
22
- "@biomejs/biome": "2.5.15",
23
- "@lousy-agents/mcp": "5.23.2",
22
+ "@biomejs/biome": "2.6.5",
23
+ "@lousy-agents/mcp": "5.23.3",
24
24
  "@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
25
25
  "@types/node": "26.6.6",
26
26
  "chance": "1.1.13",
package/dist/index.js CHANGED
@@ -4825,6 +4825,15 @@ function assertWindowsAclRemediationAllowed() {
4825
4825
 
4826
4826
  const runtimePlatform = process.versions.bun ? (0,external_node_os_.platform)() : undefined;
4827
4827
  const bunPosix = runtimePlatform === "darwin" || runtimePlatform === "linux" ? runtimePlatform : undefined;
4828
+ function nativeResult(input, result) {
4829
+ if (result.path !== undefined)
4830
+ return result.path;
4831
+ const errno = -(result.errno);
4832
+ const code = (0,external_node_util_.getSystemErrorName)(errno);
4833
+ throw Object.assign(new Error(`${code}: realpath '${input}'`), {
4834
+ code, errno, syscall: "realpath", path: input,
4835
+ });
4836
+ }
4828
4837
  function realpath_resolve(input, native) {
4829
4838
  if (native && process.platform === "win32") {
4830
4839
  try {
@@ -4871,14 +4880,7 @@ function realpath_resolve(input, native) {
4871
4880
  const binding = native_getNativeBinding();
4872
4881
  if (binding?.canonicalizePath) {
4873
4882
  // Ordinary resolution normalizes both the input and each expanded symlink.
4874
- const result = binding.canonicalizePath(input, !native);
4875
- if (result.path !== undefined)
4876
- return result.path;
4877
- const errno = -(result.errno);
4878
- const code = (0,external_node_util_.getSystemErrorName)(errno);
4879
- throw Object.assign(new Error(`${code}: realpath '${input}'`), {
4880
- code, errno, syscall: "realpath", path: input,
4881
- });
4883
+ return nativeResult(input, binding.canonicalizePath(input, !native));
4882
4884
  }
4883
4885
  if (getFsSafeNativeConfig().mode === "require") {
4884
4886
  throw new errors_FsSafeError("helper-unavailable", "native fs-safe canonicalization is unavailable");
@@ -4891,10 +4893,19 @@ function realpath_resolve(input, native) {
4891
4893
  const realpath_realpathSync = Object.assign((input) => realpath_resolve(input, false), {
4892
4894
  native: (input) => realpath_resolve(input, true),
4893
4895
  });
4894
- /** Async on Node; retain runtime-specific native canonicalization guarantees. */
4896
+ /** POSIX async canonicalization retains Bun's native path and record-lock semantics. */
4895
4897
  async function realpath_realpathNative(input) {
4896
- if (bunPosix)
4897
- return realpath_realpathSync.native(input);
4898
+ if (bunPosix) {
4899
+ if (input.includes("\0")) {
4900
+ throw Object.assign(new TypeError("realpath input must not contain null bytes"), { code: "ERR_INVALID_ARG_VALUE" });
4901
+ }
4902
+ const binding = native_getNativeBinding();
4903
+ if (binding?.canonicalizePathAsync)
4904
+ return nativeResult(input, await binding.canonicalizePathAsync(input, false));
4905
+ if (binding?.canonicalizePath || getFsSafeNativeConfig().mode === "require") {
4906
+ throw new errors_FsSafeError("helper-unavailable", "native fs-safe canonicalization is unavailable");
4907
+ }
4908
+ }
4898
4909
  try {
4899
4910
  return await promises_.realpath(input);
4900
4911
  }
@@ -5001,6 +5012,7 @@ function assertStatObservationSync(inspect, expected, initial, platform = proces
5001
5012
 
5002
5013
 
5003
5014
 
5015
+
5004
5016
  // Numeric metadata is retained for existing internal consumers; rounded IDs
5005
5017
  // must never become authority for a later comparison.
5006
5018
  const exactGuardIdentities = new WeakMap();
@@ -5108,7 +5120,15 @@ async function createNearestExistingDirectoryGuard(rootReal, targetPath, options
5108
5120
  }
5109
5121
  // Recovery receipts must retain every identity bit, including on Windows.
5110
5122
  async function directory_guard_inspectDirectoryIdentity(dir, expected) {
5111
- return directory_guard_inspectDirectoryIdentitySync(dir, expected);
5123
+ if (process.platform === "win32")
5124
+ return directory_guard_inspectDirectoryIdentitySync(dir, expected);
5125
+ const operationPath = directoryOperationPath(dir);
5126
+ return strict_file_identity_inspectFileIdentity(async () => {
5127
+ const stat = await promises_.lstat(operationPath, { bigint: true });
5128
+ if (stat.isSymbolicLink() || !stat.isDirectory())
5129
+ throw root_errors_directoryComponentNotDirectoryError();
5130
+ return stat;
5131
+ }, expected);
5112
5132
  }
5113
5133
  function directoryOperationPath(dir) {
5114
5134
  windows_path_alias_assertNoWindowsPathAlias(dir, "filesystem");
@@ -7756,7 +7776,7 @@ async function readBoundedAsync(maxBytes, readChunk, options = {}) {
7756
7776
  let total = 0;
7757
7777
  const { observeRegularFileSize, createLimitError } = options;
7758
7778
  const allocate = options.unpooled ? Buffer.allocUnsafeSlow : undefined;
7759
- const size = options.initialSize ?? observeRegularFileSize?.();
7779
+ const size = options.initialSize ?? await observeRegularFileSize?.();
7760
7780
  let buffer = size === undefined ? createScratchBuffer(maxBytes, allocate) : createInitialBuffer(maxBytes, size, allocate);
7761
7781
  if (size !== undefined) {
7762
7782
  const bytesRead = await readChunk(buffer, buffer.length);
@@ -7764,7 +7784,7 @@ async function readBoundedAsync(maxBytes, readChunk, options = {}) {
7764
7784
  return finishReadBuffer(buffer, 0, allocate);
7765
7785
  // Short reads can occur before EOF. Only use the size shortcut on this
7766
7786
  // initial read; virtual files can report zero or stale sizes thereafter.
7767
- const currentSize = bytesRead < buffer.length ? observeRegularFileSize?.() : undefined;
7787
+ const currentSize = bytesRead < buffer.length ? await observeRegularFileSize?.() : undefined;
7768
7788
  total = addReadBytes(total, bytesRead, maxBytes, createLimitError);
7769
7789
  if (currentSize !== undefined && currentSize > 0 && bytesRead >= currentSize)
7770
7790
  return finishReadBuffer(buffer, total, allocate);
@@ -7795,12 +7815,12 @@ function readFileHandleBoundedWithSize(handle, maxBytes, initialSize) {
7795
7815
  return (await handle.read(scratch, 0, length, null)).bytesRead;
7796
7816
  }, {
7797
7817
  initialSize,
7798
- observeRegularFileSize: fd === undefined ? undefined : () => regularFileSize(fd),
7818
+ observeRegularFileSize: fd === undefined ? undefined : () => regularFileSizeAsync(fd),
7799
7819
  });
7800
7820
  }
7801
7821
  function regularFileSize(fd) {
7802
7822
  try {
7803
- const stat = external_node_fs_.fstatSync(fd);
7823
+ const stat = fs.fstatSync(fd);
7804
7824
  return stat.isFile() && Number.isSafeInteger(stat.size) && stat.size >= 0
7805
7825
  ? stat.size : undefined;
7806
7826
  }
@@ -7809,6 +7829,17 @@ function regularFileSize(fd) {
7809
7829
  return undefined;
7810
7830
  }
7811
7831
  }
7832
+ async function regularFileSizeAsync(fd) {
7833
+ try {
7834
+ const stat = await new Promise((resolve, reject) => {
7835
+ external_node_fs_.fstat(fd, (error, value) => error ? reject(error) : resolve(value));
7836
+ });
7837
+ return stat.isFile() && Number.isSafeInteger(stat.size) && stat.size >= 0 ? stat.size : undefined;
7838
+ }
7839
+ catch {
7840
+ return undefined;
7841
+ }
7842
+ }
7812
7843
  function readDescriptorChunk(fd, scratch, length) {
7813
7844
  return new Promise((resolve, reject) => {
7814
7845
  fs.read(fd, scratch, 0, length, null, (error, bytesRead) => {
@@ -7825,7 +7856,7 @@ async function readFileDescriptorBounded(fd, maxBytes) {
7825
7856
  normalizeMaxBytes(maxBytes);
7826
7857
  return await readBoundedAsync(maxBytes, async (scratch, length) => {
7827
7858
  return await readDescriptorChunk(fd, scratch, length);
7828
- }, { observeRegularFileSize: () => regularFileSize(fd) });
7859
+ }, { observeRegularFileSize: () => regularFileSizeAsync(fd) });
7829
7860
  }
7830
7861
  function readBoundedSync(maxBytes, readChunk, options = {}) {
7831
7862
  byte_budget_normalizeMaxBytes(maxBytes);
@@ -12238,7 +12269,8 @@ function* traverseRootPath(params, { mode = "native", observation: observationOu
12238
12269
  windows_path_alias_assertNoWindowsPathAlias(rootPath);
12239
12270
  windows_path_alias_assertNoWindowsPathAlias(absolutePath);
12240
12271
  windows_path_alias_assertNoWindowsPathAlias(rootCanonicalPath);
12241
- observeRoot?.(rootCanonicalPath);
12272
+ if (observeRoot)
12273
+ yield* wait(observeRoot(rootCanonicalPath));
12242
12274
  const context = createLexicalTraversalContext(yield* prepareRootTraversal(input, rootPath, rootCanonicalPath, absolutePath, rawAbsolutePath, synchronous));
12243
12275
  const { state } = context;
12244
12276
  const observation = createLexicalTraversalObservation(context, observationOutput?.request);
@@ -12429,6 +12461,8 @@ function assertInsideBoundary(params) {
12429
12461
 
12430
12462
 
12431
12463
 
12464
+
12465
+
12432
12466
  const root_context_ensureTrailingSep = (value) => value.endsWith(external_node_path_.sep) ? value : value + external_node_path_.sep;
12433
12467
  function assertValidRootRelativePath(relativePath) {
12434
12468
  path_assertNoNulPathInput(relativePath, "relative path contains a NUL byte");
@@ -12452,21 +12486,24 @@ async function expandRelativePathWithHome(relativePath) {
12452
12486
  }
12453
12487
  const rawHome = process.env.HOME || process.env.USERPROFILE || external_node_os_.homedir();
12454
12488
  windows_path_alias_assertNoWindowsPathAlias(rawHome, "filesystem", "home path uses a Windows filesystem namespace alias");
12455
- if (cachedHomePath?.raw !== rawHome) {
12489
+ let home = cachedHomePath?.raw === rawHome ? cachedHomePath.real : undefined;
12490
+ if (home === undefined) {
12456
12491
  let realHome = rawHome;
12457
12492
  try {
12458
- realHome = realpath_realpathSync.native(windows_path_alias_pathForWindowsFilesystem(rawHome));
12493
+ const homePath = windows_path_alias_pathForWindowsFilesystem(rawHome);
12494
+ realHome = process.platform === "win32" ? realpath_realpathSync.native(homePath) : await realpath_realpathNative(homePath);
12459
12495
  }
12460
12496
  catch {
12461
12497
  // If the home dir cannot be canonicalized, keep lexical expansion behavior.
12462
12498
  }
12463
12499
  cachedHomePath = { raw: rawHome, real: realHome };
12500
+ home = realHome;
12464
12501
  }
12465
12502
  if (homeOnly) {
12466
- windows_path_alias_assertNoWindowsPathAlias(cachedHomePath.real, "filesystem", "home path uses a Windows filesystem namespace alias");
12467
- return cachedHomePath.real;
12503
+ windows_path_alias_assertNoWindowsPathAlias(home, "filesystem", "home path uses a Windows filesystem namespace alias");
12504
+ return home;
12468
12505
  }
12469
- const expanded = `${root_context_ensureTrailingSep(cachedHomePath.real)}${relativePath.slice(2)}`;
12506
+ const expanded = `${root_context_ensureTrailingSep(home)}${relativePath.slice(2)}`;
12470
12507
  windows_path_alias_assertNoWindowsPathAlias(expanded, "filesystem", "expanded path uses a Windows filesystem namespace alias");
12471
12508
  return expanded;
12472
12509
  }
@@ -12479,14 +12516,17 @@ async function resolveRootContext(rootDir) {
12479
12516
  let rootStat;
12480
12517
  let rootIdentity;
12481
12518
  try {
12482
- rootReal = realpath_realpathSync.native(windows_path_alias_pathForWindowsFilesystem(rootDir));
12519
+ const rootPath = windows_path_alias_pathForWindowsFilesystem(absolutePathWithRawSegments(rootDir));
12520
+ rootReal = process.platform === "win32" ? realpath_realpathSync.native(rootPath) : await realpath_realpathNative(rootPath);
12483
12521
  windows_path_alias_assertNoWindowsPathAlias(rootReal, "filesystem", "canonical root path uses a Windows filesystem namespace alias");
12484
- rootStat = await strict_file_identity_inspectFileIdentity(() => {
12485
- const stat = external_node_fs_.statSync(rootReal, { bigint: true });
12522
+ const inspect = (stat) => {
12486
12523
  if (!stat.isDirectory())
12487
12524
  throw new errors_FsSafeError("invalid-path", "root dir is not a directory");
12488
12525
  return stat;
12489
- });
12526
+ };
12527
+ rootStat = await strict_file_identity_inspectFileIdentity(() => process.platform === "win32"
12528
+ ? inspect(external_node_fs_.statSync(rootReal, { bigint: true }))
12529
+ : promises_.stat(rootReal, { bigint: true }).then(inspect));
12490
12530
  rootIdentity = { dev: rootStat.dev, ino: rootStat.ino };
12491
12531
  }
12492
12532
  catch (err) {
@@ -12546,7 +12586,15 @@ function root_context_assertRootIdentityCurrentSync(root, observe) {
12546
12586
  }
12547
12587
  }
12548
12588
  async function assertRootIdentityCurrent(root, observe) {
12549
- root_context_assertRootIdentityCurrentSync(root, observe);
12589
+ if (process.platform === "win32")
12590
+ return root_context_assertRootIdentityCurrentSync(root, observe);
12591
+ try {
12592
+ const stat = await directory_guard_inspectDirectoryIdentity(root.rootReal, { dev: root.rootIdentity.dev, ino: root.rootIdentity.ino });
12593
+ observe?.(stat);
12594
+ }
12595
+ catch (error) {
12596
+ throw rootPathChangedError(error instanceof Error ? error : undefined);
12597
+ }
12550
12598
  }
12551
12599
  /**
12552
12600
  * Observe the current Root with an exact, operation-local receipt.
@@ -19682,7 +19730,8 @@ async function recordPreOpenFileChange(error, handle, filePath, before, opened)
19682
19730
  return;
19683
19731
  try {
19684
19732
  await strict_file_identity_inspectFileIdentity(async () => before);
19685
- const current = await strict_file_identity_inspectFileIdentity(() => external_node_fs_.fstatSync(handle.fd, { bigint: true }), opened);
19733
+ const current = await strict_file_identity_inspectFileIdentity(() => process.platform === "win32"
19734
+ ? external_node_fs_.fstatSync(handle.fd, { bigint: true }) : handle.stat({ bigint: true }), opened);
19686
19735
  if (current.isFile() && [0n, 1n].includes(current.nlink) &&
19687
19736
  (before.dev !== current.dev || before.ino !== current.ino)) {
19688
19737
  // A stale pathname sample is not proof that its former inode was unlinked.
@@ -19698,7 +19747,8 @@ async function recordOpenedFileFailure(error, handle, filePath, identity) {
19698
19747
  !identity.isFile() || identity.nlink > 1n)
19699
19748
  return;
19700
19749
  try {
19701
- const current = await strict_file_identity_inspectFileIdentity(() => external_node_fs_.fstatSync(handle.fd, { bigint: true }), identity);
19750
+ const current = await strict_file_identity_inspectFileIdentity(() => process.platform === "win32"
19751
+ ? external_node_fs_.fstatSync(handle.fd, { bigint: true }) : handle.stat({ bigint: true }), identity);
19702
19752
  if (current.isFile() && current.nlink === 0n)
19703
19753
  recordFileObservationFailure(error, `unlinked:${filePath}`);
19704
19754
  }
@@ -19730,8 +19780,7 @@ async function openLocalFileDescriptor(filePath, options) {
19730
19780
  // Reject directories before opening so we never surface EISDIR to callers (e.g. tool
19731
19781
  // results that get sent to messaging channels). See openclaw/openclaw#31186.
19732
19782
  try {
19733
- preOpenStat = strict_file_identity_inspectFileIdentitySync(() => {
19734
- const stat = external_node_fs_.lstatSync(filePath, { bigint: true });
19783
+ const inspect = (stat) => {
19735
19784
  observedBeforeOpen = true;
19736
19785
  if (stat.isSymbolicLink() && options?.symlinks !== "follow-within-root") {
19737
19786
  throw new errors_FsSafeError("symlink", "symlink not allowed");
@@ -19740,7 +19789,10 @@ async function openLocalFileDescriptor(filePath, options) {
19740
19789
  throw new errors_FsSafeError("not-file", "not a file");
19741
19790
  }
19742
19791
  return stat;
19743
- });
19792
+ };
19793
+ preOpenStat = process.platform === "win32"
19794
+ ? strict_file_identity_inspectFileIdentitySync(() => inspect(external_node_fs_.lstatSync(filePath, { bigint: true })))
19795
+ : await strict_file_identity_inspectFileIdentity(async () => inspect(await promises_.lstat(filePath, { bigint: true })));
19744
19796
  }
19745
19797
  catch (err) {
19746
19798
  if (err instanceof errors_FsSafeError || observedBeforeOpen) {
@@ -19777,12 +19829,16 @@ async function openLocalFileDescriptor(filePath, options) {
19777
19829
  let openedIdentity;
19778
19830
  let identity;
19779
19831
  try {
19780
- identity = strict_file_identity_inspectFileIdentitySync(() => {
19781
- openedIdentity = external_node_fs_.fstatSync(handle.fd, { bigint: true });
19782
- if (!openedIdentity.isFile())
19832
+ const inspect = (stat) => {
19833
+ openedIdentity = stat;
19834
+ if (!stat.isFile())
19783
19835
  throw new errors_FsSafeError("not-file", "not a file");
19784
- return openedIdentity;
19785
- }, preOpenStat && !preOpenStat.isSymbolicLink() ? preOpenStat : undefined);
19836
+ return stat;
19837
+ };
19838
+ const expected = preOpenStat && !preOpenStat.isSymbolicLink() ? preOpenStat : undefined;
19839
+ identity = process.platform === "win32"
19840
+ ? strict_file_identity_inspectFileIdentitySync(() => inspect(external_node_fs_.fstatSync(handle.fd, { bigint: true })), expected)
19841
+ : await strict_file_identity_inspectFileIdentity(async () => inspect(await handle.stat({ bigint: true })), expected);
19786
19842
  }
19787
19843
  catch (error) {
19788
19844
  if (openedIdentity && [0n, 1n].includes(openedIdentity.nlink)) {
@@ -22683,6 +22739,8 @@ async function movePathNative(root, params, paths, overwrite = false) {
22683
22739
 
22684
22740
 
22685
22741
 
22742
+
22743
+
22686
22744
  function resolveFinalOpenedRealPath(filePath) {
22687
22745
  try {
22688
22746
  return realpath_realpathSync.native(filePath);
@@ -22706,6 +22764,12 @@ function inspectOpenedPathIdentitySync(filePath, symlinks) {
22706
22764
  }
22707
22765
  return stat;
22708
22766
  }
22767
+ async function inspectOpenedPathIdentity(filePath, symlinks) {
22768
+ const stat = await (symlinks === "follow-within-root" ? promises_.stat(filePath, { bigint: true }) : promises_.lstat(filePath, { bigint: true }));
22769
+ if (stat.isSymbolicLink() && symlinks !== "follow-within-root")
22770
+ throw new errors_FsSafeError("symlink", "symlink not allowed");
22771
+ return stat;
22772
+ }
22709
22773
  async function admitRootReadHandle(params) {
22710
22774
  try {
22711
22775
  if (params.hardlinks !== "allow" && params.opened.stat.nlink > 1) {
@@ -22714,14 +22778,20 @@ async function admitRootReadHandle(params) {
22714
22778
  if (params.beforeFinalFence) {
22715
22779
  await params.beforeFinalFence(params.filePath, params.opened.handle);
22716
22780
  }
22717
- try {
22718
- root_context_assertRootIdentityCurrentSync(params.root);
22781
+ function* admit() {
22782
+ const synchronous = process.platform === "win32";
22783
+ if (synchronous)
22784
+ root_context_assertRootIdentityCurrentSync(params.root);
22785
+ else
22786
+ yield* wait(assertRootIdentityCurrent(params.root));
22719
22787
  let realPath;
22720
22788
  try {
22721
- const current = strict_file_identity_inspectFileIdentitySync(() => inspectOpenedPathIdentitySync(params.filePath, params.symlinks), params.identity);
22789
+ const current = synchronous
22790
+ ? strict_file_identity_inspectFileIdentitySync(() => inspectOpenedPathIdentitySync(params.filePath, params.symlinks), params.identity)
22791
+ : yield* wait(strict_file_identity_inspectFileIdentity(() => inspectOpenedPathIdentity(params.filePath, params.symlinks), params.identity));
22722
22792
  if (params.hardlinks !== "allow" && current.nlink > 1n)
22723
22793
  throw hardlinkedPathNotAllowedError();
22724
- const canonicalPath = resolveFinalOpenedRealPath(params.filePath);
22794
+ const canonicalPath = synchronous ? resolveFinalOpenedRealPath(params.filePath) : yield* wait(realpath_realpathNative(params.filePath));
22725
22795
  windows_path_alias_assertNoWindowsPathAlias(canonicalPath, "filesystem", "resolved file path uses a Windows filesystem namespace alias");
22726
22796
  const admittedRealPath = root_boundary_admitPathInsideRoot({
22727
22797
  rootPath: params.root.rootReal,
@@ -22733,7 +22803,9 @@ async function admitRootReadHandle(params) {
22733
22803
  }
22734
22804
  // This is a fresh no-follow observation even when canonicalPath and
22735
22805
  // filePath have the same spelling; realpath may have raced a replacement.
22736
- const canonical = strict_file_identity_inspectFileIdentitySync(() => inspectOpenedPathIdentitySync(canonicalPath, undefined), params.identity);
22806
+ const canonical = synchronous
22807
+ ? strict_file_identity_inspectFileIdentitySync(() => inspectOpenedPathIdentitySync(canonicalPath, undefined), params.identity)
22808
+ : yield* wait(strict_file_identity_inspectFileIdentity(() => inspectOpenedPathIdentity(canonicalPath), params.identity));
22737
22809
  if (params.hardlinks !== "allow" && canonical.nlink > 1n)
22738
22810
  throw hardlinkedPathNotAllowedError();
22739
22811
  realPath = admittedRealPath.path;
@@ -22744,9 +22816,15 @@ async function admitRootReadHandle(params) {
22744
22816
  : error;
22745
22817
  }
22746
22818
  params.afterPathIdentityCheck?.(params.filePath, params.opened.handle);
22747
- root_context_assertRootIdentityCurrentSync(params.root);
22819
+ if (synchronous)
22820
+ root_context_assertRootIdentityCurrentSync(params.root);
22821
+ else
22822
+ yield* wait(assertRootIdentityCurrent(params.root));
22748
22823
  return { ...params.opened, realPath };
22749
22824
  }
22825
+ try {
22826
+ return process.platform === "win32" ? atomic_io_runSync(admit()) : await runAsync(admit());
22827
+ }
22750
22828
  catch (error) {
22751
22829
  if (params.identity.nlink <= 1n) {
22752
22830
  await recordOpenedFileFailure(error, params.opened.handle, params.filePath, params.identity);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lousy-agents/cli",
3
- "version": "5.23.3",
3
+ "version": "5.23.4",
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": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "root": true,
3
- "$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3
+ "$schema": "https://biomejs.dev/schemas/2.6.5/schema.json",
4
4
  "vcs": {
5
5
  "enabled": true,
6
6
  "clientKind": "git",
@@ -14,6 +14,16 @@
14
14
  "indentStyle": "space",
15
15
  "indentWidth": 4
16
16
  },
17
+ "markdown": {
18
+ "formatter": {
19
+ "enabled": false
20
+ }
21
+ },
22
+ "yaml": {
23
+ "formatter": {
24
+ "enabled": false
25
+ }
26
+ },
17
27
  "linter": {
18
28
  "enabled": true,
19
29
  "rules": {
@@ -21,9 +21,9 @@
21
21
  "react-dom": "19.3.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@biomejs/biome": "2.5.15",
24
+ "@biomejs/biome": "2.6.5",
25
25
  "@eslint/eslintrc": "3.3.7",
26
- "@lousy-agents/mcp": "5.23.2",
26
+ "@lousy-agents/mcp": "5.23.3",
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",
@@ -35,7 +35,7 @@
35
35
  "eslint": "10.14.0",
36
36
  "eslint-config-next": "16.4.5",
37
37
  "happy-dom": "21.0.4",
38
- "jsdom": "30.1.3",
38
+ "jsdom": "31.0.0",
39
39
  "typescript": "7.0.2",
40
40
  "vitest": "5.1.0",
41
41
  "whatwg-fetch": "3.6.20"