session-peer 0.3.0 → 0.3.2

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.
@@ -4,7 +4,9 @@
4
4
 
5
5
  [English](guide.md) | [한국어](guide.ko.md) | [日本語](guide.ja.md) | [简体中文](guide.zh-CN.md)
6
6
 
7
- 这是 0.3.0 详细指南。0.3.0 在 0.2.1 基础上新增多主机 SSH、发送者信息与回复路由、更新检查以及可选的 `sp` 简写([变更](../PARITY.md#030-remote-usability-and-maintenance))。上一次发布记录见 [0.2.1 公开发布证据](../VALIDATION.md#public-021--2026-09-29-kst);下文 0.1.0 的说明用于旧版本对比。
7
+ **文档和源码版本:0.3.2。** 使用以下固定版本 npm 命令前,请通过 npm 注册表或版本徽章确认 0.3.2 是否已发布。发布前,请使用已审核的源码检出版本或本地构建产物。构建和 SSH 两端需要相同的已审核版本。
8
+
9
+ 这是 0.3.2 详细指南([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 的说明用于旧版本对比。
8
10
 
9
11
  ## 目录
10
12
 
@@ -21,7 +23,7 @@
21
23
 
22
24
  向正在运行的 **Claude Code 和 Codex 会话**发送消息,支持本机和跨机器 SSH。这是运行于 Node.js 的 TypeScript 客户端,不需要 Python。
23
25
 
24
- **这是 0.3.0 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
26
+ **这是 0.3.2 使用指南。**包名为 `session-peer`,CLI 命令为 **`session-peer`**。本项目不提供 Relay 服务器或托管服务。
25
27
 
26
28
  ## 功能与边界
27
29
 
@@ -38,7 +40,7 @@
38
40
 
39
41
  构建后,`node dist/cli.js list --json` 合并列出 Claude/Codex,`list --agent codex --json` 查找已知 home。公开 npm **0.1.0** 仍要求显式 agent,以及 Codex 列表所需的 home;0.2.0 也支持显式命令格式。
40
42
 
41
- 范围仅限默认 `~/.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.3.0)。
43
+ 范围仅限默认 `~/.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.3.2)。
42
44
 
43
45
  ### 0.2.0 CLI 易用性
44
46
 
@@ -58,14 +60,15 @@ macOS、Linux 或 Windows native;Node **22.x 中的 22.13 及以上,或 24.x
58
60
 
59
61
  ## 安装
60
62
 
61
- 已验证的稳定版可在 Node 22.x 的 22.13 及以上或 24.x 上安装。Python CLI 也使用同一个命令名;若已有安装,请先检查 PATH。
63
+ 使用 Node 22.x 的 22.13 及以上或 24.x,并确认要安装的确切版本是否已发布。Python CLI 也使用同一个命令名;若已有安装,请先检查 PATH。
62
64
 
63
65
  ```sh
64
- npm install --global --ignore-scripts session-peer@0.3.0
66
+ npm view session-peer@0.3.2 version dist.integrity
67
+ npm install --global --ignore-scripts session-peer@0.3.2
65
68
  session-peer --version
66
69
  ```
67
70
 
68
- 预期输出:`session-peer 0.3.0 (typescript)`。
71
+ 预期输出:`session-peer 0.3.2 (typescript)`。
69
72
 
70
73
  1. 用 `session-peer list --agent claude --json` 查找目标并选择准确 PID。
71
74
  2. 用 `session-peer send --to CLAUDE_PID --message 'Please reply after checking.' --dry-run --json` 验证,不提交。
@@ -84,7 +87,7 @@ npm run build
84
87
  node dist/cli.js --version
85
88
  npm pack --ignore-scripts
86
89
  # 可选:全局安装前先检查 PATH 选择的现有命令
87
- npm install --global --ignore-scripts ./session-peer-0.3.0.tgz
90
+ npm install --global --ignore-scripts ./session-peer-0.3.2.tgz
88
91
  session-peer --version
89
92
  ```
90
93
 
@@ -94,7 +97,7 @@ session-peer --version
94
97
 
95
98
  安装前后用 `type -a session-peer` 和 `command -v session-peer` 检查实际执行项。其他实现也可能提供同名命令;请选择 PATH 上的一种,或显式运行 `node /absolute/path/dist/cli.js`。不要用 `--force` 覆盖其他管理器的文件。本包不会自动安装、删除或调整 Python 包、技能或服务。卸载使用 `npm uninstall --global session-peer`,随后再次检查 PATH。
96
99
 
97
- 在 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.3.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` 卸载。
100
+ 在 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.3.2.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` 卸载。
98
101
 
99
102
  ## 使用
100
103
 
@@ -188,7 +191,7 @@ Python 只用作开发时的兼容性基准(v1.0.2,`47c23713d0a2a3c11ebde618
188
191
  安装前核对准确版本与当前标签。
189
192
 
190
193
  ```sh
191
- npm view session-peer@0.3.0 version dist.integrity
194
+ npm view session-peer@0.3.2 version dist.integrity
192
195
  npm view session-peer dist-tags
193
196
  ```
194
197
 
@@ -227,7 +230,7 @@ dist-tag(3 秒超时,不重试),并报告 `current`、`latest`、`channe
227
230
  `ahead`)、`managedBy`、`updateCommand` 和 `guidance`。只有根据当前 CLI 路径能确切识别
228
231
  安装的管理方时才给出命令:其自身 `session-peer` 启动器指向本包的 npm 全局 prefix
229
232
  (默认、Homebrew、nvm、nvm-windows、fnm,例如
230
- `npm install --global --ignore-scripts session-peer@0.3.1`),清单中声明了
233
+ `npm install --global --ignore-scripts session-peer@0.3.2`),清单中声明了
231
234
  `session-peer` 的 pnpm、Yarn、Bun 全局存储,Volta,或 npx 缓存。项目安装
232
235
  (`npm_project`、`pnpm_project`)、源码检出(`source`)以及其他情况(`unknown`)只返回
233
236
  `updateCommand: null` 和一句 `guidance`,因此不会给出可能修改无关当前目录的命令。它只报告
package/docs/shorthand.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Optional `sp` shorthand
2
2
 
3
+ This reference describes source/package version 0.3.2. 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
+
3
5
  [README](../README.md) · [User guide](guide.md)
4
6
 
5
7
  This feature ships with 0.3.0 and later ([#74](https://github.com/abruption/session-peer-ts/issues/74)).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "session-peer",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -41,7 +41,7 @@
41
41
  "build": "tsc -p tsconfig.json",
42
42
  "test": "npm run build && npm run test:types && node --import ./test/fixtures/isolate-env.mjs --experimental-strip-types --test test/*.test.ts",
43
43
  "test:types": "tsc -p tsconfig.test.json",
44
- "test:windows": "npm run build && npm run test:types && node --import ./test/fixtures/isolate-env.mjs --import ./test/fixtures/windows-inspection-diagnostic.mjs --experimental-strip-types --test --test-concurrency=1 test/windows.test.ts test/windows-contract.test.ts test/windows-inspection.test.ts test/input-boundaries.test.ts test/discovery.test.ts test/codex-homes.test.ts test/diagnostics.test.ts test/cli-usability.test.ts test/skill-guidance.test.ts test/ssh-hosts.test.ts test/replies.test.ts test/updates.test.ts",
44
+ "test:windows": "npm run build && npm run test:types && node --import ./test/fixtures/isolate-env.mjs --import ./test/fixtures/windows-inspection-diagnostic.mjs --experimental-strip-types --test --test-concurrency=1 test/writer-uid.test.ts test/claude-records.test.ts test/reply-agent-binding.test.ts test/windows.test.ts test/windows-contract.test.ts test/windows-inspection.test.ts test/input-boundaries.test.ts test/discovery.test.ts test/codex-homes.test.ts test/diagnostics.test.ts test/cli-usability.test.ts test/skill-guidance.test.ts test/ssh-hosts.test.ts test/replies.test.ts test/updates.test.ts",
45
45
  "test:package": "npm run build && node --experimental-strip-types test/package-smoke.ts"
46
46
  },
47
47
  "devDependencies": {
@@ -49,6 +49,7 @@
49
49
  "typescript": "5.9.3"
50
50
  },
51
51
  "dependencies": {
52
- "fs-ext-extra-prebuilt": "2.2.14"
52
+ "fs-ext-extra-prebuilt": "2.2.14",
53
+ "smol-toml": "1.9.0"
53
54
  }
54
55
  }