mortgram-cli 1.0.0 → 1.0.1
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/index.js +2 -2
- package/dist/lib/logger.js +1 -1
- package/dist/lib/vitals.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,8 +10,8 @@ const config_1 = require("./lib/config");
|
|
|
10
10
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
11
11
|
const path_1 = __importDefault(require("path"));
|
|
12
12
|
// Load environment variables from the parent directory if possible, or current
|
|
13
|
-
dotenv_1.default.config({ path: path_1.default.join(process.cwd(), "..", ".env.local") });
|
|
14
|
-
dotenv_1.default.config(); // Fallback to current dir
|
|
13
|
+
dotenv_1.default.config({ path: path_1.default.join(process.cwd(), "..", ".env.local"), quiet: true });
|
|
14
|
+
dotenv_1.default.config({ quiet: true }); // Fallback to current dir
|
|
15
15
|
const program = new commander_1.Command();
|
|
16
16
|
program
|
|
17
17
|
.name("mortgram")
|
package/dist/lib/logger.js
CHANGED
|
@@ -8,7 +8,7 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
8
8
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
9
9
|
const config_1 = require("./config");
|
|
10
10
|
// ensure env is loaded
|
|
11
|
-
dotenv_1.default.config();
|
|
11
|
+
dotenv_1.default.config({ quiet: true });
|
|
12
12
|
const API_KEY = process.env.MG_LIVE_KEY || (0, config_1.loadConfig)();
|
|
13
13
|
const API_URL = process.env.MORTGRAM_API_URL || "http://localhost:3000/api/ingest";
|
|
14
14
|
const AGENT_ID = process.env.MG_AGENT_ID || "cli-agent";
|
package/dist/lib/vitals.js
CHANGED
|
@@ -9,7 +9,7 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
9
9
|
const guard_1 = require("./guard");
|
|
10
10
|
const dotenv_1 = __importDefault(require("dotenv"));
|
|
11
11
|
const config_1 = require("./config");
|
|
12
|
-
dotenv_1.default.config();
|
|
12
|
+
dotenv_1.default.config({ quiet: true });
|
|
13
13
|
const API_KEY = process.env.MG_LIVE_KEY || (0, config_1.loadConfig)();
|
|
14
14
|
const API_URL = process.env.MORTGRAM_API_URL ? `${process.env.MORTGRAM_API_URL}/heartbeat` : "http://localhost:3000/api/cron/heartbeat";
|
|
15
15
|
// Note: reusing cron heartbeat or creating a specific agent heartbeat endpoint?
|