refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
@@ -1,20 +1,20 @@
|
||||
# DeepSeek Harness 插件
|
||||
|
||||
DeepSeek Harness(dsh)插件通过 REST API 连接已有 WeKnora 部署,支持检索原文、读取完整文档和生成带引用的回答。插件源码位于 `packages/dsh-weknora`。
|
||||
DeepSeek Harness(dsh)插件通过 REST API 连接已有 Academy 部署,支持检索原文、读取完整文档和生成带引用的回答。插件源码位于 `packages/dsh-academy`。
|
||||
|
||||
## 安装与连接
|
||||
|
||||
```sh
|
||||
dsh plugin --profile web add @wxg-prc-cpg/dsh-weknora
|
||||
dsh plugin --profile web add @wxg-prc-cpg/dsh-academy
|
||||
|
||||
export WEKNORA_BASE_URL=https://weknora.example.com
|
||||
export WEKNORA_API_KEY='<api-key>'
|
||||
export WEKNORA_KNOWLEDGE_BASE_IDS=kb-123,kb-456
|
||||
export WEKNORA_RESOURCE_URLS=public
|
||||
export ACADEMY_BASE_URL=https://academy.example.com
|
||||
export ACADEMY_API_KEY='<api-key>'
|
||||
export ACADEMY_KNOWLEDGE_BASE_IDS=kb-123,kb-456
|
||||
export ACADEMY_RESOURCE_URLS=public
|
||||
dsh web
|
||||
```
|
||||
|
||||
也可在仓库根目录运行 `dsh plugin --profile web add ./packages/dsh-weknora`。插件自身要求 Node ≥20.11;仓库验证的 dsh 运行环境需要带 zstd 的 Node(≥22.15 或 ≥24)和 pnpm ≥10。已验证版本为 dsh 0.1.0-rc.8 / WeKnora 0.8.0,其他版本需按其插件接口确认兼容性。
|
||||
也可在仓库根目录运行 `dsh plugin --profile web add ./packages/dsh-academy`。插件自身要求 Node ≥20.11;仓库验证的 dsh 运行环境需要带 zstd 的 Node(≥22.15 或 ≥24)和 pnpm ≥10。已验证版本为 dsh 0.1.0-rc.8 / Academy 0.8.0,其他版本需按其插件接口确认兼容性。
|
||||
|
||||
服务地址可包含 `/api/v1`,未包含时自动补全。API Key 通过 `X-API-Key` 发送,需要 `retrieve` 能力;调用 `ask` 还需 `chat`。使用平台 Key 时,需配置 `tenantId`,请求将其作为 `X-Tenant-ID` 发送。
|
||||
|
||||
@@ -22,12 +22,12 @@ dsh web
|
||||
|
||||
| 工具 | 用途 |
|
||||
| --- | --- |
|
||||
| `weknora_list_knowledge_bases` | 列出可见知识库及 ID |
|
||||
| `weknora_search` | 混合检索片段,同时匹配文档标题;返回知识 ID、分块序号与得分 |
|
||||
| `weknora_read_document` | 按文档读取有序正文,首屏含标题/摘要,长文可翻页 |
|
||||
| `weknora_ask` | 在 WeKnora 创建或续接会话,返回答案、引用和服务端工具过程 |
|
||||
| `academy_list_knowledge_bases` | 列出可见知识库及 ID |
|
||||
| `academy_search` | 混合检索片段,同时匹配文档标题;返回知识 ID、分块序号与得分 |
|
||||
| `academy_read_document` | 按文档读取有序正文,首屏含标题/摘要,长文可翻页 |
|
||||
| `academy_ask` | 在 Academy 创建或续接会话,返回答案、引用和服务端工具过程 |
|
||||
|
||||
`search` 返回检索证据,供 dsh 生成回答;`ask` 在 WeKnora 服务端调用模型并创建会话和消息,适合综合多篇资料。两者均不修改知识库内容。
|
||||
`search` 返回检索证据,供 dsh 生成回答;`ask` 在 Academy 服务端调用模型并创建会话和消息,适合综合多篇资料。两者均不修改知识库内容。
|
||||
|
||||
未指定知识库范围时,插件解析该凭据可见的全部知识库,进程内缓存并供 search/ask 共用。配置 agentId 后 ask 走 Agent 流程,知识范围由该 Agent 在服务端解析。
|
||||
|
||||
@@ -36,10 +36,10 @@ dsh web
|
||||
在 `$DSH_HOME/profiles/<name>/cordis.patch.yml` 中设置:
|
||||
|
||||
```yaml
|
||||
- id: weknora
|
||||
- id: academy
|
||||
config:
|
||||
baseUrl: https://weknora.example.com
|
||||
apiKey: !!js process.env.WEKNORA_API_KEY
|
||||
baseUrl: https://academy.example.com
|
||||
apiKey: !!js process.env.ACADEMY_API_KEY
|
||||
knowledgeBaseIds: [kb-product-docs]
|
||||
agentId: ''
|
||||
maxResults: 8
|
||||
@@ -47,7 +47,7 @@ dsh web
|
||||
requestTimeoutMs: 30000
|
||||
chatTimeoutMs: 300000
|
||||
resourceUrls: public
|
||||
toolPrefix: weknora
|
||||
toolPrefix: academy
|
||||
tools:
|
||||
listKnowledgeBases: true
|
||||
search: true
|
||||
@@ -67,8 +67,8 @@ dsh web
|
||||
| 检索 401/403 | Key 是否有效、有 retrieve 能力及目标空间/知识库授权 |
|
||||
| ask 被拒绝 | Key 是否另有 chat,平台 Key 是否提供 tenantId |
|
||||
| 没有图片直链 | 是否为限定知识库 Key,或部署未配置可访问外链 |
|
||||
| 长问题超时 | 调整 chatTimeoutMs,并检查 WeKnora 模型调用 |
|
||||
| 长问题超时 | 调整 chatTimeoutMs,并检查 Academy 模型调用 |
|
||||
|
||||
## 实现参考
|
||||
|
||||
`packages/dsh-weknora/src/`、`test/fixtures/api-contract.json`、`contract/contract_test.go`。
|
||||
`packages/dsh-academy/src/`、`test/fixtures/api-contract.json`、`contract/contract_test.go`。
|
||||
Reference in new issue
Block a user