lingo.dev 0.90.0 → 0.90.2
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 +76 -11
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +79 -14
- package/build/cli.mjs.map +1 -1
- package/package.json +2 -2
package/build/cli.cjs
CHANGED
|
@@ -3821,7 +3821,6 @@ async function trackEvent(distinctId, event, properties) {
|
|
|
3821
3821
|
}
|
|
3822
3822
|
try {
|
|
3823
3823
|
const { PostHog } = await Promise.resolve().then(() => _interopRequireWildcard(require("posthog-node")));
|
|
3824
|
-
console.log("--- ---");
|
|
3825
3824
|
const safeProperties = properties ? JSON.parse(
|
|
3826
3825
|
JSON.stringify(properties, (key, value) => {
|
|
3827
3826
|
if (value instanceof Error) {
|
|
@@ -3842,7 +3841,6 @@ async function trackEvent(distinctId, event, properties) {
|
|
|
3842
3841
|
flushInterval: 0
|
|
3843
3842
|
}
|
|
3844
3843
|
);
|
|
3845
|
-
console.log("--- ---");
|
|
3846
3844
|
await posthog.capture({
|
|
3847
3845
|
distinctId,
|
|
3848
3846
|
event,
|
|
@@ -3854,9 +3852,7 @@ async function trackEvent(distinctId, event, properties) {
|
|
|
3854
3852
|
}
|
|
3855
3853
|
}
|
|
3856
3854
|
});
|
|
3857
|
-
console.log("--- ---");
|
|
3858
3855
|
await posthog.shutdown();
|
|
3859
|
-
console.log("--- ---");
|
|
3860
3856
|
} catch (error) {
|
|
3861
3857
|
if (process.env.DEBUG) {
|
|
3862
3858
|
console.error(error);
|
|
@@ -4858,7 +4854,7 @@ var mcp_default = new (0, _interactivecommander.Command)().command("mcp").descri
|
|
|
4858
4854
|
|
|
4859
4855
|
|
|
4860
4856
|
// src/cli/cmd/ci/flows/pull-request.ts
|
|
4861
|
-
var _child_process = require('child_process');
|
|
4857
|
+
var _child_process = require('child_process'); var cp = _interopRequireWildcard(_child_process);
|
|
4862
4858
|
|
|
4863
4859
|
// src/cli/cmd/ci/flows/in-branch.ts
|
|
4864
4860
|
|
|
@@ -5548,9 +5544,6 @@ var ci_default = new (0, _interactivecommander.Command)().command("ci").descript
|
|
|
5548
5544
|
LINGODOTDEV_PROCESS_OWN_COMMITS: options.processOwnCommits.toString()
|
|
5549
5545
|
}
|
|
5550
5546
|
};
|
|
5551
|
-
console.log("--- config ---");
|
|
5552
|
-
console.log(env);
|
|
5553
|
-
console.log("--- ---");
|
|
5554
5547
|
process.env = { ...process.env, ...env };
|
|
5555
5548
|
const ora = _ora2.default.call(void 0, );
|
|
5556
5549
|
const platformKit = getPlatformKit();
|
|
@@ -5985,10 +5978,82 @@ function validateParams2(i18nConfig, flags) {
|
|
|
5985
5978
|
}
|
|
5986
5979
|
}
|
|
5987
5980
|
|
|
5981
|
+
// src/cli/cmd/may-the-fourth.ts
|
|
5982
|
+
|
|
5983
|
+
|
|
5984
|
+
|
|
5985
|
+
|
|
5986
|
+
|
|
5987
|
+
var colors = {
|
|
5988
|
+
orange: "#ff6600",
|
|
5989
|
+
green: "#6ae300",
|
|
5990
|
+
blue: "#0090ff",
|
|
5991
|
+
yellow: "#ffcc00",
|
|
5992
|
+
grey: "#808080",
|
|
5993
|
+
red: "#ff0000"
|
|
5994
|
+
};
|
|
5995
|
+
var may_the_fourth_default = new (0, _interactivecommander.Command)().command("may-the-fourth").description("May the Fourth be with you").helpOption("-h, --help", "Show help").action(async () => {
|
|
5996
|
+
await renderClear();
|
|
5997
|
+
await renderBanner();
|
|
5998
|
+
await renderSpacer();
|
|
5999
|
+
console.log(_chalk2.default.hex(colors.yellow)("Loading the Star Wars movie..."));
|
|
6000
|
+
await renderSpacer();
|
|
6001
|
+
await new Promise((resolve, reject) => {
|
|
6002
|
+
const ssh = cp.spawn("ssh", ["starwarstel.net"], {
|
|
6003
|
+
stdio: "inherit"
|
|
6004
|
+
});
|
|
6005
|
+
ssh.on("close", (code) => {
|
|
6006
|
+
if (code !== 0) {
|
|
6007
|
+
console.error(`SSH process exited with code ${code}`);
|
|
6008
|
+
}
|
|
6009
|
+
resolve();
|
|
6010
|
+
});
|
|
6011
|
+
ssh.on("error", (err) => {
|
|
6012
|
+
console.error("Failed to start SSH process:", err);
|
|
6013
|
+
reject(err);
|
|
6014
|
+
});
|
|
6015
|
+
});
|
|
6016
|
+
await renderSpacer();
|
|
6017
|
+
console.log(
|
|
6018
|
+
`${_chalk2.default.hex(colors.green)("We hope you enjoyed it! :)")} ${_chalk2.default.hex(colors.blue)("May the Fourth be with you! \u{1F680}")}`
|
|
6019
|
+
);
|
|
6020
|
+
await renderSpacer();
|
|
6021
|
+
console.log(_chalk2.default.dim(`---`));
|
|
6022
|
+
await renderSpacer();
|
|
6023
|
+
await renderHero();
|
|
6024
|
+
});
|
|
6025
|
+
async function renderClear() {
|
|
6026
|
+
console.log("\x1Bc");
|
|
6027
|
+
}
|
|
6028
|
+
async function renderSpacer() {
|
|
6029
|
+
console.log(" ");
|
|
6030
|
+
}
|
|
6031
|
+
async function renderBanner() {
|
|
6032
|
+
console.log(
|
|
6033
|
+
_gradientstring.vice.call(void 0,
|
|
6034
|
+
_figlet2.default.textSync("LINGO.DEV", {
|
|
6035
|
+
font: "ANSI Shadow",
|
|
6036
|
+
horizontalLayout: "default",
|
|
6037
|
+
verticalLayout: "default"
|
|
6038
|
+
})
|
|
6039
|
+
)
|
|
6040
|
+
);
|
|
6041
|
+
}
|
|
6042
|
+
async function renderHero() {
|
|
6043
|
+
console.log(
|
|
6044
|
+
`\u26A1\uFE0F ${_chalk2.default.hex(colors.green)("Lingo.dev")} - open-source, AI-powered i18n CLI for web & mobile localization.`
|
|
6045
|
+
);
|
|
6046
|
+
console.log(" ");
|
|
6047
|
+
console.log(
|
|
6048
|
+
_chalk2.default.hex(colors.blue)("\u2B50 GitHub Repo: https://lingo.dev/go/gh")
|
|
6049
|
+
);
|
|
6050
|
+
console.log(_chalk2.default.hex(colors.blue)("\u{1F4AC} 24/7 Support: hi@lingo.dev"));
|
|
6051
|
+
}
|
|
6052
|
+
|
|
5988
6053
|
// package.json
|
|
5989
6054
|
var package_default = {
|
|
5990
6055
|
name: "lingo.dev",
|
|
5991
|
-
version: "0.90.
|
|
6056
|
+
version: "0.90.2",
|
|
5992
6057
|
description: "Lingo.dev CLI",
|
|
5993
6058
|
private: false,
|
|
5994
6059
|
publishConfig: {
|
|
@@ -6047,7 +6112,7 @@ var package_default = {
|
|
|
6047
6112
|
dependencies: {
|
|
6048
6113
|
"@ai-sdk/anthropic": "^1.2.6",
|
|
6049
6114
|
"@ai-sdk/openai": "^1.3.7",
|
|
6050
|
-
"@datocms/cma-client-node": "^
|
|
6115
|
+
"@datocms/cma-client-node": "^4.0.1",
|
|
6051
6116
|
"@gitbeaker/rest": "^39.34.3",
|
|
6052
6117
|
"@inquirer/prompts": "^7.4.1",
|
|
6053
6118
|
"@lingo.dev/_sdk": "workspace:*",
|
|
@@ -6157,7 +6222,7 @@ ${_gradientstring.vice.call(void 0,
|
|
|
6157
6222
|
|
|
6158
6223
|
Star the the repo :) https://github.com/LingoDotDev/lingo.dev
|
|
6159
6224
|
`
|
|
6160
|
-
).version(`v${package_default.version}`, "-v, --version", "Show version").addCommand(init_default).interactive("-y, --no-interactive", "Disable interactive mode").addCommand(i18n_default).addCommand(auth_default).addCommand(show_default).addCommand(lockfile_default).addCommand(cleanup_default).addCommand(mcp_default).addCommand(ci_default).addCommand(status_default).exitOverride((err) => {
|
|
6225
|
+
).version(`v${package_default.version}`, "-v, --version", "Show version").addCommand(init_default).interactive("-y, --no-interactive", "Disable interactive mode").addCommand(i18n_default).addCommand(auth_default).addCommand(show_default).addCommand(lockfile_default).addCommand(cleanup_default).addCommand(mcp_default).addCommand(ci_default).addCommand(status_default).addCommand(may_the_fourth_default, { hidden: true }).exitOverride((err) => {
|
|
6161
6226
|
if (err.code === "commander.helpDisplayed" || err.code === "commander.version" || err.code === "commander.help") {
|
|
6162
6227
|
process.exit(0);
|
|
6163
6228
|
}
|