@tempad-dev/mcp 1.0.4 → 1.0.5

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 (45) hide show
  1. package/README.md +5 -1
  2. package/README.zh-Hans.md +3 -1
  3. package/dist/{acquire-BtKFZ9Lz.mjs → acquire-C1v5UQB2.mjs} +1 -1
  4. package/dist/{acquire-DHwsqq0j.mjs → acquire-DK4Fg36-.mjs} +4 -4
  5. package/dist/{acquire-DHwsqq0j.mjs.map → acquire-DK4Fg36-.mjs.map} +1 -1
  6. package/dist/{bootstrap-B9-RyWlM.mjs → bootstrap-CNJpiOAm.mjs} +7 -7
  7. package/dist/{bootstrap-B9-RyWlM.mjs.map → bootstrap-CNJpiOAm.mjs.map} +1 -1
  8. package/dist/cli.mjs +4 -4
  9. package/dist/{cold-start-DOy9JsIQ.mjs → cold-start-BOLlW_0n.mjs} +4 -4
  10. package/dist/{cold-start-DOy9JsIQ.mjs.map → cold-start-BOLlW_0n.mjs.map} +1 -1
  11. package/dist/{cold-start-U3cW0q9T.mjs → cold-start-DeFnhN3x.mjs} +1 -1
  12. package/dist/{edge-CHzaTUFt.mjs → edge-DP-CwLYS.mjs} +1 -1
  13. package/dist/{edge-BUf7gs4J.mjs → edge-m9VuTeju.mjs} +5 -5
  14. package/dist/{edge-BUf7gs4J.mjs.map → edge-m9VuTeju.mjs.map} +1 -1
  15. package/dist/{hub-runtime-DsEO9zvX.mjs → hub-runtime-BBnfo1yd.mjs} +50 -26
  16. package/dist/hub-runtime-BBnfo1yd.mjs.map +1 -0
  17. package/dist/{hub-runtime-DjdqIgGl.mjs → hub-runtime-U3Set0EC.mjs} +1 -1
  18. package/dist/hub.mjs +2 -2
  19. package/dist/managed-runtime.mjs +10 -10
  20. package/dist/{probe-BeWkMbzQ.mjs → probe-CqjOWdnP.mjs} +4 -4
  21. package/dist/{probe-BeWkMbzQ.mjs.map → probe-CqjOWdnP.mjs.map} +1 -1
  22. package/dist/{processes-CBoalzSk.mjs → processes-BnvaDi81.mjs} +1 -1
  23. package/dist/{processes-BCCE8As7.mjs → processes-DOmrri5n.mjs} +6 -6
  24. package/dist/{processes-BCCE8As7.mjs.map → processes-DOmrri5n.mjs.map} +1 -1
  25. package/dist/runtime-installer.mjs +3 -3
  26. package/dist/runtime-manifest.json +49 -49
  27. package/dist/{runtime-platform-C-Yk9F3L.mjs → runtime-platform-CpunJOI4.mjs} +143 -43
  28. package/dist/runtime-platform-CpunJOI4.mjs.map +1 -0
  29. package/dist/runtime-verification.mjs +3 -3
  30. package/dist/{shared--othnF1c.mjs → shared-8_j_xlsJ.mjs} +8 -5
  31. package/dist/{shared--othnF1c.mjs.map → shared-8_j_xlsJ.mjs.map} +1 -1
  32. package/dist/{shared-S0dtOYq8.mjs → shared-Bvmw_Pv0.mjs} +1 -1
  33. package/dist/{startup-log-CYlFgdy5.mjs → startup-log-BI24ryBR.mjs} +2 -2
  34. package/dist/{startup-log-CYlFgdy5.mjs.map → startup-log-BI24ryBR.mjs.map} +1 -1
  35. package/dist/{startup-log-DqK2uwBd.mjs → startup-log-isQ9Wv18.mjs} +1 -1
  36. package/dist/{state-6qFcvi-I.mjs → state-4Dz7r-_n.mjs} +2 -2
  37. package/dist/{state-6qFcvi-I.mjs.map → state-4Dz7r-_n.mjs.map} +1 -1
  38. package/dist/{state-BrWBtYNG.mjs → state-DDpxeTVd.mjs} +1 -1
  39. package/dist/{supervisor-CesT-H5_.mjs → supervisor-Cu-xRt1k.mjs} +7 -7
  40. package/dist/{supervisor-CesT-H5_.mjs.map → supervisor-Cu-xRt1k.mjs.map} +1 -1
  41. package/dist/{task-storage-recovery-I9lpYYX6.mjs → task-storage-recovery-fSo2eskS.mjs} +2 -2
  42. package/dist/{task-storage-recovery-I9lpYYX6.mjs.map → task-storage-recovery-fSo2eskS.mjs.map} +1 -1
  43. package/package.json +1 -1
  44. package/dist/hub-runtime-DsEO9zvX.mjs.map +0 -1
  45. package/dist/runtime-platform-C-Yk9F3L.mjs.map +0 -1
