uloop-cli 0.70.1 → 1.1.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/README.md +4 -4
- package/README_ja.md +4 -4
- package/dist/cli.bundle.cjs +59 -14
- package/dist/cli.bundle.cjs.map +2 -2
- package/package.json +7 -7
- package/src/default-tools.json +29 -1
- package/src/skills/skills-command.ts +13 -5
- package/src/skills/target-config.ts +18 -5
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/uloop-cli)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
[](https://nodejs.org/)
|
|
8
8
|
|
|
9
|
-
**CLI companion for [
|
|
9
|
+
**CLI companion for [Unity CLI Loop](https://github.com/hatayama/uLoopMCP)** - Let AI agents compile, test, and operate your Unity project.
|
|
10
10
|
|
|
11
|
-
> **Prerequisites**: This CLI requires [
|
|
11
|
+
> **Prerequisites**: This CLI requires [Unity CLI Loop](https://github.com/hatayama/uLoopMCP) to be installed in your Unity project and the server running. See the [main repository](https://github.com/hatayama/uLoopMCP) for setup instructions.
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
@@ -421,7 +421,7 @@ uloop completion --shell powershell --install # PowerShell
|
|
|
421
421
|
|
|
422
422
|
## Requirements
|
|
423
423
|
|
|
424
|
-
- **Node.js
|
|
424
|
+
- **Node.js 22.0 or later**
|
|
425
425
|
- **Unity 2022.3 or later** with [uLoopMCP](https://github.com/hatayama/uLoopMCP) installed
|
|
426
426
|
- uLoopMCP server running (Window > uLoopMCP > Start Server)
|
|
427
427
|
|
package/README_ja.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/uloop-cli)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
[](https://nodejs.org/)
|
|
8
8
|
|
|
9
|
-
**[
|
|
9
|
+
**[Unity CLI Loop](https://github.com/hatayama/uLoopMCP) の CLI コンパニオン** - AIエージェントにUnityプロジェクトのコンパイル、テスト、操作を任せましょう。
|
|
10
10
|
|
|
11
|
-
> **前提条件**: このCLIを使用するには、Unityプロジェクトに [
|
|
11
|
+
> **前提条件**: このCLIを使用するには、Unityプロジェクトに [Unity CLI Loop](https://github.com/hatayama/uLoopMCP) がインストールされ、サーバーが起動している必要があります。セットアップ手順は [メインリポジトリ](https://github.com/hatayama/uLoopMCP) を参照してください。
|
|
12
12
|
|
|
13
13
|
## インストール
|
|
14
14
|
|
|
@@ -421,7 +421,7 @@ uloop completion --shell powershell --install # PowerShell
|
|
|
421
421
|
|
|
422
422
|
## 動作要件
|
|
423
423
|
|
|
424
|
-
- **Node.js
|
|
424
|
+
- **Node.js 22.0 以降**
|
|
425
425
|
- **Unity 2022.3 以降**([uLoopMCP](https://github.com/hatayama/uLoopMCP) がインストール済みであること)
|
|
426
426
|
- uLoopMCP サーバーが起動していること(Window > uLoopMCP > Start Server)
|
|
427
427
|
|
package/dist/cli.bundle.cjs
CHANGED
|
@@ -5886,7 +5886,7 @@ var import_path4 = require("path");
|
|
|
5886
5886
|
|
|
5887
5887
|
// src/default-tools.json
|
|
5888
5888
|
var default_tools_default = {
|
|
5889
|
-
version: "
|
|
5889
|
+
version: "1.1.0",
|
|
5890
5890
|
tools: [
|
|
5891
5891
|
{
|
|
5892
5892
|
name: "compile",
|
|
@@ -6417,6 +6417,34 @@ var default_tools_default = {
|
|
|
6417
6417
|
}
|
|
6418
6418
|
}
|
|
6419
6419
|
}
|
|
6420
|
+
},
|
|
6421
|
+
{
|
|
6422
|
+
name: "simulate-keyboard",
|
|
6423
|
+
description: "Simulate keyboard key input in PlayMode via Input System. Supports one-shot press, key-down hold, and key-up release for game controls (WASD, Space, etc.). Requires the Input System package (com.unity.inputsystem).",
|
|
6424
|
+
inputSchema: {
|
|
6425
|
+
type: "object",
|
|
6426
|
+
properties: {
|
|
6427
|
+
Action: {
|
|
6428
|
+
type: "string",
|
|
6429
|
+
description: "Keyboard action: Press - one-shot key tap (Down then Up), KeyDown - hold key down, KeyUp - release held key",
|
|
6430
|
+
enum: [
|
|
6431
|
+
"Press",
|
|
6432
|
+
"KeyDown",
|
|
6433
|
+
"KeyUp"
|
|
6434
|
+
],
|
|
6435
|
+
default: "Press"
|
|
6436
|
+
},
|
|
6437
|
+
Key: {
|
|
6438
|
+
type: "string",
|
|
6439
|
+
description: 'Key name matching Input System Key enum (e.g. "W", "Space", "LeftShift", "A", "Return"). Case-insensitive.'
|
|
6440
|
+
},
|
|
6441
|
+
Duration: {
|
|
6442
|
+
type: "number",
|
|
6443
|
+
description: "Hold duration in seconds for Press action (0 = one-shot tap). Ignored by KeyDown/KeyUp.",
|
|
6444
|
+
default: 0
|
|
6445
|
+
}
|
|
6446
|
+
}
|
|
6447
|
+
}
|
|
6420
6448
|
}
|
|
6421
6449
|
]
|
|
6422
6450
|
};
|
|
@@ -6486,7 +6514,7 @@ function getCachedServerVersion() {
|
|
|
6486
6514
|
}
|
|
6487
6515
|
|
|
6488
6516
|
// src/version.ts
|
|
6489
|
-
var VERSION = "
|
|
6517
|
+
var VERSION = "1.1.0";
|
|
6490
6518
|
|
|
6491
6519
|
// src/spinner.ts
|
|
6492
6520
|
var SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
@@ -7762,7 +7790,7 @@ var TARGET_CONFIGS = {
|
|
|
7762
7790
|
codex: {
|
|
7763
7791
|
id: "codex",
|
|
7764
7792
|
displayName: "Codex CLI",
|
|
7765
|
-
projectDir: ".
|
|
7793
|
+
projectDir: ".agents",
|
|
7766
7794
|
skillFileName: "SKILL.md"
|
|
7767
7795
|
},
|
|
7768
7796
|
cursor: {
|
|
@@ -7774,17 +7802,30 @@ var TARGET_CONFIGS = {
|
|
|
7774
7802
|
gemini: {
|
|
7775
7803
|
id: "gemini",
|
|
7776
7804
|
displayName: "Gemini CLI",
|
|
7777
|
-
projectDir: ".
|
|
7805
|
+
projectDir: ".agents",
|
|
7778
7806
|
skillFileName: "SKILL.md"
|
|
7779
7807
|
},
|
|
7780
7808
|
windsurf: {
|
|
7781
7809
|
id: "windsurf",
|
|
7782
7810
|
displayName: "Windsurf",
|
|
7783
|
-
projectDir: ".
|
|
7811
|
+
projectDir: ".agents",
|
|
7812
|
+
skillFileName: "SKILL.md"
|
|
7813
|
+
},
|
|
7814
|
+
antigravity: {
|
|
7815
|
+
id: "antigravity",
|
|
7816
|
+
displayName: "Antigravity",
|
|
7817
|
+
projectDir: ".agent",
|
|
7784
7818
|
skillFileName: "SKILL.md"
|
|
7785
7819
|
}
|
|
7786
7820
|
};
|
|
7787
|
-
var ALL_TARGET_IDS = [
|
|
7821
|
+
var ALL_TARGET_IDS = [
|
|
7822
|
+
"claude",
|
|
7823
|
+
"codex",
|
|
7824
|
+
"cursor",
|
|
7825
|
+
"gemini",
|
|
7826
|
+
"windsurf",
|
|
7827
|
+
"antigravity"
|
|
7828
|
+
];
|
|
7788
7829
|
function getTargetConfig(id) {
|
|
7789
7830
|
return TARGET_CONFIGS[id];
|
|
7790
7831
|
}
|
|
@@ -7792,12 +7833,12 @@ function getTargetConfig(id) {
|
|
|
7792
7833
|
// src/skills/skills-command.ts
|
|
7793
7834
|
function registerSkillsCommand(program3) {
|
|
7794
7835
|
const skillsCmd = program3.command("skills").description("Manage uloop skills for AI coding tools");
|
|
7795
|
-
skillsCmd.command("list").description("List all uloop skills and their installation status").option("-g, --global", "Check global installation").option("--claude", "Check Claude Code installation").option("--codex", "Check Codex CLI installation").option("--cursor", "Check Cursor installation").option("--gemini", "Check Gemini CLI installation").option("--windsurf", "Check Windsurf installation").action((options) => {
|
|
7836
|
+
skillsCmd.command("list").description("List all uloop skills and their installation status").option("-g, --global", "Check global installation").option("--claude", "Check Claude Code installation").option("--codex", "Check Codex CLI installation").option("--cursor", "Check Cursor installation").option("--gemini", "Check Gemini CLI installation").option("--windsurf", "Check Windsurf installation").option("--antigravity", "Check Antigravity installation").action((options) => {
|
|
7796
7837
|
const targets = resolveTargets(options);
|
|
7797
7838
|
const global = options.global ?? false;
|
|
7798
7839
|
listSkills(targets, global);
|
|
7799
7840
|
});
|
|
7800
|
-
skillsCmd.command("install").description("Install all uloop skills").option("-g, --global", "Install to global location").option("--claude", "Install to Claude Code").option("--codex", "Install to Codex CLI").option("--cursor", "Install to Cursor").option("--gemini", "Install to Gemini CLI").option("--windsurf", "Install to Windsurf").action((options) => {
|
|
7841
|
+
skillsCmd.command("install").description("Install all uloop skills").option("-g, --global", "Install to global location").option("--claude", "Install to Claude Code").option("--codex", "Install to Codex CLI").option("--cursor", "Install to Cursor").option("--gemini", "Install to Gemini CLI").option("--windsurf", "Install to Windsurf").option("--antigravity", "Install to Antigravity").action((options) => {
|
|
7801
7842
|
const targets = resolveTargets(options);
|
|
7802
7843
|
if (targets.length === 0) {
|
|
7803
7844
|
showTargetGuidance("install");
|
|
@@ -7805,7 +7846,7 @@ function registerSkillsCommand(program3) {
|
|
|
7805
7846
|
}
|
|
7806
7847
|
installSkills(targets, options.global ?? false);
|
|
7807
7848
|
});
|
|
7808
|
-
skillsCmd.command("uninstall").description("Uninstall all uloop skills").option("-g, --global", "Uninstall from global location").option("--claude", "Uninstall from Claude Code").option("--codex", "Uninstall from Codex CLI").option("--cursor", "Uninstall from Cursor").option("--gemini", "Uninstall from Gemini CLI").option("--windsurf", "Uninstall from Windsurf").action((options) => {
|
|
7849
|
+
skillsCmd.command("uninstall").description("Uninstall all uloop skills").option("-g, --global", "Uninstall from global location").option("--claude", "Uninstall from Claude Code").option("--codex", "Uninstall from Codex CLI").option("--cursor", "Uninstall from Cursor").option("--gemini", "Uninstall from Gemini CLI").option("--windsurf", "Uninstall from Windsurf").option("--antigravity", "Uninstall from Antigravity").action((options) => {
|
|
7809
7850
|
const targets = resolveTargets(options);
|
|
7810
7851
|
if (targets.length === 0) {
|
|
7811
7852
|
showTargetGuidance("uninstall");
|
|
@@ -7831,6 +7872,9 @@ function resolveTargets(options) {
|
|
|
7831
7872
|
if (options.windsurf) {
|
|
7832
7873
|
targets.push(getTargetConfig("windsurf"));
|
|
7833
7874
|
}
|
|
7875
|
+
if (options.antigravity) {
|
|
7876
|
+
targets.push(getTargetConfig("antigravity"));
|
|
7877
|
+
}
|
|
7834
7878
|
return targets;
|
|
7835
7879
|
}
|
|
7836
7880
|
function showTargetGuidance(command) {
|
|
@@ -7838,11 +7882,12 @@ function showTargetGuidance(command) {
|
|
|
7838
7882
|
Please specify at least one target for '${command}':`);
|
|
7839
7883
|
console.log("");
|
|
7840
7884
|
console.log("Available targets:");
|
|
7841
|
-
console.log(" --claude
|
|
7842
|
-
console.log(" --codex
|
|
7843
|
-
console.log(" --cursor
|
|
7844
|
-
console.log(" --gemini
|
|
7845
|
-
console.log(" --windsurf
|
|
7885
|
+
console.log(" --claude Claude Code (.claude/skills/)");
|
|
7886
|
+
console.log(" --codex Codex CLI (.agents/skills/)");
|
|
7887
|
+
console.log(" --cursor Cursor (.cursor/skills/)");
|
|
7888
|
+
console.log(" --gemini Gemini CLI (.agents/skills/)");
|
|
7889
|
+
console.log(" --windsurf Windsurf (.agents/skills/)");
|
|
7890
|
+
console.log(" --antigravity Antigravity (.agent/skills/)");
|
|
7846
7891
|
console.log("");
|
|
7847
7892
|
console.log("Options:");
|
|
7848
7893
|
console.log(" -g, --global Use global location");
|