@fluojs/cli 1.0.0-beta.1 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.ko.md +56 -7
  2. package/README.md +56 -7
  3. package/dist/cli.d.ts +12 -2
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +69 -33
  6. package/dist/commands/generate.d.ts +11 -1
  7. package/dist/commands/generate.d.ts.map +1 -1
  8. package/dist/commands/generate.js +71 -2
  9. package/dist/commands/inspect.d.ts +20 -0
  10. package/dist/commands/inspect.d.ts.map +1 -1
  11. package/dist/commands/inspect.js +153 -31
  12. package/dist/commands/migrate.d.ts.map +1 -1
  13. package/dist/commands/migrate.js +42 -0
  14. package/dist/commands/new.d.ts.map +1 -1
  15. package/dist/commands/new.js +25 -1
  16. package/dist/generator-types.d.ts +15 -1
  17. package/dist/generator-types.d.ts.map +1 -1
  18. package/dist/generators/controller.d.ts +7 -0
  19. package/dist/generators/controller.d.ts.map +1 -1
  20. package/dist/generators/controller.js +8 -0
  21. package/dist/generators/guard.d.ts +6 -0
  22. package/dist/generators/guard.d.ts.map +1 -1
  23. package/dist/generators/guard.js +7 -0
  24. package/dist/generators/interceptor.d.ts +6 -0
  25. package/dist/generators/interceptor.d.ts.map +1 -1
  26. package/dist/generators/interceptor.js +7 -0
  27. package/dist/generators/manifest.d.ts +267 -0
  28. package/dist/generators/manifest.d.ts.map +1 -1
  29. package/dist/generators/manifest.js +86 -1
  30. package/dist/generators/middleware.d.ts +6 -0
  31. package/dist/generators/middleware.d.ts.map +1 -1
  32. package/dist/generators/middleware.js +7 -0
  33. package/dist/generators/module.d.ts +22 -0
  34. package/dist/generators/module.d.ts.map +1 -1
  35. package/dist/generators/module.js +25 -0
  36. package/dist/generators/render.d.ts +7 -0
  37. package/dist/generators/render.d.ts.map +1 -1
  38. package/dist/generators/render.js +8 -0
  39. package/dist/generators/repository.d.ts +7 -0
  40. package/dist/generators/repository.d.ts.map +1 -1
  41. package/dist/generators/repository.js +8 -0
  42. package/dist/generators/request-dto.d.ts +6 -0
  43. package/dist/generators/request-dto.d.ts.map +1 -1
  44. package/dist/generators/request-dto.js +7 -0
  45. package/dist/generators/response-dto.d.ts +6 -0
  46. package/dist/generators/response-dto.d.ts.map +1 -1
  47. package/dist/generators/response-dto.js +7 -0
  48. package/dist/generators/service.d.ts +7 -0
  49. package/dist/generators/service.d.ts.map +1 -1
  50. package/dist/generators/service.js +8 -0
  51. package/dist/generators/utils.d.ts +18 -0
  52. package/dist/generators/utils.d.ts.map +1 -1
  53. package/dist/generators/utils.js +20 -0
  54. package/dist/help.d.ts +13 -0
  55. package/dist/help.d.ts.map +1 -1
  56. package/dist/help.js +15 -0
  57. package/dist/index.d.ts +1 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +2 -1
  60. package/dist/new/package-spec-resolver.d.ts +7 -0
  61. package/dist/new/package-spec-resolver.d.ts.map +1 -1
  62. package/dist/new/package-spec-resolver.js +8 -0
  63. package/dist/new/prompt.d.ts +1 -0
  64. package/dist/new/prompt.d.ts.map +1 -1
  65. package/dist/new/prompt.js +12 -4
  66. package/dist/new/scaffold.d.ts.map +1 -1
  67. package/dist/new/scaffold.js +17 -1
  68. package/dist/prompt-cancel.d.ts +44 -0
  69. package/dist/prompt-cancel.d.ts.map +1 -0
  70. package/dist/prompt-cancel.js +49 -0
  71. package/dist/registry.d.ts +4 -1
  72. package/dist/registry.d.ts.map +1 -1
  73. package/dist/registry.js +13 -5
  74. package/dist/transforms/nestjs-migrate.d.ts +48 -0
  75. package/dist/transforms/nestjs-migrate.d.ts.map +1 -1
  76. package/dist/transforms/nestjs-migrate.js +62 -0
  77. package/dist/update-check.d.ts +82 -0
  78. package/dist/update-check.d.ts.map +1 -0
  79. package/dist/update-check.js +475 -0
  80. package/package.json +10 -2
