@skillcap/gdh 2.0.1 → 3.0.1
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 +121 -0
- package/node_modules/@gdh/adapters/dist/authoring-hook-render.d.ts +3 -18
- package/node_modules/@gdh/adapters/dist/authoring-hook-render.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/authoring-hook-render.js +11 -6
- package/node_modules/@gdh/adapters/dist/authoring-hook-render.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.d.ts +15 -3
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.js +14 -2
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.d.ts +18 -9
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.js +18 -9
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.d.ts +8 -2
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.js +8 -2
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/claude-update-worker-render.d.ts +2 -2
- package/node_modules/@gdh/adapters/dist/claude-update-worker-render.js +2 -2
- package/node_modules/@gdh/adapters/dist/index.d.ts +2 -5
- package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.js +19 -75
- package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/skill-rendering.js +1 -0
- package/node_modules/@gdh/adapters/dist/skill-rendering.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/templates/authoring-hook.js.tpl +49 -43
- package/node_modules/@gdh/adapters/package.json +8 -8
- package/node_modules/@gdh/authoring/dist/project.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/project.js +39 -12
- package/node_modules/@gdh/authoring/dist/project.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 +121 -80
- 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 +62 -1
- package/node_modules/@gdh/cli/dist/self-update.js.map +1 -1
- package/node_modules/@gdh/cli/dist/setup.d.ts +7 -0
- package/node_modules/@gdh/cli/dist/setup.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/setup.js +43 -11
- 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/git-root.d.ts +8 -0
- package/node_modules/@gdh/core/dist/git-root.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/git-root.js +39 -0
- package/node_modules/@gdh/core/dist/git-root.js.map +1 -0
- package/node_modules/@gdh/core/dist/index.d.ts +19 -18
- package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/index.js +17 -2
- package/node_modules/@gdh/core/dist/index.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.d.ts +3 -0
- package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.js +336 -0
- package/node_modules/@gdh/core/dist/migrations/entries/s3c21_to_s3c22_canonical_hook_paths.js.map +1 -0
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.d.ts +13 -11
- 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 +13 -11
- package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.js.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/registry.d.ts +1 -1
- package/node_modules/@gdh/core/dist/migrations/registry.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/migrations/registry.js +2 -0
- package/node_modules/@gdh/core/dist/migrations/registry.js.map +1 -1
- package/node_modules/@gdh/core/dist/state/codex-retrust-reminder.d.ts +40 -0
- package/node_modules/@gdh/core/dist/state/codex-retrust-reminder.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/state/codex-retrust-reminder.js +66 -0
- package/node_modules/@gdh/core/dist/state/codex-retrust-reminder.js.map +1 -0
- package/node_modules/@gdh/core/dist/state/migration-trace.d.ts +61 -0
- package/node_modules/@gdh/core/dist/state/migration-trace.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/state/migration-trace.js +103 -0
- package/node_modules/@gdh/core/dist/state/migration-trace.js.map +1 -0
- package/node_modules/@gdh/core/dist/update-probe.d.ts +1 -2
- package/node_modules/@gdh/core/dist/update-probe.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/update-probe.js +1 -2
- package/node_modules/@gdh/core/dist/update-probe.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/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/node_modules/@gdh/adapters/dist/authoring-hook-state-path.d.ts +0 -17
- package/node_modules/@gdh/adapters/dist/authoring-hook-state-path.d.ts.map +0 -1
- package/node_modules/@gdh/adapters/dist/authoring-hook-state-path.js +0 -23
- package/node_modules/@gdh/adapters/dist/authoring-hook-state-path.js.map +0 -1
package/INSTALL-BUNDLE.json
CHANGED
|
@@ -3711,6 +3711,127 @@
|
|
|
3711
3711
|
}
|
|
3712
3712
|
]
|
|
3713
3713
|
}
|
|
3714
|
+
},
|
|
3715
|
+
{
|
|
3716
|
+
"version": "3.0.0",
|
|
3717
|
+
"releaseTag": "v3.0.0",
|
|
3718
|
+
"migrationStatus": "required",
|
|
3719
|
+
"summary": "v3.0.0 implements RFC 0010 / ADR 0010 D1–D6 (`docs/rfcs/0010-canonical-path-resolution.md`, `docs/adrs/0010-canonical-path-resolution.md`, both Accepted 2026-05-08). Git becomes a hard precondition for every CLI command and the runtime authoring guard hook — every entry point resolves the integration root through `git rev-parse --show-toplevel` and exits with a typed `git_required` error outside a git repo. The canonical hook surface consolidates under one path: `<gitroot>/.gdh/hooks/authoring-guard.js` (single shared hook for Claude and Codex; agent identity from `process.argv[2]`) plus three Claude-only scripts at `<gitroot>/.gdh/hooks/{check-update.js,check-update-worker.js,statusline.js}`. The pre-RFC `.claude/hooks/gdh-*.js` and `.codex/hooks/gdh-authoring-guard.js` paths are RETIRED. Hook command literals in `.claude/settings.json` and `.codex/config.toml` switch from inline `node -e ... walk-up ...` megastrings to a defensive shape that resolves through `git rev-parse --show-toplevel` (Claude: `node \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/.gdh/hooks/...\"`; Codex: `sh -c 'node \"$(git rev-parse --show-toplevel)/.gdh/hooks/authoring-guard.js\" codex'`). Two surface-version bumps drive deterministic class-1 re-bake on existing managed targets: `GDH_AGENT_CONTRACT_VERSION` 21 → 22 and `GDH_UPDATE_HOOK_VERSION` 18 → 19. A single class-1 registry entry `s3c21_to_s3c22_canonical_hook_paths` performs the irreducible cleanup that re-bake cannot do: deletes the five legacy hook script files, best-effort `rmdir`s the empty parent dirs (foreign hooks preserved), scrubs the legacy `LEGACY_GDH_SESSION_START_HOOK_COMMAND` + Claude authoring walk-up megastrings + legacy `statusLine.command` literal from `.claude/settings.json`, and strips the legacy `# BEGIN GDH managed authoring hooks` envelope from `.codex/config.toml`. Re-bake at the orchestrator level then writes the new canonical surface. Worktrees are supported (each worktree's own toplevel is its integration root). `gdh verify drift` recognises the legacy layout as migration input via a new `legacyLayout` result field with states `absent` / `migration_pending` / `partially_migrated` and routes operators to `gdh self-update` (action kind `run_migration`) rather than `gdh adapters install` since only `self-update` runs the chain that cleans up legacy state. `GDH_PROJECT_CONFIG_VERSION` stays at 3 (no project-config schema change). Both surface bumps are class-1 deterministic re-bake (Phase 72 D-09 / D-03) and exempt from `MIGRATION_REGISTRY_ENTRIES` per `CLASS_ONE_REBAKE_EXEMPT` in `scripts/release-lib/registry-completeness.mjs`; the registry entry's job is the irreducible cleanup, not the surface-version binding.",
|
|
3720
|
+
"releaseHighlights": {
|
|
3721
|
+
"summary": "v3.0.0 is the next major release. It implements RFC 0010 / ADR 0010 D1–D6: GDH now requires a git working tree, hooks consolidate under one canonical `<gitroot>/.gdh/hooks/` surface, hook command literals switch to a defensive shape that resolves through `git rev-parse --show-toplevel`, and a single class-1 migration entry brings every existing v2.x managed target to the new layout.",
|
|
3722
|
+
"operatorChanges": [
|
|
3723
|
+
"**Git is now a hard precondition.** Every CLI command (`gdh prepare`, `gdh setup`, `gdh onboard`, `gdh self-update`, `gdh status`, `gdh verify drift`) and the runtime authoring guard hook resolve the integration root through `git rev-parse --show-toplevel`. Targets without an enclosing git repo exit with a typed `git_required` error and a one-line `git init` remediation hint. `<gitroot> == <integration root>` is invariant; `.gdh/`, `.gdh/hooks/`, `.gdh/project.yaml`, and `.gdh/guidance/` always live at git toplevel regardless of cwd.",
|
|
3724
|
+
"**Single shared authoring-guard hook.** `<gitroot>/.gdh/hooks/authoring-guard.js` is one file consumed by both Claude and Codex. Agent identity is read from `process.argv[2]` at fire time, not baked at render time. The renderer signature drops the `agent` parameter.",
|
|
3725
|
+
"**Claude-only hook scripts relocated.** `<gitroot>/.gdh/hooks/check-update.js`, `check-update-worker.js`, and `statusline.js` replace the pre-RFC `.claude/hooks/gdh-*.js` paths. `.claude/hooks/` and `.codex/hooks/` no longer hold any GDH-rendered script files.",
|
|
3726
|
+
"**Defensive hook command literals.** Claude SessionStart + PostToolUse + Stop + PostToolBatch entries in `.claude/settings.json` use `node \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/.gdh/hooks/...\"`. The Codex managed authoring envelope in `.codex/config.toml` uses `sh -c 'node \"$(git rev-parse --show-toplevel)/.gdh/hooks/authoring-guard.js\" codex'`. No inline `node -e ... walk-up ...` megastrings.",
|
|
3727
|
+
"**`gdh verify drift` recognises the legacy layout.** Targets with `.claude/hooks/gdh-*.js` or `.codex/hooks/gdh-authoring-guard.js` still on disk surface as `legacyLayout.state: \"migration_pending\"` (legacy only) or `\"partially_migrated\"` (legacy + canonical present). The remediation action is now `run_migration` pointing at `gdh self-update` rather than `gdh adapters install` — only `self-update` runs the chain that cleans up the legacy state.",
|
|
3728
|
+
"**Migration trace observability.** `gdh self-update` post-apply emits per-action trace events on stderr (one indented line per file deleted, directory removed, `.claude/settings.json` rewritten, or `.codex/config.toml` rewritten) and includes them in the structured JSON result as `migrationTrace`. Trace files at `<targetPath>/.gdh-state/migration-trace/<entryId>.json` are cleared after surfacing."
|
|
3729
|
+
]
|
|
3730
|
+
},
|
|
3731
|
+
"updateContract": {
|
|
3732
|
+
"summary": "Existing managed targets running v2.x must run `gdh self-update` (or `/gdh-update`) inside a git working tree. The class-1 migration entry `s3c21_to_s3c22_canonical_hook_paths` deletes the five legacy hook scripts (`.claude/hooks/gdh-{authoring-guard,check-update,check-update-worker,statusline}.js`, `.codex/hooks/gdh-authoring-guard.js`), scrubs legacy command literals from `.claude/settings.json` and `.codex/config.toml`, and re-bake at the orchestrator level writes the new canonical `<gitroot>/.gdh/hooks/` surface with defensive command literals. Targets without an enclosing git repo must run `git init` first; the CLI exits non-zero with a typed `git_required` error otherwise. Codex CLI users must manually re-trust the migrated hook entry once via Codex `/hooks` → `t` (Codex 0.124.0+ silently disables hooks whose `command` literal differs from the trusted hash; GDH cannot detect re-trust state from outside Codex).",
|
|
3733
|
+
"steps": [
|
|
3734
|
+
{
|
|
3735
|
+
"id": "ensure_git_working_tree",
|
|
3736
|
+
"kind": "manual_review",
|
|
3737
|
+
"summary": "Confirm the managed target lives inside a git working tree before running `gdh self-update`.",
|
|
3738
|
+
"detail": "From v3.0.0 onward, every GDH CLI command and the runtime authoring guard hook resolve the integration root through `git rev-parse --show-toplevel` and exit with a typed `git_required` error outside a git repo. If the Godot project is not yet a git repo, run `git init` at the repo root first. The git toplevel becomes the integration root; `.gdh/`, `.gdh/hooks/`, `.gdh/project.yaml`, and `.gdh/guidance/` always live at git toplevel regardless of cwd. Worktrees are supported — each worktree's own toplevel is its integration root.",
|
|
3739
|
+
"commands": [
|
|
3740
|
+
"git rev-parse --show-toplevel",
|
|
3741
|
+
"git init"
|
|
3742
|
+
],
|
|
3743
|
+
"validationCommands": [
|
|
3744
|
+
"gdh status"
|
|
3745
|
+
]
|
|
3746
|
+
},
|
|
3747
|
+
{
|
|
3748
|
+
"id": "install_v3_0_0",
|
|
3749
|
+
"kind": "mechanical",
|
|
3750
|
+
"summary": "Install the v3.0.0 GDH package via `gdh self-update`.",
|
|
3751
|
+
"detail": "Run `gdh self-update --apply` (or invoke `/gdh-update` on the agent side, which calls migrate as needed). The class-1 migration entry `s3c21_to_s3c22_canonical_hook_paths` deletes the five legacy hook scripts, best-effort `rmdir`s the empty parent dirs (foreign hooks preserved), scrubs legacy command literals from `.claude/settings.json` and `.codex/config.toml`, and re-bake at the orchestrator level writes the new canonical `<gitroot>/.gdh/hooks/` surface. Per-action migration trace events surface on stderr and in the structured JSON result as `migrationTrace`. The migration entry is idempotent: re-running on an already-migrated target is a no-op.",
|
|
3752
|
+
"commands": [
|
|
3753
|
+
"gdh self-update --apply"
|
|
3754
|
+
],
|
|
3755
|
+
"validationCommands": [
|
|
3756
|
+
"gdh status",
|
|
3757
|
+
"gdh verify drift"
|
|
3758
|
+
]
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
"id": "codex_retrust_managed_authoring_hook",
|
|
3762
|
+
"kind": "manual_review",
|
|
3763
|
+
"summary": "Codex CLI users: re-trust the migrated managed authoring-hook entry once via Codex `/hooks` → `t`.",
|
|
3764
|
+
"detail": "Codex 0.124.0+ silently disables hooks whose `command` literal differs from the trusted hash. The v3.0.0 migration rewrites the managed authoring-hook command in `.codex/config.toml` from the legacy `node -e ... walk-up ...` megastring to the new defensive `sh -c 'node \"$(git rev-parse --show-toplevel)/.gdh/hooks/authoring-guard.js\" codex'` shape, so every existing Codex-managed target ends up with a `Modified` hook entry until manually re-trusted. Open Codex, run `/hooks`, and press `t` on each Modified GDH entry. Until re-trusted, the Codex authoring guard does not fire on PostToolUse / Stop, and edits proceed without managed validation. GDH cannot detect the re-trust state from outside Codex (the hash is internal). `gdh self-update` surfaces the reminder once on the apply path; the first follow-up `gdh status` invocation re-emits it and clears the marker. Claude Code is unaffected — its `${CLAUDE_PROJECT_DIR:-...}` defensive shape works without re-trust ceremony.",
|
|
3765
|
+
"commands": [],
|
|
3766
|
+
"validationCommands": []
|
|
3767
|
+
}
|
|
3768
|
+
]
|
|
3769
|
+
}
|
|
3770
|
+
},
|
|
3771
|
+
{
|
|
3772
|
+
"version": "3.0.1",
|
|
3773
|
+
"releaseTag": "v3.0.1",
|
|
3774
|
+
"migrationStatus": "required",
|
|
3775
|
+
"summary": "v3.0.1 repairs the Codex adapter config surface after the v3.0.0 canonical hook migration. Dogfood verification found a state where .codex/config.toml had codex_hooks = true and the managed [mcp_servers.gdh] section, but no managed [[hooks.PostToolUse]] / [[hooks.Stop]] authoring hook block. gdh adapters status correctly reported the hook_config surface as misconfigured, while gdh adapters install --agent codex planned no repair because the planner only gated the config rewrite on the MCP section. This release refreshes .codex/config.toml when either the MCP section or the hook-config surface is non-ready, preserving non-GDH TOML content through the existing renderer. It also re-bakes managed update guidance at GDH_AGENT_CONTRACT_VERSION 23 so /gdh-update runs gdh adapters status <target> after drift verification before claiming the update complete. No project config schema change is introduced. No class-2 or class-3 migration registry entry is required; the agent contract bump is class-1 deterministic re-bake.",
|
|
3776
|
+
"releaseHighlights": {
|
|
3777
|
+
"summary": "v3.0.1 is a patch release for the v3.0.0 canonical hook migration. Dogfood verification on a nested TheBeacon migration worktree found a contradictory Codex adapter state: `.codex/config.toml` had `codex_hooks = true` and the managed `[mcp_servers.gdh]` entry, but the managed `[[hooks.PostToolUse]]` / `[[hooks.Stop]]` authoring hook block was missing. `gdh adapters status` correctly reported the hook-config surface as misconfigured, while `gdh adapters install --agent codex` planned no write because the planner only considered the MCP section state. This release repairs that adapter surface. Codex project config is now refreshed when either the managed MCP section or the managed hook-config surface is non-ready, preserving non-GDH TOML content through the existing renderer. The generated `/gdh-update` guidance also verifies active adapter wiring with `gdh adapters status <target>` after `gdh verify drift <target>` so agents do not treat matching managed hook files as proof that Codex actually has active hook registrations.",
|
|
3778
|
+
"operatorChanges": [
|
|
3779
|
+
"**Codex config repair covers hook drift.** `gdh adapters install <target> --agent codex` now rewrites `.codex/config.toml` when the MCP section is ready but the managed authoring-hook block is missing or stale.",
|
|
3780
|
+
"**Migration-chain coverage locks the v3 shape.** The migration chain now asserts that migrated Codex project config contains the canonical managed authoring hook block, points at `.gdh/hooks/authoring-guard.js`, uses the `git rev-parse --show-toplevel` command shape, and no longer references `.codex/hooks/gdh-authoring-guard.js`.",
|
|
3781
|
+
"**`/gdh-update` proof is stronger.** Managed update guidance now requires `gdh adapters status <target>` after drift verification before claiming an update complete."
|
|
3782
|
+
]
|
|
3783
|
+
},
|
|
3784
|
+
"updateContract": {
|
|
3785
|
+
"summary": "Existing managed targets should self-update to v3.0.1 and re-bake managed agent surfaces at GDH_AGENT_CONTRACT_VERSION 23. Codex-managed targets should verify active wiring with gdh adapters status <target>; if the Codex hook-config surface is non-ready, run gdh adapters install <target> --agent codex so .codex/config.toml receives the canonical managed authoring hook block.",
|
|
3786
|
+
"steps": [
|
|
3787
|
+
{
|
|
3788
|
+
"id": "install_v3_0_1",
|
|
3789
|
+
"kind": "mechanical",
|
|
3790
|
+
"summary": "Install the v3.0.1 GDH package.",
|
|
3791
|
+
"detail": "Run gdh self-update --apply or invoke /gdh-update so the target uses the package with the repaired Codex config planner and the version-23 managed update guidance.",
|
|
3792
|
+
"commands": [
|
|
3793
|
+
"gdh self-update --apply"
|
|
3794
|
+
],
|
|
3795
|
+
"validationCommands": [
|
|
3796
|
+
"gdh status"
|
|
3797
|
+
]
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"id": "rebake_agent_contract",
|
|
3801
|
+
"kind": "mechanical",
|
|
3802
|
+
"summary": "Re-bake managed agent surfaces at GDH_AGENT_CONTRACT_VERSION 23.",
|
|
3803
|
+
"detail": "Run gdh migrate --apply when status reports pending managed-surface work. This refreshes the managed AGENTS.md contract marker and generated /gdh-update skill output so future updates verify active adapter wiring after drift.",
|
|
3804
|
+
"commands": [
|
|
3805
|
+
"gdh migrate --apply"
|
|
3806
|
+
],
|
|
3807
|
+
"validationCommands": [
|
|
3808
|
+
"gdh verify drift <target>",
|
|
3809
|
+
"gdh adapters status <target>"
|
|
3810
|
+
]
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
"id": "repair_codex_hook_config",
|
|
3814
|
+
"kind": "mechanical",
|
|
3815
|
+
"summary": "Repair Codex hook config if adapter status reports the hook-config surface as non-ready.",
|
|
3816
|
+
"detail": "Run gdh adapters status <target>. If Codex reports .codex/config.toml missing or stale for the managed hook_config surface, run gdh adapters install <target> --agent codex. The planner now writes the canonical managed authoring hook block even when the MCP section is already ready.",
|
|
3817
|
+
"commands": [
|
|
3818
|
+
"gdh adapters status <target>",
|
|
3819
|
+
"gdh adapters install <target> --agent codex"
|
|
3820
|
+
],
|
|
3821
|
+
"validationCommands": [
|
|
3822
|
+
"gdh adapters status <target>"
|
|
3823
|
+
]
|
|
3824
|
+
},
|
|
3825
|
+
{
|
|
3826
|
+
"id": "codex_trust_check",
|
|
3827
|
+
"kind": "manual_review",
|
|
3828
|
+
"summary": "Codex CLI users should confirm hook trust after .codex/config.toml changes.",
|
|
3829
|
+
"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.",
|
|
3830
|
+
"commands": [],
|
|
3831
|
+
"validationCommands": []
|
|
3832
|
+
}
|
|
3833
|
+
]
|
|
3834
|
+
}
|
|
3714
3835
|
}
|
|
3715
3836
|
]
|
|
3716
3837
|
}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const CODEX_AUTHORING_HOOK_COMMAND = "node -e \"const fs=require('fs'),path=require('path');let d=process.cwd();for(;;){const f=path.join(d,'.codex/hooks/gdh-authoring-guard.js');if(fs.existsSync(f)){require(f);break}const p=path.dirname(d);if(p===d)throw new Error('GDH Codex authoring hook not found');d=p}\"";
|
|
1
|
+
export declare const GDH_AUTHORING_HOOK_RELATIVE_PATH = ".gdh/hooks/authoring-guard.js";
|
|
2
|
+
export declare const CLAUDE_AUTHORING_HOOK_COMMAND = "node \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/.gdh/hooks/authoring-guard.js\" claude";
|
|
3
|
+
export declare const CODEX_AUTHORING_HOOK_COMMAND = "sh -c 'node \"$(git rev-parse --show-toplevel)/.gdh/hooks/authoring-guard.js\" codex'";
|
|
5
4
|
export declare function renderGdhAuthoringHook(input: {
|
|
6
5
|
readonly pinnedVersion: string;
|
|
7
6
|
readonly targetRelativePath: string;
|
|
8
|
-
readonly agent: "codex" | "claude";
|
|
9
|
-
/**
|
|
10
|
-
* POSIX-normalised relative path from the directory containing the rendered
|
|
11
|
-
* hook (`__dirname` at runtime) to the integration root's `.gdh-state/`
|
|
12
|
-
* directory. The hook's embedded broker-snapshot reader resolves
|
|
13
|
-
* `path.resolve(__dirname, STATE_RELATIVE_PATH_FROM_HOOK)` to find the
|
|
14
|
-
* authoring state files (`lsp-instance.json`,
|
|
15
|
-
* `diagnostics-broker/snapshot.json`).
|
|
16
|
-
*
|
|
17
|
-
* Computed at install-plan time as
|
|
18
|
-
* `path.relative(hookDirAbsolute, path.join(integrationRootAbsolute, ".gdh-state"))`
|
|
19
|
-
* with separators converted to `/`.
|
|
20
|
-
*/
|
|
21
|
-
readonly stateRelativePathFromHook: string;
|
|
22
7
|
}): string;
|
|
23
8
|
//# sourceMappingURL=authoring-hook-render.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-hook-render.d.ts","sourceRoot":"","sources":["../src/authoring-hook-render.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authoring-hook-render.d.ts","sourceRoot":"","sources":["../src/authoring-hook-render.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gCAAgC,kCACZ,CAAC;AAOlC,eAAO,MAAM,6BAA6B,0GAC6D,CAAC;AACxG,eAAO,MAAM,4BAA4B,0FACgD,CAAC;AAE1F,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;CACrC,GAAG,MAAM,CAMT"}
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { GDH_UPDATE_HOOK_VERSION, assertClassRegistered } from "@gdh/core";
|
|
2
2
|
import { renderAdapterTemplate } from "./template-assets.js";
|
|
3
3
|
assertClassRegistered("authoring_hook", "deterministic");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export const
|
|
4
|
+
// RFC 0010 D3 — single shared authoring guard at <gitroot>/.gdh/hooks/.
|
|
5
|
+
// Agent identity is no longer baked at render time; it is read from
|
|
6
|
+
// `process.argv[2]` when the hook fires (see authoring-hook.js.tpl).
|
|
7
|
+
export const GDH_AUTHORING_HOOK_RELATIVE_PATH = ".gdh/hooks/authoring-guard.js";
|
|
8
|
+
// RFC 0010 D5 — defensive hook command shapes. Both forms resolve through
|
|
9
|
+
// `git rev-parse --show-toplevel` so the hook fires correctly regardless of
|
|
10
|
+
// the launching shell's cwd. Claude prefers `$CLAUDE_PROJECT_DIR` when
|
|
11
|
+
// present (universal across hook events per PR-2); Codex has no equivalent
|
|
12
|
+
// env var so the command relies on POSIX command substitution.
|
|
13
|
+
export const CLAUDE_AUTHORING_HOOK_COMMAND = 'node "${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/.gdh/hooks/authoring-guard.js" claude';
|
|
14
|
+
export const CODEX_AUTHORING_HOOK_COMMAND = "sh -c 'node \"$(git rev-parse --show-toplevel)/.gdh/hooks/authoring-guard.js\" codex'";
|
|
8
15
|
export function renderGdhAuthoringHook(input) {
|
|
9
16
|
return renderAdapterTemplate("authoring-hook.js.tpl", {
|
|
10
17
|
hookVersion: String(GDH_UPDATE_HOOK_VERSION),
|
|
11
18
|
pinnedVersionJson: JSON.stringify(input.pinnedVersion),
|
|
12
19
|
targetRelativePathJson: JSON.stringify(input.targetRelativePath),
|
|
13
|
-
agentJson: JSON.stringify(input.agent),
|
|
14
|
-
stateRelativePathFromHookJson: JSON.stringify(input.stateRelativePathFromHook),
|
|
15
20
|
});
|
|
16
21
|
}
|
|
17
22
|
//# sourceMappingURL=authoring-hook-render.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-hook-render.js","sourceRoot":"","sources":["../src/authoring-hook-render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,qBAAqB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;AAEzD,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"authoring-hook-render.js","sourceRoot":"","sources":["../src/authoring-hook-render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,qBAAqB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;AAEzD,wEAAwE;AACxE,oEAAoE;AACpE,qEAAqE;AACrE,MAAM,CAAC,MAAM,gCAAgC,GAC3C,+BAA+B,CAAC;AAElC,0EAA0E;AAC1E,4EAA4E;AAC5E,uEAAuE;AACvE,2EAA2E;AAC3E,+DAA+D;AAC/D,MAAM,CAAC,MAAM,6BAA6B,GACxC,qGAAqG,CAAC;AACxG,MAAM,CAAC,MAAM,4BAA4B,GACvC,uFAAuF,CAAC;AAE1F,MAAM,UAAU,sBAAsB,CAAC,KAGtC;IACC,OAAO,qBAAqB,CAAC,uBAAuB,EAAE;QACpD,WAAW,EAAE,MAAM,CAAC,uBAAuB,CAAC;QAC5C,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC;QACtD,sBAAsB,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,kBAAkB,CAAC;KACjE,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -10,9 +10,21 @@ export declare const CLAUDE_SETTINGS_RELATIVE_PATH = ".claude/settings.json";
|
|
|
10
10
|
* match against this literal. Keep it in one place so the renderer, the
|
|
11
11
|
* settings patcher, and `gdh verify drift` all agree on the canonical
|
|
12
12
|
* command string.
|
|
13
|
+
*
|
|
14
|
+
* RFC 0010 D5 — defensive shape resolves through `$CLAUDE_PROJECT_DIR` when
|
|
15
|
+
* present (universal across Claude hook events per PR-2) and falls back to
|
|
16
|
+
* `git rev-parse --show-toplevel` when the env var is missing. The hook
|
|
17
|
+
* script lives under the canonical `<gitroot>/.gdh/hooks/` surface.
|
|
18
|
+
*/
|
|
19
|
+
export declare const GDH_SESSION_START_HOOK_COMMAND = "node \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/.gdh/hooks/check-update.js\"";
|
|
20
|
+
export declare const GDH_AUTHORING_HOOK_COMMAND = "node \"${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/.gdh/hooks/authoring-guard.js\" claude";
|
|
21
|
+
/**
|
|
22
|
+
* Legacy SessionStart command literal used before the v3.0.0 canonical-path
|
|
23
|
+
* refactor. Retained as a constant so the v3.0.0 migration step (Phase 91-D)
|
|
24
|
+
* can remove the exact stale entry from `.claude/settings.json` on existing
|
|
25
|
+
* managed targets. New installs never write to this literal.
|
|
13
26
|
*/
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const GDH_AUTHORING_HOOK_COMMAND = "node -e \"const fs=require('fs'),path=require('path');let d=process.cwd();for(;;){const f=path.join(d,'.claude/hooks/gdh-authoring-guard.js');if(fs.existsSync(f)){require(f);break}const p=path.dirname(d);if(p===d)throw new Error('GDH Claude authoring hook not found');d=p}\"";
|
|
27
|
+
export declare const LEGACY_GDH_SESSION_START_HOOK_COMMAND = "node .claude/hooks/gdh-check-update.js";
|
|
16
28
|
/**
|
|
17
29
|
* Patch-merge .claude/settings.json so the GDH SessionStart hook is
|
|
18
30
|
* registered idempotently without clobbering sibling content.
|
|
@@ -27,7 +39,7 @@ export declare const GDH_AUTHORING_HOOK_COMMAND = "node -e \"const fs=require('f
|
|
|
27
39
|
* - Preserves every other top-level key (e.g. env, and the sibling
|
|
28
40
|
* status-line key which Plan 03 will handle separately),
|
|
29
41
|
* preserves every non-SessionStart hook family (PreToolUse, PostToolUse),
|
|
30
|
-
* and preserves every sibling SessionStart entry (e.g.
|
|
42
|
+
* and preserves every sibling SessionStart entry (e.g. a vendor hook).
|
|
31
43
|
*
|
|
32
44
|
* Output: 2-space-indented JSON ending in a trailing newline. Passes
|
|
33
45
|
* `JSON.parse` cleanly. Re-applying the function to its own output is
|
|
@@ -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
|
|
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;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,8BAA8B,gGACkD,CAAC;AAC9F,eAAO,MAAM,0BAA0B,0GAAgC,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC,2CACR,CAAC;AAgE3C;;;;;;;;;;;;;;;;;;;;;;;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,CAkFvF"}
|
|
@@ -12,9 +12,21 @@ export const CLAUDE_SETTINGS_RELATIVE_PATH = ".claude/settings.json";
|
|
|
12
12
|
* match against this literal. Keep it in one place so the renderer, the
|
|
13
13
|
* settings patcher, and `gdh verify drift` all agree on the canonical
|
|
14
14
|
* command string.
|
|
15
|
+
*
|
|
16
|
+
* RFC 0010 D5 — defensive shape resolves through `$CLAUDE_PROJECT_DIR` when
|
|
17
|
+
* present (universal across Claude hook events per PR-2) and falls back to
|
|
18
|
+
* `git rev-parse --show-toplevel` when the env var is missing. The hook
|
|
19
|
+
* script lives under the canonical `<gitroot>/.gdh/hooks/` surface.
|
|
15
20
|
*/
|
|
16
|
-
export const GDH_SESSION_START_HOOK_COMMAND =
|
|
21
|
+
export const GDH_SESSION_START_HOOK_COMMAND = 'node "${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/.gdh/hooks/check-update.js"';
|
|
17
22
|
export const GDH_AUTHORING_HOOK_COMMAND = CLAUDE_AUTHORING_HOOK_COMMAND;
|
|
23
|
+
/**
|
|
24
|
+
* Legacy SessionStart command literal used before the v3.0.0 canonical-path
|
|
25
|
+
* refactor. Retained as a constant so the v3.0.0 migration step (Phase 91-D)
|
|
26
|
+
* can remove the exact stale entry from `.claude/settings.json` on existing
|
|
27
|
+
* managed targets. New installs never write to this literal.
|
|
28
|
+
*/
|
|
29
|
+
export const LEGACY_GDH_SESSION_START_HOOK_COMMAND = "node .claude/hooks/gdh-check-update.js";
|
|
18
30
|
const GDH_AUTHORING_POST_TOOL_USE_MATCHER = "^(Edit|Write|MultiEdit)$";
|
|
19
31
|
function hasHookCommand(groups, command) {
|
|
20
32
|
for (const group of groups) {
|
|
@@ -60,7 +72,7 @@ function hasGdhSessionStartHook(sessionStart) {
|
|
|
60
72
|
* - Preserves every other top-level key (e.g. env, and the sibling
|
|
61
73
|
* status-line key which Plan 03 will handle separately),
|
|
62
74
|
* preserves every non-SessionStart hook family (PreToolUse, PostToolUse),
|
|
63
|
-
* and preserves every sibling SessionStart entry (e.g.
|
|
75
|
+
* and preserves every sibling SessionStart entry (e.g. a vendor hook).
|
|
64
76
|
*
|
|
65
77
|
* Output: 2-space-indented JSON ending in a trailing newline. Passes
|
|
66
78
|
* `JSON.parse` cleanly. Re-applying the function to its own output is
|
|
@@ -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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BAA0B,CAAC;YAAE,OAAO,KAAK,CAAC;QAEvE,MAAM,eAAe,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAC/C,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,KAAK,0BAA0B;YACpE,CAAC,CAAC;gBACE,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,0BAA0B;gBACnC,OAAO,EAAE,OAAO,CAAC,OAAO;aACzB;YACH,CAAC,CAAC,IAAI,CACT,CAAC;QACF,OAAO,OAAO,CAAC,OAAO,KAAK,SAAS;YAClC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE;YACtC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;IACrE,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB,CAAC,eAAuB;IAClD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,EAAE,CAAC;QACvC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,EAAE,CAAC;QACZ,CAAC;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"}
|
|
@@ -4,16 +4,25 @@
|
|
|
4
4
|
* install does not register it in `.claude/settings.json` because Claude
|
|
5
5
|
* exposes only one statusLine command slot and a project-level entry can
|
|
6
6
|
* shadow a user's global statusline.
|
|
7
|
+
*
|
|
8
|
+
* RFC 0010 D4 — relocated from `.claude/hooks/gdh-statusline.js` to the
|
|
9
|
+
* canonical `<gitroot>/.gdh/hooks/` surface in v3.0.0.
|
|
7
10
|
*/
|
|
8
|
-
export declare const CLAUDE_STATUSLINE_RELATIVE_PATH = ".
|
|
11
|
+
export declare const CLAUDE_STATUSLINE_RELATIVE_PATH = ".gdh/hooks/statusline.js";
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* `
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
* Legacy `.claude/hooks/gdh-statusline.js` location, retained as a constant
|
|
14
|
+
* solely so the v3.0.0 migration step (Phase 91-D) can remove the exact
|
|
15
|
+
* stale `statusLine.command` entry from `.claude/settings.json` on existing
|
|
16
|
+
* managed targets. New installs never write to this path.
|
|
17
|
+
*/
|
|
18
|
+
export declare const LEGACY_CLAUDE_STATUSLINE_RELATIVE_PATH = ".claude/hooks/gdh-statusline.js";
|
|
19
|
+
/**
|
|
20
|
+
* Legacy command literal for the optional GDH statusline script under the
|
|
21
|
+
* pre-v3.0.0 layout. `patchClaudeSettingsForGdhStatusline` (in
|
|
22
|
+
* claude-settings-patch.ts) imports this constant only to remove the exact
|
|
23
|
+
* old GDH-managed statusLine entry during migration. GDH does not
|
|
24
|
+
* auto-register a statusline command anymore; update detection still
|
|
25
|
+
* exists via SessionStart, MCP `_meta`, and CLI banner surfaces.
|
|
17
26
|
*/
|
|
18
27
|
export declare const GDH_STATUSLINE_COMMAND = "node .claude/hooks/gdh-statusline.js";
|
|
19
28
|
/**
|
|
@@ -33,7 +42,7 @@ export declare const GDH_STATUSLINE_COMMAND = "node .claude/hooks/gdh-statusline
|
|
|
33
42
|
* - yellow ANSI arrow + `/gdh-update` hint + trailing ` │ ` separator (Pattern S5)
|
|
34
43
|
* - silent-failure on every I/O + parse op (try/catch) — D-06
|
|
35
44
|
* - output goes to `process.stdout` (Claude Code's statusline convention)
|
|
36
|
-
* - no drift-scanning branch (
|
|
45
|
+
* - no drift-scanning branch (out of UPD-02 scope per D-18)
|
|
37
46
|
* - no legacy-prefix literal anywhere in emitted content
|
|
38
47
|
*
|
|
39
48
|
* The `_pinnedVersion` parameter is accepted for API symmetry with the hook
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-statusline-render.d.ts","sourceRoot":"","sources":["../src/claude-statusline-render.ts"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"claude-statusline-render.d.ts","sourceRoot":"","sources":["../src/claude-statusline-render.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,6BAA6B,CAAC;AAE1E;;;;;GAKG;AACH,eAAO,MAAM,sCAAsC,oCAChB,CAAC;AAEpC;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,yCAAyC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,4BAA4B,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAI5E"}
|
|
@@ -7,16 +7,25 @@ assertClassRegistered("claude_statusline", "deterministic");
|
|
|
7
7
|
* install does not register it in `.claude/settings.json` because Claude
|
|
8
8
|
* exposes only one statusLine command slot and a project-level entry can
|
|
9
9
|
* shadow a user's global statusline.
|
|
10
|
+
*
|
|
11
|
+
* RFC 0010 D4 — relocated from `.claude/hooks/gdh-statusline.js` to the
|
|
12
|
+
* canonical `<gitroot>/.gdh/hooks/` surface in v3.0.0.
|
|
10
13
|
*/
|
|
11
|
-
export const CLAUDE_STATUSLINE_RELATIVE_PATH = ".
|
|
14
|
+
export const CLAUDE_STATUSLINE_RELATIVE_PATH = ".gdh/hooks/statusline.js";
|
|
12
15
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* `
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
* Legacy `.claude/hooks/gdh-statusline.js` location, retained as a constant
|
|
17
|
+
* solely so the v3.0.0 migration step (Phase 91-D) can remove the exact
|
|
18
|
+
* stale `statusLine.command` entry from `.claude/settings.json` on existing
|
|
19
|
+
* managed targets. New installs never write to this path.
|
|
20
|
+
*/
|
|
21
|
+
export const LEGACY_CLAUDE_STATUSLINE_RELATIVE_PATH = ".claude/hooks/gdh-statusline.js";
|
|
22
|
+
/**
|
|
23
|
+
* Legacy command literal for the optional GDH statusline script under the
|
|
24
|
+
* pre-v3.0.0 layout. `patchClaudeSettingsForGdhStatusline` (in
|
|
25
|
+
* claude-settings-patch.ts) imports this constant only to remove the exact
|
|
26
|
+
* old GDH-managed statusLine entry during migration. GDH does not
|
|
27
|
+
* auto-register a statusline command anymore; update detection still
|
|
28
|
+
* exists via SessionStart, MCP `_meta`, and CLI banner surfaces.
|
|
20
29
|
*/
|
|
21
30
|
export const GDH_STATUSLINE_COMMAND = "node .claude/hooks/gdh-statusline.js";
|
|
22
31
|
/**
|
|
@@ -36,7 +45,7 @@ export const GDH_STATUSLINE_COMMAND = "node .claude/hooks/gdh-statusline.js";
|
|
|
36
45
|
* - yellow ANSI arrow + `/gdh-update` hint + trailing ` │ ` separator (Pattern S5)
|
|
37
46
|
* - silent-failure on every I/O + parse op (try/catch) — D-06
|
|
38
47
|
* - output goes to `process.stdout` (Claude Code's statusline convention)
|
|
39
|
-
* - no drift-scanning branch (
|
|
48
|
+
* - no drift-scanning branch (out of UPD-02 scope per D-18)
|
|
40
49
|
* - no legacy-prefix literal anywhere in emitted content
|
|
41
50
|
*
|
|
42
51
|
* The `_pinnedVersion` parameter is accepted for API symmetry with the hook
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-statusline-render.js","sourceRoot":"","sources":["../src/claude-statusline-render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,qBAAqB,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"claude-statusline-render.js","sourceRoot":"","sources":["../src/claude-statusline-render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,qBAAqB,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC;AAE5D;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,0BAA0B,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sCAAsC,GACjD,iCAAiC,CAAC;AAEpC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,sCAAsC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,4BAA4B,CAAC,cAAuB;IAClE,OAAO,qBAAqB,CAAC,0BAA0B,EAAE;QACvD,WAAW,EAAE,MAAM,CAAC,uBAAuB,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
* Relative path of the managed Claude SessionStart parent hook script.
|
|
3
3
|
* This is the .js file Claude Code invokes when a session opens on a
|
|
4
4
|
* GDH-managed target; it spawns the worker that refreshes the update cache.
|
|
5
|
+
*
|
|
6
|
+
* RFC 0010 D4 — relocated from `.claude/hooks/gdh-check-update.js` to the
|
|
7
|
+
* canonical `<gitroot>/.gdh/hooks/` surface in v3.0.0.
|
|
5
8
|
*/
|
|
6
|
-
export declare const CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH = ".
|
|
9
|
+
export declare const CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH = ".gdh/hooks/check-update.js";
|
|
7
10
|
/**
|
|
8
11
|
* Relative path of the managed Claude background worker script the parent
|
|
9
12
|
* hook spawns. The worker performs the HTTPS probe and writes the cache.
|
|
13
|
+
*
|
|
14
|
+
* RFC 0010 D4 — relocated from `.claude/hooks/gdh-check-update-worker.js`
|
|
15
|
+
* to the canonical `<gitroot>/.gdh/hooks/` surface in v3.0.0.
|
|
10
16
|
*/
|
|
11
|
-
export declare const CLAUDE_CHECK_UPDATE_WORKER_RELATIVE_PATH = ".
|
|
17
|
+
export declare const CLAUDE_CHECK_UPDATE_WORKER_RELATIVE_PATH = ".gdh/hooks/check-update-worker.js";
|
|
12
18
|
/**
|
|
13
19
|
* Render the Claude SessionStart parent hook source that will be baked into
|
|
14
20
|
* a managed Claude target at the given pinned GDH version.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-update-hook-render.d.ts","sourceRoot":"","sources":["../src/claude-update-hook-render.ts"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"claude-update-hook-render.d.ts","sourceRoot":"","sources":["../src/claude-update-hook-render.ts"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,eAAO,MAAM,sCAAsC,+BACrB,CAAC;AAE/B;;;;;;GAMG;AACH,eAAO,MAAM,wCAAwC,sCAChB,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAKzE"}
|
|
@@ -5,13 +5,19 @@ assertClassRegistered("claude_update_hook", "deterministic");
|
|
|
5
5
|
* Relative path of the managed Claude SessionStart parent hook script.
|
|
6
6
|
* This is the .js file Claude Code invokes when a session opens on a
|
|
7
7
|
* GDH-managed target; it spawns the worker that refreshes the update cache.
|
|
8
|
+
*
|
|
9
|
+
* RFC 0010 D4 — relocated from `.claude/hooks/gdh-check-update.js` to the
|
|
10
|
+
* canonical `<gitroot>/.gdh/hooks/` surface in v3.0.0.
|
|
8
11
|
*/
|
|
9
|
-
export const CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH = ".
|
|
12
|
+
export const CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH = ".gdh/hooks/check-update.js";
|
|
10
13
|
/**
|
|
11
14
|
* Relative path of the managed Claude background worker script the parent
|
|
12
15
|
* hook spawns. The worker performs the HTTPS probe and writes the cache.
|
|
16
|
+
*
|
|
17
|
+
* RFC 0010 D4 — relocated from `.claude/hooks/gdh-check-update-worker.js`
|
|
18
|
+
* to the canonical `<gitroot>/.gdh/hooks/` surface in v3.0.0.
|
|
13
19
|
*/
|
|
14
|
-
export const CLAUDE_CHECK_UPDATE_WORKER_RELATIVE_PATH = ".
|
|
20
|
+
export const CLAUDE_CHECK_UPDATE_WORKER_RELATIVE_PATH = ".gdh/hooks/check-update-worker.js";
|
|
15
21
|
/**
|
|
16
22
|
* Render the Claude SessionStart parent hook source that will be baked into
|
|
17
23
|
* a managed Claude target at the given pinned GDH version.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-update-hook-render.js","sourceRoot":"","sources":["../src/claude-update-hook-render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,qBAAqB,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAAC;AAE7D
|
|
1
|
+
{"version":3,"file":"claude-update-hook-render.js","sourceRoot":"","sources":["../src/claude-update-hook-render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,qBAAqB,CAAC,oBAAoB,EAAE,eAAe,CAAC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,sCAAsC,GACjD,4BAA4B,CAAC;AAE/B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wCAAwC,GACnD,mCAAmC,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,2BAA2B,CAAC,aAAqB;IAC/D,OAAO,qBAAqB,CAAC,iCAAiC,EAAE;QAC9D,WAAW,EAAE,MAAM,CAAC,uBAAuB,CAAC;QAC5C,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;KACjD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
* - no-pinned fallback uses the exact literal `if (!pinned) return;`
|
|
18
18
|
* - native fetch + AbortSignal.timeout(10000) — no npm shellout, no external deps
|
|
19
19
|
* - all I/O + parse + network wrapped in try/catch (silent-failure D-06)
|
|
20
|
-
* - no stale_hooks scan (
|
|
20
|
+
* - no stale_hooks scan (drift detection is `gdh verify drift`)
|
|
21
21
|
* - result object shape matches UpdateCheckCacheEntry from @gdh/core
|
|
22
22
|
*
|
|
23
23
|
* The baked script is deliberately dependency-free — it imports only Node
|
|
24
24
|
* built-ins and does NOT resolve @gdh/core at runtime. The semver compare
|
|
25
|
-
* (`isNewer`)
|
|
25
|
+
* (`isNewer`) follows the standard semver-compare pattern.
|
|
26
26
|
*/
|
|
27
27
|
export declare function renderClaudeCheckUpdateWorker(_pinnedVersion?: string): string;
|
|
28
28
|
//# sourceMappingURL=claude-update-worker-render.d.ts.map
|
|
@@ -20,12 +20,12 @@ assertClassRegistered("claude_update_worker", "deterministic");
|
|
|
20
20
|
* - no-pinned fallback uses the exact literal `if (!pinned) return;`
|
|
21
21
|
* - native fetch + AbortSignal.timeout(10000) — no npm shellout, no external deps
|
|
22
22
|
* - all I/O + parse + network wrapped in try/catch (silent-failure D-06)
|
|
23
|
-
* - no stale_hooks scan (
|
|
23
|
+
* - no stale_hooks scan (drift detection is `gdh verify drift`)
|
|
24
24
|
* - result object shape matches UpdateCheckCacheEntry from @gdh/core
|
|
25
25
|
*
|
|
26
26
|
* The baked script is deliberately dependency-free — it imports only Node
|
|
27
27
|
* built-ins and does NOT resolve @gdh/core at runtime. The semver compare
|
|
28
|
-
* (`isNewer`)
|
|
28
|
+
* (`isNewer`) follows the standard semver-compare pattern.
|
|
29
29
|
*/
|
|
30
30
|
export function renderClaudeCheckUpdateWorker(_pinnedVersion) {
|
|
31
31
|
// _pinnedVersion is accepted for API uniformity with the hook renderer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type GdhAgentAdaptersInstallResult, type GdhAgentAdaptersStatusResult, type
|
|
1
|
+
import { type GdhAgentAdaptersInstallResult, type GdhAgentAdaptersStatusResult, type GdhProjectLifecycleCompatibilityResult, type GdhProjectLifecycleSurfaceStatus, type GdhStatusResult, type GdhSupportedAgent } from "@gdh/core";
|
|
2
2
|
import { type GdhStatusBuildAdapters } from "./deferred-actions-advisory.js";
|
|
3
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;
|
|
@@ -43,9 +43,6 @@ export declare function installSupportedAgentAdapters(targetPath: string, option
|
|
|
43
43
|
}): Promise<GdhAgentAdaptersInstallResult>;
|
|
44
44
|
export declare function inspectProjectLifecycleCompatibility(targetPath: string): Promise<GdhProjectLifecycleCompatibilityResult>;
|
|
45
45
|
export declare function buildGdhStatusResult(targetPath: string, adapters?: GdhStatusBuildAdapters): Promise<GdhStatusResult>;
|
|
46
|
-
export declare function createGsdSnapshot(targetPath: string, options?: {
|
|
47
|
-
readonly files?: readonly string[];
|
|
48
|
-
}): Promise<GdhGsdSnapshot>;
|
|
49
46
|
export declare function renderClaudeOnboardCommand(pinnedVersion: string): string;
|
|
50
47
|
export declare function renderClaudeStatusCommand(pinnedVersion: string): string;
|
|
51
48
|
export declare function renderClaudeMigrateCommand(pinnedVersion: string): string;
|
|
@@ -57,7 +54,7 @@ export declare function renderManagedCodexProjectConfig(existingContent: string
|
|
|
57
54
|
declare function summarizeProjectLifecycleCompatibility(targetPath: string, surfaces: readonly GdhProjectLifecycleSurfaceStatus[]): GdhProjectLifecycleCompatibilityResult;
|
|
58
55
|
export { CLAUDE_STATUSLINE_RELATIVE_PATH } from "./claude-statusline-render.js";
|
|
59
56
|
export { CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH } from "./claude-update-hook-render.js";
|
|
60
|
-
export { CLAUDE_AUTHORING_HOOK_COMMAND,
|
|
57
|
+
export { CLAUDE_AUTHORING_HOOK_COMMAND, CODEX_AUTHORING_HOOK_COMMAND, GDH_AUTHORING_HOOK_RELATIVE_PATH, } from "./authoring-hook-render.js";
|
|
61
58
|
export { type BumpAndRebakePinResult, bumpAndRebakePin, } from "./self-update-mechanics.js";
|
|
62
59
|
export { deriveExpectedRenderSet, runInventorySweep, } from "./inventory-sweep.js";
|
|
63
60
|
export type { GdhInventorySweepInput, GdhInventorySweepResult, GdhInventorySweepSkipped, } from "./inventory-sweep.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAcL,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,
|
|
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;AAyB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