@v587d/capital-generation 2.6.1 → 2.6.2

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 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 的**必须换宿主版本**——本插件自己的工具与数据契约没变,所以只抬第二位)。
9
9
 
10
+ ## [2.6.2] - 2026-10-07
11
+
12
+ 新增一份示例报告([假期后研判报告](docs/sample/假期后研判报告.md)),README 首页的样例链接指向它;
13
+ 顺带把安装与升级说明里两处**说不准**的地方改对。**工具入参、数据能力、配置字段与会话日志格式都没变**,
14
+ 无需迁移,宿主仍要求 `0.2.0-rc.2`。
15
+
16
+ ### Changed
17
+
18
+ - **README**:首页样例链接换成新报告;桌面端「添加插件」补上直接填 `v587d/capital-generation`
19
+ 这一种写法(实测可用);FAQ 新增「刚发布的新版本装不到」——桌面端取包会**跳过刚发布不久的版本**
20
+ (宿主侧包管理器的发布冷却策略,实测静默降级到上一版),这一条此前被写成了"镜像延迟",不准确。
21
+ - **发版后自动通知 npmmirror 同步**。桌面端经国内镜像取 npm 包,而镜像同步是异步的:2.6.1 那次实测
22
+ 镜像恰好在官方源出现新版本**前两秒**完成过一次同步,之后十几小时没再碰这个包。CI 发版成功后 PUT
23
+ 一次 sync 端点(owner 的标准动作,无需鉴权,实测约 25 秒生效);同步失败不判红——官方源已可用,
24
+ 镜像晚点追上只是延迟。
25
+
10
26
  ## [2.6.1] - 2026-10-06
11
27
 
12
28
  这一版只动**发版这条路本身**:从"本机手动 `npm publish`"改成"推 tag 由 CI 发"。包内容、工具入参、
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
  <p align="center">
16
16
  <a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="awesome · DSH plugin"></a>
17
17
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-green" alt="License"></a>
18
- <a href="https://github.com/v587d/capital-generation/releases"><img src="https://img.shields.io/badge/version-2.6.1-9cf" alt="Version"></a>
18
+ <a href="https://github.com/v587d/capital-generation/releases"><img src="https://img.shields.io/badge/version-2.6.2-9cf" alt="Version"></a>
19
19
  </p>
20
20
 
21
21
  # Capital Generation
