uloop-cli 0.62.3 → 0.63.0
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 +68 -5
- package/dist/cli.bundle.cjs.map +2 -2
- package/package.json +9 -9
- package/src/cli.ts +13 -3
- package/src/default-tools.json +1 -1
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uloop-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"//version": "x-release-please-version",
|
|
5
5
|
"description": "CLI tool for Unity Editor communication via uLoopMCP",
|
|
6
6
|
"main": "dist/cli.bundle.cjs",
|
|
@@ -41,25 +41,25 @@
|
|
|
41
41
|
"provenance": true
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"commander": "14.0.
|
|
45
|
-
"launch-unity": "0.15.
|
|
46
|
-
"semver": "7.7.
|
|
44
|
+
"commander": "14.0.3",
|
|
45
|
+
"launch-unity": "0.15.1",
|
|
46
|
+
"semver": "7.7.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@eslint/js": "9.39.2",
|
|
50
50
|
"@types/jest": "30.0.0",
|
|
51
|
-
"@types/node": "25.
|
|
51
|
+
"@types/node": "25.2.3",
|
|
52
52
|
"@types/semver": "7.7.1",
|
|
53
|
-
"esbuild": "0.27.
|
|
53
|
+
"esbuild": "0.27.3",
|
|
54
54
|
"eslint": "9.39.2",
|
|
55
55
|
"eslint-config-prettier": "10.1.8",
|
|
56
|
-
"eslint-plugin-prettier": "5.5.
|
|
56
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
57
57
|
"eslint-plugin-security": "3.0.1",
|
|
58
58
|
"jest": "30.2.0",
|
|
59
|
-
"prettier": "3.
|
|
59
|
+
"prettier": "3.8.1",
|
|
60
60
|
"ts-jest": "29.4.6",
|
|
61
61
|
"tsx": "4.21.0",
|
|
62
62
|
"typescript": "5.9.3",
|
|
63
|
-
"typescript-eslint": "8.
|
|
63
|
+
"typescript-eslint": "8.55.0"
|
|
64
64
|
}
|
|
65
65
|
}
|
package/src/cli.ts
CHANGED
|
@@ -39,12 +39,16 @@ interface CliOptions extends GlobalOptions {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
const LAUNCH_COMMAND = 'launch' as const;
|
|
42
|
+
const UPDATE_COMMAND = 'update' as const;
|
|
43
|
+
|
|
44
|
+
// commander.js built-in flags that exit immediately without needing Unity
|
|
45
|
+
const NO_SYNC_FLAGS = ['-v', '--version', '-h', '--help'] as const;
|
|
42
46
|
|
|
43
47
|
const BUILTIN_COMMANDS = [
|
|
44
48
|
'list',
|
|
45
49
|
'sync',
|
|
46
50
|
'completion',
|
|
47
|
-
|
|
51
|
+
UPDATE_COMMAND,
|
|
48
52
|
'fix',
|
|
49
53
|
'skills',
|
|
50
54
|
LAUNCH_COMMAND,
|
|
@@ -745,6 +749,13 @@ function commandExists(cmdName: string): boolean {
|
|
|
745
749
|
return tools.tools.some((t) => t.name === cmdName);
|
|
746
750
|
}
|
|
747
751
|
|
|
752
|
+
function shouldSkipAutoSync(cmdName: string | undefined, args: string[]): boolean {
|
|
753
|
+
if (cmdName === LAUNCH_COMMAND || cmdName === UPDATE_COMMAND) {
|
|
754
|
+
return true;
|
|
755
|
+
}
|
|
756
|
+
return args.some((arg) => (NO_SYNC_FLAGS as readonly string[]).includes(arg));
|
|
757
|
+
}
|
|
758
|
+
|
|
748
759
|
/**
|
|
749
760
|
* Main entry point with auto-sync for unknown commands.
|
|
750
761
|
*/
|
|
@@ -756,8 +767,7 @@ async function main(): Promise<void> {
|
|
|
756
767
|
const args = process.argv.slice(2);
|
|
757
768
|
const cmdName = args.find((arg) => !arg.startsWith('-'));
|
|
758
769
|
|
|
759
|
-
|
|
760
|
-
if (cmdName !== LAUNCH_COMMAND) {
|
|
770
|
+
if (!shouldSkipAutoSync(cmdName, args)) {
|
|
761
771
|
// Check if cache version is outdated and auto-sync if needed
|
|
762
772
|
const cachedVersion = loadToolsCache().version;
|
|
763
773
|
if (hasCacheFile() && cachedVersion !== VERSION) {
|
package/src/default-tools.json
CHANGED
package/src/version.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* This file exists to avoid bundling the entire package.json into the CLI bundle.
|
|
5
5
|
* This version is automatically updated by release-please.
|
|
6
6
|
*/
|
|
7
|
-
export const VERSION = '0.
|
|
7
|
+
export const VERSION = '0.63.0'; // x-release-please-version
|