diff --git a/.release-please-manifest.develop.json b/.release-please-manifest.develop.json index 195fb0d..453f08f 100644 --- a/.release-please-manifest.develop.json +++ b/.release-please-manifest.develop.json @@ -1,5 +1,5 @@ { - ".": "0.1.0-alpha.17", - "apps/web": "0.1.0-alpha.17", + ".": "0.1.0-alpha.18", + "apps/web": "0.1.0-alpha.18", "apps/worker": "0.1.0-alpha.3" } diff --git a/CHANGELOG-DEVELOP.md b/CHANGELOG-DEVELOP.md index 4c43798..f4ce6a9 100644 --- a/CHANGELOG-DEVELOP.md +++ b/CHANGELOG-DEVELOP.md @@ -1,5 +1,12 @@ # Changelog +## [0.1.0-alpha.18](https://github.com/devakone/vibe-coding-profiler/compare/vibe-coding-profiler-v0.1.0-alpha.17...vibe-coding-profiler-v0.1.0-alpha.18) (2026-02-12) + + +### Bug Fixes + +* correct LLM config column names to match DB schema ([1c5411a](https://github.com/devakone/vibe-coding-profiler/commit/1c5411a0557edbcdfe81c9792966c8705611847d)) + ## [0.1.0-alpha.17](https://github.com/devakone/vibe-coding-profiler/compare/vibe-coding-profiler-v0.1.0-alpha.16...vibe-coding-profiler-v0.1.0-alpha.17) (2026-02-12) diff --git a/apps/web/CHANGELOG-DEVELOP.md b/apps/web/CHANGELOG-DEVELOP.md index a2f244f..cbf7037 100644 --- a/apps/web/CHANGELOG-DEVELOP.md +++ b/apps/web/CHANGELOG-DEVELOP.md @@ -1,5 +1,12 @@ # Changelog +## [0.1.0-alpha.18](https://github.com/devakone/vibe-coding-profiler/compare/web-v0.1.0-alpha.17...web-v0.1.0-alpha.18) (2026-02-12) + + +### Bug Fixes + +* correct LLM config column names to match DB schema ([1c5411a](https://github.com/devakone/vibe-coding-profiler/commit/1c5411a0557edbcdfe81c9792966c8705611847d)) + ## [0.1.0-alpha.17](https://github.com/devakone/vibe-coding-profiler/compare/web-v0.1.0-alpha.16...web-v0.1.0-alpha.17) (2026-02-12) diff --git a/apps/web/src/lib/llm-config.ts b/apps/web/src/lib/llm-config.ts index 8aed025..e7a89d0 100644 --- a/apps/web/src/lib/llm-config.ts +++ b/apps/web/src/lib/llm-config.ts @@ -74,9 +74,8 @@ interface PlatformLLMConfigRecord { api_key_encrypted: string; model: string | null; is_active: boolean; - platform_limit: number | null; + free_tier_limit: number | null; llm_disabled: boolean | null; - profile_llm_repo_limit: number | null; } // Type for llm_configs queries (until DB types regenerated) @@ -242,7 +241,7 @@ async function getPlatformLLMConfigFromDB(): Promise<{ // eslint-disable-next-line @typescript-eslint/no-explicit-any const { data, error } = await (service as any) .from("llm_configs") - .select("id, provider, api_key_encrypted, model, is_active, platform_limit, llm_disabled, profile_llm_repo_limit") + .select("id, provider, api_key_encrypted, model, is_active, free_tier_limit, llm_disabled") .eq("scope", "platform") .maybeSingle(); @@ -251,9 +250,10 @@ async function getPlatformLLMConfigFromDB(): Promise<{ } const record = data as PlatformLLMConfigRecord; - const perRepoLimit = record.platform_limit ?? DEFAULT_LLM_ANALYSES_PER_REPO; + const perRepoLimit = record.free_tier_limit ?? DEFAULT_LLM_ANALYSES_PER_REPO; const llmDisabled = record.llm_disabled ?? false; - const profileLlmRepoLimit = record.profile_llm_repo_limit ?? DEFAULT_PROFILE_LLM_REPO_LIMIT; + // profile_llm_repo_limit not in DB schema yet, use default + const profileLlmRepoLimit = DEFAULT_PROFILE_LLM_REPO_LIMIT; if (llmDisabled || !record.api_key_encrypted) { return { config: null, perRepoLimit, llmDisabled, profileLlmRepoLimit };