tt-minigame-ide-cli 2.0.8-beta.0 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,6 +130,7 @@ export declare const SLARDAR_EVENT: {
130
130
  readonly IDE_MODULE_AUTH_FORCE_LOGOUT: "IDE_MODULE_AUTH_FORCE_LOGOUT";
131
131
  readonly IDE_CANVAS_WEBGL_CONTEXT_ENABLE: "IDE_CANVAS_WEBGL_CONTEXT_ENABLE";
132
132
  readonly IDE_LOGIN_DATA_FORMAT: "IDE_LOGIN_DATA_FORMAT";
133
+ readonly IDE_IS_ENCRYPTION_AVAILABLE: "IDE_IS_ENCRYPTION_AVAILABLE";
133
134
  readonly IDE_ADD_COMPILE_MODE: "IDE_ADD_COMPILE_MODE";
134
135
  readonly IDE_DECODE_QRCODE: "IDE_DECODE_QRCODE";
135
136
  readonly IDE_DECODE_URL: "IDE_DECODE_URL";
@@ -156,6 +157,9 @@ export declare const SLARDAR_EVENT: {
156
157
  readonly IDE_AI_QUESTION: "IDE_AI_QUESTION";
157
158
  readonly IDE_AI_FEEDBACK: "IDE_AI_FEEDBACK";
158
159
  readonly IDE_AI_OPEN_LINK: "IDE_AI_OPEN_LINK";
160
+ readonly IDE_AI_ABNORMAL_REPLY: "IDE_AI_ABNORMAL_REPLY";
161
+ readonly IDE_AI_BUTTON_SHOW: "IDE_AI_BUTTON_SHOW";
162
+ readonly IDE_AI_STAY_DURATION: "IDE_AI_STAY_DURATION";
159
163
  readonly IDE_DETAIL_CONFIG_ITEM_CLICK: "IDE_DETAIL_CONFIG_ITEM_CLICK";
160
164
  readonly IDE_WORKBENCH_VIEW_STATUS: "IDE_WORKBENCH_VIEW_STATUS";
161
165
  readonly IDE_POWER_EVENT: "IDE_POWER_EVENT";
@@ -163,6 +167,17 @@ export declare const SLARDAR_EVENT: {
163
167
  readonly IDE_EXCEPTION_RECORD: "IDE_EXCEPTION_RECORD";
164
168
  readonly IDE_PROXY_ERROR_TRACE: "IDE_PROXY_ERROR_TRACE";
165
169
  readonly IDE_EDITOR_RESOLVE_SNIPPET: "IDE_EDITOR_RESOLVE_SNIPPET";
170
+ readonly IDE_EDITOR_SNIPPET_CREATION: "IDE_EDITOR_SNIPPET_CREATION";
171
+ readonly IDE_EDITOR_REFERENCE: "IDE_EDITOR_REFERENCE";
172
+ readonly IDE_EDITOR_COMPLETION_SHOW: "IDE_EDITOR_COMPLETION_SHOW";
173
+ readonly IDE_MAIN_HELPER_FORK: "IDE_MAIN_HELPER_FORK";
174
+ readonly IDE_MAIN_HELPER_SPAWN: "IDE_MAIN_HELPER_SPAWN";
175
+ readonly IDE_MAIN_HELPER_READY: "IDE_MAIN_HELPER_READY";
176
+ readonly IDE_DOUYIN_OAUTH_BIND_CLICK: "IDE_DOUYIN_OAUTH_BIND_CLICK";
177
+ readonly IDE_USER_LOCAL_IP_COUNT: "IDE_USER_LOCAL_IP_COUNT";
178
+ readonly IDE_WEB_CREATE: "IDE_WEB_CREATE";
179
+ readonly IDE_WEB_LOAD: "IDE_WEB_LOAD";
180
+ readonly IDE_WEB_DETECT: "IDE_WEB_DETECT";
166
181
  readonly IDE_LOADER_IO_ERROR: string;
167
182
  readonly IDE_LOADER_INSTALL_RECOVER_ERROR: string;
168
183
  readonly IDE_LOADER_START_FROM_ENTRY: string;
@@ -183,6 +198,7 @@ export declare const SLARDAR_EVENT: {
183
198
  readonly IDE_FULLUPGRADE_POP_YESBACK: "IDE_FULLUPGRADE_POP_YESBACK";
184
199
  readonly IDE_FULLUPGRADE_POP_YESONCE: "IDE_FULLUPGRADE_POP_YESONCE";
185
200
  readonly IDE_FULLUPGRADE_POP_VIEWDETAIL: "IDE_FULLUPGRADE_POP_VIEWDETAIL";
201
+ readonly IDE_FORCE_UPGRADE: "IDE_FORCE_UPGRADE";
186
202
  };
187
203
  /**
188
204
  * IDE的模块统计
@@ -217,6 +233,9 @@ export declare const IDE_MODULES: {
217
233
  readonly UPDATE: "UPDATE";
218
234
  readonly EDITOR_SAVE: "EDITOR_SAVE";
219
235
  readonly MAIN_HELPER: "MAIN_HELPER";
236
+ readonly WEB_PC_SDK: "WEB_PC_SDK";
237
+ readonly SIGN_CHECKER_GUARANTEED_PAYMENT: "SIGN_CHECKER_GUARANTEED_PAYMENT";
238
+ readonly SIGN_CHECKER_TRADE_SYSTEM: "SIGN_CHECKER_TRADE_SYSTEM";
220
239
  };
221
240
  export declare const IDE_TIMELINE_NAMES: {
222
241
  readonly SIMULATOR_FIRST_LOADING_END: "SIMULATOR_FIRST_LOADING_END";
@@ -251,6 +270,9 @@ export declare const IDE_TIMELINE_NAMES: {
251
270
  readonly UPDATE: "UPDATE";
252
271
  readonly EDITOR_SAVE: "EDITOR_SAVE";
253
272
  readonly MAIN_HELPER: "MAIN_HELPER";
273
+ readonly WEB_PC_SDK: "WEB_PC_SDK";
274
+ readonly SIGN_CHECKER_GUARANTEED_PAYMENT: "SIGN_CHECKER_GUARANTEED_PAYMENT";
275
+ readonly SIGN_CHECKER_TRADE_SYSTEM: "SIGN_CHECKER_TRADE_SYSTEM";
254
276
  };
255
277
  /**
256
278
  * IDE 性能统计 ipc 事件收敛
@@ -15,6 +15,7 @@ export declare const UPDATE_SLARDAR_EVENTS: {
15
15
  readonly IDE_FULLUPGRADE_POP_YESBACK: "IDE_FULLUPGRADE_POP_YESBACK";
16
16
  readonly IDE_FULLUPGRADE_POP_YESONCE: "IDE_FULLUPGRADE_POP_YESONCE";
17
17
  readonly IDE_FULLUPGRADE_POP_VIEWDETAIL: "IDE_FULLUPGRADE_POP_VIEWDETAIL";
18
+ readonly IDE_FORCE_UPGRADE: "IDE_FORCE_UPGRADE";
18
19
  };
19
20
  export declare const UPDATE_SLARDAR_EVENTS_TECH: {
20
21
  IDE_LOADER_IO_ERROR: string;
@@ -17,6 +17,7 @@ export interface IApp extends BaseApp {
17
17
  };
18
18
  openDataContext?: string;
19
19
  deviceOrientation?: 'landscape' | 'portrait';
20
+ menuButtonStyle?: 'light' | 'dark';
20
21
  }
21
22
  /**
22
23
  * JSON object wrapper for `app.json`
@@ -51,12 +51,29 @@ export interface IProjectConfig extends IProject {
51
51
  IDEPreviewHotRestartCache?: boolean;
52
52
  useCompilerPlugins?: CompilerPlugin[];
53
53
  bigPackageSizeSupport?: boolean;
54
+ webDetect?: boolean;
55
+ previewPreload?: boolean;
54
56
  };
55
57
  condition?: {
56
58
  miniprogram?: ConditionData;
57
59
  game?: ConditionData;
58
60
  };
59
61
  douyinProjectType?: string;
62
+ unity?: {
63
+ build: {
64
+ webgl: string;
65
+ native: {
66
+ il2cpp: string;
67
+ apk: string;
68
+ };
69
+ instantGame: string;
70
+ };
71
+ publishType: '0' | '1' | '2' | '3' | '4' | '5';
72
+ starkSdkVersion: string;
73
+ unityToolsVersion: string;
74
+ unityEngineVersion: string;
75
+ arch: string;
76
+ };
60
77
  }
61
78
  /**
62
79
  * 此处的技术类型与 ide 的技术类型有区别
@@ -66,8 +83,8 @@ export interface IProjectConfig extends IProject {
66
83
  * microapp 属于 app 类型
67
84
  * microgame、toybox 属于 game 类型
68
85
  */
69
- declare type TechType = 'app' | 'game' | 'toybox';
70
- declare type IDEAppTechType = 'microapp' | 'toybox' | 'microgame' | 'microapp-minicode' | 'toybox-minicode' | 'microgame-minicode' | '';
86
+ declare type TechType = 'app' | 'game' | 'toybox' | 'unity';
87
+ declare type IDEAppTechType = 'microapp' | 'toybox' | 'microgame' | 'microapp-minicode' | 'toybox-minicode' | 'microgame-minicode' | 'unity' | '';
71
88
  export declare const PROJECT_TYPE_MAP: Record<string, TechType>;
72
89
  export declare function setIDEAppTechType(type: IDEAppTechType): void;
73
90
  export declare function getIDEAppTechType(): IDEAppTechType;
@@ -127,6 +144,8 @@ export declare class ProjectConfig extends JSONContainer<Partial<IProjectConfig>
127
144
  getPreviewHotRestartCache(): boolean;
128
145
  getMiniprogramRoot(): string;
129
146
  getBigPackageSizeSupport(): boolean;
147
+ getWebDetect(): boolean;
148
+ getPreviewPreload(): boolean;
130
149
  /**
131
150
  * Detect current project is 小程序 (`app.json`) or 游戏Like (`game.json`)
132
151
  * @param match Optional comparison type
@@ -0,0 +1,18 @@
1
+ export declare type InpInfo = {
2
+ metrics: {
3
+ inp: number;
4
+ inpt: number;
5
+ inputDelay: number;
6
+ processTime: number;
7
+ };
8
+ tags: {
9
+ outerHTML?: string;
10
+ type: string;
11
+ };
12
+ };
13
+ export declare type InpReporter = (inpInfo: InpInfo, stop: () => void) => void;
14
+ export declare function watchBrowserINP(reporter: InpReporter): PerformanceObserver;
15
+ /**
16
+ * 去除差异性安装路径,保持 dist 之后的内容
17
+ */
18
+ export declare function getPathname(): string;
@@ -0,0 +1,123 @@
1
+ import { ElectronCommandClient } from '@slardar/electron';
2
+ import { BrowserCommandClient } from '@slardar/web';
3
+ export { getPathname } from './browser';
4
+ export declare function getCPUModel(): string;
5
+ export declare function getSystemMemory(): string;
6
+ export declare type SlardarClient = ElectronCommandClient | BrowserCommandClient;
7
+ export declare const BID = "electron_12345";
8
+ export interface ICommonParams {
9
+ userId?: string;
10
+ username?: string;
11
+ ideVersion: string;
12
+ deviceId: string;
13
+ osPlatform: string;
14
+ osVersion: string;
15
+ techType?: string;
16
+ ideVersionNumber?: number;
17
+ env?: string;
18
+ branch?: string;
19
+ buildId?: string;
20
+ cliName?: string;
21
+ isSandbox?: string;
22
+ frameworkType?: string;
23
+ workbenchMode?: string;
24
+ }
25
+ export declare function commonParams2Context(commonParams: ICommonParams, globalDevAppId?: string, globalTechType?: string, globalExtAppId?: string): {
26
+ user_id: string;
27
+ name: string;
28
+ device_id: string;
29
+ ide_version: string;
30
+ os_version: string;
31
+ os_platform: string;
32
+ dev_app_id: string;
33
+ ext_app_id: string;
34
+ tech_type: string;
35
+ ide_version_number: string;
36
+ ide_env: string;
37
+ branch: string;
38
+ build_id: string;
39
+ buildId: string;
40
+ arch: NodeJS.Architecture;
41
+ ide_version_int: number;
42
+ is_sandbox: string;
43
+ frameworkType: string;
44
+ workbench_mode: string;
45
+ e2e_scene: string;
46
+ cpu_model: string;
47
+ system_memory: string;
48
+ };
49
+ export declare function getHref(): string;
50
+ /**
51
+ * 存放打点需要在内存中缓存的数据及操作方法
52
+ */
53
+ export interface IModuleUseInfo {
54
+ count: number;
55
+ triggerNum: number;
56
+ startTime?: number;
57
+ endTime?: number;
58
+ }
59
+ export interface IModuleCacheMap {
60
+ click: {
61
+ [key: string]: IModuleUseInfo;
62
+ };
63
+ call: {
64
+ [key: string]: IModuleUseInfo;
65
+ };
66
+ }
67
+ export interface ITimelinelog {
68
+ name: string;
69
+ step: number;
70
+ timestamp: number;
71
+ }
72
+ export interface ITimeline {
73
+ moduleName: string;
74
+ logs: ITimelinelog[];
75
+ startTime: number;
76
+ currentStep: number;
77
+ endTime?: number;
78
+ }
79
+ export declare type PointEventType = 'click' | 'call';
80
+ export declare const moduleEventCacheMap: IModuleCacheMap;
81
+ export declare const timelineMap: Map<string, ITimeline>;
82
+ export declare function setModuleUseCache(eventType: PointEventType, moduleName: string, value: IModuleUseInfo): void;
83
+ export declare function getModuleUseCache(eventType: PointEventType, moduleName: string): IModuleUseInfo;
84
+ export declare function compareCacheTriggerCount(eventType: PointEventType, moduleName: string, triggerCount: number, triggerDuration?: number, nowTime?: number): boolean;
85
+ export declare const PROCESS_TYPE: {
86
+ readonly main: "main";
87
+ readonly renderer: "renderer";
88
+ };
89
+ export declare type ProcessType = keyof typeof PROCESS_TYPE;
90
+ export declare const startTime: number;
91
+ export declare const skipReport: boolean;
92
+ export declare type TechType = 'microapp' | 'microgame' | 'toybox' | 'microapp-minicode' | 'microgame-minicode' | 'toybox-minicode';
93
+ export interface PerfConfigSettings {
94
+ disabled: boolean;
95
+ fps: {
96
+ below: number;
97
+ belowCount: number;
98
+ maxReporterCount: number;
99
+ };
100
+ interval: {
101
+ duration: number;
102
+ blockFactor: number;
103
+ reportThreshold: number;
104
+ longTaskDuration: number;
105
+ longTaskDurationMain: number;
106
+ maxReporterCount: number;
107
+ preventLongTaskReportEVDuration?: number;
108
+ preventLongTaskReportEvents?: string[];
109
+ };
110
+ memory: {
111
+ freePercent: number;
112
+ free: number;
113
+ duration: number;
114
+ maxReporterCount: number;
115
+ winUsePowershell: boolean;
116
+ };
117
+ disabledHref: string[];
118
+ disabledMain: boolean;
119
+ ideUsageCollectInterval: number;
120
+ disabledJsonWorker: boolean;
121
+ largeJsonLimit?: number;
122
+ }
123
+ export declare const defaultPerfConfigSettings: PerfConfigSettings;
@@ -1,3 +1,10 @@
1
+ export declare function registerDevLogger(logger: CallableFunction): void;
2
+ export declare type TeaEvent = {
3
+ event: string;
4
+ params: string;
5
+ time?: number;
6
+ };
7
+ export declare function makeEvent(event: string, params: unknown, timestamp?: number): TeaEvent;
1
8
  export interface ICommonParams {
2
9
  userId?: string;
3
10
  username?: string;
@@ -14,4 +21,11 @@ export interface ICommonParams {
14
21
  }
15
22
  export declare function reportTea(event: string, commonParams: ICommonParams, params?: {
16
23
  [k: string]: string | number | boolean;
17
- }): void;
24
+ }, timestamp?: number): void;
25
+ export declare function clearTeaEvents(): void;
26
+ export declare function reportTeaImmediately(commonParams: ICommonParams, eventsSets: Array<{
27
+ event: string;
28
+ params: {
29
+ [k: string]: string | number | boolean;
30
+ };
31
+ }>): void;
@@ -0,0 +1,25 @@
1
+ export declare function parseJson<T>(json: string, errorDefault?: {}): T;
2
+ export declare function waitUntil(task: () => Promise<boolean>, timeout?: number, interval?: number): Promise<boolean>;
3
+ export declare function sleep(millisecond: number): Promise<void>;
4
+ /**
5
+ * 延时重试任务
6
+ */
7
+ export declare function retryTask(task: () => Promise<void>, tryCount?: number, delay?: number | (() => Promise<unknown>)): Promise<void>;
8
+ /**
9
+ * @description 输入现版本号与下一个版本号,比较两个版本大小
10
+ * @param [curVersion] - string 现版本号
11
+ * @param [nextVersion] - string 下一个版本号
12
+ * @return [-1] 下一个版本大于当前版本(合法)
13
+ * @return [1] 下一个版本小于当前版本(不合法)
14
+ * @return [0] 当前版本与下一个版本相同(不合法)
15
+ */
16
+ export declare const versionStringCompare: (curVersion?: string, nextVersion?: string) => number;
17
+ export declare const isNeedForceUpdate: ({ curVersion, updateVersion, date, appType, }: {
18
+ curVersion: string;
19
+ updateVersion: string;
20
+ date: string;
21
+ appType: 'IDE' | 'CLI';
22
+ }) => {
23
+ message: string;
24
+ type: 'warn' | 'force';
25
+ } | null;
@@ -5,4 +5,5 @@ export declare function audit(options: {
5
5
  appid: string;
6
6
  host: string[];
7
7
  autoPublish: boolean;
8
+ channel?: string;
8
9
  }): Promise<void>;
@@ -29,10 +29,11 @@ export declare type PreviewOption = Pick<ProjectToQRCodeOption, 'project' | 'pag
29
29
  * @returns
30
30
  */
31
31
  export declare function preview(options: PreviewOption): Promise<ProjectQRCode>;
32
- export declare type UploadOption = Pick<ProjectToQRCodeOption, 'project' | 'qrcode' | 'copyToClipboard' | 'extraInfoJson' | 'localCompileVersion' | 'ideConfig'> & {
32
+ export declare type UploadOption = Pick<ProjectToQRCodeOption, 'project' | 'qrcode' | 'copyToClipboard' | 'extraInfoJson' | 'localCompileVersion' | 'ideConfig' | 'updateStatus' | 'setCheckResult' | 'isNewPlatform'> & {
33
33
  version: string;
34
34
  changeLog: string;
35
35
  needUploadSourcemap?: boolean;
36
+ extraCheckInfoJson?: string;
36
37
  };
37
38
  /**
38
39
  * 发布上传(功能入口)
@@ -56,6 +57,7 @@ export declare type ProjectToQRCodeOption = {
56
57
  version: string;
57
58
  changeLog: string;
58
59
  needUploadSourcemap: boolean;
60
+ extraCheckInfoJson?: string;
59
61
  };
60
62
  extraInfoJson?: string;
61
63
  localCompileVersion?: string;
@@ -70,6 +72,13 @@ export declare type ProjectToQRCodeOption = {
70
72
  uploadCache?: boolean;
71
73
  supportSourcemap?: boolean;
72
74
  enableHotRestartCache?: boolean;
75
+ updateStatus?: (status: {
76
+ upload: number;
77
+ check: number;
78
+ compile: number;
79
+ }) => any;
80
+ setCheckResult?: (result: any) => any;
81
+ isNewPlatform?: (value: boolean) => void;
73
82
  };
74
83
  export declare function projectToQRCode(options: ProjectToQRCodeOption): Promise<ProjectQRCode>;
75
84
  export {};
@@ -1,3 +1,4 @@
1
1
  export * from './cloud-compile';
2
2
  export * from './utils/package';
3
3
  export * from './meta';
4
+ export * from './unity';
@@ -1 +1,2 @@
1
1
  export declare const getMeta: (appId: string) => Promise<any>;
2
+ export declare const getMicroappInfo: (appId: string) => Promise<number | null>;
@@ -0,0 +1,100 @@
1
+ declare type UnityConfigType = {
2
+ appid: string;
3
+ build: {
4
+ webgl: string;
5
+ native: {
6
+ il2cpp: string;
7
+ apk: string;
8
+ };
9
+ instantGame: string;
10
+ };
11
+ publishType: '0' | '1' | '2' | '3' | '4' | '5';
12
+ starkSdkVersion: string;
13
+ unityToolsVersion: string;
14
+ unityEngineVersion: string;
15
+ arch: string;
16
+ };
17
+ declare type UnityGameJson = {
18
+ deviceOrientation: 'portrait' | 'landscape';
19
+ menuButtonStyle: 'light' | 'dark';
20
+ };
21
+ declare type UploadProps = {
22
+ projectPath: string;
23
+ version: string;
24
+ publishDesc?: string;
25
+ ideUid?: number;
26
+ };
27
+ declare type QueryProgressProps = Pick<UploadProps, 'projectPath' | 'version' | 'ideUid'> & {
28
+ updateStatus?: (status: number | string) => void;
29
+ };
30
+ export declare const unityCli: {
31
+ getVersions: ({ projectPath, ideUid }: {
32
+ projectPath: string;
33
+ ideUid?: number;
34
+ }) => Promise<{
35
+ latest: {
36
+ ctime: string;
37
+ version: string;
38
+ };
39
+ current: {
40
+ ctime: string;
41
+ version: string;
42
+ };
43
+ }>;
44
+ getLatestVersion: ({ projectPath, ideUid }: {
45
+ projectPath: string;
46
+ ideUid?: number;
47
+ }) => Promise<{
48
+ ctime: string;
49
+ version: string;
50
+ }>;
51
+ preview: ({ projectPath, ideUid }: {
52
+ projectPath: string;
53
+ ideUid?: number;
54
+ }) => Promise<string>;
55
+ upload: ({ projectPath, version, publishDesc, ideUid }: UploadProps) => Promise<{
56
+ code: number;
57
+ message: string;
58
+ }>;
59
+ queryProgress: ({ projectPath, version, updateStatus, ideUid }: QueryProgressProps) => Promise<void>;
60
+ uploadAndQueryProgress: ({ projectPath, version, publishDesc, updateStatus, ideUid }: UploadProps & QueryProgressProps) => Promise<void>;
61
+ validateFiles: (unityConfig: UnityConfigType) => Promise<void>;
62
+ validateAppId: (appid: string) => Promise<boolean>;
63
+ validateVersion: (latestVersion: string, version: string) => boolean;
64
+ PROGRESS: {
65
+ 0: string;
66
+ 1: string;
67
+ 2: string;
68
+ 3: string;
69
+ 4: string;
70
+ 5: string;
71
+ 6: string;
72
+ 7: string;
73
+ 8: string;
74
+ 9: string;
75
+ 99: string;
76
+ 100: string;
77
+ '-1': string;
78
+ '-2': string;
79
+ '-4': string;
80
+ '-5': string;
81
+ '-6': string;
82
+ '-7': string;
83
+ '-8': string;
84
+ '-9': string;
85
+ '-99': string;
86
+ '-100': string;
87
+ uploadError: string;
88
+ uploadFailed: string;
89
+ defaultText: string;
90
+ };
91
+ isUnity: (projectPath: string) => Promise<boolean>;
92
+ unityUpload: (options: UploadProps & Pick<UploadProps, "projectPath" | "version" | "ideUid"> & {
93
+ updateStatus?: (status: number | string) => void;
94
+ } & {
95
+ publishType?: UnityConfigType['publishType'];
96
+ deviceOrientation?: UnityGameJson['deviceOrientation'];
97
+ outputPath?: string;
98
+ }) => Promise<void>;
99
+ };
100
+ export {};
@@ -11,6 +11,7 @@ export declare type ProjectQRCode = {
11
11
  qrcodeFilePath?: string;
12
12
  useCache: boolean;
13
13
  } & Pick<CompileProgressResult, 'metrics' | 'passJson'>;
14
+ export declare function checkChannel(appid: string, channel: string): Promise<void>;
14
15
  declare type CompileProgressResult = {
15
16
  success: boolean;
16
17
  /** error code */
@@ -37,6 +38,7 @@ export declare type UploadOption = Pick<ProjectToQRCodeOption, 'project' | 'qrco
37
38
  needUploadSourcemap?: boolean;
38
39
  needUploadCheck?: boolean;
39
40
  extraCheckInfoJson?: string;
41
+ channel?: string;
40
42
  };
41
43
  /**
42
44
  * 发布上传(功能入口)
@@ -62,6 +64,7 @@ export declare type ProjectToQRCodeOption = {
62
64
  needUploadSourcemap: boolean;
63
65
  needUploadCheck: boolean;
64
66
  extraCheckInfoJson?: string;
67
+ channel?: string;
65
68
  };
66
69
  extraInfoJson?: string;
67
70
  localCompileVersion?: string;
@@ -81,6 +84,7 @@ export declare type ProjectToQRCodeOption = {
81
84
  enableHotRestartCache?: boolean;
82
85
  penetrateMapJson?: Record<string, unknown>;
83
86
  traceVersion?: number;
87
+ traceMode?: number;
84
88
  updateStatus?: (status: {
85
89
  upload: number;
86
90
  check: number;
@@ -7,4 +7,5 @@ export declare const CLI_EVENTS: {
7
7
  IDE_CLI_UPLOAD_FAIL: string;
8
8
  IDE_CLI_ERROR: string;
9
9
  IDE_LITE_MODE_ENTER: string;
10
+ IDE_CLI_FORCE_UPGRADE: string;
10
11
  };
@@ -1,3 +1,4 @@
1
+ import type { ProjectToQRCodeOption } from '../features/preview';
1
2
  export interface MakeSchemaResult {
2
3
  originSchema: string;
3
4
  shortUrl: string;
@@ -13,6 +14,9 @@ interface QRCodeQuery extends RoomInfo {
13
14
  interface BDPLog {
14
15
  launch_from: string;
15
16
  location: string;
17
+ entrance_form?: string;
18
+ enter_from_merge?: string;
19
+ enter_position?: string;
16
20
  }
17
21
  export declare type IDEConfig = IDEBaseConfig & IDESandboxConfig;
18
22
  export declare type IDEExtraInfo = {
@@ -21,6 +25,7 @@ export declare type IDEExtraInfo = {
21
25
  local_room_service_url?: string;
22
26
  packages_token?: string;
23
27
  is_app_auto_test?: boolean;
28
+ preload?: '0' | '1';
24
29
  };
25
30
  export interface IDEBaseConfig {
26
31
  previewScene: 'live' | 'default';
@@ -38,6 +43,7 @@ export interface IDEBaseConfig {
38
43
  websocket: string | null;
39
44
  };
40
45
  extraInfo?: IDEExtraInfo;
46
+ performanceTest?: boolean;
41
47
  }
42
48
  export interface IDESandboxConfig {
43
49
  isSandbox?: boolean;
@@ -68,6 +74,8 @@ export declare type MakeSchemaOption = {
68
74
  type: string;
69
75
  penetrateMapJson?: Record<string, unknown>;
70
76
  traceVersion?: number;
77
+ traceMode?: number;
78
+ uploadOptions?: ProjectToQRCodeOption['uploadOptions'];
71
79
  };
72
80
  export declare function makeSchema(options: MakeSchemaOption): Promise<MakeSchemaResult>;
73
81
  export declare function toQRCodeSVG(str: string): Promise<string>;
@@ -0,0 +1,7 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ export declare function getIDESettings(options?: AxiosRequestConfig): Promise<any>;
3
+ export declare function getForceUpdateConfig(appType: 'microapp' | 'microgame'): Promise<{
4
+ date: any;
5
+ updateVersion: any;
6
+ }>;
7
+ export declare function isCliNeedForceUpdate(appType: 'microapp' | 'microgame'): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tt-minigame-ide-cli",
3
- "version": "2.0.8-beta.0",
3
+ "version": "2.0.9",
4
4
  "description": "Command line interface for micro app development",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -61,4 +61,4 @@
61
61
  "publishConfig": {
62
62
  "registry": "https://registry.npmjs.org"
63
63
  }
64
- }
64
+ }