@mcp-use/cli 3.5.2-canary.6 → 3.5.2-canary.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/commands/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqDpC;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,aAMtC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,aAQ5B,CAAC;AAqhCH;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAyC7C;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA2H5D"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/commands/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqDpC;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,aAMtC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,aAQ5B,CAAC;AAgiCH;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAyC7C;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA2H5D"}
package/dist/index.cjs CHANGED
@@ -4254,6 +4254,14 @@ async function subscribeResourceCommand(name, uri) {
4254
4254
  }
4255
4255
  });
4256
4256
  console.log(formatInfo("Listening for updates... (Press Ctrl+C to stop)"));
4257
+ process.once("SIGINT", async () => {
4258
+ console.log(formatInfo("\nUnsubscribing and shutting down..."));
4259
+ try {
4260
+ await session.unsubscribeFromResource(uri);
4261
+ } catch (e) {
4262
+ }
4263
+ await cleanupAndExit(0);
4264
+ });
4257
4265
  await new Promise(() => {
4258
4266
  });
4259
4267
  } catch (error) {