@darwin.finance/cli 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -36,6 +36,9 @@ darwin help # every command, from Darwin's own catalogue
36
36
  darwin whoami
37
37
  ```
38
38
 
39
+ Output is readable text in a terminal and one JSON document when piped or redirected (or with
40
+ `--json`; `--format table` forces text). The JSON is Darwin's answer unchanged.
41
+
39
42
  What each command does is documented by Darwin itself: the command list is fetched from the site you
40
43
  logged in to (`darwin help`, `darwin <command> --help`, `darwin help --json`), so new commands appear
41
44
  without a new release of this program. The API reference: <https://darwin.finance/agents/docs>.
@@ -61,7 +64,8 @@ without a new release of this program. The API reference: <https://darwin.financ
61
64
  `--dry-run` to see what a command would send. Writes and reads are distinct commands, so your
62
65
  agent harness can allow reads and ask before writes.
63
66
  - **Server text is data.** Text a third party can influence (a token's name, a venue's message) is
64
- stripped of terminal escapes and shown as `untrusted: …`.
67
+ stripped of terminal escapes, control and bidi characters before it reaches a terminal. In JSON
68
+ output it stays wrapped `{"untrusted": "…"}`, so an AI reading it knows not to act on it.
65
69
  - What a secret store does *not* do: it can't stop malware running as your own user. On macOS the
66
70
  keychain item trusts the `node` binary for an npm install.
67
71
 
@@ -97,11 +101,11 @@ npm **trusted publishing** (GitHub OIDC) with **provenance**.
97
101
 
98
102
  **Then enable trusted publishing** on npmjs.com → `@darwin.finance/cli` → Settings → Trusted publisher →
99
103
  GitHub Actions: organization/user `DarwinFinance`, repository `darwin-cli`, workflow `release.yml`,
100
- environment `npm`. Optionally set "Require two-factor authentication and disallow tokens".
104
+ environment `npm`, allowed action **`npm stage publish` only** (direct `npm publish` is NOT allowed). Publishing access is set to "Require two-factor authentication and disallow bypass 2FA tokens". (Both done 2026-10-05.)
101
105
  In GitHub → Settings → Environments, create `npm` with yourself as a required reviewer.
102
106
 
103
107
  **Every later release:** bump `"version"` in a PR, merge, tag the merge commit `vX.Y.Z`, push the tag,
104
- approve the `npm` environment. The workflow tests, builds and runs `npm publish --provenance`.
108
+ approve the `npm` environment. The workflow tests, builds and runs `npm stage publish --provenance`, which uploads the version as STAGED. Then open npmjs.com → `@darwin.finance/cli` → the staged version and approve it with your passkey; only then does it go live.
105
109
 
106
110
  ## Develop
107
111