dsh-session-artifact-folders
Verifieddsh-session-artifact-folders · v1.0.0 · MIT
Create a separate artifact folder inside each DSH workspace for every new conversation, and make that folder the conversation's working directory.
Install
dsh plugin add dsh-session-artifact-folders Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Published to npm without a public repository. Inspect the package contents before installing.
Tags
Creators
Readme
会话产物文件夹(dsh-session-artifact-folders)
为 DeepSeek Harness 的每个工作区新会话自动创建一个独立产物文件夹,并把该会话的工作目录切换到里面。
行为
- 新建会话的
cwd正好是某个已注册工作区根目录时,在该工作区创建session01、session02…… - 编号在每个工作区内独立递增,两位补零;同一会话的后续轮次复用同一个文件夹。
- 只处理新会话;恢复已有会话时不补建文件夹。
- 子代理不单独建文件夹,沿用父会话的当前工作目录。
- 不把工作区根目录下的旧文件搬进新文件夹。
- 通过在会话创建阶段调用官方
workingDirectory服务切换目录,因此write、edit、read、present、pwsh等按相对路径工作的工具默认使用该文件夹。
安装
暂存版本通过 npm 后台放行后,在 DSH 官方插件安装入口安装:
dsh-session-artifact-folders
本地开发时也可以直接安装目录:
plugin_manager install_bundle
target: C:\Users\YuKi\Desktop\dsh\dsh-session-artifact-folders
重要限制
- 仅识别
header.cwd正好等于工作区根目录的会话,与 DSH 的工作区归属规则一致。 - 显式写出的绝对路径、或会话中主动
cd到别处,不受本插件约束;本插件不是文件系统沙箱。 - 空白新会话也会立即创建文件夹,即使随后没有发送消息。
- 编号取现有最大编号 + 1;删除末尾编号后,新会话可能复用该编号。
- 前缀固定为
session,两位补零;当前版本没有配置项。
开发与测试
node --check index.js
node test/plugin.test.mjs
测试只使用 Node 内置测试运行器,不需要安装依赖。
npm 发布
第一次发布使用暂存发布,上传后需要维护者在 npm 后台手动放行:
npx --yes [email protected] stage publish --access public
不要使用普通 npm publish,否则版本会直接上线。
License
MIT