@fungi.computer/parakeet 0.11.14 → 0.11.15

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.
@@ -71,7 +71,9 @@ function CallRow({ call, tool, disclosureId, size, disclosure, onToggle, renderT
71
71
  onToggle(disclosureId, defaultOpen);
72
72
  }, open: open, size: size, summary: _jsxs(_Fragment, { children: [_jsx("span", { className: "text-base-content", children: running ? call.activeVerb : call.verb }), " ", _jsx("span", { className: "font-mono", children: call.label })] }), tone: call.status === "error" && call.recovered !== true
73
73
  ? "error"
74
- : "neutral", trailing: _jsxs(_Fragment, { children: [call.recovered === true ? _jsx("span", { children: "recovered" }) : null, call.exitCode === undefined ? null : (_jsxs(Badge, { size: "sm", tone: call.recovered === true ? "neutral" : "error", children: ["exit ", String(call.exitCode)] })), call.durationMs === undefined ? null : (_jsx("span", { children: formatToolDuration(call.durationMs) })), _jsx(Status, { motion: running ? "bounce" : "none", title: call.status === "unknown" ? "result unavailable" : call.status, tone: statusTone(call.status, call.recovered === true) })] }), children: _jsx(CallBody, { call: call, disclosure: disclosure, onToggle: onToggle, mediaClaimed: tool !== undefined && claimsToolMedia?.(tool) === true, tool: tool }) }), call.live === undefined ? null : (_jsx("pre", { className: monoBlock, "aria-label": "Live tool output", children: toolLiveLines(call, open).map((line, index) => (_jsx("span", { className: "block whitespace-pre", children: line || "\u00a0" }, String(index)))) })), call.status === "completed" && tool?.result !== undefined
74
+ : "neutral", trailing: _jsxs(_Fragment, { children: [call.recovered === true ? _jsx("span", { children: "recovered" }) : null, call.exitCode === undefined ? null : (_jsxs(Badge, { size: "sm", tone: call.status === "error" && call.recovered !== true
75
+ ? "error"
76
+ : "neutral", children: ["exit ", String(call.exitCode)] })), call.durationMs === undefined ? null : (_jsx("span", { children: formatToolDuration(call.durationMs) })), _jsx(Status, { motion: running ? "bounce" : "none", title: call.status === "unknown" ? "result unavailable" : call.status, tone: statusTone(call.status, call.recovered === true) })] }), children: _jsx(CallBody, { call: call, disclosure: disclosure, onToggle: onToggle, mediaClaimed: tool !== undefined && claimsToolMedia?.(tool) === true, tool: tool }) }), call.live === undefined ? null : (_jsx("pre", { className: monoBlock, "aria-label": "Live tool output", children: toolLiveLines(call, open).map((line, index) => (_jsx("span", { className: "block whitespace-pre", children: line || "\u00a0" }, String(index)))) })), call.status === "completed" && tool?.result !== undefined
75
77
  ? renderToolActions?.(tool)
76
78
  : null] }));
77
79
  }
package/dist/parakeet.js CHANGED
@@ -214,6 +214,9 @@ function ConversationTimeline({ disambiguateAuthors, clientActions, onOpen, focu
214
214
  ? "error"
215
215
  : undefined, ref: timeline.measureElement, style: {
216
216
  left: 0,
217
+ // The last row keeps room for the jump-to-bottom control
218
+ // (2rem plus its 1rem offset) so it can scroll clear of it.
219
+ paddingBottom: virtualItem.index === count - 1 ? 48 : undefined,
217
220
  position: "absolute",
218
221
  top: 0,
219
222
  transform: `translateY(${String(virtualItem.start)}px)`,
@@ -239,8 +242,8 @@ function ConversationTimeline({ disambiguateAuthors, clientActions, onOpen, focu
239
242
  }) })) : before.length > 0 ? (before) : hasMoreHistory || modelSetup?.state === "missing" ? null : ((empty ?? _jsx(ConversationStarters, {}))), modelSetup?.state === "missing" ? (_jsx("div", { className: `flex items-center justify-center p-6 ${count === 0 ? "h-full" : "min-h-64"}`, children: _jsx(SetupNotice, { need: "Connect a model to start", cause: "Agents answer with a model, and none is connected yet.", fix: modelSetup.fix, variant: "panel" }) })) : null] }), count > 0 ? (_jsx(ScrollToBottomBlob, { direction: "forward", unread: unread, focusAfterJump: focusAfterJump, onJump: jumpToBottom, scrollerRef: scrollerRef })) : null] }));
240
243
  }
241
244
  const stoppedMessages = {
242
- failed: "The run stopped. Your prompt is still here.",
243
- interrupted: "The worker stopped before this run finished. Your prompt is still here.",
245
+ failed: "The run stopped.",
246
+ interrupted: "The worker stopped before this run finished.",
244
247
  cancelled: "The run was cancelled. Send a new prompt when you’re ready.",
245
248
  };
246
249
  /**
@@ -264,13 +267,13 @@ function RunStopped({ failure, cause, lastItem, onRetry, }) {
264
267
  const publicCause = bounded !== undefined &&
265
268
  !bounded.startsWith("reason_unavailable:") &&
266
269
  !/\b(?:run|session)=/iu.test(bounded)
267
- ? bounded
270
+ ? bounded.replace(/[.\s]+$/u, "")
268
271
  : undefined;
269
272
  const message = publicCause === undefined || failure === "cancelled"
270
273
  ? stoppedMessages[failure]
271
274
  : failure === "interrupted"
272
- ? `This turn stopped before it finished: ${publicCause}. Your prompt is still here.`
273
- : `The run stopped: ${publicCause}. Your prompt is still here.`;
275
+ ? `This turn stopped before it finished: ${publicCause}.`
276
+ : `The run stopped: ${publicCause}.`;
274
277
  return (_jsx(FailureLine, { message: message, role: "alert", ...(failure === "cancelled"
275
278
  ? {}
276
279
  : { onRetry, retryAriaLabel: "Retry prompt" }) }));
package/dist/styles.css CHANGED
@@ -19569,7 +19569,8 @@
19569
19569
  }
19570
19570
  @container (max-width: 26rem) {
19571
19571
  .parakeet-composer-row .parakeet-composer-model-key {
19572
- max-width: 7rem;
19572
+ min-width: 0;
19573
+ max-width: none;
19573
19574
  }
19574
19575
  }
19575
19576
  :root {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/parakeet",
3
- "version": "0.11.14",
3
+ "version": "0.11.15",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "private": false,
6
6
  "description": "Standalone React composer for a typed Shiitake Session",
@@ -120,6 +120,7 @@
120
120
 
121
121
  @container (max-width: 26rem) {
122
122
  .parakeet-composer-row .parakeet-composer-model-key {
123
- max-width: 7rem;
123
+ min-width: 0;
124
+ max-width: none;
124
125
  }
125
126
  }