homeagent-runner 0.4.9 → 0.4.10
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 +7 -0
- package/README.en.md +7 -3
- package/README.md +7 -3
- package/dist/runner/logo.js +82 -0
- package/dist/runner/tui.js +20 -61
- package/dist/shared/protocol.js +1 -1
- package/docs/CLIENTS.md +1 -1
- package/docs/DEPLOYMENT.md +1 -1
- package/docs/OPEN_SOURCE.md +9 -9
- package/docs/screenshots/runner-tui.png +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.10 — Faithful terminal branding
|
|
4
|
+
|
|
5
|
+
- Reproduce the original Runner icon with a detailed, transparent terminal
|
|
6
|
+
silhouette: preserve the thick rounded frame, raised connector, prompt and
|
|
7
|
+
orange sparkle. Use quadrant glyphs at two sizes for wide terminals and
|
|
8
|
+
refresh the README terminal screenshot.
|
|
9
|
+
|
|
3
10
|
## 0.4.9 — Version visibility and adaptive Runner TUI
|
|
4
11
|
|
|
5
12
|
- Refine the Runner startup card into a compact side-by-side icon and details
|
package/README.en.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
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
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.
|
|
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.10** supports one administrator and multiple devices.
|
|
37
37
|
|
|
38
38
|
## Why HomeAgent
|
|
39
39
|
|
|
@@ -117,7 +117,7 @@ Install Docker Engine, Compose v2 and Git. Point your domain at the server and
|
|
|
117
117
|
allow inbound TCP ports 80/443. Replace `mcp.example.com` below with your domain.
|
|
118
118
|
|
|
119
119
|
```sh
|
|
120
|
-
git clone --branch v0.4.
|
|
120
|
+
git clone --branch v0.4.10 --depth 1 https://github.com/jhxxr/HomeAgent.git
|
|
121
121
|
cd HomeAgent
|
|
122
122
|
|
|
123
123
|
# Generate random secrets without installing Node.js on the host.
|
|
@@ -213,6 +213,10 @@ connecting, connected, reconnect countdown and stopped states. Piped output,
|
|
|
213
213
|
services and `homeagent run --plain` keep the single version log line for
|
|
214
214
|
systemd, scheduled tasks and scripts.
|
|
215
215
|
|
|
216
|
+

|
|
217
|
+
|
|
218
|
+
*Runner TUI (current source build): actual terminal output from an isolated demo environment, using a demo device and project directory.*
|
|
219
|
+
|
|
216
220
|
Enter Windows project paths such as `E:/Projects/my-app` in the Dashboard.
|
|
217
221
|
Keep configuration and state outside every exposed project. Local settings accept only connection and runtime options; project policies
|
|
218
222
|
come exclusively from the Server.
|
|
@@ -341,7 +345,7 @@ helpers. Each package has an explicit file list and license notices.
|
|
|
341
345
|
See [release preparation](docs/OPEN_SOURCE.md) to generate a reviewed source
|
|
342
346
|
archive. Nothing in the release commands automatically publishes or pushes it.
|
|
343
347
|
|
|
344
|
-
The `v0.4.
|
|
348
|
+
The `v0.4.10` release configuration produces separate `homeagent-server` and
|
|
345
349
|
`homeagent-runner` packages; local release commands do not upload to npm or push a
|
|
346
350
|
GitHub Release. For subsequent releases, increment the version and update the
|
|
347
351
|
version files and changelog before pushing a matching `vX.Y.Z` tag. Configure
|
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
HomeAgent 让 Claude、ChatGPT、Cursor 等 MCP 客户端,通过你部署的 Server 操作自己的 Linux / Windows 开发机器。Runner 主动连出,在本地执行授权的文件、命令和 Git 操作,无需开放被控端入站端口。
|
|
35
35
|
|
|
36
|
-
系统运行无需模型 API Key、第三方中继、遥测或付费云服务;工具结果会返回给你选择的 AI 客户端。当前版本 **v0.4.
|
|
36
|
+
系统运行无需模型 API Key、第三方中继、遥测或付费云服务;工具结果会返回给你选择的 AI 客户端。当前版本 **v0.4.10**,支持单管理员、多设备。
|
|
37
37
|
|
|
38
38
|
## 为什么使用 HomeAgent
|
|
39
39
|
|
|
@@ -111,7 +111,7 @@ Server 和 Runner 已拆成两个 npm 包,分别安装在中继服务器和需
|
|
|
111
111
|
准备 Docker Engine、Compose v2 和 Git,将自己的域名解析到服务器,并放行 TCP 80/443。下面以 `mcp.example.com` 为例,执行前替换成自己的域名。
|
|
112
112
|
|
|
113
113
|
```sh
|
|
114
|
-
git clone --branch v0.4.
|
|
114
|
+
git clone --branch v0.4.10 --depth 1 https://github.com/jhxxr/HomeAgent.git
|
|
115
115
|
cd HomeAgent
|
|
116
116
|
|
|
117
117
|
# 用容器生成随机密码和会话密钥,无需在宿主机安装 Node.js
|
|
@@ -177,6 +177,10 @@ Runner 自动记录成功登录或启动时的配置位置,切换工作目录
|
|
|
177
177
|
|
|
178
178
|
交互式终端启动时会显示应用图标、版本、设备名、Server、配置位置和运行时信息的启动画面,连接状态固定在下方实时更新(连接中、已连接、重连倒计时、已停止)。服务、管道输出或使用 `homeagent run --plain` 时保留单行版本日志,方便 systemd、计划任务和脚本采集。
|
|
179
179
|
|
|
180
|
+

|
|
181
|
+
|
|
182
|
+
*Runner TUI(当前源码):隔离演示环境中的实际终端输出,设备与目录均为演示数据。*
|
|
183
|
+
|
|
180
184
|
Windows 的项目根目录可在网页中填为 `E:/Projects/my-app`。Runner 配置和 stateDir 都必须位于所有暴露项目之外。本地只维护连接信息、设备凭据和任务状态。
|
|
181
185
|
|
|
182
186
|
需要自启动时,完成配对并停止前台 Runner,再运行 `homeagent service-install`。Linux 安装用户 systemd 服务;Windows 安装当前用户登录时启动的计划任务。安装时自动识别配置位置,生成的服务固定使用该路径。
|
|
@@ -284,4 +288,4 @@ npm audit --omit=dev --audit-level=high
|
|
|
284
288
|
|
|
285
289
|
发布前执行 [开源与发布检查](docs/OPEN_SOURCE.md)。npm 发布会生成两个包:`homeagent-server` 只包含 Server/Web Dashboard,`homeagent-runner` 只包含 Runner、共享协议和 Windows 辅助程序;两者都采用明确的发布文件白名单。
|
|
286
290
|
|
|
287
|
-
`v0.4.
|
|
291
|
+
`v0.4.10` 的发布配置会分别生成 `homeagent-server` 和 `homeagent-runner`;本地发布命令不会自动上传 npm 或推送 GitHub。后续发布递增版本,更新版本文件和 changelog 后推送匹配标签;预发布使用 npm `next`,正式版本使用 `latest`。Token 权限、OIDC 切换和重试行为见 [自动发布说明](docs/OPEN_SOURCE.md#github-actions-自动发布)。
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Brand silhouette sampled from public/icon.png, with the white tile removed.
|
|
2
|
+
// Each character is one quadrant pixel; # = blue, o = orange, space = transparent.
|
|
3
|
+
// The two sizes preserve the original curves, stroke weights and sparkle.
|
|
4
|
+
export const logoPixels = {
|
|
5
|
+
32: [
|
|
6
|
+
' ',
|
|
7
|
+
' oo ',
|
|
8
|
+
' ooo ',
|
|
9
|
+
' ooooo ',
|
|
10
|
+
' oooooooooooooo ',
|
|
11
|
+
' ooooooooooooooo ',
|
|
12
|
+
' ooooooo ',
|
|
13
|
+
' ############ ooo ',
|
|
14
|
+
' ############ ooo ',
|
|
15
|
+
' #### ',
|
|
16
|
+
' ###################################### ###### ',
|
|
17
|
+
' ####################################### ######## ',
|
|
18
|
+
' ##### ##### ',
|
|
19
|
+
' #### #### ',
|
|
20
|
+
' #### #### ',
|
|
21
|
+
' #### #### ',
|
|
22
|
+
' #### ##### #### ',
|
|
23
|
+
' #### ######## #### ',
|
|
24
|
+
' #### ######### #### ',
|
|
25
|
+
' #### ######## #### ',
|
|
26
|
+
' #### ####### #### ',
|
|
27
|
+
' #### ######### #### ',
|
|
28
|
+
' #### ######### #### ',
|
|
29
|
+
' #### ######## #### ',
|
|
30
|
+
' #### ###### ################ #### ',
|
|
31
|
+
' #### ################ #### ',
|
|
32
|
+
' #### #### ',
|
|
33
|
+
' #### #### ',
|
|
34
|
+
' ##### ##### ',
|
|
35
|
+
' ################################################## ',
|
|
36
|
+
' ############################################## ',
|
|
37
|
+
' ',
|
|
38
|
+
],
|
|
39
|
+
40: [
|
|
40
|
+
' ',
|
|
41
|
+
' ooo ',
|
|
42
|
+
' ooo ',
|
|
43
|
+
' ooooo ',
|
|
44
|
+
' ooooooo ',
|
|
45
|
+
' ooooooooooooooo ',
|
|
46
|
+
' ooooooooooooooooooo ',
|
|
47
|
+
' oooooooooooo ',
|
|
48
|
+
' ############# ooooooo ',
|
|
49
|
+
' ############### ooooo ',
|
|
50
|
+
' ################ ooo ',
|
|
51
|
+
' ##### o ',
|
|
52
|
+
' ############################################# ###### ',
|
|
53
|
+
' ################################################ ######### ',
|
|
54
|
+
' ################################################## ########## ',
|
|
55
|
+
' ##### ###### ',
|
|
56
|
+
' ###### ##### ',
|
|
57
|
+
' ###### ##### ',
|
|
58
|
+
' ###### ##### ',
|
|
59
|
+
' ###### ##### ',
|
|
60
|
+
' ###### ###### ##### ',
|
|
61
|
+
' ###### ######### ##### ',
|
|
62
|
+
' ###### ########## ##### ',
|
|
63
|
+
' ###### ########## ##### ',
|
|
64
|
+
' ###### ########### ##### ',
|
|
65
|
+
' ###### ######### ##### ',
|
|
66
|
+
' ###### ########## ##### ',
|
|
67
|
+
' ###### ########### ##### ',
|
|
68
|
+
' ###### ########### ##### ',
|
|
69
|
+
' ###### ########## ##### ',
|
|
70
|
+
' ###### ######## ##################### ##### ',
|
|
71
|
+
' ###### #### ##################### ##### ',
|
|
72
|
+
' ###### ##### ',
|
|
73
|
+
' ###### ##### ',
|
|
74
|
+
' ##### ##### ',
|
|
75
|
+
' ###### ##### ',
|
|
76
|
+
' ################################################################ ',
|
|
77
|
+
' ############################################################# ',
|
|
78
|
+
' ####################################################### ',
|
|
79
|
+
' ',
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=logo.js.map
|
package/dist/runner/tui.js
CHANGED
|
@@ -1,39 +1,8 @@
|
|
|
1
1
|
import { stripVTControlCharacters } from 'node:util';
|
|
2
2
|
import { VERSION } from '../shared/protocol.js';
|
|
3
|
+
import { logoPixels } from './logo.js';
|
|
3
4
|
const ESC = '\x1b[';
|
|
4
5
|
const RESET = `${ESC}0m`;
|
|
5
|
-
const LOGO = [
|
|
6
|
-
' ................ ',
|
|
7
|
-
' .................... ',
|
|
8
|
-
' ...................... ',
|
|
9
|
-
' ..................o... ',
|
|
10
|
-
'..................+o+...',
|
|
11
|
-
'.................+oooo..',
|
|
12
|
-
'..............+###+o+...',
|
|
13
|
-
'..............####+o....',
|
|
14
|
-
'...+############+#+.....',
|
|
15
|
-
'...############++##.....',
|
|
16
|
-
'...#+............+#+....',
|
|
17
|
-
'...#+.+..........+#+....',
|
|
18
|
-
'...#+.##+........+#+....',
|
|
19
|
-
'...#+.+##+.......+#+....',
|
|
20
|
-
'...#+...##+......+#+....',
|
|
21
|
-
'...#+..###+......+#+....',
|
|
22
|
-
'...#+.##+.++++++.+#+....',
|
|
23
|
-
'...#+.++..#####+.+#+....',
|
|
24
|
-
'...#+............+#+....',
|
|
25
|
-
'...##++++++++++++##.....',
|
|
26
|
-
' ..+##############+.... ',
|
|
27
|
-
' ...................... ',
|
|
28
|
-
' .................... ',
|
|
29
|
-
' ................ ',
|
|
30
|
-
];
|
|
31
|
-
const PALETTE = {
|
|
32
|
-
'.': '243;249;253',
|
|
33
|
-
'#': '7;85;255',
|
|
34
|
-
'o': '255;101;62',
|
|
35
|
-
'+': '224;235;252',
|
|
36
|
-
};
|
|
37
6
|
const BRAND = {
|
|
38
7
|
blue: '38;2;7;85;255',
|
|
39
8
|
orange: '38;2;255;101;62',
|
|
@@ -89,34 +58,22 @@ function cardLayout(options) {
|
|
|
89
58
|
function paint(text, code, color) {
|
|
90
59
|
return color ? `${ESC}${code}m${text}${RESET}` : text;
|
|
91
60
|
}
|
|
92
|
-
/**
|
|
93
|
-
export function renderLogo(color) {
|
|
61
|
+
/** Quadrant glyphs retain twice the horizontal detail of half-block pixels. */
|
|
62
|
+
export function renderLogo(color, columns = 32) {
|
|
63
|
+
const pixels = logoPixels[columns];
|
|
64
|
+
const quadrants = [' ', '▘', '▝', '▀', '▖', '▌', '▞', '▛', '▗', '▚', '▐', '▜', '▄', '▙', '▟', '█'];
|
|
94
65
|
const lines = [];
|
|
95
|
-
for (let
|
|
96
|
-
const upper = LOGO[row];
|
|
97
|
-
const lower = LOGO[row + 1];
|
|
66
|
+
for (let y = 0; y < pixels.length; y += 2) {
|
|
98
67
|
let line = '';
|
|
99
|
-
for (let x = 0; x <
|
|
100
|
-
const
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
continue;
|
|
107
|
-
}
|
|
108
|
-
if (!color) {
|
|
109
|
-
line += topFilled && bottomFilled ? '█' : topFilled ? '▀' : '▄';
|
|
110
|
-
continue;
|
|
111
|
-
}
|
|
112
|
-
if (topFilled && bottomFilled)
|
|
113
|
-
line += `${ESC}38;2;${PALETTE[top]}m${ESC}48;2;${PALETTE[bottom]}m▀`;
|
|
114
|
-
else if (topFilled)
|
|
115
|
-
line += `${ESC}38;2;${PALETTE[top]}m${ESC}49m▀`;
|
|
116
|
-
else
|
|
117
|
-
line += `${ESC}38;2;${PALETTE[bottom]}m${ESC}49m▄`;
|
|
68
|
+
for (let x = 0; x < columns * 2; x += 2) {
|
|
69
|
+
const cell = [pixels[y][x], pixels[y][x + 1], pixels[y + 1][x], pixels[y + 1][x + 1]];
|
|
70
|
+
const mask = cell.reduce((bits, pixel, index) => bits | (pixel !== ' ' ? 1 << index : 0), 0);
|
|
71
|
+
const ink = cell.includes('o') ? BRAND.orange : BRAND.blue;
|
|
72
|
+
// Background-filled cells avoid font baseline seams in solid strokes.
|
|
73
|
+
line += color && mask === 15 ? paint(' ', ink.replace('38;', '48;'), true)
|
|
74
|
+
: mask ? paint(quadrants[mask], ink, color) : ' ';
|
|
118
75
|
}
|
|
119
|
-
lines.push(
|
|
76
|
+
lines.push(line);
|
|
120
77
|
}
|
|
121
78
|
return lines;
|
|
122
79
|
}
|
|
@@ -146,10 +103,12 @@ export function renderRunnerCard(info, options = {}) {
|
|
|
146
103
|
};
|
|
147
104
|
const entry = ([label, value]) => paint(label, BRAND.dim, color) + ' ' + safeText(value);
|
|
148
105
|
if (width >= 76) {
|
|
149
|
-
const
|
|
106
|
+
const logoWidth = width >= 92 ? 40 : 32;
|
|
107
|
+
const detailWidth = inner - logoWidth - 4;
|
|
150
108
|
const details = ['', title, version, '', ...entries.map(entry), '', paint(truncate(hint, detailWidth), BRAND.dim, color)];
|
|
151
|
-
|
|
152
|
-
|
|
109
|
+
const top = Math.floor((logoWidth / 2 - details.length) / 2);
|
|
110
|
+
renderLogo(color, logoWidth).forEach((logo, index) => {
|
|
111
|
+
const detail = truncate(details[index - top] ?? '', detailWidth);
|
|
153
112
|
row(logo + ' ' + border('│') + ' ' + detail);
|
|
154
113
|
});
|
|
155
114
|
}
|
|
@@ -195,7 +154,7 @@ export function colorEnabled(env = process.env) {
|
|
|
195
154
|
return false;
|
|
196
155
|
return true;
|
|
197
156
|
}
|
|
198
|
-
/**
|
|
157
|
+
/** Use the brand colors on truecolor terminals, and monochrome elsewhere. */
|
|
199
158
|
export function truecolorEnabled(stream = process.stdout, env = process.env) {
|
|
200
159
|
if (!colorEnabled(env))
|
|
201
160
|
return false;
|
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.10';
|
|
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.10 后重新构建并启动,保留原 `.env` 和数据卷。Runner v0.3.0 不需要为 OAuth 回调修复升级;要使用 v0.4 的 Web 权限管理,则 Server 和 Runner 都应升级到 v0.4.10。
|
|
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.10 --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.10,npm 发布拆成 `homeagent-server` 和 `homeagent-runner` 两个包。Server 包只包含编译后的 Server、Dashboard 和 Server 资源;Runner 包只包含 Runner、共享协议和 Windows 进程树辅助代码。CLI 和源码采用相同许可证;两个 npm 包都通过文件白名单只包含运行所需文件、文档和许可证。包名是否可用及账号发布权限以发布当时的 registry 为准。
|
|
4
4
|
|
|
5
5
|
## 文件划分
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ 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`、`dashboard-mobile.png`、`permissions.png`、`jobs.png`;检查 PNG 文件头,并限制每张不超过 2 MiB、每边不超过 4096 像素。图片内容需人工查看,截图应来自隔离演示环境,不得包含真实凭据或私人项目数据。Runner 包仅携带 README 使用的图标,不包含 Dashboard 脚本。
|
|
32
|
+
图片仅允许 `public/icon.png` 和 `docs/screenshots/` 下的 `dashboard.png`、`dashboard-mobile.png`、`permissions.png`、`jobs.png`、`runner-tui.png`;检查 PNG 文件头,并限制每张不超过 2 MiB、每边不超过 4096 像素。图片内容需人工查看,截图应来自隔离演示环境,不得包含真实凭据或私人项目数据。Runner 包仅携带 README 使用的图标,不包含 Dashboard 脚本。
|
|
33
33
|
|
|
34
34
|
这些只是可复现的自动检查,不能证明没有未知类型的敏感数据。公开前仍需人工检查文件列表、部署示例和私有路径。不要用“把整个工作目录压缩”代替源码发布。
|
|
35
35
|
|
|
@@ -53,7 +53,7 @@ npm run release:source
|
|
|
53
53
|
|
|
54
54
|
输出位于被忽略的 release/:
|
|
55
55
|
|
|
56
|
-
- `HomeAgent-v0.4.
|
|
56
|
+
- `HomeAgent-v0.4.10-source.tar.gz`
|
|
57
57
|
- 对应 `.sha256` 校验文件
|
|
58
58
|
- 对应 `.manifest.txt`,包括版本、Git 提交和全部发布路径
|
|
59
59
|
|
|
@@ -65,8 +65,8 @@ npm run release:source
|
|
|
65
65
|
|
|
66
66
|
`npm run release:npm` 构建 JavaScript、以 `--ignore-scripts` 分别打包两个包,并检查归档文件白名单、运行资源及 SHA-512 完整性,输出:
|
|
67
67
|
|
|
68
|
-
- `release/homeagent-server-0.4.
|
|
69
|
-
- `release/homeagent-runner-0.4.
|
|
68
|
+
- `release/homeagent-server-0.4.10.tgz`
|
|
69
|
+
- `release/homeagent-runner-0.4.10.tgz`
|
|
70
70
|
- 两个归档各自的 `.sha256`
|
|
71
71
|
- `release/npm-packages.json`:两个包的名称、版本、Git commit、校验、dist-tag 和路径清单
|
|
72
72
|
|
|
@@ -76,20 +76,20 @@ npm run release:source
|
|
|
76
76
|
|
|
77
77
|
`.github/workflows/release.yml` 支持两种入口:
|
|
78
78
|
|
|
79
|
-
1. 推送版本标签,例如 `v0.4.
|
|
79
|
+
1. 推送版本标签,例如 `v0.4.10`。
|
|
80
80
|
2. 在 Actions → release → Run workflow 中填写**已经存在**的版本标签。
|
|
81
81
|
|
|
82
82
|
先按下一节配置 `NPM_TOKEN`。首次推送源码、配置真实 `origin` 并确认 Actions 可用后,可以按下面方式发布:
|
|
83
83
|
|
|
84
84
|
```sh
|
|
85
85
|
# 先提交本次版本的源码和文档,工作区保持干净
|
|
86
|
-
git tag -a v0.4.
|
|
87
|
-
git push origin v0.4.
|
|
86
|
+
git tag -a v0.4.10 -m "HomeAgent v0.4.10"
|
|
87
|
+
git push origin v0.4.10
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
本文只是发布说明,准备脚本不会替操作者执行这些命令。
|
|
91
91
|
|
|
92
|
-
标签必须与 package.json、package-lock.json 及 runtime VERSION 一致,CHANGELOG.md 必须有对应版本的非空条目。预发布可用 `v0.4.
|
|
92
|
+
标签必须与 package.json、package-lock.json 及 runtime VERSION 一致,CHANGELOG.md 必须有对应版本的非空条目。预发布可用 `v0.4.10-rc.1`(相关版本文件也必须为 `0.4.10-rc.1`)。禁止把普通分支或不匹配版本伪装成发布。
|
|
93
93
|
|
|
94
94
|
发布流水线按次序执行:
|
|
95
95
|
|
|
Binary file
|
package/package.json
CHANGED