@contentful/experience-design-system-cli 2.25.3-dev-build-bc0ac20.0 → 2.25.3-dev-build-26d146c.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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.25.3-dev-build-bc0ac20.0",
3
+ "version": "2.25.3-dev-build-26d146c.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -57,7 +57,7 @@
57
57
  "eslint-plugin-prettier": "^5.5.6",
58
58
  "ink-testing-library": "^4.0.0",
59
59
  "typescript-eslint": "^8.67.0",
60
- "vitest": "^4.1.11"
60
+ "vitest": "^4.0.16"
61
61
  },
62
62
  "repository": {
63
63
  "type": "git",
@@ -3,7 +3,10 @@ import { Analytics } from '@segment/analytics-node';
3
3
  const require = createRequire(import.meta.url);
4
4
  const pkg = require('../../package.json');
5
5
  // Anonymous usage telemetry for the CLI. Disabled when DISABLE_ANALYTICS is set
6
- // or when no write key is configured. Never blocks command execution.
6
+ // or when the setup preference opts out. Never blocks command execution.
7
+ // Public write key scoped to data source. Grants write-only event ingest; a
8
+ // distributed CLI cannot hold a secret, so this ships in source by design.
9
+ const DEFAULT_WRITE_KEY = '6DmxiEPN3SV1vbRTTMcNqDzCvkfwT06N';
7
10
  let analyticsClient = null;
8
11
  let persistedDisabled = false;
9
12
  export function cliVersion() {
@@ -16,11 +19,13 @@ export function setPersistedAnalyticsDisabled(disabled) {
16
19
  persistedDisabled = disabled;
17
20
  }
18
21
  export function analyticsEnabled() {
19
- return !persistedDisabled && !process.env.DISABLE_ANALYTICS && Boolean(resolveWriteKey());
22
+ return !persistedDisabled && !process.env.DISABLE_ANALYTICS;
20
23
  }
24
+ // SEGMENT_WRITE_KEY overrides the default so engineers can point a local run at
25
+ // their own staging connection.
21
26
  function resolveWriteKey() {
22
27
  const key = (process.env.SEGMENT_WRITE_KEY ?? '').trim();
23
- return key.length > 0 ? key : undefined;
28
+ return key.length > 0 ? key : DEFAULT_WRITE_KEY;
24
29
  }
25
30
  function getClient() {
26
31
  if (!analyticsEnabled())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.25.3-dev-build-bc0ac20.0",
3
+ "version": "2.25.3-dev-build-26d146c.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,10 +34,10 @@
34
34
  "react": "^18.3.1",
35
35
  "react-devtools-core": "^4.19.1",
36
36
  "react-dom": "^18.3.1",
37
- "@contentful/experience-design-system-client": "2.25.3-dev-build-bc0ac20.0",
38
- "@contentful/experience-design-system-types": "2.25.3-dev-build-bc0ac20.0",
39
- "@contentful/experience-design-system-generation": "2.25.3-dev-build-bc0ac20.0",
40
- "@contentful/experience-design-system-extraction": "2.25.3-dev-build-bc0ac20.0"
37
+ "@contentful/experience-design-system-client": "2.25.3-dev-build-26d146c.0",
38
+ "@contentful/experience-design-system-extraction": "2.25.3-dev-build-26d146c.0",
39
+ "@contentful/experience-design-system-types": "2.25.3-dev-build-26d146c.0",
40
+ "@contentful/experience-design-system-generation": "2.25.3-dev-build-26d146c.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@tsconfig/node24": "^24.0.4",
@@ -48,7 +48,7 @@
48
48
  "eslint-plugin-prettier": "^5.5.6",
49
49
  "ink-testing-library": "^4.0.0",
50
50
  "typescript-eslint": "^8.67.0",
51
- "vitest": "^4.1.11"
51
+ "vitest": "^4.0.16"
52
52
  },
53
53
  "repository": {
54
54
  "type": "git",