@@ -26,7 +26,7 @@ Capital Generation 是运行在 [DeepSeek Harness(DSH)](https://github.com/d
26
26
 
27
27
  **🎞️视频演示:**[安装、配置与使用](https://www.bilibili.com/video/BV1fzaZ6CE9J/)。
28
28
 
29
- 例如,你可以问:「复盘 XXXX 最近 20 个交易日的走势,结合公告和财务数据说明主要变化,并画一张量价图。」[查看报告样例](docs/sample/指南针复盘和预测报告.md)。
29
+ 例如,你可以问:「复盘 XXXX 最近 20 个交易日的走势,结合公告和财务数据说明主要变化,并画一张量价图。」[假期后研判报告(20261007)](docs/sample/假期后研判报告.md)。
30
30
 
31
31
  > [!IMPORTANT]
32
32
  > 本项目仍在探索中,不提供金融服务或投资建议,不保证数据完整、及时或准确,也不承诺投资回报。请自行核对来源并承担投资风险。
@@ -36,7 +36,7 @@ Capital Generation 是运行在 [DeepSeek Harness(DSH)](https://github.com/d
36
36
  > [!NOTE]
37
37
  > 适配 DSH`@0.2.0-rc.2`。已在 Linux 的 Web profile 和 Windows 桌面端验证;其他环境尚未充分测试。建议使用 `Deepseek/deepseek-flash` ,思考推理能力为 High ;GPT / Claude 尚未充分测试。
38
38
 
39
- 1. **安装插件。** Linux / macOS 的 Web 或 CLI profile 在终端执行,下面两条任选一条:
39
+ 1. **安装插件。** Linux / macOS 的 Web 或 CLI profile 在终端执行,下面两条 **任选一条** :
40
40
 
41
41
  ```bash
42
42
  dsh plugin --profile web add @v587d/capital-generation
@@ -44,7 +44,7 @@ Capital Generation 是运行在 [DeepSeek Harness(DSH)](https://github.com/d
44
44
  ```
45
45
 
46
46
  两条装完的功能一样:前者取 npm 上已发布的版本,后者取本仓库当前的代码。
47
- 安装后重启该 profile。Windows 桌面端在「添加插件」中输入 `https://github.com/v587d/capital-generation`。桌面端自带 DSH 宿主,不需要单独用 npm 安装宿主。本仓库已包含构建产物,普通用户不需要克隆仓库或运行构建命令。
47
+ 安装后重启该 profile。 Windows 桌面端在「添加插件」中输入 `https://github.com/v587d/capital-generation` 或 `v587d/capital-generation`。桌面端自带 DSH 宿主,不需要单独用 npm 安装宿主。本仓库已包含构建产物,普通用户不需要克隆仓库或运行构建命令。
48
48
 
49
49
  2. **选填密钥。** 打开 DSH 「插件」 → **Capital Generation** -> 「配置」。
50
50
 
@@ -98,7 +98,8 @@ Capital Generation 是运行在 [DeepSeek Harness(DSH)](https://github.com/d
98
98
 
99
99
  - **安装后找不到 Capital 模式?** 确认插件出现在「插件」→ 已安装列表;Web / CLI profile 安装后要重启该 profile,并在新会话选择模式。
100
100
  - **配置在哪?** 打开「插件」→ 已安装的 **Capital Generation**,页面里的「配置」段就是;不在 DSH 的普通「设置」页面,也不用点进「包含的组件」。保存密钥后新建会话再试。
101
- - **桌面端升级后仍是旧版?** 桌面端安装时会固定所解析的版本,不会自动升级。卸载后重新安装,再到插件详情查看版本号;如需指定版本,可在地址末尾加 `#v2.6.0`。
101
+ - **桌面端升级后仍是旧版?** 桌面端安装时会固定所解析的版本,不会自动升级。卸载后重新安装,再到插件详情查看版本号;如需指定版本,可在地址末尾加 `#v2.6.1` 或 `@2.6.1`。
102
+ - **刚发布的新版本装不到?** 桌面端取包时会跳过**刚发布不久**的版本(宿主侧包管理器的发布冷却策略,实测会静默装成上一个版本),国内镜像的同步也可能滞后一段时间。急着用最新代码,改用仓库地址安装最直接。
102
103
  - **网页抓取失败?** 配置卡片中的「允许启动本地提取网页内容」默认开启:AnySearch 提取失败时可尝试本机直连。关闭后,本机直连的具名来源查询也不可用;请检查该开关和网络连接。
103
104
  - **Wind 那部分会消耗积分?** 会。公告与新闻检索、宏观 / 行业 / 汇率指标、按日期区间取的历史 K 线都按次消耗你在 Wind 侧的额度;额度与条款以 Wind 为准,插件不做用量封顶。没配 `WIND_API_KEY` 时这几类不可用,其余功能照常。
104
105
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v587d/capital-config",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Capital 模式的取数凭据与偏好配置行:卡片坐在 @v587d/capital-generation 插件主页的「配置」段,点这一行本身没有表单。",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v587d/capital-watchlist",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Capital 模式的用户自选股(宿主级清单 + Fuyao 报价快照 + /capital-watchlist 路由 + 输入框菜单弹窗):由 @v587d/capital-generation 随包携带并作为 host 平面行挂载。",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v587d/capital-charts",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Capital 模式的图表前端组件(浏览器半边 + 序列旁路路由):由 @v587d/capital-generation 随包携带并作为 host 平面行挂载。",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -6,7 +6,7 @@
6
6
  * between validation and connect. Closing that window would require a custom
7
7
  * dispatcher; this module keeps the same explicit trade-off as dsh-search-first.
8
8
  */
9
- export declare const LOCAL_FETCH_CLIENT_VERSION = "2.6.1";
9
+ export declare const LOCAL_FETCH_CLIENT_VERSION = "2.6.2";
10
10
  export declare const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
11
11
  export type LocalFetchErrorCode = 'ABORTED' | 'TIMEOUT' | 'INVALID_URL' | 'BLOCKED_URL' | 'DNS' | 'REDIRECT' | 'HTTP' | 'TOO_LARGE' | 'UNSUPPORTED_CONTENT_TYPE';
12
12
  export declare class LocalFetchError extends Error {
@@ -7,7 +7,7 @@
7
7
  * dispatcher; this module keeps the same explicit trade-off as dsh-search-first.
8
8
  */
9
9
  import { htmlToMarkdown, stripInvisibleText } from './html-markdown.js';
10
- export const LOCAL_FETCH_CLIENT_VERSION = '2.6.1';
10
+ export const LOCAL_FETCH_CLIENT_VERSION = '2.6.2';
11
11
  export const LOCAL_FETCH_MAX_URL_LENGTH = 2048;
12
12
  export class LocalFetchError extends Error {
13
13
  code;
@@ -52,7 +52,7 @@ export interface WindCallResult {
52
52
  * `test/chart-composition.test.mjs` 守着(会因漂移而失败),这里原本是写死的第二处,
53
53
  * 一次发版就得记得改两遍。所以本常量由测试一并核对(见 `test/wind-client.test.mjs`)。
54
54
  */
55
- export declare const WIND_CLIENT_VERSION = "2.6.1";
55
+ export declare const WIND_CLIENT_VERSION = "2.6.2";
56
56
  export interface WindClient {
57
57
  callTool(toolName: string, args: Record<string, unknown>, signal?: AbortSignal): Promise<WindCallResult>;
58
58
  }
@@ -35,7 +35,7 @@ export const WIND_SERVER_ENDPOINTS = {
35
35
  * `test/chart-composition.test.mjs` 守着(会因漂移而失败),这里原本是写死的第二处,
36
36
  * 一次发版就得记得改两遍。所以本常量由测试一并核对(见 `test/wind-client.test.mjs`)。
37
37
  */
38
- export const WIND_CLIENT_VERSION = '2.6.1';
38
+ export const WIND_CLIENT_VERSION = '2.6.2';
39
39
  function errorText(error) {
40
40
  return error instanceof Error ? error.message : String(error);
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v587d/capital-generation",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Capital Generation:面向中国散户的 AI 投资助手插件(Capital mode Agent Preset)",
5
5
  "icon": "assets/cg-icon.png",
6
6
  "author": "v587d",