Commit graph

165 commits

Author SHA1 Message Date
Chris Estreich
62c3914034
Farewell jest (#4607)
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-06-16 21:39:45 -07:00
Matt Rubens
2eca105e35
Add a footer to the marketplace to report issues (#4604) 2025-06-12 16:18:07 -04:00
Chris Estreich
ab01fb3bdb
Move to Postgres for evals on roocode.com (#4520) 2025-06-11 14:17:53 -07:00
renovate[bot]
367593bf3e
chore(deps): update peter-evans/create-pull-request action to v7 (#4349)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-10 13:47:34 -07:00
Chris Estreich
8d5dab3518
GHA evals (#4472) 2025-06-10 11:01:54 -07:00
Chris Estreich
bb08fc80cf
Switch back to GH runners for CI (#4507) 2025-06-10 11:01:12 -07:00
blacksmith-sh[bot]
fb83f917cc
.github/workflows: Migrate workflows to Blacksmith runners (#4504)
Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
Co-authored-by: Chris Estreich <cestreich@gmail.com>
2025-06-10 10:41:20 -07:00
Chris Estreich
174da08b23
Publish CI failures to Slack (#4477) 2025-06-09 14:21:14 -07:00
Chris Estreich
5bc6690244
Allow manual dispatch for publish-nightly (#4476) 2025-06-09 12:09:45 -07:00
Matt Rubens
8f930ff6f8
Update CODEOWNERS (#4387) 2025-06-05 15:10:24 -04:00
Dicha Zelianivan Arkana
72493ad40d
chore: improve feature request template (#4338) 2025-06-04 15:11:34 -04:00
Chris Estreich
73f39616c3
Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
Chris Estreich
664346e34b
Automatically deploy to Vercel (#4307) 2025-06-03 16:23:09 -07:00
Chris Estreich
0e248a72e3
Add vercel deploy workflows (#4302) 2025-06-03 15:52:31 -07:00
Chris Estreich
314ccca1f7
DRY GHA workflows (#4294) 2025-06-03 15:12:16 -07:00
Matt Rubens
7cd89edaa4
Upgrade Node.js to v20.19.2 for security enhancements (#4212)
This commit upgrades Node.js version from v20.18.1 to v20.19.2.

This version incorporates security patches that address known
vulnerabilities, improving the overall security posture.

Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
2025-06-01 17:02:44 -04:00
cannuri
42f34ae9a5
Fix link to CONTRIBUTING.md in Feature Request Template (#4152)
fix link in feature request template
2025-05-30 20:31:22 -04:00
Chris Estreich
7820b7517a
Roo Code Cloud (#4069)
Co-authored-by: John Richmond <5629+jr@users.noreply.github.com>
2025-05-28 20:43:30 -07:00
Chris Estreich
39d0f68659
Improve configuration for npm publish of @roo-code/types (#4062) 2025-05-27 22:10:41 -07:00
Chris Estreich
ed24f65b30
Fix Posthog by correctly copying .env in the build process (#4049) 2025-05-27 11:19:21 -07:00
Chris Estreich
e66136f1aa
Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
Hannes Rudolph
1dcb6d4a8e
Improve GitHub templates (#3905)
* Improve GitHub templates

- Make bug report outcome summary required for better issue quality
- Make logs/errors optional to reduce friction for simple bugs
- Fix CONTRIBUTING.md path in PR template (../../ instead of ../)

* Update .github/ISSUE_TEMPLATE/bug_report.yml

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>

* Update .github/pull_request_template.md

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>

---------

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
2025-05-23 19:02:28 -04:00
Chris Estreich
48ca890c21
Add --no-verify when pushing tags (#3865) 2025-05-22 13:02:04 -07:00
Chris Estreich
999c3d6188
More publish fixes (#3864) 2025-05-22 12:55:08 -07:00
Chris Estreich
f860d78aca
More publish fixes (#3863) 2025-05-22 12:51:57 -07:00
Chris Estreich
61eaf84eac
Fix syntax error (#3861) 2025-05-22 12:47:06 -07:00
Chris Estreich
57a6ab1a85
Fix extension publish action (#3860) 2025-05-22 12:43:51 -07:00
Chris Estreich
22431f06f4
Fix changelog generation (#3859) 2025-05-22 12:31:55 -07:00
Chris Estreich
45e22637b5
Fix changelog generation (#3856) 2025-05-22 12:01:57 -07:00
Chris Estreich
0521163212
Fix changeset version bumping (#3850) 2025-05-22 11:41:19 -07:00
Chris Estreich
58a0efa9e1
Move e2e into apps (#3823) 2025-05-22 08:41:58 -07:00
Chris Estreich
568fb875fa
Improve version number derivation (#3822) 2025-05-21 23:59:18 -07:00
Chris Estreich
57249a0881
PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
Chris Estreich
514c6a1618
Fix vsix checks (#3802) 2025-05-21 15:26:58 -07:00
Matt Rubens
bf0aeb326d
Update changeset-release.yml (#3801) 2025-05-21 17:41:27 -04:00
Chris Estreich
7d99689031
More VSCode command / build fixes (#3780) 2025-05-21 00:07:37 -07:00
Daniel
935acf5957
Add contact section to pull request template for communication (#3771) 2025-05-20 23:13:29 -04:00
Matt Rubens
7368fa9288
Moved repo to new org (#3756) 2025-05-20 16:42:18 -04:00
Chris Estreich
d7eec3afa6
Lock the versions of vsce and ovsx (#3643) 2025-05-15 16:49:09 -07:00
மனோஜ்குமார் பழனிச்சாமி
cbd77275a1
Add build vsix Workflow (#3600) 2025-05-14 13:21:04 -04:00
renovate[bot]
9beeade41b
chore(deps): update actions/setup-node action to v4 (#3570)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-13 14:15:07 -07:00
renovate[bot]
28693f6c86
chore(deps): update actions/checkout action to v4 (#3569)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-13 14:15:03 -07:00
Hannes Rudolph
7bef4f0fa6
Refactor bug report template to enforce required fields for reproduct… (#3454)
Refactor bug report template to enforce required fields for reproduction steps and outcome summary
2025-05-10 19:32:57 -04:00
Hannes Rudolph
6adb807d25
Tweaks to the issue/bug intended to make it more intuitive. (#3452)
* Update bug report template for clarity and improved user guidance

* Add Google Vertex AI and LiteLLM to API Provider options in bug report template
2025-05-10 14:17:43 -04:00
xyOz
12c3ed878e
Pr template fix (#3448)
* Fix links to Contributing Guidelines in pull request template

* ../
2025-05-10 13:15:47 -04:00
Hannes Rudolph
371419e7ab
fix: update links in issue and pull request templates to relative paths (#3251) 2025-05-07 00:29:40 -04:00
Hannes Rudolph
3ffe946bbf
feat: Revamp contribution process and templates (#3246) 2025-05-06 23:51:18 -04:00
Chris Estreich
11ed7d7d46
Add support for tests that use ESM libraries (#3172)
* Add support for tests that use ESM libraries

* Disable win32 for this test for now
2025-05-05 08:21:40 -07:00
ronyblum
a031b74bf5
Modification of AWS Bedrock to Amazon Bedrock (#2473)
* Modification of AWS Bedrock to Amazon Bedrock

* Duplicated comment removal
2025-04-10 15:47:34 -04:00
KJ7LNW
d7ad9470e2
Tree-sitter Enhancements: TSX, TypeScript, JSON, and Markdown Support (#2169)
* feat: add Tree-sitter TSX query support

Added support for parsing TSX files with Tree-sitter:
- Created TSX query patterns for React components and functions
- Fixed field name issues by using direct node matching
- Added comprehensive documentation about TSX component structure
- Created a debug tool to inspect the actual tree structure
- Added test coverage for TSX parsing
- Embedded test fixture directly in the test file

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* refactor: combine TypeScript and TSX queries

Reduce duplication by:
- Import TypeScript queries from typescript.ts
- Keep only TSX-specific component and JSX queries
- Update documentation to reflect combined approach

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* test: update integration for parse definitions

- Adjusted logParseResult to call the actual parse definitions function using WASM from initializeWorkingParser.
- Patched TreeSitter initialization to resolve the WASM path correctly and bypass redundant init() calls.

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* test: should successfully call parseSourceCodeDefinitionsForFile

Mock loadRequiredLanguageParsers to use real parser instance from initializeTreeSitter,
ensuring proper interaction between parseSourceCodeDefinitionsForFile and its dependencies.

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* test: improve test structure for parseSourceCodeDefinitions

- Combine component parsing tests into a single test case
- Update test assertions to match actual parser output
- Fix interface and component definition tests to use VSCodeCheckbox as sample

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* feat: improve React component detection in tree-sitter

- Add tests for complex TSX structures (nested components, HOCs)
- Enhance TSX queries to better detect React components
- Document current limitations in test file

* feat: improve React component detection in TSX files

Make TSX/React component detection more generic and robust by:
- Implementing structural pattern matching instead of specific React wrapper functions
- Adding configurable line threshold for React component inclusion (MIN_COMPONENT_LINES)
- Adding robust HTML element filtering with regex patterns
- Improving React component name handling for nested components
- Ensuring proper context handling for multi-line React components

Also update mock captures in tree-sitter tests to span at least 4 lines
to meet the MIN_COMPONENT_LINES threshold.

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* refactor: use testParseSourceCodeDefinitions in logParseResult

- Moved testParseSourceCodeDefinitions function to top level
- Updated logParseResult to use testParseSourceCodeDefinitions
- Removed duplicate function from describe block
- Added console.log for debugging output

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* refactor: improve React component detection output format

- Remove individual line output for components that don't meet MIN_COMPONENT_LINES threshold
- Update tests to match the new behavior where lines < MIN_COMPONENT_LINES are skipped
- Maintain range output (e.g., 1--4) for component definitions
- Preserve context for larger definitions as ranges only

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* feat: add switch/case statement support to tree-sitter TypeScript parser

- Added node patterns in typescript.ts query to capture switch statements, case clauses, and default clauses
- Modified index.ts to avoid duplicate line ranges in the output
- Added test for switch/case statements with complex case blocks
- Fixed line range tracking to prevent duplicate output

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* feat: add support for enum declarations in tree-sitter TypeScript parser

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* feat: add support for namespace declarations in tree-sitter TypeScript parser

Added query pattern for namespace declarations (internal_module nodes) in the TypeScript parser.
This allows the parser to identify and extract namespace declarations from TypeScript code.

- Added test case to verify namespace parsing functionality
- Added query pattern to capture namespace declarations in typescript.ts

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* feat: add decorator pattern support to tree-sitter TypeScript parser

- Added support for parsing complex decorators with arguments
- Added test case for Component decorator pattern
- Enhanced TypeScript queries to capture decorator definitions

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* feat: add generic type declaration support to tree-sitter TypeScript parser

- Added support for parsing generic types with constraints
- Added test case for Dictionary<K extends string | number, V> pattern
- Enhanced TypeScript queries to capture generic type definitions

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* test: add conditional type support to tree-sitter TypeScript parser

- Added test case for conditional type patterns like ReturnType<T>
- Verified that conditional types with infer keyword are already supported
- Enhanced inspectTreeStructure with detailed node inspection for debugging

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* test: add template literal type support to tree-sitter TypeScript parser

- Added test case for template literal type patterns like EventName<T>
- Verified that template literal types are already partially supported
- Confirmed support for complex template literal patterns in conditional types

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* feat: implement tree-sitter compatible markdown processor

Adds a special case implementation for markdown files that:
- Parses markdown headers and section line ranges
- Returns captures in a format compatible with tree-sitter
- Integrates with the existing parseFile function
- Includes comprehensive tests for the implementation

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* fix: markdown parser not detecting sections with horizontal rules

The markdownParser was incorrectly interpreting horizontal rules (---) as setext headers when they appeared after non-header text. This caused some sections to be missed in the output.

This fix:
- Makes setext header detection more strict by requiring at least 3 = or - characters
- Adds validation for the text line before a potential setext header
- Ensures horizontal rules are not confused with setext headers

Added a test case to verify the fix works correctly with horizontal rules.

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* refactor: move helper functions to dedicated file

Move test helper functions from parseSourceCodeDefinitions.test.ts to a new helpers.ts file.
Rename test file to parseSourceCodeDefinitions.tsx.test.ts to indicate it's for TSX tests.
This improves code organization by separating test helpers from test cases.

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* feat: enable JSON structure display in list_code_definitions

This change allows list_code_definitions to show JSON structures by:
- Moving JSON query patterns into the JavaScript query file
- Using the JavaScript parser for JSON files
- Removing the separate JSON parser implementation
- Adding comprehensive tests for JSON parsing

Example output for a JSON file:
# test.json
0--90 | {
1--9 |   "server": {
4--8 |     "ssl": {
10--45 |   "database": {
11--24 |     "primary": {
14--18 |       "credentials": {
19--23 |       "pool": {
25--44 |     "replicas": [
26--43 |       {
30--42 |         "status": {
33--41 |           "metrics": {
36--40 |             "connections": {
46--73 |   "features": {
47--72 |     "auth": {
48--71 |       "providers": {
49--53 |         "local": {
54--70 |         "oauth": {
56--69 |           "providers": [
57--68 |             {

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* fix: Add compile step to CI workflow to ensure WASM files are available

The TreeSitter tests were failing in CI because the WASM files weren't being copied to the dist directory before running the tests. This adds an explicit compile step to ensure the WASM files are properly built and copied.

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

* fix: improve tree-sitter test type safety and debug logging

- Replace 'any' types with proper Parser types in helpers.ts
- Add centralized DEBUG flag and debugLog function in helpers.ts
- Update all console.log statements to use debugLog across all test files
- This change appeases @ellipsis-dev by improving type safety and
  providing a clean way to control debug logging

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>

---------

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>
Co-authored-by: Eric Wheeler <roo-code@z.ewheeler.org>
2025-03-31 23:34:06 -05:00