add public fix and pnpm init asst

This commit is contained in:
2025-05-19 22:13:02 +08:00
parent a05f2cd291
commit 5cc1e33b29
9 changed files with 175 additions and 9 deletions

View File

@@ -60,8 +60,12 @@ export const initConfig = (configRootPath: string) => {
};
export type ReturnInitConfigType = ReturnType<typeof initConfig>;
type AuthPermission = {
type?: 'auth-proxy' | 'public' | 'private' | 'project';
};
export type AssistantConfigData = {
pageApi?: string; // https://kevisual.cn
token?: string;
registry?: string; // https://kevisual.cn
proxy?: ProxyInfo[];
apiProxyList?: ProxyInfo[];
@@ -78,6 +82,7 @@ export type AssistantConfigData = {
scripts?: {
[key: string]: string;
};
auth?: AuthPermission;
};
let assistantConfig: AssistantConfigData;
type AssistantConfigOptions = {