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.
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
# moyun-ultimate bundle patch — COMPLEMENT MODE(补充模式)
|
||
#
|
||
# 只注入六段提示词与 63 个技能,**完全不碰权限层**。
|
||
# 用在:对方已经装了别的权限类插件(会改 approval / permission / sandbox-policy)。
|
||
#
|
||
# 与完整模式的差别:本文件不含沙箱/审批/预设/截断这几段 config 覆盖,
|
||
# 也不注册审批应答器(permission: false),所以不会和任何插件抢 config id。
|
||
#
|
||
# 切换:把本文件复制成 cordis.patch.yml(并保留完整版为 cordis.patch.yml.full)。
|
||
|
||
- id: system-prompt
|
||
config:
|
||
includeHarnessIdentity: false
|
||
personaPrefix: ""
|
||
personaSuffix: Your working directory is {{cwd}}.
|
||
|
||
- insert:
|
||
- id: moyun-ultimate
|
||
name: 'moyun-ultimate'
|
||
config:
|
||
enabled: true
|
||
autoApplyOnStart: true
|
||
# 六段提示词:全部保留(不与权限插件冲突)
|
||
core: true
|
||
refusal: true
|
||
execution: true
|
||
mirror: true
|
||
routing: true
|
||
anticensor: true
|
||
# 权限层让位:不注册审批应答器,不改任何权限相关 config
|
||
permission: false
|
||
approvalResult: allowed-once
|