@tangle-network/sandbox-ui 0.113.7 → 0.115.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/README.md +40 -0
- package/dist/WorkflowGraph-B-NsdYz_.js +1961 -0
- package/dist/assets.d.ts +214 -206
- package/dist/assets.js +1057 -908
- package/dist/auth-CWe17Hly.js +37 -0
- package/dist/auth.d.ts +2 -30
- package/dist/auth.js +2 -15
- package/dist/chat-BOvFAe6p.js +903 -0
- package/dist/chat.d.ts +2 -230
- package/dist/chat.js +2 -34
- package/dist/connectors.d.ts +52 -49
- package/dist/connectors.js +595 -643
- package/dist/dashboard-CZ3VgNPR.js +4969 -0
- package/dist/dashboard.d.ts +4 -1297
- package/dist/dashboard.js +4 -152
- package/dist/editor.d.ts +2 -1
- package/dist/editor.js +2 -31
- package/dist/files.d.ts +2 -6
- package/dist/files.js +2 -33
- package/dist/globals.css +75 -3
- package/dist/hooks.d.ts +146 -148
- package/dist/hooks.js +222 -55
- package/dist/index-CKRaj1pM.d.ts +776 -0
- package/dist/index-CXX5IpH2.d.ts +2 -0
- package/dist/index-CesPlOyx.d.ts +367 -0
- package/dist/index-DPePq7c8.d.ts +1340 -0
- package/dist/index-DiyLLZuJ.d.ts +230 -0
- package/dist/index-DvmZLMT1.d.ts +30 -0
- package/dist/index-PRM636Ex.d.ts +86 -0
- package/dist/index.d.ts +21 -33
- package/dist/index.js +21 -701
- package/dist/info-panel-C9cqDzOL.js +594 -0
- package/dist/integrations.d.ts +133 -141
- package/dist/integrations.js +491 -673
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.js +2 -13
- package/dist/model-I-NIxeM-.js +1250 -0
- package/dist/model-brand-B9A4H9pJ.d.ts +98 -0
- package/dist/model-brand-hMyDTUqB.js +624 -0
- package/dist/motion-DkyBRJb9.js +37 -0
- package/dist/openui.d.ts +2 -1
- package/dist/openui.js +2 -7
- package/dist/pages.d.ts +307 -300
- package/dist/pages.js +4404 -4181
- package/dist/primitives-Dh1vG6J3.js +113 -0
- package/dist/primitives.d.ts +2 -74
- package/dist/primitives.js +2 -204
- package/dist/provider-logo-DjqmConF.js +311 -0
- package/dist/run.d.ts +2 -1
- package/dist/run.js +2 -23
- package/dist/sdk-hooks.d.ts +3 -4
- package/dist/sdk-hooks.js +3 -31
- package/dist/sidecar-DgH_vQ6m.d.ts +9 -0
- package/dist/stores.d.ts +14 -15
- package/dist/stores.js +13 -81
- package/dist/styles.css +75 -3
- package/dist/template-card-L-4gmjx2.d.ts +90 -0
- package/dist/terminal-CN9ZgHRt.js +197 -0
- package/dist/terminal.d.ts +60 -60
- package/dist/terminal.js +2 -10
- package/dist/tokens.css +51 -0
- package/dist/types.d.ts +4 -11
- package/dist/types.js +0 -1
- package/dist/use-pty-session-C8cE0adT.js +669 -0
- package/dist/use-sidecar-auth-CCTJcrq7.d.ts +145 -0
- package/dist/use-sidecar-auth-DkdcufOz.js +742 -0
- package/dist/utils-DzWbktWG.js +2 -0
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +2 -37
- package/dist/workbench-ztU44Jt2.js +8455 -0
- package/dist/workbench.d.ts +2 -310
- package/dist/workbench.js +2 -44
- package/dist/workflows.d.ts +341 -339
- package/dist/workflows.js +74 -109
- package/dist/workspace-B6AtI6ld.js +2510 -0
- package/dist/workspace.d.ts +2 -761
- package/dist/workspace.js +2 -51
- package/package.json +46 -40
- package/dist/WorkflowGraph-2QOORYIR.js +0 -1722
- package/dist/chunk-2BUPSB7O.js +0 -0
- package/dist/chunk-3KBNPQQF.js +0 -2697
- package/dist/chunk-3LIXVEEE.js +0 -279
- package/dist/chunk-72UF2H5H.js +0 -707
- package/dist/chunk-AI25G5MX.js +0 -944
- package/dist/chunk-ANSC5AFC.js +0 -314
- package/dist/chunk-AZ3AWMTM.js +0 -8
- package/dist/chunk-BGVEHENC.js +0 -10
- package/dist/chunk-CZ7CSFO4.js +0 -39
- package/dist/chunk-DYXXYGS4.js +0 -4700
- package/dist/chunk-EI44GEQ5.js +0 -6
- package/dist/chunk-IACRDXER.js +0 -219
- package/dist/chunk-IOB2PW5Z.js +0 -55
- package/dist/chunk-M4K7ZGR2.js +0 -24
- package/dist/chunk-MYZAW4RX.js +0 -665
- package/dist/chunk-OMUIPJQZ.js +0 -555
- package/dist/chunk-RQZRXKMR.js +0 -398
- package/dist/chunk-SOKKTB7W.js +0 -230
- package/dist/chunk-TADGS4Q7.js +0 -1010
- package/dist/chunk-UCQNOUN3.js +0 -7964
- package/dist/chunk-ULPLRBMF.js +0 -34
- package/dist/chunk-WID73FPH.js +0 -89
- package/dist/chunk-X3YXP7FG.js +0 -38
- package/dist/logo-DiAjq759.d.ts +0 -15
- package/dist/model-brand-BNnaUKKZ.d.ts +0 -99
- package/dist/ports-list-CDIvTNnX.d.ts +0 -17
- package/dist/sdk-hooks-Djkjq4cp.d.ts +0 -145
- package/dist/template-card-Bn-Bw5xC.d.ts +0 -87
package/dist/chat.d.ts
CHANGED
|
@@ -1,230 +1,2 @@
|
|
|
1
|
-
import { MessageRole } from
|
|
2
|
-
export { AgentTimeline, AgentTimelineArtifactItem, AgentTimelineCustomItem, AgentTimelineItem, AgentTimelineMessageItem, AgentTimelineProps, AgentTimelineStatusItem, AgentTimelineTone, AgentTimelineToolGroupItem, AgentTimelineToolItem, ChatContainer, ChatContainerProps, ChatMessage, ChatMessageProps, MessageList, MessageListProps, MessageRole, ThinkingIndicator, ThinkingIndicatorProps, UserMessage, UserMessageProps
|
|
3
|
-
import { ReasoningEffort, HarnessType } from '@tangle-network/agent-interface';
|
|
4
|
-
export { modelProvider, snapHarnessToModel } from '@tangle-network/agent-interface';
|
|
5
|
-
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A reasoning selection: `auto` is a UI-only sentinel ("let the harness/model default decide",
|
|
10
|
-
* sends no explicit override); every other value is the canonical `ReasoningEffort` from
|
|
11
|
-
* `@tangle-network/agent-interface` (the single source of truth — `none` … `ultracode`). The picker
|
|
12
|
-
* shows only the levels the chosen harness/model supports — see `reasoningEffortsFor` + the
|
|
13
|
-
* `available` prop — so unsupported levels (such as Kimi's mid-range) never appear rather than being
|
|
14
|
-
* silently degraded.
|
|
15
|
-
*/
|
|
16
|
-
type ReasoningLevel = "auto" | ReasoningEffort;
|
|
17
|
-
interface ReasoningLevelOption {
|
|
18
|
-
value: ReasoningLevel;
|
|
19
|
-
label: string;
|
|
20
|
-
description: string;
|
|
21
|
-
}
|
|
22
|
-
interface ReasoningLevelPickerProps {
|
|
23
|
-
value: ReasoningLevel;
|
|
24
|
-
onChange: (value: ReasoningLevel) => void;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
className?: string;
|
|
27
|
-
triggerClassName?: string;
|
|
28
|
-
options?: ReadonlyArray<ReasoningLevelOption>;
|
|
29
|
-
/**
|
|
30
|
-
* Capability filter — the reasoning efforts the currently-selected harness/model supports, from
|
|
31
|
-
* `reasoningEffortsFor(harness, model)`. When provided, the picker shows ONLY these (plus the
|
|
32
|
-
* `auto` sentinel), so a harness never offers a level it cannot express.
|
|
33
|
-
* Omit to show every option.
|
|
34
|
-
*/
|
|
35
|
-
available?: ReadonlyArray<ReasoningEffort>;
|
|
36
|
-
/** Side the menu opens toward. Defaults to Radix's "bottom". */
|
|
37
|
-
side?: DropdownMenu.DropdownMenuContentProps["side"];
|
|
38
|
-
/**
|
|
39
|
-
* Let Radix flip the menu to the opposite side when it would overflow the
|
|
40
|
-
* viewport. Defaults to `true` (Radix default). Pass `false` to pin the menu
|
|
41
|
-
* to `side` — e.g. a composer floating in open space that should always open
|
|
42
|
-
* downward rather than flipping up over the heading.
|
|
43
|
-
*/
|
|
44
|
-
avoidCollisions?: boolean;
|
|
45
|
-
}
|
|
46
|
-
declare const DEFAULT_REASONING_LEVEL_OPTIONS: ReadonlyArray<ReasoningLevelOption>;
|
|
47
|
-
/**
|
|
48
|
-
* Per-harness option overrides for harnesses whose real control isn't a depth scale, so the generic
|
|
49
|
-
* ladder's labels would mislead. A harness with no entry uses {@link DEFAULT_REASONING_LEVEL_OPTIONS};
|
|
50
|
-
* either way the picker still intersects the chosen options with the harness/model `available` set, so
|
|
51
|
-
* only supported values render.
|
|
52
|
-
*
|
|
53
|
-
* `kimi-code` is a BINARY thinking toggle, not a gradient: its `--thinking` flag is simply off or on.
|
|
54
|
-
* `none` emits `--no-thinking` (off) and `high` maps to thinking-on, so the
|
|
55
|
-
* menu reads Auto / No thinking / Thinking rather than a misleading five-step scale.
|
|
56
|
-
*/
|
|
57
|
-
declare const HARNESS_REASONING_OPTIONS: Partial<Record<HarnessType, ReadonlyArray<ReasoningLevelOption>>>;
|
|
58
|
-
declare function ReasoningLevelPicker({ value, onChange, disabled, className, triggerClassName, options, available, side, avoidCollisions, }: ReasoningLevelPickerProps): React.JSX.Element;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* An agent profile: a named bundle of toolset + persona layered over the same
|
|
62
|
-
* model and session. `builtin` profiles are the product's shipped modes (e.g.
|
|
63
|
-
* Studio / Assistant); the rest are user-saved custom agents. The concept is
|
|
64
|
-
* backend-agnostic — it applies to a router-backed agent and a sandbox-backed
|
|
65
|
-
* one alike, which is why it lives beside the model control rather than under
|
|
66
|
-
* the harness.
|
|
67
|
-
*/
|
|
68
|
-
interface AgentProfileOption {
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
/** Builtin: a one-line description. Custom: derived "N tools" if omitted. */
|
|
72
|
-
description?: string;
|
|
73
|
-
/** Capability/tool-group ids this profile enables. */
|
|
74
|
-
capabilities?: ReadonlyArray<string>;
|
|
75
|
-
/** Persona / extra system instructions. */
|
|
76
|
-
instructions?: string;
|
|
77
|
-
/** A shipped mode vs a user-saved custom agent. */
|
|
78
|
-
builtin?: boolean;
|
|
79
|
-
}
|
|
80
|
-
/** A selectable tool group offered by the create/edit form. */
|
|
81
|
-
interface AgentProfileCapability {
|
|
82
|
-
id: string;
|
|
83
|
-
label: string;
|
|
84
|
-
description?: string;
|
|
85
|
-
}
|
|
86
|
-
/** The editable shape the create/edit form emits. */
|
|
87
|
-
interface AgentProfileDraft {
|
|
88
|
-
id?: string;
|
|
89
|
-
name: string;
|
|
90
|
-
capabilities: string[];
|
|
91
|
-
instructions: string;
|
|
92
|
-
}
|
|
93
|
-
interface AgentProfilePickerProps {
|
|
94
|
-
/** Selected profile id. */
|
|
95
|
-
value: string;
|
|
96
|
-
onChange: (id: string) => void;
|
|
97
|
-
profiles: ReadonlyArray<AgentProfileOption>;
|
|
98
|
-
/**
|
|
99
|
-
* Tool catalog for the create/edit form. Provide together with at least one
|
|
100
|
-
* write callback to enable authoring custom agents; omit for a
|
|
101
|
-
* selection-only picker (the New / edit / delete affordances stay hidden).
|
|
102
|
-
*/
|
|
103
|
-
capabilities?: ReadonlyArray<AgentProfileCapability>;
|
|
104
|
-
onCreate?: (draft: AgentProfileDraft) => void | Promise<void>;
|
|
105
|
-
onUpdate?: (id: string, draft: AgentProfileDraft) => void | Promise<void>;
|
|
106
|
-
onDelete?: (id: string) => void | Promise<void>;
|
|
107
|
-
disabled?: boolean;
|
|
108
|
-
/** Keep the pinned profile visible while preventing profile selection. */
|
|
109
|
-
locked?: boolean;
|
|
110
|
-
/** Tooltip shown on the locked trigger when no `onNewChat` is provided. */
|
|
111
|
-
lockReason?: string;
|
|
112
|
-
/** Offer a fresh chat from the informative lock popover. */
|
|
113
|
-
onNewChat?: () => void;
|
|
114
|
-
className?: string;
|
|
115
|
-
/** Additional classes for the picker trigger. */
|
|
116
|
-
triggerClassName?: string;
|
|
117
|
-
/** Additional classes for the profile popover. */
|
|
118
|
-
popoverClassName?: string;
|
|
119
|
-
/** Side the menu opens toward. Defaults to up (composer-anchored). */
|
|
120
|
-
side?: "top" | "bottom";
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Agent / mode switcher styled to match the chat control strip's pills
|
|
124
|
-
* (harness, model, effort). The pill shows the active profile; the menu lists
|
|
125
|
-
* builtin modes and saved custom agents. When a capability catalog and a write
|
|
126
|
-
* callback are supplied it also authors agents inline (name + tool toggles +
|
|
127
|
-
* persona) — a self-contained click-outside popover rather than a Radix menu,
|
|
128
|
-
* because the inline form needs its own focus and typing without the menu
|
|
129
|
-
* stealing keystrokes.
|
|
130
|
-
*/
|
|
131
|
-
declare function AgentProfilePicker({ value, onChange, profiles, capabilities, onCreate, onUpdate, onDelete, disabled, locked, lockReason, onNewChat, className, triggerClassName, popoverClassName, side, }: AgentProfilePickerProps): React.JSX.Element;
|
|
132
|
-
|
|
133
|
-
type ArtifactKind = string;
|
|
134
|
-
interface ArtifactScope {
|
|
135
|
-
kind: ArtifactKind;
|
|
136
|
-
key: string;
|
|
137
|
-
/** Short label shown in the dock header. Defaults to a generated one from kind/key. */
|
|
138
|
-
label?: string;
|
|
139
|
-
}
|
|
140
|
-
interface ArtifactDockMessage {
|
|
141
|
-
id: string;
|
|
142
|
-
role: MessageRole;
|
|
143
|
-
content: string;
|
|
144
|
-
createdAt?: Date;
|
|
145
|
-
}
|
|
146
|
-
type ArtifactDockStreamEvent = {
|
|
147
|
-
type: "delta";
|
|
148
|
-
text: string;
|
|
149
|
-
} | {
|
|
150
|
-
type: "error";
|
|
151
|
-
message: string;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* Consumer-supplied adapter. Keeps the dock decoupled from any specific app's
|
|
155
|
-
* API surface — every consumer wires its own thread-ensure, message-load, and
|
|
156
|
-
* NDJSON stream-send.
|
|
157
|
-
*/
|
|
158
|
-
interface ArtifactAgentDockTransport {
|
|
159
|
-
/** Get-or-create the canonical thread for this scope. */
|
|
160
|
-
ensureThread(scope: ArtifactScope): Promise<{
|
|
161
|
-
id: string;
|
|
162
|
-
}>;
|
|
163
|
-
/** Load prior messages, in chronological order. Optional — returns []. */
|
|
164
|
-
loadMessages?(threadId: string): Promise<ArtifactDockMessage[]>;
|
|
165
|
-
/** Stream a user turn. Yield delta events; the dock concatenates them. */
|
|
166
|
-
sendStream(args: {
|
|
167
|
-
threadId: string;
|
|
168
|
-
content: string;
|
|
169
|
-
signal: AbortSignal;
|
|
170
|
-
}): AsyncIterable<ArtifactDockStreamEvent>;
|
|
171
|
-
/** Stop the server-side run for a thread. Optional — when present, the dock
|
|
172
|
-
* calls it on cancel/scope-switch BEFORE aborting the local fetch, so the
|
|
173
|
-
* agent run is actually stopped (not orphaned, still billing) rather than
|
|
174
|
-
* the client merely closing its reader. */
|
|
175
|
-
cancel?(args: {
|
|
176
|
-
threadId: string;
|
|
177
|
-
}): Promise<void> | void;
|
|
178
|
-
}
|
|
179
|
-
interface ArtifactAgentDockProps {
|
|
180
|
-
scope: ArtifactScope;
|
|
181
|
-
open: boolean;
|
|
182
|
-
onOpenChange: (open: boolean) => void;
|
|
183
|
-
transport: ArtifactAgentDockTransport;
|
|
184
|
-
defaultPrompt?: string;
|
|
185
|
-
/** Toast handler for non-fatal errors. Falls back to console.error. */
|
|
186
|
-
onError?: (message: string) => void;
|
|
187
|
-
className?: string;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* ArtifactAgentDock — slide-in right-rail chat scoped to a single artifact.
|
|
191
|
-
*
|
|
192
|
-
* Renders a persistent, per-artifact conversation surface that streams via a
|
|
193
|
-
* consumer-supplied transport. Mount alongside any artifact view (file editor,
|
|
194
|
-
* sequence editor, asset preview) to give every artifact its own dedicated
|
|
195
|
-
* agent conversation without forking the chat UI per app.
|
|
196
|
-
*
|
|
197
|
-
* Behavior:
|
|
198
|
-
* - On open, calls `transport.ensureThread(scope)` to get the canonical thread
|
|
199
|
-
* id and `transport.loadMessages(threadId)` to populate prior turns.
|
|
200
|
-
* - On submit, calls `transport.sendStream(...)` and concatenates delta events
|
|
201
|
-
* into a single streaming assistant message; renders inline.
|
|
202
|
-
* - Composer: Enter sends, Shift+Enter newline, Cancel during stream supported.
|
|
203
|
-
* - Accessibility: scope `aria-label` on the panel, `aria-pressed` is the
|
|
204
|
-
* consumer's job on whatever button toggles `open`.
|
|
205
|
-
*/
|
|
206
|
-
declare function ArtifactAgentDock({ scope, open, onOpenChange, transport, defaultPrompt, onError, className, }: ArtifactAgentDockProps): React.JSX.Element | null;
|
|
207
|
-
/**
|
|
208
|
-
* Build a transport that hits the Tangle product convention: POST
|
|
209
|
-
* /api/threads with body.scope = ArtifactScope to ensure the canonical
|
|
210
|
-
* thread; GET /api/threads/:id/messages to load history; POST /api/chat
|
|
211
|
-
* with body = {workspaceId, threadId, content} and an NDJSON event stream
|
|
212
|
-
* to send. Most consumers can use this as-is; advanced ones can supply
|
|
213
|
-
* their own transport object.
|
|
214
|
-
*
|
|
215
|
-
* The expected NDJSON event shape:
|
|
216
|
-
* { type: "message.part.updated", data: { delta: string, part?: {type} } } // assistant chunk
|
|
217
|
-
* { type: "error", data: { message: string, ... } } // surface error
|
|
218
|
-
*
|
|
219
|
-
* Other event types are ignored — consumers that need tool-call rendering
|
|
220
|
-
* or other event semantics should ship a richer transport.
|
|
221
|
-
*/
|
|
222
|
-
declare function createFetchTransport(opts: {
|
|
223
|
-
workspaceId: string;
|
|
224
|
-
threadsUrl?: string;
|
|
225
|
-
chatUrl?: string;
|
|
226
|
-
/** Optional fetch override (auth headers, baseURL, etc.). */
|
|
227
|
-
fetchImpl?: typeof fetch;
|
|
228
|
-
}): ArtifactAgentDockTransport;
|
|
229
|
-
|
|
230
|
-
export { type AgentProfileCapability, type AgentProfileDraft, type AgentProfileOption, AgentProfilePicker, type AgentProfilePickerProps, ArtifactAgentDock, type ArtifactAgentDockProps, type ArtifactAgentDockTransport, type ArtifactDockMessage, type ArtifactDockStreamEvent, type ArtifactKind, type ArtifactScope, DEFAULT_REASONING_LEVEL_OPTIONS, HARNESS_REASONING_OPTIONS, type ReasoningLevel, type ReasoningLevelOption, ReasoningLevelPicker, type ReasoningLevelPickerProps, createFetchTransport };
|
|
1
|
+
import { A as modelProvider, B as ReasoningLevelOption, C as ArtifactAgentDockProps, D as ArtifactKind, E as ArtifactDockStreamEvent, F as AgentProfilePicker, H as ReasoningLevelPickerProps, I as AgentProfilePickerProps, L as DEFAULT_REASONING_LEVEL_OPTIONS, M as AgentProfileCapability, N as AgentProfileDraft, O as ArtifactScope, P as AgentProfileOption, R as HARNESS_REASONING_OPTIONS, S as ArtifactAgentDock, T as ArtifactDockMessage, V as ReasoningLevelPicker, _ as MessageRole, a as AgentTimelineMessageItem, b as UserMessage, c as AgentTimelineTone, d as ChatContainer, f as ChatContainerProps, g as MessageListProps, h as MessageList, i as AgentTimelineItem, j as snapHarnessToModel, k as createFetchTransport, l as AgentTimelineToolGroupItem, m as ChatMessageProps, n as AgentTimelineArtifactItem, o as AgentTimelineProps, p as ChatMessage, r as AgentTimelineCustomItem, s as AgentTimelineStatusItem, t as AgentTimeline, u as AgentTimelineToolItem, v as ThinkingIndicator, w as ArtifactAgentDockTransport, x as UserMessageProps, y as ThinkingIndicatorProps, z as ReasoningLevel } from "./index-DiyLLZuJ.js";
|
|
2
|
+
export { type AgentProfileCapability, type AgentProfileDraft, type AgentProfileOption, AgentProfilePicker, type AgentProfilePickerProps, AgentTimeline, type AgentTimelineArtifactItem, type AgentTimelineCustomItem, type AgentTimelineItem, type AgentTimelineMessageItem, type AgentTimelineProps, type AgentTimelineStatusItem, type AgentTimelineTone, type AgentTimelineToolGroupItem, type AgentTimelineToolItem, ArtifactAgentDock, type ArtifactAgentDockProps, type ArtifactAgentDockTransport, type ArtifactDockMessage, type ArtifactDockStreamEvent, type ArtifactKind, type ArtifactScope, ChatContainer, type ChatContainerProps, ChatMessage, type ChatMessageProps, DEFAULT_REASONING_LEVEL_OPTIONS, HARNESS_REASONING_OPTIONS, MessageList, type MessageListProps, type MessageRole, type ReasoningLevel, type ReasoningLevelOption, ReasoningLevelPicker, type ReasoningLevelPickerProps, ThinkingIndicator, type ThinkingIndicatorProps, UserMessage, type UserMessageProps, createFetchTransport, modelProvider, snapHarnessToModel };
|
package/dist/chat.js
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
AgentTimeline,
|
|
4
|
-
ArtifactAgentDock,
|
|
5
|
-
ChatContainer,
|
|
6
|
-
ChatMessage,
|
|
7
|
-
DEFAULT_REASONING_LEVEL_OPTIONS,
|
|
8
|
-
HARNESS_REASONING_OPTIONS,
|
|
9
|
-
MessageList,
|
|
10
|
-
ReasoningLevelPicker,
|
|
11
|
-
ThinkingIndicator,
|
|
12
|
-
UserMessage,
|
|
13
|
-
createFetchTransport,
|
|
14
|
-
modelProvider,
|
|
15
|
-
snapHarnessToModel
|
|
16
|
-
} from "./chunk-TADGS4Q7.js";
|
|
17
|
-
import "./chunk-EI44GEQ5.js";
|
|
18
|
-
import "./chunk-CZ7CSFO4.js";
|
|
19
|
-
export {
|
|
20
|
-
AgentProfilePicker,
|
|
21
|
-
AgentTimeline,
|
|
22
|
-
ArtifactAgentDock,
|
|
23
|
-
ChatContainer,
|
|
24
|
-
ChatMessage,
|
|
25
|
-
DEFAULT_REASONING_LEVEL_OPTIONS,
|
|
26
|
-
HARNESS_REASONING_OPTIONS,
|
|
27
|
-
MessageList,
|
|
28
|
-
ReasoningLevelPicker,
|
|
29
|
-
ThinkingIndicator,
|
|
30
|
-
UserMessage,
|
|
31
|
-
createFetchTransport,
|
|
32
|
-
modelProvider,
|
|
33
|
-
snapHarnessToModel
|
|
34
|
-
};
|
|
1
|
+
import { a as ThinkingIndicator, c as createFetchTransport, d as AgentProfilePicker, f as DEFAULT_REASONING_LEVEL_OPTIONS, i as MessageList, l as modelProvider, m as ReasoningLevelPicker, n as ChatContainer, o as UserMessage, p as HARNESS_REASONING_OPTIONS, r as ChatMessage, s as ArtifactAgentDock, t as AgentTimeline, u as snapHarnessToModel } from "./chat-BOvFAe6p.js";
|
|
2
|
+
export { AgentProfilePicker, AgentTimeline, ArtifactAgentDock, ChatContainer, ChatMessage, DEFAULT_REASONING_LEVEL_OPTIONS, HARNESS_REASONING_OPTIONS, MessageList, ReasoningLevelPicker, ThinkingIndicator, UserMessage, createFetchTransport, modelProvider, snapHarnessToModel };
|
package/dist/connectors.d.ts
CHANGED
|
@@ -1,71 +1,74 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
//#region src/connectors/types.d.ts
|
|
4
3
|
/** One invokable action a connector exposes (the platform's hub tool shape, decoupled from any client). */
|
|
5
4
|
interface ConnectorAction {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
path: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
inputSchema?: unknown;
|
|
9
|
+
outputSchema?: unknown;
|
|
10
|
+
risk?: "read" | "write" | "destructive" | "unknown";
|
|
12
11
|
}
|
|
13
12
|
/** One row in the connector catalog browse list. */
|
|
14
13
|
interface ConnectorCatalogEntry {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
providerId: string;
|
|
15
|
+
title: string;
|
|
16
|
+
category?: string | null;
|
|
17
|
+
categoryLabel?: string | null;
|
|
18
|
+
authKind?: string | null;
|
|
19
|
+
authKindLabel?: string | null;
|
|
20
|
+
actionCount?: number | null;
|
|
21
|
+
triggerCount?: number | null;
|
|
22
|
+
connected?: boolean;
|
|
24
23
|
}
|
|
25
|
-
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/connectors/action-list.d.ts
|
|
26
26
|
interface ConnectorActionListProps {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
actions: ConnectorAction[];
|
|
28
|
+
/** Connector display title; a leading "<title>: " prefix is stripped from action titles. */
|
|
29
|
+
providerTitle: string;
|
|
30
|
+
/** Renders the "Build with assistant" button when provided; called with the action. */
|
|
31
|
+
onBuildWithAssistant?: (action: ConnectorAction) => void;
|
|
32
|
+
/** True when the action list may be truncated at the fetch limit — the count renders "N+". */
|
|
33
|
+
maybeTruncated?: boolean;
|
|
34
|
+
className?: string;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Searchable list of a connector's invokable actions. Each row expands to show
|
|
38
38
|
* the action's path, input/output schemas, and copy/build affordances. Purely
|
|
39
39
|
* presentational — the host supplies the actions and the assistant hook.
|
|
40
40
|
*/
|
|
41
|
-
declare function ConnectorActionList({ actions, providerTitle, onBuildWithAssistant, maybeTruncated, className
|
|
42
|
-
|
|
41
|
+
export declare function ConnectorActionList({ actions, providerTitle, onBuildWithAssistant, maybeTruncated, className }: ConnectorActionListProps): import("react").JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/connectors/catalog-list.d.ts
|
|
43
44
|
interface ConnectorCatalogListProps {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
entries: ConnectorCatalogEntry[];
|
|
46
|
+
/** Resolve the href for a connector's detail surface (rendered on each row's <a>). */
|
|
47
|
+
getConnectorHref: (providerId: string) => string;
|
|
48
|
+
/** SPA navigation: when provided, row clicks preventDefault and call this instead of following the href. */
|
|
49
|
+
onOpenConnector?: (providerId: string) => void;
|
|
50
|
+
/** Host-owned brand icon per provider (e.g. platform's HubProviderIcon); fallback is a neutral chip. */
|
|
51
|
+
renderIcon?: (providerId: string) => ReactNode;
|
|
52
|
+
/** "Request an integration" affordance, receives the current search text; button hidden when absent. */
|
|
53
|
+
onRequestIntegration?: (prefill: string) => void;
|
|
54
|
+
className?: string;
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
57
|
* Searchable/filterable browse list over every connector the host exposes.
|
|
57
58
|
* Each row links into the connector's detail surface; connect/disconnect and
|
|
58
59
|
* data fetching stay with the host — this list is for discovery.
|
|
59
60
|
*/
|
|
60
|
-
declare function ConnectorCatalogList({ entries, getConnectorHref, onOpenConnector, renderIcon, onRequestIntegration, className
|
|
61
|
-
|
|
61
|
+
export declare function ConnectorCatalogList({ entries, getConnectorHref, onOpenConnector, renderIcon, onRequestIntegration, className }: ConnectorCatalogListProps): import("react").JSX.Element;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/connectors/schema-table.d.ts
|
|
62
64
|
interface SchemaTableProps {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
schema: unknown;
|
|
66
|
+
/** Toggle/table caption, e.g. "Input" or "Output". */
|
|
67
|
+
label: string;
|
|
66
68
|
}
|
|
67
|
-
declare function SchemaTable({ schema, label }: SchemaTableProps):
|
|
68
|
-
|
|
69
|
+
export declare function SchemaTable({ schema, label }: SchemaTableProps): import("react").JSX.Element;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/connectors/integration-step-yaml.d.ts
|
|
69
72
|
/**
|
|
70
73
|
* Mechanical `integration.invoke` step-YAML stub for a hub action, derived
|
|
71
74
|
* entirely from the action's JSON input schema: the step shape the workflow
|
|
@@ -75,6 +78,6 @@ declare function SchemaTable({ schema, label }: SchemaTableProps): React.JSX.Ele
|
|
|
75
78
|
*/
|
|
76
79
|
/** The `- integration.invoke:` step block for an action, ready to paste into a
|
|
77
80
|
* workflow's `do:` list. */
|
|
78
|
-
declare function integrationStepYaml(path: string, inputSchema: unknown): string;
|
|
79
|
-
|
|
80
|
-
export {
|
|
81
|
+
export declare function integrationStepYaml(path: string, inputSchema: unknown): string;
|
|
82
|
+
//#endregion
|
|
83
|
+
export type { ConnectorAction, ConnectorActionListProps, ConnectorCatalogEntry, ConnectorCatalogListProps, SchemaTableProps };
|