Governed substrate for autonomous agents: scoped identity (passports), audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
11 lines
430 B
JavaScript
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);
|
|
}
|