@tangle-network/sandbox-ui 2.0.22 → 3.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/README.md +6 -0
- package/dist/{AgentTree-KO1TJXBq.js → AgentTree-CJRVpgPq.js} +8 -8
- package/dist/ResearchReport-CSNpZ-pj.js +2063 -0
- package/dist/ResearchReport-CmFYqNVY.d.ts +36 -0
- package/dist/{chat-BU39pb2j.js → chat-BrlLa4rg.js} +2 -2
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +1 -1
- package/dist/globals.css +106 -297
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{index-Due7tY0w.d.ts → index-5zOVKgDT.d.ts} +2 -2
- package/dist/{index-D2_4ONCz.d.ts → index-DpzFSqjG.d.ts} +1 -7
- package/dist/{index-BoKSR0s9.d.ts → index-YU_b9xCK.d.ts} +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.js +9 -9
- package/dist/record/ResearchReport.d.ts +2 -0
- package/dist/record/ResearchReport.js +1 -0
- package/dist/{record-BGcR48YY.js → record-Ct_MZeZC.js} +1 -1
- package/dist/record.d.ts +2 -35
- package/dist/record.js +2 -2061
- package/dist/report-viewer.js +130 -90
- package/dist/run/live.js +14 -33
- package/dist/run/record.js +2 -2
- package/dist/run.d.ts +2 -2
- package/dist/run.js +5 -5
- package/dist/runtime-viewer/{AgentGraphCanvas-DDvaU9Rg-DlNZxJ20.js → AgentGraphCanvas-DGq7_u8--WPFPgd72.js} +2254 -2282
- package/dist/runtime-viewer/latest-events-CRq9sGkK-YFXUh9qO.js +9586 -0
- package/dist/runtime-viewer/{sandbox-ui-CUj4Q1P_.css → sandbox-ui-BEziPi7D.css} +1 -1
- package/dist/styles.css +107 -298
- package/dist/tailwind.css +72 -13
- package/dist/{trace-workspace-DkakKRLV.js → trace-workspace-BiJbv9WQ.js} +2 -2
- package/dist/use-follow-tail-Ht7fZGQQ.js +1 -0
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/{workspace--GvnZNpH.js → workspace-CAdAoNmW.js} +11 -17
- package/dist/workspace-viewer.js +10146 -12805
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +1 -1
- package/package.json +11 -7
- package/dist/runtime-viewer/latest-events-CabhXynX-Dp_vs0Px.js +0 -3671
- package/dist/use-follow-tail-Ckx5ZSV2.js +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ResearchReportData } from "@drewstone/agent-record/report";
|
|
3
|
+
import { RecordSelection } from "@drewstone/agent-record/record";
|
|
4
|
+
type ResearchView = 'results' | 'activity' | 'sources';
|
|
5
|
+
interface ResearchDocumentSelection {
|
|
6
|
+
playId: string;
|
|
7
|
+
path: string;
|
|
8
|
+
line?: number;
|
|
9
|
+
}
|
|
10
|
+
/** URL selections only name documents already supplied within the exact play. */
|
|
11
|
+
declare function readReportLocation(report: ResearchReportData, search: string): {
|
|
12
|
+
playId?: string;
|
|
13
|
+
document?: ResearchDocumentSelection;
|
|
14
|
+
view?: ResearchView;
|
|
15
|
+
activity?: RecordSelection;
|
|
16
|
+
error?: string;
|
|
17
|
+
};
|
|
18
|
+
declare function reportLocationSearch(search: string, playId: string, document?: ResearchDocumentSelection, view?: ResearchView, activity?: RecordSelection): string;
|
|
19
|
+
interface ResearchReportProps {
|
|
20
|
+
report: ResearchReportData;
|
|
21
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
22
|
+
defaultPlayId?: string;
|
|
23
|
+
onPlayChange?: (playId: string) => void;
|
|
24
|
+
defaultActivitySelection?: RecordSelection;
|
|
25
|
+
onActivityChange?: (playId: string, selection: RecordSelection) => void;
|
|
26
|
+
defaultView?: ResearchView;
|
|
27
|
+
onViewChange?: (view: ResearchView) => void;
|
|
28
|
+
defaultDocumentSelection?: ResearchDocumentSelection;
|
|
29
|
+
onDocumentChange?: (selection: ResearchDocumentSelection) => void;
|
|
30
|
+
sourceSearchEndpoint?: string;
|
|
31
|
+
/** Figures the host draws for a play section, keyed by section id (the play page's bar panels for `how-good`). */
|
|
32
|
+
figures?: Record<string, ReactNode>;
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
declare function ResearchReport({ report, theme, defaultPlayId, onPlayChange, defaultView, onViewChange, defaultActivitySelection, onActivityChange, defaultDocumentSelection, onDocumentChange, sourceSearchEndpoint, figures, className }: ResearchReportProps): import("react").JSX.Element;
|
|
36
|
+
export { readReportLocation as a, ResearchView as i, ResearchReportProps as n, reportLocationSearch as o, ResearchDocumentSelection as r, ResearchReport as t };
|
|
@@ -4,7 +4,7 @@ import * as React$1 from "react";
|
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { Bot, Brain, Check, ChevronDown, Lock, Pencil, Plus, Send, Sparkles, Square, Trash2, X } from "lucide-react";
|
|
6
6
|
import { focusField, focusRing } from "@tangle-network/ui/utils";
|
|
7
|
-
import { AgentTimeline as AgentTimeline$1, AgentTimelineColumn
|
|
7
|
+
import { AgentTimeline as AgentTimeline$1, AgentTimelineColumn, AgentTimelineStep, ChatContainer as ChatContainer$1, ChatMessage, ChatMessage as ChatMessage$1, MessageAuthor, MessageList, SpeakerHeader, TRANSCRIPT_TEXT, ThinkingIndicator, UserMessage, agentTimelineStepKind, foldSummary, isViewerMessage, partitionBySpeaker } from "@tangle-network/ui/chat";
|
|
8
8
|
import { modelProvider, reasoningLadder, snapHarnessToModel } from "@tangle-network/agent-interface";
|
|
9
9
|
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
10
10
|
// src/chat/reasoning-level-picker.tsx
|
|
@@ -862,4 +862,4 @@ function ArtifactAgentDock({ scope, open, onOpenChange, transport, defaultPrompt
|
|
|
862
862
|
]
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
export { ReasoningLevelPicker as S, modelProvider as _, ChatMessage$1 as a, DEFAULT_REASONING_LEVEL_OPTIONS as b, SpeakerHeader
|
|
865
|
+
export { ReasoningLevelPicker as S, modelProvider as _, ChatMessage$1 as a, DEFAULT_REASONING_LEVEL_OPTIONS as b, SpeakerHeader as c, UserMessage as d, agentTimelineStepKind as f, ArtifactAgentDock as g, partitionBySpeaker as h, ChatContainer$1 as i, TRANSCRIPT_TEXT as l, isViewerMessage as m, AgentTimelineColumn as n, MessageAuthor as o, foldSummary as p, AgentTimelineStep as r, MessageList as s, AgentTimeline$1 as t, ThinkingIndicator as u, snapHarnessToModel as v, HARNESS_REASONING_OPTIONS as x, AgentProfilePicker as y };
|
package/dist/chat.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as AgentProfilePicker, A as SpeakerSection, B as partitionBySpeaker, C as MessageList, D as SpeakerHeader, E as Speaker, F as UserMessage, G as ArtifactDockStreamEvent, H as ArtifactAgentDockProps, I as UserMessageProps, J as modelProvider, K as ArtifactKind, L as agentTimelineStepKind, M as TRANSCRIPT_TEXT, N as ThinkingIndicator, O as SpeakerHeaderProps, P as ThinkingIndicatorProps, Q as AgentProfileOption, R as foldSummary, S as MessageAuthorProps, T as MessageRole, U as ArtifactAgentDockTransport, V as ArtifactAgentDock, W as ArtifactDockMessage, X as AgentProfileCapability, Y as snapHarnessToModel, Z as AgentProfileDraft, _ as ChatContainer, a as AgentTimelineFoldItem, at as ReasoningLevelPicker, b as ChatMessageProps, c as AgentTimelineProps, d as AgentTimelineStepKind, et as AgentProfilePickerProps, f as AgentTimelineStepProps, g as ChatAuthor, h as AgentTimelineToolItem, i as AgentTimelineCustomItem, it as ReasoningLevelOption, j as SpeakerState, k as SpeakerPart, l as AgentTimelineStatusItem, m as AgentTimelineToolGroupItem, n as AgentTimelineArtifactItem, nt as HARNESS_REASONING_OPTIONS, o as AgentTimelineItem, ot as ReasoningLevelPickerProps, p as AgentTimelineTone, q as ArtifactScope, r as AgentTimelineColumn, rt as ReasoningLevel, s as AgentTimelineMessageItem, t as AgentTimeline, tt as DEFAULT_REASONING_LEVEL_OPTIONS, u as AgentTimelineStep, v as ChatContainerProps, w as MessageListProps, x as MessageAuthor, y as ChatMessage, z as isViewerMessage } from "./index-
|
|
1
|
+
import { $ as AgentProfilePicker, A as SpeakerSection, B as partitionBySpeaker, C as MessageList, D as SpeakerHeader, E as Speaker, F as UserMessage, G as ArtifactDockStreamEvent, H as ArtifactAgentDockProps, I as UserMessageProps, J as modelProvider, K as ArtifactKind, L as agentTimelineStepKind, M as TRANSCRIPT_TEXT, N as ThinkingIndicator, O as SpeakerHeaderProps, P as ThinkingIndicatorProps, Q as AgentProfileOption, R as foldSummary, S as MessageAuthorProps, T as MessageRole, U as ArtifactAgentDockTransport, V as ArtifactAgentDock, W as ArtifactDockMessage, X as AgentProfileCapability, Y as snapHarnessToModel, Z as AgentProfileDraft, _ as ChatContainer, a as AgentTimelineFoldItem, at as ReasoningLevelPicker, b as ChatMessageProps, c as AgentTimelineProps, d as AgentTimelineStepKind, et as AgentProfilePickerProps, f as AgentTimelineStepProps, g as ChatAuthor, h as AgentTimelineToolItem, i as AgentTimelineCustomItem, it as ReasoningLevelOption, j as SpeakerState, k as SpeakerPart, l as AgentTimelineStatusItem, m as AgentTimelineToolGroupItem, n as AgentTimelineArtifactItem, nt as HARNESS_REASONING_OPTIONS, o as AgentTimelineItem, ot as ReasoningLevelPickerProps, p as AgentTimelineTone, q as ArtifactScope, r as AgentTimelineColumn, rt as ReasoningLevel, s as AgentTimelineMessageItem, t as AgentTimeline, tt as DEFAULT_REASONING_LEVEL_OPTIONS, u as AgentTimelineStep, v as ChatContainerProps, w as MessageListProps, x as MessageAuthor, y as ChatMessage, z as isViewerMessage } from "./index-5zOVKgDT.js";
|
|
2
2
|
export { type AgentProfileCapability, type AgentProfileDraft, type AgentProfileOption, AgentProfilePicker, type AgentProfilePickerProps, AgentTimeline, type AgentTimelineArtifactItem, AgentTimelineColumn, type AgentTimelineCustomItem, type AgentTimelineFoldItem, type AgentTimelineItem, type AgentTimelineMessageItem, type AgentTimelineProps, type AgentTimelineStatusItem, AgentTimelineStep, type AgentTimelineStepKind, type AgentTimelineStepProps, type AgentTimelineTone, type AgentTimelineToolGroupItem, type AgentTimelineToolItem, ArtifactAgentDock, type ArtifactAgentDockProps, type ArtifactAgentDockTransport, type ArtifactDockMessage, type ArtifactDockStreamEvent, type ArtifactKind, type ArtifactScope, type ChatAuthor, ChatContainer, type ChatContainerProps, ChatMessage, type ChatMessageProps, DEFAULT_REASONING_LEVEL_OPTIONS, HARNESS_REASONING_OPTIONS, MessageAuthor, type MessageAuthorProps, MessageList, type MessageListProps, type MessageRole, type ReasoningLevel, type ReasoningLevelOption, ReasoningLevelPicker, type ReasoningLevelPickerProps, type Speaker, SpeakerHeader, type SpeakerHeaderProps, type SpeakerPart, type SpeakerSection, type SpeakerState, TRANSCRIPT_TEXT, ThinkingIndicator, type ThinkingIndicatorProps, UserMessage, type UserMessageProps, agentTimelineStepKind, foldSummary, isViewerMessage, modelProvider, partitionBySpeaker, snapHarnessToModel };
|
package/dist/chat.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { y as AgentProfilePicker, t as AgentTimeline, n as AgentTimelineColumn, r as AgentTimelineStep, g as ArtifactAgentDock, i as ChatContainer, a as ChatMessage, b as DEFAULT_REASONING_LEVEL_OPTIONS, x as HARNESS_REASONING_OPTIONS, o as MessageAuthor, s as MessageList, S as ReasoningLevelPicker, c as SpeakerHeader, l as TRANSCRIPT_TEXT, u as ThinkingIndicator, d as UserMessage, f as agentTimelineStepKind, p as foldSummary, m as isViewerMessage, _ as modelProvider, h as partitionBySpeaker, v as snapHarnessToModel } from "./chat-
|
|
1
|
+
export { y as AgentProfilePicker, t as AgentTimeline, n as AgentTimelineColumn, r as AgentTimelineStep, g as ArtifactAgentDock, i as ChatContainer, a as ChatMessage, b as DEFAULT_REASONING_LEVEL_OPTIONS, x as HARNESS_REASONING_OPTIONS, o as MessageAuthor, s as MessageList, S as ReasoningLevelPicker, c as SpeakerHeader, l as TRANSCRIPT_TEXT, u as ThinkingIndicator, d as UserMessage, f as agentTimelineStepKind, p as foldSummary, m as isViewerMessage, _ as modelProvider, h as partitionBySpeaker, v as snapHarnessToModel } from "./chat-BrlLa4rg.js";
|