gdharness 1.2.20 → 1.2.21

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 CHANGED
@@ -11809,8 +11809,8 @@ var init_tool_definitions = __esm(() => {
11809
11809
  parameters: {
11810
11810
  projectPath: {
11811
11811
  ...PROJECT_PATH,
11812
- ops: ["start", "check", "stop", "wait"],
11813
- description: "Absolute path to the project directory, the one holding project.godot. stop, wait: optional, the project whose run is meant; a run of another project is refused rather than touched."
11812
+ ops: ["start", "check", "stop", "wait", "profile"],
11813
+ description: "Absolute path to the project directory, the one holding project.godot. stop, wait, profile: optional, the project whose run is meant; a run of another project is refused rather than touched."
11814
11814
  },
11815
11815
  scene: {
11816
11816
  type: "string",
@@ -48005,6 +48005,10 @@ class GodotServer {
48005
48005
  if (!run) {
48006
48006
  return this.createErrorResponse(this.nothingOfOursIsRunning());
48007
48007
  }
48008
+ const elsewhere = this.anotherProjectsRun(run.projectPath, args, "read");
48009
+ if (elsewhere) {
48010
+ return elsewhere;
48011
+ }
48008
48012
  const limit = readPositiveNumber(args, "limit") ?? PROFILE_FUNCTIONS;
48009
48013
  const callersName = readString(args, "callersOf");
48010
48014
  if (callersName !== undefined && !callersName.replace(/@([^.@]+)_(?:getter|setter)$/, "$1").split(".").every(isIdentifier)) {
package/build/index.js CHANGED
@@ -34841,8 +34841,8 @@ var TOOL_SPECS = [
34841
34841
  parameters: {
34842
34842
  projectPath: {
34843
34843
  ...PROJECT_PATH2,
34844
- ops: ["start", "check", "stop", "wait"],
34845
- description: "Absolute path to the project directory, the one holding project.godot. stop, wait: optional, the project whose run is meant; a run of another project is refused rather than touched."
34844
+ ops: ["start", "check", "stop", "wait", "profile"],
34845
+ description: "Absolute path to the project directory, the one holding project.godot. stop, wait, profile: optional, the project whose run is meant; a run of another project is refused rather than touched."
34846
34846
  },
34847
34847
  scene: {
34848
34848
  type: "string",
@@ -40749,6 +40749,10 @@ class GodotServer {
40749
40749
  if (!run) {
40750
40750
  return this.createErrorResponse(this.nothingOfOursIsRunning());
40751
40751
  }
40752
+ const elsewhere = this.anotherProjectsRun(run.projectPath, args, "read");
40753
+ if (elsewhere) {
40754
+ return elsewhere;
40755
+ }
40752
40756
  const limit = readPositiveNumber(args, "limit") ?? PROFILE_FUNCTIONS;
40753
40757
  const callersName = readString(args, "callersOf");
40754
40758
  if (callersName !== undefined && !callersName.replace(/@([^.@]+)_(?:getter|setter)$/, "$1").split(".").every(isIdentifier)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdharness",
3
- "version": "1.2.20",
3
+ "version": "1.2.21",
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",