Skip to content

fix: restore SQLite-backed providers in ESM builds#105

Closed
gojoGS wants to merge 1 commit intogetagentseal:mainfrom
gojoGS:fix/sqlite-esm-loader
Closed

fix: restore SQLite-backed providers in ESM builds#105
gojoGS wants to merge 1 commit intogetagentseal:mainfrom
gojoGS:fix/sqlite-esm-loader

Conversation

@gojoGS
Copy link
Copy Markdown

@gojoGS gojoGS commented Apr 19, 2026

Even though OpenCode support was added in #31, I wasn't able to use it in 0.7.3.

Codeburn opened, but didn't show any activities. I had used OpenCode extensively for the past 2 months and I had a valid and populated opencode.db located in ~/.local/share/opencode/, so I wasn't sure the issue was on my end.

After investigating, I've found this manifested, because Codeburn failed to import the sqlite module and this failed silently. Thus no usage data was returned to be analyzed. Reworking module import fixed this issue for me.

Operating System: Windows 10
Shell: Powershell 7.6.0
Node version: v25.9.0
OpenCode version: 1.4.11
Codeburn version: 0.7.3

@iamtoruk
Copy link
Copy Markdown
Member

Thanks. The createRequire(import.meta.url) swap landed on main via PR #104 and is in 0.8.5 (src/sqlite.ts:1-8), same mechanism you have here. Closing. Appreciate the fix.

@iamtoruk iamtoruk closed this Apr 21, 2026
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.

2 participants