@c15t/cli 0.0.1-rc.23 → 1.0.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.
- package/README.md +93 -0
- package/dist/actions/get-config/config-extraction.d.ts +37 -0
- package/dist/actions/get-config/config-extraction.d.ts.map +1 -0
- package/dist/actions/get-config/config-validation.d.ts +7 -0
- package/dist/actions/get-config/config-validation.d.ts.map +1 -0
- package/dist/actions/get-config/constants.d.ts +13 -0
- package/dist/actions/get-config/constants.d.ts.map +1 -0
- package/dist/actions/get-config/directory-search.d.ts +6 -0
- package/dist/actions/get-config/directory-search.d.ts.map +1 -0
- package/dist/actions/get-config/jiti-options.d.ts +9 -0
- package/dist/actions/get-config/jiti-options.d.ts.map +1 -0
- package/dist/actions/get-config.d.ts +13 -0
- package/dist/actions/get-config.d.ts.map +1 -0
- package/dist/actions/load-config-and-onboard.d.ts +9 -0
- package/dist/actions/load-config-and-onboard.d.ts.map +1 -0
- package/dist/actions/show-help-menu.d.ts +11 -0
- package/dist/actions/show-help-menu.d.ts.map +1 -0
- package/dist/commands/generate/actions/handle-existing-file.d.ts +7 -0
- package/dist/commands/generate/actions/handle-existing-file.d.ts.map +1 -0
- package/dist/commands/generate/actions/handle-new-file.d.ts +7 -0
- package/dist/commands/generate/actions/handle-new-file.d.ts.map +1 -0
- package/dist/commands/generate/actions/perform-write-action.d.ts +6 -0
- package/dist/commands/generate/actions/perform-write-action.d.ts.map +1 -0
- package/dist/commands/generate/generators/drizzle.d.ts.map +1 -0
- package/dist/{generators → commands/generate/generators}/index.d.ts +2 -1
- package/dist/commands/generate/generators/index.d.ts.map +1 -0
- package/dist/commands/generate/generators/kysely.d.ts.map +1 -0
- package/dist/commands/generate/generators/prisma.d.ts.map +1 -0
- package/dist/commands/generate/generators/types.d.ts.map +1 -0
- package/dist/commands/generate/schema.d.ts +10 -0
- package/dist/commands/generate/schema.d.ts.map +1 -0
- package/dist/commands/generate/setup.d.ts +13 -0
- package/dist/commands/generate/setup.d.ts.map +1 -0
- package/dist/commands/generate/write.d.ts +8 -0
- package/dist/commands/generate/write.d.ts.map +1 -0
- package/dist/commands/generate.d.ts +5 -3
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/migrate/execute.d.ts +7 -0
- package/dist/commands/migrate/execute.d.ts.map +1 -0
- package/dist/commands/migrate/plan.d.ts +12 -0
- package/dist/commands/migrate/plan.d.ts.map +1 -0
- package/dist/commands/migrate/setup.d.ts +12 -0
- package/dist/commands/migrate/setup.d.ts.map +1 -0
- package/dist/commands/migrate.d.ts +2 -3
- package/dist/commands/migrate.d.ts.map +1 -1
- package/dist/components/intro.d.ts +9 -0
- package/dist/components/intro.d.ts.map +1 -0
- package/dist/context/config-management.d.ts +20 -0
- package/dist/context/config-management.d.ts.map +1 -0
- package/dist/context/creator.d.ts +11 -0
- package/dist/context/creator.d.ts.map +1 -0
- package/dist/context/error-handlers.d.ts +18 -0
- package/dist/context/error-handlers.d.ts.map +1 -0
- package/dist/context/file-system.d.ts +11 -0
- package/dist/context/file-system.d.ts.map +1 -0
- package/dist/context/parser.d.ts +11 -0
- package/dist/context/parser.d.ts.map +1 -0
- package/dist/context/types.d.ts +54 -0
- package/dist/context/types.d.ts.map +1 -0
- package/dist/context/user-interaction.d.ts +14 -0
- package/dist/context/user-interaction.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1892 -746
- package/dist/onboarding/dependencies.d.ts +20 -0
- package/dist/onboarding/dependencies.d.ts.map +1 -0
- package/dist/onboarding/detection.d.ts +33 -0
- package/dist/onboarding/detection.d.ts.map +1 -0
- package/dist/onboarding/index.d.ts +11 -0
- package/dist/onboarding/index.d.ts.map +1 -0
- package/dist/onboarding/storage-modes/c15t-mode.d.ts +22 -0
- package/dist/onboarding/storage-modes/c15t-mode.d.ts.map +1 -0
- package/dist/onboarding/storage-modes/custom-mode.d.ts +18 -0
- package/dist/onboarding/storage-modes/custom-mode.d.ts.map +1 -0
- package/dist/onboarding/storage-modes/index.d.ts +5 -0
- package/dist/onboarding/storage-modes/index.d.ts.map +1 -0
- package/dist/onboarding/storage-modes/offline-mode.d.ts +20 -0
- package/dist/onboarding/storage-modes/offline-mode.d.ts.map +1 -0
- package/dist/onboarding/storage-modes/self-hosted-mode.d.ts +22 -0
- package/dist/onboarding/storage-modes/self-hosted-mode.d.ts.map +1 -0
- package/dist/onboarding/templates.d.ts +31 -0
- package/dist/onboarding/templates.d.ts.map +1 -0
- package/dist/onboarding.d.ts +15 -0
- package/dist/onboarding.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +29 -2
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/telemetry.d.ts +140 -0
- package/dist/utils/telemetry.d.ts.map +1 -0
- package/package.json +13 -11
- package/dist/commands/secret.d.ts +0 -3
- package/dist/commands/secret.d.ts.map +0 -1
- package/dist/generators/drizzle.d.ts.map +0 -1
- package/dist/generators/index.d.ts.map +0 -1
- package/dist/generators/kysely.d.ts.map +0 -1
- package/dist/generators/prisma.d.ts.map +0 -1
- package/dist/generators/types.d.ts.map +0 -1
- package/dist/utils/add-svelte-kit-env-modules.d.ts +0 -4
- package/dist/utils/add-svelte-kit-env-modules.d.ts.map +0 -1
- package/dist/utils/get-config.d.ts +0 -11
- package/dist/utils/get-config.d.ts.map +0 -1
- package/dist/utils/get-package-info.d.ts +0 -2
- package/dist/utils/get-package-info.d.ts.map +0 -1
- /package/dist/{generators → commands/generate/generators}/drizzle.d.ts +0 -0
- /package/dist/{generators → commands/generate/generators}/kysely.d.ts +0 -0
- /package/dist/{generators → commands/generate/generators}/prisma.d.ts +0 -0
- /package/dist/{generators → commands/generate/generators}/types.d.ts +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type PackageManager = 'npm' | 'yarn' | 'pnpm';
|
|
2
|
+
/**
|
|
3
|
+
* Installs dependencies using the detected package manager
|
|
4
|
+
*
|
|
5
|
+
* @param projectRoot - The root directory of the project
|
|
6
|
+
* @param dependencies - Array of package names to install
|
|
7
|
+
* @param packageManager - The package manager to use (npm, yarn, pnpm)
|
|
8
|
+
* @returns Promise that resolves when installation is complete
|
|
9
|
+
*/
|
|
10
|
+
export declare function addAndInstallDependenciesViaPM(projectRoot: string, dependencies: string[], packageManager: PackageManager): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Generates the package manager command for manual installation
|
|
13
|
+
* Useful when automatic installation fails
|
|
14
|
+
*
|
|
15
|
+
* @param dependencies - Array of package names
|
|
16
|
+
* @param packageManager - The package manager to use
|
|
17
|
+
* @returns The command string to run for manual installation
|
|
18
|
+
*/
|
|
19
|
+
export declare function getManualInstallCommand(dependencies: string[], packageManager: PackageManager): string;
|
|
20
|
+
//# sourceMappingURL=dependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,CAyCf;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACtC,YAAY,EAAE,MAAM,EAAE,EACtB,cAAc,EAAE,cAAc,GAC5B,MAAM,CAaR"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported package managers
|
|
3
|
+
*/
|
|
4
|
+
export type PackageManager = 'npm' | 'yarn' | 'pnpm';
|
|
5
|
+
/**
|
|
6
|
+
* Framework detection result
|
|
7
|
+
*/
|
|
8
|
+
export interface FrameworkDetectionResult {
|
|
9
|
+
framework: string | null;
|
|
10
|
+
hasReact: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Detects the framework and React usage in the project
|
|
14
|
+
*
|
|
15
|
+
* @param projectRoot - The root directory of the project
|
|
16
|
+
* @returns Object containing framework info and whether React is used
|
|
17
|
+
*/
|
|
18
|
+
export declare function detectFramework(projectRoot: string): Promise<FrameworkDetectionResult>;
|
|
19
|
+
/**
|
|
20
|
+
* Detects the project root by finding the package.json file
|
|
21
|
+
*
|
|
22
|
+
* @param cwd - Current working directory
|
|
23
|
+
* @returns The project root directory path or cwd if not found
|
|
24
|
+
*/
|
|
25
|
+
export declare function detectProjectRoot(cwd: string): Promise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Detects the package manager used in the project
|
|
28
|
+
*
|
|
29
|
+
* @param projectRoot - The root directory of the project
|
|
30
|
+
* @returns The detected package manager
|
|
31
|
+
*/
|
|
32
|
+
export declare function detectPackageManager(projectRoot: string): Promise<PackageManager>;
|
|
33
|
+
//# sourceMappingURL=detection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../src/onboarding/detection.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACpC,WAAW,EAAE,MAAM,GACjB,OAAO,CAAC,wBAAwB,CAAC,CA+BnC;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBpE;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACzC,WAAW,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,CA2DzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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<undefined>;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;AASzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAoBnD;;;;;GAKG;AACH,wBAAsB,eAAe,CACpC,OAAO,EAAE,UAAU,EACnB,cAAc,CAAC,EAAE,WAAW,GAAG,qBAAqB,GAAG,IAAI,sBAuc3D"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as p from '@clack/prompts';
|
|
2
|
+
import type { CliContext } from '../../context/types';
|
|
3
|
+
/**
|
|
4
|
+
* Result of c15t mode setup
|
|
5
|
+
*/
|
|
6
|
+
export interface C15TModeResult {
|
|
7
|
+
clientConfigContent: string;
|
|
8
|
+
backendURL: string;
|
|
9
|
+
usingEnvFile: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Handles the setup process for the Hosted c15t (consent.io) mode
|
|
13
|
+
*
|
|
14
|
+
* @param context - CLI context
|
|
15
|
+
* @param projectRoot - Project root directory
|
|
16
|
+
* @param spinner - Spinner for loading indicators
|
|
17
|
+
* @param initialBackendURL - Initial backend URL if available
|
|
18
|
+
* @param handleCancel - Function to handle prompt cancellations
|
|
19
|
+
* @returns Configuration data for the c15t mode
|
|
20
|
+
*/
|
|
21
|
+
export declare function setupC15tMode(context: CliContext, projectRoot: string, spinner: ReturnType<typeof p.spinner>, initialBackendURL?: string, handleCancel?: (value: unknown) => boolean): Promise<C15TModeResult>;
|
|
22
|
+
//# sourceMappingURL=c15t-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c15t-mode.d.ts","sourceRoot":"","sources":["../../../src/onboarding/storage-modes/c15t-mode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAGpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAOtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CAClC,OAAO,EAAE,UAAU,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,EACrC,iBAAiB,CAAC,EAAE,MAAM,EAC1B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GACxC,OAAO,CAAC,cAAc,CAAC,CAiJzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as p from '@clack/prompts';
|
|
2
|
+
import type { CliContext } from '../../context/types';
|
|
3
|
+
/**
|
|
4
|
+
* Result of custom mode setup
|
|
5
|
+
*/
|
|
6
|
+
export interface CustomModeResult {
|
|
7
|
+
clientConfigContent: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Handles the setup process for custom implementation mode
|
|
11
|
+
*
|
|
12
|
+
* @param context - CLI context
|
|
13
|
+
* @param projectRoot - Project root directory
|
|
14
|
+
* @param spinner - Spinner for loading indicators
|
|
15
|
+
* @returns Configuration data for the custom mode
|
|
16
|
+
*/
|
|
17
|
+
export declare function setupCustomMode(context: CliContext, projectRoot: string, spinner: ReturnType<typeof p.spinner>): Promise<CustomModeResult>;
|
|
18
|
+
//# sourceMappingURL=custom-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-mode.d.ts","sourceRoot":"","sources":["../../../src/onboarding/storage-modes/custom-mode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,mBAAmB,EAAE,MAAM,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACpC,OAAO,EAAE,UAAU,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,GACnC,OAAO,CAAC,gBAAgB,CAAC,CA2B3B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as p from '@clack/prompts';
|
|
2
|
+
import type { CliContext } from '../../context/types';
|
|
3
|
+
/**
|
|
4
|
+
* Result of offline mode setup
|
|
5
|
+
*/
|
|
6
|
+
export interface OfflineModeResult {
|
|
7
|
+
clientConfigContent: string;
|
|
8
|
+
localStorageKey: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Handles the setup process for offline mode (browser storage)
|
|
12
|
+
*
|
|
13
|
+
* @param context - CLI context
|
|
14
|
+
* @param projectRoot - Project root directory
|
|
15
|
+
* @param spinner - Spinner for loading indicators
|
|
16
|
+
* @param handleCancel - Function to handle prompt cancellations
|
|
17
|
+
* @returns Configuration data for the offline mode
|
|
18
|
+
*/
|
|
19
|
+
export declare function setupOfflineMode(context: CliContext, projectRoot: string, spinner: ReturnType<typeof p.spinner>, handleCancel?: (value: unknown) => boolean): Promise<OfflineModeResult>;
|
|
20
|
+
//# sourceMappingURL=offline-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offline-mode.d.ts","sourceRoot":"","sources":["../../../src/onboarding/storage-modes/offline-mode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAEpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,UAAU,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,EACrC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GACxC,OAAO,CAAC,iBAAiB,CAAC,CAyD5B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as p from '@clack/prompts';
|
|
2
|
+
import type { CliContext } from '../../context/types';
|
|
3
|
+
/**
|
|
4
|
+
* Result of self-hosted mode setup
|
|
5
|
+
*/
|
|
6
|
+
export interface SelfHostedModeResult {
|
|
7
|
+
clientConfigContent: string;
|
|
8
|
+
backendConfigContent: string | null;
|
|
9
|
+
dependencies: string[];
|
|
10
|
+
adapterChoice: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Handles the setup process for self-hosted mode
|
|
14
|
+
*
|
|
15
|
+
* @param context - CLI context
|
|
16
|
+
* @param projectRoot - Project root directory
|
|
17
|
+
* @param spinner - Spinner for loading indicators
|
|
18
|
+
* @param handleCancel - Function to handle prompt cancellations
|
|
19
|
+
* @returns Configuration data for the self-hosted mode
|
|
20
|
+
*/
|
|
21
|
+
export declare function setupSelfHostedMode(context: CliContext, projectRoot: string, spinner: ReturnType<typeof p.spinner>, handleCancel?: (value: unknown) => boolean): Promise<SelfHostedModeResult>;
|
|
22
|
+
//# sourceMappingURL=self-hosted-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"self-hosted-mode.d.ts","sourceRoot":"","sources":["../../../src/onboarding/storage-modes/self-hosted-mode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAEpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAOtD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACxC,OAAO,EAAE,UAAU,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,EACrC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GACxC,OAAO,CAAC,oBAAoB,CAAC,CA4I/B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Templates module for generating configuration files
|
|
3
|
+
* These functions generate template configuration content for different storage modes
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Generates client configuration file content based on storage mode
|
|
7
|
+
*
|
|
8
|
+
* @param mode - The storage mode ('c15t', 'offline', or 'custom')
|
|
9
|
+
* @param backendURL - URL for the c15t backend/API (for 'c15t' mode)
|
|
10
|
+
* @param localStorageKey - Key to use for localStorage (for 'offline' mode)
|
|
11
|
+
* @param useEnvFile - Whether to use environment variable for backendURL
|
|
12
|
+
* @returns The generated configuration file content
|
|
13
|
+
*/
|
|
14
|
+
export declare function generateClientConfigContent(mode: string, backendURL?: string, localStorageKey?: string, useEnvFile?: boolean): string;
|
|
15
|
+
/**
|
|
16
|
+
* Generates backend configuration file content
|
|
17
|
+
*
|
|
18
|
+
* @param adapterChoice - The database adapter to use ('kysely-postgres', 'kysely-sqlite', or 'memory')
|
|
19
|
+
* @param connectionString - Connection string for database (for 'kysely-postgres')
|
|
20
|
+
* @param filePath - Path to the database file (for 'kysely-sqlite')
|
|
21
|
+
* @returns The generated backend configuration file content
|
|
22
|
+
*/
|
|
23
|
+
export declare function generateBackendConfigContent(adapterChoice: string, connectionString?: string, filePath?: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Generates environment file content with the c15t backend URL
|
|
26
|
+
*
|
|
27
|
+
* @param backendURL - The backend URL to use
|
|
28
|
+
* @returns The generated environment file content
|
|
29
|
+
*/
|
|
30
|
+
export declare function generateEnvFileContent(backendURL: string): string;
|
|
31
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/onboarding/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,EACxB,UAAU,CAAC,EAAE,OAAO,GAClB,MAAM,CAgGR;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC3C,aAAa,EAAE,MAAM,EACrB,gBAAgB,CAAC,EAAE,MAAM,EACzB,QAAQ,CAAC,EAAE,MAAM,GACf,MAAM,CAmDR;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAKjE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Main entry point for c15t CLI onboarding
|
|
3
|
+
*
|
|
4
|
+
* This file has been refactored into smaller, more modular components.
|
|
5
|
+
* For better maintainability, the implementation has been split into:
|
|
6
|
+
* - templates.ts - Configuration templates
|
|
7
|
+
* - detection.ts - Environment detection
|
|
8
|
+
* - dependencies.ts - Dependency management
|
|
9
|
+
* - storage-modes/ - Mode-specific handlers
|
|
10
|
+
*
|
|
11
|
+
* This file now re-exports the startOnboarding function from
|
|
12
|
+
* the modular implementation for backward compatibility.
|
|
13
|
+
*/
|
|
14
|
+
export { startOnboarding } from './onboarding/index';
|
|
15
|
+
//# sourceMappingURL=onboarding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../src/onboarding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/utils/logger.d.ts
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { type Logger } from '@c15t/backend/pkgs/logger';
|
|
2
|
+
export type LogLevel = 'error' | 'warn' | 'info' | 'debug';
|
|
3
|
+
export declare const validLogLevels: LogLevel[];
|
|
4
|
+
export interface CliExtensions {
|
|
5
|
+
message: (message: string, ...args: unknown[]) => void;
|
|
6
|
+
note: (message: string, ...args: unknown[]) => void;
|
|
7
|
+
outro: (message: string, ...args: unknown[]) => void;
|
|
8
|
+
success: (message: string, ...args: unknown[]) => void;
|
|
9
|
+
failed: (message: string, ...args: unknown[]) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Formats a log message with appropriate styling based on log level
|
|
13
|
+
*
|
|
14
|
+
* @param logLevel - The log level to format for
|
|
15
|
+
* @param message - The message to format
|
|
16
|
+
* @param args - Additional arguments to format
|
|
17
|
+
* @returns The formatted message string
|
|
18
|
+
*/
|
|
19
|
+
export declare const formatLogMessage: (logLevel: LogLevel | string, message: unknown, args?: unknown[]) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Logs a message with the appropriate clack prompt styling
|
|
22
|
+
* Can be used before logger initialization
|
|
23
|
+
*
|
|
24
|
+
* @param logLevel - The log level to use
|
|
25
|
+
* @param message - The message to log
|
|
26
|
+
* @param args - Additional arguments to include
|
|
27
|
+
*/
|
|
28
|
+
export declare const logMessage: (logLevel: LogLevel | "success" | "failed" | string, message: unknown, ...args: unknown[]) => void;
|
|
29
|
+
export declare const createCliLogger: (level: LogLevel) => Logger & CliExtensions;
|
|
3
30
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,2BAA2B,CAAC;AAItE,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAC3D,eAAO,MAAM,cAAc,EAAE,QAAQ,EAAuC,CAAC;AAG7E,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IACvD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,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,MAAM,GAAG,aA+C1D,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { PostHog } from 'posthog-node';
|
|
2
|
+
import type { LogLevel } from './logger';
|
|
3
|
+
export declare enum TelemetryEventName {
|
|
4
|
+
CLI_INVOKED = "cli.invoked",
|
|
5
|
+
CLI_COMPLETED = "cli.completed",
|
|
6
|
+
CLI_EXITED = "cli.exited",
|
|
7
|
+
CLI_ENVIRONMENT_DETECTED = "cli.environment_detected",
|
|
8
|
+
COMMAND_EXECUTED = "command.executed",
|
|
9
|
+
COMMAND_SUCCEEDED = "command.succeeded",
|
|
10
|
+
COMMAND_FAILED = "command.failed",
|
|
11
|
+
COMMAND_UNKNOWN = "command.unknown",
|
|
12
|
+
INTERACTIVE_MENU_OPENED = "ui.menu.opened",
|
|
13
|
+
INTERACTIVE_MENU_EXITED = "ui.menu.exited",
|
|
14
|
+
CONFIG_LOADED = "config.loaded",
|
|
15
|
+
CONFIG_ERROR = "config.error",
|
|
16
|
+
CONFIG_UPDATED = "config.updated",
|
|
17
|
+
HELP_DISPLAYED = "help.displayed",
|
|
18
|
+
VERSION_DISPLAYED = "version.displayed",
|
|
19
|
+
ONBOARDING_STARTED = "onboarding.started",
|
|
20
|
+
ONBOARDING_COMPLETED = "onboarding.completed",
|
|
21
|
+
ONBOARDING_EXITED = "onboarding.exited",
|
|
22
|
+
ONBOARDING_STORAGE_MODE_SELECTED = "onboarding.storage_mode_selected",
|
|
23
|
+
ONBOARDING_C15T_MODE_CONFIGURED = "onboarding.c15t_mode_configured",
|
|
24
|
+
ONBOARDING_OFFLINE_MODE_CONFIGURED = "onboarding.offline_mode_configured",
|
|
25
|
+
ONBOARDING_SELF_HOSTED_CONFIGURED = "onboarding.self_hosted_configured",
|
|
26
|
+
ONBOARDING_CUSTOM_MODE_CONFIGURED = "onboarding.custom_mode_configured",
|
|
27
|
+
ONBOARDING_DEPENDENCIES_CHOICE = "onboarding.dependencies_choice",
|
|
28
|
+
ONBOARDING_DEPENDENCIES_INSTALLED = "onboarding.dependencies_installed",
|
|
29
|
+
ONBOARDING_GITHUB_STAR = "onboarding.github_star",
|
|
30
|
+
ERROR_OCCURRED = "error.occurred",
|
|
31
|
+
MIGRATION_STARTED = "migration.started",
|
|
32
|
+
MIGRATION_PLANNED = "migration.planned",
|
|
33
|
+
MIGRATION_EXECUTED = "migration.executed",
|
|
34
|
+
MIGRATION_COMPLETED = "migration.completed",
|
|
35
|
+
MIGRATION_FAILED = "migration.failed",
|
|
36
|
+
GENERATE_STARTED = "generate.started",
|
|
37
|
+
GENERATE_COMPLETED = "generate.completed",
|
|
38
|
+
GENERATE_FAILED = "generate.failed"
|
|
39
|
+
}
|
|
40
|
+
export interface TelemetryOptions {
|
|
41
|
+
/**
|
|
42
|
+
* Custom PostHog instance to use instead of the default
|
|
43
|
+
*/
|
|
44
|
+
client?: PostHog;
|
|
45
|
+
/**
|
|
46
|
+
* Whether telemetry should be disabled
|
|
47
|
+
*/
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Default properties to add to all telemetry events
|
|
51
|
+
*/
|
|
52
|
+
defaultProperties?: Record<string, string | number | boolean>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Manages telemetry for the CLI
|
|
56
|
+
*
|
|
57
|
+
* The Telemetry class provides methods to track CLI usage and errors
|
|
58
|
+
* in a privacy-preserving way.
|
|
59
|
+
*/
|
|
60
|
+
export declare class Telemetry {
|
|
61
|
+
private client;
|
|
62
|
+
private disabled;
|
|
63
|
+
private defaultProperties;
|
|
64
|
+
private distinctId;
|
|
65
|
+
private apiKey;
|
|
66
|
+
/**
|
|
67
|
+
* Creates a new telemetry instance
|
|
68
|
+
*
|
|
69
|
+
* @param options - Configuration options for telemetry
|
|
70
|
+
*/
|
|
71
|
+
constructor(options?: TelemetryOptions);
|
|
72
|
+
/**
|
|
73
|
+
* Track a command execution
|
|
74
|
+
*
|
|
75
|
+
* @param eventName - The event name to track
|
|
76
|
+
* @param command - The command being executed
|
|
77
|
+
* @param args - Command arguments
|
|
78
|
+
* @param flags - Command flags
|
|
79
|
+
*/
|
|
80
|
+
trackEvent(eventName: TelemetryEventName, properties?: Record<string, string | number | boolean | undefined>): void;
|
|
81
|
+
/**
|
|
82
|
+
* Track a command execution
|
|
83
|
+
*
|
|
84
|
+
* @param command - The command being executed
|
|
85
|
+
* @param args - Command arguments
|
|
86
|
+
* @param flags - Command flags
|
|
87
|
+
*/
|
|
88
|
+
trackCommand(command: string, args?: string[], flags?: Record<string, string | number | boolean | undefined>): void;
|
|
89
|
+
/**
|
|
90
|
+
* Track CLI errors
|
|
91
|
+
*
|
|
92
|
+
* @param error - The error that occurred
|
|
93
|
+
* @param command - The command that was being executed when the error occurred
|
|
94
|
+
*/
|
|
95
|
+
trackError(error: Error, command?: string): void;
|
|
96
|
+
/**
|
|
97
|
+
* Set log level for telemetry client
|
|
98
|
+
*
|
|
99
|
+
* @param level - The log level to set
|
|
100
|
+
*/
|
|
101
|
+
setLogLevel(level: LogLevel): void;
|
|
102
|
+
/**
|
|
103
|
+
* Disable telemetry
|
|
104
|
+
*/
|
|
105
|
+
disable(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Enable telemetry
|
|
108
|
+
*/
|
|
109
|
+
enable(): void;
|
|
110
|
+
/**
|
|
111
|
+
* Check if telemetry is disabled
|
|
112
|
+
*
|
|
113
|
+
* @returns Whether telemetry is disabled
|
|
114
|
+
*/
|
|
115
|
+
isDisabled(): boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Shutdown telemetry client
|
|
118
|
+
*/
|
|
119
|
+
shutdown(): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* Initialize the PostHog client
|
|
122
|
+
*
|
|
123
|
+
* @param customClient - Optional custom PostHog client
|
|
124
|
+
*/
|
|
125
|
+
private initClient;
|
|
126
|
+
/**
|
|
127
|
+
* Generate an anonymous ID based on machine info
|
|
128
|
+
*
|
|
129
|
+
* @returns A hash that uniquely identifies the machine without PII
|
|
130
|
+
*/
|
|
131
|
+
private generateAnonymousId;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Creates a telemetry instance with sensible defaults
|
|
135
|
+
*
|
|
136
|
+
* @param options - Configuration options for telemetry
|
|
137
|
+
* @returns A configured telemetry instance
|
|
138
|
+
*/
|
|
139
|
+
export declare function createTelemetry(options?: TelemetryOptions): Telemetry;
|
|
140
|
+
//# sourceMappingURL=telemetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/utils/telemetry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAMzC,oBAAY,kBAAkB;IAE7B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,wBAAwB,6BAA6B;IAGrD,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IAGnC,uBAAuB,mBAAmB;IAC1C,uBAAuB,mBAAmB;IAG1C,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IAGjC,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;IAGvC,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;IAC7C,iBAAiB,sBAAsB;IACvC,gCAAgC,qCAAqC;IACrE,+BAA+B,oCAAoC;IACnE,kCAAkC,uCAAuC;IACzE,iCAAiC,sCAAsC;IACvE,iCAAiC,sCAAsC;IACvE,8BAA8B,mCAAmC;IACjE,iCAAiC,sCAAsC;IACvE,sBAAsB,2BAA2B;IAGjD,cAAc,mBAAmB;IAGjC,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IAGrC,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,eAAe,oBAAoB;CACnC;AAED,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CAC9D;AAED;;;;;GAKG;AACH,qBAAa,SAAS;IACrB,OAAO,CAAC,MAAM,CAAwB;IACtC,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,iBAAiB,CAA4C;IACrE,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAqD;IAEnE;;;;OAIG;gBACS,OAAO,CAAC,EAAE,gBAAgB;IAyBtC;;;;;;;OAOG;IACH,UAAU,CACT,SAAS,EAAE,kBAAkB,EAC7B,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAM,GACpE,IAAI;IA0BP;;;;;;OAMG;IACH,YAAY,CACX,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,MAAM,EAAO,EACnB,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAM,GAC/D,IAAI;IAqBP;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAahD;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI;IAMlC;;OAEG;IACH,OAAO,IAAI,IAAI;IAIf;;OAEG;IACH,MAAM,IAAI,IAAI;IAOd;;;;OAIG;IACH,UAAU,IAAI,OAAO;IAIrB;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAO/B;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAwBlB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;CAU3B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAErE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/cli",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "The CLI for c15t",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.mjs",
|
|
@@ -13,26 +13,28 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@
|
|
17
|
-
"@babel/preset-typescript": "^7.27.0",
|
|
16
|
+
"@clack/prompts": "^0.10.1",
|
|
18
17
|
"@mrleebo/prisma-ast": "^0.12.1",
|
|
19
18
|
"@types/better-sqlite3": "^7.6.13",
|
|
20
|
-
"@types/prompts": "^2.4.9",
|
|
21
19
|
"better-sqlite3": "^11.9.1",
|
|
22
20
|
"c12": "^3.0.3",
|
|
23
|
-
"chalk": "^5.4.1",
|
|
24
|
-
"commander": "^13.1.0",
|
|
25
21
|
"dotenv": "^16.5.0",
|
|
22
|
+
"figlet": "^1.8.1",
|
|
26
23
|
"fs-extra": "^11.3.0",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
24
|
+
"jiti": "^2.4.2",
|
|
25
|
+
"open": "^10.1.1",
|
|
26
|
+
"package-manager-detector": "^1.2.0",
|
|
27
|
+
"picocolors": "^1.1.1",
|
|
28
|
+
"posthog-node": "^4.11.7",
|
|
29
29
|
"zod": "^3.24.2",
|
|
30
|
-
"@c15t/backend": "0.0
|
|
30
|
+
"@c15t/backend": "1.0.0",
|
|
31
|
+
"@c15t/react": "1.0.0"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
34
|
+
"@types/figlet": "^1.7.0",
|
|
33
35
|
"@types/fs-extra": "^11.0.4",
|
|
34
36
|
"vitest": "^3.1.1",
|
|
35
|
-
"@c15t/vitest-config": "0.0
|
|
37
|
+
"@c15t/vitest-config": "1.0.0",
|
|
36
38
|
"@c15t/typescript-config": "0.0.1-beta.1"
|
|
37
39
|
},
|
|
38
40
|
"publishConfig": {
|
|
@@ -44,7 +46,7 @@
|
|
|
44
46
|
"scripts": {
|
|
45
47
|
"build": "rslib build",
|
|
46
48
|
"check-types": "tsc --noEmit",
|
|
47
|
-
"dev": "rslib
|
|
49
|
+
"dev": "rslib build --watch",
|
|
48
50
|
"fmt": "pnpm biome format --write . && biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=true --write",
|
|
49
51
|
"knip": "knip",
|
|
50
52
|
"lint": "pnpm biome lint ./src",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secret.d.ts","sourceRoot":"","sources":["../../src/commands/secret.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,cAAc,SAIzB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drizzle.d.ts","sourceRoot":"","sources":["../../src/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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAO9D,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,MAAM;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,WAAW,CAAC;CACrB;;;;;EAWA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kysely.d.ts","sourceRoot":"","sources":["../../src/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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../src/generators/prisma.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAO/C,eAAO,MAAM,oBAAoB,EAAE,eAuNlC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/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,4 +0,0 @@
|
|
|
1
|
-
export declare function addSvelteKitEnvModules(aliases: Record<string, string>): void;
|
|
2
|
-
export declare function filterPrivateEnv(publicPrefix: string, privatePrefix: string): Record<string, string>;
|
|
3
|
-
export declare function filterPublicEnv(publicPrefix: string, privatePrefix: string): Record<string, string>;
|
|
4
|
-
//# sourceMappingURL=add-svelte-kit-env-modules.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-svelte-kit-env-modules.d.ts","sourceRoot":"","sources":["../../src/utils/add-svelte-kit-env-modules.ts"],"names":[],"mappings":"AAAA,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAarE;AAwBD,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAOtE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAC3B;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAOrE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAC3B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { C15TOptions } from '@c15t/backend';
|
|
2
|
-
declare let possiblePaths: string[];
|
|
3
|
-
/**
|
|
4
|
-
* Get the c15t configuration
|
|
5
|
-
*/
|
|
6
|
-
export declare function getConfig({ cwd, configPath, }: {
|
|
7
|
-
cwd: string;
|
|
8
|
-
configPath?: string;
|
|
9
|
-
}): Promise<C15TOptions<import("@c15t/backend").C15TPlugin[]>>;
|
|
10
|
-
export { possiblePaths };
|
|
11
|
-
//# sourceMappingURL=get-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-config.d.ts","sourceRoot":"","sources":["../../src/utils/get-config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAgCjD,QAAA,IAAI,aAAa,UAEhB,CAAC;AA6NF;;GAEG;AACH,wBAAsB,SAAS,CAAC,EAC/B,GAAG,EACH,UAAU,GACV,EAAE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,8DAuPA;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-package-info.d.ts","sourceRoot":"","sources":["../../src/utils/get-package-info.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,QAG7B"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|