@tangle-network/agent-app 0.63.58 → 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.
@@ -2088,7 +2088,8 @@
2088
2088
  /* Root agent neutral, then five agent hues. Each passes 3:1 against both surfaces as a mark. */
2089
2089
  --fw-h0: light-dark(#6c6f84, #a3a6bb);
2090
2090
  --fw-h1: light-dark(#4b55d6, #8f96ff);
2091
- --fw-h2: light-dark(#c3570f, #f2913f);
2091
+ /* No warm hue among the agents: amber is kept for the slowest and red for failure. */
2092
+ --fw-h2: light-dark(#3d8a52, #6fcb8a);
2092
2093
  --fw-h3: light-dark(#0b87a0, #35c2db);
2093
2094
  --fw-h4: light-dark(#b0418a, #dc72bb);
2094
2095
  --fw-h5: light-dark(#6d44c7, #ab8cf7);
@@ -2300,7 +2301,7 @@
2300
2301
  /* Muted agents (the default): one quiet tone for every agent bar, its steps and handoffs; the slowest agent alone takes amber, and
2301
2302
  failure keeps its red glyph, so color only ever means state. */
2302
2303
  .fw-root.fw-fill-muted .fw-view-agents [data-tone] { --tone: var(--fw-h0); }
2303
- .fw-root.fw-fill-muted .fw-view-agents .fw-row[data-slowest], .fw-root.fw-fill-muted .fw-view-agents .fw-row[data-slowest] [data-tone] { --tone: var(--fw-amber); }
2304
+ .fw-root:is(.fw-fill-muted, .fw-fill-agent) .fw-view-agents .fw-row[data-slowest], .fw-root:is(.fw-fill-muted, .fw-fill-agent) .fw-view-agents .fw-row[data-slowest] [data-tone] { --tone: var(--fw-amber); }
2304
2305
  .fw-root [data-outcome="ok"], .fw-root [data-outcome="ok"] [data-tone] { --tone: var(--fw-ok); }
2305
2306
  .fw-root [data-outcome="failed"], .fw-root [data-outcome="failed"] [data-tone] { --tone: var(--fw-failed); }
2306
2307
  .fw-root [data-outcome="warn"], .fw-root [data-outcome="warn"] [data-tone] { --tone: var(--fw-amber); }
@@ -2311,6 +2312,9 @@
2311
2312
  .fw-root .fw-legends .fw-legend { margin: 0; }
2312
2313
  .fw-root .fw-kinds { margin: 0; padding: 0; justify-content: flex-start; color: var(--fw-muted); }
2313
2314
  .fw-root .fw-kinds .fw-swatch-model { width: 12px; height: 8px; border-radius: 2px; background: var(--fw-kind-model); }
2315
+ /* With per-agent hues the key shows kind as shade, as the bars do: darker for a model call, lighter for a tool call. */
2316
+ .fw-root.fw-fill-agent .fw-kinds .fw-swatch-model { background: color-mix(in oklab, var(--fw-text) 58%, var(--fw-surface)); }
2317
+ .fw-root.fw-fill-agent .fw-kinds .fw-swatch-tool { background: color-mix(in oklab, var(--fw-text) 24%, var(--fw-surface)); }
2314
2318
  .fw-root .fw-kinds .fw-swatch-tool { width: 12px; height: 8px; border-radius: 2px; background: var(--fw-kind-tool); }
2315
2319
  .fw-root .fw-kinds .fw-swatch-wait { width: 12px; height: 8px; border-radius: 2px; background: color-mix(in oklab, var(--fw-text) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-text) 18%, transparent); }
2316
2320
  .fw-root .fw-kinds .fw-swatch-handoff { width: 10px; height: 8px; border-left: 1.5px solid var(--fw-muted); border-bottom: 1.5px solid var(--fw-muted); border-bottom-left-radius: 3px; }
@@ -2325,13 +2329,14 @@
2325
2329
  .fw-root .fw-view-agents .fw-seg { pointer-events: auto; }
2326
2330
  .fw-root .fw-seg-model { background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
2327
2331
  .fw-root .fw-seg-tool { background: var(--dim); box-shadow: inset 0 0 0 1px var(--dim-line); }
2328
- /* In the agent view a step's kind owns its color, strong on both themes; the agent's outcome stays on its lane tint, dot and end label. */
2329
- .fw-root .fw-view-agents .fw-seg-model { background: var(--fw-kind-model); box-shadow: none; }
2330
- .fw-root .fw-view-agents .fw-seg-tool { background: var(--fw-kind-tool); box-shadow: none; }
2332
+ /* Without per-agent hues (muted or outcome fill), a step's kind owns its color; with them, kind is the darker and lighter shade of the
2333
+ agent's own hue (the rules above), so each agent stays one color. */
2334
+ .fw-root:is(.fw-fill-muted, .fw-fill-outcome) .fw-view-agents .fw-seg-model { background: var(--fw-kind-model); box-shadow: none; }
2335
+ .fw-root:is(.fw-fill-muted, .fw-fill-outcome) .fw-view-agents .fw-seg-tool { background: var(--fw-kind-tool); box-shadow: none; }
2331
2336
  .fw-root .fw-view-agents .fw-seg-tool { container-type: inline-size; justify-content: flex-start; }
2332
- .fw-root .fw-seg-name { padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: clip; font-size: 11px; line-height: 16px; font-weight: 600; color: light-dark(#fff, #06222b); pointer-events: none; }
2337
+ .fw-root .fw-seg-name { padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; line-height: 16px; font-weight: 600; color: light-dark(#fff, #06222b); pointer-events: none; }
2333
2338
  @container (max-width: 56px) { .fw-root .fw-seg-name { display: none; } }
2334
- .fw-root .fw-view-agents .fw-seg-alt.fw-seg-model, .fw-root .fw-view-agents .fw-seg-alt.fw-seg-tool { filter: brightness(.88); }
2339
+ .fw-root:is(.fw-fill-muted, .fw-fill-outcome) .fw-view-agents :is(.fw-seg-alt.fw-seg-model, .fw-seg-alt.fw-seg-tool) { filter: brightness(.88); }
2335
2340
  .fw-root .fw-seg-failed { background: color-mix(in oklab, var(--fw-failed) 18%, var(--fw-surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--fw-failed) 70%, transparent); color: var(--fw-failed); }
2336
2341
  /* In the agent view a failed turn draws like any turn; the agent's own failure shows once, by its name and its end label. */
2337
2342
  .fw-root .fw-view-agents .fw-seg-failed { background: var(--dim); box-shadow: inset 0 0 0 1px var(--dim-line); }
@@ -110,7 +110,7 @@ export interface ChatMessagesProps {
110
110
  /** Open a full-transcript view (e.g. {@link RunDrillIn}) from a tool row's
111
111
  * actions slot. */
112
112
  onToolCallClick?: (call: ChatToolCallInfo, message: ChatUiMessage) => void;
113
- /** Per-tool custom detail renderers for the expanded tool row body. */
113
+ /** Per-tool custom renderers for the row's optional presentation and expanded body. */
114
114
  toolRenderers?: ToolDetailRenderers;
115
115
  /** Stream-error affordance: when the turn failed (a thrown transport error or
116
116
  * a loop-level `onErrorEvent`), pass the message here to render an error row.
@@ -153,6 +153,14 @@ export interface ProposalApprovalHandlers {
153
153
  onApprove: (proposalId: string, toolCallId: string) => void | Promise<void>;
154
154
  onReject: (proposalId: string, toolCallId: string) => void | Promise<void>;
155
155
  }
156
- /** Per-tool custom detail renderers for the expanded card body — keyed by
157
- * tool name. Return null to fall back to the generic detail view. */
158
- export type ToolDetailRenderers = Record<string, (call: ChatToolCallInfo, message: ChatUiMessage) => ReactNode>;
156
+ /** Optional product-owned presentation for an existing shared tool row.
157
+ * Missing title/description/detail fields retain the shared defaults. */
158
+ export interface ToolDetailPresentation {
159
+ title?: string;
160
+ description?: string;
161
+ detail?: ReactNode;
162
+ }
163
+ /** Per-tool custom renderers, keyed by tool name. A React node customizes only
164
+ * the expanded detail; a presentation can also customize the collapsed row.
165
+ * Return null to retain every shared default. */
166
+ export type ToolDetailRenderers = Record<string, (call: ChatToolCallInfo, message: ChatUiMessage) => ReactNode | ToolDetailPresentation>;
@@ -1,5 +1,8 @@
1
+ /** Tool result adaptation, approval cards, and expanded run-row details. */
2
+ import { type ReactNode } from 'react';
1
3
  import type { ToolPart } from '@tangle-network/ui/types';
2
- import type { ChatToolCallInfo, ChatUiMessage, ProposalApprovalHandlers, ToolDetailRenderers } from './chat-message-types';
4
+ import type { ChatToolCallInfo, ChatUiMessage, ProposalApprovalHandlers, ToolDetailPresentation, ToolDetailRenderers } from './chat-message-types';
5
+ export declare function resolveToolPresentation(rendered: ReactNode | ToolDetailPresentation): ToolDetailPresentation;
3
6
  /** Extract `{proposalId, status}` from a tool outcome when it is a proposal
4
7
  * awaiting human approval; null otherwise. */
5
8
  export declare function pendingApprovalOf(call: ChatToolCallInfo): {
@@ -78,7 +78,7 @@ export * from './chat-message-types';
78
78
  export * from './chat-message-metrics';
79
79
  export * from './run-drill-in';
80
80
  export * from './chat-empty-state';
81
- export { pendingApprovalOf, chatToolCallPart } from './chat-tool-call';
81
+ export { pendingApprovalOf, chatToolCallPart, resolveToolPresentation } from './chat-tool-call';
82
82
  export { ChatMessages, useThinkingSeconds } from './chat-messages';
83
83
  export * from './api-access-panel';
84
84
  export * from './agent-setup-block';
@@ -109,6 +109,7 @@ import {
109
109
  recordGridRowLabel,
110
110
  resolveChatInteraction,
111
111
  resolveProvenanceStanding,
112
+ resolveToolPresentation,
112
113
  responseErrorMessage,
113
114
  restoreChatInteractions,
114
115
  rollUpProvenanceStanding,
@@ -146,7 +147,7 @@ import {
146
147
  withoutRecordGridCreated,
147
148
  withoutRecordGridRemoved,
148
149
  withoutRecordGridUpdate
149
- } from "../chunk-H7CSSEP7.js";
150
+ } from "../chunk-LAZCUQFZ.js";
150
151
  import {
151
152
  useInfiniteScroll
152
153
  } from "../chunk-UHSUY6H6.js";
@@ -528,6 +529,7 @@ export {
528
529
  requestWorkspacePrewarm,
529
530
  resolveChatInteraction,
530
531
  resolveProvenanceStanding,
532
+ resolveToolPresentation,
531
533
  responseErrorMessage,
532
534
  restoreChatInteractions,
533
535
  rollUpProvenanceStanding,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-app",
3
- "version": "0.63.58",
3
+ "version": "0.63.59",
4
4
  "packageManager": "pnpm@11.28.8",
5
5
  "description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
6
6
  "keywords": [
@@ -806,7 +806,7 @@
806
806
  "@tangle-network/brand": "1.27.1",
807
807
  "@tangle-network/browser-agent-driver": "0.37.0",
808
808
  "@tangle-network/hub-sdk": "0.33.3",
809
- "@tangle-network/sandbox": "0.69.9",
809
+ "@tangle-network/sandbox": "0.69.10",
810
810
  "@tangle-network/sandbox-ui": "0.139.0",
811
811
  "@tangle-network/tcloud": "0.8.5",
812
812
  "@tangle-network/ui": "11.44.1",
@@ -1008,7 +1008,7 @@
1008
1008
  }
1009
1009
  },
1010
1010
  "dependencies": {
1011
- "@tangle-network/charts": "0.21.10",
1011
+ "@tangle-network/charts": "0.21.11",
1012
1012
  "proper-lockfile": "4.1.2"
1013
1013
  }
1014
1014
  }