@cartanova/qgrid-cli 2.19.3 → 2.21.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.
Files changed (36) hide show
  1. package/bundle/dist/application/qgrid/qgrid.types.js +75 -2
  2. package/bundle/dist/utils/providers/openai/openai-realtime-protocol.js +19 -51
  3. package/bundle/dist/utils/providers/openai/openai-voice-client.js +1 -1
  4. package/bundle/src/application/qgrid/qgrid.types.ts +72 -0
  5. package/bundle/src/utils/providers/openai/openai-realtime-protocol.ts +26 -53
  6. package/bundle/src/utils/providers/openai/openai-voice-client.test.ts +6 -2
  7. package/bundle/web-dist/client/assets/TimedPlayer-UGSsgTKj.js +1 -0
  8. package/bundle/web-dist/client/assets/{index-CpOwNalw.css → index-BITKCBxB.css} +1 -1
  9. package/bundle/web-dist/client/assets/{index-B5yorZqv.js → index-NGqKa5_C.js} +14 -14
  10. package/bundle/web-dist/client/assets/{logs-Bx_jXEDZ.js → logs-BLhlxqoB.js} +1 -1
  11. package/bundle/web-dist/client/assets/{monit-CPQ18s_m.js → monit-C3stGFEK.js} +1 -1
  12. package/bundle/web-dist/client/assets/{routes-S4D5Ld4L.js → routes-Dgh-_yS5.js} +1 -1
  13. package/bundle/web-dist/client/assets/{settings-M4h_UV87.js → settings-DiOZwvRj.js} +1 -1
  14. package/bundle/web-dist/client/assets/show-DucEoTrr.js +2 -0
  15. package/bundle/web-dist/client/assets/{tokens-BgBD07ru.js → tokens-DvCT1bbk.js} +1 -1
  16. package/bundle/web-dist/client/assets/{use-oauth-login-flow-D_wI9MzM.js → use-oauth-login-flow-DazQfaBL.js} +1 -1
  17. package/bundle/web-dist/client/assets/{use-update-token-mutation-IvuH3Qje.js → use-update-token-mutation-CfGbUel6.js} +1 -1
  18. package/bundle/web-dist/client/assets/voice-zPre2iO8.js +4 -0
  19. package/bundle/web-dist/client/index.html +2 -2
  20. package/bundle/web-dist/server/assets/TimedPlayer-CcClBzGi.js +193 -0
  21. package/bundle/web-dist/server/assets/{logs-HPho1SkC.js → logs-CxAwuDKc.js} +1 -1
  22. package/bundle/web-dist/server/assets/{routes-BNHCX4VI.js → routes-W-pd1Hps.js} +1 -1
  23. package/bundle/web-dist/server/assets/{settings-NJUyaSrJ.js → settings-CFdTg1_f.js} +1 -1
  24. package/bundle/web-dist/server/assets/{show-Dz5QGL7l.js → show-DVEIHsXh.js} +35 -157
  25. package/bundle/web-dist/server/assets/{tokens-BPQvjIGq.js → tokens-BO1hyBuB.js} +1 -1
  26. package/bundle/web-dist/server/assets/voice-BCF-Pkzo.js +1115 -0
  27. package/bundle/web-dist/server/entry-server.generated.js +81 -8
  28. package/package.json +1 -1
  29. package/skills/qgrid/references/ai-sdk-provider-contract.md +4 -0
  30. package/skills/qgrid/references/openai-codex-runtime.md +1 -0
  31. package/skills/qgrid/references/sonamu-api-web-flow.md +1 -1
  32. package/bundle/web-dist/client/assets/TimedPlayer-cuEgYA3Q.js +0 -1
  33. package/bundle/web-dist/client/assets/show-BchF-T1a.js +0 -2
  34. package/bundle/web-dist/client/assets/voice-CnIiQMbo.js +0 -1
  35. package/bundle/web-dist/server/assets/TimedPlayer-COqaTQSl.js +0 -54
  36. package/bundle/web-dist/server/assets/voice-xFFT4zqK.js +0 -985
@@ -1,8 +1,8 @@
1
1
  import { C as looseObject, D as string, E as object, M as useQuery, Q as __commonJSMin, T as number, X as require_jsx_runtime, Z as require_react, h as array, i as RequestLogStepService, k as union, l as isSonamuError, r as RequestLogService, tt as __toESM, x as json } from "./services.generated-C3b31_vt.js";
