@trinaryex/mcp 4.0.0 → 5.7.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.
- package/README.md +14 -0
- package/dist/prepare.d.ts +41 -0
- package/dist/prepare.js +46 -0
- package/dist/prepare.js.map +1 -1
- package/dist/registry.js +12 -1
- package/dist/registry.js.map +1 -1
- package/dist/result.d.ts +7 -1
- package/dist/result.js +12 -2
- package/dist/result.js.map +1 -1
- package/dist/schemas.d.ts +8 -0
- package/dist/schemas.js +10 -0
- package/dist/schemas.js.map +1 -1
- package/dist/server.js +6 -0
- package/dist/server.js.map +1 -1
- package/dist/tools/hauling.d.ts +2 -0
- package/dist/tools/hauling.js +218 -0
- package/dist/tools/hauling.js.map +1 -0
- package/dist/tools/haulingPrepare.d.ts +2 -0
- package/dist/tools/haulingPrepare.js +208 -0
- package/dist/tools/haulingPrepare.js.map +1 -0
- package/dist/tools/org.js +20 -6
- package/dist/tools/org.js.map +1 -1
- package/dist/tools/read.js +51 -8
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/world.js +4 -7
- package/dist/tools/world.js.map +1 -1
- package/package.json +19 -12
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A **keyless, multi-tenant MCP server** for [Trinary Exchange](https://trinary.exchange) — market reads and unsigned transaction preparation for EVE Frontier trading agents.
|
|
4
4
|
|
|
5
|
+
Documentation: [docs.trinary.exchange](https://docs.trinary.exchange) (the TriEx trading API and TypeScript SDK). For read-only EVE Frontier data at scale, see [Voidwire](https://voidwire.xyz).
|
|
6
|
+
|
|
5
7
|
Released in lockstep with [`@trinaryex/sdk`](https://www.npmjs.com/package/@trinaryex/sdk): **the MCP version always equals the SDK version it wraps.**
|
|
6
8
|
|
|
7
9
|
## Two invariants
|
|
@@ -62,6 +64,8 @@ All configuration is **non-secret** — note the absence of any key, address, or
|
|
|
62
64
|
|
|
63
65
|
**Players, world & routing** — `characters_get`, `characters_by_address`, `characters_by_name`, `characters_batch`, `characters_tribe`, `world_items`, `world_item`, `world_recipes`, `world_recipes_for`, `routing_route`, `routing_compare`, `routing_stats`. Who is behind an address (`characters_batch` names up to 500 wallets in one call), the static item catalogue and crafting recipes (fetch once and cache), and routes between systems. Routing takes solar system **names only**, and since cycle 7 names are player-reported: a system nobody has named yet fails with `RouteNotFound` even though it exists, so a numeric id is refused at the schema. Find routable names with `spatial_autocomplete_systems`; key results on `solarSystemId`, since `solarSystemName` is null until reported.
|
|
64
66
|
|
|
67
|
+
**Hauling agreements** — `hauling_agreements`, `hauling_agreement`, `hauling_config`, `hauling_stats`, `hauling_org_agreements`, `hauling_player_agreements`, `hauling_actions`, `hauling_claimable`, `hauling_reputation`. On-chain jobs to move cargo between hubs for an escrowed reward. The job board (filter by hubs, items, reward, parties and gating), one agreement in full, what an address can accept (with a claim plan per gate), its to-do list (each item names its Move call), reputations and protocol stats. Player-scoped tools take `address`. Amounts are raw base units as decimal strings, and every tool takes `minCheckpoint` for read-your-writes. The prepare tools — `prepare_hauling_post`, `prepare_hauling_accept`, `prepare_hauling_deliver`, `prepare_hauling_cancel`, `prepare_hauling_default`, `prepare_hauling_forfeit`, `prepare_hauling_collect`, `prepare_hauling_delete_cap` — build the job lifecycle for `sender`, sourcing coins and item receipts from the sender's wallet (and hangar).
|
|
68
|
+
|
|
65
69
|
These reads state their compute-unit cost in their descriptions — from 20 CU for a single lookup up to 300 CU for `routing_compare`, which runs three route searches.
|
|
66
70
|
|
|
67
71
|
**Spatial (star map)** — `spatial_system`, `spatial_systems`, `spatial_nearby_systems`, `spatial_systems_near_coordinates`, `spatial_autocomplete_systems`, `spatial_stats`. Where solar systems are and what is near what — no account, hub or signer needed. Coordinates are metres and distances light years, both as decimal strings: the values exceed 2^53.
|
|
@@ -120,6 +124,16 @@ The **same call** resolves differently per caller. For an officer whose lone vot
|
|
|
120
124
|
|
|
121
125
|
u64-ish values (prices, quantities, amounts) cross the MCP boundary as **decimal strings**, never JSON numbers.
|
|
122
126
|
|
|
127
|
+
## Structured output
|
|
128
|
+
|
|
129
|
+
Every successful tool result carries `structuredContent` alongside the JSON
|
|
130
|
+
text: the same value, with u64-ish amounts as decimal strings, and arrays or
|
|
131
|
+
primitives wrapped as `{ items }` / `{ value }` (structured content is always
|
|
132
|
+
an object). The `prepare_*` tools also declare an `outputSchema`: the
|
|
133
|
+
prepared-transaction envelope below, with `prepared: true`, or
|
|
134
|
+
`prepared: false` and a `reason` when nothing needs preparing. The server
|
|
135
|
+
validates every prepare result against it.
|
|
136
|
+
|
|
123
137
|
## The prepare contract
|
|
124
138
|
|
|
125
139
|
Every `prepare_*` tool returns:
|
package/dist/prepare.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ClientWithCoreApi } from '@mysten/sui/client';
|
|
2
2
|
import type { Transaction } from '@mysten/sui/transactions';
|
|
3
|
+
import { z } from 'zod';
|
|
3
4
|
/**
|
|
4
5
|
* A prepared, unsigned transaction. This is the whole output contract of every
|
|
5
6
|
* `prepare_*` tool: bytes the caller can sponsor, sign and submit, plus the
|
|
@@ -10,6 +11,8 @@ import type { Transaction } from '@mysten/sui/transactions';
|
|
|
10
11
|
* `intent.worstCaseSpend`, and dry-run. Never blind-sign.
|
|
11
12
|
*/
|
|
12
13
|
export interface PreparedTransaction {
|
|
14
|
+
/** Always true here; `false` marks the nothing-to-prepare answer. */
|
|
15
|
+
prepared: true;
|
|
13
16
|
/** Base64 BCS `TransactionKind`, built with `onlyTransactionKind: true`. */
|
|
14
17
|
txKindBytes: string;
|
|
15
18
|
/** Address the transaction was built for; only this key can sign it. */
|
|
@@ -69,3 +72,41 @@ export declare function extractPinnedObjects(tx: Transaction): PinnedObject[];
|
|
|
69
72
|
* exactly the shape a gas station expects for sponsorship.
|
|
70
73
|
*/
|
|
71
74
|
export declare function toPrepared(tx: Transaction, sender: string, client: ClientWithCoreApi, intent: Omit<PreparedIntent, 'targets'>, extraNotes?: string[]): Promise<PreparedTransaction>;
|
|
75
|
+
/**
|
|
76
|
+
* The structured output every `prepare_*` tool declares (`outputSchema`):
|
|
77
|
+
* either a prepared transaction (`prepared: true`) or the answer that nothing
|
|
78
|
+
* needs preparing (`prepared: false`, with `reason`). One object rather than
|
|
79
|
+
* a union, because MCP output schemas must be object schemas.
|
|
80
|
+
*/
|
|
81
|
+
export declare const preparedOutputShape: {
|
|
82
|
+
prepared: z.ZodBoolean;
|
|
83
|
+
txKindBytes: z.ZodOptional<z.ZodString>;
|
|
84
|
+
sender: z.ZodOptional<z.ZodString>;
|
|
85
|
+
intent: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
action: z.ZodString;
|
|
87
|
+
targets: z.ZodArray<z.ZodString>;
|
|
88
|
+
worstCaseSpend: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
asset: z.ZodString;
|
|
90
|
+
amount: z.ZodString;
|
|
91
|
+
kind: z.ZodEnum<{
|
|
92
|
+
currency: "currency";
|
|
93
|
+
item: "item";
|
|
94
|
+
}>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
97
|
+
}, z.core.$loose>>;
|
|
98
|
+
pinnedObjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
99
|
+
objectId: z.ZodString;
|
|
100
|
+
version: z.ZodNullable<z.ZodString>;
|
|
101
|
+
kind: z.ZodEnum<{
|
|
102
|
+
owned: "owned";
|
|
103
|
+
shared: "shared";
|
|
104
|
+
receiving: "receiving";
|
|
105
|
+
}>;
|
|
106
|
+
}, z.core.$strip>>>;
|
|
107
|
+
builtAtMs: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
109
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
110
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
detail: z.ZodOptional<z.ZodUnknown>;
|
|
112
|
+
};
|
package/dist/prepare.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
/**
|
|
2
3
|
* Pull every Move call target out of a built transaction, in command order.
|
|
3
4
|
* Returns `<package>::<module>::<function>` strings.
|
|
@@ -68,6 +69,7 @@ export async function toPrepared(tx, sender, client, intent, extraNotes = []) {
|
|
|
68
69
|
tx.setSender(sender);
|
|
69
70
|
const bytes = await tx.build({ client, onlyTransactionKind: true });
|
|
70
71
|
return {
|
|
72
|
+
prepared: true,
|
|
71
73
|
txKindBytes: Buffer.from(bytes).toString('base64'),
|
|
72
74
|
sender,
|
|
73
75
|
intent: { ...intent, targets: extractTargets(tx) },
|
|
@@ -76,4 +78,48 @@ export async function toPrepared(tx, sender, client, intent, extraNotes = []) {
|
|
|
76
78
|
notes: [VERIFY_NOTE, STALENESS_NOTE, ...extraNotes],
|
|
77
79
|
};
|
|
78
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* The structured output every `prepare_*` tool declares (`outputSchema`):
|
|
83
|
+
* either a prepared transaction (`prepared: true`) or the answer that nothing
|
|
84
|
+
* needs preparing (`prepared: false`, with `reason`). One object rather than
|
|
85
|
+
* a union, because MCP output schemas must be object schemas.
|
|
86
|
+
*/
|
|
87
|
+
export const preparedOutputShape = {
|
|
88
|
+
prepared: z
|
|
89
|
+
.boolean()
|
|
90
|
+
.describe('true: unsigned bytes are ready; false: nothing to prepare (see reason).'),
|
|
91
|
+
txKindBytes: z
|
|
92
|
+
.string()
|
|
93
|
+
.optional()
|
|
94
|
+
.describe('Base64 BCS TransactionKind, built with onlyTransactionKind.'),
|
|
95
|
+
sender: z.string().optional(),
|
|
96
|
+
intent: z
|
|
97
|
+
.looseObject({
|
|
98
|
+
action: z.string(),
|
|
99
|
+
targets: z
|
|
100
|
+
.array(z.string())
|
|
101
|
+
.describe('Every Move call target in the bytes, in command order.'),
|
|
102
|
+
worstCaseSpend: z
|
|
103
|
+
.object({
|
|
104
|
+
asset: z.string(),
|
|
105
|
+
amount: z.string(),
|
|
106
|
+
kind: z.enum(['currency', 'item']),
|
|
107
|
+
})
|
|
108
|
+
.optional(),
|
|
109
|
+
params: z.record(z.string(), z.unknown()),
|
|
110
|
+
})
|
|
111
|
+
.optional(),
|
|
112
|
+
pinnedObjects: z
|
|
113
|
+
.array(z.object({
|
|
114
|
+
objectId: z.string(),
|
|
115
|
+
version: z.string().nullable(),
|
|
116
|
+
kind: z.enum(['owned', 'shared', 'receiving']),
|
|
117
|
+
}))
|
|
118
|
+
.optional(),
|
|
119
|
+
builtAtMs: z.number().optional(),
|
|
120
|
+
notes: z.array(z.string()).optional(),
|
|
121
|
+
reason: z.string().optional().describe('Why nothing was prepared.'),
|
|
122
|
+
code: z.string().nullable().optional(),
|
|
123
|
+
detail: z.unknown().optional(),
|
|
124
|
+
};
|
|
79
125
|
//# sourceMappingURL=prepare.js.map
|
package/dist/prepare.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare.js","sourceRoot":"","sources":["../src/prepare.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare.js","sourceRoot":"","sources":["../src/prepare.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAkEvB;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,EAAe;IAC5C,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,EAA6B,CAAA;IACpD,MAAM,OAAO,GAAa,EAAE,CAAA;IAC5B,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,QAAQ,IAAI,EAAE,EAAE,CAAC;QAC1C,MAAM,IAAI,GAAI,OAA+B,EAAE,QAAQ,CAAA;QACvD,IAAI,CAAC,IAAI;YAAE,SAAQ;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,IAAI,GAAG,CAAA;QAC/B,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,IAAI,GAAG,CAAA;QAC9B,M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CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAA"}
|
package/dist/registry.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { coinTools } from './tools/coins.js';
|
|
2
2
|
import { coinPrepareTools } from './tools/coinsPrepare.js';
|
|
3
|
+
import { haulingTools } from './tools/hauling.js';
|
|
4
|
+
import { haulingPrepareTools } from './tools/haulingPrepare.js';
|
|
3
5
|
import { keyspaceTools } from './tools/keyspace.js';
|
|
4
6
|
import { orgTools } from './tools/org.js';
|
|
5
7
|
import { orgLifecycleTools } from './tools/orgLifecycle.js';
|
|
@@ -11,6 +13,7 @@ import { worldTools } from './tools/world.js';
|
|
|
11
13
|
export const ALL_TOOLS = [
|
|
12
14
|
...readTools,
|
|
13
15
|
...worldTools,
|
|
16
|
+
...haulingTools,
|
|
14
17
|
...coinTools,
|
|
15
18
|
...keyspaceTools,
|
|
16
19
|
...orgTools,
|
|
@@ -18,6 +21,7 @@ export const ALL_TOOLS = [
|
|
|
18
21
|
...coinPrepareTools,
|
|
19
22
|
...orgPrepareTools,
|
|
20
23
|
...orgLifecycleTools,
|
|
24
|
+
...haulingPrepareTools,
|
|
21
25
|
];
|
|
22
26
|
/**
|
|
23
27
|
* Inputs any tool may declare without an SDK counterpart.
|
|
@@ -70,7 +74,14 @@ export const EXCLUDED_SDK_PATHS = {
|
|
|
70
74
|
*/
|
|
71
75
|
export function toolsForMode(mode) {
|
|
72
76
|
return mode === 'read'
|
|
73
|
-
? [
|
|
77
|
+
? [
|
|
78
|
+
...readTools,
|
|
79
|
+
...worldTools,
|
|
80
|
+
...haulingTools,
|
|
81
|
+
...coinTools,
|
|
82
|
+
...keyspaceTools,
|
|
83
|
+
...orgTools,
|
|
84
|
+
]
|
|
74
85
|
: ALL_TOOLS;
|
|
75
86
|
}
|
|
76
87
|
//# sourceMappingURL=registry.js.map
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAI7C,4DAA4D;AAC5D,MAAM,CAAC,MAAM,SAAS,GAAc;IAClC,GAAG,SAAS;IACZ,GAAG,UAAU;IACb,GAAG,SAAS;IACZ,GAAG,aAAa;IAChB,GAAG,QAAQ;IACX,GAAG,YAAY;IACf,GAAG,gBAAgB;IACnB,GAAG,eAAe;IAClB,GAAG,iBAAiB;
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D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O,IAAI,KAAK,MAAM;QACpB,CAAC,CAAC;YACE,GAAG,SAAS;YACZ,GAAG,UAAU;YACb,GAAG,YAAY;YACf,GAAG,SAAS;YACZ,GAAG,aAAa;YAChB,GAAG,QAAQ;SACZ;QACH,CAAC,CAAC,SAAS,CAAA;AACf,CAAC"}
|
package/dist/result.d.ts
CHANGED
|
@@ -5,9 +5,15 @@ export interface ToolResponse {
|
|
|
5
5
|
type: 'text';
|
|
6
6
|
text: string;
|
|
7
7
|
}[];
|
|
8
|
+
/**
|
|
9
|
+
* The same result as a JSON object, for clients that read structured tool
|
|
10
|
+
* output. Arrays and primitives are wrapped as `{ items }` / `{ value }`,
|
|
11
|
+
* since structured content must be an object.
|
|
12
|
+
*/
|
|
13
|
+
structuredContent?: Record<string, unknown>;
|
|
8
14
|
isError?: boolean;
|
|
9
15
|
}
|
|
10
|
-
/** Wrap a value as a successful MCP tool result. */
|
|
16
|
+
/** Wrap a value as a successful MCP tool result, as text and structured. */
|
|
11
17
|
export declare function ok(value: unknown): ToolResponse;
|
|
12
18
|
/**
|
|
13
19
|
* Wrap an error as an MCP tool result. Tool-level failures are returned as
|
package/dist/result.js
CHANGED
|
@@ -6,9 +6,19 @@ function bigintSafe(_key, value) {
|
|
|
6
6
|
export function toJsonText(value) {
|
|
7
7
|
return JSON.stringify(value, bigintSafe, 2);
|
|
8
8
|
}
|
|
9
|
-
/** Wrap a value as a successful MCP tool result. */
|
|
9
|
+
/** Wrap a value as a successful MCP tool result, as text and structured. */
|
|
10
10
|
export function ok(value) {
|
|
11
|
-
|
|
11
|
+
const text = toJsonText(value);
|
|
12
|
+
const json = text === undefined ? null : JSON.parse(text);
|
|
13
|
+
const structuredContent = json !== null && typeof json === 'object' && !Array.isArray(json)
|
|
14
|
+
? json
|
|
15
|
+
: Array.isArray(json)
|
|
16
|
+
? { items: json }
|
|
17
|
+
: { value: json };
|
|
18
|
+
return {
|
|
19
|
+
content: [{ type: 'text', text: text ?? 'null' }],
|
|
20
|
+
structuredContent,
|
|
21
|
+
};
|
|
12
22
|
}
|
|
13
23
|
/**
|
|
14
24
|
* Wrap an error as an MCP tool result. Tool-level failures are returned as
|
package/dist/result.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.js","sourceRoot":"","sources":["../src/result.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,SAAS,UAAU,CAAC,IAAY,EAAE,KAAc;IAC9C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,CAAA;AAC7D,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC,CAAA;AAC7C,CAAC;
|
|
1
|
+
{"version":3,"file":"result.js","sourceRoot":"","sources":["../src/result.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,SAAS,UAAU,CAAC,IAAY,EAAE,KAAc;IAC9C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,CAAA;AAC7D,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC,CAAA;AAC7C,CAAC;AAaD,4EAA4E;AAC5E,MAAM,UAAU,EAAE,CAAC,KAAc;IAC/B,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IAC9B,MAAM,IAAI,GAAY,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAClE,MAAM,iBAAiB,GACrB,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAC/D,CAAC,CAAE,IAAgC;QACnC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;YACnB,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE;YACjB,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;IACvB,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,IAAI,MAAM,EAAE,CAAC;QACjD,iBAAiB;KAClB,CAAA;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,KAAc;IACjC,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IACtE,MAAM,IAAI,GACR,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK;QACnD,CAAC,CAAC,MAAM,CAAE,KAA2B,CAAC,IAAI,CAAC;QAC3C,CAAC,CAAC,SAAS,CAAA;IACf,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;aAChE;SACF;QACD,OAAO,EAAE,IAAI;KACd,CAAA;AACH,CAAC"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -76,6 +76,14 @@ export declare const locationPagingShape: {
|
|
|
76
76
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
77
77
|
cursor: z.ZodOptional<z.ZodString>;
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* Read-your-writes, for the reads the gateway supports it on: only serve data
|
|
81
|
+
* that includes this indexer checkpoint (the SDK's `checkpointOf(tx)` after a
|
|
82
|
+
* write). A decimal string — checkpoints run past 2^53.
|
|
83
|
+
*/
|
|
84
|
+
export declare const minCheckpointShape: {
|
|
85
|
+
minCheckpoint: z.ZodOptional<z.ZodString>;
|
|
86
|
+
};
|
|
79
87
|
/** Item search takes a limit and nothing else. */
|
|
80
88
|
export declare const searchPagingShape: {
|
|
81
89
|
limit: z.ZodOptional<z.ZodNumber>;
|
package/dist/schemas.js
CHANGED
|
@@ -105,6 +105,16 @@ export const locationPagingShape = {
|
|
|
105
105
|
limit: z.number().int().positive().max(100).optional(),
|
|
106
106
|
cursor: z.string().optional(),
|
|
107
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* Read-your-writes, for the reads the gateway supports it on: only serve data
|
|
110
|
+
* that includes this indexer checkpoint (the SDK's `checkpointOf(tx)` after a
|
|
111
|
+
* write). A decimal string — checkpoints run past 2^53.
|
|
112
|
+
*/
|
|
113
|
+
export const minCheckpointShape = {
|
|
114
|
+
minCheckpoint: u64
|
|
115
|
+
.optional()
|
|
116
|
+
.describe('Read-your-writes: only serve data that includes this indexer checkpoint, e.g. the checkpoint of a transaction you just ran. If the indexer is behind, the read waits briefly and then answers with what it has.'),
|
|
117
|
+
};
|
|
108
118
|
/** Item search takes a limit and nothing else. */
|
|
109
119
|
export const searchPagingShape = limitShape;
|
|
110
120
|
/** Parse a decimal string into a bigint after zod has validated its shape. */
|
package/dist/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;KACjB,MAAM,EAAE;KACR,KAAK,CAAC,OAAO,EAAE,qDAAqD,CAAC,CAAA;AAExE,MAAM,QAAQ,GAAG,CAAC,EAAE,IAAI,IAA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,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,iCAAiC,CAAC;CAC/C,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACtD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,aAAa,EAAE,GAAG;SACf,QAAQ,EAAE;SACV,QAAQ,CACP,iNAAiN,CAClN;CACJ,CAAA;AAED,kDAAkD;AAClD,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAA;AAE3C,8EAA8E;AAC9E,MAAM,UAAU,GAAG,CAAC,KAAa;IAC/B,OAAO,MAAM,CAAC,KAAK,CAAC,CAAA;AACtB,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,MAAM,CAAC,KAAyB;IAC9C,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AACxD,CAAC"}
|
package/dist/server.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import { preparedOutputShape } from './prepare.js';
|
|
2
3
|
import { fail } from './result.js';
|
|
3
4
|
import { toolsForMode } from './registry.js';
|
|
4
5
|
import { packageVersion } from './version.js';
|
|
@@ -19,6 +20,11 @@ export function createServer(ctx) {
|
|
|
19
20
|
title: tool.title,
|
|
20
21
|
description: tool.description,
|
|
21
22
|
inputSchema: tool.inputShape,
|
|
23
|
+
// Prepare tools share one envelope, so they declare it; read tools
|
|
24
|
+
// return structuredContent without a declared schema.
|
|
25
|
+
...(tool.kind === 'prepare'
|
|
26
|
+
? { outputSchema: preparedOutputShape }
|
|
27
|
+
: {}),
|
|
22
28
|
annotations: {
|
|
23
29
|
title: tool.title,
|
|
24
30
|
// Both kinds are read-only with respect to the world: prepare tools
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAA;AAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,GAAmB;IAC9C,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;QAC3B,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,cAAc,EAAE;KAC1B,CAAC,CAAA;IAEF,KAAK,MAAM,IAAI,IAAI,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QACjD,MAAM,CAAC,YAAY,CACjB,IAAI,CAAC,IAAI,EACT;YACE,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,IAAI,CAAC,UAAU;YAC5B,WAAW,EAAE;gBACX,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,oEAAoE;gBACpE,gEAAgE;gBAChE,2BAA2B;gBAC3B,YAAY,EAAE,IAAI;gBAClB,aAAa,EAAE,IAAI;aACpB;SACF,EACD,KAAK,EAAE,IAAS,EAAE,EAAE;YAClB,IAAI,CAAC;gBACH,OAAO,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAQ,CAAA;YAC/C,CAAC;YAAC,O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AAS,EAAE,EAAE;YAClB,IAAI,CAAC;gBACH,OAAO,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAQ,CAAA;YAC/C,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,OAAO,IAAI,CAAC,CAAC,CAAQ,CAAA;YACvB,CAAC;QACH,CAAC,CACF,CAAA;IACH,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ok } from '../result.js';
|
|
3
|
+
import { objectId, suiAddress, u64 } from '../schemas.js';
|
|
4
|
+
/**
|
|
5
|
+
* Hauling agreements: on-chain jobs to move cargo between hubs for an escrowed
|
|
6
|
+
* reward. A lister posts cargo (at a source hub), what they want delivered (to
|
|
7
|
+
* a destination hub), a reward and a collateral; a hauler accepts, locks the
|
|
8
|
+
* collateral and has a fixed time to deliver, or defaults and forfeits it.
|
|
9
|
+
*
|
|
10
|
+
* Keyless reads through the caller's API key, identity always explicit: the
|
|
11
|
+
* player-scoped tools take `address`, because this server has no configured
|
|
12
|
+
* player to default to.
|
|
13
|
+
*/
|
|
14
|
+
const STATUSES = [
|
|
15
|
+
'open',
|
|
16
|
+
'lapsed',
|
|
17
|
+
'accepted',
|
|
18
|
+
'overdue',
|
|
19
|
+
'delivered',
|
|
20
|
+
'defaulted',
|
|
21
|
+
'forfeited',
|
|
22
|
+
'cancelled',
|
|
23
|
+
'closed_lapsed',
|
|
24
|
+
];
|
|
25
|
+
const ROLES = [
|
|
26
|
+
'lister',
|
|
27
|
+
'cap_holder',
|
|
28
|
+
'beneficiary',
|
|
29
|
+
'hauler',
|
|
30
|
+
'claimed_via_org',
|
|
31
|
+
];
|
|
32
|
+
const statusFilter = z
|
|
33
|
+
.union([z.enum(STATUSES), z.array(z.enum(STATUSES)).min(1)])
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('One status or several. lapsed (open past its accept deadline) and overdue (accepted past its delivery deadline) are judged at evaluatedAt.');
|
|
36
|
+
const minCheckpoint = {
|
|
37
|
+
minCheckpoint: u64
|
|
38
|
+
.optional()
|
|
39
|
+
.describe('Read-your-writes: only serve data that includes this indexer checkpoint, e.g. the checkpoint of a transaction you just ran. If the indexer is behind, the gateway waits briefly and then answers with older data.'),
|
|
40
|
+
};
|
|
41
|
+
const paging = {
|
|
42
|
+
limit: z
|
|
43
|
+
.number()
|
|
44
|
+
.int()
|
|
45
|
+
.positive()
|
|
46
|
+
.max(100)
|
|
47
|
+
.optional()
|
|
48
|
+
.describe('1–100, default 50.'),
|
|
49
|
+
cursor: z.string().optional().describe('nextCursor from the previous page.'),
|
|
50
|
+
...minCheckpoint,
|
|
51
|
+
};
|
|
52
|
+
const address = suiAddress.describe('The player wallet address.');
|
|
53
|
+
const AMOUNTS = 'Amounts (reward, collateral, fees, quantities) are raw base units as decimal strings; scale by the currency decimals.';
|
|
54
|
+
export const haulingTools = [
|
|
55
|
+
{
|
|
56
|
+
name: 'hauling_agreements',
|
|
57
|
+
title: 'Search hauling agreements',
|
|
58
|
+
description: 'The hauling job board: open agreements by default, newest first. Filter by status, reward currency and minimum, source or destination hub, cargo or wanted items, lister, hauler, organization, and whether a claim gate applies. Pass claimableBy to get each row’s eligibility for that address (use hauling_claimable for only the ones it can accept). Page with cursor. ' +
|
|
59
|
+
AMOUNTS +
|
|
60
|
+
' Costs 50 CU.',
|
|
61
|
+
kind: 'read',
|
|
62
|
+
sdkPath: 'hauling.agreements',
|
|
63
|
+
inputShape: {
|
|
64
|
+
...paging,
|
|
65
|
+
status: statusFilter,
|
|
66
|
+
currency: z
|
|
67
|
+
.string()
|
|
68
|
+
.optional()
|
|
69
|
+
.describe('Reward coin type, e.g. 0x…::cred::CRED.'),
|
|
70
|
+
minReward: u64.optional().describe('Minimum reward, raw base units.'),
|
|
71
|
+
sourceHubId: objectId.optional().describe('Hub the cargo is at.'),
|
|
72
|
+
destinationHubId: objectId
|
|
73
|
+
.optional()
|
|
74
|
+
.describe('Hub the wanted items must reach.'),
|
|
75
|
+
cargoCollectionId: objectId.optional(),
|
|
76
|
+
wantCollectionId: objectId.optional(),
|
|
77
|
+
cargoAssetId: z
|
|
78
|
+
.string()
|
|
79
|
+
.optional()
|
|
80
|
+
.describe('Item asset id in the cargo.'),
|
|
81
|
+
wantAssetId: z
|
|
82
|
+
.string()
|
|
83
|
+
.optional()
|
|
84
|
+
.describe('Item asset id among the wanted items.'),
|
|
85
|
+
lister: suiAddress.optional(),
|
|
86
|
+
hauler: suiAddress.optional(),
|
|
87
|
+
orgId: objectId
|
|
88
|
+
.optional()
|
|
89
|
+
.describe('Agreements gated to or posted for this organization.'),
|
|
90
|
+
gated: z
|
|
91
|
+
.boolean()
|
|
92
|
+
.optional()
|
|
93
|
+
.describe('Only agreements with (true) or without (false) a claim gate.'),
|
|
94
|
+
claimableBy: suiAddress
|
|
95
|
+
.optional()
|
|
96
|
+
.describe('Report eligibility for this address on every row.'),
|
|
97
|
+
acceptDeadlineBefore: z
|
|
98
|
+
.number()
|
|
99
|
+
.int()
|
|
100
|
+
.positive()
|
|
101
|
+
.optional()
|
|
102
|
+
.describe('Unix ms: only agreements whose accept deadline is earlier.'),
|
|
103
|
+
sort: z
|
|
104
|
+
.enum([
|
|
105
|
+
'posted_desc',
|
|
106
|
+
'reward_desc',
|
|
107
|
+
'accept_deadline_asc',
|
|
108
|
+
'delivery_deadline_asc',
|
|
109
|
+
])
|
|
110
|
+
.optional(),
|
|
111
|
+
},
|
|
112
|
+
handler: async (ctx, args) => ok(await ctx.readClient().hauling.agreements(args)),
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'hauling_agreement',
|
|
116
|
+
title: 'Get a hauling agreement',
|
|
117
|
+
description: 'One hauling agreement in full: parties, cargo and wanted items with their hubs, reward, collateral and deadlines, accept requirements (claim gates listing players, machine keys and organizations), the lister cap, proceeds, fees, claims and a timeline of events. Pass viewer to add that address’s roles and claim plan (how it would satisfy each gate). Fails with AgreementNotFound for an unknown id. ' +
|
|
118
|
+
AMOUNTS +
|
|
119
|
+
' Costs 30 CU.',
|
|
120
|
+
kind: 'read',
|
|
121
|
+
sdkPath: 'hauling.agreement',
|
|
122
|
+
inputShape: {
|
|
123
|
+
agreementId: objectId.describe('The agreement object id.'),
|
|
124
|
+
viewer: suiAddress
|
|
125
|
+
.optional()
|
|
126
|
+
.describe('Address to report roles and a claim plan for.'),
|
|
127
|
+
...minCheckpoint,
|
|
128
|
+
},
|
|
129
|
+
handler: async (ctx, args) => ok(await ctx.readClient().hauling.agreement(args)),
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'hauling_config',
|
|
133
|
+
title: 'Get the hauling protocol config',
|
|
134
|
+
description: 'What posting a hauling agreement costs and accepts: the approved reward currencies (with symbol and decimals), the flat posting fee, the delivery fee in basis points, the treasury, and recent admin changes. Fails with IndexerError (503 upstream) until the indexer has seen the first config. Costs 20 CU.',
|
|
135
|
+
kind: 'read',
|
|
136
|
+
sdkPath: 'hauling.config',
|
|
137
|
+
inputShape: minCheckpoint,
|
|
138
|
+
handler: async (ctx, args) => ok(await ctx.readClient().hauling.config(args)),
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: 'hauling_stats',
|
|
142
|
+
title: 'Get hauling protocol stats',
|
|
143
|
+
description: 'Protocol-wide hauling stats: agreements by status, volume per currency (rewards escrowed and paid, delivery fees, collateral forfeited), posting fees per fee coin, and the ten busiest hub-to-hub lanes. Cached for 30 seconds upstream. Costs 50 CU.',
|
|
144
|
+
kind: 'read',
|
|
145
|
+
sdkPath: 'hauling.stats',
|
|
146
|
+
inputShape: minCheckpoint,
|
|
147
|
+
handler: async (ctx, args) => ok(await ctx.readClient().hauling.stats(args)),
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'hauling_org_agreements',
|
|
151
|
+
title: 'List an organization’s hauling agreements',
|
|
152
|
+
description: 'Hauling agreements related to an organization, newest first: gated_to (default) lists those its board members may claim, claimed_via those accepted through it, posted_for those posted on its behalf. Fails with OrgNotFound for an unknown organization. ' +
|
|
153
|
+
AMOUNTS +
|
|
154
|
+
' Costs 30 CU.',
|
|
155
|
+
kind: 'read',
|
|
156
|
+
sdkPath: 'hauling.orgAgreements',
|
|
157
|
+
inputShape: {
|
|
158
|
+
orgId: objectId.describe('Organization (OU) object id.'),
|
|
159
|
+
relation: z.enum(['gated_to', 'claimed_via', 'posted_for']).optional(),
|
|
160
|
+
status: statusFilter,
|
|
161
|
+
...paging,
|
|
162
|
+
},
|
|
163
|
+
handler: async (ctx, args) => ok(await ctx.readClient().hauling.orgAgreements(args)),
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: 'hauling_player_agreements',
|
|
167
|
+
title: 'List a player’s hauling agreements',
|
|
168
|
+
description: 'Hauling agreements an address plays a part in, newest first — as lister, cap_holder, beneficiary, hauler, or claimed_via_org (accepted through an organization whose board it sits on). Each row’s viewerRoles says which. Filter with role and status. ' +
|
|
169
|
+
AMOUNTS +
|
|
170
|
+
' Costs 50 CU.',
|
|
171
|
+
kind: 'read',
|
|
172
|
+
sdkPath: 'hauling.playerAgreements',
|
|
173
|
+
inputShape: {
|
|
174
|
+
address,
|
|
175
|
+
role: z
|
|
176
|
+
.union([z.enum(ROLES), z.array(z.enum(ROLES)).min(1)])
|
|
177
|
+
.optional()
|
|
178
|
+
.describe('One role or several.'),
|
|
179
|
+
status: statusFilter,
|
|
180
|
+
...paging,
|
|
181
|
+
},
|
|
182
|
+
handler: async (ctx, args) => ok(await ctx.readClient().hauling.playerAgreements(args)),
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'hauling_actions',
|
|
186
|
+
title: 'Get a player’s hauling to-do list',
|
|
187
|
+
description: 'What an address should do next across its hauling agreements: collect proceeds its lister cap received, delete a spent cap, cancel a listing nobody accepted in time, deliver a job before its deadline (soonest first), or default an overdue job it is owed. Each item names the Move call (moveCall) and its type argument. Costs 30 CU.',
|
|
188
|
+
kind: 'read',
|
|
189
|
+
sdkPath: 'hauling.actions',
|
|
190
|
+
inputShape: { address, ...minCheckpoint },
|
|
191
|
+
handler: async (ctx, args) => ok(await ctx.readClient().hauling.actions(args)),
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'hauling_claimable',
|
|
195
|
+
title: 'List hauling agreements a player can accept',
|
|
196
|
+
description: 'Open agreements, before their accept deadline, that an address can accept: no claim gate, or every gate lists the address (as a player or machine key) or an organization whose board it sits on. Each comes with its claim plan — per requirement, whether to satisfy it directly or through an organization. includeUnknown also lists agreements with rules the indexer cannot evaluate. ' +
|
|
197
|
+
AMOUNTS +
|
|
198
|
+
' Costs 50 CU.',
|
|
199
|
+
kind: 'read',
|
|
200
|
+
sdkPath: 'hauling.claimable',
|
|
201
|
+
inputShape: {
|
|
202
|
+
address,
|
|
203
|
+
includeUnknown: z.boolean().optional(),
|
|
204
|
+
...paging,
|
|
205
|
+
},
|
|
206
|
+
handler: async (ctx, args) => ok(await ctx.readClient().hauling.claimable(args)),
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'hauling_reputation',
|
|
210
|
+
title: 'Get a player’s hauling record',
|
|
211
|
+
description: 'An address’s hauling record. As hauler: jobs accepted, in progress, overdue, delivered, defaulted and forfeited, the completion rate (null before any job finishes), and net rewards and collateral lost per currency. As lister: agreements posted and how they went. Counts are by wallet address. Costs 30 CU.',
|
|
212
|
+
kind: 'read',
|
|
213
|
+
sdkPath: 'hauling.reputation',
|
|
214
|
+
inputShape: { address, ...minCheckpoint },
|
|
215
|
+
handler: async (ctx, args) => ok(await ctx.readClient().hauling.reputation(args)),
|
|
216
|
+
},
|
|
217
|
+
];
|
|
218
|
+
//# sourceMappingURL=hauling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hauling.js","sourceRoot":"","sources":["../../src/tools/hauling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,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