@reasontrail/cli 0.1.3 → 0.1.4
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/CHANGELOG.md +8 -0
- package/README.md +78 -1
- package/package.json +1 -1
- package/runtime/reasontrail-credential-broker.mjs +43419 -0
- package/runtime/reasontrail-credential-broker.mjs.sha256 +1 -0
- package/src/cli.mjs +77 -8
- package/runtime/reasontrail-runtime.mjs +0 -23448
- package/runtime/reasontrail-runtime.mjs.sha256 +0 -1
- package/src/build-info.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
- Add the integrity-checked local credential broker for approved, fixed provider operations.
|
|
6
|
+
- Keep credential values out of MCP arguments/results and label portable OS-keystore devices as the weaker software-key tier.
|
|
7
|
+
- Support macOS, Windows and Linux enrollment, device listing, separately approved one-way manager migration, device revocation and local MCP serving.
|
|
8
|
+
- Add manager-only local-first credential creation: the broker reads without terminal echo, encrypts and verifies on-device, and uploads only a device envelope plus safe metadata.
|
|
9
|
+
- Refuse member sharing to self-declared or software-key devices; a future managed-device attestation path is required for that stronger boundary.
|
|
10
|
+
|
|
3
11
|
## 0.1.3
|
|
4
12
|
|
|
5
13
|
- Capture new visible Codex turns after binding a project, including worktrees and rotated session files. Hold chats spanning multiple connected projects for review.
|
package/README.md
CHANGED
|
@@ -18,7 +18,8 @@ reasontrail --version
|
|
|
18
18
|
reasontrail --help
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
CLI release `0.1.
|
|
21
|
+
CLI release `0.1.4` includes ReasonTrail Runtime `0.3.3`, protocol `3`, and the
|
|
22
|
+
local credential-broker preview.
|
|
22
23
|
|
|
23
24
|
## Connect to hosted ReasonTrail
|
|
24
25
|
|
|
@@ -39,6 +40,54 @@ Every server-capable production command requires `--profile production`.
|
|
|
39
40
|
Interactive commands ask you to type `PRODUCTION`; noninteractive commands also
|
|
40
41
|
require the narrow `--confirm-production` flag.
|
|
41
42
|
|
|
43
|
+
## Local credential-broker preview
|
|
44
|
+
|
|
45
|
+
The preview runs fixed, approved provider operations on the workstation without
|
|
46
|
+
putting the project password in MCP or model output. Its portable macOS Keychain,
|
|
47
|
+
Windows DPAPI and Linux Secret Service adapter is a manager-only software-key
|
|
48
|
+
tier: the signed-in user or a local administrator can still extract or instrument
|
|
49
|
+
it. It is not yet the managed-device tier required for member-safe sharing.
|
|
50
|
+
|
|
51
|
+
Enroll and inspect a device:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
reasontrail broker enroll --label "My admin workstation" --allow-software-key --profile production
|
|
55
|
+
reasontrail broker devices --profile production
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Create a manager-only credential without sending plaintext to ReasonTrail
|
|
59
|
+
Cloud. The broker reads both fields without terminal echo, encrypts to this
|
|
60
|
+
device, verifies the envelope locally and uploads only ciphertext and safe
|
|
61
|
+
metadata:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
reasontrail broker store --project your-project --name "Provider account" \
|
|
65
|
+
--kind USERNAME_PASSWORD --profile production
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
`--payload-stdin` accepts a JSON object from a trusted local password manager or
|
|
69
|
+
automation source. Never put a credential in a command argument, chat, shell
|
|
70
|
+
history or MCP input. Software-key devices cannot create a
|
|
71
|
+
`PROJECT_MEMBERS` credential; member-safe delivery still requires a
|
|
72
|
+
server-verified managed device.
|
|
73
|
+
|
|
74
|
+
Migration is deliberately two-step and one-way. The first command creates an
|
|
75
|
+
exact approval request and prints its authenticated review URL. After a project
|
|
76
|
+
manager approves that request in ReasonTrail, repeat it with the returned id:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
reasontrail broker migrate --project your-project --secret <secret-id> --version <version> \
|
|
80
|
+
--acknowledge-one-way-device-migration --profile production
|
|
81
|
+
|
|
82
|
+
reasontrail broker migrate --project your-project --secret <secret-id> --version <version> \
|
|
83
|
+
--request <approved-request-id> --acknowledge-one-way-device-migration --profile production
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The approved migration is bound to the same MCP token, credential version and
|
|
87
|
+
device. It atomically writes current and retained historical device envelopes
|
|
88
|
+
before removing the live database's server-decryptable copy. Protect the device
|
|
89
|
+
key and retain governed backups before using it.
|
|
90
|
+
|
|
42
91
|
From the Git checkout associated with your ReasonTrail project, bind and verify
|
|
43
92
|
it:
|
|
44
93
|
|
|
@@ -152,6 +201,33 @@ reasontrail run stop <mission-id> --profile production
|
|
|
152
201
|
reasontrail run resume <mission-id> --profile production
|
|
153
202
|
```
|
|
154
203
|
|
|
204
|
+
## Local credential broker preview
|
|
205
|
+
|
|
206
|
+
The broker lets an approved fixed provider operation run on macOS, Windows or
|
|
207
|
+
Linux without putting the credential in MCP arguments or results. The project
|
|
208
|
+
password is encrypted to a device key; the local process decrypts it, calls the
|
|
209
|
+
fixed connector, and returns only a bounded receipt.
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
reasontrail auth login --device --profile production
|
|
213
|
+
reasontrail broker enroll --label "My admin workstation" --allow-software-key --profile production
|
|
214
|
+
reasontrail broker devices --profile production
|
|
215
|
+
reasontrail broker store --project your-project --name "Provider account" --kind USERNAME_PASSWORD --profile production
|
|
216
|
+
reasontrail broker mcp --profile production
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
`auth login --device` prints the short-lived browser link and device code. The
|
|
220
|
+
code is generated by that command; it is not a value the user must already
|
|
221
|
+
possess. Complete browser approval before running `broker enroll`.
|
|
222
|
+
|
|
223
|
+
This first portable adapter is deliberately labelled `SOFTWARE_FALLBACK`. It
|
|
224
|
+
stores the device key—not the project password—in macOS Keychain, Windows DPAPI,
|
|
225
|
+
or Linux Secret Service. The signed-in user or a local administrator can still
|
|
226
|
+
extract or instrument that key/process. For that reason, this tier is restricted
|
|
227
|
+
to project managers and ReasonTrail refuses to share credentials to another
|
|
228
|
+
member's software-key device. Do not present it as member-proof password hiding.
|
|
229
|
+
A managed/attested service tier is still required for that boundary.
|
|
230
|
+
|
|
155
231
|
## Human gates and completion
|
|
156
232
|
|
|
157
233
|
Missions can pause asynchronously for provider recovery, review decisions, or
|
|
@@ -178,6 +254,7 @@ place. `reasontrail upgrade` is reserved and is not the supported updater.
|
|
|
178
254
|
|
|
179
255
|
```bash
|
|
180
256
|
reasontrail runtime logout --profile production
|
|
257
|
+
reasontrail broker revoke --profile production
|
|
181
258
|
reasontrail auth logout --profile production
|
|
182
259
|
npm uninstall -g @reasontrail/cli
|
|
183
260
|
```
|