recker 1.0.20 → 1.0.21-next.b21cd45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/ai/adaptive-timeout.d.ts +0 -1
- package/dist/ai/client.d.ts +0 -1
- package/dist/ai/client.js +6 -0
- package/dist/ai/index.d.ts +3 -1
- package/dist/ai/index.js +3 -0
- package/dist/ai/providers/anthropic.d.ts +0 -1
- package/dist/ai/providers/base.d.ts +0 -1
- package/dist/ai/providers/google.d.ts +59 -0
- package/dist/ai/providers/google.js +305 -0
- package/dist/ai/providers/index.d.ts +4 -1
- package/dist/ai/providers/index.js +2 -0
- package/dist/ai/providers/ollama.d.ts +44 -0
- package/dist/ai/providers/ollama.js +240 -0
- package/dist/ai/providers/openai.d.ts +0 -1
- package/dist/ai/rate-limiter.d.ts +0 -1
- package/dist/ai/vector/index.d.ts +2 -0
- package/dist/ai/vector/index.js +2 -0
- package/dist/ai/vector/similarity.d.ts +2 -0
- package/dist/ai/vector/similarity.js +27 -0
- package/dist/ai/vector/store.d.ts +27 -0
- package/dist/ai/vector/store.js +82 -0
- package/dist/bare.d.ts +22 -0
- package/dist/bare.js +91 -0
- package/dist/bench/generator.d.ts +0 -1
- package/dist/bench/stats.d.ts +0 -1
- package/dist/cache/basic-file-storage.d.ts +12 -0
- package/dist/cache/basic-file-storage.js +50 -0
- package/dist/cache/file-storage.d.ts +25 -11
- package/dist/cache/file-storage.js +175 -30
- package/dist/cache/memory-limits.d.ts +0 -1
- package/dist/cache/memory-storage.d.ts +0 -1
- package/dist/cache/redis-storage.d.ts +0 -1
- package/dist/cli/handler.d.ts +2 -1
- package/dist/cli/handler.js +36 -5
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/index.js +559 -6
- package/dist/cli/presets.d.ts +0 -1
- package/dist/cli/tui/ai-chat.d.ts +0 -1
- package/dist/cli/tui/load-dashboard.d.ts +0 -1
- package/dist/cli/tui/scroll-buffer.d.ts +0 -1
- package/dist/cli/tui/search-panel.d.ts +0 -1
- package/dist/cli/tui/shell-search.d.ts +0 -1
- package/dist/cli/tui/shell.d.ts +0 -1
- package/dist/cli/tui/shell.js +1 -1
- package/dist/cli/tui/websocket.d.ts +0 -1
- package/dist/constants/http-status.d.ts +0 -1
- package/dist/constants.d.ts +0 -1
- package/dist/contract/index.d.ts +0 -1
- package/dist/cookies/memory-cookie-jar.d.ts +0 -1
- package/dist/core/client.d.ts +2 -1
- package/dist/core/client.js +11 -7
- package/dist/core/errors.d.ts +0 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/request-promise.d.ts +0 -1
- package/dist/core/request.d.ts +0 -1
- package/dist/core/response.d.ts +0 -1
- package/dist/dns/index.d.ts +0 -1
- package/dist/dns/propagation.d.ts +0 -1
- package/dist/events/request-events.d.ts +0 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/dist/mcp/cli.d.ts +2 -0
- package/dist/mcp/cli.js +136 -0
- package/dist/mcp/client.d.ts +0 -1
- package/dist/mcp/contract.d.ts +0 -1
- package/dist/mcp/embeddings-loader.d.ts +0 -1
- package/dist/mcp/geoip-loader.d.ts +0 -1
- package/dist/mcp/index.d.ts +0 -1
- package/dist/mcp/ip-intel.d.ts +0 -1
- package/dist/mcp/search/hybrid-search.d.ts +0 -1
- package/dist/mcp/search/index.d.ts +0 -1
- package/dist/mcp/search/math.d.ts +0 -1
- package/dist/mcp/search/types.d.ts +0 -1
- package/dist/mcp/server.d.ts +6 -2
- package/dist/mcp/server.js +193 -151
- package/dist/mcp/tools/loader.d.ts +2 -0
- package/dist/mcp/tools/loader.js +41 -0
- package/dist/mcp/tools/network.d.ts +3 -0
- package/dist/mcp/tools/network.js +267 -0
- package/dist/mcp/tools/registry.d.ts +17 -0
- package/dist/mcp/tools/registry.js +37 -0
- package/dist/mcp/types.d.ts +0 -1
- package/dist/plugins/auth/api-key.d.ts +8 -0
- package/dist/plugins/auth/api-key.js +27 -0
- package/dist/plugins/auth/auth0.d.ts +33 -0
- package/dist/plugins/auth/auth0.js +94 -0
- package/dist/plugins/auth/aws-sigv4.d.ts +10 -0
- package/dist/plugins/auth/aws-sigv4.js +88 -0
- package/dist/plugins/auth/azure-ad.d.ts +48 -0
- package/dist/plugins/auth/azure-ad.js +152 -0
- package/dist/plugins/auth/basic.d.ts +7 -0
- package/dist/plugins/auth/basic.js +13 -0
- package/dist/plugins/auth/bearer.d.ts +8 -0
- package/dist/plugins/auth/bearer.js +17 -0
- package/dist/plugins/auth/cognito.d.ts +45 -0
- package/dist/plugins/auth/cognito.js +208 -0
- package/dist/plugins/auth/digest.d.ts +8 -0
- package/dist/plugins/auth/digest.js +100 -0
- package/dist/plugins/auth/firebase.d.ts +32 -0
- package/dist/plugins/auth/firebase.js +195 -0
- package/dist/plugins/auth/github-app.d.ts +36 -0
- package/dist/plugins/auth/github-app.js +170 -0
- package/dist/plugins/auth/google-service-account.d.ts +49 -0
- package/dist/plugins/auth/google-service-account.js +172 -0
- package/dist/plugins/auth/index.d.ts +15 -0
- package/dist/plugins/auth/index.js +15 -0
- package/dist/plugins/auth/mtls.d.ts +37 -0
- package/dist/plugins/auth/mtls.js +140 -0
- package/dist/plugins/auth/oauth2.d.ts +8 -0
- package/dist/plugins/auth/oauth2.js +26 -0
- package/dist/plugins/auth/oidc.d.ts +55 -0
- package/dist/plugins/auth/oidc.js +222 -0
- package/dist/plugins/auth/okta.d.ts +47 -0
- package/dist/plugins/auth/okta.js +157 -0
- package/dist/plugins/auth.d.ts +1 -45
- package/dist/plugins/auth.js +1 -268
- package/dist/plugins/cache.d.ts +1 -2
- package/dist/plugins/cache.js +2 -2
- package/dist/plugins/certificate-pinning.d.ts +59 -0
- package/dist/plugins/certificate-pinning.js +236 -0
- package/dist/plugins/circuit-breaker.d.ts +1 -2
- package/dist/plugins/circuit-breaker.js +1 -1
- package/dist/plugins/compression.d.ts +0 -1
- package/dist/plugins/cookie-jar.d.ts +1 -2
- package/dist/plugins/cookie-jar.js +1 -1
- package/dist/plugins/dedup.d.ts +1 -2
- package/dist/plugins/dedup.js +1 -1
- package/dist/plugins/graphql.d.ts +0 -1
- package/dist/plugins/grpc-web.d.ts +0 -1
- package/dist/plugins/har-player.d.ts +1 -2
- package/dist/plugins/har-player.js +1 -1
- package/dist/plugins/har-recorder.d.ts +1 -2
- package/dist/plugins/har-recorder.js +1 -1
- package/dist/plugins/hls.d.ts +90 -18
- package/dist/plugins/hls.js +343 -173
- package/dist/plugins/http2-push.d.ts +0 -1
- package/dist/plugins/http3.d.ts +0 -1
- package/dist/plugins/index.d.ts +27 -0
- package/dist/plugins/index.js +27 -0
- package/dist/plugins/interface-rotator.d.ts +1 -2
- package/dist/plugins/interface-rotator.js +1 -1
- package/dist/plugins/jsonrpc.d.ts +0 -1
- package/dist/plugins/logger.d.ts +1 -2
- package/dist/plugins/logger.js +1 -1
- package/dist/plugins/odata.d.ts +0 -1
- package/dist/plugins/pagination.d.ts +0 -1
- package/dist/plugins/proxy-rotator.d.ts +1 -2
- package/dist/plugins/proxy-rotator.js +1 -1
- package/dist/plugins/rate-limit.d.ts +15 -0
- package/dist/plugins/rate-limit.js +162 -0
- package/dist/plugins/retry.d.ts +1 -2
- package/dist/plugins/retry.js +3 -3
- package/dist/plugins/scrape.d.ts +0 -1
- package/dist/plugins/server-timing.d.ts +1 -2
- package/dist/plugins/server-timing.js +1 -1
- package/dist/plugins/soap.d.ts +0 -1
- package/dist/plugins/user-agent.d.ts +1 -2
- package/dist/plugins/user-agent.js +1 -1
- package/dist/plugins/xml.d.ts +0 -1
- package/dist/plugins/xsrf.d.ts +1 -2
- package/dist/plugins/xsrf.js +3 -3
- package/dist/presets/anthropic.d.ts +0 -1
- package/dist/presets/aws.d.ts +0 -1
- package/dist/presets/azure-openai.d.ts +0 -1
- package/dist/presets/azure.d.ts +0 -1
- package/dist/presets/cloudflare.d.ts +0 -1
- package/dist/presets/cohere.d.ts +0 -1
- package/dist/presets/deepseek.d.ts +0 -1
- package/dist/presets/digitalocean.d.ts +0 -1
- package/dist/presets/discord.d.ts +0 -1
- package/dist/presets/fireworks.d.ts +0 -1
- package/dist/presets/gcp.d.ts +0 -1
- package/dist/presets/gemini.d.ts +0 -1
- package/dist/presets/github.d.ts +0 -1
- package/dist/presets/gitlab.d.ts +0 -1
- package/dist/presets/groq.d.ts +0 -1
- package/dist/presets/huggingface.d.ts +0 -1
- package/dist/presets/index.d.ts +0 -1
- package/dist/presets/linear.d.ts +0 -1
- package/dist/presets/mailgun.d.ts +0 -1
- package/dist/presets/meta.d.ts +0 -1
- package/dist/presets/mistral.d.ts +0 -1
- package/dist/presets/notion.d.ts +0 -1
- package/dist/presets/openai.d.ts +0 -1
- package/dist/presets/oracle.d.ts +0 -1
- package/dist/presets/perplexity.d.ts +0 -1
- package/dist/presets/registry.d.ts +0 -1
- package/dist/presets/replicate.d.ts +0 -1
- package/dist/presets/sinch.d.ts +0 -1
- package/dist/presets/slack.d.ts +0 -1
- package/dist/presets/stripe.d.ts +0 -1
- package/dist/presets/supabase.d.ts +0 -1
- package/dist/presets/tiktok.d.ts +0 -1
- package/dist/presets/together.d.ts +0 -1
- package/dist/presets/twilio.d.ts +0 -1
- package/dist/presets/vercel.d.ts +0 -1
- package/dist/presets/vultr.d.ts +0 -1
- package/dist/presets/xai.d.ts +0 -1
- package/dist/presets/youtube.d.ts +0 -1
- package/dist/protocols/ftp.d.ts +0 -1
- package/dist/protocols/index.d.ts +0 -1
- package/dist/protocols/sftp.d.ts +0 -1
- package/dist/protocols/telnet.d.ts +0 -1
- package/dist/recker.d.ts +0 -1
- package/dist/runner/request-runner.d.ts +0 -1
- package/dist/scrape/document.d.ts +0 -1
- package/dist/scrape/element.d.ts +0 -1
- package/dist/scrape/extractors.d.ts +0 -1
- package/dist/scrape/index.d.ts +0 -1
- package/dist/scrape/types.d.ts +0 -1
- package/dist/testing/index.d.ts +16 -1
- package/dist/testing/index.js +8 -0
- package/dist/testing/mock-dns-server.d.ts +69 -0
- package/dist/testing/mock-dns-server.js +269 -0
- package/dist/testing/mock-ftp-server.d.ts +89 -0
- package/dist/testing/mock-ftp-server.js +562 -0
- package/dist/testing/mock-hls-server.d.ts +80 -0
- package/dist/testing/mock-hls-server.js +381 -0
- package/dist/testing/mock-http-server.d.ts +99 -0
- package/dist/testing/mock-http-server.js +298 -0
- package/dist/testing/mock-sse-server.d.ts +76 -0
- package/dist/testing/mock-sse-server.js +291 -0
- package/dist/testing/mock-telnet-server.d.ts +59 -0
- package/dist/testing/mock-telnet-server.js +273 -0
- package/dist/testing/mock-udp-server.d.ts +0 -1
- package/dist/testing/mock-websocket-server.d.ts +77 -0
- package/dist/testing/mock-websocket-server.js +316 -0
- package/dist/testing/mock-whois-server.d.ts +56 -0
- package/dist/testing/mock-whois-server.js +234 -0
- package/dist/testing/mock.d.ts +0 -1
- package/dist/transport/base-udp.d.ts +0 -1
- package/dist/transport/fetch.d.ts +0 -1
- package/dist/transport/udp-response.d.ts +0 -1
- package/dist/transport/udp.d.ts +0 -1
- package/dist/transport/undici.d.ts +0 -1
- package/dist/transport/undici.js +1 -1
- package/dist/types/ai.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/logger.d.ts +0 -1
- package/dist/types/udp.d.ts +0 -1
- package/dist/udp/index.d.ts +0 -1
- package/dist/utils/agent-manager.d.ts +0 -1
- package/dist/utils/body.d.ts +0 -1
- package/dist/utils/cert.d.ts +0 -1
- package/dist/utils/charset.d.ts +0 -1
- package/dist/utils/chart.d.ts +0 -1
- package/dist/utils/client-pool.d.ts +0 -1
- package/dist/utils/colors.d.ts +0 -1
- package/dist/utils/concurrency.d.ts +0 -1
- package/dist/utils/dns-toolkit.d.ts +0 -1
- package/dist/utils/dns-toolkit.js +1 -1
- package/dist/utils/dns.d.ts +0 -1
- package/dist/utils/dns.js +2 -2
- package/dist/utils/doh.d.ts +0 -1
- package/dist/utils/download.d.ts +0 -1
- package/dist/utils/env-proxy.d.ts +0 -1
- package/dist/utils/header-parser.d.ts +0 -1
- package/dist/utils/html-cleaner.d.ts +0 -1
- package/dist/utils/link-header.d.ts +0 -1
- package/dist/utils/optional-require.d.ts +0 -1
- package/dist/utils/optional-require.js +1 -1
- package/dist/utils/progress.d.ts +0 -1
- package/dist/utils/rdap.d.ts +0 -1
- package/dist/utils/request-pool.d.ts +0 -1
- package/dist/utils/security-grader.d.ts +0 -1
- package/dist/utils/sparkline.d.ts +0 -1
- package/dist/utils/sse.d.ts +0 -1
- package/dist/utils/streaming.d.ts +0 -1
- package/dist/utils/system-metrics.d.ts +0 -1
- package/dist/utils/tls-inspector.d.ts +0 -1
- package/dist/utils/try-fn.d.ts +0 -1
- package/dist/utils/upload.d.ts +0 -1
- package/dist/utils/user-agent.d.ts +0 -1
- package/dist/utils/whois.d.ts +0 -1
- package/dist/webrtc/index.d.ts +0 -1
- package/dist/webrtc/index.js +1 -1
- package/dist/websocket/client.d.ts +0 -1
- package/package.json +35 -3
- package/dist/ai/adaptive-timeout.d.ts.map +0 -1
- package/dist/ai/client.d.ts.map +0 -1
- package/dist/ai/index.d.ts.map +0 -1
- package/dist/ai/providers/anthropic.d.ts.map +0 -1
- package/dist/ai/providers/base.d.ts.map +0 -1
- package/dist/ai/providers/index.d.ts.map +0 -1
- package/dist/ai/providers/openai.d.ts.map +0 -1
- package/dist/ai/rate-limiter.d.ts.map +0 -1
- package/dist/bench/generator.d.ts.map +0 -1
- package/dist/bench/stats.d.ts.map +0 -1
- package/dist/cache/file-storage.d.ts.map +0 -1
- package/dist/cache/memory-limits.d.ts.map +0 -1
- package/dist/cache/memory-storage.d.ts.map +0 -1
- package/dist/cache/redis-storage.d.ts.map +0 -1
- package/dist/cli/handler.d.ts.map +0 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/presets.d.ts.map +0 -1
- package/dist/cli/tui/ai-chat.d.ts.map +0 -1
- package/dist/cli/tui/load-dashboard.d.ts.map +0 -1
- package/dist/cli/tui/scroll-buffer.d.ts.map +0 -1
- package/dist/cli/tui/search-panel.d.ts.map +0 -1
- package/dist/cli/tui/shell-search.d.ts.map +0 -1
- package/dist/cli/tui/shell.d.ts.map +0 -1
- package/dist/cli/tui/websocket.d.ts.map +0 -1
- package/dist/constants/http-status.d.ts.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/contract/index.d.ts.map +0 -1
- package/dist/cookies/memory-cookie-jar.d.ts.map +0 -1
- package/dist/core/client.d.ts.map +0 -1
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/request-promise.d.ts.map +0 -1
- package/dist/core/request.d.ts.map +0 -1
- package/dist/core/response.d.ts.map +0 -1
- package/dist/dns/index.d.ts.map +0 -1
- package/dist/dns/propagation.d.ts.map +0 -1
- package/dist/events/request-events.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/mcp/client.d.ts.map +0 -1
- package/dist/mcp/contract.d.ts.map +0 -1
- package/dist/mcp/embeddings-loader.d.ts.map +0 -1
- package/dist/mcp/geoip-loader.d.ts.map +0 -1
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/ip-intel.d.ts.map +0 -1
- package/dist/mcp/search/hybrid-search.d.ts.map +0 -1
- package/dist/mcp/search/index.d.ts.map +0 -1
- package/dist/mcp/search/math.d.ts.map +0 -1
- package/dist/mcp/search/types.d.ts.map +0 -1
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/types.d.ts.map +0 -1
- package/dist/plugins/auth.d.ts.map +0 -1
- package/dist/plugins/cache.d.ts.map +0 -1
- package/dist/plugins/circuit-breaker.d.ts.map +0 -1
- package/dist/plugins/compression.d.ts.map +0 -1
- package/dist/plugins/cookie-jar.d.ts.map +0 -1
- package/dist/plugins/dedup.d.ts.map +0 -1
- package/dist/plugins/graphql.d.ts.map +0 -1
- package/dist/plugins/grpc-web.d.ts.map +0 -1
- package/dist/plugins/har-player.d.ts.map +0 -1
- package/dist/plugins/har-recorder.d.ts.map +0 -1
- package/dist/plugins/hls.d.ts.map +0 -1
- package/dist/plugins/http2-push.d.ts.map +0 -1
- package/dist/plugins/http3.d.ts.map +0 -1
- package/dist/plugins/interface-rotator.d.ts.map +0 -1
- package/dist/plugins/jsonrpc.d.ts.map +0 -1
- package/dist/plugins/logger.d.ts.map +0 -1
- package/dist/plugins/odata.d.ts.map +0 -1
- package/dist/plugins/pagination.d.ts.map +0 -1
- package/dist/plugins/proxy-rotator.d.ts.map +0 -1
- package/dist/plugins/retry.d.ts.map +0 -1
- package/dist/plugins/scrape.d.ts.map +0 -1
- package/dist/plugins/server-timing.d.ts.map +0 -1
- package/dist/plugins/soap.d.ts.map +0 -1
- package/dist/plugins/user-agent.d.ts.map +0 -1
- package/dist/plugins/xml.d.ts.map +0 -1
- package/dist/plugins/xsrf.d.ts.map +0 -1
- package/dist/presets/anthropic.d.ts.map +0 -1
- package/dist/presets/aws.d.ts.map +0 -1
- package/dist/presets/azure-openai.d.ts.map +0 -1
- package/dist/presets/azure.d.ts.map +0 -1
- package/dist/presets/cloudflare.d.ts.map +0 -1
- package/dist/presets/cohere.d.ts.map +0 -1
- package/dist/presets/deepseek.d.ts.map +0 -1
- package/dist/presets/digitalocean.d.ts.map +0 -1
- package/dist/presets/discord.d.ts.map +0 -1
- package/dist/presets/fireworks.d.ts.map +0 -1
- package/dist/presets/gcp.d.ts.map +0 -1
- package/dist/presets/gemini.d.ts.map +0 -1
- package/dist/presets/github.d.ts.map +0 -1
- package/dist/presets/gitlab.d.ts.map +0 -1
- package/dist/presets/groq.d.ts.map +0 -1
- package/dist/presets/huggingface.d.ts.map +0 -1
- package/dist/presets/index.d.ts.map +0 -1
- package/dist/presets/linear.d.ts.map +0 -1
- package/dist/presets/mailgun.d.ts.map +0 -1
- package/dist/presets/meta.d.ts.map +0 -1
- package/dist/presets/mistral.d.ts.map +0 -1
- package/dist/presets/notion.d.ts.map +0 -1
- package/dist/presets/openai.d.ts.map +0 -1
- package/dist/presets/oracle.d.ts.map +0 -1
- package/dist/presets/perplexity.d.ts.map +0 -1
- package/dist/presets/registry.d.ts.map +0 -1
- package/dist/presets/replicate.d.ts.map +0 -1
- package/dist/presets/sinch.d.ts.map +0 -1
- package/dist/presets/slack.d.ts.map +0 -1
- package/dist/presets/stripe.d.ts.map +0 -1
- package/dist/presets/supabase.d.ts.map +0 -1
- package/dist/presets/tiktok.d.ts.map +0 -1
- package/dist/presets/together.d.ts.map +0 -1
- package/dist/presets/twilio.d.ts.map +0 -1
- package/dist/presets/vercel.d.ts.map +0 -1
- package/dist/presets/vultr.d.ts.map +0 -1
- package/dist/presets/xai.d.ts.map +0 -1
- package/dist/presets/youtube.d.ts.map +0 -1
- package/dist/protocols/ftp.d.ts.map +0 -1
- package/dist/protocols/index.d.ts.map +0 -1
- package/dist/protocols/sftp.d.ts.map +0 -1
- package/dist/protocols/telnet.d.ts.map +0 -1
- package/dist/recker.d.ts.map +0 -1
- package/dist/runner/request-runner.d.ts.map +0 -1
- package/dist/scrape/document.d.ts.map +0 -1
- package/dist/scrape/element.d.ts.map +0 -1
- package/dist/scrape/extractors.d.ts.map +0 -1
- package/dist/scrape/index.d.ts.map +0 -1
- package/dist/scrape/types.d.ts.map +0 -1
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/mock-udp-server.d.ts.map +0 -1
- package/dist/testing/mock.d.ts.map +0 -1
- package/dist/transport/base-udp.d.ts.map +0 -1
- package/dist/transport/fetch.d.ts.map +0 -1
- package/dist/transport/udp-response.d.ts.map +0 -1
- package/dist/transport/udp.d.ts.map +0 -1
- package/dist/transport/undici.d.ts.map +0 -1
- package/dist/types/ai.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/logger.d.ts.map +0 -1
- package/dist/types/udp.d.ts.map +0 -1
- package/dist/udp/index.d.ts.map +0 -1
- package/dist/utils/agent-manager.d.ts.map +0 -1
- package/dist/utils/body.d.ts.map +0 -1
- package/dist/utils/cert.d.ts.map +0 -1
- package/dist/utils/charset.d.ts.map +0 -1
- package/dist/utils/chart.d.ts.map +0 -1
- package/dist/utils/client-pool.d.ts.map +0 -1
- package/dist/utils/colors.d.ts.map +0 -1
- package/dist/utils/concurrency.d.ts.map +0 -1
- package/dist/utils/dns-toolkit.d.ts.map +0 -1
- package/dist/utils/dns.d.ts.map +0 -1
- package/dist/utils/doh.d.ts.map +0 -1
- package/dist/utils/download.d.ts.map +0 -1
- package/dist/utils/env-proxy.d.ts.map +0 -1
- package/dist/utils/header-parser.d.ts.map +0 -1
- package/dist/utils/html-cleaner.d.ts.map +0 -1
- package/dist/utils/link-header.d.ts.map +0 -1
- package/dist/utils/optional-require.d.ts.map +0 -1
- package/dist/utils/progress.d.ts.map +0 -1
- package/dist/utils/rdap.d.ts.map +0 -1
- package/dist/utils/request-pool.d.ts.map +0 -1
- package/dist/utils/security-grader.d.ts.map +0 -1
- package/dist/utils/sparkline.d.ts.map +0 -1
- package/dist/utils/sse.d.ts.map +0 -1
- package/dist/utils/streaming.d.ts.map +0 -1
- package/dist/utils/system-metrics.d.ts.map +0 -1
- package/dist/utils/tls-inspector.d.ts.map +0 -1
- package/dist/utils/try-fn.d.ts.map +0 -1
- package/dist/utils/upload.d.ts.map +0 -1
- package/dist/utils/user-agent.d.ts.map +0 -1
- package/dist/utils/whois.d.ts.map +0 -1
- package/dist/webrtc/index.d.ts.map +0 -1
- package/dist/websocket/client.d.ts.map +0 -1
package/dist/cli/tui/shell.js
CHANGED
|
@@ -1716,7 +1716,7 @@ ${colors.bold('Network:')}
|
|
|
1716
1716
|
console.log(colors.gray(` Names: ${mapData.names.length}`));
|
|
1717
1717
|
console.log(colors.bold('\nOriginal sources:'));
|
|
1718
1718
|
mapData.sources.forEach((source, i) => {
|
|
1719
|
-
const hasContent = mapData.sourcesContent
|
|
1719
|
+
const hasContent = mapData.sourcesContent?.[i];
|
|
1720
1720
|
const sizeInfo = hasContent
|
|
1721
1721
|
? colors.green(`[${(mapData.sourcesContent[i].length / 1024).toFixed(1)}kb]`)
|
|
1722
1722
|
: colors.yellow('[no content]');
|
|
@@ -71,4 +71,3 @@ export declare function isServerError(status: number): boolean;
|
|
|
71
71
|
export declare function isError(status: number): boolean;
|
|
72
72
|
export declare function isRetryable(status: number): boolean;
|
|
73
73
|
export declare function getStatusText(status: number): string;
|
|
74
|
-
//# sourceMappingURL=http-status.d.ts.map
|
package/dist/constants.d.ts
CHANGED
package/dist/contract/index.d.ts
CHANGED
package/dist/core/client.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { DedupOptions } from '../plugins/dedup.js';
|
|
|
7
7
|
import { ReckerWebSocket, type WebSocketOptions } from '../websocket/client.js';
|
|
8
8
|
import { type WhoisOptions, type WhoisResult } from '../utils/whois.js';
|
|
9
9
|
import { type ScrapePromise } from '../plugins/scrape.js';
|
|
10
|
+
import { HlsPromise, type HlsOptions } from '../plugins/hls.js';
|
|
10
11
|
interface ClientCacheConfig extends Omit<CacheOptions, 'storage'> {
|
|
11
12
|
storage?: CacheStorage;
|
|
12
13
|
driver?: 'memory' | 'file';
|
|
@@ -111,7 +112,7 @@ export declare class Client {
|
|
|
111
112
|
ws(path: string, options?: WebSocketOptions): ReckerWebSocket;
|
|
112
113
|
whois(query: string, options?: WhoisOptions): Promise<WhoisResult>;
|
|
113
114
|
isDomainAvailable(domain: string, options?: WhoisOptions): Promise<boolean>;
|
|
115
|
+
hls(manifestUrl: string, options?: HlsOptions): HlsPromise;
|
|
114
116
|
}
|
|
115
117
|
export declare function createClient(options?: ExtendedClientOptions): Client;
|
|
116
118
|
export {};
|
|
117
|
-
//# sourceMappingURL=client.d.ts.map
|
package/dist/core/client.js
CHANGED
|
@@ -9,19 +9,20 @@ import { RequestPool } from '../utils/request-pool.js';
|
|
|
9
9
|
import { normalizeConcurrency } from '../utils/concurrency.js';
|
|
10
10
|
import { getDefaultUserAgent } from '../utils/user-agent.js';
|
|
11
11
|
import { paginate, streamPages } from '../plugins/pagination.js';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
12
|
+
import { retryPlugin } from '../plugins/retry.js';
|
|
13
|
+
import { cachePlugin } from '../plugins/cache.js';
|
|
14
|
+
import { dedupPlugin } from '../plugins/dedup.js';
|
|
15
15
|
import { createXSRFMiddleware } from '../plugins/xsrf.js';
|
|
16
16
|
import { createCompressionMiddleware } from '../plugins/compression.js';
|
|
17
17
|
import { serializeXML } from '../plugins/xml.js';
|
|
18
18
|
import { MemoryStorage } from '../cache/memory-storage.js';
|
|
19
|
-
import { FileStorage } from '../cache/file-storage.js';
|
|
19
|
+
import { FileStorage } from '../cache/basic-file-storage.js';
|
|
20
20
|
import { RequestRunner } from '../runner/request-runner.js';
|
|
21
21
|
import { ReckerWebSocket } from '../websocket/client.js';
|
|
22
22
|
import { whois as performWhois, isDomainAvailable } from '../utils/whois.js';
|
|
23
23
|
import { MemoryCookieJar } from '../cookies/memory-cookie-jar.js';
|
|
24
24
|
import { scrape as scrapeHelper } from '../plugins/scrape.js';
|
|
25
|
+
import { HlsPromise } from '../plugins/hls.js';
|
|
25
26
|
export class Client {
|
|
26
27
|
baseUrl;
|
|
27
28
|
middlewares;
|
|
@@ -94,7 +95,7 @@ export class Client {
|
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
97
|
if (options.retry) {
|
|
97
|
-
|
|
98
|
+
retryPlugin(options.retry)(this);
|
|
98
99
|
}
|
|
99
100
|
if (this.concurrencyConfig.max < Infinity || this.concurrencyConfig.requestsPerInterval < Infinity) {
|
|
100
101
|
this.requestPool = new RequestPool({
|
|
@@ -113,7 +114,7 @@ export class Client {
|
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
if (options.dedup) {
|
|
116
|
-
|
|
117
|
+
dedupPlugin(options.dedup)(this);
|
|
117
118
|
}
|
|
118
119
|
if (options.cache) {
|
|
119
120
|
let storage;
|
|
@@ -126,7 +127,7 @@ export class Client {
|
|
|
126
127
|
else {
|
|
127
128
|
storage = new MemoryStorage();
|
|
128
129
|
}
|
|
129
|
-
|
|
130
|
+
cachePlugin({
|
|
130
131
|
...options.cache,
|
|
131
132
|
storage
|
|
132
133
|
})(this);
|
|
@@ -657,6 +658,9 @@ export class Client {
|
|
|
657
658
|
async isDomainAvailable(domain, options) {
|
|
658
659
|
return isDomainAvailable(domain, options);
|
|
659
660
|
}
|
|
661
|
+
hls(manifestUrl, options = {}) {
|
|
662
|
+
return new HlsPromise(this, manifestUrl, options);
|
|
663
|
+
}
|
|
660
664
|
}
|
|
661
665
|
export function createClient(options = {}) {
|
|
662
666
|
return new Client(options);
|
package/dist/core/errors.d.ts
CHANGED
package/dist/core/index.d.ts
CHANGED
package/dist/core/request.d.ts
CHANGED
package/dist/core/response.d.ts
CHANGED
package/dist/dns/index.d.ts
CHANGED
|
@@ -18,4 +18,3 @@ export interface PropagationResult {
|
|
|
18
18
|
export declare function getTypeName(typeId: number): string;
|
|
19
19
|
export declare function checkPropagation(domainInput: string, type?: string): Promise<PropagationResult[]>;
|
|
20
20
|
export declare function formatPropagationReport(results: PropagationResult[], domain: string, type: string): string;
|
|
21
|
-
//# sourceMappingURL=propagation.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './core/client.js';
|
|
|
9
9
|
export * from './core/request.js';
|
|
10
10
|
export * from './core/response.js';
|
|
11
11
|
export * from './plugins/retry.js';
|
|
12
|
+
export * from './plugins/rate-limit.js';
|
|
12
13
|
export * from './plugins/cache.js';
|
|
13
14
|
export * from './plugins/dedup.js';
|
|
14
15
|
export * from './plugins/logger.js';
|
|
@@ -64,7 +65,7 @@ export * as testing from './testing/index.js';
|
|
|
64
65
|
export * as protocols from './protocols/index.js';
|
|
65
66
|
export * from './mcp/client.js';
|
|
66
67
|
export * from './mcp/contract.js';
|
|
68
|
+
export * from './bare.js';
|
|
67
69
|
export { Client as Recker } from './core/client.js';
|
|
68
70
|
export { get, post, put, patch, del, del as delete, head, options, whois, whoisAvailable, dns, dnsSecurity, ws, recker, } from './recker.js';
|
|
69
71
|
export { default } from './recker.js';
|
|
70
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from './core/client.js';
|
|
|
9
9
|
export * from './core/request.js';
|
|
10
10
|
export * from './core/response.js';
|
|
11
11
|
export * from './plugins/retry.js';
|
|
12
|
+
export * from './plugins/rate-limit.js';
|
|
12
13
|
export * from './plugins/cache.js';
|
|
13
14
|
export * from './plugins/dedup.js';
|
|
14
15
|
export * from './plugins/logger.js';
|
|
@@ -64,6 +65,7 @@ export * as testing from './testing/index.js';
|
|
|
64
65
|
export * as protocols from './protocols/index.js';
|
|
65
66
|
export * from './mcp/client.js';
|
|
66
67
|
export * from './mcp/contract.js';
|
|
68
|
+
export * from './bare.js';
|
|
67
69
|
export { Client as Recker } from './core/client.js';
|
|
68
70
|
export { get, post, put, patch, del, del as delete, head, options, whois, whoisAvailable, dns, dnsSecurity, ws, recker, } from './recker.js';
|
|
69
71
|
export { default } from './recker.js';
|
package/dist/mcp/cli.js
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { Command } from 'commander';
|
|
3
|
+
import { MCPServer } from './server.js';
|
|
4
|
+
const program = new Command();
|
|
5
|
+
const TOOL_CATEGORIES = {
|
|
6
|
+
docs: [
|
|
7
|
+
'rek_search_docs',
|
|
8
|
+
'rek_get_doc',
|
|
9
|
+
'rek_code_examples',
|
|
10
|
+
'rek_api_schema',
|
|
11
|
+
'rek_suggest',
|
|
12
|
+
],
|
|
13
|
+
http: ['rek_http_request'],
|
|
14
|
+
dns: ['rek_dns_lookup'],
|
|
15
|
+
whois: ['rek_whois_lookup'],
|
|
16
|
+
ping: ['rek_network_ping'],
|
|
17
|
+
ip: ['rek_ip_lookup'],
|
|
18
|
+
network: [
|
|
19
|
+
'rek_http_request',
|
|
20
|
+
'rek_dns_lookup',
|
|
21
|
+
'rek_whois_lookup',
|
|
22
|
+
'rek_network_ping',
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
program
|
|
26
|
+
.name('recker-mcp')
|
|
27
|
+
.description('Start the Recker MCP server for AI agent integration')
|
|
28
|
+
.version('1.0.0')
|
|
29
|
+
.option('-t, --transport <mode>', 'Transport mode: stdio, http, sse', 'stdio')
|
|
30
|
+
.option('-p, --port <number>', 'HTTP/SSE server port', '3100')
|
|
31
|
+
.option('-d, --debug', 'Enable debug logging', false)
|
|
32
|
+
.option('--docs-path <path>', 'Path to documentation directory')
|
|
33
|
+
.option('--examples-path <path>', 'Path to examples directory')
|
|
34
|
+
.option('--src-path <path>', 'Path to source directory')
|
|
35
|
+
.option('--no-docs', 'Disable documentation tools (search, get, examples, schema, suggest)')
|
|
36
|
+
.option('--no-http', 'Disable HTTP request tool')
|
|
37
|
+
.option('--no-dns', 'Disable DNS lookup tool')
|
|
38
|
+
.option('--no-whois', 'Disable WHOIS lookup tool')
|
|
39
|
+
.option('--no-ping', 'Disable network ping tool')
|
|
40
|
+
.option('--no-ip', 'Disable IP lookup tool')
|
|
41
|
+
.option('--no-network', 'Disable all network tools (http, dns, whois, ping)')
|
|
42
|
+
.option('--only <tools>', 'Only enable specified tools (comma-separated)')
|
|
43
|
+
.option('--filter <patterns>', 'Custom tool filter patterns (comma-separated, prefix with ! to exclude)')
|
|
44
|
+
.action(async (opts) => {
|
|
45
|
+
const toolsFilter = [];
|
|
46
|
+
if (opts.only) {
|
|
47
|
+
const onlyTools = opts.only.split(',').map((t) => t.trim());
|
|
48
|
+
toolsFilter.push(...onlyTools);
|
|
49
|
+
}
|
|
50
|
+
if (opts.filter) {
|
|
51
|
+
const patterns = opts.filter.split(',').map((p) => p.trim());
|
|
52
|
+
toolsFilter.push(...patterns);
|
|
53
|
+
}
|
|
54
|
+
if (!opts.only && !opts.filter) {
|
|
55
|
+
if (opts.docs === false) {
|
|
56
|
+
TOOL_CATEGORIES.docs.forEach(tool => toolsFilter.push(`!${tool}`));
|
|
57
|
+
}
|
|
58
|
+
if (opts.network === false) {
|
|
59
|
+
TOOL_CATEGORIES.network.forEach(tool => toolsFilter.push(`!${tool}`));
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
if (opts.http === false) {
|
|
63
|
+
toolsFilter.push('!rek_http_request');
|
|
64
|
+
}
|
|
65
|
+
if (opts.dns === false) {
|
|
66
|
+
toolsFilter.push('!rek_dns_lookup');
|
|
67
|
+
}
|
|
68
|
+
if (opts.whois === false) {
|
|
69
|
+
toolsFilter.push('!rek_whois_lookup');
|
|
70
|
+
}
|
|
71
|
+
if (opts.ping === false) {
|
|
72
|
+
toolsFilter.push('!rek_network_ping');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (opts.ip === false) {
|
|
76
|
+
toolsFilter.push('!rek_ip_lookup');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const transport = opts.transport;
|
|
80
|
+
const port = parseInt(opts.port, 10);
|
|
81
|
+
if (!['stdio', 'http', 'sse'].includes(transport)) {
|
|
82
|
+
console.error(`Invalid transport mode: ${transport}. Use: stdio, http, or sse`);
|
|
83
|
+
process.exit(1);
|
|
84
|
+
}
|
|
85
|
+
const server = new MCPServer({
|
|
86
|
+
transport,
|
|
87
|
+
port,
|
|
88
|
+
debug: opts.debug,
|
|
89
|
+
docsPath: opts.docsPath,
|
|
90
|
+
examplesPath: opts.examplesPath,
|
|
91
|
+
srcPath: opts.srcPath,
|
|
92
|
+
toolsFilter: toolsFilter.length > 0 ? toolsFilter : undefined,
|
|
93
|
+
});
|
|
94
|
+
if (transport !== 'stdio') {
|
|
95
|
+
console.log('╔═══════════════════════════════════════════════════════════════════╗');
|
|
96
|
+
console.log('║ Recker MCP Server ║');
|
|
97
|
+
console.log('╚═══════════════════════════════════════════════════════════════════╝');
|
|
98
|
+
console.log('');
|
|
99
|
+
console.log(` Transport: ${transport}`);
|
|
100
|
+
console.log(` Port: ${port}`);
|
|
101
|
+
console.log(` Debug: ${opts.debug ? 'enabled' : 'disabled'}`);
|
|
102
|
+
if (toolsFilter.length > 0) {
|
|
103
|
+
console.log(` Filters: ${toolsFilter.join(', ')}`);
|
|
104
|
+
}
|
|
105
|
+
console.log('');
|
|
106
|
+
console.log(' Available tools:');
|
|
107
|
+
const allTools = [
|
|
108
|
+
...TOOL_CATEGORIES.docs,
|
|
109
|
+
...TOOL_CATEGORIES.network,
|
|
110
|
+
'rek_ip_lookup',
|
|
111
|
+
];
|
|
112
|
+
const enabledTools = allTools.filter(tool => {
|
|
113
|
+
if (toolsFilter.length === 0)
|
|
114
|
+
return true;
|
|
115
|
+
const positive = toolsFilter.filter(p => !p.startsWith('!'));
|
|
116
|
+
const negative = toolsFilter.filter(p => p.startsWith('!')).map(p => p.slice(1));
|
|
117
|
+
if (negative.includes(tool))
|
|
118
|
+
return false;
|
|
119
|
+
if (positive.length === 0)
|
|
120
|
+
return true;
|
|
121
|
+
return positive.includes(tool);
|
|
122
|
+
});
|
|
123
|
+
enabledTools.forEach(tool => {
|
|
124
|
+
console.log(` ✓ ${tool}`);
|
|
125
|
+
});
|
|
126
|
+
const disabledTools = allTools.filter(t => !enabledTools.includes(t));
|
|
127
|
+
if (disabledTools.length > 0) {
|
|
128
|
+
disabledTools.forEach(tool => {
|
|
129
|
+
console.log(` ✗ ${tool} (disabled)`);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
console.log('');
|
|
133
|
+
}
|
|
134
|
+
await server.start();
|
|
135
|
+
});
|
|
136
|
+
program.parse();
|
package/dist/mcp/client.d.ts
CHANGED
package/dist/mcp/contract.d.ts
CHANGED
|
@@ -74,4 +74,3 @@ export declare function createValidatedSSEStream<T extends ZodSchema>(client: Cl
|
|
|
74
74
|
export declare function openAIExtractor(event: SSEEvent): string | null;
|
|
75
75
|
export declare function anthropicExtractor(event: SSEEvent): string | null;
|
|
76
76
|
export {};
|
|
77
|
-
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -15,4 +15,3 @@ export interface LoadEmbeddingsOptions {
|
|
|
15
15
|
export declare function loadEmbeddings(options?: LoadEmbeddingsOptions): Promise<EmbeddingsData | null>;
|
|
16
16
|
export declare function clearEmbeddingsCache(version?: string): void;
|
|
17
17
|
export { getPackageVersion };
|
|
18
|
-
//# sourceMappingURL=embeddings-loader.d.ts.map
|
package/dist/mcp/index.d.ts
CHANGED
package/dist/mcp/ip-intel.d.ts
CHANGED
|
@@ -25,4 +25,3 @@ export declare function isValidIP(ip: string): boolean;
|
|
|
25
25
|
export declare function getIpInfo(ip: string): Promise<IpInfo>;
|
|
26
26
|
export declare function isGeoIPAvailable(): boolean;
|
|
27
27
|
export { getGeoIPDatabasePath } from './geoip-loader.js';
|
|
28
|
-
//# sourceMappingURL=ip-intel.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { HybridSearch, createHybridSearch } from './hybrid-search.js';
|
|
2
2
|
export { cosineSimilarity, levenshtein, stringSimilarity, reciprocalRankFusion, combineScores, } from './math.js';
|
|
3
3
|
export type { IndexedDoc, SearchResult, SearchOptions, HybridSearchConfig, EmbeddingsData, EmbeddingEntry, } from './types.js';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,4 +3,3 @@ export declare function levenshtein(a: string, b: string): number;
|
|
|
3
3
|
export declare function stringSimilarity(a: string, b: string): number;
|
|
4
4
|
export declare function reciprocalRankFusion(ranks: number[], k?: number): number;
|
|
5
5
|
export declare function combineScores(score1: number, score2: number, k?: number): number;
|
|
6
|
-
//# sourceMappingURL=math.d.ts.map
|
package/dist/mcp/server.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface MCPServerOptions {
|
|
|
10
10
|
transport?: MCPTransportMode;
|
|
11
11
|
debug?: boolean;
|
|
12
12
|
toolsFilter?: string[];
|
|
13
|
+
toolPaths?: string[];
|
|
13
14
|
}
|
|
14
15
|
export declare class MCPServer {
|
|
15
16
|
private options;
|
|
@@ -20,6 +21,7 @@ export declare class MCPServer {
|
|
|
20
21
|
private typeDefinitions;
|
|
21
22
|
private sseClients;
|
|
22
23
|
private initialized;
|
|
24
|
+
private toolRegistry;
|
|
23
25
|
constructor(options?: MCPServerOptions);
|
|
24
26
|
private indexReady;
|
|
25
27
|
private ensureIndexReady;
|
|
@@ -41,6 +43,9 @@ export declare class MCPServer {
|
|
|
41
43
|
private walkDir;
|
|
42
44
|
private extractTitle;
|
|
43
45
|
private extractKeywords;
|
|
46
|
+
private getResources;
|
|
47
|
+
private readResource;
|
|
48
|
+
private registerInternalTools;
|
|
44
49
|
private getTools;
|
|
45
50
|
private isToolEnabled;
|
|
46
51
|
private matchPattern;
|
|
@@ -57,7 +62,7 @@ export declare class MCPServer {
|
|
|
57
62
|
private formatIpResult;
|
|
58
63
|
private getFeatureConfig;
|
|
59
64
|
private getCombinedConfig;
|
|
60
|
-
handleRequest(req: JsonRpcRequest): JsonRpcResponse
|
|
65
|
+
handleRequest(req: JsonRpcRequest): Promise<JsonRpcResponse>;
|
|
61
66
|
private sendNotification;
|
|
62
67
|
private startStdio;
|
|
63
68
|
private startHttp;
|
|
@@ -71,4 +76,3 @@ export declare class MCPServer {
|
|
|
71
76
|
getTransport(): MCPTransportMode;
|
|
72
77
|
}
|
|
73
78
|
export declare function createMCPServer(options?: MCPServerOptions): MCPServer;
|
|
74
|
-
//# sourceMappingURL=server.d.ts.map
|