Something went wrong. Try again.
Something went wrong. Try again.
123456789import { judgeSession } from "../../runner/sessionCheck";import type { CheckContext } from "../../runner/checks";
/** * `call session-check [HANDLE]`: fails the run, with what to do about it, unless the page the run is on shows the account the profile is signed in as * (HANDLE, or the profile's `account` in aite.config.json). The logic is in runner/sessionCheck.ts. Every script that runs on a signed-in profile starts with it. */export default async (ctx: CheckContext) => judgeSession({ profile: ctx.profile, expected: ctx.args[0] ?? ctx.account ?? "", pageText: await ctx.read({ css: "body" }, { blocks: true }) });