Skip to content

Commit e177514

Browse files
authored
Merge branch 'main' into chore/mcp-245
2 parents 0ac967a + dce19d8 commit e177514

File tree

17 files changed

+137
-52
lines changed

17 files changed

+137
-52
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
cooldown:
8+
default-days: 7
9+
include:
10+
- "*"
711
ignore:
812
# We are ignoring major updates on yargs-parser because yargs-parser@22
913
# does not play nicely when bundled using webpack. Our VSCode extension

.github/workflows/accuracy-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
3131
- uses: actions/checkout@v5
32-
- uses: actions/setup-node@v5
32+
- uses: actions/setup-node@v6
3333
with:
3434
node-version-file: package.json
3535
cache: "npm"

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1919
- uses: actions/checkout@v5
20-
- uses: actions/setup-node@v5
20+
- uses: actions/setup-node@v6
2121
with:
2222
node-version-file: package.json
2323
cache: "npm"
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
3333
- uses: actions/checkout@v5
34-
- uses: actions/setup-node@v5
34+
- uses: actions/setup-node@v6
3535
with:
3636
node-version-file: package.json
3737
cache: "npm"
@@ -45,7 +45,7 @@ jobs:
4545
steps:
4646
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
4747
- uses: actions/checkout@v5
48-
- uses: actions/setup-node@v5
48+
- uses: actions/setup-node@v6
4949
with:
5050
node-version-file: package.json
5151
cache: "npm"

.github/workflows/cleanup-atlas-env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1515
- uses: actions/checkout@v5
16-
- uses: actions/setup-node@v5
16+
- uses: actions/setup-node@v6
1717
with:
1818
node-version-file: package.json
1919
cache: "npm"

.github/workflows/code-health-fork.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ permissions: {}
1010
jobs:
1111
run-tests:
1212
name: Run MongoDB tests
13-
if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
13+
# Code health disabled on forks for now
14+
# if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
15+
if: github.event.pull_request.user.login == 'dependabot[bot]'
1416
strategy:
1517
matrix:
1618
os: [ubuntu-latest, macos-latest, windows-latest]
@@ -25,7 +27,7 @@ jobs:
2527
name: Setup Docker Environment
2628
with:
2729
set-host: true
28-
- uses: actions/setup-node@v5
30+
- uses: actions/setup-node@v6
2931
with:
3032
node-version-file: package.json
3133
cache: "npm"

.github/workflows/code-health.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
name: Setup Docker Environment
2727
with:
2828
set-host: true
29-
- uses: actions/setup-node@v5
29+
- uses: actions/setup-node@v6
3030
with:
3131
node-version-file: package.json
3232
cache: "npm"
@@ -48,7 +48,7 @@ jobs:
4848
steps:
4949
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
5050
- uses: actions/checkout@v5
51-
- uses: actions/setup-node@v5
51+
- uses: actions/setup-node@v6
5252
with:
5353
node-version-file: package.json
5454
cache: "npm"
@@ -74,7 +74,7 @@ jobs:
7474
needs: [run-tests, run-atlas-tests]
7575
steps:
7676
- uses: actions/checkout@v5
77-
- uses: actions/setup-node@v5
77+
- uses: actions/setup-node@v6
7878
with:
7979
node-version-file: package.json
8080
cache: "npm"

.github/workflows/prepare-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
2424
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
2525
- uses: actions/checkout@v5
26-
- uses: actions/setup-node@v5
26+
- uses: actions/setup-node@v6
2727
with:
2828
node-version-file: package.json
2929
registry-url: "https://registry.npmjs.org"

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v5
1919
with:
2020
fetch-depth: 0
21-
- uses: actions/setup-node@v5
21+
- uses: actions/setup-node@v6
2222
with:
2323
node-version-file: package.json
2424
registry-url: "https://registry.npmjs.org"
@@ -81,7 +81,7 @@ jobs:
8181
steps:
8282
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
8383
- uses: actions/checkout@v5
84-
- uses: actions/setup-node@v5
84+
- uses: actions/setup-node@v6
8585
with:
8686
node-version-file: package.json
8787
registry-url: "https://registry.npmjs.org"

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { generateConnectionInfoFromCliArgs } from "@mongosh/arg-parser";
66
import { Keychain } from "./keychain.js";
77
import type { Secret } from "./keychain.js";
88
import levenshtein from "ts-levenshtein";
9+
import type { Similarity } from "./search/vectorSearchEmbeddingsManager.js";
910

1011
// From: https://github.com/mongodb-js/mongosh/blob/main/packages/cli-repl/src/arg-parser.ts
1112
const OPTIONS = {
@@ -186,7 +187,7 @@ export interface UserConfig extends CliOptions {
186187
voyageApiKey: string;
187188
disableEmbeddingsValidation: boolean;
188189
vectorSearchDimensions: number;
189-
vectorSearchSimilarityFunction: "cosine" | "euclidean" | "dotProduct";
190+
vectorSearchSimilarityFunction: Similarity;
190191
}
191192

192193
export const defaultUserConfig: UserConfig = {

0 commit comments

Comments
 (0)