@bilalimamoglu/sift 0.3.1 → 0.3.3
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 +142 -386
- package/dist/cli.js +2500 -226
- package/dist/index.d.ts +15 -1
- package/dist/index.js +2474 -216
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,7 @@ interface ExecRequest extends Omit<RunRequest, "stdin"> {
|
|
|
132
132
|
cwd?: string;
|
|
133
133
|
diff?: boolean;
|
|
134
134
|
failOn?: boolean;
|
|
135
|
+
quiet?: boolean;
|
|
135
136
|
showRaw?: boolean;
|
|
136
137
|
shellCommand?: string;
|
|
137
138
|
skipCacheWrite?: boolean;
|
|
@@ -145,7 +146,20 @@ declare function getExecSuccessShortcut(args: {
|
|
|
145
146
|
}): string | null;
|
|
146
147
|
declare function runExec(request: ExecRequest): Promise<number>;
|
|
147
148
|
|
|
149
|
+
interface RunStats {
|
|
150
|
+
layer: "heuristic" | "provider" | "fallback";
|
|
151
|
+
providerCalled: boolean;
|
|
152
|
+
totalTokens: number | null;
|
|
153
|
+
durationMs: number;
|
|
154
|
+
presetName?: string;
|
|
155
|
+
}
|
|
156
|
+
interface RunResult {
|
|
157
|
+
output: string;
|
|
158
|
+
stats: RunStats | null;
|
|
159
|
+
}
|
|
160
|
+
|
|
148
161
|
declare function runSift(request: RunRequest): Promise<string>;
|
|
162
|
+
declare function runSiftWithStats(request: RunRequest): Promise<RunResult>;
|
|
149
163
|
|
|
150
164
|
interface LLMProvider {
|
|
151
165
|
readonly name: string;
|
|
@@ -160,4 +174,4 @@ interface ResolveOptions {
|
|
|
160
174
|
}
|
|
161
175
|
declare function resolveConfig(options?: ResolveOptions): SiftConfig;
|
|
162
176
|
|
|
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 };
|
|
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 };
|