import { fileURLToPath } from 'node:url';
import { dirname, join } from 'node:path';
// This module ships inside the package at <pkgRoot>/dist/claude/paths.js. Resolving graft's
// own CLI and sibling scripts relative to THIS file — not the project dir — is what makes the
// hooks work when graft is installed as a dependency in someone else's repo (where
// <projectDir>/dist/ does not exist). In graft's own repo it resolves to ./dist all the same.
const CLAUDE_DIR = dirname(fileURLToPath(import.meta.url));
/** Absolute path to the graft CLI (`<pkgRoot>/dist/cli.js`), resolved from this module. */
export function graftCliPath() {
    return join(CLAUDE_DIR, '..', 'cli.js');
}
/** Absolute path to this package's `dist/claude` dir. Baked into the generated shims at
 * init time as their primary resolution candidate, so the statusline/hooks find graft
 * without runtime guesswork — correct regardless of how Node was installed. */
export function claudeDistDir() {
    return CLAUDE_DIR;
}
/** Absolute path to a sibling script in the claude dir (e.g. `sync-run.js`). */
export function claudeScriptPath(name) {
    return join(CLAUDE_DIR, name);
}
//# sourceMappingURL=paths.js.map