@theokit/sdk 4.16.5 → 4.16.7
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/CHANGELOG.md +12 -0
- package/dist/cron.cjs +15 -4
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +15 -4
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +15 -4
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +15 -4
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +15 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/dist/internal/session/compact-session.d.ts +19 -0
- package/package.json +1 -1
|
@@ -43,6 +43,25 @@ export declare function compactSessionTranscript(opts: {
|
|
|
43
43
|
trigger: "manual" | "auto";
|
|
44
44
|
summarize: (messages: readonly CompressibleMessage[]) => Promise<string>;
|
|
45
45
|
}): Promise<CompactResult>;
|
|
46
|
+
/**
|
|
47
|
+
* M50 review F6 (corrigido no probe) — the summarizer's provider route, PURE and unit-tested.
|
|
48
|
+
* Precedence mirrors the run's M4 rule exactly:
|
|
49
|
+
* 1. an EXPLICIT credential's provider wins (an sk-or- key + `openai/…` model must summarize via
|
|
50
|
+
* OpenRouter — the key is the ground truth of which endpoint gets called);
|
|
51
|
+
* 2. else a model prefix with a REGISTERED profile (the oauth `openai-chatgpt` builtin owns its
|
|
52
|
+
* auth; the M45 fleet resolves its own env vars) routes through that profile;
|
|
53
|
+
* 3. else the ENV-detected provider (fresh process, aggregator credential in env).
|
|
54
|
+
* `fullSlug` marks aggregator routes (provider ≠ prefix): the agent's slug passes unstripped.
|
|
55
|
+
*/
|
|
56
|
+
export declare function resolveSummarizerRoute(opts: {
|
|
57
|
+
keyProvider: string | undefined;
|
|
58
|
+
modelPrefix: string | undefined;
|
|
59
|
+
prefixHasProfile: boolean;
|
|
60
|
+
envProvider: string;
|
|
61
|
+
}): {
|
|
62
|
+
provider: string;
|
|
63
|
+
fullSlug: boolean;
|
|
64
|
+
};
|
|
46
65
|
/**
|
|
47
66
|
* Build the default summarizer for `Agent.compact`: the D440 `compressConversationWindow`
|
|
48
67
|
* (aux-LLM summarization with typed failure) driven by a router-resolved LLM client. The
|
package/package.json
CHANGED