@skillcap/gdh 0.25.4 → 0.26.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/RELEASE-SPAN-UPDATE-CONTRACTS.json +147 -0
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.js +38 -15
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.d.ts +12 -0
- package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.js +21 -0
- package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.js +49 -16
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts +5 -2
- package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.js +39 -0
- package/node_modules/@gdh/adapters/dist/skill-rendering.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/templates/authoring-hook.js.tpl +200 -15
- package/node_modules/@gdh/adapters/package.json +8 -8
- package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.d.ts +1 -0
- package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.js +1 -0
- package/node_modules/@gdh/authoring/dist/diagnostics-broker-contract.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/diagnostics-broker.d.ts +2 -1
- package/node_modules/@gdh/authoring/dist/diagnostics-broker.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/diagnostics-broker.js +91 -13
- package/node_modules/@gdh/authoring/dist/diagnostics-broker.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/index.d.ts +1 -1
- package/node_modules/@gdh/authoring/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/index.js +2 -1
- package/node_modules/@gdh/authoring/dist/index.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp-warmup.d.ts +30 -0
- package/node_modules/@gdh/authoring/dist/lsp-warmup.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/lsp-warmup.js +213 -0
- package/node_modules/@gdh/authoring/dist/lsp-warmup.js.map +1 -0
- package/node_modules/@gdh/authoring/dist/lsp.d.ts +8 -1
- package/node_modules/@gdh/authoring/dist/lsp.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/lsp.js +256 -104
- package/node_modules/@gdh/authoring/dist/lsp.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/scene-resource.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/scene-resource.js +140 -0
- package/node_modules/@gdh/authoring/dist/scene-resource.js.map +1 -1
- package/node_modules/@gdh/authoring/package.json +2 -2
- package/node_modules/@gdh/cli/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/index.js +75 -10
- package/node_modules/@gdh/cli/dist/index.js.map +1 -1
- package/node_modules/@gdh/cli/dist/self-update.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/self-update.js +66 -10
- package/node_modules/@gdh/cli/dist/self-update.js.map +1 -1
- package/node_modules/@gdh/cli/package.json +10 -10
- package/node_modules/@gdh/core/dist/index.d.ts +178 -6
- package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/index.js +44 -4
- package/node_modules/@gdh/core/dist/index.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.d.ts +15 -0
- 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 +18 -0
- 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.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.js +2 -0
- package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.js.map +1 -1
- package/node_modules/@gdh/core/package.json +1 -1
- package/node_modules/@gdh/docs/dist/templates/guidance/authoring-and-validation.md.tpl +4 -5
- package/node_modules/@gdh/docs/package.json +2 -2
- package/node_modules/@gdh/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/mcp/dist/index.js +30 -1
- 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/package.json +2 -2
- package/node_modules/@gdh/scan/package.json +3 -3
- package/node_modules/@gdh/verify/package.json +7 -7
- package/package.json +11 -11
package/INSTALL-BUNDLE.json
CHANGED
|
@@ -2824,6 +2824,153 @@
|
|
|
2824
2824
|
}
|
|
2825
2825
|
]
|
|
2826
2826
|
}
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
"version": "0.25.5",
|
|
2830
|
+
"releaseTag": "v0.25.5",
|
|
2831
|
+
"migrationStatus": "required",
|
|
2832
|
+
"summary": "v0.25.5 re-bakes managed guidance units and authoring hook scripts so target projects receive fast content-aware post-edit checks and updated authoring guidance. GDH_GUIDANCE_UNIT_VERSION bumps from 19 to 20 and GDH_UPDATE_HOOK_VERSION bumps from 8 to 9.",
|
|
2833
|
+
"releaseHighlights": {
|
|
2834
|
+
"summary": "v0.25.5 fixes two dogfooding blockers in the update and authoring flows. Self-update now recovers cleanly from completed durable-backup residue, and post-edit authoring hooks are fast opportunistic feedback instead of slow Godot/LSP proof on every file edit.",
|
|
2835
|
+
"operatorChanges": [
|
|
2836
|
+
"**Stale completed backups no longer block normal updates.** GDH can clear completed durable-backup residue when the target pin and backup metadata prove the previous update already completed.",
|
|
2837
|
+
"**Post-edit hooks run one fast check.** Managed Claude and Codex hooks no longer run `gdh authoring diagnostics refresh` before every check; they run one bounded `gdh authoring check --mode post-edit` command.",
|
|
2838
|
+
"**Post-edit checks do not cold-start Godot.** The fast path reuses an already-running LSP if present, waits briefly for scoped diagnostics, and otherwise reports unconfirmed feedback without blocking.",
|
|
2839
|
+
"**Broker diagnostics are content-aware.** A broker snapshot can only block a changed file when the file content still matches the content hash captured with the diagnostics.",
|
|
2840
|
+
"**Scene/resource edits get cheap missing-reference checks.** Changed `.tscn` and `.tres` files are scanned for missing `res://` references without launching Godot."
|
|
2841
|
+
]
|
|
2842
|
+
},
|
|
2843
|
+
"updateContract": {
|
|
2844
|
+
"summary": "Managed targets must re-bake authoring guidance and hook scripts for v0.25.5. The update replaces slow broker-refresh-per-edit behavior with fast content-aware post-edit feedback and clears safe completed-backup residue during self-update.",
|
|
2845
|
+
"steps": [
|
|
2846
|
+
{
|
|
2847
|
+
"id": "install_v0_25_5",
|
|
2848
|
+
"kind": "mechanical",
|
|
2849
|
+
"summary": "Install the v0.25.5 GDH package.",
|
|
2850
|
+
"detail": "Run gdh self-update so the target uses the durable-backup recovery fix and current managed-surface renderers.",
|
|
2851
|
+
"commands": [
|
|
2852
|
+
"gdh self-update --apply"
|
|
2853
|
+
],
|
|
2854
|
+
"validationCommands": [
|
|
2855
|
+
"gdh status"
|
|
2856
|
+
]
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
"id": "rebake_guidance_and_hooks",
|
|
2860
|
+
"kind": "mechanical",
|
|
2861
|
+
"summary": "Re-bake managed guidance units and hook scripts.",
|
|
2862
|
+
"detail": "Run migration/apply if the update reports pending lifecycle work. This rewrites managed authoring guidance and Claude/Codex authoring hook scripts with guidance unit version 20 and hook version 9.",
|
|
2863
|
+
"commands": [
|
|
2864
|
+
"gdh migrate --apply"
|
|
2865
|
+
],
|
|
2866
|
+
"validationCommands": [
|
|
2867
|
+
"gdh adapters status",
|
|
2868
|
+
"gdh status"
|
|
2869
|
+
]
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
"id": "confirm_fast_authoring_surfaces",
|
|
2873
|
+
"kind": "agent_reasoning",
|
|
2874
|
+
"summary": "Confirm managed authoring surfaces describe and use fast post-edit checks.",
|
|
2875
|
+
"detail": "Inspect adapter/status output or generated files and confirm authoring guidance no longer says hooks refresh the broker before every check, and managed hook headers report hook version 9.",
|
|
2876
|
+
"commands": [
|
|
2877
|
+
"gdh adapters status"
|
|
2878
|
+
],
|
|
2879
|
+
"validationCommands": [
|
|
2880
|
+
"gdh adapters status",
|
|
2881
|
+
"gdh authoring check --mode post-edit --format compact"
|
|
2882
|
+
]
|
|
2883
|
+
}
|
|
2884
|
+
]
|
|
2885
|
+
}
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
"version": "0.26.0",
|
|
2889
|
+
"releaseTag": "v0.26.0",
|
|
2890
|
+
"migrationStatus": "required",
|
|
2891
|
+
"summary": "v0.26.0 ships milestone v1.20 (Managed LSP Agent-First Hardening). It bumps GDH_AGENT_CONTRACT_VERSION 11 -> 14, GDH_MANAGED_LSP_SURFACE_VERSION 1 -> 2, and GDH_UPDATE_HOOK_VERSION 9 -> 10. All bumps are class-1 deterministic re-bakes; managed targets re-render the AGENTS.md contract, post-edit + Stop + PostToolBatch hook templates, claude/settings.json install, gdh-warmup skill across three agents, and the runtime-support-matrix-aware status surfaces.",
|
|
2892
|
+
"releaseHighlights": {
|
|
2893
|
+
"summary": "v0.26.0 ships milestone v1.20 in full. Managed Godot LSP now self-warms behind the scenes on every authoring edit, exposes a never-block `Stop` correctness barrier at session end, coalesces Claude `PostToolBatch` parallel edits into one authoring check, and refuses to launch on Godot 4.5.0/4.5.1 with a structured advisory pointing at 4.5.2+. Diagnostic output now distinguishes fresh-clean from never-checked, names the precise reason a broker snapshot is missing, and uses `[fresh] | [partial] | [pending] | [timeout] | [stale] | [failed]` bracketed-token vocabulary instead of the previous prose. New `gdh.authoring.warmup` MCP verb and matching `gdh-warmup` skill make deliberate behind-the-scenes warmup one verb away across Claude, Codex, and Cursor.",
|
|
2894
|
+
"operatorChanges": [
|
|
2895
|
+
"**Auto-warmup on every authoring edit.** Editing a `.gd`, `.tscn`, `.tres`, or `project.godot` file inside a managed Godot target detach-spawns `gdh lsp warmup` if the LSP is not running. The post-edit hook returns inside its 2500 ms bound; subsequent edits in the same session see real diagnostics instead of cold-start dead time.",
|
|
2896
|
+
"**Stop hook never blocks session end.** A new GDH-installed Claude `Stop` hook (and Codex `[[hooks.Stop]]` block) runs `gdh authoring check --mode final` with a 60 s soft cap, waits for in-flight warmup, and reports unresolved diagnostics as `additionalContext`. It never returns `decision: block` or surfaces an error on warmup timeout or Godot crash.",
|
|
2897
|
+
"**Claude PostToolBatch coalesce.** Parallel `apply_patch` edits inside one Claude tool batch invoke `gdh authoring check --mode post-edit` exactly once with the union of changed files passed as repeated `--changed <path>` arguments, instead of N concurrent invocations. Codex and Cursor remain on the per-edit hook path with no behavior change.",
|
|
2898
|
+
"**Refuse-to-launch on broken Godot versions.** Configuring a Godot 4.5.0 or 4.5.1 binary as the managed editor produces `availability: \"unavailable\"` with reason `godot_editor_version_unsupported_for_lsp` and a structured `versionFloorAdvisory` pointing at 4.5.2+ or 4.6.x. The check short-circuits before `lsp.lock` acquire so an unsupported binary never partially functions.",
|
|
2899
|
+
"**Diagnostic vocabulary clarity.** CLI compact output and hook `additionalContext` strings use bracketed-token format. An empty diagnostic array returned with `status: fresh` is structurally distinct from one returned with `status: pending` or absent.",
|
|
2900
|
+
"**Broker state precision.** `gdh status` JSON distinguishes `broker_not_yet_primed` from `broker_metadata_missing`, and `broker_lsp_unavailable` from `lsp_instance_identity_mismatch`. Absent-broker health carries an actionable `recommendedCommand` field pointing at `gdh authoring diagnostics refresh`.",
|
|
2901
|
+
"**Read paths no longer respawn Godot.** `gdh authoring diagnostics current` and `gdh authoring diagnostics status` invoked after `gdh lsp stop` return read-only results without re-spawning Godot, and the broker snapshot is auto-pruned on stop so no `lsp_instance_identity_mismatch` lingers.",
|
|
2902
|
+
"**Empty-set classification.** `gdh authoring diagnostics refresh --target . --changed <deleted-or-foreign-path>` returns a `scoped_resolution_filtered_all_inputs` reason with a precise summary that names the empty-set kind, instead of the misleading \"no GDScript files\" string when the project actually has `.gd` files.",
|
|
2903
|
+
"**`gdh.authoring.warmup` MCP tool + `gdh-warmup` skill.** Agents can call the warmup MCP tool to observe `started | warming | already_warm` outcomes idempotently. The matching managed-target skill surfaces the same verb across Claude, Codex, and Cursor.",
|
|
2904
|
+
"**Empirical Godot 4.6 measurements.** New `scripts/measure-lsp-perf.mjs` operator tool measures memory, cold/warm-start, and external-disk rename/delete/add propagation against a configured Godot 4.6+ binary. Initial measurements (single fixture, macOS) are recorded in `docs/development/runtime-support-matrix.md`."
|
|
2905
|
+
]
|
|
2906
|
+
},
|
|
2907
|
+
"updateContract": {
|
|
2908
|
+
"summary": "Managed targets must re-bake the managed AGENTS.md contract, the post-edit + Stop + PostToolBatch authoring hook templates, the Claude settings install (idempotent Stop + idempotent PostToolBatch), the new gdh-warmup managed skill across claude/codex/cursor, and the broker-snapshot schema. The update enables auto-warmup on every edit, the never-block Stop barrier at session end, and (for Claude) PostToolBatch coalesce.",
|
|
2909
|
+
"steps": [
|
|
2910
|
+
{
|
|
2911
|
+
"id": "install_v0_26_0",
|
|
2912
|
+
"kind": "mechanical",
|
|
2913
|
+
"summary": "Install the v0.26.0 GDH package.",
|
|
2914
|
+
"detail": "Run gdh self-update so the target uses the new managed AGENTS.md contract version, broker schema version, hook version, warmup skill, and Claude settings install paths.",
|
|
2915
|
+
"commands": [
|
|
2916
|
+
"gdh self-update --apply"
|
|
2917
|
+
],
|
|
2918
|
+
"validationCommands": [
|
|
2919
|
+
"gdh status"
|
|
2920
|
+
]
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
"id": "rebake_agent_contract_and_hooks",
|
|
2924
|
+
"kind": "mechanical",
|
|
2925
|
+
"summary": "Re-bake managed AGENTS.md contract, hook templates, and Claude settings.",
|
|
2926
|
+
"detail": "Run gdh migrate --apply if the update reports pending lifecycle work. This re-renders managed AGENTS.md (contract 14), post-edit + Stop + PostToolBatch hook templates (hook version 10), idempotent Claude settings install (Stop + PostToolBatch hook families), and Codex authoring block. Existing foreign Stop entries in .claude/settings.json are preserved; legacy non-GDH Stop strip behavior is unchanged.",
|
|
2927
|
+
"commands": [
|
|
2928
|
+
"gdh migrate --apply"
|
|
2929
|
+
],
|
|
2930
|
+
"validationCommands": [
|
|
2931
|
+
"gdh adapters status",
|
|
2932
|
+
"gdh status"
|
|
2933
|
+
]
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
"id": "rebake_warmup_skill",
|
|
2937
|
+
"kind": "mechanical",
|
|
2938
|
+
"summary": "Re-bake managed gdh-warmup skill across claude/codex/cursor.",
|
|
2939
|
+
"detail": "The migrate path renders the new gdh-warmup skill body for each configured agent. The skill exposes the gdh.authoring.warmup MCP verb (and the gdh lsp warmup CLI verb fallback) so agents can deliberately warm the managed LSP between edits.",
|
|
2940
|
+
"commands": [
|
|
2941
|
+
"gdh migrate --apply"
|
|
2942
|
+
],
|
|
2943
|
+
"validationCommands": [
|
|
2944
|
+
"gdh adapters status"
|
|
2945
|
+
]
|
|
2946
|
+
},
|
|
2947
|
+
{
|
|
2948
|
+
"id": "confirm_warmup_and_stop_surfaces",
|
|
2949
|
+
"kind": "agent_reasoning",
|
|
2950
|
+
"summary": "Confirm the new auto-warmup, Stop barrier, and (Claude only) PostToolBatch coalesce surfaces are wired.",
|
|
2951
|
+
"detail": "Inspect adapter/status output and confirm the rendered authoring hook header reports hook version 10, that .claude/settings.json carries idempotent Stop and PostToolBatch hook entries pointing at the GDH-installed command, and that the Codex authoring block carries the [[hooks.Stop]] entry. Optionally exercise the gdh.authoring.warmup MCP verb to verify it returns one of started | warming | already_warm.",
|
|
2952
|
+
"commands": [
|
|
2953
|
+
"gdh adapters status"
|
|
2954
|
+
],
|
|
2955
|
+
"validationCommands": [
|
|
2956
|
+
"gdh adapters status",
|
|
2957
|
+
"gdh authoring check --mode post-edit --format compact"
|
|
2958
|
+
]
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
"id": "configure_godot_version_floor",
|
|
2962
|
+
"kind": "manual_review",
|
|
2963
|
+
"summary": "Confirm the configured managed Godot binary is 4.5.2+ or 4.6.x.",
|
|
2964
|
+
"detail": "v0.26.0 refuses to launch managed LSP on Godot 4.5.0 or 4.5.1 with reason godot_editor_version_unsupported_for_lsp. Operators with stale GDH_GODOT_EDITOR_BIN pinning an unsupported version should reconfigure to 4.5.2+ or 4.6.x before relying on authoring diagnostics.",
|
|
2965
|
+
"commands": [
|
|
2966
|
+
"gdh status"
|
|
2967
|
+
],
|
|
2968
|
+
"validationCommands": [
|
|
2969
|
+
"gdh status"
|
|
2970
|
+
]
|
|
2971
|
+
}
|
|
2972
|
+
]
|
|
2973
|
+
}
|
|
2827
2974
|
}
|
|
2828
2975
|
]
|
|
2829
2976
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-settings-patch.d.ts","sourceRoot":"","sources":["../src/claude-settings-patch.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,6BAA6B,0BAA0B,CAAC;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,2CAA2C,CAAC;AACvF,eAAO,MAAM,0BAA0B,uRAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"claude-settings-patch.d.ts","sourceRoot":"","sources":["../src/claude-settings-patch.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,6BAA6B,0BAA0B,CAAC;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,2CAA2C,CAAC;AACvF,eAAO,MAAM,0BAA0B,uRAAgC,CAAC;AAgExE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,qCAAqC,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAuCrF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,mCAAmC,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAQnF;AAeD,wBAAgB,uCAAuC,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAiFvF"}
|
|
@@ -176,13 +176,46 @@ export function patchClaudeSettingsForGdhAuthoringHooks(existingContent) {
|
|
|
176
176
|
],
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
// Phase 82 / LSP-03. Install GDH-managed Stop hook idempotently.
|
|
180
|
+
// Foreign Stop entries (other tools' Stop hooks) are preserved verbatim by
|
|
181
|
+
// normalizeGdhAuthoringHookGroups: groups that do not carry the GDH command
|
|
182
|
+
// literal pass through unchanged. Stop entry uses timeout: 60 (vs PostToolUse's
|
|
183
|
+
// 30) so the session-end freshness barrier has headroom for cold managed-LSP
|
|
184
|
+
// startup (see RESEARCH § Pattern 4 "Idempotent Stop Hook Install").
|
|
185
|
+
const stop = normalizeGdhAuthoringHookGroups(Array.isArray(hooks.Stop) ? hooks.Stop : [], { timeout: 60 });
|
|
186
|
+
if (!hasHookCommand(stop, GDH_AUTHORING_HOOK_COMMAND)) {
|
|
187
|
+
stop.push({
|
|
188
|
+
hooks: [
|
|
189
|
+
{
|
|
190
|
+
type: "command",
|
|
191
|
+
command: GDH_AUTHORING_HOOK_COMMAND,
|
|
192
|
+
timeout: 60,
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
});
|
|
182
196
|
}
|
|
183
|
-
|
|
184
|
-
|
|
197
|
+
hooks.Stop = stop;
|
|
198
|
+
// Phase 83 / LSP-09. Install GDH-managed PostToolBatch hook idempotently for Claude.
|
|
199
|
+
// PostToolBatch fires after a batch of parallel tool calls resolves; coalescing N
|
|
200
|
+
// per-edit checks into one is the LSP-09 contract. Same node trampoline literal as
|
|
201
|
+
// PostToolUse + Stop (Pitfall 9 — one hook script dispatches all three event types
|
|
202
|
+
// via hook_event_name in the rendered authoring-hook.js.tpl). Timeout 30 mirrors
|
|
203
|
+
// PostToolUse (post-edit bound CHECK_TIMEOUT_MS = 2500 ms; Claude's hook timeout
|
|
204
|
+
// is in seconds, so 30 s gives 12x headroom over the bounded check). NO matcher
|
|
205
|
+
// field — Claude PostToolBatch does not support matcher per Pattern 2.
|
|
206
|
+
const postToolBatch = normalizeGdhAuthoringHookGroups(Array.isArray(hooks["PostToolBatch"]) ? hooks["PostToolBatch"] : [], { timeout: 30 });
|
|
207
|
+
if (!hasHookCommand(postToolBatch, GDH_AUTHORING_HOOK_COMMAND)) {
|
|
208
|
+
postToolBatch.push({
|
|
209
|
+
hooks: [
|
|
210
|
+
{
|
|
211
|
+
type: "command",
|
|
212
|
+
command: GDH_AUTHORING_HOOK_COMMAND,
|
|
213
|
+
timeout: 30,
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
});
|
|
185
217
|
}
|
|
218
|
+
hooks["PostToolBatch"] = postToolBatch;
|
|
186
219
|
hooks.PostToolUse = postToolUse;
|
|
187
220
|
settings.hooks = hooks;
|
|
188
221
|
return `${JSON.stringify(settings, null, 2)}\n`;
|
|
@@ -205,16 +238,6 @@ function normalizeGdhAuthoringHookGroups(groups, options) {
|
|
|
205
238
|
: { ...group, matcher: options.matcher, hooks: normalizedHooks };
|
|
206
239
|
});
|
|
207
240
|
}
|
|
208
|
-
function removeGdhAuthoringHookGroups(groups) {
|
|
209
|
-
return groups.flatMap((group) => {
|
|
210
|
-
if (!group || !Array.isArray(group.hooks))
|
|
211
|
-
return [group];
|
|
212
|
-
if (!hasHookCommand([group], GDH_AUTHORING_HOOK_COMMAND))
|
|
213
|
-
return [group];
|
|
214
|
-
const hooks = group.hooks.filter((hook) => !(hook.type === "command" && hook.command === GDH_AUTHORING_HOOK_COMMAND));
|
|
215
|
-
return hooks.length > 0 ? [{ ...group, hooks }] : [];
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
241
|
function parseClaudeSettings(existingContent) {
|
|
219
242
|
try {
|
|
220
243
|
const trimmed = existingContent.trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-settings-patch.js","sourceRoot":"","sources":["../src/claude-settings-patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,uBAAuB,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,wCAAwC,CAAC;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,6BAA6B,CAAC;AACxE,MAAM,mCAAmC,GAAG,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"claude-settings-patch.js","sourceRoot":"","sources":["../src/claude-settings-patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAE3E;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,uBAAuB,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,wCAAwC,CAAC;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,6BAA6B,CAAC;AACxE,MAAM,mCAAmC,GAAG,0BAA0B,CAAC;AA6BvE,SAAS,cAAc,CAAC,MAAkC,EAAE,OAAe;IACzE,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;YAAE,SAAS;QACpD,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;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AAC;QACD,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAC5E,OAAO,MAA6B,CAAC;QACvC,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,kCAAkC;IACpC,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -70,6 +70,8 @@ export declare function renderClaudePrepareCommand(pinnedVersion: string): strin
|
|
|
70
70
|
export declare function renderClaudeRunGameCommand(pinnedVersion: string): string;
|
|
71
71
|
export declare function renderManagedCodexProjectSection(pinnedVersion: string): string;
|
|
72
72
|
export declare function renderManagedCodexProjectConfig(existingContent: string | null, pinnedVersion: string): string;
|
|
73
|
+
declare function removeManagedCodexAuthoringHookBlock(content: string): string;
|
|
74
|
+
declare function renderManagedCodexAuthoringHookBlock(): string;
|
|
73
75
|
declare function summarizeProjectLifecycleCompatibility(targetPath: string, surfaces: readonly GdhProjectLifecycleSurfaceStatus[]): GdhProjectLifecycleCompatibilityResult;
|
|
74
76
|
export { CLAUDE_STATUSLINE_RELATIVE_PATH } from "./claude-statusline-render.js";
|
|
75
77
|
export { CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH } from "./claude-update-hook-render.js";
|
|
@@ -84,4 +86,14 @@ export type { GdhBackupAdvisory, GdhDeferredActionStatusEntry, GdhDeferredAction
|
|
|
84
86
|
export { DEFAULT_GRACEFUL_STOP_TIMEOUT_MS, STOP_AND_RESTART_ENV_SUBSET_KEYS, buildProcessRestartProbeFromSnapshot, captureProcessSnapshot, defaultProcessOrchestrationEnvironment, restartFromSnapshot, stopCapturedProcesses, } from "./process-orchestration.js";
|
|
85
87
|
export type { GdhCaptureProcessSnapshotResult, GdhDiscoveredBrokerProcess, GdhDiscoveredMcpProcess, GdhProcessOrchestrationEnvironment, GdhProcessOrchestrationPlatform, GdhRestartFailedRow, GdhRestartFromSnapshotResult, GdhRestartedRow, GdhStopCapturedProcessesResult, GdhStopCapturedProcessesSkipped, } from "./process-orchestration.js";
|
|
86
88
|
export { summarizeProjectLifecycleCompatibility };
|
|
89
|
+
/**
|
|
90
|
+
* Phase 82 / LSP-03. Test-only export of internals to support
|
|
91
|
+
* codex-config-render.test.ts (Plan 82-02 Wave 0 RED test scaffold). Do NOT
|
|
92
|
+
* consume this from production code paths; the public renderers/strippers go
|
|
93
|
+
* through appendManagedCodexAuthoringHookBlock and the regular config patcher.
|
|
94
|
+
*/
|
|
95
|
+
export declare const __testing__: {
|
|
96
|
+
renderManagedCodexAuthoringHookBlock: typeof renderManagedCodexAuthoringHookBlock;
|
|
97
|
+
removeManagedCodexAuthoringHookBlock: typeof removeManagedCodexAuthoringHookBlock;
|
|
98
|
+
};
|
|
87
99
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAeL,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,cAAc,EAInB,KAAK,sCAAsC,EAE3C,KAAK,gCAAgC,EAKrC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAIvB,MAAM,WAAW,CAAC;AAyBnB,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,gCAAgC,CAAC;AAyCxC,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAw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BAA0B,EAC1B,iCAAiC,EACjC,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,8BAA8B,GAC/B,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,iBAAiB,EACjB,4BAA4B,EAC5B,gCAAgC,EAChC,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,gCAAgC,EAChC,gCAAgC,EAChC,oCAAoC,EACpC,sBAAsB,EACtB,sCAAsC,EACtC,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,+BAA+B,EAC/B,0BAA0B,EAC1B,uBAAuB,EACvB,kCAAkC,EAClC,+BAA+B,EAC/B,mBAAmB,EACnB,4BAA4B,EAC5B,eAAe,EACf,8BAA8B,EAC9B,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAE,sCAAsC,EAAE,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,WAAW;;;CAGvB,CAAC"}
|
|
@@ -2253,6 +2253,11 @@ function ensureCodexHooksFeature(content) {
|
|
|
2253
2253
|
return [...lines.slice(0, featuresStart), ...featureLines, ...lines.slice(featuresEnd)].join("\n");
|
|
2254
2254
|
}
|
|
2255
2255
|
function renderManagedCodexAuthoringHookBlock() {
|
|
2256
|
+
// Phase 82 / LSP-03. Render PostToolUse and Stop registrations inside one
|
|
2257
|
+
// BEGIN/END envelope, in that order. The empty line between the two blocks is
|
|
2258
|
+
// for human readability. removeManagedCodexAuthoringHookBlock strips the
|
|
2259
|
+
// entire envelope as a single unit, so re-render replaces both blocks
|
|
2260
|
+
// atomically (byte-identical idempotency).
|
|
2256
2261
|
return [
|
|
2257
2262
|
"# BEGIN GDH managed authoring hooks",
|
|
2258
2263
|
"[[hooks.PostToolUse]]",
|
|
@@ -2261,6 +2266,12 @@ function renderManagedCodexAuthoringHookBlock() {
|
|
|
2261
2266
|
'type = "command"',
|
|
2262
2267
|
`command = ${JSON.stringify(CODEX_AUTHORING_HOOK_COMMAND)}`,
|
|
2263
2268
|
"timeout = 30",
|
|
2269
|
+
"",
|
|
2270
|
+
"[[hooks.Stop]]",
|
|
2271
|
+
"[[hooks.Stop.hooks]]",
|
|
2272
|
+
'type = "command"',
|
|
2273
|
+
`command = ${JSON.stringify(CODEX_AUTHORING_HOOK_COMMAND)}`,
|
|
2274
|
+
"timeout = 60",
|
|
2264
2275
|
"# END GDH managed authoring hooks",
|
|
2265
2276
|
"",
|
|
2266
2277
|
].join("\n");
|
|
@@ -3447,4 +3458,14 @@ export { DEFAULT_GRACEFUL_STOP_TIMEOUT_MS, STOP_AND_RESTART_ENV_SUBSET_KEYS, bui
|
|
|
3447
3458
|
// package should continue to use inspectProjectLifecycleCompatibility, which
|
|
3448
3459
|
// wraps this function with filesystem probing and surface discovery.
|
|
3449
3460
|
export { summarizeProjectLifecycleCompatibility };
|
|
3461
|
+
/**
|
|
3462
|
+
* Phase 82 / LSP-03. Test-only export of internals to support
|
|
3463
|
+
* codex-config-render.test.ts (Plan 82-02 Wave 0 RED test scaffold). Do NOT
|
|
3464
|
+
* consume this from production code paths; the public renderers/strippers go
|
|
3465
|
+
* through appendManagedCodexAuthoringHookBlock and the regular config patcher.
|
|
3466
|
+
*/
|
|
3467
|
+
export const __testing__ = {
|
|
3468
|
+
renderManagedCodexAuthoringHookBlock,
|
|
3469
|
+
removeManagedCodexAuthoringHookBlock,
|
|
3470
|
+
};
|
|
3450
3471
|
//# sourceMappingURL=index.js.map
|