From 151dc4b7c7ee7292a669b04801651af4258469ca Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 13:49:48 +0000 Subject: [PATCH 1/7] Initial plan From 13f4d5712d5506acb4636134dd86712cebf8b82c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 13:57:50 +0000 Subject: [PATCH 2/7] Add Claude Opus 4.6 and Sonnet 4.6 to default models Agent-Logs-Url: https://github.com/TaiLaiCai/obsidian-github-copilot/sessions/77019e04-c8b3-49d4-823e-8e3f44933344 Co-authored-by: TaiLaiCai <67277880+TaiLaiCai@users.noreply.github.com> --- src/copilot-chat/store/slices/message.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/copilot-chat/store/slices/message.tsx b/src/copilot-chat/store/slices/message.tsx index d1c81fc..164ce7f 100644 --- a/src/copilot-chat/store/slices/message.tsx +++ b/src/copilot-chat/store/slices/message.tsx @@ -50,6 +50,8 @@ export const defaultModels: ModelOption[] = [ { label: "Claude Haiku 4.5", value: "claude-haiku-4.5" }, { label: "Claude Sonnet 4", value: "claude-sonnet-4" }, { label: "Claude Sonnet 4.5", value: "claude-sonnet-4.5" }, + { label: "Claude Opus 4.6", value: "claude-opus-4.6" }, + { label: "Claude Sonnet 4.6", value: "claude-sonnet-4.6" }, { label: "Gemini 2.5 Pro", value: "gemini-2.5-pro" }, { label: "Gemini 3 Pro", value: "gemini-3-pro-preview" }, { label: "Gemini 3 Flash", value: "gemini-3-flash-preview" }, From b8368911b59935d58052089964275d925ce3a699 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 14:21:54 +0000 Subject: [PATCH 3/7] Initial plan From b846dd68e2e3703d54a5a169c9a2b5452e3a88df Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 14:33:55 +0000 Subject: [PATCH 4/7] Package build output into dist/ with main.js, manifest.json, and styles.css Agent-Logs-Url: https://github.com/TaiLaiCai/obsidian-github-copilot/sessions/590a76b5-2cd1-4e2a-9936-108dad3071fc Co-authored-by: TaiLaiCai <67277880+TaiLaiCai@users.noreply.github.com> --- .github/workflows/release.yaml | 2 +- .gitignore | 3 +++ esbuild.config.mjs | 18 +++++++++++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0e1c60b..b8ac2f0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,4 +31,4 @@ jobs: gh release create "$tag" \ --title="$tag" \ --draft \ - main.js manifest.json styles.css \ No newline at end of file + dist/main.js dist/manifest.json dist/styles.css \ No newline at end of file diff --git a/.gitignore b/.gitignore index ff7f6af..123c7cf 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,9 @@ node_modules # They should be uploaded to GitHub releases instead. main.js +# Build output +dist/ + # Exclude sourcemaps *.map diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 107ee47..d5a094d 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -1,6 +1,11 @@ import esbuild from "esbuild"; import process from "process"; import builtins from "builtin-modules"; +import { copyFileSync, mkdirSync } from "fs"; +import { resolve, dirname } from "path"; +import { fileURLToPath } from "url"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); const banner = `/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD @@ -9,6 +14,7 @@ if you want to view the source, please visit the github repository of this plugi `; const prod = process.argv[2] === "production"; +const outdir = prod ? "dist" : "."; const context = await esbuild.context({ banner: { @@ -37,7 +43,7 @@ const context = await esbuild.context({ logLevel: "info", sourcemap: prod ? false : "inline", treeShaking: true, - outfile: "main.js", + outfile: `${outdir}/main.js`, loader: { ".tiktoken": "text", ".noindex": "text", @@ -47,7 +53,17 @@ const context = await esbuild.context({ }); if (prod) { + mkdirSync(resolve(__dirname, "dist"), { recursive: true }); await context.rebuild(); + copyFileSync( + resolve(__dirname, "manifest.json"), + resolve(__dirname, "dist/manifest.json"), + ); + copyFileSync( + resolve(__dirname, "styles.css"), + resolve(__dirname, "dist/styles.css"), + ); + console.log("Packaged: dist/main.js, dist/manifest.json, dist/styles.css"); process.exit(0); } else { await context.watch(); From 032416406407cc9d30172b76c3ccb09069f27ac6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 14:48:38 +0000 Subject: [PATCH 5/7] Initial plan From b62d6d109d7359cf38477b65773b3ed4f3b06660 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 14:55:43 +0000 Subject: [PATCH 6/7] Package three plugin files (main.js, manifest.json, styles.css) into a zip archive for release download Agent-Logs-Url: https://github.com/TaiLaiCai/obsidian-github-copilot/sessions/f3e9266b-2956-4461-9825-890dcd984d71 Co-authored-by: TaiLaiCai <67277880+TaiLaiCai@users.noreply.github.com> --- .github/workflows/release.yaml | 2 +- esbuild.config.mjs | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b8ac2f0..91addea 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,4 +31,4 @@ jobs: gh release create "$tag" \ --title="$tag" \ --draft \ - dist/main.js dist/manifest.json dist/styles.css \ No newline at end of file + dist/main.js dist/manifest.json dist/styles.css dist/obsidian-github-copilot.zip \ No newline at end of file diff --git a/esbuild.config.mjs b/esbuild.config.mjs index d5a094d..19f1c18 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -4,6 +4,7 @@ import builtins from "builtin-modules"; import { copyFileSync, mkdirSync } from "fs"; import { resolve, dirname } from "path"; import { fileURLToPath } from "url"; +import AdmZip from "adm-zip"; const __dirname = dirname(fileURLToPath(import.meta.url)); @@ -63,7 +64,14 @@ if (prod) { resolve(__dirname, "styles.css"), resolve(__dirname, "dist/styles.css"), ); - console.log("Packaged: dist/main.js, dist/manifest.json, dist/styles.css"); + const zip = new AdmZip(); + zip.addLocalFile(resolve(__dirname, "dist/main.js")); + zip.addLocalFile(resolve(__dirname, "dist/manifest.json")); + zip.addLocalFile(resolve(__dirname, "dist/styles.css")); + zip.writeZip(resolve(__dirname, "dist/obsidian-github-copilot.zip")); + console.log( + "Packaged: dist/main.js, dist/manifest.json, dist/styles.css, dist/obsidian-github-copilot.zip", + ); process.exit(0); } else { await context.watch(); From 4ffa75ab371590bda3cf4144684102ed87286512 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 15:07:28 +0000 Subject: [PATCH 7/7] Add standalone download links to README for packaged plugin files Agent-Logs-Url: https://github.com/TaiLaiCai/obsidian-github-copilot/sessions/54461f14-c2aa-4df0-96fb-6546f3a01752 Co-authored-by: TaiLaiCai <67277880+TaiLaiCai@users.noreply.github.com> --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 7a53299..36c53d5 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,20 @@ Use **GitHub Copilot** in the Obsidian editor. This plugin is a bridge between t - A GitHub Copilot subscription (https://copilot.github.com/) - Network connection to send and receive data from the GitHub Copilot service +## 📦 Download + +You can download the latest release as a single zip file containing all plugin files (`main.js`, `manifest.json`, `styles.css`): + +[![Download Latest Release](https://img.shields.io/github/v/release/TaiLaiCai/obsidian-github-copilot?label=Download%20Latest%20Release&style=for-the-badge)](https://github.com/TaiLaiCai/obsidian-github-copilot/releases/latest/download/obsidian-github-copilot.zip) + +Or download individual files from the [latest release page](https://github.com/TaiLaiCai/obsidian-github-copilot/releases/latest): + +| File | Download Link | +|------|---------------| +| `main.js` | [Download](https://github.com/TaiLaiCai/obsidian-github-copilot/releases/latest/download/main.js) | +| `manifest.json` | [Download](https://github.com/TaiLaiCai/obsidian-github-copilot/releases/latest/download/manifest.json) | +| `styles.css` | [Download](https://github.com/TaiLaiCai/obsidian-github-copilot/releases/latest/download/styles.css) | + ## ⚙️ Installation 1. Install the plugin via the Obsidian community plugins browser.