uloop-cli 0.50.2 → 0.51.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.
@@ -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.50.2",
5624
+ version: "0.51.0",
5625
5625
  tools: [
5626
5626
  {
5627
5627
  name: "compile",
@@ -5896,8 +5896,8 @@ var default_tools_default = {
5896
5896
  }
5897
5897
  },
5898
5898
  {
5899
- name: "capture-unity-window",
5900
- description: "Capture Unity EditorWindow and save as PNG image",
5899
+ name: "capture-window",
5900
+ description: "Capture Unity EditorWindow and save as PNG",
5901
5901
  inputSchema: {
5902
5902
  type: "object",
5903
5903
  properties: {
@@ -5910,6 +5910,16 @@ var default_tools_default = {
5910
5910
  type: "number",
5911
5911
  description: "Resolution scale (0.1 to 1.0)",
5912
5912
  default: 1
5913
+ },
5914
+ MatchMode: {
5915
+ type: "string",
5916
+ description: "Window name matching mode (all case-insensitive)",
5917
+ enum: [
5918
+ "exact",
5919
+ "prefix",
5920
+ "contains"
5921
+ ],
5922
+ default: "exact"
5913
5923
  }
5914
5924
  }
5915
5925
  }
@@ -6042,7 +6052,7 @@ function getCacheFilePath() {
6042
6052
  }
6043
6053
 
6044
6054
  // src/version.ts
6045
- var VERSION = "0.50.2";
6055
+ var VERSION = "0.51.0";
6046
6056
 
6047
6057
  // src/spinner.ts
6048
6058
  var SPINNER_FRAMES = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
@@ -6333,8 +6343,8 @@ var import_fs4 = require("fs");
6333
6343
  var import_path5 = require("path");
6334
6344
  var import_os = require("os");
6335
6345
 
6336
- // ../Editor/Api/McpTools/CaptureUnityWindow/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';
6346
+ // ../Editor/Api/McpTools/CaptureWindow/SKILL.md
6347
+ var SKILL_default = '---\nname: uloop-capture-window\ndescription: Capture Unity EditorWindow and save as PNG. 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-window\n\nCapture any Unity EditorWindow by name and save as PNG.\n\n## Usage\n\n```bash\nuloop capture-window [--window-name <name>] [--resolution-scale <scale>] [--match-mode <mode>]\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| `--match-mode` | enum | `exact` | Window name matching mode: `exact`, `prefix`, or `contains`. All modes are case-insensitive. |\n\n## Match Modes\n\n| Mode | Description | Example |\n|------|-------------|---------|\n| `exact` | Window name must match exactly (case-insensitive) | "Project" matches "Project" only |\n| `prefix` | Window name must start with the input | "Project" matches "Project" and "Project Settings" |\n| `contains` | Window name must contain the input anywhere | "set" matches "Project Settings" |\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-window\n\n# Capture Game View at half resolution\nuloop capture-window --window-name Game --resolution-scale 0.5\n\n# Capture Scene View\nuloop capture-window --window-name Scene\n\n# Capture Console window\nuloop capture-window --window-name Console\n\n# Capture Inspector window\nuloop capture-window --window-name Inspector\n\n# Capture Project browser (exact match - won\'t match "Project Settings")\nuloop capture-window --window-name Project\n\n# Capture all windows starting with "Project" (prefix match)\nuloop capture-window --window-name Project --match-mode prefix\n\n# Capture custom EditorWindow by title\nuloop capture-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 file\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 match (e.g., multiple Inspector windows or when using `contains` mode), 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 always case-insensitive\n';
6338
6348
 
6339
6349
  // ../Editor/Api/McpTools/ClearConsole/SKILL.md
6340
6350
  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";
@@ -6378,8 +6388,8 @@ var SKILL_default14 = '---\nname: uloop-unity-search\ndescription: Search Unity
6378
6388
  // src/skills/bundled-skills.ts
6379
6389
  var BUNDLED_SKILLS = [
6380
6390
  {
6381
- name: "uloop-capture-unity-window",
6382
- dirName: "uloop-capture-unity-window",
6391
+ name: "uloop-capture-window",
6392
+ dirName: "uloop-capture-window",
6383
6393
  content: SKILL_default
6384
6394
  },
6385
6395
  {