homeagent-runner 0.4.4 → 0.4.6
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/CHANGELOG.md +27 -0
- package/README.en.md +79 -50
- package/README.md +73 -19
- package/dist/shared/protocol.js +1 -1
- package/docs/CLIENTS.md +1 -1
- package/docs/DEPLOYMENT.md +1 -1
- package/docs/OPEN_SOURCE.md +10 -8
- package/docs/screenshots/dashboard.png +0 -0
- package/docs/screenshots/jobs.png +0 -0
- package/docs/screenshots/permissions.png +0 -0
- package/package.json +2 -1
- package/public/icon.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.6 — Web workspace redesign and interaction improvements
|
|
4
|
+
|
|
5
|
+
- Rebuild the Web Dashboard as a responsive workspace with separate overview,
|
|
6
|
+
device, job, client access, audit and session views.
|
|
7
|
+
- Add device search, state filters, human-readable task status and in-page
|
|
8
|
+
confirmations with keyboard focus restoration.
|
|
9
|
+
- Preserve project selections, filters and task output during background refresh;
|
|
10
|
+
retain the last available data when a connection fails.
|
|
11
|
+
- Clarify project permissions, selection counts and temporary-access duration in
|
|
12
|
+
the permission editors.
|
|
13
|
+
- Refresh login and OAuth consent screens, add password visibility controls and
|
|
14
|
+
inline feedback, and synchronize selected devices with available projects.
|
|
15
|
+
- Update the Dashboard screenshots and verify the packaged login script.
|
|
16
|
+
|
|
17
|
+
## 0.4.5 — Project identity, documentation and OAuth UI
|
|
18
|
+
|
|
19
|
+
- Introduce the blue terminal and orange agent icon across the Dashboard header,
|
|
20
|
+
browser favicon, touch icon and project documentation.
|
|
21
|
+
- Refresh the Chinese and English READMEs with a centered project identity,
|
|
22
|
+
package and CI badges, feature overview, architecture diagram and real
|
|
23
|
+
Dashboard, permission-editor and task-output screenshots.
|
|
24
|
+
- Refresh OAuth authorization and result screens with grouped permissions,
|
|
25
|
+
clearer project selection and a live authorization summary.
|
|
26
|
+
- Remove a stray CSS separator so the consent-page header style applies.
|
|
27
|
+
- Include README image assets in both npm packages, and explicitly allow only
|
|
28
|
+
reviewed PNG assets in source release checks with format and size limits.
|
|
29
|
+
|
|
3
30
|
## 0.4.4 — Runner package publishing and dependency updates
|
|
4
31
|
|
|
5
32
|
- Publish the Runner as `homeagent-runner`, retaining the `homeagent` command.
|
package/README.en.md
CHANGED
|
@@ -1,53 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="public/icon.png" width="128" height="128" alt="HomeAgent icon">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">HomeAgent</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>Connect AI to your development machines.</strong><br>
|
|
9
|
+
Self-hosted MCP relay · Local execution · Permissions you control
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://github.com/jhxxr/HomeAgent/actions/workflows/ci.yml"><img src="https://github.com/jhxxr/HomeAgent/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/homeagent-server"><img src="https://img.shields.io/npm/v/homeagent-server?label=server&color=0755ff" alt="Server npm version"></a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/homeagent-runner"><img src="https://img.shields.io/npm/v/homeagent-runner?label=runner&color=0755ff" alt="Runner npm version"></a>
|
|
16
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-147a57" alt="MIT License"></a>
|
|
17
|
+
<a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/Node.js-%E2%89%A524.14-339933" alt="Node.js 24.14 or newer"></a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<a href="README.md">简体中文</a> · English
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<a href="#quick-start">Quick start</a> ·
|
|
26
|
+
<a href="docs/DEPLOYMENT.md">Deployment</a> ·
|
|
27
|
+
<a href="docs/CLIENTS.md">AI clients</a> ·
|
|
28
|
+
<a href="docs/README.md">Documentation</a> ·
|
|
29
|
+
<a href="CHANGELOG.md">Changelog</a>
|
|
30
|
+
</p>
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
HomeAgent lets Claude, ChatGPT, Cursor and other MCP clients work on your own Linux / Windows development machines through a relay you host. Runners connect outbound and execute authorized file, command and Git operations locally, without opening inbound ports.
|
|
35
|
+
|
|
36
|
+
The execution system requires no model API key, hosted relay, telemetry or paid cloud service. Tool results are sent to the AI client you choose. Version **v0.4.6** supports one administrator and multiple devices.
|
|
37
|
+
|
|
38
|
+
## Why HomeAgent
|
|
39
|
+
|
|
40
|
+
| Your machines, your control | Built for everyday development |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| **Self-hosted relay**: keep the Server, SQLite and audit records on your server or local network. | **Files and code**: 35 tools for project context, line-based batch reads, search, strict diffs and journaled multi-file edits. |
|
|
43
|
+
| **Outbound runners**: authenticated WebSocket connections from Linux / Windows machines. | **Observable jobs**: immediate results for short commands; wait, read output, stop and retain records for longer tasks. |
|
|
44
|
+
| **Project-level access**: manage device and client permissions, with temporary elevation and automatic expiry. | **Git workflows**: review diffs, commit selected files safely, and separately control fetch / pull / push. |
|
|
45
|
+
|
|
46
|
+
## Screenshots
|
|
47
|
+
|
|
48
|
+
Real Web Dashboard screenshots with example devices and projects in an isolated local environment. The current interface is in Chinese.
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
<details>
|
|
53
|
+
<summary><strong>Explore device permissions and task output</strong></summary>
|
|
54
|
+
|
|
55
|
+
**Device permissions** · Configure project paths, access levels, Git permissions and grant duration in the browser.
|
|
56
|
+
|
|
57
|
+

