// Resolves an actor against live infrastructure: node scripts/resolve.ts [--no-slingshot] import { configure, resolveActor, resolveService } from '../src/index.ts'; const [identifier = 'tangled.org', flag] = process.argv.slice(2); if (flag === '--no-slingshot') configure({ slingshot: null }); const started = performance.now(); const actor = await resolveActor(identifier); const pds = await resolveService(actor.did, '#atproto_pds'); const path = flag === '--no-slingshot' ? 'plc+appview' : 'slingshot'; console.log(JSON.stringify({ path, actor, documentPds: pds, ms: Math.round(performance.now() - started) }));