@@ -89,7 +89,7 @@ import { ErrorCodeManager } from "../costrict/error-code"
8989import { writeCostrictRuntimeAuth } from "../costrict/runtime-config"
9090import { fetchCostrictQuotaInfo , fetchCostrictInviteCode } from "../../api/providers/fetchers/costrict"
9191import { initNotificationService } from "../costrict/notification"
92- import { installGitHubSkills } from "../../services/skills/github-skills-installer "
92+ import { initReviewSkills , showSkillsInitNotification } from "../../services/skills/github-skills-init "
9393import delay from "delay"
9494import { ensureProjectWikiSubtasksExists } from "../costrict/wiki/projectWikiHelpers"
9595import { setPendingTodoList } from "../tools/UpdateTodoListTool"
@@ -782,8 +782,11 @@ export const webviewMessageHandler = async (
782782 } )
783783
784784 void provider . getState ( ) . then ( ( state ) => {
785- void installGitHubSkills ( provider . context , state . language ?? "zh-CN" )
786- . then ( ( ) => provider . log ( "[BuiltinSkills] Bundled skills installed" ) )
785+ void initReviewSkills ( provider . context , state . language ?? "zh-CN" )
786+ . then ( ( summary ) => {
787+ provider . log ( "[BuiltinSkills] Bundled skills installed" )
788+ showSkillsInitNotification ( summary )
789+ } )
787790 . catch ( ( error ) =>
788791 provider . log (
789792 `[BuiltinSkills] Failed to install: ${ error instanceof Error ? error . message : String ( error ) } ` ,
@@ -854,8 +857,11 @@ export const webviewMessageHandler = async (
854857 // Initialize subtask files for the new language.
855858 await ensureProjectWikiSubtasksExists ( newValue as string )
856859 // Reinstall bundled skills with the new locale
857- void installGitHubSkills ( provider . context , newValue as string )
858- . then ( ( ) => provider . log ( "[BuiltinSkills] Bundled skills reinstalled" ) )
860+ void initReviewSkills ( provider . context , newValue as string )
861+ . then ( ( summary ) => {
862+ provider . log ( "[BuiltinSkills] Bundled skills reinstalled" )
863+ showSkillsInitNotification ( summary )
864+ } )
859865 . catch ( ( error ) =>
860866 provider . log (
861867 `[BuiltinSkills] Failed to reinstall: ${ error instanceof Error ? error . message : String ( error ) } ` ,
0 commit comments