|
|
58
|
+
|
|
59
|
+
**Jobs and output** · Observe commands running on a real Runner and read their test output.
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
</details>
|
|
64
|
+
|
|
65
|
+
## How it works
|
|
66
|
+
|
|
67
|
+
```mermaid
|
|
68
|
+
flowchart TB
|
|
69
|
+
Clients["Claude / ChatGPT / Cursor"] -->|"HTTPS · MCP · OAuth / Token"| Server["HomeAgent Server"]
|
|
70
|
+
Server --- Console["Web Dashboard · SQLite · Audit"]
|
|
71
|
+
Runner["Linux / Windows Runner"] -->|"Outbound · WSS"| Server
|
|
72
|
+
Runner --- Files["Project files and code edits"]
|
|
73
|
+
Runner --- Commands["Local commands and jobs"]
|
|
74
|
+
Runner --- Git["Git workflows"]
|
|
27
75
|
```
|
|
28
76
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
- One-time pairing, revocable device credentials, scoped personal tokens and
|
|
33
|
-
OAuth authorization-code flow with S256 PKCE.
|
|
34
|
-
- Single-admin Dashboard for devices, projects, jobs, browser sessions, tokens
|
|
35
|
-
and audit records.
|
|
36
|
-
- 35 tools covering project context, line-based batch reads, bounded search,
|
|
37
|
-
strict unified diffs, journaled multi-file edits, commands and Git.
|
|
38
|
-
- Short-command responses, waitable long jobs, idempotent starts, bounded prefix
|
|
39
|
-
and rolling-tail output.
|
|
40
|
-
- Local command aliases/environment profiles, selected-file commits preserving
|
|
41
|
-
unrelated staged entries, and explicit linked-worktree configuration.
|
|
42
|
-
- Docker Compose, Caddy/Nginx examples, optional Cloudflare Tunnel and native
|
|
43
|
-
runner service installers.
|
|
44
|
-
- Dashboard-managed device limits, per-client tool grants and temporary
|
|
45
|
-
elevation with automatic expiry and managed-job cancellation.
|
|
46
|
-
|
|
47
|
-
This is an early self-hosted release, not a claim of feature parity with WebCodex
|
|
48
|
-
or an independently audited operating-system sandbox. Persistent shells/PTY,
|
|
49
|
-
detached tasks surviving runner replacement, automatic worktree registration,
|
|
50
|
-
preview tunnels and a full workflow-session system are not implemented.
|
|
77
|
+
Built on the official MCP SDK v2 with Streamable HTTP `/mcp`, 2026-07-28 discovery/envelopes and legacy 2025 compatibility. Authentication includes OAuth authorization-code flow with S256 PKCE, scoped Bearer tokens and one-time device pairing. Deployment options include Docker Compose, Caddy/Nginx, optional Cloudflare Tunnel and native runner service installers.
|
|
78
|
+
|
|
79
|
+
This is an early self-hosted release, not a claim of feature parity with WebCodex or an independently audited operating-system sandbox. Persistent shells/PTY, detached tasks surviving runner replacement, automatic worktree registration, preview tunnels and a full workflow-session system are not implemented.
|
|
51
80
|
|
|
52
81
|
## Quick start
|
|
53
82
|
|
|
@@ -77,7 +106,7 @@ Install Docker Engine, Compose v2 and Git. Point your domain at the server and
|
|
|
77
106
|
allow inbound TCP ports 80/443. Replace `mcp.example.com` below with your domain.
|
|
78
107
|
|
|
79
108
|
```sh
|
|
80
|
-
git clone --branch v0.4.
|
|
109
|
+
git clone --branch v0.4.6 --depth 1 https://github.com/jhxxr/HomeAgent.git
|
|
81
110
|
cd HomeAgent
|
|
82
111
|
|
|
83
112
|
# Generate random secrets without installing Node.js on the host.
|
|
@@ -289,7 +318,7 @@ helpers. Each package has an explicit file list and license notices.
|
|
|
289
318
|
See [release preparation](docs/OPEN_SOURCE.md) to generate a reviewed source
|
|
290
319
|
archive. Nothing in the release commands automatically publishes or pushes it.
|
|
291
320
|
|
|
292
|
-
The `v0.4.
|
|
321
|
+
The `v0.4.6` release configuration produces separate `homeagent-server` and
|
|
293
322
|
`homeagent-runner` packages; local release commands do not upload to npm or push a
|
|
294
323
|
GitHub Release. For subsequent releases, increment the version and update the
|
|
295
324
|
version files and changelog before pushing a matching `vX.Y.Z` tag. Configure
|
package/README.md
CHANGED
|
@@ -1,27 +1,81 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="public/icon.png" width="128" height="128" alt="HomeAgent 图标">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<h1 align="center">HomeAgent</h1>
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>让 AI 连接你的开发机器。</strong><br>
|
|
9
|
+
自托管 MCP 中继 · 本地执行 · 权限由你掌控
|
|
10
|
+
</p>
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://github.com/jhxxr/HomeAgent/actions/workflows/ci.yml"><img src="https://github.com/jhxxr/HomeAgent/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/homeagent-server"><img src="https://img.shields.io/npm/v/homeagent-server?label=server&color=0755ff" alt="Server npm version"></a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/homeagent-runner"><img src="https://img.shields.io/npm/v/homeagent-runner?label=runner&color=0755ff" alt="Runner npm version"></a>
|
|
16
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-147a57" alt="MIT License"></a>
|
|
17
|
+
<a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/Node.js-%E2%89%A524.14-339933" alt="Node.js 24.14 or newer"></a>
|
|
18
|
+
</p>
|
|
8
19
|
|
|
9
|
-
|
|
20
|
+
<p align="center">
|
|
21
|
+
简体中文 · <a href="README.en.md">English</a>
|
|
22
|
+
</p>
|
|
10
23
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
<p align="center">
|
|
25
|
+
<a href="#快速开始">快速开始</a> ·
|
|
26
|
+
<a href="docs/DEPLOYMENT.md">部署指南</a> ·
|
|
27
|
+
<a href="docs/CLIENTS.md">连接 AI 客户端</a> ·
|
|
28
|
+
<a href="docs/README.md">完整文档</a> ·
|
|
29
|
+
<a href="CHANGELOG.md">更新日志</a>
|
|
30
|
+
</p>
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
HomeAgent 让 Claude、ChatGPT、Cursor 等 MCP 客户端,通过你部署的 Server 操作自己的 Linux / Windows 开发机器。Runner 主动连出,在本地执行授权的文件、命令和 Git 操作,无需开放被控端入站端口。
|
|
35
|
+
|
|
36
|
+
系统运行无需模型 API Key、第三方中继、遥测或付费云服务;工具结果会返回给你选择的 AI 客户端。当前版本 **v0.4.6**,支持单管理员、多设备。
|
|
37
|
+
|
|
38
|
+
## 为什么使用 HomeAgent
|
|
39
|
+
|
|
40
|
+
| 自己的机器,自己的控制权 | 面向日常开发 |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| **自托管中继**:Server、SQLite 和审计记录部署在自己的服务器或局域网。 | **文件与代码编辑**:35 个工具覆盖项目上下文、批量按行读取、搜索、严格 diff 和多文件编辑。 |
|
|
43
|
+
| **Runner 主动连接**:通过认证的 WebSocket 通道接入,支持 Linux / Windows。 | **可观察的任务**:短命令直接返回,长任务可等待、读取输出、停止,并保留执行记录。 |
|
|
44
|
+
| **按项目授权**:管理设备、客户端、只读或完整开发权限,支持临时提权与到期收回。 | **完整 Git 流程**:查看差异、按文件安全提交,以及独立控制的 fetch / pull / push。 |
|
|
45
|
+
|
|
46
|
+
## 界面预览
|
|
47
|
+
|
|
48
|
+
真实 Web Dashboard 截图,使用本地隔离环境中的示例设备与项目。
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
<details>
|
|
53
|
+
<summary><strong>查看设备权限设置与任务输出</strong></summary>
|
|
54
|
+
|
|
55
|
+
**设备权限** · 在网页中配置项目目录、访问档位、Git 开关和授权时长。
|
|
56
|
+
|
|
57
|
+

