@skillcap/gdh 0.26.10 → 2.0.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 -1
- package/RELEASE-SPAN-UPDATE-CONTRACTS.json +125 -0
- package/node_modules/@gdh/adapters/dist/codex-authoring-hook-block.d.ts +16 -0
- package/node_modules/@gdh/adapters/dist/codex-authoring-hook-block.d.ts.map +1 -0
- package/node_modules/@gdh/adapters/dist/codex-authoring-hook-block.js +40 -0
- package/node_modules/@gdh/adapters/dist/codex-authoring-hook-block.js.map +1 -0
- package/node_modules/@gdh/adapters/dist/index.d.ts +2 -30
- package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.js +99 -455
- package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.js +1 -1
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts +4 -13
- package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.js +36 -98
- 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/index.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/index.js +16 -23
- 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 +1 -4
- package/node_modules/@gdh/cli/dist/migrate.js.map +1 -1
- package/node_modules/@gdh/cli/dist/setup.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/setup.js +6 -12
- package/node_modules/@gdh/cli/dist/setup.js.map +1 -1
- package/node_modules/@gdh/cli/package.json +10 -10
- package/node_modules/@gdh/core/dist/index.d.ts +18 -5
- package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/index.js +15 -6
- package/node_modules/@gdh/core/dist/index.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.d.ts +18 -54
- 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 +12 -67
- 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 +11 -22
- 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 +36 -38
- 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/recovery-hints.d.ts +18 -4
- package/node_modules/@gdh/docs/dist/recovery-hints.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/recovery-hints.js +32 -34
- package/node_modules/@gdh/docs/dist/recovery-hints.js.map +1 -1
- package/node_modules/@gdh/docs/package.json +2 -2
- 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/dist/onboard.js +2 -2
- 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 +7 -7
- package/package.json +11 -11
package/INSTALL-BUNDLE.json
CHANGED
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ GDH writes the project guidance, agent skill surfaces, MCP config, and local sta
|
|
|
25
25
|
|
|
26
26
|
- Node.js 24 or newer.
|
|
27
27
|
- A local Godot project, currently focused on Godot 4.4 through 4.6.
|
|
28
|
-
- A supported AI coding agent: Codex
|
|
28
|
+
- A supported AI coding agent: Codex or Claude.
|
|
29
29
|
- Optional: `GDH_GODOT_EDITOR_BIN` for Godot import refresh or direct local runtime checks.
|
|
30
30
|
- Optional: Docker for the Docker-backed rendered runtime path.
|
|
31
31
|
|
|
@@ -3532,6 +3532,131 @@
|
|
|
3532
3532
|
}
|
|
3533
3533
|
]
|
|
3534
3534
|
}
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"version": "1.0.0",
|
|
3538
|
+
"releaseTag": "v1.0.0",
|
|
3539
|
+
"migrationStatus": "required",
|
|
3540
|
+
"summary": "v1.0.0 contracts the GDH adapter surface. Two breaking changes drive the major bump: cursor is hard-deleted as a supported adapter target (no compatibility shim) and gdh-migrate becomes agent-invoked-only (hidden from the user slash-menu and called internally by /gdh-update). GDH_AGENT_CONTRACT_VERSION moves 19 -> 20 to drive a managed-target rebake covering cursor removal, the migrate-as-agent-only switch, and the per-agent approval narrative for /gdh-update and /gdh-migrate (Claude AskUserQuestion / Codex request_user_input). The retired-managed-surface cleanup planner enumerates content-checked .cursor/* deletions so legacy targets that have no render-inventory.json are also swept; user-authored .cursor/ content is preserved verbatim. No new class-2 or class-3 migration registry entry is introduced.",
|
|
3541
|
+
"releaseHighlights": {
|
|
3542
|
+
"summary": "v1.0.0 contracts the GDH adapter surface and tightens the human/agent boundary. Two breaking changes drive the major bump: - **Cursor is no longer a supported GDH adapter target.** The cursor agent is hard-deleted across source, tests, fixtures, docs, and managed renderers. Existing managed targets that ran a pre-v1.0 GDH have their `.cursor/*` GDH-rendered files swept on the next `gdh self-update` / `gdh migrate --apply`. - **`gdh-migrate` is now agent-invoked-only.** It is hidden from the user slash-menu (`user-invocable: false` for Claude, equivalent for Codex) and called internally by `/gdh-update`. Humans use `/gdh-update`; the migrate sub-skill is the agent-driven half of the same flow. Together with the per-agent approval narrative, recovery-hint routing, and managed-skill cleanup that ride along, v1.0.0 is the first release that consistently models the agent-as-caller contract: the agent runs the workflow with explicit per-agent approval mechanisms (`AskUserQuestion` for Claude, `request_user_input` for Codex), and the human triggers the workflow but is not asked to remember CLI mechanics.",
|
|
3543
|
+
"operatorChanges": [
|
|
3544
|
+
"**Cursor adapter removed (breaking).** `gdh setup`, `gdh adapters install`, `gdh adapters status`, `gdh status`, and skill rendering no longer recognise cursor. Operators on the cursor target must migrate to Claude or Codex; there is no in-place compatibility shim.",
|
|
3545
|
+
"**`/gdh-migrate` slash command is hidden (breaking).** The skill remains in the managed surface set (the agent calls it under the hood for class-2/3 transforms and per-version chain steps), but it is no longer invocable from the user slash-menu. Operators run `/gdh-update`; that skill drives migrate as needed.",
|
|
3546
|
+
"**Per-agent approval narrative for `/gdh-update` and `/gdh-migrate`.** Both skills now describe the provider-specific user-question tool the agent should use when asking for approval — Claude `AskUserQuestion`, Codex `request_user_input` — rather than a generic \"ask the user\" hint. The cross-provider body equality test for managed skills explicitly exempts these two.",
|
|
3547
|
+
"**Recovery hints route through `/gdh-update`.** Reasons that previously surfaced bare `gdh ...` commands now point operators at the human-facing slash command, with the auto bridge repair flow attached.",
|
|
3548
|
+
"**Legacy-target cursor cleanup.** The retired-managed-surface cleanup planner now enumerates `.cursor/commands/gdh-*.md`, `.cursor/skills/gdh-*/SKILL.md`, and `.cursor/rules/gdh-agent.mdc` as content-checked deletions. User-authored content under `.cursor/` (including `.cursor/mcp.json`, which may carry non-GDH MCP servers) is never touched.",
|
|
3549
|
+
"**Managed adapter contract version 19 → 20.** `GDH_AGENT_CONTRACT_VERSION` bumps to drive a managed-target rebake on the next `gdh self-update` / `gdh migrate --apply`, refreshing skill bodies after cursor removal, the migrate-as-agent-only switch, and the per-agent approval narrative.",
|
|
3550
|
+
"**GSD workflow scaffolding removed.** Repo-vendored adapter scaffolding for the retired `gsd` workflow is dropped; this affects only this implementation repo, not managed targets."
|
|
3551
|
+
]
|
|
3552
|
+
},
|
|
3553
|
+
"updateContract": {
|
|
3554
|
+
"summary": "Existing managed targets must re-bake managed adapter surfaces at GDH_AGENT_CONTRACT_VERSION 20. Cursor targets must re-onboard against Claude or Codex; there is no in-place cursor compatibility shim.",
|
|
3555
|
+
"steps": [
|
|
3556
|
+
{
|
|
3557
|
+
"id": "install_v1_0_0",
|
|
3558
|
+
"kind": "mechanical",
|
|
3559
|
+
"summary": "Install the v1.0.0 GDH package.",
|
|
3560
|
+
"detail": "Run gdh self-update so the target uses the v1.0.0 package with the contracted adapter surface (no cursor) and the new agent contract version.",
|
|
3561
|
+
"commands": [
|
|
3562
|
+
"gdh self-update --apply"
|
|
3563
|
+
],
|
|
3564
|
+
"validationCommands": [
|
|
3565
|
+
"gdh status",
|
|
3566
|
+
"gdh adapters status"
|
|
3567
|
+
]
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
"id": "rebake_managed_surfaces_and_sweep_cursor",
|
|
3571
|
+
"kind": "mechanical",
|
|
3572
|
+
"summary": "Re-bake managed surfaces at GDH_AGENT_CONTRACT_VERSION 20 and sweep retired cursor surfaces.",
|
|
3573
|
+
"detail": "Run gdh migrate --apply (or invoke /gdh-update on the agent side, which calls migrate as needed). The deterministic re-bake refreshes managed skill bodies for the migrate-as-agent-only switch and per-agent approval narrative; the retired-managed-surface cleanup planner removes any .cursor/commands/gdh-*.md, .cursor/skills/gdh-*/SKILL.md, and .cursor/rules/gdh-agent.mdc files that still carry GDH managed markers.",
|
|
3574
|
+
"commands": [
|
|
3575
|
+
"gdh migrate --apply"
|
|
3576
|
+
],
|
|
3577
|
+
"validationCommands": [
|
|
3578
|
+
"gdh adapters status",
|
|
3579
|
+
"gdh status"
|
|
3580
|
+
]
|
|
3581
|
+
},
|
|
3582
|
+
{
|
|
3583
|
+
"id": "switch_cursor_targets_to_supported_adapter",
|
|
3584
|
+
"kind": "manual_review",
|
|
3585
|
+
"summary": "Re-onboard cursor targets against Claude or Codex.",
|
|
3586
|
+
"detail": "There is no in-place cursor compatibility shim. Operators previously running cursor must re-onboard the target with gdh setup --agent claude or gdh setup --agent codex. Skip this step if cursor was never used on this target.",
|
|
3587
|
+
"commands": [
|
|
3588
|
+
"gdh setup --agent claude",
|
|
3589
|
+
"gdh setup --agent codex"
|
|
3590
|
+
],
|
|
3591
|
+
"validationCommands": [
|
|
3592
|
+
"gdh adapters status"
|
|
3593
|
+
]
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
"id": "switch_human_invocations_from_migrate_to_update",
|
|
3597
|
+
"kind": "manual_review",
|
|
3598
|
+
"summary": "Use /gdh-update instead of /gdh-migrate from the human slash-menu.",
|
|
3599
|
+
"detail": "/gdh-migrate is now hidden from the user slash-menu (user-invocable: false on Claude; equivalent on Codex). The agent calls migrate under the hood as part of /gdh-update; humans interact with /gdh-update only. No on-disk action is required — this is a workflow change. Validate by attempting /gdh-update on a fresh agent session.",
|
|
3600
|
+
"commands": [],
|
|
3601
|
+
"validationCommands": []
|
|
3602
|
+
}
|
|
3603
|
+
]
|
|
3604
|
+
}
|
|
3605
|
+
},
|
|
3606
|
+
{
|
|
3607
|
+
"version": "2.0.0",
|
|
3608
|
+
"releaseTag": "v2.0.0",
|
|
3609
|
+
"migrationStatus": "required",
|
|
3610
|
+
"summary": "v2.0.0 contracts the agent-facing skill surface further along the human/agent boundary. Two scope changes drive the bump: (1) gdh-scan is dropped as a managed agent skill (the `gdh scan` CLI verb stays); the agent-facing skill at .claude/skills/gdh-scan/SKILL.md and .agents/skills/gdh-scan/SKILL.md, plus the legacy command shim at .claude/commands/gdh/scan.md, are retired and swept by the cleanup planner. (2) gdh-prepare becomes agent-invoked-only (user-invocable: false on Claude; equivalent on Codex), called internally by gdh-onboard or gdh-status. GDH_AGENT_CONTRACT_VERSION moves 20 -> 21 to drive a managed-target rebake covering gdh-scan retirement, the gdh-prepare agent-only switch, and the new prepareApprovalInstruction() per-agent approval narrative. The retired-managed-surface cleanup planner enumerates content-checked deletions so user-authored content at the same paths is preserved verbatim. No new class-2 or class-3 migration registry entry is introduced.",
|
|
3611
|
+
"releaseHighlights": {
|
|
3612
|
+
"summary": "v2.0.0 contracts the agent-facing skill surface further along the human/agent boundary established in v1.0.0. Two breaking changes drive the major bump (per Conventional Commits + product-only SemVer; user-facing slash commands going away is breaking): - **`gdh-scan` is dropped as a managed agent skill.** The `gdh scan` CLI verb stays, but the agent-facing skill is hard-deleted. Onboard and status now invoke the CLI directly when an inventory probe is needed; existing managed targets that still carry `.claude/skills/gdh-scan/SKILL.md`, `.agents/skills/gdh-scan/SKILL.md`, or `.claude/commands/gdh/scan.md` files have them swept on the next `gdh self-update` / `gdh migrate --apply`. - **`gdh-prepare` becomes agent-invoked-only.** It is hidden from the user slash-menu (`user-invocable: false` for Claude, equivalent for Codex) and called internally by `gdh-onboard` or `gdh-status` when worktree/import readiness is needed. The skill body re-bakes with the new `prepareApprovalInstruction()` helper that narrates per-agent approval (Claude `AskUserQuestion`, Codex `request_user_input`). Together these changes continue the contraction the v1.0.0 work started: fewer human-facing surfaces, more agent-driven internal sub-skills, and explicit per-agent approval mechanics for any operation that mutates managed surfaces or triggers non-trivial side effects.",
|
|
3613
|
+
"operatorChanges": [
|
|
3614
|
+
"**`gdh-scan` skill removed (breaking).** The `gdh scan` CLI verb is unaffected — operators who shell out directly continue to work as before. The agent-facing managed skill at `.claude/skills/gdh-scan/SKILL.md` and `.agents/skills/gdh-scan/SKILL.md`, plus the legacy command shim at `.claude/commands/gdh/scan.md`, are retired. Agents now invoke the CLI verb directly from inside `gdh-onboard` / `gdh-status` when they need an inventory probe. Existing managed targets pick up the cleanup automatically.",
|
|
3615
|
+
"**`/gdh-prepare` slash command is hidden (breaking).** The skill remains in the managed surface set (the agent calls it under the hood for cold-worktree hydration and import refresh during onboarding/status flows), but it is no longer invocable from the user slash-menu. Operators run `/gdh-onboard` or `/gdh-status`; those skills drive prepare as needed.",
|
|
3616
|
+
"**Per-agent approval narrative for `/gdh-prepare`.** Like `/gdh-update` and `/gdh-migrate`, prepare now describes the provider-specific user-question tool the agent should use when asking for approval — Claude `AskUserQuestion`, Codex `request_user_input` — rather than a generic \"ask the user\" hint. The cross-provider body equality test for managed skills explicitly exempts prepare alongside update and migrate.",
|
|
3617
|
+
"**Retired-managed-surface cleanup covers gdh-scan.** The cleanup planner now enumerates `.claude/skills/gdh-scan/SKILL.md`, `.agents/skills/gdh-scan/SKILL.md`, and `.claude/commands/gdh/scan.md` as content-checked deletions. User-authored content at the same paths is preserved verbatim.",
|
|
3618
|
+
"**Managed adapter contract version 20 → 21.** `GDH_AGENT_CONTRACT_VERSION` bumps to drive a managed-target rebake on the next `gdh self-update` / `gdh migrate --apply`, refreshing skill bodies after gdh-scan retirement and the gdh-prepare agent-only switch."
|
|
3619
|
+
]
|
|
3620
|
+
},
|
|
3621
|
+
"updateContract": {
|
|
3622
|
+
"summary": "Existing managed targets must re-bake managed adapter surfaces at GDH_AGENT_CONTRACT_VERSION 21. The `gdh scan` CLI verb is unchanged; only the agent-facing managed skill is dropped.",
|
|
3623
|
+
"steps": [
|
|
3624
|
+
{
|
|
3625
|
+
"id": "install_v1_1_0",
|
|
3626
|
+
"kind": "mechanical",
|
|
3627
|
+
"summary": "Install the v2.0.0 GDH package.",
|
|
3628
|
+
"detail": "Run gdh self-update so the target uses the v2.0.0 package with the contracted skill surface (no gdh-scan skill, agent-only gdh-prepare) and the new agent contract version.",
|
|
3629
|
+
"commands": [
|
|
3630
|
+
"gdh self-update --apply"
|
|
3631
|
+
],
|
|
3632
|
+
"validationCommands": [
|
|
3633
|
+
"gdh status",
|
|
3634
|
+
"gdh adapters status"
|
|
3635
|
+
]
|
|
3636
|
+
},
|
|
3637
|
+
{
|
|
3638
|
+
"id": "rebake_managed_surfaces_and_sweep_scan",
|
|
3639
|
+
"kind": "mechanical",
|
|
3640
|
+
"summary": "Re-bake managed surfaces at GDH_AGENT_CONTRACT_VERSION 21 and sweep retired gdh-scan surfaces.",
|
|
3641
|
+
"detail": "Run gdh migrate --apply (or invoke /gdh-update on the agent side, which calls migrate as needed). The deterministic re-bake refreshes managed skill bodies for the gdh-prepare agent-only switch and per-agent approval narrative; the retired-managed-surface cleanup planner removes any .claude/skills/gdh-scan/SKILL.md, .agents/skills/gdh-scan/SKILL.md, and .claude/commands/gdh/scan.md files that still carry GDH managed markers.",
|
|
3642
|
+
"commands": [
|
|
3643
|
+
"gdh migrate --apply"
|
|
3644
|
+
],
|
|
3645
|
+
"validationCommands": [
|
|
3646
|
+
"gdh adapters status",
|
|
3647
|
+
"gdh status"
|
|
3648
|
+
]
|
|
3649
|
+
},
|
|
3650
|
+
{
|
|
3651
|
+
"id": "switch_human_invocations_from_prepare_to_onboard_or_status",
|
|
3652
|
+
"kind": "manual_review",
|
|
3653
|
+
"summary": "Use /gdh-onboard or /gdh-status instead of /gdh-prepare from the human slash-menu.",
|
|
3654
|
+
"detail": "/gdh-prepare is now hidden from the user slash-menu (user-invocable: false on Claude; equivalent on Codex). The agent calls prepare under the hood as part of /gdh-onboard or /gdh-status when worktree/import readiness is needed; humans interact with the parent skills only. No on-disk action is required — this is a workflow change. Validate by attempting /gdh-onboard or /gdh-status on a fresh agent session.",
|
|
3655
|
+
"commands": [],
|
|
3656
|
+
"validationCommands": []
|
|
3657
|
+
}
|
|
3658
|
+
]
|
|
3659
|
+
}
|
|
3535
3660
|
}
|
|
3536
3661
|
]
|
|
3537
3662
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Render the managed Codex authoring hook block (Phase 82 / LSP-03).
|
|
3
|
+
*
|
|
4
|
+
* Renders PostToolUse and Stop registrations inside one BEGIN/END envelope,
|
|
5
|
+
* in that order. The empty line between the two blocks is for human
|
|
6
|
+
* readability. `removeManagedCodexAuthoringHookBlock` strips the entire
|
|
7
|
+
* envelope as a single unit, so re-render replaces both blocks atomically
|
|
8
|
+
* (byte-identical idempotency).
|
|
9
|
+
*/
|
|
10
|
+
export declare function renderManagedCodexAuthoringHookBlock(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Strip the managed Codex authoring hook envelope from a config string.
|
|
13
|
+
* Idempotent: returns input unchanged when no envelope is present.
|
|
14
|
+
*/
|
|
15
|
+
export declare function removeManagedCodexAuthoringHookBlock(content: string): string;
|
|
16
|
+
//# sourceMappingURL=codex-authoring-hook-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-authoring-hook-block.d.ts","sourceRoot":"","sources":["../src/codex-authoring-hook-block.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,oCAAoC,IAAI,MAAM,CAkB7D;AAED;;;GAGG;AACH,wBAAgB,oCAAoC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAQ5E"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CODEX_AUTHORING_HOOK_COMMAND } from "./authoring-hook-render.js";
|
|
2
|
+
/**
|
|
3
|
+
* Render the managed Codex authoring hook block (Phase 82 / LSP-03).
|
|
4
|
+
*
|
|
5
|
+
* Renders PostToolUse and Stop registrations inside one BEGIN/END envelope,
|
|
6
|
+
* in that order. The empty line between the two blocks is for human
|
|
7
|
+
* readability. `removeManagedCodexAuthoringHookBlock` strips the entire
|
|
8
|
+
* envelope as a single unit, so re-render replaces both blocks atomically
|
|
9
|
+
* (byte-identical idempotency).
|
|
10
|
+
*/
|
|
11
|
+
export function renderManagedCodexAuthoringHookBlock() {
|
|
12
|
+
return [
|
|
13
|
+
"# BEGIN GDH managed authoring hooks",
|
|
14
|
+
"[[hooks.PostToolUse]]",
|
|
15
|
+
'matcher = "^(apply_patch|Edit|Write)$"',
|
|
16
|
+
"[[hooks.PostToolUse.hooks]]",
|
|
17
|
+
'type = "command"',
|
|
18
|
+
`command = ${JSON.stringify(CODEX_AUTHORING_HOOK_COMMAND)}`,
|
|
19
|
+
"timeout = 30",
|
|
20
|
+
"",
|
|
21
|
+
"[[hooks.Stop]]",
|
|
22
|
+
"[[hooks.Stop.hooks]]",
|
|
23
|
+
'type = "command"',
|
|
24
|
+
`command = ${JSON.stringify(CODEX_AUTHORING_HOOK_COMMAND)}`,
|
|
25
|
+
"timeout = 60",
|
|
26
|
+
"# END GDH managed authoring hooks",
|
|
27
|
+
"",
|
|
28
|
+
].join("\n");
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Strip the managed Codex authoring hook envelope from a config string.
|
|
32
|
+
* Idempotent: returns input unchanged when no envelope is present.
|
|
33
|
+
*/
|
|
34
|
+
export function removeManagedCodexAuthoringHookBlock(content) {
|
|
35
|
+
return content
|
|
36
|
+
.replace(/(?:^|\n)# BEGIN GDH managed authoring hooks\n[\s\S]*?# END GDH managed authoring hooks\n?/, "\n")
|
|
37
|
+
.replace(/\n{3,}/g, "\n\n")
|
|
38
|
+
.trimEnd();
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=codex-authoring-hook-block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-authoring-hook-block.js","sourceRoot":"","sources":["../src/codex-authoring-hook-block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAE1E;;;;;;;;GAQG;AACH,MAAM,UAAU,oCAAoC;IAClD,OAAO;QACL,qCAAqC;QACrC,uBAAuB;QACvB,wCAAwC;QACxC,6BAA6B;QAC7B,kBAAkB;QAClB,aAAa,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC,EAAE;QAC3D,cAAc;QACd,EAAE;QACF,gBAAgB;QAChB,sBAAsB;QACtB,kBAAkB;QAClB,aAAa,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC,EAAE;QAC3D,cAAc;QACd,mCAAmC;QACnC,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oCAAoC,CAAC,OAAe;IAClE,OAAO,OAAO;SACX,OAAO,CACN,2FAA2F,EAC3F,IAAI,CACL;SACA,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC;SAC1B,OAAO,EAAE,CAAC;AACf,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { type GdhAgentAdaptersInstallResult, type GdhAgentAdaptersStatusResult, type GdhGsdSnapshot, type GdhProjectLifecycleCompatibilityResult, type GdhProjectLifecycleSurfaceStatus, type GdhStatusResult, type GdhSupportedAgent } from "@gdh/core";
|
|
2
2
|
import { type GdhStatusBuildAdapters } from "./deferred-actions-advisory.js";
|
|
3
|
-
export { GDH_MANAGED_AGENT_SKILL_MARKER, GDH_SKILL_DEFINITIONS, GDH_SKILL_IDS, renderGdhSkill, renderManagedSkillMarker, renderClaudeMigrateSkill, renderClaudeOnboardSkill, renderClaudePrepareSkill, renderClaudeRunGameSkill,
|
|
3
|
+
export { GDH_MANAGED_AGENT_SKILL_MARKER, GDH_SKILL_DEFINITIONS, GDH_SKILL_IDS, renderGdhSkill, renderManagedSkillMarker, renderClaudeMigrateSkill, renderClaudeOnboardSkill, renderClaudePrepareSkill, renderClaudeRunGameSkill, renderClaudeStatusSkill, renderClaudeUpdateSkill, renderCodexMigrateSkill, renderCodexOnboardSkill, renderCodexPrepareSkill, renderCodexRunGameSkill, renderCodexStatusSkill, renderCodexUpdateSkill, } from "./skill-rendering.js";
|
|
4
4
|
export declare const adaptersPackage: import("@gdh/core").GdhPackageBoundary;
|
|
5
|
-
export declare const SUPPORTED_AGENTS: readonly ["codex", "claude"
|
|
5
|
+
export declare const SUPPORTED_AGENTS: readonly ["codex", "claude"];
|
|
6
6
|
export declare const CLAUDE_SHIM_RELATIVE_PATH = "CLAUDE.md";
|
|
7
7
|
export declare const CLAUDE_ONBOARD_SKILL_RELATIVE_PATH = ".claude/skills/gdh-onboard/SKILL.md";
|
|
8
8
|
export declare const PROJECT_MCP_RELATIVE_PATH = ".mcp.json";
|
|
9
|
-
export declare const CURSOR_MCP_RELATIVE_PATH = ".cursor/mcp.json";
|
|
10
|
-
export declare const CURSOR_RULE_RELATIVE_PATH = ".cursor/rules/gdh-agent.mdc";
|
|
11
|
-
export declare const CURSOR_ONBOARD_COMMAND_RELATIVE_PATH = ".cursor/commands/gdh-onboard.md";
|
|
12
9
|
export declare const CODEX_ONBOARD_SKILL_RELATIVE_PATH = ".agents/skills/gdh-onboard/SKILL.md";
|
|
13
10
|
export declare const CLAUDE_STATUS_SKILL_RELATIVE_PATH = ".claude/skills/gdh-status/SKILL.md";
|
|
14
11
|
export declare const CLAUDE_MIGRATE_SKILL_RELATIVE_PATH = ".claude/skills/gdh-migrate/SKILL.md";
|
|
@@ -20,15 +17,8 @@ export declare const CODEX_MIGRATE_SKILL_RELATIVE_PATH = ".agents/skills/gdh-mig
|
|
|
20
17
|
export declare const CODEX_CHECK_SKILL_RELATIVE_PATH = ".agents/skills/gdh-check/SKILL.md";
|
|
21
18
|
export declare const CODEX_PREPARE_SKILL_RELATIVE_PATH = ".agents/skills/gdh-prepare/SKILL.md";
|
|
22
19
|
export declare const CODEX_RUN_GAME_SKILL_RELATIVE_PATH = ".agents/skills/gdh-run-game/SKILL.md";
|
|
23
|
-
export declare const CURSOR_STATUS_COMMAND_RELATIVE_PATH = ".cursor/commands/gdh-status.md";
|
|
24
|
-
export declare const CURSOR_MIGRATE_COMMAND_RELATIVE_PATH = ".cursor/commands/gdh-migrate.md";
|
|
25
|
-
export declare const CURSOR_PREPARE_COMMAND_RELATIVE_PATH = ".cursor/commands/gdh-prepare.md";
|
|
26
|
-
export declare const CURSOR_RUN_GAME_COMMAND_RELATIVE_PATH = ".cursor/commands/gdh-run-game.md";
|
|
27
20
|
export declare const CLAUDE_UPDATE_SKILL_RELATIVE_PATH = ".claude/skills/gdh-update/SKILL.md";
|
|
28
21
|
export declare const CODEX_UPDATE_SKILL_RELATIVE_PATH = ".agents/skills/gdh-update/SKILL.md";
|
|
29
|
-
export declare const CURSOR_UPDATE_COMMAND_RELATIVE_PATH = ".cursor/commands/gdh-update.md";
|
|
30
|
-
export declare const CLAUDE_SCAN_SKILL_RELATIVE_PATH = ".claude/skills/gdh-scan/SKILL.md";
|
|
31
|
-
export declare const CODEX_SCAN_SKILL_RELATIVE_PATH = ".agents/skills/gdh-scan/SKILL.md";
|
|
32
22
|
export declare const CLAUDE_ONBOARD_COMMAND_RELATIVE_PATH = ".claude/skills/gdh-onboard/SKILL.md";
|
|
33
23
|
export declare const CLAUDE_STATUS_COMMAND_RELATIVE_PATH = ".claude/skills/gdh-status/SKILL.md";
|
|
34
24
|
export declare const CLAUDE_MIGRATE_COMMAND_RELATIVE_PATH = ".claude/skills/gdh-migrate/SKILL.md";
|
|
@@ -36,8 +26,6 @@ export declare const CLAUDE_CHECK_COMMAND_RELATIVE_PATH = ".claude/skills/gdh-ch
|
|
|
36
26
|
export declare const CLAUDE_PREPARE_COMMAND_RELATIVE_PATH = ".claude/skills/gdh-prepare/SKILL.md";
|
|
37
27
|
export declare const CLAUDE_RUN_GAME_COMMAND_RELATIVE_PATH = ".claude/skills/gdh-run-game/SKILL.md";
|
|
38
28
|
export declare const CLAUDE_UPDATE_COMMAND_RELATIVE_PATH = ".claude/skills/gdh-update/SKILL.md";
|
|
39
|
-
export declare const CLAUDE_SCAN_COMMAND_RELATIVE_PATH = ".claude/skills/gdh-scan/SKILL.md";
|
|
40
|
-
export declare const CURSOR_SCAN_COMMAND_RELATIVE_PATH = ".cursor/commands/gdh-scan.md";
|
|
41
29
|
export declare const LOCAL_PATH_HINTS_RELATIVE_PATH = ".gdh-state/local-paths.json";
|
|
42
30
|
export declare const CODEX_PROJECT_CONFIG_RELATIVE_PATH = ".codex/config.toml";
|
|
43
31
|
export declare const GDH_MCP_SERVER_NAME = "gdh";
|
|
@@ -58,20 +46,14 @@ export declare function buildGdhStatusResult(targetPath: string, adapters?: GdhS
|
|
|
58
46
|
export declare function createGsdSnapshot(targetPath: string, options?: {
|
|
59
47
|
readonly files?: readonly string[];
|
|
60
48
|
}): Promise<GdhGsdSnapshot>;
|
|
61
|
-
export declare function renderCursorRule(input?: {
|
|
62
|
-
readonly targetRelativePath?: string;
|
|
63
|
-
}): string;
|
|
64
49
|
export declare function renderClaudeOnboardCommand(pinnedVersion: string): string;
|
|
65
50
|
export declare function renderClaudeStatusCommand(pinnedVersion: string): string;
|
|
66
|
-
export declare function renderClaudeScanCommand(pinnedVersion: string): string;
|
|
67
51
|
export declare function renderClaudeMigrateCommand(pinnedVersion: string): string;
|
|
68
52
|
export declare function renderClaudeUpdateCommand(pinnedVersion: string): string;
|
|
69
53
|
export declare function renderClaudePrepareCommand(pinnedVersion: string): string;
|
|
70
54
|
export declare function renderClaudeRunGameCommand(pinnedVersion: string): string;
|
|
71
55
|
export declare function renderManagedCodexProjectSection(pinnedVersion: string): string;
|
|
72
56
|
export declare function renderManagedCodexProjectConfig(existingContent: string | null, pinnedVersion: string): string;
|
|
73
|
-
declare function removeManagedCodexAuthoringHookBlock(content: string): string;
|
|
74
|
-
declare function renderManagedCodexAuthoringHookBlock(): string;
|
|
75
57
|
declare function summarizeProjectLifecycleCompatibility(targetPath: string, surfaces: readonly GdhProjectLifecycleSurfaceStatus[]): GdhProjectLifecycleCompatibilityResult;
|
|
76
58
|
export { CLAUDE_STATUSLINE_RELATIVE_PATH } from "./claude-statusline-render.js";
|
|
77
59
|
export { CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH } from "./claude-update-hook-render.js";
|
|
@@ -86,14 +68,4 @@ export type { GdhBackupAdvisory, GdhDeferredActionStatusEntry, GdhDeferredAction
|
|
|
86
68
|
export { DEFAULT_GRACEFUL_STOP_TIMEOUT_MS, STOP_AND_RESTART_ENV_SUBSET_KEYS, buildProcessRestartProbeFromSnapshot, captureProcessSnapshot, defaultProcessOrchestrationEnvironment, restartFromSnapshot, stopCapturedProcesses, } from "./process-orchestration.js";
|
|
87
69
|
export type { GdhCaptureProcessSnapshotResult, GdhDiscoveredBrokerProcess, GdhDiscoveredMcpProcess, GdhProcessOrchestrationEnvironment, GdhProcessOrchestrationPlatform, GdhRestartFailedRow, GdhRestartFromSnapshotResult, GdhRestartedRow, GdhStopCapturedProcessesResult, GdhStopCapturedProcessesSkipped, } from "./process-orchestration.js";
|
|
88
70
|
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
|
-
};
|
|
99
71
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,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;AAyBnB,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,gCAAgC,CAAC;AAoCxC,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAe9B,eAAO,MAAM,eAAe,wCAa1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