lingo.dev 0.78.10 → 0.78.12
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/build/cli.cjs +63 -46
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +18 -1
- package/build/cli.mjs.map +1 -1
- package/package.json +3 -3
package/build/cli.mjs
CHANGED
|
@@ -23,6 +23,7 @@ function getSettings(explicitApiKey) {
|
|
|
23
23
|
const systemFile = _loadSystemFile();
|
|
24
24
|
const defaults = _loadDefaults();
|
|
25
25
|
_legacyEnvVarWarning();
|
|
26
|
+
_envVarsInfo();
|
|
26
27
|
return {
|
|
27
28
|
auth: {
|
|
28
29
|
apiKey: explicitApiKey || env.LINGODOTDEV_API_KEY || systemFile.auth?.apiKey || defaults.auth.apiKey,
|
|
@@ -95,6 +96,22 @@ Please use LINGODOTDEV_API_KEY instead.
|
|
|
95
96
|
);
|
|
96
97
|
}
|
|
97
98
|
}
|
|
99
|
+
function _envVarsInfo() {
|
|
100
|
+
const env = _loadEnv();
|
|
101
|
+
const systemFile = _loadSystemFile();
|
|
102
|
+
if (env.LINGODOTDEV_API_KEY && systemFile.auth?.apiKey) {
|
|
103
|
+
console.info(
|
|
104
|
+
"\x1B[36m%s\x1B[0m",
|
|
105
|
+
`\u2139\uFE0F Using LINGODOTDEV_API_KEY env var instead of credentials from login flow (saved in .lingodotdevrc)`
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
if (env.LINGODOTDEV_API_URL) {
|
|
109
|
+
console.info("\x1B[36m%s\x1B[0m", `\u2139\uFE0F Using LINGODOTDEV_API_URL: ${env.LINGODOTDEV_API_URL}`);
|
|
110
|
+
}
|
|
111
|
+
if (env.LINGODOTDEV_WEB_URL) {
|
|
112
|
+
console.info("\x1B[36m%s\x1B[0m", `\u2139\uFE0F Using LINGODOTDEV_WEB_URL: ${env.LINGODOTDEV_WEB_URL}`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
98
115
|
|
|
99
116
|
// src/cli/utils/errors.ts
|
|
100
117
|
var docLinks = {
|
|
@@ -3899,7 +3916,7 @@ var mcp_default = new Command9().command("mcp").description("Use Lingo.dev model
|
|
|
3899
3916
|
// package.json
|
|
3900
3917
|
var package_default = {
|
|
3901
3918
|
name: "lingo.dev",
|
|
3902
|
-
version: "0.78.
|
|
3919
|
+
version: "0.78.12",
|
|
3903
3920
|
description: "Lingo.dev CLI",
|
|
3904
3921
|
private: false,
|
|
3905
3922
|
publishConfig: {
|