@c15t/cli 1.8.3 → 2.0.0-rc.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 (187) hide show
  1. package/dist/760.mjs +1720 -0
  2. package/dist/__tests__/auth/config-store.test.d.ts +2 -0
  3. package/dist/__tests__/auth/config-store.test.d.ts.map +1 -0
  4. package/dist/__tests__/constants.test.d.ts +2 -0
  5. package/dist/__tests__/constants.test.d.ts.map +1 -0
  6. package/dist/__tests__/detection/layout.test.d.ts +2 -0
  7. package/dist/__tests__/detection/layout.test.d.ts.map +1 -0
  8. package/dist/__tests__/mocks/prompts.d.ts +25 -0
  9. package/dist/__tests__/mocks/prompts.d.ts.map +1 -0
  10. package/dist/__tests__/utils/validation.test.d.ts +2 -0
  11. package/dist/__tests__/utils/validation.test.d.ts.map +1 -0
  12. package/dist/auth/config-store.d.ts +63 -0
  13. package/dist/auth/config-store.d.ts.map +1 -0
  14. package/dist/auth/device-flow.d.ts +41 -0
  15. package/dist/auth/device-flow.d.ts.map +1 -0
  16. package/dist/auth/index.d.ts +7 -0
  17. package/dist/auth/index.d.ts.map +1 -0
  18. package/dist/auth/types.d.ts +90 -0
  19. package/dist/auth/types.d.ts.map +1 -0
  20. package/dist/commands/auth/index.d.ts +21 -0
  21. package/dist/commands/auth/index.d.ts.map +1 -0
  22. package/dist/commands/generate/index.d.ts +23 -2
  23. package/dist/commands/generate/index.d.ts.map +1 -1
  24. package/dist/commands/generate/options/c15t-mode.d.ts.map +1 -1
  25. package/dist/commands/generate/options/custom-mode.d.ts +3 -1
  26. package/dist/commands/generate/options/custom-mode.d.ts.map +1 -1
  27. package/dist/commands/generate/options/offline-mode.d.ts.map +1 -1
  28. package/dist/commands/generate/options/self-hosted-mode.d.ts.map +1 -1
  29. package/dist/commands/generate/options/shared/backend-options.d.ts +26 -0
  30. package/dist/commands/generate/options/shared/backend-options.d.ts.map +1 -0
  31. package/dist/commands/generate/options/shared/dev-tools.d.ts +9 -0
  32. package/dist/commands/generate/options/shared/dev-tools.d.ts.map +1 -0
  33. package/dist/commands/generate/options/shared/frontend-ui-options.d.ts +44 -0
  34. package/dist/commands/generate/options/shared/frontend-ui-options.d.ts.map +1 -0
  35. package/dist/commands/generate/options/shared/index.d.ts +9 -0
  36. package/dist/commands/generate/options/shared/index.d.ts.map +1 -0
  37. package/dist/commands/generate/options/shared/ssr.d.ts +21 -0
  38. package/dist/commands/generate/options/shared/ssr.d.ts.map +1 -0
  39. package/dist/commands/generate/options/utils/generate-files.d.ts +10 -2
  40. package/dist/commands/generate/options/utils/generate-files.d.ts.map +1 -1
  41. package/dist/commands/generate/preflight.d.ts +31 -0
  42. package/dist/commands/generate/preflight.d.ts.map +1 -0
  43. package/dist/commands/generate/prompts/expanded-theme.d.ts +46 -0
  44. package/dist/commands/generate/prompts/expanded-theme.d.ts.map +1 -0
  45. package/dist/commands/generate/prompts/index.d.ts +10 -0
  46. package/dist/commands/generate/prompts/index.d.ts.map +1 -0
  47. package/dist/commands/generate/prompts/instance.d.ts +33 -0
  48. package/dist/commands/generate/prompts/instance.d.ts.map +1 -0
  49. package/dist/commands/generate/prompts/mode-select.d.ts +42 -0
  50. package/dist/commands/generate/prompts/mode-select.d.ts.map +1 -0
  51. package/dist/commands/generate/prompts/scripts.d.ts +66 -0
  52. package/dist/commands/generate/prompts/scripts.d.ts.map +1 -0
  53. package/dist/commands/generate/prompts/theme.d.ts +46 -0
  54. package/dist/commands/generate/prompts/theme.d.ts.map +1 -0
  55. package/dist/commands/generate/prompts/ui-style.d.ts +36 -0
  56. package/dist/commands/generate/prompts/ui-style.d.ts.map +1 -0
  57. package/dist/commands/generate/summary.d.ts +37 -0
  58. package/dist/commands/generate/summary.d.ts.map +1 -0
  59. package/dist/commands/generate/templates/config.d.ts +7 -6
  60. package/dist/commands/generate/templates/config.d.ts.map +1 -1
  61. package/dist/commands/generate/templates/css.d.ts +12 -0
  62. package/dist/commands/generate/templates/css.d.ts.map +1 -0
  63. package/dist/commands/generate/templates/index.d.ts +1 -1
  64. package/dist/commands/generate/templates/index.d.ts.map +1 -1
  65. package/dist/commands/generate/templates/layout.d.ts +7 -0
  66. package/dist/commands/generate/templates/layout.d.ts.map +1 -1
  67. package/dist/commands/generate/templates/next/app/layout.d.ts +9 -2
  68. package/dist/commands/generate/templates/next/app/layout.d.ts.map +1 -1
  69. package/dist/commands/generate/templates/next/index.d.ts +7 -0
  70. package/dist/commands/generate/templates/next/index.d.ts.map +1 -1
  71. package/dist/commands/generate/templates/next/pages/layout.d.ts +3 -1
  72. package/dist/commands/generate/templates/next/pages/layout.d.ts.map +1 -1
  73. package/dist/commands/generate/templates/shared/components.d.ts +69 -0
  74. package/dist/commands/generate/templates/shared/components.d.ts.map +1 -0
  75. package/dist/commands/generate/templates/shared/directory.d.ts +71 -0
  76. package/dist/commands/generate/templates/shared/directory.d.ts.map +1 -0
  77. package/dist/commands/generate/templates/shared/expanded-components.d.ts +50 -0
  78. package/dist/commands/generate/templates/shared/expanded-components.d.ts.map +1 -0
  79. package/dist/commands/generate/templates/shared/framework-config.d.ts +18 -0
  80. package/dist/commands/generate/templates/shared/framework-config.d.ts.map +1 -0
  81. package/dist/commands/generate/templates/shared/layout-pipeline.d.ts +47 -0
  82. package/dist/commands/generate/templates/shared/layout-pipeline.d.ts.map +1 -0
  83. package/dist/commands/generate/templates/shared/module-specifier.d.ts +68 -0
  84. package/dist/commands/generate/templates/shared/module-specifier.d.ts.map +1 -0
  85. package/dist/commands/generate/templates/shared/options.d.ts +37 -20
  86. package/dist/commands/generate/templates/shared/options.d.ts.map +1 -1
  87. package/dist/commands/generate/templates/shared/scripts.d.ts +62 -0
  88. package/dist/commands/generate/templates/shared/scripts.d.ts.map +1 -0
  89. package/dist/commands/generate/templates/shared/server-components.d.ts +38 -0
  90. package/dist/commands/generate/templates/shared/server-components.d.ts.map +1 -0
  91. package/dist/commands/index.d.ts +8 -0
  92. package/dist/commands/index.d.ts.map +1 -0
  93. package/dist/commands/instances/index.d.ts +22 -0
  94. package/dist/commands/instances/index.d.ts.map +1 -0
  95. package/dist/commands/self-host/migrate/migrator-result.d.ts +1 -1
  96. package/dist/commands/self-host/migrate/migrator-result.d.ts.map +1 -1
  97. package/dist/commands/self-host/migrate/orm-result.d.ts +1 -1
  98. package/dist/commands/self-host/migrate/orm-result.d.ts.map +1 -1
  99. package/dist/commands/self-host/migrate/read-config.d.ts +1 -1
  100. package/dist/commands/self-host/migrate/read-config.d.ts.map +1 -1
  101. package/dist/constants.d.ts +101 -0
  102. package/dist/constants.d.ts.map +1 -0
  103. package/dist/context/framework-detection.d.ts +1 -0
  104. package/dist/context/framework-detection.d.ts.map +1 -1
  105. package/dist/context/types.d.ts +3 -3
  106. package/dist/context/types.d.ts.map +1 -1
  107. package/dist/core/context.d.ts +24 -0
  108. package/dist/core/context.d.ts.map +1 -0
  109. package/dist/core/errors.d.ts +214 -0
  110. package/dist/core/errors.d.ts.map +1 -0
  111. package/dist/core/index.d.ts +9 -0
  112. package/dist/core/index.d.ts.map +1 -0
  113. package/dist/core/logger.d.ts +50 -0
  114. package/dist/core/logger.d.ts.map +1 -0
  115. package/dist/core/parser.d.ts +35 -0
  116. package/dist/core/parser.d.ts.map +1 -0
  117. package/dist/core/telemetry.d.ts +78 -0
  118. package/dist/core/telemetry.d.ts.map +1 -0
  119. package/dist/detection/framework.d.ts +31 -0
  120. package/dist/detection/framework.d.ts.map +1 -0
  121. package/dist/detection/index.d.ts +7 -0
  122. package/dist/detection/index.d.ts.map +1 -0
  123. package/dist/detection/layout.d.ts +36 -0
  124. package/dist/detection/layout.d.ts.map +1 -0
  125. package/dist/detection/package-manager.d.ts +31 -0
  126. package/dist/detection/package-manager.d.ts.map +1 -0
  127. package/dist/index.d.ts +9 -0
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.mjs +2066 -1836
  130. package/dist/machines/generate/actions.d.ts +116 -0
  131. package/dist/machines/generate/actions.d.ts.map +1 -0
  132. package/dist/machines/generate/actors/dependencies.d.ts +43 -0
  133. package/dist/machines/generate/actors/dependencies.d.ts.map +1 -0
  134. package/dist/machines/generate/actors/file-generation.d.ts +54 -0
  135. package/dist/machines/generate/actors/file-generation.d.ts.map +1 -0
  136. package/dist/machines/generate/actors/preflight.d.ts +46 -0
  137. package/dist/machines/generate/actors/preflight.d.ts.map +1 -0
  138. package/dist/machines/generate/actors/prompts.d.ts +122 -0
  139. package/dist/machines/generate/actors/prompts.d.ts.map +1 -0
  140. package/dist/machines/generate/guards.d.ts +180 -0
  141. package/dist/machines/generate/guards.d.ts.map +1 -0
  142. package/dist/machines/generate/machine.d.ts +250 -0
  143. package/dist/machines/generate/machine.d.ts.map +1 -0
  144. package/dist/machines/generate/runner.d.ts +40 -0
  145. package/dist/machines/generate/runner.d.ts.map +1 -0
  146. package/dist/machines/generate/types.d.ts +189 -0
  147. package/dist/machines/generate/types.d.ts.map +1 -0
  148. package/dist/machines/index.d.ts +20 -0
  149. package/dist/machines/index.d.ts.map +1 -0
  150. package/dist/machines/persistence.d.ts +65 -0
  151. package/dist/machines/persistence.d.ts.map +1 -0
  152. package/dist/machines/telemetry-plugin.d.ts +54 -0
  153. package/dist/machines/telemetry-plugin.d.ts.map +1 -0
  154. package/dist/machines/types.d.ts +104 -0
  155. package/dist/machines/types.d.ts.map +1 -0
  156. package/dist/mcp/client.d.ts +61 -0
  157. package/dist/mcp/client.d.ts.map +1 -0
  158. package/dist/mcp/index.d.ts +6 -0
  159. package/dist/mcp/index.d.ts.map +1 -0
  160. package/dist/mcp/types.d.ts +84 -0
  161. package/dist/mcp/types.d.ts.map +1 -0
  162. package/dist/types.d.ts +238 -0
  163. package/dist/types.d.ts.map +1 -0
  164. package/dist/utils/formatter.d.ts +71 -0
  165. package/dist/utils/formatter.d.ts.map +1 -0
  166. package/dist/utils/fs.d.ts +80 -0
  167. package/dist/utils/fs.d.ts.map +1 -0
  168. package/dist/utils/index.d.ts +8 -0
  169. package/dist/utils/index.d.ts.map +1 -0
  170. package/dist/utils/spinner.d.ts +60 -0
  171. package/dist/utils/spinner.d.ts.map +1 -0
  172. package/dist/utils/telemetry.d.ts +4 -0
  173. package/dist/utils/telemetry.d.ts.map +1 -1
  174. package/dist/utils/validation.d.ts +68 -0
  175. package/dist/utils/validation.d.ts.map +1 -0
  176. package/package.json +63 -64
  177. package/LICENSE.md +0 -595
  178. package/dist/commands/generate/options/utils/shared-frontend.d.ts +0 -14
  179. package/dist/commands/generate/options/utils/shared-frontend.d.ts.map +0 -1
  180. package/dist/commands/generate/templates/backend.d.ts +0 -10
  181. package/dist/commands/generate/templates/backend.d.ts.map +0 -1
  182. package/dist/commands/generate/templates/next/app/components.d.ts +0 -44
  183. package/dist/commands/generate/templates/next/app/components.d.ts.map +0 -1
  184. package/dist/commands/generate/templates/next/pages/components.d.ts +0 -22
  185. package/dist/commands/generate/templates/next/pages/components.d.ts.map +0 -1
  186. package/dist/commands/generate/templates/react/components.d.ts +0 -21
  187. package/dist/commands/generate/templates/react/components.d.ts.map +0 -1
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Shared directory utilities for layout templates
3
+ * These functions help detect and create component directories
4
+ */
5
+ /**
6
+ * Detects or determines the components directory path
7
+ *
8
+ * @param projectRoot - Root directory of the project
9
+ * @param sourceDir - Source directory path (e.g., 'src', 'app', 'src/app', or '')
10
+ * @returns The components directory path relative to project root
11
+ *
12
+ * @remarks
13
+ * Checks for existing components folders in order:
14
+ * 1. src/components (if using src directory)
15
+ * 2. components (root level)
16
+ * Creates src/components or components based on project structure
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * // With src directory
21
+ * await getComponentsDirectory('/project', 'src');
22
+ * // Returns: 'src/components' (if exists) or 'components' (if exists) or 'src/components' (default)
23
+ *
24
+ * // Without src directory
25
+ * await getComponentsDirectory('/project', '');
26
+ * // Returns: 'components' (if exists) or 'src/components' (if exists) or 'components' (default)
27
+ *
28
+ * // With app directory
29
+ * await getComponentsDirectory('/project', 'src/app');
30
+ * // Returns: 'src/components' (if exists) or 'components' (if exists) or 'src/components' (default)
31
+ * ```
32
+ */
33
+ export declare function getComponentsDirectory(projectRoot: string, sourceDir: string): Promise<string>;
34
+ /**
35
+ * Determines the framework directory path based on a file's location
36
+ *
37
+ * @param filePath - Full path to a file (can be absolute or relative)
38
+ * @param dirName - The framework directory name to look for (e.g., 'app', 'pages')
39
+ * @returns The framework directory path relative to project root (e.g., 'app', 'src/app', 'pages', 'src/pages')
40
+ *
41
+ * @remarks
42
+ * Checks whether the file is under `src/<dirName>` or just `<dirName>`.
43
+ * Uses path utilities for cross-platform compatibility (handles both Windows and Unix paths).
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * getFrameworkDirectory('/project/src/app/layout.tsx', 'app'); // 'src/app'
48
+ * getFrameworkDirectory('/project/app/layout.tsx', 'app'); // 'app'
49
+ * getFrameworkDirectory('/project/src/pages/_app.tsx', 'pages'); // 'src/pages'
50
+ * getFrameworkDirectory('/project/pages/_app.tsx', 'pages'); // 'pages'
51
+ * ```
52
+ */
53
+ export declare function getFrameworkDirectory(filePath: string, dirName: string): string;
54
+ /**
55
+ * Determines the source directory based on a file path
56
+ *
57
+ * @param filePath - Full path to a file (can be absolute or relative)
58
+ * @returns The source directory path ('src' if in src directory, otherwise '')
59
+ *
60
+ * @remarks
61
+ * Returns 'src' if the file is in src directory, otherwise returns empty string for root level.
62
+ * Uses path utilities for cross-platform compatibility (handles both Windows and Unix paths).
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * getSourceDirectory('/project/src/app/layout.tsx'); // 'src'
67
+ * getSourceDirectory('/project/app/layout.tsx'); // ''
68
+ * ```
69
+ */
70
+ export declare function getSourceDirectory(filePath: string): string;
71
+ //# sourceMappingURL=directory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/directory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,sBAAsB,CAC3C,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,CAsBjB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,qBAAqB,CACpC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACb,MAAM,CASR;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAa3D"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Expanded component file generators
3
+ * Generates separate files in consent-manager/ directory:
4
+ * - provider.tsx (client provider wrapper)
5
+ * - consent-banner.tsx (compound components)
6
+ * - consent-dialog.tsx (compound component dialog)
7
+ * - theme.ts (theme preset)
8
+ *
9
+ * Parameterized by FrameworkConfig so it can be reused across
10
+ * Next.js App Router, TanStack Start, and other RSC frameworks.
11
+ */
12
+ import type { ExpandedTheme } from '../../prompts/expanded-theme';
13
+ import type { FrameworkConfig } from './framework-config';
14
+ interface GenerateExpandedProviderOptions {
15
+ enableSSR: boolean;
16
+ enableDevTools: boolean;
17
+ optionsText: string;
18
+ framework: FrameworkConfig;
19
+ }
20
+ /**
21
+ * Generates the client-side consent-manager/provider.tsx template
22
+ *
23
+ * @param options - Template generation options
24
+ * @returns The complete client provider file content
25
+ */
26
+ export declare function generateExpandedProviderTemplate({ enableSSR, enableDevTools, optionsText, framework, }: GenerateExpandedProviderOptions): string;
27
+ /**
28
+ * Generates the consent-dialog.tsx component using compound components
29
+ *
30
+ * @param framework - Framework-specific configuration
31
+ * @returns The complete consent dialog file content
32
+ */
33
+ export declare function generateExpandedConsentDialogTemplate(framework: FrameworkConfig): string;
34
+ /**
35
+ * Generates the consent-banner.tsx component using compound components
36
+ *
37
+ * @param framework - Framework-specific configuration
38
+ * @returns The complete cookie banner file content
39
+ */
40
+ export declare function generateExpandedConsentBannerTemplate(framework: FrameworkConfig): string;
41
+ /**
42
+ * Generates the theme.ts file with the selected theme preset
43
+ *
44
+ * @param theme - The selected theme preset
45
+ * @param framework - Framework-specific configuration
46
+ * @returns The complete theme file content
47
+ */
48
+ export declare function generateExpandedThemeTemplate(theme: ExpandedTheme, framework: FrameworkConfig): string;
49
+ export {};
50
+ //# sourceMappingURL=expanded-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expanded-components.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/expanded-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,UAAU,+BAA+B;IACxC,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,eAAe,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAAC,EAChD,SAAS,EACT,cAAc,EACd,WAAW,EACX,SAAS,GACT,EAAE,+BAA+B,GAAG,MAAM,CAkE1C;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CACpD,SAAS,EAAE,eAAe,GACxB,MAAM,CA2BR;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CACpD,SAAS,EAAE,eAAe,GACxB,MAAM,CA+BR;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAC5C,KAAK,EAAE,aAAa,EACpB,SAAS,EAAE,eAAe,GACxB,MAAM,CAWR"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Framework configuration for parameterized template generation
3
+ * Allows server component and expanded file generators to work across
4
+ * different React Server Component frameworks (Next.js, TanStack Start, etc.)
5
+ */
6
+ export interface FrameworkConfig {
7
+ importSource: string;
8
+ consentBannerImport: string;
9
+ consentDialogImport: string;
10
+ frameworkName: string;
11
+ ssrMechanism: string;
12
+ docsSlug: string;
13
+ envVarPrefix: string;
14
+ hasSSRProps: boolean;
15
+ }
16
+ export declare const NEXTJS_CONFIG: FrameworkConfig;
17
+ export declare const REACT_CONFIG: FrameworkConfig;
18
+ //# sourceMappingURL=framework-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"framework-config.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/framework-config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,eAAe;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,EAAE,eAS3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAS1B,CAAC"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Shared layout update pipeline for Next.js templates
3
+ * Extracts the common steps of finding a layout file, checking for existing imports,
4
+ * creating component files, adding imports, wrapping JSX, and saving.
5
+ */
6
+ import { type SourceFile } from 'ts-morph';
7
+ interface ComponentFilePaths {
8
+ consentManager: string;
9
+ consentManagerClient?: string;
10
+ consentManagerDir?: string;
11
+ }
12
+ export interface LayoutUpdateResult {
13
+ updated: boolean;
14
+ filePath: string | null;
15
+ alreadyModified: boolean;
16
+ componentFiles?: ComponentFilePaths;
17
+ }
18
+ export interface LayoutPipelineConfig {
19
+ /** Glob patterns to search for the layout file (e.g., ['app/layout.tsx', 'src/app/layout.tsx']) */
20
+ filePatterns: string[];
21
+ /** Root directory of the project */
22
+ projectRoot: string;
23
+ /** Framework directory name for getFrameworkDirectory (e.g., 'app' or 'pages') */
24
+ frameworkDirName: string;
25
+ /** Creates the consent-manager component files. Receives the layout file path and framework directory. */
26
+ createComponents: (layoutFilePath: string, frameworkDir: string) => Promise<ComponentFilePaths>;
27
+ /** Wraps the original JSX string with consent management components */
28
+ wrapJsx: (originalJsx: string) => string;
29
+ /** Optional hook called after the import is added, before JSX wrapping (e.g., for adding types or comments) */
30
+ afterImport?: (sourceFile: SourceFile) => void;
31
+ }
32
+ /**
33
+ * Runs the shared layout update pipeline for Next.js templates
34
+ *
35
+ * Steps:
36
+ * 1. Create a ts-morph Project and find the layout file by patterns
37
+ * 2. Determine the framework directory (e.g., 'app' or 'src/app')
38
+ * 3. Check if ConsentManager import already exists → return early if so
39
+ * 4. Call createComponents to generate component files
40
+ * 5. Add ConsentManager import to the layout file
41
+ * 6. Call afterImport hook (if provided)
42
+ * 7. Find the first return statement, wrap its JSX with wrapJsx
43
+ * 8. Save the file
44
+ */
45
+ export declare function runLayoutUpdatePipeline(config: LayoutPipelineConfig): Promise<LayoutUpdateResult>;
46
+ export {};
47
+ //# sourceMappingURL=layout-pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-pipeline.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/layout-pipeline.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAW,KAAK,UAAU,EAAc,MAAM,UAAU,CAAC;AAOhE,UAAU,kBAAkB;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,kBAAkB,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB;IACpC,mGAAmG;IACnG,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,oCAAoC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,gBAAgB,EAAE,MAAM,CAAC;IACzB,0GAA0G;IAC1G,gBAAgB,EAAE,CACjB,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,KAChB,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,uEAAuE;IACvE,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,+GAA+G;IAC/G,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;CAC/C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,uBAAuB,CAC5C,MAAM,EAAE,oBAAoB,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAoF7B"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Shared module specifier utilities for layout templates
3
+ * These functions help compute relative import paths and add imports to source files
4
+ */
5
+ import type { SourceFile } from 'ts-morph';
6
+ /**
7
+ * Computes a relative module specifier from one file to another
8
+ *
9
+ * @param fromFilePath - The file that will contain the import (e.g., layout file)
10
+ * @param toFilePath - The file being imported (e.g., consent-manager file)
11
+ * @returns A relative module specifier suitable for ES modules (e.g., './consent-manager' or '../consent-manager')
12
+ *
13
+ * @remarks
14
+ * - Computes the relative path between two files
15
+ * - Normalizes path separators to forward slashes for ES modules
16
+ * - Ensures the path starts with './' or '../'
17
+ * - Strips the file extension for bare imports
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * // Same directory
22
+ * computeRelativeModuleSpecifier('/app/layout.tsx', '/app/consent-manager.tsx');
23
+ * // Returns: './consent-manager'
24
+ *
25
+ * // Parent directory
26
+ * computeRelativeModuleSpecifier('/app/layout.tsx', '/components/consent-manager.tsx');
27
+ * // Returns: '../components/consent-manager'
28
+ *
29
+ * // Index file (stripped automatically)
30
+ * computeRelativeModuleSpecifier('/app/layout.tsx', '/components/consent-manager/index.tsx');
31
+ * // Returns: '../components/consent-manager'
32
+ * ```
33
+ */
34
+ export declare function computeRelativeModuleSpecifier(fromFilePath: string, toFilePath: string): string;
35
+ /**
36
+ * Checks if a ConsentManager import already exists in a source file
37
+ *
38
+ * @param sourceFile - The source file to check
39
+ * @param moduleSpecifier - Optional specific module specifier to check against
40
+ * @returns True if a consent-manager import is found
41
+ *
42
+ * @remarks
43
+ * Checks for common consent-manager import patterns:
44
+ * - Exact match on `./consent-manager` or `./consent-manager.tsx`
45
+ * - Any import ending with `/consent-manager` or `/consent-manager/index`
46
+ * - Optionally, an exact match on a computed module specifier
47
+ */
48
+ export declare function hasConsentManagerImport(sourceFile: SourceFile, moduleSpecifier?: string): boolean;
49
+ /**
50
+ * Adds the ConsentManager import to a source file
51
+ *
52
+ * @param sourceFile - The source file to update (layout or _app file)
53
+ * @param consentManagerFilePath - The absolute path to the consent-manager file
54
+ *
55
+ * @remarks
56
+ * Computes the correct relative import path from the source file to the consent-manager file,
57
+ * handling nested directory structures correctly. Skips adding the import if it already exists.
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const project = new Project();
62
+ * const layoutFile = project.addSourceFileAtPath('/app/layout.tsx');
63
+ * addConsentManagerImport(layoutFile, '/components/consent-manager/index.tsx');
64
+ * // Adds: import { ConsentManager } from '../components/consent-manager';
65
+ * ```
66
+ */
67
+ export declare function addConsentManagerImport(sourceFile: SourceFile, consentManagerFilePath: string): void;
68
+ //# sourceMappingURL=module-specifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-specifier.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/module-specifier.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,8BAA8B,CAC7C,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,GAChB,MAAM,CAsBR;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CACtC,UAAU,EAAE,UAAU,EACtB,eAAe,CAAC,EAAE,MAAM,GACtB,OAAO,CAYT;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CACtC,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,MAAM,GAC5B,IAAI,CAgBN"}
@@ -4,34 +4,51 @@
4
4
  * Used by both App Directory and Pages Directory implementations
