Skip to content

Commit f0e6612

Browse files
authored
Merge branch 'main' into drew/onboarding_when_gcp_iap
2 parents 289c7fb + 74e37d1 commit f0e6612

212 files changed

Lines changed: 20785 additions & 1393 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/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:

CHANGELOG.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
1011
- Fixed onboarding infinite loop when GCP IAP Auth is enabled. [#381](https://github.com/sourcebot-dev/sourcebot/pull/381)
1112

13+
### Added
14+
- 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)
15+
16+
## [4.5.3] - 2025-07-20
17+
18+
### Changed
19+
- Relicense core to FSL-1.1-ALv2. [#388](https://github.com/sourcebot-dev/sourcebot/pull/388)
20+
21+
### Added
22+
- 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)
23+
24+
## [4.5.2] - 2025-07-19
25+
26+
### Changed
27+
- Fixed typos in UI, docs, code [#369](https://github.com/sourcebot-dev/sourcebot/pull/369)
28+
- Add anonymous access option to core and deprecate the `enablePublicAccess` config setting. [#385](https://github.com/sourcebot-dev/sourcebot/pull/385)
29+
1230
## [4.5.1] - 2025-07-14
1331

1432
### Changed
@@ -238,7 +256,7 @@ Sourcebot v3 is here and brings a number of structural changes to the tool's fou
238256

239257
### Added
240258

241-
- Added `maxTrigramCount` to the config to control the maximum allowable of trigrams per document.
259+
- Added `maxTrigramCount` to the config to control the maximum allowable of trigrams per document.
242260

243261
### Fixed
244262

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

298316
### Fixed
299-
317+
300318
- Fixed syntax highlighting for zoekt query language. ([#115](https://github.com/sourcebot-dev/sourcebot/pull/115))
301319
- Fixed issue with Gerrit repo fetching not paginating. ([#114](https://github.com/sourcebot-dev/sourcebot/pull/114))
302320
- Fixed visual issues with filter panel. ([#105](https://github.com/sourcebot-dev/sourcebot/pull/105))
@@ -348,13 +366,13 @@ Sourcebot v3 is here and brings a number of structural changes to the tool's fou
348366
### Added
349367

350368
- Added `DOMAIN_SUB_PATH` environment variable to allow overriding the default domain subpath. ([#74](https://github.com/sourcebot-dev/sourcebot/pull/74))
351-
- 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))
369+
- 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))
352370

353371
## [2.4.3] - 2024-11-18
354372

355373
### Changed
356374

357-
- Bumped NodeJS version to v20. ([#78](https://github.com/sourcebot-dev/sourcebot/pull/78))
375+
- Bumped NodeJS version to v20. ([#78](https://github.com/sourcebot-dev/sourcebot/pull/78))
358376

359377
## [2.4.2] - 2024-11-14
360378

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.

LICENSE.md

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
Copyright (c) 2025 Taqla Inc.
2+
3+
Portions of this software are licensed as follows:
4+
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".
6+
- All third party components incorporated into the Sourcebot Software are licensed under the original license provided by the owner of the applicable component.
7+
- Content outside of the above mentioned directories or restrictions above is available under the "Functional Source License" as defined below.
8+
9+
---
10+
11+
# Functional Source License, Version 1.1, ALv2 Future License
12+
13+
## Abbreviation
14+
15+
FSL-1.1-ALv2
16+
17+
## Notice
18+
19+
Copyright 2025 Taqla Inc.
20+
21+
## Terms and Conditions
22+
23+
### Licensor ("We")
24+
25+
The party offering the Software under these Terms and Conditions.
26+
27+
### The Software
28+
29+
The "Software" is each version of the software that we make available under
30+
these Terms and Conditions, as indicated by our inclusion of these Terms and
31+
Conditions with the Software.
32+
33+
### License Grant
34+
35+
Subject to your compliance with this License Grant and the Patents,
36+
Redistribution and Trademark clauses below, we hereby grant you the right to
37+
use, copy, modify, create derivative works, publicly perform, publicly display
38+
and redistribute the Software for any Permitted Purpose identified below.
39+
40+
### Permitted Purpose
41+
42+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
43+
means making the Software available to others in a commercial product or
44+
service that:
45+
46+
1. substitutes for the Software;
47+
48+
2. substitutes for any other product or service we offer using the Software
49+
that exists as of the date we make the Software available; or
50+
51+
3. offers the same or substantially similar functionality as the Software.
52+
53+
Permitted Purposes specifically include using the Software:
54+
55+
1. for your internal use and access;
56+
57+
2. for non-commercial education;
58+
59+
3. for non-commercial research; and
60+
61+
4. in connection with professional services that you provide to a licensee
62+
using the Software in accordance with these Terms and Conditions.
63+
64+
### Patents
65+
66+
To the extent your use for a Permitted Purpose would necessarily infringe our
67+
patents, the license grant above includes a license under our patents. If you
68+
make a claim against any party that the Software infringes or contributes to
69+
the infringement of any patent, then your patent license to the Software ends
70+
immediately.
71+
72+
### Redistribution
73+
74+
The Terms and Conditions apply to all copies, modifications and derivatives of
75+
the Software.
76+
77+
If you redistribute any copies, modifications or derivatives of the Software,
78+
you must include a copy of or a link to these Terms and Conditions and not
79+
remove any copyright notices provided in or with the Software.
80+
81+
### Disclaimer
82+
83+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
84+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
85+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
86+
87+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
88+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
89+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
90+
91+
### Trademarks
92+
93+
Except for displaying the License Details and identifying us as the origin of
94+
the Software, you have no right under these Terms and Conditions to use our
95+
trademarks, trade names, service marks or product names.
96+
97+
## Grant of Future License
98+
99+
We hereby irrevocably grant you an additional license to use the Software under
100+
the Apache License, Version 2.0 that is effective on the second anniversary of
101+
the date we make the Software available. On or after that date, you may use the
102+
Software under the Apache License, Version 2.0, in which case the following
103+
will apply:
104+
105+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
106+
this file except in compliance with the License.
107+
108+
You may obtain a copy of the License at
109+
110+
http://www.apache.org/licenses/LICENSE-2.0
111+
112+
Unless required by applicable law or agreed to in writing, software distributed
113+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
114+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
115+
specific language governing permissions and limitations under the License.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ yarn:
1010
zoekt:
1111
mkdir -p bin
1212
go build -C vendor/zoekt -o $(PWD)/bin ./cmd/...
13-
export PATH=$(PWD)/bin:$(PATH)
13+
export PATH="$(PWD)/bin:$(PATH)"
1414
export CTAGS_COMMANDS=ctags
1515

1616
clean:

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,20 @@
4444

4545
# About
4646

47-
Sourcebot is the open source Sourcegraph alternative. Index all your repos and branches across multiple code hosts (GitHub, GitLab, Bitbucket, Gitea, or Gerrit) and search through them using a blazingly fast interface.
47+
Sourcebot is a self-hosted tool that helps you understand your codebase.
4848

49-
https://github.com/user-attachments/assets/ced355f3-967e-4f37-ae6e-74ab8c06b9ec
49+
- **Ask Sourcebot:** Ask questions about your codebase and have Sourcebot provide detailed answers grounded with inline citations.
50+
- **Code search:** Search and navigate across all your repos and branches, no matter where they’re hosted.
51+
52+
https://github.com/user-attachments/assets/286ad97a-a543-4eef-a2f1-4fa31bea1b32
5053

5154

5255
## Features
5356
- 💻 **One-command deployment**: Get started instantly using Docker on your own machine.
54-
- 🔍 **Multi-repo search**: Index and search through multiple public and private repositories and branches on GitHub, GitLab, Bitbucket, Gitea, or Gerrit.
55-
-**Lightning fast performance**: Built on top of the powerful [Zoekt](https://github.com/sourcegraph/zoekt) search engine.
56-
- 🎨 **Modern web app**: Enjoy a sleek interface with features like syntax highlighting, light/dark mode, and vim-style navigation
57+
- 🤖 **Bring your own model**: Connect Sourcebot to any of the reasoning models you're already using.
58+
- 🔍 **Multi-repo support**: Index and search through multiple public and private repositories and branches on GitHub, GitLab, Bitbucket, Gitea, or Gerrit.
59+
-**Lightning fast performance**: Built on top of the powerful [Zoekt](https://github.com/sourcegraph/zoekt) search engine.
60+
- 🎨 **Modern web app**: Enjoy a sleek interface with features like syntax highlighting, light/dark mode, and vim-style navigation.
5761
- 📂 **Full file visualization**: Instantly view the entire file when selecting any search result.
5862

5963
You can try out our public hosted demo [here](https://demo.sourcebot.dev)!

_typos.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[default.extend-words]
2+
# Don't correct the surname "Do Not Exists"
3+
dne = "dne"
4+
5+
[files]
6+
extend-exclude = ["vendor/**/*", "CHANGELOG.md", "packages/web/src/lib/languageMetadata.ts"]

0 commit comments

Comments
 (0)