Skip to content
dsh-invest 文档
Esc
↑↓navigate↵open⌘Jpreview
On this page

配置字段

Config schema 的字段、取值、默认值与说明。

设置 → 通用:外观、回放与更新通道。

设置 → 通用:外观、回放与更新通道。

packages/dsh-invest/src/config.ts 的 Config schema 字段。用户偏好字段的运行时真源是 packages/dsh-invest/src/shared/prefs.ts 的 PREF_FIELDS。

字段 类型 必填 说明
colorScheme cn | intl 否 涨跌配色。默认 cn(红涨绿跌):自选、行情与投顾文案都按国内习惯写, 图表此前用 Vela 默认才显得是绿涨。切到 intl 只是把两个语义色对调。
externalLinkOpening browser | in-app 否 外部链接的打开方式。默认 browser:保持改造前的行为(系统浏览器新标签页), 也是「这个部署没有宿主浏览器 tab」时唯一能走通的那条路。
injectInvestAction boolean 否 默认 true。向 agent 注册 invest_action 工具;关闭后 agent 不能调用投资动作,界面功能不受影响。
logLevel off | error | warn | info | debug 否 默认 info
otlpEndpoint string 否 默认空字符串。OTLP logs 端点;空串表示没配。
panelSwitch switch | ask 否 默认 switch。后台会话请求打开面板时的处理方式。
pinToSidebar boolean 否 默认 true。把投资工作台固定到宿主的左侧栏:注册原生 sidebar.panellist 入口与配对的 main 整页。
restoreOnBoot boolean 否 默认 false
sceneSelection auto | declared 否 默认 auto
telemetry off | local | otlp 否 默认 local
updateChannel latest | next 否 插件更新通道。默认 latest:npm 的默认 tag,也就是正式版。

Was this page helpful?