@contractspec/module.workspace 1.57.0 → 1.59.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.
Files changed (248) hide show
  1. package/dist/ai/code-generation.d.ts +25 -0
  2. package/dist/ai/code-generation.d.ts.map +1 -0
  3. package/dist/ai/index.d.ts +5 -0
  4. package/dist/ai/index.d.ts.map +1 -0
  5. package/dist/ai/prompts/code-generation.d.ts +5 -8
  6. package/dist/ai/prompts/code-generation.d.ts.map +1 -1
  7. package/dist/ai/prompts/index.d.ts +3 -0
  8. package/dist/ai/prompts/index.d.ts.map +1 -0
  9. package/dist/ai/prompts/spec-creation.d.ts +7 -11
  10. package/dist/ai/prompts/spec-creation.d.ts.map +1 -1
  11. package/dist/ai/spec-creation.d.ts +27 -0
  12. package/dist/ai/spec-creation.d.ts.map +1 -0
  13. package/dist/analysis/deps/graph.d.ts +14 -13
  14. package/dist/analysis/deps/graph.d.ts.map +1 -1
  15. package/dist/analysis/deps/index.d.ts +6 -0
  16. package/dist/analysis/deps/index.d.ts.map +1 -0
  17. package/dist/analysis/deps/parse-imports.d.ts +1 -4
  18. package/dist/analysis/deps/parse-imports.d.ts.map +1 -1
  19. package/dist/analysis/diff/deep-diff.d.ts +17 -15
  20. package/dist/analysis/diff/deep-diff.d.ts.map +1 -1
  21. package/dist/analysis/diff/deep-diff.test.d.ts +5 -0
  22. package/dist/analysis/diff/deep-diff.test.d.ts.map +1 -0
  23. package/dist/analysis/diff/index.d.ts +6 -0
  24. package/dist/analysis/diff/index.d.ts.map +1 -0
  25. package/dist/analysis/diff/semantic.d.ts +6 -6
  26. package/dist/analysis/diff/semantic.d.ts.map +1 -1
  27. package/dist/analysis/example-scan.d.ts +3 -7
  28. package/dist/analysis/example-scan.d.ts.map +1 -1
  29. package/dist/analysis/example-scan.test.d.ts +7 -0
  30. package/dist/analysis/example-scan.test.d.ts.map +1 -0
  31. package/dist/analysis/feature-extractor.d.ts +25 -0
  32. package/dist/analysis/feature-extractor.d.ts.map +1 -0
  33. package/dist/analysis/feature-scan.d.ts +3 -7
  34. package/dist/analysis/feature-scan.d.ts.map +1 -1
  35. package/dist/analysis/feature-scan.test.d.ts +2 -0
  36. package/dist/analysis/feature-scan.test.d.ts.map +1 -0
  37. package/dist/analysis/grouping.d.ts +41 -35
  38. package/dist/analysis/grouping.d.ts.map +1 -1
  39. package/dist/analysis/impact/classifier.d.ts +9 -8
  40. package/dist/analysis/impact/classifier.d.ts.map +1 -1
  41. package/dist/analysis/impact/classifier.test.d.ts +5 -0
  42. package/dist/analysis/impact/classifier.test.d.ts.map +1 -0
  43. package/dist/analysis/impact/index.d.ts +9 -0
  44. package/dist/analysis/impact/index.d.ts.map +1 -0
  45. package/dist/analysis/impact/rules.d.ts +15 -14
  46. package/dist/analysis/impact/rules.d.ts.map +1 -1
  47. package/dist/analysis/impact/types.d.ts +73 -76
  48. package/dist/analysis/impact/types.d.ts.map +1 -1
  49. package/dist/analysis/index.d.ts +14 -0
  50. package/dist/analysis/index.d.ts.map +1 -0
  51. package/dist/analysis/snapshot/index.d.ts +9 -0
  52. package/dist/analysis/snapshot/index.d.ts.map +1 -0
  53. package/dist/analysis/snapshot/normalizer.d.ts +7 -10
  54. package/dist/analysis/snapshot/normalizer.d.ts.map +1 -1
  55. package/dist/analysis/snapshot/snapshot.d.ts +10 -8
  56. package/dist/analysis/snapshot/snapshot.d.ts.map +1 -1
  57. package/dist/analysis/snapshot/snapshot.test.d.ts +5 -0
  58. package/dist/analysis/snapshot/snapshot.test.d.ts.map +1 -0
  59. package/dist/analysis/snapshot/types.d.ts +58 -56
  60. package/dist/analysis/snapshot/types.d.ts.map +1 -1
  61. package/dist/analysis/spec-parser.d.ts +8 -6
  62. package/dist/analysis/spec-parser.d.ts.map +1 -1
  63. package/dist/analysis/spec-parsing-utils.d.ts +20 -10
  64. package/dist/analysis/spec-parsing-utils.d.ts.map +1 -1
  65. package/dist/analysis/spec-scan.d.ts +13 -12
  66. package/dist/analysis/spec-scan.d.ts.map +1 -1
  67. package/dist/analysis/spec-scan.test.d.ts +2 -0
  68. package/dist/analysis/spec-scan.test.d.ts.map +1 -0
  69. package/dist/analysis/utils/matchers.d.ts +39 -0
  70. package/dist/analysis/utils/matchers.d.ts.map +1 -0
  71. package/dist/analysis/utils/variables.d.ts +15 -0
  72. package/dist/analysis/utils/variables.d.ts.map +1 -0
  73. package/dist/analysis/validate/index.d.ts +5 -0
  74. package/dist/analysis/validate/index.d.ts.map +1 -0
  75. package/dist/analysis/validate/spec-structure.d.ts +15 -14
  76. package/dist/analysis/validate/spec-structure.d.ts.map +1 -1
  77. package/dist/analysis/validate/spec-structure.test.d.ts +2 -0
  78. package/dist/analysis/validate/spec-structure.test.d.ts.map +1 -0
  79. package/dist/formatter.d.ts +28 -27
  80. package/dist/formatter.d.ts.map +1 -1
  81. package/dist/formatters/index.d.ts +8 -0
  82. package/dist/formatters/index.d.ts.map +1 -0
  83. package/dist/formatters/spec-markdown.d.ts +13 -11
  84. package/dist/formatters/spec-markdown.d.ts.map +1 -1
  85. package/dist/formatters/spec-markdown.test.d.ts +5 -0
  86. package/dist/formatters/spec-markdown.test.d.ts.map +1 -0
  87. package/dist/formatters/spec-to-docblock.d.ts +4 -8
  88. package/dist/formatters/spec-to-docblock.d.ts.map +1 -1
  89. package/dist/index.d.ts +13 -42
  90. package/dist/index.d.ts.map +1 -0
  91. package/dist/index.js +4302 -38
  92. package/dist/node/index.js +4301 -0
  93. package/dist/templates/app-config.d.ts +2 -6
  94. package/dist/templates/app-config.d.ts.map +1 -1
  95. package/dist/templates/app-config.test.d.ts +2 -0
  96. package/dist/templates/app-config.test.d.ts.map +1 -0
  97. package/dist/templates/data-view.d.ts +2 -6
  98. package/dist/templates/data-view.d.ts.map +1 -1
  99. package/dist/templates/data-view.test.d.ts +2 -0
  100. package/dist/templates/data-view.test.d.ts.map +1 -0
  101. package/dist/templates/event.d.ts +6 -6
  102. package/dist/templates/event.d.ts.map +1 -1
  103. package/dist/templates/event.test.d.ts +2 -0
  104. package/dist/templates/event.test.d.ts.map +1 -0
  105. package/dist/templates/experiment.d.ts +2 -6
  106. package/dist/templates/experiment.d.ts.map +1 -1
  107. package/dist/templates/experiment.test.d.ts +2 -0
  108. package/dist/templates/experiment.test.d.ts.map +1 -0
  109. package/dist/templates/handler.d.ts +3 -6
  110. package/dist/templates/handler.d.ts.map +1 -1
  111. package/dist/templates/handler.test.d.ts +2 -0
  112. package/dist/templates/handler.test.d.ts.map +1 -0
  113. package/dist/templates/index.d.ts +18 -0
  114. package/dist/templates/index.d.ts.map +1 -0
  115. package/dist/templates/integration-utils.d.ts +13 -0
  116. package/dist/templates/integration-utils.d.ts.map +1 -0
  117. package/dist/templates/integration-utils.test.d.ts +2 -0
  118. package/dist/templates/integration-utils.test.d.ts.map +1 -0
  119. package/dist/templates/integration.d.ts +2 -6
  120. package/dist/templates/integration.d.ts.map +1 -1
  121. package/dist/templates/integration.test.d.ts +2 -0
  122. package/dist/templates/integration.test.d.ts.map +1 -0
  123. package/dist/templates/knowledge.d.ts +2 -6
  124. package/dist/templates/knowledge.d.ts.map +1 -1
  125. package/dist/templates/knowledge.test.d.ts +2 -0
  126. package/dist/templates/knowledge.test.d.ts.map +1 -0
  127. package/dist/templates/migration.d.ts +2 -6
  128. package/dist/templates/migration.d.ts.map +1 -1
  129. package/dist/templates/migration.test.d.ts +2 -0
  130. package/dist/templates/migration.test.d.ts.map +1 -0
  131. package/dist/templates/operation.d.ts +6 -6
  132. package/dist/templates/operation.d.ts.map +1 -1
  133. package/dist/templates/operation.test.d.ts +2 -0
  134. package/dist/templates/operation.test.d.ts.map +1 -0
  135. package/dist/templates/presentation.d.ts +6 -6
  136. package/dist/templates/presentation.d.ts.map +1 -1
  137. package/dist/templates/presentation.test.d.ts +2 -0
  138. package/dist/templates/presentation.test.d.ts.map +1 -0
  139. package/dist/templates/telemetry.d.ts +2 -6
  140. package/dist/templates/telemetry.d.ts.map +1 -1
  141. package/dist/templates/telemetry.test.d.ts +2 -0
  142. package/dist/templates/telemetry.test.d.ts.map +1 -0
  143. package/dist/templates/utils.d.ts +5 -8
  144. package/dist/templates/utils.d.ts.map +1 -1
  145. package/dist/templates/utils.test.d.ts +2 -0
  146. package/dist/templates/utils.test.d.ts.map +1 -0
  147. package/dist/templates/workflow-runner.d.ts +6 -13
  148. package/dist/templates/workflow-runner.d.ts.map +1 -1
  149. package/dist/templates/workflow-runner.test.d.ts +2 -0
  150. package/dist/templates/workflow-runner.test.d.ts.map +1 -0
  151. package/dist/templates/workflow.d.ts +6 -6
  152. package/dist/templates/workflow.d.ts.map +1 -1
  153. package/dist/templates/workflow.test.d.ts +2 -0
  154. package/dist/templates/workflow.test.d.ts.map +1 -0
  155. package/dist/types/analysis-types.d.ts +135 -136
  156. package/dist/types/analysis-types.d.ts.map +1 -1
  157. package/dist/types/generation-types.d.ts +36 -37
  158. package/dist/types/generation-types.d.ts.map +1 -1
  159. package/dist/types/index.d.ts +9 -0
  160. package/dist/types/index.d.ts.map +1 -0
  161. package/dist/types/llm-types.d.ts +97 -96
  162. package/dist/types/llm-types.d.ts.map +1 -1
  163. package/dist/types/rulesync-types.d.ts +17 -18
  164. package/dist/types/rulesync-types.d.ts.map +1 -1
  165. package/dist/types/spec-types.d.ts +329 -329
  166. package/dist/types/spec-types.d.ts.map +1 -1
  167. package/package.json +20 -16
  168. package/dist/ai/prompts/code-generation.js +0 -134
  169. package/dist/ai/prompts/code-generation.js.map +0 -1
  170. package/dist/ai/prompts/spec-creation.js +0 -102
  171. package/dist/ai/prompts/spec-creation.js.map +0 -1
  172. package/dist/analysis/deps/graph.js +0 -85
  173. package/dist/analysis/deps/graph.js.map +0 -1
  174. package/dist/analysis/deps/parse-imports.js +0 -31
  175. package/dist/analysis/deps/parse-imports.js.map +0 -1
  176. package/dist/analysis/diff/deep-diff.js +0 -114
  177. package/dist/analysis/diff/deep-diff.js.map +0 -1
  178. package/dist/analysis/diff/semantic.js +0 -97
  179. package/dist/analysis/diff/semantic.js.map +0 -1
  180. package/dist/analysis/example-scan.js +0 -116
  181. package/dist/analysis/example-scan.js.map +0 -1
  182. package/dist/analysis/feature-extractor.js +0 -203
  183. package/dist/analysis/feature-extractor.js.map +0 -1
  184. package/dist/analysis/feature-scan.js +0 -56
  185. package/dist/analysis/feature-scan.js.map +0 -1
  186. package/dist/analysis/grouping.js +0 -115
  187. package/dist/analysis/grouping.js.map +0 -1
  188. package/dist/analysis/impact/classifier.js +0 -135
  189. package/dist/analysis/impact/classifier.js.map +0 -1
  190. package/dist/analysis/impact/index.js +0 -2
  191. package/dist/analysis/impact/rules.js +0 -154
  192. package/dist/analysis/impact/rules.js.map +0 -1
  193. package/dist/analysis/index.js +0 -18
  194. package/dist/analysis/snapshot/index.js +0 -2
  195. package/dist/analysis/snapshot/normalizer.js +0 -67
  196. package/dist/analysis/snapshot/normalizer.js.map +0 -1
  197. package/dist/analysis/snapshot/snapshot.js +0 -163
  198. package/dist/analysis/snapshot/snapshot.js.map +0 -1
  199. package/dist/analysis/spec-parser.js +0 -89
  200. package/dist/analysis/spec-parser.js.map +0 -1
  201. package/dist/analysis/spec-parsing-utils.js +0 -98
  202. package/dist/analysis/spec-parsing-utils.js.map +0 -1
  203. package/dist/analysis/spec-scan.js +0 -157
  204. package/dist/analysis/spec-scan.js.map +0 -1
  205. package/dist/analysis/utils/matchers.js +0 -77
  206. package/dist/analysis/utils/matchers.js.map +0 -1
  207. package/dist/analysis/utils/variables.js +0 -45
  208. package/dist/analysis/utils/variables.js.map +0 -1
  209. package/dist/analysis/validate/index.js +0 -1
  210. package/dist/analysis/validate/spec-structure.js +0 -475
  211. package/dist/analysis/validate/spec-structure.js.map +0 -1
  212. package/dist/formatter.js +0 -163
  213. package/dist/formatter.js.map +0 -1
  214. package/dist/formatters/index.js +0 -2
  215. package/dist/formatters/spec-markdown.js +0 -263
  216. package/dist/formatters/spec-markdown.js.map +0 -1
  217. package/dist/formatters/spec-to-docblock.js +0 -48
  218. package/dist/formatters/spec-to-docblock.js.map +0 -1
  219. package/dist/templates/app-config.js +0 -107
  220. package/dist/templates/app-config.js.map +0 -1
  221. package/dist/templates/data-view.js +0 -69
  222. package/dist/templates/data-view.js.map +0 -1
  223. package/dist/templates/event.js +0 -41
  224. package/dist/templates/event.js.map +0 -1
  225. package/dist/templates/experiment.js +0 -88
  226. package/dist/templates/experiment.js.map +0 -1
  227. package/dist/templates/handler.js +0 -96
  228. package/dist/templates/handler.js.map +0 -1
  229. package/dist/templates/integration-utils.js +0 -102
  230. package/dist/templates/integration-utils.js.map +0 -1
  231. package/dist/templates/integration.js +0 -62
  232. package/dist/templates/integration.js.map +0 -1
  233. package/dist/templates/knowledge.js +0 -68
  234. package/dist/templates/knowledge.js.map +0 -1
  235. package/dist/templates/migration.js +0 -60
  236. package/dist/templates/migration.js.map +0 -1
  237. package/dist/templates/operation.js +0 -101
  238. package/dist/templates/operation.js.map +0 -1
  239. package/dist/templates/presentation.js +0 -79
  240. package/dist/templates/presentation.js.map +0 -1
  241. package/dist/templates/telemetry.js +0 -90
  242. package/dist/templates/telemetry.js.map +0 -1
  243. package/dist/templates/utils.js +0 -39
  244. package/dist/templates/utils.js.map +0 -1
  245. package/dist/templates/workflow-runner.js +0 -49
  246. package/dist/templates/workflow-runner.js.map +0 -1
  247. package/dist/templates/workflow.js +0 -68
  248. package/dist/templates/workflow.js.map +0 -1
