Commit graph

773 commits

Author SHA1 Message Date
Dallin Romney
c71acb8e4b
fix: resolve critical and high security vulnerabilities (#11848)
* fix: resolve critical and high security vulnerabilities across packages

Bump vulnerable dependencies and remove unused `request` package to
address ~351 of ~394 npm audit vulnerabilities reported by GitHub.

* fix: handle nullable textContent from @mozilla/readability v0.6.0

readability.textContent can be undefined in v0.6.0, add nullish
coalescing to satisfy ArticleComponent.body type constraint.
2026-03-26 10:46:44 -07:00
Ross Golder
19f7a1a45b Test fix. 2025-12-11 03:16:59 +07:00
continue[bot]
0b6cf1e10b Update tests to reflect removed token.* and credentials.* patterns
Remove test expectation for credentials.json which no longer matches after
removing credentials.* pattern. Add new tests to verify legitimate source
files (tokens.py, credentials.go, etc.) are not blocked.

Co-authored-by: nate <nate@continue.dev>
2025-12-11 03:16:59 +07:00
Ross Golder
998dfdd989 Fix overzealous security regexp. 2025-12-11 03:16:59 +07:00
Ross Golder
8c2a1ce3d6 Fix overzealous security regexp. 2025-12-11 03:16:59 +07:00
Patrick Erichsen
32d8f51e64 Update DocsCrawler.test.ts 2025-10-20 10:07:16 -07:00
Ting-Wai
833c98103d
feat: add weekly cn task to check documentation (#8076)
* feat: add weekly cn task to check documentation

* refactor into workflow call
2025-10-03 22:18:30 -07:00
Dallin Romney
77288b0e41 feat: posthog telemetry for cli tool errors 2025-09-19 00:02:03 -07:00
Dallin Romney
b7afeb2a52 fix: ignores for grep 2025-09-16 13:52:05 -07:00
Dallin Romney
b18061b126 fix: glob ignores for vscode 2025-09-16 13:38:39 -07:00
Nate
244e47b943 fix: small tweak in debug info message 2025-09-12 14:49:34 -07:00
uinstinct
9091e77cfd fix by mocking not needed refreshCodebaseIndex 2025-09-09 19:08:24 +05:30
uinstinct
e30a6613f4 try skipping specific tests 2025-09-09 17:54:28 +05:30
uinstinct
ca8c8c79eb skip codebaseindex test 2025-09-09 17:48:32 +05:30
uinstinct
4129c94cd0 rename to wasAnyOneIndexAdded 2025-09-09 01:43:45 +05:30
uinstinct
361a627a24 Revert "when there are fewer indexes return true"
This reverts commit d7066bed4b.
2025-09-09 01:42:30 +05:30
uinstinct
d7066bed4b when there are fewer indexes return true 2025-09-04 20:35:22 +05:30
uinstinct
7773a65be3 Merge branch 'main' into dependent-context-indexing 2025-09-04 20:29:08 +05:30
Nate Sesti
12c5f49fef
Reduce test flake (#7470)
* fix: reduce flake by retrying docs crawler test

* ci: only run llm tests when llm related files change
2025-08-29 15:21:07 -07:00
uinstinct
887994038f Merge branch 'main' into dependent-context-indexing 2025-08-28 18:43:46 +05:30
Nate
ed0921fc86 Merge branch 'main' into posthog-event-batching 2025-08-27 21:36:37 -07:00
Dallin Romney
f538f22aa0
Merge pull request #7007 from shssoichiro/docs-status-display
feat: improvements to docs indexing status visibility
2025-08-27 15:26:33 -07:00
Suhas S
f67539882c fix: CSS files not being indexed (#7072)
CSS files were not being indexed because codeChunker expects code
structures (classes/functions) that don't exist in CSS. The chunker
would return zero chunks, preventing CSS files from being indexed.

This fix routes CSS, HTML, JSON and similar non-code files to
basicChunker instead of codeChunker, ensuring they are properly
indexed while maintaining intelligent chunking for actual code files.
2025-08-25 00:08:15 +08:00
Nate
5e66525ffd delete indexing_error telemetry event 2025-08-23 21:09:24 -07:00
Dallin Romney
3853124eb3 fix: move ide dirs and venv dirs to indexing not security ignores 2025-08-21 19:51:01 -07:00
Dallin Romney
afb19b926a fix: move .continue from security to indexing ignore 2025-08-21 19:48:11 -07:00
Dallin Romney
5052dc7969 fix: ignore .idea etc. 2025-08-21 19:40:57 -07:00
Dallin Romney
8d53bb333d fix: cleanup file security pr 2025-08-21 17:33:12 -07:00
Dallin Romney
41dfda6ff9 fix: tests for new ignore tweaks 2025-08-21 16:19:31 -07:00
Dallin Romney
765d9d8f88 fix: update security ignores 2025-08-21 16:15:03 -07:00
Dallin Romney
fe16983203 fix: install core dependencies for cli 2025-08-21 15:43:35 -07:00
Dallin Romney
55068dc622 fix: update ignore package, rearrange for imports 2025-08-21 15:29:23 -07:00
Dallin Romney
d81a2304b6 wip: isSecurityConcern tests 2025-08-21 15:07:33 -07:00
Dallin Romney
400fefc1e3 fix: prevent security file reads cleanup 2025-08-21 14:18:53 -07:00
Dallin Romney
30c4cc1469 feat: prevent unsafe file reads 2025-08-21 13:40:03 -07:00
Josh Holmer
34f6607ab9
feat: improvements to docs indexing status visibility 2025-08-20 02:03:09 -04:00
uinstinct
660bda004b check equality for artifact id 2025-08-20 08:58:47 +05:30
uinstinct
fc2c0d2657 refreshcodebase index when indexes were changed 2025-08-19 17:13:57 +05:30
uinstinct
39d5c521ef Merge branch 'main' into dependent-context-indexing 2025-08-19 16:51:28 +05:30
Dallin Romney
3d942da4c2
Merge branch 'main' into dallin/context-defaults 2025-08-18 17:17:03 -07:00
Dallin Romney
adb81b0682 fix: codebase indexing on start with no context provider 2025-08-18 16:19:19 -07:00
Dallin Romney
36ef3cb15c fix: update has context provider 2025-08-18 13:11:09 -07:00
Dallin Romney
4717677959 feat: update default-included context providers, move to util 2025-08-18 12:52:02 -07:00
uinstinct
fd19be2bfe cleanup async encoders after tests 2025-08-18 18:31:36 +05:30
uinstinct
46724aa3e6 Merge branch 'main' into func-max-chunk-size 2025-08-18 18:20:53 +05:30
Patrick Erichsen
4eeb34940f
chore: remove docs cache (#7108)
* chore: remove docs cache

* Update DocsService.ts
2025-08-15 14:03:32 -07:00
Patrick Erichsen
85994118e8
feat: implement Sentry error tracking with privacy-first anonymization (#6881)
* feat: add sentry to core

* feat: implement comprehensive Sentry error tracking with privacy-first anonymization

- Add Sentry ErrorBoundary components following React best practices
- Implement shared anonymization logic between core and GUI environments
- Create organized sentry directory structure with clean exports
- Add Continue team member access control (@continue.dev email check)
- Preserve node_modules package names for debugging while anonymizing user paths
- Include comprehensive test coverage for all anonymization scenarios
- Set up source maps for readable production error stack traces
- Add browser-compatible hashing without crypto module dependency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: complete Sentry integration with GUI components and tests

- Add GUI TelemetryProviders with Sentry ErrorBoundary
- Create shared isContinueTeamMember utilities for both core and GUI
- Update all imports and dependencies for new sentry structure
- Add comprehensive test coverage and fix all TypeScript issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* fix: resolve GUI build errors by removing sentry index.ts and using specific imports

- Remove problematic index.ts that was pulling Node.js-specific Sentry code into browser bundle
- Update GUI to import specifically from anonymization.ts and constants.ts files
- Update core imports to use specific SentryLogger.ts import path
- GUI build now succeeds with proper source map upload to Sentry

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: move TelemetryProviders inside AuthProvider to fix test failures

- Move TelemetryProviders from main.tsx to Layout.tsx inside AuthProvider
- Fixes "useAuth must be used within an AuthProvider" error in tests
- TelemetryProviders now has access to auth context for Continue team member check
- GUI build and functionality remain working correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* merge main

* Update package.json

* fix tests

* fix errors

* Update extension.ts

* disable sentry in tests/local dev

* add additional error handling

* Update SentryLogger.ts

* remove global try/catch

* remove test code

* linting

* Update SentryLogger.ts

* more logs

* Update core.ts

* lower sampling rate

* fix tests

* feat: use `Logger`

* Update logger.ts

* Update logger.ts

Co-Authored-By: Claude <noreply@anthropic.com>

* lint fixes

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: rename logger.ts to Logger.ts for case sensitivity

This fixes TypeScript compilation errors in CI where the file
was tracked as lowercase logger.ts but referenced as Logger.ts
in imports.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* address ting-wai's feedback

* Update core.ts

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-14 16:54:21 -07:00
uinstinct
cec4f0f4a3 abort controller should not be undefined 2025-08-12 13:05:42 +05:30
uinstinct
e115abd5cd tests for codeChunker function definition 2025-08-11 08:43:43 +05:30
uinstinct
5b9feccc69 fix: abort controller before clearing 2025-08-08 12:42:08 +05:30