@h2nguyen/arc42-node-mcp-server 2.0.0 → 2.1.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 (222) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +81 -5
  3. package/dist/templates/formats/asciidoc/index.d.ts +178 -0
  4. package/dist/templates/formats/asciidoc/index.d.ts.map +1 -0
  5. package/dist/templates/formats/asciidoc/index.js +225 -0
  6. package/dist/templates/formats/asciidoc/index.js.map +1 -0
  7. package/dist/templates/formats/index.d.ts +108 -0
  8. package/dist/templates/formats/index.d.ts.map +1 -0
  9. package/dist/templates/formats/index.js +149 -0
  10. package/dist/templates/formats/index.js.map +1 -0
  11. package/dist/templates/formats/markdown/index.d.ts +172 -0
  12. package/dist/templates/formats/markdown/index.d.ts.map +1 -0
  13. package/dist/templates/formats/markdown/index.js +211 -0
  14. package/dist/templates/formats/markdown/index.js.map +1 -0
  15. package/dist/templates/formats/output-format-factory.d.ts +125 -0
  16. package/dist/templates/formats/output-format-factory.d.ts.map +1 -0
  17. package/dist/templates/formats/output-format-factory.js +166 -0
  18. package/dist/templates/formats/output-format-factory.js.map +1 -0
  19. package/dist/templates/formats/output-format-registry.d.ts +114 -0
  20. package/dist/templates/formats/output-format-registry.d.ts.map +1 -0
  21. package/dist/templates/formats/output-format-registry.js +147 -0
  22. package/dist/templates/formats/output-format-registry.js.map +1 -0
  23. package/dist/templates/formats/output-format-strategy.d.ts +195 -0
  24. package/dist/templates/formats/output-format-strategy.d.ts.map +1 -0
  25. package/dist/templates/formats/output-format-strategy.js +69 -0
  26. package/dist/templates/formats/output-format-strategy.js.map +1 -0
  27. package/dist/templates/index.d.ts +9 -8
  28. package/dist/templates/index.d.ts.map +1 -1
  29. package/dist/templates/index.js +21 -10
  30. package/dist/templates/index.js.map +1 -1
  31. package/dist/templates/locales/cz/index.d.ts +25 -3
  32. package/dist/templates/locales/cz/index.d.ts.map +1 -1
  33. package/dist/templates/locales/cz/index.js +34 -18
  34. package/dist/templates/locales/cz/index.js.map +1 -1
  35. package/dist/templates/locales/cz/templates-asciidoc.d.ts +22 -0
  36. package/dist/templates/locales/cz/templates-asciidoc.d.ts.map +1 -0
  37. package/dist/templates/locales/cz/templates-asciidoc.js +764 -0
  38. package/dist/templates/locales/cz/templates-asciidoc.js.map +1 -0
  39. package/dist/templates/locales/cz/{templates.d.ts → templates-markdown.d.ts} +1 -1
  40. package/dist/templates/locales/cz/templates-markdown.d.ts.map +1 -0
  41. package/dist/templates/locales/cz/{templates.js → templates-markdown.js} +1 -1
  42. package/dist/templates/locales/cz/templates-markdown.js.map +1 -0
  43. package/dist/templates/locales/de/index.d.ts +14 -4
  44. package/dist/templates/locales/de/index.d.ts.map +1 -1
  45. package/dist/templates/locales/de/index.js +22 -25
  46. package/dist/templates/locales/de/index.js.map +1 -1
  47. package/dist/templates/locales/de/templates-asciidoc.d.ts +22 -0
  48. package/dist/templates/locales/de/templates-asciidoc.d.ts.map +1 -0
  49. package/dist/templates/locales/de/templates-asciidoc.js +814 -0
  50. package/dist/templates/locales/de/templates-asciidoc.js.map +1 -0
  51. package/dist/templates/locales/de/{templates.d.ts → templates-markdown.d.ts} +1 -1
  52. package/dist/templates/locales/de/templates-markdown.d.ts.map +1 -0
  53. package/dist/templates/locales/de/{templates.js → templates-markdown.js} +1 -1
  54. package/dist/templates/locales/de/templates-markdown.js.map +1 -0
  55. package/dist/templates/locales/en/index.d.ts +14 -4
  56. package/dist/templates/locales/en/index.d.ts.map +1 -1
  57. package/dist/templates/locales/en/index.js +22 -25
  58. package/dist/templates/locales/en/index.js.map +1 -1
  59. package/dist/templates/locales/en/templates-asciidoc.d.ts +22 -0
  60. package/dist/templates/locales/en/templates-asciidoc.d.ts.map +1 -0
  61. package/dist/templates/locales/en/templates-asciidoc.js +764 -0
  62. package/dist/templates/locales/en/templates-asciidoc.js.map +1 -0
  63. package/dist/templates/locales/en/{templates.d.ts → templates-markdown.d.ts} +1 -1
  64. package/dist/templates/locales/en/templates-markdown.d.ts.map +1 -0
  65. package/dist/templates/locales/en/{templates.js → templates-markdown.js} +1 -1
  66. package/dist/templates/locales/en/templates-markdown.js.map +1 -0
  67. package/dist/templates/locales/es/index.d.ts +15 -10
  68. package/dist/templates/locales/es/index.d.ts.map +1 -1
  69. package/dist/templates/locales/es/index.js +23 -31
  70. package/dist/templates/locales/es/index.js.map +1 -1
  71. package/dist/templates/locales/es/templates-asciidoc.d.ts +22 -0
  72. package/dist/templates/locales/es/templates-asciidoc.d.ts.map +1 -0
  73. package/dist/templates/locales/es/templates-asciidoc.js +764 -0
  74. package/dist/templates/locales/es/templates-asciidoc.js.map +1 -0
  75. package/dist/templates/locales/es/{templates.d.ts → templates-markdown.d.ts} +1 -1
  76. package/dist/templates/locales/es/templates-markdown.d.ts.map +1 -0
  77. package/dist/templates/locales/es/{templates.js → templates-markdown.js} +1 -1
  78. package/dist/templates/locales/es/templates-markdown.js.map +1 -0
  79. package/dist/templates/locales/fr/index.d.ts +14 -9
  80. package/dist/templates/locales/fr/index.d.ts.map +1 -1
  81. package/dist/templates/locales/fr/index.js +22 -30
  82. package/dist/templates/locales/fr/index.js.map +1 -1
  83. package/dist/templates/locales/fr/templates-asciidoc.d.ts +22 -0
  84. package/dist/templates/locales/fr/templates-asciidoc.d.ts.map +1 -0
  85. package/dist/templates/locales/fr/templates-asciidoc.js +764 -0
  86. package/dist/templates/locales/fr/templates-asciidoc.js.map +1 -0
  87. package/dist/templates/locales/fr/{templates.d.ts → templates-markdown.d.ts} +1 -1
  88. package/dist/templates/locales/fr/templates-markdown.d.ts.map +1 -0
  89. package/dist/templates/locales/fr/{templates.js → templates-markdown.js} +1 -1
  90. package/dist/templates/locales/fr/templates-markdown.js.map +1 -0
  91. package/dist/templates/locales/it/index.d.ts +14 -9
  92. package/dist/templates/locales/it/index.d.ts.map +1 -1
  93. package/dist/templates/locales/it/index.js +22 -30
  94. package/dist/templates/locales/it/index.js.map +1 -1
  95. package/dist/templates/locales/it/templates-asciidoc.d.ts +22 -0
  96. package/dist/templates/locales/it/templates-asciidoc.d.ts.map +1 -0
  97. package/dist/templates/locales/it/templates-asciidoc.js +764 -0
  98. package/dist/templates/locales/it/templates-asciidoc.js.map +1 -0
  99. package/dist/templates/locales/it/{templates.d.ts → templates-markdown.d.ts} +1 -1
  100. package/dist/templates/locales/it/templates-markdown.d.ts.map +1 -0
  101. package/dist/templates/locales/it/{templates.js → templates-markdown.js} +1 -1
  102. package/dist/templates/locales/it/templates-markdown.js.map +1 -0
  103. package/dist/templates/locales/language-strategy-factory.d.ts +120 -0
  104. package/dist/templates/locales/language-strategy-factory.d.ts.map +1 -0
  105. package/dist/templates/locales/language-strategy-factory.js +127 -0
  106. package/dist/templates/locales/language-strategy-factory.js.map +1 -0
  107. package/dist/templates/locales/language-strategy.d.ts +16 -12
  108. package/dist/templates/locales/language-strategy.d.ts.map +1 -1
  109. package/dist/templates/locales/language-strategy.js.map +1 -1
  110. package/dist/templates/locales/nl/index.d.ts +14 -9
  111. package/dist/templates/locales/nl/index.d.ts.map +1 -1
  112. package/dist/templates/locales/nl/index.js +22 -30
  113. package/dist/templates/locales/nl/index.js.map +1 -1
  114. package/dist/templates/locales/nl/templates-asciidoc.d.ts +22 -0
  115. package/dist/templates/locales/nl/templates-asciidoc.d.ts.map +1 -0
  116. package/dist/templates/locales/nl/templates-asciidoc.js +764 -0
  117. package/dist/templates/locales/nl/templates-asciidoc.js.map +1 -0
  118. package/dist/templates/locales/nl/{templates.d.ts → templates-markdown.d.ts} +1 -1
  119. package/dist/templates/locales/nl/templates-markdown.d.ts.map +1 -0
  120. package/dist/templates/locales/nl/{templates.js → templates-markdown.js} +1 -1
  121. package/dist/templates/locales/nl/templates-markdown.js.map +1 -0
  122. package/dist/templates/locales/pt/index.d.ts +14 -9
  123. package/dist/templates/locales/pt/index.d.ts.map +1 -1
  124. package/dist/templates/locales/pt/index.js +22 -30
  125. package/dist/templates/locales/pt/index.js.map +1 -1
  126. package/dist/templates/locales/pt/templates-asciidoc.d.ts +22 -0
  127. package/dist/templates/locales/pt/templates-asciidoc.d.ts.map +1 -0
  128. package/dist/templates/locales/pt/templates-asciidoc.js +764 -0
  129. package/dist/templates/locales/pt/templates-asciidoc.js.map +1 -0
  130. package/dist/templates/locales/pt/{templates.d.ts → templates-markdown.d.ts} +1 -1
  131. package/dist/templates/locales/pt/templates-markdown.d.ts.map +1 -0
  132. package/dist/templates/locales/pt/{templates.js → templates-markdown.js} +1 -1
  133. package/dist/templates/locales/pt/templates-markdown.js.map +1 -0
  134. package/dist/templates/locales/ru/index.d.ts +19 -3
  135. package/dist/templates/locales/ru/index.d.ts.map +1 -1
  136. package/dist/templates/locales/ru/index.js +28 -24
  137. package/dist/templates/locales/ru/index.js.map +1 -1
  138. package/dist/templates/locales/ru/templates-asciidoc.d.ts +22 -0
  139. package/dist/templates/locales/ru/templates-asciidoc.d.ts.map +1 -0
  140. package/dist/templates/locales/ru/templates-asciidoc.js +996 -0
  141. package/dist/templates/locales/ru/templates-asciidoc.js.map +1 -0
  142. package/dist/templates/locales/ru/{templates.d.ts → templates-markdown.d.ts} +1 -1
  143. package/dist/templates/locales/ru/templates-markdown.d.ts.map +1 -0
  144. package/dist/templates/locales/ru/{templates.js → templates-markdown.js} +1 -1
  145. package/dist/templates/locales/ru/templates-markdown.js.map +1 -0
  146. package/dist/templates/locales/template-provider.d.ts +22 -10
  147. package/dist/templates/locales/template-provider.d.ts.map +1 -1
  148. package/dist/templates/locales/template-provider.js +53 -14
  149. package/dist/templates/locales/template-provider.js.map +1 -1
  150. package/dist/templates/locales/ukr/index.d.ts +25 -3
  151. package/dist/templates/locales/ukr/index.d.ts.map +1 -1
  152. package/dist/templates/locales/ukr/index.js +34 -18
  153. package/dist/templates/locales/ukr/index.js.map +1 -1
  154. package/dist/templates/locales/ukr/templates-asciidoc.d.ts +22 -0
  155. package/dist/templates/locales/ukr/templates-asciidoc.d.ts.map +1 -0
  156. package/dist/templates/locales/ukr/templates-asciidoc.js +764 -0
  157. package/dist/templates/locales/ukr/templates-asciidoc.js.map +1 -0
  158. package/dist/templates/locales/ukr/{templates.d.ts → templates-markdown.d.ts} +1 -1
  159. package/dist/templates/locales/ukr/templates-markdown.d.ts.map +1 -0
  160. package/dist/templates/locales/ukr/{templates.js → templates-markdown.js} +1 -1
  161. package/dist/templates/locales/ukr/templates-markdown.js.map +1 -0
  162. package/dist/templates/locales/zh/index.d.ts +25 -3
  163. package/dist/templates/locales/zh/index.d.ts.map +1 -1
  164. package/dist/templates/locales/zh/index.js +34 -18
  165. package/dist/templates/locales/zh/index.js.map +1 -1
  166. package/dist/templates/locales/zh/templates-asciidoc.d.ts +22 -0
  167. package/dist/templates/locales/zh/templates-asciidoc.d.ts.map +1 -0
  168. package/dist/templates/locales/zh/templates-asciidoc.js +764 -0
  169. package/dist/templates/locales/zh/templates-asciidoc.js.map +1 -0
  170. package/dist/templates/locales/zh/{templates.d.ts → templates-markdown.d.ts} +1 -1
  171. package/dist/templates/locales/zh/templates-markdown.d.ts.map +1 -0
  172. package/dist/templates/locales/zh/{templates.js → templates-markdown.js} +1 -1
  173. package/dist/templates/locales/zh/templates-markdown.js.map +1 -0
  174. package/dist/tools/arc42-init.d.ts +2 -1
  175. package/dist/tools/arc42-init.d.ts.map +1 -1
  176. package/dist/tools/arc42-init.js +154 -24
  177. package/dist/tools/arc42-init.js.map +1 -1
  178. package/dist/tools/arc42-status.d.ts.map +1 -1
  179. package/dist/tools/arc42-status.js +66 -10
  180. package/dist/tools/arc42-status.js.map +1 -1
  181. package/dist/tools/arc42-workflow-guide.d.ts +1 -0
  182. package/dist/tools/arc42-workflow-guide.d.ts.map +1 -1
  183. package/dist/tools/arc42-workflow-guide.js +16 -14
  184. package/dist/tools/arc42-workflow-guide.js.map +1 -1
  185. package/dist/tools/generate-template.d.ts +1 -0
  186. package/dist/tools/generate-template.d.ts.map +1 -1
  187. package/dist/tools/generate-template.js +16 -5
  188. package/dist/tools/generate-template.js.map +1 -1
  189. package/dist/tools/get-section.d.ts.map +1 -1
  190. package/dist/tools/get-section.js +28 -7
  191. package/dist/tools/get-section.js.map +1 -1
  192. package/dist/tools/update-section.d.ts +1 -1
  193. package/dist/tools/update-section.d.ts.map +1 -1
  194. package/dist/tools/update-section.js +71 -8
  195. package/dist/tools/update-section.js.map +1 -1
  196. package/dist/types.d.ts +2 -0
  197. package/dist/types.d.ts.map +1 -1
  198. package/dist/types.js +1 -0
  199. package/dist/types.js.map +1 -1
  200. package/package.json +1 -1
  201. package/dist/templates/locales/cz/templates.d.ts.map +0 -1
  202. package/dist/templates/locales/cz/templates.js.map +0 -1
  203. package/dist/templates/locales/de/templates.d.ts.map +0 -1
  204. package/dist/templates/locales/de/templates.js.map +0 -1
  205. package/dist/templates/locales/en/templates.d.ts.map +0 -1
  206. package/dist/templates/locales/en/templates.js.map +0 -1
  207. package/dist/templates/locales/es/templates.d.ts.map +0 -1
  208. package/dist/templates/locales/es/templates.js.map +0 -1
  209. package/dist/templates/locales/fr/templates.d.ts.map +0 -1
  210. package/dist/templates/locales/fr/templates.js.map +0 -1
  211. package/dist/templates/locales/it/templates.d.ts.map +0 -1
  212. package/dist/templates/locales/it/templates.js.map +0 -1
  213. package/dist/templates/locales/nl/templates.d.ts.map +0 -1
  214. package/dist/templates/locales/nl/templates.js.map +0 -1
  215. package/dist/templates/locales/pt/templates.d.ts.map +0 -1
  216. package/dist/templates/locales/pt/templates.js.map +0 -1
  217. package/dist/templates/locales/ru/templates.d.ts.map +0 -1
  218. package/dist/templates/locales/ru/templates.js.map +0 -1
  219. package/dist/templates/locales/ukr/templates.d.ts.map +0 -1
  220. package/dist/templates/locales/ukr/templates.js.map +0 -1
  221. package/dist/templates/locales/zh/templates.d.ts.map +0 -1
  222. package/dist/templates/locales/zh/templates.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates-asciidoc.js","sourceRoot":"","sources":["../../../../src/templates/locales/ru/templates-asciidoc.ts"],"names":[],"mappings":"AAAA;;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;;;;;;CA4CxD,CAAC;AACF,CAAC"}
