Skip to content

refactor(forge): rename SpriteSession/SpriteClient to InfraSession/InfraClient#35

Open
patrickdet wants to merge 1 commit intoagentjido:mainfrom
patrickdet:refactor/sprite-to-infra-rename
Open

refactor(forge): rename SpriteSession/SpriteClient to InfraSession/InfraClient#35
patrickdet wants to merge 1 commit intoagentjido:mainfrom
patrickdet:refactor/sprite-to-infra-rename

Conversation

@patrickdet
Copy link

Summary

  • Rename SpriteSessionInfraSession, SpriteClientInfraClient, SpriteSupervisorInfraSupervisor
  • InfraClient dispatch supports :default, :fake, :live, :sprite, :hetzner, and arbitrary modules via resolve_infra_client/1
  • Fix InfraSession to merge hetzner_config/workspace_id into infra spec for ForgeAdapter.create
  • Fix on_progress callback to return :ok (required by emit_progress with-chain)
  • Import colocated LiveView hooks in app.js (fixes terminal input on Forge show page)
  • DB columns kept as sprite_id/sprite_name to avoid migration
  • Legacy :sprite_client spec key still accepted for backward compat

Test plan

  • 314 tests pass, 0 failures
  • Compiles clean with --warnings-as-errors
  • Zero stale references to old module names in lib/
  • Live smoke-tested: Hetzner VM provisioned, SSH connected, bootstrap ran, terminal commands executed via Forge UI

…fraClient

Decouple the Forge subsystem from the Sprites-specific naming so it can
work with any infrastructure provider (Sprites, Hetzner, local fake).

- SpriteSession → InfraSession, SpriteClient → InfraClient,
  SpriteSupervisor → InfraSupervisor
- InfraClient dispatch via resolve_infra_client/1 supports :default,
  :fake, :live, :sprite, :hetzner, and arbitrary modules
- InfraSession.init merges hetzner_config/workspace_id into the infra
  spec so ForgeAdapter.create receives the full config
- on_progress callback now returns :ok for emit_progress with-chain
- Import colocated LiveView hooks in app.js (fixes terminal input)
- DB columns kept as sprite_id/sprite_name to avoid migration
- Legacy :sprite_client spec key still accepted for backward compat
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