Skip to content

Fix package build structure and improve multiline input #96

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

Merged
merged 5 commits into from
Feb 26, 2025

Conversation

jucasoliveira
Copy link
Owner

@jucasoliveira jucasoliveira commented Feb 26, 2025

  • Fix Error after update: "Cannot find module './rag'" #95

  • Fix README shortcommings #94

    • Fix TypeScript configuration to properly include subdirectories in build process
    • Update package.json to reference correct binary location
    • Add proper build script with executable permissions
    • Improve context management and plugin handling
    • Improve text output speed
    • Implement proper multiline input support

jucasoliveira and others added 5 commits September 14, 2024 18:30
…d get a quick answer using LLM

feat(index.ts): add support for specifying engine and response temperature for 'one-shot' command
feat(index.ts): add logic to determine if a plugin should be used based on LLM response
feat(index.ts): add error handling for plugin execution and API key requirement for chat functionality
…rs to enter multiple lines of text

feat(intro.ts): update intro message to provide instructions for multiline input and exiting
feat(multiline.ts): create function to handle multiline input for user messages
feat(rag/index.ts): update prompt message to clarify plugin keyword usage for determining plugin applicability
…irectories

- Fix tsconfig to include all TypeScript files in src subdirectories with '**/*.ts' pattern
- Update binary path in package.json to point to correct location (lib/src/index.js)
- Add build script with proper permissions for executable
- Bump version to 2.0.3

🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>
- Add clearContext() when processing plugins to avoid context confusion
- Add conditional context adding for plugin responses to keep context clean
- Improve plugin keyword handling with trim() for more robust matching
- Speed up text output by reducing delay between characters to 5ms

🤖 Generated with Claude Code
Co-Authored-By: Claude <[email protected]>
…e-input-or-one-shot-with-input-from-argument-or-stdin

feat(index.ts): add new 'one-shot' command to ask a quick question an…
@jucasoliveira jucasoliveira merged commit c74380d into jucasoliveira:main Feb 26, 2025
1 check passed
Copy link

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements
38.33% (+0.95% 🔼)
161/420
🔴 Branches
14.6% (+0.73% 🔼)
20/137
🔴 Functions
24% (+2% 🔼)
12/50
🔴 Lines
37.5% (+1% 🔼)
150/400

Test suite run success

12 tests passing in 3 suites.

Report generated by 🧪jest coverage report action from f4e447f

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.

Error after update: "Cannot find module './rag'" README shortcommings
1 participant