|
|
58
|
+
|
|
59
|
+
**任务与输出** · 观察 Runner 上真实执行的命令,读取测试输出。
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
</details>
|
|
64
|
+
|
|
65
|
+
## 工作原理
|
|
66
|
+
|
|
67
|
+
```mermaid
|
|
68
|
+
flowchart TB
|
|
69
|
+
Clients["Claude / ChatGPT / Cursor"] -->|"HTTPS · MCP · OAuth / Token"| Server["HomeAgent Server"]
|
|
70
|
+
Server --- Console["Web Dashboard · SQLite · 审计"]
|
|
71
|
+
Runner["Linux / Windows Runner"] -->|"主动连接 · WSS"| Server
|
|
72
|
+
Runner --- Files["项目文件与代码编辑"]
|
|
73
|
+
Runner --- Commands["本地命令与任务"]
|
|
74
|
+
Runner --- Git["Git 工作流"]
|
|
23
75
|
```
|
|
24
76
|
|
|
77
|
+
使用 MCP 官方 SDK v2,提供 Streamable HTTP `/mcp`,支持 2026-07-28 discovery/envelope 与 2025 协议兼容;认证包括 OAuth 授权码流程、S256 PKCE、限权 Bearer Token 和一次性设备配对。
|
|
78
|
+
|
|
25
79
|
## 快速开始
|
|
26
80
|
|
|
27
81
|
Server 和 Runner 已拆成两个 npm 包,分别安装在中继服务器和需要被操作的开发机器上:
|
|
@@ -46,7 +100,7 @@ Server 和 Runner 已拆成两个 npm 包,分别安装在中继服务器和需
|
|
|
46
100
|
准备 Docker Engine、Compose v2 和 Git,将自己的域名解析到服务器,并放行 TCP 80/443。下面以 `mcp.example.com` 为例,执行前替换成自己的域名。
|
|
47
101
|
|
|
48
102
|
```sh
|
|
49
|
-
git clone --branch v0.4.
|
|
103
|
+
git clone --branch v0.4.6 --depth 1 https://github.com/jhxxr/HomeAgent.git
|
|
50
104
|
cd HomeAgent
|
|
51
105
|
|
|
52
106
|
# 用容器生成随机密码和会话密钥,无需在宿主机安装 Node.js
|
|
@@ -215,4 +269,4 @@ npm audit --omit=dev --audit-level=high
|
|
|
215
269
|
|
|
216
270
|
发布前执行 [开源与发布检查](docs/OPEN_SOURCE.md)。npm 发布会生成两个包:`homeagent-server` 只包含 Server/Web Dashboard,`homeagent-runner` 只包含 Runner、共享协议和 Windows 辅助程序;两者都采用明确的发布文件白名单。
|
|
217
271
|
|
|
218
|
-
`v0.4.
|
|
272
|
+
`v0.4.6` 的发布配置会分别生成 `homeagent-server` 和 `homeagent-runner`;本地发布命令不会自动上传 npm 或推送 GitHub。后续发布递增版本,更新版本文件和 changelog 后推送匹配标签;预发布使用 npm `next`,正式版本使用 `latest`。Token 权限、OIDC 切换和重试行为见 [自动发布说明](docs/OPEN_SOURCE.md#github-actions-自动发布)。
|
package/dist/shared/protocol.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { remotePermissionsSchema } from './permissions.js';
|
|
3
|
-
export const VERSION = '0.4.
|
|
3
|
+
export const VERSION = '0.4.6';
|
|
4
4
|
export const RUNNER_PROTOCOL = 2;
|
|
5
5
|
export const MAX_FRAME = 2 * 1024 * 1024;
|
|
6
6
|
export const SCOPES = ['read', 'write', 'execute', 'git'];
|
package/docs/CLIENTS.md
CHANGED
|
@@ -14,7 +14,7 @@ v0.3 日常编码优先采用 [开发工作流](DEVELOPMENT_WORKFLOW.md):get_p
|
|
|
14
14
|
|
|
15
15
|
v0.3.0 的授权表单直接重定向到外部回调,Chrome 可能按 `form-action 'self'` 拦截该跳转;授权请求却已被消费,第二次点击便显示 `Authorization request expired`。**升级 Server 到 v0.3.1**:新版本先进入站内完成页,再返回已注册客户端,保留严格 CSP;按钮显示提交状态并防止重复提交。
|
|
16
16
|
|
|
17
|
-
升级后重启 Server,回到 AI 客户端重新发起 OAuth 授权,不要刷新或重复提交旧标签页。npm 部署升级 `homeagent-server` 包后重启对应服务;Runner 使用独立的 `homeagent-runner` 包,两者应升级到相同版本。Compose 部署检出 v0.4.
|
|
17
|
+
升级后重启 Server,回到 AI 客户端重新发起 OAuth 授权,不要刷新或重复提交旧标签页。npm 部署升级 `homeagent-server` 包后重启对应服务;Runner 使用独立的 `homeagent-runner` 包,两者应升级到相同版本。Compose 部署检出 v0.4.6 后重新构建并启动,保留原 `.env` 和数据卷。Runner v0.3.0 不需要为 OAuth 回调修复升级;要使用 v0.4 的 Web 权限管理,则 Server 和 Runner 都应升级到 v0.4.6。
|
|
18
18
|
|
|
19
19
|
若完成页没有自动返回,点击“继续返回客户端”。已使用或过期的授权码不会被重新签发;客户端仍未连接时,从客户端新建一次授权请求。设备凭据及已完成的客户端授权不因升级被主动清空。
|
|
20
20
|
|
package/docs/DEPLOYMENT.md
CHANGED
|
@@ -95,7 +95,7 @@ journalctl --user -u homeagent-server -f
|
|
|
95
95
|
先在有 Docker Engine、Compose v2 和 Git 的服务器检出发布源码:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
git clone --branch v0.4.
|
|
98
|
+
git clone --branch v0.4.6 --depth 1 https://github.com/jhxxr/HomeAgent.git
|
|
99
99
|
cd HomeAgent
|
|
100
100
|
```
|
|
101
101
|
|
package/docs/OPEN_SOURCE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 开源仓库与源码发布
|
|
2
2
|
|
|
3
|
-
本仓库以 MIT 开放原始代码,版本为 0.4.
|
|
3
|
+
本仓库以 MIT 开放原始代码,版本为 0.4.6,npm 发布拆成 `homeagent-server` 和 `homeagent-runner` 两个包。Server 包只包含编译后的 Server、Dashboard 和 Server 资源;Runner 包只包含 Runner、共享协议和 Windows 进程树辅助代码。CLI 和源码采用相同许可证;两个 npm 包都通过文件白名单只包含运行所需文件、文档和许可证。包名是否可用及账号发布权限以发布当时的 registry 为准。
|
|
4
4
|
|
|
5
5
|
## 文件划分
|
|
6
6
|
|
|
@@ -29,6 +29,8 @@ npm run test:package
|
|
|
29
29
|
|
|
30
30
|
`npm run release:check` 检查 Git 跟踪文件和未忽略的新文件,验证敏感凭据模式、禁止的运行目录、许可证/版本一致性及本地 Markdown 链接。提交前可以使用 `node scripts/check-release.mjs --staged`,检查暂存区实际内容。它不会打印命中的秘密正文。
|
|
31
31
|
|
|
32
|
+
图片仅允许 `public/icon.png` 和 `docs/screenshots/` 下的 `dashboard.png`、`permissions.png`、`jobs.png`;检查 PNG 文件头,并限制每张不超过 2 MiB、每边不超过 4096 像素。图片内容需人工查看,截图应来自隔离演示环境,不得包含真实凭据或私人项目数据。Runner 包仅携带 README 使用的图标,不包含 Dashboard 脚本。
|
|
33
|
+
|
|
32
34
|
这些只是可复现的自动检查,不能证明没有未知类型的敏感数据。公开前仍需人工检查文件列表、部署示例和私有路径。不要用“把整个工作目录压缩”代替源码发布。
|
|
33
35
|
|
|
34
36
|
更新生产依赖后:
|
|
@@ -51,7 +53,7 @@ npm run release:source
|
|
|
51
53
|
|
|
52
54
|
输出位于被忽略的 release/:
|
|
53
55
|
|
|
54
|
-
- `HomeAgent-v0.4.
|
|
56
|
+
- `HomeAgent-v0.4.6-source.tar.gz`
|
|
55
57
|
- 对应 `.sha256` 校验文件
|
|
56
58
|
- 对应 `.manifest.txt`,包括版本、Git 提交和全部发布路径
|
|
57
59
|
|
|
@@ -63,8 +65,8 @@ npm run release:source
|
|
|
63
65
|
|
|
64
66
|
`npm run release:npm` 构建 JavaScript、以 `--ignore-scripts` 分别打包两个包,并检查归档文件白名单、运行资源及 SHA-512 完整性,输出:
|
|
65
67
|
|
|
66
|
-
- `release/homeagent-server-0.4.
|
|
67
|
-
- `release/homeagent-runner-0.4.
|
|
68
|
+
- `release/homeagent-server-0.4.6.tgz`
|
|
69
|
+
- `release/homeagent-runner-0.4.6.tgz`
|
|
68
70
|
- 两个归档各自的 `.sha256`
|
|
69
71
|
- `release/npm-packages.json`:两个包的名称、版本、Git commit、校验、dist-tag 和路径清单
|
|
70
72
|
|
|
@@ -74,20 +76,20 @@ npm run release:source
|
|
|
74
76
|
|
|
75
77
|
`.github/workflows/release.yml` 支持两种入口:
|
|
76
78
|
|
|
77
|
-
1. 推送版本标签,例如 `v0.4.
|
|
79
|
+
1. 推送版本标签,例如 `v0.4.6`。
|
|
78
80
|
2. 在 Actions → release → Run workflow 中填写**已经存在**的版本标签。
|
|
79
81
|
|
|
80
82
|
先按下一节配置 `NPM_TOKEN`。首次推送源码、配置真实 `origin` 并确认 Actions 可用后,可以按下面方式发布:
|
|
81
83
|
|
|
82
84
|
```sh
|
|
83
85
|
# 先提交本次版本的源码和文档,工作区保持干净
|
|
84
|
-
git tag -a v0.4.
|
|
85
|
-
git push origin v0.4.
|
|
86
|
+
git tag -a v0.4.6 -m "HomeAgent v0.4.6"
|
|
87
|
+
git push origin v0.4.6
|
|
86
88
|
```
|
|
87
89
|
|
|
88
90
|
本文只是发布说明,准备脚本不会替操作者执行这些命令。
|
|
89
91
|
|
|
90
|
-
标签必须与 package.json、package-lock.json 及 runtime VERSION 一致,CHANGELOG.md 必须有对应版本的非空条目。预发布可用 `v0.4.
|
|
92
|
+
标签必须与 package.json、package-lock.json 及 runtime VERSION 一致,CHANGELOG.md 必须有对应版本的非空条目。预发布可用 `v0.4.6-rc.1`(相关版本文件也必须为 `0.4.6-rc.1`)。禁止把普通分支或不匹配版本伪装成发布。
|
|
91
93
|
|
|
92
94
|
发布流水线按次序执行:
|
|
93
95
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"dist/runner/**/*.js",
|
|
27
27
|
"dist/shared/**/*.js",
|
|
28
28
|
"runtime/",
|
|
29
|
+
"public/icon.png",
|
|
29
30
|
"README.en.md",
|
|
30
31
|
"CONTRIBUTING.md",
|
|
31
32
|
"SECURITY.md",
|
|
@@ -42,5 +43,5 @@
|
|
|
42
43
|
"ws": "8.22.0",
|
|
43
44
|
"zod": "4.6.7"
|
|
44
45
|
},
|
|
45
|
-
"version": "0.4.
|
|
46
|
+
"version": "0.4.6"
|
|
46
47
|
}
|
package/public/icon.png
ADDED
|
Binary file
|