@bilalimamoglu/sift 0.2.3 → 0.3.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/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  type ProviderName = "openai" | "openai-compatible";
2
2
  type OutputFormat = "brief" | "bullets" | "json" | "verdict";
3
3
  type DetailLevel = "standard" | "focused" | "verbose";
4
+ type Goal = "summarize" | "diagnose";
5
+ type RawSliceStrategy = "none" | "bucket_evidence" | "traceback_window" | "head_tail";
4
6
  type ResponseMode = "text" | "json";
5
7
  type JsonResponseFormatMode = "auto" | "on" | "off";
6
8
  type PromptPolicyName = "test-status" | "audit-critical" | "diff-summary" | "build-failure" | "log-errors" | "infra-risk" | "typecheck-summary" | "lint-failures";
@@ -70,12 +72,20 @@ interface RunRequest {
70
72
  format: OutputFormat;
71
73
  stdin: string;
72
74
  config: SiftConfig;
75
+ goal?: Goal;
73
76
  dryRun?: boolean;
74
77
  showRaw?: boolean;
78
+ includeTestIds?: boolean;
75
79
  detail?: DetailLevel;
76
80
  presetName?: string;
77
81
  policyName?: PromptPolicyName;
78
82
  outputContract?: string;
83
+ analysisContext?: string;
84
+ testStatusContext?: {
85
+ resolvedTests?: string[];
86
+ remainingTests?: string[];
87
+ remainingSubsetAvailable?: boolean;
88
+ };
79
89
  fallbackJson?: unknown;
80
90
  }
81
91
  interface PreparedInput {
@@ -110,9 +120,13 @@ declare function looksInteractivePrompt(windowText: string): boolean;
110
120
  declare function normalizeChildExitCode(status: number | null, signal: NodeJS.Signals | null): number;
111
121
  interface ExecRequest extends Omit<RunRequest, "stdin"> {
112
122
  command?: string[];
123
+ cwd?: string;
124
+ diff?: boolean;
113
125
  failOn?: boolean;
114
126
  showRaw?: boolean;
115
127
  shellCommand?: string;
128
+ skipCacheWrite?: boolean;
129
+ watch?: boolean;
116
130
  }
117
131
  declare function buildCommandPreview(request: ExecRequest): string;
118
132
  declare function getExecSuccessShortcut(args: {
@@ -137,4 +151,4 @@ interface ResolveOptions {
137
151
  }
138
152
  declare function resolveConfig(options?: ResolveOptions): SiftConfig;
139
153
 
140
- export { BoundedCapture, type DetailLevel, type ExecRequest, type GenerateInput, type GenerateResult, type InputConfig, type JsonResponseFormatMode, type LLMProvider, type OutputFormat, type PartialSiftConfig, type PreparedInput, type PresetDefinition, type PromptPolicyName, type ProviderConfig, type ProviderName, type ResolveOptions, type ResponseMode, type RunRequest, type RuntimeConfig, type SiftConfig, type UsageInfo, buildCommandPreview, getExecSuccessShortcut, looksInteractivePrompt, mergeDefined, normalizeChildExitCode, resolveConfig, runExec, runSift };
154
+ export { BoundedCapture, type DetailLevel, type ExecRequest, type GenerateInput, type GenerateResult, type Goal, type InputConfig, type JsonResponseFormatMode, type LLMProvider, type OutputFormat, type PartialSiftConfig, type PreparedInput, type PresetDefinition, type PromptPolicyName, type ProviderConfig, type ProviderName, type RawSliceStrategy, type ResolveOptions, type ResponseMode, type RunRequest, type RuntimeConfig, type SiftConfig, type UsageInfo, buildCommandPreview, getExecSuccessShortcut, looksInteractivePrompt, mergeDefined, normalizeChildExitCode, resolveConfig, runExec, runSift };