@canonical/summon-core 0.29.0-experimental.0 → 0.30.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 (174) hide show
  1. package/README.md +20 -6
  2. package/dist/esm/discovery/discoverGeneratorTree.js +383 -0
  3. package/dist/esm/discovery/discoverGeneratorTree.js.map +1 -0
  4. package/dist/esm/discovery/generatorCache.js +14 -0
  5. package/dist/esm/discovery/generatorCache.js.map +1 -0
  6. package/dist/esm/discovery/index.js +3 -0
  7. package/dist/esm/discovery/index.js.map +1 -0
  8. package/dist/esm/discovery/types.js +2 -0
  9. package/dist/esm/discovery/types.js.map +1 -0
  10. package/dist/esm/index.js +17 -0
  11. package/dist/esm/index.js.map +1 -0
  12. package/dist/esm/stamp/applyStamp.js +73 -0
  13. package/dist/esm/stamp/applyStamp.js.map +1 -0
  14. package/dist/esm/stamp/index.js +3 -0
  15. package/dist/esm/stamp/index.js.map +1 -0
  16. package/dist/esm/stamp/runTaskWithStamp.js +20 -0
  17. package/dist/esm/stamp/runTaskWithStamp.js.map +1 -0
  18. package/dist/esm/stamp/types.js +2 -0
  19. package/dist/esm/stamp/types.js.map +1 -0
  20. package/dist/esm/template/TemplatingEngine.js +2 -0
  21. package/dist/esm/template/TemplatingEngine.js.map +1 -0
  22. package/dist/esm/template/ejsEngine.js +17 -0
  23. package/dist/esm/template/ejsEngine.js.map +1 -0
  24. package/dist/esm/template/generateStamp.js +23 -0
  25. package/dist/esm/template/generateStamp.js.map +1 -0
  26. package/dist/esm/template/generatorComment.js +21 -0
  27. package/dist/esm/template/generatorComment.js.map +1 -0
  28. package/dist/esm/template/getCommentStyle.js +51 -0
  29. package/dist/esm/template/getCommentStyle.js.map +1 -0
  30. package/dist/esm/template/index.js +12 -0
  31. package/dist/esm/template/index.js.map +1 -0
  32. package/dist/esm/template/prependStamp.js +16 -0
  33. package/dist/esm/template/prependStamp.js.map +1 -0
  34. package/dist/esm/template/renderFile.js +8 -0
  35. package/dist/esm/template/renderFile.js.map +1 -0
  36. package/dist/esm/template/renderString.js +8 -0
  37. package/dist/esm/template/renderString.js.map +1 -0
  38. package/dist/esm/template/renderStringAsync.js +8 -0
  39. package/dist/esm/template/renderStringAsync.js.map +1 -0
  40. package/dist/esm/template/tasks/index.js +3 -0
  41. package/dist/esm/template/tasks/index.js.map +1 -0
  42. package/dist/esm/template/tasks/template.js +29 -0
  43. package/dist/esm/template/tasks/template.js.map +1 -0
  44. package/dist/esm/template/tasks/templateDir.js +51 -0
  45. package/dist/esm/template/tasks/templateDir.js.map +1 -0
  46. package/dist/esm/template/tasks/types.js +2 -0
  47. package/dist/esm/template/tasks/types.js.map +1 -0
  48. package/dist/esm/template/templateHelpers.js +21 -0
  49. package/dist/esm/template/templateHelpers.js.map +1 -0
  50. package/dist/esm/template/withHelpers.js +8 -0
  51. package/dist/esm/template/withHelpers.js.map +1 -0
  52. package/dist/esm/types/AnyGenerator.js +2 -0
  53. package/dist/esm/types/AnyGenerator.js.map +1 -0
  54. package/dist/esm/types/ForbidReserved.js +2 -0
  55. package/dist/esm/types/ForbidReserved.js.map +1 -0
  56. package/dist/esm/types/GeneratorDefinition.js +2 -0
  57. package/dist/esm/types/GeneratorDefinition.js.map +1 -0
  58. package/dist/esm/types/GeneratorMeta.js +2 -0
  59. package/dist/esm/types/GeneratorMeta.js.map +1 -0
  60. package/dist/esm/types/PromptDefinition.js +2 -0
  61. package/dist/esm/types/PromptDefinition.js.map +1 -0
  62. package/dist/esm/types/ReservedOption.js +2 -0
  63. package/dist/esm/types/ReservedOption.js.map +1 -0
  64. package/dist/esm/types/StampConfig.js +2 -0
  65. package/dist/esm/types/StampConfig.js.map +1 -0
  66. package/dist/esm/types/index.js +2 -0
  67. package/dist/esm/types/index.js.map +1 -0
  68. package/dist/types/discovery/discoverGeneratorTree.d.ts +31 -0
  69. package/dist/types/discovery/discoverGeneratorTree.d.ts.map +1 -0
  70. package/{src/discovery/generatorCache.ts → dist/types/discovery/generatorCache.d.ts} +2 -3
  71. package/dist/types/discovery/generatorCache.d.ts.map +1 -0
  72. package/{src/discovery/index.ts → dist/types/discovery/index.d.ts} +1 -0
  73. package/dist/types/discovery/index.d.ts.map +1 -0
  74. package/dist/types/discovery/types.d.ts +18 -0
  75. package/dist/types/discovery/types.d.ts.map +1 -0
  76. package/dist/types/index.d.ts +18 -0
  77. package/dist/types/index.d.ts.map +1 -0
  78. package/dist/types/stamp/applyStamp.d.ts +7 -0
  79. package/dist/types/stamp/applyStamp.d.ts.map +1 -0
  80. package/{src/stamp/index.ts → dist/types/stamp/index.d.ts} +1 -0
  81. package/dist/types/stamp/index.d.ts.map +1 -0
  82. package/dist/types/stamp/runTaskWithStamp.d.ts +8 -0
  83. package/dist/types/stamp/runTaskWithStamp.d.ts.map +1 -0
  84. package/dist/types/stamp/types.d.ts +7 -0
  85. package/dist/types/stamp/types.d.ts.map +1 -0
  86. package/dist/types/template/TemplatingEngine.d.ts +15 -0
  87. package/dist/types/template/TemplatingEngine.d.ts.map +1 -0
  88. package/dist/types/template/ejsEngine.d.ts +7 -0
  89. package/dist/types/template/ejsEngine.d.ts.map +1 -0
  90. package/dist/types/template/generateStamp.d.ts +7 -0
  91. package/dist/types/template/generateStamp.d.ts.map +1 -0
  92. package/dist/types/template/generatorComment.d.ts +15 -0
  93. package/dist/types/template/generatorComment.d.ts.map +1 -0
  94. package/dist/types/template/getCommentStyle.d.ts +12 -0
  95. package/dist/types/template/getCommentStyle.d.ts.map +1 -0
  96. package/{src/template/index.ts → dist/types/template/index.d.ts} +1 -0
  97. package/dist/types/template/index.d.ts.map +1 -0
  98. package/dist/types/template/prependStamp.d.ts +6 -0
  99. package/dist/types/template/prependStamp.d.ts.map +1 -0
  100. package/dist/types/template/renderFile.d.ts +6 -0
  101. package/dist/types/template/renderFile.d.ts.map +1 -0
  102. package/dist/types/template/renderString.d.ts +6 -0
  103. package/dist/types/template/renderString.d.ts.map +1 -0
  104. package/dist/types/template/renderStringAsync.d.ts +6 -0
  105. package/dist/types/template/renderStringAsync.d.ts.map +1 -0
  106. package/{src/template/tasks/index.ts → dist/types/template/tasks/index.d.ts} +1 -0
  107. package/dist/types/template/tasks/index.d.ts.map +1 -0
  108. package/dist/types/template/tasks/template.d.ts +11 -0
  109. package/dist/types/template/tasks/template.d.ts.map +1 -0
  110. package/dist/types/template/tasks/templateDir.d.ts +7 -0
  111. package/dist/types/template/tasks/templateDir.d.ts.map +1 -0
  112. package/dist/types/template/tasks/types.d.ts +33 -0
  113. package/dist/types/template/tasks/types.d.ts.map +1 -0
  114. package/dist/types/template/templateHelpers.d.ts +19 -0
  115. package/dist/types/template/templateHelpers.d.ts.map +1 -0
  116. package/dist/types/template/withHelpers.d.ts +5 -0
  117. package/dist/types/template/withHelpers.d.ts.map +1 -0
  118. package/{src/types/AnyGenerator.ts → dist/types/types/AnyGenerator.d.ts} +1 -3
  119. package/dist/types/types/AnyGenerator.d.ts.map +1 -0
  120. package/{src/types/ForbidReserved.ts → dist/types/types/ForbidReserved.d.ts} +2 -5
  121. package/dist/types/types/ForbidReserved.d.ts.map +1 -0
  122. package/dist/types/types/GeneratorDefinition.d.ts +17 -0
  123. package/dist/types/types/GeneratorDefinition.d.ts.map +1 -0
  124. package/dist/types/types/GeneratorMeta.d.ts +30 -0
  125. package/dist/types/types/GeneratorMeta.d.ts.map +1 -0
  126. package/dist/types/types/PromptDefinition.d.ts +37 -0
  127. package/dist/types/types/PromptDefinition.d.ts.map +1 -0
  128. package/dist/types/types/ReservedOption.d.ts +7 -0
  129. package/dist/types/types/ReservedOption.d.ts.map +1 -0
  130. package/dist/types/types/StampConfig.d.ts +7 -0
  131. package/dist/types/types/StampConfig.d.ts.map +1 -0
  132. package/{src/types/index.ts → dist/types/types/index.d.ts} +1 -0
  133. package/dist/types/types/index.d.ts.map +1 -0
  134. package/package.json +14 -20
  135. package/src/discovery/discoverGeneratorTree.test.ts +0 -926
  136. package/src/discovery/discoverGeneratorTree.ts +0 -460
  137. package/src/discovery/types.ts +0 -18
  138. package/src/index.ts +0 -65
  139. package/src/stamp/applyStamp.test.ts +0 -252
  140. package/src/stamp/applyStamp.ts +0 -90
  141. package/src/stamp/runTaskWithStamp.ts +0 -31
  142. package/src/stamp/types.ts +0 -7
  143. package/src/template/TemplatingEngine.ts +0 -17
  144. package/src/template/ejsEngine.test.ts +0 -30
  145. package/src/template/ejsEngine.ts +0 -21
  146. package/src/template/generateStamp.test.ts +0 -45
  147. package/src/template/generateStamp.ts +0 -29
  148. package/src/template/generatorComment.test.ts +0 -81
  149. package/src/template/generatorComment.ts +0 -32
  150. package/src/template/getCommentStyle.test.ts +0 -112
  151. package/src/template/getCommentStyle.ts +0 -59
  152. package/src/template/prependStamp.test.ts +0 -30
  153. package/src/template/prependStamp.ts +0 -16
  154. package/src/template/renderFile.test.ts +0 -27
  155. package/src/template/renderFile.ts +0 -13
  156. package/src/template/renderString.test.ts +0 -107
  157. package/src/template/renderString.ts +0 -13
  158. package/src/template/renderStringAsync.test.ts +0 -28
  159. package/src/template/renderStringAsync.ts +0 -13
  160. package/src/template/tasks/template.test.ts +0 -88
  161. package/src/template/tasks/template.ts +0 -41
  162. package/src/template/tasks/templateDir.test.ts +0 -126
  163. package/src/template/tasks/templateDir.ts +0 -60
  164. package/src/template/tasks/types.ts +0 -34
  165. package/src/template/templateHelpers.test.ts +0 -227
  166. package/src/template/templateHelpers.ts +0 -35
  167. package/src/template/withHelpers.test.ts +0 -41
  168. package/src/template/withHelpers.ts +0 -10
  169. package/src/testing/integration/template-rendering.test.ts +0 -69
  170. package/src/types/GeneratorDefinition.ts +0 -19
  171. package/src/types/GeneratorMeta.ts +0 -29
  172. package/src/types/PromptDefinition.ts +0 -33
  173. package/src/types/ReservedOption.ts +0 -23
  174. package/src/types/StampConfig.ts +0 -6
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Abstract interface for templating engines.
3
+ *
4
+ * Implement this interface to use alternative template engines
5
+ * (e.g., Handlebars, Mustache, Nunjucks) with the summon generator.
6
+ */
7
+ export default interface TemplatingEngine {
8
+ /** Render a template string with variables (synchronous). */
9
+ render(template: string, vars: Record<string, unknown>): string;
10
+ /** Render a template string with variables (asynchronous). */
11
+ renderAsync(template: string, vars: Record<string, unknown>): Promise<string>;
12
+ /** Render a template file with variables (asynchronous). */
13
+ renderFile(templatePath: string, vars: Record<string, unknown>): Promise<string>;
14
+ }
15
+ //# sourceMappingURL=TemplatingEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplatingEngine.d.ts","sourceRoot":"","sources":["../../../src/template/TemplatingEngine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACvC,6DAA6D;IAC7D,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;IAChE,8DAA8D;IAC9D,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9E,4DAA4D;IAC5D,UAAU,CACR,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB"}
@@ -0,0 +1,7 @@
1
+ import type TemplatingEngine from "./TemplatingEngine.js";
2
+ /**
3
+ * Default EJS templating engine implementation.
4
+ */
5
+ declare const ejsEngine: TemplatingEngine;
6
+ export default ejsEngine;
7
+ //# sourceMappingURL=ejsEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ejsEngine.d.ts","sourceRoot":"","sources":["../../../src/template/ejsEngine.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,QAAA,MAAM,SAAS,EAAE,gBAYhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type StampConfig from "../types/StampConfig.js";
2
+ /**
3
+ * Generate a stamp comment for a generated file.
4
+ * Returns null if the file type doesn't support comments.
5
+ */
6
+ export default function generateStamp(filePath: string, options: StampConfig): string | null;
7
+ //# sourceMappingURL=generateStamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateStamp.d.ts","sourceRoot":"","sources":["../../../src/template/generateStamp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,yBAAyB,CAAC;AAGvD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,WAAW,GACnB,MAAM,GAAG,IAAI,CAkBf"}
@@ -0,0 +1,15 @@
1
+ type CommentFormat = "line" | "html" | "jsx";
2
+ interface GeneratorCommentOptions {
3
+ version?: string;
4
+ timestamp?: boolean;
5
+ /** Comment format. Defaults to "line" (`// ...`). */
6
+ format?: CommentFormat;
7
+ }
8
+ /**
9
+ * Generate a metadata comment for generated files.
10
+ *
11
+ * @param format - "line" for `// ...`, "html" for `<!-- ... -->`, "jsx" for `{/* ... * /}`
12
+ */
13
+ export default function generatorComment(generatorName: string, options?: GeneratorCommentOptions): string;
14
+ export {};
15
+ //# sourceMappingURL=generatorComment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generatorComment.d.ts","sourceRoot":"","sources":["../../../src/template/generatorComment.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7C,UAAU,uBAAuB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,qDAAqD;IACrD,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAQD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,uBAAuB,GAChC,MAAM,CAQR"}
@@ -0,0 +1,12 @@
1
+ interface CommentStyle {
2
+ single?: string;
3
+ blockStart?: string;
4
+ blockEnd?: string;
5
+ preferBlock?: boolean;
6
+ }
7
+ /**
8
+ * Get the comment style for a given file path.
9
+ */
10
+ export default function getCommentStyle(filePath: string): CommentStyle | null;
11
+ export {};
12
+ //# sourceMappingURL=getCommentStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCommentStyle.d.ts","sourceRoot":"","sources":["../../../src/template/getCommentStyle.ts"],"names":[],"mappings":"AAEA,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA6CD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAG7E"}
@@ -11,3 +11,4 @@ export type { TemplateDirOptions, TemplateOptions } from "./tasks/index.js";
11
11
  export { template, templateDir } from "./tasks/index.js";
