Commit graph

28 commits

Author SHA1 Message Date
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
Dallin Romney
56cf2abf20
feat: Respect Org Policies (#7087)
* fix: allow no selected org, respect policy

* feat: respect policies in extension

* fix: config handler test

* fix: context providers test
2025-08-11 19:20:07 -07:00
uinstinct
4b4e3e4702 fix misused promises errors in core folder 2025-06-13 23:01:28 +05:30
Nate
e32a187a40 better logging 2025-04-22 07:21:11 -07:00
Dallin Romney
ddcd2bc819 gui updates 1 2025-04-06 14:59:57 -07:00
Tomasz Stefaniak
7e30624949
Merge pull request #4712 from continuedev/tomasz/edit-rules
Preview and edit rules
2025-03-20 10:48:14 -07:00
tomasz-io
a8517cdf4d refactor: remove unused code 2025-03-18 14:14:18 -07:00
tomasz-io
d57d35d5bd feat: rules preview 2025-03-18 14:12:34 -07:00
tomasz-io
40914a8bf3 feat: rules display 2025-03-17 11:34:40 -07:00
Dallin Romney
f65496ac2a fix error passing 2025-03-15 17:23:55 -07:00
Nate
edcf5b321c load multiple local assistants 2025-03-08 16:09:08 -08:00
Nate
c401e1832f open control plane links with orgSlug 2025-02-05 17:14:39 -08:00
Nate
accd5d4b50 catch all config loading errors 2025-02-04 19:17:42 -08:00
Patrick Erichsen
8d3b8106f8
Merge pull request #3845 from ajshedivy/fix/register-custom-context-providers
fix VSCode API: run config reload with additional context providers
2025-02-03 13:34:43 -08:00
Nate
07c09138ab Merge branch 'main' into fix/register-custom-context-providers 2025-01-31 21:57:27 -08:00
Patrick Erichsen
b78fdc4147 feat: add scope selector 2025-01-31 13:19:59 -08:00
Patrick Erichsen
3b539d53c3 feat: assistant select 2025-01-28 16:06:49 -08:00
Nate
468acacd0a vscode setting for platform 2025-01-24 02:00:44 -08:00
Nate
5e91e466eb display version in assistants select 2025-01-23 18:55:18 -08:00
Adam Shedivy
344241bcda run config reload with additional context providers 2025-01-22 13:21:39 -06:00
Nate
aa8de1af3d better platform profile loading 2025-01-14 00:11:22 -08:00
Nate
9edd5e3e24 Use ConfigResult everywhere 2024-12-24 14:03:23 -05:00
Nate
0a3364df6b clean up config loading 2024-12-20 08:56:11 -08:00
Dallin Romney
504c0c3843 autodetect docs v1 2024-11-22 02:51:34 -08:00
Test
b5cab4609b chore: apply eslint to vscode and core 2024-11-11 07:38:52 -08:00
tomasz-io
820144aa0e improv: handle fatal and non-fatal errors
fix

fix: ui

feat: intrusive error

fix: errors

fix: error handling

fix: validation

fix: naming

fix: errors

cleanup

feat: fatal / non-fatal ui

cleanup

feat: fatal errors
2024-10-17 14:29:41 +07:00
tomasz-io
19a25ff65f refactor: return errors instead of throwing 2024-10-16 13:58:04 +07:00
tomasz-io
429e54ed34 feat: config.json validation 2024-10-15 22:11:35 +07:00