Merge branch 'main' into main
Browse files- .github/workflows/github-build-push.yml +39 -0
- CONTRIBUTING.md +62 -74
- Dockerfile +29 -0
- README.md +12 -11
- app/components/workbench/Workbench.client.tsx +25 -0
- app/lib/.server/llm/constants.ts +1 -1
- app/lib/.server/llm/prompts.ts +56 -1
- app/lib/stores/workbench.ts +106 -0
- docker-compose.yml +24 -0
- package.json +3 -1
- pnpm-lock.yaml +130 -6
.github/workflows/github-build-push.yml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Build and Push Container
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
# paths:
|
| 8 |
+
# - 'Dockerfile'
|
| 9 |
+
workflow_dispatch:
|
| 10 |
+
jobs:
|
| 11 |
+
build-and-push:
|
| 12 |
+
runs-on: [ubuntu-latest]
|
| 13 |
+
steps:
|
| 14 |
+
- name: Checkout code
|
| 15 |
+
uses: actions/checkout@v4
|
| 16 |
+
|
| 17 |
+
- name: Set up QEMU
|
| 18 |
+
uses: docker/setup-qemu-action@v1
|
| 19 |
+
|
| 20 |
+
- name: Set up Docker Buildx
|
| 21 |
+
uses: docker/setup-buildx-action@v1
|
| 22 |
+
|
| 23 |
+
- name: Login to GitHub Container Registry
|
| 24 |
+
uses: docker/login-action@v1
|
| 25 |
+
with:
|
| 26 |
+
registry: ghcr.io
|
| 27 |
+
username: ${{ github.actor }}
|
| 28 |
+
password: ${{ secrets.GITHUB_TOKEN }}
|
| 29 |
+
|
| 30 |
+
- name: Build and Push Containers
|
| 31 |
+
uses: docker/build-push-action@v2
|
| 32 |
+
with:
|
| 33 |
+
context: .
|
| 34 |
+
file: Dockerfile
|
| 35 |
+
platforms: linux/amd64,linux/arm64
|
| 36 |
+
push: true
|
| 37 |
+
tags: |
|
| 38 |
+
ghcr.io/${{ github.repository }}:latest
|
| 39 |
+
ghcr.io/${{ github.repository }}:${{ github.sha }}
|
CONTRIBUTING.md
CHANGED
|
@@ -1,110 +1,98 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
|
|
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
-
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
Bolt uses the [AI SDK](https://github.com/vercel/ai) to integrate with AI
|
| 34 |
-
models. At this time, Bolt supports using Anthropic's Claude Sonnet 3.5.
|
| 35 |
-
You can get an API key from the [Anthropic API Console](https://console.anthropic.com/) to use with Bolt.
|
| 36 |
-
Take a look at how [Bolt uses the AI SDK](https://github.com/stackblitz/bolt.new/tree/main/app/lib/.server/llm)
|
| 37 |
-
|
| 38 |
-
## Prerequisites
|
| 39 |
-
|
| 40 |
-
Before you begin, ensure you have the following installed:
|
| 41 |
-
|
| 42 |
-
- Node.js (v20.15.1)
|
| 43 |
-
- pnpm (v9.4.0)
|
| 44 |
-
|
| 45 |
-
## Setup
|
| 46 |
-
|
| 47 |
-
1. Clone the repository (if you haven't already):
|
| 48 |
|
|
|
|
|
|
|
| 49 |
```bash
|
| 50 |
-
git clone https://github.com/
|
| 51 |
```
|
| 52 |
|
| 53 |
2. Install dependencies:
|
| 54 |
-
|
| 55 |
```bash
|
| 56 |
pnpm install
|
| 57 |
```
|
| 58 |
|
| 59 |
-
3.
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
| 62 |
ANTHROPIC_API_KEY=XXX
|
|
|
|
| 63 |
```
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
```
|
| 68 |
VITE_LOG_LEVEL=debug
|
| 69 |
```
|
| 70 |
-
|
| 71 |
**Important**: Never commit your `.env.local` file to version control. It's already included in .gitignore.
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
- `pnpm run dev`: Starts the development server.
|
| 76 |
-
- `pnpm run build`: Builds the project.
|
| 77 |
-
- `pnpm run start`: Runs the built application locally using Wrangler Pages. This script uses `bindings.sh` to set up necessary bindings so you don't have to duplicate environment variables.
|
| 78 |
-
- `pnpm run preview`: Builds the project and then starts it locally, useful for testing the production build. Note, HTTP streaming currently doesn't work as expected with `wrangler pages dev`.
|
| 79 |
-
- `pnpm test`: Runs the test suite using Vitest.
|
| 80 |
-
- `pnpm run typecheck`: Runs TypeScript type checking.
|
| 81 |
-
- `pnpm run typegen`: Generates TypeScript types using Wrangler.
|
| 82 |
-
- `pnpm run deploy`: Builds the project and deploys it to Cloudflare Pages.
|
| 83 |
-
|
| 84 |
-
## Development
|
| 85 |
-
|
| 86 |
-
To start the development server:
|
| 87 |
-
|
| 88 |
```bash
|
| 89 |
pnpm run dev
|
| 90 |
```
|
| 91 |
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
## Testing
|
| 95 |
|
| 96 |
-
|
| 97 |
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
## Deployment
|
| 103 |
-
|
| 104 |
-
To deploy the application to Cloudflare Pages:
|
| 105 |
-
|
| 106 |
-
```bash
|
| 107 |
-
pnpm run deploy
|
| 108 |
-
```
|
| 109 |
|
| 110 |
-
|
|
|
|
| 1 |
+
# Contributing to Bolt.new Fork
|
| 2 |
|
| 3 |
+
First off, thank you for considering contributing to Bolt.new! This fork aims to expand the capabilities of the original project by integrating multiple LLM providers and enhancing functionality. Every contribution helps make Bolt.new a better tool for developers worldwide.
|
| 4 |
|
| 5 |
+
## 📋 Table of Contents
|
| 6 |
+
- [Code of Conduct](#code-of-conduct)
|
| 7 |
+
- [How Can I Contribute?](#how-can-i-contribute)
|
| 8 |
+
- [Pull Request Guidelines](#pull-request-guidelines)
|
| 9 |
+
- [Coding Standards](#coding-standards)
|
| 10 |
+
- [Development Setup](#development-setup)
|
| 11 |
+
- [Project Structure](#project-structure)
|
| 12 |
|
| 13 |
+
## Code of Conduct
|
| 14 |
|
| 15 |
+
This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to the project maintainers.
|
| 16 |
|
| 17 |
+
## How Can I Contribute?
|
| 18 |
|
| 19 |
+
### 🐞 Reporting Bugs and Feature Requests
|
| 20 |
+
- Check the issue tracker to avoid duplicates
|
| 21 |
+
- Use the issue templates when available
|
| 22 |
+
- Include as much relevant information as possible
|
| 23 |
+
- For bugs, add steps to reproduce the issue
|
| 24 |
|
| 25 |
+
### 🔧 Code Contributions
|
| 26 |
+
1. Fork the repository
|
| 27 |
+
2. Create a new branch for your feature/fix
|
| 28 |
+
3. Write your code
|
| 29 |
+
4. Submit a pull request
|
| 30 |
|
| 31 |
+
### ✨ Becoming a Core Contributor
|
| 32 |
+
We're looking for dedicated contributors to help maintain and grow this project. If you're interested in becoming a core contributor, please fill out our [Contributor Application Form](https://forms.gle/TBSteXSDCtBDwr5m7).
|
| 33 |
|
| 34 |
+
## Pull Request Guidelines
|
| 35 |
|
| 36 |
+
### 📝 PR Checklist
|
| 37 |
+
- [ ] Branch from the main branch
|
| 38 |
+
- [ ] Update documentation if needed
|
| 39 |
+
- [ ] Manually verify all new functionality works as expected
|
| 40 |
+
- [ ] Keep PRs focused and atomic
|
| 41 |
|
| 42 |
+
### 👀 Review Process
|
| 43 |
+
1. Manually test the changes
|
| 44 |
+
2. At least one maintainer review required
|
| 45 |
+
3. Address all review comments
|
| 46 |
+
4. Maintain clean commit history
|
| 47 |
|
| 48 |
+
## Coding Standards
|
| 49 |
|
| 50 |
+
### 💻 General Guidelines
|
| 51 |
+
- Follow existing code style
|
| 52 |
+
- Comment complex logic
|
| 53 |
+
- Keep functions focused and small
|
| 54 |
+
- Use meaningful variable names
|
| 55 |
|
| 56 |
+
## Development Setup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
+
### 🔄 Initial Setup
|
| 59 |
+
1. Clone the repository:
|
| 60 |
```bash
|
| 61 |
+
git clone https://github.com/coleam00/bolt.new-any-llm.git
|
| 62 |
```
|
| 63 |
|
| 64 |
2. Install dependencies:
|
|
|
|
| 65 |
```bash
|
| 66 |
pnpm install
|
| 67 |
```
|
| 68 |
|
| 69 |
+
3. Set up environment variables:
|
| 70 |
+
- Rename `.env.example` to `.env.local`
|
| 71 |
+
- Add your LLM API keys (only set the ones you plan to use):
|
| 72 |
+
```bash
|
| 73 |
+
GROQ_API_KEY=XXX
|
| 74 |
+
OPENAI_API_KEY=XXX
|
| 75 |
ANTHROPIC_API_KEY=XXX
|
| 76 |
+
...
|
| 77 |
```
|
| 78 |
+
- Optionally set debug level:
|
| 79 |
+
```bash
|
|
|
|
|
|
|
| 80 |
VITE_LOG_LEVEL=debug
|
| 81 |
```
|
|
|
|
| 82 |
**Important**: Never commit your `.env.local` file to version control. It's already included in .gitignore.
|
| 83 |
|
| 84 |
+
### 🚀 Running the Development Server
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
```bash
|
| 86 |
pnpm run dev
|
| 87 |
```
|
| 88 |
|
| 89 |
+
**Note**: 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.
|
|
|
|
|
|
|
| 90 |
|
| 91 |
+
## Questions?
|
| 92 |
|
| 93 |
+
For any questions about contributing, please:
|
| 94 |
+
1. Check existing documentation
|
| 95 |
+
2. Search through issues
|
| 96 |
+
3. Create a new issue with the question label
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
+
Thank you for contributing to Bolt.new! 🚀
|
Dockerfile
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use an official Node.js runtime as the base image
|
| 2 |
+
FROM node:20.15.1
|
| 3 |
+
|
| 4 |
+
# Set the working directory in the container
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install pnpm
|
| 8 |
+
RUN npm install -g [email protected]
|
| 9 |
+
|
| 10 |
+
# Copy package.json and pnpm-lock.yaml (if available)
|
| 11 |
+
COPY package.json pnpm-lock.yaml* ./
|
| 12 |
+
|
| 13 |
+
# Install dependencies
|
| 14 |
+
RUN pnpm install
|
| 15 |
+
|
| 16 |
+
# Copy the rest of the application code
|
| 17 |
+
COPY . .
|
| 18 |
+
|
| 19 |
+
# Build the application
|
| 20 |
+
RUN pnpm run build
|
| 21 |
+
|
| 22 |
+
# Make sure bindings.sh is executable
|
| 23 |
+
RUN chmod +x bindings.sh
|
| 24 |
+
|
| 25 |
+
# Expose the port the app runs on (adjust if you specified a different port)
|
| 26 |
+
EXPOSE 3000
|
| 27 |
+
|
| 28 |
+
# Start the application
|
| 29 |
+
CMD ["pnpm", "run", "start"]
|
README.md
CHANGED
|
@@ -2,15 +2,16 @@
|
|
| 2 |
|
| 3 |
# Bolt.new Fork by Cole Medin
|
| 4 |
|
| 5 |
-
This fork of
|
| 6 |
|
| 7 |
# Requested Additions to this Fork - Feel Free to Contribute!!
|
| 8 |
|
| 9 |
- ✅ OpenRouter Integration (@coleam00)
|
| 10 |
- ✅ Gemini Integration (@jonathands)
|
| 11 |
-
- ✅ Autogenerate Ollama models from what is downloaded (@
|
| 12 |
- ✅ Filter models by provider (@jasonm23)
|
| 13 |
- ✅ Download project as ZIP (@fabwaseem)
|
|
|
|
| 14 |
- ⬜ LM Studio Integration
|
| 15 |
- ⬜ DeepSeek API Integration
|
| 16 |
- ⬜ Together Integration
|
|
@@ -20,15 +21,15 @@ This fork of bolt.new allows you to choose the LLM that you use for each prompt!
|
|
| 20 |
- ⬜ Containerize the application with Docker for easy installation
|
| 21 |
- ⬜ Better prompting for smaller LLMs (code window sometimes doesn't start)
|
| 22 |
- ⬜ Attach images to prompts
|
| 23 |
-
- ⬜ Run agents in the backend
|
| 24 |
- ⬜ Publish projects directly to GitHub
|
| 25 |
- ⬜ Deploy directly to Vercel/Netlify/other similar platforms
|
| 26 |
- ⬜ Load local projects into the app
|
| 27 |
-
- ⬜ Improvements to the main Bolt.new prompt in `app\lib\.server\llm\prompts.ts` (there is definitely opportunity there)
|
| 28 |
- ⬜ Ability to revert code to earlier version
|
| 29 |
- ⬜ Prompt caching
|
| 30 |
-
- ⬜ Ability to
|
| 31 |
-
- ⬜ Prevent Bolt from rewriting files
|
|
|
|
| 32 |
|
| 33 |
# Bolt.new: AI-Powered Full-Stack Web Development in the Browser
|
| 34 |
|
|
@@ -36,7 +37,7 @@ Bolt.new is an AI-powered web development agent that allows you to prompt, run,
|
|
| 36 |
|
| 37 |
## What Makes Bolt.new Different
|
| 38 |
|
| 39 |
-
Claude, v0, etc are incredible- but you can't install packages, run backends or edit code. That’s where Bolt.new stands out:
|
| 40 |
|
| 41 |
- **Full-Stack in the Browser**: Bolt.new integrates cutting-edge AI models with an in-browser development environment powered by **StackBlitz’s WebContainers**. This allows you to:
|
| 42 |
- Install and run npm tools and libraries (like Vite, Next.js, and more)
|
|
@@ -45,9 +46,9 @@ Claude, v0, etc are incredible- but you can't install packages, run backends or
|
|
| 45 |
- Deploy to production from chat
|
| 46 |
- Share your work via a URL
|
| 47 |
|
| 48 |
-
- **AI with Environment Control**: Unlike traditional dev environments where the AI can only assist in code generation, Bolt.new gives AI models **complete control** over the entire environment including the filesystem, node server, package manager, terminal, and browser console. This empowers AI agents to handle the
|
| 49 |
|
| 50 |
-
Whether you’re an experienced developer, a PM or designer, Bolt.new allows you to build production-grade full-stack applications
|
| 51 |
|
| 52 |
For developers interested in building their own AI-powered development tools with WebContainers, check out the open-source Bolt codebase in this repo!
|
| 53 |
|
|
@@ -90,7 +91,7 @@ VITE_LOG_LEVEL=debug
|
|
| 90 |
|
| 91 |
## Adding New LLMs:
|
| 92 |
|
| 93 |
-
To make new LLMs available to use in this version of Bolt.new, head on over to `app/utils/constants.ts` and find the constant MODEL_LIST. Each element in this array is an object that has the model ID for the name (get this from the provider's API documentation), a
|
| 94 |
|
| 95 |
By default, Anthropic, OpenAI, Groq, and Ollama are implemented as providers, but the YouTube video for this repo covers how to extend this to work with more providers if you wish!
|
| 96 |
|
|
@@ -115,7 +116,7 @@ To start the development server:
|
|
| 115 |
pnpm run dev
|
| 116 |
```
|
| 117 |
|
| 118 |
-
This will start the Remix Vite development server. You will need Google Chrome Canary to run this locally! It's
|
| 119 |
|
| 120 |
## Tips and Tricks
|
| 121 |
|
|
|
|
| 2 |
|
| 3 |
# Bolt.new Fork by Cole Medin
|
| 4 |
|
| 5 |
+
This fork of Bolt.new allows you to choose the LLM that you use for each prompt! Currently, you can use OpenAI, Anthropic, Ollama, OpenRouter, Gemini, 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.
|
| 6 |
|
| 7 |
# Requested Additions to this Fork - Feel Free to Contribute!!
|
| 8 |
|
| 9 |
- ✅ OpenRouter Integration (@coleam00)
|
| 10 |
- ✅ Gemini Integration (@jonathands)
|
| 11 |
+
- ✅ Autogenerate Ollama models from what is downloaded (@yunatamos)
|
| 12 |
- ✅ Filter models by provider (@jasonm23)
|
| 13 |
- ✅ Download project as ZIP (@fabwaseem)
|
| 14 |
+
- ✅ Improvements to the main Bolt.new prompt in `app\lib\.server\llm\prompts.ts` (@kofi-bhr)
|
| 15 |
- ⬜ LM Studio Integration
|
| 16 |
- ⬜ DeepSeek API Integration
|
| 17 |
- ⬜ Together Integration
|
|
|
|
| 21 |
- ⬜ Containerize the application with Docker for easy installation
|
| 22 |
- ⬜ Better prompting for smaller LLMs (code window sometimes doesn't start)
|
| 23 |
- ⬜ Attach images to prompts
|
| 24 |
+
- ⬜ Run agents in the backend as opposed to a single model call
|
| 25 |
- ⬜ Publish projects directly to GitHub
|
| 26 |
- ⬜ Deploy directly to Vercel/Netlify/other similar platforms
|
| 27 |
- ⬜ Load local projects into the app
|
|
|
|
| 28 |
- ⬜ Ability to revert code to earlier version
|
| 29 |
- ⬜ Prompt caching
|
| 30 |
+
- ⬜ Ability to enter API keys in the UI
|
| 31 |
+
- ⬜ Prevent Bolt from rewriting files as often
|
| 32 |
+
- ⬜ Have LLM plan the project in a MD file for better results/transparency
|
| 33 |
|
| 34 |
# Bolt.new: AI-Powered Full-Stack Web Development in the Browser
|
| 35 |
|
|
|
|
| 37 |
|
| 38 |
## What Makes Bolt.new Different
|
| 39 |
|
| 40 |
+
Claude, v0, etc are incredible- but you can't install packages, run backends, or edit code. That’s where Bolt.new stands out:
|
| 41 |
|
| 42 |
- **Full-Stack in the Browser**: Bolt.new integrates cutting-edge AI models with an in-browser development environment powered by **StackBlitz’s WebContainers**. This allows you to:
|
| 43 |
- Install and run npm tools and libraries (like Vite, Next.js, and more)
|
|
|
|
| 46 |
- Deploy to production from chat
|
| 47 |
- Share your work via a URL
|
| 48 |
|
| 49 |
+
- **AI with Environment Control**: Unlike traditional dev environments where the AI can only assist in code generation, Bolt.new gives AI models **complete control** over the entire environment including the filesystem, node server, package manager, terminal, and browser console. This empowers AI agents to handle the whole app lifecycle—from creation to deployment.
|
| 50 |
|
| 51 |
+
Whether you’re an experienced developer, a PM, or a designer, Bolt.new allows you to easily build production-grade full-stack applications.
|
| 52 |
|
| 53 |
For developers interested in building their own AI-powered development tools with WebContainers, check out the open-source Bolt codebase in this repo!
|
| 54 |
|
|
|
|
| 91 |
|
| 92 |
## Adding New LLMs:
|
| 93 |
|
| 94 |
+
To make new LLMs available to use in this version of Bolt.new, head on over to `app/utils/constants.ts` and find the constant MODEL_LIST. Each element in this array is an object that has the model ID for the name (get this from the provider's API documentation), a label for the frontend model dropdown, and the provider.
|
| 95 |
|
| 96 |
By default, Anthropic, OpenAI, Groq, and Ollama are implemented as providers, but the YouTube video for this repo covers how to extend this to work with more providers if you wish!
|
| 97 |
|
|
|
|
| 116 |
pnpm run dev
|
| 117 |
```
|
| 118 |
|
| 119 |
+
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.
|
| 120 |
|
| 121 |
## Tips and Tricks
|
| 122 |
|
app/components/workbench/Workbench.client.tsx
CHANGED
|
@@ -162,6 +162,31 @@ export const Workbench = memo(({ chatStarted, isStreaming }: WorkspaceProps) =>
|
|
| 162 |
<div className="i-ph:terminal" />
|
| 163 |
Toggle Terminal
|
| 164 |
</PanelHeaderButton>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
</>
|
| 166 |
)}
|
| 167 |
<IconButton
|
|
|
|
| 162 |
<div className="i-ph:terminal" />
|
| 163 |
Toggle Terminal
|
| 164 |
</PanelHeaderButton>
|
| 165 |
+
<PanelHeaderButton
|
| 166 |
+
className="mr-1 text-sm"
|
| 167 |
+
onClick={() => {
|
| 168 |
+
const repoName = prompt("Please enter a name for your new GitHub repository:", "bolt-generated-project");
|
| 169 |
+
if (!repoName) {
|
| 170 |
+
alert("Repository name is required. Push to GitHub cancelled.");
|
| 171 |
+
return;
|
| 172 |
+
}
|
| 173 |
+
const githubUsername = prompt("Please enter your GitHub username:");
|
| 174 |
+
if (!githubUsername) {
|
| 175 |
+
alert("GitHub username is required. Push to GitHub cancelled.");
|
| 176 |
+
return;
|
| 177 |
+
}
|
| 178 |
+
const githubToken = prompt("Please enter your GitHub personal access token:");
|
| 179 |
+
if (!githubToken) {
|
| 180 |
+
alert("GitHub token is required. Push to GitHub cancelled.");
|
| 181 |
+
return;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
workbenchStore.pushToGitHub(repoName, githubUsername, githubToken);
|
| 185 |
+
}}
|
| 186 |
+
>
|
| 187 |
+
<div className="i-ph:github-logo" />
|
| 188 |
+
Push to GitHub
|
| 189 |
+
</PanelHeaderButton>
|
| 190 |
</>
|
| 191 |
)}
|
| 192 |
<IconButton
|
app/lib/.server/llm/constants.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
// see https://docs.anthropic.com/en/docs/about-claude/models
|
| 2 |
-
export const MAX_TOKENS =
|
| 3 |
|
| 4 |
// limits the number of model responses that can be returned in a single request
|
| 5 |
export const MAX_RESPONSE_SEGMENTS = 2;
|
|
|
|
| 1 |
// see https://docs.anthropic.com/en/docs/about-claude/models
|
| 2 |
+
export const MAX_TOKENS = 8000;
|
| 3 |
|
| 4 |
// limits the number of model responses that can be returned in a single request
|
| 5 |
export const MAX_RESPONSE_SEGMENTS = 2;
|
app/lib/.server/llm/prompts.ts
CHANGED
|
@@ -29,7 +29,32 @@ You are Bolt, an expert AI assistant and exceptional senior software developer w
|
|
| 29 |
|
| 30 |
IMPORTANT: When choosing databases or npm packages, prefer options that don't rely on native binaries. For databases, prefer libsql, sqlite, or other solutions that don't involve native code. WebContainer CANNOT execute arbitrary native binaries.
|
| 31 |
|
| 32 |
-
Available shell commands:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
</system_constraints>
|
| 34 |
|
| 35 |
<code_formatting_info>
|
|
@@ -84,6 +109,36 @@ You are Bolt, an expert AI assistant and exceptional senior software developer w
|
|
| 84 |
</${MODIFICATIONS_TAG_NAME}>
|
| 85 |
</diff_spec>
|
| 86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
<artifact_info>
|
| 88 |
Bolt creates a SINGLE, comprehensive artifact for each project. The artifact contains all necessary steps and components, including:
|
| 89 |
|
|
|
|
| 29 |
|
| 30 |
IMPORTANT: When choosing databases or npm packages, prefer options that don't rely on native binaries. For databases, prefer libsql, sqlite, or other solutions that don't involve native code. WebContainer CANNOT execute arbitrary native binaries.
|
| 31 |
|
| 32 |
+
Available shell commands:
|
| 33 |
+
File Operations:
|
| 34 |
+
- cat: Display file contents
|
| 35 |
+
- cp: Copy files/directories
|
| 36 |
+
- ls: List directory contents
|
| 37 |
+
- mkdir: Create directory
|
| 38 |
+
- mv: Move/rename files
|
| 39 |
+
- rm: Remove files
|
| 40 |
+
- rmdir: Remove empty directories
|
| 41 |
+
- touch: Create empty file/update timestamp
|
| 42 |
+
|
| 43 |
+
System Information:
|
| 44 |
+
- hostname: Show system name
|
| 45 |
+
- ps: Display running processes
|
| 46 |
+
- pwd: Print working directory
|
| 47 |
+
- uptime: Show system uptime
|
| 48 |
+
- env: Environment variables
|
| 49 |
+
|
| 50 |
+
Development Tools:
|
| 51 |
+
- node: Execute Node.js code
|
| 52 |
+
- python3: Run Python scripts
|
| 53 |
+
- code: VSCode operations
|
| 54 |
+
- jq: Process JSON
|
| 55 |
+
|
| 56 |
+
Other Utilities:
|
| 57 |
+
- curl, head, sort, tail, clear, which, export, chmod, scho, hostname, kill, ln, xxd, alias, false, getconf, true, loadenv, wasm, xdg-open, command, exit, source
|
| 58 |
</system_constraints>
|
| 59 |
|
| 60 |
<code_formatting_info>
|
|
|
|
| 109 |
</${MODIFICATIONS_TAG_NAME}>
|
| 110 |
</diff_spec>
|
| 111 |
|
| 112 |
+
<chain_of_thought_instructions>
|
| 113 |
+
Before providing a solution, BRIEFLY outline your implementation steps. This helps ensure systematic thinking and clear communication. Your planning should:
|
| 114 |
+
- List concrete steps you'll take
|
| 115 |
+
- Identify key components needed
|
| 116 |
+
- Note potential challenges
|
| 117 |
+
- Be concise (2-4 lines maximum)
|
| 118 |
+
|
| 119 |
+
Example responses:
|
| 120 |
+
|
| 121 |
+
User: "Create a todo list app with local storage"
|
| 122 |
+
Assistant: "Sure. I'll start by:
|
| 123 |
+
1. Set up Vite + React
|
| 124 |
+
2. Create TodoList and TodoItem components
|
| 125 |
+
3. Implement localStorage for persistence
|
| 126 |
+
4. Add CRUD operations
|
| 127 |
+
|
| 128 |
+
Let's start now.
|
| 129 |
+
|
| 130 |
+
[Rest of response...]"
|
| 131 |
+
|
| 132 |
+
User: "Help debug why my API calls aren't working"
|
| 133 |
+
Assistant: "Great. My first steps will be:
|
| 134 |
+
1. Check network requests
|
| 135 |
+
2. Verify API endpoint format
|
| 136 |
+
3. Examine error handling
|
| 137 |
+
|
| 138 |
+
[Rest of response...]"
|
| 139 |
+
|
| 140 |
+
</chain_of_thought_instructions>
|
| 141 |
+
|
| 142 |
<artifact_info>
|
| 143 |
Bolt creates a SINGLE, comprehensive artifact for each project. The artifact contains all necessary steps and components, including:
|
| 144 |
|
app/lib/stores/workbench.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { PreviewsStore } from './previews';
|
|
| 11 |
import { TerminalStore } from './terminal';
|
| 12 |
import JSZip from 'jszip';
|
| 13 |
import { saveAs } from 'file-saver';
|
|
|
|
| 14 |
|
| 15 |
export interface ArtifactState {
|
| 16 |
id: string;
|
|
@@ -333,6 +334,111 @@ export class WorkbenchStore {
|
|
| 333 |
|
| 334 |
return syncedFiles;
|
| 335 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 336 |
}
|
| 337 |
|
| 338 |
export const workbenchStore = new WorkbenchStore();
|
|
|
|
| 11 |
import { TerminalStore } from './terminal';
|
| 12 |
import JSZip from 'jszip';
|
| 13 |
import { saveAs } from 'file-saver';
|
| 14 |
+
import { Octokit } from "@octokit/rest";
|
| 15 |
|
| 16 |
export interface ArtifactState {
|
| 17 |
id: string;
|
|
|
|
| 334 |
|
| 335 |
return syncedFiles;
|
| 336 |
}
|
| 337 |
+
|
| 338 |
+
async pushToGitHub(repoName: string, githubUsername: string, ghToken: string) {
|
| 339 |
+
|
| 340 |
+
try {
|
| 341 |
+
// Get the GitHub auth token from environment variables
|
| 342 |
+
const githubToken = ghToken;
|
| 343 |
+
|
| 344 |
+
const owner = githubUsername;
|
| 345 |
+
|
| 346 |
+
if (!githubToken) {
|
| 347 |
+
throw new Error('GitHub token is not set in environment variables');
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
// Initialize Octokit with the auth token
|
| 351 |
+
const octokit = new Octokit({ auth: githubToken });
|
| 352 |
+
|
| 353 |
+
// Check if the repository already exists before creating it
|
| 354 |
+
let repo
|
| 355 |
+
try {
|
| 356 |
+
repo = await octokit.repos.get({ owner: owner, repo: repoName });
|
| 357 |
+
} catch (error) {
|
| 358 |
+
if (error instanceof Error && 'status' in error && error.status === 404) {
|
| 359 |
+
// Repository doesn't exist, so create a new one
|
| 360 |
+
const { data: newRepo } = await octokit.repos.createForAuthenticatedUser({
|
| 361 |
+
name: repoName,
|
| 362 |
+
private: false,
|
| 363 |
+
auto_init: true,
|
| 364 |
+
});
|
| 365 |
+
repo = newRepo;
|
| 366 |
+
} else {
|
| 367 |
+
console.log('cannot create repo!');
|
| 368 |
+
throw error; // Some other error occurred
|
| 369 |
+
}
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
// Get all files
|
| 373 |
+
const files = this.files.get();
|
| 374 |
+
if (!files || Object.keys(files).length === 0) {
|
| 375 |
+
throw new Error('No files found to push');
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
// Create blobs for each file
|
| 379 |
+
const blobs = await Promise.all(
|
| 380 |
+
Object.entries(files).map(async ([filePath, dirent]) => {
|
| 381 |
+
if (dirent?.type === 'file' && dirent.content) {
|
| 382 |
+
const { data: blob } = await octokit.git.createBlob({
|
| 383 |
+
owner: repo.owner.login,
|
| 384 |
+
repo: repo.name,
|
| 385 |
+
content: Buffer.from(dirent.content).toString('base64'),
|
| 386 |
+
encoding: 'base64',
|
| 387 |
+
});
|
| 388 |
+
return { path: filePath.replace(/^\/home\/project\//, ''), sha: blob.sha };
|
| 389 |
+
}
|
| 390 |
+
})
|
| 391 |
+
);
|
| 392 |
+
|
| 393 |
+
const validBlobs = blobs.filter(Boolean); // Filter out any undefined blobs
|
| 394 |
+
|
| 395 |
+
if (validBlobs.length === 0) {
|
| 396 |
+
throw new Error('No valid files to push');
|
| 397 |
+
}
|
| 398 |
+
|
| 399 |
+
// Get the latest commit SHA (assuming main branch, update dynamically if needed)
|
| 400 |
+
const { data: ref } = await octokit.git.getRef({
|
| 401 |
+
owner: repo.owner.login,
|
| 402 |
+
repo: repo.name,
|
| 403 |
+
ref: `heads/${repo.default_branch || 'main'}`, // Handle dynamic branch
|
| 404 |
+
});
|
| 405 |
+
const latestCommitSha = ref.object.sha;
|
| 406 |
+
|
| 407 |
+
// Create a new tree
|
| 408 |
+
const { data: newTree } = await octokit.git.createTree({
|
| 409 |
+
owner: repo.owner.login,
|
| 410 |
+
repo: repo.name,
|
| 411 |
+
base_tree: latestCommitSha,
|
| 412 |
+
tree: validBlobs.map((blob) => ({
|
| 413 |
+
path: blob!.path,
|
| 414 |
+
mode: '100644',
|
| 415 |
+
type: 'blob',
|
| 416 |
+
sha: blob!.sha,
|
| 417 |
+
})),
|
| 418 |
+
});
|
| 419 |
+
|
| 420 |
+
// Create a new commit
|
| 421 |
+
const { data: newCommit } = await octokit.git.createCommit({
|
| 422 |
+
owner: repo.owner.login,
|
| 423 |
+
repo: repo.name,
|
| 424 |
+
message: 'Initial commit from your app',
|
| 425 |
+
tree: newTree.sha,
|
| 426 |
+
parents: [latestCommitSha],
|
| 427 |
+
});
|
| 428 |
+
|
| 429 |
+
// Update the reference
|
| 430 |
+
await octokit.git.updateRef({
|
| 431 |
+
owner: repo.owner.login,
|
| 432 |
+
repo: repo.name,
|
| 433 |
+
ref: `heads/${repo.default_branch || 'main'}`, // Handle dynamic branch
|
| 434 |
+
sha: newCommit.sha,
|
| 435 |
+
});
|
| 436 |
+
|
| 437 |
+
alert(`Repository created and code pushed: ${repo.html_url}`);
|
| 438 |
+
} catch (error) {
|
| 439 |
+
console.error('Error pushing to GitHub:', error instanceof Error ? error.message : String(error));
|
| 440 |
+
}
|
| 441 |
+
}
|
| 442 |
}
|
| 443 |
|
| 444 |
export const workbenchStore = new WorkbenchStore();
|
docker-compose.yml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
services:
|
| 2 |
+
bolt-app:
|
| 3 |
+
build:
|
| 4 |
+
context: .
|
| 5 |
+
dockerfile: Dockerfile
|
| 6 |
+
ports:
|
| 7 |
+
- "3000:3000"
|
| 8 |
+
environment:
|
| 9 |
+
- NODE_ENV=production
|
| 10 |
+
# Add any other environment variables your app needs
|
| 11 |
+
# - OPENAI_API_KEY=${OPENAI_API_KEY}
|
| 12 |
+
# - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
| 13 |
+
# - GROQ_API_KEY=${GROQ_API_KEY}
|
| 14 |
+
# - OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY}
|
| 15 |
+
volumes:
|
| 16 |
+
# This volume is for development purposes, allowing live code updates
|
| 17 |
+
# Comment out or remove for production
|
| 18 |
+
- .:/app
|
| 19 |
+
# This volume is to prevent node_modules from being overwritten by the above volume
|
| 20 |
+
- /app/node_modules
|
| 21 |
+
command: pnpm run start
|
| 22 |
+
|
| 23 |
+
volumes:
|
| 24 |
+
node_modules:
|
package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"test:watch": "vitest",
|
| 14 |
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
|
| 15 |
"lint:fix": "npm run lint -- --fix",
|
| 16 |
-
"start": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings",
|
| 17 |
"typecheck": "tsc",
|
| 18 |
"typegen": "wrangler types",
|
| 19 |
"preview": "pnpm run build && pnpm run start"
|
|
@@ -44,6 +44,8 @@
|
|
| 44 |
"@iconify-json/svg-spinners": "^1.1.2",
|
| 45 |
"@lezer/highlight": "^1.2.0",
|
| 46 |
"@nanostores/react": "^0.7.2",
|
|
|
|
|
|
|
| 47 |
"@openrouter/ai-sdk-provider": "^0.0.5",
|
| 48 |
"@radix-ui/react-dialog": "^1.1.1",
|
| 49 |
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
|
|
| 13 |
"test:watch": "vitest",
|
| 14 |
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
|
| 15 |
"lint:fix": "npm run lint -- --fix",
|
| 16 |
+
"start": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --ip 0.0.0.0 --port 3000",
|
| 17 |
"typecheck": "tsc",
|
| 18 |
"typegen": "wrangler types",
|
| 19 |
"preview": "pnpm run build && pnpm run start"
|
|
|
|
| 44 |
"@iconify-json/svg-spinners": "^1.1.2",
|
| 45 |
"@lezer/highlight": "^1.2.0",
|
| 46 |
"@nanostores/react": "^0.7.2",
|
| 47 |
+
"@octokit/rest": "^21.0.2",
|
| 48 |
+
"@octokit/types": "^13.6.1",
|
| 49 |
"@openrouter/ai-sdk-provider": "^0.0.5",
|
| 50 |
"@radix-ui/react-dialog": "^1.1.1",
|
| 51 |
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
pnpm-lock.yaml
CHANGED
|
@@ -77,6 +77,12 @@ importers:
|
|
| 77 |
'@nanostores/react':
|
| 78 |
specifier: ^0.7.2
|
| 79 |
version: 0.7.2([email protected])([email protected])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
'@openrouter/ai-sdk-provider':
|
| 81 |
specifier: ^0.0.5
|
| 82 |
version: 0.0.5([email protected])
|
|
@@ -1230,6 +1236,58 @@ packages:
|
|
| 1230 |
resolution: {integrity: sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg==}
|
| 1231 |
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
|
| 1232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1233 |
'@openrouter/[email protected]':
|
| 1234 |
resolution: {integrity: sha512-AfxXQhISpxQSeUjU/4jo9waM5GRNX6eIkfTFS9l7vHkD1TKDP81Y/dXrE0ttJeN/Kap3tPF3Jwh49me0gWwjSw==}
|
| 1235 |
engines: {node: '>=18'}
|
|
@@ -2211,6 +2269,9 @@ packages:
|
|
| 2211 |
resolution: {integrity: sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==}
|
| 2212 |
engines: {node: '>= 0.8'}
|
| 2213 |
|
|
|
|
|
|
|
|
|
|
| 2214 | |
| 2215 |
resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
|
| 2216 |
engines: {node: '>=8'}
|
|
@@ -4970,9 +5031,6 @@ packages:
|
|
| 4970 |
engines: {node: '>=14.17'}
|
| 4971 |
hasBin: true
|
| 4972 |
|
| 4973 | |
| 4974 |
-
resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==}
|
| 4975 |
-
|
| 4976 | |
| 4977 |
resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}
|
| 4978 |
|
|
@@ -5053,6 +5111,9 @@ packages:
|
|
| 5053 | |
| 5054 |
resolution: {integrity: sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==}
|
| 5055 |
|
|
|
|
|
|
|
|
|
|
| 5056 | |
| 5057 |
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
|
| 5058 |
engines: {node: '>= 10.0.0'}
|
|
@@ -6363,6 +6424,67 @@ snapshots:
|
|
| 6363 |
dependencies:
|
| 6364 |
which: 3.0.1
|
| 6365 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6366 |
'@openrouter/[email protected]([email protected])':
|
| 6367 |
dependencies:
|
| 6368 |
'@ai-sdk/provider': 0.0.12
|
|
@@ -7530,6 +7652,8 @@ snapshots:
|
|
| 7530 |
safe-buffer: 5.1.2
|
| 7531 |
optional: true
|
| 7532 |
|
|
|
|
|
|
|
| 7533 | |
| 7534 |
|
| 7535 | |
|
@@ -9972,7 +10096,7 @@ snapshots:
|
|
| 9972 |
dependencies:
|
| 9973 |
destr: 2.0.3
|
| 9974 |
node-fetch-native: 1.6.4
|
| 9975 |
-
ufo: 1.5.
|
| 9976 |
|
| 9977 | |
| 9978 |
dependencies:
|
|
@@ -11002,8 +11126,6 @@ snapshots:
|
|
| 11002 |
|
| 11003 | |
| 11004 |
|
| 11005 |
-
[email protected]: {}
|
| 11006 |
-
|
| 11007 | |
| 11008 |
|
| 11009 | |
|
@@ -11122,6 +11244,8 @@ snapshots:
|
|
| 11122 |
unist-util-is: 6.0.0
|
| 11123 |
unist-util-visit-parents: 6.0.1
|
| 11124 |
|
|
|
|
|
|
|
| 11125 | |
| 11126 |
|
| 11127 |
|
|
|
| 77 |
'@nanostores/react':
|
| 78 |
specifier: ^0.7.2
|
| 79 |
version: 0.7.2([email protected])([email protected])
|
| 80 |
+
'@octokit/rest':
|
| 81 |
+
specifier: ^21.0.2
|
| 82 |
+
version: 21.0.2
|
| 83 |
+
'@octokit/types':
|
| 84 |
+
specifier: ^13.6.1
|
| 85 |
+
version: 13.6.1
|
| 86 |
'@openrouter/ai-sdk-provider':
|
| 87 |
specifier: ^0.0.5
|
| 88 |
version: 0.0.5([email protected])
|
|
|
|
| 1236 |
resolution: {integrity: sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg==}
|
| 1237 |
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
|
| 1238 |
|
| 1239 |
+
'@octokit/[email protected]':
|
| 1240 |
+
resolution: {integrity: sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA==}
|
| 1241 |
+
engines: {node: '>= 18'}
|
| 1242 |
+
|
| 1243 |
+
'@octokit/[email protected]':
|
| 1244 |
+
resolution: {integrity: sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==}
|
| 1245 |
+
engines: {node: '>= 18'}
|
| 1246 |
+
|
| 1247 |
+
'@octokit/[email protected]':
|
| 1248 |
+
resolution: {integrity: sha512-JYjh5rMOwXMJyUpj028cu0Gbp7qe/ihxfJMLc8VZBMMqSwLgOxDI1911gV4Enl1QSavAQNJcwmwBF9M0VvLh6Q==}
|
| 1249 |
+
engines: {node: '>= 18'}
|
| 1250 |
+
|
| 1251 |
+
'@octokit/[email protected]':
|
| 1252 |
+
resolution: {integrity: sha512-ukiRmuHTi6ebQx/HFRCXKbDlOh/7xEV6QUXaE7MJEKGNAncGI/STSbOkl12qVXZrfZdpXctx5O9X1AIaebiDBg==}
|
| 1253 |
+
engines: {node: '>= 18'}
|
| 1254 |
+
|
| 1255 |
+
'@octokit/[email protected]':
|
| 1256 |
+
resolution: {integrity: sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==}
|
| 1257 |
+
|
| 1258 |
+
'@octokit/[email protected]':
|
| 1259 |
+
resolution: {integrity: sha512-cgwIRtKrpwhLoBi0CUNuY83DPGRMaWVjqVI/bGKsLJ4PzyWZNaEmhHroI2xlrVXkk6nFv0IsZpOp+ZWSWUS2AQ==}
|
| 1260 |
+
engines: {node: '>= 18'}
|
| 1261 |
+
peerDependencies:
|
| 1262 |
+
'@octokit/core': '>=6'
|
| 1263 |
+
|
| 1264 |
+
'@octokit/[email protected]':
|
| 1265 |
+
resolution: {integrity: sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==}
|
| 1266 |
+
engines: {node: '>= 18'}
|
| 1267 |
+
peerDependencies:
|
| 1268 |
+
'@octokit/core': '>=6'
|
| 1269 |
+
|
| 1270 |
+
'@octokit/[email protected]':
|
| 1271 |
+
resolution: {integrity: sha512-wMsdyHMjSfKjGINkdGKki06VEkgdEldIGstIEyGX0wbYHGByOwN/KiM+hAAlUwAtPkP3gvXtVQA9L3ITdV2tVw==}
|
| 1272 |
+
engines: {node: '>= 18'}
|
| 1273 |
+
peerDependencies:
|
| 1274 |
+
'@octokit/core': '>=6'
|
| 1275 |
+
|
| 1276 |
+
'@octokit/[email protected]':
|
| 1277 |
+
resolution: {integrity: sha512-IlBTfGX8Yn/oFPMwSfvugfncK2EwRLjzbrpifNaMY8o/HTEAFqCA1FZxjD9cWvSKBHgrIhc4CSBIzMxiLsbzFQ==}
|
| 1278 |
+
engines: {node: '>= 18'}
|
| 1279 |
+
|
| 1280 |
+
'@octokit/[email protected]':
|
| 1281 |
+
resolution: {integrity: sha512-V+TFhu5fdF3K58rs1pGUJIDH5RZLbZm5BI+MNF+6o/ssFNT4vWlCh/tVpF3NxGtP15HUxTTMUbsG5llAuU2CZA==}
|
| 1282 |
+
engines: {node: '>= 18'}
|
| 1283 |
+
|
| 1284 |
+
'@octokit/[email protected]':
|
| 1285 |
+
resolution: {integrity: sha512-+CiLisCoyWmYicH25y1cDfCrv41kRSvTq6pPWtRroRJzhsCZWZyCqGyI8foJT5LmScADSwRAnr/xo+eewL04wQ==}
|
| 1286 |
+
engines: {node: '>= 18'}
|
| 1287 |
+
|
| 1288 |
+
'@octokit/[email protected]':
|
| 1289 |
+
resolution: {integrity: sha512-PHZE9Z+kWXb23Ndik8MKPirBPziOc0D2/3KH1P+6jK5nGWe96kadZuE4jev2/Jq7FvIfTlT2Ltg8Fv2x1v0a5g==}
|
| 1290 |
+
|
| 1291 |
'@openrouter/[email protected]':
|
| 1292 |
resolution: {integrity: sha512-AfxXQhISpxQSeUjU/4jo9waM5GRNX6eIkfTFS9l7vHkD1TKDP81Y/dXrE0ttJeN/Kap3tPF3Jwh49me0gWwjSw==}
|
| 1293 |
engines: {node: '>=18'}
|
|
|
|
| 2269 |
resolution: {integrity: sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==}
|
| 2270 |
engines: {node: '>= 0.8'}
|
| 2271 |
|
| 2272 | |
| 2273 |
+
resolution: {integrity: sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==}
|
| 2274 |
+
|
| 2275 | |
| 2276 |
resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
|
| 2277 |
engines: {node: '>=8'}
|
|
|
|
| 5031 |
engines: {node: '>=14.17'}
|
| 5032 |
hasBin: true
|
| 5033 |
|
|
|
|
|
|
|
|
|
|
| 5034 | |
| 5035 |
resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}
|
| 5036 |
|
|
|
|
| 5111 | |
| 5112 |
resolution: {integrity: sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==}
|
| 5113 |
|
| 5114 | |
| 5115 |
+
resolution: {integrity: sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==}
|
| 5116 |
+
|
| 5117 | |
| 5118 |
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
|
| 5119 |
engines: {node: '>= 10.0.0'}
|
|
|
|
| 6424 |
dependencies:
|
| 6425 |
which: 3.0.1
|
| 6426 |
|
| 6427 |
+
'@octokit/[email protected]': {}
|
| 6428 |
+
|
| 6429 |
+
'@octokit/[email protected]':
|
| 6430 |
+
dependencies:
|
| 6431 |
+
'@octokit/auth-token': 5.1.1
|
| 6432 |
+
'@octokit/graphql': 8.1.1
|
| 6433 |
+
'@octokit/request': 9.1.3
|
| 6434 |
+
'@octokit/request-error': 6.1.5
|
| 6435 |
+
'@octokit/types': 13.6.1
|
| 6436 |
+
before-after-hook: 3.0.2
|
| 6437 |
+
universal-user-agent: 7.0.2
|
| 6438 |
+
|
| 6439 |
+
'@octokit/[email protected]':
|
| 6440 |
+
dependencies:
|
| 6441 |
+
'@octokit/types': 13.6.1
|
| 6442 |
+
universal-user-agent: 7.0.2
|
| 6443 |
+
|
| 6444 |
+
'@octokit/[email protected]':
|
| 6445 |
+
dependencies:
|
| 6446 |
+
'@octokit/request': 9.1.3
|
| 6447 |
+
'@octokit/types': 13.6.1
|
| 6448 |
+
universal-user-agent: 7.0.2
|
| 6449 |
+
|
| 6450 |
+
'@octokit/[email protected]': {}
|
| 6451 |
+
|
| 6452 |
+
'@octokit/[email protected](@octokit/[email protected])':
|
| 6453 |
+
dependencies:
|
| 6454 |
+
'@octokit/core': 6.1.2
|
| 6455 |
+
'@octokit/types': 13.6.1
|
| 6456 |
+
|
| 6457 |
+
'@octokit/[email protected](@octokit/[email protected])':
|
| 6458 |
+
dependencies:
|
| 6459 |
+
'@octokit/core': 6.1.2
|
| 6460 |
+
|
| 6461 |
+
'@octokit/[email protected](@octokit/[email protected])':
|
| 6462 |
+
dependencies:
|
| 6463 |
+
'@octokit/core': 6.1.2
|
| 6464 |
+
'@octokit/types': 13.6.1
|
| 6465 |
+
|
| 6466 |
+
'@octokit/[email protected]':
|
| 6467 |
+
dependencies:
|
| 6468 |
+
'@octokit/types': 13.6.1
|
| 6469 |
+
|
| 6470 |
+
'@octokit/[email protected]':
|
| 6471 |
+
dependencies:
|
| 6472 |
+
'@octokit/endpoint': 10.1.1
|
| 6473 |
+
'@octokit/request-error': 6.1.5
|
| 6474 |
+
'@octokit/types': 13.6.1
|
| 6475 |
+
universal-user-agent: 7.0.2
|
| 6476 |
+
|
| 6477 |
+
'@octokit/[email protected]':
|
| 6478 |
+
dependencies:
|
| 6479 |
+
'@octokit/core': 6.1.2
|
| 6480 |
+
'@octokit/plugin-paginate-rest': 11.3.5(@octokit/[email protected])
|
| 6481 |
+
'@octokit/plugin-request-log': 5.3.1(@octokit/[email protected])
|
| 6482 |
+
'@octokit/plugin-rest-endpoint-methods': 13.2.6(@octokit/[email protected])
|
| 6483 |
+
|
| 6484 |
+
'@octokit/[email protected]':
|
| 6485 |
+
dependencies:
|
| 6486 |
+
'@octokit/openapi-types': 22.2.0
|
| 6487 |
+
|
| 6488 |
'@openrouter/[email protected]([email protected])':
|
| 6489 |
dependencies:
|
| 6490 |
'@ai-sdk/provider': 0.0.12
|
|
|
|
| 7652 |
safe-buffer: 5.1.2
|
| 7653 |
optional: true
|
| 7654 |
|
| 7655 |
+
[email protected]: {}
|
| 7656 |
+
|
| 7657 | |
| 7658 |
|
| 7659 | |
|
|
|
| 10096 |
dependencies:
|
| 10097 |
destr: 2.0.3
|
| 10098 |
node-fetch-native: 1.6.4
|
| 10099 |
+
ufo: 1.5.4
|
| 10100 |
|
| 10101 | |
| 10102 |
dependencies:
|
|
|
|
| 11126 |
|
| 11127 | |
| 11128 |
|
|
|
|
|
|
|
| 11129 | |
| 11130 |
|
| 11131 | |
|
|
|
| 11244 |
unist-util-is: 6.0.0
|
| 11245 |
unist-util-visit-parents: 6.0.1
|
| 11246 |
|
| 11247 |
+
[email protected]: {}
|
| 11248 |
+
|
| 11249 | |
| 11250 |
|
| 11251 |