session-peer 0.2.0 → 0.3.0
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/CONTRIBUTING.md +5 -0
- package/PARITY.md +300 -16
- package/README.ja.md +75 -162
- package/README.ko.md +75 -249
- package/README.md +74 -275
- package/README.zh-CN.md +71 -158
- package/RELEASING.md +101 -5
- package/SECURITY.md +3 -2
- package/VALIDATION.md +236 -5
- package/dist/cli.d.ts +10 -1
- package/dist/cli.js +288 -48
- package/dist/diagnostics.d.ts +2 -0
- package/dist/diagnostics.js +10 -4
- package/dist/discovery.d.ts +1 -0
- package/dist/discovery.js +17 -4
- package/dist/help.js +32 -5
- package/dist/output.d.ts +1 -1
- package/dist/output.js +18 -2
- package/dist/process.d.ts +1 -0
- package/dist/process.js +90 -7
- package/dist/protocol.d.ts +6 -3
- package/dist/protocol.js +27 -7
- package/dist/replies.d.ts +30 -0
- package/dist/replies.js +283 -0
- package/dist/send.js +9 -2
- package/dist/ssh.d.ts +24 -0
- package/dist/ssh.js +114 -0
- package/dist/updates.d.ts +37 -0
- package/dist/updates.js +444 -0
- package/dist/windows.d.ts +2 -0
- package/dist/windows.js +31 -3
- package/docs/api.md +30 -0
- package/docs/design/remote-deployment.md +867 -0
- package/docs/guide.ja.md +310 -0
- package/docs/guide.ko.md +489 -0
- package/docs/guide.md +554 -0
- package/docs/guide.zh-CN.md +294 -0
- package/docs/shorthand.md +198 -0
- package/package.json +5 -3
- package/shorthand/sp.ps1 +11 -0
- package/shorthand/sp.sh +11 -0
package/README.zh-CN.md
CHANGED
|
@@ -13,186 +13,99 @@
|
|
|
13
13
|
|
|
14
14
|
<!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
**发现正在运行的 Claude Code 和 Codex 会话,并在本机或通过 SSH 发送消息。**
|
|
17
|
+
这是不需要 Python 的 Node.js 客户端。包名与命令名均为 `session-peer`。
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
## Demo
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+

