The goal is users who dare to install it. Three additions:
1. doctor.ps1 -Fix
Runs the 12 checks, then repairs what is safe to repair: re-copy the runtime
copy, add exports["./client"], add the dependencies entry, sync missing
skills. It deliberately does NOT touch the profile's own cordis.patch.yml
(that could break other plugins) - it only prints a hint.
2. install.ps1 -Rollback
Restores package.json from the newest package.json.bak-* and removes the
plugin directories. One command back to the pre-install state.
3. Friendly install ending
Prints the three next steps (quit/reopen, doctor, moyun_ultimate_profile)
plus the two escape commands, instead of a single terse line.
doctor also detects and reports whether the install is in FULL or COMPLEMENT
mode by reading the bundle patch, so complement mode is no longer misreported.
Instead of removing other people's plugins (which breaks their environment and
cannot be rolled back), this detects and yields.
1. install.ps1 scans every installed bundle before copying, reads the config ids
each one actually rewrites, and intersects with ours:
scanned plugins : 19
hard conflicts : none
~ dsh-purge shares: system-prompt (safe)
2. Three modes. auto (default) picks complement when a hard conflict exists,
full otherwise.
full permission layer owned by this plugin
complement permission layer yields, prompt layers + 63 skills still apply
auto decided by the scan
3. switch-mode.ps1 flips between them at any time; the full patch is kept as
cordis.patch.yml.full so switching back is one command.
New file cordis.patch.complement.yml drops the five permission-related config
overrides entirely, so coexistence is structural rather than hopeful.
Deliberately NOT doing: uninstalling other plugins. Reasons are in the README.
Five ordered prompt sections (persona core / refusal kernel / execution
intensity / anti-dilution mirror / skill routing), 63 built-in skills synced
idempotently into DSH_HOME/skills, two tools (moyun_frame, moyun_ultimate_profile),
a live refusal-score badge, and five independent layer toggles.
Ships no host source patches: the permission layer stays with host-patch
plugins, this package owns persona, strategy and skills.