@mestreyoda/fabrica 0.2.25 → 0.2.26

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/index.js +23 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -113905,8 +113905,8 @@ import fsSync from "node:fs";
113905
113905
  import path5 from "node:path";
113906
113906
  import { fileURLToPath as fileURLToPath3 } from "node:url";
113907
113907
  function getCurrentVersion() {
113908
- if ("0.2.25") {
113909
- return "0.2.25";
113908
+ if ("0.2.26") {
113909
+ return "0.2.26";
113910
113910
  }
113911
113911
  try {
113912
113912
  const pkgPath = path5.join(THIS_DIR, "..", "..", "package.json");
@@ -150220,6 +150220,27 @@ function registerSubagentLifecycleHook(api, ctx) {
150220
150220
  });
150221
150221
  return;
150222
150222
  }
150223
+ const workerOutcome = await handleWorkerAgentEnd({
150224
+ sessionKey,
150225
+ runId: event.runId,
150226
+ workspaceDir,
150227
+ runCommand: ctx.runCommand,
150228
+ runtime: ctx.runtime,
150229
+ pluginConfig: ctx.pluginConfig
150230
+ }).catch(() => null);
150231
+ if (workerOutcome?.applied) {
150232
+ wakeHeartbeat("subagent_ended").catch(() => {
150233
+ });
150234
+ return;
150235
+ }
150236
+ const refreshedProjects = await readProjects(workspaceDir);
150237
+ const refreshedProject = refreshedProjects.projects[projectSlug];
150238
+ const refreshedIssueRuntime = issueId ? refreshedProject?.issueRuntime?.[String(issueId)] : void 0;
150239
+ if (refreshedIssueRuntime?.sessionCompletedAt) {
150240
+ wakeHeartbeat("subagent_ended").catch(() => {
150241
+ });
150242
+ return;
150243
+ }
150223
150244
  }
150224
150245
  if (foundSlot.active) {
150225
150246
  await deactivateWorker(workspaceDir, projectSlug, role, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestreyoda/fabrica",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "description": "Autonomous software engineering pipeline for OpenClaw. Turns ideas into deployed code via intake, dispatch, review, test, and merge.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",