@meridianlabs/log-viewer 0.3.236 → 0.3.237

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/lib/index.js CHANGED
@@ -118139,6 +118139,15 @@ var ModelEventView = ({ eventNode, showToolCalls, className, context, eventCallb
118139
118139
  });
118140
118140
  const entries = { ...event.config };
118141
118141
  delete entries["max_connections"];
118142
+ const firstChoice = event.output?.choices?.[0];
118143
+ const stopDetails = firstChoice?.stop_details;
118144
+ const showStopReason = !!firstChoice && (!!stopDetails || firstChoice.stop_reason !== "stop");
118145
+ const stopEntries = {};
118146
+ if (showStopReason) {
118147
+ stopEntries["stop reason"] = firstChoice.stop_reason;
118148
+ if (stopDetails?.category) stopEntries["category"] = stopDetails.category;
118149
+ if (stopDetails?.explanation) stopEntries["explanation"] = stopDetails.explanation;
118150
+ }
118142
118151
  const userMessages = useMemo(() => {
118143
118152
  const result = [];
118144
118153
  if (!!!event.agentResultsFiltered) {
@@ -118235,21 +118244,32 @@ var ModelEventView = ({ eventNode, showToolCalls, className, context, eventCallb
118235
118244
  className: ModelEventView_module_default.container,
118236
118245
  children: [/* @__PURE__ */ jsxs("div", {
118237
118246
  className: ModelEventView_module_default.all,
118238
- children: [event.output.usage ? /* @__PURE__ */ jsx(ModelUsagePanel, {
118239
- usage: event.output.usage,
118240
- timing: {
118241
- timestamp: event.timestamp,
118242
- completed: event.completed,
118243
- working_time: event.working_time
118244
- }
118245
- }) : void 0, Object.keys(entries).length > 0 && /* @__PURE__ */ jsx(EventSection, {
118246
- title: "Configuration",
118247
- className: clsx(ModelEventView_module_default.tableSelection, ModelEventView_module_default.config),
118248
- children: /* @__PURE__ */ jsx(MetaDataGrid, {
118249
- entries,
118250
- options: { plain: true }
118247
+ children: [
118248
+ event.output.usage ? /* @__PURE__ */ jsx(ModelUsagePanel, {
118249
+ usage: event.output.usage,
118250
+ timing: {
118251
+ timestamp: event.timestamp,
118252
+ completed: event.completed,
118253
+ working_time: event.working_time
118254
+ }
118255
+ }) : void 0,
118256
+ Object.keys(stopEntries).length > 0 && /* @__PURE__ */ jsx(EventSection, {
118257
+ title: "Stop Reason",
118258
+ className: clsx(ModelEventView_module_default.tableSelection, ModelEventView_module_default.config),
118259
+ children: /* @__PURE__ */ jsx(MetaDataGrid, {
118260
+ entries: stopEntries,
118261
+ options: { plain: true }
118262
+ })
118263
+ }),
118264
+ Object.keys(entries).length > 0 && /* @__PURE__ */ jsx(EventSection, {
118265
+ title: "Configuration",
118266
+ className: clsx(ModelEventView_module_default.tableSelection, ModelEventView_module_default.config),
118267
+ children: /* @__PURE__ */ jsx(MetaDataGrid, {
118268
+ entries,
118269
+ options: { plain: true }
118270
+ })
118251
118271
  })
118252
- })]
118272
+ ]
118253
118273
  }), /* @__PURE__ */ jsx(EventSection, {
118254
118274
  title: "Messages",
118255
118275
  children: /* @__PURE__ */ jsx(ChatView, {