@tool-bridge/server 0.21.0 → 0.21.1

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.
Files changed (110) hide show
  1. package/dist/{airtable-DMJEEGJP.js → airtable-LLZDFN7M.js} +5 -5
  2. package/dist/{alt_text_generator_ai-RELFQ5FV.js → alt_text_generator_ai-W7O34SNG.js} +4 -4
  3. package/dist/{amap-YSYEACKQ.js → amap-VOX4T2AW.js} +4 -4
  4. package/dist/{anthropic-D5X5GSYE.js → anthropic-G23NN3X5.js} +5 -5
  5. package/dist/{apify-5NVFU3IZ.js → apify-Y3SS734K.js} +5 -5
  6. package/dist/{brave_search-X557FMGO.js → brave_search-ZC7OAPSZ.js} +5 -5
  7. package/dist/{chunk-QR4LK3HF.js → chunk-ATK45BXV.js} +1 -1
  8. package/dist/{chunk-Q74GLIDK.js → chunk-E6JCVKW6.js} +6 -5
  9. package/dist/{chunk-MDY7K5CX.js → chunk-KMTT3I6D.js} +23 -263
  10. package/dist/chunk-R6P4XAE5.js +248 -0
  11. package/dist/{chunk-ZTTN6AJG.js → chunk-U7B6DS2O.js} +1 -1
  12. package/dist/{chunk-MZCIPUNQ.js → chunk-UZM2RXZH.js} +18 -6
  13. package/dist/{chunk-JEWFX6Z6.js → chunk-XYBU3WZH.js} +3 -3
  14. package/dist/{circleci-3P3QTUX2.js → circleci-3BAX5FCG.js} +5 -5
  15. package/dist/{clerk-GNMZQ2MY.js → clerk-6LEM6TNU.js} +5 -5
  16. package/dist/{cloudflare_dns-VWZH3ZTR.js → cloudflare_dns-KINYTJUD.js} +5 -5
  17. package/dist/{cohere-C7QVIIMG.js → cohere-XCJ5AJ6B.js} +5 -5
  18. package/dist/{confluence-52I37IUT.js → confluence-B3EWPZVE.js} +5 -5
  19. package/dist/{convertapi-3TRJ3WEO.js → convertapi-EUWSQYPF.js} +3 -3
  20. package/dist/{currencyapi-LWEANWVI.js → currencyapi-KVTIK3GL.js} +5 -5
  21. package/dist/{deepseek-5U24YG4P.js → deepseek-PC5YGNC5.js} +5 -5
  22. package/dist/{docker_hub-CMISLRSE.js → docker_hub-C3MA5FU6.js} +4 -4
  23. package/dist/{dropbox-TW4QN6FT.js → dropbox-XBV7Z2IR.js} +5 -5
  24. package/dist/{dub-EFXGI5UH.js → dub-LDOFG3HC.js} +5 -5
  25. package/dist/{e2b-PHM63OVF.js → e2b-JMCPSVBW.js} +5 -5
  26. package/dist/{exa-DYOQWURR.js → exa-RAK7O7RD.js} +5 -5
  27. package/dist/{fal_ai-VJPMCNRH.js → fal_ai-23E7JPNT.js} +5 -5
  28. package/dist/feishu-7QRIDUV6.js +12019 -0
  29. package/dist/{feishu_custom_bot-ADSE23KU.js → feishu_custom_bot-TJ4K7QNJ.js} +3 -3
  30. package/dist/{figma-4AK47AYY.js → figma-E6IX5DTH.js} +5 -5
  31. package/dist/{firehydrant-RGPTW4EA.js → firehydrant-ZBLPQREE.js} +5 -5
  32. package/dist/{fixer-OAMF4DKP.js → fixer-BWON27UO.js} +4 -4
  33. package/dist/{fly-YB4AQD4O.js → fly-ZH3HFCZJ.js} +5 -5
  34. package/dist/{front-6GTVYKUM.js → front-QCGXYEDJ.js} +5 -5
  35. package/dist/{geocodio-YRT4K25M.js → geocodio-YGNI7DA4.js} +4 -4
  36. package/dist/{ghost-JCW6UIP2.js → ghost-EVSGKH2Q.js} +4 -4
  37. package/dist/{github-CEGVRMNX.js → github-MA2BGRCJ.js} +5 -5
  38. package/dist/{gmail-JCMJD55P.js → gmail-E5E6AADE.js} +5 -5
  39. package/dist/{googlecalendar-2EAW4MNM.js → googlecalendar-BTLFPXTD.js} +11 -10
  40. package/dist/{googledocs-YNKKBM6Q.js → googledocs-BUHL4J2H.js} +6 -5
  41. package/dist/{grafana-353VSGXN.js → grafana-GLU2DWF2.js} +5 -5
  42. package/dist/{graphhopper-H3IVJNDS.js → graphhopper-WSMB3TCD.js} +4 -4
  43. package/dist/index.js +4 -3
  44. package/dist/{ip2proxy-DBGRWH7S.js → ip2proxy-EZ64Y4ZH.js} +4 -4
  45. package/dist/{ipgeolocation_io-5I2BDVMG.js → ipgeolocation_io-AA7HAS22.js} +4 -4
  46. package/dist/{ipqualityscore-ILV7TQCV.js → ipqualityscore-BHJXVTJT.js} +4 -4
  47. package/dist/{jina_ai-L5BH455V.js → jina_ai-EFBHTBXL.js} +5 -5
  48. package/dist/{jira-IGTILUZA.js → jira-HQSHAA5K.js} +5 -5
  49. package/dist/{langsmith-BYRX4AOF.js → langsmith-5W6SCT6F.js} +5 -5
  50. package/dist/{lemlist-ZGNYTIQO.js → lemlist-HJWH6UMK.js} +5 -5
  51. package/dist/{linear-HLGOWISN.js → linear-K7RYFYAD.js} +6 -5
  52. package/dist/{logsnag-5RGTMTU2.js → logsnag-4KFOHL37.js} +5 -5
  53. package/dist/main.js +103 -102
  54. package/dist/{mattermost-BONGXVC7.js → mattermost-S2BRCWLQ.js} +5 -5
  55. package/dist/{mem0-RUVNUPTE.js → mem0-CAW43CIC.js} +5 -5
  56. package/dist/{memos-TED4HI54.js → memos-TWEGPKFM.js} +8 -7
  57. package/dist/{metabase-ZHXHRHZK.js → metabase-MMSEPCOF.js} +5 -5
  58. package/dist/{mistral_ai-NGP5SHU7.js → mistral_ai-64BGZQHP.js} +5 -5
  59. package/dist/{mother_duck-TKVQM35M.js → mother_duck-H7PCQNZ2.js} +5 -5
  60. package/dist/{ngrok-BYCUJ7QV.js → ngrok-GQCUGZKJ.js} +5 -5
  61. package/dist/{notes-KXRNNYDW.js → notes-PFMKRO33.js} +1 -1
  62. package/dist/{notion-2ILYKJOO.js → notion-DQWZWP4N.js} +5 -5
  63. package/dist/{open_exchange_rates-JU4DC6HZ.js → open_exchange_rates-QMMD735E.js} +4 -4
  64. package/dist/{openai-6SOT26ZK.js → openai-W6PX32NZ.js} +5 -5
  65. package/dist/{opengraph_io-ZEFHV2OL.js → opengraph_io-HNDBXYNW.js} +4 -4
  66. package/dist/{openrouter-R4P7JL5L.js → openrouter-JJYMEAUL.js} +5 -5
  67. package/dist/{outline-VCTQ5V2X.js → outline-MCBNQZYY.js} +5 -5
  68. package/dist/{paddle-AZOAKBJS.js → paddle-D2SKLUDN.js} +5 -5
  69. package/dist/{perplexity-OMRLGVAT.js → perplexity-XIFMKUAE.js} +5 -5
  70. package/dist/{pinecone-DI62W3ZX.js → pinecone-HUFTALV2.js} +5 -5
  71. package/dist/{pipedrive-CW7HONYW.js → pipedrive-Y2O7QGFF.js} +5 -5
  72. package/dist/{polar-5DRGTXNR.js → polar-TYTOMOSR.js} +5 -5
  73. package/dist/{posthog-3DTHFCKE.js → posthog-43JAR3VW.js} +5 -5
  74. package/dist/{postmark-ME2V2XXI.js → postmark-KL2QJYSG.js} +5 -5
  75. package/dist/{prerender-5EAY7GDM.js → prerender-MENYM2TY.js} +4 -4
  76. package/dist/{pubmed-GRQUBGVA.js → pubmed-GOXUVVH5.js} +6 -5
  77. package/dist/{railway-FTM75TMX.js → railway-V2SID4WV.js} +3 -3
  78. package/dist/{readwise-IJQGV6IQ.js → readwise-CI4GIMMJ.js} +5 -5
  79. package/dist/{render-TMSPHRTY.js → render-SUBJ6YRZ.js} +5 -5
  80. package/dist/{replicate-RJCMDB7H.js → replicate-756MXPYX.js} +5 -5
  81. package/dist/{resend-YYN22NIL.js → resend-ZKH3BTBI.js} +5 -5
  82. package/dist/{rootly-7RXE4K7L.js → rootly-CD2LJHPI.js} +5 -5
  83. package/dist/{scrapfly-ZJJ6XM4Q.js → scrapfly-NSRHFDIQ.js} +4 -4
  84. package/dist/{scrapingbee-QNGEOD6D.js → scrapingbee-OQHLAVEY.js} +4 -4
  85. package/dist/{screenshot_fyi-SPZAABVD.js → screenshot_fyi-DVWG3AXC.js} +4 -4
  86. package/dist/{semantic_scholar-SDPVGDDI.js → semantic_scholar-T4A252KW.js} +5 -5
  87. package/dist/{sentry-SJ5NN4C4.js → sentry-546MNDJG.js} +5 -5
  88. package/dist/{shodan-YMGOY7KW.js → shodan-C3OON3Z3.js} +4 -4
  89. package/dist/{shopify-SU5ABP54.js → shopify-Y2HN2MCQ.js} +5 -5
  90. package/dist/{stripe-JAC425KE.js → stripe-VE3CD3AY.js} +3 -3
  91. package/dist/{supabase-GQ2OFVIL.js → supabase-U2SL4D63.js} +5 -5
  92. package/dist/{tavily-Y7MDA5CI.js → tavily-KCZHK6HE.js} +5 -5
  93. package/dist/{telegram-OIDT3ZLH.js → telegram-3URFBCMY.js} +4 -4
  94. package/dist/{telnyx-4JGMC3K7.js → telnyx-CXQ4EZUX.js} +5 -5
  95. package/dist/{todoist-O7S2OUGX.js → todoist-HNPWNYTD.js} +5 -5
  96. package/dist/{trello-3LDE4TAQ.js → trello-3W2MIXRP.js} +4 -4
  97. package/dist/{turso-MUQ44KCA.js → turso-2EQF7C2Z.js} +5 -5
  98. package/dist/{twilio-VYF3HUU6.js → twilio-4PDBJKWX.js} +6 -5
  99. package/dist/{umami-SVQIK26J.js → umami-5REN7TGP.js} +5 -5
  100. package/dist/{unsplash-333XYDCJ.js → unsplash-EIXL424F.js} +5 -5
  101. package/dist/{upstash_redis-IUM2HDLU.js → upstash_redis-G4LQBYHA.js} +5 -5
  102. package/dist/{uptimerobot-7ZRU2NJV.js → uptimerobot-KNJ3EYLY.js} +3 -3
  103. package/dist/{v2ex-AVSJCQPS.js → v2ex-RHJ234PZ.js} +5 -5
  104. package/dist/{vercel-J7RGXNSA.js → vercel-AS6NCIC7.js} +5 -5
  105. package/dist/{wolfram_alpha_api-6CRVUZOJ.js → wolfram_alpha_api-3G4PUJWB.js} +4 -4
  106. package/dist/{wordpress-THOJLPKA.js → wordpress-KNDAAUV7.js} +5 -5
  107. package/dist/{workos-ENTGRWF2.js → workos-R6UITSJ7.js} +5 -5
  108. package/dist/{zhihu-W2BXICTX.js → zhihu-AGK4HILK.js} +5 -5
  109. package/package.json +3 -3
  110. package/dist/feishu-TFIZXPIN.js +0 -231
