@tangle-network/sandbox-ui 2.0.19 → 2.0.21

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/workspace.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { i as WorkspacePaneHeader, n as SHELL_INSET_GUTTER, r as ShellHeader, t as SHELL_HEADER_HEIGHT } from "./shell-header-CwqDzC4I.js";
2
- import { S as WorkspaceSurfaceTitle, _ as StatusBanner, a as SandboxWorkbench, b as WorkspaceSurface, c as shellShouldRevalidate, d as dispatchSessionCreated, f as useOptimisticSessionItems, g as StatusBar, h as TerminalPanel, i as TaskBoard, l as SessionSidebar, m as RuntimePane, n as ApprovalQueue, o as WorkspaceArtifactView, p as formatRelativeAge, r as CalendarView, s as createShellShouldRevalidate, t as ArtifactPane, u as SESSION_CREATED_EVENT, v as DirectoryPane, x as WorkspaceSurfaceFrame, y as WorkspaceLayout } from "./workspace-CzikYt_y.js";
3
- import { t as WorkspaceFilesPane } from "./workspace-files-pane-DB9Nvwh4.js";
2
+ import { S as WorkspaceSurfaceTitle, _ as StatusBanner, a as SandboxWorkbench, b as WorkspaceSurface, c as shellShouldRevalidate, d as dispatchSessionCreated, f as useOptimisticSessionItems, g as StatusBar, h as TerminalPanel, i as TaskBoard, l as SessionSidebar, m as RuntimePane, n as ApprovalQueue, o as WorkspaceArtifactView, p as formatRelativeAge, r as CalendarView, s as createShellShouldRevalidate, t as ArtifactPane, u as SESSION_CREATED_EVENT, v as DirectoryPane, x as WorkspaceSurfaceFrame, y as WorkspaceLayout } from "./workspace--GvnZNpH.js";
3
+ import { t as WorkspaceFilesPane } from "./workspace-files-pane-C0PeY6rY.js";
4
4
  export { ApprovalQueue, ArtifactPane, CalendarView, DirectoryPane, RuntimePane, SESSION_CREATED_EVENT, SHELL_HEADER_HEIGHT, SHELL_INSET_GUTTER, SandboxWorkbench, SessionSidebar, ShellHeader, StatusBanner, StatusBar, TaskBoard, TerminalPanel, WorkspaceArtifactView, WorkspaceFilesPane, WorkspaceLayout, WorkspacePaneHeader, WorkspaceSurface, WorkspaceSurfaceFrame, WorkspaceSurfaceTitle, createShellShouldRevalidate, dispatchSessionCreated, formatRelativeAge, shellShouldRevalidate, useOptimisticSessionItems };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
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": {
@@ -150,9 +150,9 @@
150
150
  "@hocuspocus/provider": ">=2.15.0 <5.0.0",
151
151
  "@nanostores/react": ">=0.8.4 <2.0.0",
152
152
  "@tangle-network/agent-interface": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^5.2.0",
153
- "@tangle-network/brand": "^1.31.1",
153
+ "@tangle-network/brand": "^1.31.2",
154
154
  "@tangle-network/charts": "^2.0.17",
155
- "@tangle-network/ui": "^11.51.1",
155
+ "@tangle-network/ui": "^11.51.3",
156
156
  "@tanstack/react-query": "^5.0.0",
157
157
  "@tiptap/core": ">=3.20.4 <4.0.0",
158
158
  "@tiptap/extension-collaboration": ">=3.20.4 <4.0.0",
@@ -229,7 +229,7 @@
229
229
  "@radix-ui/react-dialog": "^1.3.1",
230
230
  "@radix-ui/react-dropdown-menu": "^2.2.1",
231
231
  "@radix-ui/react-select": "^2.4.1",
232
- "@tangle-network/ui": "^11.51.1",
232
+ "@tangle-network/ui": "^11.51.3",
233
233
  "diff": "^9.0.0",
234
234
  "eventsource-parser": "4.1.2",
235
235
  "lucide-react": "^1.61.0",
@@ -249,7 +249,7 @@
249
249
  "@storybook/react-vite": "^10.6.3",
250
250
  "@tailwindcss/postcss": "^4.3.3",
251
251
  "@tangle-network/agent-interface": "5.10.2",
252
- "@tangle-network/brand": "^1.31.1",
252
+ "@tangle-network/brand": "^1.31.2",
253
253
  "@tangle-network/charts": "2.0.17",
