Skip to content

Commit 3793ff9

Browse files
authored
Merge branch 'sourcebot-dev:main' into drew/uppercase_operators
2 parents 8cc896d + ccd0706 commit 3793ff9

File tree

308 files changed

+30869
-2159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

308 files changed

+30869
-2159
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
contact_links:
2-
- name: 💡 Feature Request
3-
url: https://github.com/sourcebot-dev/sourcebot/discussions/new?category=ideas
4-
about: Suggest any ideas you have using our discussion forums.
5-
- name: 🛟 Get Help
6-
url: https://github.com/sourcebot-dev/sourcebot/discussions/new?category=support
7-
about: If you can't get something to work the way you expect, open a question in our discussion forums.
2+
- name: 👾 Discord
3+
url: https://discord.gg/f4Cbf3HT
4+
about: Something else? Join the Discord!
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: "💡 Feature Request"
3+
about: Suggest an idea for this project
4+
title: "[FR] "
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Please search existing issues to avoid creating duplicates. -->
11+
12+
<!-- Describe the feature you'd like. -->

.github/ISSUE_TEMPLATE/get_help.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: "🛟 Get Help"
3+
about: Something isn't working the way you expect
4+
title: ""
5+
labels: help wanted
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Please search existing issues to avoid creating duplicates. -->
11+
12+
<!-- Describe the issue you are facing. -->

.github/workflows/_gcp-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
NEXT_PUBLIC_SENTRY_ENVIRONMENT=${{ vars.NEXT_PUBLIC_SENTRY_ENVIRONMENT }}
6161
NEXT_PUBLIC_SENTRY_WEBAPP_DSN=${{ vars.NEXT_PUBLIC_SENTRY_WEBAPP_DSN }}
6262
NEXT_PUBLIC_SENTRY_BACKEND_DSN=${{ vars.NEXT_PUBLIC_SENTRY_BACKEND_DSN }}
63+
NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY=${{ vars.NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY }}
64+
NEXT_PUBLIC_LANGFUSE_BASE_URL=${{ vars.NEXT_PUBLIC_LANGFUSE_BASE_URL }}
6365
SENTRY_SMUAT=${{ secrets.SENTRY_SMUAT }}
6466
SENTRY_ORG=${{ vars.SENTRY_ORG }}
6567
SENTRY_WEBAPP_PROJECT=${{ vars.SENTRY_WEBAPP_PROJECT }}

.github/workflows/deploy-demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy Demo
22

33
on:
44
push:
5-
tags: ["v*.*.*"]
5+
branches: ["main"]
66
workflow_dispatch:
77

88
jobs:
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Update Roadmap Released
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
workflow_dispatch:
7+
schedule:
8+
- cron: "0 */6 * * *"
9+
10+
permissions:
11+
pull-requests: read
12+
contents: read
13+
issues: write
14+
15+
jobs:
16+
update:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Update "Released" section with last 10 merged PRs
20+
uses: actions/github-script@v7
21+
env:
22+
ROADMAP_ISSUE_NUMBER: "459"
23+
with:
24+
script: |
25+
const issue_number = parseInt(process.env.ROADMAP_ISSUE_NUMBER, 10);
26+
const {owner, repo} = context.repo;
27+
28+
// Fetch more than 10, then sort by closed_at to be precise
29+
const batchSize = 50;
30+
const { data: prBatch } = await github.rest.pulls.list({
31+
owner,
32+
repo,
33+
state: "closed",
34+
per_page: batchSize,
35+
sort: "updated",
36+
direction: "desc"
37+
});
38+
39+
const last10 = prBatch
40+
.filter(pr => pr.merged_at) // only merged PRs
41+
.sort((a, b) => new Date(b.merged_at) - new Date(a.merged_at))
42+
.slice(0, 10);
43+
44+
const list = last10.map(pr => `- #${pr.number}`).join("\n");
45+
46+
const start = "<!-- RELEASED:START -->";
47+
const end = "<!-- RELEASED:END -->";
48+
49+
const mergedUrl = `https://github.com/${owner}/${repo}/pulls?q=is%3Apr+is%3Amerged`;
50+
const replacementBlock = [
51+
start,
52+
"",
53+
`10 most recent [merged PRs](${mergedUrl}):`,
54+
"",
55+
list,
56+
"",
57+
end
58+
].join("\n");
59+
60+
const { data: issue } = await github.rest.issues.get({ owner, repo, issue_number });
61+
let body = issue.body || "";
62+
63+
if (body.includes(start) && body.includes(end)) {
64+
const pattern = new RegExp(`${start}[\\s\\S]*?${end}`);
65+
body = body.replace(pattern, replacementBlock);
66+
} else {
67+
core.setFailed('Missing RELEASED markers in roadmap issue body. Please add <!-- RELEASED:START --> and <!-- RELEASED:END --> to the issue.');
68+
return;
69+
}
70+
71+
await github.rest.issues.update({
72+
owner,
73+
repo,
74+
issue_number,
75+
body
76+
});

