ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 TransmuteLabs

catalyst-probes

# catalyst-probes

TransmuteLabs@TransmuteLabs

TransmuteLabs/Catalyst/tree/main/plugins/catalyst-probes

已翻译

关于这个 mod

一个 hooks 模块提供咨询引擎和确定性的表单裁判。咨询者和表单规则在 probes.toml 中配置,启用方式与咨询者契约记录在 NOTES.md。

Form boundary

重定向、tee 和列出的写入器会接受判断;解释器内部的记录不在判断范围内。

列出的写入器包括 cp、mv、install、dd of=、原地 sed 和 perl、truncate,以及强制符号 ln。目标必须能够静态确定。动态目标词和未知工作目录会被标记为警告。命令模型覆盖 bash 和 zsh 视图的并集,包括 shell 快照、静态赋值、glob 候选项和管道状态变体。

写入会在执行后判断,即使执行抛出异常也一样;但 log_only 下的候选扇出会跳过执行后判断(form-post-skipped-fanout)。拒绝类使用原始文件、链接或不存在状态进行比较与恢复;指纹变化或不可用,以及父路径被重新指向,会阻止恢复并产生明确警告。恢复会替换路径对象,而不是新链接所指向的内容。回滚警告会补充原始记录,不替代拒绝结果。

每个目标的备份资格是 F 加该目标的 A1–A3/C1。所有适用类别都设为 log_only 时,该目标不备份也不恢复,其字节不占用共享备份预算。准备阶段允许缺少父目录,但恢复会检查保存的祖先和新的目录链。恢复使用平台特定的目标为志,并在替换后检查文件指纹或链接拼写。

每次调用的备份预算是 4 MiB 判断阈值的 8 倍:超过备份容量会在执行前拒绝调用。

模块版本是 0.1.55。一次交付中先交付模块,再交付 canon。缺少必需的 canon 键会明确给出 F,而不是静默关闭表单判断。验证和测试不会激活已安装的插件。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add TransmuteLabs/Catalyst
claude plugin install catalyst-probes
原文 / README

catalyst-probes

One hooks module provides the consultation engine and deterministic form judge. Consultants and form rules are configured in probes.toml; arming and the consultant contract are documented in NOTES.md.

Form boundary

судятся перенаправления, tee и перечисленные писатели; записи внутри интерпретаторов — вне суда

The listed writers are cp, mv, install, dd of=, in-place sed and perl, truncate, and forced symbolic ln. Targets must be statically determinable. Dynamic target words and unknown working directories are named warnings. The command model covers the union of bash and zsh views, including shell snapshots, static assignments, glob candidates, and pipeline state variants.

Writes are judged after execution, including when execution throws, except that candidate fan-out under log_only skips post-judgment (form-post-skipped-fanout). Refusing classes use compare-and-restore of the original file/link/absent state; changed or unavailable fingerprints and retargeted parent paths prevent restoration and produce named warnings. Restoration replaces the path object, not the contents of a new link's referent. Rollback warnings augment the original record without replacing its refusal. Backup eligibility is computed per target: F plus that target's A1–A3/C1. All applicable classes set to log_only means no backup and no restoration for that target; its bytes do not consume the shared backup budget. Missing parents are allowed during preparation, but restoration checks the saved ancestor and new directory chain. Restoration uses platform-specific destination flags and checks the resulting file fingerprint or link spelling after replacement. The backup budget is 8 times the 4 MiB judgment threshold per call: превышение объёма бэкапа отказывает вызов до исполнения.

The module version is 0.1.55. Deliver the module first and its canon second, in one delivery step. Missing required canon keys give an explicit F rather than silently disabling form judgment. Validation/tests do not activate the installed plugin.

更多类似作品