session-peer 0.3.1 → 0.3.3

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/docs/guide.md CHANGED
@@ -4,7 +4,57 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- This guide covers 0.3.1 ([reliability fixes](../PARITY.md#031-reliability-fixes)). Version 0.3.0 introduced multi-host SSH, sender context and return routes, update checks and the optional `sp` shorthand ([0.3.0 changes](../PARITY.md#030-remote-usability-and-maintenance)). [Public 0.3.0 release evidence](../VALIDATION.md#public-030--2026-10-03-kst) records the previous publication. References to 0.1.0 below describe the older release.
7
+ **Documentation and source version: 0.3.3.** At the 2026-10-09 KST preparation checkpoint, 0.3.3 was unpublished, public npm `latest` was **0.3.2**, and `preview` was `0.1.0-preview.1`. Check the registry for current availability before using the 0.3.3 npm examples; if unavailable, use a reviewed source checkout or its locally built artifact. Builds and SSH endpoints need the same reviewed version; 0.3.2 and 0.3.3 refuse each other's SSH preflight.
8
+
9
+ This guide covers version 0.3.3 ([0.3.1 reliability fixes](../PARITY.md#031-reliability-fixes)). Version 0.3.0 introduced multi-host SSH, sender context and return routes, update checks and the optional `sp` shorthand ([0.3.0 changes](../PARITY.md#030-remote-usability-and-maintenance)). [Public 0.3.1 release evidence](../VALIDATION.md#public-031--2026-10-04-kst) records a prior publication. References to 0.1.0 below describe the older release.
10
+
11
+ <a id="migration-boundaries-033-candidate"></a>
12
+
13
+ ## Migration boundaries (0.3.3)
14
+
15
+ The [public 0.3.2 record](../VALIDATION.md#public-032--2026-10-07-kst) fixes the
16
+ release source and artifact. SSH preflight checks the exact TS version banner,
17
+ not a commit hash; operators must align reviewed source commits separately.
18
+
19
+ - Python Claude JSON can omit `status`, `submitted` and `consumptionConfirmed`;
20
+ TS uses `validated`/`posted`, explicit `submitted` and
21
+ `consumptionConfirmed:false`. An absent field is not false or null. Claude
22
+ names can be null; Codex `queueId` is optional. Submission never proves ACK.
23
+ - An absent Claude sessions directory yields empty discovery with `status:ok`.
24
+ Optional missing Codex homes yield `absent` or aggregate `not_installed`.
25
+ Neither an empty list nor doctor completion grants send authorization.
26
+ - Repeated `--host` returns an ordered array. Per-host dispatch failures make
27
+ exit 1; command-wide pre-dispatch refusals (such as duplicate hosts or an
28
+ empty message) retain exit 2, including array output.
29
+ Ordinary 0.3.2 can lose complete-response evidence after SSH exit 255 or
30
+ timeout; 0.3.3 preserves complete request-matched facts and reports local exit 1 with `sshTransport`. Partial or invalid evidence remains unknown. Unknown means no automatic resend.
31
+ - Base doctor (introduced in 0.2.0) executes no Codex or inbox submission.
32
+ Since 0.3.0, explicit `--check-return-route` executes a bounded reverse SSH
33
+ no-op for a usable non-local destination. A self route instead returns
34
+ `verified`, `transport:local`, `self_route_normalized` without SSH; a missing
35
+ host fails before any probe. `--check-reply-to` is unsupported. Verified means
36
+ local normalization or one successful SSH no-op, not an authenticated ACK or
37
+ general reverse-access guarantee.
38
+ - Self Reply-To normalization requires a matching explicit OS user, an exact
39
+ recognized local name and no explicit SSH option. Conflicting sender evidence
40
+ omits identity; an unusable Claude name falls back to PID.
41
+ - npm, Python, remote hosts and skills have separate owners. TS has no self- or
42
+ remote updater; notices default off and opt-out wins. Explicit `update --check`
43
+ still queries the registry. The legacy skill metadata remains `0.1.0`;
44
+ #118's Draft successor is not an install pin or a compatible published guard.
45
+ - Windows qualification used published 0.3.1 on Windows 10 x64, an administrator
46
+ account, PowerShell 5.1 and Node 24.16.0: offline provisioning, wrapper/native
47
+ locking, operator doctor/nonexistent-target dry-run and 31 local fixtures.
48
+ Node 22 had banner/native-lock smoke only. Non-admin, other architectures,
49
+ F6 runtime enforcement and older Linux current-rule gaps remain unverified.
50
+ This is not 0.3.2 live-ACK or deploy-helper evidence.
51
+
52
+ See [migration details](../PARITY.md#ordinary-cli-migration-notes--117) and
53
+ [Windows qualification](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst).
54
+ The Python 1.0.2 test reference stays pinned; neither compared public CLI
55
+ provides general native ACK/wait, end-to-end deduplication or Side Session.
56
+ Relay/MCP are outside this migration comparison.
57
+
8
58
 
9
59
  ## Contents
10
60
 
@@ -24,7 +74,7 @@ This guide covers 0.3.1 ([reliability fixes](../PARITY.md#031-reliability-fixes)
24
74
  **Find and message running Claude Code and Codex sessions, locally or over SSH.**
25
75
  This TypeScript client runs on Node.js without Python.
26
76
 
27
- This guide describes **0.3.1**. The npm package and CLI command are both **`session-peer`**. This
77
+ This guide describes **version 0.3.3**. The npm package and CLI command are both **`session-peer`**. This
28
78
  project does not provide a Relay server or hosted service.
29
79
 
30
80
  ## Quick start
@@ -32,10 +82,12 @@ project does not provide a Relay server or hosted service.
32
82
  Use Node **22.13+ within 22.x or 24.x**. Check which `session-peer` your PATH
33
83
  selects if the Python CLI is already installed; both packages use that command.
34
84
 
85
+ **Version 0.3.3 installation:** check registry availability and review the chosen release before running the npm install/update examples. If that version is unavailable, use the [reviewed source build](#build-from-source).
86
+
35
87
  ```sh
36
- npm view session-peer@0.3.1 version dist.integrity
37
- npm install --global --ignore-scripts session-peer@0.3.1
38
- session-peer --version # session-peer 0.3.1 (typescript)
88
+ npm view session-peer@0.3.3 version dist.integrity
89
+ npm install --global --ignore-scripts session-peer@0.3.3
90
+ session-peer --version # session-peer 0.3.3 (typescript)
39
91
  session-peer list --agent claude --json
40
92
  session-peer send --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
41
93
  ```
@@ -102,7 +154,7 @@ submits nothing. JSON adds sanitized `codexHomeResolution` and, when supplied by
102
154
  native queue output, `queueId`; neither confirms consumption. See the
103
155
  [selection contract](../PARITY.md#source-codex-home-selection--17--020).
104
156
  Published **0.1.0** still requires an explicit live home and has no inactive opt-in.
105
- On SSH, both ends need the same TypeScript client version (0.3.1).
157
+ On SSH, both ends need the same TypeScript client version (0.3.3).
106
158
 
107
159
  ## Requirements
108
160
 
@@ -126,11 +178,11 @@ npm run build
126
178
  node dist/cli.js --version
127
179
  npm pack --ignore-scripts
128
180
  # Optional global install: first check which session-peer your PATH selects.
129
- npm install --global --ignore-scripts ./session-peer-0.3.1.tgz
181
+ npm install --global --ignore-scripts ./session-peer-0.3.3.tgz
130
182
  session-peer --version
131
183
  ```
132
184
 
133
- Expected: `session-peer 0.3.1 (typescript)`. Keep the `./...tgz` path to
185
+ Expected for version 0.3.3: `session-peer 0.3.3 (typescript)`. Keep the `./...tgz` path to
134
186
  select the locally built artifact. Check the checkout version before using
135
187
  these commands for a later release.
136
188
 
@@ -150,7 +202,7 @@ On Windows PowerShell, inspect competing commands with
150
202
  npm ci --ignore-scripts
151
203
  npm run build
152
204
  npm pack --ignore-scripts
153
- npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.1.tgz
205
+ npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.3.tgz
154
206
  & "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version
155
207
  # Later: npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer
156
208
  ```
@@ -173,6 +225,8 @@ Output requires `--json` or `--output-format json|text`.
173
225
 
174
226
  ### Another machine over SSH
175
227
 
228
+ **0.3.3:** Complete, strictly validated remote submission facts are retained after a later SSH 255 or collection timeout. Native `ok:true` may coexist with local exit 1 and `sshTransport`; inspect `submitted` and the transport diagnostic before deciding what happened. Partial, malformed or overflowed responses remain unknown and must not be resent automatically. This 0.3.3 behavior does not change the immutable public 0.3.2 package. See the [response contract](design/ordinary-ssh-responses.md).
229
+
176
230
  ```sh
177
231
  session-peer send --host user@machine --remote-bin /absolute/path/session-peer \
178
232
  --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
@@ -411,13 +465,15 @@ separate approval. Licensed under [MIT](../LICENSE).
411
465
 
412
466
  ## Package release
413
467
 
468
+ Public **0.3.2** was verified on 2026-10-07 KST ([immutable checkpoint](../VALIDATION.md#public-032--2026-10-07-kst)). Check current 0.3.3 availability and npm tags with the registry queries below; dated preparation evidence does not establish a later publication outcome.
469
+
414
470
  Version 0.2.1 was published and verified on 2026-09-29 KST and 0.2.0 on
415
471
  2026-09-28 KST; see the [0.2.1 public release record](../VALIDATION.md#public-021--2026-09-29-kst).
416
472
  Later releases add their own dated records. Check the exact version and current
417
473
  tags before installing:
418
474
 
419
475
  ```sh
420
- npm view session-peer@0.3.1 version dist.integrity
476
+ npm view session-peer@0.3.3 version dist.integrity
421
477
  npm view session-peer dist-tags
422
478
  ```
423
479
 
@@ -469,7 +525,7 @@ and reports `current`, `latest`, `channel` (`latest` by default, or `preview`),
469
525
  installation's owner is positively identified from the running CLI's path:
470
526
  an npm global prefix whose own `session-peer` launcher points at this package
471
527
  (default, Homebrew, nvm, nvm-windows and fnm prefixes), for example
472
- `npm install --global --ignore-scripts session-peer@0.3.1`; a pnpm, Yarn or Bun
528
+ `npm install --global --ignore-scripts session-peer@0.3.3`; a pnpm, Yarn or Bun
473
529
  global store whose manifest declares `session-peer`; Volta; or the npx cache.
474
530
  Project installs (`npm_project`, `pnpm_project`), source checkouts (`source`)
475
531
  and anything else (`unknown`) get `updateCommand: null` and a `guidance`
@@ -537,6 +593,8 @@ For user scope add `--global` consistently to add/list/remove. Inspect any exist
537
593
  `session-peer-ts` copy for local edits before approving its replacement. Codex's
538
594
  `.agents/skills` directory is shared with other clients that discover that path.
539
595
 
596
+ Version 0.3.3 exercises the proposed bounded `metadata_only` guard on the production doctor path. The successor profile (skill `0.2.0` / minimum `0.1.0` / full `0.3.2`) has [companion Draft #20 design-only acceptance at `699a325`](https://github.com/abruption/session-peer-skill/blob/699a3251830c30c62d0f812363faf4d0eb0c8e0c/docs/typescript-compatibility.md) for exact #126 `ba18bb8` and release Draft #129 `bfb3d6f`; full heads and reviewed design hashes are recorded in the guard design below. This was static source/test/document review with CI-status confirmation and no test rerun. At the 2026-10-09 acceptance checkpoint, runtime and successor skill were unpublished. Acceptance does not authorize runtime merge/release or final successor skill metadata, publication, installation or pin changes, and makes no public compatibility or delivery/ACK claim. The guard must actually publish before separate successor skill finalization/tag/pin changes. Managers own runtime and skill upgrades; no postinstall is introduced. See the [guard proposal](design/typescript-skill-compatibility.md).
597
+
540
598
  ```sh
541
599
  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
542
600
  npx -y skills@1.7.0 list --agent codex --json
@@ -4,7 +4,26 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- 这是 0.3.1 详细指南([可靠性修复](../PARITY.md#031-reliability-fixes))。0.3.0 新增了多主机 SSH、发送者信息与回复路由、更新检查以及可选的 `sp` 简写([0.3.0 变更](../PARITY.md#030-remote-usability-and-maintenance))。上一次发布记录见 [0.3.0 公开发布证据](../VALIDATION.md#public-030--2026-10-03-kst);下文 0.1.0 的说明用于旧版本对比。
7
+ **文档和源码版本:0.3.3。** 在 2026-10-09 KST 准备时点,0.3.3 尚未发布,公开 npm `latest` 为 **0.3.2**,`preview` 为 `0.1.0-preview.1`。使用以下 0.3.3 npm 示例前,请查询注册表中的当前可用性;如不可用,请使用已审核的源码或本地构建产物。构建和 SSH 两端必须使用相同的已审核版本;0.3.2 与 0.3.3 会拒绝彼此的 SSH 预检。
8
+
9
+ 这是 0.3.3 详细指南([0.3.1 可靠性修复](../PARITY.md#031-reliability-fixes))。0.3.0 新增了多主机 SSH、发送者信息与回复路由、更新检查以及可选的 `sp` 简写([0.3.0 变更](../PARITY.md#030-remote-usability-and-maintenance))。此前的发布记录见 [0.3.1 公开发布证据](../VALIDATION.md#public-031--2026-10-04-kst);下文 0.1.0 的说明用于旧版本对比。
10
+
11
+ <a id="迁移边界-033-候选"></a>
12
+
13
+ ## 迁移边界 (0.3.3)
14
+
15
+ [0.3.2 公开记录](../VALIDATION.md#public-032--2026-10-07-kst)固定了发布源码和产物。SSH 预检验证 TS 版本标识完全一致,不检查提交哈希;源码构建使用的已审核提交需要由操作人员另行对齐。
16
+
17
+ - Python 的 Claude JSON 可能省略 `status`、`submitted`、`consumptionConfirmed`。TS 使用 `validated`/`posted`、明确的 `submitted` 和 `consumptionConfirmed:false`。缺失字段不等于 false 或 null。Claude 名称可以为 null,Codex `queueId` 是可选字段。提交不能证明 ACK。
18
+ - Claude 会话目录缺失时,返回空列表和 `status:ok`。可选 Codex home 缺失时为 `absent`;没有可读 DB 且没有错误时,整体为 `not_installed`。空列表或 doctor 完成都不授予发送权限。
19
+ - 重复 `--host` 返回按请求顺序排列的数组。主机分别执行期间发生的失败汇总为退出码 1;执行前的命令整体拒绝(如主机重复或消息为空)在数组输出中仍保持退出码 2。公开 0.3.2 在 SSH 退出 255 或超时后,也可能丢失完整响应的证据。0.3.3 保留与请求匹配的完整事实,并返回本地退出码 1 和 `sshTransport`。不完整或无效证据仍为 unknown。unknown 时不得自动重发。
20
+ - 0.2.0 引入的基础 doctor 不执行 Codex,也不向 inbox 提交。0.3.0 起,显式 `--check-return-route` 仅对可用的非本地目标执行有时间限制的反向 SSH 无操作命令。同机自身路由无需 SSH 即返回 `verified`、`transport:local`、`self_route_normalized`;缺少主机时在任何探测前失败。`--check-reply-to` 不受支持。verified 表示本地路由归一化或一次 SSH 无操作命令成功,不是 ACK 认证或通用反向访问保证。
21
+ - 将同机 Reply-To 归一化为本地路径,必须明确指定匹配的 OS 用户、使用可识别的准确本机名称,且没有显式 SSH 选项。发送者证据冲突时省略身份;Claude 名称不可用时使用 PID。
22
+ - npm、Python、远程主机、技能分别管理。TS 不提供自身更新或远程更新。通知默认关闭,禁用设置优先。显式 `update --check` 仍会查询注册表。现有技能元数据保持 `0.1.0`;#118 的后续 Draft 不是安装固定来源,也不是已发布兼容性检查器的证据。
23
+ - Windows 验证使用公开 0.3.1、Windows 10 x64、管理员账号、PowerShell 5.1 和 Node 24.16.0。验证范围包括离线安装、包装器与原生锁、操作端 doctor 和不存在目标的 dry-run,以及 31 项本地 fixture。Node 22 仅确认版本标识和原生锁。非管理员、其他架构、F6 运行时校验、此前 Linux 实验的最新规则仍未验证。这不是 0.3.2 实机 ACK 或部署辅助工具的验证。
24
+
25
+ 请参阅[迁移详情](../PARITY.md#ordinary-cli-migration-notes--117)和 [Windows 验证记录](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)。Python 1.0.2 测试基准保持不变。对比的两个公开 CLI 都没有通用原生 ACK/wait、端到端去重或 Side Session 支持。Relay/MCP 不在此次迁移对比范围内。
26
+
8
27
 
9
28
  ## 目录
10
29
 
@@ -21,7 +40,7 @@
21
40
 
22
41
  向正在运行的 **Claude Code 和 Codex 会话**发送消息,支持本机和跨机器 SSH。这是运行于 Node.js 的 TypeScript 客户端,不需要 Python。
23
42
 
24
- **这是 0.3.1 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
43
+ **这是 0.3.3 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
25
44
 
26
45
  ## 功能与边界
27
46
 
@@ -38,7 +57,7 @@
38
57
 
39
58
  构建后,`node dist/cli.js list --json` 合并列出 Claude/Codex,`list --agent codex --json` 查找已知 home。公开 npm **0.1.0** 仍要求显式 agent,以及 Codex 列表所需的 home;0.2.0 也支持显式命令格式。
40
59
 
41
- 范围仅限默认 `~/.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 两端需要相同的 TypeScript 客户端版本(0.3.1)。
60
+ 范围仅限默认 `~/.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 两端需要相同的 TypeScript 客户端版本(0.3.3)。
42
61
 
43
62
  ### 0.2.0 CLI 易用性
44
63
 
@@ -60,13 +79,15 @@ macOS、Linux 或 Windows native;Node **22.x 中的 22.13 及以上,或 24.x
60
79
 
61
80
  使用 Node 22.x 的 22.13 及以上或 24.x,并确认要安装的确切版本是否已发布。Python CLI 也使用同一个命令名;若已有安装,请先检查 PATH。
62
81
 
82
+ **安装 0.3.3:** 运行 npm 安装或更新示例前,请确认注册表可用性并审核所选发布版本。如该版本不可用,请使用[已审核的源码构建](#从源码构建)。
83
+
63
84
  ```sh
64
- npm view session-peer@0.3.1 version dist.integrity
65
- npm install --global --ignore-scripts session-peer@0.3.1
85
+ npm view session-peer@0.3.3 version dist.integrity
86
+ npm install --global --ignore-scripts session-peer@0.3.3
66
87
  session-peer --version
67
88
  ```
68
89
 
69
- 预期输出:`session-peer 0.3.1 (typescript)`。
90
+ 预期输出:`session-peer 0.3.3 (typescript)`。
70
91
 
71
92
  1. 用 `session-peer list --agent claude --json` 查找目标并选择准确 PID。
72
93
  2. 用 `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` 验证,不提交。
@@ -85,7 +106,7 @@ npm run build
85
106
  node dist/cli.js --version
86
107
  npm pack --ignore-scripts
87
108
  # 可选:全局安装前先检查 PATH 选择的现有命令
88
- npm install --global --ignore-scripts ./session-peer-0.3.1.tgz
109
+ npm install --global --ignore-scripts ./session-peer-0.3.3.tgz
89
110
  session-peer --version
90
111
  ```
91
112
 
@@ -95,7 +116,7 @@ session-peer --version
95
116
 
96
117
  安装前后用 `type -a session-peer` 和 `command -v session-peer` 检查实际执行项。其他实现也可能提供同名命令;请选择 PATH 上的一种,或显式运行 `node /absolute/path/dist/cli.js`。不要用 `--force` 覆盖其他管理器的文件。本包不会自动安装、删除或调整 Python 包、技能或服务。卸载使用 `npm uninstall --global session-peer`,随后再次检查 PATH。
97
118
 
98
- 在 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.3.1.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` 卸载。
119
+ 在 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.3.3.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` 卸载。
99
120
 
100
121
  ## 使用
101
122
 
@@ -110,6 +131,8 @@ session-peer send --to codex:THREAD_UUID --codex-home "$HOME/.codex" --message '
110
131
 
111
132
  ### 跨机器 SSH
112
133
 
134
+ **0.3.3:** 完整的远程响应通过严格验证后,即使 SSH 随后以 255 退出或收集超时,已确认的提交事实也会保留。远程结果的 `ok:true` 可与本地退出码 1 和 `sshTransport` 同时出现,请结合 `submitted` 与传输诊断判断结果。不完整、无效或超过输出上限的响应仍为 unknown,禁止自动重发。此 0.3.3 行为不会改变不可变的公开 0.3.2 包。请参阅[响应契约](design/ordinary-ssh-responses.md)。
135
+
113
136
  ```sh
114
137
  session-peer send --host user@machine --remote-bin /absolute/path/session-peer \
115
138
  --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
@@ -184,12 +207,14 @@ Python 只用作开发时的兼容性基准(v1.0.2,`47c23713d0a2a3c11ebde618
184
207
 
185
208
  ## npm 版本
186
209
 
210
+ 公开 **0.3.2** 于 2026-10-07 KST 完成验证([不可变公开记录](../VALIDATION.md#public-032--2026-10-07-kst))。请用下方注册表查询确认 0.3.3 的当前可用性和 npm 标签;带日期的准备证据不能证明后续发布结果。
211
+
187
212
  0.2.1 已于 2026-09-29 KST、0.2.0 已于 2026-09-28 KST 公开并验证。请参阅
188
213
  [0.2.1 公开记录](../VALIDATION.md#public-021--2026-09-29-kst)(之后的版本各自追加带日期的记录),
189
214
  安装前核对准确版本与当前标签。
190
215
 
191
216
  ```sh
192
- npm view session-peer@0.3.1 version dist.integrity
217
+ npm view session-peer@0.3.3 version dist.integrity
193
218
  npm view session-peer dist-tags
194
219
  ```
195
220
 
@@ -228,7 +253,7 @@ dist-tag(3 秒超时,不重试),并报告 `current`、`latest`、`channe
228
253
  `ahead`)、`managedBy`、`updateCommand` 和 `guidance`。只有根据当前 CLI 路径能确切识别
229
254
  安装的管理方时才给出命令:其自身 `session-peer` 启动器指向本包的 npm 全局 prefix
230
255
  (默认、Homebrew、nvm、nvm-windows、fnm,例如
231
- `npm install --global --ignore-scripts session-peer@0.3.1`),清单中声明了
256
+ `npm install --global --ignore-scripts session-peer@0.3.3`),清单中声明了
232
257
  `session-peer` 的 pnpm、Yarn、Bun 全局存储,Volta,或 npx 缓存。项目安装
233
258
  (`npm_project`、`pnpm_project`)、源码检出(`source`)以及其他情况(`unknown`)只返回
234
259
  `updateCommand: null` 和一句 `guidance`,因此不会给出可能修改无关当前目录的命令。它只报告
@@ -278,6 +303,8 @@ Claude Code 使用 `--agent claude-code`。用户范围安装应在 add/list/rem
278
303
  批准替换已有的 `session-peer-ts` 副本前,请检查本地修改。
279
304
  Codex 的 `.agents/skills` 目录与其他扫描该路径的客户端共享。
280
305
 
306
+ 0.3.3 可在 production doctor 路径执行有界 `metadata_only` 检查器提案。后继配置(技能 `0.2.0` / 最低 `0.1.0` / 完整功能参考 `0.3.2`)已获得针对精确 #126 `ba18bb8` 和发布 Draft #129 `bfb3d6f` 的 [companion Draft #20 仅限设计的接受记录 `699a325`](https://github.com/abruption/session-peer-skill/blob/699a3251830c30c62d0f812363faf4d0eb0c8e0c/docs/typescript-compatibility.md)。完整提交与已审核设计哈希记录在下方检查器设计中。本次为源码、测试和文档的静态审核及 CI 状态确认,没有重新运行测试。在 2026-10-09 接受时点,运行时和后继技能尚未发布。该接受不授权运行时合并或发布,也不授权最终后继技能元数据、发布、安装或固定提交变更,不能证明公开兼容性、投递或 ACK。检查器运行时必须实际发布,之后才能另行完成后继技能、标签和固定提交的变更。运行时和技能由各自管理者升级,不引入 postinstall。请参阅[检查器提案](design/typescript-skill-compatibility.md)。
307
+
281
308
  ```sh
282
309
  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
283
310
  npx -y skills@1.7.0 list --agent codex --json
package/docs/shorthand.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Optional `sp` shorthand
2
2
 
3
+ This reference describes source/package version 0.3.3. Check registry availability before using a version-pinned npm installation; before publication use a reviewed source artifact. The shorthand forwards to the explicitly selected CLI and does not install or upgrade it.
4
+
3
5
  [README](../README.md) · [User guide](guide.md)
4
6
 
5
7
  This feature ships with 0.3.0 and later ([#74](https://github.com/abruption/session-peer-ts/issues/74)).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "session-peer",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -41,7 +41,7 @@
41
41
  "build": "tsc -p tsconfig.json",
42
42
  "test": "npm run build && npm run test:types && node --import ./test/fixtures/isolate-env.mjs --experimental-strip-types --test test/*.test.ts",
43
43
  "test:types": "tsc -p tsconfig.test.json",
44
- "test:windows": "npm run build && npm run test:types && node --import ./test/fixtures/isolate-env.mjs --import ./test/fixtures/windows-inspection-diagnostic.mjs --experimental-strip-types --test --test-concurrency=1 test/writer-uid.test.ts test/claude-records.test.ts test/reply-agent-binding.test.ts test/windows.test.ts test/windows-contract.test.ts test/windows-inspection.test.ts test/input-boundaries.test.ts test/discovery.test.ts test/codex-homes.test.ts test/diagnostics.test.ts test/cli-usability.test.ts test/skill-guidance.test.ts test/ssh-hosts.test.ts test/replies.test.ts test/updates.test.ts",
44
+ "test:windows": "npm run build && npm run test:types && node --import ./test/fixtures/isolate-env.mjs --import ./test/fixtures/windows-inspection-diagnostic.mjs --experimental-strip-types --test --test-concurrency=1 test/writer-uid.test.ts test/claude-records.test.ts test/reply-agent-binding.test.ts test/windows.test.ts test/windows-contract.test.ts test/windows-inspection.test.ts test/input-boundaries.test.ts test/discovery.test.ts test/codex-homes.test.ts test/diagnostics.test.ts test/cli-usability.test.ts test/skill-guidance.test.ts test/skill-metadata.test.ts test/ssh-hosts.test.ts test/ssh-response.test.ts test/replies.test.ts test/updates.test.ts",
45
45
  "test:package": "npm run build && node --experimental-strip-types test/package-smoke.ts"
46
46
  },
47
47
  "devDependencies": {