@@ -19,4 +19,4 @@ export declare function getWorkflowGuide(): string;
19
19
  * Get the Russian README content
20
20
  */
21
21
  export declare function getReadmeContent(projectName?: string): string;
22
- //# sourceMappingURL=templates.d.ts.map
22
+ //# sourceMappingURL=templates-markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates-markdown.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/ru/templates-markdown.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAiBzD;AAyhBD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAgEzC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAwC7D"}
@@ -661,4 +661,4 @@ export function getReadmeContent(projectName) {
661
661
  - [Документация arc42](https://docs.arc42.org/)
662
662
  `;
663
663
  }
664
- //# sourceMappingURL=templates.js.map
664
+ //# sourceMappingURL=templates-markdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates-markdown.js","sourceRoot":"","sources":["../../../../src/templates/locales/ru/templates-markdown.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,OAAqB;IAC/C,MAAM,SAAS,GAAuC;QACpD,2BAA2B,EAAE,+BAA+B;QAC5D,6BAA6B,EAAE,kCAAkC;QACjE,sBAAsB,EAAE,0BAA0B;QAClD,sBAAsB,EAAE,2BAA2B;QACnD,wBAAwB,EAAE,4BAA4B;QACtD,iBAAiB,EAAE,sBAAsB;QACzC,oBAAoB,EAAE,yBAAyB;QAC/C,aAAa,EAAE,mBAAmB;QAClC,2BAA2B,EAAE,gCAAgC;QAC7D,yBAAyB,EAAE,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;;;;;;;;;;;;;;;;;;;;CAqCR,CAAC;AACF,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCR,CAAC;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DR,CAAC;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,WAAoB;IACnD,MAAM,IAAI,GAAG,WAAW,IAAI,QAAQ,CAAC;IACrC,OAAO,KAAK,IAAI;;qDAEmC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCxD,CAAC;AACF,CAAC"}
@@ -17,6 +17,7 @@
17
17
  import type { Arc42Section } from '../../types.js';
18
18
  import type { LanguageCode, LanguageInfo } from './language-strategy.js';
19
19
  import type { LanguageFactory } from './language-factory.js';
20
+ import type { OutputFormatCode } from '../formats/index.js';
20
21
  /**
21
22
  * Section metadata with localized content
22
23
  */
@@ -59,22 +60,24 @@ export declare class LocalizedTemplateProvider {
59
60
  */
60
61
  constructor(factory: LanguageFactory);
61
62
  /**
62
- * Get the template for a section in a specific language
63
+ * Get the template for a section in a specific language and format
63
64
  *
64
65
  * @param section - The arc42 section
65
66
  * @param language - The language code (defaults to English)
66
- * @returns The template content
67
+ * @param format - The output format (markdown or asciidoc, defaults to asciidoc)
68
+ * @returns The template content in the specified format
67
69
  */
68
- getTemplate(section: Arc42Section, language?: string): string;
70
+ getTemplateForFormat(section: Arc42Section, language?: string, format?: OutputFormatCode): string;
69
71
  /**
70
- * Get the template using config.yaml for default language
72
+ * Get the template using config.yaml for language and format
71
73
  *
72
74
  * @param section - The arc42 section
73
75
  * @param workspacePath - Path to the workspace (or parent containing config.yaml)
74
76
  * @param language - Optional override language (takes precedence over config)
75
- * @returns The template content
77
+ * @param format - Optional override format (takes precedence over config)
78
+ * @returns The template content in the specified format
76
79
  */
77
- getTemplateWithConfig(section: Arc42Section, workspacePath: string, language?: string): string;
80
+ getTemplateWithConfigAndFormat(section: Arc42Section, workspacePath: string, language?: string, format?: OutputFormatCode): string;
78
81
  /**
79
82
  * Get section metadata in a specific language
80
83
  *
@@ -84,20 +87,22 @@ export declare class LocalizedTemplateProvider {
84
87
  */
85
88
  getSectionMetadata(section: Arc42Section, language?: string): LocalizedSectionMetadata;
86
89
  /**
87
- * Get the workflow guide in a specific language
90
+ * Get the workflow guide in a specific language and format
88
91
  *
89
92
  * @param language - The language code (defaults to English)
93
+ * @param format - The output format (defaults to asciidoc)
90
94
  * @returns The workflow guide content
91
95
  */
92
- getWorkflowGuide(language?: string): string;
96
+ getWorkflowGuideForFormat(language?: string, format?: OutputFormatCode): string;
93
97
  /**
94
- * Get README content in a specific language
98
+ * Get README content in a specific language and format
95
99
  *
96
100
  * @param language - The language code (defaults to English)
97
101
  * @param projectName - Optional project name for README header
102
+ * @param format - The output format (defaults to asciidoc)
98
103
  * @returns The README content
99
104
  */
100
- getReadmeContent(language?: string, projectName?: string): string;
105
+ getReadmeContentForFormat(language?: string, projectName?: string, format?: OutputFormatCode): string;
101
106
  /**
102
107
  * Get all available languages
103
108
  *
@@ -118,5 +123,12 @@ export declare class LocalizedTemplateProvider {
118
123
  * @returns The language code from config, or undefined if not found
119
124
  */
120
125
  readLanguageFromConfig(workspacePath: string): string | undefined;
126
+ /**
127
+ * Read the format setting from config.yaml
128
+ *
129
+ * @param workspacePath - Path to the workspace directory
130
+ * @returns The format code from config, or undefined if not found
131
+ */
132
+ readFormatFromConfig(workspacePath: string): OutputFormatCode | undefined;
121
133
  }
122
134
  //# sourceMappingURL=template-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-provider.d.ts","sourceRoot":"","sources":["../../../src/templates/locales/template-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,KAAK,EAAE,Y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wBlE"}
1
+ {"version":3,"file":"template-provider.d.ts","sourceRoot":"","sources":["../../../src/templates/locales/template-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,6BAA6B;IAC7B,OAAO,EAAE,YAAY,CAAC;IACtB,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,yBAAyB;IACpC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAkB;IAE1C;;;;OAIG;gBACS,OAAO,EAAE,eAAe;IAIpC;;;;;;;OAOG;IACH,oBAAoB,CAClB,OAAO,EAAE,YAAY,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,gBAAgB,GACxB,MAAM;IAQT;;;;;;;;OAQG;IACH,8BAA8B,CAC5B,OAAO,EAAE,YAAY,EACrB,aAAa,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,gBAAgB,GACxB,MAAM;IAMT;;;;;;OAMG;IACH,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,wBAAwB;IAgBtF;;;;;;OAMG;IACH,yBAAyB,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,MAAM;IAQ/E;;;;;;;OAOG;IACH,yBAAyB,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,MAAM;IAQrG;;;;OAIG;IACH,qBAAqB,IAAI,YAAY,EAAE;IAYvC;;;;;OAKG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAItC;;;;;OAKG;IACH,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAyBjE;;;;;OAKG;IACH,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;CA2B1E"}
@@ -17,6 +17,7 @@
17
17
  import { existsSync, readFileSync } from 'fs';
18
18
  import { join } from 'path';
19
19
  import { parse as parseYaml } from 'yaml';
20
+ import { DEFAULT_OUTPUT_FORMAT } from '../formats/index.js';
20
21
  /**
21
22
  * Localized Template Provider Class
22
23
  *
@@ -48,29 +49,33 @@ export class LocalizedTemplateProvider {
48
49
  this.factory = factory;
49
50
  }
50
51
  /**
51
- * Get the template for a section in a specific language
52
+ * Get the template for a section in a specific language and format
52
53
  *
53
54
  * @param section - The arc42 section
54
55
  * @param language - The language code (defaults to English)
55
- * @returns The template content
56
+ * @param format - The output format (markdown or asciidoc, defaults to asciidoc)
57
+ * @returns The template content in the specified format
56
58
  */
57
- getTemplate(section, language) {
59
+ getTemplateForFormat(section, language, format) {
58
60
  const strategy = language
59
61
  ? this.factory.createWithFallback(language)
60
62
  : this.factory.getDefault();
61
- return strategy.getTemplate(section);
63
+ const effectiveFormat = format || DEFAULT_OUTPUT_FORMAT;
64
+ return strategy.getTemplateForFormat(section, effectiveFormat);
62
65
  }
63
66
  /**
64
- * Get the template using config.yaml for default language
67
+ * Get the template using config.yaml for language and format
65
68
  *
66
69
  * @param section - The arc42 section
67
70
  * @param workspacePath - Path to the workspace (or parent containing config.yaml)
68
71
  * @param language - Optional override language (takes precedence over config)
69
- * @returns The template content
72
+ * @param format - Optional override format (takes precedence over config)
73
+ * @returns The template content in the specified format
70
74
  */
71
- getTemplateWithConfig(section, workspacePath, language) {
75
+ getTemplateWithConfigAndFormat(section, workspacePath, language, format) {
72
76
  const effectiveLanguage = language || this.readLanguageFromConfig(workspacePath) || 'EN';
73
- return this.getTemplate(section, effectiveLanguage);
77
+ const effectiveFormat = format || this.readFormatFromConfig(workspacePath) || DEFAULT_OUTPUT_FORMAT;
78
+ return this.getTemplateForFormat(section, effectiveLanguage, effectiveFormat);
74
79
  }
75
80
  /**
76
81
  * Get section metadata in a specific language
@@ -93,29 +98,33 @@ export class LocalizedTemplateProvider {
93
98
  };
94
99
  }
95
100
  /**
96
- * Get the workflow guide in a specific language
101
+ * Get the workflow guide in a specific language and format
97
102
  *
98
103
  * @param language - The language code (defaults to English)
104
+ * @param format - The output format (defaults to asciidoc)
99
105
  * @returns The workflow guide content
100
106
  */
101
- getWorkflowGuide(language) {
107
+ getWorkflowGuideForFormat(language, format) {
102
108
  const strategy = language
103
109
  ? this.factory.createWithFallback(language)
104
110
  : this.factory.getDefault();
105
- return strategy.getWorkflowGuide();
111
+ const effectiveFormat = format || DEFAULT_OUTPUT_FORMAT;
112
+ return strategy.getWorkflowGuideForFormat(effectiveFormat);
106
113
  }
107
114
  /**
108
- * Get README content in a specific language
115
+ * Get README content in a specific language and format
109
116
  *
110
117
  * @param language - The language code (defaults to English)
111
118
  * @param projectName - Optional project name for README header
119
+ * @param format - The output format (defaults to asciidoc)
112
120
  * @returns The README content
113
121
  */
114
- getReadmeContent(language, projectName) {
122
+ getReadmeContentForFormat(language, projectName, format) {
115
123
  const strategy = language
116
124
  ? this.factory.createWithFallback(language)
117
125
  : this.factory.getDefault();
118
- return strategy.getReadmeContent(projectName);
126
+ const effectiveFormat = format || DEFAULT_OUTPUT_FORMAT;
127
+ return strategy.getReadmeContentForFormat(projectName, effectiveFormat);
119
128
  }
120
129
  /**
121
130
  * Get all available languages
@@ -169,5 +178,35 @@ export class LocalizedTemplateProvider {
169
178
  }
170
179
  return undefined;
171
180
  }
181
+ /**
182
+ * Read the format setting from config.yaml
183
+ *
184
+ * @param workspacePath - Path to the workspace directory
185
+ * @returns The format code from config, or undefined if not found
186
+ */
187
+ readFormatFromConfig(workspacePath) {
188
+ const configPath = join(workspacePath, 'config.yaml');
189
+ if (!existsSync(configPath)) {
190
+ return undefined;
191
+ }
192
+ try {
193
+ const content = readFileSync(configPath, 'utf-8');
194
+ const config = parseYaml(content);
195
+ if (config && typeof config === 'object' && 'format' in config) {
196
+ const format = config.format;
197
+ if (typeof format === 'string') {
198
+ const normalized = format.trim().toLowerCase();
199
+ if (normalized === 'markdown' || normalized === 'asciidoc') {
200
+ return normalized;
201
+ }
202
+ }
203
+ }
204
+ }
205
+ catch {
206
+ // Config file exists but couldn't be parsed
207
+ return undefined;
208
+ }
209
+ return undefined;
210
+ }
172
211
  }
173
212
  //# sourceMappingURL=template-provider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-provider.js","sourceRoot":"","sources":["../../../src/templates/locales/template-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAmB1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACc,OAAO,CAAkB;IAE1C;;;;OAIG;IACH,YAAY,OAAwB;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;;;;OAMG;IACH,WAAW,CAAC,OAAqB,EAAE,QAAiB;QAClD,MAAM,QAAQ,GAAG,QAAQ;YACvB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC;YAC3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AO,QAAQ,KAAK,QAAQ,EAAE,CAAC;oBACjC,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;gBACvC,CAAC;YACH,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,4CAA4C;YAC5C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
1
+ {"version":3,"file":"template-provider.js","sourceRoot":"","sources":["../../../src/templates/locales/template-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAK1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAgB5D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACc,OAAO,CAAkB;IAE1C;;;;OAIG;IACH,YAAY,OAAwB;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;;;;;OAOG;IACH,oBAAoB,CAClB,OAAqB,EACrB,QAAiB,EACjB,MAAyB;QAEzB,MAAM,QAAQ,GAAG,QAAQ;YACvB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC;YAC3C,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAC9B,MAAM,eAAe,GAAG,MAAM,IAAI,qBAAqB,CAAC;QACxD,OAAO,QAAQ,CAAC,oBAAoB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;OAQG;IACH,8BAA8B,CAC5B,OAAqB,EACrB,aAAqB,EACrB,QAAiB,EACjB,MAAyB;QAEzB,MAAM,iBAAiB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(Українська).
5
+ * Provides Ukrainian section titles, descriptions, and templates in both Markdown and AsciiDoc formats.
6
+ *
3
7
  * @module templates/locales/ukr
8
+ *
9
+ * Design Patterns:
10
+ * - Strategy Pattern: Concrete implementation for Ukrainian language
11
+ * - Plugin Pattern: Format-specific templates are provided via plugins
4
12
  */
5
- import type { LanguageStrategy } from '../language-strategy.js';
6
- export declare const ukrainianStrategy: LanguageStrategy;
13
+ import { type FormatTemplatePlugin } from '../language-strategy-factory.js';
14
+ /**
15
+ * Ukrainian Markdown format plugin
16
+ */
17
+ export declare const ukrainianMarkdownPlugin: FormatTemplatePlugin;
18
+ /**
19
+ * Ukrainian AsciiDoc format plugin
20
+ */
21
+ export declare const ukrainianAsciidocPlugin: FormatTemplatePlugin;
22
+ /**
23
+ * Ukrainian Language Strategy
24
+ *
25
+ * Provides Ukrainian translations for arc42 documentation.
26
+ */
27
+ export declare const ukrainianStrategy: import("../language-strategy.js").LanguageStrategy;
7
28
  export { getSectionTitle, getSectionDescription } from './sections.js';
8
- export { getTemplate, getWorkflowGuide, getReadmeContent } from './templates.js';
29
+ export { getTemplate as getTemplateMarkdown, getWorkflowGuide as getWorkflowGuideMarkdown, getReadmeContent as getReadmeContentMarkdown } from './templates-markdown.js';
30
+ export { getTemplate as getTemplateAsciidoc, getWorkflowGuide as getWorkflowGuideAsciidoc, getReadmeContent as getReadmeContentAsciidoc } from './templates-asciidoc.js';
9
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAoC,MAAM,yBAAyB,CAAC;AAIlG,eAAO,MAAM,iBAAiB,EAAE,gBAwB/B,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAaH,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,oBAIrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,oBAIrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,oDAU5B,CAAC;AAGH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC"}
@@ -1,29 +1,45 @@
1
1
  /**
2
2
  * Ukrainian Language Strategy
3
+ *
4
+ * Implements the LanguageStrategy interface for Ukrainian (Українська).
5
+ * Provides Ukrainian section titles, descriptions, and templates in both Markdown and AsciiDoc formats.
6
+ *
3
7
  * @module templates/locales/ukr
8
+ *
9
+ * Design Patterns:
10
+ * - Strategy Pattern: Concrete implementation for Ukrainian language
11
+ * - Plugin Pattern: Format-specific templates are provided via plugins
4
12
  */
5
13
  import { getSectionTitle, getSectionDescription } from './sections.js';
6
- import { getTemplate, getWorkflowGuide, getReadmeContent } from './templates.js';
7
- export const ukrainianStrategy = {
14
+ import { getTemplate as getTemplateMarkdown, getWorkflowGuide as getWorkflowGuideMarkdown, getReadmeContent as getReadmeContentMarkdown } from './templates-markdown.js';
15
+ import { getTemplate as getTemplateAsciidoc, getWorkflowGuide as getWorkflowGuideAsciidoc, getReadmeContent as getReadmeContentAsciidoc } from './templates-asciidoc.js';
16
+ import { createLanguageStrategy, createFormatPlugin } from '../language-strategy-factory.js';
17
+ /**
18
+ * Ukrainian Markdown format plugin
19
+ */
20
+ export const ukrainianMarkdownPlugin = createFormatPlugin(getTemplateMarkdown, getWorkflowGuideMarkdown, getReadmeContentMarkdown);
21
+ /**
22
+ * Ukrainian AsciiDoc format plugin
23
+ */
24
+ export const ukrainianAsciidocPlugin = createFormatPlugin(getTemplateAsciidoc, getWorkflowGuideAsciidoc, getReadmeContentAsciidoc);
25
+ /**
26
+ * Ukrainian Language Strategy
27
+ *
28
+ * Provides Ukrainian translations for arc42 documentation.
29
+ */
30
+ export const ukrainianStrategy = createLanguageStrategy({
8
31
  code: 'UKR',
9
32
  name: 'Ukrainian',
10
33
  nativeName: 'Українська',
11
- getSectionTitle(section) {
12
- return { title: getSectionTitle(section), section };
13
- },
14
- getSectionDescription(section) {
15
- return { description: getSectionDescription(section), section };
16
- },
17
- getTemplate(section) {
18
- return getTemplate(section);
19
- },
20
- getWorkflowGuide() {
21
- return getWorkflowGuide();
22
- },
23
- getReadmeContent(projectName) {
24
- return getReadmeContent(projectName);
34
+ getSectionTitle,
35
+ getSectionDescription,
36
+ formatPlugins: {
37
+ markdown: ukrainianMarkdownPlugin,
38
+ asciidoc: ukrainianAsciidocPlugin
25
39
  }
26
- };
40
+ });
41
+ // Re-export for convenience
27
42
  export { getSectionTitle, getSectionDescription } from './sections.js';
28
- export { getTemplate, getWorkflowGuide, getReadmeContent } from './templates.js';
43
+ export { getTemplate as getTemplateMarkdown, getWorkflowGuide as getWorkflowGuideMarkdown, getReadmeContent as getReadmeContentMarkdown } from './templates-markdown.js';
44
+ export { getTemplate as getTemplateAsciidoc, getWorkflowGuide as getWorkflowGuideAsciidoc, getReadmeContent as getReadmeContentAsciidoc } from './templates-asciidoc.js';
29
45
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEjF,MAAM,CAAC,MAAM,iBAAiB,GAAqB;IACjD,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,WAAW;IACjB,UAAU,EAAE,YAAY;IAExB,eAAe,CAAC,OAAqB;QACnC,OAAO,EAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACtD,CAAC;IAED,qBAAqB,CAAC,OAAqB;QACzC,OAAO,EAAE,WAAW,EAAE,qBAAqB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IAClE,CAAC;IAED,WAAW,CAAC,OAAqB;QAC/B,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED,gBAAgB;QACd,OAAO,gBAAgB,EAAE,CAAC;IAC5B,CAAC;IAED,gBAAgB,CAAC,WAAoB;QACnC,OAAO,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;CACF,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAEnB,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAyB,kBAAkB,CAC7E,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAyB,kBAAkB,CAC7E,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,CACzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;IACtD,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,WAAW;IACjB,UAAU,EAAE,YAAY;IACxB,eAAe;IACf,qBAAqB;IACrB,aAAa,EAAE;QACb,QAAQ,EAAE,uBAAuB;QACjC,QAAQ,EAAE,uBAAuB;KAClC;CACF,CAAC,CAAC;AAEH,4BAA4B;AAC5B,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Ukrainian Templates - AsciiDoc Format
3
+ *
4
+ * Contains all arc42 section templates in Ukrainian using AsciiDoc syntax.
5
+ * Based on the official arc42 templates from vendor/arc42-template.
6
+ *
7
+ * @module templates/locales/ukr/templates-asciidoc
8
+ */
9
+ import type { Arc42Section } from '../../../types.js';
10
+ /**
11
+ * Get the Ukrainian AsciiDoc template for a specific section
12
+ */
13
+ export declare function getTemplate(section: Arc42Section): string;
14
+ /**
15
+ * Get the Ukrainian workflow guide in AsciiDoc format
16
+ */
17
+ export declare function getWorkflowGuide(): string;
18
+ /**
19
+ * Get the Ukrainian README content in AsciiDoc format
20
+ */
21
+ export declare function getReadmeContent(projectName?: string): string;
22
+ //# sourceMappingURL=templates-asciidoc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates-asciidoc.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/templates-asciidoc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAiBzD;AAolBD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAgGzC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAiD7D"}