Skip to content

feat(pi.workspace-file-guard): 市场名称改为「防C盘拉屎」 - #30

Closed
xingleiwu wants to merge 2 commits into
vastsa:mainfrom
xingleiwu:rename-zh-025
Closed

xingleiwu wants to merge 2 commits into
vastsa:mainfrom
xingleiwu:rename-zh-025

Conversation

@xingleiwu

Copy link
Copy Markdown
Contributor

改什么

市场卡片原来叫「工作区文件护栏」,很多人看不懂。0.2.6 把名称和介绍改成直白中文:

  • 名称:防C盘拉屎
  • 介绍:防止模型把测试、日志、缓存、临时文件往 C 盘、桌面、下载里乱写。垃圾只能待在当前项目或 scratch。

id 仍是 pi.workspace-file-guard,分类器和权限没变。

校验

  • node tests/workspace-file-guard-guard.test.js / node tests/workspace-file-guard-main.test.js 通过
  • python scripts/pack_plugin.py plugins/pi.workspace-file-guard → packages/pi.workspace-file-guard-0.2.6.piplug
  • sha256 51d6269a3ef40c069da4b52fa8eae79907a3f8586c4f675452bbc94f033b324a 与 catalog 一致
  • python scripts/security_audit.py plugins/pi.workspace-file-guard:0 blocker

卡片名称和介绍改成直白中文,一眼能看懂:拦住模型往 C 盘、桌面、下载乱写垃圾文件。
@vercel

vercel Bot commented Sep 12, 2026

Copy link
Copy Markdown

@xingleiwu is attempting to deploy a commit to the vastsa's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vastsa

vastsa commented Sep 12, 2026

Copy link
Copy Markdown
Owner

当前 head 的源码测试可以通过,但合并门槛仍未满足:CI 和本地 security_audit --check-packages 都发现 packages/pi.workspace-file-guard-0.2.6.piplug 内的 README.md、guard.js、main.js、manifest.json、skills/workspace-file-guard.md 与 plugins/pi.workspace-file-guard/ 当前源码不一致。请用当前源码重新执行 pack_plugin.py,并同步 catalog.json 的 sha256/size 后再请求合并。

@vastsa vastsa left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current head still fails the repository release gate: security_audit reports that the 0.2.6 package entries for README.md, guard.js, main.js, manifest.json, and skills/workspace-file-guard.md do not match the current source. Repack from the current source and regenerate catalog.json before requesting review again.

CI 按字节比对 packages 与 plugins。Windows 打包把 CRLF 打进了 .piplug。
源码与包统一为 LF 后重跑 pack_plugin.py,并同步 catalog sha256/size。
@xingleiwu

Copy link
Copy Markdown
Contributor Author

已按当前源码重新打包。

原因:Windows 上 core.autocrlf 把源码打成 CRLF 写进了 packages/pi.workspace-file-guard-0.2.6.piplug,Linux CI 的 security_audit --check-packages 按字节比对就会失败。

处理:源码与 .piplug 统一为 LF,重跑 python scripts/pack_plugin.py plugins/pi.workspace-file-guard,并同步 catalog.json 的 sha256/size。

  • sha256 f9cc6b451805b6edb692358a609ce5a7341ead3ddf2054270643b54c24e8210b
  • size 38306

请再跑一次 security_audit.py --check-packages。

@xingleiwu

Copy link
Copy Markdown
Contributor Author

名称偏粗的 0.2.6 不再继续推。请改审 https://github.com/vastsa/pi-desktop-plugins/pull/46:0.2.7 市场名是「C盘防垃圾」,项目垃圾改放到 $project/Temp/,包仍按 LF 打包。这个 #30 可以直接关闭。

@vastsa

vastsa commented Sep 14, 2026

Copy link
Copy Markdown
Owner

关闭:由 #46 替代。

#46 把市场名称改成更礼貌的「C盘防垃圾」,并带上 Temp 倾倒目录和项目根校验。不再合这一版粗口命名。

@xingleiwu

Copy link
Copy Markdown
Contributor Author

名称偏粗的 0.2.6 不再继续推。请改审 https://github.com/vastsa/pi-desktop-plugins/pull/48:0.2.7 市场名是「C盘防垃圾」,项目垃圾改放到 $project/Temp/,包仍按 LF 打包。这个 #30 可以直接关闭。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants