@tangle-network/sandbox-ui 0.39.0 → 0.39.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/dist/chat.js +3 -3
- package/dist/{chunk-NMR2CTGP.js → chunk-3RNYDTQ3.js} +18 -1
- package/dist/{chunk-DVEIMFMF.js → chunk-CUUUFJF5.js} +3 -6
- package/dist/{chunk-I64YISXS.js → chunk-KIRJZUX2.js} +1 -1
- package/dist/dashboard.js +2 -2
- package/dist/index.js +3 -3
- package/dist/pages.js +1 -1
- package/package.json +1 -1
package/dist/chat.js
CHANGED
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
modelProvider,
|
|
17
17
|
snapHarnessToModel,
|
|
18
18
|
snapModelToHarness
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-CUUUFJF5.js";
|
|
20
|
+
import "./chunk-KIRJZUX2.js";
|
|
21
|
+
import "./chunk-3RNYDTQ3.js";
|
|
22
22
|
import "./chunk-EI44GEQ5.js";
|
|
23
23
|
export {
|
|
24
24
|
AgentSessionControls,
|
|
@@ -234,6 +234,20 @@ function compareModelGroups(a, b) {
|
|
|
234
234
|
function compareModelsByDisplayName(a, b) {
|
|
235
235
|
return (a.name ?? a.id).localeCompare(b.name ?? b.id);
|
|
236
236
|
}
|
|
237
|
+
function stripBrandPrefix(name, identity) {
|
|
238
|
+
if (!identity) return name;
|
|
239
|
+
for (const label of [identity.lab.label, identity.host.label]) {
|
|
240
|
+
if (!label) continue;
|
|
241
|
+
if (name.toLowerCase().startsWith(label.toLowerCase())) {
|
|
242
|
+
const after = name.slice(label.length);
|
|
243
|
+
if (/^[\s:]/.test(after)) {
|
|
244
|
+
const rest = after.replace(/^[\s:]+/, "").trim();
|
|
245
|
+
if (rest) return rest;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return name;
|
|
250
|
+
}
|
|
237
251
|
function ModelPicker({
|
|
238
252
|
value,
|
|
239
253
|
onChange,
|
|
@@ -291,8 +305,11 @@ function ModelPicker({
|
|
|
291
305
|
() => models.find((m) => canonicalModelId(m) === value),
|
|
292
306
|
[models, value]
|
|
293
307
|
);
|
|
294
|
-
const currentLabel = current?.name ?? current?.id ?? value;
|
|
295
308
|
const currentIdentity = current ? resolveModelBrandIdentity(current) : null;
|
|
309
|
+
const currentLabel = stripBrandPrefix(
|
|
310
|
+
current?.name ?? current?.id ?? value,
|
|
311
|
+
currentIdentity
|
|
312
|
+
);
|
|
296
313
|
const recentIds = React.useMemo(() => {
|
|
297
314
|
if (!recents?.length) return [];
|
|
298
315
|
const lookup = new Map(models.map((m) => [canonicalModelId(m), m]));
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
HARNESS_OPTIONS,
|
|
3
3
|
HarnessLogo,
|
|
4
4
|
chatCapableHarnesses
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KIRJZUX2.js";
|
|
6
6
|
import {
|
|
7
7
|
ModelPicker,
|
|
8
8
|
canonicalModelId
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3RNYDTQ3.js";
|
|
10
10
|
import {
|
|
11
11
|
cn
|
|
12
12
|
} from "./chunk-EI44GEQ5.js";
|
|
@@ -115,10 +115,7 @@ function ReasoningLevelPicker({
|
|
|
115
115
|
children: shown.map((option) => /* @__PURE__ */ jsxs(
|
|
116
116
|
DropdownMenu.Item,
|
|
117
117
|
{
|
|
118
|
-
onSelect: (
|
|
119
|
-
event.preventDefault();
|
|
120
|
-
onChange(option.value);
|
|
121
|
-
},
|
|
118
|
+
onSelect: () => onChange(option.value),
|
|
122
119
|
className: cn(
|
|
123
120
|
"flex cursor-pointer items-start gap-2.5 rounded-md px-2.5 py-2 outline-none",
|
|
124
121
|
"transition-colors hover:bg-accent/40 focus:bg-accent/40",
|
package/dist/dashboard.js
CHANGED
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
HarnessLogo,
|
|
70
70
|
HarnessPicker,
|
|
71
71
|
chatCapableHarnesses
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-KIRJZUX2.js";
|
|
73
73
|
import {
|
|
74
74
|
DEFAULT_FEATURED_MODEL_IDS,
|
|
75
75
|
ModelPicker,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
formatContext,
|
|
79
79
|
formatPricing,
|
|
80
80
|
modelDedupKey
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-3RNYDTQ3.js";
|
|
82
82
|
import "./chunk-EI44GEQ5.js";
|
|
83
83
|
export {
|
|
84
84
|
ActivityFeed,
|
package/dist/index.js
CHANGED
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
modelProvider,
|
|
105
105
|
snapHarnessToModel,
|
|
106
106
|
snapModelToHarness
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-CUUUFJF5.js";
|
|
108
108
|
import {
|
|
109
109
|
ExpandedToolDetail,
|
|
110
110
|
InlineThinkingItem,
|
|
@@ -302,7 +302,7 @@ import {
|
|
|
302
302
|
HarnessLogo,
|
|
303
303
|
HarnessPicker,
|
|
304
304
|
chatCapableHarnesses
|
|
305
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-KIRJZUX2.js";
|
|
306
306
|
import {
|
|
307
307
|
DEFAULT_FEATURED_MODEL_IDS,
|
|
308
308
|
ModelPicker,
|
|
@@ -311,7 +311,7 @@ import {
|
|
|
311
311
|
formatContext,
|
|
312
312
|
formatPricing,
|
|
313
313
|
modelDedupKey
|
|
314
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-3RNYDTQ3.js";
|
|
315
315
|
import "./chunk-EI44GEQ5.js";
|
|
316
316
|
|
|
317
317
|
// src/index.ts
|
package/dist/pages.js
CHANGED
package/package.json
CHANGED