@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 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
- type ReasoningLevel = "auto" | "low" | "medium" | "high";
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
@@ -16,7 +16,7 @@ import {
16
16
  modelProvider,
17
17
  snapHarnessToModel,
18
18
  snapModelToHarness
19
- } from "./chunk-H5PBSY62.js";
19
+ } from "./chunk-KANKBACI.js";
20
20
  import "./chunk-HXIYUQN2.js";
21
21
  import "./chunk-JDMX4HHN.js";
22
22
  import "./chunk-EI44GEQ5.js";
@@ -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 INTENSITY_BARS = {
29
- low: 1,
30
- medium: 2,
31
- high: 3
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 filled = INTENSITY_BARS[level];
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: 14 },
44
- children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx(
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: `${40 + i * 30}%` }
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
@@ -104,7 +104,7 @@ import {
104
104
  modelProvider,
105
105
  snapHarnessToModel,
106
106
  snapModelToHarness
107
- } from "./chunk-H5PBSY62.js";
107
+ } from "./chunk-KANKBACI.js";
108
108
  import {
109
109
  ExpandedToolDetail,
110
110
  InlineThinkingItem,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "0.23.3",
3
+ "version": "0.23.4",
4
4
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
5
5
  "repository": {
6
6
  "type": "git",