@tangle-network/sandbox-ui 0.23.3 → 0.23.4
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 +10 -1
- package/dist/chat.js +1 -1
- package/dist/{chunk-H5PBSY62.js → chunk-KANKBACI.js} +20 -10
- package/dist/index.js +1 -1
- package/dist/pages.js +1 -1
- package/package.json +1 -1
package/dist/chat.d.ts
CHANGED
|
@@ -5,7 +5,16 @@ import * as React from 'react';
|
|
|
5
5
|
import { M as ModelInfo } from './model-picker-DUfMTQo5.js';
|
|
6
6
|
import { e as HarnessType } from './harness-picker-ppDe7ap-.js';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Thinking-effort ladder — the superset of the per-harness reasoning scales so
|
|
10
|
+
* one control covers every backend. Consumers map each level onto what the
|
|
11
|
+
* chosen harness/model supports (and degrade unsupported ones):
|
|
12
|
+
* - OpenAI / Codex reasoning_effort: minimal · low · medium · high · xhigh
|
|
13
|
+
* - Anthropic (Claude) extended thinking: … · high · max
|
|
14
|
+
* - Claude Code: … · high · max · ultracode
|
|
15
|
+
* - generic: low · medium · high
|
|
16
|
+
*/
|
|
17
|
+
type ReasoningLevel = "auto" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultracode";
|
|
9
18
|
interface ReasoningLevelOption {
|
|
10
19
|
value: ReasoningLevel;
|
|
11
20
|
label: string;
|
package/dist/chat.js
CHANGED
|
@@ -25,30 +25,36 @@ import {
|
|
|
25
25
|
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
26
26
|
import { Brain, ChevronDown, Sparkles } from "lucide-react";
|
|
27
27
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
var REASONING_LADDER = [
|
|
29
|
+
"minimal",
|
|
30
|
+
"low",
|
|
31
|
+
"medium",
|
|
32
|
+
"high",
|
|
33
|
+
"xhigh",
|
|
34
|
+
"max",
|
|
35
|
+
"ultracode"
|
|
36
|
+
];
|
|
33
37
|
function ReasoningGlyph({ level }) {
|
|
34
38
|
if (level === "auto") {
|
|
35
39
|
return /* @__PURE__ */ jsx(Sparkles, { className: "h-3.5 w-3.5 text-muted-foreground" });
|
|
36
40
|
}
|
|
37
|
-
const
|
|
41
|
+
const BARS = 4;
|
|
42
|
+
const rank = REASONING_LADDER.indexOf(level) + 1;
|
|
43
|
+
const filled = Math.max(1, Math.ceil(rank / REASONING_LADDER.length * BARS));
|
|
38
44
|
return /* @__PURE__ */ jsx(
|
|
39
45
|
"span",
|
|
40
46
|
{
|
|
41
47
|
"aria-hidden": true,
|
|
42
48
|
className: "inline-flex h-3.5 items-end gap-px",
|
|
43
|
-
style: { width:
|
|
44
|
-
children:
|
|
49
|
+
style: { width: 16 },
|
|
50
|
+
children: Array.from({ length: BARS }).map((_, i) => /* @__PURE__ */ jsx(
|
|
45
51
|
"span",
|
|
46
52
|
{
|
|
47
53
|
className: cn(
|
|
48
54
|
"w-1 rounded-[1px]",
|
|
49
55
|
i < filled ? "bg-foreground" : "bg-border"
|
|
50
56
|
),
|
|
51
|
-
style: { height: `${
|
|
57
|
+
style: { height: `${35 + i * 22}%` }
|
|
52
58
|
},
|
|
53
59
|
i
|
|
54
60
|
))
|
|
@@ -57,9 +63,13 @@ function ReasoningGlyph({ level }) {
|
|
|
57
63
|
}
|
|
58
64
|
var DEFAULT_REASONING_LEVEL_OPTIONS = [
|
|
59
65
|
{ value: "auto", label: "Auto", description: "Let the agent pick the right depth." },
|
|
66
|
+
{ value: "minimal", label: "Minimal", description: "Almost no deliberation \u2014 fastest, cheapest." },
|
|
60
67
|
{ value: "low", label: "Low", description: "Fast, direct answers." },
|
|
61
68
|
{ value: "medium", label: "Medium", description: "Inspect context before acting." },
|
|
62
|
-
{ value: "high", label: "High", description: "Deeper planning and edge-case checks." }
|
|
69
|
+
{ value: "high", label: "High", description: "Deeper planning and edge-case checks." },
|
|
70
|
+
{ value: "xhigh", label: "Extra High", description: "Extended reasoning for hard problems (Codex/OpenAI)." },
|
|
71
|
+
{ value: "max", label: "Max", description: "Maximum extended thinking budget (Claude)." },
|
|
72
|
+
{ value: "ultracode", label: "Ultracode", description: "Exhaustive multi-pass reasoning (Claude Code)." }
|
|
63
73
|
];
|
|
64
74
|
function ReasoningLevelPicker({
|
|
65
75
|
value,
|
package/dist/index.js
CHANGED
package/dist/pages.js
CHANGED
|
@@ -2893,7 +2893,7 @@ function StartupScriptsPage({ apiClient, className }) {
|
|
|
2893
2893
|
}));
|
|
2894
2894
|
};
|
|
2895
2895
|
const activeCount = scripts.filter((s) => s.enabled).length;
|
|
2896
|
-
return /* @__PURE__ */ jsxs7("div", { className: cn("space-y-6", className), children: [
|
|
2896
|
+
return /* @__PURE__ */ jsxs7("div", { className: cn("mx-auto w-full max-w-7xl space-y-6", className), children: [
|
|
2897
2897
|
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-4 md:flex-row md:items-end md:justify-between", children: [
|
|
2898
2898
|
/* @__PURE__ */ jsxs7("div", { children: [
|
|
2899
2899
|
/* @__PURE__ */ jsx7("h1", { className: "font-display text-3xl font-extrabold tracking-tight text-foreground", children: "Startup Scripts" }),
|
package/package.json
CHANGED