@amplitude/wizard 1.0.0-beta.5 → 1.0.0-beta.6

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/LICENSE CHANGED
@@ -1,6 +1,30 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Amplitude
3
+ Copyright (c) 2026 Amplitude, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ --------------------------------------------------------------------------------
24
+
25
+ MIT License
26
+
27
+ Copyright (c) 2025 PostHog
4
28
 
5
29
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
30
  of this software and associated documentation files (the "Software"), to deal
@@ -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-beta.6";
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-beta.6';
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-beta.6",
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",