Commit 7c39ce5
committed
Bump eca-webview and wire global-config + logs IPC stubs
The webview now embeds a CodeMirror-powered Global Config editor
(new Settings → Global Config tab) and the Logs tab, both of which
add new host↔webview messages. Because eca-web compiles the
webview sources inline (via the `@webview` Vite alias + tsconfig
`include`) rather than consuming a prebuilt bundle, any new runtime
dep the webview picks up must also be mirrored in eca-web's own
package.json for Vite/Rollup to resolve at build time — otherwise
the build fails with "Rollup failed to resolve import
@codemirror/state". This commit mirrors the six @codemirror/*
packages plus jsonc-parser.
The new messages are sent via webviewSendAndGet, which blocks on a
matching requestId reply for up to 30 s. A browser has no local
filesystem and no local log buffer, so we reply immediately with
error-shaped payloads and let the tabs render a graceful "not
available in the web client" state instead of spinning. The two
fire-and-forget messages (logs/clear, logs/openFolder) are silent
no-ops. All five cases are moved out of the
`// Ignored (no web equivalent)` fallthrough block into explicit
branches so the intent — and the future extension points for
remote-log streaming — stay visible.
Submodule bump also brings in Hero-mode polish, live
server-startup progress, MCP add/remove, and the Settings tab-bar
horizontal-scroll fix.1 parent d14b3b7 commit 7c39ce5
4 files changed
Lines changed: 336 additions & 149 deletions
Submodule eca-webview updated 33 files
- package-lock.json+140
- package.json+7
- public/logo.svg+43
- src/App.tsx-6
- src/hooks.ts+93-1
- src/index.css+12-6
- src/pages/RootWrapper.tsx+103-7
- src/pages/chat/Chat.scss+239-41
- src/pages/chat/Chat.tsx+184-30
- src/pages/chat/ChatHeader.tsx+14
- src/pages/chat/ChatMessages.tsx+14-3
- src/pages/chat/ChatPrompt.scss+170-8
- src/pages/chat/ChatPrompt.tsx+143-8
- src/pages/chat/ChatSubHeader.tsx+11-2
- src/pages/components/ToolTip.scss+3
- src/pages/settings/GlobalConfigTab.scss+157-21
- src/pages/settings/GlobalConfigTab.tsx+378-5
- src/pages/settings/LogsTab.scss+146
- src/pages/settings/LogsTab.tsx+164
- src/pages/settings/MCPDetails.scss-390
- src/pages/settings/MCPDetails.tsx-339
- src/pages/settings/MCPsTab.scss+280-59
- src/pages/settings/MCPsTab.tsx+392-42
- src/pages/settings/Settings.scss+9-1
- src/pages/settings/Settings.tsx+20-5
- src/protocol.ts+43
- src/redux/slices/logs.ts+76
- src/redux/slices/mcp.ts+13-3
- src/redux/slices/server.ts+128-1
- src/redux/store.ts+2
- src/redux/thunks/editor.ts+31
- src/redux/thunks/mcp.ts+36
- src/redux/thunks/server.ts+20-1
0 commit comments