@@ -2,14 +2,14 @@ import {
2
2
  createProviderPlugin,
3
3
  requireCredential,
4
4
  upstreamError
5
- } from "./chunk-QR4LK3HF.js";
5
+ } from "./chunk-ATK45BXV.js";
6
6
  import {
7
7
  guardedFetch
8
- } from "./chunk-ZTTN6AJG.js";
8
+ } from "./chunk-U7B6DS2O.js";
9
9
  import {
10
10
  TBError,
11
11
  external_exports
12
- } from "./chunk-MZCIPUNQ.js";
12
+ } from "./chunk-UZM2RXZH.js";
13
13
  import "./chunk-U67V476Y.js";
14
14
 
15
15
  // ../plugins/src/feishu_custom_bot/api.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  compactDefined,
@@ -9,12 +9,12 @@ import {
9
9
  } from "./chunk-JXHMDBAY.js";
10
10
  import {
11
11
  createProviderPlugin
12
- } from "./chunk-QR4LK3HF.js";
13
- import "./chunk-ZTTN6AJG.js";
12
+ } from "./chunk-ATK45BXV.js";
13
+ import "./chunk-U7B6DS2O.js";
14
14
  import {
15
15
  TBError,
16
16
  external_exports
17
- } from "./chunk-MZCIPUNQ.js";
17
+ } from "./chunk-UZM2RXZH.js";
18
18
  import "./chunk-U67V476Y.js";
