leo-link 1.3.0-rc.0 → 1.3.0
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/dist/index.js +2 -2
- package/package.json +16 -1
package/dist/index.js
CHANGED
|
@@ -4120,10 +4120,10 @@ async function canonicalForCreate(path, fs) {
|
|
|
4120
4120
|
var nodeExecFile = (file, args, opts) => new Promise((resolve3, reject) => {
|
|
4121
4121
|
execFile3(file, args, { ...opts, encoding: "utf8" }, (err, stdout) => err ? reject(err) : resolve3({ stdout }));
|
|
4122
4122
|
});
|
|
4123
|
-
async function loadSystemDirs(fs = nodeBoundaryFs, run3 = nodeExecFile) {
|
|
4123
|
+
async function loadSystemDirs(fs = nodeBoundaryFs, run3 = nodeExecFile, env = process.env) {
|
|
4124
4124
|
const getconf = (name) => run3("/usr/bin/getconf", [name], { timeout: 5e3 }).then((r) => r.stdout.trim(), () => "");
|
|
4125
4125
|
const tmp = /* @__PURE__ */ new Set();
|
|
4126
|
-
for (const d of ["/private/tmp",
|
|
4126
|
+
for (const d of ["/private/tmp", env.TMPDIR ?? "", await getconf("DARWIN_USER_TEMP_DIR")]) {
|
|
4127
4127
|
if (d) tmp.add(await canonicalForCreate(d.replace(/\/+$/, "") || "/", fs));
|
|
4128
4128
|
}
|
|
4129
4129
|
const cache = await getconf("DARWIN_USER_CACHE_DIR");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leo-link",
|
|
3
|
-
"version": "1.3.0
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Leo 的 Desktop Link 命令行版:把这台 Mac 的 Claude Code / Codex 借给 Leo 服务端,并允许 Leo 操作这台电脑",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,10 +20,25 @@
|
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=22"
|
|
22
22
|
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsup",
|
|
25
|
+
"lint": "tsc --noEmit -p tsconfig.json",
|
|
26
|
+
"test": "vitest run --coverage --coverage.reporter=text-summary",
|
|
27
|
+
"coverage": "vitest run --coverage"
|
|
28
|
+
},
|
|
23
29
|
"dependencies": {
|
|
24
30
|
"ws": "8.21.3"
|
|
25
31
|
},
|
|
26
32
|
"optionalDependencies": {
|
|
27
33
|
"@vscode/ripgrep": "1.18.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "26.4.1",
|
|
37
|
+
"@types/ws": "8.18.1",
|
|
38
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
39
|
+
"tsup": "9.0.0",
|
|
40
|
+
"typescript": "7.0.2",
|
|
41
|
+
"vite": "7.3.6",
|
|
42
|
+
"vitest": "5.0.0"
|
|
28
43
|
}
|
|
29
44
|
}
|