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 CHANGED
@@ -1,12 +1,12 @@
1
1
  <div align="center">
2
- <img src="docs/assets/hero-banner-en.svg" alt="PocketAgent — Control Claude Code, OpenAI Codex, Antigravity IDE &amp; DeepSeek Harness from your phone" width="100%" />
2
+ <img src="docs/assets/hero-banner-en.svg" alt="PocketAgents — Control Claude Code, OpenAI Codex, Antigravity IDE &amp; DeepSeek Harness from your phone" width="100%" />
3
3
 
4
4
  <p align="center">
5
- <strong>PocketAgent</strong> — <strong>Control <a href="#supported-ai-coding-tools">Claude Code, OpenAI Codex, Antigravity IDE, DeepSeek Harness (DSH) &amp; 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>
5
+ <strong>PocketAgents</strong> — <strong>Control <a href="#supported-ai-coding-tools">Claude Code, OpenAI Codex, Antigravity IDE, DeepSeek Harness (DSH) &amp; 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://harness.agentrun.vip/?demo=1&amp;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>
9
+ <a href="https://pocketagents.agentrun.vip/?demo=1&amp;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
  &nbsp;
11
11
  <a href="https://railway.com/deploy/dsh-remote-control-hub?referralCode=44kg1p&amp;utm_medium=integration&amp;utm_source=template&amp;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://harness.agentrun.vip/?demo=1&amp;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>
35
+ <strong>🇺🇸 English</strong> · <a href="./README.zh-CN.md">🇨🇳 简体中文</a> · <a href="https://pocketagents.agentrun.vip/?demo=1&amp;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 &gt;= 0.2.0)?** Install directly from **DSH Market** or run:
113
113
  > ```bash
114
- > dsh plugin --profile desktop add github:oscarka/pocketagent
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/pocketagent.git
133
- cd pocketagent
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 &amp; 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 pocketagent-hub \
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/pocketagent:latest
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/pocketagent.git
157
- cd pocketagent
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-19 · v0.8.9–v0.9.0</code> — PocketAgent Rebrand (<code>npx pocketagents</code>), Claude Code Approvals, Antigravity <code>ask_question</code> &amp; <code>?demo=1</code> Sandbox</strong></summary>
226
+ <summary><strong><code>2026-11-20 · v0.9.1</code> — Unified <code>pocketagents</code> Ecosystem, Zero-Miss <code>🔵 Completed</code> Unread Sync &amp; Left-Edge-Only Swipe Back</strong></summary>
227
227
 
228
- - **PocketAgent Launch (`v0.9.0`)**: Rebranded repository and primary CLI package to **PocketAgent** (`github.com/oscarka/pocketagent`, `npx pocketagents`, `ghcr.io/oscarka/pocketagent:latest`) with automatic 301 redirect from legacy `deepseekharness-remotecontrol` links and full DSH Market compatibility.
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> &amp; <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 &amp; Reliable Resume (`v0.8.20–v0.8.21`)**: Parsed `ask_question` `questions` &amp; 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 &amp; Swipe Triage approvals to all 5 coding harnesses (Claude Code, Codex, Antigravity IDE, DSH &amp; WorkBuddy).
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  <div align="center">
2
- <img src="docs/assets/hero-banner-en.svg" alt="PocketAgent — Control Claude Code, OpenAI Codex, Antigravity IDE &amp; DeepSeek Harness from your phone" width="100%" />
2
+ <img src="docs/assets/hero-banner-en.svg" alt="PocketAgents — Control Claude Code, OpenAI Codex, Antigravity IDE &amp; DeepSeek Harness from your phone" width="100%" />
3
3
 
4
4
  <p align="center">
5
- <strong>PocketAgent</strong> — <strong>Control <a href="#supported-ai-coding-tools">Claude Code, OpenAI Codex, Antigravity IDE, DeepSeek Harness (DSH) &amp; 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>
5
+ <strong>PocketAgents</strong> — <strong>Control <a href="#supported-ai-coding-tools">Claude Code, OpenAI Codex, Antigravity IDE, DeepSeek Harness (DSH) &amp; 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://harness.agentrun.vip/?demo=1&amp;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>
9
+ <a href="https://pocketagents.agentrun.vip/?demo=1&amp;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
  &nbsp;
11
11
  <a href="https://railway.com/deploy/dsh-remote-control-hub?referralCode=44kg1p&amp;utm_medium=integration&amp;utm_source=template&amp;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://harness.agentrun.vip/?demo=1&amp;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>
35
+ <strong>🇺🇸 English</strong> · <a href="./README.zh-CN.md">🇨🇳 简体中文</a> · <a href="https://pocketagents.agentrun.vip/?demo=1&amp;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 &gt;= 0.2.0)?** Install directly from **DSH Market** or run:
113
113
  > ```bash
