@cartanova/qgrid-cli 2.15.4 → 2.16.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 (135) hide show
  1. package/bundle/dist/application/qgrid/qgrid.frame.js +43 -13
  2. package/bundle/dist/application/qgrid/qgrid.types.js +8 -2
  3. package/bundle/dist/application/request-log/request-log.model.js +4 -3
  4. package/bundle/dist/application/sonamu.generated.js +20 -5
  5. package/bundle/dist/application/sonamu.generated.sso.js +5 -3
  6. package/bundle/dist/i18n/sd.generated.js +6 -1
  7. package/bundle/dist/migrations/20261109110340_alter_request_logs_add1_alter1.js +15 -0
  8. package/bundle/dist/utils/providers/grok/grok-types.js +3 -2
  9. package/bundle/dist/utils/providers/grok/grok-voice-client.js +38 -3
  10. package/bundle/dist/utils/providers/openai/openai-voice-client.js +6 -2
  11. package/bundle/src/application/qgrid/qgrid.frame.test.ts +62 -0
  12. package/bundle/src/application/qgrid/qgrid.frame.ts +78 -11
  13. package/bundle/src/application/qgrid/qgrid.types.ts +12 -0
  14. package/bundle/src/application/request-log/request-log.entity.json +17 -2
  15. package/bundle/src/application/request-log/request-log.model.test.ts +17 -0
  16. package/bundle/src/application/request-log/request-log.model.ts +11 -3
  17. package/bundle/src/application/sonamu.generated.http +3 -1
  18. package/bundle/src/application/sonamu.generated.sso.ts +2 -0
  19. package/bundle/src/application/sonamu.generated.ts +14 -0
  20. package/bundle/src/i18n/sd.generated.ts +6 -0
  21. package/bundle/src/migrations/20261109110340_alter_request_logs_add1_alter1.ts +15 -0
  22. package/bundle/src/utils/providers/grok/grok-types.ts +16 -0
  23. package/bundle/src/utils/providers/grok/grok-voice-client.test.ts +32 -0
  24. package/bundle/src/utils/providers/grok/grok-voice-client.ts +56 -0
  25. package/bundle/src/utils/providers/openai/openai-voice-client.test.ts +6 -0
  26. package/bundle/src/utils/providers/openai/openai-voice-client.ts +6 -0
  27. package/bundle/web-dist/client/assets/index-DyrPRt6O.css +1 -0
  28. package/bundle/web-dist/client/assets/{index-CRdZwZsw.js → index-SGfYBzGT.js} +34 -34
  29. package/bundle/web-dist/client/assets/{logs-DyLC_2Rf.js → logs-DrTz38re.js} +1 -1
  30. package/bundle/web-dist/client/assets/{monit-C0hO3Fy6.js → monit-klIY-HEI.js} +1 -1
  31. package/bundle/web-dist/client/assets/{routes-DTw4jsHI.js → routes-bGN3y2NW.js} +1 -1
  32. package/bundle/web-dist/client/assets/{settings-Dg-1zSMq.js → settings-BHwEvAZL.js} +1 -1
  33. package/bundle/web-dist/client/assets/{show-BmqUEs1O.js → show-BiJkyrfB.js} +2 -2
  34. package/bundle/web-dist/client/assets/{tokens-FQ82u55y.js → tokens-DMWMG9O5.js} +1 -1
  35. package/bundle/web-dist/client/assets/{use-oauth-login-flow-BXmbUSjc.js → use-oauth-login-flow-D1v4h9zA.js} +1 -1
  36. package/bundle/web-dist/client/assets/{use-update-token-mutation-BWlMl3qg.js → use-update-token-mutation-BVBUlqBN.js} +1 -1
  37. package/bundle/web-dist/client/assets/voice-CwD3asSF.js +1 -0
  38. package/bundle/web-dist/client/index.html +2 -2
  39. package/bundle/web-dist/client/voice-samples/grok/altair.mp3 +0 -0
  40. package/bundle/web-dist/client/voice-samples/grok/ara.mp3 +0 -0
  41. package/bundle/web-dist/client/voice-samples/grok/atlas.mp3 +0 -0
  42. package/bundle/web-dist/client/voice-samples/grok/aurora.mp3 +0 -0
  43. package/bundle/web-dist/client/voice-samples/grok/carina.mp3 +0 -0
  44. package/bundle/web-dist/client/voice-samples/grok/castor.mp3 +0 -0
  45. package/bundle/web-dist/client/voice-samples/grok/celeste.mp3 +0 -0
  46. package/bundle/web-dist/client/voice-samples/grok/cosmo.mp3 +0 -0
  47. package/bundle/web-dist/client/voice-samples/grok/eve.mp3 +0 -0
  48. package/bundle/web-dist/client/voice-samples/grok/helios.mp3 +0 -0
  49. package/bundle/web-dist/client/voice-samples/grok/helix.mp3 +0 -0
  50. package/bundle/web-dist/client/voice-samples/grok/iris.mp3 +0 -0
  51. package/bundle/web-dist/client/voice-samples/grok/kepler.mp3 +0 -0
  52. package/bundle/web-dist/client/voice-samples/grok/leo.mp3 +0 -0
  53. package/bundle/web-dist/client/voice-samples/grok/liora.mp3 +0 -0
  54. package/bundle/web-dist/client/voice-samples/grok/lumen.mp3 +0 -0
  55. package/bundle/web-dist/client/voice-samples/grok/luna.mp3 +0 -0
  56. package/bundle/web-dist/client/voice-samples/grok/lux.mp3 +0 -0
  57. package/bundle/web-dist/client/voice-samples/grok/naksh.mp3 +0 -0
  58. package/bundle/web-dist/client/voice-samples/grok/orion.mp3 +0 -0
  59. package/bundle/web-dist/client/voice-samples/grok/perseus.mp3 +0 -0
  60. package/bundle/web-dist/client/voice-samples/grok/rex.mp3 +0 -0
  61. package/bundle/web-dist/client/voice-samples/grok/rigel.mp3 +0 -0
  62. package/bundle/web-dist/client/voice-samples/grok/sal.mp3 +0 -0
  63. package/bundle/web-dist/client/voice-samples/grok/sirius.mp3 +0 -0
  64. package/bundle/web-dist/client/voice-samples/grok/ursa.mp3 +0 -0
  65. package/bundle/web-dist/client/voice-samples/grok/zagan.mp3 +0 -0
  66. package/bundle/web-dist/client/voice-samples/grok/zenith.mp3 +0 -0
  67. package/bundle/web-dist/client/voice-samples/openai/alloy.mp3 +0 -0
  68. package/bundle/web-dist/client/voice-samples/openai/ash.mp3 +0 -0
  69. package/bundle/web-dist/client/voice-samples/openai/ballad.mp3 +0 -0
  70. package/bundle/web-dist/client/voice-samples/openai/cedar.mp3 +0 -0
  71. package/bundle/web-dist/client/voice-samples/openai/coral.mp3 +0 -0
  72. package/bundle/web-dist/client/voice-samples/openai/echo.mp3 +0 -0
  73. package/bundle/web-dist/client/voice-samples/openai/marin.mp3 +0 -0
  74. package/bundle/web-dist/client/voice-samples/openai/sage.mp3 +0 -0
  75. package/bundle/web-dist/client/voice-samples/openai/shimmer.mp3 +0 -0
  76. package/bundle/web-dist/client/voice-samples/openai/verse.mp3 +0 -0
  77. package/bundle/web-dist/server/assets/link-DrdV092C.js +4919 -0
  78. package/bundle/web-dist/server/assets/{logs-WZMx5ErO.js → logs-BmBpBe-j.js} +13 -6
  79. package/bundle/web-dist/server/assets/{monit-Bf6U1Xp5.js → monit-Db1WrIls.js} +2 -2
  80. package/bundle/web-dist/server/assets/{plus-BwpfWi3W.js → plus-CW9y_K7l.js} +1 -1
  81. package/bundle/web-dist/server/assets/{refresh-cw-Xk9nLu8E.js → refresh-cw-CRgcH5bT.js} +1 -1
  82. package/bundle/web-dist/server/assets/{request-model-ByadPBS5.js → request-model-DRF7hmJC.js} +1 -1
  83. package/bundle/web-dist/server/assets/{routes-WFysbWfc.js → routes-CARZj7or.js} +4 -4
  84. package/bundle/web-dist/server/assets/{services.generated-Bej_fJ74.js → services.generated-B6QpnL_N.js} +5 -0
  85. package/bundle/web-dist/server/assets/{settings-DnAbfheS.js → settings-B4jdpP5N.js} +4 -4
  86. package/bundle/web-dist/server/assets/{show-DvpdOIGn.js → show-D8r2sVK0.js} +17 -9
  87. package/bundle/web-dist/server/assets/{tokens-CAc4t_kZ.js → tokens-TDQguTdh.js} +5 -5
  88. package/bundle/web-dist/server/assets/{use-oauth-login-flow-Cxm_7Qg6.js → use-oauth-login-flow-du7pOh_H.js} +1 -1
  89. package/bundle/web-dist/server/assets/{use-update-token-mutation-DnxqIThp.js → use-update-token-mutation-DA6HiiWS.js} +1 -1
  90. package/bundle/web-dist/server/assets/voice-C2HfwkGp.js +668 -0
  91. package/bundle/web-dist/server/entry-server.generated.js +125 -4989
  92. package/bundle/web-dist/server/voice-samples/grok/altair.mp3 +0 -0
  93. package/bundle/web-dist/server/voice-samples/grok/ara.mp3 +0 -0
  94. package/bundle/web-dist/server/voice-samples/grok/atlas.mp3 +0 -0
  95. package/bundle/web-dist/server/voice-samples/grok/aurora.mp3 +0 -0
  96. package/bundle/web-dist/server/voice-samples/grok/carina.mp3 +0 -0
  97. package/bundle/web-dist/server/voice-samples/grok/castor.mp3 +0 -0
  98. package/bundle/web-dist/server/voice-samples/grok/celeste.mp3 +0 -0
  99. package/bundle/web-dist/server/voice-samples/grok/cosmo.mp3 +0 -0
  100. package/bundle/web-dist/server/voice-samples/grok/eve.mp3 +0 -0
  101. package/bundle/web-dist/server/voice-samples/grok/helios.mp3 +0 -0
  102. package/bundle/web-dist/server/voice-samples/grok/helix.mp3 +0 -0
  103. package/bundle/web-dist/server/voice-samples/grok/iris.mp3 +0 -0
  104. package/bundle/web-dist/server/voice-samples/grok/kepler.mp3 +0 -0
  105. package/bundle/web-dist/server/voice-samples/grok/leo.mp3 +0 -0
  106. package/bundle/web-dist/server/voice-samples/grok/liora.mp3 +0 -0
  107. package/bundle/web-dist/server/voice-samples/grok/lumen.mp3 +0 -0
  108. package/bundle/web-dist/server/voice-samples/grok/luna.mp3 +0 -0
  109. package/bundle/web-dist/server/voice-samples/grok/lux.mp3 +0 -0
  110. package/bundle/web-dist/server/voice-samples/grok/naksh.mp3 +0 -0
  111. package/bundle/web-dist/server/voice-samples/grok/orion.mp3 +0 -0
  112. package/bundle/web-dist/server/voice-samples/grok/perseus.mp3 +0 -0
  113. package/bundle/web-dist/server/voice-samples/grok/rex.mp3 +0 -0
  114. package/bundle/web-dist/server/voice-samples/grok/rigel.mp3 +0 -0
  115. package/bundle/web-dist/server/voice-samples/grok/sal.mp3 +0 -0
  116. package/bundle/web-dist/server/voice-samples/grok/sirius.mp3 +0 -0
  117. package/bundle/web-dist/server/voice-samples/grok/ursa.mp3 +0 -0
  118. package/bundle/web-dist/server/voice-samples/grok/zagan.mp3 +0 -0
  119. package/bundle/web-dist/server/voice-samples/grok/zenith.mp3 +0 -0
  120. package/bundle/web-dist/server/voice-samples/openai/alloy.mp3 +0 -0
  121. package/bundle/web-dist/server/voice-samples/openai/ash.mp3 +0 -0
  122. package/bundle/web-dist/server/voice-samples/openai/ballad.mp3 +0 -0
  123. package/bundle/web-dist/server/voice-samples/openai/cedar.mp3 +0 -0
  124. package/bundle/web-dist/server/voice-samples/openai/coral.mp3 +0 -0
  125. package/bundle/web-dist/server/voice-samples/openai/echo.mp3 +0 -0
  126. package/bundle/web-dist/server/voice-samples/openai/marin.mp3 +0 -0
  127. package/bundle/web-dist/server/voice-samples/openai/sage.mp3 +0 -0
  128. package/bundle/web-dist/server/voice-samples/openai/shimmer.mp3 +0 -0
  129. package/bundle/web-dist/server/voice-samples/openai/verse.mp3 +0 -0
  130. package/package.json +1 -1
  131. package/skills/qgrid/references/ai-sdk-provider-contract.md +2 -0
  132. package/skills/qgrid/references/grok-runtime.md +2 -0
  133. package/skills/qgrid/references/request-log-run-lifecycle.md +5 -0
  134. package/skills/qgrid/references/sonamu-api-web-flow.md +5 -1
  135. package/bundle/web-dist/client/assets/index-DLo1QCw7.css +0 -1
