@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.
Files changed (55) hide show
  1. package/INSTALL-BUNDLE.json +1 -1
  2. package/README.md +1 -1
  3. package/RELEASE-SPAN-UPDATE-CONTRACTS.json +125 -0
  4. package/node_modules/@gdh/adapters/dist/codex-authoring-hook-block.d.ts +16 -0
  5. package/node_modules/@gdh/adapters/dist/codex-authoring-hook-block.d.ts.map +1 -0
  6. package/node_modules/@gdh/adapters/dist/codex-authoring-hook-block.js +40 -0
  7. package/node_modules/@gdh/adapters/dist/codex-authoring-hook-block.js.map +1 -0
  8. package/node_modules/@gdh/adapters/dist/index.d.ts +2 -30
  9. package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
  10. package/node_modules/@gdh/adapters/dist/index.js +99 -455
  11. package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
  12. package/node_modules/@gdh/adapters/dist/self-update-mechanics.js +1 -1
  13. package/node_modules/@gdh/adapters/dist/self-update-mechanics.js.map +1 -1
  14. package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts +4 -13
  15. package/node_modules/@gdh/adapters/dist/skill-rendering.d.ts.map +1 -1
  16. package/node_modules/@gdh/adapters/dist/skill-rendering.js +36 -98
  17. package/node_modules/@gdh/adapters/dist/skill-rendering.js.map +1 -1
  18. package/node_modules/@gdh/adapters/package.json +8 -8
  19. package/node_modules/@gdh/authoring/package.json +2 -2
  20. package/node_modules/@gdh/cli/dist/index.d.ts.map +1 -1
  21. package/node_modules/@gdh/cli/dist/index.js +16 -23
  22. package/node_modules/@gdh/cli/dist/index.js.map +1 -1
  23. package/node_modules/@gdh/cli/dist/migrate.d.ts.map +1 -1
  24. package/node_modules/@gdh/cli/dist/migrate.js +1 -4
  25. package/node_modules/@gdh/cli/dist/migrate.js.map +1 -1
  26. package/node_modules/@gdh/cli/dist/setup.d.ts.map +1 -1
  27. package/node_modules/@gdh/cli/dist/setup.js +6 -12
  28. package/node_modules/@gdh/cli/dist/setup.js.map +1 -1
  29. package/node_modules/@gdh/cli/package.json +10 -10
  30. package/node_modules/@gdh/core/dist/index.d.ts +18 -5
  31. package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
  32. package/node_modules/@gdh/core/dist/index.js +15 -6
  33. package/node_modules/@gdh/core/dist/index.js.map +1 -1
  34. package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.d.ts +18 -54
  35. package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.d.ts.map +1 -1
  36. package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.js +12 -67
  37. package/node_modules/@gdh/core/dist/migrations/managed-surface-classes.js.map +1 -1
  38. package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.d.ts +11 -22
  39. package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.d.ts.map +1 -1
  40. package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.js +36 -38
  41. package/node_modules/@gdh/core/dist/migrations/managed-target-surface-inventory.js.map +1 -1
  42. package/node_modules/@gdh/core/package.json +1 -1
  43. package/node_modules/@gdh/docs/dist/recovery-hints.d.ts +18 -4
  44. package/node_modules/@gdh/docs/dist/recovery-hints.d.ts.map +1 -1
  45. package/node_modules/@gdh/docs/dist/recovery-hints.js +32 -34
  46. package/node_modules/@gdh/docs/dist/recovery-hints.js.map +1 -1
  47. package/node_modules/@gdh/docs/package.json +2 -2
  48. package/node_modules/@gdh/mcp/package.json +8 -8
  49. package/node_modules/@gdh/observability/package.json +2 -2
  50. package/node_modules/@gdh/runtime/package.json +2 -2
  51. package/node_modules/@gdh/scan/dist/onboard.js +2 -2
  52. package/node_modules/@gdh/scan/dist/onboard.js.map +1 -1
  53. package/node_modules/@gdh/scan/package.json +3 -3
  54. package/node_modules/@gdh/verify/package.json +7 -7
  55. package/package.json +11 -11
