feat(onboarding): 두뇌 기본 위치 부트스트랩 — 성장 데이터 저장처 명시화 (v2.2.217)
두뇌 미설정 시 config 가 숨김 점폴더(~/.g1nation-brain)로 조용히 폴백해 성장 데이터(레슨·기억·지식)가 비개발자는 찾을 수 없는 곳에 쌓이거나 기능이 멈추던 문제 해결. 설치 컴퓨터마다 저장 위치가 결정적이고 발견 가능해진다. - 활성화 시 brainProfiles/legacy 경로가 모두 비어 있으면: · 문서\AstraBrain 폴더 실제 생성 (lessons/·memory/ + 설명 README) · settings(global) brainProfiles 에 명시 기록 → 설정 UI 에서 보이고 변경 가능 · 사용자 1회 알림 (경로 + 백업 권장) - 데이터 보호: 옛 폴백(~/.g1nation-brain)에 데이터가 이미 있으면 이동 없이 그 경로를 그대로 등록 (유실 방지). - 기존 사용자(프로필/legacy 설정 존재)는 완전 no-op. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -40,6 +40,7 @@ import { runConnectGoogleCalendarIcal, runConnectGoogleCalendarOAuth } from './e
|
||||
import { runInitialSetup } from './extension/initialSetup';
|
||||
import { startStocksWatcher } from './features/stocks';
|
||||
import { startDailyBriefingWatcher } from './features/briefing/dailyBriefing';
|
||||
import { ensureDefaultBrainConfigured } from './extension/brainBootstrap';
|
||||
import { registerProviderCommands } from './extension/providerCommands';
|
||||
import { registerScaffoldCommand } from './extension/scaffoldCommand';
|
||||
import { registerLessonCommands } from './extension/lessonCommands';
|
||||
@@ -65,6 +66,11 @@ export async function activate(context: vscode.ExtensionContext) {
|
||||
void vscode.window.showInformationMessage(`📡 Astra v${version} activated (PID=${process.pid})`);
|
||||
logInfo(`Astra activating... version=${version} pid=${process.pid}`);
|
||||
|
||||
// 두뇌 기본 위치 부트스트랩 — 미설정이면 문서\AstraBrain 생성·등록.
|
||||
// 성장 데이터(레슨·기억·지식)가 숨김 폴백(~/.g1nation-brain)으로 조용히 가는 것을 방지.
|
||||
// 이후 코드가 getConfig() 로 두뇌 경로를 읽으므로 설정 기록이 끝난 뒤 진행해야 한다.
|
||||
await ensureDefaultBrainConfigured();
|
||||
|
||||
// Initialize Astra Path Resolver (.astra → ConnectAI/.astra/)
|
||||
initAstraPathResolver(context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user