gdharness 0.13.33 → 0.13.34
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/build/cli.js +9 -3
- package/build/index.js +9 -2
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -38289,11 +38289,17 @@ class GodotServer {
|
|
|
38289
38289
|
}
|
|
38290
38290
|
async editorPlayingState() {
|
|
38291
38291
|
const status = this.godotBridge.getStatus();
|
|
38292
|
-
if (!status.connected
|
|
38292
|
+
if (!status.connected) {
|
|
38293
38293
|
return null;
|
|
38294
38294
|
}
|
|
38295
38295
|
try {
|
|
38296
|
-
const answer = await
|
|
38296
|
+
const answer = await Promise.race([
|
|
38297
|
+
this.godotBridge.invokeTool("playing_status", {}),
|
|
38298
|
+
delay3(PLAYING_STATUS_MS).then(() => null)
|
|
38299
|
+
]);
|
|
38300
|
+
if (answer === null) {
|
|
38301
|
+
return null;
|
|
38302
|
+
}
|
|
38297
38303
|
return {
|
|
38298
38304
|
playing: readBoolean(asParams(answer), "playing") ?? false,
|
|
38299
38305
|
scene: readString(asParams(answer), "scenePath") ?? "",
|
|
@@ -39284,7 +39290,7 @@ async function runGodotServer() {
|
|
|
39284
39290
|
const server = new GodotServer;
|
|
39285
39291
|
await server.run();
|
|
39286
39292
|
}
|
|
39287
|
-
var UPDATE_NOTICE_EVERY = 500, FEEDBACK_NOTICE_EVERY = 250, run6, __dirname2, EDITOR_RESTART_TIMEOUT_MS = 90000, SLOWEST_FRAME_RATE = 20, VALUE_NAMES, BRIDGE_RETRY_MS = 2000, SUCCESSOR_CHECK_MS = 1e4, CACHE_WRITE_MS = 2000, SCAN_START_MS = 2000, WAIT_FOR_RUN_MS = 600000, RUN_POLL_MS = 250, PATH_SOLUTIONS, PROJECT_FILE_ARGUMENTS, DEBUG_STATE_CALLS, PROJECT_INFO_SECTIONS2, RUNNER_DIRECTORY = "addons/gdUnit4/";
|
|
39293
|
+
var UPDATE_NOTICE_EVERY = 500, FEEDBACK_NOTICE_EVERY = 250, run6, __dirname2, EDITOR_RESTART_TIMEOUT_MS = 90000, SLOWEST_FRAME_RATE = 20, VALUE_NAMES, BRIDGE_RETRY_MS = 2000, SUCCESSOR_CHECK_MS = 1e4, CACHE_WRITE_MS = 2000, PLAYING_STATUS_MS = 1000, SCAN_START_MS = 2000, WAIT_FOR_RUN_MS = 600000, RUN_POLL_MS = 250, PATH_SOLUTIONS, PROJECT_FILE_ARGUMENTS, DEBUG_STATE_CALLS, PROJECT_INFO_SECTIONS2, RUNNER_DIRECTORY = "addons/gdUnit4/";
|
|
39288
39294
|
var init_server3 = __esm(() => {
|
|
39289
39295
|
init_mcp();
|
|
39290
39296
|
init_stdio2();
|
package/build/index.js
CHANGED
|
@@ -29651,6 +29651,7 @@ function outsideTheirLists(spec, args) {
|
|
|
29651
29651
|
var BRIDGE_RETRY_MS = 2000;
|
|
29652
29652
|
var SUCCESSOR_CHECK_MS = 1e4;
|
|
29653
29653
|
var CACHE_WRITE_MS = 2000;
|
|
29654
|
+
var PLAYING_STATUS_MS = 1000;
|
|
29654
29655
|
var SCAN_START_MS = 2000;
|
|
29655
29656
|
var WAIT_FOR_RUN_MS = 600000;
|
|
29656
29657
|
var RUN_POLL_MS = 250;
|
|
@@ -31029,11 +31030,17 @@ class GodotServer {
|
|
|
31029
31030
|
}
|
|
31030
31031
|
async editorPlayingState() {
|
|
31031
31032
|
const status = this.godotBridge.getStatus();
|
|
31032
|
-
if (!status.connected
|
|
31033
|
+
if (!status.connected) {
|
|
31033
31034
|
return null;
|
|
31034
31035
|
}
|
|
31035
31036
|
try {
|
|
31036
|
-
const answer = await
|
|
31037
|
+
const answer = await Promise.race([
|
|
31038
|
+
this.godotBridge.invokeTool("playing_status", {}),
|
|
31039
|
+
delay3(PLAYING_STATUS_MS).then(() => null)
|
|
31040
|
+
]);
|
|
31041
|
+
if (answer === null) {
|
|
31042
|
+
return null;
|
|
31043
|
+
}
|
|
31037
31044
|
return {
|
|
31038
31045
|
playing: readBoolean(asParams(answer), "playing") ?? false,
|
|
31039
31046
|
scene: readString(asParams(answer), "scenePath") ?? "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdharness",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.34",
|
|
4
4
|
"mcpName": "io.github.Aureliolo/gdharness",
|
|
5
5
|
"description": "A harness for driving a Godot 4 project from an agent: editor addons, a runtime bridge into the running game, an MCP server in front of them, and a CLI that installs and diagnoses the Godot side.",
|
|
6
6
|
"type": "module",
|