2
- import { _ as Link, c as ForwardRef$4, d as remarkGfm, f as Markdown, t as Route } from "../entry-server.generated.js";
2
+ import { b as Link, d as ForwardRef$2, h as Markdown, m as remarkGfm, t as Route } from "../entry-server.generated.js";
3
3
  import { n as formatMicroUsd, t as cacheHitRate } from "./cost-oNK0T4Jo.js";
4
- import { n as ForwardRef$5, t as requestModelDisplay } from "./request-model-ZulJMbGm.js";
5
- import { t as TimedPlayer } from "./TimedPlayer-COqaTQSl.js";
4
+ import { n as ForwardRef$3, t as requestModelDisplay } from "./request-model-ZulJMbGm.js";
5
+ import { i as highlightCode, n as CodePanel, r as CopyButton, t as TimedPlayer } from "./TimedPlayer-CcClBzGi.js";
6
6
  //#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.js
7
7
  var require_extends = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8
8
  function _extends() {
@@ -1886,29 +1886,7 @@ var lucideArrowLeft = ({ title, titleId, ...props }, ref) => /* @__PURE__ */ (0,
1886
1886
  d: "m12 19l-7-7l7-7m7 7H5"
1887
1887
  })]
1888
1888
  });
1889
- var ForwardRef$3 = (0, import_react.forwardRef)(lucideArrowLeft);
1890
- //#endregion
1891
- //#region ~icons/lucide/check.jsx
1892
- var lucideCheck = ({ title, titleId, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
1893
- viewBox: "0 0 24 24",
1894
- width: "1.2em",
1895
- height: "1.2em",
1896
- ref,
1897
- "aria-labelledby": titleId,
1898
- ...props,
1899
- children: [title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", {
1900
- id: titleId,
1901
- children: title
1902
- }) : null, /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
1903
- fill: "none",
1904
- stroke: "currentColor",
1905
- strokeLinecap: "round",
1906
- strokeLinejoin: "round",
1907
- strokeWidth: 2,
1908
- d: "M20 6L9 17l-5-5"
1909
- })]
1910
- });
1911
- var ForwardRef$2 = (0, import_react.forwardRef)(lucideCheck);
1889
+ var ForwardRef$1 = (0, import_react.forwardRef)(lucideArrowLeft);
1912
1890
  //#endregion
1913
1891
  //#region ~icons/lucide/chevron-down.jsx
1914
1892
  var lucideChevronDown = ({ title, titleId, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
@@ -1930,36 +1908,7 @@ var lucideChevronDown = ({ title, titleId, ...props }, ref) => /* @__PURE__ */ (
1930
1908
  d: "m6 9l6 6l6-6"
1931
1909
  })]
1932
1910
  });
1933
- var ForwardRef$1 = (0, import_react.forwardRef)(lucideChevronDown);
1934
- //#endregion
1935
- //#region ~icons/lucide/copy.jsx
1936
- var lucideCopy = ({ title, titleId, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
1937
- viewBox: "0 0 24 24",
1938
- width: "1.2em",
1939
- height: "1.2em",
1940
- ref,
1941
- "aria-labelledby": titleId,
1942
- ...props,
1943
- children: [title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", {
1944
- id: titleId,
1945
- children: title
1946
- }) : null, /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", {
1947
- fill: "none",
1948
- stroke: "currentColor",
1949
- strokeLinecap: "round",
1950
- strokeLinejoin: "round",
1951
- strokeWidth: 2,
1952
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", {
1953
- width: 14,
1954
- height: 14,
1955
- x: 8,
1956
- y: 8,
1957
- rx: 2,
1958
- ry: 2
1959
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })]
1960
- })]
1961
- });
1962
- var ForwardRef = (0, import_react.forwardRef)(lucideCopy);
1911
+ var ForwardRef = (0, import_react.forwardRef)(lucideChevronDown);
1963
1912
  //#endregion
1964
1913
  //#region src/routes/requests/show.tsx?tsr-split=component
1965
1914
  function RequestShowPage() {
@@ -1989,24 +1938,6 @@ function safeParseJson(text) {
1989
1938
  return text;
1990
1939
  }
1991
1940
  }
