@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
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ReasoningEffort } from "@tangle-network/agent-interface";
|
|
2
|
+
//#region src/lib/model-brand.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Wire-format model entry as returned by `/v1/models` on the Tangle Router
|
|
5
|
+
* (and most OpenAI-compatible gateways). Field names match the upstream
|
|
6
|
+
* response so consumers can pass `data.data` straight through.
|
|
7
|
+
*/
|
|
8
|
+
interface ModelInfo {
|
|
9
|
+
/** Provider-local id, e.g. "gpt-5.4" or "anthropic/claude-sonnet-4-6". */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Human label (defaults to id if absent). */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Provider key, e.g. "openai", "anthropic". Underscored for compat with router. */
|
|
14
|
+
_provider?: string;
|
|
15
|
+
/** Alternative provider field on some gateways. */
|
|
16
|
+
provider?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Per-token prices in USD as decimal strings. Multiply by 1_000_000 for
|
|
19
|
+
* the conventional $/M tokens display.
|
|
20
|
+
*/
|
|
21
|
+
pricing?: {
|
|
22
|
+
prompt?: string | null;
|
|
23
|
+
completion?: string | null;
|
|
24
|
+
};
|
|
25
|
+
context_length?: number;
|
|
26
|
+
description?: string | null;
|
|
27
|
+
architecture?: {
|
|
28
|
+
modality?: string;
|
|
29
|
+
input_modalities?: string[];
|
|
30
|
+
output_modalities?: string[];
|
|
31
|
+
};
|
|
32
|
+
/** Hosting company or router that serves the request. Defaults to `_provider` / `provider`. */
|
|
33
|
+
hostProvider?: string;
|
|
34
|
+
/** Lab/company that authored the model. Inferred from model id/name when omitted. */
|
|
35
|
+
modelLab?: string;
|
|
36
|
+
/** Optional explicit logo keys when provider/lab ids are not stable. */
|
|
37
|
+
logos?: {
|
|
38
|
+
host?: ModelBrandKey;
|
|
39
|
+
lab?: ModelBrandKey;
|
|
40
|
+
hostUrl?: string;
|
|
41
|
+
labUrl?: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Marks a model as recommended. When any catalog row carries this flag a
|
|
45
|
+
* picker can surface those rows in a "Recommended" section at the top.
|
|
46
|
+
*/
|
|
47
|
+
featured?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Per-model reasoning capability, fed to the reasoning-effort picker's capability filter. Source it
|
|
50
|
+
* from your model catalog (e.g. the router's `supported_parameters` containing `reasoning`). When
|
|
51
|
+
* `false`, only `none` is offered for this model regardless of harness.
|
|
52
|
+
*/
|
|
53
|
+
supportsReasoning?: boolean;
|
|
54
|
+
/** The model's own reasoning ceiling, if narrower than its harness's (e.g. a model capped at `high`). */
|
|
55
|
+
maxReasoningEffort?: ReasoningEffort;
|
|
56
|
+
}
|
|
57
|
+
type ModelBrandKey = "ai21" | "alibaba" | "anthropic" | "azure" | "bedrock" | "cartesia" | "cerebras" | "cohere" | "deepseek" | "elevenlabs" | "fal" | "fireworks" | "google" | "groq" | "kuaishou" | "luma" | "meta" | "mistral" | "moonshot" | "openai" | "openrouter" | "perplexity" | "pika" | "replicate" | "runway" | "stability" | "tangle" | "tcloud" | "together" | "vertex" | "xai" | "zai" | "unknown";
|
|
58
|
+
interface ModelBrandIdentity {
|
|
59
|
+
host: ModelBrandInfo;
|
|
60
|
+
lab: ModelBrandInfo;
|
|
61
|
+
combined: boolean;
|
|
62
|
+
}
|
|
63
|
+
interface ModelBrandInfo {
|
|
64
|
+
key: ModelBrandKey;
|
|
65
|
+
label: string;
|
|
66
|
+
logoUrl?: string;
|
|
67
|
+
logo?: "tangle";
|
|
68
|
+
/**
|
|
69
|
+
* True for the bundled single-color brand glyphs, which are rendered as a
|
|
70
|
+
* CSS mask filled with the foreground token so they stay visible in both
|
|
71
|
+
* themes. Caller-supplied logo URLs (`ModelInfo.logos.*Url`) may be
|
|
72
|
+
* full-color artwork and are rendered as-is.
|
|
73
|
+
*/
|
|
74
|
+
monochrome?: boolean;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Resolve the canonical id for a model. Some upstreams already prefix the
|
|
78
|
+
* provider in the id (e.g. "anthropic/claude-haiku-4.5"); others put it in
|
|
79
|
+
* `_provider` and leave the id bare. Always returns "<provider>/<model>"
|
|
80
|
+
* unless the id is already prefixed.
|
|
81
|
+
*/
|
|
82
|
+
declare function canonicalModelId(model: ModelInfo): string;
|
|
83
|
+
/**
|
|
84
|
+
* The brand identity to show for a model id, or `null` when no published mark
|
|
85
|
+
* exists for it — a caller then falls back to its own generic glyph rather than
|
|
86
|
+
* rendering an empty chip or inventing a logo.
|
|
87
|
+
*
|
|
88
|
+
* Takes the bare id ("anthropic/claude-sonnet-4-5") so a surface that knows only
|
|
89
|
+
* the model string — a workflow node, a run header — can render the same mark the
|
|
90
|
+
* picker does.
|
|
91
|
+
*/
|
|
92
|
+
declare function modelBrandFor(model: string): ModelBrandIdentity | null;
|
|
93
|
+
declare function ModelBrandStack({ identity, size }: {
|
|
94
|
+
identity: ModelBrandIdentity;
|
|
95
|
+
size: "sm" | "md";
|
|
96
|
+
}): import("react").JSX.Element | null;
|
|
97
|
+
//#endregion
|
|
98
|
+
export { modelBrandFor as a, canonicalModelId as i, ModelBrandStack as n, ModelInfo as r, ModelBrandIdentity as t };
|