@agentgrant.cash/cli 1.4.2 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentgrant.cash/cli",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Grant Cash — one CLI for your money (gold) and your agent (pay-per-use services). Routes to the Perfolio backend and the Agent-mode backend behind a single, plain-language surface.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,6 +14,24 @@ These are **two sides of the same Grant Cash account**, not two separate apps or
14
14
 
15
15
  > Note for assistants: do **not** describe this as a "portfolio service" plus an "agent service", and never mention internal system names. It is one product — Grant Cash — with an Investments side and a Spending side. Speak plainly: gold, cash, bitcoin, ethereum, "your worth", "spending money".
16
16
 
17
+ ## Set up (do this first)
18
+
19
+ **If Grant Cash isn't connected on this machine yet**, set it up with one command:
20
+
21
+ ```
22
+ npx @agentgrant.cash/cli onboard
23
+ ```
24
+
25
+ This installs the Grant Cash skill and starts sign-in, then prints a **connect link**. Give that link to the user and ask them to open it, **sign in if needed, and approve their spending limits**. (Already signed in to Grant Cash in their browser? They just approve — no new sign-in.)
26
+
27
+ **Then confirm whose account you're on — always, before moving any money:**
28
+
29
+ ```
30
+ grant status # shows the connected account (email) + what's enabled
31
+ ```
32
+
33
+ Read the connected account back to the user and confirm it's theirs. A machine may already have an **older or different login cached**, so `status` reporting "connected" is not proof on its own. If the account isn't one the user recognises, run `grant logout` then `grant onboard` again for a fresh sign-in.
34
+
17
35
  ## Install / run
18
36
 
19
37
  This CLI is published on npm as **`@agentgrant.cash/cli`**. Run it without installing:
@@ -47,7 +65,7 @@ Every **cash** amount is in the user's display currency — a bare `50` means
47
65
 
48
66
  ## Workflow
49
67
 
50
- 1. `grant status` — confirm you're connected (both Investments and Spending).
68
+ 1. `grant status` — confirm you're connected **and that the account is the user's** (see *Set up* — re-confirm a cached login before acting).
51
69
  2. `grant portfolio` — combined worth: the Investments side (gold, cash, bitcoin, ethereum, leveraged positions, prediction balance, earnings) and the Spending side, in one place.
52
70
  3. Invest: `grant prices`, then `grant buy <asset> --amount <cash>` / `grant sell <asset> --for <cash>`.
53
71
  4. Spend: `grant search "<q>"` → `grant check <url>` (no charge) → `grant fetch <url> -b '<json>'`.