feat: restore github repo URL change command
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "connect-ai-lab",
|
"name": "connect-ai-lab",
|
||||||
"displayName": "Connect AI",
|
"displayName": "Connect AI",
|
||||||
"description": "100% 로컬 AI 코딩 에이전트 — 파일 생성, 코드 편집, 터미널 실행을 오프라인으로. Ollama + Gemma/Llama/DeepSeek 지원.",
|
"description": "100% 로컬 AI 코딩 에이전트 — 파일 생성, 코드 편집, 터미널 실행을 오프라인으로. Ollama + Gemma/Llama/DeepSeek 지원.",
|
||||||
"version": "2.2.13",
|
"version": "2.2.14",
|
||||||
"publisher": "connectailab",
|
"publisher": "connectailab",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"icon": "assets/icon.png",
|
"icon": "assets/icon.png",
|
||||||
|
|||||||
@@ -1016,6 +1016,7 @@ class SidebarChatProvider implements vscode.WebviewViewProvider {
|
|||||||
const items: any[] = [
|
const items: any[] = [
|
||||||
{ label: `📂 내 지식 목록 (${fileCount}개)`, description: '클릭하면 파일 내용 열기', action: 'listFiles' },
|
{ label: `📂 내 지식 목록 (${fileCount}개)`, description: '클릭하면 파일 내용 열기', action: 'listFiles' },
|
||||||
{ label: `🔄 깃허브 동기화`, description: `${repoLabel} — 로컬↔깃허브 양방향 최신화`, action: 'githubSync' },
|
{ label: `🔄 깃허브 동기화`, description: `${repoLabel} — 로컬↔깃허브 양방향 최신화`, action: 'githubSync' },
|
||||||
|
{ label: '🔗 깃허브 주소 변경', description: '연결할 지식 저장소 URL 바꾸기', action: 'changeGithub' },
|
||||||
{ label: '📁 폴더 위치 바꾸기', description: `현재: ${brainDir}`, action: 'changeFolder' },
|
{ label: '📁 폴더 위치 바꾸기', description: `현재: ${brainDir}`, action: 'changeFolder' },
|
||||||
{ label: '🌐 지식 지도', description: '내 지식의 연결 관계 시각화', action: 'viewGraph' },
|
{ label: '🌐 지식 지도', description: '내 지식의 연결 관계 시각화', action: 'viewGraph' },
|
||||||
];
|
];
|
||||||
@@ -1086,6 +1087,17 @@ class SidebarChatProvider implements vscode.WebviewViewProvider {
|
|||||||
await this._syncSecondBrain();
|
await this._syncSecondBrain();
|
||||||
break;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user