@tangle-network/sandbox-ui 0.20.2 → 0.21.0
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/chat.d.ts +51 -1
- package/dist/chat.js +5 -1
- package/dist/{chunk-N5RYCDLD.js → chunk-4KAPMTPU.js} +25 -546
- package/dist/{chunk-MQ52AYJX.js → chunk-666PYT5K.js} +146 -24
- package/dist/chunk-DNZ4DTNA.js +547 -0
- package/dist/chunk-ESRYVGHF.js +147 -0
- package/dist/{chunk-R6QNJQRH.js → chunk-FLWMBK77.js} +366 -507
- package/dist/{chunk-CMY7W45U.js → chunk-MEDE37J5.js} +8 -2
- package/dist/{chunk-CP2L6B53.js → chunk-R6NONXFC.js} +12 -8
- package/dist/dashboard.d.ts +4 -48
- package/dist/dashboard.js +12 -8
- package/dist/globals.css +0 -11
- package/dist/harness-picker-C1W3rTeb.d.ts +49 -0
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.js +19 -13
- package/dist/{template-card-gf-InrfN.d.ts → model-picker-DUfMTQo5.d.ts} +1 -86
- package/dist/pages.d.ts +5 -37
- package/dist/pages.js +208 -312
- package/dist/sdk-hooks-jUbIngSV.d.ts +96 -0
- package/dist/sdk-hooks.d.ts +2 -77
- package/dist/sdk-hooks.js +1 -1
- package/dist/styles.css +0 -11
- package/dist/template-card-UhV3pmRC.d.ts +88 -0
- package/dist/workspace.d.ts +7 -0
- package/dist/workspace.js +1 -1
- package/package.json +8 -8
package/dist/chat.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { MessageRole } from '@tangle-network/ui/chat';
|
|
2
2
|
export { AgentTimeline, AgentTimelineArtifactItem, AgentTimelineCustomItem, AgentTimelineItem, AgentTimelineMessageItem, AgentTimelineProps, AgentTimelineStatusItem, AgentTimelineTone, AgentTimelineToolGroupItem, AgentTimelineToolItem, ChatContainer, ChatContainerProps, ChatInput, ChatInputProps, ChatMessage, ChatMessageProps, MessageList, MessageListProps, MessageRole, PendingFile, ThinkingIndicator, ThinkingIndicatorProps, UserMessage, UserMessageProps } from '@tangle-network/ui/chat';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { M as ModelInfo } from './model-picker-DUfMTQo5.js';
|
|
6
|
+
import { e as HarnessType } from './harness-picker-C1W3rTeb.js';
|
|
4
7
|
|
|
5
8
|
type ReasoningLevel = "auto" | "low" | "medium" | "high";
|
|
6
9
|
interface ReasoningLevelOption {
|
|
@@ -19,6 +22,53 @@ interface ReasoningLevelPickerProps {
|
|
|
19
22
|
declare const DEFAULT_REASONING_LEVEL_OPTIONS: ReadonlyArray<ReasoningLevelOption>;
|
|
20
23
|
declare function ReasoningLevelPicker({ value, onChange, disabled, className, triggerClassName, options, }: ReasoningLevelPickerProps): react_jsx_runtime.JSX.Element;
|
|
21
24
|
|
|
25
|
+
interface AgentSessionHarnessControl {
|
|
26
|
+
value: HarnessType;
|
|
27
|
+
onChange: (next: HarnessType) => void;
|
|
28
|
+
/** Filter the selectable harnesses (e.g. by plan tier). Defaults to all. */
|
|
29
|
+
available?: ReadonlyArray<HarnessType>;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
}
|
|
32
|
+
interface AgentSessionModelControl {
|
|
33
|
+
/** Canonical model id (provider-prefixed, e.g. "anthropic/claude-opus-4-8"). */
|
|
34
|
+
value: string;
|
|
35
|
+
onChange: (modelId: string) => void;
|
|
36
|
+
/** Models to choose from. Pass `[]` while loading. */
|
|
37
|
+
models: ModelInfo[];
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
popular?: ReadonlyArray<string>;
|
|
40
|
+
recents?: ReadonlyArray<string>;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
}
|
|
43
|
+
interface AgentSessionReasoningControl {
|
|
44
|
+
value: ReasoningLevel;
|
|
45
|
+
onChange: (value: ReasoningLevel) => void;
|
|
46
|
+
options?: ReadonlyArray<ReasoningLevelOption>;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
}
|
|
49
|
+
interface AgentSessionControlsProps {
|
|
50
|
+
/**
|
|
51
|
+
* Harness (agent backend) selection. Switching harness usually means
|
|
52
|
+
* re-creating the agent session — the consumer owns that lifecycle.
|
|
53
|
+
*/
|
|
54
|
+
harness?: AgentSessionHarnessControl;
|
|
55
|
+
/** Per-turn model override, fed by the router's model catalog. */
|
|
56
|
+
model?: AgentSessionModelControl;
|
|
57
|
+
/** Thinking-effort level applied to subsequent turns. */
|
|
58
|
+
reasoning?: AgentSessionReasoningControl;
|
|
59
|
+
/** Right-aligned extra content (token meter, cost, status). */
|
|
60
|
+
trailing?: React.ReactNode;
|
|
61
|
+
className?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Compact control strip for an agent chat composer: harness, model, and
|
|
65
|
+
* thinking-effort pickers in one row. Every section is optional and only
|
|
66
|
+
* renders when its control object is provided — never show a dead control.
|
|
67
|
+
*
|
|
68
|
+
* Designed to slot into `SandboxWorkbench`'s `session.composerControls`.
|
|
69
|
+
*/
|
|
70
|
+
declare function AgentSessionControls({ harness, model, reasoning, trailing, className, }: AgentSessionControlsProps): react_jsx_runtime.JSX.Element | null;
|
|
71
|
+
|
|
22
72
|
type ArtifactKind = string;
|
|
23
73
|
interface ArtifactScope {
|
|
24
74
|
kind: ArtifactKind;
|
|
@@ -116,4 +166,4 @@ declare function createFetchTransport(opts: {
|
|
|
116
166
|
fetchImpl?: typeof fetch;
|
|
117
167
|
}): ArtifactAgentDockTransport;
|
|
118
168
|
|
|
119
|
-
export { ArtifactAgentDock, type ArtifactAgentDockProps, type ArtifactAgentDockTransport, type ArtifactDockMessage, type ArtifactDockStreamEvent, type ArtifactKind, type ArtifactScope, DEFAULT_REASONING_LEVEL_OPTIONS, type ReasoningLevel, type ReasoningLevelOption, ReasoningLevelPicker, type ReasoningLevelPickerProps, createFetchTransport };
|
|
169
|
+
export { AgentSessionControls, type AgentSessionControlsProps, type AgentSessionHarnessControl, type AgentSessionModelControl, type AgentSessionReasoningControl, ArtifactAgentDock, type ArtifactAgentDockProps, type ArtifactAgentDockTransport, type ArtifactDockMessage, type ArtifactDockStreamEvent, type ArtifactKind, type ArtifactScope, DEFAULT_REASONING_LEVEL_OPTIONS, type ReasoningLevel, type ReasoningLevelOption, ReasoningLevelPicker, type ReasoningLevelPickerProps, createFetchTransport };
|
package/dist/chat.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AgentSessionControls,
|
|
2
3
|
AgentTimeline,
|
|
3
4
|
ArtifactAgentDock,
|
|
4
5
|
ChatContainer,
|
|
@@ -10,9 +11,12 @@ import {
|
|
|
10
11
|
ThinkingIndicator,
|
|
11
12
|
UserMessage,
|
|
12
13
|
createFetchTransport
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-666PYT5K.js";
|
|
15
|
+
import "./chunk-ESRYVGHF.js";
|
|
16
|
+
import "./chunk-4KAPMTPU.js";
|
|
14
17
|
import "./chunk-EI44GEQ5.js";
|
|
15
18
|
export {
|
|
19
|
+
AgentSessionControls,
|
|
16
20
|
AgentTimeline,
|
|
17
21
|
ArtifactAgentDock,
|
|
18
22
|
ChatContainer,
|