fix: resolve vpr ready failures

- Fix unhandled promise in coding-agent example (void operator)
- Fix unhandled promise in cli/dev.ts (void operator)
- Fix ChildProcess.on() type error in cli/process-manager.ts
  (@types/node v25 removed .on() from ChildProcess type)
- Change example build scripts from "vite build" to "vp build"
  (vite resolves to vite-plus-core which has no CLI bin)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yunfei He
2026-05-25 23:19:55 +08:00
parent 07cfe5d6fb
commit 6e01954cf9
7 changed files with 15 additions and 13 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
"type": "module",
"scripts": {
"dev": "vue-tui dev",
"build": "vite build",
"preview": "vite build && node dist/agent.mjs"
"build": "vp build",
"preview": "vp build && node dist/agent.mjs"
},
"dependencies": {
"@vue-tui/cli": "workspace:*",
+1 -1
View File
@@ -113,7 +113,7 @@ export default defineComponent(() => {
if (state.value !== "idle") return;
if (key.return) {
submit();
void submit();
} else if (key.backspace || key.delete) {
inputText.value = inputText.value.slice(0, -1);
} else if (input && !key.ctrl && !key.meta) {