diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 4d07ddaba..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,13 +0,0 @@ -# These are supported funding model platforms - -github: enricoros # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 0089543f2..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: 🐞 Bug Report -description: Create a report to help us improve -title: '[BUG]' -labels: [ 'type: bug' ] -body: - - type: markdown - attributes: - value: Thank you for reporting a bug. - - type: textarea - attributes: - label: Description - description: (required) Please provide a clear description. Please also provide the steps to reproduce. - placeholder: 'Concise description + steps to reproduce.' - validations: - required: true - - type: textarea - attributes: - label: Device and browser - description: '(required) Please specify your Mobile/Desktop device, OS version, browser.' - placeholder: 'Device: (e.g., iPhone 16, Pixel 9, PC, Macbook...), OS: (e.g., iOS 17, Windows 12), Browser: (e.g., Chrome 119, Safari 18, Firefox..)' - validations: - required: true - - type: textarea - attributes: - label: Screenshots and more - placeholder: 'Attach screenshots, or add any additional context here.' - - type: checkboxes - attributes: - label: Willingness to Contribute - description: We appreciate contributions - would you be willing to submit a pull request? - options: - - label: '🙋‍♂️ Yes, I would like to contribute a fix.' diff --git a/.github/ISSUE_TEMPLATE/maintainers-release.md b/.github/ISSUE_TEMPLATE/maintainers-release.md deleted file mode 100644 index a6b781ab8..000000000 --- a/.github/ISSUE_TEMPLATE/maintainers-release.md +++ /dev/null @@ -1,132 +0,0 @@ ---- -name: Maintainers-Release -about: Maintainers -title: Release 1.2.3 -labels: '' -assignees: enricoros - ---- - -## Release checklist: - -- [x] Create a new [Release Issue](https://github.com/enricoros/big-AGI/issues/new?assignees=enricoros&projects=enricoros/4&template=maintainers-release.md&title=Release+1.2.3) - - [ ] Replace 1.1.0 with the _former_ release, and _1.2.3_ with THIS -- [ ] Update the [Roadmap](https://github.com/users/enricoros/projects/4/views/2) calling out shipped features -- [ ] Create and update a [Milestone](https://github.com/enricoros/big-agi/milestones) for the release - - [ ] Assign this task - - [ ] Assign all the shipped roadmap Issues - - [ ] Assign the relevant [recently closed Isssues](https://github.com/enricoros/big-agi/issues?q=is%3Aclosed+sort%3Aupdated-desc) -- Code changes: - - [ ] Create a release branch 'release-x.y.z': `git checkout -b release-1.2.3` - - [ ] Create a temporary tag `git tag v1.2.3 && git push opensource --tags` - - [ ] Create a [New Draft GitHub Release](https://github.com/enricoros/big-agi/releases/new), and generate the automated changelog (for new contributors) - - [ ] Update the release version in package.json, and `npm i` - - [ ] Update the in-app News version number - - [ ] Update in-app News [src/apps/news/news.data.tsx](/src/apps/news/news.data.tsx) - - [ ] Update in-app Cover graphics - - [ ] Update the README.md with the new release - - [ ] Copy the highlights to the [docs/changelog.md](/docs/changelog.md) -- Release: - - [ ] merge onto main `git checkout main && git merge --no-ff release-1.2.3` - - [ ] re-tag `git tag -f v1.2.3 && git push opensource --tags -f` - - [ ] verify deployment on Vercel - - [ ] verify container on GitHub Packages - - [ ] update the GitHub release - - [ ] push as stable `git push opensource main:main-stable` -- Announce: - - [ ] Discord announcement - - [ ] Twitter announcement - -### Links - -- Milestone: https://github.com/enricoros/big-AGI/milestone/X -- GitHub release: https://github.com/enricoros/big-AGI/releases/tag/v1.2.3 -- Former release task: #... - -## Artifacts Generation - -```markdown -You help me generate the following collateral for the new release of my opensource application called big-AGI. The new release is 1.2.3. -To familiarize yourself with the application, the following are the Website and the GitHub README.md. -``` - -- paste the URL: https://big-agi.com -- drag & drop: [README.md](https://raw.githubusercontent.com/enricoros/big-AGI/main/README.md) - -```markdown -I am announcing a new version, 1.2.3. -For reference, the following was the collateral for 1.1.0 (Discord announcement, GitHub Release, in-app-news file news.data.tsx). -``` - -- paste the former: `discord announcement`, -- `GitHub release`, -- `news.data.tsx`, -- `changelog.md` - -```markdown -The following are the new developments for 1.2.3: - -- ... -- git log --pretty=format:"%h %an %B" v1.1.0..v1.2.3 | clip -``` - -- paste the link to the milestone (closed) and each individual issue (content will be downloaded) -- paste the output of the git log command - -### news.data.tsx - -```markdown -I need the following from you: - -1. a table summarizing all the new features in 1.2.3 with the following columns: 4 words description (exactly what it is), short description, usefulness (what it does for the user), significance, link to the issue number (not the commit)), which will be used for the artifacts later -2. then double-check the git log to see if there are any features of significance that are not in the table -3. then score each feature in terms of importance for users (1-10), relative impact of the feature (1-10, where 10 applies to the broadest user base), and novelty and uniqueness (1-10, where 10 is truly unique and novel from what exists already) -4. then improve the table, in decreasing order of importance for features, fixing any detail that's missing, in particular check if there are commits of significance from a user or developer point of view, which are not contained in the table -5. then I want you then to update the news.data.tsx for the new release -``` - -### release name - -```markdown -please brainstorm 10 different names for this release. see the former names here: https://big-agi.com/blog -``` - -You can follow with 'What do you think of Modelmorphic?' or other selected name - -### cover images - -```markdown -Great, now I need to generate images for this. Before I used the following prompts (2 releases before). - -// An image of a capybara sculpted entirely from black cotton candy, set against a minimalist backdrop with splashes of bright, contrasting sparkles. The capybara is using a computer with split screen made of origami, split keyboard and is wearing origami sunglasses with very different split reflections. Split halves are very contrasting. Close up photography, bokeh, white background. -import coverV113 from '../../../public/images/covers/release-cover-v1.13.0.png'; -// An image of a capybara sculpted entirely from black cotton candy, set against a minimalist backdrop with splashes of bright, contrasting sparkles. The capybara is calling on a 3D origami old-school pink telephone and the camera is zooming on the telephone. Close up photography, bokeh, white background. -import coverV112 from '../../../public/images/covers/release-cover-v1.12.0.png'; - -What can I do now as far as images? Give me 4 prompt ideas with the same style as looks as the former, but different scene or action -``` - -### Readme (and Changelog) - -```markdown -I need you to update the README.md and the with the new release. -Attaching the in-app news, with my language for you to improve on, but keep the tone. -``` - -### GitHub release - -```markdown -Please create the 1.2.3 Release Notes for GitHub, following the format of the 1.1.0 GitHub release notes attached before. -Use a truthful and honest tone, understanding that people's time and attention span is short. -Today is 2024-XXXX-YYYY. -``` - -Now paste-attachment the former release notes (or 1.5.0 which was accurate and great), including the new contributors and -some stats (# of commits, etc.), and roll it for the new release. - -### Discord announcement - -```markdown -Can you generate my 1.2.3 big-AGI discord announcement from the GitHub Release announcement? -Please keep the formatting and stye of the discord announcement for 1.1.0, but with the new messaging above. -``` diff --git a/.github/ISSUE_TEMPLATE/roadmap-request.md b/.github/ISSUE_TEMPLATE/roadmap-request.md deleted file mode 100644 index 4a45933e5..000000000 --- a/.github/ISSUE_TEMPLATE/roadmap-request.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Roadmap request -about: Suggest a roadmap item -title: "[Roadmap]" -labels: '' -assignees: '' - ---- - -**Why** -(replace this text with yours) The reason behind the request - we love it to be framed for "users will be able to do x" rather than quick-aging hype-tech-of-the-day requests - -**Description** -Clear and concise description of what you want to happen. - -**Requirements** -If you can, Please break-down the changes use cases, UX, technology, architecture, etc. -- [ ] ... diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index dd81efd26..000000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,61 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning. - -name: Create and publish Docker images - -on: - push: - branches: - - main - #- main-stable # Disabled as the v* tag is used for stable releases - tags: - - 'v*' # Trigger on version tags (e.g., v1.7.0) - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -jobs: - build-and-push-image: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=raw,value=development,enable=${{ github.ref == 'refs/heads/main' }} - type=raw,value=stable,enable=${{ github.ref == 'refs/heads/main-stable' }} - type=ref,event=tag # Use the tag name as a tag for tag builds - type=semver,pattern={{version}} # Generate semantic versioning tags for tag builds - - - name: Build and push Docker image - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 - with: - context: . - file: Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - build-args: NEXT_PUBLIC_GA4_MEASUREMENT_ID=${{ secrets.GA4_MEASUREMENT_ID }} \ No newline at end of file diff --git a/.github/workflows/dockerhub-deploy.yml b/.github/workflows/dockerhub-deploy.yml new file mode 100644 index 000000000..7bf0bb284 --- /dev/null +++ b/.github/workflows/dockerhub-deploy.yml @@ -0,0 +1,33 @@ +name: Create and publish Docker images to Dockerhub + +on: + push: + tags: + - 'v*' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3.0.0 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3.1.0 + + - name: Login to DockerHub + uses: docker/login-action@v3.0.0 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: pasinduakalpa/big-agi:latest diff --git a/middleware_BASIC_AUTH.ts b/middleware.ts similarity index 100% rename from middleware_BASIC_AUTH.ts rename to middleware.ts