tunneld 0.1.38 → 0.1.41
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/.claude-plugin/.mcp.json +5 -1
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +5 -4
- package/npm-shrinkwrap.json +18 -46
- package/package.json +5 -7
- package/v1/v1.cjs +30 -13
package/.claude-plugin/.mcp.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
3
|
"name": "tunneld",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.41",
|
|
5
5
|
"description": "Slice and share your machine on a public URL: a port, a shell, a coding agent, a container, or your whole workspace. One command, no account.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Scaffoldly",
|
package/README.md
CHANGED
|
@@ -90,11 +90,12 @@ node to.
|
|
|
90
90
|
|
|
91
91
|
The tunneld plugin puts your tunnels in front of Claude as MCP tools: it
|
|
92
92
|
lists them, runs commands in a tunnel's terminal, and reads its screen. Add
|
|
93
|
-
tunnel.pizza's marketplace once, then
|
|
93
|
+
tunnel.pizza's marketplace once, install it, then sign in to tunnel.pizza:
|
|
94
94
|
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
```sh
|
|
96
|
+
claude plugin marketplace add https://tunnel.pizza
|
|
97
|
+
claude plugin install tunneld@tunnel-pizza
|
|
98
|
+
claude mcp login plugin:tunneld:tunnel-pizza
|
|
98
99
|
```
|
|
99
100
|
|
|
100
101
|
To get new releases automatically, open `/plugin`, choose the tunnel-pizza
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tunneld",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "tunneld",
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.41",
|
|
10
10
|
"license": "FSL-1.1-MIT",
|
|
11
11
|
"bin": {
|
|
12
12
|
"tunneld": "v1/v1.cjs"
|
|
@@ -15,18 +15,16 @@
|
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@tunnel-pizza/tunneld-darwin-arm64": "0.1.
|
|
19
|
-
"@tunnel-pizza/tunneld-darwin-x64": "0.1.
|
|
20
|
-
"@tunnel-pizza/tunneld-linux-arm64": "0.1.
|
|
21
|
-
"@tunnel-pizza/tunneld-linux-x64": "0.1.
|
|
22
|
-
"@tunnel-pizza/tunneld-win32-arm64": "0.1.38",
|
|
23
|
-
"@tunnel-pizza/tunneld-win32-x64": "0.1.38"
|
|
18
|
+
"@tunnel-pizza/tunneld-darwin-arm64": "0.1.41",
|
|
19
|
+
"@tunnel-pizza/tunneld-darwin-x64": "0.1.41",
|
|
20
|
+
"@tunnel-pizza/tunneld-linux-arm64": "0.1.41",
|
|
21
|
+
"@tunnel-pizza/tunneld-linux-x64": "0.1.41"
|
|
24
22
|
}
|
|
25
23
|
},
|
|
26
24
|
"node_modules/@tunnel-pizza/tunneld-darwin-arm64": {
|
|
27
|
-
"version": "0.1.
|
|
28
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-darwin-arm64/-/tunneld-darwin-arm64-0.1.
|
|
29
|
-
"integrity": "sha512-
|
|
25
|
+
"version": "0.1.41",
|
|
26
|
+
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-darwin-arm64/-/tunneld-darwin-arm64-0.1.41.tgz",
|
|
27
|
+
"integrity": "sha512-FiEYuvUfZ1nvJV198hzfb20P5+tl9QWMZTFZsQy1IEkZRF/grEVBGGAwYyz0eKNojd1ZeTe8ZtJ4Jjjr/bgoxg==",
|
|
30
28
|
"cpu": [
|
|
31
29
|
"arm64"
|
|
32
30
|
],
|
|
@@ -37,9 +35,9 @@
|
|
|
37
35
|
]
|
|
38
36
|
},
|
|
39
37
|
"node_modules/@tunnel-pizza/tunneld-darwin-x64": {
|
|
40
|
-
"version": "0.1.
|
|
41
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-darwin-x64/-/tunneld-darwin-x64-0.1.
|
|
42
|
-
"integrity": "sha512-
|
|
38
|
+
"version": "0.1.41",
|
|
39
|
+
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-darwin-x64/-/tunneld-darwin-x64-0.1.41.tgz",
|
|
40
|
+
"integrity": "sha512-mpDzaKykOMimcjfmRAZwfQEu29OegvvBt7MXLWr84olw9claajT4W6SnYjTvKyxG21Rpi44n5NunQ1Rfba8uqA==",
|
|
43
41
|
"cpu": [
|
|
44
42
|
"x64"
|
|
45
43
|
],
|
|
@@ -50,9 +48,9 @@
|
|
|
50
48
|
]
|
|
51
49
|
},
|
|
52
50
|
"node_modules/@tunnel-pizza/tunneld-linux-arm64": {
|
|
53
|
-
"version": "0.1.
|
|
54
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-linux-arm64/-/tunneld-linux-arm64-0.1.
|
|
55
|
-
"integrity": "sha512-
|
|
51
|
+
"version": "0.1.41",
|
|
52
|
+
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-linux-arm64/-/tunneld-linux-arm64-0.1.41.tgz",
|
|
53
|
+
"integrity": "sha512-KLRnbh/oJgf1Ne2+rXzgAgVNiQYmOr3kcFQx3yEIhlb2eGhwegCsRV6ViQg5lXyij2/XxXYhYroHdy6gNMDcpw==",
|
|
56
54
|
"cpu": [
|
|
57
55
|
"arm64"
|
|
58
56
|
],
|
|
@@ -63,9 +61,9 @@
|
|
|
63
61
|
]
|
|
64
62
|
},
|
|
65
63
|
"node_modules/@tunnel-pizza/tunneld-linux-x64": {
|
|
66
|
-
"version": "0.1.
|
|
67
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-linux-x64/-/tunneld-linux-x64-0.1.
|
|
68
|
-
"integrity": "sha512-
|
|
64
|
+
"version": "0.1.41",
|
|
65
|
+
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-linux-x64/-/tunneld-linux-x64-0.1.41.tgz",
|
|
66
|
+
"integrity": "sha512-YuCykUiTnFy2gBfAyBmOFVTREMxPCvR6peAINL4Zg7J16rFxpwaNr4ywq9OSP3Kd+yfAJQU9l8kk4XxuIH6+OQ==",
|
|
69
67
|
"cpu": [
|
|
70
68
|
"x64"
|
|
71
69
|
],
|
|
@@ -74,32 +72,6 @@
|
|
|
74
72
|
"os": [
|
|
75
73
|
"linux"
|
|
76
74
|
]
|
|
77
|
-
},
|
|
78
|
-
"node_modules/@tunnel-pizza/tunneld-win32-arm64": {
|
|
79
|
-
"version": "0.1.38",
|
|
80
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-win32-arm64/-/tunneld-win32-arm64-0.1.38.tgz",
|
|
81
|
-
"integrity": "sha512-DPzsQlUfR9Ai5melyL0X4+dpe4j78lDz7VBBq8UGhM+HIAu57X0vAZuCg7Q1lvhTOpPDyg+SY+slJ7c56hIX1w==",
|
|
82
|
-
"cpu": [
|
|
83
|
-
"arm64"
|
|
84
|
-
],
|
|
85
|
-
"license": "FSL-1.1-MIT",
|
|
86
|
-
"optional": true,
|
|
87
|
-
"os": [
|
|
88
|
-
"win32"
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
"node_modules/@tunnel-pizza/tunneld-win32-x64": {
|
|
92
|
-
"version": "0.1.38",
|
|
93
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-win32-x64/-/tunneld-win32-x64-0.1.38.tgz",
|
|
94
|
-
"integrity": "sha512-fX6U+GACRiWF3XHAbJgET5WT8Vq1fDqMxP0XD/DTzS87k7+u991luTsdfxw3XjbjIMuyJ4J2r6h48Im7I/rt/w==",
|
|
95
|
-
"cpu": [
|
|
96
|
-
"x64"
|
|
97
|
-
],
|
|
98
|
-
"license": "FSL-1.1-MIT",
|
|
99
|
-
"optional": true,
|
|
100
|
-
"os": [
|
|
101
|
-
"win32"
|
|
102
|
-
]
|
|
103
75
|
}
|
|
104
76
|
}
|
|
105
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tunneld",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"description": "Slice and share your machine on a public URL: a port, a shell, a coding agent, a container, or your whole workspace. One command, no account.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -51,11 +51,9 @@
|
|
|
51
51
|
"prepublishOnly": "node -e \"console.error(\\\"tunneld is published by the release workflow, with its platform packages; see ci.yml.\\\"); process.exit(1)\""
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@tunnel-pizza/tunneld-darwin-arm64": "0.1.
|
|
55
|
-
"@tunnel-pizza/tunneld-darwin-x64": "0.1.
|
|
56
|
-
"@tunnel-pizza/tunneld-linux-arm64": "0.1.
|
|
57
|
-
"@tunnel-pizza/tunneld-linux-x64": "0.1.
|
|
58
|
-
"@tunnel-pizza/tunneld-win32-arm64": "0.1.38",
|
|
59
|
-
"@tunnel-pizza/tunneld-win32-x64": "0.1.38"
|
|
54
|
+
"@tunnel-pizza/tunneld-darwin-arm64": "0.1.41",
|
|
55
|
+
"@tunnel-pizza/tunneld-darwin-x64": "0.1.41",
|
|
56
|
+
"@tunnel-pizza/tunneld-linux-arm64": "0.1.41",
|
|
57
|
+
"@tunnel-pizza/tunneld-linux-x64": "0.1.41"
|
|
60
58
|
}
|
|
61
59
|
}
|
package/v1/v1.cjs
CHANGED
|
@@ -547,18 +547,22 @@ function summary(pid) {
|
|
|
547
547
|
return lines.join("\n") + "\n";
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
// holders is every
|
|
550
|
+
// holders is every run holding file open. A run keeps its <key>.pid open
|
|
551
551
|
// for as long as it runs, and the kernel closes it however the process ends,
|
|
552
552
|
// so this is the live runs registered there and nothing else — not a process
|
|
553
553
|
// that has since been given a dead run's pid. Two runs of the same thing at
|
|
554
|
-
// once share the file, so it can be more than one.
|
|
555
|
-
//
|
|
556
|
-
//
|
|
554
|
+
// once share the file, so it can be more than one.
|
|
555
|
+
//
|
|
556
|
+
// A child the run forks holds the file too, from the fork until its exec
|
|
557
|
+
// closes it. That child is not a run, and its parent is one: a holder whose
|
|
558
|
+
// parent also holds the file is left out. Linux answers from /proc, where
|
|
559
|
+
// only this user's processes can be read, which are the only ones this could
|
|
560
|
+
// signal anyway; everywhere else lsof does, which macOS always has.
|
|
557
561
|
function holders(file) {
|
|
562
|
+
const found = new Map(); // pid -> parent pid
|
|
558
563
|
try {
|
|
559
564
|
if (process.platform === "linux") {
|
|
560
565
|
const target = fs.realpathSync(file);
|
|
561
|
-
const found = [];
|
|
562
566
|
for (const pid of fs.readdirSync("/proc").filter((n) => /^\d+$/.test(n))) {
|
|
563
567
|
let fds;
|
|
564
568
|
try {
|
|
@@ -569,24 +573,37 @@ function holders(file) {
|
|
|
569
573
|
for (const fd of fds) {
|
|
570
574
|
try {
|
|
571
575
|
if (fs.readlinkSync(`/proc/${pid}/fd/${fd}`) === target) {
|
|
572
|
-
|
|
576
|
+
// stat is "pid (comm) state ppid ...", and comm may hold spaces
|
|
577
|
+
// or parentheses of its own.
|
|
578
|
+
const stat = fs.readFileSync(`/proc/${pid}/stat`, "utf8");
|
|
579
|
+
found.set(Number(pid), Number(stat.slice(stat.lastIndexOf(")") + 2).split(" ")[1]));
|
|
573
580
|
break;
|
|
574
581
|
}
|
|
575
582
|
} catch {
|
|
576
|
-
// Closed while being looked at.
|
|
583
|
+
// Closed or gone while being looked at.
|
|
577
584
|
}
|
|
578
585
|
}
|
|
579
586
|
}
|
|
580
|
-
|
|
587
|
+
} else {
|
|
588
|
+
// -F pR: a p line per process, then its R line, the parent pid.
|
|
589
|
+
const out = execFileSync("lsof", ["-F", "pR", "--", file], {
|
|
590
|
+
encoding: "utf8",
|
|
591
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
592
|
+
});
|
|
593
|
+
let pid;
|
|
594
|
+
for (const line of out.split("\n")) {
|
|
595
|
+
if (line.startsWith("p")) {
|
|
596
|
+
pid = Number(line.slice(1));
|
|
597
|
+
found.set(pid, 0);
|
|
598
|
+
} else if (line.startsWith("R") && pid !== undefined) {
|
|
599
|
+
found.set(pid, Number(line.slice(1)));
|
|
600
|
+
}
|
|
601
|
+
}
|
|
581
602
|
}
|
|
582
|
-
const out = execFileSync("lsof", ["-t", "--", file], {
|
|
583
|
-
encoding: "utf8",
|
|
584
|
-
stdio: ["ignore", "pipe", "ignore"],
|
|
585
|
-
});
|
|
586
|
-
return out.split("\n").filter(Boolean).map(Number);
|
|
587
603
|
} catch {
|
|
588
604
|
return [];
|
|
589
605
|
}
|
|
606
|
+
return [...found].filter(([, parent]) => !found.has(parent)).map(([pid]) => pid);
|
|
590
607
|
}
|
|
591
608
|
|
|
592
609
|
function alive(pid) {
|