@thirdfy/agent-cli 0.2.14 → 0.2.15

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.2.15] - 2026-06-26
8
+
9
+ ### Added
10
+
11
+ - Hummingbot API provider: `hummingbot` command group (`status`, `connectors`, `executor-schema`, `executor-create`) and provider runbook [`docs/providers/hummingbot.md`](./docs/providers/hummingbot.md). Pairs with Thirdfy API **v3.6.0+** (governed `/api/v1/agent/hummingbot/*` proxy) and `thirdfy-mcp` **v0.0.64+**.
12
+
7
13
  ## [0.2.14] - 2026-06-24
8
14
 
9
15
  ### Changed
package/README.md CHANGED
@@ -40,9 +40,9 @@ Run without global install:
40
40
  npx @thirdfy/agent-cli --help
41
41
  ```
42
42
 
43
- ## What's new in v0.2.14
43
+ ## What's new in v0.2.15
44
44
 
45
- - HTTP client retries once on Thirdfy API **502/503/504** and client timeouts (bounded `AbortController`), so PostgREST outages surface as transient failures instead of hanging Hermes read cycles. Pairs with Thirdfy API **v3.5.6+**.
45
+ - `hummingbot` command group for governed Condor CEX executor ops: `status`, `connectors`, `executor-schema`, `executor-create`. Provider runbook at [`docs/providers/hummingbot.md`](./docs/providers/hummingbot.md). Pairs with Thirdfy API **v3.6.0+** and `thirdfy-mcp` **v0.0.64+**.
46
46
 
47
47
  Older versions: see [CHANGELOG.md](./CHANGELOG.md) and [GitHub Releases](https://github.com/thirdfy/agent-cli/releases).
48
48
 
@@ -304,6 +304,7 @@ Provider and venue guides are kept outside `README` so this page stays stable as
304
304
  - Discovery: `catalogs list`, `actions` (optional `--provider`, `--chain-id`; see [`docs/command-reference.md`](./docs/command-reference.md) for trading vs earn vs prediction providers and case-insensitive matching)
305
305
  - Execution: `preflight`, `run`, `intent-status`, `jeff preflight`, `jeff trade`, `jeff status`
306
306
  - Polymarket: `polymarket status`, `polymarket setup`, `polymarket dry-run`
307
+ - Hummingbot: `hummingbot status`, `hummingbot connectors`, `hummingbot executor-schema`, `hummingbot executor-create`
307
308
  - Managed signer execution: `wallet execute`, `wallet sign`, `wallet submit`, `agent run`
308
309
  - Profiles: `profile init`, `profile use`, `profile show`, `whoami`
309
310
  - 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`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thirdfy/agent-cli",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "Thirdfy Agent CLI for onboarding, governance preflight, execute-intent, and status polling.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli/help.mjs CHANGED
@@ -38,6 +38,10 @@ Core commands:
38
38
  thirdfy-agent polymarket status [--agent-key <key>] [--amount-pusd <n>] [--json]
39
39
  thirdfy-agent polymarket setup [--agent-key <key>] [--params <json>] [--json]
40
40
  thirdfy-agent polymarket dry-run --params <json> [--action place_polymarket_order] [--json]
41
+ thirdfy-agent hummingbot status [--org-id <id>] [--runtime-id <id>] [--agent-api-key <key>] [--json]
42
+ thirdfy-agent hummingbot connectors [--org-id <id>] [--json]
43
+ thirdfy-agent hummingbot executor-schema [--org-id <id>] [--executor-type position_executor] [--json]
44
+ thirdfy-agent hummingbot executor-create --agent-api-key <key> --user-did <did> [--org-id <id>] [--connector <name>] [--pair <pair>] [--params <json>] [--json]
41
45
  thirdfy-agent wallet sign --agent-api-key <key> --action <id> --params <json> [--chain-id <id>] [--json]
42
46
  thirdfy-agent wallet submit --signed-tx-hex <hex> [--chain-id <id>] [--rpc-url <url>] [--json]
43
47
  thirdfy-agent agent run --agent-api-key <key> --action <id> --params <json> [--signer-method managed_wallet_server|byow|fanout_intent] [--strategy-intent single_wallet|fanout] [--run-mode <mode>] [--user-did <did>] [--json]
@@ -92,6 +92,31 @@ export const CLI_MANIFEST = [
92
92
  options: ['auth', 'execution', 'polymarket'],
93
93
  description: 'Polymarket dry-run preflight',
94
94
  },