CHANGELOG.md

Lines changed: 113 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,114 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
## [4.6.7] - 2025-09-08
11+
12+
### Added
13+
- Added `exclude.userOwnedProjects` setting to GitLab configs. [#498](https://github.com/sourcebot-dev/sourcebot/pull/498)
14+
15+
### Fixed
16+
- Fixed "couldn't find remote ref HEAD" errors when re-indexing certain repositories. [#497](https://github.com/sourcebot-dev/sourcebot/pull/497)
17+
18+
### Changed
19+
- Disable page scroll when using arrow keys on search suggestions box. [#493](https://github.com/sourcebot-dev/sourcebot/pull/493)
20+
21+
## [4.6.6] - 2025-09-04
22+
23+
### Added
24+
- Added support for specifying query params for openai compatible language models. [#490](https://github.com/sourcebot-dev/sourcebot/pull/490)
25+
26+
### Fixed
27+
- Fix issue where zoekt was failing to index repositories due to `HEAD` pointing to a branch that does not exist. [#488](https://github.com/sourcebot-dev/sourcebot/pull/488)
28+
29+
## [4.6.5] - 2025-09-02
30+
31+
### Fixed
32+
- Remove setting `remote.origin.url` for remote git repositories. [#483](https://github.com/sourcebot-dev/sourcebot/pull/483)
33+
- Fix error when navigating to paths with percentage symbols. [#485](https://github.com/sourcebot-dev/sourcebot/pull/485)
34+
35+
### Changed
36+
- Updated NextJS to version 15. [#477](https://github.com/sourcebot-dev/sourcebot/pull/477)
37+
- Add `sessionToken` as optional Bedrock configuration parameter. [#478](https://github.com/sourcebot-dev/sourcebot/pull/478)
38+
39+
## [4.6.4] - 2025-08-11
40+
41+
### Added
42+
- Added multi-branch indexing support for Gerrit. [#433](https://github.com/sourcebot-dev/sourcebot/pull/433)
43+
- [ask sb] Added `reasoningEffort` option to OpenAI provider. [#446](https://github.com/sourcebot-dev/sourcebot/pull/446)
44+
- [ask db] Added `headers` option to all providers. [#449](https://github.com/sourcebot-dev/sourcebot/pull/449)
45+
46+
### Fixed
47+
- Removed prefix from structured log output. [#443](https://github.com/sourcebot-dev/sourcebot/pull/443)
48+
- [ask sb] Fixed long generation times for first message in a chat thread. [#447](https://github.com/sourcebot-dev/sourcebot/pull/447)
49+
50+
### Changed
51+
- Bumped AI SDK and associated packages version. [#444](https://github.com/sourcebot-dev/sourcebot/pull/444)
52+
53+
## [4.6.3] - 2025-08-04
54+
55+
### Fixed
56+
- Fixed issue where `users` specified in a GitHub config were not getting picked up when a `token` is also specified. [#428](https://github.com/sourcebot-dev/sourcebot/pull/428)
57+
58+
### Added
59+
- [ask sb] Added OpenAI Compatible Language Provider. [#424](https://github.com/sourcebot-dev/sourcebot/pull/424)
60+
61+
## [4.6.2] - 2025-07-31
62+
63+
### Changed
64+
- Bumped AI SDK and associated packages version. [#417](https://github.com/sourcebot-dev/sourcebot/pull/417)
65+
66+
### Fixed
67+
- [ask sb] Fixed "413 content too large" error when starting a new chat with many repos selected. [#416](https://github.com/sourcebot-dev/sourcebot/pull/416)
68+
69+
### Added
70+
- [ask sb] PostHog telemetry for chat thread creation. [#418](https://github.com/sourcebot-dev/sourcebot/pull/418)
71+
72+
## [4.6.1] - 2025-07-29
73+
74+
### Added
75+
- Add search context to ask sourcebot context selector. [#397](https://github.com/sourcebot-dev/sourcebot/pull/397)
76+
- Add ability to include/exclude connection in search context. [#399](https://github.com/sourcebot-dev/sourcebot/pull/399)
77+
- Search context refactor to search scope and demo card UI changes. [#405](https://github.com/sourcebot-dev/sourcebot/pull/405)
78+
- Add GitHub star toast. [#409](https://github.com/sourcebot-dev/sourcebot/pull/409)
79+
- Added a onboarding modal when first visiting the homepage when `ask` mode is selected. [#408](https://github.com/sourcebot-dev/sourcebot/pull/408)
80+
- [ask sb] Added `searchReposTool` and `listAllReposTool`. [#400](https://github.com/sourcebot-dev/sourcebot/pull/400)
81+
82+
### Fixed
83+
- Fixed multiple writes race condition on config file watcher. [#398](https://github.com/sourcebot-dev/sourcebot/pull/398)
84+
85+
### Changed
86+
- Bumped AI SDK and associated packages version. [#404](https://github.com/sourcebot-dev/sourcebot/pull/404)
87+
- Bumped form-data package version. [#407](https://github.com/sourcebot-dev/sourcebot/pull/407)
88+
- Bumped next version. [#406](https://github.com/sourcebot-dev/sourcebot/pull/406)
89+
- [ask sb] Improved search code tool with filter options. [#400](https://github.com/sourcebot-dev/sourcebot/pull/400)
90+
- [ask sb] Removed search scope constraint. [#400](https://github.com/sourcebot-dev/sourcebot/pull/400)
91+
- Update README with new features and videos. [#410](https://github.com/sourcebot-dev/sourcebot/pull/410)
92+
- [ask sb] Add back search scope requirement and other UI changes. [#411](https://github.com/sourcebot-dev/sourcebot/pull/411)
93+
94+
## [4.6.0] - 2025-07-25
95+
96+
### Added
97+
- Introducing Ask Sourcebot - ask natural langauge about your codebase. Get back comprehensive Markdown responses with inline citations back to the code. Bring your own LLM api key. [#392](https://github.com/sourcebot-dev/sourcebot/pull/392)
98+
99+
### Fixed
100+
- Fixed onboarding infinite loop when GCP IAP Auth is enabled. [#381](https://github.com/sourcebot-dev/sourcebot/pull/381)
101+
102+
## [4.5.3] - 2025-07-20
103+
104+
### Changed
105+
- Relicense core to FSL-1.1-ALv2. [#388](https://github.com/sourcebot-dev/sourcebot/pull/388)
106+
107+
### Added
108+
- Added `GITLAB_CLIENT_QUERY_TIMEOUT_SECONDS` env var to configure the GitLab client's query timeout. [#390](https://github.com/sourcebot-dev/sourcebot/pull/390)
109+
110+
## [4.5.2] - 2025-07-19
111+
112+
### Changed
113+
- Fixed typos in UI, docs, code [#369](https://github.com/sourcebot-dev/sourcebot/pull/369)
114+
- Add anonymous access option to core and deprecate the `enablePublicAccess` config setting. [#385](https://github.com/sourcebot-dev/sourcebot/pull/385)
115+
8116
## [4.5.1] - 2025-07-14
9117

10118
### Changed
@@ -207,7 +315,7 @@ Sourcebot v3 is here and brings a number of structural changes to the tool's fou
207315

208316
### Removed
209317
- [**Breaking Change**] Removed `db.json` in favour of a Postgres database for transactional workloads. See the [architecture overview](https://docs.sourcebot.dev/self-hosting/overview#architecture).
210-
- [**Breaking Change**] Removed local folder & arbitrary .git repo support. If your deployment depended on these features, please [open a discussion](https://github.com/sourcebot-dev/sourcebot/discussions/categories/support) and let us know.
318+
- [**Breaking Change**] Removed local folder & arbitrary .git repo support. If your deployment depended on these features, please [open a issue](https://github.com/sourcebot-dev/sourcebot/issues/new?template=get_help.md) and let us know.
211319
- [**Breaking Chnage**] Removed ability to specify a `token` as a string literal from the schema.
212320
- [**Breaking Change**] Removed support for `DOMAIN_SUB_PATH` configuration.
213321

@@ -234,7 +342,7 @@ Sourcebot v3 is here and brings a number of structural changes to the tool's fou
234342

235343
### Added
236344

237-
- Added `maxTrigramCount` to the config to control the maximum allowable of trigrams per document.
345+
- Added `maxTrigramCount` to the config to control the maximum allowable of trigrams per document.
238346

239347
### Fixed
240348

@@ -292,7 +400,7 @@ Sourcebot v3 is here and brings a number of structural changes to the tool's fou
292400
- Added config option `settings.maxFileSize` to control the maximum file size zoekt will index. ([#118](https://github.com/sourcebot-dev/sourcebot/pull/118))
293401

294402
### Fixed
295-
403+
296404
- Fixed syntax highlighting for zoekt query language. ([#115](https://github.com/sourcebot-dev/sourcebot/pull/115))
297405
- Fixed issue with Gerrit repo fetching not paginating. ([#114](https://github.com/sourcebot-dev/sourcebot/pull/114))
298406
- Fixed visual issues with filter panel. ([#105](https://github.com/sourcebot-dev/sourcebot/pull/105))
@@ -344,13 +452,13 @@ Sourcebot v3 is here and brings a number of structural changes to the tool's fou
344452
### Added
345453

346454
- Added `DOMAIN_SUB_PATH` environment variable to allow overriding the default domain subpath. ([#74](https://github.com/sourcebot-dev/sourcebot/pull/74))
347-
- Added option `all` to the GitLab index schema, allowing for indexing all projects in a self-hosted GitLab instance. ([#84](https://github.com/sourcebot-dev/sourcebot/pull/84))
455+
- Added option `all` to the GitLab index schema, allowing for indexing all projects in a self-hosted GitLab instance. ([#84](https://github.com/sourcebot-dev/sourcebot/pull/84))
348456

349457
## [2.4.3] - 2024-11-18
350458

351459
### Changed
352460

353-
- Bumped NodeJS version to v20. ([#78](https://github.com/sourcebot-dev/sourcebot/pull/78))
461+
- Bumped NodeJS version to v20. ([#78](https://github.com/sourcebot-dev/sourcebot/pull/78))
354462

355463
## [2.4.2] - 2024-11-14
356464

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
6. Create a copy of `.env.development` and name it `.env.development.local`. Update the required environment variables.
4040

41-
7. If you're using a declerative configuration file, create a configuration file and update the `CONFIG_PATH` environment variable in your `.env.development.local` file.
41+
7. If you're using a declarative configuration file, create a configuration file and update the `CONFIG_PATH` environment variable in your `.env.development.local` file.
4242
4343
8. Start Sourcebot with the command:
4444
```sh

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ ARG NEXT_PUBLIC_SENTRY_ENVIRONMENT
1717
ARG NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT
1818
ARG NEXT_PUBLIC_SENTRY_WEBAPP_DSN
1919
ARG NEXT_PUBLIC_SENTRY_BACKEND_DSN
20+
ARG NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY
21+
ARG NEXT_PUBLIC_LANGFUSE_BASE_URL
2022

2123
FROM node:20-alpine3.19 AS node-alpine
2224
FROM golang:1.23.4-alpine3.19 AS go-alpine
@@ -67,6 +69,10 @@ ARG NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT
6769
ENV NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT=$NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT
6870
ARG NEXT_PUBLIC_SENTRY_WEBAPP_DSN
6971
ENV NEXT_PUBLIC_SENTRY_WEBAPP_DSN=$NEXT_PUBLIC_SENTRY_WEBAPP_DSN
72+
ARG NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY
73+
ENV NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY=$NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY
74+
ARG NEXT_PUBLIC_LANGFUSE_BASE_URL
75+
ENV NEXT_PUBLIC_LANGFUSE_BASE_URL=$NEXT_PUBLIC_LANGFUSE_BASE_URL
7076

7177
# To upload source maps to Sentry, we need to set the following build-time args.
7278
# It's important that we don't set these for oss builds, otherwise the Sentry
@@ -164,6 +170,10 @@ ARG NEXT_PUBLIC_SENTRY_WEBAPP_DSN
164170
ENV NEXT_PUBLIC_SENTRY_WEBAPP_DSN=$NEXT_PUBLIC_SENTRY_WEBAPP_DSN
165171
ARG NEXT_PUBLIC_SENTRY_BACKEND_DSN
166172
ENV NEXT_PUBLIC_SENTRY_BACKEND_DSN=$NEXT_PUBLIC_SENTRY_BACKEND_DSN
173+
ARG NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY
174+
ENV NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY=$NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY
175+
ARG NEXT_PUBLIC_LANGFUSE_BASE_URL
176+
ENV NEXT_PUBLIC_LANGFUSE_BASE_URL=$NEXT_PUBLIC_LANGFUSE_BASE_URL
167177
# -----------
168178

169179
RUN echo "Sourcebot Version: $NEXT_PUBLIC_SOURCEBOT_VERSION"

LICENSE

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)