19
19
 
20
20
  // ../plugins/src/figma/api.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  compactDefined,
@@ -10,12 +10,12 @@ import {
10
10
  import {
11
11
  createProviderPlugin,
12
12
  upstreamError
13
- } from "./chunk-QR4LK3HF.js";
14
- import "./chunk-ZTTN6AJG.js";
13
+ } from "./chunk-ATK45BXV.js";
14
+ import "./chunk-U7B6DS2O.js";
15
15
  import {
16
16
  TBError,
17
17
  external_exports
18
- } from "./chunk-MZCIPUNQ.js";
18
+ } from "./chunk-UZM2RXZH.js";
19
19
  import "./chunk-U67V476Y.js";
20
20
 
21
21
  // ../plugins/src/firehydrant/api.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderHttpClient
3
- } from "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-E6JCVKW6.js";
4
4
  import {
5
5
  asJsonObject,
6
6
  trimmedText
@@ -9,12 +9,12 @@ import {
9
9
  createProviderPlugin,
10
10
  requireApiKey,
11
11
  upstreamError
12
- } from "./chunk-QR4LK3HF.js";
13
- import "./chunk-ZTTN6AJG.js";
12
+ } from "./chunk-ATK45BXV.js";
13
+ import "./chunk-U7B6DS2O.js";
14
14
  import {
15
15
  TBError,
16
16
  external_exports
17
- } from "./chunk-MZCIPUNQ.js";
17
+ } from "./chunk-UZM2RXZH.js";
18
18
  import "./chunk-U67V476Y.js";
