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

- 全量替换代码/配置/文档中的项目名(保留上游 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:
runny committed 2026-11-13 20:52:51 +08:00
1 parent 9097ee699d
commit 9058149576
3136 files changed
+18018 -18004

No files matched your search

+3 -3
View File
@@ -12,13 +12,13 @@
| --- | --- | --- | --- |
| **内部引用** | `resource://<handle>` | 服务端解析的稳定句柄,不能直接作为 URL 访问 | — |
| **鉴权代理** | `/files`、`/api/v1/knowledge-bases/:id/files`、`/api/v1/embed/:channel_id/files`、消息级 `/api/v1/sessions/:id/messages/:message_id/files` | 带对应凭证的客户端(登录态 / KB 访问权 / Embed token) | 随凭证 |
| **能力短链** | `/r/<token>` | 任何拿到链接的人(**匿名可读**) | WeKnora 签发的 grant,2 小时 |
| **能力短链** | `/r/<token>` | 任何拿到链接的人(**匿名可读**) | Academy 签发的 grant,2 小时 |
| **存储预签名** | 存储后端直接给的 http(s) 链接 | 任何拿到链接的人(**匿名可读**) | 由存储决定,MinIO 默认 24 小时 |
能力短链和存储预签名链接在有效期内允许持有者匿名读取文件。分享或记录这些链接时,应按文件本身的访问范围处理。撤销组织共享或退出组织不会让已经签发的链接提前失效,它们会一直可用到过期(短链 2 小时,存储预签名最长 24 小时)。
::: tip 默认访问方式
系统默认返回内部引用,由带凭证的客户端通过鉴权代理读取。外链需要公网可达的存储端点,或配置 `APP_EXTERNAL_URL` 后由 WeKnora 签发访问链接。默认 MinIO 地址 `minio:9000` 仅在容器网络内可达。
系统默认返回内部引用,由带凭证的客户端通过鉴权代理读取。外链需要公网可达的存储端点,或配置 `APP_EXTERNAL_URL` 后由 Academy 签发访问链接。默认 MinIO 地址 `minio:9000` 仅在容器网络内可达。
:::
## 按渠道访问文件 {#_2-各渠道分别怎么取}
@@ -46,7 +46,7 @@ Web 前端将 `resource://` 和 `provider://` 引用转换为鉴权代理地址
### IM 机器人 {#im-机器人-最常出问题的一条}
IM 平台无法携带 WeKnora 凭证,需要可公开访问的 HTTP(S) URL。发送消息前,系统根据存储与部署配置生成外链:
IM 平台无法携带 Academy 凭证,需要可公开访问的 HTTP(S) URL。发送消息前,系统根据存储与部署配置生成外链:
`resource://` 使用资源实际绑定的存储实例,共享资源使用其所属空间的实例。知识库已绑定 OSS 等对象存储时,无需同步修改全局 `STORAGE_TYPE`。绑定实例不可用时保留原引用并记录告警,不使用其他实例或全局存储代替。