Add the browser Settings surface as slot-composed plugins over new preference services: - Rename dsh-client-i18n to dsh-client-locale (locale is the domain name); LocaleService adds getLocale()/setLocale(id), immutable snapshots, a locale/change event, and dsh.locale persistence. - ThemeService owns the light/dark/system preference (default system), resolves system via prefers-color-scheme, publishes theme/change snapshots, persists dsh.theme, and no longer touches the DOM; ui-layout's ThemePresenter applies resolved snapshots (body[data-ds-dark-theme] + alias tokens) and cleans up on dispose. - ui-sidebar drops the phase-1 settings dropdown/modal; the foot renders the new sidebar.settings slot with the column state. - New ui-settings shell occupies sidebar.settings: foot trigger row and the centered 1080x700 panel (figma 501:29947) with 24% mask, close button / mask click / Escape all closing, and a 188px nav projected from the settings.section list slot it declares. Nav labels are registrant-localized; sections re-register on locale change, so the ledger version is the shell's only subscription. - ui-settings-general registers the General section: Permission and Tool Call skeletons, live Language (locale menu) and Appearance (Light/Dark/System cubes following the persisted preference); its slot store mirrors both service snapshots via apply-side listeners. - ui-settings-models registers the Models nav entry with an empty content column. - Portaled menus pin z-index above modal overlays (a menu anchored inside the settings dialog rendered underneath it and was unclickable). - theme/data/list-pen icons in ui-primitives; settings copy ships as zh/en dictionaries; fixture manifests gain the settings rows.
87 lines
3.7 KiB
JSON
87 lines
3.7 KiB
JSON
{
|
|
"name": "@deepseek-ai/dsh",
|
|
"description": "dsh CLI: interactive TUI, headless task, and browser UI surfaces",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"bin": {
|
|
"dsh": "lib/bin.js"
|
|
},
|
|
"files": [
|
|
"lib/bin.js",
|
|
"cordis.yml",
|
|
"src"
|
|
],
|
|
"license": "BSD-3-Clause",
|
|
"dependencies": {
|
|
"@cordisjs/plugin-include": "workspace:*",
|
|
"@cordisjs/plugin-loader": "workspace:*",
|
|
"@cordisjs/plugin-timer": "workspace:*",
|
|
"@deepseek-ai/dsh-agent": "workspace:^",
|
|
"@deepseek-ai/dsh-agent-loop": "workspace:^",
|
|
"@deepseek-ai/dsh-app-boot": "workspace:^",
|
|
"@deepseek-ai/dsh-bash-local": "workspace:^",
|
|
"@deepseek-ai/dsh-client-connection": "workspace:^",
|
|
"@deepseek-ai/dsh-client-hmr": "workspace:^",
|
|
"@deepseek-ai/dsh-client-locale": "workspace:^",
|
|
"@deepseek-ai/dsh-client-modules": "workspace:^",
|
|
"@deepseek-ai/dsh-client-runtime": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-conversation": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-layout": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-question": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-sidebar": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-settings": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-settings-general": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-settings-models": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-theme": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-trajectory": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-workspace": "workspace:^",
|
|
"@deepseek-ai/dsh-compact-basic": "workspace:^",
|
|
"@deepseek-ai/dsh-frontend": "workspace:^",
|
|
"@deepseek-ai/dsh-fs-local": "workspace:^",
|
|
"@deepseek-ai/dsh-fs-policy": "workspace:^",
|
|
"@deepseek-ai/dsh-host-apiproxy": "workspace:^",
|
|
"@deepseek-ai/dsh-host-webserver": "workspace:^",
|
|
"@deepseek-ai/dsh-llm": "workspace:^",
|
|
"@deepseek-ai/dsh-llm-deepseek": "workspace:^",
|
|
"@deepseek-ai/dsh-paths": "workspace:^",
|
|
"@deepseek-ai/dsh-session": "workspace:^",
|
|
"@deepseek-ai/dsh-session-persistence-jsonl": "workspace:^",
|
|
"@deepseek-ai/dsh-session-title": "workspace:^",
|
|
"@deepseek-ai/dsh-session-title-first-message-llm": "workspace:^",
|
|
"@deepseek-ai/dsh-skill": "workspace:^",
|
|
"@deepseek-ai/dsh-skill-local": "workspace:^",
|
|
"@deepseek-ai/dsh-spill-local": "workspace:^",
|
|
"@deepseek-ai/dsh-spill-policy": "workspace:^",
|
|
"@deepseek-ai/dsh-storage": "workspace:^",
|
|
"@deepseek-ai/dsh-storage-domain": "workspace:^",
|
|
"@deepseek-ai/dsh-storage-json": "workspace:^",
|
|
"@deepseek-ai/dsh-subagent": "workspace:^",
|
|
"@deepseek-ai/dsh-subagent-fork": "workspace:^",
|
|
"@deepseek-ai/dsh-subagent-spawn": "workspace:^",
|
|
"@deepseek-ai/dsh-system-prompt": "workspace:^",
|
|
"@deepseek-ai/dsh-tasks": "workspace:^",
|
|
"@deepseek-ai/dsh-timeout-policy": "workspace:^",
|
|
"@deepseek-ai/dsh-token-meter": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-bash": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-fs": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-fs-search": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-skill": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-subagent": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-tasks": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-todo": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-workflow": "workspace:^",
|
|
"@deepseek-ai/dsh-tools": "workspace:^",
|
|
"@deepseek-ai/dsh-tui": "workspace:^",
|
|
"@deepseek-ai/dsh-user-interaction": "workspace:^",
|
|
"@deepseek-ai/dsh-workflow-workerthread": "workspace:^",
|
|
"@deepseek-ai/dsh-workspace": "workspace:^",
|
|
"@deepseek-ai/dsh-workspace-context": "workspace:^",
|
|
"cordis": "^4.0.0-rc.7",
|
|
"js-yaml": "^4.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/js-yaml": "^4.0.9"
|
|
}
|
|
}
|