@lousy-agents/cli 5.22.1 → 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.
- package/api/copilot-with-fastify/.devcontainer/devcontainer.json +1 -1
- package/api/copilot-with-fastify/package-lock.json +14 -14
- package/api/copilot-with-fastify/package.json +3 -3
- package/cli/copilot-with-citty/.devcontainer/devcontainer.json +1 -1
- package/cli/copilot-with-citty/package.json +1 -1
- package/dist/index.js +88 -7
- 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.299"
|
|
14
14
|
},
|
|
15
15
|
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1.0.2": {
|
|
16
16
|
"packages": "yamllint, shellcheck",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@biomejs/biome": "2.5.15",
|
|
21
|
-
"@lousy-agents/mcp": "5.22.
|
|
21
|
+
"@lousy-agents/mcp": "5.22.2",
|
|
22
22
|
"@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
|
|
23
|
-
"@testcontainers/postgresql": "12.2.
|
|
23
|
+
"@testcontainers/postgresql": "12.2.1",
|
|
24
24
|
"@types/node": "24.19.2",
|
|
25
25
|
"chance": "1.1.13",
|
|
26
|
-
"testcontainers": "12.2.
|
|
26
|
+
"testcontainers": "12.2.1",
|
|
27
27
|
"tsx": "4.23.15",
|
|
28
28
|
"typescript": "7.0.2",
|
|
29
29
|
"vitest": "5.0.4"
|
|
@@ -958,9 +958,9 @@
|
|
|
958
958
|
}
|
|
959
959
|
},
|
|
960
960
|
"node_modules/@lousy-agents/mcp": {
|
|
961
|
-
"version": "5.22.
|
|
962
|
-
"resolved": "https://registry.npmjs.org/@lousy-agents/mcp/-/mcp-5.22.
|
|
963
|
-
"integrity": "sha512-
|
|
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": {
|
|
@@ -1428,13 +1428,13 @@
|
|
|
1428
1428
|
"peer": true
|
|
1429
1429
|
},
|
|
1430
1430
|
"node_modules/@testcontainers/postgresql": {
|
|
1431
|
-
"version": "12.2.
|
|
1432
|
-
"resolved": "https://registry.npmjs.org/@testcontainers/postgresql/-/postgresql-12.2.
|
|
1433
|
-
"integrity": "sha512-
|
|
1431
|
+
"version": "12.2.1",
|
|
1432
|
+
"resolved": "https://registry.npmjs.org/@testcontainers/postgresql/-/postgresql-12.2.1.tgz",
|
|
1433
|
+
"integrity": "sha512-MIbI5KjZ9M4SY4+xzxg/w4ZLBeV+Jd6ognXoWn7dh/mhIhBbn7ss0MiZHNg2XbCbu03BW9YQ9+H9xW8PFkJWaA==",
|
|
1434
1434
|
"dev": true,
|
|
1435
1435
|
"license": "MIT",
|
|
1436
1436
|
"dependencies": {
|
|
1437
|
-
"testcontainers": "^12.2.
|
|
1437
|
+
"testcontainers": "^12.2.1"
|
|
1438
1438
|
}
|
|
1439
1439
|
},
|
|
1440
1440
|
"node_modules/@types/chai": {
|
|
@@ -5493,9 +5493,9 @@
|
|
|
5493
5493
|
}
|
|
5494
5494
|
},
|
|
5495
5495
|
"node_modules/testcontainers": {
|
|
5496
|
-
"version": "12.2.
|
|
5497
|
-
"resolved": "https://registry.npmjs.org/testcontainers/-/testcontainers-12.2.
|
|
5498
|
-
"integrity": "sha512-
|
|
5496
|
+
"version": "12.2.1",
|
|
5497
|
+
"resolved": "https://registry.npmjs.org/testcontainers/-/testcontainers-12.2.1.tgz",
|
|
5498
|
+
"integrity": "sha512-JfbCyOvLdzatwgqUI3AvYCwRW0P5mCkKQVBPO8U5qSH1efC2kHvnfWmi9VHloy1rAFG2MEqWZObRH4bq0gU1kQ==",
|
|
5499
5499
|
"dev": true,
|
|
5500
5500
|
"license": "MIT",
|
|
5501
5501
|
"dependencies": {
|
|
@@ -5513,7 +5513,7 @@
|
|
|
5513
5513
|
"ssh-remote-port-forward": "^1.0.4",
|
|
5514
5514
|
"tar-fs": "^3.1.3",
|
|
5515
5515
|
"tmp": "^0.2.7",
|
|
5516
|
-
"undici": "^8.
|
|
5516
|
+
"undici": "^8.11.2"
|
|
5517
5517
|
},
|
|
5518
5518
|
"engines": {
|
|
5519
5519
|
"node": ">= 22.22"
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@biomejs/biome": "2.5.15",
|
|
32
|
-
"@lousy-agents/mcp": "5.22.
|
|
32
|
+
"@lousy-agents/mcp": "5.22.2",
|
|
33
33
|
"@modelcontextprotocol/server-sequential-thinking": "2026.8.31",
|
|
34
|
-
"@testcontainers/postgresql": "12.2.
|
|
34
|
+
"@testcontainers/postgresql": "12.2.1",
|
|
35
35
|
"@types/node": "24.19.2",
|
|
36
36
|
"chance": "1.1.13",
|
|
37
|
-
"testcontainers": "12.2.
|
|
37
|
+
"testcontainers": "12.2.1",
|
|
38
38
|
"tsx": "4.23.15",
|
|
39
39
|
"typescript": "7.0.2",
|
|
40
40
|
"vitest": "5.0.4"
|
|
@@ -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.299"
|
|
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
|
@@ -3053,7 +3053,7 @@ exports.basename = (path, { windows } = {}) => {
|
|
|
3053
3053
|
|
|
3054
3054
|
|
|
3055
3055
|
},
|
|
3056
|
-
|
|
3056
|
+
3699(__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);
|
|
@@ -4717,6 +4717,47 @@ function errorCauseOptions(error) {
|
|
|
4717
4717
|
|
|
4718
4718
|
// EXTERNAL MODULE: external "node:os"
|
|
4719
4719
|
var external_node_os_ = __webpack_require__(8161);
|
|
4720
|
+
;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/windows-appcontainer.js
|
|
4721
|
+
|
|
4722
|
+
|
|
4723
|
+
/** The native owner caches immutable primary-token membership across Workers. */
|
|
4724
|
+
function isWindowsAppContainer(binding) {
|
|
4725
|
+
if (!binding.isWindowsAppContainer)
|
|
4726
|
+
return undefined;
|
|
4727
|
+
try {
|
|
4728
|
+
const membership = binding.isWindowsAppContainer();
|
|
4729
|
+
if (typeof membership !== "boolean")
|
|
4730
|
+
throw new Error("Invalid AppContainer membership");
|
|
4731
|
+
return membership;
|
|
4732
|
+
}
|
|
4733
|
+
catch (cause) {
|
|
4734
|
+
throw new errors_FsSafeError("permission-unverified", "Windows process token membership could not be verified", { cause });
|
|
4735
|
+
}
|
|
4736
|
+
}
|
|
4737
|
+
function windows_appcontainer_assertWindowsHelperAllowed() {
|
|
4738
|
+
if (process.platform !== "win32")
|
|
4739
|
+
return;
|
|
4740
|
+
const binding = native_getNativeBinding();
|
|
4741
|
+
if (binding && isWindowsAppContainer(binding)) {
|
|
4742
|
+
// Current libuv can hang while creating child-process pipes in a lowbox.
|
|
4743
|
+
throw new errors_FsSafeError("helper-unavailable", "External Windows security helpers are unavailable inside an AppContainer");
|
|
4744
|
+
}
|
|
4745
|
+
}
|
|
4746
|
+
function assertWindowsAclRemediationAllowed() {
|
|
4747
|
+
if (process.platform !== "win32")
|
|
4748
|
+
return;
|
|
4749
|
+
let binding;
|
|
4750
|
+
try {
|
|
4751
|
+
binding = getNativeBinding();
|
|
4752
|
+
}
|
|
4753
|
+
catch {
|
|
4754
|
+
return;
|
|
4755
|
+
} // Command formatting remains available without an addon.
|
|
4756
|
+
if (binding && isWindowsAppContainer(binding)) {
|
|
4757
|
+
throw new FsSafeError("helper-unavailable", "Windows ACL reset commands are unavailable inside an AppContainer");
|
|
4758
|
+
}
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4720
4761
|
;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/realpath.js
|
|
4721
4762
|
|
|
4722
4763
|
|
|
@@ -4724,9 +4765,41 @@ var external_node_os_ = __webpack_require__(8161);
|
|
|
4724
4765
|
|
|
4725
4766
|
|
|
4726
4767
|
|
|
4768
|
+
|
|
4727
4769
|
const runtimePlatform = process.versions.bun ? (0,external_node_os_.platform)() : undefined;
|
|
4728
4770
|
const bunPosix = runtimePlatform === "darwin" || runtimePlatform === "linux" ? runtimePlatform : undefined;
|
|
4729
4771
|
function realpath_resolve(input, native) {
|
|
4772
|
+
if (native && process.platform === "win32") {
|
|
4773
|
+
try {
|
|
4774
|
+
return external_node_fs_.realpathSync.native(input);
|
|
4775
|
+
}
|
|
4776
|
+
catch (error) {
|
|
4777
|
+
if (error.code !== "EPERM" || error.syscall !== "realpath")
|
|
4778
|
+
throw error;
|
|
4779
|
+
let binding;
|
|
4780
|
+
try {
|
|
4781
|
+
binding = native_getNativeBinding();
|
|
4782
|
+
}
|
|
4783
|
+
catch {
|
|
4784
|
+
binding = undefined;
|
|
4785
|
+
}
|
|
4786
|
+
if (!binding || !isWindowsAppContainer(binding))
|
|
4787
|
+
throw error;
|
|
4788
|
+
if (!binding?.resolveWindowsCanonicalPath) {
|
|
4789
|
+
throw new errors_FsSafeError("helper-unavailable", "Windows canonicalization after a denied DOS-name query requires the native binding", { cause: error });
|
|
4790
|
+
}
|
|
4791
|
+
let resolved;
|
|
4792
|
+
try {
|
|
4793
|
+
resolved = binding.resolveWindowsCanonicalPath(input);
|
|
4794
|
+
}
|
|
4795
|
+
catch (cause) {
|
|
4796
|
+
throw new errors_FsSafeError("path-mismatch", "Windows canonical path cannot be verified safely", { cause });
|
|
4797
|
+
}
|
|
4798
|
+
if (resolved === null)
|
|
4799
|
+
throw error;
|
|
4800
|
+
return resolved;
|
|
4801
|
+
}
|
|
4802
|
+
}
|
|
4730
4803
|
if (bunPosix) {
|
|
4731
4804
|
// Bun 1.4.2 normalizes native path components and opens the leaf for reads.
|
|
4732
4805
|
// The Rust OS resolver preserves permissions, locks and physical spelling.
|
|
@@ -6428,6 +6501,7 @@ function shortPath(value) {
|
|
|
6428
6501
|
|
|
6429
6502
|
|
|
6430
6503
|
|
|
6504
|
+
|
|
6431
6505
|
const execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_.execFile);
|
|
6432
6506
|
const DEFAULT_PERMISSION_EXEC_TIMEOUT_MS = 30_000;
|
|
6433
6507
|
function formatPermissionErrorDetail(value) {
|
|
@@ -6605,6 +6679,7 @@ function getPermissionCommandFailure(error, command, durationMs) {
|
|
|
6605
6679
|
return { command, durationMs: Math.round(durationMs), ...detail };
|
|
6606
6680
|
}
|
|
6607
6681
|
async function executePermissionCommand(command, args, timeoutMs = DEFAULT_PERMISSION_EXEC_TIMEOUT_MS) {
|
|
6682
|
+
assertWindowsHelperAllowed();
|
|
6608
6683
|
const startedAt = performance.now();
|
|
6609
6684
|
try {
|
|
6610
6685
|
return (await execFileAsync(command, args, {
|
|
@@ -6628,6 +6703,7 @@ async function executePermissionCommand(command, args, timeoutMs = DEFAULT_PERMI
|
|
|
6628
6703
|
;// CONCATENATED MODULE: ../../node_modules/@openclaw/fs-safe/dist/windows-security-facts.js
|
|
6629
6704
|
|
|
6630
6705
|
const SID_RE = /^s-\d+-\d+(?:-\d+)+$/;
|
|
6706
|
+
const APP_CONTAINER_SID_RE = /^s-1-15-2(?:-\d+){7,}$/;
|
|
6631
6707
|
const SYSTEM_SID = "s-1-5-18";
|
|
6632
6708
|
const ADMINISTRATORS_SID = "s-1-5-32-544";
|
|
6633
6709
|
const WORLD_SIDS = new Set([
|
|
@@ -6662,6 +6738,7 @@ function validateAce(value, allowUnknownFlags) {
|
|
|
6662
6738
|
function validateDescriptor(value, allowUnknownFlags) {
|
|
6663
6739
|
if (!windows_security_facts_record(value) || typeof value.ownerSid !== "string" || !SID_RE.test(value.ownerSid) ||
|
|
6664
6740
|
typeof value.currentUserSid !== "string" || !SID_RE.test(value.currentUserSid) ||
|
|
6741
|
+
(value.currentAppContainerSid != null && (typeof value.currentAppContainerSid !== "string" || !APP_CONTAINER_SID_RE.test(value.currentAppContainerSid))) ||
|
|
6665
6742
|
typeof value.daclPresent !== "boolean" || typeof value.isLocal !== "boolean" ||
|
|
6666
6743
|
typeof value.aceListComplete !== "boolean" || !Array.isArray(value.unsupportedAceTypes) ||
|
|
6667
6744
|
!value.unsupportedAceTypes.every(uint32) || !Array.isArray(value.aces) ||
|
|
@@ -6687,6 +6764,8 @@ function summarize(facts) {
|
|
|
6687
6764
|
let groupReadable = false;
|
|
6688
6765
|
let groupWritable = false;
|
|
6689
6766
|
const trusted = new Set([facts.currentUserSid, SYSTEM_SID, ADMINISTRATORS_SID]);
|
|
6767
|
+
if (facts.currentAppContainerSid)
|
|
6768
|
+
trusted.add(facts.currentAppContainerSid);
|
|
6690
6769
|
for (const ace of facts.aces) {
|
|
6691
6770
|
if (ace.aceType !== "allow" || ace.flags.inheritOnly || trusted.has(ace.sid))
|
|
6692
6771
|
continue;
|
|
@@ -6755,6 +6834,7 @@ function windows_security_helper_explainWindowsSecurityHelperFailure(error) {
|
|
|
6755
6834
|
|
|
6756
6835
|
|
|
6757
6836
|
|
|
6837
|
+
|
|
6758
6838
|
const MAX_OUTPUT_BYTES = 1024 * 1024;
|
|
6759
6839
|
const TERMINATION_GRACE_MS = 1_000;
|
|
6760
6840
|
const FULL_IDENTITY = /^[0-9a-f]{16}:[0-9a-f]{32}$/;
|
|
@@ -6857,6 +6937,7 @@ function explainHelperFailure(error, file) {
|
|
|
6857
6937
|
}
|
|
6858
6938
|
}
|
|
6859
6939
|
function executeSync(operation, params) {
|
|
6940
|
+
assertWindowsHelperAllowed();
|
|
6860
6941
|
const { file, args, env } = windows_security_command_command(operation, params);
|
|
6861
6942
|
const startedAt = performance.now();
|
|
6862
6943
|
const result = spawnSync(file, args, {
|
|
@@ -6929,6 +7010,7 @@ function hasUnsettledWindowsSecurityCommand(error) {
|
|
|
6929
7010
|
}
|
|
6930
7011
|
function ignoreLateError() { }
|
|
6931
7012
|
async function execute(operation, params, request) {
|
|
7013
|
+
windows_appcontainer_assertWindowsHelperAllowed();
|
|
6932
7014
|
const selected = request ?? windows_security_command_command(operation, params);
|
|
6933
7015
|
const { file, args, env, input, timeoutMs = (/* inlined export .DEFAULT_PERMISSION_EXEC_TIMEOUT_MS */30000), maxOutputBytes = MAX_OUTPUT_BYTES } = selected;
|
|
6934
7016
|
const startedAt = performance.now();
|
|
@@ -8355,7 +8437,7 @@ class AtomicFile {
|
|
|
8355
8437
|
}
|
|
8356
8438
|
*readFile(sizeHint) {
|
|
8357
8439
|
if (typeof this.resource !== "number")
|
|
8358
|
-
return yield* atomic_io_wait(this.resource
|
|
8440
|
+
return yield* atomic_io_wait(readFileHandleBounded(this.resource, Infinity));
|
|
8359
8441
|
if (sizeHint === undefined)
|
|
8360
8442
|
return this.io.syncFs.readFileSync(this.resource);
|
|
8361
8443
|
const fd = this.resource;
|
|
@@ -18751,6 +18833,7 @@ function publishThroughPlaceholder(params, assertCurrent) {
|
|
|
18751
18833
|
|
|
18752
18834
|
|
|
18753
18835
|
|
|
18836
|
+
|
|
18754
18837
|
|
|
18755
18838
|
|
|
18756
18839
|
async function runPinnedStagedWrite(params, parentPath, parentGuard) {
|
|
@@ -18869,7 +18952,7 @@ async function runPinnedStagedWrite(params, parentPath, parentGuard) {
|
|
|
18869
18952
|
const expectedHash = sha256Hex(params.input.data, params.input.encoding);
|
|
18870
18953
|
readHandle = await promises_.open(targetPath, read_open_flags_resolveReadOpenFlags());
|
|
18871
18954
|
const readHandleStat = external_node_fs_.fstatSync(readHandle.fd, { bigint: true });
|
|
18872
|
-
const actualHash = sha256Hex(await readHandle
|
|
18955
|
+
const actualHash = sha256Hex(await readFileHandleBounded(readHandle, Infinity));
|
|
18873
18956
|
if (actualHash !== expectedHash) {
|
|
18874
18957
|
throw new errors_FsSafeError("path-mismatch", "fallback target changed during write");
|
|
18875
18958
|
}
|
|
@@ -19620,9 +19703,7 @@ async function read_opened_file_readOpenedFileSafely(params) {
|
|
|
19620
19703
|
if (maxBytes !== undefined && params.opened.stat.size > maxBytes) {
|
|
19621
19704
|
throw new errors_FsSafeError("too-large", `file exceeds limit of ${maxBytes} bytes (got ${params.opened.stat.size})`);
|
|
19622
19705
|
}
|
|
19623
|
-
const buffer = maxBytes
|
|
19624
|
-
? await params.opened.handle.readFile()
|
|
19625
|
-
: await readFileHandleBoundedWithSize(params.opened.handle, maxBytes, params.opened.stat.size);
|
|
19706
|
+
const buffer = await readFileHandleBoundedWithSize(params.opened.handle, maxBytes ?? Infinity, params.opened.stat.size);
|
|
19626
19707
|
return {
|
|
19627
19708
|
buffer,
|
|
19628
19709
|
containment: params.opened.containment,
|
|
@@ -110985,4 +111066,4 @@ if (installedChunkData !== 0) { // 0 means "already installed".'
|
|
|
110985
111066
|
// module factories are used so entry inlining is disabled
|
|
110986
111067
|
// startup
|
|
110987
111068
|
// Load entry module and return exports
|
|
110988
|
-
var __webpack_exports__ = __webpack_require__(
|
|
111069
|
+
var __webpack_exports__ = __webpack_require__(3699);
|
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.299"
|
|
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.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",
|