tt-minigame-ide-cli 2.0.5 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,6 @@ export declare const SLARDAR_EVENT: {
10
10
  readonly VELA_UPLOAD_TIME: "VELA_UPLOAD_TIME";
11
11
  readonly VELA_COMPILE_FIRST_END: "VELA_COMPILE_FIRST_END";
12
12
  readonly VELA_COMPILE_TIME: "VELA_COMPILE_TIME";
13
- readonly PUCK_COMPILE_ERROR: "PUCK_COMPILE_ERROR";
14
13
  readonly IDE_COMPILE_PERFORMANCE: "IDE_COMPILE_PERFORMANCE";
15
14
  readonly IDE_COMPILE_RESULT: "IDE_COMPILE_RESULT";
16
15
  readonly VELA_SIMULATOR_RENDER_TIME: "VELA_SIMULATOR_RENDER_TIME";
@@ -61,6 +60,7 @@ export declare const SLARDAR_EVENT: {
61
60
  readonly IDE_REQUEST_START: "IDE_REQUEST_START";
62
61
  readonly IDE_REQUEST_FAIL: "IDE_REQUEST_FAIL";
63
62
  readonly IDE_COLOR_THEME: "IDE_COLOR_THEME";
63
+ readonly IDE_CODE_WINDOW_ERROR: "IDE_CODE_WINDOW_ERROR";
64
64
  readonly IDE_HELP_DEVELOPER_COMMUNITY: "IDE_HELP_DEVELOPER_COMMUNITY";
65
65
  readonly IDE_MESSAGE_EXPAND_CLICK: "IDE_MESSAGE_EXPAND_CLICK";
66
66
  readonly IDE_MODULE_CLICK: "IDE_MODULE_CLICK";
@@ -80,7 +80,9 @@ export declare const SLARDAR_EVENT: {
80
80
  readonly IDE_SCENE_END: "IDE_SCENE_END";
81
81
  readonly IDE_APPID_SELECT: "IDE_APPID_SELECT";
82
82
  readonly IDE_APPID_CHANGE: "IDE_APPID_CHANGE";
83
+ readonly IDE_FMP_BREAKDOWN: "IDE_FMP_BREAKDOWN";
83
84
  readonly IDE_JS_LONG_TASK: "IDE_JS_LONG_TASK";
85
+ readonly IDE_INP_INFO: "IDE_INP_INFO";
84
86
  readonly IDE_LOW_FPS: "IDE_LOW_FPS";
85
87
  readonly IDE_LOW_MEMORY: "IDE_LOW_MEMORY";
86
88
  readonly IDE_FETCH_ADMIN_XCONFIG_TMAR: "IDE_FETCH_ADMIN_XCONFIG_TMAR";
@@ -93,6 +95,7 @@ export declare const SLARDAR_EVENT: {
93
95
  readonly IDE_DETAIL_PANEL_CLOSED: "IDE_DETAIL_PANEL_CLOSED";
94
96
  readonly IDE_SETTING_PAGE_SHOW: "IDE_SETTING_PAGE_SHOW";
95
97
  readonly IDE_SETTING_PAGE_OPERATION: "IDE_SETTING_PAGE_OPERATION";
98
+ readonly IDE_SETTING_CHANGE_LITE_MODE: "IDE_SETTING_CHANGE_LITE_MODE:";
96
99
  readonly IDE_MODULE_CLICK_AUTH_REG: "IDE_MODULE_CLICK_AUTH_REG";
97
100
  readonly IDE_MODULE_CLICK_AUTH_UNREGPOP_REG: "IDE_MODULE_CLICK_AUTH_UNREGPOP_REG";
98
101
  readonly IDE_MODULE_CLICK_AUTH_UNREGPOP_CANCEL: "IDE_MODULE_CLICK_AUTH_UNREGPOP_CANCEL";
@@ -122,6 +125,7 @@ export declare const SLARDAR_EVENT: {
122
125
  readonly IDE_TEMPLATE_DOWNLOAD: "IDE_TEMPLATE_DOWNLOAD";
123
126
  readonly IDE_QUICK_JS_ERROR: "IDE_QUICK_JS_ERROR";
124
127
  readonly IDE_REMOTE_DEBUG_CONNECTION_QUALITY: "IDE_REMOTE_DEBUG_CONNECTION_QUALITY";
128
+ readonly IDE_LOCAL_COMPILE_TRACE: "IDE_LOCAL_COMPILE_TRACE";
125
129
  readonly IDE_REMOTE_DEBUG_EXCEPTION: "IDE_REMOTE_DEBUG_EXCEPTION";
126
130
  readonly IDE_MODULE_AUTH_FORCE_LOGOUT: "IDE_MODULE_AUTH_FORCE_LOGOUT";
127
131
  readonly IDE_CANVAS_WEBGL_CONTEXT_ENABLE: "IDE_CANVAS_WEBGL_CONTEXT_ENABLE";
@@ -130,6 +134,33 @@ export declare const SLARDAR_EVENT: {
130
134
  readonly IDE_DECODE_QRCODE: "IDE_DECODE_QRCODE";
131
135
  readonly IDE_DECODE_URL: "IDE_DECODE_URL";
132
136
  readonly IDE_MAIN_HELPER_FORK_TIME: "IDE_MAIN_HELPER_FORK_TIME";
137
+ readonly IDE_MAIN_HELPER_ERROR: "IDE_MAIN_HELPER_ERROR";
138
+ readonly IDE_INSTALL_PATH: "IDE_INSTALL_PATH";
139
+ readonly IDE_SWITCH_WORKBENCH_MODE: "IDE_SWITCH_WORKBENCH_MODE";
140
+ readonly IDE_TOGGLE_REMOTE_VIEW: "IDE_TOGGLE_REMOTE_VIEW";
141
+ readonly IDE_SIMULATOR_PAUSE_MINIAPP: "IDE_SIMULATOR_PAUSE_MINIAPP";
142
+ readonly IDE_SIMULATOR_REFRESH_MINIAPP: "IDE_SIMULATOR_REFRESH_MINIAPP";
143
+ readonly IDE_SIMULATOR_REFRESH: "IDE_SIMULATOR_REFRESH";
144
+ readonly IDE_SIMULATOR_CLICK_LITE_BANNER: "IDE_SIMULATOR_CLICK_LITE_BANNER";
145
+ readonly IDE_LITE_MODE_ENTER: "IDE_LITE_MODE_ENTER";
146
+ readonly IDE_LITE_NOTICE_MODAL_SHOW: "IDE_LITE_NOTICE_MODAL_SHOW";
147
+ readonly IDE_LITE_NOTICE_MODAL_CLICK: "IDE_LITE_NOTICE_MODAL_CLICK";
148
+ readonly IDE_WB_SCENE_START: "IDE_WB_SCENE_START";
149
+ readonly IDE_WB_SCENE_END: "IDE_WB_SCENE_END";
150
+ readonly IDE_GECKO_ERROR: "IDE_GECKO_ERROR";
151
+ readonly PUCK_COMPILE_ERROR: "PUCK_COMPILE_ERROR";
152
+ readonly IDE_DEVTOOLS_PANEL_INIT: "IDE_DEVTOOLS_PANEL_INIT";
153
+ readonly IDE_DEVTOOLS_SENSORS_PANEL_USAGE: "IDE_DEVTOOLS_SENSORS_PANEL_USAGE";
154
+ readonly IDE_FRONT_PAGE_CLICK_SETTINGS: "IDE_FRONT_PAGE_CLICK_SETTINGS";
155
+ readonly IDE_AI_OPEN: "IDE_AI_OPEN";
156
+ readonly IDE_AI_QUESTION: "IDE_AI_QUESTION";
157
+ readonly IDE_AI_FEEDBACK: "IDE_AI_FEEDBACK";
158
+ readonly IDE_AI_OPEN_LINK: "IDE_AI_OPEN_LINK";
159
+ readonly IDE_DETAIL_CONFIG_ITEM_CLICK: "IDE_DETAIL_CONFIG_ITEM_CLICK";
160
+ readonly IDE_WORKBENCH_VIEW_STATUS: "IDE_WORKBENCH_VIEW_STATUS";
161
+ readonly IDE_POWER_EVENT: "IDE_POWER_EVENT";
162
+ readonly IDE_TASK_PERFORMANCE: "IDE_TASK_PERFORMANCE";
163
+ readonly IDE_EXCEPTION_RECORD: "IDE_EXCEPTION_RECORD";
133
164
  readonly IDE_LOADER_IO_ERROR: string;
134
165
  readonly IDE_LOADER_INSTALL_RECOVER_ERROR: string;
135
166
  readonly IDE_LOADER_START_FROM_ENTRY: string;
@@ -171,6 +202,7 @@ export declare const IDE_MODULES: {
171
202
  readonly UPLOAD: "UPLOAD";
172
203
  readonly SIGN_CHECK: "SIGN_CHECK";
173
204
  readonly INTELLIGENCE: "INTELLIGENCE";
205
+ readonly AI: "AI";
174
206
  readonly SHARE_PROJECT: "SHARE_PROJECT";
175
207
  readonly PROJECT_MANAGE: "PROJECT_MANAGE";
176
208
  readonly PROJECT_DETAIL: "PROJECT_DETAIL";
@@ -182,10 +214,12 @@ export declare const IDE_MODULES: {
182
214
  readonly AVATAR: "AVATAR";
183
215
  readonly UPDATE: "UPDATE";
184
216
  readonly EDITOR_SAVE: "EDITOR_SAVE";
217
+ readonly MAIN_HELPER: "MAIN_HELPER";
185
218
  };
186
219
  export declare const IDE_TIMELINE_NAMES: {
187
220
  readonly SIMULATOR_FIRST_LOADING_END: "SIMULATOR_FIRST_LOADING_END";
188
221
  readonly SIMULATOR_LOADING: "SIMULATOR_LOADING";
222
+ readonly LOCAL_COMPILE: "LOCAL_COMPILE";
189
223
  readonly LOGIN: "LOGIN";
190
224
  readonly MESSAGE: "MESSAGE";
191
225
  readonly SIMULATOR: "SIMULATOR";
@@ -202,6 +236,7 @@ export declare const IDE_TIMELINE_NAMES: {
202
236
  readonly UPLOAD: "UPLOAD";
203
237
  readonly SIGN_CHECK: "SIGN_CHECK";
204
238
  readonly INTELLIGENCE: "INTELLIGENCE";
239
+ readonly AI: "AI";
205
240
  readonly SHARE_PROJECT: "SHARE_PROJECT";
206
241
  readonly PROJECT_MANAGE: "PROJECT_MANAGE";
207
242
  readonly PROJECT_DETAIL: "PROJECT_DETAIL";
@@ -213,6 +248,7 @@ export declare const IDE_TIMELINE_NAMES: {
213
248
  readonly AVATAR: "AVATAR";
214
249
  readonly UPDATE: "UPDATE";
215
250
  readonly EDITOR_SAVE: "EDITOR_SAVE";
251
+ readonly MAIN_HELPER: "MAIN_HELPER";
216
252
  };
217
253
  /**
218
254
  * IDE 性能统计 ipc 事件收敛
@@ -15,8 +15,8 @@ export interface IApp extends BaseApp {
15
15
  };
16
16
  path?: string;
17
17
  };
18
- industrySDK?: boolean;
19
18
  openDataContext?: string;
19
+ deviceOrientation?: 'landscape' | 'portrait';
20
20
  }
21
21
  /**
22
22
  * JSON object wrapper for `app.json`
@@ -41,7 +41,8 @@ export interface IProjectConfig extends IProject {
41
41
  minified: boolean;
42
42
  newFeature: boolean;
43
43
  autoCompile?: boolean;
44
- mockUpdate?: boolean;
44
+ compileHotReLoad?: boolean;
45
+ nativeCompile?: boolean;
45
46
  scripts?: boolean;
46
47
  localPlugins?: boolean;
47
48
  nodeModules?: boolean;
@@ -92,6 +93,7 @@ export declare class ProjectConfig extends JSONContainer<Partial<IProjectConfig>
92
93
  static getKeyPathList(): string[];
93
94
  private static generateList;
94
95
  static from(projectPath: string): Promise<ProjectConfig>;
96
+ static fromJson(json: Record<string, any>, projectPath: string): ProjectConfig;
95
97
  static getMergedConfig(publicConfig: Partial<IProjectConfig>, privateConfig: Partial<IProjectPrivate>): Partial<IProjectConfig>;
96
98
  update<K extends keyof IProjectConfig>(key: K, value: IProjectConfig[K], write?: boolean): Promise<void>;
97
99
  /**
@@ -116,6 +118,8 @@ export declare class ProjectConfig extends JSONContainer<Partial<IProjectConfig>
116
118
  getScripts(): IProjectConfig['scripts'];
117
119
  getConditionData(conditionKeyName: keyof NonNullable<IProjectConfig['condition']>): ConditionData;
118
120
  getAutoCompileSetting(): boolean;
121
+ getCompileHotReloadSetting(): boolean;
122
+ getNativeCompileSetting(): boolean;
119
123
  getLocalPluginsSetting(): boolean;
120
124
  getAfterOpenScript(): string;
121
125
  getBeforeCompileScript(): string;
@@ -0,0 +1,7 @@
1
+ interface IAppConfigParam {
2
+ appid: string;
3
+ config: Record<string, unknown>;
4
+ }
5
+ export declare function getToken(appId: string): any;
6
+ export declare function setAppConfig(param: IAppConfigParam): void;
7
+ export {};
@@ -5,5 +5,4 @@ export declare function audit(options: {
5
5
  appid: string;
6
6
  host: string[];
7
7
  autoPublish: boolean;
8
- defaultSsUrl?: string;
9
8
  }): Promise<void>;
@@ -14,5 +14,6 @@ export declare function loginByPhone(options: {
14
14
  export declare function checkSession(): Promise<{
15
15
  isValid: boolean;
16
16
  errMsg: string;
17
+ username?: string;
17
18
  }>;
18
19
  export declare function logout(): Promise<void>;
@@ -5,6 +5,7 @@ import type { ProjectConfig } from '@byted/miniprogram-utils/dist/data/project';
5
5
  import { ProjectSize } from '@byted/miniprogram-utils/typings/project';
6
6
  import archiver from 'archiver';
7
7
  import fg from 'fast-glob';
8
+ import { IApp } from '@byted/miniprogram-utils/dist/data/app';
8
9
  /**
9
10
  * 计算给定文件夹下面的文件体积总值
10
11
  * @param folderPath directory path
@@ -12,7 +13,7 @@ import fg from 'fast-glob';
12
13
  * @param options pass to fast-glob
13
14
  * @returns
14
15
  */
15
- export declare function getFolderSize(folderPath: string, useTypeScript: boolean, options: fg.Options, isGame: boolean): Promise<number>;
16
+ export declare function getFolderSize(folderPath: string, useTypeScript: boolean, options: fg.Options, isGame: boolean, gameFiles?: string[]): Promise<number>;
16
17
  /**
17
18
  * 以文件夹为单位的包体积统计,不适用于依赖分析
18
19
  *
@@ -21,7 +22,7 @@ export declare function getFolderSize(folderPath: string, useTypeScript: boolean
21
22
  * @param projectPath
22
23
  * @param isGame
23
24
  */
24
- export declare function getProjectSize(projectConfig: ProjectConfig, appJson: any, projectPath: string, isGame: boolean): Promise<ProjectSize>;
25
+ export declare function getProjectSize(projectConfig: ProjectConfig, appJson: IApp, projectPath: string, isGame: boolean): Promise<ProjectSize>;
25
26
  /**
26
27
  * 校验当前项目的分包体积是否符合要求
27
28
  * 若有错误,会抛出 promise 异常
@@ -39,12 +40,6 @@ declare type FolderToZipStreamOption = {
39
40
  * @param dir path to folder
40
41
  */
41
42
  export declare function folderToZipStream(dir: string, { whiteList, useTypeScript }: FolderToZipStreamOption, isGame: boolean): Promise<archiver.Archiver>;
42
- /**
43
- *
44
- * @param dir path to microapp project
45
- * @returns
46
- */
47
- export declare function getProjectHash(dir: string, isGame: boolean): Promise<string>;
48
43
  /**
49
44
  * For cli only
50
45
  * @param input
@@ -31,10 +31,12 @@ declare type PreviewOption = Pick<ProjectToQRCodeOption, 'project' | 'page' | 'q
31
31
  * @returns
32
32
  */
33
33
  export declare function preview(options: PreviewOption): Promise<ProjectQRCode>;
34
- declare type UploadOption = Pick<ProjectToQRCodeOption, 'project' | 'qrcode' | 'copyToClipboard' | 'extraInfoJson' | 'localCompileVersion' | 'ideConfig' | 'interactGame' | 'penetrateMapJson'> & {
34
+ export declare type UploadOption = Pick<ProjectToQRCodeOption, 'project' | 'qrcode' | 'copyToClipboard' | 'extraInfoJson' | 'localCompileVersion' | 'ideConfig' | 'interactGame' | 'penetrateMapJson'> & {
35
35
  version: string;
36
36
  changeLog: string;
37
37
  needUploadSourcemap?: boolean;
38
+ needUploadCheck?: boolean;
39
+ extraCheckInfoJson?: string;
38
40
  };
39
41
  /**
40
42
  * 发布上传(功能入口)
@@ -58,6 +60,8 @@ export declare type ProjectToQRCodeOption = {
58
60
  version: string;
59
61
  changeLog: string;
60
62
  needUploadSourcemap: boolean;
63
+ needUploadCheck: boolean;
64
+ extraCheckInfoJson?: string;
61
65
  };
62
66
  extraInfoJson?: string;
63
67
  localCompileVersion?: string;
@@ -76,6 +80,13 @@ export declare type ProjectToQRCodeOption = {
76
80
  supportSourcemap?: boolean;
77
81
  enableHotRestartCache?: boolean;
78
82
  penetrateMapJson?: Record<string, unknown>;
83
+ traceVersion?: number;
84
+ updateStatus?: (status: {
85
+ upload: number;
86
+ check: number;
87
+ compile: number;
88
+ }) => any;
89
+ setCheckResult?: (result: any) => any;
79
90
  };
80
- export declare function projectToQRCode(options: ProjectToQRCodeOption): Promise<ProjectQRCode>;
91
+ export declare function projectToQRCode(options: ProjectToQRCodeOption, hashTimeout?: number): Promise<ProjectQRCode>;
81
92
  export {};
@@ -3,11 +3,12 @@ import { getConfig, setConfig } from './features/config';
3
3
  import { createProject } from './features/create';
4
4
  import { checkSession, loginByEmail, loginByPhone, logout, sendVerificationCodeToPhone } from './features/login';
5
5
  import { getProjectSize, verifySubPackageSize } from './features/packages';
6
- import { checkProjectMatchAppid, ProjectToQRCodeOption, preview, ProjectQRCode, projectToQRCode, upload } from './features/preview';
6
+ import { checkProjectMatchAppid, ProjectToQRCodeOption, preview, ProjectQRCode, projectToQRCode, UploadOption } from './features/preview';
7
7
  import { detectValidExtApp, INVALID_EXTAPP_REASON } from './features/third-party';
8
8
  import { ProjectInfo } from './types';
9
9
  import { setCookieFn } from './utils/cookie';
10
10
  import { IDEConfig, IDESandboxConfig, makeSchema, MakeSchemaOption, MakeSchemaResult } from './utils/qrcode';
11
+ import { setAppConfig } from './features/app-config';
11
12
  declare function open(options: {
12
13
  project: ProjectInfo;
13
14
  remotePort?: number;
@@ -15,8 +16,11 @@ declare function open(options: {
15
16
  declare function buildNpmFunc(options: {
16
17
  project: ProjectInfo;
17
18
  }): Promise<import("./features/npm").BuildNpmResult>;
19
+ declare function upload(options: UploadOption): Promise<ProjectQRCode>;
18
20
  export { ProjectQRCode, ProjectToQRCodeOption };
19
- export { open, setConfig, createProject as create, loginByEmail, loginByPhone, logout, sendVerificationCodeToPhone, checkSession, audit, getAuditHostsList, buildNpmFunc as buildNpm, preview, upload, projectToQRCode, setCookieFn, getConfig, detectValidExtApp, getProjectSize, verifySubPackageSize, checkProjectMatchAppid, INVALID_EXTAPP_REASON, IDEConfig, makeSchema, MakeSchemaOption, MakeSchemaResult, IDESandboxConfig, };
21
+ export { open, setConfig, createProject as create, loginByEmail, loginByPhone, logout, sendVerificationCodeToPhone, checkSession, audit, getAuditHostsList, buildNpmFunc as buildNpm, preview, upload, projectToQRCode, setCookieFn, getConfig, detectValidExtApp, getProjectSize, verifySubPackageSize, checkProjectMatchAppid, INVALID_EXTAPP_REASON, IDEConfig, makeSchema, MakeSchemaOption, MakeSchemaResult, IDESandboxConfig, setAppConfig, };
20
22
  export * from './features/meta';
23
+ export { folderToZipStream } from './features/packages';
21
24
  export * from './utils/metrics';
22
25
  export * as microgame from './features/microgame';
26
+ export { getProjectHash, setProjectHashFn } from './utils/hash';
@@ -6,7 +6,9 @@ export declare class CliMonitor {
6
6
  private static _instance;
7
7
  private _didReportLaunch;
8
8
  private readonly _commonParams;
9
+ private _commonData;
9
10
  private constructor();
11
+ static updateCommonParams(newParams: Record<string, string | number | boolean>): void;
10
12
  static getInstance(config: CLIMonitorConfigOptions): CliMonitor;
11
13
  shouldReport(eventName: string): boolean;
12
14
  report(eventName: string, params?: Record<string, string | number | boolean>): void;
@@ -6,4 +6,5 @@ export declare const CLI_EVENTS: {
6
6
  IDE_CLI_UPLOAD_SUCCESS: string;
7
7
  IDE_CLI_UPLOAD_FAIL: string;
8
8
  IDE_CLI_ERROR: string;
9
+ IDE_LITE_MODE_ENTER: string;
9
10
  };
@@ -11,6 +11,7 @@ export interface TMACliConfig {
11
11
  compileProgress: string;
12
12
  preview: string;
13
13
  upload: string;
14
+ check: string;
14
15
  emailLogin: string;
15
16
  mobileLogin: string;
16
17
  sendLoginCode: string;
@@ -1,6 +1,16 @@
1
1
  declare type GetCookieFunction = () => Promise<string>;
2
2
  export declare let getUserCookies: GetCookieFunction;
3
- export declare function saveUserCookies(cookies: string[]): void;
3
+ export declare const getUserId: () => string;
4
+ export declare function saveUserCookies(cookies: string[], userId: string): void;
4
5
  export declare function removeUserCookies(): void;
5
6
  export declare function setCookieFn(fn: GetCookieFunction): void;
7
+ export declare const getLogInfoHeaders: (appId: string) => Promise<{
8
+ 'x-cli-token': any;
9
+ 'x-cli-appid': string;
10
+ Cookie: any;
11
+ } | {
12
+ Cookie: string;
13
+ 'x-cli-token'?: undefined;
14
+ 'x-cli-appid'?: undefined;
15
+ }>;
6
16
  export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ *
3
+ * @param dir path to microapp project
4
+ * @param timeout 预留给worker进程hash逻辑使用参数
5
+ * @returns
6
+ */
7
+ export declare let getProjectHash: (dir: string, isGame: boolean, timeout?: number) => Promise<string>;
8
+ /**
9
+ * IDE workbench 中调用该函数,最终会在MainHelperWindow中计算hash
10
+ */
11
+ export declare function setProjectHashFn(fn: typeof getProjectHash): Promise<void>;
@@ -15,5 +15,5 @@ declare class CliLogger extends BaseLogger {
15
15
  loading(text: string): ora.Ora;
16
16
  stopLoading(): void;
17
17
  }
18
- declare const logger: Logger | CliLogger;
18
+ declare const logger: CliLogger | Logger;
19
19
  export default logger;
@@ -15,6 +15,13 @@ interface BDPLog {
15
15
  location: string;
16
16
  }
17
17
  export declare type IDEConfig = IDEBaseConfig & IDESandboxConfig;
18
+ export declare type IDEExtraInfo = {
19
+ ip?: string;
20
+ subnet?: string;
21
+ local_room_service_url?: string;
22
+ packages_token?: string;
23
+ is_app_auto_test?: boolean;
24
+ };
18
25
  export interface IDEBaseConfig {
19
26
  previewScene: 'live' | 'default';
20
27
  ideVersion: string;
@@ -25,14 +32,12 @@ export interface IDEBaseConfig {
25
32
  inspectPlatform?: DevicePlatform;
26
33
  iOSDebugVersion?: string;
27
34
  connectType?: 'push' | 'scan';
28
- localDebug?: 'true' | 'false';
35
+ localDebug?: boolean;
29
36
  dycloudConfig?: {
30
37
  callContainer: string | null;
31
38
  websocket: string | null;
32
39
  };
33
- extraInfo?: {
34
- [k: string]: string;
35
- };
40
+ extraInfo?: IDEExtraInfo;
36
41
  }
37
42
  export interface IDESandboxConfig {
38
43
  isSandbox?: boolean;
@@ -62,6 +67,7 @@ export declare type MakeSchemaOption = {
62
67
  hotRestartHash?: string;
63
68
  type: string;
64
69
  penetrateMapJson?: Record<string, unknown>;
70
+ traceVersion?: number;
65
71
  };
66
72
  export declare function makeSchema(options: MakeSchemaOption): Promise<MakeSchemaResult>;
67
73
  export declare function toQRCodeSVG(str: string): Promise<string>;
@@ -54,3 +54,5 @@ export declare function getMD5Stream(source: archiver.Archiver): Promise<Transfo
54
54
  __md5: string;
55
55
  }>;
56
56
  export declare const getNextVersion: (version: string) => string;
57
+ export declare const isGameFileValid: (pattern: string) => boolean;
58
+ export declare const isObject: (value: any) => boolean;
@@ -1 +1,2 @@
1
+ export declare const ALLOWED_MICROGAME_EXTS_REG: RegExp;
1
2
  export declare function getWhiteList(isGame?: boolean): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tt-minigame-ide-cli",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
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
+ }