12
12
  export { default as templateHelpers } from "./templateHelpers.js";
13
13
  export { default as withHelpers } from "./withHelpers.js";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtE,YAAY,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Prepend a stamp to file content.
3
+ * Handles shebang lines (#!/...) by placing stamp after them.
4
+ */
5
+ export default function prependStamp(content: string, stamp: string): string;
6
+ //# sourceMappingURL=prependStamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prependStamp.d.ts","sourceRoot":"","sources":["../../../src/template/prependStamp.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAW3E"}
@@ -0,0 +1,6 @@
1
+ import type TemplatingEngine from "./TemplatingEngine.js";
2
+ /**
3
+ * Render a template file with variables.
4
+ */
5
+ export default function renderFile(templatePath: string, vars: Record<string, unknown>, engine?: TemplatingEngine): Promise<string>;
6
+ //# sourceMappingURL=renderFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderFile.d.ts","sourceRoot":"","sources":["../../../src/template/renderFile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,wBAA8B,UAAU,CACtC,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,MAAM,GAAE,gBAA4B,GACnC,OAAO,CAAC,MAAM,CAAC,CAEjB"}
@@ -0,0 +1,6 @@
1
+ import type TemplatingEngine from "./TemplatingEngine.js";
2
+ /**
3
+ * Render a template string with variables.
4
+ */
5
+ export default function renderString(template: string, vars: Record<string, unknown>, engine?: TemplatingEngine): string;
6
+ //# sourceMappingURL=renderString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderString.d.ts","sourceRoot":"","sources":["../../../src/template/renderString.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,MAAM,GAAE,gBAA4B,GACnC,MAAM,CAER"}
@@ -0,0 +1,6 @@
1
+ import type TemplatingEngine from "./TemplatingEngine.js";
2
+ /**
3
+ * Render a template string asynchronously.
4
+ */
5
+ export default function renderStringAsync(template: string, vars: Record<string, unknown>, engine?: TemplatingEngine): Promise<string>;
6
+ //# sourceMappingURL=renderStringAsync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderStringAsync.d.ts","sourceRoot":"","sources":["../../../src/template/renderStringAsync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,wBAA8B,iBAAiB,CAC7C,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,MAAM,GAAE,gBAA4B,GACnC,OAAO,CAAC,MAAM,CAAC,CAEjB"}
@@ -1,3 +1,4 @@
1
1
  export { default as template } from "./template.js";
2
2
  export { default as templateDir } from "./templateDir.js";
3
3
  export type { TemplateDirOptions, TemplateOptions } from "./types.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/tasks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type Task } from "@canonical/task";
2
+ import type { TemplateOptions } from "./types.js";
3
+ /**
4
+ * Render a single template file to a destination.
5
+ *
6
+ * When `options.content` is provided, uses it directly instead of
7
+ * reading from `options.source`. This supports compiled binaries
8
+ * where template files are embedded and pre-loaded.
9
+ */
10
+ export default function template(options: TemplateOptions): Task<void>;
11
+ //# sourceMappingURL=template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/template/tasks/template.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,IAAI,EAGV,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,CAoBrE"}
@@ -0,0 +1,7 @@
1
+ import { type Task } from "@canonical/task";
2
+ import type { TemplateDirOptions } from "./types.js";
3
+ /**
4
+ * Render a directory of templates to a destination.
5
+ */
6
+ export default function templateDir(options: TemplateDirOptions): Task<void>;
7
+ //# sourceMappingURL=templateDir.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateDir.d.ts","sourceRoot":"","sources":["../../../../src/template/tasks/templateDir.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,IAAI,EAAQ,MAAM,iBAAiB,CAAC;AAInE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAerD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,CAoC3E"}
@@ -0,0 +1,33 @@
1
+ import type TemplatingEngine from "../TemplatingEngine.js";
2
+ export interface TemplateOptions {
3
+ /** Path to the template file. */
4
+ source: string;
5
+ /** Destination path (can contain template variables). */
6
+ dest: string;
7
+ /** Variables to pass to the template. */
8
+ vars: Record<string, unknown>;
9
+ /** Templating engine to use (defaults to EJS). */
10
+ engine?: TemplatingEngine;
11
+ /**
12
+ * Inline template content. When provided, skips reading from `source`.
13
+ * Use this when the template is embedded or pre-loaded (e.g. compiled binaries).
14
+ */
15
+ content?: string;
16
+ }
17
+ export interface TemplateDirOptions {
18
+ /** Source directory containing templates */
19
+ source: string;
20
+ /** Destination directory */
21
+ dest: string;
22
+ /** Variables to pass to all templates */
23
+ vars: Record<string, unknown>;
24
+ /** File rename mappings (original -> new name, supports template vars) */
25
+ rename?: Record<string, string>;
26
+ /** Glob patterns to ignore */
27
+ ignore?: string[];
28
+ /** Content transformers by file extension or name */
29
+ transform?: Record<string, (content: string) => string>;
30
+ /** Templating engine to use (defaults to EJS) */
31
+ engine?: TemplatingEngine;
32
+ }
33
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/template/tasks/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,kDAAkD;IAClD,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IACxD,iDAAiD;IACjD,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Common template helpers that can be passed to templates.
3
+ */
4
+ import { capitalize, indent, join, toCamelCase, toConstantCase, toKebabCase, toPascalCase, toSnakeCase } from "@canonical/utils";
5
+ declare const templateHelpers: {
6
+ camelCase: typeof toCamelCase;
7
+ pascalCase: typeof toPascalCase;
8
+ kebabCase: typeof toKebabCase;
9
+ snakeCase: typeof toSnakeCase;
10
+ constantCase: typeof toConstantCase;
11
+ capitalize: typeof capitalize;
12
+ indent: typeof indent;
13
+ join: typeof join;
14
+ isoDate: () => string;
15
+ year: () => number;
16
+ pluralize: (word: string, count: number) => string;
17
+ };
18
+ export default templateHelpers;
19
+ //# sourceMappingURL=templateHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateHelpers.d.ts","sourceRoot":"","sources":["../../../src/template/templateHelpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,WAAW,EACX,cAAc,EACd,WAAW,EACX,YAAY,EACZ,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAE1B,QAAA,MAAM,eAAe;;;;;;;;;mBAUN,MAAM;gBAET,MAAM;sBAEE,MAAM,SAAS,MAAM,KAAG,MAAM;CAGjD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Create a vars object with helpers included.
3
+ */
4
+ export default function withHelpers(vars: Record<string, unknown>): Record<string, unknown>;
5
+ //# sourceMappingURL=withHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withHelpers.d.ts","sourceRoot":"","sources":["../../../src/template/withHelpers.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzB"}
@@ -1,9 +1,7 @@
1
1
  import type GeneratorDefinition from "./GeneratorDefinition.js";
2
-
3
2
  /**
4
3
  * A generator definition without type parameters, used in barrels/collections.
5
4
  */
6
- // biome-ignore lint/suspicious/noExplicitAny: Required for contravariant generator collections
7
5
  type AnyGenerator = GeneratorDefinition<any>;
8
-
9
6
  export default AnyGenerator;
7
+ //# sourceMappingURL=AnyGenerator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnyGenerator.d.ts","sourceRoot":"","sources":["../../../src/types/AnyGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AAEH,KAAK,YAAY,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;AAE7C,eAAe,YAAY,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type ReservedOption from "./ReservedOption.js";
2
-
3
2
  /**
4
3
  * Type helper that produces a compile-time error if T contains any reserved option names.
5
4
  *
@@ -15,9 +14,7 @@ import type ReservedOption from "./ReservedOption.js";
15
14
  * ```
16
15
  */
17
16
  type ForbidReserved<T> = {
18
- [K in keyof T]: K extends ReservedOption
19
- ? [`Error: '${K & string}' is a reserved option name`]
20
- : T[K];
17
+ [K in keyof T]: K extends ReservedOption ? [`Error: '${K & string}' is a reserved option name`] : T[K];
21
18
  };
22
-
23
19
  export default ForbidReserved;
20
+ //# sourceMappingURL=ForbidReserved.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForbidReserved.d.ts","sourceRoot":"","sources":["../../../src/types/ForbidReserved.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AAEtD;;;;;;;;;;;;;GAaG;AACH,KAAK,cAAc,CAAC,CAAC,IAAI;KACtB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,SAAS,cAAc,GACpC,CAAC,WAAW,CAAC,GAAG,MAAM,6BAA6B,CAAC,GACpD,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { Task } from "@canonical/task";
2
+ import type GeneratorMeta from "./GeneratorMeta.js";
3
+ import type PromptDefinition from "./PromptDefinition.js";
4
+ /**
5
+ * The complete definition of a generator.
6
+ *
7
+ * @typeParam TAnswers - Type of the answers object passed to generate
8
+ */
9
+ export default interface GeneratorDefinition<TAnswers = Record<string, unknown>> {
10
+ /** Generator metadata for CLI display */
11
+ meta: GeneratorMeta;
12
+ /** Prompts to collect answers from user */
13
+ prompts: PromptDefinition[];
14
+ /** Pure function that returns a Task describing the generation */
15
+ generate: (answers: TAnswers) => Task<void>;
16
+ }
17
+ //# sourceMappingURL=GeneratorDefinition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeneratorDefinition.d.ts","sourceRoot":"","sources":["../../../src/types/GeneratorDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAC1C,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAElC,yCAAyC;IACzC,IAAI,EAAE,aAAa,CAAC;IACpB,2CAA2C;IAC3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC;CAC7C"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Metadata for a generator, displayed in CLI help and discovery.
3
+ */
4
+ export default interface GeneratorMeta {
5
+ /** Generator name, used in CLI path (e.g., "component/react") */
6
+ name: string;
7
+ /**
8
+ * Name used in generated file stamp comments.
9
+ * Use this when the stamp should differ from the CLI command path
10
+ * (e.g., "@canonical/summon-component:react" vs "component/react").
11
+ */
12
+ displayName: string;
13
+ /** One-line description shown in generator listings */
14
+ description: string;
15
+ /** Semantic version of the generator */
16
+ version: string;
17
+ /** Author name or email */
18
+ author?: string;
19
+ /**
20
+ * Extended help text shown when calling `summon <topic>` (without subgenerator)
21
+ * and in --help. Use this for detailed explanation and examples.
22
+ * Supports markdown-like formatting.
23
+ */
24
+ help?: string;
25
+ /**
26
+ * Usage examples shown in help. Each example should show a common invocation.
27
+ */
28
+ examples?: string[];
29
+ }
30
+ //# sourceMappingURL=GeneratorMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeneratorMeta.d.ts","sourceRoot":"","sources":["../../../src/types/GeneratorMeta.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,aAAa;IACpC,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Definition of a prompt in a generator.
3
+ *
4
+ * Each prompt becomes a CLI flag. The prompt name is converted to kebab-case
5
+ * for the flag (e.g., `componentPath` → `--component-path`).
6
+ */
7
+ export default interface PromptDefinition {
8
+ /** Unique identifier, used as answer key and CLI flag name */
9
+ name: string;
10
+ /** Question text displayed to the user */
11
+ message: string;
12
+ /** Type of input */
13
+ type: "text" | "confirm" | "select" | "multiselect";
14
+ /** Default value if user provides no input */
15
+ default?: unknown;
16
+ /** Choices for select/multiselect prompts */
17
+ choices?: Array<{
18
+ label: string;
19
+ value: string;
20
+ }>;
21
+ /** Conditional function - prompt is skipped if this returns false */
22
+ when?: (answers: Record<string, unknown>) => boolean;
23
+ /** Validation function, returns true or error message */
24
+ validate?: (value: unknown) => boolean | string;
25
+ /**
26
+ * Group name for organizing options in --help output.
27
+ * Options without a group appear under "Options".
28
+ */
29
+ group?: string;
30
+ /**
31
+ * If true, this prompt can be provided as a positional argument.
32
+ * Only one prompt per generator should be positional.
33
+ * Only text prompts can be positional.
34
+ */
35
+ positional?: boolean;
36
+ }
37
+ //# sourceMappingURL=PromptDefinition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PromptDefinition.d.ts","sourceRoot":"","sources":["../../../src/types/PromptDefinition.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,WAAW,gBAAgB;IACvC,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;IACpD,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,qEAAqE;IACrE,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC;IACrD,yDAAyD;IACzD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GAAG,MAAM,CAAC;IAChD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Reserved option names for CLI global options.
3
+ * Generator prompts MUST NOT use these names.
4
+ */
5
+ type ReservedOption = "help" | "version" | "dryRun" | "dry-run" | "yes" | "output" | "preview" | "generators" | "run" | "init" | "llm" | "format" | "showFiles" | "show-files" | "verbose" | "generatedStamp";
6
+ export default ReservedOption;
7
+ //# sourceMappingURL=ReservedOption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReservedOption.d.ts","sourceRoot":"","sources":["../../../src/types/ReservedOption.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,KAAK,cAAc,GACf,MAAM,GACN,SAAS,GACT,QAAQ,GACR,SAAS,GACT,KAAK,GACL,QAAQ,GACR,SAAS,GACT,YAAY,GACZ,KAAK,GACL,MAAM,GACN,KAAK,GACL,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,SAAS,GACT,gBAAgB,CAAC;AAErB,eAAe,cAAc,CAAC"}
@@ -0,0 +1,7 @@
1
+ export default interface StampConfig {
2
+ /** Generator name (e.g., "@canonical/summon-package") */
3
+ generator: string;
4
+ /** Generator version (e.g., "0.1.0") */
5
+ version: string;
6
+ }
7
+ //# sourceMappingURL=StampConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StampConfig.d.ts","sourceRoot":"","sources":["../../../src/types/StampConfig.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,WAAW;IAClC,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -5,3 +5,4 @@ export type { default as GeneratorMeta } from "./GeneratorMeta.js";
5
5
  export type { default as PromptDefinition } from "./PromptDefinition.js";
6
6
  export type { default as ReservedOption } from "./ReservedOption.js";
7
7
  export type { default as StampConfig } from "./StampConfig.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjE,YAAY,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrE,YAAY,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/E,YAAY,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,YAAY,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrE,YAAY,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,24 +1,18 @@
1
1
  {
2
2
  "name": "@canonical/summon-core",
3
3
  "description": "Code generation framework: generator definitions, templates, stamps, discovery. Built on @canonical/task.",
4
- "version": "0.29.0-experimental.0",
4
+ "version": "0.30.0",
5
5
  "type": "module",
6
- "module": "src/index.ts",
7
- "types": "src/index.ts",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/types/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "types": "./src/index.ts",
11
- "import": "./src/index.ts"
10
+ "types": "./dist/types/index.d.ts",
11
+ "import": "./dist/esm/index.js"
12
12
  }
13
13
  },
