getshrike 0.0.0-stage → 1.0.0-rc.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shrike contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,28 @@
1
- # Temporary Holding Version
1
+ # shrike
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Verified dead-code cleanup: a whole-graph PR orphan delta, verified deletion
4
+ batches, and a portable receipt.
5
+
6
+ ```bash
7
+ npm install -D shrike
8
+ npx shrike scan
9
+ npx shrike delta --base origin/main --json
10
+ ```
11
+
12
+ The native engine is a Rust binary. The launcher resolves it from
13
+ `SHRIKE_ENGINE`, a repository `target/{release,debug}` build, `PATH`, or a
14
+ platform package. A missing engine fails closed with exit code 4.
15
+
16
+ Read-only first:
17
+
18
+ ```bash
19
+ shrike delta --base origin/main
20
+ shrike plan --base origin/main
21
+ ```
22
+
23
+ `shrike prune` verifies each batch in a worktree, reverts failed edits, writes a
24
+ receipt, and opens a draft PR when `gh` is available. It never commits to the
25
+ base branch.
26
+
27
+ See the repository README and `docs/07-agent-and-distribution.md` for hooks, the
28
+ Action, MCP, and the trust boundary.
package/bin/shrike.mjs ADDED
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * npm launcher.
4
+ *
5
+ * The published package ships compiled JavaScript in `dist/`. This tiny
6
+ * launcher keeps the command name stable and forwards stdio, signals, and the
7
+ * exit code without re-implementing the CLI.
8
+ */
9
+ import { spawn } from "node:child_process";
10
+ import { fileURLToPath } from "node:url";
11
+ import { dirname, join } from "node:path";
12
+
13
+ const here = dirname(fileURLToPath(import.meta.url));
14
+ const entry = join(here, "..", "dist", "main.js");
15
+ const child = spawn(process.execPath, [entry, ...process.argv.slice(2)], {
16
+ stdio: "inherit",
17
+ env: process.env,
18
+ });
19
+
20
+ child.on("error", (error) => {
21
+ process.stderr.write(`shrike: could not start the CLI: ${error.message}\n`);
22
+ process.exitCode = 4;
23
+ });
24
+ child.on("exit", (code, signal) => {
25
+ if (signal) {
26
+ process.kill(process.pid, signal);
27
+ return;
28
+ }
29
+ process.exitCode = code ?? 4;
30
+ });
@@ -0,0 +1,6 @@
1
+ import type { Snapshot } from "./cli-types.ts";
2
+ export declare function applySymbols(root: string, snapshot: Snapshot, symbols: string[]): number;
3
+ export declare function contentLineCount(content: string): number;
4
+ export declare function lineAt(content: string, offset: number): number;
5
+ export declare function writePatch(root: string, workingRoot: string, batchId: string): string;
6
+ export declare function execGitDiff(root: string): string;
package/dist/args.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ export interface ParsedArgs {
2
+ positionals: string[];
3
+ values: Map<string, string | boolean>;
4
+ }
5
+ /**
6
+ * Small, dependency-free argument parser.
7
+ *
8
+ * Unknown flags that are not in `booleanFlags` consume the next token as a
9
+ * value. `--flag=value` is always supported. `--` ends flag parsing.
10
+ */
11
+ export declare function parseArgs(argv: string[], booleanFlags?: Iterable<string>): ParsedArgs;
12
+ export declare function hasFlag(args: ParsedArgs, name: string): boolean;
13
+ export declare function stringFlag(args: ParsedArgs, name: string): string | undefined;
14
+ export declare function booleanFlag(args: ParsedArgs, name: string): boolean;
15
+ export declare function requireStringFlag(args: ParsedArgs, name: string): string;
16
+ export declare function rejectUnknownFlags(args: ParsedArgs, allowed: Iterable<string>): void;
@@ -0,0 +1,8 @@
1
+ import { type Baseline, type CheckSpec } from "@shrike/verifier";
2
+ import type { ShrikeConfig } from "./config.ts";
3
+ export declare function baselineConfigHash(checks: CheckSpec[]): string;
4
+ /**
5
+ * Reuse a baseline only when it belongs to this head commit and this exact
6
+ * check set. Anything else is discarded, never compared against.
7
+ */
8
+ export declare function loadOrCaptureBaseline(root: string, workingRoot: string, head: string, checks: CheckSpec[], config: ShrikeConfig): Promise<Baseline>;
@@ -0,0 +1,9 @@
1
+ import type { BuildEvidence } from "./types.ts";
2
+ interface EvidenceBuilder {
3
+ consume: (record: Record<string, unknown>, line?: number) => void;
4
+ consumePlain: (record: Record<string, unknown>) => void;
5
+ finish: (hash?: string) => BuildEvidence;
6
+ }
7
+ export declare function createBuilder(root: string, sourcePath: string): EvidenceBuilder;
8
+ export declare function dedupe(values: string[]): string[];
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type BuildEvidenceOptions, type LoadedBuildEvidence } from "./types.ts";
2
+ /** Load explicit evidence or discover a default snapshot. */
3
+ export declare function loadBuildEvidence(root: string, explicitPath?: string | null, options?: BuildEvidenceOptions): LoadedBuildEvidence;
@@ -0,0 +1,11 @@
1
+ import { type BuildEvidence } from "./types.ts";
2
+ /**
3
+ * Normalize one JSON object or a JSONL record stream from an in-memory string.
4
+ * Unknown record families are counted; malformed JSON is not.
5
+ */
6
+ export declare function normalizeBuildEvidence(root: string, text: string, sourcePath: string): BuildEvidence;
7
+ /**
8
+ * Stream a JSONL export in bounded chunks. The file is never loaded whole, so a
9
+ * 200 MB export costs one chunk plus the current line.
10
+ */
11
+ export declare function streamBuildEvidence(root: string, path: string): BuildEvidence;
@@ -0,0 +1,32 @@
1
+ export declare function sha256(value: string | Buffer): string;
2
+ export declare function isRecord(value: unknown): value is Record<string, unknown>;
3
+ export declare function stringValue(value: unknown): string;
4
+ export declare function stringArray(value: unknown): string[];
5
+ export declare function numberValue(value: unknown): number | null;
6
+ export declare function normalizePath(root: string, input: string): string;
7
+ type ModuleKind = "source" | "dependency" | "external" | "asset" | "generated";
8
+ interface ModulePathInfo {
9
+ /** Repository-relative path with Turbopack annotations removed. */
10
+ path: string;
11
+ kind: ModuleKind;
12
+ }
13
+ export declare const SOURCE_EXTENSIONS: Set<string>;
14
+ /**
15
+ * Normalize one Turbopack module path and classify it.
16
+ *
17
+ * `next analyze export` addresses modules as `[project]/app/page.tsx`,
18
+ * `[project]/node_modules/...`, `[externals]/crypto`, `[client-fs]/...`, and
19
+ * `[output]/...`, and appends `[layer] (kind)` annotations to module
20
+ * identifiers. Only project source modules can join the static graph; counting
21
+ * dependencies and emitted assets as unmatched would make coverage meaningless
22
+ * on every real application.
23
+ */
24
+ export declare function modulePathInfo(root: string, input: string): ModulePathInfo;
25
+ export declare function layerFromIdent(ident: string): string;
26
+ export declare function runtimeFromOutput(filename: string): string;
27
+ /** Normalize a file or `path#Symbol` evidence key without losing the symbol. */
28
+ export declare function normalizeEvidenceItem(root: string, input: string): string;
29
+ export declare function normalizeLayer(value: unknown): string;
30
+ export declare function normalizeRuntime(value: unknown): string;
31
+ export declare function addUnique(list: string[], value: string): void;
32
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare function packageNextVersion(root: string): string;
2
+ export declare function lowerVersion(left: string, right: string): string;
3
+ /** Find the newest default evidence file without running a build. */
4
+ export declare function discoverBuildEvidence(root: string): string | null;
5
+ export declare function recordFile(record: Record<string, unknown>): string | null;
6
+ export declare function recordModuleId(record: Record<string, unknown>): string | null;
7
+ export declare function recordSymbol(record: Record<string, unknown>): string | null;
8
+ export declare function recordRoute(record: Record<string, unknown>): string | null;
9
+ export declare function recordSize(record: Record<string, unknown>): number | null;
10
+ export declare function recordPaths(record: Record<string, unknown>, keys: string[]): string[];
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Build-graph evidence loading.
3
+ *
4
+ * Next.js 16.4 writes `next analyze export` as JSON Lines. The JSONL path is
5
+ * streamed in bounded chunks; older or hand-made evidence may be one JSON
6
+ * object and is read whole. Both are normalized into the small shape understood
7
+ * by the Rust `join-build` command. A malformed record is an explicit error,
8
+ * never a silent skip.
9
+ */
10
+ export type BuildStatus = "full" | "partial" | "low-coverage" | "stale" | "malformed" | "unsupported" | "absent" | "build-failed";
11
+ export interface BuildRouteEvidence {
12
+ route: string;
13
+ files: string[];
14
+ symbols: string[];
15
+ runtime?: string;
16
+ }
17
+ export interface BuildClientReference {
18
+ from: string;
19
+ to: string;
20
+ kind: string;
21
+ }
22
+ export interface BuildEvidence {
23
+ source: string;
24
+ version: string;
25
+ files: string[];
26
+ symbols: string[];
27
+ routes: BuildRouteEvidence[];
28
+ sizes: Record<string, number>;
29
+ snapshotHash: string;
30
+ layers: Record<string, string>;
31
+ moduleIds: Record<string, string>;
32
+ clientReferences: BuildClientReference[];
33
+ fileHashes: Record<string, string>;
34
+ unknownRecords: number;
35
+ status?: string;
36
+ clientBoundaryLeaks?: boolean;
37
+ }
38
+ export interface BuildEvidenceOptions {
39
+ /** Run the project's build command before looking for evidence. */
40
+ runBuild?: boolean;
41
+ /** Override the build command. Default: `npm run build`. */
42
+ buildCommand?: string;
43
+ /** Build timeout in milliseconds. Default: 10 minutes. */
44
+ timeoutMs?: number;
45
+ }
46
+ export interface LoadedBuildEvidence {
47
+ evidence: BuildEvidence;
48
+ path: string | null;
49
+ /** Set when the file exists but could not be normalized. */
50
+ error: string | null;
51
+ /** Set when a requested build failed. Static-only, never a crash. */
52
+ failure: string | null;
53
+ }
54
+ export declare class BuildEvidenceError extends Error {
55
+ readonly status: BuildStatus;
56
+ constructor(status: BuildStatus, message: string);
57
+ }
58
+ export declare const EMPTY_BUILD_HASH: string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Build-graph evidence loading.
3
+ *
4
+ * Next.js 16.4 writes `next analyze export` as JSON Lines. The JSONL path is
5
+ * streamed in bounded chunks; older or hand-made evidence may be one JSON
6
+ * object and is read whole. Both are normalized into the small shape understood
7
+ * by the Rust `join-build` command. A malformed record is an explicit error,
8
+ * never a silent skip.
9
+ *
10
+ * Implementation lives in `build/`: types, path normalization, record helpers,
11
+ * the evidence builder, stream/normalize readers, and the loader.
12
+ */
13
+ export type { BuildStatus, BuildRouteEvidence, BuildClientReference, BuildEvidence, BuildEvidenceOptions, LoadedBuildEvidence, } from "./build/types.ts";
14
+ export { BuildEvidenceError, EMPTY_BUILD_HASH } from "./build/types.ts";
15
+ export { packageNextVersion, discoverBuildEvidence } from "./build/records.ts";
16
+ export { normalizeBuildEvidence, streamBuildEvidence } from "./build/normalize.ts";
17
+ export { loadBuildEvidence } from "./build/load.ts";
@@ -0,0 +1,168 @@
1
+ import type { BuildEvidence } from "./build.ts";
2
+ export interface Snapshot {
3
+ files: {
4
+ path: string;
5
+ contentHash: string;
6
+ lines: number;
7
+ }[];
8
+ symbols: {
9
+ key: string;
10
+ file: string;
11
+ kind: string;
12
+ span: {
13
+ start: number;
14
+ end: number;
15
+ line: number;
16
+ endLine?: number;
17
+ };
18
+ lines: number;
19
+ publicApi: boolean;
20
+ entry?: boolean;
21
+ }[];
22
+ modules?: {
23
+ path: string;
24
+ file?: string;
25
+ specifiers: string[];
26
+ resolved?: string[];
27
+ unresolved?: string[];
28
+ external?: string[];
29
+ typeRefs?: string[];
30
+ }[];
31
+ entries?: {
32
+ symbol: string;
33
+ framework: string;
34
+ kind: string;
35
+ route?: string | null;
36
+ }[];
37
+ edges?: {
38
+ source: string;
39
+ target: string;
40
+ kind: string;
41
+ certainty?: string;
42
+ }[];
43
+ proofs?: {
44
+ symbol: string;
45
+ reason: string;
46
+ incoming: string[];
47
+ outgoing: string[];
48
+ }[];
49
+ diagnostics?: {
50
+ code: string;
51
+ severity: string;
52
+ message: string;
53
+ file?: string;
54
+ }[];
55
+ candidates: string[];
56
+ unusedFiles?: string[];
57
+ live?: string[];
58
+ internalOnly?: string[];
59
+ graphHash: string;
60
+ [key: string]: unknown;
61
+ }
62
+ export interface ScanCandidate {
63
+ symbol: string;
64
+ file: string;
65
+ kind: string;
66
+ lines: number;
67
+ reason: string;
68
+ incoming?: number;
69
+ outgoing?: number;
70
+ }
71
+ export interface ScanResult {
72
+ snapshot: Snapshot;
73
+ candidates: ScanCandidate[];
74
+ diagnostics?: Snapshot["diagnostics"];
75
+ [key: string]: unknown;
76
+ }
77
+ export interface DeltaReport {
78
+ base: {
79
+ ref: string | null;
80
+ commit: string;
81
+ };
82
+ head: {
83
+ commit: string;
84
+ dirty: boolean;
85
+ };
86
+ newlyDead: {
87
+ symbol: string;
88
+ file: string;
89
+ estimatedLines: number;
90
+ }[];
91
+ newlyDeadFiles: string[];
92
+ cascade: {
93
+ symbols: number;
94
+ files: number;
95
+ lines: number;
96
+ };
97
+ batches: {
98
+ id: string;
99
+ symbols: number;
100
+ files: number;
101
+ lines: number;
102
+ }[];
103
+ incomparable: unknown;
104
+ [key: string]: unknown;
105
+ }
106
+ export interface Plan {
107
+ id: string;
108
+ deltaHash: string;
109
+ base: {
110
+ ref: string | null;
111
+ commit: string;
112
+ };
113
+ head: {
114
+ commit: string;
115
+ dirty: boolean;
116
+ };
117
+ totals: {
118
+ symbols: number;
119
+ files: number;
120
+ lines: number;
121
+ };
122
+ batches: {
123
+ id: string;
124
+ symbols: string[];
125
+ files: string[];
126
+ lines: number;
127
+ patch: string;
128
+ }[];
129
+ blocked: {
130
+ symbol: string;
131
+ reason: string;
132
+ }[];
133
+ policy?: {
134
+ entryPolicy: string;
135
+ maxSymbols: number;
136
+ maxFiles: number;
137
+ allowOversized: boolean;
138
+ };
139
+ [key: string]: unknown;
140
+ }
141
+ export interface BuildJoinResult {
142
+ status: string;
143
+ joined: number;
144
+ total: number;
145
+ coverage: number;
146
+ unmatched: string[];
147
+ routes: {
148
+ route: string;
149
+ files: number;
150
+ symbols: number;
151
+ bytes: number;
152
+ }[];
153
+ bytes: {
154
+ matched: number;
155
+ shared: number;
156
+ totalRoute: number;
157
+ };
158
+ diagnostics: {
159
+ code: string;
160
+ severity: string;
161
+ message: string;
162
+ }[];
163
+ }
164
+ export interface BuildEvidenceInfo {
165
+ evidence: BuildEvidence;
166
+ join: BuildJoinResult;
167
+ path: string | null;
168
+ }
@@ -0,0 +1,10 @@
1
+ import { type ParsedArgs } from "../args.ts";
2
+ export declare function versionCommand(args: ParsedArgs): number;
3
+ export declare function initCommand(root: string, args: ParsedArgs): number;
4
+ export declare function deltaCommand(root: string, args: ParsedArgs): Promise<number>;
5
+ export declare function planCommand(root: string, args: ParsedArgs): Promise<number>;
6
+ export declare function receiptCommand(root: string, args: ParsedArgs): number;
7
+ export declare function recoverCommand(root: string, args: ParsedArgs): number;
8
+ export declare function proofCommand(root: string, args: ParsedArgs): Promise<number>;
9
+ export declare function evidenceCommand(root: string, args: ParsedArgs): Promise<number>;
10
+ export declare function cacheCommand(root: string, args: ParsedArgs): Promise<number>;
@@ -0,0 +1,23 @@
1
+ import { type ParsedArgs } from "../args.ts";
2
+ import { type ShrikeConfig } from "../config.ts";
3
+ import { type Baseline, type CheckSpec, type ComparedCheck } from "@shrike/verifier";
4
+ export declare const HOOK_TOTAL_BUDGET_MS = 60000;
5
+ export declare const HOOK_CHECKS_BUDGET_MS = 40000;
6
+ export declare function environmentMs(name: string, fallback: number): number;
7
+ /**
8
+ * Read a baseline for advisory comparison. The hook never captures one: the
9
+ * prune flow owns baseline capture, and the hook must stay inside its budget.
10
+ *
11
+ * A stored baseline may cover the standard or full tier. Reuse the entries that
12
+ * match the hook's fast check set by name and command, so a baseline captured
13
+ * by `prune` can still explain a pre-existing failure to the hook.
14
+ */
15
+ export declare function hookBaseline(root: string, config: ShrikeConfig, head: string, checks: CheckSpec[]): Baseline | null;
16
+ export declare function hookCheckSummary(results: ComparedCheck[], baseline: Baseline | null): string;
17
+ /** Run fast checks sequentially against one deadline. */
18
+ export declare function runHookChecks(root: string, specs: CheckSpec[], deadline: number, baseline: Baseline | null): Promise<{
19
+ status: string;
20
+ results: ComparedCheck[];
21
+ }>;
22
+ export declare function hookCommand(root: string, args: ParsedArgs): Promise<number>;
23
+ export declare function hookRunCommand(root: string, args: ParsedArgs): Promise<number>;
@@ -0,0 +1,8 @@
1
+ import type { ParsedArgs } from "../args.ts";
2
+ export declare const MCP_MAX_OUTPUT: number;
3
+ export declare function validateMcpArgument(name: string, value: string): void;
4
+ export declare function mcpCommand(root: string, args: ParsedArgs): Promise<number>;
5
+ export declare function runCli(root: string, argv: string[]): Promise<{
6
+ code: number;
7
+ stdout: string;
8
+ }>;
@@ -0,0 +1,5 @@
1
+ import { type ParsedArgs } from "../args.ts";
2
+ import { type ShrikeConfig } from "../config.ts";
3
+ import type { Plan } from "../cli-types.ts";
4
+ export declare function pruneCommand(root: string, args: ParsedArgs): Promise<number>;
5
+ export declare function openPullRequest(root: string, branch: string, plan: Plan, receiptPaths: string[], config: ShrikeConfig): void;
@@ -0,0 +1,3 @@
1
+ import { type ParsedArgs } from "../args.ts";
2
+ export declare function scanCommand(root: string, args: ParsedArgs): Promise<number>;
3
+ export declare function depsCommand(root: string, args: ParsedArgs): Promise<number>;
@@ -0,0 +1,2 @@
1
+ import { type ParsedArgs } from "../args.ts";
2
+ export declare function verifyCommand(root: string, args: ParsedArgs): Promise<number>;
@@ -0,0 +1,80 @@
1
+ export interface CheckConfig {
2
+ name: string;
3
+ command: string;
4
+ timeoutMs?: number;
5
+ reruns?: number;
6
+ required?: boolean;
7
+ tier?: VerificationTier;
8
+ cwd?: string;
9
+ }
10
+ export type VerificationTier = "fast" | "standard" | "full";
11
+ export type VerificationMode = "worktree" | "in-place";
12
+ export type ClientBoundaryPolicy = "graph" | "protect";
13
+ export type ServerActionPolicy = "graph" | "protect";
14
+ export interface VerificationConfig {
15
+ mode: VerificationMode;
16
+ allowDirty: boolean;
17
+ tier: VerificationTier;
18
+ baselinePath: string;
19
+ }
20
+ export interface BuildConfig {
21
+ evidence: boolean;
22
+ snapshot: string;
23
+ requireEvidence: boolean;
24
+ }
25
+ export interface PrConfig {
26
+ draft: boolean;
27
+ labels: string[];
28
+ branchPrefix: string;
29
+ commentReceipt: boolean;
30
+ base: string | null;
31
+ title: string;
32
+ }
33
+ export interface ShrikeConfig {
34
+ schemaVersion: "1.0";
35
+ include: string[];
36
+ ignore: string[];
37
+ tsconfig: string | null;
38
+ cacheDir: string;
39
+ entryPolicy: "local" | "production";
40
+ testEntries: boolean;
41
+ includeGenerated: boolean;
42
+ /**
43
+ * `graph` (default) treats a `"use client"` directive as a boundary marker
44
+ * and lets normal reachability decide liveness. `protect` also seeds every
45
+ * export in client-boundary files as an entry (the pre-1.1 fail-closed
46
+ * behavior).
47
+ */
48
+ clientBoundaryPolicy: ClientBoundaryPolicy;
49
+ /**
50
+ * `graph` (default) treats a `"use server"` export as an ordinary export and
51
+ * reports actions with no project reference. `protect` seeds every export in
52
+ * a server-action module as an entry, preserving the pre-1.2 fail-closed
53
+ * behavior for actions that remain POST-able if their id leaks.
54
+ */
55
+ serverActionPolicy: ServerActionPolicy;
56
+ /** Dependency names that must never be reported as unused. */
57
+ ignoreDependencies: string[];
58
+ publicApi: string[];
59
+ generated: string[];
60
+ batchPolicy: {
61
+ maxSymbols: number;
62
+ maxFiles: number;
63
+ maxLiveGraphPercent: number;
64
+ allowOversized: boolean;
65
+ };
66
+ entryAdapters: string[];
67
+ checks: CheckConfig[];
68
+ pr: PrConfig;
69
+ verification: VerificationConfig;
70
+ build: BuildConfig;
71
+ }
72
+ export declare const DEFAULT_CONFIG: ShrikeConfig;
73
+ export declare function findConfigPath(root: string): string | null;
74
+ export declare function mergeConfig(input?: Partial<ShrikeConfig>): ShrikeConfig;
75
+ export declare function loadConfig(root: string): Promise<ShrikeConfig>;
76
+ /** The payload shape accepted by the Rust engine's analyze/scan commands. */
77
+ export declare function engineConfig(config: ShrikeConfig): Record<string, unknown>;
78
+ /** Resolve the configured cache directory to an absolute host path. */
79
+ export declare function cacheDirectory(root: string, config: ShrikeConfig): string;
80
+ export declare function repoRoot(cwd?: string): string;