import type { AuthedContext, AuthedContextOptions } from './authed-command' import { Command } from '@/framework/command' import { buildAuthedContext } from './authed-command' export abstract class DifyCommand extends Command { protected async authedCtx(opts: AuthedContextOptions): Promise { return buildAuthedContext(this, opts) } }