@thirdfy/agent-cli 0.2.28 → 0.2.30

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
@@ -4,6 +4,18 @@ All notable changes to `@thirdfy/agent-cli` are documented here. The format is b
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.2.30] - 2026-07-19
8
+
9
+ ### Changed
10
+
11
+ - Always send `x-client: agent-cli` on Thirdfy API HTTP requests for WDF0 trajectory client attribution (alongside existing runtime/org headers).
12
+
13
+ ## [0.2.29] - 2026-07-18
14
+
15
+ ### Changed
16
+
17
+ - Docs: Wave C / W6 CLI reference polish. Quick start is Path A (`personal` + `agent_wallet`); Gator lives under **User wallet authorization**; cross-links to [action inventory](./docs/action-inventory-and-compatibility.md#execution-orchestration-reference-hosted-solo-agents) and the API [CLI reference standard](https://github.com/thirdfy/thirdfy-api-v2/blob/develop/docs-dev/agents/execution-orchestration-scale/cli-reference-standard.md). Solo path does not require MetaMask delegation. Pairs with Thirdfy API **v3.12.0**.
18
+
7
19
  ## [0.2.28] - 2026-07-11
8
20
 
9
21
  ### Fixed
package/README.md CHANGED
@@ -40,26 +40,46 @@ Run without global install:
40
40
  npx @thirdfy/agent-cli --help
41
41
  ```
42
42
 
43
- ## What's new in v0.2.28
43
+ ## What's new in v0.2.30
44
44
 
45
- - `e2e:base:simulate` Robinhood tier passes chain 4663 compatibility by using `--run-mode agent_wallet`.
45
+ - Sends `x-client: agent-cli` on API requests so Thirdfy trajectory events attribute the CLI surface.
46
+ - Keeps runtime/org execution context headers for hosted EarnClaw attribution.
46
47
 
47
48
  Older versions: see [CHANGELOG.md](./CHANGELOG.md) and [GitHub Releases](https://github.com/thirdfy/agent-cli/releases).
48
49
 
49
50
  ## Quick start
50
51
 
52
+ Hosted solo agents use profile `personal` and `--run-mode agent_wallet` (Path A). Fund the managed **execution wallet**, complete venue trading setup from the catalog when needed, then preflight and run. MetaMask Gator / `delegation *` is not required on this path.
53
+
51
54
  ```bash
52
55
  export AGENT_API_KEY="..."
53
56
  export THIRDFY_AUTH_TOKEN="..."
54
57
  export THIRDFY_OWNER_SESSION_TOKEN="..."
55
58
 
56
- thirdfy-agent actions --agent-api-key "$AGENT_API_KEY" --json
57
59
  thirdfy-agent profile init --profile personal --json
58
- thirdfy-agent preflight --agent-api-key "$AGENT_API_KEY" --action swap --params '{"tokenIn":"0x...","tokenOut":"0x...","amountInRaw":"1000000","tokenInDecimals":6}' --estimated-amount-usd 25 --json
59
- thirdfy-agent run --agent-api-key "$AGENT_API_KEY" --action swap --params '{"tokenIn":"0x...","tokenOut":"0x...","amountInRaw":"1000000","tokenInDecimals":6}' --estimated-amount-usd 25 --json
60
- thirdfy-agent intent-status --intent-id "<intentId>" --json
60
+ thirdfy-agent actions --agent-api-key "$AGENT_API_KEY" --json
61
+ thirdfy-agent wallet list --json
62
+ # Fund the printed execution wallet address for your target chain (not the owner login wallet).
63
+
64
+ thirdfy-agent preflight \
65
+ --agent-api-key "$AGENT_API_KEY" \
66
+ --run-mode agent_wallet \
67
+ --action swap \
68
+ --params '{"tokenIn":"0x...","tokenOut":"0x...","amountInRaw":"1000000","tokenInDecimals":6}' \
69
+ --estimated-amount-usd 25 \
70
+ --json
71
+
72
+ thirdfy-agent run \
73
+ --agent-api-key "$AGENT_API_KEY" \
74
+ --run-mode agent_wallet \
75
+ --action swap \
76
+ --params '{"tokenIn":"0x...","tokenOut":"0x...","amountInRaw":"1000000","tokenInDecimals":6}' \
77
+ --estimated-amount-usd 25 \
78
+ --json
61
79
  ```
62
80
 
81
+ `personal` defaults to `agent_wallet` when `--run-mode` is omitted. Use `intent-status` only for publisher execute-intent fanout (`--run-mode thirdfy`), not for solo `agent_wallet` writes. Full golden paths: [action inventory — execution orchestration](./docs/action-inventory-and-compatibility.md#execution-orchestration-reference-hosted-solo-agents).
82
+
63
83
  By default, the CLI targets production (`https://api.thirdfy.com`). Use `--api-base` (or `THIRDFY_API_BASE`) only for staging/dev/custom deployments.
64
84
 
65
85
  ### Local API smoke
@@ -308,9 +328,9 @@ Provider and venue guides are kept outside `README` so this page stays stable as
308
328
  - Managed signer execution: `wallet execute`, `wallet sign`, `wallet submit`, `agent run`
309
329
  - Profiles: `profile init`, `profile use`, `profile show`, `whoami`
310
330
  - Onboarding: `login email`, `help onboarding`, `doctor auth`, `wallet list`, `bootstrap begin`, `bootstrap complete`, `onboarding begin`, `onboarding complete`, `agent auth challenge`, `agent auth verify`, `agent register`, `agent key rotate`, `agent key revoke`, `developer bootstrap`
311
- - Governance readiness: `delegation create`, `delegation activate`, `delegation status`, `credentials upsert`, `credentials status`
312
- - Delegation operations: `delegation show`, `delegation inspect`, `delegation revoke`
313
- - Delegation execution helpers: `delegation balance`, `delegation redeem`
331
+ - User wallet authorization (Gator): `delegation create`, `delegation activate`, `delegation status`, `credentials upsert`, `credentials status`
332
+ - Gator operations: `delegation show`, `delegation inspect`, `delegation revoke`
333
+ - Gator execution helpers: `delegation balance`, `delegation redeem` (daily-cap caveats via `--max-usd-per-day`)
314
334
  - Account: `credits balance`
315
335
  - Console Brain: `brain sections`, `brain suggest`, `brain preflight`, `brain graduate` (read/preflight-first; see [`docs/command-reference.md`](./docs/command-reference.md))
316
336
 
@@ -326,9 +346,11 @@ Maintainers validating releases locally: `npm run validate:release-preflight`. A
326
346
  - Live action inventory in your environment: [`docs/action-inventory-and-compatibility.md`](./docs/action-inventory-and-compatibility.md)
327
347
  - Provider runbooks and provider status: [`docs/providers/index.md`](./docs/providers/index.md)
328
348
 
329
- ## Delegation lifecycle (canonical)
349
+ ## User wallet authorization (Gator)
330
350
 
331
- Use `create` + `activate` as the default delegated execution lifecycle:
351
+ Gator / ERC-7710 lives under the `delegation *` command group. Use it when a **user wallet** authorizes spend for `hybrid` or `thirdfy` (subscriber / Console / external-wallet lanes). Hosted solo agents on `personal` + `agent_wallet` skip this section.
352
+
353
+ Use `create` + `activate` as the default user-authority lifecycle (`--max-usd-per-day` sets the period transfer caveat):
332
354
 
333
355
  ```bash
334
356
  thirdfy-agent delegation create \
@@ -384,7 +406,9 @@ thirdfy-agent delegation redeem \
384
406
 
385
407
  `--auth-token "$THIRDFY_AUTH_TOKEN"` remains supported for all delegation commands, but owner-session token is preferred for least-privilege owner operations.
386
408
 
387
- ### MetaMask custodial-compatible lifecycle (new)
409
+ ### MetaMask custodial-compatible grant (Gator path only)
410
+
411
+ This is still user-authority setup, not the solo `agent_wallet` demo path. Solo agents do not need MetaMask delegation.
388
412
 
389
413
  ```bash
390
414
  thirdfy-agent delegation init-custodial \
@@ -402,7 +426,7 @@ thirdfy-agent delegation custodial-grant \
402
426
 
403
427
  The CLI keeps compatibility with legacy `delegation create` + `delegation activate` during migration.
404
428
 
405
- `delegation show` is a direct alias to `delegation status` for gator-style operator ergonomics.
429
+ `delegation show` is a direct alias to `delegation status` for Gator operator ergonomics.
406
430
 
407
431
  Managed easy-wallet command group:
408
432
 
@@ -431,6 +455,7 @@ Managed-self execution performs strict wallet preflight and returns deterministi
431
455
 
432
456
  ## More docs
433
457
 
458
+ - Execution orchestration (solo `agent_wallet` reference path): [action inventory — execution orchestration](./docs/action-inventory-and-compatibility.md#execution-orchestration-reference-hosted-solo-agents); operator standard in [thirdfy-api-v2 cli-reference-standard](https://github.com/thirdfy/thirdfy-api-v2/blob/develop/docs-dev/agents/execution-orchestration-scale/cli-reference-standard.md)
434
459
  - OpenClaw CLI onboarding flow:
435
460
  [docs.thirdfy.com/documentation/api/thirdfy-agent-cli#create-an-openclaw-agent-with-the-cli](https://docs.thirdfy.com/documentation/api/thirdfy-agent-cli#create-an-openclaw-agent-with-the-cli)
436
461
  - Creator platform (agent registration and keys):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thirdfy/agent-cli",
3
- "version": "0.2.28",
3
+ "version": "0.2.30",
4
4
  "description": "Thirdfy Agent CLI for onboarding, governance preflight, execute-intent, and status polling.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,7 +31,9 @@ export function resolveExecutionContextFromInput(input = {}) {
31
31
  }
32
32
 
33
33
  export function buildExecutionContextHeaders(attribution) {
34
- const headers = {};
34
+ const headers = {
35
+ 'x-client': 'agent-cli',
36
+ };
35
37
  if (attribution.runtimeId) headers['x-thirdfy-execution-runtime-id'] = attribution.runtimeId;
36
38
  if (attribution.orgId) headers['x-thirdfy-execution-org-id'] = attribution.orgId;
37
39
  return headers;
package/src/core/http.mjs CHANGED
@@ -29,6 +29,7 @@ export async function apiGet(ctx, route, headers = {}) {
29
29
 
30
30
  function mergeExecutionContextHeaders(headers = {}, body = {}) {
31
31
  return {
32
+ 'x-client': 'agent-cli',
32
33
  ...buildExecutionContextHeaders(resolveExecutionContextFromInput(body)),
33
34
  ...headers,
34
35
  };