19
19
 
20
20
  // ../plugins/src/fixer/api.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  compactDefined,
@@ -10,12 +10,12 @@ import {
10
10
  import {
11
11
  createProviderPlugin,
12
12
  upstreamError
13
- } from "./chunk-QR4LK3HF.js";
14
- import "./chunk-ZTTN6AJG.js";
13
+ } from "./chunk-ATK45BXV.js";
14
+ import "./chunk-U7B6DS2O.js";
15
15
  import {
16
16
  TBError,
17
17
  external_exports
18
- } from "./chunk-MZCIPUNQ.js";
18
+ } from "./chunk-UZM2RXZH.js";
19
19
  import "./chunk-U67V476Y.js";
20
20
 
21
21
  // ../plugins/src/fly/api.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  trimmedText
@@ -9,11 +9,11 @@ import {
9
9
  import {
10
10
  createProviderPlugin,
11
11
  upstreamError
12
- } from "./chunk-QR4LK3HF.js";
13
- import "./chunk-ZTTN6AJG.js";
12
+ } from "./chunk-ATK45BXV.js";
13
+ import "./chunk-U7B6DS2O.js";
14
14
  import {
15
15
  external_exports
16
- } from "./chunk-MZCIPUNQ.js";
16
+ } from "./chunk-UZM2RXZH.js";
17
17
  import "./chunk-U67V476Y.js";
18
18
 
19
19
  // ../plugins/src/front/api.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderHttpClient
3
- } from "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-E6JCVKW6.js";
4
4
  import {
5
5
  messageFrom
6
6
  } from "./chunk-JXHMDBAY.js";
