session-peer 0.3.1 → 0.3.3
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 +114 -20
- package/README.ja.md +13 -5
- package/README.ko.md +77 -52
- package/README.md +13 -5
- package/README.zh-CN.md +13 -5
- package/RELEASING.md +128 -6
- package/SECURITY.md +1 -1
- package/VALIDATION.md +236 -4
- package/dist/cli.js +12 -33
- package/dist/diagnostics.js +3 -32
- package/dist/output.js +6 -0
- package/dist/process.d.ts +4 -0
- package/dist/process.js +34 -16
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +1 -1
- package/dist/skill-metadata.d.ts +10 -0
- package/dist/skill-metadata.js +142 -0
- package/dist/ssh-response.d.ts +18 -0
- package/dist/ssh-response.js +201 -0
- package/docs/api.md +8 -3
- package/docs/design/ordinary-ssh-responses.md +37 -0
- package/docs/design/remote-deployment.md +47 -21
- package/docs/design/typescript-skill-compatibility.md +73 -0
- package/docs/guide.ja.md +37 -10
- package/docs/guide.ko.md +250 -149
- package/docs/guide.md +69 -11
- package/docs/guide.zh-CN.md +37 -10
- package/docs/shorthand.md +2 -0
- package/package.json +2 -2
package/PARITY.md
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
# Python compatibility and npm migration
|
|
2
2
|
|
|
3
|
-
Updated 2026-10-
|
|
3
|
+
Updated 2026-10-09 KST. Python reference: **1.0.2**,
|
|
4
4
|
[`47c2371`](https://github.com/abruption/session-peer/tree/47c23713d0a2a3c11ebde6186afd8c43489b8b65/session_peer_core).
|
|
5
|
-
This matrix describes **TS 0.3.
|
|
5
|
+
This matrix describes the **TS 0.3.3 source/package contract**: the 0.2.0 unified listing, safe home selection,
|
|
6
6
|
read-only doctor, text/help/positional input, Unicode 14.0.0 name matching and
|
|
7
7
|
separately managed TS skill guidance (#16/#17/#18/#19/#25), the
|
|
8
8
|
[0.2.1 reliability and hardening](#021-reliability-and-hardening) changes, and the
|
|
9
9
|
[0.3.0 remote usability and maintenance](#030-remote-usability-and-maintenance)
|
|
10
|
-
changes with their known limitations. Historical **0.1.0**
|
|
10
|
+
changes with their known limitations, plus the [bounded ordinary SSH correction](#ordinary-ssh-response-correction--033-candidate) and [proposed skill guard](#typescript-skill-guard--033-candidate). At the 2026-10-09 KST preparation checkpoint, public npm `latest` was **0.3.2** and `preview` was `0.1.0-preview.1`. Historical **0.1.0**
|
|
11
11
|
differences are called out explicitly. Public availability and tags must be
|
|
12
12
|
checked in the registry; this document does not assert a publication outcome.
|
|
13
|
-
SSH
|
|
14
|
-
|
|
13
|
+
SSH preflight enforces the exact same TS version banner. For builds from source
|
|
14
|
+
between releases, operators should also align reviewed commits; the wire does not
|
|
15
|
+
verify a source commit. `referenceVersion: "1.0.2"` identifies the comparison baseline,
|
|
15
16
|
not complete parity. See [VALIDATION.md](VALIDATION.md) for dated evidence.
|
|
16
17
|
|
|
17
18
|
## Feature and command matrix
|
|
@@ -27,13 +28,13 @@ not a missing implementation. Issue links describe work, not available features.
|
|
|
27
28
|
| `list` selection | Unified agent list; optional agent; bounded multiple Codex homes; partial discovery diagnostics | Source: combined Claude/Codex by default, optional agent/home filters, bounded multi-home inventory and partial diagnostics. Published 0.1.0 still requires an agent and explicit Codex home | Implemented in source for [#16](https://github.com/abruption/session-peer-ts/issues/16), 0.2.0; no Antigravity adapter |
|
|
28
29
|
| Codex active queue | Saved UUID, unique live writer, real lock/owner checks, pre-submit revalidation | Source: same protections, full UUID, implicit unique-live selection or explicit home; all known candidates checked | Implemented in source for [#17](https://github.com/abruption/session-peer-ts/issues/17), 0.2.0 |
|
|
29
30
|
| Implicit home / inactive queue | Select unique live home; explicit inactive opt-in under separate guards | Source: unique live selection; explicit saved inactive home with opt-in and verified inactive candidates. Public 0.1.0 has neither | Implemented in source for #17, 0.2.0; no wake/resume |
|
|
30
|
-
| `doctor` | Readiness diagnostics; return-route check is opt-in | Source: read-only local/SSH metadata, per-agent/home results, capabilities and bounded TS skill compatibility. Published 0.1.0 has no doctor | Implemented in source for [#18](https://github.com/abruption/session-peer-ts/issues/18), 0.2.0;
|
|
31
|
+
| `doctor` | Readiness diagnostics; return-route check is opt-in | Source: read-only local/SSH metadata, per-agent/home results, capabilities and bounded TS skill compatibility. Published 0.1.0 has no doctor | Implemented in source for [#18](https://github.com/abruption/session-peer-ts/issues/18), 0.2.0 base diagnostics; opt-in `doctor --check-return-route` added in 0.3.0 (#21) |
|
|
31
32
|
| CLI input, help and names | Human text or JSON; positional or named/stdin message; Unicode casefold matching | 0.2.0: explicit JSON/text format, positional/named/stdin body, command help, exact Unicode 14.0.0 casefold with PID for ambiguity | Implemented; [#19](https://github.com/abruption/session-peer-ts/issues/19), 0.2.0. Published 0.1.0 help still says “preview”; source help now describes unified list |
|
|
32
33
|
| From / Reply-To | Caller detection, automatic return-route metadata, structured URI resolution | 0.2.1 and earlier: From uses Codex environment UUID only; explicit `--reply-address`; local/SSH Reply-To URI parsing with conflict checks. 0.3.0: Claude/Codex sender detection, generated routes, `--reply-to`, same-user self normalization, Tailscale routing hint and `doctor --check-return-route` ([details](#sender-context-and-return-routes-unreleased-source)) | Implemented for [#21](https://github.com/abruption/session-peer-ts/issues/21); no Antigravity identity, no executable `Reply:` line, 0.3.0 |
|
|
33
34
|
| SSH | Python source streamed to POSIX remote Python; multiple hosts/options/host metadata | Same-version installed TS CLI required; strict preflight; JSON stdin; explicit Windows PowerShell path. 0.3.0: ordered repeated `--host`, allowlisted `--ssh-opt`, typed single-hop `--ssh-jump` (POSIX clients), IPv6 literals and `sshUser`/`sshUserSource` ([details](#multi-host-ssh-and-connection-options-unreleased-source)) | Partial; [#20](https://github.com/abruption/session-peer-ts/issues/20) (no arbitrary options or multi-hop; `--ssh-jump` refused on Windows clients; Tailscale routing hint in #21), [#23](https://github.com/abruption/session-peer-ts/issues/23) deployment/version design ([proposed ADR](docs/design/remote-deployment.md)), 0.3.0 |
|
|
34
35
|
| Updates | Cached advisory client/skill notices (on by default); GitHub release check; standalone self-update and remote push; package-manager guidance | 0.3.0: `update --check` reads npm dist-tags (`latest`/`preview`) with installation-manager guidance; no self-update or remote update; cached client notices are opt-in (`SESSION_PEER_UPDATE_NOTICE=1`), honor `--no-update-notice`/`SESSION_PEER_NO_UPDATE_NOTICE`; no skill notices. 0.2.1 only accepts `--no-update-notice` as a no-op | Partial for [#22](https://github.com/abruption/session-peer-ts/issues/22), 0.3.0; [update boundaries](#source-update-checks--22) |
|
|
35
36
|
| Reusable execution API | Agent/transport capability adapters | Package root exposes pure protocol helpers only; no general typed execution API | Planned [#24](https://github.com/abruption/session-peer-ts/issues/24), Future — Agent integrations |
|
|
36
|
-
| Skill guidance/setup | Companion `session-peer` skill targets Python | Separate `session-peer-ts` companion PR and exact-commit setup; baseline/version/help gates |
|
|
37
|
+
| Skill guidance/setup | Companion `session-peer` skill targets Python | Separate `session-peer-ts` companion PR and exact-commit setup; baseline/version/help gates | Legacy metadata profile from [#25](https://github.com/abruption/session-peer-ts/issues/25); guidance refresh/guard coordination in [#118](https://github.com/abruption/session-peer-ts/issues/118) |
|
|
37
38
|
| MCP | Optional extra, restricted destinations; separate wake permission | Unsupported | Planned [#26](https://github.com/abruption/session-peer-ts/issues/26), Future — Agent integrations |
|
|
38
39
|
| Codex wake | Explicit opt-in; platform/version gates; may run a model and alter history | Unsupported; queued does not wake or prove consumption | Planned [#27](https://github.com/abruption/session-peer-ts/issues/27), Future — Agent integrations |
|
|
39
40
|
| Antigravity | Experimental registered bridge generation/inbox contract | Unsupported | Planned [#28](https://github.com/abruption/session-peer-ts/issues/28), Future — Agent integrations |
|
|
@@ -41,7 +42,7 @@ not a missing implementation. Issue links describe work, not available features.
|
|
|
41
42
|
| Relay server / hosted control service | Separate infrastructure and deployment | Not part of the TS CLI deliverable | Deliberately different scope; #29 must define client boundaries before implementation |
|
|
42
43
|
| Wait / general ACK / exactly-once consumption | No general CLI wait/ACK or exactly-once consumption guarantee | No general CLI wait/ACK or exactly-once consumption guarantee | Shared limit, not a TS parity gap; paired-device deduplication is not end-to-end consumption |
|
|
43
44
|
|
|
44
|
-
|
|
45
|
+
Historical 0.2.0 source anchors and the unchanged Python oracle:
|
|
45
46
|
[TS CLI](https://github.com/abruption/session-peer-ts/blob/0edc4f8ae05256698f591b7402e89cd3d5858eef/src/cli.ts),
|
|
46
47
|
[writer](https://github.com/abruption/session-peer-ts/blob/0edc4f8ae05256698f591b7402e89cd3d5858eef/src/writer.ts),
|
|
47
48
|
[send](https://github.com/abruption/session-peer-ts/blob/0edc4f8ae05256698f591b7402e89cd3d5858eef/src/send.ts),
|
|
@@ -137,7 +138,7 @@ TS normal envelopes have `schemaVersion`, `host`, `command`, `ok`, `version`,
|
|
|
137
138
|
| --- | --- | --- |
|
|
138
139
|
| `list.sessions`, `discovery` | Unified/per-agent and per-home diagnostics; partial results can remain with `ok:false` | Source: Claude rows then Codex rows; readable homes survive failed homes/agents with `ok:false`, exit 1. Published 0.1.0 has only selected-agent/single-home results |
|
|
139
140
|
| `send.status`, `submitted` | Submission/wake/transport-specific details; do not assume a uniform error shape | `validated:false`, `posted:true` (Claude), `queued:true` (Codex); caught refusal is `refused:false`, unknown is `unknown:null` |
|
|
140
|
-
| `consumptionConfirmed` |
|
|
141
|
+
| `consumptionConfirmed` | Optional and transport-specific; never infer a missing value as false or confirmation | Always false on send results, including refusal/unknown |
|
|
141
142
|
| `target`, `chars`, `dryRun`, `codexHome` | Target and home details depend on agent; Codex target includes `id`/`name`, with separate `agent` | Success/dry-run target has `agent` plus `id` or `pid`/`name`; `chars` counts enveloped code points; `codexHome` only on Codex success/dry-run |
|
|
142
143
|
| `queueId` | Present if native queue stdout supplies an ID | Source #17: optional bounded native confirmation ID on successful queue only; absent in public 0.1.0 |
|
|
143
144
|
| `codexHomeResolution` | Resolution diagnostics on Codex success and some refusals | Source #17: sanitized resolution on success and failures after resolution begins; private owner fingerprints remain internal. Absent in public 0.1.0 |
|
|
@@ -161,6 +162,60 @@ Output sources: TS CLI/send above; Python
|
|
|
161
162
|
[Codex queue/wake](https://github.com/abruption/session-peer/blob/47c23713d0a2a3c11ebde6186afd8c43489b8b65/session_peer_core/codex.py),
|
|
162
163
|
[SSH errors](https://github.com/abruption/session-peer/blob/47c23713d0a2a3c11ebde6186afd8c43489b8b65/session_peer_core/ssh.py).
|
|
163
164
|
|
|
165
|
+
## Ordinary CLI migration notes — #117
|
|
166
|
+
|
|
167
|
+
This comparison excludes Relay/MCP and paired-device transports. The existing
|
|
168
|
+
Python 1.0.2 oracle and `referenceVersion` stay unchanged. A separate fixed-source
|
|
169
|
+
review on 2026-10-09 uses published Python 1.0.3
|
|
170
|
+
[`0d252550`](https://github.com/abruption/session-peer/tree/0d252550ab40c26d1ac4a19193df6ca2f84d830b)
|
|
171
|
+
and TS 0.3.2 [`f335f073`](https://github.com/abruption/session-peer-ts/tree/f335f07352c842f2f6ceb12bd2ca6274b52f69f7)
|
|
172
|
+
for migration guidance, not byte/shape parity or a runtime-reference repin.
|
|
173
|
+
|
|
174
|
+
- Python's [Claude adapter](https://github.com/abruption/session-peer/blob/0d252550ab40c26d1ac4a19193df6ca2f84d830b/session_peer_core/adapters.py)
|
|
175
|
+
returns `ok`, `target`, `chars` and `dryRun`; ordinary Claude results can omit
|
|
176
|
+
`status`, `submitted` and `consumptionConfirmed`. TS emits `validated` with
|
|
177
|
+
`submitted:false` for dry-run and `posted` with `submitted:true` after inbox
|
|
178
|
+
submission, always with `consumptionConfirmed:false`. Claude `target.name`
|
|
179
|
+
may be null. Codex queue IDs are optional; none of these facts confirms ACK.
|
|
180
|
+
- Missing Claude session directories yield an empty list and discovery
|
|
181
|
+
`status:ok`; optional missing Codex homes yield `absent`, and no readable DB
|
|
182
|
+
with no errors yields `not_installed`. These are discovery states, not proof
|
|
183
|
+
that an agent executable or inbox is ready. Doctor completion is separate
|
|
184
|
+
from `ready`, and neither grants send authorization.
|
|
185
|
+
- Repeated SSH hosts produce ordered per-host results; an operational failure
|
|
186
|
+
during per-host dispatch makes exit 1. Command-wide refusals before dispatch
|
|
187
|
+
(for example duplicate hosts or an empty message) retain exit 2, including
|
|
188
|
+
when rendered as an array. A single host stays flat. Presence, `ok`, status and exit must be interpreted
|
|
189
|
+
separately. The shipped 0.3.2 SSH path can classify even complete stdout as
|
|
190
|
+
unknown after exit 255 or timeout: [#115](https://github.com/abruption/session-peer-ts/issues/115)
|
|
191
|
+
and [#116](https://github.com/abruption/session-peer-ts/issues/116) track the
|
|
192
|
+
correction and strict response parsing. This document does not claim those
|
|
193
|
+
fixes have shipped. Unknown never permits automatic resend or fallback.
|
|
194
|
+
- TS supports manager-owned npm update checks, not Python's standalone
|
|
195
|
+
self-update or remote maintenance. Client notices are off by default; opt-out
|
|
196
|
+
wins over opt-in, but explicit `update --check` still requests the registry.
|
|
197
|
+
Runtime, remote installation and skill maintenance remain separate.
|
|
198
|
+
- TS normalizes a self SSH Reply-To only for an explicit matching OS user and
|
|
199
|
+
a recognized exact local name, with no explicit SSH option. Conflicting
|
|
200
|
+
Claude/Codex sender evidence omits identity instead of choosing Claude first;
|
|
201
|
+
unusable Claude names fall back to PID. An explicit return-route check runs a
|
|
202
|
+
reverse SSH no-op only for a usable non-local destination. A self route instead
|
|
203
|
+
returns `verified`, `transport:local`, `self_route_normalized` without SSH; a
|
|
204
|
+
missing host fails before a probe. `verified` therefore means local
|
|
205
|
+
normalization or one successful SSH no-op, not receipt authentication, general
|
|
206
|
+
reverse access or agent consumption.
|
|
207
|
+
- Stronger TS storage, registry and output guards are intentional; migration
|
|
208
|
+
does not relax them to reproduce Python behavior. General native ACK/wait,
|
|
209
|
+
end-to-end deduplication and Side Session support are not public ordinary-CLI
|
|
210
|
+
features in either compared release. Historical wake tests for native Codex
|
|
211
|
+
0.154.0 do not qualify a current native CLI.
|
|
212
|
+
- The separately pinned TS companion retains legacy metadata `0.1.0`.
|
|
213
|
+
Its repository tag and the Python skill version are different version trains.
|
|
214
|
+
[#118](https://github.com/abruption/session-peer-ts/issues/118) requires a
|
|
215
|
+
reviewed metadata profile, an actually published runtime guard, then separate
|
|
216
|
+
skill approval/publication before replacing the install pin. A Draft content
|
|
217
|
+
candidate is not an approved install source or proof of doctor compatibility.
|
|
218
|
+
|
|
164
219
|
## Transport, size and failure boundaries
|
|
165
220
|
|
|
166
221
|
| Boundary | Python 1.0.2 | TS (source differences noted) |
|
|
@@ -185,12 +240,13 @@ Windows support, WSL/POSIX SSH and TS native Windows SSH are separate paths.
|
|
|
185
240
|
`Get-Command session-peer -All` (PowerShell), then `session-peer --version`.
|
|
186
241
|
Record the Python interpreter/venv or owning uv/pipx/package manager before
|
|
187
242
|
changing PATH. Do not delete another manager's files or overwrite its shim.
|
|
188
|
-
2. **Install the chosen version explicitly after checking registry availability.**
|
|
189
|
-
`npm
|
|
243
|
+
2. **Install the chosen version explicitly after checking registry availability.** The [public 0.3.2 record](VALIDATION.md#public-032--2026-10-07-kst) pins its source and artifact verified on 2026-10-07 KST. If 0.3.3 is unavailable in the registry, use a reviewed source build.
|
|
244
|
+
Check `npm view session-peer@0.3.3 version dist.integrity`, then use
|
|
245
|
+
`npm install --global --ignore-scripts session-peer@0.3.3`.
|
|
190
246
|
Verify the resolved command/version again. An isolated npm prefix and explicit
|
|
191
247
|
launcher path allow side-by-side evaluation. Install any desired skill
|
|
192
248
|
separately using the exact reviewed commit, explicit agent and scope in the
|
|
193
|
-
[
|
|
249
|
+
[guide](docs/guide.md#agent-skill-explicit-installation). The original companion
|
|
194
250
|
`session-peer` skill targets Python; use distinct `session-peer-ts` guidance.
|
|
195
251
|
Check implementation and supported help; 0.1.0 development builds historically shared their version string with the public baseline.
|
|
196
252
|
3. **Make selection and output explicit.** Replace bare `list` with
|
|
@@ -308,10 +364,11 @@ This patch is not in the immutable npm 0.3.0 archive.
|
|
|
308
364
|
|
|
309
365
|
## Source read-only doctor — #18 / 0.2.0
|
|
310
366
|
|
|
311
|
-
|
|
367
|
+
Historical base-doctor evidence date: 2026-09-28. Introduced in 0.2.0,
|
|
368
|
+
`doctor --json [--agent claude|codex]` supports local
|
|
312
369
|
inspection and the existing version-checked SSH/stdin JSON transport. Published
|
|
313
370
|
npm 0.1.0 does not contain this command. Both SSH endpoints must use the same
|
|
314
|
-
|
|
371
|
+
TS version; reviewed commit alignment for source builds remains the operator's responsibility, not a wire-level commit check.
|
|
315
372
|
|
|
316
373
|
`ok:true`, exit 0 and `diagnosticCompleted:true` mean the diagnostic command
|
|
317
374
|
completed, including when agents are unavailable. `ready` is a metadata
|
|
@@ -339,13 +396,16 @@ These are implementation capabilities, not evidence of agent readiness or ACK.
|
|
|
339
396
|
|
|
340
397
|
`skills` inspects only `~/.agents/skills/session-peer-ts/SKILL.md` and
|
|
341
398
|
`<explicit home, CODEX_HOME, or ~/.codex>/skills/session-peer-ts/SKILL.md`.
|
|
342
|
-
No skill installation or reference traversal occurs. The #25 TS skill contract
|
|
399
|
+
No skill installation or reference traversal occurs. The legacy #25 TS skill contract
|
|
343
400
|
requires metadata version/min/full `0.1.0`, implementation `typescript`, and
|
|
344
401
|
capability policy `probe-help`; missing/malformed/incompatible metadata is
|
|
345
402
|
reported separately and does not change agent readiness. This conservative
|
|
346
403
|
metadata check does not certify instruction content. Generic Python
|
|
347
|
-
`session-peer` skills are not inferred compatible.
|
|
348
|
-
|
|
404
|
+
`session-peer` skills are not inferred compatible. Since 0.3.0, the separate
|
|
405
|
+
opt-in `doctor --check-return-route` can execute a bounded reverse SSH no-op
|
|
406
|
+
([current behavior](#sender-context-and-return-routes--21--030)); base doctor
|
|
407
|
+
does not run that probe. `--check-reply-to` is not an alias and is unsupported.
|
|
408
|
+
Neither mode observes a reply or authenticates an ACK.
|
|
349
409
|
|
|
350
410
|
Acceptance evidence: `test/diagnostics.test.ts` ports Python diagnostic cases for
|
|
351
411
|
missing homes/tools, unsupported schema, per-home results, permission/unknown
|
|
@@ -387,7 +447,9 @@ name/PID selection with collisions, and text escaping on all CI platforms.
|
|
|
387
447
|
|
|
388
448
|
Evidence date: 2026-09-28. TS CLI baseline for this work is `8289da7`; companion
|
|
389
449
|
candidate is [`081cc3c1d16a394bd92824333f4bc61c36951799`](https://github.com/abruption/session-peer-skill/tree/081cc3c1d16a394bd92824333f4bc61c36951799/session-peer-ts).
|
|
390
|
-
This
|
|
450
|
+
This paragraph records the 2026-09-28 source review, not current repository-tag
|
|
451
|
+
availability. Companion PR #14 was later merged; its separately pinned TS
|
|
452
|
+
metadata remains 0.1.0, and #118 owns any successor contract/pin. Published
|
|
391
453
|
npm 0.1.0 remains unchanged. There is no runtime setup subcommand: user-invoked
|
|
392
454
|
Skills CLI 1.7.0 is the reviewed setup path, with an exact commit, explicit agent,
|
|
393
455
|
and explicit project/user scope chosen before running the documented command.
|
|
@@ -487,7 +549,14 @@ endpoints refuse each other at preflight; upgrade them together.
|
|
|
487
549
|
is verified. No multi-hop and no arbitrary ssh options.
|
|
488
550
|
- **#23 — Partial.** The remote deployment ADR is a proposal. Its POSIX cell
|
|
489
551
|
was exercised by hand ([record](VALIDATION.md#remote-deployment-workflow-posix-cell-23-f5--2026-10-02-kst));
|
|
490
|
-
|
|
552
|
+
that dated Linux run did not exercise the later receipt/recovery rules.
|
|
553
|
+
The [2026-10-07 Windows record](VALIDATION.md#windows-ssh-destination-f5--2026-10-07-kst)
|
|
554
|
+
adds bounded published-0.3.1 qualification on Windows 10 x64, an administrator
|
|
555
|
+
account, PowerShell 5.1 and Node 24.16.0: offline provisioning, wrapper/native
|
|
556
|
+
locking, operator doctor and nonexistent-target dry-run, plus 31 local storage
|
|
557
|
+
fixtures. Node 22 has banner/native-lock smoke only, not the full matrix.
|
|
558
|
+
Non-admin, other architectures, F6 runtime-identity enforcement and the Linux
|
|
559
|
+
current-rule gaps remain open. No 0.3.2 live ACK or deploy helper is established.
|
|
491
560
|
- **Update notices (#22).** The Windows refresh, refresh-failure and
|
|
492
561
|
forged-`clientUpdate` (injection) cells are unverified; Windows CI covers only
|
|
493
562
|
the array/flat shape and one text stderr line. Those cases have POSIX fixture
|
|
@@ -625,7 +694,7 @@ Scope: notices belong to the invoking client. With `--host`, the client adds
|
|
|
625
694
|
`clientUpdate` (or its stderr line) to its own top-level output, including the
|
|
626
695
|
verified result obtained over SSH; the `--stdio-request` receiver never reads,
|
|
627
696
|
refreshes or produces a notice. The notice is computed once per invocation.
|
|
628
|
-
Multi-host and failures (integration
|
|
697
|
+
Multi-host and failures (shipped 0.3.0 integration with #20/#21):
|
|
629
698
|
|
|
630
699
|
- Repeated `--host` JSON array: request order and every element's exact shape are
|
|
631
700
|
kept; no `clientUpdate` in elements and no wrapper object.
|
|
@@ -725,3 +794,28 @@ Python/TS co-installation is excluded; replacing an implementation respects its
|
|
|
725
794
|
original manager. This TS change does not implement additional Python features.
|
|
726
795
|
Package fixtures cover name equivalence, collisions, an in-place version update
|
|
727
796
|
and removal on every supported shell. They do not establish live delivery or ACK.
|
|
797
|
+
|
|
798
|
+
## 0.3.2 release scope
|
|
799
|
+
|
|
800
|
+
The [public 0.3.2 record](VALIDATION.md#public-032--2026-10-07-kst) pins publication source `f335f07352c842f2f6ceb12bd2ca6274b52f69f7` and the artifact. Runtime behavior differs from 0.3.1 only in the version banner and exact-version SSH gate. Its dated preparation record describes the pre-publication checkpoint, not current availability. Windows destination qualification used published 0.3.1, with the limits above. No 0.4 handoff/app-server/observation runtime is included; Drafts and the joint design freeze are not shipped capabilities.
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
<a id="ordinary-ssh-response-correction--033-candidate"></a>
|
|
804
|
+
|
|
805
|
+
## Ordinary SSH response correction — 0.3.3
|
|
806
|
+
|
|
807
|
+
The 0.3.3 correction for [#116](https://github.com/abruption/session-peer-ts/issues/116) and [#115](https://github.com/abruption/session-peer-ts/issues/115) validates bounded raw stdout with fatal UTF-8, one complete JSON object, decoded-key uniqueness, depth 64 and 65,536 nodes. Stdout has a 1 MiB byte cap; diagnostic stderr has an independent 4,096-byte retained budget. Overflow cannot turn a retained prefix into success.
|
|
808
|
+
|
|
809
|
+
Complete request-matched native facts survive a later SSH 255 or collection timeout. Native `ok/status/submitted/target/queueId` stay intact, while local exit 1 and client-owned `sshTransport` report transport failure. A peer-supplied `sshTransport` is discarded. Missing, partial, polluted, malformed or mismatched send responses remain `outcome_unknown`/`submitted:null`/`retryAllowed:false`. No retry, fallback or failover occurs, and submission is not ACK. Normal verified exit 0/1/2 behavior, nullable Claude names, optional queue IDs, per-host ordering and text/JSON output remain supported. Explicit Codex home/inactive selection context is checked; canonical remote aliases remain a destination trust boundary.
|
|
810
|
+
|
|
811
|
+
See [the response contract and fixture limits](docs/design/ordinary-ssh-responses.md). This 0.3.3 correction is not part of the immutable public 0.3.2 artifact, does not change the Python 1.0.2 oracle, and adds no 0.4.0 handoff/observer/ACK feature.
|
|
812
|
+
|
|
813
|
+
<a id="typescript-skill-guard--033-candidate"></a>
|
|
814
|
+
|
|
815
|
+
## TypeScript skill guard — 0.3.3
|
|
816
|
+
|
|
817
|
+
Version 0.3.3 uses compiled `VERSION=0.3.3` on the production doctor inspection path. Its proposed finite matrix accepts the legacy profile (skill/minimum/full `0.1.0`) and the exact proposed successor (skill `0.2.0`, minimum `0.1.0`, full `0.3.2`, `typescript`, `probe-help`, root name `session-peer-ts`). Unsupported well-formed tuples are incompatible; malformed or conflicting metadata is unknown. Supported and incompatible tuple verdicts report `verification:metadata_only`; missing, permission and unknown results omit it. Whole-file reading is bounded at 65,536 bytes with a single overflow-detection byte, fatal UTF-8 and regular-file/change checks. This does not authenticate instruction content or authorize delivery.
|
|
818
|
+
|
|
819
|
+
See the [bounded grammar, matrix and reader evidence](docs/design/typescript-skill-compatibility.md). Companion [Draft #20 design acceptance at `699a325`](https://github.com/abruption/session-peer-skill/blob/699a3251830c30c62d0f812363faf4d0eb0c8e0c/docs/typescript-compatibility.md) records the 2026-10-09 static design review of exact #126 `ba18bb806a6ba503381259b4255211af3adc0336` and release Draft #129 `bfb3d6f1256ab076a76660e08a7bf1ad071a6c6c`; their reviewed design SHA-256 values are recorded in the linked guard design. No tests were rerun in that review. At this dated checkpoint, runtime and successor skill were unpublished. The earlier queued coordination request remains historical, without independently established consumption or approval. Design/fixture acceptance does not authorize runtime merge/release, final skill metadata/publication/installation/pin changes or claim public compatibility; the immutable npm 0.3.2 checker stays legacy-only. The guard runtime must actually publish before separate successor skill finalization/tag/publication/pin changes. Keep the existing `081cc3c1d16a394bd92824333f4bc61c36951799` install pin; managers own upgrades, and no postinstall is introduced.
|
|
820
|
+
|
|
821
|
+
At the 2026-10-09 KST preparation checkpoint, [#128](https://github.com/abruption/session-peer-ts/issues/128) integrated open PRs #125/#127 and Draft #126 for review; that preparation did not bypass their human merge gate or approve staging/publication. 0.3.2 and 0.3.3 refuse each other's SSH preflight. Windows jump-host #20, provisioning #23, the Python 1.0.2 oracle, and unshipped 0.4/native ACK boundaries remain unchanged.
|
package/README.ja.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
1
3
|
# session-peer (TypeScript)
|
|
2
4
|
|
|
3
5
|
[](https://www.npmjs.com/package/session-peer)
|
|
@@ -13,9 +15,13 @@
|
|
|
13
15
|
|
|
14
16
|
<!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
|
|
15
17
|
|
|
18
|
+
**文書・ソースのバージョン: 0.3.3。** 2026-10-09 KST の準備時点では 0.3.3 は未公開で、公開 npm `latest` は **0.3.2**、`preview` は `0.1.0-preview.1` でした。以下の 0.3.3 npm 例を使う前に、レジストリで現在の公開状況を確認してください。利用できない場合はレビュー済みソースまたはローカルビルド成果物を使います。ビルドと SSH の両端は同じレビュー済みバージョンが必要で、0.3.2 と 0.3.3 は互いの SSH 事前確認を拒否します。
|
|
19
|
+
|
|
16
20
|
**実行中の Claude Code・Codex セッションを見つけ、ローカルまたは SSH でメッセージを送信します。**
|
|
17
21
|
Python 不要の Node.js クライアントです。パッケージ名とコマンド名は `session-peer` です。
|
|
18
22
|
|
|
23
|
+
</div>
|
|
24
|
+
|
|
19
25
|
## Demo
|
|
20
26
|
|
|
21
27
|

|
|
@@ -50,13 +56,15 @@ SSH は既存の鍵・ホスト信頼設定と両端の**同じバージョン
|
|
|
50
56
|
`Get-Command session-peer -All` で PATH を確認してください。利用する実装を選び、
|
|
51
57
|
別の管理ツールのファイルを `--force` で上書きしないでください。
|
|
52
58
|
|
|
59
|
+
**0.3.3 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](docs/guide.ja.md#ソースからビルド)を使います。
|
|
60
|
+
|
|
53
61
|
```sh
|
|
54
|
-
npm view session-peer@0.3.
|
|
55
|
-
npm install --global --ignore-scripts session-peer@0.3.
|
|
62
|
+
npm view session-peer@0.3.3 version dist.integrity
|
|
63
|
+
npm install --global --ignore-scripts session-peer@0.3.3
|
|
56
64
|
session-peer --version
|
|
57
65
|
```
|
|
58
66
|
|
|
59
|
-
期待する出力: `session-peer 0.3.
|
|
67
|
+
期待する出力: `session-peer 0.3.3 (typescript)`。分離インストール・ソースビルド・
|
|
60
68
|
Windows・削除の手順は以下の詳細ガイドを参照してください。
|
|
61
69
|
|
|
62
70
|
任意の `sp` 短縮名は 0.3.0 以降に含まれ(0.2.1 以前にはありません)、自動では有効になりません。
|
|
@@ -65,12 +73,12 @@ Windows・削除の手順は以下の詳細ガイドを参照してください
|
|
|
65
73
|
### Update
|
|
66
74
|
|
|
67
75
|
npm で導入したクライアントは npm で更新します。タグと対象バージョンを確認してから
|
|
68
|
-
|
|
76
|
+
正確なバージョンを指定してください。以下は承認・公開後に古い npm 版を 0.3.3 に更新する例です。
|
|
69
77
|
CLI は更新をインストールせず、`session-peer update --check` は確認のみ行います。
|
|
70
78
|
|
|
71
79
|
```sh
|
|
72
80
|
npm view session-peer dist-tags
|
|
73
|
-
npm install --global --ignore-scripts session-peer@0.3.
|
|
81
|
+
npm install --global --ignore-scripts session-peer@0.3.3
|
|
74
82
|
session-peer --version
|
|
75
83
|
```
|
|
76
84
|
|
package/README.ko.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
1
3
|
# session-peer (TypeScript)
|
|
2
4
|
|
|
3
5
|
[](https://www.npmjs.com/package/session-peer)
|
|
@@ -7,75 +9,94 @@
|
|
|
7
9
|
[](https://www.npmjs.com/package/session-peer)
|
|
8
10
|
[](LICENSE)
|
|
9
11
|
|
|
10
|
-
<sub>npm 다운로드 통계는 패키지
|
|
12
|
+
<sub>npm 다운로드 통계는 패키지 공개 후에도 반영이 늦을 수 있습니다.</sub>
|
|
11
13
|
|
|
12
14
|
[English](README.md) | [한국어](README.ko.md) | [日本語](README.ja.md) | [简体中文](README.zh-CN.md)
|
|
13
15
|
|
|
16
|
+
**실행 중인 Claude Code와 Codex 세션을 찾아 로컬 또는 SSH(보안 원격 접속)로 메시지를 전달합니다.**
|
|
17
|
+
Python을 설치하지 않아도 Node.js에서 실행되는 TypeScript 클라이언트입니다. 패키지명과 CLI 명령은 모두 `session-peer`입니다.
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
|
|
14
21
|
<!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
Python 없이 Node.js로 실행하는 클라이언트입니다. 패키지와 명령 이름은 `session-peer`입니다.
|
|
23
|
+
**문서·소스 기준 버전: 0.3.3.** 2026-10-09 KST 준비 시점에는 0.3.3이 미발행이었고 공개 npm `latest`는 **0.3.2**, `preview`는 `0.1.0-preview.1`이었습니다. 아래 0.3.3 npm 예시를 사용하기 전에 레지스트리에서 현재 제공 여부를 확인하세요. 제공되지 않으면 검토한 소스 체크아웃이나 로컬 빌드 산출물을 사용하세요. 빌드와 SSH 양쪽은 같은 검토 버전이 필요하며, 0.3.2와 0.3.3은 서로의 SSH 사전 확인을 거부합니다.
|
|
18
24
|
|
|
19
|
-
|
|
25
|
+
<a id="demo"></a>
|
|
26
|
+
## 시연
|
|
20
27
|
|
|
21
|
-

|
|
22
29
|
|
|
23
|
-
npm 0.2.1
|
|
30
|
+
npm 0.2.1을 사용해 실제 로컬 요청을 보내고 명시적인 `ACK DEMO-READY` 회신을 받았습니다. 명령줄 도구(CLI)와 메시지 일부를 다시 구성했으며, 식별자는 가리고 시점 정보는 편집했습니다. 화면 녹화는 아닙니다. 메시지를 제출한 것만으로는 ACK(수신 확인 응답)가 아닙니다.
|
|
24
31
|
|
|
25
|
-
|
|
32
|
+
설치한 뒤 세션을 조회하고, `CLAUDE_PID`를 선택한 세션의 정확한 PID(프로세스 ID)로 바꾸세요.
|
|
26
33
|
|
|
27
34
|
```sh
|
|
28
35
|
session-peer list --agent claude --json
|
|
29
|
-
session-peer send --to CLAUDE_PID --message 'API
|
|
36
|
+
session-peer send --to CLAUDE_PID --message 'Please review the API contract and reply.' --dry-run --json
|
|
30
37
|
```
|
|
31
38
|
|
|
32
|
-
`--dry-run`은
|
|
33
|
-
`--dry-run`을
|
|
34
|
-
**`posted` / `queued`는
|
|
35
|
-
|
|
36
|
-
`
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
39
|
+
`--dry-run`은 메시지를 보내지 않고 요청만 검증합니다. 실제로 전달할 때는 같은
|
|
40
|
+
명령에서 `--dry-run`을 빼고 한 번 실행하세요. 수신 확인이 필요하면 메시지에
|
|
41
|
+
명시적인 회신을 요청하세요. **`posted` / `queued`는 제출 또는 큐 수락을 뜻할
|
|
42
|
+
뿐, 수신 측의 소비(읽기·처리)나 ACK를 확인한 결과가 아닙니다.** `unknown`
|
|
43
|
+
(`submitted:null`)은 제출 여부가 불확실하므로 자동 재시도하지 마세요. 회신이
|
|
44
|
+
없거나 대상 세션이 종료된 경우에도 자동 재시도하지 마세요. `consumptionConfirmed`는
|
|
45
|
+
항상 `false`이며, 실제 회신은 수신 측 TUI(터미널 사용자 인터페이스)에서 직접 확인하세요.
|
|
46
|
+
|
|
47
|
+
<a id="quick-start"></a>
|
|
48
|
+
## 빠른 시작
|
|
49
|
+
|
|
50
|
+
macOS, Linux, Windows와 **Node 22.x의 22.13 이상 또는 24.x**가 필요합니다.
|
|
51
|
+
운영체제와 아키텍처(x64/arm64)에 맞는 네이티브 사전 빌드 의존성도 필요합니다.
|
|
52
|
+
Claude Code에는 실행 중인 TUI의 받은 메시지함이, Codex에는 CLI와 메시지를 기록하는
|
|
53
|
+
안정된 writer 프로세스가 필요합니다(macOS/Linux에서는 `lsof`와 `ps`도 필요합니다).
|
|
54
|
+
SSH를 사용하려면 기존 키와 호스트 신뢰 설정이 있어야 하며, 양쪽에서 **같은 버전의
|
|
55
|
+
TypeScript 클라이언트**를 사용해야 합니다. 운영체제별 요구사항은
|
|
56
|
+
[사용자 가이드](docs/guide.ko.md#요구사항)를, 비활성 Codex 세션에 메시지를 대기열로
|
|
57
|
+
보내는 조건은 [통합 목록 설명](docs/guide.ko.md#unified-listing-in-020)을 참고하세요.
|
|
58
|
+
|
|
59
|
+
<a id="install"></a>
|
|
60
|
+
### 설치
|
|
61
|
+
|
|
62
|
+
[Python CLI](https://github.com/abruption/session-peer)도 별도로 구현·배포되지만,
|
|
63
|
+
`session-peer`라는 같은 명령 이름을 사용합니다. 설치 전에 macOS/Linux에서는 `type -a session-peer`,
|
|
64
|
+
PowerShell에서는 `Get-Command session-peer -All`로 PATH(명령 검색 경로)에서 어떤
|
|
65
|
+
실행 파일을 찾는지 확인하세요. 사용할 구현을 선택하고 다른 패키지 관리자가 설치한
|
|
66
|
+
파일을 `--force`로 덮어쓰지 마세요. 설치와 갱신은 사용자가 npm으로 직접 수행합니다.
|
|
67
|
+
|
|
68
|
+
**0.3.3 설치:** npm 설치·업데이트 예시를 실행하기 전에 레지스트리 제공 여부와 선택한 릴리스를 확인하세요. 해당 버전이 제공되지 않으면 [검토한 소스 빌드](docs/guide.ko.md#소스에서-빌드)를 사용하세요.
|
|
52
69
|
|
|
53
70
|
```sh
|
|
54
|
-
npm view session-peer@0.3.
|
|
55
|
-
npm install --global --ignore-scripts session-peer@0.3.
|
|
71
|
+
npm view session-peer@0.3.3 version dist.integrity
|
|
72
|
+
npm install --global --ignore-scripts session-peer@0.3.3
|
|
56
73
|
session-peer --version
|
|
57
74
|
```
|
|
58
75
|
|
|
59
|
-
예상
|
|
60
|
-
|
|
76
|
+
예상 결과는 `session-peer 0.3.3 (typescript)`입니다. 별도 경로에 설치하거나,
|
|
77
|
+
소스에서 빌드하거나, Windows에서 설치·제거하는 방법은 [사용자 가이드](docs/guide.ko.md#설치)를 참고하세요.
|
|
61
78
|
|
|
62
|
-
|
|
63
|
-
[
|
|
79
|
+
선택 사항인 `sp` 단축 명령은 0.3.0 이상에 포함되며(0.2.1 이하에는 없음) 자동으로
|
|
80
|
+
활성화되지 않습니다. [직접 활성화하고 이름 충돌을 확인하는 방법(영문)](docs/shorthand.md)을
|
|
81
|
+
참고하세요.
|
|
64
82
|
|
|
65
|
-
|
|
83
|
+
<a id="update"></a>
|
|
84
|
+
### 업데이트
|
|
66
85
|
|
|
67
|
-
npm으로 설치한 클라이언트는 npm으로
|
|
68
|
-
|
|
69
|
-
CLI는 업데이트를 설치하지
|
|
86
|
+
npm으로 설치한 클라이언트는 사용자가 직접 npm으로 업데이트합니다. 사용 가능한 배포 태그
|
|
87
|
+
(dist-tag)와 대상 버전을 확인한 뒤 해당 버전을 지정해 설치하세요. 아래 예시는 승인·발행 이후 이전 npm 설치본을 0.3.3으로
|
|
88
|
+
업데이트합니다. `session-peer` CLI는 업데이트를 설치하지 않습니다. `session-peer
|
|
89
|
+
update --check`는 새 버전이 있는지 확인할 뿐입니다.
|
|
70
90
|
|
|
71
91
|
```sh
|
|
72
92
|
npm view session-peer dist-tags
|
|
73
|
-
npm install --global --ignore-scripts session-peer@0.3.
|
|
93
|
+
npm install --global --ignore-scripts session-peer@0.3.3
|
|
74
94
|
session-peer --version
|
|
75
95
|
```
|
|
76
96
|
|
|
77
|
-
|
|
78
|
-
|
|
97
|
+
함께 제공되는 스킬은 별도로 설치하고 업데이트해야 합니다. npm 패키지를 설치해도
|
|
98
|
+
스킬은 설치되지 않습니다. 고정 커밋을 기준으로 스킬을 설치하는 방법은 사용자
|
|
99
|
+
가이드에서 확인하세요.
|
|
79
100
|
|
|
80
101
|
<!-- Preserve links to the former detailed sections; their contents are in the guide. -->
|
|
81
102
|
<a id="주요-기능과-범위"></a>
|
|
@@ -95,22 +116,26 @@ session-peer --version
|
|
|
95
116
|
<a id="020-읽기-전용-진단"></a>
|
|
96
117
|
<a id="에이전트-스킬-명시적-설치"></a>
|
|
97
118
|
|
|
98
|
-
|
|
119
|
+
<a id="docs"></a>
|
|
120
|
+
## 문서
|
|
99
121
|
|
|
100
|
-
- [사용자 가이드](docs/guide.ko.md) — CLI 옵션, 탐색, Codex 홈, SSH, 회신, 설치
|
|
122
|
+
- [사용자 가이드](docs/guide.ko.md) — CLI 옵션, 탐색, Codex 홈, SSH, 회신, 여러 설치 방법과 스킬 설정.
|
|
101
123
|
- [API 참조(영문)](docs/api.md).
|
|
102
|
-
- [
|
|
103
|
-
- [릴리스
|
|
124
|
+
- [호환성·마이그레이션·계획된 기능](PARITY.md).
|
|
125
|
+
- [릴리스 검증 기록·플랫폼 검증](VALIDATION.md).
|
|
104
126
|
- [개발·기여 안내](CONTRIBUTING.md).
|
|
105
127
|
- [릴리스 절차](RELEASING.md).
|
|
106
128
|
|
|
107
|
-
|
|
129
|
+
<a id="license"></a>
|
|
130
|
+
## 라이선스
|
|
108
131
|
|
|
109
|
-
[MIT 라이선스](LICENSE)
|
|
132
|
+
[MIT 라이선스](LICENSE)로 배포합니다.
|
|
110
133
|
|
|
111
|
-
|
|
134
|
+
<a id="support-and-security"></a>
|
|
135
|
+
## 지원 및 보안
|
|
112
136
|
|
|
113
|
-
|
|
114
|
-
취약점은 [비공개 신고](https://github.com/abruption/session-peer-ts/security/advisories/new)
|
|
115
|
-
[support@abruption.dev](mailto:support@abruption.dev?subject=%5Bsession-peer-ts%5D%20Security)로
|
|
116
|
-
[SECURITY.md](SECURITY.md)를
|
|
137
|
+
사용법에 관한 질문과 재현 가능한 버그는 [이슈](https://github.com/abruption/session-peer-ts/issues)에
|
|
138
|
+
등록해 주세요. 보안 취약점은 [비공개 신고](https://github.com/abruption/session-peer-ts/security/advisories/new)
|
|
139
|
+
또는 [support@abruption.dev](mailto:support@abruption.dev?subject=%5Bsession-peer-ts%5D%20Security)로
|
|
140
|
+
알려 주세요. [SECURITY.md](SECURITY.md)를 읽고, 신고할 때 자격 증명·메시지·개인 경로를
|
|
141
|
+
가려 주세요.
|
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
1
3
|
# session-peer (TypeScript)
|
|
2
4
|
|
|
3
5
|
[](https://www.npmjs.com/package/session-peer)
|
|
@@ -13,9 +15,13 @@
|
|
|
13
15
|
|
|
14
16
|
<!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
|
|
15
17
|
|
|
18
|
+
**Documentation and source version: 0.3.3.** At the 2026-10-09 KST preparation checkpoint, 0.3.3 was unpublished, public npm `latest` was **0.3.2**, and `preview` was `0.1.0-preview.1`. Check the registry for current availability before using the 0.3.3 npm examples; if unavailable, use a reviewed source checkout or its locally built artifact. Builds and SSH endpoints need the same reviewed version; 0.3.2 and 0.3.3 refuse each other's SSH preflight.
|
|
19
|
+
|
|
16
20
|
**Find and message running Claude Code and Codex sessions, locally or over SSH.**
|
|
17
21
|
A Node.js client that runs without Python. Package and command: `session-peer`.
|
|
18
22
|
|
|
23
|
+
</div>
|
|
24
|
+
|
|
19
25
|
## Demo
|
|
20
26
|
|
|
21
27
|

|
|
@@ -50,13 +56,15 @@ Check `type -a session-peer` on macOS/Linux or `Get-Command session-peer -All`
|
|
|
50
56
|
in PowerShell before installing. Choose the intended PATH entry; do not use
|
|
51
57
|
`--force` to overwrite another manager’s files.
|
|
52
58
|
|
|
59
|
+
**Version 0.3.3 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).
|
|
60
|
+
|
|
53
61
|
```sh
|
|
54
|
-
npm view session-peer@0.3.
|
|
55
|
-
npm install --global --ignore-scripts session-peer@0.3.
|
|
62
|
+
npm view session-peer@0.3.3 version dist.integrity
|
|
63
|
+
npm install --global --ignore-scripts session-peer@0.3.3
|
|
56
64
|
session-peer --version
|
|
57
65
|
```
|
|
58
66
|
|
|
59
|
-
Expected: `session-peer 0.3.
|
|
67
|
+
Expected: `session-peer 0.3.3 (typescript)`. For isolated installation, source
|
|
60
68
|
builds, Windows and removal, see the detailed guide below.
|
|
61
69
|
|
|
62
70
|
Optional `sp` shorthand ships with 0.3.0 and later (not 0.2.1 or earlier) and is
|
|
@@ -66,12 +74,12 @@ never enabled automatically. See [explicit activation and collisions](docs/short
|
|
|
66
74
|
|
|
67
75
|
Use npm for an npm-managed installation. Check the available tags and review
|
|
68
76
|
the target version, then install that exact version; this example updates an
|
|
69
|
-
older npm installation to 0.3.
|
|
77
|
+
older npm installation to 0.3.3 after approved publication. The CLI does not install updates;
|
|
70
78
|
`session-peer update --check` only reports them.
|
|
71
79
|
|
|
72
80
|
```sh
|
|
73
81
|
npm view session-peer dist-tags
|
|
74
|
-
npm install --global --ignore-scripts session-peer@0.3.
|
|
82
|
+
npm install --global --ignore-scripts session-peer@0.3.3
|
|
75
83
|
session-peer --version
|
|
76
84
|
```
|
|
77
85
|
|
package/README.zh-CN.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
1
3
|
# session-peer (TypeScript)
|
|
2
4
|
|
|
3
5
|
[](https://www.npmjs.com/package/session-peer)
|
|
@@ -13,9 +15,13 @@
|
|
|
13
15
|
|
|
14
16
|
<!-- docs-contract: stable-release-source; package=session-peer; bin=session-peer; node=22.13+/24; python-reference=1.0.2 -->
|
|
15
17
|
|
|
18
|
+
**文档和源码版本:0.3.3。** 在 2026-10-09 KST 准备时点,0.3.3 尚未发布,公开 npm `latest` 为 **0.3.2**,`preview` 为 `0.1.0-preview.1`。使用以下 0.3.3 npm 示例前,请查询注册表中的当前可用性;如不可用,请使用已审核的源码或本地构建产物。构建和 SSH 两端必须使用相同的已审核版本;0.3.2 与 0.3.3 会拒绝彼此的 SSH 预检。
|
|
19
|
+
|
|
16
20
|
**发现正在运行的 Claude Code 和 Codex 会话,并在本机或通过 SSH 发送消息。**
|
|
17
21
|
这是不需要 Python 的 Node.js 客户端。包名与命令名均为 `session-peer`。
|
|
18
22
|
|
|
23
|
+
</div>
|
|
24
|
+
|
|
19
25
|
## Demo
|
|
20
26
|
|
|
21
27
|

|
|
@@ -48,13 +54,15 @@ session-peer send --to CLAUDE_PID --message '请检查 API 契约并回复。' -
|
|
|
48
54
|
`Get-Command session-peer -All` 检查 PATH。选择所需实现,不要用 `--force`
|
|
49
55
|
覆盖其他安装管理器的文件。
|
|
50
56
|
|
|
57
|
+
**安装 0.3.3:** 运行 npm 安装或更新示例前,请确认注册表可用性并审核所选发布版本。如该版本不可用,请使用[已审核的源码构建](docs/guide.zh-CN.md#从源码构建)。
|
|
58
|
+
|
|
51
59
|
```sh
|
|
52
|
-
npm view session-peer@0.3.
|
|
53
|
-
npm install --global --ignore-scripts session-peer@0.3.
|
|
60
|
+
npm view session-peer@0.3.3 version dist.integrity
|
|
61
|
+
npm install --global --ignore-scripts session-peer@0.3.3
|
|
54
62
|
session-peer --version
|
|
55
63
|
```
|
|
56
64
|
|
|
57
|
-
预期输出:`session-peer 0.3.
|
|
65
|
+
预期输出:`session-peer 0.3.3 (typescript)`。隔离安装、源码构建、Windows 和
|
|
58
66
|
卸载步骤见下方详细指南。
|
|
59
67
|
|
|
60
68
|
可选的 `sp` 简写包含在 0.3.0 及更高版本中(0.2.1 及更早版本没有),不会自动启用。
|
|
@@ -63,11 +71,11 @@ session-peer --version
|
|
|
63
71
|
### Update
|
|
64
72
|
|
|
65
73
|
使用 npm 更新由 npm 管理的安装。先检查标签并审阅目标版本,再安装指定版本。
|
|
66
|
-
|
|
74
|
+
下面示例在批准发布后将旧 npm 安装更新至 0.3.3。CLI 不会安装更新,`session-peer update --check` 只做检查。
|
|
67
75
|
|
|
68
76
|
```sh
|
|
69
77
|
npm view session-peer dist-tags
|
|
70
|
-
npm install --global --ignore-scripts session-peer@0.3.
|
|
78
|
+
npm install --global --ignore-scripts session-peer@0.3.3
|
|
71
79
|
session-peer --version
|
|
72
80
|
```
|
|
73
81
|
|