@@ -1,8 +1,9 @@
1
- import { J as require_react, Q as __toESM, n as QgridService, o as TokenService, q as require_jsx_runtime, r as RequestLogService } from "./services.generated-Bej_fJ74.js";
2
- import { d as Link, f as useNavigate, i as RequestLogOrderBy, r as Route } from "../entry-server.generated.js";
1
+ import { J as require_react, Q as __toESM, n as QgridService, o as TokenService, q as require_jsx_runtime, r as RequestLogService } from "./services.generated-B6QpnL_N.js";
2
+ import { t as Link } from "./link-DrdV092C.js";
3
+ import { f as useNavigate, i as RequestLogOrderBy, r as Route } from "../entry-server.generated.js";
3
4
  import { i as formatUsd, r as formatRequestCost, t as cacheHitRate } from "./cost-oNK0T4Jo.js";
4
- import { t as ForwardRef$2 } from "./refresh-cw-Xk9nLu8E.js";
5
- import { n as ForwardRef$3, t as requestModelDisplay } from "./request-model-ByadPBS5.js";
5
+ import { t as ForwardRef$2 } from "./refresh-cw-CRgcH5bT.js";
6
+ import { n as ForwardRef$3, t as requestModelDisplay } from "./request-model-DRF7hmJC.js";
6
7
  //#region ~icons/lucide/chevron-left.jsx
