@v587d/capital-generation 2.6.0 → 2.6.1
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 +20 -0
- package/README.md +4 -2
- package/capital-config/package.json +1 -1
- package/capital-watchlist/package.json +1 -1
- package/chart-ui/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/package.json +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,26 @@
|
|
|
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.1] - 2026-10-06
|
|
11
|
+
|
|
12
|
+
这一版只动**发版这条路本身**:从"本机手动 `npm publish`"改成"推 tag 由 CI 发"。包内容、工具入参、
|
|
13
|
+
数据能力、配置字段与会话日志格式**全都没变**,无需迁移,宿主仍要求 `0.2.0-rc.2`。
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **发版走 GitHub Actions。**推 `v<X.Y.Z>` tag 触发构建 + 测试 + 发布。身份用 npm 的 Trusted
|
|
18
|
+
Publishing(OIDC),仓库里不存 npm token:临时 token 七天到期,到期的表现不是"提示要换 token",
|
|
19
|
+
而是发版当夜红一条谁都发不动的构建。代价是发版主路径搬进了 CI。
|
|
20
|
+
- **npm 页面自此带 provenance**,能回答"这个 tarball 是哪次构建产生的"——手动发布答不上这一问,
|
|
21
|
+
而 2.6.0 那次连"发没发成功"都要回头翻日志(registry 回的是 `202 处理中`,不是 `201`)。
|
|
22
|
+
- 发版通道带两道 registry **自己不会报错**的闸门:① tag 与 `package.json` 版本不一致时,发出去的
|
|
23
|
+
是旧代码而按 `#vX` 安装的用户拿到的也是旧代码;② 已在 registry 上的版本改为跳过,否则"手动发过
|
|
24
|
+
再跑 CI"和任何一次 rerun 都会撞 `E409`,且红得看不出原因。
|
|
25
|
+
- README 的「安装插件」补上 npm 那条路(`dsh plugin --profile web add @v587d/capital-generation`),
|
|
26
|
+
与原有 `github:` 一条并列:前者取已发布版本,后者取仓库当前代码。两条装到的东西一致——构建是
|
|
27
|
+
确定性的,仓库里已提交的 `lib/` 与 CI 现构建的结果逐字节相同(本版实测)。
|
|
28
|
+
- `package.json` 补 `repository` / `homepage` / `bugs` 三项(此前全缺:npm 页面不显示仓库链接)。
|
|
29
|
+
|
|
10
30
|
## [2.6.0] - 2026-10-06
|
|
11
31
|
|
|
12
32
|
这一版按顺序做了两件互为前提的事:**先解开能力目录与单能力详情的体积**,再把 `data_collector` 从
|
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.
|
|
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>
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
# Capital Generation
|
|
@@ -36,12 +36,14 @@ 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
|
+
dsh plugin --profile web add @v587d/capital-generation
|
|
42
43
|
dsh plugin --profile web add github:v587d/capital-generation
|
|
43
44
|
```
|
|
44
45
|
|
|
46
|
+
两条装完的功能一样:前者取 npm 上已发布的版本,后者取本仓库当前的代码。
|
|
45
47
|
安装后重启该 profile。Windows 桌面端在「添加插件」中输入 `https://github.com/v587d/capital-generation`。桌面端自带 DSH 宿主,不需要单独用 npm 安装宿主。本仓库已包含构建产物,普通用户不需要克隆仓库或运行构建命令。
|
|
46
48
|
|
|
47
49
|
2. **选填密钥。** 打开 DSH 「插件」 → **Capital Generation** -> 「配置」。
|
package/chart-ui/package.json
CHANGED
|
@@ -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.
|
|
9
|
+
export declare const LOCAL_FETCH_CLIENT_VERSION = "2.6.1";
|
|
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.
|
|
10
|
+
export const LOCAL_FETCH_CLIENT_VERSION = '2.6.1';
|
|
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.
|
|
55
|
+
export declare const WIND_CLIENT_VERSION = "2.6.1";
|
|
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.
|
|
38
|
+
export const WIND_CLIENT_VERSION = '2.6.1';
|
|
39
39
|
function errorText(error) {
|
|
40
40
|
return error instanceof Error ? error.message : String(error);
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v587d/capital-generation",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Capital Generation:面向中国散户的 AI 投资助手插件(Capital mode Agent Preset)",
|
|
5
5
|
"icon": "assets/cg-icon.png",
|
|
6
6
|
"author": "v587d",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/v587d/capital-generation#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/v587d/capital-generation.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/v587d/capital-generation/issues"
|
|
15
|
+
},
|
|
8
16
|
"type": "module",
|
|
9
17
|
"main": "./lib/index.js",
|
|
10
18
|
"types": "./lib/index.d.ts",
|