Skip to content

refactor(instance): move scoped services to LayerMap#17544

Merged
kitlangton merged 5 commits intodevfrom
effectify-watcher
Mar 16, 2026
Merged

refactor(instance): move scoped services to LayerMap#17544
kitlangton merged 5 commits intodevfrom
effectify-watcher

Conversation

@kitlangton
Copy link
Contributor

@kitlangton kitlangton commented Mar 15, 2026

Summary

  • Move question, permission, and provider auth onto a shared per-instance LayerMap with InstanceContext for directory/project resolution
  • Replace InstanceState with closure-backed service state and a lightweight instance disposal bridge
  • Add runPromiseInstance for the common runtime wiring pattern
  • Remove obsolete ProviderAuth.api test (method was replaced by ProviderAuthService)

Testing

  • bun run test test/question/ test/permission/next.test.ts test/plugin/auth-override.test.ts
  • bunx tsgo --noEmit

ProviderAuth was replaced by ProviderAuthService — this test
references the removed .api() method and breaks typecheck.
@kitlangton kitlangton changed the title refactor(instance): replace InstanceState with LayerMap services refactor(instance): move scoped services to LayerMap Mar 15, 2026
@kitlangton kitlangton marked this pull request as ready for review March 15, 2026 13:34
@kitlangton kitlangton merged commit 469c3a4 into dev Mar 16, 2026
8 checks passed
@kitlangton kitlangton deleted the effectify-watcher branch March 16, 2026 16:55
ConanXu-math pushed a commit to ConanXu-math/opencode that referenced this pull request Mar 17, 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