@gala-chain/launchpad-mcp-server 5.0.5-beta.24 → 5.1.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/LICENSE +21 -0
- package/README.md +48 -29
- package/dist/constants/mcpToolNames.d.ts +15 -0
- package/dist/constants/mcpToolNames.d.ts.map +1 -1
- package/dist/constants/mcpToolNames.js +13 -1
- package/dist/constants/mcpToolNames.js.map +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.d.ts.map +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/generated/version.js.map +1 -1
- package/dist/prompts/account.d.ts +0 -6
- package/dist/prompts/account.d.ts.map +1 -1
- package/dist/prompts/account.js +1 -34
- package/dist/prompts/account.js.map +1 -1
- package/dist/prompts/ai-moderation.d.ts +36 -0
- package/dist/prompts/ai-moderation.d.ts.map +1 -0
- package/dist/prompts/ai-moderation.js +198 -0
- package/dist/prompts/ai-moderation.js.map +1 -0
- package/dist/prompts/chat.d.ts.map +1 -1
- package/dist/prompts/chat.js +6 -1
- package/dist/prompts/chat.js.map +1 -1
- package/dist/prompts/factories/reaction-prompt-factory.d.ts.map +1 -1
- package/dist/prompts/factories/reaction-prompt-factory.js +16 -6
- package/dist/prompts/factories/reaction-prompt-factory.js.map +1 -1
- package/dist/prompts/global-feed.d.ts +24 -0
- package/dist/prompts/global-feed.d.ts.map +1 -0
- package/dist/prompts/global-feed.js +89 -0
- package/dist/prompts/global-feed.js.map +1 -0
- package/dist/prompts/holders.d.ts +31 -0
- package/dist/prompts/holders.d.ts.map +1 -0
- package/dist/prompts/holders.js +117 -0
- package/dist/prompts/holders.js.map +1 -0
- package/dist/prompts/index.d.ts +11 -2
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +47 -1
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/manifest.d.ts +2 -2
- package/dist/prompts/manifest.d.ts.map +1 -1
- package/dist/prompts/manifest.js +406 -21
- package/dist/prompts/manifest.js.map +1 -1
- package/dist/prompts/messages.d.ts +48 -0
- package/dist/prompts/messages.d.ts.map +1 -0
- package/dist/prompts/messages.js +333 -0
- package/dist/prompts/messages.js.map +1 -0
- package/dist/prompts/oembed.d.ts +24 -0
- package/dist/prompts/oembed.d.ts.map +1 -0
- package/dist/prompts/oembed.js +127 -0
- package/dist/prompts/oembed.js.map +1 -0
- package/dist/prompts/platform-stats.d.ts +16 -0
- package/dist/prompts/platform-stats.d.ts.map +1 -0
- package/dist/prompts/platform-stats.js +42 -0
- package/dist/prompts/platform-stats.js.map +1 -0
- package/dist/prompts/restricted-names.d.ts +22 -0
- package/dist/prompts/restricted-names.d.ts.map +1 -0
- package/dist/prompts/restricted-names.js +89 -0
- package/dist/prompts/restricted-names.js.map +1 -0
- package/dist/prompts/websocket-admin.d.ts +100 -0
- package/dist/prompts/websocket-admin.d.ts.map +1 -0
- package/dist/prompts/websocket-admin.js +758 -0
- package/dist/prompts/websocket-admin.js.map +1 -0
- package/dist/prompts/weekly-challenge.d.ts +24 -0
- package/dist/prompts/weekly-challenge.d.ts.map +1 -0
- package/dist/prompts/weekly-challenge.js +100 -0
- package/dist/prompts/weekly-challenge.js.map +1 -0
- package/dist/schemas/common-schemas.d.ts +5 -4
- package/dist/schemas/common-schemas.d.ts.map +1 -1
- package/dist/schemas/common-schemas.js +5 -4
- package/dist/schemas/common-schemas.js.map +1 -1
- package/dist/server.d.ts +1 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +42 -22
- package/dist/server.js.map +1 -1
- package/dist/tools/ai-moderation/index.d.ts +41 -0
- package/dist/tools/ai-moderation/index.d.ts.map +1 -0
- package/dist/tools/ai-moderation/index.js +196 -0
- package/dist/tools/ai-moderation/index.js.map +1 -0
- package/dist/tools/auth/index.d.ts.map +1 -1
- package/dist/tools/auth/index.js +17 -8
- package/dist/tools/auth/index.js.map +1 -1
- package/dist/tools/balance/index.d.ts +0 -1
- package/dist/tools/balance/index.d.ts.map +1 -1
- package/dist/tools/balance/index.js +1 -20
- package/dist/tools/balance/index.js.map +1 -1
- package/dist/tools/ban/onBanEnforcement.d.ts +1 -1
- package/dist/tools/ban/onBanEnforcement.d.ts.map +1 -1
- package/dist/tools/bridge/helpers/external-chain-balance-tools.d.ts +6 -6
- package/dist/tools/bridge/helpers/external-chain-balance-tools.d.ts.map +1 -1
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js +3 -3
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js.map +1 -1
- package/dist/tools/bridge/index.d.ts.map +1 -1
- package/dist/tools/bridge/index.js +2 -0
- package/dist/tools/bridge/index.js.map +1 -1
- package/dist/tools/chat/index.d.ts +6 -0
- package/dist/tools/chat/index.d.ts.map +1 -1
- package/dist/tools/chat/index.js +39 -1
- package/dist/tools/chat/index.js.map +1 -1
- package/dist/tools/comments/onCommentCreated.d.ts +1 -1
- package/dist/tools/comments/onCommentCreated.d.ts.map +1 -1
- package/dist/tools/content-flags/index.d.ts.map +1 -1
- package/dist/tools/content-flags/index.js +10 -2
- package/dist/tools/content-flags/index.js.map +1 -1
- package/dist/tools/creation/index.d.ts +1 -1
- package/dist/tools/creation/index.d.ts.map +1 -1
- package/dist/tools/creation/index.js +5 -0
- package/dist/tools/creation/index.js.map +1 -1
- package/dist/tools/dex/helpers.d.ts +4 -40
- package/dist/tools/dex/helpers.d.ts.map +1 -1
- package/dist/tools/dex/helpers.js +10 -0
- package/dist/tools/dex/helpers.js.map +1 -1
- package/dist/tools/dex/index.d.ts +3 -3
- package/dist/tools/dex/index.js +7 -7
- package/dist/tools/dex/index.js.map +1 -1
- package/dist/tools/dex-liquidity/index.js +8 -8
- package/dist/tools/dex-liquidity/index.js.map +1 -1
- package/dist/tools/dex-pools/index.d.ts.map +1 -1
- package/dist/tools/dex-pools/index.js +7 -6
- package/dist/tools/dex-pools/index.js.map +1 -1
- package/dist/tools/global-feed/monitorGlobalFeedEvents.d.ts.map +1 -1
- package/dist/tools/global-feed/monitorGlobalFeedEvents.js +16 -7
- package/dist/tools/global-feed/monitorGlobalFeedEvents.js.map +1 -1
- package/dist/tools/handler-factories.d.ts +1 -1
- package/dist/tools/handler-factories.d.ts.map +1 -1
- package/dist/tools/handler-factories.js +11 -7
- package/dist/tools/handler-factories.js.map +1 -1
- package/dist/tools/holders/index.d.ts.map +1 -1
- package/dist/tools/holders/index.js +9 -0
- package/dist/tools/holders/index.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +45 -9
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/manifest.d.ts +3 -3
- package/dist/tools/manifest.d.ts.map +1 -1
- package/dist/tools/manifest.js +844 -253
- package/dist/tools/manifest.js.map +1 -1
- package/dist/tools/messages/fetchMessages.d.ts.map +1 -1
- package/dist/tools/messages/fetchMessages.js +4 -0
- package/dist/tools/messages/fetchMessages.js.map +1 -1
- package/dist/tools/messages/getMessageStats.d.ts +16 -0
- package/dist/tools/messages/getMessageStats.d.ts.map +1 -0
- package/dist/tools/messages/getMessageStats.js +47 -0
- package/dist/tools/messages/getMessageStats.js.map +1 -0
- package/dist/tools/messages/index.d.ts +6 -2
- package/dist/tools/messages/index.d.ts.map +1 -1
- package/dist/tools/messages/index.js +9 -2
- package/dist/tools/messages/index.js.map +1 -1
- package/dist/tools/moderators/index.d.ts +4 -0
- package/dist/tools/moderators/index.d.ts.map +1 -1
- package/dist/tools/moderators/index.js +35 -1
- package/dist/tools/moderators/index.js.map +1 -1
- package/dist/tools/moderators/onModeratorChanged.d.ts +1 -1
- package/dist/tools/moderators/onModeratorChanged.d.ts.map +1 -1
- package/dist/tools/nft/index.d.ts +2 -2
- package/dist/tools/nft/index.d.ts.map +1 -1
- package/dist/tools/nft/index.js +1 -1
- package/dist/tools/nft/index.js.map +1 -1
- package/dist/tools/notifications/index.d.ts +39 -0
- package/dist/tools/notifications/index.d.ts.map +1 -0
- package/dist/tools/notifications/index.js +196 -0
- package/dist/tools/notifications/index.js.map +1 -0
- package/dist/tools/oembed/index.d.ts +31 -0
- package/dist/tools/oembed/index.d.ts.map +1 -0
- package/dist/tools/oembed/index.js +113 -0
- package/dist/tools/oembed/index.js.map +1 -0
- package/dist/tools/overseers/cache-management.d.ts +4 -0
- package/dist/tools/overseers/cache-management.d.ts.map +1 -1
- package/dist/tools/overseers/cache-management.js +41 -1
- package/dist/tools/overseers/cache-management.js.map +1 -1
- package/dist/tools/overseers/index.d.ts +17 -0
- package/dist/tools/overseers/index.d.ts.map +1 -1
- package/dist/tools/overseers/index.js +101 -1
- package/dist/tools/overseers/index.js.map +1 -1
- package/dist/tools/overseers/listOverseerUsers.d.ts.map +1 -1
- package/dist/tools/overseers/listOverseerUsers.js +1 -0
- package/dist/tools/overseers/listOverseerUsers.js.map +1 -1
- package/dist/tools/pagination-handler-factory.d.ts.map +1 -1
- package/dist/tools/pagination-handler-factory.js +4 -2
- package/dist/tools/pagination-handler-factory.js.map +1 -1
- package/dist/tools/platform-stats/index.d.ts +21 -0
- package/dist/tools/platform-stats/index.d.ts.map +1 -0
- package/dist/tools/platform-stats/index.js +51 -0
- package/dist/tools/platform-stats/index.js.map +1 -0
- package/dist/tools/pools/fetchPoolDetailsForCalculation.d.ts +1 -1
- package/dist/tools/pools/fetchPoolDetailsForCalculation.d.ts.map +1 -1
- package/dist/tools/pools/index.d.ts +7 -7
- package/dist/tools/pools/index.d.ts.map +1 -1
- package/dist/tools/pools/index.js +4 -2
- package/dist/tools/pools/index.js.map +1 -1
- package/dist/tools/pools/onDexPoolCreation.d.ts +1 -1
- package/dist/tools/pools/onDexPoolCreation.d.ts.map +1 -1
- package/dist/tools/pools/onHolderCountChanged.d.ts +1 -1
- package/dist/tools/pools/onHolderCountChanged.d.ts.map +1 -1
- package/dist/tools/pools/onLaunchpadTokenCreation.d.ts +1 -1
- package/dist/tools/pools/onLaunchpadTokenCreation.d.ts.map +1 -1
- package/dist/tools/pools/onPoolUpdated.d.ts +1 -1
- package/dist/tools/pools/onPoolUpdated.d.ts.map +1 -1
- package/dist/tools/streaming/index.d.ts.map +1 -1
- package/dist/tools/streaming/index.js +4 -3
- package/dist/tools/streaming/index.js.map +1 -1
- package/dist/tools/streaming/setNextLiveStreamCountdown.js +3 -3
- package/dist/tools/streaming/setNextLiveStreamCountdown.js.map +1 -1
- package/dist/tools/token-ban/onTokenBanChanged.d.ts +1 -1
- package/dist/tools/token-ban/onTokenBanChanged.d.ts.map +1 -1
- package/dist/tools/tool-factory.d.ts.map +1 -1
- package/dist/tools/tool-factory.js +1 -0
- package/dist/tools/tool-factory.js.map +1 -1
- package/dist/tools/trades/index.d.ts.map +1 -1
- package/dist/tools/trades/index.js +8 -1
- package/dist/tools/trades/index.js.map +1 -1
- package/dist/tools/trades/onTradeExecuted.d.ts +1 -1
- package/dist/tools/trades/onTradeExecuted.d.ts.map +1 -1
- package/dist/tools/trading/helpers/arg-extractors.d.ts +6 -41
- package/dist/tools/trading/helpers/arg-extractors.d.ts.map +1 -1
- package/dist/tools/trading/helpers/trading-schemas.d.ts +2 -2
- package/dist/tools/trading/helpers/trading-schemas.d.ts.map +1 -1
- package/dist/tools/trading/helpers/trading-schemas.js.map +1 -1
- package/dist/tools/trading/index.d.ts +4 -0
- package/dist/tools/trading/index.d.ts.map +1 -1
- package/dist/tools/trading/index.js +112 -1
- package/dist/tools/trading/index.js.map +1 -1
- package/dist/tools/utils/createSolanaWallet.d.ts +1 -1
- package/dist/tools/utils/createSolanaWallet.d.ts.map +1 -1
- package/dist/tools/utils/createSolanaWallet.js +2 -1
- package/dist/tools/utils/createSolanaWallet.js.map +1 -1
- package/dist/tools/utils/createWallet.d.ts +1 -1
- package/dist/tools/utils/createWallet.d.ts.map +1 -1
- package/dist/tools/utils/createWallet.js +2 -1
- package/dist/tools/utils/createWallet.js.map +1 -1
- package/dist/tools/utils/explainSdkUsage.d.ts +39 -1
- package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
- package/dist/tools/utils/explainSdkUsage.js +1731 -157
- package/dist/tools/utils/explainSdkUsage.js.map +1 -1
- package/dist/tools/utils/explainWebSocketEvents.d.ts.map +1 -1
- package/dist/tools/utils/explainWebSocketEvents.js +6 -4
- package/dist/tools/utils/explainWebSocketEvents.js.map +1 -1
- package/dist/tools/utils/getAddress.d.ts +1 -1
- package/dist/tools/utils/getAddress.d.ts.map +1 -1
- package/dist/tools/utils/getCacheInfo.d.ts +1 -1
- package/dist/tools/utils/getCacheInfo.d.ts.map +1 -1
- package/dist/tools/utils/getConfig.d.ts +1 -1
- package/dist/tools/utils/getConfig.d.ts.map +1 -1
- package/dist/tools/utils/getConfig.js +1 -1
- package/dist/tools/utils/getConfig.js.map +1 -1
- package/dist/tools/utils/getEnvironment.d.ts +1 -1
- package/dist/tools/utils/getEnvironment.d.ts.map +1 -1
- package/dist/tools/utils/getEnvironment.js +1 -1
- package/dist/tools/utils/getEnvironment.js.map +1 -1
- package/dist/tools/utils/getEthereumAddress.d.ts +1 -1
- package/dist/tools/utils/getEthereumAddress.d.ts.map +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.d.ts +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.d.ts.map +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js.map +1 -1
- package/dist/tools/utils/getEventSchema.d.ts.map +1 -1
- package/dist/tools/utils/getEventSchema.js +88 -2
- package/dist/tools/utils/getEventSchema.js.map +1 -1
- package/dist/tools/utils/getPublicKeyFromPrivateKey.d.ts +1 -1
- package/dist/tools/utils/getPublicKeyFromPrivateKey.d.ts.map +1 -1
- package/dist/tools/utils/getPublicKeyFromPrivateKey.js +1 -1
- package/dist/tools/utils/getPublicKeyFromPrivateKey.js.map +1 -1
- package/dist/tools/utils/getUrlByTokenName.d.ts +1 -1
- package/dist/tools/utils/getUrlByTokenName.d.ts.map +1 -1
- package/dist/tools/utils/getUrlByTokenName.js +1 -1
- package/dist/tools/utils/getUrlByTokenName.js.map +1 -1
- package/dist/tools/utils/getVersion.d.ts +1 -1
- package/dist/tools/utils/getVersion.d.ts.map +1 -1
- package/dist/tools/utils/getVersion.js +1 -1
- package/dist/tools/utils/getVersion.js.map +1 -1
- package/dist/tools/utils/getWallet.d.ts +1 -1
- package/dist/tools/utils/getWallet.d.ts.map +1 -1
- package/dist/tools/utils/hasWallet.d.ts +1 -1
- package/dist/tools/utils/hasWallet.d.ts.map +1 -1
- package/dist/tools/utils/index.d.ts +1 -1
- package/dist/tools/utils/index.d.ts.map +1 -1
- package/dist/tools/utils/isTokenGraduated.d.ts +1 -1
- package/dist/tools/utils/isTokenGraduated.d.ts.map +1 -1
- package/dist/tools/utils/setWallet.d.ts +1 -1
- package/dist/tools/utils/setWallet.d.ts.map +1 -1
- package/dist/tools/utils/setWallet.js +1 -1
- package/dist/tools/utils/setWallet.js.map +1 -1
- package/dist/tools/utils/switchEnvironment.d.ts +1 -1
- package/dist/tools/utils/switchEnvironment.d.ts.map +1 -1
- package/dist/tools/validate-manifest.d.ts.map +1 -1
- package/dist/tools/validate-manifest.js +5 -0
- package/dist/tools/validate-manifest.js.map +1 -1
- package/dist/tools/wallet/index.d.ts +1 -1
- package/dist/tools/wallet/index.d.ts.map +1 -1
- package/dist/tools/websocket-admin/emitDownloadReady.d.ts +15 -0
- package/dist/tools/websocket-admin/emitDownloadReady.d.ts.map +1 -0
- package/dist/tools/websocket-admin/emitDownloadReady.js +78 -0
- package/dist/tools/websocket-admin/emitDownloadReady.js.map +1 -0
- package/dist/tools/websocket-admin/emitRecordingStatus.d.ts +15 -0
- package/dist/tools/websocket-admin/emitRecordingStatus.d.ts.map +1 -0
- package/dist/tools/websocket-admin/emitRecordingStatus.js +78 -0
- package/dist/tools/websocket-admin/emitRecordingStatus.js.map +1 -0
- package/dist/tools/websocket-admin/emitRecordingsCountUpdated.d.ts +15 -0
- package/dist/tools/websocket-admin/emitRecordingsCountUpdated.d.ts.map +1 -0
- package/dist/tools/websocket-admin/emitRecordingsCountUpdated.js +57 -0
- package/dist/tools/websocket-admin/emitRecordingsCountUpdated.js.map +1 -0
- package/dist/tools/websocket-admin/index.d.ts +8 -2
- package/dist/tools/websocket-admin/index.d.ts.map +1 -1
- package/dist/tools/websocket-admin/index.js +15 -2
- package/dist/tools/websocket-admin/index.js.map +1 -1
- package/dist/tools/weekly-challenge/index.d.ts +28 -0
- package/dist/tools/weekly-challenge/index.d.ts.map +1 -0
- package/dist/tools/weekly-challenge/index.js +95 -0
- package/dist/tools/weekly-challenge/index.js.map +1 -0
- package/dist/types/mcp.d.ts +43 -5
- package/dist/types/mcp.d.ts.map +1 -1
- package/dist/utils/default-values.d.ts +5 -5
- package/dist/utils/default-values.js +12 -12
- package/dist/utils/default-values.js.map +1 -1
- package/dist/utils/error-handler.d.ts +1 -1
- package/dist/utils/error-handler.d.ts.map +1 -1
- package/dist/utils/error-handler.js +10 -1
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/error-templates.d.ts.map +1 -1
- package/dist/utils/error-templates.js +1 -0
- package/dist/utils/error-templates.js.map +1 -1
- package/dist/utils/response-formatter.js +1 -1
- package/dist/utils/response-formatter.js.map +1 -1
- package/dist/utils/tool-factory.d.ts +3 -3
- package/dist/utils/tool-factory.d.ts.map +1 -1
- package/dist/utils/tool-registry.d.ts.map +1 -1
- package/dist/utils/tool-registry.js +17 -8
- package/dist/utils/tool-registry.js.map +1 -1
- package/package.json +33 -34
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Notification & Client Config Tools
|
|
4
|
+
*
|
|
5
|
+
* MCP tools for push notification management and client feature flags:
|
|
6
|
+
* - Register/unregister push notification device tokens
|
|
7
|
+
* - Get/update notification preferences
|
|
8
|
+
* - Get client feature flags
|
|
9
|
+
*
|
|
10
|
+
* Notification endpoints require JWT authentication.
|
|
11
|
+
* Client flags endpoint is public (no auth required).
|
|
12
|
+
*
|
|
13
|
+
* @since 5.1.0
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.notificationTools = exports.fetchClientFlagsTool = exports.updateNotificationPreferencesTool = exports.fetchNotificationPreferencesTool = exports.unregisterPushTokenTool = exports.registerPushTokenTool = void 0;
|
|
17
|
+
const handler_factories_js_1 = require("../handler-factories.js");
|
|
18
|
+
// =============================================================================
|
|
19
|
+
// Push Notification Tools
|
|
20
|
+
// =============================================================================
|
|
21
|
+
/**
|
|
22
|
+
* 1. Register Push Token
|
|
23
|
+
*/
|
|
24
|
+
exports.registerPushTokenTool = {
|
|
25
|
+
name: 'gala_launchpad_register_push_token',
|
|
26
|
+
description: `Register a push notification device token.
|
|
27
|
+
|
|
28
|
+
Associates a push token (FCM or APNs) with the authenticated user.
|
|
29
|
+
If the token already exists, it updates the associated device info.
|
|
30
|
+
|
|
31
|
+
**Parameters:**
|
|
32
|
+
- token (required): Push notification token string (FCM or APNs)
|
|
33
|
+
- platform (required): Device platform - "ios" or "android"
|
|
34
|
+
- deviceId (optional): Device identifier for multi-device management
|
|
35
|
+
|
|
36
|
+
RETURNS: { registered: boolean }
|
|
37
|
+
|
|
38
|
+
Authentication: Requires JWT auth (call sdk.login() first).`,
|
|
39
|
+
inputSchema: {
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
token: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: 'Push notification token (FCM or APNs token, max 512 characters)',
|
|
45
|
+
},
|
|
46
|
+
platform: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
enum: ['ios', 'android'],
|
|
49
|
+
description: 'Device platform - must be "ios" or "android"',
|
|
50
|
+
},
|
|
51
|
+
deviceId: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
description: 'Optional device identifier for multi-device management (max 255 characters)',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
required: ['token', 'platform'],
|
|
57
|
+
},
|
|
58
|
+
handler: (0, handler_factories_js_1.createSimpleHandler)('registerPushToken', (args) => ({
|
|
59
|
+
token: args.token,
|
|
60
|
+
platform: args.platform,
|
|
61
|
+
...(args.deviceId !== undefined ? { deviceId: args.deviceId } : {}),
|
|
62
|
+
})),
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* 2. Unregister Push Token
|
|
66
|
+
*/
|
|
67
|
+
exports.unregisterPushTokenTool = {
|
|
68
|
+
name: 'gala_launchpad_unregister_push_token',
|
|
69
|
+
description: `Unregister a push notification device token.
|
|
70
|
+
|
|
71
|
+
Deactivates a push token so the device no longer receives notifications.
|
|
72
|
+
|
|
73
|
+
**Parameters:**
|
|
74
|
+
- token (required): The push notification token to unregister
|
|
75
|
+
|
|
76
|
+
RETURNS: { unregistered: boolean }
|
|
77
|
+
|
|
78
|
+
Authentication: Requires JWT auth (call sdk.login() first).`,
|
|
79
|
+
inputSchema: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
token: {
|
|
83
|
+
type: 'string',
|
|
84
|
+
description: 'Push notification token to unregister',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
required: ['token'],
|
|
88
|
+
},
|
|
89
|
+
handler: (0, handler_factories_js_1.createSimpleHandler)('unregisterPushToken', (args) => args.token),
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 3. Fetch Notification Preferences
|
|
93
|
+
*/
|
|
94
|
+
exports.fetchNotificationPreferencesTool = {
|
|
95
|
+
name: 'gala_launchpad_fetch_notification_preferences',
|
|
96
|
+
description: `Get notification preferences for the authenticated user.
|
|
97
|
+
|
|
98
|
+
Returns the current push notification preference settings.
|
|
99
|
+
|
|
100
|
+
RETURNS: { preferences: { tradesEnabled, streamsEnabled, chatEnabled, systemEnabled } }
|
|
101
|
+
|
|
102
|
+
Authentication: Requires JWT auth (call sdk.login() first).`,
|
|
103
|
+
inputSchema: {
|
|
104
|
+
type: 'object',
|
|
105
|
+
properties: {},
|
|
106
|
+
required: [],
|
|
107
|
+
},
|
|
108
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)('fetchNotificationPreferences'),
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* 4. Update Notification Preferences
|
|
112
|
+
*/
|
|
113
|
+
exports.updateNotificationPreferencesTool = {
|
|
114
|
+
name: 'gala_launchpad_update_notification_preferences',
|
|
115
|
+
description: `Update notification preferences for the authenticated user.
|
|
116
|
+
|
|
117
|
+
Partial update - only provided fields are modified, others remain unchanged.
|
|
118
|
+
At least one field should be provided.
|
|
119
|
+
|
|
120
|
+
**Preference fields (all optional):**
|
|
121
|
+
- tradesEnabled: Enable/disable trade notifications
|
|
122
|
+
- streamsEnabled: Enable/disable stream notifications
|
|
123
|
+
- chatEnabled: Enable/disable chat notifications
|
|
124
|
+
- systemEnabled: Enable/disable system notifications
|
|
125
|
+
|
|
126
|
+
RETURNS: { preferences: { tradesEnabled, streamsEnabled, chatEnabled, systemEnabled } }
|
|
127
|
+
|
|
128
|
+
Authentication: Requires JWT auth (call sdk.login() first).`,
|
|
129
|
+
inputSchema: {
|
|
130
|
+
type: 'object',
|
|
131
|
+
properties: {
|
|
132
|
+
tradesEnabled: {
|
|
133
|
+
type: 'boolean',
|
|
134
|
+
description: 'Enable/disable trade notifications',
|
|
135
|
+
},
|
|
136
|
+
streamsEnabled: {
|
|
137
|
+
type: 'boolean',
|
|
138
|
+
description: 'Enable/disable stream notifications',
|
|
139
|
+
},
|
|
140
|
+
chatEnabled: {
|
|
141
|
+
type: 'boolean',
|
|
142
|
+
description: 'Enable/disable chat notifications',
|
|
143
|
+
},
|
|
144
|
+
systemEnabled: {
|
|
145
|
+
type: 'boolean',
|
|
146
|
+
description: 'Enable/disable system notifications',
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
handler: (0, handler_factories_js_1.createSimpleHandler)('updateNotificationPreferences', (args) => {
|
|
151
|
+
const params = {};
|
|
152
|
+
if (args.tradesEnabled !== undefined)
|
|
153
|
+
params.tradesEnabled = args.tradesEnabled;
|
|
154
|
+
if (args.streamsEnabled !== undefined)
|
|
155
|
+
params.streamsEnabled = args.streamsEnabled;
|
|
156
|
+
if (args.chatEnabled !== undefined)
|
|
157
|
+
params.chatEnabled = args.chatEnabled;
|
|
158
|
+
if (args.systemEnabled !== undefined)
|
|
159
|
+
params.systemEnabled = args.systemEnabled;
|
|
160
|
+
return params;
|
|
161
|
+
}),
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* 5. Fetch Client Feature Flags
|
|
165
|
+
*/
|
|
166
|
+
exports.fetchClientFlagsTool = {
|
|
167
|
+
name: 'gala_launchpad_fetch_client_flags',
|
|
168
|
+
description: `Get client feature flags for the native mobile app.
|
|
169
|
+
|
|
170
|
+
Returns feature flag overrides that control which features are enabled/disabled.
|
|
171
|
+
Useful for checking platform feature availability before performing operations.
|
|
172
|
+
|
|
173
|
+
RETURNS: { flags: { PUSH_NOTIFICATIONS, OFFLINE_MODE, BIOMETRIC_AUTH, DARK_MODE, LIVE_STREAMING, DEX_TRADING, ... } }
|
|
174
|
+
|
|
175
|
+
Authentication: None required (public endpoint).`,
|
|
176
|
+
inputSchema: {
|
|
177
|
+
type: 'object',
|
|
178
|
+
properties: {},
|
|
179
|
+
required: [],
|
|
180
|
+
},
|
|
181
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)('fetchClientFlags'),
|
|
182
|
+
};
|
|
183
|
+
// =============================================================================
|
|
184
|
+
// Export all notification & client config tools
|
|
185
|
+
// =============================================================================
|
|
186
|
+
/**
|
|
187
|
+
* All notification and client config tools
|
|
188
|
+
*/
|
|
189
|
+
exports.notificationTools = [
|
|
190
|
+
exports.registerPushTokenTool,
|
|
191
|
+
exports.unregisterPushTokenTool,
|
|
192
|
+
exports.fetchNotificationPreferencesTool,
|
|
193
|
+
exports.updateNotificationPreferencesTool,
|
|
194
|
+
exports.fetchClientFlagsTool,
|
|
195
|
+
];
|
|
196
|
+
//# sourceMappingURL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CAAC,cAAc,CAAC;QACnF,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS;YAAE,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QAC1E,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS;YAAE,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAChF,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;CACH,CAAC;AAEF;;GAEG;AACU,QAAA,oBAAoB,GAAY;IAC3C,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE;;;;;;;iDAOkC;IAC/C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAW;KACtB;IACD,OAAO,EAAE,IAAA,+CAAwB,EAAC,kBAAkB,CAAC;CACtD,CAAC;AAEF,gFAAgF;AAChF,gDAAgD;AAChD,gFAAgF;AAEhF;;GAEG;AACU,QAAA,iBAAiB,GAAc;IAC1C,6BAAqB;IACrB,+BAAuB;IACvB,wCAAgC;IAChC,yCAAiC;IACjC,4BAAoB;CACrB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OEmbed Operations Tools
|
|
3
|
+
*
|
|
4
|
+
* MCP tools for oEmbed metadata operations including:
|
|
5
|
+
* - Get home page oEmbed (featuring top/live token)
|
|
6
|
+
* - Get pool/token oEmbed (for buy-sell pages)
|
|
7
|
+
* - Get profile oEmbed (for user profiles)
|
|
8
|
+
*
|
|
9
|
+
* These endpoints are primarily consumed by social media bots for
|
|
10
|
+
* rich link previews (Twitter Cards, Open Graph, etc.).
|
|
11
|
+
*
|
|
12
|
+
* @since 9.0.0
|
|
13
|
+
*/
|
|
14
|
+
import type { MCPTool } from '../../types/mcp.js';
|
|
15
|
+
/**
|
|
16
|
+
* 1. Get Home OEmbed
|
|
17
|
+
*/
|
|
18
|
+
export declare const getHomeOEmbedTool: MCPTool;
|
|
19
|
+
/**
|
|
20
|
+
* 2. Get Pool OEmbed
|
|
21
|
+
*/
|
|
22
|
+
export declare const getPoolOEmbedTool: MCPTool;
|
|
23
|
+
/**
|
|
24
|
+
* 3. Get Profile OEmbed
|
|
25
|
+
*/
|
|
26
|
+
export declare const getProfileOEmbedTool: MCPTool;
|
|
27
|
+
/**
|
|
28
|
+
* All oEmbed tools
|
|
29
|
+
*/
|
|
30
|
+
export declare const oembedTools: MCPTool[];
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/oembed/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAuBlD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAgB/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAoB/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAoBlC,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,EAIhC,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* OEmbed Operations Tools
|
|
4
|
+
*
|
|
5
|
+
* MCP tools for oEmbed metadata operations including:
|
|
6
|
+
* - Get home page oEmbed (featuring top/live token)
|
|
7
|
+
* - Get pool/token oEmbed (for buy-sell pages)
|
|
8
|
+
* - Get profile oEmbed (for user profiles)
|
|
9
|
+
*
|
|
10
|
+
* These endpoints are primarily consumed by social media bots for
|
|
11
|
+
* rich link previews (Twitter Cards, Open Graph, etc.).
|
|
12
|
+
*
|
|
13
|
+
* @since 9.0.0
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.oembedTools = exports.getProfileOEmbedTool = exports.getPoolOEmbedTool = exports.getHomeOEmbedTool = void 0;
|
|
17
|
+
const handler_factories_js_1 = require("../handler-factories.js");
|
|
18
|
+
// =============================================================================
|
|
19
|
+
// OEmbed Schemas
|
|
20
|
+
// =============================================================================
|
|
21
|
+
/** Token name schema */
|
|
22
|
+
const TOKEN_NAME_SCHEMA = {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'Token name (case-insensitive)',
|
|
25
|
+
};
|
|
26
|
+
/** User address schema */
|
|
27
|
+
const ADDRESS_SCHEMA = {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: 'User wallet address (e.g., "eth|0x123...")',
|
|
30
|
+
};
|
|
31
|
+
// =============================================================================
|
|
32
|
+
// OEmbed Tools
|
|
33
|
+
// =============================================================================
|
|
34
|
+
/**
|
|
35
|
+
* 1. Get Home OEmbed
|
|
36
|
+
*/
|
|
37
|
+
exports.getHomeOEmbedTool = {
|
|
38
|
+
name: 'gala_launchpad_get_home_oembed',
|
|
39
|
+
description: `Get oEmbed metadata for the home page.
|
|
40
|
+
|
|
41
|
+
Returns oEmbed JSON data featuring the top/live token for social media previews.
|
|
42
|
+
Used by Twitter Cards, Open Graph, and other social preview consumers.
|
|
43
|
+
|
|
44
|
+
RETURNS: { oembed: { type, version, title, provider_name, provider_url, featuredToken?, featuredSymbol?, featuredImage?, featuredIsLive? } }
|
|
45
|
+
|
|
46
|
+
Authentication: None required (public endpoint)`,
|
|
47
|
+
inputSchema: {
|
|
48
|
+
type: 'object',
|
|
49
|
+
properties: {},
|
|
50
|
+
required: [],
|
|
51
|
+
},
|
|
52
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)('getHomeOEmbed'),
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 2. Get Pool OEmbed
|
|
56
|
+
*/
|
|
57
|
+
exports.getPoolOEmbedTool = {
|
|
58
|
+
name: 'gala_launchpad_get_pool_oembed',
|
|
59
|
+
description: `Get oEmbed metadata for a pool/token page.
|
|
60
|
+
|
|
61
|
+
Returns oEmbed JSON data for a token's buy/sell page, including
|
|
62
|
+
live stream status if applicable.
|
|
63
|
+
|
|
64
|
+
RETURNS: { oembed: { type, version, title, provider_name, provider_url, tokenName, symbol, image, isLive?, viewerCount? } }
|
|
65
|
+
|
|
66
|
+
Authentication: None required (public endpoint)`,
|
|
67
|
+
inputSchema: {
|
|
68
|
+
type: 'object',
|
|
69
|
+
properties: {
|
|
70
|
+
tokenName: TOKEN_NAME_SCHEMA,
|
|
71
|
+
},
|
|
72
|
+
required: ['tokenName'],
|
|
73
|
+
},
|
|
74
|
+
handler: (0, handler_factories_js_1.createSimpleHandler)('getPoolOEmbed', (args) => ({
|
|
75
|
+
tokenName: args.tokenName,
|
|
76
|
+
})),
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* 3. Get Profile OEmbed
|
|
80
|
+
*/
|
|
81
|
+
exports.getProfileOEmbedTool = {
|
|
82
|
+
name: 'gala_launchpad_get_profile_oembed',
|
|
83
|
+
description: `Get oEmbed metadata for a user profile page.
|
|
84
|
+
|
|
85
|
+
Returns oEmbed JSON data for a user's profile including stats like
|
|
86
|
+
tokens created, graduation rate, and total volume.
|
|
87
|
+
|
|
88
|
+
RETURNS: { oembed: { type, version, title, provider_name, provider_url, address, displayName?, avatarUrl?, tokensCreated, tokensGraduated, graduationRate, totalVolumeGala, isLiveStreaming?, liveStreamToken? } }
|
|
89
|
+
|
|
90
|
+
Authentication: None required (public endpoint)`,
|
|
91
|
+
inputSchema: {
|
|
92
|
+
type: 'object',
|
|
93
|
+
properties: {
|
|
94
|
+
address: ADDRESS_SCHEMA,
|
|
95
|
+
},
|
|
96
|
+
required: ['address'],
|
|
97
|
+
},
|
|
98
|
+
handler: (0, handler_factories_js_1.createSimpleHandler)('getProfileOEmbed', (args) => ({
|
|
99
|
+
address: args.address,
|
|
100
|
+
})),
|
|
101
|
+
};
|
|
102
|
+
// =============================================================================
|
|
103
|
+
// Export all oEmbed tools
|
|
104
|
+
// =============================================================================
|
|
105
|
+
/**
|
|
106
|
+
* All oEmbed tools
|
|
107
|
+
*/
|
|
108
|
+
exports.oembedTools = [
|
|
109
|
+
exports.getHomeOEmbedTool,
|
|
110
|
+
exports.getPoolOEmbedTool,
|
|
111
|
+
exports.getProfileOEmbedTool,
|
|
112
|
+
];
|
|
113
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/oembed/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAGH,kEAAwF;AAExF,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF,wBAAwB;AACxB,MAAM,iBAAiB,GAAG;IACxB,IAAI,EAAE,QAAiB;IACvB,WAAW,EAAE,+BAA+B;CAC7C,CAAC;AAEF,0BAA0B;AAC1B,MAAM,cAAc,GAAG;IACrB,IAAI,EAAE,QAAiB;IACvB,WAAW,EAAE,4CAA4C;CAC1D,CAAC;AAEF,gFAAgF;AAChF,eAAe;AACf,gFAAgF;AAEhF;;GAEG;AACU,QAAA,iBAAiB,GAAY;IACxC,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE;;;;;;;gDAOiC;IAC9C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE,IAAA,+CAAwB,EAAC,eAAe,CAAC;CACnD,CAAC;AAEF;;GAEG;AACU,QAAA,iBAAiB,GAAY;IACxC,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE;;;;;;;gDAOiC;IAC9C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE,iBAAiB;SAC7B;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,OAAO,EAAE,IAAA,0CAAmB,EAAC,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACvD,SAAS,EAAE,IAAI,CAAC,SAAmB;KACpC,CAAC,CAAC;CACJ,CAAC;AAEF;;GAEG;AACU,QAAA,oBAAoB,GAAY;IAC3C,IAAI,EAAE,mCAAmC;IACzC,WAAW,EAAE;;;;;;;gDAOiC;IAC9C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE,cAAc;SACxB;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,OAAO,EAAE,IAAA,0CAAmB,EAAC,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC1D,OAAO,EAAE,IAAI,CAAC,OAAiB;KAChC,CAAC,CAAC;CACJ,CAAC;AAEF,gFAAgF;AAChF,0BAA0B;AAC1B,gFAAgF;AAEhF;;GAEG;AACU,QAAA,WAAW,GAAc;IACpC,yBAAiB;IACjB,yBAAiB;IACjB,4BAAoB;CACrB,CAAC"}
|
|
@@ -19,5 +19,9 @@ export declare const flushCacheByTokenTool: MCPTool;
|
|
|
19
19
|
* 3. Flush All Cache (Nuclear Option)
|
|
20
20
|
*/
|
|
21
21
|
export declare const flushAllCacheTool: MCPTool;
|
|
22
|
+
/**
|
|
23
|
+
* 4. Flush Wallet-Alias Cache
|
|
24
|
+
*/
|
|
25
|
+
export declare const flushCacheWalletAliasesTool: MCPTool;
|
|
22
26
|
export declare const cacheManagementTools: MCPTool[];
|
|
23
27
|
//# sourceMappingURL=cache-management.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-management.d.ts","sourceRoot":"","sources":["../../../src/tools/overseers/cache-management.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAoBlD;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAiCrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,OAmCnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAoC/B,CAAC;AAMF,eAAO,MAAM,oBAAoB,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"cache-management.d.ts","sourceRoot":"","sources":["../../../src/tools/overseers/cache-management.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAoBlD;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAiCrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,OAmCnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAoC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,OAmCzC,CAAC;AAMF,eAAO,MAAM,oBAAoB,EAAE,OAAO,EAKzC,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @since 8.x.0
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.cacheManagementTools = exports.flushAllCacheTool = exports.flushCacheByTokenTool = exports.flushCacheByAddressTool = void 0;
|
|
11
|
+
exports.cacheManagementTools = exports.flushCacheWalletAliasesTool = exports.flushAllCacheTool = exports.flushCacheByTokenTool = exports.flushCacheByAddressTool = void 0;
|
|
12
12
|
const handler_factories_js_1 = require("../handler-factories.js");
|
|
13
13
|
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
14
14
|
// =============================================================================
|
|
@@ -140,6 +140,45 @@ Authentication: Requires streamAdminApiKey (admin) OR JWT auth as existing Overs
|
|
|
140
140
|
},
|
|
141
141
|
handler: (0, handler_factories_js_1.createSimpleHandler)('flushAllCache', (args) => args.confirm),
|
|
142
142
|
};
|
|
143
|
+
/**
|
|
144
|
+
* 4. Flush Wallet-Alias Cache
|
|
145
|
+
*/
|
|
146
|
+
exports.flushCacheWalletAliasesTool = {
|
|
147
|
+
name: 'gala_launchpad_flush_cache_wallet_aliases',
|
|
148
|
+
description: `Flush wallet-alias cache entries (eth| → client| resolution cache).
|
|
149
|
+
|
|
150
|
+
Clears the Redis cache that maps eth| addresses to their GalaChain client| aliases.
|
|
151
|
+
Use this when a user's login returns a stale eth| address even though they have
|
|
152
|
+
a client| alias on GalaChain. After flushing, the next login will re-resolve
|
|
153
|
+
the alias from the GalaChain public-key contract.
|
|
154
|
+
|
|
155
|
+
- Without address: flushes ALL wallet-alias entries (use after updating the public-key contract URL)
|
|
156
|
+
- With address: flushes only the specified address's alias entry
|
|
157
|
+
|
|
158
|
+
Use this when:
|
|
159
|
+
- A user logs in and gets their eth| address instead of their client| alias
|
|
160
|
+
- After fixing GALA_PUBLIC_KEY_CONTRACT configuration
|
|
161
|
+
- After a GalaChain network outage caused null-cached aliases
|
|
162
|
+
- Debugging alias resolution issues on dev/staging environments
|
|
163
|
+
|
|
164
|
+
RETURNS: { flushedCount, duration, target? }
|
|
165
|
+
- flushedCount: Number of alias cache entries flushed
|
|
166
|
+
- duration: Time taken in milliseconds
|
|
167
|
+
- target: Normalized address (only present when flushing a single address)
|
|
168
|
+
|
|
169
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth as existing Overseer.`,
|
|
170
|
+
inputSchema: {
|
|
171
|
+
type: 'object',
|
|
172
|
+
properties: {
|
|
173
|
+
address: {
|
|
174
|
+
...common_schemas_js_1.ADDRESS_SCHEMA,
|
|
175
|
+
description: 'Optional wallet address (eth|... or 0x... format). If omitted, ALL wallet-alias entries are flushed.',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
required: [],
|
|
179
|
+
},
|
|
180
|
+
handler: (0, handler_factories_js_1.createSimpleHandler)('flushWalletAliasCache', (args) => args.address),
|
|
181
|
+
};
|
|
143
182
|
// =============================================================================
|
|
144
183
|
// Export All Tools
|
|
145
184
|
// =============================================================================
|
|
@@ -147,5 +186,6 @@ exports.cacheManagementTools = [
|
|
|
147
186
|
exports.flushCacheByAddressTool,
|
|
148
187
|
exports.flushCacheByTokenTool,
|
|
149
188
|
exports.flushAllCacheTool,
|
|
189
|
+
exports.flushCacheWalletAliasesTool,
|
|
150
190
|
];
|
|
151
191
|
//# sourceMappingURL=cache-management.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-management.js","sourceRoot":"","sources":["../../../src/tools/overseers/cache-management.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAGH,kEAA8D;AAC9D,uEAAoF;AAEpF,gFAAgF;AAChF,2BAA2B;AAC3B,gFAAgF;AAEhF;;GAEG;AACH,MAAM,oBAAoB,GAAG;IAC3B,IAAI,EAAE,SAAkB;IACxB,WAAW,EAAE,sGAAsG;CACpH,CAAC;AAEF,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF;;GAEG;AACU,QAAA,uBAAuB,GAAY;IAC9C,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EAAE;;;;;;;;;;;;;;;;;;;qFAmBsE;IACnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,GAAG,kCAAc;gBACjB,WAAW,EAAE,8DAA8D;aAC5E;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,OAAO,EAAE,IAAA,0CAAmB,EAAC,qBAAqB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAiB,CAAC;CACtF,CAAC;AAEF;;GAEG;AACU,QAAA,qBAAqB,GAAY;IAC5C,IAAI,EAAE,qCAAqC;IAC3C,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;qFAqBsE;IACnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,GAAG,qCAAiB;gBACpB,WAAW,EAAE,mDAAmD;aACjE;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,OAAO,EAAE,IAAA,0CAAmB,EAAC,mBAAmB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAmB,CAAC;CACtF,CAAC;AAEF;;GAEG;AACU,QAAA,iBAAiB,GAAY;IACxC,IAAI,EAAE,gCAAgC;IACtC,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;qFAyBsE;IACnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE,oBAAoB;SAC9B;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB;IACD,OAAO,EAAE,IAAA,0CAAmB,EAAC,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAe,CAAC;CAC9E,CAAC;AAEF,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEnE,QAAA,oBAAoB,GAAc;IAC7C,+BAAuB;IACvB,6BAAqB;IACrB,yBAAiB;
|
|
1
|
+
{"version":3,"file":"cache-management.js","sourceRoot":"","sources":["../../../src/tools/overseers/cache-management.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAGH,kEAA8D;AAC9D,uEAAoF;AAEpF,gFAAgF;AAChF,2BAA2B;AAC3B,gFAAgF;AAEhF;;GAEG;AACH,MAAM,oBAAoB,GAAG;IAC3B,IAAI,EAAE,SAAkB;IACxB,WAAW,EAAE,sGAAsG;CACpH,CAAC;AAEF,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF;;GAEG;AACU,QAAA,uBAAuB,GAAY;IAC9C,IAAI,EAAE,uCAAuC;IAC7C,WAAW,EAAE;;;;;;;;;;;;;;;;;;;qFAmBsE;IACnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,GAAG,kCAAc;gBACjB,WAAW,EAAE,8DAA8D;aAC5E;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,CAAC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AAuB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAA6B,CAAC;CACpG,CAAC;AAEF,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEnE,QAAA,oBAAoB,GAAc;IAC7C,+BAAuB;IACvB,6BAAqB;IACrB,yBAAiB;IACjB,mCAA2B;CAC5B,CAAC"}
|
|
@@ -63,5 +63,22 @@ export declare const getMyOverseerStatusTool: MCPTool;
|
|
|
63
63
|
* 10. Get Platform Summary (CCTV Dashboard)
|
|
64
64
|
*/
|
|
65
65
|
export declare const getOverseerSummaryTool: MCPTool;
|
|
66
|
+
/**
|
|
67
|
+
* 11. Get Ban Stats
|
|
68
|
+
*/
|
|
69
|
+
export declare const getBanStatsTool: MCPTool;
|
|
70
|
+
/**
|
|
71
|
+
* 12. Get Token Ban Stats
|
|
72
|
+
*/
|
|
73
|
+
export declare const getTokenBanStatsTool: MCPTool;
|
|
74
|
+
/**
|
|
75
|
+
* 13. Get Invite Stats
|
|
76
|
+
*/
|
|
77
|
+
export declare const getInviteStatsTool: MCPTool;
|
|
78
|
+
/**
|
|
79
|
+
* 14. Get Flag Stats
|
|
80
|
+
*/
|
|
81
|
+
export declare const getFlagStatsTool: MCPTool;
|
|
82
|
+
export declare const getUserStatsTool: MCPTool;
|
|
66
83
|
export declare const overseerTools: MCPTool[];
|
|
67
84
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/overseers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AA8ElD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,OAyBtC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAuBrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,OAuB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B,EAAE,OAuBpC,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAe7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAelC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAehC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAe9B,CAAC;AAMF,eAAO,MAAM,gBAAgB,EAAE,OAe9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,EAmBlC,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* @since 5.9.0
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.overseerTools = exports.getOverseerSummaryTool = exports.getMyOverseerStatusTool = exports.revokeOverseerTool = exports.createOverseerDirectTool = exports.listOverseersTool = exports.revokeOverseerInviteTool = exports.claimOverseerInviteTool = exports.getOverseerInviteByCodeTool = exports.listOverseerInvitesTool = exports.createOverseerInviteTool = void 0;
|
|
18
|
+
exports.overseerTools = exports.getUserStatsTool = exports.getFlagStatsTool = exports.getInviteStatsTool = exports.getTokenBanStatsTool = exports.getBanStatsTool = exports.getOverseerSummaryTool = exports.getMyOverseerStatusTool = exports.revokeOverseerTool = exports.createOverseerDirectTool = exports.listOverseersTool = exports.revokeOverseerInviteTool = exports.claimOverseerInviteTool = exports.getOverseerInviteByCodeTool = exports.listOverseerInvitesTool = exports.createOverseerInviteTool = void 0;
|
|
19
19
|
const handler_factories_js_1 = require("../handler-factories.js");
|
|
20
20
|
const common_schemas_js_1 = require("../../schemas/common-schemas.js");
|
|
21
21
|
const launchpad_sdk_1 = require("@gala-chain/launchpad-sdk");
|
|
@@ -347,8 +347,103 @@ Authentication: Requires streamAdminApiKey (admin) OR JWT auth as Overseer.`,
|
|
|
347
347
|
handler: (0, handler_factories_js_1.createConvenienceFetcher)('getOverseerSummary'),
|
|
348
348
|
};
|
|
349
349
|
// =============================================================================
|
|
350
|
+
// Per-Page Stats Tools
|
|
351
|
+
// =============================================================================
|
|
352
|
+
/**
|
|
353
|
+
* 11. Get Ban Stats
|
|
354
|
+
*/
|
|
355
|
+
exports.getBanStatsTool = {
|
|
356
|
+
name: 'gala_launchpad_get_ban_stats',
|
|
357
|
+
description: `Get global user ban statistics.
|
|
358
|
+
|
|
359
|
+
Returns the total count of active global user bans on the platform.
|
|
360
|
+
|
|
361
|
+
RETURNS: { total: number }
|
|
362
|
+
|
|
363
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth as Overseer.`,
|
|
364
|
+
inputSchema: {
|
|
365
|
+
type: 'object',
|
|
366
|
+
properties: {},
|
|
367
|
+
required: [],
|
|
368
|
+
},
|
|
369
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)('getBanStats'),
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* 12. Get Token Ban Stats
|
|
373
|
+
*/
|
|
374
|
+
exports.getTokenBanStatsTool = {
|
|
375
|
+
name: 'gala_launchpad_get_token_ban_stats',
|
|
376
|
+
description: `Get token ban (delisted tokens) statistics.
|
|
377
|
+
|
|
378
|
+
Returns the total count of delisted/banned tokens on the platform.
|
|
379
|
+
|
|
380
|
+
RETURNS: { total: number }
|
|
381
|
+
|
|
382
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth as Overseer.`,
|
|
383
|
+
inputSchema: {
|
|
384
|
+
type: 'object',
|
|
385
|
+
properties: {},
|
|
386
|
+
required: [],
|
|
387
|
+
},
|
|
388
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)('getTokenBanStats'),
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* 13. Get Invite Stats
|
|
392
|
+
*/
|
|
393
|
+
exports.getInviteStatsTool = {
|
|
394
|
+
name: 'gala_launchpad_get_invite_stats',
|
|
395
|
+
description: `Get overseer invite statistics.
|
|
396
|
+
|
|
397
|
+
Returns counts for each invite status: total, pending, claimed, and revoked.
|
|
398
|
+
|
|
399
|
+
RETURNS: { total: number, pending: number, claimed: number, revoked: number }
|
|
400
|
+
|
|
401
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth as Overseer.`,
|
|
402
|
+
inputSchema: {
|
|
403
|
+
type: 'object',
|
|
404
|
+
properties: {},
|
|
405
|
+
required: [],
|
|
406
|
+
},
|
|
407
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)('getInviteStats'),
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* 14. Get Flag Stats
|
|
411
|
+
*/
|
|
412
|
+
exports.getFlagStatsTool = {
|
|
413
|
+
name: 'gala_launchpad_get_flag_stats',
|
|
414
|
+
description: `Get content flag statistics.
|
|
415
|
+
|
|
416
|
+
Returns counts for each flag status: total, pending, actioned, and dismissed.
|
|
417
|
+
|
|
418
|
+
RETURNS: { total: number, pending: number, actioned: number, dismissed: number }
|
|
419
|
+
|
|
420
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth as Overseer.`,
|
|
421
|
+
inputSchema: {
|
|
422
|
+
type: 'object',
|
|
423
|
+
properties: {},
|
|
424
|
+
required: [],
|
|
425
|
+
},
|
|
426
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)('getFlagStats'),
|
|
427
|
+
};
|
|
428
|
+
// =============================================================================
|
|
350
429
|
// Export All Tools
|
|
351
430
|
// =============================================================================
|
|
431
|
+
exports.getUserStatsTool = {
|
|
432
|
+
name: 'gala_launchpad_get_user_stats',
|
|
433
|
+
description: `Get user management statistics.
|
|
434
|
+
|
|
435
|
+
Returns counts for total users, flagged users (with pending content flags), and banned users (with active global bans).
|
|
436
|
+
|
|
437
|
+
RETURNS: { totalUsers: number, flaggedUsers: number, bannedUsers: number }
|
|
438
|
+
|
|
439
|
+
Authentication: Requires streamAdminApiKey (admin) OR JWT auth as Overseer.`,
|
|
440
|
+
inputSchema: {
|
|
441
|
+
type: 'object',
|
|
442
|
+
properties: {},
|
|
443
|
+
required: [],
|
|
444
|
+
},
|
|
445
|
+
handler: (0, handler_factories_js_1.createConvenienceFetcher)('getUserStats'),
|
|
446
|
+
};
|
|
352
447
|
exports.overseerTools = [
|
|
353
448
|
exports.createOverseerInviteTool,
|
|
354
449
|
exports.listOverseerInvitesTool,
|
|
@@ -360,6 +455,11 @@ exports.overseerTools = [
|
|
|
360
455
|
exports.revokeOverseerTool,
|
|
361
456
|
exports.getMyOverseerStatusTool,
|
|
362
457
|
exports.getOverseerSummaryTool,
|
|
458
|
+
exports.getBanStatsTool,
|
|
459
|
+
exports.getTokenBanStatsTool,
|
|
460
|
+
exports.getInviteStatsTool,
|
|
461
|
+
exports.getFlagStatsTool,
|
|
462
|
+
exports.getUserStatsTool,
|
|
363
463
|
listOverseerUsers_js_1.listOverseerUsersTool,
|
|
364
464
|
getOverseerUserSummary_js_1.getOverseerUserSummaryTool,
|
|
365
465
|
...cache_management_js_1.cacheManagementTools,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/overseers/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,kEAKiC;AACjC,uEAOyC;AACzC,6DAAoF;AACpF,iEAA+D;AAC/D,2EAAyE;AACzE,+DAA6D;AAE7D,gFAAgF;AAChF,4BAA4B;AAC5B,gFAAgF;AAEhF;;GAEG;AACH,MAAM,yBAAyB,GAAG;IAChC,GAAG,oCAAgB;IACnB,WAAW,EAAE,wCAAwC;CACtD,CAAC;AAEF;;GAEG;AACH,MAAM,2BAA2B,GAAG;IAClC,GAAG,6CAAyB;IAC5B,WAAW,EAAE,+FAA+F;CAC7G,CAAC;AAEF;;GAEG;AACH,MAAM,2BAA2B,GAAG;IAClC,IAAI,EAAE,QAAiB;IACvB,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,GAAG;IACd,WAAW,EAAE,0CAA0C;CACxD,CAAC;AAEF;;GAEG;AACH,MAAM,6BAA6B,GA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gCAAwB;IACxB,+BAAuB;IACvB,mCAA2B;IAC3B,+BAAuB;IACvB,gCAAwB;IACxB,yBAAiB;IACjB,gCAAwB;IACxB,0BAAkB;IAClB,+BAAuB;IACvB,8BAAsB;IACtB,uBAAe;IACf,4BAAoB;IACpB,0BAAkB;IAClB,wBAAgB;IAChB,wBAAgB;IAChB,4CAAqB;IACrB,sDAA0B;IAC1B,GAAG,0CAAoB;CACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listOverseerUsers.d.ts","sourceRoot":"","sources":["../../../src/tools/overseers/listOverseerUsers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAsBlD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"listOverseerUsers.d.ts","sourceRoot":"","sources":["../../../src/tools/overseers/listOverseerUsers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAsBlD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,OA8CnC,CAAC"}
|
|
@@ -75,6 +75,7 @@ Authentication: Requires streamAdminApiKey (admin) OR JWT auth as existing Overs
|
|
|
75
75
|
sortBy: args.sortBy,
|
|
76
76
|
sortOrder: args.sortOrder,
|
|
77
77
|
cursor: args.cursor,
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- runtime defensive check
|
|
78
79
|
pageSize: args.pageSize ?? 20,
|
|
79
80
|
})),
|
|
80
81
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listOverseerUsers.js","sourceRoot":"","sources":["../../../src/tools/overseers/listOverseerUsers.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAGH,kEAA8D;AAC9D,uEAAgE;AAEhE;;GAEG;AACH,MAA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