1992
- function CopyButton({ text, dark }) {
1993
- const [copied, setCopied] = (0, import_react.useState)(false);
1994
- (0, import_react.useEffect)(() => {
1995
- if (!copied) return void 0;
1996
- const id = setTimeout(() => setCopied(false), 1500);
1997
- return () => clearTimeout(id);
1998
- }, [copied]);
1999
- const handleCopy = () => {
2000
- navigator.clipboard.writeText(text);
2001
- setCopied(true);
2002
- };
2003
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
2004
- type: "button",
2005
- className: `absolute top-2 right-2 p-1 rounded transition-colors ${dark ? "text-sand-500 hover:text-sand-300" : "text-sand-400 hover:text-sand-600"}`,
2006
- onClick: handleCopy,
2007
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$2, { className: "size-3.5 text-sage-500" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef, { className: "size-3.5" })
2008
- });
2009
- }
2010
1941
  var DATA_MEDIA_TAG_RE = /<img\s+[^>]*src=["'](data:image\/[^"']+;base64,[^"']+)["'][^>]*(?:alt=["']([^"']*)["'][^>]*)?\/?>|<audio\s+[^>]*src=["'](data:audio\/[^"']+;base64,[^"']+)["'][^>]*>(?:<\/audio>)?/gi;
2011
1942
  function parseImageSegments(text) {
2012
1943
  const segments = [];
@@ -2089,7 +2020,7 @@ function ImageAwareContent({ text, markdown, audioWords }) {
2089
2020
  className: "absolute top-4 right-4 p-2 rounded-full bg-white/90 text-sand-700 hover:bg-white",
2090
2021
  onClick: () => setViewerSrc(null),
2091
2022
  title: "Close image",
2092
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$4, { className: "size-5" })
2023
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$2, { className: "size-5" })
2093
2024
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", {
2094
2025
  src: viewerSrc,
2095
2026
  alt: "generated preview",
@@ -2147,7 +2078,7 @@ function Section({ title, defaultOpen = true, headerMetadata, onOpenChange, chil
2147
2078
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("summary", {
2148
2079
  className: "panel-header flex min-w-0 items-center gap-1.5 whitespace-nowrap cursor-pointer select-none list-none px-4 py-2.5",
2149
2080
  children: [
2150
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$1, { className: "size-3.5 shrink-0 text-sand-400 transition-transform group-open:rotate-0 -rotate-90" }),
2081
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef, { className: "size-3.5 shrink-0 text-sand-400 transition-transform group-open:rotate-0 -rotate-90" }),
2151
2082
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2152
2083
  className: "shrink-0 text-[11px] uppercase tracking-wider text-sand-500 font-medium",
2153
2084
  children: title
@@ -2222,7 +2153,7 @@ function HeaderBar({ data }) {
2222
2153
  data.service_tier === "fast" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2223
2154
  title: "Fast 모드",
2224
2155
  className: "inline-flex shrink-0",
2225
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$5, {
2156
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$3, {
2226
2157
  "aria-label": "Fast 모드",
2227
2158
  className: "size-3.5 text-[#1877F2] [&_path]:fill-current"
2228
2159
  })
@@ -2489,7 +2420,7 @@ function ToolCallItem({ entry }) {
2489
2420
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("summary", {
2490
2421
  className: "flex items-center gap-2 px-3 py-2 cursor-pointer select-none list-none hover:bg-sand-50 transition-colors rounded-md",
2491
2422
  children: [
2492
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$1, { className: "size-3 text-sand-400 transition-transform group-open/tool:rotate-0 -rotate-90 shrink-0" }),
2423
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef, { className: "size-3 text-sand-400 transition-transform group-open/tool:rotate-0 -rotate-90 shrink-0" }),
2493
2424
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
2494
2425
  className: "text-[10px] px-1.5 py-0.5 rounded bg-sand-100 text-sand-500 font-mono shrink-0",
2495
2426
  children: ["call ", entry.callIndex + 1]
@@ -2547,7 +2478,7 @@ function ReasoningBlock({ stepId }) {
2547
2478
  onToggle: (e) => setOpened(e.currentTarget.open),
2548
2479
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("summary", {
2549
2480
  className: "flex items-center gap-2 cursor-pointer select-none list-none",
2550
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$1, { className: "size-3 text-sand-400 transition-transform group-open/reason:rotate-0 -rotate-90 shrink-0" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2481
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef, { className: "size-3 text-sand-400 transition-transform group-open/reason:rotate-0 -rotate-90 shrink-0" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2551
2482
  className: "text-[10px] uppercase tracking-wider text-sand-500 font-medium",
2552
2483
  children: "Reasoning"
2553
2484
  })]
@@ -2576,7 +2507,7 @@ function StepTreeItem({ entry, tokensPerSecEnabled }) {
2576
2507
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("summary", {
2577
2508
  className: "flex items-center gap-2 py-2 cursor-pointer select-none list-none",
2578
2509
  children: [
2579
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$1, { className: "size-3.5 text-sand-400 transition-transform group-open/step:rotate-0 -rotate-90 shrink-0" }),
2510
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef, { className: "size-3.5 text-sand-400 transition-transform group-open/step:rotate-0 -rotate-90 shrink-0" }),
2580
2511
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
2581
2512
  className: "text-[10px] px-1.5 py-0.5 rounded bg-sienna-100 text-sienna-700 font-mono shrink-0",
2582
2513
  children: ["step ", entry.stepIndex + 1]
@@ -2834,7 +2765,7 @@ function ToolsHeaderMetadata({ tools }) {
2834
2765
  ] });
2835
2766
  }
2836
2767
  function ToolInputZod({ code, fullCode }) {
2837
- const highlighted = (0, import_react.useMemo)(() => highlightTypeText(code), [code]);
2768
+ const highlighted = (0, import_react.useMemo)(() => highlightCode(code), [code]);
2838
2769
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", {
2839
2770
  "data-zod-parameter-schema": true,
2840
2771
  className: `max-h-64 overflow-auto rounded-md bg-sand-900 px-3 py-2.5 font-mono text-[11px] leading-relaxed whitespace-pre text-sand-200 ${fullCode ? "cursor-help outline-none focus-visible:ring-2 focus-visible:ring-sienna-300" : ""}`,
@@ -2905,83 +2836,30 @@ function ToolsPanel({ id, tools }) {
2905
2836
  })
2906
2837
  });
2907
2838
  }
2908
- var TYPE_TOKEN_RE = /("(?:[^"\\]|\\.)*")|(\b\d+(?:\.\d+)?\b)|(\btype\b|\bz\b(?=\.))|(\b(?:string|number|boolean|null|unknown|Record)\b)|([{}[\]()<>|?:,.=])|([A-Za-z_$][\w$]*)|(\s+|.)/g;
2909
- function highlightTypeText(text) {
2910
- const nodes = [];
2911
- let afterTypeKeyword = false;
2912
- for (const match of text.matchAll(TYPE_TOKEN_RE)) {
2913
- const [token, str, num, kw, builtin, punct, ident] = match;
2914
- const key = `${match.index}-${token}`;
2915
- if (str || num) nodes.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2916
- className: "text-sage-400",
2917
- children: token
2918
- }, key));
2919
- else if (kw) {
2920
- afterTypeKeyword = token === "type";
2921
- nodes.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2922
- className: "text-sienna-400",
2923
- children: token
2924
- }, key));
2925
- } else if (builtin) nodes.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2926
- className: "text-blue-300",
2927
- children: token
2928
- }, key));
2929
- else if (punct) nodes.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2930
- className: "text-sand-500",
2931
- children: token
2932
- }, key));
2933
- else if (ident && afterTypeKeyword) {
2934
- afterTypeKeyword = false;
2935
- nodes.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2936
- className: "font-semibold text-sand-50",
2937
- children: token
2938
- }, key));
2939
- } else nodes.push(token);
2940
- }
2941
- return nodes;
2942
- }
2943
- function ResponseTypePanel({ id }) {
2839
+ function ResponseTypeSection({ id }) {
2944
2840
  const { data } = RequestLogService.useResponseTypeTs(id);
2945
2841
  const [mode, setMode] = (0, import_react.useState)("zod");
2946
2842
  const { zod = null, typescript = null } = data ?? {};
2947
2843
  const code = mode === "zod" ? zod ?? typescript : typescript ?? zod;
2948
- const highlighted = (0, import_react.useMemo)(() => code === null ? null : highlightTypeText(code), [code]);
2949
- if (!data || code === null || highlighted === null) return null;
2950
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2951
- className: "panel overflow-hidden",
2952
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2953
- className: "panel-header flex items-center px-4 py-2",
2954
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
2955
- className: "text-[11px] uppercase tracking-wider text-sand-500 font-medium",
2956
- children: "Response Type"
2957
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2958
- className: "ml-auto flex gap-1",
2959
- children: [{
2960
- value: "zod",
2961
- label: "zod",
2962
- available: zod !== null
2963
- }, {
2964
- value: "ts",
2965
- label: "ts",
2966
- available: typescript !== null
2967
- }].map((option) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
2968
- type: "button",
2969
- disabled: !option.available,
2970
- className: `px-3 py-1 text-[12px] font-mono rounded-md transition-colors ${mode === option.value ? "bg-sand-200 text-sand-700" : "text-sand-400 hover:text-sand-600 disabled:text-sand-300 disabled:cursor-not-allowed"}`,
2971
- onClick: () => setMode(option.value),
2972
- children: option.label
2973
- }, option.value))
2974
- })]
2975
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
2976
- className: "relative",
2977
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyButton, {
2978
- text: code,
2979
- dark: true
2980
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", {
2981
- className: "bg-sand-900 px-4 py-3 text-[12px] text-sand-200 whitespace-pre-wrap wrap-break-word font-mono leading-relaxed max-h-64 overflow-auto",
2982
- children: highlighted
2983
- })]
2984
- })]
2844
+ if (!data || code === null) return null;
2845
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CodePanel, {
2846
+ title: "Response Type",
2847
+ code,
2848
+ actions: [{
2849
+ value: "zod",
2850
+ label: "zod",
2851
+ available: zod !== null
2852
+ }, {
2853
+ value: "ts",
2854
+ label: "ts",
2855
+ available: typescript !== null
2856
+ }].map((option) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
2857
+ type: "button",
2858
+ disabled: !option.available,
2859
+ className: `px-3 py-1 text-[12px] font-mono rounded-md transition-colors ${mode === option.value ? "bg-sand-200 text-sand-700" : "text-sand-400 hover:text-sand-600 disabled:text-sand-300 disabled:cursor-not-allowed"}`,
2860
+ onClick: () => setMode(option.value),
2861
+ children: option.label
2862
+ }, option.value))
2985
2863
  });
