@tangle-network/agent-app 0.63.57 → 0.63.59
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/agent-profiles/d1.js +3 -3
- package/dist/agent-profiles/index.js +3 -3
- package/dist/assistant/index.js +7 -4
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-routes/index.js +4 -4
- package/dist/{chunk-RLMLHEEQ.js → chunk-5C3RXQQ7.js} +2 -2
- package/dist/{chunk-RDIHNSVZ.js → chunk-6XSQCP6W.js} +2 -2
- package/dist/{chunk-5I5ZB2EZ.js → chunk-DCGATWZ5.js} +5 -5
- package/dist/chunk-DCGATWZ5.js.map +1 -0
- package/dist/{chunk-H7CSSEP7.js → chunk-LAZCUQFZ.js} +14 -6
- package/dist/{chunk-H7CSSEP7.js.map → chunk-LAZCUQFZ.js.map} +1 -1
- package/dist/{chunk-YE7S5UAE.js → chunk-PIGW5LRM.js} +3 -3
- package/dist/{chunk-7TBF3DC2.js → chunk-SRA7VAVK.js} +2 -2
- package/dist/platform/delegated-keys.d.ts +5 -5
- package/dist/platform/index.js +10 -11
- package/dist/platform/index.js.map +1 -1
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/public-consultation/index.js +4 -4
- package/dist/sandbox/index.js +4 -4
- package/dist/theme/tokens.css +141 -36
- package/dist/tools/index.js +4 -4
- package/dist/web-react/chat-message-types.d.ts +12 -4
- package/dist/web-react/chat-tool-call.d.ts +4 -1
- package/dist/web-react/index.d.ts +1 -1
- package/dist/web-react/index.js +3 -1
- package/dist/work-product/index.js +2 -2
- package/package.json +15 -15
- package/dist/chunk-5I5ZB2EZ.js.map +0 -1
- /package/dist/{chunk-RLMLHEEQ.js.map → chunk-5C3RXQQ7.js.map} +0 -0
- /package/dist/{chunk-RDIHNSVZ.js.map → chunk-6XSQCP6W.js.map} +0 -0
- /package/dist/{chunk-YE7S5UAE.js.map → chunk-PIGW5LRM.js.map} +0 -0
- /package/dist/{chunk-7TBF3DC2.js.map → chunk-SRA7VAVK.js.map} +0 -0
|
@@ -7298,6 +7298,13 @@ import { useState as useState25 } from "react";
|
|
|
7298
7298
|
import { TerminalDisplay, TerminalLine } from "@tangle-network/ui/primitives";
|
|
7299
7299
|
import { InlineToolItem } from "@tangle-network/ui/run";
|
|
7300
7300
|
import { Fragment as Fragment9, jsx as jsx26, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
7301
|
+
function resolveToolPresentation(rendered) {
|
|
7302
|
+
if (typeof rendered === "object" && rendered !== null) {
|
|
7303
|
+
const presentation = rendered;
|
|
7304
|
+
if ("title" in presentation || "description" in presentation || "detail" in presentation) return presentation;
|
|
7305
|
+
}
|
|
7306
|
+
return { detail: rendered };
|
|
7307
|
+
}
|
|
7301
7308
|
function pendingApprovalOf(call) {
|
|
7302
7309
|
const outcome = call.result;
|
|
7303
7310
|
if (!outcome?.ok || outcome.result?.status !== "queued_for_approval" || !outcome.result.proposalId) return null;
|
|
@@ -7453,7 +7460,7 @@ function ProposalCard({
|
|
|
7453
7460
|
}) {
|
|
7454
7461
|
const [expanded, setExpanded] = useState25(false);
|
|
7455
7462
|
const { summary, meta, typeSlug } = proposalPreview(call);
|
|
7456
|
-
const custom = renderers?.[call.name]?.(call, message);
|
|
7463
|
+
const custom = resolveToolPresentation(renderers?.[call.name]?.(call, message)).detail;
|
|
7457
7464
|
const { pending: deciding, run: decide } = usePending();
|
|
7458
7465
|
return /* @__PURE__ */ jsxs25("div", { className: "w-full max-w-full rounded-xl border border-warning/50 bg-warning/[0.06] text-sm shadow-sm ring-1 ring-warning/10", children: [
|
|
7459
7466
|
/* @__PURE__ */ jsxs25("div", { className: "flex items-start gap-2.5 px-4 pt-3.5", children: [
|
|
@@ -7566,15 +7573,15 @@ function ToolCallCard({
|
|
|
7566
7573
|
if (kind === "followup") {
|
|
7567
7574
|
return arrive(/* @__PURE__ */ jsx26(FollowupCard, { call }));
|
|
7568
7575
|
}
|
|
7569
|
-
const custom = renderers?.[call.name]?.(call, message);
|
|
7576
|
+
const custom = resolveToolPresentation(renderers?.[call.name]?.(call, message));
|
|
7570
7577
|
return arrive(
|
|
7571
7578
|
/* @__PURE__ */ jsx26(
|
|
7572
7579
|
InlineToolItem,
|
|
7573
7580
|
{
|
|
7574
7581
|
part: chatToolCallPart(call),
|
|
7575
|
-
title: toolRowTitle(call),
|
|
7576
|
-
description: toolRowDescription(call),
|
|
7577
|
-
renderToolDetail: () => custom ?? (call.name === "sandbox_run_command" ? /* @__PURE__ */ jsx26(ShellDetail, { call }) : /* @__PURE__ */ jsx26(DefaultToolDetail, { call })),
|
|
7582
|
+
title: custom.title ?? toolRowTitle(call),
|
|
7583
|
+
description: custom.description ?? toolRowDescription(call),
|
|
7584
|
+
renderToolDetail: () => custom.detail ?? (call.name === "sandbox_run_command" ? /* @__PURE__ */ jsx26(ShellDetail, { call }) : /* @__PURE__ */ jsx26(DefaultToolDetail, { call })),
|
|
7578
7585
|
actions: onOpenRun && call.name.startsWith("sandbox_") ? /* @__PURE__ */ jsx26(
|
|
7579
7586
|
"button",
|
|
7580
7587
|
{
|
|
@@ -8566,6 +8573,7 @@ export {
|
|
|
8566
8573
|
formatTokensPerSecond,
|
|
8567
8574
|
RunDrillIn,
|
|
8568
8575
|
ChatEmptyState,
|
|
8576
|
+
resolveToolPresentation,
|
|
8569
8577
|
pendingApprovalOf,
|
|
8570
8578
|
chatToolCallPart,
|
|
8571
8579
|
useThinkingSeconds,
|
|
@@ -8575,4 +8583,4 @@ export {
|
|
|
8575
8583
|
AgentProfileChoices,
|
|
8576
8584
|
ComposerProfilePill
|
|
8577
8585
|
};
|
|
8578
|
-
//# sourceMappingURL=chunk-
|
|
8586
|
+
//# sourceMappingURL=chunk-LAZCUQFZ.js.map
|