2 Commits

Author SHA1 Message Date
github-actions[bot]
608d9338a8 chore: release version 0.0.5 2024-12-31 22:28:11 +00:00
Anirban Kar
67d984c52c fix: hotfix auto select starter template works without github token #release (#959)
* fix: hotfix starter template fix, updated header link to use navigate

* template auth fix

* updated changelog script
2025-01-01 03:57:55 +05:30
5 changed files with 24 additions and 72 deletions

View File

@@ -137,7 +137,7 @@ while IFS= read -r commit_line; do
fi fi
CATEGORIES["$CATEGORY"]=1 CATEGORIES["$CATEGORY"]=1
COMMITS_BY_CATEGORY["$CATEGORY"]+="* ${PR_TITLE#*: } ([#$PR_NUM](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/$PR_NUM)) by [@$GITHUB_USERNAME](https://github.com/$GITHUB_USERNAME)"$'\n' COMMITS_BY_CATEGORY["$CATEGORY"]+="* ${PR_TITLE#*: } ([#$PR_NUM](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/$PR_NUM)) by @$GITHUB_USERNAME"$'\n'
else else
COMMITS_BY_CATEGORY["$CATEGORY"]+="* ${PR_TITLE#*: } ([#$PR_NUM](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/$PR_NUM))"$'\n' COMMITS_BY_CATEGORY["$CATEGORY"]+="* ${PR_TITLE#*: } ([#$PR_NUM](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/$PR_NUM))"$'\n'
fi fi
@@ -165,7 +165,7 @@ while IFS= read -r commit_line; do
CATEGORIES["$CATEGORY"]=1 CATEGORIES["$CATEGORY"]=1
COMMIT_TITLE=${COMMIT_MSG%% (#*} # Remove the PR number suffix COMMIT_TITLE=${COMMIT_MSG%% (#*} # Remove the PR number suffix
COMMIT_TITLE=${COMMIT_TITLE#*: } # Remove the type prefix COMMIT_TITLE=${COMMIT_TITLE#*: } # Remove the type prefix
COMMITS_BY_CATEGORY["$CATEGORY"]+="* $COMMIT_TITLE ([#$PR_NUM](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/$PR_NUM)) by [@$GITHUB_USERNAME](https://github.com/$GITHUB_USERNAME)"$'\n' COMMITS_BY_CATEGORY["$CATEGORY"]+="* $COMMIT_TITLE ([#$PR_NUM](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/$PR_NUM)) by @$GITHUB_USERNAME"$'\n'
else else
COMMIT_TITLE=${COMMIT_MSG%% (#*} # Remove the PR number suffix COMMIT_TITLE=${COMMIT_MSG%% (#*} # Remove the PR number suffix
COMMIT_TITLE=${COMMIT_TITLE#*: } # Remove the type prefix COMMIT_TITLE=${COMMIT_TITLE#*: } # Remove the type prefix
@@ -196,7 +196,7 @@ while IFS= read -r commit_line; do
CATEGORIES["$CATEGORY"]=1 CATEGORIES["$CATEGORY"]=1
COMMIT_TITLE=${COMMIT_MSG#*: } # Remove the type prefix COMMIT_TITLE=${COMMIT_MSG#*: } # Remove the type prefix
COMMITS_BY_CATEGORY["$CATEGORY"]+="* $COMMIT_TITLE (${HASH:0:7}) by [@$GITHUB_USERNAME](https://github.com/$GITHUB_USERNAME)"$'\n' COMMITS_BY_CATEGORY["$CATEGORY"]+="* $COMMIT_TITLE (${HASH:0:7}) by @$GITHUB_USERNAME"$'\n'
else else
# Fallback to git author name if no GitHub username found # Fallback to git author name if no GitHub username found
AUTHOR_NAME=$(git show -s --format='%an' "$HASH") AUTHOR_NAME=$(git show -s --format='%an' "$HASH")

View File

@@ -88,6 +88,8 @@ jobs:
id: changelog id: changelog
env: env:
NEW_VERSION: ${{ steps.bump_version.outputs.new_version }} NEW_VERSION: ${{ steps.bump_version.outputs.new_version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: .github/scripts/generate-changelog.sh run: .github/scripts/generate-changelog.sh
- name: Get the latest commit hash and version tag - name: Get the latest commit hash and version tag

View File

@@ -2,6 +2,7 @@ import ignore from 'ignore';
import type { ProviderInfo } from '~/types/model'; import type { ProviderInfo } from '~/types/model';
import type { Template } from '~/types/template'; import type { Template } from '~/types/template';
import { STARTER_TEMPLATES } from './constants'; import { STARTER_TEMPLATES } from './constants';
import Cookies from 'js-cookie';
const starterTemplateSelectionPrompt = (templates: Template[]) => ` const starterTemplateSelectionPrompt = (templates: Template[]) => `
You are an experienced developer who helps people choose the best starter template for their projects. You are an experienced developer who helps people choose the best starter template for their projects.
@@ -116,14 +117,20 @@ const getGitHubRepoContent = async (
const baseUrl = 'https://api.github.com'; const baseUrl = 'https://api.github.com';
try { try {
// Fetch contents of the path const token = Cookies.get('githubToken') || import.meta.env.VITE_GITHUB_ACCESS_TOKEN;
const response = await fetch(`${baseUrl}/repos/${repoName}/contents/${path}`, {
headers: { const headers: HeadersInit = {
Accept: 'application/vnd.github.v3+json', Accept: 'application/vnd.github.v3+json',
};
// Add your GitHub token if needed // Add your GitHub token if needed
Authorization: 'token ' + import.meta.env.VITE_GITHUB_ACCESS_TOKEN, if (token) {
}, headers.Authorization = 'token ' + token;
}
// Fetch contents of the path
const response = await fetch(`${baseUrl}/repos/${repoName}/contents/${path}`, {
headers,
}); });
if (!response.ok) { if (!response.ok) {
@@ -156,10 +163,7 @@ const getGitHubRepoContent = async (
} else if (item.type === 'file') { } else if (item.type === 'file') {
// Fetch file content // Fetch file content
const fileResponse = await fetch(item.url, { const fileResponse = await fetch(item.url, {
headers: { headers,
Accept: 'application/vnd.github.v3+json',
Authorization: 'token ' + import.meta.env.VITE_GITHUB_ACCESS_TOKEN,
},
}); });
const fileData: any = await fileResponse.json(); const fileData: any = await fileResponse.json();
const content = atob(fileData.content); // Decode base64 content const content = atob(fileData.content); // Decode base64 content

View File

@@ -1,68 +1,14 @@
# 🚀 Release v0.0.4 # 🚀 Release v0.0.5
## What's Changed 🌟 ## What's Changed 🌟
### 🔄 Changes since v0.0.3 ### 🔄 Changes since v0.0.4
### ✨ Features
* add xAI grok-2-1212 model ([#800](https://github.com/stackblitz-labs/bolt.diy/pull/800))
* providers list is now 2 columns (75ec49b) by Dustin Loring
* enhanced Terminal Error Handling and Alert System ([#797](https://github.com/stackblitz-labs/bolt.diy/pull/797))
* add Starter template menu in homepage ([#884](https://github.com/stackblitz-labs/bolt.diy/pull/884))
* catch errors from web container preview and show in actionable alert so user can send them to AI for fixing ([#856](https://github.com/stackblitz-labs/bolt.diy/pull/856))
* redact file contents from chat and put latest files into system prompt ([#904](https://github.com/stackblitz-labs/bolt.diy/pull/904))
* added Automatic Code Template Detection And Import ([#867](https://github.com/stackblitz-labs/bolt.diy/pull/867))
* added hyperbolic llm models ([#943](https://github.com/stackblitz-labs/bolt.diy/pull/943))
### 🐛 Bug Fixes ### 🐛 Bug Fixes
* chat title character restriction (e064803) by Dustin Loring * hotfix auto select starter template works without github token #release ([#959](https://github.com/stackblitz-labs/bolt.diy/pull/959)) by @thecodacus
* fixed model not loading/working, even after baseUrl set in .env file ([#816](https://github.com/stackblitz-labs/bolt.diy/pull/816))
* added wait till terminal prompt for bolt shell execution ([#789](https://github.com/stackblitz-labs/bolt.diy/pull/789))
* fixed console error for SettingsWIndow & Removed ts-nocheck ([#714](https://github.com/stackblitz-labs/bolt.diy/pull/714))
* add Message Processing Throttling to Prevent Browser Crashes ([#848](https://github.com/stackblitz-labs/bolt.diy/pull/848))
* provider menu dropdown fix (ghost providers) ([#862](https://github.com/stackblitz-labs/bolt.diy/pull/862))
* ollama provider module base url hotfix for docker ([#863](https://github.com/stackblitz-labs/bolt.diy/pull/863))
* check for updates does not look for commit.json now ([#861](https://github.com/stackblitz-labs/bolt.diy/pull/861))
* detect and remove markdown block syntax that llms sometimes hallucinate for file actions ([#886](https://github.com/stackblitz-labs/bolt.diy/pull/886))
* add defaults for LMStudio to work out of the box ([#928](https://github.com/stackblitz-labs/bolt.diy/pull/928))
* import folder filtering ([#939](https://github.com/stackblitz-labs/bolt.diy/pull/939))
* refresh model list after api key changes ([#944](https://github.com/stackblitz-labs/bolt.diy/pull/944))
* better model loading ui feedback and model list update ([#954](https://github.com/stackblitz-labs/bolt.diy/pull/954))
* updated logger and model caching minor bugfix #release ([#895](https://github.com/stackblitz-labs/bolt.diy/pull/895))
### 📚 Documentation
* simplified setup ([#817](https://github.com/stackblitz-labs/bolt.diy/pull/817))
* toc for readme (de64007) by Dustin Loring
* faq style change, toc added to index (636f87f) by Dustin Loring
* setup updated (ab5cde3) by Dustin Loring
* updated Docs ([#845](https://github.com/stackblitz-labs/bolt.diy/pull/845))
* updated download link ([#850](https://github.com/stackblitz-labs/bolt.diy/pull/850))
* updated env.example of OLLAMA & LMSTUDIO base url ([#877](https://github.com/stackblitz-labs/bolt.diy/pull/877))
### ♻️ Code Refactoring
* updated vite config to inject add version metadata into the app on build ([#841](https://github.com/stackblitz-labs/bolt.diy/pull/841))
* refactored LLM Providers: Adapting Modular Approach ([#832](https://github.com/stackblitz-labs/bolt.diy/pull/832))
### ⚙️ CI
* updated the docs ci to only trigger if any files changed in the docs folder ([#849](https://github.com/stackblitz-labs/bolt.diy/pull/849))
* improved change-log generation script and cleaner release ci action ([#896](https://github.com/stackblitz-labs/bolt.diy/pull/896))
### 🔍 Other Changes
* fix hotfix for version metadata issue ([#853](https://github.com/stackblitz-labs/bolt.diy/pull/853))
* feat; data tab added to the settings (1f938fc) by Dustin Loring
## 📈 Stats ## 📈 Stats
**Full Changelog**: [`v0.0.3..v0.0.4`](https://github.com/stackblitz-labs/bolt.diy/compare/v0.0.3...v0.0.4) **Full Changelog**: [`v0.0.4..v0.0.5`](https://github.com/stackblitz-labs/bolt.diy/compare/v0.0.4...v0.0.5)

View File

@@ -5,7 +5,7 @@
"license": "MIT", "license": "MIT",
"sideEffects": false, "sideEffects": false,
"type": "module", "type": "module",
"version": "0.0.4", "version": "0.0.5",
"scripts": { "scripts": {
"deploy": "npm run build && wrangler pages deploy", "deploy": "npm run build && wrangler pages deploy",
"build": "remix vite:build", "build": "remix vite:build",