@dshtrading/gui 0.0.0-stage → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +75 -0
- package/cordis.patch.yml +128 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +42 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Copyright (c) 2026 zhu1090093659 (dsh-trading)
|
|
2
|
+
|
|
3
|
+
# PolyForm Noncommercial License 1.0.0
|
|
4
|
+
|
|
5
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
14
|
+
|
|
15
|
+
## Distribution License
|
|
16
|
+
|
|
17
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Notices
|
|
20
|
+
|
|
21
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
22
|
+
|
|
23
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
24
|
+
|
|
25
|
+
## Changes and New Works License
|
|
26
|
+
|
|
27
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
28
|
+
|
|
29
|
+
## Patent License
|
|
30
|
+
|
|
31
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
32
|
+
|
|
33
|
+
## Noncommercial Purposes
|
|
34
|
+
|
|
35
|
+
Any noncommercial purpose is a permitted purpose.
|
|
36
|
+
|
|
37
|
+
## Personal Uses
|
|
38
|
+
|
|
39
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
40
|
+
|
|
41
|
+
## Noncommercial Organizations
|
|
42
|
+
|
|
43
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
44
|
+
|
|
45
|
+
## Fair Use
|
|
46
|
+
|
|
47
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
48
|
+
|
|
49
|
+
## No Other Rights
|
|
50
|
+
|
|
51
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
52
|
+
|
|
53
|
+
## Patent Defense
|
|
54
|
+
|
|
55
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
56
|
+
|
|
57
|
+
## Violations
|
|
58
|
+
|
|
59
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
60
|
+
|
|
61
|
+
## No Liability
|
|
62
|
+
|
|
63
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
64
|
+
|
|
65
|
+
## Definitions
|
|
66
|
+
|
|
67
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
68
|
+
|
|
69
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
70
|
+
|
|
71
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
72
|
+
|
|
73
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
74
|
+
|
|
75
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# @dshtrading/gui —— GUI 平面 bundle 的 patch 层(insert-only,README 设计铁律 #1)。
|
|
2
|
+
#
|
|
3
|
+
# 平面划分(design/bot-and-auto-trading.md §10「按包边界切,不按市场切」):
|
|
4
|
+
# host 平面(bot 与 GUI 都装)= @dshtrading/base;
|
|
5
|
+
# GUI 平面(只有 GUI 装)= 本包;bot API 平面 = @dshtrading/bot-api(随后落地)。
|
|
6
|
+
#
|
|
7
|
+
# 2026-10-01 P1 拆包:本层的 11 行**原样从 @dshtrading/base 搬来**——行 id 与 name
|
|
8
|
+
# 一字不改(行 id 是跨版本公共契约,见 scripts/patch-id-freeze.json),只换了拥有者。
|
|
9
|
+
# 为什么这些行归 GUI 平面:它们都是浏览器半(语言包/设置面/中栏视图/更新对话框)或
|
|
10
|
+
# 只有 web 宿主才有意义的双半行(IM/插件管理器/模型能力声明——host 半硬 inject
|
|
11
|
+
# webServer/connection,headless 下必然 pending,靠 disabled: !!js 条件禁用兜底)。
|
|
12
|
+
# bot 安装闭包不得出现任何 @dshtrading/client-ui-*(P1 步骤 4 的判据)。
|
|
13
|
+
#
|
|
14
|
+
# 注意:patch 文件必须保持「顶层 YAML 数组」形状(loadProfile → parsePatchList 对非数组
|
|
15
|
+
# 直接抛错);只允许 insert(按 id 打已存在行 = 整行替换,多 bundle 并存会互相覆盖)。
|
|
16
|
+
- insert:
|
|
17
|
+
# 交易设置一级菜单(2026-08-29 浏览器半包,docs/exchange-routing.md §6):
|
|
18
|
+
# dsh.client 双面包(node 半空 apply + 浏览器半注册 settings.section id=trading)。
|
|
19
|
+
# 浏览器侧由 web 宿主的 dsh-client-modules 扫描 loader entries 进 __DSH_BOOT__;
|
|
20
|
+
# headless 宿主无 modules 行,此包被解析为普通 host 行(空 apply 无害)。
|
|
21
|
+
- id: dsh-trading-client-ui-settings
|
|
22
|
+
name: '@dshtrading/client-ui-settings'
|
|
23
|
+
# 中心化 i18n 语言包(feat/i18n-zh-cn):注册「简体中文」(zh-CN) 进宿主
|
|
24
|
+
# Settings → General 语言目录,并为全部 dshtrading.* 命名空间注册 zh-CN
|
|
25
|
+
# 词典(构建期 import 各 UI 包 locales.ts 纯数据模块,zh-CN ≡ zh 零漂移)。
|
|
26
|
+
# 纯浏览器半语言包(dsh-web dsh-i18n 范式),headless 宿主空 apply 无害。
|
|
27
|
+
# 包名解析依赖本包 dependencies 里的 @dshtrading/dsh-i18n(进 profile 安装
|
|
28
|
+
# 闭包,S3 坑 3 同款;缺行 = npm 新装 profile 启动即 ERR_MODULE_NOT_FOUND,
|
|
29
|
+
# issue #60 实测)。
|
|
30
|
+
- id: dsh-trading-dsh-i18n
|
|
31
|
+
name: '@dshtrading/dsh-i18n'
|
|
32
|
+
# 交易 GUI 壳(第二阶段富途式三栏,2026-08-30):左栏市场/自选遮蔽
|
|
33
|
+
# sidebar.workspaces、中栏 conversation.view 加行情 tab、右栏 shell.overlay
|
|
34
|
+
# 会话面板;node 半注册 /dshtrading/api 行情桥(web 宿主,headless 挂起无害)。
|
|
35
|
+
- id: dsh-trading-client-ui-trading
|
|
36
|
+
name: '@dshtrading/client-ui-trading'
|
|
37
|
+
# 预置指标提供插件(2026-08-30 指标插件化):client 半 provide
|
|
38
|
+
# tradingIndicators 服务(IndicatorRegistry,预置 MA/EMA/BOLL/MACD/RSI/KDJ);
|
|
39
|
+
# 社区/自定义指标插件 inject 该服务 register definition 即可上榜。
|
|
40
|
+
# headless 宿主解析为空 apply host 行,无害。
|
|
41
|
+
- id: dsh-trading-client-ui-indicators
|
|
42
|
+
name: '@dshtrading/client-ui-indicators'
|
|
43
|
+
# 策略中栏视图(issue #34 / P5 拆包):client 半 inject tradingStageViews
|
|
44
|
+
# 注册「策略」tab + tool.call.toolview 富卡片(strategy_backtest/author);
|
|
45
|
+
# 引擎经 @dshtrading/strategies 纯库 import,桥走 shell 的 tradingBridge
|
|
46
|
+
# 服务。headless 宿主解析为空 apply host 行,无害。
|
|
47
|
+
- id: dsh-trading-client-ui-strategies
|
|
48
|
+
name: '@dshtrading/client-ui-strategies'
|
|
49
|
+
# 知识库中栏视图(issue #34 / P5 拆包):client 半 inject tradingStageViews
|
|
50
|
+
# 注册「知识库」tab;force-graph 力导图谱随本包打包(shell 已卸下该依赖)。
|
|
51
|
+
# headless 宿主解析为空 apply host 行,无害。
|
|
52
|
+
- id: dsh-trading-client-ui-knowledge
|
|
53
|
+
name: '@dshtrading/client-ui-knowledge'
|
|
54
|
+
# 大师金句活动词语言包(2026-09-05):client 半注册「中文 · 大师金句」
|
|
55
|
+
# (zh-masters,fallback zh)语言目录项 + 覆盖宿主 chat.deepDiving 单键
|
|
56
|
+
# (输入框上方轮次状态行「深度求索中...」)为利弗莫尔/巴菲特/索罗斯等
|
|
57
|
+
# 金句并定时轮换;(ns, locale) 单一占主语义下的语言包补位范式
|
|
58
|
+
# (dsh-trading-dsh-i18n 同款)。headless 宿主解析为空 apply host 行,无害。
|
|
59
|
+
- id: dsh-trading-client-ui-masters-quotes
|
|
60
|
+
name: '@dshtrading/client-ui-masters-quotes'
|
|
61
|
+
# 自动更新插件(2026-09-04):软件更新对话框(client-ui-updater 浏览器半
|
|
62
|
+
# 注册 shell.overlay;入口在 client-ui-trading 左栏底栏设置按钮旁)+ node 半
|
|
63
|
+
# /dshtrading/api/updater 桥(GitHub Releases 检测 +
|
|
64
|
+
# @dshtrading/* 家族增量更新)。node 半依赖 webServer/connection(headless
|
|
65
|
+
# 挂起无害);增量通道只作用于桌面版 seeded profile(.dsh-desktop-seed.json
|
|
66
|
+
# 标记),dev/headless profile 降级为发布页链接。包名解析依赖本包
|
|
67
|
+
# dependencies 里的 @dshtrading/client-ui-updater(进 profile 安装闭包,
|
|
68
|
+
# S3 坑 3 同款)。
|
|
69
|
+
- id: dsh-trading-client-ui-updater
|
|
70
|
+
name: '@dshtrading/client-ui-updater'
|
|
71
|
+
|
|
72
|
+
# 会话归纳 / 使用统计(@linxin666/dsh-session-archive、@linxin666/dsh-usage)
|
|
73
|
+
# 2026-09-23 随 0.1.7 cohort 移除:二者客户端半硬注入已删的 ctx.settingsScope
|
|
74
|
+
# (0.1.7 改为 configForms),在 0.1.7 下永久 pending、UI 静默消失;官方 0.1.7
|
|
75
|
+
# 已原生提供会话归档/置顶管理与「性能与用量」设置。详见
|
|
76
|
+
# .agents/notes/implemented/feature/2026-09-08-npm-embed-usage-plugin-manager-model-capabilities.md。
|
|
77
|
+
# IM 机器人接入(2026-09-06,npm 复用社区插件 @xmanrui/dsh-im):飞书/微信/
|
|
78
|
+
# 钉钉/企业微信/QQ/Slack/Telegram/Discord/WhatsApp 九渠道机器人接入,
|
|
79
|
+
# 单行双半:host 半(渠道连接/流式回复,凭据只进宿主受保护凭据存储)+
|
|
80
|
+
# 浏览器半(设置 → IM机器人 配置面,section order 21,与 updater 的
|
|
81
|
+
# order 20 相邻不冲突)。市场无关共享行,归 base 所有(铁律 #1)。
|
|
82
|
+
# 凭据须用户在设置面板显式配置,未配置时各渠道空闲待命,insert 不改变
|
|
83
|
+
# 交易会话数据安全面。包名解析依赖本包 dependencies 里的
|
|
84
|
+
# @xmanrui/dsh-im(进 profile 安装闭包,S3 坑 3 同款)。版本由 base 的
|
|
85
|
+
# package.json 与工作区 lockfile 统一管理,升级后需刷新用户 profile。
|
|
86
|
+
# 注意:本行即内置安装,勿再对 profile 执行 `dsh plugin add
|
|
87
|
+
# @xmanrui/dsh-im`——其自带 patch(id xmanrui-dsh-im)会与本行重复
|
|
88
|
+
# 挂载同一插件,设置面二次注册。
|
|
89
|
+
# 行安全(issue #88):host 半硬 inject connection/credentials/typertGateway,
|
|
90
|
+
# headless 宿主缺 connection 即永久 pending → 启动即崩;按提供方行条件禁用
|
|
91
|
+
# (见文件头「条件禁用行」)。
|
|
92
|
+
- id: dsh-trading-im
|
|
93
|
+
name: '@xmanrui/dsh-im'
|
|
94
|
+
disabled: !!js (![...loader.entries()].some((entry) => entry.options.name === '@deepseek-ai/dsh-client-connection'))
|
|
95
|
+
|
|
96
|
+
# 插件管理(2026-09-08,npm 复用 dsh-web 项目同款插件
|
|
97
|
+
# @linxin666/dsh-client-ui-plugin-manager):官方「插件」设置区的
|
|
98
|
+
# Plugin manager 标签页(settings.plugins.tab order 20),npm/git 安装、
|
|
99
|
+
# 启用开关、更新校验、卸载、安装冲突回滚与「让 agent 修」修复会话。
|
|
100
|
+
# 0.3.20 起管理列表展示 bundle 的子行,内置 IM/使用统计/会话管理在
|
|
101
|
+
# base 下可见;无需把这些包再次加入 profile bundles。
|
|
102
|
+
# 双通道:官方 installer 通道存在时走 /plugin-installer RPC;npm 发布版
|
|
103
|
+
# web 运行时无该通道,由本包 host 半挂 loopback 网关、派生官方 dsh CLI
|
|
104
|
+
# 写入 profile(唯一写者)。CLI 解析顺序 = 宿主 PATH → 宿主入口向上
|
|
105
|
+
# node_modules/.bin/dsh → darwin /opt/homebrew|/usr/local/bin/dsh;
|
|
106
|
+
# 桌面版自带 runtime 无全局 CLI,由 desktop 构建期投放
|
|
107
|
+
# runtime/host/node_modules/.bin/dsh 垫片补齐(本变更同批落地)。
|
|
108
|
+
# 市场无关共享行,归 base 所有(铁律 #1)。写入仅限本机 loopback
|
|
109
|
+
# (socket+Host+Origin+sec-fetch-site 四重校验,非 loopback 403)。
|
|
110
|
+
# 隐私面:浏览器半每日一次匿名安装心跳到 dsh-market.com(随机
|
|
111
|
+
# localStorage id + 包名,无对话数据/无 IP),详见 Agent Note。
|
|
112
|
+
# 行安全(issue #88):host 半硬 inject webServer,headless 宿主缺服务即
|
|
113
|
+
# 永久 pending → 启动即崩;按提供方行条件禁用(见文件头「条件禁用行」)。
|
|
114
|
+
- id: dsh-trading-plugin-manager
|
|
115
|
+
name: '@linxin666/dsh-client-ui-plugin-manager'
|
|
116
|
+
disabled: !!js (![...loader.entries()].some((entry) => entry.options.name === '@deepseek-ai/dsh-host-webserver'))
|
|
117
|
+
# 模型能力声明(2026-09-08,npm 复用 dsh-web 项目同款插件
|
|
118
|
+
# @linxin666/dsh-client-ui-model-capabilities):在官方「模型」设置页的
|
|
119
|
+
# 自定义 provider 卡片(llm-pi-ai 家族)内就地声明每模型的图片输入与
|
|
120
|
+
# 推理档位(settings.models.provider-card keyed slot + footer 归档区),
|
|
121
|
+
# 并支持 provider 级禁用/恢复归档。写回官方 llm-pi-ai settings
|
|
122
|
+
# namespace(整数组覆盖,非本插件字段原样保留),无 DSH 源码改动。
|
|
123
|
+
# host 半只注册自身 namespace dsh-model-capabilities(禁用 provider 归档)。
|
|
124
|
+
# 适配点:本仓 llm-pi-ai 路由(kimi-coding / zai-coding-cn 等)即在该
|
|
125
|
+
# 卡片体系内,能力声明直接生效;llm-deepseek 固定目录不在覆盖范围
|
|
126
|
+
# (官方能力面自带)。市场无关共享行,归 base 所有(铁律 #1)。
|
|
127
|
+
- id: dsh-trading-model-capabilities
|
|
128
|
+
name: '@linxin666/dsh-client-ui-model-capabilities'
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dshtrading/gui",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "GUI-plane bundle for dsh-trading: the browser-half rows (settings shell, stage views, language packs, updater dialog) and the web-host-only dual-half rows (IM, plugin manager, model capabilities). Split out of @dshtrading/base on 2026-10-01 so the bot install closure carries no @dshtrading/client-ui-* dependency. Row ids and names moved verbatim (they are a cross-version public contract).",
|
|
4
|
+
"version": "0.6.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"types": "./lib/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/index.d.ts",
|
|
11
|
+
"default": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"lib",
|
|
18
|
+
"cordis.patch.yml"
|
|
19
|
+
],
|
|
20
|
+
"license": "PolyForm-Noncommercial-1.0.0",
|
|
21
|
+
"dsh": {
|
|
22
|
+
"bundle": {
|
|
23
|
+
"patch": "./cordis.patch.yml"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@xmanrui/dsh-im": "^4.20.2",
|
|
28
|
+
"@linxin666/dsh-client-ui-plugin-manager": "^0.3.21",
|
|
29
|
+
"@linxin666/dsh-client-ui-model-capabilities": "^0.3.21",
|
|
30
|
+
"@dshtrading/client-ui-settings": "^0.6.0",
|
|
31
|
+
"@dshtrading/client-ui-indicators": "^0.6.0",
|
|
32
|
+
"@dshtrading/client-ui-masters-quotes": "^0.6.0",
|
|
33
|
+
"@dshtrading/client-ui-strategies": "^0.6.0",
|
|
34
|
+
"@dshtrading/client-ui-updater": "^0.6.0",
|
|
35
|
+
"@dshtrading/client-ui-knowledge": "^0.6.0",
|
|
36
|
+
"@dshtrading/client-ui-trading": "^0.6.0",
|
|
37
|
+
"@dshtrading/dsh-i18n": "^0.6.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"tsdown": "^0.22.0"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsdown"
|
|
44
|
+
}
|
|
6
45
|
}
|
package/README.md
DELETED