@@ -17,12 +17,12 @@ import { a as codexConversationKey, c as hostConversationKey, l as requireHostCo
17
17
  import { i as ClientHooks, n as HubControl } from "./hub-control-UlA4Fncg.mjs";
18
18
  import { n as bindRequestMetadata, r as clientDescriptor, t as ClientEventSchema } from "./identity-CCaDEwgc.mjs";
19
19
  import { a as LEGACY_HOOK_EXHAUSTED_RESULT, c as hookPressureCutoff, d as isExpiredHookResult, l as hookRetentionCutoff, n as ExpiredHookError, o as LegacyHookCapacityError, s as hookCutoff, t as EXPIRED_HOOK_RESULT, u as hookSignature } from "./hook-receipts-QJU3AMoY.mjs";
20
- import { a as HUB_RUNTIME_IDENTITY_PATH, b as resolveStateDir, c as PACKAGE_VERSION, d as SOCK_PATH, g as log, h as getRecordProperty, i as HUB_LOCK_UPDATE_MS, l as RUNTIME_DIR, m as ensureFile, n as HUB_LOCK_PATH, p as ensureDir, r as HUB_LOCK_STALE_MS, t as ASSET_DIR, u as RUNTIME_PROFILE, x as assertTrustedSocket } from "./shared--othnF1c.mjs";
20
+ import { a as HUB_RUNTIME_IDENTITY_PATH, b as resolveStateDir, c as PACKAGE_VERSION, d as SOCK_PATH, g as log, h as getRecordProperty, i as HUB_LOCK_UPDATE_MS, l as RUNTIME_DIR, m as ensureFile, n as HUB_LOCK_PATH, p as ensureDir, r as HUB_LOCK_STALE_MS, t as ASSET_DIR, u as RUNTIME_PROFILE, x as assertTrustedSocket } from "./shared-8_j_xlsJ.mjs";
21
21
  import { n as ClientBindingSubscribeSchema, r as ClientBindingUpdateSchema } from "./client-binding-CvSSv9JC.mjs";
22
22
  import { t as DesignTaskStore } from "./design-task-store-BHR54v8-.mjs";
23
23
  import { a as removeHubRuntimeIdentityIfOwned, n as getExtensionRuntimeIssues, o as writeHubRuntimeIdentity, t as createHubRuntimeIdentity } from "./runtime-identity-D9V-g5M-.mjs";
24
- import { o as listenPrivate } from "./processes-BCCE8As7.mjs";
25
- import { d as writeEndpoints, o as readEndpoints } from "./state-6qFcvi-I.mjs";
24
+ import { o as listenPrivate } from "./processes-DOmrri5n.mjs";
25
+ import { d as writeEndpoints, o as readEndpoints } from "./state-4Dz7r-_n.mjs";
26
26
  import { n as attachRuntimeRecovery, t as RECOVERY_METHODS } from "./runtime-recovery-DaRaQ8qY.mjs";
27
27
  import { execFile, spawn } from "node:child_process";
28
28
  import { connect, createServer } from "node:net";
@@ -814,7 +814,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
814
814
  values: [],
815
815
  hasMore: false
816
816
  } };
817
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/constants.js
817
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/constants.js
818
818
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
819
819
  const BINARY_TYPES = [
820
820
  "nodebuffer",
@@ -836,7 +836,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
836
836
  NOOP: () => {}
837
837
  };
838
838
  }));
839
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/buffer-util.js
839
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/buffer-util.js
840
840
  var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
841
841
  const { websocketMask, websocketUnmask } = __require("http");
842
842
  const { EMPTY_BUFFER } = require_constants();
@@ -944,7 +944,7 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
944
944
  };
945
945
  } catch (e) {}
946
946
  }));
947
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/limiter.js
947
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/limiter.js
948
948
  var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
949
949
  const kDone = Symbol("kDone");
950
950
  const kRun = Symbol("kRun");
@@ -994,7 +994,7 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
994
994
  };
995
995
  module.exports = Limiter;
996
996
  }));
997
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/permessage-deflate.js
997
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/permessage-deflate.js
998
998
  var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
