@cartanova/qgrid-cli 2.15.3 → 2.15.5

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 (157) hide show
  1. package/bundle/dist/application/qgrid/qgrid.frame.js +168 -12
  2. package/bundle/dist/application/qgrid/qgrid.types.js +6 -3
  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/en.js +2 -1
  7. package/bundle/dist/i18n/ko.js +2 -1
  8. package/bundle/dist/i18n/sd.generated.js +6 -1
  9. package/bundle/dist/migrations/20261109110340_alter_request_logs_add1_alter1.js +15 -0
  10. package/bundle/dist/utils/providers/grok/grok-types.js +1 -1
  11. package/bundle/dist/utils/providers/grok/grok-voice-client.js +4 -2
  12. package/bundle/dist/utils/providers/openai/openai-backend-protocol.js +6 -54
  13. package/bundle/dist/utils/providers/openai/openai-direct-client.js +2 -2
  14. package/bundle/dist/utils/providers/openai/openai-dispatcher.js +47 -19
  15. package/bundle/dist/utils/providers/openai/openai-image-generation.js +1 -2
  16. package/bundle/dist/utils/providers/openai/openai-realtime-protocol.js +389 -0
  17. package/bundle/dist/utils/providers/openai/openai-voice-client.js +460 -0
  18. package/bundle/src/application/qgrid/qgrid.frame.test.ts +43 -6
  19. package/bundle/src/application/qgrid/qgrid.frame.ts +246 -14
  20. package/bundle/src/application/qgrid/qgrid.types.ts +14 -2
  21. package/bundle/src/application/request-log/request-log.entity.json +17 -2
  22. package/bundle/src/application/request-log/request-log.model.test.ts +17 -0
  23. package/bundle/src/application/request-log/request-log.model.ts +11 -3
  24. package/bundle/src/application/sonamu.generated.http +2 -0
  25. package/bundle/src/application/sonamu.generated.sso.ts +2 -0
  26. package/bundle/src/application/sonamu.generated.ts +14 -0
  27. package/bundle/src/i18n/en.ts +1 -0
  28. package/bundle/src/i18n/ko.ts +1 -0
  29. package/bundle/src/i18n/sd.generated.ts +6 -0
  30. package/bundle/src/migrations/20261109110340_alter_request_logs_add1_alter1.ts +15 -0
  31. package/bundle/src/utils/providers/grok/grok-types.ts +2 -0
  32. package/bundle/src/utils/providers/grok/grok-voice-client.test.ts +2 -0
  33. package/bundle/src/utils/providers/grok/grok-voice-client.ts +2 -0
  34. package/bundle/src/utils/providers/openai/openai-backend-protocol.test.ts +8 -69
  35. package/bundle/src/utils/providers/openai/openai-backend-protocol.ts +7 -86
  36. package/bundle/src/utils/providers/openai/openai-direct-client.test.ts +0 -15
  37. package/bundle/src/utils/providers/openai/openai-direct-client.ts +3 -1
  38. package/bundle/src/utils/providers/openai/openai-dispatcher.test.ts +19 -93
  39. package/bundle/src/utils/providers/openai/openai-dispatcher.ts +98 -47
  40. package/bundle/src/utils/providers/openai/openai-image-generation.test.ts +6 -4
  41. package/bundle/src/utils/providers/openai/openai-image-generation.ts +0 -6
  42. package/bundle/src/utils/providers/openai/openai-realtime-protocol.ts +550 -0
  43. package/bundle/src/utils/providers/openai/openai-voice-client.test.ts +582 -0
  44. package/bundle/src/utils/providers/openai/openai-voice-client.ts +744 -0
  45. package/bundle/web-dist/client/assets/index-DyrPRt6O.css +1 -0
  46. package/bundle/web-dist/client/assets/index-Wi8Wxte6.js +104 -0
  47. package/bundle/web-dist/client/assets/{logs-Dw-GrMuH.js → logs-Bdg3wJV2.js} +1 -1
  48. package/bundle/web-dist/client/assets/{monit-BaFFiVKs.js → monit-DcwHRAKu.js} +1 -1
  49. package/bundle/web-dist/client/assets/{routes-R1xBZYVT.js → routes-lxVC1DDJ.js} +1 -1
  50. package/bundle/web-dist/client/assets/{settings-Bw_NXAx8.js → settings-C0VCdd1C.js} +1 -1
  51. package/bundle/web-dist/client/assets/{show-BH7nfFtF.js → show-B7QRPxsY.js} +2 -2
  52. package/bundle/web-dist/client/assets/{tokens-BPmRr7mD.js → tokens-CNRSm9sc.js} +1 -1
  53. package/bundle/web-dist/client/assets/{use-oauth-login-flow-B_MGbC3a.js → use-oauth-login-flow-eQnMzp8A.js} +1 -1
  54. package/bundle/web-dist/client/assets/{use-update-token-mutation-Dcq7Yv2R.js → use-update-token-mutation-KnwyYQjb.js} +1 -1
  55. package/bundle/web-dist/client/assets/voice-BydIuS0A.js +1 -0
  56. package/bundle/web-dist/client/index.html +2 -2
  57. package/bundle/web-dist/client/voice-samples/grok/altair.mp3 +0 -0
  58. package/bundle/web-dist/client/voice-samples/grok/ara.mp3 +0 -0
  59. package/bundle/web-dist/client/voice-samples/grok/atlas.mp3 +0 -0
  60. package/bundle/web-dist/client/voice-samples/grok/aurora.mp3 +0 -0
  61. package/bundle/web-dist/client/voice-samples/grok/carina.mp3 +0 -0
  62. package/bundle/web-dist/client/voice-samples/grok/castor.mp3 +0 -0
  63. package/bundle/web-dist/client/voice-samples/grok/celeste.mp3 +0 -0
  64. package/bundle/web-dist/client/voice-samples/grok/cosmo.mp3 +0 -0
  65. package/bundle/web-dist/client/voice-samples/grok/eve.mp3 +0 -0
  66. package/bundle/web-dist/client/voice-samples/grok/helios.mp3 +0 -0
  67. package/bundle/web-dist/client/voice-samples/grok/helix.mp3 +0 -0
  68. package/bundle/web-dist/client/voice-samples/grok/iris.mp3 +0 -0
  69. package/bundle/web-dist/client/voice-samples/grok/kepler.mp3 +0 -0
  70. package/bundle/web-dist/client/voice-samples/grok/leo.mp3 +0 -0
  71. package/bundle/web-dist/client/voice-samples/grok/liora.mp3 +0 -0
  72. package/bundle/web-dist/client/voice-samples/grok/lumen.mp3 +0 -0
  73. package/bundle/web-dist/client/voice-samples/grok/luna.mp3 +0 -0
  74. package/bundle/web-dist/client/voice-samples/grok/lux.mp3 +0 -0
  75. package/bundle/web-dist/client/voice-samples/grok/naksh.mp3 +0 -0
  76. package/bundle/web-dist/client/voice-samples/grok/orion.mp3 +0 -0
  77. package/bundle/web-dist/client/voice-samples/grok/perseus.mp3 +0 -0
  78. package/bundle/web-dist/client/voice-samples/grok/rex.mp3 +0 -0
  79. package/bundle/web-dist/client/voice-samples/grok/rigel.mp3 +0 -0
  80. package/bundle/web-dist/client/voice-samples/grok/sal.mp3 +0 -0
  81. package/bundle/web-dist/client/voice-samples/grok/sirius.mp3 +0 -0
  82. package/bundle/web-dist/client/voice-samples/grok/ursa.mp3 +0 -0
  83. package/bundle/web-dist/client/voice-samples/grok/zagan.mp3 +0 -0
  84. package/bundle/web-dist/client/voice-samples/grok/zenith.mp3 +0 -0
  85. package/bundle/web-dist/client/voice-samples/openai/alloy.mp3 +0 -0
  86. package/bundle/web-dist/client/voice-samples/openai/ash.mp3 +0 -0
  87. package/bundle/web-dist/client/voice-samples/openai/ballad.mp3 +0 -0
  88. package/bundle/web-dist/client/voice-samples/openai/cedar.mp3 +0 -0
  89. package/bundle/web-dist/client/voice-samples/openai/coral.mp3 +0 -0
  90. package/bundle/web-dist/client/voice-samples/openai/echo.mp3 +0 -0
  91. package/bundle/web-dist/client/voice-samples/openai/marin.mp3 +0 -0
  92. package/bundle/web-dist/client/voice-samples/openai/sage.mp3 +0 -0
  93. package/bundle/web-dist/client/voice-samples/openai/shimmer.mp3 +0 -0
  94. package/bundle/web-dist/client/voice-samples/openai/verse.mp3 +0 -0
  95. package/bundle/web-dist/server/assets/link-DrdV092C.js +4919 -0
  96. package/bundle/web-dist/server/assets/{logs-6289J29J.js → logs-BmBpBe-j.js} +13 -6
  97. package/bundle/web-dist/server/assets/{monit-YVvwJuAF.js → monit-Db1WrIls.js} +2 -2
  98. package/bundle/web-dist/server/assets/{plus-z5Hy__3C.js → plus-CW9y_K7l.js} +1 -1
  99. package/bundle/web-dist/server/assets/{refresh-cw-CNm0CERy.js → refresh-cw-CRgcH5bT.js} +1 -1
  100. package/bundle/web-dist/server/assets/{request-model-DIuPZZwu.js → request-model-DRF7hmJC.js} +1 -1
  101. package/bundle/web-dist/server/assets/{routes-DVWRvqn0.js → routes-CARZj7or.js} +4 -4
  102. package/bundle/web-dist/server/assets/{services.generated-CqS8DCjT.js → services.generated-B6QpnL_N.js} +7 -0
  103. package/bundle/web-dist/server/assets/{settings-CXwnKiMG.js → settings-B4jdpP5N.js} +4 -4
  104. package/bundle/web-dist/server/assets/{show-G1t8dOEh.js → show-D8r2sVK0.js} +17 -9
  105. package/bundle/web-dist/server/assets/{tokens-Di1vDwm5.js → tokens-TDQguTdh.js} +5 -5
  106. package/bundle/web-dist/server/assets/{use-oauth-login-flow-BUAcW_pK.js → use-oauth-login-flow-du7pOh_H.js} +1 -1
  107. package/bundle/web-dist/server/assets/{use-update-token-mutation-oH0O0n-g.js → use-update-token-mutation-DA6HiiWS.js} +1 -1
  108. package/bundle/web-dist/server/assets/voice-C2HfwkGp.js +668 -0
  109. package/bundle/web-dist/server/entry-server.generated.js +125 -4989
  110. package/bundle/web-dist/server/voice-samples/grok/altair.mp3 +0 -0
  111. package/bundle/web-dist/server/voice-samples/grok/ara.mp3 +0 -0
  112. package/bundle/web-dist/server/voice-samples/grok/atlas.mp3 +0 -0
  113. package/bundle/web-dist/server/voice-samples/grok/aurora.mp3 +0 -0
  114. package/bundle/web-dist/server/voice-samples/grok/carina.mp3 +0 -0
  115. package/bundle/web-dist/server/voice-samples/grok/castor.mp3 +0 -0
  116. package/bundle/web-dist/server/voice-samples/grok/celeste.mp3 +0 -0
  117. package/bundle/web-dist/server/voice-samples/grok/cosmo.mp3 +0 -0
  118. package/bundle/web-dist/server/voice-samples/grok/eve.mp3 +0 -0
  119. package/bundle/web-dist/server/voice-samples/grok/helios.mp3 +0 -0
  120. package/bundle/web-dist/server/voice-samples/grok/helix.mp3 +0 -0
  121. package/bundle/web-dist/server/voice-samples/grok/iris.mp3 +0 -0
  122. package/bundle/web-dist/server/voice-samples/grok/kepler.mp3 +0 -0
  123. package/bundle/web-dist/server/voice-samples/grok/leo.mp3 +0 -0
  124. package/bundle/web-dist/server/voice-samples/grok/liora.mp3 +0 -0
  125. package/bundle/web-dist/server/voice-samples/grok/lumen.mp3 +0 -0
  126. package/bundle/web-dist/server/voice-samples/grok/luna.mp3 +0 -0
  127. package/bundle/web-dist/server/voice-samples/grok/lux.mp3 +0 -0
  128. package/bundle/web-dist/server/voice-samples/grok/naksh.mp3 +0 -0
  129. package/bundle/web-dist/server/voice-samples/grok/orion.mp3 +0 -0
  130. package/bundle/web-dist/server/voice-samples/grok/perseus.mp3 +0 -0
  131. package/bundle/web-dist/server/voice-samples/grok/rex.mp3 +0 -0
  132. package/bundle/web-dist/server/voice-samples/grok/rigel.mp3 +0 -0
  133. package/bundle/web-dist/server/voice-samples/grok/sal.mp3 +0 -0
  134. package/bundle/web-dist/server/voice-samples/grok/sirius.mp3 +0 -0
  135. package/bundle/web-dist/server/voice-samples/grok/ursa.mp3 +0 -0
  136. package/bundle/web-dist/server/voice-samples/grok/zagan.mp3 +0 -0
  137. package/bundle/web-dist/server/voice-samples/grok/zenith.mp3 +0 -0
  138. package/bundle/web-dist/server/voice-samples/openai/alloy.mp3 +0 -0
  139. package/bundle/web-dist/server/voice-samples/openai/ash.mp3 +0 -0
  140. package/bundle/web-dist/server/voice-samples/openai/ballad.mp3 +0 -0
  141. package/bundle/web-dist/server/voice-samples/openai/cedar.mp3 +0 -0
  142. package/bundle/web-dist/server/voice-samples/openai/coral.mp3 +0 -0
  143. package/bundle/web-dist/server/voice-samples/openai/echo.mp3 +0 -0
  144. package/bundle/web-dist/server/voice-samples/openai/marin.mp3 +0 -0
  145. package/bundle/web-dist/server/voice-samples/openai/sage.mp3 +0 -0
  146. package/bundle/web-dist/server/voice-samples/openai/shimmer.mp3 +0 -0
  147. package/bundle/web-dist/server/voice-samples/openai/verse.mp3 +0 -0
  148. package/package.json +1 -1
  149. package/skills/qgrid/SKILL.md +5 -5
  150. package/skills/qgrid/references/ai-sdk-provider-contract.md +4 -0
  151. package/skills/qgrid/references/decision-rationale.md +13 -3
  152. package/skills/qgrid/references/openai-codex-runtime.md +17 -5
  153. package/skills/qgrid/references/request-log-run-lifecycle.md +7 -2
  154. package/skills/qgrid/references/sonamu-api-web-flow.md +6 -2
  155. package/skills/qgrid/references/verification-and-debugging.md +3 -3
  156. package/bundle/web-dist/client/assets/index-BakMhnHZ.js +0 -104
  157. 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-CqS8DCjT.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-CNm0CERy.js";