14
- "imports": {
15
- "#types": "./src/types/index.ts",
16
- "#stamp": "./src/stamp/index.ts",
17
- "#template": "./src/template/index.ts",
18
- "#discovery": "./src/discovery/index.ts"
19
- },
20
14
  "files": [
21
- "src"
15
+ "dist"
22
16
  ],
23
17
  "author": {
24
18
  "email": "webteam@canonical.com",
@@ -37,23 +31,23 @@
37
31
  "access": "public"
38
32
  },
39
33
  "scripts": {
40
- "build": "echo 'No build needed - runs directly from TypeScript'",
34
+ "build": "tsc -p tsconfig.build.json",
41
35
  "build:all": "bun run build",
42
36
  "check": "bun run check:biome && bun run check:ts && bun run check:webarchitect",
43
37
  "check:fix": "bun run check:biome:fix && bun run check:ts",
44
38
  "check:biome": "biome check",
45
39
  "check:biome:fix": "biome check --write",
46
40
  "check:ts": "tsc --noEmit",
47
- "check:webarchitect": "webarchitect tool-ts",
41
+ "check:webarchitect": "webarchitect library --license GPL-3.0",
48
42
  "test": "bun run test:vitest",
49
43
  "test:vitest": "vitest run --coverage",
50
44
  "test:vitest:watch": "vitest"
51
45
  },
