Skip to content

fix: init dedup guard, plugin framework-logger dynamic import, delegation barrel exports#17

Merged
htafolla merged 1 commit intomasterfrom
fix/init-dedup-plugin-logger-delegation-exports
Mar 30, 2026
Merged

fix: init dedup guard, plugin framework-logger dynamic import, delegation barrel exports#17
htafolla merged 1 commit intomasterfrom
fix/init-dedup-plugin-logger-delegation-exports

Conversation

@htafolla
Copy link
Copy Markdown
Owner

Changes

  • init.sh dedup guard: TTL-based lockfile (10s window, keyed on PPID) prevents duplicate ASCII art when OpenCode loads the plugin config hook multiple times during startup
  • Remove stale plugin copies: Deleted .opencode/plugin/ (singular) and plugin/ (root) — only .opencode/plugins/ remains as the canonical location
  • Plugin framework-logger dynamic import: Replaced static import with 3-candidate dynamic resolution with no-op fallback. Fixes consumer Docker crash
  • Delegation barrel exports: Re-export RoutingOutcomeTracker, RoutingAnalytics, LearningEngine from delegation/analytics/
  • UVM bump to 1.15.22

…egation barrel exports

- Add TTL-based lockfile guard to init.sh (10s window) to prevent
  duplicate ASCII art on OpenCode startup when plugin loaded from
  multiple directories
- Remove stale .opencode/plugin/ (singular) and plugin/ (root)
  copies — only .opencode/plugins/ remains
- Replace static frameworkLogger import with 3-candidate dynamic
  import (../core/, ../../dist/core/, ../../../node_modules/strray-ai/)
  with no-op fallback — fixes consumer Docker resolution crash
- Re-export RoutingOutcomeTracker, RoutingAnalytics, LearningEngine
  from delegation/analytics/ barrel
- UVM bump to 1.15.22
@htafolla htafolla merged commit fe6b902 into master Mar 30, 2026
5 checks passed
@htafolla htafolla deleted the fix/init-dedup-plugin-logger-delegation-exports branch March 30, 2026 01:10
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