@jsonstudio/llms 0.6.3541 → 0.6.3551

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.
@@ -91,9 +91,6 @@ function shouldKeepProviderInPoolDuringCooldown(series, consecutive) {
91
91
  }
92
92
  return (series === 'ENET' || series === 'E5XX' || series === 'EOTHER') && consecutive <= 2;
93
93
  }
94
- function shouldAccumulateBySeries(series) {
95
- return series === 'ENET' || series === 'E5XX' || series === 'EOTHER';
96
- }
97
94
  function computeTransientKeepPoolCooldownMs(series, consecutive) {
98
95
  if (!shouldKeepProviderInPoolDuringCooldown(series, consecutive)) {
99
96
  return null;
@@ -149,9 +146,7 @@ export function applyErrorEvent(state, event, nowMs = event.timestampMs ?? Date.
149
146
  const withinChainWindow = typeof lastAt === 'number' &&
150
147
  nowMs - lastAt >= 0 &&
151
148
  nowMs - lastAt <= ERROR_CHAIN_WINDOW_MS;
152
- const sameErrorKey = withinChainWindow &&
153
- (state.lastErrorCode === errorKey ||
154
- (shouldAccumulateBySeries(series) && state.lastErrorSeries === series));
149
+ const sameErrorKey = withinChainWindow && state.lastErrorCode === errorKey;
155
150
  const schedule = series === 'E429'
156
151
  ? COOLDOWN_SCHEDULE_429_MS
157
152
  : series === 'EFATAL'
@@ -1,7 +1,6 @@
1
1
  import type { JsonObject } from '../conversion/hub/types/json.js';
2
2
  import type { ServerSideToolEngineOptions, ServerSideToolEngineResult, ToolCall } from './types.js';
3
3
  import './handlers/iflow-model-error-retry.js';
4
- import './handlers/gemini-empty-reply-continue.js';
5
4
  import './handlers/antigravity-thought-signature-bootstrap.js';
6
5
  import './handlers/stop-message-auto.js';
7
6
  import './handlers/clock.js';
@@ -3,7 +3,6 @@ import { ProviderProtocolError } from '../conversion/provider-protocol-error.js'
3
3
  import { executeWebSearchBackendPlan } from './handlers/web-search.js';
4
4
  import { executeVisionBackendPlan } from './handlers/vision.js';
5
5
  import './handlers/iflow-model-error-retry.js';
6
- import './handlers/gemini-empty-reply-continue.js';
7
6
  import './handlers/antigravity-thought-signature-bootstrap.js';
8
7
  import './handlers/stop-message-auto.js';
9
8
  import './handlers/clock.js';
@@ -22,7 +21,7 @@ function traceAutoHook(options, event) {
22
21
  // best-effort trace callback
23
22
  }
24
23
  }
25
- const OPTIONAL_PRIMARY_HOOK_ORDER = ['empty_reply_continue', 'clock_auto', 'stop_message_auto'];
24
+ const OPTIONAL_PRIMARY_HOOK_ORDER = ['clock_auto', 'stop_message_auto'];
26
25
  const MANDATORY_HOOK_ORDER = [];
27
26
  let fallbackToolCallIdSeq = 0;
28
27
  function ensureToolCallId(record) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsonstudio/llms",
3
- "version": "0.6.3541",
3
+ "version": "0.6.3551",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",