tt-minigame-ide-cli 2.0.10 → 2.0.11

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.
@@ -160,6 +160,9 @@ export declare const SLARDAR_EVENT: {
160
160
  readonly IDE_AI_ABNORMAL_REPLY: "IDE_AI_ABNORMAL_REPLY";
161
161
  readonly IDE_AI_BUTTON_SHOW: "IDE_AI_BUTTON_SHOW";
162
162
  readonly IDE_AI_STAY_DURATION: "IDE_AI_STAY_DURATION";
163
+ readonly IDE_AI_RESPONSE_TIME: "IDE_AI_RESPONSE_TIME";
164
+ readonly IDE_AI_STREAM_TIME: "IDE_AI_STREAM_TIME";
165
+ readonly IDE_WS_RECONNECT_FAILED: "IDE_WS_RECONNECT_FAILED";
163
166
  readonly IDE_DETAIL_CONFIG_ITEM_CLICK: "IDE_DETAIL_CONFIG_ITEM_CLICK";
164
167
  readonly IDE_WORKBENCH_VIEW_STATUS: "IDE_WORKBENCH_VIEW_STATUS";
165
168
  readonly IDE_POWER_EVENT: "IDE_POWER_EVENT";
@@ -1,3 +1,11 @@
1
+ declare enum PUBLISH_TYPE {
2
+ ONLY_ANDROID_NATIVE = "0",
3
+ ANDROID_NATIVE_AND_IOS_WEBGL = "1",
4
+ BOTH_WEBGL = "2",
5
+ ONLY_ANDROID_WEBGL = "3",
6
+ ONLY_ANDROID_INSTANT_GAME = "4",
7
+ ANDROID_INSTANT_GAME_AND_IOS_WEBGL = "5"
8
+ }
1
9
  declare type UnityConfigType = {
2
10
  appid: string;
3
11
  build: {
@@ -9,7 +17,7 @@ declare type UnityConfigType = {
9
17
  };
10
18
  instantGame: string;
11
19
  };
12
- publishType: '0' | '1' | '2' | '3' | '4' | '5';
20
+ publishType: PUBLISH_TYPE;
13
21
  starkSdkVersion: string;
14
22
  unityToolsVersion: string;
15
23
  unityEngineVersion: string;
@@ -28,6 +36,11 @@ declare type UploadProps = {
28
36
  declare type QueryProgressProps = Pick<UploadProps, 'projectPath' | 'version' | 'ideUid'> & {
29
37
  updateStatus?: (status: number | string) => void;
30
38
  };
39
+ declare type CompileMode = {
40
+ scene?: string;
41
+ query?: string;
42
+ bdpLog?: string;
43
+ };
31
44
  export declare const unityCli: {
32
45
  getVersions: ({ projectPath, ideUid }: {
33
46
  projectPath: string;
@@ -97,9 +110,10 @@ export declare const unityCli: {
97
110
  deviceOrientation?: UnityGameJson['deviceOrientation'];
98
111
  output?: string;
99
112
  }) => Promise<void>;
100
- preview: ({ projectPath, ideUid, }: {
113
+ preview: ({ projectPath, ideUid, compileMode, }: {
101
114
  projectPath: string;
102
115
  ideUid?: string;
116
+ compileMode: CompileMode;
103
117
  }) => Promise<{
104
118
  code: number;
105
119
  data: {
@@ -109,10 +123,13 @@ export declare const unityCli: {
109
123
  };
110
124
  msg: string;
111
125
  }>;
112
- makeSchema: ({ appId, ideConfig, ctime, }: {
126
+ makeSchema: ({ appId, ideConfig, ctime, scene, query, bdpLog, }: {
113
127
  appId: string;
114
128
  ideConfig: any;
115
129
  ctime: number;
130
+ scene?: string;
131
+ query?: string;
132
+ bdpLog?: string;
116
133
  }) => Promise<{
117
134
  code: number;
118
135
  data: {
@@ -122,9 +139,10 @@ export declare const unityCli: {
122
139
  };
123
140
  msg: string;
124
141
  }>;
125
- previewForCli: ({ projectPath, output, }: {
142
+ previewForCli: ({ projectPath, output, compileMode, }: {
126
143
  projectPath: string;
127
144
  output?: string;
145
+ compileMode: CompileMode;
128
146
  }) => Promise<{
129
147
  short_url: string;
130
148
  origin_schema: string;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tt-minigame-ide-cli",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Command line interface for micro app development",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -1,36 +0,0 @@
1
- import { microgame } from 'tt-ide-cli';
2
- import type { ProjectInfo } from 'tt-ide-cli/types';
3
- declare const preview: typeof microgame.preview, upload: typeof microgame.upload;
4
- export { loginByEmail, loginByPhone, checkSession, buildNpm, setConfig, logout, } from 'tt-ide-cli';
5
- declare function open(options: {
6
- project: ProjectInfo;
7
- remotePort?: number;
8
- }): Promise<void>;
9
- declare const unity: {
10
- preview: ({ projectPath, output, }: {
11
- projectPath: string;
12
- output?: string;
13
- }) => Promise<{
14
- short_url: string;
15
- origin_schema: string;
16
- expire_time: number;
17
- }>;
18
- upload: (options: {
19
- projectPath: string;
20
- version: string;
21
- publishDesc?: string;
22
- ideUid?: number;
23
- } & Pick<{
24
- projectPath: string;
25
- version: string;
26
- publishDesc?: string;
27
- ideUid?: number;
28
- }, "projectPath" | "version" | "ideUid"> & {
29
- updateStatus?: (status: string | number) => void;
30
- } & {
31
- publishType?: "0" | "1" | "2" | "3" | "4" | "5";
32
- deviceOrientation?: "portrait" | "landscape";
33
- output?: string;
34
- }) => Promise<void>;
35
- };
36
- export { preview, upload, open, unity };