gdharness 1.1.8 → 1.1.9
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 +10 -3
- package/build/godot/operations/project_config.gd +4 -3
- package/build/index.js +3 -2
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -15578,6 +15578,7 @@ import {
|
|
|
15578
15578
|
mkdirSync as mkdirSync5,
|
|
15579
15579
|
readdirSync as readdirSync4,
|
|
15580
15580
|
readFileSync as readFileSync9,
|
|
15581
|
+
rmdirSync as rmdirSync2,
|
|
15581
15582
|
rmSync as rmSync5,
|
|
15582
15583
|
statSync as statSync4,
|
|
15583
15584
|
writeFileSync as writeFileSync7
|
|
@@ -38495,7 +38496,7 @@ import {
|
|
|
38495
38496
|
readdirSync as readdirSync9,
|
|
38496
38497
|
readFileSync as readFileSync22,
|
|
38497
38498
|
readSync as readSync2,
|
|
38498
|
-
rmdirSync,
|
|
38499
|
+
rmdirSync as rmdirSync3,
|
|
38499
38500
|
statSync as statSync9
|
|
38500
38501
|
} from "node:fs";
|
|
38501
38502
|
import { tmpdir as tmpdir5 } from "node:os";
|
|
@@ -40459,7 +40460,7 @@ class GodotServer {
|
|
|
40459
40460
|
} finally {
|
|
40460
40461
|
discard(reportsDir, userData);
|
|
40461
40462
|
try {
|
|
40462
|
-
|
|
40463
|
+
rmdirSync3(dirname17(reportsDir));
|
|
40463
40464
|
} catch {}
|
|
40464
40465
|
}
|
|
40465
40466
|
const engineEntries = run.log.select({ severity: "warning", sinceLastCall: false, limit: 200 }).entries.map(aboveTheRunner);
|
|
@@ -44052,6 +44053,7 @@ import {
|
|
|
44052
44053
|
mkdirSync as mkdirSync4,
|
|
44053
44054
|
readdirSync as readdirSync3,
|
|
44054
44055
|
readFileSync as readFileSync8,
|
|
44056
|
+
rmdirSync,
|
|
44055
44057
|
rmSync as rmSync4,
|
|
44056
44058
|
statSync as statSync3,
|
|
44057
44059
|
writeFileSync as writeFileSync6
|
|
@@ -44134,6 +44136,11 @@ function removeAddons(projectPath) {
|
|
|
44134
44136
|
removed.push(target);
|
|
44135
44137
|
}
|
|
44136
44138
|
}
|
|
44139
|
+
const addons = join9(projectPath, "addons");
|
|
44140
|
+
if (removed.length > 0 && existsSync7(addons) && readdirSync3(addons).length === 0) {
|
|
44141
|
+
rmdirSync(addons);
|
|
44142
|
+
removed.push(addons);
|
|
44143
|
+
}
|
|
44137
44144
|
return removed;
|
|
44138
44145
|
}
|
|
44139
44146
|
async function disablePlugins(engine, projectPath, names) {
|
|
@@ -44679,7 +44686,7 @@ async function registerRuntime(godot, projectPath) {
|
|
|
44679
44686
|
}
|
|
44680
44687
|
if (autoloadIsOurs(named)) {
|
|
44681
44688
|
said2(await setRuntime(godot, projectPath, true), "registering the runtime autoload");
|
|
44682
|
-
console.log(`${RUNTIME_AUTOLOAD.name} autoload registered at res://${RUNTIME_AUTOLOAD.path}`);
|
|
44689
|
+
console.log(`${RUNTIME_AUTOLOAD.name} autoload ${named === null ? "registered" : "already registered"} at res://${RUNTIME_AUTOLOAD.path}`);
|
|
44683
44690
|
return;
|
|
44684
44691
|
}
|
|
44685
44692
|
console.log(`${RUNTIME_AUTOLOAD.name} autoload left at ${named}, which this project registers itself`);
|
|
@@ -149,12 +149,13 @@ func add_autoload(params: Dictionary) -> Dictionary:
|
|
|
149
149
|
if not FileAccess.file_exists(path):
|
|
150
150
|
return _log.failure("Autoload file does not exist: " + path)
|
|
151
151
|
|
|
152
|
-
# Through ProjectSettings so the file is saved the way the editor saves it,
|
|
153
|
-
#
|
|
152
|
+
# Through ProjectSettings so the file is saved the way the editor saves it, which includes
|
|
153
|
+
# putting Godot's header back and dropping any comment somebody wrote into the file by hand.
|
|
154
154
|
var setting: String = "autoload/" + name
|
|
155
155
|
var was_updated: bool = ProjectSettings.has_setting(setting)
|
|
156
156
|
|
|
157
|
-
# An asterisk in front of the path
|
|
157
|
+
# An asterisk in front of the path makes the autoload a global name as well. Without it the
|
|
158
|
+
# node still comes up under the root; only the name stops resolving.
|
|
158
159
|
ProjectSettings.set_setting(setting, ("*" if enabled else "") + path)
|
|
159
160
|
var err: Error = ProjectSettings.save()
|
|
160
161
|
if err != OK:
|
package/build/index.js
CHANGED
|
@@ -10198,7 +10198,7 @@ import {
|
|
|
10198
10198
|
readdirSync as readdirSync7,
|
|
10199
10199
|
readFileSync as readFileSync17,
|
|
10200
10200
|
readSync as readSync2,
|
|
10201
|
-
rmdirSync,
|
|
10201
|
+
rmdirSync as rmdirSync2,
|
|
10202
10202
|
statSync as statSync8
|
|
10203
10203
|
} from "node:fs";
|
|
10204
10204
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
@@ -29843,6 +29843,7 @@ import {
|
|
|
29843
29843
|
mkdirSync as mkdirSync9,
|
|
29844
29844
|
readdirSync as readdirSync6,
|
|
29845
29845
|
readFileSync as readFileSync16,
|
|
29846
|
+
rmdirSync,
|
|
29846
29847
|
rmSync as rmSync8,
|
|
29847
29848
|
statSync as statSync7,
|
|
29848
29849
|
writeFileSync as writeFileSync11
|
|
@@ -33209,7 +33210,7 @@ class GodotServer {
|
|
|
33209
33210
|
} finally {
|
|
33210
33211
|
discard(reportsDir, userData);
|
|
33211
33212
|
try {
|
|
33212
|
-
|
|
33213
|
+
rmdirSync2(dirname11(reportsDir));
|
|
33213
33214
|
} catch {}
|
|
33214
33215
|
}
|
|
33215
33216
|
const engineEntries = run.log.select({ severity: "warning", sinceLastCall: false, limit: 200 }).entries.map(aboveTheRunner);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdharness",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
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",
|