uloop-cli 0.62.2 → 0.62.3
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/cli.bundle.cjs +25 -22
- package/dist/cli.bundle.cjs.map +2 -2
- package/package.json +1 -1
- package/src/cli.ts +27 -22
- package/src/default-tools.json +1 -1
- package/src/version.ts +1 -1
package/dist/cli.bundle.cjs
CHANGED
|
@@ -5783,7 +5783,7 @@ var import_path3 = require("path");
|
|
|
5783
5783
|
|
|
5784
5784
|
// src/default-tools.json
|
|
5785
5785
|
var default_tools_default = {
|
|
5786
|
-
version: "0.62.
|
|
5786
|
+
version: "0.62.3",
|
|
5787
5787
|
tools: [
|
|
5788
5788
|
{
|
|
5789
5789
|
name: "compile",
|
|
@@ -6227,7 +6227,7 @@ function getCachedServerVersion() {
|
|
|
6227
6227
|
}
|
|
6228
6228
|
|
|
6229
6229
|
// src/version.ts
|
|
6230
|
-
var VERSION = "0.62.
|
|
6230
|
+
var VERSION = "0.62.3";
|
|
6231
6231
|
|
|
6232
6232
|
// src/spinner.ts
|
|
6233
6233
|
var SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
@@ -8183,6 +8183,7 @@ function registerFocusWindowCommand(program3) {
|
|
|
8183
8183
|
}
|
|
8184
8184
|
|
|
8185
8185
|
// src/cli.ts
|
|
8186
|
+
var LAUNCH_COMMAND = "launch";
|
|
8186
8187
|
var BUILTIN_COMMANDS = [
|
|
8187
8188
|
"list",
|
|
8188
8189
|
"sync",
|
|
@@ -8190,7 +8191,7 @@ var BUILTIN_COMMANDS = [
|
|
|
8190
8191
|
"update",
|
|
8191
8192
|
"fix",
|
|
8192
8193
|
"skills",
|
|
8193
|
-
|
|
8194
|
+
LAUNCH_COMMAND,
|
|
8194
8195
|
"focus-window"
|
|
8195
8196
|
];
|
|
8196
8197
|
var program2 = new Command();
|
|
@@ -8700,23 +8701,27 @@ async function main() {
|
|
|
8700
8701
|
if (handleCompletionOptions()) {
|
|
8701
8702
|
return;
|
|
8702
8703
|
}
|
|
8703
|
-
const
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
)
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8704
|
+
const args = process.argv.slice(2);
|
|
8705
|
+
const cmdName = args.find((arg) => !arg.startsWith("-"));
|
|
8706
|
+
if (cmdName !== LAUNCH_COMMAND) {
|
|
8707
|
+
const cachedVersion = loadToolsCache().version;
|
|
8708
|
+
if (hasCacheFile() && cachedVersion !== VERSION) {
|
|
8709
|
+
console.log(
|
|
8710
|
+
`\x1B[33mCache outdated (${cachedVersion} \u2192 ${VERSION}). Syncing tools from Unity...\x1B[0m`
|
|
8711
|
+
);
|
|
8712
|
+
try {
|
|
8713
|
+
await syncTools({});
|
|
8714
|
+
console.log("\x1B[32m\u2713 Tools synced successfully.\x1B[0m\n");
|
|
8715
|
+
} catch (error) {
|
|
8716
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
8717
|
+
if (isConnectionError(message)) {
|
|
8718
|
+
console.error("\x1B[33mWarning: Failed to sync tools. Using cached definitions.\x1B[0m");
|
|
8719
|
+
console.error("\x1B[33mRun 'uloop sync' manually when Unity is available.\x1B[0m\n");
|
|
8720
|
+
} else {
|
|
8721
|
+
console.error("\x1B[33mWarning: Failed to sync tools. Using cached definitions.\x1B[0m");
|
|
8722
|
+
console.error(`\x1B[33mError: ${message}\x1B[0m`);
|
|
8723
|
+
console.error("\x1B[33mRun 'uloop sync' manually when Unity is available.\x1B[0m\n");
|
|
8724
|
+
}
|
|
8720
8725
|
}
|
|
8721
8726
|
}
|
|
8722
8727
|
}
|
|
@@ -8724,8 +8729,6 @@ async function main() {
|
|
|
8724
8729
|
for (const tool of toolsCache.tools) {
|
|
8725
8730
|
registerToolCommand(tool);
|
|
8726
8731
|
}
|
|
8727
|
-
const args = process.argv.slice(2);
|
|
8728
|
-
const cmdName = args.find((arg) => !arg.startsWith("-"));
|
|
8729
8732
|
if (cmdName && !commandExists(cmdName)) {
|
|
8730
8733
|
console.log(`\x1B[33mUnknown command '${cmdName}'. Syncing tools from Unity...\x1B[0m`);
|
|
8731
8734
|
try {
|