Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 28 additions & 21 deletions .github/workflows/deploy-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ jobs:
run: |
echo "Cleaning up build artifacts..."

# Remove .vite directory (Vite's internal build manifest - not needed)
if [ -d "dist/.vite" ]; then
echo "πŸ—‘οΈ Removing .vite directory..."
rm -rf dist/.vite
fi

# Remove .vitepress directory if it exists
if [ -d "dist/.vitepress" ]; then
echo "πŸ—‘οΈ Removing .vitepress directory..."
Expand All @@ -124,20 +130,13 @@ jobs:
find dist -name ".DS_Store" -type f -delete 2>/dev/null || true
find dist -name "*.log" -type f -delete 2>/dev/null || true

# Verify only one manifest.json exists
MANIFEST_COUNT=$(find dist -name "manifest.json" | wc -l)
echo "Found $MANIFEST_COUNT manifest.json file(s)"

if [ "$MANIFEST_COUNT" -eq 0 ]; then
# Verify the extension manifest exists (only check root manifest)
if [ ! -f "dist/manifest.json" ]; then
echo "❌ ERROR: No manifest.json found in dist/"
exit 1
fi

if [ "$MANIFEST_COUNT" -gt 1 ]; then
echo "❌ ERROR: Multiple manifest.json files found:"
find dist -name "manifest.json"
exit 1
fi
echo "βœ… Found dist/manifest.json"

# Display build size
DIST_SIZE=$(du -sh dist | cut -f1)
Expand Down Expand Up @@ -167,8 +166,8 @@ jobs:
echo "❌ EDGE_CLIENT_ID secret is not set"
exit 1
fi
if [ -z "${{ secrets.EDGE_CLIENT_SECRET }}" ]; then
echo "❌ EDGE_CLIENT_SECRET secret is not set"
if [ -z "${{ secrets.EDGE_API_KEY }}" ]; then
echo "❌ EDGE_API_KEY secret is not set"
exit 1
fi
echo "βœ… All secrets are configured"
Expand All @@ -183,22 +182,30 @@ jobs:
- name: πŸš€ Upload to Edge Add-ons
# Only deploy on push to main (not on PRs)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: AhmedV20/edge-addon@v1
uses: wdzeng/edge-addon@v2
with:
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
client-id: ${{ secrets.EDGE_CLIENT_ID }}
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
zip-path: ${{ steps.create-zip.outputs.zip-name }}

- name: βœ… Deployment success
api-key: ${{ secrets.EDGE_API_KEY }}
client-id: ${{ secrets.EDGE_CLIENT_ID }}
upload-only: true
notes-for-certification: |
v${{ needs.validate.outputs.version }} release
- Bug fixes and performance improvements
- CSS isolation fixes
- GitHub API optimization

GitHub: https://github.com/AhmedV20/codemind

- name: βœ… Upload success
if: success()
run: |
echo "βœ… Successfully deployed v${{ needs.validate.outputs.version }} to Edge Add-ons!"
echo "πŸ”— Download artifact from GitHub Actions for manual verification"
echo "βœ… Successfully uploaded v${{ needs.validate.outputs.version }} to Edge Add-ons!"
echo "⏳ Publish manually from Edge Partner Center dashboard"
echo "πŸ”— https://partner.microsoft.com/en-us/dashboard/microsoftedge/overview"

- name: ❌ Deployment failed
if: failure()
run: |
echo "❌ Deployment failed! Check the logs above."
echo "❌ Upload failed! Check the logs above."
echo "πŸ’‘ The build artifact may still be available for manual upload"
29 changes: 22 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div align="center">

[![Stars](https://img.shields.io/github/stars/AhmedV20/codemind?style=social)](https://github.com/AhmedV20/codemind/stargazers)
[![Version](https://img.shields.io/badge/version-1.1.0-blue)](https://github.com/AhmedV20/codemind/releases)
[![Version](https://img.shields.io/badge/version-1.1.1-blue)](https://github.com/AhmedV20/codemind/releases)
[![Build](https://img.shields.io/github/actions/workflow/status/AhmedV20/codemind/ci.yml?label=CI/Build)](https://github.com/AhmedV20/codemind/actions)
[![Privacy](https://img.shields.io/badge/Privacy-Protected-green)](PRIVACY.md)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
Expand All @@ -27,12 +27,14 @@
<tr>
<td align="center" width="50%">
<br>
<a href="https://microsoftedge.microsoft.com/addons/detail/hfggelncfoaompalbnkgbincglagmbnj">
<img src="https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_48x48.png" width="65">
<br>
<img src="https://img.shields.io/badge/Edge-Coming_Soon-0078D7?style=for-the-badge&logo=microsoftedge&logoColor=white" alt="Edge">
<img src="https://img.shields.io/badge/Edge-Install_Now-0078D7?style=for-the-badge&logo=microsoftedge&logoColor=white" alt="Edge">
</a>
<br><br>
<p><b>πŸ”„ Under Review</b></p>
<p>Our Edge extension is currently being reviewed by Microsoft. Check back soon!</p>
<p><b>βœ… Available Now</b></p>
<p>Get CodeMind from the Microsoft Edge Add-ons Store!</p>
</td>
<td align="center" width="50%">
<br>
Expand All @@ -56,14 +58,27 @@

### πŸ’‘ What is CodeMind?

CodeMind is a browser extension that uses AI to analyze GitHub repositories. It fetches the repository structure, README, dependencies, and key files, then generates a comprehensive summary explaining what the project does, who it's for, and how to use it.
CodeMind is a powerful browser extension that uses AI to instantly understand any GitHub repository. Simply click a button and get:

- **Smart Summaries** β€” Understand what the project does, who it's for, and its key features
- **Code Structure Analysis** β€” Learn how the codebase is organized
- **Tech Stack Detection** β€” See all languages, frameworks, and dependencies at a glance
- **Interactive Q&A** β€” Ask follow-up questions and get detailed answers about any part of the code

<!-- Demo GIF - Replace with your actual demo recording
<p align="center">
<img src="docs/demo.gif" alt="CodeMind Demo" width="700">
<br>
<em>Analyze any GitHub repository in seconds</em>
</p>
-->

**How to use:**

1. Install the extension from your browser's store (or manually - see the [manual installation](#-manual-installation) guide)
1. Install from the [Edge Add-ons Store](https://microsoftedge.microsoft.com/addons/detail/hfggelncfoaompalbnkgbincglagmbnj) or [manually](#-manual-installation)
2. Navigate to any GitHub repository
3. Click the **CodeMind** button next to the Insights tab
4. Configure your AI provider in the settings panel
4. Configure your AI provider (Gemini, Claude, HuggingFace, or OpenRouter)
5. Click **Analyze Repository** to get your summary

---
Expand Down
Loading