4 Commits

Author SHA1 Message Date
Teknium
b1ef9bea69 fix(plugins): a blank secret counts as not set in plugin settings
has_value was "not None", so KEY= in .env read as set: the install offer skipped
it from "Still needed" and defaulted to No, and Desktop/CLI showed it as set.
The shared field builder (and the CLI env fields) now require a non-empty value,
matching the install-time requires_env prompt. Tests now drive the offer itself:
yes, default No, default Yes (unset and blank), decline, Ctrl-D, and brief /
HERMES_NONINTERACTIVE / no-TTY never reading stdin.
2026-11-20 00:30:20 -08:00
Teknium
595accf662 feat(plugins): a terminal install lists the new plugin's settings and offers to edit them
The install used to end with a one-line pointer at `hermes plugins config`. From a
terminal it now lists the declared settings with their values and asks "Edit
these now?" (default No; default Yes, naming them, when a required setting is
empty). Scripts, HERMES_NONINTERACTIVE and brief setup-wizard installs keep the
one-line pointer and never read stdin. The offer is the last step, so a Ctrl-C
there leaves a complete install.
2026-11-20 00:30:20 -08:00
Teknium
65c9b93e0c fix(plugins): plugins config masks platform tokens and refuses non-JSON list input
Some checks failed
Deploy Site / deploy-vercel (push) Has been cancelled
Deploy Site / deploy-docs (push) Has been cancelled
auto-fix lint issues & formatting / Generate eslint --fix patch (push) Has been cancelled
auto-fix lint issues & formatting / Apply patch (push) Has been cancelled
Skills Index Freshness Check / check-freshness (push) Has been cancelled
Skills Index Freshness Check / check-catalog-cors (push) Has been cancelled
Docs Search Monitor / probe (push) Has been cancelled
Env fields now use the platform setup's own classification
(_platform_manifest_env_entries: password/secret or a token-shaped name), so a
Discord-style password: true token prints as "set", never its value, and edits
masked. List/mapping input that YAML parses into non-JSON values (an unquoted
date) or fails to parse is refused with a readable message instead of saving a
value that breaks later listings or exiting the editor.
2026-11-19 23:56:47 -08:00
Teknium
63102706e8 feat(plugins): hermes plugins config edits a plugin's settings in the terminal
Plugins declare their settings in config_schema and requires_env, and the Desktop
renders them as a form, but the CLI had no way to see or change them short of
hand-typing plugins.entries.<id>.settings.<key>. `hermes plugins config <name>`
lists every declared setting with its current value and edits one at a time
(choices and bool as pickers, numbers and JSON type-checked, secrets masked),
saving through the same writers as the Desktop form: save_plugin_settings for
config.yaml and the PUT /api/env credential route for .env. Without a TTY it
prints the settings instead. plugins show and install point at it.

plugins_settings.py becomes a package (fields.py unchanged, facade re-exports).
2026-11-19 23:56:47 -08:00