session-peer 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PARITY.md +1 -1
- package/README.ja.md +40 -33
- package/README.ko.md +16 -22
- package/README.md +10 -16
- package/README.zh-CN.md +38 -30
- package/RELEASING.md +51 -0
- package/VALIDATION.md +8 -0
- package/dist/cli.d.ts +1 -17
- package/dist/cli.js +38 -211
- package/dist/execution.d.ts +60 -0
- package/dist/execution.js +215 -0
- package/dist/process.d.ts +2 -0
- package/dist/process.js +21 -3
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +1 -1
- package/dist/skill-metadata.js +5 -3
- package/docs/api.md +18 -15
- package/docs/design/execution-and-mcp.md +84 -0
- package/docs/design/typescript-skill-compatibility.md +15 -0
- package/docs/guide.ja.md +55 -53
- package/docs/guide.ko.md +52 -48
- package/docs/guide.md +81 -77
- package/docs/guide.zh-CN.md +54 -51
- package/docs/shorthand.md +9 -10
- package/package.json +2 -1
package/dist/process.js
CHANGED
|
@@ -41,18 +41,33 @@ export function executable(name) {
|
|
|
41
41
|
// equivalent here: only the child is killed and descendants may linger; the
|
|
42
42
|
// tree backend below is a candidate that is deliberately not used (#131).
|
|
43
43
|
const groups = new Set();
|
|
44
|
+
const cliChildren = new Set();
|
|
45
|
+
let forwardCliSignals = false;
|
|
46
|
+
// The executable explicitly owns process exit. In-process callers retain
|
|
47
|
+
// their own signal handlers and still get per-child timeout cleanup.
|
|
48
|
+
export function enableCliSignalForwarding() { forwardCliSignals = true; }
|
|
44
49
|
const posix = process.platform !== 'win32';
|
|
45
50
|
const reap = (pid) => { if (pid)
|
|
46
51
|
try {
|
|
47
52
|
process.kill(-pid, 'SIGKILL');
|
|
48
53
|
}
|
|
49
54
|
catch { /* Already gone (ESRCH). */ } };
|
|
55
|
+
// Used only by a CLI started with a private MCP worker IPC channel.
|
|
56
|
+
export function stopCliChildren() {
|
|
57
|
+
if (posix)
|
|
58
|
+
for (const pid of groups)
|
|
59
|
+
reap(pid);
|
|
60
|
+
else
|
|
61
|
+
for (const child of cliChildren) {
|
|
62
|
+
if (child.exitCode === null && child.signalCode === null)
|
|
63
|
+
child.kill();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
50
66
|
const signals = ['SIGINT', 'SIGTERM', 'SIGHUP'];
|
|
51
67
|
// A detached group no longer receives the terminal's Ctrl-C, so forward
|
|
52
68
|
// termination signals as a group kill, then re-raise with default handling.
|
|
53
69
|
function forward(signal) {
|
|
54
|
-
|
|
55
|
-
reap(pid);
|
|
70
|
+
stopCliChildren();
|
|
56
71
|
groups.clear();
|
|
57
72
|
for (const name of signals)
|
|
58
73
|
process.removeListener(name, forward);
|
|
@@ -64,7 +79,10 @@ export function run(binary, args, options = {}) {
|
|
|
64
79
|
let stopReason;
|
|
65
80
|
const chunks = [], outputDecoder = new StringDecoder('utf8'), diagnosticDecoder = new StringDecoder('utf8');
|
|
66
81
|
const child = spawn(binary, args, { shell: false, env: options.env ?? process.env, cwd: options.cwd, stdio: ['pipe', 'pipe', 'pipe'], detached: posix });
|
|
82
|
+
if (forwardCliSignals)
|
|
83
|
+
cliChildren.add(child);
|
|
67
84
|
const release = () => {
|
|
85
|
+
cliChildren.delete(child);
|
|
68
86
|
if (child.pid === undefined || !groups.delete(child.pid) || groups.size)
|
|
69
87
|
return;
|
|
70
88
|
for (const name of signals)
|
|
@@ -103,7 +121,7 @@ export function run(binary, args, options = {}) {
|
|
|
103
121
|
const register = () => {
|
|
104
122
|
if (finished || stopped || !posix || child.pid === undefined || groups.has(child.pid))
|
|
105
123
|
return;
|
|
106
|
-
if (!groups.size)
|
|
124
|
+
if (forwardCliSignals && !groups.size)
|
|
107
125
|
for (const name of signals)
|
|
108
126
|
process.on(name, forward);
|
|
109
127
|
groups.add(child.pid);
|
package/dist/protocol.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
2
|
-
export declare const VERSION_LINE = "session-peer 0.
|
|
1
|
+
export declare const VERSION = "0.7.0";
|
|
2
|
+
export declare const VERSION_LINE = "session-peer 0.7.0 (typescript)";
|
|
3
3
|
export declare function host(value: string): string;
|
|
4
4
|
export declare function reply(value: string): {
|
|
5
5
|
to: string;
|
package/dist/protocol.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isIPv6 } from 'node:net';
|
|
2
2
|
import { Refusal } from './discovery.js';
|
|
3
3
|
import { uuid } from './writer.js';
|
|
4
|
-
export const VERSION = '0.
|
|
4
|
+
export const VERSION = '0.7.0';
|
|
5
5
|
export const VERSION_LINE = `session-peer ${VERSION} (typescript)`;
|
|
6
6
|
// Return the OpenSSH destination: [user@]name, or an IPv6 literal with any
|
|
7
7
|
// brackets removed (`ssh` does not strip `[...]` outside ssh:// URIs). Zone IDs
|
package/dist/skill-metadata.js
CHANGED
|
@@ -9,8 +9,8 @@ const verdict = (compatible) => ({ status: compatible ? 'compatible' : 'incompat
|
|
|
9
9
|
code: compatible ? 'skill_contract_compatible' : 'skill_contract_mismatch', verification: 'metadata_only' });
|
|
10
10
|
export const SKILL_METADATA_LIMIT = 65536;
|
|
11
11
|
const keys = ['version', 'runtime-implementation', 'runtime-min-version', 'runtime-full-version', 'runtime-capability-policy'];
|
|
12
|
-
// Preserve each published runtime/profile result. The 0.
|
|
13
|
-
//
|
|
12
|
+
// Preserve each published runtime/profile result. The 0.7.0 row carries
|
|
13
|
+
// forward the four exact profiles accepted by public 0.6.2.
|
|
14
14
|
// Metadata compatibility does not authenticate content or publish/install a skill.
|
|
15
15
|
// Every later runtime/profile requires separate review; no version ranges.
|
|
16
16
|
const matrix = {
|
|
@@ -21,7 +21,9 @@ const matrix = {
|
|
|
21
21
|
'0.5.1': ['0.1.0', '0.2.0', '0.2.1', '0.3.0'],
|
|
22
22
|
'0.5.2': ['0.1.0', '0.2.0', '0.2.1', '0.3.0'],
|
|
23
23
|
'0.6.0': ['0.1.0', '0.2.0', '0.2.1', '0.3.0'],
|
|
24
|
-
'0.6.1': ['0.1.0', '0.2.0', '0.2.1', '0.3.0']
|
|
24
|
+
'0.6.1': ['0.1.0', '0.2.0', '0.2.1', '0.3.0'],
|
|
25
|
+
'0.6.2': ['0.1.0', '0.2.0', '0.2.1', '0.3.0'],
|
|
26
|
+
'0.7.0': ['0.1.0', '0.2.0', '0.2.1', '0.3.0']
|
|
25
27
|
};
|
|
26
28
|
const profiles = {
|
|
27
29
|
'0.1.0': ['0.1.0', 'typescript', '0.1.0', '0.1.0', 'probe-help'],
|
package/docs/api.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# API reference
|
|
2
2
|
|
|
3
|
-
This reference describes source/package version **0.
|
|
3
|
+
This reference describes source/package version **0.7.0**. Check registry availability and review the selected release before installation. Dated release evidence is recorded in [VALIDATION.md](../VALIDATION.md); before publication use a reviewed source artifact.
|
|
4
4
|
|
|
5
5
|
[Back to README](../README.md) · [User guide](guide.md)
|
|
6
6
|
|
|
7
7
|
The package exposes a small ESM API with TypeScript declarations. Install it
|
|
8
|
-
locally with `npm install --ignore-scripts session-peer@0.
|
|
8
|
+
locally with `npm install --ignore-scripts session-peer@0.7.0` before importing it.
|
|
9
9
|
Importing the package does not execute the CLI or submit a message.
|
|
10
10
|
|
|
11
11
|
```js
|
|
12
12
|
import { VERSION, VERSION_LINE, reply, envelope } from 'session-peer';
|
|
13
13
|
|
|
14
|
-
console.log(VERSION); // 0.
|
|
15
|
-
console.log(VERSION_LINE); // session-peer 0.
|
|
14
|
+
console.log(VERSION); // 0.7.0
|
|
15
|
+
console.log(VERSION_LINE); // session-peer 0.7.0 (typescript)
|
|
16
16
|
const address = 'session-peer://v1/reply?agent=claude&session=12345&transport=local';
|
|
17
17
|
console.log(reply(address)); // { to: '12345' }
|
|
18
18
|
console.log(envelope('Please review and reply.', true, address));
|
|
@@ -34,8 +34,6 @@ not package subpath exports. Use the [CLI guide](guide.md#use) for sending and
|
|
|
34
34
|
|
|
35
35
|
The ordinary SSH response correction is documented separately as the [0.3.3 ordinary SSH response correction](design/ordinary-ssh-responses.md); its internal parser is not a package-root export.
|
|
36
36
|
|
|
37
|
-
<a id="unreleased-opt-in-handoff-cli--040-work"></a>
|
|
38
|
-
|
|
39
37
|
<a id="codex-storage-configuration"></a>
|
|
40
38
|
|
|
41
39
|
## Codex storage configuration guards
|
|
@@ -159,6 +157,8 @@ The comparison also inspects Python
|
|
|
159
157
|
These are static source and isolated-fixture checks; no native Codex queue,
|
|
160
158
|
user session, delivery/ACK or remote-host qualification was run for this change.
|
|
161
159
|
|
|
160
|
+
<a id="unreleased-opt-in-handoff-cli--040-work"></a>
|
|
161
|
+
|
|
162
162
|
## Opt-in handoff CLI — 0.4.0
|
|
163
163
|
|
|
164
164
|
0.4.0 includes an explicit private POSIX sender ledger. Default sends retain
|
|
@@ -214,7 +214,7 @@ message/transcript scan manufactures ACK. Ordinary generated Reply-To stays v1.
|
|
|
214
214
|
|
|
215
215
|
POSIX opt-in `send --host HOST` performs an exact-version preflight and a
|
|
216
216
|
no-effect preparation before one destination-side send. Both ends must contain
|
|
217
|
-
the same reviewed 0.
|
|
217
|
+
the same reviewed 0.7.0 implementation. This workflow was introduced in
|
|
218
218
|
0.4.0; a 0.3.x banner does not establish the capability. Initialize the destination's private ledger explicitly; no command
|
|
219
219
|
auto-installs a handler or initializes missing history. The origin does not
|
|
220
220
|
create a local receipt collector. Reconcile with `handoff status`/`wait` on the
|
|
@@ -316,7 +316,7 @@ requested evidence goal. After any possible RPC write, no legacy fallback or
|
|
|
316
316
|
second submission occurs.
|
|
317
317
|
|
|
318
318
|
Selection is by the exact host platform/architecture and native version.
|
|
319
|
-
The 0.
|
|
319
|
+
The 0.7.0 source records a Linux arm64 Codex 0.162.1 candidate (pinned musl
|
|
320
320
|
executable, procfs storage binding, `/proc/locks` writer-owner check) but does
|
|
321
321
|
not activate it. Linux and any other unlisted platform/version have no
|
|
322
322
|
profile, so required delivery refuses before effect and best-effort uses the
|
|
@@ -396,19 +396,22 @@ a completed milestone. Exact evidence and limits are in [VALIDATION](../VALIDATI
|
|
|
396
396
|
|
|
397
397
|
## 0.4.0 implementation scope
|
|
398
398
|
|
|
399
|
-
The 0.
|
|
399
|
+
The 0.7.0 source preserves this supported handoff scope; its Linux and Windows
|
|
400
400
|
groundwork does not enable additional platform or ACK support.
|
|
401
401
|
|
|
402
402
|
The 0.4.0 implementation includes the qualified macOS arm64 observer and explicit
|
|
403
403
|
`operator_confirmed` receipts on supported POSIX ledgers. Other platforms do not
|
|
404
|
-
inherit that qualification. Linux observation [#130](https://github.com/abruption/session-peer-ts/issues/130)
|
|
405
|
-
Windows observation/private storage [#131](https://github.com/abruption/session-peer-ts/issues/131)
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
404
|
+
inherit that qualification. Linux observation [#130](https://github.com/abruption/session-peer-ts/issues/130)
|
|
405
|
+
and Windows observation/private storage [#131](https://github.com/abruption/session-peer-ts/issues/131)
|
|
406
|
+
remain separate work. Version 0.6.0 added the explicit local receipt route below.
|
|
407
|
+
The remaining work in [#132](https://github.com/abruption/session-peer-ts/issues/132)
|
|
408
|
+
includes reverse-SSH collection. An authenticated receipt requires an explicit
|
|
409
|
+
recipient response; messages and turn completion do not establish ACK.
|
|
409
410
|
Unsupported required goals refuse before effect; no post-attempt fallback or resend.
|
|
410
411
|
|
|
411
|
-
|
|
412
|
+
<a id="explicit-local-receipt-bootstrap-source-implementation"></a>
|
|
413
|
+
|
|
414
|
+
## Explicit local receipt bootstrap (0.6.0+)
|
|
412
415
|
|
|
413
416
|
The `receipt` owner commands and `send --receipt-collector SOCKET` select a local, manually operated receipt route. They do not start services, discover alternate collectors, wake a session, answer an approval or resend a native message. Read the [operator guide](guide.md#explicit-local-receipts) before supplying private receipt input.
|
|
414
417
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Internal execution and optional MCP
|
|
2
|
+
|
|
3
|
+
Scope: [#24](https://github.com/abruption/session-peer-ts/issues/24) and
|
|
4
|
+
[#26](https://github.com/abruption/session-peer-ts/issues/26).
|
|
5
|
+
|
|
6
|
+
## Execution contract
|
|
7
|
+
|
|
8
|
+
Keep a side-effect-free internal import for ordinary list, send and doctor.
|
|
9
|
+
Represent agent selection, local/SSH destinations and the request context
|
|
10
|
+
explicitly. Keep the existing discovery, writer selection/revalidation,
|
|
11
|
+
storage guards, SSH preflight and response validation beneath that boundary.
|
|
12
|
+
An ordered SSH request preserves independent per-host results and never
|
|
13
|
+
retries a destination. The import must not start the CLI, register process
|
|
14
|
+
signal handlers or execute an adapter. Registration describes the available
|
|
15
|
+
capabilities and grants no access.
|
|
16
|
+
|
|
17
|
+
The executable retains argv parsing, stdin, sender metadata, output
|
|
18
|
+
formatting and exit-code handling. Parsed host attribution is per invocation.
|
|
19
|
+
Single-host results stay flat, multi-host results stay ordered, and remote
|
|
20
|
+
update notices never reach the caller. CLI-owned subprocess signal forwarding
|
|
21
|
+
is enabled by the executable, not by importing the execution module. Handoff, receipts, update notices and the
|
|
22
|
+
existing SSH stdio envelope must preserve their current contracts. Internal
|
|
23
|
+
execution modules are not package-root exports. Test injection is limited to
|
|
24
|
+
in-process fixtures; there is no runtime plugin loading.
|
|
25
|
+
|
|
26
|
+
## Optional stdio MCP
|
|
27
|
+
|
|
28
|
+
Provide a separate opt-in Node MCP package and a repository Codex plugin
|
|
29
|
+
manifest with installation instructions. The MCP SDK is pinned in the
|
|
30
|
+
optional package; the ordinary npm client does not depend on or load it. The
|
|
31
|
+
MCP package requires the exact matching core npm version and invokes its
|
|
32
|
+
installed CLI worker through Node. There is no new public core subpath API.
|
|
33
|
+
The server starts only explicitly and uses stdio. Its tool surface is
|
|
34
|
+
`list_sessions` and `send_message`; send is annotated as non-idempotent.
|
|
35
|
+
|
|
36
|
+
Use a bounded, closed operator policy at an explicitly selected local file
|
|
37
|
+
path. Omit the policy flag for local Claude listing only. An explicitly
|
|
38
|
+
selected policy file that is missing, unreadable or malformed refuses startup.
|
|
39
|
+
Codex is enabled only by policy, never by an inherited home variable. A supplied policy grants list and send independently to each named
|
|
40
|
+
destination and allowed agent. The client supplies only the destination ID
|
|
41
|
+
and typed tool arguments; transports, SSH hosts and Codex homes come from
|
|
42
|
+
the policy. A policy enabling Codex must pin an absolute home using the
|
|
43
|
+
destination's path rules. Keep host approval, known_hosts and the operator's
|
|
44
|
+
SSH configuration intact. Installing the plugin changes no approvals.
|
|
45
|
+
|
|
46
|
+
Classify a direct target before execution. A Reply-To URI is accepted only
|
|
47
|
+
as the tool's target, never as outgoing reply metadata. Require the parsed
|
|
48
|
+
transport, the core-normalized host, the agent and the literal home to match
|
|
49
|
+
the policy. A Codex URI must specify its pinned home and a Claude URI has none.
|
|
50
|
+
Do not resolve aliases or apply case folding to the policy match. Compare destination
|
|
51
|
+
identity before lowering to the core operation, with no implicit self-route
|
|
52
|
+
selection from the URI. Deny sending unless the destination and agent both
|
|
53
|
+
permit it, including send dry-run. Select one destination per call. Keep
|
|
54
|
+
message text on the worker's private stdin. The core retains its existing
|
|
55
|
+
native adapter behavior, including Codex queue arguments. Suppress inherited
|
|
56
|
+
agent identity, automatic return routes and update notices in the worker. Do not accept native binary
|
|
57
|
+
paths, SSH options, recipient policy overrides, wake or handoff inputs from a
|
|
58
|
+
tool caller.
|
|
59
|
+
|
|
60
|
+
Keep core JSON facts in structuredContent and produce a corresponding text
|
|
61
|
+
view. Preserve healthy discovery rows and report partial failure. Bound request
|
|
62
|
+
and result sizes and concurrent work. Use one owned CLI worker per operation
|
|
63
|
+
through the guarded execution path, with operation timeout and cancellation.
|
|
64
|
+
Cancellation before launch has no submission effect. A worker launch followed
|
|
65
|
+
by interruption without a complete, validated outcome is unknown for an
|
|
66
|
+
effectful send. List and send dry-run never imply unknown submission. When
|
|
67
|
+
listing without an agent, query only agents allowed by policy and keep
|
|
68
|
+
successful rows if another eligible lookup fails. Never retry or infer that
|
|
69
|
+
a native queue acceptance was consumed or acknowledged. Send a cooperative cancellation request to the owned child before forcing
|
|
70
|
+
it to exit. POSIX CLI signal forwarding cleans its separately owned groups.
|
|
71
|
+
On Windows only known direct child handles are in scope. A remote process may
|
|
72
|
+
outlive the local connection. Report cleanup limits without suggesting that
|
|
73
|
+
an interrupted effect was rolled back. Keep message text and raw worker errors out of protocol
|
|
74
|
+
diagnostics.
|
|
75
|
+
|
|
76
|
+
## Verification before PR creation
|
|
77
|
+
|
|
78
|
+
Use fixtures and isolated package installs on Mac mini, MacBook Pro, KR Linux,
|
|
79
|
+
US Linux and quintet-desktop. Record OS/architecture, Node versions, commit and
|
|
80
|
+
archive hashes, and distinguish real stdio handshakes from fake native adapter
|
|
81
|
+
and SSH endpoints. Exercise authorization, refusal, partial results, interruption,
|
|
82
|
+
one-attempt submission, packaging and applicable existing platform contracts.
|
|
83
|
+
A fixture does not establish new operation support on any platform. Do not
|
|
84
|
+
change global installations, profiles, host policies or existing agent sessions.
|
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
This document retains the original TS source proposal and dated design review for [#118](https://github.com/abruption/session-peer-ts/issues/118), based on the companion [Draft #20 at `963c3d7`](https://github.com/abruption/session-peer-skill/blob/963c3d748a11b1164013ee26c9c0ef285c52b285/docs/typescript-compatibility.md). Companion [design acceptance at `699a325`](https://github.com/abruption/session-peer-skill/blob/699a3251830c30c62d0f812363faf4d0eb0c8e0c/docs/typescript-compatibility.md) records the full static review of the exact candidates below on 2026-10-09. This design-only acceptance does not authorize runtime merge/release, successor skill metadata/publication, installation or pin changes, content authenticity, or live delivery support.
|
|
4
4
|
|
|
5
|
+
## 0.7.0 finite row
|
|
6
|
+
|
|
7
|
+
The 0.7.0 release candidate accepts the four exact profiles accepted by 0.6.2.
|
|
8
|
+
Compiled default and explicit 0.7.0 checks use this finite row. The existing
|
|
9
|
+
companion skill release, source pin, and published capability evidence apply
|
|
10
|
+
at their recorded versions.
|
|
11
|
+
|
|
12
|
+
## 0.6.2 finite row
|
|
13
|
+
|
|
14
|
+
The 0.6.2 release candidate carries the four exact 0.6.1 skill profiles
|
|
15
|
+
(0.1.0, 0.2.0, 0.2.1 and 0.3.0) forward with unchanged metadata. The compiled
|
|
16
|
+
default and explicit 0.6.2 use this finite row. Historical rows, parsing, reader
|
|
17
|
+
limits, skill bytes and installation pins are preserved. The section below
|
|
18
|
+
records 0.6.1 behavior at its own preparation checkpoint.
|
|
19
|
+
|
|
5
20
|
## 0.6.1 finite row — 2026-11-09 KST release preparation
|
|
6
21
|
|
|
7
22
|
The candidate explicitly carries forward the four exact profiles accepted by
|
package/docs/guide.ja.md
CHANGED
|
@@ -1,39 +1,14 @@
|
|
|
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
|
-
|
|
9
3
|
[README に戻る](../README.ja.md)
|
|
10
4
|
|
|
11
5
|
[English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
|
|
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.1 のソースは選択できない Linux arm64 の Codex 0.162.1 候補(固定された上流 `aarch64-unknown-linux-musl` 実行ファイル、スキーマ、注入テスト 1 回)を記録しますが、Linux 観測を有効化しません。Linux の native 観測は引き続き未対応です。
|
|
16
|
-
|
|
17
|
-
0.6.1 の詳細ガイドです([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 の説明は旧版との比較です。
|
|
18
|
-
|
|
19
|
-
<a id="移行時の境界-033-候補"></a>
|
|
20
|
-
|
|
21
|
-
## 移行時の境界 (0.4.0)
|
|
22
|
-
|
|
23
|
-
[0.3.2 の公開記録](../VALIDATION.md#public-032--2026-10-07-kst)はリリースのソースと成果物を固定しています。SSH の事前確認は TS のバージョン表示の完全一致を検査しますが、コミットハッシュは検査しません。ソースビルドのレビュー済みコミットは運用者が別途揃える必要があります。
|
|
7
|
+
このガイドでは CLI のインストールと使い方を説明します。
|
|
24
8
|
|
|
25
|
-
|
|
26
|
-
- Claude のセッションディレクトリがない場合は空の一覧と `status:ok` を返します。任意の Codex ホームがない場合は `absent`、読める DB もエラーもない場合は全体が `not_installed` です。空の一覧や doctor の完了は送信許可ではありません。
|
|
27
|
-
- `--host` を繰り返すと要求順の配列を返します。ホスト別の実行中の失敗は終了コード 1 に集約しますが、実行前のコマンド全体の拒否(重複ホストや空のメッセージなど)は配列出力でも終了コード 2 を維持します。公開 0.3.2 は SSH の終了 255 やタイムアウト後に完全な応答の証拠も失う場合があります。0.3.3 は要求に一致する完全な事実を保持し、ローカル終了コード 1 と `sshTransport` を返します。不完全・不正な証拠は unknown のままです。unknown の場合は自動再送しません。
|
|
28
|
-
- 0.2.0 で導入した基本 doctor は Codex を実行せず inbox に提出しません。0.3.0 以降の明示的な `--check-return-route` は、利用できる非ローカル宛先に対してのみ、時間を制限した逆方向 SSH の無操作コマンドを実行します。自分自身への経路は SSH なしで `verified`、`transport:local`、`self_route_normalized` を返し、ホストがない場合は接続確認前に失敗します。`--check-reply-to` は未対応です。verified はローカル経路の正規化または 1 回の SSH 無操作コマンドの成功であり、ACK の認証や一般的な逆方向アクセスの保証ではありません。
|
|
29
|
-
- 同じ端末の Reply-To をローカルに正規化するには、明示した OS ユーザーの一致、認識できる正確なローカル名、明示的な SSH オプションがないことが必要です。送信者の証拠が競合した場合は識別情報を省き、Claude の名前が使えない場合は PID を使います。
|
|
30
|
-
- 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` を拒否します。導入の節には独立して公開されたスキルのソースを固定しています。
|
|
31
|
-
- 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 やデプロイ補助ツールの検証ではありません。
|
|
32
|
-
|
|
33
|
-
[移行の詳細](../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 は比較対象外です。
|
|
9
|
+
**ドキュメントとソースのバージョン: 0.7.0。** SSH の両端で同じ TypeScript バージョンを使用してください。
|
|
34
10
|
|
|
35
|
-
|
|
36
|
-
[0.4.0 handoff 設計と実装の範囲](../PARITY.md#handoff-v1-design-candidate--69)
|
|
11
|
+
通常の Codex 送信には[ストレージの制約](api.md#codex-storage-configuration)が適用されます。Windows では Codex への送信と dry-run はキューに登録する前に停止します。
|
|
37
12
|
|
|
38
13
|
## 目次
|
|
39
14
|
|
|
@@ -42,6 +17,7 @@
|
|
|
42
17
|
- [インストール](#インストール)
|
|
43
18
|
- [使い方](#使い方)
|
|
44
19
|
- [成功の意味と安全性](#成功の意味と安全性)
|
|
20
|
+
- [移行時の境界](#移行時の境界-040)
|
|
45
21
|
- [開発と検証](#開発と検証)
|
|
46
22
|
- [npm リリース](#npm-リリース)
|
|
47
23
|
- [関連プロジェクト](#関連プロジェクト)
|
|
@@ -50,14 +26,14 @@
|
|
|
50
26
|
|
|
51
27
|
実行中の **Claude Code と Codex セッション**に、ローカルまたは SSH 経由でメッセージを送る TypeScript クライアントです。Node.js で動作し、Python は不要です。
|
|
52
28
|
|
|
53
|
-
**0.
|
|
29
|
+
**0.7.0 の利用ガイドです。** パッケージ名は `session-peer`、CLI コマンドは **`session-peer`**。Relay サーバーやホスティングサービスは提供しません。
|
|
54
30
|
|
|
55
31
|
## 機能と範囲
|
|
56
32
|
|
|
57
33
|
- ローカル Claude/Codex セッションと既知の Codex home の検出(0.2.0 の機能、下記参照)。
|
|
58
|
-
- `--dry-run`
|
|
34
|
+
- `--dry-run` で宛先を確認し、ネイティブの受信箱またはキューにメッセージを一度だけ登録します。Codex は一意かつ安定した live writer が必要です。
|
|
59
35
|
- インストール済みの同じクライアントへの SSH 接続、構造化 Reply-To URI、JSON 出力。
|
|
60
|
-
-
|
|
36
|
+
- 宛先や所有者が曖昧なら拒否。送信結果が不明でも自動で再送しません。
|
|
61
37
|
|
|
62
38
|
Relay 通信、MCP、wake/resume、Antigravity、自動更新は未実装です。未対応コマンドは明示的に失敗します。汎用オーケストレーターではありません。
|
|
63
39
|
|
|
@@ -65,9 +41,9 @@ Relay 通信、MCP、wake/resume、Antigravity、自動更新は未実装です
|
|
|
65
41
|
|
|
66
42
|
### 0.2.0 の統合一覧
|
|
67
43
|
|
|
68
|
-
ビルド後の `node dist/cli.js list --json` は Claude/Codex をまとめて表示し、`list --agent codex --json` は既知の home を検索します。公開 npm **0.1.0** では引き続き agent と Codex 一覧の home
|
|
44
|
+
ビルド後の `node dist/cli.js list --json` は Claude/Codex をまとめて表示し、`list --agent codex --json` は既知の home を検索します。公開 npm **0.1.0** では引き続き agent と Codex 一覧の home を明示します。バージョンを明示してインストールする方法や、パラメーターを明示する `list`・`send` の形式は、0.1.0 でも使えます。
|
|
69
45
|
|
|
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.
|
|
46
|
+
対象は既定の `~/.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.7.0)が必要です。
|
|
71
47
|
|
|
72
48
|
### 0.2.0 CLI の使いやすさ
|
|
73
49
|
|
|
@@ -90,7 +66,7 @@ Relay 通信、MCP、wake/resume、Antigravity、自動更新は未実装です
|
|
|
90
66
|
|
|
91
67
|
### 明示的なローカル受領確認
|
|
92
68
|
|
|
93
|
-
|
|
69
|
+
受領確認は通常の送信結果である `posted`・`queued` とは別です。所有者が非公開の状態データを初期化し、ターミナルで収集プロセスを手動で起動します。サービス登録や自動起動はしません。次の `serve` は所有者が停止するまで終了しません。
|
|
94
70
|
|
|
95
71
|
```sh
|
|
96
72
|
session-peer receipt init --state-dir "$HOME/.session-peer-receipts" --json
|
|
@@ -106,7 +82,7 @@ session-peer receipt respond --collector "$HOME/.session-peer-receipts/s" --rece
|
|
|
106
82
|
|
|
107
83
|
`token_possession` は委任されたトークンの所持を示すだけで、モデルの身元、メッセージの消費、作業完了を証明しません。Claude は native 世代が不明な別の v2 delegated receipt context を使います。Codex は元の世代に結び付いた v1 を維持し、非公開 stdin を使う検証済み owned RPC 経路だけを許可します。トークンを native の `--message` 引数に入れる代替経路はありません。既存の手動 `operator_confirmed` 根拠とも異なります。
|
|
108
84
|
|
|
109
|
-
collector は同じ端末の所有者専用経路です。保存容量の制限が重なり、小さい記録でも約 511 件で新しい受領確認要求を拒否する場合があります。自動削除や初期化で履歴を捨てることはありません。逆向き SSH collector と Windows managed storage
|
|
85
|
+
collector は同じ端末の所有者専用経路です。保存容量の制限が重なり、小さい記録でも約 511 件で新しい受領確認要求を拒否する場合があります。自動削除や初期化で履歴を捨てることはありません。逆向き SSH collector と Windows managed storage は未対応です。明示的に開始した待機には、それぞれ独立した期限があります。status/wait は非公開の状態分類を書き込む場合がありますが、native メッセージを再提出しません。不明な結果から自動再送は行いません。既存の native・プラットフォーム検証範囲は変わらず、fixture の成功は実エージェントの receipt 検証ではありません。
|
|
110
86
|
|
|
111
87
|
## 必要条件
|
|
112
88
|
|
|
@@ -116,15 +92,15 @@ macOS / Linux / Windows native、Node **22.x の 22.13 以上、または 24.x**
|
|
|
116
92
|
|
|
117
93
|
Node 22.x の 22.13 以上または 24.x を使用し、インストールする正確なバージョンの公開状況を確認してください。Python CLI も同じコマンド名を使うため、既存のインストールがあれば先に PATH を確認してください。
|
|
118
94
|
|
|
119
|
-
**0.
|
|
95
|
+
**0.7.0 のインストール:** npm の導入・更新例を実行する前に、レジストリで公開状況と選択したリリースを確認してください。利用できない場合は[レビュー済みソースビルド](#ソースからビルド)を使います。
|
|
120
96
|
|
|
121
97
|
```sh
|
|
122
|
-
npm view session-peer@0.
|
|
123
|
-
npm install --global --ignore-scripts session-peer@0.
|
|
98
|
+
npm view session-peer@0.7.0 version dist.integrity
|
|
99
|
+
npm install --global --ignore-scripts session-peer@0.7.0
|
|
124
100
|
session-peer --version
|
|
125
101
|
```
|
|
126
102
|
|
|
127
|
-
期待値は `session-peer 0.
|
|
103
|
+
期待値は `session-peer 0.7.0 (typescript)`。
|
|
128
104
|
|
|
129
105
|
1. `session-peer list --agent claude --json` で宛先を探し、正確な PID を選びます。
|
|
130
106
|
2. `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` で提出せずに確認します。
|
|
@@ -143,7 +119,7 @@ npm run build
|
|
|
143
119
|
node dist/cli.js --version
|
|
144
120
|
npm pack --ignore-scripts
|
|
145
121
|
# 任意のグローバルインストール前に PATH の既存コマンドを確認
|
|
146
|
-
npm install --global --ignore-scripts ./session-peer-0.
|
|
122
|
+
npm install --global --ignore-scripts ./session-peer-0.7.0.tgz
|
|
147
123
|
session-peer --version
|
|
148
124
|
```
|
|
149
125
|
|
|
@@ -153,7 +129,7 @@ session-peer --version
|
|
|
153
129
|
|
|
154
130
|
インストール前後に `type -a session-peer` と `command -v session-peer` を確認します。他の実装も同名コマンドを提供するため、PATH 上の一つを選ぶか `node /absolute/path/dist/cli.js` を使ってください。`--force` で他の管理ツールのファイルを上書きしないでください。Python パッケージ・スキル・サービスを自動変更しません。削除は `npm uninstall --global session-peer` を使い、PATH を再確認します。
|
|
155
131
|
|
|
156
|
-
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.
|
|
132
|
+
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.7.0.tgz` を実行し、`& "$env:TEMP\session-peer-ts-source\node_modules\.bin\session-peer.cmd" --version` で確認します。同じ prefix の `npm uninstall --prefix "$env:TEMP\session-peer-ts-source" session-peer` で削除します。
|
|
157
133
|
|
|
158
134
|
## 使い方
|
|
159
135
|
|
|
@@ -203,7 +179,7 @@ Python を使わずに宛先を準備する方法(バージョンごとの専
|
|
|
203
179
|
|
|
204
180
|
### 返信
|
|
205
181
|
|
|
206
|
-
`session-peer://v1/reply?...` URI を `--to` に指定できます。不明 /
|
|
182
|
+
`session-peer://v1/reply?...` URI を `--to` に指定できます。不明 / 重複フィールド、不正ホスト・エンコード、明示した経路との矛盾は拒否します。相手から受け取ったメタデータを認可の根拠には使いません。Reply-To URI をシェルコマンドとして実行することもありません。受け取った Reply-To は読み手のためのデータであり、返信を自動で観測・確認することはありません。
|
|
207
183
|
|
|
208
184
|
0.3.0 以降(0.2.1 以前にはありません)、送信者情報と自動の返信経路を追加します。
|
|
209
185
|
|
|
@@ -225,7 +201,34 @@ Python を使わずに宛先を準備する方法(バージョンごとの専
|
|
|
225
201
|
|
|
226
202
|
提出後に返信がない、または宛先が終了したという事実だけでは、消費や失敗を確定できません。自動再送しないでください。
|
|
227
203
|
|
|
228
|
-
`consumptionConfirmed` は常に false。実際の ACK は宛先 TUI で別途確認し、queue や transcript polling
|
|
204
|
+
`consumptionConfirmed` は常に false。実際の ACK は宛先 TUI で別途確認し、queue や transcript polling から推定しません。終了コードは、成功時が 0、処理エラー時が 1、コマンドの指定に誤りがある場合が 2 です。エラーは固定コードで、ネイティブ stderr や本文を返しません。Codex は実際の kernel flock、ファイル同一性、同一ユーザーの所有者開始時刻を複数回調べ、提出直前にも再検証します。lock の削除や所有エージェントへのシグナル送信はしません。一覧の名前・パス・ID は共有前に伏せてください。
|
|
205
|
+
|
|
206
|
+
<a id="移行時の境界-033-候補"></a>
|
|
207
|
+
|
|
208
|
+
## 移行時の境界 (0.4.0)
|
|
209
|
+
|
|
210
|
+
通常の Codex キュー提出も、`auth.json` があるログイン済み home など、クラウドポリシーの適用範囲を判定できない場合は `codex_cloud_storage_unverified` で拒否します。認証情報やキャッシュの内容は読まず、別途検証する owned app-server 経路では実際のストレージとの結び付きを確認する必要があります。
|
|
211
|
+
|
|
212
|
+
このソースは Codex home、システム設定、macOS 管理設定、送信側と対象プロセスの実際の作業ディレクトリに適用されるプロジェクト設定を確認します。[ストレージ検証の範囲と拒否条件](api.md#codex-storage-configuration)を参照してください。Windows の Codex 送信・dry-run は、ローカルストレージ検査方式の検証が済むまでキュー提出前に拒否します。doctor と dry-run は Codex を実行せず、ローダーのバージョンは未確認のままです。
|
|
213
|
+
|
|
214
|
+
現在の機能差と移植方針は[日付を明記した比較表](../PARITY.md#current-scoped-feature-matrix)を参照してください。TypeScriptで公開済みの機能と、別途固定したPythonの比較基準を区別しています。
|
|
215
|
+
|
|
216
|
+
[0.3.0 の変更点](../PARITY.md#030-remote-usability-and-maintenance)、[0.3.1 の信頼性修正](../PARITY.md#031-reliability-fixes)、[0.3.1 の公開記録](../VALIDATION.md#public-031--2026-10-04-kst)を参照してください。0.1.0 の記述は旧バージョンについてです。
|
|
217
|
+
|
|
218
|
+
[0.3.2 の公開記録](../VALIDATION.md#public-032--2026-10-07-kst)はリリースのソースと成果物を固定しています。SSH の事前確認は TS のバージョン表示の完全一致を検査しますが、コミットハッシュは検査しません。ソースビルドのレビュー済みコミットは運用者が別途揃える必要があります。
|
|
219
|
+
|
|
220
|
+
- Python の Claude JSON は `status`、`submitted`、`consumptionConfirmed` を省略する場合があります。TS は `validated`/`posted`、明示的な `submitted`、`consumptionConfirmed:false` を使います。欠けたフィールドは false や null ではありません。Claude の名前は null の場合があり、Codex の `queueId` は任意です。提出は ACK の証拠ではありません。
|
|
221
|
+
- Claude のセッションディレクトリがない場合は空の一覧と `status:ok` を返します。任意の Codex ホームがない場合は `absent`、読める DB もエラーもない場合は全体が `not_installed` です。空の一覧や doctor の完了は送信許可ではありません。
|
|
222
|
+
- `--host` を繰り返すと要求順の配列を返します。ホスト別の実行中の失敗は終了コード 1 に集約しますが、実行前のコマンド全体の拒否(重複ホストや空のメッセージなど)は配列出力でも終了コード 2 を維持します。公開 0.3.2 は SSH の終了 255 やタイムアウト後に完全な応答の証拠も失う場合があります。0.3.3 は要求に一致する完全な事実を保持し、ローカル終了コード 1 と `sshTransport` を返します。不完全・不正な証拠は unknown のままです。unknown の場合は自動再送しません。
|
|
223
|
+
- 0.2.0 で導入した基本 doctor は Codex を実行せず inbox に提出しません。0.3.0 以降の明示的な `--check-return-route` は、利用できる非ローカル宛先に対してのみ、時間を制限した逆方向 SSH の無操作コマンドを実行します。自分自身への経路は SSH なしで `verified`、`transport:local`、`self_route_normalized` を返し、ホストがない場合は接続確認前に失敗します。`--check-reply-to` は未対応です。verified はローカル経路の正規化または 1 回の SSH 無操作コマンドの成功であり、ACK の認証や一般的な逆方向アクセスの保証ではありません。
|
|
224
|
+
- 同じ端末の Reply-To をローカルに正規化するには、明示した OS ユーザーの一致、認識できる正確なローカル名、明示的な SSH オプションがないことが必要です。送信者の証拠が競合した場合は識別情報を省き、Claude の名前が使えない場合は PID を使います。
|
|
225
|
+
- 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` を拒否します。導入の節には独立して公開されたスキルのソースを固定しています。
|
|
226
|
+
- 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 やデプロイ補助ツールの検証ではありません。
|
|
227
|
+
|
|
228
|
+
[移行の詳細](../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 は比較対象外です。
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
[0.4.0 handoff 設計と実装の範囲](../PARITY.md#handoff-v1-design-candidate--69)
|
|
229
232
|
|
|
230
233
|
## 開発と検証
|
|
231
234
|
|
|
@@ -244,13 +247,13 @@ Python は開発時の比較基準です(v1.1.0、`8ca77cf31254c8287a2593fe484
|
|
|
244
247
|
|
|
245
248
|
## npm リリース
|
|
246
249
|
|
|
247
|
-
公開 **0.3.2** は 2026-10-07 KST に検証されました([固定された公開記録](../VALIDATION.md#public-032--2026-10-07-kst))。以下のレジストリ照会で 0.
|
|
250
|
+
公開 **0.3.2** は 2026-10-07 KST に検証されました([固定された公開記録](../VALIDATION.md#public-032--2026-10-07-kst))。以下のレジストリ照会で 0.7.0 の現在の公開状況と npm タグを確認してください。日付付きの準備記録は、その後の公開結果を証明しません。
|
|
248
251
|
|
|
249
252
|
0.2.1 は 2026-09-29 KST、0.2.0 は 2026-09-28 KST に公開・検証されました。
|
|
250
253
|
[0.2.1 公開記録](../VALIDATION.md#public-021--2026-09-29-kst)を参照し(以降のリリースはそれぞれ日付付きの記録を追加します)、導入前に正確なバージョンと現在のタグを確認してください。
|
|
251
254
|
|
|
252
255
|
```sh
|
|
253
|
-
npm view session-peer@0.
|
|
256
|
+
npm view session-peer@0.7.0 version dist.integrity
|
|
254
257
|
npm view session-peer dist-tags
|
|
255
258
|
```
|
|
256
259
|
|
|
@@ -278,6 +281,7 @@ pipe の広告を確認するだけで、pipe の存在や接続可能性は保
|
|
|
278
281
|
`capabilities` は wake/wait/ACK と消費確認を未対応と明示します。任意の TS スキル
|
|
279
282
|
メタデータ検査もインストールを行いません。[診断の境界](../PARITY.md#source-read-only-doctor--18--020)
|
|
280
283
|
を参照してください。SSH の両端には同じ TypeScript クライアントのバージョンが必要です。
|
|
284
|
+
|
|
281
285
|
### 更新確認と通知(0.3.0、#22)
|
|
282
286
|
|
|
283
287
|
```sh
|
|
@@ -292,7 +296,7 @@ session-peer update --check --channel preview --output-format text
|
|
|
292
296
|
実行中の CLI のパスからインストールの管理者を確実に特定できた場合にだけ示します。
|
|
293
297
|
対象は、自身の `session-peer` ランチャーがこのパッケージを指す npm グローバル prefix
|
|
294
298
|
(既定、Homebrew、nvm、nvm-windows、fnm。例:
|
|
295
|
-
`npm install --global --ignore-scripts session-peer@0.
|
|
299
|
+
`npm install --global --ignore-scripts session-peer@0.7.0`)、マニフェストで
|
|
296
300
|
`session-peer` を宣言している pnpm・Yarn・Bun のグローバルストア、Volta、npx キャッシュ
|
|
297
301
|
です。プロジェクトへのインストール(`npm_project`、`pnpm_project`)、ソースチェック
|
|
298
302
|
アウト(`source`)、それ以外(`unknown`)では `updateCommand: null` と `guidance` の文だけを
|
|
@@ -314,9 +318,7 @@ TS スキルメタデータ(`skills`、`doctor` と同じ契約)と `skillsM
|
|
|
314
318
|
より新しい npm の安定版を示す場合に、JSON 結果へ `clientUpdate` オブジェクトを追加し、
|
|
315
319
|
テキスト出力では stderr に 1 行を出します。キャッシュがない・不正・期限切れの場合は
|
|
316
320
|
切り離した更新プロセスを 1 つ起動し、コマンドの結果や終了コードを遅らせたり変えたり
|
|
317
|
-
しません。更新に失敗した場合は 1
|
|
318
|
-
失敗時は閉じる側に倒れます。バックグラウンド更新でも明示的な確認でも、書き込みは
|
|
319
|
-
`npm-update.lock` を保持している間だけ、より古い記録に対してだけ行います。自分が作成して
|
|
321
|
+
しません。更新に失敗した場合は 1 時間後まで再試行しません。バックグラウンド更新でも明示的な確認でも、`npm-update.lock` を取得したプロセスだけが、既存の記録より新しい結果を書き込めます。自分が作成して
|
|
320
322
|
いないロックを引き継いだり削除したりすることはありません。更新が異常終了したり、I/O エラーでロックを解放できなかったりしてロックが残った
|
|
321
323
|
場合、バックグラウンド更新は止まり、`update --check` は `cache: "skipped_stale_lock"` を
|
|
322
324
|
報告します。session-peer のプロセスが動いていないときに `npm-update.lock` を手動で削除して
|
|
@@ -378,13 +380,13 @@ npm `--ignore-scripts` は利用でき、postinstall は Skills CLI を呼び出
|
|
|
378
380
|
|
|
379
381
|
## 非公開 handoff と配送観測(0.4.0)
|
|
380
382
|
|
|
381
|
-
0.4.0 には opt-in private POSIX handoff ledger が含まれます。必須の証拠が unsupported
|
|
383
|
+
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 と実ネットワーク検証は区別します。
|
|
382
384
|
|
|
383
|
-
[CLI](api.md#unreleased-opt-in-handoff-cli--040-work)
|
|
385
|
+
[CLI の仕様](api.md#unreleased-opt-in-handoff-cli--040-work)
|
|
384
386
|
|
|
385
387
|
|
|
386
388
|
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 は未対応です。
|
|
387
389
|
|
|
388
|
-
[
|
|
390
|
+
[配信観測の仕様](api.md#unreleased-local-delivery-observation--72)
|
|
389
391
|
|
|
390
|
-
Linux・Windows の native 注入観測は未対応です。 0.
|
|
392
|
+
Linux・Windows の native 注入観測は未対応です。 0.7.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) の後続作業です。
|