@@ -8,12 +8,12 @@ import {
8
8
  createProviderPlugin,
9
9
  requireApiKey,
10
10
  upstreamError
11
- } from "./chunk-QR4LK3HF.js";
12
- import "./chunk-ZTTN6AJG.js";
11
+ } from "./chunk-ATK45BXV.js";
12
+ import "./chunk-U7B6DS2O.js";
13
13
  import {
14
14
  TBError,
15
15
  external_exports
16
- } from "./chunk-MZCIPUNQ.js";
16
+ } from "./chunk-UZM2RXZH.js";
17
17
  import "./chunk-U67V476Y.js";
18
18
 
19
19
  // ../plugins/src/geocodio/api.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderHttpClient
3
- } from "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-E6JCVKW6.js";
4
4
  import {
5
5
  asJsonObject,
6
6
  trimmedText
@@ -9,14 +9,14 @@ import {
9
9
  createProviderPlugin,
10
10
  requireCredential,
11
11
  upstreamError
12
- } from "./chunk-QR4LK3HF.js";
12
+ } from "./chunk-ATK45BXV.js";
13
13
  import {
14
14
  assertPublicHttpUrl
15
- } from "./chunk-ZTTN6AJG.js";
15
+ } from "./chunk-U7B6DS2O.js";
16
16
  import {
17
17
  TBError,
18
18
  external_exports
19
- } from "./chunk-MZCIPUNQ.js";
19
+ } from "./chunk-UZM2RXZH.js";
20
20
  import "./chunk-U67V476Y.js";
21
21
 
22
22
  // ../plugins/src/ghost/api.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  compactDefined,
@@ -10,12 +10,12 @@ import {
10
10
  import {
11
11
  createProviderPlugin,
12
12
  upstreamError
13
- } from "./chunk-QR4LK3HF.js";
14
- import "./chunk-ZTTN6AJG.js";
13
+ } from "./chunk-ATK45BXV.js";
14
+ import "./chunk-U7B6DS2O.js";
15
15
  import {
16
16
  TBError,
17
17
  external_exports
18
- } from "./chunk-MZCIPUNQ.js";
18
+ } from "./chunk-UZM2RXZH.js";
19
19
  import "./chunk-U67V476Y.js";
20
20
 
21
21
  // ../plugins/src/github/api/shared.ts
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject
7
7
  } from "./chunk-JXHMDBAY.js";
8
8
  import {
9
9
  createProviderPlugin,
10
10
  upstreamError
11
- } from "./chunk-QR4LK3HF.js";
12
- import "./chunk-ZTTN6AJG.js";
11
+ } from "./chunk-ATK45BXV.js";
12
+ import "./chunk-U7B6DS2O.js";
13
13
  import {
14
14
  TBError,
15
15
  external_exports
16
- } from "./chunk-MZCIPUNQ.js";
16
+ } from "./chunk-UZM2RXZH.js";
17
17
  import "./chunk-U67V476Y.js";
18
18
 
19
19
  // ../plugins/src/gmail/api/shared.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  compactDefined,
@@ -10,12 +10,13 @@ import {
10
10
  import {
11
11
  createProviderPlugin,
12
12
  upstreamError
13
- } from "./chunk-QR4LK3HF.js";
14
- import "./chunk-ZTTN6AJG.js";
13
+ } from "./chunk-ATK45BXV.js";
14
+ import "./chunk-U7B6DS2O.js";
15
15
  import {
16
16
  TBError,
17
- external_exports
18
- } from "./chunk-MZCIPUNQ.js";
17
+ external_exports,
18
+ isTBError
19
+ } from "./chunk-UZM2RXZH.js";
19
20
  import "./chunk-U67V476Y.js";
20
21
 
21
22
  // ../plugins/src/googlecalendar/api/shared.ts
@@ -403,7 +404,7 @@ async function deleteEvent(input, ctx) {
403
404
  method: "DELETE"
404
405
  });
405
406
  } catch (error) {
406
- if (error instanceof TBError && error.code === "not_found") return { success: true };
407
+ if (isTBError(error) && error.code === "not_found") return { success: true };
407
408
  throw error;
408
409
  }
409
410
  return { success: true };
@@ -783,7 +784,7 @@ function buildSummaryItem(event) {
783
784
  });