999
999
  const zlib = __require("zlib");
1000
1000
  const bufferUtil = require_buffer_util();
@@ -1329,7 +1329,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
1329
1329
  this[kCallback](err);
1330
1330
  }
1331
1331
  }));
1332
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/validation.js
1332
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/validation.js
1333
1333
  var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1334
1334
  const { isUtf8 } = __require("buffer");
1335
1335
  const { hasBlob } = require_constants();
@@ -1524,7 +1524,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1524
1524
  };
1525
1525
  } catch (e) {}
1526
1526
  }));
1527
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/receiver.js
1527
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/receiver.js
1528
1528
  var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1529
1529
  const { Writable } = __require("stream");
1530
1530
  const PerMessageDeflate = require_permessage_deflate();
@@ -1987,7 +1987,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1987
1987
  };
1988
1988
  module.exports = Receiver;
1989
1989
  }));
1990
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/sender.js
1990
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/sender.js
1991
1991
  var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1992
1992
  const { Duplex } = __require("stream");
1993
1993
  const { randomFillSync } = __require("crypto");
@@ -2485,7 +2485,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2485
2485
  sender.onerror(err);
2486
2486
  }
2487
2487
  }));
2488
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/event-target.js
2488
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/event-target.js
2489
2489
  var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2490
2490
  const { kForOnEventAttribute, kListener } = require_constants();
2491
2491
  const kCode = Symbol("kCode");
@@ -2715,7 +2715,7 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2715
2715
  else listener.call(thisArg, event);
2716
2716
  }
2717
2717
  }));
2718
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/extension.js
2718
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/extension.js
2719
2719
  var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2720
2720
  const { tokenChars } = require_validation();
2721
2721
  /**
@@ -2860,7 +2860,7 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2860
2860
  parse
2861
2861
  };
2862
2862
  }));
2863
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/websocket.js
2863
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/websocket.js
2864
2864
  var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2865
2865
  const EventEmitter = __require("events");
2866
2866
  const https = __require("https");
@@ -2933,12 +2933,15 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2933
2933
  else protocols = [options.protocols];
2934
2934
  } else protocols = [protocols];
2935
2935
  }
2936
- initAsClient(this, address, protocols, options);
2937
- } else {
2938
- this._autoPong = options.autoPong;
2939
- this._closeTimeout = options.closeTimeout;
2940
- this._isServer = true;
2936
+ options = initAsClient(this, address, protocols, options);
2937
+ } else this._isServer = true;
2938
+ if (options.autoPong) {
2939
+ this._autoPong = true;
2940
+ this._autoPongComplete = () => autoPongComplete(this);
2941
+ this._pendingAutoPongs = 0;
2942
+ this._maxPendingAutoPongs = options.maxPendingAutoPongs | 0;
2941
2943
  }
2944
+ this._closeTimeout = options.closeTimeout;
2942
2945
  }
2943
2946
  /**
2944
2947
  * For historical reasons, the custom "nodebuffer" type is used by the default
@@ -3379,6 +3382,8 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3379
3382
  * fragments
3380
3383
  * @param {Number} [options.maxPayload=104857600] The maximum allowed message
3381
3384
  * size
3385
+ * @param {Number} [options.maxPendingAutoPongs=60] The maximum number of
3386
+ * pending automatic pongs
3382
3387
  * @param {Number} [options.maxRedirects=10] The maximum number of redirects
3383
3388
  * allowed
3384
3389
  * @param {String} [options.origin] Value of the `Origin` or
@@ -3389,6 +3394,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3389
3394
  * `Sec-WebSocket-Version` header
3390
3395
  * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
3391
3396
  * not to skip UTF-8 validation for text and close messages
3397
+ * @return {Object} The resolved options object used for initialization
3392
3398
  * @private
3393
3399
  */
3394
3400
  function initAsClient(websocket, address, protocols, options) {
@@ -3400,6 +3406,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3400
3406
  maxBufferedChunks: 262144,
3401
3407
  maxFragments: 16384,
3402
3408
  maxPayload: 104857600,
3409
+ maxPendingAutoPongs: 60,
3403
3410
  skipUTF8Validation: false,
3404
3411
  perMessageDeflate: true,
3405
3412
  followRedirects: false,
@@ -3415,8 +3422,6 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3415
3422
  path: void 0,
3416
3423
  port: void 0
3417
3424
  };
3418
- websocket._autoPong = opts.autoPong;
3419
- websocket._closeTimeout = opts.closeTimeout;
3420
3425
  if (!protocolVersions.includes(opts.protocolVersion)) throw new RangeError(`Unsupported protocol version: ${opts.protocolVersion} (supported versions: ${protocolVersions.join(", ")})`);
