dsh-codex-subscription 3.2.13 → 3.2.15
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/README.de.md +4 -4
- package/README.en.md +4 -4
- package/README.es.md +4 -4
- package/README.fr.md +4 -4
- package/README.ja.md +4 -4
- package/README.md +4 -4
- package/README.pt.md +4 -4
- package/README.ru.md +4 -4
- package/README.zh-CN.md +4 -4
- package/lib/client.js +365 -454
- package/lib/index.js +464 -247
- package/package.json +2 -1
package/lib/client.js
CHANGED
|
@@ -867,12 +867,20 @@ window.__ModuleLoader__.load({
|
|
|
867
867
|
function useDismissOnOutsidePointer(anchor, open, dismiss, panel) {
|
|
868
868
|
(0, react.useEffect)(() => {
|
|
869
869
|
if (!open) return;
|
|
870
|
-
const doc = anchor.current?.ownerDocument;
|
|
870
|
+
const doc = anchor.current?.ownerDocument ?? panel.current?.ownerDocument;
|
|
871
871
|
const outside = (event) => {
|
|
872
872
|
if (!anchor.current?.contains(event.target) && !panel.current?.contains(event.target)) dismiss();
|
|
873
873
|
};
|
|
874
|
-
doc?.addEventListener("pointerdown", outside);
|
|
875
|
-
|
|
874
|
+
doc?.addEventListener("pointerdown", outside, true);
|
|
875
|
+
doc?.addEventListener("focusin", outside, true);
|
|
876
|
+
doc?.defaultView?.addEventListener("blur", dismiss);
|
|
877
|
+
doc?.defaultView?.addEventListener("resize", dismiss);
|
|
878
|
+
return () => {
|
|
879
|
+
doc?.removeEventListener("pointerdown", outside, true);
|
|
880
|
+
doc?.removeEventListener("focusin", outside, true);
|
|
881
|
+
doc?.defaultView?.removeEventListener("blur", dismiss);
|
|
882
|
+
doc?.defaultView?.removeEventListener("resize", dismiss);
|
|
883
|
+
};
|
|
876
884
|
}, [
|
|
877
885
|
anchor,
|
|
878
886
|
open,
|
|
@@ -1120,7 +1128,7 @@ window.__ModuleLoader__.load({
|
|
|
1120
1128
|
children: rows(items)
|
|
1121
1129
|
}) : null] });
|
|
1122
1130
|
}
|
|
1123
|
-
function ImageLightbox({ src, alt, labels, onClose }) {
|
|
1131
|
+
function ImageLightbox({ src, alt, labels, onClose, content }) {
|
|
1124
1132
|
const dialog = (0, react.useRef)(null);
|
|
1125
1133
|
(0, react.useLayoutEffect)(() => {
|
|
1126
1134
|
const element = dialog.current, opener = element.ownerDocument.activeElement;
|
|
@@ -1143,21 +1151,26 @@ window.__ModuleLoader__.load({
|
|
|
1143
1151
|
onClick: (event) => {
|
|
1144
1152
|
if (event.target === event.currentTarget) onClose();
|
|
1145
1153
|
},
|
|
1146
|
-
children: [
|
|
1147
|
-
src,
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1154
|
+
children: [
|
|
1155
|
+
src ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
1156
|
+
src,
|
|
1157
|
+
alt
|
|
1158
|
+
}) : null,
|
|
1159
|
+
content,
|
|
1160
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
1161
|
+
type: "button",
|
|
1162
|
+
"aria-label": labels.close,
|
|
1163
|
+
onClick: onClose,
|
|
1164
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCloseOutline16, {})
|
|
1165
|
+
})
|
|
1166
|
+
]
|
|
1155
1167
|
});
|
|
1156
1168
|
}
|
|
1157
1169
|
const ORIGINAL_IMAGE_ID_PATTERN = /^img_[0-9a-f]{32}$/u;
|
|
1170
|
+
const GENERATED_IMAGE_MEDIA_TYPES = Object.freeze(["image/png", "image/gif"]);
|
|
1158
1171
|
const positiveInteger = (value) => Number.isSafeInteger(value) && value > 0;
|
|
1159
1172
|
function decodeOriginalImageRef(value) {
|
|
1160
|
-
if (value === null || typeof value !== "object" || Array.isArray(value) || typeof value.assetId !== "string" || !ORIGINAL_IMAGE_ID_PATTERN.test(value.assetId) || value.mediaType
|
|
1173
|
+
if (value === null || typeof value !== "object" || Array.isArray(value) || typeof value.assetId !== "string" || !ORIGINAL_IMAGE_ID_PATTERN.test(value.assetId) || !GENERATED_IMAGE_MEDIA_TYPES.includes(value.mediaType) || !positiveInteger(value.bytes) || value.bytes > 48 * 1024 * 1024 || !positiveInteger(value.width) || !positiveInteger(value.height) || typeof value.name !== "string" || !/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/u.test(value.name) || typeof value.sha256 !== "string" || !/^[0-9a-f]{64}$/u.test(value.sha256)) return void 0;
|
|
1161
1174
|
return {
|
|
1162
1175
|
assetId: value.assetId,
|
|
1163
1176
|
mediaType: value.mediaType,
|
|
@@ -1302,11 +1315,12 @@ window.__ModuleLoader__.load({
|
|
|
1302
1315
|
//#endregion
|
|
1303
1316
|
//#region src/client-images.jsx
|
|
1304
1317
|
const imageDownloadName = (attachment) => {
|
|
1305
|
-
const
|
|
1318
|
+
const extension = attachment?.mediaType === "image/gif" ? ".gif" : ".png";
|
|
1319
|
+
const fallback = `codex-generated-image${extension}`;
|
|
1306
1320
|
if (typeof attachment?.name !== "string") return fallback;
|
|
1307
1321
|
const cleaned = attachment.name.replace(/[<>:"/\\|?*\u0000-\u001f]/gu, "-").replace(/[. ]+$/u, "").trim();
|
|
1308
1322
|
if (cleaned === "") return fallback;
|
|
1309
|
-
return cleaned.toLowerCase().endsWith(
|
|
1323
|
+
return cleaned.toLowerCase().endsWith(extension) ? cleaned : `${cleaned}${extension}`;
|
|
1310
1324
|
};
|
|
1311
1325
|
function triggerBlobDownload(data, mediaType, filename) {
|
|
1312
1326
|
const url = URL.createObjectURL(new Blob([data], { type: mediaType }));
|
|
@@ -1323,12 +1337,15 @@ window.__ModuleLoader__.load({
|
|
|
1323
1337
|
}
|
|
1324
1338
|
}
|
|
1325
1339
|
function CodexGeneratedImage({ attachment, original, gallery, rpc, sessionId, loadImage, openSketchImage, attachForEdit, getImageViewer, getInternalImageViewer, t, features }) {
|
|
1340
|
+
const animated = original?.mediaType === "image/gif";
|
|
1326
1341
|
const { src, failed: error, fail, retry, attempt, usable, loaded } = useImageSource((0, react.useCallback)(() => loadImage(attachment), [attachment, loadImage]), attachment.attachmentId ?? attachment);
|
|
1327
1342
|
const [nativePreview, setNativePreview] = (0, react.useState)();
|
|
1328
1343
|
const triggerRef = (0, react.useRef)(null);
|
|
1329
1344
|
const opening = (0, react.useRef)(0);
|
|
1345
|
+
const animationRequest = (0, react.useRef)();
|
|
1330
1346
|
(0, react.useEffect)(() => () => {
|
|
1331
1347
|
opening.current++;
|
|
1348
|
+
animationRequest.current?.abort();
|
|
1332
1349
|
}, [attachment]);
|
|
1333
1350
|
const label = attachment.name ?? t("imageLabel");
|
|
1334
1351
|
const makeItem = (attachment, original, src) => {
|
|
@@ -1350,7 +1367,7 @@ window.__ModuleLoader__.load({
|
|
|
1350
1367
|
onProgress
|
|
1351
1368
|
}), original.mediaType, original.name)
|
|
1352
1369
|
},
|
|
1353
|
-
actions: !features.imageEditing ? [] : [
|
|
1370
|
+
actions: !features.imageEditing || original?.mediaType === "image/gif" ? [] : [
|
|
1354
1371
|
{
|
|
1355
1372
|
id: "continue-editing",
|
|
1356
1373
|
label: t("imageEdit"),
|
|
@@ -1388,6 +1405,25 @@ window.__ModuleLoader__.load({
|
|
|
1388
1405
|
const openImage = async () => {
|
|
1389
1406
|
if (src === void 0) return;
|
|
1390
1407
|
const revision = ++opening.current;
|
|
1408
|
+
if (animated) {
|
|
1409
|
+
animationRequest.current?.abort();
|
|
1410
|
+
const controller = new AbortController();
|
|
1411
|
+
animationRequest.current = controller;
|
|
1412
|
+
setNativePreview({ attachment });
|
|
1413
|
+
try {
|
|
1414
|
+
const bytes = await readOriginalImage(rpc, sessionId, original, { signal: controller.signal });
|
|
1415
|
+
if (!controller.signal.aborted) setNativePreview({
|
|
1416
|
+
attachment,
|
|
1417
|
+
blob: new Blob([bytes], { type: original.mediaType })
|
|
1418
|
+
});
|
|
1419
|
+
} catch {
|
|
1420
|
+
if (!controller.signal.aborted) setNativePreview({
|
|
1421
|
+
attachment,
|
|
1422
|
+
error: true
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
return;
|
|
1426
|
+
}
|
|
1391
1427
|
const selectedIndex = gallery?.findIndex((image) => image.attachment === attachment || attachment.attachmentId && image.attachment.attachmentId === attachment.attachmentId) ?? -1;
|
|
1392
1428
|
const group = selectedIndex < 0 ? [...gallery ?? [], {
|
|
1393
1429
|
attachment,
|
|
@@ -1428,28 +1464,68 @@ window.__ModuleLoader__.load({
|
|
|
1428
1464
|
onClick: retry,
|
|
1429
1465
|
children: t("imageLoadFailed")
|
|
1430
1466
|
});
|
|
1431
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
src,
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1467
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
1468
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
1469
|
+
ref: triggerRef,
|
|
1470
|
+
type: "button",
|
|
1471
|
+
className: "codexGeneratedImageFrame",
|
|
1472
|
+
title: error ? t("imageLoadFailed") : t("imageOpen"),
|
|
1473
|
+
"aria-label": t("imageOpenNamed").replace("{value}", String(label)),
|
|
1474
|
+
onClick: error ? retry : openImage,
|
|
1475
|
+
children: [src === void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("imageLoading") }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
1476
|
+
src,
|
|
1477
|
+
onError: fail,
|
|
1478
|
+
onLoad: loaded,
|
|
1479
|
+
alt: label
|
|
1480
|
+
}, attempt), error ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("imageLoadFailed") }) : null]
|
|
1481
|
+
}),
|
|
1482
|
+
nativePreview?.attachment === attachment && animated ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AnimatedPreview, {
|
|
1483
|
+
preview: nativePreview,
|
|
1484
|
+
name: original.name,
|
|
1485
|
+
label,
|
|
1486
|
+
t,
|
|
1487
|
+
onClose: () => {
|
|
1488
|
+
animationRequest.current?.abort();
|
|
1489
|
+
setNativePreview(void 0);
|
|
1490
|
+
}
|
|
1491
|
+
}) : null,
|
|
1492
|
+
nativePreview?.attachment === attachment && !animated && !features.imageViewer ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageLightbox, {
|
|
1493
|
+
src: nativePreview.src,
|
|
1494
|
+
alt: label,
|
|
1495
|
+
labels: {
|
|
1496
|
+
dialog: t("imagePreview"),
|
|
1497
|
+
close: t("imageClosePreview")
|
|
1498
|
+
},
|
|
1499
|
+
onClose: () => setNativePreview(void 0)
|
|
1500
|
+
}) : null
|
|
1501
|
+
] });
|
|
1502
|
+
}
|
|
1503
|
+
function AnimatedPreview({ preview, name, label, t, onClose }) {
|
|
1504
|
+
const [src, setSource] = (0, react.useState)();
|
|
1505
|
+
(0, react.useEffect)(() => {
|
|
1506
|
+
if (!preview.blob) return;
|
|
1507
|
+
const url = URL.createObjectURL(preview.blob);
|
|
1508
|
+
setSource(url);
|
|
1509
|
+
return () => URL.revokeObjectURL(url);
|
|
1510
|
+
}, [preview.blob]);
|
|
1511
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageLightbox, {
|
|
1512
|
+
src,
|
|
1446
1513
|
alt: label,
|
|
1447
1514
|
labels: {
|
|
1448
1515
|
dialog: t("imagePreview"),
|
|
1449
1516
|
close: t("imageClosePreview")
|
|
1450
1517
|
},
|
|
1451
|
-
onClose
|
|
1452
|
-
|
|
1518
|
+
onClose,
|
|
1519
|
+
content: src ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
1520
|
+
className: "codexSubscriptionLink dcsLightboxDownload",
|
|
1521
|
+
href: src,
|
|
1522
|
+
download: name,
|
|
1523
|
+
children: t("imageDownload")
|
|
1524
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1525
|
+
role: preview.error ? "alert" : "status",
|
|
1526
|
+
children: t(preview.error ? "imageLoadFailed" : "imageLoading")
|
|
1527
|
+
})
|
|
1528
|
+
});
|
|
1453
1529
|
}
|
|
1454
1530
|
function CodexImageToolRow({ presentation = "tool", block, gallery, sessionId, rpc, loadImage, openSketchImage, attachForEdit, getImageViewer, getInternalImageViewer, t, preference }) {
|
|
1455
1531
|
const features = (0, react.useSyncExternalStore)(preference.subscribe, preference.getSnapshot);
|
|
@@ -1529,10 +1605,14 @@ window.__ModuleLoader__.load({
|
|
|
1529
1605
|
});
|
|
1530
1606
|
}
|
|
1531
1607
|
function CodexImageOutput({ node, ...props }) {
|
|
1532
|
-
const gallery = node.data.blocks.flatMap((block) =>
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1608
|
+
const gallery = node.data.blocks.flatMap((block) => {
|
|
1609
|
+
const original = decodeImagePresentation(block?.meta)?.original;
|
|
1610
|
+
if (original?.mediaType === "image/gif") return [];
|
|
1611
|
+
return block.content.filter((item) => item?.type === "image" && item.attachment).map((item) => ({
|
|
1612
|
+
attachment: item.attachment,
|
|
1613
|
+
original
|
|
1614
|
+
}));
|
|
1615
|
+
});
|
|
1536
1616
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1537
1617
|
className: "codexImageOutput",
|
|
1538
1618
|
children: node.data.blocks.map((block) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodexImageToolRow, {
|
|
@@ -2084,6 +2164,7 @@ window.__ModuleLoader__.load({
|
|
|
2084
2164
|
"diagnosticsHostUnknown": "宿主界面检查不可用或未挂载,不能据此判断插件干扰。",
|
|
2085
2165
|
"diagnosticsDetails": "展开脱敏详情",
|
|
2086
2166
|
"diagnosticsCopyFailed": "复制失败,可展开详情手动复制。",
|
|
2167
|
+
"diagnosticsPreview": "查看报告",
|
|
2087
2168
|
"diagnosticSource_rpc": "接口响应",
|
|
2088
2169
|
"diagnosticSource_tool": "工具",
|
|
2089
2170
|
"diagnosticOutcome_completed": "完成",
|
|
@@ -2466,7 +2547,7 @@ window.__ModuleLoader__.load({
|
|
|
2466
2547
|
imageModel: "请求型号",
|
|
2467
2548
|
imageQuality: "请求质量",
|
|
2468
2549
|
imageExperimental: "实验",
|
|
2469
|
-
imageModelHint: "
|
|
2550
|
+
imageModelHint: "Flare 和 Sunburst 为实验选项。订阅服务可能不采用请求的型号或质量。",
|
|
2470
2551
|
sketchTool_pen: "画笔",
|
|
2471
2552
|
sketchTool_rectangle: "矩形",
|
|
2472
2553
|
sketchTool_circle: "椭圆",
|
|
@@ -2605,7 +2686,7 @@ window.__ModuleLoader__.load({
|
|
|
2605
2686
|
diagnostics: "支持诊断",
|
|
2606
2687
|
diagnosticsLoad: "生成诊断",
|
|
2607
2688
|
diagnosticsLoading: "生成中…",
|
|
2608
|
-
diagnosticsCopy: "
|
|
2689
|
+
diagnosticsCopy: "复制报告",
|
|
2609
2690
|
diagnosticsCopyFull: "复制完整诊断",
|
|
2610
2691
|
diagnosticsCopied: "已复制",
|
|
2611
2692
|
diagnosticsFailed: "服务端诊断不可用,已生成可复制的本地脱敏诊断。请检查 DSH 服务连接与插件版本。",
|
|
@@ -2898,7 +2979,7 @@ window.__ModuleLoader__.load({
|
|
|
2898
2979
|
fetchCodexHint: "通过 Codex 订阅读取可访问的网页文本。失败会直接提示,不会转到 DeepSeek API。",
|
|
2899
2980
|
fetchUnavailableHint: "当前 DSH 不支持切换到 Codex 网页读取,请先升级宿主。",
|
|
2900
2981
|
quotaForecastCalibrating: "续航正在校准",
|
|
2901
|
-
quotaForecastIdle: "
|
|
2982
|
+
quotaForecastIdle: "近期剩余额度百分比未变化",
|
|
2902
2983
|
quotaForecastUntilReset: "按最近用量,预计可用到重置",
|
|
2903
2984
|
runwayDaysHours: "{days} 天 {hours}h",
|
|
2904
2985
|
runwayDays: "{days} 天",
|
|
@@ -2906,13 +2987,13 @@ window.__ModuleLoader__.load({
|
|
|
2906
2987
|
runwayMinutes: "{minutes} 分钟",
|
|
2907
2988
|
"composerSettingsTitle": "输入框",
|
|
2908
2989
|
"defaultSpeedTitle": "默认速度",
|
|
2909
|
-
"composerMenuCustom": "
|
|
2990
|
+
"composerMenuCustom": "已启用模型菜单扩展",
|
|
2910
2991
|
"composerMenuHost": "由 DSH 或其他插件提供模型菜单",
|
|
2911
2992
|
"legacyModelPicker": "输入框模型菜单",
|
|
2912
2993
|
"composerMenuAuto": "自动",
|
|
2913
2994
|
"composerMenuDsh": "DSH 标准",
|
|
2914
2995
|
"composerMenuSubscription": "订阅菜单",
|
|
2915
|
-
"legacyModelPickerHint": "
|
|
2996
|
+
"legacyModelPickerHint": "通过 DSH 的扩展位置添加速度和回答详略,不替换其他插件的菜单。第三方菜单未显示这些选项时,仍可在此设置。",
|
|
2916
2997
|
speedTitle: "速度",
|
|
2917
2998
|
speedStandard: "标准",
|
|
2918
2999
|
speedStandardHint: "标准速度",
|
|
@@ -3029,6 +3110,7 @@ window.__ModuleLoader__.load({
|
|
|
3029
3110
|
"diagnosticsHostUnknown": "Host inspection unavailable or unmounted; interference cannot be determined.",
|
|
3030
3111
|
"diagnosticsDetails": "Redacted details",
|
|
3031
3112
|
"diagnosticsCopyFailed": "Copy failed. Expand the details to copy manually.",
|
|
3113
|
+
"diagnosticsPreview": "View report",
|
|
3032
3114
|
"diagnosticSource_rpc": "RPC response",
|
|
3033
3115
|
"diagnosticSource_tool": "Tool",
|
|
3034
3116
|
"diagnosticOutcome_completed": "Completed",
|
|
@@ -3411,7 +3493,7 @@ window.__ModuleLoader__.load({
|
|
|
3411
3493
|
imageModel: "Requested model",
|
|
3412
3494
|
imageQuality: "Requested quality",
|
|
3413
3495
|
imageExperimental: "Experimental",
|
|
3414
|
-
imageModelHint: "
|
|
3496
|
+
imageModelHint: "Flare and Sunburst are experimental. The subscription service may use a different model or quality.",
|
|
3415
3497
|
sketchTool_pen: "Pen",
|
|
3416
3498
|
sketchTool_rectangle: "Rectangle",
|
|
3417
3499
|
sketchTool_circle: "Ellipse",
|
|
@@ -3550,7 +3632,7 @@ window.__ModuleLoader__.load({
|
|
|
3550
3632
|
diagnostics: "Support diagnostics",
|
|
3551
3633
|
diagnosticsLoad: "Create report",
|
|
3552
3634
|
diagnosticsLoading: "Creating…",
|
|
3553
|
-
diagnosticsCopy: "Copy report
|
|
3635
|
+
diagnosticsCopy: "Copy report",
|
|
3554
3636
|
diagnosticsCopyFull: "Copy full report",
|
|
3555
3637
|
diagnosticsCopied: "Copied",
|
|
3556
3638
|
diagnosticsFailed: "Server diagnostics unavailable. A local, redacted report is available to copy. Check the DSH service and plugin version.",
|
|
@@ -3843,7 +3925,7 @@ window.__ModuleLoader__.load({
|
|
|
3843
3925
|
fetchCodexHint: "Read accessible webpage text with your Codex subscription. Failures are reported directly, without falling back to the DeepSeek API.",
|
|
3844
3926
|
fetchUnavailableHint: "This DSH version cannot switch to the Codex webpage reader. Update DSH first.",
|
|
3845
3927
|
quotaForecastCalibrating: "Runway calibrating",
|
|
3846
|
-
quotaForecastIdle: "
|
|
3928
|
+
quotaForecastIdle: "No recent change in the reported percentage",
|
|
3847
3929
|
quotaForecastUntilReset: "Estimated to last until reset at recent usage",
|
|
3848
3930
|
runwayDaysHours: "{days}d {hours}h",
|
|
3849
3931
|
runwayDays: "{days}d",
|
|
@@ -3851,13 +3933,13 @@ window.__ModuleLoader__.load({
|
|
|
3851
3933
|
runwayMinutes: "{minutes}m",
|
|
3852
3934
|
"composerSettingsTitle": "Composer",
|
|
3853
3935
|
"defaultSpeedTitle": "Default speed",
|
|
3854
|
-
"composerMenuCustom": "
|
|
3936
|
+
"composerMenuCustom": "Model menu extensions enabled",
|
|
3855
3937
|
"composerMenuHost": "Model menu provided by DSH or another plugin",
|
|
3856
3938
|
"legacyModelPicker": "Composer model menu",
|
|
3857
3939
|
"composerMenuAuto": "Auto",
|
|
3858
3940
|
"composerMenuDsh": "DSH standard",
|
|
3859
3941
|
"composerMenuSubscription": "Subscription",
|
|
3860
|
-
"legacyModelPickerHint": "
|
|
3942
|
+
"legacyModelPickerHint": "Adds speed and output detail through DSH extension slots without replacing another plugin's menu. These settings remain available here if that menu does not show them.",
|
|
3861
3943
|
speedTitle: "Speed",
|
|
3862
3944
|
speedStandard: "Standard",
|
|
3863
3945
|
speedStandardHint: "Standard speed",
|
|
@@ -4356,7 +4438,7 @@ window.__ModuleLoader__.load({
|
|
|
4356
4438
|
"imageModel": "リクエストしたモデル",
|
|
4357
4439
|
"imageQuality": "リクエストした品質",
|
|
4358
4440
|
"imageExperimental": "実験的",
|
|
4359
|
-
"imageModelHint": "
|
|
4441
|
+
"imageModelHint": "Flare と Sunburst は試験的な選択肢です。購読サービスが別のモデルや品質で処理する場合があります。",
|
|
4360
4442
|
"sketchTool_pen": "ペン",
|
|
4361
4443
|
"sketchTool_rectangle": "長方形",
|
|
4362
4444
|
"sketchTool_circle": "楕円",
|
|
@@ -4495,7 +4577,8 @@ window.__ModuleLoader__.load({
|
|
|
4495
4577
|
"diagnostics": "サポート用診断情報",
|
|
4496
4578
|
"diagnosticsLoad": "レポートを作成",
|
|
4497
4579
|
"diagnosticsLoading": "作成中…",
|
|
4498
|
-
"diagnosticsCopy": "
|
|
4580
|
+
"diagnosticsCopy": "レポートをコピー",
|
|
4581
|
+
"diagnosticsPreview": "レポートを表示",
|
|
4499
4582
|
"diagnosticsCopyFull": "レポート全体をコピー",
|
|
4500
4583
|
"diagnosticsCopied": "コピーしました",
|
|
4501
4584
|
"diagnosticsFailed": "サーバーの診断情報を利用できません。ローカルで作成した、機密情報を削除済みのレポートをコピーできます。DSHサービスとプラグインのバージョンを確認してください。",
|
|
@@ -4788,7 +4871,7 @@ window.__ModuleLoader__.load({
|
|
|
4788
4871
|
"fetchCodexHint": "Codex サブスクリプションを使って、アクセス可能なウェブページのテキストを読み取ります。失敗時はそのまま通知され、DeepSeek API にはフォールバックしません。",
|
|
4789
4872
|
"fetchUnavailableHint": "このバージョンの DSH では Codex のウェブページリーダーに切り替えられません。先に DSH を更新してください。",
|
|
4790
4873
|
"quotaForecastCalibrating": "残り時間を予測中",
|
|
4791
|
-
"quotaForecastIdle": "
|
|
4874
|
+
"quotaForecastIdle": "直近の残量表示に変化なし",
|
|
4792
4875
|
"quotaForecastUntilReset": "最近の利用ペースなら、リセットまで持つ見込みです",
|
|
4793
4876
|
"runwayDaysHours": "{days}日 {hours}時間",
|
|
4794
4877
|
"runwayDays": "{days}日",
|
|
@@ -4796,13 +4879,13 @@ window.__ModuleLoader__.load({
|
|
|
4796
4879
|
"runwayMinutes": "{minutes}分",
|
|
4797
4880
|
"composerSettingsTitle": "入力欄",
|
|
4798
4881
|
"defaultSpeedTitle": "既定の速度",
|
|
4799
|
-
"composerMenuCustom": "
|
|
4882
|
+
"composerMenuCustom": "モデルメニューの拡張が有効",
|
|
4800
4883
|
"composerMenuHost": "DSH または他のプラグインのメニューを使用",
|
|
4801
4884
|
"legacyModelPicker": "入力欄のモデルメニュー",
|
|
4802
4885
|
"composerMenuAuto": "自動",
|
|
4803
4886
|
"composerMenuDsh": "DSH 標準",
|
|
4804
4887
|
"composerMenuSubscription": "購読メニュー",
|
|
4805
|
-
"legacyModelPickerHint": "
|
|
4888
|
+
"legacyModelPickerHint": "DSH の拡張枠に速度と回答の詳しさを追加し、他のプラグインのメニューは置き換えません。対応しないメニューでも、ここから設定できます。",
|
|
4806
4889
|
"speedTitle": "速度",
|
|
4807
4890
|
"speedStandard": "標準",
|
|
4808
4891
|
"speedStandardHint": "標準速度",
|
|
@@ -5301,7 +5384,7 @@ window.__ModuleLoader__.load({
|
|
|
5301
5384
|
"imageModel": "Modelo solicitado",
|
|
5302
5385
|
"imageQuality": "Calidad solicitada",
|
|
5303
5386
|
"imageExperimental": "Experimental",
|
|
5304
|
-
"imageModelHint": "
|
|
5387
|
+
"imageModelHint": "Flare y Sunburst son experimentales. El servicio puede usar otro modelo u otra calidad.",
|
|
5305
5388
|
"sketchTool_pen": "Pluma",
|
|
5306
5389
|
"sketchTool_rectangle": "Rectángulo",
|
|
5307
5390
|
"sketchTool_circle": "Elipse",
|
|
@@ -5440,7 +5523,8 @@ window.__ModuleLoader__.load({
|
|
|
5440
5523
|
"diagnostics": "Diagnóstico de soporte",
|
|
5441
5524
|
"diagnosticsLoad": "Crear informe",
|
|
5442
5525
|
"diagnosticsLoading": "Creando…",
|
|
5443
|
-
"diagnosticsCopy": "Copiar informe
|
|
5526
|
+
"diagnosticsCopy": "Copiar informe",
|
|
5527
|
+
"diagnosticsPreview": "Ver informe",
|
|
5444
5528
|
"diagnosticsCopyFull": "Copiar informe completo",
|
|
5445
5529
|
"diagnosticsCopied": "Copiado",
|
|
5446
5530
|
"diagnosticsFailed": "El diagnóstico del servidor no está disponible. Puedes copiar un informe local con datos confidenciales ocultos. Comprueba el servicio DSH y la versión del complemento.",
|
|
@@ -5733,7 +5817,7 @@ window.__ModuleLoader__.load({
|
|
|
5733
5817
|
"fetchCodexHint": "Lee el texto accesible de las páginas web con tu suscripción a Codex. Los errores se indican directamente, sin recurrir a la API de DeepSeek.",
|
|
5734
5818
|
"fetchUnavailableHint": "Esta versión de DSH no permite cambiar al lector de páginas web de Codex. Actualiza DSH primero.",
|
|
5735
5819
|
"quotaForecastCalibrating": "Calibrando autonomía",
|
|
5736
|
-
"quotaForecastIdle": "
|
|
5820
|
+
"quotaForecastIdle": "Sin cambios recientes en el porcentaje",
|
|
5737
5821
|
"quotaForecastUntilReset": "Según el uso reciente, se estima que durará hasta el restablecimiento",
|
|
5738
5822
|
"runwayDaysHours": "{days} d {hours} h",
|
|
5739
5823
|
"runwayDays": "{days} d",
|
|
@@ -5741,13 +5825,13 @@ window.__ModuleLoader__.load({
|
|
|
5741
5825
|
"runwayMinutes": "{minutes} min",
|
|
5742
5826
|
"composerSettingsTitle": "Cuadro de mensaje",
|
|
5743
5827
|
"defaultSpeedTitle": "Velocidad predeterminada",
|
|
5744
|
-
"composerMenuCustom": "
|
|
5828
|
+
"composerMenuCustom": "Extensiones del menú de modelos activadas",
|
|
5745
5829
|
"composerMenuHost": "Menú de DSH u otro complemento",
|
|
5746
5830
|
"legacyModelPicker": "Menú de modelos del cuadro de entrada",
|
|
5747
5831
|
"composerMenuAuto": "Auto",
|
|
5748
5832
|
"composerMenuDsh": "Estándar de DSH",
|
|
5749
5833
|
"composerMenuSubscription": "Suscripción",
|
|
5750
|
-
"legacyModelPickerHint": "
|
|
5834
|
+
"legacyModelPickerHint": "Añade velocidad y detalle mediante los puntos de extensión de DSH sin sustituir el menú de otro complemento. Si ese menú no muestra las opciones, siguen disponibles aquí.",
|
|
5751
5835
|
"speedTitle": "Velocidad",
|
|
5752
5836
|
"speedStandard": "Estándar",
|
|
5753
5837
|
"speedStandardHint": "Velocidad estándar",
|
|
@@ -6246,7 +6330,7 @@ window.__ModuleLoader__.load({
|
|
|
6246
6330
|
"imageModel": "Modèle demandé",
|
|
6247
6331
|
"imageQuality": "Qualité demandée",
|
|
6248
6332
|
"imageExperimental": "Expérimental",
|
|
6249
|
-
"imageModelHint": "
|
|
6333
|
+
"imageModelHint": "Flare et Sunburst sont expérimentaux. Le service peut utiliser un autre modèle ou une autre qualité.",
|
|
6250
6334
|
"sketchTool_pen": "Stylo",
|
|
6251
6335
|
"sketchTool_rectangle": "Rectangle",
|
|
6252
6336
|
"sketchTool_circle": "Ellipse",
|
|
@@ -6385,7 +6469,8 @@ window.__ModuleLoader__.load({
|
|
|
6385
6469
|
"diagnostics": "Diagnostic d’assistance",
|
|
6386
6470
|
"diagnosticsLoad": "Créer un rapport",
|
|
6387
6471
|
"diagnosticsLoading": "Création…",
|
|
6388
|
-
"diagnosticsCopy": "Copier le rapport
|
|
6472
|
+
"diagnosticsCopy": "Copier le rapport",
|
|
6473
|
+
"diagnosticsPreview": "Voir le rapport",
|
|
6389
6474
|
"diagnosticsCopyFull": "Copier le rapport complet",
|
|
6390
6475
|
"diagnosticsCopied": "Copié",
|
|
6391
6476
|
"diagnosticsFailed": "Les diagnostics du serveur sont indisponibles. Un rapport local expurgé peut être copié. Vérifiez le service DSH et la version du plugin.",
|
|
@@ -6678,7 +6763,7 @@ window.__ModuleLoader__.load({
|
|
|
6678
6763
|
"fetchCodexHint": "Lire le texte accessible des pages Web avec votre abonnement Codex. Les échecs sont signalés directement, sans recours à l’API DeepSeek.",
|
|
6679
6764
|
"fetchUnavailableHint": "Cette version de DSH ne permet pas de passer au lecteur de pages Web Codex. Mettez d’abord DSH à jour.",
|
|
6680
6765
|
"quotaForecastCalibrating": "Estimation de l’autonomie en cours",
|
|
6681
|
-
"quotaForecastIdle": "
|
|
6766
|
+
"quotaForecastIdle": "Aucune variation récente du pourcentage",
|
|
6682
6767
|
"quotaForecastUntilReset": "Au rythme récent, le quota devrait suffire jusqu’à sa réinitialisation",
|
|
6683
6768
|
"runwayDaysHours": "{days} j {hours} h",
|
|
6684
6769
|
"runwayDays": "{days} j",
|
|
@@ -6686,13 +6771,13 @@ window.__ModuleLoader__.load({
|
|
|
6686
6771
|
"runwayMinutes": "{minutes} min",
|
|
6687
6772
|
"composerSettingsTitle": "Zone de saisie",
|
|
6688
6773
|
"defaultSpeedTitle": "Vitesse par défaut",
|
|
6689
|
-
"composerMenuCustom": "
|
|
6774
|
+
"composerMenuCustom": "Extensions du menu des modèles activées",
|
|
6690
6775
|
"composerMenuHost": "Menu fourni par DSH ou une autre extension",
|
|
6691
6776
|
"legacyModelPicker": "Menu des modèles de la zone de saisie",
|
|
6692
6777
|
"composerMenuAuto": "Auto",
|
|
6693
6778
|
"composerMenuDsh": "Standard DSH",
|
|
6694
6779
|
"composerMenuSubscription": "Abonnement",
|
|
6695
|
-
"legacyModelPickerHint": "
|
|
6780
|
+
"legacyModelPickerHint": "Ajoute la vitesse et le niveau de détail via les points d’extension de DSH sans remplacer le menu d’une autre extension. Si ce menu ne les affiche pas, ces réglages restent disponibles ici.",
|
|
6696
6781
|
"speedTitle": "Vitesse",
|
|
6697
6782
|
"speedStandard": "Standard",
|
|
6698
6783
|
"speedStandardHint": "Vitesse standard",
|
|
@@ -7191,7 +7276,7 @@ window.__ModuleLoader__.load({
|
|
|
7191
7276
|
"imageModel": "Angefordertes Modell",
|
|
7192
7277
|
"imageQuality": "Angeforderte Qualität",
|
|
7193
7278
|
"imageExperimental": "Experimentell",
|
|
7194
|
-
"imageModelHint": "
|
|
7279
|
+
"imageModelHint": "Flare und Sunburst sind experimentell. Der Dienst kann ein anderes Modell oder eine andere Qualität verwenden.",
|
|
7195
7280
|
"sketchTool_pen": "Stift",
|
|
7196
7281
|
"sketchTool_rectangle": "Rechteck",
|
|
7197
7282
|
"sketchTool_circle": "Ellipse",
|
|
@@ -7330,7 +7415,8 @@ window.__ModuleLoader__.load({
|
|
|
7330
7415
|
"diagnostics": "Supportdiagnose",
|
|
7331
7416
|
"diagnosticsLoad": "Bericht erstellen",
|
|
7332
7417
|
"diagnosticsLoading": "Wird erstellt…",
|
|
7333
|
-
"diagnosticsCopy": "Bericht kopieren
|
|
7418
|
+
"diagnosticsCopy": "Bericht kopieren",
|
|
7419
|
+
"diagnosticsPreview": "Bericht ansehen",
|
|
7334
7420
|
"diagnosticsCopyFull": "Vollständigen Bericht kopieren",
|
|
7335
7421
|
"diagnosticsCopied": "Kopiert",
|
|
7336
7422
|
"diagnosticsFailed": "Serverdiagnose nicht verfügbar. Ein lokaler, bereinigter Bericht kann kopiert werden. DSH-Dienst und Plugin-Version prüfen.",
|
|
@@ -7623,7 +7709,7 @@ window.__ModuleLoader__.load({
|
|
|
7623
7709
|
"fetchCodexHint": "Liest zugängliche Webseitentexte mit deinem Codex-Abo. Fehler werden direkt gemeldet; es gibt keinen Rückgriff auf die DeepSeek-API.",
|
|
7624
7710
|
"fetchUnavailableHint": "Diese DSH-Version kann nicht zum Codex-Webseitenleser wechseln. Aktualisiere zuerst DSH.",
|
|
7625
7711
|
"quotaForecastCalibrating": "Restlaufzeit wird kalibriert",
|
|
7626
|
-
"quotaForecastIdle": "
|
|
7712
|
+
"quotaForecastIdle": "Zuletzt keine Änderung der angezeigten Quote",
|
|
7627
7713
|
"quotaForecastUntilReset": "Reicht bei jüngster Nutzung voraussichtlich bis zur Zurücksetzung",
|
|
7628
7714
|
"runwayDaysHours": "{days} Tg. {hours} Std.",
|
|
7629
7715
|
"runwayDays": "{days} Tg.",
|
|
@@ -7631,13 +7717,13 @@ window.__ModuleLoader__.load({
|
|
|
7631
7717
|
"runwayMinutes": "{minutes} Min.",
|
|
7632
7718
|
"composerSettingsTitle": "Eingabefeld",
|
|
7633
7719
|
"defaultSpeedTitle": "Standardtempo",
|
|
7634
|
-
"composerMenuCustom": "
|
|
7720
|
+
"composerMenuCustom": "Modellmenü-Erweiterungen aktiviert",
|
|
7635
7721
|
"composerMenuHost": "Modellmenü von DSH oder einem anderen Plugin",
|
|
7636
7722
|
"legacyModelPicker": "Modellmenü im Eingabefeld",
|
|
7637
7723
|
"composerMenuAuto": "Automatisch",
|
|
7638
7724
|
"composerMenuDsh": "DSH-Standard",
|
|
7639
7725
|
"composerMenuSubscription": "Abonnement",
|
|
7640
|
-
"legacyModelPickerHint": "
|
|
7726
|
+
"legacyModelPickerHint": "Ergänzt Tempo und Antwortdetails über DSH-Erweiterungspunkte, ohne Menüs anderer Plugins zu ersetzen. Zeigt ein Menü diese Optionen nicht an, bleiben sie hier einstellbar.",
|
|
7641
7727
|
"speedTitle": "Geschwindigkeit",
|
|
7642
7728
|
"speedStandard": "Standard",
|
|
7643
7729
|
"speedStandardHint": "Standardgeschwindigkeit",
|
|
@@ -8136,7 +8222,7 @@ window.__ModuleLoader__.load({
|
|
|
8136
8222
|
"imageModel": "Запрошенная модель",
|
|
8137
8223
|
"imageQuality": "Запрошенное качество",
|
|
8138
8224
|
"imageExperimental": "Экспериментальная функция",
|
|
8139
|
-
"imageModelHint": "
|
|
8225
|
+
"imageModelHint": "Flare и Sunburst — экспериментальные варианты. Сервис может использовать другую модель или качество.",
|
|
8140
8226
|
"sketchTool_pen": "Перо",
|
|
8141
8227
|
"sketchTool_rectangle": "Прямоугольник",
|
|
8142
8228
|
"sketchTool_circle": "Эллипс",
|
|
@@ -8275,7 +8361,8 @@ window.__ModuleLoader__.load({
|
|
|
8275
8361
|
"diagnostics": "Диагностика для поддержки",
|
|
8276
8362
|
"diagnosticsLoad": "Создать отчёт",
|
|
8277
8363
|
"diagnosticsLoading": "Создание…",
|
|
8278
|
-
"diagnosticsCopy": "Скопировать
|
|
8364
|
+
"diagnosticsCopy": "Скопировать отчёт",
|
|
8365
|
+
"diagnosticsPreview": "Посмотреть отчёт",
|
|
8279
8366
|
"diagnosticsCopyFull": "Скопировать полный отчёт",
|
|
8280
8367
|
"diagnosticsCopied": "Скопировано",
|
|
8281
8368
|
"diagnosticsFailed": "Диагностика сервера недоступна. Можно скопировать локальный отчёт с удалёнными личными данными. Проверьте службу DSH и версию плагина.",
|
|
@@ -8568,7 +8655,7 @@ window.__ModuleLoader__.load({
|
|
|
8568
8655
|
"fetchCodexHint": "Читать доступный текст веб-страниц с подпиской Codex. Об ошибках сообщается напрямую, без перехода на API DeepSeek.",
|
|
8569
8656
|
"fetchUnavailableHint": "Эта версия DSH не поддерживает переключение на средство чтения веб-страниц Codex. Сначала обновите DSH.",
|
|
8570
8657
|
"quotaForecastCalibrating": "Прогноз остатка калибруется",
|
|
8571
|
-
"quotaForecastIdle": "
|
|
8658
|
+
"quotaForecastIdle": "Процент остатка недавно не менялся",
|
|
8572
8659
|
"quotaForecastUntilReset": "При недавнем темпе лимита должно хватить до сброса",
|
|
8573
8660
|
"runwayDaysHours": "{days} д {hours} ч",
|
|
8574
8661
|
"runwayDays": "{days} д",
|
|
@@ -8576,13 +8663,13 @@ window.__ModuleLoader__.load({
|
|
|
8576
8663
|
"runwayMinutes": "{minutes} мин",
|
|
8577
8664
|
"composerSettingsTitle": "Поле ввода",
|
|
8578
8665
|
"defaultSpeedTitle": "Скорость по умолчанию",
|
|
8579
|
-
"composerMenuCustom": "
|
|
8666
|
+
"composerMenuCustom": "Расширения меню моделей включены",
|
|
8580
8667
|
"composerMenuHost": "Меню DSH или другого плагина",
|
|
8581
8668
|
"legacyModelPicker": "Меню моделей в поле ввода",
|
|
8582
8669
|
"composerMenuAuto": "Авто",
|
|
8583
8670
|
"composerMenuDsh": "Стандарт DSH",
|
|
8584
8671
|
"composerMenuSubscription": "Подписка",
|
|
8585
|
-
"legacyModelPickerHint": "
|
|
8672
|
+
"legacyModelPickerHint": "Добавляет скорость и подробность через точки расширения DSH, не заменяя меню других плагинов. Если меню не показывает эти параметры, они остаются доступны здесь.",
|
|
8586
8673
|
"speedTitle": "Скорость",
|
|
8587
8674
|
"speedStandard": "Стандартная",
|
|
8588
8675
|
"speedStandardHint": "Стандартная скорость",
|
|
@@ -9081,7 +9168,7 @@ window.__ModuleLoader__.load({
|
|
|
9081
9168
|
"imageModel": "Modelo solicitado",
|
|
9082
9169
|
"imageQuality": "Qualidade solicitada",
|
|
9083
9170
|
"imageExperimental": "Experimental",
|
|
9084
|
-
"imageModelHint": "
|
|
9171
|
+
"imageModelHint": "Flare e Sunburst são experimentais. O serviço pode usar outro modelo ou outra qualidade.",
|
|
9085
9172
|
"sketchTool_pen": "Caneta",
|
|
9086
9173
|
"sketchTool_rectangle": "Retângulo",
|
|
9087
9174
|
"sketchTool_circle": "Elipse",
|
|
@@ -9220,7 +9307,8 @@ window.__ModuleLoader__.load({
|
|
|
9220
9307
|
"diagnostics": "Diagnóstico para suporte",
|
|
9221
9308
|
"diagnosticsLoad": "Criar relatório",
|
|
9222
9309
|
"diagnosticsLoading": "Criando…",
|
|
9223
|
-
"diagnosticsCopy": "Copiar relatório
|
|
9310
|
+
"diagnosticsCopy": "Copiar relatório",
|
|
9311
|
+
"diagnosticsPreview": "Ver relatório",
|
|
9224
9312
|
"diagnosticsCopyFull": "Copiar relatório completo",
|
|
9225
9313
|
"diagnosticsCopied": "Copiado",
|
|
9226
9314
|
"diagnosticsFailed": "Os diagnósticos do servidor estão indisponíveis. Há um relatório local com dados ocultados para copiar. Verifique o serviço DSH e a versão do plugin.",
|
|
@@ -9513,7 +9601,7 @@ window.__ModuleLoader__.load({
|
|
|
9513
9601
|
"fetchCodexHint": "Ler o texto acessível das páginas da web usando sua assinatura do Codex. Falhas são informadas diretamente, sem recorrer à API do DeepSeek.",
|
|
9514
9602
|
"fetchUnavailableHint": "Esta versão do DSH não permite usar o leitor de páginas do Codex. Atualize o DSH primeiro.",
|
|
9515
9603
|
"quotaForecastCalibrating": "Previsão em calibração",
|
|
9516
|
-
"quotaForecastIdle": "
|
|
9604
|
+
"quotaForecastIdle": "Sem alteração recente no percentual",
|
|
9517
9605
|
"quotaForecastUntilReset": "Previsão de duração até a redefinição, com base no uso recente",
|
|
9518
9606
|
"runwayDaysHours": "{days}d {hours}h",
|
|
9519
9607
|
"runwayDays": "{days}d",
|
|
@@ -9521,13 +9609,13 @@ window.__ModuleLoader__.load({
|
|
|
9521
9609
|
"runwayMinutes": "{minutes}min",
|
|
9522
9610
|
"composerSettingsTitle": "Caixa de mensagem",
|
|
9523
9611
|
"defaultSpeedTitle": "Velocidade padrão",
|
|
9524
|
-
"composerMenuCustom": "
|
|
9612
|
+
"composerMenuCustom": "Extensões do menu de modelos ativadas",
|
|
9525
9613
|
"composerMenuHost": "Menu do DSH ou de outro plugin",
|
|
9526
9614
|
"legacyModelPicker": "Menu de modelos do campo de entrada",
|
|
9527
9615
|
"composerMenuAuto": "Automático",
|
|
9528
9616
|
"composerMenuDsh": "Padrão do DSH",
|
|
9529
9617
|
"composerMenuSubscription": "Assinatura",
|
|
9530
|
-
"legacyModelPickerHint": "
|
|
9618
|
+
"legacyModelPickerHint": "Adiciona velocidade e nível de detalhe pelos pontos de extensão do DSH sem substituir o menu de outro plugin. Se esse menu não mostrar as opções, elas continuam disponíveis aqui.",
|
|
9531
9619
|
"speedTitle": "Velocidade",
|
|
9532
9620
|
"speedStandard": "Padrão",
|
|
9533
9621
|
"speedStandardHint": "Velocidade padrão",
|
|
@@ -9599,6 +9687,8 @@ window.__ModuleLoader__.load({
|
|
|
9599
9687
|
.codexModelSelectTrigger:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3)}
|
|
9600
9688
|
.codexModelSelectTrigger:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}
|
|
9601
9689
|
.codexModelSelectBolt{display:block;flex:none;width:14px;height:14px;color:var(--dsw-alias-label-primary)}
|
|
9690
|
+
.codexModelInlineLabel{display:inline-flex;align-items:center;gap:4px;max-width:100%;vertical-align:middle}
|
|
9691
|
+
.codexModelCatalogBadge{font-size:11px;line-height:16px;padding:0 3px;border-radius:4px;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary)}
|
|
9602
9692
|
.codexModelSelectLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
9603
9693
|
.codexModelSelectEffort{flex:none;color:var(--dsw-alias-label-caption)}
|
|
9604
9694
|
.codexModelSelectChevron{flex:none;color:var(--dsw-alias-label-caption);transition:transform 120ms}
|
|
@@ -10052,16 +10142,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10052
10142
|
.codexSubscriptionLimit[data-pace=true] progress{accent-color:var(--dsw-alias-state-warning-primary,#f5a300)}
|
|
10053
10143
|
.codexSubscriptionLimit[data-pace=true] progress::-webkit-progress-value{background:var(--dsw-alias-state-warning-primary,#f5a300)}
|
|
10054
10144
|
.codexSubscriptionLimit[data-pace=true] progress::-moz-progress-bar{background:var(--dsw-alias-state-warning-primary,#f5a300)}
|
|
10055
|
-
.codexDiagResult{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--dsw-alias-border-l2)}
|
|
10056
|
-
.codexDiagBadge{font-size:13px;line-height:20px;font-weight:500;color:var(--dsw-alias-label-primary)}
|
|
10057
|
-
.codexDiagResult[data-state=attention] .codexDiagBadge::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px;background:var(--dsw-alias-state-warning-primary,#f5a300)}
|
|
10058
|
-
.codexDiagTime{font-size:12px;color:var(--dsw-alias-label-tertiary)}
|
|
10059
|
-
.codexDiagFindings{list-style:none;margin:0;padding:0 0 6px;display:flex;flex-direction:column;gap:8px}
|
|
10060
|
-
.codexDiagFindings>li{display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:20px}
|
|
10061
|
-
.codexDiagNext{font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
|
|
10062
|
-
.codexDiagTable{width:100%;font-size:12px;text-align:left;border-spacing:0 6px}
|
|
10063
10145
|
.codexFlat .codexSubscriptionDiagnostics details.codexAdvancedFold{margin:0;padding:0;border-top:1px solid var(--dsw-alias-border-l2)}.codexFlat .codexSubscriptionDiagnostics details>summary{margin:0}
|
|
10064
|
-
.codexDiagFindings>li{padding:0;margin:0}.codexDiagFindings{padding-left:0!important}
|
|
10065
10146
|
.codexModelsHead{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;padding:8px 0 2px}.codexModelsHead h3{margin:0!important;flex:0 0 auto}
|
|
10066
10147
|
.codexModelsHead>span{flex:1 1 auto;min-width:0;font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
|
|
10067
10148
|
.codexModelsHead>button{flex:0 0 auto;margin-left:auto;height:28px;min-height:28px;padding:0 10px;font-size:12px}
|
|
@@ -10111,6 +10192,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10111
10192
|
.dcsLightbox[open]{display:grid;place-items:center}
|
|
10112
10193
|
.dcsLightbox::backdrop{background:var(--dsw-alias-bg-mask-1);backdrop-filter:var(--dsw-mask-blur);clip-path:inset(var(--dsh-frame-chrome-top,0px) 0 0)}
|
|
10113
10194
|
.dcsLightbox img{max-width:100%;max-height:100%;object-fit:contain}
|
|
10195
|
+
.dcsLightboxDownload{position:absolute;inset-block-end:24px;inset-inline-end:24px;padding:8px 12px;border-radius:8px;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}
|
|
10114
10196
|
.dcsLightbox button{position:absolute;inset-block-start:calc(var(--dsh-frame-chrome-top,0px) + 16px);inset-inline-end:16px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--dsw-alias-border-l2);border-radius:999px;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);cursor:pointer}
|
|
10115
10197
|
@media(prefers-reduced-motion:reduce){.dcsSwitch>span{transition:none}}
|
|
10116
10198
|
`;
|
|
@@ -10399,6 +10481,14 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10399
10481
|
//#endregion
|
|
10400
10482
|
//#region src/image-models.js
|
|
10401
10483
|
const DEFAULT_IMAGE_MODEL = "gpt-image-2";
|
|
10484
|
+
const experimentalQuality = Object.freeze([
|
|
10485
|
+
"auto",
|
|
10486
|
+
"low",
|
|
10487
|
+
"medium",
|
|
10488
|
+
"high",
|
|
10489
|
+
"xhigh",
|
|
10490
|
+
"max"
|
|
10491
|
+
]);
|
|
10402
10492
|
const IMAGE_MODELS = Object.freeze({
|
|
10403
10493
|
"gpt-image-2": Object.freeze([
|
|
10404
10494
|
"auto",
|
|
@@ -10406,23 +10496,13 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10406
10496
|
"medium",
|
|
10407
10497
|
"high"
|
|
10408
10498
|
]),
|
|
10409
|
-
"gpt-image-2.5-flare":
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
"high",
|
|
10414
|
-
"xhigh",
|
|
10415
|
-
"max"
|
|
10416
|
-
]),
|
|
10417
|
-
"gpt-image-2.5-sunburst": Object.freeze([
|
|
10418
|
-
"auto",
|
|
10419
|
-
"low",
|
|
10420
|
-
"medium",
|
|
10421
|
-
"high",
|
|
10422
|
-
"xhigh",
|
|
10423
|
-
"max"
|
|
10424
|
-
])
|
|
10499
|
+
"gpt-image-2.5-flare": experimentalQuality,
|
|
10500
|
+
"gpt-image-2.5-sunburst": experimentalQuality,
|
|
10501
|
+
"gpt-image-2.6-flare": experimentalQuality,
|
|
10502
|
+
"gpt-image-2.6-sunburst": experimentalQuality
|
|
10425
10503
|
});
|
|
10504
|
+
const isExperimentalImageModel = (model) => model !== "gpt-image-2" && Object.hasOwn(IMAGE_MODELS, model);
|
|
10505
|
+
const imageModelLabel = (model) => model.replace("gpt-image-", "GPT Image ").replace("-flare", " Flare").replace("-sunburst", " Sunburst");
|
|
10426
10506
|
//#endregion
|
|
10427
10507
|
//#region src/image-features.js
|
|
10428
10508
|
const IMAGE_FEATURE_DEFAULTS = Object.freeze({
|
|
@@ -11502,10 +11582,13 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11502
11582
|
if (anchor + min * 1e3 <= now) return { kind: "stale" };
|
|
11503
11583
|
const grid = min < 3600 ? 5 * 6e4 : 36e5;
|
|
11504
11584
|
const round = (value) => Math.round(value / grid) * grid;
|
|
11585
|
+
const earliest = round(anchor + min * 1e3), latest = round(anchor + max * 1e3);
|
|
11586
|
+
const rawMax = !forecast.provisional && Number.isFinite(forecast.runwayMaxSeconds) ? forecast.runwayMaxSeconds : forecast.runwaySeconds;
|
|
11587
|
+
if (Number.isFinite(resetsAt) && Math.max(latest, anchor + rawMax * 1e3) >= resetsAt * 1e3) return { kind: "calibrating" };
|
|
11505
11588
|
return {
|
|
11506
11589
|
kind: "time",
|
|
11507
|
-
earliest
|
|
11508
|
-
latest
|
|
11590
|
+
earliest,
|
|
11591
|
+
latest,
|
|
11509
11592
|
provisional: forecast.provisional === true
|
|
11510
11593
|
};
|
|
11511
11594
|
}
|
|
@@ -11673,7 +11756,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11673
11756
|
}
|
|
11674
11757
|
//#endregion
|
|
11675
11758
|
//#region src/version.js
|
|
11676
|
-
const PACKAGE_VERSION = "3.2.
|
|
11759
|
+
const PACKAGE_VERSION = "3.2.15";
|
|
11677
11760
|
//#endregion
|
|
11678
11761
|
//#region src/client-recovery.js
|
|
11679
11762
|
async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = endpoint === "usage" || endpoint.startsWith("usage/") ? 3e4 : 1e4) {
|
|
@@ -12073,6 +12156,30 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12073
12156
|
}
|
|
12074
12157
|
};
|
|
12075
12158
|
}
|
|
12159
|
+
function CodexModelLabel({ provider, model, placement, selected, preference, resolveText, t }) {
|
|
12160
|
+
const snapshot = usePreferenceSnapshot(preference);
|
|
12161
|
+
const speed = provider.id === "openai-codex" ? effectiveCodexSpeedMode(snapshot.speedMode, model.id, {
|
|
12162
|
+
supportsFast: snapshot.fastModels?.includes(model.id) ?? supportsCodexFastMode(model.id),
|
|
12163
|
+
supportsUltrafast: snapshot.ultrafastModels?.includes(model.id) ?? false
|
|
12164
|
+
}) : SPEED_MODE_STANDARD;
|
|
12165
|
+
const badge = model.badge && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
12166
|
+
className: "codexModelCatalogBadge",
|
|
12167
|
+
"data-tone": model.badge.tone,
|
|
12168
|
+
children: resolveText(model.badge.text)
|
|
12169
|
+
});
|
|
12170
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
12171
|
+
className: "codexModelInlineLabel",
|
|
12172
|
+
children: [
|
|
12173
|
+
placement === "trigger" && selected && speed !== "standard" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardRef, {
|
|
12174
|
+
className: "codexModelSelectBolt",
|
|
12175
|
+
"aria-label": t(speed === "ultrafast" ? "speedUltrafast" : "speedFast")
|
|
12176
|
+
}),
|
|
12177
|
+
placement === "trigger" && badge,
|
|
12178
|
+
model.name,
|
|
12179
|
+
placement !== "trigger" && badge
|
|
12180
|
+
]
|
|
12181
|
+
});
|
|
12182
|
+
}
|
|
12076
12183
|
function CodexNativeModelOptions({ locked, directory, preference, t, dismiss, reportFailure, optionsMenu }) {
|
|
12077
12184
|
const { current } = (0, react.useSyncExternalStore)(directory.subscribe, directory.getSnapshot);
|
|
12078
12185
|
const snapshot = usePreferenceSnapshot(preference);
|
|
@@ -12104,7 +12211,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12104
12211
|
option(OUTPUT_VERBOSITY_MEDIUM, "verbosityMedium"),
|
|
12105
12212
|
option(OUTPUT_VERBOSITY_HIGH, "verbosityHigh")
|
|
12106
12213
|
];
|
|
12107
|
-
const row = (field, label, items, value
|
|
12214
|
+
const row = (field, label, items, value) => {
|
|
12108
12215
|
const open = (event) => {
|
|
12109
12216
|
const menu = event.currentTarget.closest("[role=\"menu\"]");
|
|
12110
12217
|
if (!menu?.id) return;
|
|
@@ -12150,15 +12257,11 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12150
12257
|
className: "codexModelSelectCellValue",
|
|
12151
12258
|
children: items.find((item) => item.id === value)?.label ?? items[0].label
|
|
12152
12259
|
}),
|
|
12153
|
-
icon,
|
|
12154
12260
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronRightOutline14, { className: "codexModelSelectCellChevron" })
|
|
12155
12261
|
]
|
|
12156
12262
|
});
|
|
12157
12263
|
};
|
|
12158
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(fast || ultrafast) && row("speedMode", t("speedTitle"), speedItems, speed,
|
|
12159
|
-
className: "codexModelSelectBolt",
|
|
12160
|
-
"aria-hidden": "true"
|
|
12161
|
-
})), verbosity && row("outputVerbosity", t("verbosityTitle"), verbosityItems, snapshot.outputVerbosity)] });
|
|
12264
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(fast || ultrafast) && row("speedMode", t("speedTitle"), speedItems, speed), verbosity && row("outputVerbosity", t("verbosityTitle"), verbosityItems, snapshot.outputVerbosity)] });
|
|
12162
12265
|
}
|
|
12163
12266
|
function CodexModelOptionsOverlay({ optionsMenu }) {
|
|
12164
12267
|
const request = (0, react.useSyncExternalStore)(optionsMenu.subscribe, optionsMenu.getSnapshot);
|
|
@@ -12202,16 +12305,17 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12202
12305
|
"End",
|
|
12203
12306
|
"Tab"
|
|
12204
12307
|
].includes(key)) return;
|
|
12308
|
+
if (key === "Tab" && !event.shiftKey) {
|
|
12309
|
+
close();
|
|
12310
|
+
if (request.trigger.isConnected) request.trigger.focus();
|
|
12311
|
+
return;
|
|
12312
|
+
}
|
|
12205
12313
|
event.preventDefault();
|
|
12206
12314
|
event.stopPropagation();
|
|
12207
12315
|
if (key === "Escape" || key === "ArrowLeft" || key === "Tab" && event.shiftKey) {
|
|
12208
12316
|
returnToMenu();
|
|
12209
12317
|
return;
|
|
12210
12318
|
}
|
|
12211
|
-
if (key === "Tab") {
|
|
12212
|
-
event.target.click();
|
|
12213
|
-
return;
|
|
12214
|
-
}
|
|
12215
12319
|
const choices = [...panel.current.children];
|
|
12216
12320
|
const index = choices.indexOf(event.target);
|
|
12217
12321
|
choices[key === "Home" ? 0 : key === "End" ? choices.length - 1 : (index + (key === "ArrowDown" ? 1 : choices.length - 1)) % choices.length]?.focus();
|
|
@@ -12651,20 +12755,28 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12651
12755
|
update(false);
|
|
12652
12756
|
};
|
|
12653
12757
|
}
|
|
12654
|
-
function registerLegacyModelPicker(slots, preference, props, component, optionsComponent) {
|
|
12758
|
+
function registerLegacyModelPicker(slots, preference, props, component, optionsComponent, labelComponent, watchLegacyConflict) {
|
|
12655
12759
|
return slots.inject(slot, () => {
|
|
12656
12760
|
let dispose;
|
|
12657
12761
|
let disposeOptions;
|
|
12762
|
+
let disposeLabel;
|
|
12763
|
+
let unwatchConflict;
|
|
12658
12764
|
let disposed = false;
|
|
12659
12765
|
let syncing = false;
|
|
12660
12766
|
const sync = () => {
|
|
12661
12767
|
if (disposed || syncing) return;
|
|
12662
12768
|
syncing = true;
|
|
12663
12769
|
try {
|
|
12664
|
-
const state = preference.getSnapshot();
|
|
12665
12770
|
const others = slots.entries(slot).filter((entry) => entry.component !== component);
|
|
12666
|
-
const
|
|
12667
|
-
const supportsOptions =
|
|
12771
|
+
const owner = others[0];
|
|
12772
|
+
const supportsOptions = owner?.children?.[nativeOptions]?.kind === "list";
|
|
12773
|
+
if (!supportsOptions && others.every(native)) unwatchConflict ??= watchLegacyConflict?.();
|
|
12774
|
+
else {
|
|
12775
|
+
unwatchConflict?.();
|
|
12776
|
+
unwatchConflict = void 0;
|
|
12777
|
+
}
|
|
12778
|
+
const state = preference.getSnapshot();
|
|
12779
|
+
const custom = others.every(native) && (state.composerModelPicker === "legacy" || state.composerModelPicker === "auto" && !state.composerModelPickerConflict);
|
|
12668
12780
|
if (state.status === "ready" && custom && !supportsOptions && !others.some((entry) => priorityOf(entry) === priority)) dispose ??= slots.register({
|
|
12669
12781
|
name: slot,
|
|
12670
12782
|
priority,
|
|
@@ -12674,16 +12786,27 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12674
12786
|
dispose?.();
|
|
12675
12787
|
dispose = void 0;
|
|
12676
12788
|
}
|
|
12677
|
-
if (state.status === "ready" && state.composerModelPicker !== "dsh" &&
|
|
12789
|
+
if (state.status === "ready" && state.composerModelPicker !== "dsh" && supportsOptions && optionsComponent) disposeOptions ??= slots.register({
|
|
12678
12790
|
name: nativeOptions,
|
|
12679
12791
|
id: "codex-subscription",
|
|
12792
|
+
priority: -1,
|
|
12680
12793
|
inject: props
|
|
12681
12794
|
}, optionsComponent);
|
|
12682
12795
|
else {
|
|
12683
12796
|
disposeOptions?.();
|
|
12684
12797
|
disposeOptions = void 0;
|
|
12685
12798
|
}
|
|
12686
|
-
|
|
12799
|
+
const otherLabels = slots.entries(nativeLabel).filter((entry) => entry.component !== labelComponent);
|
|
12800
|
+
if (disposeOptions && labelComponent && state.speedMode !== "standard" && owner.children?.[nativeLabel]?.kind === "single" && otherLabels.length === 0) disposeLabel ??= slots.register({
|
|
12801
|
+
name: nativeLabel,
|
|
12802
|
+
priority: 100,
|
|
12803
|
+
inject: props
|
|
12804
|
+
}, labelComponent);
|
|
12805
|
+
else {
|
|
12806
|
+
disposeLabel?.();
|
|
12807
|
+
disposeLabel = void 0;
|
|
12808
|
+
}
|
|
12809
|
+
preference.setComposerModelPickerActive(Boolean(disposeOptions || dispose));
|
|
12687
12810
|
} catch (error) {
|
|
12688
12811
|
if (error?.code !== "INACTIVE_EFFECT") throw error;
|
|
12689
12812
|
} finally {
|
|
@@ -12692,13 +12815,17 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12692
12815
|
};
|
|
12693
12816
|
const unwatch = preference.subscribe(sync);
|
|
12694
12817
|
const unwatchSlot = slots.subscribe(slot, sync);
|
|
12818
|
+
const unwatchLabel = slots.subscribe(nativeLabel, sync);
|
|
12695
12819
|
sync();
|
|
12696
12820
|
return () => {
|
|
12697
12821
|
disposed = true;
|
|
12698
12822
|
unwatch();
|
|
12699
12823
|
unwatchSlot();
|
|
12824
|
+
unwatchLabel();
|
|
12825
|
+
unwatchConflict?.();
|
|
12700
12826
|
dispose?.();
|
|
12701
12827
|
disposeOptions?.();
|
|
12828
|
+
disposeLabel?.();
|
|
12702
12829
|
preference.setComposerModelPickerActive(false);
|
|
12703
12830
|
};
|
|
12704
12831
|
});
|
|
@@ -17118,239 +17245,134 @@ void main(){
|
|
|
17118
17245
|
] }) : null]
|
|
17119
17246
|
});
|
|
17120
17247
|
}
|
|
17121
|
-
|
|
17122
|
-
|
|
17123
|
-
|
|
17124
|
-
|
|
17125
|
-
|
|
17126
|
-
|
|
17127
|
-
|
|
17128
|
-
|
|
17129
|
-
|
|
17248
|
+
//#endregion
|
|
17249
|
+
//#region src/diagnostic-compact.js
|
|
17250
|
+
const preferences = {
|
|
17251
|
+
connectionMode: ["sse", "websocket"],
|
|
17252
|
+
compactionMode: ["dsh", "cloud"],
|
|
17253
|
+
composerModelPicker: [
|
|
17254
|
+
"auto",
|
|
17255
|
+
"dsh",
|
|
17256
|
+
"legacy"
|
|
17257
|
+
],
|
|
17258
|
+
contextMode: [
|
|
17259
|
+
"standard",
|
|
17260
|
+
"extended",
|
|
17261
|
+
"custom"
|
|
17262
|
+
],
|
|
17263
|
+
searchProvider: [
|
|
17264
|
+
"auto",
|
|
17265
|
+
"dsh",
|
|
17266
|
+
"codex"
|
|
17267
|
+
],
|
|
17268
|
+
speedMode: [
|
|
17269
|
+
"standard",
|
|
17270
|
+
"fast",
|
|
17271
|
+
"ultrafast"
|
|
17272
|
+
],
|
|
17273
|
+
outputVerbosity: [
|
|
17274
|
+
"default",
|
|
17275
|
+
"low",
|
|
17276
|
+
"medium",
|
|
17277
|
+
"high"
|
|
17278
|
+
]
|
|
17130
17279
|
};
|
|
17131
|
-
function
|
|
17132
|
-
|
|
17133
|
-
|
|
17134
|
-
|
|
17135
|
-
|
|
17136
|
-
status: e.status,
|
|
17137
|
-
observedAt: e.observedAt
|
|
17138
|
-
})), ...(history?.events ?? []).map((e) => ({
|
|
17139
|
-
capability: areas[e.area],
|
|
17140
|
-
action: e.area,
|
|
17141
|
-
source: "network",
|
|
17142
|
-
status: e.status === "ok" ? "completed" : e.status,
|
|
17143
|
-
observedAt: e.observedAt
|
|
17144
|
-
}))].filter((e) => Number.isSafeInteger(e.observedAt) && now >= e.observedAt && now - e.observedAt <= 9e5).sort((a, b) => a.observedAt - b.observedAt);
|
|
17145
|
-
}
|
|
17146
|
-
function unresolvedFailures(events) {
|
|
17147
|
-
const failed = /* @__PURE__ */ new Map();
|
|
17148
|
-
for (const event of events) {
|
|
17149
|
-
const key = `${event.source}:${event.action}`;
|
|
17150
|
-
if (event.status === "failed") failed.set(key, event);
|
|
17151
|
-
else if (event.status === "completed") failed.delete(key);
|
|
17280
|
+
function recentOperations(events, key, attemptAlias = () => void 0) {
|
|
17281
|
+
const latest = /* @__PURE__ */ new Map(), failures = /* @__PURE__ */ new Map();
|
|
17282
|
+
for (const event of events ?? []) {
|
|
17283
|
+
latest.set(key(event), event);
|
|
17284
|
+
if (event.status === "failed") failures.set(key(event), event);
|
|
17152
17285
|
}
|
|
17153
|
-
return [...
|
|
17154
|
-
|
|
17155
|
-
|
|
17156
|
-
|
|
17157
|
-
|
|
17158
|
-
|
|
17159
|
-
|
|
17160
|
-
if (report.version && report.client?.version && report.version !== report.client.version) findings.push({
|
|
17161
|
-
code: "version-mismatch",
|
|
17162
|
-
severity: "warning",
|
|
17163
|
-
next: "restart",
|
|
17164
|
-
evidence: ["version", "client.version"]
|
|
17165
|
-
});
|
|
17166
|
-
if (!report.inspection || report.client?.status === "unknown" || checks.some((check) => ["inspection-failed", "inspection-timeout"].includes(check.reason))) findings.push({
|
|
17167
|
-
code: "collection-incomplete",
|
|
17168
|
-
severity: "warning",
|
|
17169
|
-
next: "regenerate",
|
|
17170
|
-
evidence: checks.filter((c) => c.status === "unknown").map((c) => c.id)
|
|
17171
|
-
});
|
|
17172
|
-
if (report.catalog?.unsupported?.length) findings.push({
|
|
17173
|
-
code: "catalog-gap",
|
|
17174
|
-
severity: "info",
|
|
17175
|
-
next: "supported-options",
|
|
17176
|
-
evidence: ["catalog.unsupported"]
|
|
17286
|
+
return [.../* @__PURE__ */ new Set([...latest.values(), ...failures.values()])].sort((a, b) => a.observedAt - b.observedAt).map(({ observedAt, sequence, attemptId, capability, ...event }) => {
|
|
17287
|
+
const attempt = attemptAlias(attemptId);
|
|
17288
|
+
return {
|
|
17289
|
+
at: new Date(observedAt).toISOString(),
|
|
17290
|
+
...event,
|
|
17291
|
+
...attempt ? { attempt } : {}
|
|
17292
|
+
};
|
|
17177
17293
|
});
|
|
17178
|
-
|
|
17179
|
-
|
|
17180
|
-
|
|
17181
|
-
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
severity: "warning",
|
|
17186
|
-
next: "reproduce",
|
|
17187
|
-
evidence: failures
|
|
17294
|
+
}
|
|
17295
|
+
function compactDiagnostic(report) {
|
|
17296
|
+
const attempts = /* @__PURE__ */ new Map();
|
|
17297
|
+
const network = recentOperations(report.requestHistory?.events, (event) => event.model ? `${event.area}:${event.model}` : event.area, (id) => {
|
|
17298
|
+
if (typeof id !== "string" || !/^[a-f0-9-]{36}$/u.test(id)) return void 0;
|
|
17299
|
+
if (!attempts.has(id)) attempts.set(id, `op${attempts.size + 1}`);
|
|
17300
|
+
return attempts.get(id);
|
|
17188
17301
|
});
|
|
17189
|
-
|
|
17190
|
-
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17302
|
+
const failureAttempt = attempts.get(report.streamFailure?.attemptId);
|
|
17303
|
+
const configuration = Object.fromEntries(Object.entries(preferences).flatMap(([key, allowed]) => allowed.includes(report.configuration?.[key]) ? [[key, report.configuration[key]]] : []));
|
|
17304
|
+
const slots = (report.client?.topology ?? []).flatMap(({ scope, slots: items }) => {
|
|
17305
|
+
const observed = items.filter((item) => item.declared && item.occupants.length > 0);
|
|
17306
|
+
return observed.length ? [{
|
|
17307
|
+
scope,
|
|
17308
|
+
slots: observed.map(({ name, occupants }) => ({
|
|
17309
|
+
name,
|
|
17310
|
+
occupants: occupants.map(({ registrant, active }) => ({
|
|
17311
|
+
registrant,
|
|
17312
|
+
active
|
|
17313
|
+
}))
|
|
17314
|
+
}))
|
|
17315
|
+
}] : [];
|
|
17198
17316
|
});
|
|
17199
|
-
|
|
17200
|
-
|
|
17201
|
-
|
|
17202
|
-
|
|
17203
|
-
|
|
17204
|
-
|
|
17205
|
-
|
|
17206
|
-
|
|
17207
|
-
function formatLogLine(entry) {
|
|
17208
|
-
const stamp = new Date(entry.time).toISOString().replace("T", " ").slice(0, 19);
|
|
17209
|
-
const repeat = entry.count > 1 ? ` (x${entry.count})` : "";
|
|
17210
|
-
return `${stamp} ${entry.level.toUpperCase().padEnd(5)} [${entry.area}] ${entry.message}${entry.detail ? ` — ${entry.detail}` : ""}${repeat}`;
|
|
17211
|
-
}
|
|
17212
|
-
//#endregion
|
|
17213
|
-
//#region src/model-stream-health.js
|
|
17214
|
-
function safeStreamHealth(value) {
|
|
17215
|
-
if (!Array.isArray(value)) return [];
|
|
17216
|
-
return value.slice(-20).filter((item) => [
|
|
17217
|
-
"completed",
|
|
17218
|
-
"failed",
|
|
17219
|
-
"cancelled"
|
|
17220
|
-
].includes(item?.status)).map((item) => ({
|
|
17221
|
-
status: item.status,
|
|
17222
|
-
...Object.fromEntries([
|
|
17223
|
-
"configured",
|
|
17224
|
-
"selected",
|
|
17225
|
-
"effective"
|
|
17226
|
-
].filter((key) => [
|
|
17227
|
-
"sse",
|
|
17228
|
-
"websocket",
|
|
17229
|
-
"unknown"
|
|
17230
|
-
].includes(item[key])).map((key) => [key, item[key]])),
|
|
17231
|
-
...Object.fromEntries([
|
|
17232
|
-
"durationMs",
|
|
17233
|
-
"firstEventMs",
|
|
17234
|
-
"lastEventAgoMs",
|
|
17235
|
-
"eventCount",
|
|
17236
|
-
"consecutiveFailures",
|
|
17237
|
-
"httpStatus"
|
|
17238
|
-
].filter((key) => Number.isSafeInteger(item[key]) && item[key] >= 0).map((key) => [key, item[key]])),
|
|
17239
|
-
...["provider", "adapter"].includes(item.eventSource) ? { eventSource: item.eventSource } : {},
|
|
17240
|
-
...typeof item.outputStarted === "boolean" ? { outputStarted: item.outputStarted } : {},
|
|
17241
|
-
...[
|
|
17242
|
-
"ECONNRESET",
|
|
17243
|
-
"ETIMEDOUT",
|
|
17244
|
-
"ECONNREFUSED",
|
|
17245
|
-
"ERR_STREAM_PREMATURE_CLOSE",
|
|
17246
|
-
"TIMEOUT",
|
|
17247
|
-
"WS_CLOSED",
|
|
17248
|
-
"OTHER"
|
|
17249
|
-
].includes(item.code) ? { code: item.code } : {}
|
|
17317
|
+
const truncated = (report.requestHistory?.dropped ?? 0) > 0 || (report.operations?.dropped ?? 0) > 0 || report.client?.truncated === true;
|
|
17318
|
+
const unavailable = [...report.inspection?.checks ?? [], ...report.client?.checks ?? []].filter((check) => [
|
|
17319
|
+
"inspection-failed",
|
|
17320
|
+
"inspection-timeout",
|
|
17321
|
+
"host-inspection-unavailable"
|
|
17322
|
+
].includes(check.reason)).map(({ id, reason }) => ({
|
|
17323
|
+
id,
|
|
17324
|
+
reason
|
|
17250
17325
|
}));
|
|
17251
|
-
}
|
|
17252
|
-
//#endregion
|
|
17253
|
-
//#region src/diagnostic-compact.js
|
|
17254
|
-
function compactDiagnostic(report) {
|
|
17255
|
-
const summary = report.summary ?? { findings: [] };
|
|
17256
17326
|
return {
|
|
17257
|
-
format: "
|
|
17258
|
-
plugin: report.version,
|
|
17327
|
+
format: "support-2",
|
|
17328
|
+
plugin: report.version ?? report.pluginVersion,
|
|
17259
17329
|
dsh: report.runtime?.dsh,
|
|
17260
|
-
...report.client?.version && report.client.version !== report.version ? { pluginClient: report.client.version } : {},
|
|
17261
|
-
|
|
17330
|
+
...report.client?.version && report.version && report.client.version !== report.version ? { pluginClient: report.client.version } : {},
|
|
17331
|
+
...report.runtime ? { runtime: report.runtime } : {},
|
|
17262
17332
|
generatedAt: report.generatedAt,
|
|
17333
|
+
...report.serverDiagnostics === "unavailable" ? {
|
|
17334
|
+
serverDiagnostics: "unavailable",
|
|
17335
|
+
error: report.error
|
|
17336
|
+
} : {},
|
|
17337
|
+
...!report.client?.topology?.length ? { clientDiagnostics: "unavailable" } : {},
|
|
17263
17338
|
account: report.account?.status,
|
|
17264
|
-
catalog: report.catalog
|
|
17265
|
-
|
|
17266
|
-
|
|
17267
|
-
} :
|
|
17268
|
-
|
|
17269
|
-
...
|
|
17270
|
-
|
|
17271
|
-
|
|
17272
|
-
|
|
17273
|
-
|
|
17274
|
-
action: event.action,
|
|
17275
|
-
source: event.source,
|
|
17276
|
-
at: new Date(event.observedAt).toISOString()
|
|
17277
|
-
})) } : {}
|
|
17278
|
-
})),
|
|
17279
|
-
capabilities: (report.inspection?.capabilities ?? []).filter((item) => item.readiness !== "not-applicable").map((item) => ({
|
|
17280
|
-
id: item.id,
|
|
17281
|
-
reason: item.reason,
|
|
17282
|
-
...item.latest ? { latest: `${item.latest.action} ${item.latest.status}` } : { latest: "not-verified" }
|
|
17283
|
-
})),
|
|
17284
|
-
log: (report.log?.entries ?? []).slice(-150).map(formatLogLine),
|
|
17285
|
-
...report.client?.status === "unknown" ? { hostCollected: false } : {}
|
|
17339
|
+
catalog: report.catalog,
|
|
17340
|
+
configuration,
|
|
17341
|
+
...report.login?.phase !== void 0 ? { login: report.login } : {},
|
|
17342
|
+
...unavailable.length ? { unavailable } : {},
|
|
17343
|
+
...truncated ? { historyTruncated: true } : {},
|
|
17344
|
+
...slots.length ? { uiSlots: slots } : {},
|
|
17345
|
+
...report.requestHistory ? { network } : {},
|
|
17346
|
+
...failureAttempt ? { lastModelStreamFailure: { attempt: failureAttempt } } : {},
|
|
17347
|
+
...report.operations ? { operations: recentOperations(report.operations.events, (event) => `${event.source}:${event.action}`) } : {},
|
|
17348
|
+
...report.compaction?.requests ? { pluginCompaction: report.compaction } : {}
|
|
17286
17349
|
};
|
|
17287
17350
|
}
|
|
17288
17351
|
//#endregion
|
|
17289
17352
|
//#region src/client-diagnostics.jsx
|
|
17290
|
-
const LEVELS = {
|
|
17291
|
-
all: [
|
|
17292
|
-
"info",
|
|
17293
|
-
"warn",
|
|
17294
|
-
"error"
|
|
17295
|
-
],
|
|
17296
|
-
warn: ["warn", "error"],
|
|
17297
|
-
error: ["error"]
|
|
17298
|
-
};
|
|
17299
17353
|
function DiagnosticsCard({ rpc, t, diagnostics }) {
|
|
17300
|
-
const radioId = (0, react.useId)();
|
|
17301
17354
|
const [report, setReport] = (0, react.useState)();
|
|
17302
17355
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
17303
17356
|
const [copied, setCopied] = (0, react.useState)(false);
|
|
17304
|
-
const [error, setError] = (0, react.useState)(false);
|
|
17305
17357
|
const [copyError, setCopyError] = (0, react.useState)(false);
|
|
17306
|
-
const [level, setLevel] = (0, react.useState)("all");
|
|
17307
|
-
const [logCopied, setLogCopied] = (0, react.useState)(false);
|
|
17308
17358
|
const load = () => {
|
|
17309
17359
|
setBusy(true);
|
|
17310
|
-
|
|
17360
|
+
setReport(void 0);
|
|
17311
17361
|
setCopied(false);
|
|
17312
17362
|
setCopyError(false);
|
|
17313
17363
|
Promise.allSettled([recoveryCall(rpc, "diagnostics"), Promise.resolve().then(() => diagnostics?.collect())]).then(([server, client]) => {
|
|
17314
|
-
setError(server.status === "rejected");
|
|
17315
17364
|
const combined = {
|
|
17316
17365
|
...server.status === "fulfilled" ? server.value : clientDiagnostic(server.reason),
|
|
17317
17366
|
client: client.status === "fulfilled" && client.value ? client.value : { status: "unknown" }
|
|
17318
17367
|
};
|
|
17319
|
-
setReport(
|
|
17320
|
-
...combined,
|
|
17321
|
-
summary: diagnosticSummary(combined)
|
|
17322
|
-
});
|
|
17368
|
+
setReport(compactDiagnostic(combined));
|
|
17323
17369
|
}).finally(() => setBusy(false));
|
|
17324
17370
|
};
|
|
17325
|
-
const
|
|
17326
|
-
|
|
17371
|
+
const text = report === void 0 ? void 0 : JSON.stringify(report, null, 2);
|
|
17372
|
+
const copy = () => {
|
|
17327
17373
|
setCopyError(false);
|
|
17328
|
-
Promise.resolve().then(() => navigator.clipboard.writeText(
|
|
17329
|
-
};
|
|
17330
|
-
const lines = (report?.log?.entries ?? []).filter((entry) => LEVELS[level].includes(entry.level));
|
|
17331
|
-
const copyLog = () => {
|
|
17332
|
-
Promise.resolve().then(() => navigator.clipboard.writeText(lines.map(formatLogLine).join(String.fromCharCode(10)))).then(() => setLogCopied(true)).catch(() => setCopyError(true));
|
|
17374
|
+
Promise.resolve().then(() => navigator.clipboard.writeText(text)).then(() => setCopied(true)).catch(() => setCopyError(true));
|
|
17333
17375
|
};
|
|
17334
|
-
const findings = report?.summary?.findings ?? [];
|
|
17335
|
-
const attention = findings.filter((item) => item.severity !== "info");
|
|
17336
|
-
const notes = findings.filter((item) => item.severity === "info");
|
|
17337
|
-
const finding = (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", { children: [
|
|
17338
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
17339
|
-
className: "codexDiagTitle",
|
|
17340
|
-
children: t(`diagnosticFinding_${item.code}`)
|
|
17341
|
-
}),
|
|
17342
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
17343
|
-
className: "codexDiagNext",
|
|
17344
|
-
children: t(`diagnosticNext_${item.next}`)
|
|
17345
|
-
}),
|
|
17346
|
-
item.code === "recent-failure" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", { children: item.evidence.map((event) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", { children: [
|
|
17347
|
-
event.action,
|
|
17348
|
-
" · ",
|
|
17349
|
-
t(`diagnosticSource_${event.source}`),
|
|
17350
|
-
" · ",
|
|
17351
|
-
new Date(event.observedAt).toLocaleTimeString(uiLocale())
|
|
17352
|
-
] }, `${event.source}:${event.action}`)) }) : null
|
|
17353
|
-
] }, item.code);
|
|
17354
17376
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
17355
17377
|
className: "codexSubscriptionCard codexSubscriptionDiagnostics",
|
|
17356
17378
|
children: [
|
|
@@ -17372,10 +17394,10 @@ void main(){
|
|
|
17372
17394
|
onClick: load,
|
|
17373
17395
|
children: busy ? t("diagnosticsLoading") : t("diagnosticsLoad")
|
|
17374
17396
|
}),
|
|
17375
|
-
|
|
17397
|
+
text === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
17376
17398
|
type: "button",
|
|
17377
17399
|
variant: "outline",
|
|
17378
|
-
onClick:
|
|
17400
|
+
onClick: copy,
|
|
17379
17401
|
children: copied ? t("diagnosticsCopied") : t("diagnosticsCopy")
|
|
17380
17402
|
}),
|
|
17381
17403
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
@@ -17388,127 +17410,15 @@ void main(){
|
|
|
17388
17410
|
]
|
|
17389
17411
|
})]
|
|
17390
17412
|
}),
|
|
17391
|
-
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
children:
|
|
17397
|
-
|
|
17398
|
-
|
|
17399
|
-
|
|
17400
|
-
className: "codexDiagTime",
|
|
17401
|
-
children: new Date(report.generatedAt).toLocaleString(uiLocale())
|
|
17402
|
-
}) : null]
|
|
17403
|
-
}),
|
|
17404
|
-
attention.length ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
17405
|
-
className: "codexDiagFindings",
|
|
17406
|
-
children: attention.map(finding)
|
|
17407
|
-
}) : null,
|
|
17408
|
-
notes.length ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
17409
|
-
className: "codexAdvancedFold codexAdvancedInline",
|
|
17410
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t("diagnosticsNotes").replace("{count}", String(notes.length)) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
17411
|
-
className: "codexDiagFindings",
|
|
17412
|
-
children: notes.map(finding)
|
|
17413
|
-
})]
|
|
17414
|
-
}) : null,
|
|
17415
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
17416
|
-
className: "codexAdvancedFold codexAdvancedInline",
|
|
17417
|
-
children: [
|
|
17418
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
17419
|
-
as: "summary",
|
|
17420
|
-
className: "",
|
|
17421
|
-
openOnClick: false,
|
|
17422
|
-
description: t("diagnosticsLogHint"),
|
|
17423
|
-
children: [t("diagnosticsLog"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: lines.length })]
|
|
17424
|
-
}),
|
|
17425
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
17426
|
-
className: "codexSubscriptionLogHead",
|
|
17427
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
17428
|
-
className: "codexSubscriptionQuotaModes",
|
|
17429
|
-
role: "radiogroup",
|
|
17430
|
-
"aria-label": t("diagnosticsLog"),
|
|
17431
|
-
children: Object.keys(LEVELS).map((value) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
17432
|
-
className: "codexSubscriptionQuotaMode",
|
|
17433
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
17434
|
-
type: "radio",
|
|
17435
|
-
name: `${radioId}-codex-log-level`,
|
|
17436
|
-
checked: level === value,
|
|
17437
|
-
onChange: () => {
|
|
17438
|
-
setLevel(value);
|
|
17439
|
-
setLogCopied(false);
|
|
17440
|
-
}
|
|
17441
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(`logLevel_${value}`) })]
|
|
17442
|
-
}, value))
|
|
17443
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
17444
|
-
type: "button",
|
|
17445
|
-
variant: "outline",
|
|
17446
|
-
disabled: lines.length === 0,
|
|
17447
|
-
onClick: copyLog,
|
|
17448
|
-
children: logCopied ? t("logCopied") : t("logCopy")
|
|
17449
|
-
})]
|
|
17450
|
-
}),
|
|
17451
|
-
lines.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
17452
|
-
className: "codexSubscriptionHelp",
|
|
17453
|
-
children: t("logEmpty")
|
|
17454
|
-
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
|
|
17455
|
-
className: "codexSubscriptionLog",
|
|
17456
|
-
tabIndex: 0,
|
|
17457
|
-
children: lines.slice().reverse().map((entry) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
17458
|
-
className: `codexSubscriptionLogLine codexSubscriptionLog_${entry.level}`,
|
|
17459
|
-
children: [
|
|
17460
|
-
formatLogLine(entry),
|
|
17461
|
-
entry.earlier ? ` (${t("logEarlier")})` : "",
|
|
17462
|
-
String.fromCharCode(10)
|
|
17463
|
-
]
|
|
17464
|
-
}, entry.sequence))
|
|
17465
|
-
})
|
|
17466
|
-
]
|
|
17467
|
-
}),
|
|
17468
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
17469
|
-
className: "codexAdvancedFold codexAdvancedInline",
|
|
17470
|
-
children: [
|
|
17471
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
17472
|
-
as: "summary",
|
|
17473
|
-
className: "",
|
|
17474
|
-
openOnClick: false,
|
|
17475
|
-
description: t("diagnosticsCoverageHint"),
|
|
17476
|
-
children: t("diagnosticsAdvanced")
|
|
17477
|
-
}),
|
|
17478
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
17479
|
-
className: "codexSubscriptionHelp",
|
|
17480
|
-
children: report.client?.topology?.length ? t("diagnosticsHostCollected") : t("diagnosticsHostUnknown")
|
|
17481
|
-
}),
|
|
17482
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
|
|
17483
|
-
className: "codexDiagTable",
|
|
17484
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
|
|
17485
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("diagnosticsCapability") }),
|
|
17486
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("diagnosticsReadiness") }),
|
|
17487
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("diagnosticsEvidence") })
|
|
17488
|
-
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", { children: (report.inspection?.capabilities ?? []).map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
|
|
17489
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: t(`diagnosticCapability_${item.id}`) }),
|
|
17490
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("td", { children: [t(`diagnosticReason_${item.reason}`), item.blockedBy ? ` · ${t(`diagnosticCapability_${item.blockedBy}`)}` : ""] }),
|
|
17491
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("td", { children: [item.latest ? `${item.latest.action} · ${t(`diagnosticSource_${item.latest.source}`)} · ${t(`diagnosticOutcome_${item.latest.status}`)} · ${new Date(item.latest.observedAt).toLocaleTimeString(uiLocale())}` : t("diagnosticsUnverified"), item.unresolved?.length ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("diagnosticsUnresolved") }) : null] })
|
|
17492
|
-
] }, item.id)) })]
|
|
17493
|
-
}),
|
|
17494
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
17495
|
-
className: "codexSubscriptionActions",
|
|
17496
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
17497
|
-
type: "button",
|
|
17498
|
-
variant: "outline",
|
|
17499
|
-
onClick: () => copy(true),
|
|
17500
|
-
children: t("diagnosticsCopyFull")
|
|
17501
|
-
})
|
|
17502
|
-
}),
|
|
17503
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
|
|
17504
|
-
className: "codexSubscriptionLog",
|
|
17505
|
-
tabIndex: 0,
|
|
17506
|
-
children: JSON.stringify(report, null, 2)
|
|
17507
|
-
})
|
|
17508
|
-
]
|
|
17509
|
-
})
|
|
17510
|
-
] }),
|
|
17511
|
-
error ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
17413
|
+
text === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
17414
|
+
className: "codexAdvancedFold codexAdvancedInline",
|
|
17415
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", { children: t("diagnosticsPreview") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
|
|
17416
|
+
className: "codexSubscriptionLog",
|
|
17417
|
+
tabIndex: 0,
|
|
17418
|
+
children: text
|
|
17419
|
+
})]
|
|
17420
|
+
}),
|
|
17421
|
+
report?.serverDiagnostics === "unavailable" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
17512
17422
|
className: "codexSubscriptionError",
|
|
17513
17423
|
role: "alert",
|
|
17514
17424
|
children: t("diagnosticsFailed")
|
|
@@ -18264,7 +18174,6 @@ void main(){
|
|
|
18264
18174
|
//#endregion
|
|
18265
18175
|
//#region src/client-pages.jsx
|
|
18266
18176
|
const ready = (snapshot) => snapshot.status === "ready" && snapshot.writable === true;
|
|
18267
|
-
const modelLabel = (model) => model.replace("gpt-image-", "GPT Image ").replace("-flare", " Flare").replace("-sunburst", " Sunburst");
|
|
18268
18177
|
/** One feature in the overview: what it does, its on/off switch (or current state) and an arrow to the page that owns its options. */
|
|
18269
18178
|
function FeatureRow({ t, title, summary, beta, checked, onChange, disabled, reason, status, onMore }) {
|
|
18270
18179
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -18583,7 +18492,7 @@ void main(){
|
|
|
18583
18492
|
text: (value) => t(menuLabels[value]),
|
|
18584
18493
|
disabled: !loaded || snapshot.saving
|
|
18585
18494
|
})]
|
|
18586
|
-
}), loaded
|
|
18495
|
+
}), loaded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SpeedPreference, {
|
|
18587
18496
|
snapshot,
|
|
18588
18497
|
preference,
|
|
18589
18498
|
t
|
|
@@ -18894,17 +18803,17 @@ void main(){
|
|
|
18894
18803
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
18895
18804
|
className: "codexAdvancedFold codexAdvancedInline",
|
|
18896
18805
|
children: [
|
|
18897
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [t("imageAdvancedTitle"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: imagesOn ? `${
|
|
18806
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [t("imageAdvancedTitle"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: imagesOn ? `${imageModelLabel(snapshot.imageModel)} · ${t(`imageQuality_${snapshot.imageQuality}`)}` : t("imageCapability_off") })] }),
|
|
18898
18807
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageChoice, {
|
|
18899
18808
|
t,
|
|
18900
18809
|
label: t("imageModel"),
|
|
18901
|
-
hint:
|
|
18810
|
+
hint: t("imageModelHint"),
|
|
18902
18811
|
value: snapshot.imageModel,
|
|
18903
|
-
text:
|
|
18812
|
+
text: imageModelLabel(snapshot.imageModel),
|
|
18904
18813
|
disabled: disabled || !imagesOn,
|
|
18905
18814
|
items: Object.keys(IMAGE_MODELS).map((id) => ({
|
|
18906
18815
|
id,
|
|
18907
|
-
label: `${
|
|
18816
|
+
label: `${imageModelLabel(id)}${isExperimentalImageModel(id) ? ` · ${t("imageExperimental")}` : ""}`
|
|
18908
18817
|
})),
|
|
18909
18818
|
onSelect: (imageModel) => set({
|
|
18910
18819
|
imageModel,
|
|
@@ -20915,6 +20824,8 @@ void main(){
|
|
|
20915
20824
|
"settings.section",
|
|
20916
20825
|
"conversation.input.right",
|
|
20917
20826
|
"conversation.input.model",
|
|
20827
|
+
"conversation.input.model.options",
|
|
20828
|
+
"conversation.input.model.label",
|
|
20918
20829
|
"conversation.input.attachments",
|
|
20919
20830
|
"conversation.chat.message.images",
|
|
20920
20831
|
"conversation.chat.user.images",
|
|
@@ -21570,7 +21481,6 @@ void main(){
|
|
|
21570
21481
|
}, "codex-subscription: style");
|
|
21571
21482
|
const rpc = createSubscriptionRpcClient(ctx.get("connection").rpc);
|
|
21572
21483
|
const preference = createPreferenceController(rpc);
|
|
21573
|
-
ctx.inject(["remote.pluginManager"], (scope) => scope.effect(() => watchComposerModelPickerConflict(scope.get("remote.pluginManager"), scope.get("remote"), preference.setComposerModelPickerConflict, (refresh) => scope.on("connection/reset", refresh)), "codex-subscription: composer model menu compatibility"));
|
|
21574
21484
|
const quotaUsage = quotaUsageController(rpc);
|
|
21575
21485
|
ctx.effect(() => {
|
|
21576
21486
|
let mode = preference.getSnapshot().quickQuotaMode;
|
|
@@ -21678,6 +21588,7 @@ void main(){
|
|
|
21678
21588
|
preference,
|
|
21679
21589
|
t,
|
|
21680
21590
|
optionsMenu,
|
|
21591
|
+
resolveText: (text) => ctx.locale.resolveText(text),
|
|
21681
21592
|
load: () => {
|
|
21682
21593
|
if (available) directory.load().catch(() => {});
|
|
21683
21594
|
},
|
|
@@ -21690,7 +21601,7 @@ void main(){
|
|
|
21690
21601
|
}
|
|
21691
21602
|
}
|
|
21692
21603
|
};
|
|
21693
|
-
}, CodexModelSelect, CodexNativeModelOptions);
|
|
21604
|
+
}, CodexModelSelect, CodexNativeModelOptions, CodexModelLabel, () => watchComposerModelPickerConflict(scope.get("remote.pluginManager"), scope.get("remote"), preference.setComposerModelPickerConflict, (refresh) => scope.on("connection/reset", refresh)));
|
|
21694
21605
|
};
|
|
21695
21606
|
if (ctx.get("remote.session") === void 0) installDirectorySlots(ctx);
|
|
21696
21607
|
else ctx.inject(["remote.session"], installDirectorySlots);
|