95
+ {
96
+ path: ['hummingbot', 'status'],
97
+ handler: 'commandHummingbotStatus',
98
+ options: ['auth', 'hummingbot'],
99
+ description: 'Hummingbot instance health summary for an org',
100
+ },
101
+ {
102
+ path: ['hummingbot', 'connectors'],
103
+ handler: 'commandHummingbotConnectors',
104
+ options: ['auth', 'hummingbot'],
105
+ description: 'List Hummingbot connectors for an org HB instance',
106
+ },
107
+ {
108
+ path: ['hummingbot', 'executor-schema'],
109
+ handler: 'commandHummingbotExecutorSchema',
110
+ options: ['auth', 'hummingbot'],
111
+ description: 'Fetch Hummingbot executor config schema',
112
+ },
113
+ {
114
+ path: ['hummingbot', 'executor-create'],
115
+ handler: 'commandHummingbotExecutorCreate',
116
+ tier: 'online',
117
+ options: ['auth', 'execution', 'hummingbot'],
118
+ description: 'Governed Hummingbot executor create via Thirdfy proxy',
119
+ },
95
120
  // online
96
121
  {
97
122
  path: ['agent', 'run'],
@@ -0,0 +1,8 @@
1
+ export function attachHummingbotOptions(cmd) {
2
+ return cmd
3
+ .option('--org-id <id>', 'Hummingbot org id (default: HUMMINGBOT_ORG_ID or default)')
4
+ .option('--runtime-id <id>', 'EarnClaw runtime id for health summary scoping')
5
+ .option('--executor-type <type>', 'Hummingbot executor type')
6
+ .option('--connector <name>', 'Hummingbot connector name')
7
+ .option('--pair <pair>', 'Hummingbot trading pair');
8
+ }
@@ -8,6 +8,7 @@ import { attachBootstrapOptions } from './bootstrap.mjs';
8
8
  import { attachCredentialsOptions } from './credentials.mjs';
9
9
  import { attachAnalyticsOptions } from './analytics.mjs';
10
10
  import { attachPolymarketOptions } from './polymarket.mjs';
11
+ import { attachHummingbotOptions } from './hummingbot.mjs';
11
12
  import { attachAgentRegisterOptions } from './agent.mjs';
12
13
  import { attachChainOptions } from './chains.mjs';
13
14
 
@@ -21,6 +22,7 @@ const BUNDLES = {
21
22
  credentials: attachCredentialsOptions,
22
23
  analytics: attachAnalyticsOptions,
23
24
  polymarket: attachPolymarketOptions,
25
+ hummingbot: attachHummingbotOptions,
24
26
  agent: attachAgentRegisterOptions,
25
27
  chains: attachChainOptions,
26
28
  };
@@ -0,0 +1,79 @@
1
+ import { apiGet, apiPost } from '../core/http.mjs';
2
+ import { parseJsonFlag } from '../core/args.mjs';
3
+ import { resolveConfigAgentKey } from './polymarket.mjs';
4
+
5
+ function orgIdFromFlags(flags) {
6
+ return String(flags.orgId || flags.org_id || process.env.HUMMINGBOT_ORG_ID || 'default').trim();
7
+ }
8
+
9
+ function agentApiKeyFromFlags(flags, ctx) {
10
+ return String(flags.agentApiKey || flags.agent_api_key || ctx?.agentApiKey || '').trim();
11
+ }
12
+
13
+ export function createHummingbotCommands({ printEnvelope }) {
14
+ async function commandHummingbotStatus(ctx, flags) {
15
+ const orgId = orgIdFromFlags(flags);
16
+ const agentApiKey = agentApiKeyFromFlags(flags, ctx);
17
+ const query = new URLSearchParams({ orgId });
18
+ if (flags.runtimeId) query.set('runtimeId', String(flags.runtimeId));
19
+ const headers = agentApiKey ? { 'x-agent-api-key': agentApiKey } : {};
20
+ const data = await apiGet(ctx, `/api/v1/agent/hummingbot/health/summary?${query.toString()}`, headers);
21
+ printEnvelope({ success: true, data, meta: { apiBase: ctx.apiBase, orgId } });
22
+ }
23
+
24
+ async function commandHummingbotConnectors(ctx, flags) {
25
+ const orgId = orgIdFromFlags(flags);
26
+ const data = await apiGet(ctx, `/api/v1/agent/hummingbot/connectors?orgId=${encodeURIComponent(orgId)}`);
27
+ printEnvelope({ success: true, data, meta: { apiBase: ctx.apiBase, orgId } });
28
+ }
29
+
30
+ async function commandHummingbotExecutorSchema(ctx, flags) {
31
+ const orgId = orgIdFromFlags(flags);
32
+ const executorType = String(flags.executorType || flags.executor_type || 'position_executor');
33
+ const data = await apiGet(
34
+ ctx,
35
+ `/api/v1/agent/hummingbot/executors/types/${encodeURIComponent(executorType)}/config?orgId=${encodeURIComponent(orgId)}`
36
+ );
37
+ printEnvelope({ success: true, data, meta: { apiBase: ctx.apiBase, orgId, executorType } });
38
+ }
39
+
40
+ async function commandHummingbotExecutorCreate(ctx, flags) {
41
+ const orgId = orgIdFromFlags(flags);
42
+ const agentApiKey = agentApiKeyFromFlags(flags, ctx);
43
+ const userDid = String(flags.userDid || flags.user_did || '').trim();
44
+ const params = parseJsonFlag(flags, 'params') || {};
45
+ if (!agentApiKey || !userDid) {
46
+ printEnvelope({
47
+ success: false,
48
+ code: 'MISSING_AUTH',
49
+ message: 'Provide --agent-api-key and --user-did for governed executor create',
50
+ data: {},
51
+ });
52
+ process.exit(1);
53
+ }
54
+ const body = {
55
+ ...params,
56
+ orgId,
57
+ userDid,
58
+ connector_name: flags.connector || params.connector_name,
59
+ trading_pair: flags.pair || params.trading_pair,
60
+ estimatedAmountUsd: Number(flags.estimatedAmountUsd || params.estimatedAmountUsd || 0),
61
+ type: flags.executorType || flags.executor_type || params.type || 'position_executor',
62
+ };
63
+ const data = await apiPost(
64
+ ctx,
65
+ '/api/v1/agent/hummingbot/executors',
66
+ body,
67
+ { 'x-agent-api-key': agentApiKey }
68
+ );
69
+ printEnvelope({ success: true, data, meta: { apiBase: ctx.apiBase, orgId } });
70
+ }
71
+
72
+ return {
73
+ commandHummingbotStatus,
74
+ commandHummingbotConnectors,
75
+ commandHummingbotExecutorSchema,
76
+ commandHummingbotExecutorCreate,
77
+ resolveHummingbotAgentKey: resolveConfigAgentKey,
78
+ };
79
+ }
@@ -1,6 +1,7 @@
1
1
  export { createPolymarketCommands, resolveConfigAgentKey } from './polymarket.mjs';
2
2
  export { createHyperliquidHelpers } from './hyperliquid.mjs';
3
3
  export { createLighterHelpers } from './lighter.mjs';
4
+ export { createHummingbotCommands } from './hummingbot.mjs';
4
5
  export { createExecuteCommands } from './execute.mjs';
5
6
  export { createWalletCommands } from './wallet.mjs';
6
7
  export { createDelegationCommands } from './delegation.mjs';
@@ -1,5 +1,6 @@
1
1
  import { negotiateCapabilities } from '../core/http.mjs';
2
2
  import { createPolymarketCommands } from '../commands/polymarket.mjs';
3
+ import { createHummingbotCommands } from '../commands/hummingbot.mjs';
3
4
  import { createHyperliquidHelpers } from '../commands/hyperliquid.mjs';
4
5
  import { createLighterHelpers } from '../commands/lighter.mjs';
5
6
  import { createExecuteCommands } from '../commands/execute.mjs';
@@ -142,6 +143,10 @@ export function createRuntimeHandlers(deps) {
142
143
  printEnvelope,
143
144
  });
144
145
 
146
+ const __hummingbot = createHummingbotCommands({
147
+ printEnvelope,
148
+ });
149
+
145
150
  const __bootstrap = createBootstrapCommands({
146
151
  printEnvelope,
147
152
  extractAgentApiKey,
@@ -160,6 +165,7 @@ export function createRuntimeHandlers(deps) {
160
165
  ...__wallet,
161
166
  ...__delegation,
162
167
  ...__polymarket,
168
+ ...__hummingbot,
163
169
  ...__bootstrap,
164
170
  ...__discovery,
165
171
  ...__telemetry,