@@ -1,138 +1,139 @@
1
- import { Stability } from "./spec-types.js";
2
- import { AnalyzedOperationKind, AnalyzedSpecType } from "./analysis-types.js";
3
-
4
- //#region src/types/llm-types.d.ts
1
+ /**
2
+ * LLM Export Types
3
+ *
4
+ * Type definitions for converting specs to LLM-friendly markdown formats.
5
+ */
6
+ import type { Stability } from './spec-types';
7
+ import type { AnalyzedOperationKind, AnalyzedSpecType } from './analysis-types';
5
8
  /**
6
9
  * LLM export format options.
7
10
  * - **full**: Complete information including source code and all details (for deep LLM context)
8
11
  * - **prompt**: Concise with implementation instructions (actionable for LLM)
9
12
  * - **context**: Brief summary with counts and key fields (lightweight overview)
10
13
  */
11
- type LLMExportFormat = 'full' | 'prompt' | 'context';
14
+ export type LLMExportFormat = 'full' | 'prompt' | 'context';
12
15
  /**
13
16
  * Agent types for implementation guides.
14
17
  */
15
- type AgentType = 'claude-code' | 'cursor-cli' | 'generic-mcp';
18
+ export type AgentType = 'claude-code' | 'cursor-cli' | 'generic-mcp';
16
19
  /**
17
20
  * Verification tier for implementation checks.
18
21
  */
