@lousy-agents/cli 5.22.18 → 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 +2 -2
- package/api/copilot-with-fastify/.nvmrc +1 -1
- package/api/copilot-with-fastify/package-lock.json +17 -17
- package/api/copilot-with-fastify/package.json +3 -3
- package/cli/copilot-with-citty/.devcontainer/devcontainer.json +2 -2
- package/cli/copilot-with-citty/.nvmrc +1 -1
- package/cli/copilot-with-citty/package.json +2 -2
- package/dist/index.js +30 -10
- package/package.json +1 -1
- package/ui/copilot-with-react/.devcontainer/devcontainer.json +2 -2
- package/ui/copilot-with-react/.nvmrc +1 -1
- package/ui/copilot-with-react/package.json +2 -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": "
|
|
6
|
+
"version": "26.13.0"
|
|
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.
|
|
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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
26.13.0
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"fastify": "5.12.7",
|
|
14
14
|
"kysely": "0.29.7",
|
|
15
15
|
"pino": "10.4.0",
|
|
16
|
-
"postgres": "
|
|
16
|
+
"postgres": "4.0.0",
|
|
17
17
|
"zod": "4.6.6"
|
|
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
|
-
"@types/node": "
|
|
24
|
+
"@types/node": "26.6.6",
|
|
25
25
|
"chance": "1.1.13",
|
|
26
26
|
"testcontainers": "12.2.1",
|
|
27
27
|
"tsx": "4.23.15",
|
|
@@ -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": {
|
|
@@ -1503,13 +1503,13 @@
|
|
|
1503
1503
|
"license": "MIT"
|
|
1504
1504
|
},
|
|
1505
1505
|
"node_modules/@types/node": {
|
|
1506
|
-
"version": "
|
|
1507
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-
|
|
1508
|
-
"integrity": "sha512-
|
|
1506
|
+
"version": "26.6.6",
|
|
1507
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz",
|
|
1508
|
+
"integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==",
|
|
1509
1509
|
"dev": true,
|
|
1510
1510
|
"license": "MIT",
|
|
1511
1511
|
"dependencies": {
|
|
1512
|
-
"undici-types": "
|
|
1512
|
+
"undici-types": "~8.9.0"
|
|
1513
1513
|
}
|
|
1514
1514
|
},
|
|
1515
1515
|
"node_modules/@types/ssh2": {
|
|
@@ -4634,12 +4634,12 @@
|
|
|
4634
4634
|
}
|
|
4635
4635
|
},
|
|
4636
4636
|
"node_modules/postgres": {
|
|
4637
|
-
"version": "
|
|
4638
|
-
"resolved": "https://registry.npmjs.org/postgres/-/postgres-
|
|
4639
|
-
"integrity": "sha512-
|
|
4637
|
+
"version": "4.0.0",
|
|
4638
|
+
"resolved": "https://registry.npmjs.org/postgres/-/postgres-4.0.0.tgz",
|
|
4639
|
+
"integrity": "sha512-kBh8qXtcvvIAc00DftQyOxz7M/3Zxww1tRMXZPLzipNXXl5PIzHml+9zB3Mrge2U8ldc0WF1ZdLp1iYQi7Kh3A==",
|
|
4640
4640
|
"license": "Unlicense",
|
|
4641
4641
|
"engines": {
|
|
4642
|
-
"node": ">=
|
|
4642
|
+
"node": ">=20"
|
|
4643
4643
|
},
|
|
4644
4644
|
"funding": {
|
|
4645
4645
|
"type": "individual",
|
|
@@ -5715,9 +5715,9 @@
|
|
|
5715
5715
|
}
|
|
5716
5716
|
},
|
|
5717
5717
|
"node_modules/undici-types": {
|
|
5718
|
-
"version": "
|
|
5719
|
-
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-
|
|
5720
|
-
"integrity": "sha512-
|
|
5718
|
+
"version": "8.9.0",
|
|
5719
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
|
|
5720
|
+
"integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
|
|
5721
5721
|
"dev": true,
|
|
5722
5722
|
"license": "MIT"
|
|
5723
5723
|
},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"fastify": "5.12.7",
|
|
22
22
|
"kysely": "0.29.7",
|
|
23
23
|
"pino": "10.4.0",
|
|
24
|
-
"postgres": "
|
|
24
|
+
"postgres": "4.0.0",
|
|
25
25
|
"zod": "4.6.6"
|
|
26
26
|
},
|
|
27
27
|
"overrides": {
|
|
@@ -29,10 +29,10 @@
|
|
|
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
|
-
"@types/node": "
|
|
35
|
+
"@types/node": "26.6.6",
|
|
36
36
|
"chance": "1.1.13",
|
|
37
37
|
"testcontainers": "12.2.1",
|
|
38
38
|
"tsx": "4.23.15",
|
|
@@ -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": "
|
|
6
|
+
"version": "26.13.0"
|
|
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.
|
|
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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
26.13.0
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@biomejs/biome": "2.5.15",
|
|
23
|
-
"@lousy-agents/mcp": "5.22.
|
|
23
|
+
"@lousy-agents/mcp": "5.22.19",
|
|
24
24
|
"@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
|
|
25
|
-
"@types/node": "
|
|
25
|
+
"@types/node": "26.6.6",
|
|
26
26
|
"chance": "1.1.13",
|
|
27
27
|
"tsx": "4.23.15",
|
|
28
28
|
"typescript": "7.0.2",
|
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
|
@@ -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": "
|
|
6
|
+
"version": "26.13.0"
|
|
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.
|
|
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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
26.13.0
|
|
@@ -23,11 +23,11 @@
|
|
|
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",
|
|
30
|
-
"@types/node": "
|
|
30
|
+
"@types/node": "26.6.6",
|
|
31
31
|
"@types/react": "19.3.0",
|
|
32
32
|
"@types/react-dom": "19.3.0",
|
|
33
33
|
"@vitejs/plugin-react": "6.1.2",
|