@c15t/cli 1.5.0 → 1.6.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 (145) hide show
  1. package/README.md +97 -74
  2. package/dist/commands/generate/index.d.ts +6 -0
  3. package/dist/commands/generate/index.d.ts.map +1 -0
  4. package/dist/{onboarding/storage-modes → commands/generate/options}/c15t-mode.d.ts +5 -10
  5. package/dist/commands/generate/options/c15t-mode.d.ts.map +1 -0
  6. package/dist/{onboarding/storage-modes → commands/generate/options}/custom-mode.d.ts +5 -7
  7. package/dist/commands/generate/options/custom-mode.d.ts.map +1 -0
  8. package/dist/{onboarding/storage-modes → commands/generate/options}/offline-mode.d.ts +5 -7
  9. package/dist/commands/generate/options/offline-mode.d.ts.map +1 -0
  10. package/dist/commands/generate/options/self-hosted-mode.d.ts +19 -0
  11. package/dist/commands/generate/options/self-hosted-mode.d.ts.map +1 -0
  12. package/dist/commands/generate/options/types.d.ts +12 -0
  13. package/dist/commands/generate/options/types.d.ts.map +1 -0
  14. package/dist/{onboarding → commands/generate/options/utils}/dependencies.d.ts +12 -0
  15. package/dist/commands/generate/options/utils/dependencies.d.ts.map +1 -0
  16. package/dist/{onboarding → commands/generate/options/utils}/generate-files.d.ts +4 -8
  17. package/dist/commands/generate/options/utils/generate-files.d.ts.map +1 -0
  18. package/dist/commands/generate/options/utils/shared-frontend.d.ts +13 -0
  19. package/dist/commands/generate/options/utils/shared-frontend.d.ts.map +1 -0
  20. package/dist/commands/generate/templates/backend.d.ts.map +1 -0
  21. package/dist/{onboarding → commands/generate}/templates/config.d.ts +1 -1
  22. package/dist/commands/generate/templates/config.d.ts.map +1 -0
  23. package/dist/{onboarding → commands/generate}/templates/env.d.ts +1 -1
  24. package/dist/commands/generate/templates/env.d.ts.map +1 -0
  25. package/dist/{onboarding → commands/generate}/templates/index.d.ts +1 -1
  26. package/dist/commands/generate/templates/index.d.ts.map +1 -0
  27. package/dist/{onboarding → commands/generate}/templates/layout.d.ts +1 -1
  28. package/dist/commands/generate/templates/layout.d.ts.map +1 -0
  29. package/dist/{onboarding → commands/generate}/templates/next/app/layout.d.ts +1 -1
  30. package/dist/commands/generate/templates/next/app/layout.d.ts.map +1 -0
  31. package/dist/{onboarding → commands/generate}/templates/next/index.d.ts +1 -1
  32. package/dist/commands/generate/templates/next/index.d.ts.map +1 -0
  33. package/dist/{onboarding → commands/generate}/templates/next/pages/layout.d.ts +1 -1
  34. package/dist/commands/generate/templates/next/pages/layout.d.ts.map +1 -0
  35. package/dist/commands/generate/templates/next-config.d.ts.map +1 -0
  36. package/dist/commands/generate/templates/shared/options.d.ts.map +1 -0
  37. package/dist/commands/self-host/index.d.ts +6 -0
  38. package/dist/commands/self-host/index.d.ts.map +1 -0
  39. package/dist/commands/self-host/migrate/ensure-backend-config.d.ts +7 -0
  40. package/dist/commands/self-host/migrate/ensure-backend-config.d.ts.map +1 -0
  41. package/dist/commands/self-host/migrate/ensure-backend-config.test.d.ts +2 -0
  42. package/dist/commands/self-host/migrate/ensure-backend-config.test.d.ts.map +1 -0
  43. package/dist/commands/self-host/migrate/index.d.ts +3 -0
  44. package/dist/commands/self-host/migrate/index.d.ts.map +1 -0
  45. package/dist/commands/self-host/migrate/index.test.d.ts +2 -0
  46. package/dist/commands/self-host/migrate/index.test.d.ts.map +1 -0
  47. package/dist/commands/self-host/migrate/migrator-result.d.ts +4 -0
  48. package/dist/commands/self-host/migrate/migrator-result.d.ts.map +1 -0
  49. package/dist/commands/self-host/migrate/migrator-result.test.d.ts +2 -0
  50. package/dist/commands/self-host/migrate/migrator-result.test.d.ts.map +1 -0
  51. package/dist/commands/self-host/migrate/orm-result.d.ts +4 -0
  52. package/dist/commands/self-host/migrate/orm-result.d.ts.map +1 -0
  53. package/dist/commands/self-host/migrate/orm-result.test.d.ts +2 -0
  54. package/dist/commands/self-host/migrate/orm-result.test.d.ts.map +1 -0
  55. package/dist/commands/self-host/migrate/read-config.d.ts +6 -0
  56. package/dist/commands/self-host/migrate/read-config.d.ts.map +1 -0
  57. package/dist/commands/self-host/migrate/read-config.test.d.ts +2 -0
  58. package/dist/commands/self-host/migrate/read-config.test.d.ts.map +1 -0
  59. package/dist/context/creator.d.ts.map +1 -1
  60. package/dist/context/framework-detection.d.ts +1 -1
  61. package/dist/context/framework-detection.d.ts.map +1 -1
  62. package/dist/context/types.d.ts +1 -0
  63. package/dist/context/types.d.ts.map +1 -1
  64. package/dist/index.d.ts +1 -1
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.mjs +760 -940
  67. package/dist/utils/logger.d.ts.map +1 -1
  68. package/dist/utils/telemetry.d.ts +3 -0
  69. package/dist/utils/telemetry.d.ts.map +1 -1
  70. package/package.json +12 -5
  71. package/readme.json +70 -0
  72. package/dist/actions/get-config/config-extraction.d.ts +0 -37
  73. package/dist/actions/get-config/config-extraction.d.ts.map +0 -1
  74. package/dist/actions/get-config/config-validation.d.ts +0 -7
  75. package/dist/actions/get-config/config-validation.d.ts.map +0 -1
  76. package/dist/actions/get-config/constants.d.ts +0 -13
  77. package/dist/actions/get-config/constants.d.ts.map +0 -1
  78. package/dist/actions/get-config/directory-search.d.ts +0 -6
  79. package/dist/actions/get-config/directory-search.d.ts.map +0 -1
  80. package/dist/actions/get-config/jiti-options.d.ts +0 -9
  81. package/dist/actions/get-config/jiti-options.d.ts.map +0 -1
  82. package/dist/actions/get-config.d.ts +0 -13
  83. package/dist/actions/get-config.d.ts.map +0 -1
  84. package/dist/actions/load-config-and-onboard.d.ts +0 -9
  85. package/dist/actions/load-config-and-onboard.d.ts.map +0 -1
  86. package/dist/commands/generate/actions/handle-existing-file.d.ts +0 -7
  87. package/dist/commands/generate/actions/handle-existing-file.d.ts.map +0 -1
  88. package/dist/commands/generate/actions/handle-new-file.d.ts +0 -7
  89. package/dist/commands/generate/actions/handle-new-file.d.ts.map +0 -1
  90. package/dist/commands/generate/actions/perform-write-action.d.ts +0 -6
  91. package/dist/commands/generate/actions/perform-write-action.d.ts.map +0 -1
  92. package/dist/commands/generate/generators/drizzle.d.ts +0 -4
  93. package/dist/commands/generate/generators/drizzle.d.ts.map +0 -1
  94. package/dist/commands/generate/generators/index.d.ts +0 -19
  95. package/dist/commands/generate/generators/index.d.ts.map +0 -1
  96. package/dist/commands/generate/generators/kysely.d.ts +0 -11
  97. package/dist/commands/generate/generators/kysely.d.ts.map +0 -1
  98. package/dist/commands/generate/generators/prisma.d.ts +0 -3
  99. package/dist/commands/generate/generators/prisma.d.ts.map +0 -1
  100. package/dist/commands/generate/generators/types.d.ts +0 -13
  101. package/dist/commands/generate/generators/types.d.ts.map +0 -1
  102. package/dist/commands/generate/schema.d.ts +0 -10
  103. package/dist/commands/generate/schema.d.ts.map +0 -1
  104. package/dist/commands/generate/setup.d.ts +0 -13
  105. package/dist/commands/generate/setup.d.ts.map +0 -1
  106. package/dist/commands/generate/write.d.ts +0 -8
  107. package/dist/commands/generate/write.d.ts.map +0 -1
  108. package/dist/commands/generate.d.ts +0 -6
  109. package/dist/commands/generate.d.ts.map +0 -1
  110. package/dist/commands/migrate/execute.d.ts +0 -7
  111. package/dist/commands/migrate/execute.d.ts.map +0 -1
  112. package/dist/commands/migrate/plan.d.ts +0 -12
  113. package/dist/commands/migrate/plan.d.ts.map +0 -1
  114. package/dist/commands/migrate/setup.d.ts +0 -12
  115. package/dist/commands/migrate/setup.d.ts.map +0 -1
  116. package/dist/commands/migrate.d.ts +0 -3
  117. package/dist/commands/migrate.d.ts.map +0 -1
  118. package/dist/context/config-management.d.ts +0 -20
  119. package/dist/context/config-management.d.ts.map +0 -1
  120. package/dist/onboarding/dependencies.d.ts.map +0 -1
  121. package/dist/onboarding/generate-files.d.ts.map +0 -1
  122. package/dist/onboarding/index.d.ts +0 -11
  123. package/dist/onboarding/index.d.ts.map +0 -1
  124. package/dist/onboarding/storage-modes/c15t-mode.d.ts.map +0 -1
  125. package/dist/onboarding/storage-modes/custom-mode.d.ts.map +0 -1
  126. package/dist/onboarding/storage-modes/index.d.ts +0 -5
  127. package/dist/onboarding/storage-modes/index.d.ts.map +0 -1
  128. package/dist/onboarding/storage-modes/offline-mode.d.ts.map +0 -1
  129. package/dist/onboarding/storage-modes/self-hosted-mode.d.ts +0 -22
  130. package/dist/onboarding/storage-modes/self-hosted-mode.d.ts.map +0 -1
  131. package/dist/onboarding/templates/backend.d.ts.map +0 -1
  132. package/dist/onboarding/templates/config.d.ts.map +0 -1
  133. package/dist/onboarding/templates/env.d.ts.map +0 -1
  134. package/dist/onboarding/templates/index.d.ts.map +0 -1
  135. package/dist/onboarding/templates/layout.d.ts.map +0 -1
  136. package/dist/onboarding/templates/next/app/layout.d.ts.map +0 -1
  137. package/dist/onboarding/templates/next/index.d.ts.map +0 -1
  138. package/dist/onboarding/templates/next/pages/layout.d.ts.map +0 -1
  139. package/dist/onboarding/templates/next-config.d.ts.map +0 -1
  140. package/dist/onboarding/templates/shared/options.d.ts.map +0 -1
  141. package/dist/onboarding.d.ts +0 -15
  142. package/dist/onboarding.d.ts.map +0 -1
  143. /package/dist/{onboarding → commands/generate}/templates/backend.d.ts +0 -0
  144. /package/dist/{onboarding → commands/generate}/templates/next-config.d.ts +0 -0
  145. /package/dist/{onboarding → commands/generate}/templates/shared/options.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,mBAAmB,CAAC;AAI9D,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAC3D,eAAO,MAAM,cAAc,EAAE,QAAQ,EAAuC,CAAC;AAC7E,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,aAAa,CAAC;AAG/C,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACvD,IAAI,E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AE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACpD,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACrD,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACvD,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACtD;AASD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAC5B,UAAU,QAAQ,GAAG,MAAM,EAC3B,SAAS,OAAO,EAChB,OAAM,OAAO,EAAO,KAClB,MA6BF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GACtB,UAAU,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,EAClD,SAAS,OAAO,EAChB,GAAG,MAAM,OAAO,EAAE,KAChB,IAqBF,CAAC;AAIF,eAAO,MAAM,eAAe,GAAI,OAAO,QAAQ,KAAG,SAiDjD,CAAC"}
