clodds 1.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 +468 -0
- package/dist/acp/agreement.d.ts +110 -0
- package/dist/acp/agreement.js +514 -0
- package/dist/acp/agreement.js.map +1 -0
- package/dist/acp/discovery.d.ts +84 -0
- package/dist/acp/discovery.js +332 -0
- package/dist/acp/discovery.js.map +1 -0
- package/dist/acp/escrow.d.ts +139 -0
- package/dist/acp/escrow.js +880 -0
- package/dist/acp/escrow.js.map +1 -0
- package/dist/acp/identity.d.ts +135 -0
- package/dist/acp/identity.js +716 -0
- package/dist/acp/identity.js.map +1 -0
- package/dist/acp/index.d.ts +205 -0
- package/dist/acp/index.js +583 -0
- package/dist/acp/index.js.map +1 -0
- package/dist/acp/persistence.d.ts +59 -0
- package/dist/acp/persistence.js +590 -0
- package/dist/acp/persistence.js.map +1 -0
- package/dist/acp/predictions.d.ts +89 -0
- package/dist/acp/predictions.js +417 -0
- package/dist/acp/predictions.js.map +1 -0
- package/dist/acp/registry.d.ts +143 -0
- package/dist/acp/registry.js +584 -0
- package/dist/acp/registry.js.map +1 -0
- package/dist/agents/handlers/acp.d.ts +12 -0
- package/dist/agents/handlers/acp.js +987 -0
- package/dist/agents/handlers/acp.js.map +1 -0
- package/dist/agents/handlers/agentbets.d.ts +8 -0
- package/dist/agents/handlers/agentbets.js +63 -0
- package/dist/agents/handlers/agentbets.js.map +1 -0
- package/dist/agents/handlers/arbitrage.d.ts +16 -0
- package/dist/agents/handlers/arbitrage.js +187 -0
- package/dist/agents/handlers/arbitrage.js.map +1 -0
- package/dist/agents/handlers/betfair.d.ts +11 -0
- package/dist/agents/handlers/betfair.js +214 -0
- package/dist/agents/handlers/betfair.js.map +1 -0
- package/dist/agents/handlers/binance.d.ts +9 -0
- package/dist/agents/handlers/binance.js +227 -0
- package/dist/agents/handlers/binance.js.map +1 -0
- package/dist/agents/handlers/bittensor.d.ts +10 -0
- package/dist/agents/handlers/bittensor.js +90 -0
- package/dist/agents/handlers/bittensor.js.map +1 -0
- package/dist/agents/handlers/bybit.d.ts +9 -0
- package/dist/agents/handlers/bybit.js +226 -0
- package/dist/agents/handlers/bybit.js.map +1 -0
- package/dist/agents/handlers/credentials.d.ts +8 -0
- package/dist/agents/handlers/credentials.js +103 -0
- package/dist/agents/handlers/credentials.js.map +1 -0
- package/dist/agents/handlers/hyperliquid.d.ts +9 -0
- package/dist/agents/handlers/hyperliquid.js +326 -0
- package/dist/agents/handlers/hyperliquid.js.map +1 -0
- package/dist/agents/handlers/index.d.ts +82 -0
- package/dist/agents/handlers/index.js +143 -0
- package/dist/agents/handlers/index.js.map +1 -0
- package/dist/agents/handlers/kalshi.d.ts +10 -0
- package/dist/agents/handlers/kalshi.js +1377 -0
- package/dist/agents/handlers/kalshi.js.map +1 -0
- package/dist/agents/handlers/manifold.d.ts +9 -0
- package/dist/agents/handlers/manifold.js +1001 -0
- package/dist/agents/handlers/manifold.js.map +1 -0
- package/dist/agents/handlers/markets.d.ts +8 -0
- package/dist/agents/handlers/markets.js +321 -0
- package/dist/agents/handlers/markets.js.map +1 -0
- package/dist/agents/handlers/opinion.d.ts +11 -0
- package/dist/agents/handlers/opinion.js +374 -0
- package/dist/agents/handlers/opinion.js.map +1 -0
- package/dist/agents/handlers/paper-trading.d.ts +8 -0
- package/dist/agents/handlers/paper-trading.js +124 -0
- package/dist/agents/handlers/paper-trading.js.map +1 -0
- package/dist/agents/handlers/polymarket.d.ts +17 -0
- package/dist/agents/handlers/polymarket.js +455 -0
- package/dist/agents/handlers/polymarket.js.map +1 -0
- package/dist/agents/handlers/predictfun.d.ts +9 -0
- package/dist/agents/handlers/predictfun.js +488 -0
- package/dist/agents/handlers/predictfun.js.map +1 -0
- package/dist/agents/handlers/smarkets.d.ts +11 -0
- package/dist/agents/handlers/smarkets.js +205 -0
- package/dist/agents/handlers/smarkets.js.map +1 -0
- package/dist/agents/handlers/solana.d.ts +14 -0
- package/dist/agents/handlers/solana.js +1530 -0
- package/dist/agents/handlers/solana.js.map +1 -0
- package/dist/agents/handlers/types.d.ts +58 -0
- package/dist/agents/handlers/types.js +34 -0
- package/dist/agents/handlers/types.js.map +1 -0
- package/dist/agents/handlers/virtuals.d.ts +11 -0
- package/dist/agents/handlers/virtuals.js +135 -0
- package/dist/agents/handlers/virtuals.js.map +1 -0
- package/dist/agents/handlers/wallets.d.ts +9 -0
- package/dist/agents/handlers/wallets.js +222 -0
- package/dist/agents/handlers/wallets.js.map +1 -0
- package/dist/agents/index.d.ts +79 -0
- package/dist/agents/index.js +16690 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/subagents.d.ts +219 -0
- package/dist/agents/subagents.js +736 -0
- package/dist/agents/subagents.js.map +1 -0
- package/dist/alerts/index.d.ts +110 -0
- package/dist/alerts/index.js +421 -0
- package/dist/alerts/index.js.map +1 -0
- package/dist/alerts/realtime.d.ts +114 -0
- package/dist/alerts/realtime.js +262 -0
- package/dist/alerts/realtime.js.map +1 -0
- package/dist/api/apikeys.d.ts +74 -0
- package/dist/api/apikeys.js +319 -0
- package/dist/api/apikeys.js.map +1 -0
- package/dist/api/compute/code.d.ts +28 -0
- package/dist/api/compute/code.js +257 -0
- package/dist/api/compute/code.js.map +1 -0
- package/dist/api/compute/data.d.ts +72 -0
- package/dist/api/compute/data.js +264 -0
- package/dist/api/compute/data.js.map +1 -0
- package/dist/api/compute/gateway.d.ts +185 -0
- package/dist/api/compute/gateway.js +958 -0
- package/dist/api/compute/gateway.js.map +1 -0
- package/dist/api/compute/index.d.ts +21 -0
- package/dist/api/compute/index.js +46 -0
- package/dist/api/compute/index.js.map +1 -0
- package/dist/api/compute/llm.d.ts +64 -0
- package/dist/api/compute/llm.js +602 -0
- package/dist/api/compute/llm.js.map +1 -0
- package/dist/api/compute/persistence.d.ts +77 -0
- package/dist/api/compute/persistence.js +251 -0
- package/dist/api/compute/persistence.js.map +1 -0
- package/dist/api/compute/storage.d.ts +48 -0
- package/dist/api/compute/storage.js +283 -0
- package/dist/api/compute/storage.js.map +1 -0
- package/dist/api/compute/trade.d.ts +69 -0
- package/dist/api/compute/trade.js +460 -0
- package/dist/api/compute/trade.js.map +1 -0
- package/dist/api/compute/types.d.ts +271 -0
- package/dist/api/compute/types.js +87 -0
- package/dist/api/compute/types.js.map +1 -0
- package/dist/api/compute/web.d.ts +29 -0
- package/dist/api/compute/web.js +255 -0
- package/dist/api/compute/web.js.map +1 -0
- package/dist/api/custody.d.ts +48 -0
- package/dist/api/custody.js +272 -0
- package/dist/api/custody.js.map +1 -0
- package/dist/api/fees.d.ts +91 -0
- package/dist/api/fees.js +155 -0
- package/dist/api/fees.js.map +1 -0
- package/dist/api/gateway.d.ts +40 -0
- package/dist/api/gateway.js +569 -0
- package/dist/api/gateway.js.map +1 -0
- package/dist/api/index.d.ts +29 -0
- package/dist/api/index.js +55 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/jobs.d.ts +59 -0
- package/dist/api/jobs.js +362 -0
- package/dist/api/jobs.js.map +1 -0
- package/dist/api/middleware.d.ts +60 -0
- package/dist/api/middleware.js +315 -0
- package/dist/api/middleware.js.map +1 -0
- package/dist/api/prompt.d.ts +44 -0
- package/dist/api/prompt.js +345 -0
- package/dist/api/prompt.js.map +1 -0
- package/dist/api/sdk.d.ts +258 -0
- package/dist/api/sdk.js +341 -0
- package/dist/api/sdk.js.map +1 -0
- package/dist/api/server.d.ts +17 -0
- package/dist/api/server.js +852 -0
- package/dist/api/server.js.map +1 -0
- package/dist/api/types.d.ts +307 -0
- package/dist/api/types.js +64 -0
- package/dist/api/types.js.map +1 -0
- package/dist/arbitrage/index.d.ts +124 -0
- package/dist/arbitrage/index.js +482 -0
- package/dist/arbitrage/index.js.map +1 -0
- package/dist/auth/copilot.d.ts +87 -0
- package/dist/auth/copilot.js +328 -0
- package/dist/auth/copilot.js.map +1 -0
- package/dist/auth/google.d.ts +121 -0
- package/dist/auth/google.js +479 -0
- package/dist/auth/google.js.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.js +25 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/oauth.d.ts +94 -0
- package/dist/auth/oauth.js +502 -0
- package/dist/auth/oauth.js.map +1 -0
- package/dist/auth/qwen.d.ts +110 -0
- package/dist/auth/qwen.js +351 -0
- package/dist/auth/qwen.js.map +1 -0
- package/dist/auto-reply/index.d.ts +143 -0
- package/dist/auto-reply/index.js +391 -0
- package/dist/auto-reply/index.js.map +1 -0
- package/dist/automation/cron.d.ts +66 -0
- package/dist/automation/cron.js +226 -0
- package/dist/automation/cron.js.map +1 -0
- package/dist/automation/heartbeats.d.ts +63 -0
- package/dist/automation/heartbeats.js +144 -0
- package/dist/automation/heartbeats.js.map +1 -0
- package/dist/automation/index.d.ts +9 -0
- package/dist/automation/index.js +15 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/automation/webhooks.d.ts +60 -0
- package/dist/automation/webhooks.js +225 -0
- package/dist/automation/webhooks.js.map +1 -0
- package/dist/bankr/client.d.ts +86 -0
- package/dist/bankr/client.js +177 -0
- package/dist/bankr/client.js.map +1 -0
- package/dist/bankr/index.d.ts +6 -0
- package/dist/bankr/index.js +23 -0
- package/dist/bankr/index.js.map +1 -0
- package/dist/base/index.d.ts +6 -0
- package/dist/base/index.js +23 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/provider.d.ts +27 -0
- package/dist/base/provider.js +128 -0
- package/dist/base/provider.js.map +1 -0
- package/dist/bin/worker.d.ts +31 -0
- package/dist/bin/worker.js +127 -0
- package/dist/bin/worker.js.map +1 -0
- package/dist/bittensor/chutes.d.ts +14 -0
- package/dist/bittensor/chutes.js +141 -0
- package/dist/bittensor/chutes.js.map +1 -0
- package/dist/bittensor/index.d.ts +7 -0
- package/dist/bittensor/index.js +13 -0
- package/dist/bittensor/index.js.map +1 -0
- package/dist/bittensor/persistence.d.ts +8 -0
- package/dist/bittensor/persistence.js +188 -0
- package/dist/bittensor/persistence.js.map +1 -0
- package/dist/bittensor/plugin.d.ts +30 -0
- package/dist/bittensor/plugin.js +134 -0
- package/dist/bittensor/plugin.js.map +1 -0
- package/dist/bittensor/python-runner.d.ts +7 -0
- package/dist/bittensor/python-runner.js +83 -0
- package/dist/bittensor/python-runner.js.map +1 -0
- package/dist/bittensor/server.d.ts +7 -0
- package/dist/bittensor/server.js +110 -0
- package/dist/bittensor/server.js.map +1 -0
- package/dist/bittensor/service.d.ts +7 -0
- package/dist/bittensor/service.js +291 -0
- package/dist/bittensor/service.js.map +1 -0
- package/dist/bittensor/tool.d.ts +45 -0
- package/dist/bittensor/tool.js +147 -0
- package/dist/bittensor/tool.js.map +1 -0
- package/dist/bittensor/types.d.ts +188 -0
- package/dist/bittensor/types.js +6 -0
- package/dist/bittensor/types.js.map +1 -0
- package/dist/bittensor/wallet.d.ts +18 -0
- package/dist/bittensor/wallet.js +192 -0
- package/dist/bittensor/wallet.js.map +1 -0
- package/dist/bridge/wormhole.d.ts +239 -0
- package/dist/bridge/wormhole.js +404 -0
- package/dist/bridge/wormhole.js.map +1 -0
- package/dist/browser/index.d.ts +67 -0
- package/dist/browser/index.js +458 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/cache/index.d.ts +105 -0
- package/dist/cache/index.js +306 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/canvas/index.d.ts +66 -0
- package/dist/canvas/index.js +391 -0
- package/dist/canvas/index.js.map +1 -0
- package/dist/channels/base-adapter.d.ts +126 -0
- package/dist/channels/base-adapter.js +416 -0
- package/dist/channels/base-adapter.js.map +1 -0
- package/dist/channels/bluebubbles/index.d.ts +23 -0
- package/dist/channels/bluebubbles/index.js +182 -0
- package/dist/channels/bluebubbles/index.js.map +1 -0
- package/dist/channels/discord/index.d.ts +25 -0
- package/dist/channels/discord/index.js +419 -0
- package/dist/channels/discord/index.js.map +1 -0
- package/dist/channels/googlechat/index.d.ts +35 -0
- package/dist/channels/googlechat/index.js +223 -0
- package/dist/channels/googlechat/index.js.map +1 -0
- package/dist/channels/imessage/index.d.ts +28 -0
- package/dist/channels/imessage/index.js +340 -0
- package/dist/channels/imessage/index.js.map +1 -0
- package/dist/channels/index.d.ts +58 -0
- package/dist/channels/index.js +382 -0
- package/dist/channels/index.js.map +1 -0
- package/dist/channels/line/index.d.ts +307 -0
- package/dist/channels/line/index.js +760 -0
- package/dist/channels/line/index.js.map +1 -0
- package/dist/channels/matrix/index.d.ts +35 -0
- package/dist/channels/matrix/index.js +328 -0
- package/dist/channels/matrix/index.js.map +1 -0
- package/dist/channels/mattermost/index.d.ts +25 -0
- package/dist/channels/mattermost/index.js +239 -0
- package/dist/channels/mattermost/index.js.map +1 -0
- package/dist/channels/nextcloud-talk/index.d.ts +25 -0
- package/dist/channels/nextcloud-talk/index.js +175 -0
- package/dist/channels/nextcloud-talk/index.js.map +1 -0
- package/dist/channels/nostr/index.d.ts +21 -0
- package/dist/channels/nostr/index.js +278 -0
- package/dist/channels/nostr/index.js.map +1 -0
- package/dist/channels/signal/index.d.ts +33 -0
- package/dist/channels/signal/index.js +333 -0
- package/dist/channels/signal/index.js.map +1 -0
- package/dist/channels/slack/index.d.ts +26 -0
- package/dist/channels/slack/index.js +266 -0
- package/dist/channels/slack/index.js.map +1 -0
- package/dist/channels/teams/index.d.ts +42 -0
- package/dist/channels/teams/index.js +312 -0
- package/dist/channels/teams/index.js.map +1 -0
- package/dist/channels/telegram/index.d.ts +9 -0
- package/dist/channels/telegram/index.js +761 -0
- package/dist/channels/telegram/index.js.map +1 -0
- package/dist/channels/tlon/index.d.ts +25 -0
- package/dist/channels/tlon/index.js +236 -0
- package/dist/channels/tlon/index.js.map +1 -0
- package/dist/channels/twitch/index.d.ts +25 -0
- package/dist/channels/twitch/index.js +182 -0
- package/dist/channels/twitch/index.js.map +1 -0
- package/dist/channels/voice/index.d.ts +31 -0
- package/dist/channels/voice/index.js +208 -0
- package/dist/channels/voice/index.js.map +1 -0
- package/dist/channels/webchat/index.d.ts +29 -0
- package/dist/channels/webchat/index.js +366 -0
- package/dist/channels/webchat/index.js.map +1 -0
- package/dist/channels/whatsapp/index.d.ts +72 -0
- package/dist/channels/whatsapp/index.js +767 -0
- package/dist/channels/whatsapp/index.js.map +1 -0
- package/dist/channels/zalo/index.d.ts +45 -0
- package/dist/channels/zalo/index.js +285 -0
- package/dist/channels/zalo/index.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +23 -0
- package/dist/cli/commands/doctor.js +649 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/gateway.d.ts +6 -0
- package/dist/cli/commands/gateway.js +32 -0
- package/dist/cli/commands/gateway.js.map +1 -0
- package/dist/cli/commands/index.d.ts +31 -0
- package/dist/cli/commands/index.js +3743 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/onboard.d.ts +4 -0
- package/dist/cli/commands/onboard.js +334 -0
- package/dist/cli/commands/onboard.js.map +1 -0
- package/dist/cli/commands/repl.d.ts +11 -0
- package/dist/cli/commands/repl.js +185 -0
- package/dist/cli/commands/repl.js.map +1 -0
- package/dist/cli/commands/skills.d.ts +29 -0
- package/dist/cli/commands/skills.js +297 -0
- package/dist/cli/commands/skills.js.map +1 -0
- package/dist/cli/index.d.ts +12 -0
- package/dist/cli/index.js +449 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/secure.d.ts +14 -0
- package/dist/cli/secure.js +626 -0
- package/dist/cli/secure.js.map +1 -0
- package/dist/commands/index.d.ts +61 -0
- package/dist/commands/index.js +290 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/registry.d.ts +69 -0
- package/dist/commands/registry.js +3142 -0
- package/dist/commands/registry.js.map +1 -0
- package/dist/config/index.d.ts +465 -0
- package/dist/config/index.js +1451 -0
- package/dist/config/index.js.map +1 -0
- package/dist/credentials/index.d.ts +51 -0
- package/dist/credentials/index.js +270 -0
- package/dist/credentials/index.js.map +1 -0
- package/dist/cron/index.d.ts +151 -0
- package/dist/cron/index.js +1283 -0
- package/dist/cron/index.js.map +1 -0
- package/dist/cron/types.d.ts +102 -0
- package/dist/cron/types.js +6 -0
- package/dist/cron/types.js.map +1 -0
- package/dist/daemon/index.d.ts +23 -0
- package/dist/daemon/index.js +159 -0
- package/dist/daemon/index.js.map +1 -0
- package/dist/db/index.d.ts +825 -0
- package/dist/db/index.js +3382 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrations.d.ts +70 -0
- package/dist/db/migrations.js +1373 -0
- package/dist/db/migrations.js.map +1 -0
- package/dist/docker/index.d.ts +188 -0
- package/dist/docker/index.js +571 -0
- package/dist/docker/index.js.map +1 -0
- package/dist/doctor/index.d.ts +47 -0
- package/dist/doctor/index.js +379 -0
- package/dist/doctor/index.js.map +1 -0
- package/dist/embeddings/index.d.ts +65 -0
- package/dist/embeddings/index.js +399 -0
- package/dist/embeddings/index.js.map +1 -0
- package/dist/evm/contracts.d.ts +112 -0
- package/dist/evm/contracts.js +332 -0
- package/dist/evm/contracts.js.map +1 -0
- package/dist/evm/index.d.ts +21 -0
- package/dist/evm/index.js +45 -0
- package/dist/evm/index.js.map +1 -0
- package/dist/evm/multichain.d.ts +87 -0
- package/dist/evm/multichain.js +308 -0
- package/dist/evm/multichain.js.map +1 -0
- package/dist/evm/odos.d.ts +62 -0
- package/dist/evm/odos.js +261 -0
- package/dist/evm/odos.js.map +1 -0
- package/dist/evm/oneinch.d.ts +55 -0
- package/dist/evm/oneinch.js +324 -0
- package/dist/evm/oneinch.js.map +1 -0
- package/dist/evm/transfers.d.ts +83 -0
- package/dist/evm/transfers.js +393 -0
- package/dist/evm/transfers.js.map +1 -0
- package/dist/evm/uniswap.d.ts +56 -0
- package/dist/evm/uniswap.js +307 -0
- package/dist/evm/uniswap.js.map +1 -0
- package/dist/evm/virtuals.d.ts +220 -0
- package/dist/evm/virtuals.js +735 -0
- package/dist/evm/virtuals.js.map +1 -0
- package/dist/evm/wallet.d.ts +96 -0
- package/dist/evm/wallet.js +258 -0
- package/dist/evm/wallet.js.map +1 -0
- package/dist/exchanges/binance-futures/index.d.ts +83 -0
- package/dist/exchanges/binance-futures/index.js +394 -0
- package/dist/exchanges/binance-futures/index.js.map +1 -0
- package/dist/exchanges/bybit/index.d.ts +78 -0
- package/dist/exchanges/bybit/index.js +379 -0
- package/dist/exchanges/bybit/index.js.map +1 -0
- package/dist/exchanges/hyperliquid/index.d.ts +594 -0
- package/dist/exchanges/hyperliquid/index.js +1101 -0
- package/dist/exchanges/hyperliquid/index.js.map +1 -0
- package/dist/exchanges/mexc/index.d.ts +80 -0
- package/dist/exchanges/mexc/index.js +389 -0
- package/dist/exchanges/mexc/index.js.map +1 -0
- package/dist/exchanges/opinion/index.d.ts +128 -0
- package/dist/exchanges/opinion/index.js +443 -0
- package/dist/exchanges/opinion/index.js.map +1 -0
- package/dist/exchanges/predictfun/index.d.ts +107 -0
- package/dist/exchanges/predictfun/index.js +398 -0
- package/dist/exchanges/predictfun/index.js.map +1 -0
- package/dist/execution/auto-redeem.d.ts +55 -0
- package/dist/execution/auto-redeem.js +324 -0
- package/dist/execution/auto-redeem.js.map +1 -0
- package/dist/execution/bracket-orders.d.ts +84 -0
- package/dist/execution/bracket-orders.js +387 -0
- package/dist/execution/bracket-orders.js.map +1 -0
- package/dist/execution/circuit-breaker.d.ts +87 -0
- package/dist/execution/circuit-breaker.js +274 -0
- package/dist/execution/circuit-breaker.js.map +1 -0
- package/dist/execution/dca-persistence.d.ts +47 -0
- package/dist/execution/dca-persistence.js +159 -0
- package/dist/execution/dca-persistence.js.map +1 -0
- package/dist/execution/dca.d.ts +60 -0
- package/dist/execution/dca.js +273 -0
- package/dist/execution/dca.js.map +1 -0
- package/dist/execution/futures.d.ts +162 -0
- package/dist/execution/futures.js +1336 -0
- package/dist/execution/futures.js.map +1 -0
- package/dist/execution/index.d.ts +346 -0
- package/dist/execution/index.js +2532 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/mev-protection.d.ts +150 -0
- package/dist/execution/mev-protection.js +377 -0
- package/dist/execution/mev-protection.js.map +1 -0
- package/dist/execution/order-persistence.d.ts +81 -0
- package/dist/execution/order-persistence.js +350 -0
- package/dist/execution/order-persistence.js.map +1 -0
- package/dist/execution/position-manager.d.ts +142 -0
- package/dist/execution/position-manager.js +404 -0
- package/dist/execution/position-manager.js.map +1 -0
- package/dist/execution/smart-router.d.ts +90 -0
- package/dist/execution/smart-router.js +323 -0
- package/dist/execution/smart-router.js.map +1 -0
- package/dist/execution/trigger-orders.d.ts +81 -0
- package/dist/execution/trigger-orders.js +266 -0
- package/dist/execution/trigger-orders.js.map +1 -0
- package/dist/execution/twap.d.ts +87 -0
- package/dist/execution/twap.js +405 -0
- package/dist/execution/twap.js.map +1 -0
- package/dist/extensions/copilot-proxy/index.d.ts +49 -0
- package/dist/extensions/copilot-proxy/index.js +204 -0
- package/dist/extensions/copilot-proxy/index.js.map +1 -0
- package/dist/extensions/diagnostics-otel/index.d.ts +54 -0
- package/dist/extensions/diagnostics-otel/index.js +290 -0
- package/dist/extensions/diagnostics-otel/index.js.map +1 -0
- package/dist/extensions/google-auth/index.d.ts +71 -0
- package/dist/extensions/google-auth/index.js +350 -0
- package/dist/extensions/google-auth/index.js.map +1 -0
- package/dist/extensions/index.d.ts +11 -0
- package/dist/extensions/index.js +29 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/llm-task/index.d.ts +80 -0
- package/dist/extensions/llm-task/index.js +248 -0
- package/dist/extensions/llm-task/index.js.map +1 -0
- package/dist/extensions/lobster/index.d.ts +69 -0
- package/dist/extensions/lobster/index.js +178 -0
- package/dist/extensions/lobster/index.js.map +1 -0
- package/dist/extensions/memory-lancedb/index.d.ts +62 -0
- package/dist/extensions/memory-lancedb/index.js +343 -0
- package/dist/extensions/memory-lancedb/index.js.map +1 -0
- package/dist/extensions/open-prose/index.d.ts +82 -0
- package/dist/extensions/open-prose/index.js +565 -0
- package/dist/extensions/open-prose/index.js.map +1 -0
- package/dist/extensions/qwen-portal/index.d.ts +48 -0
- package/dist/extensions/qwen-portal/index.js +161 -0
- package/dist/extensions/qwen-portal/index.js.map +1 -0
- package/dist/extensions/task-runner/index.d.ts +121 -0
- package/dist/extensions/task-runner/index.js +640 -0
- package/dist/extensions/task-runner/index.js.map +1 -0
- package/dist/farcaster/client.d.ts +101 -0
- package/dist/farcaster/client.js +282 -0
- package/dist/farcaster/client.js.map +1 -0
- package/dist/farcaster/index.d.ts +4 -0
- package/dist/farcaster/index.js +21 -0
- package/dist/farcaster/index.js.map +1 -0
- package/dist/feeds/acled/index.d.ts +86 -0
- package/dist/feeds/acled/index.js +215 -0
- package/dist/feeds/acled/index.js.map +1 -0
- package/dist/feeds/agentbets/index.d.ts +17 -0
- package/dist/feeds/agentbets/index.js +137 -0
- package/dist/feeds/agentbets/index.js.map +1 -0
- package/dist/feeds/betfair/index.d.ts +132 -0
- package/dist/feeds/betfair/index.js +640 -0
- package/dist/feeds/betfair/index.js.map +1 -0
- package/dist/feeds/crypto/index.d.ts +101 -0
- package/dist/feeds/crypto/index.js +506 -0
- package/dist/feeds/crypto/index.js.map +1 -0
- package/dist/feeds/crypto/whale-tracker.d.ts +138 -0
- package/dist/feeds/crypto/whale-tracker.js +685 -0
- package/dist/feeds/crypto/whale-tracker.js.map +1 -0
- package/dist/feeds/descriptors.d.ts +14 -0
- package/dist/feeds/descriptors.js +582 -0
- package/dist/feeds/descriptors.js.map +1 -0
- package/dist/feeds/drift/index.d.ts +23 -0
- package/dist/feeds/drift/index.js +182 -0
- package/dist/feeds/drift/index.js.map +1 -0
- package/dist/feeds/drift/trading.d.ts +75 -0
- package/dist/feeds/drift/trading.js +457 -0
- package/dist/feeds/drift/trading.js.map +1 -0
- package/dist/feeds/external/index.d.ts +48 -0
- package/dist/feeds/external/index.js +575 -0
- package/dist/feeds/external/index.js.map +1 -0
- package/dist/feeds/fred/index.d.ts +134 -0
- package/dist/feeds/fred/index.js +263 -0
- package/dist/feeds/fred/index.js.map +1 -0
- package/dist/feeds/freshness.d.ts +79 -0
- package/dist/feeds/freshness.js +259 -0
- package/dist/feeds/freshness.js.map +1 -0
- package/dist/feeds/hedgehog/index.d.ts +24 -0
- package/dist/feeds/hedgehog/index.js +589 -0
- package/dist/feeds/hedgehog/index.js.map +1 -0
- package/dist/feeds/hedgehog/types.d.ts +215 -0
- package/dist/feeds/hedgehog/types.js +7 -0
- package/dist/feeds/hedgehog/types.js.map +1 -0
- package/dist/feeds/index.d.ts +38 -0
- package/dist/feeds/index.js +469 -0
- package/dist/feeds/index.js.map +1 -0
- package/dist/feeds/kalshi/index.d.ts +116 -0
- package/dist/feeds/kalshi/index.js +970 -0
- package/dist/feeds/kalshi/index.js.map +1 -0
- package/dist/feeds/manifold/index.d.ts +15 -0
- package/dist/feeds/manifold/index.js +269 -0
- package/dist/feeds/manifold/index.js.map +1 -0
- package/dist/feeds/metaculus/index.d.ts +22 -0
- package/dist/feeds/metaculus/index.js +149 -0
- package/dist/feeds/metaculus/index.js.map +1 -0
- package/dist/feeds/news/index.d.ts +20 -0
- package/dist/feeds/news/index.js +308 -0
- package/dist/feeds/news/index.js.map +1 -0
- package/dist/feeds/opinion/index.d.ts +31 -0
- package/dist/feeds/opinion/index.js +389 -0
- package/dist/feeds/opinion/index.js.map +1 -0
- package/dist/feeds/polymarket/index.d.ts +21 -0
- package/dist/feeds/polymarket/index.js +501 -0
- package/dist/feeds/polymarket/index.js.map +1 -0
- package/dist/feeds/polymarket/rtds.d.ts +40 -0
- package/dist/feeds/polymarket/rtds.js +159 -0
- package/dist/feeds/polymarket/rtds.js.map +1 -0
- package/dist/feeds/polymarket/user-ws.d.ts +64 -0
- package/dist/feeds/polymarket/user-ws.js +230 -0
- package/dist/feeds/polymarket/user-ws.js.map +1 -0
- package/dist/feeds/polymarket/whale-tracker.d.ts +152 -0
- package/dist/feeds/polymarket/whale-tracker.js +709 -0
- package/dist/feeds/polymarket/whale-tracker.js.map +1 -0
- package/dist/feeds/predictfun/index.d.ts +24 -0
- package/dist/feeds/predictfun/index.js +234 -0
- package/dist/feeds/predictfun/index.js.map +1 -0
- package/dist/feeds/predictit/index.d.ts +14 -0
- package/dist/feeds/predictit/index.js +88 -0
- package/dist/feeds/predictit/index.js.map +1 -0
- package/dist/feeds/registry.d.ts +148 -0
- package/dist/feeds/registry.js +197 -0
- package/dist/feeds/registry.js.map +1 -0
- package/dist/feeds/smarkets/index.d.ts +76 -0
- package/dist/feeds/smarkets/index.js +415 -0
- package/dist/feeds/smarkets/index.js.map +1 -0
- package/dist/feeds/virtuals/index.d.ts +92 -0
- package/dist/feeds/virtuals/index.js +341 -0
- package/dist/feeds/virtuals/index.js.map +1 -0
- package/dist/feeds/weather-nws/index.d.ts +73 -0
- package/dist/feeds/weather-nws/index.js +162 -0
- package/dist/feeds/weather-nws/index.js.map +1 -0
- package/dist/feeds/weather-openmeteo/index.d.ts +80 -0
- package/dist/feeds/weather-openmeteo/index.js +197 -0
- package/dist/feeds/weather-openmeteo/index.js.map +1 -0
- package/dist/gateway/alerts-routes.d.ts +15 -0
- package/dist/gateway/alerts-routes.js +188 -0
- package/dist/gateway/alerts-routes.js.map +1 -0
- package/dist/gateway/alt-data-routes.d.ts +15 -0
- package/dist/gateway/alt-data-routes.js +67 -0
- package/dist/gateway/alt-data-routes.js.map +1 -0
- package/dist/gateway/api-routes.d.ts +39 -0
- package/dist/gateway/api-routes.js +1028 -0
- package/dist/gateway/api-routes.js.map +1 -0
- package/dist/gateway/audit-routes.d.ts +8 -0
- package/dist/gateway/audit-routes.js +61 -0
- package/dist/gateway/audit-routes.js.map +1 -0
- package/dist/gateway/bracket-routes.d.ts +12 -0
- package/dist/gateway/bracket-routes.js +122 -0
- package/dist/gateway/bracket-routes.js.map +1 -0
- package/dist/gateway/control-ui.d.ts +45 -0
- package/dist/gateway/control-ui.js +301 -0
- package/dist/gateway/control-ui.js.map +1 -0
- package/dist/gateway/copy-trading-routes.d.ts +12 -0
- package/dist/gateway/copy-trading-routes.js +159 -0
- package/dist/gateway/copy-trading-routes.js.map +1 -0
- package/dist/gateway/cron-routes.d.ts +14 -0
- package/dist/gateway/cron-routes.js +132 -0
- package/dist/gateway/cron-routes.js.map +1 -0
- package/dist/gateway/dca-routes.d.ts +8 -0
- package/dist/gateway/dca-routes.js +179 -0
- package/dist/gateway/dca-routes.js.map +1 -0
- package/dist/gateway/embeddings-routes.d.ts +12 -0
- package/dist/gateway/embeddings-routes.js +102 -0
- package/dist/gateway/embeddings-routes.js.map +1 -0
- package/dist/gateway/feeds-routes.d.ts +34 -0
- package/dist/gateway/feeds-routes.js +167 -0
- package/dist/gateway/feeds-routes.js.map +1 -0
- package/dist/gateway/index.d.ts +100 -0
- package/dist/gateway/index.js +2321 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/monitoring-routes.d.ts +12 -0
- package/dist/gateway/monitoring-routes.js +73 -0
- package/dist/gateway/monitoring-routes.js.map +1 -0
- package/dist/gateway/opportunity-routes.d.ts +12 -0
- package/dist/gateway/opportunity-routes.js +238 -0
- package/dist/gateway/opportunity-routes.js.map +1 -0
- package/dist/gateway/payments-routes.d.ts +14 -0
- package/dist/gateway/payments-routes.js +82 -0
- package/dist/gateway/payments-routes.js.map +1 -0
- package/dist/gateway/percolator-routes.d.ts +16 -0
- package/dist/gateway/percolator-routes.js +139 -0
- package/dist/gateway/percolator-routes.js.map +1 -0
- package/dist/gateway/queue-routes.d.ts +12 -0
- package/dist/gateway/queue-routes.js +47 -0
- package/dist/gateway/queue-routes.js.map +1 -0
- package/dist/gateway/risk-routes.d.ts +12 -0
- package/dist/gateway/risk-routes.js +119 -0
- package/dist/gateway/risk-routes.js.map +1 -0
- package/dist/gateway/routing-routes.d.ts +12 -0
- package/dist/gateway/routing-routes.js +86 -0
- package/dist/gateway/routing-routes.js.map +1 -0
- package/dist/gateway/server.d.ts +215 -0
- package/dist/gateway/server.js +2287 -0
- package/dist/gateway/server.js.map +1 -0
- package/dist/gateway/shield-routes.d.ts +8 -0
- package/dist/gateway/shield-routes.js +88 -0
- package/dist/gateway/shield-routes.js.map +1 -0
- package/dist/gateway/signal-bus.d.ts +51 -0
- package/dist/gateway/signal-bus.js +64 -0
- package/dist/gateway/signal-bus.js.map +1 -0
- package/dist/gateway/trigger-routes.d.ts +12 -0
- package/dist/gateway/trigger-routes.js +127 -0
- package/dist/gateway/trigger-routes.js.map +1 -0
- package/dist/gateway/twap-routes.d.ts +12 -0
- package/dist/gateway/twap-routes.js +142 -0
- package/dist/gateway/twap-routes.js.map +1 -0
- package/dist/gateway/webhooks-routes.d.ts +31 -0
- package/dist/gateway/webhooks-routes.js +107 -0
- package/dist/gateway/webhooks-routes.js.map +1 -0
- package/dist/gateway/whale-routes.d.ts +12 -0
- package/dist/gateway/whale-routes.js +204 -0
- package/dist/gateway/whale-routes.js.map +1 -0
- package/dist/history/index.d.ts +81 -0
- package/dist/history/index.js +362 -0
- package/dist/history/index.js.map +1 -0
- package/dist/hooks/index.d.ts +279 -0
- package/dist/hooks/index.js +739 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/i18n/index.d.ts +65 -0
- package/dist/i18n/index.js +183 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/identity/erc8004.d.ts +104 -0
- package/dist/identity/erc8004.js +493 -0
- package/dist/identity/erc8004.js.map +1 -0
- package/dist/identity/index.d.ts +1 -0
- package/dist/identity/index.js +18 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +240 -0
- package/dist/index.js.map +1 -0
- package/dist/infra/index.d.ts +133 -0
- package/dist/infra/index.js +481 -0
- package/dist/infra/index.js.map +1 -0
- package/dist/infra/retry.d.ts +132 -0
- package/dist/infra/retry.js +450 -0
- package/dist/infra/retry.js.map +1 -0
- package/dist/ledger/anchor.d.ts +45 -0
- package/dist/ledger/anchor.js +271 -0
- package/dist/ledger/anchor.js.map +1 -0
- package/dist/ledger/hash.d.ts +26 -0
- package/dist/ledger/hash.js +69 -0
- package/dist/ledger/hash.js.map +1 -0
- package/dist/ledger/hooks.d.ts +107 -0
- package/dist/ledger/hooks.js +314 -0
- package/dist/ledger/hooks.js.map +1 -0
- package/dist/ledger/index.d.ts +67 -0
- package/dist/ledger/index.js +221 -0
- package/dist/ledger/index.js.map +1 -0
- package/dist/ledger/storage.d.ts +57 -0
- package/dist/ledger/storage.js +368 -0
- package/dist/ledger/storage.js.map +1 -0
- package/dist/ledger/types.d.ts +138 -0
- package/dist/ledger/types.js +16 -0
- package/dist/ledger/types.js.map +1 -0
- package/dist/link-understanding/index.d.ts +61 -0
- package/dist/link-understanding/index.js +320 -0
- package/dist/link-understanding/index.js.map +1 -0
- package/dist/logging/index.d.ts +50 -0
- package/dist/logging/index.js +255 -0
- package/dist/logging/index.js.map +1 -0
- package/dist/macos/index.d.ts +143 -0
- package/dist/macos/index.js +587 -0
- package/dist/macos/index.js.map +1 -0
- package/dist/markdown/index.d.ts +43 -0
- package/dist/markdown/index.js +305 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/market-index/index.d.ts +51 -0
- package/dist/market-index/index.js +553 -0
- package/dist/market-index/index.js.map +1 -0
- package/dist/mcp/index.d.ts +263 -0
- package/dist/mcp/index.js +940 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/installer.d.ts +11 -0
- package/dist/mcp/installer.js +128 -0
- package/dist/mcp/installer.js.map +1 -0
- package/dist/mcp/server.d.ts +7 -0
- package/dist/mcp/server.js +172 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/media/index.d.ts +119 -0
- package/dist/media/index.js +740 -0
- package/dist/media/index.js.map +1 -0
- package/dist/memory/context.d.ts +189 -0
- package/dist/memory/context.js +541 -0
- package/dist/memory/context.js.map +1 -0
- package/dist/memory/index.d.ts +74 -0
- package/dist/memory/index.js +352 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/summarizer.d.ts +10 -0
- package/dist/memory/summarizer.js +51 -0
- package/dist/memory/summarizer.js.map +1 -0
- package/dist/memory/tokenizer.d.ts +4 -0
- package/dist/memory/tokenizer.js +61 -0
- package/dist/memory/tokenizer.js.map +1 -0
- package/dist/messages/unified.d.ts +7 -0
- package/dist/messages/unified.js +77 -0
- package/dist/messages/unified.js.map +1 -0
- package/dist/ml-pipeline/collector.d.ts +23 -0
- package/dist/ml-pipeline/collector.js +176 -0
- package/dist/ml-pipeline/collector.js.map +1 -0
- package/dist/ml-pipeline/index.d.ts +21 -0
- package/dist/ml-pipeline/index.js +72 -0
- package/dist/ml-pipeline/index.js.map +1 -0
- package/dist/ml-pipeline/trainer.d.ts +32 -0
- package/dist/ml-pipeline/trainer.js +228 -0
- package/dist/ml-pipeline/trainer.js.map +1 -0
- package/dist/ml-pipeline/types.d.ts +51 -0
- package/dist/ml-pipeline/types.js +23 -0
- package/dist/ml-pipeline/types.js.map +1 -0
- package/dist/models/adaptive.d.ts +11 -0
- package/dist/models/adaptive.js +64 -0
- package/dist/models/adaptive.js.map +1 -0
- package/dist/models/failover.d.ts +51 -0
- package/dist/models/failover.js +151 -0
- package/dist/models/failover.js.map +1 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +13 -0
- package/dist/models/index.js.map +1 -0
- package/dist/monitoring/alerts.d.ts +185 -0
- package/dist/monitoring/alerts.js +565 -0
- package/dist/monitoring/alerts.js.map +1 -0
- package/dist/monitoring/health.d.ts +151 -0
- package/dist/monitoring/health.js +423 -0
- package/dist/monitoring/health.js.map +1 -0
- package/dist/monitoring/index.d.ts +25 -0
- package/dist/monitoring/index.js +258 -0
- package/dist/monitoring/index.js.map +1 -0
- package/dist/monitoring/metrics.d.ts +147 -0
- package/dist/monitoring/metrics.js +519 -0
- package/dist/monitoring/metrics.js.map +1 -0
- package/dist/nodes/index.d.ts +81 -0
- package/dist/nodes/index.js +475 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/opportunity/analytics.d.ts +221 -0
- package/dist/opportunity/analytics.js +678 -0
- package/dist/opportunity/analytics.js.map +1 -0
- package/dist/opportunity/combinatorial.d.ts +147 -0
- package/dist/opportunity/combinatorial.js +765 -0
- package/dist/opportunity/combinatorial.js.map +1 -0
- package/dist/opportunity/correlation.d.ts +107 -0
- package/dist/opportunity/correlation.js +410 -0
- package/dist/opportunity/correlation.js.map +1 -0
- package/dist/opportunity/executor.d.ts +108 -0
- package/dist/opportunity/executor.js +356 -0
- package/dist/opportunity/executor.js.map +1 -0
- package/dist/opportunity/index.d.ts +285 -0
- package/dist/opportunity/index.js +839 -0
- package/dist/opportunity/index.js.map +1 -0
- package/dist/opportunity/links.d.ts +87 -0
- package/dist/opportunity/links.js +344 -0
- package/dist/opportunity/links.js.map +1 -0
- package/dist/opportunity/matching.d.ts +101 -0
- package/dist/opportunity/matching.js +551 -0
- package/dist/opportunity/matching.js.map +1 -0
- package/dist/opportunity/outcomes.d.ts +74 -0
- package/dist/opportunity/outcomes.js +321 -0
- package/dist/opportunity/outcomes.js.map +1 -0
- package/dist/opportunity/risk.d.ts +128 -0
- package/dist/opportunity/risk.js +381 -0
- package/dist/opportunity/risk.js.map +1 -0
- package/dist/opportunity/scoring.d.ts +151 -0
- package/dist/opportunity/scoring.js +421 -0
- package/dist/opportunity/scoring.js.map +1 -0
- package/dist/pairing/index.d.ts +108 -0
- package/dist/pairing/index.js +431 -0
- package/dist/pairing/index.js.map +1 -0
- package/dist/payments/index.d.ts +12 -0
- package/dist/payments/index.js +34 -0
- package/dist/payments/index.js.map +1 -0
- package/dist/payments/x402/evm.d.ts +53 -0
- package/dist/payments/x402/evm.js +282 -0
- package/dist/payments/x402/evm.js.map +1 -0
- package/dist/payments/x402/index.d.ts +158 -0
- package/dist/payments/x402/index.js +531 -0
- package/dist/payments/x402/index.js.map +1 -0
- package/dist/payments/x402/solana.d.ts +51 -0
- package/dist/payments/x402/solana.js +397 -0
- package/dist/payments/x402/solana.js.map +1 -0
- package/dist/percolator/accounts.d.ts +21 -0
- package/dist/percolator/accounts.js +76 -0
- package/dist/percolator/accounts.js.map +1 -0
- package/dist/percolator/encode.d.ts +14 -0
- package/dist/percolator/encode.js +90 -0
- package/dist/percolator/encode.js.map +1 -0
- package/dist/percolator/execution.d.ts +29 -0
- package/dist/percolator/execution.js +239 -0
- package/dist/percolator/execution.js.map +1 -0
- package/dist/percolator/feed.d.ts +15 -0
- package/dist/percolator/feed.js +160 -0
- package/dist/percolator/feed.js.map +1 -0
- package/dist/percolator/index.d.ts +20 -0
- package/dist/percolator/index.js +24 -0
- package/dist/percolator/index.js.map +1 -0
- package/dist/percolator/instructions.d.ts +29 -0
- package/dist/percolator/instructions.js +52 -0
- package/dist/percolator/instructions.js.map +1 -0
- package/dist/percolator/keeper.d.ts +11 -0
- package/dist/percolator/keeper.js +83 -0
- package/dist/percolator/keeper.js.map +1 -0
- package/dist/percolator/pda.d.ts +15 -0
- package/dist/percolator/pda.js +26 -0
- package/dist/percolator/pda.js.map +1 -0
- package/dist/percolator/slab.d.ts +122 -0
- package/dist/percolator/slab.js +325 -0
- package/dist/percolator/slab.js.map +1 -0
- package/dist/percolator/tx.d.ts +27 -0
- package/dist/percolator/tx.js +77 -0
- package/dist/percolator/tx.js.map +1 -0
- package/dist/percolator/types.d.ts +51 -0
- package/dist/percolator/types.js +9 -0
- package/dist/percolator/types.js.map +1 -0
- package/dist/permissions/index.d.ts +262 -0
- package/dist/permissions/index.js +929 -0
- package/dist/permissions/index.js.map +1 -0
- package/dist/plugins/index.d.ts +158 -0
- package/dist/plugins/index.js +444 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/portfolio/index.d.ts +170 -0
- package/dist/portfolio/index.js +970 -0
- package/dist/portfolio/index.js.map +1 -0
- package/dist/presence/index.d.ts +34 -0
- package/dist/presence/index.js +124 -0
- package/dist/presence/index.js.map +1 -0
- package/dist/process/index.d.ts +82 -0
- package/dist/process/index.js +402 -0
- package/dist/process/index.js.map +1 -0
- package/dist/providers/discovery.d.ts +209 -0
- package/dist/providers/discovery.js +751 -0
- package/dist/providers/discovery.js.map +1 -0
- package/dist/providers/health.d.ts +27 -0
- package/dist/providers/health.js +80 -0
- package/dist/providers/health.js.map +1 -0
- package/dist/providers/index.d.ts +154 -0
- package/dist/providers/index.js +897 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/queue/index.d.ts +36 -0
- package/dist/queue/index.js +146 -0
- package/dist/queue/index.js.map +1 -0
- package/dist/queue/jobs/index.d.ts +11 -0
- package/dist/queue/jobs/index.js +32 -0
- package/dist/queue/jobs/index.js.map +1 -0
- package/dist/queue/jobs/producer.d.ts +43 -0
- package/dist/queue/jobs/producer.js +233 -0
- package/dist/queue/jobs/producer.js.map +1 -0
- package/dist/queue/jobs/types.d.ts +128 -0
- package/dist/queue/jobs/types.js +14 -0
- package/dist/queue/jobs/types.js.map +1 -0
- package/dist/queue/jobs/worker.d.ts +22 -0
- package/dist/queue/jobs/worker.js +220 -0
- package/dist/queue/jobs/worker.js.map +1 -0
- package/dist/remote/index.d.ts +136 -0
- package/dist/remote/index.js +456 -0
- package/dist/remote/index.js.map +1 -0
- package/dist/risk/circuit-breaker.d.ts +99 -0
- package/dist/risk/circuit-breaker.js +300 -0
- package/dist/risk/circuit-breaker.js.map +1 -0
- package/dist/risk/dashboard.d.ts +69 -0
- package/dist/risk/dashboard.js +127 -0
- package/dist/risk/dashboard.js.map +1 -0
- package/dist/risk/engine.d.ts +128 -0
- package/dist/risk/engine.js +311 -0
- package/dist/risk/engine.js.map +1 -0
- package/dist/risk/index.d.ts +10 -0
- package/dist/risk/index.js +38 -0
- package/dist/risk/index.js.map +1 -0
- package/dist/risk/stress.d.ts +70 -0
- package/dist/risk/stress.js +215 -0
- package/dist/risk/stress.js.map +1 -0
- package/dist/risk/var.d.ts +72 -0
- package/dist/risk/var.js +173 -0
- package/dist/risk/var.js.map +1 -0
- package/dist/risk/volatility.d.ts +61 -0
- package/dist/risk/volatility.js +132 -0
- package/dist/risk/volatility.js.map +1 -0
- package/dist/routing/index.d.ts +116 -0
- package/dist/routing/index.js +371 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/search/index.d.ts +30 -0
- package/dist/search/index.js +129 -0
- package/dist/search/index.js.map +1 -0
- package/dist/security/address-checker.d.ts +6 -0
- package/dist/security/address-checker.js +213 -0
- package/dist/security/address-checker.js.map +1 -0
- package/dist/security/code-scanner.d.ts +3 -0
- package/dist/security/code-scanner.js +190 -0
- package/dist/security/code-scanner.js.map +1 -0
- package/dist/security/index.d.ts +176 -0
- package/dist/security/index.js +498 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/sanitizer.d.ts +2 -0
- package/dist/security/sanitizer.js +135 -0
- package/dist/security/sanitizer.js.map +1 -0
- package/dist/security/scam-db.d.ts +5 -0
- package/dist/security/scam-db.js +116 -0
- package/dist/security/scam-db.js.map +1 -0
- package/dist/security/shield.d.ts +12 -0
- package/dist/security/shield.js +80 -0
- package/dist/security/shield.js.map +1 -0
- package/dist/security/tx-validator.d.ts +5 -0
- package/dist/security/tx-validator.js +115 -0
- package/dist/security/tx-validator.js.map +1 -0
- package/dist/security/types.d.ts +84 -0
- package/dist/security/types.js +6 -0
- package/dist/security/types.js.map +1 -0
- package/dist/services/alt-data/feeds/fear-greed.d.ts +14 -0
- package/dist/services/alt-data/feeds/fear-greed.js +81 -0
- package/dist/services/alt-data/feeds/fear-greed.js.map +1 -0
- package/dist/services/alt-data/feeds/funding-rates.d.ts +13 -0
- package/dist/services/alt-data/feeds/funding-rates.js +90 -0
- package/dist/services/alt-data/feeds/funding-rates.js.map +1 -0
- package/dist/services/alt-data/feeds/reddit.d.ts +13 -0
- package/dist/services/alt-data/feeds/reddit.js +112 -0
- package/dist/services/alt-data/feeds/reddit.js.map +1 -0
- package/dist/services/alt-data/index.d.ts +31 -0
- package/dist/services/alt-data/index.js +278 -0
- package/dist/services/alt-data/index.js.map +1 -0
- package/dist/services/alt-data/market-matcher.d.ts +29 -0
- package/dist/services/alt-data/market-matcher.js +157 -0
- package/dist/services/alt-data/market-matcher.js.map +1 -0
- package/dist/services/alt-data/sentiment.d.ts +11 -0
- package/dist/services/alt-data/sentiment.js +277 -0
- package/dist/services/alt-data/sentiment.js.map +1 -0
- package/dist/services/alt-data/types.d.ts +86 -0
- package/dist/services/alt-data/types.js +9 -0
- package/dist/services/alt-data/types.js.map +1 -0
- package/dist/services/feature-engineering/accessor.d.ts +19 -0
- package/dist/services/feature-engineering/accessor.js +31 -0
- package/dist/services/feature-engineering/accessor.js.map +1 -0
- package/dist/services/feature-engineering/index.d.ts +15 -0
- package/dist/services/feature-engineering/index.js +345 -0
- package/dist/services/feature-engineering/index.js.map +1 -0
- package/dist/services/feature-engineering/indicators.d.ts +90 -0
- package/dist/services/feature-engineering/indicators.js +254 -0
- package/dist/services/feature-engineering/indicators.js.map +1 -0
- package/dist/services/feature-engineering/rolling-window.d.ts +89 -0
- package/dist/services/feature-engineering/rolling-window.js +173 -0
- package/dist/services/feature-engineering/rolling-window.js.map +1 -0
- package/dist/services/feature-engineering/thresholds.d.ts +137 -0
- package/dist/services/feature-engineering/thresholds.js +280 -0
- package/dist/services/feature-engineering/thresholds.js.map +1 -0
- package/dist/services/feature-engineering/types.d.ts +138 -0
- package/dist/services/feature-engineering/types.js +6 -0
- package/dist/services/feature-engineering/types.js.map +1 -0
- package/dist/services/tick-recorder/index.d.ts +12 -0
- package/dist/services/tick-recorder/index.js +200 -0
- package/dist/services/tick-recorder/index.js.map +1 -0
- package/dist/services/tick-recorder/queries.d.ts +46 -0
- package/dist/services/tick-recorder/queries.js +291 -0
- package/dist/services/tick-recorder/queries.js.map +1 -0
- package/dist/services/tick-recorder/schema.d.ts +27 -0
- package/dist/services/tick-recorder/schema.js +185 -0
- package/dist/services/tick-recorder/schema.js.map +1 -0
- package/dist/services/tick-recorder/timescale.d.ts +27 -0
- package/dist/services/tick-recorder/timescale.js +105 -0
- package/dist/services/tick-recorder/timescale.js.map +1 -0
- package/dist/services/tick-recorder/types.d.ts +113 -0
- package/dist/services/tick-recorder/types.js +7 -0
- package/dist/services/tick-recorder/types.js.map +1 -0
- package/dist/services/tick-streamer/index.d.ts +12 -0
- package/dist/services/tick-streamer/index.js +317 -0
- package/dist/services/tick-streamer/index.js.map +1 -0
- package/dist/services/tick-streamer/types.d.ts +134 -0
- package/dist/services/tick-streamer/types.js +6 -0
- package/dist/services/tick-streamer/types.js.map +1 -0
- package/dist/session/index.d.ts +147 -0
- package/dist/session/index.js +429 -0
- package/dist/session/index.js.map +1 -0
- package/dist/sessions/index.d.ts +69 -0
- package/dist/sessions/index.js +447 -0
- package/dist/sessions/index.js.map +1 -0
- package/dist/signal-router/index.d.ts +2 -0
- package/dist/signal-router/index.js +6 -0
- package/dist/signal-router/index.js.map +1 -0
- package/dist/signal-router/router.d.ts +25 -0
- package/dist/signal-router/router.js +391 -0
- package/dist/signal-router/router.js.map +1 -0
- package/dist/signal-router/types.d.ts +64 -0
- package/dist/signal-router/types.js +9 -0
- package/dist/signal-router/types.js.map +1 -0
- package/dist/skills/bundled/acp/index.d.ts +25 -0
- package/dist/skills/bundled/acp/index.js +472 -0
- package/dist/skills/bundled/acp/index.js.map +1 -0
- package/dist/skills/bundled/agentbets/index.d.ts +15 -0
- package/dist/skills/bundled/agentbets/index.js +168 -0
- package/dist/skills/bundled/agentbets/index.js.map +1 -0
- package/dist/skills/bundled/ai-strategy/index.d.ts +21 -0
- package/dist/skills/bundled/ai-strategy/index.js +647 -0
- package/dist/skills/bundled/ai-strategy/index.js.map +1 -0
- package/dist/skills/bundled/alerts/index.d.ts +20 -0
- package/dist/skills/bundled/alerts/index.js +249 -0
- package/dist/skills/bundled/alerts/index.js.map +1 -0
- package/dist/skills/bundled/analytics/index.d.ts +17 -0
- package/dist/skills/bundled/analytics/index.js +112 -0
- package/dist/skills/bundled/analytics/index.js.map +1 -0
- package/dist/skills/bundled/arbitrage/index.d.ts +24 -0
- package/dist/skills/bundled/arbitrage/index.js +253 -0
- package/dist/skills/bundled/arbitrage/index.js.map +1 -0
- package/dist/skills/bundled/auto-reply/index.d.ts +18 -0
- package/dist/skills/bundled/auto-reply/index.js +215 -0
- package/dist/skills/bundled/auto-reply/index.js.map +1 -0
- package/dist/skills/bundled/automation/index.d.ts +19 -0
- package/dist/skills/bundled/automation/index.js +160 -0
- package/dist/skills/bundled/automation/index.js.map +1 -0
- package/dist/skills/bundled/backtest/index.d.ts +18 -0
- package/dist/skills/bundled/backtest/index.js +250 -0
- package/dist/skills/bundled/backtest/index.js.map +1 -0
- package/dist/skills/bundled/bags/index.d.ts +49 -0
- package/dist/skills/bundled/bags/index.js +1069 -0
- package/dist/skills/bundled/bags/index.js.map +1 -0
- package/dist/skills/bundled/bankr/index.d.ts +161 -0
- package/dist/skills/bundled/bankr/index.js +271 -0
- package/dist/skills/bundled/bankr/index.js.map +1 -0
- package/dist/skills/bundled/betfair/index.d.ts +24 -0
- package/dist/skills/bundled/betfair/index.js +511 -0
- package/dist/skills/bundled/betfair/index.js.map +1 -0
- package/dist/skills/bundled/binance-futures/index.d.ts +15 -0
- package/dist/skills/bundled/binance-futures/index.js +485 -0
- package/dist/skills/bundled/binance-futures/index.js.map +1 -0
- package/dist/skills/bundled/botchan/index.d.ts +130 -0
- package/dist/skills/bundled/botchan/index.js +427 -0
- package/dist/skills/bundled/botchan/index.js.map +1 -0
- package/dist/skills/bundled/bridge/index.d.ts +17 -0
- package/dist/skills/bundled/bridge/index.js +297 -0
- package/dist/skills/bundled/bridge/index.js.map +1 -0
- package/dist/skills/bundled/bybit-futures/index.d.ts +15 -0
- package/dist/skills/bundled/bybit-futures/index.js +380 -0
- package/dist/skills/bundled/bybit-futures/index.js.map +1 -0
- package/dist/skills/bundled/clanker/index.d.ts +236 -0
- package/dist/skills/bundled/clanker/index.js +759 -0
- package/dist/skills/bundled/clanker/index.js.map +1 -0
- package/dist/skills/bundled/copy-trading/index.d.ts +20 -0
- package/dist/skills/bundled/copy-trading/index.js +213 -0
- package/dist/skills/bundled/copy-trading/index.js.map +1 -0
- package/dist/skills/bundled/copy-trading-solana/index.d.ts +21 -0
- package/dist/skills/bundled/copy-trading-solana/index.js +421 -0
- package/dist/skills/bundled/copy-trading-solana/index.js.map +1 -0
- package/dist/skills/bundled/credentials/index.d.ts +17 -0
- package/dist/skills/bundled/credentials/index.js +137 -0
- package/dist/skills/bundled/credentials/index.js.map +1 -0
- package/dist/skills/bundled/crypto-hft/index.d.ts +26 -0
- package/dist/skills/bundled/crypto-hft/index.js +361 -0
- package/dist/skills/bundled/crypto-hft/index.js.map +1 -0
- package/dist/skills/bundled/dca/index.d.ts +26 -0
- package/dist/skills/bundled/dca/index.js +1342 -0
- package/dist/skills/bundled/dca/index.js.map +1 -0
- package/dist/skills/bundled/divergence/index.d.ts +19 -0
- package/dist/skills/bundled/divergence/index.js +272 -0
- package/dist/skills/bundled/divergence/index.js.map +1 -0
- package/dist/skills/bundled/doctor/index.d.ts +18 -0
- package/dist/skills/bundled/doctor/index.js +78 -0
- package/dist/skills/bundled/doctor/index.js.map +1 -0
- package/dist/skills/bundled/drift/index.d.ts +13 -0
- package/dist/skills/bundled/drift/index.js +378 -0
- package/dist/skills/bundled/drift/index.js.map +1 -0
- package/dist/skills/bundled/drift-sdk/index.d.ts +17 -0
- package/dist/skills/bundled/drift-sdk/index.js +501 -0
- package/dist/skills/bundled/drift-sdk/index.js.map +1 -0
- package/dist/skills/bundled/edge/index.d.ts +16 -0
- package/dist/skills/bundled/edge/index.js +91 -0
- package/dist/skills/bundled/edge/index.js.map +1 -0
- package/dist/skills/bundled/embeddings/index.d.ts +19 -0
- package/dist/skills/bundled/embeddings/index.js +215 -0
- package/dist/skills/bundled/embeddings/index.js.map +1 -0
- package/dist/skills/bundled/endaoment/index.d.ts +105 -0
- package/dist/skills/bundled/endaoment/index.js +285 -0
- package/dist/skills/bundled/endaoment/index.js.map +1 -0
- package/dist/skills/bundled/ens/index.d.ts +151 -0
- package/dist/skills/bundled/ens/index.js +278 -0
- package/dist/skills/bundled/ens/index.js.map +1 -0
- package/dist/skills/bundled/erc8004/index.d.ts +123 -0
- package/dist/skills/bundled/erc8004/index.js +301 -0
- package/dist/skills/bundled/erc8004/index.js.map +1 -0
- package/dist/skills/bundled/execution/index.d.ts +18 -0
- package/dist/skills/bundled/execution/index.js +358 -0
- package/dist/skills/bundled/execution/index.js.map +1 -0
- package/dist/skills/bundled/farcaster/index.d.ts +121 -0
- package/dist/skills/bundled/farcaster/index.js +314 -0
- package/dist/skills/bundled/farcaster/index.js.map +1 -0
- package/dist/skills/bundled/features/index.d.ts +17 -0
- package/dist/skills/bundled/features/index.js +305 -0
- package/dist/skills/bundled/features/index.js.map +1 -0
- package/dist/skills/bundled/feeds/index.d.ts +26 -0
- package/dist/skills/bundled/feeds/index.js +462 -0
- package/dist/skills/bundled/feeds/index.js.map +1 -0
- package/dist/skills/bundled/harden/index.d.ts +55 -0
- package/dist/skills/bundled/harden/index.js +510 -0
- package/dist/skills/bundled/harden/index.js.map +1 -0
- package/dist/skills/bundled/history/index.d.ts +21 -0
- package/dist/skills/bundled/history/index.js +195 -0
- package/dist/skills/bundled/history/index.js.map +1 -0
- package/dist/skills/bundled/hyperliquid/index.d.ts +19 -0
- package/dist/skills/bundled/hyperliquid/index.js +1280 -0
- package/dist/skills/bundled/hyperliquid/index.js.map +1 -0
- package/dist/skills/bundled/identity/index.d.ts +17 -0
- package/dist/skills/bundled/identity/index.js +223 -0
- package/dist/skills/bundled/identity/index.js.map +1 -0
- package/dist/skills/bundled/integrations/index.d.ts +17 -0
- package/dist/skills/bundled/integrations/index.js +138 -0
- package/dist/skills/bundled/integrations/index.js.map +1 -0
- package/dist/skills/bundled/jupiter/index.d.ts +41 -0
- package/dist/skills/bundled/jupiter/index.js +872 -0
- package/dist/skills/bundled/jupiter/index.js.map +1 -0
- package/dist/skills/bundled/kamino/index.d.ts +33 -0
- package/dist/skills/bundled/kamino/index.js +578 -0
- package/dist/skills/bundled/kamino/index.js.map +1 -0
- package/dist/skills/bundled/ledger/index.d.ts +14 -0
- package/dist/skills/bundled/ledger/index.js +186 -0
- package/dist/skills/bundled/ledger/index.js.map +1 -0
- package/dist/skills/bundled/market-index/index.d.ts +18 -0
- package/dist/skills/bundled/market-index/index.js +182 -0
- package/dist/skills/bundled/market-index/index.js.map +1 -0
- package/dist/skills/bundled/markets/index.d.ts +16 -0
- package/dist/skills/bundled/markets/index.js +95 -0
- package/dist/skills/bundled/markets/index.js.map +1 -0
- package/dist/skills/bundled/mcp/index.d.ts +19 -0
- package/dist/skills/bundled/mcp/index.js +212 -0
- package/dist/skills/bundled/mcp/index.js.map +1 -0
- package/dist/skills/bundled/memory/index.d.ts +20 -0
- package/dist/skills/bundled/memory/index.js +210 -0
- package/dist/skills/bundled/memory/index.js.map +1 -0
- package/dist/skills/bundled/metaculus/index.d.ts +17 -0
- package/dist/skills/bundled/metaculus/index.js +168 -0
- package/dist/skills/bundled/metaculus/index.js.map +1 -0
- package/dist/skills/bundled/meteora/index.d.ts +39 -0
- package/dist/skills/bundled/meteora/index.js +837 -0
- package/dist/skills/bundled/meteora/index.js.map +1 -0
- package/dist/skills/bundled/meteora-dbc/index.d.ts +33 -0
- package/dist/skills/bundled/meteora-dbc/index.js +993 -0
- package/dist/skills/bundled/meteora-dbc/index.js.map +1 -0
- package/dist/skills/bundled/metrics/index.d.ts +18 -0
- package/dist/skills/bundled/metrics/index.js +91 -0
- package/dist/skills/bundled/metrics/index.js.map +1 -0
- package/dist/skills/bundled/mev/index.d.ts +17 -0
- package/dist/skills/bundled/mev/index.js +108 -0
- package/dist/skills/bundled/mev/index.js.map +1 -0
- package/dist/skills/bundled/mexc-futures/index.d.ts +16 -0
- package/dist/skills/bundled/mexc-futures/index.js +389 -0
- package/dist/skills/bundled/mexc-futures/index.js.map +1 -0
- package/dist/skills/bundled/mm/index.d.ts +18 -0
- package/dist/skills/bundled/mm/index.js +315 -0
- package/dist/skills/bundled/mm/index.js.map +1 -0
- package/dist/skills/bundled/monitoring/index.d.ts +18 -0
- package/dist/skills/bundled/monitoring/index.js +146 -0
- package/dist/skills/bundled/monitoring/index.js.map +1 -0
- package/dist/skills/bundled/news/index.d.ts +17 -0
- package/dist/skills/bundled/news/index.js +161 -0
- package/dist/skills/bundled/news/index.js.map +1 -0
- package/dist/skills/bundled/onchainkit/index.d.ts +92 -0
- package/dist/skills/bundled/onchainkit/index.js +429 -0
- package/dist/skills/bundled/onchainkit/index.js.map +1 -0
- package/dist/skills/bundled/opinion/index.d.ts +12 -0
- package/dist/skills/bundled/opinion/index.js +429 -0
- package/dist/skills/bundled/opinion/index.js.map +1 -0
- package/dist/skills/bundled/opportunity/index.d.ts +25 -0
- package/dist/skills/bundled/opportunity/index.js +289 -0
- package/dist/skills/bundled/opportunity/index.js.map +1 -0
- package/dist/skills/bundled/orca/index.d.ts +12 -0
- package/dist/skills/bundled/orca/index.js +663 -0
- package/dist/skills/bundled/orca/index.js.map +1 -0
- package/dist/skills/bundled/pairing/index.d.ts +24 -0
- package/dist/skills/bundled/pairing/index.js +228 -0
- package/dist/skills/bundled/pairing/index.js.map +1 -0
- package/dist/skills/bundled/percolator/index.d.ts +20 -0
- package/dist/skills/bundled/percolator/index.js +229 -0
- package/dist/skills/bundled/percolator/index.js.map +1 -0
- package/dist/skills/bundled/permissions/index.d.ts +21 -0
- package/dist/skills/bundled/permissions/index.js +204 -0
- package/dist/skills/bundled/permissions/index.js.map +1 -0
- package/dist/skills/bundled/plugins/index.d.ts +20 -0
- package/dist/skills/bundled/plugins/index.js +209 -0
- package/dist/skills/bundled/plugins/index.js.map +1 -0
- package/dist/skills/bundled/portfolio/index.d.ts +20 -0
- package/dist/skills/bundled/portfolio/index.js +367 -0
- package/dist/skills/bundled/portfolio/index.js.map +1 -0
- package/dist/skills/bundled/portfolio-sync/index.d.ts +17 -0
- package/dist/skills/bundled/portfolio-sync/index.js +116 -0
- package/dist/skills/bundled/portfolio-sync/index.js.map +1 -0
- package/dist/skills/bundled/positions/index.d.ts +18 -0
- package/dist/skills/bundled/positions/index.js +161 -0
- package/dist/skills/bundled/positions/index.js.map +1 -0
- package/dist/skills/bundled/predictfun/index.d.ts +13 -0
- package/dist/skills/bundled/predictfun/index.js +612 -0
- package/dist/skills/bundled/predictfun/index.js.map +1 -0
- package/dist/skills/bundled/predictit/index.d.ts +16 -0
- package/dist/skills/bundled/predictit/index.js +138 -0
- package/dist/skills/bundled/predictit/index.js.map +1 -0
- package/dist/skills/bundled/presence/index.d.ts +18 -0
- package/dist/skills/bundled/presence/index.js +151 -0
- package/dist/skills/bundled/presence/index.js.map +1 -0
- package/dist/skills/bundled/processes/index.d.ts +17 -0
- package/dist/skills/bundled/processes/index.js +121 -0
- package/dist/skills/bundled/processes/index.js.map +1 -0
- package/dist/skills/bundled/pump-swarm/index.d.ts +16 -0
- package/dist/skills/bundled/pump-swarm/index.js +2235 -0
- package/dist/skills/bundled/pump-swarm/index.js.map +1 -0
- package/dist/skills/bundled/pumpfun/index.d.ts +47 -0
- package/dist/skills/bundled/pumpfun/index.js +1400 -0
- package/dist/skills/bundled/pumpfun/index.js.map +1 -0
- package/dist/skills/bundled/qmd/index.d.ts +18 -0
- package/dist/skills/bundled/qmd/index.js +116 -0
- package/dist/skills/bundled/qmd/index.js.map +1 -0
- package/dist/skills/bundled/qrcoin/index.d.ts +92 -0
- package/dist/skills/bundled/qrcoin/index.js +328 -0
- package/dist/skills/bundled/qrcoin/index.js.map +1 -0
- package/dist/skills/bundled/raydium/index.d.ts +35 -0
- package/dist/skills/bundled/raydium/index.js +695 -0
- package/dist/skills/bundled/raydium/index.js.map +1 -0
- package/dist/skills/bundled/remote/index.d.ts +19 -0
- package/dist/skills/bundled/remote/index.js +186 -0
- package/dist/skills/bundled/remote/index.js.map +1 -0
- package/dist/skills/bundled/research/index.d.ts +17 -0
- package/dist/skills/bundled/research/index.js +185 -0
- package/dist/skills/bundled/research/index.js.map +1 -0
- package/dist/skills/bundled/risk/index.d.ts +31 -0
- package/dist/skills/bundled/risk/index.js +379 -0
- package/dist/skills/bundled/risk/index.js.map +1 -0
- package/dist/skills/bundled/router/index.d.ts +17 -0
- package/dist/skills/bundled/router/index.js +160 -0
- package/dist/skills/bundled/router/index.js.map +1 -0
- package/dist/skills/bundled/routing/index.d.ts +23 -0
- package/dist/skills/bundled/routing/index.js +257 -0
- package/dist/skills/bundled/routing/index.js.map +1 -0
- package/dist/skills/bundled/sandbox/index.d.ts +18 -0
- package/dist/skills/bundled/sandbox/index.js +119 -0
- package/dist/skills/bundled/sandbox/index.js.map +1 -0
- package/dist/skills/bundled/search-config/index.d.ts +18 -0
- package/dist/skills/bundled/search-config/index.js +170 -0
- package/dist/skills/bundled/search-config/index.js.map +1 -0
- package/dist/skills/bundled/sessions/index.d.ts +29 -0
- package/dist/skills/bundled/sessions/index.js +193 -0
- package/dist/skills/bundled/sessions/index.js.map +1 -0
- package/dist/skills/bundled/shield/index.d.ts +22 -0
- package/dist/skills/bundled/shield/index.js +245 -0
- package/dist/skills/bundled/shield/index.js.map +1 -0
- package/dist/skills/bundled/signals/index.d.ts +24 -0
- package/dist/skills/bundled/signals/index.js +776 -0
- package/dist/skills/bundled/signals/index.js.map +1 -0
- package/dist/skills/bundled/sizing/index.d.ts +16 -0
- package/dist/skills/bundled/sizing/index.js +168 -0
- package/dist/skills/bundled/sizing/index.js.map +1 -0
- package/dist/skills/bundled/slippage/index.d.ts +16 -0
- package/dist/skills/bundled/slippage/index.js +111 -0
- package/dist/skills/bundled/slippage/index.js.map +1 -0
- package/dist/skills/bundled/smarkets/index.d.ts +23 -0
- package/dist/skills/bundled/smarkets/index.js +473 -0
- package/dist/skills/bundled/smarkets/index.js.map +1 -0
- package/dist/skills/bundled/strategy/index.d.ts +18 -0
- package/dist/skills/bundled/strategy/index.js +168 -0
- package/dist/skills/bundled/strategy/index.js.map +1 -0
- package/dist/skills/bundled/streaming/index.d.ts +19 -0
- package/dist/skills/bundled/streaming/index.js +147 -0
- package/dist/skills/bundled/streaming/index.js.map +1 -0
- package/dist/skills/bundled/tailscale/index.d.ts +18 -0
- package/dist/skills/bundled/tailscale/index.js +173 -0
- package/dist/skills/bundled/tailscale/index.js.map +1 -0
- package/dist/skills/bundled/ticks/index.d.ts +17 -0
- package/dist/skills/bundled/ticks/index.js +287 -0
- package/dist/skills/bundled/ticks/index.js.map +1 -0
- package/dist/skills/bundled/token-security/index.d.ts +19 -0
- package/dist/skills/bundled/token-security/index.js +138 -0
- package/dist/skills/bundled/token-security/index.js.map +1 -0
- package/dist/skills/bundled/trading-evm/index.d.ts +19 -0
- package/dist/skills/bundled/trading-evm/index.js +302 -0
- package/dist/skills/bundled/trading-evm/index.js.map +1 -0
- package/dist/skills/bundled/trading-futures/index.d.ts +14 -0
- package/dist/skills/bundled/trading-futures/index.js +874 -0
- package/dist/skills/bundled/trading-futures/index.js.map +1 -0
- package/dist/skills/bundled/trading-kalshi/index.d.ts +36 -0
- package/dist/skills/bundled/trading-kalshi/index.js +1199 -0
- package/dist/skills/bundled/trading-kalshi/index.js.map +1 -0
- package/dist/skills/bundled/trading-manifold/index.d.ts +23 -0
- package/dist/skills/bundled/trading-manifold/index.js +391 -0
- package/dist/skills/bundled/trading-manifold/index.js.map +1 -0
- package/dist/skills/bundled/trading-polymarket/index.d.ts +27 -0
- package/dist/skills/bundled/trading-polymarket/index.js +1321 -0
- package/dist/skills/bundled/trading-polymarket/index.js.map +1 -0
- package/dist/skills/bundled/trading-solana/index.d.ts +19 -0
- package/dist/skills/bundled/trading-solana/index.js +383 -0
- package/dist/skills/bundled/trading-solana/index.js.map +1 -0
- package/dist/skills/bundled/trading-system/index.d.ts +22 -0
- package/dist/skills/bundled/trading-system/index.js +355 -0
- package/dist/skills/bundled/trading-system/index.js.map +1 -0
- package/dist/skills/bundled/triggers/index.d.ts +18 -0
- package/dist/skills/bundled/triggers/index.js +172 -0
- package/dist/skills/bundled/triggers/index.js.map +1 -0
- package/dist/skills/bundled/tts/index.d.ts +16 -0
- package/dist/skills/bundled/tts/index.js +150 -0
- package/dist/skills/bundled/tts/index.js.map +1 -0
- package/dist/skills/bundled/tweet-ideas/index.d.ts +20 -0
- package/dist/skills/bundled/tweet-ideas/index.js +470 -0
- package/dist/skills/bundled/tweet-ideas/index.js.map +1 -0
- package/dist/skills/bundled/usage/index.d.ts +17 -0
- package/dist/skills/bundled/usage/index.js +145 -0
- package/dist/skills/bundled/usage/index.js.map +1 -0
- package/dist/skills/bundled/veil/index.d.ts +79 -0
- package/dist/skills/bundled/veil/index.js +322 -0
- package/dist/skills/bundled/veil/index.js.map +1 -0
- package/dist/skills/bundled/verify/index.d.ts +20 -0
- package/dist/skills/bundled/verify/index.js +157 -0
- package/dist/skills/bundled/verify/index.js.map +1 -0
- package/dist/skills/bundled/virtuals/index.d.ts +20 -0
- package/dist/skills/bundled/virtuals/index.js +255 -0
- package/dist/skills/bundled/virtuals/index.js.map +1 -0
- package/dist/skills/bundled/voice/index.d.ts +18 -0
- package/dist/skills/bundled/voice/index.js +190 -0
- package/dist/skills/bundled/voice/index.js.map +1 -0
- package/dist/skills/bundled/weather/index.d.ts +20 -0
- package/dist/skills/bundled/weather/index.js +475 -0
- package/dist/skills/bundled/weather/index.js.map +1 -0
- package/dist/skills/bundled/webhooks/index.d.ts +18 -0
- package/dist/skills/bundled/webhooks/index.js +136 -0
- package/dist/skills/bundled/webhooks/index.js.map +1 -0
- package/dist/skills/bundled/whale-tracking/index.d.ts +18 -0
- package/dist/skills/bundled/whale-tracking/index.js +441 -0
- package/dist/skills/bundled/whale-tracking/index.js.map +1 -0
- package/dist/skills/bundled/yoink/index.d.ts +78 -0
- package/dist/skills/bundled/yoink/index.js +236 -0
- package/dist/skills/bundled/yoink/index.js.map +1 -0
- package/dist/skills/executor.d.ts +117 -0
- package/dist/skills/executor.js +469 -0
- package/dist/skills/executor.js.map +1 -0
- package/dist/skills/frontmatter.d.ts +69 -0
- package/dist/skills/frontmatter.js +187 -0
- package/dist/skills/frontmatter.js.map +1 -0
- package/dist/skills/index.d.ts +150 -0
- package/dist/skills/index.js +531 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/loader.d.ts +48 -0
- package/dist/skills/loader.js +594 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/registry.d.ts +94 -0
- package/dist/skills/registry.js +308 -0
- package/dist/skills/registry.js.map +1 -0
- package/dist/solana/copytrade.d.ts +116 -0
- package/dist/solana/copytrade.js +493 -0
- package/dist/solana/copytrade.js.map +1 -0
- package/dist/solana/drift.d.ts +154 -0
- package/dist/solana/drift.js +599 -0
- package/dist/solana/drift.js.map +1 -0
- package/dist/solana/jupiter.d.ts +283 -0
- package/dist/solana/jupiter.js +553 -0
- package/dist/solana/jupiter.js.map +1 -0
- package/dist/solana/kamino.d.ts +206 -0
- package/dist/solana/kamino.js +546 -0
- package/dist/solana/kamino.js.map +1 -0
- package/dist/solana/meteora-dbc.d.ts +430 -0
- package/dist/solana/meteora-dbc.js +1105 -0
- package/dist/solana/meteora-dbc.js.map +1 -0
- package/dist/solana/meteora.d.ts +232 -0
- package/dist/solana/meteora.js +682 -0
- package/dist/solana/meteora.js.map +1 -0
- package/dist/solana/orca.d.ts +163 -0
- package/dist/solana/orca.js +378 -0
- package/dist/solana/orca.js.map +1 -0
- package/dist/solana/pools.d.ts +26 -0
- package/dist/solana/pools.js +96 -0
- package/dist/solana/pools.js.map +1 -0
- package/dist/solana/pump-swarm.d.ts +349 -0
- package/dist/solana/pump-swarm.js +1663 -0
- package/dist/solana/pump-swarm.js.map +1 -0
- package/dist/solana/pumpapi.d.ts +196 -0
- package/dist/solana/pumpapi.js +462 -0
- package/dist/solana/pumpapi.js.map +1 -0
- package/dist/solana/raydium.d.ts +170 -0
- package/dist/solana/raydium.js +673 -0
- package/dist/solana/raydium.js.map +1 -0
- package/dist/solana/swarm-ai-builder.d.ts +97 -0
- package/dist/solana/swarm-ai-builder.js +571 -0
- package/dist/solana/swarm-ai-builder.js.map +1 -0
- package/dist/solana/swarm-arbitrage.d.ts +111 -0
- package/dist/solana/swarm-arbitrage.js +437 -0
- package/dist/solana/swarm-arbitrage.js.map +1 -0
- package/dist/solana/swarm-builders.d.ts +71 -0
- package/dist/solana/swarm-builders.js +402 -0
- package/dist/solana/swarm-builders.js.map +1 -0
- package/dist/solana/swarm-copytrade.d.ts +103 -0
- package/dist/solana/swarm-copytrade.js +420 -0
- package/dist/solana/swarm-copytrade.js.map +1 -0
- package/dist/solana/swarm-presets.d.ts +49 -0
- package/dist/solana/swarm-presets.js +282 -0
- package/dist/solana/swarm-presets.js.map +1 -0
- package/dist/solana/swarm-signals.d.ts +128 -0
- package/dist/solana/swarm-signals.js +529 -0
- package/dist/solana/swarm-signals.js.map +1 -0
- package/dist/solana/swarm-strategies.d.ts +230 -0
- package/dist/solana/swarm-strategies.js +611 -0
- package/dist/solana/swarm-strategies.js.map +1 -0
- package/dist/solana/tokenlist.d.ts +10 -0
- package/dist/solana/tokenlist.js +54 -0
- package/dist/solana/tokenlist.js.map +1 -0
- package/dist/solana/wallet.d.ts +12 -0
- package/dist/solana/wallet.js +90 -0
- package/dist/solana/wallet.js.map +1 -0
- package/dist/strategies/crypto-hft/index.d.ts +46 -0
- package/dist/strategies/crypto-hft/index.js +469 -0
- package/dist/strategies/crypto-hft/index.js.map +1 -0
- package/dist/strategies/crypto-hft/market-scanner.d.ts +26 -0
- package/dist/strategies/crypto-hft/market-scanner.js +177 -0
- package/dist/strategies/crypto-hft/market-scanner.js.map +1 -0
- package/dist/strategies/crypto-hft/orderbook.d.ts +37 -0
- package/dist/strategies/crypto-hft/orderbook.js +184 -0
- package/dist/strategies/crypto-hft/orderbook.js.map +1 -0
- package/dist/strategies/crypto-hft/positions.d.ts +49 -0
- package/dist/strategies/crypto-hft/positions.js +376 -0
- package/dist/strategies/crypto-hft/positions.js.map +1 -0
- package/dist/strategies/crypto-hft/presets.d.ts +11 -0
- package/dist/strategies/crypto-hft/presets.js +164 -0
- package/dist/strategies/crypto-hft/presets.js.map +1 -0
- package/dist/strategies/crypto-hft/strategies.d.ts +96 -0
- package/dist/strategies/crypto-hft/strategies.js +330 -0
- package/dist/strategies/crypto-hft/strategies.js.map +1 -0
- package/dist/strategies/crypto-hft/types.d.ts +196 -0
- package/dist/strategies/crypto-hft/types.js +32 -0
- package/dist/strategies/crypto-hft/types.js.map +1 -0
- package/dist/strategies/hft-divergence/detector.d.ts +29 -0
- package/dist/strategies/hft-divergence/detector.js +182 -0
- package/dist/strategies/hft-divergence/detector.js.map +1 -0
- package/dist/strategies/hft-divergence/index.d.ts +12 -0
- package/dist/strategies/hft-divergence/index.js +19 -0
- package/dist/strategies/hft-divergence/index.js.map +1 -0
- package/dist/strategies/hft-divergence/market-rotator.d.ts +17 -0
- package/dist/strategies/hft-divergence/market-rotator.js +128 -0
- package/dist/strategies/hft-divergence/market-rotator.js.map +1 -0
- package/dist/strategies/hft-divergence/position-manager.d.ts +35 -0
- package/dist/strategies/hft-divergence/position-manager.js +188 -0
- package/dist/strategies/hft-divergence/position-manager.js.map +1 -0
- package/dist/strategies/hft-divergence/strategy.d.ts +31 -0
- package/dist/strategies/hft-divergence/strategy.js +295 -0
- package/dist/strategies/hft-divergence/strategy.js.map +1 -0
- package/dist/strategies/hft-divergence/types.d.ts +114 -0
- package/dist/strategies/hft-divergence/types.js +10 -0
- package/dist/strategies/hft-divergence/types.js.map +1 -0
- package/dist/streaming/index.d.ts +70 -0
- package/dist/streaming/index.js +296 -0
- package/dist/streaming/index.js.map +1 -0
- package/dist/tailscale/index.d.ts +139 -0
- package/dist/tailscale/index.js +345 -0
- package/dist/tailscale/index.js.map +1 -0
- package/dist/telemetry/index.d.ts +143 -0
- package/dist/telemetry/index.js +535 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/terminal/index.d.ts +121 -0
- package/dist/terminal/index.js +548 -0
- package/dist/terminal/index.js.map +1 -0
- package/dist/token-security/index.d.ts +36 -0
- package/dist/token-security/index.js +253 -0
- package/dist/token-security/index.js.map +1 -0
- package/dist/tools/browser.d.ts +128 -0
- package/dist/tools/browser.js +459 -0
- package/dist/tools/browser.js.map +1 -0
- package/dist/tools/canvas.d.ts +93 -0
- package/dist/tools/canvas.js +349 -0
- package/dist/tools/canvas.js.map +1 -0
- package/dist/tools/docker.d.ts +59 -0
- package/dist/tools/docker.js +191 -0
- package/dist/tools/docker.js.map +1 -0
- package/dist/tools/email.d.ts +25 -0
- package/dist/tools/email.js +131 -0
- package/dist/tools/email.js.map +1 -0
- package/dist/tools/exec.d.ts +81 -0
- package/dist/tools/exec.js +373 -0
- package/dist/tools/exec.js.map +1 -0
- package/dist/tools/files.d.ts +46 -0
- package/dist/tools/files.js +185 -0
- package/dist/tools/files.js.map +1 -0
- package/dist/tools/git.d.ts +29 -0
- package/dist/tools/git.js +105 -0
- package/dist/tools/git.js.map +1 -0
- package/dist/tools/image.d.ts +57 -0
- package/dist/tools/image.js +308 -0
- package/dist/tools/image.js.map +1 -0
- package/dist/tools/index.d.ts +39 -0
- package/dist/tools/index.js +46 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/message.d.ts +99 -0
- package/dist/tools/message.js +200 -0
- package/dist/tools/message.js.map +1 -0
- package/dist/tools/nodes.d.ts +134 -0
- package/dist/tools/nodes.js +357 -0
- package/dist/tools/nodes.js.map +1 -0
- package/dist/tools/sessions.d.ts +60 -0
- package/dist/tools/sessions.js +119 -0
- package/dist/tools/sessions.js.map +1 -0
- package/dist/tools/shell-history.d.ts +17 -0
- package/dist/tools/shell-history.js +118 -0
- package/dist/tools/shell-history.js.map +1 -0
- package/dist/tools/sms.d.ts +18 -0
- package/dist/tools/sms.js +66 -0
- package/dist/tools/sms.js.map +1 -0
- package/dist/tools/sql.d.ts +19 -0
- package/dist/tools/sql.js +91 -0
- package/dist/tools/sql.js.map +1 -0
- package/dist/tools/transcription.d.ts +13 -0
- package/dist/tools/transcription.js +99 -0
- package/dist/tools/transcription.js.map +1 -0
- package/dist/tools/web-fetch.d.ts +69 -0
- package/dist/tools/web-fetch.js +251 -0
- package/dist/tools/web-fetch.js.map +1 -0
- package/dist/tools/web-search.d.ts +58 -0
- package/dist/tools/web-search.js +204 -0
- package/dist/tools/web-search.js.map +1 -0
- package/dist/tools/webhooks.d.ts +74 -0
- package/dist/tools/webhooks.js +165 -0
- package/dist/tools/webhooks.js.map +1 -0
- package/dist/trading/accounts.d.ts +167 -0
- package/dist/trading/accounts.js +394 -0
- package/dist/trading/accounts.js.map +1 -0
- package/dist/trading/adapters/index.d.ts +27 -0
- package/dist/trading/adapters/index.js +165 -0
- package/dist/trading/adapters/index.js.map +1 -0
- package/dist/trading/backtest.d.ts +161 -0
- package/dist/trading/backtest.js +665 -0
- package/dist/trading/backtest.js.map +1 -0
- package/dist/trading/bots/index.d.ts +196 -0
- package/dist/trading/bots/index.js +688 -0
- package/dist/trading/bots/index.js.map +1 -0
- package/dist/trading/bridge.d.ts +33 -0
- package/dist/trading/bridge.js +121 -0
- package/dist/trading/bridge.js.map +1 -0
- package/dist/trading/builder.d.ts +102 -0
- package/dist/trading/builder.js +430 -0
- package/dist/trading/builder.js.map +1 -0
- package/dist/trading/copy-trading.d.ts +125 -0
- package/dist/trading/copy-trading.js +611 -0
- package/dist/trading/copy-trading.js.map +1 -0
- package/dist/trading/devtools.d.ts +172 -0
- package/dist/trading/devtools.js +425 -0
- package/dist/trading/devtools.js.map +1 -0
- package/dist/trading/futures/index.d.ts +981 -0
- package/dist/trading/futures/index.js +4011 -0
- package/dist/trading/futures/index.js.map +1 -0
- package/dist/trading/index.d.ts +102 -0
- package/dist/trading/index.js +310 -0
- package/dist/trading/index.js.map +1 -0
- package/dist/trading/kelly.d.ts +137 -0
- package/dist/trading/kelly.js +328 -0
- package/dist/trading/kelly.js.map +1 -0
- package/dist/trading/logger.d.ts +163 -0
- package/dist/trading/logger.js +424 -0
- package/dist/trading/logger.js.map +1 -0
- package/dist/trading/market-making/engine.d.ts +44 -0
- package/dist/trading/market-making/engine.js +165 -0
- package/dist/trading/market-making/engine.js.map +1 -0
- package/dist/trading/market-making/index.d.ts +10 -0
- package/dist/trading/market-making/index.js +29 -0
- package/dist/trading/market-making/index.js.map +1 -0
- package/dist/trading/market-making/strategy.d.ts +25 -0
- package/dist/trading/market-making/strategy.js +250 -0
- package/dist/trading/market-making/strategy.js.map +1 -0
- package/dist/trading/market-making/types.d.ts +92 -0
- package/dist/trading/market-making/types.js +6 -0
- package/dist/trading/market-making/types.js.map +1 -0
- package/dist/trading/ml-signals.d.ts +175 -0
- package/dist/trading/ml-signals.js +548 -0
- package/dist/trading/ml-signals.js.map +1 -0
- package/dist/trading/orchestrator.d.ts +59 -0
- package/dist/trading/orchestrator.js +199 -0
- package/dist/trading/orchestrator.js.map +1 -0
- package/dist/trading/position-bridge.d.ts +41 -0
- package/dist/trading/position-bridge.js +178 -0
- package/dist/trading/position-bridge.js.map +1 -0
- package/dist/trading/resilience.d.ts +81 -0
- package/dist/trading/resilience.js +257 -0
- package/dist/trading/resilience.js.map +1 -0
- package/dist/trading/risk.d.ts +18 -0
- package/dist/trading/risk.js +91 -0
- package/dist/trading/risk.js.map +1 -0
- package/dist/trading/safety.d.ts +114 -0
- package/dist/trading/safety.js +372 -0
- package/dist/trading/safety.js.map +1 -0
- package/dist/trading/secrets.d.ts +48 -0
- package/dist/trading/secrets.js +243 -0
- package/dist/trading/secrets.js.map +1 -0
- package/dist/trading/state.d.ts +88 -0
- package/dist/trading/state.js +221 -0
- package/dist/trading/state.js.map +1 -0
- package/dist/trading/stream.d.ts +121 -0
- package/dist/trading/stream.js +396 -0
- package/dist/trading/stream.js.map +1 -0
- package/dist/trading/tracking.d.ts +136 -0
- package/dist/trading/tracking.js +512 -0
- package/dist/trading/tracking.js.map +1 -0
- package/dist/tts/index.d.ts +28 -0
- package/dist/tts/index.js +64 -0
- package/dist/tts/index.js.map +1 -0
- package/dist/tui/index.d.ts +159 -0
- package/dist/tui/index.js +580 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/types.d.ts +1373 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/dist/usage/index.d.ts +57 -0
- package/dist/usage/index.js +191 -0
- package/dist/usage/index.js.map +1 -0
- package/dist/utils/attachments.d.ts +12 -0
- package/dist/utils/attachments.js +104 -0
- package/dist/utils/attachments.js.map +1 -0
- package/dist/utils/config.d.ts +14 -0
- package/dist/utils/config.js +474 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/http.d.ts +22 -0
- package/dist/utils/http.js +191 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/utils/id.d.ts +21 -0
- package/dist/utils/id.js +41 -0
- package/dist/utils/id.js.map +1 -0
- package/dist/utils/json-utils.d.ts +201 -0
- package/dist/utils/json-utils.js +151 -0
- package/dist/utils/json-utils.js.map +1 -0
- package/dist/utils/kalshi-auth.d.ts +10 -0
- package/dist/utils/kalshi-auth.js +48 -0
- package/dist/utils/kalshi-auth.js.map +1 -0
- package/dist/utils/kelly.d.ts +153 -0
- package/dist/utils/kelly.js +322 -0
- package/dist/utils/kelly.js.map +1 -0
- package/dist/utils/logger.d.ts +7 -0
- package/dist/utils/logger.js +26 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/opinion-auth.d.ts +17 -0
- package/dist/utils/opinion-auth.js +25 -0
- package/dist/utils/opinion-auth.js.map +1 -0
- package/dist/utils/polymarket-auth.d.ts +11 -0
- package/dist/utils/polymarket-auth.js +32 -0
- package/dist/utils/polymarket-auth.js.map +1 -0
- package/dist/utils/polymarket-order-signer.d.ts +118 -0
- package/dist/utils/polymarket-order-signer.js +329 -0
- package/dist/utils/polymarket-order-signer.js.map +1 -0
- package/dist/utils/polymarket-setup.d.ts +70 -0
- package/dist/utils/polymarket-setup.js +288 -0
- package/dist/utils/polymarket-setup.js.map +1 -0
- package/dist/utils/production.d.ts +112 -0
- package/dist/utils/production.js +294 -0
- package/dist/utils/production.js.map +1 -0
- package/dist/utils/rate-limiter.d.ts +77 -0
- package/dist/utils/rate-limiter.js +271 -0
- package/dist/utils/rate-limiter.js.map +1 -0
- package/dist/utils/webhook-security.d.ts +63 -0
- package/dist/utils/webhook-security.js +183 -0
- package/dist/utils/webhook-security.js.map +1 -0
- package/dist/voice/index.d.ts +125 -0
- package/dist/voice/index.js +557 -0
- package/dist/voice/index.js.map +1 -0
- package/dist/weather/edge.d.ts +70 -0
- package/dist/weather/edge.js +281 -0
- package/dist/weather/edge.js.map +1 -0
- package/dist/weather/index.d.ts +6 -0
- package/dist/weather/index.js +23 -0
- package/dist/weather/index.js.map +1 -0
- package/dist/weather/markets.d.ts +84 -0
- package/dist/weather/markets.js +320 -0
- package/dist/weather/markets.js.map +1 -0
- package/dist/weather/noaa.d.ts +113 -0
- package/dist/weather/noaa.js +287 -0
- package/dist/weather/noaa.js.map +1 -0
- package/dist/web/index.d.ts +112 -0
- package/dist/web/index.js +639 -0
- package/dist/web/index.js.map +1 -0
- package/dist/wizard/index.d.ts +27 -0
- package/dist/wizard/index.js +186 -0
- package/dist/wizard/index.js.map +1 -0
- package/dist/workspace/index.d.ts +73 -0
- package/dist/workspace/index.js +403 -0
- package/dist/workspace/index.js.map +1 -0
- package/package.json +168 -0
|
@@ -0,0 +1,1069 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Bags.fm CLI Skill - Complete API Coverage
|
|
4
|
+
*
|
|
5
|
+
* Solana token launchpad and trading platform with creator monetization.
|
|
6
|
+
* Base URL: https://public-api-v2.bags.fm/api/v1/
|
|
7
|
+
*
|
|
8
|
+
* Commands:
|
|
9
|
+
*
|
|
10
|
+
* TRADING:
|
|
11
|
+
* /bags quote <amount> <from> to <to> - Get swap quote
|
|
12
|
+
* /bags swap <amount> <from> to <to> - Execute swap
|
|
13
|
+
*
|
|
14
|
+
* DISCOVERY:
|
|
15
|
+
* /bags pools - List all Bags pools
|
|
16
|
+
* /bags trending - Show trending tokens
|
|
17
|
+
* /bags token <mint> - Get token info
|
|
18
|
+
* /bags creators <mint> - Get token creators
|
|
19
|
+
* /bags lifetime-fees <mint> - Get total fees collected
|
|
20
|
+
*
|
|
21
|
+
* FEE CLAIMING:
|
|
22
|
+
* /bags fees <wallet> - Check claimable fees (all positions)
|
|
23
|
+
* /bags claim <wallet> - Claim accumulated fees
|
|
24
|
+
* /bags claim-events <mint> [--from <timestamp>] [--to <timestamp>] - Get claim history
|
|
25
|
+
* /bags stats <mint> - Token claim statistics per claimer
|
|
26
|
+
*
|
|
27
|
+
* TOKEN LAUNCH:
|
|
28
|
+
* /bags launch <name> <symbol> <description> [--image <url>] [--twitter <handle>] [--website <url>] - Launch new token
|
|
29
|
+
* /bags launch-info - Show launch requirements and fees
|
|
30
|
+
*
|
|
31
|
+
* FEE SHARE CONFIG:
|
|
32
|
+
* /bags fee-config <mint> <claimer1:bps> [claimer2:bps...] - Create fee share config (bps must sum to 10000)
|
|
33
|
+
*
|
|
34
|
+
* WALLET LOOKUP:
|
|
35
|
+
* /bags wallet <provider> <username> - Lookup wallet by social (twitter/github/kick)
|
|
36
|
+
* /bags wallets <provider> <user1,user2,...> - Bulk wallet lookup
|
|
37
|
+
*
|
|
38
|
+
* PARTNER SYSTEM:
|
|
39
|
+
* /bags partner-config <mint> - Create partner config for fee sharing
|
|
40
|
+
* /bags partner-claim <wallet> - Claim partner fees
|
|
41
|
+
* /bags partner-stats <partner-key> - Get partner statistics
|
|
42
|
+
*/
|
|
43
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
44
|
+
if (k2 === undefined) k2 = k;
|
|
45
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
46
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
47
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
48
|
+
}
|
|
49
|
+
Object.defineProperty(o, k2, desc);
|
|
50
|
+
}) : (function(o, m, k, k2) {
|
|
51
|
+
if (k2 === undefined) k2 = k;
|
|
52
|
+
o[k2] = m[k];
|
|
53
|
+
}));
|
|
54
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
55
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
56
|
+
}) : function(o, v) {
|
|
57
|
+
o["default"] = v;
|
|
58
|
+
});
|
|
59
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
60
|
+
var ownKeys = function(o) {
|
|
61
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
62
|
+
var ar = [];
|
|
63
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
64
|
+
return ar;
|
|
65
|
+
};
|
|
66
|
+
return ownKeys(o);
|
|
67
|
+
};
|
|
68
|
+
return function (mod) {
|
|
69
|
+
if (mod && mod.__esModule) return mod;
|
|
70
|
+
var result = {};
|
|
71
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
72
|
+
__setModuleDefault(result, mod);
|
|
73
|
+
return result;
|
|
74
|
+
};
|
|
75
|
+
})();
|
|
76
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
+
exports.execute = execute;
|
|
78
|
+
const BAGS_API_BASE = 'https://public-api-v2.bags.fm/api/v1';
|
|
79
|
+
// ============================================================================
|
|
80
|
+
// API Client
|
|
81
|
+
// ============================================================================
|
|
82
|
+
function getApiKey() {
|
|
83
|
+
return process.env.BAGS_API_KEY || null;
|
|
84
|
+
}
|
|
85
|
+
async function bagsRequest(endpoint, options = {}) {
|
|
86
|
+
const apiKey = getApiKey();
|
|
87
|
+
if (!apiKey) {
|
|
88
|
+
throw new Error('BAGS_API_KEY not configured. Get one at dev.bags.fm');
|
|
89
|
+
}
|
|
90
|
+
const url = endpoint.startsWith('http') ? endpoint : `${BAGS_API_BASE}${endpoint}`;
|
|
91
|
+
const response = await fetch(url, {
|
|
92
|
+
...options,
|
|
93
|
+
headers: {
|
|
94
|
+
'x-api-key': apiKey,
|
|
95
|
+
'Content-Type': 'application/json',
|
|
96
|
+
...options.headers,
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
if (!response.ok) {
|
|
100
|
+
const error = await response.text();
|
|
101
|
+
throw new Error(`Bags API error: ${response.status} - ${error}`);
|
|
102
|
+
}
|
|
103
|
+
const json = await response.json();
|
|
104
|
+
if (json.success === false) {
|
|
105
|
+
throw new Error(`Bags API error: ${json.error || 'Unknown error'}`);
|
|
106
|
+
}
|
|
107
|
+
// Unwrap { success, response } envelope
|
|
108
|
+
return (json.response !== undefined ? json.response : json);
|
|
109
|
+
}
|
|
110
|
+
// ============================================================================
|
|
111
|
+
// Trading Handlers
|
|
112
|
+
// ============================================================================
|
|
113
|
+
async function handleQuote(args) {
|
|
114
|
+
const toIndex = args.findIndex(a => a.toLowerCase() === 'to');
|
|
115
|
+
if (toIndex < 2 || toIndex >= args.length - 1) {
|
|
116
|
+
return 'Usage: /bags quote <amount> <from> to <to>\nExample: /bags quote 1 SOL to USDC';
|
|
117
|
+
}
|
|
118
|
+
const amount = args[0];
|
|
119
|
+
const fromToken = args.slice(1, toIndex).join('');
|
|
120
|
+
const toToken = args.slice(toIndex + 1).join('');
|
|
121
|
+
try {
|
|
122
|
+
const { resolveTokenMints, getTokenList } = await Promise.resolve().then(() => __importStar(require('../../../solana/tokenlist')));
|
|
123
|
+
const [fromMint, toMint] = await resolveTokenMints([fromToken, toToken]);
|
|
124
|
+
if (!fromMint || !toMint) {
|
|
125
|
+
return `Could not resolve tokens: ${fromToken}, ${toToken}`;
|
|
126
|
+
}
|
|
127
|
+
// Look up decimals for amount conversion (API expects smallest unit)
|
|
128
|
+
const tokens = await getTokenList();
|
|
129
|
+
const fromDecimals = tokens.find(t => t.address === fromMint)?.decimals ?? 9;
|
|
130
|
+
const toDecimals = tokens.find(t => t.address === toMint)?.decimals ?? 9;
|
|
131
|
+
const amountSmallest = Math.floor(parseFloat(amount) * Math.pow(10, fromDecimals)).toString();
|
|
132
|
+
const quote = await bagsRequest(`/trade/quote?inputMint=${fromMint}&outputMint=${toMint}&amount=${amountSmallest}&slippageMode=auto`);
|
|
133
|
+
// Convert output from smallest unit to human-readable
|
|
134
|
+
const outHuman = (parseFloat(quote.outAmount) / Math.pow(10, toDecimals)).toFixed(Math.min(toDecimals, 9));
|
|
135
|
+
const minOutHuman = (parseFloat(quote.minOutAmount) / Math.pow(10, toDecimals)).toFixed(Math.min(toDecimals, 9));
|
|
136
|
+
return `**Bags Quote**\n\n` +
|
|
137
|
+
`${amount} ${fromToken} -> ${toToken}\n` +
|
|
138
|
+
`Output: ${outHuman} ${toToken}\n` +
|
|
139
|
+
`Min Output: ${minOutHuman} ${toToken}\n` +
|
|
140
|
+
`Price Impact: ${quote.priceImpactPct}%\n` +
|
|
141
|
+
`Slippage: ${(quote.slippageBps / 100).toFixed(2)}%`;
|
|
142
|
+
}
|
|
143
|
+
catch (error) {
|
|
144
|
+
return `Quote failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
async function handleSwap(args) {
|
|
148
|
+
const toIndex = args.findIndex(a => a.toLowerCase() === 'to');
|
|
149
|
+
if (toIndex < 2 || toIndex >= args.length - 1) {
|
|
150
|
+
return 'Usage: /bags swap <amount> <from> to <to>\nExample: /bags swap 1 SOL to USDC';
|
|
151
|
+
}
|
|
152
|
+
const amount = args[0];
|
|
153
|
+
const fromToken = args.slice(1, toIndex).join('');
|
|
154
|
+
const toToken = args.slice(toIndex + 1).join('');
|
|
155
|
+
try {
|
|
156
|
+
const { resolveTokenMints, getTokenList } = await Promise.resolve().then(() => __importStar(require('../../../solana/tokenlist')));
|
|
157
|
+
const { loadSolanaKeypair, getSolanaConnection } = await Promise.resolve().then(() => __importStar(require('../../../solana/wallet')));
|
|
158
|
+
const [fromMint, toMint] = await resolveTokenMints([fromToken, toToken]);
|
|
159
|
+
if (!fromMint || !toMint) {
|
|
160
|
+
return `Could not resolve tokens: ${fromToken}, ${toToken}`;
|
|
161
|
+
}
|
|
162
|
+
const keypair = loadSolanaKeypair();
|
|
163
|
+
const walletAddress = keypair.publicKey.toBase58();
|
|
164
|
+
// Look up decimals for amount conversion (API expects smallest unit)
|
|
165
|
+
const tokens = await getTokenList();
|
|
166
|
+
const fromDecimals = tokens.find(t => t.address === fromMint)?.decimals ?? 9;
|
|
167
|
+
const toDecimals = tokens.find(t => t.address === toMint)?.decimals ?? 9;
|
|
168
|
+
const amountSmallest = Math.floor(parseFloat(amount) * Math.pow(10, fromDecimals)).toString();
|
|
169
|
+
// Step 1: Get quote
|
|
170
|
+
const quote = await bagsRequest(`/trade/quote?inputMint=${fromMint}&outputMint=${toMint}&amount=${amountSmallest}&slippageMode=auto`);
|
|
171
|
+
// Step 2: Create swap transaction from quote
|
|
172
|
+
const txResponse = await bagsRequest('/trade/swap', {
|
|
173
|
+
method: 'POST',
|
|
174
|
+
body: JSON.stringify({
|
|
175
|
+
quoteResponse: quote,
|
|
176
|
+
userPublicKey: walletAddress,
|
|
177
|
+
}),
|
|
178
|
+
});
|
|
179
|
+
// Step 3: Sign and send transaction (Base58 encoded)
|
|
180
|
+
const connection = getSolanaConnection();
|
|
181
|
+
const { bs58 } = await Promise.resolve().then(() => __importStar(require('@coral-xyz/anchor/dist/cjs/utils/bytes')));
|
|
182
|
+
const { VersionedTransaction } = await Promise.resolve().then(() => __importStar(require('@solana/web3.js')));
|
|
183
|
+
const txBuffer = bs58.decode(txResponse.swapTransaction);
|
|
184
|
+
const tx = VersionedTransaction.deserialize(txBuffer);
|
|
185
|
+
tx.sign([keypair]);
|
|
186
|
+
const signature = await connection.sendRawTransaction(tx.serialize());
|
|
187
|
+
await connection.confirmTransaction(signature, 'confirmed');
|
|
188
|
+
// Convert output to human-readable
|
|
189
|
+
const outHuman = (parseFloat(quote.outAmount) / Math.pow(10, toDecimals)).toFixed(Math.min(toDecimals, 9));
|
|
190
|
+
return `**Bags Swap Complete**\n\n` +
|
|
191
|
+
`${amount} ${fromToken} -> ${outHuman} ${toToken}\n` +
|
|
192
|
+
`TX: \`${signature}\``;
|
|
193
|
+
}
|
|
194
|
+
catch (error) {
|
|
195
|
+
return `Swap failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// ============================================================================
|
|
199
|
+
// Discovery Handlers
|
|
200
|
+
// ============================================================================
|
|
201
|
+
async function handlePools() {
|
|
202
|
+
try {
|
|
203
|
+
const pools = await bagsRequest('/solana/bags/pools');
|
|
204
|
+
if (!pools || pools.length === 0) {
|
|
205
|
+
return 'No Bags pools found.';
|
|
206
|
+
}
|
|
207
|
+
let output = `**Bags Pools** (${pools.length})\n\n`;
|
|
208
|
+
for (const pool of pools.slice(0, 20)) {
|
|
209
|
+
output += `**${pool.tokenMint.slice(0, 12)}...**\n`;
|
|
210
|
+
output += ` Mint: \`${pool.tokenMint}\`\n`;
|
|
211
|
+
output += ` DBC Pool: \`${pool.dbcPoolKey.slice(0, 16)}...\`\n`;
|
|
212
|
+
if (pool.dammV2PoolKey)
|
|
213
|
+
output += ` DAMM v2: \`${pool.dammV2PoolKey.slice(0, 16)}...\`\n`;
|
|
214
|
+
output += ` Migrated: ${pool.dammV2PoolKey ? 'Yes' : 'No'}\n\n`;
|
|
215
|
+
}
|
|
216
|
+
return output;
|
|
217
|
+
}
|
|
218
|
+
catch (error) {
|
|
219
|
+
return `Error fetching pools: ${error instanceof Error ? error.message : String(error)}`;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
async function handleTrending() {
|
|
223
|
+
try {
|
|
224
|
+
// Pools endpoint returns all pools with migrated DAMM v2 pools being the active ones
|
|
225
|
+
const pools = await bagsRequest('/solana/bags/pools?onlyMigrated=true');
|
|
226
|
+
if (!pools || pools.length === 0) {
|
|
227
|
+
return 'No migrated pools found on Bags.fm.';
|
|
228
|
+
}
|
|
229
|
+
let output = `**Active Bags.fm Pools** (migrated to DAMM v2)\n\n`;
|
|
230
|
+
for (let i = 0; i < Math.min(pools.length, 20); i++) {
|
|
231
|
+
const pool = pools[i];
|
|
232
|
+
output += `${i + 1}. \`${pool.tokenMint.slice(0, 16)}...\`\n`;
|
|
233
|
+
if (pool.dammV2PoolKey)
|
|
234
|
+
output += ` DAMM v2: \`${pool.dammV2PoolKey.slice(0, 16)}...\`\n`;
|
|
235
|
+
}
|
|
236
|
+
return output;
|
|
237
|
+
}
|
|
238
|
+
catch (error) {
|
|
239
|
+
return `Error: ${error instanceof Error ? error.message : String(error)}`;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
async function handleToken(mint) {
|
|
243
|
+
if (!mint) {
|
|
244
|
+
return 'Usage: /bags token <mint>';
|
|
245
|
+
}
|
|
246
|
+
try {
|
|
247
|
+
const [creators, lifetimeFees] = await Promise.all([
|
|
248
|
+
bagsRequest(`/token-launch/creator/v3?tokenMint=${mint}`).catch(() => null),
|
|
249
|
+
bagsRequest(`/token-launch/lifetime-fees?tokenMint=${mint}`).catch(() => null),
|
|
250
|
+
]);
|
|
251
|
+
let output = `**Bags Token**\n\n`;
|
|
252
|
+
output += `Mint: \`${mint}\`\n`;
|
|
253
|
+
if (creators && creators.length > 0) {
|
|
254
|
+
output += `\n**Creators (${creators.length}):**\n`;
|
|
255
|
+
for (const creator of creators.slice(0, 5)) {
|
|
256
|
+
output += ` - \`${creator.wallet.slice(0, 12)}...\``;
|
|
257
|
+
if (creator.username)
|
|
258
|
+
output += ` (${creator.username})`;
|
|
259
|
+
if (creator.providerUsername && creator.provider)
|
|
260
|
+
output += ` @${creator.providerUsername} [${creator.provider}]`;
|
|
261
|
+
output += ` - ${(creator.royaltyBps / 100).toFixed(1)}%`;
|
|
262
|
+
if (creator.isCreator)
|
|
263
|
+
output += ' (creator)';
|
|
264
|
+
output += '\n';
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
if (lifetimeFees) {
|
|
268
|
+
const feeLamports = BigInt(lifetimeFees);
|
|
269
|
+
const feeSol = Number(feeLamports) / 1e9;
|
|
270
|
+
output += `\n**Fee Stats:**\n`;
|
|
271
|
+
output += ` Lifetime Fees: ${feeSol.toFixed(4)} SOL (${feeLamports.toString()} lamports)\n`;
|
|
272
|
+
}
|
|
273
|
+
return output;
|
|
274
|
+
}
|
|
275
|
+
catch (error) {
|
|
276
|
+
return `Error: ${error instanceof Error ? error.message : String(error)}`;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
async function handleCreators(mint) {
|
|
280
|
+
if (!mint) {
|
|
281
|
+
return 'Usage: /bags creators <mint>';
|
|
282
|
+
}
|
|
283
|
+
try {
|
|
284
|
+
const creators = await bagsRequest(`/token-launch/creator/v3?tokenMint=${mint}`);
|
|
285
|
+
if (!creators || creators.length === 0) {
|
|
286
|
+
return `No creators found for token ${mint.slice(0, 12)}...`;
|
|
287
|
+
}
|
|
288
|
+
let output = `**Token Creators**\n\nMint: \`${mint.slice(0, 20)}...\`\n\n`;
|
|
289
|
+
let totalBps = 0;
|
|
290
|
+
for (const creator of creators) {
|
|
291
|
+
output += `**${creator.username || creator.wallet.slice(0, 12) + '...'}**\n`;
|
|
292
|
+
output += ` Wallet: \`${creator.wallet}\`\n`;
|
|
293
|
+
if (creator.provider)
|
|
294
|
+
output += ` Provider: ${creator.provider}\n`;
|
|
295
|
+
if (creator.providerUsername)
|
|
296
|
+
output += ` Handle: @${creator.providerUsername}\n`;
|
|
297
|
+
output += ` Share: ${(creator.royaltyBps / 100).toFixed(2)}%\n`;
|
|
298
|
+
output += ` Is Creator: ${creator.isCreator ? 'Yes' : 'No'}\n\n`;
|
|
299
|
+
totalBps += creator.royaltyBps;
|
|
300
|
+
}
|
|
301
|
+
output += `**Total Share: ${(totalBps / 100).toFixed(2)}%**`;
|
|
302
|
+
return output;
|
|
303
|
+
}
|
|
304
|
+
catch (error) {
|
|
305
|
+
return `Error: ${error instanceof Error ? error.message : String(error)}`;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
async function handleLifetimeFees(mint) {
|
|
309
|
+
if (!mint) {
|
|
310
|
+
return 'Usage: /bags lifetime-fees <mint>';
|
|
311
|
+
}
|
|
312
|
+
try {
|
|
313
|
+
const feeLamportsStr = await bagsRequest(`/token-launch/lifetime-fees?tokenMint=${mint}`);
|
|
314
|
+
const feeLamports = BigInt(feeLamportsStr);
|
|
315
|
+
const feeSol = Number(feeLamports) / 1e9;
|
|
316
|
+
let output = `**Lifetime Fees**\n\nMint: \`${mint.slice(0, 20)}...\`\n\n`;
|
|
317
|
+
output += `Total Fees Collected: **${feeSol.toFixed(4)} SOL** (${feeLamports.toString()} lamports)\n`;
|
|
318
|
+
return output;
|
|
319
|
+
}
|
|
320
|
+
catch (error) {
|
|
321
|
+
return `Error: ${error instanceof Error ? error.message : String(error)}`;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
// ============================================================================
|
|
325
|
+
// Fee Claiming Handlers
|
|
326
|
+
// ============================================================================
|
|
327
|
+
async function handleFees(walletArg) {
|
|
328
|
+
let walletAddress = walletArg;
|
|
329
|
+
if (!walletAddress) {
|
|
330
|
+
// Use configured wallet if not provided
|
|
331
|
+
try {
|
|
332
|
+
const { loadSolanaKeypair } = await Promise.resolve().then(() => __importStar(require('../../../solana/wallet')));
|
|
333
|
+
const keypair = loadSolanaKeypair();
|
|
334
|
+
walletAddress = keypair.publicKey.toBase58();
|
|
335
|
+
}
|
|
336
|
+
catch {
|
|
337
|
+
return 'Usage: /bags fees <wallet>\nOr configure SOLANA_PRIVATE_KEY to use your wallet.';
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
try {
|
|
341
|
+
const positions = await bagsRequest(`/token-launch/claimable-positions?wallet=${walletAddress}`);
|
|
342
|
+
if (!positions || positions.length === 0) {
|
|
343
|
+
return `No claimable fees for wallet ${walletAddress.slice(0, 12)}...`;
|
|
344
|
+
}
|
|
345
|
+
let output = `**Claimable Fees**\n\nWallet: \`${walletAddress.slice(0, 12)}...\`\n\n`;
|
|
346
|
+
let totalClaimableLamports = 0;
|
|
347
|
+
for (const pos of positions) {
|
|
348
|
+
output += `**${pos.baseMint.slice(0, 12)}...**\n`;
|
|
349
|
+
output += ` Mint: \`${pos.baseMint}\`\n`;
|
|
350
|
+
if (pos.virtualPoolClaimableAmount) {
|
|
351
|
+
output += ` Virtual Pool: ${pos.virtualPoolClaimableAmount} lamports\n`;
|
|
352
|
+
}
|
|
353
|
+
if (pos.dammPoolClaimableAmount) {
|
|
354
|
+
output += ` DAMM Pool: ${pos.dammPoolClaimableAmount} lamports\n`;
|
|
355
|
+
}
|
|
356
|
+
if (pos.claimableDisplayAmount) {
|
|
357
|
+
output += ` Display Amount: ${pos.claimableDisplayAmount}\n`;
|
|
358
|
+
}
|
|
359
|
+
const totalLamports = pos.totalClaimableLamportsUserShare;
|
|
360
|
+
const totalSol = totalLamports / 1e9;
|
|
361
|
+
output += ` **Total: ${totalSol.toFixed(6)} SOL**\n`;
|
|
362
|
+
if (pos.userBps)
|
|
363
|
+
output += ` Share: ${(pos.userBps / 100).toFixed(1)}%\n`;
|
|
364
|
+
output += '\n';
|
|
365
|
+
totalClaimableLamports += totalLamports;
|
|
366
|
+
}
|
|
367
|
+
const grandTotalSol = totalClaimableLamports / 1e9;
|
|
368
|
+
output += `\n**Grand Total: ${grandTotalSol.toFixed(6)} SOL**\n`;
|
|
369
|
+
output += `\nUse \`/bags claim ${walletAddress}\` to claim fees.`;
|
|
370
|
+
return output;
|
|
371
|
+
}
|
|
372
|
+
catch (error) {
|
|
373
|
+
return `Error: ${error instanceof Error ? error.message : String(error)}`;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
async function handleClaim(walletArg) {
|
|
377
|
+
try {
|
|
378
|
+
const { loadSolanaKeypair, getSolanaConnection } = await Promise.resolve().then(() => __importStar(require('../../../solana/wallet')));
|
|
379
|
+
const keypair = loadSolanaKeypair();
|
|
380
|
+
const walletAddress = walletArg || keypair.publicKey.toBase58();
|
|
381
|
+
// Verify wallet matches if specified
|
|
382
|
+
if (walletArg && keypair.publicKey.toBase58() !== walletArg) {
|
|
383
|
+
return `Wallet mismatch. Your configured wallet is ${keypair.publicKey.toBase58().slice(0, 12)}...`;
|
|
384
|
+
}
|
|
385
|
+
// Get all claimable positions first
|
|
386
|
+
const positions = await bagsRequest(`/token-launch/claimable-positions?wallet=${walletAddress}`);
|
|
387
|
+
if (!positions || positions.length === 0) {
|
|
388
|
+
return 'No fees to claim.';
|
|
389
|
+
}
|
|
390
|
+
const connection = getSolanaConnection();
|
|
391
|
+
const { VersionedTransaction, Transaction } = await Promise.resolve().then(() => __importStar(require('@solana/web3.js')));
|
|
392
|
+
const { bs58 } = await Promise.resolve().then(() => __importStar(require('@coral-xyz/anchor/dist/cjs/utils/bytes')));
|
|
393
|
+
const signatures = [];
|
|
394
|
+
let totalClaimedLamports = 0;
|
|
395
|
+
// Claim per token — v3 endpoint requires tokenMint
|
|
396
|
+
for (const pos of positions) {
|
|
397
|
+
if (pos.totalClaimableLamportsUserShare <= 0)
|
|
398
|
+
continue;
|
|
399
|
+
try {
|
|
400
|
+
const claimResult = await bagsRequest(`/token-launch/claim-txs/v3`, {
|
|
401
|
+
method: 'POST',
|
|
402
|
+
body: JSON.stringify({
|
|
403
|
+
feeClaimer: walletAddress,
|
|
404
|
+
tokenMint: pos.baseMint,
|
|
405
|
+
}),
|
|
406
|
+
});
|
|
407
|
+
if (!claimResult || claimResult.length === 0)
|
|
408
|
+
continue;
|
|
409
|
+
for (const claimTx of claimResult) {
|
|
410
|
+
// Claim txs are Base58 encoded legacy transactions
|
|
411
|
+
const txBuffer = bs58.decode(claimTx.tx);
|
|
412
|
+
let sig;
|
|
413
|
+
try {
|
|
414
|
+
const tx = VersionedTransaction.deserialize(txBuffer);
|
|
415
|
+
tx.sign([keypair]);
|
|
416
|
+
sig = await connection.sendRawTransaction(tx.serialize());
|
|
417
|
+
}
|
|
418
|
+
catch {
|
|
419
|
+
// Fall back to legacy Transaction
|
|
420
|
+
const tx = Transaction.from(txBuffer);
|
|
421
|
+
tx.sign(keypair);
|
|
422
|
+
sig = await connection.sendRawTransaction(tx.serialize());
|
|
423
|
+
}
|
|
424
|
+
await connection.confirmTransaction(sig, 'confirmed');
|
|
425
|
+
signatures.push(sig);
|
|
426
|
+
}
|
|
427
|
+
totalClaimedLamports += pos.totalClaimableLamportsUserShare;
|
|
428
|
+
}
|
|
429
|
+
catch (e) {
|
|
430
|
+
// Skip failed claims, continue with next token
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
if (signatures.length === 0) {
|
|
434
|
+
return 'No claim transactions generated. Fees may already be claimed.';
|
|
435
|
+
}
|
|
436
|
+
const totalSol = totalClaimedLamports / 1e9;
|
|
437
|
+
return `**Fees Claimed Successfully**\n\n` +
|
|
438
|
+
`Amount: ${totalSol.toFixed(6)} SOL\n` +
|
|
439
|
+
`Positions: ${positions.length}\n` +
|
|
440
|
+
`Transactions: ${signatures.length}\n\n` +
|
|
441
|
+
signatures.map(s => `- \`${s.slice(0, 24)}...\``).join('\n');
|
|
442
|
+
}
|
|
443
|
+
catch (error) {
|
|
444
|
+
return `Claim failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
async function handleClaimEvents(args) {
|
|
448
|
+
if (args.length === 0) {
|
|
449
|
+
return 'Usage: /bags claim-events <mint> [--from <timestamp>] [--to <timestamp>]';
|
|
450
|
+
}
|
|
451
|
+
const mint = args[0];
|
|
452
|
+
let fromTs;
|
|
453
|
+
let toTs;
|
|
454
|
+
// Parse optional flags
|
|
455
|
+
for (let i = 1; i < args.length; i++) {
|
|
456
|
+
if (args[i] === '--from' && args[i + 1]) {
|
|
457
|
+
fromTs = parseInt(args[i + 1]);
|
|
458
|
+
i++;
|
|
459
|
+
}
|
|
460
|
+
else if (args[i] === '--to' && args[i + 1]) {
|
|
461
|
+
toTs = parseInt(args[i + 1]);
|
|
462
|
+
i++;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
try {
|
|
466
|
+
let endpoint = `/fee-share/token/claim-events?tokenMint=${mint}`;
|
|
467
|
+
if (fromTs || toTs) {
|
|
468
|
+
endpoint += '&mode=time';
|
|
469
|
+
if (fromTs)
|
|
470
|
+
endpoint += `&from=${fromTs}`;
|
|
471
|
+
if (toTs)
|
|
472
|
+
endpoint += `&to=${toTs}`;
|
|
473
|
+
}
|
|
474
|
+
const result = await bagsRequest(endpoint);
|
|
475
|
+
if (!result.events || result.events.length === 0) {
|
|
476
|
+
return `No claim events for token ${mint.slice(0, 12)}...`;
|
|
477
|
+
}
|
|
478
|
+
let output = `**Claim Events**\n\nMint: \`${mint.slice(0, 20)}...\`\n\n`;
|
|
479
|
+
let totalClaimedLamports = 0n;
|
|
480
|
+
for (const event of result.events.slice(0, 20)) {
|
|
481
|
+
const date = new Date(event.timestamp).toLocaleString();
|
|
482
|
+
const amountLamports = BigInt(event.amount);
|
|
483
|
+
const amountSol = Number(amountLamports) / 1e9;
|
|
484
|
+
output += `**${event.wallet.slice(0, 12)}...** claimed ${amountSol.toFixed(6)} SOL`;
|
|
485
|
+
if (event.isCreator)
|
|
486
|
+
output += ' (creator)';
|
|
487
|
+
output += '\n';
|
|
488
|
+
output += ` ${date} | \`${event.signature.slice(0, 16)}...\`\n\n`;
|
|
489
|
+
totalClaimedLamports += amountLamports;
|
|
490
|
+
}
|
|
491
|
+
const totalSol = Number(totalClaimedLamports) / 1e9;
|
|
492
|
+
output += `\n**Total Claimed: ${totalSol.toFixed(6)} SOL**`;
|
|
493
|
+
if (result.events.length > 20) {
|
|
494
|
+
output += `\n(Showing 20 of ${result.events.length} events)`;
|
|
495
|
+
}
|
|
496
|
+
return output;
|
|
497
|
+
}
|
|
498
|
+
catch (error) {
|
|
499
|
+
return `Error: ${error instanceof Error ? error.message : String(error)}`;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
async function handleStats(mint) {
|
|
503
|
+
if (!mint) {
|
|
504
|
+
return 'Usage: /bags stats <mint>';
|
|
505
|
+
}
|
|
506
|
+
try {
|
|
507
|
+
const claimers = await bagsRequest(`/token-launch/claim-stats?tokenMint=${mint}`);
|
|
508
|
+
if (!claimers || claimers.length === 0) {
|
|
509
|
+
return `No claim stats for token ${mint.slice(0, 12)}...`;
|
|
510
|
+
}
|
|
511
|
+
let output = `**Token Claim Stats**\n\nMint: \`${mint.slice(0, 20)}...\`\n\n`;
|
|
512
|
+
let totalClaimedLamports = 0n;
|
|
513
|
+
for (const claimer of claimers) {
|
|
514
|
+
const claimedLamports = BigInt(claimer.totalClaimed);
|
|
515
|
+
const claimedSol = Number(claimedLamports) / 1e9;
|
|
516
|
+
output += `**${claimer.username || claimer.wallet.slice(0, 12) + '...'}**\n`;
|
|
517
|
+
output += ` Wallet: \`${claimer.wallet.slice(0, 16)}...\`\n`;
|
|
518
|
+
output += ` Total Claimed: ${claimedSol.toFixed(6)} SOL\n`;
|
|
519
|
+
output += ` Share: ${(claimer.royaltyBps / 100).toFixed(1)}%\n`;
|
|
520
|
+
if (claimer.isCreator)
|
|
521
|
+
output += ` Role: Creator\n`;
|
|
522
|
+
if (claimer.provider && claimer.providerUsername)
|
|
523
|
+
output += ` Social: @${claimer.providerUsername} [${claimer.provider}]\n`;
|
|
524
|
+
output += '\n';
|
|
525
|
+
totalClaimedLamports += claimedLamports;
|
|
526
|
+
}
|
|
527
|
+
const totalSol = Number(totalClaimedLamports) / 1e9;
|
|
528
|
+
output += `**Total Claimed: ${totalSol.toFixed(6)} SOL**`;
|
|
529
|
+
return output;
|
|
530
|
+
}
|
|
531
|
+
catch (error) {
|
|
532
|
+
return `Error: ${error instanceof Error ? error.message : String(error)}`;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
// ============================================================================
|
|
536
|
+
// Token Launch Handlers
|
|
537
|
+
// ============================================================================
|
|
538
|
+
async function handleLaunch(args) {
|
|
539
|
+
if (args.length < 3) {
|
|
540
|
+
return `Usage: /bags launch <name> <symbol> <description> [options]
|
|
541
|
+
|
|
542
|
+
Options:
|
|
543
|
+
--image <url> Token image URL (or will be uploaded)
|
|
544
|
+
--twitter <handle> Twitter handle
|
|
545
|
+
--website <url> Website URL
|
|
546
|
+
--telegram <url> Telegram URL
|
|
547
|
+
--initial <SOL> Initial buy amount in SOL (default: 0)
|
|
548
|
+
|
|
549
|
+
Example:
|
|
550
|
+
/bags launch "My Token" MTK "A great token" --twitter mytoken --initial 0.1`;
|
|
551
|
+
}
|
|
552
|
+
const name = args[0];
|
|
553
|
+
const symbol = args[1];
|
|
554
|
+
const description = args[2];
|
|
555
|
+
// Parse optional flags
|
|
556
|
+
let imageUrl;
|
|
557
|
+
let twitter;
|
|
558
|
+
let website;
|
|
559
|
+
let telegram;
|
|
560
|
+
let initialBuyLamports = 0;
|
|
561
|
+
for (let i = 3; i < args.length; i++) {
|
|
562
|
+
const flag = args[i];
|
|
563
|
+
const value = args[i + 1];
|
|
564
|
+
if (flag === '--image' && value) {
|
|
565
|
+
imageUrl = value;
|
|
566
|
+
i++;
|
|
567
|
+
}
|
|
568
|
+
else if (flag === '--twitter' && value) {
|
|
569
|
+
twitter = value;
|
|
570
|
+
i++;
|
|
571
|
+
}
|
|
572
|
+
else if (flag === '--website' && value) {
|
|
573
|
+
website = value;
|
|
574
|
+
i++;
|
|
575
|
+
}
|
|
576
|
+
else if (flag === '--telegram' && value) {
|
|
577
|
+
telegram = value;
|
|
578
|
+
i++;
|
|
579
|
+
}
|
|
580
|
+
else if (flag === '--initial' && value) {
|
|
581
|
+
initialBuyLamports = Math.floor(parseFloat(value) * 1e9);
|
|
582
|
+
i++;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
try {
|
|
586
|
+
const { loadSolanaKeypair, getSolanaConnection } = await Promise.resolve().then(() => __importStar(require('../../../solana/wallet')));
|
|
587
|
+
const keypair = loadSolanaKeypair();
|
|
588
|
+
const walletAddress = keypair.publicKey.toBase58();
|
|
589
|
+
// Step 1: Create token info and metadata (multipart/form-data)
|
|
590
|
+
const formData = new FormData();
|
|
591
|
+
formData.append('name', name);
|
|
592
|
+
formData.append('symbol', symbol);
|
|
593
|
+
formData.append('description', description);
|
|
594
|
+
if (twitter)
|
|
595
|
+
formData.append('twitter', twitter);
|
|
596
|
+
if (website)
|
|
597
|
+
formData.append('website', website);
|
|
598
|
+
if (telegram)
|
|
599
|
+
formData.append('telegram', telegram);
|
|
600
|
+
if (imageUrl)
|
|
601
|
+
formData.append('imageUrl', imageUrl);
|
|
602
|
+
const apiKey = getApiKey();
|
|
603
|
+
if (!apiKey)
|
|
604
|
+
throw new Error('BAGS_API_KEY not configured');
|
|
605
|
+
const tokenInfoRes = await fetch(`${BAGS_API_BASE}/token-launch/create-token-info`, {
|
|
606
|
+
method: 'POST',
|
|
607
|
+
headers: { 'x-api-key': apiKey },
|
|
608
|
+
body: formData,
|
|
609
|
+
});
|
|
610
|
+
if (!tokenInfoRes.ok) {
|
|
611
|
+
const err = await tokenInfoRes.text();
|
|
612
|
+
throw new Error(`Token info creation failed: ${tokenInfoRes.status} - ${err}`);
|
|
613
|
+
}
|
|
614
|
+
const tokenInfoJson = await tokenInfoRes.json();
|
|
615
|
+
if (!tokenInfoJson.success)
|
|
616
|
+
throw new Error(`Token info error: ${tokenInfoJson.error}`);
|
|
617
|
+
const tokenInfo = tokenInfoJson.response;
|
|
618
|
+
// Step 2: Create fee share config (100% to creator by default)
|
|
619
|
+
const feeConfig = await bagsRequest('/token-launch/fee-share/create-config', {
|
|
620
|
+
method: 'POST',
|
|
621
|
+
body: JSON.stringify({
|
|
622
|
+
payer: walletAddress,
|
|
623
|
+
baseMint: tokenInfo.tokenMint,
|
|
624
|
+
feeClaimers: [{ user: walletAddress, userBps: 10000 }],
|
|
625
|
+
}),
|
|
626
|
+
});
|
|
627
|
+
// Sign and send fee config transactions (Base58 encoded)
|
|
628
|
+
const connection = getSolanaConnection();
|
|
629
|
+
const { VersionedTransaction, Transaction } = await Promise.resolve().then(() => __importStar(require('@solana/web3.js')));
|
|
630
|
+
const { bs58 } = await Promise.resolve().then(() => __importStar(require('@coral-xyz/anchor/dist/cjs/utils/bytes')));
|
|
631
|
+
for (const txStr of feeConfig.transactions) {
|
|
632
|
+
const txBuffer = bs58.decode(txStr);
|
|
633
|
+
try {
|
|
634
|
+
const tx = VersionedTransaction.deserialize(txBuffer);
|
|
635
|
+
tx.sign([keypair]);
|
|
636
|
+
const sig = await connection.sendRawTransaction(tx.serialize());
|
|
637
|
+
await connection.confirmTransaction(sig, 'confirmed');
|
|
638
|
+
}
|
|
639
|
+
catch {
|
|
640
|
+
const tx = Transaction.from(txBuffer);
|
|
641
|
+
tx.sign(keypair);
|
|
642
|
+
const sig = await connection.sendRawTransaction(tx.serialize());
|
|
643
|
+
await connection.confirmTransaction(sig, 'confirmed');
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
// Step 3: Create launch transaction (correct field names: ipfs, wallet)
|
|
647
|
+
const launchTxStr = await bagsRequest('/token-launch/create-launch-transaction', {
|
|
648
|
+
method: 'POST',
|
|
649
|
+
body: JSON.stringify({
|
|
650
|
+
ipfs: tokenInfo.tokenMetadata,
|
|
651
|
+
tokenMint: tokenInfo.tokenMint,
|
|
652
|
+
wallet: walletAddress,
|
|
653
|
+
initialBuyLamports,
|
|
654
|
+
configKey: feeConfig.configKey,
|
|
655
|
+
}),
|
|
656
|
+
});
|
|
657
|
+
// Sign and send launch transaction (Base58 encoded)
|
|
658
|
+
const launchTxBuffer = bs58.decode(launchTxStr);
|
|
659
|
+
let signature;
|
|
660
|
+
try {
|
|
661
|
+
const tx = VersionedTransaction.deserialize(launchTxBuffer);
|
|
662
|
+
tx.sign([keypair]);
|
|
663
|
+
signature = await connection.sendRawTransaction(tx.serialize());
|
|
664
|
+
}
|
|
665
|
+
catch {
|
|
666
|
+
const tx = Transaction.from(launchTxBuffer);
|
|
667
|
+
tx.sign(keypair);
|
|
668
|
+
signature = await connection.sendRawTransaction(tx.serialize());
|
|
669
|
+
}
|
|
670
|
+
await connection.confirmTransaction(signature, 'confirmed');
|
|
671
|
+
return `**Token Launched Successfully!**\n\n` +
|
|
672
|
+
`Name: ${name}\n` +
|
|
673
|
+
`Symbol: ${symbol}\n` +
|
|
674
|
+
`Mint: \`${tokenInfo.tokenMint}\`\n` +
|
|
675
|
+
`Metadata: ${tokenInfo.tokenMetadata}\n` +
|
|
676
|
+
`TX: \`${signature}\`\n\n` +
|
|
677
|
+
`Your token is now live on Bags.fm! You earn 1% of all trading volume.`;
|
|
678
|
+
}
|
|
679
|
+
catch (error) {
|
|
680
|
+
return `Launch failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
async function handleLaunchInfo() {
|
|
684
|
+
return `**Bags.fm Token Launch**
|
|
685
|
+
|
|
686
|
+
**Requirements:**
|
|
687
|
+
- BAGS_API_KEY from dev.bags.fm
|
|
688
|
+
- SOLANA_PRIVATE_KEY for signing
|
|
689
|
+
- SOL for transaction fees (~0.05 SOL)
|
|
690
|
+
|
|
691
|
+
**Features:**
|
|
692
|
+
- 1% creator fee on all trades
|
|
693
|
+
- Up to 100 fee claimers per token
|
|
694
|
+
- Automatic Meteora DAMM pool creation
|
|
695
|
+
- Social links (Twitter, Telegram, Website)
|
|
696
|
+
|
|
697
|
+
**Fee Distribution:**
|
|
698
|
+
- Default: 100% to creator
|
|
699
|
+
- Custom: Split between up to 100 wallets
|
|
700
|
+
- Claim fees anytime with /bags claim
|
|
701
|
+
|
|
702
|
+
**Launch Steps:**
|
|
703
|
+
1. /bags launch <name> <symbol> <desc> [options]
|
|
704
|
+
2. Token is created with metadata on IPFS
|
|
705
|
+
3. Fee share config is set up
|
|
706
|
+
4. Token launches on Meteora pool
|
|
707
|
+
5. Trading starts immediately
|
|
708
|
+
|
|
709
|
+
**Cost:** ~0.05 SOL (Solana transaction fees only)`;
|
|
710
|
+
}
|
|
711
|
+
// ============================================================================
|
|
712
|
+
// Fee Share Config Handlers
|
|
713
|
+
// ============================================================================
|
|
714
|
+
async function handleFeeConfig(args) {
|
|
715
|
+
if (args.length < 2) {
|
|
716
|
+
return `Usage: /bags fee-config <mint> <claimer1:bps> [claimer2:bps ...]
|
|
717
|
+
|
|
718
|
+
BPS (basis points) must sum to 10000 (100%)
|
|
719
|
+
|
|
720
|
+
Examples:
|
|
721
|
+
/bags fee-config <mint> wallet1:5000 wallet2:5000 # 50/50 split
|
|
722
|
+
/bags fee-config <mint> wallet1:7000 wallet2:3000 # 70/30 split
|
|
723
|
+
/bags fee-config <mint> wallet1:10000 # 100% to one wallet`;
|
|
724
|
+
}
|
|
725
|
+
const mint = args[0];
|
|
726
|
+
const claimerArgs = args.slice(1);
|
|
727
|
+
const feeClaimers = [];
|
|
728
|
+
let totalBps = 0;
|
|
729
|
+
for (const arg of claimerArgs) {
|
|
730
|
+
const [wallet, bpsStr] = arg.split(':');
|
|
731
|
+
if (!wallet || !bpsStr) {
|
|
732
|
+
return `Invalid claimer format: ${arg}. Use wallet:bps format.`;
|
|
733
|
+
}
|
|
734
|
+
const bps = parseInt(bpsStr);
|
|
735
|
+
if (isNaN(bps) || bps < 0 || bps > 10000) {
|
|
736
|
+
return `Invalid BPS value: ${bpsStr}. Must be 0-10000.`;
|
|
737
|
+
}
|
|
738
|
+
feeClaimers.push({ user: wallet, userBps: bps });
|
|
739
|
+
totalBps += bps;
|
|
740
|
+
}
|
|
741
|
+
if (totalBps !== 10000) {
|
|
742
|
+
return `BPS must sum to 10000. Current total: ${totalBps}`;
|
|
743
|
+
}
|
|
744
|
+
try {
|
|
745
|
+
const { loadSolanaKeypair, getSolanaConnection } = await Promise.resolve().then(() => __importStar(require('../../../solana/wallet')));
|
|
746
|
+
const keypair = loadSolanaKeypair();
|
|
747
|
+
const walletAddress = keypair.publicKey.toBase58();
|
|
748
|
+
const result = await bagsRequest('/token-launch/fee-share/create-config', {
|
|
749
|
+
method: 'POST',
|
|
750
|
+
body: JSON.stringify({
|
|
751
|
+
payer: walletAddress,
|
|
752
|
+
baseMint: mint,
|
|
753
|
+
feeClaimers,
|
|
754
|
+
}),
|
|
755
|
+
});
|
|
756
|
+
// Sign and send transactions (Base58 encoded)
|
|
757
|
+
const connection = getSolanaConnection();
|
|
758
|
+
const { VersionedTransaction, Transaction } = await Promise.resolve().then(() => __importStar(require('@solana/web3.js')));
|
|
759
|
+
const { bs58 } = await Promise.resolve().then(() => __importStar(require('@coral-xyz/anchor/dist/cjs/utils/bytes')));
|
|
760
|
+
const signatures = [];
|
|
761
|
+
for (const txStr of result.transactions) {
|
|
762
|
+
const txBuffer = bs58.decode(txStr);
|
|
763
|
+
try {
|
|
764
|
+
const tx = VersionedTransaction.deserialize(txBuffer);
|
|
765
|
+
tx.sign([keypair]);
|
|
766
|
+
const sig = await connection.sendRawTransaction(tx.serialize());
|
|
767
|
+
await connection.confirmTransaction(sig, 'confirmed');
|
|
768
|
+
signatures.push(sig);
|
|
769
|
+
}
|
|
770
|
+
catch {
|
|
771
|
+
const tx = Transaction.from(txBuffer);
|
|
772
|
+
tx.sign(keypair);
|
|
773
|
+
const sig = await connection.sendRawTransaction(tx.serialize());
|
|
774
|
+
await connection.confirmTransaction(sig, 'confirmed');
|
|
775
|
+
signatures.push(sig);
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
let output = `**Fee Share Config Created**\n\n`;
|
|
779
|
+
output += `Mint: \`${mint.slice(0, 20)}...\`\n`;
|
|
780
|
+
output += `Config Key: \`${result.configKey}\`\n\n`;
|
|
781
|
+
output += `**Fee Distribution:**\n`;
|
|
782
|
+
for (const claimer of feeClaimers) {
|
|
783
|
+
output += ` ${claimer.user.slice(0, 12)}... - ${(claimer.userBps / 100).toFixed(1)}%\n`;
|
|
784
|
+
}
|
|
785
|
+
output += `\nTransactions: ${signatures.length}`;
|
|
786
|
+
return output;
|
|
787
|
+
}
|
|
788
|
+
catch (error) {
|
|
789
|
+
return `Config creation failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
// ============================================================================
|
|
793
|
+
// Wallet Lookup Handlers
|
|
794
|
+
// ============================================================================
|
|
795
|
+
async function handleWalletLookup(args) {
|
|
796
|
+
if (args.length < 2) {
|
|
797
|
+
return `Usage: /bags wallet <provider> <username>
|
|
798
|
+
|
|
799
|
+
Providers: twitter, github, kick, tiktok, instagram, onlyfans, solana
|
|
800
|
+
|
|
801
|
+
Examples:
|
|
802
|
+
/bags wallet twitter elonmusk
|
|
803
|
+
/bags wallet github vbuterin`;
|
|
804
|
+
}
|
|
805
|
+
const provider = args[0].toLowerCase();
|
|
806
|
+
const username = args[1];
|
|
807
|
+
const validProviders = ['twitter', 'github', 'kick', 'tiktok', 'instagram', 'onlyfans', 'solana', 'apple', 'google', 'email', 'moltbook'];
|
|
808
|
+
if (!validProviders.includes(provider)) {
|
|
809
|
+
return `Invalid provider: ${provider}. Use: ${validProviders.join(', ')}`;
|
|
810
|
+
}
|
|
811
|
+
try {
|
|
812
|
+
const result = await bagsRequest(`/token-launch/fee-share/wallet/v2?provider=${provider}&username=${username}`);
|
|
813
|
+
return `**Wallet Lookup**\n\n` +
|
|
814
|
+
`Provider: ${result.provider}\n` +
|
|
815
|
+
`Username: @${result.platformData.username}\n` +
|
|
816
|
+
(result.platformData.display_name ? `Display Name: ${result.platformData.display_name}\n` : '') +
|
|
817
|
+
`Wallet: \`${result.wallet}\``;
|
|
818
|
+
}
|
|
819
|
+
catch (error) {
|
|
820
|
+
return `Lookup failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
async function handleBulkWalletLookup(args) {
|
|
824
|
+
if (args.length < 2) {
|
|
825
|
+
return `Usage: /bags wallets <provider> <user1,user2,user3,...>
|
|
826
|
+
|
|
827
|
+
Example:
|
|
828
|
+
/bags wallets twitter user1,user2,user3`;
|
|
829
|
+
}
|
|
830
|
+
const provider = args[0].toLowerCase();
|
|
831
|
+
const usernames = args[1].split(',').map(u => u.trim());
|
|
832
|
+
const validProviders = ['twitter', 'github', 'kick', 'tiktok', 'instagram', 'onlyfans', 'solana', 'apple', 'google', 'email', 'moltbook'];
|
|
833
|
+
if (!validProviders.includes(provider)) {
|
|
834
|
+
return `Invalid provider: ${provider}. Use: ${validProviders.join(', ')}`;
|
|
835
|
+
}
|
|
836
|
+
try {
|
|
837
|
+
// Bulk endpoint expects items array with per-item provider
|
|
838
|
+
const items = usernames.map(username => ({ username, provider }));
|
|
839
|
+
const result = await bagsRequest('/token-launch/fee-share/wallet/v2/bulk', {
|
|
840
|
+
method: 'POST',
|
|
841
|
+
body: JSON.stringify({ items }),
|
|
842
|
+
});
|
|
843
|
+
let output = `**Bulk Wallet Lookup** (${provider})\n\n`;
|
|
844
|
+
for (const entry of result) {
|
|
845
|
+
output += `@${entry.username}: ${entry.wallet ? `\`${entry.wallet}\`` : 'Not found'}\n`;
|
|
846
|
+
}
|
|
847
|
+
return output;
|
|
848
|
+
}
|
|
849
|
+
catch (error) {
|
|
850
|
+
return `Lookup failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
// ============================================================================
|
|
854
|
+
// Partner System Handlers
|
|
855
|
+
// ============================================================================
|
|
856
|
+
async function handlePartnerConfig(mint) {
|
|
857
|
+
if (!mint) {
|
|
858
|
+
return 'Usage: /bags partner-config <mint>';
|
|
859
|
+
}
|
|
860
|
+
try {
|
|
861
|
+
const { loadSolanaKeypair, getSolanaConnection } = await Promise.resolve().then(() => __importStar(require('../../../solana/wallet')));
|
|
862
|
+
const keypair = loadSolanaKeypair();
|
|
863
|
+
const walletAddress = keypair.publicKey.toBase58();
|
|
864
|
+
const result = await bagsRequest('/token-launch/fee-share/partner/create-config', {
|
|
865
|
+
method: 'POST',
|
|
866
|
+
body: JSON.stringify({
|
|
867
|
+
payer: walletAddress,
|
|
868
|
+
tokenMint: mint,
|
|
869
|
+
}),
|
|
870
|
+
});
|
|
871
|
+
// Sign and send transaction (Base58 encoded)
|
|
872
|
+
const connection = getSolanaConnection();
|
|
873
|
+
const { VersionedTransaction, Transaction } = await Promise.resolve().then(() => __importStar(require('@solana/web3.js')));
|
|
874
|
+
const { bs58 } = await Promise.resolve().then(() => __importStar(require('@coral-xyz/anchor/dist/cjs/utils/bytes')));
|
|
875
|
+
const txBuffer = bs58.decode(result.transaction);
|
|
876
|
+
let signature;
|
|
877
|
+
try {
|
|
878
|
+
const tx = VersionedTransaction.deserialize(txBuffer);
|
|
879
|
+
tx.sign([keypair]);
|
|
880
|
+
signature = await connection.sendRawTransaction(tx.serialize());
|
|
881
|
+
}
|
|
882
|
+
catch {
|
|
883
|
+
const tx = Transaction.from(txBuffer);
|
|
884
|
+
tx.sign(keypair);
|
|
885
|
+
signature = await connection.sendRawTransaction(tx.serialize());
|
|
886
|
+
}
|
|
887
|
+
await connection.confirmTransaction(signature, 'confirmed');
|
|
888
|
+
return `**Partner Config Created**\n\n` +
|
|
889
|
+
`Mint: \`${mint.slice(0, 20)}...\`\n` +
|
|
890
|
+
`Partner Key: \`${result.partnerKey}\`\n` +
|
|
891
|
+
`TX: \`${signature}\`\n\n` +
|
|
892
|
+
`Use this partner key when launching tokens to earn referral fees.`;
|
|
893
|
+
}
|
|
894
|
+
catch (error) {
|
|
895
|
+
return `Failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
async function handlePartnerClaim(walletArg) {
|
|
899
|
+
try {
|
|
900
|
+
const { loadSolanaKeypair, getSolanaConnection } = await Promise.resolve().then(() => __importStar(require('../../../solana/wallet')));
|
|
901
|
+
const keypair = loadSolanaKeypair();
|
|
902
|
+
const walletAddress = walletArg || keypair.publicKey.toBase58();
|
|
903
|
+
const claimTxs = await bagsRequest('/token-launch/fee-share/partner/claim', {
|
|
904
|
+
method: 'POST',
|
|
905
|
+
body: JSON.stringify({ wallet: walletAddress }),
|
|
906
|
+
});
|
|
907
|
+
if (!claimTxs.transactions || claimTxs.transactions.length === 0) {
|
|
908
|
+
return 'No partner fees to claim.';
|
|
909
|
+
}
|
|
910
|
+
const connection = getSolanaConnection();
|
|
911
|
+
const { VersionedTransaction, Transaction } = await Promise.resolve().then(() => __importStar(require('@solana/web3.js')));
|
|
912
|
+
const { bs58 } = await Promise.resolve().then(() => __importStar(require('@coral-xyz/anchor/dist/cjs/utils/bytes')));
|
|
913
|
+
const signatures = [];
|
|
914
|
+
for (const txStr of claimTxs.transactions) {
|
|
915
|
+
const txBuffer = bs58.decode(txStr);
|
|
916
|
+
try {
|
|
917
|
+
const tx = VersionedTransaction.deserialize(txBuffer);
|
|
918
|
+
tx.sign([keypair]);
|
|
919
|
+
const sig = await connection.sendRawTransaction(tx.serialize());
|
|
920
|
+
await connection.confirmTransaction(sig, 'confirmed');
|
|
921
|
+
signatures.push(sig);
|
|
922
|
+
}
|
|
923
|
+
catch {
|
|
924
|
+
const tx = Transaction.from(txBuffer);
|
|
925
|
+
tx.sign(keypair);
|
|
926
|
+
const sig = await connection.sendRawTransaction(tx.serialize());
|
|
927
|
+
await connection.confirmTransaction(sig, 'confirmed');
|
|
928
|
+
signatures.push(sig);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
return `**Partner Fees Claimed**\n\n` +
|
|
932
|
+
`Transactions: ${signatures.length}\n` +
|
|
933
|
+
signatures.map(s => `- \`${s.slice(0, 24)}...\``).join('\n');
|
|
934
|
+
}
|
|
935
|
+
catch (error) {
|
|
936
|
+
return `Claim failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
async function handlePartnerStats(partnerKey) {
|
|
940
|
+
if (!partnerKey) {
|
|
941
|
+
return 'Usage: /bags partner-stats <partner-key>';
|
|
942
|
+
}
|
|
943
|
+
try {
|
|
944
|
+
const stats = await bagsRequest(`/token-launch/fee-share/partner/stats?partnerKey=${partnerKey}`);
|
|
945
|
+
let output = `**Partner Stats**\n\n`;
|
|
946
|
+
output += `Partner Key: \`${stats.partnerKey.slice(0, 20)}...\`\n`;
|
|
947
|
+
output += `Total Launches: ${stats.totalLaunches}\n`;
|
|
948
|
+
output += `Total Fees Earned: $${stats.totalFeesEarned.toLocaleString()}\n`;
|
|
949
|
+
output += `Claimable: $${stats.claimableAmount.toFixed(2)}\n\n`;
|
|
950
|
+
if (stats.tokens.length > 0) {
|
|
951
|
+
output += `**Tokens:**\n`;
|
|
952
|
+
for (const token of stats.tokens.slice(0, 10)) {
|
|
953
|
+
output += ` \`${token.mint.slice(0, 12)}...\` - $${token.feesEarned.toFixed(2)}\n`;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
return output;
|
|
957
|
+
}
|
|
958
|
+
catch (error) {
|
|
959
|
+
return `Error: ${error instanceof Error ? error.message : String(error)}`;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
// ============================================================================
|
|
963
|
+
// Main Execute Function
|
|
964
|
+
// ============================================================================
|
|
965
|
+
async function execute(args) {
|
|
966
|
+
const parts = args.trim().split(/\s+/);
|
|
967
|
+
const command = parts[0]?.toLowerCase() || 'help';
|
|
968
|
+
const rest = parts.slice(1);
|
|
969
|
+
switch (command) {
|
|
970
|
+
// Trading
|
|
971
|
+
case 'quote':
|
|
972
|
+
return handleQuote(rest);
|
|
973
|
+
case 'swap':
|
|
974
|
+
return handleSwap(rest);
|
|
975
|
+
// Discovery
|
|
976
|
+
case 'pools':
|
|
977
|
+
return handlePools();
|
|
978
|
+
case 'trending':
|
|
979
|
+
return handleTrending();
|
|
980
|
+
case 'token':
|
|
981
|
+
return handleToken(rest[0]);
|
|
982
|
+
case 'creators':
|
|
983
|
+
return handleCreators(rest[0]);
|
|
984
|
+
case 'lifetime-fees':
|
|
985
|
+
return handleLifetimeFees(rest[0]);
|
|
986
|
+
// Fee Claiming
|
|
987
|
+
case 'fees':
|
|
988
|
+
return handleFees(rest[0]);
|
|
989
|
+
case 'claim':
|
|
990
|
+
return handleClaim(rest[0]);
|
|
991
|
+
case 'claim-events':
|
|
992
|
+
return handleClaimEvents(rest);
|
|
993
|
+
case 'stats':
|
|
994
|
+
return handleStats(rest[0]);
|
|
995
|
+
// Token Launch
|
|
996
|
+
case 'launch':
|
|
997
|
+
return handleLaunch(rest);
|
|
998
|
+
case 'launch-info':
|
|
999
|
+
return handleLaunchInfo();
|
|
1000
|
+
// Fee Share Config
|
|
1001
|
+
case 'fee-config':
|
|
1002
|
+
return handleFeeConfig(rest);
|
|
1003
|
+
// Wallet Lookup
|
|
1004
|
+
case 'wallet':
|
|
1005
|
+
return handleWalletLookup(rest);
|
|
1006
|
+
case 'wallets':
|
|
1007
|
+
return handleBulkWalletLookup(rest);
|
|
1008
|
+
// Partner System
|
|
1009
|
+
case 'partner-config':
|
|
1010
|
+
return handlePartnerConfig(rest[0]);
|
|
1011
|
+
case 'partner-claim':
|
|
1012
|
+
return handlePartnerClaim(rest[0]);
|
|
1013
|
+
case 'partner-stats':
|
|
1014
|
+
return handlePartnerStats(rest[0]);
|
|
1015
|
+
case 'help':
|
|
1016
|
+
default:
|
|
1017
|
+
return `**Bags.fm - Complete Solana Token Launchpad**
|
|
1018
|
+
|
|
1019
|
+
**Trading:**
|
|
1020
|
+
/bags quote <amount> <from> to <to> Get swap quote
|
|
1021
|
+
/bags swap <amount> <from> to <to> Execute swap
|
|
1022
|
+
|
|
1023
|
+
**Discovery:**
|
|
1024
|
+
/bags pools List all pools
|
|
1025
|
+
/bags trending Show trending tokens
|
|
1026
|
+
/bags token <mint> Full token info
|
|
1027
|
+
/bags creators <mint> Get token creators
|
|
1028
|
+
/bags lifetime-fees <mint> Total fees collected
|
|
1029
|
+
|
|
1030
|
+
**Fee Claiming:**
|
|
1031
|
+
/bags fees [wallet] Check claimable fees
|
|
1032
|
+
/bags claim [wallet] Claim all fees
|
|
1033
|
+
/bags claim-events <mint> [--from/--to] Claim history
|
|
1034
|
+
/bags stats <mint> Per-claimer statistics
|
|
1035
|
+
|
|
1036
|
+
**Token Launch:**
|
|
1037
|
+
/bags launch <name> <symbol> <desc> Launch new token
|
|
1038
|
+
/bags launch-info Launch requirements
|
|
1039
|
+
|
|
1040
|
+
**Fee Share Config:**
|
|
1041
|
+
/bags fee-config <mint> <wallet:bps>... Create fee distribution
|
|
1042
|
+
|
|
1043
|
+
**Wallet Lookup:**
|
|
1044
|
+
/bags wallet <provider> <username> Lookup by social
|
|
1045
|
+
/bags wallets <provider> <user1,user2> Bulk lookup
|
|
1046
|
+
|
|
1047
|
+
**Partner System:**
|
|
1048
|
+
/bags partner-config <mint> Create partner key
|
|
1049
|
+
/bags partner-claim [wallet] Claim partner fees
|
|
1050
|
+
/bags partner-stats <key> View partner stats
|
|
1051
|
+
|
|
1052
|
+
**Setup:**
|
|
1053
|
+
export BAGS_API_KEY="your-key" # From dev.bags.fm
|
|
1054
|
+
export SOLANA_PRIVATE_KEY="your-key" # For signing txs
|
|
1055
|
+
|
|
1056
|
+
**Examples:**
|
|
1057
|
+
/bags quote 1 SOL to USDC
|
|
1058
|
+
/bags swap 0.5 SOL to BONK
|
|
1059
|
+
/bags launch "Moon Token" MOON "To the moon!" --twitter moontoken
|
|
1060
|
+
/bags fee-config <mint> wallet1:5000 wallet2:5000`;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
exports.default = {
|
|
1064
|
+
name: 'bags',
|
|
1065
|
+
description: 'Bags.fm - Solana token launchpad and trading platform with creator monetization',
|
|
1066
|
+
commands: ['/bags'],
|
|
1067
|
+
handle: execute,
|
|
1068
|
+
};
|
|
1069
|
+
//# sourceMappingURL=index.js.map
|