tunneld 0.1.49 → 0.1.52
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/.claude-plugin/plugin.json +16 -0
- package/claude-plugin/mcp.json +12 -0
- package/npm-shrinkwrap.json +26 -18
- package/opencode-plugin/index.ts +31 -0
- package/package.json +19 -5
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
|
+
"name": "tunneld",
|
|
4
|
+
"version": "0.0.3",
|
|
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
|
+
"author": {
|
|
7
|
+
"name": "Scaffoldly",
|
|
8
|
+
"email": "legal@scaffold.ly",
|
|
9
|
+
"url": "https://github.com/scaffoldly"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://tunnel.pizza",
|
|
12
|
+
"repository": "https://github.com/tunnel-pizza/tunneld",
|
|
13
|
+
"license": "FSL-1.1-MIT",
|
|
14
|
+
"privacyPolicyUrl": "https://tunnel.pizza/privacy/",
|
|
15
|
+
"mcpServers": "./mcp.json"
|
|
16
|
+
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tunneld",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
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.52",
|
|
10
10
|
"license": "FSL-1.1-MIT",
|
|
11
11
|
"bin": {
|
|
12
12
|
"tunneld": "v1/v1.cjs"
|
|
@@ -15,16 +15,24 @@
|
|
|
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.
|
|
18
|
+
"@tunnel-pizza/tunneld-darwin-arm64": "0.1.52",
|
|
19
|
+
"@tunnel-pizza/tunneld-darwin-x64": "0.1.52",
|
|
20
|
+
"@tunnel-pizza/tunneld-linux-arm64": "0.1.52",
|
|
21
|
+
"@tunnel-pizza/tunneld-linux-x64": "0.1.52"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@opencode/plugin": "^2.0.32"
|
|
25
|
+
},
|
|
26
|
+
"peerDependenciesMeta": {
|
|
27
|
+
"@opencode/plugin": {
|
|
28
|
+
"optional": true
|
|
29
|
+
}
|
|
22
30
|
}
|
|
23
31
|
},
|
|
24
32
|
"node_modules/@tunnel-pizza/tunneld-darwin-arm64": {
|
|
25
|
-
"version": "0.1.
|
|
26
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-darwin-arm64/-/tunneld-darwin-arm64-0.1.
|
|
27
|
-
"integrity": "sha512-
|
|
33
|
+
"version": "0.1.52",
|
|
34
|
+
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-darwin-arm64/-/tunneld-darwin-arm64-0.1.52.tgz",
|
|
35
|
+
"integrity": "sha512-iI6hYMdWgNO7LE/0ejW2KfaE+o05/CYV7B2imdcvhz8ZzfGAl0zA4Zboe4dRZeDOWx9y7Qwkk8YjipHCzcIAMw==",
|
|
28
36
|
"cpu": [
|
|
29
37
|
"arm64"
|
|
30
38
|
],
|
|
@@ -35,9 +43,9 @@
|
|
|
35
43
|
]
|
|
36
44
|
},
|
|
37
45
|
"node_modules/@tunnel-pizza/tunneld-darwin-x64": {
|
|
38
|
-
"version": "0.1.
|
|
39
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-darwin-x64/-/tunneld-darwin-x64-0.1.
|
|
40
|
-
"integrity": "sha512-
|
|
46
|
+
"version": "0.1.52",
|
|
47
|
+
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-darwin-x64/-/tunneld-darwin-x64-0.1.52.tgz",
|
|
48
|
+
"integrity": "sha512-9INEQMtvO/on4hotztfOmwJS1oRXCkj3Ci6v0e6d/jf7IxFWylw+B3VA2YdWxkDRoUk65Ya9X9WQJUdSRzTEeg==",
|
|
41
49
|
"cpu": [
|
|
42
50
|
"x64"
|
|
43
51
|
],
|
|
@@ -48,9 +56,9 @@
|
|
|
48
56
|
]
|
|
49
57
|
},
|
|
50
58
|
"node_modules/@tunnel-pizza/tunneld-linux-arm64": {
|
|
51
|
-
"version": "0.1.
|
|
52
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-linux-arm64/-/tunneld-linux-arm64-0.1.
|
|
53
|
-
"integrity": "sha512-
|
|
59
|
+
"version": "0.1.52",
|
|
60
|
+
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-linux-arm64/-/tunneld-linux-arm64-0.1.52.tgz",
|
|
61
|
+
"integrity": "sha512-P0wx/bCHv0wOCSdnIfu/FfMJIZ3E6LglkMzwPZxccuu9KuFuYy45QwxjRZqnSuFKIFQ/kUk4zPKQ7oWt4etPtw==",
|
|
54
62
|
"cpu": [
|
|
55
63
|
"arm64"
|
|
56
64
|
],
|
|
@@ -61,9 +69,9 @@
|
|
|
61
69
|
]
|
|
62
70
|
},
|
|
63
71
|
"node_modules/@tunnel-pizza/tunneld-linux-x64": {
|
|
64
|
-
"version": "0.1.
|
|
65
|
-
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-linux-x64/-/tunneld-linux-x64-0.1.
|
|
66
|
-
"integrity": "sha512-
|
|
72
|
+
"version": "0.1.52",
|
|
73
|
+
"resolved": "https://registry.npmjs.org/@tunnel-pizza/tunneld-linux-x64/-/tunneld-linux-x64-0.1.52.tgz",
|
|
74
|
+
"integrity": "sha512-3gF/oiYqadfubJh/GjGrvemLYZE0xoN0e56SrIlBk1cbdKUk3p9sXbNZ5mKdQhhnUcWmRG3roIqOnNuuftfSOw==",
|
|
67
75
|
"cpu": [
|
|
68
76
|
"x64"
|
|
69
77
|
],
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Plugin } from "@opencode/plugin"
|
|
2
|
+
|
|
3
|
+
import manifest from "../claude-plugin/.claude-plugin/plugin.json" with { type: "json" }
|
|
4
|
+
import mcp from "../claude-plugin/mcp.json" with { type: "json" }
|
|
5
|
+
|
|
6
|
+
type Server = { type?: string; url?: string; command?: string; args?: string[]; env?: Record<string, string> }
|
|
7
|
+
|
|
8
|
+
// The Claude Code plugin's servers, in OpenCode's shape. OpenCode hands an
|
|
9
|
+
// MCP server the host's environment plus `environment`, and nothing that
|
|
10
|
+
// marks it as an agent's: AI_AGENT is what makes a bare `npx tunneld` serve
|
|
11
|
+
// MCP on stdio. codemode: false keeps the tools on the model's own tool list,
|
|
12
|
+
// where a model calls them by name, rather than behind Code Mode's execute.
|
|
13
|
+
export default Plugin.define({
|
|
14
|
+
id: manifest.name,
|
|
15
|
+
async setup(ctx) {
|
|
16
|
+
await ctx.mcp.transform((editor) => {
|
|
17
|
+
for (const [name, server] of Object.entries<Server>(mcp.mcpServers)) {
|
|
18
|
+
if (server.url) {
|
|
19
|
+
editor.set(name, { type: "remote", url: server.url, codemode: false })
|
|
20
|
+
} else if (server.command) {
|
|
21
|
+
editor.set(name, {
|
|
22
|
+
type: "local",
|
|
23
|
+
command: [server.command, ...(server.args ?? [])],
|
|
24
|
+
environment: { AI_AGENT: "opencode", ...server.env },
|
|
25
|
+
codemode: false,
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
},
|
|
31
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tunneld",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.52",
|
|
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"
|
|
@@ -41,18 +41,32 @@
|
|
|
41
41
|
"doc": "docs",
|
|
42
42
|
"example": "examples"
|
|
43
43
|
},
|
|
44
|
+
"exports": {
|
|
45
|
+
".": "./opencode-plugin/index.ts"
|
|
46
|
+
},
|
|
44
47
|
"files": [
|
|
45
48
|
"v1/v1.cjs",
|
|
49
|
+
"opencode-plugin/index.ts",
|
|
50
|
+
"claude-plugin/.claude-plugin/plugin.json",
|
|
51
|
+
"claude-plugin/mcp.json",
|
|
46
52
|
"npm-shrinkwrap.json"
|
|
47
53
|
],
|
|
48
54
|
"scripts": {
|
|
49
55
|
"dev": "make -s host && node v1/v1.cjs",
|
|
50
56
|
"prepublishOnly": "node -e \"console.error(\\\"tunneld is published by the release workflow, with its platform packages; see ci.yml.\\\"); process.exit(1)\""
|
|
51
57
|
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"@opencode/plugin": "^2.0.32"
|
|
60
|
+
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"@opencode/plugin": {
|
|
63
|
+
"optional": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
52
66
|
"optionalDependencies": {
|
|
53
|
-
"@tunnel-pizza/tunneld-darwin-arm64": "0.1.
|
|
54
|
-
"@tunnel-pizza/tunneld-darwin-x64": "0.1.
|
|
55
|
-
"@tunnel-pizza/tunneld-linux-arm64": "0.1.
|
|
56
|
-
"@tunnel-pizza/tunneld-linux-x64": "0.1.
|
|
67
|
+
"@tunnel-pizza/tunneld-darwin-arm64": "0.1.52",
|
|
68
|
+
"@tunnel-pizza/tunneld-darwin-x64": "0.1.52",
|
|
69
|
+
"@tunnel-pizza/tunneld-linux-arm64": "0.1.52",
|
|
70
|
+
"@tunnel-pizza/tunneld-linux-x64": "0.1.52"
|
|
57
71
|
}
|
|
58
72
|
}
|