5
5
  */
6
6
  /**
7
- * Generates the options text for ConsentManagerProvider based on mode and configuration
7
+ * Gets the backend URL value for templates based on configuration
8
8
  *
9
- * @param mode - The storage mode ('c15t', 'offline', or 'custom')
10
- * @param backendURL - URL for the c15t backend/API (for 'c15t' mode)
11
- * @param useEnvFile - Whether to use environment variable for backendURL
12
- * @param proxyNextjs - Whether to use Next.js API proxy for c15t mode
13
- * @returns The formatted options object as a string
9
+ * @param backendURL - The raw backend URL
10
+ * @param useEnvFile - Whether to use environment variable
11
+ * @param proxyNextjs - Whether to use Next.js proxy
12
+ * @returns The backend URL value as a string (quoted literal or env var expression)
14
13
  *
15
14
  * @example
16
15
  * ```ts
17
- * const options = generateOptionsText('c15t', 'https://api.example.com', false, true);
18
- * // Returns: "{ mode: 'c15t', backendURL: '/api/c15t', ... }"
16
+ * // With proxy
17
+ * getBackendURLValue('https://api.example.com', false, true);
18
+ * // Returns: '"/api/c15t"'
19
+ *
20
+ * // With env file
21
+ * getBackendURLValue('https://api.example.com', true, false);
22
+ * // Returns: 'process.env.NEXT_PUBLIC_C15T_URL!'
23
+ *
24
+ * // Direct URL
25
+ * getBackendURLValue('https://api.example.com', false, false);
26
+ * // Returns: '"https://api.example.com"'
19
27
  * ```
20
28
  */