7
8
  var import_react = /* @__PURE__ */ __toESM(require_react());
8
9
  var import_jsx_runtime = require_jsx_runtime();
@@ -139,7 +140,7 @@ var COLUMNS = [
139
140
  {
140
141
  label: "Fmt",
141
142
  align: "left",
142
- width: "w-12"
143
+ width: "w-20"
143
144
  },
144
145
  {
145
146
  label: "TTFT",
@@ -449,7 +450,13 @@ function RequestLogTable({ search, onSearchChange }) {
449
450
  }),
450
451
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", {
451
452
  className: "px-4 py-1.5 whitespace-nowrap",
452
- children: row.is_image_generation ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
453
+ children: row.media_kind === "stt" || row.media_kind === "tts" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
454
+ className: "rounded bg-blue-100 px-1.5 py-0.5 font-mono text-[10px] text-blue-700",
455
+ children: ["voice/", row.media_kind]
456
+ }) : row.media_kind === "video" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
457
+ className: "rounded bg-sand-100 px-1.5 py-0.5 font-mono text-[10px] text-sand-700",
458
+ children: "video"
459
+ }) : row.is_image_generation ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
453
460
  className: "rounded bg-sage-100 px-1.5 py-0.5 font-mono text-[10px] text-sage-700",
454
461
  children: "img"
