local-commander-agent 0.3.40 → 0.3.42
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/CHANGELOG.md +17 -0
- package/bin/command-path.mjs +2 -1
- package/package.json +47 -47
- package/runtime/JobHost.exe +0 -0
- package/runtime/LocalCommanderAgent.exe +0 -0
- package/runtime/OwnerBridge.exe +0 -0
- package/runtime/agent.mjs +1621 -975
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Change history
|
|
2
2
|
|
|
3
|
+
## 0.3.42 - 2026-10-21
|
|
4
|
+
|
|
5
|
+
- Fix: editing several lines of a file with Windows line breaks (CRLF) now works when the AI sends plain line breaks. The new text keeps the file's Windows line breaks.
|
|
6
|
+
- Fix: files saved as UTF-16 (for example by Windows PowerShell) or with a byte order mark can be read, searched and edited. The encoding and the mark are kept.
|
|
7
|
+
- New: text files up to 16 MiB can be read page by page, for example the end of a large log. Files over 1 MiB used to be refused.
|
|
8
|
+
- Fix: reading a file with very long lines returns the whole lines that fit and where to continue, instead of failing.
|
|
9
|
+
- Fix: searches and folder listings return what fits and say when the result is incomplete, instead of silently skipping files or failing on one unreadable folder.
|
|
10
|
+
- Fix: clear errors for files that are locked by another program, read-only, binary or too large.
|
|
11
|
+
- Internal changes that do not change how the agent works on Windows.
|
|
12
|
+
- Includes everything in 0.3.41.
|
|
13
|
+
|
|
14
|
+
## 0.3.41 - 2026-10-17
|
|
15
|
+
|
|
16
|
+
- Fix: the agent no longer exits when the Local Commander service stops answering, for example during a server restart. A connection attempt that gets no answer now gives up after 10 seconds and the agent tries again 2 seconds later, so the computer comes back online by itself.
|
|
17
|
+
- Fix: `update` no longer reports a failure when Windows takes longer than 15 seconds to announce the PATH change. The update had already finished.
|
|
18
|
+
- Includes everything in 0.3.40.
|
|
19
|
+
|
|
3
20
|
## 0.3.40 - 2026-10-16
|
|
4
21
|
|
|
5
22
|
- Docs: the README covers only what this package installs. Developer-only notes are removed, and the release-history link no longer points to a private repository.
|
package/bin/command-path.mjs
CHANGED
|
@@ -213,9 +213,10 @@ Write-Output 'USER_PATH_READY'
|
|
|
213
213
|
|
|
214
214
|
export function updateUserPath(bin, remove = false) {
|
|
215
215
|
if (!path.isAbsolute(bin) || /[;"\r\n\0]/.test(bin)) throw Error("COMMAND_PATH_INVALID");
|
|
216
|
+
// The settings broadcast waits up to 1 s per top-level window; a busy desktop took 19 s (2026-10-17).
|
|
216
217
|
const result = spawnSync(powershellPath(),
|
|
217
218
|
["-NoLogo", "-NoProfile", "-NonInteractive", "-EncodedCommand", Buffer.from(USER_PATH_SCRIPT, "utf16le").toString("base64")], {
|
|
218
|
-
windowsHide: true, encoding: "utf8", timeout:
|
|
219
|
+
windowsHide: true, encoding: "utf8", timeout: 60_000,
|
|
219
220
|
env: { ...process.env, LC_COMMAND_BIN: bin, LC_COMMAND_PATH_REMOVE: remove ? "1" : "0" }
|
|
220
221
|
});
|
|
221
222
|
if (result.error || result.status !== 0 || result.stdout.trim() !== "USER_PATH_READY") throw Error("USER_PATH_UPDATE_FAILED");
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "local-commander-agent",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Windows companion for Local Commander: connect AI clients to local files, approved commands and localhost. Requires https://localcmd.app.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"localcommander": "bin/localcommander.mjs"
|
|
8
|
-
},
|
|
9
|
-
"os": [
|
|
10
|
-
"win32"
|
|
11
|
-
],
|
|
12
|
-
"cpu": [
|
|
13
|
-
"x64"
|
|
14
|
-
],
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=20.0.0"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"bin/",
|
|
20
|
-
"runtime/",
|
|
21
|
-
"README.md",
|
|
22
|
-
"CHANGELOG.md"
|
|
23
|
-
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"prepack": "node ../../scripts/build-npm-agent.mjs",
|
|
26
|
-
"prepublishOnly": "node ../../scripts/check-npm-publish-auth.mjs && node ../../scripts/verify-npm-agent.mjs"
|
|
27
|
-
},
|
|
28
|
-
"publishConfig": {
|
|
29
|
-
"access": "public"
|
|
30
|
-
},
|
|
31
|
-
"keywords": [
|
|
32
|
-
"mcp",
|
|
33
|
-
"local",
|
|
34
|
-
"agent",
|
|
35
|
-
"chatgpt",
|
|
36
|
-
"claude",
|
|
37
|
-
"windows"
|
|
38
|
-
],
|
|
39
|
-
"localCommander": {
|
|
40
|
-
"controlPlaneOrigin": "https://localcmd.app"
|
|
41
|
-
},
|
|
42
|
-
"homepage": "https://localcmd.app",
|
|
43
|
-
"bugs": {
|
|
44
|
-
"url": "https://localcmd.app/support",
|
|
45
|
-
"email": "peter.mamrukov@localcmd.app"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "local-commander-agent",
|
|
3
|
+
"version": "0.3.42",
|
|
4
|
+
"description": "Windows companion for Local Commander: connect AI clients to local files, approved commands and localhost. Requires https://localcmd.app.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"localcommander": "bin/localcommander.mjs"
|
|
8
|
+
},
|
|
9
|
+
"os": [
|
|
10
|
+
"win32"
|
|
11
|
+
],
|
|
12
|
+
"cpu": [
|
|
13
|
+
"x64"
|
|
14
|
+
],
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=20.0.0"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"bin/",
|
|
20
|
+
"runtime/",
|
|
21
|
+
"README.md",
|
|
22
|
+
"CHANGELOG.md"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"prepack": "node ../../scripts/build-npm-agent.mjs",
|
|
26
|
+
"prepublishOnly": "node ../../scripts/check-npm-publish-auth.mjs && node ../../scripts/verify-npm-agent.mjs"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"mcp",
|
|
33
|
+
"local",
|
|
34
|
+
"agent",
|
|
35
|
+
"chatgpt",
|
|
36
|
+
"claude",
|
|
37
|
+
"windows"
|
|
38
|
+
],
|
|
39
|
+
"localCommander": {
|
|
40
|
+
"controlPlaneOrigin": "https://localcmd.app"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://localcmd.app",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://localcmd.app/support",
|
|
45
|
+
"email": "peter.mamrukov@localcmd.app"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/runtime/JobHost.exe
CHANGED
|
Binary file
|
|
Binary file
|
package/runtime/OwnerBridge.exe
CHANGED
|
Binary file
|