Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Apr 16:19
· 1 commit to main since this release
feat: per-module settings (host 0.9.8 config system)

Move from the old shadow_config.json + /data/UserData/schwung/secrets/
arrangement to the per-module config system that landed in schwung
host v0.9.8.

- src/settings-schema.json (id "ai-assistant", matches module dir name)
  declares the full Assistant section: provider, gemini_api_key,
  gemini_model, openai_api_key, openai_model, openai_base_url,
  speak_replies, system_prompt (textarea, default_source resolves to
  the bundled default_system_prompt.txt). schwung-manager renders the
  inline settings UI on /modules/ai-assistant.
- ui.js reads <MODULE_DIR>/config.json and <MODULE_DIR>/secrets/<key>.txt
  instead of the old global shadow_config.json + shared secrets dir.
  Working files (curl req/resp, recorded WAV, probe state) move to
  <MODULE_DIR>/cache/ to keep the module dir self-contained.
- Setting key names drop the "ai_" / "ai_assistant_" prefixes since
  they're module-scoped now (provider, speak_replies, system_prompt).
- module.json bumps to 0.2.0 and adds min_host_version "0.9.8".

The build script already copies all of src/ to dist, so the new
settings-schema.json is bundled automatically.