laymos 0.0.2 → 0.0.3

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.
Files changed (133) hide show
  1. package/package.json +3 -3
  2. package/dist/architecture/analyze-project/analyze-project.d.ts +0 -9
  3. package/dist/architecture/analyze-project/analyze-project.d.ts.map +0 -1
  4. package/dist/architecture/analyze-project/analyze-project.js +0 -47
  5. package/dist/architecture/analyze-project/index.d.ts +0 -3
  6. package/dist/architecture/analyze-project/index.d.ts.map +0 -1
  7. package/dist/architecture/analyze-project/index.js +0 -1
  8. package/dist/architecture/build-report/build-report.d.ts +0 -7
  9. package/dist/architecture/build-report/build-report.d.ts.map +0 -1
  10. package/dist/architecture/build-report/build-report.js +0 -80
  11. package/dist/architecture/build-report/index.d.ts +0 -2
  12. package/dist/architecture/build-report/index.d.ts.map +0 -1
  13. package/dist/architecture/build-report/index.js +0 -1
  14. package/dist/architecture/errors.d.ts +0 -11
  15. package/dist/architecture/errors.d.ts.map +0 -1
  16. package/dist/architecture/errors.js +0 -3
  17. package/dist/architecture/extract-dependencies/extract-dependencies.d.ts +0 -12
  18. package/dist/architecture/extract-dependencies/extract-dependencies.d.ts.map +0 -1
  19. package/dist/architecture/extract-dependencies/extract-dependencies.js +0 -162
  20. package/dist/architecture/extract-dependencies/index.d.ts +0 -3
  21. package/dist/architecture/extract-dependencies/index.d.ts.map +0 -1
  22. package/dist/architecture/extract-dependencies/index.js +0 -1
  23. package/dist/architecture/resolve-architecture/index.d.ts +0 -3
  24. package/dist/architecture/resolve-architecture/index.d.ts.map +0 -1
  25. package/dist/architecture/resolve-architecture/index.js +0 -1
  26. package/dist/architecture/resolve-architecture/resolve-architecture.d.ts +0 -24
  27. package/dist/architecture/resolve-architecture/resolve-architecture.d.ts.map +0 -1
  28. package/dist/architecture/resolve-architecture/resolve-architecture.js +0 -74
  29. package/dist/architecture/validate-rules/index.d.ts +0 -3
  30. package/dist/architecture/validate-rules/index.d.ts.map +0 -1
  31. package/dist/architecture/validate-rules/index.js +0 -1
  32. package/dist/architecture/validate-rules/validate-rules.d.ts +0 -10
  33. package/dist/architecture/validate-rules/validate-rules.d.ts.map +0 -1
  34. package/dist/architecture/validate-rules/validate-rules.js +0 -80
  35. package/dist/cli/deps/dependency-tree.d.ts +0 -3
  36. package/dist/cli/deps/dependency-tree.d.ts.map +0 -1
  37. package/dist/cli/deps/dependency-tree.js +0 -39
  38. package/dist/cli/deps/deps.d.ts +0 -7
  39. package/dist/cli/deps/deps.d.ts.map +0 -1
  40. package/dist/cli/deps/deps.js +0 -26
  41. package/dist/cli/deps/index.d.ts +0 -2
  42. package/dist/cli/deps/index.d.ts.map +0 -1
  43. package/dist/cli/deps/index.js +0 -2
  44. package/dist/config/define-config.d.ts +0 -8
  45. package/dist/config/define-config.d.ts.map +0 -1
  46. package/dist/config/define-config.js +0 -373
  47. package/dist/config/index.d.ts +0 -11
  48. package/dist/config/index.d.ts.map +0 -1
  49. package/dist/config/index.js +0 -6
  50. package/dist/config/layer-graph.d.ts +0 -7
  51. package/dist/config/layer-graph.d.ts.map +0 -1
  52. package/dist/config/layer-graph.js +0 -26
  53. package/dist/config/layer.d.ts +0 -5
  54. package/dist/config/layer.d.ts.map +0 -1
  55. package/dist/config/layer.js +0 -8
  56. package/dist/config/load-config/index.d.ts +0 -2
  57. package/dist/config/load-config/index.d.ts.map +0 -1
  58. package/dist/config/load-config/index.js +0 -1
  59. package/dist/config/load-config/load-config.d.ts +0 -34
  60. package/dist/config/load-config/load-config.d.ts.map +0 -1
  61. package/dist/config/load-config/load-config.js +0 -127
  62. package/dist/config/module.d.ts +0 -11
  63. package/dist/config/module.d.ts.map +0 -1
  64. package/dist/config/module.js +0 -22
  65. package/dist/config/path.d.ts +0 -4
  66. package/dist/config/path.d.ts.map +0 -1
  67. package/dist/config/path.js +0 -32
  68. package/dist/config/project-narrative.d.ts +0 -15
  69. package/dist/config/project-narrative.d.ts.map +0 -1
  70. package/dist/config/project-narrative.js +0 -11
  71. package/dist/config/types.d.ts +0 -38
  72. package/dist/config/types.d.ts.map +0 -1
  73. package/dist/config/types.js +0 -1
  74. package/dist/domain/architecture-analysis/modules/unexposed-modules.d.ts +0 -3
  75. package/dist/domain/architecture-analysis/modules/unexposed-modules.d.ts.map +0 -1
  76. package/dist/domain/architecture-analysis/modules/unexposed-modules.js +0 -10
  77. package/dist/domain/project-config/validation/modules/containment.d.ts +0 -3
  78. package/dist/domain/project-config/validation/modules/containment.d.ts.map +0 -1
  79. package/dist/domain/project-config/validation/modules/containment.js +0 -24
  80. package/dist/domain/project-config/validation/modules/kinds.d.ts +0 -3
  81. package/dist/domain/project-config/validation/modules/kinds.d.ts.map +0 -1
  82. package/dist/domain/project-config/validation/modules/kinds.js +0 -18
  83. package/dist/domain/project-config/validation/modules/nested.d.ts +0 -3
  84. package/dist/domain/project-config/validation/modules/nested.d.ts.map +0 -1
  85. package/dist/domain/project-config/validation/modules/nested.js +0 -34
  86. package/dist/domain/project-config/validation/modules/subpaths.d.ts +0 -3
  87. package/dist/domain/project-config/validation/modules/subpaths.d.ts.map +0 -1
  88. package/dist/domain/project-config/validation/modules/subpaths.js +0 -40
  89. package/dist/entrypoints/cli/cli.d.ts +0 -3
  90. package/dist/entrypoints/cli/cli.d.ts.map +0 -1
  91. package/dist/entrypoints/cli/cli.js +0 -6
  92. package/dist/entrypoints/cli/run.d.ts +0 -13
  93. package/dist/entrypoints/cli/run.d.ts.map +0 -1
  94. package/dist/entrypoints/cli/run.js +0 -155
  95. package/dist/entrypoints/cli/test-output.d.ts +0 -17
  96. package/dist/entrypoints/cli/test-output.d.ts.map +0 -1
  97. package/dist/entrypoints/cli/test-output.js +0 -244
  98. package/dist/entrypoints/node/index.d.ts +0 -24
  99. package/dist/entrypoints/node/index.d.ts.map +0 -1
  100. package/dist/entrypoints/node/index.js +0 -27
  101. package/dist/entrypoints/report/index.d.ts +0 -2
  102. package/dist/entrypoints/report/index.d.ts.map +0 -1
  103. package/dist/entrypoints/report/index.js +0 -1
  104. package/dist/markdown/index.d.ts +0 -3
  105. package/dist/markdown/index.d.ts.map +0 -1
  106. package/dist/markdown/index.js +0 -1
  107. package/dist/markdown/markdown.d.ts +0 -7
  108. package/dist/markdown/markdown.d.ts.map +0 -1
  109. package/dist/markdown/markdown.js +0 -13
  110. package/dist/orchestrator/query-dependencies/index.d.ts +0 -3
  111. package/dist/orchestrator/query-dependencies/index.d.ts.map +0 -1
  112. package/dist/orchestrator/query-dependencies/index.js +0 -4
  113. package/dist/orchestrator/query-dependencies/query-dependencies.d.ts +0 -12
  114. package/dist/orchestrator/query-dependencies/query-dependencies.d.ts.map +0 -1
  115. package/dist/orchestrator/query-dependencies/query-dependencies.js +0 -20
  116. package/dist/report/architecture.d.ts +0 -104
  117. package/dist/report/architecture.d.ts.map +0 -1
  118. package/dist/report/architecture.js +0 -1
  119. package/dist/report/index.d.ts +0 -4
  120. package/dist/report/index.d.ts.map +0 -1
  121. package/dist/report/index.js +0 -2
  122. package/dist/report/tests.d.ts +0 -411
  123. package/dist/report/tests.d.ts.map +0 -1
  124. package/dist/report/tests.js +0 -102
  125. package/dist/tests/authoring/index.d.ts +0 -72
  126. package/dist/tests/authoring/index.d.ts.map +0 -1
  127. package/dist/tests/authoring/index.js +0 -312
  128. package/dist/tests/run-tests/index.d.ts +0 -3
  129. package/dist/tests/run-tests/index.d.ts.map +0 -1
  130. package/dist/tests/run-tests/index.js +0 -1
  131. package/dist/tests/run-tests/run-tests.d.ts +0 -26
  132. package/dist/tests/run-tests/run-tests.d.ts.map +0 -1
  133. package/dist/tests/run-tests/run-tests.js +0 -284