114
- > dsh plugin --profile desktop add github:oscarka/pocketagent
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/pocketagent.git
133
- cd pocketagent
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 &amp; 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 pocketagent-hub \
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/pocketagent:latest
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/pocketagent.git
157
- cd pocketagent
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-19 · v0.8.9–v0.9.0</code> — PocketAgent Rebrand (<code>npx pocketagents</code>), Claude Code Approvals, Antigravity <code>ask_question</code> &amp; <code>?demo=1</code> Sandbox</strong></summary>
226
+ <summary><strong><code>2026-11-20 · v0.9.1</code> — Unified <code>pocketagents</code> Ecosystem, Zero-Miss <code>🔵 Completed</code> Unread Sync &amp; Left-Edge-Only Swipe Back</strong></summary>
227
227
 
228
- - **PocketAgent Launch (`v0.9.0`)**: Rebranded repository and primary CLI package to **PocketAgent** (`github.com/oscarka/pocketagent`, `npx pocketagents`, `ghcr.io/oscarka/pocketagent:latest`) with automatic 301 redirect from legacy `deepseekharness-remotecontrol` links and full DSH Market compatibility.
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> &amp; <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 &amp; Reliable Resume (`v0.8.20–v0.8.21`)**: Parsed `ask_question` `questions` &amp; 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 &amp; Swipe Triage approvals to all 5 coding harnesses (Claude Code, Codex, Antigravity IDE, DSH &amp; 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="PocketAgent — 手机遥控 Claude Code、OpenAI Codex、Antigravity IDE 与 DeepSeek Harness" width="100%" />
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>PocketAgent</strong> —— <strong>把电脑上正在跑的 <a href="#支持的-ai-编程工具">Claude Code、OpenAI Codex、Antigravity IDE、DeepSeek Harness (DSH) 与 WorkBuddy</a> 装进手机口袋 —— 100% 开源自托管、零第三方中继。<br/>手机滑卡批阅、一键放行命令与多选弹窗、微信式按住说话插话、或点 <code>🔊 播报</code> 直接听结论。</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://harness.agentrun.vip/?demo=1&amp;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>
9
+ <a href="https://pocketagents.agentrun.vip/?demo=1&amp;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
  &nbsp;
11
11
  <a href="https://railway.com/deploy/dsh-remote-control-hub?referralCode=44kg1p&amp;utm_medium=integration&amp;utm_source=template&amp;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://harness.agentrun.vip/?demo=1&amp;lang=zh">✨ 在线 Demo</a> · <a href="#三步快速上手">4G/5G 跨网部署</a> · <a href="#支持的-ai-编程工具">支持工具</a> · <a href="#最近版本更新记录">版本更新</a> · <a href="#常见问题">常见问题</a>
35
+ <a href="./README.md">🇺🇸 English</a> · <strong>🇨🇳 简体中文</strong> · <a href="https://pocketagents.agentrun.vip/?demo=1&amp;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 &gt;= 0.2.0)**,也可以直接在 **DSH 插件市场** 搜索安装,或运行:
113
113
  > ```bash
114
- > dsh plugin --profile desktop add github:oscarka/pocketagent
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/pocketagent.git
133
- cd pocketagent
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 &amp; HTTP/3 加速)、群晖 NAS 或软路由,可以直接用一行 Docker 命令启动(或者本机 `npm start` 搭配 `cloudflared` / `cpolar` / `Tailscale`):
142
142
 
143
143
  ```bash
144
- docker run -d --name pocketagent-hub \
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/pocketagent:latest
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/pocketagent.git
157
- cd pocketagent
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-19 · v0.8.9–v0.9.0</code> — 正式更名 PocketAgent(<code>npx pocketagents</code>)、Claude Code 审批、Antigravity 多选题 &amp; <code>?demo=1</code> 沙盒</strong></summary>
226
+ <summary><strong><code>2026-11-20 · v0.9.1</code> — 全线统一 <code>pocketagents</code>、根治「已出结论」漏显与左侧边缘防误触返回</strong></summary>
227
227
 
228
- - **品牌升级为 PocketAgent(`v0.9.0`)**:GitHub 仓库原地更名为 `oscarka/pocketagent`(原 `deepseekharness-remotecontrol` 链接永久 301 自动跳转兼容 DSH 插件市场),主命令与容器镜像全面切换为 `npx pocketagents` 与 `ghcr.io/oscarka/pocketagent:latest`。
228
+ - **全线统一 `pocketagents` &amp; 核心体验打磨(`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 多选题 &amp; <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/pocketagent.git}"
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/.pnpm/preact@11.1.1/node_modules/preact/dist/preact.mjs
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 v = [];
45
- var y = /^m(i|n|o|s|text|space)$/;
44
+ var y = [];
45
+ var v = /^m(i|n|o|s|text|space)$/;
46
46
  var w = Array.isArray;
47
- var d = v.slice;
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 i, u, f, e = {}, o = arguments.length;
54
- for (f in t) "key" == f ? i = t[f] : "ref" == f && "function" != typeof n ? u = t[f] : e[f] = t[f];
55
- return o > 2 && (e.children = o > 3 ? d.call(arguments, 2) : r), m(n, e, i, u, null);
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, i, u, f, e) {
58
- var o = {
57
+ function m(r, u, i, f, o) {
58
+ var e = {
59
59
  type: r,
60
- props: i,
61
- key: u,
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: e || ++t,
69
+ __v: o || ++t,
70
70
  __i: -1,
71
71
  __u: 0
72
72
  };
73
- return !e && n.vnode && n.vnode(o), o;
73
+ return !o && n.vnode && n.vnode(e), e;
74
74
  }
75
- function M(n) {
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(n) {
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
- }), C(n);
93
+ }), j(n);
90
94
  }
91
- function j(t) {
92
- (8 & t.__g || (t.__g |= 8, i.push(t), f++)) && u == n.debounceRendering || ((u = n.debounceRendering) || queueMicrotask)(L);
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 L() {
95
- var t, r, o, l, c, a, s, p, v;
98
+ function H() {
96
99
  try {
97
- for (r = 1; i.length;) i.length > r && i.sort(e), t = i.shift(), r = i.length, 8 & t.__g && (l = void 0, c = void 0, a = (c = (o = t).__v).__e, s = [], p = [], (v = o.__P) && ((l = _({ constructor: h }, c)).__v = c.__v + 1, n.vnode && n.vnode(l), V(v, l, c, o.__n, v.namespaceURI, 32 & c.__u ? [a] : null, s, a || S(c), 32 & c.__u, p), l.__v = c.__v, l.__.__k[l.__i] = l, D(s, l, p), c.__ = c.__e = null, l.__e != a && C(l)));
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 = i.length) && (u || queueMicrotask)(L);
102
+ (f = u.length) && (i || queueMicrotask)(H);
100
103
  }
101
104
  }
102
- function H(n, t, r, i, u, f, e, o, l, c, a) {
103
- var s, h, y, w, d, _, g = i.__k || v, k = t.length;
104
- for (l = I(r, t, g, l, k), s = 0; s < k; s++) null != (y = r.__k[s]) && (h = ~y.__i && g[y.__i] || p, y.__i = s, _ = V(n, y, h, u, f, e, o, l, c, a), w = y.__e, (h.ref != y.ref || 8 & h.__u) && (h.ref && F(h.ref, null, y, h), y.ref && a.push(y.ref, y.__c || w, y)), d = d || w, 4 & y.__u ? (l = q(y, l, n, !h.__v), h.__e && (h.__e = null)) : "function" == typeof y.type && void 0 !== _ ? l = _ : w && (l = w.nextSibling), y.__u &= -21);
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 I(n, t, r, i, u) {
108
- var f, e, o, l, c, a, s, p, v, y = r.length, d = y, _ = 0, g = 0, k = n.__k = Array(u);
109
- for (f = 0; f < u; f++) null != (e = t[f]) && "boolean" != typeof e && "function" != typeof e ? ("object" != typeof e || e.constructor === String ? e = k[f] = m(null, e) : w(e) ? e = k[f] = m(M, { children: e }) : e.constructor === h && e.__b ? e = k[f] = m(e.type, e.props, e.key, e.ref, e.__v) : k[f] = e, l = f + _, e.__ = n, e.__b = n.__b + 1, o = null, ~(c = e.__i = O(e, r, l, d)) && (d--, (o = r[c]) && (o.__u |= 2)), o && o.__v ? (e.__u |= 16, c == l - 1 ? _-- : c == l + 1 ? _++ : c != l && (c > l ? _-- : _++, g = 1)) : (~c || (u > y ? _-- : u < y && _++), "function" != typeof e.type && (e.__u |= 4))) : k[f] = null;
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 < u; f++) if ((e = k[f]) && 16 & e.__u) {
112
- for (_ = 0, p = a.length; _ < p;) a[v = _ + p >> 1] < e.__i ? _ = v + 1 : p = v;
113
- a[_] = e.__i, s[f] = _ + 1;
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 < y; f++) !(o = r[f]) || 2 & o.__u || (o.__e == i && (i = S(o)), G(o, o));
118
- return i;
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 q(n, t, r, i) {
121
- var u, f, e, o;
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 (u = n.__k) for (f = 0; f < u.length; f++) u[f] && (u[f].__ = n, t = q(u[f], t, r, !1));
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), e = n.__e, o = t; o && 8 == o.nodeType;) o = o.nextSibling;
128
- for (e != o && (!i && r.moveBefore && e.parentNode ? r.moveBefore(e, t) : r.insertBefore(e, t || null)), t = e; (t = t && t.nextSibling) && 8 == t.nodeType && !t.data.startsWith("$s"););
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 O(n, t, r, i) {
132
- var u, f = n.key, e = n.type, o = t[r], l = o && !(2 & o.__u);
133
- if (null === o && null == f || l && f == o.key && e == o.type) return r;
134
- if (i > (l ? 1 : 0)) {
135
- for (u = r - 1; u >= 0; u--) if ((o = t[u]) && !(2 & o.__u) && f == o.key && e == o.type) return u;
136
- for (u = r + 1; u < t.length; u++) if ((o = t[u]) && !(2 & o.__u) && f == o.key && e == o.type) return u;
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 P(n, t, r) {
143
+ function T(n, t, r) {
141
144
  r ??= "", "-" == t[0] ? n.setProperty(t, r) : n[t] = r;
142
145
  }
143
- function T(n, t, r, i, u) {
144
- var f, e;
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 i && (n.style.cssText = i = ""), i) for (t in i) r && t in r || P(n.style, t);
148
- if (r) for (t in r) i && r[t] == i[t] || P(n.style, t, r[t]);
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 && i || (e = a[t] || (a[t] = N(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, e, f) : n.removeEventListener(t, e, f));
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" == u) t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
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 N(t) {
164
+ function V(t) {
162
165
  return function(r) {
163
- var i = this.__e;
164
- if (i) {
165
- if (i = i[t], null == r[o]) r[o] = c++;
166
- else if (r[o] < this.__a[t]) return;
167
- return i(n.event ? n.event(r) : r);
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 V(t, r, i, u, f, e, o, l, c, a) {
172
- var s, p, y, d, k, b, m, $, C, j, L, I, q, A, O, P, T, N, V = r.type;
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 & i.__u && (c = 32 & i.__u, s = i.__c.__z) && (r.__u |= c, p = e = [], 8 == s.nodeType ? l = z(s, e) : e.push(s), l = e[0] || l), (s = n.__b) && s(r);
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
- y = o.length;
179
+ v = e.length;
177
180
  try {
178
- if ($ = r.props, C = (s = V.prototype) && s.render, j = (s = V.contextType) && u[s.__c], L = s ? j ? j.props.value : s.__ : u, (d = i.__c) ? (r.__c = d, 2 & d.__g && (d.__g |= 1)) : (C ? r.__c = d = new V($, L) : (r.__c = d = new x($, L), d.constructor = V, d.render = J), j && j.sub(d), d.state || (d.state = {}), d.__n = u, 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($, d.__s)))), k = d.props, b = d.state, d.__v = r, i.__c) {
179
- if ($ !== k && C && !V.getDerivedStateFromProps && d.componentWillReceiveProps && d.componentWillReceiveProps($, L), r.__v == i.__v && !(8 & d.__g) || !(4 & d.__g) && d.shouldComponentUpdate && !1 === d.shouldComponentUpdate($, d.__s, L)) {
180
- r.__v != i.__v && (d.props = $, d.state = d.__s, d.__g &= -9), r.__e = i.__e, r.__k = i.__k, r.__k.some(function(n) {
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
- }), v.push.apply(d.__h, d.__k), d.__k = [], d.__h.length && o.push(d), l = S(i);
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($, d.__s, L), C && d.componentDidUpdate && d.__h.push(function() {
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
- if (d.context = L, d.props = $, d.__P = t, d.__g &= -5, I = n.__r, q = 0, C) d.state = d.__s, d.__g &= -9, I && I(r), s = d.render(d.props, d.state, d.context), v.push.apply(d.__h, d.__k), d.__k = [];
190
- else do
191
- d.__g &= -9, I && I(r), s = d.render(d.props, d.state, d.context), d.state = d.__s;
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 && (u = _({}, u, d.getChildContext())), C && i.__c && d.getSnapshotBeforeUpdate && (m = d.getSnapshotBeforeUpdate(k, b)), A = s && s.type === M && null == s.key ? s.props.children : s, $.__P && (s = l, f = (t = $.__P).namespaceURI, c = e = null, i.props && i.props.__P != t && (i.__k.some(function(n) {
194
- n && G(n, n);
195
- }), i.__k = null), l = i.__k ? S(i, 0) : null), l = H(t, w(A) ? A : [A], r, i, u, f, e, o, l, c, a), $.__P && (r.__e = null, l = s), r.__u &= -161, p && p.some(g), d.__h.length && o.push(d), 1 & d.__g && (d.__g &= -4);
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 (o.length = y, r.__v = null, c || e) if (t.then) {
198
- if (O = 0, r.__u |= 128 | c, e) {
199
- for (~(T = e.indexOf(l || void 0)) || (T = e.length); (N = e[T - 1]) && 8 == N.nodeType;) T--;
200
- for (; T < e.length; T++) if (N = e[T]) {
201
- if (e[T] = null, 8 == N.nodeType) {
202
- if (N.data.startsWith("$s")) O++ || (P = N);
203
- else if (O && N.data.startsWith("/$s") && !--O) break;
204
- } else if (!O) break;
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 (!P) {
210
+ if (!O) {
208
211
  for (; l && 8 == l.nodeType && l.nextSibling;) l = l.nextSibling;
209
- P = l;
212
+ O = l;
210
213
  }
211
- (s = z(P = r.__c.__z || (r.__c.__z = P))) ? (r.__e = P, l = s) : r.__e = l, l = l && l.nextSibling;
212
- } else e && e.some(g);
213
- else r.__e = i.__e;
214
- r.__k || (r.__k = i.__k || []), t.then || B(r), n.__e(t, r, i);
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 = E(i.__e, r, i, u, f, e, o, c, a, t);
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 z(n, t) {
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 B(n) {
229
- n && (n.__c && (n.__c.__g |= 4), n.__k && n.__k.some(B));
231
+ function D(n) {
232
+ n && (n.__c && (n.__c.__g |= 4), n.__k && n.__k.some(D));
230
233
  }
231
- function D(t, r, i) {
232
- for (var u = 0; u < i.length;) F(i[u++], i[u++], i[u++]);
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 E(t, r, i, u, f, e, o, l, c, a) {
244
- var s, h, v, _, k, b, m, $, M, x = i.props || p, C = r.props, j = r.type;
245
- if ("svg" == j ? f = "http://www.w3.org/2000/svg" : "math" == j ? f = "http://www.w3.org/1998/Math/MathML" : f || (f = "http://www.w3.org/1999/xhtml"), e) {
246
- for (s = 0; s < e.length; s++) if ((k = e[s]) && (j ? k.localName == j : 3 == k.nodeType)) {
247
- t = k, e[s] = null;
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 ($ = a.ownerDocument || document, !j) return $.createTextNode(C);
253
- t = $.createElementNS(f, j, C.is && C), l && (n.__m && n.__m(r, e), l = !1), e = null;
254
- }
255
- if (j) {
256
- if (a = "template" == j && t.content || t, e = "textarea" == j && null != C.defaultValue ? null : e && d.call(a.childNodes), !l && e) for (x = {}, s = 0; s < t.attributes.length; s++) x[(k = t.attributes[s]).name] = k.value;
257
- for (s in x) k = x[s], "dangerouslySetInnerHTML" == s ? v = k : "children" == s || s in C || "value" == s && "defaultValue" in C || "checked" == s && "defaultChecked" in C || T(t, s, null, k, f);
258
- for (s in M = 1 & i.__u, C) k = C[s], "children" == s ? _ = k : "dangerouslySetInnerHTML" == s ? h = k : "value" == s ? b = k : "checked" == s ? m = k : l && "function" != typeof k || !(x[s] !== k || M && null != k) || T(t, s, k, x[s], f);
259
- h ? (l || v && (h.__html == v.__html || h.__html == t.innerHTML) || (t.innerHTML = h.__html), r.__k = []) : (v && (t.textContent = ""), ("foreignObject" == j || "http://www.w3.org/1998/Math/MathML" == f && y.test(j)) && (f = "http://www.w3.org/1999/xhtml"), H(a, w(_) ? _ : [_], r, i, u, f, e, o, e ? e[0] : i.__k && S(i, 0), l, c), e && e.some(g)), l && "textarea" != j || (s = "value", "progress" == j && null == b ? t.removeAttribute(s) : null == b || b === t[s] && ("progress" != j || b) || T(t, s, b, x[s], f), s = "checked", null != m && m != t[s] && T(t, s, m, x[s], f));
260
- } else x === C || l && t.data == C || (t.data = C);
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 F(t, r, i, u) {
266
+ function G(t, r, u, i) {
264
267
  try {
265
- "function" == typeof t ? r ? r.__x = t(r) || 1 : u && (u = u.__c || u.__e) && (r = u.__x) && (u.__x = null, "function" == typeof r ? r() : t(null)) : t.current = r;
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, i);
270
+ n.__e(t, u);
268
271
  }
269
272
  }
270
- function G(t, r, i) {
271
- var u, f, e, o;
272
- if (n.unmount && n.unmount(t), !(u = t.ref) || u.current && u.current != t.__e || F(u, null, r, t), u = t.__c) {
273
- if (u.componentWillUnmount) try {
274
- u.componentWillUnmount();
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
- u.__P = u.__n = null;
281
+ i.__P = i.__n = null;
279
282
  }
280
- if (u = t.__k) for (o = 0; o < u.length; o++) u[o] && G(u[o], r, "function" != typeof t.type || i && !t.props.__P);
281
- !i && (u = t.__c) && (u = u.__z) && (f = z(u, e = [])) && (u == t.__e && e.some(g), g(f), g(u)), (u = t.__e) && (i || g(u), u.__e && (u.__e = null)), t.__e = t.__c = t.__ = null;
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 J(n, t, r) {
286
+ function K(n, t, r) {
284
287
  return this.constructor(n, r);
285
288
  }
286
- function K(t, r) {
287
- var i, u, f, e;
288
- n.__ && n.__(t, r), 9 == r.nodeType && (r = r.documentElement), u = (i = t && 32 & t.__u) ? null : r.__k, r.__k = m(M, { children: [t] }), f = [], e = [], V(r, r.__k, u || p, p, r.namespaceURI, u ? null : r.firstChild ? d.call(r.childNodes) : null, f, u ? u.__e : r.firstChild, i, e), D(f, r.__k, e), r.__k.props.children = null;
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, i) {
291
- for (var u, e, o; t = t.__;) if ((u = t.__c) && !(1 & u.__g)) {
292
- u.__g |= 4;
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 ((o = (e = u.constructor) && e.getDerivedStateFromError) && u.setState(e.getDerivedStateFromError(n)), u.componentDidCatch && (u.componentDidCatch(n, i || {}), o = 1), o && 8 & u.__g) return void (u.__g |= 2);
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), j(this)));
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), j(this));
305
- }, x.prototype.render = M, i = [], f = 0, e = function(n, t) {
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
- }, o = Symbol(), l = /(PointerCapture)$|Capture$/i, c = 0, a = {};
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(M, null, /* @__PURE__ */ k("header", {
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/pocketagent",
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(M, null, /* @__PURE__ */ k("div", {
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(M, null, /* @__PURE__ */ k("div", {
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
- link.addEventListener("load", res);
1615
- link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
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-DW8pWxy7.js").then((mod) => mod?.default || mod), []).catch(() => null);
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/pocketagent";
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
- K(/* @__PURE__ */ k(App, null), root);
16554
+ Q(/* @__PURE__ */ k(App, null), root);
16546
16555
  initHubController();
16547
16556
  }
@@ -1,4 +1,4 @@
1
- // node_modules/.pnpm/hls.js@1.7.4/node_modules/hls.js/dist/hls.light.mjs
1
+ // node_modules/hls.js/dist/hls.light.mjs
2
2
  var isFiniteNumber = Number.isFinite || function(value) {
3
3
  return typeof value === "number" && isFinite(value);
4
4
  };
@@ -68,7 +68,7 @@
68
68
  }, 6500);
69
69
  })();
70
70
  </script>
71
- <script type="module" crossorigin src="/assets/index-B2gcOquW.js"></script>
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/pocketagent:latest',
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.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
- "description": "PocketAgent — 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.",
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/pocketagent"
70
+ "url": "https://github.com/oscarka/pocketagents"
71
71
  },
72
- "homepage": "https://harness.agentrun.vip/?demo=1",
72
+ "homepage": "https://pocketagents.agentrun.vip/?demo=1",
73
73
  "bugs": {
74
- "url": "https://github.com/oscarka/pocketagent/issues"
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
- // PocketAgent — One-command zero-config mobile console for Claude Code, OpenAI Codex, Antigravity IDE, DSH & WorkBuddy.
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
- PocketAgent v${PKG_VERSION}
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/pocketagent
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(`🚀 PocketAgent v${PKG_VERSION} — Ready on port ${localHub.port}`)
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/pocketagent')
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 PocketAgent...')
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 PocketAgent: ${err?.message || err}`)
368
+ console.error(`❌ Failed to start PocketAgents: ${err?.message || err}`)
369
369
  process.exit(1)
370
370
  })
371
371
  }
@@ -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
- ```