|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
- 先用 `--dry-run` 验证目标,再向原生 inbox / queue 提交一次消息。Codex 要求唯一且稳定的活跃 writer。
|
|
24
|
-
- 通过 SSH 调用远端已安装的同版本客户端,支持结构化 Reply-To URI 和 JSON 输出。
|
|
25
|
-
- 目标或进程归属不明确时拒绝操作;不会自动重试结果不确定的提交。
|
|
23
|
+
使用 npm 0.2.1 确认了本地请求及明确的 `ACK DEMO-READY` 回复。CLI 与消息摘录经过重新渲染、标识信息匿名化及时间编辑,并非屏幕录像。仅提交不代表 ACK。
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
客户端功能计划见 [版本化兼容性表与 npm 迁移指南](PARITY.md);计划不代表当前支持。提供 Relay 服务器或托管服务不属于本客户端范围。
|
|
30
|
-
|
|
31
|
-
### 0.2.0 统一列表
|
|
32
|
-
|
|
33
|
-
构建后,`node dist/cli.js list --json` 合并列出 Claude/Codex,`list --agent codex --json` 查找已知 home。公开 npm **0.1.0** 仍要求显式 agent,以及 Codex 列表所需的 home;0.2.0 也支持显式命令格式。
|
|
34
|
-
|
|
35
|
-
范围仅限默认 `~/.codex`、`CODEX_HOME`、macOS Orca 下的直接账户 home,以及 JSON 数组 `SESSION_PEER_CODEX_HOMES`。`--codex-home` 固定 Codex 列表并绕过无关配置错误;`--agent claude` 完全跳过 Codex 探索。同一 home 的别名合并,不同 home 的相同 UUID 保留。发送时使用每行的 `codexHome`。可选 home 缺失不是错误;显式 home 缺失或无效会保留成功读取的行,并返回退出码 1。列表不会选择 writer 或提交消息。[列表契约](PARITY.md#source-unified-listing-contract--16--020)说明排序、诊断、`--all` 和 SSH 行为。0.2.0的 Codex 发送在省略 `--codex-home` 时选择唯一且稳定的 live writer;显式 home 仍会检查所有已知竞争 home。非活动队列提交需要已保存的线程、所有候选均确认非活动,以及 `--codex-home HOME --allow-inactive-codex-home`,不会执行 wake/resume。Dry-run 不提交。JSON 新增诊断 `codexHomeResolution`,且仅在原生输出提供时包含 `queueId`;两者均不代表消费确认。请参阅[选择契约](PARITY.md#source-codex-home-selection--17--020)。公开 **0.1.0** 仍需要显式 live home,且没有非活动许可选项。SSH 两端请使用同一0.2.0 构建。
|
|
36
|
-
|
|
37
|
-
### 0.2.0 CLI 易用性
|
|
38
|
-
|
|
39
|
-
0.2.0新增 `list --help`、`send --help`、`doctor --help` 和 `--output-format text`。
|
|
40
|
-
仍须明确选择输出格式:`--json` 或 `--output-format json|text`。解析错误
|
|
41
|
-
使用 JSON;有效 text 请求的操作结果和错误使用文本。SSH 内部始终传输 JSON。
|
|
42
|
-
支持 `send --to TARGET "message" --json` 位置正文,不可同时使用
|
|
43
|
-
`--message`/`-m`。省略正文或使用 `-` 从 stdin 读取;选项形式的位置正文
|
|
44
|
-
前须加 `--`。空或纯空白正文在添加发件人信息前被拒绝。Claude 名称使用
|
|
45
|
-
Unicode 14.0.0 默认 full casefold 精确匹配,不进行规范化或模糊匹配;
|
|
46
|
-
冲突时须指定 PID。这些源码功能不会追溯到已经发布的 0.1.0 包。
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## 环境要求
|
|
50
|
-
|
|
51
|
-
macOS、Linux 或 Windows native;Node **22.x 中的 22.13 及以上,或 24.x**。不支持 Node 26。原生锁依赖需要匹配的 x64/arm64 预编译二进制,本包不是纯 JavaScript 实现。Codex 发送需要 `codex`,macOS/Linux 还需要 `lsof`、`ps`;Windows 使用原生锁和 Restart Manager 验证所有者。Claude 需要运行中的 TUI 及可访问的原生 inbox。SSH 使用已有密钥和主机信任,远端必须安装**同版本**客户端。
|
|
52
|
-
|
|
53
|
-
## 安装
|
|
54
|
-
|
|
55
|
-
已验证的稳定版可在 Node 22.x 的 22.13 及以上或 24.x 上安装。Python CLI 也使用同一个命令名;若已有安装,请先检查 PATH。
|
|
56
|
-
|
|
57
|
-
```sh
|
|
58
|
-
npm install --global --ignore-scripts session-peer@0.2.0
|
|
59
|
-
session-peer --version
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
预期输出:`session-peer 0.2.0 (typescript)`。
|
|
63
|
-
|
|
64
|
-
1. 用 `session-peer list --agent claude --json` 查找目标并选择准确 PID。
|
|
65
|
-
2. 用 `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` 验证,不提交。
|
|
66
|
-
3. 确定发送时使用选定 PID,移除同一命令中的 `--dry-run`,只执行一次。
|
|
67
|
-
4. 若需要 ACK,在消息中明确请求回复,并单独确认目标 TUI 的响应。`posted` / `queued` 仅表示提交。
|
|
68
|
-
|
|
69
|
-
### 从源码构建
|
|
70
|
-
|
|
71
|
-
若要使用经审查的源码而非公开的 npm 包,请构建源码,并按需安装本地 tarball:
|
|
72
|
-
|
|
73
|
-
```sh
|
|
74
|
-
git clone https://github.com/abruption/session-peer-ts.git
|
|
75
|
-
cd session-peer-ts
|
|
76
|
-
npm ci --ignore-scripts
|
|
77
|
-
npm run build
|
|
78
|
-
node dist/cli.js --version
|
|
79
|
-
npm pack --ignore-scripts
|
|
80
|
-
# 可选:全局安装前先检查 PATH 选择的现有命令
|
|
81
|
-
npm install --global --ignore-scripts ./session-peer-0.2.0.tgz
|
|
82
|
-
session-peer --version
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
保留 `./...tgz` 路径以选择本地产物。使用后续版本的源码时,请先确认检出的版本。
|
|
86
|
-
|
|
87
|
-
### 与已有安装共存
|
|
88
|
-
|
|
89
|
-
安装前后用 `type -a session-peer` 和 `command -v session-peer` 检查实际执行项。其他实现也可能提供同名命令;请选择 PATH 上的一种,或显式运行 `node /absolute/path/dist/cli.js`。不要用 `--force` 覆盖其他管理器的文件。本包不会自动安装、删除或调整 Python 包、技能或服务。卸载使用 `npm uninstall --global session-peer`,随后再次检查 PATH。
|
|
90
|
-
|
|
91
|
-
在 Windows PowerShell 中用 `Get-Command session-peer -All` 检查已有命令。为了不替换 Python CLI,可先执行 `npm ci --ignore-scripts`、`npm run build`、`npm pack --ignore-scripts`,再用 `npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.2.0.tgz` 安装到隔离目录。以 `& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version` 验证,并可用 `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` 卸载。
|
|
92
|
-
|
|
93
|
-
## 使用
|
|
25
|
+
安装后列出会话,将 `CLAUDE_PID` 替换为选中的准确 PID:
|
|
94
26
|
|
|
95
27
|
```sh
|
|
96
28
|
session-peer list --agent claude --json
|
|
97
|
-
session-peer
|
|
98
|
-
session-peer send --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
|
|
99
|
-
session-peer send --to codex:THREAD_UUID --codex-home "$HOME/.codex" --message 'Please review the API contract.' --dry-run --json
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
只有确定要投递时才移除 `--dry-run`。省略 `--message` 或使用 `--message -` 会读取 UTF-8 stdin。`--all` 仅让列表包含陈旧 / 已归档记录,不授予发送权限。Claude 支持 PID、`claude:PID` 或唯一的 Unicode 14.0.0 casefold 名称;冲突时使用 PID。Codex 发送需要完整 UUID,home 遵循上述选择规则;`--codex-bin` 可指定可执行文件。输出必须选择 `--json` 或 `--output-format json|text`。
|
|
103
|
-
|
|
104
|
-
### 跨机器 SSH
|
|
105
|
-
|
|
106
|
-
```sh
|
|
107
|
-
session-peer send --host user@machine --remote-bin /absolute/path/session-peer \
|
|
108
|
-
--to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
|
|
29
|
+
session-peer send --to CLAUDE_PID --message '请检查 API 契约并回复。' --dry-run --json
|
|
109
30
|
```
|
|
110
31
|
|
|
111
|
-
|
|
32
|
+
`--dry-run` 仅验证,不提交。实际发送时移除同一命令中的 `--dry-run`,执行一次。
|
|
33
|
+
需要确认时,请明确要求回复。**`posted` / `queued` 仅表示提交,不代表消费或 ACK。**
|
|
34
|
+
遇到 `unknown` (`submitted:null`)、没有回复或目标退出时,不要自动重试。
|
|
35
|
+
`consumptionConfirmed` 始终为 false,请在接收方 TUI 中确认实际回复。
|
|
112
36
|
|
|
113
|
-
|
|
37
|
+
## Quick Start
|
|
114
38
|
|
|
115
|
-
|
|
39
|
+
需要 macOS/Linux/Windows、**Node 22.x 中的 22.13 及以上或 24.x**,以及匹配的
|
|
40
|
+
原生预编译依赖(x64/arm64)。Claude 需要运行中的 TUI inbox;Codex 需要 CLI 和
|
|
41
|
+
可验证的 writer(macOS/Linux 还需要 `lsof`、`ps`)。SSH 需要已有密钥、主机信任
|
|
42
|
+
以及两端**同版本的 TypeScript 客户端**。平台要求与显式非活动队列提交见详细指南。
|
|
116
43
|
|
|
117
|
-
|
|
44
|
+
### Install
|
|
118
45
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
| `validated`, `submitted:false` | dry-run 检查通过,尚未发送。 |
|
|
124
|
-
| `posted` / `queued` | inbox 已写入 / queue 已接受,**不是消费确认或 ACK**。 |
|
|
125
|
-
| `refused`, `submitted:false` | 提交前被拒绝。 |
|
|
126
|
-
| `unknown`, `submitted:null` | 可能已经提交,不要自动重发。 |
|
|
127
|
-
|
|
128
|
-
提交后没有回复或目标退出,都不能单独证明消息已消费或失败。不要自动重发。
|
|
129
|
-
|
|
130
|
-
`consumptionConfirmed` 始终为 false。必须在目标 TUI 中另行确认实际 ACK,不可由排队或轮询 transcript 推断。退出码 0/1/2 分别表示成功/错误/用法错误。错误只返回固定代码,不返回原生 stderr 或消息内容。Codex 使用真实内核 flock、文件身份和同用户进程开始时间进行多次核验,排队前再次检查。不删除 lock,也不向拥有它的代理进程发送信号。发现结果仍包含本地名称、路径、ID,分享前请脱敏。
|
|
131
|
-
|
|
132
|
-
## 开发与验证
|
|
46
|
+
[Python CLI](https://github.com/abruption/session-peer)也使用同名命令。
|
|
47
|
+
安装前,macOS/Linux 使用 `type -a session-peer`,PowerShell 使用
|
|
48
|
+
`Get-Command session-peer -All` 检查 PATH。选择所需实现,不要用 `--force`
|
|
49
|
+
覆盖其他安装管理器的文件。
|
|
133
50
|
|
|
134
51
|
```sh
|
|
135
|
-
npm
|
|
136
|
-
|
|
137
|
-
node scripts/check-repository.mjs
|
|
138
|
-
SESSION_PEER_PYTHON_ROOT=/path/to/python-reference npm test
|
|
139
|
-
npm run test:package
|
|
140
|
-
npm audit
|
|
52
|
+
npm install --global --ignore-scripts session-peer@0.3.0
|
|
53
|
+
session-peer --version
|
|
141
54
|
```
|
|
142
55
|
|
|
143
|
-
|
|
56
|
+
预期输出:`session-peer 0.3.0 (typescript)`。隔离安装、源码构建、Windows 和
|
|
57
|
+
卸载步骤见下方详细指南。
|
|
144
58
|
|
|
145
|
-
|
|
59
|
+
可选的 `sp` 简写包含在 0.3.0 及更高版本中(0.2.1 及更早版本没有),不会自动启用。
|
|
60
|
+
请参阅[显式启用、冲突与停用(英文)](docs/shorthand.md)。
|
|
146
61
|
|
|
147
|
-
|
|
62
|
+
### Update
|
|
148
63
|
|
|
149
|
-
|
|
150
|
-
|
|
64
|
+
使用 npm 更新由 npm 管理的安装。先检查标签并审阅目标版本,再安装指定版本。
|
|
65
|
+
下面示例将旧 npm 安装更新至 0.3.0。CLI 不会安装更新,`session-peer update --check` 只做检查。
|
|
151
66
|
|
|
152
67
|
```sh
|
|
153
|
-
npm view session-peer@0.2.0 version dist.integrity
|
|
154
68
|
npm view session-peer dist-tags
|
|
69
|
+
npm install --global --ignore-scripts session-peer@0.3.0
|
|
70
|
+
session-peer --version
|
|
155
71
|
```
|
|
156
72
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
如果代理缓存了技能目录,请重启代理。运行时和技能独立管理:npm `--ignore-scripts` 可正常使用,
|
|
197
|
-
postinstall 不会调用 Skills CLI,安装此技能不会覆盖 Python 技能或安装运行时。
|
|
198
|
-
参见[兼容性和验证](PARITY.md#source-ts-skill-guidance--25--020)。
|
|
73
|
+
配套技能需单独安装和更新;npm 安装不会安装技能。请参阅指南中固定提交的技能安装步骤。
|
|
74
|
+
|
|
75
|
+
<!-- Preserve links to the former detailed sections; their contents are in the guide. -->
|
|
76
|
+
<a id="功能与边界"></a>
|
|
77
|
+
<a id="020-统一列表"></a>
|
|
78
|
+
<a id="020-cli-易用性"></a>
|
|
79
|
+
<a id="环境要求"></a>
|
|
80
|
+
<a id="安装"></a>
|
|
81
|
+
<a id="从源码构建"></a>
|
|
82
|
+
<a id="与已有安装共存"></a>
|
|
83
|
+
<a id="使用"></a>
|
|
84
|
+
<a id="跨机器-ssh"></a>
|
|
85
|
+
<a id="回复"></a>
|
|
86
|
+
<a id="成功含义与安全性"></a>
|
|
87
|
+
<a id="开发与验证"></a>
|
|
88
|
+
<a id="npm-版本"></a>
|
|
89
|
+
<a id="相关项目"></a>
|
|
90
|
+
<a id="020-只读诊断"></a>
|
|
91
|
+
<a id="显式安装代理技能"></a>
|
|
92
|
+
|
|
93
|
+
## Docs
|
|
94
|
+
|
|
95
|
+
- [用户指南](docs/guide.zh-CN.md) — CLI 选项、发现、Codex home、SSH、回复、安装方式和技能设置.
|
|
96
|
+
- [API 参考(英文)](docs/api.md).
|
|
97
|
+
- [兼容性、迁移和功能计划](PARITY.md).
|
|
98
|
+
- [发布证据与平台验证](VALIDATION.md).
|
|
99
|
+
- [开发与贡献](CONTRIBUTING.md).
|
|
100
|
+
- [发布流程](RELEASING.md).
|
|
101
|
+
|
|
102
|
+
## License
|
|
103
|
+
|
|
104
|
+
采用 [MIT 许可证](LICENSE)。
|
|
105
|
+
|
|
106
|
+
## Support and security
|
|
107
|
+
|
|
108
|
+
使用问题和可复现的缺陷请提交到[议题](https://github.com/abruption/session-peer-ts/issues)。
|
|
109
|
+
漏洞请使用[私密报告](https://github.com/abruption/session-peer-ts/security/advisories/new)或
|
|
110
|
+
[support@abruption.dev](mailto:support@abruption.dev?subject=%5Bsession-peer-ts%5D%20Security)。
|
|
111
|
+
请阅读 [SECURITY.md](SECURITY.md),并移除凭据、消息内容和个人路径。
|
package/RELEASING.md
CHANGED
|
@@ -7,7 +7,103 @@ remain independent. The npm Trusted Publisher for `abruption/session-peer-ts`,
|
|
|
7
7
|
uses OIDC and no npm token. The protected GitHub environment requires a reviewer
|
|
8
8
|
and permits deployments from `main` only.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
<a id="current-public-release--021"></a>
|
|
11
|
+
|
|
12
|
+
## Public release checkpoint — 0.2.1 (2026-09-29 KST)
|
|
13
|
+
|
|
14
|
+
`session-peer@0.2.1` was published on 2026-09-29 KST. Public verification passed
|
|
15
|
+
with `latest=0.2.1` and unchanged `preview=0.1.0-preview.1`; see the
|
|
16
|
+
[dated 0.2.1 verification record](VALIDATION.md#public-021--2026-09-29-kst).
|
|
17
|
+
0.2.0 was published on 2026-09-28 KST
|
|
18
|
+
([record](VALIDATION.md#public-020--2026-09-28-kst)). The completed 0.2.1 and
|
|
19
|
+
0.2.0 procedures below are history, not repeatable dispatches. A future release
|
|
20
|
+
requires a new reviewed version and baseline preparation PR.
|
|
21
|
+
|
|
22
|
+
## 0.3.0 stable release procedure
|
|
23
|
+
|
|
24
|
+
The reviewed stable target is 0.3.0, the remote usability and maintenance
|
|
25
|
+
release ([changes and known limitations](PARITY.md#030-remote-usability-and-maintenance)).
|
|
26
|
+
Its preparation PR pins previous stable 0.2.1 integrity:
|
|
27
|
+
`sha512-bPjriJZf7OQ5niZafwxNgMYo0DVpZldELEjp640xAfBMjBCAJatT2hPMTG9oV7xDX2ULCPUmox9+vFWc5nw0Mg==`
|
|
28
|
+
(recorded attestation URL
|
|
29
|
+
`https://registry.npmjs.org/-/npm/v1/attestations/session-peer@0.2.1`; the script
|
|
30
|
+
checks only its registry origin).
|
|
31
|
+
The preview integrity remains pinned as a preservation check. No existing tag is
|
|
32
|
+
removed. The outcome of this procedure is recorded only in a dated VALIDATION.md
|
|
33
|
+
section; this document does not assert it.
|
|
34
|
+
|
|
35
|
+
1. Merge the reviewed 0.3.0 preparation PR into main and require successful
|
|
36
|
+
exact-main CI (including Windows Node 22/24, CodeQL and the release gate).
|
|
37
|
+
2. Check npm environment reviewers and main-only deployment policy, package
|
|
38
|
+
ownership/2FA and stage-only Trusted Publisher mapping. Inspect pending stages
|
|
39
|
+
with authenticated `npm stage list session-peer`; stop on a conflicting stage.
|
|
40
|
+
3. Require 0.3.0 absent, `latest=0.2.1` and `preview=0.1.0-preview.1`. The script
|
|
41
|
+
enforces these tags, the exact 0.2.1 and preview integrity values, and that their
|
|
42
|
+
attestation metadata URLs are on the npm registry origin. It does not pin
|
|
43
|
+
provenance contents or the full attestation URL; compare those manually with
|
|
44
|
+
the dated public records before approval.
|
|
45
|
+
4. Obtain final approval naming the **exact merged main SHA** (40 characters),
|
|
46
|
+
**0.3.0**, **stable-stage** and `latest` promotion to 0.3.0. An instruction to
|
|
47
|
+
prepare the release does not identify a future merged SHA. Do not replay any
|
|
48
|
+
historical approval.
|
|
49
|
+
5. Dispatch `publish.yml` on main with `mode=stable-stage`, `version=0.3.0`,
|
|
50
|
+
`source_sha=<approved 40-character main SHA>`, and
|
|
51
|
+
`confirmation=session-peer@0.3.0 stable-stage`.
|
|
52
|
+
6. Before approving the protected npm environment, download the prepare job's
|
|
53
|
+
`npm-release-<SHA>` artifact and apply the documentation gate below, including
|
|
54
|
+
`docs/shorthand.md` and `docs/design/remote-deployment.md`.
|
|
55
|
+
7. Staging uses Node 24/npm 11.15.0 (release-tool requirements in [Sources](#sources))
|
|
56
|
+
and OIDC with upload retries disabled. Record the stage ID, compare the staged
|
|
57
|
+
tarball with the retained artifact, and obtain the separate final npm 2FA
|
|
58
|
+
approval, which publishes 0.3.0 and promotes `latest`.
|
|
59
|
+
8. After approval, run `node scripts/release.mjs artifact` and
|
|
60
|
+
`node scripts/release.mjs verify` on that exact source/artifact and append dated
|
|
61
|
+
public evidence to VALIDATION.md.
|
|
62
|
+
|
|
63
|
+
Release notes must state that SSH requires the same version on both ends, so
|
|
64
|
+
0.2.1 and 0.3.0 hosts refuse each other at preflight; upgrade endpoints together.
|
|
65
|
+
They must also list the known limitations: `--ssh-jump` is refused on Windows
|
|
66
|
+
clients (#20 Partial); the remote deployment design (#23) is a proposal whose
|
|
67
|
+
Windows cell and newest receipt/recovery rules are unvalidated; update notices
|
|
68
|
+
are opt-in, and their Windows refresh, failure and forged-field cells are
|
|
69
|
+
unverified.
|
|
70
|
+
|
|
71
|
+
## Completed 0.2.1 stable release procedure
|
|
72
|
+
|
|
73
|
+
The reviewed stable target is 0.2.1, a reliability and hardening update
|
|
74
|
+
([changes](PARITY.md#021-reliability-and-hardening)). Previous stable 0.2.0
|
|
75
|
+
integrity is pinned:
|
|
76
|
+
`sha512-wXUVn2GdF3fKAjJA9cUKIiBc9YVswnfBNALo2nxhXqmpCqC7/9N+AQJct/06RAU7stbcbrfY55JQ15PPESXwHw==`.
|
|
77
|
+
The preview integrity remains pinned as a preservation check. No existing tag is
|
|
78
|
+
removed.
|
|
79
|
+
|
|
80
|
+
1. Merge the reviewed 0.2.1 preparation PR into main and require successful
|
|
81
|
+
exact-main CI (including Windows Node 22/24 and the release gate).
|
|
82
|
+
2. Check npm environment reviewers and main-only deployment policy, package
|
|
83
|
+
ownership/2FA and stage-only Trusted Publisher mapping. Inspect pending stages
|
|
84
|
+
with authenticated `npm stage list session-peer`; stop on a conflicting stage.
|
|
85
|
+
3. Require 0.2.1 absent, `latest=0.2.0`, `preview=0.1.0-preview.1`, and the 0.2.0
|
|
86
|
+
and preview integrity/provenance records unchanged. The script enforces these.
|
|
87
|
+
4. Obtain final approval naming **exact main SHA**, **0.2.1**, **stable-stage** and
|
|
88
|
+
`latest` promotion to 0.2.1. Do not replay any historical approval.
|
|
89
|
+
5. Dispatch `publish.yml` on main with `mode=stable-stage`, `version=0.2.1`,
|
|
90
|
+
`source_sha=<approved 40-character main SHA>`, and
|
|
91
|
+
`confirmation=session-peer@0.2.1 stable-stage`.
|
|
92
|
+
6. Before approving the protected npm environment, download the prepare job's
|
|
93
|
+
`npm-release-<SHA>` artifact and apply the documentation gate below.
|
|
94
|
+
7. Staging uses Node 24/npm 11.15.0 and OIDC with upload retries disabled. Record
|
|
95
|
+
the stage ID, compare the staged tarball with the retained artifact, and obtain
|
|
96
|
+
the separate final npm 2FA approval, which publishes 0.2.1 and promotes `latest`.
|
|
97
|
+
8. After approval, run `node scripts/release.mjs artifact` and
|
|
98
|
+
`node scripts/release.mjs verify` on that exact source/artifact and append dated
|
|
99
|
+
public evidence to VALIDATION.md.
|
|
100
|
+
|
|
101
|
+
Release notes must list the stricter 0.2.1 refusals (option-name values,
|
|
102
|
+
SSH usage exit code 2, `sqlite_home`, Windows batch shims, relative Reply-To
|
|
103
|
+
`codexHome`). SSH requires the same version on both ends, so 0.2.0 and 0.2.1
|
|
104
|
+
hosts refuse each other at preflight; upgrade the endpoints together.
|
|
105
|
+
|
|
106
|
+
## Historical pre-0.2.0 baseline checked 2026-09-28 KST
|
|
11
107
|
|
|
12
108
|
`session-peer@0.1.0` is public. The registry records publication at
|
|
13
109
|
`2026-09-27T11:23:51.466Z`; the 2026-09-28 KST recheck found
|
|
@@ -15,7 +111,7 @@ and permits deployments from `main` only.
|
|
|
15
111
|
[dated stable verification record](VALIDATION.md#public-010--2026-09-27-kst)
|
|
16
112
|
for source, staging run, artifact hashes, approvals and evidence limits.
|
|
17
113
|
|
|
18
|
-
## 0.2.0 stable release procedure
|
|
114
|
+
## Completed 0.2.0 stable release procedure
|
|
19
115
|
|
|
20
116
|
The reviewed stable target is 0.2.0. Previous stable 0.1.0 integrity is pinned:
|
|
21
117
|
`sha512-/FtILLgUpIAgqf5FsdU5/x17IGeWO3ylmm47gbSyN3hHjD40pp5gtOeAXU3zqmye/cx7PE52Pp/oLa0ZgZyDQQ==`.
|
|
@@ -183,9 +279,9 @@ reviewed new version and its own approval.
|
|
|
183
279
|
|
|
184
280
|
The first preview.0 used a bootstrap token, and the registry assigned both
|
|
185
281
|
`preview` and `latest` to it despite `--tag preview`. That bootstrap path is
|
|
186
|
-
closed in this workflow.
|
|
187
|
-
|
|
188
|
-
|
|
282
|
+
closed in this workflow. On 2026-09-29 KST the owner revoked the bootstrap token
|
|
283
|
+
and deleted the repository `NPM_TOKEN` secret; the repository and `npm`
|
|
284
|
+
environment now hold no Actions secrets. Publishing relies only on OIDC.
|
|
189
285
|
|
|
190
286
|
## Sources
|
|
191
287
|
|
package/SECURITY.md
CHANGED
|
@@ -14,6 +14,7 @@ homes, SQLite DBs, transcripts, browser profiles or .env files. Rotate exposed
|
|
|
14
14
|
secrets with their provider; deleting a comment does not revoke a secret.
|
|
15
15
|
|
|
16
16
|
Review is manual and best-effort, with no response or fix deadline. The project is
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
a published npm client, with 0.2.1 release evidence in [VALIDATION.md](VALIDATION.md#public-021--2026-09-29-kst).
|
|
18
|
+
Reports on published versions and source commits are welcome; no maintenance
|
|
19
|
+
window or backport promise exists. English and Korean reports are welcome. Disclosure
|
|
19
20
|
is coordinated with the reporter; private reports are not automatically public.
|