优化项目启动器的创建功能

This commit is contained in:
xintaofei
2026-03-27 15:08:53 +08:00
parent 06580b0c9c
commit 3b080c801b
18 changed files with 374 additions and 55 deletions

View File

@@ -44,6 +44,7 @@ import type {
SystemProxySettings,
GitCredentials,
GitDetectResult,
PackageManagerInfo,
GitSettings,
GitHubAccountsSettings,
GitHubTokenValidation,
@@ -958,6 +959,12 @@ export async function openProjectBootWindow(): Promise<void> {
window.open("/project-boot", "project-boot")
}
export async function detectPackageManager(
name: string
): Promise<PackageManagerInfo> {
return getTransport().call("detect_package_manager", { name })
}
export async function createShadcnProject(params: {
projectName: string
template: string