refactor(init): extract repo helpers (#518) #524

Merged
barrettruth merged 1 commit from refactor/init-repo-helpers-518 into main 2026-04-29 02:03:50 +00:00
barrettruth commented 2026-04-29 02:01:08 +00:00

Problem

lua/forge/init.lua still owned current-repo, scope, and remote web URL helpers, so internal callers and backend adapters had to reach through the top-level forge facade for repo resolution.

Solution

Extract those helpers into lua/forge/repo.lua, delegate the top-level API to that module, update internal callers and backends to depend on forge.repo directly, and refresh the compose and submission specs to stub the new dependency boundary.

## Problem `lua/forge/init.lua` still owned current-repo, scope, and remote web URL helpers, so internal callers and backend adapters had to reach through the top-level `forge` facade for repo resolution. ## Solution Extract those helpers into `lua/forge/repo.lua`, delegate the top-level API to that module, update internal callers and backends to depend on `forge.repo` directly, and refresh the compose and submission specs to stub the new dependency boundary.
Sign in to join this conversation.
No description provided.