@skillcap/gdh 0.7.0 → 0.8.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 (69) hide show
  1. package/INSTALL-BUNDLE.json +1 -1
  2. package/README.md +4 -4
  3. package/node_modules/@gdh/adapters/dist/index.d.ts +3 -1
  4. package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
  5. package/node_modules/@gdh/adapters/dist/index.js +65 -17
  6. package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
  7. package/node_modules/@gdh/adapters/dist/self-update-mechanics.d.ts.map +1 -1
  8. package/node_modules/@gdh/adapters/dist/self-update-mechanics.js +9 -1
  9. package/node_modules/@gdh/adapters/dist/self-update-mechanics.js.map +1 -1
  10. package/node_modules/@gdh/adapters/package.json +8 -8
  11. package/node_modules/@gdh/authoring/dist/prepare.d.ts.map +1 -1
  12. package/node_modules/@gdh/authoring/dist/prepare.js +5 -1
  13. package/node_modules/@gdh/authoring/dist/prepare.js.map +1 -1
  14. package/node_modules/@gdh/authoring/package.json +2 -2
  15. package/node_modules/@gdh/cli/dist/index.d.ts +35 -0
  16. package/node_modules/@gdh/cli/dist/index.d.ts.map +1 -1
  17. package/node_modules/@gdh/cli/dist/index.js +227 -137
  18. package/node_modules/@gdh/cli/dist/index.js.map +1 -1
  19. package/node_modules/@gdh/cli/dist/migrate.d.ts +4 -0
  20. package/node_modules/@gdh/cli/dist/migrate.d.ts.map +1 -1
  21. package/node_modules/@gdh/cli/dist/migrate.js +13 -0
  22. package/node_modules/@gdh/cli/dist/migrate.js.map +1 -1
  23. package/node_modules/@gdh/cli/dist/self-update.d.ts.map +1 -1
  24. package/node_modules/@gdh/cli/dist/self-update.js +52 -3
  25. package/node_modules/@gdh/cli/dist/self-update.js.map +1 -1
  26. package/node_modules/@gdh/cli/dist/setup.d.ts +41 -0
  27. package/node_modules/@gdh/cli/dist/setup.d.ts.map +1 -1
  28. package/node_modules/@gdh/cli/dist/setup.js +181 -26
  29. package/node_modules/@gdh/cli/dist/setup.js.map +1 -1
  30. package/node_modules/@gdh/cli/package.json +10 -10
  31. package/node_modules/@gdh/core/dist/index.d.ts +75 -1
  32. package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
  33. package/node_modules/@gdh/core/dist/index.js +45 -1
  34. package/node_modules/@gdh/core/dist/index.js.map +1 -1
  35. package/node_modules/@gdh/core/dist/update-cache.d.ts +12 -0
  36. package/node_modules/@gdh/core/dist/update-cache.d.ts.map +1 -1
  37. package/node_modules/@gdh/core/dist/update-cache.js +20 -0
  38. package/node_modules/@gdh/core/dist/update-cache.js.map +1 -1
  39. package/node_modules/@gdh/core/dist/update-probe.d.ts.map +1 -1
  40. package/node_modules/@gdh/core/dist/update-probe.js +7 -1
  41. package/node_modules/@gdh/core/dist/update-probe.js.map +1 -1
  42. package/node_modules/@gdh/core/package.json +1 -1
  43. package/node_modules/@gdh/docs/dist/index.d.ts +2 -0
  44. package/node_modules/@gdh/docs/dist/index.d.ts.map +1 -1
  45. package/node_modules/@gdh/docs/dist/index.js +1 -0
  46. package/node_modules/@gdh/docs/dist/index.js.map +1 -1
  47. package/node_modules/@gdh/docs/dist/recovery-hints.d.ts +43 -0
  48. package/node_modules/@gdh/docs/dist/recovery-hints.d.ts.map +1 -0
  49. package/node_modules/@gdh/docs/dist/recovery-hints.js +203 -0
  50. package/node_modules/@gdh/docs/dist/recovery-hints.js.map +1 -0
  51. package/node_modules/@gdh/docs/package.json +2 -2
  52. package/node_modules/@gdh/mcp/package.json +8 -8
  53. package/node_modules/@gdh/observability/package.json +2 -2
  54. package/node_modules/@gdh/runtime/package.json +2 -2
  55. package/node_modules/@gdh/scan/dist/detect-existing-onboarding.d.ts +19 -0
  56. package/node_modules/@gdh/scan/dist/detect-existing-onboarding.d.ts.map +1 -0
  57. package/node_modules/@gdh/scan/dist/detect-existing-onboarding.js +58 -0
  58. package/node_modules/@gdh/scan/dist/detect-existing-onboarding.js.map +1 -0
  59. package/node_modules/@gdh/scan/dist/index.d.ts +1 -0
  60. package/node_modules/@gdh/scan/dist/index.d.ts.map +1 -1
  61. package/node_modules/@gdh/scan/dist/index.js +1 -0
  62. package/node_modules/@gdh/scan/dist/index.js.map +1 -1
  63. package/node_modules/@gdh/scan/dist/onboard.d.ts +2 -0
  64. package/node_modules/@gdh/scan/dist/onboard.d.ts.map +1 -1
  65. package/node_modules/@gdh/scan/dist/onboard.js +12 -4
  66. package/node_modules/@gdh/scan/dist/onboard.js.map +1 -1
  67. package/node_modules/@gdh/scan/package.json +3 -3
  68. package/node_modules/@gdh/verify/package.json +7 -7
  69. package/package.json +11 -11
