Commit Graph

2 Commits

Author SHA1 Message Date
teknium1 2da9f0bdc1 test(plugin_storage): journal-mode assertion follows the shared WAL fallback verdict
The old test pinned 'wal' unconditionally. Now that plugin_db routes through
apply_wal_with_fallback, a WAL-reset-vulnerable SQLite build (the CI runner)
correctly lands on DELETE; assert the contract, not the runner's build.
2026-09-13 05:08:29 -07:00
Brooklyn Nicholson 8f2ddc9676 feat(plugins): per-plugin durable data directory that survives plugin update and removal
Plugins that persist state have been writing into their own install tree
(<hermes home>/plugins/<name>/), which `hermes plugins update` git-pulls and
`hermes plugins remove` deletes — user data dies with the code that wrote it.

plugins/plugin_storage.py is the sanctioned home: plugin_data_dir(name) gives
one data root per plugin under <hermes home>/plugin-data/<name>/ (profile-
aware, created on first use, names validated against traversal), and
plugin_db(name) opens a WAL-mode SQLite database inside it. Secrets stay on
the existing secret-scope path — this is state, not credentials.

hermes-achievements, the in-tree offender, converts with a legacy-file
migration on first read.
2026-08-17 15:12:53 -05:00