@thirdfy/agent-cli 0.1.35 → 0.1.36

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,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.36] - 2026-05-16
8
+
9
+ ### Added
10
+
11
+ - Hyperliquid perps cancel and expanded Bitfinex/Hyperliquid discovery hints in `thirdfy-agent actions`, plus preflight routing tests aligned with the Thirdfy action catalog.
12
+
7
13
  ## [0.1.35] - 2026-05-14
8
14
 
9
15
  ### Added
package/README.md CHANGED
@@ -40,7 +40,7 @@ npx @thirdfy/agent-cli --help
40
40
 
41
41
  ## Release notes
42
42
 
43
- Version history and highlights: [CHANGELOG.md](./CHANGELOG.md). Highlights through **v0.1.31** include provider discovery parity, portfolio analytics, managed-wallet swap normalization, and **self/build-tx** swap human-decimal `amountIn` parity when using `amountInHuman` + `tokenInDecimals`.
43
+ Version history and highlights: [CHANGELOG.md](./CHANGELOG.md). **v0.1.35** extends `thirdfy-agent actions` hints for Polymarket Gamma-style discovery (`gamma_search_*` where catalog-backed) and legacy `search_polymarket` / `get_polymarket_*` reads, with public docs aligned to the deposit-wallet (pUSD / POLY_1271) operator path. 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`.
44
44
 
45
45
  **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.
46
46
 
@@ -406,7 +406,7 @@ npm run e2e:managed:delegation:parity
406
406
 
407
407
  ## Release
408
408
 
409
- Version history and user-facing notes: [CHANGELOG.md](./CHANGELOG.md) (for example [v0.1.24](https://github.com/thirdfy/agent-cli/releases/tag/v0.1.24) — npm README and discovery docs aligned with MCP).
409
+ Version history and user-facing notes: [CHANGELOG.md](./CHANGELOG.md) (for example [v0.1.35](https://github.com/thirdfy/agent-cli/releases/tag/v0.1.35) — Polymarket Gamma discovery hints and public docs; keep npm README, `CHANGELOG.md`, and MCP provider summaries in sync when discovery surfaces change).
410
410
 
411
411
  ```bash
412
412
  npm version patch
@@ -434,6 +434,7 @@ function getTradingProviderHint(providerId) {
434
434
  ],
435
435
  orderManagementActions: [
436
436
  'place_hyperliquid_perps_order',
437
+ 'cancel_hyperliquid_perps_order',
437
438
  'get_hyperliquid_open_orders',
438
439
  ],
439
440
  setupActions: [
@@ -482,6 +483,38 @@ function getTradingProviderHint(providerId) {
482
483
  '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"}\'',
483
484
  };
484
485
  }
486
+ if (provider === 'bitfinex') {
487
+ return {
488
+ provider,
489
+ category: 'cex_funding',
490
+ canonicalReadAction: 'get_bitfinex_funding_ticker',
491
+ canonicalWriteAction: 'submit_bitfinex_funding_offer',
492
+ readActions: [
493
+ 'get_bitfinex_funding_ticker',
494
+ 'get_bitfinex_funding_stats_hist',
495
+ 'get_bitfinex_funding_book',
496
+ 'get_bitfinex_funding_info',
497
+ 'get_bitfinex_wallets',
498
+ 'list_bitfinex_funding_offers',
499
+ 'list_bitfinex_funding_credits',
500
+ ],
501
+ orderManagementActions: [
502
+ 'submit_bitfinex_funding_offer',
503
+ 'cancel_bitfinex_funding_offer',
504
+ 'submit_bitfinex_order',
505
+ 'update_bitfinex_order',
506
+ 'cancel_bitfinex_order',
507
+ ],
508
+ credentialType: 'bitfinex_api_key',
509
+ credentialRef: 'bitfinex:funding-primary',
510
+ credentialUx:
511
+ 'Save and verify Bitfinex funding credentials in EarnClaw/Thirdfy first. MCP/CLI order intents reference credentialRef only; raw keys are never sent through agentRun.',
512
+ laneCompatibility:
513
+ 'Bitfinex CEX writes require thirdfy, hybrid, or agent_wallet so Thirdfy can inject stored credentials and run policy/preflight. Reads and setup discovery can be listed without raw credentials.',
514
+ example:
515
+ 'thirdfy-agent actions --provider bitfinex && thirdfy-agent run --run-mode thirdfy --action submit_bitfinex_funding_offer --params \'{"symbol":"fUSD","amount":"100","rate":"0.0002","period":2,"credentialRef":"bitfinex:funding-primary"}\'',
516
+ };
517
+ }
485
518
  if (provider === 'polymarket') {
486
519
  return {
487
520
  provider,
@@ -701,6 +734,8 @@ function formatProviderUnknownActionHint(providerHint) {
701
734
  const OFFCHAIN_VENUE_ORDER_ACTIONS = new Set([
702
735
  'place_hyperliquid_perps_order',
703
736
  'place-hyperliquid-perps-order',
737
+ 'cancel_hyperliquid_perps_order',
738
+ 'cancel-hyperliquid-perps-order',
704
739
  'place_polymarket_order',
705
740
  'place-polymarket-order',
706
741
  ]);
@@ -3516,6 +3551,7 @@ function inferActionProvider(action) {
3516
3551
  'deposit-hyperliquid-staking': 'hyperliquid',
3517
3552
  'deposit-hyperliquid-bridge': 'hyperliquid',
3518
3553
  'place-hyperliquid-perps-order': 'hyperliquid',
3554
+ 'cancel-hyperliquid-perps-order': 'hyperliquid',
3519
3555
  'get-perps-markets': 'hyperliquid',
3520
3556
  'get-perps-account': 'hyperliquid',
3521
3557
  'get-perps-position': 'hyperliquid',
@@ -3562,6 +3598,7 @@ function inferActionProvider(action) {
3562
3598
  };
3563
3599
  if (knownMap[key]) return knownMap[key];
3564
3600
  if (key.includes('hyperliquid')) return 'hyperliquid';
3601
+ if (key.includes('bitfinex')) return 'bitfinex';
3565
3602
  if (key.includes('polymarket') || key.includes('prediction')) return 'polymarket';
3566
3603
  if (key.includes('vaults-fyi')) return 'vaults-fyi';
3567
3604
  if (key.includes('yield-xyz')) return 'yield-xyz';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thirdfy/agent-cli",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "Thirdfy Agent CLI for onboarding, governance preflight, execute-intent, and status polling.",
5
5
  "type": "module",
6
6
  "bin": {