254
254
  "@tanstack/react-query": "^5.104.5",
255
255
  "@testing-library/dom": "^10.4.2",
@@ -292,7 +292,7 @@
292
292
  "typecheck": "tsc --noEmit",
293
293
  "storybook": "storybook dev -p 6006",
294
294
  "build-storybook": "storybook build",
295
- "test:visual": "pnpm build-storybook --quiet && playwright test --grep-invert '17 agents stream' && playwright test tests/visual/run-ui.spec.mjs --grep '17 agents stream' --workers=1 --retries=0",
295
+ "test:visual": "pnpm build-storybook --quiet && playwright test --grep-invert '17 agents stream' && playwright test tests/visual/run-ui.spec.mjs --grep '17 agents stream' --workers=1 --retries=0 --output=test-results-stream",
296
296
  "signoff": "pnpm typecheck && pnpm build && pnpm test && pnpm test:package && pnpm test:bridge && pnpm test:visual",
297
297
  "test": "vitest run",
298
298
  "test:package": "node scripts/package-smoke.mjs && PACKAGE_OMIT_OPTIONAL_PEERS='[\"@hocuspocus/provider\",\"@tiptap/core\",\"@tiptap/extension-collaboration\",\"@tiptap/extension-collaboration-caret\",\"@tiptap/react\",\"@tiptap/starter-kit\",\"pdfjs-dist\",\"yjs\"]' node scripts/package-smoke.mjs",
@@ -1,66 +0,0 @@
1
- import { ToolCallData } from "@tangle-network/ui/run";
2
- /** Host-owned authenticated streams keep their own reconnect and session lifecycle. */
3
- interface AgentStreamSource {
4
- addEventListener(type: string, listener: (event: MessageEvent<string>) => void): void;
5
- close(): void;
6
- }
7
- type AgentStreamOpener = (url: string, onLiveChange?: (live: boolean) => void) => AgentStreamSource;
8
- /** One row of an agent's message stream (tangle-tools `/api/discovery/runs/<run>/agents/<agent>/stream`). */
9
- interface AgentStreamRow {
10
- seq: number;
11
- /** ISO time the event happened. */
12
- at: string;
13
- stream?: string;
14
- attempt?: number;
15
- event: {
16
- kind: "text" | "reasoning" | "tool-call" | "tool-result" | "user" | "notice" | (string & {});
17
- text?: string;
18
- /** A notice's origin: the agent's `delegated-input`, its `recorded-result`, or a capture fact such as `capture-unavailable`. */
19
- provenance?: string;
20
- toolCallId?: string;
21
- toolName?: string;
22
- args?: unknown;
23
- result?: unknown;
24
- };
25
- }
26
- /** A transcript entry with the time it began, so a time cursor can show the conversation as of any moment. */
27
- type AgentTranscriptEntry = {
28
- id: string;
29
- at: number;
30
- kind: "message";
31
- role: "assistant" | "user";
32
- content: string;
33
- sealed?: true;
34
- } | {
35
- id: string;
36
- at: number;
37
- kind: "reasoning";
38
- text: string;
39
- } | {
40
- id: string;
41
- at: number;
42
- kind: "tool";
43
- call: ToolCallData;
44
- } | {
45
- id: string;
46
- at: number;
47
- kind: "notice";
48
- text: string;
49
- };
50
- interface AgentStreamState {
51
- generation?: string | number;
52
- entries: AgentTranscriptEntry[];
53
- lastSeq: number;
54
- /** The agent is still producing output. */
55
- alive: boolean;
56
- /** Why the stream shows nothing new; a reconnect that delivers rows clears it. */
57
- error?: string;
58
- }
59
- /** Fold stream rows into transcript entries: text of one turn merges, a tool call becomes a row its result completes. */
60
- declare function foldAgentRows(entries: AgentTranscriptEntry[], rows: readonly AgentStreamRow[]): AgentTranscriptEntry[];
61
- /**
62
- * Follow one agent's message stream over Server-Sent Events: `rows`, `reset` and `end` events, reconnecting with
63
- * `?after=<lastSeq>` when the server closes the connection, so a long turn streams without gaps or repeats.
64
- */
65
- declare function useAgentStream(url: string | undefined, openEventSource?: AgentStreamOpener): AgentStreamState;
66
- export { AgentTranscriptEntry as a, AgentStreamState as i, AgentStreamRow as n, foldAgentRows as o, AgentStreamSource as r, useAgentStream as s, AgentStreamOpener as t };