@agimon-ai/doompi-core 0.0.1-alpha.93 → 0.0.1-alpha.94

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.
@@ -102,7 +102,8 @@ async function promptForAssistantText(runtime, text) {
102
102
  }
103
103
  }
104
104
  function errorMessage(error) {
105
- return error instanceof Error ? error.message : typeof error === "string" ? error : "Direct harness operation failed";
105
+ if (!(error instanceof Error)) return typeof error === "string" ? error : "Direct harness operation failed";
106
+ return error.cause instanceof Error ? `${error.message}: ${errorMessage(error.cause)}` : error.message;
106
107
  }
107
108
  function modelReference(model, models) {
108
109
  if (model !== void 0 && "api" in model) return model;