@skillcap/gdh 3.0.1 → 3.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 +1 -0
- package/RELEASE-SPAN-UPDATE-CONTRACTS.json +147 -0
- package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.js +21 -8
- package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
- package/node_modules/@gdh/adapters/package.json +8 -8
- 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 +195 -4
- package/node_modules/@gdh/cli/dist/index.js.map +1 -1
- package/node_modules/@gdh/cli/package.json +11 -10
- package/node_modules/@gdh/core/dist/bridge-substrate.d.ts +20 -0
- package/node_modules/@gdh/core/dist/bridge-substrate.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/bridge-substrate.js +40 -0
- package/node_modules/@gdh/core/dist/bridge-substrate.js.map +1 -0
- package/node_modules/@gdh/core/dist/index.d.ts +28 -30
- package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/index.js +16 -12
- package/node_modules/@gdh/core/dist/index.js.map +1 -1
- package/node_modules/@gdh/core/package.json +1 -1
- package/node_modules/@gdh/docs/package.json +2 -2
- package/node_modules/@gdh/editor/dist/index.d.ts +205 -0
- package/node_modules/@gdh/editor/dist/index.d.ts.map +1 -0
- package/node_modules/@gdh/editor/dist/index.js +1064 -0
- package/node_modules/@gdh/editor/dist/index.js.map +1 -0
- package/node_modules/@gdh/editor/package.json +17 -0
- package/node_modules/@gdh/mcp/dist/index.d.ts +1 -1
- package/node_modules/@gdh/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/mcp/dist/index.js +104 -7
- package/node_modules/@gdh/mcp/dist/index.js.map +1 -1
- package/node_modules/@gdh/mcp/package.json +10 -8
- package/node_modules/@gdh/observability/package.json +2 -2
- package/node_modules/@gdh/runtime/dist/bridge-broker-contract.d.ts +2 -2
- package/node_modules/@gdh/runtime/dist/bridge-broker-contract.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-broker-contract.js +2 -37
- package/node_modules/@gdh/runtime/dist/bridge-broker-contract.js.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-surface.d.ts +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-surface.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/bridge-surface.js +396 -73
- package/node_modules/@gdh/runtime/dist/bridge-surface.js.map +1 -1
- package/node_modules/@gdh/runtime/dist/index.d.ts +2 -3
- package/node_modules/@gdh/runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/index.js +2 -3
- package/node_modules/@gdh/runtime/dist/index.js.map +1 -1
- package/node_modules/@gdh/runtime/package.json +3 -2
- package/node_modules/@gdh/scan/package.json +3 -3
- package/node_modules/@gdh/verify/package.json +7 -7
- package/package.json +13 -11
package/INSTALL-BUNDLE.json
CHANGED
package/README.md
CHANGED
|
@@ -51,6 +51,7 @@ gdh self-update --dry-run --target .
|
|
|
51
51
|
|
|
52
52
|
- [Install and update](./docs/development/install-and-update.md)
|
|
53
53
|
- [Advanced CLI usage](./docs/development/advanced-cli-usage.md)
|
|
54
|
+
- [Editor Bridge](./docs/development/editor-bridge.md)
|
|
54
55
|
- [Runtime support matrix](./docs/development/runtime-support-matrix.md)
|
|
55
56
|
- [Runtime release readiness](./docs/development/runtime-release-readiness.md)
|
|
56
57
|
- [All docs](./docs/README.md)
|
|
@@ -3832,6 +3832,153 @@
|
|
|
3832
3832
|
}
|
|
3833
3833
|
]
|
|
3834
3834
|
}
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
"version": "3.0.2",
|
|
3838
|
+
"releaseTag": "v3.0.2",
|
|
3839
|
+
"migrationStatus": "required",
|
|
3840
|
+
"summary": "v3.0.2 updates managed Codex project config for Codex CLI 0.129.0 compatibility. Codex deprecated [features].codex_hooks in favor of [features].hooks; v3.0.1 still rendered codex_hooks = true into .codex/config.toml. This release renders hooks = true, removes existing codex_hooks feature lines during GDH-managed config refresh, and preserves unrelated feature flags. GDH_AGENT_CONTRACT_VERSION moves 23 -> 24 so existing managed targets re-bake generated Codex config and the managed AGENTS.md marker. No project config schema change is introduced. No class-2 or class-3 migration registry entry is required; this is class-1 deterministic re-bake.",
|
|
3841
|
+
"releaseHighlights": {
|
|
3842
|
+
"summary": "v3.0.2 is a patch release for Codex CLI compatibility. Codex CLI 0.129.0 warns that `[features].codex_hooks` is deprecated and the current feature flag is `[features].hooks`. GDH v3.0.1 still rendered the deprecated key into managed `.codex/config.toml`, so Codex users saw a warning at startup even though the managed hook block itself was present. This release changes the Codex config renderer to emit `hooks = true`, removes legacy `codex_hooks = ...` lines when refreshing the managed project config, and bumps `GDH_AGENT_CONTRACT_VERSION` 23 -> 24 so existing managed targets re-bake away from the deprecated flag on update.",
|
|
3843
|
+
"operatorChanges": [
|
|
3844
|
+
"**Codex feature flag updated.** New or refreshed `.codex/config.toml` files",
|
|
3845
|
+
"**Deprecated flag removed during repair.** When GDH refreshes an existing",
|
|
3846
|
+
"**Migration-chain coverage locks the behavior.** The Codex migration-chain"
|
|
3847
|
+
]
|
|
3848
|
+
},
|
|
3849
|
+
"updateContract": {
|
|
3850
|
+
"summary": "Existing managed targets should self-update to v3.0.2 and re-bake managed agent surfaces at GDH_AGENT_CONTRACT_VERSION 24. Codex-managed targets should refresh .codex/config.toml so [features].hooks = true replaces the deprecated codex_hooks feature flag.",
|
|
3851
|
+
"steps": [
|
|
3852
|
+
{
|
|
3853
|
+
"id": "install_v3_0_2",
|
|
3854
|
+
"kind": "mechanical",
|
|
3855
|
+
"summary": "Install the v3.0.2 GDH package.",
|
|
3856
|
+
"detail": "Run gdh self-update --apply or invoke /gdh-update so the target uses the package with the current Codex hooks feature flag renderer.",
|
|
3857
|
+
"commands": [
|
|
3858
|
+
"gdh self-update --apply"
|
|
3859
|
+
],
|
|
3860
|
+
"validationCommands": [
|
|
3861
|
+
"gdh status"
|
|
3862
|
+
]
|
|
3863
|
+
},
|
|
3864
|
+
{
|
|
3865
|
+
"id": "rebake_codex_config",
|
|
3866
|
+
"kind": "mechanical",
|
|
3867
|
+
"summary": "Re-bake managed Codex config and agent contract surfaces at GDH_AGENT_CONTRACT_VERSION 24.",
|
|
3868
|
+
"detail": "Run gdh migrate --apply when status reports pending managed-surface work. This refreshes .codex/config.toml to use hooks = true and removes the deprecated codex_hooks feature flag from the managed config.",
|
|
3869
|
+
"commands": [
|
|
3870
|
+
"gdh migrate --apply"
|
|
3871
|
+
],
|
|
3872
|
+
"validationCommands": [
|
|
3873
|
+
"gdh adapters status <target>",
|
|
3874
|
+
"gdh verify drift <target>"
|
|
3875
|
+
]
|
|
3876
|
+
},
|
|
3877
|
+
{
|
|
3878
|
+
"id": "repair_codex_config_directly",
|
|
3879
|
+
"kind": "mechanical",
|
|
3880
|
+
"summary": "Repair Codex config directly if adapter status reports a non-ready hook-config surface.",
|
|
3881
|
+
"detail": "Run gdh adapters install <target> --agent codex after updating. The planner refreshes .codex/config.toml with hooks = true, preserves unrelated feature flags, and keeps the managed GDH PostToolUse and Stop hook block.",
|
|
3882
|
+
"commands": [
|
|
3883
|
+
"gdh adapters install <target> --agent codex"
|
|
3884
|
+
],
|
|
3885
|
+
"validationCommands": [
|
|
3886
|
+
"gdh adapters status <target>"
|
|
3887
|
+
]
|
|
3888
|
+
},
|
|
3889
|
+
{
|
|
3890
|
+
"id": "codex_trust_check",
|
|
3891
|
+
"kind": "manual_review",
|
|
3892
|
+
"summary": "Codex CLI users should confirm hook trust after .codex/config.toml changes.",
|
|
3893
|
+
"detail": "If Codex shows the repaired GDH hook entries as new or Modified in /hooks, trust them there. GDH can repair the config file, but it cannot inspect Codex's internal hook trust hash.",
|
|
3894
|
+
"commands": [],
|
|
3895
|
+
"validationCommands": []
|
|
3896
|
+
}
|
|
3897
|
+
]
|
|
3898
|
+
}
|
|
3899
|
+
},
|
|
3900
|
+
{
|
|
3901
|
+
"version": "3.1.0",
|
|
3902
|
+
"releaseTag": "v3.1.0",
|
|
3903
|
+
"migrationStatus": "required",
|
|
3904
|
+
"summary": "v3.1.0 adds the GDH editor bridge and exact-worktree editor session adoption. The managed Godot addon remains one addon under addons/gdh_bridge/, now with separate runtime and editor components composed by plugin.gd. GDH_RUNTIME_BRIDGE_SURFACE_VERSION moves 12 -> 14 so existing managed bridge targets re-bake or repair the bridge addon, generated bridge manifest, plugin.cfg/plugin.gd, autoload registration, and [editor_plugins] registration before editor operations are treated as healthy.",
|
|
3905
|
+
"releaseHighlights": {
|
|
3906
|
+
"summary": "v3.1.0 adds the editor bridge: a Godot-editor-backed authoring surface that lets agents inspect editor state and perform bounded scene/resource operations through Godot APIs instead of editing `.tscn` and `.tres` text directly. The release ships editor session adoption for already-open Godot editors that belong to the exact target/worktree, plus managed headless editor launch when no compatible editor is open. Editor-specific MCP tools lazily ensure this session; generic status and documentation tools do not launch the editor as a side effect. The managed Godot addon remains one addon under `addons/gdh_bridge/`. Runtime and editor bridge pieces are separated inside that addon, and the Godot-required `plugin.gd` composition root owns both pieces.",
|
|
3907
|
+
"operatorChanges": [
|
|
3908
|
+
"**Editor bridge MCP tools.** Agents can use `editor.session.status` and",
|
|
3909
|
+
"**CLI smoke-test commands.** Maintainers can run `gdh editor session status`",
|
|
3910
|
+
"**Exact-worktree editor adoption.** GDH adopts an already-open editor only",
|
|
3911
|
+
"**Managed headless fallback.** If no compatible editor is registered, GDH can",
|
|
3912
|
+
"**One managed addon.** Editor support ships inside the existing",
|
|
3913
|
+
"**Bounded v1 operation catalog.** The first catalog includes scene creation,"
|
|
3914
|
+
]
|
|
3915
|
+
},
|
|
3916
|
+
"updateContract": {
|
|
3917
|
+
"summary": "Existing managed targets should self-update to v3.1.0, then let GDH migrate or repair the managed bridge addon when lifecycle or bridge status reports runtime bridge surface drift. Editor operations require the current single GDH addon, autoload registration, [editor_plugins] registration, and an exact-worktree adopted or managed headless editor session.",
|
|
3918
|
+
"steps": [
|
|
3919
|
+
{
|
|
3920
|
+
"id": "install_v3_1_0",
|
|
3921
|
+
"kind": "mechanical",
|
|
3922
|
+
"summary": "Install the v3.1.0 GDH package.",
|
|
3923
|
+
"detail": "Run the normal GDH update flow so the target uses the package that knows the editor bridge operation catalog and runtime bridge surface version 14.",
|
|
3924
|
+
"commands": [
|
|
3925
|
+
"gdh self-update --apply"
|
|
3926
|
+
],
|
|
3927
|
+
"validationCommands": [
|
|
3928
|
+
"gdh status"
|
|
3929
|
+
]
|
|
3930
|
+
},
|
|
3931
|
+
{
|
|
3932
|
+
"id": "apply_managed_surface_migration",
|
|
3933
|
+
"kind": "mechanical",
|
|
3934
|
+
"summary": "Apply pending managed-surface migration work.",
|
|
3935
|
+
"detail": "Run migrate when lifecycle status reports pending managed-surface work. This refreshes generated agent surfaces as needed and lets GDH plan or apply current managed bridge output for the configured target.",
|
|
3936
|
+
"commands": [
|
|
3937
|
+
"gdh migrate --apply"
|
|
3938
|
+
],
|
|
3939
|
+
"validationCommands": [
|
|
3940
|
+
"gdh status",
|
|
3941
|
+
"gdh verify drift <target>"
|
|
3942
|
+
]
|
|
3943
|
+
},
|
|
3944
|
+
{
|
|
3945
|
+
"id": "repair_bridge_addon_when_drifted",
|
|
3946
|
+
"kind": "mechanical",
|
|
3947
|
+
"summary": "Repair the managed bridge addon when bridge status reports runtime bridge drift.",
|
|
3948
|
+
"detail": "Run bridge repair only when GDH reports project-side runtime bridge surface drift. The repair path rewrites the single addons/gdh_bridge/ addon to the current runtime/editor composition, bridge manifest version 14, plugin.cfg/plugin.gd shape, GDHBridge autoload registration, and [editor_plugins] registration.",
|
|
3949
|
+
"commands": [
|
|
3950
|
+
"gdh bridge repair <target>"
|
|
3951
|
+
],
|
|
3952
|
+
"validationCommands": [
|
|
3953
|
+
"gdh bridge status <target>",
|
|
3954
|
+
"gdh status"
|
|
3955
|
+
]
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
"id": "verify_editor_session_surface",
|
|
3959
|
+
"kind": "agent_reasoning",
|
|
3960
|
+
"summary": "Verify editor operations use the exact target/worktree editor session.",
|
|
3961
|
+
"detail": "For editor-specific work, inspect editor session status after opening the target in Godot or let the editor operation ensure a managed headless session. Adopted sessions are valid only when metadata points to the exact target/worktree; otherwise GDH should launch or report the managed session path for editor operations.",
|
|
3962
|
+
"commands": [
|
|
3963
|
+
"gdh editor session status [target]"
|
|
3964
|
+
],
|
|
3965
|
+
"validationCommands": [
|
|
3966
|
+
"gdh editor session status [target]"
|
|
3967
|
+
]
|
|
3968
|
+
},
|
|
3969
|
+
{
|
|
3970
|
+
"id": "manual_editor_plugin_enable_if_needed",
|
|
3971
|
+
"kind": "manual_review",
|
|
3972
|
+
"summary": "Enable the GDH bridge plugin in Godot if Godot has not loaded it yet.",
|
|
3973
|
+
"detail": "GDH writes the managed plugin registration, but Godot may still require the editor to reload or the operator to enable the GDH bridge plugin before adopted editor metadata and GDHBridge runtime registration are visible. Do this only when GDH status or bridge/editor session status reports the plugin is not active after repair.",
|
|
3974
|
+
"commands": [],
|
|
3975
|
+
"validationCommands": [
|
|
3976
|
+
"gdh bridge status <target>",
|
|
3977
|
+
"gdh editor session status [target]"
|
|
3978
|
+
]
|
|
3979
|
+
}
|
|
3980
|
+
]
|
|
3981
|
+
}
|
|
3835
3982
|
}
|
|
3836
3983
|
]
|
|
3837
3984
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAcL,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EAIjC,KAAK,sCAAsC,EAE3C,KAAK,gCAAgC,EAKrC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAIvB,MAAM,WAAW,CAAC;AAyBnB,OAAO,EAEL,KAAK,sBAAsB,EAC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AChC,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAE,sCAAsC,EAAE,CAAC"}
|
|
@@ -604,7 +604,7 @@ function inspectCodexAuthoringHookConfig(targetPath, content, enabled) {
|
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
const ready = content !== null &&
|
|
607
|
-
/^\s*
|
|
607
|
+
/^\s*hooks\s*=\s*true\s*$/m.test(content) &&
|
|
608
608
|
content.includes("# BEGIN GDH managed authoring hooks") &&
|
|
609
609
|
content.includes(GDH_AUTHORING_HOOK_RELATIVE_PATH);
|
|
610
610
|
return createSurfaceStatus({
|
|
@@ -1983,7 +1983,7 @@ function ensureCodexHooksFeature(content) {
|
|
|
1983
1983
|
const featuresStart = lines.findIndex((line) => /^\[features\]\s*$/.test(line));
|
|
1984
1984
|
if (featuresStart === -1) {
|
|
1985
1985
|
const separator = content.trim().length > 0 ? "\n\n" : "";
|
|
1986
|
-
return `${content}${separator}[features]\
|
|
1986
|
+
return `${content}${separator}[features]\nhooks = true`;
|
|
1987
1987
|
}
|
|
1988
1988
|
let featuresEnd = lines.length;
|
|
1989
1989
|
for (let i = featuresStart + 1; i < lines.length; i++) {
|
|
@@ -1993,14 +1993,27 @@ function ensureCodexHooksFeature(content) {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
1995
|
const featureLines = lines.slice(featuresStart, featuresEnd);
|
|
1996
|
-
const
|
|
1997
|
-
|
|
1998
|
-
|
|
1996
|
+
const updatedFeatureLines = [];
|
|
1997
|
+
let hooksIndex = -1;
|
|
1998
|
+
for (const line of featureLines) {
|
|
1999
|
+
if (/^\s*codex_hooks\s*=/.test(line)) {
|
|
2000
|
+
continue;
|
|
2001
|
+
}
|
|
2002
|
+
if (/^\s*hooks\s*=/.test(line)) {
|
|
2003
|
+
hooksIndex = updatedFeatureLines.length;
|
|
2004
|
+
updatedFeatureLines.push("hooks = true");
|
|
2005
|
+
continue;
|
|
2006
|
+
}
|
|
2007
|
+
updatedFeatureLines.push(line);
|
|
1999
2008
|
}
|
|
2000
|
-
|
|
2001
|
-
|
|
2009
|
+
if (hooksIndex === -1) {
|
|
2010
|
+
updatedFeatureLines.push("hooks = true");
|
|
2002
2011
|
}
|
|
2003
|
-
return [
|
|
2012
|
+
return [
|
|
2013
|
+
...lines.slice(0, featuresStart),
|
|
2014
|
+
...updatedFeatureLines,
|
|
2015
|
+
...lines.slice(featuresEnd),
|
|
2016
|
+
].join("\n");
|
|
2004
2017
|
}
|
|
2005
2018
|
function extractManagedCodexSection(content) {
|
|
2006
2019
|
const lines = content.split("\n");
|