@suigar/mcp 0.1.0 → 0.2.0-beta.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/CHANGELOG.md +37 -0
- package/LICENSE +201 -0
- package/README.md +79 -110
- package/dist/app/index.html +181 -0
- package/dist/bin.mjs +3 -7
- package/dist/bin.mjs.map +1 -0
- package/dist/client.d.mts +41 -11
- package/dist/client.d.mts.map +1 -0
- package/dist/client.mjs +107 -34
- package/dist/client.mjs.map +1 -0
- package/dist/dry-run.mjs +163 -0
- package/dist/dry-run.mjs.map +1 -0
- package/dist/format.mjs +24 -0
- package/dist/format.mjs.map +1 -0
- package/dist/index.d.mts +5 -9
- package/dist/index.mjs +4 -8
- package/dist/schemas.d.mts +642 -0
- package/dist/schemas.d.mts.map +1 -0
- package/dist/schemas.mjs +113 -0
- package/dist/schemas.mjs.map +1 -0
- package/dist/server.d.mts +21 -69
- package/dist/server.d.mts.map +1 -0
- package/dist/server.mjs +172 -411
- package/dist/server.mjs.map +1 -0
- package/dist/tools.d.mts +14 -155
- package/dist/tools.d.mts.map +1 -0
- package/dist/tools.mjs +297 -553
- package/dist/tools.mjs.map +1 -0
- package/dist/types.d.mts +109 -83
- package/dist/types.d.mts.map +1 -0
- package/package.json +83 -61
- package/dist/bin.cjs +0 -11
- package/dist/bin.d.cts +0 -1
- package/dist/client.cjs +0 -46
- package/dist/client.d.cts +0 -17
- package/dist/coin.cjs +0 -86
- package/dist/coin.d.cts +0 -35
- package/dist/coin.d.mts +0 -35
- package/dist/coin.mjs +0 -86
- package/dist/config.cjs +0 -183
- package/dist/config.d.cts +0 -15
- package/dist/config.d.mts +0 -15
- package/dist/config.mjs +0 -174
- package/dist/index.cjs +0 -53
- package/dist/index.d.cts +0 -10
- package/dist/mcp-support.cjs +0 -62
- package/dist/mcp-support.d.cts +0 -16
- package/dist/mcp-support.d.mts +0 -16
- package/dist/mcp-support.mjs +0 -60
- package/dist/metadata.cjs +0 -51
- package/dist/metadata.d.cts +0 -52
- package/dist/metadata.d.mts +0 -52
- package/dist/metadata.mjs +0 -47
- package/dist/server.cjs +0 -433
- package/dist/server.d.cts +0 -73
- package/dist/tools.cjs +0 -617
- package/dist/tools.d.cts +0 -158
- package/dist/transactions.cjs +0 -294
- package/dist/transactions.d.cts +0 -40
- package/dist/transactions.d.mts +0 -40
- package/dist/transactions.mjs +0 -286
- package/dist/types.d.cts +0 -111
- package/node_modules/@suigar/currency-registry/dist/index.cjs +0 -121
- package/node_modules/@suigar/currency-registry/dist/index.d.cts +0 -50
- package/node_modules/@suigar/currency-registry/dist/index.d.mts +0 -50
- package/node_modules/@suigar/currency-registry/dist/index.mjs +0 -110
- package/node_modules/@suigar/currency-registry/package.json +0 -31
- package/node_modules/@suigar/game-registry/dist/index.cjs +0 -310
- package/node_modules/@suigar/game-registry/dist/index.d.cts +0 -65
- package/node_modules/@suigar/game-registry/dist/index.d.mts +0 -65
- package/node_modules/@suigar/game-registry/dist/index.mjs +0 -292
- package/node_modules/@suigar/game-registry/package.json +0 -31
- package/node_modules/@suigar/sui-rpc-pool/dist/index.cjs +0 -45590
- package/node_modules/@suigar/sui-rpc-pool/dist/index.d.cts +0 -465
- package/node_modules/@suigar/sui-rpc-pool/dist/index.d.mts +0 -465
- package/node_modules/@suigar/sui-rpc-pool/dist/index.mjs +0 -45570
- package/node_modules/@suigar/sui-rpc-pool/package.json +0 -31
package/dist/tools.d.mts
CHANGED
|
@@ -1,158 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ToolTextResult } from "./types.mjs";
|
|
2
|
+
import { CoinflipInput, ConfigIdInput, LimboInput, PvpCoinflipCancelInput, PvpCoinflipCreateInput, PvpCoinflipJoinInput, RangeInput, ReadConfigInput, ReadGameMetadataInput } from "./schemas.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/tools.d.ts
|
|
5
|
-
declare const readConfigTool: (input?:
|
|
6
|
-
declare const readGameMetadataTool: (input?:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
parametersTypePrefix: string;
|
|
16
|
-
} | null;
|
|
17
|
-
id: import("@suigar/game-registry").GameId;
|
|
18
|
-
name: string;
|
|
19
|
-
module: import("@suigar/game-registry").GameModule;
|
|
20
|
-
eventTypeName: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
aliases: string[];
|
|
23
|
-
tags?: string[];
|
|
24
|
-
status?: import("@suigar/game-registry").GameStatus;
|
|
25
|
-
updatedAt?: string;
|
|
26
|
-
} | null;
|
|
27
|
-
currency: {
|
|
28
|
-
coinType: string;
|
|
29
|
-
configuredCurrencies: import("@suigar/currency-registry").ConfiguredCurrencyEntry[];
|
|
30
|
-
metadata: {
|
|
31
|
-
symbol: string;
|
|
32
|
-
name: string;
|
|
33
|
-
decimals: number;
|
|
34
|
-
};
|
|
35
|
-
} | null;
|
|
36
|
-
}>;
|
|
37
|
-
declare const buildCoinflipTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
38
|
-
mode: "dry-run";
|
|
39
|
-
network: SuigarNetwork;
|
|
40
|
-
config: ConfigInspection;
|
|
41
|
-
summary: TransactionSummary;
|
|
42
|
-
dryRun: unknown;
|
|
43
|
-
transactionBytesBase64?: undefined;
|
|
44
|
-
} | {
|
|
45
|
-
mode: "build" | "read-only";
|
|
46
|
-
network: SuigarNetwork;
|
|
47
|
-
config: ConfigInspection;
|
|
48
|
-
summary: TransactionSummary;
|
|
49
|
-
transactionBytesBase64: string;
|
|
50
|
-
dryRun?: undefined;
|
|
51
|
-
}>;
|
|
52
|
-
declare const buildLimboTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
53
|
-
mode: "dry-run";
|
|
54
|
-
network: SuigarNetwork;
|
|
55
|
-
config: ConfigInspection;
|
|
56
|
-
summary: TransactionSummary;
|
|
57
|
-
dryRun: unknown;
|
|
58
|
-
transactionBytesBase64?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
mode: "build" | "read-only";
|
|
61
|
-
network: SuigarNetwork;
|
|
62
|
-
config: ConfigInspection;
|
|
63
|
-
summary: TransactionSummary;
|
|
64
|
-
transactionBytesBase64: string;
|
|
65
|
-
dryRun?: undefined;
|
|
66
|
-
}>;
|
|
67
|
-
declare const buildPlinkoTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
68
|
-
mode: "dry-run";
|
|
69
|
-
network: SuigarNetwork;
|
|
70
|
-
config: ConfigInspection;
|
|
71
|
-
summary: TransactionSummary;
|
|
72
|
-
dryRun: unknown;
|
|
73
|
-
transactionBytesBase64?: undefined;
|
|
74
|
-
} | {
|
|
75
|
-
mode: "build" | "read-only";
|
|
76
|
-
network: SuigarNetwork;
|
|
77
|
-
config: ConfigInspection;
|
|
78
|
-
summary: TransactionSummary;
|
|
79
|
-
transactionBytesBase64: string;
|
|
80
|
-
dryRun?: undefined;
|
|
81
|
-
}>;
|
|
82
|
-
declare const buildWheelTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
83
|
-
mode: "dry-run";
|
|
84
|
-
network: SuigarNetwork;
|
|
85
|
-
config: ConfigInspection;
|
|
86
|
-
summary: TransactionSummary;
|
|
87
|
-
dryRun: unknown;
|
|
88
|
-
transactionBytesBase64?: undefined;
|
|
89
|
-
} | {
|
|
90
|
-
mode: "build" | "read-only";
|
|
91
|
-
network: SuigarNetwork;
|
|
92
|
-
config: ConfigInspection;
|
|
93
|
-
summary: TransactionSummary;
|
|
94
|
-
transactionBytesBase64: string;
|
|
95
|
-
dryRun?: undefined;
|
|
96
|
-
}>;
|
|
97
|
-
declare const buildRangeTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
98
|
-
mode: "dry-run";
|
|
99
|
-
network: SuigarNetwork;
|
|
100
|
-
config: ConfigInspection;
|
|
101
|
-
summary: TransactionSummary;
|
|
102
|
-
dryRun: unknown;
|
|
103
|
-
transactionBytesBase64?: undefined;
|
|
104
|
-
} | {
|
|
105
|
-
mode: "build" | "read-only";
|
|
106
|
-
network: SuigarNetwork;
|
|
107
|
-
config: ConfigInspection;
|
|
108
|
-
summary: TransactionSummary;
|
|
109
|
-
transactionBytesBase64: string;
|
|
110
|
-
dryRun?: undefined;
|
|
111
|
-
}>;
|
|
112
|
-
declare const buildPvpCoinflipCreateTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
113
|
-
mode: "dry-run";
|
|
114
|
-
network: SuigarNetwork;
|
|
115
|
-
config: ConfigInspection;
|
|
116
|
-
summary: TransactionSummary;
|
|
117
|
-
dryRun: unknown;
|
|
118
|
-
transactionBytesBase64?: undefined;
|
|
119
|
-
} | {
|
|
120
|
-
mode: "build" | "read-only";
|
|
121
|
-
network: SuigarNetwork;
|
|
122
|
-
config: ConfigInspection;
|
|
123
|
-
summary: TransactionSummary;
|
|
124
|
-
transactionBytesBase64: string;
|
|
125
|
-
dryRun?: undefined;
|
|
126
|
-
}>;
|
|
127
|
-
declare const buildPvpCoinflipJoinTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
128
|
-
mode: "dry-run";
|
|
129
|
-
network: SuigarNetwork;
|
|
130
|
-
config: ConfigInspection;
|
|
131
|
-
summary: TransactionSummary;
|
|
132
|
-
dryRun: unknown;
|
|
133
|
-
transactionBytesBase64?: undefined;
|
|
134
|
-
} | {
|
|
135
|
-
mode: "build" | "read-only";
|
|
136
|
-
network: SuigarNetwork;
|
|
137
|
-
config: ConfigInspection;
|
|
138
|
-
summary: TransactionSummary;
|
|
139
|
-
transactionBytesBase64: string;
|
|
140
|
-
dryRun?: undefined;
|
|
141
|
-
}>;
|
|
142
|
-
declare const buildPvpCoinflipCancelTransactionTool: (input?: unknown) => Promise<ReadOnlyPlan | {
|
|
143
|
-
mode: "dry-run";
|
|
144
|
-
network: SuigarNetwork;
|
|
145
|
-
config: ConfigInspection;
|
|
146
|
-
summary: TransactionSummary;
|
|
147
|
-
dryRun: unknown;
|
|
148
|
-
transactionBytesBase64?: undefined;
|
|
149
|
-
} | {
|
|
150
|
-
mode: "build" | "read-only";
|
|
151
|
-
network: SuigarNetwork;
|
|
152
|
-
config: ConfigInspection;
|
|
153
|
-
summary: TransactionSummary;
|
|
154
|
-
transactionBytesBase64: string;
|
|
155
|
-
dryRun?: undefined;
|
|
156
|
-
}>;
|
|
5
|
+
declare const readConfigTool: (input?: ReadConfigInput) => Promise<ToolTextResult>;
|
|
6
|
+
declare const readGameMetadataTool: (input?: ReadGameMetadataInput) => Promise<ToolTextResult>;
|
|
7
|
+
declare const buildCoinflipTransactionTool: (input?: CoinflipInput) => Promise<ToolTextResult>;
|
|
8
|
+
declare const buildLimboTransactionTool: (input?: LimboInput) => Promise<ToolTextResult>;
|
|
9
|
+
declare const buildPlinkoTransactionTool: (input?: ConfigIdInput) => Promise<ToolTextResult>;
|
|
10
|
+
declare const buildWheelTransactionTool: (input?: ConfigIdInput) => Promise<ToolTextResult>;
|
|
11
|
+
declare const buildRangeTransactionTool: (input?: RangeInput) => Promise<ToolTextResult>;
|
|
12
|
+
declare const buildPvpCoinflipCreateTransactionTool: (input?: PvpCoinflipCreateInput) => Promise<ToolTextResult>;
|
|
13
|
+
declare const buildPvpCoinflipJoinTransactionTool: (input?: PvpCoinflipJoinInput) => Promise<ToolTextResult>;
|
|
14
|
+
declare const buildPvpCoinflipCancelTransactionTool: (input?: PvpCoinflipCancelInput) => Promise<ToolTextResult>;
|
|
157
15
|
//#endregion
|
|
158
|
-
export { buildCoinflipTransactionTool, buildLimboTransactionTool, buildPlinkoTransactionTool, buildPvpCoinflipCancelTransactionTool, buildPvpCoinflipCreateTransactionTool, buildPvpCoinflipJoinTransactionTool, buildRangeTransactionTool, buildWheelTransactionTool, readConfigTool, readGameMetadataTool };
|
|
16
|
+
export { buildCoinflipTransactionTool, buildLimboTransactionTool, buildPlinkoTransactionTool, buildPvpCoinflipCancelTransactionTool, buildPvpCoinflipCreateTransactionTool, buildPvpCoinflipJoinTransactionTool, buildRangeTransactionTool, buildWheelTransactionTool, readConfigTool, readGameMetadataTool };
|
|
17
|
+
//# sourceMappingURL=tools.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.mts","names":[],"sources":["../src/tools.ts"],"mappings":";;;;cAmVa,cAAA,GAAwB,KAAA,GAAO,eAAA,KAAoB,OAAA,CAAA,cAAA;AAAA,cASnD,oBAAA,GACZ,KAAA,GAAO,qBAAA,KAA0B,OAAA,CAAA,cAAA;AAAA,cA0BrB,4BAAA,GACZ,KAAA,GAAO,aAAA,KAAkB,OAAA,CAAA,cAAA;AAAA,cA6Bb,yBAAA,GAAmC,KAAA,GAAO,UAAA,KAAe,OAAA,CAAA,cAAA;AAAA,cA4DzD,0BAAA,GAA8B,KAAA,GAAO,aAAA,KAAkB,OAAA,CAAA,cAAA;AAAA,cAGvD,yBAAA,GAA6B,KAAA,GAAO,aAAA,KAAkB,OAAA,CAAA,cAAA;AAAA,cAGtD,yBAAA,GAAmC,KAAA,GAAO,UAAA,KAAe,OAAA,CAAA,cAAA;AAAA,cAgCzD,qCAAA,GACZ,KAAA,GAAO,sBAAA,KAA2B,OAAA,CAAA,cAAA;AAAA,cA2CtB,mCAAA,GACZ,KAAA,GAAO,oBAAA,KAAyB,OAAA,CAAA,cAAA;AAAA,cA8BpB,qCAAA,GACZ,KAAA,GAAO,sBAAA,KAA2B,OAAA,CAAA,cAAA"}
|