uloop-cli 0.47.0 → 0.48.1
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 +33 -9
- package/dist/cli.bundle.cjs.map +3 -3
- package/package.json +1 -1
- package/src/default-tools.json +27 -3
- package/src/skills/bundled-skills.ts +4 -4
- package/src/skills/skill-definitions/uloop-capture-unity-window/SKILL.md +81 -0
- package/src/skills/skill-definitions/uloop-focus-window/SKILL.md +1 -1
- package/src/version.ts +1 -1
- package/src/skills/skill-definitions/uloop-capture-gameview/SKILL.md +0 -39
package/dist/cli.bundle.cjs
CHANGED
|
@@ -5621,7 +5621,7 @@ var import_path3 = require("path");
|
|
|
5621
5621
|
|
|
5622
5622
|
// src/default-tools.json
|
|
5623
5623
|
var default_tools_default = {
|
|
5624
|
-
version: "0.
|
|
5624
|
+
version: "0.48.1",
|
|
5625
5625
|
tools: [
|
|
5626
5626
|
{
|
|
5627
5627
|
name: "compile",
|
|
@@ -5896,11 +5896,16 @@ var default_tools_default = {
|
|
|
5896
5896
|
}
|
|
5897
5897
|
},
|
|
5898
5898
|
{
|
|
5899
|
-
name: "capture-
|
|
5900
|
-
description: "Capture Unity
|
|
5899
|
+
name: "capture-unity-window",
|
|
5900
|
+
description: "Capture Unity EditorWindow and save as PNG image",
|
|
5901
5901
|
inputSchema: {
|
|
5902
5902
|
type: "object",
|
|
5903
5903
|
properties: {
|
|
5904
|
+
WindowName: {
|
|
5905
|
+
type: "string",
|
|
5906
|
+
description: "Window name to capture (e.g., 'Game', 'Scene', 'Console', 'Inspector', 'Project', 'Hierarchy')",
|
|
5907
|
+
default: "Game"
|
|
5908
|
+
},
|
|
5904
5909
|
ResolutionScale: {
|
|
5905
5910
|
type: "number",
|
|
5906
5911
|
description: "Resolution scale (0.1 to 1.0)",
|
|
@@ -5972,6 +5977,25 @@ var default_tools_default = {
|
|
|
5972
5977
|
type: "object",
|
|
5973
5978
|
properties: {}
|
|
5974
5979
|
}
|
|
5980
|
+
},
|
|
5981
|
+
{
|
|
5982
|
+
name: "control-play-mode",
|
|
5983
|
+
description: "Control Unity Editor play mode (play/stop/pause)",
|
|
5984
|
+
inputSchema: {
|
|
5985
|
+
type: "object",
|
|
5986
|
+
properties: {
|
|
5987
|
+
Action: {
|
|
5988
|
+
type: "string",
|
|
5989
|
+
description: "Action to perform: Play - Start play mode, Stop - Stop play mode, Pause - Pause play mode",
|
|
5990
|
+
enum: [
|
|
5991
|
+
"Play",
|
|
5992
|
+
"Stop",
|
|
5993
|
+
"Pause"
|
|
5994
|
+
],
|
|
5995
|
+
default: "Play"
|
|
5996
|
+
}
|
|
5997
|
+
}
|
|
5998
|
+
}
|
|
5975
5999
|
}
|
|
5976
6000
|
]
|
|
5977
6001
|
};
|
|
@@ -6018,7 +6042,7 @@ function getCacheFilePath() {
|
|
|
6018
6042
|
}
|
|
6019
6043
|
|
|
6020
6044
|
// src/version.ts
|
|
6021
|
-
var VERSION = "0.
|
|
6045
|
+
var VERSION = "0.48.1";
|
|
6022
6046
|
|
|
6023
6047
|
// src/spinner.ts
|
|
6024
6048
|
var SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
|
|
@@ -6309,8 +6333,8 @@ var import_fs4 = require("fs");
|
|
|
6309
6333
|
var import_path5 = require("path");
|
|
6310
6334
|
var import_os = require("os");
|
|
6311
6335
|
|
|
6312
|
-
// src/skills/skill-definitions/uloop-capture-
|
|
6313
|
-
var SKILL_default =
|
|
6336
|
+
// src/skills/skill-definitions/uloop-capture-unity-window/SKILL.md
|
|
6337
|
+
var SKILL_default = '---\nname: uloop-capture-unity-window\ndescription: Capture Unity EditorWindow and save as PNG image. Use when you need to: (1) Take a screenshot of Game View, Scene View, Console, Inspector, etc., (2) Capture visual state for debugging or verification, (3) Save editor output as an image file.\n---\n\n# uloop capture-unity-window\n\nCapture any Unity EditorWindow by name and save as PNG image.\n\n## Usage\n\n```bash\nuloop capture-unity-window [--window-name <name>] [--resolution-scale <scale>]\n```\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `--window-name` | string | `Game` | Window name to capture (e.g., "Game", "Scene", "Console", "Inspector", "Project", "Hierarchy", or any EditorWindow title) |\n| `--resolution-scale` | number | `1.0` | Resolution scale (0.1 to 1.0) |\n\n## Window Name\n\nThe window name is the text displayed in the window\'s title bar (tab). The user (human) will tell you which window to capture. Common window names include:\n\n- **Game**: Game View window\n- **Scene**: Scene View window\n- **Console**: Console window\n- **Inspector**: Inspector window\n- **Project**: Project browser window\n- **Hierarchy**: Hierarchy window\n- **Animation**: Animation window\n- **Animator**: Animator window\n- **Profiler**: Profiler window\n- **Audio Mixer**: Audio Mixer window\n\nYou can also specify custom EditorWindow titles (e.g., "EditorWindow Capture Test").\n\n## Examples\n\n```bash\n# Capture Game View at full resolution\nuloop capture-unity-window\n\n# Capture Game View at half resolution\nuloop capture-unity-window --window-name Game --resolution-scale 0.5\n\n# Capture Scene View\nuloop capture-unity-window --window-name Scene\n\n# Capture Console window\nuloop capture-unity-window --window-name Console\n\n# Capture Inspector window\nuloop capture-unity-window --window-name Inspector\n\n# Capture Project browser\nuloop capture-unity-window --window-name Project\n\n# Capture custom EditorWindow by title\nuloop capture-unity-window --window-name "My Custom Window"\n```\n\n## Output\n\nReturns JSON with:\n- `CapturedCount`: Number of windows captured\n- `CapturedWindows`: Array of captured window info, each containing:\n - `ImagePath`: Absolute path to the saved PNG image\n - `FileSizeBytes`: Size of the saved file in bytes\n - `Width`: Captured image width in pixels\n - `Height`: Captured image height in pixels\n\nWhen multiple windows of the same type are open (e.g., multiple Inspector windows), all matching windows are captured with numbered filenames (e.g., `Inspector_1_*.png`, `Inspector_2_*.png`).\n\n## Notes\n\n- Use `uloop focus-window` first if needed\n- Target window must be open in Unity Editor\n- Window name matching is case-insensitive\n';
|
|
6314
6338
|
|
|
6315
6339
|
// src/skills/skill-definitions/uloop-clear-console/SKILL.md
|
|
6316
6340
|
var SKILL_default2 = "---\nname: uloop-clear-console\ndescription: Clear Unity console logs via uloop CLI. Use when you need to: (1) Clear the console before running tests, (2) Start a fresh debugging session, (3) Clean up log output for better readability.\n---\n\n# uloop clear-console\n\nClear Unity console logs.\n\n## Usage\n\n```bash\nuloop clear-console [--add-confirmation-message]\n```\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `--add-confirmation-message` | boolean | `false` | Add confirmation message after clearing |\n\n## Examples\n\n```bash\n# Clear console\nuloop clear-console\n\n# Clear with confirmation\nuloop clear-console --add-confirmation-message\n```\n\n## Output\n\nReturns JSON confirming the console was cleared.\n";
|
|
@@ -6331,7 +6355,7 @@ var SKILL_default6 = '---\nname: uloop-execute-menu-item\ndescription: Execute U
|
|
|
6331
6355
|
var SKILL_default7 = '---\nname: uloop-find-game-objects\ndescription: Find GameObjects with search criteria via uloop CLI. Use when you need to: (1) Locate GameObjects by name pattern, (2) Find objects by tag or layer, (3) Search for objects with specific component types.\n---\n\n# uloop find-game-objects\n\nFind GameObjects with search criteria.\n\n## Usage\n\n```bash\nuloop find-game-objects [options]\n```\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `--name-pattern` | string | - | Name pattern to search |\n| `--search-mode` | string | `Contains` | Search mode: `Exact`, `Path`, `Regex`, `Contains` |\n| `--required-components` | array | - | Required components |\n| `--tag` | string | - | Tag filter |\n| `--layer` | string | - | Layer filter |\n| `--max-results` | integer | `20` | Maximum number of results |\n| `--include-inactive` | boolean | `false` | Include inactive GameObjects |\n\n## Examples\n\n```bash\n# Find by name\nuloop find-game-objects --name-pattern "Player"\n\n# Find with component\nuloop find-game-objects --required-components Rigidbody\n\n# Find by tag\nuloop find-game-objects --tag "Enemy"\n\n# Regex search\nuloop find-game-objects --name-pattern "UI_.*" --search-mode Regex\n```\n\n## Output\n\nReturns JSON array of matching GameObjects with paths and components.\n';
|
|
6332
6356
|
|
|
6333
6357
|
// src/skills/skill-definitions/uloop-focus-window/SKILL.md
|
|
6334
|
-
var SKILL_default8 = "---\nname: uloop-focus-window\ndescription: Bring Unity Editor window to front via uloop CLI. Use when you need to: (1) Focus Unity Editor before capturing screenshots, (2) Ensure Unity window is visible for visual checks, (3) Bring Unity to foreground for user interaction.\n---\n\n# uloop focus-window\n\nBring Unity Editor window to front.\n\n## Usage\n\n```bash\nuloop focus-window\n```\n\n## Parameters\n\nNone.\n\n## Examples\n\n```bash\n# Focus Unity Editor\nuloop focus-window\n```\n\n## Output\n\nReturns JSON confirming the window was focused.\n\n## Notes\n\n- Useful before `uloop capture-
|
|
6358
|
+
var SKILL_default8 = "---\nname: uloop-focus-window\ndescription: Bring Unity Editor window to front via uloop CLI. Use when you need to: (1) Focus Unity Editor before capturing screenshots, (2) Ensure Unity window is visible for visual checks, (3) Bring Unity to foreground for user interaction.\n---\n\n# uloop focus-window\n\nBring Unity Editor window to front.\n\n## Usage\n\n```bash\nuloop focus-window\n```\n\n## Parameters\n\nNone.\n\n## Examples\n\n```bash\n# Focus Unity Editor\nuloop focus-window\n```\n\n## Output\n\nReturns JSON confirming the window was focused.\n\n## Notes\n\n- Useful before `uloop capture-unity-window` to ensure the target window is visible\n- Brings the main Unity Editor window to the foreground\n";
|
|
6335
6359
|
|
|
6336
6360
|
// src/skills/skill-definitions/uloop-get-hierarchy/SKILL.md
|
|
6337
6361
|
var SKILL_default9 = '---\nname: uloop-get-hierarchy\ndescription: Get Unity Hierarchy structure via uloop CLI. Use when you need to: (1) Inspect scene structure and GameObject tree, (2) Find GameObjects and their parent-child relationships, (3) Check component attachments on objects.\n---\n\n# uloop get-hierarchy\n\nGet Unity Hierarchy structure.\n\n## Usage\n\n```bash\nuloop get-hierarchy [options]\n```\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `--root-path` | string | - | Root GameObject path to start from |\n| `--max-depth` | integer | `-1` | Maximum depth (-1 for unlimited) |\n| `--include-components` | boolean | `true` | Include component information |\n| `--include-inactive` | boolean | `true` | Include inactive GameObjects |\n| `--include-paths` | boolean | `false` | Include full path information |\n\n## Examples\n\n```bash\n# Get entire hierarchy\nuloop get-hierarchy\n\n# Get hierarchy from specific root\nuloop get-hierarchy --root-path "Canvas/UI"\n\n# Limit depth\nuloop get-hierarchy --max-depth 2\n\n# Without components\nuloop get-hierarchy --include-components false\n```\n\n## Output\n\nReturns JSON with hierarchical structure of GameObjects and their components.\n';
|
|
@@ -6354,8 +6378,8 @@ var SKILL_default14 = '---\nname: uloop-unity-search\ndescription: Search Unity
|
|
|
6354
6378
|
// src/skills/bundled-skills.ts
|
|
6355
6379
|
var BUNDLED_SKILLS = [
|
|
6356
6380
|
{
|
|
6357
|
-
name: "uloop-capture-
|
|
6358
|
-
dirName: "uloop-capture-
|
|
6381
|
+
name: "uloop-capture-unity-window",
|
|
6382
|
+
dirName: "uloop-capture-unity-window",
|
|
6359
6383
|
content: SKILL_default
|
|
6360
6384
|
},
|
|
6361
6385
|
{
|