52
46
  "devDependencies": {
53
47
  "@biomejs/biome": "2.4.9",
54
- "@canonical/biome-config": "^0.28.0",
55
- "@canonical/typescript-config": "^0.28.0",
56
- "@canonical/webarchitect": "^0.29.0-experimental.0",
48
+ "@canonical/biome-config": "^0.30.0",
49
+ "@canonical/typescript-config": "^0.30.0",
50
+ "@canonical/webarchitect": "^0.30.0",
57
51
  "@types/bun": "^1.3.10",
58
52
  "@types/ejs": "^3.1.5",
59
53
  "@types/node": "^24.12.0",
@@ -61,10 +55,10 @@
61
55
  "vitest": "^4.0.18"
62
56
  },
63
57
  "dependencies": {
64
- "@canonical/task": "^0.29.0-experimental.0",
65
- "@canonical/utils": "^0.29.0-experimental.0",
58
+ "@canonical/task": "^0.30.0",
59
+ "@canonical/utils": "^0.30.0",
66
60
  "chalk": "^5.6.2",
67
61
  "ejs": "^5.0.0"
68
62
  },
69
- "gitHead": "eda67fea634a79b9f77910d3106219efc9b30136"
63
+ "gitHead": "40fe86ac955473536ac14f074812a9821f5b65c0"
70
64
  }