Skip to content

Commit 2f2ad63

Browse files
authored
Dev/main to Main (#75)
* feat: add VS Code extensions in devcontainer for improved development experience * feat: enhance devcontainer by installing Claude Code and configuring sudo for vscode user * feat: update docker-compose and .gitignore for Claude Code configuration * fix: fix clean.sh to more closely resemble main LibreChat dev instructions See https://www.librechat.ai/docs/development/get_started * fix: update branch patterns in workflow files to include all subdirectories under dev * chore: taking files from 12f4dbb and bringing them to our branch w/o merging * fix: remove node_modules in sub-dirs * fix: enhance build-local.sh for improved build validation and cleanup * chore: add our fork's dependencies * chore: change workflow timeouts to 15 minutes Some were running over this, which they shouldn't * fix: update promote-admin script to include force option and enhance argument parsing * Dev/merge/rename workflows (#74) chore: Updates workflow names for consistency in Github UI. * chore: update workflow branch filters to avoid duplicate runs
1 parent 7f52020 commit 2f2ad63

15 files changed

+79
-153
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,7 @@
44
"workspaceFolder": "/workspaces",
55
"customizations": {
66
"vscode": {
7-
"extensions": [
8-
"saoudrizwan.claude-dev",
9-
"RooVeterinaryInc.roo-cline",
10-
"ms-edgedevtools.vscode-edge-devtools",
11-
"dbaeumer.vscode-eslint",
12-
"mhutchie.git-graph",
13-
"donjayamanne.githistory",
14-
"github.vscode-github-actions",
15-
"me-dutour-mathieu.vscode-github-actions",
16-
"GitHub.copilot",
17-
"GitHub.copilot-chat",
18-
"GitHub.vscode-pull-request-github",
19-
"ms-azuretools.vscode-docker"
20-
],
7+
"extensions": [],
218
"settings": {
229
"terminal.integrated.profiles.linux": {
2310
"bash": null

.github/workflows/jm-assign-copilot-reviewer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
console.error('Error assigning GitHub Copilot as a reviewer:', error);
3030
// Continue workflow even if reviewer assignment fails
3131
return;
32-
}
32+
}

.github/workflows/jm-backend-review.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
1-
name: Backend Unit Tests
1+
name: JM - Backend Unit Tests
2+
23
on:
34
pull_request:
4-
branches:
5-
- main
6-
- main-upstream
7-
- dev/**
8-
- release/**
9-
- 'tracking/**'
10-
- 'feature/**'
115

126
push:
137
branches:
148
- main
159
- main-upstream
16-
- dev/**
17-
- release/**
18-
- 'tracking/**'
19-
- 'feature/**'
10+
- 'dev/main'
2011

2112
workflow_dispatch:
22-
# Allow manual triggering
2313

2414
jobs:
2515
tests_Backend:
2616
name: Run Backend unit tests
27-
timeout-minutes: 60
17+
timeout-minutes: 15
2818
runs-on: ubuntu-latest
2919
env:
3020
MONGO_URI: ${{ secrets.MONGO_URI }}

.github/workflows/jm-build-only.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,12 @@ name: Docker Build Only
22

33
on:
44
pull_request:
5-
branches:
6-
- main
7-
- main-upstream
8-
- upstream-main
9-
- dev/**
10-
- release/*
11-
- feat/*
12-
- tmp/**
13-
- tracking/**
145

156
push:
16-
branches:
17-
- main
18-
- main-upstream
19-
- upstream-main
20-
- dev/**
21-
- release/*
22-
- feat/*
23-
- tmp/**
24-
- tracking/**
25-
7+
branches:
8+
- main
9+
- main-upstream
10+
- 'dev/main'
2611

2712
# Allow manual triggering with custom parameters
2813
workflow_dispatch:
@@ -52,6 +37,7 @@ on:
5237

5338
jobs:
5439
build-docker-image:
40+
timeout-minutes: 15
5541
runs-on: ubuntu-latest
5642
steps:
5743
- name: 'Checkout GitHub Action'

.github/workflows/jm-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Build and Push to GHCR
1+
name: JM - Docker Build and Push to GHCR
22

33
on:
44
# Allow manual triggering with custom parameters
@@ -27,6 +27,7 @@ on:
2727

2828
jobs:
2929
deploy-gh-runner-aci:
30+
timeout-minutes: 15
3031
runs-on: ubuntu-latest
3132
steps:
3233
- name: 'Checkout GitHub Action'

.github/workflows/jm-eslint-ci.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
1-
name: ESLint Code Quality Checks
1+
name: JM - ESLint Code Quality Checks
22

33
on:
44
pull_request:
5-
branches:
6-
- main
7-
- main-upstream
8-
- dev/**
9-
- release/**
10-
- 'tracking/**'
11-
- 'feature/**'
12-
13-
workflow_dispatch:
14-
# Allow manual triggering
155

166
push:
177
branches:
188
- main
199
- main-upstream
20-
- dev/**
21-
- release/**
22-
- 'tracking/**'
23-
- 'feature/**'
10+
- 'dev/main'
11+
12+
workflow_dispatch:
2413

2514
jobs:
2615
eslint_checks:
2716
name: Run ESLint Linting
17+
timeout-minutes: 15
2818
runs-on: ubuntu-latest
2919
permissions:
3020
contents: read

.github/workflows/jm-frontend-review.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
1-
name: Frontend Unit Tests
1+
name: JM - Frontend Unit Tests
22

33
on:
44
pull_request:
5-
branches:
6-
- main
7-
- main-upstream
8-
- dev/**
9-
- release/**
10-
- 'tracking/**'
11-
- 'feature/**'
12-
13-
workflow_dispatch:
14-
# Allow manual triggering
155

166
push:
177
branches:
188
- main
199
- main-upstream
20-
- dev/**
21-
- release/**
22-
- 'tracking/**'
23-
- 'feature/**'
10+
- 'dev/main'
11+
12+
workflow_dispatch:
2413

2514
jobs:
2615
tests_frontend_ubuntu:
2716
name: Run frontend unit tests on Ubuntu
28-
timeout-minutes: 60
17+
timeout-minutes: 15
2918
runs-on: ubuntu-latest
3019
steps:
3120
- uses: actions/checkout@v4
@@ -47,7 +36,7 @@ jobs:
4736

4837
tests_frontend_windows:
4938
name: Run frontend unit tests on Windows
50-
timeout-minutes: 60
39+
timeout-minutes: 15
5140
runs-on: windows-latest
5241
steps:
5342
- uses: actions/checkout@v4

.github/workflows/jm-sync-with-upstream.yml

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

.github/workflows/jm-upstream-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Upstream Sync
1+
name: JM - Upstream Sync
22

33
on:
44
# Run on a daily schedule

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,28 @@ This fork is a personal project to add a few features to LibreChat and integrate
2525
- ✅ MERGED UPSTREAM - Flux AI plugin added to the tools list.
2626

2727

28+
## Merge Instructions
29+
30+
To merge with upstream ensure that the `main-upstream` branch is up to date with the upstream `main` branch. Then run the following commands:
31+
32+
Then, create a new tracking branch from it, `tracking/YYYY/MM/DD-XX` and begin a merge from `dev/main` or `main` into the new tracking branch.
33+
34+
Most of the files should be taken from upstream. verbatim. The following files should be taken from out fork:
35+
36+
- `.github/workflows/jm*.yml` - These are the CI/CD workflows for this fork.
37+
- `.devcontainer/*` - This is the devcontainer for this fork.
38+
- `api/app/clients/tools/structured/E2BCode.js`
39+
- `api/app/clients/tools/structured/E2BCode.md`
40+
- `api/app/clients/tools/structured/WebNavigator.js`
41+
- `api/app/clients/tools/structured/TimeAPI.js`
42+
- `api/app/clients/tools/structured/QuickChart.js`
43+
44+
These files need to be merged:
45+
46+
- `api/app/clients/tools/manifest.json`
47+
- `api/app/clients/tools/index.js`
48+
- `api/app/clients/tools/util/handleTools.js`
49+
2850
### Why E2B?
2951
LibreChat recently introduced their own code interpreter service. It's affordable, integrates seamlessly with their platform, and provides a viable revenue stream. So why not use it?
3052

0 commit comments

Comments
 (0)