@tunnelbox/claude-code 0.1.1 → 0.1.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/README.md +147 -120
- package/dist/index.mjs +1645 -242
- package/official-plugin/.claude-plugin/plugin.json +10 -10
- package/official-plugin/bin/tunnelbox +4 -4
- package/official-plugin/bin/tunnelbox.cmd +3 -3
- package/official-plugin/bin/tunnelbox.mjs +332 -274
- package/official-plugin/hooks/hooks.json +26 -16
- package/official-plugin/skills/pair/SKILL.md +12 -12
- package/official-plugin/skills/status/SKILL.md +10 -0
- package/package.json +42 -38
- package/official-plugin/commands/pair.md +0 -10
- package/official-plugin/commands/status.md +0 -9
|
@@ -1,16 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hooks": {
|
|
3
|
-
"PermissionRequest": [
|
|
4
|
-
{
|
|
5
|
-
"matcher": "Bash|Edit|Write|WebFetch|WebSearch|NotebookEdit|Task|
|
|
6
|
-
"hooks": [
|
|
7
|
-
{
|
|
8
|
-
"type": "command",
|
|
9
|
-
"command": "node",
|
|
10
|
-
"args": ["${CLAUDE_PLUGIN_ROOT}/bin/tunnelbox.mjs", "ask"]
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"PermissionRequest": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "Bash|Edit|Write|WebFetch|WebSearch|NotebookEdit|Task|Agent",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "node",
|
|
10
|
+
"args": ["${CLAUDE_PLUGIN_ROOT}/bin/tunnelbox.mjs", "ask"]
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"matcher": "mcp__.*",
|
|
16
|
+
"hooks": [
|
|
17
|
+
{
|
|
18
|
+
"type": "command",
|
|
19
|
+
"command": "node",
|
|
20
|
+
"args": ["${CLAUDE_PLUGIN_ROOT}/bin/tunnelbox.mjs", "ask"]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: tunnelbox 手机配对。当用户询问手机远程连接/配对/扫码/如何用手机控制时自动调用。
|
|
3
|
-
disable-model-invocation: true
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# tunnelbox 手机配对
|
|
7
|
-
|
|
8
|
-
本技能用于把本机 Claude Code 绑定到手机上的 tunnelbox。
|
|
9
|
-
|
|
10
|
-
1. 运行命令:`tunnelbox pair`
|
|
11
|
-
2. 把命令输出的**配对码**与**配对链接**完整、原样展示给用户(保留代码格式)。
|
|
12
|
-
3. 向用户说明:手机浏览器打开链接,或打开 tunnelbox 应用输入配对码;配对码为一次性,使用后即失效。
|
|
1
|
+
---
|
|
2
|
+
description: tunnelbox 手机配对。当用户询问手机远程连接/配对/扫码/如何用手机控制时自动调用。
|
|
3
|
+
disable-model-invocation: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# tunnelbox 手机配对
|
|
7
|
+
|
|
8
|
+
本技能用于把本机 Claude Code 绑定到手机上的 tunnelbox。
|
|
9
|
+
|
|
10
|
+
1. 运行命令:`tunnelbox pair`
|
|
11
|
+
2. 把命令输出的**配对码**与**配对链接**完整、原样展示给用户(保留代码格式)。
|
|
12
|
+
3. 向用户说明:手机浏览器打开链接,或打开 tunnelbox 应用输入配对码;配对码为一次性,使用后即失效。
|
package/package.json
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tunnelbox/claude-code",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "tunnelbox 的 Claude Code 集成(官方 Agent SDK 桥 + 官方插件 official-plugin):手机远程驱动 Claude Code(会话/流式/审批/中止)",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.mjs",
|
|
7
|
-
"bin": {
|
|
8
|
-
"tunnelbox-claude-code": "dist/index.mjs"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"dist",
|
|
12
|
-
"official-plugin",
|
|
13
|
-
"README.md"
|
|
14
|
-
],
|
|
15
|
-
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"type-check": "tsc --noEmit",
|
|
20
|
-
"build": "node scripts/build.mjs",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
},
|
|
31
|
-
"
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@tunnelbox/claude-code",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "tunnelbox 的 Claude Code 集成(官方 Agent SDK 桥 + 官方插件 official-plugin):手机远程驱动 Claude Code(会话/流式/审批/中止)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.mjs",
|
|
7
|
+
"bin": {
|
|
8
|
+
"tunnelbox-claude-code": "dist/index.mjs"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"official-plugin",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"type-check": "tsc --noEmit",
|
|
20
|
+
"build": "node scripts/build.mjs",
|
|
21
|
+
"build:dev": "node scripts/build.mjs --env development",
|
|
22
|
+
"build:test": "node scripts/build.mjs --env test",
|
|
23
|
+
"build:prod": "node scripts/build.mjs --env production",
|
|
24
|
+
"setup": "node scripts/setup.mjs",
|
|
25
|
+
"start": "node dist/index.mjs",
|
|
26
|
+
"smoke": "node scripts/smoke.mjs"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=22.0.0"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.258",
|
|
33
|
+
"qrcode": "^1.5.3"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@tunnelbox/core": "0.1.0",
|
|
37
|
+
"@types/node": "^22.0.0",
|
|
38
|
+
"@types/qrcode": "^1.5.5",
|
|
39
|
+
"esbuild": "^0.24.0",
|
|
40
|
+
"typescript": "^5.4.5"
|
|
41
|
+
}
|
|
42
|
+
}
|