From 17c70f58a232b268551868a91d534d59b8d4cdb8 Mon Sep 17 00:00:00 2001 From: haadfida Date: Thu, 5 Nov 2026 12:59:02 +0500 Subject: [PATCH] chore: set publisher, repo metadata, README install/demo/architecture, add CI --- .github/workflows/ci.yml | 19 +++++++++++++++++++ README.md | 39 ++++++++++++++++++++++++--------------- docs/record-demo.md | 12 ++++++++++++ package.json | 8 ++++---- 4 files changed, 59 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 docs/record-demo.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..820c70c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - run: npm ci + - run: npm run compile + - run: npm run lint diff --git a/README.md b/README.md index b6ced2d..c279630 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,19 @@ An autonomous AI pair programmer for VS Code • Rich task & status webviews – cancel / retry individual steps. ## 📦 Installation -1. Ensure you have **Node.js ≥ 18** and **VS Code ≥ 1.85**. -2. Install from the VSIX in the repo root: +1. Ensure you have **VS Code ≥ 1.85**. +2. Download the `.vsix` from GitHub Releases: +3. Install it: ```bash - code --install-extension code-companion-0.1.0.vsix + code --install-extension code-companion-.vsix ``` -3. Reload VS Code and look for the `code-companion` icon in the Activity Bar. + (or in VS Code: Extensions view, `...` menu, **Install from VSIX...**) +4. Reload VS Code and look for the `CodeCompanion` icon in the Activity Bar. + +### Demo +![CodeCompanion demo](docs/demo.gif) + + ## 🚀 Quick Start 1. Open any workspace. @@ -40,17 +47,19 @@ Set these in your user or workspace `settings.json`: ## 🏗 Architecture Overview ```mermaid -graph TD; - User["VS Code UI"] -->|Commands & prompts| Manager; - Manager --> Planner; - Planner --> Executor; - Executor -->|Reads| ContextAnalyzer; - Executor -->|LLM calls| LLMProvider; - LLMProvider --> Ollama & OpenAI; - Executor -->|Edits| Workspace; - Executor -->|Safety| SafetyValidator; - Manager --> UIWebviews; - ContextAnalyzer --> Git & RemoteDocs; +graph TD + UI["VS Code UI
(commands, chat and task webviews, status bar)"] -->|prompts| Manager["CodeCompanionManager"] + Manager --> Planner["Task Planner"] + Planner --> Executor["Code Executor"] + Executor -->|reads| Context["Context Analyzer"] + Context --> Git["Git / GitHub"] + Context --> RemoteDocs["Remote Docs"] + Executor -->|LLM calls| LLM["LLM Provider"] + LLM --> Ollama["Ollama"] + LLM --> OpenAI["OpenAI-compatible"] + Executor -->|validates| Safety["Safety Validator"] + Executor -->|edits| Workspace["Workspace files"] + Manager --> UI ``` ## 📂 Project Structure (depth 2) diff --git a/docs/record-demo.md b/docs/record-demo.md new file mode 100644 index 0000000..c91c08d --- /dev/null +++ b/docs/record-demo.md @@ -0,0 +1,12 @@ +# Recording the demo GIF + +Output file: `docs/demo.gif` (referenced from the README). + +1. Launch the extension (F5 Extension Development Host, or install the `.vsix`) and open a small sample web project. +2. Open the CodeCompanion sidebar from the Activity Bar. +3. In the chat view, type `Add dark-mode toggle` and press Enter. +4. Wait for the generated execution plan and keep it on screen for a few seconds so the steps are readable. +5. Apply the plan and show the resulting diff / edited files. +6. Keep the recording under ~30 seconds, about 1000px wide. + +Suggested tools: macOS screen recording + `ffmpeg`, or LICEcap / ScreenToGif. Save as `docs/demo.gif` and commit. diff --git a/package.json b/package.json index 4353c01..d3d8745 100644 --- a/package.json +++ b/package.json @@ -222,13 +222,13 @@ "chalk": "^5.3.0", "@octokit/rest": "^20.0.0" }, - "publisher": "codecompanion", + "publisher": "haadfida", "repository": { "type": "git", - "url": "https://github.com/your-username/code-companion.git" + "url": "https://github.com/haadfida/code-companion" }, "bugs": { - "url": "https://github.com/your-username/code-companion/issues" + "url": "https://github.com/haadfida/code-companion/issues" }, - "homepage": "https://github.com/your-username/code-companion#readme" + "homepage": "https://github.com/haadfida/code-companion#readme" } \ No newline at end of file