@klarkxy/dsh-zhihu 0.2.1 → 0.2.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/README.md CHANGED
@@ -1,13 +1,14 @@
1
- # @klarkxy/dsh-zhihu
1
+ # @klarkxy/dsh-zhihu
2
2
 
3
3
  <!-- release-state-note -->
4
- The [repository registry](../../README.md#plugin-lifecycle) tracks Draft → Testing → Published, moving forward only. Fixes, testing and version updates keep published packages Published; each update still passes release checks. First publication explicitly selects Testing packages and records Published only after npm archive verification. See the [release guide](../../RELEASING.md).
4
+
5
+
5
6
 
6
7
  Hand Zhihu to the agent as a research source: in-site search, global web search, the hot list, 直答 AI answers and public knowledge bases, plus question discovery, creator statistics and usage tracking. Every call uses your own Zhihu Access Secret, and what comes back is reference material for the agent, not a settled verdict.
7
8
 
8
9
  [简体中文](docs/README.zh-CN.md)
9
10
 
10
- Requires Node.js ≥22 and DSH `0.1.7-rc.2`. No repository build is needed.
11
+ Requires Node.js ≥22 (26 verified) and DSH `0.1.7-rc.2` or later. No repository build is needed.
11
12
 
12
13
  ## Install
13
14
 
@@ -81,20 +82,10 @@ When this profile provides `ctx.web`, the plugin registers **Zhihu global search
81
82
  - The client accepts structural host controls and has native HTML fallbacks. Building or using this package does not require application-private UI packages.
82
83
  - Existing agent tools, credentials, RPC contracts and storage identifiers are preserved; the additions above are additive.
83
84
 
84
- ## Development
85
-
86
- Read [contracts](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/src/contracts.ts), [tools](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/src/tools.ts), and [open-platform client](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/src/open-platform.ts) for the API. The seven additions cover the six question/creator endpoints plus official quota.
87
-
88
- ```sh
89
- pnpm --filter @klarkxy/dsh-zhihu typecheck
90
- pnpm --filter @klarkxy/dsh-zhihu test
91
- pnpm --filter @klarkxy/dsh-zhihu build
92
- ```
93
-
94
- [Publishing](../PUBLISHING.md) · [License](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/LICENSE)
85
+ [License](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/LICENSE)
95
86
 
96
87
 
97
- ## Call and cost protection (2026-10-13)
88
+ ## Call and cost protection
98
89
 
99
90
  Free protection is the default. Every business request checks fresh official free allowance for its quota group. Missing/invalid allowance, failed checks, insufficient capacity or an unknown mapping block the business request. Quota reads bypass the guard and daily cap without recursive preflight. The old quota input `question_answers` maps to `question_discovery`; business names and paths stay unchanged.
100
91
 
@@ -1,13 +1,14 @@
1
- # @klarkxy/dsh-zhihu
1
+ # @klarkxy/dsh-zhihu
2
2
 
3
3
  <!-- release-state-note -->
4
- 插件生命周期见[仓库状态清单](../../../README.zh-CN.md#插件生命周期):草稿 → 测试中 → 已发布,只向前推进。已发布插件的修复、测试和升版保持已发布;每次更新仍须通过发布检查。首次发布须明确选择测试中的包,并在 npm 归档验证成功后登记。详见[发布规则](../../../RELEASING.zh-CN.md)。
4
+
5
+
5
6
 
6
7
  把知乎交给模型当调研信源:站内搜索、全网搜索、热榜、直答和公开知识库,外加问题发现、创作数据与用量统计。每次请求都只用你自己的知乎 Access Secret,取回的内容是给模型参考的资料,不是定论。
7
8
 
8
9
  [English](../README.md)
9
10
 
10
- 需要 Node.js ≥22、DSH `0.1.7-rc.2`,无需构建本仓库。
11
+ 需要 Node.js ≥22(已验证 26)、DSH `0.1.7-rc.2` 或更高版本,无需构建本仓库。
11
12
 
12
13
  ## 安装
13
14
 
@@ -81,20 +82,10 @@ RPC 还接受主库风格的下划线别名:`question_recommendations`、`ques
81
82
  - 客户端接收宿主提供的结构化控件,缺失时使用原生 HTML 控件。构建和使用本包不依赖应用私有 UI 包。
82
83
  - 原有 Agent 工具、凭据、RPC 合同和存储标识保持兼容,上述能力为增量扩展。
83
84
 
84
- ## 开发
85
-
86
- 接口见 [contracts](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/src/contracts.ts)、[tools](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/src/tools.ts) 与 [开放平台客户端](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/src/open-platform.ts)。七个新增接口覆盖六个问题发现/创作端点及官方额度。
87
-
88
- ```sh
89
- pnpm --filter @klarkxy/dsh-zhihu typecheck
90
- pnpm --filter @klarkxy/dsh-zhihu test
91
- pnpm --filter @klarkxy/dsh-zhihu build
92
- ```
93
-
94
- [发布维护](../../PUBLISHING.md) · [许可证](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/LICENSE)
85
+ [许可证](https://github.com/klarkxy/dsh-plugins/blob/main/plugins/dsh-zhihu/LICENSE)
95
86
 
96
87
 
97
- ## 调用与费用保护(2026-10-13)
88
+ ## 调用与费用保护
98
89
 
99
90
  默认是免费保护模式:每个业务请求先即时查询对应的官方免费额度;查询失败、缺少有效额度、额度不足或映射未确认时,不发送业务请求。额度查询本身不递归预查、不消耗本地上限。工具名及业务路径保持原样;旧额度输入 `question_answers` 映射为 `question_discovery`,问题推荐和回答摘要共用该组。
100
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klarkxy/dsh-zhihu",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Zhihu search, agent tools, knowledge bases, and usage tracking for DeepSeek Harness.",
5
5
  "icon": "./icon.svg",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -96,7 +96,7 @@
96
96
  },
97
97
  "dependencies": {
98
98
  "zod": "^4.1.5",
99
- "@klarkxy/dsh-plugin-kit": "0.3.0"
99
+ "@klarkxy/dsh-plugin-kit": "0.3.1"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "@deepseek-ai/cordis": ">=4.0.4",
@@ -153,6 +153,6 @@
153
153
  "registry": "https://registry.npmjs.org/"
154
154
  },
155
155
  "dshRelease": {
156
- "contentHash": "460c9f891c49a31da6bc171a1ef9aa29267fd3c121919140c602f4c8c18688d3"
156
+ "contentHash": "649152913b8fc651d985856a814a4d8afd8b06cba6d5e345de5cdea220a0badb"
157
157
  }
158
158
  }