session-peer 0.3.5 → 0.4.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/CONTRIBUTING.md +6 -4
- package/PARITY.md +364 -12
- package/README.ja.md +14 -8
- package/README.ko.md +14 -8
- package/README.md +14 -8
- package/README.zh-CN.md +14 -8
- package/RELEASING.md +64 -0
- package/VALIDATION.md +435 -1
- package/dist/app-server.d.ts +190 -0
- package/dist/app-server.js +909 -0
- package/dist/cli.js +218 -38
- package/dist/handoff-ledger.d.ts +103 -0
- package/dist/handoff-ledger.js +787 -0
- package/dist/handoff-observer-probe.d.ts +1 -0
- package/dist/handoff-observer-probe.js +170 -0
- package/dist/handoff-operations.d.ts +25 -0
- package/dist/handoff-operations.js +471 -0
- package/dist/handoff-writer-probe.d.ts +1 -0
- package/dist/handoff-writer-probe.js +123 -0
- package/dist/handoff.d.ts +112 -0
- package/dist/handoff.js +261 -0
- package/dist/help.js +18 -0
- package/dist/metadata-observation.d.ts +48 -0
- package/dist/metadata-observation.js +239 -0
- package/dist/output.js +7 -1
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +1 -1
- package/dist/send.d.ts +18 -1
- package/dist/send.js +91 -6
- package/dist/skill-metadata.js +7 -6
- package/dist/ssh-response.d.ts +11 -0
- package/dist/ssh-response.js +78 -2
- package/docs/api.md +245 -4
- package/docs/design/typescript-skill-compatibility.md +27 -3
- package/docs/guide.ja.md +41 -21
- package/docs/guide.ko.md +44 -24
- package/docs/guide.md +51 -25
- package/docs/guide.zh-CN.md +41 -21
- package/docs/shorthand.md +1 -1
- package/package.json +2 -2
package/docs/guide.ko.md
CHANGED
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
[English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
|
|
6
6
|
|
|
7
|
-
**문서·소스 기준 버전: 0.
|
|
7
|
+
**문서·소스 기준 버전: 0.4.0.** 설치 전에 선택한 릴리스와 레지스트리 메타데이터를 확인하세요. 날짜별 준비·검증 기록은 [VALIDATION.md](../VALIDATION.md), 릴리스 절차는 [RELEASING.md](../RELEASING.md)에 있습니다. SSH 양쪽에는 같은 TypeScript 클라이언트 버전이 필요하며, 0.3.6과 0.4.0은 서로의 SSH 사전 확인을 거부합니다.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**0.4.0 handoff 범위:** 선택 기능인 native 관측은 macOS arm64의 정확한 Codex 0.160.1/0.162.1에 한정되며, 명시적 `operator_confirmed` 수령 확인에는 지원되는 POSIX ledger를 사용합니다. Linux·Windows의 native 관측과 자동 ACK 수집은 미지원입니다.
|
|
10
|
+
|
|
11
|
+
이 가이드는 0.4.0을 다룹니다([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
12
|
|
|
11
13
|
<a id="마이그레이션-경계-033-후보"></a>
|
|
12
14
|
|
|
13
|
-
## 마이그레이션 경계 (0.
|
|
15
|
+
## 마이그레이션 경계 (0.4.0)
|
|
14
16
|
|
|
15
17
|
[0.3.2 공개 기록](../VALIDATION.md#public-032--2026-10-07-kst)은 릴리스 소스와 산출물을 고정합니다. SSH 사전 확인은 정확히 같은 TS 버전 표시를 검사하며 커밋 해시는 검사하지 않습니다. 소스 빌드의 검토 커밋 일치는 운영자가 별도로 확인해야 합니다.
|
|
16
18
|
|
|
@@ -19,11 +21,13 @@
|
|
|
19
21
|
- 반복 `--host`는 요청 순서대로 배열을 반환합니다. 호스트별 실행 단계의 실패는 종료코드 1로 집계하지만, 실행 전 명령 전체 거부(호스트 중복이나 빈 메시지 등)는 배열 출력에서도 종료코드 2를 유지합니다. 공개 0.3.2는 SSH 종료 255나 시간 초과 후 완전한 응답의 근거도 잃을 수 있습니다. 0.3.3은 요청에 맞는 완전한 사실을 보존하며 로컬 종료코드 1과 `sshTransport`를 반환합니다. 불완전하거나 잘못된 근거는 unknown으로 남습니다. unknown이면 자동 재전송하지 않습니다.
|
|
20
22
|
- 0.2.0에 도입된 기본 doctor는 Codex를 실행하거나 inbox에 제출하지 않습니다. 0.3.0부터 명시적 `--check-return-route`는 사용할 수 있는 비로컬 대상에 한해 제한된 역방향 SSH 무동작 명령을 실행합니다. 자기 경로는 SSH 없이 `verified`, `transport:local`, `self_route_normalized`를 반환하며, 호스트가 없으면 접속 확인 전에 실패합니다. `--check-reply-to`는 지원하지 않습니다. verified는 로컬 경로 정규화 또는 한 번의 SSH 무동작 명령 성공을 의미하며, ACK 인증이나 일반적인 역방향 접근 보장이 아닙니다.
|
|
21
23
|
- 같은 기기의 Reply-To를 로컬로 바꾸려면 명시된 OS 사용자가 일치하고 정확한 로컬 이름으로 확인되며 명시적 SSH 옵션이 없어야 합니다. 발신자 근거가 충돌하면 신원을 생략하고, Claude 이름을 사용할 수 없으면 PID를 사용합니다.
|
|
22
|
-
- npm, Python, 원격 호스트, 스킬은 각각 별도로 관리합니다. TS는 자체·원격 업데이트를 제공하지 않습니다. 알림은 기본 꺼짐이며 비활성화 설정이 우선합니다. 명시적 `update --check`는 레지스트리를 조회합니다. 공개 TS 0.3.
|
|
24
|
+
- npm, Python, 원격 호스트, 스킬은 각각 별도로 관리합니다. TS는 자체·원격 업데이트를 제공하지 않습니다. 알림은 기본 꺼짐이며 비활성화 설정이 우선합니다. 명시적 `update --check`는 레지스트리를 조회합니다. 공개 TS 0.3.5는 공개 스킬 `0.2.1`과 기존 `0.1.0`·`0.2.0`의 정확한 프로필을 허용하며, 공개 TS 0.3.2·0.3.3·0.3.4는 `0.2.1`을 거부합니다. 설치 절에는 별도로 공개된 스킬 소스를 고정했습니다.
|
|
23
25
|
- 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
26
|
|
|
25
|
-
[마이그레이션 상세](../PARITY.md#ordinary-cli-migration-notes--117)와 [Windows 검증 기록](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)을 참고하세요. Python 1.0.2
|
|
27
|
+
[마이그레이션 상세](../PARITY.md#ordinary-cli-migration-notes--117)와 [Windows 검증 기록](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)을 참고하세요. 위 날짜별 마이그레이션 비교는 당시 공개 버전을 기준으로 합니다. 0.4.0 소스의 개발 비교 기준은 Python 1.1.0이며, 공개 npm 0.3.3의 기존 1.0.2 표시는 바뀌지 않습니다. Python 1.1.0에는 실험적인 로컬 Claude 수신 확인 전용 ACK 경로가 있습니다. 이것이 TS 구현의 자동 ACK·원래 발신자의 SSH 수신 확인 수집기·Windows handoff 지원을 뜻하지는 않습니다. 어느 기준도 종단 간 소비를 보장하지 않으며 Side Session은 실험 범위입니다. Relay/MCP는 이 비교에서 제외합니다.
|
|
28
|
+
|
|
26
29
|
|
|
30
|
+
[0.4.0 handoff 설계와 구현 범위](../PARITY.md#handoff-v1-design-candidate--69)
|
|
27
31
|
|
|
28
32
|
## 목차
|
|
29
33
|
|
|
@@ -92,7 +96,7 @@ JSON에는 정제된 `codexHomeResolution`이 포함되며, 네이티브 응답
|
|
|
92
96
|
`queueId`도 포함됩니다. 둘 다 메시지를 읽거나 처리했음을 확인하지 않습니다.
|
|
93
97
|
[홈 선택 계약](../PARITY.md#source-codex-home-selection--17--020)을 참고하세요.
|
|
94
98
|
공개 **0.1.0**은 여전히 실행 중인 홈을 명시해야 하며 비활성 세션 허용 옵션이 없습니다.
|
|
95
|
-
SSH를 사용할 때는 발신·수신 양쪽에 같은 TypeScript 클라이언트 버전(0.
|
|
99
|
+
SSH를 사용할 때는 발신·수신 양쪽에 같은 TypeScript 클라이언트 버전(0.4.0)을 설치해야
|
|
96
100
|
합니다.
|
|
97
101
|
|
|
98
102
|
<a id="020-cli-사용성"></a>
|
|
@@ -132,20 +136,20 @@ Claude Code에는 받은 메시지함에 접근할 수 있는 실행 중 TUI(터
|
|
|
132
136
|
|
|
133
137
|
Node 22.x의 22.13 이상 또는 24.x를 사용하세요. Python CLI도 같은 `session-peer`
|
|
134
138
|
명령 이름을 쓰므로, 설치 전에 PATH(명령 검색 경로)에서 어떤 실행 파일을 찾는지
|
|
135
|
-
확인하세요. 아래 명령은 선택한 0.
|
|
139
|
+
확인하세요. 아래 명령은 선택한 0.4.0을 npm으로 설치하는 예입니다.
|
|
136
140
|
CLI 자체는 패키지를 설치하거나 업데이트하지 않습니다.
|
|
137
141
|
|
|
138
|
-
**0.
|
|
142
|
+
**0.4.0 설치:** npm 설치·업데이트 예시를 실행하기 전에 레지스트리 제공 여부와 선택한 릴리스를 확인하세요. 해당 버전이 제공되지 않으면 [검토한 소스 빌드](#소스에서-빌드)를 사용하세요.
|
|
139
143
|
|
|
140
144
|
```sh
|
|
141
|
-
npm view session-peer@0.
|
|
142
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
143
|
-
session-peer --version # session-peer 0.
|
|
145
|
+
npm view session-peer@0.4.0 version dist.integrity
|
|
146
|
+
npm install --global --ignore-scripts session-peer@0.4.0
|
|
147
|
+
session-peer --version # session-peer 0.4.0 (typescript)
|
|
144
148
|
session-peer list --agent claude --json
|
|
145
149
|
session-peer send --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
|
|
146
150
|
```
|
|
147
151
|
|
|
148
|
-
예상 결과는 `session-peer 0.
|
|
152
|
+
예상 결과는 `session-peer 0.4.0 (typescript)`입니다.
|
|
149
153
|
|
|
150
154
|
1. 세션을 조회하고 `CLAUDE_PID`를 대상으로 선택한 정확한 PID로 바꾸세요.
|
|
151
155
|
2. `--dry-run`으로 검증합니다. 이 단계에서는 메시지를 제출하지 않습니다.
|
|
@@ -173,11 +177,11 @@ npm run build
|
|
|
173
177
|
node dist/cli.js --version
|
|
174
178
|
npm pack --ignore-scripts
|
|
175
179
|
# Optional global install: first check which session-peer your PATH selects.
|
|
176
|
-
npm install --global --ignore-scripts ./session-peer-0.
|
|
180
|
+
npm install --global --ignore-scripts ./session-peer-0.4.0.tgz
|
|
177
181
|
session-peer --version
|
|
178
182
|
```
|
|
179
183
|
|
|
180
|
-
0.
|
|
184
|
+
0.4.0에서 예상되는 결과는 `session-peer 0.4.0 (typescript)`입니다. 로컬 빌드
|
|
181
185
|
산출물을 선택하려면 `./...tgz` 경로를 그대로 두세요. 이후 버전에 이 명령을 사용할
|
|
182
186
|
때는 먼저 체크아웃한 소스의 버전을 확인하세요.
|
|
183
187
|
|
|
@@ -198,7 +202,7 @@ Python CLI를 덮어쓰지 않으려면 격리 prefix에 설치·제거할 수
|
|
|
198
202
|
npm ci --ignore-scripts
|
|
199
203
|
npm run build
|
|
200
204
|
npm pack --ignore-scripts
|
|
201
|
-
npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.
|
|
205
|
+
npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.4.0.tgz
|
|
202
206
|
& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version
|
|
203
207
|
# Later: npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer
|
|
204
208
|
```
|
|
@@ -419,8 +423,9 @@ npm run test:package
|
|
|
419
423
|
npm audit
|
|
420
424
|
```
|
|
421
425
|
|
|
422
|
-
Python은 개발 시
|
|
423
|
-
`
|
|
426
|
+
Python은 개발 시 동작을 대조하는 기준 구현입니다(v1.1.0 커밋
|
|
427
|
+
`8ca77cf31254c8287a2593fe484bb30a7dba2727`). 런타임 의존성이 아닙니다.
|
|
428
|
+
검증 범위는 일반 목록·탐색 결과이며, 전체 전송·handoff 상호운용성을 입증하지 않습니다. POSIX 계약 테스트에는
|
|
424
429
|
C 컴파일러와 lsof도 필요합니다. CI(지속적 통합)는 세 OS에서 Node 22/24를 사용합니다.
|
|
425
430
|
macOS/Linux는 고정된 참조 기준으로 전체 계약·패키지 검사를 실행하고, Windows는
|
|
426
431
|
x64에서 빌드·타입 검사, 네이티브 Claude 받은 메시지함·잠금 점유/해제, writer 소유권·재검증
|
|
@@ -441,7 +446,7 @@ Windows x64/Node 24에서 실제 TUI로 확인한 ACK는 별도의 일회성 증
|
|
|
441
446
|
<a id="package-release"></a>
|
|
442
447
|
## npm 릴리스
|
|
443
448
|
|
|
444
|
-
아래 레지스트리 조회로 0.
|
|
449
|
+
아래 레지스트리 조회로 0.4.0의 현재 제공 여부와 npm 태그를 확인하세요. 날짜가 기록된 준비 근거는 이후 발행 결과를 입증하지 않습니다.
|
|
445
450
|
|
|
446
451
|
0.3.2는 2026-10-07 KST에, 0.3.1은 2026-10-04 KST에 공개·검증했습니다.
|
|
447
452
|
[0.3.2 공개 기록](../VALIDATION.md#public-032--2026-10-07-kst)과
|
|
@@ -452,7 +457,7 @@ Windows x64/Node 24에서 실제 TUI로 확인한 ACK는 별도의 일회성 증
|
|
|
452
457
|
설치 전에는 정확한 버전과 현재 npm 태그를 확인하세요.
|
|
453
458
|
|
|
454
459
|
```sh
|
|
455
|
-
npm view session-peer@0.
|
|
460
|
+
npm view session-peer@0.4.0 version dist.integrity
|
|
456
461
|
npm view session-peer dist-tags
|
|
457
462
|
```
|
|
458
463
|
|
|
@@ -507,7 +512,7 @@ session-peer update --check --channel preview --output-format text
|
|
|
507
512
|
`updateCommand`는 실행 중인 CLI 경로로 설치 주체를 확인할 수 있을 때 사용자에게 안내합니다.
|
|
508
513
|
해당하는 경우는
|
|
509
514
|
자체 `session-peer` 실행기가 이 패키지를 가리키는 npm 전역 prefix(기본, Homebrew, nvm,
|
|
510
|
-
nvm-windows, fnm. 예: `npm install --global --ignore-scripts session-peer@0.
|
|
515
|
+
nvm-windows, fnm. 예: `npm install --global --ignore-scripts session-peer@0.4.0`),
|
|
511
516
|
매니페스트에 `session-peer`가 선언된 pnpm·Yarn·Bun 전역 저장소, Volta, npx 캐시입니다.
|
|
512
517
|
프로젝트 설치(`npm_project`, `pnpm_project`), 소스 체크아웃(`source`), 그 밖의
|
|
513
518
|
경우(`unknown`)에는 `updateCommand: null`과 `guidance` 문장만 돌려주므로, 관련 없는 현재
|
|
@@ -562,18 +567,18 @@ HTTP, 자격 증명 불가). npm 설정과 `.npmrc`는 읽지 않습니다.
|
|
|
562
567
|
<a id="agent-skill-explicit-installation"></a>
|
|
563
568
|
## 에이전트 스킬: 명시적 설치
|
|
564
569
|
|
|
565
|
-
별도 `session-peer-ts` 스킬은 [스킬 0.2.
|
|
570
|
+
별도 `session-peer-ts` 스킬은 [스킬 0.2.1](https://github.com/abruption/session-peer-skill/releases/tag/session-peer-ts-v0.2.1)로 공개되었습니다. 스킬 버전은 npm 런타임과 독립적이며, 어느 한쪽을 설치해도 다른 쪽은 설치되지 않습니다. Python의 `session-peer` 스킬도 별도로 유지합니다.
|
|
566
571
|
|
|
567
|
-
[고정된 스킬 소스](https://github.com/abruption/session-peer-skill/tree/
|
|
572
|
+
[고정된 스킬 소스](https://github.com/abruption/session-peer-skill/tree/0f494cabd05901c03161dc91792dcf89f8e96631/session-peer-ts)를 검토한 뒤 에이전트와 설치 범위를 선택하세요.
|
|
568
573
|
아래 예시는 **Codex, 현재 프로젝트**를 선택합니다. 해당 프로젝트 디렉터리에서 실행하세요.
|
|
569
574
|
Claude Code는 `--agent claude-code`를 사용합니다. 사용자 범위는 add/list/remove 모두에
|
|
570
575
|
`--global`을 동일하게 추가하세요. 기존 `session-peer-ts` 사본을 교체하기 전에 로컬 수정 사항을
|
|
571
576
|
확인하세요. Codex의 `.agents/skills` 디렉터리는 이 경로를 탐색하는 다른 클라이언트와 공유됩니다.
|
|
572
577
|
|
|
573
|
-
공개 TS 0.3.
|
|
578
|
+
공개 TS 0.3.5는 스킬 0.2.1의 정확한 프로필(`typescript`, 최소 `0.1.0`, 문서화된 기능 기준 `0.3.2`, `probe-help`)과 기존 0.1.0·0.2.0 프로필을 허용합니다. 공개 TS 0.3.2·0.3.3·0.3.4는 0.2.1 프로필을 거부하므로 이 스킬을 사용하기 전에 기존 설치 관리자로 런타임을 업데이트하세요. `verification:metadata_only`를 포함한 `compatible`은 제한된 메타데이터 검사 결과이며, 내용 인증·전송 허가·전달 또는 ACK의 근거가 아닙니다. 최소 버전은 기본 CLI 호환 하한이고, 전체 기능 기준은 문서가 다루는 공개 기능의 참조 버전입니다. 두 값 모두 doctor의 허용 기준은 아니며, 허용 여부는 검토된 유한 판정표를 따릅니다. 선택 기능은 실제 실행 파일의 version/help와 플랫폼·네이티브 도구 조건을 따로 확인해야 합니다. 런타임과 스킬은 각 관리자로 별도 업데이트하며 postinstall은 추가하지 않습니다. [유한 판정표와 읽기 제한](design/typescript-skill-compatibility.md)을 참고하세요.
|
|
574
579
|
|
|
575
580
|
```sh
|
|
576
|
-
npx -y skills@1.7.0 add https://github.com/abruption/session-peer-skill/tree/
|
|
581
|
+
npx -y skills@1.7.0 add https://github.com/abruption/session-peer-skill/tree/0f494cabd05901c03161dc91792dcf89f8e96631/session-peer-ts --skill session-peer-ts --agent codex --copy --yes
|
|
577
582
|
npx -y skills@1.7.0 list --agent codex --json
|
|
578
583
|
npx -y skills@1.7.0 remove session-peer-ts --agent codex --yes
|
|
579
584
|
```
|
|
@@ -589,3 +594,18 @@ npm `--ignore-scripts`로 설치해도 되며, 설치 후 Skills CLI를 호출
|
|
|
589
594
|
|
|
590
595
|
선택적 `sp` 단축 이름은 0.3.0 이상에 포함되며(0.2.1 이하에는 없음) 자동으로 켜지지 않습니다.
|
|
591
596
|
[명시적 활성화와 이름 충돌 안내(영문)](shorthand.md)를 참고하세요.
|
|
597
|
+
|
|
598
|
+
<a id="unreleased-handoff"></a>
|
|
599
|
+
|
|
600
|
+
## 비공개 handoff와 전송 관측 (0.4.0)
|
|
601
|
+
|
|
602
|
+
0.4.0에는 opt-in private POSIX handoff ledger가 포함됩니다. 필수 증거 채널이 unsupported이면 제출 전에 거절하며, best-effort 제출은 ACK를 증명하지 않습니다. 자동 수신 확인 연결 설정, Windows ledger 및 원래 발신자의 SSH 수신 확인 수집기는 미지원입니다. POSIX SSH opt-in은 명시적으로 초기화한 목적지 ledger에서 전송 없는 준비 단계로 대상·home·generation을 고정한 뒤 한 번만 전송합니다. [목적지 SSH 설명](api.md#unreleased-destination-side-ssh-handoff)을 참고하세요. 가짜 SSH fixture는 실제 네트워크 검증과 구분합니다.
|
|
603
|
+
|
|
604
|
+
[CLI](api.md#unreleased-opt-in-handoff-cli--040-work)
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
native 전송 관찰은 macOS arm64의 정확한 Codex 0.160.1/0.162.1과 이미 생성된 메타데이터 저장소에 한정됩니다. 검증 근거가 보존된 전송은 별도 `handoff wait`로 native 상태를 읽기 전용으로 관찰할 수 있습니다. 이 작업은 비공개 ledger에 대기·종료 기록을 저장하며, native 전송을 반복하지 않습니다. 각 대기는 자신의 마감 시각으로만 판단하고 다른 대기와 기존 종료 결과를 보존합니다. 새로 만든 Codex 0.162.1·Claude Code 2.1.296 테스트 세션의 실기 근거와 합성 테스트는 구분합니다. queued/posted, 실제 주입, 턴 종료, 일반 응답은 수령 확인 ACK와 다릅니다. 자동 ACK와 Windows handoff는 미지원입니다.
|
|
608
|
+
|
|
609
|
+
[Observation](api.md#unreleased-local-delivery-observation--72)
|
|
610
|
+
|
|
611
|
+
Linux·Windows의 native 주입 관측은 미지원입니다. 지원되는 POSIX ledger에서는 운영자가 명시적으로 확인한 수령 사실을 `operator_confirmed`로 기록할 수 있지만, 자동 ACK 수집은 아닙니다. 0.4.0 범위는 검증된 macOS 관측과 명시적 운영자 확인입니다. Linux·Windows 관측과 receipt bootstrap은 각각 [#130](https://github.com/abruption/session-peer-ts/issues/130), [#131](https://github.com/abruption/session-peer-ts/issues/131), [#132](https://github.com/abruption/session-peer-ts/issues/132)에서 후속 작업으로 관리합니다.
|
package/docs/guide.md
CHANGED
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
[English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
|
|
6
6
|
|
|
7
|
-
**Documentation and source version: 0.
|
|
7
|
+
**Documentation and source version: 0.4.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.4.0 refuse each other’s SSH preflight.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**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.
|
|
10
|
+
|
|
11
|
+
This guide covers version 0.4.0 ([0.3.1 reliability fixes](../PARITY.md#031-reliability-fixes)). Version 0.3.0 introduced multi-host SSH, sender context and return routes, update checks and the optional `sp` shorthand ([0.3.0 changes](../PARITY.md#030-remote-usability-and-maintenance)). [Public 0.3.1 release evidence](../VALIDATION.md#public-031--2026-10-04-kst) records a prior publication. References to 0.1.0 below describe the older release.
|
|
10
12
|
|
|
11
13
|
<a id="migration-boundaries-033-candidate"></a>
|
|
12
14
|
|
|
13
|
-
## Migration boundaries (0.
|
|
15
|
+
## Migration boundaries (0.4.0)
|
|
14
16
|
|
|
15
17
|
The [public 0.3.2 record](../VALIDATION.md#public-032--2026-10-07-kst) fixes the
|
|
16
18
|
release source and artifact. SSH preflight checks the exact TS version banner,
|
|
@@ -40,7 +42,7 @@ not a commit hash; operators must align reviewed source commits separately.
|
|
|
40
42
|
omits identity; an unusable Claude name falls back to PID.
|
|
41
43
|
- npm, Python, remote hosts and skills have separate owners. TS has no self- or
|
|
42
44
|
remote updater; notices default off and opt-out wins. Explicit `update --check`
|
|
43
|
-
still queries the registry. Public TS 0.3.
|
|
45
|
+
still queries the registry. Public TS 0.3.5 accepts the exact published skill `0.2.1` profile alongside `0.1.0` and `0.2.0`; public TS 0.3.2, 0.3.3 and 0.3.4 reject `0.2.1`. The installation section pins the independently published skill source.
|
|
44
46
|
- Windows qualification used published 0.3.1 on Windows 10 x64, an administrator
|
|
45
47
|
account, PowerShell 5.1 and Node 24.16.0: offline provisioning, wrapper/native
|
|
46
48
|
locking, operator doctor/nonexistent-target dry-run and 31 local fixtures.
|
|
@@ -50,10 +52,16 @@ not a commit hash; operators must align reviewed source commits separately.
|
|
|
50
52
|
|
|
51
53
|
See [migration details](../PARITY.md#ordinary-cli-migration-notes--117) and
|
|
52
54
|
[Windows qualification](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst).
|
|
53
|
-
The
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
The dated migration comparison above uses the historical public versions.
|
|
56
|
+
The 0.4.0 source uses Python 1.1.0 as its development
|
|
57
|
+
comparison baseline; public npm 0.3.3 retains its historical 1.0.2 marker.
|
|
58
|
+
Python 1.1.0 includes an experimental local Claude receipt-only ACK path.
|
|
59
|
+
That does not establish automated ACK or original-sender SSH collectors in this TS
|
|
60
|
+
implementation. Neither baseline provides an end-to-end consumption guarantee;
|
|
61
|
+
Side Session remains experimental. Relay/MCP are outside this comparison.
|
|
62
|
+
|
|
56
63
|
|
|
64
|
+
[0.4.0 handoff design and implementation scope](../PARITY.md#handoff-v1-design-candidate--69)
|
|
57
65
|
|
|
58
66
|
## Contents
|
|
59
67
|
|
|
@@ -73,7 +81,7 @@ Relay/MCP are outside this migration comparison.
|
|
|
73
81
|
**Find and message running Claude Code and Codex sessions, locally or over SSH.**
|
|
74
82
|
This TypeScript client runs on Node.js without Python.
|
|
75
83
|
|
|
76
|
-
This guide describes **version 0.
|
|
84
|
+
This guide describes **version 0.4.0**. The npm package and CLI command are both **`session-peer`**. This
|
|
77
85
|
project does not provide a Relay server or hosted service.
|
|
78
86
|
|
|
79
87
|
## Quick start
|
|
@@ -81,12 +89,12 @@ project does not provide a Relay server or hosted service.
|
|
|
81
89
|
Use Node **22.13+ within 22.x or 24.x**. Check which `session-peer` your PATH
|
|
82
90
|
selects if the Python CLI is already installed; both packages use that command.
|
|
83
91
|
|
|
84
|
-
**Version 0.
|
|
92
|
+
**Version 0.4.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](#build-from-source).
|
|
85
93
|
|
|
86
94
|
```sh
|
|
87
|
-
npm view session-peer@0.
|
|
88
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
89
|
-
session-peer --version # session-peer 0.
|
|
95
|
+
npm view session-peer@0.4.0 version dist.integrity
|
|
96
|
+
npm install --global --ignore-scripts session-peer@0.4.0
|
|
97
|
+
session-peer --version # session-peer 0.4.0 (typescript)
|
|
90
98
|
session-peer list --agent claude --json
|
|
91
99
|
session-peer send --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
|
|
92
100
|
```
|
|
@@ -153,7 +161,7 @@ submits nothing. JSON adds sanitized `codexHomeResolution` and, when supplied by
|
|
|
153
161
|
native queue output, `queueId`; neither confirms consumption. See the
|
|
154
162
|
[selection contract](../PARITY.md#source-codex-home-selection--17--020).
|
|
155
163
|
Published **0.1.0** still requires an explicit live home and has no inactive opt-in.
|
|
156
|
-
On SSH, both ends need the same TypeScript client version (0.
|
|
164
|
+
On SSH, both ends need the same TypeScript client version (0.4.0).
|
|
157
165
|
|
|
158
166
|
## Requirements
|
|
159
167
|
|
|
@@ -177,11 +185,11 @@ npm run build
|
|
|
177
185
|
node dist/cli.js --version
|
|
178
186
|
npm pack --ignore-scripts
|
|
179
187
|
# Optional global install: first check which session-peer your PATH selects.
|
|
180
|
-
npm install --global --ignore-scripts ./session-peer-0.
|
|
188
|
+
npm install --global --ignore-scripts ./session-peer-0.4.0.tgz
|
|
181
189
|
session-peer --version
|
|
182
190
|
```
|
|
183
191
|
|
|
184
|
-
Expected for version 0.
|
|
192
|
+
Expected for version 0.4.0: `session-peer 0.4.0 (typescript)`. Keep the `./...tgz` path to
|
|
185
193
|
select the locally built artifact. Check the checkout version before using
|
|
186
194
|
these commands for a later release.
|
|
187
195
|
|
|
@@ -201,7 +209,7 @@ On Windows PowerShell, inspect competing commands with
|
|
|
201
209
|
npm ci --ignore-scripts
|
|
202
210
|
npm run build
|
|
203
211
|
npm pack --ignore-scripts
|
|
204
|
-
npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.
|
|
212
|
+
npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.4.0.tgz
|
|
205
213
|
& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version
|
|
206
214
|
# Later: npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer
|
|
207
215
|
```
|
|
@@ -441,8 +449,10 @@ npm run test:package
|
|
|
441
449
|
npm audit
|
|
442
450
|
```
|
|
443
451
|
|
|
444
|
-
Python is only the development
|
|
445
|
-
`
|
|
452
|
+
Python is only the development comparison oracle (v1.1.0 commit
|
|
453
|
+
`8ca77cf31254c8287a2593fe484bb30a7dba2727`), never a runtime dependency.
|
|
454
|
+
The tested projection covers ordinary list/discovery; it does not establish full
|
|
455
|
+
send/handoff interoperability. Tests also
|
|
446
456
|
need a C compiler and lsof for the POSIX contract suite. CI uses Node 22/24 on
|
|
447
457
|
macOS, Linux and Windows. macOS/Linux run the full contract suite and package
|
|
448
458
|
checks against the pinned reference. Windows x64 runs build/type checks, native
|
|
@@ -464,7 +474,7 @@ separate approval. Licensed under [MIT](../LICENSE).
|
|
|
464
474
|
|
|
465
475
|
## Package release
|
|
466
476
|
|
|
467
|
-
Public **0.3.2** was verified on 2026-10-07 KST ([immutable checkpoint](../VALIDATION.md#public-032--2026-10-07-kst)). Check current 0.
|
|
477
|
+
Public **0.3.2** was verified on 2026-10-07 KST ([immutable checkpoint](../VALIDATION.md#public-032--2026-10-07-kst)). Check current 0.4.0 availability and npm tags with the registry queries below; dated preparation evidence does not establish a later publication outcome.
|
|
468
478
|
|
|
469
479
|
Version 0.2.1 was published and verified on 2026-09-29 KST and 0.2.0 on
|
|
470
480
|
2026-09-28 KST; see the [0.2.1 public release record](../VALIDATION.md#public-021--2026-09-29-kst).
|
|
@@ -472,7 +482,7 @@ Later releases add their own dated records. Check the exact version and current
|
|
|
472
482
|
tags before installing:
|
|
473
483
|
|
|
474
484
|
```sh
|
|
475
|
-
npm view session-peer@0.
|
|
485
|
+
npm view session-peer@0.4.0 version dist.integrity
|
|
476
486
|
npm view session-peer dist-tags
|
|
477
487
|
```
|
|
478
488
|
|
|
@@ -524,7 +534,7 @@ and reports `current`, `latest`, `channel` (`latest` by default, or `preview`),
|
|
|
524
534
|
installation's owner is positively identified from the running CLI's path:
|
|
525
535
|
an npm global prefix whose own `session-peer` launcher points at this package
|
|
526
536
|
(default, Homebrew, nvm, nvm-windows and fnm prefixes), for example
|
|
527
|
-
`npm install --global --ignore-scripts session-peer@0.
|
|
537
|
+
`npm install --global --ignore-scripts session-peer@0.4.0`; a pnpm, Yarn or Bun
|
|
528
538
|
global store whose manifest declares `session-peer`; Volta; or the npx cache.
|
|
529
539
|
Project installs (`npm_project`, `pnpm_project`), source checkouts (`source`)
|
|
530
540
|
and anything else (`unknown`) get `updateCommand: null` and a `guidance`
|
|
@@ -583,19 +593,19 @@ holds only public version data. `SESSION_PEER_UPDATE_REGISTRY` selects a mirror
|
|
|
583
593
|
|
|
584
594
|
## Agent skill: explicit installation
|
|
585
595
|
|
|
586
|
-
The separate `session-peer-ts` companion skill is published as [skill 0.2.
|
|
596
|
+
The separate `session-peer-ts` companion skill is published as [skill 0.2.1](https://github.com/abruption/session-peer-skill/releases/tag/session-peer-ts-v0.2.1). Its version is independent of npm; installing either does not install the other. The Python `session-peer` skill remains separate.
|
|
587
597
|
|
|
588
|
-
Review the [exact skill source](https://github.com/abruption/session-peer-skill/tree/
|
|
598
|
+
Review the [exact skill source](https://github.com/abruption/session-peer-skill/tree/0f494cabd05901c03161dc91792dcf89f8e96631/session-peer-ts),
|
|
589
599
|
then choose the agent and scope. This example selects **Codex, current project**;
|
|
590
600
|
run from that project directory. For Claude Code use `--agent claude-code`.
|
|
591
601
|
For user scope add `--global` consistently to add/list/remove. Inspect any existing
|
|
592
602
|
`session-peer-ts` copy for local edits before approving its replacement. Codex's
|
|
593
603
|
`.agents/skills` directory is shared with other clients that discover that path.
|
|
594
604
|
|
|
595
|
-
Public TS 0.3.
|
|
605
|
+
Public TS 0.3.5 accepts the exact published skill 0.2.1 profile (`typescript`, minimum `0.1.0`, full `0.3.2`, `probe-help`) alongside legacy 0.1.0 and 0.2.0. Public TS 0.3.2, 0.3.3 and 0.3.4 reject the 0.2.1 profile; upgrade the runtime through its owner before adopting this skill. `compatible` with `verification:metadata_only` is a bounded metadata check, not content authentication, permission to send, or delivery/ACK evidence. Minimum is the baseline CLI compatibility floor; full is the documented published feature coverage reference. Neither value defines doctor acceptance; acceptance follows the reviewed finite matrix. Optional operations still require the resolved executable’s version/help and platform/native prerequisites. Runtime and skill upgrades remain separate and manager-owned; no postinstall is introduced. See the [finite matrix and reader boundaries](design/typescript-skill-compatibility.md).
|
|
596
606
|
|
|
597
607
|
```sh
|
|
598
|
-
npx -y skills@1.7.0 add https://github.com/abruption/session-peer-skill/tree/
|
|
608
|
+
npx -y skills@1.7.0 add https://github.com/abruption/session-peer-skill/tree/0f494cabd05901c03161dc91792dcf89f8e96631/session-peer-ts --skill session-peer-ts --agent codex --copy --yes
|
|
599
609
|
npx -y skills@1.7.0 list --agent codex --json
|
|
600
610
|
npx -y skills@1.7.0 remove session-peer-ts --agent codex --yes
|
|
601
611
|
```
|
|
@@ -610,3 +620,19 @@ install a runtime. See [compatibility and validation](../PARITY.md#source-ts-ski
|
|
|
610
620
|
|
|
611
621
|
Optional `sp` shorthand ships with 0.3.0 and later (not 0.2.1 or earlier) and is
|
|
612
622
|
never enabled automatically. See [explicit activation and collisions](shorthand.md).
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
<a id="unreleased-handoff"></a>
|
|
626
|
+
|
|
627
|
+
## Private handoff and delivery observation (0.4.0)
|
|
628
|
+
|
|
629
|
+
0.4.0 includes an opt-in private POSIX handoff ledger. Required unsupported evidence refuses before submission; best-effort unsupported evidence never proves ACK. Automated receipt bootstrap, Windows ledger and original-sender SSH collectors remain unsupported. POSIX SSH opt-in uses an explicitly initialized destination ledger: no-effect preparation pins target/home/generation before one send. See [destination-side SSH details](api.md#unreleased-destination-side-ssh-handoff); fake-SSH fixtures are distinct from real network qualification.
|
|
630
|
+
|
|
631
|
+
[CLI](api.md#unreleased-opt-in-handoff-cli--040-work)
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
Native observation supports exact Codex 0.160.1/0.162.1 on macOS arm64 with an already-warm metadata store. Retained qualified intents can start an independent `handoff wait`: native observation is read-only, while the operation persists private wait/terminal records. No native submission is repeated. Each operation owns its cutoff and preserves other pending or terminal waits. Dedicated new 0.162.1 Codex and Claude Code 2.1.296 sessions supplied local evidence; synthetic tests remain separate. Queued/posted, injection, turn completion and plain reply are distinct from receipt ACK. Automated ACK and Windows handoff remain unsupported.
|
|
635
|
+
|
|
636
|
+
[Observation](api.md#unreleased-local-delivery-observation--72)
|
|
637
|
+
|
|
638
|
+
Native delivery observation is unsupported on Linux and Windows. The supported POSIX ledger can record an explicitly verified receipt as `operator_confirmed`; this is not automatic ACK collection. The 0.4.0 scope is qualified macOS observation and explicit operator confirmation. Linux, Windows and receipt-bootstrap extensions are tracked separately in [#130](https://github.com/abruption/session-peer-ts/issues/130), [#131](https://github.com/abruption/session-peer-ts/issues/131) and [#132](https://github.com/abruption/session-peer-ts/issues/132).
|
package/docs/guide.zh-CN.md
CHANGED
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
[English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
|
|
6
6
|
|
|
7
|
-
**文档和源码版本:0.
|
|
7
|
+
**文档和源码版本:0.4.0。** 安装前,请审核所选发布版本和注册表元数据。按日期记录的准备与验证结果见 [VALIDATION.md](../VALIDATION.md),发布流程见 [RELEASING.md](../RELEASING.md)。SSH 两端必须使用相同的 TypeScript 客户端版本;0.3.6 与 0.4.0 会拒绝彼此的 SSH 预检。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**0.4.0 handoff 范围:** 可选 native 观测仅限 macOS arm64 上精确 Codex 0.160.1/0.162.1 版本;明确的 `operator_confirmed` 收件确认使用受支持的 POSIX ledger。Linux、Windows 的 native 观测和自动 ACK 收集仍不支持。
|
|
10
|
+
|
|
11
|
+
这是 0.4.0 详细指南([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
12
|
|
|
11
13
|
<a id="迁移边界-033-候选"></a>
|
|
12
14
|
|
|
13
|
-
## 迁移边界 (0.
|
|
15
|
+
## 迁移边界 (0.4.0)
|
|
14
16
|
|
|
15
17
|
[0.3.2 公开记录](../VALIDATION.md#public-032--2026-10-07-kst)固定了发布源码和产物。SSH 预检验证 TS 版本标识完全一致,不检查提交哈希;源码构建使用的已审核提交需要由操作人员另行对齐。
|
|
16
18
|
|
|
@@ -19,11 +21,13 @@
|
|
|
19
21
|
- 重复 `--host` 返回按请求顺序排列的数组。主机分别执行期间发生的失败汇总为退出码 1;执行前的命令整体拒绝(如主机重复或消息为空)在数组输出中仍保持退出码 2。公开 0.3.2 在 SSH 退出 255 或超时后,也可能丢失完整响应的证据。0.3.3 保留与请求匹配的完整事实,并返回本地退出码 1 和 `sshTransport`。不完整或无效证据仍为 unknown。unknown 时不得自动重发。
|
|
20
22
|
- 0.2.0 引入的基础 doctor 不执行 Codex,也不向 inbox 提交。0.3.0 起,显式 `--check-return-route` 仅对可用的非本地目标执行有时间限制的反向 SSH 无操作命令。同机自身路由无需 SSH 即返回 `verified`、`transport:local`、`self_route_normalized`;缺少主机时在任何探测前失败。`--check-reply-to` 不受支持。verified 表示本地路由归一化或一次 SSH 无操作命令成功,不是 ACK 认证或通用反向访问保证。
|
|
21
23
|
- 将同机 Reply-To 归一化为本地路径,必须明确指定匹配的 OS 用户、使用可识别的准确本机名称,且没有显式 SSH 选项。发送者证据冲突时省略身份;Claude 名称不可用时使用 PID。
|
|
22
|
-
- npm、Python、远程主机、技能分别管理。TS 不提供自身更新或远程更新。通知默认关闭,禁用设置优先。显式 `update --check` 仍会查询注册表。公开 TS 0.3.
|
|
24
|
+
- npm、Python、远程主机、技能分别管理。TS 不提供自身更新或远程更新。通知默认关闭,禁用设置优先。显式 `update --check` 仍会查询注册表。公开 TS 0.3.5 接受公开技能 `0.2.1` 及旧 `0.1.0`、`0.2.0` 的精确配置;公开 TS 0.3.2、0.3.3 和 0.3.4 拒绝 `0.2.1`。安装部分固定了独立发布的技能源码。
|
|
23
25
|
- Windows 验证使用公开 0.3.1、Windows 10 x64、管理员账号、PowerShell 5.1 和 Node 24.16.0。验证范围包括离线安装、包装器与原生锁、操作端 doctor 和不存在目标的 dry-run,以及 31 项本地 fixture。Node 22 仅确认版本标识和原生锁。非管理员、其他架构、F6 运行时校验、此前 Linux 实验的最新规则仍未验证。这不是 0.3.2 实机 ACK 或部署辅助工具的验证。
|
|
24
26
|
|
|
25
|
-
请参阅[迁移详情](../PARITY.md#ordinary-cli-migration-notes--117)和 [Windows 验证记录](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)
|
|
27
|
+
请参阅[迁移详情](../PARITY.md#ordinary-cli-migration-notes--117)和 [Windows 验证记录](../VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)。上述带日期的迁移比较针对当时的公开版本。0.4.0 源码的开发比较基准为 Python 1.1.0;公开 npm 0.3.3 原有的 1.0.2 标识保持不变。Python 1.1.0 包含实验性的本地 Claude 收件确认专用 ACK 路径。这不表示 TS 实现支持自动 ACK、原发送方的 SSH 收件确认收集器或 Windows handoff。两种基准均不保证端到端消费,Side Session 仍属实验功能。Relay/MCP 不在比较范围内。
|
|
28
|
+
|
|
26
29
|
|
|
30
|
+
[0.4.0 handoff 设计与实现范围](../PARITY.md#handoff-v1-design-candidate--69)
|
|
27
31
|
|
|
28
32
|
## 目录
|
|
29
33
|
|
|
@@ -40,7 +44,7 @@
|
|
|
40
44
|
|
|
41
45
|
向正在运行的 **Claude Code 和 Codex 会话**发送消息,支持本机和跨机器 SSH。这是运行于 Node.js 的 TypeScript 客户端,不需要 Python。
|
|
42
46
|
|
|
43
|
-
**这是 0.
|
|
47
|
+
**这是 0.4.0 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
|
|
44
48
|
|
|
45
49
|
## 功能与边界
|
|
46
50
|
|
|
@@ -57,7 +61,7 @@
|
|
|
57
61
|
|
|
58
62
|
构建后,`node dist/cli.js list --json` 合并列出 Claude/Codex,`list --agent codex --json` 查找已知 home。公开 npm **0.1.0** 仍要求显式 agent,以及 Codex 列表所需的 home;0.2.0 也支持显式命令格式。
|
|
59
63
|
|
|
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.
|
|
64
|
+
范围仅限默认 `~/.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.4.0)。
|
|
61
65
|
|
|
62
66
|
### 0.2.0 CLI 易用性
|
|
63
67
|
|
|
@@ -79,15 +83,15 @@ macOS、Linux 或 Windows native;Node **22.x 中的 22.13 及以上,或 24.x
|
|
|
79
83
|
|
|
80
84
|
使用 Node 22.x 的 22.13 及以上或 24.x,并确认要安装的确切版本是否已发布。Python CLI 也使用同一个命令名;若已有安装,请先检查 PATH。
|
|
81
85
|
|
|
82
|
-
**安装 0.
|
|
86
|
+
**安装 0.4.0:** 运行 npm 安装或更新示例前,请确认注册表可用性并审核所选发布版本。如该版本不可用,请使用[已审核的源码构建](#从源码构建)。
|
|
83
87
|
|
|
84
88
|
```sh
|
|
85
|
-
npm view session-peer@0.
|
|
86
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
89
|
+
npm view session-peer@0.4.0 version dist.integrity
|
|
90
|
+
npm install --global --ignore-scripts session-peer@0.4.0
|
|
87
91
|
session-peer --version
|
|
88
92
|
```
|
|
89
93
|
|
|
90
|
-
预期输出:`session-peer 0.
|
|
94
|
+
预期输出:`session-peer 0.4.0 (typescript)`。
|
|
91
95
|
|
|
92
96
|
1. 用 `session-peer list --agent claude --json` 查找目标并选择准确 PID。
|
|
93
97
|
2. 用 `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` 验证,不提交。
|
|
@@ -106,7 +110,7 @@ npm run build
|
|
|
106
110
|
node dist/cli.js --version
|
|
107
111
|
npm pack --ignore-scripts
|
|
108
112
|
# 可选:全局安装前先检查 PATH 选择的现有命令
|
|
109
|
-
npm install --global --ignore-scripts ./session-peer-0.
|
|
113
|
+
npm install --global --ignore-scripts ./session-peer-0.4.0.tgz
|
|
110
114
|
session-peer --version
|
|
111
115
|
```
|
|
112
116
|
|
|
@@ -116,7 +120,7 @@ session-peer --version
|
|
|
116
120
|
|
|
117
121
|
安装前后用 `type -a session-peer` 和 `command -v session-peer` 检查实际执行项。其他实现也可能提供同名命令;请选择 PATH 上的一种,或显式运行 `node /absolute/path/dist/cli.js`。不要用 `--force` 覆盖其他管理器的文件。本包不会自动安装、删除或调整 Python 包、技能或服务。卸载使用 `npm uninstall --global session-peer`,随后再次检查 PATH。
|
|
118
122
|
|
|
119
|
-
在 Windows PowerShell 中用 `Get-Command session-peer -All` 检查已有命令。为了不替换 Python CLI,可先执行 `npm ci --ignore-scripts`、`npm run build`、`npm pack --ignore-scripts`,再用 `npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.
|
|
123
|
+
在 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.4.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` 卸载。
|
|
120
124
|
|
|
121
125
|
## 使用
|
|
122
126
|
|
|
@@ -201,20 +205,20 @@ npm run test:package
|
|
|
201
205
|
npm audit
|
|
202
206
|
```
|
|
203
207
|
|
|
204
|
-
Python
|
|
208
|
+
Python 只用作开发时的比较基准(v1.1.0,`8ca77cf31254c8287a2593fe484bb30a7dba2727`),不是运行时依赖。验证范围为普通列表和发现结果,不代表发送或 handoff 的完整互操作性。POSIX 契约测试还需要 C 编译器和 lsof。CI 在三种 OS 上使用 Node 22/24。macOS/Linux 对固定基准执行完整契约与包检查;Windows x64 执行构建、类型检查、原生 Claude inbox、持有/空闲锁、writer 归属与提交前竞争、CLI 队列结果、隔离模拟 SSH 目标的实际 PowerShell/.cmd 帧处理、包安装/原生加载/卸载及 audit。这些属于 fixture 检查;Windows 不运行 POSIX/Python 参考测试套件。Windows x64/Node 24 实机 ACK 是单独的一次性证据。临时 SQLite、Unix inbox、真实锁 fixture 与 [VALIDATION.md](../VALIDATION.md) 中专用真实 TUI 的证据分开记录;fixture 通过不是 ACK。包测试检查文件清单、重复打包哈希、全新安装与卸载。原生依赖通常有安装脚本,已验证的预编译路径使用 `--ignore-scripts`。SQLite 只读连接仍可能参与 WAL 共享内存管理,不能视为快照。
|
|
205
209
|
|
|
206
210
|
参见 [CONTRIBUTING.md](../CONTRIBUTING.md)、[RELEASING.md](../RELEASING.md) 和 [SECURITY.md](../SECURITY.md)。后续版本的发布需单独批准,未启用自动 npm 发布。采用 [MIT](../LICENSE) 许可证。
|
|
207
211
|
|
|
208
212
|
## npm 版本
|
|
209
213
|
|
|
210
|
-
公开 **0.3.2** 于 2026-10-07 KST 完成验证([不可变公开记录](../VALIDATION.md#public-032--2026-10-07-kst))。请用下方注册表查询确认 0.
|
|
214
|
+
公开 **0.3.2** 于 2026-10-07 KST 完成验证([不可变公开记录](../VALIDATION.md#public-032--2026-10-07-kst))。请用下方注册表查询确认 0.4.0 的当前可用性和 npm 标签;带日期的准备证据不能证明后续发布结果。
|
|
211
215
|
|
|
212
216
|
0.2.1 已于 2026-09-29 KST、0.2.0 已于 2026-09-28 KST 公开并验证。请参阅
|
|
213
217
|
[0.2.1 公开记录](../VALIDATION.md#public-021--2026-09-29-kst)(之后的版本各自追加带日期的记录),
|
|
214
218
|
安装前核对准确版本与当前标签。
|
|
215
219
|
|
|
216
220
|
```sh
|
|
217
|
-
npm view session-peer@0.
|
|
221
|
+
npm view session-peer@0.4.0 version dist.integrity
|
|
218
222
|
npm view session-peer dist-tags
|
|
219
223
|
```
|
|
220
224
|
|
|
@@ -253,7 +257,7 @@ dist-tag(3 秒超时,不重试),并报告 `current`、`latest`、`channe
|
|
|
253
257
|
`ahead`)、`managedBy`、`updateCommand` 和 `guidance`。只有根据当前 CLI 路径能确切识别
|
|
254
258
|
安装的管理方时才给出命令:其自身 `session-peer` 启动器指向本包的 npm 全局 prefix
|
|
255
259
|
(默认、Homebrew、nvm、nvm-windows、fnm,例如
|
|
256
|
-
`npm install --global --ignore-scripts session-peer@0.
|
|
260
|
+
`npm install --global --ignore-scripts session-peer@0.4.0`),清单中声明了
|
|
257
261
|
`session-peer` 的 pnpm、Yarn、Bun 全局存储,Volta,或 npx 缓存。项目安装
|
|
258
262
|
(`npm_project`、`pnpm_project`)、源码检出(`source`)以及其他情况(`unknown`)只返回
|
|
259
263
|
`updateCommand: null` 和一句 `guidance`,因此不会给出可能修改无关当前目录的命令。它只报告
|
|
@@ -295,18 +299,18 @@ npm 版本,Python 版 `session-peer` 的发布是独立的版本序列,从
|
|
|
295
299
|
|
|
296
300
|
## 显式安装代理技能
|
|
297
301
|
|
|
298
|
-
独立的 `session-peer-ts` 技能已发布为[技能 0.2.
|
|
302
|
+
独立的 `session-peer-ts` 技能已发布为[技能 0.2.1](https://github.com/abruption/session-peer-skill/releases/tag/session-peer-ts-v0.2.1)。技能版本与 npm 运行时独立,安装其中一个不会安装另一个。Python 的 `session-peer` 技能也独立保留。
|
|
299
303
|
|
|
300
|
-
先检查[固定提交的技能源码](https://github.com/abruption/session-peer-skill/tree/
|
|
304
|
+
先检查[固定提交的技能源码](https://github.com/abruption/session-peer-skill/tree/0f494cabd05901c03161dc91792dcf89f8e96631/session-peer-ts),再选择代理和安装范围。
|
|
301
305
|
以下示例选择 **Codex、当前项目**;请在该项目目录中运行。
|
|
302
306
|
Claude Code 使用 `--agent claude-code`。用户范围安装应在 add/list/remove 中一致添加 `--global`。
|
|
303
307
|
批准替换已有的 `session-peer-ts` 副本前,请检查本地修改。
|
|
304
308
|
Codex 的 `.agents/skills` 目录与其他扫描该路径的客户端共享。
|
|
305
309
|
|
|
306
|
-
公开 TS 0.3.
|
|
310
|
+
公开 TS 0.3.5 接受技能 0.2.1 的精确配置(`typescript`、最低 `0.1.0`、文档功能参考 `0.3.2`、`probe-help`)以及旧 0.1.0 和 0.2.0 配置。公开 TS 0.3.2、0.3.3 和 0.3.4 拒绝 0.2.1 配置,因此使用此技能前,应通过原安装管理工具升级运行时。带有 `verification:metadata_only` 的 `compatible` 仅表示有界元数据检查,不代表内容认证、发送授权、投递或 ACK 证据。最低版本是基础 CLI 兼容下限,完整功能版本是文档所涵盖的公开功能参考版本。二者均不是 doctor 的接受规则;是否接受以经过审核的有限判定表为准。可选操作仍需检查实际执行文件的 version/help 以及平台和原生工具条件。运行时与技能由各自管理工具独立升级,不引入 postinstall。请参阅[有限判定表与读取边界](design/typescript-skill-compatibility.md)。
|
|
307
311
|
|
|
308
312
|
```sh
|
|
309
|
-
npx -y skills@1.7.0 add https://github.com/abruption/session-peer-skill/tree/
|
|
313
|
+
npx -y skills@1.7.0 add https://github.com/abruption/session-peer-skill/tree/0f494cabd05901c03161dc91792dcf89f8e96631/session-peer-ts --skill session-peer-ts --agent codex --copy --yes
|
|
310
314
|
npx -y skills@1.7.0 list --agent codex --json
|
|
311
315
|
npx -y skills@1.7.0 remove session-peer-ts --agent codex --yes
|
|
312
316
|
```
|
|
@@ -320,3 +324,19 @@ postinstall 不会调用 Skills CLI,安装此技能不会覆盖 Python 技能
|
|
|
320
324
|
|
|
321
325
|
可选的 `sp` 简写包含在 0.3.0 及更高版本中(0.2.1 及更早版本没有),不会自动启用。
|
|
322
326
|
请参阅[显式启用、冲突与停用(英文)](shorthand.md)。
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
<a id="unreleased-handoff"></a>
|
|
330
|
+
|
|
331
|
+
## 私有 handoff 与投递观测(0.4.0)
|
|
332
|
+
|
|
333
|
+
0.4.0 包含 opt-in private POSIX handoff ledger。所需证据通道 unsupported 时在提交前拒绝;best-effort 提交并不证明 ACK。自动收件确认连接设置、Windows ledger 和原发送方的 SSH 收件确认收集器尚不支持。POSIX SSH opt-in 在已明确初始化的目标 ledger 上进行无发送的准备,固定目标、home、generation 后只发送一次。请参阅[目标端 SSH 说明](api.md#unreleased-destination-side-ssh-handoff)。模拟 SSH fixture 与实际网络验证分别记录。
|
|
334
|
+
|
|
335
|
+
[CLI](api.md#unreleased-opt-in-handoff-cli--040-work)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
native 观测仅支持 macOS arm64 上的精确 Codex 0.160.1/0.162.1 和已有的元数据存储。保留验证依据的提交可通过独立的 `handoff wait` 只读观测 native 状态。该操作会在私有 ledger 中保存等待和终态记录,但不会再次进行 native 提交。每项等待只按自己的截止时间判断,并保留其他等待及过去的终态。新建专用 Codex 0.162.1、Claude Code 2.1.296 会话的实机依据与合成测试分开记录。queued/posted、注入、轮次结束及普通回复均不等于收件确认 ACK。自动 ACK 和 Windows handoff 仍不支持。
|
|
339
|
+
|
|
340
|
+
[Observation](api.md#unreleased-local-delivery-observation--72)
|
|
341
|
+
|
|
342
|
+
Linux、Windows 的 native 注入观察尚不支持。支持的 POSIX ledger 可将操作人员明确确认的收件事实记录为 `operator_confirmed`,但这不是自动 ACK 收集。0.4.0 范围是已验证的 macOS 观察和操作人员的明确确认。Linux、Windows 观察及 receipt bootstrap 分别作为 [#130](https://github.com/abruption/session-peer-ts/issues/130)、[#131](https://github.com/abruption/session-peer-ts/issues/131)、[#132](https://github.com/abruption/session-peer-ts/issues/132) 的后续工作。
|
package/docs/shorthand.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Optional `sp` shorthand
|
|
2
2
|
|
|
3
|
-
This reference describes source/package version 0.
|
|
3
|
+
This reference describes source/package version 0.4.0. Check registry availability before using a version-pinned npm installation; before publication use a reviewed source artifact. The shorthand forwards to the explicitly selected CLI and does not install or upgrade it.
|
|
4
4
|
|
|
5
5
|
[README](../README.md) · [User guide](guide.md)
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "session-peer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"build": "tsc -p tsconfig.json",
|
|
42
42
|
"test": "npm run build && npm run test:types && node --import ./test/fixtures/isolate-env.mjs --experimental-strip-types --test test/*.test.ts",
|
|
43
43
|
"test:types": "tsc -p tsconfig.test.json",
|
|
44
|
-
"test:windows": "npm run build && npm run test:types && node --import ./test/fixtures/isolate-env.mjs --import ./test/fixtures/windows-inspection-diagnostic.mjs --experimental-strip-types --test --test-concurrency=1 test/writer-uid.test.ts test/claude-records.test.ts test/reply-agent-binding.test.ts test/windows.test.ts test/windows-contract.test.ts test/windows-inspection.test.ts test/input-boundaries.test.ts test/discovery.test.ts test/codex-homes.test.ts test/diagnostics.test.ts test/cli-usability.test.ts test/skill-guidance.test.ts test/skill-metadata.test.ts test/ssh-hosts.test.ts test/ssh-response.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/handoff-core.test.ts test/handoff-cli.test.ts test/handoff-delivery.test.ts test/metadata-observation.test.ts test/handoff-writer-probe.test.ts test/app-server.test.ts test/writer-uid.test.ts test/claude-records.test.ts test/reply-agent-binding.test.ts test/windows.test.ts test/windows-contract.test.ts test/windows-inspection.test.ts test/input-boundaries.test.ts test/discovery.test.ts test/codex-homes.test.ts test/diagnostics.test.ts test/cli-usability.test.ts test/skill-guidance.test.ts test/skill-metadata.test.ts test/ssh-hosts.test.ts test/ssh-response.test.ts test/ssh-handoff.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": {
|