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

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
  }
@@ -2963,6 +2976,11 @@ var commandCenterDashboardContractSchema = {
2963
2976
  limit: {
2964
2977
  type: "number",
2965
2978
  description: "Max tasks to load when building counts (server cap 10000)."
2979
+ },
2980
+ projection: {
2981
+ type: "string",
2982
+ enum: ["mcp", "slim"],
2983
+ description: "mcp (default) \u2014 agentReadable + resultContract + dashboard fields. slim \u2014 legacy dashboard DTO only."
2966
2984
  }
2967
2985
  },
2968
2986
  additionalProperties: false,
@@ -2987,6 +3005,11 @@ var commandCenterGetSchema = {
2987
3005
  harnessLimit: {
2988
3006
  type: "number",
2989
3007
  description: "Max harness runs in the rollup (server cap 200)."
3008
+ },
3009
+ projection: {
3010
+ type: "string",
3011
+ enum: ["compact", "full"],
3012
+ description: "Response shape. Default compact \u2014 agentReadable summary, countSnapshot, capped previews; omits graph/hierarchy."
2990
3013
  }
2991
3014
  },
2992
3015
  additionalProperties: false,
@@ -3122,7 +3145,7 @@ function createCommandCenterTools(config) {
3122
3145
  ),
3123
3146
  mk(
3124
3147
  "agent_os_command_center_dashboard_contract_get",
3125
- "Slim dashboard contract for runtime verification: countSnapshot, packageVersionHealth, runtime capacity, activePlanRollups \u2014 no graph/hierarchy.",
3148
+ "Slim dashboard contract for runtime verification: countSnapshot, packageVersionHealth, runtime capacity, activePlanRollups, blockerSlo \u2014 no graph/hierarchy.",
3126
3149
  commandCenterDashboardContractSchema
3127
3150
  ),
3128
3151
  mk(