mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
163974652e
Closes #548
21 lines
551 B
JavaScript
21 lines
551 B
JavaScript
import { cli, Strategy } from '@jackwener/opencli/registry';
|
|
import { DEEPSEEK_DOMAIN, DEEPSEEK_URL } from './utils.js';
|
|
|
|
export const newCommand = cli({
|
|
site: 'deepseek',
|
|
name: 'new',
|
|
description: 'Start a new conversation in DeepSeek',
|
|
domain: DEEPSEEK_DOMAIN,
|
|
strategy: Strategy.COOKIE,
|
|
browser: true,
|
|
navigateBefore: false,
|
|
args: [],
|
|
columns: ['Status'],
|
|
|
|
func: async (page) => {
|
|
await page.goto(DEEPSEEK_URL);
|
|
await page.wait(2);
|
|
return [{ Status: 'New chat started' }];
|
|
},
|
|
});
|