deprecation(#59): mark ImageProvider, ImageProviderConfig, IMAGE_MODELS as @deprecated#66
Merged
Merged
Conversation
…LS as @deprecated (v1.6.1) img-forge is the org's canonical image generation service. ImageProvider is a frozen snapshot of img-forge internals that will not track new models or providers as img-forge's registry grows. Phase 1 (this PR): JSDoc @deprecated on ImageProvider, ImageProviderConfig, IMAGE_MODELS. Exports retained — no breaking change. normalizeAiResponse left undeprecated pending Phase 2 audit. Phase 2 (next major): remove src/image/ entirely. Closes #59 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4a26b6d to
a20ace1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@deprecatedtoImageProvider,ImageProviderConfig, andIMAGE_MODELSinsrc/image/[Deprecated]marker in the utilities tableimg-forge is the org's canonical image generation service.
ImageProvideris a frozen snapshot of img-forge internals extracted during an earlier coupling phase. As img-forge's model registry grows (FAL.ai, Replicate, Ideogram, Runway, Veo planned),ImageProviderwill silently drift and mislead callers.normalizeAiResponseis NOT deprecated — it has no non-image callers but is flagged for audit before Phase 2 removal.Boundary going forward
Phase 2 (next major)
Remove
src/image/entirely. img-forge will import@stackbilt/llm-providersfor intermediary text/vision inference; llm-providers should not depend on or duplicate img-forge's domain.Note on versioning
This PR and #58 both branch from
mainat1.6.0and both claim1.6.1. Whichever merges second should rebase and bump to1.6.2.Test plan
npm test)ImageProvidersee deprecation warnings in their IDE🤖 Generated with Claude Code