new.js
1 import { cli, Strategy } from '@jackwener/opencli/registry'; 2 import { DEEPSEEK_DOMAIN, DEEPSEEK_URL } from './utils.js'; 3 4 export const newCommand = cli({ 5 site: 'deepseek', 6 name: 'new', 7 description: 'Start a new conversation in DeepSeek', 8 domain: DEEPSEEK_DOMAIN, 9 strategy: Strategy.COOKIE, 10 browser: true, 11 navigateBefore: false, 12 args: [], 13 columns: ['Status'], 14 15 func: async (page) => { 16 await page.goto(DEEPSEEK_URL); 17 await page.wait(2); 18 return [{ Status: 'New chat started' }]; 19 }, 20 });