Skip to content

fix: migrate all imports from usage-loader to module-loader#106

Merged
devin-ai-integration[bot] merged 1 commit into
developfrom
fix/fn-runtime-module-loader-import
Jun 15, 2026
Merged

fix: migrate all imports from usage-loader to module-loader#106
devin-ai-integration[bot] merged 1 commit into
developfrom
fix/fn-runtime-module-loader-import

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

All consumers of @constructive-io/usage-loader now import directly from @constructive-io/module-loader. The usage-loader shim package still exists but is no longer depended on by any workspace package.

Why: CI builds fn-runtime before usage-loader's dist exists, causing TS2307: Cannot find module '@constructive-io/usage-loader'. Importing from module-loader directly eliminates the extra build-order dependency.

What changed:

  • packages/fn-runtimeUsageLoader import → module-loader
  • packages/agentic-serverUsageLoader, getLoader, _resetLoaderCache, InferenceEntry imports → module-loader (with renamed exports: getModuleLoader as getLoader, _resetModuleLoaderCache as _resetLoaderCache)
  • job/workercompute-meter.ts, storage-meter.ts, usage-client.ts imports → module-loader
  • All three package.json deps updated: usage-loadermodule-loader

Link to Devin session: https://app.devin.ai/sessions/b2291a8e333e445aa125a2efd1996206
Requested by: @pyramation

All consumers now import directly from @constructive-io/module-loader
instead of going through the @constructive-io/usage-loader shim.
Fixes CI build order issue where fn-runtime failed to find usage-loader
types before they were compiled.
@devin-ai-integration

Copy link
Copy Markdown

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot merged commit 59cb03c into develop Jun 15, 2026
9 checks passed
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