@caeliq/llms 1.0.64 → 1.0.65

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -18,6 +18,7 @@ export declare class OpencodeHeadersTransformer implements Transformer {
18
18
  private preserveZenStreamErrors;
19
19
  private static zenStreamFailure;
20
20
  private buildHeaders;
21
+ private resolveParentSessionId;
21
22
  /**
22
23
  * True only for the two Zen session-hash routing failures — a re-roll can
23
24
  * recover these. Kept deliberately narrow (exact status + message) so genuine
@@ -115,6 +115,11 @@ export interface UnifiedChatRequest {
115
115
  };
116
116
  reasoning?: {
117
117
  effort?: ThinkLevel;
118
+ /**
119
+ * Request readable reasoning text from destinations that gate it
120
+ * (Responses `reasoning.summary`, Codex, etc.). `"none"` opts out.
121
+ */
122
+ summary?: "auto" | "detailed" | "concise" | "none";
118
123
  max_tokens?: number;
119
124
  enabled?: boolean;
120
125
  };
@@ -1,7 +1,29 @@
1
1
  import type { ThinkLevel, UnifiedChatRequest } from "../types/llm";
2
2
  type UnifiedReasoning = UnifiedChatRequest["reasoning"];
3
+ /** Readable-reasoning request levels shared across Responses / Codex / config. */
4
+ export type ReasoningSummaryLevel = "auto" | "detailed" | "concise";
3
5
  /** Normalize effort tokens at the protocol boundary without rejecting extensions. */
4
6
  export declare function normalizeReasoningEffort(value: unknown): ThinkLevel | undefined;
7
+ /**
8
+ * Parse `REASONING_AUTO_SUMMARY` / provider `reasoningSummary`.
9
+ * `true` → `"detailed"` (LiteLLM-compatible). `"none"` / false / unset → off.
10
+ */
11
+ export declare function resolveReasoningAutoSummary(value: unknown): ReasoningSummaryLevel | undefined;
12
+ /** True when reasoning is on (effort present and not none, or enabled:true). */
13
+ export declare function isReasoningActive(reasoning: UnifiedReasoning | undefined, thinking?: UnifiedChatRequest["thinking"]): boolean;
14
+ /**
15
+ * Opt-in: when config asks for auto-summary and the client enabled reasoning
16
+ * without an explicit `reasoning.summary`, stamp the Unified field so every
17
+ * destination protocol can request readable thinking the same way.
18
+ */
19
+ export declare function applyReasoningAutoSummary(request: UnifiedChatRequest, configValue: unknown): UnifiedChatRequest;
20
+ /**
21
+ * Outbound precedence: Unified `reasoning.summary` → provider.reasoningSummary.
22
+ * `"none"` means do not request a readable summary.
23
+ */
24
+ export declare function resolveOutboundReasoningSummary(request: Pick<UnifiedChatRequest, "reasoning" | "thinking">, provider?: {
25
+ reasoningSummary?: unknown;
26
+ } | null): ReasoningSummaryLevel | undefined;
5
27
  /** `none` and an explicit enabled:false are the canonical off signals. */
6
28
  export declare function isReasoningDisabled(reasoning: UnifiedReasoning | undefined, thinking?: UnifiedChatRequest["thinking"]): boolean;
7
29
  /** Build the canonical reasoning state used by every inbound protocol. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caeliq/llms",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "description": "A universal LLM API transformation server",
5
5
  "main": "dist/cjs/server.cjs",
6
6
  "module": "dist/esm/server.mjs",
@@ -29,25 +29,25 @@
29
29
  "LICENSE"
30
30
  ],
31
31
  "dependencies": {
32
- "@anthropic-ai/sdk": "^0.115.0",
33
- "@caeliq/ccr-shared": "^2.1.6",
32
+ "@anthropic-ai/sdk": "^0.120.0",
33
+ "@caeliq/ccr-shared": "^2.1.7",
34
34
  "@cursor/sdk": "^1.0.28",
35
35
  "@fastify/cors": "^11.3.0",
36
36
  "@fastify/rate-limit": "^11.2.0",
37
- "@google/genai": "^2.17.1",
37
+ "@google/genai": "^2.18.0",
38
38
  "@huggingface/tokenizers": "^0.1.3",
39
39
  "dotenv": "^17.4.2",
40
- "fastify": "^5.12.0",
40
+ "fastify": "^5.12.1",
41
41
  "fastify-plugin": "^6.0.0",
42
42
  "google-auth-library": "^11.0.2",
43
43
  "json5": "^2.2.3",
44
44
  "jsonrepair": "^3.15.0",
45
45
  "latex-to-unicode": "^0.1.0",
46
46
  "lru-cache": "^11.5.2",
47
- "openai": "^7.4.0",
47
+ "openai": "^7.5.0",
48
48
  "tiktoken": "^1.0.22",
49
49
  "undici": "^8.10.0",
50
- "uuid": "^14.0.1"
50
+ "uuid": "^14.0.2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/node": "^26.2.0",