@cyanautomation/kaseki-agent 1.25.0 → 1.25.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.
@@ -226,7 +226,7 @@ function main() {
226
226
  });
227
227
  // Handle stdin close event
228
228
  rl.on('close', () => {
229
- logDiagnostic(`filter-close: stdin_closed`);
229
+ logDiagnostic('filter-close: stdin_closed');
230
230
  logDiagnostic(`filter-close: lines_processed=${linesProcessed}`);
231
231
  logDiagnostic(`filter-close: lines_output=${linesOutput}`);
232
232
  logDiagnostic(`filter-close: errors_encountered=${errorsEncountered.length}`);
@@ -275,7 +275,7 @@ function main() {
275
275
  errorsEncountered.push(errMsg);
276
276
  }
277
277
  else {
278
- logDiagnostic(`filter-event: stdout_epipe`);
278
+ logDiagnostic('filter-event: stdout_epipe');
279
279
  }
280
280
  });
281
281
  }
@@ -329,7 +329,7 @@ function main() {
329
329
  // Clear fallback timeout once readline closes (normal path)
330
330
  const originalClose = rl.close.bind(rl);
331
331
  rl.close = function () {
332
- logDiagnostic(`filter-event: closing_readline`);
332
+ logDiagnostic('filter-event: closing_readline');
333
333
  clearTimeout(fallbackTimeout);
334
334
  return originalClose();
335
335
  };
package/kaseki-agent.sh CHANGED
@@ -2223,7 +2223,7 @@ log_validation_environment() {
2223
2223
  printf '[validation environment] NODE_PATH=%s\n' "${NODE_PATH:-<not set>}"
2224
2224
  printf '[validation environment] disk_space_available=%s\n' "$(df -h /results 2>/dev/null | tail -1 | awk '{print $4}' || echo '<df failed>')"
2225
2225
  printf '[validation environment] disk_space_used=%s\n' "$(du -sh /results 2>/dev/null | cut -f1 || echo '<du failed>')"
2226
- } | tee -a /results/validation.log /results/validation-env.log
2226
+ } | tee -a /results/validation.log "$VALIDATION_ENV_LOG"
2227
2227
  }
2228
2228
  log_validation_environment
2229
2229
 
@@ -2287,7 +2287,7 @@ else
2287
2287
  printf '[validation command] node_version=%s\n' "$(node --version 2>&1 || echo '<node not found>')"
2288
2288
  printf '[validation command] npm_version=%s\n' "$(npm --version 2>&1 || echo '<npm not found>')"
2289
2289
  printf '[validation command] disk_available=%s\n' "$(df -h /results 2>/dev/null | tail -1 | awk '{print $4}' || echo '<df failed>')"
2290
- } | tee -a /results/validation-env.log
2290
+ } | tee -a "$VALIDATION_ENV_LOG"
2291
2291
  # Use pipefail to catch errors in any stage of the pipe
2292
2292
  set -o pipefail
2293
2293
  {
@@ -2300,7 +2300,7 @@ else
2300
2300
  command_exit=$?
2301
2301
  printf 'exit_code=%s\n' "$command_exit"
2302
2302
  exit "$command_exit"
2303
- } 2>&1 | tee -a /results/validation.log /results/validation-raw.log | FILTER_DIAGNOSTICS_LOG="$FILTER_DIAGNOSTICS_LOG" validation-output-filter 2>>"$FILTER_STDERR_FILE"
2303
+ } 2>&1 | tee -a /results/validation.log "$VALIDATION_RAW_LOG" | FILTER_DIAGNOSTICS_LOG="$FILTER_DIAGNOSTICS_LOG" validation-output-filter 2>>"$FILTER_STDERR_FILE"
2304
2304
  pipe_statuses=("${PIPESTATUS[@]}")
2305
2305
  set +o pipefail
2306
2306
  # pipe_statuses[0] = bash command exit code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanautomation/kaseki-agent",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "Ephemeral coding-agent runner: orchestrates Pi CLI via Docker for automated code modifications with validation",
5
5
  "type": "module",
6
6
  "license": "MIT",