@leiyi-works/dsh-session-tmpdir 0.7.0 → 0.9.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
- "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. 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."
3
+ "title": "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. v0.9 splits scratch vs long-term artifacts: creating a new file outside _tmp asks the user first (per-file approval by default), overwriting an existing file is allowed; write/edit, shell (including ffmpeg-like programs), publish copies, code runtimes and unknown write-capable tools share the same guard, and the persisted whitelist is shown (and removable) in the left-sidebar 「临时目录」 panel."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "任务临时目录",
4
- "description": "给每个会话一个任务临时目录 _tmp/<会话标题>/,会话改名时自动同步重命名;会话删除 7 天后自动清理对应目录,并回收该会话独占的附件。v0.7 起守住所有写入通道(write/edit、shell、publish 交付、python 等代码工具、未知写类工具),工作区外的落点也算长期保存,未经用户同意一律拒绝。"
3
+ "title": "临时目录",
4
+ "description": "给每个会话一个任务临时目录 _tmp/<会话标题>/,会话改名时自动同步重命名;会话删除 7 天后自动清理对应目录,并回收该会话独占的附件。v0.9 按中间产物/长期产物划分:_tmp 外新建文件先问用户(默认文件级审批),改写已存在文件直接放行;write/edit、shell(含 ffmpeg 等程序)、publish 交付、代码工具、未知写类工具受同一个 guard 约束,白名单在左侧「临时目录」面板展示并可移除。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@leiyi-works/dsh-session-tmpdir",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
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.",
5
+ "description": "Per-session task temp folder with a long-term write guard. v0.9 (方案3): creating a new file outside _tmp requires the user's approval (per file by default, per directory with mode=dir), overwriting an existing file is allowed without asking, every write channel is guarded (write/edit, shell including ffmpeg/pandoc/Export-*/IO APIs, publish copies, code runtimes, unknown tools), and the persisted whitelist is shown in a left-sidebar panel「临时目录」 where entries can be removed. Every session also gets _tmp/<session title>/ in its working directory, cleaned 7 days after the session is deleted; the same tick reclaims the attachment store.",
6
6
  "exports": {
7
7
  ".": "./index.js",
8
+ "./client": "./client.js",
8
9
  "./locale/*.json": "./locale/*.json",
9
10
  "./icon": "./icon.svg"
10
11
  },
11
12
  "files": [
12
13
  "index.js",
14
+ "client.js",
13
15
  "cordis.patch.yml",
14
16
  "README.md",
15
17
  "locale/*.json",
@@ -18,6 +20,20 @@
18
20
  "dsh": {
19
21
  "bundle": {
20
22
  "patch": "./cordis.patch.yml"
23
+ },
24
+ "client": {
25
+ "platform": "web",
26
+ "immediately": true,
27
+ "inject": [
28
+ "@deepseek-ai/dsh-client-modules",
29
+ "@deepseek-ai/dsh-client-locale",
30
+ "@deepseek-ai/dsh-client-ui-slots",
31
+ "@deepseek-ai/dsh-client-ui-conversation",
32
+ "@deepseek-ai/dsh-client-ui-layout",
33
+ "@deepseek-ai/dsh-client-ui-sidebar",
34
+ "@deepseek-ai/dsh-client-ui-sidebar-right",
35
+ "@deepseek-ai/dsh-client-ui-settings"
36
+ ]
21
37
  }
22
38
  },
23
39
  "license": "MIT",