pocketagents 0.9.0 → 0.9.1
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.en.md +20 -13
- package/README.md +20 -13
- package/README.zh-CN.md +20 -13
- package/connect-host.sh +2 -2
- package/hub/public/assets/{index-B2gcOquW.js → index-D2Q9cm7y.js} +149 -140
- package/hub/public/assets/{vendor-hls.light-DW8pWxy7.js → vendor-hls.light-BQYJXjmZ.js} +1 -1
- package/hub/public/index.html +1 -1
- package/hub/server.js +1 -1
- package/package.json +5 -5
- package/scripts/cli.mjs +7 -7
- package/dsh-feishu/README.md +0 -66
package/README.en.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="docs/assets/hero-banner-en.svg" alt="
|
|
2
|
+
<img src="docs/assets/hero-banner-en.svg" alt="PocketAgents — Control Claude Code, OpenAI Codex, Antigravity IDE & DeepSeek Harness from your phone" width="100%" />
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
|
-
<strong>
|
|
5
|
+
<strong>PocketAgents</strong> — <strong>Control <a href="#supported-ai-coding-tools">Claude Code, OpenAI Codex, Antigravity IDE, DeepSeek Harness (DSH) & WorkBuddy</a> from your phone — 100% self-hosted, zero vendor relay.<br/>Swipe-approve shell commands, answer multiple-choice popups, steer running tasks with Hold-to-Talk voice, or listen to replies with <code>🔊 Listen</code>.</strong>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
-
<a href="https://
|
|
9
|
+
<a href="https://pocketagents.agentrun.vip/?demo=1&lang=en"><img src="https://img.shields.io/badge/%E2%9C%A8_Try_Live_Interactive_Demo-Zero_Install-10b981?style=for-the-badge" alt="Try Live Interactive Demo" height="32" /></a>
|
|
10
10
|
|
|
11
11
|
<a href="https://railway.com/deploy/dsh-remote-control-hub?referralCode=44kg1p&utm_medium=integration&utm_source=template&utm_campaign=generic"><img src="https://railway.com/button.svg" alt="Deploy on Railway" height="32" /></a>
|
|
12
12
|
</p>
|
|
@@ -32,7 +32,7 @@ npx pocketagents
|
|
|
32
32
|
</p>
|
|
33
33
|
|
|
34
34
|
<p align="center">
|
|
35
|
-
<strong>🇺🇸 English</strong> · <a href="./README.zh-CN.md">🇨🇳 简体中文</a> · <a href="https://
|
|
35
|
+
<strong>🇺🇸 English</strong> · <a href="./README.zh-CN.md">🇨🇳 简体中文</a> · <a href="https://pocketagents.agentrun.vip/?demo=1&lang=en">✨ Live Demo</a> · <a href="#get-started-in-3-steps">24/7 Cloud Setup</a> · <a href="#supported-ai-coding-tools">Supported Tools</a> · <a href="#whats-new">What's New</a> · <a href="#faq">FAQ</a>
|
|
36
36
|
</p>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
@@ -111,7 +111,7 @@ Before starting, it helps to understand the two lightweight pieces and how data
|
|
|
111
111
|
>
|
|
112
112
|
> **🔌 Using DeepSeek Harness (DSH >= 0.2.0)?** Install directly from **DSH Market** or run:
|
|
113
113
|
> ```bash
|
|
114
|
-
> dsh plugin --profile desktop add github:oscarka/
|
|
114
|
+
> dsh plugin --profile desktop add github:oscarka/pocketagents
|
|
115
115
|
> # Or use --profile web if you run `dsh web`
|
|
116
116
|
> ```
|
|
117
117
|
> Ready for **24/7 cellular (4G/5G) access across multiple computers**? Follow the 3 steps below:
|
|
@@ -129,8 +129,8 @@ If you want to control your home/office computers from anywhere on cellular 4G/5
|
|
|
129
129
|
No cloud account or Docker needed. Clone the repo and start the Control Hub directly on your computer (requires Node.js >= 20):
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
|
-
git clone https://github.com/oscarka/
|
|
133
|
-
cd
|
|
132
|
+
git clone https://github.com/oscarka/pocketagents.git
|
|
133
|
+
cd pocketagents
|
|
134
134
|
|
|
135
135
|
# Replace choose-a-password with your own password
|
|
136
136
|
HUB_TOKEN="choose-a-password" PORT=8080 npm start
|
|
@@ -141,20 +141,20 @@ The terminal will print both `http://localhost:8080` and your LAN URL (e.g. `htt
|
|
|
141
141
|
If you have a lightweight VPS (e.g. paired with Nginx + Cloudflare HTTP/2 & HTTP/3 CDN), home server, NAS, or Raspberry Pi, run the prebuilt Docker image (or `npm start` + `cloudflared tunnel --url http://localhost:8080`):
|
|
142
142
|
|
|
143
143
|
```bash
|
|
144
|
-
docker run -d --name
|
|
144
|
+
docker run -d --name pocketagents-hub \
|
|
145
145
|
--restart unless-stopped \
|
|
146
146
|
-p 8080:8080 \
|
|
147
147
|
-v dsh-hub-data:/data \
|
|
148
148
|
-e HUB_TOKEN="choose-a-password" \
|
|
149
|
-
ghcr.io/oscarka/
|
|
149
|
+
ghcr.io/oscarka/pocketagents:latest
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
#### ☁️ Option D: Google Cloud Run (CLI Script Deploy)
|
|
153
153
|
If you prefer deploying on GCP via `gcloud`, use the bundled helper script (note: because connected computer daemons keep persistent 24/7 SSE/heartbeat streams open, Cloud Run remains resident while hosts are online rather than scaling to zero — for always-on multi-computer setups, Railway or a lightweight VPS is usually much more cost-effective):
|
|
154
154
|
|
|
155
155
|
```bash
|
|
156
|
-
git clone https://github.com/oscarka/
|
|
157
|
-
cd
|
|
156
|
+
git clone https://github.com/oscarka/pocketagents.git
|
|
157
|
+
cd pocketagents
|
|
158
158
|
|
|
159
159
|
# Replace with your GCP project ID and your chosen password
|
|
160
160
|
GCP_PROJECT_ID="your-gcp-project-id" \
|
|
@@ -223,9 +223,16 @@ The background daemon automatically discovers local sessions across all 6 suppor
|
|
|
223
223
|
> 💡 Grouped **one drawer per day** with every exact version tag preserved inside; see [`CHANGELOG.md`](CHANGELOG.md) for granular per-release notes.
|
|
224
224
|
|
|
225
225
|
<details>
|
|
226
|
-
<summary><strong><code>2026-11-
|
|
226
|
+
<summary><strong><code>2026-11-20 · v0.9.1</code> — Unified <code>pocketagents</code> Ecosystem, Zero-Miss <code>🔵 Completed</code> Unread Sync & Left-Edge-Only Swipe Back</strong></summary>
|
|
227
227
|
|
|
228
|
-
- **
|
|
228
|
+
- **Unified `pocketagents` Launch (`v0.9.1`)**: Aligned GitHub repo (`oscarka/pocketagents`), npm CLI (`npx pocketagents` with OIDC provenance), multi-arch GHCR image (`ghcr.io/oscarka/pocketagents:latest`), and live sandbox (`https://pocketagents.agentrun.vip/?demo=1`); tightened mobile chat swipe-back strictly to rightward drags from the left edge (`14%`, `48–72px`) and fixed 4 conclusion unread bugs (stale Antigravity `created_at` timestamps, fast `idle -> idle` turn detection, non-conclusion read receipt overwrites, and background `visibilityState === 'hidden'` auto-reads).
|
|
229
|
+
|
|
230
|
+
</details>
|
|
231
|
+
|
|
232
|
+
<details>
|
|
233
|
+
<summary><strong><code>2026-11-19 · v0.8.9–v0.9.0</code> — PocketAgents Rebrand (<code>npx pocketagents</code>), Claude Code Approvals, Antigravity <code>ask_question</code> & <code>?demo=1</code> Sandbox</strong></summary>
|
|
234
|
+
|
|
235
|
+
- **PocketAgents Launch (`v0.9.0`)**: Rebranded repository and primary CLI package to **PocketAgents** (`github.com/oscarka/pocketagents`, `npx pocketagents`, `ghcr.io/oscarka/pocketagents:latest`) with automatic 301 redirect from legacy `deepseekharness-remotecontrol` links and full DSH Market compatibility.
|
|
229
236
|
|
|
230
237
|
- **Antigravity `ask_question` Interactive Options & Reliable Resume (`v0.8.20–v0.8.21`)**: Parsed `ask_question` `questions` & hydrated truncated `tool_calls` from `transcript_full.jsonl` into structured `kind: 'question'` cards (fixing the generic `Yes, allow this time` fallback), and cleanly cancelled the waiting step before delivering the user's selected choices via `SendUserCascadeMessage` so Antigravity resumes running immediately instead of treating it as a skipped popup.
|
|
231
238
|
- **Native Claude Code Mobile Approvals (`v0.8.19`)**: Added official Claude Code `PermissionRequest` Hook bridge (`claude-permission-hook.js` + `--install-claude-hook` / auto-install in `npx`), real-time `<120ms` FSEvents approval watcher, 1-tap `Allow` / `Always allow in this chat` (`updatedPermissions`) / `Deny` and `AskUserQuestion` structured answers — bringing full mobile & Swipe Triage approvals to all 5 coding harnesses (Claude Code, Codex, Antigravity IDE, DSH & WorkBuddy).
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="docs/assets/hero-banner-en.svg" alt="
|
|
2
|
+
<img src="docs/assets/hero-banner-en.svg" alt="PocketAgents — Control Claude Code, OpenAI Codex, Antigravity IDE & DeepSeek Harness from your phone" width="100%" />
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
|
-
<strong>
|
|
5
|
+
<strong>PocketAgents</strong> — <strong>Control <a href="#supported-ai-coding-tools">Claude Code, OpenAI Codex, Antigravity IDE, DeepSeek Harness (DSH) & WorkBuddy</a> from your phone — 100% self-hosted, zero vendor relay.<br/>Swipe-approve shell commands, answer multiple-choice popups, steer running tasks with Hold-to-Talk voice, or listen to replies with <code>🔊 Listen</code>.</strong>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
-
<a href="https://
|
|
9
|
+
<a href="https://pocketagents.agentrun.vip/?demo=1&lang=en"><img src="https://img.shields.io/badge/%E2%9C%A8_Try_Live_Interactive_Demo-Zero_Install-10b981?style=for-the-badge" alt="Try Live Interactive Demo" height="32" /></a>
|
|
10
10
|
|
|
11
11
|
<a href="https://railway.com/deploy/dsh-remote-control-hub?referralCode=44kg1p&utm_medium=integration&utm_source=template&utm_campaign=generic"><img src="https://railway.com/button.svg" alt="Deploy on Railway" height="32" /></a>
|
|
12
12
|
</p>
|
|
@@ -32,7 +32,7 @@ npx pocketagents
|
|
|
32
32
|
</p>
|
|
33
33
|
|
|
34
34
|
<p align="center">
|
|
35
|
-
<strong>🇺🇸 English</strong> · <a href="./README.zh-CN.md">🇨🇳 简体中文</a> · <a href="https://
|
|
35
|
+
<strong>🇺🇸 English</strong> · <a href="./README.zh-CN.md">🇨🇳 简体中文</a> · <a href="https://pocketagents.agentrun.vip/?demo=1&lang=en">✨ Live Demo</a> · <a href="#get-started-in-3-steps">24/7 Cloud Setup</a> · <a href="#supported-ai-coding-tools">Supported Tools</a> · <a href="#whats-new">What's New</a> · <a href="#faq">FAQ</a>
|
|
36
36
|
</p>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
@@ -111,7 +111,7 @@ Before starting, it helps to understand the two lightweight pieces and how data
|
|
|
111
111
|
>
|
|
112
112
|
> **🔌 Using DeepSeek Harness (DSH >= 0.2.0)?** Install directly from **DSH Market** or run:
|
|
113
113
|
> ```bash
|
|
114
|
-
> dsh plugin --profile desktop add github:oscarka/
|
|
114
|
+
> dsh plugin --profile desktop add github:oscarka/pocketagents
|
|
115
115
|
> # Or use --profile web if you run `dsh web`
|
|
116
116
|
> ```
|
|
117
117
|
> Ready for **24/7 cellular (4G/5G) access across multiple computers**? Follow the 3 steps below:
|
|
@@ -129,8 +129,8 @@ If you want to control your home/office computers from anywhere on cellular 4G/5
|
|
|
129
129
|
No cloud account or Docker needed. Clone the repo and start the Control Hub directly on your computer (requires Node.js >= 20):
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
|
-
git clone https://github.com/oscarka/
|
|
133
|
-
cd
|
|
132
|
+
git clone https://github.com/oscarka/pocketagents.git
|
|
133
|
+
cd pocketagents
|
|
134
134
|
|
|
135
135
|
# Replace choose-a-password with your own password
|
|
136
136
|
HUB_TOKEN="choose-a-password" PORT=8080 npm start
|
|
@@ -141,20 +141,20 @@ The terminal will print both `http://localhost:8080` and your LAN URL (e.g. `htt
|
|
|
141
141
|
If you have a lightweight VPS (e.g. paired with Nginx + Cloudflare HTTP/2 & HTTP/3 CDN), home server, NAS, or Raspberry Pi, run the prebuilt Docker image (or `npm start` + `cloudflared tunnel --url http://localhost:8080`):
|
|
142
142
|
|
|
143
143
|
```bash
|
|
144
|
-
docker run -d --name
|
|
144
|
+
docker run -d --name pocketagents-hub \
|
|
145
145
|
--restart unless-stopped \
|
|
146
146
|
-p 8080:8080 \
|
|
147
147
|
-v dsh-hub-data:/data \
|
|
148
148
|
-e HUB_TOKEN="choose-a-password" \
|
|
149
|
-
ghcr.io/oscarka/
|
|
149
|
+
ghcr.io/oscarka/pocketagents:latest
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
#### ☁️ Option D: Google Cloud Run (CLI Script Deploy)
|
|
153
153
|
If you prefer deploying on GCP via `gcloud`, use the bundled helper script (note: because connected computer daemons keep persistent 24/7 SSE/heartbeat streams open, Cloud Run remains resident while hosts are online rather than scaling to zero — for always-on multi-computer setups, Railway or a lightweight VPS is usually much more cost-effective):
|
|
154
154
|
|
|
155
155
|
```bash
|
|
156
|
-
git clone https://github.com/oscarka/
|
|
157
|
-
cd
|
|
156
|
+
git clone https://github.com/oscarka/pocketagents.git
|
|
157
|
+
cd pocketagents
|
|
158
158
|
|
|
159
159
|
# Replace with your GCP project ID and your chosen password
|
|
160
160
|
GCP_PROJECT_ID="your-gcp-project-id" \
|
|
@@ -223,9 +223,16 @@ The background daemon automatically discovers local sessions across all 6 suppor
|
|
|
223
223
|
> 💡 Grouped **one drawer per day** with every exact version tag preserved inside; see [`CHANGELOG.md`](CHANGELOG.md) for granular per-release notes.
|
|
224
224
|
|
|
225
225
|
<details>
|
|
226
|
-
<summary><strong><code>2026-11-
|
|
226
|
+
<summary><strong><code>2026-11-20 · v0.9.1</code> — Unified <code>pocketagents</code> Ecosystem, Zero-Miss <code>🔵 Completed</code> Unread Sync & Left-Edge-Only Swipe Back</strong></summary>
|
|
227
227
|
|
|
228
|
-
- **
|
|
228
|
+
- **Unified `pocketagents` Launch (`v0.9.1`)**: Aligned GitHub repo (`oscarka/pocketagents`), npm CLI (`npx pocketagents` with OIDC provenance), multi-arch GHCR image (`ghcr.io/oscarka/pocketagents:latest`), and live sandbox (`https://pocketagents.agentrun.vip/?demo=1`); tightened mobile chat swipe-back strictly to rightward drags from the left edge (`14%`, `48–72px`) and fixed 4 conclusion unread bugs (stale Antigravity `created_at` timestamps, fast `idle -> idle` turn detection, non-conclusion read receipt overwrites, and background `visibilityState === 'hidden'` auto-reads).
|
|
229
|
+
|
|
230
|
+
</details>
|
|
231
|
+
|
|
232
|
+
<details>
|
|
233
|
+
<summary><strong><code>2026-11-19 · v0.8.9–v0.9.0</code> — PocketAgents Rebrand (<code>npx pocketagents</code>), Claude Code Approvals, Antigravity <code>ask_question</code> & <code>?demo=1</code> Sandbox</strong></summary>
|
|
234
|
+
|
|
235
|
+
- **PocketAgents Launch (`v0.9.0`)**: Rebranded repository and primary CLI package to **PocketAgents** (`github.com/oscarka/pocketagents`, `npx pocketagents`, `ghcr.io/oscarka/pocketagents:latest`) with automatic 301 redirect from legacy `deepseekharness-remotecontrol` links and full DSH Market compatibility.
|
|
229
236
|
|
|
230
237
|
- **Antigravity `ask_question` Interactive Options & Reliable Resume (`v0.8.20–v0.8.21`)**: Parsed `ask_question` `questions` & hydrated truncated `tool_calls` from `transcript_full.jsonl` into structured `kind: 'question'` cards (fixing the generic `Yes, allow this time` fallback), and cleanly cancelled the waiting step before delivering the user's selected choices via `SendUserCascadeMessage` so Antigravity resumes running immediately instead of treating it as a skipped popup.
|
|
231
238
|
- **Native Claude Code Mobile Approvals (`v0.8.19`)**: Added official Claude Code `PermissionRequest` Hook bridge (`claude-permission-hook.js` + `--install-claude-hook` / auto-install in `npx`), real-time `<120ms` FSEvents approval watcher, 1-tap `Allow` / `Always allow in this chat` (`updatedPermissions`) / `Deny` and `AskUserQuestion` structured answers — bringing full mobile & Swipe Triage approvals to all 5 coding harnesses (Claude Code, Codex, Antigravity IDE, DSH & WorkBuddy).
|
package/README.zh-CN.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<img src="docs/assets/hero-banner-zh.svg" alt="
|
|
2
|
+
<img src="docs/assets/hero-banner-zh.svg" alt="PocketAgents — 手机遥控 Claude Code、OpenAI Codex、Antigravity IDE 与 DeepSeek Harness" width="100%" />
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
|
-
<strong>
|
|
5
|
+
<strong>PocketAgents</strong> —— <strong>把电脑上正在跑的 <a href="#支持的-ai-编程工具">Claude Code、OpenAI Codex、Antigravity IDE、DeepSeek Harness (DSH) 与 WorkBuddy</a> 装进手机口袋 —— 100% 开源自托管、零第三方中继。<br/>手机滑卡批阅、一键放行命令与多选弹窗、微信式按住说话插话、或点 <code>🔊 播报</code> 直接听结论。</strong>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
-
<a href="https://
|
|
9
|
+
<a href="https://pocketagents.agentrun.vip/?demo=1&lang=zh"><img src="https://img.shields.io/badge/%E2%9C%A8_%E5%9C%A8%E7%BA%BF%E4%BA%A4%E4%BA%92%E4%BD%93%E9%AA%8C_Demo-%E5%85%8D%E5%AE%89%E8%A3%85%E7%A7%92%E5%BC%80-10b981?style=for-the-badge" alt="在线交互体验 Demo" height="32" /></a>
|
|
10
10
|
|
|
11
11
|
<a href="https://railway.com/deploy/dsh-remote-control-hub?referralCode=44kg1p&utm_medium=integration&utm_source=template&utm_campaign=generic"><img src="https://railway.com/button.svg" alt="Deploy on Railway" height="32" /></a>
|
|
12
12
|
</p>
|
|
@@ -32,7 +32,7 @@ npx pocketagents
|
|
|
32
32
|
</p>
|
|
33
33
|
|
|
34
34
|
<p align="center">
|
|
35
|
-
<a href="./README.md">🇺🇸 English</a> · <strong>🇨🇳 简体中文</strong> · <a href="https://
|
|
35
|
+
<a href="./README.md">🇺🇸 English</a> · <strong>🇨🇳 简体中文</strong> · <a href="https://pocketagents.agentrun.vip/?demo=1&lang=zh">✨ 在线 Demo</a> · <a href="#三步快速上手">4G/5G 跨网部署</a> · <a href="#支持的-ai-编程工具">支持工具</a> · <a href="#最近版本更新记录">版本更新</a> · <a href="#常见问题">常见问题</a>
|
|
36
36
|
</p>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
@@ -111,7 +111,7 @@ npx pocketagents
|
|
|
111
111
|
>
|
|
112
112
|
> **🔌 如果你在使用 DeepSeek Harness (DSH >= 0.2.0)**,也可以直接在 **DSH 插件市场** 搜索安装,或运行:
|
|
113
113
|
> ```bash
|
|
114
|
-
> dsh plugin --profile desktop add github:oscarka/
|
|
114
|
+
> dsh plugin --profile desktop add github:oscarka/pocketagents
|
|
115
115
|
> # 若使用 dsh web,可将 desktop 换成 web
|
|
116
116
|
> ```
|
|
117
117
|
> 想出门在外用 **4G/5G 跨网 24 小时随时遥控多台电脑**?按下面 3 步部署你自己的云端总控台:
|
|
@@ -129,8 +129,8 @@ npx pocketagents
|
|
|
129
129
|
不需要云服务器,也不需要装 Docker。只要电脑有 Node.js(>= 20),克隆仓库加密码参数直接启动:
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
|
-
git clone https://github.com/oscarka/
|
|
133
|
-
cd
|
|
132
|
+
git clone https://github.com/oscarka/pocketagents.git
|
|
133
|
+
cd pocketagents
|
|
134
134
|
|
|
135
135
|
# 把「自定义一个密码」换成你自己的密码
|
|
136
136
|
HUB_TOKEN="自定义一个密码" PORT=8080 npm start
|
|
@@ -141,20 +141,20 @@ HUB_TOKEN="自定义一个密码" PORT=8080 npm start
|
|
|
141
141
|
如果你有自己的轻量云服务器 / VPS(推荐搭配 Nginx + Cloudflare 边缘 CDN 开启 HTTP/2 & HTTP/3 加速)、群晖 NAS 或软路由,可以直接用一行 Docker 命令启动(或者本机 `npm start` 搭配 `cloudflared` / `cpolar` / `Tailscale`):
|
|
142
142
|
|
|
143
143
|
```bash
|
|
144
|
-
docker run -d --name
|
|
144
|
+
docker run -d --name pocketagents-hub \
|
|
145
145
|
--restart unless-stopped \
|
|
146
146
|
-p 8080:8080 \
|
|
147
147
|
-v dsh-hub-data:/data \
|
|
148
148
|
-e HUB_TOKEN="自定义一个密码" \
|
|
149
|
-
ghcr.io/oscarka/
|
|
149
|
+
ghcr.io/oscarka/pocketagents:latest
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
#### ☁️ 方式 D:Google Cloud Run 云端脚本部署
|
|
153
153
|
如果你习惯使用 GCP `gcloud` 命令行部署,可直接运行项目自带的一键脚本(提示:由于接入的电脑守护进程会 24 小时保持 SSE 与心跳长连接,电脑在线期间 Cloud Run 实例会保持常驻计费而不会缩容到 0;多机长期在线更推荐上面的 Railway 或轻量 VPS 方案):
|
|
154
154
|
|
|
155
155
|
```bash
|
|
156
|
-
git clone https://github.com/oscarka/
|
|
157
|
-
cd
|
|
156
|
+
git clone https://github.com/oscarka/pocketagents.git
|
|
157
|
+
cd pocketagents
|
|
158
158
|
|
|
159
159
|
# 把 your-gcp-project-id 换成你的 Google Cloud 项目 ID,密码换成你自己的密码
|
|
160
160
|
GCP_PROJECT_ID="your-gcp-project-id" \
|
|
@@ -223,9 +223,16 @@ HUB_TOKEN="自定义一个安全密码" \
|
|
|
223
223
|
> 💡 按**自然日**折叠汇总,每条内保留完整子版本号;逐版本详细变更请见 [`CHANGELOG.md`](CHANGELOG.md)。
|
|
224
224
|
|
|
225
225
|
<details>
|
|
226
|
-
<summary><strong><code>2026-11-
|
|
226
|
+
<summary><strong><code>2026-11-20 · v0.9.1</code> — 全线统一 <code>pocketagents</code>、根治「已出结论」漏显与左侧边缘防误触返回</strong></summary>
|
|
227
227
|
|
|
228
|
-
-
|
|
228
|
+
- **全线统一 `pocketagents` & 核心体验打磨(`v0.9.1`)**:GitHub 仓库(`oscarka/pocketagents`)、npm 包(`npx pocketagents` + OIDC Provenance)、Docker 镜像(`ghcr.io/oscarka/pocketagents:latest`)与在线体验域名(`https://pocketagents.agentrun.vip/?demo=1`)四合一对齐;对话页滑动返回收紧为仅限屏幕左侧边缘带(约 14%、48–72px)向右滑,并全链路根治 Antigravity `lastConclusionAt` 早于真实完结时间、极速 `idle → idle` 回复漏标未读、非结论已读回执覆盖以及后台锁屏静默已读等 4 类「已出结论」漏显问题。
|
|
229
|
+
|
|
230
|
+
</details>
|
|
231
|
+
|
|
232
|
+
<details>
|
|
233
|
+
<summary><strong><code>2026-11-19 · v0.8.9–v0.9.0</code> — 正式更名 PocketAgents(<code>npx pocketagents</code>)、Claude Code 审批、Antigravity 多选题 & <code>?demo=1</code> 沙盒</strong></summary>
|
|
234
|
+
|
|
235
|
+
- **品牌升级为 PocketAgents(`v0.9.0`)**:GitHub 仓库原地更名为 `oscarka/pocketagents`(原 `deepseekharness-remotecontrol` 链接永久 301 自动跳转兼容 DSH 插件市场),主命令与容器镜像全面切换为 `npx pocketagents` 与 `ghcr.io/oscarka/pocketagents:latest`。
|
|
229
236
|
|
|
230
237
|
- **修复 Antigravity `ask_question` 多选题渲染与提交续跑(`v0.8.20–v0.8.21`)**:完整解析 `ask_question` 的单选/多选题目并支持从 `transcript_full.jsonl` 回补被截断的 `tool_calls`,将 `kind: 'question'` 与完整选项数组透传至手机审批卡与滑卡批阅;提交时先通过 `CancelCascadeInvocation` 解除等待态,再通过 `SendUserCascadeMessage` 直接发送勾选结果,根治此前提交被误判为「跳过弹窗」并停跑的问题。
|
|
231
238
|
- **Claude Code 原生手机审批与滑卡批阅全面打通(`v0.8.19`)**:新增官方 `PermissionRequest` Hook 桥接脚本(`claude-permission-hook.js` + `--install-claude-hook` / `npx` 启动自动装配)与 `<120ms` FSEvents 瞬时监听,支持手机端一键放行、`本对话始终允许`(`updatedPermissions`)、拒绝与 `AskUserQuestion` 多选题回传,自此五大主力引擎(Claude Code、Codex、Antigravity IDE、DSH、WorkBuddy)全部满血支持手机审批。
|
package/connect-host.sh
CHANGED
|
@@ -215,7 +215,7 @@ if [ -z "$SCRIPT_DIR" ] && [ -n "${BASH_SOURCE[0]:-}" ] && [ -f "${BASH_SOURCE[0
|
|
|
215
215
|
fi
|
|
216
216
|
|
|
217
217
|
if [ -z "$SCRIPT_DIR" ]; then
|
|
218
|
-
for local_candidate in "$PWD" "$HOME/pocketagent" "$HOME/deepseekharness-remote" "$HOME/deepseekharness-remotecontrol"; do
|
|
218
|
+
for local_candidate in "$PWD" "$HOME/pocketagents" "$HOME/pocketagent" "$HOME/deepseekharness-remote" "$HOME/deepseekharness-remotecontrol"; do
|
|
219
219
|
if [ -f "$local_candidate/dsh-feishu/daemon.mjs" ]; then
|
|
220
220
|
SCRIPT_DIR="$(cd "$local_candidate" && pwd)"
|
|
221
221
|
echo "📦 检测到本地客户端代码目录,直接复用: $SCRIPT_DIR"
|
|
@@ -226,7 +226,7 @@ fi
|
|
|
226
226
|
|
|
227
227
|
if [ -z "$SCRIPT_DIR" ]; then
|
|
228
228
|
REPO_DIR="$DSH_DIR/remotecontrol"
|
|
229
|
-
REPO_URL="${DSH_REPO_URL:-https://github.com/oscarka/
|
|
229
|
+
REPO_URL="${DSH_REPO_URL:-https://github.com/oscarka/pocketagents.git}"
|
|
230
230
|
if [ -d "$REPO_DIR/.git" ]; then
|
|
231
231
|
echo "📦 正在更新本地客户端仓库 ($REPO_DIR)..."
|
|
232
232
|
git -C "$REPO_DIR" pull --ff-only origin main >/dev/null 2>&1 || true
|
|
@@ -28,37 +28,37 @@
|
|
|
28
28
|
fetch(link.href, fetchOpts);
|
|
29
29
|
}
|
|
30
30
|
})();
|
|
31
|
-
// node_modules
|
|
31
|
+
// node_modules/preact/dist/preact.mjs
|
|
32
32
|
var n;
|
|
33
33
|
var t;
|
|
34
|
-
var i;
|
|
35
34
|
var u;
|
|
35
|
+
var i;
|
|
36
36
|
var f;
|
|
37
|
-
var e;
|
|
38
37
|
var o;
|
|
38
|
+
var e;
|
|
39
39
|
var l;
|
|
40
40
|
var c;
|
|
41
41
|
var a;
|
|
42
42
|
var h = Symbol.for("pv");
|
|
43
43
|
var p = {};
|
|
44
|
-
var
|
|
45
|
-
var
|
|
44
|
+
var y = [];
|
|
45
|
+
var v = /^m(i|n|o|s|text|space)$/;
|
|
46
46
|
var w = Array.isArray;
|
|
47
|
-
var d =
|
|
47
|
+
var d = y.slice;
|
|
48
48
|
var _ = Object.assign;
|
|
49
49
|
function g(n) {
|
|
50
50
|
n && n.parentNode && n.remove();
|
|
51
51
|
}
|
|
52
52
|
function k(n, t, r) {
|
|
53
|
-
var
|
|
54
|
-
for (f in t) "key" == f ?
|
|
55
|
-
return
|
|
53
|
+
var u, i, f, o = {}, e = arguments.length;
|
|
54
|
+
for (f in t) "key" == f ? u = t[f] : "ref" == f && "function" != typeof n ? i = t[f] : o[f] = t[f];
|
|
55
|
+
return e > 2 && (o.children = e > 3 ? d.call(arguments, 2) : r), m(n, o, u, i, null);
|
|
56
56
|
}
|
|
57
|
-
function m(r,
|
|
58
|
-
var
|
|
57
|
+
function m(r, u, i, f, o) {
|
|
58
|
+
var e = {
|
|
59
59
|
type: r,
|
|
60
|
-
props:
|
|
61
|
-
key:
|
|
60
|
+
props: u,
|
|
61
|
+
key: i,
|
|
62
62
|
ref: f,
|
|
63
63
|
__k: null,
|
|
64
64
|
__: null,
|
|
@@ -66,13 +66,13 @@ function m(r, i, u, f, e) {
|
|
|
66
66
|
__e: null,
|
|
67
67
|
__c: null,
|
|
68
68
|
constructor: h,
|
|
69
|
-
__v:
|
|
69
|
+
__v: o || ++t,
|
|
70
70
|
__i: -1,
|
|
71
71
|
__u: 0
|
|
72
72
|
};
|
|
73
|
-
return !
|
|
73
|
+
return !o && n.vnode && n.vnode(e), e;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function $(n) {
|
|
76
76
|
return n.children;
|
|
77
77
|
}
|
|
78
78
|
function x(n, t) {
|
|
@@ -83,73 +83,76 @@ function S(n, t) {
|
|
|
83
83
|
for (var r; t < n.__k.length; t++) if ((r = n.__k[t]) && r.__e) return r.__e;
|
|
84
84
|
return "function" != typeof n.type || n.props.__P ? null : S(n);
|
|
85
85
|
}
|
|
86
|
-
function C(
|
|
86
|
+
function C(t) {
|
|
87
|
+
var r, u = t.__v, i = u.__e, f = [], o = [], e = t.__P;
|
|
88
|
+
e && ((r = _({ constructor: h }, u)).__v = u.__v + 1, n.vnode && n.vnode(r), z(e, r, u, t.__n, e.namespaceURI, 32 & u.__u ? [i] : null, f, i || S(u), 32 & u.__u, o), r.__v = u.__v, r.__.__k[r.__i] = r, E(f, r, o), u.__ = u.__e = null, r.__e != i && j(r));
|
|
89
|
+
}
|
|
90
|
+
function j(n) {
|
|
87
91
|
if ((n = n.__) && n.__c && !n.props.__P) return n.__e = null, n.__k.some(function(t) {
|
|
88
92
|
return t && (n.__e = t.__e);
|
|
89
|
-
}),
|
|
93
|
+
}), j(n);
|
|
90
94
|
}
|
|
91
|
-
function
|
|
92
|
-
(8 & t.__g || (t.__g |= 8,
|
|
95
|
+
function L(t) {
|
|
96
|
+
(8 & t.__g || (t.__g |= 8, u.push(t), f++)) && i == n.debounceRendering || ((i = n.debounceRendering) || queueMicrotask)(H);
|
|
93
97
|
}
|
|
94
|
-
function
|
|
95
|
-
var t, r, o, l, c, a, s, p, v;
|
|
98
|
+
function H() {
|
|
96
99
|
try {
|
|
97
|
-
for (
|
|
100
|
+
for (var n, t = 1; u.length;) u.length > t && u.sort(o), n = u.shift(), t = u.length, 8 & n.__g && C(n);
|
|
98
101
|
} finally {
|
|
99
|
-
(f =
|
|
102
|
+
(f = u.length) && (i || queueMicrotask)(H);
|
|
100
103
|
}
|
|
101
104
|
}
|
|
102
|
-
function
|
|
103
|
-
var s, h,
|
|
104
|
-
for (l =
|
|
105
|
+
function I(n, t, r, u, i, f, o, e, l, c, a) {
|
|
106
|
+
var s, h, v, w, d, _, g = u.__k || y, k = t.length;
|
|
107
|
+
for (l = q(r, t, g, l, k), s = 0; s < k; s++) null != (v = r.__k[s]) && (h = ~v.__i && g[v.__i] || p, v.__i = s, _ = z(n, v, h, i, f, o, e, l, c, a), w = v.__e, (h.ref != v.ref || 8 & h.__u) && (h.ref && G(h.ref, null, v, h), v.ref && a.push(v.ref, v.__c || w, v)), d = d || w, 4 & v.__u ? (l = A(v, l, n, !h.__v), h.__e && (h.__e = null)) : "function" == typeof v.type && void 0 !== _ ? l = _ : w && (l = w.nextSibling), v.__u &= -21);
|
|
105
108
|
return r.__e = d, l;
|
|
106
109
|
}
|
|
107
|
-
function
|
|
108
|
-
var f,
|
|
109
|
-
for (f = 0; f <
|
|
110
|
+
function q(n, t, r, u, i) {
|
|
111
|
+
var f, o, e, l, c, a, s, p, y, v = r.length, d = v, _ = 0, g = 0, k = n.__k = Array(i);
|
|
112
|
+
for (f = 0; f < i; f++) null != (o = t[f]) && "boolean" != typeof o && "function" != typeof o ? ("object" != typeof o || o.constructor === String ? o = k[f] = m(null, o) : w(o) ? o = k[f] = m($, { children: o }) : o.constructor === h && o.__b ? o = k[f] = m(o.type, o.props, o.key, o.ref, o.__v) : k[f] = o, l = f + _, o.__ = n, o.__b = n.__b + 1, e = null, ~(c = o.__i = P(o, r, l, d)) && (d--, (e = r[c]) && (e.__u |= 2)), e && e.__v ? (o.__u |= 16, c == l - 1 ? _-- : c == l + 1 ? _++ : c != l && (c > l ? _-- : _++, g = 1)) : (~c || (i > v ? _-- : i < v && _++), "function" != typeof o.type && (o.__u |= 4))) : k[f] = null;
|
|
110
113
|
if (g) {
|
|
111
|
-
for (a = [], s = [], f = 0; f <
|
|
112
|
-
for (_ = 0, p = a.length; _ < p;) a[
|
|
113
|
-
a[_] =
|
|
114
|
+
for (a = [], s = [], f = 0; f < i; f++) if ((o = k[f]) && 16 & o.__u) {
|
|
115
|
+
for (_ = 0, p = a.length; _ < p;) a[y = _ + p >> 1] < o.__i ? _ = y + 1 : p = y;
|
|
116
|
+
a[_] = o.__i, s[f] = _ + 1;
|
|
114
117
|
}
|
|
115
118
|
for (_ = a.length; f--;) s[f] && (s[f] == _ ? _-- : k[f].__u |= 4);
|
|
116
119
|
}
|
|
117
|
-
if (d) for (f = 0; f <
|
|
118
|
-
return
|
|
120
|
+
if (d) for (f = 0; f < v; f++) !(e = r[f]) || 2 & e.__u || (e.__e == u && (u = S(e)), J(e, e));
|
|
121
|
+
return u;
|
|
119
122
|
}
|
|
120
|
-
function
|
|
121
|
-
var
|
|
123
|
+
function A(n, t, r, u) {
|
|
124
|
+
var i, f, o, e;
|
|
122
125
|
if ("function" == typeof n.type) {
|
|
123
126
|
if (n.props.__P) return t;
|
|
124
|
-
if (
|
|
127
|
+
if (i = n.__k) for (f = 0; f < i.length; f++) i[f] && (i[f].__ = n, t = A(i[f], t, r, !1));
|
|
125
128
|
return t;
|
|
126
129
|
}
|
|
127
|
-
for (t && !t.parentNode && (t = S(n)) && !t.parentNode && (t = null),
|
|
128
|
-
for (
|
|
130
|
+
for (t && !t.parentNode && (t = S(n)) && !t.parentNode && (t = null), o = n.__e, e = t; e && 8 == e.nodeType;) e = e.nextSibling;
|
|
131
|
+
for (o != e && (!u && r.moveBefore && o.parentNode ? r.moveBefore(o, t) : r.insertBefore(o, t || null)), t = o; (t = t && t.nextSibling) && 8 == t.nodeType && !t.data.startsWith("$s"););
|
|
129
132
|
return t;
|
|
130
133
|
}
|
|
131
|
-
function
|
|
132
|
-
var
|
|
133
|
-
if (null ===
|
|
134
|
-
if (
|
|
135
|
-
for (
|
|
136
|
-
for (
|
|
134
|
+
function P(n, t, r, u) {
|
|
135
|
+
var i, f = n.key, o = n.type, e = t[r], l = e && !(2 & e.__u);
|
|
136
|
+
if (null === e && null == f || l && f == e.key && o == e.type) return r;
|
|
137
|
+
if (u > (l ? 1 : 0)) {
|
|
138
|
+
for (i = r - 1; i >= 0; i--) if ((e = t[i]) && !(2 & e.__u) && f == e.key && o == e.type) return i;
|
|
139
|
+
for (i = r + 1; i < t.length; i++) if ((e = t[i]) && !(2 & e.__u) && f == e.key && o == e.type) return i;
|
|
137
140
|
}
|
|
138
141
|
return -1;
|
|
139
142
|
}
|
|
140
|
-
function
|
|
143
|
+
function T(n, t, r) {
|
|
141
144
|
r ??= "", "-" == t[0] ? n.setProperty(t, r) : n[t] = r;
|
|
142
145
|
}
|
|
143
|
-
function
|
|
144
|
-
var f,
|
|
146
|
+
function N(n, t, r, u, i) {
|
|
147
|
+
var f, o;
|
|
145
148
|
if ("style" == t) if ("string" == typeof r) n.style.cssText = r;
|
|
146
149
|
else {
|
|
147
|
-
if ("string" == typeof
|
|
148
|
-
if (r) for (t in r)
|
|
150
|
+
if ("string" == typeof u && (n.style.cssText = u = ""), u) for (t in u) r && t in r || T(n.style, t);
|
|
151
|
+
if (r) for (t in r) u && r[t] == u[t] || T(n.style, t, r[t]);
|
|
149
152
|
}
|
|
150
|
-
else if ("o" == t[0] && "n" == t[1]) (n.__e || (n.__e = {}))[t] = r, r &&
|
|
153
|
+
else if ("o" == t[0] && "n" == t[1]) "function" != typeof r && (r = null), "function" != typeof u && (u = null), (n.__e || (n.__e = {}))[t] = r, r && u || (o = a[t] || (a[t] = V(t)), (n.__a || (n.__a = {}))[t] = c, f = t != (t = t.replace(l, "$1")), (t = t.slice(2))[0] < "a" && (t = t.toLowerCase()), r ? n.addEventListener(t, o, f) : n.removeEventListener(t, o, f));
|
|
151
154
|
else {
|
|
152
|
-
if ("http://www.w3.org/2000/svg" ==
|
|
155
|
+
if ("http://www.w3.org/2000/svg" == i) t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
153
156
|
else if ("width" != t && "height" != t && "href" != t && "list" != t && "form" != t && "tabIndex" != t && "download" != t && "rowSpan" != t && "colSpan" != t && "role" != t && "popover" != t && t in n) try {
|
|
154
157
|
n[t] = null == r ? "" : r;
|
|
155
158
|
return;
|
|
@@ -158,65 +161,65 @@ function T(n, t, r, i, u) {
|
|
|
158
161
|
null == r || !1 === r && "-" != t[4] ? n.removeAttribute(t) : n.setAttribute(t, "popover" == t && 1 == r ? "" : r);
|
|
159
162
|
}
|
|
160
163
|
}
|
|
161
|
-
function
|
|
164
|
+
function V(t) {
|
|
162
165
|
return function(r) {
|
|
163
|
-
var
|
|
164
|
-
if (
|
|
165
|
-
if (
|
|
166
|
-
else if (r[
|
|
167
|
-
return
|
|
166
|
+
var u = this.__e;
|
|
167
|
+
if (u) {
|
|
168
|
+
if (u = u[t], null == r[e]) r[e] = c++;
|
|
169
|
+
else if (r[e] < this.__a[t]) return;
|
|
170
|
+
return u(n.event ? n.event(r) : r);
|
|
168
171
|
}
|
|
169
172
|
};
|
|
170
173
|
}
|
|
171
|
-
function
|
|
172
|
-
var s, p,
|
|
174
|
+
function z(t, r, u, i, f, o, e, l, c, a) {
|
|
175
|
+
var s, p, v, d, k, b, m, M, C, j, L, H, q, A, O, P, T, N, V = r.type;
|
|
173
176
|
if (r.constructor !== h) return null;
|
|
174
|
-
128 &
|
|
177
|
+
128 & u.__u && (c = 32 & u.__u, s = u.__c.__z) && (r.__u |= c, p = o = [], 8 == s.nodeType ? l = B(s, o) : o.push(s), l = o[0] || l), (s = n.__b) && s(r);
|
|
175
178
|
n: if ("function" == typeof V) {
|
|
176
|
-
|
|
179
|
+
v = e.length;
|
|
177
180
|
try {
|
|
178
|
-
if (
|
|
179
|
-
if (
|
|
180
|
-
r.__v !=
|
|
181
|
+
if (M = r.props, C = (s = V.prototype) && s.render, j = (s = V.contextType) && i[s.__c], L = s ? j ? j.props.value : s.__ : i, (d = u.__c) ? (r.__c = d, 2 & d.__g && (d.__g |= 1)) : (C ? r.__c = d = new V(M, L) : (r.__c = d = new x(M, L), d.constructor = V, d.render = K), j && j.sub(d), d.state || (d.state = {}), d.__n = i, d.__g |= 8, d.__h = [], d.__k = []), C && (d.__s || (d.__s = d.state), V.getDerivedStateFromProps && (d.__s == d.state && (d.__s = _({}, d.__s)), _(d.__s, V.getDerivedStateFromProps(M, d.__s)))), k = d.props, b = d.state, d.__v = r, u.__c) {
|
|
182
|
+
if (M !== k && C && !V.getDerivedStateFromProps && d.componentWillReceiveProps && d.componentWillReceiveProps(M, L), r.__v == u.__v && !(8 & d.__g) || !(4 & d.__g) && d.shouldComponentUpdate && !1 === d.shouldComponentUpdate(M, d.__s, L)) {
|
|
183
|
+
r.__v != u.__v && (d.props = M, d.state = d.__s, d.__g &= -9), r.__e = u.__e, r.__k = u.__k, r.__k.some(function(n) {
|
|
181
184
|
n && (n.__ = r);
|
|
182
|
-
}),
|
|
185
|
+
}), y.push.apply(d.__h, d.__k), d.__k = [], d.__h.length && e.push(d), l = S(u);
|
|
183
186
|
break n;
|
|
184
187
|
}
|
|
185
|
-
d.componentWillUpdate && d.componentWillUpdate(
|
|
188
|
+
d.componentWillUpdate && d.componentWillUpdate(M, d.__s, L), C && d.componentDidUpdate && d.__h.push(function() {
|
|
186
189
|
d.componentDidUpdate(k, b, m);
|
|
187
190
|
});
|
|
188
191
|
} else C && !V.getDerivedStateFromProps && d.componentWillMount && d.componentWillMount(), C && d.componentDidMount && d.__h.push(d.componentDidMount);
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
d.__g &= -9,
|
|
192
|
+
d.context = L, d.props = M, d.__P = t, d.__g &= -5, H = n.__r, q = C ? 25 : 0;
|
|
193
|
+
do
|
|
194
|
+
d.__g &= -9, H && H(r), s = d.render(d.props, d.state = d.__s, d.context);
|
|
192
195
|
while (8 & d.__g && ++q < 25);
|
|
193
|
-
d.state = d.__s, d.getChildContext && (
|
|
194
|
-
n &&
|
|
195
|
-
}),
|
|
196
|
+
C && (y.push.apply(d.__h, d.__k), d.__k = []), d.state = d.__s, d.getChildContext && (i = _({}, i, d.getChildContext())), C && u.__c && d.getSnapshotBeforeUpdate && (m = d.getSnapshotBeforeUpdate(k, b)), A = s && s.type === $ && null == s.key ? s.props.children : s, M.__P && (s = l, f = (t = M.__P).namespaceURI, c = o = null, u.props && u.props.__P != t && (u.__k.some(function(n) {
|
|
197
|
+
n && J(n, n);
|
|
198
|
+
}), u.__k = null), l = u.__k ? S(u, 0) : null), l = I(t, w(A) ? A : [A], r, u, i, f, o, e, l, c, a), M.__P && (r.__e = null, l = s), r.__u &= -161, p && p.some(g), d.__h.length && e.push(d), 1 & d.__g && (d.__g &= -4);
|
|
196
199
|
} catch (t) {
|
|
197
|
-
if (
|
|
198
|
-
if (
|
|
199
|
-
for (~(T =
|
|
200
|
-
for (; T <
|
|
201
|
-
if (
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
if (e.length = v, r.__v = null, c || o) if (t && t.then) {
|
|
201
|
+
if (r.__u |= 128 | c, o) {
|
|
202
|
+
for (~(T = o.indexOf(l || void 0)) || (T = o.length); (N = o[T - 1]) && 8 == N.nodeType;) T--;
|
|
203
|
+
for (; T < o.length; T++) if (N = o[T]) if (o[T] = null, O) {
|
|
204
|
+
if (N == P) break;
|
|
205
|
+
} else {
|
|
206
|
+
if (8 != N.nodeType) break;
|
|
207
|
+
N.data.startsWith("$s") && (P = B(O = N));
|
|
205
208
|
}
|
|
206
209
|
}
|
|
207
|
-
if (!
|
|
210
|
+
if (!O) {
|
|
208
211
|
for (; l && 8 == l.nodeType && l.nextSibling;) l = l.nextSibling;
|
|
209
|
-
|
|
212
|
+
O = l;
|
|
210
213
|
}
|
|
211
|
-
(s =
|
|
212
|
-
} else
|
|
213
|
-
else r.__e =
|
|
214
|
-
r.__k || (r.__k =
|
|
214
|
+
(s = B(O = r.__c.__z || (r.__c.__z = O))) ? (r.__e = O, l = s) : r.__e = l, l = l && l.nextSibling;
|
|
215
|
+
} else o && o.some(g);
|
|
216
|
+
else r.__e = u.__e;
|
|
217
|
+
r.__k || (r.__k = u.__k || []), t && t.then || D(r), n.__e(t, r, u);
|
|
215
218
|
}
|
|
216
|
-
} else l = r.__e =
|
|
219
|
+
} else l = r.__e = F(u.__e, r, u, i, f, o, e, c, a, t);
|
|
217
220
|
return (s = n.diffed) && s(r), l;
|
|
218
221
|
}
|
|
219
|
-
function
|
|
222
|
+
function B(n, t) {
|
|
220
223
|
if (n && 8 == n.nodeType && n.data.startsWith("$s")) for (var r = 1; n = n.nextSibling;) {
|
|
221
224
|
if (8 == n.nodeType) {
|
|
222
225
|
if (n.data.startsWith("$s")) r++;
|
|
@@ -225,11 +228,11 @@ function z(n, t) {
|
|
|
225
228
|
t && t.push(n);
|
|
226
229
|
}
|
|
227
230
|
}
|
|
228
|
-
function
|
|
229
|
-
n && (n.__c && (n.__c.__g |= 4), n.__k && n.__k.some(
|
|
231
|
+
function D(n) {
|
|
232
|
+
n && (n.__c && (n.__c.__g |= 4), n.__k && n.__k.some(D));
|
|
230
233
|
}
|
|
231
|
-
function
|
|
232
|
-
for (var
|
|
234
|
+
function E(t, r, u) {
|
|
235
|
+
for (var i = 0; i < u.length;) G(u[i++], u[i++], u[i++]);
|
|
233
236
|
n.__c && n.__c(r, t), t.some(function(r) {
|
|
234
237
|
try {
|
|
235
238
|
t = r.__h, r.__h = [], t.some(function(n) {
|
|
@@ -240,58 +243,58 @@ function D(t, r, i) {
|
|
|
240
243
|
}
|
|
241
244
|
});
|
|
242
245
|
}
|
|
243
|
-
function
|
|
244
|
-
var s, h,
|
|
245
|
-
if ("svg" ==
|
|
246
|
-
for (s = 0; s <
|
|
247
|
-
t = k,
|
|
246
|
+
function F(t, r, u, i, f, o, e, l, c, a) {
|
|
247
|
+
var s, h, y, _, k, b, m, M, $ = u.props || p, x = r.props, C = r.type;
|
|
248
|
+
if ("svg" == C ? f = "http://www.w3.org/2000/svg" : "math" == C ? f = "http://www.w3.org/1998/Math/MathML" : f || (f = "http://www.w3.org/1999/xhtml"), o) {
|
|
249
|
+
for (s = 0; s < o.length; s++) if ((k = o[s]) && (C ? k.localName == C : 3 == k.nodeType)) {
|
|
250
|
+
t = k, o[s] = null;
|
|
248
251
|
break;
|
|
249
252
|
}
|
|
250
253
|
}
|
|
251
254
|
if (!t) {
|
|
252
|
-
if (
|
|
253
|
-
t =
|
|
254
|
-
}
|
|
255
|
-
if (
|
|
256
|
-
if (a = "template" ==
|
|
257
|
-
for (s in
|
|
258
|
-
for (s in
|
|
259
|
-
h ? (l ||
|
|
260
|
-
} else
|
|
255
|
+
if (M = a.ownerDocument || document, !C) return M.createTextNode(x);
|
|
256
|
+
t = M.createElementNS(f, C, x.is ? x : a), l && (n.__m && n.__m(r, o), l = !1), o = null;
|
|
257
|
+
}
|
|
258
|
+
if (C) {
|
|
259
|
+
if (a = "template" == C && t.content || t, o = "textarea" == C && null != x.defaultValue ? null : o && d.call(a.childNodes), !l && o) for ($ = {}, s = 0; s < t.attributes.length; s++) $[(k = t.attributes[s]).name] = k.value;
|
|
260
|
+
for (s in $) k = $[s], "dangerouslySetInnerHTML" == s ? y = k : "children" == s || s in x || "value" == s && "defaultValue" in x || "checked" == s && "defaultChecked" in x || N(t, s, null, k, f);
|
|
261
|
+
for (s in x) k = x[s], "children" == s ? _ = k : "dangerouslySetInnerHTML" == s ? h = k : "value" == s ? b = k : "checked" == s ? m = k : l && "function" != typeof k || $[s] === k || N(t, s, k, $[s], f);
|
|
262
|
+
h ? (l || y && (h.__html == y.__html || h.__html == t.innerHTML) || (t.innerHTML = h.__html), r.__k = []) : (y && (t.textContent = ""), ("foreignObject" == C || "http://www.w3.org/1998/Math/MathML" == f && v.test(C)) && (f = "http://www.w3.org/1999/xhtml"), I(a, w(_) ? _ : [_], r, u, i, f, o, e, o ? o[0] : u.__k && S(u, 0), l, c), o && o.some(g)), l && "textarea" != C || (s = "value", "progress" == C && null == b ? t.removeAttribute(s) : null == b || b === t[s] && ("progress" != C || b) || N(t, s, b, $[s], f), s = "checked", null != m && m != t[s] && N(t, s, m, $[s], f));
|
|
263
|
+
} else $ === x || l && t.data == x || (t.data = x);
|
|
261
264
|
return t;
|
|
262
265
|
}
|
|
263
|
-
function
|
|
266
|
+
function G(t, r, u, i) {
|
|
264
267
|
try {
|
|
265
|
-
"function" == typeof t ? r ? r.__x = t(r) || 1 :
|
|
268
|
+
"function" == typeof t ? r ? r.__x = t(r) || 1 : i && (i = i.__c || i.__e) && (r = i.__x) && (i.__x = null, "function" == typeof r ? r() : t(null)) : t.current = r;
|
|
266
269
|
} catch (t) {
|
|
267
|
-
n.__e(t,
|
|
270
|
+
n.__e(t, u);
|
|
268
271
|
}
|
|
269
272
|
}
|
|
270
|
-
function
|
|
271
|
-
var
|
|
272
|
-
if (n.unmount && n.unmount(t), !(
|
|
273
|
-
if (
|
|
274
|
-
|
|
273
|
+
function J(t, r, u) {
|
|
274
|
+
var i, f, o, e;
|
|
275
|
+
if (n.unmount && n.unmount(t), !(i = t.ref) || i.current && i.current != t.__e || G(i, null, r, t), i = t.__c) {
|
|
276
|
+
if (i.componentWillUnmount) try {
|
|
277
|
+
i.componentWillUnmount();
|
|
275
278
|
} catch (t) {
|
|
276
279
|
n.__e(t, r);
|
|
277
280
|
}
|
|
278
|
-
|
|
281
|
+
i.__P = i.__n = null;
|
|
279
282
|
}
|
|
280
|
-
if (
|
|
281
|
-
!
|
|
283
|
+
if (i = t.__k) for (e = 0; e < i.length; e++) i[e] && J(i[e], r, "function" != typeof t.type || u && !t.props.__P);
|
|
284
|
+
!u && (i = t.__c) && (i = i.__z) && (f = B(i, o = [])) && (i == t.__e && o.some(g), g(f), g(i)), u || g(t.__e), t.__e = t.__c = t.__ = null;
|
|
282
285
|
}
|
|
283
|
-
function
|
|
286
|
+
function K(n, t, r) {
|
|
284
287
|
return this.constructor(n, r);
|
|
285
288
|
}
|
|
286
|
-
function
|
|
287
|
-
var
|
|
288
|
-
n.__ && n.__(t, r), 9 == r.nodeType && (r = r.documentElement),
|
|
289
|
+
function Q(t, r) {
|
|
290
|
+
var u, i, f, o;
|
|
291
|
+
n.__ && n.__(t, r), 9 == r.nodeType && (r = r.documentElement), i = (u = t && 32 & t.__u) ? null : r.__k, r.__k = m($, { children: [t] }), f = [], o = [], z(r, r.__k, i || p, p, r.namespaceURI, i ? null : r.firstChild ? d.call(r.childNodes) : null, f, i ? i.__e : r.firstChild, u, o), E(f, r.__k, o), r.__k.props.children = null;
|
|
289
292
|
}
|
|
290
|
-
n = { __e: function(n, t, r,
|
|
291
|
-
for (var
|
|
292
|
-
|
|
293
|
+
n = { __e: function(n, t, r, u) {
|
|
294
|
+
for (var i, o, e; t = t.__;) if ((i = t.__c) && !(1 & i.__g)) {
|
|
295
|
+
i.__g |= 4;
|
|
293
296
|
try {
|
|
294
|
-
if ((
|
|
297
|
+
if ((e = (o = i.constructor) && o.getDerivedStateFromError) && i.setState(o.getDerivedStateFromError(n)), i.componentDidCatch && (i.componentDidCatch(n, u || {}), e = 1), e && 8 & i.__g) return void (i.__g |= 2);
|
|
295
298
|
} catch (t) {
|
|
296
299
|
n = t;
|
|
297
300
|
}
|
|
@@ -299,15 +302,15 @@ n = { __e: function(n, t, r, i) {
|
|
|
299
302
|
throw f = 0, n;
|
|
300
303
|
} }, t = 0, x.prototype.setState = function(n, t) {
|
|
301
304
|
var r = this.__s;
|
|
302
|
-
r && r != this.state || (r = this.__s = _({}, this.state)), "function" == typeof n && (n = n(_({}, r), this.props)), n && (_(r, n), this.__v && (t && this.__k.push(t),
|
|
305
|
+
r && r != this.state || (r = this.__s = _({}, this.state)), "function" == typeof n && (n = n(_({}, r), this.props)), n && (_(r, n), this.__v && (t && this.__k.push(t), L(this)));
|
|
303
306
|
}, x.prototype.forceUpdate = function(n) {
|
|
304
|
-
this.__v && (this.__g |= 4, n && this.__h.push(n),
|
|
305
|
-
}, x.prototype.render =
|
|
307
|
+
this.__v && (this.__g |= 4, n && this.__h.push(n), L(this));
|
|
308
|
+
}, x.prototype.render = $, u = [], f = 0, o = function(n, t) {
|
|
306
309
|
return n.__v.__b - t.__v.__b;
|
|
307
|
-
},
|
|
310
|
+
}, e = Symbol(), l = /(PointerCapture)$|Capture$/i, c = 0, a = {};
|
|
308
311
|
// hub/web/src/components/TopBar.tsx
|
|
309
312
|
function TopBar() {
|
|
310
|
-
return /* @__PURE__ */ k(
|
|
313
|
+
return /* @__PURE__ */ k($, null, /* @__PURE__ */ k("header", {
|
|
311
314
|
class: "top-bar",
|
|
312
315
|
id: "mobileTopHostBtn"
|
|
313
316
|
}, /* @__PURE__ */ k("div", { class: "top-bar-left" }, /* @__PURE__ */ k("button", {
|
|
@@ -353,7 +356,7 @@ function TopBar() {
|
|
|
353
356
|
title: "Reset Demo"
|
|
354
357
|
}, "↻"), /* @__PURE__ */ k("a", {
|
|
355
358
|
class: "demo-pill-btn",
|
|
356
|
-
href: "https://github.com/oscarka/
|
|
359
|
+
href: "https://github.com/oscarka/pocketagents",
|
|
357
360
|
target: "_blank",
|
|
358
361
|
rel: "noopener noreferrer"
|
|
359
362
|
}, "⭐ GitHub"))), /* @__PURE__ */ k("div", {
|
|
@@ -650,7 +653,7 @@ function Sheets() {
|
|
|
650
653
|
const closeIfBackdrop = (sheetId) => (e) => {
|
|
651
654
|
if (e.target === e.currentTarget) window.closeSheet?.(sheetId);
|
|
652
655
|
};
|
|
653
|
-
return /* @__PURE__ */ k(
|
|
656
|
+
return /* @__PURE__ */ k($, null, /* @__PURE__ */ k("div", {
|
|
654
657
|
class: "sheet-backdrop",
|
|
655
658
|
id: "hostSheet",
|
|
656
659
|
onClick: closeIfBackdrop("hostSheet")
|
|
@@ -1069,7 +1072,7 @@ var HARNESS_SVG_SPRITE = `<svg id="dshHarnessSvgDefs" width="24" height="24" vie
|
|
|
1069
1072
|
</defs>
|
|
1070
1073
|
</svg>`;
|
|
1071
1074
|
function App() {
|
|
1072
|
-
return /* @__PURE__ */ k(
|
|
1075
|
+
return /* @__PURE__ */ k($, null, /* @__PURE__ */ k("div", {
|
|
1073
1076
|
style: "position:fixed;left:-9999px;top:-9999px;width:24px;height:24px;overflow:hidden;opacity:0;pointer-events:none;",
|
|
1074
1077
|
"aria-hidden": "true",
|
|
1075
1078
|
dangerouslySetInnerHTML: { __html: HARNESS_SVG_SPRITE }
|
|
@@ -1611,8 +1614,14 @@ var __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
1611
1614
|
if (cspNonce) link.setAttribute("nonce", cspNonce);
|
|
1612
1615
|
document.head.appendChild(link);
|
|
1613
1616
|
if (isCss) return new Promise((res, rej) => {
|
|
1614
|
-
|
|
1615
|
-
|
|
1617
|
+
const handleSettle = (e) => {
|
|
1618
|
+
link.removeEventListener("load", handleSettle);
|
|
1619
|
+
link.removeEventListener("error", handleSettle);
|
|
1620
|
+
if (e.type === "error") rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`));
|
|
1621
|
+
else res(e);
|
|
1622
|
+
};
|
|
1623
|
+
link.addEventListener("load", handleSettle);
|
|
1624
|
+
link.addEventListener("error", handleSettle);
|
|
1616
1625
|
});
|
|
1617
1626
|
});
|
|
1618
1627
|
}).filter((p) => p !== void 0));
|
|
@@ -1634,7 +1643,7 @@ var __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
1634
1643
|
// hub/web/src/utils/hlsPlayer.js
|
|
1635
1644
|
var hlsModulePromise = null;
|
|
1636
1645
|
function loadHlsConstructor() {
|
|
1637
|
-
if (!hlsModulePromise) hlsModulePromise = __vitePreload(() => import("./vendor-hls.light-
|
|
1646
|
+
if (!hlsModulePromise) hlsModulePromise = __vitePreload(() => import("./vendor-hls.light-BQYJXjmZ.js").then((mod) => mod?.default || mod), []).catch(() => null);
|
|
1638
1647
|
return hlsModulePromise;
|
|
1639
1648
|
}
|
|
1640
1649
|
function isAppleSafariOrIosWebKit() {
|
|
@@ -7073,7 +7082,7 @@ function createTriageDeckController(deps) {
|
|
|
7073
7082
|
};
|
|
7074
7083
|
}
|
|
7075
7084
|
// hub/web/src/demo-sandbox.js
|
|
7076
|
-
var DEMO_REPO_URL = "https://github.com/oscarka/
|
|
7085
|
+
var DEMO_REPO_URL = "https://github.com/oscarka/pocketagents";
|
|
7077
7086
|
var DEMO_NPX_CMD = "npx pocketagents";
|
|
7078
7087
|
var DEMO_HTML_PREVIEW = `<!doctype html>
|
|
7079
7088
|
<html lang="en">
|
|
@@ -16542,6 +16551,6 @@ function initHubController() {
|
|
|
16542
16551
|
// hub/web/src/main.tsx
|
|
16543
16552
|
var root = document.getElementById("app");
|
|
16544
16553
|
if (root) {
|
|
16545
|
-
|
|
16554
|
+
Q(/* @__PURE__ */ k(App, null), root);
|
|
16546
16555
|
initHubController();
|
|
16547
16556
|
}
|
package/hub/public/index.html
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}, 6500);
|
|
69
69
|
})();
|
|
70
70
|
</script>
|
|
71
|
-
<script type="module" crossorigin src="/assets/index-
|
|
71
|
+
<script type="module" crossorigin src="/assets/index-D2Q9cm7y.js"></script>
|
|
72
72
|
<link rel="stylesheet" crossorigin href="/assets/index-1djM61e2.css">
|
|
73
73
|
</head>
|
|
74
74
|
<body class="PhoneFrameMode">
|
package/hub/server.js
CHANGED
|
@@ -88,7 +88,7 @@ export function validateHubStartupToken(token, { allowInsecureNoToken = false }
|
|
|
88
88
|
'❌ 拒绝无密码启动:未设置 HUB_TOKEN 环境变量。\n' +
|
|
89
89
|
' 为了防止控制台在公网裸奔,启动时必须指定管理员密码,例如:\n' +
|
|
90
90
|
' HUB_TOKEN="$(openssl rand -hex 16)" node hub/server.js\n' +
|
|
91
|
-
' docker run -d -p 8080:8080 -v dsh-data:/data -e HUB_TOKEN="你的密码" ghcr.io/oscarka/
|
|
91
|
+
' docker run -d -p 8080:8080 -v dsh-data:/data -e HUB_TOKEN="你的密码" ghcr.io/oscarka/pocketagents:latest',
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
return { ok: true, token: clean }
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pocketagents",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "PocketAgents — Self-hosted mobile remote control for Claude Code, OpenAI Codex, Antigravity IDE, DeepSeek Harness (DSH) & WorkBuddy. Swipe approvals, voice input, multi-host hub & terminal QR.",
|
|
7
7
|
"author": "oscarka",
|
|
8
8
|
"icon": "./icon.svg",
|
|
9
9
|
"main": "./index.js",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
],
|
|
68
68
|
"repository": {
|
|
69
69
|
"type": "git",
|
|
70
|
-
"url": "https://github.com/oscarka/
|
|
70
|
+
"url": "https://github.com/oscarka/pocketagents"
|
|
71
71
|
},
|
|
72
|
-
"homepage": "https://
|
|
72
|
+
"homepage": "https://pocketagents.agentrun.vip/?demo=1",
|
|
73
73
|
"bugs": {
|
|
74
|
-
"url": "https://github.com/oscarka/
|
|
74
|
+
"url": "https://github.com/oscarka/pocketagents/issues"
|
|
75
75
|
},
|
|
76
76
|
"engines": {
|
|
77
77
|
"node": ">=20",
|
package/scripts/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
2
|
+
// PocketAgents — One-command zero-config mobile console for Claude Code, OpenAI Codex, Antigravity IDE, DSH & WorkBuddy.
|
|
3
3
|
// Usage: npx pocketagents [--port 8788] [--hub-only] [--no-qr]
|
|
4
4
|
|
|
5
5
|
for (const k of [
|
|
@@ -106,7 +106,7 @@ export function parseCliArgs(argv = []) {
|
|
|
106
106
|
|
|
107
107
|
function printHelp() {
|
|
108
108
|
console.log(`
|
|
109
|
-
|
|
109
|
+
PocketAgents v${PKG_VERSION}
|
|
110
110
|
Control Claude Code, OpenAI Codex, Antigravity IDE, DeepSeek Harness & WorkBuddy from your phone.
|
|
111
111
|
|
|
112
112
|
Usage:
|
|
@@ -131,7 +131,7 @@ Examples:
|
|
|
131
131
|
npx pocketagents --hub-only # Run Hub only (for VPS / server)
|
|
132
132
|
|
|
133
133
|
Want 24/7 cellular (4G/5G) access away from home Wi-Fi?
|
|
134
|
-
Deploy on Railway (1-click) or Docker: https://github.com/oscarka/
|
|
134
|
+
Deploy on Railway (1-click) or Docker: https://github.com/oscarka/pocketagents
|
|
135
135
|
`.trim())
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -286,7 +286,7 @@ export async function runCli(argv = process.argv.slice(2)) {
|
|
|
286
286
|
const qrBlock = opts.noQr ? '' : renderTerminalQr(qrTargetUrl, { margin: 2, indent: ' ', useAnsi })
|
|
287
287
|
|
|
288
288
|
console.log('')
|
|
289
|
-
console.log(`🚀
|
|
289
|
+
console.log(`🚀 PocketAgents v${PKG_VERSION} — Ready on port ${localHub.port}`)
|
|
290
290
|
console.log(` 💻 Host: ${baseConfig.hostName} (${baseConfig.hostId})`)
|
|
291
291
|
if (!opts.hubOnly) {
|
|
292
292
|
console.log(` 🔌 Synced: ${summarizeDiscoveredSessions(hubAgent)}`)
|
|
@@ -314,7 +314,7 @@ export async function runCli(argv = process.argv.slice(2)) {
|
|
|
314
314
|
console.log('')
|
|
315
315
|
console.log(' 💡 Need 24/7 cellular (4G/5G) access away from Wi-Fi?')
|
|
316
316
|
console.log(' Deploy your own Hub in 1 click on Railway or Docker:')
|
|
317
|
-
console.log(' https://github.com/oscarka/
|
|
317
|
+
console.log(' https://github.com/oscarka/pocketagents')
|
|
318
318
|
console.log('')
|
|
319
319
|
|
|
320
320
|
if (opts.once) {
|
|
@@ -334,7 +334,7 @@ export async function runCli(argv = process.argv.slice(2)) {
|
|
|
334
334
|
const shutdown = async () => {
|
|
335
335
|
if (shuttingDown) return
|
|
336
336
|
shuttingDown = true
|
|
337
|
-
console.log('\n🛑 Stopping
|
|
337
|
+
console.log('\n🛑 Stopping PocketAgents...')
|
|
338
338
|
try {
|
|
339
339
|
hubAgent?.stop?.()
|
|
340
340
|
} catch {}
|
|
@@ -365,7 +365,7 @@ if (isInvokedAsCli()) {
|
|
|
365
365
|
process.exit(code)
|
|
366
366
|
})
|
|
367
367
|
.catch(err => {
|
|
368
|
-
console.error(`❌ Failed to start
|
|
368
|
+
console.error(`❌ Failed to start PocketAgents: ${err?.message || err}`)
|
|
369
369
|
process.exit(1)
|
|
370
370
|
})
|
|
371
371
|
}
|
package/dsh-feishu/README.md
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# dsh-feishu
|
|
2
|
-
|
|
3
|
-
把正在运行的 DSH 任务接到飞书,用**长连接**远程查看、停止、审批和继续;同时支持接入 **Google Cloud Run 页面总控台** 实现多台电脑共享同一个飞书机器人、一键切换主控电脑、以及页面化一键迁移/清理 DSH 数据。
|
|
4
|
-
|
|
5
|
-
## 使用方式
|
|
6
|
-
|
|
7
|
-
平时不推送。离开电脑时发「连接」(或点卡片上的「连接远程」)进入远程模式:
|
|
8
|
-
|
|
9
|
-
1. 先告诉你**有几个任务正在运行**。
|
|
10
|
-
2. 其余任务按最后互动时间排序。
|
|
11
|
-
3. 连接卡片顶部是「需要你」收件箱:待审批可直接批准/拒绝,最近异常和刚完成的任务可直接查看。
|
|
12
|
-
4. 点任意任务的「查看详情」直接打开,不用先选中或切换。
|
|
13
|
-
5. 运行中的任务只能停止;已完成/空闲的任务在详情底部有输入框,输入后直接让它继续。
|
|
14
|
-
6. 输入框提交后,**同一张详情卡**先变成「已发送,执行中…」,结果出来后原地变回可继续的状态;不会留下旧的输入框或停止按钮。
|
|
15
|
-
7. 连接期间只推**任务完成/异常**和**审批**;2 小时无操作自动断开。
|
|
16
|
-
8. 完成/异常推送**本身就是一张任务卡**:直接显示渲染后的输出和输入框,不需要再点「查看详情」。同一任务的新推送会把旧卡归档,避免留下多个可输入框。
|
|
17
|
-
9. 多台电脑接入 `FEISHU_HUB_URL` 时,发送 `主机` 或 `!hosts` 即可在飞书卡片中查看所有电脑并一键切换当前控制的电脑。
|
|
18
|
-
|
|
19
|
-
## 安装
|
|
20
|
-
|
|
21
|
-
Desktop App 使用 `desktop` profile:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
dsh plugin --profile desktop add /path/to/deepseekharness-remotecontrol/dsh-feishu
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
创建密钥文件(不要提交、不要发到聊天里):
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
install -m 600 /dev/null ~/.dsh/feishu.env
|
|
31
|
-
cat > ~/.dsh/feishu.env <<'EOF'
|
|
32
|
-
FEISHU_HOST_NAME=MacBook-Pro
|
|
33
|
-
FEISHU_APP_ID=cli_xxxxxxxxxxxxxxxx
|
|
34
|
-
FEISHU_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
35
|
-
FEISHU_ALLOWED_OPEN_IDS=ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
36
|
-
# 可选:接入 Google Cloud Run 页面总控台以支持多电脑切换与一键迁移
|
|
37
|
-
FEISHU_HUB_URL=https://your-service.run.app
|
|
38
|
-
FEISHU_HUB_TOKEN=your-secret-token
|
|
39
|
-
EOF
|
|
40
|
-
chmod 600 ~/.dsh/feishu.env
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
`FEISHU_ALLOWED_OPEN_IDS` 逗号分隔。第一次可以先留空,给机器人发 `/whoami` 拿 `open_id`,再填入并重启。
|
|
44
|
-
|
|
45
|
-
## 命令
|
|
46
|
-
|
|
47
|
-
| 命令 | 作用 |
|
|
48
|
-
| --- | --- |
|
|
49
|
-
| `连接` / `!connect` | 进入远程模式,显示运行数和任务列表 |
|
|
50
|
-
| `断开` / `!disconnect` | 退出远程模式 |
|
|
51
|
-
| `!sessions` | 任务列表;`!sessions all` 包含空会话 |
|
|
52
|
-
| `主机` / `!hosts` | 查看多台电脑状态并在飞书内一键切换主控电脑 |
|
|
53
|
-
| `!host <id>` | 切换飞书主控到指定电脑 |
|
|
54
|
-
| `!web` | 查看 Web 页面总控台地址 |
|
|
55
|
-
| `!approve <code>` | 批准一次 |
|
|
56
|
-
| `!deny <code>` | 拒绝 |
|
|
57
|
-
| `!whoami` | 查看自己的 `open_id`(允许列表为空时也可用) |
|
|
58
|
-
| `!ping` | 检查桥是否在线 |
|
|
59
|
-
| `!help` | 使用说明 |
|
|
60
|
-
|
|
61
|
-
## 测试
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
cd dsh-feishu
|
|
65
|
-
npm test
|
|
66
|
-
```
|