@oalacea/daemon 0.5.0 → 0.6.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.
- package/LICENSE +23 -23
- package/README.md +147 -141
- package/bin/Dockerfile +75 -74
- package/dist/cli/cli.d.ts +42 -0
- package/dist/cli/cli.d.ts.map +1 -0
- package/dist/cli/cli.js +89 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/cli/commands/detect.command.d.ts +39 -0
- package/dist/cli/commands/detect.command.d.ts.map +1 -0
- package/dist/cli/commands/detect.command.js +111 -0
- package/dist/cli/commands/detect.command.js.map +1 -0
- package/dist/cli/commands/index.d.ts +14 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +11 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/init.command.d.ts +41 -0
- package/dist/cli/commands/init.command.d.ts.map +1 -0
- package/dist/cli/commands/init.command.js +111 -0
- package/dist/cli/commands/init.command.js.map +1 -0
- package/dist/cli/commands/test.command.d.ts +58 -0
- package/dist/cli/commands/test.command.d.ts.map +1 -0
- package/dist/cli/commands/test.command.js +180 -0
- package/dist/cli/commands/test.command.js.map +1 -0
- package/dist/cli/index.d.ts +8 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +10 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/core/config/daemon.config.d.ts +32 -0
- package/dist/core/config/daemon.config.d.ts.map +1 -0
- package/dist/core/config/daemon.config.js +83 -0
- package/dist/core/config/daemon.config.js.map +1 -0
- package/dist/core/config/index.d.ts +5 -0
- package/dist/core/config/index.d.ts.map +1 -0
- package/dist/core/config/index.js +5 -0
- package/dist/core/config/index.js.map +1 -0
- package/dist/core/constants.d.ts +36 -0
- package/dist/core/constants.d.ts.map +1 -0
- package/dist/core/constants.js +56 -0
- package/dist/core/constants.js.map +1 -0
- package/dist/core/types/common.types.d.ts +250 -0
- package/dist/core/types/common.types.d.ts.map +1 -0
- package/dist/core/types/common.types.js +7 -0
- package/dist/core/types/common.types.js.map +1 -0
- package/dist/core/types/detection.types.d.ts +232 -0
- package/dist/core/types/detection.types.d.ts.map +1 -0
- package/dist/core/types/detection.types.js +22 -0
- package/dist/core/types/detection.types.js.map +1 -0
- package/dist/core/types/docker.types.d.ts +322 -0
- package/dist/core/types/docker.types.d.ts.map +1 -0
- package/dist/core/types/docker.types.js +7 -0
- package/dist/core/types/docker.types.js.map +1 -0
- package/dist/core/types/index.d.ts +11 -0
- package/dist/core/types/index.d.ts.map +1 -0
- package/dist/core/types/index.js +7 -0
- package/dist/core/types/index.js.map +1 -0
- package/dist/core/types/project.types.d.ts +74 -0
- package/dist/core/types/project.types.d.ts.map +1 -0
- package/dist/core/types/project.types.js +7 -0
- package/dist/core/types/project.types.js.map +1 -0
- package/dist/core/types/shared.types.d.ts +118 -0
- package/dist/core/types/shared.types.d.ts.map +1 -0
- package/dist/core/types/shared.types.js +7 -0
- package/dist/core/types/shared.types.js.map +1 -0
- package/dist/core/types/test.types.d.ts +230 -0
- package/dist/core/types/test.types.d.ts.map +1 -0
- package/dist/core/types/test.types.js +7 -0
- package/dist/core/types/test.types.js.map +1 -0
- package/dist/services/detection/__tests__/framework-detector.test.d.ts +5 -0
- package/dist/services/detection/__tests__/framework-detector.test.d.ts.map +1 -0
- package/dist/services/detection/__tests__/framework-detector.test.js +52 -0
- package/dist/services/detection/__tests__/framework-detector.test.js.map +1 -0
- package/dist/services/detection/framework-detector.d.ts +179 -0
- package/dist/services/detection/framework-detector.d.ts.map +1 -0
- package/dist/services/detection/framework-detector.js +636 -0
- package/dist/services/detection/framework-detector.js.map +1 -0
- package/dist/services/detection/index.d.ts +10 -0
- package/dist/services/detection/index.d.ts.map +1 -0
- package/dist/services/detection/index.js +7 -0
- package/dist/services/detection/index.js.map +1 -0
- package/dist/services/docker/__tests__/docker-manager.test.d.ts +5 -0
- package/dist/services/docker/__tests__/docker-manager.test.d.ts.map +1 -0
- package/dist/services/docker/__tests__/docker-manager.test.js +67 -0
- package/dist/services/docker/__tests__/docker-manager.test.js.map +1 -0
- package/dist/services/docker/docker-manager.d.ts +157 -0
- package/dist/services/docker/docker-manager.d.ts.map +1 -0
- package/dist/services/docker/docker-manager.js +516 -0
- package/dist/services/docker/docker-manager.js.map +1 -0
- package/dist/services/docker/index.d.ts +9 -0
- package/dist/services/docker/index.d.ts.map +1 -0
- package/dist/services/docker/index.js +9 -0
- package/dist/services/docker/index.js.map +1 -0
- package/dist/services/index.d.ts +10 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +8 -0
- package/dist/services/index.js.map +1 -0
- package/dist/shared/errors/__tests__/base.error.test.d.ts +5 -0
- package/dist/shared/errors/__tests__/base.error.test.d.ts.map +1 -0
- package/dist/shared/errors/__tests__/base.error.test.js +61 -0
- package/dist/shared/errors/__tests__/base.error.test.js.map +1 -0
- package/dist/shared/errors/__tests__/command.error.test.d.ts +5 -0
- package/dist/shared/errors/__tests__/command.error.test.d.ts.map +1 -0
- package/dist/shared/errors/__tests__/command.error.test.js +62 -0
- package/dist/shared/errors/__tests__/command.error.test.js.map +1 -0
- package/dist/shared/errors/__tests__/file.error.test.d.ts +5 -0
- package/dist/shared/errors/__tests__/file.error.test.d.ts.map +1 -0
- package/dist/shared/errors/__tests__/file.error.test.js +75 -0
- package/dist/shared/errors/__tests__/file.error.test.js.map +1 -0
- package/dist/shared/errors/__tests__/index.test.d.ts +5 -0
- package/dist/shared/errors/__tests__/index.test.d.ts.map +1 -0
- package/dist/shared/errors/__tests__/index.test.js +62 -0
- package/dist/shared/errors/__tests__/index.test.js.map +1 -0
- package/dist/shared/errors/__tests__/validation.error.test.d.ts +5 -0
- package/dist/shared/errors/__tests__/validation.error.test.d.ts.map +1 -0
- package/dist/shared/errors/__tests__/validation.error.test.js +79 -0
- package/dist/shared/errors/__tests__/validation.error.test.js.map +1 -0
- package/dist/shared/errors/base.error.d.ts +54 -0
- package/dist/shared/errors/base.error.d.ts.map +1 -0
- package/dist/shared/errors/base.error.js +85 -0
- package/dist/shared/errors/base.error.js.map +1 -0
- package/dist/shared/errors/command.error.d.ts +58 -0
- package/dist/shared/errors/command.error.d.ts.map +1 -0
- package/dist/shared/errors/command.error.js +102 -0
- package/dist/shared/errors/command.error.js.map +1 -0
- package/dist/shared/errors/detection.error.d.ts +42 -0
- package/dist/shared/errors/detection.error.d.ts.map +1 -0
- package/dist/shared/errors/detection.error.js +82 -0
- package/dist/shared/errors/detection.error.js.map +1 -0
- package/dist/shared/errors/docker.error.d.ts +142 -0
- package/dist/shared/errors/docker.error.d.ts.map +1 -0
- package/dist/shared/errors/docker.error.js +172 -0
- package/dist/shared/errors/docker.error.js.map +1 -0
- package/dist/shared/errors/file.error.d.ts +66 -0
- package/dist/shared/errors/file.error.d.ts.map +1 -0
- package/dist/shared/errors/file.error.js +93 -0
- package/dist/shared/errors/file.error.js.map +1 -0
- package/dist/shared/errors/index.d.ts +56 -0
- package/dist/shared/errors/index.d.ts.map +1 -0
- package/dist/shared/errors/index.js +86 -0
- package/dist/shared/errors/index.js.map +1 -0
- package/dist/shared/errors/validation.error.d.ts +67 -0
- package/dist/shared/errors/validation.error.d.ts.map +1 -0
- package/dist/shared/errors/validation.error.js +97 -0
- package/dist/shared/errors/validation.error.js.map +1 -0
- package/dist/shared/templates/index.d.ts +2 -0
- package/dist/shared/templates/index.d.ts.map +1 -0
- package/dist/shared/templates/index.js +2 -0
- package/dist/shared/templates/index.js.map +1 -0
- package/dist/shared/templates/prompt-builder.d.ts +2 -0
- package/dist/shared/templates/prompt-builder.d.ts.map +1 -0
- package/dist/shared/templates/prompt-builder.js +2 -0
- package/dist/shared/templates/prompt-builder.js.map +1 -0
- package/dist/shared/templates/template-engine.d.ts +2 -0
- package/dist/shared/templates/template-engine.d.ts.map +1 -0
- package/dist/shared/templates/template-engine.js +2 -0
- package/dist/shared/templates/template-engine.js.map +1 -0
- package/dist/shared/utils/__tests__/command-executor.test.d.ts +5 -0
- package/dist/shared/utils/__tests__/command-executor.test.d.ts.map +1 -0
- package/dist/shared/utils/__tests__/command-executor.test.js +45 -0
- package/dist/shared/utils/__tests__/command-executor.test.js.map +1 -0
- package/dist/shared/utils/__tests__/file-helper.test.d.ts +5 -0
- package/dist/shared/utils/__tests__/file-helper.test.d.ts.map +1 -0
- package/dist/shared/utils/__tests__/file-helper.test.js +71 -0
- package/dist/shared/utils/__tests__/file-helper.test.js.map +1 -0
- package/dist/shared/utils/__tests__/logger.test.d.ts +5 -0
- package/dist/shared/utils/__tests__/logger.test.d.ts.map +1 -0
- package/dist/shared/utils/__tests__/logger.test.js +83 -0
- package/dist/shared/utils/__tests__/logger.test.js.map +1 -0
- package/dist/shared/utils/command-executer.d.ts +2 -0
- package/dist/shared/utils/command-executer.d.ts.map +1 -0
- package/dist/shared/utils/command-executer.js +2 -0
- package/dist/shared/utils/command-executer.js.map +1 -0
- package/dist/shared/utils/command-executor.d.ts +255 -0
- package/dist/shared/utils/command-executor.d.ts.map +1 -0
- package/dist/shared/utils/command-executor.js +287 -0
- package/dist/shared/utils/command-executor.js.map +1 -0
- package/dist/shared/utils/file-helper.d.ts +86 -0
- package/dist/shared/utils/file-helper.d.ts.map +1 -0
- package/dist/shared/utils/file-helper.js +323 -0
- package/dist/shared/utils/file-helper.js.map +1 -0
- package/dist/shared/utils/index.d.ts +9 -0
- package/dist/shared/utils/index.d.ts.map +1 -0
- package/dist/shared/utils/index.js +9 -0
- package/dist/shared/utils/index.js.map +1 -0
- package/dist/shared/utils/logger.d.ts +163 -0
- package/dist/shared/utils/logger.d.ts.map +1 -0
- package/dist/shared/utils/logger.js +389 -0
- package/dist/shared/utils/logger.js.map +1 -0
- package/package.json +53 -34
- package/prompts/DEPS_EFFICIENCY.md +558 -558
- package/prompts/E2E.md +491 -491
- package/prompts/EXECUTE.md +1060 -1060
- package/prompts/INTEGRATION_API.md +484 -484
- package/prompts/INTEGRATION_DB.md +425 -425
- package/prompts/PERF_API.md +433 -433
- package/prompts/PERF_DB.md +430 -430
- package/prompts/PERF_FRONT.md +357 -357
- package/prompts/REMEDIATION.md +482 -482
- package/prompts/UNIT.md +260 -260
- package/templates/README.md +38 -38
- package/templates/k6/load-test.js +54 -54
- package/templates/playwright/e2e.spec.ts +61 -61
- package/templates/vitest/angular-component.test.ts +38 -38
- package/templates/vitest/api.test.ts +51 -51
- package/templates/vitest/component.test.ts +27 -27
- package/templates/vitest/hook.test.ts +36 -36
- package/templates/vitest/solid-component.test.ts +34 -34
- package/templates/vitest/svelte-component.test.ts +33 -33
- package/templates/vitest/vue-component.test.ts +39 -39
- package/CHANGELOG.md +0 -38
- package/agents/deps-analyzer.js +0 -366
- package/agents/detector.js +0 -570
- package/agents/fix-engine.js +0 -305
- package/agents/lighthouse-scanner.js +0 -405
- package/agents/perf-analyzer.js +0 -294
- package/agents/perf-front-analyzer.js +0 -229
- package/agents/test-generator.js +0 -387
- package/agents/test-runner.js +0 -318
- package/bin/cli.js +0 -449
- package/lib/config.js +0 -250
- package/lib/docker.js +0 -207
- package/lib/reporter.js +0 -297
- package/scripts/dev.js +0 -106
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detection Types
|
|
3
|
+
*
|
|
4
|
+
* Types for project detection and analysis results.
|
|
5
|
+
*/
|
|
6
|
+
import type { Framework, Language, TestRunner } from './project.types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Database type enumeration
|
|
9
|
+
*/
|
|
10
|
+
export type DatabaseType = 'Prisma Postgres' | 'Prisma MySQL' | 'Prisma SQLite' | 'Prisma MongoDB' | 'Prisma CockroachDB' | 'Prisma' | 'Drizzle ORM' | 'TypeORM' | 'MikroORM' | 'MongoDB (Mongoose)' | 'Neon Postgres' | 'Supabase Postgres' | 'PlanetScale MySQL' | 'Turso SQLite' | 'Local Database' | 'Railway' | 'Render' | 'None';
|
|
11
|
+
/**
|
|
12
|
+
* Dependency category
|
|
13
|
+
*/
|
|
14
|
+
export type DependencyCategory = 'Router' | 'State' | 'Query' | 'Forms' | 'UI' | 'Testing' | 'E2E' | 'Framework';
|
|
15
|
+
/**
|
|
16
|
+
* Test strategy enum
|
|
17
|
+
*/
|
|
18
|
+
export declare enum TestStrategy {
|
|
19
|
+
/** Wrap tests in transaction and rollback */
|
|
20
|
+
TransactionRollback = "transaction-rollback",
|
|
21
|
+
/** Truncate all tables after each test */
|
|
22
|
+
Truncate = "truncate",
|
|
23
|
+
/** Drop and recreate schema */
|
|
24
|
+
DropSchema = "drop-schema",
|
|
25
|
+
/** Use mock database */
|
|
26
|
+
Mock = "mock",
|
|
27
|
+
/** No isolation strategy */
|
|
28
|
+
None = "none"
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Pattern match type
|
|
32
|
+
*/
|
|
33
|
+
export type PatternType = 'file-exists' | 'package-json' | 'config-file' | 'content-match';
|
|
34
|
+
/**
|
|
35
|
+
* Base pattern interface
|
|
36
|
+
*/
|
|
37
|
+
export interface BasePattern {
|
|
38
|
+
/** Type of pattern */
|
|
39
|
+
type: PatternType;
|
|
40
|
+
/** File path relative to project root */
|
|
41
|
+
file: string;
|
|
42
|
+
/** Priority for scoring (higher = more specific) */
|
|
43
|
+
priority: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* File existence pattern
|
|
47
|
+
*/
|
|
48
|
+
export interface FileExistsPattern extends BasePattern {
|
|
49
|
+
type: 'file-exists';
|
|
50
|
+
/** Whether file should exist */
|
|
51
|
+
shouldExist: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Package JSON pattern
|
|
55
|
+
*/
|
|
56
|
+
export interface PackageJsonPattern extends BasePattern {
|
|
57
|
+
type: 'package-json';
|
|
58
|
+
/** Regex to match in package.json */
|
|
59
|
+
pattern: RegExp;
|
|
60
|
+
/** Check dependencies or devDependencies or both */
|
|
61
|
+
scope: 'dependencies' | 'devDependencies' | 'both';
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Content match pattern
|
|
65
|
+
*/
|
|
66
|
+
export interface ContentMatchPattern extends BasePattern {
|
|
67
|
+
type: 'content-match';
|
|
68
|
+
/** Regex to match in file content */
|
|
69
|
+
pattern: RegExp;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Combined pattern union
|
|
73
|
+
*/
|
|
74
|
+
export type DetectionPattern = FileExistsPattern | PackageJsonPattern | ContentMatchPattern;
|
|
75
|
+
/**
|
|
76
|
+
* Framework pattern configuration
|
|
77
|
+
*/
|
|
78
|
+
export interface FrameworkPattern {
|
|
79
|
+
/** Framework name */
|
|
80
|
+
name: Framework;
|
|
81
|
+
/** Detection patterns */
|
|
82
|
+
patterns: DetectionPattern[];
|
|
83
|
+
/** Frameworks that this pattern excludes */
|
|
84
|
+
excludes?: Framework[];
|
|
85
|
+
/** Confidence score threshold */
|
|
86
|
+
confidenceThreshold: number;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Database pattern configuration
|
|
90
|
+
*/
|
|
91
|
+
export interface DatabasePattern {
|
|
92
|
+
/** Database/ORM name */
|
|
93
|
+
name: DatabaseType;
|
|
94
|
+
/** Package name to detect */
|
|
95
|
+
packagePattern: RegExp;
|
|
96
|
+
/** Schema file path */
|
|
97
|
+
schemaPath?: string;
|
|
98
|
+
/** Provider pattern in schema */
|
|
99
|
+
providerPattern?: RegExp;
|
|
100
|
+
/** Default test strategy */
|
|
101
|
+
defaultStrategy: TestStrategy;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Test runner pattern configuration
|
|
105
|
+
*/
|
|
106
|
+
export interface TestRunnerPattern {
|
|
107
|
+
/** Test runner name */
|
|
108
|
+
name: TestRunner;
|
|
109
|
+
/** Package name to detect */
|
|
110
|
+
packagePattern: RegExp;
|
|
111
|
+
/** Config file names */
|
|
112
|
+
configFiles: string[];
|
|
113
|
+
/** File extensions for test files */
|
|
114
|
+
testExtensions: string[];
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Detection result for a single category
|
|
118
|
+
*/
|
|
119
|
+
export interface DetectionResult<T = string> {
|
|
120
|
+
/** Detected value */
|
|
121
|
+
value: T | null;
|
|
122
|
+
/** Confidence score (0-1) */
|
|
123
|
+
confidence: number;
|
|
124
|
+
/** Evidence/sources for the detection */
|
|
125
|
+
evidence: string[];
|
|
126
|
+
/** Alternative candidates with lower confidence */
|
|
127
|
+
alternatives?: Array<{
|
|
128
|
+
value: T;
|
|
129
|
+
confidence: number;
|
|
130
|
+
}>;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Dependency detection result
|
|
134
|
+
*/
|
|
135
|
+
export interface DependencyDetection {
|
|
136
|
+
/** Category */
|
|
137
|
+
category: DependencyCategory;
|
|
138
|
+
/** Detected package name */
|
|
139
|
+
packageName: string;
|
|
140
|
+
/** Version if found */
|
|
141
|
+
version?: string;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Coverage information
|
|
145
|
+
*/
|
|
146
|
+
export interface CoverageInfo {
|
|
147
|
+
/** Line coverage percentage */
|
|
148
|
+
lines: number;
|
|
149
|
+
/** Branch coverage percentage */
|
|
150
|
+
branches: number;
|
|
151
|
+
/** Function coverage percentage */
|
|
152
|
+
functions: number;
|
|
153
|
+
/** Statement coverage percentage */
|
|
154
|
+
statements: number;
|
|
155
|
+
/** Overall percentage */
|
|
156
|
+
total: number;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Test file count result
|
|
160
|
+
*/
|
|
161
|
+
export interface TestCountResult {
|
|
162
|
+
/** Total test files found */
|
|
163
|
+
total: number;
|
|
164
|
+
/** Breakdown by extension */
|
|
165
|
+
byExtension: Record<string, number>;
|
|
166
|
+
/** Test files in src directory */
|
|
167
|
+
inSrc: number;
|
|
168
|
+
/** Test files outside src directory */
|
|
169
|
+
outsideSrc: number;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Full detection results
|
|
173
|
+
*
|
|
174
|
+
* Complete output of project analysis
|
|
175
|
+
*/
|
|
176
|
+
export interface DetectionResults {
|
|
177
|
+
/** Framework detection */
|
|
178
|
+
framework: DetectionResult<Framework>;
|
|
179
|
+
/** Language detection */
|
|
180
|
+
language: DetectionResult<Language>;
|
|
181
|
+
/** Test runner detection */
|
|
182
|
+
testRunner: DetectionResult<TestRunner>;
|
|
183
|
+
/** Database detection */
|
|
184
|
+
database: DetectionResult<DatabaseType>;
|
|
185
|
+
/** Detected dependencies */
|
|
186
|
+
dependencies: DependencyDetection[];
|
|
187
|
+
/** Test file counts */
|
|
188
|
+
testCounts: TestCountResult;
|
|
189
|
+
/** Coverage if available */
|
|
190
|
+
coverage: CoverageInfo | null;
|
|
191
|
+
/** Analysis duration in milliseconds */
|
|
192
|
+
duration: number;
|
|
193
|
+
/** Analysis timestamp */
|
|
194
|
+
timestamp: Date;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Detection error types
|
|
198
|
+
*/
|
|
199
|
+
export type DetectionErrorType = 'project-not-found' | 'invalid-package-json' | 'access-denied' | 'timeout' | 'unknown';
|
|
200
|
+
/**
|
|
201
|
+
* Detection error
|
|
202
|
+
*/
|
|
203
|
+
export interface DetectionError {
|
|
204
|
+
/** Error type */
|
|
205
|
+
type: DetectionErrorType;
|
|
206
|
+
/** Error message */
|
|
207
|
+
message: string;
|
|
208
|
+
/** Path that caused the error */
|
|
209
|
+
path?: string;
|
|
210
|
+
/** Original error if available */
|
|
211
|
+
cause?: unknown;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Detection options
|
|
215
|
+
*/
|
|
216
|
+
export interface DetectionOptions {
|
|
217
|
+
/** Enable verbose logging */
|
|
218
|
+
verbose?: boolean;
|
|
219
|
+
/** Maximum time to spend detecting (ms) */
|
|
220
|
+
timeout?: number;
|
|
221
|
+
/** Specific patterns to detect */
|
|
222
|
+
targets?: Array<'framework' | 'language' | 'testRunner' | 'database' | 'dependencies'>;
|
|
223
|
+
/** Paths to exclude from scanning */
|
|
224
|
+
excludePaths?: string[];
|
|
225
|
+
/** Custom patterns to include */
|
|
226
|
+
customPatterns?: {
|
|
227
|
+
frameworks?: FrameworkPattern[];
|
|
228
|
+
databases?: DatabasePattern[];
|
|
229
|
+
testRunners?: TestRunnerPattern[];
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
//# sourceMappingURL=detection.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detection.types.d.ts","sourceRoot":"","sources":["../../../src/core/types/detection.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,oBAAoB,GACpB,QAAQ,GACR,aAAa,GACb,SAAS,GACT,UAAU,GACV,oBAAoB,GACpB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,cAAc,GACd,gBAAgB,GAChB,SAAS,GACT,QAAQ,GACR,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,OAAO,GACP,OAAO,GACP,OAAO,GACP,IAAI,GACJ,SAAS,GACT,KAAK,GACL,WAAW,CAAC;AAEhB;;GAEG;AACH,oBAAY,YAAY;IACtB,6CAA6C;IAC7C,mBAAmB,yBAAyB;IAC5C,0CAA0C;IAC1C,QAAQ,aAAa;IACrB,+BAA+B;IAC/B,UAAU,gBAAgB;IAC1B,wBAAwB;IACxB,IAAI,SAAS;IACb,4BAA4B;IAC5B,IAAI,SAAS;CACd;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,aAAa,GAAG,eAAe,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,sBAAsB;IACtB,IAAI,EAAE,WAAW,CAA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,cAAc,CAAC,EAAE;QACf,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;QAChC,SAAS,CAAC,EAAE,eAAe,EAAE,CAAC;QAC9B,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAC;KACnC,CAAC;CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detection Types
|
|
3
|
+
*
|
|
4
|
+
* Types for project detection and analysis results.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Test strategy enum
|
|
8
|
+
*/
|
|
9
|
+
export var TestStrategy;
|
|
10
|
+
(function (TestStrategy) {
|
|
11
|
+
/** Wrap tests in transaction and rollback */
|
|
12
|
+
TestStrategy["TransactionRollback"] = "transaction-rollback";
|
|
13
|
+
/** Truncate all tables after each test */
|
|
14
|
+
TestStrategy["Truncate"] = "truncate";
|
|
15
|
+
/** Drop and recreate schema */
|
|
16
|
+
TestStrategy["DropSchema"] = "drop-schema";
|
|
17
|
+
/** Use mock database */
|
|
18
|
+
TestStrategy["Mock"] = "mock";
|
|
19
|
+
/** No isolation strategy */
|
|
20
|
+
TestStrategy["None"] = "none";
|
|
21
|
+
})(TestStrategy || (TestStrategy = {}));
|
|
22
|
+
//# sourceMappingURL=detection.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detection.types.js","sourceRoot":"","sources":["../../../src/core/types/detection.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAwCH;;GAEG;AACH,MAAM,CAAN,IAAY,YAWX;AAXD,WAAY,YAAY;IACtB,6CAA6C;IAC7C,4DAA4C,CAAA;IAC5C,0CAA0C;IAC1C,qCAAqB,CAAA;IACrB,+BAA+B;IAC/B,0CAA0B,CAAA;IAC1B,wBAAwB;IACxB,6BAAa,CAAA;IACb,4BAA4B;IAC5B,6BAAa,CAAA;AACf,CAAC,EAXW,YAAY,KAAZ,YAAY,QAWvB"}
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docker Types
|
|
3
|
+
*
|
|
4
|
+
* Types for Docker container and image management.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Container status states
|
|
8
|
+
*/
|
|
9
|
+
export type ContainerStatus = 'created' | 'running' | 'paused' | 'restarting' | 'exited' | 'removing' | 'dead' | 'unknown';
|
|
10
|
+
/**
|
|
11
|
+
* Docker image architecture
|
|
12
|
+
*/
|
|
13
|
+
export type ImageArchitecture = 'amd64' | 'arm64' | 'arm/v7' | 'ppc64le' | 's390x' | 'unknown';
|
|
14
|
+
/**
|
|
15
|
+
* Docker command execution options
|
|
16
|
+
*/
|
|
17
|
+
export interface DockerExecOptions {
|
|
18
|
+
/** Working directory inside container */
|
|
19
|
+
workingDir?: string;
|
|
20
|
+
/** Environment variables */
|
|
21
|
+
env?: Record<string, string>;
|
|
22
|
+
/** Execute with specific user */
|
|
23
|
+
user?: string;
|
|
24
|
+
/** Timeout in milliseconds */
|
|
25
|
+
timeout?: number;
|
|
26
|
+
/** Whether to throw on error */
|
|
27
|
+
throwOnError?: boolean;
|
|
28
|
+
/** Capture stdout */
|
|
29
|
+
captureStdout?: boolean;
|
|
30
|
+
/** Capture stderr */
|
|
31
|
+
captureStderr?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Docker command execution result
|
|
35
|
+
*/
|
|
36
|
+
export interface DockerExecResult {
|
|
37
|
+
/** Exit code */
|
|
38
|
+
exitCode: number;
|
|
39
|
+
/** Standard output */
|
|
40
|
+
stdout: string;
|
|
41
|
+
/** Standard error */
|
|
42
|
+
stderr: string;
|
|
43
|
+
/** Whether command succeeded */
|
|
44
|
+
success: boolean;
|
|
45
|
+
/** Execution duration in milliseconds */
|
|
46
|
+
duration: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Docker container configuration
|
|
50
|
+
*/
|
|
51
|
+
export interface DockerConfig {
|
|
52
|
+
/** Container name */
|
|
53
|
+
containerName: string;
|
|
54
|
+
/** Image name */
|
|
55
|
+
imageName: string;
|
|
56
|
+
/** Docker file path */
|
|
57
|
+
dockerfilePath?: string;
|
|
58
|
+
/** Build context directory */
|
|
59
|
+
buildContext?: string;
|
|
60
|
+
/** Port mappings (host:container) */
|
|
61
|
+
portMappings?: Record<string, number>;
|
|
62
|
+
/** Volume mappings (host:container) */
|
|
63
|
+
volumeMappings?: Record<string, string>;
|
|
64
|
+
/** Environment variables */
|
|
65
|
+
environment?: Record<string, string>;
|
|
66
|
+
/** Network to attach to */
|
|
67
|
+
network?: string;
|
|
68
|
+
/** Auto-remove container on exit */
|
|
69
|
+
autoRemove?: boolean;
|
|
70
|
+
/** Detach mode */
|
|
71
|
+
detach?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Docker build options
|
|
75
|
+
*/
|
|
76
|
+
export interface DockerBuildOptions {
|
|
77
|
+
/** Docker file path */
|
|
78
|
+
dockerfile?: string;
|
|
79
|
+
/** Build context directory */
|
|
80
|
+
context?: string;
|
|
81
|
+
/** Build arguments */
|
|
82
|
+
buildArgs?: Record<string, string>;
|
|
83
|
+
/** Target stage for multi-stage builds */
|
|
84
|
+
target?: string;
|
|
85
|
+
/** Cache from images */
|
|
86
|
+
cacheFrom?: string[];
|
|
87
|
+
/** Build tags */
|
|
88
|
+
tags?: string[];
|
|
89
|
+
/** Suppress build output */
|
|
90
|
+
quiet?: boolean;
|
|
91
|
+
/** Platform to build for */
|
|
92
|
+
platform?: ImageArchitecture;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Docker create/run options
|
|
96
|
+
*/
|
|
97
|
+
export interface DockerCreateOptions {
|
|
98
|
+
/** Container name */
|
|
99
|
+
name?: string;
|
|
100
|
+
/** Port mappings (container:host) */
|
|
101
|
+
ports?: Record<number, number>;
|
|
102
|
+
/** Volume bindings */
|
|
103
|
+
volumes?: Array<string>;
|
|
104
|
+
/** Environment variables */
|
|
105
|
+
env?: Record<string, string>;
|
|
106
|
+
/** Environment variables from files */
|
|
107
|
+
envFile?: string[];
|
|
108
|
+
/** Working directory */
|
|
109
|
+
workdir?: string;
|
|
110
|
+
/** User to run as */
|
|
111
|
+
user?: string;
|
|
112
|
+
/** Hostname */
|
|
113
|
+
hostname?: string;
|
|
114
|
+
/** Auto-remove on exit */
|
|
115
|
+
autoRemove?: boolean;
|
|
116
|
+
/** Detach mode */
|
|
117
|
+
detach?: boolean;
|
|
118
|
+
/** Interactive mode */
|
|
119
|
+
interactive?: boolean;
|
|
120
|
+
/** Allocate pseudo-TTY */
|
|
121
|
+
tty?: boolean;
|
|
122
|
+
/** Network to attach to */
|
|
123
|
+
network?: string;
|
|
124
|
+
/** Command to run */
|
|
125
|
+
command?: string[];
|
|
126
|
+
/** Health check command */
|
|
127
|
+
healthcheck?: {
|
|
128
|
+
command: string[];
|
|
129
|
+
interval?: number;
|
|
130
|
+
timeout?: number;
|
|
131
|
+
retries?: number;
|
|
132
|
+
startPeriod?: number;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Docker container inspect result
|
|
137
|
+
*/
|
|
138
|
+
export interface ContainerInspectResult {
|
|
139
|
+
/** Container ID */
|
|
140
|
+
id: string;
|
|
141
|
+
/** Container name */
|
|
142
|
+
name: string;
|
|
143
|
+
/** Container status */
|
|
144
|
+
status: ContainerStatus;
|
|
145
|
+
/** Image ID */
|
|
146
|
+
imageId: string;
|
|
147
|
+
/** Image name */
|
|
148
|
+
imageName: string;
|
|
149
|
+
/** Created timestamp */
|
|
150
|
+
created: Date;
|
|
151
|
+
/** Port bindings */
|
|
152
|
+
ports: Record<string, Array<{
|
|
153
|
+
hostIp: string;
|
|
154
|
+
hostPort: string;
|
|
155
|
+
}>>;
|
|
156
|
+
/** Mounts */
|
|
157
|
+
mounts: Array<{
|
|
158
|
+
type: string;
|
|
159
|
+
source: string;
|
|
160
|
+
destination: string;
|
|
161
|
+
mode: string;
|
|
162
|
+
}>;
|
|
163
|
+
/** Network settings */
|
|
164
|
+
networkSettings: {
|
|
165
|
+
networks: Record<string, {
|
|
166
|
+
networkId: string;
|
|
167
|
+
ipAddress: string;
|
|
168
|
+
gateway: string;
|
|
169
|
+
macAddress: string;
|
|
170
|
+
}>;
|
|
171
|
+
};
|
|
172
|
+
/** State */
|
|
173
|
+
state: {
|
|
174
|
+
running: boolean;
|
|
175
|
+
paused: boolean;
|
|
176
|
+
restarting: boolean;
|
|
177
|
+
dead: boolean;
|
|
178
|
+
pid: number;
|
|
179
|
+
exitCode: number;
|
|
180
|
+
startedAt: Date;
|
|
181
|
+
finishedAt?: Date;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Docker image inspect result
|
|
186
|
+
*/
|
|
187
|
+
export interface ImageInspectResult {
|
|
188
|
+
/** Image ID */
|
|
189
|
+
id: string;
|
|
190
|
+
/** Image tags */
|
|
191
|
+
tags: string[];
|
|
192
|
+
/** Created timestamp */
|
|
193
|
+
created: Date;
|
|
194
|
+
/** Size in bytes */
|
|
195
|
+
size: number;
|
|
196
|
+
/** Virtual size */
|
|
197
|
+
virtualSize: number;
|
|
198
|
+
/** Architecture */
|
|
199
|
+
architecture: ImageArchitecture;
|
|
200
|
+
/** Operating system */
|
|
201
|
+
os: string;
|
|
202
|
+
/** Layers */
|
|
203
|
+
layers: string[];
|
|
204
|
+
/** History */
|
|
205
|
+
history: Array<{
|
|
206
|
+
created: Date;
|
|
207
|
+
createdBy: string;
|
|
208
|
+
size: number;
|
|
209
|
+
comment: string;
|
|
210
|
+
}>;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Docker log options
|
|
214
|
+
*/
|
|
215
|
+
export interface DockerLogOptions {
|
|
216
|
+
/** Number of lines to tail */
|
|
217
|
+
tail?: number;
|
|
218
|
+
/** Follow log output */
|
|
219
|
+
follow?: boolean;
|
|
220
|
+
/** Show timestamps */
|
|
221
|
+
timestamps?: boolean;
|
|
222
|
+
/** Only return stderr logs */
|
|
223
|
+
stderr?: boolean;
|
|
224
|
+
/** Only return stdout logs */
|
|
225
|
+
stdout?: boolean;
|
|
226
|
+
/** Since timestamp (Unix timestamp) */
|
|
227
|
+
since?: number;
|
|
228
|
+
/** Until timestamp (Unix timestamp) */
|
|
229
|
+
until?: number;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Docker result wrapper
|
|
233
|
+
*
|
|
234
|
+
* Standard result type for Docker operations
|
|
235
|
+
*/
|
|
236
|
+
export interface DockerResult<T = unknown> {
|
|
237
|
+
/** Whether operation succeeded */
|
|
238
|
+
success: boolean;
|
|
239
|
+
/** Result data if successful */
|
|
240
|
+
data?: T;
|
|
241
|
+
/** Error message if failed */
|
|
242
|
+
error?: string;
|
|
243
|
+
/** Operation duration in milliseconds */
|
|
244
|
+
duration: number;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Docker service health status
|
|
248
|
+
*/
|
|
249
|
+
export interface DockerHealthStatus {
|
|
250
|
+
/** Whether container is healthy */
|
|
251
|
+
healthy: boolean;
|
|
252
|
+
/** Health check status */
|
|
253
|
+
status: 'starting' | 'healthy' | 'unhealthy' | 'unknown';
|
|
254
|
+
/** Number of consecutive failures */
|
|
255
|
+
failingStreak: number;
|
|
256
|
+
/** Last check timestamp */
|
|
257
|
+
lastCheck: Date | null;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Docker volume info
|
|
261
|
+
*/
|
|
262
|
+
export interface DockerVolume {
|
|
263
|
+
/** Volume name */
|
|
264
|
+
name: string;
|
|
265
|
+
/** Driver name */
|
|
266
|
+
driver: string;
|
|
267
|
+
/** Mount point */
|
|
268
|
+
mountpoint: string;
|
|
269
|
+
/** Created timestamp */
|
|
270
|
+
created: Date;
|
|
271
|
+
/** Labels */
|
|
272
|
+
labels: Record<string, string>;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Docker network info
|
|
276
|
+
*/
|
|
277
|
+
export interface DockerNetwork {
|
|
278
|
+
/** Network ID */
|
|
279
|
+
id: string;
|
|
280
|
+
/** Network name */
|
|
281
|
+
name: string;
|
|
282
|
+
/** Driver name */
|
|
283
|
+
driver: string;
|
|
284
|
+
/** Scope (local/global) */
|
|
285
|
+
scope: string;
|
|
286
|
+
/** Subnet */
|
|
287
|
+
subnet?: string;
|
|
288
|
+
/** Gateway */
|
|
289
|
+
gateway?: string;
|
|
290
|
+
/** Created timestamp */
|
|
291
|
+
created: Date;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Docker system info
|
|
295
|
+
*/
|
|
296
|
+
export interface DockerSystemInfo {
|
|
297
|
+
/** Number of containers */
|
|
298
|
+
containers: number;
|
|
299
|
+
/** Number of running containers */
|
|
300
|
+
containersRunning: number;
|
|
301
|
+
/** Number of paused containers */
|
|
302
|
+
containersPaused: number;
|
|
303
|
+
/** Number of stopped containers */
|
|
304
|
+
containersStopped: number;
|
|
305
|
+
/** Number of images */
|
|
306
|
+
images: number;
|
|
307
|
+
/** Docker version */
|
|
308
|
+
version: string;
|
|
309
|
+
/** API version */
|
|
310
|
+
apiVersion: string;
|
|
311
|
+
/** Operating system */
|
|
312
|
+
operatingSystem: string;
|
|
313
|
+
/** Architecture */
|
|
314
|
+
architecture: ImageArchitecture;
|
|
315
|
+
/** Number of CPUs */
|
|
316
|
+
cpus: number;
|
|
317
|
+
/** Total memory in bytes */
|
|
318
|
+
memory: number;
|
|
319
|
+
/** Server hostname */
|
|
320
|
+
serverName: string;
|
|
321
|
+
}
|
|
322
|
+
//# sourceMappingURL=docker.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docker.types.d.ts","sourceRoot":"","sources":["../../../src/core/types/docker.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,MAAM,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AE,MAAM,CAAC;IACd,aAAa;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wBAAwB;IACxB,OAAO,EAAE,IAAI,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2BAA2B;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kCAAkC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,mCAAmC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uBAAuB;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB;IACnB,YAAY,EAAE,iBAAiB,CAAC;IAChC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docker.types.js","sourceRoot":"","sources":["../../../src/core/types/docker.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Types Barrel Export
|
|
3
|
+
*
|
|
4
|
+
* Centralized exports for all core types
|
|
5
|
+
*/
|
|
6
|
+
export type { Framework, Language, TestRunner, DatabaseInfo, ProjectContext, PackageJson, DaemonConfig, } from './project.types.js';
|
|
7
|
+
export type { PatternType, BasePattern, FileExistsPattern, PackageJsonPattern, ContentMatchPattern, DetectionPattern, FrameworkPattern, DatabasePattern, TestRunnerPattern, DetectionResult, DependencyDetection, CoverageInfo, TestCountResult, DetectionResults, DetectionErrorType, DetectionError, DetectionOptions, TestStrategy, DatabaseType, DependencyCategory, } from './detection.types.js';
|
|
8
|
+
export type { ContainerStatus, ImageArchitecture, DockerExecOptions, DockerExecResult, DockerConfig, DockerBuildOptions, DockerCreateOptions, ContainerInspectResult, ImageInspectResult, DockerLogOptions, DockerResult, DockerHealthStatus, DockerVolume, DockerNetwork, DockerSystemInfo, } from './docker.types.js';
|
|
9
|
+
export type { TestType, TestStatus, TestFormat, TestResult, TestSuiteResult, TestSummary, CoverageMetrics, CoverageReport, FileCoverage, TestGenerationOptions, TestGenerationResult, PerformanceThreshold, PerformanceTestResult, LoadTestConfig, LoadTestResult, } from './test.types.js';
|
|
10
|
+
export type { Result, SuccessType, ErrorType, BaseOptions, AsyncResult, Maybe, Nullable, Optional, DeepPartial, DeepReadonly, DeepRequired, ValueOf, Tuple, EnumValues, RequireKeys, OptionalKeys, Comparable, AsyncFunction, SyncFunction, AnyFunction, Constructor, AbstractConstructor, Class, Mutable, Prettify, EventListener, Observer, Observable, RetryOptions, ThrottleOptions, DebounceOptions, ProgressCallback, ProgressResult, } from './common.types.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EACV,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,cAAc,EACd,WAAW,EACX,YAAY,GACb,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EACV,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,eAAe,EACf,WAAW,EACX,eAAe,EACf,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,cAAc,GACf,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACV,MAAM,EACN,WAAW,EACX,SAAS,EACT,WAAW,EACX,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,UAAU,EACV,aAAa,EACb,YAAY,EACZ,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,KAAK,EACL,OAAO,EACP,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,cAAc,GACf,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|