Skip to content

Commit d457efb

Browse files
committed
Merge branch 'main' into context-improvement
2 parents b65600b + 5528306 commit d457efb

Some content is hidden

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

58 files changed

+12958
-8438
lines changed

.cursorrules

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

.github/workflows/docker.yaml

Lines changed: 29 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,61 @@
1-
---
21
name: Docker Publish
32

43
on:
5-
workflow_dispatch:
64
push:
7-
branches:
8-
- main
9-
tags:
10-
- v*
11-
- '*'
5+
branches: [main, stable]
6+
tags: ['v*', '*.*.*']
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
1212

1313
permissions:
1414
packages: write
1515
contents: read
1616

1717
env:
1818
REGISTRY: ghcr.io
19-
DOCKER_IMAGE: ghcr.io/${{ github.repository }}
20-
BUILD_TARGET: bolt-ai-production # bolt-ai-development
19+
IMAGE_NAME: ${{ github.repository }}
2120

2221
jobs:
2322
docker-build-publish:
2423
runs-on: ubuntu-latest
24+
# timeout-minutes: 30
2525
steps:
26-
- name: Checkout
26+
- name: Checkout code
2727
uses: actions/checkout@v4
28-
29-
- id: string
30-
uses: ASzc/change-string-case-action@v6
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Log in to GitHub Container Registry
33+
uses: docker/login-action@v3
3134
with:
32-
string: ${{ env.DOCKER_IMAGE }}
35+
registry: ${{ env.REGISTRY }}
36+
username: ${{ github.actor }}
37+
password: ${{ secrets.GITHUB_TOKEN }}
3338

34-
- name: Docker meta
39+
- name: Extract metadata for Docker image
3540
id: meta
36-
uses: crazy-max/ghaction-docker-meta@v5
41+
uses: docker/metadata-action@v4
3742
with:
38-
images: ${{ steps.string.outputs.lowercase }}
39-
flavor: |
40-
latest=true
41-
prefix=
42-
suffix=
43+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4344
tags: |
44-
type=semver,pattern={{version}}
45-
type=pep440,pattern={{version}}
45+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
46+
type=raw,value=stable,enable=${{ github.ref == 'refs/heads/stable' }}
4647
type=ref,event=tag
47-
type=raw,value={{sha}}
48-
49-
- name: Set up QEMU
50-
uses: docker/setup-qemu-action@v3
48+
type=sha,format=short
49+
type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/stable' }}
5150
52-
- name: Set up Docker Buildx
53-
uses: docker/setup-buildx-action@v3
54-
55-
- name: Login to Container Registry
56-
uses: docker/login-action@v3
57-
with:
58-
registry: ${{ env.REGISTRY }}
59-
username: ${{ github.actor }} # ${{ secrets.DOCKER_USERNAME }}
60-
password: ${{ secrets.GITHUB_TOKEN }} # ${{ secrets.DOCKER_PASSWORD }}
61-
62-
- name: Build and push
51+
- name: Build and push Docker image
6352
uses: docker/build-push-action@v6
6453
with:
6554
context: .
66-
file: ./Dockerfile
67-
target: ${{ env.BUILD_TARGET }}
6855
platforms: linux/amd64,linux/arm64
6956
push: true
7057
tags: ${{ steps.meta.outputs.tags }}
7158
labels: ${{ steps.meta.outputs.labels }}
72-
cache-from: type=registry,ref=${{ steps.string.outputs.lowercase }}:latest
73-
cache-to: type=inline
74-
59+
7560
- name: Check manifest
76-
run: |
77-
docker buildx imagetools inspect ${{ steps.string.outputs.lowercase }}:${{ steps.meta.outputs.version }}
78-
79-
- name: Dump context
80-
if: always()
81-
uses: crazy-max/ghaction-dump-context@v2
61+
run: docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}

.github/workflows/update-stable.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ jobs:
119119
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120120
run: |
121121
VERSION="v${{ steps.bump_version.outputs.new_version }}"
122+
# Save changelog to a file
123+
echo "${{ steps.changelog.outputs.content }}" > release_notes.md
122124
gh release create "$VERSION" \
123125
--title "Release $VERSION" \
124-
--notes "${{ steps.changelog.outputs.content }}" \
126+
--notes-file release_notes.md \
125127
--target stable

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,4 @@ app/commit.json
4343
changelogUI.md
4444
docs/instructions/Roadmap.md
4545
.cursorrules
46-
.cursorrules
4746
*.md

.tool-versions

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

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ WORKDIR /app
66
# Install dependencies (this step is cached as long as the dependencies don't change)
77
COPY package.json pnpm-lock.yaml ./
88

9-
RUN npm install -g corepack@latest
9+
#RUN npm install -g corepack@latest
1010

11-
RUN corepack enable pnpm && pnpm install
11+
#RUN corepack enable pnpm && pnpm install
12+
RUN npm install -g pnpm && pnpm install
1213

1314
# Copy the rest of your app's source code
1415
COPY . .

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
Welcome to bolt.diy, the official open source version of Bolt.new (previously known as oTToDev and bolt.new ANY LLM), which allows you to choose the LLM that you use for each prompt! Currently, you can use OpenAI, Anthropic, Ollama, OpenRouter, Gemini, LMStudio, Mistral, xAI, HuggingFace, DeepSeek, or Groq models - and it is easily extended to use any other model supported by the Vercel AI SDK! See the instructions below for running this locally and extending it to include more models.
66

7-
---
8-
7+
-----
98
Check the [bolt.diy Docs](https://stackblitz-labs.github.io/bolt.diy/) for more offical installation instructions and more informations.
109

11-
---
12-
10+
-----
1311
Also [this pinned post in our community](https://thinktank.ottomator.ai/t/videos-tutorial-helpful-content/3243) has a bunch of incredible resources for running and deploying bolt.diy yourself!
1412

1513
We have also launched an experimental agent called the "bolt.diy Expert" that can answer common questions about bolt.diy. Find it here on the [oTTomator Live Agent Studio](https://studio.ottomator.ai/).
@@ -81,6 +79,7 @@ project, please check the [project management guide](./PROJECT.md) to get starte
8179
- ✅ Add Starter Template Options (@thecodacus)
8280
- ✅ Perplexity Integration (@meetpateltech)
8381
- ✅ AWS Bedrock Integration (@kunjabijukchhe)
82+
- ✅ Add a "Diff View" to see the changes (@toddyclipsgg)
8483
-**HIGH PRIORITY** - Prevent bolt from rewriting files as often (file locking and diffs)
8584
-**HIGH PRIORITY** - Better prompting for smaller LLMs (code window sometimes doesn't start)
8685
-**HIGH PRIORITY** - Run agents in the backend as opposed to a single model call

app/components/@settings/core/ControlPanel.tsx

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,27 @@ export const ControlPanel = ({ open, onClose }: ControlPanelProps) => {
263263
},
264264
};
265265

266+
// Reset to default view when modal opens/closes
267+
useEffect(() => {
268+
if (!open) {
269+
// Reset when closing
270+
setActiveTab(null);
271+
setLoadingTab(null);
272+
setShowTabManagement(false);
273+
} else {
274+
// When opening, set to null to show the main view
275+
setActiveTab(null);
276+
}
277+
}, [open]);
278+
279+
// Handle closing
280+
const handleClose = () => {
281+
setActiveTab(null);
282+
setLoadingTab(null);
283+
setShowTabManagement(false);
284+
onClose();
285+
};
286+
266287
// Handlers
267288
const handleBack = () => {
268289
if (showTabManagement) {
@@ -405,8 +426,8 @@ export const ControlPanel = ({ open, onClose }: ControlPanelProps) => {
405426

406427
<RadixDialog.Content
407428
aria-describedby={undefined}
408-
onEscapeKeyDown={onClose}
409-
onPointerDownOutside={onClose}
429+
onEscapeKeyDown={handleClose}
430+
onPointerDownOutside={handleClose}
410431
className="relative z-[101]"
411432
>
412433
<motion.div
@@ -461,7 +482,7 @@ export const ControlPanel = ({ open, onClose }: ControlPanelProps) => {
461482

462483
{/* Close Button */}
463484
<button
464-
onClick={onClose}
485+
onClick={handleClose}
465486
className="flex items-center justify-center w-8 h-8 rounded-full bg-transparent hover:bg-purple-500/10 dark:hover:bg-purple-500/20 group transition-all duration-200"
466487
>
467488
<div className="i-ph:x w-4 h-4 text-gray-500 dark:text-gray-400 group-hover:text-purple-500 transition-colors" />

0 commit comments

Comments
 (0)