@@ -4,7 +4,7 @@ import fs from "node:fs/promises";
4
4
  import os from "node:os";
5
5
  import path from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
- import { buildGdhStatusResult, CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH, CLAUDE_MIGRATE_SKILL_RELATIVE_PATH, CLAUDE_ONBOARD_SKILL_RELATIVE_PATH, CLAUDE_PREPARE_SKILL_RELATIVE_PATH, CLAUDE_SCAN_SKILL_RELATIVE_PATH, CLAUDE_STATUS_SKILL_RELATIVE_PATH, CODEX_MIGRATE_SKILL_RELATIVE_PATH, CODEX_ONBOARD_SKILL_RELATIVE_PATH, CODEX_PREPARE_SKILL_RELATIVE_PATH, CODEX_SCAN_SKILL_RELATIVE_PATH, CODEX_STATUS_SKILL_RELATIVE_PATH, CURSOR_MIGRATE_COMMAND_RELATIVE_PATH, CURSOR_ONBOARD_COMMAND_RELATIVE_PATH, CURSOR_PREPARE_COMMAND_RELATIVE_PATH, CURSOR_SCAN_COMMAND_RELATIVE_PATH, CURSOR_STATUS_COMMAND_RELATIVE_PATH, createGsdSnapshot, getSupportedAgentAdaptersStatus, installSupportedAgentAdapters, } from "@gdh/adapters";
7
+ import { buildGdhStatusResult, CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH, CLAUDE_MIGRATE_SKILL_RELATIVE_PATH, CLAUDE_ONBOARD_SKILL_RELATIVE_PATH, CLAUDE_PREPARE_SKILL_RELATIVE_PATH, CLAUDE_STATUS_SKILL_RELATIVE_PATH, CODEX_MIGRATE_SKILL_RELATIVE_PATH, CODEX_ONBOARD_SKILL_RELATIVE_PATH, CODEX_PREPARE_SKILL_RELATIVE_PATH, CODEX_STATUS_SKILL_RELATIVE_PATH, createGsdSnapshot, getSupportedAgentAdaptersStatus, installSupportedAgentAdapters, } from "@gdh/adapters";
8
8
  import { checkManagedLsp, doctorAuthoringDiagnostics, doctorManagedLsp, getAuthoringDiagnosticsStatus, getCurrentAuthoringDiagnostics, getManagedLspStatus, hasCompleteOnboardingSurface, inspectCacheState, pruneAuthoringDiagnostics, pruneCacheState, pruneManagedLsp, readProjectConfig, readWorktreeState, refreshAuthoringDiagnostics, resolveAuthoringStatus, resolveEffectiveTargetPath, resolvePinnedVersion, resolveProjectRoot, resolveTargetGodotDocsVersion, restartManagedLsp, runAuthoringCheck, runImportRefresh, runTargetPrepare, runWarmup, stopManagedLsp, warmupManagedLsp, } from "@gdh/authoring";
9
9
  import { definePackageBoundary, GDH_AUTHORING_DOGFOOD_VERSION, GDH_AUTHORING_SLICE_REPORT_VERSION, GDH_PRODUCT_NAME, resolveCurrentGdhInstall, resolveGdhProductMetadata, } from "@gdh/core";
10
10
  import { fetchOfficialGodotDoc, getGuidanceStatus, resolveGuidanceQuery, searchOfficialGodotDocs, } from "@gdh/docs";
@@ -280,7 +280,7 @@ async function runSetupCommand(args, io) {
280
280
  "--yes skips prompts and uses detected defaults unless you override them with --project, --agent, or --all-agents.",
281
281
  "--project selects one detected Godot project relative to the setup root when many are present.",
282
282
  "--all-agents enables every supported agent available on this machine.",
283
- "Supported agents: codex, claude, cursor",
283
+ "Supported agents: codex, claude",
284
284
  ].join("\n") + "\n");
285
285
  return 0;
286
286
  }
