adjust the env name; add the dedicate script to run auto start chat

This commit is contained in:
bossgeekgo
2024-02-12 13:01:32 +08:00
parent 68b5778de0
commit 9f2090ac45
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
"scripts": {
"start": "electron-vite preview",
"dev": "electron-vite dev",
"dev:geek-auto-start-chat-with-boss-only": "MAIN_BOSSGEEKGO_RUN_MODE=geekAutoStartWithBoss electron-vite dev",
"build": "npm run typecheck && electron-vite build",
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix",

View File

@@ -1,7 +1,7 @@
import { runAutoChat } from './flow/GEEK_AUTO_START_CHAT_WITH_BOSS'
import { openSettingWindow } from './flow/OPEN_SETTING_WINDOW'
const runMode = process.env.BOSSGEEKGO_RUN_MODE
const runMode = process.env.MAIN_BOSSGEEKGO_RUN_MODE
switch (runMode) {
case 'geekAutoStartWithBoss': {
runAutoChat()