784
785
  }
785
786
  function mapCalendarError(error) {
786
- if (!(error instanceof TBError)) {
787
+ if (!isTBError(error)) {
787
788
  return { code: "provider_error", message: error instanceof Error ? error.message : String(error) };
788
789
  }
789
790
  if (error.code === "rate_limited") return { code: "rate_limited", message: error.message };
@@ -792,7 +793,7 @@ function mapCalendarError(error) {
792
793
  return { code: "provider_error", message: error.message };
793
794
  }
794
795
  function isUnauthenticated(error) {
795
- return error instanceof TBError && error.code === "permission_denied" && error.httpStatus === 401;
796
+ return isTBError(error) && error.code === "permission_denied" && error.httpStatus === 401;
796
797
  }
797
798
  async function listVisibleCalendars(ctx) {
798
799
  const calendars = [];
@@ -885,7 +886,7 @@ async function listEventsAllCalendars(input, ctx) {
885
886
  if (isUnauthenticated(error)) throw error;
886
887
  const mapped = mapCalendarError(error);
887
888
  errorsByCalendar[calendar.calendarId] = mapped;
888
- firstRecoverableError ??= error instanceof TBError ? error : upstreamError(502, mapped.message);
889
+ firstRecoverableError ??= isTBError(error) ? error : upstreamError(502, mapped.message);
889
890
  }
890
891
  }
891
892
  if (succeeded === 0) {
@@ -9,14 +9,15 @@ import {
9
9
  createProviderPlugin,
10
10
  requireApiKey,
11
11
  upstreamError
12
- } from "./chunk-QR4LK3HF.js";
12
+ } from "./chunk-ATK45BXV.js";
13
13
  import {
14
14
  guardedFetch
15
- } from "./chunk-ZTTN6AJG.js";
15
+ } from "./chunk-U7B6DS2O.js";
16
16
  import {
17
17
  TBError,
18
- external_exports
19
- } from "./chunk-MZCIPUNQ.js";
18
+ external_exports,
19
+ isTBError
20
+ } from "./chunk-UZM2RXZH.js";
20
21
  import "./chunk-U67V476Y.js";
21
22
 
22
23
  // ../plugins/src/googledocs/api/shared.ts
@@ -157,7 +158,7 @@ async function send(ctx, input) {
157
158
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
158
159
  });
159
160
  } catch (error) {
160
- if (error instanceof TBError) throw error;
161
+ if (isTBError(error)) throw error;
161
162
  if (error instanceof Error && error.name === "TimeoutError") {
162
163
  throw upstreamError(504, `Google Docs \u8BF7\u6C42\u8D85\u65F6(${REQUEST_TIMEOUT_MS / 1e3} \u79D2)`);
163
164
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  booleanValue,
@@ -13,14 +13,14 @@ import {
13
13
  createProviderPlugin,
14
14
  requireApiKey,
15
15
  upstreamError
16
- } from "./chunk-QR4LK3HF.js";
16
+ } from "./chunk-ATK45BXV.js";
17
17
  import {
18
18
  assertPublicHttpUrl
19
- } from "./chunk-ZTTN6AJG.js";
19
+ } from "./chunk-U7B6DS2O.js";
20
20
  import {
21
21
  TBError,
22
22
  external_exports
23
- } from "./chunk-MZCIPUNQ.js";
23
+ } from "./chunk-UZM2RXZH.js";
24
24
  import "./chunk-U67V476Y.js";
25
25
 
26
26
  // ../plugins/src/grafana/api.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderHttpClient
3
- } from "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-E6JCVKW6.js";
4
4
  import {
5
5
  asJsonObject
6
6
  } from "./chunk-JXHMDBAY.js";
@@ -8,12 +8,12 @@ import {
8
8
  createProviderPlugin,
9
9
  requireApiKey,
10
10
  upstreamError
11
- } from "./chunk-QR4LK3HF.js";
12
- import "./chunk-ZTTN6AJG.js";
11
+ } from "./chunk-ATK45BXV.js";
12
+ import "./chunk-U7B6DS2O.js";
13
13
  import {
14
14
  TBError,
15
15
  external_exports
16
- } from "./chunk-MZCIPUNQ.js";
16
+ } from "./chunk-UZM2RXZH.js";
17
17
  import "./chunk-U67V476Y.js";
