-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: create unified entry point and clean up modules #3
base: main
Are you sure you want to change the base?
Conversation
- Created unified CLI entry point for all commands - Fixed TypeScript type definitions - Added knip configuration for dependency analysis - Updated package.json scripts to use unified entry point - Fixed provider type definitions and error handling Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
@@ -38,62 +38,7 @@ export const readCSVAndSendData = async () => { | |||
} | |||
}; | |||
|
|||
export const insertSubscriptionsCSVToDB = async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this function is useful
@@ -4,13 +4,3 @@ import { ChatOllama } from '@langchain/ollama'; | |||
export type OllamaSettings = { | |||
baseUrl: string; | |||
}; | |||
|
|||
export const getOllamaLLM = ({baseUrl ,model , temperature } = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this one
@@ -0,0 +1,59 @@ | |||
declare module 'vue-template-compiler' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this one
@@ -1,58 +0,0 @@ | |||
import { HNSWLib } from '@langchain/community/vectorstores/hnswlib'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this one
@@ -1,89 +0,0 @@ | |||
import { AIMessage, HumanMessage } from '@langchain/core/messages'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this file
@@ -1,38 +0,0 @@ | |||
import { HumanMessage as BaseChatMessage } from '@langchain/core/messages'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this file
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
packages/shell-bot/src/index.ts
Outdated
@@ -1,125 +0,0 @@ | |||
#!/usr/bin/env node | |||
import * as fs from 'fs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this file
@@ -1,54 +0,0 @@ | |||
// const embeddingsPrompt = (name: string) => ` | |||
// As an AI, I can assist you in locating specific files based on certain criteria. You're searching for files that include ${name}. The file paths should begin with either /vue2 or /vue3. Furthermore, the term ${name} must appear somewhere in the file path. Could you please generate the file paths that meet all these requirements? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this file
|
||
// Now, the translated VUE3 code is | ||
|
||
const SystemPrompt = ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this file
packages/shell-bot/src/react.ts
Outdated
@@ -140,6 +140,8 @@ async function main() { | |||
process.exit(0); | |||
} | |||
|
|||
main().catch((error) => { | |||
if (import.meta.url === `file://${process.argv[1]}`) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this change
@@ -165,8 +165,7 @@ Réponse:`, | |||
|
|||
export type Language = keyof typeof Prompts; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line
main().catch(Log.error); | ||
|
||
// Export for external use | ||
if (import.meta.url === `file://${process.argv[1]}`) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need this line
@@ -1,82 +0,0 @@ | |||
import * as fs from 'fs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this file
@@ -0,0 +1,9 @@ | |||
export interface Document { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this file
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
Co-Authored-By: [email protected] <[email protected]>
@@ -1,20 +1,18 @@ | |||
declare module 'obsidian' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this file
I've added some commits. Please create a new HTML page similar to feeds.html to display read_later DB data in a table. The table should allow sorting by link and support marking multiple items as finished. |
Devin is currently unreachable - the session may have died. |
Module Cleanup and Unified Entry Point
This PR introduces a unified entry point for all commands and cleans up unused modules and dependencies.
Changes
Unified Entry Point:
src/cli.ts
as the main entry pointType System Improvements:
Dependency Management:
Testing
rss
: RSS feed analyzerai-links
: Link analysis with test modecron
: Scheduled tasksvue
: Vue applicationreact
: React applicationNext Steps
Based on knip analysis, we have identified several unused files and dependencies that can be removed in a future PR:
These will be addressed in a separate PR to ensure a clean and focused review process.
Link to Devin run: https://app.devin.ai/sessions/43803c9c94a14417a67aec3b7c310920
Requested by: [email protected]