uloop-cli 1.4.0 → 1.5.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 +0 -56
- package/README_ja.md +0 -56
- package/dist/cli.bundle.cjs +9 -146
- package/dist/cli.bundle.cjs.map +2 -2
- package/package.json +1 -1
- package/src/__tests__/cli-e2e.test.ts +0 -54
- package/src/default-tools.json +1 -144
- package/src/skills/deprecated-skills.ts +3 -0
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -377,28 +377,6 @@ describe('CLI E2E Tests (requires running Unity)', () => {
|
|
|
377
377
|
});
|
|
378
378
|
});
|
|
379
379
|
|
|
380
|
-
describe('get-menu-items', () => {
|
|
381
|
-
it('should retrieve menu items', () => {
|
|
382
|
-
const result = runCliJson<{ MenuItems: unknown[]; TotalCount: number }>(
|
|
383
|
-
'get-menu-items --max-count 10',
|
|
384
|
-
);
|
|
385
|
-
|
|
386
|
-
expect(typeof result.TotalCount).toBe('number');
|
|
387
|
-
expect(Array.isArray(result.MenuItems)).toBe(true);
|
|
388
|
-
});
|
|
389
|
-
|
|
390
|
-
it('should filter menu items', () => {
|
|
391
|
-
const result = runCliJson<{ MenuItems: Array<{ Path: string }> }>(
|
|
392
|
-
'get-menu-items --filter-text "GameObject"',
|
|
393
|
-
);
|
|
394
|
-
|
|
395
|
-
expect(result.MenuItems.length).toBeGreaterThan(0);
|
|
396
|
-
for (const item of result.MenuItems) {
|
|
397
|
-
expect(item.Path.toLowerCase()).toContain('gameobject');
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
});
|
|
401
|
-
|
|
402
380
|
describe('execute-menu-item', () => {
|
|
403
381
|
const TEST_LOG_MENU_PATH = 'uLoopMCP/Debug/LogGetter Tests/Output Test Logs';
|
|
404
382
|
|
|
@@ -430,14 +408,6 @@ describe('CLI E2E Tests (requires running Unity)', () => {
|
|
|
430
408
|
});
|
|
431
409
|
});
|
|
432
410
|
|
|
433
|
-
describe('unity-search', () => {
|
|
434
|
-
it('should search assets', () => {
|
|
435
|
-
const result = runCliJson<{ Results: unknown[] }>('unity-search --search-query "*.cs"');
|
|
436
|
-
|
|
437
|
-
expect(Array.isArray(result.Results)).toBe(true);
|
|
438
|
-
});
|
|
439
|
-
});
|
|
440
|
-
|
|
441
411
|
describe('find-game-objects', () => {
|
|
442
412
|
it('should find game objects with name pattern', () => {
|
|
443
413
|
const result = runCliJson<{ results: unknown[]; totalFound: number }>(
|
|
@@ -460,30 +430,6 @@ describe('CLI E2E Tests (requires running Unity)', () => {
|
|
|
460
430
|
});
|
|
461
431
|
});
|
|
462
432
|
|
|
463
|
-
describe('get-unity-search-providers', () => {
|
|
464
|
-
it('should retrieve search providers', () => {
|
|
465
|
-
const result = runCliJson<{ Providers: unknown[] }>('get-unity-search-providers');
|
|
466
|
-
|
|
467
|
-
expect(Array.isArray(result.Providers)).toBe(true);
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
it('should support --include-descriptions false to exclude descriptions', () => {
|
|
471
|
-
const result = runCliJson<{ Providers: unknown[] }>(
|
|
472
|
-
'get-unity-search-providers --include-descriptions false',
|
|
473
|
-
);
|
|
474
|
-
|
|
475
|
-
expect(Array.isArray(result.Providers)).toBe(true);
|
|
476
|
-
});
|
|
477
|
-
|
|
478
|
-
it('should support --sort-by-priority false to disable priority sorting', () => {
|
|
479
|
-
const result = runCliJson<{ Providers: unknown[] }>(
|
|
480
|
-
'get-unity-search-providers --sort-by-priority false',
|
|
481
|
-
);
|
|
482
|
-
|
|
483
|
-
expect(Array.isArray(result.Providers)).toBe(true);
|
|
484
|
-
});
|
|
485
|
-
});
|
|
486
|
-
|
|
487
433
|
describe('--help', () => {
|
|
488
434
|
it('should display help', () => {
|
|
489
435
|
const { stdout, exitCode } = runCli('--help');
|
package/src/default-tools.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.5.0",
|
|
3
3
|
"tools": [
|
|
4
4
|
{
|
|
5
5
|
"name": "compile",
|
|
@@ -156,149 +156,6 @@
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
{
|
|
160
|
-
"name": "unity-search",
|
|
161
|
-
"description": "Search Unity project",
|
|
162
|
-
"inputSchema": {
|
|
163
|
-
"type": "object",
|
|
164
|
-
"properties": {
|
|
165
|
-
"SearchQuery": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"description": "Search query"
|
|
168
|
-
},
|
|
169
|
-
"Providers": {
|
|
170
|
-
"type": "array",
|
|
171
|
-
"description": "Search providers",
|
|
172
|
-
"items": {
|
|
173
|
-
"type": "string"
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
"MaxResults": {
|
|
177
|
-
"type": "integer",
|
|
178
|
-
"description": "Maximum number of results",
|
|
179
|
-
"default": 50
|
|
180
|
-
},
|
|
181
|
-
"IncludeDescription": {
|
|
182
|
-
"type": "boolean",
|
|
183
|
-
"description": "Include detailed descriptions in results",
|
|
184
|
-
"default": true
|
|
185
|
-
},
|
|
186
|
-
"IncludeMetadata": {
|
|
187
|
-
"type": "boolean",
|
|
188
|
-
"description": "Include file metadata (size, modified date)"
|
|
189
|
-
},
|
|
190
|
-
"SearchFlags": {
|
|
191
|
-
"type": "string",
|
|
192
|
-
"description": "Search flags (Default, Synchronous, WantsMore, Packages, Sorted)",
|
|
193
|
-
"enum": [
|
|
194
|
-
"Default",
|
|
195
|
-
"Synchronous",
|
|
196
|
-
"WantsMore",
|
|
197
|
-
"Packages",
|
|
198
|
-
"Sorted"
|
|
199
|
-
],
|
|
200
|
-
"default": "Default"
|
|
201
|
-
},
|
|
202
|
-
"SaveToFile": {
|
|
203
|
-
"type": "boolean",
|
|
204
|
-
"description": "Save results to file"
|
|
205
|
-
},
|
|
206
|
-
"OutputFormat": {
|
|
207
|
-
"type": "string",
|
|
208
|
-
"description": "Output file format when SaveToFile is enabled",
|
|
209
|
-
"enum": [
|
|
210
|
-
"JSON",
|
|
211
|
-
"CSV",
|
|
212
|
-
"TSV"
|
|
213
|
-
],
|
|
214
|
-
"default": "JSON"
|
|
215
|
-
},
|
|
216
|
-
"AutoSaveThreshold": {
|
|
217
|
-
"type": "integer",
|
|
218
|
-
"description": "Threshold for automatic file saving (0 to disable)",
|
|
219
|
-
"default": 100
|
|
220
|
-
},
|
|
221
|
-
"FileExtensions": {
|
|
222
|
-
"type": "array",
|
|
223
|
-
"description": "Filter results by file extension (e.g., cs, prefab, mat)",
|
|
224
|
-
"items": {
|
|
225
|
-
"type": "string"
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
"AssetTypes": {
|
|
229
|
-
"type": "array",
|
|
230
|
-
"description": "Filter results by asset type (e.g., Texture2D, GameObject, MonoScript)",
|
|
231
|
-
"items": {
|
|
232
|
-
"type": "string"
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
"PathFilter": {
|
|
236
|
-
"type": "string",
|
|
237
|
-
"description": "Filter results by path pattern (supports wildcards)"
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"name": "get-unity-search-providers",
|
|
244
|
-
"description": "Get detailed information about Unity Search providers including display names, descriptions, active status, and capabilities",
|
|
245
|
-
"inputSchema": {
|
|
246
|
-
"type": "object",
|
|
247
|
-
"properties": {
|
|
248
|
-
"ProviderId": {
|
|
249
|
-
"type": "string",
|
|
250
|
-
"description": "Specific provider ID to get details for (empty = all providers). Examples: 'asset', 'scene', 'menu', 'settings'"
|
|
251
|
-
},
|
|
252
|
-
"ActiveOnly": {
|
|
253
|
-
"type": "boolean",
|
|
254
|
-
"description": "Whether to include only active providers",
|
|
255
|
-
"default": false
|
|
256
|
-
},
|
|
257
|
-
"SortByPriority": {
|
|
258
|
-
"type": "boolean",
|
|
259
|
-
"description": "Sort providers by priority (lower number = higher priority)",
|
|
260
|
-
"default": true
|
|
261
|
-
},
|
|
262
|
-
"IncludeDescriptions": {
|
|
263
|
-
"type": "boolean",
|
|
264
|
-
"description": "Include detailed descriptions for each provider",
|
|
265
|
-
"default": true
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"name": "get-menu-items",
|
|
272
|
-
"description": "Retrieve Unity MenuItems",
|
|
273
|
-
"inputSchema": {
|
|
274
|
-
"type": "object",
|
|
275
|
-
"properties": {
|
|
276
|
-
"FilterText": {
|
|
277
|
-
"type": "string",
|
|
278
|
-
"description": "Filter text"
|
|
279
|
-
},
|
|
280
|
-
"FilterType": {
|
|
281
|
-
"type": "string",
|
|
282
|
-
"description": "Filter type",
|
|
283
|
-
"enum": [
|
|
284
|
-
"contains",
|
|
285
|
-
"exact",
|
|
286
|
-
"startswith"
|
|
287
|
-
],
|
|
288
|
-
"default": "contains"
|
|
289
|
-
},
|
|
290
|
-
"MaxCount": {
|
|
291
|
-
"type": "integer",
|
|
292
|
-
"description": "Maximum number of items",
|
|
293
|
-
"default": 200
|
|
294
|
-
},
|
|
295
|
-
"IncludeValidation": {
|
|
296
|
-
"type": "boolean",
|
|
297
|
-
"description": "Include validation functions"
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
159
|
{
|
|
303
160
|
"name": "execute-menu-item",
|
|
304
161
|
"description": "Execute Unity MenuItem",
|
|
@@ -7,4 +7,7 @@
|
|
|
7
7
|
export const DEPRECATED_SKILLS: string[] = [
|
|
8
8
|
'uloop-capture-window', // renamed to uloop-screenshot in v0.54.0
|
|
9
9
|
'uloop-get-provider-details', // renamed to uloop-get-unity-search-providers
|
|
10
|
+
'uloop-unity-search', // removed: replaceable by execute-dynamic-code
|
|
11
|
+
'uloop-get-menu-items', // removed: replaceable by execute-dynamic-code
|
|
12
|
+
'uloop-get-unity-search-providers', // removed: replaceable by execute-dynamic-code
|
|
10
13
|
];
|
package/src/version.ts
CHANGED