session-peer 0.1.0-preview.1 → 0.2.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 +6 -1
- package/PARITY.md +396 -0
- package/README.ja.md +105 -16
- package/README.ko.md +136 -34
- package/README.md +162 -41
- package/README.zh-CN.md +101 -16
- package/RELEASING.md +183 -169
- package/UNICODE-LICENSE.txt +39 -0
- package/VALIDATION.md +224 -13
- package/dist/casefold.d.ts +2 -0
- package/dist/casefold.js +9 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +69 -22
- package/dist/diagnostics.d.ts +21 -0
- package/dist/diagnostics.js +225 -0
- package/dist/discovery.d.ts +21 -1
- package/dist/discovery.js +182 -46
- package/dist/help.d.ts +1 -0
- package/dist/help.js +50 -0
- package/dist/output.d.ts +2 -0
- package/dist/output.js +42 -0
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +1 -1
- package/dist/send.d.ts +8 -0
- package/dist/send.js +30 -17
- package/dist/writer.d.ts +34 -3
- package/dist/writer.js +140 -69
- package/package.json +7 -5
package/VALIDATION.md
CHANGED
|
@@ -1,9 +1,141 @@
|
|
|
1
|
-
# Validation record — 2026-09-
|
|
1
|
+
# Validation record — updated 2026-09-28 KST
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This dated record covers the 0.2.0 release source and historical 0.1.0 public
|
|
4
|
+
verification, candidate checks and live-agent observations. Older sections
|
|
5
|
+
describe their stated checkpoint rather than current feature availability.
|
|
6
|
+
It does not claim complete Python parity.
|
|
4
7
|
Python reference: v1.0.2, commit `47c23713d0a2a3c11ebde6186afd8c43489b8b65`.
|
|
5
8
|
|
|
6
|
-
## 0.
|
|
9
|
+
## Source discovery for 0.2.0 — 2026-09-28 KST
|
|
10
|
+
|
|
11
|
+
Issue #16 adds combined Claude/Codex listing and bounded multiple-home inventory.
|
|
12
|
+
The source feature is not present in the immutable npm 0.1.0 archive. It does
|
|
13
|
+
not enable implicit Codex send selection or inactive queueing (#17).
|
|
14
|
+
|
|
15
|
+
`test/discovery.test.ts` ports the Python 1.0.2 unified-list/multi-home cases:
|
|
16
|
+
optional absence versus explicit missing sources, alias/source merging and
|
|
17
|
+
cross-home UUID identity, global ordering/archived filters, whole invalid-config
|
|
18
|
+
rejection, per-home/agent partial failure, pinned-home bypass, destination-side
|
|
19
|
+
stdio/SSH inventory and nonzero partial envelopes. Temporary SQLite files and
|
|
20
|
+
local socket/pipe records are isolated; listing opens no inbox connection and
|
|
21
|
+
leaves DB contents unchanged. Permission/canonicalization/enumeration failures
|
|
22
|
+
are injected deterministically on every OS, not claimed as Windows ACL evidence.
|
|
23
|
+
|
|
24
|
+
The suite runs in macOS/Linux Node 22/24 CI with the pinned Python oracle, and
|
|
25
|
+
in Windows x64 Node 22/24 CI with native fixtures but no Python oracle. The
|
|
26
|
+
Windows SSH fixture additionally executes actual PowerShell/.cmd and checks
|
|
27
|
+
partial listing rows while a native writer is held, with no new queue call.
|
|
28
|
+
Windows test files run serially so concurrent PowerShell compilation does not
|
|
29
|
+
consume the native inspector's fixed timeout; assertions and production deadlines
|
|
30
|
+
are unchanged. Each native subtest cleans its children even after assertion
|
|
31
|
+
failure. Package smoke verifies unified empty discovery without executables on PATH.
|
|
32
|
+
These are fixture contracts, not new live-TUI ACKs. CI evidence belongs to the
|
|
33
|
+
issue's PR-head checks; publication requires separate release preparation.
|
|
34
|
+
|
|
35
|
+
## Public 0.1.0 — 2026-09-27 KST
|
|
36
|
+
|
|
37
|
+
`session-peer@0.1.0` was published at `2026-09-27T11:23:51.466Z`
|
|
38
|
+
(20:23:51 KST), according to the public registry. Its source was
|
|
39
|
+
`0edc4f8ae05256698f591b7402e89cd3d5858eef` and
|
|
40
|
+
[run 36315310094](https://github.com/abruption/session-peer-ts/actions/runs/36315310094)
|
|
41
|
+
created npm stage `e8f7941e-9ad1-4039-9132-285c900ed61d` after the separate
|
|
42
|
+
stable-stage and protected-environment approvals. The owner then confirmed npm
|
|
43
|
+
2FA approval. The run itself records staging, not the later public verification.
|
|
44
|
+
|
|
45
|
+
The release-session checks recorded matching public registry integrity and
|
|
46
|
+
provenance metadata, npm signature audit, fresh isolated installation and
|
|
47
|
+
uninstallation. The 2026-09-28 KST read-only recheck downloaded the public
|
|
48
|
+
tarball and independently matched both hashes below against the run manifest
|
|
49
|
+
and registry. Registry metadata included provenance and one package signature.
|
|
50
|
+
At that recheck, `latest` was `0.1.0` and `preview` was `0.1.0-preview.1`.
|
|
51
|
+
|
|
52
|
+
- SHA-256: `41189d771a94c14775f8ef297d887627f4ab12819856bb18efff291e03c2e269`
|
|
53
|
+
- Integrity: `sha512-/FtILLgUpIAgqf5FsdU5/x17IGeWO3ylmm47gbSyN3hHjD40pp5gtOeAXU3zqmye/cx7PE52Pp/oLa0ZgZyDQQ==`
|
|
54
|
+
|
|
55
|
+
These are package-delivery checks, not new live-TUI ACK evidence for the
|
|
56
|
+
published build. Historical ACKs below retain their original scope.
|
|
57
|
+
|
|
58
|
+
### Packaged documentation discrepancy
|
|
59
|
+
|
|
60
|
+
The immutable 0.1.0 tarball contains the earlier four READMEs and validation/
|
|
61
|
+
release notes written before publication. Its English README still describes
|
|
62
|
+
0.1.0 as release source awaiting approval. That wording is stale; it does not
|
|
63
|
+
mean the public stable package is unavailable. The later GitHub README fix
|
|
64
|
+
[PR #15](https://github.com/abruption/session-peer-ts/pull/15) could not change
|
|
65
|
+
an already published archive. Corrected packaged documentation requires a new
|
|
66
|
+
version; never republish 0.1.0 to replace its README.
|
|
67
|
+
|
|
68
|
+
The npm version page returned HTTP 403 to the read-only web reader during the
|
|
69
|
+
2026-09-28 check, so its rendered README was not verified. The tarball contents
|
|
70
|
+
were inspected directly. See the exact-artifact documentation review in
|
|
71
|
+
[RELEASING.md](RELEASING.md#documentation-gate-for-the-next-release).
|
|
72
|
+
|
|
73
|
+
## Current CI scope
|
|
74
|
+
|
|
75
|
+
All three operating systems run Node 22/24. The checks differ:
|
|
76
|
+
|
|
77
|
+
| Platform | Automated scope |
|
|
78
|
+
| --- | --- |
|
|
79
|
+
| macOS/Linux | Full contract suite, type checks, Python reference fixtures, package smoke, release pack/artifact checks and audit. |
|
|
80
|
+
| Windows x64 | Build/type checks, Claude named-pipe/auth/stale-record fixtures, held/free kernel locks, writer ownership and pre-submit races, native queue outcome fixtures, PowerShell/.cmd SSH framing through a fake endpoint, package/native-load smoke and audit. |
|
|
81
|
+
|
|
82
|
+
Windows runs its native suite, not the POSIX/Python reference suite. Both
|
|
83
|
+
Windows Node jobs are required by the aggregate release gate. The x64/Node 24
|
|
84
|
+
user-observed ACKs below remain separate one-shot evidence, not Windows arm64 or
|
|
85
|
+
live Node 22 qualification. See [PARITY.md](PARITY.md) for the versioned matrix.
|
|
86
|
+
|
|
87
|
+
## 0.1.1 milestone verification work — 2026-09-28 KST
|
|
88
|
+
|
|
89
|
+
[PR #37](https://github.com/abruption/session-peer-ts/pull/37) expands Windows
|
|
90
|
+
fixture coverage for #34 and adds the #33 compatibility/migration guide.
|
|
91
|
+
No runtime feature, package version or public npm tag changes in this work.
|
|
92
|
+
The initial expanded Windows x64 Node 22/24 suite and all other platform jobs
|
|
93
|
+
passed [run 36357787318](https://github.com/abruption/session-peer-ts/actions/runs/36357787318)
|
|
94
|
+
at commit `5c84e91`. Final PR-head checks must include the additional controlled
|
|
95
|
+
sampling races and packaged guide; use the PR's latest required release gate.
|
|
96
|
+
|
|
97
|
+
The Windows C# fixture holds actual LockFileEx locks and supplies native process
|
|
98
|
+
PID/SID/start evidence through Restart Manager. Tests cover wrong and competing
|
|
99
|
+
openers, lock replacement between samples, owner replacement during pre-submit
|
|
100
|
+
revalidation, dry-run zero calls, one queue submission, inactive/ambiguous refusal,
|
|
101
|
+
nonzero/timeout unknown outcomes without retry or stderr leakage. Sampling-race
|
|
102
|
+
tests control the delay only; lock/process/owner inspection remains native.
|
|
103
|
+
|
|
104
|
+
The isolated `ssh.exe` fixture records the wire request and runs actual
|
|
105
|
+
PowerShell with a `.cmd` path containing spaces. It checks exact-version
|
|
106
|
+
preflight, stdin JSON, refusal/unknown handling and one native fixture queue.
|
|
107
|
+
It does not connect to a network or authenticate a real SSH host. Package smoke
|
|
108
|
+
checks the installed `.cmd` launcher, empty discovery, declarations, installed
|
|
109
|
+
native lock binary, repeat-pack hashes and uninstall. No fixture result is
|
|
110
|
+
real Codex queue acceptance, live-TUI ACK or Windows arm64 evidence.
|
|
111
|
+
|
|
112
|
+
## Public 0.1.0-preview.1 — 2026-09-27 KST
|
|
113
|
+
|
|
114
|
+
The preview.1 candidate and exact merged main passed macOS/Linux Node 22/24,
|
|
115
|
+
native Windows Node 22/24 and the release gate. A separate gate change preserved
|
|
116
|
+
the existing `latest: 0.1.0-preview.0` while permitting preview.1 staging.
|
|
117
|
+
[Run 36313884100](https://github.com/abruption/session-peer-ts/actions/runs/36313884100)
|
|
118
|
+
staged the exact main commit `f65d3ee99cc26ff4a267aef84e31a308d034ac80`
|
|
119
|
+
through the stage-only OIDC Trusted Publisher. After separate environment and
|
|
120
|
+
npm 2FA approvals, the public registry showed `preview: 0.1.0-preview.1` and
|
|
121
|
+
unchanged `latest: 0.1.0-preview.0`.
|
|
122
|
+
|
|
123
|
+
The npm stage tarball matched the retained run artifact byte for byte. Its
|
|
124
|
+
SHA-256 was `d154beac93893b60b0695e5a6296e185beb8dbd05188ffe04befb74d29966110`.
|
|
125
|
+
The public SHA-512 integrity and provenance metadata matched the manifest;
|
|
126
|
+
`npm audit signatures`, fresh version-specific install, CLI version and empty
|
|
127
|
+
Claude discovery checks, and uninstall passed. This verifies package delivery,
|
|
128
|
+
not a new live Claude/Codex message ACK from the published build.
|
|
129
|
+
|
|
130
|
+
## Historical 0.1.0 stable candidate
|
|
131
|
+
|
|
132
|
+
The preparation updated the version handshake, package metadata, four README
|
|
133
|
+
languages, release gates and tests. Native delivery logic was unchanged.
|
|
134
|
+
Candidate and exact merged-main CI preceded the separately approved staging,
|
|
135
|
+
npm 2FA approval and public checks recorded above. Those approvals did not
|
|
136
|
+
authorize a GitHub tag or fleet installation.
|
|
137
|
+
|
|
138
|
+
## Historical 0.1.0-preview.1 candidate checks
|
|
7
139
|
|
|
8
140
|
After #7–#10 were merged, the versioned candidate passed the local macOS
|
|
9
141
|
arm64 Node 22 contract suite (23 passed, two Windows-only tests skipped),
|
|
@@ -11,10 +143,10 @@ TypeScript test type-check, package/declaration smoke test, four-README
|
|
|
11
143
|
repository checks and `npm audit` (zero vulnerabilities). The package smoke
|
|
12
144
|
test repeated packing with the same SHA-256 and verified isolated install and
|
|
13
145
|
uninstall. The new candidate was not sent to a live agent and was not published
|
|
14
|
-
by these checks. Windows Node 22/24 and macOS/Linux Node 22/24
|
|
15
|
-
on the candidate PR and exact merged `main`
|
|
146
|
+
by these checks. Windows Node 22/24 and macOS/Linux Node 22/24 checks were also
|
|
147
|
+
required on the candidate PR and exact merged `main` before publication.
|
|
16
148
|
|
|
17
|
-
##
|
|
149
|
+
## Historical initial automated checks
|
|
18
150
|
|
|
19
151
|
- 14 tests pass locally on macOS arm64 / Node 22.14.0.
|
|
20
152
|
- Real fixture SQLite DBs, Unix inbox sockets and separate C processes holding
|
|
@@ -102,11 +234,90 @@ successful publication; the GitHub repository remains `session-peer-ts`.
|
|
|
102
234
|
Package identity, tarball naming and publication confirmations are covered by
|
|
103
235
|
package/release fixtures, not claimed as new live ACK evidence.
|
|
104
236
|
|
|
105
|
-
##
|
|
237
|
+
## Remaining evidence limits
|
|
238
|
+
|
|
239
|
+
Windows arm64, IPv6 literals, Relay/MCP/wake, full Python CLI parity and
|
|
240
|
+
automatic reverse-route detection remain outside this evidence. Registry
|
|
241
|
+
publication checks for preview.1 and stable 0.1.0 are recorded above separately
|
|
242
|
+
from the historical live-agent ACKs. Future publication still requires the
|
|
243
|
+
approvals and gates in RELEASING.md. Native dependency prebuild availability
|
|
244
|
+
must be tested on each architecture claimed by a future release.
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
## 2026-09-28 — #17 source Codex home selection (0.2.0 development)
|
|
248
|
+
|
|
249
|
+
Source adds implicit unique-live selection, explicit inactive opt-in, sanitized
|
|
250
|
+
resolution diagnostics and optional native queue IDs. npm 0.1.0 remains the
|
|
251
|
+
published baseline; no release or tag operation is part of this work.
|
|
252
|
+
|
|
253
|
+
Local macOS arm64 / Node 22.14.0: 47 tests passed, 3 Windows-only tests skipped.
|
|
254
|
+
Fixtures cover real flock holders, implicit selection, explicit conflicts,
|
|
255
|
+
multiple writers, unsaved first turns, inactive opt-in, configuration truth table,
|
|
256
|
+
DB/inventory/lock evidence changes, zero-submit dry-run and unknown/no-retry.
|
|
257
|
+
The Windows suite adds equivalent selection/metadata cases to its native
|
|
258
|
+
LockFileEx and owner-swap tests, plus inactive flag/queue ID through PowerShell SSH.
|
|
259
|
+
Initial PR CI run `36368300629` passed macOS/Linux and Windows x64 on Node
|
|
260
|
+
22/24, including package smoke and the release gate. Latest-head results are
|
|
261
|
+
recorded in PR #39; a fixture result is not a recipient ACK.
|
|
262
|
+
No live agents, native DB writes, Python/Relay operations or real SSH destinations
|
|
263
|
+
were exercised. See PARITY.md for the intentional stricter missing-home policy.
|
|
264
|
+
|
|
265
|
+
## 2026-09-28 — source doctor for 0.2.0 (#18)
|
|
266
|
+
|
|
267
|
+
Read-only doctor fixture coverage adds missing/unsupported/permission/unknown
|
|
268
|
+
home and tool results, separate command success/readiness, truthful capabilities,
|
|
269
|
+
Claude inbox metadata without connection, bounded TS skill compatibility,
|
|
270
|
+
stdio framing and SSH doctor round trips. Codex executables are inspected but
|
|
271
|
+
never run. No live sessions, user homes, inbox dispatch or delivery ACK are used.
|
|
272
|
+
Windows CI includes the portable diagnostics suite and encoded PowerShell/.cmd
|
|
273
|
+
SSH checks in the existing native fixture. Windows pipe advertisements remain
|
|
274
|
+
metadata evidence, not proof of a connectable pipe. Public npm 0.1.0 is unchanged;
|
|
275
|
+
these tests do not constitute release or publication approval.
|
|
276
|
+
|
|
277
|
+
## Source #19 CLI usability — 2026-09-28
|
|
278
|
+
|
|
279
|
+
The 0.2.0 development source adds text output, complete list/send/doctor help, positional
|
|
280
|
+
message compatibility and Unicode 14.0.0 exact casefold. No npm publication or
|
|
281
|
+
live-agent ACK is claimed. `test/cli-usability.test.ts` is included in the native
|
|
282
|
+
Windows test command and the macOS/Linux suite. It verifies output/exit codes,
|
|
283
|
+
partial discovery, parse-before-stdin behavior, Unicode collisions and PID
|
|
284
|
+
selection using isolated process/socket fixtures. Windows posting ownership is
|
|
285
|
+
covered by the existing native fixture suite; the new name fixture is dry-run on
|
|
286
|
+
Windows. Version metadata remains 0.1.0 until separate release preparation.
|
|
287
|
+
|
|
288
|
+
## 2026-09-28 — Source skill integration (#25, preparing 0.2.0)
|
|
289
|
+
|
|
290
|
+
Separate `session-peer-ts` companion skill source and pinned Skills CLI 1.7.0
|
|
291
|
+
setup are prepared without npm publication or new skill tags. Original Python
|
|
292
|
+
skill content stays unchanged. Runtime examples use temporary homes/SQLite only;
|
|
293
|
+
Codex inactive dry-run verifies zero submission and no queue/database mutation.
|
|
294
|
+
The companion lifecycle test installs, replaces from a second isolated source,
|
|
295
|
+
lists and removes project/global copies for Codex and Claude Code, preserving a
|
|
296
|
+
Python skill fixture. No production agent homes are edited, and no live TUI ACK
|
|
297
|
+
is claimed. npm installs continue using `--ignore-scripts`.
|
|
298
|
+
|
|
299
|
+
Independent read-only review used Antigravity `gemini-3.1-pro-high`. Its concrete
|
|
300
|
+
clarification (absolute remote launcher paths) was verified against the CLI and
|
|
301
|
+
applied to the companion skill. Parent review corrected the TS `retryAllowed`
|
|
302
|
+
field name and made capability checks require affirmative supported help entries.
|
|
303
|
+
Real GitHub exact-commit installation was also exercised in isolated scopes;
|
|
304
|
+
installation commands do not depend on a moving tag.
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
## 0.2.0 release preparation — 2026-09-28 KST
|
|
308
|
+
|
|
309
|
+
Feature source: main `b87eb39a32f8678cd93789ce81792d5f248fdfa6`, following #43.
|
|
310
|
+
Issues #16/#17/#18/#19/#25 are implemented. This release updates the package,
|
|
311
|
+
lockfile, version handshake, four READMEs and stable-stage baseline to 0.2.0.
|
|
312
|
+
The baseline is verified public 0.1.0; preview stays at 0.1.0-preview.1. No 0.2.0
|
|
313
|
+
preview publication is assumed. The new workflow requires the reviewed exact
|
|
314
|
+
main SHA as `source_sha` and rejects any different runtime source SHA.
|
|
106
315
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
and
|
|
112
|
-
|
|
316
|
+
The integrated feature tree passed macOS/Linux/Windows Node 22/24 CI in run
|
|
317
|
+
36370904539. Release-specific local tests, retained candidate hash, packaged
|
|
318
|
+
prose review and exact-head CI are recorded in the release PR. Local artifacts
|
|
319
|
+
are not the later exact-main workflow artifact; staging requires its own hash
|
|
320
|
+
review and npm 2FA approval. This dated preparation record does not assert that
|
|
321
|
+
0.2.0 has been publicly published or verified. Historical real-TUI ACKs do not
|
|
322
|
+
constitute a new 0.2.0 ACK test. Companion skill source is independently pinned
|
|
323
|
+
and managed; its repository PR/merge status is not an npm runtime dependency.
|
package/dist/casefold.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Generated from Unicode 14.0.0 CaseFolding.txt (C + F; default, non-Turkic).
|
|
2
|
+
// https://www.unicode.org/Public/14.0.0/ucd/CaseFolding.txt
|
|
3
|
+
// SHA-256: a566cd48687b2cd897e02501118b2413c14ae86d318f9abbbba97feb84189f0f
|
|
4
|
+
// Unicode data license: UNICODE-LICENSE.txt. No normalization or locale rules.
|
|
5
|
+
export const CASEFOLD_UNICODE_VERSION = '14.0.0';
|
|
6
|
+
const folds = new Map([[65, "a"], [66, "b"], [67, "c"], [68, "d"], [69, "e"], [70, "f"], [71, "g"], [72, "h"], [73, "i"], [74, "j"], [75, "k"], [76, "l"], [77, "m"], [78, "n"], [79, "o"], [80, "p"], [81, "q"], [82, "r"], [83, "s"], [84, "t"], [85, "u"], [86, "v"], [87, "w"], [88, "x"], [89, "y"], [90, "z"], [181, "\u03bc"], [192, "\u00e0"], [193, "\u00e1"], [194, "\u00e2"], [195, "\u00e3"], [196, "\u00e4"], [197, "\u00e5"], [198, "\u00e6"], [199, "\u00e7"], [200, "\u00e8"], [201, "\u00e9"], [202, "\u00ea"], [203, "\u00eb"], [204, "\u00ec"], [205, "\u00ed"], [206, "\u00ee"], [207, "\u00ef"], [208, "\u00f0"], [209, "\u00f1"], [210, "\u00f2"], [211, "\u00f3"], [212, "\u00f4"], [213, "\u00f5"], [214, "\u00f6"], [216, "\u00f8"], [217, "\u00f9"], [218, "\u00fa"], [219, "\u00fb"], [220, "\u00fc"], [221, "\u00fd"], [222, "\u00fe"], [223, "ss"], [256, "\u0101"], [258, "\u0103"], [260, "\u0105"], [262, "\u0107"], [264, "\u0109"], [266, "\u010b"], [268, "\u010d"], [270, "\u010f"], [272, "\u0111"], [274, "\u0113"], [276, "\u0115"], [278, "\u0117"], [280, "\u0119"], [282, "\u011b"], [284, "\u011d"], [286, "\u011f"], [288, "\u0121"], [290, "\u0123"], [292, "\u0125"], [294, "\u0127"], [296, "\u0129"], [298, "\u012b"], [300, "\u012d"], [302, "\u012f"], [304, "i\u0307"], [306, "\u0133"], [308, "\u0135"], [310, "\u0137"], [313, "\u013a"], [315, "\u013c"], [317, "\u013e"], [319, "\u0140"], [321, "\u0142"], [323, "\u0144"], [325, "\u0146"], [327, "\u0148"], [329, "\u02bcn"], [330, "\u014b"], [332, "\u014d"], [334, "\u014f"], [336, "\u0151"], [338, "\u0153"], [340, "\u0155"], [342, "\u0157"], [344, "\u0159"], [346, "\u015b"], [348, "\u015d"], [350, "\u015f"], [352, "\u0161"], [354, "\u0163"], [356, "\u0165"], [358, "\u0167"], [360, "\u0169"], [362, "\u016b"], [364, "\u016d"], [366, "\u016f"], [368, "\u0171"], [370, "\u0173"], [372, "\u0175"], [374, "\u0177"], [376, "\u00ff"], [377, "\u017a"], [379, "\u017c"], [381, "\u017e"], [383, "s"], [385, "\u0253"], [386, "\u0183"], [388, "\u0185"], [390, "\u0254"], [391, "\u0188"], [393, "\u0256"], [394, "\u0257"], [395, "\u018c"], [398, "\u01dd"], [399, "\u0259"], [400, "\u025b"], [401, "\u0192"], [403, "\u0260"], [404, "\u0263"], [406, "\u0269"], [407, "\u0268"], [408, "\u0199"], [412, "\u026f"], [413, "\u0272"], [415, "\u0275"], [416, "\u01a1"], [418, "\u01a3"], [420, "\u01a5"], [422, "\u0280"], [423, "\u01a8"], [425, "\u0283"], [428, "\u01ad"], [430, "\u0288"], [431, "\u01b0"], [433, "\u028a"], [434, "\u028b"], [435, "\u01b4"], [437, "\u01b6"], [439, "\u0292"], [440, "\u01b9"], [444, "\u01bd"], [452, "\u01c6"], [453, "\u01c6"], [455, "\u01c9"], [456, "\u01c9"], [458, "\u01cc"], [459, "\u01cc"], [461, "\u01ce"], [463, "\u01d0"], [465, "\u01d2"], [467, "\u01d4"], [469, "\u01d6"], [471, "\u01d8"], [473, "\u01da"], [475, "\u01dc"], [478, "\u01df"], [480, "\u01e1"], [482, "\u01e3"], [484, "\u01e5"], [486, "\u01e7"], [488, "\u01e9"], [490, "\u01eb"], [492, "\u01ed"], [494, "\u01ef"], [496, "j\u030c"], [497, "\u01f3"], [498, "\u01f3"], [500, "\u01f5"], [502, "\u0195"], [503, "\u01bf"], [504, "\u01f9"], [506, "\u01fb"], [508, "\u01fd"], [510, "\u01ff"], [512, "\u0201"], [514, "\u0203"], [516, "\u0205"], [518, "\u0207"], [520, "\u0209"], [522, "\u020b"], [524, "\u020d"], [526, "\u020f"], [528, "\u0211"], [530, "\u0213"], [532, "\u0215"], [534, "\u0217"], [536, "\u0219"], [538, "\u021b"], [540, "\u021d"], [542, "\u021f"], [544, "\u019e"], [546, "\u0223"], [548, "\u0225"], [550, "\u0227"], [552, "\u0229"], [554, "\u022b"], [556, "\u022d"], [558, "\u022f"], [560, "\u0231"], [562, "\u0233"], [570, "\u2c65"], [571, "\u023c"], [573, "\u019a"], [574, "\u2c66"], [577, "\u0242"], [579, "\u0180"], [580, "\u0289"], [581, "\u028c"], [582, "\u0247"], [584, "\u0249"], [586, "\u024b"], [588, "\u024d"], [590, "\u024f"], [837, "\u03b9"], [880, "\u0371"], [882, "\u0373"], [886, "\u0377"], [895, "\u03f3"], [902, "\u03ac"], [904, "\u03ad"], [905, "\u03ae"], [906, "\u03af"], [908, "\u03cc"], [910, "\u03cd"], [911, "\u03ce"], [912, "\u03b9\u0308\u0301"], [913, "\u03b1"], [914, "\u03b2"], [915, "\u03b3"], [916, "\u03b4"], [917, "\u03b5"], [918, "\u03b6"], [919, "\u03b7"], [920, "\u03b8"], [921, "\u03b9"], [922, "\u03ba"], [923, "\u03bb"], [924, "\u03bc"], [925, "\u03bd"], [926, "\u03be"], [927, "\u03bf"], [928, "\u03c0"], [929, "\u03c1"], [931, "\u03c3"], [932, "\u03c4"], [933, "\u03c5"], [934, "\u03c6"], [935, "\u03c7"], [936, "\u03c8"], [937, "\u03c9"], [938, "\u03ca"], [939, "\u03cb"], [944, "\u03c5\u0308\u0301"], [962, "\u03c3"], [975, "\u03d7"], [976, "\u03b2"], [977, "\u03b8"], [981, "\u03c6"], [982, "\u03c0"], [984, "\u03d9"], [986, "\u03db"], [988, "\u03dd"], [990, "\u03df"], [992, "\u03e1"], [994, "\u03e3"], [996, "\u03e5"], [998, "\u03e7"], [1000, "\u03e9"], [1002, "\u03eb"], [1004, "\u03ed"], [1006, "\u03ef"], [1008, "\u03ba"], [1009, "\u03c1"], [1012, "\u03b8"], [1013, "\u03b5"], [1015, "\u03f8"], [1017, "\u03f2"], [1018, "\u03fb"], [1021, "\u037b"], [1022, "\u037c"], [1023, "\u037d"], [1024, "\u0450"], [1025, "\u0451"], [1026, "\u0452"], [1027, "\u0453"], [1028, "\u0454"], [1029, "\u0455"], [1030, "\u0456"], [1031, "\u0457"], [1032, "\u0458"], [1033, "\u0459"], [1034, "\u045a"], [1035, "\u045b"], [1036, "\u045c"], [1037, "\u045d"], [1038, "\u045e"], [1039, "\u045f"], [1040, "\u0430"], [1041, "\u0431"], [1042, "\u0432"], [1043, "\u0433"], [1044, "\u0434"], [1045, "\u0435"], [1046, "\u0436"], [1047, "\u0437"], [1048, "\u0438"], [1049, "\u0439"], [1050, "\u043a"], [1051, "\u043b"], [1052, "\u043c"], [1053, "\u043d"], [1054, "\u043e"], [1055, "\u043f"], [1056, "\u0440"], [1057, "\u0441"], [1058, "\u0442"], [1059, "\u0443"], [1060, "\u0444"], [1061, "\u0445"], [1062, "\u0446"], [1063, "\u0447"], [1064, "\u0448"], [1065, "\u0449"], [1066, "\u044a"], [1067, "\u044b"], [1068, "\u044c"], [1069, "\u044d"], [1070, "\u044e"], [1071, "\u044f"], [1120, "\u0461"], [1122, "\u0463"], [1124, "\u0465"], [1126, "\u0467"], [1128, "\u0469"], [1130, "\u046b"], [1132, "\u046d"], [1134, "\u046f"], [1136, "\u0471"], [1138, "\u0473"], [1140, "\u0475"], [1142, "\u0477"], [1144, "\u0479"], [1146, "\u047b"], [1148, "\u047d"], [1150, "\u047f"], [1152, "\u0481"], [1162, "\u048b"], [1164, "\u048d"], [1166, "\u048f"], [1168, "\u0491"], [1170, "\u0493"], [1172, "\u0495"], [1174, "\u0497"], [1176, "\u0499"], [1178, "\u049b"], [1180, "\u049d"], [1182, "\u049f"], [1184, "\u04a1"], [1186, "\u04a3"], [1188, "\u04a5"], [1190, "\u04a7"], [1192, "\u04a9"], [1194, "\u04ab"], [1196, "\u04ad"], [1198, "\u04af"], [1200, "\u04b1"], [1202, "\u04b3"], [1204, "\u04b5"], [1206, "\u04b7"], [1208, "\u04b9"], [1210, "\u04bb"], [1212, "\u04bd"], [1214, "\u04bf"], [1216, "\u04cf"], [1217, "\u04c2"], [1219, "\u04c4"], [1221, "\u04c6"], [1223, "\u04c8"], [1225, "\u04ca"], [1227, "\u04cc"], [1229, "\u04ce"], [1232, "\u04d1"], [1234, "\u04d3"], [1236, "\u04d5"], [1238, "\u04d7"], [1240, "\u04d9"], [1242, "\u04db"], [1244, "\u04dd"], [1246, "\u04df"], [1248, "\u04e1"], [1250, "\u04e3"], [1252, "\u04e5"], [1254, "\u04e7"], [1256, "\u04e9"], [1258, "\u04eb"], [1260, "\u04ed"], [1262, "\u04ef"], [1264, "\u04f1"], [1266, "\u04f3"], [1268, "\u04f5"], [1270, "\u04f7"], [1272, "\u04f9"], [1274, "\u04fb"], [1276, "\u04fd"], [1278, "\u04ff"], [1280, "\u0501"], [1282, "\u0503"], [1284, "\u0505"], [1286, "\u0507"], [1288, "\u0509"], [1290, "\u050b"], [1292, "\u050d"], [1294, "\u050f"], [1296, "\u0511"], [1298, "\u0513"], [1300, "\u0515"], [1302, "\u0517"], [1304, "\u0519"], [1306, "\u051b"], [1308, "\u051d"], [1310, "\u051f"], [1312, "\u0521"], [1314, "\u0523"], [1316, "\u0525"], [1318, "\u0527"], [1320, "\u0529"], [1322, "\u052b"], [1324, "\u052d"], [1326, "\u052f"], [1329, "\u0561"], [1330, "\u0562"], [1331, "\u0563"], [1332, "\u0564"], [1333, "\u0565"], [1334, "\u0566"], [1335, "\u0567"], [1336, "\u0568"], [1337, "\u0569"], [1338, "\u056a"], [1339, "\u056b"], [1340, "\u056c"], [1341, "\u056d"], [1342, "\u056e"], [1343, "\u056f"], [1344, "\u0570"], [1345, "\u0571"], [1346, "\u0572"], [1347, "\u0573"], [1348, "\u0574"], [1349, "\u0575"], [1350, "\u0576"], [1351, "\u0577"], [1352, "\u0578"], [1353, "\u0579"], [1354, "\u057a"], [1355, "\u057b"], [1356, "\u057c"], [1357, "\u057d"], [1358, "\u057e"], [1359, "\u057f"], [1360, "\u0580"], [1361, "\u0581"], [1362, "\u0582"], [1363, "\u0583"], [1364, "\u0584"], [1365, "\u0585"], [1366, "\u0586"], [1415, "\u0565\u0582"], [4256, "\u2d00"], [4257, "\u2d01"], [4258, "\u2d02"], [4259, "\u2d03"], [4260, "\u2d04"], [4261, "\u2d05"], [4262, "\u2d06"], [4263, "\u2d07"], [4264, "\u2d08"], [4265, "\u2d09"], [4266, "\u2d0a"], [4267, "\u2d0b"], [4268, "\u2d0c"], [4269, "\u2d0d"], [4270, "\u2d0e"], [4271, "\u2d0f"], [4272, "\u2d10"], [4273, "\u2d11"], [4274, "\u2d12"], [4275, "\u2d13"], [4276, "\u2d14"], [4277, "\u2d15"], [4278, "\u2d16"], [4279, "\u2d17"], [4280, "\u2d18"], [4281, "\u2d19"], [4282, "\u2d1a"], [4283, "\u2d1b"], [4284, "\u2d1c"], [4285, "\u2d1d"], [4286, "\u2d1e"], [4287, "\u2d1f"], [4288, "\u2d20"], [4289, "\u2d21"], [4290, "\u2d22"], [4291, "\u2d23"], [4292, "\u2d24"], [4293, "\u2d25"], [4295, "\u2d27"], [4301, "\u2d2d"], [5112, "\u13f0"], [5113, "\u13f1"], [5114, "\u13f2"], [5115, "\u13f3"], [5116, "\u13f4"], [5117, "\u13f5"], [7296, "\u0432"], [7297, "\u0434"], [7298, "\u043e"], [7299, "\u0441"], [7300, "\u0442"], [7301, "\u0442"], [7302, "\u044a"], [7303, "\u0463"], [7304, "\ua64b"], [7312, "\u10d0"], [7313, "\u10d1"], [7314, "\u10d2"], [7315, "\u10d3"], [7316, "\u10d4"], [7317, "\u10d5"], [7318, "\u10d6"], [7319, "\u10d7"], [7320, "\u10d8"], [7321, "\u10d9"], [7322, "\u10da"], [7323, "\u10db"], [7324, "\u10dc"], [7325, "\u10dd"], [7326, "\u10de"], [7327, "\u10df"], [7328, "\u10e0"], [7329, "\u10e1"], [7330, "\u10e2"], [7331, "\u10e3"], [7332, "\u10e4"], [7333, "\u10e5"], [7334, "\u10e6"], [7335, "\u10e7"], [7336, "\u10e8"], [7337, "\u10e9"], [7338, "\u10ea"], [7339, "\u10eb"], [7340, "\u10ec"], [7341, "\u10ed"], [7342, "\u10ee"], [7343, "\u10ef"], [7344, "\u10f0"], [7345, "\u10f1"], [7346, "\u10f2"], [7347, "\u10f3"], [7348, "\u10f4"], [7349, "\u10f5"], [7350, "\u10f6"], [7351, "\u10f7"], [7352, "\u10f8"], [7353, "\u10f9"], [7354, "\u10fa"], [7357, "\u10fd"], [7358, "\u10fe"], [7359, "\u10ff"], [7680, "\u1e01"], [7682, "\u1e03"], [7684, "\u1e05"], [7686, "\u1e07"], [7688, "\u1e09"], [7690, "\u1e0b"], [7692, "\u1e0d"], [7694, "\u1e0f"], [7696, "\u1e11"], [7698, "\u1e13"], [7700, "\u1e15"], [7702, "\u1e17"], [7704, "\u1e19"], [7706, "\u1e1b"], [7708, "\u1e1d"], [7710, "\u1e1f"], [7712, "\u1e21"], [7714, "\u1e23"], [7716, "\u1e25"], [7718, "\u1e27"], [7720, "\u1e29"], [7722, "\u1e2b"], [7724, "\u1e2d"], [7726, "\u1e2f"], [7728, "\u1e31"], [7730, "\u1e33"], [7732, "\u1e35"], [7734, "\u1e37"], [7736, "\u1e39"], [7738, "\u1e3b"], [7740, "\u1e3d"], [7742, "\u1e3f"], [7744, "\u1e41"], [7746, "\u1e43"], [7748, "\u1e45"], [7750, "\u1e47"], [7752, "\u1e49"], [7754, "\u1e4b"], [7756, "\u1e4d"], [7758, "\u1e4f"], [7760, "\u1e51"], [7762, "\u1e53"], [7764, "\u1e55"], [7766, "\u1e57"], [7768, "\u1e59"], [7770, "\u1e5b"], [7772, "\u1e5d"], [7774, "\u1e5f"], [7776, "\u1e61"], [7778, "\u1e63"], [7780, "\u1e65"], [7782, "\u1e67"], [7784, "\u1e69"], [7786, "\u1e6b"], [7788, "\u1e6d"], [7790, "\u1e6f"], [7792, "\u1e71"], [7794, "\u1e73"], [7796, "\u1e75"], [7798, "\u1e77"], [7800, "\u1e79"], [7802, "\u1e7b"], [7804, "\u1e7d"], [7806, "\u1e7f"], [7808, "\u1e81"], [7810, "\u1e83"], [7812, "\u1e85"], [7814, "\u1e87"], [7816, "\u1e89"], [7818, "\u1e8b"], [7820, "\u1e8d"], [7822, "\u1e8f"], [7824, "\u1e91"], [7826, "\u1e93"], [7828, "\u1e95"], [7830, "h\u0331"], [7831, "t\u0308"], [7832, "w\u030a"], [7833, "y\u030a"], [7834, "a\u02be"], [7835, "\u1e61"], [7838, "ss"], [7840, "\u1ea1"], [7842, "\u1ea3"], [7844, "\u1ea5"], [7846, "\u1ea7"], [7848, "\u1ea9"], [7850, "\u1eab"], [7852, "\u1ead"], [7854, "\u1eaf"], [7856, "\u1eb1"], [7858, "\u1eb3"], [7860, "\u1eb5"], [7862, "\u1eb7"], [7864, "\u1eb9"], [7866, "\u1ebb"], [7868, "\u1ebd"], [7870, "\u1ebf"], [7872, "\u1ec1"], [7874, "\u1ec3"], [7876, "\u1ec5"], [7878, "\u1ec7"], [7880, "\u1ec9"], [7882, "\u1ecb"], [7884, "\u1ecd"], [7886, "\u1ecf"], [7888, "\u1ed1"], [7890, "\u1ed3"], [7892, "\u1ed5"], [7894, "\u1ed7"], [7896, "\u1ed9"], [7898, "\u1edb"], [7900, "\u1edd"], [7902, "\u1edf"], [7904, "\u1ee1"], [7906, "\u1ee3"], [7908, "\u1ee5"], [7910, "\u1ee7"], [7912, "\u1ee9"], [7914, "\u1eeb"], [7916, "\u1eed"], [7918, "\u1eef"], [7920, "\u1ef1"], [7922, "\u1ef3"], [7924, "\u1ef5"], [7926, "\u1ef7"], [7928, "\u1ef9"], [7930, "\u1efb"], [7932, "\u1efd"], [7934, "\u1eff"], [7944, "\u1f00"], [7945, "\u1f01"], [7946, "\u1f02"], [7947, "\u1f03"], [7948, "\u1f04"], [7949, "\u1f05"], [7950, "\u1f06"], [7951, "\u1f07"], [7960, "\u1f10"], [7961, "\u1f11"], [7962, "\u1f12"], [7963, "\u1f13"], [7964, "\u1f14"], [7965, "\u1f15"], [7976, "\u1f20"], [7977, "\u1f21"], [7978, "\u1f22"], [7979, "\u1f23"], [7980, "\u1f24"], [7981, "\u1f25"], [7982, "\u1f26"], [7983, "\u1f27"], [7992, "\u1f30"], [7993, "\u1f31"], [7994, "\u1f32"], [7995, "\u1f33"], [7996, "\u1f34"], [7997, "\u1f35"], [7998, "\u1f36"], [7999, "\u1f37"], [8008, "\u1f40"], [8009, "\u1f41"], [8010, "\u1f42"], [8011, "\u1f43"], [8012, "\u1f44"], [8013, "\u1f45"], [8016, "\u03c5\u0313"], [8018, "\u03c5\u0313\u0300"], [8020, "\u03c5\u0313\u0301"], [8022, "\u03c5\u0313\u0342"], [8025, "\u1f51"], [8027, "\u1f53"], [8029, "\u1f55"], [8031, "\u1f57"], [8040, "\u1f60"], [8041, "\u1f61"], [8042, "\u1f62"], [8043, "\u1f63"], [8044, "\u1f64"], [8045, "\u1f65"], [8046, "\u1f66"], [8047, "\u1f67"], [8064, "\u1f00\u03b9"], [8065, "\u1f01\u03b9"], [8066, "\u1f02\u03b9"], [8067, "\u1f03\u03b9"], [8068, "\u1f04\u03b9"], [8069, "\u1f05\u03b9"], [8070, "\u1f06\u03b9"], [8071, "\u1f07\u03b9"], [8072, "\u1f00\u03b9"], [8073, "\u1f01\u03b9"], [8074, "\u1f02\u03b9"], [8075, "\u1f03\u03b9"], [8076, "\u1f04\u03b9"], [8077, "\u1f05\u03b9"], [8078, "\u1f06\u03b9"], [8079, "\u1f07\u03b9"], [8080, "\u1f20\u03b9"], [8081, "\u1f21\u03b9"], [8082, "\u1f22\u03b9"], [8083, "\u1f23\u03b9"], [8084, "\u1f24\u03b9"], [8085, "\u1f25\u03b9"], [8086, "\u1f26\u03b9"], [8087, "\u1f27\u03b9"], [8088, "\u1f20\u03b9"], [8089, "\u1f21\u03b9"], [8090, "\u1f22\u03b9"], [8091, "\u1f23\u03b9"], [8092, "\u1f24\u03b9"], [8093, "\u1f25\u03b9"], [8094, "\u1f26\u03b9"], [8095, "\u1f27\u03b9"], [8096, "\u1f60\u03b9"], [8097, "\u1f61\u03b9"], [8098, "\u1f62\u03b9"], [8099, "\u1f63\u03b9"], [8100, "\u1f64\u03b9"], [8101, "\u1f65\u03b9"], [8102, "\u1f66\u03b9"], [8103, "\u1f67\u03b9"], [8104, "\u1f60\u03b9"], [8105, "\u1f61\u03b9"], [8106, "\u1f62\u03b9"], [8107, "\u1f63\u03b9"], [8108, "\u1f64\u03b9"], [8109, "\u1f65\u03b9"], [8110, "\u1f66\u03b9"], [8111, "\u1f67\u03b9"], [8114, "\u1f70\u03b9"], [8115, "\u03b1\u03b9"], [8116, "\u03ac\u03b9"], [8118, "\u03b1\u0342"], [8119, "\u03b1\u0342\u03b9"], [8120, "\u1fb0"], [8121, "\u1fb1"], [8122, "\u1f70"], [8123, "\u1f71"], [8124, "\u03b1\u03b9"], [8126, "\u03b9"], [8130, "\u1f74\u03b9"], [8131, "\u03b7\u03b9"], [8132, "\u03ae\u03b9"], [8134, "\u03b7\u0342"], [8135, "\u03b7\u0342\u03b9"], [8136, "\u1f72"], [8137, "\u1f73"], [8138, "\u1f74"], [8139, "\u1f75"], [8140, "\u03b7\u03b9"], [8146, "\u03b9\u0308\u0300"], [8147, "\u03b9\u0308\u0301"], [8150, "\u03b9\u0342"], [8151, "\u03b9\u0308\u0342"], [8152, "\u1fd0"], [8153, "\u1fd1"], [8154, "\u1f76"], [8155, "\u1f77"], [8162, "\u03c5\u0308\u0300"], [8163, "\u03c5\u0308\u0301"], [8164, "\u03c1\u0313"], [8166, "\u03c5\u0342"], [8167, "\u03c5\u0308\u0342"], [8168, "\u1fe0"], [8169, "\u1fe1"], [8170, "\u1f7a"], [8171, "\u1f7b"], [8172, "\u1fe5"], [8178, "\u1f7c\u03b9"], [8179, "\u03c9\u03b9"], [8180, "\u03ce\u03b9"], [8182, "\u03c9\u0342"], [8183, "\u03c9\u0342\u03b9"], [8184, "\u1f78"], [8185, "\u1f79"], [8186, "\u1f7c"], [8187, "\u1f7d"], [8188, "\u03c9\u03b9"], [8486, "\u03c9"], [8490, "k"], [8491, "\u00e5"], [8498, "\u214e"], [8544, "\u2170"], [8545, "\u2171"], [8546, "\u2172"], [8547, "\u2173"], [8548, "\u2174"], [8549, "\u2175"], [8550, "\u2176"], [8551, "\u2177"], [8552, "\u2178"], [8553, "\u2179"], [8554, "\u217a"], [8555, "\u217b"], [8556, "\u217c"], [8557, "\u217d"], [8558, "\u217e"], [8559, "\u217f"], [8579, "\u2184"], [9398, "\u24d0"], [9399, "\u24d1"], [9400, "\u24d2"], [9401, "\u24d3"], [9402, "\u24d4"], [9403, "\u24d5"], [9404, "\u24d6"], [9405, "\u24d7"], [9406, "\u24d8"], [9407, "\u24d9"], [9408, "\u24da"], [9409, "\u24db"], [9410, "\u24dc"], [9411, "\u24dd"], [9412, "\u24de"], [9413, "\u24df"], [9414, "\u24e0"], [9415, "\u24e1"], [9416, "\u24e2"], [9417, "\u24e3"], [9418, "\u24e4"], [9419, "\u24e5"], [9420, "\u24e6"], [9421, "\u24e7"], [9422, "\u24e8"], [9423, "\u24e9"], [11264, "\u2c30"], [11265, "\u2c31"], [11266, "\u2c32"], [11267, "\u2c33"], [11268, "\u2c34"], [11269, "\u2c35"], [11270, "\u2c36"], [11271, "\u2c37"], [11272, "\u2c38"], [11273, "\u2c39"], [11274, "\u2c3a"], [11275, "\u2c3b"], [11276, "\u2c3c"], [11277, "\u2c3d"], [11278, "\u2c3e"], [11279, "\u2c3f"], [11280, "\u2c40"], [11281, "\u2c41"], [11282, "\u2c42"], [11283, "\u2c43"], [11284, "\u2c44"], [11285, "\u2c45"], [11286, "\u2c46"], [11287, "\u2c47"], [11288, "\u2c48"], [11289, "\u2c49"], [11290, "\u2c4a"], [11291, "\u2c4b"], [11292, "\u2c4c"], [11293, "\u2c4d"], [11294, "\u2c4e"], [11295, "\u2c4f"], [11296, "\u2c50"], [11297, "\u2c51"], [11298, "\u2c52"], [11299, "\u2c53"], [11300, "\u2c54"], [11301, "\u2c55"], [11302, "\u2c56"], [11303, "\u2c57"], [11304, "\u2c58"], [11305, "\u2c59"], [11306, "\u2c5a"], [11307, "\u2c5b"], [11308, "\u2c5c"], [11309, "\u2c5d"], [11310, "\u2c5e"], [11311, "\u2c5f"], [11360, "\u2c61"], [11362, "\u026b"], [11363, "\u1d7d"], [11364, "\u027d"], [11367, "\u2c68"], [11369, "\u2c6a"], [11371, "\u2c6c"], [11373, "\u0251"], [11374, "\u0271"], [11375, "\u0250"], [11376, "\u0252"], [11378, "\u2c73"], [11381, "\u2c76"], [11390, "\u023f"], [11391, "\u0240"], [11392, "\u2c81"], [11394, "\u2c83"], [11396, "\u2c85"], [11398, "\u2c87"], [11400, "\u2c89"], [11402, "\u2c8b"], [11404, "\u2c8d"], [11406, "\u2c8f"], [11408, "\u2c91"], [11410, "\u2c93"], [11412, "\u2c95"], [11414, "\u2c97"], [11416, "\u2c99"], [11418, "\u2c9b"], [11420, "\u2c9d"], [11422, "\u2c9f"], [11424, "\u2ca1"], [11426, "\u2ca3"], [11428, "\u2ca5"], [11430, "\u2ca7"], [11432, "\u2ca9"], [11434, "\u2cab"], [11436, "\u2cad"], [11438, "\u2caf"], [11440, "\u2cb1"], [11442, "\u2cb3"], [11444, "\u2cb5"], [11446, "\u2cb7"], [11448, "\u2cb9"], [11450, "\u2cbb"], [11452, "\u2cbd"], [11454, "\u2cbf"], [11456, "\u2cc1"], [11458, "\u2cc3"], [11460, "\u2cc5"], [11462, "\u2cc7"], [11464, "\u2cc9"], [11466, "\u2ccb"], [11468, "\u2ccd"], [11470, "\u2ccf"], [11472, "\u2cd1"], [11474, "\u2cd3"], [11476, "\u2cd5"], [11478, "\u2cd7"], [11480, "\u2cd9"], [11482, "\u2cdb"], [11484, "\u2cdd"], [11486, "\u2cdf"], [11488, "\u2ce1"], [11490, "\u2ce3"], [11499, "\u2cec"], [11501, "\u2cee"], [11506, "\u2cf3"], [42560, "\ua641"], [42562, "\ua643"], [42564, "\ua645"], [42566, "\ua647"], [42568, "\ua649"], [42570, "\ua64b"], [42572, "\ua64d"], [42574, "\ua64f"], [42576, "\ua651"], [42578, "\ua653"], [42580, "\ua655"], [42582, "\ua657"], [42584, "\ua659"], [42586, "\ua65b"], [42588, "\ua65d"], [42590, "\ua65f"], [42592, "\ua661"], [42594, "\ua663"], [42596, "\ua665"], [42598, "\ua667"], [42600, "\ua669"], [42602, "\ua66b"], [42604, "\ua66d"], [42624, "\ua681"], [42626, "\ua683"], [42628, "\ua685"], [42630, "\ua687"], [42632, "\ua689"], [42634, "\ua68b"], [42636, "\ua68d"], [42638, "\ua68f"], [42640, "\ua691"], [42642, "\ua693"], [42644, "\ua695"], [42646, "\ua697"], [42648, "\ua699"], [42650, "\ua69b"], [42786, "\ua723"], [42788, "\ua725"], [42790, "\ua727"], [42792, "\ua729"], [42794, "\ua72b"], [42796, "\ua72d"], [42798, "\ua72f"], [42802, "\ua733"], [42804, "\ua735"], [42806, "\ua737"], [42808, "\ua739"], [42810, "\ua73b"], [42812, "\ua73d"], [42814, "\ua73f"], [42816, "\ua741"], [42818, "\ua743"], [42820, "\ua745"], [42822, "\ua747"], [42824, "\ua749"], [42826, "\ua74b"], [42828, "\ua74d"], [42830, "\ua74f"], [42832, "\ua751"], [42834, "\ua753"], [42836, "\ua755"], [42838, "\ua757"], [42840, "\ua759"], [42842, "\ua75b"], [42844, "\ua75d"], [42846, "\ua75f"], [42848, "\ua761"], [42850, "\ua763"], [42852, "\ua765"], [42854, "\ua767"], [42856, "\ua769"], [42858, "\ua76b"], [42860, "\ua76d"], [42862, "\ua76f"], [42873, "\ua77a"], [42875, "\ua77c"], [42877, "\u1d79"], [42878, "\ua77f"], [42880, "\ua781"], [42882, "\ua783"], [42884, "\ua785"], [42886, "\ua787"], [42891, "\ua78c"], [42893, "\u0265"], [42896, "\ua791"], [42898, "\ua793"], [42902, "\ua797"], [42904, "\ua799"], [42906, "\ua79b"], [42908, "\ua79d"], [42910, "\ua79f"], [42912, "\ua7a1"], [42914, "\ua7a3"], [42916, "\ua7a5"], [42918, "\ua7a7"], [42920, "\ua7a9"], [42922, "\u0266"], [42923, "\u025c"], [42924, "\u0261"], [42925, "\u026c"], [42926, "\u026a"], [42928, "\u029e"], [42929, "\u0287"], [42930, "\u029d"], [42931, "\uab53"], [42932, "\ua7b5"], [42934, "\ua7b7"], [42936, "\ua7b9"], [42938, "\ua7bb"], [42940, "\ua7bd"], [42942, "\ua7bf"], [42944, "\ua7c1"], [42946, "\ua7c3"], [42948, "\ua794"], [42949, "\u0282"], [42950, "\u1d8e"], [42951, "\ua7c8"], [42953, "\ua7ca"], [42960, "\ua7d1"], [42966, "\ua7d7"], [42968, "\ua7d9"], [42997, "\ua7f6"], [43888, "\u13a0"], [43889, "\u13a1"], [43890, "\u13a2"], [43891, "\u13a3"], [43892, "\u13a4"], [43893, "\u13a5"], [43894, "\u13a6"], [43895, "\u13a7"], [43896, "\u13a8"], [43897, "\u13a9"], [43898, "\u13aa"], [43899, "\u13ab"], [43900, "\u13ac"], [43901, "\u13ad"], [43902, "\u13ae"], [43903, "\u13af"], [43904, "\u13b0"], [43905, "\u13b1"], [43906, "\u13b2"], [43907, "\u13b3"], [43908, "\u13b4"], [43909, "\u13b5"], [43910, "\u13b6"], [43911, "\u13b7"], [43912, "\u13b8"], [43913, "\u13b9"], [43914, "\u13ba"], [43915, "\u13bb"], [43916, "\u13bc"], [43917, "\u13bd"], [43918, "\u13be"], [43919, "\u13bf"], [43920, "\u13c0"], [43921, "\u13c1"], [43922, "\u13c2"], [43923, "\u13c3"], [43924, "\u13c4"], [43925, "\u13c5"], [43926, "\u13c6"], [43927, "\u13c7"], [43928, "\u13c8"], [43929, "\u13c9"], [43930, "\u13ca"], [43931, "\u13cb"], [43932, "\u13cc"], [43933, "\u13cd"], [43934, "\u13ce"], [43935, "\u13cf"], [43936, "\u13d0"], [43937, "\u13d1"], [43938, "\u13d2"], [43939, "\u13d3"], [43940, "\u13d4"], [43941, "\u13d5"], [43942, "\u13d6"], [43943, "\u13d7"], [43944, "\u13d8"], [43945, "\u13d9"], [43946, "\u13da"], [43947, "\u13db"], [43948, "\u13dc"], [43949, "\u13dd"], [43950, "\u13de"], [43951, "\u13df"], [43952, "\u13e0"], [43953, "\u13e1"], [43954, "\u13e2"], [43955, "\u13e3"], [43956, "\u13e4"], [43957, "\u13e5"], [43958, "\u13e6"], [43959, "\u13e7"], [43960, "\u13e8"], [43961, "\u13e9"], [43962, "\u13ea"], [43963, "\u13eb"], [43964, "\u13ec"], [43965, "\u13ed"], [43966, "\u13ee"], [43967, "\u13ef"], [64256, "ff"], [64257, "fi"], [64258, "fl"], [64259, "ffi"], [64260, "ffl"], [64261, "st"], [64262, "st"], [64275, "\u0574\u0576"], [64276, "\u0574\u0565"], [64277, "\u0574\u056b"], [64278, "\u057e\u0576"], [64279, "\u0574\u056d"], [65313, "\uff41"], [65314, "\uff42"], [65315, "\uff43"], [65316, "\uff44"], [65317, "\uff45"], [65318, "\uff46"], [65319, "\uff47"], [65320, "\uff48"], [65321, "\uff49"], [65322, "\uff4a"], [65323, "\uff4b"], [65324, "\uff4c"], [65325, "\uff4d"], [65326, "\uff4e"], [65327, "\uff4f"], [65328, "\uff50"], [65329, "\uff51"], [65330, "\uff52"], [65331, "\uff53"], [65332, "\uff54"], [65333, "\uff55"], [65334, "\uff56"], [65335, "\uff57"], [65336, "\uff58"], [65337, "\uff59"], [65338, "\uff5a"], [66560, "\ud801\udc28"], [66561, "\ud801\udc29"], [66562, "\ud801\udc2a"], [66563, "\ud801\udc2b"], [66564, "\ud801\udc2c"], [66565, "\ud801\udc2d"], [66566, "\ud801\udc2e"], [66567, "\ud801\udc2f"], [66568, "\ud801\udc30"], [66569, "\ud801\udc31"], [66570, "\ud801\udc32"], [66571, "\ud801\udc33"], [66572, "\ud801\udc34"], [66573, "\ud801\udc35"], [66574, "\ud801\udc36"], [66575, "\ud801\udc37"], [66576, "\ud801\udc38"], [66577, "\ud801\udc39"], [66578, "\ud801\udc3a"], [66579, "\ud801\udc3b"], [66580, "\ud801\udc3c"], [66581, "\ud801\udc3d"], [66582, "\ud801\udc3e"], [66583, "\ud801\udc3f"], [66584, "\ud801\udc40"], [66585, "\ud801\udc41"], [66586, "\ud801\udc42"], [66587, "\ud801\udc43"], [66588, "\ud801\udc44"], [66589, "\ud801\udc45"], [66590, "\ud801\udc46"], [66591, "\ud801\udc47"], [66592, "\ud801\udc48"], [66593, "\ud801\udc49"], [66594, "\ud801\udc4a"], [66595, "\ud801\udc4b"], [66596, "\ud801\udc4c"], [66597, "\ud801\udc4d"], [66598, "\ud801\udc4e"], [66599, "\ud801\udc4f"], [66736, "\ud801\udcd8"], [66737, "\ud801\udcd9"], [66738, "\ud801\udcda"], [66739, "\ud801\udcdb"], [66740, "\ud801\udcdc"], [66741, "\ud801\udcdd"], [66742, "\ud801\udcde"], [66743, "\ud801\udcdf"], [66744, "\ud801\udce0"], [66745, "\ud801\udce1"], [66746, "\ud801\udce2"], [66747, "\ud801\udce3"], [66748, "\ud801\udce4"], [66749, "\ud801\udce5"], [66750, "\ud801\udce6"], [66751, "\ud801\udce7"], [66752, "\ud801\udce8"], [66753, "\ud801\udce9"], [66754, "\ud801\udcea"], [66755, "\ud801\udceb"], [66756, "\ud801\udcec"], [66757, "\ud801\udced"], [66758, "\ud801\udcee"], [66759, "\ud801\udcef"], [66760, "\ud801\udcf0"], [66761, "\ud801\udcf1"], [66762, "\ud801\udcf2"], [66763, "\ud801\udcf3"], [66764, "\ud801\udcf4"], [66765, "\ud801\udcf5"], [66766, "\ud801\udcf6"], [66767, "\ud801\udcf7"], [66768, "\ud801\udcf8"], [66769, "\ud801\udcf9"], [66770, "\ud801\udcfa"], [66771, "\ud801\udcfb"], [66928, "\ud801\udd97"], [66929, "\ud801\udd98"], [66930, "\ud801\udd99"], [66931, "\ud801\udd9a"], [66932, "\ud801\udd9b"], [66933, "\ud801\udd9c"], [66934, "\ud801\udd9d"], [66935, "\ud801\udd9e"], [66936, "\ud801\udd9f"], [66937, "\ud801\udda0"], [66938, "\ud801\udda1"], [66940, "\ud801\udda3"], [66941, "\ud801\udda4"], [66942, "\ud801\udda5"], [66943, "\ud801\udda6"], [66944, "\ud801\udda7"], [66945, "\ud801\udda8"], [66946, "\ud801\udda9"], [66947, "\ud801\uddaa"], [66948, "\ud801\uddab"], [66949, "\ud801\uddac"], [66950, "\ud801\uddad"], [66951, "\ud801\uddae"], [66952, "\ud801\uddaf"], [66953, "\ud801\uddb0"], [66954, "\ud801\uddb1"], [66956, "\ud801\uddb3"], [66957, "\ud801\uddb4"], [66958, "\ud801\uddb5"], [66959, "\ud801\uddb6"], [66960, "\ud801\uddb7"], [66961, "\ud801\uddb8"], [66962, "\ud801\uddb9"], [66964, "\ud801\uddbb"], [66965, "\ud801\uddbc"], [68736, "\ud803\udcc0"], [68737, "\ud803\udcc1"], [68738, "\ud803\udcc2"], [68739, "\ud803\udcc3"], [68740, "\ud803\udcc4"], [68741, "\ud803\udcc5"], [68742, "\ud803\udcc6"], [68743, "\ud803\udcc7"], [68744, "\ud803\udcc8"], [68745, "\ud803\udcc9"], [68746, "\ud803\udcca"], [68747, "\ud803\udccb"], [68748, "\ud803\udccc"], [68749, "\ud803\udccd"], [68750, "\ud803\udcce"], [68751, "\ud803\udccf"], [68752, "\ud803\udcd0"], [68753, "\ud803\udcd1"], [68754, "\ud803\udcd2"], [68755, "\ud803\udcd3"], [68756, "\ud803\udcd4"], [68757, "\ud803\udcd5"], [68758, "\ud803\udcd6"], [68759, "\ud803\udcd7"], [68760, "\ud803\udcd8"], [68761, "\ud803\udcd9"], [68762, "\ud803\udcda"], [68763, "\ud803\udcdb"], [68764, "\ud803\udcdc"], [68765, "\ud803\udcdd"], [68766, "\ud803\udcde"], [68767, "\ud803\udcdf"], [68768, "\ud803\udce0"], [68769, "\ud803\udce1"], [68770, "\ud803\udce2"], [68771, "\ud803\udce3"], [68772, "\ud803\udce4"], [68773, "\ud803\udce5"], [68774, "\ud803\udce6"], [68775, "\ud803\udce7"], [68776, "\ud803\udce8"], [68777, "\ud803\udce9"], [68778, "\ud803\udcea"], [68779, "\ud803\udceb"], [68780, "\ud803\udcec"], [68781, "\ud803\udced"], [68782, "\ud803\udcee"], [68783, "\ud803\udcef"], [68784, "\ud803\udcf0"], [68785, "\ud803\udcf1"], [68786, "\ud803\udcf2"], [71840, "\ud806\udcc0"], [71841, "\ud806\udcc1"], [71842, "\ud806\udcc2"], [71843, "\ud806\udcc3"], [71844, "\ud806\udcc4"], [71845, "\ud806\udcc5"], [71846, "\ud806\udcc6"], [71847, "\ud806\udcc7"], [71848, "\ud806\udcc8"], [71849, "\ud806\udcc9"], [71850, "\ud806\udcca"], [71851, "\ud806\udccb"], [71852, "\ud806\udccc"], [71853, "\ud806\udccd"], [71854, "\ud806\udcce"], [71855, "\ud806\udccf"], [71856, "\ud806\udcd0"], [71857, "\ud806\udcd1"], [71858, "\ud806\udcd2"], [71859, "\ud806\udcd3"], [71860, "\ud806\udcd4"], [71861, "\ud806\udcd5"], [71862, "\ud806\udcd6"], [71863, "\ud806\udcd7"], [71864, "\ud806\udcd8"], [71865, "\ud806\udcd9"], [71866, "\ud806\udcda"], [71867, "\ud806\udcdb"], [71868, "\ud806\udcdc"], [71869, "\ud806\udcdd"], [71870, "\ud806\udcde"], [71871, "\ud806\udcdf"], [93760, "\ud81b\ude60"], [93761, "\ud81b\ude61"], [93762, "\ud81b\ude62"], [93763, "\ud81b\ude63"], [93764, "\ud81b\ude64"], [93765, "\ud81b\ude65"], [93766, "\ud81b\ude66"], [93767, "\ud81b\ude67"], [93768, "\ud81b\ude68"], [93769, "\ud81b\ude69"], [93770, "\ud81b\ude6a"], [93771, "\ud81b\ude6b"], [93772, "\ud81b\ude6c"], [93773, "\ud81b\ude6d"], [93774, "\ud81b\ude6e"], [93775, "\ud81b\ude6f"], [93776, "\ud81b\ude70"], [93777, "\ud81b\ude71"], [93778, "\ud81b\ude72"], [93779, "\ud81b\ude73"], [93780, "\ud81b\ude74"], [93781, "\ud81b\ude75"], [93782, "\ud81b\ude76"], [93783, "\ud81b\ude77"], [93784, "\ud81b\ude78"], [93785, "\ud81b\ude79"], [93786, "\ud81b\ude7a"], [93787, "\ud81b\ude7b"], [93788, "\ud81b\ude7c"], [93789, "\ud81b\ude7d"], [93790, "\ud81b\ude7e"], [93791, "\ud81b\ude7f"], [125184, "\ud83a\udd22"], [125185, "\ud83a\udd23"], [125186, "\ud83a\udd24"], [125187, "\ud83a\udd25"], [125188, "\ud83a\udd26"], [125189, "\ud83a\udd27"], [125190, "\ud83a\udd28"], [125191, "\ud83a\udd29"], [125192, "\ud83a\udd2a"], [125193, "\ud83a\udd2b"], [125194, "\ud83a\udd2c"], [125195, "\ud83a\udd2d"], [125196, "\ud83a\udd2e"], [125197, "\ud83a\udd2f"], [125198, "\ud83a\udd30"], [125199, "\ud83a\udd31"], [125200, "\ud83a\udd32"], [125201, "\ud83a\udd33"], [125202, "\ud83a\udd34"], [125203, "\ud83a\udd35"], [125204, "\ud83a\udd36"], [125205, "\ud83a\udd37"], [125206, "\ud83a\udd38"], [125207, "\ud83a\udd39"], [125208, "\ud83a\udd3a"], [125209, "\ud83a\udd3b"], [125210, "\ud83a\udd3c"], [125211, "\ud83a\udd3d"], [125212, "\ud83a\udd3e"], [125213, "\ud83a\udd3f"], [125214, "\ud83a\udd40"], [125215, "\ud83a\udd41"], [125216, "\ud83a\udd42"], [125217, "\ud83a\udd43"]]);
|
|
7
|
+
export function casefold(value) {
|
|
8
|
+
return [...value].map(char => folds.get(char.codePointAt(0)) ?? char).join('');
|
|
9
|
+
}
|
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
|
@@ -1,20 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { doctor } from './diagnostics.js';
|
|
3
|
+
import { help } from './help.js';
|
|
4
|
+
import { renderOutput } from './output.js';
|
|
2
5
|
import { hostname } from 'node:os';
|
|
3
6
|
import { lstatSync } from 'node:fs';
|
|
4
|
-
import {
|
|
7
|
+
import { listing, Refusal } from './discovery.js';
|
|
5
8
|
import { executable, run, UnknownOutcome } from './process.js';
|
|
6
|
-
import { checkMessage, send } from './send.js';
|
|
9
|
+
import { checkMessage, send, CodexUnknownOutcome } from './send.js';
|
|
10
|
+
import { HomeRefusal } from './writer.js';
|
|
7
11
|
import { envelope, host, reply, VERSION, VERSION_LINE } from './protocol.js';
|
|
8
12
|
export function parse(args) {
|
|
9
13
|
const command = args[0];
|
|
10
|
-
if (command !== 'list' && command !== 'send')
|
|
14
|
+
if (command !== 'list' && command !== 'send' && command !== 'doctor')
|
|
11
15
|
throw new Refusal('unsupported_command');
|
|
12
16
|
const values = new Map(), flags = new Set();
|
|
17
|
+
let positional;
|
|
18
|
+
let terminated = false;
|
|
13
19
|
for (let i = 1; i < args.length; i++) {
|
|
14
20
|
const token = args[i];
|
|
21
|
+
if (token === '--' && !terminated) {
|
|
22
|
+
terminated = true;
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
if (terminated || !token.startsWith('-') || token === '-') {
|
|
26
|
+
if (command !== 'send' || positional !== undefined)
|
|
27
|
+
throw new Refusal('invalid_positional_message');
|
|
28
|
+
positional = token;
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
15
31
|
const split = token.indexOf('=');
|
|
16
32
|
const key = split > 0 ? token.slice(0, split) : token;
|
|
17
|
-
if (['--json', '--all', '--dry-run', '--no-from', '--no-reply-to', '--no-update-notice'].includes(key)) {
|
|
33
|
+
if (['--json', '--all', '--dry-run', '--no-from', '--no-reply-to', '--no-update-notice', '--allow-inactive-codex-home'].includes(key)) {
|
|
18
34
|
if (flags.has(key) || split > 0)
|
|
19
35
|
throw new Refusal('invalid_option');
|
|
20
36
|
flags.add(key);
|
|
@@ -29,18 +45,27 @@ export function parse(args) {
|
|
|
29
45
|
else
|
|
30
46
|
throw new Refusal('unsupported_option');
|
|
31
47
|
}
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
|
|
48
|
+
if (positional !== undefined) {
|
|
49
|
+
if (values.has('--message'))
|
|
50
|
+
throw new Refusal('conflicting_message_sources');
|
|
51
|
+
values.set('--message', positional);
|
|
52
|
+
}
|
|
53
|
+
if (values.has('--output-format') && !['json', 'text'].includes(values.get('--output-format')))
|
|
35
54
|
throw new Refusal('unsupported_output_format');
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (values.
|
|
55
|
+
if (flags.has('--json') && values.get('--output-format') === 'text')
|
|
56
|
+
throw new Refusal('conflicting_output_options');
|
|
57
|
+
if (!flags.has('--json') && !values.has('--output-format'))
|
|
58
|
+
throw new Refusal('json_output_required');
|
|
59
|
+
if (command === 'list' || command === 'doctor') {
|
|
60
|
+
if (values.has('--agent') && !['claude', 'codex'].includes(values.get('--agent')))
|
|
61
|
+
throw new Refusal('unsupported_agent');
|
|
62
|
+
if (values.has('--codex-home') && !values.get('--codex-home'))
|
|
63
|
+
throw new Refusal('invalid_codex_home');
|
|
64
|
+
if (values.get('--agent') === 'claude' && values.has('--codex-home'))
|
|
42
65
|
throw new Refusal('inapplicable_option');
|
|
43
|
-
if (['--to', '--message', '--
|
|
66
|
+
if (['--to', '--message', '--reply-address', ...(command === 'list' ? ['--codex-bin'] : [])].some(k => values.has(k)) || ['--dry-run', '--no-from', '--no-reply-to', '--allow-inactive-codex-home'].some(k => flags.has(k)))
|
|
67
|
+
throw new Refusal('inapplicable_option');
|
|
68
|
+
if (command === 'doctor' && (flags.has('--all') || (values.get('--agent') === 'claude' && values.has('--codex-bin'))))
|
|
44
69
|
throw new Refusal('inapplicable_option');
|
|
45
70
|
}
|
|
46
71
|
else {
|
|
@@ -59,6 +84,14 @@ export function parse(args) {
|
|
|
59
84
|
values.set('--to', route.to);
|
|
60
85
|
}
|
|
61
86
|
}
|
|
87
|
+
if (command === 'send' && flags.has('--allow-inactive-codex-home')) {
|
|
88
|
+
if (!values.get('--to').startsWith('codex:'))
|
|
89
|
+
throw new Refusal('inapplicable_option');
|
|
90
|
+
if (!values.get('--codex-home'))
|
|
91
|
+
throw new Refusal('inactive_opt_in_requires_explicit_home');
|
|
92
|
+
}
|
|
93
|
+
if (values.has('--codex-home') && !values.get('--codex-home'))
|
|
94
|
+
throw new Refusal('invalid_codex_home');
|
|
62
95
|
if (values.has('--host'))
|
|
63
96
|
host(values.get('--host'));
|
|
64
97
|
if (values.has('--ssh-control-path')) {
|
|
@@ -148,6 +181,8 @@ async function remote(options, message) {
|
|
|
148
181
|
args.push('--all');
|
|
149
182
|
if (flags.has('--dry-run'))
|
|
150
183
|
args.push('--dry-run');
|
|
184
|
+
if (flags.has('--allow-inactive-codex-home'))
|
|
185
|
+
args.push('--allow-inactive-codex-home');
|
|
151
186
|
if (command === 'send')
|
|
152
187
|
args.push('--message', message, '--no-from', '--no-reply-to');
|
|
153
188
|
const done = await run(ssh, [...base, invoke('--stdio-request')], {
|
|
@@ -167,6 +202,8 @@ async function remote(options, message) {
|
|
|
167
202
|
if (!value || value.schemaVersion !== 1 || value.command !== command || typeof value.ok !== 'boolean' || typeof value.host !== 'string' ||
|
|
168
203
|
![0, 1, 2].includes(done.code ?? -1) || (value.ok !== (done.code === 0)))
|
|
169
204
|
return uncertain();
|
|
205
|
+
if (command === 'doctor' && value.ok && (value.diagnosticCompleted !== true || typeof value.ready !== 'boolean' || value.implementation !== 'typescript' || !value.agents || typeof value.agents !== 'object' || Array.isArray(value.agents)))
|
|
206
|
+
return uncertain();
|
|
170
207
|
const expectedStatus = flags.has('--dry-run') ? 'validated' : values.get('--to')?.startsWith('codex:') ? 'queued' : 'posted';
|
|
171
208
|
if (command === 'send' && (value.consumptionConfirmed !== false ||
|
|
172
209
|
(value.ok && (value.submitted !== !flags.has('--dry-run') || value.status !== expectedStatus)) ||
|
|
@@ -175,6 +212,7 @@ async function remote(options, message) {
|
|
|
175
212
|
return { ...value, host: target, sshHost: target };
|
|
176
213
|
}
|
|
177
214
|
let command = 'unknown';
|
|
215
|
+
let format = 'json';
|
|
178
216
|
try {
|
|
179
217
|
const [major, minor] = process.versions.node.split('.').map(Number);
|
|
180
218
|
if (!((major === 22 && minor >= 13) || major === 24))
|
|
@@ -184,8 +222,9 @@ try {
|
|
|
184
222
|
let args = process.argv.slice(2);
|
|
185
223
|
if (args.length === 1 && args[0] === '--version')
|
|
186
224
|
console.log(VERSION_LINE);
|
|
187
|
-
else if (args.length === 1 && ['--help', '-h'].includes(args[0]))
|
|
188
|
-
|
|
225
|
+
else if ((args.length === 1 && ['--help', '-h'].includes(args[0])) ||
|
|
226
|
+
(args.length === 2 && ['list', 'send', 'doctor'].includes(args[0]) && ['--help', '-h'].includes(args[1])))
|
|
227
|
+
console.log(help(args.length === 2 ? args[0] : undefined));
|
|
189
228
|
else {
|
|
190
229
|
const wire = args.length === 1 && args[0] === '--stdio-request';
|
|
191
230
|
if (wire) {
|
|
@@ -201,8 +240,11 @@ try {
|
|
|
201
240
|
throw new Refusal('invalid_remote_request');
|
|
202
241
|
args = record.args;
|
|
203
242
|
}
|
|
204
|
-
command = ['list', 'send'].includes(args[0] ?? '') ? args[0] : 'unknown';
|
|
243
|
+
command = ['list', 'send', 'doctor'].includes(args[0] ?? '') ? args[0] : 'unknown';
|
|
205
244
|
const options = parse(args);
|
|
245
|
+
format = !wire && options.values.get('--output-format') === 'text' ? 'text' : 'json';
|
|
246
|
+
if (wire && options.values.get('--output-format') === 'text')
|
|
247
|
+
throw new Refusal('remote_json_required');
|
|
206
248
|
if (wire && (options.values.has('--host') || options.values.has('--remote-bin') || options.values.has('--remote-platform') || options.values.has('--ssh-control-path')))
|
|
207
249
|
throw new Refusal('nested_transport_forbidden');
|
|
208
250
|
let message;
|
|
@@ -213,6 +255,7 @@ try {
|
|
|
213
255
|
throw new Refusal('remote_message_required');
|
|
214
256
|
message = await input();
|
|
215
257
|
}
|
|
258
|
+
checkMessage(message);
|
|
216
259
|
message = envelope(message, options.flags.has('--no-from'), options.values.get('--reply-address'));
|
|
217
260
|
checkMessage(message, options.values.get('--to').startsWith('codex:'));
|
|
218
261
|
}
|
|
@@ -220,18 +263,22 @@ try {
|
|
|
220
263
|
if (options.values.has('--host'))
|
|
221
264
|
result = await remote(options, message);
|
|
222
265
|
else if (command === 'send')
|
|
223
|
-
result = await send({ to: options.values.get('--to'), home: options.values.get('--codex-home'), codexBin: options.values.get('--codex-bin'), message: message, dryRun: options.flags.has('--dry-run') });
|
|
266
|
+
result = await send({ to: options.values.get('--to'), home: options.values.get('--codex-home'), codexBin: options.values.get('--codex-bin'), message: message, dryRun: options.flags.has('--dry-run'), allowInactive: options.flags.has('--allow-inactive-codex-home') });
|
|
267
|
+
else if (command === 'doctor')
|
|
268
|
+
result = await doctor(options.values.get('--agent'), options.values.get('--codex-home'), options.values.get('--codex-bin'));
|
|
224
269
|
else
|
|
225
|
-
result = options.values.get('--agent')
|
|
226
|
-
console.log(
|
|
270
|
+
result = await listing(options.values.get('--agent'), options.values.get('--codex-home'), options.flags.has('--all'));
|
|
271
|
+
console.log(renderOutput({ schemaVersion: 1, host: hostname(), command, ok: result.ok !== false, version: VERSION, referenceVersion: '1.0.2', ...result }, format));
|
|
227
272
|
process.exitCode = result.ok === false ? 1 : 0;
|
|
228
273
|
}
|
|
229
274
|
}
|
|
230
275
|
catch (error) {
|
|
231
276
|
const unknown = error instanceof UnknownOutcome;
|
|
232
277
|
const failure = error instanceof Refusal ? error : new Refusal('operation_failed', 1);
|
|
233
|
-
|
|
278
|
+
const homeResolution = error instanceof HomeRefusal || error instanceof CodexUnknownOutcome ? error.codexHomeResolution : undefined;
|
|
279
|
+
console.log(renderOutput({ schemaVersion: 1, host: hostname(), command, ok: false,
|
|
234
280
|
error: unknown ? 'outcome_unknown' : failure.code, status: unknown ? 'unknown' : 'refused',
|
|
235
|
-
submitted: unknown ? null : false, consumptionConfirmed: false, retryAllowed: false
|
|
281
|
+
submitted: unknown ? null : false, consumptionConfirmed: false, retryAllowed: false,
|
|
282
|
+
...(homeResolution === undefined ? {} : { codexHomeResolution: homeResolution }) }, format));
|
|
236
283
|
process.exitCode = unknown ? 1 : failure.exitCode;
|
|
237
284
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type Check = {
|
|
2
|
+
status: string;
|
|
3
|
+
code: string;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
};
|
|
6
|
+
export declare const capabilities: {
|
|
7
|
+
list: boolean;
|
|
8
|
+
send: boolean;
|
|
9
|
+
doctor: boolean;
|
|
10
|
+
wake: boolean;
|
|
11
|
+
wait: boolean;
|
|
12
|
+
ack: boolean;
|
|
13
|
+
consumptionConfirmation: boolean;
|
|
14
|
+
transports: string[];
|
|
15
|
+
agents: string[];
|
|
16
|
+
};
|
|
17
|
+
export declare function diagnoseCodex(home?: string, binary?: string): Promise<Record<string, unknown>>;
|
|
18
|
+
export declare function diagnoseClaude(): Record<string, unknown>;
|
|
19
|
+
export declare function doctor(agent?: 'claude' | 'codex', home?: string, binary?: string): Promise<Record<string, unknown>>;
|
|
20
|
+
export declare function inspectSkills(home?: string): Check[];
|
|
21
|
+
export {};
|