Skip to content

refactor: Cleanup config - #179

Merged
markovejnovic merged 7 commits into
mainfrom
refactor/cleanup-config-and-app
Jul 26, 2026
Merged

refactor: Cleanup config#179
markovejnovic merged 7 commits into
mainfrom
refactor/cleanup-config-and-app

Conversation

@markovejnovic

Copy link
Copy Markdown
Contributor

No description provided.

- SysRuntime → AppCtx: non-singleton, built once in main and borrowed
  through dispatch (no leak, no global); async init loads user config
  and opens the creds store concurrently.
- Add ProjectCtx<'app>: workspace root + resolved config, resolved
  against the AppCtx's user config; eager .hm/ paths.
- Extract credentials out of config into its own module. Single active
  token via CredsProvider (get/set/clear) using secrecy::SecretString;
  HM_API_TOKEN still wins. Replaces the (service, account)-keyed
  credentials.toml with ~/.hm/creds/token.
- DirProvider::home(); rename modules app_ctx/project_ctx.
@markovejnovic
markovejnovic marked this pull request as ready for review July 26, 2026 23:02
@markovejnovic
markovejnovic merged commit 991a535 into main Jul 26, 2026
@markovejnovic
markovejnovic deleted the refactor/cleanup-config-and-app branch July 26, 2026 23:03
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