5
- import { n as ForwardRef$3, t as requestModelDisplay } from "./request-model-DIuPZZwu.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-CqS8DCjT.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-CNm0CERy.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-CqS8DCjT.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-CqS8DCjT.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-CqS8DCjT.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-CqS8DCjT.js";
2
- import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry, t as isOAuthProvider } from "./use-oauth-login-flow-BUAcW_pK.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-oH0O0n-g.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());
@@ -28519,6 +28519,7 @@ var en_default = {
28519
28519
  "qgrid.grokCapacity": "All Grok tokens are at their in-flight request cap. Please retry shortly",
28520
28520
  "qgrid.grokContentPolicy": (detail) => `Grok generation blocked by content policy: ${detail}`,
28521
28521
  "qgrid.grokInvalidRequest": (detail) => `Invalid Grok request: ${detail}`,
28522
+ "qgrid.openaiVoiceInvalidRequest": (detail) => `Invalid OpenAI voice request: ${detail}`,
28522
28523
  "qgrid.grokLoginFailed": (detail) => `Grok login failed: ${detail}`,
28523
28524
  "qgrid.grokNotOAuthToken": "Grok login returned credentials that are not an xAI OAuth token",
28524
28525
  "qgrid.grokNoWorkers": (detail) => `No Grok token is available: ${detail}`,
@@ -28597,6 +28598,7 @@ var ko_default = {
28597
28598
  "qgrid.grokCapacity": "모든 Grok 토큰이 동시 요청 한도에 도달했습니다. 잠시 후 다시 시도해주세요",
28598
28599
  "qgrid.grokContentPolicy": (detail) => `콘텐츠 정책 위반으로 Grok 생성이 차단되었습니다: ${detail}`,
28599
28600
  "qgrid.grokInvalidRequest": (detail) => `잘못된 Grok 요청입니다: ${detail}`,
28601
+ "qgrid.openaiVoiceInvalidRequest": (detail) => `잘못된 OpenAI 음성 요청입니다: ${detail}`,
28600
28602
  "qgrid.grokLoginFailed": (detail) => `Grok 로그인에 실패했습니다: ${detail}`,
28601
28603
  "qgrid.grokNotOAuthToken": "Grok 로그인 결과가 xAI OAuth 토큰이 아닙니다",
28602
28604
  "qgrid.grokNoWorkers": (detail) => `사용 가능한 Grok 토큰이 없습니다: ${detail}`,
@@ -28806,6 +28808,7 @@ var entityLabels = {
28806
28808
  "entity.RequestLog.tool_call_count": "tool call 횟수",
28807
28809
  "entity.RequestLog.is_image_generation": "이미지 생성 turn 여부 (quota 귀속용)",
28808
28810
  "entity.RequestLog.is_structured": "structured output(jsonSchema) 요청 여부 (목록 구분 표시용)",
28811
+ "entity.RequestLog.media_kind": "미디어 엔드포인트 종류(image/video/stt/tts). 텍스트 요청은 null (목록 Fmt 표시용)",
28809
28812
  "enum.RequestLogOrderBy.id-desc": "ID최신순",
28810
28813
  "enum.RequestLogOrderBy.id-asc": "ID오래된순",
28811
28814
  "enum.RequestLogOrderBy.created_at-desc": "등록일시최신순",
@@ -28831,6 +28834,10 @@ var entityLabels = {
28831
28834
  "enum.RequestLogStatus.succeeded": "성공",
28832
28835
  "enum.RequestLogStatus.error": "에러",
28833
28836
  "enum.RequestLogStatus.aborted": "중단",
28837
+ "enum.RequestLogMediaKind.image": "이미지",
28838
+ "enum.RequestLogMediaKind.video": "비디오",
28839
+ "enum.RequestLogMediaKind.stt": "음성 인식",
28840
+ "enum.RequestLogMediaKind.tts": "음성 합성",
28834
28841
  "entity.RequestLogStep": "RequestLogStep",
28835
28842
  "entity.RequestLogStep.id": "ID",
28836
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-CqS8DCjT.js";
2
- import { o as ForwardRef$3 } from "../entry-server.generated.js";
3
- import { t as useUpdateTokenMutation } from "./use-update-token-mutation-oH0O0n-g.js";
4
- import { t as ForwardRef$4 } from "./plus-z5Hy__3C.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-CqS8DCjT.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-DIuPZZwu.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-CqS8DCjT.js";
2
- import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry } from "./use-oauth-login-flow-BUAcW_pK.js";
3
- import { l as ForwardRef$2 } from "../entry-server.generated.js";
4
- import { t as useUpdateTokenMutation } from "./use-update-token-mutation-oH0O0n-g.js";
5
- import { t as ForwardRef$3 } from "./plus-z5Hy__3C.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-CqS8DCjT.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-CqS8DCjT.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) });