session-peer 0.3.2 → 0.3.4

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,9 +4,56 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- **Documentation and source version: 0.3.2.** Before using the version-pinned npm commands below, confirm that 0.3.2 is available in the npm registry or version badge. Before publication, use a reviewed source checkout or its locally built artifact. Builds and SSH endpoints must use the same reviewed version.
7
+ **Documentation and source version: 0.3.4.** Review the selected release and registry metadata before installation. Dated preparation and validation records are in [VALIDATION.md](../VALIDATION.md); release procedures are in [RELEASING.md](../RELEASING.md). SSH endpoints require the same TypeScript client version; 0.3.3 and 0.3.4 refuse each other’s SSH preflight.
8
+
9
+ This guide covers version 0.3.4 ([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.4)
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. Public TS 0.3.3 accepts both exact reviewed legacy `0.1.0` and published `0.2.0` skill profiles; this 0.3.4 candidate preserves that finite matrix. The installation section pins the independently published skill source.
44
+ - Windows qualification used published 0.3.1 on Windows 10 x64, an administrator
45
+ account, PowerShell 5.1 and Node 24.16.0: offline provisioning, wrapper/native
46
+ locking, operator doctor/nonexistent-target dry-run and 31 local fixtures.
47
+ Node 22 had banner/native-lock smoke only. Non-admin, other architectures,
48
+ F6 runtime enforcement and older Linux current-rule gaps remain unverified.
49
+ This is not 0.3.2 live-ACK or deploy-helper evidence.
50
+
51
+ See [migration details](../PARITY.md#ordinary-cli-migration-notes--117) and
52
+ [Windows qualification](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst).
53
+ The Python 1.0.2 test reference stays pinned; neither compared public CLI
54
+ provides general native ACK/wait, end-to-end deduplication or Side Session.
55
+ Relay/MCP are outside this migration comparison.
8
56
 
9
- This guide covers 0.3.2 ([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 the previous publication. References to 0.1.0 below describe the older release.
10
57
 
11
58
  ## Contents
12
59
 
@@ -26,7 +73,7 @@ This guide covers 0.3.2 ([0.3.1 reliability fixes](../PARITY.md#031-reliability-
26
73
  **Find and message running Claude Code and Codex sessions, locally or over SSH.**
27
74
  This TypeScript client runs on Node.js without Python.
28
75
 
29
- This guide describes **0.3.2**. The npm package and CLI command are both **`session-peer`**. This
76
+ This guide describes **version 0.3.4**. The npm package and CLI command are both **`session-peer`**. This
30
77
  project does not provide a Relay server or hosted service.
31
78
 
32
79
  ## Quick start
@@ -34,10 +81,12 @@ project does not provide a Relay server or hosted service.
34
81
  Use Node **22.13+ within 22.x or 24.x**. Check which `session-peer` your PATH
35
82
  selects if the Python CLI is already installed; both packages use that command.
36
83
 
84
+ **Version 0.3.4 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).
85
+
37
86
  ```sh
38
- npm view session-peer@0.3.2 version dist.integrity
39
- npm install --global --ignore-scripts session-peer@0.3.2
40
- session-peer --version # session-peer 0.3.2 (typescript)
87
+ npm view session-peer@0.3.4 version dist.integrity
88
+ npm install --global --ignore-scripts session-peer@0.3.4
89
+ session-peer --version # session-peer 0.3.4 (typescript)
41
90
  session-peer list --agent claude --json
42
91
  session-peer send --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
43
92
  ```
@@ -104,7 +153,7 @@ submits nothing. JSON adds sanitized `codexHomeResolution` and, when supplied by
104
153
  native queue output, `queueId`; neither confirms consumption. See the
105
154
  [selection contract](../PARITY.md#source-codex-home-selection--17--020).
106
155
  Published **0.1.0** still requires an explicit live home and has no inactive opt-in.
107
- On SSH, both ends need the same TypeScript client version (0.3.2).
156
+ On SSH, both ends need the same TypeScript client version (0.3.4).
108
157
 
109
158
  ## Requirements
110
159
 
@@ -128,11 +177,11 @@ npm run build
128
177
  node dist/cli.js --version
129
178
  npm pack --ignore-scripts
130
179
  # Optional global install: first check which session-peer your PATH selects.
131
- npm install --global --ignore-scripts ./session-peer-0.3.2.tgz
180
+ npm install --global --ignore-scripts ./session-peer-0.3.4.tgz
132
181
  session-peer --version
133
182
  ```
134
183
 
135
- Expected for version 0.3.2: `session-peer 0.3.2 (typescript)`. Keep the `./...tgz` path to
184
+ Expected for version 0.3.4: `session-peer 0.3.4 (typescript)`. Keep the `./...tgz` path to
136
185
  select the locally built artifact. Check the checkout version before using
137
186
  these commands for a later release.
138
187
 
@@ -152,7 +201,7 @@ On Windows PowerShell, inspect competing commands with
152
201
  npm ci --ignore-scripts
153
202
  npm run build
154
203
  npm pack --ignore-scripts
155
- npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.2.tgz
204
+ npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.4.tgz
156
205
  & "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version
157
206
  # Later: npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer
158
207
  ```
@@ -175,6 +224,8 @@ Output requires `--json` or `--output-format json|text`.
175
224
 
176
225
  ### Another machine over SSH
177
226
 
227
+ **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).
228
+
178
229
  ```sh
179
230
  session-peer send --host user@machine --remote-bin /absolute/path/session-peer \
180
231
  --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
@@ -413,13 +464,15 @@ separate approval. Licensed under [MIT](../LICENSE).
413
464
 
414
465
  ## Package release
415
466
 
467
+ 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.4 availability and npm tags with the registry queries below; dated preparation evidence does not establish a later publication outcome.
468
+
416
469
  Version 0.2.1 was published and verified on 2026-09-29 KST and 0.2.0 on
417
470
  2026-09-28 KST; see the [0.2.1 public release record](../VALIDATION.md#public-021--2026-09-29-kst).
418
471
  Later releases add their own dated records. Check the exact version and current
419
472
  tags before installing:
420
473
 
421
474
  ```sh
422
- npm view session-peer@0.3.2 version dist.integrity
475
+ npm view session-peer@0.3.4 version dist.integrity
423
476
  npm view session-peer dist-tags
424
477
  ```
425
478
 
@@ -471,7 +524,7 @@ and reports `current`, `latest`, `channel` (`latest` by default, or `preview`),
471
524
  installation's owner is positively identified from the running CLI's path:
472
525
  an npm global prefix whose own `session-peer` launcher points at this package
473
526
  (default, Homebrew, nvm, nvm-windows and fnm prefixes), for example
474
- `npm install --global --ignore-scripts session-peer@0.3.2`; a pnpm, Yarn or Bun
527
+ `npm install --global --ignore-scripts session-peer@0.3.4`; a pnpm, Yarn or Bun
475
528
  global store whose manifest declares `session-peer`; Volta; or the npx cache.
476
529
  Project installs (`npm_project`, `pnpm_project`), source checkouts (`source`)
477
530
  and anything else (`unknown`) get `updateCommand: null` and a `guidance`
@@ -530,17 +583,19 @@ holds only public version data. `SESSION_PEER_UPDATE_REGISTRY` selects a mirror
530
583
 
531
584
  ## Agent skill: explicit installation
532
585
 
533
- The separate `session-peer-ts` companion skill is tracked in [companion PR #14](https://github.com/abruption/session-peer-skill/pull/14); it is not a new npm or skill-tag release. It supports the published 0.1.0 baseline, detects the TypeScript implementation marker, and checks help before using development capabilities. The Python `session-peer` skill remains separate.
586
+ The separate `session-peer-ts` companion skill is published as [skill 0.2.0](https://github.com/abruption/session-peer-skill/releases/tag/session-peer-ts-v0.2.0). Its version is independent of npm; installing either does not install the other. The Python `session-peer` skill remains separate.
534
587
 
535
- Review the [exact skill source](https://github.com/abruption/session-peer-skill/tree/081cc3c1d16a394bd92824333f4bc61c36951799/session-peer-ts),
588
+ Review the [exact skill source](https://github.com/abruption/session-peer-skill/tree/8482cf644507c682915e35c85aa3384c53864906/session-peer-ts),
536
589
  then choose the agent and scope. This example selects **Codex, current project**;
537
590
  run from that project directory. For Claude Code use `--agent claude-code`.
538
591
  For user scope add `--global` consistently to add/list/remove. Inspect any existing
539
592
  `session-peer-ts` copy for local edits before approving its replacement. Codex's
540
593
  `.agents/skills` directory is shared with other clients that discover that path.
541
594
 
595
+ Public TS 0.3.3 accepts the exact skill 0.2.0 profile (`typescript`, minimum `0.1.0`, full `0.3.2`, `probe-help`) and the legacy 0.1.0 profile. Public 0.3.2 rejects the 0.2.0 profile; upgrade the runtime through its owner before using the newer skill. `compatible` with `verification:metadata_only` is a bounded metadata check, not content authentication, permission to send, or delivery/ACK evidence. Minimum is the baseline CLI compatibility floor; full is the documented published feature coverage reference. Optional operations still require the resolved executable’s version/help and platform/native prerequisites. Runtime and skill upgrades remain separate and manager-owned; no postinstall is introduced. See the [finite matrix and reader boundaries](design/typescript-skill-compatibility.md).
596
+
542
597
  ```sh
543
- 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
598
+ npx -y skills@1.7.0 add https://github.com/abruption/session-peer-skill/tree/8482cf644507c682915e35c85aa3384c53864906/session-peer-ts --skill session-peer-ts --agent codex --copy --yes
544
599
  npx -y skills@1.7.0 list --agent codex --json
545
600
  npx -y skills@1.7.0 remove session-peer-ts --agent codex --yes
546
601
  ```
@@ -4,9 +4,26 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- **文档和源码版本:0.3.2。** 使用以下固定版本 npm 命令前,请通过 npm 注册表或版本徽章确认 0.3.2 是否已发布。发布前,请使用已审核的源码检出版本或本地构建产物。构建和 SSH 两端需要相同的已审核版本。
7
+ **文档和源码版本:0.3.4。** 安装前,请审核所选发布版本和注册表元数据。按日期记录的准备与验证结果见 [VALIDATION.md](../VALIDATION.md),发布流程见 [RELEASING.md](../RELEASING.md)。SSH 两端必须使用相同的 TypeScript 客户端版本;0.3.3 与 0.3.4 会拒绝彼此的 SSH 预检。
8
+
9
+ 这是 0.3.4 详细指南([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.4)
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` 仍会查询注册表。公开 TS 0.3.3 接受经过审核的旧 `0.1.0` 和已发布 `0.2.0` 技能的精确配置;此 0.3.4 候选保留相同的有限判定表。安装部分固定了独立发布的技能源码。
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 不在此次迁移对比范围内。
8
26
 
9
- 这是 0.3.2 详细指南([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
27
 
11
28
  ## 目录
12
29
 
@@ -23,7 +40,7 @@
23
40
 
24
41
  向正在运行的 **Claude Code 和 Codex 会话**发送消息,支持本机和跨机器 SSH。这是运行于 Node.js 的 TypeScript 客户端,不需要 Python。
25
42
 
26
- **这是 0.3.2 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
43
+ **这是 0.3.4 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
27
44
 
28
45
  ## 功能与边界
29
46
 
@@ -40,7 +57,7 @@
40
57
 
41
58
  构建后,`node dist/cli.js list --json` 合并列出 Claude/Codex,`list --agent codex --json` 查找已知 home。公开 npm **0.1.0** 仍要求显式 agent,以及 Codex 列表所需的 home;0.2.0 也支持显式命令格式。
42
59
 
43
- 范围仅限默认 `~/.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.2)。
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.4)。
44
61
 
45
62
  ### 0.2.0 CLI 易用性
46
63
 
@@ -62,13 +79,15 @@ macOS、Linux 或 Windows native;Node **22.x 中的 22.13 及以上,或 24.x
62
79
 
63
80
  使用 Node 22.x 的 22.13 及以上或 24.x,并确认要安装的确切版本是否已发布。Python CLI 也使用同一个命令名;若已有安装,请先检查 PATH。
64
81
 
82
+ **安装 0.3.4:** 运行 npm 安装或更新示例前,请确认注册表可用性并审核所选发布版本。如该版本不可用,请使用[已审核的源码构建](#从源码构建)。
83
+
65
84
  ```sh
66
- npm view session-peer@0.3.2 version dist.integrity
67
- npm install --global --ignore-scripts session-peer@0.3.2
85
+ npm view session-peer@0.3.4 version dist.integrity
86
+ npm install --global --ignore-scripts session-peer@0.3.4
68
87
  session-peer --version
69
88
  ```
70
89
 
71
- 预期输出:`session-peer 0.3.2 (typescript)`。
90
+ 预期输出:`session-peer 0.3.4 (typescript)`。
72
91
 
73
92
  1. 用 `session-peer list --agent claude --json` 查找目标并选择准确 PID。
74
93
  2. 用 `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` 验证,不提交。
@@ -87,7 +106,7 @@ npm run build
87
106
  node dist/cli.js --version
88
107
  npm pack --ignore-scripts
89
108
  # 可选:全局安装前先检查 PATH 选择的现有命令
90
- npm install --global --ignore-scripts ./session-peer-0.3.2.tgz
109
+ npm install --global --ignore-scripts ./session-peer-0.3.4.tgz
91
110
  session-peer --version
92
111
  ```
93
112
 
@@ -97,7 +116,7 @@ session-peer --version
97
116
 
98
117
  安装前后用 `type -a session-peer` 和 `command -v session-peer` 检查实际执行项。其他实现也可能提供同名命令;请选择 PATH 上的一种,或显式运行 `node /absolute/path/dist/cli.js`。不要用 `--force` 覆盖其他管理器的文件。本包不会自动安装、删除或调整 Python 包、技能或服务。卸载使用 `npm uninstall --global session-peer`,随后再次检查 PATH。
99
118
 
100
- 在 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.2.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.4.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` 卸载。
101
120
 
102
121
  ## 使用
103
122
 
@@ -112,6 +131,8 @@ session-peer send --to codex:THREAD_UUID --codex-home "$HOME/.codex" --message '
112
131
 
113
132
  ### 跨机器 SSH
114
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
+
115
136
  ```sh
116
137
  session-peer send --host user@machine --remote-bin /absolute/path/session-peer \
117
138
  --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
@@ -186,12 +207,14 @@ Python 只用作开发时的兼容性基准(v1.0.2,`47c23713d0a2a3c11ebde618
186
207
 
187
208
  ## npm 版本
188
209
 
210
+ 公开 **0.3.2** 于 2026-10-07 KST 完成验证([不可变公开记录](../VALIDATION.md#public-032--2026-10-07-kst))。请用下方注册表查询确认 0.3.4 的当前可用性和 npm 标签;带日期的准备证据不能证明后续发布结果。
211
+
189
212
  0.2.1 已于 2026-09-29 KST、0.2.0 已于 2026-09-28 KST 公开并验证。请参阅
190
213
  [0.2.1 公开记录](../VALIDATION.md#public-021--2026-09-29-kst)(之后的版本各自追加带日期的记录),
191
214
  安装前核对准确版本与当前标签。
192
215
 
193
216
  ```sh
194
- npm view session-peer@0.3.2 version dist.integrity
217
+ npm view session-peer@0.3.4 version dist.integrity
195
218
  npm view session-peer dist-tags
196
219
  ```
197
220
 
@@ -230,7 +253,7 @@ dist-tag(3 秒超时,不重试),并报告 `current`、`latest`、`channe
230
253
  `ahead`)、`managedBy`、`updateCommand` 和 `guidance`。只有根据当前 CLI 路径能确切识别
231
254
  安装的管理方时才给出命令:其自身 `session-peer` 启动器指向本包的 npm 全局 prefix
232
255
  (默认、Homebrew、nvm、nvm-windows、fnm,例如
233
- `npm install --global --ignore-scripts session-peer@0.3.2`),清单中声明了
256
+ `npm install --global --ignore-scripts session-peer@0.3.4`),清单中声明了
234
257
  `session-peer` 的 pnpm、Yarn、Bun 全局存储,Volta,或 npx 缓存。项目安装
235
258
  (`npm_project`、`pnpm_project`)、源码检出(`source`)以及其他情况(`unknown`)只返回
236
259
  `updateCommand: null` 和一句 `guidance`,因此不会给出可能修改无关当前目录的命令。它只报告
@@ -272,16 +295,18 @@ npm 版本,Python 版 `session-peer` 的发布是独立的版本序列,从
272
295
 
273
296
  ## 显式安装代理技能
274
297
 
275
- 独立的 `session-peer-ts` 技能在配套 PR 中管理,不代表新 npm 或技能标签发布。它支持已发布的 0.1.0 基础功能,通过 TypeScript 标识和帮助检查开发功能。Python 的 `session-peer` 技能仍独立保留。
298
+ 独立的 `session-peer-ts` 技能已发布为[技能 0.2.0](https://github.com/abruption/session-peer-skill/releases/tag/session-peer-ts-v0.2.0)。技能版本与 npm 运行时独立,安装其中一个不会安装另一个。Python 的 `session-peer` 技能也独立保留。
276
299
 
277
- 先检查[固定提交的技能源码](https://github.com/abruption/session-peer-skill/tree/081cc3c1d16a394bd92824333f4bc61c36951799/session-peer-ts),再选择代理和安装范围。
300
+ 先检查[固定提交的技能源码](https://github.com/abruption/session-peer-skill/tree/8482cf644507c682915e35c85aa3384c53864906/session-peer-ts),再选择代理和安装范围。
278
301
  以下示例选择 **Codex、当前项目**;请在该项目目录中运行。
279
302
  Claude Code 使用 `--agent claude-code`。用户范围安装应在 add/list/remove 中一致添加 `--global`。
280
303
  批准替换已有的 `session-peer-ts` 副本前,请检查本地修改。
281
304
  Codex 的 `.agents/skills` 目录与其他扫描该路径的客户端共享。
282
305
 
306
+ 公开 TS 0.3.3 接受技能 0.2.0 的精确配置(`typescript`、最低 `0.1.0`、文档功能参考 `0.3.2`、`probe-help`)以及旧 0.1.0 配置。公开 0.3.2 拒绝 0.2.0 配置,因此使用新技能前,应通过原安装管理工具升级运行时。带有 `verification:metadata_only` 的 `compatible` 仅表示有界元数据检查,不代表内容认证、发送授权、投递或 ACK 证据。最低版本是基础 CLI 兼容下限,完整功能版本是文档所涵盖的公开功能参考版本。可选操作仍需检查实际执行文件的 version/help 以及平台和原生工具条件。运行时与技能由各自管理工具独立升级,不引入 postinstall。请参阅[有限判定表与读取边界](design/typescript-skill-compatibility.md)。
307
+
283
308
  ```sh
284
- 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
309
+ npx -y skills@1.7.0 add https://github.com/abruption/session-peer-skill/tree/8482cf644507c682915e35c85aa3384c53864906/session-peer-ts --skill session-peer-ts --agent codex --copy --yes
285
310
  npx -y skills@1.7.0 list --agent codex --json
286
311
  npx -y skills@1.7.0 remove session-peer-ts --agent codex --yes
287
312
  ```
package/docs/shorthand.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Optional `sp` shorthand
2
2
 
3
- This reference describes source/package version 0.3.2. 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.
3
+ This reference describes source/package version 0.3.4. 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
4
 
5
5
  [README](../README.md) · [User guide](guide.md)
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "session-peer",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
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": {