From 691bf16da2275278037d1640235c2362757fda81 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 22 Apr 2026 10:15:22 +0900 Subject: [PATCH] feat: restore github repo URL change command --- package.json | 2 +- src/extension.ts | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7f4d9a9..cbf81f1 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "connect-ai-lab", "displayName": "Connect AI", "description": "100% 로컬 AI 코딩 에이전트 — 파일 생성, 코드 편집, 터미널 실행을 오프라인으로. Ollama + Gemma/Llama/DeepSeek 지원.", - "version": "2.2.13", + "version": "2.2.14", "publisher": "connectailab", "license": "MIT", "icon": "assets/icon.png", diff --git a/src/extension.ts b/src/extension.ts index e2751f2..f659b69 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1016,6 +1016,7 @@ class SidebarChatProvider implements vscode.WebviewViewProvider { const items: any[] = [ { label: `📂 내 지식 목록 (${fileCount}개)`, description: '클릭하면 파일 내용 열기', action: 'listFiles' }, { label: `🔄 깃허브 동기화`, description: `${repoLabel} — 로컬↔깃허브 양방향 최신화`, action: 'githubSync' }, + { label: '🔗 깃허브 주소 변경', description: '연결할 지식 저장소 URL 바꾸기', action: 'changeGithub' }, { label: '📁 폴더 위치 바꾸기', description: `현재: ${brainDir}`, action: 'changeFolder' }, { label: '🌐 지식 지도', description: '내 지식의 연결 관계 시각화', action: 'viewGraph' }, ]; @@ -1086,6 +1087,17 @@ class SidebarChatProvider implements vscode.WebviewViewProvider { await this._syncSecondBrain(); break; } + case 'changeGithub': { + const inputUrl = await vscode.window.showInputBox({ + prompt: '🧠 새로운 깃허브 저장소 주소를 입력하세요', + placeHolder: '예: https://github.com/사용자/레포지토리' + }); + if (inputUrl) { + await vscode.workspace.getConfiguration('connectAiLab').update('secondBrainRepo', inputUrl, vscode.ConfigurationTarget.Global); + vscode.window.showInformationMessage(`✅ 깃허브 연결 주소가 변경되었습니다! 이제 '깃허브 동기화'를 눌러주세요.`); + } + break; + } } }