@@ -14,7 +14,7 @@
14
14
  "test": "vitest run"
15
15
  },
16
16
  "dependencies": {
17
- "@gdh/core": "0.7.0"
17
+ "@gdh/core": "0.8.0"
18
18
  },
19
- "version": "0.7.0"
19
+ "version": "0.8.0"
20
20
  }
@@ -15,6 +15,41 @@ export declare function findUnsupportedOptionsError(args: readonly string[], opt
15
15
  readonly optionsWithValues?: readonly string[];
16
16
  readonly booleanOptions?: readonly string[];
17
17
  }): string | null;
18
+ /**
19
+ * CLI ingress helper. Returns an ABSOLUTE `targetPath` on both success and error paths.
20
+ *
21
+ * Part of the "targetPath is absolute post-ingress" invariant committed in
22
+ * `docs/architecture/package-boundaries.md#path-contracts`. Uses `path.resolve` — NEVER
23
+ * `fs.realpath` — to preserve caller-supplied symlink path shapes (worktree invocations).
24
+ */
25
+ export declare function parseSingleTargetPathArg(args: readonly string[], options: {
26
+ readonly usage: string;
27
+ readonly allowTargetOption?: boolean;
28
+ }): {
29
+ readonly targetPath: string;
30
+ readonly error: string | null;
31
+ };
32
+ /**
33
+ * CLI ingress helper for subcommands that accept at most one optional positional
34
+ * target-path argument (no `--target` option). Returns an ABSOLUTE `targetPath` on both
35
+ * success and error paths.
36
+ *
37
+ * Part of the "targetPath is absolute post-ingress" invariant committed in
38
+ * `docs/architecture/package-boundaries.md#path-contracts`. Uses `path.resolve` — NEVER
39
+ * `fs.realpath` — to preserve caller-supplied symlink path shapes (worktree invocations).
40
+ *
41
+ * @param args - argv slice starting after the subcommand name.
42
+ * @param options.usage - usage string embedded in error messages.
43
+ * @param options.additionalOptionsWithValues - options the subcommand consumes with values
44
+ * so they are not misinterpreted as positionals (forwarded to `extractPositionalArgs`).
45
+ */
46
+ export declare function parseOptionalPositionalTargetPath(args: readonly string[], options: {
47
+ readonly usage: string;
48
+ readonly additionalOptionsWithValues?: ReadonlySet<string>;
49
+ }): {
50
+ readonly targetPath: string;
51
+ readonly error: string | null;
52
+ };
18
53
  export declare function recordSessionEvent(targetPath: string, input: Parameters<typeof recordAuthoringSessionEvent>[1] & {
19
54
  readonly commandStartedAtMs?: number;
20
55
  }): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2EA,OAAO,EAIL,2BAA2B,EAC5B,MAAM,oBAAoB,CAAC;AA2C5B,eAAO,MAAM,UAAU,wCAerB,CAAC;AAEH,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACnD,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;CACpD;AAED,wBAAsB,MAAM,CAC1B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,GAAE,KAA0D,GAC7D,OAAO,CAAC,MAAM,CAAC,CA+GjB;AAED,wBAAgB,eAAe,CAC7B,EAAE,EAAE,KAAK,EACT,KAAK,EAAE,OAAO,EACd,OAAO,GAAE;IAAE,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAAO,GACvD,IAAI,CAGN;AAy+ID,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAErD;AAkFD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,SAAS,MA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