@skmtc/core 0.0.807 → 0.0.808

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,3 +1,77 @@
1
+ /**
2
+ * @fileoverview Prettier Configuration System for SKMTC Core
3
+ *
4
+ * This module provides comprehensive type definitions and validation schemas for
5
+ * Prettier code formatting configuration within the SKMTC code generation pipeline.
6
+ * It ensures that generated code is properly formatted according to specified
7
+ * formatting rules and style guidelines.
8
+ *
9
+ * The Prettier configuration system supports all standard Prettier options,
10
+ * enabling fine-tuned control over code formatting for different output targets
11
+ * and project requirements.
12
+ *
13
+ * ## Key Features
14
+ *
15
+ * - **Complete Option Coverage**: All Prettier configuration options supported
16
+ * - **Type Safety**: Full TypeScript typing and Valibot validation
17
+ * - **Flexible Configuration**: Optional settings with sensible defaults
18
+ * - **Multi-Language Support**: Formatting options for JavaScript, TypeScript, JSX, HTML, and more
19
+ * - **Integration Ready**: Direct integration with the SKMTC rendering pipeline
20
+ *
21
+ * @example Basic Prettier configuration
22
+ * ```typescript
23
+ * import type { PrettierConfigType } from '@skmtc/core/PrettierConfig';
24
+ *
25
+ * const config: PrettierConfigType = {
26
+ * printWidth: 100,
27
+ * tabWidth: 2,
28
+ * useTabs: false,
29
+ * semi: true,
30
+ * singleQuote: true,
31
+ * trailingComma: 'es5'
32
+ * };
33
+ * ```
34
+ *
35
+ * @example TypeScript and JSX formatting
36
+ * ```typescript
37
+ * import type { PrettierConfigType } from '@skmtc/core/PrettierConfig';
38
+ *
39
+ * const tsConfig: PrettierConfigType = {
40
+ * printWidth: 120,
41
+ * tabWidth: 2,
42
+ * semi: true,
43
+ * singleQuote: true,
44
+ * jsxSingleQuote: true,
45
+ * bracketSameLine: false,
46
+ * arrowParens: 'avoid'
47
+ * };
48
+ * ```
49
+ *
50
+ * @example Validation usage
51
+ * ```typescript
52
+ * import { prettierConfigType, PrettierConfigType } from '@skmtc/core/PrettierConfig';
53
+ * import * as v from 'valibot';
54
+ *
55
+ * function validatePrettierConfig(config: unknown): PrettierConfigType {
56
+ * return v.parse(prettierConfigType, config);
57
+ * }
58
+ *
59
+ * const userConfig = {
60
+ * printWidth: 80,
61
+ * singleQuote: true,
62
+ * invalidOption: 'test' // This would cause validation error
63
+ * };
64
+ *
65
+ * try {
66
+ * const validConfig = validatePrettierConfig(userConfig);
67
+ * console.log('Valid configuration:', validConfig);
68
+ * } catch (error) {
69
+ * console.error('Invalid Prettier configuration:', error);
70
+ * }
71
+ * ```
72
+ *
73
+ * @module PrettierConfig
74
+ */
1
75
  import "../_dnt.polyfills.js";
2
76
  import * as v from 'valibot';
