@bilalimamoglu/sift 0.3.2 → 0.4.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/README.md +191 -184
- package/dist/cli.js +2174 -339
- package/dist/index.d.ts +19 -1
- package/dist/index.js +2085 -310
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ type OutputFormat = "brief" | "bullets" | "json" | "verdict";
|
|
|
10
10
|
type DetailLevel = "standard" | "focused" | "verbose";
|
|
11
11
|
type Goal = "summarize" | "diagnose";
|
|
12
12
|
type RawSliceStrategy = "none" | "bucket_evidence" | "traceback_window" | "head_tail";
|
|
13
|
+
type TestStatusRemainingMode = "none" | "subset_rerun" | "full_rerun_diff";
|
|
13
14
|
type ResponseMode = "text" | "json";
|
|
14
15
|
type JsonResponseFormatMode = "auto" | "on" | "off";
|
|
15
16
|
type PromptPolicyName = "test-status" | "audit-critical" | "diff-summary" | "build-failure" | "log-errors" | "infra-risk" | "typecheck-summary" | "lint-failures";
|
|
@@ -94,6 +95,7 @@ interface RunRequest {
|
|
|
94
95
|
resolvedTests?: string[];
|
|
95
96
|
remainingTests?: string[];
|
|
96
97
|
remainingSubsetAvailable?: boolean;
|
|
98
|
+
remainingMode?: TestStatusRemainingMode;
|
|
97
99
|
};
|
|
98
100
|
fallbackJson?: unknown;
|
|
99
101
|
}
|
|
@@ -132,9 +134,12 @@ interface ExecRequest extends Omit<RunRequest, "stdin"> {
|
|
|
132
134
|
cwd?: string;
|
|
133
135
|
diff?: boolean;
|
|
134
136
|
failOn?: boolean;
|
|
137
|
+
quiet?: boolean;
|
|
135
138
|
showRaw?: boolean;
|
|
136
139
|
shellCommand?: string;
|
|
137
140
|
skipCacheWrite?: boolean;
|
|
141
|
+
readCachedBaseline?: boolean;
|
|
142
|
+
writeCachedBaseline?: boolean;
|
|
138
143
|
watch?: boolean;
|
|
139
144
|
}
|
|
140
145
|
declare function buildCommandPreview(request: ExecRequest): string;
|
|
@@ -145,7 +150,20 @@ declare function getExecSuccessShortcut(args: {
|
|
|
145
150
|
}): string | null;
|
|
146
151
|
declare function runExec(request: ExecRequest): Promise<number>;
|
|
147
152
|
|
|
153
|
+
interface RunStats {
|
|
154
|
+
layer: "heuristic" | "provider" | "fallback";
|
|
155
|
+
providerCalled: boolean;
|
|
156
|
+
totalTokens: number | null;
|
|
157
|
+
durationMs: number;
|
|
158
|
+
presetName?: string;
|
|
159
|
+
}
|
|
160
|
+
interface RunResult {
|
|
161
|
+
output: string;
|
|
162
|
+
stats: RunStats | null;
|
|
163
|
+
}
|
|
164
|
+
|
|
148
165
|
declare function runSift(request: RunRequest): Promise<string>;
|
|
166
|
+
declare function runSiftWithStats(request: RunRequest): Promise<RunResult>;
|
|
149
167
|
|
|
150
168
|
interface LLMProvider {
|
|
151
169
|
readonly name: string;
|
|
@@ -160,4 +178,4 @@ interface ResolveOptions {
|
|
|
160
178
|
}
|
|
161
179
|
declare function resolveConfig(options?: ResolveOptions): SiftConfig;
|
|
162
180
|
|
|
163
|
-
export { BoundedCapture, type DetailLevel, type ExecRequest, type GenerateInput, type GenerateResult, type Goal, type InputConfig, type JsonResponseFormatMode, type LLMProvider, type NativeProviderName, type OutputFormat, type PartialSiftConfig, type PreparedInput, type PresetDefinition, type PromptPolicyName, type ProviderConfig, type ProviderName, type ProviderProfile, type ProviderProfiles, type RawSliceStrategy, type ResolveOptions, type ResponseMode, type RunRequest, type RuntimeConfig, type SiftConfig, type UsageInfo, buildCommandPreview, getExecSuccessShortcut, looksInteractivePrompt, mergeDefined, normalizeChildExitCode, resolveConfig, runExec, runSift };
|
|
181
|
+
export { BoundedCapture, type DetailLevel, type ExecRequest, type GenerateInput, type GenerateResult, type Goal, type InputConfig, type JsonResponseFormatMode, type LLMProvider, type NativeProviderName, type OutputFormat, type PartialSiftConfig, type PreparedInput, type PresetDefinition, type PromptPolicyName, type ProviderConfig, type ProviderName, type ProviderProfile, type ProviderProfiles, type RawSliceStrategy, type ResolveOptions, type ResponseMode, type RunRequest, type RuntimeConfig, type SiftConfig, type TestStatusRemainingMode, type UsageInfo, buildCommandPreview, getExecSuccessShortcut, looksInteractivePrompt, mergeDefined, normalizeChildExitCode, resolveConfig, runExec, runSift, runSiftWithStats };
|