@akiojin/unity-mcp-server 2.16.0 → 2.25.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/LICENSE +0 -0
- package/README.md +153 -100
- package/bin/unity-mcp-server +7 -1
- package/package.json +30 -7
- package/src/core/codeIndex.js +0 -0
- package/src/core/codeIndexDb.js +0 -0
- package/src/core/config.js +47 -14
- package/src/core/indexWatcher.js +84 -15
- package/src/core/jobManager.js +178 -0
- package/src/core/projectInfo.js +21 -67
- package/src/core/server.js +15 -2
- package/src/core/unityConnection.js +0 -0
- package/src/handlers/addressables/AddressablesAnalyzeToolHandler.js +170 -0
- package/src/handlers/addressables/AddressablesBuildToolHandler.js +145 -0
- package/src/handlers/addressables/AddressablesManageToolHandler.js +266 -0
- package/src/handlers/analysis/AnalyzeSceneContentsToolHandler.js +1 -1
- package/src/handlers/analysis/FindByComponentToolHandler.js +2 -2
- package/src/handlers/analysis/GetAnimatorStateToolHandler.js +1 -1
- package/src/handlers/analysis/GetComponentValuesToolHandler.js +2 -2
- package/src/handlers/analysis/GetGameObjectDetailsToolHandler.js +1 -1
- package/src/handlers/analysis/GetInputActionsStateToolHandler.js +1 -1
- package/src/handlers/analysis/GetObjectReferencesToolHandler.js +2 -2
- package/src/handlers/asset/{AssetDatabaseToolHandler.js → AssetDatabaseManageToolHandler.js} +2 -2
- package/src/handlers/asset/{AssetDependencyToolHandler.js → AssetDependencyAnalyzeToolHandler.js} +2 -2
- package/src/handlers/asset/{AssetImportSettingsToolHandler.js → AssetImportSettingsManageToolHandler.js} +2 -2
- package/src/handlers/asset/{CreateMaterialToolHandler.js → AssetMaterialCreateToolHandler.js} +2 -2
- package/src/handlers/asset/{ModifyMaterialToolHandler.js → AssetMaterialModifyToolHandler.js} +2 -2
- package/src/handlers/asset/{CreatePrefabToolHandler.js → AssetPrefabCreateToolHandler.js} +2 -2
- package/src/handlers/asset/{ExitPrefabModeToolHandler.js → AssetPrefabExitModeToolHandler.js} +2 -2
- package/src/handlers/asset/{InstantiatePrefabToolHandler.js → AssetPrefabInstantiateToolHandler.js} +2 -2
- package/src/handlers/asset/{ModifyPrefabToolHandler.js → AssetPrefabModifyToolHandler.js} +2 -2
- package/src/handlers/asset/{OpenPrefabToolHandler.js → AssetPrefabOpenToolHandler.js} +2 -2
- package/src/handlers/asset/{SavePrefabToolHandler.js → AssetPrefabSaveToolHandler.js} +2 -2
- package/src/handlers/base/BaseToolHandler.js +0 -0
- package/src/handlers/compilation/{GetCompilationStateToolHandler.js → CompilationGetStateToolHandler.js} +2 -2
- package/src/handlers/component/{AddComponentToolHandler.js → ComponentAddToolHandler.js} +2 -2
- package/src/handlers/component/ComponentFieldSetToolHandler.js +419 -0
- package/src/handlers/component/{GetComponentTypesToolHandler.js → ComponentGetTypesToolHandler.js} +2 -2
- package/src/handlers/component/{ListComponentsToolHandler.js → ComponentListToolHandler.js} +2 -2
- package/src/handlers/component/{ModifyComponentToolHandler.js → ComponentModifyToolHandler.js} +2 -2
- package/src/handlers/component/{RemoveComponentToolHandler.js → ComponentRemoveToolHandler.js} +2 -2
- package/src/handlers/console/{ClearConsoleToolHandler.js → ConsoleClearToolHandler.js} +2 -2
- package/src/handlers/console/{ReadConsoleToolHandler.js → ConsoleReadToolHandler.js} +83 -64
- package/src/handlers/editor/{LayerManagementToolHandler.js → EditorLayersManageToolHandler.js} +2 -2
- package/src/handlers/editor/{SelectionToolHandler.js → EditorSelectionManageToolHandler.js} +2 -2
- package/src/handlers/editor/{TagManagementToolHandler.js → EditorTagsManageToolHandler.js} +2 -2
- package/src/handlers/editor/{ToolManagementToolHandler.js → EditorToolsManageToolHandler.js} +2 -2
- package/src/handlers/editor/{WindowManagementToolHandler.js → EditorWindowsManageToolHandler.js} +2 -2
- package/src/handlers/gameobject/{CreateGameObjectToolHandler.js → GameObjectCreateToolHandler.js} +3 -3
- package/src/handlers/gameobject/{DeleteGameObjectToolHandler.js → GameObjectDeleteToolHandler.js} +3 -3
- package/src/handlers/gameobject/{FindGameObjectToolHandler.js → GameObjectFindToolHandler.js} +3 -3
- package/src/handlers/gameobject/{GetHierarchyToolHandler.js → GameObjectGetHierarchyToolHandler.js} +3 -3
- package/src/handlers/gameobject/{ModifyGameObjectToolHandler.js → GameObjectModifyToolHandler.js} +3 -3
- package/src/handlers/index.js +331 -293
- package/src/handlers/input/{AddInputActionToolHandler.js → InputActionAddToolHandler.js} +2 -2
- package/src/handlers/input/{CreateActionMapToolHandler.js → InputActionMapCreateToolHandler.js} +2 -2
- package/src/handlers/input/{RemoveActionMapToolHandler.js → InputActionMapRemoveToolHandler.js} +2 -2
- package/src/handlers/input/{RemoveInputActionToolHandler.js → InputActionRemoveToolHandler.js} +2 -2
- package/src/handlers/input/{AddInputBindingToolHandler.js → InputBindingAddToolHandler.js} +2 -2
- package/src/handlers/input/{CreateCompositeBindingToolHandler.js → InputBindingCompositeCreateToolHandler.js} +2 -2
- package/src/handlers/input/{RemoveAllBindingsToolHandler.js → InputBindingRemoveAllToolHandler.js} +2 -2
- package/src/handlers/input/{RemoveInputBindingToolHandler.js → InputBindingRemoveToolHandler.js} +2 -2
- package/src/handlers/input/{ManageControlSchemesToolHandler.js → InputControlSchemesManageToolHandler.js} +2 -2
- package/src/handlers/input/{GamepadSimulationHandler.js → InputGamepadSimulateToolHandler.js} +3 -3
- package/src/handlers/input/{KeyboardSimulationHandler.js → InputKeyboardSimulateToolHandler.js} +3 -3
- package/src/handlers/input/{MouseSimulationHandler.js → InputMouseSimulateToolHandler.js} +3 -3
- package/src/handlers/input/{InputSystemHandler.js → InputSystemControlToolHandler.js} +4 -4
- package/src/handlers/input/{TouchSimulationHandler.js → InputTouchSimulateToolHandler.js} +3 -3
- package/src/handlers/menu/{ExecuteMenuItemToolHandler.js → MenuItemExecuteToolHandler.js} +2 -2
- package/src/handlers/package/PackageManagerToolHandler.js +1 -1
- package/src/handlers/package/RegistryConfigToolHandler.js +1 -1
- package/src/handlers/playmode/{GetEditorStateToolHandler.js → PlaymodeGetStateToolHandler.js} +3 -3
- package/src/handlers/playmode/{PauseToolHandler.js → PlaymodePauseToolHandler.js} +4 -4
- package/src/handlers/playmode/{PlayToolHandler.js → PlaymodePlayToolHandler.js} +4 -4
- package/src/handlers/playmode/{StopToolHandler.js → PlaymodeStopToolHandler.js} +4 -4
- package/src/handlers/playmode/{WaitForEditorStateToolHandler.js → PlaymodeWaitForStateToolHandler.js} +3 -3
- package/src/handlers/scene/GetSceneInfoToolHandler.js +1 -1
- package/src/handlers/scene/{CreateSceneToolHandler.js → SceneCreateToolHandler.js} +2 -2
- package/src/handlers/scene/{ListScenesToolHandler.js → SceneListToolHandler.js} +2 -2
- package/src/handlers/scene/{LoadSceneToolHandler.js → SceneLoadToolHandler.js} +2 -2
- package/src/handlers/scene/{SaveSceneToolHandler.js → SceneSaveToolHandler.js} +2 -2
- package/src/handlers/screenshot/{AnalyzeScreenshotToolHandler.js → ScreenshotAnalyzeToolHandler.js} +2 -2
- package/src/handlers/screenshot/{CaptureScreenshotToolHandler.js → ScreenshotCaptureToolHandler.js} +2 -2
- package/src/handlers/script/{BuildCodeIndexToolHandler.js → CodeIndexBuildToolHandler.js} +127 -17
- package/src/handlers/script/CodeIndexStatusToolHandler.js +129 -0
- package/src/handlers/script/CodeIndexUpdateToolHandler.js +234 -0
- package/src/handlers/script/{ScriptCreateClassFileToolHandler.js → ScriptCreateClassToolHandler.js} +2 -2
- package/src/handlers/script/ScriptEditSnippetToolHandler.js +272 -0
- package/src/handlers/script/ScriptEditStructuredToolHandler.js +1 -1
- package/src/handlers/script/ScriptPackagesListToolHandler.js +0 -0
- package/src/handlers/script/ScriptReadToolHandler.js +0 -0
- package/src/handlers/script/ScriptRefactorRenameToolHandler.js +0 -0
- package/src/handlers/script/ScriptRefsFindToolHandler.js +0 -0
- package/src/handlers/script/ScriptRemoveSymbolToolHandler.js +0 -0
- package/src/handlers/script/ScriptSearchToolHandler.js +0 -0
- package/src/handlers/script/ScriptSymbolFindToolHandler.js +0 -0
- package/src/handlers/script/ScriptSymbolsGetToolHandler.js +0 -0
- package/src/handlers/settings/{GetProjectSettingsToolHandler.js → SettingsGetToolHandler.js} +2 -2
- package/src/handlers/settings/{UpdateProjectSettingsToolHandler.js → SettingsUpdateToolHandler.js} +2 -2
- package/src/handlers/system/{GetCommandStatsToolHandler.js → SystemGetCommandStatsToolHandler.js} +2 -3
- package/src/handlers/system/{PingToolHandler.js → SystemPingToolHandler.js} +3 -3
- package/src/handlers/system/{RefreshAssetsToolHandler.js → SystemRefreshAssetsToolHandler.js} +3 -3
- package/src/handlers/test/{GetTestStatusToolHandler.js → TestGetStatusToolHandler.js} +2 -2
- package/src/handlers/test/{RunTestsToolHandler.js → TestRunToolHandler.js} +2 -2
- package/src/handlers/ui/{ClickUIElementToolHandler.js → UIClickElementToolHandler.js} +2 -2
- package/src/handlers/ui/{FindUIElementsToolHandler.js → UIFindElementsToolHandler.js} +2 -2
- package/src/handlers/ui/{GetUIElementStateToolHandler.js → UIGetElementStateToolHandler.js} +2 -2
- package/src/handlers/ui/{SetUIElementValueToolHandler.js → UISetElementValueToolHandler.js} +2 -2
- package/src/handlers/ui/{SimulateUIInputToolHandler.js → UISimulateInputToolHandler.js} +2 -2
- package/src/handlers/video/{CaptureVideoForToolHandler.js → VideoCaptureForToolHandler.js} +8 -8
- package/src/handlers/video/{CaptureVideoStartToolHandler.js → VideoCaptureStartToolHandler.js} +2 -2
- package/src/handlers/video/{CaptureVideoStatusToolHandler.js → VideoCaptureStatusToolHandler.js} +2 -2
- package/src/handlers/video/{CaptureVideoStopToolHandler.js → VideoCaptureStopToolHandler.js} +3 -3
- package/src/lsp/CSharpLspUtils.js +95 -14
- package/src/lsp/LspProcessManager.js +0 -0
- package/src/lsp/LspRpcClient.js +14 -0
- package/src/tools/analysis/analyzeSceneContents.js +3 -3
- package/src/tools/analysis/findByComponent.js +3 -3
- package/src/tools/analysis/getAnimatorState.js +6 -6
- package/src/tools/analysis/getComponentValues.js +3 -3
- package/src/tools/analysis/getGameObjectDetails.js +3 -3
- package/src/tools/analysis/getInputActionsState.js +4 -4
- package/src/tools/analysis/getObjectReferences.js +3 -3
- package/src/tools/input/inputActionsEditor.js +18 -18
- package/src/tools/scene/createScene.js +3 -3
- package/src/tools/scene/getSceneInfo.js +3 -3
- package/src/tools/scene/listScenes.js +3 -3
- package/src/tools/scene/loadScene.js +3 -3
- package/src/tools/scene/saveScene.js +3 -3
- package/src/tools/system/ping.js +5 -5
- package/src/tools/video/recordFor.js +2 -2
- package/src/tools/video/recordPlayMode.js +0 -0
- package/src/utils/csharpParse.js +0 -0
- package/src/utils/validators.js +0 -0
- package/src/handlers/script/ScriptIndexStatusToolHandler.js +0 -61
package/src/handlers/index.js
CHANGED
|
@@ -3,257 +3,284 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// Export all handlers
|
|
6
|
-
|
|
6
|
+
// Deprecated Unity-communication handlers removed: ScriptEditPatchToolHandler, ScriptReplacePatternToolHandler
|
|
7
|
+
// Script tool registry
|
|
8
|
+
|
|
9
|
+
// Import all handler classes at once
|
|
10
|
+
import { SystemPingToolHandler } from './system/SystemPingToolHandler.js'
|
|
11
|
+
import { SystemRefreshAssetsToolHandler } from './system/SystemRefreshAssetsToolHandler.js'
|
|
12
|
+
import { SystemGetCommandStatsToolHandler } from './system/SystemGetCommandStatsToolHandler.js'
|
|
13
|
+
import { GameObjectCreateToolHandler } from './gameobject/GameObjectCreateToolHandler.js'
|
|
14
|
+
import { GameObjectFindToolHandler } from './gameobject/GameObjectFindToolHandler.js'
|
|
15
|
+
import { GameObjectModifyToolHandler } from './gameobject/GameObjectModifyToolHandler.js'
|
|
16
|
+
import { GameObjectDeleteToolHandler } from './gameobject/GameObjectDeleteToolHandler.js'
|
|
17
|
+
import { GameObjectGetHierarchyToolHandler } from './gameobject/GameObjectGetHierarchyToolHandler.js'
|
|
18
|
+
import { SceneCreateToolHandler } from './scene/SceneCreateToolHandler.js'
|
|
19
|
+
import { SceneLoadToolHandler } from './scene/SceneLoadToolHandler.js'
|
|
20
|
+
import { SceneSaveToolHandler } from './scene/SceneSaveToolHandler.js'
|
|
21
|
+
import { SceneListToolHandler } from './scene/SceneListToolHandler.js'
|
|
22
|
+
import { GetSceneInfoToolHandler } from './scene/GetSceneInfoToolHandler.js'
|
|
23
|
+
import { GetGameObjectDetailsToolHandler } from './analysis/GetGameObjectDetailsToolHandler.js'
|
|
24
|
+
import { AnalyzeSceneContentsToolHandler } from './analysis/AnalyzeSceneContentsToolHandler.js'
|
|
25
|
+
import { GetComponentValuesToolHandler } from './analysis/GetComponentValuesToolHandler.js'
|
|
26
|
+
import { FindByComponentToolHandler } from './analysis/FindByComponentToolHandler.js'
|
|
27
|
+
import { GetObjectReferencesToolHandler } from './analysis/GetObjectReferencesToolHandler.js'
|
|
28
|
+
import {
|
|
29
|
+
GetAnimatorStateToolHandler,
|
|
30
|
+
GetAnimatorRuntimeInfoToolHandler
|
|
31
|
+
} from './analysis/GetAnimatorStateToolHandler.js'
|
|
32
|
+
import {
|
|
33
|
+
GetInputActionsStateToolHandler,
|
|
34
|
+
AnalyzeInputActionsAssetToolHandler
|
|
35
|
+
} from './analysis/GetInputActionsStateToolHandler.js'
|
|
36
|
+
import { PlaymodePlayToolHandler } from './playmode/PlaymodePlayToolHandler.js'
|
|
37
|
+
import { PlaymodePauseToolHandler } from './playmode/PlaymodePauseToolHandler.js'
|
|
38
|
+
import { PlaymodeStopToolHandler } from './playmode/PlaymodeStopToolHandler.js'
|
|
39
|
+
import { PlaymodeGetStateToolHandler } from './playmode/PlaymodeGetStateToolHandler.js'
|
|
40
|
+
import { PlaymodeWaitForStateToolHandler } from './playmode/PlaymodeWaitForStateToolHandler.js'
|
|
41
|
+
import { UIFindElementsToolHandler } from './ui/UIFindElementsToolHandler.js'
|
|
42
|
+
import { UIClickElementToolHandler } from './ui/UIClickElementToolHandler.js'
|
|
43
|
+
import { UIGetElementStateToolHandler } from './ui/UIGetElementStateToolHandler.js'
|
|
44
|
+
import { UISetElementValueToolHandler } from './ui/UISetElementValueToolHandler.js'
|
|
45
|
+
import { UISimulateInputToolHandler } from './ui/UISimulateInputToolHandler.js'
|
|
46
|
+
import { InputSystemControlToolHandler } from './input/InputSystemControlToolHandler.js'
|
|
47
|
+
import { InputKeyboardSimulateToolHandler } from './input/InputKeyboardSimulateToolHandler.js'
|
|
48
|
+
import { InputMouseSimulateToolHandler } from './input/InputMouseSimulateToolHandler.js'
|
|
49
|
+
import { InputGamepadSimulateToolHandler } from './input/InputGamepadSimulateToolHandler.js'
|
|
50
|
+
import { InputTouchSimulateToolHandler } from './input/InputTouchSimulateToolHandler.js'
|
|
51
|
+
import { InputActionMapCreateToolHandler } from './input/InputActionMapCreateToolHandler.js'
|
|
52
|
+
import { InputActionMapRemoveToolHandler } from './input/InputActionMapRemoveToolHandler.js'
|
|
53
|
+
import { InputActionAddToolHandler } from './input/InputActionAddToolHandler.js'
|
|
54
|
+
import { InputActionRemoveToolHandler } from './input/InputActionRemoveToolHandler.js'
|
|
55
|
+
import { InputBindingAddToolHandler } from './input/InputBindingAddToolHandler.js'
|
|
56
|
+
import { InputBindingRemoveToolHandler } from './input/InputBindingRemoveToolHandler.js'
|
|
57
|
+
import { InputBindingRemoveAllToolHandler } from './input/InputBindingRemoveAllToolHandler.js'
|
|
58
|
+
import { InputBindingCompositeCreateToolHandler } from './input/InputBindingCompositeCreateToolHandler.js'
|
|
59
|
+
import { InputControlSchemesManageToolHandler } from './input/InputControlSchemesManageToolHandler.js'
|
|
60
|
+
import { AssetPrefabCreateToolHandler } from './asset/AssetPrefabCreateToolHandler.js'
|
|
61
|
+
import { AssetPrefabModifyToolHandler } from './asset/AssetPrefabModifyToolHandler.js'
|
|
62
|
+
import { AssetPrefabInstantiateToolHandler } from './asset/AssetPrefabInstantiateToolHandler.js'
|
|
63
|
+
import { AssetMaterialCreateToolHandler } from './asset/AssetMaterialCreateToolHandler.js'
|
|
64
|
+
import { AssetMaterialModifyToolHandler } from './asset/AssetMaterialModifyToolHandler.js'
|
|
65
|
+
import { AssetPrefabOpenToolHandler } from './asset/AssetPrefabOpenToolHandler.js'
|
|
66
|
+
import { AssetPrefabExitModeToolHandler } from './asset/AssetPrefabExitModeToolHandler.js'
|
|
67
|
+
import { AssetPrefabSaveToolHandler } from './asset/AssetPrefabSaveToolHandler.js'
|
|
68
|
+
import { AssetImportSettingsManageToolHandler } from './asset/AssetImportSettingsManageToolHandler.js'
|
|
69
|
+
import { AssetDatabaseManageToolHandler } from './asset/AssetDatabaseManageToolHandler.js'
|
|
70
|
+
import { AssetDependencyAnalyzeToolHandler } from './asset/AssetDependencyAnalyzeToolHandler.js'
|
|
71
|
+
import AddressablesManageToolHandler from './addressables/AddressablesManageToolHandler.js'
|
|
72
|
+
import AddressablesBuildToolHandler from './addressables/AddressablesBuildToolHandler.js'
|
|
73
|
+
import AddressablesAnalyzeToolHandler from './addressables/AddressablesAnalyzeToolHandler.js'
|
|
74
|
+
import { MenuItemExecuteToolHandler } from './menu/MenuItemExecuteToolHandler.js'
|
|
75
|
+
import { ConsoleClearToolHandler } from './console/ConsoleClearToolHandler.js'
|
|
76
|
+
import { ConsoleReadToolHandler } from './console/ConsoleReadToolHandler.js'
|
|
77
|
+
import { ScreenshotCaptureToolHandler } from './screenshot/ScreenshotCaptureToolHandler.js'
|
|
78
|
+
import { ScreenshotAnalyzeToolHandler } from './screenshot/ScreenshotAnalyzeToolHandler.js'
|
|
79
|
+
import { VideoCaptureStartToolHandler } from './video/VideoCaptureStartToolHandler.js'
|
|
80
|
+
import { VideoCaptureStopToolHandler } from './video/VideoCaptureStopToolHandler.js'
|
|
81
|
+
import { VideoCaptureStatusToolHandler } from './video/VideoCaptureStatusToolHandler.js'
|
|
82
|
+
import { VideoCaptureForToolHandler } from './video/VideoCaptureForToolHandler.js'
|
|
83
|
+
import { ComponentAddToolHandler } from './component/ComponentAddToolHandler.js'
|
|
84
|
+
import { ComponentRemoveToolHandler } from './component/ComponentRemoveToolHandler.js'
|
|
85
|
+
import { ComponentModifyToolHandler } from './component/ComponentModifyToolHandler.js'
|
|
86
|
+
import { ComponentListToolHandler } from './component/ComponentListToolHandler.js'
|
|
87
|
+
import { ComponentGetTypesToolHandler } from './component/ComponentGetTypesToolHandler.js'
|
|
88
|
+
import { ComponentFieldSetToolHandler } from './component/ComponentFieldSetToolHandler.js'
|
|
89
|
+
import { CompilationGetStateToolHandler } from './compilation/CompilationGetStateToolHandler.js'
|
|
90
|
+
import { TestRunToolHandler } from './test/TestRunToolHandler.js'
|
|
91
|
+
import { TestGetStatusToolHandler } from './test/TestGetStatusToolHandler.js'
|
|
92
|
+
import { EditorTagsManageToolHandler } from './editor/EditorTagsManageToolHandler.js'
|
|
93
|
+
import { EditorLayersManageToolHandler } from './editor/EditorLayersManageToolHandler.js'
|
|
94
|
+
import { EditorSelectionManageToolHandler } from './editor/EditorSelectionManageToolHandler.js'
|
|
95
|
+
import { EditorWindowsManageToolHandler } from './editor/EditorWindowsManageToolHandler.js'
|
|
96
|
+
import { EditorToolsManageToolHandler } from './editor/EditorToolsManageToolHandler.js'
|
|
97
|
+
import { SettingsGetToolHandler } from './settings/SettingsGetToolHandler.js'
|
|
98
|
+
import { SettingsUpdateToolHandler } from './settings/SettingsUpdateToolHandler.js'
|
|
99
|
+
import PackageManagerToolHandler from './package/PackageManagerToolHandler.js'
|
|
100
|
+
import RegistryConfigToolHandler from './package/RegistryConfigToolHandler.js'
|
|
101
|
+
import { ScriptPackagesListToolHandler } from './script/ScriptPackagesListToolHandler.js'
|
|
102
|
+
import { ScriptReadToolHandler } from './script/ScriptReadToolHandler.js'
|
|
103
|
+
import { ScriptSearchToolHandler } from './script/ScriptSearchToolHandler.js'
|
|
104
|
+
import { ScriptEditStructuredToolHandler } from './script/ScriptEditStructuredToolHandler.js'
|
|
105
|
+
import { ScriptEditSnippetToolHandler } from './script/ScriptEditSnippetToolHandler.js'
|
|
106
|
+
import { ScriptSymbolsGetToolHandler } from './script/ScriptSymbolsGetToolHandler.js'
|
|
107
|
+
import { ScriptSymbolFindToolHandler } from './script/ScriptSymbolFindToolHandler.js'
|
|
108
|
+
import { ScriptRefsFindToolHandler } from './script/ScriptRefsFindToolHandler.js'
|
|
109
|
+
import { CodeIndexStatusToolHandler } from './script/CodeIndexStatusToolHandler.js'
|
|
110
|
+
import { ScriptRefactorRenameToolHandler } from './script/ScriptRefactorRenameToolHandler.js'
|
|
111
|
+
import { ScriptCreateClassToolHandler } from './script/ScriptCreateClassToolHandler.js'
|
|
112
|
+
import { ScriptRemoveSymbolToolHandler } from './script/ScriptRemoveSymbolToolHandler.js'
|
|
113
|
+
import { CodeIndexUpdateToolHandler } from './script/CodeIndexUpdateToolHandler.js'
|
|
114
|
+
import { CodeIndexBuildToolHandler } from './script/CodeIndexBuildToolHandler.js'
|
|
115
|
+
export { BaseToolHandler } from './base/BaseToolHandler.js'
|
|
7
116
|
|
|
8
117
|
// System handlers
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
118
|
+
export { SystemPingToolHandler } from './system/SystemPingToolHandler.js'
|
|
119
|
+
export { SystemRefreshAssetsToolHandler } from './system/SystemRefreshAssetsToolHandler.js'
|
|
120
|
+
export { SystemGetCommandStatsToolHandler } from './system/SystemGetCommandStatsToolHandler.js'
|
|
12
121
|
|
|
13
122
|
// GameObject handlers
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
123
|
+
export { GameObjectCreateToolHandler } from './gameobject/GameObjectCreateToolHandler.js'
|
|
124
|
+
export { GameObjectFindToolHandler } from './gameobject/GameObjectFindToolHandler.js'
|
|
125
|
+
export { GameObjectModifyToolHandler } from './gameobject/GameObjectModifyToolHandler.js'
|
|
126
|
+
export { GameObjectDeleteToolHandler } from './gameobject/GameObjectDeleteToolHandler.js'
|
|
127
|
+
export { GameObjectGetHierarchyToolHandler } from './gameobject/GameObjectGetHierarchyToolHandler.js'
|
|
19
128
|
|
|
20
129
|
// Scene handlers
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export { GetSceneInfoToolHandler } from './scene/GetSceneInfoToolHandler.js'
|
|
130
|
+
export { SceneCreateToolHandler } from './scene/SceneCreateToolHandler.js'
|
|
131
|
+
export { SceneLoadToolHandler } from './scene/SceneLoadToolHandler.js'
|
|
132
|
+
export { SceneSaveToolHandler } from './scene/SceneSaveToolHandler.js'
|
|
133
|
+
export { SceneListToolHandler } from './scene/SceneListToolHandler.js'
|
|
134
|
+
export { GetSceneInfoToolHandler } from './scene/GetSceneInfoToolHandler.js'
|
|
26
135
|
|
|
27
136
|
// Analysis handlers
|
|
28
|
-
export { GetGameObjectDetailsToolHandler } from './analysis/GetGameObjectDetailsToolHandler.js'
|
|
29
|
-
export { AnalyzeSceneContentsToolHandler } from './analysis/AnalyzeSceneContentsToolHandler.js'
|
|
30
|
-
export { GetComponentValuesToolHandler } from './analysis/GetComponentValuesToolHandler.js'
|
|
31
|
-
export { FindByComponentToolHandler } from './analysis/FindByComponentToolHandler.js'
|
|
32
|
-
export { GetObjectReferencesToolHandler } from './analysis/GetObjectReferencesToolHandler.js'
|
|
33
|
-
export {
|
|
34
|
-
|
|
137
|
+
export { GetGameObjectDetailsToolHandler } from './analysis/GetGameObjectDetailsToolHandler.js'
|
|
138
|
+
export { AnalyzeSceneContentsToolHandler } from './analysis/AnalyzeSceneContentsToolHandler.js'
|
|
139
|
+
export { GetComponentValuesToolHandler } from './analysis/GetComponentValuesToolHandler.js'
|
|
140
|
+
export { FindByComponentToolHandler } from './analysis/FindByComponentToolHandler.js'
|
|
141
|
+
export { GetObjectReferencesToolHandler } from './analysis/GetObjectReferencesToolHandler.js'
|
|
142
|
+
export {
|
|
143
|
+
GetAnimatorStateToolHandler,
|
|
144
|
+
GetAnimatorRuntimeInfoToolHandler
|
|
145
|
+
} from './analysis/GetAnimatorStateToolHandler.js'
|
|
146
|
+
export {
|
|
147
|
+
GetInputActionsStateToolHandler,
|
|
148
|
+
AnalyzeInputActionsAssetToolHandler
|
|
149
|
+
} from './analysis/GetInputActionsStateToolHandler.js'
|
|
35
150
|
|
|
36
151
|
// PlayMode handlers
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
152
|
+
export { PlaymodePlayToolHandler } from './playmode/PlaymodePlayToolHandler.js'
|
|
153
|
+
export { PlaymodePauseToolHandler } from './playmode/PlaymodePauseToolHandler.js'
|
|
154
|
+
export { PlaymodeStopToolHandler } from './playmode/PlaymodeStopToolHandler.js'
|
|
155
|
+
export { PlaymodeGetStateToolHandler } from './playmode/PlaymodeGetStateToolHandler.js'
|
|
156
|
+
export { PlaymodeWaitForStateToolHandler } from './playmode/PlaymodeWaitForStateToolHandler.js'
|
|
42
157
|
|
|
43
158
|
// UI handlers
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
159
|
+
export { UIFindElementsToolHandler } from './ui/UIFindElementsToolHandler.js'
|
|
160
|
+
export { UIClickElementToolHandler } from './ui/UIClickElementToolHandler.js'
|
|
161
|
+
export { UIGetElementStateToolHandler } from './ui/UIGetElementStateToolHandler.js'
|
|
162
|
+
export { UISetElementValueToolHandler } from './ui/UISetElementValueToolHandler.js'
|
|
163
|
+
export { UISimulateInputToolHandler } from './ui/UISimulateInputToolHandler.js'
|
|
49
164
|
|
|
50
165
|
// Input System handlers
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
166
|
+
export { InputSystemControlToolHandler } from './input/InputSystemControlToolHandler.js'
|
|
167
|
+
export { InputKeyboardSimulateToolHandler } from './input/InputKeyboardSimulateToolHandler.js'
|
|
168
|
+
export { InputMouseSimulateToolHandler } from './input/InputMouseSimulateToolHandler.js'
|
|
169
|
+
export { InputGamepadSimulateToolHandler } from './input/InputGamepadSimulateToolHandler.js'
|
|
170
|
+
export { InputTouchSimulateToolHandler } from './input/InputTouchSimulateToolHandler.js'
|
|
171
|
+
export { InputActionMapCreateToolHandler } from './input/InputActionMapCreateToolHandler.js'
|
|
172
|
+
export { InputActionMapRemoveToolHandler } from './input/InputActionMapRemoveToolHandler.js'
|
|
173
|
+
export { InputActionAddToolHandler } from './input/InputActionAddToolHandler.js'
|
|
174
|
+
export { InputActionRemoveToolHandler } from './input/InputActionRemoveToolHandler.js'
|
|
175
|
+
export { InputBindingAddToolHandler } from './input/InputBindingAddToolHandler.js'
|
|
176
|
+
export { InputBindingRemoveToolHandler } from './input/InputBindingRemoveToolHandler.js'
|
|
177
|
+
export { InputBindingRemoveAllToolHandler } from './input/InputBindingRemoveAllToolHandler.js'
|
|
178
|
+
export { InputBindingCompositeCreateToolHandler } from './input/InputBindingCompositeCreateToolHandler.js'
|
|
179
|
+
export { InputControlSchemesManageToolHandler } from './input/InputControlSchemesManageToolHandler.js'
|
|
65
180
|
|
|
66
181
|
// Asset handlers
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export {
|
|
182
|
+
export { AssetPrefabCreateToolHandler } from './asset/AssetPrefabCreateToolHandler.js'
|
|
183
|
+
export { AssetPrefabModifyToolHandler } from './asset/AssetPrefabModifyToolHandler.js'
|
|
184
|
+
export { AssetPrefabInstantiateToolHandler } from './asset/AssetPrefabInstantiateToolHandler.js'
|
|
185
|
+
export { AssetMaterialCreateToolHandler } from './asset/AssetMaterialCreateToolHandler.js'
|
|
186
|
+
export { AssetMaterialModifyToolHandler } from './asset/AssetMaterialModifyToolHandler.js'
|
|
187
|
+
export { AssetPrefabOpenToolHandler } from './asset/AssetPrefabOpenToolHandler.js'
|
|
188
|
+
export { AssetPrefabExitModeToolHandler } from './asset/AssetPrefabExitModeToolHandler.js'
|
|
189
|
+
export { AssetPrefabSaveToolHandler } from './asset/AssetPrefabSaveToolHandler.js'
|
|
190
|
+
export { AssetImportSettingsManageToolHandler } from './asset/AssetImportSettingsManageToolHandler.js'
|
|
191
|
+
export { AssetDatabaseManageToolHandler } from './asset/AssetDatabaseManageToolHandler.js'
|
|
192
|
+
export { AssetDependencyAnalyzeToolHandler } from './asset/AssetDependencyAnalyzeToolHandler.js'
|
|
193
|
+
|
|
194
|
+
// Addressables handlers
|
|
195
|
+
export { default as AddressablesManageToolHandler } from './addressables/AddressablesManageToolHandler.js'
|
|
196
|
+
export { default as AddressablesBuildToolHandler } from './addressables/AddressablesBuildToolHandler.js'
|
|
197
|
+
export { default as AddressablesAnalyzeToolHandler } from './addressables/AddressablesAnalyzeToolHandler.js'
|
|
78
198
|
|
|
79
199
|
// Menu handlers
|
|
80
|
-
export {
|
|
200
|
+
export { MenuItemExecuteToolHandler } from './menu/MenuItemExecuteToolHandler.js'
|
|
81
201
|
|
|
82
202
|
// Console handlers
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
203
|
+
export { ConsoleClearToolHandler } from './console/ConsoleClearToolHandler.js'
|
|
204
|
+
export { ConsoleReadToolHandler } from './console/ConsoleReadToolHandler.js'
|
|
85
205
|
|
|
86
206
|
// Screenshot handlers
|
|
87
|
-
export {
|
|
88
|
-
export {
|
|
207
|
+
export { ScreenshotCaptureToolHandler } from './screenshot/ScreenshotCaptureToolHandler.js'
|
|
208
|
+
export { ScreenshotAnalyzeToolHandler } from './screenshot/ScreenshotAnalyzeToolHandler.js'
|
|
89
209
|
|
|
90
210
|
// Video handlers
|
|
91
|
-
export {
|
|
92
|
-
export {
|
|
93
|
-
export {
|
|
94
|
-
export {
|
|
211
|
+
export { VideoCaptureStartToolHandler } from './video/VideoCaptureStartToolHandler.js'
|
|
212
|
+
export { VideoCaptureStopToolHandler } from './video/VideoCaptureStopToolHandler.js'
|
|
213
|
+
export { VideoCaptureStatusToolHandler } from './video/VideoCaptureStatusToolHandler.js'
|
|
214
|
+
export { VideoCaptureForToolHandler } from './video/VideoCaptureForToolHandler.js'
|
|
95
215
|
|
|
96
216
|
// Component handlers
|
|
97
|
-
export {
|
|
98
|
-
export {
|
|
99
|
-
export {
|
|
100
|
-
export {
|
|
101
|
-
export {
|
|
217
|
+
export { ComponentAddToolHandler } from './component/ComponentAddToolHandler.js'
|
|
218
|
+
export { ComponentRemoveToolHandler } from './component/ComponentRemoveToolHandler.js'
|
|
219
|
+
export { ComponentModifyToolHandler } from './component/ComponentModifyToolHandler.js'
|
|
220
|
+
export { ComponentListToolHandler } from './component/ComponentListToolHandler.js'
|
|
221
|
+
export { ComponentGetTypesToolHandler } from './component/ComponentGetTypesToolHandler.js'
|
|
222
|
+
export { ComponentFieldSetToolHandler } from './component/ComponentFieldSetToolHandler.js'
|
|
102
223
|
|
|
103
224
|
// Compilation handlers
|
|
104
|
-
export {
|
|
225
|
+
export { CompilationGetStateToolHandler } from './compilation/CompilationGetStateToolHandler.js'
|
|
105
226
|
|
|
106
227
|
// Test handlers
|
|
107
|
-
export {
|
|
108
|
-
export {
|
|
228
|
+
export { TestRunToolHandler } from './test/TestRunToolHandler.js'
|
|
229
|
+
export { TestGetStatusToolHandler } from './test/TestGetStatusToolHandler.js'
|
|
109
230
|
|
|
110
231
|
// Editor control handlers
|
|
111
|
-
export {
|
|
112
|
-
export {
|
|
113
|
-
export {
|
|
114
|
-
export {
|
|
115
|
-
export {
|
|
232
|
+
export { EditorTagsManageToolHandler } from './editor/EditorTagsManageToolHandler.js'
|
|
233
|
+
export { EditorLayersManageToolHandler } from './editor/EditorLayersManageToolHandler.js'
|
|
234
|
+
export { EditorSelectionManageToolHandler } from './editor/EditorSelectionManageToolHandler.js'
|
|
235
|
+
export { EditorWindowsManageToolHandler } from './editor/EditorWindowsManageToolHandler.js'
|
|
236
|
+
export { EditorToolsManageToolHandler } from './editor/EditorToolsManageToolHandler.js'
|
|
116
237
|
|
|
117
238
|
// Settings handlers
|
|
118
|
-
export {
|
|
119
|
-
export {
|
|
239
|
+
export { SettingsGetToolHandler } from './settings/SettingsGetToolHandler.js'
|
|
240
|
+
export { SettingsUpdateToolHandler } from './settings/SettingsUpdateToolHandler.js'
|
|
120
241
|
|
|
121
242
|
// Package management handlers
|
|
122
|
-
export { default as PackageManagerToolHandler } from './package/PackageManagerToolHandler.js'
|
|
123
|
-
export { default as RegistryConfigToolHandler } from './package/RegistryConfigToolHandler.js'
|
|
243
|
+
export { default as PackageManagerToolHandler } from './package/PackageManagerToolHandler.js'
|
|
244
|
+
export { default as RegistryConfigToolHandler } from './package/RegistryConfigToolHandler.js'
|
|
124
245
|
|
|
125
246
|
// Script handlers
|
|
126
|
-
export { ScriptPackagesListToolHandler } from './script/ScriptPackagesListToolHandler.js'
|
|
127
|
-
export { ScriptReadToolHandler } from './script/ScriptReadToolHandler.js'
|
|
128
|
-
export { ScriptSearchToolHandler } from './script/ScriptSearchToolHandler.js'
|
|
129
|
-
export { ScriptEditStructuredToolHandler } from './script/ScriptEditStructuredToolHandler.js'
|
|
130
|
-
export {
|
|
131
|
-
export {
|
|
132
|
-
export {
|
|
133
|
-
export {
|
|
134
|
-
export {
|
|
135
|
-
export {
|
|
136
|
-
export {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
// Import all handler classes at once
|
|
141
|
-
import { PingToolHandler } from './system/PingToolHandler.js';
|
|
142
|
-
import { RefreshAssetsToolHandler } from './system/RefreshAssetsToolHandler.js';
|
|
143
|
-
import { GetCommandStatsToolHandler } from './system/GetCommandStatsToolHandler.js';
|
|
144
|
-
import { CreateGameObjectToolHandler } from './gameobject/CreateGameObjectToolHandler.js';
|
|
145
|
-
import { FindGameObjectToolHandler } from './gameobject/FindGameObjectToolHandler.js';
|
|
146
|
-
import { ModifyGameObjectToolHandler } from './gameobject/ModifyGameObjectToolHandler.js';
|
|
147
|
-
import { DeleteGameObjectToolHandler } from './gameobject/DeleteGameObjectToolHandler.js';
|
|
148
|
-
import { GetHierarchyToolHandler } from './gameobject/GetHierarchyToolHandler.js';
|
|
149
|
-
import { CreateSceneToolHandler } from './scene/CreateSceneToolHandler.js';
|
|
150
|
-
import { LoadSceneToolHandler } from './scene/LoadSceneToolHandler.js';
|
|
151
|
-
import { SaveSceneToolHandler } from './scene/SaveSceneToolHandler.js';
|
|
152
|
-
import { ListScenesToolHandler } from './scene/ListScenesToolHandler.js';
|
|
153
|
-
import { GetSceneInfoToolHandler } from './scene/GetSceneInfoToolHandler.js';
|
|
154
|
-
import { GetGameObjectDetailsToolHandler } from './analysis/GetGameObjectDetailsToolHandler.js';
|
|
155
|
-
import { AnalyzeSceneContentsToolHandler } from './analysis/AnalyzeSceneContentsToolHandler.js';
|
|
156
|
-
import { GetComponentValuesToolHandler } from './analysis/GetComponentValuesToolHandler.js';
|
|
157
|
-
import { FindByComponentToolHandler } from './analysis/FindByComponentToolHandler.js';
|
|
158
|
-
import { GetObjectReferencesToolHandler } from './analysis/GetObjectReferencesToolHandler.js';
|
|
159
|
-
import { GetAnimatorStateToolHandler, GetAnimatorRuntimeInfoToolHandler } from './analysis/GetAnimatorStateToolHandler.js';
|
|
160
|
-
import { GetInputActionsStateToolHandler, AnalyzeInputActionsAssetToolHandler } from './analysis/GetInputActionsStateToolHandler.js';
|
|
161
|
-
import { PlayToolHandler } from './playmode/PlayToolHandler.js';
|
|
162
|
-
import { PauseToolHandler } from './playmode/PauseToolHandler.js';
|
|
163
|
-
import { StopToolHandler } from './playmode/StopToolHandler.js';
|
|
164
|
-
import { GetEditorStateToolHandler } from './playmode/GetEditorStateToolHandler.js';
|
|
165
|
-
import { WaitForEditorStateToolHandler } from './playmode/WaitForEditorStateToolHandler.js';
|
|
166
|
-
import { FindUIElementsToolHandler } from './ui/FindUIElementsToolHandler.js';
|
|
167
|
-
import { ClickUIElementToolHandler } from './ui/ClickUIElementToolHandler.js';
|
|
168
|
-
import { GetUIElementStateToolHandler } from './ui/GetUIElementStateToolHandler.js';
|
|
169
|
-
import { SetUIElementValueToolHandler } from './ui/SetUIElementValueToolHandler.js';
|
|
170
|
-
import { SimulateUIInputToolHandler } from './ui/SimulateUIInputToolHandler.js';
|
|
171
|
-
import { InputSystemHandler } from './input/InputSystemHandler.js';
|
|
172
|
-
import { KeyboardSimulationHandler } from './input/KeyboardSimulationHandler.js';
|
|
173
|
-
import { MouseSimulationHandler } from './input/MouseSimulationHandler.js';
|
|
174
|
-
import { GamepadSimulationHandler } from './input/GamepadSimulationHandler.js';
|
|
175
|
-
import { TouchSimulationHandler } from './input/TouchSimulationHandler.js';
|
|
176
|
-
import { CreateActionMapToolHandler } from './input/CreateActionMapToolHandler.js';
|
|
177
|
-
import { RemoveActionMapToolHandler } from './input/RemoveActionMapToolHandler.js';
|
|
178
|
-
import { AddInputActionToolHandler } from './input/AddInputActionToolHandler.js';
|
|
179
|
-
import { RemoveInputActionToolHandler } from './input/RemoveInputActionToolHandler.js';
|
|
180
|
-
import { AddInputBindingToolHandler } from './input/AddInputBindingToolHandler.js';
|
|
181
|
-
import { RemoveInputBindingToolHandler } from './input/RemoveInputBindingToolHandler.js';
|
|
182
|
-
import { RemoveAllBindingsToolHandler } from './input/RemoveAllBindingsToolHandler.js';
|
|
183
|
-
import { CreateCompositeBindingToolHandler } from './input/CreateCompositeBindingToolHandler.js';
|
|
184
|
-
import { ManageControlSchemesToolHandler } from './input/ManageControlSchemesToolHandler.js';
|
|
185
|
-
import { CreatePrefabToolHandler } from './asset/CreatePrefabToolHandler.js';
|
|
186
|
-
import { ModifyPrefabToolHandler } from './asset/ModifyPrefabToolHandler.js';
|
|
187
|
-
import { InstantiatePrefabToolHandler } from './asset/InstantiatePrefabToolHandler.js';
|
|
188
|
-
import { CreateMaterialToolHandler } from './asset/CreateMaterialToolHandler.js';
|
|
189
|
-
import { ModifyMaterialToolHandler } from './asset/ModifyMaterialToolHandler.js';
|
|
190
|
-
import { OpenPrefabToolHandler } from './asset/OpenPrefabToolHandler.js';
|
|
191
|
-
import { ExitPrefabModeToolHandler } from './asset/ExitPrefabModeToolHandler.js';
|
|
192
|
-
import { SavePrefabToolHandler } from './asset/SavePrefabToolHandler.js';
|
|
193
|
-
import { AssetImportSettingsToolHandler } from './asset/AssetImportSettingsToolHandler.js';
|
|
194
|
-
import { AssetDatabaseToolHandler } from './asset/AssetDatabaseToolHandler.js';
|
|
195
|
-
import { AssetDependencyToolHandler } from './asset/AssetDependencyToolHandler.js';
|
|
196
|
-
import { ExecuteMenuItemToolHandler } from './menu/ExecuteMenuItemToolHandler.js';
|
|
197
|
-
import { ClearConsoleToolHandler } from './console/ClearConsoleToolHandler.js';
|
|
198
|
-
import { ReadConsoleToolHandler } from './console/ReadConsoleToolHandler.js';
|
|
199
|
-
import { CaptureScreenshotToolHandler } from './screenshot/CaptureScreenshotToolHandler.js';
|
|
200
|
-
import { AnalyzeScreenshotToolHandler } from './screenshot/AnalyzeScreenshotToolHandler.js';
|
|
201
|
-
import { CaptureVideoStartToolHandler } from './video/CaptureVideoStartToolHandler.js';
|
|
202
|
-
import { CaptureVideoStopToolHandler } from './video/CaptureVideoStopToolHandler.js';
|
|
203
|
-
import { CaptureVideoStatusToolHandler } from './video/CaptureVideoStatusToolHandler.js';
|
|
204
|
-
import { CaptureVideoForToolHandler } from './video/CaptureVideoForToolHandler.js';
|
|
205
|
-
import { AddComponentToolHandler } from './component/AddComponentToolHandler.js';
|
|
206
|
-
import { RemoveComponentToolHandler } from './component/RemoveComponentToolHandler.js';
|
|
207
|
-
import { ModifyComponentToolHandler } from './component/ModifyComponentToolHandler.js';
|
|
208
|
-
import { ListComponentsToolHandler } from './component/ListComponentsToolHandler.js';
|
|
209
|
-
import { GetComponentTypesToolHandler } from './component/GetComponentTypesToolHandler.js';
|
|
210
|
-
import { GetCompilationStateToolHandler } from './compilation/GetCompilationStateToolHandler.js';
|
|
211
|
-
import { RunTestsToolHandler } from './test/RunTestsToolHandler.js';
|
|
212
|
-
import { GetTestStatusToolHandler } from './test/GetTestStatusToolHandler.js';
|
|
213
|
-
import { TagManagementToolHandler } from './editor/TagManagementToolHandler.js';
|
|
214
|
-
import { LayerManagementToolHandler } from './editor/LayerManagementToolHandler.js';
|
|
215
|
-
import { SelectionToolHandler } from './editor/SelectionToolHandler.js';
|
|
216
|
-
import { WindowManagementToolHandler } from './editor/WindowManagementToolHandler.js';
|
|
217
|
-
import { ToolManagementToolHandler } from './editor/ToolManagementToolHandler.js';
|
|
218
|
-
import { GetProjectSettingsToolHandler } from './settings/GetProjectSettingsToolHandler.js';
|
|
219
|
-
import { UpdateProjectSettingsToolHandler } from './settings/UpdateProjectSettingsToolHandler.js';
|
|
220
|
-
import PackageManagerToolHandler from './package/PackageManagerToolHandler.js';
|
|
221
|
-
import RegistryConfigToolHandler from './package/RegistryConfigToolHandler.js';
|
|
222
|
-
import { ScriptPackagesListToolHandler } from './script/ScriptPackagesListToolHandler.js';
|
|
223
|
-
import { ScriptReadToolHandler } from './script/ScriptReadToolHandler.js';
|
|
224
|
-
import { ScriptSearchToolHandler } from './script/ScriptSearchToolHandler.js';
|
|
225
|
-
import { ScriptEditStructuredToolHandler } from './script/ScriptEditStructuredToolHandler.js';
|
|
226
|
-
import { ScriptSymbolsGetToolHandler } from './script/ScriptSymbolsGetToolHandler.js';
|
|
227
|
-
import { ScriptSymbolFindToolHandler } from './script/ScriptSymbolFindToolHandler.js';
|
|
228
|
-
import { ScriptRefsFindToolHandler } from './script/ScriptRefsFindToolHandler.js';
|
|
229
|
-
import { ScriptIndexStatusToolHandler } from './script/ScriptIndexStatusToolHandler.js';
|
|
230
|
-
import { ScriptRefactorRenameToolHandler } from './script/ScriptRefactorRenameToolHandler.js';
|
|
231
|
-
import { ScriptCreateClassFileToolHandler } from './script/ScriptCreateClassFileToolHandler.js';
|
|
232
|
-
import { ScriptRemoveSymbolToolHandler } from './script/ScriptRemoveSymbolToolHandler.js';
|
|
233
|
-
import { BuildCodeIndexToolHandler } from './script/BuildCodeIndexToolHandler.js';
|
|
247
|
+
export { ScriptPackagesListToolHandler } from './script/ScriptPackagesListToolHandler.js'
|
|
248
|
+
export { ScriptReadToolHandler } from './script/ScriptReadToolHandler.js'
|
|
249
|
+
export { ScriptSearchToolHandler } from './script/ScriptSearchToolHandler.js'
|
|
250
|
+
export { ScriptEditStructuredToolHandler } from './script/ScriptEditStructuredToolHandler.js'
|
|
251
|
+
export { ScriptEditSnippetToolHandler } from './script/ScriptEditSnippetToolHandler.js'
|
|
252
|
+
export { ScriptRefsFindToolHandler } from './script/ScriptRefsFindToolHandler.js'
|
|
253
|
+
export { ScriptSymbolFindToolHandler } from './script/ScriptSymbolFindToolHandler.js'
|
|
254
|
+
export { ScriptSymbolsGetToolHandler } from './script/ScriptSymbolsGetToolHandler.js'
|
|
255
|
+
export { CodeIndexStatusToolHandler } from './script/CodeIndexStatusToolHandler.js'
|
|
256
|
+
export { ScriptRefactorRenameToolHandler } from './script/ScriptRefactorRenameToolHandler.js'
|
|
257
|
+
export { ScriptCreateClassToolHandler } from './script/ScriptCreateClassToolHandler.js'
|
|
258
|
+
export { ScriptRemoveSymbolToolHandler } from './script/ScriptRemoveSymbolToolHandler.js'
|
|
259
|
+
export { CodeIndexUpdateToolHandler } from './script/CodeIndexUpdateToolHandler.js'
|
|
260
|
+
export { CodeIndexBuildToolHandler } from './script/CodeIndexBuildToolHandler.js'
|
|
234
261
|
// Roslyn (external CLI) tool handlers removed(内部ユーティリティのみ存続)
|
|
235
262
|
|
|
236
263
|
// Handler registry - single source of truth
|
|
237
264
|
const HANDLER_CLASSES = [
|
|
238
265
|
// System handlers
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
266
|
+
SystemPingToolHandler,
|
|
267
|
+
SystemRefreshAssetsToolHandler,
|
|
268
|
+
SystemGetCommandStatsToolHandler,
|
|
269
|
+
|
|
243
270
|
// GameObject handlers
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
271
|
+
GameObjectCreateToolHandler,
|
|
272
|
+
GameObjectFindToolHandler,
|
|
273
|
+
GameObjectModifyToolHandler,
|
|
274
|
+
GameObjectDeleteToolHandler,
|
|
275
|
+
GameObjectGetHierarchyToolHandler,
|
|
276
|
+
|
|
250
277
|
// Scene handlers
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
278
|
+
SceneCreateToolHandler,
|
|
279
|
+
SceneLoadToolHandler,
|
|
280
|
+
SceneSaveToolHandler,
|
|
281
|
+
SceneListToolHandler,
|
|
255
282
|
GetSceneInfoToolHandler,
|
|
256
|
-
|
|
283
|
+
|
|
257
284
|
// Analysis handlers
|
|
258
285
|
GetGameObjectDetailsToolHandler,
|
|
259
286
|
AnalyzeSceneContentsToolHandler,
|
|
@@ -264,109 +291,116 @@ const HANDLER_CLASSES = [
|
|
|
264
291
|
GetAnimatorRuntimeInfoToolHandler,
|
|
265
292
|
GetInputActionsStateToolHandler,
|
|
266
293
|
AnalyzeInputActionsAssetToolHandler,
|
|
267
|
-
|
|
294
|
+
|
|
268
295
|
// PlayMode handlers
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
296
|
+
PlaymodePlayToolHandler,
|
|
297
|
+
PlaymodePauseToolHandler,
|
|
298
|
+
PlaymodeStopToolHandler,
|
|
299
|
+
PlaymodeGetStateToolHandler,
|
|
300
|
+
PlaymodeWaitForStateToolHandler,
|
|
301
|
+
|
|
275
302
|
// UI handlers
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
303
|
+
UIFindElementsToolHandler,
|
|
304
|
+
UIClickElementToolHandler,
|
|
305
|
+
UIGetElementStateToolHandler,
|
|
306
|
+
UISetElementValueToolHandler,
|
|
307
|
+
UISimulateInputToolHandler,
|
|
308
|
+
|
|
282
309
|
// Input System handlers
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
310
|
+
InputSystemControlToolHandler,
|
|
311
|
+
InputKeyboardSimulateToolHandler,
|
|
312
|
+
InputMouseSimulateToolHandler,
|
|
313
|
+
InputGamepadSimulateToolHandler,
|
|
314
|
+
InputTouchSimulateToolHandler,
|
|
315
|
+
InputActionMapCreateToolHandler,
|
|
316
|
+
InputActionMapRemoveToolHandler,
|
|
317
|
+
InputActionAddToolHandler,
|
|
318
|
+
InputActionRemoveToolHandler,
|
|
319
|
+
InputBindingAddToolHandler,
|
|
320
|
+
InputBindingRemoveToolHandler,
|
|
321
|
+
InputBindingRemoveAllToolHandler,
|
|
322
|
+
InputBindingCompositeCreateToolHandler,
|
|
323
|
+
InputControlSchemesManageToolHandler,
|
|
324
|
+
|
|
298
325
|
// Asset handlers
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
326
|
+
AssetPrefabCreateToolHandler,
|
|
327
|
+
AssetPrefabModifyToolHandler,
|
|
328
|
+
AssetPrefabInstantiateToolHandler,
|
|
329
|
+
AssetMaterialCreateToolHandler,
|
|
330
|
+
AssetMaterialModifyToolHandler,
|
|
331
|
+
AssetPrefabOpenToolHandler,
|
|
332
|
+
AssetPrefabExitModeToolHandler,
|
|
333
|
+
AssetPrefabSaveToolHandler,
|
|
334
|
+
AssetImportSettingsManageToolHandler,
|
|
335
|
+
AssetDatabaseManageToolHandler,
|
|
336
|
+
AssetDependencyAnalyzeToolHandler,
|
|
337
|
+
|
|
338
|
+
// Addressables handlers
|
|
339
|
+
AddressablesManageToolHandler,
|
|
340
|
+
AddressablesBuildToolHandler,
|
|
341
|
+
AddressablesAnalyzeToolHandler,
|
|
342
|
+
|
|
311
343
|
// Menu handlers
|
|
312
|
-
|
|
313
|
-
|
|
344
|
+
MenuItemExecuteToolHandler,
|
|
345
|
+
|
|
314
346
|
// Console handlers
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
347
|
+
ConsoleClearToolHandler,
|
|
348
|
+
ConsoleReadToolHandler,
|
|
349
|
+
|
|
318
350
|
// Screenshot handlers
|
|
319
|
-
|
|
320
|
-
|
|
351
|
+
ScreenshotCaptureToolHandler,
|
|
352
|
+
ScreenshotAnalyzeToolHandler,
|
|
321
353
|
// Video handlers
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
354
|
+
VideoCaptureStartToolHandler,
|
|
355
|
+
VideoCaptureStopToolHandler,
|
|
356
|
+
VideoCaptureStatusToolHandler,
|
|
357
|
+
VideoCaptureForToolHandler,
|
|
326
358
|
// Script handlers
|
|
327
359
|
ScriptPackagesListToolHandler,
|
|
328
360
|
ScriptReadToolHandler,
|
|
329
361
|
ScriptSearchToolHandler,
|
|
330
362
|
ScriptEditStructuredToolHandler,
|
|
363
|
+
ScriptEditSnippetToolHandler,
|
|
331
364
|
ScriptRefsFindToolHandler,
|
|
332
365
|
ScriptSymbolFindToolHandler,
|
|
333
366
|
ScriptSymbolsGetToolHandler,
|
|
334
|
-
|
|
367
|
+
CodeIndexStatusToolHandler,
|
|
335
368
|
ScriptRefactorRenameToolHandler,
|
|
336
|
-
|
|
369
|
+
ScriptCreateClassToolHandler,
|
|
337
370
|
ScriptRemoveSymbolToolHandler,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
371
|
+
CodeIndexUpdateToolHandler,
|
|
372
|
+
CodeIndexBuildToolHandler,
|
|
373
|
+
|
|
341
374
|
// Component handlers
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
375
|
+
ComponentAddToolHandler,
|
|
376
|
+
ComponentRemoveToolHandler,
|
|
377
|
+
ComponentModifyToolHandler,
|
|
378
|
+
ComponentListToolHandler,
|
|
379
|
+
ComponentGetTypesToolHandler,
|
|
380
|
+
ComponentFieldSetToolHandler,
|
|
381
|
+
|
|
348
382
|
// Compilation handlers
|
|
349
|
-
|
|
383
|
+
CompilationGetStateToolHandler,
|
|
350
384
|
|
|
351
385
|
// Test handlers
|
|
352
|
-
|
|
353
|
-
|
|
386
|
+
TestRunToolHandler,
|
|
387
|
+
TestGetStatusToolHandler,
|
|
354
388
|
|
|
355
389
|
// Editor control handlers
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
390
|
+
EditorTagsManageToolHandler,
|
|
391
|
+
EditorLayersManageToolHandler,
|
|
392
|
+
EditorSelectionManageToolHandler,
|
|
393
|
+
EditorWindowsManageToolHandler,
|
|
394
|
+
EditorToolsManageToolHandler,
|
|
395
|
+
|
|
362
396
|
// Settings handlers
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
397
|
+
SettingsGetToolHandler,
|
|
398
|
+
SettingsUpdateToolHandler,
|
|
399
|
+
|
|
366
400
|
// Package management handlers
|
|
367
401
|
PackageManagerToolHandler,
|
|
368
402
|
RegistryConfigToolHandler
|
|
369
|
-
]
|
|
403
|
+
]
|
|
370
404
|
|
|
371
405
|
/**
|
|
372
406
|
* Creates and returns all tool handlers
|
|
@@ -374,26 +408,30 @@ const HANDLER_CLASSES = [
|
|
|
374
408
|
* @returns {Map<string, BaseToolHandler>} Map of tool name to handler
|
|
375
409
|
*/
|
|
376
410
|
export function createHandlers(unityConnection) {
|
|
377
|
-
const handlers = new Map()
|
|
378
|
-
const failedHandlers = []
|
|
379
|
-
|
|
411
|
+
const handlers = new Map()
|
|
412
|
+
const failedHandlers = []
|
|
413
|
+
|
|
380
414
|
// Instantiate all handlers from the registry
|
|
381
415
|
for (const HandlerClass of HANDLER_CLASSES) {
|
|
382
416
|
try {
|
|
383
|
-
const handler = new HandlerClass(unityConnection)
|
|
384
|
-
handlers.set(handler.name, handler)
|
|
417
|
+
const handler = new HandlerClass(unityConnection)
|
|
418
|
+
handlers.set(handler.name, handler)
|
|
385
419
|
} catch (error) {
|
|
386
|
-
failedHandlers.push(HandlerClass.name)
|
|
387
|
-
console.error(`[MCP] Failed to create handler ${HandlerClass.name}:`, error.message)
|
|
420
|
+
failedHandlers.push(HandlerClass.name)
|
|
421
|
+
console.error(`[MCP] Failed to create handler ${HandlerClass.name}:`, error.message)
|
|
388
422
|
// Continue with other handlers instead of throwing
|
|
389
423
|
}
|
|
390
424
|
}
|
|
391
|
-
|
|
425
|
+
|
|
392
426
|
if (failedHandlers.length > 0) {
|
|
393
|
-
console.error(
|
|
427
|
+
console.error(
|
|
428
|
+
`[MCP] Failed to initialize ${failedHandlers.length} handlers: ${failedHandlers.join(', ')}`
|
|
429
|
+
)
|
|
394
430
|
}
|
|
395
|
-
|
|
396
|
-
console.error(
|
|
397
|
-
|
|
398
|
-
|
|
431
|
+
|
|
432
|
+
console.error(
|
|
433
|
+
`[MCP] Successfully initialized ${handlers.size}/${HANDLER_CLASSES.length} handlers`
|
|
434
|
+
)
|
|
435
|
+
|
|
436
|
+
return handlers
|
|
399
437
|
}
|