Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

727 B
Raw Blame
import { cli, Strategy } from '@jackwener/opencli/registry';
import { midjourneyIdentity, midjourneyQuickCheck } from './auth-utils.js';
import { MIDJOURNEY_DOMAIN, MIDJOURNEY_IMAGINE_URL } from './utils.js';

cli({
  site: 'midjourney',
  name: 'whoami',
  access: 'read',
  description: 'Verify the current Midjourney login and show non-identifying subscription state',
  example: 'opencli midjourney whoami -f json',
  domain: MIDJOURNEY_DOMAIN,
  strategy: Strategy.COOKIE,
  browser: true,
  siteSession: 'persistent',
  navigateBefore: MIDJOURNEY_IMAGINE_URL,
  args: [],
  columns: ['logged_in', 'site', 'plan', 'subscription_status'],
  authStatus: { quickCheck: midjourneyQuickCheck },
  func: midjourneyIdentity,
});