@@ -36,6 +36,9 @@ export declare const TelemetryEventName: {
36
36
  readonly GENERATE_STARTED: "generate.started";
37
37
  readonly GENERATE_COMPLETED: "generate.completed";
38
38
  readonly GENERATE_FAILED: "generate.failed";
39
+ readonly SELF_HOST_STARTED: "self-host.started";
40
+ readonly SELF_HOST_COMPLETED: "self-host.completed";
41
+ readonly SELF_HOST_FAILED: "self-host.failed";
39
42
  };
40
43
  export type TelemetryEventName = (typeof TelemetryEventName)[keyof typeof TelemetryEventName];
41
44
  export interface TelemetryOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/utils/telemetry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc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;IAO/B;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B;;;;;OAKG;IACH,OAAO,CAAC,QAAQ;IAQhB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAgFlB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAW3B;;;;OAIG;IACH,SAAS,IAAI,IAAI;CAgBjB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAErE"}
package/package.json CHANGED
@@ -1,7 +1,14 @@
1
1
  {
2
2
  "name": "@c15t/cli",
3
- "version": "1.5.0",
4
- "description": "The CLI for c15t",
3
+ "version": "1.6.0",
4
+ "description": "CLI for rapid c15t setup. Scaffold React and Next.js cookie banners and a preferences centre, generate types and config, and run migration tooling for self-hosted deployments.",
5
+ "homepage": "https://c15t.com",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/c15t/c15t.git",
9
+ "directory": "packages/cli"
10
+ },
11
+ "license": "GPL-3.0-only",
5
12
  "type": "module",
