@bilalimamoglu/sift 0.3.3 → 0.4.1
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 +84 -39
- package/dist/cli.js +725 -183
- package/dist/index.d.ts +6 -1
- package/dist/index.js +657 -158
- package/package.json +3 -1
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
|
}
|
|
@@ -136,6 +138,8 @@ interface ExecRequest extends Omit<RunRequest, "stdin"> {
|
|
|
136
138
|
showRaw?: boolean;
|
|
137
139
|
shellCommand?: string;
|
|
138
140
|
skipCacheWrite?: boolean;
|
|
141
|
+
readCachedBaseline?: boolean;
|
|
142
|
+
writeCachedBaseline?: boolean;
|
|
139
143
|
watch?: boolean;
|
|
140
144
|
}
|
|
141
145
|
declare function buildCommandPreview(request: ExecRequest): string;
|
|
@@ -158,6 +162,7 @@ interface RunResult {
|
|
|
158
162
|
stats: RunStats | null;
|
|
159
163
|
}
|
|
160
164
|
|
|
165
|
+
declare function startPendingNotice(message: string, enabled: boolean): () => void;
|
|
161
166
|
declare function runSift(request: RunRequest): Promise<string>;
|
|
162
167
|
declare function runSiftWithStats(request: RunRequest): Promise<RunResult>;
|
|
163
168
|
|
|
@@ -174,4 +179,4 @@ interface ResolveOptions {
|
|
|
174
179
|
}
|
|
175
180
|
declare function resolveConfig(options?: ResolveOptions): SiftConfig;
|
|
176
181
|
|
|
177
|
-
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, runSiftWithStats };
|
|
182
|
+
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, startPendingNotice };
|