replicas-engine 0.1.26 → 0.1.27

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.
Files changed (2) hide show
  1. package/dist/src/index.js +8 -10
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -1178,11 +1178,10 @@ var CodexManager = class {
1178
1178
  });
1179
1179
  }
1180
1180
  } finally {
1181
- if (linearSessionId) {
1182
- const status = await getGitStatus(this.workingDirectory);
1183
- monolithService.sendEvent({ type: "agent_turn_complete", payload: { linearSessionId, status } }).catch(() => {
1184
- });
1185
- }
1181
+ const status = await getGitStatus(this.workingDirectory);
1182
+ const payload = linearSessionId ? { linearSessionId, status } : { status };
1183
+ monolithService.sendEvent({ type: "agent_turn_complete", payload }).catch(() => {
1184
+ });
1186
1185
  }
1187
1186
  }
1188
1187
  async getHistory() {
@@ -1651,11 +1650,10 @@ var ClaudeManager = class {
1651
1650
  });
1652
1651
  }
1653
1652
  } finally {
1654
- if (linearSessionId) {
1655
- const status = await getGitStatus(this.workingDirectory);
1656
- monolithService.sendEvent({ type: "agent_turn_complete", payload: { linearSessionId, status } }).catch(() => {
1657
- });
1658
- }
1653
+ const status = await getGitStatus(this.workingDirectory);
1654
+ const payload = linearSessionId ? { linearSessionId, status } : { status };
1655
+ monolithService.sendEvent({ type: "agent_turn_complete", payload }).catch(() => {
1656
+ });
1659
1657
  }
1660
1658
  }
1661
1659
  async getHistory() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",