gopeak 2.3.4 → 2.3.6
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 +32 -1
- package/build/addon/godot_mcp_editor/tools/scene_tools.gd +94 -43
- package/build/addon/godot_mcp_runtime/mcp_runtime_autoload.gd +3 -0
- package/build/godot-bridge.js +9 -2
- package/build/index.js +182 -2619
- package/build/scripts/godot_operations.gd +9 -1
- package/build/server-types.js +1 -0
- package/build/server-version.js +12 -0
- package/build/tool-definitions.js +2264 -0
- package/build/tool-groups.js +174 -0
- package/package.json +11 -6
- package/scripts/postinstall.mjs +29 -0
|
@@ -34,7 +34,15 @@ func _init():
|
|
|
34
34
|
|
|
35
35
|
var operation = args[operation_index]
|
|
36
36
|
var params_json = args[params_index]
|
|
37
|
-
|
|
37
|
+
if params_json.begins_with("@file:"):
|
|
38
|
+
var params_file_path = params_json.substr(6)
|
|
39
|
+
var params_file = FileAccess.open(params_file_path, FileAccess.READ)
|
|
40
|
+
if params_file == null:
|
|
41
|
+
log_error("Failed to open params file: " + params_file_path)
|
|
42
|
+
quit(1)
|
|
43
|
+
params_json = params_file.get_as_text()
|
|
44
|
+
params_file.close()
|
|
45
|
+
|
|
38
46
|
log_info("Operation: " + operation)
|
|
39
47
|
log_debug("Params JSON: " + params_json)
|
|
40
48
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { readFileSync } from 'fs';
|
|
2
|
+
export const DEBUG_MODE = process.env.DEBUG === 'true';
|
|
3
|
+
export const GODOT_DEBUG_MODE_DEFAULT = process.env.GODOT_DEBUG === 'true' || DEBUG_MODE;
|
|
4
|
+
export const SERVER_VERSION = (() => {
|
|
5
|
+
try {
|
|
6
|
+
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
7
|
+
return typeof pkg.version === 'string' ? pkg.version : '0.0.0';
|
|
8
|
+
}
|
|
9
|
+
catch {
|
|
10
|
+
return '0.0.0';
|
|
11
|
+
}
|
|
12
|
+
})();
|