Skip to content
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

Use CLI to list scripts #893

Merged
merged 8 commits into from
Nov 25, 2024
Merged

Use CLI to list scripts #893

merged 8 commits into from
Nov 25, 2024

Conversation

pelikhan
Copy link
Member

@pelikhan pelikhan commented Nov 23, 2024

Replace instances of templates with scripts throughout the codebase, streamlining the project structure and improving clarity. Remove the project class to simplify the architecture.


Pull Request Description

Summary of Changes

  • 🔄 CLI Commands Update:

    • Added short option -g for --groups parameter across various CLI commands to improve usability.
    • Enhanced the list command to include options for filtering scripts by groups.
  • 🗂️ Script Management Enhancements:

    • Introduced a group property in script definitions for better categorization.
    • Refactored script handling to use scripts instead of templates for clarity and consistency across the codebase.
  • 🛠️ Project Structure and Utilities:

    • Moved Project interface to server/messages for better organization.
    • Implemented filterScripts utility for efficient script filtering based on criteria like IDs and groups.
  • 🧩 Schema and Configuration:

    • Added JSON schema for GenAIScript configuration to facilitate validation and standardization.
    • Introduced a sample configuration file in the sample directory for reference.
  • 🔍 Testing and Diagnostics:

    • Improved script test listing by integrating filterScripts for precise test selection.
    • Enhanced diagnostics by refining how scripts are parsed and validated.
  • 🧑‍💻 VSCode Extension Improvements:

    • Adjusted VSCode extension to accommodate changes in script management, ensuring seamless integration and functionality.
    • Enhanced the prompt tree and task provider to reflect script categorization and filtering updates.
  • 🐛 Bug Fixes and Minor Adjustments:

    • Fixed an issue where empty CSV inputs would cause errors by returning an empty array.
    • Corrected tagFilter logic to handle inclusive and exclusive tags more effectively.

These changes aim to improve usability, organization, and efficiency across the CLI, script management, and development tools.

generated by prd

@pelikhan pelikhan changed the title Refactor project structure to use scripts instead of templates Use CLI to list scripts Nov 25, 2024
@pelikhan pelikhan mentioned this pull request Nov 25, 2024
@pelikhan pelikhan merged commit b69e02b into main Nov 25, 2024
10 checks passed
@pelikhan pelikhan deleted the project-cleanup branch November 25, 2024 05:57
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.

1 participant