gdharness 1.0.8 → 1.0.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 +8 -3
- package/build/index.js +7 -2
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -31425,7 +31425,7 @@ async function askWindows() {
|
|
|
31425
31425
|
"-NoProfile",
|
|
31426
31426
|
"-NonInteractive",
|
|
31427
31427
|
"-Command",
|
|
31428
|
-
|
|
31428
|
+
`${POWERSHELL_UTF8}Get-CimInstance Win32_Process | ForEach-Object { $began = 0; if ($_.CreationDate) { $began = ([DateTimeOffset]$_.CreationDate).ToUnixTimeMilliseconds() }; "$($_.ProcessId) $($_.ParentProcessId) $began $($_.CommandLine)" }`
|
|
31429
31429
|
], { timeout: ASK_TIMEOUT_MS, windowsHide: true, maxBuffer: 16 * 1024 * 1024 });
|
|
31430
31430
|
return stdout;
|
|
31431
31431
|
}
|
|
@@ -31436,7 +31436,7 @@ async function askPosix() {
|
|
|
31436
31436
|
});
|
|
31437
31437
|
return stdout;
|
|
31438
31438
|
}
|
|
31439
|
-
var run4, ASK_TIMEOUT_MS = 15000;
|
|
31439
|
+
var run4, POWERSHELL_UTF8 = "[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; ", ASK_TIMEOUT_MS = 15000;
|
|
31440
31440
|
var init_process_children = __esm(() => {
|
|
31441
31441
|
run4 = promisify4(execFile4);
|
|
31442
31442
|
});
|
|
@@ -37518,7 +37518,7 @@ function windowsCommandLine(pid) {
|
|
|
37518
37518
|
"-NoProfile",
|
|
37519
37519
|
"-NonInteractive",
|
|
37520
37520
|
"-Command",
|
|
37521
|
-
`$p = Get-CimInstance Win32_Process -Filter "ProcessId=${pid}"; if ($p) { $p.CreationDate.ToUniversalTime().ToString("o"); $p.CommandLine }`
|
|
37521
|
+
`${POWERSHELL_UTF8}$p = Get-CimInstance Win32_Process -Filter "ProcessId=${pid}"; if ($p) { $p.CreationDate.ToUniversalTime().ToString("o"); $p.CommandLine }`
|
|
37522
37522
|
], { encoding: "utf8", timeout: 15000, windowsHide: true }).trim();
|
|
37523
37523
|
return answer === "" ? null : answer;
|
|
37524
37524
|
} catch {
|
|
@@ -37627,6 +37627,7 @@ function sweepTranscripts(keepMs = 24 * 60 * 60 * 1000, now = Date.now()) {
|
|
|
37627
37627
|
}
|
|
37628
37628
|
var AN_EDITOR, SAME_RUN_WINDOW_MS = 1e4;
|
|
37629
37629
|
var init_run_record = __esm(() => {
|
|
37630
|
+
init_process_children();
|
|
37630
37631
|
init_runtime_client();
|
|
37631
37632
|
AN_EDITOR = /(?:^|\s)(?:-e|--editor)(?:\s|$)/;
|
|
37632
37633
|
});
|
|
@@ -37645,6 +37646,7 @@ import {
|
|
|
37645
37646
|
readdirSync as readdirSync7,
|
|
37646
37647
|
readFileSync as readFileSync19,
|
|
37647
37648
|
readSync,
|
|
37649
|
+
rmdirSync,
|
|
37648
37650
|
statSync as statSync5
|
|
37649
37651
|
} from "node:fs";
|
|
37650
37652
|
import { tmpdir as tmpdir5 } from "node:os";
|
|
@@ -39017,6 +39019,9 @@ class GodotServer {
|
|
|
39017
39019
|
reportProblem = errorMessage(error);
|
|
39018
39020
|
} finally {
|
|
39019
39021
|
discard(reportsDir, userData);
|
|
39022
|
+
try {
|
|
39023
|
+
rmdirSync(dirname14(reportsDir));
|
|
39024
|
+
} catch {}
|
|
39020
39025
|
}
|
|
39021
39026
|
const engineEntries = run.log.select({ severity: "warning", sinceLastCall: false, limit: 200 }).entries.map(aboveTheRunner);
|
|
39022
39027
|
const verdicts = {
|
package/build/index.js
CHANGED
|
@@ -10181,6 +10181,7 @@ import {
|
|
|
10181
10181
|
readdirSync as readdirSync6,
|
|
10182
10182
|
readFileSync as readFileSync15,
|
|
10183
10183
|
readSync,
|
|
10184
|
+
rmdirSync,
|
|
10184
10185
|
statSync as statSync5
|
|
10185
10186
|
} from "node:fs";
|
|
10186
10187
|
import { tmpdir as tmpdir4 } from "node:os";
|
|
@@ -24817,6 +24818,7 @@ import { execFile, execFileSync, spawnSync } from "node:child_process";
|
|
|
24817
24818
|
import { basename } from "node:path";
|
|
24818
24819
|
import { promisify } from "node:util";
|
|
24819
24820
|
var run = promisify(execFile);
|
|
24821
|
+
var POWERSHELL_UTF8 = "[Console]::OutputEncoding = [System.Text.Encoding]::UTF8; ";
|
|
24820
24822
|
function startTimesOf(pids) {
|
|
24821
24823
|
const began = new Map;
|
|
24822
24824
|
if (pids.length === 0) {
|
|
@@ -24999,7 +25001,7 @@ async function askWindows() {
|
|
|
24999
25001
|
"-NoProfile",
|
|
25000
25002
|
"-NonInteractive",
|
|
25001
25003
|
"-Command",
|
|
25002
|
-
|
|
25004
|
+
`${POWERSHELL_UTF8}Get-CimInstance Win32_Process | ForEach-Object { $began = 0; if ($_.CreationDate) { $began = ([DateTimeOffset]$_.CreationDate).ToUnixTimeMilliseconds() }; "$($_.ProcessId) $($_.ParentProcessId) $began $($_.CommandLine)" }`
|
|
25003
25005
|
], { timeout: ASK_TIMEOUT_MS, windowsHide: true, maxBuffer: 16 * 1024 * 1024 });
|
|
25004
25006
|
return stdout;
|
|
25005
25007
|
}
|
|
@@ -29059,7 +29061,7 @@ function windowsCommandLine(pid) {
|
|
|
29059
29061
|
"-NoProfile",
|
|
29060
29062
|
"-NonInteractive",
|
|
29061
29063
|
"-Command",
|
|
29062
|
-
`$p = Get-CimInstance Win32_Process -Filter "ProcessId=${pid}"; if ($p) { $p.CreationDate.ToUniversalTime().ToString("o"); $p.CommandLine }`
|
|
29064
|
+
`${POWERSHELL_UTF8}$p = Get-CimInstance Win32_Process -Filter "ProcessId=${pid}"; if ($p) { $p.CreationDate.ToUniversalTime().ToString("o"); $p.CommandLine }`
|
|
29063
29065
|
], { encoding: "utf8", timeout: 15000, windowsHide: true }).trim();
|
|
29064
29066
|
return answer === "" ? null : answer;
|
|
29065
29067
|
} catch {
|
|
@@ -31754,6 +31756,9 @@ class GodotServer {
|
|
|
31754
31756
|
reportProblem = errorMessage(error);
|
|
31755
31757
|
} finally {
|
|
31756
31758
|
discard(reportsDir, userData);
|
|
31759
|
+
try {
|
|
31760
|
+
rmdirSync(dirname9(reportsDir));
|
|
31761
|
+
} catch {}
|
|
31757
31762
|
}
|
|
31758
31763
|
const engineEntries = run.log.select({ severity: "warning", sinceLastCall: false, limit: 200 }).entries.map(aboveTheRunner);
|
|
31759
31764
|
const verdicts = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdharness",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.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",
|