Skip to content

refactor(format): effectify FormatService as scoped service#17675

Merged
kitlangton merged 2 commits intodevfrom
effectify-format
Mar 16, 2026
Merged

refactor(format): effectify FormatService as scoped service#17675
kitlangton merged 2 commits intodevfrom
effectify-format

Conversation

@kitlangton
Copy link
Contributor

@kitlangton kitlangton commented Mar 16, 2026

Summary

  • Convert Format from Instance.state + namespace to Effect ServiceMap.Service
  • Bus subscription moves to layer constructor with addFinalizer cleanup (no listener leak)
  • Legacy Format.init/Format.status facades delegate via runPromiseInstance
  • New tests for status with default/disabled/excluded formatters

Test plan

  • bun run test test/format/format.test.ts — 4 tests pass
  • Full test suite — 1316 pass, 0 fail
  • Type-check clean (no new errors)

Stack: effectify-watcher → effectify-file-watcher-service → effectify-vcs → effectify-env-filetime → effectify-format

Stack

@kitlangton kitlangton force-pushed the effectify-env-filetime branch from 434173a to 70d22b8 Compare March 16, 2026 17:02
@kitlangton kitlangton force-pushed the effectify-env-filetime branch from 70d22b8 to 86aa331 Compare March 16, 2026 17:18
@kitlangton kitlangton force-pushed the effectify-env-filetime branch from c2ae062 to 718a918 Compare March 16, 2026 17:59
Base automatically changed from effectify-env-filetime to dev March 16, 2026 18:23
@kitlangton kitlangton force-pushed the effectify-format branch 2 times, most recently from 9d70289 to 2f36dd1 Compare March 16, 2026 18:54
Convert Format from Instance.state + namespace to Effect ServiceMap.Service.
Bus subscription moves to layer constructor with addFinalizer cleanup.
Legacy Format.init/status facades delegate via runPromiseInstance.
@kitlangton kitlangton merged commit 3353562 into dev Mar 16, 2026
10 checks passed
@kitlangton kitlangton deleted the effectify-format branch March 16, 2026 19:58
ConanXu-math pushed a commit to ConanXu-math/opencode that referenced this pull request Mar 17, 2026
AvatarGanymede pushed a commit to AvatarGanymede/opencode-dev that referenced this pull request Mar 19, 2026
demostanis pushed a commit to demostanis/opencode that referenced this pull request Mar 19, 2026
demostanis pushed a commit to demostanis/opencode that referenced this pull request Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant