@s2-dev/streamstore 0.7.4 → 0.7.6

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/bin/mcp-server.js CHANGED
@@ -33991,36 +33991,9 @@ var init_mcp = __esm(() => {
33991
33991
  };
33992
33992
  });
33993
33993
 
33994
- // src/hooks/compression.ts
33995
- class CompressionHook {
33996
- beforeCreateRequest(_hookCtx, input) {
33997
- const hdrs = new Headers(input.options?.headers ?? {});
33998
- const body = input.options?.body;
33999
- if (!hdrs.get("content-type")?.toLowerCase().startsWith("application/json") || typeof body !== "string") {
34000
- return input;
34001
- }
34002
- const stream = new Blob([body]).stream();
34003
- const compressedStream = stream.pipeThrough(new CompressionStream("gzip"));
34004
- hdrs.set("content-encoding", "gzip");
34005
- const opts = {
34006
- ...input.options,
34007
- body: compressedStream,
34008
- headers: hdrs,
34009
- duplex: "half"
34010
- };
34011
- return {
34012
- ...input,
34013
- options: opts
34014
- };
34015
- }
34016
- }
34017
-
34018
33994
  // src/hooks/registration.ts
34019
33995
  function initHooks(hooks) {
34020
- hooks.registerBeforeCreateRequestHook(new CompressionHook);
34021
33996
  }
34022
- var init_registration = () => {
34023
- };
34024
33997
 
34025
33998
  // src/hooks/hooks.ts
34026
33999
  class SDKHooks {
@@ -34100,9 +34073,8 @@ class SDKHooks {
34100
34073
  return { response: res, error: err };
34101
34074
  }
34102
34075
  }
34103
- var init_hooks = __esm(() => {
34104
- init_registration();
34105
- });
34076
+ var init_hooks = () => {
34077
+ };
34106
34078
 
34107
34079
  // src/models/errors/httpclienterrors.ts
34108
34080
  var HTTPClientError, UnexpectedClientError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, ConnectionError;
@@ -34210,9 +34182,9 @@ var init_config = __esm(() => {
34210
34182
  SDK_METADATA = {
34211
34183
  language: "typescript",
34212
34184
  openapiDocVersion: "1.0.0",
34213
- sdkVersion: "0.7.4",
34185
+ sdkVersion: "0.7.6",
34214
34186
  genVersion: "2.546.0",
34215
- userAgent: "speakeasy-sdk/typescript 0.7.4 2.546.0 1.0.0 @s2-dev/streamstore"
34187
+ userAgent: "speakeasy-sdk/typescript 0.7.6 2.546.0 1.0.0 @s2-dev/streamstore"
34216
34188
  };
34217
34189
  });
34218
34190
 
@@ -42316,7 +42288,7 @@ Retrieve a batch of records, or set \`Accept: text/event-stream\` to stream usin
42316
42288
  function createMCPServer(deps) {
42317
42289
  const server = new McpServer({
42318
42290
  name: "S2",
42319
- version: "0.7.4"
42291
+ version: "0.7.6"
42320
42292
  });
42321
42293
  const client = new S2Core({
42322
42294
  bearerAuth: deps.bearerAuth,
@@ -43552,7 +43524,7 @@ var routes = rn({
43552
43524
  var app = Ve(routes, {
43553
43525
  name: "mcp",
43554
43526
  versionInfo: {
43555
- currentVersion: "0.7.4"
43527
+ currentVersion: "0.7.6"
43556
43528
  }
43557
43529
  });
43558
43530
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -43560,5 +43532,5 @@ export {
43560
43532
  app
43561
43533
  };
43562
43534
 
43563
- //# debugId=A92CE63A4C46295C64756E2164756E21
43535
+ //# debugId=F3BE922D6FBD4F1064756E2164756E21
43564
43536
  //# sourceMappingURL=mcp-server.js.map