6
13
  "exports": "./dist/index.mjs",
7
14
  "main": "./dist/index.mjs",
@@ -29,8 +36,8 @@
29
36
  "posthog-node": "^4.11.7",
30
37
  "ts-morph": "^25.0.1",
31
38
  "zod": "^3.24.2",
32
- "@c15t/backend": "1.5.0",
33
- "@c15t/react": "1.5.0"
39
+ "@c15t/backend": "1.6.0",
40
+ "@c15t/react": "1.6.0"
34
41
  },
35
42
  "devDependencies": {
36
43
  "@types/figlet": "^1.7.0",
@@ -49,7 +56,7 @@
49
56
  "build": "rslib build",
50
57
  "check-types": "tsc --noEmit",
51
58
  "dev": "rslib build --watch",
52
- "fmt": "pnpm biome format --write . && pnpm biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=true --write",
59
+ "fmt": "pnpm biome format --write . && pnpm biome check --formatter-enabled=false --linter-enabled=false --write",
53
60
  "knip": "knip",
54
61
  "lint": "pnpm biome lint ./src",
55
62
  "start": "node ./dist/index.mjs",
package/readme.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "title": "@c15t/cli: c15t's CLI",
3
+ "description": "CLI for rapid c15t setup. Scaffold React and Next.js cookie banners and a preferences centre, generate types and config, and run migration tooling for self-hosted deployments.",
4
+ "features": [
5
+ "Configuration Generation: Automatically generate schema and code for consent management",
6
+ "Database Migrations: Simplified database schema updates",
7
+ "Multi-Framework Support: Works seamlessly across different web frameworks",
8
+ "Interactive CLI: User-friendly command-line interface with guided workflows",
9
+ "GitHub Integration: Easy way to star and support the project",
10
+ "Documentation Access: Quick access to project documentation"
11
+ ],
12
+ "prerequisites": [
13
+ "Node.js 18.17.0 or later",
14
+ "npm, pnpm, or yarn package manager"
15
+ ],
16
+ "usage": [
17
+ "Run `@c15t/cli generate` to create initial configuration",
18
+ "Customize consent settings in generated files",
19
+ "Integrate with your web application",
20
+ "Use `@c15t/cli migrate` for database schema updates"
21
+ ],
22
+ "commands": [
23
+ {
24
+ "name": "generate",
25
+ "description": "Generate schema/code based on your c15t config"
26
+ },
27
+ {
28
+ "name": "migrate",
29
+ "description": "Run database migrations based on your c15t config"
30
+ },
31
+ {
32
+ "name": "github",
33
+ "description": "Open the project's GitHub repository to star the project"
34
+ },
35
+ {
36
+ "name": "docs",
37
+ "description": "Open the c15t documentation in your browser"
38
+ }
39
+ ],
40
+ "globalFlags": [
41
+ {
42
+ "flag": "--help",
43
+ "description": "Display help menu"
44
+ },
45
+ {
46
+ "flag": "--version",
47
+ "description": "Show CLI version"
48
+ },
49
+ {
50
+ "flag": "--no-telemetry",
51
+ "description": "Disable anonymous usage data collection"
52
+ }
53
+ ],
54
+ "telemetry": {
55
+ "description": "Anonymous usage data collection to help improve the CLI",
56
+ "details": [
57
+ "Not personally identifiable",
58
+ "Used to prioritize features and improvements",
59
+ "Completely optional"
60
+ ],
61
+ "disableMethods": [
62
+ "Use the `--no-telemetry` flag",
63
+ "Set `C15T_TELEMETRY_DISABLED=1` in your environment"
64
+ ]
65
+ },
66
+ "docsLink": "https://c15t.com/docs/cli/overview",
67
+ "quickStartLink": "https://c15t.com/docs/cli/quickstart",
68
+ "githubLink": "https://github.com/c15t/c15t",
69
+ "showCLIGeneration": true
70
+ }
@@ -1,37 +0,0 @@
1
- import type { C15TOptions } from '@c15t/backend';
2
- import type { ConsentManagerOptions } from '@c15t/react';
3
- type MaybeC15TOptions = Partial<C15TOptions>;
4
- type MaybeClientOptions = Partial<ConsentManagerOptions>;
5
- type MaybeC15TFunc = (...args: unknown[]) => unknown;
6
- export type LoadedConfig = {
7
- c15t?: MaybeC15TOptions | MaybeC15TFunc | {
8
- options?: MaybeC15TOptions;
9
- };
10
- default?: MaybeC15TOptions | MaybeC15TFunc | {
11
- options?: MaybeC15TOptions;
12
- };
13
- c15tInstance?: MaybeC15TOptions | MaybeC15TFunc | {
14
- options?: MaybeC15TOptions;
15
- };
16
- c15tConfig?: MaybeClientOptions;
17
- c15tOptions?: MaybeClientOptions;
18
- consent?: MaybeC15TOptions | MaybeC15TFunc | {
19
- options?: MaybeC15TOptions;
20
- };
21
- instance?: {
22
- options?: MaybeC15TOptions;
23
- };
24
- config?: {
25
- options?: MaybeC15TOptions;
26
- };
27
- [key: string]: unknown;
28
- };
29
- export declare function isC15TOptions(obj: unknown): obj is C15TOptions;
30
- export declare function isClientOptions(obj: unknown): obj is ConsentManagerOptions;
31
- /**
32
- * Extract c15t options from a loaded config object.
33
- * Looks for various common export names for the c15t instance or options.
34
- */
35
- export declare function extractOptionsFromConfig(config: LoadedConfig): C15TOptions | ConsentManagerOptions | null;
36
- export {};
37
- //# sourceMappingURL=config-extraction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-extraction.d.ts","sourceRoot":"","sources":["../../../src/actions/get-config/config-extraction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD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import type { ConsentManagerOptions } from '@c15t/react';
3
- /**
4
- * Validate the extracted config object (either client or backend).
5
- */
6
- export declare function validateConfig(config: C15TOptions | ConsentManagerOptions | null): boolean;
7
- //# sourceMappingURL=config-validation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-validation.d.ts","sourceRoot":"","sources":["../../../src/actions/get-config/config-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAIzD;;GAEG;AACH,wBAAgB,cAAc,CAC7B,MAAM,EAAE,WAAW,GAAG,qBAAqB,GAAG,IAAI,GAChD,OAAO,CA8BT"}
@@ -1,13 +0,0 @@
1
- /**
2
- * List of possible config file names and locations to search.
3
- * Priority order:
4
- * 1. c15t.config.ts - Primary frontend configuration (recommended)
5
- * 2. c15t.backend.ts - Optional backend configuration (recommended)
6
- * 3. Legacy/alternative names for backward compatibility
7
- */
8
- export declare const configFileNames: string[];
9
- export declare const extensions: string[];
10
- export declare let possiblePaths: string[];
11
- export declare const directories: string[];
12
- export declare const monorepoSubdirs: string[];
13
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/actions/get-config/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,UAc3B,CAAC;AAEF,eAAO,MAAM,UAAU,UAiBtB,CAAC;AAGF,eAAO,IAAI,aAAa,UAEvB,CAAC;AAGF,eAAO,MAAM,WAAW,UASvB,CAAC;AAQF,eAAO,MAAM,eAAe,UAA2B,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Find all directories that match the glob pattern(s) relative to the CWD.
3
- * Only supports simple prefix* patterns (e.g., 'packages/*').
4
- */
5
- export declare function findDirectories(cwd: string, patterns: string[]): string[];
6
- //# sourceMappingURL=directory-search.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"directory-search.d.ts","sourceRoot":"","sources":["../../../src/actions/get-config/directory-search.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAuCzE"}
@@ -1,9 +0,0 @@
1
- import type { CliContext } from '../../context/types';
2
- /**
3
- * Get Jiti options for transpiling TypeScript/JSX
4
- */
5
- export declare const jitiOptions: (context: CliContext, cwd: string) => {
6
- extensions: string[];
7
- alias: Record<string, string>;
8
- };
9
- //# sourceMappingURL=jiti-options.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jiti-options.d.ts","sourceRoot":"","sources":["../../../src/actions/get-config/jiti-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,UAAU,EAAE,KAAK,MAAM;;;CAM3D,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { C15TOptions } from '@c15t/backend';
2
- import type { ConsentManagerOptions } from '@c15t/react';
3
- import type { CliContext } from '../context/types';
4
- /**
5
- * Gets the configuration for the CLI.
6
- * @param contextOrOptions Either a CliContext object or a simplified object with just cwd and configPath
7
- * @returns The loaded configuration or null if it could not be loaded
8
- */
9
- export declare function getConfig(contextOrOptions: CliContext | {
10
- cwd: string;
11
- configPath?: string;
12
- }): Promise<C15TOptions | ConsentManagerOptions | null>;
13
- //# sourceMappingURL=get-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-config.d.ts","sourceRoot":"","sources":["../../src/actions/get-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAUnD;;;;GAIG;AACH,wBAAsB,SAAS,CAC9B,gBAAgB,EAAE,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GACjE,OAAO,CAAC,WAAW,GAAG,qBAAqB,GAAG,IAAI,CAAC,CA6IrD"}
@@ -1,9 +0,0 @@
1
- import type { C15TOptions, C15TPlugin } from '@c15t/backend';
2
- import type { CliContext } from '../context/types';
3
- /**
4
- * Loads the c15t configuration, triggering onboarding if necessary.
5
- * Exits the process if loading fails or after onboarding is triggered.
6
- * Returns the loaded config if found.
7
- */
8
- export declare function loadConfigAndOnboard(context: CliContext): Promise<C15TOptions<C15TPlugin[]>>;
9
- //# sourceMappingURL=load-config-and-onboard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"load-config-and-onboard.d.ts","sourceRoot":"","sources":["../../src/actions/load-config-and-onboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;;;GAIG;AACH,wBAAsB,oBAAoB,CACzC,OAAO,EAAE,UAAU,GACjB,OAAO,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC,CA4BpC"}
@@ -1,7 +0,0 @@
1
- import type { CliContext } from '../../../context/types';
2
- import type { SchemaResult } from '../schema';
3
- /**
4
- * Handles the logic for confirming and overwriting/appending to an existing schema file.
5
- */
6
- export declare function handleExistingFile(context: CliContext, schema: SchemaResult, filePath: string): Promise<void>;
7
- //# sourceMappingURL=handle-existing-file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handle-existing-file.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/actions/handle-existing-file.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C;;GAEG;AACH,wBAAsB,kBAAkB,CACvC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CA6Ef"}
@@ -1,7 +0,0 @@
1
- import type { CliContext } from '../../../context/types';
2
- import type { SchemaResult } from '../schema';
3
- /**
4
- * Handles the logic for confirming and writing a new schema file.
5
- */
6
- export declare function handleNewFile(context: CliContext, schema: SchemaResult, filePath: string): Promise<void>;
7
- //# sourceMappingURL=handle-new-file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handle-new-file.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/actions/handle-new-file.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG9C;;GAEG;AACH,wBAAsB,aAAa,CAClC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAiCf"}
@@ -1,6 +0,0 @@
1
- import type { CliContext } from '../../../context/types';
2
- /**
3
- * Helper to perform the actual file write operation
4
- */
5
- export declare function performWriteAction(context: CliContext, filePath: string, code: string, actionDescription: string, successMessage: string): Promise<void>;
6
- //# sourceMappingURL=perform-write-action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"perform-write-action.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/actions/perform-write-action.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;GAEG;AACH,wBAAsB,kBAAkB,CACvC,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAoBf"}
@@ -1,4 +0,0 @@
1
- import type { SchemaGenerator } from './types';
2
- export declare function convertToSnakeCase(str: string): string;
3
- export declare const generateDrizzleSchema: SchemaGenerator;
4
- //# sourceMappingURL=drizzle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drizzle.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/generators/drizzle.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAO/C,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,UAM7C;AAED,eAAO,MAAM,qBAAqB,EAAE,eA6KnC,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { C15TOptions } from '@c15t/backend';
2
- import type { Adapter } from '@c15t/backend/pkgs/db-adapters';
3
- import type { CliContext } from '../../../context/types';
4
- export declare const adapters: {
5
- prisma: import("./types").SchemaGenerator;
6
- drizzle: import("./types").SchemaGenerator;
7
- kysely: import("./types").SchemaGenerator;
8
- };
9
- export declare const getGenerator: (context: CliContext, opts: {
10
- adapter: Adapter;
11
- file?: string;
12
- options: C15TOptions;
13
- }) => Promise<{
14
- code?: string;
15
- fileName: string;
16
- overwrite?: boolean;
17
- append?: boolean;
18
- }>;
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/generators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlD,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,eAAO,MAAM,YAAY,GACxB,SAAS,UAAU,EACnB,MAAM;IACL,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,WAAW,CAAC;CACrB;;;;;EAYD,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { SchemaGenerator } from './types';
2
- /**
3
- * Generates SQL migration files for Kysely
4
- *
5
- * @param options - The configuration options
6
- * @param file - Optional output file path
7
- * @param adapter - Database adapter
8
- * @returns Object containing formatted SQL code and filename
9
- */
10
- export declare const generateMigrations: SchemaGenerator;
11
- //# sourceMappingURL=kysely.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kysely.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/generators/kysely.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAoN/C;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAAE,eAgDhC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { SchemaGenerator } from './types';
2
- export declare const generatePrismaSchema: SchemaGenerator;
3
- //# sourceMappingURL=prisma.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/generators/prisma.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAO/C,eAAO,MAAM,oBAAoB,EAAE,eAuNlC,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { C15TOptions } from '@c15t/backend';
2
- import type { Adapter } from '@c15t/backend/pkgs/db-adapters';
3
- export type SchemaGenerator = (opts: {
4
- file?: string;
5
- adapter: Adapter;
6
- options: C15TOptions;
7
- }) => Promise<{
8
- code?: string;
9
- fileName: string;
10
- overwrite?: boolean;
11
- append?: boolean;
12
- }>;
13
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/generators/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,WAAW,CAAC;CACrB,KAAK,OAAO,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { C15TOptions, C15TPlugin } from '@c15t/backend';
2
- import type { Adapter } from '@c15t/backend/pkgs/db-adapters';
3
- import type { CliContext } from '../../context/types';
4
- import { getGenerator } from './generators';
5
- export type SchemaResult = Awaited<ReturnType<typeof getGenerator>>;
6
- /**
7
- * Calls the schema generator and handles associated errors.
8
- */
9
- export declare function generateSchema(context: CliContext, adapter: Adapter, config: C15TOptions<C15TPlugin[]>): Promise<SchemaResult | null>;
10
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/commands/generate/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAEpE;;GAEG;AACH,wBAAsB,cAAc,CACnC,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,GAC/B,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CA2B9B"}
@@ -1,13 +0,0 @@
1
- import type { C15TOptions, C15TPlugin } from '@c15t/backend';
2
- import { type Adapter } from '@c15t/backend/pkgs/db-adapters';
3
- import type { ConsentManagerOptions } from '@c15t/react';
4
- import type { CliContext } from '../../context/types';
5
- /**
6
- * Handles config loading, onboarding, and adapter setup using the context.
7
- * Returns the loaded config (if any) and adapter.
8
- */
9
- export declare function setupGenerateEnvironment(context: CliContext): Promise<{
10
- config: C15TOptions<C15TPlugin[]> | ConsentManagerOptions | null;
11
- adapter: Adapter;
12
- }>;
13
- //# sourceMappingURL=setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/commands/generate/setup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,gCAAgC,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;;GAGG;AACH,wBAAsB,wBAAwB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC;IAC5E,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,GAAG,qBAAqB,GAAG,IAAI,CAAC;IACjE,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC,CAyED"}
@@ -1,8 +0,0 @@
1
- import type { CliContext } from '../../context/types';
2
- import type { SchemaResult } from './schema';
3
- /**
4
- * Handles confirming and writing the generated schema to a file.
5
- * Acts as a decision tree, delegating to action handlers.
6
- */
7
- export declare function writeSchemaFile(context: CliContext, schema: SchemaResult): Promise<void>;
8
- //# sourceMappingURL=write.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../../src/commands/generate/write.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;;GAGG;AACH,wBAAsB,eAAe,CACpC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,YAAY,GAClB,OAAO,CAAC,IAAI,CAAC,CA4Bf"}
@@ -1,6 +0,0 @@
1
- import type { CliContext } from '../context/types';
2
- /**
3
- * Generate command - loads config, allows updating via onboarding, then generates artifacts.
4
- */
5
- export declare function generate(context: CliContext): Promise<undefined>;
6
- //# sourceMappingURL=generate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAUlD;;GAEG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,UAAU,sBAiIjD"}
@@ -1,7 +0,0 @@
1
- import type { MigrationResult } from '@c15t/backend/pkgs/migrations';
2
- import type { CliContext } from '../../context/types';
3
- /**
4
- * Executes the provided runMigrations function with spinner and error handling.
5
- */
6
- export declare function executeMigrations(context: CliContext, runMigrationsFn: MigrationResult['runMigrations']): Promise<void>;
7
- //# sourceMappingURL=execute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/migrate/execute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD;;GAEG;AACH,wBAAsB,iBAAiB,CACtC,OAAO,EAAE,UAAU,EACnB,eAAe,EAAE,eAAe,CAAC,eAAe,CAAC,GAC/C,OAAO,CAAC,IAAI,CAAC,CA+Bf"}
@@ -1,12 +0,0 @@
1
- import type { C15TOptions, C15TPlugin } from '@c15t/backend';
2
- import { type MigrationResult } from '@c15t/backend/pkgs/migrations';
3
- import type { CliContext } from '../../context/types';
4
- /**
5
- * Fetches migrations, displays the plan, and asks for confirmation.
6
- * Returns whether to proceed and the function to run migrations.
7
- */
8
- export declare function planMigrations(context: CliContext, config: C15TOptions<C15TPlugin[]>, skipConfirmation: boolean): Promise<{
9
- shouldRun: boolean;
10
- runMigrationsFn: MigrationResult['runMigrations'] | null;
11
- }>;
12
- //# sourceMappingURL=plan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../src/commands/migrate/plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EACN,KAAK,eAAe,EAEpB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD;;;GAGG;AACH,wBAAsB,cAAc,CACnC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,EACjC,gBAAgB,EAAE,OAAO,GACvB,OAAO,CAAC;IACV,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;CACzD,CAAC,CA2ED"}
@@ -1,12 +0,0 @@
1
- import type { C15TOptions, C15TPlugin } from '@c15t/backend';
2
- import { type Adapter } from '@c15t/backend/pkgs/db-adapters';
3
- import type { CliContext } from '../../context/types';
4
- /**
5
- * Loads config, checks for onboarding, initializes and validates the DB adapter using context.
6
- * Returns the config and adapter if successful, otherwise handles exit/errors.
7
- */
8
- export declare function setupEnvironment(context: CliContext): Promise<{
9
- config: C15TOptions<C15TPlugin[]>;
10
- adapter: Adapter;
11
- }>;
12
- //# sourceMappingURL=setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/commands/migrate/setup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,gCAAgC,CAAC;AAE1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAgClD;;;GAGG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC;IACpE,MAAM,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC,CA8BD"}
@@ -1,3 +0,0 @@
1
- import type { CliContext } from '../context/types';
2
- export declare function migrate(context: CliContext): Promise<void>;
3
- //# sourceMappingURL=migrate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../src/commands/migrate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD,wBAAsB,OAAO,CAAC,OAAO,EAAE,UAAU,iBAwDhD"}
@@ -1,20 +0,0 @@
1
- import type { C15TOptions, C15TPlugin } from '@c15t/backend';
2
- import type { CliContext } from './types';
3
- /**
4
- * Creates configuration management utilities for the CLI context
5
- */
6
- export declare function createConfigManagement(context: CliContext): {
7
- /**
8
- * Load configuration, returns null if not found
9
- */
10
- loadConfig: () => Promise<C15TOptions<C15TPlugin[]> | null>;
11
- /**
12
- * Load configuration and throw an error if not found
13
- */
14
- requireConfig: () => Promise<C15TOptions<C15TPlugin[]>>;
15
- /**
16
- * Extract path aliases from tsconfig.json or jsconfig.json
17
- */
18
- getPathAliases: (configDir?: string) => Record<string, string> | null;
19
- };
20
- //# sourceMappingURL=config-management.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-management.d.ts","sourceRoot":"","sources":["../../src/context/config-management.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,UAAU;IAIxD;;OAEG;sBACmB,OAAO,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,GAAG,IAAI,CAAC;IAoB/D;;OAEG;yBACsB,OAAO,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC;IAa3D;;OAEG;iCAC0B,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;EA2BpE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../src/onboarding/dependencies.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD;;;;;;;GAOG;AACH,wBAAsB,8BAA8B,CACnD,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EAAE,EACtB,cAAc,EAAE,cAAc,GAC5B,OAAO,CAAC,IAAI,CAAC,CAsCf;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACtC,YAAY,EAAE,MAAM,EAAE,EACtB,cAAc,EAAE,cAAc,GAC5B,MAAM,CAWR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-files.d.ts","sourceRoot":"","sources":["../../src/onboarding/generate-files.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAWlD,MAAM,WAAW,oBAAoB;IACpC,OAAO,EAAE,UAAU,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpC,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,mBAAmB;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAgMD;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,EACnC,OAAO,EACP,WAAW,EACX,IAAI,EACJ,GAAG,EACH,UAAU,EACV,OAAO,EACP,UAAU,EACV,WAAW,GACX,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA2DrD"}
@@ -1,11 +0,0 @@
1
- import type { C15TOptions } from '@c15t/backend';
2
- import type { ConsentManagerOptions } from '@c15t/react';
3
- import type { CliContext } from '../context/types';
4
- /**
5
- * Starts the onboarding process to set up c15t configuration
6
- *
7
- * @param context - CLI context
8
- * @param existingConfig - Optional existing configuration
9
- */
10
- export declare function startOnboarding(context: CliContext, existingConfig?: C15TOptions | ConsentManagerOptions | null): Promise<void>;
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/onboarding/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAWzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAiBnD;;;;;GAKG;AACH,wBAAsB,eAAe,CACpC,OAAO,EAAE,UAAU,EACnB,cAAc,CAAC,EAAE,WAAW,GAAG,qBAAqB,GAAG,IAAI,iBA6C3D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"c15t-mode.d.ts","sourceRoot":"","sources":["../../../src/onboarding/storage-modes/c15t-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAEpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,eAAe;IACxB,OAAO,EAAE,UAAU,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;IACtC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;CAC3C;AA8GD;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CAAC,EACnC,OAAO,EACP,WAAW,EACX,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,YAAY,GACZ,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CA6D3C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-mode.d.ts","sourceRoot":"","sources":["../../../src/onboarding/storage-modes/custom-mode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,mBAAmB,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,iBAAiB;IAC1B,OAAO,EAAE,UAAU,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;IACtC,GAAG,EAAE,iBAAiB,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,EACrC,OAAO,EACP,WAAW,EACX,OAAO,EACP,GAAG,GACH,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAkB/C"}
@@ -1,5 +0,0 @@
1
- export { setupC15tMode, type C15TModeResult } from './c15t-mode';
2
- export { setupCustomMode, type CustomModeResult } from './custom-mode';
3
- export { setupOfflineMode, type OfflineModeResult } from './offline-mode';
4
- export { setupSelfHostedMode, type SelfHostedModeResult, } from './self-hosted-mode';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/onboarding/storage-modes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EACN,mBAAmB,EACnB,KAAK,oBAAoB,GACzB,MAAM,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"offline-mode.d.ts","sourceRoot":"","sources":["../../../src/onboarding/storage-modes/offline-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,mBAAmB,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,kBAAkB;IAC3B,OAAO,EAAE,UAAU,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;IACtC,GAAG,EAAE,iBAAiB,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,OAAO,EACP,GAAG,GACH,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAYjD"}