21
- export declare function generateOptionsText(mode: string, backendURL?: string, useEnvFile?: boolean, proxyNextjs?: boolean): string;
29
+ export declare function getBackendURLValue(backendURL?: string, useEnvFile?: boolean, proxyNextjs?: boolean, envVarPrefix?: string): string;
22
30
  /**
23
- * Gets the required base imports for ConsentManagerProvider
31
+ * Generates the inner options text for ConsentManagerProvider based on mode and configuration
24
32
  *
25
- * @returns Array of import names needed for basic consent management
26
- */
27
- export declare function getBaseImports(): string[];
28
- /**
29
- * Gets additional imports needed for custom mode
33
+ * @param mode - The storage mode ('c15t', 'self-hosted', 'offline', or 'custom')
34
+ * @param backendURL - URL for the c15t backend/API (for 'c15t'/'self-hosted' modes)
35
+ * @param useEnvFile - Whether to use environment variable for backendURL
36
+ * @param proxyNextjs - Whether to use Next.js API proxy for c15t mode
37
+ * @param inlineCustomHandlers - When true, generates inline fetch-based endpoint handlers
38
+ * for 'custom' mode instead of referencing createCustomHandlers(). Used by React templates
39
+ * that don't generate a separate handlers file.
40
+ * @returns The formatted options content (without outer braces) as a string
30
41
  *
31
- * @returns Array of import configurations for custom handlers
42
+ * @remarks
43
+ * This returns the inner content of the options object, suitable for embedding
44
+ * in template literals. The outer braces and additional options like `ssrData`
45
+ * are added by the template generators.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const options = generateOptionsText('c15t', 'https://api.example.com', false, true);
50
+ * // Returns: "mode: 'c15t',\n\t\t\t\tbackendURL: '/api/c15t', ..."
51
+ * ```
32
52
  */
