@reasontrail/cli 0.1.3 → 0.1.5

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.5
4
+
5
+ - Add a per-member, per-project automatic conversation-capture preference, off by default.
6
+ - Query the authorized project's capture policy before local Codex transcript discovery or Claude Code hook upload; fail closed when the policy is unavailable or disabled.
7
+ - Mark each transcript operation as manual or automatic, with a server-side consent check for automatic writes.
8
+ - Preserve explicit manual sync and the existing idempotent cursor, full-visible-history reconciliation, outage retry, and resume behavior.
9
+
10
+ ## 0.1.4
11
+
12
+ - Add the integrity-checked local credential broker for approved, fixed provider operations.
13
+ - Keep credential values out of MCP arguments/results and label portable OS-keystore devices as the weaker software-key tier.
14
+ - Support macOS, Windows and Linux enrollment, device listing, separately approved one-way manager migration, device revocation and local MCP serving.
15
+ - 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.
16
+ - Refuse member sharing to self-declared or software-key devices; a future managed-device attestation path is required for that stronger boundary.
17
+
3
18
  ## 0.1.3
4
19
 
5
20
  - 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.3` includes ReasonTrail Runtime `0.3.3`, protocol `3`.
21
+ CLI release `0.1.5` includes ReasonTrail Runtime `0.3.3`, protocol `3`, the
22
+ local credential-broker preview, and project-scoped conversation-capture consent.
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
 
@@ -74,7 +123,18 @@ and governed proposal path. A summary can succeed independently from transcript
74
123
  coverage; inspect the reported source checkpoint and coverage instead of
75
124
  inferring success from a zero accepted-turn count.
76
125
 
77
- Binding a verified repository starts ongoing capture of future visible Codex messages. To repair an existing service or check its status:
126
+ Automatic conversation capture is off by default and is a personal choice for
127
+ each project. Enable it in **Settings → Conversation capture** before the
128
+ managed service reads local Codex sessions or Claude Code hooks send visible
129
+ turns. Each member controls their own capture setting. An MCP connection alone
130
+ does not provide a transcript. The managed Codex client checks the project
131
+ preference before discovering local sessions; transcript writes identify their
132
+ mode, and the server checks the setting again on every automatic write. Explicit `sync codex --apply` remains a manual
133
+ action and works while automatic capture is off.
134
+
135
+ Binding a verified repository installs the ongoing sync service; conversation
136
+ capture still follows the per-member, per-project setting above. Repository
137
+ Markdown sync remains a separate project setting. To repair an existing service or check its status:
78
138
 
79
139
  ```bash
80
140
  reasontrail sync service install --profile production --project your-project --interval 60 --confirm-production
@@ -152,6 +212,33 @@ reasontrail run stop <mission-id> --profile production
152
212
  reasontrail run resume <mission-id> --profile production
153
213
  ```
154
214
 
215
+ ## Local credential broker preview
216
+
217
+ The broker lets an approved fixed provider operation run on macOS, Windows or
218
+ Linux without putting the credential in MCP arguments or results. The project
219
+ password is encrypted to a device key; the local process decrypts it, calls the
220
+ fixed connector, and returns only a bounded receipt.
221
+
222
+ ```bash
223
+ reasontrail auth login --device --profile production
224
+ reasontrail broker enroll --label "My admin workstation" --allow-software-key --profile production
225
+ reasontrail broker devices --profile production
226
+ reasontrail broker store --project your-project --name "Provider account" --kind USERNAME_PASSWORD --profile production
227
+ reasontrail broker mcp --profile production
228
+ ```
229
+
230
+ `auth login --device` prints the short-lived browser link and device code. The
231
+ code is generated by that command; it is not a value the user must already
232
+ possess. Complete browser approval before running `broker enroll`.
233
+
234
+ This first portable adapter is deliberately labelled `SOFTWARE_FALLBACK`. It
235
+ stores the device key—not the project password—in macOS Keychain, Windows DPAPI,
236
+ or Linux Secret Service. The signed-in user or a local administrator can still
237
+ extract or instrument that key/process. For that reason, this tier is restricted
238
+ to project managers and ReasonTrail refuses to share credentials to another
239
+ member's software-key device. Do not present it as member-proof password hiding.
240
+ A managed/attested service tier is still required for that boundary.
241
+
155
242
  ## Human gates and completion
156
243
 
157
244
  Missions can pause asynchronously for provider recovery, review decisions, or
@@ -178,6 +265,7 @@ place. `reasontrail upgrade` is reserved and is not the supported updater.
178
265
 
179
266
  ```bash
180
267
  reasontrail runtime logout --profile production
268
+ reasontrail broker revoke --profile production
181
269
  reasontrail auth logout --profile production
182
270
  npm uninstall -g @reasontrail/cli
183
271
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reasontrail/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "ReasonTrail CLI and Mission Runtime",
5
5
  "type": "module",
6
6
  "bin": {