DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
chore: 提交剩余杂项(更新 chip 位置、面板卡片样式、entry gap、AGENTS 约定)
hairyf7aa579a2afc7
diff --git a/AGENTS.md b/AGENTS.mdindex 61270c7c..f2a8335b 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -15,6 +15,7 @@- 编写代码时,必须保持 0 注释,只被允许在关键节点添加,避免大面积污染代码。- 如果你看到大量的冗余描述与注释,你应该精简 / 删除它们,以保持代码的简洁性和可读性。- 如果有什么你想临时记录一下,你可以编写在 .temp 文件中,在这里你是自由的。+- 在处理插件时,不要进行构建,用户可能正在运行 dev。## Command Performance Constraints (Strictly Enforced)diff --git a/packages/dsh-tauri-panel-scheduler/src/client/components/recommendations.cssr.ts b/packages/dsh-tauri-panel-scheduler/src/client/components/recommendations.cssr.tsindex e3faaf9d..1cf0fe4b 100644--- a/packages/dsh-tauri-panel-scheduler/src/client/components/recommendations.cssr.ts+++ b/packages/dsh-tauri-panel-scheduler/src/client/components/recommendations.cssr.ts@@ -1,14 +1,14 @@import { cssr, styles as sharedStyles } from 'dsh-tauri-ui/client'const { c } = cssr-const { primary, secondary, tertiary, borderL2: border, hover } = sharedStyles+const { primary, secondary, tertiary, hover } = sharedStyles/** 推荐(预置)定时任务(recommendations.tsx)。 */export default c([c('.dshp-scheduler__recs', { display: 'flex', flexDirection: 'column', gap: '8px', margin: '20px 0 0' }),c('.dshp-scheduler__recs-title', { margin: '0', fontSize: '13px', lineHeight: '20px', fontWeight: '600' }),c('.dshp-scheduler__recs-list', { display: 'flex', flexDirection: 'column', gap: '8px', margin: '0', padding: '0', listStyle: 'none' }),- c('.dshp-scheduler__recs-item', { boxSizing: 'border-box', display: 'flex', alignItems: 'flex-start', gap: '10px', width: '100%', minWidth: '0', padding: '10px 12px', border: `1px solid ${border}`, borderRadius: '10px', background: 'transparent', color: 'inherit', font: 'inherit', fontSize: '13px', lineHeight: '20px', textAlign: 'left', cursor: 'pointer' }),+ c('.dshp-scheduler__recs-item', { boxSizing: 'border-box', display: 'flex', alignItems: 'flex-start', gap: '10px', width: '100%', minWidth: '0', padding: '10px 12px', border: `none`, borderRadius: '10px', background: 'transparent', color: 'inherit', font: 'inherit', fontSize: '13px', lineHeight: '20px', textAlign: 'left', cursor: 'pointer' }),c('.dshp-scheduler__recs-item:hover', { background: hover }),c('.dshp-scheduler__recs-icon', { flex: 'none', display: 'inline-flex', marginTop: '2px', fontSize: '16px' }),c('.dshp-scheduler__recs-body', { display: 'flex', flexDirection: 'column', gap: '2px', minWidth: '0' }),diff --git a/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.tsx b/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.tsxindex 25e23c36..70e144a6 100644--- a/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.tsx+++ b/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.tsx@@ -106,10 +106,10 @@ export function SchedulerPanel({ t, onViaChat, onOpenSession }: SchedulerPanelPr<p>{t('subtitle')}</p></div><div className="dshp-scheduler__toolbar">- <Button variant="outline" size="sm" icon={<Icon as={CommentPlus} />} onClick={onViaChat}>+ <Button style={{ flexShrink: 0 }} variant="outline" size="sm" icon={<Icon as={CommentPlus} />} onClick={onViaChat}>{t('viaChat')}</Button>- <Button variant="primary" size="sm" icon={<Icon as={Plus} size={13} />} onClick={() => setDialog({})}>+ <Button style={{ flexShrink: 0 }} variant="primary" size="sm" icon={<Icon as={Plus} size={13} />} onClick={() => setDialog({})}>{t('createManual')}</Button></div>diff --git a/packages/dsh-tauri-panel-scheduler/src/client/styles/index.cssr.ts b/packages/dsh-tauri-panel-scheduler/src/client/styles/index.cssr.tsindex 65387d24..0a64cfc9 100644--- a/packages/dsh-tauri-panel-scheduler/src/client/styles/index.cssr.ts+++ b/packages/dsh-tauri-panel-scheduler/src/client/styles/index.cssr.ts@@ -2,7 +2,7 @@ import { cssr, styles as sharedStyles } from 'dsh-tauri-ui/client'import { SESSION_ICON_ATTRIBUTE } from '../constants'const { c } = cssr-const { primary, secondary, tertiary, borderL2, dimmed, borderL3, borderL4, brand, layer1, modulePlatform, hover, hoverSolid, hoverDanger, error, success, primaryFill, primaryHover, primaryFg, chevronSelectSvg: chevronSvg, focusRing } = sharedStyles+const { primary, secondary, tertiary, dimmed, borderL3, borderL4, brand, layer1, modulePlatform, hover, hoverSolid, hoverDanger, error, success, primaryFill, primaryHover, primaryFg, chevronSelectSvg: chevronSvg, focusRing } = sharedStyles/*** 跨组件通用的官方控件复刻(input / selectInput / textarea / iconButton /@@ -39,7 +39,7 @@ export default c([c('&:hover', { background: 'var(--dsw-alias-interactive-bg-hover)' }),]),// —— 任务 / 执行记录行(task-card.tsx 与 runs-tab.tsx 共用,须随注册样式挂载)——- c('.dshp-scheduler__card', { boxSizing: 'border-box', display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: '10px', width: '100%', minWidth: '0', height: '60px', padding: '10px 12px', border: `1px solid ${borderL2}`, borderRadius: '10px', background: 'transparent', color: 'inherit', font: 'inherit', fontSize: '13px', lineHeight: '20px', textAlign: 'left', cursor: 'pointer', overflow: 'hidden' }),+ c('.dshp-scheduler__card', { boxSizing: 'border-box', display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: '10px', width: '100%', minWidth: '0', height: '60px', padding: '10px 12px', borderRadius: '10px', background: 'transparent', color: 'inherit', font: 'inherit', fontSize: '13px', lineHeight: '20px', textAlign: 'left', cursor: 'pointer', overflow: 'hidden' }),c('.dshp-scheduler__card:hover', { background: hover }),c('.dshp-scheduler__card--paused', { opacity: '.6' }),c('.dshp-scheduler__card-title', { display: 'flex', alignItems: 'center', gap: '8px', margin: '0', fontSize: '13px', lineHeight: '18px', fontWeight: '500', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }),diff --git a/packages/dsh-tauri-ui/src/client/styles/global.cssr.ts b/packages/dsh-tauri-ui/src/client/styles/global.cssr.tsindex ef35eab8..fba229c7 100644--- a/packages/dsh-tauri-ui/src/client/styles/global.cssr.ts+++ b/packages/dsh-tauri-ui/src/client/styles/global.cssr.ts@@ -9,6 +9,7 @@ export default c([}),c('[class$="entry"]:has(> button)', {padding: '0',+ gap: 0,}),c('[class$="entry"]', {border: 'none',diff --git a/src/layout/components/navbar.tsx b/src/layout/components/navbar.tsxindex 942d1171..01f96a7b 100644--- a/src/layout/components/navbar.tsx+++ b/src/layout/components/navbar.tsx@@ -197,7 +197,7 @@ export function Navbar({ sidebarCollapsed = false, onToggleSidebar, onNewChat, oif (key === 'check-update')void handleCheckUpdate()else if (key === 'about')- void openAboutDialog().catch(() => {})+ void openAboutDialog().catch(() => { })else if (key === 'copy-run-logs')void copyRunLogs()else if (key === 'documentation')@@ -256,16 +256,16 @@ export function Navbar({ sidebarCollapsed = false, onToggleSidebar, onNewChat, o}function handleOpenConfig() {- void openConfigDialog().catch(() => {})+ void openConfigDialog().catch(() => { })}function handleOpenAbout() {- void openAboutDialog().catch(() => {})+ void openAboutDialog().catch(() => { })}/** 「更新可用」chip:与帮助菜单「检查更新」打开同一个更新对话框 */function handleOpenUpdateDialog() {- void openUpdateDialog().catch(() => {})+ void openUpdateDialog().catch(() => { })}/** 「检查更新」:先检查,有更新才弹框;检查失败提示错误而非「已是最新」 */@@ -480,19 +480,6 @@ export function Navbar({ sidebarCollapsed = false, onToggleSidebar, onNewChat, o</Dropdown></div></If>- {/* 「更新可用」chip:紧跟「帮助」右侧。检测到新版本即出现(安装包此时已在静默下载),- 点击进入更新对话框查看进度 / 打开已下载的安装包。macOS 的「帮助」在原生菜单栏,- 这里同样显示该 chip,保证三平台都有可见的更新入口。 */}- <If cond={updateInfo != null}>- <Chip- color="success"- size="sm"- className="ml-1 cursor-pointer text-xs"- onClick={handleOpenUpdateDialog}- >- {t('update.chip_available')}- </Chip>- </If><If cond={import.meta.env.DEV}><Chip size="sm" variant="primary" color="warning" className="text-xs text-background ml-1">{t('app.dev_env')}@@ -510,6 +497,21 @@ export function Navbar({ sidebarCollapsed = false, onToggleSidebar, onNewChat, o<div className="absolute" style={dshStyle.marked || {}} />+ {/* 「更新可用」chip:紧跟「帮助」右侧。检测到新版本即出现(安装包此时已在静默下载),+ 点击进入更新对话框查看进度 / 打开已下载的安装包。macOS 的「帮助」在原生菜单栏,+ 这里同样显示该 chip,保证三平台都有可见的更新入口。 */}+ <If cond={updateInfo != null}>+ <Chip+ color="success"+ size="sm"+ variant="soft"+ className="ml-1 cursor-pointer text-xs mr-1"+ onClick={handleOpenUpdateDialog}+ >+ {t('update.chip_available')}+ </Chip>+ </If>+<If cond={!IS_MACOS}><ButtonclassName="rounded-lg size-7"