33
- export declare function getCustomModeImports(): Array<{
34
- namedImports: string[];
35
- moduleSpecifier: string;
36
- }>;
53
+ export declare function generateOptionsText(mode: string, backendURL?: string, useEnvFile?: boolean, proxyNextjs?: boolean, inlineCustomHandlers?: boolean, envVarPrefix?: string): string;
37
54
  //# sourceMappingURL=options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,OAAO,EACpB,WAAW,CAAC,EAAE,OAAO,GACnB,MAAM,CAuCR;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAEzC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,KAAK,CAAC;IAC7C,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACxB,CAAC,CAOD"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,kBAAkB,CACjC,UAAU,CAAC,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,OAAO,EACpB,WAAW,CAAC,EAAE,OAAO,EACrB,YAAY,SAAgB,GAC1B,MAAM,CAUR;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,OAAO,EACpB,WAAW,CAAC,EAAE,OAAO,EACrB,oBAAoB,CAAC,EAAE,OAAO,EAC9B,YAAY,SAAgB,GAC1B,MAAM,CAwCR"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Script generation utilities
3
+ * Generates import statements and configuration for selected c15t scripts
4
+ */
5
+ /**
6
+ * Converts a script name to camelCase for import usage
7
+ *
8
+ * @param scriptName - The script name (e.g., 'google-tag-manager', 'google-analytics')
9
+ * @returns The camelCase version (e.g., 'googleTagManager', 'googleAnalytics')
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * toCamelCase('google-tag-manager'); // 'googleTagManager'
14
+ * toCamelCase('meta-pixel'); // 'metaPixel'
15
+ * ```
16
+ */
17
+ export declare function toCamelCase(scriptName: string): string;
18
+ /**
19
+ * Generates the import statements for selected scripts
20
+ * Each script uses a subpath import from @c15t/scripts
21
+ *
22
+ * @param selectedScripts - Array of script names to import
23
+ * @returns The import statements string, or empty string if no scripts
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * generateScriptsImport(['google-tag-manager', 'meta-pixel']);
28
+ * // Returns:
29
+ * // "import { googleTagManager } from '@c15t/scripts/google-tag-manager';
30
+ * // import { metaPixel } from '@c15t/scripts/meta-pixel';"
31
+ * ```
32
+ */
33
+ export declare function generateScriptsImport(selectedScripts: string[]): string;
34
+ /**
35
+ * Generates the scripts configuration array for ConsentManagerProvider options
36
+ *
37
+ * @param selectedScripts - Array of script names to configure
38
+ * @returns The scripts configuration string, or empty string if no scripts
39
+ *
40
+ * @remarks
41
+ * Each script is called with an empty config object that includes a placeholder
42
+ * comment for the user to fill in their specific IDs.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * generateScriptsConfig(['google-tag-manager', 'meta-pixel']);
47
+ * // Returns:
48
+ * // "scripts: [
49
+ * // googleTagManager({ id: 'GTM-XXXXXX' }),
50
+ * // metaPixel({ id: 'XXXXXXXXXX' }),
51
+ * // ],"
52
+ * ```
53
+ */
54
+ export declare function generateScriptsConfig(selectedScripts: string[]): string;
55
+ /**
56
+ * Generates a comment block showing example script configuration
57
+ * Used when no scripts are selected but user might want to add them later
58
+ *
59
+ * @returns A comment block with example script usage
60
+ */
61
+ export declare function generateScriptsCommentPlaceholder(): string;
62
+ //# sourceMappingURL=scripts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scripts.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/scripts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,MAAM,CASvE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,MAAM,CAYvE;AAiCD;;;;;GAKG;AACH,wBAAgB,iCAAiC,IAAI,MAAM,CAM1D"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Server component template generators
3
+ * Generates the server-side consent-manager index.tsx component
4
+ * that wraps the client provider with optional SSR data fetching.
5
+ *
6
+ * Parameterized by FrameworkConfig so it can be reused across
7
+ * Next.js App Router, TanStack Start, and other RSC frameworks.
8
+ */
9
+ import type { FrameworkConfig } from './framework-config';
10
+ interface GenerateServerComponentOptions {
11
+ enableSSR: boolean;
12
+ backendURLValue: string;
13
+ framework: FrameworkConfig;
14
+ }
15
+ /**
16
+ * Generates the server-side consent-manager index.tsx component template
17
+ *
18
+ * When SSR is enabled, the component calls fetchInitialData() to pre-fetch
19
+ * consent data on the server and passes the promise to the client component.
20
+ * When SSR is disabled, it simply wraps children with the client component.
21
+ *
22
+ * @param options - Template generation options
23
+ * @param options.enableSSR - Whether to include fetchInitialData for SSR
24
+ * @param options.backendURLValue - The backend URL value (could be env var or literal)
25
+ * @param options.framework - Framework-specific configuration
26
+ * @returns The complete component file content
27
+ */
28
+ export declare function generateServerComponent({ enableSSR, backendURLValue, framework, }: GenerateServerComponentOptions): string;
29
+ /**
30
+ * Generates a simple non-RSC wrapper component for React (no SSR)
31
+ *
32
+ * @param frameworkName - Display name (e.g. 'React')
33
+ * @param docsSlug - Docs URL slug (e.g. 'react')
34
+ * @returns The complete wrapper file content
35
+ */
36
+ export declare function generateSimpleWrapperComponent(_frameworkName: string, docsSlug: string): string;
37
+ export {};
38
+ //# sourceMappingURL=server-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-components.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/server-components.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,UAAU,8BAA8B;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,eAAe,CAAC;CAC3B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,EACvC,SAAS,EACT,eAAe,EACf,SAAS,GACT,EAAE,8BAA8B,GAAG,MAAM,CAyCzC;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC7C,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,GACd,MAAM,CAYR"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Command exports
3
+ */
4
+ export { authCommands, loginCommand, logoutCommand } from './auth';
5
+ export { generate, generateCommand } from './generate';
6
+ export { instancesCommand } from './instances';
7
+ export { selfHost } from './self-host';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Instance management commands
3
+ */
4
+ import type { CliCommand, CliContext } from '../../types';
5
+ /**
6
+ * List instances command
7
+ */
8
+ declare function listAction(context: CliContext): Promise<void>;
9
+ /**
10
+ * Select instance command
11
+ */
12
+ declare function selectAction(context: CliContext): Promise<void>;
13
+ /**
14
+ * Create instance command
15
+ */
16
+ declare function createAction(context: CliContext): Promise<void>;
17
+ /**
18
+ * Instances command definition
19
+ */
20
+ export declare const instancesCommand: CliCommand;
21
+ export { listAction, selectAction, createAction };
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/instances/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAaH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAY,MAAM,aAAa,CAAC;AAepE;;GAEG;AACH,iBAAe,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA4D5D;AAED;;GAEG;AACH,iBAAe,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA4E9D;AAED;;GAEG;AACH,iBAAe,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAqE9D;AA2CD;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,UA6B9B,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { MigrationResult } from '@c15t/backend/v2/db/migrator';
1
+ import type { MigrationResult } from '@c15t/backend/db/migrator';
2
2
  import type { CliContext } from '../../../context/types';
