@tangle-network/sandbox-ui 4.0.0 → 4.0.1

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/index.js CHANGED
@@ -15,7 +15,7 @@ import { n as FileBreadcrumb, t as CodeView } from "./code-view-BlhCS1SD.js";
15
15
  import { n as PreviewView, t as EmbeddedAppView } from "./embedded-app-view-DXsoPale.js";
16
16
  import { OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIArtifactRenderer, findUnsupportedOpenUINode, validateOpenUIJsonArtifact, validateOpenUIJsonNode } from "./openui.js";
17
17
  import { S as ReasoningLevelPicker, _ as modelProvider, a as ChatMessage, b as DEFAULT_REASONING_LEVEL_OPTIONS, c as SpeakerHeader, d as UserMessage, f as agentTimelineStepKind, g as ArtifactAgentDock, h as partitionBySpeaker, i as ChatContainer, l as TRANSCRIPT_TEXT, m as isViewerMessage, n as AgentTimelineColumn, o as MessageAuthor, p as foldSummary, r as AgentTimelineStep, s as MessageList, t as AgentTimeline, u as ThinkingIndicator, v as snapHarnessToModel, x as HARNESS_REASONING_OPTIONS, y as AgentProfilePicker } from "./chat-BrlLa4rg.js";
18
- import { a as useEventStream, i as useAgentStream, n as LatestEvents, o as TraceWaterfall, r as foldAgentRows, s as traceSpanMark, t as TraceWorkspace } from "./trace-workspace-B634-EcA.js";
18
+ import { a as useEventStream, i as useAgentStream, n as LatestEvents, o as TraceWaterfall, r as foldAgentRows, s as traceSpanMark, t as TraceWorkspace } from "./trace-workspace-BULdFHrf.js";
19
19
  import { S as model_exports, i as ToolStep, r as PromptMore, s as timelineItems, w as recordFlowTrace, y as indexRecord } from "./use-follow-tail-DZFn7QDO.js";
20
20
  import { n as Conversation, t as AgentTree } from "./AgentTree-D4d06rfH.js";
21
21
  import { t as withPrompts } from "./record-C-EUpK-n.js";
package/dist/run/live.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as WorkspaceFilesPane } from "../workspace-files-pane-D24G7H_Z.js";
2
2
  import { t as DiffView } from "../diff-view-B9mNeTLF.js";
3
3
  import { t as CodeView } from "../code-view-BlhCS1SD.js";
4
- import { a as useEventStream, t as TraceWorkspace } from "../trace-workspace-B634-EcA.js";
4
+ import { a as useEventStream, t as TraceWorkspace } from "../trace-workspace-BULdFHrf.js";
5
5
  import { useDocument } from "../hooks/use-document.js";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { useEffect, useMemo, useRef, useState } from "react";
package/dist/run.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as VirtualList } from "./VirtualList-DcSGbEtA.js";
2
- import { a as useEventStream, i as useAgentStream, n as LatestEvents, o as TraceWaterfall, r as foldAgentRows, s as traceSpanMark, t as TraceWorkspace } from "./trace-workspace-B634-EcA.js";
2
+ import { a as useEventStream, i as useAgentStream, n as LatestEvents, o as TraceWaterfall, r as foldAgentRows, s as traceSpanMark, t as TraceWorkspace } from "./trace-workspace-BULdFHrf.js";
3
3
  import { S as model_exports, i as ToolStep, r as PromptMore, s as timelineItems, w as recordFlowTrace, y as indexRecord } from "./use-follow-tail-DZFn7QDO.js";
4
4
  import { n as Conversation, t as AgentTree } from "./AgentTree-D4d06rfH.js";
5
5
  import { t as withPrompts } from "./record-C-EUpK-n.js";
@@ -305,9 +305,9 @@ function useAgentStream(url, openEventSource, history) {
305
305
  const { state, current, update, beginning, begin, reload, pageReader } = useAgentWindow(url, history);
306
306
  const streamUrl = useCallback(() => {
307
307
  const target = new URL(url, location.href);
308
- if (history && current.current.generation !== void 0) target.searchParams.set("generation", String(current.current.generation));
308
+ if (current.current.generation !== void 0) target.searchParams.set("generation", String(current.current.generation));
309
309
  return target.toString();
310
- }, [url, !!history]);
310
+ }, [url]);
311
311
  useEventStream(!url || history && (!state.ready || state.ended || state.reading || beginning || !history.alive) ? void 0 : streamUrl, {
312
312
  opener: openEventSource,
313
313
  after: () => current.current.lastSeq,
@@ -41358,7 +41358,7 @@ function SB(e, t) {
41358
41358
  r
41359
41359
  ]);
41360
41360
  }
41361
- // dist/trace-workspace-B634-EcA.js
41361
+ // dist/trace-workspace-BULdFHrf.js
41362
41362
  function CB(e) {
41363
41363
  if (e.kind === "pipeline" || e.kind === "model") {
41364
41364
  let t = e.detail ? SP(e.detail) : null;
@@ -41602,8 +41602,8 @@ function NB(e, t) {
41602
41602
  function PB(e, t, n) {
41603
41603
  let { state: r, current: i, update: a, beginning: o, begin: s, reload: c, pageReader: l } = NB(e, n), u = (0, V.useCallback)(() => {
41604
41604
  let t = new URL(e, location.href);
41605
- return n && i.current.generation !== void 0 && t.searchParams.set("generation", String(i.current.generation)), t.toString();
41606
- }, [e, !!n]);
41605
+ return i.current.generation !== void 0 && t.searchParams.set("generation", String(i.current.generation)), t.toString();
41606
+ }, [e]);
41607
41607
  SB(!e || n && (!r.ready || r.ended || r.reading || o || !n.alive) ? void 0 : u, {
41608
41608
  opener: t,
41609
41609
  after: () => i.current.lastSeq,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "license": "MIT",
5
5
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
6
6
  "repository": {