@thirdfy/agent-cli 0.1.40 → 0.1.41
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 +6 -0
- package/README.md +2 -1
- package/bin/thirdfy-agent.mjs +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to `@thirdfy/agent-cli` are documented here. The format is b
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.41] - 2026-05-19
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Hyperliquid provider hints and docs list `get_hyperliquid_funding_status` as step 0 before onboarding plan; clarify Bridge2 sender custody, `--estimated-amount-usd` on `deposit_hyperliquid_bridge`, and `MANUAL_BRIDGE2_DEPOSIT_REQUIRED` guidance. Pairs with thirdfy-api-v2 **v3.4.24**.
|
|
12
|
+
|
|
7
13
|
## [0.1.40] - 2026-05-17
|
|
8
14
|
|
|
9
15
|
### Fixed
|
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ npx @thirdfy/agent-cli --help
|
|
|
42
42
|
|
|
43
43
|
## Release notes
|
|
44
44
|
|
|
45
|
-
Version history and highlights: [CHANGELOG.md](./CHANGELOG.md). **v0.1.40** fixes email/bootstrap credential persistence when the API returns nested registration payloads, so owner-session onboarding can save the hidden execution identity without exposing a raw agent API key. **v0.1.39** makes `agent_wallet` the fresh solo default, adds framework guidance for Hermes/OpenClaw/Claude Managed Agents, clarifies Gator/ERC-7710 delegation flows, and keeps BYOW/self plus hybrid/thirdfy mode switching explicit. **v0.1.38** is a **documentation and metadata patch**: it republishes to npm so the package homepage matches the updated `README.md` on `main`, and aligns root `package-lock.json` version fields with `package.json`. **v0.1.37** adds **email OTP** `thirdfy-agent login email` (send code, then complete with `--code --accept-terms`), **`help onboarding`**, **`doctor auth`**, **`wallet list`**, and **masked `whoami`** output so agents and operators get first-run guidance without dumping secrets. Earlier releases added provider discovery parity, portfolio analytics, managed-wallet swap normalization, and **self/build-tx** swap human-decimal `amountIn` parity when using `amountInHuman` + `tokenInDecimals`.
|
|
45
|
+
Version history and highlights: [CHANGELOG.md](./CHANGELOG.md). **v0.1.41** documents Hyperliquid `get_hyperliquid_funding_status` as setup step 0, Bridge2 sender custody, and `deposit_hyperliquid_bridge --estimated-amount-usd` (pairs with API **v3.4.24**). **v0.1.40** fixes email/bootstrap credential persistence when the API returns nested registration payloads, so owner-session onboarding can save the hidden execution identity without exposing a raw agent API key. **v0.1.39** makes `agent_wallet` the fresh solo default, adds framework guidance for Hermes/OpenClaw/Claude Managed Agents, clarifies Gator/ERC-7710 delegation flows, and keeps BYOW/self plus hybrid/thirdfy mode switching explicit. **v0.1.38** is a **documentation and metadata patch**: it republishes to npm so the package homepage matches the updated `README.md` on `main`, and aligns root `package-lock.json` version fields with `package.json`. **v0.1.37** adds **email OTP** `thirdfy-agent login email` (send code, then complete with `--code --accept-terms`), **`help onboarding`**, **`doctor auth`**, **`wallet list`**, and **masked `whoami`** output so agents and operators get first-run guidance without dumping secrets. Earlier releases added provider discovery parity, portfolio analytics, managed-wallet swap normalization, and **self/build-tx** swap human-decimal `amountIn` parity when using `amountInHuman` + `tokenInDecimals`.
|
|
46
46
|
|
|
47
47
|
**Maintainers — npm:** follow [docs/releasing.md](./docs/releasing.md). From a clone with gitignored `.env`, use `npm run publish:npm:local -- --dry-run` then `npm run publish:npm:local`. Or run `npm run release:npm` after exporting tokens in the shell. Never commit npm tokens — use [.env.example](./.env.example) as a template only.
|
|
48
48
|
|
|
@@ -170,6 +170,7 @@ Auth expectations by mode:
|
|
|
170
170
|
- `hybrid`: requires execution identity and governed mirror semantics (`--hybrid-wallet-mode self|agent_wallet`, default `self`).
|
|
171
171
|
- `thirdfy`: requires execution identity and delegated governance path.
|
|
172
172
|
- `agent_wallet`: requires execution identity and owner `userDid`, but does not require subscriber delegation when the owner identity matches the agent wallet/creator.
|
|
173
|
+
- Hyperliquid Bridge2 setup is the Arbitrum exception to the Base-focused `agent_wallet` rule: Bridge2 credits the transaction sender. Pass **`--estimated-amount-usd`** as a top-level flag (not inside `--params`). When USDC sits on your linked email-login wallet (`primaryEvmWallet`) instead of the managed execution wallet, Thirdfy API **v3.4.23+** signs from the funded owner wallet when possible; otherwise it returns **`MANUAL_BRIDGE2_DEPOSIT_REQUIRED`** with `fundedWallet` and `executionWalletAddress`.
|
|
173
174
|
- custody mode defaults are profile-aware:
|
|
174
175
|
- `managed` default for `thirdfy`
|
|
175
176
|
- `external` default for `self` and `hybrid`
|
package/bin/thirdfy-agent.mjs
CHANGED
|
@@ -483,6 +483,7 @@ function getTradingProviderHint(providerId) {
|
|
|
483
483
|
'get_hyperliquid_candles',
|
|
484
484
|
'get_hyperliquid_user_state',
|
|
485
485
|
'get_hyperliquid_open_orders',
|
|
486
|
+
'get_hyperliquid_funding_status',
|
|
486
487
|
'get_hyperliquid_onboarding_plan',
|
|
487
488
|
'get_hyperliquid_referral_status',
|
|
488
489
|
'get_hyperliquid_builder_fee_status',
|
|
@@ -493,6 +494,7 @@ function getTradingProviderHint(providerId) {
|
|
|
493
494
|
'get_hyperliquid_open_orders',
|
|
494
495
|
],
|
|
495
496
|
setupActions: [
|
|
497
|
+
'get_hyperliquid_funding_status',
|
|
496
498
|
'get_hyperliquid_setup_status',
|
|
497
499
|
'get_hyperliquid_onboarding_plan',
|
|
498
500
|
'prepare_hyperliquid_onboarding',
|
|
@@ -506,7 +508,12 @@ function getTradingProviderHint(providerId) {
|
|
|
506
508
|
'deposit_hyperliquid_staking',
|
|
507
509
|
'claim_hyperliquid_testnet_faucet',
|
|
508
510
|
],
|
|
509
|
-
statusActions: [
|
|
511
|
+
statusActions: [
|
|
512
|
+
'get_hyperliquid_funding_status',
|
|
513
|
+
'get_hyperliquid_setup_status',
|
|
514
|
+
'get_hyperliquid_builder_fee_status',
|
|
515
|
+
'get_hyperliquid_referral_status',
|
|
516
|
+
],
|
|
510
517
|
credentialType: 'hyperliquid_api_wallet',
|
|
511
518
|
credentialUx:
|
|
512
519
|
'Thirdfy manages Hyperliquid API-wallet setup for normal users. Delegated writes require encrypted privateKey-backed hyperliquid_api_wallet credentials; walletAddress-only records are rejected until Privy walletId-backed Hyperliquid signing ships.',
|
|
@@ -533,7 +540,7 @@ function getTradingProviderHint(providerId) {
|
|
|
533
540
|
laneCompatibility:
|
|
534
541
|
'Use self only for setup signatures or Arbitrum funding transactions. Perps orders should use thirdfy, hybrid, or agent_wallet.',
|
|
535
542
|
setupExample:
|
|
536
|
-
'actions --provider hyperliquid -> get_hyperliquid_onboarding_plan -> prepare_hyperliquid_onboarding -> get_bridge_quote/execute_bridge if source is Base -> deposit_hyperliquid_bridge on 42161 -> approve_hyperliquid_agent -> approve_hyperliquid_builder_fee if required -> get_hyperliquid_setup_status',
|
|
543
|
+
'actions --provider hyperliquid -> get_hyperliquid_funding_status -> get_hyperliquid_onboarding_plan -> prepare_hyperliquid_onboarding -> get_bridge_quote/execute_bridge if source is Base -> deposit_hyperliquid_bridge on 42161 -> approve_hyperliquid_agent -> approve_hyperliquid_builder_fee if required -> get_hyperliquid_setup_status',
|
|
537
544
|
example:
|
|
538
545
|
'thirdfy-agent actions --provider hyperliquid && thirdfy-agent preflight --action place_hyperliquid_perps_order --params \'{"coin":"ETH","isBuy":true,"size":0.01,"limitPx":3500,"orderType":"market"}\'',
|
|
539
546
|
};
|
|
@@ -4002,6 +4009,7 @@ function inferActionProvider(action) {
|
|
|
4002
4009
|
'get-hyperliquid-user-state': 'hyperliquid',
|
|
4003
4010
|
'get-hyperliquid-open-orders': 'hyperliquid',
|
|
4004
4011
|
'get-hyperliquid-setup-status': 'hyperliquid',
|
|
4012
|
+
'get-hyperliquid-funding-status': 'hyperliquid',
|
|
4005
4013
|
'get-hyperliquid-onboarding-plan': 'hyperliquid',
|
|
4006
4014
|
'prepare-hyperliquid-onboarding': 'hyperliquid',
|
|
4007
4015
|
'claim-hyperliquid-testnet-faucet': 'hyperliquid',
|