Skip to content

Commit 48af3fd

Browse files
authored
Merge branch 'sourcebot-dev:main' into main
2 parents 7be46e0 + c10010e commit 48af3fd

343 files changed

Lines changed: 37018 additions & 4400 deletions

File tree

Some content is hidden

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

.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: 139 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,144 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
- Added support for passing db connection url as seperate `DATABASE_HOST`, `DATABASE_USERNAME`, `DATABASE_PASSWORD`, `DATABASE_NAME`, and `DATABASE_ARGS` env vars. [#545](https://github.com/sourcebot-dev/sourcebot/pull/545)
12+
13+
## [4.7.3] - 2025-09-29
14+
15+
### Fixed
16+
- Manually pass auth token for ado server deployments. [#543](https://github.com/sourcebot-dev/sourcebot/pull/543)
17+
18+
## [4.7.2] - 2025-09-22
19+
20+
### Fixed
21+
- Fix support email. [#529](https://github.com/sourcebot-dev/sourcebot/pull/529)
22+
23+
### Added
24+
- [Experimental][Sourcebot EE] Added permission syncing repository Access Control Lists (ACLs) between Sourcebot and GitHub. [#508](https://github.com/sourcebot-dev/sourcebot/pull/508)
25+
26+
### Changed
27+
- Improved repository query performance by adding db indices. [#526](https://github.com/sourcebot-dev/sourcebot/pull/526)
28+
- Improved repository query performance by removing JOIN on `Connection` table. [#527](https://github.com/sourcebot-dev/sourcebot/pull/527)
29+
- Changed repo carousel and repo list links to redirect to the file browser. [#528](https://github.com/sourcebot-dev/sourcebot/pull/528)
30+
- Changed file headers, files/directories in file tree, and reference list buttons into links. [#532](https://github.com/sourcebot-dev/sourcebot/pull/532)
31+
32+
## [4.7.1] - 2025-09-19
33+
34+
### Fixed
35+
- Fixed sourcebot not pulling github forked repos [#499](https://github.com/sourcebot-dev/sourcebot/pull/499)
36+
- Fixed azure devop cloud pat issue [#524](https://github.com/sourcebot-dev/sourcebot/pull/524)
37+
38+
## [4.7.0] - 2025-09-17
39+
40+
### Added
41+
- Added fallback to default the Node.JS AWS SDK's `fromNodeProviderChain` when no credentials are provided for a bedrock config. [#513](https://github.com/sourcebot-dev/sourcebot/pull/513)
42+
- Added support for Azure Devops support. [#514](https://github.com/sourcebot-dev/sourcebot/pull/514)
43+
44+
### Fixed
45+
- Fixed "At least one project, user, or group must be specified" for GitLab configs with `all` in web configurator. [#512](https://github.com/sourcebot-dev/sourcebot/pull/512)
46+
- Fixed zoekt indexing failing with pipe in branch/tag names [#506](https://github.com/sourcebot-dev/sourcebot/pull/506)
47+
- Removed deprecated connection creation/edit UI [#515](https://github.com/sourcebot-dev/sourcebot/pull/515)
48+
49+
## [4.6.8] - 2025-09-15
50+
51+
### Fixed
52+
- Fixed Bitbucket Cloud pagination not working beyond first page. [#295](https://github.com/sourcebot-dev/sourcebot/issues/295)
53+
- Fixed search bar line wrapping. [#501](https://github.com/sourcebot-dev/sourcebot/pull/501)
54+
- Fixed carousel perf issues. [#507](https://github.com/sourcebot-dev/sourcebot/pull/507)
55+
56+
## [4.6.7] - 2025-09-08
57+
58+
### Added
59+
- Added `exclude.userOwnedProjects` setting to GitLab configs. [#498](https://github.com/sourcebot-dev/sourcebot/pull/498)
60+
61+
### Fixed
62+
- Fixed "couldn't find remote ref HEAD" errors when re-indexing certain repositories. [#497](https://github.com/sourcebot-dev/sourcebot/pull/497)
63+
64+
### Changed
65+
- Disable page scroll when using arrow keys on search suggestions box. [#493](https://github.com/sourcebot-dev/sourcebot/pull/493)
66+
67+
## [4.6.6] - 2025-09-04
68+
69+
### Added
70+
- Added support for specifying query params for openai compatible language models. [#490](https://github.com/sourcebot-dev/sourcebot/pull/490)
71+
72+
### Fixed
73+
- 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)
74+
75+
## [4.6.5] - 2025-09-02
76+
77+
### Fixed
78+
- Remove setting `remote.origin.url` for remote git repositories. [#483](https://github.com/sourcebot-dev/sourcebot/pull/483)
79+
- Fix error when navigating to paths with percentage symbols. [#485](https://github.com/sourcebot-dev/sourcebot/pull/485)
80+
81+
### Changed
82+
- Updated NextJS to version 15. [#477](https://github.com/sourcebot-dev/sourcebot/pull/477)
83+
- Add `sessionToken` as optional Bedrock configuration parameter. [#478](https://github.com/sourcebot-dev/sourcebot/pull/478)
84+
85+
## [4.6.4] - 2025-08-11
86+
87+
### Added
88+
- Added multi-branch indexing support for Gerrit. [#433](https://github.com/sourcebot-dev/sourcebot/pull/433)
89+
- [ask sb] Added `reasoningEffort` option to OpenAI provider. [#446](https://github.com/sourcebot-dev/sourcebot/pull/446)
90+
- [ask db] Added `headers` option to all providers. [#449](https://github.com/sourcebot-dev/sourcebot/pull/449)
91+
92+
### Fixed
93+
- Removed prefix from structured log output. [#443](https://github.com/sourcebot-dev/sourcebot/pull/443)
94+
- [ask sb] Fixed long generation times for first message in a chat thread. [#447](https://github.com/sourcebot-dev/sourcebot/pull/447)
95+
96+
### Changed
97+
- Bumped AI SDK and associated packages version. [#444](https://github.com/sourcebot-dev/sourcebot/pull/444)
98+
99+
## [4.6.3] - 2025-08-04
100+
101+
### Fixed
102+
- 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)
103+
104+
### Added
105+
- [ask sb] Added OpenAI Compatible Language Provider. [#424](https://github.com/sourcebot-dev/sourcebot/pull/424)
106+
107+
## [4.6.2] - 2025-07-31
108+
109+
### Changed
110+
- Bumped AI SDK and associated packages version. [#417](https://github.com/sourcebot-dev/sourcebot/pull/417)
111+
112+
### Fixed
113+
- [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)
114+
115+
### Added
116+
- [ask sb] PostHog telemetry for chat thread creation. [#418](https://github.com/sourcebot-dev/sourcebot/pull/418)
117+
118+
## [4.6.1] - 2025-07-29
119+
120+
### Added
121+
- Add search context to ask sourcebot context selector. [#397](https://github.com/sourcebot-dev/sourcebot/pull/397)
122+
- Add ability to include/exclude connection in search context. [#399](https://github.com/sourcebot-dev/sourcebot/pull/399)
123+
- Search context refactor to search scope and demo card UI changes. [#405](https://github.com/sourcebot-dev/sourcebot/pull/405)
124+
- Add GitHub star toast. [#409](https://github.com/sourcebot-dev/sourcebot/pull/409)
125+
- Added a onboarding modal when first visiting the homepage when `ask` mode is selected. [#408](https://github.com/sourcebot-dev/sourcebot/pull/408)
126+
- [ask sb] Added `searchReposTool` and `listAllReposTool`. [#400](https://github.com/sourcebot-dev/sourcebot/pull/400)
127+
128+
### Fixed
129+
- Fixed multiple writes race condition on config file watcher. [#398](https://github.com/sourcebot-dev/sourcebot/pull/398)
130+
131+
### Changed
132+
- Bumped AI SDK and associated packages version. [#404](https://github.com/sourcebot-dev/sourcebot/pull/404)
133+
- Bumped form-data package version. [#407](https://github.com/sourcebot-dev/sourcebot/pull/407)
134+
- Bumped next version. [#406](https://github.com/sourcebot-dev/sourcebot/pull/406)
135+
- [ask sb] Improved search code tool with filter options. [#400](https://github.com/sourcebot-dev/sourcebot/pull/400)
136+
- [ask sb] Removed search scope constraint. [#400](https://github.com/sourcebot-dev/sourcebot/pull/400)
137+
- Update README with new features and videos. [#410](https://github.com/sourcebot-dev/sourcebot/pull/410)
138+
- [ask sb] Add back search scope requirement and other UI changes. [#411](https://github.com/sourcebot-dev/sourcebot/pull/411)
139+
140+
## [4.6.0] - 2025-07-25
141+
142+
### Added
143+
- 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)
144+
145+
### Fixed
146+
- Fixed onboarding infinite loop when GCP IAP Auth is enabled. [#381](https://github.com/sourcebot-dev/sourcebot/pull/381)
147+
10148
## [4.5.3] - 2025-07-20
11149

12150
### Changed
@@ -223,7 +361,7 @@ Sourcebot v3 is here and brings a number of structural changes to the tool's fou
223361

224362
### Removed
225363
- [**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).
226-
- [**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.
364+
- [**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.
227365
- [**Breaking Chnage**] Removed ability to specify a `token` as a string literal from the schema.
228366
- [**Breaking Change**] Removed support for `DOMAIN_SUB_PATH` configuration.
229367

Dockerfile

Lines changed: 10 additions & 1 deletion
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"
@@ -175,7 +185,6 @@ ENV DATA_DIR=/data
175185
ENV DATA_CACHE_DIR=$DATA_DIR/.sourcebot
176186
ENV DATABASE_DATA_DIR=$DATA_CACHE_DIR/db
177187
ENV REDIS_DATA_DIR=$DATA_CACHE_DIR/redis
178-
ENV DATABASE_URL="postgresql://postgres@localhost:5432/sourcebot"
179188
ENV REDIS_URL="redis://localhost:6379"
180189
ENV SRC_TENANT_ENFORCEMENT_MODE=strict
181190
ENV SOURCEBOT_PUBLIC_KEY_PATH=/app/public.pem

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Copyright (c) 2025 Taqla Inc.
22

33
Portions of this software are licensed as follows:
44

5-
- All content that resides under the "ee/", "packages/web/src/ee/", and "packages/shared/src/ee/" directories of this repository, if these directories exist, is licensed under the license defined in "ee/LICENSE".
5+
- All content that resides under the "ee/", "packages/web/src/ee/", "packages/backend/src/ee/", and "packages/shared/src/ee/" directories of this repository, if these directories exist, is licensed under the license defined in "ee/LICENSE".
66
- All third party components incorporated into the Sourcebot Software are licensed under the original license provided by the owner of the applicable component.
77
- Content outside of the above mentioned directories or restrictions above is available under the "Functional Source License" as defined below.
88

0 commit comments

Comments
 (0)