session-peer 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PARITY.md +98 -6
- package/README.ja.md +8 -8
- package/README.ko.md +8 -8
- package/README.md +8 -8
- package/README.zh-CN.md +8 -8
- package/RELEASING.md +62 -0
- package/VALIDATION.md +380 -1
- package/dist/app-server.d.ts +19 -2
- package/dist/app-server.js +159 -24
- package/dist/cli.js +12 -2
- package/dist/handoff-ledger.js +5 -1
- package/dist/handoff-operations.d.ts +4 -0
- package/dist/handoff-operations.js +29 -4
- package/dist/handoff-writer-probe.js +29 -6
- package/dist/linux-native-probe.d.ts +1 -0
- package/dist/linux-native-probe.js +51 -0
- package/dist/linux-proc.d.ts +55 -0
- package/dist/linux-proc.js +150 -0
- package/dist/metadata-observation.d.ts +3 -2
- package/dist/metadata-observation.js +25 -14
- package/dist/native-profiles.d.ts +25 -0
- package/dist/native-profiles.js +62 -0
- package/dist/process.d.ts +28 -0
- package/dist/process.js +284 -2
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +1 -1
- package/dist/skill-metadata.js +4 -3
- package/dist/ssh.d.ts +2 -1
- package/dist/ssh.js +37 -2
- package/dist/windows.d.ts +28 -0
- package/dist/windows.js +149 -1
- package/docs/api.md +16 -6
- package/docs/design/typescript-skill-compatibility.md +43 -0
- package/docs/guide.ja.md +15 -15
- package/docs/guide.ko.md +17 -17
- package/docs/guide.md +16 -16
- package/docs/guide.zh-CN.md +15 -15
- package/docs/shorthand.md +1 -1
- package/package.json +2 -2
package/PARITY.md
CHANGED
|
@@ -1,13 +1,48 @@
|
|
|
1
1
|
# Python compatibility and npm migration
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
## 0.5.0 release scope — 2026-10-20 KST
|
|
4
|
+
|
|
5
|
+
The 0.5.0 source carries platform-qualification groundwork. It does not activate additional observation or
|
|
6
|
+
Windows jump support. #130, #131, #20 and #23 remain partial follow-ups:
|
|
7
|
+
|
|
8
|
+
- #153: exact platform/native-version selection and procfs inspection groundwork;
|
|
9
|
+
the Linux arm64 candidate is not selectable, locally or over SSH.
|
|
10
|
+
- #156: unselected Windows tree-cleanup backend and private-storage guard;
|
|
11
|
+
production `run()` retains direct-child-only Windows cleanup, and Windows
|
|
12
|
+
handoff storage/native observation remain unsupported.
|
|
13
|
+
- #154: Win32-OpenSSH ProxyCommand construction and no-network quoting evidence;
|
|
14
|
+
Windows-client jump still refuses before effect.
|
|
15
|
+
- #155 is deferred for minimum-contract redesign and is excluded from this
|
|
16
|
+
release. Its harness, authority/recovery logic and qualification claims
|
|
17
|
+
are not included; #23 remains open.
|
|
18
|
+
|
|
19
|
+
The finite 0.5.0 doctor matrix preserves the four exact profiles reviewed for
|
|
20
|
+
0.4.0. This is metadata-only compatibility, not additional feature or platform
|
|
21
|
+
qualification. The installed-skill guidance pin, native-version evidence,
|
|
22
|
+
Python reference and ordinary no-resend/receipt boundaries are unchanged.
|
|
23
|
+
SSH endpoints require exactly the same TS version, including 0.5.0.
|
|
24
|
+
Publication and validation evidence belong to dated release records; these
|
|
25
|
+
source changes alone are not public artifact verification.
|
|
26
|
+
|
|
27
|
+
## Public 0.4.0 checkpoint — 2026-10-18 KST
|
|
28
|
+
|
|
29
|
+
[Version 0.4.0](https://github.com/abruption/session-peer-ts/releases/tag/v0.4.0)
|
|
30
|
+
is public from source `dde3923efe116f87f38b1639b29b889d2b832e44`.
|
|
31
|
+
The [dated verification](VALIDATION.md#public-040--2026-10-18-kst) records identical
|
|
32
|
+
reviewed/Actions/staged/public bytes, signature/provenance checks and isolated
|
|
33
|
+
installation/removal. The release includes the approved limited macOS Codex
|
|
34
|
+
observation and explicit operator-confirmed receipt scope below; #130–#132
|
|
35
|
+
remain separate platform/collector extensions. Published skill 0.2.1 remains
|
|
36
|
+
the installation pin; runtime publication is not companion-skill publication.
|
|
37
|
+
|
|
38
|
+
## Current comparison — Python 1.1.0 / TypeScript 0.5.0
|
|
39
|
+
|
|
40
|
+
Updated 2026-10-20 KST. TypeScript 0.5.0 uses published
|
|
6
41
|
Python **1.1.0**, commit
|
|
7
42
|
[`8ca77cf`](https://github.com/abruption/session-peer/tree/8ca77cf31254c8287a2593fe484bb30a7dba2727),
|
|
8
43
|
as the ordinary list/discovery comparison baseline. JSON reports
|
|
9
44
|
`referenceVersion: "1.1.0"`; this identifies a comparison source, not complete
|
|
10
|
-
runtime parity. The source reports `VERSION=0.
|
|
45
|
+
runtime parity. The source reports `VERSION=0.5.0`; publication evidence belongs
|
|
11
46
|
to the dated validation and release records. This source does not change
|
|
12
47
|
immutable public npm artifacts or their historical comparison markers.
|
|
13
48
|
|
|
@@ -803,9 +838,9 @@ or agent session was used.
|
|
|
803
838
|
| 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 |
|
|
804
839
|
| 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 |
|
|
805
840
|
| 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` |
|
|
806
|
-
| Timeouts | Python subprocess timeouts on the direct child | POSIX: each `ssh` (and every other external command) starts detached, in a new session and process group without a controlling terminal, registered as soon as its PID exists; cleanup covers that group only (a descendant that calls `setsid()` leaves it and is out of scope; no PID scanning); a timeout, an output overflow or SIGINT/SIGTERM/SIGHUP to the CLI kills the whole group, including a jump `ProxyCommand` that holds the pipes, and the call completes after the exit plus a 100 ms grace instead of waiting for the pipes. Windows: only the direct child is killed, descendants may linger, and the call still returns at the deadline. Preflight timeout stays a refusal and request timeout stays `unknown` without retry ([#87](https://github.com/abruption/session-peer-ts/issues/87)) |
|
|
841
|
+
| Timeouts | Python subprocess timeouts on the direct child | POSIX: each `ssh` (and every other external command) starts detached, in a new session and process group without a controlling terminal, registered as soon as its PID exists; cleanup covers that group only (a descendant that calls `setsid()` leaves it and is out of scope; no PID scanning); a timeout, an output overflow or SIGINT/SIGTERM/SIGHUP to the CLI kills the whole group, including a jump `ProxyCommand` that holds the pipes, and the call completes after the exit plus a 100 ms grace instead of waiting for the pipes. Windows: only the direct child is killed, descendants may linger, and the call still returns at the deadline. A candidate owned-tree cleanup backend is prepared but deliberately not selected: Windows process creation/exit times are wall-clock instants, so descendant ownership cannot be proven without a Job-object boundary ([#131](https://github.com/abruption/session-peer-ts/issues/131)). Preflight timeout stays a refusal and request timeout stays `unknown` without retry ([#87](https://github.com/abruption/session-peer-ts/issues/87)) |
|
|
807
842
|
| `--ssh-opt` | Arbitrary ssh arguments minus a substring blocklist (`proxycommand`, `localcommand`, `permitlocalcommand`) | Allowlist only: `-p PORT`, `-l USER`, `-i IDENTITY_FILE`, `-o Port=`/`User=`/`IdentityFile=`/`IdentitiesOnly=yes\|no`, `-4`, `-6`, as separate or attached tokens. Anything else is `unsupported_ssh_option`; a bad, duplicate or dash-leading value is `invalid_ssh_option`. Identity paths refuse `%` and `$` (OpenSSH token/environment expansion). Options are re-emitted canonically after the fixed `BatchMode=yes`, `StrictHostKeyChecking=yes` and `ConnectTimeout=10`, which OpenSSH therefore keeps |
|
|
808
|
-
| Jump hosts | `ProxyJump`/`-J` allowed through `--ssh-opt`; the hop gets no command-line `BatchMode`/`StrictHostKeyChecking` | **Done for POSIX clients:** typed `--ssh-jump USER@HOST[:PORT]` (one hop, explicit user, shell- and %-inert characters only). The CLI builds a fixed `ProxyCommand`: the shell-quoted, %-escaped `ssh` path with `BatchMode=yes`, `StrictHostKeyChecking=yes`, `UpdateHostKeys=no`, `ConnectTimeout=10`, `ConnectionAttempts=1`, `ProxyCommand=none`, `ProxyJump=none`, `ControlPath=none`, `ForwardAgent=no`, `ClearAllForwardings=yes`, `PermitLocalCommand=no`, `-W '[%h]:%p'`. It is placed with the fixed options, together with outer `ControlMaster=no`, `ControlPath=none` and `ProxyUseFdpass=no`, so it overrides a `ProxyJump`/`ProxyCommand` and any control master in ssh_config for the target (checked with `ssh -G -F <fixture>`). `-J`/`ProxyJump`/`ProxyCommand` through `--ssh-opt` stay refused. Refused with `--ssh-control-path` and on **Windows clients** (`ssh_jump_unsupported_platform`)
|
|
843
|
+
| Jump hosts | `ProxyJump`/`-J` allowed through `--ssh-opt`; the hop gets no command-line `BatchMode`/`StrictHostKeyChecking` | **Done for POSIX clients:** typed `--ssh-jump USER@HOST[:PORT]` (one hop, explicit user, shell- and %-inert characters only). The CLI builds a fixed `ProxyCommand`: the shell-quoted, %-escaped `ssh` path with `BatchMode=yes`, `StrictHostKeyChecking=yes`, `UpdateHostKeys=no`, `ConnectTimeout=10`, `ConnectionAttempts=1`, `ProxyCommand=none`, `ProxyJump=none`, `ControlPath=none`, `ForwardAgent=no`, `ClearAllForwardings=yes`, `PermitLocalCommand=no`, `-W '[%h]:%p'`. It is placed with the fixed options, together with outer `ControlMaster=no`, `ControlPath=none` and `ProxyUseFdpass=no`, so it overrides a `ProxyJump`/`ProxyCommand` and any control master in ssh_config for the target (checked with `ssh -G -F <fixture>`). `-J`/`ProxyJump`/`ProxyCommand` through `--ssh-opt` stay refused. Refused with `--ssh-control-path` and on **Windows clients** (`ssh_jump_unsupported_platform`): Windows quoting passed a no-connection Win32-OpenSSH 9.5p1 probe, but a connected hop and process cleanup are unverified. No multi-hop, and no Tailscale lookup for the hop (v1). Result field `sshJump`. `--ssh-opt` values (including `-4`/`-6`) apply to the target only, not the hop. Shell scope: the generated `ProxyCommand` was verified with sh, bash and zsh; other login shells are unverified. Unverified boundaries: connected Win32-OpenSSH client jumps. A separate Windows `ProxyCommand` builder (quoted absolute `ssh.exe` path, doubled `%`, `-W "[%h]:%p"`, same hardening options; other paths refused with `ssh_jump_unsupported_ssh_path`) is checked against source-derived models of Win32-OpenSSH, libuv and UCRT command-line parsing and, in an isolated no-connection probe, against the real Win32-OpenSSH 9.5p1 `ssh.exe` (27/27 cells, [record](VALIDATION.md#windows-client-jump-proxycommand-probe--20-2026-10-20-kst)); it is not reachable from the CLI. Enabling it still needs a connected hop run and Windows owned-process-tree cleanup on timeout, overflow and interrupt: production `run()` kills only the direct child, so a `ProxyCommand` descendant may survive; #131 keeps tree cleanup as an unselected preparation backend (historical backend trials used a PowerShell → PING stand-in; current native tests check only the production direct-child baseline, not the candidate backend or an `ssh.exe` → `ProxyCommand` `ssh.exe` shape). Such a stop remains an unknown effect with no resend. Enabling also needs an analysis (not yet a fix) of real `ssh.exe` not exiting with pipe stdin in a non-interactive session, and the same absolute, resolved `ssh.exe` as both the outer binary and the `ProxyCommand` program. Python parity: Python accepts arbitrary `-J` hops; TS offers a stricter, typed single hop |
|
|
809
844
|
| User | `sshUser`/`sshUserSource`: `explicit` from `USER@HOST`, else `ssh -G` (`ssh_config_or_local_default`), else `unknown` | Same fields and sources; `-l USER` also counts as `explicit`. `-l` together with `USER@HOST` is `conflicting_ssh_user`, because `-l` silently wins. Without an explicit user, one local `ssh -G` runs per host (5 s limit). It does not connect, but per ssh(1)/ssh_config(5) it evaluates the user's ssh configuration, including `Match exec` commands, as Python's lookup does. A failed or unexpected lookup gives `unknown` for that host only |
|
|
810
845
|
| Trust boundary | Blocklisted command-line options; user ssh config trusted | The allowlist governs only options this CLI puts on the `ssh` command line. The user's and system ssh_config are trusted user configuration: `ProxyCommand`, `ProxyJump`, `Match exec`, `Include` and similar settings there apply to every `ssh` this CLI starts, as for the user's own `ssh` |
|
|
811
846
|
| IPv6 | Passed through to `ssh` | `2001:db8::1`, `[2001:db8::1]` and `user@[2001:db8::1]` are accepted; brackets are removed for `ssh`, `sshHost` shows the destination used. Zone IDs (`%`) are refused |
|
|
@@ -1163,6 +1198,63 @@ range, Linux/Windows qualification, live delivery or ACK follows from these
|
|
|
1163
1198
|
queue-only fixtures. Initial harness failures are recorded separately and were
|
|
1164
1199
|
never retried with an already-attempted intent.
|
|
1165
1200
|
|
|
1201
|
+
### Platform-aware native profile table — #130 (0.5.0 source; Linux candidate not selectable)
|
|
1202
|
+
|
|
1203
|
+
Queue and observation selection use one exact
|
|
1204
|
+
`(host platform-arch, native version, source commit)` row with its
|
|
1205
|
+
`initialize.platformOs`, storage-binding, owner-inspection and SSH-destination
|
|
1206
|
+
policy and a pinned executable artifact (historical darwin-arm64 rows predate
|
|
1207
|
+
artifact pinning). Selectable rows remain darwin-arm64 Codex 0.160.1/0.162.1
|
|
1208
|
+
only. A **linux-arm64 Codex 0.162.1 candidate** is recorded but not
|
|
1209
|
+
selectable: its upstream `codex-aarch64-unknown-linux-musl` executable digest
|
|
1210
|
+
(`071cbe8d…cabe5`), Linux-generated schema/notification hashes (equal to
|
|
1211
|
+
darwin 0.162.1) and one dedicated-thread client-ID injection on a Linux arm64
|
|
1212
|
+
test host are in `test/fixtures/linux-observation-native-evidence.json`.
|
|
1213
|
+
Every Linux tuple therefore refuses required delivery before effect and uses
|
|
1214
|
+
the ordinary queue for best-effort observation, locally and over SSH
|
|
1215
|
+
(Linux rows can never be selected by SSH destination requests). Historical
|
|
1216
|
+
KR/US ordinary queue results are not injection evidence.
|
|
1217
|
+
|
|
1218
|
+
### Linux row activation follow-up design — #130 (frozen, not implemented)
|
|
1219
|
+
|
|
1220
|
+
Activation of the candidate requires both bindings below, reviewed together
|
|
1221
|
+
with the ledger owner; neither changes ordinary JSON or existing ledgers.
|
|
1222
|
+
|
|
1223
|
+
1. **Original writer executable.** At capability, effect and every
|
|
1224
|
+
independent-wait owner check, the single lsof/`/proc/locks` writer PID's
|
|
1225
|
+
`/proc/<pid>/exe` must be the qualified artifact: inode equal to the
|
|
1226
|
+
digest-verified selected executable, or (different path) a complete digest
|
|
1227
|
+
equal to the row's `artifact.sha256`, computed in the owned worker under
|
|
1228
|
+
the original deadline. Mismatch, unreadable `exe`, deleted executable or a
|
|
1229
|
+
gnu/other-version writer → `metadata_owner_changed` / required unsupported
|
|
1230
|
+
before effect; no fallback to the ordinary Darwin owner contract.
|
|
1231
|
+
2. **Retained kernel identity.** Leave `generation` byte-compatible (it is
|
|
1232
|
+
also the ordinary writer evidence). Add one optional private ledger field
|
|
1233
|
+
on observation-qualified intents only, e.g.
|
|
1234
|
+
`observationOwner: { schemaVersion: 1, kind: 'linux_procfs', starttime,
|
|
1235
|
+
bootId, exeDev, exeIno }` (`/proc/<pid>/stat` field 22, `/proc/sys/kernel/
|
|
1236
|
+
random/boot_id`), written in the same durable step as the qualification
|
|
1237
|
+
and never exposed in ordinary/public JSON. Every owner check (send and
|
|
1238
|
+
independent wait) must reproduce it exactly; a record without it, with an
|
|
1239
|
+
unknown `schemaVersion`/`kind`, or written by an older runtime cannot
|
|
1240
|
+
resume Linux observation (`unsupported`, fail-closed); Darwin records are
|
|
1241
|
+
unaffected.
|
|
1242
|
+
|
|
1243
|
+
Activation scope also requires an end-to-end CLI test that fails when the
|
|
1244
|
+
destination wire request omits the `remote` flag (today only hermetic and a
|
|
1245
|
+
since-superseded Linux-host regression cover it), and states that procfs
|
|
1246
|
+
lock/device matching was exercised only on ext4; other filesystems
|
|
1247
|
+
(btrfs/overlay/tmpfs/NFS) remain unverified and must refuse if `/proc/locks`
|
|
1248
|
+
and `stat` device numbers disagree.
|
|
1249
|
+
|
|
1250
|
+
Required negative tests: writer exe inode/digest mismatch (gnu or other
|
|
1251
|
+
version holding the lock while a pinned musl queue binary is selected);
|
|
1252
|
+
deleted/replaced writer executable; same-second PID reuse with identical
|
|
1253
|
+
lsof/ps fields but a different kernel start time or boot ID; a retained
|
|
1254
|
+
record missing or carrying a malformed `observationOwner`; an old-runtime
|
|
1255
|
+
ledger record; reboot between send and wait; SSH destination still refused;
|
|
1256
|
+
Darwin and ordinary ledger JSON byte-for-byte unchanged.
|
|
1257
|
+
|
|
1166
1258
|
## 0.4.0 candidate release scope
|
|
1167
1259
|
|
|
1168
1260
|
On 2026-10-11 the user approved keeping #69/#70/#71/#72 together in 0.4.0,
|
package/README.ja.md
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
<!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.1.0 -->
|
|
17
17
|
|
|
18
|
-
**文書・ソースのバージョン: 0.
|
|
18
|
+
**文書・ソースのバージョン: 0.5.0。** インストール前に、選択したリリースとレジストリのメタデータを確認してください。日付付きの準備・検証記録は [VALIDATION.md](VALIDATION.md)、リリース手順は [RELEASING.md](RELEASING.md) にあります。SSH の両端には同じ TypeScript クライアントのバージョンが必要で、0.3.6 と 0.5.0 は互いの SSH 事前確認を拒否します。
|
|
19
19
|
|
|
20
|
-
**0.4.0 handoff の範囲:** 任意の native 観測は macOS arm64 の厳密な Codex 0.160.1/0.162.1 に限定し、明示的な `operator_confirmed` 受領確認には対応する POSIX ledger を使います。Linux・Windows の native 観測と自動 ACK 収集は未対応です。
|
|
20
|
+
**0.4.0 handoff の範囲:** 任意の native 観測は macOS arm64 の厳密な Codex 0.160.1/0.162.1 に限定し、明示的な `operator_confirmed` 受領確認には対応する POSIX ledger を使います。Linux・Windows の native 観測と自動 ACK 収集は未対応です。 0.5.0 のソースは選択できない Linux arm64 の Codex 0.162.1 候補(固定された上流 `aarch64-unknown-linux-musl` 実行ファイル、スキーマ、注入テスト 1 回)を記録しますが、Linux 観測を有効化しません。Linux の native 観測は引き続き未対応です。
|
|
21
21
|
|
|
22
22
|
**実行中の Claude Code・Codex セッションを見つけ、ローカルまたは SSH でメッセージを送信します。**
|
|
23
23
|
Python 不要の Node.js クライアントです。パッケージ名とコマンド名は `session-peer` です。
|
|
@@ -58,15 +58,15 @@ SSH は既存の鍵・ホスト信頼設定と両端の**同じバージョン
|
|
|
58
58
|
`Get-Command session-peer -All` で PATH を確認してください。利用する実装を選び、
|
|
59
59
|
別の管理ツールのファイルを `--force` で上書きしないでください。
|
|
60
60
|
|
|
61
|
-
**0.
|
|
61
|
+
**0.5.0 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](docs/guide.ja.md#ソースからビルド)を使います。
|
|
62
62
|
|
|
63
63
|
```sh
|
|
64
|
-
npm view session-peer@0.
|
|
65
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
64
|
+
npm view session-peer@0.5.0 version dist.integrity
|
|
65
|
+
npm install --global --ignore-scripts session-peer@0.5.0
|
|
66
66
|
session-peer --version
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
期待する出力: `session-peer 0.
|
|
69
|
+
期待する出力: `session-peer 0.5.0 (typescript)`。分離インストール・ソースビルド・
|
|
70
70
|
Windows・削除の手順は以下の詳細ガイドを参照してください。
|
|
71
71
|
|
|
72
72
|
任意の `sp` 短縮名は 0.3.0 以降に含まれ(0.2.1 以前にはありません)、自動では有効になりません。
|
|
@@ -75,12 +75,12 @@ Windows・削除の手順は以下の詳細ガイドを参照してください
|
|
|
75
75
|
### Update
|
|
76
76
|
|
|
77
77
|
npm で導入したクライアントは npm で更新します。タグと対象バージョンを確認してから
|
|
78
|
-
正確なバージョンを指定してください。以下は古い npm 版を選択した 0.
|
|
78
|
+
正確なバージョンを指定してください。以下は古い npm 版を選択した 0.5.0 に更新する例です。
|
|
79
79
|
CLI は更新をインストールせず、`session-peer update --check` は確認のみ行います。
|
|
80
80
|
|
|
81
81
|
```sh
|
|
82
82
|
npm view session-peer dist-tags
|
|
83
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
83
|
+
npm install --global --ignore-scripts session-peer@0.5.0
|
|
84
84
|
session-peer --version
|
|
85
85
|
```
|
|
86
86
|
|
package/README.ko.md
CHANGED
|
@@ -20,9 +20,9 @@ Python을 설치하지 않아도 Node.js에서 실행되는 TypeScript 클라이
|
|
|
20
20
|
|
|
21
21
|
<!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.1.0 -->
|
|
22
22
|
|
|
23
|
-
**문서·소스 기준 버전: 0.
|
|
23
|
+
**문서·소스 기준 버전: 0.5.0.** 설치 전에 선택한 릴리스와 레지스트리 메타데이터를 확인하세요. 날짜별 준비·검증 기록은 [VALIDATION.md](VALIDATION.md), 릴리스 절차는 [RELEASING.md](RELEASING.md)에 있습니다. SSH 양쪽에는 같은 TypeScript 클라이언트 버전이 필요하며, 0.3.6과 0.5.0은 서로의 SSH 사전 확인을 거부합니다.
|
|
24
24
|
|
|
25
|
-
**0.4.0 handoff 범위:** 선택 기능인 native 관측은 macOS arm64의 정확한 Codex 0.160.1/0.162.1에 한정되며, 명시적 `operator_confirmed` 수령 확인에는 지원되는 POSIX ledger를 사용합니다. Linux·Windows의 native 관측과 자동 ACK 수집은 미지원입니다.
|
|
25
|
+
**0.4.0 handoff 범위:** 선택 기능인 native 관측은 macOS arm64의 정확한 Codex 0.160.1/0.162.1에 한정되며, 명시적 `operator_confirmed` 수령 확인에는 지원되는 POSIX ledger를 사용합니다. Linux·Windows의 native 관측과 자동 ACK 수집은 미지원입니다. 0.5.0 소스는 선택할 수 없는 Linux arm64 Codex 0.162.1 후보(고정된 업스트림 `aarch64-unknown-linux-musl` 실행 파일, 스키마, 주입 테스트 1회)를 기록하며 Linux 관측을 활성화하지 않습니다. Linux native 관측은 계속 미지원입니다.
|
|
26
26
|
|
|
27
27
|
<a id="demo"></a>
|
|
28
28
|
## 시연
|
|
@@ -67,15 +67,15 @@ PowerShell에서는 `Get-Command session-peer -All`로 PATH(명령 검색 경로
|
|
|
67
67
|
실행 파일을 찾는지 확인하세요. 사용할 구현을 선택하고 다른 패키지 관리자가 설치한
|
|
68
68
|
파일을 `--force`로 덮어쓰지 마세요. 설치와 갱신은 사용자가 npm으로 직접 수행합니다.
|
|
69
69
|
|
|
70
|
-
**0.
|
|
70
|
+
**0.5.0 설치:** npm 설치·업데이트 예시를 실행하기 전에 레지스트리 제공 여부와 선택한 릴리스를 확인하세요. 해당 버전이 제공되지 않으면 [검토한 소스 빌드](docs/guide.ko.md#소스에서-빌드)를 사용하세요.
|
|
71
71
|
|
|
72
72
|
```sh
|
|
73
|
-
npm view session-peer@0.
|
|
74
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
73
|
+
npm view session-peer@0.5.0 version dist.integrity
|
|
74
|
+
npm install --global --ignore-scripts session-peer@0.5.0
|
|
75
75
|
session-peer --version
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
예상 결과는 `session-peer 0.
|
|
78
|
+
예상 결과는 `session-peer 0.5.0 (typescript)`입니다. 별도 경로에 설치하거나,
|
|
79
79
|
소스에서 빌드하거나, Windows에서 설치·제거하는 방법은 [사용자 가이드](docs/guide.ko.md#설치)를 참고하세요.
|
|
80
80
|
|
|
81
81
|
선택 사항인 `sp` 단축 명령은 0.3.0 이상에 포함되며(0.2.1 이하에는 없음) 자동으로
|
|
@@ -86,13 +86,13 @@ session-peer --version
|
|
|
86
86
|
### 업데이트
|
|
87
87
|
|
|
88
88
|
npm으로 설치한 클라이언트는 사용자가 직접 npm으로 업데이트합니다. 사용 가능한 배포 태그
|
|
89
|
-
(dist-tag)와 대상 버전을 확인한 뒤 해당 버전을 지정해 설치하세요. 아래 예시는 이전 npm 설치본을 선택한 0.
|
|
89
|
+
(dist-tag)와 대상 버전을 확인한 뒤 해당 버전을 지정해 설치하세요. 아래 예시는 이전 npm 설치본을 선택한 0.5.0으로
|
|
90
90
|
업데이트합니다. `session-peer` CLI는 업데이트를 설치하지 않습니다. `session-peer
|
|
91
91
|
update --check`는 새 버전이 있는지 확인할 뿐입니다.
|
|
92
92
|
|
|
93
93
|
```sh
|
|
94
94
|
npm view session-peer dist-tags
|
|
95
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
95
|
+
npm install --global --ignore-scripts session-peer@0.5.0
|
|
96
96
|
session-peer --version
|
|
97
97
|
```
|
|
98
98
|
|
package/README.md
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
<!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.1.0 -->
|
|
17
17
|
|
|
18
|
-
**Documentation and source version: 0.
|
|
18
|
+
**Documentation and source version: 0.5.0.** Review the selected release and registry metadata before installation. Dated preparation and validation records are in [VALIDATION.md](VALIDATION.md); release procedures are in [RELEASING.md](RELEASING.md). SSH endpoints require the same TypeScript client version; 0.3.6 and 0.5.0 refuse each other’s SSH preflight.
|
|
19
19
|
|
|
20
|
-
**0.4.0 handoff scope:** opt-in native observation is limited to exact Codex 0.160.1/0.162.1 on macOS arm64; explicit `operator_confirmed` receipts use supported POSIX ledgers. Linux/Windows native observation and automatic ACK collection remain unsupported.
|
|
20
|
+
**0.4.0 handoff scope:** opt-in native observation is limited to exact Codex 0.160.1/0.162.1 on macOS arm64; explicit `operator_confirmed` receipts use supported POSIX ledgers. Linux/Windows native observation and automatic ACK collection remain unsupported. The 0.5.0 source records a non-selectable Linux arm64 Codex 0.162.1 candidate (pinned upstream `aarch64-unknown-linux-musl` executable, schema and one injection test); it does not enable Linux observation. Linux native observation remains unsupported.
|
|
21
21
|
|
|
22
22
|
**Find and message running Claude Code and Codex sessions, locally or over SSH.**
|
|
23
23
|
A Node.js client that runs without Python. Package and command: `session-peer`.
|
|
@@ -58,15 +58,15 @@ Check `type -a session-peer` on macOS/Linux or `Get-Command session-peer -All`
|
|
|
58
58
|
in PowerShell before installing. Choose the intended PATH entry; do not use
|
|
59
59
|
`--force` to overwrite another manager’s files.
|
|
60
60
|
|
|
61
|
-
**Version 0.
|
|
61
|
+
**Version 0.5.0 installation:** check registry availability and review the chosen release before running the npm install/update examples. If that version is unavailable, use the [reviewed source build](docs/guide.md#build-from-source).
|
|
62
62
|
|
|
63
63
|
```sh
|
|
64
|
-
npm view session-peer@0.
|
|
65
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
64
|
+
npm view session-peer@0.5.0 version dist.integrity
|
|
65
|
+
npm install --global --ignore-scripts session-peer@0.5.0
|
|
66
66
|
session-peer --version
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Expected: `session-peer 0.
|
|
69
|
+
Expected: `session-peer 0.5.0 (typescript)`. For isolated installation, source
|
|
70
70
|
builds, Windows and removal, see the detailed guide below.
|
|
71
71
|
|
|
72
72
|
Optional `sp` shorthand ships with 0.3.0 and later (not 0.2.1 or earlier) and is
|
|
@@ -76,12 +76,12 @@ never enabled automatically. See [explicit activation and collisions](docs/short
|
|
|
76
76
|
|
|
77
77
|
Use npm for an npm-managed installation. Check the available tags and review
|
|
78
78
|
the target version, then install that exact version; this example updates an
|
|
79
|
-
older npm installation to the selected 0.
|
|
79
|
+
older npm installation to the selected 0.5.0 release. The CLI does not install updates;
|
|
80
80
|
`session-peer update --check` only reports them.
|
|
81
81
|
|
|
82
82
|
```sh
|
|
83
83
|
npm view session-peer dist-tags
|
|
84
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
84
|
+
npm install --global --ignore-scripts session-peer@0.5.0
|
|
85
85
|
session-peer --version
|
|
86
86
|
```
|
|
87
87
|
|
package/README.zh-CN.md
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
<!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.1.0 -->
|
|
17
17
|
|
|
18
|
-
**文档和源码版本:0.
|
|
18
|
+
**文档和源码版本:0.5.0。** 安装前,请审核所选发布版本和注册表元数据。按日期记录的准备与验证结果见 [VALIDATION.md](VALIDATION.md),发布流程见 [RELEASING.md](RELEASING.md)。SSH 两端必须使用相同的 TypeScript 客户端版本;0.3.6 与 0.5.0 会拒绝彼此的 SSH 预检。
|
|
19
19
|
|
|
20
|
-
**0.4.0 handoff 范围:** 可选 native 观测仅限 macOS arm64 上精确 Codex 0.160.1/0.162.1 版本;明确的 `operator_confirmed` 收件确认使用受支持的 POSIX ledger。Linux、Windows 的 native 观测和自动 ACK 收集仍不支持。
|
|
20
|
+
**0.4.0 handoff 范围:** 可选 native 观测仅限 macOS arm64 上精确 Codex 0.160.1/0.162.1 版本;明确的 `operator_confirmed` 收件确认使用受支持的 POSIX ledger。Linux、Windows 的 native 观测和自动 ACK 收集仍不支持。 0.5.0 源码记录了不可选用的 Linux arm64 Codex 0.162.1 候选(固定的上游 `aarch64-unknown-linux-musl` 可执行文件、schema 及一次注入测试),但不启用 Linux 观测;Linux native 观测仍不支持。
|
|
21
21
|
|
|
22
22
|
**发现正在运行的 Claude Code 和 Codex 会话,并在本机或通过 SSH 发送消息。**
|
|
23
23
|
这是不需要 Python 的 Node.js 客户端。包名与命令名均为 `session-peer`。
|
|
@@ -56,15 +56,15 @@ session-peer send --to CLAUDE_PID --message '请检查 API 契约并回复。' -
|
|
|
56
56
|
`Get-Command session-peer -All` 检查 PATH。选择所需实现,不要用 `--force`
|
|
57
57
|
覆盖其他安装管理器的文件。
|
|
58
58
|
|
|
59
|
-
**安装 0.
|
|
59
|
+
**安装 0.5.0:** 运行 npm 安装或更新示例前,请确认注册表可用性并审核所选发布版本。如该版本不可用,请使用[已审核的源码构建](docs/guide.zh-CN.md#从源码构建)。
|
|
60
60
|
|
|
61
61
|
```sh
|
|
62
|
-
npm view session-peer@0.
|
|
63
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
62
|
+
npm view session-peer@0.5.0 version dist.integrity
|
|
63
|
+
npm install --global --ignore-scripts session-peer@0.5.0
|
|
64
64
|
session-peer --version
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
预期输出:`session-peer 0.
|
|
67
|
+
预期输出:`session-peer 0.5.0 (typescript)`。隔离安装、源码构建、Windows 和
|
|
68
68
|
卸载步骤见下方详细指南。
|
|
69
69
|
|
|
70
70
|
可选的 `sp` 简写包含在 0.3.0 及更高版本中(0.2.1 及更早版本没有),不会自动启用。
|
|
@@ -73,11 +73,11 @@ session-peer --version
|
|
|
73
73
|
### Update
|
|
74
74
|
|
|
75
75
|
使用 npm 更新由 npm 管理的安装。先检查标签并审阅目标版本,再安装指定版本。
|
|
76
|
-
下面示例将旧 npm 安装更新至所选的 0.
|
|
76
|
+
下面示例将旧 npm 安装更新至所选的 0.5.0。CLI 不会安装更新,`session-peer update --check` 只做检查。
|
|
77
77
|
|
|
78
78
|
```sh
|
|
79
79
|
npm view session-peer dist-tags
|
|
80
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
80
|
+
npm install --global --ignore-scripts session-peer@0.5.0
|
|
81
81
|
session-peer --version
|
|
82
82
|
```
|
|
83
83
|
|
package/RELEASING.md
CHANGED
|
@@ -9,6 +9,68 @@ the historical 0.3.2 settings-read exception is recorded below. The workflow
|
|
|
9
9
|
uses OIDC and no npm token. The protected GitHub environment requires a reviewer
|
|
10
10
|
and permits deployments from `main` only.
|
|
11
11
|
|
|
12
|
+
## 0.5.0 stable release procedure — 2026-10-20 KST
|
|
13
|
+
|
|
14
|
+
The 0.5.0 source includes platform-qualification groundwork from #153, #156
|
|
15
|
+
and #154. The #155 remote-maintenance harness is deferred for minimum-contract
|
|
16
|
+
redesign under #158 and is excluded from this release. Linux native observation, Windows
|
|
17
|
+
handoff storage/observation, Windows-client jump and automated receipt ACK are
|
|
18
|
+
not enabled. #130/#131/#20/#23 retain their remaining acceptance gates.
|
|
19
|
+
Experiments #82/#142 are excluded. Runtime publication does not publish, install
|
|
20
|
+
or repin the companion skill; the finite doctor row preserves the four exact
|
|
21
|
+
0.4.0 profiles.
|
|
22
|
+
|
|
23
|
+
Read-only preparation baseline: npm latest=0.4.0,
|
|
24
|
+
preview=0.1.0-preview.1. The verified previous stable integrity is
|
|
25
|
+
`sha512-mMNJ118atoflhpFTkf2+DtO7MRf7FQnPK3lKWbq/vd8Xvb5DsjUtAgydIBOcd3Xj9BCYGqM50aFhzUr4dDGHSw==`.
|
|
26
|
+
Previous attestation metadata:
|
|
27
|
+
`https://registry.npmjs.org/-/npm/v1/attestations/session-peer@0.4.0`.
|
|
28
|
+
Recheck registry state and target-version absence before staging.
|
|
29
|
+
|
|
30
|
+
1. Merge reviewed preparation and require exact merged-main release-gate,
|
|
31
|
+
Windows Node 22/24 and CodeQL success, plus current-source review.
|
|
32
|
+
2. Perform fresh authenticated owner/pending-stage/Trusted-Publisher/package-MFA
|
|
33
|
+
and GitHub npm environment checks. Historical settings-read exceptions and
|
|
34
|
+
approvals do not carry forward; unread gates require a current user exception.
|
|
35
|
+
3. Validate reproducible exact-source packing, isolated installation/removal,
|
|
36
|
+
compiled/default metadata acceptance and every packaged Markdown file under
|
|
37
|
+
the documentation gate below. Both SSH endpoints must use exactly 0.5.0.
|
|
38
|
+
4. Obtain separate approval naming the merged 40-character main SHA,
|
|
39
|
+
`session-peer@0.5.0`, `stable-stage` and eventual latest promotion to 0.5.0.
|
|
40
|
+
5. Dispatch only the approved source/version/mode. Review retained Actions bytes
|
|
41
|
+
before protected-environment approval, verify staged bytes/provenance, then
|
|
42
|
+
obtain separate final npm 2FA approval. Never repeat an uncertain upload.
|
|
43
|
+
6. Verify public integrity/signatures/provenance and isolated install/removal,
|
|
44
|
+
preserve preview and record publication source. Create tags/GitHub release
|
|
45
|
+
only with separate authorization. No fleet/global installation is implied.
|
|
46
|
+
|
|
47
|
+
This procedure records the required gates; preparation does not claim current
|
|
48
|
+
settings were audited or approvals completed. The historical 0.4.0 procedure
|
|
49
|
+
below must not be replayed for 0.5.0.
|
|
50
|
+
|
|
51
|
+
## Public release checkpoint — 0.4.0 (2026-10-18 KST)
|
|
52
|
+
|
|
53
|
+
`session-peer@0.4.0` is public with latest=0.4.0 and unchanged
|
|
54
|
+
preview=0.1.0-preview.1. Publication source is
|
|
55
|
+
`dde3923efe116f87f38b1639b29b889d2b832e44`; stage-only workflow
|
|
56
|
+
[39077096491](https://github.com/abruption/session-peer-ts/actions/runs/39077096491)
|
|
57
|
+
completed once after exact-source approval, protected GitHub npm environment
|
|
58
|
+
approval and final user npm approval. Reviewed, merged-source, retained Actions,
|
|
59
|
+
staged and public archives are byte-identical. Public signature/provenance and
|
|
60
|
+
isolated installation/removal checks passed; see the
|
|
61
|
+
[public validation record](VALIDATION.md#public-040--2026-10-18-kst).
|
|
62
|
+
[GitHub v0.4.0](https://github.com/abruption/session-peer-ts/releases/tag/v0.4.0)
|
|
63
|
+
and its annotated tag point to that same immutable source.
|
|
64
|
+
|
|
65
|
+
The Trusted Publisher mapping was freshly checked as stage-only. The user
|
|
66
|
+
explicitly skipped the separate web package publish-2FA policy read for this
|
|
67
|
+
publication; that policy is not freshly audited. Actual environment and final
|
|
68
|
+
npm approvals were completed. This exception applies only to the completed
|
|
69
|
+
0.4.0 release. The procedure below is historical: do not replay its approvals,
|
|
70
|
+
repeat its stage or republish this immutable version. Future releases require
|
|
71
|
+
their own baseline, reviewed source and approvals. Runtime publication does not
|
|
72
|
+
publish or install the separately managed companion skill.
|
|
73
|
+
|
|
12
74
|
## 0.4.0 scoped release preparation — 2026-10-18 KST
|
|
13
75
|
|
|
14
76
|
This candidate includes #106–#109: the frozen design, private sender fencing,
|