refactor(webui): migrate ReadToolCall, ShellToolCall and Onboarding to shared package

- Move ReadToolCall and ShellToolCall from vscode-ide-companion to webui
- Migrate Onboarding component with platform-agnostic props (iconUrl, appName, etc.)
- Add Storybook stories for ReadToolCall, ShellToolCall, and Onboarding
- Add shared styles: components.css (toolcall components), timeline.css
- Update vscode-ide-companion to use webui components via imports
- Remove duplicate InputForm type re-exports
- Add WEBUI_PLATFORM_ADAPTER_GUIDE_ZH.md for platform adapter documentation
- Update toolcalls/index.tsx to route read_many_files/list_directory/ls to ReadToolCall
This commit is contained in:
yiliang114 2026-01-16 23:32:20 +08:00
parent 07c3d487bb
commit 9a47ad5e62
16 changed files with 1029 additions and 103 deletions

View file

@ -24,6 +24,7 @@
--app-background: #1e1e1e;
--app-primary-background: #1e1e1e;
--app-background-secondary: #252526;
--app-secondary-background: #252526;
--app-background-tertiary: #2d2d2d;
/* ===========================
@ -52,7 +53,24 @@
Typography
=========================== */
--app-font-sans: system-ui, -apple-system, sans-serif;
--app-font-mono: ui-monospace, 'SF Mono', monospace;
--app-font-mono: var(
--app-monospace-font-family,
ui-monospace,
'SF Mono',
monospace
);
--app-monospace-font-size: 13px;
/* ===========================
Link Styles
=========================== */
--app-link-foreground: #007acc;
--app-link-active-foreground: #005a9e;
/* ===========================
Brand Colors
=========================== */
--app-qwen-ivory: #f5f5dc;
/* ===========================
Border Radius
@ -77,13 +95,18 @@
Input Styles
=========================== */
--app-input-background: #3c3c3c;
--app-input-secondary-background: #2d2d2d;
--app-input-border: #3f3f46;
--app-input-foreground: #e4e4e7;
--app-input-placeholder-foreground: #71717a;
/* ===========================
Button Styles
=========================== */
--app-ghost-button-hover-background: rgba(90, 93, 94, 0.31);
--app-button-background: #3c3c3c;
--app-button-foreground: #ffffff;
--app-transparent-inner-border: rgba(255, 255, 255, 0.1);
/* ===========================
Header Styles