release: v2.0.1 - Advanced Knowledge Mix & Architectural Intelligence

This commit is contained in:
g1nation
2026-05-13 22:05:39 +09:00
parent c32b17377b
commit e85e11aac6
23 changed files with 1758 additions and 78 deletions
+22 -7
View File
@@ -11,7 +11,8 @@ import {
logError,
logInfo,
resolveEngine,
getActiveBrainProfile
getActiveBrainProfile,
openInEditorGroup
} from './utils';
import { getConfig, validateConfig } from './config';
import { AgentExecutor } from './agent';
@@ -431,6 +432,23 @@ export async function activate(context: vscode.ExtensionContext) {
return createLessonCard(situation);
}),
vscode.commands.registerCommand('g1nation.lesson.manage', () => manageLessons()),
// ── Project Architecture commands (Feature 2) ─────────────────────────
// Thin shells that defer to the sidebar provider so all state mutations
// go through one code path (chip state, watcher lifecycle, etc.).
vscode.commands.registerCommand('g1nation.architecture.refresh', async () => {
if (!provider) return;
await provider._refreshArchitecture();
vscode.window.showInformationMessage('Astra: Project architecture context refreshed.');
}),
vscode.commands.registerCommand('g1nation.architecture.detach', async () => {
if (!provider) return;
await provider._detachArchitecture();
vscode.window.showInformationMessage('Astra: Project architecture auto-attach turned off.');
}),
vscode.commands.registerCommand('g1nation.architecture.open', async () => {
if (!provider) return;
await provider._openArchitectureDoc();
}),
);
/** All lesson/playbook/qa-finding cards in the active brain. Uses the brain index for the lesson-kind
@@ -484,8 +502,7 @@ export async function activate(context: vscode.ExtensionContext) {
vscode.window.showErrorMessage(`교훈 갱신 실패: ${e?.message ?? e}`);
return;
}
const doc = await vscode.workspace.openTextDocument(existing.filePath);
await vscode.window.showTextDocument(doc);
await openInEditorGroup(existing.filePath);
vscode.window.showInformationMessage(`기존 교훈을 갱신했습니다 (occurrences: ${existing.occurrences + 1}). 필요하면 내용을 보강하세요.`);
return;
}
@@ -503,8 +520,7 @@ export async function activate(context: vscode.ExtensionContext) {
vscode.window.showErrorMessage(`교훈 파일 생성 실패: ${e?.message ?? e}`);
return;
}
const doc = await vscode.workspace.openTextDocument(filePath);
await vscode.window.showTextDocument(doc);
await openInEditorGroup(filePath);
vscode.window.showInformationMessage('교훈 카드를 만들었습니다. 내용을 채워 저장하면 다음 유사 작업 시 자동으로 체크리스트에 들어갑니다.');
}
@@ -547,8 +563,7 @@ export async function activate(context: vscode.ExtensionContext) {
const sel = qp.selectedItems[0];
qp.hide();
if (sel) {
const doc = await vscode.workspace.openTextDocument(sel._file);
await vscode.window.showTextDocument(doc);
await openInEditorGroup(sel._file);
}
});
qp.onDidHide(() => qp.dispose());