@@ -1,5 +1,13 @@
1
1
  import { renderTemplate } from './render.js';
2
2
  import { toKebabCase, toPascalCase } from './utils.js';
3
+
4
+ /**
5
+ * Generate repo files.
6
+ *
7
+ * @param name The name.
8
+ * @param _options The options.
9
+ * @returns The generate repo files result.
10
+ */
3
11
  export function generateRepoFiles(name, _options = {}) {
4
12
  const kebab = toKebabCase(name);
5
13
  const resource = toPascalCase(name);
@@ -1,3 +1,9 @@
1
1
  import type { GeneratedFile } from '../types.js';
2
+ /**
3
+ * Generate request dto files.
4
+ *
5
+ * @param name The name.
6
+ * @returns The generate request dto files result.
7
+ */
2
8
  export declare function generateRequestDtoFiles(name: string): GeneratedFile[];
3
9
  //# sourceMappingURL=request-dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"request-dto.d.ts","sourceRoot":"","sources":["../../src/generators/request-dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAYrE"}
1
+ {"version":3,"file":"request-dto.d.ts","sourceRoot":"","sources":["../../src/generators/request-dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAYrE"}
@@ -1,5 +1,12 @@
1
1
  import { renderTemplate } from './render.js';
2
2
  import { toKebabCase, toPascalCase } from './utils.js';
3
+
4
+ /**
5
+ * Generate request dto files.
6
+ *
7
+ * @param name The name.
8
+ * @returns The generate request dto files result.
9
+ */
3
10
  export function generateRequestDtoFiles(name) {
4
11
  const kebab = toKebabCase(name);
5
12
  const resource = toPascalCase(name);
@@ -1,3 +1,9 @@
1
1
  import type { GeneratedFile } from '../types.js';
2
+ /**
3
+ * Generate response dto files.
4
+ *
5
+ * @param name The name.
6
+ * @returns The generate response dto files result.
7
+ */
2
8
  export declare function generateResponseDtoFiles(name: string): GeneratedFile[];
3
9
  //# sourceMappingURL=response-dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"response-dto.d.ts","sourceRoot":"","sources":["../../src/generators/response-dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAYtE"}
1
+ {"version":3,"file":"response-dto.d.ts","sourceRoot":"","sources":["../../src/generators/response-dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAYtE"}
@@ -1,5 +1,12 @@
1
1
  import { renderTemplate } from './render.js';
2
2
  import { toKebabCase, toPascalCase } from './utils.js';
3
+
4
+ /**
5
+ * Generate response dto files.
6
+ *
7
+ * @param name The name.
8
+ * @returns The generate response dto files result.
9
+ */
3
10
  export function generateResponseDtoFiles(name) {
4
11
  const kebab = toKebabCase(name);
5
12
  const resource = toPascalCase(name);
@@ -1,3 +1,10 @@
1
1
  import type { GenerateOptions, GeneratedFile } from '../types.js';
2
+ /**
3
+ * Generate service files.
4
+ *
5
+ * @param name The name.
6
+ * @param _options The options.
7
+ * @returns The generate service files result.
8
+ */
2
9
  export declare function generateServiceFiles(name: string, _options?: GenerateOptions): GeneratedFile[];
3
10
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/generators/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKlE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,eAAoB,GAAG,aAAa,EAAE,CAkBlG"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/generators/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKlE;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,eAAoB,GAAG,aAAa,EAAE,CAkBlG"}
@@ -1,5 +1,13 @@
1
1
  import { renderTemplate } from './render.js';
2
2
  import { toKebabCase, toPascalCase } from './utils.js';
3
+
4
+ /**
5
+ * Generate service files.
6
+ *
7
+ * @param name The name.
8
+ * @param _options The options.
9
+ * @returns The generate service files result.
10
+ */
3
11
  export function generateServiceFiles(name, _options = {}) {
4
12
  const kebab = toKebabCase(name);
5
13
  const resource = toPascalCase(name);
@@ -1,4 +1,22 @@
1
+ /**
2
+ * To kebab case.
3
+ *
4
+ * @param value The value.
5
+ * @returns The to kebab case result.
6
+ */
1
7
  export declare function toKebabCase(value: string): string;
8
+ /**
9
+ * To pascal case.
10
+ *
11
+ * @param value The value.
12
+ * @returns The to pascal case result.
13
+ */
2
14
  export declare function toPascalCase(value: string): string;
15
+ /**
16
+ * To plural.
17
+ *
18
+ * @param value The value.
19
+ * @returns The to plural result.
20
+ */
3
21
  export declare function toPlural(value: string): string;
4
22
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/generators/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMlD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAa9C"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/generators/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMlD;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAa9C"}
@@ -1,9 +1,29 @@
1
+ /**
2
+ * To kebab case.
3
+ *
4
+ * @param value The value.
5
+ * @returns The to kebab case result.
6
+ */
1
7
  export function toKebabCase(value) {
2
8
  return value.replace(/([a-z0-9])([A-Z])/g, '$1-$2').replace(/[_\s]+/g, '-').replace(/-+/g, '-').toLowerCase();
3
9
  }
10
+
11
+ /**
12
+ * To pascal case.
13
+ *
14
+ * @param value The value.
15
+ * @returns The to pascal case result.
16
+ */
4
17
  export function toPascalCase(value) {
5
18
  return toKebabCase(value).split('-').filter(Boolean).map(segment => segment[0].toUpperCase() + segment.slice(1)).join('');
6
19
  }
20
+
21
+ /**
22
+ * To plural.
23
+ *
24
+ * @param value The value.
25
+ * @returns The to plural result.
26
+ */
7
27
  export function toPlural(value) {
8
28
  if (value.endsWith('s') || value.endsWith('x') || value.endsWith('z') || value.endsWith('ch') || value.endsWith('sh')) {
9
29
  return `${value}es`;
package/dist/help.d.ts CHANGED
@@ -2,7 +2,20 @@ type HelpTableColumn<Row> = {
2
2
  header: string;
3
3
  render: (row: Row) => string;
4
4
  };
5
+ /**
6
+ * Render alias list.
7
+ *
8
+ * @param aliases The aliases.
9
+ * @returns The render alias list result.
10
+ */
5
11
  export declare function renderAliasList(aliases: string[]): string;
12
+ /**
13
+ * Render help table.
14
+ *
15
+ * @param rows The rows.
16
+ * @param columns The columns.
17
+ * @returns The render help table result.
18
+ */
6
19
  export declare function renderHelpTable<Row>(rows: Row[], columns: HelpTableColumn<Row>[]): string;
7
20
  export {};
8
21
  //# sourceMappingURL=help.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,CAAC,GAAG,IAAI;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,CAAC;CAC9B,CAAC;AAUF,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAEzD;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,eAAe,CAAC,GAAG,CAAC,EAAE,GAAG,MAAM,CAazF"}
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,CAAC,GAAG,IAAI;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,CAAC;CAC9B,CAAC;AAUF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAEzD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,eAAe,CAAC,GAAG,CAAC,EAAE,GAAG,MAAM,CAazF"}
package/dist/help.js CHANGED
@@ -4,9 +4,24 @@ function border(widths) {
4
4
  function renderRow(values, widths) {
5
5
  return `| ${values.map((value, index) => value.padEnd(widths[index] ?? 0)).join(' | ')} |`;
6
6
  }
7
+
8
+ /**
9
+ * Render alias list.
10
+ *
11
+ * @param aliases The aliases.
12
+ * @returns The render alias list result.
13
+ */
7
14
  export function renderAliasList(aliases) {
8
15
  return aliases.length === 0 ? '-' : aliases.join(', ');
9
16
  }
17
+
18
+ /**
19
+ * Render help table.
20
+ *
21
+ * @param rows The rows.
22
+ * @param columns The columns.
23
+ * @returns The render help table result.
24
+ */
10
25
  export function renderHelpTable(rows, columns) {
11
26
  const widths = columns.map(column => {
12
27
  const values = rows.map(row => column.render(row));
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { runCli, type CliRuntimeOptions } from './cli.js';
2
2
  export { newUsage, runNewCommand, type NewCommandRuntimeOptions } from './commands/new.js';
3
+ export { CliPromptCancelledError } from './prompt-cancel.js';
3
4
  export type { GenerateOptions, GeneratedFile, GeneratorKind, ModuleRegistration } from './types.js';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC3F,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { runCli } from './cli.js';
2
- export { newUsage, runNewCommand } from './commands/new.js';
2
+ export { newUsage, runNewCommand } from './commands/new.js';
3
+ export { CliPromptCancelledError } from './prompt-cancel.js';
@@ -1,4 +1,11 @@
1
1
  import type { ResolvedBootstrapPlan } from './resolver.js';
2
2
  import type { BootstrapOptions } from './types.js';
3
+ /**
4
+ * Resolve package specs.
5
+ *
6
+ * @param options The options.
7
+ * @param bootstrapPlan The bootstrap plan.
8
+ * @returns The resolve package specs result.
9
+ */
3
10
  export declare function resolvePackageSpecs(options: BootstrapOptions, bootstrapPlan: ResolvedBootstrapPlan): Promise<Record<string, string>>;
4
11
  //# sourceMappingURL=package-spec-resolver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"package-spec-resolver.d.ts","sourceRoot":"","sources":["../../src/new/package-spec-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAkhBnD,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,qBAAqB,GACnC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAgCjC"}
1
+ {"version":3,"file":"package-spec-resolver.d.ts","sourceRoot":"","sources":["../../src/new/package-spec-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAkhBnD;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,qBAAqB,GACnC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAgCjC"}
@@ -366,6 +366,14 @@ function rewriteWorkspaceProtocolDependencies(manifest, packageVersions) {
366
366
  }
367
367
  }
368
368
  }
369
+
370
+ /**
371
+ * Resolve package specs.
372
+ *
373
+ * @param options The options.
374
+ * @param bootstrapPlan The bootstrap plan.
375
+ * @returns The resolve package specs result.
376
+ */
369
377
  export async function resolvePackageSpecs(options, bootstrapPlan) {
370
378
  if (options.dependencySource !== 'local' || !options.repoRoot) {
371
379
  return {};
@@ -20,6 +20,7 @@ export interface BootstrapPrompter {
20
20
  }
21
21
  /** Runtime overrides for resolving bootstrap answers in tests and editors. */
22
22
  export interface ResolveBootstrapAnswersOptions {
23
+ completionMessage?: string | ((answers: BootstrapAnswers) => string);
23
24
  interactive?: boolean;
24
25
  prompt?: BootstrapPrompter;
25
26
  stdin?: ReadableStream;
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/new/prompt.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEnE,iEAAiE;AACjE,eAAO,MAAM,uBAAuB,EAAE,cAAuB,CAAC;AAI9D,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,KAAK,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;CACV,CAAC;AAQF,iEAAiE;AACjE,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,IAAI,IAAI,CAAC;IACf,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC7G,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACxC;AAED,8EAA8E;AAC9E,MAAM,WAAW,8BAA8B;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,KAAK,CAAC,EAAE,cAAc,CAAC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,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC7G,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACxC;AAED,8EAA8E;AAC9E,MAAM,WAAW,8BAA8B;IAC7C,iBAAiB,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,OAAO,EAAE,gBAAgB,KAAK,MAAM,CAAC,CAAC;IACrE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAwPD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,cAAc,EAAE,MAAM,EACtB,SAAS,CAAC,EAAE,MAAM,GACjB,cAAc,CAIhB;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAClC,GAAG,EAAE,MAAM,EACX,SAAS,CAAC,EAAE,MAAM,GACjB,gBAAgB,CAgBlB;AAED;;;;;;;;GAQG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAClC,GAAG,EAAE,MAAM,EACX,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,GAAE,8BAAmC,GAC3C,OAAO,CAAC,gBAAgB,CAAC,CA0B3B"}
@@ -3,6 +3,8 @@ import { dirname, join, resolve } from 'node:path';
3
3
  import * as clack from '@clack/prompts';
4
4
  import { resolveBootstrapSchema } from './resolver.js';
5
5
  import { DOCUMENTED_MICROSERVICE_TRANSPORTS, getApplicationStarterProfiles } from './starter-profiles.js';
6
+ import { CliPromptCancelledError } from '../prompt-cancel.js';
7
+
6
8
  /** Default package manager used when detection has no signal. */
7
9
  export const DEFAULT_PACKAGE_MANAGER = 'pnpm';
8
10
  const DEFAULT_INSTALL_DEPENDENCIES = true;
@@ -22,6 +24,12 @@ const STARTER_SHAPE_CHOICES = [{
22
24
 
23
25
  /** Runtime overrides for resolving bootstrap answers in tests and editors. */
24
26
 
27
+ function resolveCompletionMessage(completionMessage, answers) {
28
+ if (typeof completionMessage === 'function') {
29
+ return completionMessage(answers);
30
+ }
31
+ return completionMessage ?? `Project created! Run: cd ${answers.targetDirectory}`;
32
+ }
25
33
  function hasOwnValue(partial, key) {
26
34
  return partial[key] !== undefined;
27
35
  }
@@ -34,7 +42,7 @@ function createBootstrapPrompter() {
34
42
  });
35
43
  if (clack.isCancel(result)) {
36
44
  clack.cancel('Operation cancelled.');
37
- process.exit(0);
45
+ throw new CliPromptCancelledError();
38
46
  }
39
47
  return result;
40
48
  },
@@ -49,7 +57,7 @@ function createBootstrapPrompter() {
49
57
  });
50
58
  if (clack.isCancel(result)) {
51
59
  clack.cancel('Operation cancelled.');
52
- process.exit(0);
60
+ throw new CliPromptCancelledError();
53
61
  }
54
62
  return result;
55
63
  },
@@ -64,7 +72,7 @@ function createBootstrapPrompter() {
64
72
  });
65
73
  if (clack.isCancel(result)) {
66
74
  clack.cancel('Operation cancelled.');
67
- process.exit(0);
75
+ throw new CliPromptCancelledError();
68
76
  }
69
77
  return result;
70
78
  }
@@ -269,7 +277,7 @@ export async function collectBootstrapAnswers(partial, cwd, userAgent, options =
269
277
  }
270
278
  const answers = await resolveInteractiveBootstrapAnswers(partial, cwd, userAgent, prompt);
271
279
  if (isInteractiveShell) {
272
- clack.outro(`Project created! Run: cd ${answers.targetDirectory}`);
280
+ clack.outro(resolveCompletionMessage(options.completionMessage, answers));
273
281
  }
274
282
  return answers;
275
283
  } finally {
@@ -1 +1 @@
1
- {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/new/scaffold.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,YAAY,CAAC;AAijEnE;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,gBAAgB,EACzB,aAAa,SAAkB,GAC9B,OAAO,CAAC,IAAI,CAAC,CA6Bf;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,6BAAuB,CAAC"}
1
+ {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/new/scaffold.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,YAAY,CAAC;AAmkEnE;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,gBAAgB,EACzB,aAAa,SAAkB,GAC9B,OAAO,CAAC,IAAI,CAAC,CA6Bf;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,6BAAuB,CAAC"}
@@ -26,6 +26,22 @@ const PUBLISHED_RUNTIME_DEPENDENCIES = {
26
26
  mqtt: '^5.0.0',
27
27
  nats: '^2.29.3'
28
28
  };
29
+ const PUBLISHED_INTERNAL_DEPENDENCIES = {
30
+ '@fluojs/cli': '^1.0.0-beta.2',
31
+ '@fluojs/config': '^1.0.0-beta.1',
32
+ '@fluojs/core': '^1.0.0-beta.1',
33
+ '@fluojs/di': '^1.0.0-beta.1',
34
+ '@fluojs/http': '^1.0.0-beta.1',
35
+ '@fluojs/microservices': '^1.0.0-beta.1',
36
+ '@fluojs/platform-bun': '^1.0.0-beta.1',
37
+ '@fluojs/platform-cloudflare-workers': '^1.0.0-beta.1',
38
+ '@fluojs/platform-deno': '^1.0.0-beta.1',
39
+ '@fluojs/platform-express': '^1.0.0-beta.1',
40
+ '@fluojs/platform-fastify': '^1.0.0-beta.2',
41
+ '@fluojs/platform-nodejs': '^1.0.0-beta.1',
42
+ '@fluojs/runtime': '^1.0.0-beta.1',
43
+ '@fluojs/testing': '^1.0.0-beta.1'
44
+ };
29
45
  function describeApplicationStarter(options) {
30
46
  if (options.runtime === 'bun') {
31
47
  return {
@@ -97,7 +113,7 @@ function writeTextFile(filePath, content) {
97
113
  writeFileSync(filePath, content, 'utf8');
98
114
  }
99
115
  function createDependencySpec(packageName, releaseVersion, packageSpecs) {
100
- return packageSpecs[packageName] ?? PUBLISHED_RUNTIME_DEPENDENCIES[packageName] ?? createPublishedInternalDependencySpec(releaseVersion);
116
+ return packageSpecs[packageName] ?? PUBLISHED_RUNTIME_DEPENDENCIES[packageName] ?? PUBLISHED_INTERNAL_DEPENDENCIES[packageName] ?? createPublishedInternalDependencySpec(releaseVersion);
101
117
  }
102
118
  function createPublishedInternalDependencySpec(version) {
103
119
  return `^${version}`;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Stable sentinel error for caller-owned prompt cancellation.
3
+ *
4
+ * @remarks
5
+ * Programmatic prompt hooks passed to `runCli(...)` or `runNewCommand(...)`
6
+ * can throw this error to report a normal user cancellation without relying on
7
+ * CLI internals or terminating the host process.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { CliPromptCancelledError, runNewCommand } from '@fluojs/cli';
12
+ *
13
+ * const exitCode = await runNewCommand([], {
14
+ * interactive: true,
15
+ * prompt: {
16
+ * async text() {
17
+ * throw new CliPromptCancelledError();
18
+ * },
19
+ * async select(_message, _choices, defaultValue) {
20
+ * return defaultValue ?? 'pnpm';
21
+ * },
22
+ * async confirm(_message, defaultValue) {
23
+ * return defaultValue;
24
+ * },
25
+ * },
26
+ * });
27
+ * ```
28
+ */
29
+ export declare class CliPromptCancelledError extends Error {
30
+ /**
31
+ * Creates a prompt cancellation sentinel.
32
+ *
33
+ * @param message Optional cancellation message for diagnostics.
34
+ */
35
+ constructor(message?: string);
36
+ }
37
+ /**
38
+ * Checks whether a thrown value represents a user-cancelled CLI prompt.
39
+ *
40
+ * @param error Value caught from a command execution path.
41
+ * @returns `true` when the value is a `CliPromptCancelledError`.
42
+ */
43
+ export declare function isCliPromptCancelledError(error: unknown): error is CliPromptCancelledError;
44
+ //# sourceMappingURL=prompt-cancel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-cancel.d.ts","sourceRoot":"","sources":["../src/prompt-cancel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;IAChD;;;;OAIG;gBACS,OAAO,SAAyB;CAI7C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,uBAAuB,CAE1F"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Stable sentinel error for caller-owned prompt cancellation.
3
+ *
4
+ * @remarks
5
+ * Programmatic prompt hooks passed to `runCli(...)` or `runNewCommand(...)`
6
+ * can throw this error to report a normal user cancellation without relying on
7
+ * CLI internals or terminating the host process.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { CliPromptCancelledError, runNewCommand } from '@fluojs/cli';
12
+ *
13
+ * const exitCode = await runNewCommand([], {
14
+ * interactive: true,
15
+ * prompt: {
16
+ * async text() {
17
+ * throw new CliPromptCancelledError();
18
+ * },
19
+ * async select(_message, _choices, defaultValue) {
20
+ * return defaultValue ?? 'pnpm';
21
+ * },
22
+ * async confirm(_message, defaultValue) {
23
+ * return defaultValue;
24
+ * },
25
+ * },
26
+ * });
27
+ * ```
28
+ */
29
+ export class CliPromptCancelledError extends Error {
30
+ /**
31
+ * Creates a prompt cancellation sentinel.
32
+ *
33
+ * @param message Optional cancellation message for diagnostics.
34
+ */
35
+ constructor(message = 'Operation cancelled.') {
36
+ super(message);
37
+ this.name = 'CliPromptCancelledError';
38
+ }
39
+ }
40
+
41
+ /**
42
+ * Checks whether a thrown value represents a user-cancelled CLI prompt.
43
+ *
44
+ * @param error Value caught from a command execution path.
45
+ * @returns `true` when the value is a `CliPromptCancelledError`.
46
+ */
47
+ export function isCliPromptCancelledError(error) {
48
+ return error instanceof CliPromptCancelledError;
49
+ }
@@ -1,10 +1,13 @@
1
1
  import type { GeneratorFactory } from './generator-types.js';
2
+ /** In-memory registry that maps generator tokens to factories and their owning collection. */
2
3
  export declare class GeneratorRegistry {
3
4
  private readonly registry;
4
- register(kind: string, factory: GeneratorFactory, description?: string): this;
5
+ register(kind: string, factory: GeneratorFactory, description?: string, collectionId?: string): this;
6
+ collectionId(kind: string): string | undefined;
5
7
  resolve(kind: string): GeneratorFactory | undefined;
6
8
  has(kind: string): boolean;
7
9
  kinds(): string[];
8
10
  }
11
+ /** Default generator registry populated from the deterministic built-in collection. */
9
12
  export declare const defaultRegistry: GeneratorRegistry;
10
13
  //# sourceMappingURL=registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,sBAAsB,CAAC;AAIpF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA4C;IAErE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI;IAK7E,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAInD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI1B,KAAK,IAAI,MAAM,EAAE;CAGlB;AAED,eAAO,MAAM,eAAe,mBAA0B,CAAC"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,sBAAsB,CAAC;AAIpF,8FAA8F;AAC9F,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA4C;IAErE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI;IAKpG,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI9C,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAInD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI1B,KAAK,IAAI,MAAM,EAAE;CAGlB;AAED,uFAAuF;AACvF,eAAO,MAAM,eAAe,mBAA0B,CAAC"}
package/dist/registry.js CHANGED
@@ -1,13 +1,19 @@
1
- import { generatorManifest } from './generators/manifest.js';
1
+ import { builtInGeneratorCollection, listGeneratorDefinitions } from './generators/manifest.js';
2
+
3
+ /** In-memory registry that maps generator tokens to factories and their owning collection. */
2
4
  export class GeneratorRegistry {
3
5
  registry = new Map();
4
- register(kind, factory, description) {
6
+ register(kind, factory, description, collectionId) {
5
7
  this.registry.set(kind, {
8
+ collectionId,
6
9
  factory,
7
10
  description
8
11
  });
9
12
  return this;
10
13
  }
14
+ collectionId(kind) {
15
+ return this.registry.get(kind)?.collectionId;
16
+ }
11
17
  resolve(kind) {
12
18
  return this.registry.get(kind)?.factory;
13
19
  }
@@ -18,13 +24,15 @@ export class GeneratorRegistry {
18
24
  return Array.from(this.registry.keys());
19
25
  }
20
26
  }
27
+
28
+ /** Default generator registry populated from the deterministic built-in collection. */
21
29
  export const defaultRegistry = new GeneratorRegistry();
22
- for (const entry of generatorManifest) {
23
- defaultRegistry.register(entry.kind, entry.factory, entry.description);
30
+ for (const entry of listGeneratorDefinitions()) {
31
+ defaultRegistry.register(entry.kind, entry.factory, entry.description, builtInGeneratorCollection.id);
24
32
  const registryAliases = 'registryAliases' in entry ? entry.registryAliases : undefined;
25
33
  if (registryAliases) {
26
34
  for (const alias of registryAliases) {
27
- defaultRegistry.register(alias, entry.factory, entry.description);
35
+ defaultRegistry.register(alias, entry.factory, entry.description, builtInGeneratorCollection.id);
28
36
  }
29
37
  }
30
38
  }
@@ -1,21 +1,54 @@
1
+ /**
2
+ * Provides the migration transforms value.
3
+ */
1
4
  export declare const MIGRATION_TRANSFORMS: readonly ["imports", "injectable", "scope", "bootstrap", "testing", "tsconfig"];
5
+ /**
6
+ * Defines the migration transform kind type.
7
+ */
2
8
  export type MigrationTransformKind = typeof MIGRATION_TRANSFORMS[number];
9
+ /**
10
+ * Provides the warning categories value.
11
+ */
3
12
  export declare const WARNING_CATEGORIES: readonly ["inject-token", "request-dto", "pipe-converter", "bootstrap-unsupported", "testing-unsupported", "import-unsupported", "injectable-options", "tsconfig-parse", "bootstrap-port"];
13
+ /**
14
+ * Defines the warning category type.
15
+ */
4
16
  export type WarningCategory = typeof WARNING_CATEGORIES[number];
17
+ /**
18
+ * Defines the migration warning type.
19
+ */
5
20
  export type MigrationWarning = {
6
21
  category: WarningCategory;
7
22
  filePath: string;
8
23
  line: number;
9
24
  message: string;
10
25
  };
26
+ /**
27
+ * Get warning category label.
28
+ *
29
+ * @param category The category.
30
+ * @returns The get warning category label result.
31
+ */
11
32
  export declare function getWarningCategoryLabel(category: WarningCategory): string;
33
+ /**
34
+ * Group warnings by category.
35
+ *
36
+ * @param warnings The warnings.
37
+ * @returns The group warnings by category result.
38
+ */
12
39
  export declare function groupWarningsByCategory(warnings: MigrationWarning[]): Map<WarningCategory, MigrationWarning[]>;
40
+ /**
41
+ * Defines the file migration result type.
42
+ */
13
43
  export type FileMigrationResult = {
14
44
  appliedTransforms: MigrationTransformKind[];
15
45
  changed: boolean;
16
46
  filePath: string;
17
47
  warnings: MigrationWarning[];
18
48
  };
49
+ /**
50
+ * Defines the migration report type.
51
+ */
19
52
  export type MigrationReport = {
20
53
  apply: boolean;
21
54
  changedFiles: number;
@@ -23,11 +56,26 @@ export type MigrationReport = {
23
56
  warningCount: number;
24
57
  fileResults: FileMigrationResult[];
25
58
  };
59
+ /**
60
+ * Defines the run nest js migration options type.
61
+ */
26
62
  export type RunNestJsMigrationOptions = {
27
63
  apply: boolean;
28
64
  enabledTransforms: ReadonlySet<MigrationTransformKind>;
29
65
  targetPath: string;
30
66
  };
67
+ /**
68
+ * Run nest js migration.
69
+ *
70
+ * @param options The options.
71
+ * @returns The run nest js migration result.
72
+ */
31
73
  export declare function runNestJsMigration(options: RunNestJsMigrationOptions): MigrationReport;
74
+ /**
75
+ * Render transform list.
76
+ *
77
+ * @param kinds The kinds.
78
+ * @returns The render transform list result.
79
+ */
32
80
  export declare function renderTransformList(kinds: readonly MigrationTransformKind[]): string;
33
81
  //# sourceMappingURL=nestjs-migrate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nestjs-migrate.d.ts","sourceRoot":"","sources":["../../src/transforms/nestjs-migrate.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,iFAAkF,CAAC;AAEpH,MAAM,MAAM,sBAAsB,GAAG,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAOzE,eAAO,MAAM,kBAAkB,4LAUrB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAcF,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CAEzE;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC,eAAe,EAAE,gBAAgB,EAAE,CAAC,CAS9G;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB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