tt-minigame-ide-cli 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/miniprogram-utils/src/constants/index.d.ts +18 -0
- package/dist/miniprogram-utils/src/data/project.d.ts +2 -0
- package/dist/tt-ide-cli/src/features/app-config.d.ts +7 -0
- package/dist/tt-ide-cli/src/features/audit.d.ts +0 -1
- package/dist/tt-ide-cli/src/features/login.d.ts +1 -0
- package/dist/tt-ide-cli/src/index.d.ts +2 -1
- package/dist/tt-ide-cli/src/utils/cookie.d.ts +9 -0
- package/dist/tt-ide-cli/src/utils/logger.d.ts +1 -1
- package/dist/tt-ide-cli/src/utils/qrcode.d.ts +1 -0
- package/dist/tt-ide-cli/src/utils/util.d.ts +1 -0
- package/package.json +2 -2
@@ -125,6 +125,7 @@ export declare const SLARDAR_EVENT: {
|
|
125
125
|
readonly IDE_TEMPLATE_DOWNLOAD: "IDE_TEMPLATE_DOWNLOAD";
|
126
126
|
readonly IDE_QUICK_JS_ERROR: "IDE_QUICK_JS_ERROR";
|
127
127
|
readonly IDE_REMOTE_DEBUG_CONNECTION_QUALITY: "IDE_REMOTE_DEBUG_CONNECTION_QUALITY";
|
128
|
+
readonly IDE_LOCAL_COMPILE_TRACE: "IDE_LOCAL_COMPILE_TRACE";
|
128
129
|
readonly IDE_REMOTE_DEBUG_EXCEPTION: "IDE_REMOTE_DEBUG_EXCEPTION";
|
129
130
|
readonly IDE_MODULE_AUTH_FORCE_LOGOUT: "IDE_MODULE_AUTH_FORCE_LOGOUT";
|
130
131
|
readonly IDE_CANVAS_WEBGL_CONTEXT_ENABLE: "IDE_CANVAS_WEBGL_CONTEXT_ENABLE";
|
@@ -133,6 +134,7 @@ export declare const SLARDAR_EVENT: {
|
|
133
134
|
readonly IDE_DECODE_QRCODE: "IDE_DECODE_QRCODE";
|
134
135
|
readonly IDE_DECODE_URL: "IDE_DECODE_URL";
|
135
136
|
readonly IDE_MAIN_HELPER_FORK_TIME: "IDE_MAIN_HELPER_FORK_TIME";
|
137
|
+
readonly IDE_MAIN_HELPER_ERROR: "IDE_MAIN_HELPER_ERROR";
|
136
138
|
readonly IDE_INSTALL_PATH: "IDE_INSTALL_PATH";
|
137
139
|
readonly IDE_SWITCH_WORKBENCH_MODE: "IDE_SWITCH_WORKBENCH_MODE";
|
138
140
|
readonly IDE_TOGGLE_REMOTE_VIEW: "IDE_TOGGLE_REMOTE_VIEW";
|
@@ -147,6 +149,18 @@ export declare const SLARDAR_EVENT: {
|
|
147
149
|
readonly IDE_WB_SCENE_END: "IDE_WB_SCENE_END";
|
148
150
|
readonly IDE_GECKO_ERROR: "IDE_GECKO_ERROR";
|
149
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";
|
150
164
|
readonly IDE_LOADER_IO_ERROR: string;
|
151
165
|
readonly IDE_LOADER_INSTALL_RECOVER_ERROR: string;
|
152
166
|
readonly IDE_LOADER_START_FROM_ENTRY: string;
|
@@ -188,6 +202,7 @@ export declare const IDE_MODULES: {
|
|
188
202
|
readonly UPLOAD: "UPLOAD";
|
189
203
|
readonly SIGN_CHECK: "SIGN_CHECK";
|
190
204
|
readonly INTELLIGENCE: "INTELLIGENCE";
|
205
|
+
readonly AI: "AI";
|
191
206
|
readonly SHARE_PROJECT: "SHARE_PROJECT";
|
192
207
|
readonly PROJECT_MANAGE: "PROJECT_MANAGE";
|
193
208
|
readonly PROJECT_DETAIL: "PROJECT_DETAIL";
|
@@ -199,6 +214,7 @@ export declare const IDE_MODULES: {
|
|
199
214
|
readonly AVATAR: "AVATAR";
|
200
215
|
readonly UPDATE: "UPDATE";
|
201
216
|
readonly EDITOR_SAVE: "EDITOR_SAVE";
|
217
|
+
readonly MAIN_HELPER: "MAIN_HELPER";
|
202
218
|
};
|
203
219
|
export declare const IDE_TIMELINE_NAMES: {
|
204
220
|
readonly SIMULATOR_FIRST_LOADING_END: "SIMULATOR_FIRST_LOADING_END";
|
@@ -220,6 +236,7 @@ export declare const IDE_TIMELINE_NAMES: {
|
|
220
236
|
readonly UPLOAD: "UPLOAD";
|
221
237
|
readonly SIGN_CHECK: "SIGN_CHECK";
|
222
238
|
readonly INTELLIGENCE: "INTELLIGENCE";
|
239
|
+
readonly AI: "AI";
|
223
240
|
readonly SHARE_PROJECT: "SHARE_PROJECT";
|
224
241
|
readonly PROJECT_MANAGE: "PROJECT_MANAGE";
|
225
242
|
readonly PROJECT_DETAIL: "PROJECT_DETAIL";
|
@@ -231,6 +248,7 @@ export declare const IDE_TIMELINE_NAMES: {
|
|
231
248
|
readonly AVATAR: "AVATAR";
|
232
249
|
readonly UPDATE: "UPDATE";
|
233
250
|
readonly EDITOR_SAVE: "EDITOR_SAVE";
|
251
|
+
readonly MAIN_HELPER: "MAIN_HELPER";
|
234
252
|
};
|
235
253
|
/**
|
236
254
|
* IDE 性能统计 ipc 事件收敛
|
@@ -42,6 +42,7 @@ export interface IProjectConfig extends IProject {
|
|
42
42
|
newFeature: boolean;
|
43
43
|
autoCompile?: boolean;
|
44
44
|
compileHotReLoad?: boolean;
|
45
|
+
nativeCompile?: boolean;
|
45
46
|
scripts?: boolean;
|
46
47
|
localPlugins?: boolean;
|
47
48
|
nodeModules?: boolean;
|
@@ -118,6 +119,7 @@ export declare class ProjectConfig extends JSONContainer<Partial<IProjectConfig>
|
|
118
119
|
getConditionData(conditionKeyName: keyof NonNullable<IProjectConfig['condition']>): ConditionData;
|
119
120
|
getAutoCompileSetting(): boolean;
|
120
121
|
getCompileHotReloadSetting(): boolean;
|
122
|
+
getNativeCompileSetting(): boolean;
|
121
123
|
getLocalPluginsSetting(): boolean;
|
122
124
|
getAfterOpenScript(): string;
|
123
125
|
getBeforeCompileScript(): string;
|
@@ -8,6 +8,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;
|
@@ -17,7 +18,7 @@ declare function buildNpmFunc(options: {
|
|
17
18
|
}): Promise<import("./features/npm").BuildNpmResult>;
|
18
19
|
declare function upload(options: UploadOption): Promise<ProjectQRCode>;
|
19
20
|
export { ProjectQRCode, ProjectToQRCodeOption };
|
20
|
-
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, };
|
21
22
|
export * from './features/meta';
|
22
23
|
export { folderToZipStream } from './features/packages';
|
23
24
|
export * from './utils/metrics';
|
@@ -4,4 +4,13 @@ export declare const getUserId: () => string;
|
|
4
4
|
export declare function saveUserCookies(cookies: string[], userId: string): void;
|
5
5
|
export declare function removeUserCookies(): void;
|
6
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
|
+
}>;
|
7
16
|
export {};
|
@@ -55,3 +55,4 @@ export declare function getMD5Stream(source: archiver.Archiver): Promise<Transfo
|
|
55
55
|
}>;
|
56
56
|
export declare const getNextVersion: (version: string) => string;
|
57
57
|
export declare const isGameFileValid: (pattern: string) => boolean;
|
58
|
+
export declare const isObject: (value: any) => boolean;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "tt-minigame-ide-cli",
|
3
|
-
"version": "2.0.
|
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
|
+
}
|