@kynver-app/openclaw-agent-os 0.1.36 → 0.1.37

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
@@ -2602,7 +2602,7 @@ var taskPriority = {
2602
2602
  };
2603
2603
  var priorityEscalationReason = {
2604
2604
  type: "string",
2605
- description: "Required for critical: quote Will or name the live incident. Not used for high (contention-only)."
2605
+ description: "Required for critical: quote the requesting user or name the live incident. Not used for high (contention-only)."
2606
2606
  };
2607
2607
  var taskExecutor = { type: "string", enum: taskExecutorValues };
2608
2608
  var taskEventType = { type: "string", enum: taskEventTypeValues };
@@ -2792,6 +2792,9 @@ function createTaskTools(config) {
2792
2792
  ];
2793
2793
  }
2794
2794
 
2795
+ // src/tools/harness.ts
2796
+ import { formatHarnessToolReadable, joinHarnessNotice } from "@kynver-app/runtime";
2797
+
2795
2798
  // src/harness-client.ts
2796
2799
  import { createRequire } from "node:module";
2797
2800
  import path2 from "node:path";
@@ -2915,11 +2918,21 @@ var VERBS = [
2915
2918
  function toolName(scope, action) {
2916
2919
  return `kynver_harness_${scope}_${action}`.replace(/-/g, "_");
2917
2920
  }
2918
- function toToolResponse(result) {
2919
- const text = [result.stdout, result.stderr].filter(Boolean).join("\n").trim() || JSON.stringify(result);
2921
+ function toToolResponse(scope, action, result) {
2922
+ const notice = formatHarnessToolReadable({
2923
+ scope,
2924
+ action,
2925
+ ok: result.ok,
2926
+ exitCode: result.exitCode,
2927
+ stdout: result.stdout,
2928
+ stderr: result.stderr,
2929
+ error: result.error,
2930
+ timedOut: result.timedOut
2931
+ });
2932
+ const text = joinHarnessNotice(notice);
2920
2933
  return {
2921
2934
  content: [{ type: "text", text }],
2922
- details: result,
2935
+ details: { ...result, readableNotice: notice },
2923
2936
  isError: !result.ok
2924
2937
  };
2925
2938
  }
@@ -2938,7 +2951,7 @@ function createHarnessTools(config) {
2938
2951
  execute: async (_toolCallId, params) => {
2939
2952
  const args = params.args && typeof params.args === "object" ? params.args : {};
2940
2953
  const result = await runHarnessCommand(config, [scope, action], args);
2941
- return toToolResponse(result);
2954
+ return toToolResponse(scope, action, result);
2942
2955
  }
2943
2956
  }));
2944
2957
  }