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。

628 B
Raw Blame
import { cli, Strategy } from '@jackwener/opencli/registry';
import { onesFetchInPage } from './common.js';
cli({
    site: 'ones',
    name: 'logout',
    access: 'write',
    description: 'ONES Project API — invalidate current token (GET auth/logout) via Chrome Bridge',
    domain: 'ones.cn',
    strategy: Strategy.COOKIE,
    browser: true,
    navigateBefore: false,
    args: [],
    columns: ['ok', 'detail'],
    func: async (page) => {
        await onesFetchInPage(page, 'auth/logout', { method: 'GET' });
        return [{ ok: 'true', detail: 'Server logout ok; clear local ONES_AUTH_TOKEN if set.' }];
    },
});