18
18
 
19
19
  // ../plugins/src/graphhopper/api.ts
package/dist/index.js CHANGED
@@ -12,9 +12,10 @@ import {
12
12
  configFromEnv,
13
13
  createDataObjectStore,
14
14
  createTbServer
15
- } from "./chunk-MDY7K5CX.js";
16
- import "./chunk-ZTTN6AJG.js";
17
- import "./chunk-MZCIPUNQ.js";
15
+ } from "./chunk-KMTT3I6D.js";
16
+ import "./chunk-R6P4XAE5.js";
17
+ import "./chunk-U7B6DS2O.js";
18
+ import "./chunk-UZM2RXZH.js";
18
19
  import "./chunk-U67V476Y.js";
19
20
  export {
20
21
  DEVICE_FORWARD_TIMEOUT_MS,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createProviderHttpClient
3
- } from "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-E6JCVKW6.js";
4
4
  import "./chunk-JXHMDBAY.js";
5
5
  import {
6
6
  createProviderPlugin,
7
7
  requireApiKey,
8
8
  upstreamError
9
- } from "./chunk-QR4LK3HF.js";
10
- import "./chunk-ZTTN6AJG.js";
9
+ } from "./chunk-ATK45BXV.js";
10
+ import "./chunk-U7B6DS2O.js";
11
11
  import {
12
12
  TBError,
13
13
  external_exports
14
- } from "./chunk-MZCIPUNQ.js";
14
+ } from "./chunk-UZM2RXZH.js";
15
15
  import "./chunk-U67V476Y.js";
16
16
 
17
17
  // ../plugins/src/ip2proxy/schema.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProviderHttpClient
3
- } from "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-E6JCVKW6.js";
4
4
  import {
5
5
  asJsonObject
6
6
  } from "./chunk-JXHMDBAY.js";
@@ -8,11 +8,11 @@ import {
8
8
  createProviderPlugin,
9
9
  requireApiKey,
10
10
  upstreamError
11
- } from "./chunk-QR4LK3HF.js";
12
- import "./chunk-ZTTN6AJG.js";
11
+ } from "./chunk-ATK45BXV.js";
12
+ import "./chunk-U7B6DS2O.js";
13
13
  import {
14
14
  external_exports
15
- } from "./chunk-MZCIPUNQ.js";
15
+ } from "./chunk-UZM2RXZH.js";
16
16
  import "./chunk-U67V476Y.js";
17
17
 
18
18
  // ../plugins/src/ipgeolocation_io/api.ts
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  createProviderHttpClient
3
- } from "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-E6JCVKW6.js";
4
4
  import "./chunk-JXHMDBAY.js";
5
5
  import {
6
6
  createProviderPlugin,
7
7
  requireApiKey,
8
8
  upstreamError
9
- } from "./chunk-QR4LK3HF.js";
10
- import "./chunk-ZTTN6AJG.js";
9
+ } from "./chunk-ATK45BXV.js";
10
+ import "./chunk-U7B6DS2O.js";
11
11
  import {
12
12
  TBError,
13
13
  external_exports
14
- } from "./chunk-MZCIPUNQ.js";
14
+ } from "./chunk-UZM2RXZH.js";
15
15
  import "./chunk-U67V476Y.js";
16
16
 
17
17
  // ../plugins/src/ipqualityscore/api.ts
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import "./chunk-JXHMDBAY.js";
6
6
  import {
7
7
  createProviderPlugin,
8
8
  upstreamError
9
- } from "./chunk-QR4LK3HF.js";
10
- import "./chunk-ZTTN6AJG.js";
9
+ } from "./chunk-ATK45BXV.js";
10
+ import "./chunk-U7B6DS2O.js";
11
11
  import {
12
12
  external_exports
13
- } from "./chunk-MZCIPUNQ.js";
13
+ } from "./chunk-UZM2RXZH.js";
14
14
  import "./chunk-U67V476Y.js";
15
15
 
16
16
  // ../plugins/src/jina_ai/api.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  booleanValue,
