@skillcap/gdh 0.4.1 → 0.6.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 +54 -92
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.d.ts +74 -0
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.d.ts.map +1 -0
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.js +158 -0
- package/node_modules/@gdh/adapters/dist/claude-settings-patch.js.map +1 -0
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.d.ts +51 -0
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.d.ts.map +1 -0
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.js +80 -0
- package/node_modules/@gdh/adapters/dist/claude-statusline-render.js.map +1 -0
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.d.ts +35 -0
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.d.ts.map +1 -0
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.js +76 -0
- package/node_modules/@gdh/adapters/dist/claude-update-hook-render.js.map +1 -0
- package/node_modules/@gdh/adapters/dist/claude-update-worker-render.d.ts +28 -0
- package/node_modules/@gdh/adapters/dist/claude-update-worker-render.d.ts.map +1 -0
- package/node_modules/@gdh/adapters/dist/claude-update-worker-render.js +99 -0
- package/node_modules/@gdh/adapters/dist/claude-update-worker-render.js.map +1 -0
- package/node_modules/@gdh/adapters/dist/index.d.ts +34 -18
- package/node_modules/@gdh/adapters/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/adapters/dist/index.js +596 -145
- package/node_modules/@gdh/adapters/dist/index.js.map +1 -1
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.d.ts +51 -0
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.d.ts.map +1 -0
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.js +155 -0
- package/node_modules/@gdh/adapters/dist/self-update-mechanics.js.map +1 -0
- package/node_modules/@gdh/adapters/package.json +8 -8
- package/node_modules/@gdh/authoring/dist/index.d.ts +2 -1
- package/node_modules/@gdh/authoring/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/index.js +2 -1
- package/node_modules/@gdh/authoring/dist/index.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/project.d.ts +24 -0
- package/node_modules/@gdh/authoring/dist/project.d.ts.map +1 -1
- package/node_modules/@gdh/authoring/dist/project.js +51 -1
- package/node_modules/@gdh/authoring/dist/project.js.map +1 -1
- package/node_modules/@gdh/authoring/dist/writePinnedVersion.d.ts +17 -0
- package/node_modules/@gdh/authoring/dist/writePinnedVersion.d.ts.map +1 -0
- package/node_modules/@gdh/authoring/dist/writePinnedVersion.js +50 -0
- package/node_modules/@gdh/authoring/dist/writePinnedVersion.js.map +1 -0
- package/node_modules/@gdh/authoring/package.json +5 -2
- package/node_modules/@gdh/cli/dist/index.d.ts +15 -0
- package/node_modules/@gdh/cli/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/index.js +292 -40
- package/node_modules/@gdh/cli/dist/index.js.map +1 -1
- package/node_modules/@gdh/cli/dist/migrate.d.ts +1 -0
- package/node_modules/@gdh/cli/dist/migrate.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/migrate.js +180 -72
- package/node_modules/@gdh/cli/dist/migrate.js.map +1 -1
- package/node_modules/@gdh/cli/dist/self-update.d.ts +3 -0
- package/node_modules/@gdh/cli/dist/self-update.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/self-update.js +235 -0
- package/node_modules/@gdh/cli/dist/self-update.js.map +1 -0
- package/node_modules/@gdh/cli/dist/setup.d.ts.map +1 -1
- package/node_modules/@gdh/cli/dist/setup.js +49 -1
- package/node_modules/@gdh/cli/dist/setup.js.map +1 -1
- package/node_modules/@gdh/cli/dist/update-banner.d.ts +42 -0
- package/node_modules/@gdh/cli/dist/update-banner.d.ts.map +1 -0
- package/node_modules/@gdh/cli/dist/update-banner.js +49 -0
- package/node_modules/@gdh/cli/dist/update-banner.js.map +1 -0
- package/node_modules/@gdh/cli/package.json +10 -10
- package/node_modules/@gdh/core/dist/dev-mode.d.ts +13 -0
- package/node_modules/@gdh/core/dist/dev-mode.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/dev-mode.js +21 -0
- package/node_modules/@gdh/core/dist/dev-mode.js.map +1 -0
- package/node_modules/@gdh/core/dist/index.d.ts +12 -5
- package/node_modules/@gdh/core/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/core/dist/index.js +10 -2
- package/node_modules/@gdh/core/dist/index.js.map +1 -1
- package/node_modules/@gdh/core/dist/update-cache.d.ts +46 -0
- package/node_modules/@gdh/core/dist/update-cache.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/update-cache.js +90 -0
- package/node_modules/@gdh/core/dist/update-cache.js.map +1 -0
- package/node_modules/@gdh/core/dist/update-probe.d.ts +102 -0
- package/node_modules/@gdh/core/dist/update-probe.d.ts.map +1 -0
- package/node_modules/@gdh/core/dist/update-probe.js +195 -0
- package/node_modules/@gdh/core/dist/update-probe.js.map +1 -0
- package/node_modules/@gdh/core/package.json +1 -1
- package/node_modules/@gdh/docs/dist/guidance.d.ts.map +1 -1
- package/node_modules/@gdh/docs/dist/guidance.js +47 -0
- package/node_modules/@gdh/docs/dist/guidance.js.map +1 -1
- package/node_modules/@gdh/docs/package.json +2 -2
- package/node_modules/@gdh/mcp/dist/index.d.ts +20 -0
- package/node_modules/@gdh/mcp/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/mcp/dist/index.js +45 -4
- package/node_modules/@gdh/mcp/dist/index.js.map +1 -1
- package/node_modules/@gdh/mcp/package.json +8 -8
- package/node_modules/@gdh/observability/dist/guidance-audit.js +3 -1
- package/node_modules/@gdh/observability/dist/guidance-audit.js.map +1 -1
- package/node_modules/@gdh/observability/package.json +2 -2
- package/node_modules/@gdh/runtime/package.json +2 -2
- package/node_modules/@gdh/scan/dist/index.d.ts +2 -0
- package/node_modules/@gdh/scan/dist/index.d.ts.map +1 -1
- package/node_modules/@gdh/scan/dist/index.js +1 -0
- package/node_modules/@gdh/scan/dist/index.js.map +1 -1
- package/node_modules/@gdh/scan/dist/inventory-cache.d.ts +15 -0
- package/node_modules/@gdh/scan/dist/inventory-cache.d.ts.map +1 -0
- package/node_modules/@gdh/scan/dist/inventory-cache.js +53 -0
- package/node_modules/@gdh/scan/dist/inventory-cache.js.map +1 -0
- package/node_modules/@gdh/scan/dist/onboard.d.ts +7 -0
- package/node_modules/@gdh/scan/dist/onboard.d.ts.map +1 -1
- package/node_modules/@gdh/scan/dist/onboard.js +7 -1
- 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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { GDH_UPDATE_HOOK_VERSION } from "@gdh/core";
|
|
2
|
+
/**
|
|
3
|
+
* Relative path of the managed Claude SessionStart parent hook script.
|
|
4
|
+
* This is the .js file Claude Code invokes when a session opens on a
|
|
5
|
+
* GDH-managed target; it spawns the worker that refreshes the update cache.
|
|
6
|
+
*/
|
|
7
|
+
export const CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH = ".claude/hooks/gdh-check-update.js";
|
|
8
|
+
/**
|
|
9
|
+
* Relative path of the managed Claude background worker script the parent
|
|
10
|
+
* hook spawns. The worker performs the HTTPS probe and writes the cache.
|
|
11
|
+
*/
|
|
12
|
+
export const CLAUDE_CHECK_UPDATE_WORKER_RELATIVE_PATH = ".claude/hooks/gdh-check-update-worker.js";
|
|
13
|
+
/**
|
|
14
|
+
* Render the Claude SessionStart parent hook source that will be baked into
|
|
15
|
+
* a managed Claude target at the given pinned GDH version.
|
|
16
|
+
*
|
|
17
|
+
* The returned string is written verbatim to
|
|
18
|
+
* `.claude/hooks/gdh-check-update.js` by the adapter install pipeline.
|
|
19
|
+
*
|
|
20
|
+
* Invariants enforced by this renderer (see 11-02-PLAN):
|
|
21
|
+
* - shebang on line 1; a hook-version marker on line 2 for drift detection
|
|
22
|
+
* - dev-mode short-circuit on GDH_DEV_REPO runs BEFORE spawn()
|
|
23
|
+
* - spawn uses detached:true + child.unref() + windowsHide:true + stdio:'ignore'
|
|
24
|
+
* - pinned version flows to the worker via GDH_PINNED_VERSION env var
|
|
25
|
+
* - cache file path flows to the worker via GDH_CACHE_FILE env var
|
|
26
|
+
* - cache dir (~/.cache/gdh/) is created with fs.mkdirSync recursive:true
|
|
27
|
+
*
|
|
28
|
+
* The body wraps everything after the requires in an IIFE so `return` exits
|
|
29
|
+
* cleanly (Node's CommonJS module body does not allow top-level return).
|
|
30
|
+
*
|
|
31
|
+
* The baked script is deliberately dependency-free — it imports only Node
|
|
32
|
+
* built-ins and does NOT resolve @gdh/core at runtime. Every string in the
|
|
33
|
+
* output is literal JavaScript.
|
|
34
|
+
*/
|
|
35
|
+
export function renderClaudeCheckUpdateHook(pinnedVersion) {
|
|
36
|
+
return [
|
|
37
|
+
"#!/usr/bin/env node",
|
|
38
|
+
`// gdh-hook-version: ${GDH_UPDATE_HOOK_VERSION}`,
|
|
39
|
+
"// Check for GDH updates in background, write result to cache.",
|
|
40
|
+
"// Called by Claude Code SessionStart hook — runs once per session.",
|
|
41
|
+
"// Baked by @gdh/adapters at the pinned gdh_version — regenerated by gdh self-update.",
|
|
42
|
+
"",
|
|
43
|
+
"const fs = require('fs');",
|
|
44
|
+
"const path = require('path');",
|
|
45
|
+
"const os = require('os');",
|
|
46
|
+
"const { spawn } = require('child_process');",
|
|
47
|
+
"",
|
|
48
|
+
"(function () {",
|
|
49
|
+
" // Dev-mode short-circuit: contributors running from source must never see an update signal.",
|
|
50
|
+
" // (Baked script cannot read .gdh-state/local-paths.json without @gdh/core; env var covers the contributor case.)",
|
|
51
|
+
" if (process.env.GDH_DEV_REPO && process.env.GDH_DEV_REPO.trim()) return;",
|
|
52
|
+
"",
|
|
53
|
+
" const homeDir = os.homedir();",
|
|
54
|
+
" const cacheDir = path.join(homeDir, '.cache', 'gdh');",
|
|
55
|
+
" const cacheFile = path.join(cacheDir, 'update-check.json');",
|
|
56
|
+
"",
|
|
57
|
+
" try { fs.mkdirSync(cacheDir, { recursive: true }); } catch (e) {}",
|
|
58
|
+
"",
|
|
59
|
+
" const workerPath = path.join(__dirname, 'gdh-check-update-worker.js');",
|
|
60
|
+
" const child = spawn(process.execPath, [workerPath], {",
|
|
61
|
+
" stdio: 'ignore',",
|
|
62
|
+
" windowsHide: true,",
|
|
63
|
+
" detached: true,",
|
|
64
|
+
" env: {",
|
|
65
|
+
" ...process.env,",
|
|
66
|
+
" GDH_CACHE_FILE: cacheFile,",
|
|
67
|
+
` GDH_PINNED_VERSION: ${JSON.stringify(pinnedVersion)},`,
|
|
68
|
+
" },",
|
|
69
|
+
" });",
|
|
70
|
+
"",
|
|
71
|
+
" child.unref();",
|
|
72
|
+
"})();",
|
|
73
|
+
"",
|
|
74
|
+
].join("\n");
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=claude-update-hook-render.js.map
|
|
@@ -0,0 +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,MAAM,WAAW,CAAC;AAEpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,sCAAsC,GACjD,mCAAmC,CAAC;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,wCAAwC,GACnD,0CAA0C,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,2BAA2B,CAAC,aAAqB;IAC/D,OAAO;QACL,qBAAqB;QACrB,wBAAwB,uBAAuB,EAAE;QACjD,gEAAgE;QAChE,qEAAqE;QACrE,uFAAuF;QACvF,EAAE;QACF,2BAA2B;QAC3B,+BAA+B;QAC/B,2BAA2B;QAC3B,6CAA6C;QAC7C,EAAE;QACF,gBAAgB;QAChB,gGAAgG;QAChG,qHAAqH;QACrH,4EAA4E;QAC5E,EAAE;QACF,iCAAiC;QACjC,yDAAyD;QACzD,+DAA+D;QAC/D,EAAE;QACF,qEAAqE;QACrE,EAAE;QACF,0EAA0E;QAC1E,yDAAyD;QACzD,sBAAsB;QACtB,wBAAwB;QACxB,qBAAqB;QACrB,YAAY;QACZ,uBAAuB;QACvB,kCAAkC;QAClC,6BAA6B,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG;QAC7D,QAAQ;QACR,OAAO;QACP,EAAE;QACF,kBAAkB;QAClB,OAAO;QACP,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Render the background worker source that is spawned (detached + unref) by
|
|
3
|
+
* the SessionStart parent hook. The worker performs the HTTPS probe against
|
|
4
|
+
* the npm registry and writes the result to the shared per-user cache.
|
|
5
|
+
*
|
|
6
|
+
* The `pinnedVersion` parameter is accepted for API uniformity with
|
|
7
|
+
* `renderClaudeCheckUpdateHook`; the worker body itself reads the pinned
|
|
8
|
+
* version from `process.env.GDH_PINNED_VERSION` so that future regenerations
|
|
9
|
+
* only need to rewrite the parent hook's env injection.
|
|
10
|
+
*
|
|
11
|
+
* The returned string is written verbatim to
|
|
12
|
+
* `.claude/hooks/gdh-check-update-worker.js` by the adapter install pipeline.
|
|
13
|
+
*
|
|
14
|
+
* Invariants enforced by this renderer (see 11-02-PLAN):
|
|
15
|
+
* - shebang on line 1; a hook-version marker on line 2 for drift detection
|
|
16
|
+
* - dev-mode short-circuit on GDH_DEV_REPO runs at top of IIFE
|
|
17
|
+
* - no-pinned fallback uses the exact literal `if (!pinned) return;`
|
|
18
|
+
* - native fetch + AbortSignal.timeout(10000) — no npm shellout, no external deps
|
|
19
|
+
* - all I/O + parse + network wrapped in try/catch (silent-failure D-06)
|
|
20
|
+
* - no stale_hooks scan (GSD-specific; drift detection is `gdh verify drift`)
|
|
21
|
+
* - result object shape matches UpdateCheckCacheEntry from @gdh/core
|
|
22
|
+
*
|
|
23
|
+
* The baked script is deliberately dependency-free — it imports only Node
|
|
24
|
+
* built-ins and does NOT resolve @gdh/core at runtime. The semver compare
|
|
25
|
+
* (`isNewer`) is inlined verbatim from the GSD worker pattern.
|
|
26
|
+
*/
|
|
27
|
+
export declare function renderClaudeCheckUpdateWorker(_pinnedVersion?: string): string;
|
|
28
|
+
//# sourceMappingURL=claude-update-worker-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-update-worker-render.d.ts","sourceRoot":"","sources":["../src/claude-update-worker-render.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,6BAA6B,CAC3C,cAAc,CAAC,EAAE,MAAM,GACtB,MAAM,CAsER"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { GDH_UPDATE_HOOK_VERSION, GDH_UPDATE_REGISTRY_URL, } from "@gdh/core";
|
|
2
|
+
/**
|
|
3
|
+
* Render the background worker source that is spawned (detached + unref) by
|
|
4
|
+
* the SessionStart parent hook. The worker performs the HTTPS probe against
|
|
5
|
+
* the npm registry and writes the result to the shared per-user cache.
|
|
6
|
+
*
|
|
7
|
+
* The `pinnedVersion` parameter is accepted for API uniformity with
|
|
8
|
+
* `renderClaudeCheckUpdateHook`; the worker body itself reads the pinned
|
|
9
|
+
* version from `process.env.GDH_PINNED_VERSION` so that future regenerations
|
|
10
|
+
* only need to rewrite the parent hook's env injection.
|
|
11
|
+
*
|
|
12
|
+
* The returned string is written verbatim to
|
|
13
|
+
* `.claude/hooks/gdh-check-update-worker.js` by the adapter install pipeline.
|
|
14
|
+
*
|
|
15
|
+
* Invariants enforced by this renderer (see 11-02-PLAN):
|
|
16
|
+
* - shebang on line 1; a hook-version marker on line 2 for drift detection
|
|
17
|
+
* - dev-mode short-circuit on GDH_DEV_REPO runs at top of IIFE
|
|
18
|
+
* - no-pinned fallback uses the exact literal `if (!pinned) return;`
|
|
19
|
+
* - native fetch + AbortSignal.timeout(10000) — no npm shellout, no external deps
|
|
20
|
+
* - all I/O + parse + network wrapped in try/catch (silent-failure D-06)
|
|
21
|
+
* - no stale_hooks scan (GSD-specific; drift detection is `gdh verify drift`)
|
|
22
|
+
* - result object shape matches UpdateCheckCacheEntry from @gdh/core
|
|
23
|
+
*
|
|
24
|
+
* The baked script is deliberately dependency-free — it imports only Node
|
|
25
|
+
* built-ins and does NOT resolve @gdh/core at runtime. The semver compare
|
|
26
|
+
* (`isNewer`) is inlined verbatim from the GSD worker pattern.
|
|
27
|
+
*/
|
|
28
|
+
export function renderClaudeCheckUpdateWorker(_pinnedVersion) {
|
|
29
|
+
// _pinnedVersion is accepted for API uniformity with the hook renderer;
|
|
30
|
+
// the worker body itself reads process.env.GDH_PINNED_VERSION at runtime.
|
|
31
|
+
return [
|
|
32
|
+
"#!/usr/bin/env node",
|
|
33
|
+
`// gdh-hook-version: ${GDH_UPDATE_HOOK_VERSION}`,
|
|
34
|
+
"// Background worker spawned by the GDH SessionStart parent hook.",
|
|
35
|
+
"// Probes https://registry.npmjs.org/@skillcap/gdh/latest and writes the",
|
|
36
|
+
"// result to the per-user cache at ~/.cache/gdh/update-check.json.",
|
|
37
|
+
"// Exits silently on any failure — D-06 silent-failure contract.",
|
|
38
|
+
"",
|
|
39
|
+
"'use strict';",
|
|
40
|
+
"",
|
|
41
|
+
"const fs = require('fs');",
|
|
42
|
+
"",
|
|
43
|
+
"// Compare semver: true if a is strictly newer than b.",
|
|
44
|
+
"// Strips pre-release suffixes (e.g. '3-beta.1' → '3') to avoid NaN from Number().",
|
|
45
|
+
"function isNewer(a, b) {",
|
|
46
|
+
" const pa = (a || '').split('.').map(s => Number(s.replace(/-.*/, '')) || 0);",
|
|
47
|
+
" const pb = (b || '').split('.').map(s => Number(s.replace(/-.*/, '')) || 0);",
|
|
48
|
+
" for (let i = 0; i < 3; i++) {",
|
|
49
|
+
" if (pa[i] > pb[i]) return true;",
|
|
50
|
+
" if (pa[i] < pb[i]) return false;",
|
|
51
|
+
" }",
|
|
52
|
+
" return false;",
|
|
53
|
+
"}",
|
|
54
|
+
"",
|
|
55
|
+
"(async () => {",
|
|
56
|
+
" // Dev-mode short-circuit: contributors running from source must never see an update signal.",
|
|
57
|
+
" // (Baked worker checks ONLY the env var — cannot read local-paths.json without @gdh/core.)",
|
|
58
|
+
" if (process.env.GDH_DEV_REPO && process.env.GDH_DEV_REPO.trim()) return;",
|
|
59
|
+
"",
|
|
60
|
+
" const pinned = process.env.GDH_PINNED_VERSION;",
|
|
61
|
+
" if (!pinned) return;",
|
|
62
|
+
"",
|
|
63
|
+
" const cacheFile = process.env.GDH_CACHE_FILE;",
|
|
64
|
+
" if (!cacheFile) return;",
|
|
65
|
+
"",
|
|
66
|
+
" let res = null;",
|
|
67
|
+
" try {",
|
|
68
|
+
` res = await fetch(${JSON.stringify(GDH_UPDATE_REGISTRY_URL)}, {`,
|
|
69
|
+
" signal: AbortSignal.timeout(10000),",
|
|
70
|
+
" });",
|
|
71
|
+
" } catch (e) {}",
|
|
72
|
+
"",
|
|
73
|
+
" let latest = null;",
|
|
74
|
+
" if (res && res.ok) {",
|
|
75
|
+
" try {",
|
|
76
|
+
" const body = await res.json();",
|
|
77
|
+
" if (typeof body.version === 'string') {",
|
|
78
|
+
" latest = body.version;",
|
|
79
|
+
" }",
|
|
80
|
+
" } catch (e) {}",
|
|
81
|
+
" }",
|
|
82
|
+
"",
|
|
83
|
+
" // Offline / registry 5xx / parse error — write nothing per D-06.",
|
|
84
|
+
" if (latest === null) return;",
|
|
85
|
+
"",
|
|
86
|
+
" const result = {",
|
|
87
|
+
" pinned,",
|
|
88
|
+
" latest,",
|
|
89
|
+
" checkedAt: new Date().toISOString(),",
|
|
90
|
+
" source: 'npm-registry-latest',",
|
|
91
|
+
" updateAvailable: isNewer(latest, pinned),",
|
|
92
|
+
" };",
|
|
93
|
+
"",
|
|
94
|
+
" try { fs.writeFileSync(cacheFile, JSON.stringify(result, null, 2)); } catch (e) {}",
|
|
95
|
+
"})();",
|
|
96
|
+
"",
|
|
97
|
+
].join("\n");
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=claude-update-worker-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-update-worker-render.js","sourceRoot":"","sources":["../src/claude-update-worker-render.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,WAAW,CAAC;AAEnB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,6BAA6B,CAC3C,cAAuB;IAEvB,wEAAwE;IACxE,0EAA0E;IAC1E,OAAO;QACL,qBAAqB;QACrB,wBAAwB,uBAAuB,EAAE;QACjD,mEAAmE;QACnE,0EAA0E;QAC1E,oEAAoE;QACpE,kEAAkE;QAClE,EAAE;QACF,eAAe;QACf,EAAE;QACF,2BAA2B;QAC3B,EAAE;QACF,wDAAwD;QACxD,oFAAoF;QACpF,0BAA0B;QAC1B,gFAAgF;QAChF,gFAAgF;QAChF,iCAAiC;QACjC,qCAAqC;QACrC,sCAAsC;QACtC,KAAK;QACL,iBAAiB;QACjB,GAAG;QACH,EAAE;QACF,gBAAgB;QAChB,gGAAgG;QAChG,+FAA+F;QAC/F,4EAA4E;QAC5E,EAAE;QACF,kDAAkD;QAClD,wBAAwB;QACxB,EAAE;QACF,iDAAiD;QACjD,2BAA2B;QAC3B,EAAE;QACF,mBAAmB;QACnB,SAAS;QACT,yBAAyB,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,KAAK;QACrE,2CAA2C;QAC3C,SAAS;QACT,kBAAkB;QAClB,EAAE;QACF,sBAAsB;QACtB,wBAAwB;QACxB,WAAW;QACX,sCAAsC;QACtC,+CAA+C;QAC/C,gCAAgC;QAChC,SAAS;QACT,oBAAoB;QACpB,KAAK;QACL,EAAE;QACF,qEAAqE;QACrE,gCAAgC;QAChC,EAAE;QACF,oBAAoB;QACpB,aAAa;QACb,aAAa;QACb,0CAA0C;QAC1C,oCAAoC;QACpC,+CAA+C;QAC/C,MAAM;QACN,EAAE;QACF,sFAAsF;QACtF,OAAO;QACP,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -23,6 +23,12 @@ export declare const CURSOR_MIGRATE_SKILL_RELATIVE_PATH = ".cursor/skills/gdh-mi
|
|
|
23
23
|
export declare const CURSOR_CHECK_SKILL_RELATIVE_PATH = ".cursor/skills/gdh-check/SKILL.md";
|
|
24
24
|
export declare const CURSOR_PREPARE_SKILL_RELATIVE_PATH = ".cursor/skills/gdh-prepare/SKILL.md";
|
|
25
25
|
export declare const CURSOR_VERIFY_SKILL_RELATIVE_PATH = ".cursor/skills/gdh-verify/SKILL.md";
|
|
26
|
+
export declare const CLAUDE_UPDATE_COMMAND_RELATIVE_PATH = ".claude/commands/gdh/update.md";
|
|
27
|
+
export declare const CODEX_UPDATE_SKILL_RELATIVE_PATH = ".codex/skills/gdh-update/SKILL.md";
|
|
28
|
+
export declare const CURSOR_UPDATE_SKILL_RELATIVE_PATH = ".cursor/skills/gdh-update/SKILL.md";
|
|
29
|
+
export declare const CLAUDE_SCAN_COMMAND_RELATIVE_PATH = ".claude/commands/gdh/scan.md";
|
|
30
|
+
export declare const CODEX_SCAN_SKILL_RELATIVE_PATH = ".codex/skills/gdh-scan/SKILL.md";
|
|
31
|
+
export declare const CURSOR_SCAN_SKILL_RELATIVE_PATH = ".cursor/skills/gdh-scan/SKILL.md";
|
|
26
32
|
export declare const LOCAL_PATH_HINTS_RELATIVE_PATH = ".gdh-state/local-paths.json";
|
|
27
33
|
export declare const MCP_LAUNCHER_RELATIVE_PATH = ".gdh/bin/gdh-mcp.mjs";
|
|
28
34
|
export declare const GDH_MCP_SERVER_NAME = "gdh";
|
|
@@ -45,22 +51,32 @@ export declare function createGsdSnapshot(targetPath: string, options?: {
|
|
|
45
51
|
readonly performed?: readonly GdhValidationKind[];
|
|
46
52
|
}): Promise<GdhGsdSnapshot>;
|
|
47
53
|
export declare function renderCursorRule(): string;
|
|
48
|
-
export declare function renderClaudeOnboardCommand(): string;
|
|
49
|
-
export declare function renderCodexOnboardSkill(): string;
|
|
50
|
-
export declare function renderCursorOnboardSkill(): string;
|
|
51
|
-
export declare function renderClaudeStatusCommand(): string;
|
|
52
|
-
export declare function renderCodexStatusSkill(): string;
|
|
53
|
-
export declare function renderCursorStatusSkill(): string;
|
|
54
|
-
export declare function
|
|
55
|
-
export declare function
|
|
56
|
-
export declare function
|
|
57
|
-
export declare function
|
|
58
|
-
export declare function
|
|
59
|
-
export declare function
|
|
60
|
-
export declare function
|
|
61
|
-
export declare function
|
|
62
|
-
export declare function
|
|
63
|
-
export declare function
|
|
64
|
-
export declare function
|
|
65
|
-
export declare function
|
|
54
|
+
export declare function renderClaudeOnboardCommand(pinnedVersion: string): string;
|
|
55
|
+
export declare function renderCodexOnboardSkill(pinnedVersion: string): string;
|
|
56
|
+
export declare function renderCursorOnboardSkill(pinnedVersion: string): string;
|
|
57
|
+
export declare function renderClaudeStatusCommand(pinnedVersion: string): string;
|
|
58
|
+
export declare function renderCodexStatusSkill(pinnedVersion: string): string;
|
|
59
|
+
export declare function renderCursorStatusSkill(pinnedVersion: string): string;
|
|
60
|
+
export declare function renderClaudeScanCommand(pinnedVersion: string): string;
|
|
61
|
+
export declare function renderCodexScanSkill(pinnedVersion: string): string;
|
|
62
|
+
export declare function renderCursorScanSkill(pinnedVersion: string): string;
|
|
63
|
+
export declare function renderClaudeMigrateCommand(pinnedVersion: string): string;
|
|
64
|
+
export declare function renderCodexMigrateSkill(pinnedVersion: string): string;
|
|
65
|
+
export declare function renderCursorMigrateSkill(pinnedVersion: string): string;
|
|
66
|
+
export declare function renderClaudeUpdateCommand(_pinnedVersion: string): string;
|
|
67
|
+
export declare function renderCodexUpdateSkill(_pinnedVersion: string): string;
|
|
68
|
+
export declare function renderCursorUpdateSkill(_pinnedVersion: string): string;
|
|
69
|
+
export declare function renderClaudeCheckCommand(pinnedVersion: string): string;
|
|
70
|
+
export declare function renderCodexCheckSkill(pinnedVersion: string): string;
|
|
71
|
+
export declare function renderCursorCheckSkill(pinnedVersion: string): string;
|
|
72
|
+
export declare function renderClaudePrepareCommand(pinnedVersion: string): string;
|
|
73
|
+
export declare function renderCodexPrepareSkill(pinnedVersion: string): string;
|
|
74
|
+
export declare function renderCursorPrepareSkill(pinnedVersion: string): string;
|
|
75
|
+
export declare function renderClaudeVerifyCommand(pinnedVersion: string): string;
|
|
76
|
+
export declare function renderCodexVerifySkill(pinnedVersion: string): string;
|
|
77
|
+
export declare function renderCursorVerifySkill(pinnedVersion: string): string;
|
|
78
|
+
export declare function renderManagedMcpLauncher(pinnedVersion: string): string;
|
|
79
|
+
export { bumpAndRebakePin, type BumpAndRebakePinResult, } from "./self-update-mechanics.js";
|
|
80
|
+
export { CLAUDE_CHECK_UPDATE_HOOK_RELATIVE_PATH } from "./claude-update-hook-render.js";
|
|
81
|
+
export { CLAUDE_STATUSLINE_RELATIVE_PATH } from "./claude-statusline-render.js";
|
|
66
82
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA8BA,OAAO,EAgBL,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,cAAc,EAGnB,KAAK,sCAAsC,EAK3C,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,WAAW,CAAC;AAWnB,eAAO,MAAM,eAAe,wCAc1B,CAAC;AAEH,eAAO,MAAM,gBAAgB,wCAAgF,CAAC;AAC9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