@cartanova/qgrid-cli 2.15.4 → 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.
- package/bundle/dist/application/qgrid/qgrid.frame.js +18 -8
- package/bundle/dist/application/request-log/request-log.model.js +4 -3
- package/bundle/dist/application/sonamu.generated.js +20 -5
- package/bundle/dist/application/sonamu.generated.sso.js +5 -3
- package/bundle/dist/i18n/sd.generated.js +6 -1
- package/bundle/dist/migrations/20261109110340_alter_request_logs_add1_alter1.js +15 -0
- package/bundle/dist/utils/providers/grok/grok-types.js +1 -1
- package/bundle/dist/utils/providers/grok/grok-voice-client.js +4 -2
- package/bundle/dist/utils/providers/openai/openai-voice-client.js +6 -2
- package/bundle/src/application/qgrid/qgrid.frame.test.ts +37 -0
- package/bundle/src/application/qgrid/qgrid.frame.ts +35 -7
- package/bundle/src/application/request-log/request-log.entity.json +17 -2
- package/bundle/src/application/request-log/request-log.model.test.ts +17 -0
- package/bundle/src/application/request-log/request-log.model.ts +11 -3
- package/bundle/src/application/sonamu.generated.sso.ts +2 -0
- package/bundle/src/application/sonamu.generated.ts +14 -0
- package/bundle/src/i18n/sd.generated.ts +6 -0
- package/bundle/src/migrations/20261109110340_alter_request_logs_add1_alter1.ts +15 -0
- package/bundle/src/utils/providers/grok/grok-types.ts +2 -0
- package/bundle/src/utils/providers/grok/grok-voice-client.test.ts +2 -0
- package/bundle/src/utils/providers/grok/grok-voice-client.ts +2 -0
- package/bundle/src/utils/providers/openai/openai-voice-client.test.ts +6 -0
- package/bundle/src/utils/providers/openai/openai-voice-client.ts +6 -0
- package/bundle/web-dist/client/assets/index-DyrPRt6O.css +1 -0
- package/bundle/web-dist/client/assets/{index-CRdZwZsw.js → index-Wi8Wxte6.js} +34 -34
- package/bundle/web-dist/client/assets/{logs-DyLC_2Rf.js → logs-Bdg3wJV2.js} +1 -1
- package/bundle/web-dist/client/assets/{monit-C0hO3Fy6.js → monit-DcwHRAKu.js} +1 -1
- package/bundle/web-dist/client/assets/{routes-DTw4jsHI.js → routes-lxVC1DDJ.js} +1 -1
- package/bundle/web-dist/client/assets/{settings-Dg-1zSMq.js → settings-C0VCdd1C.js} +1 -1
- package/bundle/web-dist/client/assets/{show-BmqUEs1O.js → show-B7QRPxsY.js} +2 -2
- package/bundle/web-dist/client/assets/{tokens-FQ82u55y.js → tokens-CNRSm9sc.js} +1 -1
- package/bundle/web-dist/client/assets/{use-oauth-login-flow-BXmbUSjc.js → use-oauth-login-flow-eQnMzp8A.js} +1 -1
- package/bundle/web-dist/client/assets/{use-update-token-mutation-BWlMl3qg.js → use-update-token-mutation-KnwyYQjb.js} +1 -1
- package/bundle/web-dist/client/assets/voice-BydIuS0A.js +1 -0
- package/bundle/web-dist/client/index.html +2 -2
- package/bundle/web-dist/client/voice-samples/grok/altair.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/ara.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/atlas.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/aurora.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/carina.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/castor.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/celeste.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/cosmo.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/eve.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/helios.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/helix.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/iris.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/kepler.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/leo.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/liora.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/lumen.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/luna.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/lux.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/naksh.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/orion.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/perseus.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/rex.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/rigel.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/sal.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/sirius.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/ursa.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/zagan.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/grok/zenith.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/alloy.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/ash.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/ballad.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/cedar.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/coral.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/echo.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/marin.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/sage.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/shimmer.mp3 +0 -0
- package/bundle/web-dist/client/voice-samples/openai/verse.mp3 +0 -0
- package/bundle/web-dist/server/assets/link-DrdV092C.js +4919 -0
- package/bundle/web-dist/server/assets/{logs-WZMx5ErO.js → logs-BmBpBe-j.js} +13 -6
- package/bundle/web-dist/server/assets/{monit-Bf6U1Xp5.js → monit-Db1WrIls.js} +2 -2
- package/bundle/web-dist/server/assets/{plus-BwpfWi3W.js → plus-CW9y_K7l.js} +1 -1
- package/bundle/web-dist/server/assets/{refresh-cw-Xk9nLu8E.js → refresh-cw-CRgcH5bT.js} +1 -1
- package/bundle/web-dist/server/assets/{request-model-ByadPBS5.js → request-model-DRF7hmJC.js} +1 -1
- package/bundle/web-dist/server/assets/{routes-WFysbWfc.js → routes-CARZj7or.js} +4 -4
- package/bundle/web-dist/server/assets/{services.generated-Bej_fJ74.js → services.generated-B6QpnL_N.js} +5 -0
- package/bundle/web-dist/server/assets/{settings-DnAbfheS.js → settings-B4jdpP5N.js} +4 -4
- package/bundle/web-dist/server/assets/{show-DvpdOIGn.js → show-D8r2sVK0.js} +17 -9
- package/bundle/web-dist/server/assets/{tokens-CAc4t_kZ.js → tokens-TDQguTdh.js} +5 -5
- package/bundle/web-dist/server/assets/{use-oauth-login-flow-Cxm_7Qg6.js → use-oauth-login-flow-du7pOh_H.js} +1 -1
- package/bundle/web-dist/server/assets/{use-update-token-mutation-DnxqIThp.js → use-update-token-mutation-DA6HiiWS.js} +1 -1
- package/bundle/web-dist/server/assets/voice-C2HfwkGp.js +668 -0
- package/bundle/web-dist/server/entry-server.generated.js +125 -4989
- package/bundle/web-dist/server/voice-samples/grok/altair.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/ara.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/atlas.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/aurora.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/carina.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/castor.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/celeste.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/cosmo.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/eve.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/helios.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/helix.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/iris.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/kepler.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/leo.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/liora.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/lumen.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/luna.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/lux.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/naksh.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/orion.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/perseus.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/rex.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/rigel.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/sal.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/sirius.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/ursa.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/zagan.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/grok/zenith.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/alloy.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/ash.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/ballad.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/cedar.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/coral.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/echo.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/marin.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/sage.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/shimmer.mp3 +0 -0
- package/bundle/web-dist/server/voice-samples/openai/verse.mp3 +0 -0
- package/package.json +1 -1
- package/skills/qgrid/references/request-log-run-lifecycle.md +5 -0
- package/skills/qgrid/references/sonamu-api-web-flow.md +5 -1
- 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-
|
|
2
|
-
import {
|
|
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-
|
|
5
|
-
import { n as ForwardRef$3, t as requestModelDisplay } from "./request-model-
|
|
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-
|
|
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.
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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();
|
package/bundle/web-dist/server/assets/{request-model-ByadPBS5.js → request-model-DRF7hmJC.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as require_react, Q as __toESM, q as require_jsx_runtime } from "./services.generated-
|
|
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-
|
|
2
|
-
import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry, t as isOAuthProvider } from "./use-oauth-login-flow-
|
|
3
|
-
import {
|
|
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-
|
|
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-
|
|
2
|
-
import {
|
|
3
|
-
import { t as useUpdateTokenMutation } from "./use-update-token-mutation-
|
|
4
|
-
import { t as ForwardRef$4 } from "./plus-
|
|
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-
|
|
2
|
-
import {
|
|
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-
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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)("
|
|
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-
|
|
2
|
-
import { i as o, n as useOAuthLoginFlow, r as OAuthCodeEntry } from "./use-oauth-login-flow-
|
|
3
|
-
import {
|
|
4
|
-
import { t as useUpdateTokenMutation } from "./use-update-token-mutation-
|
|
5
|
-
import { t as ForwardRef$3 } from "./plus-
|
|
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-
|
|
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-
|
|
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) });
|