draw2agent 1.1.0 → 1.2.0

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/index.js CHANGED
@@ -13829,10 +13829,14 @@ function rejectState(errorMsg) {
13829
13829
  }
13830
13830
  function clearState() {
13831
13831
  currentState = null;
13832
+ isSessionClosed = false;
13832
13833
  }
13833
13834
  function setProxyInfo(url2) {
13834
13835
  proxyInfo = { running: true, url: url2 };
13835
13836
  }
13837
+ function clearProxyInfo() {
13838
+ proxyInfo = { running: false, url: "" };
13839
+ }
13836
13840
  function getProxyInfo() {
13837
13841
  return proxyInfo;
13838
13842
  }
@@ -14077,7 +14081,7 @@ function createMcpServer() {
14077
14081
  }
14078
14082
  isErrorResult = false;
14079
14083
  stopHttpServer();
14080
- setProxyInfo("");
14084
+ clearProxyInfo();
14081
14085
  } else {
14082
14086
  if (fs2.existsSync(ERROR_INSTRUCTIONS_PATH)) {
14083
14087
  customInstructions = fs2.readFileSync(ERROR_INSTRUCTIONS_PATH, "utf-8").replace("{{ERROR_MESSAGE}}", message);