455
462
  }) : row.is_structured ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
@@ -1,8 +1,8 @@
1
- import { J as require_react, Q as __toESM, k as useQuery, q as require_jsx_runtime, t as MonitService } from "./services.generated-Bej_fJ74.js";
1
+ import { J as require_react, Q as __toESM, k as useQuery, q as require_jsx_runtime, t as MonitService } from "./services.generated-B6QpnL_N.js";
2
2
  import { t as clsx } from "./clsx-DgIEfj3H.js";
3
3
  import { n as Route } from "../entry-server.generated.js";
4
4
  import { t as cacheHitRate } from "./cost-oNK0T4Jo.js";
5
- import { t as ForwardRef } from "./refresh-cw-Xk9nLu8E.js";
5
+ import { t as ForwardRef } from "./refresh-cw-CRgcH5bT.js";
6
6
  //#region src/components/qgrid/MonitConsole.tsx
7
7
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
8
8
  var import_jsx_runtime = require_jsx_runtime();
@@ -1,4 +1,4 @@
1
- import { J as require_react, Q as __toESM, q as require_jsx_runtime } from "./services.generated-Bej_fJ74.js";
1
+ import { J as require_react, Q as __toESM, q as require_jsx_runtime } from "./services.generated-B6QpnL_N.js";
2
2
  //#region ~icons/lucide/plus.jsx
