-
+
{me &&
{fresh ? : }{fresh ? '已同步 · ' + time(lastSync) : '连接中断 · 当前内容可能已过期'}{me.device.permissions.approve ? '可审批' : '观察'}
}
{error &&
{fresh ? '操作未完成' : connectionRequired ? '需要连接' : '连接待恢复'}{error}
{me &&
}
}
{me?.operations?.some(value => value.status === 'unknown') &&
手机操作回执需要核对有原审批或停止操作没有完整回执,请在电脑核对;手机不会自动重放。
{me.operations.filter(value => value.status === 'unknown').map(value =>
Task {value.taskId} · {value.action === 'stop' ? '停止' : '审批'})}
}
diff --git a/src/client/mobile/main.tsx b/src/client/mobile/main.tsx
index c4a9aae9..af366709 100644
--- a/src/client/mobile/main.tsx
+++ b/src/client/mobile/main.tsx
@@ -2,6 +2,7 @@ import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { MobileApp } from './MobileApp';
import './mobile.css';
+import './orven-mobile.css';
const fragment = new URLSearchParams(location.hash.slice(1));
const token = fragment.get('pair') ?? '';
diff --git a/src/client/mobile/orven-mobile.css b/src/client/mobile/orven-mobile.css
new file mode 100644
index 00000000..328a1677
--- /dev/null
+++ b/src/client/mobile/orven-mobile.css
@@ -0,0 +1,20 @@
+:root { color: #37333f; background: #f5f5f8; --ink: #37333f; --muted: #716979; --line: #e5dfed; --green: #277859; }
+button, input, select { border-color: #dcd2e7; border-radius: 8px; }
+button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline-color: #6253b5; }
+.mobile-app { background: #fff; }
+.mobile-header { background: #fff; color: #37333f; border-bottom: 1px solid #e6dfed; }
+.mobile-mark { border: 0; background: #f2edf9; color: #6253b5; border-radius: 10px; }
+.mobile-header strong { font-size: 24px; letter-spacing: -.6px; }
+.mobile-header div > span { color: #716979; font-size: 10px; }
+.mobile-header button { color: #716979; }
+.mobile-primary { background: #6253b5; border-color: #6253b5; border-radius: 8px; }
+.mobile-pair-heading > svg { color: #80708d; }
+.mobile-pair-heading h1 { color: #4b4155; font-weight: 600; }
+.mobile-pair-heading p, .mobile-pair-help p { color: #716979; }
+.mobile-pair-help { background: #f8f5fc; border-color: #e7dcef; color: #867093; border-radius: 10px; }
+.mobile-projects, .mobile-session, .mobile-task-title, .mobile-document { border-color: #e5dfed; }
+.mobile-tabs { background: #faf8fd; border-color: #e4d9ef; }
+.mobile-tabs button.active, .mobile-tabs button[aria-selected="true"] { color: #6253b5; border-color: #6253b5; background: #f1eaf9; }
+.mobile-error { color: #8b4255; background: #fff4f7; border-color: #eed6e1; }
+.mobile-error button { color: #8b4255; border-color: #dcbac9; }
+.mobile-stream { background: #f7f2fc; border-left-color: #a58abb; }
diff --git a/src/client/orven.css b/src/client/orven.css
new file mode 100644
index 00000000..0a285256
--- /dev/null
+++ b/src/client/orven.css
@@ -0,0 +1,466 @@
+/* Orven: a quiet engineering workspace. Shared tokens also theme tool panels. */
+:root {
+ font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
+ font-size: 14px;
+ color: #37333f;
+ background: #f9f9fb;
+ font-synthesis: none;
+ --ink: #25262d;
+ --muted: #686a76;
+ --line: #e4e4eb;
+ --paper: #ffffff;
+ --teal: #6253b5;
+ --blue: #6253b5;
+ --accent: #6253b5;
+ --accent-soft: #efecf9;
+ --surface: #f6f6f9;
+ --success: #277859;
+ --danger: #ad3f48;
+}
+::selection { background: #e1dcf4; color: #37333f; }
+button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
+button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role="separator"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
+button:disabled { opacity: .48; }
+button { touch-action: manipulation; }
+[hidden] { display: none !important; }
+* { scrollbar-width: thin; scrollbar-color: #d0ced9 transparent; }
+.icon-button { color: var(--muted); width: 32px; height: 32px; border-radius: 7px; }
+.icon-button:hover { background: #eeedf3; color: var(--ink); }
+.button { min-height: 36px; height: auto; padding: 8px 13px; border-radius: 7px; font-size: 12px; font-weight: 600; }
+.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
+.button.primary:hover:not(:disabled) { background: #51439c; }
+.button.secondary { background: #fff; border: 1px solid #dcdce5; color: #57515f; }
+.button.secondary:hover:not(:disabled) { background: #f5f4f9; border-color: #c7c2dc; }
+.text-button { color: #57515f; border-radius: 6px; font-size: 12px; }
+.text-button:hover { background: #eeecf5; color: var(--accent); }
+
+/* Project context stays in a continuous navigation surface. */
+.orven-workbench { grid-template-columns: 242px minmax(320px, 1fr) 430px; max-width: none; background: #fff; }
+.orven-workbench.inspector-closed { grid-template-columns: 242px minmax(0, 1fr) 0; }
+.orven-workbench.sidebar-hidden { grid-template-columns: 0 minmax(320px, 1fr) 430px; }
+.orven-workbench.sidebar-hidden.inspector-closed { grid-template-columns: 0 minmax(0, 1fr) 0; }
+.orven-workbench.inspector-wide { grid-template-columns: 242px minmax(310px, 1fr) min(48vw, 760px); }
+.orven-workbench.inspector-closed .inspector { display: none; }
+.project-sidebar { background: #f5f5f8; color: #57515f; border-color: var(--line); }
+.brand { height: 84px; min-height: 84px; padding: 0 20px; border: 0; gap: 10px; }
+.brand-mark { width: 35px; height: 39px; background: transparent; box-shadow: none; color: var(--accent); border: 0; }
+.brand strong { font: 650 26px/1.05 "Segoe UI Variable", "Segoe UI", sans-serif; letter-spacing: -1.1px; color: #37333f; }
+.brand div > span { color: #57515f; font-size: 10px; letter-spacing: .1px; margin-top: 6px; }
+.brand > .icon-button { margin-left: auto; width: 28px; color: #57515f; }
+.project-selector { margin: 4px 14px 0; padding: 12px 12px 14px; border: 1px solid #e1e0e9; background: #fafafc; border-radius: 9px; }
+.field-eyebrow { color: #57515f; font-size: 11px; font-weight: 500; letter-spacing: .1px; }
+.project-select-row { color: #57515f; gap: 8px; margin: 7px 0 4px; }
+.project-select-row select { color: #37333f; font-size: 13px; font-weight: 600; padding: 3px 0; }
+.project-select-row select option { color: #37333f; background: white; }
+.project-root { color: #57515f; font-size: 10px; line-height: 1.7; }
+.example-tag { display: block; font-size: 10px; color: #57515f; line-height: 1.7; margin-top: 7px; }
+.project-sidebar > .new-task-button { flex-shrink: 0; width: calc(100% - 28px); margin: 18px 14px 16px; height: 40px; background: #fff; color: #57515f; border: 1px solid #d9d5e5; border-radius: 8px; font-size: 13px; font-weight: 600; padding: 0 12px; box-shadow: 0 1px 2px #30234a04; }
+.new-task-button > svg:last-child { margin-left: auto; color: #57515f; transform: rotate(45deg); }
+.new-task-button:hover { background: #f1eef9; border-color: #c4bbdc; }
+.sidebar-view-tabs { display: flex; align-items: center; margin: 0 16px 0; border-bottom: 1px solid #dedde6; flex-shrink: 0; gap: 17px; }
+.sidebar-view-tabs button { display: flex; align-items: center; gap: 6px; min-height: 37px; border-bottom: 2px solid transparent; color: #57515f; padding: 0 2px; font-size: 12px; }
+.sidebar-view-tabs button[aria-selected="true"] { border-color: var(--accent); color: #57515f; font-weight: 600; }
+.sidebar-view-tabs button > span { color: #57515f; background: #e9e7ee; border-radius: 4px; font-size: 10px; min-width: 18px; padding: 1px 4px; text-align: center; }
+.sidebar-section { padding: 16px 12px; }
+.sessions-section { flex: 1; display: flex; flex-direction: column; min-height: 60px; border: 0; overflow: hidden; }
+.section-label { font-weight: 500; color: #57515f; font-size: 11px; margin: 0 4px 7px; }
+.session-list { margin: 0; max-height: none; min-height: 0; overflow: auto; flex: 1; }
+.session-item { border-radius: 6px; margin: 2px 0; }
+.session-select { padding: 11px 10px; font-size: 12px; color: #57515f; min-height: 39px; }
+.session-item.selected { background: #e9e5f3; }
+.session-item.selected .session-select { color: #57515f; }
+.session-item:hover { background: #eeecf3; }
+.session-select > svg { color: #57515f; }
+.session-select > b { color: #57515f; background: #fff; }
+.sidebar-empty { padding: 27px 6px; text-align: center; color: #57515f; }
+.sidebar-empty > svg { margin-bottom: 12px; color: #57515f; }
+.sidebar-empty strong { display: block; color: #57515f; font-size: 12px; font-weight: 500; }
+.sidebar-empty p { margin-top: 8px; color: #57515f; font-size: 11px; line-height: 1.8; }
+.file-section { flex: 1; padding-top: 13px; }
+.file-filter { border: 1px solid #dfdce7; background: #fcfbfe; height: 33px; border-radius: 6px; color: #57515f; margin: 0 3px 9px; }
+.file-filter input { font-size: 12px; color: #37333f; }
+.file-filter input::placeholder, .file-filter kbd { color: #57515f; }
+.tree-row { height: 32px; color: #57515f; font-size: 12px; }
+.tree-row svg { color: #57515f; }
+.tree-row:hover { background: #eeebf3; }
+.tree-row.selected { background: #e8e3f2; color: #57515f; }
+.tree-row.selected svg { color: #57515f; }
+.sidebar-footer { padding: 10px 12px 12px; border-color: #e1dfe8; background: #f5f5f8; }
+.sidebar-footer > button { min-height: 38px; color: #57515f; font-size: 12px; border-radius: 6px; padding: 9px 9px; }
+.sidebar-footer > button:hover { background: #eae7f1; }
+.sidebar-footer > button > svg:last-child { color: #57515f; }
+.sidebar-footer > button > kbd { margin-left: auto; color: #57515f; font-size: 10px; }
+.sidebar-footer > .model-sidebar-entry { margin-top: 4px; padding: 11px 9px; }
+.model-sidebar-entry small { color: #57515f; margin-top: 3px; font-size: 10px; }
+.connection { border-top: 1px solid #e1dfe8; margin: 7px 5px 0; padding: 13px 0 1px; color: #57515f; font-size: 10px; }
+.connection.connected > span { background: #3e8c6d; }
+.version-entry { color: #57515f; font-size: 10px; }
+
+/* The conversation is the default work surface; results open alongside it. */
+.task-pane { background: #fff; min-height: 0; container-type: inline-size; }
+.work-header { min-height: 76px; height: 76px; padding: 0 32px; gap: 18px; border-color: #eeeef2; }
+.work-title { flex: 1; gap: 12px; }
+.work-title > div { min-width: 0; }
+.header-breadcrumb { color: #57515f; font-size: 11px; margin-bottom: 6px; }
+.work-title h1 { font: 600 15px/1.4 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; color: #37333f; max-width: 570px; }
+.model-launch { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
+.header-tools, .inspector-toggle { display: flex; gap: 7px; align-items: center; min-height: 34px; border-radius: 7px; padding: 7px 10px; color: #57515f; font-size: 12px; white-space: nowrap; }
+.header-tools:hover, .inspector-toggle:hover { background: #f3f1f8; }
+.header-tools kbd { margin-left: 8px; color: #57515f; font-size: 10px; }
+.inspector-toggle { border: 1px solid #e2deeb; color: #57515f; }
+.inspector-toggle[aria-pressed="true"] { color: var(--accent); background: #f2eff9; border-color: #d5cdea; }
+.task-toolbar { height: 43px; min-height: 43px; padding: 0 30px; gap: 12px; border: 0; background: #fff; color: #57515f; }
+.task-local { color: #57515f; font-size: 11px; gap: 7px; }
+.local-dot { width: 5px; height: 5px; background: #7a998a; border-radius: 50%; }
+.task-toolbar .subtle { font-size: 11px; color: #57515f; }
+.toolbar-actions { gap: 5px; }
+.toolbar-actions .text-button { color: #57515f; font-size: 11px; }
+.status { font-size: 10px; border-radius: 4px; font-weight: 500; }
+.status-idle { color: #57515f; background: #f0edf5; }
+.status-running, .status-retrying { color: #57515f; background: #f0eafa; }
+.status-completed, .status-passed, .status-applied { color: #28664f; background: #eaf4ee; }
+.status-failed, .status-conflict { color: #a43d48; background: #fff0f1; }
+.conversation { padding: 28px 38px 22px; }
+.conversation-entries { max-width: 800px; margin: 0 auto; }
+.message { gap: 13px; margin-bottom: 27px; }
+.message-avatar { width: 30px; height: 30px; border-radius: 8px; color: #57515f; background: #f0ebf8; border: 0; font-size: 11px; }
+.message-user .message-avatar { color: #57515f; background: #f0edf3; }
+.message-label { color: #57515f; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
+.message-label time { color: #57515f; font-size: 10px; font-weight: 400; }
+.message-text, .message-text .research-content { font-size: 14px; color: #37333f; line-height: 1.9; }
+.message-text .research-content h2, .message-text .research-content h3, .message-text .research-content h4 { color: #37333f; }
+.message-text .research-content code { background: #f3f0f7; color: #57515f; }
+.message-system .message-text { color: #57515f; }
+.inline-event { margin-left: 43px; }
+.tool-row { min-height: 43px; border: 1px solid #e6e1ed; border-radius: 7px; background: #faf9fc; }
+.tool-name > strong { color: #57515f; font-size: 12px; }
+.tool-name > span, .tool-end { color: #57515f; font-size: 11px; }
+.tool-symbol { background: #f1edf7; color: #57515f; }
+.tool-completed .tool-symbol { color: #4f7b64; background: #eaf4ee; }
+.working-note { color: #57515f; font-size: 12px; }
+.system-event { color: #57515f; }
+.system-event-output { margin: 4px 0 0; color: #716979; }
+.system-event-output summary { cursor: pointer; display: list-item; font-size: 10px; padding: 3px 0; width: fit-content; }
+.system-event-output pre { color: #57515f; background: #f8f6fb; border: 1px solid #e7e0ee; border-radius: 6px; padding: 10px; margin: 6px 0; max-height: 220px; overflow: auto; font-size: 11px; line-height: 1.8; }
+.model-stream-preview { border-left-color: #aaa0c7; background: #f8f6fc; color: #57515f; }
+.model-stream-preview span, .model-stream-preview p { color: #57515f; }
+
+/* First task: useful project context and three concrete starting points. */
+.orven-welcome { max-width: 740px; width: 100%; margin: clamp(12px, 4vh, 48px) auto 16px; padding: 0; }
+.welcome-signature { display: flex; align-items: center; gap: 12px; margin-bottom: 33px; color: var(--accent); }
+.welcome-signature > span { font-size: 23px; font-weight: 600; letter-spacing: -.7px; color: #37333f; }
+.welcome-signature small { display: block; margin-top: 4px; color: #57515f; font-size: 11px; font-weight: 400; letter-spacing: .4px; }
+.orven-welcome h2 { color: #37333f; font: 600 clamp(25px, 2.4vw, 34px)/1.4 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: -.9px; margin: 0 0 14px; }
+.orven-welcome > p { color: #57515f; font-size: 14px; line-height: 1.9; margin: 0; }
+.welcome-project { display: flex; gap: 12px; align-items: center; padding: 18px 0; margin-top: 28px; border-bottom: 1px solid #e9e5ee; }
+.welcome-project-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: #f3f0f8; color: #57515f; }
+.welcome-project > div { min-width: 0; flex: 1; }
+.welcome-project strong { font-size: 13px; font-weight: 600; color: #57515f; display: flex; gap: 8px; align-items: center; }
+.welcome-project strong > span { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 400; color: #57515f; background: #f1edf7; }
+.welcome-project small { display: block; color: #57515f; font-size: 11px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.welcome-project > button { display: flex; align-items: center; gap: 7px; min-height: 36px; font-size: 12px; color: #57515f; padding: 6px 10px; border: 1px solid #e3dce9; border-radius: 6px; white-space: nowrap; }
+.welcome-project > button > svg { transform: rotate(45deg); }
+.welcome-project > button:hover { background: #f4f0fa; }
+.starter-heading { font-size: 11px; color: #57515f; margin: 24px 0 12px; }
+.orven-welcome .starter-prompts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 0; width: 100%; max-width: none; }
+.orven-welcome .starter-prompts > button { min-height: 87px; padding: 15px 12px; border: 1px solid #e7e1ed; border-radius: 8px; background: #fff; display: flex; align-items: center; gap: 10px; box-shadow: none; }
+.orven-welcome .starter-prompts > button:hover { background: #faf8fd; border-color: #c9bbdb; }
+.orven-welcome .starter-prompts .starter-icon { display: flex; width: 25px; height: 30px; align-items: center; justify-content: flex-start; background: none; color: #57515f; border-radius: 0; }
+.orven-welcome .starter-prompts > button > span:nth-child(2) { flex: 1; min-width: 0; display: block; background: none; width: auto; height: auto; }
+.starter-prompts strong { display: block; color: #57515f; font-size: 12px; font-weight: 500; white-space: nowrap; }
+.starter-prompts small { display: block; color: #57515f; font-size: 10px; margin-top: 6px; white-space: nowrap; }
+.orven-welcome .starter-prompts > button > svg { color: #57515f; margin: 0; width: 12px; }
+.welcome-connect { display: flex; width: 100%; align-items: center; gap: 9px; margin-top: 22px; padding: 4px 0; min-height: 32px; color: #57515f; font-size: 11px; text-align: left; }
+.welcome-connect > svg:last-child { margin-left: auto; }
+.welcome-connect:hover { color: var(--accent); }
+
+/* Input and execution controls share one stable, reachable footer. */
+.composer-wrap { background: white; border: 0; padding: 14px max(30px, calc((100% - 800px) / 2)) 17px; }
+.composer { display: flex; flex-direction: column; background: #fff; border: 1px solid #dcd4e6; border-radius: 12px; box-shadow: 0 4px 20px #39214805; overflow: visible; }
+.composer:focus-within { border-color: #ab94c7; box-shadow: 0 0 0 3px #b9a6d015; }
+.composer textarea { min-height: 90px; padding: 17px 19px 7px; color: #37333f; font-size: 14px; line-height: 1.8; }
+.composer textarea::placeholder { color: #57515f; }
+.composer .input-composer { border: 0; padding: 0 11px; }
+.input-composer-tools { gap: 8px; }
+.input-composer-tools > span { color: #57515f; font-size: 10px; }
+.input-add { color: #57515f; font-size: 11px; padding: 5px 7px; }
+.input-add:hover { background: #f3eef8; }
+.input-route { color: #57515f; }
+.composer-bottom { min-height: 52px; padding: 8px 13px 11px; gap: 10px; }
+.composer-options { display: flex; align-items: center; min-width: 0; gap: 8px; }
+.composer-model { display: flex; align-items: center; gap: 7px; padding: 6px; min-width: 0; font-size: 11px; color: #57515f; border-radius: 5px; }
+.composer-model > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 190px; }
+.composer-model:hover { background: #f5effa; }
+.model-light { background: #609577; width: 6px; height: 6px; }
+.model-light.model-unset { background: #aa96b5; }
+.composer-divider { height: 14px; width: 1px; background: #e5ddea; flex-shrink: 0; }
+.composer .permission-mode { border: 0; padding: 4px; color: #57515f; background: none; gap: 4px; min-width: 0; }
+.composer .permission-mode select { color: #57515f; font-size: 11px; min-height: 28px; max-width: 145px; }
+.composer .send-button { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); border-radius: 8px; color: #fff; flex-shrink: 0; }
+.composer .send-button:disabled { opacity: 1; color: #57515f; background: #efebf4; }
+.composer .send-button:hover:not(:disabled) { background: #50419d; }
+.stop-button { background: #fbf0f2; color: #a04a60; border: 1px solid #ecd5de; border-radius: 6px; padding: 8px 10px; font-size: 12px; }
+.composer-footnote { display: flex; justify-content: space-between; gap: 10px; color: #57515f; padding: 10px 2px 0; font-size: 10px; }
+
+/* A practical review pane, with legible source and semantic diff colors. */
+.inspector { background: #faf9fc; border-color: var(--line); min-height: 0; }
+.inspector-tabs { gap: 2px; padding: 0 9px; height: 54px; background: #faf9fc; border-color: #e7e1ec; }
+.inspector-tabs > button:not(.icon-button) { font-size: 11px; color: #57515f; gap: 4px; padding: 0 7px; }
+.inspector-tabs > button.selected { color: var(--accent); border-bottom-color: var(--accent); }
+.inspector-tabs > button > b { color: #57515f; background: #eae2f4; }
+.inspector-tabs > .icon-button { width: 28px; }
+.inspector-footer { color: #57515f; border-color: #e8e1ed; font-size: 10px; padding: 11px 10px; }
+.empty-inspector { max-width: 320px; padding: 32px 27px; }
+.empty-inspector-symbol { width: 52px; height: 52px; border-radius: 12px; color: #57515f; border: 1px solid #e7deef; background: #f4eff9; margin-bottom: 21px; }
+.empty-inspector h3 { color: #57515f; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
+.empty-inspector p { color: #57515f; font-size: 12px; line-height: 1.8; }
+.file-heading, .file-details { background: #faf8fd; border-color: #e9e1f0; color: #57515f; font-size: 11px; }
+.code-view { background: #fff; font-size: 12px; line-height: 1.9; }
+.code-view code { color: #57515f; }
+.code-view > div > span { color: #57515f; font-size: 11px; }
+.code-editor { color: #37333f; background: #fff; font-size: 12px; }
+.change-list, .change-summary, .change-actions, .event-details { border-color: #e6dfed; }
+.change-list > button { color: #57515f; font-size: 12px; }
+.change-list > button:hover, .change-list > button.selected { background: #eee7f6; }
+.change-summary strong { color: #57515f; font-size: 12px; }
+.change-summary > p, .diff-caption, .trace-caption, .event-details h4 { color: #57515f; border-color: #e9e0f1; }
+.diff-view { background: #fff; }
+.diff-line { color: #57515f; font-size: 12px; }
+.diff-line.diff-added { background: #edf6f0; color: #38654b; }
+.diff-line.diff-removed { background: #fceff1; color: #9a4252; }
+.line-number { color: #57515f; }
+.event-detail-heading strong { color: #57515f; font-size: 12px; }
+.event-details pre { color: #57515f; background: #f5effa; border-color: #e9dff2; }
+.inspector-resize-handle:hover, .inspector-resizing .inspector-resize-handle { background: #9980bb; }
+
+/* Existing capabilities keep their own layouts and share this surface system. */
+.modal-backdrop { background: #20172f55; backdrop-filter: blur(2px); }
+.modal { color: #57515f; background: #fff; border: 1px solid #e1d7ea; border-radius: 14px; box-shadow: 0 24px 100px #25153730; padding: 26px; }
+.modal-heading h2 { font: 600 20px/1.4 "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; color: #37333f; letter-spacing: -.4px; }
+.modal-heading p { color: #57515f; font-size: 12px; line-height: 1.8; }
+.modal-heading > .icon-button { color: #57515f; }
+.modal .form-field { color: #716979; font-size: 12px; }
+.modal .form-field input, .modal .form-field select, .modal .form-field textarea { color: #57515f; border-color: #dfd1e9; background: #fff; border-radius: 7px; min-height: 40px; }
+.modal .form-field input::placeholder { color: #57515f; }
+.modal .subtle, .modal .mc-help { color: #57515f; }
+.modal :is(.skill-center, .mcp-panel, .worker-console, .evaluation-console, .project-memory, .engine-panel, .rea-panel, .diagnostic-panel) { color: #57515f; font-size: 13px; }
+.modal :is(.skill-heading, .mcp-heading, .worker-console-heading, .evaluation-heading, .memory-overview, .engine-heading, .rea-heading) h2 { color: #37333f; font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
+.modal :is(.skill-heading, .mcp-heading, .worker-console-heading, .evaluation-heading, .memory-overview, .engine-heading, .rea-heading) p { color: #716979; font-size: 12px; line-height: 1.9; }
+.modal :is(.skill-kicker, .mcp-kicker, .worker-eyebrow, .evaluation-kicker, .memory-eyebrow, .engine-eyebrow, .rea-eyebrow) { color: #716979; font-size: 10px; }
+.modal :is(.skill-status-bar, .mcp-status-bar, .memory-summary) { color: #716979; border-color: #e4deeb; background: #faf8fc; padding: 12px; border-radius: 6px; }
+.modal :is(.skill-register, .mcp-register, .worker-plan-form, .worker-budget-form, .evaluation-form, .memory-editor, .engine-connection, .rea-registration) { background: #f8f6fb; border: 1px solid #e2daeb; border-radius: 10px; padding: 20px; }
+.modal :is(.skill-register-heading, .mcp-register-heading, .memory-editor-heading) { color: #57515f; }
+.modal :is(.skill-empty, .mcp-empty, .memory-empty, .engine-empty, .rea-empty, .rea-empty-result) { color: #716979; border: 1px solid #e5deee; background: #fff; border-radius: 10px; padding: 30px 20px; }
+.modal :is(.skill-empty, .mcp-empty, .memory-empty, .engine-empty, .rea-empty, .rea-empty-result) > svg { color: #8d7c9e; }
+.modal :is(.skill-empty, .mcp-empty, .memory-empty, .engine-empty, .rea-empty, .rea-empty-result) strong { color: #57515f; }
+.modal :is(.skill-form-grid, .mcp-form-grid, .memory-form-grid, .evaluation-form, .worker-plan-form) label { color: #57515f; font-size: 12px; }
+.modal input:not([type="checkbox"]):not([type="radio"]), .modal select, .modal textarea { border-color: #d8cde4; border-radius: 7px; color: #57515f; }
+.modal input[type="checkbox"], .modal input[type="radio"] { accent-color: var(--accent); }
+.modal :is(input, textarea)::placeholder { color: #81708b; }
+.modal :is(.mcp-boundary, .worker-boundary, .memory-scope-warning) { color: #716979; border-color: #e4d9ee; background: #f7f2fc; border-radius: 7px; }
+.modal :is(.skill-source, .mcp-source, .engine-scope, .rea-hint, .skill-path, .memory-meta, .worker-scope, .worker-note, .evaluation-note) { color: #716979; }
+.modal .diagnostic-intro strong, .modal .diagnostic-grid h3 { color: #57515f; }
+.modal .diagnostic-grid section { border-color: #e3dbea; background: #faf8fd; border-radius: 8px; }
+.modal .diagnostic-grid dt, .modal .diagnostic-grid dd { color: #716979; }
+.change-set-bar { background: #f8f5fc; border-color: #e7ddf0; color: #625275; }
+.review-callout { background: #f4f0fa; border-color: #dfd4ed; color: #57515f; border-radius: 9px; }
+.review-callout small { color: #57515f; }
+.recovery-note { background: #f7f3fc; border-color: #dfd3ef; color: #716979; }
+.recovery-note p { color: #57515f; }
+.approval-card { background: #fffcf4; border: 1px solid #eadbb5; border-left: 3px solid #caa355; border-radius: 9px; box-shadow: none; }
+.approval-heading strong { color: #82622c; font-size: 13px; }
+.approval-heading p, .approval-scope { color: #57515f; font-size: 12px; }
+.approval-card > pre { background: #f8f3e8; border-color: #ede2cb; color: #57515f; font-size: 12px; }
+.approval-actions .button.primary { background: #a77d33; border-color: #a77d33; }
+.failure-card { background: #fff9fa; border-color: #efdae2; border-left: 3px solid #c56d8d; border-radius: 9px; }
+.failure-heading > strong { color: #a04c6c; }
+.failure-heading, .failure-card p { color: #9b6783; }
+.toast { background: #44334f; color: #fff; border-color: #65506f; border-radius: 9px; }
+.toast .icon-button { color: #57515f; }
+
+/* Model management is a connected work surface, not a separate admin theme. */
+.modal:has(.model-center) { border-radius: 13px; border-color: #ded3ea; }
+.modal:has(.model-center) > .modal-heading { background: white; border-color: #e7ddef; padding: 23px 28px 20px; }
+.modal:has(.model-center) > .modal-heading h2 { color: #57515f; font-size: 20px; font-weight: 600; }
+.modal:has(.model-center) > .modal-heading p { color: #57515f; }
+.model-center { color: #57515f; background: #faf7fd; }
+.mc-overview { background: #f5effa; border-color: #e5d9ee; padding: 24px 28px; }
+.mc-eyebrow { color: #57515f; letter-spacing: .1em; }
+.mc-overview h2 { color: #57515f; font-size: 23px; font-weight: 600; letter-spacing: -.5px; }
+.mc-overview p, .mc-section-title p { color: #57515f; font-size: 12px; }
+.mc-current { border-color: #e1d2ec; border-radius: 9px; box-shadow: none; }
+.mc-current > span, .mc-current strong { color: #716979; }
+.mc-tabs { background: #fff; border-color: #e5d9ef; }
+.mc-tabs button { color: #57515f; border-bottom-width: 2px; font-size: 12px; font-weight: 500; }
+.mc-tabs button[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
+.mc-tabs button:hover { background: #f8f1fc; }
+.mc-content { padding-top: 25px; }
+.mc-section-title h3 { color: #57515f; font-size: 16px; font-weight: 600; }
+.mc-connection, .mc-pool, .mc-checks article, .mc-import-source { border-color: #e6d9f0; border-radius: 10px; box-shadow: none; }
+.mc-card-heading h4, .mc-pool h4 { color: #57515f; }
+.mc-card-heading > div > span, .mc-connection dt, .mc-pool p { color: #716979; }
+.mc-connection dd { color: #716979; }
+.mc-service-icon { color: #716979; background: #f4eafa; border-color: #e5cff4; border-radius: 10px; }
+.mc-connection footer { border-color: #eedff7; }
+.mc-capabilities span { border-color: #ead9f6; color: #716979; }
+.mc-editor { border-color: #ddc6ee; border-top-color: var(--accent); border-radius: 10px; }
+.mc-form-grid label { color: #716979; }
+.mc-form-grid input, .mc-form-grid select { color: #57515f; border-color: #dfc6ef; border-radius: 7px; }
+.mc-checkbox { color: #716979; }
+.mc-checkbox input { accent-color: var(--accent); }
+.mc-empty { color: #716979; border-style: solid; border-color: #e9d9f4; background: #fff; border-radius: 10px; padding: 35px 24px; }
+.mc-icon-action, .mc-probe { color: #716979; }
+.mc-route-control { background: #fff; border: 1px solid #e1dce9; border-left: 1px solid #e1dce9; border-radius: 9px; color: #57515f; }
+.mc-route-heading h3 { color: #514b5c; font-size: 13px; font-weight: 600; }
+.mc-route-heading p, .mc-route-detail { color: #716979; font-size: 11px; }
+.mc-route-select { color: #716979; }
+.mc-route-select select { color: #57515f; border-color: #d8d0e3; border-radius: 7px; }
+@media (min-width: 941px) {
+ .model-center { display: grid; grid-template-columns: 178px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); flex: 1; }
+ .mc-overview { grid-column: 1 / -1; padding: 23px 28px; background: #f7f5fa; }
+ .mc-overview h2 { font-size: 22px; margin-block: 7px; }
+ .mc-tabs { grid-column: 1; grid-row: 2; border-bottom: 0; border-right: 1px solid #e5dfee; padding: 15px 10px; gap: 3px; display: flex; flex-direction: column; overflow-y: auto; background: #faf9fc; }
+ .mc-tabs button { min-height: 41px; padding: 10px 13px; border: 0; border-radius: 6px; font-size: 12px; flex-shrink: 0; }
+ .mc-tabs button[aria-current] { background: #ebe5f5; color: #6253b5; }
+ .mc-tabs .mc-refresh { margin: auto 0 0; justify-content: flex-start; }
+ .mc-tabs .mc-refresh::after { content: '刷新连接状态'; font-size: 11px; }
+ .mc-content { grid-column: 2; grid-row: 2; background: #fff; padding: 24px 26px; }
+ .mc-notice { grid-column: 2; grid-row: 2; z-index: 1; align-self: start; box-shadow: 0 5px 20px #58405c12; }
+ .model-center:has(> .mc-notice) .mc-content { padding-top: 96px; }
+ .model-center > .mc-empty { grid-column: 2; grid-row: 2; align-self: start; margin: 24px; }
+ .mc-connections { grid-template-columns: 1fr; }
+}
+
+/* Searchable tool discovery uses words and keyboard navigation. */
+.modal:has(.workbench-tools) { width: 640px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: min(780px, 90dvh); }
+.modal:has(.workbench-tools) > .modal-heading { padding: 22px 24px 16px; margin: 0; flex-shrink: 0; }
+.workbench-tools { display: flex; flex-direction: column; min-height: 0; }
+.tools-search { display: flex; align-items: center; gap: 11px; padding: 12px 22px; border-block: 1px solid #e8e3ef; background: #faf8fd; color: #57515f; flex-shrink: 0; }
+.tools-search input { border: 0; background: none; min-width: 0; flex: 1; font-size: 13px; color: #57515f; height: 30px; }
+.tools-search input::placeholder { color: #57515f; }
+.tools-search kbd { font-size: 10px; color: #57515f; border: 1px solid #e6d7f0; padding: 3px 5px; border-radius: 4px; }
+.tools-results { padding: 9px 12px 16px; overflow: auto; min-height: 0; }
+.tools-results section h3 { font-size: 11px; font-weight: 500; color: #716979; padding: 17px 12px 7px; }
+.tools-results section > button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px; min-height: 65px; border-radius: 8px; text-align: left; }
+.tools-results section > button:hover, .tools-results section > button:focus-visible { background: #f6eefb; }
+.tools-action-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #716979; background: #f5edf9; border-radius: 7px; }
+.tools-results button > span:nth-child(2) { min-width: 0; flex: 1; }
+.tools-results strong { display: block; font-size: 13px; color: #57515f; font-weight: 500; }
+.tools-results small { display: block; font-size: 11px; color: #716979; margin-top: 4px; }
+.tools-results button > svg { color: #57515f; }
+.tools-results button:disabled { opacity: .65; }
+.tools-results button:disabled strong { color: #57515f; }
+.tools-empty { padding: 40px 15px; color: #716979; text-align: center; }
+.tools-empty strong { margin: 13px 0 8px; }
+.tools-empty p { font-size: 12px; margin-bottom: 12px; }
+.tools-footnote { display: flex; justify-content: space-between; gap: 10px; padding: 13px 24px; border-top: 1px solid #eaddf3; color: #57515f; font-size: 10px; flex-shrink: 0; }
+
+@media (min-width: 1700px) {
+ .orven-workbench, .orven-workbench.inspector-wide { grid-template-columns: 260px minmax(430px, 1fr) 470px; }
+ .orven-workbench.inspector-closed { grid-template-columns: 260px minmax(0, 1fr) 0; }
+ .orven-workbench.sidebar-hidden { grid-template-columns: 0 minmax(430px, 1fr) 470px; }
+ .orven-workbench.sidebar-hidden.inspector-closed { grid-template-columns: 0 minmax(0, 1fr) 0; }
+}
+@media (max-width: 1120px) and (min-width: 941px) {
+ .orven-workbench, .orven-workbench.inspector-wide { grid-template-columns: 210px minmax(310px, 1fr) 360px; }
+ .orven-workbench.inspector-closed { grid-template-columns: 210px minmax(0, 1fr) 0; }
+ .orven-workbench.sidebar-hidden { grid-template-columns: 0 minmax(310px, 1fr) 360px; }
+ .orven-workbench.sidebar-hidden.inspector-closed { grid-template-columns: 0 minmax(0, 1fr) 0; }
+ .brand { padding-inline: 14px; }
+ .project-selector { margin-inline: 10px; padding: 10px; }
+}
+@container (max-width: 740px) {
+ .work-header { padding-inline: 22px; }
+ .conversation { padding: 20px 26px; }
+ .orven-welcome { margin-top: 15px; }
+ .welcome-signature { margin-bottom: 24px; }
+ .orven-welcome h2 { font-size: 28px; }
+ .orven-welcome .starter-prompts { grid-template-columns: 1fr; gap: 8px; }
+ .orven-welcome .starter-prompts > button { min-height: 57px; padding: 10px 14px; }
+ .starter-prompts small { display: inline; margin-left: 14px; font-size: 11px; }
+ .starter-prompts strong { display: inline; }
+ .starter-heading { margin-top: 20px; }
+ .welcome-project { margin-top: 18px; }
+ .welcome-connect { margin-top: 13px; }
+ .composer-wrap { padding-inline: 24px; }
+ .header-tools kbd { display: none; }
+}
+@container (max-width: 510px) {
+ .work-header { padding-inline: 15px; }
+ .model-launch { gap: 4px; }
+ .header-tools { padding-inline: 7px; }
+ .header-tools > span, .inspector-toggle > span { display: none; }
+ .inspector-toggle { width: 34px; padding: 8px; }
+ .conversation { padding: 15px 20px; }
+ .orven-welcome h2 { font-size: 26px; }
+ .welcome-signature { margin-bottom: 24px; }
+ .welcome-project small { max-width: 210px; }
+ .starter-prompts small { margin-left: 10px; font-size: 10px; }
+ .composer-wrap { padding-inline: 16px; }
+ .composer-model > span:nth-child(2) { max-width: 120px; }
+ .composer-options { gap: 4px; }
+ .composer-footnote > span:last-child { display: none; }
+}
+@media (max-width: 940px) {
+ .orven-workbench, .orven-workbench.inspector-closed, .orven-workbench.inspector-wide { grid-template-columns: 210px minmax(0, 1fr); }
+ .orven-workbench.sidebar-hidden, .orven-workbench.sidebar-hidden.inspector-closed, .orven-workbench.sidebar-hidden.inspector-wide { grid-template-columns: 0 minmax(0, 1fr); }
+ .orven-workbench.inspector-wide.inspector-open .inspector { display: flex; width: min(600px, 90vw); z-index: 23; box-shadow: -10px 0 45px #30164417; }
+ .orven-workbench.inspector-closed .inspector { display: none; }
+ .panel-scrim { background: #24163044; backdrop-filter: none; }
+}
+@media (max-width: 620px) {
+ .orven-workbench, .orven-workbench.inspector-closed, .orven-workbench.sidebar-hidden, .orven-workbench.sidebar-hidden.inspector-closed, .orven-workbench.inspector-wide { grid-template-columns: 0 minmax(0, 1fr); }
+ .orven-workbench:not(.sidebar-hidden) .project-sidebar { width: min(290px, 86vw); }
+ .work-header { height: 66px; min-height: 66px; }
+ .work-title h1 { font-size: 14px; }
+ .header-breadcrumb { font-size: 10px; }
+ .task-toolbar { padding: 0 17px; height: 39px; min-height: 39px; gap: 9px; }
+ .task-toolbar .text-button { min-height: 35px; }
+ .orven-welcome { margin-top: 14px; }
+ .welcome-signature { margin-bottom: 24px; }
+ .welcome-signature > span { font-size: 22px; }
+ .orven-welcome > p { font-size: 13px; }
+ .welcome-project { gap: 9px; padding-block: 14px; }
+ .welcome-project-icon { width: 33px; height: 35px; }
+ .welcome-project > button { font-size: 11px; padding: 5px 7px; }
+ .welcome-project small { max-width: 175px; font-size: 10px; }
+ .starter-heading { margin-top: 16px; }
+ .orven-welcome .starter-prompts > button { min-height: 51px; }
+ .welcome-connect { font-size: 10px; }
+ .composer-wrap { padding: 10px 13px 12px; }
+ .composer textarea { min-height: 78px; max-height: 140px; padding: 13px 14px 4px; font-size: 16px; }
+ .composer-bottom { padding: 5px 9px 9px; min-height: 46px; }
+ .composer .permission-mode select { font-size: 10px; max-width: 111px; }
+ .composer .permission-mode > svg { width: 12px; }
+ .composer .input-composer { padding-inline: 7px; }
+ .input-composer-tools > span { font-size: 9px; }
+ .composer-model { font-size: 10px; }
+ .composer-model > span:nth-child(2) { max-width: 100px; }
+ .composer-footnote { font-size: 9px; padding-top: 8px; }
+ .message-text, .message-text .research-content { font-size: 13px; }
+ .modal-backdrop { padding: 12px; }
+ .modal { border-radius: 12px; max-height: calc(100dvh - 24px); padding: 21px 18px; }
+ .modal-wide { height: calc(100dvh - 24px); }
+ .modal-heading p { font-size: 11px; }
+ .modal:has(.workbench-tools) { max-height: calc(100dvh - 24px); }
+ .tools-search { padding-inline: 16px; }
+ .tools-results { padding-inline: 7px; }
+ .tools-footnote { padding-inline: 16px; font-size: 9px; }
+ .tools-results section > button { min-height: 64px; }
+ .modal:has(.model-center) { width: calc(100vw - 24px); height: calc(100dvh - 24px); }
+ .modal:has(.model-center) > .modal-heading { padding: 19px 18px 15px; }
+ .mc-overview, .mc-content { padding: 18px; }
+ .mc-overview { gap: 14px; }
+ .mc-overview h2 { font-size: 20px; }
+ .mc-tabs { padding-inline: 8px; }
+ .mc-tabs button { min-height: 46px; padding-inline: 12px; }
+}
+@media (max-height: 800px) and (min-width: 621px) {
+ .orven-welcome { margin-top: 8px; }
+ .welcome-signature { margin-bottom: 20px; }
+ .welcome-project { margin-top: 16px; }
+ .orven-welcome .starter-prompts > button { min-height: 68px; }
+}
+@media (prefers-reduced-motion: reduce) {
+ *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
+}
diff --git a/src/desktop/Launcher.cs b/src/desktop/Launcher.cs
index 3bddc108..08a6dd99 100644
--- a/src/desktop/Launcher.cs
+++ b/src/desktop/Launcher.cs
@@ -81,6 +81,6 @@ internal static class Launcher {
Regex allowed = new Regex("^(path|pathext|systemroot|systemdrive|windir|comspec|temp|tmp|userprofile|homedrive|homepath|appdata|localappdata|programfiles(?:\\(x86\\))?|commonprogramfiles(?:\\(x86\\))?|lang|lc_all|AGENT_WORKBENCH_(?:DEEPSEEK_ROOT|PURGE_ROOT|PYTHON_PATH|TEST_PYTHON))$", RegexOptions.IgnoreCase);
foreach (string key in keys) if (!allowed.IsMatch(key)) launch.EnvironmentVariables.Remove(key);
using (Process child = Process.Start(launch)) { if (uninstall) { child.WaitForExit(); return child.ExitCode; } } return 0;
- } catch (Exception error) { if (!hidden) MessageBox.Show(error.Message, "Agent Workbench 无法打开", MessageBoxButtons.OK, MessageBoxIcon.Error); return 1; }
+ } catch (Exception error) { if (!hidden) MessageBox.Show(error.Message, "Orven 无法打开", MessageBoxButtons.OK, MessageBoxIcon.Error); return 1; }
}
}
diff --git a/src/desktop/installer.iss b/src/desktop/installer.iss
index bacec07b..4be9d970 100644
--- a/src/desktop/installer.iss
+++ b/src/desktop/installer.iss
@@ -1,9 +1,9 @@
[Setup]
AppId={{E914E883-46F9-4B82-B27F-BDB2B40DCC90}
-AppName=Agent Workbench
+AppName=Orven
AppVersion={#Version}
DefaultDirName={localappdata}\Programs\AgentWorkbench
-DefaultGroupName=Agent Workbench
+DefaultGroupName=Orven
PrivilegesRequired=lowest
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
@@ -28,14 +28,14 @@ Source: "{#PortableRoot}\*"; DestDir: "{app}\versions\{#VersionDirectory}"; Flag
Source: "{#PortableRoot}\AgentWorkbench.exe"; DestDir: "{app}"; Flags: onlyifdoesntexist
[Icons]
-Name: "{group}\Agent Workbench"; Filename: "{app}\AgentWorkbench.exe"
-Name: "{userdesktop}\Agent Workbench"; Filename: "{app}\AgentWorkbench.exe"; Tasks: desktopicon
+Name: "{group}\Orven"; Filename: "{app}\AgentWorkbench.exe"
+Name: "{userdesktop}\Orven"; Filename: "{app}\AgentWorkbench.exe"; Tasks: desktopicon
[Tasks]
Name: "desktopicon"; Description: "创建桌面快捷方式"; Flags: unchecked
[Run]
-Filename: "{app}\AgentWorkbench.exe"; Description: "打开 Agent Workbench"; Flags: nowait postinstall skipifsilent; Check: WasActivated
+Filename: "{app}\AgentWorkbench.exe"; Description: "打开 Orven"; Flags: nowait postinstall skipifsilent; Check: WasActivated
[Code]
var DataRoot: String; Port: String; StageOnly: Boolean; Activated: Boolean; ActivationFailed: Boolean;
@@ -79,7 +79,7 @@ begin
' --operation-id ' + Quoted(OperationId) + ' --expected-manifest-sha256 {#ManifestSha256}';
if Candidate then Parameters := Parameters + ' --candidate-root ' + Quoted(ExpandConstant('{app}\versions\{#VersionDirectory}'));
if StageOnly then Parameters := Parameters + ' --stage-only';
- if ManagerPage = nil then ManagerPage := CreateOutputProgressPage('Agent Workbench 版本更新', '核对原版本、当前阶段与实际结果');
+ if ManagerPage = nil then ManagerPage := CreateOutputProgressPage('Orven 版本更新', '核对原版本、当前阶段与实际结果');
ManagerPage.SetText('准备核对安装操作', '操作记录:' + ExpandConstant('{app}') + '\.installation\progress-' + OperationId + '.json');
ManagerPage.ProgressBar.Visible := False;
if Command <> 'cancel' then ManagerPage.Show;
diff --git a/src/desktop/main.mjs b/src/desktop/main.mjs
index 5800fcee..1dec5eef 100644
--- a/src/desktop/main.mjs
+++ b/src/desktop/main.mjs
@@ -18,7 +18,7 @@ const dataRoot = path.resolve(options['--data-root'] || path.join(process.env.LO
const port = Number(options['--port'] || 4318);
assertLocalTree(dataRoot, { missing: true }); fs.mkdirSync(dataRoot, { recursive: true });
const profile = ownedChild(dataRoot, '.desktop-profile', { missing: true }); fs.mkdirSync(profile, { recursive: true }); protectUserDirectory(profile); app.setPath('userData', profile);
-app.setAppUserModelId('local.agent-workbench'); app.setName('Agent Workbench');
+app.setAppUserModelId('local.agent-workbench'); app.setName('Orven');
let window, controller, bridge, browsingView, windowId, windowOwner, quitting = false;
const retained = app.requestSingleInstanceLock({ appRoot, dataRoot, port });
if (!retained) app.quit();
@@ -41,8 +41,8 @@ else {
windowId = randomUUID(); windowOwner = { windowId, pid: process.pid, createdAt: observed.createdAt, instanceId: host.identity.instanceId, runtimeIdentity: host.identity.runtimeIdentity };
await controller.api('/host/windows/register', { method: 'POST', input: windowOwner });
const preload = path.join(appRoot, 'dist-desktop/preload.cjs');
- window = new BrowserWindow({ title: 'Agent Workbench', width: 1440, height: 1000, minWidth: 390, minHeight: 600,
- show: false, backgroundColor: '#edf2f7', icon: path.join(appRoot, 'public/workbench-icon.png'),
+ window = new BrowserWindow({ title: 'Orven · AI 开发工作台', width: 1440, height: 1000, minWidth: 390, minHeight: 600,
+ show: false, backgroundColor: '#ffffff', icon: path.join(appRoot, 'public/workbench-icon.png'),
webPreferences: { preload, sandbox: true, contextIsolation: true, nodeIntegration: false, webSecurity: true, allowRunningInsecureContent: false } });
window.webContents.setWindowOpenHandler(() => ({ action: 'deny' }));
window.webContents.on('will-navigate', details => { if (!desktopOrigin(details.url, controller.url)) details.preventDefault(); });
@@ -71,5 +71,5 @@ else {
console.log(JSON.stringify({ app: 'agent-workbench-desktop', ready: true, pid: process.pid, hostPid: host.identity.pid,
instanceId: host.identity.instanceId, appRoot, dataRoot, url: host.url }));
}).catch(error => { console.error(JSON.stringify({ app: 'agent-workbench-desktop', ready: false, message: error.message }));
- if (!options.hidden) dialog.showErrorBox('Agent Workbench 无法打开', error.message); app.exit(1); });
+ if (!options.hidden) dialog.showErrorBox('Orven 无法打开', error.message); app.exit(1); });
}