@skillcap/gdh 0.19.5 → 0.20.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 +131 -0
- package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.js +44 -1
- package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.js +51 -16
- package/node_modules/@gdh/adapters/dist/skill-rendering.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/bridge-session.d.ts +21 -0
- package/node_modules/@gdh/cli/dist/bridge-session.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/bridge-session.js +442 -0
- package/node_modules/@gdh/cli/dist/bridge-session.js.map +1 -0
- package/node_modules/@gdh/cli/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/index.js +44 -1
- package/node_modules/@gdh/cli/dist/index.js.map +1 -1
- package/node_modules/@gdh/cli/dist/migrate.d.ts +13 -0
- package/node_modules/@gdh/cli/dist/migrate.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/migrate.js +20 -0
- package/node_modules/@gdh/cli/dist/migrate.js.map +1 -1
- package/node_modules/@gdh/cli/package.json +10 -10
- package/node_modules/@gdh/core/dist/index.d.ts +11 -2
- package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/index.js +2 -2
- 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/dist/guidance.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/guidance.js +10 -0
- package/node_modules/@gdh/docs/dist/guidance.js.map +1 -1
- package/node_modules/@gdh/docs/package.json +2 -2
- package/node_modules/@gdh/mcp/dist/bridge-tools.d.ts +15 -0
- package/node_modules/@gdh/mcp/dist/bridge-tools.d.ts.map +1 -0
- package/node_modules/@gdh/mcp/dist/bridge-tools.js +111 -0
- package/node_modules/@gdh/mcp/dist/bridge-tools.js.map +1 -0
- package/node_modules/@gdh/mcp/dist/index.d.ts +3 -2
- package/node_modules/@gdh/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/mcp/dist/index.js +13 -44
- 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-client.d.ts +32 -0
- package/node_modules/@gdh/runtime/dist/bridge-broker-client.d.ts.map +1 -0
- package/node_modules/@gdh/runtime/dist/bridge-broker-client.js +118 -0
- package/node_modules/@gdh/runtime/dist/bridge-broker-client.js.map +1 -0
- package/node_modules/@gdh/runtime/dist/bridge-broker.d.ts +78 -0
- package/node_modules/@gdh/runtime/dist/bridge-broker.d.ts.map +1 -0
- package/node_modules/@gdh/runtime/dist/bridge-broker.js +587 -0
- package/node_modules/@gdh/runtime/dist/bridge-broker.js.map +1 -0
- package/node_modules/@gdh/runtime/dist/index.d.ts +3 -0
- package/node_modules/@gdh/runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/runtime/dist/index.js +3 -0
- package/node_modules/@gdh/runtime/dist/index.js.map +1 -1
- 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
|
@@ -2088,6 +2088,137 @@
|
|
|
2088
2088
|
}
|
|
2089
2089
|
]
|
|
2090
2090
|
}
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
"version": "0.19.6",
|
|
2094
|
+
"releaseTag": "v0.19.6",
|
|
2095
|
+
"migrationStatus": "required",
|
|
2096
|
+
"summary": "v0.19.6 standardizes shipped GDH agent skill output and adds release-preview guardrails for migration-sensitive generated surfaces. Existing targets need `gdh migrate --apply` because GDH_AGENT_CONTRACT_VERSION moves 4 -> 5.",
|
|
2097
|
+
"releaseHighlights": {
|
|
2098
|
+
"summary": "v0.19.6 makes shipped GDH agent skills more consistent and migration-aware. Status, scan, migrate, and update skills now tell agents to use stable section names, and update previews include an explicit changelog section. Release preview also now flags migration-sensitive managed output changes before release artifacts can pass.",
|
|
2099
|
+
"operatorChanges": [
|
|
2100
|
+
"**Agent responses are more consistent.** GDH-managed status, scan, migrate, and update skills now ask agents to use stable headings and compact sections across Claude, Codex, and Cursor.",
|
|
2101
|
+
"**Update previews surface changelog context.** The update skill now distinguishes preview, changelog, migration work, approval, and result sections so agents present release notes consistently before apply.",
|
|
2102
|
+
"**Migration-sensitive source changes are guarded.** Release preview now tracks generated `gdh-*` skill renderer changes and managed hook/statusline renderer changes as migration-review signals.",
|
|
2103
|
+
"**Release and migration-verifier handoffs inspect migration signals.** Maintainer workflows now require agents to review `migrationSignals.surfaceVersionChanges` and `migrationSignals.generatorVersionIssues` before claiming migration proof is passable."
|
|
2104
|
+
]
|
|
2105
|
+
},
|
|
2106
|
+
"updateContract": {
|
|
2107
|
+
"summary": "Managed targets need release-specific migration for v0.19.6 because the generated agent skill output changed and the managed agent contract surface moved to version 5. After self-update, run `gdh migrate --apply` so GDH refreshes managed skills and instruction surfaces.",
|
|
2108
|
+
"steps": [
|
|
2109
|
+
{
|
|
2110
|
+
"id": "preview_agent_contract_migration",
|
|
2111
|
+
"kind": "mechanical",
|
|
2112
|
+
"summary": "Preview managed agent contract and skill refresh work.",
|
|
2113
|
+
"detail": "Run `gdh migrate` to inspect the target's managed surface state before applying changes. The preview should show the agent contract or generated skill surfaces as needing refresh when they are still on the previous output.",
|
|
2114
|
+
"commands": [
|
|
2115
|
+
"gdh migrate"
|
|
2116
|
+
],
|
|
2117
|
+
"validationCommands": [
|
|
2118
|
+
"gdh status"
|
|
2119
|
+
]
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
"id": "apply_agent_skill_refresh",
|
|
2123
|
+
"kind": "mechanical",
|
|
2124
|
+
"summary": "Refresh generated agent skills and instruction surfaces.",
|
|
2125
|
+
"detail": "Run `gdh migrate --apply` so GDH re-bakes Claude, Codex, and Cursor managed skills with the current structured response guidance and refreshes the managed agent contract marker to version 5.",
|
|
2126
|
+
"commands": [
|
|
2127
|
+
"gdh migrate --apply"
|
|
2128
|
+
],
|
|
2129
|
+
"validationCommands": [
|
|
2130
|
+
"gdh status",
|
|
2131
|
+
"gdh adapters status",
|
|
2132
|
+
"gdh verify drift"
|
|
2133
|
+
]
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
"id": "confirm_agent_response_sections",
|
|
2137
|
+
"kind": "agent_reasoning",
|
|
2138
|
+
"summary": "Confirm the refreshed skill output is the expected v0.19.6 behavior.",
|
|
2139
|
+
"detail": "After migration, inspect status or adapter output when useful and confirm generated skills describe the stable report sections for status, scan, migrate, and update. Do not treat unrelated target drift as a v0.19.6 migration failure unless GDH structured status reports it.",
|
|
2140
|
+
"commands": [
|
|
2141
|
+
"gdh adapters status"
|
|
2142
|
+
],
|
|
2143
|
+
"validationCommands": [
|
|
2144
|
+
"gdh verify drift"
|
|
2145
|
+
]
|
|
2146
|
+
}
|
|
2147
|
+
]
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
"version": "0.20.0",
|
|
2152
|
+
"releaseTag": "v0.20.0",
|
|
2153
|
+
"migrationStatus": "required",
|
|
2154
|
+
"summary": "v0.20.0 moves bridge-session ownership to host-side broker infrastructure and refreshes generated agent guidance for broker recovery. Existing managed targets need `gdh migrate --apply` because GDH_AGENT_CONTRACT_VERSION moves 5 -> 6 and GDH_GUIDANCE_UNIT_VERSION moves 13 -> 14.",
|
|
2155
|
+
"releaseHighlights": {
|
|
2156
|
+
"summary": "v0.20.0 moves runtime bridge-session ownership into target-local host-side broker infrastructure. CLI and MCP clients can reconnect to the same GDH-owned bridge session after the original client process exits, while stale broker state is reported through status, doctor, and prune guidance.",
|
|
2157
|
+
"operatorChanges": [
|
|
2158
|
+
"**Bridge sessions are broker-owned.** GDH bridge-session commands and MCP bridge tools now route through the local broker so a fresh CLI or MCP client can recover a healthy broker-owned session.",
|
|
2159
|
+
"**Broker cleanup is explicit.** `gdh status`, `gdh bridge session doctor`, and `gdh bridge session prune --stale` distinguish healthy, stale, and pre-broker session state without asking agents to manually kill editor or Godot processes.",
|
|
2160
|
+
"**Generated guidance explains the transition.** Agent skills and authoring guidance now describe pre-broker active session limits, stale old-version broker metadata, and when project-side bridge repair is or is not needed.",
|
|
2161
|
+
"**Release gates prove broker portability.** Public-release checks run broker platform and MCP/CLI recovery tests when the release migration manifest includes `broker_transition`."
|
|
2162
|
+
]
|
|
2163
|
+
},
|
|
2164
|
+
"updateContract": {
|
|
2165
|
+
"summary": "Managed targets need release-specific migration for v0.20.0 because generated agent skill and guidance surfaces changed for broker recovery. After self-update, run `gdh migrate --apply`, then use status and bridge-session doctor output to classify broker state.",
|
|
2166
|
+
"steps": [
|
|
2167
|
+
{
|
|
2168
|
+
"id": "self_update_broker_package",
|
|
2169
|
+
"kind": "mechanical",
|
|
2170
|
+
"summary": "Install the broker-capable GDH package.",
|
|
2171
|
+
"detail": "Run the normal GDH self-update or package update path. The broker starts on demand from GDH bridge-session clients; users do not start a separate MCP or broker service by hand.",
|
|
2172
|
+
"commands": [
|
|
2173
|
+
"gdh self-update --apply"
|
|
2174
|
+
],
|
|
2175
|
+
"validationCommands": [
|
|
2176
|
+
"gdh status"
|
|
2177
|
+
]
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"id": "refresh_generated_guidance",
|
|
2181
|
+
"kind": "mechanical",
|
|
2182
|
+
"summary": "Re-bake generated agent skills and authoring guidance.",
|
|
2183
|
+
"detail": "Run `gdh migrate --apply` so managed agent contract version 6 and guidance unit version 14 are written to the target. This refreshes broker recovery, stale-MCP recovery, prune, and no-unnecessary-bridge-repair wording.",
|
|
2184
|
+
"commands": [
|
|
2185
|
+
"gdh migrate --apply"
|
|
2186
|
+
],
|
|
2187
|
+
"validationCommands": [
|
|
2188
|
+
"gdh status",
|
|
2189
|
+
"gdh adapters status",
|
|
2190
|
+
"gdh verify drift"
|
|
2191
|
+
]
|
|
2192
|
+
},
|
|
2193
|
+
{
|
|
2194
|
+
"id": "classify_bridge_session_state",
|
|
2195
|
+
"kind": "agent_reasoning",
|
|
2196
|
+
"summary": "Distinguish healthy broker state from stale or pre-broker state.",
|
|
2197
|
+
"detail": "Use `gdh bridge session doctor` and `gdh bridge session list` to identify healthy broker-owned sessions, stale old-version broker metadata, and pre-broker active bridge sessions. Pre-broker active bridge sessions are not recoverable through broker clients after update.",
|
|
2198
|
+
"commands": [
|
|
2199
|
+
"gdh bridge session doctor",
|
|
2200
|
+
"gdh bridge session list"
|
|
2201
|
+
],
|
|
2202
|
+
"validationCommands": [
|
|
2203
|
+
"gdh status",
|
|
2204
|
+
"gdh bridge session doctor"
|
|
2205
|
+
]
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"id": "prune_stale_broker_metadata",
|
|
2209
|
+
"kind": "mechanical",
|
|
2210
|
+
"summary": "Clean only stale GDH-owned broker metadata.",
|
|
2211
|
+
"detail": "Run prune only when doctor reports stale GDH broker metadata. Do not manually kill editor, Godot, or unrelated user processes. Host-side broker recovery does not require `gdh bridge repair`; repair is only for managed Godot addon drift.",
|
|
2212
|
+
"commands": [
|
|
2213
|
+
"gdh bridge session prune --stale"
|
|
2214
|
+
],
|
|
2215
|
+
"validationCommands": [
|
|
2216
|
+
"gdh bridge session doctor",
|
|
2217
|
+
"gdh status"
|
|
2218
|
+
]
|
|
2219
|
+
}
|
|
2220
|
+
]
|
|
2221
|
+
}
|
|
2091
2222
|
}
|
|
2092
2223
|
]
|
|
2093
2224
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAcL,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,cAAc,EAInB,KAAK,sCAAsC,EAE3C,KAAK,gCAAgC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAcL,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,cAAc,EAInB,KAAK,sCAAsC,EAE3C,KAAK,gCAAgC,EAKrC,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAIvB,MAAM,WAAW,CAAC;AA+DnB,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,eAAe,wCAa1B,CAAC;AAEH,eAAO,MAAM,gBAAgB,wCAIoB,CAAC;AAClD,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,kCAAkC,wCAAwC,CAAC;AACxF,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,wBAAwB,qBAAqB,CAAC;AAC3D,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AACvE,eAAO,MAAM,kCA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,wBAAgB,0BAA0B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED,wBAAgB,0BAA0B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAExE;AA83ED,wBAAgB,gCAAgC,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAQ9E;AAED,wBAAgB,+BAA+B,CAC7C,eAAe,EAAE,MAAM,GAAG,IAAI,EAC9B,aAAa,EAAE,MAAM,GACpB,MAAM,CAOR;AAyvCD,iBAAS,sCAAsC,CAC7C,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,SAAS,gCAAgC,EAAE,GACpD,sCAAsC,CAmCxC;AAiPD,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,sCAAsC,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,EACL,6BAA6B,EAC7B,mCAAmC,EACnC,4BAA4B,EAC5B,kCAAkC,GACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,sBAAsB,EAC3B,gBAAgB,GACjB,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAE,sCAAsC,EAAE,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { readProjectConfig, readWorktreeState, resolveAuthoringStatus, resolvePi
|
|
|
8
8
|
import { assertProjectLifecycleCompatibilityInvariant, definePackageBoundary, GDH_AGENT_CONTRACT_VERSION, GDH_CURSOR_RULE_VERSION, GDH_GUIDANCE_INDEX_VERSION, GDH_GUIDANCE_UNIT_VERSION, GDH_PROJECT_CONFIG_VERSION, GDH_RECIPE_SCHEMA_VERSION, GDH_RULES_SCHEMA_VERSION, GDH_SCENARIO_SCHEMA_VERSION, resolveConfiguredGodotEditorBin, resolveCurrentGdhInstall, resolveGdhProductMetadata, } from "@gdh/core";
|
|
9
9
|
import { createDefaultGuidanceUnits, createDefaultRulesDocument, getGuidanceStatus, readRulesDocument, renderRulesYaml, resolveGuidanceQuery, resolveRecoveryHints, } from "@gdh/docs";
|
|
10
10
|
import { inspectGuidanceAudit } from "@gdh/observability";
|
|
11
|
-
import { inspectRuntimeBridgeSurface, inspectRuntimeKnowledgeSurface } from "@gdh/runtime";
|
|
11
|
+
import { inspectRuntimeBridgeBroker, inspectRuntimeBridgeSurface, inspectRuntimeKnowledgeSurface, } from "@gdh/runtime";
|
|
12
12
|
import { readInventoryCacheOrScan } from "@gdh/scan";
|
|
13
13
|
import { CLAUDE_SETTINGS_RELATIVE_PATH, patchClaudeSettingsForGdhAuthoringHooks, patchClaudeSettingsForGdhSessionStart, patchClaudeSettingsForGdhStatusline, } from "./claude-settings-patch.js";
|
|
14
14
|
import { CLAUDE_AUTHORING_HOOK_RELATIVE_PATH, CODEX_AUTHORING_HOOK_COMMAND, CODEX_AUTHORING_HOOK_RELATIVE_PATH, renderGdhAuthoringHook, } from "./authoring-hook-render.js";
|
|
@@ -255,6 +255,9 @@ export async function inspectProjectLifecycleCompatibility(targetPath) {
|
|
|
255
255
|
export async function buildGdhStatusResult(targetPath) {
|
|
256
256
|
const context = await buildAuthoringContext(targetPath);
|
|
257
257
|
const projectLifecycle = await inspectProjectLifecycleCompatibility(targetPath);
|
|
258
|
+
const brokerInspection = await inspectRuntimeBridgeBroker({
|
|
259
|
+
targetPath: context.status.targetPath,
|
|
260
|
+
});
|
|
258
261
|
const runtimeKnowledge = await inspectRuntimeKnowledgeSurface({
|
|
259
262
|
targetPath: context.status.targetPath,
|
|
260
263
|
runtimeKnowledgePath: context.projectConfig?.runtimeKnowledge.path ?? null,
|
|
@@ -268,10 +271,50 @@ export async function buildGdhStatusResult(targetPath) {
|
|
|
268
271
|
detectedProjects,
|
|
269
272
|
product: resolveGdhProductMetadata(),
|
|
270
273
|
projectLifecycle,
|
|
274
|
+
runtimeBridgeBroker: summarizeRuntimeBridgeBrokerTransition(brokerInspection.broker),
|
|
271
275
|
runtimeKnowledge,
|
|
272
276
|
recoveryHints,
|
|
273
277
|
};
|
|
274
278
|
}
|
|
279
|
+
function summarizeRuntimeBridgeBrokerTransition(broker) {
|
|
280
|
+
const state = broker.lifecycle === "ready"
|
|
281
|
+
? "supported"
|
|
282
|
+
: broker.lifecycle === "missing"
|
|
283
|
+
? "missing"
|
|
284
|
+
: broker.lifecycle === "stale"
|
|
285
|
+
? "stale"
|
|
286
|
+
: broker.lifecycle === "incompatible"
|
|
287
|
+
? "incompatible"
|
|
288
|
+
: "unavailable";
|
|
289
|
+
return {
|
|
290
|
+
state,
|
|
291
|
+
summary: summarizeRuntimeBridgeBrokerLifecycleForStatus(broker.lifecycle),
|
|
292
|
+
broker,
|
|
293
|
+
recoveryCommand: ["gdh", "bridge", "session", "doctor"],
|
|
294
|
+
cleanupCommand: ["gdh", "bridge", "session", "prune"],
|
|
295
|
+
notes: [
|
|
296
|
+
"Post-broker bridge sessions are broker-owned and reconnectable through CLI or MCP clients.",
|
|
297
|
+
"Pre-broker active bridge sessions lived in MCP process memory and cannot be recovered after update or MCP restart.",
|
|
298
|
+
"Host-side broker support does not require `gdh bridge repair` unless GDH reports runtime bridge surface drift separately.",
|
|
299
|
+
"Broker metadata and token files live under `.gdh-state/` and must stay untracked.",
|
|
300
|
+
],
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
function summarizeRuntimeBridgeBrokerLifecycleForStatus(lifecycle) {
|
|
304
|
+
if (lifecycle === "ready") {
|
|
305
|
+
return "Runtime bridge broker is ready for reconnectable CLI/MCP bridge sessions.";
|
|
306
|
+
}
|
|
307
|
+
if (lifecycle === "missing") {
|
|
308
|
+
return "Runtime bridge broker support is available; no broker is running for this target yet.";
|
|
309
|
+
}
|
|
310
|
+
if (lifecycle === "stale") {
|
|
311
|
+
return "Runtime bridge broker metadata is stale; run `gdh bridge session prune` for safe GDH-owned cleanup.";
|
|
312
|
+
}
|
|
313
|
+
if (lifecycle === "incompatible") {
|
|
314
|
+
return "Runtime bridge broker metadata belongs to an incompatible target, protocol, or GDH version.";
|
|
315
|
+
}
|
|
316
|
+
return "Runtime bridge broker state is unavailable; inspect with `gdh bridge session doctor`.";
|
|
317
|
+
}
|
|
275
318
|
export async function createGsdSnapshot(targetPath, options = {}) {
|
|
276
319
|
const context = await buildAuthoringContext(targetPath);
|
|
277
320
|
const effectiveRepoState = deriveRepoState(context);
|