2986
2864
  }
2987
2865
  function RequestDetail({ id }) {
@@ -3011,7 +2889,7 @@ function RequestDetail({ id }) {
3011
2889
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
3012
2890
  to: "/logs",
3013
2891
  className: "flex items-center gap-1 text-[13px] text-sand-500 hover:text-sienna-500 mb-4",
3014
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$3, { className: "size-3.5" }), "Back to Logs"]
2892
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$1, { className: "size-3.5" }), "Back to Logs"]
3015
2893
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
3016
2894
  role: "alert",
3017
2895
  className: "text-danger-500 text-sm",
@@ -3027,7 +2905,7 @@ function RequestDetail({ id }) {
3027
2905
  const hasHistory = history !== null && history.length > 0;
3028
2906
  const tools = data.tools ?? null;
3029
2907
  const hasTools = tools !== null && tools.length > 0;
3030
- const responseTypePanel = data.is_structured ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ResponseTypePanel, { id }) : null;
2908
+ const responseTypePanel = data.is_structured ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ResponseTypeSection, { id }) : null;
3031
2909
  const promptSections = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
3032
2910
  className: "space-y-4",
3033
2911
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Section, {
@@ -3062,7 +2940,7 @@ function RequestDetail({ id }) {
3062
2940
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
3063
2941
  to: "/logs",
3064
2942
  className: "inline-flex items-center gap-1 text-[13px] text-sand-500 hover:text-sienna-500 transition-colors",
3065
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$3, { className: "size-3.5" }), "Back to Logs"]
2943
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ForwardRef$1, { className: "size-3.5" }), "Back to Logs"]
3066
2944
  }),
3067
2945
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HeaderBar, { data }),
3068
2946
  data.error_message && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorPanel, { message: data.error_message }),
@@ -1,6 +1,6 @@
1
1
  import { X as require_jsx_runtime, Y as useQueryClient, Z as require_react, n as QgridService, o as TokenService, tt as __toESM } from "./services.generated-C3b31_vt.js";
2
2
  import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry } from "./use-oauth-login-flow-CCc8LEmn.js";
3
- import { h as ForwardRef$2 } from "../entry-server.generated.js";
3
+ import { v as ForwardRef$2 } from "../entry-server.generated.js";
4
4
  import { t as useUpdateTokenMutation } from "./use-update-token-mutation-Ba-sEhq1.js";
5
5
  import { t as ForwardRef$3 } from "./plus-CQ8AHpih.js";
6
6
  //#region src/components/qgrid/DeviceCodeEntry.tsx