Closes the pattern gap: cleanup, restore, and purge scripts now have a corresponding prompt.md for conversational invocation. Defaults to dry-run, requires confirmation before --execute, and surfaces the protected-paths list.
1.4 KiB
1.4 KiB
name, description, agent, tools, argument-hint
| name | description | agent | tools | argument-hint | |||
|---|---|---|---|---|---|---|---|
| maintain-copilot-history | Quarantine, restore, or purge Copilot chat and session history artifacts using the shared maintenance scripts. | agent |
|
action=<cleanup|restore|purge> audit-dir=<path> [execute=true] [before=<iso>] [keep-latest=<n>] [filter=<text>] [path=<absolute-path>] |
Manage Copilot history artifacts using the shared quarantine-based maintenance scripts.
Requirements:
- Default to dry-run for every action unless the user explicitly asks to apply.
- For
cleanup: useresources/scripts/cleanup-copilot-history.sh; require--audit-dirto set the completion boundary. - For
restore: useresources/scripts/restore-copilot-history.sh; prefer--filteror--pathto scope the restore rather than restoring everything. - For
purge: useresources/scripts/purge-copilot-history-quarantine.sh; always include--keep-latest 1unless the user explicitly overrides it. - Never pass
--executewithout confirming the planned changes with the user first; show the dry-run output and ask for confirmation. - Summarize what was quarantined, restored, or purged after each action.
Protected paths that must never be targeted:
~/.copilot-resources~/.copilot/*symlink targets~/.copilot-resources-state/publish-log.tsv~/.copilot-resources-state/project-ports-registry.json- Repository source under
resources/,docs/, andtemplates/