Skip to content

refactor: remove Rules.yml, use proton templates as sole data source#1

Open
M09Ic wants to merge 2 commits into
mainfrom
proton-engine
Open

refactor: remove Rules.yml, use proton templates as sole data source#1
M09Ic wants to merge 2 commits into
mainfrom
proton-engine

Conversation

@M09Ic

@M09Ic M09Ic commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • Remove Rules.yml and all fallback logic (initRules, copyRulesToFile, loadRulesFromYaml, saveAsRulesYaml)
  • ConfigLoader.getRules() now exclusively loads from templates/ directory
  • RuleProcessor.rulesFormatAndSave() exclusively writes to template YAML files
  • UI remains compatible: getRulesFilePath() returns templates path, Reinit button calls initTemplates()

Test plan

  • Verify plugin loads rules from ~/.config/HaE/templates/ on startup
  • Verify Reinit button re-extracts bundled templates correctly
  • Verify rule add/edit/delete persists as individual template YAML files
  • Verify no regression in matching behavior

🤖 Generated with Claude Code

M09Ic and others added 2 commits July 5, 2026 00:07
Data loading and saving now go exclusively through the templates
directory. The Rules.yml fallback path (initRules, copyRulesToFile,
loadRulesFromYaml, saveAsRulesYaml) is removed. UI remains compatible —
getRulesFilePath() returns the templates path, and the Reinit button
calls initTemplates().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add template YAML files as the new rule source:
- templates/ — project-level rule definitions
- src/HaENet/sources/src/main/resources/templates/ — bundled JAR
  resources with index.txt for initTemplates()

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant