Skip to content

Commit 3c7b125

Browse files
committed
Merge branch 'main' into context-optimization
2 parents dfbbea1 + 527dc05 commit 3c7b125

Some content is hidden

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

46 files changed

+2570
-654
lines changed

.github/workflows/commit.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Update Commit Hash File
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
update-commit:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout the code
17+
uses: actions/checkout@v3
18+
19+
- name: Get the latest commit hash
20+
run: echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
21+
22+
- name: Update commit file
23+
run: |
24+
echo "{ \"commit\": \"$COMMIT_HASH\" }" > app/commit.json
25+
26+
- name: Commit and push the update
27+
run: |
28+
git config --global user.name "github-actions[bot]"
29+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
30+
git add app/commit.json
31+
git commit -m "chore: update commit hash to $COMMIT_HASH"
32+
git push

.husky/pre-commit

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@ echo "🔍 Running pre-commit hook to check the code looks good... 🔍"
55
export NVM_DIR="$HOME/.nvm"
66
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # Load nvm if you're using i
77

8+
echo "Running typecheck..."
9+
which pnpm
10+
811
if ! pnpm typecheck; then
9-
echo "❌ Type checking failed! Please review TypeScript types."
10-
echo "Once you're done, don't forget to add your changes to the commit! 🚀"
11-
exit 1
12+
echo "❌ Type checking failed! Please review TypeScript types."
13+
echo "Once you're done, don't forget to add your changes to the commit! 🚀"
14+
echo "Typecheck exit code: $?"
15+
exit 1
1216
fi
1317

18+
echo "Running lint..."
1419
if ! pnpm lint; then
1520
echo "❌ Linting failed! 'pnpm lint:fix' will help you fix the easy ones."
1621
echo "Once you're done, don't forget to add your beautification to the commit! 🤩"
22+
echo "lint exit code: $?"
1723
exit 1
1824
fi
1925

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[![Bolt.new: AI-Powered Full-Stack Web Development in the Browser](./public/social_preview_index.jpg)](https://bolt.new)
22

3-
# Bolt.new Fork by Cole Medin - oTToDev
3+
# Bolt.diy (Previously oTToDev)
44

5-
This fork of Bolt.new (oTToDev) 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.
5+
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-
Check the [oTToDev Docs](https://coleam00.github.io/bolt.new-any-llm/) for more information.
7+
Check the [Bolt.diy Docs](https://stackblitz-labs.github.io/bolt.diy/) for more information. This documentation is still being updated after the transfer.
88

9-
## Join the community for oTToDev!
9+
Bolt.diy was originally started by [Cole Medin](https://www.youtube.com/@ColeMedin) but has quickly grown into a massive community effort to build the BEST open source AI coding assistant!
10+
11+
## Join the community for Bolt.diy!
1012

1113
https://thinktank.ottomator.ai
1214

@@ -41,6 +43,7 @@ https://thinktank.ottomator.ai
4143
- ✅ Mobile friendly (@qwikode)
4244
- ✅ Better prompt enhancing (@SujalXplores)
4345
- ✅ Attach images to prompts (@atrokhym)
46+
- ✅ Detect package.json and commands to auto install and run preview for folder and git import (@wonderwhy-er)
4447
-**HIGH PRIORITY** - Prevent Bolt from rewriting files as often (file locking and diffs)
4548
-**HIGH PRIORITY** - Better prompting for smaller LLMs (code window sometimes doesn't start)
4649
-**HIGH PRIORITY** - Run agents in the backend as opposed to a single model call
@@ -55,7 +58,7 @@ https://thinktank.ottomator.ai
5558

5659
## Bolt.new: AI-Powered Full-Stack Web Development in the Browser
5760

58-
Bolt.new is an AI-powered web development agent that allows you to prompt, run, edit, and deploy full-stack applications directly from your browser—no local setup required. If you're here to build your own AI-powered web dev agent using the Bolt open source codebase, [click here to get started!](./CONTRIBUTING.md)
61+
Bolt.new (and by extension Bolt.diy) is an AI-powered web development agent that allows you to prompt, run, edit, and deploy full-stack applications directly from your browser—no local setup required. If you're here to build your own AI-powered web dev agent using the Bolt open source codebase, [click here to get started!](./CONTRIBUTING.md)
5962

6063
## What Makes Bolt.new Different
6164

@@ -95,7 +98,7 @@ If you see usr/local/bin in the output then you're good to go.
9598
3. Clone the repository (if you haven't already) by opening a Terminal window (or CMD with admin permissions) and then typing in this:
9699

97100
```
98-
git clone https://github.com/coleam00/bolt.new-any-llm.git
101+
git clone https://github.com/stackblitz-labs/bolt.diy.git
99102
```
100103

101104
3. Rename .env.example to .env.local and add your LLM API keys. You will find this file on a Mac at "[your name]/bold.new-any-llm/.env.example". For Windows and Linux the path will be similar.
@@ -224,16 +227,16 @@ pnpm run dev
224227

225228
This will start the Remix Vite development server. You will need Google Chrome Canary to run this locally if you use Chrome! It's an easy install and a good browser for web development anyway.
226229

227-
## How do I contribute to oTToDev?
230+
## How do I contribute to Bolt.diy?
228231

229-
[Please check out our dedicated page for contributing to oTToDev here!](CONTRIBUTING.md)
232+
[Please check out our dedicated page for contributing to Bolt.diy here!](CONTRIBUTING.md)
230233

231-
## What are the future plans for oTToDev?
234+
## What are the future plans for Bolt.diy?
232235

233236
[Check out our Roadmap here!](https://roadmap.sh/r/ottodev-roadmap-2ovzo)
234237

235238
Lot more updates to this roadmap coming soon!
236239

237240
## FAQ
238241

239-
[Please check out our dedicated page for FAQ's related to oTToDev here!](FAQ.md)
242+
[Please check out our dedicated page for FAQ's related to Bolt.diy here!](FAQ.md)

app/commit.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "commit": "154935cdeb054d2cc22dfb0c7e6cf084f02b95d0" }

app/components/chat/Artifact.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
5252
if (actions.length !== 0 && artifact.type === 'bundled') {
5353
const finished = !actions.find((action) => action.status !== 'complete');
5454

55-
if (finished != allActionFinished) {
55+
if (allActionFinished !== finished) {
5656
setAllActionFinished(finished);
5757
}
5858
}

app/components/chat/BaseChat.module.scss

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -18,82 +18,6 @@
1818
opacity: 1;
1919
}
2020

21-
.RayContainer {
22-
--gradient-opacity: 0.85;
23-
--ray-gradient: radial-gradient(rgba(83, 196, 255, var(--gradient-opacity)) 0%, rgba(43, 166, 255, 0) 100%);
24-
transition: opacity 0.25s linear;
25-
position: fixed;
26-
inset: 0;
27-
pointer-events: none;
28-
user-select: none;
29-
}
30-
31-
.LightRayOne {
32-
width: 480px;
33-
height: 680px;
34-
transform: rotate(80deg);
35-
top: -540px;
36-
left: 250px;
37-
filter: blur(110px);
38-
position: absolute;
39-
border-radius: 100%;
40-
background: var(--ray-gradient);
41-
}
42-
43-
.LightRayTwo {
44-
width: 110px;
45-
height: 400px;
46-
transform: rotate(-20deg);
47-
top: -280px;
48-
left: 350px;
49-
mix-blend-mode: overlay;
50-
opacity: 0.6;
51-
filter: blur(60px);
52-
position: absolute;
53-
border-radius: 100%;
54-
background: var(--ray-gradient);
55-
}
56-
57-
.LightRayThree {
58-
width: 400px;
59-
height: 370px;
60-
top: -350px;
61-
left: 200px;
62-
mix-blend-mode: overlay;
63-
opacity: 0.6;
64-
filter: blur(21px);
65-
position: absolute;
66-
border-radius: 100%;
67-
background: var(--ray-gradient);
68-
}
69-
70-
.LightRayFour {
71-
position: absolute;
72-
width: 330px;
73-
height: 370px;
74-
top: -330px;
75-
left: 50px;
76-
mix-blend-mode: overlay;
77-
opacity: 0.5;
78-
filter: blur(21px);
79-
border-radius: 100%;
80-
background: var(--ray-gradient);
81-
}
82-
83-
.LightRayFive {
84-
position: absolute;
85-
width: 110px;
86-
height: 400px;
87-
transform: rotate(-40deg);
88-
top: -280px;
89-
left: -10px;
90-
mix-blend-mode: overlay;
91-
opacity: 0.8;
92-
filter: blur(60px);
93-
border-radius: 100%;
94-
background: var(--ray-gradient);
95-
}
96-
9721
.PromptEffectContainer {
9822
--prompt-container-offset: 50px;
9923
--prompt-line-stroke-width: 1px;

0 commit comments

Comments
 (0)