codeharness 0.22.1 → 0.22.2

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 +15 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1941,7 +1941,7 @@ async function scaffoldDocs(opts) {
1941
1941
  }
1942
1942
 
1943
1943
  // src/modules/infra/init-project.ts
1944
- var HARNESS_VERSION = true ? "0.22.1" : "0.0.0-dev";
1944
+ var HARNESS_VERSION = true ? "0.22.2" : "0.0.0-dev";
1945
1945
  function failResult(opts, error) {
1946
1946
  return {
1947
1947
  status: "fail",
@@ -2874,21 +2874,30 @@ function StoryBreakdown({ stories }) {
2874
2874
  groups[s.status].push(s.key);
2875
2875
  }
2876
2876
  const fmt = (keys, status) => keys.map((k) => `${k} ${STATUS_SYMBOLS[status]}`).join(" ");
2877
+ const shortKey = (key) => {
2878
+ const m = key.match(/^(\d+-\d+)/);
2879
+ return m ? m[1] : key;
2880
+ };
2881
+ const fmtShort = (keys, status) => keys.map((k) => `${shortKey(k)} ${STATUS_SYMBOLS[status]}`).join(" ");
2877
2882
  const parts = [];
2878
2883
  if (groups["done"]?.length) {
2879
- parts.push(`Done: ${fmt(groups["done"], "done")}`);
2884
+ parts.push(`Done: ${groups["done"].length} \u2713`);
2880
2885
  }
2881
2886
  if (groups["in-progress"]?.length) {
2882
2887
  parts.push(`This: ${fmt(groups["in-progress"], "in-progress")}`);
2883
2888
  }
2884
2889
  if (groups["pending"]?.length) {
2885
- parts.push(`Next: ${fmt(groups["pending"], "pending")}`);
2890
+ const shown = groups["pending"].slice(0, 3);
2891
+ const rest = groups["pending"].length - shown.length;
2892
+ let s = `Next: ${fmtShort(shown, "pending")}`;
2893
+ if (rest > 0) s += ` +${rest}`;
2894
+ parts.push(s);
2886
2895
  }
2887
2896
  if (groups["failed"]?.length) {
2888
- parts.push(`Failed: ${fmt(groups["failed"], "failed")}`);
2897
+ parts.push(`Failed: ${fmtShort(groups["failed"], "failed")}`);
2889
2898
  }
2890
2899
  if (groups["blocked"]?.length) {
2891
- parts.push(`Blocked: ${fmt(groups["blocked"], "blocked")}`);
2900
+ parts.push(`Blocked: ${fmtShort(groups["blocked"], "blocked")}`);
2892
2901
  }
2893
2902
  return /* @__PURE__ */ jsx(Text, { children: parts.join(" | ") });
2894
2903
  }
@@ -11799,7 +11808,7 @@ function registerAuditCommand(program) {
11799
11808
  }
11800
11809
 
11801
11810
  // src/index.ts
11802
- var VERSION = true ? "0.22.1" : "0.0.0-dev";
11811
+ var VERSION = true ? "0.22.2" : "0.0.0-dev";
11803
11812
  function createProgram() {
11804
11813
  const program = new Command();
11805
11814
  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.22.1",
3
+ "version": "0.22.2",
4
4
  "type": "module",
5
5
  "description": "CLI for codeharness — makes autonomous coding agents produce software that actually works",
6
6
  "bin": {