@lousy-agents/cli 5.22.19 → 5.22.20
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/api/copilot-with-fastify/.devcontainer/devcontainer.json +1 -1
- package/api/copilot-with-fastify/package-lock.json +4 -4
- package/api/copilot-with-fastify/package.json +1 -1
- package/cli/copilot-with-citty/.devcontainer/devcontainer.json +1 -1
- package/cli/copilot-with-citty/package.json +1 -1
- package/dist/index.js +30 -10
- package/package.json +1 -1
- package/ui/copilot-with-react/.devcontainer/devcontainer.json +1 -1
- package/ui/copilot-with-react/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
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.
|
|
13
|
+
"version": "v2.1.314"
|
|
14
14
|
},
|
|
15
15
|
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1.0.2": {
|
|
16
16
|
"packages": "yamllint, shellcheck",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@biomejs/biome": "2.5.15",
|
|
21
|
-
"@lousy-agents/mcp": "5.22.
|
|
21
|
+
"@lousy-agents/mcp": "5.22.19",
|
|
22
22
|
"@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
|
|
23
23
|
"@testcontainers/postgresql": "12.2.1",
|
|
24
24
|
"@types/node": "26.6.6",
|
|
@@ -974,9 +974,9 @@
|
|
|
974
974
|
}
|
|
975
975
|
},
|
|
976
976
|
"node_modules/@lousy-agents/mcp": {
|
|
977
|
-
"version": "5.22.
|
|
978
|
-
"resolved": "https://registry.npmjs.org/@lousy-agents/mcp/-/mcp-5.22.
|
|
979
|
-
"integrity": "sha512-
|
|
977
|
+
"version": "5.22.19",
|
|
978
|
+
"resolved": "https://registry.npmjs.org/@lousy-agents/mcp/-/mcp-5.22.19.tgz",
|
|
979
|
+
"integrity": "sha512-UPlgf6dg/t11P5iQTzpTebzu9RGR//QPvY63yqXiVOcKZg1hepOJyi2Z9M40urIqaZibR0vbmns+HcSoA0WbPg==",
|
|
980
980
|
"dev": true,
|
|
981
981
|
"license": "BSD-2-Clause-Patent",
|
|
982
982
|
"dependencies": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@biomejs/biome": "2.5.15",
|
|
32
|
-
"@lousy-agents/mcp": "5.22.
|
|
32
|
+
"@lousy-agents/mcp": "5.22.19",
|
|
33
33
|
"@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
|
|
34
34
|
"@testcontainers/postgresql": "12.2.1",
|
|
35
35
|
"@types/node": "26.6.6",
|
|
@@ -10,7 +10,7 @@
|
|
|
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.
|
|
13
|
+
"version": "v2.1.314"
|
|
14
14
|
},
|
|
15
15
|
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1.0.2": {
|
|
16
16
|
"packages": "yamllint, shellcheck",
|
package/dist/index.js
CHANGED
|
@@ -3084,6 +3084,7 @@ const OPERATIONAL_CODE_VALUES = [
|
|
|
3084
3084
|
"not-empty",
|
|
3085
3085
|
"not-found",
|
|
3086
3086
|
"not-removable",
|
|
3087
|
+
"permission-denied",
|
|
3087
3088
|
"permission-unverified",
|
|
3088
3089
|
"read-failed",
|
|
3089
3090
|
"timeout",
|
|
@@ -4634,6 +4635,15 @@ function fileNotFoundError(cause, details) {
|
|
|
4634
4635
|
function root_errors_outsideWorkspaceError() {
|
|
4635
4636
|
return new errors_FsSafeError("outside-workspace", "file is outside workspace root");
|
|
4636
4637
|
}
|
|
4638
|
+
/** Classify raw traversal denials without disguising an established policy failure. */
|
|
4639
|
+
function pathTraversalPermissionError(error, targetPath) {
|
|
4640
|
+
if (error instanceof errors_FsSafeError)
|
|
4641
|
+
return error.code === "permission-denied" ? error : undefined;
|
|
4642
|
+
if (!hasNodeErrorCode(error, "EACCES") && !hasNodeErrorCode(error, "EPERM"))
|
|
4643
|
+
return;
|
|
4644
|
+
const deniedPath = path_isNodeError(error) && typeof error.path === "string" ? error.path : targetPath;
|
|
4645
|
+
return new errors_FsSafeError("permission-denied", `permission denied while resolving ${deniedPath}`, errorCauseOptions(error));
|
|
4646
|
+
}
|
|
4637
4647
|
function rootPathChangedError(cause) {
|
|
4638
4648
|
return new errors_FsSafeError("path-mismatch", "root path changed during operation", { cause });
|
|
4639
4649
|
}
|
|
@@ -12560,6 +12570,9 @@ async function resolvePathInRoot(root, relativePath, options) {
|
|
|
12560
12570
|
}
|
|
12561
12571
|
}
|
|
12562
12572
|
catch (error) {
|
|
12573
|
+
const permissionError = pathTraversalPermissionError(error, rawAbsolutePath);
|
|
12574
|
+
if (permissionError)
|
|
12575
|
+
throw permissionError;
|
|
12563
12576
|
if (error instanceof errors_FsSafeError && error.code === "symlink") {
|
|
12564
12577
|
throw error;
|
|
12565
12578
|
}
|
|
@@ -15020,6 +15033,9 @@ async function resolveGuardedWritePathInRoot(root, params) {
|
|
|
15020
15033
|
});
|
|
15021
15034
|
}
|
|
15022
15035
|
catch (error) {
|
|
15036
|
+
const permissionError = pathTraversalPermissionError(error, resolvedPath.resolved);
|
|
15037
|
+
if (permissionError)
|
|
15038
|
+
throw permissionError;
|
|
15023
15039
|
throw new errors_FsSafeError("path-alias", "path alias escape blocked", errorCauseOptions(error));
|
|
15024
15040
|
}
|
|
15025
15041
|
}
|
|
@@ -17064,7 +17080,6 @@ async function removeStaleSidecarLockIfAllowed(params) {
|
|
|
17064
17080
|
}
|
|
17065
17081
|
|
|
17066
17082
|
;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js
|
|
17067
|
-
|
|
17068
17083
|
const sidecar_lock_policy_MAX_TIMER_DELAY_MS = 2 ** 31 - 1;
|
|
17069
17084
|
function assertFiniteNonNegative(value, label) {
|
|
17070
17085
|
if (!Number.isFinite(value) || value < 0) {
|
|
@@ -17166,16 +17181,16 @@ function sidecarLockPayloadCreatedAtMs(payload) {
|
|
|
17166
17181
|
const createdAtMs = Date.parse(createdAt);
|
|
17167
17182
|
return Number.isFinite(createdAtMs) ? createdAtMs : null;
|
|
17168
17183
|
}
|
|
17169
|
-
|
|
17170
|
-
const createdAtMs = sidecarLockPayloadCreatedAtMs(
|
|
17184
|
+
function defaultSidecarLockShouldReclaim(snapshot, staleMs, nowMs) {
|
|
17185
|
+
const createdAtMs = sidecarLockPayloadCreatedAtMs(snapshot.payload);
|
|
17171
17186
|
if (createdAtMs !== null)
|
|
17172
|
-
return
|
|
17173
|
-
|
|
17174
|
-
return params.nowMs - external_node_fs_.statSync(params.lockPath).mtimeMs > params.staleMs;
|
|
17175
|
-
}
|
|
17176
|
-
catch {
|
|
17187
|
+
return nowMs - createdAtMs > staleMs;
|
|
17188
|
+
if (!snapshot.stat)
|
|
17177
17189
|
return true;
|
|
17178
|
-
|
|
17190
|
+
// A released pathname may already name another owner; age only the admitted record.
|
|
17191
|
+
const mtimeMs = "mtimeNs" in snapshot.stat
|
|
17192
|
+
? Number(snapshot.stat.mtimeNs) / 1e6 : snapshot.stat.mtimeMs;
|
|
17193
|
+
return nowMs - mtimeMs > staleMs;
|
|
17179
17194
|
}
|
|
17180
17195
|
|
|
17181
17196
|
;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-parser.js
|
|
@@ -17393,12 +17408,14 @@ async function handleStaleSidecarAdmission(params) {
|
|
|
17393
17408
|
return;
|
|
17394
17409
|
throw error;
|
|
17395
17410
|
}
|
|
17396
|
-
const shouldReclaim = staleOptions.shouldReclaim
|
|
17411
|
+
const shouldReclaim = staleOptions.shouldReclaim;
|
|
17397
17412
|
let reclaim;
|
|
17398
17413
|
try {
|
|
17399
17414
|
reclaim = await admission.run(async () => {
|
|
17400
17415
|
assertUnheld();
|
|
17401
17416
|
try {
|
|
17417
|
+
if (!shouldReclaim)
|
|
17418
|
+
return defaultSidecarLockShouldReclaim(snapshot, params.staleMs, Date.now());
|
|
17402
17419
|
return await Reflect.apply(shouldReclaim, undefined, [{
|
|
17403
17420
|
lockPath,
|
|
17404
17421
|
normalizedTargetPath,
|
|
@@ -24137,6 +24154,9 @@ async function resolvePinnedRootPathInRoot(root, params) {
|
|
|
24137
24154
|
resolved = await (params.removalReceipts ? resolveRootPathForRemoval(resolution, params.removalReceipts) : root_path_resolveRootPath(resolution));
|
|
24138
24155
|
}
|
|
24139
24156
|
catch (err) {
|
|
24157
|
+
const permissionError = pathTraversalPermissionError(err, params.relativePath);
|
|
24158
|
+
if (permissionError)
|
|
24159
|
+
throw permissionError;
|
|
24140
24160
|
if (err instanceof errors_FsSafeError && err.code === "symlink")
|
|
24141
24161
|
throw err;
|
|
24142
24162
|
throw new errors_FsSafeError("path-alias", "path alias escape blocked", { cause: err });
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
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.
|
|
13
|
+
"version": "v2.1.314"
|
|
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",
|
|
@@ -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.
|
|
26
|
+
"@lousy-agents/mcp": "5.22.19",
|
|
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",
|