suzi-cli 0.1.1 → 0.1.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.
@@ -5,159 +5,208 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.registerListToolsCommand = registerListToolsCommand;
7
7
  const chalk_1 = __importDefault(require("chalk"));
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const path_1 = __importDefault(require("path"));
10
+ const os_1 = __importDefault(require("os"));
8
11
  const ui_1 = require("../utils/ui");
9
- const PROTOCOLS = [
10
- {
11
- name: 'polymarket',
12
- description: 'Prediction markets trading on Polygon',
13
- chain: 'EVM',
14
- actions: [
15
- { name: 'place_order', type: 'write', description: 'Place a limit or market order' },
16
- { name: 'cancel_order', type: 'write', description: 'Cancel a single order' },
17
- { name: 'cancel_all_orders', type: 'write', description: 'Cancel all open orders' },
18
- { name: 'cancel_market_orders', type: 'write', description: 'Cancel orders for a market' },
19
- { name: 'post_orders_batch', type: 'write', description: 'Place multiple orders at once' },
20
- { name: 'set_allowances', type: 'write', description: 'Set token allowances' },
21
- { name: 'split_position', type: 'write', description: 'Split conditional tokens' },
22
- { name: 'merge_positions', type: 'write', description: 'Merge conditional tokens' },
23
- { name: 'redeem_positions', type: 'write', description: 'Redeem resolved positions' },
24
- { name: 'list_markets', type: 'read', description: 'List available markets' },
25
- { name: 'get_market_by_id', type: 'read', description: 'Get market details' },
26
- { name: 'get_market_by_slug', type: 'read', description: 'Get market by slug' },
27
- { name: 'list_events', type: 'read', description: 'List prediction events' },
28
- { name: 'public_search', type: 'read', description: 'Search markets and events' },
29
- { name: 'get_positions', type: 'read', description: 'Get wallet positions' },
30
- { name: 'get_trades', type: 'read', description: 'Get trade history' },
31
- { name: 'get_open_orders', type: 'read', description: 'Get open orders' },
32
- { name: 'get_my_trades', type: 'read', description: 'Get your trade history' },
33
- ],
34
- },
35
- {
36
- name: 'hyperliquid',
37
- description: 'Perpetual futures & spot trading',
38
- chain: 'EVM',
39
- actions: [
40
- { name: 'place_order', type: 'write', description: 'Place a perp order' },
41
- { name: 'cancel_order', type: 'write', description: 'Cancel a perp order' },
42
- { name: 'close_position', type: 'write', description: 'Close an open position' },
43
- { name: 'set_leverage', type: 'write', description: 'Set leverage for a market' },
44
- { name: 'twap_order', type: 'write', description: 'Place a TWAP order' },
45
- { name: 'scaled_orders', type: 'write', description: 'Place scaled orders' },
46
- { name: 'usdc_transfer', type: 'write', description: 'Transfer USDC' },
47
- { name: 'bridge_to_hyperliquid', type: 'write', description: 'Bridge funds in' },
48
- { name: 'bridge_from_hyperliquid', type: 'write', description: 'Bridge funds out' },
49
- { name: 'spot_place_order', type: 'write', description: 'Place a spot order' },
50
- { name: 'spot_cancel_order', type: 'write', description: 'Cancel a spot order' },
51
- { name: 'list_markets', type: 'read', description: 'List perp markets' },
52
- { name: 'get_prices', type: 'read', description: 'Get current prices' },
53
- { name: 'get_positions', type: 'read', description: 'Get open positions' },
54
- { name: 'get_account_info', type: 'read', description: 'Get account state' },
55
- { name: 'spot_get_balances', type: 'read', description: 'Get spot balances' },
56
- { name: 'spot_list_markets', type: 'read', description: 'List spot markets' },
57
- ],
58
- },
59
- {
60
- name: 'solana',
61
- description: 'Solana blockchain read operations',
62
- chain: 'SOL',
63
- actions: [
64
- { name: 'get_native_balance', type: 'read', description: 'Get SOL balance' },
65
- { name: 'get_token_balance', type: 'read', description: 'Get SPL token balance' },
66
- ],
67
- },
68
- {
69
- name: 'meteora',
70
- description: 'Meteora DLMM liquidity pools on Solana',
71
- chain: 'SOL',
72
- actions: [
73
- { name: 'add_liquidity', type: 'write', description: 'Add liquidity to a pool' },
74
- { name: 'remove_liquidity', type: 'write', description: 'Remove liquidity' },
75
- { name: 'close_position', type: 'write', description: 'Close LP position' },
76
- { name: 'list_pools', type: 'read', description: 'List available pools' },
77
- { name: 'get_pool_info', type: 'read', description: 'Get pool details' },
78
- { name: 'get_active_bin', type: 'read', description: 'Get active bin price' },
79
- { name: 'get_all_positions', type: 'read', description: 'Get your LP positions' },
80
- ],
81
- },
82
- {
83
- name: 'dflow',
84
- description: 'DEX aggregator swaps on Solana',
85
- chain: 'SOL',
86
- actions: [
87
- { name: 'swap', type: 'write', description: 'Execute a token swap' },
88
- { name: 'get_quote', type: 'read', description: 'Get a swap quote' },
89
- ],
90
- },
91
- {
92
- name: 'suzi',
93
- description: 'Platform utilities (storage, logging, notifications)',
94
- chain: 'N/A',
95
- actions: [
96
- { name: 'set_to_store', type: 'write', description: 'Save key-value data' },
97
- { name: 'get_from_store', type: 'read', description: 'Read stored data' },
98
- { name: 'log', type: 'write', description: 'Write to agent logs' },
99
- { name: 'notify', type: 'write', description: 'Send notification (Telegram)' },
100
- { name: 'get_evm_address', type: 'read', description: 'Get agent EVM wallet' },
101
- { name: 'get_svm_address', type: 'read', description: 'Get agent SOL wallet' },
102
- { name: 'sleep', type: 'write', description: 'Pause execution' },
103
- ],
104
- },
105
- ];
12
+ const api_1 = require("../lib/api");
13
+ const CACHE_DIR = path_1.default.join(os_1.default.homedir(), '.suzi');
14
+ const CACHE_PATH = path_1.default.join(CACHE_DIR, 'actions-cache.json');
15
+ const CACHE_TTL = 60 * 60 * 1000; // 1 hour
16
+ function readCache() {
17
+ try {
18
+ if (fs_1.default.existsSync(CACHE_PATH)) {
19
+ const raw = fs_1.default.readFileSync(CACHE_PATH, 'utf-8');
20
+ return JSON.parse(raw);
21
+ }
22
+ }
23
+ catch {
24
+ // Corrupted cache ignore
25
+ }
26
+ return null;
27
+ }
28
+ function writeCache(data) {
29
+ try {
30
+ if (!fs_1.default.existsSync(CACHE_DIR)) {
31
+ fs_1.default.mkdirSync(CACHE_DIR, { recursive: true });
32
+ }
33
+ fs_1.default.writeFileSync(CACHE_PATH, JSON.stringify(data, null, 2));
34
+ }
35
+ catch {
36
+ // Best-effort caching — don't fail the command if disk write fails
37
+ }
38
+ }
39
+ async function fetchActions() {
40
+ const res = await (0, api_1.get)('/api/actions');
41
+ if (!res.ok || !res.data?.ok) {
42
+ throw new Error(res.data?.error ?? `API returned status ${res.status}`);
43
+ }
44
+ return res.data.actions;
45
+ }
46
+ async function getActions(forceRefresh = false) {
47
+ if (!forceRefresh) {
48
+ const cache = readCache();
49
+ if (cache && Date.now() - cache.fetchedAt < CACHE_TTL) {
50
+ return cache.actions;
51
+ }
52
+ }
53
+ const actions = await fetchActions();
54
+ writeCache({ fetchedAt: Date.now(), actions });
55
+ return actions;
56
+ }
57
+ function cacheAge() {
58
+ const cache = readCache();
59
+ if (!cache)
60
+ return null;
61
+ const mins = Math.floor((Date.now() - cache.fetchedAt) / 60000);
62
+ if (mins < 1)
63
+ return 'just now';
64
+ if (mins < 60)
65
+ return `${mins}m ago`;
66
+ return `${Math.floor(mins / 60)}h ${mins % 60}m ago`;
67
+ }
68
+ function chainBadge(actions) {
69
+ const chains = new Set();
70
+ for (const action of actions) {
71
+ for (const w of action.requires?.wallet ?? []) {
72
+ chains.add(w);
73
+ }
74
+ }
75
+ const badges = [];
76
+ if (chains.has('evm'))
77
+ badges.push(ui_1.colors.evm('[EVM]'));
78
+ if (chains.has('svm'))
79
+ badges.push(ui_1.colors.sol('[SOL]'));
80
+ return badges.length > 0 ? badges.join(' ') : ui_1.colors.muted('[N/A]');
81
+ }
82
+ function isReadAction(name) {
83
+ const actionName = name.includes('.') ? name.split('.')[1] : name;
84
+ return /^(get_|list_|public_|search)/.test(actionName);
85
+ }
86
+ function groupByProtocol(actions) {
87
+ const groups = new Map();
88
+ for (const action of actions) {
89
+ const group = groups.get(action.protocol) ?? [];
90
+ group.push(action);
91
+ groups.set(action.protocol, group);
92
+ }
93
+ return groups;
94
+ }
106
95
  function registerListToolsCommand(program) {
107
- program
96
+ const cmd = program
108
97
  .command('list-tools')
109
98
  .alias('tools')
110
99
  .description('List all available protocols and actions')
111
100
  .option('--protocol <name>', 'Filter by protocol name')
112
101
  .option('--verbose', 'Show all actions per protocol')
113
- .action((opts) => {
114
- (0, ui_1.header)('Available Tools');
115
- console.log();
116
- const filtered = opts.protocol
117
- ? PROTOCOLS.filter((p) => p.name === opts.protocol)
118
- : PROTOCOLS;
119
- if (filtered.length === 0) {
120
- (0, ui_1.info)(`Protocol "${opts.protocol}" not found.`);
121
- (0, ui_1.info)(`Available: ${PROTOCOLS.map((p) => p.name).join(', ')}`);
102
+ .option('--schema <action>', 'Show JSON schema for a specific action (requires --protocol)')
103
+ .action(async (opts) => {
104
+ if (!(0, ui_1.requireAuth)())
122
105
  return;
123
- }
124
- for (const protocol of filtered) {
125
- const chainBadge = protocol.chain === 'SOL'
126
- ? ui_1.colors.sol(`[${protocol.chain}]`)
127
- : protocol.chain === 'EVM'
128
- ? ui_1.colors.evm(`[${protocol.chain}]`)
129
- : ui_1.colors.muted(`[${protocol.chain}]`);
130
- console.log(` ${chalk_1.default.bold(protocol.name)} ${chainBadge}`);
131
- console.log(` ${ui_1.colors.muted(protocol.description)}`);
132
- if (opts.verbose || opts.protocol) {
133
- const readActions = protocol.actions.filter((a) => a.type === 'read');
134
- const writeActions = protocol.actions.filter((a) => a.type === 'write');
135
- if (writeActions.length > 0) {
136
- console.log();
137
- console.log(` ${chalk_1.default.yellow('Write Actions:')}`);
138
- for (const action of writeActions) {
139
- console.log(` ${ui_1.colors.highlight(action.name)} ${ui_1.colors.muted(action.description)}`);
106
+ try {
107
+ const actions = await getActions();
108
+ const grouped = groupByProtocol(actions);
109
+ // --schema: show schema for a single action
110
+ if (opts.schema) {
111
+ if (!opts.protocol) {
112
+ (0, ui_1.error)('--schema requires --protocol. Example: suzi list-tools --protocol polymarket --schema place_order');
113
+ return;
114
+ }
115
+ const protocolActions = grouped.get(opts.protocol);
116
+ if (!protocolActions) {
117
+ (0, ui_1.error)(`Protocol "${opts.protocol}" not found.`);
118
+ (0, ui_1.info)(`Available: ${Array.from(grouped.keys()).join(', ')}`);
119
+ return;
120
+ }
121
+ const fullName = `${opts.protocol}.${opts.schema}`;
122
+ const match = protocolActions.find((a) => a.name === fullName);
123
+ if (!match) {
124
+ (0, ui_1.error)(`Action "${opts.schema}" not found in ${opts.protocol}.`);
125
+ (0, ui_1.info)('Available actions:');
126
+ for (const a of protocolActions) {
127
+ const short = a.name.includes('.') ? a.name.split('.')[1] : a.name;
128
+ console.log(` ${ui_1.colors.highlight(short)} ${ui_1.colors.muted(a.description)}`);
140
129
  }
130
+ return;
141
131
  }
142
- if (readActions.length > 0) {
143
- console.log();
144
- console.log(` ${chalk_1.default.cyan('Read Actions:')}`);
145
- for (const action of readActions) {
146
- console.log(` ${ui_1.colors.highlight(action.name)} ${ui_1.colors.muted(action.description)}`);
132
+ console.log(JSON.stringify(match.parameters, null, 2));
133
+ return;
134
+ }
135
+ // Default: list protocols and actions
136
+ (0, ui_1.header)('Available Tools');
137
+ console.log();
138
+ const protocols = opts.protocol
139
+ ? [[opts.protocol, grouped.get(opts.protocol)]]
140
+ : Array.from(grouped.entries());
141
+ if (opts.protocol && !grouped.has(opts.protocol)) {
142
+ (0, ui_1.error)(`Protocol "${opts.protocol}" not found.`);
143
+ (0, ui_1.info)(`Available: ${Array.from(grouped.keys()).join(', ')}`);
144
+ return;
145
+ }
146
+ for (const [protocol, protocolActions] of protocols) {
147
+ if (!protocolActions)
148
+ continue;
149
+ const badge = chainBadge(protocolActions);
150
+ console.log(` ${chalk_1.default.bold(protocol)} ${badge}`);
151
+ const showDetails = opts.verbose || opts.protocol;
152
+ if (showDetails) {
153
+ const readActions = protocolActions.filter((a) => isReadAction(a.name));
154
+ const writeActions = protocolActions.filter((a) => !isReadAction(a.name));
155
+ if (writeActions.length > 0) {
156
+ console.log();
157
+ console.log(` ${chalk_1.default.yellow('Write Actions:')}`);
158
+ for (const action of writeActions) {
159
+ const shortName = action.name.includes('.') ? action.name.split('.')[1] : action.name;
160
+ console.log(` ${ui_1.colors.highlight(shortName)} ${ui_1.colors.muted(action.description)}`);
161
+ }
147
162
  }
163
+ if (readActions.length > 0) {
164
+ console.log();
165
+ console.log(` ${chalk_1.default.cyan('Read Actions:')}`);
166
+ for (const action of readActions) {
167
+ const shortName = action.name.includes('.') ? action.name.split('.')[1] : action.name;
168
+ console.log(` ${ui_1.colors.highlight(shortName)} ${ui_1.colors.muted(action.description)}`);
169
+ }
170
+ }
171
+ }
172
+ else {
173
+ const writeCount = protocolActions.filter((a) => !isReadAction(a.name)).length;
174
+ const readCount = protocolActions.filter((a) => isReadAction(a.name)).length;
175
+ console.log(` ${ui_1.colors.muted(`${writeCount} write`)} + ${ui_1.colors.muted(`${readCount} read`)} actions`);
148
176
  }
177
+ console.log();
149
178
  }
150
- else {
151
- const writeCount = protocol.actions.filter((a) => a.type === 'write').length;
152
- const readCount = protocol.actions.filter((a) => a.type === 'read').length;
153
- console.log(` ${ui_1.colors.muted(`${writeCount} write`)} + ${ui_1.colors.muted(`${readCount} read`)} actions`);
179
+ const totalActions = actions.length;
180
+ (0, ui_1.divider)();
181
+ (0, ui_1.info)(`${grouped.size} protocols, ${totalActions} total actions`);
182
+ const age = cacheAge();
183
+ if (age) {
184
+ (0, ui_1.info)(`Cached ${age}. Run ${chalk_1.default.cyan('suzi list-tools reload')} to refresh.`);
154
185
  }
155
- console.log();
186
+ if (!opts.verbose && !opts.protocol) {
187
+ (0, ui_1.info)('Use --verbose or --protocol <name> for details.');
188
+ }
189
+ (0, ui_1.info)(`Use ${chalk_1.default.cyan('suzi list-tools --protocol <name> --schema <action>')} to view schema.`);
190
+ }
191
+ catch (err) {
192
+ (0, ui_1.error)(`Failed to fetch actions: ${err.message}`);
193
+ }
194
+ });
195
+ cmd
196
+ .command('reload')
197
+ .description('Force-refresh the actions cache from the API')
198
+ .action(async () => {
199
+ if (!(0, ui_1.requireAuth)())
200
+ return;
201
+ try {
202
+ (0, ui_1.info)('Fetching actions from API...');
203
+ const actions = await getActions(true);
204
+ const grouped = groupByProtocol(actions);
205
+ (0, ui_1.info)(`Cache refreshed: ${grouped.size} protocols, ${actions.length} actions.`);
206
+ }
207
+ catch (err) {
208
+ (0, ui_1.error)(`Failed to refresh: ${err.message}`);
156
209
  }
157
- const totalActions = PROTOCOLS.reduce((sum, p) => sum + p.actions.length, 0);
158
- (0, ui_1.divider)();
159
- (0, ui_1.info)(`${PROTOCOLS.length} protocols, ${totalActions} total actions`);
160
- (0, ui_1.info)('Use --verbose or --protocol <name> for details.');
161
210
  });
162
211
  }
163
212
  //# sourceMappingURL=list-tools.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-tools.js","sourceRoot":"","sources":["../../src/commands/list-tools.ts"],"names":[],"mappings":";;;;;AA8GA,4DAmEC;AAhLD,kDAA0B;AAE1B,oCAA4D;AAS5D,MAAM,SAAS,GAAmB;IAChC;QACE,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,uCAAuC;QACpD,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,+BAA+B,EAAE;YACpF,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE;YAC7E,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE;YACnF,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE;YAC1F,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,+BAA+B,EAAE;YAC1F,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE;YAC9E,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE;YAClF,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,0BAA0B,EAAE;YACnF,EAAE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
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/commands/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkDpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6H5D"}