@bilalimamoglu/sift 0.3.0 → 0.3.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/README.md +127 -312
- package/dist/cli.js +1939 -194
- package/dist/index.d.ts +11 -2
- package/dist/index.js +1528 -68
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
type ProviderName = "openai" | "openai-compatible";
|
|
1
|
+
type ProviderName = "openai" | "openai-compatible" | "openrouter";
|
|
2
|
+
type NativeProviderName = "openai" | "openrouter";
|
|
3
|
+
interface ProviderProfile {
|
|
4
|
+
model?: string;
|
|
5
|
+
baseUrl?: string;
|
|
6
|
+
apiKey?: string;
|
|
7
|
+
}
|
|
8
|
+
type ProviderProfiles = Partial<Record<NativeProviderName, ProviderProfile>>;
|
|
2
9
|
type OutputFormat = "brief" | "bullets" | "json" | "verdict";
|
|
3
10
|
type DetailLevel = "standard" | "focused" | "verbose";
|
|
4
11
|
type Goal = "summarize" | "diagnose";
|
|
@@ -41,12 +48,14 @@ interface SiftConfig {
|
|
|
41
48
|
input: InputConfig;
|
|
42
49
|
runtime: RuntimeConfig;
|
|
43
50
|
presets: Record<string, PresetDefinition>;
|
|
51
|
+
providerProfiles?: ProviderProfiles;
|
|
44
52
|
}
|
|
45
53
|
interface PartialSiftConfig {
|
|
46
54
|
provider?: Partial<ProviderConfig>;
|
|
47
55
|
input?: Partial<InputConfig>;
|
|
48
56
|
runtime?: Partial<RuntimeConfig>;
|
|
49
57
|
presets?: Record<string, PresetDefinition>;
|
|
58
|
+
providerProfiles?: ProviderProfiles;
|
|
50
59
|
}
|
|
51
60
|
interface GenerateInput {
|
|
52
61
|
model: string;
|
|
@@ -151,4 +160,4 @@ interface ResolveOptions {
|
|
|
151
160
|
}
|
|
152
161
|
declare function resolveConfig(options?: ResolveOptions): SiftConfig;
|
|
153
162
|
|
|
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 };
|
|
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 };
|