codeharness 0.35.5 → 0.35.6

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.
@@ -2895,7 +2895,7 @@ function generateDockerfileTemplate(projectDir, stackOrDetections) {
2895
2895
  }
2896
2896
 
2897
2897
  // src/modules/infra/init-project.ts
2898
- var HARNESS_VERSION = true ? "0.35.5" : "0.0.0-dev";
2898
+ var HARNESS_VERSION = true ? "0.35.6" : "0.0.0-dev";
2899
2899
  function failResult(opts, error) {
2900
2900
  return {
2901
2901
  status: "fail",
@@ -16,7 +16,7 @@ import {
16
16
  stopCollectorOnly,
17
17
  stopSharedStack,
18
18
  stopStack
19
- } from "./chunk-VMNLIAOU.js";
19
+ } from "./chunk-A6L3F4PG.js";
20
20
  export {
21
21
  checkRemoteEndpoint,
22
22
  cleanupOrphanedContainers,
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  validateDockerfile,
41
41
  warn,
42
42
  writeState
43
- } from "./chunk-VMNLIAOU.js";
43
+ } from "./chunk-A6L3F4PG.js";
44
44
 
45
45
  // src/index.ts
46
46
  import { Command } from "commander";
@@ -6041,14 +6041,16 @@ function startRenderer(options) {
6041
6041
  const ctx = [];
6042
6042
  const currentStory = currentKey ?? "";
6043
6043
  const currentTask = state.currentTaskName ?? "";
6044
- const epicMatch = currentStory.match(/^Epic (\d+)/);
6044
+ const epicMatch = currentStory.match(/Epic (\d+)/);
6045
6045
  if (epicMatch) {
6046
6046
  const epicPrefix2 = `${epicMatch[1]}-`;
6047
6047
  const epicStories = updatedStories.filter((s) => s.key.startsWith(epicPrefix2));
6048
- const lastDone = [...epicStories].reverse().find((s) => s.status === "done" || s.status === "in-progress");
6048
+ const lastDone = [...epicStories].reverse().find((s) => s.status === "done");
6049
+ const firstIp = epicStories.find((s) => s.status === "in-progress");
6050
+ const firstPending = epicStories.find((s) => s.status === "pending");
6049
6051
  if (lastDone) ctx.push({ key: lastDone.key, role: "prev" });
6050
- const ipStory = epicStories.find((s) => s.status === "in-progress");
6051
- if (ipStory) ctx.push({ key: `${epicStories.length} stories in epic`, role: "current" });
6052
+ if (firstIp) ctx.push({ key: firstIp.key, role: "current" });
6053
+ else if (firstPending) ctx.push({ key: firstPending.key, role: "next" });
6052
6054
  } else {
6053
6055
  let foundCurrent = false;
6054
6056
  let prevKey = null;
@@ -11222,7 +11224,7 @@ function registerTeardownCommand(program) {
11222
11224
  } else if (otlpMode === "remote-routed") {
11223
11225
  if (!options.keepDocker) {
11224
11226
  try {
11225
- const { stopCollectorOnly: stopCollectorOnly2 } = await import("./docker-RJSBPNHU.js");
11227
+ const { stopCollectorOnly: stopCollectorOnly2 } = await import("./docker-LXF5I54P.js");
11226
11228
  stopCollectorOnly2();
11227
11229
  result.docker.stopped = true;
11228
11230
  if (!isJson) {
@@ -11254,7 +11256,7 @@ function registerTeardownCommand(program) {
11254
11256
  info("Shared stack: kept running (other projects may use it)");
11255
11257
  }
11256
11258
  } else if (isLegacyStack) {
11257
- const { isStackRunning: isStackRunning2, stopStack } = await import("./docker-RJSBPNHU.js");
11259
+ const { isStackRunning: isStackRunning2, stopStack } = await import("./docker-LXF5I54P.js");
11258
11260
  let stackRunning = false;
11259
11261
  try {
11260
11262
  stackRunning = isStackRunning2(composeFile);
@@ -14241,7 +14243,7 @@ function registerDriversCommand(program) {
14241
14243
  }
14242
14244
 
14243
14245
  // src/index.ts
14244
- var VERSION = true ? "0.35.5" : "0.0.0-dev";
14246
+ var VERSION = true ? "0.35.6" : "0.0.0-dev";
14245
14247
  function createProgram() {
14246
14248
  const program = new Command();
14247
14249
  program.name("codeharness").description("Makes autonomous coding agents produce software that actually works").version(VERSION).option("--json", "Output in machine-readable JSON format");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeharness",
3
- "version": "0.35.5",
3
+ "version": "0.35.6",
4
4
  "type": "module",
5
5
  "description": "CLI for codeharness — makes autonomous coding agents produce software that actually works",
6
6
  "bin": {