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。

723 B
Raw Blame
import { cli, Strategy } from '@jackwener/opencli/registry';
import { GEMINI_DOMAIN, startNewGeminiChat } from './utils.js';
export const newCommand = cli({
    site: 'gemini',
    name: 'new',
    access: 'read',
    description: 'Start a new conversation in Gemini web chat',
    domain: GEMINI_DOMAIN,
    strategy: Strategy.COOKIE,
    browser: true,
    siteSession: 'persistent',
    navigateBefore: false,
    args: [],
    columns: ['Status', 'Action'],
    func: async (page) => {
        const action = await startNewGeminiChat(page);
        return [{
                Status: 'Success',
                Action: action === 'navigate' ? 'Reloaded /app as fallback' : 'Clicked New chat',
            }];
    },
});