@lousy-agents/cli 5.22.10 → 5.22.12

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.
@@ -3,14 +3,14 @@
3
3
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04@sha256:4bcb1b466771b1ba1ea110e2a27daea2f6093f9527fb75ee59703ec89b5561cb",
4
4
  "features": {
5
5
  "ghcr.io/devcontainers/features/node:1.7.1": {
6
- "version": "24.22.0"
6
+ "version": "24.22.1"
7
7
  },
8
8
  "ghcr.io/devcontainers/features/github-cli:1.1.0": {
9
9
  "version": "latest"
10
10
  },
11
11
  "ghcr.io/devcontainers/features/copilot-cli:1.0.0": {},
12
12
  "ghcr.io/anthropics/devcontainer-features/claude-code:1": {
13
- "version": "v2.1.302"
13
+ "version": "v2.1.306"
14
14
  },
15
15
  "ghcr.io/rocker-org/devcontainer-features/apt-packages:1.0.2": {
16
16
  "packages": "yamllint, shellcheck",
@@ -1 +1 @@
1
- 24.22.0
1
+ 24.22.1
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@biomejs/biome": "2.5.15",
21
- "@lousy-agents/mcp": "5.22.9",
21
+ "@lousy-agents/mcp": "5.22.11",
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.9",
962
- "resolved": "https://registry.npmjs.org/@lousy-agents/mcp/-/mcp-5.22.9.tgz",
963
- "integrity": "sha512-fLG1xRrPXxD/Iq0DVZDGmmeez+zGJnn+0rdSAdrZTVssFJXkEhQs5vSWF2CvYalAfWQn5ob3addU/DBlPdFkrg==",
961
+ "version": "5.22.11",
962
+ "resolved": "https://registry.npmjs.org/@lousy-agents/mcp/-/mcp-5.22.11.tgz",
963
+ "integrity": "sha512-yvnQNgvmL9z26Yc2ogw3wjunHFfdopyLjFX8mDtitZl7eotaW0bpe2fVURTdtoaHZPPhMlBdPex2s747yQm+oQ==",
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.9",
32
+ "@lousy-agents/mcp": "5.22.11",
33
33
  "@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
34
34
  "@testcontainers/postgresql": "12.2.1",
35
35
  "@types/node": "24.19.2",
@@ -3,14 +3,14 @@
3
3
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04@sha256:4bcb1b466771b1ba1ea110e2a27daea2f6093f9527fb75ee59703ec89b5561cb",
4
4
  "features": {
5
5
  "ghcr.io/devcontainers/features/node:1.7.1": {
6
- "version": "24.22.0"
6
+ "version": "24.22.1"
7
7
  },
8
8
  "ghcr.io/devcontainers/features/github-cli:1.1.0": {
9
9
  "version": "latest"
10
10
  },
11
11
  "ghcr.io/devcontainers/features/copilot-cli:1.0.0": {},
12
12
  "ghcr.io/anthropics/devcontainer-features/claude-code:1": {
13
- "version": "v2.1.302"
13
+ "version": "v2.1.306"
14
14
  },
15
15
  "ghcr.io/rocker-org/devcontainer-features/apt-packages:1.0.2": {
16
16
  "packages": "yamllint, shellcheck",
@@ -1 +1 @@
1
- 24.22.0
1
+ 24.22.1
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@biomejs/biome": "2.5.15",
23
- "@lousy-agents/mcp": "5.22.9",
23
+ "@lousy-agents/mcp": "5.22.11",
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
@@ -3053,7 +3053,7 @@ exports.basename = (path, { windows } = {}) => {
3053
3053
 
3054
3054
 
3055
3055
  },
3056
- 3699(__unused_rspack_module, __unused_rspack___webpack_exports__, __webpack_require__) {
3056
+ 2879(__unused_rspack_module, __unused_rspack___webpack_exports__, __webpack_require__) {
3057
3057
  // NAMESPACE OBJECT: ../../node_modules/micromark/lib/constructs.js
3058
3058
  var constructs_namespaceObject = {};
3059
3059
  __webpack_require__.r(constructs_namespaceObject);
@@ -3979,6 +3979,39 @@ async function transferFileHandleCore(source, target, sizeHint, maxBytes, target
3979
3979
  }
3980
3980
  }
3981
3981
 
3982
+ // EXTERNAL MODULE: external "node:os"
3983
+ var external_node_os_ = __webpack_require__(8161);
3984
+ ;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/error-detail.js
3985
+
3986
+
3987
+ const UNSAFE_ERROR_DETAIL_CHARACTERS = /[\u0000-\u001f\u007f-\u009f\u2028\u2029]/gu;
3988
+ function formatErrorDetail(value) {
3989
+ return value.replace(UNSAFE_ERROR_DETAIL_CHARACTERS, (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, "0")}`);
3990
+ }
3991
+ function shortPath(value) {
3992
+ const home = external_node_os_.homedir();
3993
+ const prefix = home.endsWith(external_node_path_.sep) ? home : `${home}${external_node_path_.sep}`;
3994
+ const shortened = value === home ? "~"
3995
+ : value.startsWith(prefix) ? `~${external_node_path_.sep}${value.slice(prefix.length)}` : value;
3996
+ return formatErrorDetail(shortened);
3997
+ }
3998
+
3999
+ ;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/file-open-error.js
4000
+
4001
+ /** Enrich only an attempted open whose absolute pathname is known by its owner. */
4002
+ function annotateReadOnlyOpenError(error, filePath) {
4003
+ if (!(error instanceof Error) || error.code !== "EROFS")
4004
+ return;
4005
+ // Keep the original error, code and errno, even if a caller froze its diagnostics.
4006
+ try {
4007
+ const failure = error;
4008
+ failure.path = filePath;
4009
+ failure.syscall = "open";
4010
+ failure.message = `EROFS: read-only filesystem, open '${formatErrorDetail(filePath)}'`;
4011
+ }
4012
+ catch { /* Diagnostics must not replace the I/O failure. */ }
4013
+ }
4014
+
3982
4015
  ;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/copy-file-input.js
3983
4016
 
3984
4017
 
@@ -3987,6 +4020,7 @@ async function transferFileHandleCore(source, target, sizeHint, maxBytes, target
3987
4020
 
3988
4021
 
3989
4022
 
4023
+
3990
4024
  function resolveFileCopyCloneMode(mode) {
3991
4025
  const clone = resolveCopyCloneMode(mode, "never");
3992
4026
  if (clone === "always" && !native_getNativeBinding()?.copyFileExclusive) {
@@ -4009,7 +4043,7 @@ async function writeCopyFileToFd(fd, input, maxBytes, assertBeforeMutation) {
4009
4043
  maxBytes, sizeHint: input.size, signal: input.signal, assertBeforeMutation,
4010
4044
  });
4011
4045
  }
4012
- async function createNativeCopyFile(native, input, parentFd, basename, maxBytes) {
4046
+ async function createNativeCopyFile(native, input, parentFd, basename, maxBytes, targetPath) {
4013
4047
  input.signal?.throwIfAborted();
4014
4048
  const copier = selectNativeBinding(native, "copyFileExclusive");
4015
4049
  if (!copier) {
@@ -4025,6 +4059,7 @@ async function createNativeCopyFile(native, input, parentFd, basename, maxBytes)
4025
4059
  return await copier.copyFileExclusive(input.handle.fd, parentFd, basename, input.clone, maxBytes !== undefined && Number.isFinite(maxBytes) ? maxBytes : undefined, nativeSignal);
4026
4060
  }
4027
4061
  catch (error) {
4062
+ annotateReadOnlyOpenError(error, targetPath);
4028
4063
  const code = error?.code;
4029
4064
  if (code === "Cancelled" || code === "ABORT_ERR")
4030
4065
  input.signal?.throwIfAborted();
@@ -4726,8 +4761,6 @@ function errorCauseOptions(error) {
4726
4761
  return { cause: error instanceof Error ? error : undefined };
4727
4762
  }
4728
4763
 
4729
- // EXTERNAL MODULE: external "node:os"
4730
- var external_node_os_ = __webpack_require__(8161);
4731
4764
  ;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/windows-appcontainer.js
4732
4765
 
4733
4766
 
@@ -6491,21 +6524,6 @@ function __resetNativeFallbackWarningsForTest() {
6491
6524
  var external_node_child_process_ = __webpack_require__(1421);
6492
6525
  // EXTERNAL MODULE: external "node:url"
6493
6526
  var external_node_url_ = __webpack_require__(3136);
6494
- ;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/error-detail.js
6495
-
6496
-
6497
- const UNSAFE_ERROR_DETAIL_CHARACTERS = /[\u0000-\u001f\u007f-\u009f\u2028\u2029]/gu;
6498
- function formatErrorDetail(value) {
6499
- return value.replace(UNSAFE_ERROR_DETAIL_CHARACTERS, (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, "0")}`);
6500
- }
6501
- function shortPath(value) {
6502
- const home = external_node_os_.homedir();
6503
- const prefix = home.endsWith(external_node_path_.sep) ? home : `${home}${external_node_path_.sep}`;
6504
- const shortened = value === home ? "~"
6505
- : value.startsWith(prefix) ? `~${external_node_path_.sep}${value.slice(prefix.length)}` : value;
6506
- return formatErrorDetail(shortened);
6507
- }
6508
-
6509
6527
  ;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/permission-exec.js
6510
6528
 
6511
6529
 
@@ -12703,6 +12721,7 @@ var root_create_native_disposeResources = (undefined && undefined.__disposeResou
12703
12721
 
12704
12722
 
12705
12723
 
12724
+
12706
12725
 
12707
12726
 
12708
12727
  function rootWriteQueueKey(root, relativePath) {
@@ -13113,6 +13132,7 @@ async function tryOpenCreateRootNative(params) {
13113
13132
  catch (error) {
13114
13133
  if (hasNodeErrorCode(error, "EEXIST") && typeof error === "object" && error !== null)
13115
13134
  nativeCreateCollisions.add(error);
13135
+ annotateReadOnlyOpenError(error, params.target);
13116
13136
  throw error;
13117
13137
  }
13118
13138
  let rawOpen = true;
@@ -15172,6 +15192,7 @@ function syncFileBestEffortSync(fd, fsModule = external_node_fs_) {
15172
15192
 
15173
15193
 
15174
15194
 
15195
+
15175
15196
  function nativeOpenFlags(flags) {
15176
15197
  const closeOnExec = external_node_fs_.constants.O_CLOEXEC;
15177
15198
  return (flags |
@@ -15224,6 +15245,7 @@ async function createNativeExclusiveFile(targetPath, mode) {
15224
15245
  if (process.platform === "win32" && openError.code === "EPERM") {
15225
15246
  openError.path = targetPath;
15226
15247
  }
15248
+ annotateReadOnlyOpenError(error, targetPath);
15227
15249
  throw error;
15228
15250
  }
15229
15251
  fd = opened.fd;
@@ -15463,6 +15485,7 @@ async function settleStagedFile(params) {
15463
15485
 
15464
15486
 
15465
15487
 
15488
+
15466
15489
 
15467
15490
 
15468
15491
  function closeWriteFd(closeFd, fd) {
@@ -15529,7 +15552,7 @@ async function runPinnedWriteWindows(binding, params, root, parentFd, parentGuar
15529
15552
  tempName = `.fs-safe-${(0,external_node_crypto_.randomUUID)()}.tmp`;
15530
15553
  params.assertBeforeMutation?.();
15531
15554
  const copied = params.input.kind === "file" && !params.private
15532
- ? await createNativeCopyFile(binding, params.input, parentFd, tempName, params.maxBytes)
15555
+ ? await createNativeCopyFile(binding, params.input, parentFd, tempName, params.maxBytes, external_node_path_.join(parentPath, tempName))
15533
15556
  : undefined;
15534
15557
  if (params.private) {
15535
15558
  const parentIdentity = external_node_fs_.fstatSync(parentFd, { bigint: true });
@@ -15548,7 +15571,13 @@ async function runPinnedWriteWindows(binding, params, root, parentFd, parentGuar
15548
15571
  tempFd = copied.fd;
15549
15572
  }
15550
15573
  else {
15551
- tempFd = binding.openBeneath(parentFd, tempName, nativeOpenFlags(external_node_fs_.constants.O_WRONLY | external_node_fs_.constants.O_CREAT | external_node_fs_.constants.O_EXCL)).fd;
15574
+ try {
15575
+ tempFd = binding.openBeneath(parentFd, tempName, nativeOpenFlags(external_node_fs_.constants.O_WRONLY | external_node_fs_.constants.O_CREAT | external_node_fs_.constants.O_EXCL)).fd;
15576
+ }
15577
+ catch (error) {
15578
+ annotateReadOnlyOpenError(error, external_node_path_.join(parentPath, tempName));
15579
+ throw error;
15580
+ }
15552
15581
  }
15553
15582
  const verificationIdentity = strict_file_identity_inspectFileIdentitySync(() => external_node_fs_.fstatSync(tempFd, { bigint: true }));
15554
15583
  tempIdentity = verificationIdentity;
@@ -15818,6 +15847,7 @@ var native_staged_file_disposeResources = (undefined && undefined.__disposeResou
15818
15847
 
15819
15848
 
15820
15849
 
15850
+
15821
15851
  function assertNativeStaging(binding) {
15822
15852
  if ([
15823
15853
  binding.closeOwnedFd,
@@ -16027,14 +16057,20 @@ class NativeStagedFile {
16027
16057
  assertDarwinCreationAcl(this.#owner.parentFd, "file");
16028
16058
  // Native copying populates its new file before returning its descriptor.
16029
16059
  const copied = input.kind === "file" && !this.#verifyMode
16030
- ? await createNativeCopyFile(this.#owner.binding, input, this.#owner.parentFd, this.#owner.name, maxBytes)
16060
+ ? await createNativeCopyFile(this.#owner.binding, input, this.#owner.parentFd, this.#owner.name, maxBytes, external_node_path_.join(this.#owner.directory.realPath, this.#owner.name))
16031
16061
  : undefined;
16032
16062
  state.fileFd = copied?.fd;
16033
16063
  if (state.fileFd === undefined) {
16034
16064
  this.#assertBeforeMutation?.();
16035
16065
  if (this.#private)
16036
16066
  assertDarwinCreationAcl(this.#owner.parentFd, "file");
16037
- state.fileFd = this.#owner.binding.createStagedFile(this.#owner.parentFd, this.#owner.name);
16067
+ try {
16068
+ state.fileFd = this.#owner.binding.createStagedFile(this.#owner.parentFd, this.#owner.name);
16069
+ }
16070
+ catch (error) {
16071
+ annotateReadOnlyOpenError(error, external_node_path_.join(this.#owner.directory.realPath, this.#owner.name));
16072
+ throw error;
16073
+ }
16038
16074
  }
16039
16075
  const fd = state.fileFd;
16040
16076
  if (input.kind === "file")
@@ -111101,4 +111137,4 @@ if (installedChunkData !== 0) { // 0 means "already installed".'
111101
111137
  // module factories are used so entry inlining is disabled
111102
111138
  // startup
111103
111139
  // Load entry module and return exports
111104
- var __webpack_exports__ = __webpack_require__(3699);
111140
+ var __webpack_exports__ = __webpack_require__(2879);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lousy-agents/cli",
3
- "version": "5.22.10",
3
+ "version": "5.22.12",
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": {
@@ -3,14 +3,14 @@
3
3
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04@sha256:4bcb1b466771b1ba1ea110e2a27daea2f6093f9527fb75ee59703ec89b5561cb",
4
4
  "features": {
5
5
  "ghcr.io/devcontainers/features/node:1.7.1": {
6
- "version": "24.22.0"
6
+ "version": "24.22.1"
7
7
  },
8
8
  "ghcr.io/devcontainers/features/github-cli:1.1.0": {
9
9
  "version": "latest"
10
10
  },
11
11
  "ghcr.io/devcontainers/features/copilot-cli:1.0.0": {},
12
12
  "ghcr.io/anthropics/devcontainer-features/claude-code:1": {
13
- "version": "v2.1.302"
13
+ "version": "v2.1.306"
14
14
  },
15
15
  "ghcr.io/rocker-org/devcontainer-features/apt-packages:1.0.2": {
16
16
  "packages": "libnss3, libnspr4, libatk1.0-0t64, libatk-bridge2.0-0t64, libcups2t64, libdrm2, libdbus-1-3, libatspi2.0-0t64, libxcomposite1, libxdamage1, libxfixes3, libxrandr2, libgbm1, libxkbcommon0, libasound2t64, yamllint, shellcheck",
@@ -1 +1 @@
1
- 24.22.0
1
+ 24.22.1
@@ -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.9",
26
+ "@lousy-agents/mcp": "5.22.11",
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",
@@ -34,7 +34,7 @@
34
34
  "@vitest/ui": "5.0.5",
35
35
  "eslint": "10.13.0",
36
36
  "eslint-config-next": "16.4.2",
37
- "happy-dom": "21.0.3",
37
+ "happy-dom": "21.0.4",
38
38
  "jsdom": "30.1.3",
39
39
  "typescript": "7.0.2",
40
40
  "vitest": "5.0.5",