@trinaryex/mcp 3.9.0 → 4.0.0

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.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { ok } from '../result.js';
3
- import { cursorPagingShape, decimalInt, historyPagingShape, locationPagingShape, objectId, searchPagingShape, suiAddress, } from '../schemas.js';
3
+ import { cursorPagingShape, decimalInt, historyPagingShape, locationPagingShape, objectId, searchPagingShape, suiAddress, u128, } from '../schemas.js';
4
4
  /**
5
5
  * Read tools. Every one of these is a thin delegation to the SDK's read
6
6
  * surface, authenticated by the caller's own API key. No key material, no
@@ -142,14 +142,14 @@ export const readTools = [
142
142
  {
143
143
  name: 'market_nearby_hubs_by_system',
144
144
  title: 'Find hubs near a solar system',
145
- description: 'The same proximity search as market_nearby_hubs, centred on a solar system id or name instead of a hub. Use it when the origin hub is private and publishes no location.',
145
+ description: 'The same proximity search as market_nearby_hubs, centred on a solar system id or name instead of a hub. Use it when the origin hub is private and publishes no location. Prefer the numeric id: names are not yet available for every system, and an unresolvable name fails with SolarSystemNotFound.',
146
146
  kind: 'read',
147
147
  sdkPath: 'market.nearbyHubsBySystem',
148
148
  inputShape: {
149
149
  solarSystem: z
150
150
  .string()
151
151
  .min(1)
152
- .describe('Solar system id or name to search from, e.g. "Nod".'),
152
+ .describe('Solar system id (preferred) or name to search from, e.g. "30000142".'),
153
153
  rangeLy: z
154
154
  .number()
155
155
  .positive()
@@ -223,6 +223,120 @@ export const readTools = [
223
223
  },
224
224
  handler: async (ctx, args) => ok(await ctx.readClient().solarSystemNames(args)),
225
225
  },
226
+ {
227
+ name: 'market_recent_trades',
228
+ title: 'Read the public tape',
229
+ description: 'The latest trades across every item market, newest first — the public tape, not one account’s history (that is orders_trades). At most 50 per page: page back by passing nextCursor as `before`, poll for new trades with `after`. Unlike every other trade read, price, quantity and feeAmount are HUMAN-READABLE decimal strings already scaled by quoteCurrencyDecimals, and feeRateBps is that fill’s own effective taker rate. solarSystemName is null until a player reports it — key on solarSystemId. Costs 50 CU.',
230
+ kind: 'read',
231
+ sdkPath: 'market.recentTrades',
232
+ inputShape: {
233
+ assetId: z
234
+ .string()
235
+ .optional()
236
+ .describe('Only trades of this item type, e.g. "77800".'),
237
+ publicOnly: z
238
+ .boolean()
239
+ .optional()
240
+ .describe('Only trades at hubs that publish their location.'),
241
+ limit: z
242
+ .number()
243
+ .int()
244
+ .positive()
245
+ .max(50)
246
+ .optional()
247
+ .describe('Trades per page (max 50 — the gateway caps it there).'),
248
+ before: historyPagingShape.before,
249
+ after: historyPagingShape.after,
250
+ },
251
+ handler: async (ctx, args) => ok(await ctx.readClient().recentTrades(args)),
252
+ },
253
+ {
254
+ name: 'market_display_prices',
255
+ title: 'Price many items',
256
+ description: 'Display prices for up to 100 items in one call. itemIds alone gives one item-wide price per item; add storageUnitIds for the per-hub price — one id applies to every item, otherwise give exactly one per item, paired by position. This is the PLAIN market price with no trading fee: use it to show or rank value, and orders_fees or market_orderbook to cost an actual trade. `tier` says where each price came from (traded → item → book → estimated → unknown); price is a human-readable decimal and priceRaw the raw quote integer, both strings. Costs 50 CU.',
257
+ kind: 'read',
258
+ sdkPath: 'market.displayPrices',
259
+ inputShape: {
260
+ itemIds: z
261
+ .array(z.string())
262
+ .min(1)
263
+ .max(100)
264
+ .describe('Item asset ids to price (max 100), e.g. ["77800"].'),
265
+ storageUnitIds: z
266
+ .array(objectId)
267
+ .min(1)
268
+ .max(100)
269
+ .optional()
270
+ .describe('Trade hub (or vault collection) ids: one for every item, or one per item in itemIds order.'),
271
+ fallback: z
272
+ .boolean()
273
+ .optional()
274
+ .describe('Per-hub mode only: false disables falling back to the item-wide price when the hub has no pool for an item (default true).'),
275
+ },
276
+ handler: async (ctx, args) => ok(await ctx.readClient().displayPrices(args)),
277
+ },
278
+ {
279
+ name: 'market_display_price',
280
+ title: 'Price one item',
281
+ description: 'The single-item form of market_display_prices: the plain market price (no trading fee) for one item, item-wide or at one hub. Cheaper than the batch for one lookup. Costs 20 CU.',
282
+ kind: 'read',
283
+ sdkPath: 'market.displayPrice',
284
+ inputShape: {
285
+ itemId: z.string().min(1).describe('Item asset id, e.g. "77800".'),
286
+ storageUnitId: objectId
287
+ .optional()
288
+ .describe('Price at this trade hub (or vault collection); omit for the item-wide price.'),
289
+ fallback: z
290
+ .boolean()
291
+ .optional()
292
+ .describe('With storageUnitId: false disables falling back to the item-wide price (default true).'),
293
+ },
294
+ handler: async (ctx, args) => {
295
+ const { itemId, ...opts } = args;
296
+ return ok(await ctx.readClient().displayPrice(itemId, opts));
297
+ },
298
+ },
299
+ {
300
+ name: 'market_hub_economics',
301
+ title: 'Compare hub liquidity',
302
+ description: 'Fee reserve (raw quote units) and open-order depth for up to 200 hubs, as decimal strings, plus how many distinct items have open orders. Use it to rank hubs from market_hub_locations or market_nearby_hubs by how much is actually trading there. Hubs that no longer exist are omitted. Cached upstream for 30 s. Costs 50 CU.',
303
+ kind: 'read',
304
+ sdkPath: 'market.hubEconomics',
305
+ inputShape: {
306
+ hubIds: z
307
+ .array(objectId)
308
+ .min(1)
309
+ .max(200)
310
+ .describe('Trade hub object ids (max 200).'),
311
+ },
312
+ handler: async (ctx, args) => ok(await ctx.readClient().hubEconomics(args)),
313
+ },
314
+ {
315
+ name: 'market_top_pools_by_fees',
316
+ title: 'Rank pools by unclaimed fees',
317
+ description: 'Item pools ranked by unclaimed fee balance, largest first; only pools with a positive balance appear. Amounts are raw quote units as decimal strings, and quoteType is the coin type as indexed — without its 0x prefix, so normalise it before comparing. Pair with prepare_claim_operator_share to claim the operator share. Costs 50 CU.',
318
+ kind: 'read',
319
+ sdkPath: 'market.topPoolsByFees',
320
+ inputShape: {
321
+ limit: z
322
+ .number()
323
+ .int()
324
+ .positive()
325
+ .max(100)
326
+ .optional()
327
+ .describe('Pools to return (default 20, max 100).'),
328
+ },
329
+ handler: async (ctx, args) => ok(await ctx.readClient().topPoolsByFees(args)),
330
+ },
331
+ {
332
+ name: 'market_stats',
333
+ title: 'Get platform statistics',
334
+ description: 'Platform-wide aggregates: trades and active traders by time window, volume per quote currency, top items, organization, shared-storage and pilot totals, and 30-day daily series. A dashboard read — cached upstream for up to 60 s, so do not poll it faster. Costs 50 CU.',
335
+ kind: 'read',
336
+ sdkPath: 'market.stats',
337
+ inputShape: {},
338
+ handler: async (ctx) => ok(await ctx.readClient().stats()),
339
+ },
226
340
  {
227
341
  name: 'spatial_system',
228
342
  title: 'Get a solar system',
@@ -343,35 +457,61 @@ export const readTools = [
343
457
  {
344
458
  name: 'account_resolve',
345
459
  title: 'Resolve a trading account',
346
- description: 'Return the BalanceManager object id for an address, or null when the address has no trading account yet. Pair with prepare_create_account.',
460
+ description: 'Return the TradingAccount object id for an address, or null when the address has no trading account yet. Pair with prepare_create_account.',
347
461
  kind: 'read',
348
462
  sdkPath: 'account.get',
349
463
  inputShape: { address: suiAddress },
350
464
  handler: async (ctx, args) => {
351
465
  const id = await ctx
352
466
  .writeClient(args.address)
353
- .resolveBalanceManagerId(args.address);
354
- return ok({ address: args.address, balanceManagerId: id, exists: !!id });
467
+ .resolveTradingAccountId(args.address);
468
+ return ok({ address: args.address, tradingAccountId: id, exists: !!id });
355
469
  },
356
470
  },
357
471
  {
358
472
  name: 'account_balances_at_hub',
359
473
  title: 'Check balances at a hub',
360
- description: 'Item and currency balances for a trading account at one hub, across wallet, trading account, and hangar.',
474
+ description: 'Item balances at one hub, in up to four sections: `marketplace` (deposited in a trading account), `warehouse` (receipts in a wallet), `hangar` (an owner_cap_id’s hangar) and `orgVaults` (organization receipt vaults). Each section is filled only when its selector is given — name at least one. Items only: CRED lives on the fullnode, so use account_currency_balances for it. Amounts are base units as decimal strings. Costs 50 CU.',
361
475
  kind: 'read',
362
476
  sdkPath: 'balances.atHub',
363
477
  inputShape: {
364
- balanceManagerId: objectId,
365
- storageUnitId: objectId,
478
+ storageUnitId: objectId.describe('Trade hub / storage unit object id; scopes the whole read.'),
479
+ tradingAccountId: objectId
480
+ .optional()
481
+ .describe('Fills `marketplace`: items deposited in this trading account (from account_resolve).'),
482
+ address: suiAddress
483
+ .optional()
484
+ .describe('Fills `warehouse`: this wallet’s item receipts held at the hub.'),
485
+ inventoryKey: objectId
486
+ .optional()
487
+ .describe('Fills `hangar`: the hub or character owner_cap_id selecting the hangar.'),
488
+ vaultIds: z
489
+ .array(objectId)
490
+ .min(1)
491
+ .optional()
492
+ .describe('Fills `orgVaults`: organization receipt vault ids, keyed by id in the answer.'),
493
+ },
494
+ handler: async (ctx, args) => {
495
+ const { storageUnitId, tradingAccountId, address, inventoryKey } = args;
496
+ const vaultIds = args.vaultIds;
497
+ // Every section comes back empty unless its selector is given, so a call
498
+ // naming none would spend 50 CU to learn nothing.
499
+ if (!tradingAccountId && !address && !inventoryKey && !vaultIds) {
500
+ throw new Error('Name at least one section to read: tradingAccountId, address, inventoryKey or vaultIds.');
501
+ }
502
+ return ok(await ctx.readClient().balancesAtHub({
503
+ storageUnitId,
504
+ ...(tradingAccountId ? { tradingAccountId } : {}),
505
+ ...(address ? { address } : {}),
506
+ ...(inventoryKey ? { inventoryKey } : {}),
507
+ ...(vaultIds ? { vaultIds } : {}),
508
+ }));
366
509
  },
367
- handler: async (ctx, args) => ok(await ctx
368
- .readClient()
369
- .balancesAtHub(args.balanceManagerId, args.storageUnitId)),
370
510
  },
371
511
  {
372
512
  name: 'account_currency_balances',
373
513
  title: 'Check CRED balances',
374
- description: 'CRED held by an address: loose in the wallet, and deposited inside its trading account. Works for an address that has no trading account yet — that answers with the wallet total, a zero deposited balance, and a null balanceManagerId, which is the signal to call prepare_create_account. Read head-current from the fullnode, so it reflects transactions the indexer has not caught up with yet. Amounts are base units as decimal strings.',
514
+ description: 'CRED held by an address: loose in the wallet, and deposited inside its trading account. Works for an address that has no trading account yet — that answers with the wallet total, a zero deposited balance, and a null tradingAccountId, which is the signal to call prepare_create_account. Read head-current from the fullnode, so it reflects transactions the indexer has not caught up with yet. Amounts are base units as decimal strings.',
375
515
  kind: 'read',
376
516
  sdkPath: 'balances.currency',
377
517
  inputShape: {
@@ -385,34 +525,83 @@ export const readTools = [
385
525
  description: 'Unclaimed proceeds and settled balances that can be claimed or withdrawn.',
386
526
  kind: 'read',
387
527
  sdkPath: 'account.sweepable',
388
- inputShape: { balanceManagerId: objectId },
389
- handler: async (ctx, args) => ok(await ctx.readClient().sweepable(args.balanceManagerId)),
528
+ inputShape: { tradingAccountId: objectId },
529
+ handler: async (ctx, args) => ok(await ctx.readClient().sweepable(args.tradingAccountId)),
390
530
  },
391
531
  {
392
532
  name: 'account_owners',
393
533
  title: 'Resolve trading account owners',
394
- description: 'Who owns these trading accounts, for up to 200 BalanceManager ids — how a counterparty id from the order book gets a name. `owner` is tagged: `player:<wallet>` for a character-owned account, `ou:<org_id>` for an organization-owned one.',
534
+ description: 'Who owns these trading accounts, for up to 200 TradingAccount ids — how a counterparty id from the order book gets a name. `owner` is tagged: `player:<wallet>` for a character-owned account, `ou:<org_id>` for an organization-owned one.',
395
535
  kind: 'read',
396
536
  sdkPath: 'account.owners',
397
537
  inputShape: {
398
- balanceManagerIds: z
538
+ tradingAccountIds: z
399
539
  .array(objectId)
400
540
  .min(1)
401
541
  .max(200)
402
- .describe('BalanceManager object ids (max 200).'),
542
+ .describe('TradingAccount object ids (max 200).'),
403
543
  },
404
544
  handler: async (ctx, args) => ok(await ctx.readClient().accountOwners(args)),
405
545
  },
546
+ {
547
+ name: 'account_caps',
548
+ title: 'List trading account capabilities',
549
+ description: 'Capabilities around an address, read head-current from the fullnode: the cap ids on its own trading account’s allow-list (what prepare_revoke_account_cap can revoke), and the Trade/Deposit/WithdrawCaps it holds for any account. tradingAccountId is null and allowListed empty when the address has no trading account. Pair with prepare_mint_account_cap.',
550
+ kind: 'read',
551
+ sdkPath: 'account.caps',
552
+ inputShape: {
553
+ address: suiAddress.describe('Sui address whose caps to read.'),
554
+ },
555
+ handler: async (ctx, args) => ok(await ctx.writeClient(args.address).account.caps(args.address)),
556
+ },
557
+ {
558
+ name: 'orders_fees',
559
+ title: 'Read item-pool fees',
560
+ description: 'Live fee state of one item pool, from the on-chain FeePolicy: the active and staged fee ladders, entry taker/maker rates, cancel retention, and bidEscrowFeeRate — the rate a bid deposit must cover. With an address, also that account’s own tier, turnover and rates. Rates are 1e9-scaled (11000000 = 1.10%) as decimal strings. Identify the pool by poolId, or by storageUnitId + assetId. Use it to size quoteBudget for prepare_market_order, or to price a bid before prepare_limit_order.',
561
+ kind: 'read',
562
+ sdkPath: 'orders.fees',
563
+ inputShape: {
564
+ storageUnitId: objectId
565
+ .optional()
566
+ .describe('Trade hub / storage unit object id; pair with assetId.'),
567
+ assetId: z
568
+ .string()
569
+ .optional()
570
+ .describe('EVE Frontier item asset id; pair with storageUnitId.'),
571
+ poolId: objectId
572
+ .optional()
573
+ .describe('Item pool id; use instead of storageUnitId + assetId.'),
574
+ address: suiAddress
575
+ .optional()
576
+ .describe('Also resolve this address’s fee tier and rates.'),
577
+ },
578
+ handler: async (ctx, args) => {
579
+ // The SDK branches on `'poolId' in params`, so an undefined key would
580
+ // pick the wrong selector — build the params from what was given.
581
+ const selector = args.poolId
582
+ ? { poolId: args.poolId }
583
+ : args.storageUnitId && args.assetId
584
+ ? { storageUnitId: args.storageUnitId, assetId: args.assetId }
585
+ : null;
586
+ if (!selector) {
587
+ throw new Error('Identify the pool by poolId, or by storageUnitId together with assetId.');
588
+ }
589
+ return ok(await ctx.writeClient(args.address).orders.fees({
590
+ ...selector,
591
+ ...(args.address ? { address: args.address } : {}),
592
+ }));
593
+ },
594
+ },
406
595
  {
407
596
  name: 'orders_open',
408
597
  title: 'List open orders',
409
598
  description: 'Resting orders for a trading account.',
410
599
  kind: 'read',
411
600
  sdkPath: 'orders.openOrders',
412
- inputShape: { balanceManagerId: objectId, ...historyPagingShape },
601
+ inputShape: { tradingAccountId: objectId, ...historyPagingShape },
413
602
  handler: async (ctx, args) => {
414
- const { balanceManagerId, ...rest } = args;
415
- return ok(await ctx.readClient().openOrders(balanceManagerId, rest));
603
+ const { tradingAccountId, ...rest } = args;
604
+ return ok(await ctx.readClient().openOrders(tradingAccountId, rest));
416
605
  },
417
606
  },
418
607
  {
@@ -421,10 +610,10 @@ export const readTools = [
421
610
  description: "This account's side of each match, most recent first.",
422
611
  kind: 'read',
423
612
  sdkPath: 'orders.fills',
424
- inputShape: { balanceManagerId: objectId, ...historyPagingShape },
613
+ inputShape: { tradingAccountId: objectId, ...historyPagingShape },
425
614
  handler: async (ctx, args) => {
426
- const { balanceManagerId, ...rest } = args;
427
- return ok(await ctx.readClient().fills(balanceManagerId, rest));
615
+ const { tradingAccountId, ...rest } = args;
616
+ return ok(await ctx.readClient().fills(tradingAccountId, rest));
428
617
  },
429
618
  },
430
619
  {
@@ -433,11 +622,37 @@ export const readTools = [
433
622
  description: 'Completed trades for a trading account.',
434
623
  kind: 'read',
435
624
  sdkPath: 'orders.trades',
436
- inputShape: { balanceManagerId: objectId, ...historyPagingShape },
625
+ inputShape: { tradingAccountId: objectId, ...historyPagingShape },
437
626
  handler: async (ctx, args) => {
438
- const { balanceManagerId, ...rest } = args;
439
- return ok(await ctx.readClient().trades(balanceManagerId, rest));
627
+ const { tradingAccountId, ...rest } = args;
628
+ return ok(await ctx.readClient().trades(tradingAccountId, rest));
629
+ },
630
+ },
631
+ {
632
+ name: 'orders_get',
633
+ title: 'Look up an order',
634
+ description: 'One order on one pool, whatever became of it: status open, filled or cancelled, original/remaining/filled quantity, owner (trading account and character), hub, quote currency, and its fill history oldest first. This is how to follow up an order after prepare_limit_order — orders_open only lists orders still resting. Not limited to your own orders. Order ids are unique only per pool, so both are required. Prices and quantities are raw integers as decimal strings. Costs 30 CU.',
635
+ kind: 'read',
636
+ sdkPath: 'orders.get',
637
+ inputShape: {
638
+ poolId: objectId.describe('Item pool id the order rests (or rested) on — from orders_open, orders_fills or market_orderbook.'),
639
+ orderId: u128.describe('Order id (Move u128) as a decimal string — past 2^53, never a JSON number.'),
640
+ },
641
+ handler: async (ctx, args) => ok(await ctx.readClient().order(args)),
642
+ },
643
+ {
644
+ name: 'orders_fill',
645
+ title: 'Look up a fill',
646
+ description: 'One fill by its eventDigest (as carried on orders_fills, orders_trades and orders_get), seen from neither side: both trading accounts, maker and taker fees, which side took, and when. Use it to identify a counterparty — pass the trading account ids to account_owners for a name. assetId and storageUnitId are null until the market’s metadata is indexed. Amounts are raw integers as decimal strings. Costs 30 CU.',
647
+ kind: 'read',
648
+ sdkPath: 'orders.fill',
649
+ inputShape: {
650
+ eventDigest: z
651
+ .string()
652
+ .min(1)
653
+ .describe('The fill’s event digest (transaction digest plus event index), exactly as a fill or trade read returned it.'),
440
654
  },
655
+ handler: async (ctx, args) => ok(await ctx.readClient().fill(args.eventDigest)),
441
656
  },
442
657
  ];
443
658
  //# sourceMappingURL=read.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/tools/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AACjC,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,QAAQ,EACR,iBAAiB,EACjB,UAAU,GACX,MAAM,eAAe,CAAA;AAGtB;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAc;IAClC;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EACT,4IAA4I;QAC9I,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,iBAAiB;QAC1B,UAAU,EAAE;YACV,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC9B,cAAc,EAAE,CAAC;iBACd,KAAK,CAAC,QAAQ,CAAC;iBACf,GAAG,CAAC,CAAC,CAAC;iBACN,GAAG,CAAC,EAAE,CAAC;iBACP,QAAQ,EAAE;iBACV,QAAQ,CAAC,uDAAuD,CAAC;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Q,CAAC,QAAQ,CACvB,mGAAmG,CACpG;YACD,OAAO,EAAE,IAAI,CAAC,QAAQ,CACpB,4EAA4E,CAC7E;SACF;QACD,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;KACrE;IACD;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,gBAAgB;QACvB,WAAW,EACT,6ZAA6Z;QAC/Z,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,aAAa;QACtB,UAAU,EAAE;YACV,WAAW,EAAE,CAAC;iBACX,MAAM,EAAE;iBACR,GAAG,CAAC,CAAC,CAAC;iBACN,QAAQ,CACP,6GAA6G,CAC9G;SACJ;QACD,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CAC3B,EAAE,CAAC,MAAM,GAAG,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KACpD;CACF,CAAA"}
@@ -0,0 +1,2 @@
1
+ import type { ToolDef } from './types.js';
2
+ export declare const worldTools: ToolDef[];
@@ -0,0 +1,208 @@
1
+ import { z } from 'zod';
2
+ import { ok } from '../result.js';
3
+ import { objectId, suiAddress } from '../schemas.js';
4
+ /**
5
+ * Reads about the game world rather than its markets: who the players are
6
+ * (`characters_*`), how to get between systems (`routing_*`), and the static
7
+ * item catalogue and crafting recipes (`world_*`).
8
+ *
9
+ * All of them are keyless indexer reads through the caller's own API key, with
10
+ * identity always explicit — `characters_by_address` takes its address as an
11
+ * argument, because this server has no configured player to default to.
12
+ */
13
+ /**
14
+ * A solar system NAME for the routing reads.
15
+ *
16
+ * Routing is name-only, and since cycle 7 a name is known only once a player
17
+ * has reported it. A numeric id is never a name, so the upstream answer to one
18
+ * is a guaranteed RouteNotFound at 100–300 CU; refusing it here turns that
19
+ * charge into a schema error that says what to do instead.
20
+ */
21
+ const systemName = z
22
+ .string()
23
+ .min(1)
24
+ .regex(/\D/, 'routing takes solar system NAMES, not numeric ids — resolve the id with spatial_system first; a system nobody has reported a name for cannot be routed to yet');
25
+ const routeShipShape = {
26
+ origin: systemName.describe('Departure solar system NAME, case-insensitive, e.g. "U4T-SL7". Not an id.'),
27
+ destination: systemName.describe('Arrival solar system NAME, case-insensitive. Not an id.'),
28
+ mass: z
29
+ .number()
30
+ .positive()
31
+ .optional()
32
+ .describe('Ship mass in game units (default 1.0); heavier pushes fuel-optimal routes onto stargates.'),
33
+ gateWeight: z
34
+ .number()
35
+ .min(0)
36
+ .max(1)
37
+ .optional()
38
+ .describe('Preference for stargates over jump drives, 0–1 (default 0.5). Used by the balanced mode only.'),
39
+ maxJumpRangeLy: z
40
+ .number()
41
+ .positive()
42
+ .optional()
43
+ .describe('The ship’s jump-drive range in light years (default 50). A larger range can connect a pair that otherwise fails.'),
44
+ };
45
+ const NAMES_CAVEAT = 'Origin and destination are solar system NAMES, never ids, and since cycle 7 names are player-reported: a system nobody has named yet fails with RouteNotFound even though it exists. Find names that resolve with spatial_autocomplete_systems or spatial_system. Waypoint solarSystemName is null for unreported systems — key on solarSystemId.';
46
+ export const worldTools = [
47
+ // ─── Routing ──────────────────────────────────────────────────────────────
48
+ {
49
+ name: 'routing_route',
50
+ title: 'Plan a route',
51
+ description: 'The optimal route between two solar systems over stargates and jump-drive hops, for one optimization mode: time (default, fewest jumps), fuel, or balanced (weighted by gateWeight). Returns the waypoints with each hop’s jump type and distance, and totals for jumps and light years. ' +
52
+ NAMES_CAVEAT +
53
+ ' RouteNotFound also means unreachable under these ship parameters — try a larger maxJumpRangeLy. Costs 100 CU; use routing_compare only when you need all three modes.',
54
+ kind: 'read',
55
+ sdkPath: 'routing.route',
56
+ inputShape: {
57
+ ...routeShipShape,
58
+ optimization: z
59
+ .enum(['time', 'fuel', 'balanced'])
60
+ .optional()
61
+ .describe('time (default), fuel, or balanced. The answer names the mode differently (fastest, fuel_efficient, balanced).'),
62
+ },
63
+ handler: async (ctx, args) => ok(await ctx.readClient().route(args)),
64
+ },
65
+ {
66
+ name: 'routing_compare',
67
+ title: 'Compare route modes',
68
+ description: 'The fuel-efficient, fastest and balanced routes between two systems in one consistent call — for showing the jumps-versus-fuel trade-off. ' +
69
+ NAMES_CAVEAT +
70
+ ' Priced as three route searches: costs 300 CU, so prefer routing_route when one mode will do.',
71
+ kind: 'read',
72
+ sdkPath: 'routing.compare',
73
+ inputShape: routeShipShape,
74
+ handler: async (ctx, args) => ok(await ctx.readClient().compareRoutes(args)),
75
+ },
76
+ {
77
+ name: 'routing_stats',
78
+ title: 'Get routing coverage',
79
+ description: 'Size of the routing graph — connected systems, stargate and jump-drive edges — and the default jump range drive edges are built with. Pair with spatial_stats, whose knownSolarSystemNames says how much of the map can be routed to by name. Costs 20 CU.',
80
+ kind: 'read',
81
+ sdkPath: 'routing.stats',
82
+ inputShape: {},
83
+ handler: async (ctx) => ok(await ctx.readClient().routingStats()),
84
+ },
85
+ // ─── Characters & tribes ──────────────────────────────────────────────────
86
+ {
87
+ name: 'characters_get',
88
+ title: 'Get a character',
89
+ description: 'One player character by its object id: name, wallet address, tenant, tribe id and profile. With enrich, also the on-chain ownerCapId (the inventoryKey account_balances_at_hub takes for a hangar) and assemblyId. Fails with CharacterNotFound for an unknown id. Costs 20 CU.',
90
+ kind: 'read',
91
+ sdkPath: 'characters.get',
92
+ inputShape: {
93
+ characterId: objectId.describe('Character Sui object id.'),
94
+ enrich: z
95
+ .boolean()
96
+ .optional()
97
+ .describe('Also resolve ownerCapId and assemblyId (default false).'),
98
+ },
99
+ handler: async (ctx, args) => {
100
+ const { characterId, ...opts } = args;
101
+ return ok(await ctx.readClient().character(characterId, opts));
102
+ },
103
+ },
104
+ {
105
+ name: 'characters_by_address',
106
+ title: 'Find a wallet’s characters',
107
+ description: 'Every character a wallet holds, newest first — a wallet can hold several (one per tenant, or a re-created character), and [] means none. The address is required: unlike the SDK, this server has no configured player to default to. For many wallets at once use characters_batch. Costs 20 CU.',
108
+ kind: 'read',
109
+ sdkPath: 'characters.byAddress',
110
+ inputShape: {
111
+ address: suiAddress.describe('Wallet address to look up.'),
112
+ enrich: z
113
+ .boolean()
114
+ .optional()
115
+ .describe('Also resolve ownerCapId and assemblyId (default false).'),
116
+ },
117
+ handler: async (ctx, args) => {
118
+ const { address, ...opts } = args;
119
+ return ok(await ctx.readClient().charactersByAddress(address, opts));
120
+ },
121
+ },
122
+ {
123
+ name: 'characters_by_name',
124
+ title: 'Find characters by name',
125
+ description: 'Characters whose name matches EXACTLY (no fuzzy or prefix matching), newest first. Names are not unique, so this returns a list — disambiguate by tenant or address. Costs 20 CU.',
126
+ kind: 'read',
127
+ sdkPath: 'characters.byName',
128
+ inputShape: {
129
+ name: z.string().min(1).describe('Exact character name.'),
130
+ },
131
+ handler: async (ctx, args) => ok(await ctx.readClient().charactersByName(args.name)),
132
+ },
133
+ {
134
+ name: 'characters_batch',
135
+ title: 'Name many wallets',
136
+ description: 'Resolve up to 500 wallet addresses to their characters and tribe names in one call — how a list of owners from account_owners, org_seats or a fill gets names. Every address is echoed back in `address`; unresolved ones carry null fields rather than being dropped. Costs 50 CU.',
137
+ kind: 'read',
138
+ sdkPath: 'characters.batch',
139
+ inputShape: {
140
+ addresses: z
141
+ .array(suiAddress)
142
+ .min(1)
143
+ .max(500)
144
+ .describe('Wallet addresses (max 500).'),
145
+ },
146
+ handler: async (ctx, args) => ok(await ctx.readClient().charactersBatch(args)),
147
+ },
148
+ {
149
+ name: 'characters_tribe',
150
+ title: 'Get a tribe',
151
+ description: 'A tribe — the game-world faction a character belongs to, not an on-chain organization (those are org_*) — by numeric id, as carried in a character’s tribeId: name, short name, description, tax rate and URL. Fails with TribeNotFound for an unknown id. Costs 20 CU.',
152
+ kind: 'read',
153
+ sdkPath: 'characters.tribe',
154
+ inputShape: {
155
+ tribeId: z
156
+ .number()
157
+ .int()
158
+ .nonnegative()
159
+ .describe('Numeric tribe id, e.g. 98000001.'),
160
+ },
161
+ handler: async (ctx, args) => ok(await ctx.readClient().tribe(args.tribeId)),
162
+ },
163
+ // ─── World reference data ─────────────────────────────────────────────────
164
+ {
165
+ name: 'world_items',
166
+ title: 'List the item catalogue',
167
+ description: 'The full curated EVE Frontier item list (about 1–2k items, ~100 KB): assetId, name, group, category and physical attributes. Static data that changes only with game releases — fetch once and cache rather than calling per item. To find one item by name use market_search_items. Costs 20 CU.',
168
+ kind: 'read',
169
+ sdkPath: 'world.items',
170
+ inputShape: {},
171
+ handler: async (ctx) => ok(await ctx.readClient().worldItems()),
172
+ },
173
+ {
174
+ name: 'world_item',
175
+ title: 'Name an item',
176
+ description: 'Display name and group for one item asset id — the cheap way to label an assetId from an order book or trade. Fails with ItemNotFound for an unknown id. Costs 20 CU.',
177
+ kind: 'read',
178
+ sdkPath: 'world.item',
179
+ inputShape: {
180
+ assetId: z.string().min(1).describe('Item asset id, e.g. "77800".'),
181
+ },
182
+ handler: async (ctx, args) => ok(await ctx.readClient().worldItem(args.assetId)),
183
+ },
184
+ {
185
+ name: 'world_recipes',
186
+ title: 'List crafting recipes',
187
+ description: 'Every crafting recipe: product, output quantity, craft time in seconds (null when unknown) and the input materials with quantities. Static data — fetch once and cache; for one product use world_recipes_for. Costs 20 CU.',
188
+ kind: 'read',
189
+ sdkPath: 'world.recipes',
190
+ inputShape: {},
191
+ handler: async (ctx) => ok(await ctx.readClient().recipes()),
192
+ },
193
+ {
194
+ name: 'world_recipes_for',
195
+ title: 'Get recipes for an item',
196
+ description: 'The recipes that produce one item — its bill of materials. [] means nothing crafts it, which is an answer, not an error. Pair with market_display_prices over the material ids to cost a build. Costs 20 CU.',
197
+ kind: 'read',
198
+ sdkPath: 'world.recipesFor',
199
+ inputShape: {
200
+ productAssetId: z
201
+ .string()
202
+ .min(1)
203
+ .describe('Asset id of the item to craft, e.g. "77753".'),
204
+ },
205
+ handler: async (ctx, args) => ok(await ctx.readClient().recipesFor(args.productAssetId)),
206
+ },
207
+ ];
208
+ //# sourceMappingURL=world.js.map