3421
3426
  let parsedUrl;
3422
3427
  if (address instanceof URL) parsedUrl = address;
@@ -3606,6 +3611,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3606
3611
  });
3607
3612
  if (opts.finishRequest) opts.finishRequest(req, websocket);
3608
3613
  else req.end();
3614
+ return opts;
3609
3615
  }
3610
3616
  /**
3611
3617
  * Emit the `'error'` and `'close'` events.
@@ -3762,10 +3768,25 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3762
3768
  */
3763
3769
  function receiverOnPing(data) {
3764
3770
  const websocket = this[kWebSocket];
3765
- if (websocket._autoPong) websocket.pong(data, !this._isServer, NOOP);
3771
+ if (websocket._autoPong && websocket.readyState === WebSocket.OPEN) {
3772
+ if (websocket._maxPendingAutoPongs > 0 && websocket._pendingAutoPongs >= websocket._maxPendingAutoPongs) websocket.terminate();
3773
+ else {
3774
+ websocket._pendingAutoPongs++;
3775
+ websocket.pong(data, !this._isServer, websocket._autoPongComplete);
3776
+ }
3777
+ }
3766
3778
  websocket.emit("ping", data);
3767
3779
  }
3768
3780
  /**
3781
+ * The callback for automatic pong responses.
3782
+ *
3783
+ * @param {WebSocket} websocket The WebSocket instance
3784
+ * @private
3785
+ */
3786
+ function autoPongComplete(websocket) {
3787
+ websocket._pendingAutoPongs--;
3788
+ }
3789
+ /**
3769
3790
  * The listener of the `Receiver` `'pong'` event.
3770
3791
  *
3771
3792
  * @param {Buffer} data The data included in the pong frame
@@ -3870,7 +3891,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3870
3891
  }
3871
3892
  }
3872
3893
  }));
3873
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/stream.js
3894
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/stream.js
3874
3895
  var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3875
3896
  require_websocket();
3876
3897
  const { Duplex } = __require("stream");
@@ -3985,7 +4006,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3985
4006
  }
3986
4007
  module.exports = createWebSocketStream;
3987
4008
  }));
3988
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/subprotocol.js
4009
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/subprotocol.js
3989
4010
  var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3990
4011
  const { tokenChars } = require_validation();
3991
4012
  /**
@@ -4023,7 +4044,7 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4023
4044
  }
4024
4045
  module.exports = { parse };
4025
4046
  }));
4026
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/lib/websocket-server.js
4047
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/websocket-server.js
4027
4048
  var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4028
4049
  const EventEmitter = __require("events");
4029
4050
  const http = __require("http");
@@ -4068,6 +4089,8 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
4068
4089
  * fragments
4069
4090
  * @param {Number} [options.maxPayload=104857600] The maximum allowed message
4070
4091
  * size
4092
+ * @param {Number} [options.maxPendingAutoPongs=60] The maximum number of
4093
+ * pending automatic pongs
4071
4094
  * @param {Boolean} [options.noServer=false] Enable no server mode
4072
4095
  * @param {String} [options.path] Accept only connections matching this path
4073
4096
  * @param {(Boolean|Object)} [options.perMessageDeflate=false] Enable/disable
@@ -4090,6 +4113,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
4090
4113
  maxBufferedChunks: 262144,
4091
4114
  maxFragments: 16384,
4092
4115
  maxPayload: 104857600,
4116
+ maxPendingAutoPongs: 60,
4093
4117
  skipUTF8Validation: false,
4094
4118
  perMessageDeflate: false,
4095
4119
  handleProtocols: null,
@@ -4409,7 +4433,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
4409
4433
  } else abortHandshake(socket, code, message, headers);
4410
4434
  }
4411
4435
  }));
4412
- // ../../node_modules/.pnpm/ws@8.22.2/node_modules/ws/wrapper.mjs
4436
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/wrapper.mjs
4413
4437
  var import_proper_lockfile = /* @__PURE__ */ __toESM(require_proper_lockfile(), 1);
4414
4438
  require_stream();
4415
4439
  require_extension();
@@ -10143,4 +10167,4 @@ async function startHub(options = {}) {
10143
10167
  }
10144
10168
  export { startHub as t };
10145
10169
 
10146
- //# sourceMappingURL=hub-runtime-DsEO9zvX.mjs.map
10170
+ //# sourceMappingURL=hub-runtime-BBnfo1yd.mjs.map