@@ -306,7 +306,7 @@ async function runSetupCommand(args, io) {
306
306
  }
307
307
  const requestedAgents = collectAdapterNames(args);
308
308
  if (requestedAgents === null) {
309
- io.stderr.write("Usage error: --agent must be one of codex, claude, or cursor.\n");
309
+ io.stderr.write("Usage error: --agent must be one of codex or claude.\n");
310
310
  return 1;
311
311
  }
312
312
  if (allAgents && requestedAgents.length > 0) {
@@ -1580,7 +1580,7 @@ async function runAdaptersCommand(args, io) {
1580
1580
  " Install or repair supported-agent reinforcement surfaces.",
1581
1581
  " gsd snapshot [target] [--files <path>] Export a read-mostly GSD projection as JSON.",
1582
1582
  "",
1583
- "Supported agents: codex, claude, cursor",
1583
+ "Supported agents: codex, claude",
1584
1584
  ].join("\n") + "\n");
1585
1585
  return 0;
1586
1586
  }
@@ -2797,7 +2797,7 @@ async function runAdaptersStatusCommand(args, io) {
2797
2797
  io.stdout.write([
2798
2798
  "Usage: gdh adapters status [target] [--user] [--integration-root <path>]",
2799
2799
  "",
2800
- "Inspect Codex, Claude, and Cursor repo-local reinforcement status as JSON.",
2800
+ "Inspect Codex and Claude repo-local reinforcement status as JSON.",
2801
2801
  "--user also inspects optional Codex user-local MCP registration.",
2802
2802
  "Use --integration-root when the agent-facing repo root differs from the nested GDH target root.",
2803
2803
  ].join("\n") + "\n");
@@ -2842,7 +2842,7 @@ async function runAdaptersInstallCommand(args, io) {
2842
2842
  "Install or repair supported-agent reinforcement surfaces while keeping AGENTS.md canonical.",
2843
2843
  "--user installs user-local agent registration instead of repo-local surfaces.",
2844
2844
  "Use --integration-root when the agent-facing repo root differs from the nested GDH target root.",
2845
- "Supported agents: codex, claude, cursor",
2845
+ "Supported agents: codex, claude",
2846
2846
  ].join("\n") + "\n");
2847
2847
  return 0;
2848
2848
  }
@@ -2867,7 +2867,7 @@ async function runAdaptersInstallCommand(args, io) {
2867
2867
  }
2868
2868
  const agents = collectAdapterNames(args);
2869
2869
  if (agents === null) {
2870
- io.stderr.write("Usage error: --agent must be one of codex, claude, or cursor.\n");
2870
+ io.stderr.write("Usage error: --agent must be one of codex or claude.\n");
2871
2871
  return 1;
2872
2872
  }
2873
2873
  const devRepoPath = readSingleOptionValue(args, "--dev-repo");
