@gala-chain/launchpad-mcp-server 5.0.3 → 5.0.4-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/README.md +49 -21
- package/dist/ai-docs.json +7357 -0
- package/dist/constants/mcpToolNames.d.ts +3 -1
- package/dist/constants/mcpToolNames.d.ts.map +1 -1
- package/dist/constants/mcpToolNames.js +2 -1
- package/dist/constants/mcpToolNames.js.map +1 -1
- package/dist/explain-sdk-usage-ai.json +3445 -0
- 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 +24 -0
- package/dist/prompts/account.d.ts.map +1 -0
- package/dist/prompts/account.js +89 -0
- package/dist/prompts/account.js.map +1 -0
- package/dist/prompts/api-keys.d.ts +36 -0
- package/dist/prompts/api-keys.d.ts.map +1 -0
- package/dist/prompts/api-keys.js +251 -0
- package/dist/prompts/api-keys.js.map +1 -0
- package/dist/prompts/auth.d.ts +29 -0
- package/dist/prompts/auth.d.ts.map +1 -0
- package/dist/prompts/auth.js +127 -0
- package/dist/prompts/auth.js.map +1 -0
- package/dist/prompts/balances.d.ts.map +1 -1
- package/dist/prompts/balances.js +17 -17
- package/dist/prompts/balances.js.map +1 -1
- package/dist/prompts/bans.d.ts +23 -0
- package/dist/prompts/bans.d.ts.map +1 -0
- package/dist/prompts/bans.js +82 -0
- package/dist/prompts/bans.js.map +1 -0
- package/dist/prompts/bridge.d.ts +2 -1
- package/dist/prompts/bridge.d.ts.map +1 -1
- package/dist/prompts/bridge.js +91 -227
- package/dist/prompts/bridge.js.map +1 -1
- package/dist/prompts/burns.d.ts +30 -0
- package/dist/prompts/burns.d.ts.map +1 -0
- package/dist/prompts/burns.js +127 -0
- package/dist/prompts/burns.js.map +1 -0
- package/dist/prompts/chat-messages.d.ts +21 -0
- package/dist/prompts/chat-messages.d.ts.map +1 -0
- package/dist/prompts/chat-messages.js +103 -0
- package/dist/prompts/chat-messages.js.map +1 -0
- package/dist/prompts/chat.d.ts +67 -0
- package/dist/prompts/chat.d.ts.map +1 -0
- package/dist/prompts/chat.js +355 -0
- package/dist/prompts/chat.js.map +1 -0
- package/dist/prompts/comments.d.ts +29 -0
- package/dist/prompts/comments.d.ts.map +1 -0
- package/dist/prompts/comments.js +133 -0
- package/dist/prompts/comments.js.map +1 -0
- package/dist/prompts/content-flags.d.ts +29 -0
- package/dist/prompts/content-flags.d.ts.map +1 -0
- package/dist/prompts/content-flags.js +248 -0
- package/dist/prompts/content-flags.js.map +1 -0
- package/dist/prompts/content-reactions.d.ts +29 -0
- package/dist/prompts/content-reactions.d.ts.map +1 -0
- package/dist/prompts/content-reactions.js +77 -0
- package/dist/prompts/content-reactions.js.map +1 -0
- package/dist/prompts/create-token.d.ts.map +1 -1
- package/dist/prompts/create-token.js +11 -18
- package/dist/prompts/create-token.js.map +1 -1
- package/dist/prompts/dex-trading.d.ts.map +1 -1
- package/dist/prompts/dex-trading.js +11 -42
- package/dist/prompts/dex-trading.js.map +1 -1
- package/dist/prompts/discover-tokens.d.ts.map +1 -1
- package/dist/prompts/discover-tokens.js +11 -26
- package/dist/prompts/discover-tokens.js.map +1 -1
- package/dist/prompts/event-subscriptions.d.ts +45 -0
- package/dist/prompts/event-subscriptions.d.ts.map +1 -0
- package/dist/prompts/event-subscriptions.js +330 -0
- package/dist/prompts/event-subscriptions.js.map +1 -0
- package/dist/prompts/explore-dex-pools.d.ts +2 -0
- package/dist/prompts/explore-dex-pools.d.ts.map +1 -1
- package/dist/prompts/explore-dex-pools.js +26 -104
- package/dist/prompts/explore-dex-pools.js.map +1 -1
- package/dist/prompts/factories/balance-prompt-factory.d.ts +102 -0
- package/dist/prompts/factories/balance-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/balance-prompt-factory.js +176 -0
- package/dist/prompts/factories/balance-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/ban-management-factory.d.ts +90 -0
- package/dist/prompts/factories/ban-management-factory.d.ts.map +1 -0
- package/dist/prompts/factories/ban-management-factory.js +330 -0
- package/dist/prompts/factories/ban-management-factory.js.map +1 -0
- package/dist/prompts/factories/calculation-prompt-factory.d.ts +119 -0
- package/dist/prompts/factories/calculation-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/calculation-prompt-factory.js +183 -0
- package/dist/prompts/factories/calculation-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/discovery-prompt-factory.d.ts +135 -0
- package/dist/prompts/factories/discovery-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/discovery-prompt-factory.js +240 -0
- package/dist/prompts/factories/discovery-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/event-subscription-factory.d.ts +177 -0
- package/dist/prompts/factories/event-subscription-factory.d.ts.map +1 -0
- package/dist/prompts/factories/event-subscription-factory.js +329 -0
- package/dist/prompts/factories/event-subscription-factory.js.map +1 -0
- package/dist/prompts/factories/filtered-list-prompt-factory.d.ts +95 -0
- package/dist/prompts/factories/filtered-list-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/filtered-list-prompt-factory.js +147 -0
- package/dist/prompts/factories/filtered-list-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/index.d.ts +33 -0
- package/dist/prompts/factories/index.d.ts.map +1 -0
- package/dist/prompts/factories/index.js +91 -0
- package/dist/prompts/factories/index.js.map +1 -0
- package/dist/prompts/factories/invite-management-factory.d.ts +88 -0
- package/dist/prompts/factories/invite-management-factory.d.ts.map +1 -0
- package/dist/prompts/factories/invite-management-factory.js +262 -0
- package/dist/prompts/factories/invite-management-factory.js.map +1 -0
- package/dist/prompts/factories/reaction-prompt-factory.d.ts +81 -0
- package/dist/prompts/factories/reaction-prompt-factory.d.ts.map +1 -0
- package/dist/prompts/factories/reaction-prompt-factory.js +188 -0
- package/dist/prompts/factories/reaction-prompt-factory.js.map +1 -0
- package/dist/prompts/factories/simple-operation-factory.d.ts +166 -0
- package/dist/prompts/factories/simple-operation-factory.d.ts.map +1 -0
- package/dist/prompts/factories/simple-operation-factory.js +218 -0
- package/dist/prompts/factories/simple-operation-factory.js.map +1 -0
- package/dist/prompts/index.d.ts +31 -6
- package/dist/prompts/index.d.ts.map +1 -1
- package/dist/prompts/index.js +136 -5
- package/dist/prompts/index.js.map +1 -1
- package/dist/prompts/locks.d.ts.map +1 -1
- package/dist/prompts/locks.js +32 -56
- package/dist/prompts/locks.js.map +1 -1
- package/dist/prompts/moderators.d.ts +22 -0
- package/dist/prompts/moderators.d.ts.map +1 -0
- package/dist/prompts/moderators.js +62 -0
- package/dist/prompts/moderators.js.map +1 -0
- package/dist/prompts/monitoring.d.ts +3 -1
- package/dist/prompts/monitoring.d.ts.map +1 -1
- package/dist/prompts/monitoring.js +52 -140
- package/dist/prompts/monitoring.js.map +1 -1
- package/dist/prompts/overseers.d.ts +34 -0
- package/dist/prompts/overseers.d.ts.map +1 -0
- package/dist/prompts/overseers.js +117 -0
- package/dist/prompts/overseers.js.map +1 -0
- package/dist/prompts/pools.d.ts +22 -20
- package/dist/prompts/pools.d.ts.map +1 -1
- package/dist/prompts/pools.js +150 -251
- package/dist/prompts/pools.js.map +1 -1
- package/dist/prompts/portfolio.d.ts.map +1 -1
- package/dist/prompts/portfolio.js +1 -9
- package/dist/prompts/portfolio.js.map +1 -1
- package/dist/prompts/prompt-factories.d.ts +179 -0
- package/dist/prompts/prompt-factories.d.ts.map +1 -0
- package/dist/prompts/prompt-factories.js +230 -0
- package/dist/prompts/prompt-factories.js.map +1 -0
- package/dist/prompts/referrals.d.ts +27 -0
- package/dist/prompts/referrals.d.ts.map +1 -0
- package/dist/prompts/referrals.js +176 -0
- package/dist/prompts/referrals.js.map +1 -0
- package/dist/prompts/streaming.d.ts +84 -0
- package/dist/prompts/streaming.d.ts.map +1 -0
- package/dist/prompts/streaming.js +411 -0
- package/dist/prompts/streaming.js.map +1 -0
- package/dist/prompts/tier1-bridge-operations.d.ts +30 -0
- package/dist/prompts/tier1-bridge-operations.d.ts.map +1 -0
- package/dist/prompts/tier1-bridge-operations.js +634 -0
- package/dist/prompts/tier1-bridge-operations.js.map +1 -0
- package/dist/prompts/tier1-liquidity-management.d.ts +30 -0
- package/dist/prompts/tier1-liquidity-management.d.ts.map +1 -0
- package/dist/prompts/tier1-liquidity-management.js +560 -0
- package/dist/prompts/tier1-liquidity-management.js.map +1 -0
- package/dist/prompts/tier1-pool-discovery.d.ts +30 -0
- package/dist/prompts/tier1-pool-discovery.d.ts.map +1 -0
- package/dist/prompts/tier1-pool-discovery.js +221 -0
- package/dist/prompts/tier1-pool-discovery.js.map +1 -0
- package/dist/prompts/tier1-price-history.d.ts +30 -0
- package/dist/prompts/tier1-price-history.d.ts.map +1 -0
- package/dist/prompts/tier1-price-history.js +429 -0
- package/dist/prompts/tier1-price-history.js.map +1 -0
- package/dist/prompts/tier1-token-analysis.d.ts +30 -0
- package/dist/prompts/tier1-token-analysis.d.ts.map +1 -0
- package/dist/prompts/tier1-token-analysis.js +376 -0
- package/dist/prompts/tier1-token-analysis.js.map +1 -0
- package/dist/prompts/tier2-account-setup.d.ts +24 -0
- package/dist/prompts/tier2-account-setup.d.ts.map +1 -0
- package/dist/prompts/tier2-account-setup.js +206 -0
- package/dist/prompts/tier2-account-setup.js.map +1 -0
- package/dist/prompts/tier2-advanced-liquidity.d.ts +24 -0
- package/dist/prompts/tier2-advanced-liquidity.d.ts.map +1 -0
- package/dist/prompts/tier2-advanced-liquidity.js +298 -0
- package/dist/prompts/tier2-advanced-liquidity.js.map +1 -0
- package/dist/prompts/tier2-asset-management.d.ts +25 -0
- package/dist/prompts/tier2-asset-management.d.ts.map +1 -0
- package/dist/prompts/tier2-asset-management.js +246 -0
- package/dist/prompts/tier2-asset-management.js.map +1 -0
- package/dist/prompts/tier2-token-lifecycle.d.ts +25 -0
- package/dist/prompts/tier2-token-lifecycle.d.ts.map +1 -0
- package/dist/prompts/tier2-token-lifecycle.js +241 -0
- package/dist/prompts/tier2-token-lifecycle.js.map +1 -0
- package/dist/prompts/tier3-community-engagement.d.ts +26 -0
- package/dist/prompts/tier3-community-engagement.d.ts.map +1 -0
- package/dist/prompts/tier3-community-engagement.js +610 -0
- package/dist/prompts/tier3-community-engagement.js.map +1 -0
- package/dist/prompts/tier3-moderation-workflows.d.ts +31 -0
- package/dist/prompts/tier3-moderation-workflows.d.ts.map +1 -0
- package/dist/prompts/tier3-moderation-workflows.js +511 -0
- package/dist/prompts/tier3-moderation-workflows.js.map +1 -0
- package/dist/prompts/tier3-streaming-management.d.ts +26 -0
- package/dist/prompts/tier3-streaming-management.d.ts.map +1 -0
- package/dist/prompts/tier3-streaming-management.js +797 -0
- package/dist/prompts/tier3-streaming-management.js.map +1 -0
- package/dist/prompts/token-bans.d.ts +27 -0
- package/dist/prompts/token-bans.d.ts.map +1 -0
- package/dist/prompts/token-bans.js +77 -0
- package/dist/prompts/token-bans.js.map +1 -0
- package/dist/prompts/trades.d.ts +22 -0
- package/dist/prompts/trades.d.ts.map +1 -0
- package/dist/prompts/trades.js +107 -0
- package/dist/prompts/trades.js.map +1 -0
- package/dist/prompts/trading-calculations.d.ts +3 -1
- package/dist/prompts/trading-calculations.d.ts.map +1 -1
- package/dist/prompts/trading-calculations.js +134 -270
- package/dist/prompts/trading-calculations.js.map +1 -1
- package/dist/prompts/trading.d.ts +10 -1
- package/dist/prompts/trading.d.ts.map +1 -1
- package/dist/prompts/trading.js +128 -2
- package/dist/prompts/trading.js.map +1 -1
- package/dist/prompts/transfers.d.ts +2 -1
- package/dist/prompts/transfers.d.ts.map +1 -1
- package/dist/prompts/transfers.js +26 -30
- package/dist/prompts/transfers.js.map +1 -1
- package/dist/prompts/uploads.d.ts +19 -0
- package/dist/prompts/uploads.d.ts.map +1 -0
- package/dist/prompts/uploads.js +114 -0
- package/dist/prompts/uploads.js.map +1 -0
- package/dist/prompts/utility-tools.d.ts.map +1 -1
- package/dist/prompts/utility-tools.js +27 -18
- package/dist/prompts/utility-tools.js.map +1 -1
- package/dist/prompts/utils/index.d.ts +21 -0
- package/dist/prompts/utils/index.d.ts.map +1 -0
- package/dist/prompts/utils/index.js +38 -0
- package/dist/prompts/utils/index.js.map +1 -0
- package/dist/prompts/utils/pagination-helpers.d.ts +95 -0
- package/dist/prompts/utils/pagination-helpers.d.ts.map +1 -0
- package/dist/prompts/utils/pagination-helpers.js +121 -0
- package/dist/prompts/utils/pagination-helpers.js.map +1 -0
- package/dist/prompts/utils/workflowTemplates.d.ts.map +1 -1
- package/dist/prompts/utils/workflowTemplates.js +4 -3
- package/dist/prompts/utils/workflowTemplates.js.map +1 -1
- package/dist/prompts/wallet.d.ts +24 -0
- package/dist/prompts/wallet.d.ts.map +1 -0
- package/dist/prompts/wallet.js +139 -0
- package/dist/prompts/wallet.js.map +1 -0
- package/dist/schemas/common-schemas.d.ts +890 -0
- package/dist/schemas/common-schemas.d.ts.map +1 -1
- package/dist/schemas/common-schemas.js +853 -1
- package/dist/schemas/common-schemas.js.map +1 -1
- package/dist/server.d.ts +31 -3
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +68 -7
- package/dist/server.js.map +1 -1
- package/dist/tools/api-keys/index.d.ts +41 -0
- package/dist/tools/api-keys/index.d.ts.map +1 -0
- package/dist/tools/api-keys/index.js +245 -0
- package/dist/tools/api-keys/index.js.map +1 -0
- package/dist/tools/auth/index.d.ts +19 -0
- package/dist/tools/auth/index.d.ts.map +1 -0
- package/dist/tools/auth/index.js +138 -0
- package/dist/tools/auth/index.js.map +1 -0
- package/dist/tools/balance/helpers/format-balance.d.ts +86 -0
- package/dist/tools/balance/helpers/format-balance.d.ts.map +1 -0
- package/dist/tools/balance/helpers/format-balance.js +87 -0
- package/dist/tools/balance/helpers/format-balance.js.map +1 -0
- package/dist/tools/balance/index.d.ts +4 -4
- package/dist/tools/balance/index.d.ts.map +1 -1
- package/dist/tools/balance/index.js +64 -176
- package/dist/tools/balance/index.js.map +1 -1
- package/dist/tools/ban/index.d.ts +37 -0
- package/dist/tools/ban/index.d.ts.map +1 -0
- package/dist/tools/ban/index.js +206 -0
- package/dist/tools/ban/index.js.map +1 -0
- package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts +87 -0
- package/dist/tools/bridge/helpers/bridgeable-token-tools.d.ts.map +1 -0
- package/dist/tools/bridge/helpers/bridgeable-token-tools.js +130 -0
- package/dist/tools/bridge/helpers/bridgeable-token-tools.js.map +1 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.d.ts +87 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.d.ts.map +1 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js +167 -0
- package/dist/tools/bridge/helpers/external-chain-balance-tools.js.map +1 -0
- package/dist/tools/bridge/index.d.ts +3 -7
- package/dist/tools/bridge/index.d.ts.map +1 -1
- package/dist/tools/bridge/index.js +89 -371
- package/dist/tools/bridge/index.js.map +1 -1
- package/dist/tools/burns/index.d.ts.map +1 -1
- package/dist/tools/burns/index.js +8 -36
- package/dist/tools/burns/index.js.map +1 -1
- package/dist/tools/chat/getPinnedChatMessage.d.ts +15 -0
- package/dist/tools/chat/getPinnedChatMessage.d.ts.map +1 -0
- package/dist/tools/chat/getPinnedChatMessage.js +37 -0
- package/dist/tools/chat/getPinnedChatMessage.js.map +1 -0
- package/dist/tools/chat/index.d.ts +73 -0
- package/dist/tools/chat/index.d.ts.map +1 -0
- package/dist/tools/chat/index.js +359 -0
- package/dist/tools/chat/index.js.map +1 -0
- package/dist/tools/chat/pinChatMessage.d.ts +16 -0
- package/dist/tools/chat/pinChatMessage.d.ts.map +1 -0
- package/dist/tools/chat/pinChatMessage.js +51 -0
- package/dist/tools/chat/pinChatMessage.js.map +1 -0
- package/dist/tools/chat/unpinChatMessage.d.ts +16 -0
- package/dist/tools/chat/unpinChatMessage.d.ts.map +1 -0
- package/dist/tools/chat/unpinChatMessage.js +39 -0
- package/dist/tools/chat/unpinChatMessage.js.map +1 -0
- package/dist/tools/chat-messages/index.d.ts +35 -0
- package/dist/tools/chat-messages/index.d.ts.map +1 -0
- package/dist/tools/chat-messages/index.js +165 -0
- package/dist/tools/chat-messages/index.js.map +1 -0
- package/dist/tools/comments/index.d.ts +44 -0
- package/dist/tools/comments/index.d.ts.map +1 -0
- package/dist/tools/comments/index.js +171 -0
- package/dist/tools/comments/index.js.map +1 -0
- package/dist/tools/content-flags/index.d.ts +38 -0
- package/dist/tools/content-flags/index.d.ts.map +1 -0
- package/dist/tools/content-flags/index.js +282 -0
- package/dist/tools/content-flags/index.js.map +1 -0
- package/dist/tools/content-reactions/index.d.ts +43 -0
- package/dist/tools/content-reactions/index.d.ts.map +1 -0
- package/dist/tools/content-reactions/index.js +135 -0
- package/dist/tools/content-reactions/index.js.map +1 -0
- package/dist/tools/creation/index.d.ts.map +1 -1
- package/dist/tools/creation/index.js +2 -5
- package/dist/tools/creation/index.js.map +1 -1
- package/dist/tools/dex/fetchAllDexPools.d.ts.map +1 -1
- package/dist/tools/dex/fetchAllDexPools.js +5 -21
- package/dist/tools/dex/fetchAllDexPools.js.map +1 -1
- package/dist/tools/dex/fetchDexPools.d.ts.map +1 -1
- package/dist/tools/dex/fetchDexPools.js +11 -28
- package/dist/tools/dex/fetchDexPools.js.map +1 -1
- package/dist/tools/dex/helpers.d.ts +479 -0
- package/dist/tools/dex/helpers.d.ts.map +1 -0
- package/dist/tools/dex/helpers.js +570 -0
- package/dist/tools/dex/helpers.js.map +1 -0
- package/dist/tools/dex/index.d.ts +50 -11
- package/dist/tools/dex/index.d.ts.map +1 -1
- package/dist/tools/dex/index.js +124 -486
- package/dist/tools/dex/index.js.map +1 -1
- package/dist/tools/dex/leaderboard.d.ts.map +1 -1
- package/dist/tools/dex/leaderboard.js +5 -70
- package/dist/tools/dex/leaderboard.js.map +1 -1
- package/dist/tools/dex/liquidity-positions.d.ts.map +1 -1
- package/dist/tools/dex/liquidity-positions.js +20 -91
- package/dist/tools/dex/liquidity-positions.js.map +1 -1
- package/dist/tools/dex/volume.d.ts.map +1 -1
- package/dist/tools/dex/volume.js +6 -21
- package/dist/tools/dex/volume.js.map +1 -1
- package/dist/tools/dex-analytics/index.d.ts +48 -0
- package/dist/tools/dex-analytics/index.d.ts.map +1 -0
- package/dist/tools/dex-analytics/index.js +111 -0
- package/dist/tools/dex-analytics/index.js.map +1 -0
- package/dist/tools/dex-liquidity/index.d.ts +22 -0
- package/dist/tools/dex-liquidity/index.d.ts.map +1 -0
- package/dist/tools/dex-liquidity/index.js +384 -0
- package/dist/tools/dex-liquidity/index.js.map +1 -0
- package/dist/tools/dex-pools/index.d.ts +60 -0
- package/dist/tools/dex-pools/index.d.ts.map +1 -0
- package/dist/tools/dex-pools/index.js +231 -0
- package/dist/tools/dex-pools/index.js.map +1 -0
- package/dist/tools/handler-factories.d.ts +1401 -0
- package/dist/tools/handler-factories.d.ts.map +1 -0
- package/dist/tools/handler-factories.js +1680 -0
- package/dist/tools/handler-factories.js.map +1 -0
- package/dist/tools/index.d.ts +1 -11
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +171 -27
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/locks/index.d.ts +2 -0
- package/dist/tools/locks/index.d.ts.map +1 -1
- package/dist/tools/locks/index.js +9 -86
- package/dist/tools/locks/index.js.map +1 -1
- package/dist/tools/moderators/index.d.ts +53 -0
- package/dist/tools/moderators/index.d.ts.map +1 -0
- package/dist/tools/moderators/index.js +258 -0
- package/dist/tools/moderators/index.js.map +1 -0
- package/dist/tools/overseers/getOverseerUserSummary.d.ts +15 -0
- package/dist/tools/overseers/getOverseerUserSummary.d.ts.map +1 -0
- package/dist/tools/overseers/getOverseerUserSummary.js +40 -0
- package/dist/tools/overseers/getOverseerUserSummary.js.map +1 -0
- package/dist/tools/overseers/index.d.ts +58 -0
- package/dist/tools/overseers/index.d.ts.map +1 -0
- package/dist/tools/overseers/index.js +325 -0
- package/dist/tools/overseers/index.js.map +1 -0
- package/dist/tools/overseers/listOverseerUsers.d.ts +15 -0
- package/dist/tools/overseers/listOverseerUsers.d.ts.map +1 -0
- package/dist/tools/overseers/listOverseerUsers.js +76 -0
- package/dist/tools/overseers/listOverseerUsers.js.map +1 -0
- package/dist/tools/pagination-handler-factory.d.ts +131 -0
- package/dist/tools/pagination-handler-factory.d.ts.map +1 -0
- package/dist/tools/pagination-handler-factory.js +159 -0
- package/dist/tools/pagination-handler-factory.js.map +1 -0
- package/dist/tools/pools/checkPoolExists.d.ts +16 -0
- package/dist/tools/pools/checkPoolExists.d.ts.map +1 -0
- package/dist/tools/pools/checkPoolExists.js +48 -0
- package/dist/tools/pools/checkPoolExists.js.map +1 -0
- package/dist/tools/pools/fetchAllPools.d.ts.map +1 -1
- package/dist/tools/pools/fetchAllPools.js +51 -11
- package/dist/tools/pools/fetchAllPools.js.map +1 -1
- package/dist/tools/pools/fetchAllPriceHistory.d.ts.map +1 -1
- package/dist/tools/pools/fetchAllPriceHistory.js +11 -51
- package/dist/tools/pools/fetchAllPriceHistory.js.map +1 -1
- package/dist/tools/pools/fetchPoolDetails.d.ts.map +1 -1
- package/dist/tools/pools/fetchPoolDetails.js +4 -11
- package/dist/tools/pools/fetchPoolDetails.js.map +1 -1
- package/dist/tools/pools/fetchPools.d.ts.map +1 -1
- package/dist/tools/pools/fetchPools.js +40 -20
- package/dist/tools/pools/fetchPools.js.map +1 -1
- package/dist/tools/pools/fetchPriceHistory.d.ts.map +1 -1
- package/dist/tools/pools/fetchPriceHistory.js +10 -51
- package/dist/tools/pools/fetchPriceHistory.js.map +1 -1
- package/dist/tools/pools/fetchTokenDetails.d.ts.map +1 -1
- package/dist/tools/pools/fetchTokenDetails.js +4 -35
- package/dist/tools/pools/fetchTokenDetails.js.map +1 -1
- package/dist/tools/pools/index.d.ts +2 -0
- package/dist/tools/pools/index.d.ts.map +1 -1
- package/dist/tools/pools/index.js +103 -35
- package/dist/tools/pools/index.js.map +1 -1
- package/dist/tools/pools/onDexPoolCreation.d.ts +1 -2
- package/dist/tools/pools/onDexPoolCreation.d.ts.map +1 -1
- package/dist/tools/pools/onDexPoolCreation.js +14 -48
- package/dist/tools/pools/onDexPoolCreation.js.map +1 -1
- package/dist/tools/pools/onLaunchpadTokenCreation.d.ts +1 -2
- package/dist/tools/pools/onLaunchpadTokenCreation.d.ts.map +1 -1
- package/dist/tools/pools/onLaunchpadTokenCreation.js +9 -42
- package/dist/tools/pools/onLaunchpadTokenCreation.js.map +1 -1
- package/dist/tools/pools/priceHistoryFactory.d.ts +44 -0
- package/dist/tools/pools/priceHistoryFactory.d.ts.map +1 -0
- package/dist/tools/pools/priceHistoryFactory.js +154 -0
- package/dist/tools/pools/priceHistoryFactory.js.map +1 -0
- package/dist/tools/pools/updateTokenSocials.d.ts +16 -0
- package/dist/tools/pools/updateTokenSocials.d.ts.map +1 -0
- package/dist/tools/pools/updateTokenSocials.js +84 -0
- package/dist/tools/pools/updateTokenSocials.js.map +1 -0
- package/dist/tools/referrals/index.d.ts +12 -0
- package/dist/tools/referrals/index.d.ts.map +1 -0
- package/dist/tools/referrals/index.js +110 -0
- package/dist/tools/referrals/index.js.map +1 -0
- package/dist/tools/streaming/index.d.ts +94 -0
- package/dist/tools/streaming/index.d.ts.map +1 -0
- package/dist/tools/streaming/index.js +549 -0
- package/dist/tools/streaming/index.js.map +1 -0
- package/dist/tools/streaming/setNextLiveStreamCountdown.d.ts +16 -0
- package/dist/tools/streaming/setNextLiveStreamCountdown.d.ts.map +1 -0
- package/dist/tools/streaming/setNextLiveStreamCountdown.js +62 -0
- package/dist/tools/streaming/setNextLiveStreamCountdown.js.map +1 -0
- package/dist/tools/token-ban/index.d.ts +39 -0
- package/dist/tools/token-ban/index.d.ts.map +1 -0
- package/dist/tools/token-ban/index.js +177 -0
- package/dist/tools/token-ban/index.js.map +1 -0
- package/dist/tools/tool-factory.d.ts +84 -0
- package/dist/tools/tool-factory.d.ts.map +1 -0
- package/dist/tools/tool-factory.js +135 -0
- package/dist/tools/tool-factory.js.map +1 -0
- package/dist/tools/trades/index.d.ts +20 -0
- package/dist/tools/trades/index.d.ts.map +1 -0
- package/dist/tools/trades/index.js +113 -0
- package/dist/tools/trades/index.js.map +1 -0
- package/dist/tools/trading/helpers/arg-extractors.d.ts +128 -0
- package/dist/tools/trading/helpers/arg-extractors.d.ts.map +1 -0
- package/dist/tools/trading/helpers/arg-extractors.js +215 -0
- package/dist/tools/trading/helpers/arg-extractors.js.map +1 -0
- package/dist/tools/trading/helpers/index.d.ts +8 -0
- package/dist/tools/trading/helpers/index.d.ts.map +1 -0
- package/dist/tools/trading/helpers/index.js +24 -0
- package/dist/tools/trading/helpers/index.js.map +1 -0
- package/dist/tools/trading/helpers/trading-schemas.d.ts +276 -0
- package/dist/tools/trading/helpers/trading-schemas.d.ts.map +1 -0
- package/dist/tools/trading/helpers/trading-schemas.js +310 -0
- package/dist/tools/trading/helpers/trading-schemas.js.map +1 -0
- package/dist/tools/trading/index.d.ts +2 -0
- package/dist/tools/trading/index.d.ts.map +1 -1
- package/dist/tools/trading/index.js +148 -371
- package/dist/tools/trading/index.js.map +1 -1
- package/dist/tools/transfers/index.d.ts +3 -0
- package/dist/tools/transfers/index.d.ts.map +1 -1
- package/dist/tools/transfers/index.js +72 -52
- package/dist/tools/transfers/index.js.map +1 -1
- package/dist/tools/utils/cleanup.d.ts.map +1 -1
- package/dist/tools/utils/cleanup.js +2 -9
- package/dist/tools/utils/cleanup.js.map +1 -1
- package/dist/tools/utils/clearCache.d.ts.map +1 -1
- package/dist/tools/utils/clearCache.js +5 -7
- package/dist/tools/utils/clearCache.js.map +1 -1
- package/dist/tools/utils/explainSdkUsage.d.ts +52 -0
- package/dist/tools/utils/explainSdkUsage.d.ts.map +1 -1
- package/dist/tools/utils/explainSdkUsage.js +1905 -93
- package/dist/tools/utils/explainSdkUsage.js.map +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.d.ts.map +1 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js +2 -1
- package/dist/tools/utils/getEthereumAddressFromPrivateKey.js.map +1 -1
- package/dist/tools/utils/index.d.ts +2 -0
- package/dist/tools/utils/index.d.ts.map +1 -1
- package/dist/tools/utils/index.js +2 -12
- package/dist/tools/utils/index.js.map +1 -1
- package/dist/tools/wallet/index.d.ts +7 -0
- package/dist/tools/wallet/index.d.ts.map +1 -0
- package/dist/tools/wallet/index.js +24 -0
- package/dist/tools/wallet/index.js.map +1 -0
- package/dist/utils/date-converter.d.ts +58 -0
- package/dist/utils/date-converter.d.ts.map +1 -0
- package/dist/utils/date-converter.js +83 -0
- package/dist/utils/date-converter.js.map +1 -0
- package/dist/utils/pool-filter-builder.d.ts +78 -0
- package/dist/utils/pool-filter-builder.d.ts.map +1 -0
- package/dist/utils/pool-filter-builder.js +130 -0
- package/dist/utils/pool-filter-builder.js.map +1 -0
- package/dist/utils/safe-parsers.d.ts +87 -0
- package/dist/utils/safe-parsers.d.ts.map +1 -0
- package/dist/utils/safe-parsers.js +134 -0
- package/dist/utils/safe-parsers.js.map +1 -0
- package/dist/utils/validation.d.ts +5 -5
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +24 -21
- package/dist/utils/validation.js.map +1 -1
- package/package.json +23 -15
- package/.env.example +0 -21
- package/.eslintrc.json +0 -88
- package/CHANGELOG.md +0 -2161
- package/DOCS_AUDIT_REPORT.md +0 -189
- package/DRY_REFACTORING_GUIDE.md +0 -271
- package/MCP_COVERAGE_REPORT.md +0 -164
- package/MCP_TEST_ANALYSIS.md +0 -317
- package/jest.integration.config.js +0 -70
- package/scripts/inject-version.ts +0 -31
- package/scripts/validate-mcp-test-analysis.ts +0 -250
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Reaction Prompt Factory
|
|
4
|
+
*
|
|
5
|
+
* Provides factory functions for creating reaction-related MCP prompts
|
|
6
|
+
* with standardized patterns for add/remove reactions on various content types.
|
|
7
|
+
*
|
|
8
|
+
* This handles the common pattern seen in content-reactions.ts where
|
|
9
|
+
* we have add/remove pairs for chat messages, comments, and generic content.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // Create a reaction prompt pair
|
|
13
|
+
* const [addReaction, removeReaction] = createReactionPromptPair({
|
|
14
|
+
* contentType: 'comment',
|
|
15
|
+
* addToolName: 'gala_launchpad_add_reaction_to_comment',
|
|
16
|
+
* removeToolName: 'gala_launchpad_remove_reaction_from_comment',
|
|
17
|
+
* });
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.reactionPromptFactories = exports.REACTION_TYPES = void 0;
|
|
21
|
+
exports.createAddReactionPrompt = createAddReactionPrompt;
|
|
22
|
+
exports.createRemoveReactionPrompt = createRemoveReactionPrompt;
|
|
23
|
+
exports.createReactionPromptPair = createReactionPromptPair;
|
|
24
|
+
const prompt_factories_js_1 = require("../prompt-factories.js");
|
|
25
|
+
/**
|
|
26
|
+
* Supported reaction types
|
|
27
|
+
*/
|
|
28
|
+
exports.REACTION_TYPES = ['heart', 'fire', 'laugh', 'wow', 'thumbs_up'];
|
|
29
|
+
/**
|
|
30
|
+
* Create an add reaction prompt
|
|
31
|
+
*
|
|
32
|
+
* @param config - Configuration for the reaction prompt
|
|
33
|
+
* @returns MCPPrompt definition for adding reactions
|
|
34
|
+
*/
|
|
35
|
+
function createAddReactionPrompt(config) {
|
|
36
|
+
const { contentType, addToolName, messageIdFormat = getDefaultMessageIdFormat(contentType), additionalContext = '', } = config;
|
|
37
|
+
const contentTypeDisplay = getContentTypeDisplay(contentType);
|
|
38
|
+
const nameSuffix = getNameSuffix(contentType, 'add');
|
|
39
|
+
return (0, prompt_factories_js_1.createTokenOperationPrompt)({
|
|
40
|
+
name: `galachain-launchpad:${nameSuffix}`,
|
|
41
|
+
description: `Add a reaction to a ${contentTypeDisplay}`,
|
|
42
|
+
requiresTokenName: true,
|
|
43
|
+
toolName: addToolName,
|
|
44
|
+
actionDescription: `add reaction to ${contentTypeDisplay}`,
|
|
45
|
+
additionalArguments: [
|
|
46
|
+
{
|
|
47
|
+
name: 'messageId',
|
|
48
|
+
description: `Message ID (${messageIdFormat})`,
|
|
49
|
+
required: true,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'reactionType',
|
|
53
|
+
description: `Reaction type: ${exports.REACTION_TYPES.join(', ')}`,
|
|
54
|
+
required: true,
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
buildParameters: (args) => ({
|
|
58
|
+
token: `Token: ${args.tokenName}`,
|
|
59
|
+
messageId: `Message ID: ${args.messageId}`,
|
|
60
|
+
reaction: `Reaction: ${args.reactionType}`,
|
|
61
|
+
}),
|
|
62
|
+
operationDescription: `Add "{reactionType}" reaction to ${contentTypeDisplay} on token "{tokenName}".
|
|
63
|
+
${contentType === 'content'
|
|
64
|
+
? `
|
|
65
|
+
**Reaction Types:**
|
|
66
|
+
- heart: Love/like
|
|
67
|
+
- fire: Hot/trending
|
|
68
|
+
- laugh: Funny
|
|
69
|
+
- wow: Surprising
|
|
70
|
+
- thumbs_up: Agreement
|
|
71
|
+
|
|
72
|
+
Adding the same reaction type again is idempotent (no-op).
|
|
73
|
+
Users can have multiple different reaction types on the same message.`
|
|
74
|
+
: ''}${additionalContext}`,
|
|
75
|
+
displayFormat: `Display updated reaction counts for the ${contentTypeDisplay}.`,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Create a remove reaction prompt
|
|
80
|
+
*
|
|
81
|
+
* @param config - Configuration for the reaction prompt
|
|
82
|
+
* @returns MCPPrompt definition for removing reactions
|
|
83
|
+
*/
|
|
84
|
+
function createRemoveReactionPrompt(config) {
|
|
85
|
+
const { contentType, removeToolName, messageIdFormat = getDefaultMessageIdFormat(contentType), } = config;
|
|
86
|
+
const contentTypeDisplay = getContentTypeDisplay(contentType);
|
|
87
|
+
const nameSuffix = getNameSuffix(contentType, 'remove');
|
|
88
|
+
return (0, prompt_factories_js_1.createTokenOperationPrompt)({
|
|
89
|
+
name: `galachain-launchpad:${nameSuffix}`,
|
|
90
|
+
description: `Remove a reaction from a ${contentTypeDisplay}`,
|
|
91
|
+
requiresTokenName: true,
|
|
92
|
+
toolName: removeToolName,
|
|
93
|
+
actionDescription: `remove reaction from ${contentTypeDisplay}`,
|
|
94
|
+
additionalArguments: [
|
|
95
|
+
{
|
|
96
|
+
name: 'messageId',
|
|
97
|
+
description: `Message ID (${messageIdFormat})`,
|
|
98
|
+
required: true,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'reactionType',
|
|
102
|
+
description: `Reaction type: ${exports.REACTION_TYPES.join(', ')}`,
|
|
103
|
+
required: true,
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
buildParameters: (args) => ({
|
|
107
|
+
token: `Token: ${args.tokenName}`,
|
|
108
|
+
messageId: `Message ID: ${args.messageId}`,
|
|
109
|
+
reaction: `Reaction: ${args.reactionType}`,
|
|
110
|
+
}),
|
|
111
|
+
operationDescription: `Remove "{reactionType}" reaction from ${contentTypeDisplay} on token "{tokenName}".
|
|
112
|
+
|
|
113
|
+
Only the user who created the reaction can remove it.`,
|
|
114
|
+
displayFormat: 'Confirm the reaction has been removed.',
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Create both add and remove reaction prompts for a content type
|
|
119
|
+
*
|
|
120
|
+
* @param config - Configuration for the reaction prompts
|
|
121
|
+
* @returns Tuple of [addPrompt, removePrompt]
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```typescript
|
|
125
|
+
* const [addCommentReaction, removeCommentReaction] = createReactionPromptPair({
|
|
126
|
+
* contentType: 'comment',
|
|
127
|
+
* addToolName: REACTION_TOOLS.ADD_REACTION_TO_COMMENT,
|
|
128
|
+
* removeToolName: REACTION_TOOLS.REMOVE_REACTION_FROM_COMMENT,
|
|
129
|
+
* });
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
function createReactionPromptPair(config) {
|
|
133
|
+
return [createAddReactionPrompt(config), createRemoveReactionPrompt(config)];
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Get display name for content type
|
|
137
|
+
*/
|
|
138
|
+
function getContentTypeDisplay(contentType) {
|
|
139
|
+
switch (contentType) {
|
|
140
|
+
case 'content':
|
|
141
|
+
return 'pool message (chat or comment)';
|
|
142
|
+
case 'chat-message':
|
|
143
|
+
return 'chat message';
|
|
144
|
+
case 'comment':
|
|
145
|
+
return 'comment';
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Get prompt name suffix for content type
|
|
150
|
+
*
|
|
151
|
+
* Note: Uses 'from' for remove actions to match original naming convention
|
|
152
|
+
* (e.g., remove-reaction-from-chat-message, not remove-reaction-to-chat-message)
|
|
153
|
+
*/
|
|
154
|
+
function getNameSuffix(contentType, action) {
|
|
155
|
+
// Use 'to' for add, 'from' for remove to match natural language
|
|
156
|
+
const preposition = action === 'add' ? 'to' : 'from';
|
|
157
|
+
switch (contentType) {
|
|
158
|
+
case 'content':
|
|
159
|
+
return `${action}-content-reaction`;
|
|
160
|
+
case 'chat-message':
|
|
161
|
+
return `${action}-reaction-${preposition}-chat-message`;
|
|
162
|
+
case 'comment':
|
|
163
|
+
return `${action}-reaction-${preposition}-comment`;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Get default message ID format description
|
|
168
|
+
*/
|
|
169
|
+
function getDefaultMessageIdFormat(contentType) {
|
|
170
|
+
switch (contentType) {
|
|
171
|
+
case 'content':
|
|
172
|
+
return 'format: msg-{timestamp}-{uuid} or chat-{timestamp}-{uuid}';
|
|
173
|
+
case 'chat-message':
|
|
174
|
+
return 'format: chat-{timestamp}-{uuid}';
|
|
175
|
+
case 'comment':
|
|
176
|
+
return 'format: msg-{timestamp}-{uuid}';
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Factory exports for convenient access
|
|
181
|
+
*/
|
|
182
|
+
exports.reactionPromptFactories = {
|
|
183
|
+
createAddReactionPrompt,
|
|
184
|
+
createRemoveReactionPrompt,
|
|
185
|
+
createReactionPromptPair,
|
|
186
|
+
REACTION_TYPES: exports.REACTION_TYPES,
|
|
187
|
+
};
|
|
188
|
+
//# sourceMappingURL=reaction-prompt-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reaction-prompt-factory.js","sourceRoot":"","sources":["../../../src/prompts/factories/reaction-prompt-factory.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAwCH,0DAmDC;AAQD,gEAsCC;AAiBD,4DAEC;AAzJD,gEAAoE;AAEpE;;GAEG;AACU,QAAA,cAAc,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,CAAU,CAAC;AA0BtF;;;;;GAKG;AACH,SAAgB,uBAAuB,CAAC,MAA4B;IAClE,MAAM,EACJ,WAAW,EACX,WAAW,EACX,eAAe,GAAG,yBAAyB,CAAC,WAAW,CAAC,EACxD,iBAAiB,GAAG,EAAE,GACvB,GAAG,MAAM,CAAC;IAEX,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC;IAC9D,MAAM,UAAU,GAAG,aAAa,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAErD,OAAO,IAAA,gDAA0B,EAAC;QAChC,IAAI,EAAE,uBAAuB,UAAU,EAAE;QACzC,WAAW,EAAE,uBAAuB,kBAAkB,EAAE;QACxD,iBAAiB,EAAE,IAAI;QACvB,QAAQ,EAAE,WAAW;QACrB,iBAAiB,EAAE,mBAAmB,kBAAkB,EAAE;QAC1D,mBAAmB,EAAE;YACnB;gBACE,IAAI,EAAE,WAAW;gBACjB,WAAW,EAAE,eAAe,eAAe,GAAG;gBAC9C,QAAQ,EAAE,IAAI;aACf;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,WAAW,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pB,KAAK,SAAS;YACZ,OAAO,2DAA2D,CAAC;QACrE,KAAK,cAAc;YACjB,OAAO,iCAAiC,CAAC;QAC3C,KAAK,SAAS;YACZ,OAAO,gCAAgC,CAAC;IAC5C,CAAC;AACH,CAAC;AAED;;GAEG;AACU,QAAA,uBAAuB,GAAG;IACrC,uBAAuB;IACvB,0BAA0B;IAC1B,wBAAwB;IACxB,cAAc,EAAd,sBAAc;CACf,CAAC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple Operation Prompt Factory
|
|
3
|
+
*
|
|
4
|
+
* Provides factory functions for creating simple fetch-display MCP prompts
|
|
5
|
+
* with minimal configuration. These prompts follow the pattern:
|
|
6
|
+
* 1. Validate inputs (optional)
|
|
7
|
+
* 2. Fetch data using a tool
|
|
8
|
+
* 3. Display results
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* // Create a simple fetch prompt with no arguments
|
|
12
|
+
* const statusPrompt = createSimpleOperationPrompt({
|
|
13
|
+
* name: 'my-status',
|
|
14
|
+
* description: 'Get current status',
|
|
15
|
+
* toolName: 'my_tool_get_status',
|
|
16
|
+
* operation: 'Get current system status.',
|
|
17
|
+
* actionDescription: 'fetch the status',
|
|
18
|
+
* });
|
|
19
|
+
*/
|
|
20
|
+
import type { MCPPrompt, MCPPromptArgument } from '../../types/mcp.js';
|
|
21
|
+
/**
|
|
22
|
+
* Configuration for simple operation prompt factory
|
|
23
|
+
*/
|
|
24
|
+
export interface SimpleOperationPromptConfig {
|
|
25
|
+
/** Unique prompt name */
|
|
26
|
+
name: string;
|
|
27
|
+
/** User-facing description */
|
|
28
|
+
description: string;
|
|
29
|
+
/** MCP tool name to invoke */
|
|
30
|
+
toolName: string;
|
|
31
|
+
/** Operation description for the prompt text */
|
|
32
|
+
operation: string;
|
|
33
|
+
/** Description of what the tool does */
|
|
34
|
+
actionDescription: string;
|
|
35
|
+
/** Optional display format instructions */
|
|
36
|
+
displayFormat?: string;
|
|
37
|
+
/** Arguments for the prompt (default: none) */
|
|
38
|
+
arguments?: MCPPromptArgument[];
|
|
39
|
+
/** Function to build parameters from handler arguments */
|
|
40
|
+
buildParameters?: (args: Record<string, string>) => Record<string, string | undefined>;
|
|
41
|
+
/** Optional validation function */
|
|
42
|
+
validate?: (args: Record<string, string>) => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create a simple operation prompt with standardized handling
|
|
46
|
+
*
|
|
47
|
+
* This factory creates prompts that follow the simple pattern of:
|
|
48
|
+
* validate -> build parameters -> create response
|
|
49
|
+
*
|
|
50
|
+
* @param config - Configuration for the simple operation prompt
|
|
51
|
+
* @returns Complete MCPPrompt definition
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* const globalStatusPrompt = createSimpleOperationPrompt({
|
|
56
|
+
* name: 'galachain-launchpad:global-status',
|
|
57
|
+
* description: 'Get platform-wide status',
|
|
58
|
+
* toolName: 'gala_launchpad_get_global_status',
|
|
59
|
+
* operation: 'Get global platform status.',
|
|
60
|
+
* actionDescription: 'fetch global status',
|
|
61
|
+
* displayFormat: 'Display the status and timestamp.',
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function createSimpleOperationPrompt(config: SimpleOperationPromptConfig): MCPPrompt;
|
|
66
|
+
/**
|
|
67
|
+
* Configuration for paginated list prompt
|
|
68
|
+
*/
|
|
69
|
+
export interface PaginatedListPromptConfig {
|
|
70
|
+
/** Unique prompt name */
|
|
71
|
+
name: string;
|
|
72
|
+
/** User-facing description */
|
|
73
|
+
description: string;
|
|
74
|
+
/** MCP tool name to invoke */
|
|
75
|
+
toolName: string;
|
|
76
|
+
/** What is being listed (e.g., 'pools', 'tokens', 'positions') */
|
|
77
|
+
itemType: string;
|
|
78
|
+
/** Default page size */
|
|
79
|
+
defaultLimit?: number;
|
|
80
|
+
/** Maximum allowed page size */
|
|
81
|
+
maxLimit?: number;
|
|
82
|
+
/** Additional filter arguments */
|
|
83
|
+
filterArguments?: MCPPromptArgument[];
|
|
84
|
+
/** Function to build filter parameters */
|
|
85
|
+
buildFilterParameters?: (args: Record<string, string>) => Record<string, string | undefined>;
|
|
86
|
+
/** Display format for results */
|
|
87
|
+
displayFormat?: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Create a paginated list prompt with standardized pagination handling
|
|
91
|
+
*
|
|
92
|
+
* Handles the common pattern of:
|
|
93
|
+
* - page/limit parameters
|
|
94
|
+
* - optional search/filter parameters
|
|
95
|
+
* - standardized response format
|
|
96
|
+
*
|
|
97
|
+
* @param config - Configuration for the paginated list prompt
|
|
98
|
+
* @returns Complete MCPPrompt definition
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```typescript
|
|
102
|
+
* const listPoolsPrompt = createPaginatedListPrompt({
|
|
103
|
+
* name: 'galachain-launchpad:list-pools',
|
|
104
|
+
* description: 'List token pools with pagination',
|
|
105
|
+
* toolName: MCP_TOOLS.FETCH_POOLS,
|
|
106
|
+
* itemType: 'pools',
|
|
107
|
+
* defaultLimit: 20,
|
|
108
|
+
* maxLimit: 100,
|
|
109
|
+
* filterArguments: [
|
|
110
|
+
* { name: 'type', description: 'Pool type: recent or popular', required: false }
|
|
111
|
+
* ],
|
|
112
|
+
* buildFilterParameters: (args) => ({
|
|
113
|
+
* type: args.type ? `Type: ${args.type}` : undefined,
|
|
114
|
+
* }),
|
|
115
|
+
* });
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
export declare function createPaginatedListPrompt(config: PaginatedListPromptConfig): MCPPrompt;
|
|
119
|
+
/**
|
|
120
|
+
* Configuration for status/toggle prompt
|
|
121
|
+
*/
|
|
122
|
+
export interface StatusTogglePromptConfig {
|
|
123
|
+
/** Base prompt name (will create get-X-status and set-X-enabled prompts) */
|
|
124
|
+
baseName: string;
|
|
125
|
+
/** Human-readable feature name (e.g., 'streaming', 'chat') */
|
|
126
|
+
featureName: string;
|
|
127
|
+
/** Tool name for getting status */
|
|
128
|
+
getStatusToolName: string;
|
|
129
|
+
/** Tool name for setting enabled state */
|
|
130
|
+
setEnabledToolName: string;
|
|
131
|
+
/** Whether this is admin-only */
|
|
132
|
+
adminOnly?: boolean;
|
|
133
|
+
/** Additional context about what this controls */
|
|
134
|
+
context?: string;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Create get-status and set-enabled prompts for a feature toggle
|
|
138
|
+
*
|
|
139
|
+
* This creates two prompts:
|
|
140
|
+
* 1. get-{feature}-status - Read current state
|
|
141
|
+
* 2. set-{feature}-enabled - Toggle the feature
|
|
142
|
+
*
|
|
143
|
+
* @param config - Configuration for the status toggle
|
|
144
|
+
* @returns Array of two MCPPrompt definitions [getStatus, setEnabled]
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```typescript
|
|
148
|
+
* const [getStreamingStatus, setStreamingEnabled] = createStatusTogglePrompts({
|
|
149
|
+
* baseName: 'global-streaming',
|
|
150
|
+
* featureName: 'streaming',
|
|
151
|
+
* getStatusToolName: 'gala_launchpad_get_global_streaming_status',
|
|
152
|
+
* setEnabledToolName: 'gala_launchpad_set_global_streaming_enabled',
|
|
153
|
+
* adminOnly: true,
|
|
154
|
+
* });
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
export declare function createStatusTogglePrompts(config: StatusTogglePromptConfig): [MCPPrompt, MCPPrompt];
|
|
158
|
+
/**
|
|
159
|
+
* Factory exports for convenient access
|
|
160
|
+
*/
|
|
161
|
+
export declare const simpleOperationFactories: {
|
|
162
|
+
createSimpleOperationPrompt: typeof createSimpleOperationPrompt;
|
|
163
|
+
createPaginatedListPrompt: typeof createPaginatedListPrompt;
|
|
164
|
+
createStatusTogglePrompts: typeof createStatusTogglePrompts;
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=simple-operation-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple-operation-factory.d.ts","sourceRoot":"","sources":["../../../src/prompts/factories/simple-operation-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AASvE;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IAEb,8BAA8B;IAC9B,WAAW,EAAE,MAAM,CAAC;IAEpB,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAC;IAEjB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAElB,wCAAwC;IACxC,iBAAiB,EAAE,MAAM,CAAC;IAE1B,2CAA2C;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAEhC,0DAA0D;IAC1D,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAEvF,mCAAmC;IACnC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;CACnD;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,2BAA2B,GAAG,SAAS,CAwD1F;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IAEb,8BAA8B;IAC9B,WAAW,EAAE,MAAM,CAAC;IAEpB,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAC;IAEjB,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IAEjB,wBAAwB;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,kCAAkC;IAClC,eAAe,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAEtC,0CAA0C;IAC1C,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAE7F,iCAAiC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,yBAAyB,GAAG,SAAS,CAiDtF;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IAEjB,8DAA8D;IAC9D,WAAW,EAAE,MAAM,CAAC;IAEpB,mCAAmC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAE1B,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAC;IAE3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,wBAAwB,GAC/B,CAAC,SAAS,EAAE,SAAS,CAAC,CAyDxB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;CAIpC,CAAC"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Simple Operation Prompt Factory
|
|
4
|
+
*
|
|
5
|
+
* Provides factory functions for creating simple fetch-display MCP prompts
|
|
6
|
+
* with minimal configuration. These prompts follow the pattern:
|
|
7
|
+
* 1. Validate inputs (optional)
|
|
8
|
+
* 2. Fetch data using a tool
|
|
9
|
+
* 3. Display results
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // Create a simple fetch prompt with no arguments
|
|
13
|
+
* const statusPrompt = createSimpleOperationPrompt({
|
|
14
|
+
* name: 'my-status',
|
|
15
|
+
* description: 'Get current status',
|
|
16
|
+
* toolName: 'my_tool_get_status',
|
|
17
|
+
* operation: 'Get current system status.',
|
|
18
|
+
* actionDescription: 'fetch the status',
|
|
19
|
+
* });
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.simpleOperationFactories = void 0;
|
|
23
|
+
exports.createSimpleOperationPrompt = createSimpleOperationPrompt;
|
|
24
|
+
exports.createPaginatedListPrompt = createPaginatedListPrompt;
|
|
25
|
+
exports.createStatusTogglePrompts = createStatusTogglePrompts;
|
|
26
|
+
const handlerHelpers_js_1 = require("../utils/handlerHelpers.js");
|
|
27
|
+
const textTemplates_js_1 = require("../utils/textTemplates.js");
|
|
28
|
+
const pagination_helpers_js_1 = require("../utils/pagination-helpers.js");
|
|
29
|
+
/**
|
|
30
|
+
* Create a simple operation prompt with standardized handling
|
|
31
|
+
*
|
|
32
|
+
* This factory creates prompts that follow the simple pattern of:
|
|
33
|
+
* validate -> build parameters -> create response
|
|
34
|
+
*
|
|
35
|
+
* @param config - Configuration for the simple operation prompt
|
|
36
|
+
* @returns Complete MCPPrompt definition
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const globalStatusPrompt = createSimpleOperationPrompt({
|
|
41
|
+
* name: 'galachain-launchpad:global-status',
|
|
42
|
+
* description: 'Get platform-wide status',
|
|
43
|
+
* toolName: 'gala_launchpad_get_global_status',
|
|
44
|
+
* operation: 'Get global platform status.',
|
|
45
|
+
* actionDescription: 'fetch global status',
|
|
46
|
+
* displayFormat: 'Display the status and timestamp.',
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
function createSimpleOperationPrompt(config) {
|
|
51
|
+
const { name, description, toolName, operation, actionDescription, displayFormat, arguments: promptArgs = [], buildParameters, validate, } = config;
|
|
52
|
+
// No arguments case - simplest prompt
|
|
53
|
+
if (promptArgs.length === 0 && !buildParameters) {
|
|
54
|
+
return {
|
|
55
|
+
name,
|
|
56
|
+
description,
|
|
57
|
+
arguments: [],
|
|
58
|
+
handler: () => {
|
|
59
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
60
|
+
operation,
|
|
61
|
+
toolName,
|
|
62
|
+
actionDescription,
|
|
63
|
+
displayFormat,
|
|
64
|
+
}));
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
name,
|
|
70
|
+
description,
|
|
71
|
+
arguments: promptArgs,
|
|
72
|
+
handler: (args) => {
|
|
73
|
+
// Run validation if provided
|
|
74
|
+
if (validate) {
|
|
75
|
+
validate(args);
|
|
76
|
+
}
|
|
77
|
+
// Build parameters
|
|
78
|
+
const parameters = buildParameters ? buildParameters(args) : {};
|
|
79
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
80
|
+
operation,
|
|
81
|
+
parameters,
|
|
82
|
+
toolName,
|
|
83
|
+
actionDescription,
|
|
84
|
+
displayFormat,
|
|
85
|
+
}));
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Create a paginated list prompt with standardized pagination handling
|
|
91
|
+
*
|
|
92
|
+
* Handles the common pattern of:
|
|
93
|
+
* - page/limit parameters
|
|
94
|
+
* - optional search/filter parameters
|
|
95
|
+
* - standardized response format
|
|
96
|
+
*
|
|
97
|
+
* @param config - Configuration for the paginated list prompt
|
|
98
|
+
* @returns Complete MCPPrompt definition
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```typescript
|
|
102
|
+
* const listPoolsPrompt = createPaginatedListPrompt({
|
|
103
|
+
* name: 'galachain-launchpad:list-pools',
|
|
104
|
+
* description: 'List token pools with pagination',
|
|
105
|
+
* toolName: MCP_TOOLS.FETCH_POOLS,
|
|
106
|
+
* itemType: 'pools',
|
|
107
|
+
* defaultLimit: 20,
|
|
108
|
+
* maxLimit: 100,
|
|
109
|
+
* filterArguments: [
|
|
110
|
+
* { name: 'type', description: 'Pool type: recent or popular', required: false }
|
|
111
|
+
* ],
|
|
112
|
+
* buildFilterParameters: (args) => ({
|
|
113
|
+
* type: args.type ? `Type: ${args.type}` : undefined,
|
|
114
|
+
* }),
|
|
115
|
+
* });
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
function createPaginatedListPrompt(config) {
|
|
119
|
+
const { name, description, toolName, itemType, defaultLimit = 20, maxLimit = 100, filterArguments = [], buildFilterParameters, displayFormat = `Display the ${itemType} with key details.`, } = config;
|
|
120
|
+
const baseArgs = (0, pagination_helpers_js_1.createPaginationArguments)({
|
|
121
|
+
defaultLimit,
|
|
122
|
+
maxLimit,
|
|
123
|
+
});
|
|
124
|
+
return {
|
|
125
|
+
name,
|
|
126
|
+
description,
|
|
127
|
+
arguments: [...filterArguments, ...baseArgs],
|
|
128
|
+
handler: (args) => {
|
|
129
|
+
// Validate limit
|
|
130
|
+
(0, pagination_helpers_js_1.validatePaginationLimit)(args.limit, maxLimit);
|
|
131
|
+
// Build parameters
|
|
132
|
+
const parameters = (0, pagination_helpers_js_1.buildPaginationParameters)(args.page, args.limit, { page: 1, limit: defaultLimit });
|
|
133
|
+
// Add filter parameters
|
|
134
|
+
if (buildFilterParameters) {
|
|
135
|
+
Object.assign(parameters, buildFilterParameters(args));
|
|
136
|
+
}
|
|
137
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
138
|
+
operation: `Fetch ${itemType} with pagination.`,
|
|
139
|
+
parameters,
|
|
140
|
+
toolName,
|
|
141
|
+
actionDescription: `retrieve ${itemType}`,
|
|
142
|
+
displayFormat,
|
|
143
|
+
}));
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Create get-status and set-enabled prompts for a feature toggle
|
|
149
|
+
*
|
|
150
|
+
* This creates two prompts:
|
|
151
|
+
* 1. get-{feature}-status - Read current state
|
|
152
|
+
* 2. set-{feature}-enabled - Toggle the feature
|
|
153
|
+
*
|
|
154
|
+
* @param config - Configuration for the status toggle
|
|
155
|
+
* @returns Array of two MCPPrompt definitions [getStatus, setEnabled]
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```typescript
|
|
159
|
+
* const [getStreamingStatus, setStreamingEnabled] = createStatusTogglePrompts({
|
|
160
|
+
* baseName: 'global-streaming',
|
|
161
|
+
* featureName: 'streaming',
|
|
162
|
+
* getStatusToolName: 'gala_launchpad_get_global_streaming_status',
|
|
163
|
+
* setEnabledToolName: 'gala_launchpad_set_global_streaming_enabled',
|
|
164
|
+
* adminOnly: true,
|
|
165
|
+
* });
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
168
|
+
function createStatusTogglePrompts(config) {
|
|
169
|
+
const { baseName, featureName, getStatusToolName, setEnabledToolName, adminOnly = false, context = '', } = config;
|
|
170
|
+
const adminSuffix = adminOnly ? ' (Admin only)' : '';
|
|
171
|
+
const getStatusPrompt = {
|
|
172
|
+
name: `galachain-launchpad:get-${baseName}-status`,
|
|
173
|
+
description: `Get ${featureName} status${adminSuffix}`,
|
|
174
|
+
arguments: [],
|
|
175
|
+
handler: () => {
|
|
176
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
177
|
+
operation: `Get ${featureName} status.${context ? `\n\n${context}` : ''}`,
|
|
178
|
+
parameters: {},
|
|
179
|
+
toolName: getStatusToolName,
|
|
180
|
+
actionDescription: `fetch ${featureName} status`,
|
|
181
|
+
displayFormat: `Display whether ${featureName} is enabled and the last update time.`,
|
|
182
|
+
}));
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
const setEnabledPrompt = {
|
|
186
|
+
name: `galachain-launchpad:set-${baseName}-enabled`,
|
|
187
|
+
description: `Enable or disable ${featureName}${adminSuffix}`,
|
|
188
|
+
arguments: [
|
|
189
|
+
{
|
|
190
|
+
name: 'enabled',
|
|
191
|
+
description: `Whether ${featureName} should be enabled (true/false)`,
|
|
192
|
+
required: true,
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
handler: (args) => {
|
|
196
|
+
const enabled = args.enabled === 'true';
|
|
197
|
+
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
|
|
198
|
+
operation: `${enabled ? 'Enable' : 'Disable'} ${featureName}.${context ? `\n\n${context}` : ''}`,
|
|
199
|
+
parameters: {
|
|
200
|
+
enabled: `Enabled: ${enabled}`,
|
|
201
|
+
},
|
|
202
|
+
toolName: setEnabledToolName,
|
|
203
|
+
actionDescription: enabled ? `enable ${featureName}` : `disable ${featureName}`,
|
|
204
|
+
displayFormat: `Confirm the ${featureName} status change.`,
|
|
205
|
+
}));
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
return [getStatusPrompt, setEnabledPrompt];
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Factory exports for convenient access
|
|
212
|
+
*/
|
|
213
|
+
exports.simpleOperationFactories = {
|
|
214
|
+
createSimpleOperationPrompt,
|
|
215
|
+
createPaginatedListPrompt,
|
|
216
|
+
createStatusTogglePrompts,
|
|
217
|
+
};
|
|
218
|
+
//# sourceMappingURL=simple-operation-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple-operation-factory.js","sourceRoot":"","sources":["../../../src/prompts/factories/simple-operation-factory.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;AAgEH,kEAwDC;AA+DD,8DAiDC;AA8CD,8DA2DC;AA9UD,kEAAkE;AAClE,gEAA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5B,iBAAiB,EAAE,OAAO,CAAC,CAAC,CAAC,UAAU,WAAW,EAAE,CAAC,CAAC,CAAC,WAAW,WAAW,EAAE;gBAC/E,aAAa,EAAE,eAAe,WAAW,iBAAiB;aAC3D,CAAC,CACH,CAAC;QACJ,CAAC;KACF,CAAC;IAEF,OAAO,CAAC,eAAe,EAAE,gBAAgB,CAAC,CAAC;AAC7C,CAAC;AAED;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACtC,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;CAC1B,CAAC"}
|
package/dist/prompts/index.d.ts
CHANGED
|
@@ -24,9 +24,34 @@ import { advancedPoolPrompts } from './advanced-pools.js';
|
|
|
24
24
|
import { dexLeaderboardPrompts } from './dex-leaderboard.js';
|
|
25
25
|
import { dexVolumePrompts } from './dex-volume.js';
|
|
26
26
|
import { bridgePrompts } from './bridge.js';
|
|
27
|
+
import { moderatorPrompts } from './moderators.js';
|
|
28
|
+
import { banPrompts } from './bans.js';
|
|
29
|
+
import { apiKeyPrompts } from './api-keys.js';
|
|
30
|
+
import { overseerPrompts } from './overseers.js';
|
|
31
|
+
import { streamingPrompts } from './streaming.js';
|
|
32
|
+
import { chatPrompts } from './chat.js';
|
|
33
|
+
import { contentReactionPrompts } from './content-reactions.js';
|
|
34
|
+
import { commentPrompts } from './comments.js';
|
|
35
|
+
import { referralPrompts } from './referrals.js';
|
|
36
|
+
import { eventSubscriptionPrompts } from './event-subscriptions.js';
|
|
37
|
+
import { walletPrompts } from './wallet.js';
|
|
38
|
+
import { authPrompts } from './auth.js';
|
|
39
|
+
import { contentFlagPrompts } from './content-flags.js';
|
|
40
|
+
import { tradePrompts } from './trades.js';
|
|
41
|
+
import { chatMessagePrompts } from './chat-messages.js';
|
|
42
|
+
import { tokenBanPrompts } from './token-bans.js';
|
|
43
|
+
import { burnPrompts } from './burns.js';
|
|
44
|
+
import { accountPrompts } from './account.js';
|
|
45
|
+
import { tier2TokenLifecyclePrompts } from './tier2-token-lifecycle.js';
|
|
46
|
+
import { tier2AssetManagementPrompts } from './tier2-asset-management.js';
|
|
47
|
+
import { tier2AccountSetupPrompts } from './tier2-account-setup.js';
|
|
48
|
+
import { tier2AdvancedLiquidityPrompts } from './tier2-advanced-liquidity.js';
|
|
49
|
+
import { tier3ModerationPrompts } from './tier3-moderation-workflows.js';
|
|
50
|
+
import { tier3CommunityEngagementPrompts } from './tier3-community-engagement.js';
|
|
51
|
+
import { tier3StreamingManagementPrompts } from './tier3-streaming-management.js';
|
|
27
52
|
import type { MCPPrompt } from '../types/mcp.js';
|
|
28
53
|
/**
|
|
29
|
-
* All available prompts
|
|
54
|
+
* All available prompts
|
|
30
55
|
*/
|
|
31
56
|
export declare const prompts: MCPPrompt[];
|
|
32
57
|
/**
|
|
@@ -73,18 +98,18 @@ export declare function hasPrompt(name: string): boolean;
|
|
|
73
98
|
/**
|
|
74
99
|
* Get prompts by category
|
|
75
100
|
*
|
|
76
|
-
* @param category - Category name
|
|
101
|
+
* @param category - Category name
|
|
77
102
|
* @returns Array of prompts in the specified category
|
|
78
103
|
*
|
|
79
104
|
* @example
|
|
80
105
|
* ```typescript
|
|
81
106
|
* const tradingCommands = getPromptsByCategory('trading');
|
|
82
|
-
* // Returns [analyzeTokenPrompt, buyTokensPrompt, sellTokensPrompt, graduateTokenPrompt]
|
|
107
|
+
* // Returns [analyzeTokenPrompt, buyTokensPrompt, sellTokensPrompt, graduateTokenPrompt, burnTokensPrompt, getTradesPrompt]
|
|
83
108
|
* const dexCommands = getPromptsByCategory('dex');
|
|
84
109
|
* // Returns [dexSwapPrompt]
|
|
85
110
|
* ```
|
|
86
111
|
*/
|
|
87
|
-
export declare function getPromptsByCategory(category: 'trading' | 'portfolio' | 'analysis' | 'creation' | 'discovery' | 'dex' | 'liquidity' | 'monitoring' | 'utility' | 'bridge'): MCPPrompt[];
|
|
112
|
+
export declare function getPromptsByCategory(category: 'trading' | 'portfolio' | 'analysis' | 'creation' | 'discovery' | 'dex' | 'liquidity' | 'monitoring' | 'utility' | 'bridge' | 'moderation' | 'api-keys' | 'overseers' | 'streaming' | 'chat' | 'reactions' | 'comments' | 'referrals' | 'wallet' | 'auth' | 'content-flags' | 'trades' | 'chat-messages' | 'token-bans' | 'burns' | 'account' | 'token-lifecycle' | 'asset-management' | 'account-setup' | 'liquidity-optimization' | 'moderation-workflows' | 'community-engagement' | 'streaming-management'): MCPPrompt[];
|
|
88
113
|
/**
|
|
89
114
|
* Get prompt count
|
|
90
115
|
*
|
|
@@ -92,12 +117,12 @@ export declare function getPromptsByCategory(category: 'trading' | 'portfolio' |
|
|
|
92
117
|
*
|
|
93
118
|
* @example
|
|
94
119
|
* ```typescript
|
|
95
|
-
* console.log(`Total prompts: ${getPromptCount()}`);
|
|
120
|
+
* console.log(`Total prompts: ${getPromptCount()}`);
|
|
96
121
|
* ```
|
|
97
122
|
*/
|
|
98
123
|
export declare function getPromptCount(): number;
|
|
99
124
|
/**
|
|
100
125
|
* Export individual prompt categories for documentation
|
|
101
126
|
*/
|
|
102
|
-
export { tradingPrompts, portfolioPrompts, analysisPrompts, creationPrompts, discoveryPrompts, dexTradingPrompts, exploreDexPoolsPrompts, liquidityPositionPrompts, utilityPrompts, poolPrompts, tradingCalculationPrompts, balancePrompts, creationUtilityPrompts, transferPrompts, lockPrompts, utilityToolPrompts, monitoringPrompts, advancedPoolPrompts, dexLeaderboardPrompts, dexVolumePrompts, bridgePrompts, };
|
|
127
|
+
export { tradingPrompts, portfolioPrompts, analysisPrompts, creationPrompts, discoveryPrompts, dexTradingPrompts, exploreDexPoolsPrompts, liquidityPositionPrompts, utilityPrompts, poolPrompts, tradingCalculationPrompts, balancePrompts, creationUtilityPrompts, transferPrompts, lockPrompts, utilityToolPrompts, monitoringPrompts, advancedPoolPrompts, dexLeaderboardPrompts, dexVolumePrompts, bridgePrompts, moderatorPrompts, banPrompts, apiKeyPrompts, overseerPrompts, streamingPrompts, chatPrompts, contentReactionPrompts, commentPrompts, referralPrompts, eventSubscriptionPrompts, walletPrompts, authPrompts, contentFlagPrompts, tradePrompts, chatMessagePrompts, tokenBanPrompts, burnPrompts, accountPrompts, tier2TokenLifecyclePrompts, tier2AssetManagementPrompts, tier2AccountSetupPrompts, tier2AdvancedLiquidityPrompts, tier3ModerationPrompts, tier3CommunityEngagementPrompts, tier3StreamingManagementPrompts, };
|
|
103
128
|
//# sourceMappingURL=index.d.ts.map
|