@@ -1,104 +0,0 @@
1
- export interface ReportLayer {
2
- readonly paths: readonly string[];
3
- readonly description?: string;
4
- }
5
- export interface ReportLayerEdge {
6
- readonly from: string;
7
- readonly to: string;
8
- }
9
- export interface ReportGraph {
10
- readonly name: string;
11
- readonly layers: readonly string[];
12
- readonly edges: readonly ReportLayerEdge[];
13
- readonly description?: string;
14
- }
15
- export interface ReportModule {
16
- readonly description?: string;
17
- readonly documentation?: string;
18
- }
19
- export interface ReportModuleRules {
20
- readonly module: string;
21
- readonly canImport?: readonly string[];
22
- readonly canImportedBy?: readonly string[];
23
- }
24
- export interface ReportArchitecture {
25
- readonly sourceRoots: readonly string[];
26
- readonly layers: Readonly<Record<string, ReportLayer>>;
27
- readonly graphs: readonly ReportGraph[];
28
- readonly modules: Readonly<Record<string, ReportModule>>;
29
- readonly moduleRules: readonly ReportModuleRules[];
30
- readonly ignoredPaths: readonly string[];
31
- }
32
- export type ReportFile = {
33
- readonly kind: 'ignored';
34
- readonly imports: readonly string[];
35
- } | {
36
- readonly kind: 'uncovered';
37
- readonly imports: readonly string[];
38
- } | {
39
- readonly kind: 'covered';
40
- readonly layer: string;
41
- readonly module?: string;
42
- readonly imports: readonly string[];
43
- };
44
- export interface LayerViolation {
45
- readonly kind: 'layer';
46
- readonly from: {
47
- readonly layer: string;
48
- readonly file: string;
49
- };
50
- readonly to: {
51
- readonly layer: string;
52
- readonly file: string;
53
- };
54
- }
55
- export interface ModuleViolation {
56
- readonly kind: 'module';
57
- readonly rule: 'canImport' | 'canImportedBy';
58
- readonly from: {
59
- readonly module: string;
60
- readonly layer: string;
61
- readonly file: string;
62
- };
63
- readonly to: {
64
- readonly module: string;
65
- readonly layer: string;
66
- readonly file: string;
67
- };
68
- }
69
- export type Violation = LayerViolation | ModuleViolation;
70
- export interface LayerCoverage {
71
- readonly totalFiles: number;
72
- readonly coveredFiles: number;
73
- readonly uncovered: readonly string[];
74
- }
75
- export interface ModuleCoverage {
76
- readonly layer: string;
77
- readonly totalFiles: number;
78
- readonly coveredFiles: number;
79
- readonly uncovered: readonly string[];
80
- }
81
- export interface Coverage {
82
- readonly layers: LayerCoverage;
83
- readonly modules: readonly ModuleCoverage[];
84
- }
85
- export type AnalysisWarning = {
86
- readonly kind: 'missing-source-root';
87
- readonly path: string;
88
- } | {
89
- readonly kind: 'missing-layer-path';
90
- readonly layer: string;
91
- readonly path: string;
92
- } | {
93
- readonly kind: 'missing-module-path';
94
- readonly module: string;
95
- readonly path: string;
96
- };
97
- export interface LaymosReport {
98
- readonly architecture: ReportArchitecture;
99
- readonly files: Readonly<Record<string, ReportFile>>;
100
- readonly violations: readonly Violation[];
101
- readonly coverage: Coverage;
102
- readonly warnings: readonly AnalysisWarning[];
103
- }
104
- //# sourceMappingURL=architecture.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"architecture.d.ts","sourceRoot":"","sources":["../../src/report/architecture.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;IAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5C;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;I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IACE,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEN,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,YAAY,EAAE,kBAAkB,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAC;CAC/C"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- export * from './architecture.js';
2
- export * from './tests.js';
3
- export type { ProjectNarrative } from '../config/project-narrative.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/report/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './architecture.js';
2
- export * from './tests.js';
@@ -1,411 +0,0 @@
1
- import { Schema } from 'effect';
2
- import type { CapturedEvent, CapturedLog, CapturedSpan } from '@pkishorez/effect-tracer/recorder';
3
- export type TestStatus = 'passed' | 'failed' | 'skipped' | 'pending';
4
- export type TestValue = string | number | boolean | null | readonly TestValue[] | {
5
- readonly [key: string]: TestValue;
6
- };
7
- export interface TestErrorReport {
8
- readonly name: string;
9
- readonly message: string;
10
- readonly stack?: string | undefined;
11
- readonly expected?: string | undefined;
12
- readonly actual?: string | undefined;
13
- readonly diff?: string | undefined;
14
- }
15
- export interface TestSourceLocation {
16
- readonly line: number;
17
- readonly column: number;
18
- }
19
- export interface TestAssertionEvidence {
20
- readonly name: string;
21
- readonly matcher: string;
22
- readonly status: 'passed' | 'failed';
23
- readonly actual?: TestValue | undefined;
24
- readonly expected?: TestValue | undefined;
25
- readonly error?: TestErrorReport | undefined;
26
- }
27
- export type TestTraceEvent = CapturedEvent;
28
- export type TestTraceLog = CapturedLog;
29
- export type TestTraceSpan = CapturedSpan;
30
- export interface LaymosTestEvidence {
31
- readonly description: string;
32
- readonly documentation?: string | undefined;
33
- readonly assertions: readonly TestAssertionEvidence[];
34
- readonly trace?: {
35
- readonly spans: readonly TestTraceSpan[];
36
- readonly logs: readonly TestTraceLog[];
37
- } | undefined;
38
- }
39
- export interface TestCaseReport {
40
- readonly id: string;
41
- readonly name: string;
42
- readonly fullName: string;
43
- readonly status: TestStatus;
44
- readonly duration: number;
45
- readonly errors: readonly TestErrorReport[];
46
- readonly location?: TestSourceLocation | undefined;
47
- readonly authoredBy?: 'laymos' | undefined;
48
- readonly evidence?: LaymosTestEvidence | undefined;
49
- }
50
- export interface TestSuiteReport {
51
- readonly id: string;
52
- readonly name: string;
53
- readonly description?: string | undefined;
54
- readonly documentation?: string | undefined;
55
- readonly status: TestStatus;
56
- readonly suites: readonly TestSuiteReport[];
57
- readonly cases: readonly TestCaseReport[];
58
- readonly errors: readonly TestErrorReport[];
59
- }
60
- export interface TestModuleReport {
61
- readonly id: string;
62
- readonly name: string;
63
- readonly path: string;
64
- readonly projectName: string;
65
- readonly status: TestStatus;
66
- readonly duration: number;
67
- readonly suites: readonly TestSuiteReport[];
68
- readonly cases: readonly TestCaseReport[];
69
- readonly errors: readonly TestErrorReport[];
70
- }
71
- export interface TestsReport {
72
- readonly status: 'passed' | 'failed';
73
- readonly duration: number;
74
- readonly modules: readonly TestModuleReport[];
75
- readonly unhandledErrors: readonly TestErrorReport[];
76
- }
77
- export declare const TestValueSchema: Schema.Codec<TestValue>;
78
- export declare const TestErrorReportSchema: Schema.Struct<{
79
- readonly name: Schema.String;
80
- readonly message: Schema.String;
81
- readonly stack: Schema.optional<Schema.String>;
82
- readonly expected: Schema.optional<Schema.String>;
83
- readonly actual: Schema.optional<Schema.String>;
84
- readonly diff: Schema.optional<Schema.String>;
85
- }>;
86
- export declare const TestSourceLocationSchema: Schema.Struct<{
87
- readonly line: Schema.Number;
88
- readonly column: Schema.Number;
89
- }>;
90
- export declare const TestAssertionEvidenceSchema: Schema.Struct<{
91
- readonly name: Schema.String;
92
- readonly matcher: Schema.String;
93
- readonly status: Schema.Literals<readonly ["passed", "failed"]>;
94
- readonly actual: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
95
- readonly expected: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
96
- readonly error: Schema.optional<Schema.Struct<{
97
- readonly name: Schema.String;
98
- readonly message: Schema.String;
99
- readonly stack: Schema.optional<Schema.String>;
100
- readonly expected: Schema.optional<Schema.String>;
101
- readonly actual: Schema.optional<Schema.String>;
102
- readonly diff: Schema.optional<Schema.String>;
103
- }>>;
104
- }>;
105
- export declare const TestTraceEventSchema: Schema.Struct<{
106
- readonly name: Schema.String;
107
- readonly timestamp: Schema.Number;
108
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
109
- }>;
110
- export declare const TestTraceLogSchema: Schema.Struct<{
111
- readonly spanId: Schema.NullOr<Schema.String>;
112
- readonly timestamp: Schema.Number;
113
- readonly level: Schema.Literals<readonly ["Fatal", "Error", "Warn", "Info", "Debug", "Trace"]>;
114
- readonly message: Schema.Codec<TestValue, TestValue, never, never>;
115
- readonly annotations: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
116
- }>;
117
- export declare const TestTraceSpanSchema: Schema.Struct<{
118
- readonly traceId: Schema.String;
119
- readonly spanId: Schema.String;
120
- readonly parentSpanId: Schema.NullOr<Schema.String>;
121
- readonly name: Schema.String;
122
- readonly startTime: Schema.Number;
123
- readonly endTime: Schema.NullOr<Schema.Number>;
124
- readonly status: Schema.Literals<readonly ["success", "error", "running", "unset"]>;
125
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
126
- readonly events: Schema.$Array<Schema.Struct<{
127
- readonly name: Schema.String;
128
- readonly timestamp: Schema.Number;
129
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
130
- }>>;
131
- }>;
132
- export declare const LaymosTestEvidenceSchema: Schema.Struct<{
133
- readonly description: Schema.String;
134
- readonly documentation: Schema.optional<Schema.String>;
135
- readonly assertions: Schema.$Array<Schema.Struct<{
136
- readonly name: Schema.String;
137
- readonly matcher: Schema.String;
138
- readonly status: Schema.Literals<readonly ["passed", "failed"]>;
139
- readonly actual: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
140
- readonly expected: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
141
- readonly error: Schema.optional<Schema.Struct<{
142
- readonly name: Schema.String;
143
- readonly message: Schema.String;
144
- readonly stack: Schema.optional<Schema.String>;
145
- readonly expected: Schema.optional<Schema.String>;
146
- readonly actual: Schema.optional<Schema.String>;
147
- readonly diff: Schema.optional<Schema.String>;
148
- }>>;
149
- }>>;
150
- readonly trace: Schema.optional<Schema.Struct<{
151
- readonly spans: Schema.$Array<Schema.Struct<{
152
- readonly traceId: Schema.String;
153
- readonly spanId: Schema.String;
154
- readonly parentSpanId: Schema.NullOr<Schema.String>;
155
- readonly name: Schema.String;
156
- readonly startTime: Schema.Number;
157
- readonly endTime: Schema.NullOr<Schema.Number>;
158
- readonly status: Schema.Literals<readonly ["success", "error", "running", "unset"]>;
159
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
160
- readonly events: Schema.$Array<Schema.Struct<{
161
- readonly name: Schema.String;
162
- readonly timestamp: Schema.Number;
163
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
164
- }>>;
165
- }>>;
166
- readonly logs: Schema.$Array<Schema.Struct<{
167
- readonly spanId: Schema.NullOr<Schema.String>;
168
- readonly timestamp: Schema.Number;
169
- readonly level: Schema.Literals<readonly ["Fatal", "Error", "Warn", "Info", "Debug", "Trace"]>;
170
- readonly message: Schema.Codec<TestValue, TestValue, never, never>;
171
- readonly annotations: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
172
- }>>;
173
- }>>;
174
- }>;
175
- export declare const TestCaseReportSchema: Schema.Struct<{
176
- readonly id: Schema.String;
177
- readonly name: Schema.String;
178
- readonly fullName: Schema.String;
179
- readonly status: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
180
- readonly duration: Schema.Number;
181
- readonly errors: Schema.$Array<Schema.Struct<{
182
- readonly name: Schema.String;
183
- readonly message: Schema.String;
184
- readonly stack: Schema.optional<Schema.String>;
185
- readonly expected: Schema.optional<Schema.String>;
186
- readonly actual: Schema.optional<Schema.String>;
187
- readonly diff: Schema.optional<Schema.String>;
188
- }>>;
189
- readonly location: Schema.optional<Schema.Struct<{
190
- readonly line: Schema.Number;
191
- readonly column: Schema.Number;
192
- }>>;
193
- readonly authoredBy: Schema.optional<Schema.Literal<"laymos">>;
194
- readonly evidence: Schema.optional<Schema.Struct<{
195
- readonly description: Schema.String;
196
- readonly documentation: Schema.optional<Schema.String>;
197
- readonly assertions: Schema.$Array<Schema.Struct<{
198
- readonly name: Schema.String;
199
- readonly matcher: Schema.String;
200
- readonly status: Schema.Literals<readonly ["passed", "failed"]>;
201
- readonly actual: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
202
- readonly expected: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
203
- readonly error: Schema.optional<Schema.Struct<{
204
- readonly name: Schema.String;
205
- readonly message: Schema.String;
206
- readonly stack: Schema.optional<Schema.String>;
207
- readonly expected: Schema.optional<Schema.String>;
208
- readonly actual: Schema.optional<Schema.String>;
209
- readonly diff: Schema.optional<Schema.String>;
210
- }>>;
211
- }>>;
212
- readonly trace: Schema.optional<Schema.Struct<{
213
- readonly spans: Schema.$Array<Schema.Struct<{
214
- readonly traceId: Schema.String;
215
- readonly spanId: Schema.String;
216
- readonly parentSpanId: Schema.NullOr<Schema.String>;
217
- readonly name: Schema.String;
218
- readonly startTime: Schema.Number;
219
- readonly endTime: Schema.NullOr<Schema.Number>;
220
- readonly status: Schema.Literals<readonly ["success", "error", "running", "unset"]>;
221
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
222
- readonly events: Schema.$Array<Schema.Struct<{
223
- readonly name: Schema.String;
224
- readonly timestamp: Schema.Number;
225
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
226
- }>>;
227
- }>>;
228
- readonly logs: Schema.$Array<Schema.Struct<{
229
- readonly spanId: Schema.NullOr<Schema.String>;
230
- readonly timestamp: Schema.Number;
231
- readonly level: Schema.Literals<readonly ["Fatal", "Error", "Warn", "Info", "Debug", "Trace"]>;
232
- readonly message: Schema.Codec<TestValue, TestValue, never, never>;
233
- readonly annotations: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
234
- }>>;
235
- }>>;
236
- }>>;
237
- }>;
238
- export declare const TestSuiteReportSchema: Schema.Codec<TestSuiteReport>;
239
- export declare const TestModuleReportSchema: Schema.Struct<{
240
- readonly id: Schema.String;
241
- readonly name: Schema.String;
242
- readonly path: Schema.String;
243
- readonly projectName: Schema.String;
244
- readonly status: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
245
- readonly duration: Schema.Number;
246
- readonly suites: Schema.$Array<Schema.Codec<TestSuiteReport, TestSuiteReport, never, never>>;
247
- readonly cases: Schema.$Array<Schema.Struct<{
248
- readonly id: Schema.String;
249
- readonly name: Schema.String;
250
- readonly fullName: Schema.String;
251
- readonly status: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
252
- readonly duration: Schema.Number;
253
- readonly errors: Schema.$Array<Schema.Struct<{
254
- readonly name: Schema.String;
255
- readonly message: Schema.String;
256
- readonly stack: Schema.optional<Schema.String>;
257
- readonly expected: Schema.optional<Schema.String>;
258
- readonly actual: Schema.optional<Schema.String>;
259
- readonly diff: Schema.optional<Schema.String>;
260
- }>>;
261
- readonly location: Schema.optional<Schema.Struct<{
262
- readonly line: Schema.Number;
263
- readonly column: Schema.Number;
264
- }>>;
265
- readonly authoredBy: Schema.optional<Schema.Literal<"laymos">>;
266
- readonly evidence: Schema.optional<Schema.Struct<{
267
- readonly description: Schema.String;
268
- readonly documentation: Schema.optional<Schema.String>;
269
- readonly assertions: Schema.$Array<Schema.Struct<{
270
- readonly name: Schema.String;
271
- readonly matcher: Schema.String;
272
- readonly status: Schema.Literals<readonly ["passed", "failed"]>;
273
- readonly actual: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
274
- readonly expected: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
275
- readonly error: Schema.optional<Schema.Struct<{
276
- readonly name: Schema.String;
277
- readonly message: Schema.String;
278
- readonly stack: Schema.optional<Schema.String>;
279
- readonly expected: Schema.optional<Schema.String>;
280
- readonly actual: Schema.optional<Schema.String>;
281
- readonly diff: Schema.optional<Schema.String>;
282
- }>>;
283
- }>>;
284
- readonly trace: Schema.optional<Schema.Struct<{
285
- readonly spans: Schema.$Array<Schema.Struct<{
286
- readonly traceId: Schema.String;
287
- readonly spanId: Schema.String;
288
- readonly parentSpanId: Schema.NullOr<Schema.String>;
289
- readonly name: Schema.String;
290
- readonly startTime: Schema.Number;
291
- readonly endTime: Schema.NullOr<Schema.Number>;
292
- readonly status: Schema.Literals<readonly ["success", "error", "running", "unset"]>;
293
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
294
- readonly events: Schema.$Array<Schema.Struct<{
295
- readonly name: Schema.String;
296
- readonly timestamp: Schema.Number;
297
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
298
- }>>;
299
- }>>;
300
- readonly logs: Schema.$Array<Schema.Struct<{
301
- readonly spanId: Schema.NullOr<Schema.String>;
302
- readonly timestamp: Schema.Number;
303
- readonly level: Schema.Literals<readonly ["Fatal", "Error", "Warn", "Info", "Debug", "Trace"]>;
304
- readonly message: Schema.Codec<TestValue, TestValue, never, never>;
305
- readonly annotations: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
306
- }>>;
307
- }>>;
308
- }>>;
309
- }>>;
310
- readonly errors: Schema.$Array<Schema.Struct<{
311
- readonly name: Schema.String;
312
- readonly message: Schema.String;
313
- readonly stack: Schema.optional<Schema.String>;
314
- readonly expected: Schema.optional<Schema.String>;
315
- readonly actual: Schema.optional<Schema.String>;
316
- readonly diff: Schema.optional<Schema.String>;
317
- }>>;
318
- }>;
319
- export declare const TestsReportSchema: Schema.Struct<{
320
- readonly status: Schema.Literals<readonly ["passed", "failed"]>;
321
- readonly duration: Schema.Number;
322
- readonly modules: Schema.$Array<Schema.Struct<{
323
- readonly id: Schema.String;
324
- readonly name: Schema.String;
325
- readonly path: Schema.String;
326
- readonly projectName: Schema.String;
327
- readonly status: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
328
- readonly duration: Schema.Number;
329
- readonly suites: Schema.$Array<Schema.Codec<TestSuiteReport, TestSuiteReport, never, never>>;
330
- readonly cases: Schema.$Array<Schema.Struct<{
331
- readonly id: Schema.String;
332
- readonly name: Schema.String;
333
- readonly fullName: Schema.String;
334
- readonly status: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
335
- readonly duration: Schema.Number;
336
- readonly errors: Schema.$Array<Schema.Struct<{
337
- readonly name: Schema.String;
338
- readonly message: Schema.String;
339
- readonly stack: Schema.optional<Schema.String>;
340
- readonly expected: Schema.optional<Schema.String>;
341
- readonly actual: Schema.optional<Schema.String>;
342
- readonly diff: Schema.optional<Schema.String>;
343
- }>>;
344
- readonly location: Schema.optional<Schema.Struct<{
345
- readonly line: Schema.Number;
346
- readonly column: Schema.Number;
347
- }>>;
348
- readonly authoredBy: Schema.optional<Schema.Literal<"laymos">>;
349
- readonly evidence: Schema.optional<Schema.Struct<{
350
- readonly description: Schema.String;
351
- readonly documentation: Schema.optional<Schema.String>;
352
- readonly assertions: Schema.$Array<Schema.Struct<{
353
- readonly name: Schema.String;
354
- readonly matcher: Schema.String;
355
- readonly status: Schema.Literals<readonly ["passed", "failed"]>;
356
- readonly actual: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
357
- readonly expected: Schema.optional<Schema.Codec<TestValue, TestValue, never, never>>;
358
- readonly error: Schema.optional<Schema.Struct<{
359
- readonly name: Schema.String;
360
- readonly message: Schema.String;
361
- readonly stack: Schema.optional<Schema.String>;
362
- readonly expected: Schema.optional<Schema.String>;
363
- readonly actual: Schema.optional<Schema.String>;
364
- readonly diff: Schema.optional<Schema.String>;
365
- }>>;
366
- }>>;
367
- readonly trace: Schema.optional<Schema.Struct<{
368
- readonly spans: Schema.$Array<Schema.Struct<{
369
- readonly traceId: Schema.String;
370
- readonly spanId: Schema.String;
371
- readonly parentSpanId: Schema.NullOr<Schema.String>;
372
- readonly name: Schema.String;
373
- readonly startTime: Schema.Number;
374
- readonly endTime: Schema.NullOr<Schema.Number>;
375
- readonly status: Schema.Literals<readonly ["success", "error", "running", "unset"]>;
376
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
377
- readonly events: Schema.$Array<Schema.Struct<{
378
- readonly name: Schema.String;
379
- readonly timestamp: Schema.Number;
380
- readonly attributes: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
381
- }>>;
382
- }>>;
383
- readonly logs: Schema.$Array<Schema.Struct<{
384
- readonly spanId: Schema.NullOr<Schema.String>;
385
- readonly timestamp: Schema.Number;
386
- readonly level: Schema.Literals<readonly ["Fatal", "Error", "Warn", "Info", "Debug", "Trace"]>;
387
- readonly message: Schema.Codec<TestValue, TestValue, never, never>;
388
- readonly annotations: Schema.$Record<Schema.String, Schema.Codec<TestValue, TestValue, never, never>>;
389
- }>>;
390
- }>>;
391
- }>>;
392
- }>>;
393
- readonly errors: Schema.$Array<Schema.Struct<{
394
- readonly name: Schema.String;
395
- readonly message: Schema.String;
396
- readonly stack: Schema.optional<Schema.String>;
397
- readonly expected: Schema.optional<Schema.String>;
398
- readonly actual: Schema.optional<Schema.String>;
399
- readonly diff: Schema.optional<Schema.String>;
400
- }>>;
401
- }>>;
402
- readonly unhandledErrors: Schema.$Array<Schema.Struct<{
403
- readonly name: Schema.String;
404
- readonly message: Schema.String;
405
- readonly stack: Schema.optional<Schema.String>;
406
- readonly expected: Schema.optional<Schema.String>;
407
- readonly actual: Schema.optional<Schema.String>;
408
- readonly diff: Schema.optional<Schema.String>;
409
- }>>;
410
- }>;
411
- //# sourceMappingURL=tests.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tests.d.ts","sourceRoot":"","sources":["../../src/report/tests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,YAAY,EACb,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AACrE,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,SAAS,EAAE,GACpB;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAE1C,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,MAAM,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import { Schema } from 'effect';
2
- export const TestValueSchema = Schema.suspend(() => Schema.Union([
3
- Schema.String,
4
- Schema.Number,
5
- Schema.Boolean,
6
- Schema.Null,
7
- Schema.Array(TestValueSchema),
8
- Schema.Record(Schema.String, TestValueSchema),
9
- ]));
10
- export const TestErrorReportSchema = Schema.Struct({
11
- name: Schema.String,
12
- message: Schema.String,
13
- stack: Schema.optional(Schema.String),
14
- expected: Schema.optional(Schema.String),
15
- actual: Schema.optional(Schema.String),
16
- diff: Schema.optional(Schema.String),
17
- });
18
- export const TestSourceLocationSchema = Schema.Struct({
19
- line: Schema.Number,
20
- column: Schema.Number,
21
- });
22
- export const TestAssertionEvidenceSchema = Schema.Struct({
23
- name: Schema.String,
24
- matcher: Schema.String,
25
- status: Schema.Literals(['passed', 'failed']),
26
- actual: Schema.optional(TestValueSchema),
27
- expected: Schema.optional(TestValueSchema),
28
- error: Schema.optional(TestErrorReportSchema),
29
- });
30
- export const TestTraceEventSchema = Schema.Struct({
31
- name: Schema.String,
32
- timestamp: Schema.Number,
33
- attributes: Schema.Record(Schema.String, TestValueSchema),
34
- });
35
- export const TestTraceLogSchema = Schema.Struct({
36
- spanId: Schema.NullOr(Schema.String),
37
- timestamp: Schema.Number,
38
- level: Schema.Literals(['Fatal', 'Error', 'Warn', 'Info', 'Debug', 'Trace']),
39
- message: TestValueSchema,
40
- annotations: Schema.Record(Schema.String, TestValueSchema),
41
- });
42
- export const TestTraceSpanSchema = Schema.Struct({
43
- traceId: Schema.String,
44
- spanId: Schema.String,
45
- parentSpanId: Schema.NullOr(Schema.String),
46
- name: Schema.String,
47
- startTime: Schema.Number,
48
- // Null/`running` only arise if a span outlives the effect that opened it.
49
- // Laymos rejects that at capture time, but the shape stays open so reports
50
- // and the recorder agree.
51
- endTime: Schema.NullOr(Schema.Number),
52
- status: Schema.Literals(['success', 'error', 'running', 'unset']),
53
- attributes: Schema.Record(Schema.String, TestValueSchema),
54
- events: Schema.Array(TestTraceEventSchema),
55
- });
56
- export const LaymosTestEvidenceSchema = Schema.Struct({
57
- description: Schema.String,
58
- documentation: Schema.optional(Schema.String),
59
- assertions: Schema.Array(TestAssertionEvidenceSchema),
60
- trace: Schema.optional(Schema.Struct({
61
- spans: Schema.Array(TestTraceSpanSchema),
62
- logs: Schema.Array(TestTraceLogSchema),
63
- })),
64
- });
65
- export const TestCaseReportSchema = Schema.Struct({
66
- id: Schema.String,
67
- name: Schema.String,
68
- fullName: Schema.String,
69
- status: Schema.Literals(['passed', 'failed', 'skipped', 'pending']),
70
- duration: Schema.Number,
71
- errors: Schema.Array(TestErrorReportSchema),
72
- location: Schema.optional(TestSourceLocationSchema),
73
- authoredBy: Schema.optional(Schema.Literal('laymos')),
74
- evidence: Schema.optional(LaymosTestEvidenceSchema),
75
- });
76
- export const TestSuiteReportSchema = Schema.Struct({
77
- id: Schema.String,
78
- name: Schema.String,
79
- description: Schema.optional(Schema.String),
80
- documentation: Schema.optional(Schema.String),
81
- status: Schema.Literals(['passed', 'failed', 'skipped', 'pending']),
82
- suites: Schema.Array(Schema.suspend(() => TestSuiteReportSchema)),
83
- cases: Schema.Array(TestCaseReportSchema),
84
- errors: Schema.Array(TestErrorReportSchema),
85
- });
86
- export const TestModuleReportSchema = Schema.Struct({
87
- id: Schema.String,
88
- name: Schema.String,
89
- path: Schema.String,
90
- projectName: Schema.String,
91
- status: Schema.Literals(['passed', 'failed', 'skipped', 'pending']),
92
- duration: Schema.Number,
93
- suites: Schema.Array(TestSuiteReportSchema),
94
- cases: Schema.Array(TestCaseReportSchema),
95
- errors: Schema.Array(TestErrorReportSchema),
96
- });
97
- export const TestsReportSchema = Schema.Struct({
98
- status: Schema.Literals(['passed', 'failed']),
99
- duration: Schema.Number,
100
- modules: Schema.Array(TestModuleReportSchema),
101
- unhandledErrors: Schema.Array(TestErrorReportSchema),
102
- });