dsh-lark-bot 0.8.1 → 0.8.3

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/dist/cli.js CHANGED
@@ -5796,6 +5796,7 @@ function looksLikeDshProcess(cmdline) {
5796
5796
  return cmdline.includes("@deepseek-ai/dsh") || /(?:^|\s)dsh(?:\.exe)?(?:\s|$)/.test(cmdline);
5797
5797
  }
5798
5798
  function matchProfileProcess(cmdline, dshProfile) {
5799
+ if (/(?:^|\s)plugin(?:\s|$)/.test(cmdline)) return false;
5799
5800
  return hasProfileFlag(cmdline, dshProfile) && looksLikeDshProcess(cmdline);
5800
5801
  }
5801
5802
  async function listProcesses() {
@@ -7079,7 +7080,10 @@ function printResult(result) {
7079
7080
  }
7080
7081
  function waitForShutdown2() {
7081
7082
  return new Promise((resolve5) => {
7083
+ const keepAlive = setInterval(() => {
7084
+ }, 2 ** 31 - 1);
7082
7085
  const shutdown = () => {
7086
+ clearInterval(keepAlive);
7083
7087
  process.off("SIGINT", shutdown);
7084
7088
  process.off("SIGTERM", shutdown);
7085
7089
  resolve5();