heroku 10.4.0 → 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/bin/heroku-prompts.js +235 -0
- package/bin/heroku-repl.js +619 -0
- package/bin/run +36 -7
- package/lib/analytics.js +3 -1
- package/lib/global_telemetry.d.ts +1 -1
- package/lib/global_telemetry.js +3 -1
- package/lib/lib/pg/host.js +1 -2
- package/lib/lib/redis/api.js +1 -1
- package/oclif.manifest.json +894 -894
- package/package.json +5 -4
package/lib/global_telemetry.js
CHANGED
|
@@ -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,
|
package/lib/lib/pg/host.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
function default_1() {
|
|
4
|
-
|
|
5
|
-
return host ? host : 'api.data.heroku.com';
|
|
4
|
+
return process.env.HEROKU_DATA_HOST || 'api.data.heroku.com';
|
|
6
5
|
}
|
|
7
6
|
exports.default = default_1;
|
package/lib/lib/redis/api.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
5
|
exports.default = (app, database, json, heroku) => {
|
|
6
|
-
const HOST = process.env.HEROKU_REDIS_HOST || 'api.data.heroku.com';
|
|
6
|
+
const HOST = process.env.HEROKU_DATA_HOST || process.env.HEROKU_REDIS_HOST || 'api.data.heroku.com';
|
|
7
7
|
const ADDON = process.env.HEROKU_REDIS_ADDON_NAME || 'heroku-redis';
|
|
8
8
|
return {
|
|
9
9
|
request(path, method = 'GET', body = null) {
|