@tangle-network/agent-app 0.60.140 → 0.60.141
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/assistant/index.js +10 -10
- package/dist/chat-react/index.js +5 -5
- package/dist/chatgpt-react/index.js +1 -1
- package/dist/{chunk-GE7Y7ODP.js → chunk-AA4FKEQW.js} +2 -2
- package/dist/{chunk-GHOXLL2T.js → chunk-CW6F6GDP.js} +3 -3
- package/dist/{chunk-JTBPQEGM.js → chunk-EGEULRT2.js} +2 -2
- package/dist/{chunk-NTSZGBHZ.js → chunk-ILZQAXJH.js} +2 -2
- package/dist/{chunk-2DJSGH52.js → chunk-MOFLIBQW.js} +3 -3
- package/dist/{chunk-WTHMHOU2.js → chunk-R5K5ML3Q.js} +2 -2
- package/dist/chunk-RASGKEAL.js +40 -0
- package/dist/chunk-RASGKEAL.js.map +1 -0
- package/dist/{chunk-ZBKUJXD7.js → chunk-S5QRYJW5.js} +3 -3
- package/dist/{chunk-T6BAHD5S.js → chunk-XSPUKVHF.js} +3 -3
- package/dist/{chunk-WAMJU3G4.js → chunk-ZEMO7S2G.js} +4 -4
- package/dist/{mention-editor-2WLBHH3A.js → mention-editor-JO2Y6C6S.js} +3 -3
- package/dist/studio-react/index.js +4 -4
- package/dist/web-react/agent-profile-editor.js +5 -5
- package/dist/web-react/index.js +10 -10
- package/dist/web-react/provider-logo.d.ts +7 -6
- package/dist/workspace-react/index.js +5 -5
- package/package.json +2 -2
- package/dist/chunk-MLG6XKPV.js +0 -44
- package/dist/chunk-MLG6XKPV.js.map +0 -1
- /package/dist/{chunk-GE7Y7ODP.js.map → chunk-AA4FKEQW.js.map} +0 -0
- /package/dist/{chunk-GHOXLL2T.js.map → chunk-CW6F6GDP.js.map} +0 -0
- /package/dist/{chunk-JTBPQEGM.js.map → chunk-EGEULRT2.js.map} +0 -0
- /package/dist/{chunk-NTSZGBHZ.js.map → chunk-ILZQAXJH.js.map} +0 -0
- /package/dist/{chunk-2DJSGH52.js.map → chunk-MOFLIBQW.js.map} +0 -0
- /package/dist/{chunk-WTHMHOU2.js.map → chunk-R5K5ML3Q.js.map} +0 -0
- /package/dist/{chunk-ZBKUJXD7.js.map → chunk-S5QRYJW5.js.map} +0 -0
- /package/dist/{chunk-T6BAHD5S.js.map → chunk-XSPUKVHF.js.map} +0 -0
- /package/dist/{chunk-WAMJU3G4.js.map → chunk-ZEMO7S2G.js.map} +0 -0
- /package/dist/{mention-editor-2WLBHH3A.js.map → mention-editor-JO2Y6C6S.js.map} +0 -0
package/dist/assistant/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chatToolCallPart
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-EGEULRT2.js";
|
|
4
|
+
import "../chunk-MOFLIBQW.js";
|
|
5
5
|
import "../chunk-3HUFJ5LO.js";
|
|
6
6
|
import "../chunk-FBVLEGEG.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-CW6F6GDP.js";
|
|
8
|
+
import "../chunk-ILZQAXJH.js";
|
|
9
9
|
import "../chunk-E4AY62T2.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-S5QRYJW5.js";
|
|
11
11
|
import "../chunk-Y6PRDUFJ.js";
|
|
12
12
|
import "../chunk-GEYACSFW.js";
|
|
13
13
|
import {
|
|
14
14
|
ChatComposer
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-ZEMO7S2G.js";
|
|
16
16
|
import "../chunk-L7MB2LLM.js";
|
|
17
17
|
import "../chunk-SJWIZT7B.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-XSPUKVHF.js";
|
|
19
|
+
import "../chunk-R5K5ML3Q.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelPicker
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-AA4FKEQW.js";
|
|
23
|
+
import "../chunk-RASGKEAL.js";
|
|
24
24
|
import {
|
|
25
25
|
AsyncView
|
|
26
26
|
} from "../chunk-LSUELMHY.js";
|
package/dist/chat-react/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComposerModeControls,
|
|
3
3
|
EntryComposer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZEMO7S2G.js";
|
|
5
5
|
import "../chunk-L7MB2LLM.js";
|
|
6
6
|
import "../chunk-SJWIZT7B.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-XSPUKVHF.js";
|
|
8
|
+
import "../chunk-R5K5ML3Q.js";
|
|
9
|
+
import "../chunk-AA4FKEQW.js";
|
|
10
|
+
import "../chunk-RASGKEAL.js";
|
|
11
11
|
import "../chunk-WTC6AOPL.js";
|
|
12
12
|
import "../chunk-WVESWAJJ.js";
|
|
13
13
|
import "../chunk-AMUXRAUO.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProviderLogo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RASGKEAL.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_RECOMMENDED_MODELS,
|
|
6
6
|
sortModelsByFreshness
|
|
@@ -727,4 +727,4 @@ export {
|
|
|
727
727
|
EffortMeter,
|
|
728
728
|
EffortPicker
|
|
729
729
|
};
|
|
730
|
-
//# sourceMappingURL=chunk-
|
|
730
|
+
//# sourceMappingURL=chunk-AA4FKEQW.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePopoverDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R5K5ML3Q.js";
|
|
4
4
|
import {
|
|
5
5
|
CheckGlyph,
|
|
6
6
|
OVERLAY_SHADOW,
|
|
7
7
|
PopoverSurface
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AA4FKEQW.js";
|
|
9
9
|
|
|
10
10
|
// src/web-react/workspace-switcher.tsx
|
|
11
11
|
import { useCallback, useState } from "react";
|
|
@@ -116,4 +116,4 @@ export {
|
|
|
116
116
|
WorkspaceSwitcher,
|
|
117
117
|
WorkspaceInitial
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=chunk-
|
|
119
|
+
//# sourceMappingURL=chunk-CW6F6GDP.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
PopoverSurface,
|
|
28
28
|
usePending,
|
|
29
29
|
usePopover
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AA4FKEQW.js";
|
|
31
31
|
import {
|
|
32
32
|
AsyncView
|
|
33
33
|
} from "./chunk-LSUELMHY.js";
|
|
@@ -6804,4 +6804,4 @@ export {
|
|
|
6804
6804
|
useThinkingSeconds,
|
|
6805
6805
|
ChatMessages
|
|
6806
6806
|
};
|
|
6807
|
-
//# sourceMappingURL=chunk-
|
|
6807
|
+
//# sourceMappingURL=chunk-EGEULRT2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OVERLAY_SHADOW
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AA4FKEQW.js";
|
|
4
4
|
|
|
5
5
|
// src/web-react/action-dialog.tsx
|
|
6
6
|
import { useEffect } from "react";
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
ActionDialogButton,
|
|
76
76
|
ActionDialog
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-ILZQAXJH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ActionDialog,
|
|
3
3
|
ActionDialogButton
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ILZQAXJH.js";
|
|
5
5
|
import {
|
|
6
6
|
UNTITLED_SESSION_LABEL,
|
|
7
7
|
mergeSessionPages,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
OVERLAY_SHADOW,
|
|
12
12
|
PopoverSurface,
|
|
13
13
|
usePopover
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AA4FKEQW.js";
|
|
15
15
|
|
|
16
16
|
// src/web-react/session-history.tsx
|
|
17
17
|
import {
|
|
@@ -746,4 +746,4 @@ export {
|
|
|
746
746
|
formatSessionTimestamp,
|
|
747
747
|
SessionHistoryPanel
|
|
748
748
|
};
|
|
749
|
-
//# sourceMappingURL=chunk-
|
|
749
|
+
//# sourceMappingURL=chunk-MOFLIBQW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePopover
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AA4FKEQW.js";
|
|
4
4
|
|
|
5
5
|
// src/web-react/popover-dialog.ts
|
|
6
6
|
import { useEffect, useId } from "react";
|
|
@@ -45,4 +45,4 @@ function usePopoverDialog(open, onOpenChange) {
|
|
|
45
45
|
export {
|
|
46
46
|
usePopoverDialog
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-R5K5ML3Q.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// src/web-react/provider-logo.tsx
|
|
2
|
+
import { ProviderMark } from "@tangle-network/sandbox-ui/dashboard";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
var ALIASES = {
|
|
5
|
+
moonshot: "moonshotai",
|
|
6
|
+
deepseek_ai: "deepseek",
|
|
7
|
+
"x-ai": "xai",
|
|
8
|
+
"meta-llama": "meta"
|
|
9
|
+
};
|
|
10
|
+
var MONOGRAM = {
|
|
11
|
+
cohere: { bg: "#fae8ff", fg: "#c026d3" },
|
|
12
|
+
groq: { bg: "#fce7f3", fg: "#db2777" },
|
|
13
|
+
cerebras: { bg: "#ccfbf1", fg: "#0d9488" },
|
|
14
|
+
zai: { bg: "#ede9fe", fg: "#7c3aed" },
|
|
15
|
+
"z-ai": { bg: "#ede9fe", fg: "#7c3aed" },
|
|
16
|
+
tuner: { bg: "#dbeafe", fg: "#2563eb" }
|
|
17
|
+
};
|
|
18
|
+
function Monogram({ name, size }) {
|
|
19
|
+
const mono = MONOGRAM[name];
|
|
20
|
+
return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 16 16", role: "img", "aria-label": name || "model", children: [
|
|
21
|
+
/* @__PURE__ */ jsx("rect", { width: "16", height: "16", rx: "4", style: { fill: mono ? mono.bg : "hsl(var(--secondary))" } }),
|
|
22
|
+
/* @__PURE__ */ jsx("text", { x: "8", y: "11.6", textAnchor: "middle", style: { fill: mono ? mono.fg : "hsl(var(--muted-foreground))" }, fontSize: "9", fontWeight: "700", fontFamily: "system-ui, sans-serif", children: (name || "?").charAt(0).toUpperCase() })
|
|
23
|
+
] });
|
|
24
|
+
}
|
|
25
|
+
function ProviderLogo({ provider, size = 16 }) {
|
|
26
|
+
const key = ALIASES[provider ?? ""] ?? provider ?? "";
|
|
27
|
+
return /* @__PURE__ */ jsx(
|
|
28
|
+
ProviderMark,
|
|
29
|
+
{
|
|
30
|
+
provider: key,
|
|
31
|
+
size: size <= 14 ? "xs" : size <= 20 ? "sm" : "md",
|
|
32
|
+
fallback: /* @__PURE__ */ jsx(Monogram, { name: key, size })
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
ProviderLogo
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=chunk-RASGKEAL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/web-react/provider-logo.tsx"],"sourcesContent":["/**\n * Provider and model-maker marks. The marks themselves live in one table,\n * sandbox-ui's `ProviderMark` (the bundled lobehub set: Anthropic, OpenAI,\n * Google, Kling, Runway, ByteDance, Lightricks, …), so chat, Studio and every\n * picker show the same glyph. A provider with no bundled mark falls back to a\n * tinted monogram chip. Aliases (z-ai/zai, moonshot/moonshotai, x-ai/xai)\n * normalize to one entry first.\n */\n\nimport type { ReactNode } from 'react'\nimport { ProviderMark } from '@tangle-network/sandbox-ui/dashboard'\n\nconst ALIASES: Record<string, string> = {\n moonshot: 'moonshotai',\n deepseek_ai: 'deepseek',\n 'x-ai': 'xai',\n 'meta-llama': 'meta',\n}\n\nconst MONOGRAM: Record<string, { bg: string; fg: string }> = {\n cohere: { bg: '#fae8ff', fg: '#c026d3' },\n groq: { bg: '#fce7f3', fg: '#db2777' },\n cerebras: { bg: '#ccfbf1', fg: '#0d9488' },\n zai: { bg: '#ede9fe', fg: '#7c3aed' },\n 'z-ai': { bg: '#ede9fe', fg: '#7c3aed' },\n tuner: { bg: '#dbeafe', fg: '#2563eb' },\n}\n\nexport interface ProviderLogoProps {\n provider?: string\n size?: number\n}\n\nfunction Monogram({ name, size }: { name: string; size: number }) {\n // Unknown providers get a neutral monogram drawn from theme tokens (secondary\n // tile, muted glyph); `style` rather than `fill` so the var() references resolve.\n const mono = MONOGRAM[name]\n return (\n <svg width={size} height={size} viewBox=\"0 0 16 16\" role=\"img\" aria-label={name || 'model'}>\n <rect width=\"16\" height=\"16\" rx=\"4\" style={{ fill: mono ? mono.bg : 'hsl(var(--secondary))' }} />\n <text x=\"8\" y=\"11.6\" textAnchor=\"middle\" style={{ fill: mono ? mono.fg : 'hsl(var(--muted-foreground))' }} fontSize=\"9\" fontWeight=\"700\" fontFamily=\"system-ui, sans-serif\">\n {(name || '?').charAt(0).toUpperCase()}\n </text>\n </svg>\n )\n}\n\n/** The shared brand mark when one is bundled; a tinted monogram otherwise. */\nexport function ProviderLogo({ provider, size = 16 }: ProviderLogoProps): ReactNode {\n const key = ALIASES[provider ?? ''] ?? provider ?? ''\n return (\n <ProviderMark\n provider={key}\n size={size <= 14 ? 'xs' : size <= 20 ? 'sm' : 'md'}\n fallback={<Monogram name={key} size={size} />}\n />\n )\n}\n"],"mappings":";AAUA,SAAS,oBAAoB;AA4BzB,SACE,KADF;AA1BJ,IAAM,UAAkC;AAAA,EACtC,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,cAAc;AAChB;AAEA,IAAM,WAAuD;AAAA,EAC3D,QAAQ,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACvC,MAAM,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACrC,UAAU,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACzC,KAAK,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACpC,QAAQ,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACvC,OAAO,EAAE,IAAI,WAAW,IAAI,UAAU;AACxC;AAOA,SAAS,SAAS,EAAE,MAAM,KAAK,GAAmC;AAGhE,QAAM,OAAO,SAAS,IAAI;AAC1B,SACE,qBAAC,SAAI,OAAO,MAAM,QAAQ,MAAM,SAAQ,aAAY,MAAK,OAAM,cAAY,QAAQ,SACjF;AAAA,wBAAC,UAAK,OAAM,MAAK,QAAO,MAAK,IAAG,KAAI,OAAO,EAAE,MAAM,OAAO,KAAK,KAAK,wBAAwB,GAAG;AAAA,IAC/F,oBAAC,UAAK,GAAE,KAAI,GAAE,QAAO,YAAW,UAAS,OAAO,EAAE,MAAM,OAAO,KAAK,KAAK,+BAA+B,GAAG,UAAS,KAAI,YAAW,OAAM,YAAW,yBAChJ,mBAAQ,KAAK,OAAO,CAAC,EAAE,YAAY,GACvC;AAAA,KACF;AAEJ;AAGO,SAAS,aAAa,EAAE,UAAU,OAAO,GAAG,GAAiC;AAClF,QAAM,MAAM,QAAQ,YAAY,EAAE,KAAK,YAAY;AACnD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,MAAM,QAAQ,KAAK,OAAO,QAAQ,KAAK,OAAO;AAAA,MAC9C,UAAU,oBAAC,YAAS,MAAM,KAAK,MAAY;AAAA;AAAA,EAC7C;AAEJ;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HarnessPicker,
|
|
3
3
|
filterAcceptedFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XSPUKVHF.js";
|
|
5
5
|
import {
|
|
6
6
|
EffortPicker,
|
|
7
7
|
ModelPicker,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
POPOVER_OPTION_FOCUS,
|
|
10
10
|
PopoverSurface,
|
|
11
11
|
effortLevelsFromIds
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AA4FKEQW.js";
|
|
13
13
|
import {
|
|
14
14
|
isModelCompatibleWithHarness,
|
|
15
15
|
snapModelToHarness
|
|
@@ -2210,4 +2210,4 @@ export {
|
|
|
2210
2210
|
AGENT_PROFILE_EDITOR_SECTIONS,
|
|
2211
2211
|
AgentProfileEditor
|
|
2212
2212
|
};
|
|
2213
|
-
//# sourceMappingURL=chunk-
|
|
2213
|
+
//# sourceMappingURL=chunk-S5QRYJW5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePopoverDialog
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R5K5ML3Q.js";
|
|
4
4
|
import {
|
|
5
5
|
CheckGlyph,
|
|
6
6
|
EffortPicker,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
pickerRootClass,
|
|
12
12
|
quietPickerTriggerClass,
|
|
13
13
|
usePopover
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AA4FKEQW.js";
|
|
15
15
|
import {
|
|
16
16
|
snapHarnessToModel,
|
|
17
17
|
snapModelToHarness
|
|
@@ -576,4 +576,4 @@ export {
|
|
|
576
576
|
HarnessPicker,
|
|
577
577
|
AgentSessionControls
|
|
578
578
|
};
|
|
579
|
-
//# sourceMappingURL=chunk-
|
|
579
|
+
//# sourceMappingURL=chunk-XSPUKVHF.js.map
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
filterAcceptedFiles,
|
|
11
11
|
isAcceptedFileType,
|
|
12
12
|
renamePastedImages
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XSPUKVHF.js";
|
|
14
14
|
import {
|
|
15
15
|
OVERLAY_SHADOW,
|
|
16
16
|
POPOVER_OPTION_FOCUS,
|
|
17
17
|
PopoverSurface
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AA4FKEQW.js";
|
|
19
19
|
import {
|
|
20
20
|
ATTACHMENT_ACCEPT,
|
|
21
21
|
ATTACHMENT_MAX_COUNT,
|
|
@@ -267,7 +267,7 @@ import {
|
|
|
267
267
|
import { focusFieldWithin } from "@tangle-network/ui/utils";
|
|
268
268
|
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
269
269
|
function createLazyMentionEditor() {
|
|
270
|
-
return lazy2(() => import("./mention-editor-
|
|
270
|
+
return lazy2(() => import("./mention-editor-JO2Y6C6S.js").then((m) => m.loadMentionEditor()));
|
|
271
271
|
}
|
|
272
272
|
var IS_APPLE_PLATFORM = typeof navigator !== "undefined" && /Mac|iPhone|iPad|iPod/i.test(navigator.platform);
|
|
273
273
|
function SendGlyph({ className }) {
|
|
@@ -1552,4 +1552,4 @@ export {
|
|
|
1552
1552
|
ComposerModeControls,
|
|
1553
1553
|
EntryComposer
|
|
1554
1554
|
};
|
|
1555
|
-
//# sourceMappingURL=chunk-
|
|
1555
|
+
//# sourceMappingURL=chunk-ZEMO7S2G.js.map
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
} from "./chunk-L7MB2LLM.js";
|
|
11
11
|
import {
|
|
12
12
|
PopoverSurface
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-AA4FKEQW.js";
|
|
14
|
+
import "./chunk-RASGKEAL.js";
|
|
15
15
|
import "./chunk-AMUXRAUO.js";
|
|
16
16
|
|
|
17
17
|
// src/web-react/mention-editor.tsx
|
|
@@ -538,4 +538,4 @@ export {
|
|
|
538
538
|
loadMentionEditor,
|
|
539
539
|
loadTiptapModules
|
|
540
540
|
};
|
|
541
|
-
//# sourceMappingURL=mention-editor-
|
|
541
|
+
//# sourceMappingURL=mention-editor-JO2Y6C6S.js.map
|
|
@@ -39,8 +39,8 @@ import {
|
|
|
39
39
|
} from "../chunk-6PRQ45QE.js";
|
|
40
40
|
import {
|
|
41
41
|
useInfiniteScroll
|
|
42
|
-
} from "../chunk-
|
|
43
|
-
import "../chunk-
|
|
42
|
+
} from "../chunk-MOFLIBQW.js";
|
|
43
|
+
import "../chunk-ILZQAXJH.js";
|
|
44
44
|
import "../chunk-SJWIZT7B.js";
|
|
45
45
|
import {
|
|
46
46
|
CheckGlyph,
|
|
@@ -51,10 +51,10 @@ import {
|
|
|
51
51
|
POPOVER_SURFACE_ATTR,
|
|
52
52
|
PopoverSurface,
|
|
53
53
|
usePopover
|
|
54
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-AA4FKEQW.js";
|
|
55
55
|
import {
|
|
56
56
|
ProviderLogo
|
|
57
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-RASGKEAL.js";
|
|
58
58
|
import "../chunk-AMUXRAUO.js";
|
|
59
59
|
|
|
60
60
|
// src/studio-react/use-studio-generations.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_PROFILE_EDITOR_SECTIONS,
|
|
3
3
|
AgentProfileEditor
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-S5QRYJW5.js";
|
|
5
|
+
import "../chunk-XSPUKVHF.js";
|
|
6
|
+
import "../chunk-R5K5ML3Q.js";
|
|
7
|
+
import "../chunk-AA4FKEQW.js";
|
|
8
|
+
import "../chunk-RASGKEAL.js";
|
|
9
9
|
import "../chunk-WVESWAJJ.js";
|
|
10
10
|
import "../chunk-B7CL7ENS.js";
|
|
11
11
|
import "../chunk-PV33JZKV.js";
|
package/dist/web-react/index.js
CHANGED
|
@@ -138,14 +138,14 @@ import {
|
|
|
138
138
|
withoutRecordGridCreated,
|
|
139
139
|
withoutRecordGridRemoved,
|
|
140
140
|
withoutRecordGridUpdate
|
|
141
|
-
} from "../chunk-
|
|
141
|
+
} from "../chunk-EGEULRT2.js";
|
|
142
142
|
import {
|
|
143
143
|
SessionHistoryPanel,
|
|
144
144
|
formatSessionTimestamp,
|
|
145
145
|
useInfiniteScroll,
|
|
146
146
|
useSessionActions,
|
|
147
147
|
useSessionHistory
|
|
148
|
-
} from "../chunk-
|
|
148
|
+
} from "../chunk-MOFLIBQW.js";
|
|
149
149
|
import {
|
|
150
150
|
MENTION_PILL_CLASS
|
|
151
151
|
} from "../chunk-3HUFJ5LO.js";
|
|
@@ -153,8 +153,8 @@ import "../chunk-FBVLEGEG.js";
|
|
|
153
153
|
import {
|
|
154
154
|
WorkspaceInitial,
|
|
155
155
|
WorkspaceSwitcher
|
|
156
|
-
} from "../chunk-
|
|
157
|
-
import "../chunk-
|
|
156
|
+
} from "../chunk-CW6F6GDP.js";
|
|
157
|
+
import "../chunk-ILZQAXJH.js";
|
|
158
158
|
import {
|
|
159
159
|
tabTerminalConnectionId,
|
|
160
160
|
useSandboxTerminalConnection
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
AGENT_PROFILE_EDITOR_SECTIONS,
|
|
164
164
|
AgentProfileEditor,
|
|
165
165
|
AgentProfileRegistryError
|
|
166
|
-
} from "../chunk-
|
|
166
|
+
} from "../chunk-S5QRYJW5.js";
|
|
167
167
|
import {
|
|
168
168
|
EvidenceLineageTable,
|
|
169
169
|
ExceptionList,
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
preloadWhenIdle,
|
|
193
193
|
useComposerAttachments,
|
|
194
194
|
useDictation
|
|
195
|
-
} from "../chunk-
|
|
195
|
+
} from "../chunk-ZEMO7S2G.js";
|
|
196
196
|
import "../chunk-L7MB2LLM.js";
|
|
197
197
|
import "../chunk-SJWIZT7B.js";
|
|
198
198
|
import {
|
|
@@ -204,8 +204,8 @@ import {
|
|
|
204
204
|
filterAcceptedFiles,
|
|
205
205
|
isAcceptedFileType,
|
|
206
206
|
renamePastedImages
|
|
207
|
-
} from "../chunk-
|
|
208
|
-
import "../chunk-
|
|
207
|
+
} from "../chunk-XSPUKVHF.js";
|
|
208
|
+
import "../chunk-R5K5ML3Q.js";
|
|
209
209
|
import {
|
|
210
210
|
DEFAULT_EFFORT_LEVELS,
|
|
211
211
|
EFFORT_METER_SEGMENTS,
|
|
@@ -223,10 +223,10 @@ import {
|
|
|
223
223
|
reconcileEffortLevels,
|
|
224
224
|
usePending,
|
|
225
225
|
usePopover
|
|
226
|
-
} from "../chunk-
|
|
226
|
+
} from "../chunk-AA4FKEQW.js";
|
|
227
227
|
import {
|
|
228
228
|
ProviderLogo
|
|
229
|
-
} from "../chunk-
|
|
229
|
+
} from "../chunk-RASGKEAL.js";
|
|
230
230
|
import "../chunk-LSUELMHY.js";
|
|
231
231
|
import "../chunk-FQYAJYPW.js";
|
|
232
232
|
import {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provider
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
2
|
+
* Provider and model-maker marks. The marks themselves live in one table,
|
|
3
|
+
* sandbox-ui's `ProviderMark` (the bundled lobehub set: Anthropic, OpenAI,
|
|
4
|
+
* Google, Kling, Runway, ByteDance, Lightricks, …), so chat, Studio and every
|
|
5
|
+
* picker show the same glyph. A provider with no bundled mark falls back to a
|
|
6
|
+
* tinted monogram chip. Aliases (z-ai/zai, moonshot/moonshotai, x-ai/xai)
|
|
7
|
+
* normalize to one entry first.
|
|
7
8
|
*/
|
|
8
9
|
import type { ReactNode } from 'react';
|
|
9
10
|
export interface ProviderLogoProps {
|
|
10
11
|
provider?: string;
|
|
11
12
|
size?: number;
|
|
12
13
|
}
|
|
13
|
-
/**
|
|
14
|
+
/** The shared brand mark when one is bundled; a tinted monogram otherwise. */
|
|
14
15
|
export declare function ProviderLogo({ provider, size }: ProviderLogoProps): ReactNode;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkspaceInitial,
|
|
3
3
|
WorkspaceSwitcher
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CW6F6GDP.js";
|
|
5
5
|
import {
|
|
6
6
|
ActionDialog,
|
|
7
7
|
ActionDialogButton
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-ILZQAXJH.js";
|
|
9
9
|
import {
|
|
10
10
|
buildSessionNavItem,
|
|
11
11
|
composeSidebarSessions,
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from "../chunk-SJWIZT7B.js";
|
|
14
14
|
import {
|
|
15
15
|
usePopoverDialog
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-R5K5ML3Q.js";
|
|
17
17
|
import {
|
|
18
18
|
CheckGlyph,
|
|
19
19
|
OVERLAY_SHADOW,
|
|
20
20
|
PopoverSurface,
|
|
21
21
|
usePopover
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-AA4FKEQW.js";
|
|
23
|
+
import "../chunk-RASGKEAL.js";
|
|
24
24
|
import "../chunk-AMUXRAUO.js";
|
|
25
25
|
|
|
26
26
|
// src/workspace-react/index.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-app",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.141",
|
|
4
4
|
"packageManager": "pnpm@11.24.0",
|
|
5
5
|
"description": "Build agent applications with typed chat, tools, sandboxes, integrations, billing, and evaluation.",
|
|
6
6
|
"keywords": [
|
|
@@ -772,7 +772,7 @@
|
|
|
772
772
|
"@tangle-network/brand": ">=1.21.1",
|
|
773
773
|
"@tangle-network/hub-sdk": ">=0.19.3 <0.21.0 || >=0.21.0 <0.22.0 || >=0.22.1 <0.25.0 || >=0.27.0 <0.28.0 || >=0.28.0 <0.29.0",
|
|
774
774
|
"@tangle-network/sandbox": ">=0.45.0 <0.48.0 || ^0.49.0 || ^0.50.0 || ^0.51.0 || ^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || >=0.58.1 <0.60.0 || >=0.60.3 <0.61.0",
|
|
775
|
-
"@tangle-network/sandbox-ui": ">=0.
|
|
775
|
+
"@tangle-network/sandbox-ui": ">=0.134.2 <0.135.0",
|
|
776
776
|
"@tangle-network/ui": ">=11.32.0 <12.0.0",
|
|
777
777
|
"@tiptap/core": ">=3.28.0 <4.0.0",
|
|
778
778
|
"@tiptap/extension-mention": ">=3.28.0 <4.0.0",
|
package/dist/chunk-MLG6XKPV.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// src/web-react/provider-logo.tsx
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
var LOGOS = {
|
|
4
|
-
anthropic: { viewBox: "0 0 24 24", fill: "#D97757", paths: ["M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"] },
|
|
5
|
-
google: { viewBox: "0 0 24 24", fill: "#8E75B2", paths: ["M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"] },
|
|
6
|
-
deepseek: { viewBox: "0 0 24 24", fill: "#4D6BFE", paths: ["M23.748 4.651c-.254-.124-.364.113-.512.233-.051.04-.094.09-.137.137-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.155-.708-.311-.955-.65-.172-.24-.219-.509-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.094.172.187.129.323-.082.28-.18.553-.266.833-.055.179-.137.218-.328.14a5.5 5.5 0 0 1-1.737-1.179c-.857-.828-1.631-1.743-2.597-2.46a12 12 0 0 0-.689-.47c-.985-.957.13-1.743.387-1.836.27-.098.094-.433-.778-.428-.872.003-1.67.295-2.687.685a3 3 0 0 1-.465.136 9.6 9.6 0 0 0-2.883-.101c-1.885.21-3.39 1.1-4.497 2.622C.082 8.776-.231 10.854.152 13.02c.403 2.284 1.568 4.175 3.36 5.653 1.857 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.132-.284 4.994-1.86.47.234.962.328 1.78.398.629.058 1.235-.031 1.705-.129.735-.155.684-.836.418-.961-2.155-1.004-1.682-.595-2.112-.926 1.095-1.295 2.768-3.598 3.284-6.733.05-.346.115-.834.108-1.114-.004-.171.035-.238.23-.257a4.2 4.2 0 0 0 1.545-.475c1.397-.763 1.96-2.016 2.093-3.517.02-.23-.004-.467-.247-.588M11.58 18.168c-2.088-1.642-3.101-2.183-3.52-2.16-.39.024-.32.472-.234.763.09.288.207.487.371.74.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.168-1.361-.801-2.5-1.86-3.301-3.306-.775-1.393-1.225-2.888-1.299-4.482-.02-.385.094-.522.477-.592a4.7 4.7 0 0 1 1.53-.038c2.131.311 3.946 1.264 5.467 2.774.868.86 1.525 1.887 2.202 2.89.72 1.066 1.494 2.082 2.48 2.915.348.291.626.513.892.677-.802.09-2.14.109-3.055-.615zm1.001-6.44a.306.306 0 0 1 .415-.287.3.3 0 0 1 .113.074.3.3 0 0 1 .086.214c0 .17-.136.307-.308.307a.303.303 0 0 1-.306-.307m3.11 1.596c-.2.081-.4.151-.591.16a1.25 1.25 0 0 1-.798-.254c-.274-.23-.47-.358-.551-.758a1.7 1.7 0 0 1 .015-.588c.07-.327-.007-.537-.238-.727-.188-.156-.426-.199-.689-.199a.6.6 0 0 1-.254-.078.253.253 0 0 1-.114-.358 1 1 0 0 1 .192-.21c.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.392.451.462.576.685.915.176.264.336.536.446.848.066.194-.02.353-.25.45"] },
|
|
7
|
-
mistral: { viewBox: "0 0 24 24", fill: "#FA520F", paths: ["M17.143 3.429v3.428h-3.429v3.429h-3.428V6.857H6.857V3.43H3.43v13.714H0v3.428h10.286v-3.428H6.857v-3.429h3.429v3.429h3.429v-3.429h3.428v3.429h-3.428v3.428H24v-3.428h-3.43V3.429z"] },
|
|
8
|
-
xai: { viewBox: "0 0 24 24", fill: "#000000", paths: ["M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"] },
|
|
9
|
-
nvidia: { viewBox: "0 0 24 24", fill: "#76B900", paths: ["M8.948 8.798v-1.43a6.7 6.7 0 0 1 .424-.018c3.922-.124 6.493 3.374 6.493 3.374s-2.774 3.851-5.75 3.851c-.398 0-.787-.062-1.158-.185v-4.346c1.528.185 1.837.857 2.747 2.385l2.04-1.714s-1.492-1.952-4-1.952a6.016 6.016 0 0 0-.796.035m0-4.735v2.138l.424-.027c5.45-.185 9.01 4.47 9.01 4.47s-4.08 4.964-8.33 4.964c-.37 0-.733-.035-1.095-.097v1.325c.3.035.61.062.91.062 3.957 0 6.82-2.023 9.593-4.408.459.371 2.34 1.263 2.73 1.652-2.633 2.208-8.772 3.984-12.253 3.984-.335 0-.653-.018-.971-.053v1.864H24V4.063zm0 10.326v1.131c-3.657-.654-4.673-4.46-4.673-4.46s1.758-1.944 4.673-2.262v1.237H8.94c-1.528-.186-2.73 1.245-2.73 1.245s.68 2.412 2.739 3.11M2.456 10.9s2.164-3.197 6.5-3.533V6.201C4.153 6.59 0 10.653 0 10.653s2.35 6.802 8.948 7.42v-1.237c-4.84-.6-6.492-5.936-6.492-5.936z"] },
|
|
10
|
-
meta: { viewBox: "0 0 24 24", fill: "#0467DF", paths: ["M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z"] },
|
|
11
|
-
moonshotai: { viewBox: "0 0 24 24", fill: "#16191E", paths: ["m1.053 16.91 9.538 2.55a21 20.981 0 0 0 .06 2.031l5.956 1.592a12 11.99 0 0 1-15.554-6.172m-1.02-5.79 11.352 3.035a21 20.981 0 0 0-.469 2.01l10.817 2.89a12 11.99 0 0 1-1.845 2.004L.658 15.918a12 11.99 0 0 1-.625-4.796m1.593-5.146L13.573 9.17a21 20.981 0 0 0-1.01 1.874l11.297 3.02a21 20.981 0 0 1-.67 2.362l-11.55-3.087L.125 10.26a12 11.99 0 0 1 1.499-4.285ZM6.067 1.58l11.285 3.016a21 20.981 0 0 0-1.688 1.719l7.824 2.091a21 20.981 0 0 1 .513 2.664L2.107 5.218a12 11.99 0 0 1 3.96-3.638M21.68 4.866 7.222 1.003A12 11.99 0 0 1 21.68 4.866"] },
|
|
12
|
-
openai: { viewBox: "0 0 256 260", fill: "#10A37F", paths: ["M239.184 106.203a64.72 64.72 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.72 64.72 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.67 64.67 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.77 64.77 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483m-97.56 136.338a48.4 48.4 0 0 1-31.105-11.255l1.535-.87l51.67-29.825a8.6 8.6 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601M37.158 197.93a48.35 48.35 0 0 1-5.781-32.589l1.534.921l51.722 29.826a8.34 8.34 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803M23.549 85.38a48.5 48.5 0 0 1 25.58-21.333v61.39a8.29 8.29 0 0 0 4.195 7.316l62.874 36.272l-21.845 12.636a.82.82 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405zm179.466 41.695l-63.08-36.63L161.73 77.86a.82.82 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.54 8.54 0 0 0-4.4-7.213m21.742-32.69l-1.535-.922l-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.72.72 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391zM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87l-51.67 29.825a8.6 8.6 0 0 0-4.246 7.367zm11.868-25.58L128.067 97.3l28.188 16.218v32.434l-28.086 16.218l-28.188-16.218z"] }
|
|
13
|
-
};
|
|
14
|
-
var ALIASES = {
|
|
15
|
-
moonshot: "moonshotai",
|
|
16
|
-
deepseek_ai: "deepseek",
|
|
17
|
-
"x-ai": "xai",
|
|
18
|
-
"meta-llama": "meta"
|
|
19
|
-
};
|
|
20
|
-
var MONOGRAM = {
|
|
21
|
-
cohere: { bg: "#fae8ff", fg: "#c026d3" },
|
|
22
|
-
groq: { bg: "#fce7f3", fg: "#db2777" },
|
|
23
|
-
cerebras: { bg: "#ccfbf1", fg: "#0d9488" },
|
|
24
|
-
zai: { bg: "#ede9fe", fg: "#7c3aed" },
|
|
25
|
-
"z-ai": { bg: "#ede9fe", fg: "#7c3aed" },
|
|
26
|
-
tuner: { bg: "#dbeafe", fg: "#2563eb" }
|
|
27
|
-
};
|
|
28
|
-
function ProviderLogo({ provider, size = 16 }) {
|
|
29
|
-
const key = ALIASES[provider ?? ""] ?? provider ?? "";
|
|
30
|
-
const logo = LOGOS[key];
|
|
31
|
-
if (logo) {
|
|
32
|
-
return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: logo.viewBox, role: "img", "aria-label": key, children: logo.paths.map((d, i) => /* @__PURE__ */ jsx("path", { d, fill: logo.fill }, i)) });
|
|
33
|
-
}
|
|
34
|
-
const mono = MONOGRAM[key];
|
|
35
|
-
return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 16 16", role: "img", "aria-label": key || "model", children: [
|
|
36
|
-
/* @__PURE__ */ jsx("rect", { width: "16", height: "16", rx: "4", style: { fill: mono ? mono.bg : "hsl(var(--secondary))" } }),
|
|
37
|
-
/* @__PURE__ */ jsx("text", { x: "8", y: "11.6", textAnchor: "middle", style: { fill: mono ? mono.fg : "hsl(var(--muted-foreground))" }, fontSize: "9", fontWeight: "700", fontFamily: "system-ui, sans-serif", children: (key || "?").charAt(0).toUpperCase() })
|
|
38
|
-
] });
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export {
|
|
42
|
-
ProviderLogo
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=chunk-MLG6XKPV.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/web-react/provider-logo.tsx"],"sourcesContent":["/**\n * Provider brand marks — real logo path data (simple-icons / SVG Logos, both\n * CC0) inlined so the picker shows actual provider identity instead of\n * colored-initial monograms. Providers without a usable mark fall back to a\n * tinted monogram chip. Aliases (z-ai/zai, moonshot/moonshotai, deepseek_ai)\n * normalize to one entry.\n */\n\nimport type { ReactNode } from 'react'\n\ninterface LogoDef {\n viewBox: string\n fill: string\n paths: string[]\n}\n\nconst LOGOS: Record<string, LogoDef> = {\n anthropic: { viewBox: '0 0 24 24', fill: '#D97757', paths: [\"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z\"] },\n google: { viewBox: '0 0 24 24', fill: '#8E75B2', paths: [\"M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81\"] },\n deepseek: { viewBox: '0 0 24 24', fill: '#4D6BFE', paths: [\"M23.748 4.651c-.254-.124-.364.113-.512.233-.051.04-.094.09-.137.137-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.155-.708-.311-.955-.65-.172-.24-.219-.509-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.094.172.187.129.323-.082.28-.18.553-.266.833-.055.179-.137.218-.328.14a5.5 5.5 0 0 1-1.737-1.179c-.857-.828-1.631-1.743-2.597-2.46a12 12 0 0 0-.689-.47c-.985-.957.13-1.743.387-1.836.27-.098.094-.433-.778-.428-.872.003-1.67.295-2.687.685a3 3 0 0 1-.465.136 9.6 9.6 0 0 0-2.883-.101c-1.885.21-3.39 1.1-4.497 2.622C.082 8.776-.231 10.854.152 13.02c.403 2.284 1.568 4.175 3.36 5.653 1.857 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.132-.284 4.994-1.86.47.234.962.328 1.78.398.629.058 1.235-.031 1.705-.129.735-.155.684-.836.418-.961-2.155-1.004-1.682-.595-2.112-.926 1.095-1.295 2.768-3.598 3.284-6.733.05-.346.115-.834.108-1.114-.004-.171.035-.238.23-.257a4.2 4.2 0 0 0 1.545-.475c1.397-.763 1.96-2.016 2.093-3.517.02-.23-.004-.467-.247-.588M11.58 18.168c-2.088-1.642-3.101-2.183-3.52-2.16-.39.024-.32.472-.234.763.09.288.207.487.371.74.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.168-1.361-.801-2.5-1.86-3.301-3.306-.775-1.393-1.225-2.888-1.299-4.482-.02-.385.094-.522.477-.592a4.7 4.7 0 0 1 1.53-.038c2.131.311 3.946 1.264 5.467 2.774.868.86 1.525 1.887 2.202 2.89.72 1.066 1.494 2.082 2.48 2.915.348.291.626.513.892.677-.802.09-2.14.109-3.055-.615zm1.001-6.44a.306.306 0 0 1 .415-.287.3.3 0 0 1 .113.074.3.3 0 0 1 .086.214c0 .17-.136.307-.308.307a.303.303 0 0 1-.306-.307m3.11 1.596c-.2.081-.4.151-.591.16a1.25 1.25 0 0 1-.798-.254c-.274-.23-.47-.358-.551-.758a1.7 1.7 0 0 1 .015-.588c.07-.327-.007-.537-.238-.727-.188-.156-.426-.199-.689-.199a.6.6 0 0 1-.254-.078.253.253 0 0 1-.114-.358 1 1 0 0 1 .192-.21c.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.392.451.462.576.685.915.176.264.336.536.446.848.066.194-.02.353-.25.45\"] },\n mistral: { viewBox: '0 0 24 24', fill: '#FA520F', paths: [\"M17.143 3.429v3.428h-3.429v3.429h-3.428V6.857H6.857V3.43H3.43v13.714H0v3.428h10.286v-3.428H6.857v-3.429h3.429v3.429h3.429v-3.429h3.428v3.429h-3.428v3.428H24v-3.428h-3.43V3.429z\"] },\n xai: { viewBox: '0 0 24 24', fill: '#000000', paths: [\"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z\"] },\n nvidia: { viewBox: '0 0 24 24', fill: '#76B900', paths: [\"M8.948 8.798v-1.43a6.7 6.7 0 0 1 .424-.018c3.922-.124 6.493 3.374 6.493 3.374s-2.774 3.851-5.75 3.851c-.398 0-.787-.062-1.158-.185v-4.346c1.528.185 1.837.857 2.747 2.385l2.04-1.714s-1.492-1.952-4-1.952a6.016 6.016 0 0 0-.796.035m0-4.735v2.138l.424-.027c5.45-.185 9.01 4.47 9.01 4.47s-4.08 4.964-8.33 4.964c-.37 0-.733-.035-1.095-.097v1.325c.3.035.61.062.91.062 3.957 0 6.82-2.023 9.593-4.408.459.371 2.34 1.263 2.73 1.652-2.633 2.208-8.772 3.984-12.253 3.984-.335 0-.653-.018-.971-.053v1.864H24V4.063zm0 10.326v1.131c-3.657-.654-4.673-4.46-4.673-4.46s1.758-1.944 4.673-2.262v1.237H8.94c-1.528-.186-2.73 1.245-2.73 1.245s.68 2.412 2.739 3.11M2.456 10.9s2.164-3.197 6.5-3.533V6.201C4.153 6.59 0 10.653 0 10.653s2.35 6.802 8.948 7.42v-1.237c-4.84-.6-6.492-5.936-6.492-5.936z\"] },\n meta: { viewBox: '0 0 24 24', fill: '#0467DF', paths: [\"M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z\"] },\n moonshotai: { viewBox: '0 0 24 24', fill: '#16191E', paths: [\"m1.053 16.91 9.538 2.55a21 20.981 0 0 0 .06 2.031l5.956 1.592a12 11.99 0 0 1-15.554-6.172m-1.02-5.79 11.352 3.035a21 20.981 0 0 0-.469 2.01l10.817 2.89a12 11.99 0 0 1-1.845 2.004L.658 15.918a12 11.99 0 0 1-.625-4.796m1.593-5.146L13.573 9.17a21 20.981 0 0 0-1.01 1.874l11.297 3.02a21 20.981 0 0 1-.67 2.362l-11.55-3.087L.125 10.26a12 11.99 0 0 1 1.499-4.285ZM6.067 1.58l11.285 3.016a21 20.981 0 0 0-1.688 1.719l7.824 2.091a21 20.981 0 0 1 .513 2.664L2.107 5.218a12 11.99 0 0 1 3.96-3.638M21.68 4.866 7.222 1.003A12 11.99 0 0 1 21.68 4.866\"] },\n openai: { viewBox: '0 0 256 260', fill: '#10A37F', paths: [\"M239.184 106.203a64.72 64.72 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.72 64.72 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.67 64.67 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.77 64.77 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483m-97.56 136.338a48.4 48.4 0 0 1-31.105-11.255l1.535-.87l51.67-29.825a8.6 8.6 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601M37.158 197.93a48.35 48.35 0 0 1-5.781-32.589l1.534.921l51.722 29.826a8.34 8.34 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803M23.549 85.38a48.5 48.5 0 0 1 25.58-21.333v61.39a8.29 8.29 0 0 0 4.195 7.316l62.874 36.272l-21.845 12.636a.82.82 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405zm179.466 41.695l-63.08-36.63L161.73 77.86a.82.82 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.54 8.54 0 0 0-4.4-7.213m21.742-32.69l-1.535-.922l-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.72.72 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391zM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87l-51.67 29.825a8.6 8.6 0 0 0-4.246 7.367zm11.868-25.58L128.067 97.3l28.188 16.218v32.434l-28.086 16.218l-28.188-16.218z\"] },\n}\n\nconst ALIASES: Record<string, string> = {\n moonshot: 'moonshotai',\n deepseek_ai: 'deepseek',\n 'x-ai': 'xai',\n 'meta-llama': 'meta',\n}\n\nconst MONOGRAM: Record<string, { bg: string; fg: string }> = {\n cohere: { bg: '#fae8ff', fg: '#c026d3' },\n groq: { bg: '#fce7f3', fg: '#db2777' },\n cerebras: { bg: '#ccfbf1', fg: '#0d9488' },\n zai: { bg: '#ede9fe', fg: '#7c3aed' },\n 'z-ai': { bg: '#ede9fe', fg: '#7c3aed' },\n tuner: { bg: '#dbeafe', fg: '#2563eb' },\n}\n\nexport interface ProviderLogoProps {\n provider?: string\n size?: number\n}\n\n/** Real brand mark when we have one; tinted monogram otherwise. */\nexport function ProviderLogo({ provider, size = 16 }: ProviderLogoProps): ReactNode {\n const key = ALIASES[provider ?? ''] ?? provider ?? ''\n const logo = LOGOS[key]\n if (logo) {\n return (\n <svg width={size} height={size} viewBox={logo.viewBox} role=\"img\" aria-label={key}>\n {logo.paths.map((d, i) => (\n <path key={i} d={d} fill={logo.fill} />\n ))}\n </svg>\n )\n }\n // Unknown providers fall back to a neutral monogram drawn from theme tokens\n // (secondary tile, muted glyph) — the previous hardcoded grays (#f3f4f6 /\n // #6b7280) were tuned for light mode and read as a washed-out hole on dark.\n // `style` rather than the `fill` attribute so the var() references resolve.\n const mono = MONOGRAM[key]\n return (\n <svg width={size} height={size} viewBox=\"0 0 16 16\" role=\"img\" aria-label={key || 'model'}>\n <rect width=\"16\" height=\"16\" rx=\"4\" style={{ fill: mono ? mono.bg : 'hsl(var(--secondary))' }} />\n <text x=\"8\" y=\"11.6\" textAnchor=\"middle\" style={{ fill: mono ? mono.fg : 'hsl(var(--muted-foreground))' }} fontSize=\"9\" fontWeight=\"700\" fontFamily=\"system-ui, sans-serif\">\n {(key || '?').charAt(0).toUpperCase()}\n </text>\n </svg>\n )\n}\n"],"mappings":";AAyDU,cAWN,YAXM;AAzCV,IAAM,QAAiC;AAAA,EACrC,WAAW,EAAE,SAAS,aAAa,MAAM,WAAW,OAAO,CAAC,0KAA0K,EAAE;AAAA,EACxO,QAAQ,EAAE,SAAS,aAAa,MAAM,WAAW,OAAO,CAAC,8RAA8R,EAAE;AAAA,EACzV,UAAU,EAAE,SAAS,aAAa,MAAM,WAAW,OAAO,CAAC,w7DAAw7D,EAAE;AAAA,EACr/D,SAAS,EAAE,SAAS,aAAa,MAAM,WAAW,OAAO,CAAC,kLAAkL,EAAE;AAAA,EAC9O,KAAK,EAAE,SAAS,aAAa,MAAM,WAAW,OAAO,CAAC,oMAAoM,EAAE;AAAA,EAC5P,QAAQ,EAAE,SAAS,aAAa,MAAM,WAAW,OAAO,CAAC,qwBAAqwB,EAAE;AAAA,EACh0B,MAAM,EAAE,SAAS,aAAa,MAAM,WAAW,OAAO,CAAC,ksCAAksC,EAAE;AAAA,EAC3vC,YAAY,EAAE,SAAS,aAAa,MAAM,WAAW,OAAO,CAAC,2hBAA2hB,EAAE;AAAA,EAC1lB,QAAQ,EAAE,SAAS,eAAe,MAAM,WAAW,OAAO,CAAC,28CAA28C,EAAE;AAC1gD;AAEA,IAAM,UAAkC;AAAA,EACtC,UAAU;AAAA,EACV,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,cAAc;AAChB;AAEA,IAAM,WAAuD;AAAA,EAC3D,QAAQ,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACvC,MAAM,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACrC,UAAU,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACzC,KAAK,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACpC,QAAQ,EAAE,IAAI,WAAW,IAAI,UAAU;AAAA,EACvC,OAAO,EAAE,IAAI,WAAW,IAAI,UAAU;AACxC;AAQO,SAAS,aAAa,EAAE,UAAU,OAAO,GAAG,GAAiC;AAClF,QAAM,MAAM,QAAQ,YAAY,EAAE,KAAK,YAAY;AACnD,QAAM,OAAO,MAAM,GAAG;AACtB,MAAI,MAAM;AACR,WACE,oBAAC,SAAI,OAAO,MAAM,QAAQ,MAAM,SAAS,KAAK,SAAS,MAAK,OAAM,cAAY,KAC3E,eAAK,MAAM,IAAI,CAAC,GAAG,MAClB,oBAAC,UAAa,GAAM,MAAM,KAAK,QAApB,CAA0B,CACtC,GACH;AAAA,EAEJ;AAKA,QAAM,OAAO,SAAS,GAAG;AACzB,SACE,qBAAC,SAAI,OAAO,MAAM,QAAQ,MAAM,SAAQ,aAAY,MAAK,OAAM,cAAY,OAAO,SAChF;AAAA,wBAAC,UAAK,OAAM,MAAK,QAAO,MAAK,IAAG,KAAI,OAAO,EAAE,MAAM,OAAO,KAAK,KAAK,wBAAwB,GAAG;AAAA,IAC/F,oBAAC,UAAK,GAAE,KAAI,GAAE,QAAO,YAAW,UAAS,OAAO,EAAE,MAAM,OAAO,KAAK,KAAK,+BAA+B,GAAG,UAAS,KAAI,YAAW,OAAM,YAAW,yBAChJ,kBAAO,KAAK,OAAO,CAAC,EAAE,YAAY,GACtC;AAAA,KACF;AAEJ;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|