WeKnora
Tencent
Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zhangxiang1993621/dsh-ws-files
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在 DeepSeek Harness 的 Web 前端直接查看/编辑工作空间的文件:树形目录浏览、文件名搜索、系统默认程序打开、在线编辑保存(写前确认)。面板注册进布局的左/右区域(由 dsh-layout 渲染),点击文件会在「对话 / 轨迹」同级的标签页中打开内容。
layout.left / layout.right(id ws-files),可被 dsh-layout 分配到左侧或右侧区域;随当前会话工作区自动切换conversation.view)并自动激活、直接进入编辑模式;标签条上直接有 × 可关闭Enter 自动缩进(复制上一行并遇 { [ ( 或 Python : 加深一层),Tab 缩进、Shift+Tab 反缩进Ctrl+S 立即保存Ctrl+Z 撤销、Ctrl+Y(或 Ctrl+Shift+Z)重做tab-size)workspaceRegistry 中已登记的任一工作区)| 半 | 文件 | 作用 |
|---|---|---|
| host | lib/index.js |
Cordis 插件行:inject ['webServer','fs','workspaceRegistry'],注册 /ws-files JSON 路由 |
| client | lib/client.js |
浏览器 bundle(__ModuleLoader__ 协议,纯手工编写,仅 external 平台模块):layout.left / layout.right 面板 + conversation.view 文件标签页 |
| 声明 | package.json |
dsh.bundle.patch(挂载 host 行)+ dsh.client(客户端声明)+ exports["./client"] |
| 方法 | 端点 | 说明 |
|---|---|---|
| GET | /ws-files?action=workspaces |
所有工作区 {id, path} |
| GET | /ws-files?action=list&root=&path= |
列目录 {name, type, size}[] |
| GET | /ws-files?action=read&root=&path= |
读文本内容 |
| GET | /ws-files?action=stat&root=&path= |
元信息 |
| GET | /ws-files?action=search&root=&q= |
按文件名搜索(限深 4 层 / 2000 条) |
| GET | /ws-files?action=open&root=&path= |
系统默认程序打开 |
| POST | /ws-files?action=write&root=&path= |
写文件,body {"content": "..."}(客户端已确认) |
# 在 deepseek-harness 仓库目录
node --import tsx/esm apps/cli/src/bin.ts plugin --profile web add file:/绝对/路径/dsh-ws-files
# 或开发期用 link:(改源码只刷新页面即生效)
node --import tsx/esm apps/cli/src/bin.ts plugin --profile web add link:/绝对/路径/dsh-ws-files
# 重启 dsh web 生效
workspaceRegistry 已登记的工作区根目录内(realpath 校验,越界返回 403)workspace-write + 所选工作区根的沙箱策略(宿主 fs 策略层双重把关)__ModuleLoader__ 协议格式,仅 external 10 个平台模块(react / react-dom / @deepseek-ai/cordis / client-ui-* 等),其余代码全部内联layout.left / layout.right(布局区域 pane,list 槽,id=ws-files,由 dsh-layout 声明渲染)+ conversation.view(文件标签页,list 槽,id=ws-files-<fileId>,动态注册/注销)CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: file-explorer。