@@ -13,14 +13,14 @@ import {
13
13
  createProviderPlugin,
14
14
  requireCredential,
15
15
  upstreamError
16
- } from "./chunk-QR4LK3HF.js";
16
+ } from "./chunk-ATK45BXV.js";
17
17
  import {
18
18
  assertPublicHttpUrl
19
- } from "./chunk-ZTTN6AJG.js";
19
+ } from "./chunk-U7B6DS2O.js";
20
20
  import {
21
21
  TBError,
22
22
  external_exports
23
- } from "./chunk-MZCIPUNQ.js";
23
+ } from "./chunk-UZM2RXZH.js";
24
24
  import "./chunk-U67V476Y.js";
25
25
 
26
26
  // ../plugins/src/jira/api.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  compactDefined,
@@ -13,12 +13,12 @@ import {
13
13
  createProviderPlugin,
14
14
  requireApiKey,
15
15
  upstreamError
16
- } from "./chunk-QR4LK3HF.js";
17
- import "./chunk-ZTTN6AJG.js";
16
+ } from "./chunk-ATK45BXV.js";
17
+ import "./chunk-U7B6DS2O.js";
18
18
  import {
19
19
  TBError,
20
20
  external_exports
21
- } from "./chunk-MZCIPUNQ.js";
21
+ } from "./chunk-UZM2RXZH.js";
22
22
  import "./chunk-U67V476Y.js";
23
23
 
24
24
  // ../plugins/src/langsmith/api.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import {
6
6
  asJsonObject,
7
7
  compactDefined,
@@ -11,12 +11,12 @@ import {
11
11
  createProviderPlugin,
12
12
  requireApiKey,
13
13
  upstreamError
14
- } from "./chunk-QR4LK3HF.js";
15
- import "./chunk-ZTTN6AJG.js";
14
+ } from "./chunk-ATK45BXV.js";
15
+ import "./chunk-U7B6DS2O.js";
16
16
  import {
17
17
  TBError,
18
18
  external_exports
19
- } from "./chunk-MZCIPUNQ.js";
19
+ } from "./chunk-UZM2RXZH.js";
20
20
  import "./chunk-U67V476Y.js";
21
21
 
22
22
  // ../plugins/src/lemlist/api.ts
@@ -7,14 +7,15 @@ import {
7
7
  createProviderPlugin,
8
8
  requireApiKey,
9
9
  upstreamError
10
- } from "./chunk-QR4LK3HF.js";
10
+ } from "./chunk-ATK45BXV.js";
11
11
  import {
12
12
  guardedFetch
13
- } from "./chunk-ZTTN6AJG.js";
13
+ } from "./chunk-U7B6DS2O.js";
14
14
  import {
15
15
  TBError,
16
- external_exports
17
- } from "./chunk-MZCIPUNQ.js";
16
+ external_exports,
17
+ isTBError
18
+ } from "./chunk-UZM2RXZH.js";
18
19
  import "./chunk-U67V476Y.js";
19
20
 
20
21
  // ../plugins/src/linear/api.ts
@@ -314,7 +315,7 @@ async function graphqlRequest(ctx, query, variables) {
314
315
  });
315
316
  body = await readJson(response);
316
317
  } catch (error) {
317
- if (error instanceof TBError) throw error;
318
+ if (isTBError(error)) throw error;
318
319
  throw upstreamError(502, error instanceof Error ? `linear \u8BF7\u6C42\u5931\u8D25: ${error.message}` : "linear \u8BF7\u6C42\u5931\u8D25");
319
320
  }
320
321
  if (!response.ok) throw upstreamError(response.status, extractErrorMessage(body));
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  createAuthedClient
3
- } from "./chunk-JEWFX6Z6.js";
4
- import "./chunk-Q74GLIDK.js";
3
+ } from "./chunk-XYBU3WZH.js";
4
+ import "./chunk-E6JCVKW6.js";
5
5
  import "./chunk-JXHMDBAY.js";
6
6
  import {
7
7
  createProviderPlugin
8
- } from "./chunk-QR4LK3HF.js";
9
- import "./chunk-ZTTN6AJG.js";
8
+ } from "./chunk-ATK45BXV.js";
9
+ import "./chunk-U7B6DS2O.js";
10
10
  import {
11
11
  external_exports
12
- } from "./chunk-MZCIPUNQ.js";
12
+ } from "./chunk-UZM2RXZH.js";
13
13
  import "./chunk-U67V476Y.js";
14
14
 
15
15
  // ../plugins/src/logsnag/api.ts