session-peer 0.3.0 → 0.3.1

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/PARITY.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Updated 2026-10-03 KST. Python reference: **1.0.2**,
4
4
  [`47c2371`](https://github.com/abruption/session-peer/tree/47c23713d0a2a3c11ebde6186afd8c43489b8b65/session_peer_core).
5
- This matrix describes **TS 0.3.0**: the 0.2.0 unified listing, safe home selection,
5
+ This matrix describes **TS 0.3.1**: the 0.2.0 unified listing, safe home selection,
6
6
  read-only doctor, text/help/positional input, Unicode 14.0.0 name matching and
7
7
  separately managed TS skill guidance (#16/#17/#18/#19/#25), the
8
8
  [0.2.1 reliability and hardening](#021-reliability-and-hardening) changes, and the
@@ -116,6 +116,15 @@ are in [windows-contract.test.ts](https://github.com/abruption/session-peer-ts/b
116
116
  The Python oracle runs in POSIX CI; deterministic fixtures and injected filesystem
117
117
  failures run on Windows too. Error injection is not a real Windows ACL test.
118
118
 
119
+ ### Bounded Claude registry reads — source patch #99
120
+
121
+ 0.3.1 patch for #99: Claude list/send/sender discovery skips
122
+ non-regular, symlinked or larger-than-1-MiB registry records while retaining
123
+ healthy records. Descriptor checks, POSIX nonblocking open and bounded reads
124
+ cover FIFO replacement races. This is not a deadline for network-filesystem
125
+ I/O; doctor retains its separately bounded metadata contract. The patch is not
126
+ in the immutable npm 0.3.0 archive.
127
+
119
128
  ## JSON result compatibility
120
129
 
121
130
  Do not parse human messages or assume an optional key exists. Python's
@@ -200,7 +209,9 @@ Windows support, WSL/POSIX SSH and TS native Windows SSH are separate paths.
200
209
  `--remote-bin` where PATH is ambiguous; for Windows add
201
210
  `--remote-platform win32` and the `.cmd` path. Retain existing SSH host trust
202
211
  and authentication; a control socket is not new authorization. Account for
203
- the size limits above and lack of multi-host aggregation.
212
+ the size limits above. In TS 0.3.0, repeat `--host` for ordered per-host
213
+ results; the single-host result stays flat. TS 0.2.1 and earlier lacked
214
+ multi-host aggregation.
204
215
  6. **Keep unsupported workflows on an explicit Python path.** Remote updates,
205
216
  MCP, wake, Antigravity and paired devices need their existing implementation
206
217
  until their issues are delivered. Doctor is available in 0.2.0; 0.1.0 lacked this command. Updating npm does not update Python, skills,
@@ -237,6 +248,7 @@ a release commitment. Recheck the exact packaged copy during release review.
237
248
 
238
249
  ## Source Codex home selection — #17 / 0.2.0
239
250
 
251
+
240
252
  This is 0.2.0 behavior; it does not change the immutable npm 0.1.0 archive. `send --to codex:UUID` selects only a unique stable live writer across
241
253
  bounded known homes. `--codex-home` pins the destination but still inventories
242
254
  competitors. A unique live writer without a saved row yields
@@ -287,6 +299,13 @@ changing successful queue status. Failed native processes never expose an ID.
287
299
  Contracts: `test/codex-homes.test.ts`, `test/transport.test.ts` and
288
300
  `test/windows-contract.test.ts`. These are fixtures, not real recipient ACKs.
289
301
 
302
+ ### UID-zero writer identity — source patch #100
303
+
304
+ 0.3.1 patch for #100: numeric UID 0 is a valid caller identity
305
+ for writer verification. Unknown or mismatched owners still refuse, and all
306
+ lock stability/start-time checks and Windows SID validation are retained.
307
+ This patch is not in the immutable npm 0.3.0 archive.
308
+
290
309
  ## Source read-only doctor — #18 / 0.2.0
291
310
 
292
311
  Evidence date: 2026-09-28. `doctor --json [--agent claude|codex]` supports local
@@ -422,6 +441,26 @@ command, transport or JSON field. Callers may notice the stricter refusals below
422
441
  | Envelope trimming (#59, #64) | Leading/trailing `\n` is trimmed by index scanning instead of `/^\n+\|\n+$/`, which was quadratic on long interior newline runs (CodeQL `js/polynomial-redos`). Trimming semantics are unchanged. |
423
442
  | Windows owner inspection (#65) | The compiling `Add-Type` owner inspection waits up to 20000 ms; the compile-free creation-time probe keeps 8000 ms. Timeouts still refuse. |
424
443
 
444
+ ## 0.3.1 reliability fixes
445
+
446
+ 0.3.1 source includes the following patch updates; publication is a separate
447
+ approved release operation. The dated public 0.3.0 evidence remains historical.
448
+
449
+ | Area | Patch contract |
450
+ |---|---|
451
+ | SSH results (#93, #97) | Malformed successful send responses affect only that host; other outcomes are preserved. Unnamed Claude PID targets accept `name:null`. Unknown outcomes are never retried automatically. |
452
+ | Codex storage (#94) | Parse TOML root keys, including escaped keys, with TOML semantics. Nested `sqlite_home` is not a root override; malformed configuration is refused. An inactive opt-in does not bypass the root storage guard. |
453
+ | Reply-To (#98) | Reject decoded Claude session values with reserved `codex:` or `session-peer:` prefixes; wire receivers reject unresolved nested URI transports before SSH or queue execution. |
454
+ | Claude discovery (#99) | Read bounded regular registry files, skip unsafe/oversized entries and preserve healthy sessions. POSIX FIFO/nonblocking and descriptor race tests are platform-specific evidence. |
455
+ | Writer identity (#100) | UID 0 is a valid verified identity; missing or malformed identity information remains refused. |
456
+ | Documentation (#90) | Includes the migration wording correction absent from the immutable public 0.3.0 archive. |
457
+
458
+ SSH still requires identical TS versions on both ends: 0.3.0 and 0.3.1 refuse
459
+ each other at preflight. Coordinate endpoint upgrades. The 0.3.0 known
460
+ limitations below remain: Windows-client jump routing, the Windows deployment
461
+ cell and newer receipt/recovery rules, and update notice validation gaps are
462
+ not resolved by this patch.
463
+
425
464
  ## 0.3.0 remote usability and maintenance
426
465
 
427
466
  0.3.0 (#20, #21, #22, #74, #78/#79, #87; design #23) adds remote and
@@ -459,6 +498,13 @@ endpoints refuse each other at preflight; upgrade them together.
459
498
 
460
499
  ## Sender context and return routes — #21 / 0.3.0
461
500
 
501
+ 0.3.1 patch for #98: a Claude Reply-To URI whose decoded
502
+ `session` starts with reserved lowercase `codex:` or `session-peer:` is `invalid_reply_uri` before
503
+ local selection or SSH dispatch. Ordinary Claude names and Codex UUID routes
504
+ keep their existing contract; this patch is not in the immutable npm 0.3.0 archive.
505
+ Wire receivers require an already resolved target; an unresolved Reply-To URI
506
+ in `--stdio-request` is `nested_transport_forbidden` before queue or SSH calls.
507
+
462
508
  [#21](https://github.com/abruption/session-peer-ts/issues/21) behavior added in
463
509
  0.3.0; 0.2.1 and earlier do not have it. Compared with Python
464
510
  1.0.2 `replies.py`/`diagnostics.py`:
@@ -494,6 +540,7 @@ or agent session was used.
494
540
  | Area | Python 1.0.2 | TS source |
495
541
  | --- | --- | --- |
496
542
  | Repeated `--host` | Ordered per-host loop; one host stays flat, several return a JSON array; any failure exits 1 | Same shape and order for `list`, `send` and `doctor`. Every element keeps `schemaVersion`, `ok`, `host` (as requested) and `command`. Any failed host makes the overall exit 1; a single host keeps its own 0/1/2 exit code |
543
+ | Malformed successful send response | No delivery may be inferred from an invalid response | A spawned send response with a missing or command-invalid target is `unknown` for that host (`submitted:null`, no retry); other host results remain intact. Target validation follows the requested agent and accepts the Python Claude shape without `target.agent`. Text output falls back to JSON for values that cannot be string-coerced, so formatting cannot turn an accepted send into a false command-wide refusal |
497
544
  | Validation before dispatch | Host/option checks run inside the loop, so an earlier host may already be contacted. argparse syntax errors print usage to stderr (exit 2) without JSON; other pre-dispatch errors are attributed to each `--host` | Every host, `--ssh-opt`, message and remote option is validated before any `ssh` process starts (including `ssh -G`). TS always answers in JSON. Every `--host VALUE`/`--host=VALUE` before `--` is collected before any other check, so with two or more of them every pre-dispatch refusal, including syntax errors such as an unknown option or a missing value, is an array with one `submitted:false` element per host; with fewer it is one flat object |
498
545
  | Duplicate destinations | Not checked | `duplicate_ssh_host` for a repeated destination string (user, case-insensitive host name, canonical IPv6). Syntactic only: aliases or addresses of the same physical host are not detected |
499
546
  | Attempts | One attempt per host | One preflight and at most one request per destination. Refused/unknown hosts are reported in place; later hosts still get their single attempt. No failover, resend or retry after `unknown` |
package/README.ja.md CHANGED
@@ -51,11 +51,12 @@ SSH は既存の鍵・ホスト信頼設定と両端の**同じバージョン
51
51
  別の管理ツールのファイルを `--force` で上書きしないでください。
52
52
 
53
53
  ```sh
54
- npm install --global --ignore-scripts session-peer@0.3.0
54
+ npm view session-peer@0.3.1 version dist.integrity
55
+ npm install --global --ignore-scripts session-peer@0.3.1
55
56
  session-peer --version
56
57
  ```
57
58
 
58
- 期待する出力: `session-peer 0.3.0 (typescript)`。分離インストール・ソースビルド・
59
+ 期待する出力: `session-peer 0.3.1 (typescript)`。分離インストール・ソースビルド・
59
60
  Windows・削除の手順は以下の詳細ガイドを参照してください。
60
61
 
61
62
  任意の `sp` 短縮名は 0.3.0 以降に含まれ(0.2.1 以前にはありません)、自動では有効になりません。
@@ -64,12 +65,12 @@ Windows・削除の手順は以下の詳細ガイドを参照してください
64
65
  ### Update
65
66
 
66
67
  npm で導入したクライアントは npm で更新します。タグと対象バージョンを確認してから
67
- 正確なバージョンを指定してください。以下は古い npm 版を 0.3.0 に更新する例です。
68
+ 正確なバージョンを指定してください。以下は古い npm 版を 0.3.1 に更新する例です。
68
69
  CLI は更新をインストールせず、`session-peer update --check` は確認のみ行います。
69
70
 
70
71
  ```sh
71
72
  npm view session-peer dist-tags
72
- npm install --global --ignore-scripts session-peer@0.3.0
73
+ npm install --global --ignore-scripts session-peer@0.3.1
73
74
  session-peer --version
74
75
  ```
75
76
 
package/README.ko.md CHANGED
@@ -51,11 +51,12 @@ SSH에는 기존 키·호스트 신뢰 설정과 양쪽의 **동일 버전 TypeS
51
51
  다른 설치 관리자의 파일을 `--force`로 덮어쓰지 마세요.
52
52
 
53
53
  ```sh
54
- npm install --global --ignore-scripts session-peer@0.3.0
54
+ npm view session-peer@0.3.1 version dist.integrity
55
+ npm install --global --ignore-scripts session-peer@0.3.1
55
56
  session-peer --version
56
57
  ```
57
58
 
58
- 예상 출력: `session-peer 0.3.0 (typescript)`. 격리 설치·소스 빌드·Windows·제거
59
+ 예상 출력: `session-peer 0.3.1 (typescript)`. 격리 설치·소스 빌드·Windows·제거
59
60
  방법은 아래 상세 가이드에서 확인할 수 있습니다.
60
61
 
61
62
  선택적 `sp` 단축 이름은 0.3.0 이상에 포함되며(0.2.1 이하에는 없음) 자동으로 켜지지 않습니다.
@@ -64,12 +65,12 @@ session-peer --version
64
65
  ### Update
65
66
 
66
67
  npm으로 설치한 클라이언트는 npm으로 갱신합니다. 태그와 대상 버전을 검토한 뒤
67
- 정확한 버전을 설치하세요. 아래 예시는 이전 npm 설치본을 0.3.0으로 갱신합니다.
68
+ 정확한 버전을 설치하세요. 아래 예시는 이전 npm 설치본을 0.3.1로 갱신합니다.
68
69
  CLI는 업데이트를 설치하지 않으며 `session-peer update --check`는 확인만 합니다.
69
70
 
70
71
  ```sh
71
72
  npm view session-peer dist-tags
72
- npm install --global --ignore-scripts session-peer@0.3.0
73
+ npm install --global --ignore-scripts session-peer@0.3.1
73
74
  session-peer --version
74
75
  ```
75
76
 
package/README.md CHANGED
@@ -51,11 +51,12 @@ in PowerShell before installing. Choose the intended PATH entry; do not use
51
51
  `--force` to overwrite another manager’s files.
52
52
 
53
53
  ```sh
54
- npm install --global --ignore-scripts session-peer@0.3.0
54
+ npm view session-peer@0.3.1 version dist.integrity
55
+ npm install --global --ignore-scripts session-peer@0.3.1
55
56
  session-peer --version
56
57
  ```
57
58
 
58
- Expected: `session-peer 0.3.0 (typescript)`. For isolated installation, source
59
+ Expected: `session-peer 0.3.1 (typescript)`. For isolated installation, source
59
60
  builds, Windows and removal, see the detailed guide below.
60
61
 
61
62
  Optional `sp` shorthand ships with 0.3.0 and later (not 0.2.1 or earlier) and is
@@ -65,12 +66,12 @@ never enabled automatically. See [explicit activation and collisions](docs/short
65
66
 
66
67
  Use npm for an npm-managed installation. Check the available tags and review
67
68
  the target version, then install that exact version; this example updates an
68
- older npm installation to 0.3.0. The CLI does not install updates;
69
+ older npm installation to 0.3.1. The CLI does not install updates;
69
70
  `session-peer update --check` only reports them.
70
71
 
71
72
  ```sh
72
73
  npm view session-peer dist-tags
73
- npm install --global --ignore-scripts session-peer@0.3.0
74
+ npm install --global --ignore-scripts session-peer@0.3.1
74
75
  session-peer --version
75
76
  ```
76
77
 
package/README.zh-CN.md CHANGED
@@ -49,11 +49,12 @@ session-peer send --to CLAUDE_PID --message '请检查 API 契约并回复。' -
49
49
  覆盖其他安装管理器的文件。
50
50
 
51
51
  ```sh
52
- npm install --global --ignore-scripts session-peer@0.3.0
52
+ npm view session-peer@0.3.1 version dist.integrity
53
+ npm install --global --ignore-scripts session-peer@0.3.1
53
54
  session-peer --version
54
55
  ```
55
56
 
56
- 预期输出:`session-peer 0.3.0 (typescript)`。隔离安装、源码构建、Windows 和
57
+ 预期输出:`session-peer 0.3.1 (typescript)`。隔离安装、源码构建、Windows 和
57
58
  卸载步骤见下方详细指南。
58
59
 
59
60
  可选的 `sp` 简写包含在 0.3.0 及更高版本中(0.2.1 及更早版本没有),不会自动启用。
@@ -62,11 +63,11 @@ session-peer --version
62
63
  ### Update
63
64
 
64
65
  使用 npm 更新由 npm 管理的安装。先检查标签并审阅目标版本,再安装指定版本。
65
- 下面示例将旧 npm 安装更新至 0.3.0。CLI 不会安装更新,`session-peer update --check` 只做检查。
66
+ 下面示例将旧 npm 安装更新至 0.3.1。CLI 不会安装更新,`session-peer update --check` 只做检查。
66
67
 
67
68
  ```sh
68
69
  npm view session-peer dist-tags
69
- npm install --global --ignore-scripts session-peer@0.3.0
70
+ npm install --global --ignore-scripts session-peer@0.3.1
70
71
  session-peer --version
71
72
  ```
72
73
 
package/RELEASING.md CHANGED
@@ -7,6 +7,52 @@ 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
+ ## 0.3.1 stable release procedure
11
+
12
+ 0.3.1 is a source candidate for the [reliability fixes](PARITY.md#031-reliability-fixes),
13
+ not a claim of public publication. Previous stable 0.3.0 integrity is pinned:
14
+ `sha512-mdtikUMrGmMrdVSvPXdJcZeouTeuixOTzGwFKPhN66ATZqTohu9HKbejgOwXJe0/zrO+nt9asCAzAEhiHWDYGA==`.
15
+ The public attestation metadata URL is
16
+ `https://registry.npmjs.org/-/npm/v1/attestations/session-peer@0.3.0`.
17
+ The script enforces the integrity, tags and registry origin of attestation URLs;
18
+ provenance contents and full URLs require separate manual comparison with the
19
+ dated public records. Preserve `preview=0.1.0-preview.1` and its pinned integrity.
20
+
21
+ 1. Merge the reviewed 0.3.1 preparation PR and require successful exact-main CI,
22
+ including Windows Node 22/24, CodeQL and the release gate.
23
+ 2. Confirm npm environment reviewers/main-only deployment policy, package
24
+ ownership/2FA and stage-only Trusted Publisher mapping. Inspect authenticated
25
+ `npm stage list session-peer`; stop on a conflicting stage.
26
+ 3. Require 0.3.1 absent, `latest=0.3.0` and `preview=0.1.0-preview.1`, and compare
27
+ the pinned integrity and public provenance records before approval.
28
+ 4. Obtain final approval naming the exact merged 40-character main SHA,
29
+ **0.3.1**, **stable-stage** and `latest` promotion to 0.3.1. Release preparation
30
+ does not authorize dispatch, and historical approvals cannot be replayed.
31
+ 5. Dispatch `publish.yml` with `mode=stable-stage`, `version=0.3.1`,
32
+ `source_sha=<approved main SHA>` and
33
+ `confirmation=session-peer@0.3.1 stable-stage`.
34
+ 6. Download the prepare job's `npm-release-<SHA>` artifact and apply the
35
+ documentation gate below before the separate protected npm environment approval.
36
+ 7. Record the stage ID and compare staged bytes with the retained artifact.
37
+ Separate final npm 2FA approval publishes 0.3.1 and promotes `latest`.
38
+ 8. On the exact source/artifact, run `release.mjs artifact` and `verify`, then
39
+ append dated public evidence to VALIDATION.md.
40
+
41
+ SSH endpoints must use the same TS version. 0.3.0 and 0.3.1 refuse each other;
42
+ coordinate upgrades. Preserve the known #20/#23 and Windows update-notice
43
+ validation limitations documented in PARITY.md. Do not claim fleet upgrades,
44
+ GitHub tags/releases or live-agent ACK from packaging or CI fixtures.
45
+
46
+ ## Public release checkpoint — 0.3.0 (2026-10-03 KST)
47
+
48
+ `session-peer@0.3.0` is public with `latest=0.3.0` and unchanged
49
+ `preview=0.1.0-preview.1`; see the [dated verification and documentation
50
+ discrepancy](VALIDATION.md#public-030--2026-10-03-kst). The published source is
51
+ `05418b21fcdef890826325d56b07bb3dabce3bb0`, not the later #91 documentation
52
+ correction. The completed steps below are history. Do not replay them or stage
53
+ 0.3.0 again; a later release requires a newly reviewed version, registry
54
+ baseline and exact source approval.
55
+
10
56
  <a id="current-public-release--021"></a>
11
57
 
12
58
  ## Public release checkpoint — 0.2.1 (2026-09-29 KST)
@@ -19,7 +65,9 @@ with `latest=0.2.1` and unchanged `preview=0.1.0-preview.1`; see the
19
65
  0.2.0 procedures below are history, not repeatable dispatches. A future release
20
66
  requires a new reviewed version and baseline preparation PR.
21
67
 
22
- ## 0.3.0 stable release procedure
68
+ <a id="030-stable-release-procedure"></a>
69
+
70
+ ## Completed 0.3.0 stable release procedure
23
71
 
24
72
  The reviewed stable target is 0.3.0, the remote usability and maintenance
25
73
  release ([changes and known limitations](PARITY.md#030-remote-usability-and-maintenance)).
@@ -29,8 +77,9 @@ Its preparation PR pins previous stable 0.2.1 integrity:
29
77
  `https://registry.npmjs.org/-/npm/v1/attestations/session-peer@0.2.1`; the script
30
78
  checks only its registry origin).
31
79
  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.
80
+ removed. These historical steps alone do not constitute public evidence; see
81
+ the [dated verification record](VALIDATION.md#public-030--2026-10-03-kst) for
82
+ the actual outcome and archive documentation discrepancy.
34
83
 
35
84
  1. Merge the reviewed 0.3.0 preparation PR into main and require successful
36
85
  exact-main CI (including Windows Node 22/24, CodeQL and the release gate).
package/SECURITY.md CHANGED
@@ -14,7 +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
- a published npm client, with 0.2.1 release evidence in [VALIDATION.md](VALIDATION.md#public-021--2026-09-29-kst).
17
+ a published npm client, with 0.3.0 release evidence in [VALIDATION.md](VALIDATION.md#public-030--2026-10-03-kst).
18
18
  Reports on published versions and source commits are welcome; no maintenance
19
19
  window or backport promise exists. English and Korean reports are welcome. Disclosure
20
20
  is coordinated with the reporter; private reports are not automatically public.
package/VALIDATION.md CHANGED
@@ -1,11 +1,101 @@
1
- # Validation record — updated 2026-10-03 KST
1
+ # Validation record — updated 2026-10-04 KST
2
2
 
3
- This dated record covers public 0.2.1 and 0.2.0 verification, historical 0.1.0
3
+ This dated record covers the 0.3.1 source candidate and public 0.3.0, 0.2.1 and 0.2.0 verification, historical 0.1.0
4
4
  public verification, candidate checks and live-agent observations. Older sections
5
5
  describe their stated checkpoint rather than current feature availability.
6
6
  It does not claim complete Python parity.
7
7
  Python reference: v1.0.2, commit `47c23713d0a2a3c11ebde6186afd8c43489b8b65`.
8
8
 
9
+ ## 0.3.1 candidate checks — 2026-10-04 KST
10
+
11
+ Source candidate on merged main `cb661ff4f323f637673d528f05992a2bb275fefc`
12
+ after #103, #101, #96, #95 and #102. The local runtime and fixture checks below
13
+ ran at checkpoint `71668d112929576d22a83b2dd269cfb98d3f567a`; later candidate
14
+ changes only add this dated record. See the [patch contracts](PARITY.md#031-reliability-fixes).
15
+ This section records preparation, not public 0.3.1 publication.
16
+
17
+ - macOS arm64, Node 24.16.0/npm 11.15.0; `npm ci --ignore-scripts`, build,
18
+ `test:types` and `npm test` passed: 151 tests, 146 passed, 5 Windows-only
19
+ skipped, 0 failed. Python conformance used the pinned 1.0.2 reference above.
20
+ The full suite includes `test/transport.test.ts`; a Windows command is not
21
+ evidence that this POSIX transport suite ran on Windows.
22
+ - The inactive storage fixture starts without a writer or lock holder. Its
23
+ valid saved-thread DB reports `activity=inactive`, `writerLock=absent` before
24
+ and after testing. Without opt-in it refuses before the storage guard; with
25
+ opt-in, dry-run validates without calling Codex and send queues exactly once.
26
+ Root bare and escaped `sqlite_home` settings and malformed configuration then
27
+ refuse without another queue call. Nested-only root/non-root doctor tests
28
+ use the normal diagnostic DB schema and do not authorize sending.
29
+ - Reply-To tests cover nested URI/agent confusion with zero SSH/queue calls,
30
+ and normal Claude names/Codex routes. SSH fixtures cover unnamed Claude PID
31
+ targets and malformed per-host outcomes without retry. Registry tests include
32
+ POSIX FIFO/race/size handling and healthy rows; UID 0 is simulated through
33
+ controlled identity observations with a real held native lock, not a root login.
34
+ - `test:package` passed the 51-file allowlist, reproducible packaging, clean
35
+ installation/removal and Bash/zsh shorthand contract/lifecycle. Repository
36
+ metadata, four-language docs/links and `git diff --check` passed. `npm audit`
37
+ reported 0 vulnerabilities. The exact runtime dependency `smol-toml@1.9.0`
38
+ is locked; it is installed as a dependency, not bundled into the allowlist.
39
+ - `release.mjs pack` and `artifact` passed at the checkpoint, including identical
40
+ repeated pack bytes and isolated `--ignore-scripts` install/version/list/removal.
41
+ The final documentation-only candidate is repacked and compared with source
42
+ in the preparation PR; its local artifact is not a future merged-main artifact.
43
+ - Registry preparation baseline: `latest=0.3.0`, `preview=0.1.0-preview.1`,
44
+ 0.3.1 absent. The helper pins the public 0.3.0 integrity recorded below and
45
+ retains the preview pin. No dispatch, npm stage/promotion, tag or fleet change
46
+ follows from these checks.
47
+
48
+ Windows evidence for the fixes is CI fixtures. Existing Windows-client jump,
49
+ remote deployment and update-notice validation gaps remain. Live-agent delivery
50
+ or ACK was not exercised by these fixture tests. Publication still requires the
51
+ new exact merged SHA/version/mode approval and runbook gates in RELEASING.md.
52
+
53
+ ## Public 0.3.0 — 2026-10-03 KST
54
+
55
+ `session-peer@0.3.0` was published at `2026-10-03T05:14:44.917Z`
56
+ (14:14:44.917 KST). The registry reports `latest=0.3.0` and unchanged
57
+ `preview=0.1.0-preview.1`.
58
+
59
+ - Published source: `05418b21fcdef890826325d56b07bb3dabce3bb0`, the #89 merge.
60
+ Its [exact-main CI](https://github.com/abruption/session-peer-ts/actions/runs/37096923337)
61
+ and [CodeQL](https://github.com/abruption/session-peer-ts/actions/runs/37096922981)
62
+ passed. The [stage-only publication run](https://github.com/abruption/session-peer-ts/actions/runs/37098738865)
63
+ completed prepare/publish; GitHub records `abruption` approving environment `npm`.
64
+ - Stage ID: `cc0797c4-fbde-4cb0-a01b-806ff8409b39`. The authenticated stage
65
+ download, retained Actions artifact and public registry tarball were compared
66
+ byte for byte. All were the same 184,811-byte, 51-file package.
67
+ - SHA-256: `96315c907339ed7f2def7ac3a02c40b621ca385448884eb69b7d2d975771b797`.
68
+ - Registry integrity:
69
+ `sha512-mdtikUMrGmMrdVSvPXdJcZeouTeuixOTzGwFKPhN66ATZqTohu9HKbejgOwXJe0/zrO+nt9asCAzAEhiHWDYGA==`.
70
+ - Public SLSA provenance matches the package SHA-512, source SHA, repository,
71
+ `.github/workflows/publish.yml` and run `37098738865/attempts/1`.
72
+ - From the exact published source/artifact, `release.mjs artifact` and `verify`
73
+ passed on macOS arm64, Node 24.16.0/npm 11.15.0. A fresh public install with
74
+ `--ignore-scripts` printed `session-peer 0.3.0 (typescript)`, listed no Claude
75
+ sessions in its isolated home, and uninstalled with its launcher removed.
76
+ `npm audit signatures` cryptographically verified registry signatures for
77
+ **3 packages** and attestations for **2 packages**; these are package counts.
78
+
79
+ ### Released documentation and scope
80
+
81
+ The released archive retains a stale migration sentence in PARITY.md claiming
82
+ that multi-host aggregation is absent, although its 0.3.0 feature contract and
83
+ runtime support ordered repeated `--host` results. [PR #91](https://github.com/abruption/session-peer-ts/pull/91)
84
+ corrected the source at `f6fedfc08c0f374eec1a3b5e2e6bfd09bc98dd71`.
85
+ That correction is **not in the immutable public 0.3.0 archive**; it will be
86
+ included when a later version is packaged. The corrected local candidate was
87
+ not the published artifact. No replacement stage or same-version republication
88
+ was executed after the public release was confirmed.
89
+
90
+ SSH still requires the same TS version on both ends: 0.2.1 and 0.3.0 refuse each
91
+ other at preflight. Coordinate endpoint upgrades. #20 remains partial for
92
+ Windows-client jump routing; #23's Windows deployment cell and newer Linux
93
+ receipt/recovery rules remain unvalidated. Update notices' Windows refresh,
94
+ failure and forged-field cells also remain unverified. Public installation
95
+ evidence above is local macOS evidence; Windows evidence is CI fixtures. No
96
+ fleet upgrade or GitHub tag/release is claimed by this record. The demo's actual
97
+ 0.2.1 ACK remains its own historical evidence.
98
+
9
99
  ## 0.3.0 candidate checks — 2026-10-03 KST
10
100
 
11
101
  Candidate source: main after #79, #84, #86, #85, #75 and #83 plus the 0.3.0
@@ -23,9 +113,10 @@ tarball into a temporary prefix printed `session-peer 0.3.0 (typescript)` and
23
113
  uninstalled cleanly. The packaged READMEs and guides were read from that tarball.
24
114
  Each included PR passed the full macOS/Linux/Windows Node 22/24 matrix,
25
115
  CodeQL and the release gate on its head. These are fixture results, not
26
- live-TUI ACKs and not public release evidence; 0.3.0 publication requires the
27
- procedure in [RELEASING.md](RELEASING.md#030-stable-release-procedure) and a
28
- dated public record.
116
+ live-TUI ACKs and not public release evidence. At this candidate checkpoint,
117
+ publication still required the procedure in
118
+ [RELEASING.md](RELEASING.md#030-stable-release-procedure) and a dated public
119
+ record. Completed public evidence is recorded [above](#public-030--2026-10-03-kst).
29
120
 
30
121
  ## Remote deployment workflow, POSIX cell (#23 F5) — 2026-10-02 KST
31
122
 
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import { lstatSync } from 'node:fs';
7
7
  import { listing, Refusal } from './discovery.js';
8
8
  import { executable, run, UnknownOutcome } from './process.js';
9
9
  import { checkMessage, send, CodexUnknownOutcome } from './send.js';
10
- import { HomeRefusal } from './writer.js';
10
+ import { HomeRefusal, uuid } from './writer.js';
11
11
  import { envelope, host, reply, VERSION, VERSION_LINE } from './protocol.js';
12
12
  import { CHANNELS, checkUpdate, noticeText, refreshCache, refuseSelfUpdate, REFRESH_ARG, updateNotice, UpdateRefusal } from './updates.js';
13
13
  import { jumpOptions, sshConfig, sshJump, sshOptions } from './ssh.js';
@@ -305,6 +305,19 @@ async function remote(options, ssh, target, resolved, message, returnTo) {
305
305
  (value.ok && (value.submitted !== !flags.has('--dry-run') || value.status !== expectedStatus)) ||
306
306
  (!value.ok && !((value.submitted === false && value.status === 'refused') || (value.submitted === null && value.status === 'unknown')))))
307
307
  return uncertain();
308
+ if (command === 'send' && value.ok) {
309
+ const target = value.target;
310
+ const requestedTarget = values.get('--to') ?? '';
311
+ const requestedCodexThread = requestedTarget.startsWith('codex:') ? requestedTarget.slice(6) : undefined;
312
+ const validTarget = target && !Array.isArray(target) &&
313
+ (target.agent === undefined || target.agent === (requestedCodexThread ? 'codex' : 'claude')) &&
314
+ (requestedCodexThread
315
+ ? typeof target.id === 'string' && uuid(target.id) && target.id.toLowerCase() === requestedCodexThread.toLowerCase()
316
+ : Number.isSafeInteger(target.pid) && target.pid > 0 &&
317
+ (typeof target.name === 'string' || target.name === null));
318
+ if (!validTarget)
319
+ return uncertain();
320
+ }
308
321
  // `clientUpdate` is client-local: a remote-supplied value is never trusted or shown.
309
322
  delete value.clientUpdate;
310
323
  return { value: { ...value, host: resolved.canonical, sshHost: target }, exitCode: done.code };
@@ -397,7 +410,7 @@ try {
397
410
  throw new Refusal('remote_json_required');
398
411
  if (wire && command === 'update')
399
412
  throw new Refusal('remote_update_unsupported');
400
- if (wire && (options.hosts.length || options.ssh.args.length || options.jump || options.values.has('--remote-bin') || options.values.has('--remote-platform') || options.values.has('--ssh-control-path') ||
413
+ if (wire && (options.address || options.hosts.length || options.ssh.args.length || options.jump || options.values.has('--remote-bin') || options.values.has('--remote-platform') || options.values.has('--ssh-control-path') ||
401
414
  options.values.has('--reply-to') || options.flags.has('--check-return-route')))
402
415
  throw new Refusal('nested_transport_forbidden');
403
416
  if (!wire && options.values.has('--return-route-host'))
package/dist/discovery.js CHANGED
@@ -1,8 +1,9 @@
1
1
  // Read-only discovery: no inbox connections, writer selection, queue or DB writes.
2
2
  // Windows Claude metadata uses native process inspection.
3
- import { lstatSync, readFileSync, readlinkSync, readdirSync, realpathSync, statSync } from 'node:fs';
3
+ import { closeSync, constants, fstatSync, lstatSync, openSync, readFileSync, readlinkSync, readSync, readdirSync, realpathSync, statSync } from 'node:fs';
4
4
  import { homedir } from 'node:os';
5
5
  import { dirname, isAbsolute, join, resolve } from 'node:path';
6
+ import { parse as parseTOML } from 'smol-toml';
6
7
  import { windowsProcessStart } from './windows.js';
7
8
  export class Refusal extends Error {
8
9
  code;
@@ -26,7 +27,12 @@ export function sqliteHome(home) {
26
27
  catch (error) {
27
28
  return ['ENOENT', 'ENOTDIR'].includes(error.code ?? '') ? 'default' : 'unknown';
28
29
  }
29
- return /^[ \t]*["']?sqlite_home["']?[ \t]*=/m.test(text) ? 'configured' : 'default';
30
+ try {
31
+ return Object.hasOwn(parseTOML(text), 'sqlite_home') ? 'configured' : 'default';
32
+ }
33
+ catch {
34
+ return 'unknown';
35
+ }
30
36
  }
31
37
  function missing(error) {
32
38
  return ['ENOENT', 'ENOTDIR'].includes(error.code ?? '');
@@ -76,6 +82,36 @@ function alive(pid) {
76
82
  return error.code === 'EPERM';
77
83
  }
78
84
  }
85
+ // Local Claude registry metadata is limited to 1 MiB per regular file. The
86
+ // descriptor checks and POSIX nonblocking open also cover replacement by a FIFO
87
+ // between lstat and open; this is not a deadline for network filesystem I/O.
88
+ function claudeRecord(file) {
89
+ const limit = 1024 * 1024, before = lstatSync(file);
90
+ if (!before.isFile() || before.size > limit)
91
+ return undefined;
92
+ const flags = constants.O_RDONLY | (process.platform === 'win32' ? 0 : constants.O_NONBLOCK | constants.O_NOFOLLOW);
93
+ const fd = openSync(file, flags);
94
+ try {
95
+ const opened = fstatSync(fd);
96
+ if (!opened.isFile() || opened.size > limit || opened.dev !== before.dev || opened.ino !== before.ino)
97
+ return undefined;
98
+ const bytes = Buffer.alloc(limit + 1);
99
+ let length = 0;
100
+ while (length < bytes.length) {
101
+ const count = readSync(fd, bytes, length, bytes.length - length, length);
102
+ if (!count)
103
+ break;
104
+ length += count;
105
+ }
106
+ // Read at most limit + 1 even if metadata grows after the descriptor check.
107
+ if (length > limit || fstatSync(fd).size > limit)
108
+ return undefined;
109
+ return JSON.parse(bytes.subarray(0, length).toString('utf8'));
110
+ }
111
+ finally {
112
+ closeSync(fd);
113
+ }
114
+ }
79
115
  export function claude(all) {
80
116
  const directory = join(process.env.CLAUDE_CONFIG_DIR || process.env.ANTHROPIC_CONFIG_DIR || join(homedir(), '.claude'), 'sessions');
81
117
  let entries;
@@ -94,7 +130,7 @@ export function claude(all) {
94
130
  continue;
95
131
  let record;
96
132
  try {
97
- const value = JSON.parse(readFileSync(join(directory, entry), 'utf8'));
133
+ const value = claudeRecord(join(directory, entry));
98
134
  if (!value || typeof value !== 'object' || Array.isArray(value))
99
135
  continue;
100
136
  record = value;
package/dist/output.js CHANGED
@@ -1,6 +1,20 @@
1
1
  // Escape terminal controls plus bidi/zero-width format characters in
2
2
  // user-controlled names/paths; preserve other Unicode.
3
- const safe = (value) => String(value ?? '').replace(/[\x00-\x1f\x7f-\x9f\u061c\u200b-\u200f\u2028-\u202e\u2060-\u2069\ufeff]/g, char => `\\u${char.charCodeAt(0).toString(16).padStart(4, '0')}`);
3
+ const safe = (value) => {
4
+ let text;
5
+ try {
6
+ text = String(value ?? '');
7
+ }
8
+ catch {
9
+ try {
10
+ text = JSON.stringify(value) ?? '[unprintable]';
11
+ }
12
+ catch {
13
+ text = '[unprintable]';
14
+ }
15
+ }
16
+ return text.replace(/[\x00-\x1f\x7f-\x9f\u061c\u200b-\u200f\u2028-\u202e\u2060-\u2069\ufeff]/g, char => `\\u${char.charCodeAt(0).toString(16).padStart(4, '0')}`);
17
+ };
4
18
  export function renderOutput(value, format) {
5
19
  if (format === 'json')
6
20
  return JSON.stringify(value);
@@ -1,5 +1,5 @@
1
- export declare const VERSION = "0.3.0";
2
- export declare const VERSION_LINE = "session-peer 0.3.0 (typescript)";
1
+ export declare const VERSION = "0.3.1";
2
+ export declare const VERSION_LINE = "session-peer 0.3.1 (typescript)";
3
3
  export declare function host(value: string): string;
4
4
  export declare function reply(value: string): {
5
5
  to: string;
package/dist/protocol.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { isIPv6 } from 'node:net';
2
2
  import { Refusal } from './discovery.js';
3
3
  import { uuid } from './writer.js';
4
- export const VERSION = '0.3.0';
4
+ export const VERSION = '0.3.1';
5
5
  export const VERSION_LINE = `session-peer ${VERSION} (typescript)`;
6
6
  // Return the OpenSSH destination: [user@]name, or an IPv6 literal with any
7
7
  // brackets removed (`ssh` does not strip `[...]` outside ssh:// URIs). Zone IDs
@@ -38,6 +38,10 @@ export function reply(value) {
38
38
  throw new Refusal('invalid_reply_uri');
39
39
  if (agent === 'codex' && !uuid(target))
40
40
  throw new Refusal('invalid_reply_uri');
41
+ // `to` uses reserved prefixes for agent selection and Reply-To parsing.
42
+ // A forwarded value must not become Codex or another URI at the receiver.
43
+ if (agent === 'claude' && (target.startsWith('codex:') || target.startsWith('session-peer:')))
44
+ throw new Refusal('invalid_reply_uri');
41
45
  if (agent !== 'codex' && fields.has('codexHome'))
42
46
  throw new Refusal('invalid_reply_uri');
43
47
  // Match Python: a POSIX or Windows absolute path, never cwd- or ~-relative.
package/dist/writer.js CHANGED
@@ -68,8 +68,10 @@ async function sample(path) {
68
68
  current = { pid: Number(value) };
69
69
  owners.push(current);
70
70
  }
71
- if (current && token[0] === 'u')
72
- current.uid = Number(value);
71
+ if (current && token[0] === 'u') {
72
+ const uid = /^\d+$/.test(value) ? Number(value) : NaN;
73
+ current.uid = Number.isSafeInteger(uid) ? uid : undefined;
74
+ }
73
75
  if (current && token[0] === 'c')
74
76
  current.command = value;
75
77
  }
@@ -95,7 +97,7 @@ export async function inspectWriter(home, id) {
95
97
  const ownId = process.platform === 'win32' ? inspectWindows('identity', String(process.pid))[0]?.uid : process.getuid?.();
96
98
  if (!before.valid || !after.valid || before.state !== after.state || before.fingerprint !== after.fingerprint ||
97
99
  before.owners.length !== 1 || after.owners.length !== 1 || JSON.stringify(before.owners) !== JSON.stringify(after.owners) ||
98
- !owner?.start || !ownId || owner.uid !== ownId || !/^codex(?:\.exe|-|$)/i.test(owner.command ?? '')) {
100
+ !owner?.start || ownId === undefined || owner.uid !== ownId || !/^codex(?:\.exe|-|$)/i.test(owner.command ?? '')) {
99
101
  throw new Refusal('active_writer_unverified', 1);
100
102
  }
101
103
  return { activity: 'live_writer', writerLock: 'held', identity: JSON.stringify({ fingerprint: after.fingerprint, ...owner }) };
package/docs/api.md CHANGED
@@ -3,14 +3,14 @@
3
3
  [Back to README](../README.md) · [User guide](guide.md)
4
4
 
5
5
  The package exposes a small ESM API with TypeScript declarations. Install it
6
- locally with `npm install --ignore-scripts session-peer@0.3.0` before importing it.
6
+ locally with `npm install --ignore-scripts session-peer@0.3.1` before importing it.
7
7
  Importing the package does not execute the CLI or submit a message.
8
8
 
9
9
  ```js
10
10
  import { VERSION, VERSION_LINE, reply, envelope } from 'session-peer';
11
11
 
12
- console.log(VERSION); // 0.3.0
13
- console.log(VERSION_LINE); // session-peer 0.3.0 (typescript)
12
+ console.log(VERSION); // 0.3.1
13
+ console.log(VERSION_LINE); // session-peer 0.3.1 (typescript)
14
14
  const address = 'session-peer://v1/reply?agent=claude&session=12345&transport=local';
15
15
  console.log(reply(address)); // { to: '12345' }
16
16
  console.log(envelope('Please review and reply.', true, address));
@@ -31,13 +31,13 @@ SSH, so a destination needs only a usable Python and a POSIX shell. Its
31
31
  `install.sh --host` additionally pushes the program to
32
32
  `$HOME/.local/share/session-peer` and links `$HOME/.local/bin/session-peer`.
33
33
 
34
- The TypeScript client deliberately does not do that. In 0.2.1 and 0.3.0 the local client
34
+ The TypeScript client deliberately does not do that. In 0.2.1 through 0.3.1 the local client
35
35
  runs `ssh -T -o BatchMode=yes -o StrictHostKeyChecking=yes -o ConnectTimeout=10`
36
36
  and, before any message leaves the machine:
37
37
 
38
38
  1. runs `<remote-bin> --version` with no message (15 s timeout);
39
39
  2. requires stdout to equal exactly the client's own version line, for example
40
- `session-peer 0.3.0 (typescript)` (`VERSION_LINE` in `src/protocol.ts`),
40
+ `session-peer 0.3.1 (typescript)` (`VERSION_LINE` in `src/protocol.ts`),
41
41
  otherwise refuses with a fixed code from `sshPreflightFailure` in `src/cli.ts`;
42
42
  3. sends a `schemaVersion: 1` JSON request on stdin to
43
43
  `<remote-bin> --stdio-request` and verifies the `schemaVersion: 1` response
@@ -209,7 +209,7 @@ A new, side-effect-free flag `<remote-bin> --capabilities` prints one JSON line
209
209
  and sends nothing:
210
210
 
211
211
  ```json
212
- {"schemaVersion":1,"implementation":"typescript","version":"0.3.0",
212
+ {"schemaVersion":1,"implementation":"typescript","version":"0.3.1",
213
213
  "wire":{"min":1,"max":1},
214
214
  "capabilities":["list","doctor","send.claude","send.codex","codexHome.inactiveOptIn"],
215
215
  "runtime":{"node":"24.16.0","modules":"137","platform":"linux","arch":"x64"},
package/docs/guide.ja.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- 0.3.0 の詳細ガイドです。0.3.0 は 0.2.1 に複数ホスト SSH、送信者情報と返信経路、更新確認、任意の `sp` 短縮名を追加します([変更点](../PARITY.md#030-remote-usability-and-maintenance))。前回の公開記録は [0.2.1 公開リリースの証拠](../VALIDATION.md#public-021--2026-09-29-kst) にあります。以下の 0.1.0 の説明は旧版との比較です。
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 の説明は旧版との比較です。
8
8
 
9
9
  ## 目次
10
10
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  実行中の **Claude Code と Codex セッション**に、ローカルまたは SSH 経由でメッセージを送る TypeScript クライアントです。Node.js で動作し、Python は不要です。
23
23
 
24
- **0.3.0 の利用ガイドです。**パッケージ名は `session-peer`、CLI コマンドは **`session-peer`**。Relay サーバーやホスティングサービスは提供しません。
24
+ **0.3.1 の利用ガイドです。**パッケージ名は `session-peer`、CLI コマンドは **`session-peer`**。Relay サーバーやホスティングサービスは提供しません。
25
25
 
26
26
  ## 機能と範囲
27
27
 
@@ -38,7 +38,7 @@ Relay 通信、MCP、wake/resume、Antigravity、自動更新は未実装です
38
38
 
39
39
  ビルド後の `node dist/cli.js list --json` は Claude/Codex をまとめて表示し、`list --agent codex --json` は既知の home を検索します。公開 npm **0.1.0** では引き続き agent と Codex 一覧の home を明示します。0.2.0 でも明示的なコマンド形式を利用できます。
40
40
 
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.0)が必要です。
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)が必要です。
42
42
 
43
43
  ### 0.2.0 CLI の使いやすさ
44
44
 
@@ -59,14 +59,15 @@ macOS / Linux / Windows native、Node **22.x の 22.13 以上、または 24.x**
59
59
 
60
60
  ## インストール
61
61
 
62
- 検証済みの安定版は、Node 22.x の 22.13 以上または 24.x でインストールできます。Python CLI も同じコマンド名を使うため、既存のインストールがあれば先に PATH を確認してください。
62
+ Node 22.x の 22.13 以上または 24.x を使用し、インストールする正確なバージョンの公開状況を確認してください。Python CLI も同じコマンド名を使うため、既存のインストールがあれば先に PATH を確認してください。
63
63
 
64
64
  ```sh
65
- npm install --global --ignore-scripts session-peer@0.3.0
65
+ npm view session-peer@0.3.1 version dist.integrity
66
+ npm install --global --ignore-scripts session-peer@0.3.1
66
67
  session-peer --version
67
68
  ```
68
69
 
69
- 期待値は `session-peer 0.3.0 (typescript)`。
70
+ 期待値は `session-peer 0.3.1 (typescript)`。
70
71
 
71
72
  1. `session-peer list --agent claude --json` で宛先を探し、正確な PID を選びます。
72
73
  2. `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` で提出せずに確認します。
@@ -85,7 +86,7 @@ npm run build
85
86
  node dist/cli.js --version
86
87
  npm pack --ignore-scripts
87
88
  # 任意のグローバルインストール前に PATH の既存コマンドを確認
88
- npm install --global --ignore-scripts ./session-peer-0.3.0.tgz
89
+ npm install --global --ignore-scripts ./session-peer-0.3.1.tgz
89
90
  session-peer --version
90
91
  ```
91
92
 
@@ -95,7 +96,7 @@ session-peer --version
95
96
 
96
97
  インストール前後に `type -a session-peer` と `command -v session-peer` を確認します。他の実装も同名コマンドを提供するため、PATH 上の一つを選ぶか `node /absolute/path/dist/cli.js` を使ってください。`--force` で他の管理ツールのファイルを上書きしないでください。Python パッケージ・スキル・サービスを自動変更しません。削除は `npm uninstall --global session-peer` を使い、PATH を再確認します。
97
98
 
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.0.tgz` を実行し、`& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version` で確認します。同じ prefix の `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` で削除します。
99
+ 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` で確認します。同じ prefix の `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` で削除します。
99
100
 
100
101
  ## 使い方
101
102
 
@@ -188,7 +189,7 @@ Python は開発時の互換検証基準のみです(v1.0.2、`47c23713d0a2a3c
188
189
  [0.2.1 公開記録](../VALIDATION.md#public-021--2026-09-29-kst)を参照し(以降のリリースはそれぞれ日付付きの記録を追加します)、導入前に正確なバージョンと現在のタグを確認してください。
189
190
 
190
191
  ```sh
191
- npm view session-peer@0.3.0 version dist.integrity
192
+ npm view session-peer@0.3.1 version dist.integrity
192
193
  npm view session-peer dist-tags
193
194
  ```
194
195
 
package/docs/guide.ko.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- 0.3.0 상세 가이드입니다. 0.3.0은 0.2.1에 다중 호스트 SSH, 발신자 정보와 회신 경로, 업데이트 확인, 선택적 `sp` 단축 이름을 추가합니다([변경 사항](../PARITY.md#030-remote-usability-and-maintenance)). 이전 발행 기록은 [0.2.1 공개 릴리스 증거](../VALIDATION.md#public-021--2026-09-29-kst)에 있습니다. 아래 0.1.0 설명은 이전 버전과의 비교입니다.
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 설명은 이전 버전과의 비교입니다.
8
8
 
9
9
  ## 목차
10
10
 
@@ -22,7 +22,7 @@
22
22
  실행 중인 **Claude Code·Codex 세션에 로컬 또는 SSH로 메시지를 전달**하는
23
23
  TypeScript 클라이언트입니다. Python 없이 Node.js로 실행합니다.
24
24
 
25
- **0.3.0 사용 안내입니다.** 패키지명은
25
+ **0.3.1 사용 안내입니다.** 패키지명은
26
26
  `session-peer`, CLI 명령어는 **`session-peer`**입니다. Relay 서버나 호스팅
27
27
  서비스를 제공하는 프로젝트가 아닙니다.
28
28
 
@@ -59,7 +59,7 @@ JSON 배열 `SESSION_PEER_CODEX_HOMES`입니다. `--codex-home`은 Codex 목록
59
59
  JSON에는 정제된 `codexHomeResolution`과 네이티브 출력에 있을 때만 `queueId`가 추가되며,
60
60
  둘 다 소비 확인은 아닙니다. [홈 선택 계약](../PARITY.md#source-codex-home-selection--17--020)을 참고하세요.
61
61
  공개 **0.1.0**은 여전히 명시적 live 홈이 필요하고 비활성 허용 옵션이 없습니다.
62
- SSH 양쪽에는 같은 TypeScript 클라이언트 버전(0.3.0)이 필요합니다.
62
+ SSH 양쪽에는 같은 TypeScript 클라이언트 버전(0.3.1)이 필요합니다.
63
63
 
64
64
  ### 0.2.0 CLI 사용성
65
65
 
@@ -86,15 +86,16 @@ macOS/Linux/Windows native와 Node **22.x의 22.13 이상 또는 24.x**가 필
86
86
 
87
87
  ## 설치
88
88
 
89
- Node 22.x의 22.13 이상 또는 24.x에서 검증된 안정판을 설치합니다.
89
+ Node 22.x의 22.13 이상 또는 24.x를 사용하고 설치할 정확한 버전의 공개 여부를 확인하세요.
90
90
  Python CLI도 같은 명령어를 사용하므로 기존 설치본이 있다면 먼저 PATH를 확인하세요.
91
91
 
92
92
  ```sh
93
- npm install --global --ignore-scripts session-peer@0.3.0
93
+ npm view session-peer@0.3.1 version dist.integrity
94
+ npm install --global --ignore-scripts session-peer@0.3.1
94
95
  session-peer --version
95
96
  ```
96
97
 
97
- 예상 출력은 `session-peer 0.3.0 (typescript)`입니다.
98
+ 예상 출력은 `session-peer 0.3.1 (typescript)`입니다.
98
99
 
99
100
  1. `session-peer list --agent claude --json`으로 대상을 찾고 정확한 PID를 선택합니다.
100
101
  2. `session-peer send --to CLAUDE_PID --message '확인 후 회신해 주세요.' --dry-run --json`으로 제출 없이 검증합니다.
@@ -114,7 +115,7 @@ npm run build
114
115
  node dist/cli.js --version
115
116
  npm pack --ignore-scripts
116
117
  # 선택 사항: PATH에서 사용할 구현을 명시적으로 선택한 뒤 전역 설치
117
- npm install --global --ignore-scripts ./session-peer-0.3.0.tgz
118
+ npm install --global --ignore-scripts ./session-peer-0.3.1.tgz
118
119
  session-peer --version
119
120
  ```
120
121
 
@@ -137,7 +138,7 @@ Python CLI를 덮어쓰지 않으려면 격리 prefix에 설치·제거할 수
137
138
  npm ci --ignore-scripts
138
139
  npm run build
139
140
  npm pack --ignore-scripts
140
- npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.0.tgz
141
+ npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.1.tgz
141
142
  & "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version
142
143
  # 이후 제거: npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer
143
144
  ```
@@ -367,7 +368,7 @@ npm 자동 발행은 활성화하지 않았습니다. [MIT 라이선스](../LICE
367
368
  [0.2.1 공개 기록](../VALIDATION.md#public-021--2026-09-29-kst)을 참고하고(이후 릴리스는 각자의 날짜별 기록을 추가합니다) 설치 전 정확한 버전과 현재 태그를 확인하세요.
368
369
 
369
370
  ```sh
370
- npm view session-peer@0.3.0 version dist.integrity
371
+ npm view session-peer@0.3.1 version dist.integrity
371
372
  npm view session-peer dist-tags
372
373
  ```
373
374
 
package/docs/guide.md CHANGED
@@ -4,7 +4,7 @@
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.0, which adds multi-host SSH, sender context and return routes, update checks and the optional `sp` shorthand to 0.2.1 ([changes](../PARITY.md#030-remote-usability-and-maintenance)). [Public 0.2.1 release evidence](../VALIDATION.md#public-021--2026-09-29-kst) records the previous publication. References to 0.1.0 below describe the older release.
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.
8
8
 
9
9
  ## Contents
10
10
 
@@ -24,7 +24,7 @@ This guide covers 0.3.0, which adds multi-host SSH, sender context and return ro
24
24
  **Find and message running Claude Code and Codex sessions, locally or over SSH.**
25
25
  This TypeScript client runs on Node.js without Python.
26
26
 
27
- This guide describes **0.3.0**. The npm package and CLI command are both **`session-peer`**. This
27
+ This guide describes **0.3.1**. The npm package and CLI command are both **`session-peer`**. This
28
28
  project does not provide a Relay server or hosted service.
29
29
 
30
30
  ## Quick start
@@ -33,8 +33,9 @@ Use Node **22.13+ within 22.x or 24.x**. Check which `session-peer` your PATH
33
33
  selects if the Python CLI is already installed; both packages use that command.
34
34
 
35
35
  ```sh
36
- npm install --global --ignore-scripts session-peer@0.3.0
37
- session-peer --version # session-peer 0.3.0 (typescript)
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)
38
39
  session-peer list --agent claude --json
39
40
  session-peer send --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
40
41
  ```
@@ -101,7 +102,7 @@ submits nothing. JSON adds sanitized `codexHomeResolution` and, when supplied by
101
102
  native queue output, `queueId`; neither confirms consumption. See the
102
103
  [selection contract](../PARITY.md#source-codex-home-selection--17--020).
103
104
  Published **0.1.0** still requires an explicit live home and has no inactive opt-in.
104
- On SSH, both ends need the same TypeScript client version (0.3.0).
105
+ On SSH, both ends need the same TypeScript client version (0.3.1).
105
106
 
106
107
  ## Requirements
107
108
 
@@ -125,11 +126,11 @@ npm run build
125
126
  node dist/cli.js --version
126
127
  npm pack --ignore-scripts
127
128
  # Optional global install: first check which session-peer your PATH selects.
128
- npm install --global --ignore-scripts ./session-peer-0.3.0.tgz
129
+ npm install --global --ignore-scripts ./session-peer-0.3.1.tgz
129
130
  session-peer --version
130
131
  ```
131
132
 
132
- Expected: `session-peer 0.3.0 (typescript)`. Keep the `./...tgz` path to
133
+ Expected: `session-peer 0.3.1 (typescript)`. Keep the `./...tgz` path to
133
134
  select the locally built artifact. Check the checkout version before using
134
135
  these commands for a later release.
135
136
 
@@ -149,7 +150,7 @@ On Windows PowerShell, inspect competing commands with
149
150
  npm ci --ignore-scripts
150
151
  npm run build
151
152
  npm pack --ignore-scripts
152
- npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.0.tgz
153
+ npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.3.1.tgz
153
154
  & "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version
154
155
  # Later: npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer
155
156
  ```
@@ -416,7 +417,7 @@ Later releases add their own dated records. Check the exact version and current
416
417
  tags before installing:
417
418
 
418
419
  ```sh
419
- npm view session-peer@0.3.0 version dist.integrity
420
+ npm view session-peer@0.3.1 version dist.integrity
420
421
  npm view session-peer dist-tags
421
422
  ```
422
423
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- 这是 0.3.0 详细指南。0.3.0 在 0.2.1 基础上新增多主机 SSH、发送者信息与回复路由、更新检查以及可选的 `sp` 简写([变更](../PARITY.md#030-remote-usability-and-maintenance))。上一次发布记录见 [0.2.1 公开发布证据](../VALIDATION.md#public-021--2026-09-29-kst);下文 0.1.0 的说明用于旧版本对比。
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 的说明用于旧版本对比。
8
8
 
9
9
  ## 目录
10
10
 
@@ -21,7 +21,7 @@
21
21
 
22
22
  向正在运行的 **Claude Code 和 Codex 会话**发送消息,支持本机和跨机器 SSH。这是运行于 Node.js 的 TypeScript 客户端,不需要 Python。
23
23
 
24
- **这是 0.3.0 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
24
+ **这是 0.3.1 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
25
25
 
26
26
  ## 功能与边界
27
27
 
@@ -38,7 +38,7 @@
38
38
 
39
39
  构建后,`node dist/cli.js list --json` 合并列出 Claude/Codex,`list --agent codex --json` 查找已知 home。公开 npm **0.1.0** 仍要求显式 agent,以及 Codex 列表所需的 home;0.2.0 也支持显式命令格式。
40
40
 
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.0)。
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)。
42
42
 
43
43
  ### 0.2.0 CLI 易用性
44
44
 
@@ -58,14 +58,15 @@ macOS、Linux 或 Windows native;Node **22.x 中的 22.13 及以上,或 24.x
58
58
 
59
59
  ## 安装
60
60
 
61
- 已验证的稳定版可在 Node 22.x 的 22.13 及以上或 24.x 上安装。Python CLI 也使用同一个命令名;若已有安装,请先检查 PATH。
61
+ 使用 Node 22.x 的 22.13 及以上或 24.x,并确认要安装的确切版本是否已发布。Python CLI 也使用同一个命令名;若已有安装,请先检查 PATH。
62
62
 
63
63
  ```sh
64
- npm install --global --ignore-scripts session-peer@0.3.0
64
+ npm view session-peer@0.3.1 version dist.integrity
65
+ npm install --global --ignore-scripts session-peer@0.3.1
65
66
  session-peer --version
66
67
  ```
67
68
 
68
- 预期输出:`session-peer 0.3.0 (typescript)`。
69
+ 预期输出:`session-peer 0.3.1 (typescript)`。
69
70
 
70
71
  1. 用 `session-peer list --agent claude --json` 查找目标并选择准确 PID。
71
72
  2. 用 `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` 验证,不提交。
@@ -84,7 +85,7 @@ npm run build
84
85
  node dist/cli.js --version
85
86
  npm pack --ignore-scripts
86
87
  # 可选:全局安装前先检查 PATH 选择的现有命令
87
- npm install --global --ignore-scripts ./session-peer-0.3.0.tgz
88
+ npm install --global --ignore-scripts ./session-peer-0.3.1.tgz
88
89
  session-peer --version
89
90
  ```
90
91
 
@@ -94,7 +95,7 @@ session-peer --version
94
95
 
95
96
  安装前后用 `type -a session-peer` 和 `command -v session-peer` 检查实际执行项。其他实现也可能提供同名命令;请选择 PATH 上的一种,或显式运行 `node /absolute/path/dist/cli.js`。不要用 `--force` 覆盖其他管理器的文件。本包不会自动安装、删除或调整 Python 包、技能或服务。卸载使用 `npm uninstall --global session-peer`,随后再次检查 PATH。
96
97
 
97
- 在 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.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` 卸载。
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` 卸载。
98
99
 
99
100
  ## 使用
100
101
 
@@ -188,7 +189,7 @@ Python 只用作开发时的兼容性基准(v1.0.2,`47c23713d0a2a3c11ebde618
188
189
  安装前核对准确版本与当前标签。
189
190
 
190
191
  ```sh
191
- npm view session-peer@0.3.0 version dist.integrity
192
+ npm view session-peer@0.3.1 version dist.integrity
192
193
  npm view session-peer dist-tags
193
194
  ```
194
195
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "session-peer",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
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/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/ssh-hosts.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": {
@@ -49,6 +49,7 @@
49
49
  "typescript": "5.9.3"
50
50
  },
51
51
  "dependencies": {
52
- "fs-ext-extra-prebuilt": "2.2.14"
52
+ "fs-ext-extra-prebuilt": "2.2.14",
53
+ "smol-toml": "1.9.0"
53
54
  }
54
55
  }