@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/README.md +205 -187
- package/client.js +244 -0
- package/cordis.patch.yml +2 -0
- package/index.js +2576 -2178
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +18 -2
package/locale/en.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
|
-
"title": "
|
|
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.
|
|
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.
|
|
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.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Per-session task temp folder
|
|
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",
|