3
3
  var import_react = /* @__PURE__ */ __toESM(require_react());
4
4
  var import_jsx_runtime = require_jsx_runtime();
@@ -1,4 +1,4 @@
1
- import { J as require_react, Q as __toESM, q as require_jsx_runtime } from "./services.generated-Bej_fJ74.js";
1
+ import { J as require_react, Q as __toESM, q as require_jsx_runtime } from "./services.generated-B6QpnL_N.js";
2
2
  //#region ~icons/lucide/refresh-cw.jsx
3
3
  var import_react = /* @__PURE__ */ __toESM(require_react());
4
4
  var import_jsx_runtime = require_jsx_runtime();
@@ -1,4 +1,4 @@
1
- import { J as require_react, Q as __toESM, q as require_jsx_runtime } from "./services.generated-Bej_fJ74.js";
1
+ import { J as require_react, Q as __toESM, q as require_jsx_runtime } from "./services.generated-B6QpnL_N.js";
2
2
  //#region ~icons/lucide/zap.jsx
3
3
  var import_react = /* @__PURE__ */ __toESM(require_react());
4
4
  var import_jsx_runtime = require_jsx_runtime();
@@ -1,8 +1,8 @@
1
- import { J as require_react, K as useQueryClient, Q as __toESM, n as QgridService, o as TokenService, q as require_jsx_runtime } from "./services.generated-Bej_fJ74.js";
2
- import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry, t as isOAuthProvider } from "./use-oauth-login-flow-Cxm_7Qg6.js";
3
- import { u as require_react_dom } from "../entry-server.generated.js";
1
+ import { J as require_react, K as useQueryClient, Q as __toESM, n as QgridService, o as TokenService, q as require_jsx_runtime } from "./services.generated-B6QpnL_N.js";
2
+ import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry, t as isOAuthProvider } from "./use-oauth-login-flow-du7pOh_H.js";
3
+ import { d as require_react_dom } from "../entry-server.generated.js";
4
4
  import { i as formatUsd } from "./cost-oNK0T4Jo.js";
5
- import { t as useUpdateTokenMutation } from "./use-update-token-mutation-DnxqIThp.js";
5
+ import { t as useUpdateTokenMutation } from "./use-update-token-mutation-DA6HiiWS.js";
6
6
  //#region ../../node_modules/.pnpm/@dnd-kit+utilities@3.2.2_react@19.3.1/node_modules/@dnd-kit/utilities/dist/utilities.esm.js
7
7
  var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom());
8
8
  var import_react = /* @__PURE__ */ __toESM(require_react());
