Conversation
- Updated genai-lite from v0.1.0 to v0.1.1 to use new utils export - Removed local PromptUtils.ts implementation - Updated RelevanceEngineService to import from genai-lite/utils - Added webpack alias to resolve genai-lite/utils path - Successfully tested with npm run package This completes Phase 2 of the prompt utilities extraction project, reducing code duplication and leveraging the shared genai-lite library. Signed-off-by: Luigi Acerbi <luigi.acerbi@gmail.com> Signed-off-by: lacerbi <luigi.acerbi@gmail.com>
- Removed PromptUtils.ts references from summary files - Added note about genai-lite/utils usage in RelevanceEngineService - Updated both short and long summaries in electron/services/ Signed-off-by: Luigi Acerbi <luigi.acerbi@gmail.com> Signed-off-by: lacerbi <luigi.acerbi@gmail.com>
- Updated genai-lite dependency from v0.1.1 to v0.1.3 - Configured LLMService to use Athanor's presets with 'replace' mode - Removed redundant local preset service and types: - Deleted src/types/athanorPresets.ts - Deleted src/services/athanorPresetService.ts - Added IPC support for fetching presets from LLM service: - Added GET_PRESETS channel to common/types/llm.ts - Implemented handler in electron/handlers/llmIpc.ts - Updated preload.ts and global types - Updated UI components to use genai-lite's ModelPreset type: - SendViaApiControls.tsx now fetches presets via IPC - ApiKeyManagementPane.tsx uses LLM service for presets - Fixed webpack and TypeScript config to support JSON imports - Updated AI summaries to reflect architectural changes This migration eliminates code duplication while maintaining full control over Athanor's model presets through genai-lite's configurable system. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: lacerbi <luigi.acerbi@gmail.com>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: lacerbi <luigi.acerbi@gmail.com>
- Replace local substituteVariables with genai-lite's renderTemplate - Update package.json to use genai-lite v0.1.4 - Remove substituteVariables function from promptTemplates.ts - Update imports in buildPrompt.ts to use renderTemplate - Update summary documentation to reflect changes The template rendering functionality is now provided by the genai-lite library, reducing code duplication and providing a well-tested utility to the broader community. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: lacerbi <luigi.acerbi@gmail.com>
Add entry for the migration to genai-lite's renderTemplate function in v0.7.12 release notes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: lacerbi <luigi.acerbi@gmail.com>
Use the standard genai-lite/utils import path with @ts-ignore to match the pattern already used in main process files. This resolves the blank screen issue caused by webpack module resolution errors. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: lacerbi <luigi.acerbi@gmail.com>
Add important notes about handling genai-lite and similar package imports in the renderer process to prevent webpack module resolution errors. This documents the solution to the blank screen issue and will help prevent similar issues in the future. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: lacerbi <luigi.acerbi@gmail.com>
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
Changes
Model Preset Migration (genai-lite v0.1.3)
AthanorModelPresettype andathanorPresetServiceModelPresettypesrc/config/athanorModelPresets.jsonTemplate Rendering Migration (genai-lite v0.1.4)
substituteVariablesfunction frompromptTemplates.tsbuildPrompt.tsto userenderTemplatefrom genai-liteOther Changes
Test Plan
npm test)npm run package)npx tsc --noEmit)🤖 Generated with Claude Code