@theoremjs/react 0.3.4-next.632.g35631ef → 0.3.4-next.636.g3b66d8b

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/react",
3
- "version": "0.3.4-next.632.g35631ef",
3
+ "version": "0.3.4-next.636.g3b66d8b",
4
4
  "description": "React bindings for Theorem: headless hooks + transport, an Astryx chat UI, and a Web-standard server handler.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -60,8 +60,8 @@
60
60
  "@stylexjs/stylex": "0.19.0",
61
61
  "react": "^19.0.0",
62
62
  "react-dom": "^19.0.0",
63
- "@theoremjs/agents": "^0.3.4-next.632.g35631ef",
64
- "@theoremjs/web": "^0.3.4-next.632.g35631ef"
63
+ "@theoremjs/agents": "^0.3.4-next.636.g3b66d8b",
64
+ "@theoremjs/web": "^0.3.4-next.636.g3b66d8b"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@astryxdesign/core": {
@@ -424,7 +424,13 @@ function ToolCalls({ calls }) {
424
424
  /** A call's detail: what it ran with, then what came back. */
425
425
  function toolDetail(t, tool, result) {
426
426
  const input = tool.edited ? (_jsx(ShapedData, { value: tool.edited.to, title: t('@theorem.transcript.tool_input_edited') })) : (_jsx(ShapedData, { value: tool.arguments, title: t('@theorem.transcript.tool_input') }));
427
- return (_jsxs(VStack, { gap: 2, children: [_jsx(Text, { size: "sm", color: "secondary", children: tool.name }), input, result] }));
427
+ return (_jsxs(VStack, { gap: 2, children: [_jsx(Text, { size: "sm", color: "secondary", children: tool.name }), input, tool.steps?.length ? _jsx(ToolSteps, { steps: tool.steps }) : null, result] }));
428
+ }
429
+ /** The calls an agent tool's agent made, each a call row of its own. */
430
+ function ToolSteps({ steps }) {
431
+ const t = useLabels();
432
+ const showUsage = useContext(ShowUsage);
433
+ return (_jsxs(VStack, { gap: 2, children: [_jsx(Text, { type: "supporting", color: "secondary", children: t('@theorem.transcript.tool_steps') }), _jsx(ToolCalls, { calls: steps.map((step) => toolCallItem(t, step.operationId ?? step.callId, step, showUsage)) })] }));
428
434
  }
429
435
  /** How long a finished call ran, when both ends were seen. */
430
436
  function toolDuration(t, tool) {
package/ui/labels.d.ts CHANGED
@@ -233,6 +233,10 @@ export declare const THEOREM_UI_CATALOG: {
233
233
  readonly defaultMessage: "Input (edited)";
234
234
  readonly description: "A tool call's arguments after the user edited them on approval.";
235
235
  };
236
+ readonly '@theorem.transcript.tool_steps': {
237
+ readonly defaultMessage: "Calls";
238
+ readonly description: "The calls the agent an agent tool ran made, in its detail.";
239
+ };
236
240
  readonly '@theorem.transcript.tool_output': {
237
241
  readonly defaultMessage: "Output";
238
242
  readonly description: "A tool call's result, in its detail.";
package/ui/labels.js CHANGED
@@ -217,6 +217,10 @@ export const THEOREM_UI_CATALOG = {
217
217
  defaultMessage: 'Input (edited)',
218
218
  description: "A tool call's arguments after the user edited them on approval.",
219
219
  },
220
+ '@theorem.transcript.tool_steps': {
221
+ defaultMessage: 'Calls',
222
+ description: 'The calls the agent an agent tool ran made, in its detail.',
223
+ },
220
224
  '@theorem.transcript.tool_output': {
221
225
  defaultMessage: 'Output',
222
226
  description: "A tool call's result, in its detail.",