/** * @file `resolveSkillSpector()` — SkillSpector resolution entry point. Tries * each source in order: * * 1. VFS — the smol binary's embedded skillspector, when packed * 2. PATH — `which skillspector` (pipx-installed binaries land here too; the * source field distinguishes `'pipx'` vs `'path'`) * 3. UV-project — `uv sync --locked` against a uv project (the most locked-down * tier; every transitive version pinned in uv.lock). Only runs when * `uvProjectDir` + `uvBin` are supplied. * 4. DLX-venv — `~/.socket/_dlx/skillspector//` with the pinned SHA (the * pip-from-git-SHA fallback when no uv project is available). Returns * `undefined` when all enabled sources miss. Memoized per * sha+cacheDir+uvProjectDir+localOnly tuple. */ import type { ResolvedSkillSpector } from './types.js'; export interface ResolveSkillSpectorOptions { /** * Tier-3 install spec — the pinned upstream SHA. Required when `localOnly` is * unset (without a SHA, the DLX tier can't run). */ readonly sha?: string | undefined; /** * DLX cache override. Defaults to `~/.socket/_dlx/skillspector/`. */ readonly cacheDir?: string | undefined; /** * UV-project tier: absolute path to a uv project dir (a `pyproject.toml` + * `uv.lock` pinning the SHA + its closure). When set together with `uvBin`, * the locked-uv tier runs ahead of the DLX-venv tier. */ readonly uvProjectDir?: string | undefined; /** * UV-project tier: absolute path to the `uv` executable * (typically `resolveUv().path`). Required to run the locked-uv tier. */ readonly uvBin?: string | undefined; /** * When true, only the VFS + PATH tiers run. Use for check-mode invocations * that want to fail-fast if the tool isn't already installed. */ readonly localOnly?: boolean | undefined; } export declare function cacheKey(options: ResolveSkillSpectorOptions): string; export declare function doResolveSkillSpector(options: ResolveSkillSpectorOptions): Promise; /** * Memoizing wrapper around {@link doResolveSkillSpector}. */ export declare function resolveSkillSpector(opts?: ResolveSkillSpectorOptions): Promise;