Skip to content

Added tool for the brand config files #3

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Added tool for the brand config files #3

wants to merge 3 commits into from

Conversation

Kitenite
Copy link

Description

Added a tool to the Agent to find the brand config files and return globals.css and tailwind.config.js|ts|mjs

Related Issues

related onlook-dev#1696

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Release
  • Refactor
  • Other (please describe):

Testing

Tested by writing test scripts

Screenshots (if applicable)

Screenshot from 2025-05-08 01-10-30


Important

Added a tool to locate brand config files (globals.css and tailwind.config) in a project directory, with tests to verify functionality.

  • New Feature:
    • Added getBrandConfigFiles function in helpers.ts to locate globals.css and tailwind.config files in a directory.
    • Introduced getBrandConfigTool in index.ts to expose the functionality as a tool.
  • Testing:
    • Added brand-config-file.test.ts to test getBrandConfigFiles for various scenarios, including file discovery and exclusion of node_modules.

This description was created by Ellipsis for 0041a99. You can customize this summary. It will automatically update as commits are pushed.

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.

2 participants