@mestreyoda/fabrica 0.2.38 → 0.2.39

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 +25 -3
  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.38") {
113909
- return "0.2.38";
113908
+ if ("0.2.39") {
113909
+ return "0.2.39";
113910
113910
  }
113911
113911
  try {
113912
113912
  const pkgPath = path5.join(THIS_DIR, "..", "..", "package.json");
@@ -130510,6 +130510,10 @@ async function runIssueDoctor(opts) {
130510
130510
  const convergenceAction = issueRuntime?.lastConvergenceAction ?? null;
130511
130511
  const retryCount = issueRuntime?.lastConvergenceRetryCount ?? 0;
130512
130512
  const convergenceReason = issueRuntime?.lastConvergenceReason ?? issueRuntime?.inconclusiveCompletionReason ?? null;
130513
+ const convergenceHeadSha = issueRuntime?.lastConvergenceHeadSha ?? null;
130514
+ const currentHeadSha = issueRuntime?.currentPrHeadSha ?? issueRuntime?.lastHeadSha ?? prStatus?.sourceBranch ?? null;
130515
+ const headShaChangedSinceLastConvergence = convergenceHeadSha && currentHeadSha ? convergenceHeadSha !== currentHeadSha : null;
130516
+ const progressState = issueRuntime?.sessionCompletedAt ? "completed" : issueRuntime?.firstWorkerActivityAt ? "active" : issueRuntime?.agentAcceptedAt ? "accepted_idle" : "no_dispatch";
130513
130517
  const summaryParts = [
130514
130518
  hasArtifact ? "artifact_present" : "artifact_missing",
130515
130519
  convergenceCause ? `cause=${convergenceCause}` : "cause=none",
@@ -130531,12 +130535,22 @@ async function runIssueDoctor(opts) {
130531
130535
  issueId: opts.issueId,
130532
130536
  issueRuntime,
130533
130537
  hasArtifact,
130538
+ lifecycle: {
130539
+ dispatchCycleId: issueRuntime?.lastDispatchCycleId ?? null,
130540
+ dispatchRunId: issueRuntime?.dispatchRunId ?? null,
130541
+ agentAcceptedAt: issueRuntime?.agentAcceptedAt ?? null,
130542
+ firstWorkerActivityAt: issueRuntime?.firstWorkerActivityAt ?? null,
130543
+ sessionCompletedAt: issueRuntime?.sessionCompletedAt ?? null,
130544
+ progressState
130545
+ },
130534
130546
  convergence: {
130535
130547
  cause: convergenceCause,
130536
130548
  action: convergenceAction,
130537
130549
  retryCount,
130538
130550
  reason: convergenceReason,
130539
- at: issueRuntime?.lastConvergenceAt ?? null
130551
+ at: issueRuntime?.lastConvergenceAt ?? null,
130552
+ headSha: convergenceHeadSha,
130553
+ headShaChangedSinceLastConvergence
130540
130554
  },
130541
130555
  pr: prStatus ? {
130542
130556
  url: prStatus.url ?? null,
@@ -130565,9 +130579,17 @@ function formatIssueDoctor(result) {
130565
130579
  ` PR: ${result.pr?.url ?? "n/a"} (${result.pr?.state ?? "unknown"})`,
130566
130580
  ` Issue: ${result.issue?.url ?? "n/a"} (${result.issue?.state ?? "unknown"})`,
130567
130581
  ` Labels: ${result.issue?.labels?.join(", ") ?? "n/a"}`,
130582
+ ` Dispatch cycle: ${result.lifecycle.dispatchCycleId ?? "n/a"}`,
130583
+ ` Dispatch run: ${result.lifecycle.dispatchRunId ?? "n/a"}`,
130584
+ ` Progress state: ${result.lifecycle.progressState}`,
130585
+ ` Agent accepted: ${result.lifecycle.agentAcceptedAt ?? "n/a"}`,
130586
+ ` First worker activity: ${result.lifecycle.firstWorkerActivityAt ?? "n/a"}`,
130587
+ ` Session completed: ${result.lifecycle.sessionCompletedAt ?? "n/a"}`,
130568
130588
  ` Convergence cause: ${result.convergence.cause ?? "none"}`,
130569
130589
  ` Convergence action: ${result.convergence.action ?? "none"}`,
130570
130590
  ` Retry count: ${result.convergence.retryCount}`,
130591
+ ` Convergence head SHA: ${result.convergence.headSha ?? "n/a"}`,
130592
+ ` Head SHA changed since last convergence: ${result.convergence.headShaChangedSinceLastConvergence == null ? "unknown" : result.convergence.headShaChangedSinceLastConvergence ? "yes" : "no"}`,
130571
130593
  ` Last reason: ${result.convergence.reason ?? "n/a"}`,
130572
130594
  ` Suggested next action: ${result.recommendation.likelyNextAction}`
130573
130595
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestreyoda/fabrica",
3
- "version": "0.2.38",
3
+ "version": "0.2.39",
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",