@tangle-network/agent-app 0.43.42 → 0.43.43
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/assistant/index.js +1 -1
- package/dist/{chunk-ZLHK25C3.js → chunk-PEUBCJXF.js} +11 -6
- package/dist/chunk-PEUBCJXF.js.map +1 -0
- package/dist/{chunk-UMSOSUEU.js → chunk-QYOD3K56.js} +2 -2
- package/dist/chunk-QYOD3K56.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/object-store/index.d.ts +6 -4
- package/dist/object-store/index.js +1 -1
- package/dist/web-react/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-UMSOSUEU.js.map +0 -1
- package/dist/chunk-ZLHK25C3.js.map +0 -1
package/dist/assistant/index.js
CHANGED
|
@@ -2761,6 +2761,7 @@ function proposalPreview(call) {
|
|
|
2761
2761
|
}
|
|
2762
2762
|
function truncate(v, max = 240) {
|
|
2763
2763
|
const s = typeof v === "string" ? v : JSON.stringify(v);
|
|
2764
|
+
if (typeof s !== "string") return "";
|
|
2764
2765
|
return s.length > max ? `${s.slice(0, max)}\u2026` : s;
|
|
2765
2766
|
}
|
|
2766
2767
|
function KvRows({ data }) {
|
|
@@ -2787,16 +2788,20 @@ function ShellDetail({ call }) {
|
|
|
2787
2788
|
] });
|
|
2788
2789
|
}
|
|
2789
2790
|
function DefaultToolDetail({ call }) {
|
|
2790
|
-
const
|
|
2791
|
+
const result = call.result;
|
|
2792
|
+
const envelope = typeof result === "object" && result !== null ? result : null;
|
|
2791
2793
|
return /* @__PURE__ */ jsxs10("div", { className: "space-y-2", children: [
|
|
2792
2794
|
call.args && Object.keys(call.args).length > 0 && /* @__PURE__ */ jsxs10("div", { children: [
|
|
2793
2795
|
/* @__PURE__ */ jsx12("p", { className: "mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Called with" }),
|
|
2794
2796
|
/* @__PURE__ */ jsx12(KvRows, { data: call.args })
|
|
2795
2797
|
] }),
|
|
2796
|
-
|
|
2797
|
-
/* @__PURE__ */ jsx12("p", { className: "mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children:
|
|
2798
|
-
|
|
2799
|
-
] })
|
|
2798
|
+
envelope ? /* @__PURE__ */ jsxs10("div", { children: [
|
|
2799
|
+
/* @__PURE__ */ jsx12("p", { className: "mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: envelope.ok === false ? "Failed" : "Result" }),
|
|
2800
|
+
envelope.ok === false ? /* @__PURE__ */ jsx12("p", { className: "text-xs text-destructive", children: envelope.message ?? "Tool failed" }) : envelope.result && typeof envelope.result === "object" ? /* @__PURE__ */ jsx12(KvRows, { data: envelope.result }) : envelope.result != null ? /* @__PURE__ */ jsx12("p", { className: "font-mono text-[11px] text-muted-foreground", children: truncate(envelope.result) }) : null
|
|
2801
|
+
] }) : result != null ? /* @__PURE__ */ jsxs10("div", { children: [
|
|
2802
|
+
/* @__PURE__ */ jsx12("p", { className: "mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Result" }),
|
|
2803
|
+
/* @__PURE__ */ jsx12("p", { className: "font-mono text-[11px] text-muted-foreground", children: truncate(result) })
|
|
2804
|
+
] }) : null
|
|
2800
2805
|
] });
|
|
2801
2806
|
}
|
|
2802
2807
|
function ProposalCard({
|
|
@@ -3311,4 +3316,4 @@ export {
|
|
|
3311
3316
|
useThinkingSeconds,
|
|
3312
3317
|
ChatMessages
|
|
3313
3318
|
};
|
|
3314
|
-
//# sourceMappingURL=chunk-
|
|
3319
|
+
//# sourceMappingURL=chunk-PEUBCJXF.js.map
|