3
3
  export declare function handleMigrationResult(context: CliContext, result: MigrationResult): Promise<void>;
4
4
  //# sourceMappingURL=migrator-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrator-result.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/migrator-result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,wBAAsB,qBAAqB,CAC1C,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,eAAe,iBAgDvB"}
1
+ {"version":3,"file":"migrator-result.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/migrator-result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,wBAAsB,qBAAqB,CAC1C,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,eAAe,iBAgDvB"}
@@ -1,4 +1,4 @@
1
- import type { ORMResult } from '@c15t/backend/v2/db/migrator';
1
+ import type { ORMResult } from '@c15t/backend/db/migrator';
2
2
  import type { CliContext } from '../../../context/types';
3
3
  export declare function handleORMResult(context: CliContext, result: ORMResult): Promise<void>;
4
4
  //# sourceMappingURL=orm-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"orm-result.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/orm-result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,wBAAsB,eAAe,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,iBAa3E"}
1
+ {"version":3,"file":"orm-result.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/orm-result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,wBAAsB,eAAe,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,iBAa3E"}
@@ -1,4 +1,4 @@
1
- import { DB } from '@c15t/backend/v2/db/schema';
1
+ import { DB } from '@c15t/backend/db/schema';
2
2
  import type { CliContext } from '../../../context/types';
3
3
  export declare function readConfigAndGetDb(context: CliContext, absoluteConfigPath: string): Promise<{
4
4
  db: ReturnType<typeof DB.client>;
@@ -1 +1 @@
1
- {"version":3,"file":"read-config.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/read-config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,4BAA4B,CAAC;AAGhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,wBAAsB,kBAAkB,CACvC,OAAO,EAAE,UAAU,EACnB,kBAAkB,EAAE,MAAM,GACxB,OAAO,CAAC;IACV,EAAE,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC,CA2CD"}
1
+ {"version":3,"file":"read-config.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/read-config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,yBAAyB,CAAC;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD,wBAAsB,kBAAkB,CACvC,OAAO,EAAE,UAAU,EACnB,kBAAkB,EAAE,MAAM,GACxB,OAAO,CAAC;IACV,EAAE,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC,CAiDD"}