3
77
  export type PrettierConfigType = {
@@ -1 +1 @@
1
- {"version":3,"file":"PrettierConfig.d.ts","sourceRoot":"","sources":["../../src/types/PrettierConfig.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,WAAW,GAAG,YAAY,GAAG,UAAU,CAAA;IACpD,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAA;IACtC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,WAAW,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAA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IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAA;IAC3C,yBAAyB,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACvD,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IACzC,0BAA0B,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IAC3C,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,aAAa,CAAC,kBAAkB,CA6BjE,CAAA"}
@@ -1,3 +1,77 @@
1
+ /**
2
+ * @fileoverview Prettier Configuration System for SKMTC Core
3
+ *
4
+ * This module provides comprehensive type definitions and validation schemas for
5
+ * Prettier code formatting configuration within the SKMTC code generation pipeline.
6
+ * It ensures that generated code is properly formatted according to specified
7
+ * formatting rules and style guidelines.
8
+ *
9
+ * The Prettier configuration system supports all standard Prettier options,
10
+ * enabling fine-tuned control over code formatting for different output targets
11
+ * and project requirements.
12
+ *
13
+ * ## Key Features
14
+ *
15
+ * - **Complete Option Coverage**: All Prettier configuration options supported
16
+ * - **Type Safety**: Full TypeScript typing and Valibot validation
17
+ * - **Flexible Configuration**: Optional settings with sensible defaults
18
+ * - **Multi-Language Support**: Formatting options for JavaScript, TypeScript, JSX, HTML, and more
19
+ * - **Integration Ready**: Direct integration with the SKMTC rendering pipeline
20
+ *
21
+ * @example Basic Prettier configuration
22
+ * ```typescript
23
+ * import type { PrettierConfigType } from '@skmtc/core/PrettierConfig';
24
+ *
25
+ * const config: PrettierConfigType = {
26
+ * printWidth: 100,
27
+ * tabWidth: 2,
28
+ * useTabs: false,
29
+ * semi: true,
30
+ * singleQuote: true,
31
+ * trailingComma: 'es5'
32
+ * };
33
+ * ```
34
+ *
35
+ * @example TypeScript and JSX formatting
36
+ * ```typescript
37
+ * import type { PrettierConfigType } from '@skmtc/core/PrettierConfig';
38
+ *
39
+ * const tsConfig: PrettierConfigType = {
40
+ * printWidth: 120,
41
+ * tabWidth: 2,
42
+ * semi: true,
43
+ * singleQuote: true,
44
+ * jsxSingleQuote: true,
45
+ * bracketSameLine: false,
46
+ * arrowParens: 'avoid'
47
+ * };
48
+ * ```
49
+ *
50
+ * @example Validation usage
51
+ * ```typescript
52
+ * import { prettierConfigType, PrettierConfigType } from '@skmtc/core/PrettierConfig';
53
+ * import * as v from 'valibot';
54
+ *
55
+ * function validatePrettierConfig(config: unknown): PrettierConfigType {
56
+ * return v.parse(prettierConfigType, config);
57
+ * }
58
+ *
59
+ * const userConfig = {
60
+ * printWidth: 80,
61
+ * singleQuote: true,
62
+ * invalidOption: 'test' // This would cause validation error
63
+ * };
64
+ *
65
+ * try {
66
+ * const validConfig = validatePrettierConfig(userConfig);
67
+ * console.log('Valid configuration:', validConfig);
68
+ * } catch (error) {
69
+ * console.error('Invalid Prettier configuration:', error);
70
+ * }
71
+ * ```
72
+ *
73
+ * @module PrettierConfig
74
+ */
1
75
  import "../_dnt.polyfills.js";
2
76
  import * as v from 'valibot';
3
77
  export const prettierConfigType = v.object({
@@ -1,3 +1,100 @@
1
+ /**
2
+ * @fileoverview Results and Status Tracking System for SKMTC Core
3
+ *
4
+ * This module provides comprehensive result tracking and status management for
5
+ * the SKMTC code generation pipeline. It includes hierarchical result structures,
6
+ * type-safe status definitions, and validation schemas for tracking the outcomes
7
+ * of parsing, generation, and rendering operations.
8
+ *
9
+ * The results system enables detailed reporting and error handling throughout
10
+ * the pipeline, supporting nested result structures for complex operations
11
+ * and comprehensive status categorization.
12
+ *
13
+ * ## Key Features
14
+ *
15
+ * - **Hierarchical Results**: Nested result structures for complex operations
16
+ * - **Status Categories**: Complete coverage of operation outcomes (success, warning, error, etc.)
17
+ * - **Type Safety**: Full TypeScript typing with Valibot validation
18
+ * - **Recursive Support**: Lazy evaluation for deeply nested result structures
19
+ * - **Pipeline Integration**: Direct integration with SKMTC processing contexts
20
+ *
21
+ * @example Basic result tracking
22
+ * ```typescript
23
+ * import type { ResultType, ResultsItem } from '@skmtc/core/Results';
24
+ *
25
+ * const operationResult: ResultType = 'success';
26
+ * const errorResult: ResultType = 'error';
27
+ *
28
+ * const results: ResultsItem = {
29
+ * parsing: 'success',
30
+ * generation: 'warning',
31
+ * rendering: 'success'
32
+ * };
33
+ * ```
34
+ *
35
+ * @example Hierarchical result structures
36
+ * ```typescript
37
+ * import type { ResultsItem } from '@skmtc/core/Results';
38
+ *
39
+ * const complexResults: ResultsItem = {
40
+ * parsing: {
41
+ * schemas: 'success',
42
+ * operations: {
43
+ * userApi: 'success',
44
+ * productApi: 'warning',
45
+ * orderApi: 'error'
46
+ * }
47
+ * },
48
+ * generation: [
49
+ * { models: 'success' },
50
+ * { services: 'warning' },
51
+ * null // Skipped operation
52
+ * ]
53
+ * };
54
+ * ```
55
+ *
56
+ * @example Result validation
57
+ * ```typescript
58
+ * import { resultsItem, resultType, ResultsItem } from '@skmtc/core/Results';
59
+ * import * as v from 'valibot';
60
+ *
61
+ * function validateResults(data: unknown): ResultsItem {
62
+ * return v.parse(resultsItem, data);
63
+ * }
64
+ *
65
+ * function validateResultType(status: unknown): ResultType {
66
+ * return v.parse(resultType, status);
67
+ * }
68
+ *
69
+ * // Usage
70
+ * const results = validateResults({
71
+ * operation: 'success',
72
+ * nested: {
73
+ * subOperation: 'warning'
74
+ * }
75
+ * });
76
+ * ```
77
+ *
78
+ * @example Error filtering
79
+ * ```typescript
80
+ * import type { ResultType, WarningError } from '@skmtc/core/Results';
81
+ *
82
+ * function hasIssues(result: ResultType): result is WarningError {
83
+ * return result === 'warning' || result === 'error';
84
+ * }
85
+ *
86
+ * function processResults(results: Record<string, ResultType>) {
87
+ * const issues = Object.entries(results)
88
+ * .filter(([, status]) => hasIssues(status));
89
+ *
90
+ * if (issues.length > 0) {
91
+ * console.log('Operations with issues:', issues);
92
+ * }
93
+ * }
94
+ * ```
95
+ *
96
+ * @module Results
97
+ */
1
98
  import "../_dnt.polyfills.js";
2
99
  import * as v from 'valibot';
3
100
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../src/types/Results.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAA;AAErF;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAMjD,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,+DAA+D;IAC/D,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACpE;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,CAGpD,CAAA"}
1
+ {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../src/types/Results.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,OAAO,sBAAsB,CAAC;AAG9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAA;AAErF;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAMjD,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,+DAA+D;IAC/D,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACpE;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,CAGpD,CAAA"}
@@ -1,3 +1,100 @@
1
+ /**
2
+ * @fileoverview Results and Status Tracking System for SKMTC Core
3
+ *
4
+ * This module provides comprehensive result tracking and status management for
5
+ * the SKMTC code generation pipeline. It includes hierarchical result structures,
6
+ * type-safe status definitions, and validation schemas for tracking the outcomes
7
+ * of parsing, generation, and rendering operations.
8
+ *
9
+ * The results system enables detailed reporting and error handling throughout
10
+ * the pipeline, supporting nested result structures for complex operations
11
+ * and comprehensive status categorization.
12
+ *
13
+ * ## Key Features
14
+ *
15
+ * - **Hierarchical Results**: Nested result structures for complex operations
16
+ * - **Status Categories**: Complete coverage of operation outcomes (success, warning, error, etc.)
17
+ * - **Type Safety**: Full TypeScript typing with Valibot validation
18
+ * - **Recursive Support**: Lazy evaluation for deeply nested result structures
19
+ * - **Pipeline Integration**: Direct integration with SKMTC processing contexts
20
+ *
21
+ * @example Basic result tracking
22
+ * ```typescript
23
+ * import type { ResultType, ResultsItem } from '@skmtc/core/Results';
24
+ *
25
+ * const operationResult: ResultType = 'success';
26
+ * const errorResult: ResultType = 'error';
27
+ *
28
+ * const results: ResultsItem = {
29
+ * parsing: 'success',
30
+ * generation: 'warning',
31
+ * rendering: 'success'
32
+ * };
33
+ * ```
34
+ *
35
+ * @example Hierarchical result structures
36
+ * ```typescript
37
+ * import type { ResultsItem } from '@skmtc/core/Results';
38
+ *
39
+ * const complexResults: ResultsItem = {
40
+ * parsing: {
41
+ * schemas: 'success',
42
+ * operations: {
43
+ * userApi: 'success',
44
+ * productApi: 'warning',
45
+ * orderApi: 'error'
46
+ * }
47
+ * },
48
+ * generation: [
49
+ * { models: 'success' },
50
+ * { services: 'warning' },
51
+ * null // Skipped operation
52
+ * ]
53
+ * };
54
+ * ```
55
+ *
56
+ * @example Result validation
57
+ * ```typescript
58
+ * import { resultsItem, resultType, ResultsItem } from '@skmtc/core/Results';
59
+ * import * as v from 'valibot';
60
+ *
61
+ * function validateResults(data: unknown): ResultsItem {
62
+ * return v.parse(resultsItem, data);
63
+ * }
64
+ *
65
+ * function validateResultType(status: unknown): ResultType {
66
+ * return v.parse(resultType, status);
67
+ * }
68
+ *
69
+ * // Usage
70
+ * const results = validateResults({
71
+ * operation: 'success',
72
+ * nested: {
73
+ * subOperation: 'warning'
74
+ * }
75
+ * });
76
+ * ```
77
+ *
78
+ * @example Error filtering
79
+ * ```typescript
80
+ * import type { ResultType, WarningError } from '@skmtc/core/Results';
81
+ *
82
+ * function hasIssues(result: ResultType): result is WarningError {
83
+ * return result === 'warning' || result === 'error';
84
+ * }
85
+ *
86
+ * function processResults(results: Record<string, ResultType>) {
87
+ * const issues = Object.entries(results)
88
+ * .filter(([, status]) => hasIssues(status));
89
+ *
90
+ * if (issues.length > 0) {
91
+ * console.log('Operations with issues:', issues);
92
+ * }
93
+ * }
94
+ * ```
95
+ *
96
+ * @module Results
97
+ */
1
98
  import "../_dnt.polyfills.js";
2
99
  import * as v from 'valibot';
3
100
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.807",
3
+ "version": "0.0.808",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/skmtc/skmtc.git"
@@ -1,3 +1,77 @@
1
+ /**
2
+ * @fileoverview Prettier Configuration System for SKMTC Core
3
+ *
4
+ * This module provides comprehensive type definitions and validation schemas for
5
+ * Prettier code formatting configuration within the SKMTC code generation pipeline.
6
+ * It ensures that generated code is properly formatted according to specified
7
+ * formatting rules and style guidelines.
8
+ *
9
+ * The Prettier configuration system supports all standard Prettier options,
10
+ * enabling fine-tuned control over code formatting for different output targets
11
+ * and project requirements.
12
+ *
13
+ * ## Key Features
14
+ *
15
+ * - **Complete Option Coverage**: All Prettier configuration options supported
16
+ * - **Type Safety**: Full TypeScript typing and Valibot validation
17
+ * - **Flexible Configuration**: Optional settings with sensible defaults
18
+ * - **Multi-Language Support**: Formatting options for JavaScript, TypeScript, JSX, HTML, and more
19
+ * - **Integration Ready**: Direct integration with the SKMTC rendering pipeline
20
+ *
21
+ * @example Basic Prettier configuration
22
+ * ```typescript
23
+ * import type { PrettierConfigType } from '@skmtc/core/PrettierConfig';
24
+ *
25
+ * const config: PrettierConfigType = {
26
+ * printWidth: 100,
27
+ * tabWidth: 2,
28
+ * useTabs: false,
29
+ * semi: true,
30
+ * singleQuote: true,
31
+ * trailingComma: 'es5'
32
+ * };
33
+ * ```
34
+ *
35
+ * @example TypeScript and JSX formatting
36
+ * ```typescript
37
+ * import type { PrettierConfigType } from '@skmtc/core/PrettierConfig';
38
+ *
39
+ * const tsConfig: PrettierConfigType = {
40
+ * printWidth: 120,
41
+ * tabWidth: 2,
42
+ * semi: true,
43
+ * singleQuote: true,
44
+ * jsxSingleQuote: true,
45
+ * bracketSameLine: false,
46
+ * arrowParens: 'avoid'
47
+ * };
48
+ * ```
49
+ *
50
+ * @example Validation usage
51
+ * ```typescript
52
+ * import { prettierConfigType, PrettierConfigType } from '@skmtc/core/PrettierConfig';
53
+ * import * as v from 'valibot';
54
+ *
55
+ * function validatePrettierConfig(config: unknown): PrettierConfigType {
56
+ * return v.parse(prettierConfigType, config);
57
+ * }
58
+ *
59
+ * const userConfig = {
60
+ * printWidth: 80,
61
+ * singleQuote: true,
62
+ * invalidOption: 'test' // This would cause validation error
63
+ * };
64
+ *
65
+ * try {
66
+ * const validConfig = validatePrettierConfig(userConfig);
67
+ * console.log('Valid configuration:', validConfig);
68
+ * } catch (error) {
69
+ * console.error('Invalid Prettier configuration:', error);
70
+ * }
71
+ * ```
72
+ *
73
+ * @module PrettierConfig
74
+ */
1
75
  import "../_dnt.polyfills.js";
2
76
  import * as v from 'valibot';
3
77
  export type PrettierConfigType = {
@@ -1 +1 @@
1
- {"version":3,"file":"PrettierConfig.d.ts","sourceRoot":"","sources":["../../src/types/PrettierConfig.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,WAAW,GAAG,YAAY,GAAG,UAAU,CAAA;IACpD,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAA;IACtC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,WAAW,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAA;IAC3C,yBAAyB,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACvD,uBAA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AAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAA;IAC3C,yBAAyB,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACvD,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IACzC,0BAA0B,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IAC3C,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,aAAa,CAAC,kBAAkB,CA6BjE,CAAA"}
@@ -34,6 +34,80 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.prettierConfigType = void 0;
37
+ /**
38
+ * @fileoverview Prettier Configuration System for SKMTC Core
39
+ *
40
+ * This module provides comprehensive type definitions and validation schemas for
41
+ * Prettier code formatting configuration within the SKMTC code generation pipeline.
42
+ * It ensures that generated code is properly formatted according to specified
43
+ * formatting rules and style guidelines.
44
+ *
45
+ * The Prettier configuration system supports all standard Prettier options,
46
+ * enabling fine-tuned control over code formatting for different output targets
47
+ * and project requirements.
48
+ *
49
+ * ## Key Features
50
+ *
51
+ * - **Complete Option Coverage**: All Prettier configuration options supported
52
+ * - **Type Safety**: Full TypeScript typing and Valibot validation
53
+ * - **Flexible Configuration**: Optional settings with sensible defaults
54
+ * - **Multi-Language Support**: Formatting options for JavaScript, TypeScript, JSX, HTML, and more
55
+ * - **Integration Ready**: Direct integration with the SKMTC rendering pipeline
56
+ *
57
+ * @example Basic Prettier configuration
58
+ * ```typescript
59
+ * import type { PrettierConfigType } from '@skmtc/core/PrettierConfig';
60
+ *
61
+ * const config: PrettierConfigType = {
62
+ * printWidth: 100,
63
+ * tabWidth: 2,
64
+ * useTabs: false,
65
+ * semi: true,
66
+ * singleQuote: true,
67
+ * trailingComma: 'es5'
68
+ * };
69
+ * ```
70
+ *
71
+ * @example TypeScript and JSX formatting
72
+ * ```typescript
73
+ * import type { PrettierConfigType } from '@skmtc/core/PrettierConfig';
74
+ *
75
+ * const tsConfig: PrettierConfigType = {
76
+ * printWidth: 120,
77
+ * tabWidth: 2,
78
+ * semi: true,
79
+ * singleQuote: true,
80
+ * jsxSingleQuote: true,
81
+ * bracketSameLine: false,
82
+ * arrowParens: 'avoid'
83
+ * };
84
+ * ```
85
+ *
86
+ * @example Validation usage
87
+ * ```typescript
88
+ * import { prettierConfigType, PrettierConfigType } from '@skmtc/core/PrettierConfig';
89
+ * import * as v from 'valibot';
90
+ *
91
+ * function validatePrettierConfig(config: unknown): PrettierConfigType {
92
+ * return v.parse(prettierConfigType, config);
93
+ * }
94
+ *
95
+ * const userConfig = {
96
+ * printWidth: 80,
97
+ * singleQuote: true,
98
+ * invalidOption: 'test' // This would cause validation error
99
+ * };
100
+ *
101
+ * try {
102
+ * const validConfig = validatePrettierConfig(userConfig);
103
+ * console.log('Valid configuration:', validConfig);
104
+ * } catch (error) {
105
+ * console.error('Invalid Prettier configuration:', error);
106
+ * }
107
+ * ```
108
+ *
109
+ * @module PrettierConfig
110
+ */
37
111
  require("../_dnt.polyfills.js");
38
112
  const v = __importStar(require("valibot"));
39
113
  exports.prettierConfigType = v.object({
@@ -1,3 +1,100 @@
1
+ /**
2
+ * @fileoverview Results and Status Tracking System for SKMTC Core
3
+ *
4
+ * This module provides comprehensive result tracking and status management for
5
+ * the SKMTC code generation pipeline. It includes hierarchical result structures,
6
+ * type-safe status definitions, and validation schemas for tracking the outcomes
7
+ * of parsing, generation, and rendering operations.
8
+ *
9
+ * The results system enables detailed reporting and error handling throughout
10
+ * the pipeline, supporting nested result structures for complex operations
11
+ * and comprehensive status categorization.
12
+ *
13
+ * ## Key Features
14
+ *
15
+ * - **Hierarchical Results**: Nested result structures for complex operations
16
+ * - **Status Categories**: Complete coverage of operation outcomes (success, warning, error, etc.)
17
+ * - **Type Safety**: Full TypeScript typing with Valibot validation
18
+ * - **Recursive Support**: Lazy evaluation for deeply nested result structures
19
+ * - **Pipeline Integration**: Direct integration with SKMTC processing contexts
20
+ *
21
+ * @example Basic result tracking
22
+ * ```typescript
23
+ * import type { ResultType, ResultsItem } from '@skmtc/core/Results';
24
+ *
25
+ * const operationResult: ResultType = 'success';
26
+ * const errorResult: ResultType = 'error';
27
+ *
28
+ * const results: ResultsItem = {
29
+ * parsing: 'success',
30
+ * generation: 'warning',
31
+ * rendering: 'success'
32
+ * };
33
+ * ```
34
+ *
35
+ * @example Hierarchical result structures
36
+ * ```typescript
37
+ * import type { ResultsItem } from '@skmtc/core/Results';
38
+ *
39
+ * const complexResults: ResultsItem = {
40
+ * parsing: {
41
+ * schemas: 'success',
42
+ * operations: {
43
+ * userApi: 'success',
44
+ * productApi: 'warning',
45
+ * orderApi: 'error'
46
+ * }
47
+ * },
48
+ * generation: [
49
+ * { models: 'success' },
50
+ * { services: 'warning' },
51
+ * null // Skipped operation
52
+ * ]
53
+ * };
54
+ * ```
55
+ *
56
+ * @example Result validation
57
+ * ```typescript
58
+ * import { resultsItem, resultType, ResultsItem } from '@skmtc/core/Results';
59
+ * import * as v from 'valibot';
60
+ *
61
+ * function validateResults(data: unknown): ResultsItem {
62
+ * return v.parse(resultsItem, data);
63
+ * }
64
+ *
65
+ * function validateResultType(status: unknown): ResultType {
66
+ * return v.parse(resultType, status);
67
+ * }
68
+ *
69
+ * // Usage
70
+ * const results = validateResults({
71
+ * operation: 'success',
72
+ * nested: {
73
+ * subOperation: 'warning'
74
+ * }
75
+ * });
76
+ * ```
77
+ *
78
+ * @example Error filtering
79
+ * ```typescript
80
+ * import type { ResultType, WarningError } from '@skmtc/core/Results';
81
+ *
82
+ * function hasIssues(result: ResultType): result is WarningError {
83
+ * return result === 'warning' || result === 'error';
84
+ * }
85
+ *
86
+ * function processResults(results: Record<string, ResultType>) {
87
+ * const issues = Object.entries(results)
88
+ * .filter(([, status]) => hasIssues(status));
89
+ *
90
+ * if (issues.length > 0) {
91
+ * console.log('Operations with issues:', issues);
92
+ * }
93
+ * }
94
+ * ```
95
+ *
96
+ * @module Results
97
+ */
1
98
  import "../_dnt.polyfills.js";
2
99
  import * as v from 'valibot';
3
100
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../src/types/Results.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAA;AAErF;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAMjD,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,+DAA+D;IAC/D,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACpE;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,CAGpD,CAAA"}
1
+ {"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../src/types/Results.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,OAAO,sBAAsB,CAAC;AAG9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAA;AAErF;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAMjD,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,+DAA+D;IAC/D,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACpE;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,CAGpD,CAAA"}
@@ -34,6 +34,103 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.resultsItem = exports.resultType = void 0;
37
+ /**
38
+ * @fileoverview Results and Status Tracking System for SKMTC Core
39
+ *
40
+ * This module provides comprehensive result tracking and status management for
41
+ * the SKMTC code generation pipeline. It includes hierarchical result structures,
42
+ * type-safe status definitions, and validation schemas for tracking the outcomes
43
+ * of parsing, generation, and rendering operations.
44
+ *
45
+ * The results system enables detailed reporting and error handling throughout
46
+ * the pipeline, supporting nested result structures for complex operations
47
+ * and comprehensive status categorization.
48
+ *
49
+ * ## Key Features
50
+ *
51
+ * - **Hierarchical Results**: Nested result structures for complex operations
52
+ * - **Status Categories**: Complete coverage of operation outcomes (success, warning, error, etc.)
53
+ * - **Type Safety**: Full TypeScript typing with Valibot validation
54
+ * - **Recursive Support**: Lazy evaluation for deeply nested result structures
55
+ * - **Pipeline Integration**: Direct integration with SKMTC processing contexts
56
+ *
57
+ * @example Basic result tracking
58
+ * ```typescript
59
+ * import type { ResultType, ResultsItem } from '@skmtc/core/Results';
60
+ *
61
+ * const operationResult: ResultType = 'success';
62
+ * const errorResult: ResultType = 'error';
63
+ *
64
+ * const results: ResultsItem = {
65
+ * parsing: 'success',
66
+ * generation: 'warning',
67
+ * rendering: 'success'
68
+ * };
69
+ * ```
70
+ *
71
+ * @example Hierarchical result structures
72
+ * ```typescript
73
+ * import type { ResultsItem } from '@skmtc/core/Results';
74
+ *
75
+ * const complexResults: ResultsItem = {
76
+ * parsing: {
77
+ * schemas: 'success',
78
+ * operations: {
79
+ * userApi: 'success',
80
+ * productApi: 'warning',
81
+ * orderApi: 'error'
82
+ * }
83
+ * },
84
+ * generation: [
85
+ * { models: 'success' },
86
+ * { services: 'warning' },
87
+ * null // Skipped operation
88
+ * ]
89
+ * };
90
+ * ```
91
+ *
92
+ * @example Result validation
93
+ * ```typescript
94
+ * import { resultsItem, resultType, ResultsItem } from '@skmtc/core/Results';
95
+ * import * as v from 'valibot';
96
+ *
97
+ * function validateResults(data: unknown): ResultsItem {
98
+ * return v.parse(resultsItem, data);
99
+ * }
100
+ *
101
+ * function validateResultType(status: unknown): ResultType {
102
+ * return v.parse(resultType, status);
103
+ * }
104
+ *
105
+ * // Usage
106
+ * const results = validateResults({
107
+ * operation: 'success',
108
+ * nested: {
109
+ * subOperation: 'warning'
110
+ * }
111
+ * });
112
+ * ```
113
+ *
114
+ * @example Error filtering
115
+ * ```typescript
116
+ * import type { ResultType, WarningError } from '@skmtc/core/Results';
117
+ *
118
+ * function hasIssues(result: ResultType): result is WarningError {
119
+ * return result === 'warning' || result === 'error';
120
+ * }
121
+ *
122
+ * function processResults(results: Record<string, ResultType>) {
123
+ * const issues = Object.entries(results)
124
+ * .filter(([, status]) => hasIssues(status));
125
+ *
126
+ * if (issues.length > 0) {
127
+ * console.log('Operations with issues:', issues);
128
+ * }
129
+ * }
130
+ * ```
131
+ *
132
+ * @module Results
133
+ */
37
134
  require("../_dnt.polyfills.js");
38
135
  const v = __importStar(require("valibot"));
39
136
  /**