codeharness 0.21.0 → 0.21.1

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.
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.21.0" : "0.0.0-dev";
1944
+ var HARNESS_VERSION = true ? "0.21.1" : "0.0.0-dev";
1945
1945
  function failResult(opts, error) {
1946
1946
  return {
1947
1947
  status: "fail",
@@ -10694,7 +10694,7 @@ function registerProgressCommand(program) {
10694
10694
  }
10695
10695
 
10696
10696
  // src/index.ts
10697
- var VERSION = true ? "0.21.0" : "0.0.0-dev";
10697
+ var VERSION = true ? "0.21.1" : "0.0.0-dev";
10698
10698
  function createProgram() {
10699
10699
  const program = new Command();
10700
10700
  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.21.0",
3
+ "version": "0.21.1",
4
4
  "type": "module",
5
5
  "description": "CLI for codeharness — makes autonomous coding agents produce software that actually works",
6
6
  "bin": {
package/ralph/bridge.sh CHANGED
@@ -99,9 +99,9 @@ fi
99
99
 
100
100
  # ─── Sprint Status Parsing ────────────────────────────────────────────────
101
101
 
102
- # Parse sprint status YAML into an associative array
102
+ # Parse sprint status YAML into a newline-delimited key=value store
103
103
  # Maps story slug (e.g., "1-1-login-page") to status
104
- declare -A SPRINT_STATUSES
104
+ SPRINT_STATUSES=""
105
105
 
106
106
  parse_sprint_status() {
107
107
  local file="$1"
@@ -133,7 +133,8 @@ parse_sprint_status() {
133
133
  # Extract story number from slug: "1-1-login-page" -> "1.1"
134
134
  if [[ "$key" =~ ^([0-9]+)-([0-9]+) ]]; then
135
135
  local story_id="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}"
136
- SPRINT_STATUSES["$story_id"]="$value"
136
+ SPRINT_STATUSES="${SPRINT_STATUSES}${story_id}=${value}
137
+ "
137
138
  fi
138
139
  fi
139
140
  fi
@@ -181,8 +182,10 @@ parse_epics() {
181
182
 
182
183
  # Determine status from sprint status or default to pending
183
184
  local status="pending"
184
- if [[ -n "${SPRINT_STATUSES[$current_story_id]:-}" ]]; then
185
- status=$(map_status "${SPRINT_STATUSES[$current_story_id]}")
185
+ local _sprint_val
186
+ _sprint_val=$(echo "$SPRINT_STATUSES" | grep "^${current_story_id}=" | head -1 | cut -d= -f2-)
187
+ if [[ -n "$_sprint_val" ]]; then
188
+ status=$(map_status "$_sprint_val")
186
189
  fi
187
190
 
188
191
  # Clean up description
@@ -27,7 +27,7 @@ NC='\033[0m'
27
27
 
28
28
  init_circuit_breaker() {
29
29
  if [[ -f "$CB_STATE_FILE" ]]; then
30
- if ! jq '.' "$CB_STATE_FILE" > /dev/null 2>&1; then
30
+ if ! jq -e type "$CB_STATE_FILE" > /dev/null 2>&1; then
31
31
  rm -f "$CB_STATE_FILE"
32
32
  fi
33
33
  fi