19
- type VerificationTier = 'quick' | 'standard' | 'thorough';
22
+ export type VerificationTier = 'quick' | 'standard' | 'thorough';
20
23
  /**
21
24
  * Reference to a related spec (operation, event, policy, test, etc.)
22
25
  */
23
- interface SpecRef {
24
- name: string;
25
- version: string;
26
+ export interface SpecRef {
27
+ name: string;
28
+ version: string;
26
29
  }
27
30
  /**
28
31
  * Metadata extracted from a parsed spec.
29
32
  */
30
- interface ParsedSpecMeta {
31
- /** Unique identifier for the spec */
32
- key: string;
33
- /** Version number */
34
- version: string;
35
- /** Human-readable description */
36
- description?: string;
37
- /** Stability level */
38
- stability?: Stability;
39
- /** Team or individual owners */
40
- owners?: string[];
41
- /** Categorization tags */
42
- tags?: string[];
43
- /** Business goal this spec achieves */
44
- goal?: string;
45
- /** Additional context for implementation */
46
- context?: string;
33
+ export interface ParsedSpecMeta {
34
+ /** Unique identifier for the spec */
35
+ key: string;
36
+ /** Version number */
37
+ version: string;
38
+ /** Human-readable description */
39
+ description?: string;
40
+ /** Stability level */
41
+ stability?: Stability;
42
+ /** Team or individual owners */
43
+ owners?: string[];
44
+ /** Categorization tags */
45
+ tags?: string[];
46
+ /** Business goal this spec achieves */
47
+ goal?: string;
48
+ /** Additional context for implementation */
49
+ context?: string;
47
50
  }
48
51
  /**
49
52
  * Lightweight representation of a spec extracted from source code.
50
53
  * This is used for LLM export without requiring full compilation.
51
54
  */
52
- interface ParsedSpec {
53
- /** Spec metadata */
54
- meta: ParsedSpecMeta;
55
- /** Type of spec (operation, event, feature, etc.) */
56
- specType: AnalyzedSpecType;
57
- /** For operations: command or query */
58
- kind?: AnalyzedOperationKind;
59
- /** Whether the spec defines input/output schemas */
60
- hasIo?: boolean;
61
- /** Whether the spec defines policy rules */
62
- hasPolicy?: boolean;
63
- /** Whether the spec defines a payload */
64
- hasPayload?: boolean;
65
- /** Whether the spec defines content */
66
- hasContent?: boolean;
67
- /** Whether the spec has a definition block */
68
- hasDefinition?: boolean;
69
- /** Events this spec may emit */
70
- emittedEvents?: SpecRef[];
71
- /** Policy specs referenced by this spec */
72
- policyRefs?: SpecRef[];
73
- /** Test specs associated with this spec */
74
- testRefs?: SpecRef[];
75
- /** Path to the source file */
76
- filePath?: string;
77
- /** The actual source code block of the spec */
78
- sourceBlock?: string;
79
- /** Operations included in this feature */
80
- operations?: SpecRef[];
81
- /** Events included in this feature */
82
- events?: SpecRef[];
83
- /** Presentations included in this feature */
84
- presentations?: SpecRef[];
55
+ export interface ParsedSpec {
56
+ /** Spec metadata */
57
+ meta: ParsedSpecMeta;
58
+ /** Type of spec (operation, event, feature, etc.) */
59
+ specType: AnalyzedSpecType;
60
+ /** For operations: command or query */
61
+ kind?: AnalyzedOperationKind;
62
+ /** Whether the spec defines input/output schemas */
63
+ hasIo?: boolean;
64
+ /** Whether the spec defines policy rules */
65
+ hasPolicy?: boolean;
66
+ /** Whether the spec defines a payload */
67
+ hasPayload?: boolean;
68
+ /** Whether the spec defines content */
69
+ hasContent?: boolean;
70
+ /** Whether the spec has a definition block */
71
+ hasDefinition?: boolean;
72
+ /** Events this spec may emit */
73
+ emittedEvents?: SpecRef[];
74
+ /** Policy specs referenced by this spec */
75
+ policyRefs?: SpecRef[];
76
+ /** Test specs associated with this spec */
77
+ testRefs?: SpecRef[];
78
+ /** Path to the source file */
79
+ filePath?: string;
80
+ /** The actual source code block of the spec */
81
+ sourceBlock?: string;
82
+ /** Operations included in this feature */
83
+ operations?: SpecRef[];
84
+ /** Events included in this feature */
85
+ events?: SpecRef[];
86
+ /** Presentations included in this feature */
87
+ presentations?: SpecRef[];
85
88
  }
86
89
  /**
87
90
  * Options for spec-to-markdown conversion.
88
91
  */
89
- interface SpecToMarkdownOptions {
90
- /** Export format */
91
- format: LLMExportFormat;
92
- /** Indentation depth for nested specs */
93
- depth?: number;
94
- /** Include source code blocks */
95
- includeSource?: boolean;
96
- /** Include implementation instructions */
97
- includeInstructions?: boolean;
92
+ export interface SpecToMarkdownOptions {
93
+ /** Export format */
94
+ format: LLMExportFormat;
95
+ /** Indentation depth for nested specs */
96
+ depth?: number;
97
+ /** Include source code blocks */
98
+ includeSource?: boolean;
99
+ /** Include implementation instructions */
100
+ includeInstructions?: boolean;
98
101
  }
99
102
  /**
100
103
  * Result of LLM export operation.
101
104
  */
102
- interface LLMExportResult {
103
- /** Generated markdown content */
104
- content: string;
105
- /** Number of specs included */
106
- specCount: number;
107
- /** Format used for export */
108
- format: LLMExportFormat;
105
+ export interface LLMExportResult {
106
+ /** Generated markdown content */
107
+ content: string;
108
+ /** Number of specs included */
109
+ specCount: number;
110
+ /** Format used for export */
111
+ format: LLMExportFormat;
109
112
  }
110
113
  /**
111
114
  * Result of implementation verification.
112
115
  */
113
- interface VerificationResult {
114
- /** Whether verification passed */
115
- passed: boolean;
116
- /** Issues found during verification */
117
- issues: VerificationIssue[];
118
- /** Suggestions for improvement */
119
- suggestions: string[];
120
- /** Verification tier used */
121
- tier: VerificationTier;
116
+ export interface VerificationResult {
117
+ /** Whether verification passed */
118
+ passed: boolean;
119
+ /** Issues found during verification */
120
+ issues: VerificationIssue[];
121
+ /** Suggestions for improvement */
122
+ suggestions: string[];
123
+ /** Verification tier used */
124
+ tier: VerificationTier;
122
125
  }
123
126
  /**
124
127
  * Single verification issue.
125
128
  */
126
- interface VerificationIssue {
127
- /** Severity of the issue */
128
- severity: 'error' | 'warning' | 'info';
129
- /** Issue message */
130
- message: string;
131
- /** Location in the spec or implementation */
132
- location?: string;
133
- /** Suggested fix */
134
- suggestion?: string;
129
+ export interface VerificationIssue {
130
+ /** Severity of the issue */
131
+ severity: 'error' | 'warning' | 'info';
132
+ /** Issue message */
133
+ message: string;
134
+ /** Location in the spec or implementation */
135
+ location?: string;
136
+ /** Suggested fix */
137
+ suggestion?: string;
135
138
  }
136
- //#endregion
137
- export { AgentType, LLMExportFormat, LLMExportResult, ParsedSpec, ParsedSpecMeta, SpecRef, SpecToMarkdownOptions, VerificationIssue, VerificationResult, VerificationTier };
138
139
  //# sourceMappingURL=llm-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"llm-types.d.ts","names":[],"sources":["../../src/types/llm-types.ts"],"mappings":";;;;;;AAoBA;;;;KALY,eAAA;AAUZ;;;AAAA,KALY,SAAA;;AAUZ;;KALY,gBAAA;;;AAaZ;UARiB,OAAA;EACf,IAAA;EACA,OAAA;AAAA;;;;UAMe,cAAA;EAUf;EARA,GAAA;EAYA;EAVA,OAAA;EAYO;EAVP,WAAA;EAiBe;EAff,SAAA,GAAY,SAAA;;EAEZ,MAAA;EAiBU;EAfV,IAAA;EA6BgB;EA3BhB,IAAA;EA+BW;EA7BX,OAAA;AAAA;;;;;UAOe,UAAA;EAIf;EAFA,IAAA,EAAM,cAAA;EAIN;EAFA,QAAA,EAAU,gBAAA;EAIV;EAFA,IAAA,GAAO,qBAAA;EAMP;EAJA,KAAA;EAQA;EANA,SAAA;EAQgB;EANhB,UAAA;EAQa;EANb,UAAA;EAQW;EANX,aAAA;EAUA;EARA,aAAA,GAAgB,OAAA;EAYH;EAVb,UAAA,GAAa,OAAA;EAYJ;EAVT,QAAA,GAAW,OAAA;EAYK;EAVhB,QAAA;EAUuB;EARvB,WAAA;EAcoC;EAVpC,UAAA,GAAa,OAAA;EAYU;EAVvB,MAAA,GAAS,OAAA;EAUD;EARR,aAAA,GAAgB,OAAA;AAAA;;;;UAMD,qBAAA;EAce;EAZ9B,MAAA,EAAQ,eAAA;EAkBe;EAhBvB,KAAA;EAcA;EAZA,aAAA;EAcQ;EAZR,mBAAA;AAAA;AAkBF;;;AAAA,UAZiB,eAAA;EA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M,WAAW,eAAe;IAC9B,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,MAAM,EAAE,eAAe,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,uCAAuC;IACvC,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,kCAAkC;IAClC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,6BAA6B;IAC7B,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -1,23 +1,22 @@
1
- import { RuleSyncTarget } from "@contractspec/lib.contracts";
2
-
3
- //#region src/types/rulesync-types.d.ts
1
+ /**
2
+ * Rule synchronization type definitions.
3
+ */
4
+ import type { RuleSyncTarget } from '@contractspec/lib.contracts';
4
5
  /**
5
6
  * Configuration for AI agent rules synchronization.
6
7
  */
7
- interface RuleSyncConfig {
8
- /** Enable automated rule synchronization */
9
- enabled: boolean;
10
- /** Root directory for source rule files */
11
- rulesDir: string;
12
- /** Source rule files (glob patterns) */
13
- rules: string[];
14
- /** Synchronization targets (tools to generate rules for) */
15
- targets: RuleSyncTarget[];
16
- /** Automatically synchronize rules on workspace changes or builds */
17
- autoSync: boolean;
18
- /** Whether to eject/copy source rules instead of generating from Unified Rules */
19
- ejectMode: boolean;
8
+ export interface RuleSyncConfig {
9
+ /** Enable automated rule synchronization */
10
+ enabled: boolean;
11
+ /** Root directory for source rule files */
12
+ rulesDir: string;
13
+ /** Source rule files (glob patterns) */
14
+ rules: string[];
15
+ /** Synchronization targets (tools to generate rules for) */
16
+ targets: RuleSyncTarget[];
17
+ /** Automatically synchronize rules on workspace changes or builds */
18
+ autoSync: boolean;
19
+ /** Whether to eject/copy source rules instead of generating from Unified Rules */
20
+ ejectMode: boolean;
20
21
  }
21
- //#endregion
22
- export { RuleSyncConfig };
23
22
  //# sourceMappingURL=rulesync-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rulesync-types.d.ts","names":[],"sources":["../../src/types/rulesync-types.ts"],"mappings":";;;;;;UASiB,cAAA;EAIf;EAFA,OAAA;EAMA;EAJA,QAAA;EAMA;EAJA,KAAA;EAMS;EAJT,OAAA,EAAS,cAAA;;EAET,QAAA;;EAEA,SAAA;AAAA"}
1
+ {"version":3,"file":"rulesync-types.d.ts","sourceRoot":"","sources":["../../src/types/rulesync-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,wCAAwC;IACxC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,4DAA4D;IAC5D,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,qEAAqE;IACrE,QAAQ,EAAE,OAAO,CAAC;IAClB,kFAAkF;IAClF,SAAS,EAAE,OAAO,CAAC;CACpB"}