Skip to content

refactor: extract more code into atelier library#339

Merged
cgeorgii merged 1 commit intomainfrom
refactor/atelier-pt2
Mar 18, 2026
Merged

refactor: extract more code into atelier library#339
cgeorgii merged 1 commit intomainfrom
refactor/atelier-pt2

Conversation

@cgeorgii
Copy link
Member

  • Atelier.Component — component lifecycle (setup/listeners/triggers/start); all callers updated to import directly
  • Atelier.Effects.DB — unified DBRead/DBWrite effects (mirroring Pub/Sub in a single module) with runDB, runDBRead, runDBWrite, and DBReadMetricNames; replaces separate DBRead/DBWrite modules; Hoard.Effects.DB pre-fills hoard-specific metric names
  • Atelier.Effects.DB.ConfigDBConfig, DBPools, PoolConfig, pool acquisition helpers; callers updated to import directly
  • Atelier.Config — generic JSON config utilities: envOverrides, deepMerge, LoadedConfig, runConfig; Hoard.Effects.ConfigPath retains only the hoard-specific loader and runConfigRoot

@cgeorgii cgeorgii requested a review from Gipphe March 18, 2026 14:14
Copy link
Collaborator

@Gipphe Gipphe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop prompt.md, and this is good to go!

@cgeorgii cgeorgii force-pushed the refactor/atelier-pt2 branch from e1d4ca9 to 1db2146 Compare March 18, 2026 14:20
- **`Atelier.Component`** — component lifecycle (`setup`/`listeners`/`triggers`/`start`); all callers updated to import directly
- **`Atelier.Effects.DB`** — unified `DBRead`/`DBWrite` effects (mirroring `Pub`/`Sub` in a single module) with `runDB`, `runDBRead`, `runDBWrite`, and `DBReadMetricNames`; replaces separate `DBRead`/`DBWrite` modules; `Hoard.Effects.DB` pre-fills hoard-specific metric names
- **`Atelier.Effects.DB.Config`** — `DBConfig`, `DBPools`, `PoolConfig`, pool acquisition helpers; callers updated to import directly
- **`Atelier.Config`** — generic JSON config utilities: `envOverrides`, `deepMerge`, `LoadedConfig`, `runConfig`; `Hoard.Effects.ConfigPath` retains only the hoard-specific loader and `runConfigRoot`
@cgeorgii cgeorgii force-pushed the refactor/atelier-pt2 branch from 1db2146 to 7f385c7 Compare March 18, 2026 14:23
@cgeorgii cgeorgii added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit 96be082 Mar 18, 2026
2 checks passed
@cgeorgii cgeorgii deleted the refactor/atelier-pt2 branch March 18, 2026 14:24
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.

2 participants