@leiyi-works/dsh-session-tmpdir 0.9.0 → 0.9.2

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.
Files changed (3) hide show
  1. package/README.md +4 -0
  2. package/client.js +16 -13
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -203,3 +203,7 @@ v0.9.0 变更(2026-11-16):**中间产物/长期产物划分(方案 3)+
203
203
  6. 宿主接口:`GET /__dsh-session-tmpdir/state`、`POST /__dsh-session-tmpdir/revoke`;新增 `client.js`(左侧菜单 + 面板)与 `dsh.client` 客户端配置。
204
204
 
205
205
  **仍拦不到(fail-open)**:变量/动态拼接路径、脚本内部写盘、GUI/外部程序产物——这部分任何工具层插件都无法保证,只能靠对话规则或后续"工作区巡查"兜底。
206
+
207
+ v0.9.1 变更(2026-11-16):左侧菜单「临时目录」图标从彩色 emoji 换成**单色线框文件夹 SVG**(`currentColor` 描边、24 viewBox、无填充),与「云端同步」「隐私模式」等菜单的图标风格一致;尺寸跟随 `sidebar.panellist` 传入的 `size`(默认 18)。功能无变化。
208
+
209
+ v0.9.2 变更(2026-11-16):图标再改为**沙漏**(单色线框),因为文件夹线框和「AI视频」「会话相关」等收纳夹图标撞形;沙漏表达“临时/到期清理”的语义,18px 下两笔可辨,与左栏现有图标形状都不重复。功能无变化。
package/client.js CHANGED
@@ -204,22 +204,25 @@ window.__ModuleLoader__.load({
204
204
  )
205
205
  }
206
206
 
207
- function TempDirIcon() {
207
+ function TempDirIcon(props) {
208
+ const size = typeof props?.size === 'number' && props.size > 0 ? props.size : 18
208
209
  return h(
209
- 'span',
210
+ 'svg',
210
211
  {
211
- style: {
212
- width: 18,
213
- height: 18,
214
- display: 'inline-flex',
215
- alignItems: 'center',
216
- justifyContent: 'center',
217
- fontSize: 14,
218
- lineHeight: 1,
219
- },
220
- 'aria-hidden': 'true',
212
+ width: size,
213
+ height: size,
214
+ viewBox: '0 0 24 24',
215
+ fill: 'none',
216
+ 'aria-hidden': true,
217
+ style: { display: 'block' },
221
218
  },
222
- '📁',
219
+ h('path', {
220
+ d: 'M6.5 4.5h11M6.5 19.5h11M8.3 4.5v3.4c0 1.9 1.7 3.4 3.7 5 2-1.6 3.7-3.1 3.7-5V4.5M8.3 19.5v-3.4c0-1.9 1.7-3.4 3.7-5 2 1.6 3.7 3.1 3.7 5v3.4',
221
+ stroke: 'currentColor',
222
+ strokeWidth: 1.6,
223
+ strokeLinecap: 'round',
224
+ strokeLinejoin: 'round',
225
+ }),
223
226
  )
224
227
  }
225
228
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leiyi-works/dsh-session-tmpdir",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
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": {