diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 1dd4569..156537e 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -109,7 +109,6 @@ jobs: runs-on: ubuntu-latest environment: pypi permissions: - contents: write id-token: write steps: - name: Download dist artifacts @@ -118,18 +117,25 @@ jobs: name: dist path: dist/ + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + # No API token needed - uses OIDC trusted publishing. + # Configure at: https://pypi.org/manage/project/cptr/settings/publishing/ + + github-release-assets: + needs: build + if: needs.build.outputs.skip != 'true' + runs-on: ubuntu-latest + permissions: + contents: write + steps: - name: Download release artifacts uses: actions/download-artifact@v4 with: name: release-assets path: release-assets/ - - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - # No API token needed - uses OIDC trusted publishing. - # Configure at: https://pypi.org/manage/project/cptr/settings/publishing/ - - - name: Upload GitHub release artifacts + - name: Attach GitHub release artifacts env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} VERSION: ${{ needs.build.outputs.version }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 85f904f..e90f12a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.7.7] - 2026-07-06 + +### Added + +- 🔍 **SearXNG web search.** Choose SearXNG in Web settings and connect Computer to your own search instance. + ## [0.7.6] - 2026-07-06 ### Added diff --git a/cptr/frontend/src/lib/components/Admin/Web.svelte b/cptr/frontend/src/lib/components/Admin/Web.svelte index 1c3dce5..cc84ff9 100644 --- a/cptr/frontend/src/lib/components/Admin/Web.svelte +++ b/cptr/frontend/src/lib/components/Admin/Web.svelte @@ -21,6 +21,7 @@ let perplexityBaseUrl = $state(''); let firecrawlSearchKey = $state(''); let firecrawlSearchBaseUrl = $state('https://api.firecrawl.dev'); + let searxngBaseUrl = $state(''); let ccKey = $state(''); let ccBaseUrl = $state(''); let ccModel = $state(''); @@ -51,6 +52,7 @@ firecrawlSearchKey = (config['web.firecrawl_api_key'] as string) || ''; firecrawlSearchBaseUrl = (config['web.firecrawl_base_url'] as string) || 'https://api.firecrawl.dev'; + searxngBaseUrl = (config['web.searxng_base_url'] as string) || ''; ccKey = (config['web.chat_completions_api_key'] as string) || ''; ccBaseUrl = (config['web.chat_completions_base_url'] as string) || ''; ccModel = (config['web.chat_completions_model'] as string) || ''; @@ -87,6 +89,7 @@ 'web.perplexity_base_url': perplexityBaseUrl, 'web.firecrawl_api_key': firecrawlSearchKey, 'web.firecrawl_base_url': firecrawlSearchBaseUrl, + 'web.searxng_base_url': searxngBaseUrl, 'web.chat_completions_api_key': ccKey, 'web.chat_completions_base_url': ccBaseUrl, 'web.chat_completions_model': ccModel, @@ -165,6 +168,7 @@ + @@ -257,6 +261,22 @@ {$t('admin.browserFirecrawlBaseUrlHint')}

+ {:else if searchProvider === 'searxng'} +
+ + +

+ {$t('admin.webSearxngHint')} +

+
{:else if searchProvider === 'perplexity'}