heroku 10.4.1-alpha.3 → 10.4.1-alpha.4

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/lib/analytics.js CHANGED
@@ -15,6 +15,8 @@ class AnalyticsCommand {
15
15
  }
16
16
  async record(opts) {
17
17
  await this.initialize;
18
+ const mcpMode = process.env.HEROKU_MCP_MODE === 'true';
19
+ const mcpServerVersion = process.env.HEROKU_MCP_SERVER_VERSION || 'unknown';
18
20
  const plugin = opts.Command.plugin;
19
21
  if (!plugin) {
20
22
  debug('no plugin found for analytics');
@@ -29,7 +31,7 @@ class AnalyticsCommand {
29
31
  cli: this.config.name,
30
32
  command: opts.Command.id,
31
33
  completion: await this._acAnalytics(opts.Command.id),
32
- version: this.config.version,
34
+ version: `${this.config.version}${mcpMode ? ` (MCP ${mcpServerVersion})` : ''}`,
33
35
  plugin: plugin.name,
34
36
  plugin_version: plugin.version,
35
37
  os: this.config.platform,
@@ -25,7 +25,7 @@ export declare function initializeInstrumentation(): void;
25
25
  export declare function setupTelemetry(config: any, opts: any): {
26
26
  command: any;
27
27
  os: any;
28
- version: any;
28
+ version: string;
29
29
  exitCode: number;
30
30
  exitState: string;
31
31
  cliRunDuration: number;
@@ -57,10 +57,12 @@ function setupTelemetry(config, opts) {
57
57
  const now = new Date();
58
58
  const cmdStartTime = now.getTime();
59
59
  const isRegularCmd = Boolean(opts.Command);
60
+ const mcpMode = process.env.HEROKU_MCP_MODE === 'true';
61
+ const mcpServerVersion = process.env.HEROKU_MCP_SERVER_VERSION || 'unknown';
60
62
  const irregularTelemetryObject = {
61
63
  command: opts.id,
62
64
  os: config.platform,
63
- version: config.version,
65
+ version: `${config.version}${mcpMode ? ` (MCP ${mcpServerVersion})` : ''}`,
64
66
  exitCode: 0,
65
67
  exitState: 'successful',
66
68
  cliRunDuration: 0,
@@ -14486,5 +14486,5 @@
14486
14486
  ]
14487
14487
  }
14488
14488
  },
14489
- "version": "10.4.1-alpha.3"
14489
+ "version": "10.4.1-alpha.4"
14490
14490
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "heroku",
3
3
  "description": "CLI to interact with Heroku",
4
- "version": "10.4.1-alpha.3",
4
+ "version": "10.4.1-alpha.4",
5
5
  "author": "Heroku",
6
6
  "bin": "./bin/run",
7
7
  "bugs": "https://github.com/heroku/cli/issues",
@@ -391,12 +391,12 @@
391
391
  "test:acceptance": "yarn pretest && mocha --forbid-only \"test/**/*.acceptance.test.ts\" && node ./bin/bats-test-runner",
392
392
  "test:integration": "yarn pretest && mocha --forbid-only \"test/**/*.integration.test.ts\"",
393
393
  "test:smoke": "yarn pretest && mocha --forbid-only \"test/**/smoke.acceptance.test.ts\"",
394
- "test:unit:justTest:local": "nyc mocha \"test/**/*.unit.test.ts\"",
394
+ "test:unit:justTest:local": "mocha \"test/**/*.unit.test.ts\"",
395
395
  "test:unit:justTest:ci": "nyc --reporter=lcov --reporter=text-summary mocha --forbid-only \"test/**/*.unit.test.ts\"",
396
396
  "test": "yarn pretest && yarn test:unit:justTest:ci",
397
397
  "test:local": "yarn pretest && yarn test:unit:justTest:local",
398
398
  "version": "oclif readme --multi && git add README.md ../../docs"
399
399
  },
400
400
  "types": "lib/index.d.ts",
401
- "gitHead": "f1d8ccc1f48c80ae57e765151f908ec20d6be01e"
401
+ "gitHead": "5b16397f5c6e3d85fe97db84917f31a855eaf97f"
402
402
  }