@curio-data/mcp-intelli-search 0.20.0 → 0.21.0

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 CHANGED
@@ -6,7 +6,7 @@
6
6
  [![npm downloads](https://img.shields.io/npm/dt/@curio-data/mcp-intelli-search?color=blue)](https://www.npmjs.com/package/@curio-data/mcp-intelli-search)
7
7
  [![node](https://img.shields.io/badge/node-%E2%89%A522-blue)](https://nodejs.org/)
8
8
  [![license](https://img.shields.io/badge/license-Apache--2.0-green)](https://github.com/Curio-Data/pi-intelli-search/blob/main/LICENSE)
9
- ![tests](https://img.shields.io/badge/test%3Aall-684%20passing-brightgreen)
9
+ ![tests](https://img.shields.io/badge/test%3Aall-725%20passing-brightgreen)
10
10
 
11
11
  Intelligent web research for coding agents: search, extract, collate, and cache grounded web context in one tool call.
12
12
 
@@ -271,7 +271,14 @@ var NON_RETRYABLE_LIMIT_PATTERNS = [
271
271
  "billing",
272
272
  // Sign in with ChatGPT: the subscription's shared usage limit, which resets
273
273
  // after hours rather than seconds.
274
- "subscription_sharing_usage_limit_exceeded"
274
+ "subscription_sharing_usage_limit_exceeded",
275
+ // Sign in with ChatGPT on a ChatGPT Business plan: a usage limit set by the
276
+ // workspace admin. Only the admin can raise it.
277
+ "subscription_sharing_workplace_individual_usage_limit_exceeded",
278
+ // Zhipu/Z.ai (open.bigmodel.cn) error code 1308: the plan's usage limit is
279
+ // reached, sent as HTTP 429. It resets after hours, not seconds (pi #11537).
280
+ // The lookahead keeps a different code such as 13089 from matching.
281
+ '"code"\\s*:\\s*"?1308(?![0-9])'
275
282
  ];
276
283
  var RETRYABLE_PATTERNS = [
277
284
  // Generic provider load, HTTP status, and server-side transient failures.
@@ -282,12 +289,13 @@ var RETRYABLE_PATTERNS = [
282
289
  "model is at capacity",
283
290
  "rate.?limit",
284
291
  "too many requests",
285
- // Deliberate divergence from upstream: the bare status codes keep word
286
- // boundaries. The host filters context-overflow errors before classifying,
287
- // so upstream can match bare digits; this policy has no such pre-filter, and
288
- // an unbounded "502" would retry a permanent context-length error whose
289
- // token counts embed a matching run (for example "150293 tokens").
290
- "\\b(?:429|500|502|503|504|520|524)\\b",
292
+ // Status codes, upstream's verbatim form: the lookarounds reject codes
293
+ // embedded in digits or letters (request ids, token counts such as
294
+ // "150293 tokens") while still matching delimited ones. Underscore-adjacent
295
+ // tokens ("HTTP_502_BAD_GATEWAY") match too; that is upstream's accepted
296
+ // trade. This policy keeps no context-overflow pre-filter, so a delimited
297
+ // count such as "128,500 tokens" can still retry (known limitation).
298
+ "(?<![a-z0-9])(?:429|500|502|503|504|520|524)(?![a-z0-9])",
291
299
  // Also matches "The service is temporarily unavailable" (pi #10965).
292
300
  "service.?(?:is.?)?(?:temporarily.?)?unavailable",
293
301
  "server.?error",
@@ -300,6 +308,12 @@ var RETRYABLE_PATTERNS = [
300
308
  // Gateway failure relaying the upstream response stream, sent as an OpenAI
301
309
  // Responses `response.failed` event without an error code (pi #10920).
302
310
  "unable to forward upstream",
311
+ // Other gateway upstream failures relayed as `response.failed` error codes
312
+ // (pi #10920).
313
+ "upstream.?request.?failed",
314
+ "upstream_stream_read_error",
315
+ "stream was interrupted",
316
+ "http/?2 stream failed",
303
317
  // Network, proxy, and fetch transport failures, including raw-fetch failures
304
318
  // such as "upstream connect", "connection refused", and "reset before
305
319
  // headers" (pi #733), plus OpenRouter connection drops (pi #3317).
@@ -309,6 +323,9 @@ var RETRYABLE_PATTERNS = [
309
323
  "connection.?lost",
310
324
  "other side closed",
311
325
  "fetch failed",
326
+ // node-fetch system errors, e.g. the Google ADC OAuth token refresh used by
327
+ // google-vertex. The reason is often empty (pi #10996).
328
+ "request to \\S+ failed, reason:",
312
329
  "getaddrinfo",
313
330
  "ENOTFOUND",
314
331
  "EAI_AGAIN",
@@ -341,6 +358,10 @@ var RETRYABLE_PATTERNS = [
341
358
  "stream ended before message_stop",
342
359
  "stream ended before a terminal response event",
343
360
  "http2 request did not get a response",
361
+ // Codex CLI mid-stream disconnect, relayed by proxies that wrap the Codex
362
+ // CLI, e.g. "stream disconnected before completion: stream closed before
363
+ // response.completed" (pi #11057).
364
+ "stream disconnected before completion",
344
365
  // Node ERR_HTTP2_STREAM_CANCEL: the HTTP/2 session died before the request
345
366
  // was sent, for example after the Bedrock SDK's session timeout (pi #10379).
346
367
  "pending stream has been canceled",
package/dist/runtime.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRuntime
3
- } from "./chunk-NLULRY33.js";
3
+ } from "./chunk-HLF5TGKP.js";
4
4
  import {
5
5
  ConfigurationError,
6
6
  StandaloneError,
package/dist/server.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  extractSchema,
8
8
  researchSchema,
9
9
  searchSchema
10
- } from "./chunk-NLULRY33.js";
10
+ } from "./chunk-HLF5TGKP.js";
11
11
  import {
12
12
  ConfigurationError,
13
13
  StandaloneError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curio-data/mcp-intelli-search",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Standalone intelligent web research engine and Model Context Protocol stdio server.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",