@ai-ecoverse/mcpcat 0.31.0 → 0.31.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.
@@ -19003,7 +19003,7 @@ var Subscriber = class {
19003
19003
  return EXIT_OK;
19004
19004
  }
19005
19005
  };
19006
- var REFRESH_MIN_MS = 1e3;
19006
+ var REFRESH_MIN_MS = 100;
19007
19007
  var UNSUBSCRIBE_CAP_MS = 3e3;
19008
19008
  var NOT_FOUND2 = -32023;
19009
19009
  var REFRESH_MAX_MS = 36e5;
@@ -19035,6 +19035,11 @@ var WebhookClient = class {
19035
19035
  }
19036
19036
  async start() {
19037
19037
  const { args: args2, platform: platform2 } = this.o;
19038
+ if (args2.webhookUnsubscribe) {
19039
+ await this.o.api.unsubscribe({ ...this.key(), delivery: { url: args2.webhookUrl } });
19040
+ await this.notice(`unsubscribed ${this.o.event.name} from ${args2.webhookUrl}`);
19041
+ return EXIT_OK;
19042
+ }
19038
19043
  if (args2.cursorFile) {
19039
19044
  const state = await loadCursorFile(platform2, args2.cursorFile);
19040
19045
  this.cursor = state.cursor;
@@ -19042,11 +19047,6 @@ var WebhookClient = class {
19042
19047
  }
19043
19048
  if (args2.sinceNow) this.cursor = null;
19044
19049
  if (args2.cursor !== void 0) this.cursor = args2.cursor;
19045
- if (args2.webhookUnsubscribe) {
19046
- await this.o.api.unsubscribe({ ...this.key(), delivery: { url: args2.webhookUrl } });
19047
- await this.notice(`unsubscribed ${this.o.event.name} from ${args2.webhookUrl}`);
19048
- return EXIT_OK;
19049
- }
19050
19050
  return this.loop();
19051
19051
  }
19052
19052
  async loop() {
@@ -21876,5 +21876,5 @@ try {
21876
21876
  });
21877
21877
  } catch {
21878
21878
  }
21879
- var code = await run(platform, "0.31.0", args);
21879
+ var code = await run(platform, "0.31.1", args);
21880
21880
  process.exit(code);
@@ -18520,7 +18520,7 @@ var Subscriber = class {
18520
18520
  return EXIT_OK;
18521
18521
  }
18522
18522
  };
18523
- var REFRESH_MIN_MS = 1e3;
18523
+ var REFRESH_MIN_MS = 100;
18524
18524
  var UNSUBSCRIBE_CAP_MS = 3e3;
18525
18525
  var NOT_FOUND2 = -32023;
18526
18526
  var REFRESH_MAX_MS = 36e5;
@@ -18552,6 +18552,11 @@ var WebhookClient = class {
18552
18552
  }
18553
18553
  async start() {
18554
18554
  const { args, platform: platform2 } = this.o;
18555
+ if (args.webhookUnsubscribe) {
18556
+ await this.o.api.unsubscribe({ ...this.key(), delivery: { url: args.webhookUrl } });
18557
+ await this.notice(`unsubscribed ${this.o.event.name} from ${args.webhookUrl}`);
18558
+ return EXIT_OK;
18559
+ }
18555
18560
  if (args.cursorFile) {
18556
18561
  const state = await loadCursorFile(platform2, args.cursorFile);
18557
18562
  this.cursor = state.cursor;
@@ -18559,11 +18564,6 @@ var WebhookClient = class {
18559
18564
  }
18560
18565
  if (args.sinceNow) this.cursor = null;
18561
18566
  if (args.cursor !== void 0) this.cursor = args.cursor;
18562
- if (args.webhookUnsubscribe) {
18563
- await this.o.api.unsubscribe({ ...this.key(), delivery: { url: args.webhookUrl } });
18564
- await this.notice(`unsubscribed ${this.o.event.name} from ${args.webhookUrl}`);
18565
- return EXIT_OK;
18566
- }
18567
18567
  return this.loop();
18568
18568
  }
18569
18569
  async loop() {
@@ -21228,7 +21228,7 @@ async function main(ctx) {
21228
21228
  packageDir: "/node_modules/@ai-ecoverse/mcpcat"
21229
21229
  });
21230
21230
  const args = ctx.argv.slice(1);
21231
- return run(platform2, "0.31.0", args);
21231
+ return run(platform2, "0.31.1", args);
21232
21232
  }
21233
21233
  export {
21234
21234
  main as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/mcpcat",
3
- "version": "0.31.0",
3
+ "version": "0.31.1",
4
4
  "description": "A curl for the Model Context Protocol",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",