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/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
- 向正在运行的 **Claude Code 和 Codex 会话**发送消息,支持本机和跨机器 SSH。这是运行于 Node.js 的 TypeScript 客户端,不需要 Python。
16
+ **发现正在运行的 Claude Code 和 Codex 会话,并在本机或通过 SSH 发送消息。**
17
+ 这是不需要 Python 的 Node.js 客户端。包名与命令名均为 `session-peer`。
17
18
 
18
- **这是 0.2.0 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
19
+ ## Demo
19
20
 
20
- ## 功能与边界
21
+ ![TypeScript session-peer 0.2.1 的实际 Codex 与 Claude Code 请求和回复](https://raw.githubusercontent.com/abruption/session-peer-ts/main/docs/assets/session-peer-ts-v0.2.1-roundtrip.gif)
21
22
 
22
- - 发现本机 Claude/Codex 会话与已知 Codex home(面向 0.2.0 的功能,见下文)。
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
- 未实现 Relay 传输、MCP、wake/resume、Antigravity、自动更新及面向人的文本输出。不支持的命令会明确失败;这不是通用编排器。
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 list --agent codex --codex-home "$HOME/.codex" --json
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
- 默认远程命令是 PATH 中的 `session-peer`。绝对路径 `--remote-bin` 也可选择使用受支持 Node 的包装器。握手检查 TypeScript 标记及精确版本,不同实现会被拒绝。SSH 使用 BatchMode 和 StrictHostKeyChecking,不自动接受新主机密钥、不安装远程运行时,也不会退回 Python。消息通过 JSON stdin 传输,不放进远程 shell 参数。不支持任意 `--ssh-opt`、IPv6 字面量或 Tailscale 规范名补全,请使用 SSH 别名 / 主机名。正向访问不意味着反向访问已配置。
32
+ `--dry-run` 仅验证,不提交。实际发送时移除同一命令中的 `--dry-run`,执行一次。
33
+ 需要确认时,请明确要求回复。**`posted` / `queued` 仅表示提交,不代表消费或 ACK。**
34
+ 遇到 `unknown` (`submitted:null`)、没有回复或目标退出时,不要自动重试。
35
+ `consumptionConfirmed` 始终为 false,请在接收方 TUI 中确认实际回复。
112
36
 
113
- 对于 Windows SSH 目标,请指定 `--remote-platform win32`;若远端 PATH 中没有命令,再使用 `--remote-bin 'C:\absolute\path\session-peer.cmd'`。可用 `--ssh-control-path /local/absolute/socket` 选择已认证的 OpenSSH 控制套接字;这不会跳过主机密钥验证或授予新登录。Windows 本机的 Codex home 使用完整 `C:\Users\...\.codex` 路径。已有 Python CLI 不会被自动删除或替换。
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
- 可将 `session-peer://v1/reply?...` URI 用作 `--to`。未知 / 重复字段、不安全主机、错误编码及与显式路由的冲突都会被拒绝。`--reply-address URI` 添加显式回信地址,不自动推断或验证回程。回复时不附加新地址可用 `--no-reply-to`。有效的 CODEX_THREAD_ID / CODEX_SESSION_ID 可提供参考性 From 信息,`--no-from` 可省略;不会虚构未知发送者。peer 元数据不是授权,Reply-To URI 也不会作为 shell 文本执行。
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 ci --ignore-scripts
136
- npm run build
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
- Python 只用作开发时的兼容性基准(v1.0.2,`47c23713d0a2a3c11ebde6186afd8c43489b8b65`),不是运行时依赖。POSIX 契约测试还需要 C 编译器和 lsof。CI 在三种 OS 上使用 Node 22/24。macOS/Linux 对固定基准执行完整契约与包检查;Windows x64 执行构建、类型检查、原生 Claude inbox、持有/空闲锁、writer 归属与提交前竞争、CLI 队列结果、隔离模拟 SSH 目标的实际 PowerShell/.cmd 帧处理、包安装/原生加载/卸载及 audit。这些属于 fixture 检查;Windows 不运行 POSIX/Python 参考测试套件。Windows x64/Node 24 实机 ACK 是单独的一次性证据。临时 SQLite、Unix inbox、真实锁 fixture 与 [VALIDATION.md](VALIDATION.md) 中专用真实 TUI 的证据分开记录;fixture 通过不是 ACK。包测试检查文件清单、重复打包哈希、全新安装与卸载。原生依赖通常有安装脚本,已验证的预编译路径使用 `--ignore-scripts`。SQLite 只读连接仍可能参与 WAL 共享内存管理,不能视为快照。
56
+ 预期输出:`session-peer 0.3.0 (typescript)`。隔离安装、源码构建、Windows 和
57
+ 卸载步骤见下方详细指南。
144
58
 
145
- 参见 [CONTRIBUTING.md](CONTRIBUTING.md)、[RELEASING.md](RELEASING.md) 和 [SECURITY.md](SECURITY.md)。后续版本的发布需单独批准,未启用自动 npm 发布。采用 [MIT](LICENSE) 许可证。
59
+ 可选的 `sp` 简写包含在 0.3.0 及更高版本中(0.2.1 及更早版本没有),不会自动启用。
60
+ 请参阅[显式启用、冲突与停用(英文)](docs/shorthand.md)。
146
61
 
147
- ## npm 版本
62
+ ### Update
148
63
 
149
- 本文描述 0.2.0 功能;公开状态请查询注册表。
150
- 2026-09-28 KST 验证的前一稳定版为 0.1.0,preview 标签为 0.1.0-preview.1。
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
- 0.1.0 tarball 的历史措辞差异和验证保留在[日期记录](VALIDATION.md#public-010--2026-09-27-kst)。
158
- 发布使用 OIDC staging 和单独的 2FA 批准。Staging 成功不等于公开发布。
159
- 请参阅 [RELEASING.md](RELEASING.md)。
160
-
161
- ## 相关项目
162
-
163
- [Python session-peer](https://github.com/abruption/session-peer) 独立维护和发布,其可选功能与安装指南(例如 `pipx install session-peer`)见该项目。同样使用 `session-peer` 命令,请注意上述 PATH 规则。本客户端不依赖该安装,也不承诺功能和参数完全对等。
164
-
165
- ### 0.2.0 只读诊断
166
-
167
- ```sh
168
- session-peer doctor --json
169
- session-peer doctor --agent codex --codex-home /absolute/home --json
170
- session-peer doctor --host user@host --json
171
- ```
172
-
173
- 公开 npm 0.1.0 不包含此命令。诊断成功(`ok:true`、退出码 0)与代理就绪状态
174
- (`ready`、各代理和 home 的结果)分开报告。只检查限定的元数据和可执行文件路径,
175
- 不会执行 Codex、连接 inbox、获取 writer 锁或提交消息。Windows 就绪状态只表示
176
- 存活进程公布了 pipe,并不证明 pipe 存在或可以连接。`capabilities` 明确将
177
- wake/wait/ACK 和消费确认标为不支持。可选的 TS 技能元数据检查也不会安装任何内容。
178
- 参见[诊断边界](PARITY.md#source-read-only-doctor--18--020)。SSH 两端需要相同的源码构建。
179
- ## 显式安装代理技能
180
-
181
- 独立的 `session-peer-ts` 技能在配套 PR 中管理,不代表新 npm 或技能标签发布。它支持已发布的 0.1.0 基础功能,通过 TypeScript 标识和帮助检查开发功能。Python 的 `session-peer` 技能仍独立保留。
182
-
183
- 先检查[固定提交的技能源码](https://github.com/abruption/session-peer-skill/tree/081cc3c1d16a394bd92824333f4bc61c36951799/session-peer-ts),再选择代理和安装范围。
184
- 以下示例选择 **Codex、当前项目**;请在该项目目录中运行。
185
- Claude Code 使用 `--agent claude-code`。用户范围安装应在 add/list/remove 中一致添加 `--global`。
186
- 批准替换已有的 `session-peer-ts` 副本前,请检查本地修改。
187
- Codex 的 `.agents/skills` 目录与其他扫描该路径的客户端共享。
188
-
189
- ```sh
190
- npx -y skills@1.7.0 add https://github.com/abruption/session-peer-skill/tree/081cc3c1d16a394bd92824333f4bc61c36951799/session-peer-ts --skill session-peer-ts --agent codex --copy --yes
191
- npx -y skills@1.7.0 list --agent codex --json
192
- npx -y skills@1.7.0 remove session-peer-ts --agent codex --yes
193
- ```
194
-
195
- 更新固定版本时,请检查另一个准确的提交,然后以相同代理和范围重新运行 `add`。
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
- ## Public baseline checked 2026-09-28 KST
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. The repository `NPM_TOKEN` secret and any remaining
187
- bootstrap credential should be removed through a separate owner-approved account
188
- operation; this PR neither reads nor changes those credentials.
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
- an unpublished preview; reports on any commit are welcome but no stable support
18
- or backport promise exists. English and Korean reports are welcome. Disclosure
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.