@sjawhar/claude-envoy 5.15.0 → 5.15.2

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.
@@ -2,5 +2,5 @@
2
2
  "name": "claude-envoy",
3
3
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
4
4
  "mcpServers": "./.mcp.json",
5
- "version": "5.15.0"
5
+ "version": "5.15.2"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "5.15.0",
3
+ "version": "5.15.2",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
@@ -62199,7 +62199,7 @@ var import_nats5 = __toESM(require_mod4(), 1);
62199
62199
 
62200
62200
  // package.json
62201
62201
  var name2 = "@sjawhar/claude-envoy";
62202
- var version2 = "5.15.0";
62202
+ var version2 = "5.15.2";
62203
62203
  var legion = {
62204
62204
  daemonApiVersion: 219
62205
62205
  };
@@ -33625,7 +33625,7 @@ function scopeTable(pair, issueKey, workspace) {
33625
33625
  function withoutOverlays(chain) {
33626
33626
  return chain.split(":").filter((entry) => entry && !ATTRIBUTION_OVERLAY.test(path2.basename(entry))).join(":");
33627
33627
  }
33628
- async function userConfigChain(timeoutMs = JJ_CONFIG_PATH_TIMEOUT_MS, env = process.env) {
33628
+ async function userConfigChain(timeoutMs = JJ_CONFIG_PATH_TIMEOUT_MS, env = process.env, giveUp) {
33629
33629
  try {
33630
33630
  const child = Bun.spawn(["jj", "config", "path", "--user"], {
33631
33631
  detached: true,
@@ -33646,15 +33646,22 @@ async function userConfigChain(timeoutMs = JJ_CONFIG_PATH_TIMEOUT_MS, env = proc
33646
33646
  new Response(child.stderr).text()
33647
33647
  ]);
33648
33648
  const stdout = await new Promise((resolve) => {
33649
- const timer = setTimeout(() => {
33649
+ const stop = () => {
33650
+ clearTimeout(timer);
33650
33651
  killGroup();
33651
33652
  resolve(undefined);
33652
- }, timeoutMs);
33653
+ };
33654
+ const timer = setTimeout(stop, timeoutMs);
33655
+ if (giveUp?.aborted)
33656
+ stop();
33657
+ giveUp?.addEventListener("abort", stop, { once: true });
33653
33658
  completed.then(([code, output]) => {
33654
33659
  clearTimeout(timer);
33660
+ giveUp?.removeEventListener("abort", stop);
33655
33661
  resolve(code === 0 ? output : undefined);
33656
33662
  }, () => {
33657
33663
  clearTimeout(timer);
33664
+ giveUp?.removeEventListener("abort", stop);
33658
33665
  resolve(undefined);
33659
33666
  });
33660
33667
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "5.15.0",
3
+ "version": "5.15.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",