@leiyi-works/dsh-session-tmpdir 0.6.0 → 0.8.0

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/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "Task Temp Folder",
4
- "description": "Gives every session a task temp folder _tmp/<session title>/ in its working directory, renames it whenever the session title changes, and deletes it 7 days after the session is deleted; the same pass also reclaims that session's attachments."
4
+ "description": "Gives every session a task temp folder _tmp/<session title>/ in its working directory, renames it whenever the session title changes, and deletes it 7 days after the session is deleted; the same pass also reclaims that session's attachments. v0.7 guards every write channel (write/edit, shell, publish delivery copies, embedded code runtimes, unknown write-capable tools) and treats destinations outside the workspace as long-term too."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "任务临时目录",
4
- "description": "给每个会话一个任务临时目录 _tmp/<会话标题>/,会话改名时自动同步重命名;会话删除 7 天后自动清理对应目录,并回收该会话独占的附件。"
4
+ "description": "给每个会话一个任务临时目录 _tmp/<会话标题>/,会话改名时自动同步重命名;会话删除 7 天后自动清理对应目录,并回收该会话独占的附件。v0.7 起守住所有写入通道(write/edit、shell、publish 交付、python 等代码工具、未知写类工具),工作区外的落点也算长期保存,未经用户同意一律拒绝。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@leiyi-works/dsh-session-tmpdir",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
- "description": "Per-session task temp folder: _tmp/<session title>/ inside the session working directory, auto-created and auto-renamed when the session title changes; folders are deleted 7 days after their session is deleted, with a manual cleanup tool. The same tick also reclaims the attachment store: <DSH_HOME>/attachments is content-addressed and never garbage collected by the Host, so the plugin keeps a per-session attachment ledger, deletes the blobs of sessions deleted N days ago after re-checking that no surviving session references them, sweeps historical orphans, and appends every deletion to an audit log. Also guards the workspace root: scratch files must live under _tmp/, and any long-term artifact outside _tmp/ requires the user's approval (longterm_approve) before write/edit or shell commands may create it — otherwise the call is denied and the model is told to ask the user first, then fall back to _tmp.",
5
+ "description": "Per-session task temp folder: every session gets _tmp/<session title>/ in its working directory, auto-created and auto-renamed with the session title; folders are deleted 7 days after the session is deleted, and the same tick reclaims the attachment store. v0.7 also guards every write channel: write/edit, shell commands (Windows drive paths and HarmonyOS/POSIX paths), publish delivery copies, embedded code runtimes (python/node, static scan) and unknown tools that declare path arguments. Destinations outside the workspace are long-term too — without the user's approval (longterm_approve) the call is denied and the model is told to ask first, then fall back to _tmp.",
6
6
  "exports": {
7
7
  ".": "./index.js",
8
8
  "./locale/*.json": "./locale/*.json",