@amplitude/wizard 1.0.0-beta.5 → 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.
@@ -113,7 +113,7 @@ export declare const WIZARD_VARIANT_FLAG_KEY = "wizard-variant";
113
113
  /** Variant key -> metadata for wizard run (VARIANT flag selects which entry to use). */
114
114
  export declare const WIZARD_VARIANTS: Record<string, Record<string, string>>;
115
115
  /** User-Agent for wizard HTTP requests and MCP server identification. */
116
- export declare const WIZARD_USER_AGENT: string;
116
+ export declare const WIZARD_USER_AGENT = "amplitude/wizard; version: 1.0.0";
117
117
  /** Header prefix for Amplitude properties. */
118
118
  export declare const AMPLITUDE_PROPERTY_HEADER_PREFIX = "X-AMPLITUDE-PROPERTY-";
119
119
  /** Header prefix for Amplitude feature flags. */
@@ -4,7 +4,9 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.DETECTION_TIMEOUT_MS = exports.AMPLITUDE_FLAG_HEADER_PREFIX = exports.AMPLITUDE_PROPERTY_HEADER_PREFIX = exports.WIZARD_USER_AGENT = exports.WIZARD_VARIANTS = exports.WIZARD_VARIANT_FLAG_KEY = exports.DUMMY_PROJECT_API_KEY = exports.OUTBOUND_URLS = exports.DEFAULT_AMPLITUDE_ZONE = exports.AMPLITUDE_ZONE_SETTINGS = exports.OAUTH_PORT = exports.ANALYTICS_TEAM_TAG = exports.ANALYTICS_HOST_URL = exports.ANALYTICS_AMPLITUDE_PUBLIC_PROJECT_WRITE_KEY = exports.DEFAULT_HOST_URL = exports.DEFAULT_URL = exports.DEMO_MODE = exports.DEBUG = exports.IS_DEV = exports.Integration = void 0;
7
- const package_json_1 = require("../../package.json");
7
+ // Injected at build time by scripts/generate-version.js — do not edit manually.
8
+ // release-please bumps package.json; the prebuild script syncs it here.
9
+ const VERSION = '1.0.0';
8
10
  // ── Integration / CLI ───────────────────────────────────────────────
9
11
  /**
10
12
  * Detection order matters: put framework-specific integrations BEFORE basic language fallbacks.
@@ -158,7 +160,7 @@ exports.WIZARD_VARIANTS = {
158
160
  subagents: { VARIANT: 'subagents' },
159
161
  };
160
162
  /** User-Agent for wizard HTTP requests and MCP server identification. */
161
- exports.WIZARD_USER_AGENT = `amplitude/wizard; version: ${package_json_1.version}`;
163
+ exports.WIZARD_USER_AGENT = `amplitude/wizard; version: ${VERSION}`;
162
164
  // ── HTTP headers ─────────────────────────────────────────────────────
163
165
  /** Header prefix for Amplitude properties. */
164
166
  exports.AMPLITUDE_PROPERTY_HEADER_PREFIX = 'X-AMPLITUDE-PROPERTY-';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplitude/wizard",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0",
4
4
  "homepage": "https://github.com/amplitude/wizard",
5
5
  "repository": "https://github.com/amplitude/wizard",
6
6
  "description": "The Amplitude wizard helps you to configure your project",
@@ -115,7 +115,7 @@
115
115
  },
116
116
  "scripts": {
117
117
  "clean": "rm -rf ./dist",
118
- "prebuild": "pnpm clean",
118
+ "prebuild": "pnpm clean && node scripts/sync-version.mjs",
119
119
  "build:watch": "pnpm tsc -w",
120
120
  "build": "pnpm tsc",
121
121
  "postbuild": "chmod +x ./dist/bin.js && pnpm test:smoke",