opencode-swarm 7.82.0 → 7.82.1

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/index.js CHANGED
@@ -52,7 +52,7 @@ var package_default;
52
52
  var init_package = __esm(() => {
53
53
  package_default = {
54
54
  name: "opencode-swarm",
55
- version: "7.82.0",
55
+ version: "7.82.1",
56
56
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
57
57
  main: "dist/index.js",
58
58
  types: "dist/index.d.ts",
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ var package_default;
69
69
  var init_package = __esm(() => {
70
70
  package_default = {
71
71
  name: "opencode-swarm",
72
- version: "7.82.0",
72
+ version: "7.82.1",
73
73
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
74
74
  main: "dist/index.js",
75
75
  types: "dist/index.d.ts",
@@ -139305,21 +139305,32 @@ async function executeWithTimeout(command, args2, options) {
139305
139305
  let stderrTruncated = false;
139306
139306
  let settled = false;
139307
139307
  let timeout;
139308
+ let escalation;
139308
139309
  const settle = (result) => {
139309
139310
  if (settled)
139310
139311
  return;
139311
139312
  settled = true;
139312
139313
  if (timeout)
139313
139314
  clearTimeout(timeout);
139315
+ if (escalation)
139316
+ clearTimeout(escalation);
139314
139317
  const truncated = stdoutTruncated || stderrTruncated;
139315
139318
  if (child.exitCode === null && child.signalCode === null) {
139316
139319
  try {
139317
139320
  child.kill("SIGTERM");
139318
- } catch {}
139319
- const escalation = setTimeout(() => {
139321
+ } catch (e) {
139322
+ if (e instanceof Error && !e.message.includes("ESRCH")) {
139323
+ console.error("[semgrep] child.kill failed:", e.message);
139324
+ }
139325
+ }
139326
+ escalation = setTimeout(() => {
139320
139327
  try {
139321
139328
  child.kill("SIGKILL");
139322
- } catch {}
139329
+ } catch (e) {
139330
+ if (e instanceof Error && !e.message.includes("ESRCH")) {
139331
+ console.error("[semgrep] child.kill failed:", e.message);
139332
+ }
139333
+ }
139323
139334
  }, KILL_GRACE_MS);
139324
139335
  if (typeof escalation.unref === "function") {
139325
139336
  escalation.unref();
@@ -139347,9 +139358,18 @@ async function executeWithTimeout(command, args2, options) {
139347
139358
  stdout += Buffer.from(chunk, "utf8").subarray(0, remaining).toString("utf8");
139348
139359
  stdoutBytes = maxOutputBytes;
139349
139360
  stdoutTruncated = true;
139361
+ settle({
139362
+ stdout,
139363
+ stderr,
139364
+ exitCode: -1
139365
+ });
139350
139366
  try {
139351
139367
  child.kill("SIGTERM");
139352
- } catch {}
139368
+ } catch (e) {
139369
+ if (e instanceof Error && !e.message.includes("ESRCH")) {
139370
+ console.error("[semgrep] child.kill failed:", e.message);
139371
+ }
139372
+ }
139353
139373
  } else {
139354
139374
  stdout += chunk;
139355
139375
  stdoutBytes += chunkBytes;
@@ -139365,9 +139385,18 @@ async function executeWithTimeout(command, args2, options) {
139365
139385
  stderr += Buffer.from(chunk, "utf8").subarray(0, remaining).toString("utf8");
139366
139386
  stderrBytes = maxOutputBytes;
139367
139387
  stderrTruncated = true;
139388
+ settle({
139389
+ stdout,
139390
+ stderr,
139391
+ exitCode: -1
139392
+ });
139368
139393
  try {
139369
139394
  child.kill("SIGTERM");
139370
- } catch {}
139395
+ } catch (e) {
139396
+ if (e instanceof Error && !e.message.includes("ESRCH")) {
139397
+ console.error("[semgrep] child.kill failed:", e.message);
139398
+ }
139399
+ }
139371
139400
  } else {
139372
139401
  stderr += chunk;
139373
139402
  stderrBytes += chunkBytes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.82.0",
3
+ "version": "7.82.1",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",