@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
39 lines (38 loc) • 1.51 kB
JavaScript
/**
* TlsFingerprint — optional TLS fingerprint mimicry (stub).
*
* In a full implementation this would configure the TLS ClientHello to
* match a known browser or CLI fingerprint (JA3/JA4), making the TLS
* handshake indistinguishable from a genuine Claude Code session.
*
* This is a placeholder: the transformRequest is a no-op pass-through.
* Real JA3 mimicry requires a native TLS library (e.g. curl-impersonate
* or a custom Node.js TLS agent), which is out of scope for the initial
* implementation.
*/
import { logger } from "../../../utils/logger.js";
export function createTlsFingerprint(options = {}) {
const profile = options.profile ?? "claude-code";
const warnOnUse = options.warnOnUse ?? true;
let hasWarned = false;
return {
name: "tls-fingerprint",
order: 0,
// Stub — no real TLS mimicry is implemented; default-off to avoid misleading operators.
enabled: false,
async transformRequest(ctx) {
if (warnOnUse && !hasWarned) {
hasWarned = true;
logger.warn(`[tls-fingerprint] Stub: profile "${profile}" requested but TLS mimicry is not implemented.`);
}
// No-op: return context unchanged.
// A real implementation would attach a custom TLS agent to the
// request context here.
return ctx;
},
async transformResponse(ctx) {
// No-op pass-through
return ctx;
},
};
}