@suigar/mcp 0.1.0 → 0.1.1
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 +19 -0
- package/dist/bin.cjs +1 -1
- package/dist/bin.mjs +1 -1
- package/dist/index.cjs +43 -50
- package/dist/index.d.cts +818 -8
- package/dist/index.d.mts +818 -8
- package/dist/index.mjs +1 -8
- package/{node_modules/@suigar/sui-rpc-pool/dist/index.cjs → dist/server-BD-123-u.mjs} +2084 -671
- package/{node_modules/@suigar/sui-rpc-pool/dist/index.mjs → dist/server-Cmo8UaHE.cjs} +2341 -645
- package/dist/server.cjs +3 -432
- package/dist/server.mjs +1 -430
- package/package.json +75 -61
- package/dist/client.cjs +0 -46
- package/dist/client.d.cts +0 -17
- package/dist/client.d.mts +0 -17
- package/dist/client.mjs +0 -43
- 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/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/tools.cjs +0 -617
- package/dist/tools.d.cts +0 -158
- package/dist/tools.d.mts +0 -158
- package/dist/tools.mjs +0 -608
- 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/dist/types.d.mts +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.d.cts +0 -465
- package/node_modules/@suigar/sui-rpc-pool/dist/index.d.mts +0 -465
- package/node_modules/@suigar/sui-rpc-pool/package.json +0 -31
package/dist/tools.d.cts
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { GameMcpSupport } from "./mcp-support.cjs";
|
|
2
|
-
import { ConfigInspection, ReadOnlyPlan, SuigarNetwork, TransactionSummary } from "./types.cjs";
|
|
3
|
-
|
|
4
|
-
//#region src/tools.d.ts
|
|
5
|
-
declare const readConfigTool: (input?: unknown) => Promise<ConfigInspection>;
|
|
6
|
-
declare const readGameMetadataTool: (input?: unknown) => Promise<{
|
|
7
|
-
config: ConfigInspection;
|
|
8
|
-
game: {
|
|
9
|
-
mcpSupport: GameMcpSupport;
|
|
10
|
-
packageId: string | null;
|
|
11
|
-
settingsId: string | null;
|
|
12
|
-
onchainSettings: {
|
|
13
|
-
definition: import("@suigar/game-registry").OnchainGameSettingsDefinition;
|
|
14
|
-
objectType: string;
|
|
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
|
-
}>;
|
|
157
|
-
//#endregion
|
|
158
|
-
export { buildCoinflipTransactionTool, buildLimboTransactionTool, buildPlinkoTransactionTool, buildPvpCoinflipCancelTransactionTool, buildPvpCoinflipCreateTransactionTool, buildPvpCoinflipJoinTransactionTool, buildRangeTransactionTool, buildWheelTransactionTool, readConfigTool, readGameMetadataTool };
|
package/dist/tools.d.mts
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { GameMcpSupport } from "./mcp-support.mjs";
|
|
2
|
-
import { ConfigInspection, ReadOnlyPlan, SuigarNetwork, TransactionSummary } from "./types.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/tools.d.ts
|
|
5
|
-
declare const readConfigTool: (input?: unknown) => Promise<ConfigInspection>;
|
|
6
|
-
declare const readGameMetadataTool: (input?: unknown) => Promise<{
|
|
7
|
-
config: ConfigInspection;
|
|
8
|
-
game: {
|
|
9
|
-
mcpSupport: GameMcpSupport;
|
|
10
|
-
packageId: string | null;
|
|
11
|
-
settingsId: string | null;
|
|
12
|
-
onchainSettings: {
|
|
13
|
-
definition: import("@suigar/game-registry").OnchainGameSettingsDefinition;
|
|
14
|
-
objectType: string;
|
|
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
|
-
}>;
|
|
157
|
-
//#endregion
|
|
158
|
-
export { buildCoinflipTransactionTool, buildLimboTransactionTool, buildPlinkoTransactionTool, buildPvpCoinflipCancelTransactionTool, buildPvpCoinflipCreateTransactionTool, buildPvpCoinflipJoinTransactionTool, buildRangeTransactionTool, buildWheelTransactionTool, readConfigTool, readGameMetadataTool };
|