@c15t/cli 2.0.0-rc.10 → 2.0.0-rc.11

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/dist/145.mjs CHANGED
@@ -2393,7 +2393,7 @@ const PATHS = {
2393
2393
  };
2394
2394
  const constants_REGEX = {
2395
2395
  URL: /^https?:\/\/.+/,
2396
- C15T_URL: /^https:\/\/[\w-]+\.c15t\.dev$/,
2396
+ C15T_URL: /^https:\/\/[\w-]+\.(?:c15t\.dev|inth\.app)$/,
2397
2397
  DYNAMIC_SEGMENT: /\[[\w-]+\]/,
2398
2398
  SEMVER: /^\d+\.\d+\.\d+(-[\w.]+)?$/,
2399
2399
  PACKAGE_NAME: /^(@[\w-]+\/)?[\w-]+$/
@@ -3248,7 +3248,7 @@ const ERROR_CATALOG = {
3248
3248
  URL_INVALID: {
3249
3249
  code: 'URL_INVALID',
3250
3250
  message: 'Invalid URL format',
3251
- hint: 'Expected format: https://your-project.c15t.dev'
3251
+ hint: 'Expected format: https://your-project.inth.app'
3252
3252
  },
3253
3253
  INSTANCE_NOT_FOUND: {
3254
3254
  code: 'INSTANCE_NOT_FOUND',
@@ -4292,7 +4292,7 @@ function createValidator(validate, errorMessage) {
4292
4292
  };
4293
4293
  }
4294
4294
  createValidator(isValidUrl, 'Please enter a valid URL (e.g., https://example.com)');
4295
- createValidator(isValidC15tUrl, 'Please enter a valid c15t URL (e.g., https://my-app.c15t.dev)');
4295
+ createValidator(isValidC15tUrl, 'Please enter a valid hosted URL (e.g., https://my-app.inth.app)');
4296
4296
  const validateInstanceName = createValidator(isValidInstanceName, 'Project slug must be 3-63 lowercase alphanumeric characters with hyphens');
4297
4297
  createValidator((value)=>value.trim().length > 0, 'This field is required');
4298
4298
  function isCancel(value) {
@@ -4565,7 +4565,7 @@ const hostedModeActor = fromPromise(async ({ input })=>{
4565
4565
  cliContext.logger.info('consent.io sign-in is currently disabled. Set V2=1 to enable sign-in and project selection.');
4566
4566
  const url = await promptBackendURL({
4567
4567
  message: 'Enter your consent.io project URL:',
4568
- placeholder: 'https://your-project.c15t.dev',
4568
+ placeholder: 'https://your-project.inth.app',
4569
4569
  initialURL,
4570
4570
  stage: 'consent_manual_url'
4571
4571
  });
@@ -4594,7 +4594,7 @@ const hostedModeActor = fromPromise(async ({ input })=>{
4594
4594
  if ('manual-url' === setupMethod) {
4595
4595
  const url = await promptBackendURL({
4596
4596
  message: 'Enter your consent.io project URL:',
4597
- placeholder: 'https://your-project.c15t.dev',
4597
+ placeholder: 'https://your-project.inth.app',
4598
4598
  initialURL,
4599
4599
  stage: 'consent_manual_url'
4600
4600
  });
@@ -19,7 +19,7 @@ function generateClientConfigContent(mode, backendURL, useEnvFile, enableDevTool
19
19
  }
20
20
  }
21
21
  function generateHostedConfig(backendURL, useEnvFile, enableDevTools = false) {
22
- const url = useEnvFile ? 'process.env.NEXT_PUBLIC_C15T_URL' : `'${backendURL || 'https://your-project.c15t.dev'}'`;
22
+ const url = useEnvFile ? 'process.env.NEXT_PUBLIC_C15T_URL' : `'${backendURL || 'https://your-project.inth.app'}'`;
23
23
  const devToolsImport = enableDevTools ? "import { createDevTools } from '@c15t/dev-tools';\n" : '';
24
24
  const devToolsCall = enableDevTools ? 'createDevTools();\n' : '';
25
25
  return `import { getOrCreateConsentRuntime } from 'c15t';
@@ -185,7 +185,7 @@ function generateEnvFileContent(backendURL, pkg) {
185
185
  }
186
186
  function generateEnvExampleContent(pkg) {
187
187
  const envVarName = getEnvVarName(pkg);
188
- return `\n# c15t Configuration\n${envVarName}=https://your-project.c15t.dev\n`;
188
+ return `\n# c15t Configuration\n${envVarName}=https://your-project.inth.app\n`;
189
189
  }
190
190
  async function findMatchingFiles(projectRoot, patterns, logger) {
191
191
  const matches = [];
@@ -928,7 +928,7 @@ async function runLayoutUpdatePipeline(config) {
928
928
  function getBackendURLValue(backendURL, useEnvFile, proxyNextjs, envVarPrefix = 'NEXT_PUBLIC') {
929
929
  if (proxyNextjs) return '"/api/c15t"';
930
930
  if (useEnvFile) return `process.env.${envVarPrefix}_C15T_URL!`;
931
- return `'${backendURL || 'https://your-project.c15t.dev'}'`;
931
+ return `'${backendURL || 'https://your-project.inth.app'}'`;
932
932
  }
933
933
  function generateOptionsText(mode, backendURL, useEnvFile, proxyNextjs, inlineCustomHandlers, envVarPrefix = 'NEXT_PUBLIC') {
934
934
  switch(mode){
@@ -1202,7 +1202,7 @@ async function createConsentManagerComponent(projectRoot, pagesDir, optionsText,
1202
1202
  function addServerSideDataComment(appFile, backendURL, useEnvFile, proxyNextjs) {
1203
1203
  const existingComments = appFile.getLeadingCommentRanges();
1204
1204
  let urlExample;
1205
- urlExample = proxyNextjs ? "'/api/c15t'" : useEnvFile ? 'process.env.NEXT_PUBLIC_C15T_URL!' : `'${backendURL || 'https://your-project.c15t.dev'}'`;
1205
+ urlExample = proxyNextjs ? "'/api/c15t'" : useEnvFile ? 'process.env.NEXT_PUBLIC_C15T_URL!' : `'${backendURL || 'https://your-project.inth.app'}'`;
1206
1206
  const serverSideComment = `/**
1207
1207
  * Note: To get the initial server-side data on other pages, add this to each page:
1208
1208
  *
@@ -1465,7 +1465,7 @@ function generateRewriteDestination(backendURL, useEnvFile) {
1465
1465
  isTemplateLiteral: true
1466
1466
  };
1467
1467
  return {
1468
- destination: `${backendURL || 'https://your-project.c15t.dev'}/:path*`,
1468
+ destination: `${backendURL || 'https://your-project.inth.app'}/:path*`,
1469
1469
  isTemplateLiteral: false
1470
1470
  };
1471
1471
  }
@@ -43,7 +43,7 @@ export declare const PATHS: {
43
43
  export declare const REGEX: {
44
44
  /** Generic URL pattern */
45
45
  readonly URL: RegExp;
46
- /** c15t platform URL pattern */
46
+ /** Hosted c15t platform URL pattern (legacy and current domains) */
47
47
  readonly C15T_URL: RegExp;
48
48
  /** Dynamic route segment pattern (e.g., [locale]) */
49
49
  readonly DYNAMIC_SEGMENT: RegExp;
@@ -92,7 +92,7 @@ export declare const ERROR_CATALOG: {
92
92
  readonly URL_INVALID: {
93
93
  readonly code: "URL_INVALID";
94
94
  readonly message: "Invalid URL format";
95
- readonly hint: "Expected format: https://your-project.c15t.dev";
95
+ readonly hint: "Expected format: https://your-project.inth.app";
96
96
  };
97
97
  readonly INSTANCE_NOT_FOUND: {
98
98
  readonly code: "INSTANCE_NOT_FOUND";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c15t/cli",
3
- "version": "2.0.0-rc.10",
3
+ "version": "2.0.0-rc.11",
4
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
5
  "homepage": "https://v2.c15t.com",
6
6
  "repository": {