@@ -3327,21 +3327,17 @@ const VERIFY_DRIFT_SCANNED_FILES = [
3327
3327
  { relativePath: CODEX_STATUS_SKILL_RELATIVE_PATH, description: "Codex gdh-status skill" },
3328
3328
  { relativePath: CODEX_MIGRATE_SKILL_RELATIVE_PATH, description: "Codex gdh-migrate skill" },
3329
3329
  { relativePath: CODEX_PREPARE_SKILL_RELATIVE_PATH, description: "Codex gdh-prepare skill" },
3330
- { relativePath: CODEX_SCAN_SKILL_RELATIVE_PATH, description: "Codex gdh-scan skill" },
3331
- { relativePath: CURSOR_ONBOARD_COMMAND_RELATIVE_PATH, description: "Cursor gdh-onboard command" },
3332
- { relativePath: CURSOR_STATUS_COMMAND_RELATIVE_PATH, description: "Cursor gdh-status command" },
3333
- { relativePath: CURSOR_MIGRATE_COMMAND_RELATIVE_PATH, description: "Cursor gdh-migrate command" },
3334
- { relativePath: CURSOR_PREPARE_COMMAND_RELATIVE_PATH, description: "Cursor gdh-prepare command" },
3335
- { relativePath: CURSOR_SCAN_COMMAND_RELATIVE_PATH, description: "Cursor gdh-scan command" },
3336
3330
  { relativePath: CLAUDE_ONBOARD_SKILL_RELATIVE_PATH, description: "Claude gdh-onboard skill" },
3337
3331
  { relativePath: CLAUDE_STATUS_SKILL_RELATIVE_PATH, description: "Claude gdh-status skill" },
3338
3332
  { relativePath: CLAUDE_MIGRATE_SKILL_RELATIVE_PATH, description: "Claude gdh-migrate skill" },
3339
3333
  { relativePath: CLAUDE_PREPARE_SKILL_RELATIVE_PATH, description: "Claude gdh-prepare skill" },
3340
- { relativePath: CLAUDE_SCAN_SKILL_RELATIVE_PATH, description: "Claude gdh-scan skill" },
3341
- // Intentionally excluded: generated gdh-check skills for Claude, Codex, and Cursor.
3342
- // v0.25 retires the validation skill surface; validation evidence belongs to hooks,
3343
- // MCP/CLI status, and explicit authoring-check commands. Scanning the retired paths
3344
- // reports a false missing-file drift after a correct migration removes them.
3334
+ // Intentionally excluded: generated gdh-check and gdh-scan skills for Claude
3335
+ // and Codex. v0.25 retired the validation skill surface; v1.1 retires the
3336
+ // discovery skill surface (the `gdh scan` CLI verb stays). Validation evidence
3337
+ // belongs to hooks, MCP/CLI status, and explicit authoring-check commands;
3338
+ // scan now runs from the CLI when an inventory probe is needed. Scanning the
3339
+ // retired paths reports a false missing-file drift after a correct migration
3340
+ // removes them.
3345
3341
  // Phase 12 extension — close the Phase 11 coverage gap (research §Baked Version Surface Inventory rows 26-28).
3346
3342
  // These files are re-baked at pin time and must be audited by MIG-02's post-condition invariant.
3347
3343
  //
@@ -3379,9 +3375,6 @@ const VERIFY_DRIFT_SCANNED_FILES = [
3379
3375
  //
3380
3376
  // Intentionally excluded: the Codex gdh-update skill (.agents/skills/gdh-update/SKILL.md) —
3381
3377
  // same rationale: renders @skillcap/gdh@latest, not @<pinnedVersion>. Phase 13 D-13.
3382
- //
3383
- // Intentionally excluded: the Cursor gdh-update command (.cursor/commands/gdh-update.md) —
3384
- // same rationale: renders @skillcap/gdh@latest, not @<pinnedVersion>. Phase 13 D-13.
3385
3378
  ];
3386
3379
  // Mirrors EXACT_SEMVER_PATTERN in @gdh/authoring so only well-formed SemVer
3387
3380
  // values match — drift check does not pick up unrelated doc prose.
@@ -3392,7 +3385,7 @@ async function runVerifyDriftCommand(args, io) {
3392
3385
  "Usage: gdh verify drift [target]",
3393
3386
  "",
3394
3387
  "Compares every baked `@skillcap/gdh@<version>` literal across the managed",
3395
- "surfaces (regenerated Codex/Cursor/Claude skill files and hooks) against",
3388
+ "surfaces (regenerated Codex/Claude skill files and hooks) against",
3396
3389
  ".gdh/project.yaml gdh_version. Exits 1 and",
3397
3390
  "emits a structured JSON result when ANY file's baked version diverges from",
3398
3391
  "the pinned value. Covers ROADMAP Success Criterion #3 (one source of truth).",
@@ -4777,7 +4770,7 @@ function collectAdapterNames(args) {
4777
4770
  return agents;
4778
4771
  }
4779
4772
  function isSupportedAgent(value) {
4780
- return value === "codex" || value === "claude" || value === "cursor";
4773
+ return value === "codex" || value === "claude";
4781
4774
  }
4782
4775
  function deriveGuidanceRepoState(context) {
4783
4776
  const repoState = new Set();