godcrm/scripts/smoke/resolve-hook.mjs
GOD CRM Release f89e074dd1
Some checks failed
CI / Lint / Typecheck / Test / Build (push) Has been cancelled
CI / PostgreSQL Integration Tests (push) Has been cancelled
GOD CRM — public scrubbed snapshot
Governed substrate for autonomous agents: scoped identity (passports),
audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
2026-08-10 04:01:45 +03:00

11 lines
430 B
JavaScript

// resolve hook used by register-stub.mjs — maps TelegramService.js → telegram-stub.mjs
import { pathToFileURL } from 'node:url';
const STUB = pathToFileURL(process.cwd() + '/scripts/smoke/telegram-stub.mjs').href;
export async function resolve(specifier, context, nextResolve) {
if (specifier.endsWith('TelegramService.js')) {
return { url: STUB, shortCircuit: true };
}
return nextResolve(specifier, context);
}