@skillcap/gdh 3.2.3 → 4.1.0
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/INSTALL-BUNDLE.json +1 -1
- package/README.md +6 -5
- package/RELEASE-SPAN-UPDATE-CONTRACTS.json +125 -0
- package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.js +0 -2
- package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.js +26 -30
- package/node_modules/@gdh/adapters/dist/skill-rendering.js.map +1 -1
- package/node_modules/@gdh/adapters/package.json +7 -7
- package/node_modules/@gdh/authoring/dist/lsp.d.ts +12 -0
- package/node_modules/@gdh/authoring/dist/lsp.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp.js +128 -3
- package/node_modules/@gdh/authoring/dist/lsp.js.map +1 -1
- package/node_modules/@gdh/authoring/package.json +2 -2
- package/node_modules/@gdh/cli/dist/bridge-session.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/bridge-session.js +11 -25
- package/node_modules/@gdh/cli/dist/bridge-session.js.map +1 -1
- package/node_modules/@gdh/cli/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/index.js +26 -537
- package/node_modules/@gdh/cli/dist/index.js.map +1 -1
- package/node_modules/@gdh/cli/dist/migrate.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/migrate.js +25 -0
- package/node_modules/@gdh/cli/dist/migrate.js.map +1 -1
- package/node_modules/@gdh/cli/package.json +11 -11
- package/node_modules/@gdh/core/dist/editor-operation-runner.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/editor-operation-runner.js +530 -1
- package/node_modules/@gdh/core/dist/editor-operation-runner.js.map +1 -1
- package/node_modules/@gdh/core/dist/index.d.ts +14 -10
- package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/index.js +16 -14
- package/node_modules/@gdh/core/dist/index.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/entries/s3c26_to_s3c27_run_game_knowledge.d.ts +3 -0
- package/node_modules/@gdh/core/dist/migrations/entries/s3c26_to_s3c27_run_game_knowledge.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/migrations/entries/s3c26_to_s3c27_run_game_knowledge.js +91 -0
- package/node_modules/@gdh/core/dist/migrations/entries/s3c26_to_s3c27_run_game_knowledge.js.map +1 -0
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.d.ts +7 -2
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.js +9 -3
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.d.ts +20 -9
- package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.js +22 -10
- package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/registry.d.ts +1 -1
- package/node_modules/@gdh/core/dist/migrations/registry.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/registry.js +2 -0
- package/node_modules/@gdh/core/dist/migrations/registry.js.map +1 -1
- package/node_modules/@gdh/core/dist/run-game-knowledge-scaffold.d.ts +16 -0
- package/node_modules/@gdh/core/dist/run-game-knowledge-scaffold.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/run-game-knowledge-scaffold.js +89 -0
- package/node_modules/@gdh/core/dist/run-game-knowledge-scaffold.js.map +1 -0
- package/node_modules/@gdh/core/package.json +1 -1
- package/node_modules/@gdh/docs/dist/guidance.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/guidance.js +29 -0
- package/node_modules/@gdh/docs/dist/guidance.js.map +1 -1
- package/node_modules/@gdh/docs/dist/templates/guidance/editor-bridge.md.tpl +4 -1
- package/node_modules/@gdh/docs/dist/templates/guidance/runtime.md.tpl +33 -0
- package/node_modules/@gdh/docs/package.json +2 -2
- package/node_modules/@gdh/editor/dist/index.d.ts +101 -0
- package/node_modules/@gdh/editor/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/editor/dist/index.js +166 -5
- package/node_modules/@gdh/editor/dist/index.js.map +1 -1
- package/node_modules/@gdh/editor/package.json +2 -2
- package/node_modules/@gdh/mcp/dist/bridge-tools.d.ts +3 -4
- package/node_modules/@gdh/mcp/dist/bridge-tools.d.ts.map +1 -1
- package/node_modules/@gdh/mcp/dist/bridge-tools.js +5 -77
- package/node_modules/@gdh/mcp/dist/bridge-tools.js.map +1 -1
- package/node_modules/@gdh/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/mcp/dist/index.js +832 -249
- package/node_modules/@gdh/mcp/dist/index.js.map +1 -1
- package/node_modules/@gdh/mcp/package.json +8 -8
- package/node_modules/@gdh/observability/package.json +2 -2
- package/node_modules/@gdh/runtime/dist/bridge-broker.d.ts +9 -1
- package/node_modules/@gdh/runtime/dist/bridge-broker.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-broker.js +267 -52
- package/node_modules/@gdh/runtime/dist/bridge-broker.js.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-surface.js +11 -3
- package/node_modules/@gdh/runtime/dist/bridge-surface.js.map +1 -1
- package/node_modules/@gdh/runtime/package.json +2 -2
- package/node_modules/@gdh/scan/dist/onboard.d.ts.map +1 -1
- package/node_modules/@gdh/scan/dist/onboard.js +60 -180
- package/node_modules/@gdh/scan/dist/onboard.js.map +1 -1
- package/node_modules/@gdh/scan/package.json +3 -3
- package/node_modules/@gdh/verify/package.json +6 -6
- package/package.json +12 -12
|
@@ -51,8 +51,7 @@ const ONBOARD_TERMS = [
|
|
|
51
51
|
"`inventory cache`: `.gdh-state/inventory.json`, derived machine-local project discovery data.",
|
|
52
52
|
"`target prepare`: GDH's worktree/import readiness check; it can report a cold worktree before validation is trustworthy.",
|
|
53
53
|
"`guidance status`: GDH's report for generated `.gdh/guidance/` visibility and freshness.",
|
|
54
|
-
"`run
|
|
55
|
-
"`verification scenario`: a project-owned runtime proof recipe that can be run after a run config launches.",
|
|
54
|
+
"`run-game knowledge`: project-owned runtime knowledge under `.gdh/runtime-knowledge/run-game.md` that records how this project is actually launched.",
|
|
56
55
|
"`machine-local path`: a path valid only on this computer, such as the Godot editor binary path; keep it in `.gdh-state/`, not committed config.",
|
|
57
56
|
];
|
|
58
57
|
const STATUS_TERMS = [
|
|
@@ -89,11 +88,11 @@ const PREPARE_TERMS = [
|
|
|
89
88
|
"`source target`: a sibling checkout used as the source for `.godot/` hydration.",
|
|
90
89
|
];
|
|
91
90
|
const RUN_GAME_TERMS = [
|
|
92
|
-
"`run
|
|
93
|
-
"`
|
|
94
|
-
"`
|
|
95
|
-
"`
|
|
96
|
-
"`bridge
|
|
91
|
+
"`run-game knowledge`: `.gdh/runtime-knowledge/run-game.md`, the project-owned source of truth for how agents should run this game.",
|
|
92
|
+
"`run mode`: one project-specific way to start the game or a related process, such as editor play, headless smoke, dedicated server, client, Docker Compose, or a project wrapper script.",
|
|
93
|
+
"`run evidence`: logs, screenshots, bridge transcripts, command/cwd/env notes, and observations saved under `.gdh-state/runs/<timestamp>-<mode>/` when preserving them helps the task.",
|
|
94
|
+
"`stale run knowledge`: run-game knowledge that no longer matches source-backed launch behavior after project scripts, `project.godot`, scenes, services, env examples, export presets, or bridge setup change.",
|
|
95
|
+
"`runtime bridge`: the optional GDH bridge addon/autoload. Agents activate it through the project's real launch command by supplying bridge environment variables when bridge-backed inspection is useful.",
|
|
97
96
|
];
|
|
98
97
|
const WARMUP_TERMS = [
|
|
99
98
|
"`managed LSP`: the GDH-spawned headless Godot editor that serves diagnostics for `.gd`; edit-loop hooks are `.gd`-only, while scenes/resources need final evidence or project-specific validators.",
|
|
@@ -126,7 +125,7 @@ export const GDH_SKILL_DEFINITIONS = {
|
|
|
126
125
|
"If `status` reports an incompatible lifecycle, missing project config, or blocking setup reason, stop broad probing and surface GDH recovery hints before running optional authoring/runtime inventory commands.",
|
|
127
126
|
`Run \`${pin(version)} authoring check\` only when structured GDH status shows authoring capability is available or degraded; say why it was skipped when it is unavailable.`,
|
|
128
127
|
`Run \`${pin(version)} lsp status\` only when \`authoring check\` reports LSP unavailable/degraded, changed files include \`.gd\`, or the user explicitly asks about LSP. Treat this as lifecycle visibility only, never as code-validity evidence.`,
|
|
129
|
-
|
|
128
|
+
"Inspect `.gdh/runtime-knowledge/run-game.md` and call out whether run-game knowledge is still draft, missing, or stale.",
|
|
130
129
|
"If GDH reports `godot_editor_not_configured`, explain that GDH checked `GDH_GODOT_EDITOR_BIN`, target-local `.gdh-state/local-paths.json`, `~/.gdh/config.json`, and safe common editor locations; ask for the local path and explicit permission before recording it only after those fail, and prefer reusable `~/.gdh/config.json` `godotEditorBinPath` over a target-local override when the path should apply across projects.",
|
|
131
130
|
"Ask the human only for narrow unresolved environment or target facts.",
|
|
132
131
|
"End with a concise readiness summary and the exact next development step.",
|
|
@@ -292,36 +291,33 @@ export const GDH_SKILL_DEFINITIONS = {
|
|
|
292
291
|
"run-game": {
|
|
293
292
|
id: "run-game",
|
|
294
293
|
name: "gdh-run-game",
|
|
295
|
-
description: "
|
|
296
|
-
shortDescription: "Run
|
|
297
|
-
objective: "
|
|
294
|
+
description: "Use and maintain project-specific guidance for running the Godot game",
|
|
295
|
+
shortDescription: "Run the Godot game",
|
|
296
|
+
objective: "Run the managed Godot target using the project's real launch workflow, preserve useful evidence, and keep project-owned run-game knowledge accurate.",
|
|
298
297
|
terms: RUN_GAME_TERMS,
|
|
299
298
|
claudeTools: ["Read", "Grep", "Glob", "Bash", "AskUserQuestion"],
|
|
300
299
|
userQuestions: [
|
|
301
|
-
"Ask only when the user did not name a run
|
|
300
|
+
"Ask only when the user did not name a run mode and there is no single obvious default.",
|
|
302
301
|
"If structured user-input tooling is unavailable, ask concise plain-text questions instead.",
|
|
303
302
|
],
|
|
304
303
|
process: (version) => [
|
|
305
|
-
"Use this skill when the user asks to run, start, launch, open, smoke-test, or verify the game/client/server; asks
|
|
306
|
-
"
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
"
|
|
313
|
-
`
|
|
314
|
-
|
|
315
|
-
"After a successful run or session start, report the selected config, target path, state, artifact paths or session id, and `statusPromotion`. If `statusPromotion` is `candidate_observed`, tell the user the run config is eligible to be promoted from `draft` to `observed`; do not silently edit durable `.gdh/run-configurations/*.yaml` unless a supported promotion command or explicit project edit is requested.",
|
|
316
|
-
"If the run revealed stale or wrong run-config details, update project-owned run-config YAML or runtime knowledge only with source-backed evidence and explicit user approval; keep machine-local paths in `.gdh-state/`, not committed config.",
|
|
304
|
+
"Use this skill when the user asks to run, start, launch, open, smoke-test, or verify the game/client/server; asks how this project runs; asks for runtime proof, logs, screenshot, or bridge-backed inspection; or reports that a previous launch failed.",
|
|
305
|
+
"Identify the managed target directory that contains this skill. Read `.gdh/project.yaml`, `.gdh/runtime-knowledge/run-game.md`, and nearby project-owned launch sources before asking the user for facts already present in the repo.",
|
|
306
|
+
"Relevant launch sources include README/run docs, package/task scripts, Makefile/justfile, Docker Compose/Tilt files, export presets, env examples, `project.godot` `run/main_scene`, project launch wrappers, and CI commands.",
|
|
307
|
+
"If `.gdh/runtime-knowledge/run-game.md` is missing, empty, draft, or contradicted by source-backed project files, inspect the launch sources first and update the file with the discovered run modes before or immediately after the run. Do not invent a GDH wrapper to make the project fit a fixed API.",
|
|
308
|
+
"Choose the run mode that matches the user's intent. If several modes are plausible and the user did not specify one, ask one narrow question naming the most relevant modes.",
|
|
309
|
+
"Before launching, note the working directory, command, important env vars, expected ready signal, stop/cleanup method, and where logs will go. Keep machine-local paths and secrets out of committed guidance.",
|
|
310
|
+
"Run the real project command. For Godot fallback commands, prefer the configured project root plus normal Godot CLI flags such as `--path <project-root>`, `--scene <path>` when testing a specific scene, `--headless` for non-visual smoke runs, `--audio-driver Dummy` when audio devices are irrelevant, and bounded quit/time behavior when the project supports it.",
|
|
311
|
+
"When evidence is useful, create `.gdh-state/runs/<timestamp>-<mode>/` and save command/cwd/env notes, exit code, and stdout/stderr logs there. Capture the process exit code immediately after the launch command with a portable variable name such as `exit_code`; avoid shell-reserved names such as zsh's `status`. Use `tee` or shell redirection only when it does not hide interactive output the task needs.",
|
|
312
|
+
`Use \`${pin(version)} bridge status [target]\` to check whether the GDH bridge addon/autoload is installed and healthy. To use the runtime bridge with a project-owned launch, run the project's real command with bridge env vars (GDH_BRIDGE_ENABLED=1, GDH_BRIDGE_PORT, GDH_BRIDGE_TOKEN, GDH_BRIDGE_SESSION_ID, optional GDH_BRIDGE_BIND_HOST=127.0.0.1) and record those non-secret session facts in the run evidence, not in committed guidance.`,
|
|
313
|
+
"After the run, report the mode, command, cwd, observed state, log/artifact paths, cleanup performed, and any run-game knowledge updates. If the run failed because the documented knowledge was stale, say which source-backed fact changed.",
|
|
317
314
|
],
|
|
318
315
|
rules: () => [
|
|
319
|
-
"Prefer
|
|
320
|
-
"
|
|
321
|
-
"
|
|
322
|
-
"
|
|
323
|
-
"
|
|
324
|
-
"Keep output operational: target, selected config, check state, launch/session result, artifacts or session id, and next step.",
|
|
316
|
+
"Prefer project-owned launch workflows over GDH-owned wrappers.",
|
|
317
|
+
"Do not use the retired gdh run-config, gdh verification-scenario, or gdh verify run commands as the runtime path; run configs are retired as an agent-facing launch model.",
|
|
318
|
+
"Do not leave long-running processes behind. Track process ids when backgrounding, stop them when the task no longer needs them, and report any process you could not clean up.",
|
|
319
|
+
"Update `.gdh/runtime-knowledge/run-game.md` only with source-backed or freshly observed facts, and do not store secrets or machine-local paths there.",
|
|
320
|
+
"Keep output operational: target, selected run mode, command/cwd, result, evidence paths, cleanup, and next step.",
|
|
325
321
|
],
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
|
-
"@gdh/scan": "
|
|
14
|
+
"@gdh/authoring": "4.1.0",
|
|
15
|
+
"@gdh/core": "4.1.0",
|
|
16
|
+
"@gdh/docs": "4.1.0",
|
|
17
|
+
"@gdh/observability": "4.1.0",
|
|
18
|
+
"@gdh/runtime": "4.1.0",
|
|
19
|
+
"@gdh/scan": "4.1.0"
|
|
20
20
|
},
|
|
21
|
-
"version": "
|
|
21
|
+
"version": "4.1.0"
|
|
22
22
|
}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { GdhAuthoringCheckResult, GdhAuthoringLspWarmupResult, GdhAuthoringSeverityPolicy, GdhAuthoringStatusResult, GdhLspLauncherKind, GdhManagedLspStatusResult, GdhProjectConfig, GdhWorktreeIdentity } from "@gdh/core";
|
|
2
|
+
import { type GdhProcessTerminationResult } from "@gdh/core";
|
|
3
|
+
interface GdhDiscoveredManagedLspProcess {
|
|
4
|
+
readonly pid: number;
|
|
5
|
+
readonly command: string;
|
|
6
|
+
readonly projectPath: string;
|
|
7
|
+
readonly port: number;
|
|
8
|
+
}
|
|
9
|
+
interface GdhManagedLspProcessEnvironment {
|
|
10
|
+
readonly discoverManagedLspProcesses?: (projectPath: string) => Promise<readonly GdhDiscoveredManagedLspProcess[]>;
|
|
11
|
+
readonly terminateProcess?: (pid: number) => Promise<GdhProcessTerminationResult>;
|
|
12
|
+
}
|
|
2
13
|
type GdhManagedLspLifecycleCommand = "check" | "stop" | "restart" | "prune" | "doctor";
|
|
3
14
|
type GdhManagedLspLifecycleCommandStatus = "ready" | "degraded" | "unavailable" | "stopped" | "pruned" | "not_found";
|
|
4
15
|
export interface GdhManagedLspLifecycleCommandResult {
|
|
@@ -66,6 +77,7 @@ export declare function pruneManagedLsp(input: {
|
|
|
66
77
|
readonly targetPath: string;
|
|
67
78
|
readonly status: GdhAuthoringStatusResult;
|
|
68
79
|
readonly projectConfig: GdhProjectConfig | null;
|
|
80
|
+
readonly processEnvironment?: GdhManagedLspProcessEnvironment | undefined;
|
|
69
81
|
}): Promise<GdhManagedLspLifecycleCommandResult>;
|
|
70
82
|
export declare function doctorManagedLsp(input: {
|
|
71
83
|
readonly targetPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lsp.d.ts","sourceRoot":"","sources":["../src/lsp.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,uBAAuB,EAEvB,2BAA2B,EAC3B,0BAA0B,EAC1B,wBAAwB,EAExB,kBAAkB,EAKlB,yBAAyB,EACzB,gBAAgB,EAEhB,mBAAmB,EACpB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"lsp.d.ts","sourceRoot":"","sources":["../src/lsp.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,uBAAuB,EAEvB,2BAA2B,EAC3B,0BAA0B,EAC1B,wBAAwB,EAExB,kBAAkB,EAKlB,yBAAyB,EACzB,gBAAgB,EAEhB,mBAAmB,EACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EAGL,KAAK,2BAA2B,EAGjC,MAAM,WAAW,CAAC;AA+EnB,UAAU,8BAA8B;IACtC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,+BAA+B;IACvC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,CACrC,WAAW,EAAE,MAAM,KAChB,OAAO,CAAC,SAAS,8BAA8B,EAAE,CAAC,CAAC;IACxD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,2BAA2B,CAAC,CAAC;CACnF;AAwDD,KAAK,6BAA6B,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AACvF,KAAK,mCAAmC,GACpC,OAAO,GACP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AAG,WAAW,CAAC;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,cAAc,CAAC,EAAE,0BAA0B,CAAC;CACtD,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAwNnC;AAuSD,wBAAsB,yBAAyB,CAC7C,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,SAAS,MAAM,EAAE,EACjC,UAAU,EAAE,SAAS,MAAM,EAAE,GAC5B,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CA6B5B;AA6ID,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAE9D"}
|
|
@@ -466,6 +466,34 @@ export async function pruneManagedLsp(input) {
|
|
|
466
466
|
const persisted = await readPersistedInstance(worktree);
|
|
467
467
|
const expectedIdentity = await resolveCurrentManagedLspIdentity(worktree, path.resolve(input.targetPath, input.status.primaryProjectPath ?? "."));
|
|
468
468
|
if (persisted === null) {
|
|
469
|
+
const orphanCleanup = await cleanupDuplicateManagedLspProcesses({
|
|
470
|
+
projectPath: path.resolve(input.targetPath, input.status.primaryProjectPath ?? "."),
|
|
471
|
+
activePid: null,
|
|
472
|
+
processEnvironment: input.processEnvironment,
|
|
473
|
+
});
|
|
474
|
+
if (orphanCleanup.discovered.length > 0) {
|
|
475
|
+
return createLifecycleCommandResult({
|
|
476
|
+
targetPath: input.targetPath,
|
|
477
|
+
command: "prune",
|
|
478
|
+
status: "pruned",
|
|
479
|
+
summary: "Pruned orphaned managed authoring.lsp Godot processes for this worktree.",
|
|
480
|
+
reasons: dedupe([
|
|
481
|
+
...stateLock.recoveredReasons,
|
|
482
|
+
"lsp_instance_not_found",
|
|
483
|
+
"orphan_lsp_processes_pruned",
|
|
484
|
+
]),
|
|
485
|
+
worktree,
|
|
486
|
+
instance: null,
|
|
487
|
+
transportStatus: "unknown",
|
|
488
|
+
transportReasons: ["orphan_lsp_processes_pruned"],
|
|
489
|
+
transportRawPayload: { duplicateCleanup: orphanCleanup },
|
|
490
|
+
cleanupStatus: "pruned",
|
|
491
|
+
cleanupReason: "orphan_lsp_processes_pruned",
|
|
492
|
+
killedPid: orphanCleanup.terminated.some((entry) => !entry.termination.stillRunning),
|
|
493
|
+
recommendations: ["Run `gdh lsp status` when a managed instance is needed again."],
|
|
494
|
+
statusResult: null,
|
|
495
|
+
});
|
|
496
|
+
}
|
|
469
497
|
return createLifecycleCommandResult({
|
|
470
498
|
targetPath: input.targetPath,
|
|
471
499
|
command: "prune",
|
|
@@ -513,6 +541,33 @@ export async function pruneManagedLsp(input) {
|
|
|
513
541
|
statusResult: null,
|
|
514
542
|
});
|
|
515
543
|
}
|
|
544
|
+
const duplicateCleanup = await cleanupDuplicateManagedLspProcesses({
|
|
545
|
+
projectPath: persisted.instance.projectPath,
|
|
546
|
+
activePid: persisted.instance.pid,
|
|
547
|
+
processEnvironment: input.processEnvironment,
|
|
548
|
+
});
|
|
549
|
+
if (duplicateCleanup.discovered.length > 0) {
|
|
550
|
+
return createLifecycleCommandResult({
|
|
551
|
+
targetPath: input.targetPath,
|
|
552
|
+
command: "prune",
|
|
553
|
+
status: "pruned",
|
|
554
|
+
summary: "Pruned duplicate managed authoring.lsp Godot processes and kept the reusable instance.",
|
|
555
|
+
reasons: dedupe([...stateLock.recoveredReasons, "duplicate_lsp_processes_pruned"]),
|
|
556
|
+
worktree,
|
|
557
|
+
instance: persisted.instance,
|
|
558
|
+
transportStatus: "healthy",
|
|
559
|
+
transportReasons: [],
|
|
560
|
+
transportRawPayload: {
|
|
561
|
+
...(validation.rawPayload ?? {}),
|
|
562
|
+
duplicateCleanup,
|
|
563
|
+
},
|
|
564
|
+
cleanupStatus: "pruned",
|
|
565
|
+
cleanupReason: "duplicate_lsp_processes_pruned",
|
|
566
|
+
killedPid: duplicateCleanup.terminated.some((entry) => !entry.termination.stillRunning),
|
|
567
|
+
recommendations: [],
|
|
568
|
+
statusResult: null,
|
|
569
|
+
});
|
|
570
|
+
}
|
|
516
571
|
return createLifecycleCommandResult({
|
|
517
572
|
targetPath: input.targetPath,
|
|
518
573
|
command: "prune",
|
|
@@ -1594,9 +1649,7 @@ async function cleanupPersistedInstance(worktree, instance, reason, options = {}
|
|
|
1594
1649
|
: validatePersistedInstanceIdentity(instance, options.expectedIdentity);
|
|
1595
1650
|
if (identityValidation.reusable) {
|
|
1596
1651
|
termination = await terminateProcess({ pid: instance.pid });
|
|
1597
|
-
killedPid =
|
|
1598
|
-
termination.state === "graceful_exit" ||
|
|
1599
|
-
termination.state === "hard_killed";
|
|
1652
|
+
killedPid = termination.state === "graceful_exit" || termination.state === "hard_killed";
|
|
1600
1653
|
killReason = killedPid ? reason : null;
|
|
1601
1654
|
}
|
|
1602
1655
|
}
|
|
@@ -1622,6 +1675,74 @@ async function cleanupPersistedInstance(worktree, instance, reason, options = {}
|
|
|
1622
1675
|
processMayStillBeAlive: termination?.stillRunning ?? false,
|
|
1623
1676
|
};
|
|
1624
1677
|
}
|
|
1678
|
+
async function cleanupDuplicateManagedLspProcesses(input) {
|
|
1679
|
+
const discover = input.processEnvironment?.discoverManagedLspProcesses ?? discoverManagedLspProcesses;
|
|
1680
|
+
const terminate = input.processEnvironment?.terminateProcess ?? ((pid) => terminateProcess({ pid }));
|
|
1681
|
+
const discovered = (await discover(input.projectPath)).filter((processInfo) => input.activePid === null || processInfo.pid !== input.activePid);
|
|
1682
|
+
const terminated = [];
|
|
1683
|
+
for (const processInfo of discovered) {
|
|
1684
|
+
const termination = await terminate(processInfo.pid);
|
|
1685
|
+
terminated.push({ process: processInfo, termination });
|
|
1686
|
+
}
|
|
1687
|
+
return { discovered, terminated };
|
|
1688
|
+
}
|
|
1689
|
+
async function discoverManagedLspProcesses(projectPath) {
|
|
1690
|
+
if (process.platform === "win32")
|
|
1691
|
+
return [];
|
|
1692
|
+
const { stdout } = await execFileAsync("ps", ["-axo", "pid=,command="]).catch(() => ({
|
|
1693
|
+
stdout: "",
|
|
1694
|
+
}));
|
|
1695
|
+
return parseManagedLspProcesses(stdout, projectPath);
|
|
1696
|
+
}
|
|
1697
|
+
function parseManagedLspProcesses(stdout, projectPath) {
|
|
1698
|
+
const expectedProjectPath = path.resolve(projectPath);
|
|
1699
|
+
const processes = [];
|
|
1700
|
+
for (const line of stdout.split(/\r?\n/)) {
|
|
1701
|
+
const match = line.trim().match(/^(\d+)\s+(.+)$/);
|
|
1702
|
+
if (match === null)
|
|
1703
|
+
continue;
|
|
1704
|
+
const pid = Number(match[1]);
|
|
1705
|
+
const command = match[2] ?? "";
|
|
1706
|
+
if (!Number.isInteger(pid) || pid <= 0)
|
|
1707
|
+
continue;
|
|
1708
|
+
if (!command.includes("--headless") || !command.includes("--editor"))
|
|
1709
|
+
continue;
|
|
1710
|
+
const lspPort = extractCommandFlagValue(command, "--lsp-port");
|
|
1711
|
+
if (lspPort === null)
|
|
1712
|
+
continue;
|
|
1713
|
+
const port = Number(lspPort);
|
|
1714
|
+
if (!Number.isInteger(port) || port <= 0)
|
|
1715
|
+
continue;
|
|
1716
|
+
const commandProjectPath = extractCommandFlagValue(command, "--path");
|
|
1717
|
+
if (commandProjectPath === null)
|
|
1718
|
+
continue;
|
|
1719
|
+
if (path.resolve(commandProjectPath) !== expectedProjectPath)
|
|
1720
|
+
continue;
|
|
1721
|
+
processes.push({ pid, command, projectPath: commandProjectPath, port });
|
|
1722
|
+
}
|
|
1723
|
+
return processes;
|
|
1724
|
+
}
|
|
1725
|
+
function extractCommandFlagValue(command, flag) {
|
|
1726
|
+
const flagIndex = command.indexOf(`${flag} `);
|
|
1727
|
+
if (flagIndex < 0)
|
|
1728
|
+
return null;
|
|
1729
|
+
const valueStart = flagIndex + flag.length + 1;
|
|
1730
|
+
const nextFlagIndex = command.indexOf(" --", valueStart);
|
|
1731
|
+
const rawValue = nextFlagIndex < 0 ? command.slice(valueStart) : command.slice(valueStart, nextFlagIndex);
|
|
1732
|
+
const value = rawValue.trim();
|
|
1733
|
+
return value.length > 0 ? value : null;
|
|
1734
|
+
}
|
|
1735
|
+
function execFileAsync(file, args) {
|
|
1736
|
+
return new Promise((resolve, reject) => {
|
|
1737
|
+
execFile(file, [...args], { maxBuffer: 10 * 1024 * 1024 }, (error, stdout, stderr) => {
|
|
1738
|
+
if (error) {
|
|
1739
|
+
reject(error);
|
|
1740
|
+
return;
|
|
1741
|
+
}
|
|
1742
|
+
resolve({ stdout, stderr });
|
|
1743
|
+
});
|
|
1744
|
+
});
|
|
1745
|
+
}
|
|
1625
1746
|
async function launchManagedInstance(worktree, projectPath) {
|
|
1626
1747
|
const testMode = process.env["GDH_TEST_LSP_MODE"];
|
|
1627
1748
|
if (testMode) {
|
|
@@ -1668,6 +1789,10 @@ async function launchManagedInstance(worktree, projectPath) {
|
|
|
1668
1789
|
detached: true,
|
|
1669
1790
|
stdio: "ignore",
|
|
1670
1791
|
cwd: projectPath,
|
|
1792
|
+
env: {
|
|
1793
|
+
...process.env,
|
|
1794
|
+
GDH_EDITOR_ADOPTION_DISABLED: "1",
|
|
1795
|
+
},
|
|
1671
1796
|
});
|
|
1672
1797
|
child.unref();
|
|
1673
1798
|
if (child.pid === undefined) {
|