replicas-engine 0.1.1670 → 0.1.1672

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.
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  publishedPullRequestUrls
6
- } from "./chunk-36ULVTKF.js";
6
+ } from "./chunk-XSG2LJUV.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-SC2LXVT5.js";
12
+ } from "./chunk-Q7J6PWZY.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/services/post-tool-pr-notifier.ts
@@ -11,7 +11,7 @@ import {
11
11
  spawnSubagentRequestSchema,
12
12
  subagentResponseSchema,
13
13
  waitSubagentRequestSchema
14
- } from "./chunk-SC2LXVT5.js";
14
+ } from "./chunk-Q7J6PWZY.js";
15
15
  import "./chunk-VEQXQN22.js";
16
16
 
17
17
  // src/subagent-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.1670",
3
+ "version": "0.1.1672",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
package/scripts/opencode CHANGED
@@ -11,7 +11,11 @@ const child = spawn(cliPath, process.argv.slice(2), {
11
11
  const signals = ['SIGINT', 'SIGTERM', 'SIGHUP'];
12
12
 
13
13
  for (const signal of signals) {
14
- process.on(signal, () => child.kill(signal));
14
+ process.on(signal, () => {
15
+ child.kill(signal);
16
+ // A hung server never handles the signal and would outlive the chat that stopped it.
17
+ setTimeout(() => child.kill('SIGKILL'), 5_000).unref();
18
+ });
15
19
  }
16
20
 
17
21
  child.stdout.on('data', (chunk) => {