@be-link/smart-test 1.0.1-beta.25 → 1.0.1-beta.26

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.
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/run.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoHzE"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/run.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoHzE"}
@@ -1,38 +1,4 @@
1
- import type { AiConfig } from '../../core/types';
2
- /**
3
- * 配置文件结构
4
- */
5
- export interface SmartTestConfig {
6
- /**
7
- * AI API 配置
8
- */
9
- ai?: AiConfig;
10
- /**
11
- * 录制配置
12
- */
13
- recording?: {
14
- /**
15
- * 测试文件输出目录(相对于项目根目录)
16
- * @default 'tests/e2e'
17
- */
18
- testDir?: string;
19
- /**
20
- * Mock 文件输出目录(相对于项目根目录)
21
- * @default 'tests/mock'
22
- */
23
- mockDir?: string;
24
- /**
25
- * API 路径匹配模式(glob 格式)
26
- * 例如: 匹配所有 c-bff 下的路径
27
- */
28
- apiPathPattern?: string;
29
- /**
30
- * 排除的 API 路径模式(glob 格式)
31
- * 匹配这些模式的 API 不会被录制
32
- */
33
- excludeApiPatterns?: string[];
34
- };
35
- }
1
+ import type { SmartTestConfig } from '../../core/types';
36
2
  /**
37
3
  * 查找并加载配置文件
38
4
  * 支持 smart-test.config.ts/js/json(优先级递减)
@@ -1 +1 @@
1
- {"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../../../src/cli/loaders/config-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE;QACV;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;WAGG;QACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC/B,CAAC;CACH;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CA4BtE"}
1
+ {"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../../../src/cli/loaders/config-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD;;;GAGG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CA4BtE"}
@@ -0,0 +1,36 @@
1
+ import type { AiConfig } from './ai.types';
2
+ /**
3
+ * Smart Test 配置文件结构
4
+ */
5
+ export interface SmartTestConfig {
6
+ /**
7
+ * AI API 配置
8
+ */
9
+ ai?: AiConfig;
10
+ /**
11
+ * 录制配置
12
+ */
13
+ recording?: {
14
+ /**
15
+ * 测试文件输出目录(相对于项目根目录)
16
+ * @default 'tests/e2e'
17
+ */
18
+ testDir?: string;
19
+ /**
20
+ * Mock 文件输出目录(相对于项目根目录)
21
+ * @default 'tests/mock'
22
+ */
23
+ mockDir?: string;
24
+ /**
25
+ * API 路径匹配模式(glob 格式)
26
+ * 例如: 匹配所有 c-bff 下的路径
27
+ */
28
+ apiPathPattern?: string;
29
+ /**
30
+ * 排除的 API 路径模式(glob 格式)
31
+ * 匹配这些模式的 API 不会被录制
32
+ */
33
+ excludeApiPatterns?: string[];
34
+ };
35
+ }
36
+ //# sourceMappingURL=config.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../src/core/types/config.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE;QACV;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;WAGG;QACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC/B,CAAC;CACH"}
@@ -3,5 +3,6 @@
3
3
  */
4
4
  export type { AiTaskType, AiConfig, AiCodeGenerationResult } from './ai.types';
5
5
  export type { ApiRecord } from './api.types';
6
+ export type { SmartTestConfig } from './config.types';
6
7
  export type { UserAction, RecordingSession, RecorderOptions, TestCaseInput, RecordingPreset, ViewportPreset, } from './recorder.types';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC/E,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,eAAe,EACf,cAAc,GACf,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC/E,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,eAAe,EACf,cAAc,GACf,MAAM,kBAAkB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  export { MockGenerator, TestGenerator } from './generators';
8
8
  export { InteractiveRecorder } from './recorders';
9
9
  export { RecordAndGenerateWorkflow } from './workflows/record-and-generate';
10
- export type { AiConfig, AiCodeGenerationResult, ApiRecord, UserAction, RecordingSession, RecorderOptions, } from './core/types';
10
+ export type { AiConfig, AiCodeGenerationResult, ApiRecord, UserAction, RecordingSession, RecorderOptions, SmartTestConfig, } from './core/types';
11
11
  export type { MockGeneratorOptions, TestGeneratorOptions } from './generators';
12
12
  export type { RecordAndGenerateOptions, GenerateResult } from './workflows/record-and-generate';
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAG5E,YAAY,EACV,QAAQ,EACR,sBAAsB,EACtB,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,eAAe,GAChB,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE/E,YAAY,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAG5E,YAAY,EACV,QAAQ,EACR,sBAAsB,EACtB,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,eAAe,GAChB,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE/E,YAAY,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/smart-test",
3
- "version": "1.0.1-beta.25",
3
+ "version": "1.0.1-beta.26",
4
4
  "description": "AI-powered visual testing for Playwright - 基于 AI 视觉模型的 Playwright 测试工具",
5
5
  "homepage": "https://github.com/snowmountain-top/be-link",
6
6
  "author": "shian",