@@ -28808,6 +28808,7 @@ var entityLabels = {
28808
28808
  "entity.RequestLog.tool_call_count": "tool call 횟수",
28809
28809
  "entity.RequestLog.is_image_generation": "이미지 생성 turn 여부 (quota 귀속용)",
28810
28810
  "entity.RequestLog.is_structured": "structured output(jsonSchema) 요청 여부 (목록 구분 표시용)",
28811
+ "entity.RequestLog.media_kind": "미디어 엔드포인트 종류(image/video/stt/tts). 텍스트 요청은 null (목록 Fmt 표시용)",
28811
28812
  "enum.RequestLogOrderBy.id-desc": "ID최신순",
28812
28813
  "enum.RequestLogOrderBy.id-asc": "ID오래된순",
28813
28814
  "enum.RequestLogOrderBy.created_at-desc": "등록일시최신순",
@@ -28833,6 +28834,10 @@ var entityLabels = {
28833
28834
  "enum.RequestLogStatus.succeeded": "성공",
28834
28835
  "enum.RequestLogStatus.error": "에러",
28835
28836
  "enum.RequestLogStatus.aborted": "중단",
28837
+ "enum.RequestLogMediaKind.image": "이미지",
28838
+ "enum.RequestLogMediaKind.video": "비디오",
28839
+ "enum.RequestLogMediaKind.stt": "음성 인식",
28840
+ "enum.RequestLogMediaKind.tts": "음성 합성",
28836
28841
  "entity.RequestLogStep": "RequestLogStep",
28837
28842
  "entity.RequestLogStep.id": "ID",
28838
28843
  "entity.RequestLogStep.created_at": "등록일시",
@@ -1,7 +1,7 @@
1
- import { J as require_react, K as useQueryClient, Q as __toESM, a as SettingService, o as TokenService, q as require_jsx_runtime } from "./services.generated-Bej_fJ74.js";
2
- import { o as ForwardRef$3 } from "../entry-server.generated.js";
3
- import { t as useUpdateTokenMutation } from "./use-update-token-mutation-DnxqIThp.js";
4
- import { t as ForwardRef$4 } from "./plus-BwpfWi3W.js";
1
+ import { J as require_react, K as useQueryClient, Q as __toESM, a as SettingService, o as TokenService, q as require_jsx_runtime } from "./services.generated-B6QpnL_N.js";
2
+ import { s as ForwardRef$3 } from "../entry-server.generated.js";
3
+ import { t as useUpdateTokenMutation } from "./use-update-token-mutation-DA6HiiWS.js";
4
+ import { t as ForwardRef$4 } from "./plus-CW9y_K7l.js";
5
5
  //#region ~icons/lucide/eye.jsx
6
6
  var import_react = /* @__PURE__ */ __toESM(require_react());
7
7
  var import_jsx_runtime = require_jsx_runtime();
@@ -1,7 +1,8 @@
1
- import { C as number, E as union, J as require_react, Q as __toESM, S as looseObject, T as string, Y as __commonJSMin, b as json, h as array, i as RequestLogStepService, k as useQuery, l as isSonamuError, q as require_jsx_runtime, r as RequestLogService, w as object } from "./services.generated-Bej_fJ74.js";
2
- import { a as ForwardRef$4, c as Markdown, d as Link, s as remarkGfm, t as Route } from "../entry-server.generated.js";
1
+ import { C as number, E as union, J as require_react, Q as __toESM, S as looseObject, T as string, Y as __commonJSMin, b as json, h as array, i as RequestLogStepService, k as useQuery, l as isSonamuError, q as require_jsx_runtime, r as RequestLogService, w as object } from "./services.generated-B6QpnL_N.js";
2
+ import { t as Link } from "./link-DrdV092C.js";
3
+ import { a as ForwardRef$4, c as remarkGfm, l as Markdown, t as Route } from "../entry-server.generated.js";
3
4
  import { n as formatMicroUsd, t as cacheHitRate } from "./cost-oNK0T4Jo.js";
4
- import { n as ForwardRef$5, t as requestModelDisplay } from "./request-model-ByadPBS5.js";
5
+ import { n as ForwardRef$5, t as requestModelDisplay } from "./request-model-DRF7hmJC.js";
5
6
  //#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.js
6
7
  var require_extends = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7
8
  function _extends() {
@@ -2006,17 +2007,20 @@ function CopyButton({ text, dark }) {
2006
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" })
2007
2008
  });
2008
2009
  }
2009
- var DATA_IMAGE_TAG_RE = /<img\s+[^>]*src=["'](data:image\/[^"']+;base64,[^"']+)["'][^>]*(?:alt=["']([^"']*)["'][^>]*)?\/?>/gi;
2010
+ var DATA_MEDIA_TAG_RE = /<img\s+[^>]*src=["'](data:image\/[^"']+;base64,[^"']+)["'][^>]*(?:alt=["']([^"']*)["'][^>]*)?\/?>|<audio\s+[^>]*src=["'](data:audio\/[^"']+;base64,[^"']+)["'][^>]*>(?:<\/audio>)?/gi;
2010
2011
  function parseImageSegments(text) {
2011
2012
  const segments = [];
2012
2013
  let cursor = 0;
2013
- for (const match of text.matchAll(DATA_IMAGE_TAG_RE)) {
2014
+ for (const match of text.matchAll(DATA_MEDIA_TAG_RE)) {
2014
2015
  const index = match.index ?? 0;
2015
2016
  if (index > cursor) segments.push({
2016
2017
  type: "text",
2017
2018
  text: text.slice(cursor, index)
2018
2019
  });
2019
- segments.push({
2020
+ segments.push(match[3] ? {
2021
+ type: "audio",
2022
+ src: match[3]
2023
+ } : {
2020
2024
  type: "image",
2021
2025
  src: match[1],
2022
2026
  alt: match[2] ?? "generated image"
@@ -2027,12 +2031,12 @@ function parseImageSegments(text) {
2027
2031
  type: "text",
2028
2032
  text: text.slice(cursor)
2029
2033
  });
2030
- return segments.filter((segment) => segment.type === "image" || segment.text.trim().length > 0);
2034
+ return segments.filter((segment) => segment.type !== "text" || segment.text.trim().length > 0);
2031
2035
  }
2032
2036
  function ImageAwareContent({ text, markdown }) {
2033
2037
  const [viewerSrc, setViewerSrc] = (0, import_react.useState)(null);
2034
2038
  const segments = parseImageSegments(text);
2035
- if (!segments.some((segment) => segment.type === "image")) return markdown ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2039
+ if (!segments.some((segment) => segment.type !== "text")) return markdown ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
2036
2040
  className: "prose prose-sm prose-qgrid max-w-none",
2037
2041
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Markdown, {
2038
2042
  remarkPlugins: [remarkGfm],
@@ -2053,7 +2057,11 @@ function ImageAwareContent({ text, markdown }) {
2053
2057
  }, `text-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", {
2054
2058
  className: "text-sm text-sand-800 whitespace-pre-wrap wrap-break-word font-mono leading-relaxed",
2055
2059
  children: segment.text
2056
- }, `text-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
2060
+ }, `text-${index}`) : segment.type === "audio" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("audio", {
2061
+ controls: true,
2062
+ src: segment.src,
2063
+ className: "w-full max-w-md"
2064
+ }, `audio-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
2057
2065
  type: "button",
2058
2066
  className: "block max-w-full rounded-md border border-sand-200 overflow-hidden bg-white hover:border-sienna-300 transition-colors",
2059
2067
  onClick: () => setViewerSrc(segment.src),
@@ -1,8 +1,8 @@
1
- import { J as require_react, K as useQueryClient, Q as __toESM, n as QgridService, o as TokenService, q as require_jsx_runtime } from "./services.generated-Bej_fJ74.js";
2
- import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry } from "./use-oauth-login-flow-Cxm_7Qg6.js";
3
- import { l as ForwardRef$2 } from "../entry-server.generated.js";
4
- import { t as useUpdateTokenMutation } from "./use-update-token-mutation-DnxqIThp.js";
5
- import { t as ForwardRef$3 } from "./plus-BwpfWi3W.js";
1
+ import { J as require_react, K as useQueryClient, Q as __toESM, n as QgridService, o as TokenService, q as require_jsx_runtime } from "./services.generated-B6QpnL_N.js";
2
+ import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry } from "./use-oauth-login-flow-du7pOh_H.js";
3
+ import { u as ForwardRef$2 } from "../entry-server.generated.js";
4
+ import { t as useUpdateTokenMutation } from "./use-update-token-mutation-DA6HiiWS.js";
5
+ import { t as ForwardRef$3 } from "./plus-CW9y_K7l.js";
6
6
  //#region src/components/qgrid/DeviceCodeEntry.tsx
7
7
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
8
8
  var import_jsx_runtime = require_jsx_runtime();
@@ -1,4 +1,4 @@
1
- import { J as require_react, K as useQueryClient, Q as __toESM, n as QgridService, o as TokenService, q as require_jsx_runtime } from "./services.generated-Bej_fJ74.js";
1
+ import { J as require_react, K as useQueryClient, Q as __toESM, n as QgridService, o as TokenService, q as require_jsx_runtime } from "./services.generated-B6QpnL_N.js";
2
2
  import { t as clsx } from "./clsx-DgIEfj3H.js";
3
3
  //#region ../../node_modules/.pnpm/tailwind-merge@3.7.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
4
4
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
@@ -1,4 +1,4 @@
1
- import { O as useMutation, n as QgridService } from "./services.generated-Bej_fJ74.js";
1
+ import { O as useMutation, n as QgridService } from "./services.generated-B6QpnL_N.js";
2
2
  //#region src/services/token/use-update-token-mutation.ts
3
3
  function useUpdateTokenMutation() {
4
4
  return useMutation({ mutationFn: ({ id, name, quotaThreshold, weight, keepaliveEnabled }) => QgridService.updateToken(id, name, quotaThreshold, weight, keepaliveEnabled) });