session-peer 0.5.1 → 0.6.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 +26 -0
- package/PARITY.md +134 -4
- package/README.ja.md +12 -8
- package/README.ko.md +12 -8
- package/README.md +12 -8
- package/README.zh-CN.md +12 -8
- package/RELEASING.md +142 -0
- package/VALIDATION.md +154 -2
- package/dist/app-server.d.ts +10 -2
- package/dist/app-server.js +115 -53
- package/dist/cli.js +54 -4
- package/dist/codex-storage.d.ts +46 -0
- package/dist/codex-storage.js +447 -0
- package/dist/diagnostics.js +23 -102
- package/dist/discovery.d.ts +32 -1
- package/dist/discovery.js +405 -89
- package/dist/handoff-operations.js +40 -10
- package/dist/help.js +18 -2
- package/dist/macos-acl.d.ts +10 -0
- package/dist/macos-acl.js +75 -0
- package/dist/output.js +6 -1
- package/dist/process.d.ts +1 -0
- package/dist/process.js +1 -1
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +1 -1
- package/dist/receipt-collector.d.ts +12 -0
- package/dist/receipt-collector.js +283 -0
- package/dist/receipt-command.d.ts +10 -0
- package/dist/receipt-command.js +246 -0
- package/dist/receipt-producer.d.ts +7 -0
- package/dist/receipt-producer.js +107 -0
- package/dist/receipt-protocol.d.ts +219 -0
- package/dist/receipt-protocol.js +374 -0
- package/dist/receipt-send.d.ts +26 -0
- package/dist/receipt-send.js +375 -0
- package/dist/receipt-state.d.ts +89 -0
- package/dist/receipt-state.js +503 -0
- package/dist/receipt-store.d.ts +32 -0
- package/dist/receipt-store.js +286 -0
- package/dist/replies.js +3 -1
- package/dist/send.d.ts +14 -3
- package/dist/send.js +165 -63
- package/dist/skill-metadata.js +5 -3
- package/docs/api.md +155 -7
- package/docs/design/remote-deployment.md +8 -0
- package/docs/design/typescript-skill-compatibility.md +50 -0
- package/docs/guide.ja.md +47 -15
- package/docs/guide.ko.md +50 -19
- package/docs/guide.md +48 -16
- package/docs/guide.zh-CN.md +47 -15
- package/docs/shorthand.md +1 -1
- package/package.json +5 -3
package/docs/guide.ko.md
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
# 사용자 가이드 — session-peer (TypeScript)
|
|
2
2
|
|
|
3
|
+
일반 Codex 큐는 `auth.json`이 있는 로그인 home 등에서 클라우드 정책 적용 여부를 분류할 수 없으면 `codex_cloud_storage_unverified`로 거부합니다. 자격정보·캐시 내용은 읽지 않으며, 별도로 검증하는 owned app-server 경로에는 실제 저장소 바인딩 증거가 필요합니다.
|
|
4
|
+
|
|
5
|
+
이 소스는 Codex home·시스템·macOS 관리 설정과 큐 실행 프로세스 및 대상 프로세스의 실제 작업 경로에 적용되는 프로젝트 설정을 검사합니다. [저장소 검증 범위와 거부 조건](api.md#codex-storage-configuration)을 확인하세요. Windows Codex 전송과 dry-run은 로컬 저장소 검사 방식이 검증될 때까지 큐 제출 전에 거부합니다. doctor와 dry-run은 Codex를 실행하지 않으며 로더 버전은 미확인으로 남깁니다.
|
|
6
|
+
|
|
7
|
+
현재 기능 차이와 포팅 결정은 [날짜가 명시된 비교표](../PARITY.md#current-scoped-feature-matrix)에서 확인하세요. TypeScript의 공개 기능과 별도로 고정한 Python 비교 기준을 구분합니다.
|
|
8
|
+
|
|
3
9
|
[README로 돌아가기](../README.ko.md)
|
|
4
10
|
|
|
5
11
|
[English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
|
|
6
12
|
|
|
7
|
-
**문서·소스 기준 버전: 0.
|
|
13
|
+
**문서·소스 기준 버전: 0.6.0.** 설치 전에 선택한 릴리스와 레지스트리 메타데이터를 확인하세요. 날짜별 준비·검증 기록은 [VALIDATION.md](../VALIDATION.md), 릴리스 절차는 [RELEASING.md](../RELEASING.md)에 있습니다. SSH 양쪽에는 같은 TypeScript 클라이언트 버전이 필요하며, 0.3.6 버전과 0.6.0 버전은 서로의 SSH 사전 확인을 거부합니다.
|
|
8
14
|
|
|
9
|
-
**0.4.0 handoff 범위:** 선택 기능인 native 관측은 macOS arm64의 정확한 Codex 0.160.1/0.162.1에 한정되며, 명시적 `operator_confirmed` 수령 확인에는 지원되는 POSIX ledger를 사용합니다. Linux·Windows의 native 관측과 자동 ACK 수집은 미지원입니다. 0.
|
|
15
|
+
**0.4.0 handoff 범위:** 선택 기능인 native 관측은 macOS arm64의 정확한 Codex 0.160.1/0.162.1에 한정되며, 명시적 `operator_confirmed` 수령 확인에는 지원되는 POSIX ledger를 사용합니다. Linux·Windows의 native 관측과 자동 ACK 수집은 미지원입니다. 0.6.0 소스는 선택할 수 없는 Linux arm64 Codex 0.162.1 후보(고정된 업스트림 `aarch64-unknown-linux-musl` 실행 파일, 스키마, 주입 테스트 1회)를 기록하며 Linux 관측을 활성화하지 않습니다. Linux native 관측은 계속 미지원입니다.
|
|
10
16
|
|
|
11
|
-
이 가이드는 0.
|
|
17
|
+
이 가이드는 0.6.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을 언급할 때는 이전 버전을 설명합니다.
|
|
12
18
|
|
|
13
19
|
<a id="마이그레이션-경계-033-후보"></a>
|
|
14
20
|
|
|
@@ -96,7 +102,7 @@ JSON에는 정제된 `codexHomeResolution`이 포함되며, 네이티브 응답
|
|
|
96
102
|
`queueId`도 포함됩니다. 둘 다 메시지를 읽거나 처리했음을 확인하지 않습니다.
|
|
97
103
|
[홈 선택 계약](../PARITY.md#source-codex-home-selection--17--020)을 참고하세요.
|
|
98
104
|
공개 **0.1.0**은 여전히 실행 중인 홈을 명시해야 하며 비활성 세션 허용 옵션이 없습니다.
|
|
99
|
-
SSH를 사용할 때는 발신·수신 양쪽에 같은 TypeScript 클라이언트 버전(0.
|
|
105
|
+
SSH를 사용할 때는 발신·수신 양쪽에 같은 TypeScript 클라이언트 버전(0.6.0)을 설치해야
|
|
100
106
|
합니다.
|
|
101
107
|
|
|
102
108
|
<a id="020-cli-사용성"></a>
|
|
@@ -120,6 +126,32 @@ Claude 이름은 Unicode 14.0.0의 기본 완전 대소문자 접기(full casefo
|
|
|
120
126
|
|
|
121
127
|
|
|
122
128
|
<a id="requirements"></a>
|
|
129
|
+
### macOS의 Claude 프로필
|
|
130
|
+
|
|
131
|
+
`CLAUDE_CONFIG_DIR`과 `ANTHROPIC_CONFIG_DIR`에 비어 있지 않은 값이 없으면, Claude 탐색은 `~/.claude/sessions`와 함께 `~/Library/Application Support/orca/claude-profiles` 바로 아래 프로필의 `home/sessions`를 확인합니다. 환경변수로 경로를 지정하면 해당 registry(세션 등록 정보 디렉터리)만 사용합니다. Linux와 Windows에서는 이 macOS 경로를 탐색하지 않습니다. 프로필 수와 등록 항목 수에 상한을 둡니다. 자동 탐색한 프로필 디렉터리와 등록 파일은 현재 사용자 소유여야 하며 다른 사용자나 그룹이 쓸 수 없어야 합니다. 안전 조건을 충족하지 못한 경로가 있으면 탐색을 불완전한 것으로 처리합니다. macOS 자동 탐색 경로의 확장 ACL(추가 접근 권한)은 소유자만 지정한 경우까지 보수적으로 거부합니다. 제한된 시스템 메타데이터 검사 도구를 사용하며 에이전트는 실행하지 않습니다.
|
|
132
|
+
|
|
133
|
+
다른 탐색 경로에서 오류가 나더라도 읽은 세션은 목록에 남기고, 탐색이 불완전하다는 진단과 실패 종료 코드를 반환합니다. 전송과 발신자 식별에는 완전하고 충돌 없는 근거가 필요합니다. 같은 실제 등록 디렉터리를 가리키는 별칭은 한 행으로 합칠 수 있지만, PID나 받은 메시지함 정보가 충돌하면 디렉터리 순서나 PID 지정으로 대상을 결정하지 않습니다. 선택과 handoff 연속성 검사는 원래 등록 정보의 근거를 유지하고 제출 직전에 다시 확인합니다. 목록과 dry-run은 받은 메시지함에 연결하지 않습니다. 이 검사가 native 세대, 메시지 소비 또는 수령 확인 ACK를 증명하지는 않습니다.
|
|
134
|
+
|
|
135
|
+
### 명시적 로컬 수령 확인
|
|
136
|
+
|
|
137
|
+
수령 확인 receipt는 일반 posted/queued 전송 근거와 별개입니다. 소유자가 비공개 상태를 직접 초기화하고, 터미널에서 실행 상태를 유지하는 수집기를 직접 시작합니다. 서비스 등록이나 자동 시작은 하지 않습니다. 다음 명령의 `serve`는 사용자가 중지할 때까지 종료되지 않습니다.
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
session-peer receipt init --state-dir "$HOME/.session-peer-receipts" --json
|
|
141
|
+
session-peer receipt serve --state-dir "$HOME/.session-peer-receipts" --json
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
다른 터미널에서 수령 확인 권한 위임을 명시적으로 요청합니다. 수신자는 비공개 표준 입력으로 receipt 전용 처리기를 별도로 호출해야 합니다. 아래 두 번째 명령이 스스로 receipt를 가져오지는 않습니다. 권한 토큰을 셸 명령문·인자·환경변수·URI·공개 출력·발신자 또는 수집기 파일에 넣지 않고 비공개 stdin/FD로 전달할 수 있는 도구만 사용하세요. 허용된 수신자의 native 큐·대화 기록에는 토큰이 남을 수 있습니다.
|
|
145
|
+
|
|
146
|
+
```sh
|
|
147
|
+
session-peer send --to claude:NAME --message "Receipt fixture" --request-ack --receipt-collector "$HOME/.session-peer-receipts/s" --wait-for acknowledged --wait-timeout 30 --json
|
|
148
|
+
session-peer receipt respond --collector "$HOME/.session-peer-receipts/s" --receipt - --json
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
검증 결과의 `token_possession`은 위임받은 토큰의 소지만 증명하며, 모델 신원·메시지 소비·작업 완료를 증명하지 않습니다. Claude는 native 세대를 알 수 없는 별도의 v2 위임 receipt context를 사용합니다. Codex는 원래 세대에 결합한 v1을 유지하고, 비공개 stdin을 사용하는 검증된 owned RPC 경로만 허용합니다. 토큰을 native `--message` 인자로 넘기는 대체 경로는 없습니다. 기존 수동 `operator_confirmed` 근거와도 다릅니다.
|
|
152
|
+
|
|
153
|
+
수집기는 같은 기기의 소유자 전용 경로만 사용합니다. 보존 용량 제한이 함께 적용되어 작은 기록 약 511개부터 새 수령 확인 요청이 거부될 수 있으며, 자동 정리·초기화로 이력을 버리지 않습니다. 역방향 SSH 수집기와 Windows managed 저장소는 미지원입니다. 각 명시적 대기는 자신의 마감 시각을 유지합니다. status/wait는 비공개 상태 분류를 기록할 수 있지만 native 메시지를 다시 제출하지 않습니다. 결과를 알 수 없다고 자동 재전송하지 않습니다. 기존 native·플랫폼 검증 범위는 그대로이며, fixture 성공이 실제 에이전트 receipt 검증을 뜻하지는 않습니다.
|
|
154
|
+
|
|
123
155
|
## 요구사항
|
|
124
156
|
|
|
125
157
|
macOS, Linux 또는 Windows와 **Node 22.x의 22.13 이상 또는 24.x**가 필요합니다.
|
|
@@ -136,20 +168,20 @@ Claude Code에는 받은 메시지함에 접근할 수 있는 실행 중 TUI(터
|
|
|
136
168
|
|
|
137
169
|
Node 22.x의 22.13 이상 또는 24.x를 사용하세요. Python CLI도 같은 `session-peer`
|
|
138
170
|
명령 이름을 쓰므로, 설치 전에 PATH(명령 검색 경로)에서 어떤 실행 파일을 찾는지
|
|
139
|
-
확인하세요. 아래 명령은 선택한 0.
|
|
171
|
+
확인하세요. 아래 명령은 선택한 0.6.0 버전을 npm으로 설치하는 예입니다.
|
|
140
172
|
CLI 자체는 패키지를 설치하거나 업데이트하지 않습니다.
|
|
141
173
|
|
|
142
|
-
**0.
|
|
174
|
+
**0.6.0 설치:** npm 설치·업데이트 예시를 실행하기 전에 레지스트리 제공 여부와 선택한 릴리스를 확인하세요. 해당 버전이 제공되지 않으면 [검토한 소스 빌드](#소스에서-빌드)를 사용하세요.
|
|
143
175
|
|
|
144
176
|
```sh
|
|
145
|
-
npm view session-peer@0.
|
|
146
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
147
|
-
session-peer --version # session-peer 0.
|
|
177
|
+
npm view session-peer@0.6.0 version dist.integrity
|
|
178
|
+
npm install --global --ignore-scripts session-peer@0.6.0
|
|
179
|
+
session-peer --version # session-peer 0.6.0 (typescript)
|
|
148
180
|
session-peer list --agent claude --json
|
|
149
181
|
session-peer send --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
|
|
150
182
|
```
|
|
151
183
|
|
|
152
|
-
예상 결과는 `session-peer 0.
|
|
184
|
+
예상 결과는 `session-peer 0.6.0 (typescript)`입니다.
|
|
153
185
|
|
|
154
186
|
1. 세션을 조회하고 `CLAUDE_PID`를 대상으로 선택한 정확한 PID로 바꾸세요.
|
|
155
187
|
2. `--dry-run`으로 검증합니다. 이 단계에서는 메시지를 제출하지 않습니다.
|
|
@@ -177,11 +209,11 @@ npm run build
|
|
|
177
209
|
node dist/cli.js --version
|
|
178
210
|
npm pack --ignore-scripts
|
|
179
211
|
# Optional global install: first check which session-peer your PATH selects.
|
|
180
|
-
npm install --global --ignore-scripts ./session-peer-0.
|
|
212
|
+
npm install --global --ignore-scripts ./session-peer-0.6.0.tgz
|
|
181
213
|
session-peer --version
|
|
182
214
|
```
|
|
183
215
|
|
|
184
|
-
0.
|
|
216
|
+
0.6.0에서 예상되는 결과는 `session-peer 0.6.0 (typescript)`입니다. 로컬 빌드
|
|
185
217
|
산출물을 선택하려면 `./...tgz` 경로를 그대로 두세요. 이후 버전에 이 명령을 사용할
|
|
186
218
|
때는 먼저 체크아웃한 소스의 버전을 확인하세요.
|
|
187
219
|
|
|
@@ -202,7 +234,7 @@ Python CLI를 덮어쓰지 않으려면 격리 prefix에 설치·제거할 수
|
|
|
202
234
|
npm ci --ignore-scripts
|
|
203
235
|
npm run build
|
|
204
236
|
npm pack --ignore-scripts
|
|
205
|
-
npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.
|
|
237
|
+
npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.6.0.tgz
|
|
206
238
|
& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version
|
|
207
239
|
# Later: npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer
|
|
208
240
|
```
|
|
@@ -319,8 +351,7 @@ session-peer list --host alpha --host user@[2001:db8::1] \
|
|
|
319
351
|
Python 없이 SSH 대상 머신을 준비하는 방법(버전별 전용 설치 디렉터리, 무결성 검증,
|
|
320
352
|
소유권과 롤백 규칙)과 패키지 버전과 분리된 프로토콜 호환성 계약에 대한 설계 제안은
|
|
321
353
|
[원격 배포 ADR](design/remote-deployment.md)(ADR: 아키텍처 결정 기록)에 있습니다.
|
|
322
|
-
|
|
323
|
-
0.3.2에는 포함되지 않았으며, 아직 구현되지 않았습니다.
|
|
354
|
+
이 ADR은 아직 구현되지 않은 설계 제안입니다.
|
|
324
355
|
따라서 위에서 설명한 SSH 양쪽의 동일 버전 요구 사항은 그대로 적용됩니다.
|
|
325
356
|
|
|
326
357
|
<a id="replies"></a>
|
|
@@ -446,7 +477,7 @@ Windows x64/Node 24에서 실제 TUI로 확인한 ACK는 별도의 일회성 증
|
|
|
446
477
|
<a id="package-release"></a>
|
|
447
478
|
## npm 릴리스
|
|
448
479
|
|
|
449
|
-
아래 레지스트리 조회로 0.
|
|
480
|
+
아래 레지스트리 조회로 0.6.0의 현재 제공 여부와 npm 태그를 확인하세요. 날짜가 기록된 준비 근거는 이후 발행 결과를 입증하지 않습니다.
|
|
450
481
|
|
|
451
482
|
0.3.2는 2026-10-07 KST에, 0.3.1은 2026-10-04 KST에 공개·검증했습니다.
|
|
452
483
|
[0.3.2 공개 기록](../VALIDATION.md#public-032--2026-10-07-kst)과
|
|
@@ -457,7 +488,7 @@ Windows x64/Node 24에서 실제 TUI로 확인한 ACK는 별도의 일회성 증
|
|
|
457
488
|
설치 전에는 정확한 버전과 현재 npm 태그를 확인하세요.
|
|
458
489
|
|
|
459
490
|
```sh
|
|
460
|
-
npm view session-peer@0.
|
|
491
|
+
npm view session-peer@0.6.0 version dist.integrity
|
|
461
492
|
npm view session-peer dist-tags
|
|
462
493
|
```
|
|
463
494
|
|
|
@@ -512,7 +543,7 @@ session-peer update --check --channel preview --output-format text
|
|
|
512
543
|
`updateCommand`는 실행 중인 CLI 경로로 설치 주체를 확인할 수 있을 때 사용자에게 안내합니다.
|
|
513
544
|
해당하는 경우는
|
|
514
545
|
자체 `session-peer` 실행기가 이 패키지를 가리키는 npm 전역 prefix(기본, Homebrew, nvm,
|
|
515
|
-
nvm-windows, fnm. 예: `npm install --global --ignore-scripts session-peer@0.
|
|
546
|
+
nvm-windows, fnm. 예: `npm install --global --ignore-scripts session-peer@0.6.0`),
|
|
516
547
|
매니페스트에 `session-peer`가 선언된 pnpm·Yarn·Bun 전역 저장소, Volta, npx 캐시입니다.
|
|
517
548
|
프로젝트 설치(`npm_project`, `pnpm_project`), 소스 체크아웃(`source`), 그 밖의
|
|
518
549
|
경우(`unknown`)에는 `updateCommand: null`과 `guidance` 문장만 돌려주므로, 관련 없는 현재
|
|
@@ -608,4 +639,4 @@ native 전송 관찰은 macOS arm64의 정확한 Codex 0.160.1/0.162.1과 이미
|
|
|
608
639
|
|
|
609
640
|
[Observation](api.md#unreleased-local-delivery-observation--72)
|
|
610
641
|
|
|
611
|
-
Linux·Windows의 native 주입 관측은 미지원입니다. 0.
|
|
642
|
+
Linux·Windows의 native 주입 관측은 미지원입니다. 0.6.0 소스는 선택할 수 없는 Linux arm64 Codex 0.162.1 후보(고정된 업스트림 `aarch64-unknown-linux-musl` 실행 파일, 스키마, 주입 테스트 1회)를 기록하며 Linux 관측을 활성화하지 않습니다. Linux 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
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
# User guide — session-peer (TypeScript)
|
|
2
2
|
|
|
3
|
+
Ordinary Codex queue submission also refuses cloud-unclassifiable contexts, including signed-in file-auth homes with `auth.json`, with `codex_cloud_storage_unverified`. Credential/cache contents are not read; the separately qualified owned app-server route still requires actual storage binding.
|
|
4
|
+
|
|
5
|
+
This source classifies Codex storage configuration across home, system, managed macOS and physical queue/consumer project contexts. See the [storage guard scope and refusals](api.md#codex-storage-configuration). Windows Codex send/dry-run refuse before queue submission until its local storage adapter is qualified. Doctor and dry-run do not execute Codex and leave its loader version unverified.
|
|
6
|
+
|
|
7
|
+
See the [dated feature comparison and porting decisions](../PARITY.md#current-scoped-feature-matrix) for shipped TypeScript behavior and the separately pinned Python comparison baseline.
|
|
8
|
+
|
|
3
9
|
[Back to README](../README.md)
|
|
4
10
|
|
|
5
11
|
[English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
|
|
6
12
|
|
|
7
|
-
**Documentation and source version: 0.
|
|
13
|
+
**Documentation and source version: 0.6.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.6.0 refuse each other’s SSH preflight.
|
|
8
14
|
|
|
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. The 0.
|
|
15
|
+
**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.6.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.
|
|
10
16
|
|
|
11
|
-
This guide covers version 0.
|
|
17
|
+
This guide covers version 0.6.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.
|
|
12
18
|
|
|
13
19
|
<a id="migration-boundaries-033-candidate"></a>
|
|
14
20
|
|
|
@@ -81,7 +87,7 @@ Side Session remains experimental. Relay/MCP are outside this comparison.
|
|
|
81
87
|
**Find and message running Claude Code and Codex sessions, locally or over SSH.**
|
|
82
88
|
This TypeScript client runs on Node.js without Python.
|
|
83
89
|
|
|
84
|
-
This guide describes **version 0.
|
|
90
|
+
This guide describes **version 0.6.0**. The npm package and CLI command are both **`session-peer`**. This
|
|
85
91
|
project does not provide a Relay server or hosted service.
|
|
86
92
|
|
|
87
93
|
## Quick start
|
|
@@ -89,12 +95,12 @@ project does not provide a Relay server or hosted service.
|
|
|
89
95
|
Use Node **22.13+ within 22.x or 24.x**. Check which `session-peer` your PATH
|
|
90
96
|
selects if the Python CLI is already installed; both packages use that command.
|
|
91
97
|
|
|
92
|
-
**Version 0.
|
|
98
|
+
**Version 0.6.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).
|
|
93
99
|
|
|
94
100
|
```sh
|
|
95
|
-
npm view session-peer@0.
|
|
96
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
97
|
-
session-peer --version # session-peer 0.
|
|
101
|
+
npm view session-peer@0.6.0 version dist.integrity
|
|
102
|
+
npm install --global --ignore-scripts session-peer@0.6.0
|
|
103
|
+
session-peer --version # session-peer 0.6.0 (typescript)
|
|
98
104
|
session-peer list --agent claude --json
|
|
99
105
|
session-peer send --to CLAUDE_PID --message 'Please review the API contract.' --dry-run --json
|
|
100
106
|
```
|
|
@@ -161,7 +167,33 @@ submits nothing. JSON adds sanitized `codexHomeResolution` and, when supplied by
|
|
|
161
167
|
native queue output, `queueId`; neither confirms consumption. See the
|
|
162
168
|
[selection contract](../PARITY.md#source-codex-home-selection--17--020).
|
|
163
169
|
Published **0.1.0** still requires an explicit live home and has no inactive opt-in.
|
|
164
|
-
On SSH, both ends need the same TypeScript client version (0.
|
|
170
|
+
On SSH, both ends need the same TypeScript client version (0.6.0).
|
|
171
|
+
|
|
172
|
+
### Claude profiles on macOS
|
|
173
|
+
|
|
174
|
+
Without a nonempty `CLAUDE_CONFIG_DIR` or `ANTHROPIC_CONFIG_DIR`, Claude discovery also checks the immediate `home/sessions` directories under `~/Library/Application Support/orca/claude-profiles`, alongside `~/.claude/sessions`. Explicit overrides select only their own registry; Linux and Windows do not scan this macOS location. Profile and registry entry limits keep this inventory bounded. Automatically discovered profile directories and registration files must belong to the current user and must not be writable by other users or groups; unsafe sources make discovery incomplete. macOS extended ACLs on these automatic sources are conservatively rejected, including owner-only ACLs, using a bounded trusted system metadata helper. The helper never executes an agent.
|
|
175
|
+
|
|
176
|
+
Readable sessions remain listed when another source fails, with incomplete-inventory diagnostics and a failing list exit status. Sending and sender identification require complete, conflict-free evidence. Aliases of the same canonical registry can share one row; conflicting PID or inbox claims cannot be resolved by directory order or by choosing a PID. Selection and handoff continuity retain the original registry evidence and recheck it before submission. Listing and dry-run do not connect to an inbox. These checks do not establish a native generation, consumption or ACK.
|
|
177
|
+
|
|
178
|
+
### Explicit local receipts
|
|
179
|
+
|
|
180
|
+
A receipt is separate from ordinary posted/queued evidence. The owner explicitly initializes private state and starts a foreground collector; it is never installed as a service or started automatically. Run the following commands in an operator terminal. `serve` stays in the foreground until stopped.
|
|
181
|
+
|
|
182
|
+
```sh
|
|
183
|
+
session-peer receipt init --state-dir "$HOME/.session-peer-receipts" --json
|
|
184
|
+
session-peer receipt serve --state-dir "$HOME/.session-peer-receipts" --json
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
In another terminal, explicitly request receipt delegation. The recipient separately invokes the receipt-only handler with private stdin; the second command below does not obtain a receipt by itself. Use only producer tooling that can supply private stdin/FD data without putting the capability in shell command text, argv, environment, URI, public output or sender/collector files. The authorized recipient's native queue/history can retain it.
|
|
188
|
+
|
|
189
|
+
```sh
|
|
190
|
+
session-peer send --to claude:NAME --message "Receipt fixture" --request-ack --receipt-collector "$HOME/.session-peer-receipts/s" --wait-for acknowledged --wait-timeout 30 --json
|
|
191
|
+
session-peer receipt respond --collector "$HOME/.session-peer-receipts/s" --receipt - --json
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Receipt validation establishes delegated `token_possession`, not model identity, consumption or completion. Claude uses a separate v2 delegated receipt context with unknown native generation; Codex keeps generation-bound v1 and requires the qualified owned RPC route with private stdin. There is no token-bearing native `--message` fallback. Existing manual `operator_confirmed` evidence has a different assurance.
|
|
195
|
+
|
|
196
|
+
The collector is local and owner-private. Combined retained-capacity limits can refuse new receipt intents at about 511 small records; no automatic cleanup/reset discards history. Reverse SSH collectors and Windows managed storage remain unsupported. Each explicit wait has its own immutable deadline; status/wait can update private classifications but never submit another native message. Unknown outcomes never authorize automatic resend. Existing native/platform qualification limits still apply; fixture results are not live-agent receipt qualification.
|
|
165
197
|
|
|
166
198
|
## Requirements
|
|
167
199
|
|
|
@@ -185,11 +217,11 @@ npm run build
|
|
|
185
217
|
node dist/cli.js --version
|
|
186
218
|
npm pack --ignore-scripts
|
|
187
219
|
# Optional global install: first check which session-peer your PATH selects.
|
|
188
|
-
npm install --global --ignore-scripts ./session-peer-0.
|
|
220
|
+
npm install --global --ignore-scripts ./session-peer-0.6.0.tgz
|
|
189
221
|
session-peer --version
|
|
190
222
|
```
|
|
191
223
|
|
|
192
|
-
Expected for version 0.
|
|
224
|
+
Expected for version 0.6.0: `session-peer 0.6.0 (typescript)`. Keep the `./...tgz` path to
|
|
193
225
|
select the locally built artifact. Check the checkout version before using
|
|
194
226
|
these commands for a later release.
|
|
195
227
|
|
|
@@ -209,7 +241,7 @@ On Windows PowerShell, inspect competing commands with
|
|
|
209
241
|
npm ci --ignore-scripts
|
|
210
242
|
npm run build
|
|
211
243
|
npm pack --ignore-scripts
|
|
212
|
-
npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.
|
|
244
|
+
npm install --prefix "$env:TEMP\session-peer-ts-source" --ignore-scripts .\session-peer-0.6.0.tgz
|
|
213
245
|
& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version
|
|
214
246
|
# Later: npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer
|
|
215
247
|
```
|
|
@@ -474,7 +506,7 @@ separate approval. Licensed under [MIT](../LICENSE).
|
|
|
474
506
|
|
|
475
507
|
## Package release
|
|
476
508
|
|
|
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.
|
|
509
|
+
Public **0.3.2** was verified on 2026-10-07 KST ([immutable checkpoint](../VALIDATION.md#public-032--2026-10-07-kst)). Check current 0.6.0 availability and npm tags with the registry queries below; dated preparation evidence does not establish a later publication outcome.
|
|
478
510
|
|
|
479
511
|
Version 0.2.1 was published and verified on 2026-09-29 KST and 0.2.0 on
|
|
480
512
|
2026-09-28 KST; see the [0.2.1 public release record](../VALIDATION.md#public-021--2026-09-29-kst).
|
|
@@ -482,7 +514,7 @@ Later releases add their own dated records. Check the exact version and current
|
|
|
482
514
|
tags before installing:
|
|
483
515
|
|
|
484
516
|
```sh
|
|
485
|
-
npm view session-peer@0.
|
|
517
|
+
npm view session-peer@0.6.0 version dist.integrity
|
|
486
518
|
npm view session-peer dist-tags
|
|
487
519
|
```
|
|
488
520
|
|
|
@@ -534,7 +566,7 @@ and reports `current`, `latest`, `channel` (`latest` by default, or `preview`),
|
|
|
534
566
|
installation's owner is positively identified from the running CLI's path:
|
|
535
567
|
an npm global prefix whose own `session-peer` launcher points at this package
|
|
536
568
|
(default, Homebrew, nvm, nvm-windows and fnm prefixes), for example
|
|
537
|
-
`npm install --global --ignore-scripts session-peer@0.
|
|
569
|
+
`npm install --global --ignore-scripts session-peer@0.6.0`; a pnpm, Yarn or Bun
|
|
538
570
|
global store whose manifest declares `session-peer`; Volta; or the npx cache.
|
|
539
571
|
Project installs (`npm_project`, `pnpm_project`), source checkouts (`source`)
|
|
540
572
|
and anything else (`unknown`) get `updateCommand: null` and a `guidance`
|
|
@@ -635,4 +667,4 @@ Native observation supports exact Codex 0.160.1/0.162.1 on macOS arm64 with an a
|
|
|
635
667
|
|
|
636
668
|
[Observation](api.md#unreleased-local-delivery-observation--72)
|
|
637
669
|
|
|
638
|
-
Native delivery observation is unsupported on Linux and Windows. The 0.
|
|
670
|
+
Native delivery observation is unsupported on Linux and Windows. The 0.6.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. 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
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
# 用户指南 — session-peer (TypeScript)
|
|
2
2
|
|
|
3
|
+
普通 Codex 队列也会拒绝无法判定云端策略适用范围的上下文,包括存在 `auth.json` 的登录 home,并返回 `codex_cloud_storage_unverified`。不会读取凭据或缓存内容;另行验证的 owned app-server 路径仍需实际存储绑定证据。
|
|
4
|
+
|
|
5
|
+
此源码检查 Codex home、系统配置、macOS 管理配置,以及队列进程和目标进程实际工作目录所适用的项目配置。详见[存储检查范围与拒绝条件](api.md#codex-storage-configuration)。Windows 的 Codex 发送和 dry-run 在本地存储检查方式通过验证前会拒绝队列提交。doctor 和 dry-run 不执行 Codex,加载器版本仍标为未验证。
|
|
6
|
+
|
|
7
|
+
当前功能差异与移植决策见[注明日期的对照表](../PARITY.md#current-scoped-feature-matrix)。表中区分 TypeScript 已发布的功能与单独固定的 Python 比较基准。
|
|
8
|
+
|
|
3
9
|
[返回 README](../README.zh-CN.md)
|
|
4
10
|
|
|
5
11
|
[English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
|
|
6
12
|
|
|
7
|
-
**文档和源码版本:0.
|
|
13
|
+
**文档和源码版本:0.6.0。** 安装前,请审核所选发布版本和注册表元数据。按日期记录的准备与验证结果见 [VALIDATION.md](../VALIDATION.md),发布流程见 [RELEASING.md](../RELEASING.md)。SSH 两端必须使用相同的 TypeScript 客户端版本;0.3.6 与 0.6.0 会拒绝彼此的 SSH 预检。
|
|
8
14
|
|
|
9
|
-
**0.4.0 handoff 范围:** 可选 native 观测仅限 macOS arm64 上精确 Codex 0.160.1/0.162.1 版本;明确的 `operator_confirmed` 收件确认使用受支持的 POSIX ledger。Linux、Windows 的 native 观测和自动 ACK 收集仍不支持。 0.
|
|
15
|
+
**0.4.0 handoff 范围:** 可选 native 观测仅限 macOS arm64 上精确 Codex 0.160.1/0.162.1 版本;明确的 `operator_confirmed` 收件确认使用受支持的 POSIX ledger。Linux、Windows 的 native 观测和自动 ACK 收集仍不支持。 0.6.0 源码记录了不可选用的 Linux arm64 Codex 0.162.1 候选(固定的上游 `aarch64-unknown-linux-musl` 可执行文件、schema 及一次注入测试),但不启用 Linux 观测;Linux native 观测仍不支持。
|
|
10
16
|
|
|
11
|
-
这是 0.
|
|
17
|
+
这是 0.6.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 的说明用于旧版本对比。
|
|
12
18
|
|
|
13
19
|
<a id="迁移边界-033-候选"></a>
|
|
14
20
|
|
|
@@ -44,7 +50,7 @@
|
|
|
44
50
|
|
|
45
51
|
向正在运行的 **Claude Code 和 Codex 会话**发送消息,支持本机和跨机器 SSH。这是运行于 Node.js 的 TypeScript 客户端,不需要 Python。
|
|
46
52
|
|
|
47
|
-
**这是 0.
|
|
53
|
+
**这是 0.6.0 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
|
|
48
54
|
|
|
49
55
|
## 功能与边界
|
|
50
56
|
|
|
@@ -61,7 +67,7 @@
|
|
|
61
67
|
|
|
62
68
|
构建后,`node dist/cli.js list --json` 合并列出 Claude/Codex,`list --agent codex --json` 查找已知 home。公开 npm **0.1.0** 仍要求显式 agent,以及 Codex 列表所需的 home;0.2.0 也支持显式命令格式。
|
|
63
69
|
|
|
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.
|
|
70
|
+
范围仅限默认 `~/.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.6.0)。
|
|
65
71
|
|
|
66
72
|
### 0.2.0 CLI 易用性
|
|
67
73
|
|
|
@@ -75,6 +81,32 @@ Unicode 14.0.0 默认 full casefold 精确匹配,不进行规范化或模糊
|
|
|
75
81
|
冲突时须指定 PID。这些源码功能不会追溯到已经发布的 0.1.0 包。
|
|
76
82
|
|
|
77
83
|
|
|
84
|
+
### macOS 上的 Claude 配置档案
|
|
85
|
+
|
|
86
|
+
如果 `CLAUDE_CONFIG_DIR` 和 `ANTHROPIC_CONFIG_DIR` 都没有非空值,Claude 探索除 `~/.claude/sessions` 外,还会检查 `~/Library/Application Support/orca/claude-profiles` 下各直接子档案的 `home/sessions`。显式设置环境变量时只使用指定的会话登记目录。Linux 和 Windows 不会扫描这一 macOS 路径。配置档案数和登记项数均有上限。自动发现的配置档案目录和登记文件必须归当前用户所有,且其他用户或用户组不可写入;不满足安全条件的来源会使探索被标记为不完整。对 macOS 自动探索来源的扩展 ACL(额外访问权限)一律保守拒绝,包括仅指定所有者的 ACL。检查使用受限的系统元数据工具,不执行代理。
|
|
87
|
+
|
|
88
|
+
其他探索来源出错时,已读取的会话仍保留在列表中,同时返回探索不完整的诊断信息和失败退出码。发送和发件人识别要求信息完整且无冲突。指向同一实际登记目录的别名可以合并为一行;PID 或收件端点信息冲突时,不会按目录顺序或指定 PID 来决定目标。选择和 handoff 连续性检查保留原始登记信息的依据,并在提交前重新检查。列表和 dry-run 不连接收件端点。这些检查不证明 native 代次、消息消费或收讫确认 ACK。
|
|
89
|
+
|
|
90
|
+
### 显式本地收讫确认
|
|
91
|
+
|
|
92
|
+
receipt 与通常的 posted/queued 提交依据分开。所有者显式初始化私有状态,并手动启动前台 collector;不会注册服务或自动启动。以下 `serve` 会持续运行,直到所有者将其停止。
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
session-peer receipt init --state-dir "$HOME/.session-peer-receipts" --json
|
|
96
|
+
session-peer receipt serve --state-dir "$HOME/.session-peer-receipts" --json
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
在另一个终端中显式请求委托 receipt 权限。接收方必须通过私有 stdin 单独调用 receipt 专用 handler。下面第二个命令不会自行获取 receipt。只能使用能够通过私有 stdin/FD 传输令牌的 producer,不得把令牌放入 shell 命令文本、参数、环境变量、URI、公开输出或发送方/collector 的文件中。获准接收方的 native 队列和历史记录可能保留令牌。
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
session-peer send --to claude:NAME --message "Receipt fixture" --request-ack --receipt-collector "$HOME/.session-peer-receipts/s" --wait-for acknowledged --wait-timeout 30 --json
|
|
103
|
+
session-peer receipt respond --collector "$HOME/.session-peer-receipts/s" --receipt - --json
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
`token_possession` 仅证明持有获委托的令牌,不证明模型身份、消息消费或任务完成。Claude 使用单独的 v2 delegated receipt context,native 代次仍未知。Codex 保持绑定原始代次的 v1,仅允许使用私有 stdin 的已验证 owned RPC 路径;不会退回到把令牌放入 native `--message` 参数的路径。它也不同于现有的手动 `operator_confirmed` 依据。
|
|
107
|
+
|
|
108
|
+
collector 仅限同一设备上的所有者私有路径。保留容量的限制共同生效,小记录约 511 条时就可能拒绝新的收讫确认请求;不会通过自动清理或重置丢弃历史记录。反向 SSH collector 和 Windows managed storage 仍不支持。每次显式 wait 保留自己的截止时间。status/wait 可以记录私有状态分类,但不重新提交 native 消息。未知结果不会触发自动重发。现有 native/平台验证范围保持不变;fixture 成功不代表已验证真实代理的 receipt。
|
|
109
|
+
|
|
78
110
|
## 环境要求
|
|
79
111
|
|
|
80
112
|
macOS、Linux 或 Windows native;Node **22.x 中的 22.13 及以上,或 24.x**。不支持 Node 26。原生锁依赖需要匹配的 x64/arm64 预编译二进制,本包不是纯 JavaScript 实现。Codex 发送需要 `codex`,macOS/Linux 还需要 `lsof`、`ps`;Windows 使用原生锁和 Restart Manager 验证所有者。Claude 需要运行中的 TUI 及可访问的原生 inbox。SSH 使用已有密钥和主机信任,远端必须安装**同版本**客户端。
|
|
@@ -83,15 +115,15 @@ macOS、Linux 或 Windows native;Node **22.x 中的 22.13 及以上,或 24.x
|
|
|
83
115
|
|
|
84
116
|
使用 Node 22.x 的 22.13 及以上或 24.x,并确认要安装的确切版本是否已发布。Python CLI 也使用同一个命令名;若已有安装,请先检查 PATH。
|
|
85
117
|
|
|
86
|
-
**安装 0.
|
|
118
|
+
**安装 0.6.0:** 运行 npm 安装或更新示例前,请确认注册表可用性并审核所选发布版本。如该版本不可用,请使用[已审核的源码构建](#从源码构建)。
|
|
87
119
|
|
|
88
120
|
```sh
|
|
89
|
-
npm view session-peer@0.
|
|
90
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
121
|
+
npm view session-peer@0.6.0 version dist.integrity
|
|
122
|
+
npm install --global --ignore-scripts session-peer@0.6.0
|
|
91
123
|
session-peer --version
|
|
92
124
|
```
|
|
93
125
|
|
|
94
|
-
预期输出:`session-peer 0.
|
|
126
|
+
预期输出:`session-peer 0.6.0 (typescript)`。
|
|
95
127
|
|
|
96
128
|
1. 用 `session-peer list --agent claude --json` 查找目标并选择准确 PID。
|
|
97
129
|
2. 用 `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` 验证,不提交。
|
|
@@ -110,7 +142,7 @@ npm run build
|
|
|
110
142
|
node dist/cli.js --version
|
|
111
143
|
npm pack --ignore-scripts
|
|
112
144
|
# 可选:全局安装前先检查 PATH 选择的现有命令
|
|
113
|
-
npm install --global --ignore-scripts ./session-peer-0.
|
|
145
|
+
npm install --global --ignore-scripts ./session-peer-0.6.0.tgz
|
|
114
146
|
session-peer --version
|
|
115
147
|
```
|
|
116
148
|
|
|
@@ -120,7 +152,7 @@ session-peer --version
|
|
|
120
152
|
|
|
121
153
|
安装前后用 `type -a session-peer` 和 `command -v session-peer` 检查实际执行项。其他实现也可能提供同名命令;请选择 PATH 上的一种,或显式运行 `node /absolute/path/dist/cli.js`。不要用 `--force` 覆盖其他管理器的文件。本包不会自动安装、删除或调整 Python 包、技能或服务。卸载使用 `npm uninstall --global session-peer`,随后再次检查 PATH。
|
|
122
154
|
|
|
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.
|
|
155
|
+
在 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.6.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` 卸载。
|
|
124
156
|
|
|
125
157
|
## 使用
|
|
126
158
|
|
|
@@ -211,14 +243,14 @@ Python 只用作开发时的比较基准(v1.1.0,`8ca77cf31254c8287a2593fe484
|
|
|
211
243
|
|
|
212
244
|
## npm 版本
|
|
213
245
|
|
|
214
|
-
公开 **0.3.2** 于 2026-10-07 KST 完成验证([不可变公开记录](../VALIDATION.md#public-032--2026-10-07-kst))。请用下方注册表查询确认 0.
|
|
246
|
+
公开 **0.3.2** 于 2026-10-07 KST 完成验证([不可变公开记录](../VALIDATION.md#public-032--2026-10-07-kst))。请用下方注册表查询确认 0.6.0 的当前可用性和 npm 标签;带日期的准备证据不能证明后续发布结果。
|
|
215
247
|
|
|
216
248
|
0.2.1 已于 2026-09-29 KST、0.2.0 已于 2026-09-28 KST 公开并验证。请参阅
|
|
217
249
|
[0.2.1 公开记录](../VALIDATION.md#public-021--2026-09-29-kst)(之后的版本各自追加带日期的记录),
|
|
218
250
|
安装前核对准确版本与当前标签。
|
|
219
251
|
|
|
220
252
|
```sh
|
|
221
|
-
npm view session-peer@0.
|
|
253
|
+
npm view session-peer@0.6.0 version dist.integrity
|
|
222
254
|
npm view session-peer dist-tags
|
|
223
255
|
```
|
|
224
256
|
|
|
@@ -257,7 +289,7 @@ dist-tag(3 秒超时,不重试),并报告 `current`、`latest`、`channe
|
|
|
257
289
|
`ahead`)、`managedBy`、`updateCommand` 和 `guidance`。只有根据当前 CLI 路径能确切识别
|
|
258
290
|
安装的管理方时才给出命令:其自身 `session-peer` 启动器指向本包的 npm 全局 prefix
|
|
259
291
|
(默认、Homebrew、nvm、nvm-windows、fnm,例如
|
|
260
|
-
`npm install --global --ignore-scripts session-peer@0.
|
|
292
|
+
`npm install --global --ignore-scripts session-peer@0.6.0`),清单中声明了
|
|
261
293
|
`session-peer` 的 pnpm、Yarn、Bun 全局存储,Volta,或 npx 缓存。项目安装
|
|
262
294
|
(`npm_project`、`pnpm_project`)、源码检出(`source`)以及其他情况(`unknown`)只返回
|
|
263
295
|
`updateCommand: null` 和一句 `guidance`,因此不会给出可能修改无关当前目录的命令。它只报告
|
|
@@ -339,4 +371,4 @@ native 观测仅支持 macOS arm64 上的精确 Codex 0.160.1/0.162.1 和已有
|
|
|
339
371
|
|
|
340
372
|
[Observation](api.md#unreleased-local-delivery-observation--72)
|
|
341
373
|
|
|
342
|
-
Linux、Windows 的 native 注入观察尚不支持。 0.
|
|
374
|
+
Linux、Windows 的 native 注入观察尚不支持。 0.6.0 源码记录了不可选用的 Linux arm64 Codex 0.162.1 候选(固定的上游 `aarch64-unknown-linux-musl` 可执行文件、schema 及一次注入测试),但不启用 Linux 观测;Linux 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.6.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.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -39,9 +39,11 @@
|
|
|
39
39
|
],
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsc -p tsconfig.json",
|
|
42
|
-
"
|
|
42
|
+
"version:check": "node scripts/current-version.mjs --check",
|
|
43
|
+
"version:update": "node scripts/current-version.mjs --update",
|
|
44
|
+
"test": "npm run build && npm run test:types && node --import ./test/fixtures/isolate-env.mjs --experimental-strip-types --test --test-concurrency=1 test/*.test.ts",
|
|
43
45
|
"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/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/windows-process-tree.test.ts test/windows-storage.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 test/ssh-jump-windows.test.ts",
|
|
46
|
+
"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/claude-profiles.test.ts test/reply-agent-binding.test.ts test/windows.test.ts test/windows-contract.test.ts test/windows-inspection.test.ts test/windows-process-tree.test.ts test/windows-storage.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 test/ssh-jump-windows.test.ts && node --import ./test/fixtures/isolate-env.mjs --experimental-strip-types --test --test-name-pattern=Windows.Codex.send.and.dry-run test/codex-storage.test.ts && node --import ./test/fixtures/isolate-env.mjs --experimental-strip-types --test test/current-version.test.ts test/receipt-protocol.test.ts test/receipt-state.test.ts test/receipt-collector.test.ts test/receipt-command.test.ts test/receipt-send.test.ts test/receipt-transport-boundaries.test.ts test/receipt-acl.test.ts test/receipt-cli.test.ts test/receipt-producer.test.ts",
|
|
45
47
|
"test:package": "npm run build && node --experimental-strip-types test/package-smoke.ts"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|