@v587d/capital-generation 2.19.2 → 2.19.3
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/CHANGELOG.md +16 -0
- package/README.md +5 -8
- package/automation/package.json +1 -1
- package/chart-ui/package.json +1 -1
- package/config/package.json +1 -1
- package/lib/web-retriever/local-fetch.d.ts +1 -1
- package/lib/web-retriever/local-fetch.js +1 -1
- package/lib/web-retriever/wind-client.d.ts +1 -1
- package/lib/web-retriever/wind-client.js +1 -1
- package/locale/en.json +2 -1
- package/locale/zh.json +2 -1
- package/package.json +2 -1
- package/plugin-page/README.en.md +49 -0
- package/plugin-page/README.zh.md +49 -0
- package/watchlist/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,22 @@
|
|
|
7
7
|
- **第三位(patch)**:不破坏既有工具 / 配置 / 会话的新增与修复(如 2.1.1、2.1.2)。
|
|
8
8
|
- **第二位(minor)**:有需要用户知晓的行为变更,且段内附迁移说明(如 2.1.0 的图表呈现通道重做、2.2.0 的数据源与检索来源扩容、2.4.0 的**必须换宿主版本**、2.9.0 的选择器收敛与质检前置——本插件自己的工具与数据契约没变,所以只抬第二位)。
|
|
9
9
|
|
|
10
|
+
## [2.19.3] - 2026-11-09
|
|
11
|
+
|
|
12
|
+
插件页改为面向已安装用户的索引页;README 补清版本检查与回滚路径。
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **插件页详情文档**:`locale/zh.json` / `locale/en.json` 的 `meta.detail` 指向 `plugin-page/README.zh.md` / `.en.md`;页面只保留徽章、一句话定位、三种模式一览、CapGen 投研自动化、首次使用、版本与回滚规则、风险提示和 README 索引,截图与能力数量仍住 README。
|
|
17
|
+
- **插件页徽章**:使用 npm 动态版本徽章(`img.shields.io/npm/v/...`),版本随 npm 自动变;不复制 README 的静态版本徽章与 DSH 基线徽章。
|
|
18
|
+
- **README 版本检查说明**:只有用包名从 npm 安装的版本才显示「版本」段;回旧版要先卸载,再按精确版本重装,旧版必须匹配当前 DSH 基线。
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- **README 顶部 banner 移除**:徽章直接置顶;插件页也不再放 banner。
|
|
23
|
+
- **AGENTS.md 新增 §14 与 `docs/dev/plugin-page.md`**:角色树移入 `docs/dev/data-roles.md` §1.8,腾出注入体积。
|
|
24
|
+
- **README 配置指路**:配置卡在插件介绍下方,不再说「页面顶部」。
|
|
25
|
+
|
|
10
26
|
## [2.19.2] - 2026-11-09
|
|
11
27
|
|
|
12
28
|
投研自动化看板支持对任务简报直接追问,重新进入页面不再等待取数;TODO 依据行的「打开 session」收成箭头图标。
|
package/README.md
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="assets/banner.jpg" alt="Capital Generation Banner" width="100%">
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
1
|
<p align="center">
|
|
6
2
|
<a href="https://github.com/v587d/capital-generation"><img src="https://img.shields.io/badge/Market-CN%20%7C%20HK%20%7C%20US-orange" alt="Market·CN+HK+US"></a>
|
|
7
3
|
<a href="https://github.com/v587d/capital-generation"><img src="https://img.shields.io/badge/Financial-Agent-red" alt="Financial Agent"></a>
|
|
@@ -18,7 +14,7 @@
|
|
|
18
14
|
<p align="center">
|
|
19
15
|
<a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="awesome · DSH plugin"></a>
|
|
20
16
|
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-green" alt="License"></a>
|
|
21
|
-
<a href="https://github.com/v587d/capital-generation/releases"><img src="https://img.shields.io/badge/version-2.19.
|
|
17
|
+
<a href="https://github.com/v587d/capital-generation/releases"><img src="https://img.shields.io/badge/version-2.19.3-9cf" alt="Version"></a>
|
|
22
18
|
<a href="https://www.npmjs.com/package/@v587d/capital-generation"><img src="https://img.shields.io/npm/v/%40v587d%2Fcapital-generation" alt="npm version"></a>
|
|
23
19
|
<a href="https://github.com/deepseek-ai/deepseek-harness"><img src="https://img.shields.io/badge/powered_by-dsh-4D6BFE?style=flat-square&logo=deepseek&logoColor=white" alt="powered-by-dsh"></a>
|
|
24
20
|
</p>
|
|
@@ -200,10 +196,11 @@ Capital Generation 是运行在 [DeepSeek Harness(DSH)](https://github.com/d
|
|
|
200
196
|
## 常见问题
|
|
201
197
|
|
|
202
198
|
- **安装后找不到模式?** 确认插件出现在「插件」→ 已安装列表;Web / CLI profile 安装后要重启该 profile,并在新会话选择模式。选择器里应看到自动模式、行情专家、资讯专员;分析师和绘图专员是自动模式的内部角色,不会出现在这里。
|
|
203
|
-
- **配置在哪?** 打开「插件」→ 已安装的 **Capital Generation
|
|
199
|
+
- **配置在哪?** 打开「插件」→ 已安装的 **Capital Generation**,插件介绍下方就是「数据源 / 投研自动化 / 精选 Skills / 包含的组件」四格,五把密钥都在第一格;第二格可指定任务统一使用的默认工作区,也能改自动检查间隔与最长运行时间等上限;不在 DSH 的普通「设置」页面,也不用点进任何一行组件。保存密钥后新建会话再试。
|
|
204
200
|
- **升级到 2.9.0 后,分析师和绘图专员去哪了?** 这一版把它们收进自动模式内部,不再出现在选择器与预设管理里,避免误开一个没有取数入口的空会话。旧会话仍能按原身份恢复;新任务直接用自动模式提出即可。
|
|
205
|
-
- **桌面端升级后仍是旧版?** 桌面端安装时会固定所解析的版本,不会自动升级。卸载后重新安装,再到插件详情查看版本号;如需指定版本,可在地址末尾加 `#v2.19.
|
|
206
|
-
- **刚发布的新版本装不到?**
|
|
201
|
+
- **桌面端升级后仍是旧版?** 桌面端安装时会固定所解析的版本,不会自动升级。卸载后重新安装,再到插件详情查看版本号;如需指定版本,可在地址末尾加 `#v2.19.3` 或 `@2.19.3`。
|
|
202
|
+
- **刚发布的新版本装不到?** 桌面端取包时会跳过**刚发布不久**的版本(宿主侧包管理器的发布冷却策略,实测会静默装成上一个版本),国内镜像的同步也可能滞后一段时间。急着用最新代码,改用仓库地址安装最直接;但仓库地址安装的是 git 依赖,插件页不显示「版本」检查。
|
|
203
|
+
- **插件页的「版本」段怎么用?** 只有用包名从 npm 安装的版本才有;它只列比当前新的版本。回旧版要先卸载,再安装 `@v587d/capital-generation@版本号`(桌面端地址末尾加 `#v版本号`);旧版必须匹配当前 DSH 基线,对应关系见 [CHANGELOG 的 Migration](CHANGELOG.md)。
|
|
207
204
|
- **网页抓取失败?** 配置卡片中的「允许启动本地提取网页内容」默认开启:AnySearch 提取失败时可尝试本机直连。关闭后,本机直连的具名来源查询也不可用;请检查该开关和网络连接。
|
|
208
205
|
- **Wind 那部分会消耗积分?** 会。Wind 的公告 / 新闻语义检索、宏观 / 行业 / 汇率指标、按日期区间取的历史 K 线都按次消耗你在 Wind 侧的额度;额度与条款以 Wind 为准,插件不做用量封顶。没配 `WIND_API_KEY` 时这几类不可用,其余功能照常——公告清单与正文有零密钥的东财工具,不配 Wind 也能查。
|
|
209
206
|
- **没有加载想要的精选 Skill?** 先看「智能装载 Skills」开关:关着时只给已勾选的方法;打开后按角色放开全部方法,但仍由模型判断任务是否命中。再确认它归哪个预设——自动模式偏研究/组合/写作,估值、财务与筛选由分析师在计算时加载,文档深读与核验由资讯专员加载。列表上方可以按「Skill 特点」和「适用预设」两个维度取交集筛选;点技能名可看原文。需要强制使用时,在对话里直接输入 `/` 加原文中的英文名(例如 `/china-earnings-analysis`),不要用中文标题。
|
package/automation/package.json
CHANGED
package/chart-ui/package.json
CHANGED
package/config/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Known limit: DNS resolves per request but the IP is not pinned to the connection,
|
|
4
4
|
* so a rebinding window remains (same trade-off as dsh-search-first).
|
|
5
5
|
*/
|
|
6
|
-
export declare const LOCAL_FETCH_CLIENT_VERSION = "2.19.
|
|
6
|
+
export declare const LOCAL_FETCH_CLIENT_VERSION = "2.19.3";
|
|
7
7
|
export declare const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
|
|
8
8
|
export type LocalFetchErrorCode = 'ABORTED' | 'TIMEOUT' | 'INVALID_URL' | 'BLOCKED_URL' | 'DNS' | 'REDIRECT' | 'HTTP' | 'TOO_LARGE' | 'UNSUPPORTED_CONTENT_TYPE';
|
|
9
9
|
export declare class LocalFetchError extends Error {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* so a rebinding window remains (same trade-off as dsh-search-first).
|
|
5
5
|
*/
|
|
6
6
|
import { htmlToMarkdown, stripInvisibleText } from './html-markdown.js';
|
|
7
|
-
export const LOCAL_FETCH_CLIENT_VERSION = '2.19.
|
|
7
|
+
export const LOCAL_FETCH_CLIENT_VERSION = '2.19.3';
|
|
8
8
|
export const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
|
|
9
9
|
export class LocalFetchError extends Error {
|
|
10
10
|
code;
|
|
@@ -35,7 +35,7 @@ export interface WindCallResult {
|
|
|
35
35
|
code?: WindErrorCode;
|
|
36
36
|
}
|
|
37
37
|
/** Must match `package.json` version; a test pins the two together. */
|
|
38
|
-
export declare const WIND_CLIENT_VERSION = "2.19.
|
|
38
|
+
export declare const WIND_CLIENT_VERSION = "2.19.3";
|
|
39
39
|
export interface WindClient {
|
|
40
40
|
callTool(toolName: string, args: Record<string, unknown>, signal?: AbortSignal): Promise<WindCallResult>;
|
|
41
41
|
}
|
|
@@ -19,7 +19,7 @@ export const WIND_SERVER_ENDPOINTS = {
|
|
|
19
19
|
analytics_data: 'https://mcp.wind.com.cn/vserver_analytics_data/mcp/',
|
|
20
20
|
};
|
|
21
21
|
/** Must match `package.json` version; a test pins the two together. */
|
|
22
|
-
export const WIND_CLIENT_VERSION = '2.19.
|
|
22
|
+
export const WIND_CLIENT_VERSION = '2.19.3';
|
|
23
23
|
function errorText(error) {
|
|
24
24
|
return error instanceof Error ? error.message : String(error);
|
|
25
25
|
}
|
package/locale/en.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Capital Generation",
|
|
4
|
-
"description": "Securities research plugin for A-share investors: market and financial data, filings, news, analysis and charts. Choose Capital mode in a new session."
|
|
4
|
+
"description": "Securities research plugin for A-share investors: market and financial data, filings, news, analysis and charts. Choose Capital mode in a new session.",
|
|
5
|
+
"detail": "plugin-page/README.en.md"
|
|
5
6
|
}
|
|
6
7
|
}
|
package/locale/zh.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v587d/capital-generation",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.3",
|
|
4
4
|
"description": "Capital Generation:面向中国散户的 AI 投资助手插件(自动模式 Agent Preset)",
|
|
5
5
|
"icon": "assets/cg-icon.png",
|
|
6
6
|
"author": "v587d",
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
"selected-skills/quant-agent-skills",
|
|
124
124
|
"cordis.patch.yml",
|
|
125
125
|
"assets/cg-icon.png",
|
|
126
|
+
"plugin-page",
|
|
126
127
|
"README.md",
|
|
127
128
|
"CHANGELOG.md",
|
|
128
129
|
"THIRD_PARTY_NOTICES.md"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@v587d/capital-generation)
|
|
2
|
+
[](https://github.com/v587d/capital-generation)
|
|
3
|
+
[](https://github.com/v587d/capital-generation)
|
|
4
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
5
|
+
[](https://github.com/v587d/capital-generation/blob/main/LICENSE)
|
|
6
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
7
|
+
|
|
8
|
+
Capital Generation is a securities research plugin for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness), built for individual investors following A-shares, Hong Kong, US markets and futures. After installation, new sessions offer **Auto**, **Market Expert**, and **News Specialist** modes.
|
|
9
|
+
|
|
10
|
+
> **Note**: This project is exploratory. It does not provide trading services, does not guarantee data completeness, timeliness or accuracy, and does not promise investment returns. Verify sources and accept market risk yourself.
|
|
11
|
+
|
|
12
|
+
## First use
|
|
13
|
+
|
|
14
|
+
1. Open **Plugins** → **Capital Generation**; the configuration card is **below this document**.
|
|
15
|
+
2. Fill in the keys you need (they can be left empty); new sessions pick up saved keys.
|
|
16
|
+
3. Create a session and choose **Auto**.
|
|
17
|
+
|
|
18
|
+
See [README quick start](https://github.com/v587d/capital-generation#快速上手) for installation, keys and desktop notes.
|
|
19
|
+
|
|
20
|
+
## Modes
|
|
21
|
+
|
|
22
|
+
| Mode | In one line |
|
|
23
|
+
|---|---|
|
|
24
|
+
| **Auto** (recommended) | Schedules data collection, checks, retrieval and charts, then answers with evidence |
|
|
25
|
+
| **Market Expert** | Fetches structured market, financial or macro data only; makes no judgment |
|
|
26
|
+
| **News Specialist** | Retrieves filings, news and interactive-platform material only; gives no advice |
|
|
27
|
+
|
|
28
|
+
Auto never fetches data or draws charts directly; every number needs a source and an as-of time. See [README modes](https://github.com/v587d/capital-generation#快速上手) for the full table.
|
|
29
|
+
|
|
30
|
+
## CapGen research automation
|
|
31
|
+
|
|
32
|
+
Built-in task templates cover news, quotes, reviews, research, portfolios and monitoring; they start a new session on schedule and can also be run manually. Tasks, the board, the run heatmap and notifications live on one page.
|
|
33
|
+
|
|
34
|
+
See [README CapGen automation](https://github.com/v587d/capital-generation#capgen-automation) for templates, budgets and notifications.
|
|
35
|
+
|
|
36
|
+
## Versions and rollback
|
|
37
|
+
|
|
38
|
+
- The **Versions** section only checks for versions newer than the installed one; older versions are never listed.
|
|
39
|
+
- To roll back: uninstall, then install `@v587d/capital-generation@version`; on Desktop, append `#vversion` to the address.
|
|
40
|
+
- An older version must match the running DSH baseline; see [CHANGELOG Migration](https://github.com/v587d/capital-generation/blob/main/CHANGELOG.md).
|
|
41
|
+
|
|
42
|
+
## More
|
|
43
|
+
|
|
44
|
+
- [Full README](https://github.com/v587d/capital-generation#readme)
|
|
45
|
+
- [Data collection capabilities](https://github.com/v587d/capital-generation/blob/main/docs/data-collector-capabilities.md)
|
|
46
|
+
- [Web retrieval capabilities](https://github.com/v587d/capital-generation/blob/main/docs/web-retriever-capabilities.md)
|
|
47
|
+
- [Research automation](https://github.com/v587d/capital-generation#capgen-automation)
|
|
48
|
+
- [FAQ](https://github.com/v587d/capital-generation#常见问题)
|
|
49
|
+
- [Changelog](https://github.com/v587d/capital-generation/blob/main/CHANGELOG.md)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@v587d/capital-generation)
|
|
2
|
+
[](https://github.com/v587d/capital-generation)
|
|
3
|
+
[](https://github.com/v587d/capital-generation)
|
|
4
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
5
|
+
[](https://github.com/v587d/capital-generation/blob/main/LICENSE)
|
|
6
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
7
|
+
|
|
8
|
+
Capital Generation 是运行在 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 里的证券研究插件,面向关注 A 股、港股、美股与期货等品种的个体投资者。安装后,新会话里会多出 **自动模式**、**行情专家**、**资讯专员** 三个模式。
|
|
9
|
+
|
|
10
|
+
> **注意**:本项目仍在探索中,不提供代交易服务,不保证数据完整、及时或准确,也不承诺投资回报。请自行核对来源并承担投资风险。
|
|
11
|
+
|
|
12
|
+
## 第一次使用
|
|
13
|
+
|
|
14
|
+
1. 打开「插件」→ **Capital Generation**;配置卡就在**本文下方**。
|
|
15
|
+
2. 按需填写密钥(可以留空);保存后新建会话。
|
|
16
|
+
3. 新建会话,选择 **自动模式**。
|
|
17
|
+
|
|
18
|
+
安装、密钥与桌面端说明见 [README 快速上手](https://github.com/v587d/capital-generation#快速上手)。
|
|
19
|
+
|
|
20
|
+
## 三种模式
|
|
21
|
+
|
|
22
|
+
| 模式 | 一句话 |
|
|
23
|
+
|---|---|
|
|
24
|
+
| **自动模式**(推荐) | 统一调度取数、质检、检索与绘图,汇总证据后答复 |
|
|
25
|
+
| **行情专家** | 只取结构化行情、财务或宏观数据,不做判断 |
|
|
26
|
+
| **资讯专员** | 只查公告、新闻与互动平台材料,不给建议 |
|
|
27
|
+
|
|
28
|
+
自动模式不直接取数,也不直接画图;每个数字都要有来源与截止时间。完整说明见 [README 三种模式](https://github.com/v587d/capital-generation#快速上手)。
|
|
29
|
+
|
|
30
|
+
## CapGen 投研自动化
|
|
31
|
+
|
|
32
|
+
内置多套任务模板,覆盖资讯、行情、复盘、研究、组合与监控;到点自动新建会话执行,也能手动运行。任务、看板、运行热力图与通知在同一页。
|
|
33
|
+
|
|
34
|
+
模板清单、运行预算与通知设置见 [README 的 CapGen 投研自动化](https://github.com/v587d/capital-generation#capgen-automation)。
|
|
35
|
+
|
|
36
|
+
## 版本与回滚
|
|
37
|
+
|
|
38
|
+
- 插件页的「版本」段只检查比当前更新的版本;旧版本不会出现在列表里。
|
|
39
|
+
- 回旧版:先卸载,再安装 `@v587d/capital-generation@版本号`;桌面端地址末尾加 `#v版本号`。
|
|
40
|
+
- 旧版本必须与当前 DSH 基线匹配;对应关系见 [CHANGELOG 的 Migration](https://github.com/v587d/capital-generation/blob/main/CHANGELOG.md)。
|
|
41
|
+
|
|
42
|
+
## 更多
|
|
43
|
+
|
|
44
|
+
- [完整 README](https://github.com/v587d/capital-generation#readme)
|
|
45
|
+
- [数据收集能力表](https://github.com/v587d/capital-generation/blob/main/docs/data-collector-capabilities.md)
|
|
46
|
+
- [网页检索能力表](https://github.com/v587d/capital-generation/blob/main/docs/web-retriever-capabilities.md)
|
|
47
|
+
- [投研自动化](https://github.com/v587d/capital-generation#capgen-automation)
|
|
48
|
+
- [常见问题](https://github.com/v587d/capital-generation#常见问题)
|
|
49
|
+
- [更新日志](https://github.com/v587d/capital-generation/blob/main/CHANGELOG.md)
|
package/watchlist/package.json
CHANGED