Brendan Kellam
22d548e171
fix(search-contexts): Fix issue where a repository would not appear in a search context if it was created after the search context was created ( #354 )
...
## Problem
If a repository is added **after** a search context (e.g., a new repository is synced from the code host), then it will never be added to the context even if it should be included. The workaround is to restart the instance.
## Solution
This PR adds a call to re-sync all search contexts whenever a connection is successfully synced. This PR adds the `@sourcebot/shared` package that contains `syncSearchContexts.ts` (previously in web) and it's dependencies (namely the entitlements system).
## Why another package?
Because the `syncSearchContexts` call is now called from:
1. `initialize.ts` in **web** - handles syncing search contexts on startup and whenever the config is modified in watch mode. This is the same as before.
2. `connectionManager.ts` in **backend** - syncs the search contexts whenever a connection is successfully synced.
## Follow-up devex work
Two things:
1. We have several very thin shared packages (i.e., `crypto`, `error`, and `logger`) that we can probably fold into this "general" shared package. `schemas` and `db` _feels_ like they should remain separate (mostly because they are "code-gen" packages).
2. When running `yarn dev`, any changes made to the shared package will only get picked if you `ctrl+c` and restart the instance. Would be nice if we have watch mode work across package dependencies in the monorepo.
2025-06-17 14:04:25 -07:00
Michael Sukkarieh
9d86052ff5
Delete account join request when redeeming an invite ( #352 )
...
* delete account join request when redeeming an invite
* fix account request fetch
2025-06-13 17:22:57 -07:00
Brendan Kellam
cf8fdd94f6
chore: Move bitbucket dependency to backend from workspace root ( #351 )
2025-06-13 16:53:05 -07:00
Michael Sukkarieh
4fbf8059d0
fix web build warnings ( #348 )
2025-06-13 10:24:25 -07:00
Brendan Kellam
5ebd07ffe1
fix: Add default debounce & staleTime to file/folder prefetching ( #346 )
2025-06-11 13:51:42 -07:00
Michael Sukkarieh
65d6e928b8
Fix repo column header styling ( #344 )
...
* fix repo column header styling
* add changelog entry
2025-06-11 09:34:24 -07:00
Gabriel Dugny
e423b56f42
fix(gitlab): Properly handle auth for Gitlab project avatars ( #345 )
2025-06-11 09:33:53 -07:00
Michael Sukkarieh
1ea377e7d6
Clean up successful and failed jobs ( #343 )
...
* clean up
* annoying log nit
* feedback
2025-06-10 18:07:07 -07:00
drew-u410
9be5522c7b
[selection] highlight clarity ( #342 )
2025-06-10 09:23:03 -07:00
Brendan Kellam
37ce151603
feature: basic file search ( #341 )
2025-06-09 12:51:35 -07:00
drew-u410
eb6d58d6d3
[search/browse] link repo name to file browser; link code image to external ( #340 )
2025-06-07 12:27:29 -07:00
Michael Sukkarieh
d29d3fc7f2
Added hover tooltip for long repo names in filter panel ( #338 )
...
* handle long repo names better in the UI
* changelog
* clean up hover UI
* cleanup unused logic
* simplify
* remove unused import
* changelog update
2025-06-06 13:16:19 -07:00
Michael Sukkarieh
0f3cdb7dd7
Add repo index validation ( #339 )
...
* add repo index validation
* add entry to changelog
2025-06-06 13:15:27 -07:00
Brendan Kellam
27fb5ad294
feature: File explorer ( #336 )
2025-06-06 12:38:16 -07:00
Michael Sukkarieh
8dc41a22b9
Fix repo images in authed instance case and add manifest json ( #332 )
...
* wip fix repo images
* fix config imports
* add manifest json
* more logos for manifest
* add properly padded icon
* support old gitlab token case, simplify getImage action, feedback
* add changelog entry
* fix build error
2025-06-06 10:50:13 -07:00
Michael Sukkarieh
397262ecf7
Adds support for encrypted license keys ( #335 )
...
* implement encrypted key logic
* cache public key
* add SOURCEBOT_PUBLIC_KEY_PATH to docs
* feedback
2025-06-05 22:18:52 -07:00
Brendan Kellam
ee88353e13
chore: Add separate login / signup screens ( #331 )
2025-06-04 16:42:52 -07:00
Brendan Kellam
46d7ca9ff4
feature: Add keyboard shortcuts for goto def & find all refs ( #329 )
2025-06-03 19:30:18 -07:00
Michael Sukkarieh
9227b3caba
Add support for GCP IAP JIT account provisioning ( #330 )
...
* initial gcp iap implementation
* gcp iap working
* add docs for gcp iap
* feedback
* changelog
2025-06-03 19:28:38 -07:00
drew-u410
749bfc28f3
[dev + copy button] add / update local dev w/docker compose; add copy button to the right of filenames ( #328 )
2025-06-03 08:52:59 -07:00
Brendan Kellam
91e803d7a6
fix: Improve symbol reference/definition list perf ( #327 )
2025-06-02 14:49:51 -07:00
Brendan Kellam
81a9ea1e59
fix: Fix symbol hover popover clipping issue ( #326 )
2025-06-02 13:09:47 -07:00
Brendan Kellam
8a9cdfda77
fix: Fix "Mark decorations may not be empty" issue ( #325 )
2025-06-02 11:22:52 -07:00
Michael Sukkarieh
3b36ffa17e
Add support for structured logs ( #323 )
...
* wip on refactoring docs
* wip
* initial structured logs impl
* structured log docs
* create logger package
* add news entry for structured logging
* add logger package to dockerfile and cleanup
* add gh workflow for catching broken links
* further wip
* fix
* further wip on docs
* review feedback
* remove logger dep from mcp package
* fix build errors
* add back auth_url warning
* fix sidebar title consistency
---------
Co-authored-by: bkellam <bshizzle1234@gmail.com>
2025-06-02 11:16:01 -07:00
Brendan Kellam
ce8d55f558
V4 docs refactor ( #322 )
2025-06-01 18:51:12 -07:00
msukkari
a2e06266db
fix issue with new auth providers not being shown in login page
2025-05-30 11:12:00 -07:00
Brendan Kellam
65cdaaa658
fix: Fix issue with how entitlements are resolved for cloud ( #319 )
2025-05-28 17:35:18 -07:00
bkellam
17d47bf7a4
@sourcebot/mcp 1.0.2
2025-05-28 16:55:58 -07:00
bkellam
0568b03a80
fix: hide license settings in cloud environments
2025-05-28 16:42:59 -07:00
Michael Sukkarieh
60a3528394
V4 ( #311 )
...
Sourcebot V4 introduces authentication, performance improvements and code navigation. Checkout the [migration guide](https://docs.sourcebot.dev/self-hosting/upgrade/v3-to-v4-guide ) for information on upgrading your instance to v4.
### Changed
- [**Breaking Change**] Authentication is now required by default. Notes:
- When setting up your instance, email / password login will be the default authentication provider.
- The first user that logs into the instance is given the `owner` role. ([docs](https://docs.sourcebot.dev/docs/more/roles-and-permissions )).
- Subsequent users can request to join the instance. The `owner` can approve / deny requests to join the instance via `Settings` > `Members` > `Pending Requests`.
- If a user is approved to join the instance, they are given the `member` role.
- Additional login providers, including email links and SSO, can be configured with additional environment variables. ([docs](https://docs.sourcebot.dev/self-hosting/configuration/authentication )).
- Clicking on a search result now takes you to the `/browse` view. Files can still be previewed by clicking the "Preview" button or holding `Cmd` / `Ctrl` when clicking on a search result. [#315 ](https://github.com/sourcebot-dev/sourcebot/pull/315 )
### Added
- [Sourcebot EE] Added search-based code navigation, allowing you to jump between symbol definition and references when viewing source files. [Read the documentation](https://docs.sourcebot.dev/docs/search/code-navigation ). [#315 ](https://github.com/sourcebot-dev/sourcebot/pull/315 )
- Added collapsible filter panel. [#315 ](https://github.com/sourcebot-dev/sourcebot/pull/315 )
### Fixed
- Improved scroll performance for large numbers of search results. [#315 ](https://github.com/sourcebot-dev/sourcebot/pull/315 )
2025-05-28 16:08:42 -07:00
msukkari
b71a28b392
fix repo failure UI extending past bounds
2025-05-22 13:36:20 -07:00
bkellam
169fc52800
@sourcebot/mcp v1.0.1
2025-05-15 13:55:39 -07:00
Brendan Kellam
1aafc228cf
feat: Generic git host support (local & remote) ( #307 )
2025-05-15 13:42:58 -07:00
Michael Sukkarieh
bbdd9e7903
update MCP README
2025-05-14 14:05:42 -07:00
Brendan Kellam
fd65d78475
chore: Resolve DATA_CACHE_DIR in .env.development ( #306 )
2025-05-12 14:42:53 -07:00
securisec
55127f7dd9
Align gitea clone_url with gitea host url. Addresses #270 ( #303 )
...
Co-authored-by: Michael Sukkarieh <michael.sukkarieh@mail.mcgill.ca>
2025-05-12 12:38:27 -07:00
Brendan Kellam
e4e36bd745
fix: Fixed issue with repositories appearing in the carousel when indexing fails on first sync ( #305 )
2025-05-12 12:10:20 -07:00
Michael Sukkarieh
e64f37178a
Review Agent ( #298 )
...
* push review agent implementation
* feedback
* wip integrating review agent into monorepo
* move review agent to web
* feedback
* feedback
* add rate limit throttling to octokit
* configure agent ui in app
* docs
* add review command logic and add logging for review agent to data cache dir
* fix bug with llm returning multiple reviews in single invocation
* fix doc link bug
* feedback and improved docs for review agent
* review agent doc nits
* mcp doc nit
2025-05-12 12:10:01 -07:00
bkellam
f385ee2f7b
nit: update package.json of mcp with whitespace since yarn kept adding it
2025-05-12 12:08:47 -07:00
msukkari
13b7b352bd
better error handling for git operations
2025-05-10 08:37:03 -07:00
smithery-ai[bot]
6cd6d69817
[packages/mcp] deployment: Dockerfile and Smithery config ( #300 )
2025-05-08 09:54:36 -07:00
bkellam
4917e3ecb9
Add 'add repos' button that appears in the demo site
2025-05-07 21:08:28 -07:00
Brendan Kellam
873c9ef2a4
Sourcebot MCP ( #292 )
2025-05-07 16:21:05 -07:00
Brendan Kellam
b280e2ddbb
fix: Fix repo carousel thrashing ( #294 )
2025-05-06 10:44:14 -07:00
Brendan Kellam
eb10d599f3
chore: Sourcebot REST api surface ( #290 )
2025-05-03 11:33:58 -07:00
Brendan Kellam
0119510ce3
docs: Add docs generation to schema build command ( #284 )
2025-04-30 15:41:33 -07:00
Brendan Kellam
14ce633cf0
feat: add rev:* syntax to explicitly search all branches ( #281 )
2025-04-30 15:38:30 -07:00
Brendan Kellam
68265accbe
Fix auth with GitHub ( #288 )
2025-04-30 14:22:41 -07:00
Brendan Kellam
09894a5d7d
Add exclude.readOnly and exclude.hidden to gerrit connection config ( #280 )
2025-04-29 12:05:19 -07:00
Brendan Kellam
ceb8b3ab2e
Embed filter selection in query params ( #276 )
2025-04-28 12:10:43 -07:00