session-peer 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +5 -0
- package/PARITY.md +300 -16
- package/README.ja.md +75 -162
- package/README.ko.md +75 -249
- package/README.md +74 -275
- package/README.zh-CN.md +71 -158
- package/RELEASING.md +101 -5
- package/SECURITY.md +3 -2
- package/VALIDATION.md +236 -5
- package/dist/cli.d.ts +10 -1
- package/dist/cli.js +288 -48
- package/dist/diagnostics.d.ts +2 -0
- package/dist/diagnostics.js +10 -4
- package/dist/discovery.d.ts +1 -0
- package/dist/discovery.js +17 -4
- package/dist/help.js +32 -5
- package/dist/output.d.ts +1 -1
- package/dist/output.js +18 -2
- package/dist/process.d.ts +1 -0
- package/dist/process.js +90 -7
- package/dist/protocol.d.ts +6 -3
- package/dist/protocol.js +27 -7
- package/dist/replies.d.ts +30 -0
- package/dist/replies.js +283 -0
- package/dist/send.js +9 -2
- package/dist/ssh.d.ts +24 -0
- package/dist/ssh.js +114 -0
- package/dist/updates.d.ts +37 -0
- package/dist/updates.js +444 -0
- package/dist/windows.d.ts +2 -0
- package/dist/windows.js +31 -3
- package/docs/api.md +30 -0
- package/docs/design/remote-deployment.md +867 -0
- package/docs/guide.ja.md +310 -0
- package/docs/guide.ko.md +489 -0
- package/docs/guide.md +554 -0
- package/docs/guide.zh-CN.md +294 -0
- package/docs/shorthand.md +198 -0
- package/package.json +5 -3
- package/shorthand/sp.ps1 +11 -0
- package/shorthand/sp.sh +11 -0
package/VALIDATION.md
CHANGED
|
@@ -1,11 +1,228 @@
|
|
|
1
|
-
# Validation record — updated 2026-
|
|
1
|
+
# Validation record — updated 2026-10-03 KST
|
|
2
2
|
|
|
3
|
-
This dated record covers
|
|
4
|
-
verification, candidate checks and live-agent observations. Older sections
|
|
3
|
+
This dated record covers public 0.2.1 and 0.2.0 verification, historical 0.1.0
|
|
4
|
+
public verification, candidate checks and live-agent observations. Older sections
|
|
5
5
|
describe their stated checkpoint rather than current feature availability.
|
|
6
6
|
It does not claim complete Python parity.
|
|
7
7
|
Python reference: v1.0.2, commit `47c23713d0a2a3c11ebde6186afd8c43489b8b65`.
|
|
8
8
|
|
|
9
|
+
## 0.3.0 candidate checks — 2026-10-03 KST
|
|
10
|
+
|
|
11
|
+
Candidate source: main after #79, #84, #86, #85, #75 and #83 plus the 0.3.0
|
|
12
|
+
preparation PR. Changes and known limitations are listed in
|
|
13
|
+
[PARITY.md](PARITY.md#030-remote-usability-and-maintenance). The local checks
|
|
14
|
+
below ran at checkpoint `ed2548cda56f369a9d46fecf8c0c4ddbff2e5e78` on base
|
|
15
|
+
`b910cca6ba2f84d5ca6e4d5c234cafcaf3fcbd58`; later commits on the preparation PR
|
|
16
|
+
changed documentation only. Local macOS arm64,
|
|
17
|
+
Node 24.16.0/npm 11.15.0, with the pinned Python reference: 121 tests, 116
|
|
18
|
+
passed, 5 Windows-only skipped, 0 failed; `test:types`, package smoke (including
|
|
19
|
+
the Bash/zsh shorthand contract and lifecycle), repository checker and
|
|
20
|
+
`npm audit` (0 vulnerabilities) passed. Release `pack` and `artifact` validated
|
|
21
|
+
the 51-file allowlist, and an isolated `--ignore-scripts` install of the local
|
|
22
|
+
tarball into a temporary prefix printed `session-peer 0.3.0 (typescript)` and
|
|
23
|
+
uninstalled cleanly. The packaged READMEs and guides were read from that tarball.
|
|
24
|
+
Each included PR passed the full macOS/Linux/Windows Node 22/24 matrix,
|
|
25
|
+
CodeQL and the release gate on its head. These are fixture results, not
|
|
26
|
+
live-TUI ACKs and not public release evidence; 0.3.0 publication requires the
|
|
27
|
+
procedure in [RELEASING.md](RELEASING.md#030-stable-release-procedure) and a
|
|
28
|
+
dated public record.
|
|
29
|
+
|
|
30
|
+
## Remote deployment workflow, POSIX cell (#23 F5) — 2026-10-02 KST
|
|
31
|
+
|
|
32
|
+
The operator workflow in
|
|
33
|
+
[docs/design/remote-deployment.md](docs/design/remote-deployment.md) was run by
|
|
34
|
+
hand on a user-provided Linux host (label `linux-x64-sandbox`). All work was
|
|
35
|
+
confined to a new, dedicated test directory that was removed afterwards; the
|
|
36
|
+
host itself is not disposable. Host egress could not be disabled, so offline
|
|
37
|
+
install flags were used and nothing was downloaded on the host. This covers
|
|
38
|
+
the **POSIX cell only**. The Windows cell has not been run, so the
|
|
39
|
+
F5 criterion of #23 remains open. Nothing outside a single test root on the
|
|
40
|
+
destination was written. No agent session was contacted, and no message was
|
|
41
|
+
submitted.
|
|
42
|
+
|
|
43
|
+
### Environment
|
|
44
|
+
|
|
45
|
+
| Item | Value |
|
|
46
|
+
| --- | --- |
|
|
47
|
+
| Destination | Debian 13 (trixie), Linux 6.18, x86_64, glibc 2.41, non-root account without sudo, umask 0077 |
|
|
48
|
+
| SSH | Server OpenSSH_10.0p2 Debian-7+deb13u4. Client OpenSSH_10.3p1 with `BatchMode=yes`, `StrictHostKeyChecking=yes`, `ConnectTimeout=10`, the pre-pinned host-key alias, and no control socket. No host key was accepted or edited |
|
|
49
|
+
| Destination Node | None on PATH. Official `node-v24.21.0-linux-x64` (npm 11.19.0, ABI 137) and `node-v22.23.3-linux-x64` (npm 10.9.9, ABI 127) were unpacked inside the test root |
|
|
50
|
+
| Operator | macOS arm64, Node 24.16.0. `session-peer` 0.2.1 was installed from the verified tarball into a private temporary prefix, not globally |
|
|
51
|
+
|
|
52
|
+
### Integrity (step 1, on the operator)
|
|
53
|
+
|
|
54
|
+
All of the following were verified on the operator before any upload.
|
|
55
|
+
|
|
56
|
+
- **`session-peer-0.2.1.tgz`**
|
|
57
|
+
- SHA-256 `6bf3c99d12260ce2e9421909b27326f1663ce6945aa798bc90ca1e17da675e43`, equal to the [0.2.1 record](#public-021--2026-09-29-kst).
|
|
58
|
+
- Integrity `sha512-bPjriJZf…5nw0Mg==`, equal to the registry value.
|
|
59
|
+
- SLSA provenance names commit `a9c42334da8f7faf83f0b9bb1fe52f1c695dfe8d` and `.github/workflows/publish.yml`.
|
|
60
|
+
- **Dependencies, pinned to that commit's `package-lock.json`**
|
|
61
|
+
- `fs-ext-extra-prebuilt-2.2.14.tgz`: SHA-256 `1a2b5bf6…a712`; SHA-512 matches the lockfile.
|
|
62
|
+
- `nan-2.29.0.tgz`: SHA-256 `038073cb…8af6`; SHA-512 matches the lockfile.
|
|
63
|
+
- **Registry signatures:** `npm audit signatures` in a scratch offline install reported 2 verified registry signatures and 1 verified attestation.
|
|
64
|
+
- **Node tarballs** (downloaded from nodejs.org): SHA-256 matched `SHASUMS256.txt` for v22.23.3 and v24.21.0. The OpenPGP signature on `SHASUMS256.txt` was **not** verified, because no `gpg` was available.
|
|
65
|
+
- **After upload:** the destination's `sha256sum` matched for every uploaded file.
|
|
66
|
+
|
|
67
|
+
### Installs produced
|
|
68
|
+
|
|
69
|
+
All installs used `<node> <npm-cli.js> install --offline --ignore-scripts`
|
|
70
|
+
with an empty per-run cache, an empty `--userconfig` and an isolated `HOME`.
|
|
71
|
+
Each added 3 packages, and the staging `package-lock.json` integrity values
|
|
72
|
+
equal the release lockfile.
|
|
73
|
+
|
|
74
|
+
| Install | Recorded Node | id16 | Manifest SHA-256 | Files |
|
|
75
|
+
| --- | --- | --- | --- | --- |
|
|
76
|
+
| A | v24.21.0, ABI 137 | `3220dc6bc02772f0` | `65da80c7…f7f3f` | 153 |
|
|
77
|
+
| B (Node path change) | v22.23.3, ABI 127, different path | `d323791c5632ed2e` | `5e12598a…6aea5` | 153 |
|
|
78
|
+
| S (swap path) | v24.21.0 at a path later swapped | `111e7af6bc1de967` | — | 153 |
|
|
79
|
+
|
|
80
|
+
The identity JSON contained `package`, `version`, `sha256`, `lockIntegrity`,
|
|
81
|
+
`platform:"linux"`, `arch:"x64"`, `libc:"glibc"`, `nodeMajor`, `modules` and
|
|
82
|
+
the Node realpath (redacted here).
|
|
83
|
+
|
|
84
|
+
### Results
|
|
85
|
+
|
|
86
|
+
| Step or case | Outcome |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| 2. Root trust | `lstat` from the account home down to the root: real directories, owned by the user, mode 700, no symlinks |
|
|
89
|
+
| 3. Staging | Created exclusively, mode 700; destination SHA-256 equal to the operator's |
|
|
90
|
+
| 5–6. Staging probe, with no final directory present | The self-locating wrapper printed `session-peer 0.2.1 (typescript)` under `env -i PATH=/usr/bin:/bin`. The native `flock` probe loaded from staging (Node 24 ABI 137; Node 22 ABI 127) |
|
|
91
|
+
| 7. Activation under lock | `mkdir` lock taken, target `absent`, `fs.renameSync` succeeded |
|
|
92
|
+
| 8. Post-activation checks | Real directory, owned, mode 700; staging gone; marker hash and name match; manifest matches; wrapper banner exact; native probe ok. The receipt was written, then the lock released |
|
|
93
|
+
| 8. Operator `doctor --host --remote-bin <absolute path> --json` (A, B and S) | `ok:true`, `diagnosticCompleted:true`, `implementation:"typescript"`, `version:"0.2.1"`, `ready:false` (no agents in the isolated home). Only A ran it **before** its receipt and lock release (see the order deviation below) |
|
|
94
|
+
| 8. Operator `send --host … --to 999999 --dry-run --json` (A and B) | `ok:false`, `error:"no_reachable_target"`, `status:"refused"`, `submitted:false`, exit 2. Not run for S |
|
|
95
|
+
| Same identity already installed | `already_provisioned`; this run's staging was discarded. Abbreviated: staging was created and classified without a second install |
|
|
96
|
+
| Foreign directory at the target | `foreign` (`no_valid_marker`). Activation refused with `target_exists`; retention removal refused with `foreign_refused`; the foreign file's SHA-256 was unchanged |
|
|
97
|
+
| Empty directory at the target | `empty`. Activation refused with `target_exists` |
|
|
98
|
+
| `rename(2)` on this kernel | Non-empty `ENOTEMPTY`; **empty replaced**; file `ENOTDIR`; symlink `ENOTDIR`; absent ok. This matches the ADR's stated POSIX scope |
|
|
99
|
+
| Python-style stub on a test-only PATH | Preflight with it as `--remote-bin` gave `remote_version_mismatch`. Its SHA-256 `19b6aab2…fec0` was identical before and after all cases |
|
|
100
|
+
| Lock contention | A second acquire gave `EEXIST` (`lock_held`) |
|
|
101
|
+
| Failed activation | A staging tree altered after its manifest was written activated, then post-activation checks failed (`manifest:false`). It was rolled back through `.failed-*` and deleted; the target was absent afterwards |
|
|
102
|
+
| Run died after activation (no receipt) | Lock `held`, `autoStale:false`; target `owned_no_receipt`. Break-lock naming another run was refused. After the operator journal confirmed that the run had ended, break-lock rolled back the unreceipted target. This was the rule at that date; the current ADR instead releases the old lock and recovers under a fresh lock, which is unvalidated |
|
|
103
|
+
| Run died after its receipt | Break-lock kept the install (`kept`) and removed only the lock; the install then classified as `already_provisioned` |
|
|
104
|
+
| Lock without `owner.json` | `held_unowned`, `autoStale:false`. A break naming a run was refused, and a new acquire was refused. It was removed only by an explicit unowned break |
|
|
105
|
+
| Same-path Node major swap 24→22 (install S) | **Undetected**, as the ADR states: the wrapper exited 0 with the exact banner, and the native probe loaded the Node 22 binary. The harness's existing-target check still reported `already_provisioned`. A runtime-identity comparison (the logic proposed for `launch.mjs`) reported `differs:["nodeMajor","modules"]`. Recomputing step 2 produced a new identity (`f4f323b466c56e60`) |
|
|
106
|
+
| Rollback to a previous directory | After callers were switched back from B to A, operator `doctor` via A returned `ok:true` |
|
|
107
|
+
| Retention | Removing A while it was configured was refused (`configured_for_caller`). B was removed together with its receipt. The foreign fixture was refused |
|
|
108
|
+
| Cleanup | Markers and receipts were listed, then the whole test root was deleted and confirmed absent |
|
|
109
|
+
|
|
110
|
+
### Deviations and limits
|
|
111
|
+
|
|
112
|
+
- **Root location:** the root was `<test-root>/data/session-peer-ts`, which is
|
|
113
|
+
the ADR layout with `XDG_DATA_HOME=<test-root>/data`.
|
|
114
|
+
- **Network:** destination egress could not be disabled. Offline npm flags
|
|
115
|
+
were used instead, and nothing was downloaded on the destination.
|
|
116
|
+
- **Execution:** the steps were driven by a test harness script, uploaded and
|
|
117
|
+
hash-checked, and run with the recorded Node. This is not the proposed F6
|
|
118
|
+
helper; the identity launcher, manifest and lock exist only in that harness.
|
|
119
|
+
- **Isolation shim:** the operator `doctor` and `send` runs went through a
|
|
120
|
+
test-only shim (`env -i`, with `HOME`, `CLAUDE_CONFIG_DIR` and
|
|
121
|
+
`SESSION_PEER_CODEX_HOMES` inside the test root, and `PATH=/usr/bin:/bin`)
|
|
122
|
+
in front of the install wrapper. This kept discovery from reading the
|
|
123
|
+
account's real agent directories. Version preflight still executed the
|
|
124
|
+
install wrapper.
|
|
125
|
+
- **Initial npm check:** the first `npm --version` checks ran with the
|
|
126
|
+
account's real `HOME`. npm's user configuration was therefore readable to
|
|
127
|
+
that process. No writes outside the test root were observed, but this was
|
|
128
|
+
not independently verified, and the account's npm directories were
|
|
129
|
+
deliberately not inspected. All later npm runs used the isolated `HOME`,
|
|
130
|
+
which remained empty.
|
|
131
|
+
- **Operator-check order (harness deviation):** in the original execution
|
|
132
|
+
order of the private log, only install A ran the operator `doctor` and
|
|
133
|
+
dry-run before writing its receipt and releasing the lock, as step 8
|
|
134
|
+
required. B (run B3) wrote its receipt and released the lock first, and ran
|
|
135
|
+
the operator checks afterwards. S wrote its receipt and released the lock
|
|
136
|
+
before an operator `doctor`, and had no dry-run. For B and S, step 8 is
|
|
137
|
+
therefore only partially evidenced. Their remote activation, verification,
|
|
138
|
+
native-lock and lock results stand as recorded. This is based on the
|
|
139
|
+
original command order and timestamps in the private log, which is
|
|
140
|
+
chronological and was not rearranged.
|
|
141
|
+
- **Rule version:** the run used the ADR rules at the PR's fifth commit.
|
|
142
|
+
Recovery, receipt and trust rules added later were not exercised here.
|
|
143
|
+
- **Harness gap:** the existing-target check did not recompute runtime
|
|
144
|
+
identity, which is why it reported `already_provisioned` after the swap.
|
|
145
|
+
- **Not covered:** Windows (the F5 cell is still open), arm64, musl, macOS
|
|
146
|
+
destinations, glibc older than 2.28, and the empty-directory race window.
|
|
147
|
+
|
|
148
|
+
## Public 0.2.1 — 2026-09-29 KST
|
|
149
|
+
|
|
150
|
+
`session-peer@0.2.1` is public. Registry publication time is
|
|
151
|
+
`2026-09-28T23:45:16.923Z` (08:45:16 KST). Verified `latest=0.2.1` and
|
|
152
|
+
unchanged `preview=0.1.0-preview.1`.
|
|
153
|
+
|
|
154
|
+
- Source: `a9c42334da8f7faf83f0b9bb1fe52f1c695dfe8d`, release PR #67.
|
|
155
|
+
- Exact-main CI: [36498904152](https://github.com/abruption/session-peer-ts/actions/runs/36498904152), successful.
|
|
156
|
+
- Staging run: [36499231956](https://github.com/abruption/session-peer-ts/actions/runs/36499231956), successful (`prepare` and `publish`).
|
|
157
|
+
- Artifact: `session-peer-0.2.1.tgz`; SHA-256 `6bf3c99d12260ce2e9421909b27326f1663ce6945aa798bc90ca1e17da675e43`.
|
|
158
|
+
- Registry integrity: `sha512-bPjriJZf7OQ5niZafwxNgMYo0DVpZldELEjp640xAfBMjBCAJatT2hPMTG9oV7xDX2ULCPUmox9+vFWc5nw0Mg==`, identical to the retained artifact manifest.
|
|
159
|
+
- SLSA provenance names source `a9c42334…` and run 36499231956 attempt 1, workflow `.github/workflows/publish.yml`.
|
|
160
|
+
|
|
161
|
+
The user approved the exact main SHA/0.2.1/stable-stage, separately approved the
|
|
162
|
+
protected GitHub npm environment, and reported final npm 2FA promotion complete.
|
|
163
|
+
Before environment approval, the retained Actions artifact was reviewed against
|
|
164
|
+
the exact source: all four READMEs, the four guides, `docs/api.md`, PARITY,
|
|
165
|
+
RELEASING, VALIDATION, SECURITY and CONTRIBUTING matched byte for byte; package
|
|
166
|
+
version, `VERSION` and the packaged CLI banner were 0.2.1. After promotion,
|
|
167
|
+
`release.mjs artifact` and `release.mjs verify` passed registry integrity/tag/
|
|
168
|
+
attestation checks, npm signature audit, fresh version-specific installation and
|
|
169
|
+
uninstall on macOS Node 22.14.0.
|
|
170
|
+
|
|
171
|
+
Not independently recorded here: the stage ID, a byte comparison of the staged
|
|
172
|
+
tarball, the authenticated pending-stage list and the Trusted Publisher UI; the
|
|
173
|
+
reviewing workstation had no npm session. The registry integrity equals the
|
|
174
|
+
retained artifact. This record adds no live-agent ACK claim. No republishing, tag
|
|
175
|
+
deletion, GitHub release/tag creation or fleet installation was performed.
|
|
176
|
+
|
|
177
|
+
## 0.2.1 candidate checks — 2026-09-29 KST
|
|
178
|
+
|
|
179
|
+
Candidate source: main after #62, #63, #64 and #66 plus the 0.2.1 preparation PR.
|
|
180
|
+
Changes are listed in [PARITY.md](PARITY.md#021-reliability-and-hardening).
|
|
181
|
+
Local macOS arm64 Node 22.14.0 with the pinned Python reference: 77 tests, 73
|
|
182
|
+
passed, 4 Windows-only skipped; package smoke, repository checker, `npm audit`
|
|
183
|
+
(0 vulnerabilities), release `pack` and `artifact` validation passed. Each
|
|
184
|
+
included fix PR passed the full macOS/Linux/Windows Node 22/24 matrix, CodeQL and
|
|
185
|
+
the release gate on its head. These are fixture results, not live-TUI ACKs and not
|
|
186
|
+
public release evidence; 0.2.1 publication requires the procedure in
|
|
187
|
+
[RELEASING.md](RELEASING.md#completed-021-stable-release-procedure) and a dated public record.
|
|
188
|
+
|
|
189
|
+
## Public 0.2.0 — 2026-09-28 KST
|
|
190
|
+
|
|
191
|
+
`session-peer@0.2.0` is public. Registry publication time is
|
|
192
|
+
`2026-09-28T04:28:39.027Z` (13:28:39 KST). Verified `latest=0.2.0` and
|
|
193
|
+
unchanged `preview=0.1.0-preview.1`; authenticated pending-stage list is empty.
|
|
194
|
+
|
|
195
|
+
- Source: `2107c4c9f3a2ad9deca42f4e0dd9673d2e5fb3ce`, release PR #44.
|
|
196
|
+
- Exact-main CI: [36377144969](https://github.com/abruption/session-peer-ts/actions/runs/36377144969), successful.
|
|
197
|
+
- Staging run: [36377508658](https://github.com/abruption/session-peer-ts/actions/runs/36377508658), successful; Node 24 / npm 11.15.0.
|
|
198
|
+
- Stage: `479ce166-c252-4f71-88d6-9a9bda4c4e92`, tag `latest`, GitHub Actions trusted automation.
|
|
199
|
+
- Artifact: `session-peer-0.2.0.tgz`; SHA-256 `2def227c0e6d997b2fd292c1f7cfaec2d4330e654caf703fcb100eadafb418c2`.
|
|
200
|
+
- Registry integrity: `sha512-wXUVn2GdF3fKAjJA9cUKIiBc9YVswnfBNALo2nxhXqmpCqC7/9N+AQJct/06RAU7stbcbrfY55JQ15PPESXwHw==`.
|
|
201
|
+
|
|
202
|
+
The user approved the exact main SHA/stable-stage, separately approved the
|
|
203
|
+
protected GitHub npm environment, and reported final npm 2FA promotion complete.
|
|
204
|
+
Before dispatch, the npm UI showed the Trusted Publisher mapping to this repo,
|
|
205
|
+
`publish.yml`, environment `npm`, with `npm stage publish` permission only.
|
|
206
|
+
GitHub required reviewer and main-only environment policy were checked.
|
|
207
|
+
The existing package setting permitted 2FA or bypass-enabled automation tokens;
|
|
208
|
+
this release did not change that setting and used OIDC staging.
|
|
209
|
+
|
|
210
|
+
Codex reviewed the retained Actions artifact against the exact source: all four
|
|
211
|
+
READMEs plus PARITY, RELEASING and VALIDATION matched byte for byte. The tarball
|
|
212
|
+
downloaded from npm staging was byte-identical to that retained artifact.
|
|
213
|
+
After promotion, `release.mjs verify` passed registry integrity/tag/attestation
|
|
214
|
+
checks, npm signature audit, fresh version-specific installation, version banner,
|
|
215
|
+
isolated empty Claude listing and uninstall on macOS Node 22.14.0. Published
|
|
216
|
+
provenance names the exact source SHA and run above. The npm 0.2.0 page rendered
|
|
217
|
+
the version-specific README and install command correctly when inspected.
|
|
218
|
+
|
|
219
|
+
This public-package check does not add a new live-agent ACK or cross-device
|
|
220
|
+
submission claim. Platform fixture evidence remains the exact-main CI above;
|
|
221
|
+
historical live-agent observations below retain their original versions.
|
|
222
|
+
The immutable npm tarball contains the dated pre-publication checkpoint; this
|
|
223
|
+
post-publication record is a later GitHub documentation update. No republishing,
|
|
224
|
+
tag deletion, GitHub release/tag creation or fleet installation was performed.
|
|
225
|
+
|
|
9
226
|
## Source discovery for 0.2.0 — 2026-09-28 KST
|
|
10
227
|
|
|
11
228
|
Issue #16 adds combined Claude/Codex listing and bounded multiple-home inventory.
|
|
@@ -27,8 +244,22 @@ Windows SSH fixture additionally executes actual PowerShell/.cmd and checks
|
|
|
27
244
|
partial listing rows while a native writer is held, with no new queue call.
|
|
28
245
|
Windows test files run serially so concurrent PowerShell compilation does not
|
|
29
246
|
consume the native inspector's fixed timeout; assertions and production deadlines
|
|
30
|
-
are unchanged.
|
|
31
|
-
|
|
247
|
+
are unchanged. Separately (#65), the compiling `Add-Type` owner inspection now has
|
|
248
|
+
a 20000 ms deadline after a slow runner exceeded 8000 ms on main (CI run
|
|
249
|
+
36419550921, attempt 1). The compile-free creation-time probe moved from 8000 ms
|
|
250
|
+
to 15000 ms (#78) after CI run 36542897023 (`windows-native (24)`) killed it at its
|
|
251
|
+
8000 ms deadline (observed 8024 ms including termination; the probe's actual
|
|
252
|
+
completion time is unknown). 15000 ms is a mitigation margin, not proof that slow
|
|
253
|
+
machines or CI never exceed it. Probes run sequentially, once per probe-eligible
|
|
254
|
+
Claude session record (N, including stale records), so a full scan's worst-case
|
|
255
|
+
probe budget is roughly 15 × N seconds plus I/O and termination overhead, an
|
|
256
|
+
increase of 7 × N seconds over the former 8 × N; the compiling path's 20000 ms
|
|
257
|
+
deadline is per call, not a scan bound. A Claude dry-run scans once and returns
|
|
258
|
+
after selection. A real Claude send scans during selection and, only if selection
|
|
259
|
+
succeeds, again during revalidation, so its worst case is about 15 × (N1 + N2)
|
|
260
|
+
seconds for the two scans' record counts; a refusal at selection has no second scan.
|
|
261
|
+
Timeouts still exclude the process. Each native subtest
|
|
262
|
+
cleans its children even after assertion failure. Package smoke verifies unified empty discovery without executables on PATH.
|
|
32
263
|
These are fixture contracts, not new live-TUI ACKs. CI evidence belongs to the
|
|
33
264
|
issue's PR-head checks; publication requires separate release preparation.
|
|
34
265
|
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { type Done } from './process.js';
|
|
3
|
+
import { type SshJump, type SshOptions } from './ssh.js';
|
|
3
4
|
type Options = {
|
|
4
|
-
command: 'list' | 'send' | 'doctor';
|
|
5
|
+
command: 'list' | 'send' | 'doctor' | 'update';
|
|
5
6
|
values: Map<string, string>;
|
|
6
7
|
flags: Set<string>;
|
|
8
|
+
hosts: string[];
|
|
9
|
+
ssh: SshOptions;
|
|
10
|
+
jump?: SshJump;
|
|
11
|
+
address?: {
|
|
12
|
+
uri: string;
|
|
13
|
+
transport: 'local' | 'ssh';
|
|
14
|
+
implicit: boolean;
|
|
15
|
+
};
|
|
7
16
|
};
|
|
8
17
|
export declare function parse(args: string[]): Options;
|
|
9
18
|
export declare function sshPreflightFailure(result: Done, expected: string): string | undefined;
|