tt-minigame-ide-cli 2.0.16 → 2.1.0

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.
@@ -207,7 +207,12 @@ export declare const SLARDAR_EVENT: {
207
207
  readonly IDE_AI_AGENT_GENERATE: "IDE_AI_AGENT_GENERATE";
208
208
  readonly IDE_AI_AGENT_DIFF_ACTION: "IDE_AI_AGENT_DIFF_ACTION";
209
209
  readonly IDE_AI_AGENT_GEN_UI: "IDE_AI_AGENT_GEN_UI";
210
+ readonly IDE_AI_AGENT_CONTRIBUTION: "IDE_AI_AGENT_CONTRIBUTION";
211
+ readonly IDE_AI_AGENT_SUMMARY: "IDE_AI_AGENT_SUMMARY";
210
212
  readonly IDE_OPERATOR_TIME: "IDE_OPERATOR_TIME";
213
+ readonly IDE_DISK_USAGE: "IDE_DISK_USAGE";
214
+ readonly IDE_DISK_CLEAN_RESULT: "IDE_DISK_CLEAN_RESULT";
215
+ readonly IDE_AI_AGENT_CONTRIBUTION_CONFIG: "IDE_AI_AGENT_CONTRIBUTION_CONFIG";
211
216
  readonly IDE_LOADER_IO_ERROR: string;
212
217
  readonly IDE_LOADER_INSTALL_RECOVER_ERROR: string;
213
218
  readonly IDE_LOADER_START_FROM_ENTRY: string;
@@ -369,6 +374,7 @@ export declare const FRONT_PAGE_EVENT: {
369
374
  VELA_NEW_PROJECT_FAIL: string;
370
375
  VELA_SCHEMA_DOWNLOAD_MINICODE: string;
371
376
  VELA_SCHEMA_DOWNLOAD_MINICODE_FAIL: string;
377
+ IDE_DISK_USAGE: string;
372
378
  };
373
379
  export declare const PROJECT_TECH_TYPE: {
374
380
  PLAYABLE_GAME: number;
@@ -28,6 +28,7 @@ export interface IApp extends BaseApp {
28
28
  }>;
29
29
  enableIOSHighPerformanceMode?: boolean;
30
30
  enableIOSHighPerformanceModePlus?: boolean;
31
+ useMode?: 'razor';
31
32
  }
32
33
  /**
33
34
  * JSON object wrapper for `app.json`
@@ -65,7 +65,9 @@ export interface IProjectConfig extends IProject {
65
65
  bigPackageSizeSupport?: boolean;
66
66
  webDetect?: boolean;
67
67
  previewPreload?: boolean;
68
+ useRazor?: boolean;
68
69
  };
70
+ useRazor?: boolean;
69
71
  lynx?: {
70
72
  debugSchema?: Record<string, {
71
73
  schema: string;
@@ -29,7 +29,7 @@ export declare type E2ETestSdkInfo = {
29
29
  latestSDKUrl: string;
30
30
  sdkUpdateVersion: string;
31
31
  };
32
- export declare function fetchE2ETestSdk(): Promise<E2ETestSdkInfo | undefined>;
32
+ export declare function fetchE2ETestSdk(tmarVersion?: string): Promise<E2ETestSdkInfo | undefined>;
33
33
  export declare type TimeReporter = {
34
34
  startStep: (step: string) => () => void;
35
35
  finish: () => ({
@@ -37,3 +37,4 @@ export declare type TimeReporter = {
37
37
  });
38
38
  };
39
39
  export declare function createTimeReporter(): TimeReporter;
40
+ export declare function openAppByProtocol(appProtocol: string): Promise<unknown>;
@@ -2,6 +2,7 @@
2
2
  import { PassThrough, Stream } from 'stream';
3
3
  import { NATIVE_FULL_APK_NAME, NATIVE_APK_NAME, NATIVE_IL2CPP_NAME } from './mixed-constant';
4
4
  import { SizeLimitConfig } from './source.type';
5
+ import { ISubPackage } from '@byted/miniprogram-utils/dist/data/schema/base';
5
6
  import { checkAppId, getAppId } from './package';
6
7
  /** 不参与体积计算的 glob pattern */
7
8
  export declare const PKG_SIZE_IGNORE_GLOBS: string[];
@@ -18,6 +19,25 @@ export declare function verifyPkgSize(devAppid: string, projectPath: string, opt
18
19
  isUpload: boolean;
19
20
  }): Promise<string>;
20
21
  declare type NativeFileName = typeof NATIVE_APK_NAME | typeof NATIVE_FULL_APK_NAME | typeof NATIVE_IL2CPP_NAME;
22
+ declare type GetProjectEntriesReturn = {
23
+ main: string[] | null;
24
+ subPkgs: Array<ISubPackage & {
25
+ entries: string[];
26
+ }> | null;
27
+ openData: string[] | null;
28
+ total: string[];
29
+ native: Partial<{
30
+ [K in NativeFileName]: string;
31
+ }>;
32
+ };
33
+ /**
34
+ * @description: 获取项目下的所有文件
35
+ * @return {*}
36
+ */
37
+ export declare const getProjectEntries: (projectPath: string, ignore?: string[], options?: {
38
+ withNative: boolean;
39
+ isUpload: boolean;
40
+ }) => Promise<GetProjectEntriesReturn>;
21
41
  export declare function getProjectSize(projectPath: string, options?: {
22
42
  withNative: boolean;
23
43
  isUpload: boolean;
@@ -26,6 +26,7 @@ export declare type IDEExtraInfo = {
26
26
  packages_token?: string;
27
27
  is_app_auto_test?: boolean;
28
28
  preload?: '0' | '1';
29
+ enableWebkitDebug?: boolean;
29
30
  };
30
31
  export interface IDEBaseConfig {
31
32
  previewScene: 'live' | 'default';
@@ -82,6 +83,7 @@ export declare type MakeSchemaOption = {
82
83
  pluginAppid?: string;
83
84
  previewPluginMode?: PreviewMode;
84
85
  xScreen?: boolean;
86
+ razorTmarVersion?: string;
85
87
  };
86
88
  export declare function makeSchema(options: MakeSchemaOption): Promise<MakeSchemaResult>;
87
89
  export declare function toQRCodeSVG(str: string): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tt-minigame-ide-cli",
3
- "version": "2.0.16",
3
+ "version": "2.1.0",
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
+ }