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.
@@ -0,0 +1,84 @@
1
+ # TypeScript skill metadata guard
2
+
3
+ This document retains the original TS source proposal and dated design review for [#118](https://github.com/abruption/session-peer-ts/issues/118), based on the companion [Draft #20 at `963c3d7`](https://github.com/abruption/session-peer-skill/blob/963c3d748a11b1164013ee26c9c0ef285c52b285/docs/typescript-compatibility.md). Companion [design acceptance at `699a325`](https://github.com/abruption/session-peer-skill/blob/699a3251830c30c62d0f812363faf4d0eb0c8e0c/docs/typescript-compatibility.md) records the full static review of the exact candidates below on 2026-10-09. This design-only acceptance does not authorize runtime merge/release, successor skill metadata/publication, installation or pin changes, content authenticity, or live delivery support.
4
+
5
+ ## Separate version meanings
6
+
7
+ The skill repository tag, Python skill revision, TS skill revision, and npm runtime version are independent. `runtime-min-version` describes the skill's baseline CLI compatibility floor; `runtime-full-version` describes its documented published CLI feature coverage reference. Neither is a security recommendation, a doctor-acceptance rule, permission to send, or evidence of platform/native compatibility. Optional operations still need their actual resolved TS executable's version/help and prerequisites.
8
+
9
+ The finite runtime/profile matrix is:
10
+
11
+ | Inspecting runtime | Skill version | Implementation | Minimum | Full | Policy | Verdict |
12
+ |---|---|---|---|---|---|---|
13
+ | `0.3.2` | `0.1.0` | `typescript` | `0.1.0` | `0.1.0` | `probe-help` | compatible |
14
+ | `0.3.2` | `0.2.0` | `typescript` | `0.1.0` | `0.3.2` | `probe-help` | incompatible |
15
+ | `0.3.3` (published) | `0.1.0` | `typescript` | `0.1.0` | `0.1.0` | `probe-help` | compatible, published guard |
16
+ | `0.3.3` (published) | `0.2.0` | `typescript` | `0.1.0` | `0.3.2` | `probe-help` | compatible, published guard |
17
+ | `0.3.4` (source/package) | `0.1.0` | `typescript` | `0.1.0` | `0.1.0` | `probe-help` | compatible, compiled guard |
18
+ | `0.3.4` (source/package) | `0.2.0` | `typescript` | `0.1.0` | `0.3.2` | `probe-help` | compatible, compiled guard |
19
+ | Other valid runtime/profile | Any | Any | Any | Any | Any | incompatible |
20
+ | Unavailable/malformed runtime identity | Any | Any | Any | Any | Any | unknown |
21
+
22
+ All compatible rows also require exactly one `name: session-peer-ts`. Inspection uses this runtime’s compiled `VERSION`, without executing a binary. Public 0.3.3 accepts both reviewed profiles, while the immutable public 0.3.2 artifact remains legacy-only. This source/package uses compiled `VERSION=0.3.4` and preserves the two exact reviewed profiles; valid unreviewed runtimes such as 0.3.5 remain incompatible. At the earlier PR #134 checkpoint, compiled `VERSION` was 0.3.3 and the added 0.3.4 row was exercised through explicit validator arguments. That checkpoint is historical; source support does not establish registry publication. Tests exercise exact profiles, mismatches and unreviewed runtimes. Every later runtime/profile row needs explicit review; minimum/full arithmetic does not replace this finite matrix.
23
+
24
+ ## Limited grammar and results
25
+
26
+ This is a bounded frontmatter string-map grammar, not a generic YAML parser. The file begins with `---` and LF/CRLF, and closes its frontmatter with `---`. Exactly one root `name` scalar and one root `metadata:` map are required. The root `name` occupies one line; an indented non-comment continuation is malformed even across blank/comment lines or when the name follows the metadata map. Indented non-comment content before any root field is also malformed. Metadata entries have two-space indentation, lowercase ASCII keys, and no duplicates. Required metadata keys are `version`, `runtime-implementation`, `runtime-min-version`, `runtime-full-version`, and `runtime-capability-policy`.
27
+
28
+ Values are unescaped single/double-quoted strings or plain ASCII tokens beginning with a letter/digit and continuing with letters, digits, `.`, `_`, `/`, or `-`. A scalar value is separated from its colon by at least one literal ASCII space; comments require a separating space. For root `name`, the parser first requires that literal space and then removes leading whitespace with JavaScript `trimStart()` before parsing the scalar: `name:` followed by a literal space, a tab and the scalar is accepted, while a tab immediately after the colon is malformed. Metadata scalar separators retain their spaces-only grammar. Plain and quoted root names can occur before or after the metadata map. Quoted or noncanonical root key spellings are rejected rather than ignored as possibly ambiguous protected fields. Within `name` and `metadata`, YAML escape interpretation, tags, aliases, sequences, nested maps and block scalars are unsupported. Unrelated root fields and their indented content are ignored until the next root field; this does not permit a continuation of `name`. Protected name/map/scalar grammar does not parse or validate ignored field contents. Instruction bodies are never interpreted. The whole file must be valid UTF-8. A leading BOM, lone CR, and forbidden control characters are rejected. Body bytes are read; `metadata_only` is not a promise to avoid reading them.
29
+
30
+ | Evidence | Status / code | `verification` |
31
+ |---|---|---|
32
+ | Absent entrypoint (`ENOENT`/`ENOTDIR` before established file evidence) | missing / skill_missing | absent |
33
+ | Raw `EACCES`/`EPERM` reaching reader catch | permission_denied / permission_denied | absent |
34
+ | I/O failure, non-regular, overflow, invalid UTF-8, conflicting file evidence | unknown / skill_metadata_unreadable | absent |
35
+ | Missing/duplicate required name or scalar, missing/multiple map, unsupported syntax, BOM/control error | unknown / skill_metadata_missing | absent |
36
+ | Healthy bounded legacy/successor metadata; unavailable/malformed inspecting runtime identity, including ambiguous non-scalar evidence (proposed G04) | unknown / skill_metadata_missing | absent |
37
+ | Well-formed but unsupported name, tuple, or valid runtime | incompatible / skill_contract_mismatch | metadata_only |
38
+ | Exact supported runtime/profile/name | compatible / skill_contract_compatible | metadata_only |
39
+
40
+ The proposed **G04** expectation is fixed as exactly `{ status: 'unknown', code: 'skill_metadata_missing' }`, with no `verification` property, when the inspecting runtime identity is unavailable or malformed, including ambiguous non-scalar identity evidence. Its precondition is healthy bounded legacy/successor metadata: a readable regular file within the byte budget, valid UTF-8, stable file/path evidence, and valid frontmatter/name/profile. Earlier reader failures retain their own envelopes. The existing [`test/skill-metadata.test.ts`](https://github.com/abruption/session-peer-ts/blob/3cd52c166638e4833798e979a55ac71a0405d740/test/skill-metadata.test.ts) test `finite runtime/profile matrix preserves public 0.3.2 and checks the 0.3.3 candidate proposal` asserts this exact object for both profiles with explicit `null`, `{}`, `0`, `''`, `'0.3.3-preview.1'`, and `'00.3.3'` runtime arguments. An omitted or explicitly `undefined` helper argument uses the compiled `VERSION` default and is not an unavailable-identity fixture; the candidate test asserts both omitted and explicit `undefined` arguments use that compiled default. A valid but unsupported stable runtime (for example, `0.3.5` in this patch candidate) instead returns exactly `{ status: 'incompatible', code: 'skill_contract_mismatch', verification: 'metadata_only' }`. This documents the TS proposal's G04 expectation covered by the exact static design acceptance below; it does not establish runtime publication or live delivery.
41
+
42
+ The proposed **G07** result for missing, duplicated, or syntactically malformed required frontmatter name/map/scalar evidence is exactly `{ status: 'unknown', code: 'skill_metadata_missing' }`, with no `verification` property. This applies after bounded regular-file evidence, valid UTF-8, and file/path stability have been established; earlier reader failures retain their own envelopes. A well-formed unsupported name or scalar remains `incompatible / skill_contract_mismatch / metadata_only`. The static grammar fixtures and `root name forbids continuations across comments or map boundaries while ignored fields retain their scope` establish this distinction. Both profiles are tested with plain/quoted names before or after metadata, one/two/four-space continuations, blank/comment-separated continuations, orphan indentation, and exact outer inspection results. Controls preserve comments, CRLF, unrelated field content, instruction bodies, and well-formed unsupported name results. This documents the TS proposal's G07 expectation covered by the exact static design acceptance below; it does not establish runtime publication or live delivery.
43
+
44
+ Path canonicalization preserves managed symlink installations. As before, wrapped canonicalization errors can reach the checker as `home_resolution_failed` and therefore `unknown`, rather than a raw permission result. No raw error message or instruction text is returned.
45
+
46
+ These are intentional changes from public TS `0.3.2` at [`f335f07`](https://github.com/abruption/session-peer-ts/blob/f335f07352c842f2f6ceb12bd2ca6274b52f69f7/src/diagnostics.ts): its checker does not validate root name and classifies missing/duplicate/malformed required metadata scalars as incompatible. Its missing/permission/unknown outputs already omit `verification`; this proposal preserves that placement. Public 0.3.2 historical behavior is not re-described as the future source grammar. Neither `compatible` verdict authenticates bytes, approves a send, or proves consumption/ACK.
47
+
48
+ ## Reader bound and file evidence
49
+
50
+ The budget is **65,536 whole-file raw UTF-8 bytes**, including BOM, whitespace, line endings and body. The reader allocates and reads at most **65,537 bytes**, with one overflow-detection byte. Pre-read size checks are an early rejection, not the only bound. Fatal UTF-8 decoding happens after the bounded read.
51
+
52
+ The original entrypoint is canonicalized so a separately managed symlink installation remains usable. The canonical target is inspected with `lstat`, then opened read-only (POSIX also uses `O_NONBLOCK` and `O_NOFOLLOW`). The descriptor must be a regular file and match pre-open device/inode/size/mtime/ctime. After bounded reading, descriptor and path evidence must still match and the original entrypoint must resolve to the same canonical target. Length must match the initial size. Growth, truncation, replacement, alias change, and same-size timestamp changes produce unknown, never a tuple verdict. Disappearance after initial file evidence is conflicting evidence, not a fresh absent-entrypoint result. Every opened descriptor is closed by `finally`.
53
+
54
+ The proposed **B04** fixture `reader rejects observed malformed-content rewrites during bounded chunked reads and closes its descriptor` rewrites the same file after the first real four-byte read, preserving its inode and size. Separate cases replace a protected scalar with malformed syntax or introduce invalid UTF-8. The first returned nonempty chunk is explicitly asserted to contain four bytes, outside reader error handling. Captured read chunks, including that unchanged first chunk, must concatenate to the actual malformed payload; an explicitly observable timestamp change establishes conflicting file evidence. Each case asserts exactly `unknown / skill_metadata_unreadable`, preserved path, no `verification` property, bounded read requests/allocation, and closure of the inspected descriptor exactly once. Fixture failures and assertions are checked outside the reader's error handling. This tests rejection of an observed mutation before parsing or decoding; it does not claim that either parser ran on the malformed bytes. Static malformed/UTF-8 fixtures separately establish their classifications. No atomic snapshot or malicious same-user writer guarantee follows from these tests.
55
+
56
+ These checks detect observed changes; they do not authenticate content against a malicious same-user writer capable of restoring identical metadata, atomically freeze a file, or impose an I/O deadline on arbitrary filesystems. Windows uses read-only opens and regular-file checks; POSIX special-file and symlink replacement cases are exercised on POSIX. Windows fixtures cover portable reader, profile, grammar, resource, and growth/truncation behavior through the native CI suite.
57
+
58
+ ## Fixtures and rollout
59
+
60
+ `test/skill-metadata.test.ts` exercises exact legacy/candidate matrix rows, unknown and future runtimes, every required scalar's missing/equal-duplicate/conflicting-duplicate/malformed/unsupported cases, wrong name/implementation, comments/quoting/CRLF, exact and overflow byte bounds, invalid UTF-8/BOM, regular files/FIFO, growth/truncation/replacement/alias changes including post-EOF changes, descriptor cleanup, bounded read allocation, raw error envelopes and zero runtime/network/write side effects. These are isolated local/CI fixtures, not installed-skill or delivery experiments. `test/diagnostics.test.ts` retains production doctor integration coverage.
61
+
62
+ ### Exact companion design acceptance — 2026-10-09 KST
63
+
64
+ Companion [Draft #20 acceptance at `699a3251830c30c62d0f812363faf4d0eb0c8e0c`](https://github.com/abruption/session-peer-skill/blob/699a3251830c30c62d0f812363faf4d0eb0c8e0c/docs/typescript-compatibility.md) accepts the finite runtime/profile matrix, limited parser/status envelopes, G07 root-name rule, and B04 reader fixtures for these exact reviewed candidates:
65
+
66
+ | Candidate | Reviewed source head | Reviewed design document SHA-256 |
67
+ | --- | --- | --- |
68
+ | TS #126 | [`ba18bb806a6ba503381259b4255211af3adc0336`](https://github.com/abruption/session-peer-ts/blob/ba18bb806a6ba503381259b4255211af3adc0336/docs/design/typescript-skill-compatibility.md) | `3d003cb3541add314941a8d72dc03648f4cabf7ab5a6d3a83d60ff8cc24fb8ea` |
69
+ | Release Draft #129 | [`bfb3d6f1256ab076a76660e08a7bf1ad071a6c6c`](https://github.com/abruption/session-peer-ts/blob/bfb3d6f1256ab076a76660e08a7bf1ad071a6c6c/docs/design/typescript-skill-compatibility.md) | `43244535795e22e720516415d79766cffa017b59daf9f070e1cfae632d19fbd1` |
70
+
71
+ This was read-only source, test and document review with CI-status confirmation; no tests were rerun in that review. At this dated checkpoint, the runtime and successor skill were unpublished. Acceptance applies to design and fixture profiles at the named heads; it does not authorize runtime merge/release, final successor skill metadata, publication, installation or pin changes, and establishes no live delivery, consumption or ACK. The two nonblocking syntax-precision follow-ups recorded in that acceptance are clarified here and covered by added plain-name-after-map and root whitespace fixtures, without changing parser behavior.
72
+
73
+ At the earlier 2026-10-09 coordination checkpoint, a dry-run found an inactive companion session and queued nothing, and a later authorized request was queued without established consumption or a review response. Those attempts remain historical evidence only; the immutable acceptance record above supplies the subsequent design review. Final skill metadata/publication/pin changes still require their own approval.
74
+
75
+ The rollout requirement at that checkpoint was that, after separate merge/release authorization, the guard runtime must actually be published and its exact source/artifact/profile evidence recorded **before** finalizing and separately publishing successor skill metadata. Only then may the reviewed immutable skill pin and four-language guidance/PARITY change together. At that preparation checkpoint, the proposal did not modify the companion/Python repository or existing skill pin, Python runtime/reference/parity, global installation, PATH, or metadata release. No postinstall or automatic deployment is introduced. Unshipped 0.4 handoff/ACK/observation and unsupported wake/Antigravity/Relay/MCP remain outside this work.
76
+
77
+
78
+ ## Published skill follow-up — 2026-10-12 KST
79
+
80
+ The dated proposal/review above preceded publication. Public npm 0.3.3 uses source [`c0ed30273b9e9c0049df86ae3c38486a94289527`](https://github.com/abruption/session-peer-ts/tree/c0ed30273b9e9c0049df86ae3c38486a94289527), independently of the skill revision. The companion [release `session-peer-ts-v0.2.0`](https://github.com/abruption/session-peer-skill/releases/tag/session-peer-ts-v0.2.0) points to immutable source [`8482cf644507c682915e35c85aa3384c53864906`](https://github.com/abruption/session-peer-skill/tree/8482cf644507c682915e35c85aa3384c53864906/session-peer-ts). Its annotated tag object is `de7d619aebdfb4a8fe86893dc70728f646032e8d`. The final `SKILL.md` is 12,835 bytes with SHA-256 `00c6fc343fdbeb8f6dc1b1ee1b730f04cef71bbfb08205a7be3559202f1d8804`; the tag target and file bytes were rechecked against that exact source for this follow-up.
81
+
82
+ Final metadata is skill `0.2.0`, implementation `typescript`, minimum `0.1.0`, full `0.3.2`, policy `probe-help`. Four-language guidance now pins that published source. This publication checkpoint does not turn `metadata_only` into instruction authenticity, execution authority, full platform qualification, consumption or ACK. Python metadata and the Python 1.0.2 parity/reference pin remain unchanged.
83
+
84
+ The 0.3.4 source/package preserves both exact published profiles through its compiled default. PR #134 initially checked that row only through explicit validator arguments with compiled VERSION 0.3.3; the subsequent 0.3.4 preparation changed the runtime version. No skill metadata change, new skill publication, installation or future-range compatibility is included.
package/docs/guide.ja.md CHANGED
@@ -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 ホームがない場合は `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 はローカル経路の正規化または 1 回の 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、ローカル fixture 31 件を検証しました。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 経由でメッセージを送る TypeScript クライアントです。Node.js で動作し、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 @@ Relay 通信、MCP、wake/resume、Antigravity、自動更新は未実装です
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
 
@@ -63,13 +80,15 @@ macOS / Linux / Windows native、Node **22.x の 22.13 以上、または 24.x**
63
80
 
64
81
  Node 22.x の 22.13 以上または 24.x を使用し、インストールする正確なバージョンの公開状況を確認してください。Python CLI も同じコマンド名を使うため、既存のインストールがあれば先に PATH を確認してください。
65
82
 
83
+ **0.3.4 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](#ソースからビルド)を使います。
84
+
66
85
  ```sh
67
- npm view session-peer@0.3.2 version dist.integrity
68
- npm install --global --ignore-scripts session-peer@0.3.2
86
+ npm view session-peer@0.3.4 version dist.integrity
87
+ npm install --global --ignore-scripts session-peer@0.3.4
69
88
  session-peer --version
70
89
  ```
71
90
 
72
- 期待値は `session-peer 0.3.2 (typescript)`。
91
+ 期待値は `session-peer 0.3.4 (typescript)`。
73
92
 
74
93
  1. `session-peer list --agent claude --json` で宛先を探し、正確な PID を選びます。
75
94
  2. `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` で提出せずに確認します。
@@ -88,7 +107,7 @@ npm run build
88
107
  node dist/cli.js --version
89
108
  npm pack --ignore-scripts
90
109
  # 任意のグローバルインストール前に PATH の既存コマンドを確認
91
- npm install --global --ignore-scripts ./session-peer-0.3.2.tgz
110
+ npm install --global --ignore-scripts ./session-peer-0.3.4.tgz
92
111
  session-peer --version
93
112
  ```
94
113
 
@@ -98,7 +117,7 @@ session-peer --version
98
117
 
99
118
  インストール前後に `type -a session-peer` と `command -v session-peer` を確認します。他の実装も同名コマンドを提供するため、PATH 上の一つを選ぶか `node /absolute/path/dist/cli.js` を使ってください。`--force` で他の管理ツールのファイルを上書きしないでください。Python パッケージ・スキル・サービスを自動変更しません。削除は `npm uninstall --global session-peer` を使い、PATH を再確認します。
100
119
 
101
- 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` で確認します。同じ prefix の `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` で削除します。
120
+ 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` で確認します。同じ prefix の `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` で削除します。
102
121
 
103
122
  ## 使い方
104
123
 
@@ -113,6 +132,8 @@ session-peer send --to codex:THREAD_UUID --codex-home "$HOME/.codex" --message '
113
132
 
114
133
  ### SSH
115
134
 
135
+ **0.3.3:** 完全なリモート応答を厳密に検証した後、SSH が 255 で終了したり収集がタイムアウトしたりしても、確認済みの送信登録の事実を保持します。リモート結果の `ok:true` とローカル終了コード 1・`sshTransport` が併存するため、`submitted` と接続診断を確認してください。不完全、不正、上限超過の応答は unknown のままで、自動再送してはいけません。この 0.3.3 の動作は、変更できない公開済み 0.3.2 パッケージを変更しません。[応答契約](design/ordinary-ssh-responses.md)を参照してください。
136
+
116
137
  ```sh
117
138
  session-peer send --host user@machine --remote-bin /absolute/path/session-peer \
118
139
  --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
@@ -187,11 +208,13 @@ Python は開発時の互換検証基準のみです(v1.0.2、`47c23713d0a2a3c
187
208
 
188
209
  ## npm リリース
189
210
 
211
+ 公開 **0.3.2** は 2026-10-07 KST に検証されました([固定された公開記録](../VALIDATION.md#public-032--2026-10-07-kst))。以下のレジストリ照会で 0.3.4 の現在の公開状況と npm タグを確認してください。日付付きの準備記録は、その後の公開結果を証明しません。
212
+
190
213
  0.2.1 は 2026-09-29 KST、0.2.0 は 2026-09-28 KST に公開・検証されました。
191
214
  [0.2.1 公開記録](../VALIDATION.md#public-021--2026-09-29-kst)を参照し(以降のリリースはそれぞれ日付付きの記録を追加します)、導入前に正確なバージョンと現在のタグを確認してください。
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
 
@@ -233,7 +256,7 @@ session-peer update --check --channel preview --output-format text
233
256
  実行中の CLI のパスからインストールの管理者を確実に特定できた場合にだけ示します。
234
257
  対象は、自身の `session-peer` ランチャーがこのパッケージを指す npm グローバル prefix
235
258
  (既定、Homebrew、nvm、nvm-windows、fnm。例:
236
- `npm install --global --ignore-scripts session-peer@0.3.2`)、マニフェストで
259
+ `npm install --global --ignore-scripts session-peer@0.3.4`)、マニフェストで
237
260
  `session-peer` を宣言している pnpm・Yarn・Bun のグローバルストア、Volta、npx キャッシュ
238
261
  です。プロジェクトへのインストール(`npm_project`、`pnpm_project`)、ソースチェック
239
262
  アウト(`source`)、それ以外(`unknown`)では `updateCommand: null` と `guidance` の文だけを
@@ -287,16 +310,18 @@ stderr の 1 行を出します。ホストの数にかかわらず、更新は
287
310
 
288
311
  ## エージェントスキルの明示的な導入
289
312
 
290
- 別の `session-peer-ts` スキルを関連 PR で管理します。新しい npm 公開やスキルタグではありません。公開済み 0.1.0 の基本機能に対応し、TypeScript 表示とヘルプで開発機能を確認します。Python の `session-peer` スキルは別に維持します。
313
+ 別の `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` スキルも別に維持します。
291
314
 
292
- [固定したスキルのソース](https://github.com/abruption/session-peer-skill/tree/081cc3c1d16a394bd92824333f4bc61c36951799/session-peer-ts)を確認してから、エージェントと導入範囲を選択してください。
315
+ [固定したスキルのソース](https://github.com/abruption/session-peer-skill/tree/8482cf644507c682915e35c85aa3384c53864906/session-peer-ts)を確認してから、エージェントと導入範囲を選択してください。
293
316
  以下の例は **Codex、現在のプロジェクト** を指定します。そのプロジェクトのディレクトリで実行してください。
294
317
  Claude Code では `--agent claude-code` を使用します。ユーザー単位の場合は add/list/remove の
295
318
  すべてに `--global` を付けてください。既存の `session-peer-ts` を置き換える前にローカルの変更を確認してください。
296
319
  Codex の `.agents/skills` は、このパスを探索する他のクライアントと共有されます。
297
320
 
321
+ 公開 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)を参照してください。
322
+
298
323
  ```sh
299
- 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
324
+ 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
300
325
  npx -y skills@1.7.0 list --agent codex --json
301
326
  npx -y skills@1.7.0 remove session-peer-ts --agent codex --yes
302
327
  ```