dsh-codex-subscription 3.2.6 → 3.2.8
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 +18 -25
- package/README.en.md +18 -25
- package/README.es.md +18 -25
- package/README.fr.md +18 -25
- package/README.ja.md +18 -25
- package/README.md +18 -25
- package/README.pt.md +18 -25
- package/README.ru.md +17 -24
- package/README.zh-CN.md +17 -24
- package/lib/client.image-viewer.js +671 -427
- package/lib/client.js +1339 -722
- package/lib/client.sketch.js +824 -937
- package/lib/index.js +1000 -556
- package/package.json +1 -3
package/lib/client.js
CHANGED
|
@@ -30,8 +30,6 @@ window.__ModuleLoader__.load({
|
|
|
30
30
|
let react = require("react");
|
|
31
31
|
react = __toESM(react, 1);
|
|
32
32
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
33
|
-
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
34
|
-
_deepseek_ai_dsh_client_ui_primitives = __toESM(_deepseek_ai_dsh_client_ui_primitives, 1);
|
|
35
33
|
let react_dom = require("react-dom");
|
|
36
34
|
//#region src/sketch-layers.js
|
|
37
35
|
const createSketchLayers = () => ({
|
|
@@ -117,6 +115,68 @@ window.__ModuleLoader__.load({
|
|
|
117
115
|
}
|
|
118
116
|
};
|
|
119
117
|
}
|
|
118
|
+
function createSketchWorkspaceRegistry({ maxIdle = 8 } = {}) {
|
|
119
|
+
const entries = /* @__PURE__ */ new Map(), listeners = /* @__PURE__ */ new Set();
|
|
120
|
+
let snapshot = [];
|
|
121
|
+
const publish = () => {
|
|
122
|
+
const idle = [...entries].filter(([, entry]) => !entry.views && !entry.pending && !entry.drawing);
|
|
123
|
+
for (const [id] of idle.slice(0, Math.max(0, idle.length - maxIdle))) entries.delete(id);
|
|
124
|
+
const selected = [...entries].findLast(([, entry]) => entry.views)?.[0];
|
|
125
|
+
snapshot = [...entries].map(([id]) => ({
|
|
126
|
+
id,
|
|
127
|
+
visible: id === selected
|
|
128
|
+
}));
|
|
129
|
+
for (const listener of listeners) listener();
|
|
130
|
+
};
|
|
131
|
+
const select = (id, entry) => {
|
|
132
|
+
entries.delete(id);
|
|
133
|
+
entries.set(id, entry);
|
|
134
|
+
publish();
|
|
135
|
+
};
|
|
136
|
+
return {
|
|
137
|
+
getSnapshot: () => snapshot,
|
|
138
|
+
subscribe(listener) {
|
|
139
|
+
listeners.add(listener);
|
|
140
|
+
return () => listeners.delete(listener);
|
|
141
|
+
},
|
|
142
|
+
attach(id) {
|
|
143
|
+
const entry = entries.get(id) ?? {
|
|
144
|
+
views: 0,
|
|
145
|
+
pending: 0,
|
|
146
|
+
drawing: false
|
|
147
|
+
};
|
|
148
|
+
entry.views++;
|
|
149
|
+
select(id, entry);
|
|
150
|
+
return () => {
|
|
151
|
+
entry.views--;
|
|
152
|
+
publish();
|
|
153
|
+
};
|
|
154
|
+
},
|
|
155
|
+
visible: (id) => Boolean(entries.get(id)?.views),
|
|
156
|
+
focus(id) {
|
|
157
|
+
const entry = entries.get(id);
|
|
158
|
+
if (entry?.views) select(id, entry);
|
|
159
|
+
},
|
|
160
|
+
async run(id, execute) {
|
|
161
|
+
const entry = entries.get(id);
|
|
162
|
+
if (!entry) throw Error("Sketch session disconnected");
|
|
163
|
+
entry.pending++;
|
|
164
|
+
try {
|
|
165
|
+
return await execute();
|
|
166
|
+
} finally {
|
|
167
|
+
entry.pending--;
|
|
168
|
+
publish();
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
setDrawing(id, drawing) {
|
|
172
|
+
const entry = entries.get(id);
|
|
173
|
+
if (entry && entry.drawing !== drawing) {
|
|
174
|
+
entry.drawing = drawing;
|
|
175
|
+
publish();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
}
|
|
120
180
|
//#endregion
|
|
121
181
|
//#region src/client-session-compat.js
|
|
122
182
|
async function withComposerSession(sessions, id, operation) {
|
|
@@ -155,7 +215,8 @@ window.__ModuleLoader__.load({
|
|
|
155
215
|
//#endregion
|
|
156
216
|
//#region src/use-image-source.js
|
|
157
217
|
function useImageSource(load, identity, preview) {
|
|
158
|
-
const [
|
|
218
|
+
const [retryState, setRetryState] = (0, react.useState)();
|
|
219
|
+
const attempt = retryState?.identity === identity ? retryState.count : 0;
|
|
159
220
|
const [state, setState] = (0, react.useState)({
|
|
160
221
|
identity,
|
|
161
222
|
src: preview,
|
|
@@ -205,7 +266,10 @@ window.__ModuleLoader__.load({
|
|
|
205
266
|
failed: true,
|
|
206
267
|
usable: false
|
|
207
268
|
} : previous),
|
|
208
|
-
retry: () =>
|
|
269
|
+
retry: () => setRetryState((previous) => ({
|
|
270
|
+
identity,
|
|
271
|
+
count: previous?.identity === identity ? previous.count + 1 : 1
|
|
272
|
+
})),
|
|
209
273
|
attempt
|
|
210
274
|
};
|
|
211
275
|
}
|
|
@@ -246,36 +310,16 @@ window.__ModuleLoader__.load({
|
|
|
246
310
|
const formatPercent = (value) => {
|
|
247
311
|
return `${Number((value * 100).toFixed(2))}%`;
|
|
248
312
|
};
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
-
return String(rounded);
|
|
252
|
-
};
|
|
253
|
-
const withNames = (value, sourceName, referenceName) => String(value).replaceAll("{sourceName}", sourceName).replaceAll("{referenceName}", referenceName);
|
|
254
|
-
const positiveImageDimension = (value) => Number.isSafeInteger(value) && value > 0;
|
|
255
|
-
function buildImageEditDraft({ prompt = "", annotations = [], translate, width, height, sourceName = "source.png", referenceName = "annotated-reference.png" }) {
|
|
313
|
+
const withNames = (value, sourceName, referenceName) => String(value).replace(/\{sourceName\}|\{referenceName\}/gu, (name) => name === "{sourceName}" ? sourceName : referenceName);
|
|
314
|
+
function buildImageEditDraft({ prompt = "", annotations = [], translate, sourceName = "source.png", referenceName = "annotated-reference.png" }) {
|
|
256
315
|
if (typeof translate !== "function") throw new TypeError("translate must be a function");
|
|
257
|
-
const base =
|
|
316
|
+
const base = cleanNote(prompt);
|
|
258
317
|
if (!Array.isArray(annotations)) throw new TypeError("annotations must be an array");
|
|
259
|
-
if (annotations.length === 0) return base;
|
|
260
|
-
const hasWidth = width !== void 0;
|
|
261
|
-
if (hasWidth !== (height !== void 0) || hasWidth && (!positiveImageDimension(width) || !positiveImageDimension(height))) throw new Error("width and height must be positive integers when provided");
|
|
318
|
+
if (annotations.length === 0) return base || translate("imageEditDefault");
|
|
262
319
|
const normalized = normalizeImageEditAnnotations(annotations, { requireNotes: true });
|
|
263
320
|
const source = typeof sourceName === "string" && sourceName.trim() !== "" ? sourceName.trim() : "source.png";
|
|
264
321
|
const reference = typeof referenceName === "string" && referenceName.trim() !== "" ? referenceName.trim() : "annotated-reference.png";
|
|
265
|
-
|
|
266
|
-
const location = translate("imageEditLocation");
|
|
267
|
-
const notes = normalized.map(({ number, x, y, note }) => {
|
|
268
|
-
const pixels = hasWidth ? ` (pixel x=${formatPixel(x * Math.max(0, width - 1))} of ${width}, y=${formatPixel(y * Math.max(0, height - 1))} of ${height})` : "";
|
|
269
|
-
return `${number}. ${location}: x=${formatPercent(x)} (normalized ${x}), y=${formatPercent(y)} (normalized ${y})${pixels}; ${note}`;
|
|
270
|
-
});
|
|
271
|
-
return [
|
|
272
|
-
base,
|
|
273
|
-
"",
|
|
274
|
-
guide,
|
|
275
|
-
"",
|
|
276
|
-
translate("imageRegionNotes"),
|
|
277
|
-
...notes
|
|
278
|
-
].join("\n");
|
|
322
|
+
return [base, [withNames(translate("imageEditReferenceGuide"), source, reference), ...normalized.map(({ number, x, y, note }) => `${number}. (x=${formatPercent(x)}, y=${formatPercent(y)}) ${note}`)].join("\n")].filter(Boolean).join("\n\n");
|
|
279
323
|
}
|
|
280
324
|
//#endregion
|
|
281
325
|
//#region src/image-official-tools.js
|
|
@@ -288,12 +332,12 @@ window.__ModuleLoader__.load({
|
|
|
288
332
|
]);
|
|
289
333
|
/**
|
|
290
334
|
* Build viewer actions for one image.
|
|
291
|
-
* @param {{ src
|
|
292
|
-
* attachForEdit: (src: string, name: string, draft: string, annotations?: unknown[], referenceName?: string, sourceInDraft?: boolean, extraFiles?: File[]) => Promise<unknown>,
|
|
335
|
+
* @param {{ src?: string | Function, name: string, t: (key: string) => string,
|
|
336
|
+
* attachForEdit: (src: string | Function, name: string, draft: string, annotations?: unknown[], referenceName?: string, sourceInDraft?: boolean, extraFiles?: File[]) => Promise<unknown>,
|
|
293
337
|
* sourceInDraft?: boolean }} options
|
|
294
338
|
*/
|
|
295
339
|
function officialImageTools({ src, name, t, attachForEdit, sourceInDraft = false }) {
|
|
296
|
-
const send = (draft, extraFiles
|
|
340
|
+
const send = (draft, extraFiles, { src: preview, signal }) => attachForEdit(src ?? preview, name, draft, [], void 0, sourceInDraft, extraFiles, { signal });
|
|
297
341
|
const base = {
|
|
298
342
|
pendingLabel: t("imageEditPreparing"),
|
|
299
343
|
errorLabel: t("imageEditFailed"),
|
|
@@ -305,17 +349,18 @@ window.__ModuleLoader__.load({
|
|
|
305
349
|
id: "remove-background",
|
|
306
350
|
kind: "tool",
|
|
307
351
|
label: t("imageRemoveBackground"),
|
|
308
|
-
onInvoke: (
|
|
352
|
+
onInvoke: (context = {}) => send(t("imageRemoveBackgroundPrompt"), [], context)
|
|
309
353
|
},
|
|
310
354
|
{
|
|
311
355
|
...base,
|
|
312
356
|
id: "erase",
|
|
313
357
|
kind: "mask",
|
|
314
358
|
label: t("imageErase"),
|
|
315
|
-
onInvoke: async (
|
|
359
|
+
onInvoke: async (context) => {
|
|
360
|
+
const { mask } = context;
|
|
316
361
|
if (!(mask instanceof Blob)) throw new Error("Mark the area to erase first");
|
|
317
362
|
const maskName = `${String(name).replace(/\.[a-z0-9]+$/iu, "")}-erase-mask.png`;
|
|
318
|
-
return send(t("imageErasePrompt"), [new File([mask], maskName, { type: "image/png" })],
|
|
363
|
+
return send(t("imageErasePrompt"), [new File([mask], maskName, { type: "image/png" })], context);
|
|
319
364
|
}
|
|
320
365
|
},
|
|
321
366
|
{
|
|
@@ -327,7 +372,7 @@ window.__ModuleLoader__.load({
|
|
|
327
372
|
value: ratio,
|
|
328
373
|
label: `${t(`imageRatio_${id}`)} ${ratio}`
|
|
329
374
|
})),
|
|
330
|
-
onInvoke: (
|
|
375
|
+
onInvoke: (context) => send(t("imageResizePrompt").replaceAll("{aspectRatio}", context.option), [], context)
|
|
331
376
|
}
|
|
332
377
|
];
|
|
333
378
|
}
|
|
@@ -360,7 +405,7 @@ window.__ModuleLoader__.load({
|
|
|
360
405
|
pendingLabel: t("imageEditPreparing"),
|
|
361
406
|
errorLabel: t("imageEditFailed"),
|
|
362
407
|
closeOnSuccess: true,
|
|
363
|
-
onInvoke: ({ annotations, signal }) => attachForEdit(
|
|
408
|
+
onInvoke: ({ annotations, src, signal }) => attachForEdit(src, item.name, buildImageEditDraft({
|
|
364
409
|
annotations,
|
|
365
410
|
translate: t,
|
|
366
411
|
sourceName: item.name,
|
|
@@ -371,7 +416,6 @@ window.__ModuleLoader__.load({
|
|
|
371
416
|
})
|
|
372
417
|
},
|
|
373
418
|
...officialImageTools({
|
|
374
|
-
src: item.src,
|
|
375
419
|
name: item.name,
|
|
376
420
|
t,
|
|
377
421
|
attachForEdit,
|
|
@@ -382,7 +426,7 @@ window.__ModuleLoader__.load({
|
|
|
382
426
|
label: t("imageToSketch"),
|
|
383
427
|
pendingLabel: t("imageEditPreparing"),
|
|
384
428
|
errorLabel: t("imageEditFailed"),
|
|
385
|
-
onInvoke: () => props.openSketchImage(
|
|
429
|
+
onInvoke: ({ src }) => props.openSketchImage(src, item.name)
|
|
386
430
|
}] : []
|
|
387
431
|
] : []
|
|
388
432
|
};
|
|
@@ -477,17 +521,12 @@ window.__ModuleLoader__.load({
|
|
|
477
521
|
});
|
|
478
522
|
}
|
|
479
523
|
function MessageImagePreviews({ images, align, compact, thumbnail, ...props }) {
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
opening.current++;
|
|
483
|
-
}, [images]);
|
|
484
|
-
const onOpen = async (selected, item, opener) => {
|
|
485
|
-
const revision = ++opening.current;
|
|
486
|
-
const group = await Promise.all(images.map(async (image) => {
|
|
524
|
+
const onOpen = (selected, item, opener) => {
|
|
525
|
+
openPreview(props, item, opener, false, images.map((image) => {
|
|
487
526
|
if (image === selected) return item;
|
|
488
527
|
const ref = image.attachment ?? image.preview;
|
|
528
|
+
const src = image.preview?.url;
|
|
489
529
|
const reload = () => image.attachment ? props.loadImage(image.attachment) : image.preview?.url;
|
|
490
|
-
const src = image.preview?.url ?? await reload().catch(() => "about:blank");
|
|
491
530
|
return {
|
|
492
531
|
id: ref.attachmentId ?? src,
|
|
493
532
|
src,
|
|
@@ -497,7 +536,6 @@ window.__ModuleLoader__.load({
|
|
|
497
536
|
height: ref.height
|
|
498
537
|
};
|
|
499
538
|
}));
|
|
500
|
-
if (revision === opening.current) openPreview(props, item, opener, false, group);
|
|
501
539
|
};
|
|
502
540
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
503
541
|
className: "codexMessageImages",
|
|
@@ -594,7 +632,67 @@ window.__ModuleLoader__.load({
|
|
|
594
632
|
d: "M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"
|
|
595
633
|
}));
|
|
596
634
|
}
|
|
597
|
-
const ForwardRef$
|
|
635
|
+
const ForwardRef$10 = /*#__PURE__*/ react.forwardRef(ArrowPathIcon);
|
|
636
|
+
//#endregion
|
|
637
|
+
//#region node_modules/.pnpm/@heroicons+react@2.2.0_react@18.3.1/node_modules/@heroicons/react/24/outline/esm/CheckIcon.js
|
|
638
|
+
function CheckIcon({ title, titleId, ...props }, svgRef) {
|
|
639
|
+
return /*#__PURE__*/ react.createElement("svg", Object.assign({
|
|
640
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
641
|
+
fill: "none",
|
|
642
|
+
viewBox: "0 0 24 24",
|
|
643
|
+
strokeWidth: 1.5,
|
|
644
|
+
stroke: "currentColor",
|
|
645
|
+
"aria-hidden": "true",
|
|
646
|
+
"data-slot": "icon",
|
|
647
|
+
ref: svgRef,
|
|
648
|
+
"aria-labelledby": titleId
|
|
649
|
+
}, props), title ? /*#__PURE__*/ react.createElement("title", { id: titleId }, title) : null, /*#__PURE__*/ react.createElement("path", {
|
|
650
|
+
strokeLinecap: "round",
|
|
651
|
+
strokeLinejoin: "round",
|
|
652
|
+
d: "m4.5 12.75 6 6 9-13.5"
|
|
653
|
+
}));
|
|
654
|
+
}
|
|
655
|
+
const ForwardRef$9 = /*#__PURE__*/ react.forwardRef(CheckIcon);
|
|
656
|
+
//#endregion
|
|
657
|
+
//#region node_modules/.pnpm/@heroicons+react@2.2.0_react@18.3.1/node_modules/@heroicons/react/24/outline/esm/ChevronDownIcon.js
|
|
658
|
+
function ChevronDownIcon({ title, titleId, ...props }, svgRef) {
|
|
659
|
+
return /*#__PURE__*/ react.createElement("svg", Object.assign({
|
|
660
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
661
|
+
fill: "none",
|
|
662
|
+
viewBox: "0 0 24 24",
|
|
663
|
+
strokeWidth: 1.5,
|
|
664
|
+
stroke: "currentColor",
|
|
665
|
+
"aria-hidden": "true",
|
|
666
|
+
"data-slot": "icon",
|
|
667
|
+
ref: svgRef,
|
|
668
|
+
"aria-labelledby": titleId
|
|
669
|
+
}, props), title ? /*#__PURE__*/ react.createElement("title", { id: titleId }, title) : null, /*#__PURE__*/ react.createElement("path", {
|
|
670
|
+
strokeLinecap: "round",
|
|
671
|
+
strokeLinejoin: "round",
|
|
672
|
+
d: "m19.5 8.25-7.5 7.5-7.5-7.5"
|
|
673
|
+
}));
|
|
674
|
+
}
|
|
675
|
+
const ForwardRef$8 = /*#__PURE__*/ react.forwardRef(ChevronDownIcon);
|
|
676
|
+
//#endregion
|
|
677
|
+
//#region node_modules/.pnpm/@heroicons+react@2.2.0_react@18.3.1/node_modules/@heroicons/react/24/outline/esm/ChevronRightIcon.js
|
|
678
|
+
function ChevronRightIcon({ title, titleId, ...props }, svgRef) {
|
|
679
|
+
return /*#__PURE__*/ react.createElement("svg", Object.assign({
|
|
680
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
681
|
+
fill: "none",
|
|
682
|
+
viewBox: "0 0 24 24",
|
|
683
|
+
strokeWidth: 1.5,
|
|
684
|
+
stroke: "currentColor",
|
|
685
|
+
"aria-hidden": "true",
|
|
686
|
+
"data-slot": "icon",
|
|
687
|
+
ref: svgRef,
|
|
688
|
+
"aria-labelledby": titleId
|
|
689
|
+
}, props), title ? /*#__PURE__*/ react.createElement("title", { id: titleId }, title) : null, /*#__PURE__*/ react.createElement("path", {
|
|
690
|
+
strokeLinecap: "round",
|
|
691
|
+
strokeLinejoin: "round",
|
|
692
|
+
d: "m8.25 4.5 7.5 7.5-7.5 7.5"
|
|
693
|
+
}));
|
|
694
|
+
}
|
|
695
|
+
const ForwardRef$6 = /*#__PURE__*/ react.forwardRef(ChevronRightIcon);
|
|
598
696
|
//#endregion
|
|
599
697
|
//#region node_modules/.pnpm/@heroicons+react@2.2.0_react@18.3.1/node_modules/@heroicons/react/24/outline/esm/ExclamationCircleIcon.js
|
|
600
698
|
function ExclamationCircleIcon({ title, titleId, ...props }, svgRef) {
|
|
@@ -614,7 +712,7 @@ window.__ModuleLoader__.load({
|
|
|
614
712
|
d: "M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"
|
|
615
713
|
}));
|
|
616
714
|
}
|
|
617
|
-
const ForwardRef$
|
|
715
|
+
const ForwardRef$4 = /*#__PURE__*/ react.forwardRef(ExclamationCircleIcon);
|
|
618
716
|
//#endregion
|
|
619
717
|
//#region node_modules/.pnpm/@heroicons+react@2.2.0_react@18.3.1/node_modules/@heroicons/react/24/outline/esm/PhotoIcon.js
|
|
620
718
|
function PhotoIcon({ title, titleId, ...props }, svgRef) {
|
|
@@ -634,7 +732,428 @@ window.__ModuleLoader__.load({
|
|
|
634
732
|
d: "m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"
|
|
635
733
|
}));
|
|
636
734
|
}
|
|
637
|
-
const ForwardRef$
|
|
735
|
+
const ForwardRef$2 = /*#__PURE__*/ react.forwardRef(PhotoIcon);
|
|
736
|
+
//#endregion
|
|
737
|
+
//#region node_modules/.pnpm/@heroicons+react@2.2.0_react@18.3.1/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js
|
|
738
|
+
function XMarkIcon({ title, titleId, ...props }, svgRef) {
|
|
739
|
+
return /*#__PURE__*/ react.createElement("svg", Object.assign({
|
|
740
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
741
|
+
fill: "none",
|
|
742
|
+
viewBox: "0 0 24 24",
|
|
743
|
+
strokeWidth: 1.5,
|
|
744
|
+
stroke: "currentColor",
|
|
745
|
+
"aria-hidden": "true",
|
|
746
|
+
"data-slot": "icon",
|
|
747
|
+
ref: svgRef,
|
|
748
|
+
"aria-labelledby": titleId
|
|
749
|
+
}, props), title ? /*#__PURE__*/ react.createElement("title", { id: titleId }, title) : null, /*#__PURE__*/ react.createElement("path", {
|
|
750
|
+
strokeLinecap: "round",
|
|
751
|
+
strokeLinejoin: "round",
|
|
752
|
+
d: "M6 18 18 6M6 6l12 12"
|
|
753
|
+
}));
|
|
754
|
+
}
|
|
755
|
+
const ForwardRef$1 = /*#__PURE__*/ react.forwardRef(XMarkIcon);
|
|
756
|
+
//#endregion
|
|
757
|
+
//#region src/client-primitives.jsx
|
|
758
|
+
const classes = (...names) => names.filter(Boolean).join(" ");
|
|
759
|
+
const icon = (Icon, size) => function ControlIcon() {
|
|
760
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
761
|
+
width: size,
|
|
762
|
+
height: size,
|
|
763
|
+
"aria-hidden": "true"
|
|
764
|
+
});
|
|
765
|
+
};
|
|
766
|
+
const IconCheckOutline16 = icon(ForwardRef$9, 16);
|
|
767
|
+
const IconChevronDownOutline14 = icon(ForwardRef$8, 14);
|
|
768
|
+
const IconChevronRightOutline14 = icon(ForwardRef$6, 14);
|
|
769
|
+
const IconCloseOutline16 = icon(ForwardRef$1, 16);
|
|
770
|
+
const Button = (0, react.forwardRef)(function Button({ variant = "ghost", size = "md", icon, className, children, ...props }, ref) {
|
|
771
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
772
|
+
ref,
|
|
773
|
+
type: "button",
|
|
774
|
+
className: classes("dcsButton", className),
|
|
775
|
+
"data-variant": variant,
|
|
776
|
+
"data-size": size,
|
|
777
|
+
...props,
|
|
778
|
+
children: [icon == null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
779
|
+
className: "dcsButtonIcon",
|
|
780
|
+
children: icon
|
|
781
|
+
}), children]
|
|
782
|
+
});
|
|
783
|
+
});
|
|
784
|
+
const Input = (0, react.forwardRef)(function Input({ className, ...props }, ref) {
|
|
785
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
786
|
+
className: classes("dcsInput", className),
|
|
787
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
788
|
+
ref,
|
|
789
|
+
...props
|
|
790
|
+
})
|
|
791
|
+
});
|
|
792
|
+
});
|
|
793
|
+
function Switch({ checked, onChange, label, disabled, title, className }) {
|
|
794
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
795
|
+
type: "button",
|
|
796
|
+
role: "switch",
|
|
797
|
+
"aria-checked": checked,
|
|
798
|
+
"aria-label": label,
|
|
799
|
+
title,
|
|
800
|
+
disabled,
|
|
801
|
+
className: classes("dcsSwitch", className),
|
|
802
|
+
onClick: () => onChange(!checked),
|
|
803
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {})
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
function usePopover(panelRef, open) {
|
|
807
|
+
(0, react.useLayoutEffect)(() => {
|
|
808
|
+
const panel = panelRef.current;
|
|
809
|
+
if (!open || typeof panel?.showPopover !== "function") return;
|
|
810
|
+
panel.showPopover();
|
|
811
|
+
return () => {
|
|
812
|
+
if (panel.isConnected) panel.hidePopover();
|
|
813
|
+
};
|
|
814
|
+
}, [panelRef, open]);
|
|
815
|
+
}
|
|
816
|
+
function useAnchoredPosition({ open, anchorRef, panelRef, side = "bottom", align = "start", gap = 6, margin = 12 }) {
|
|
817
|
+
const [position, setPosition] = (0, react.useState)(null);
|
|
818
|
+
(0, react.useLayoutEffect)(() => {
|
|
819
|
+
const anchor = anchorRef.current, panel = panelRef.current;
|
|
820
|
+
if (!open || !anchor || !panel) {
|
|
821
|
+
setPosition(null);
|
|
822
|
+
return;
|
|
823
|
+
}
|
|
824
|
+
const win = anchor.ownerDocument.defaultView;
|
|
825
|
+
const viewport = win.visualViewport;
|
|
826
|
+
const update = () => {
|
|
827
|
+
const { left, right, top, bottom } = anchor.getBoundingClientRect();
|
|
828
|
+
const { width, height } = panel.getBoundingClientRect();
|
|
829
|
+
const minLeft = (viewport?.offsetLeft ?? 0) + margin;
|
|
830
|
+
const minTop = (viewport?.offsetTop ?? 0) + margin;
|
|
831
|
+
const maxLeft = minLeft + (viewport?.width ?? win.innerWidth) - width - margin * 2;
|
|
832
|
+
const maxTop = minTop + (viewport?.height ?? win.innerHeight) - height - margin * 2;
|
|
833
|
+
const anchorX = align === "end" ? right - width : align === "center" ? (left + right - width) / 2 : left;
|
|
834
|
+
const above = top - height - gap, below = bottom + gap;
|
|
835
|
+
const next = {
|
|
836
|
+
left: Math.max(minLeft, Math.min(anchorX, maxLeft)),
|
|
837
|
+
top: Math.max(minTop, Math.min(side === "top" ? above < minTop && below <= maxTop ? below : above : below > maxTop && above >= minTop ? above : below, maxTop))
|
|
838
|
+
};
|
|
839
|
+
setPosition((previous) => previous?.left === next.left && previous?.top === next.top ? previous : next);
|
|
840
|
+
};
|
|
841
|
+
update();
|
|
842
|
+
win.addEventListener("resize", update);
|
|
843
|
+
win.addEventListener("scroll", update, true);
|
|
844
|
+
viewport?.addEventListener("resize", update);
|
|
845
|
+
viewport?.addEventListener("scroll", update);
|
|
846
|
+
const observer = typeof ResizeObserver === "function" ? new ResizeObserver(update) : void 0;
|
|
847
|
+
observer?.observe(anchor);
|
|
848
|
+
observer?.observe(panel);
|
|
849
|
+
return () => {
|
|
850
|
+
observer?.disconnect();
|
|
851
|
+
win.removeEventListener("resize", update);
|
|
852
|
+
win.removeEventListener("scroll", update, true);
|
|
853
|
+
viewport?.removeEventListener("resize", update);
|
|
854
|
+
viewport?.removeEventListener("scroll", update);
|
|
855
|
+
};
|
|
856
|
+
}, [
|
|
857
|
+
open,
|
|
858
|
+
anchorRef,
|
|
859
|
+
panelRef,
|
|
860
|
+
side,
|
|
861
|
+
align,
|
|
862
|
+
gap,
|
|
863
|
+
margin
|
|
864
|
+
]);
|
|
865
|
+
return position;
|
|
866
|
+
}
|
|
867
|
+
function useDismissOnOutsidePointer(anchor, open, dismiss, panel) {
|
|
868
|
+
(0, react.useEffect)(() => {
|
|
869
|
+
if (!open) return;
|
|
870
|
+
const doc = anchor.current?.ownerDocument;
|
|
871
|
+
const outside = (event) => {
|
|
872
|
+
if (!anchor.current?.contains(event.target) && !panel.current?.contains(event.target)) dismiss();
|
|
873
|
+
};
|
|
874
|
+
doc?.addEventListener("pointerdown", outside);
|
|
875
|
+
return () => doc?.removeEventListener("pointerdown", outside);
|
|
876
|
+
}, [
|
|
877
|
+
anchor,
|
|
878
|
+
open,
|
|
879
|
+
dismiss,
|
|
880
|
+
panel
|
|
881
|
+
]);
|
|
882
|
+
}
|
|
883
|
+
function Tooltip({ label, children, side = "bottom", delayMs = 0, maxWidth, openOnClick = false }) {
|
|
884
|
+
const anchor = (0, react.useRef)(null), panel = (0, react.useRef)(null), timer = (0, react.useRef)();
|
|
885
|
+
const [open, setOpen] = (0, react.useState)(false), [pinned, setPinned] = (0, react.useState)(false);
|
|
886
|
+
const id = (0, react.useId)();
|
|
887
|
+
const originalRef = children.ref;
|
|
888
|
+
const setAnchor = (0, react.useCallback)((element) => {
|
|
889
|
+
anchor.current = element;
|
|
890
|
+
if (typeof originalRef === "function") originalRef(element);
|
|
891
|
+
else if (originalRef) originalRef.current = element;
|
|
892
|
+
}, [originalRef]);
|
|
893
|
+
const show = (delay) => {
|
|
894
|
+
clearTimeout(timer.current);
|
|
895
|
+
timer.current = setTimeout(() => setOpen(true), delay);
|
|
896
|
+
};
|
|
897
|
+
const hide = () => {
|
|
898
|
+
clearTimeout(timer.current);
|
|
899
|
+
if (!pinned) setOpen(false);
|
|
900
|
+
};
|
|
901
|
+
const dismiss = () => {
|
|
902
|
+
clearTimeout(timer.current);
|
|
903
|
+
setPinned(false);
|
|
904
|
+
setOpen(false);
|
|
905
|
+
};
|
|
906
|
+
(0, react.useEffect)(() => () => clearTimeout(timer.current), []);
|
|
907
|
+
usePopover(panel, open);
|
|
908
|
+
const position = useAnchoredPosition({
|
|
909
|
+
open,
|
|
910
|
+
anchorRef: anchor,
|
|
911
|
+
panelRef: panel,
|
|
912
|
+
side,
|
|
913
|
+
align: "center"
|
|
914
|
+
});
|
|
915
|
+
useDismissOnOutsidePointer(anchor, pinned, dismiss, panel);
|
|
916
|
+
(0, react.useEffect)(() => {
|
|
917
|
+
if (!open) return;
|
|
918
|
+
const doc = anchor.current?.ownerDocument;
|
|
919
|
+
const escape = (event) => {
|
|
920
|
+
if (event.key !== "Escape") return;
|
|
921
|
+
dismiss();
|
|
922
|
+
if (pinned || anchor.current?.contains(doc.activeElement)) {
|
|
923
|
+
event.preventDefault();
|
|
924
|
+
event.stopPropagation();
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
const win = doc?.defaultView;
|
|
928
|
+
win?.addEventListener("keydown", escape, true);
|
|
929
|
+
return () => win?.removeEventListener("keydown", escape, true);
|
|
930
|
+
}, [open, pinned]);
|
|
931
|
+
const target = (0, react.cloneElement)(children, {
|
|
932
|
+
ref: setAnchor,
|
|
933
|
+
"data-dcs-tooltip-anchor": "",
|
|
934
|
+
"aria-describedby": open ? [children.props["aria-describedby"], id].filter(Boolean).join(" ") : children.props["aria-describedby"],
|
|
935
|
+
"aria-description": children.props["aria-description"] ?? label,
|
|
936
|
+
onPointerEnter: (event) => {
|
|
937
|
+
children.props.onPointerEnter?.(event);
|
|
938
|
+
if (event.pointerType !== "touch") show(delayMs);
|
|
939
|
+
},
|
|
940
|
+
onPointerLeave: (event) => {
|
|
941
|
+
children.props.onPointerLeave?.(event);
|
|
942
|
+
hide();
|
|
943
|
+
},
|
|
944
|
+
onFocus: (event) => {
|
|
945
|
+
children.props.onFocus?.(event);
|
|
946
|
+
show(0);
|
|
947
|
+
},
|
|
948
|
+
onBlur: (event) => {
|
|
949
|
+
children.props.onBlur?.(event);
|
|
950
|
+
hide();
|
|
951
|
+
},
|
|
952
|
+
onClick: openOnClick ? (event) => {
|
|
953
|
+
children.props.onClick?.(event);
|
|
954
|
+
if (event.defaultPrevented) return;
|
|
955
|
+
if (pinned) dismiss();
|
|
956
|
+
else {
|
|
957
|
+
clearTimeout(timer.current);
|
|
958
|
+
setPinned(true);
|
|
959
|
+
setOpen(true);
|
|
960
|
+
}
|
|
961
|
+
} : children.props.onClick
|
|
962
|
+
});
|
|
963
|
+
const bubble = open ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
964
|
+
ref: panel,
|
|
965
|
+
popover: "manual",
|
|
966
|
+
className: "dcsTooltip",
|
|
967
|
+
id,
|
|
968
|
+
role: "tooltip",
|
|
969
|
+
"data-pinned": pinned || void 0,
|
|
970
|
+
style: {
|
|
971
|
+
...position,
|
|
972
|
+
maxWidth: maxWidth ? `min(${maxWidth}px, calc(100vw - 24px))` : void 0,
|
|
973
|
+
visibility: position ? "visible" : "hidden"
|
|
974
|
+
},
|
|
975
|
+
children: label
|
|
976
|
+
}) : null;
|
|
977
|
+
return children.type === "summary" ? (0, react.cloneElement)(target, void 0, children.props.children, bubble) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [target, bubble] });
|
|
978
|
+
}
|
|
979
|
+
function Menu({ open, anchor, items, selectedId, onSelect, onClose, align = "start", side = "bottom" }) {
|
|
980
|
+
const trigger = (0, react.useRef)(null), panel = (0, react.useRef)(null);
|
|
981
|
+
const [submenu, setSubmenu] = (0, react.useState)();
|
|
982
|
+
const id = (0, react.useId)();
|
|
983
|
+
const menuItems = () => [...panel.current.querySelectorAll("button[role^=\"menuitem\"]:not(:disabled)")];
|
|
984
|
+
const dismiss = (restoreFocus = false) => {
|
|
985
|
+
setSubmenu(void 0);
|
|
986
|
+
onClose();
|
|
987
|
+
if (restoreFocus) trigger.current?.focus();
|
|
988
|
+
};
|
|
989
|
+
usePopover(panel, open);
|
|
990
|
+
const position = useAnchoredPosition({
|
|
991
|
+
open,
|
|
992
|
+
anchorRef: trigger,
|
|
993
|
+
panelRef: panel,
|
|
994
|
+
side,
|
|
995
|
+
align
|
|
996
|
+
});
|
|
997
|
+
useDismissOnOutsidePointer(trigger, open, dismiss, panel);
|
|
998
|
+
const positioned = position !== null;
|
|
999
|
+
(0, react.useLayoutEffect)(() => {
|
|
1000
|
+
if (!open || !positioned) return;
|
|
1001
|
+
const choices = menuItems();
|
|
1002
|
+
(choices.find((item) => item.getAttribute("aria-checked") === "true") ?? choices[0] ?? panel.current).focus();
|
|
1003
|
+
}, [open, positioned]);
|
|
1004
|
+
(0, react.useLayoutEffect)(() => {
|
|
1005
|
+
if (open && submenu) panel.current.querySelector("[data-submenu-item]:not(:disabled)")?.focus();
|
|
1006
|
+
}, [open, submenu]);
|
|
1007
|
+
(0, react.useEffect)(() => {
|
|
1008
|
+
if (!open) setSubmenu(void 0);
|
|
1009
|
+
}, [open]);
|
|
1010
|
+
const closeSubmenu = () => {
|
|
1011
|
+
panel.current.querySelector("[aria-expanded=\"true\"]")?.focus();
|
|
1012
|
+
setSubmenu(void 0);
|
|
1013
|
+
};
|
|
1014
|
+
(0, react.useEffect)(() => {
|
|
1015
|
+
if (!open) return;
|
|
1016
|
+
const win = trigger.current?.ownerDocument.defaultView;
|
|
1017
|
+
const escape = (event) => {
|
|
1018
|
+
if (event.key !== "Escape") return;
|
|
1019
|
+
event.preventDefault();
|
|
1020
|
+
event.stopPropagation();
|
|
1021
|
+
if (submenu) closeSubmenu();
|
|
1022
|
+
else dismiss(true);
|
|
1023
|
+
};
|
|
1024
|
+
win?.addEventListener("keydown", escape, true);
|
|
1025
|
+
return () => win?.removeEventListener("keydown", escape, true);
|
|
1026
|
+
}, [
|
|
1027
|
+
open,
|
|
1028
|
+
submenu,
|
|
1029
|
+
onClose
|
|
1030
|
+
]);
|
|
1031
|
+
const walk = (event) => {
|
|
1032
|
+
const { key, target } = event;
|
|
1033
|
+
if (key === "Tab") {
|
|
1034
|
+
dismiss(true);
|
|
1035
|
+
return;
|
|
1036
|
+
}
|
|
1037
|
+
if (key === "ArrowRight" && target.hasAttribute("aria-expanded")) {
|
|
1038
|
+
event.preventDefault();
|
|
1039
|
+
target.click();
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
if (key === "ArrowLeft" && submenu) {
|
|
1043
|
+
event.preventDefault();
|
|
1044
|
+
closeSubmenu();
|
|
1045
|
+
return;
|
|
1046
|
+
}
|
|
1047
|
+
if (![
|
|
1048
|
+
"ArrowDown",
|
|
1049
|
+
"ArrowUp",
|
|
1050
|
+
"Home",
|
|
1051
|
+
"End"
|
|
1052
|
+
].includes(key)) return;
|
|
1053
|
+
event.preventDefault();
|
|
1054
|
+
const choices = menuItems(), current = choices.indexOf(target);
|
|
1055
|
+
choices[key === "Home" ? 0 : key === "End" ? choices.length - 1 : (current + (key === "ArrowUp" ? -1 : 1) + choices.length) % choices.length]?.focus();
|
|
1056
|
+
};
|
|
1057
|
+
const rows = (entries, nested = false) => entries.map((item) => {
|
|
1058
|
+
if (item.type === "separator") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1059
|
+
role: "separator",
|
|
1060
|
+
className: "dcsMenuSeparator"
|
|
1061
|
+
}, item.id);
|
|
1062
|
+
if (item.type === "label") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1063
|
+
className: "dcsMenuLabel",
|
|
1064
|
+
children: item.text
|
|
1065
|
+
}, item.id);
|
|
1066
|
+
const selected = item.id === selectedId, expanded = submenu === item.id;
|
|
1067
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1068
|
+
role: "none",
|
|
1069
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
1070
|
+
type: "button",
|
|
1071
|
+
role: item.submenu ? "menuitem" : "menuitemradio",
|
|
1072
|
+
tabIndex: -1,
|
|
1073
|
+
"aria-checked": item.submenu ? void 0 : selected,
|
|
1074
|
+
"aria-haspopup": item.submenu ? "menu" : void 0,
|
|
1075
|
+
"aria-expanded": item.submenu ? expanded : void 0,
|
|
1076
|
+
"data-submenu-item": nested || void 0,
|
|
1077
|
+
disabled: item.disabled,
|
|
1078
|
+
onClick: () => {
|
|
1079
|
+
if (item.submenu) {
|
|
1080
|
+
setSubmenu(expanded ? void 0 : item.id);
|
|
1081
|
+
return;
|
|
1082
|
+
}
|
|
1083
|
+
setSubmenu(void 0);
|
|
1084
|
+
trigger.current?.focus();
|
|
1085
|
+
onSelect(item.id);
|
|
1086
|
+
},
|
|
1087
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: item.label }), item.submenu ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronRightOutline14, {}) : selected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCheckOutline16, {}) : null]
|
|
1088
|
+
}), item.submenu && expanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1089
|
+
role: "menu",
|
|
1090
|
+
"aria-label": typeof item.label === "string" ? item.label : void 0,
|
|
1091
|
+
className: "dcsMenuChildren",
|
|
1092
|
+
children: rows(item.submenu, true)
|
|
1093
|
+
}) : null]
|
|
1094
|
+
}, item.id);
|
|
1095
|
+
});
|
|
1096
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react.cloneElement)(anchor, {
|
|
1097
|
+
ref: trigger,
|
|
1098
|
+
"aria-haspopup": "menu",
|
|
1099
|
+
"aria-controls": open ? id : void 0,
|
|
1100
|
+
onKeyDown: (event) => {
|
|
1101
|
+
anchor.props.onKeyDown?.(event);
|
|
1102
|
+
if (!event.defaultPrevented && !open && (event.key === "ArrowDown" || event.key === "ArrowUp")) {
|
|
1103
|
+
event.preventDefault();
|
|
1104
|
+
anchor.props.onClick?.(event);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
}), open ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1108
|
+
ref: panel,
|
|
1109
|
+
id,
|
|
1110
|
+
popover: "manual",
|
|
1111
|
+
className: "dcsMenu",
|
|
1112
|
+
role: "menu",
|
|
1113
|
+
"aria-label": anchor.props["aria-label"],
|
|
1114
|
+
tabIndex: -1,
|
|
1115
|
+
style: {
|
|
1116
|
+
...position,
|
|
1117
|
+
visibility: position ? "visible" : "hidden"
|
|
1118
|
+
},
|
|
1119
|
+
onKeyDown: walk,
|
|
1120
|
+
children: rows(items)
|
|
1121
|
+
}) : null] });
|
|
1122
|
+
}
|
|
1123
|
+
function ImageLightbox({ src, alt, labels, onClose }) {
|
|
1124
|
+
const dialog = (0, react.useRef)(null);
|
|
1125
|
+
(0, react.useLayoutEffect)(() => {
|
|
1126
|
+
const element = dialog.current, opener = element.ownerDocument.activeElement;
|
|
1127
|
+
element.showModal();
|
|
1128
|
+
element.querySelector("button")?.focus();
|
|
1129
|
+
return () => {
|
|
1130
|
+
element.close();
|
|
1131
|
+
if (opener?.isConnected) opener.focus();
|
|
1132
|
+
};
|
|
1133
|
+
}, []);
|
|
1134
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dialog", {
|
|
1135
|
+
ref: dialog,
|
|
1136
|
+
className: "dcsLightbox",
|
|
1137
|
+
"aria-label": labels.dialog,
|
|
1138
|
+
onCancel: (event) => {
|
|
1139
|
+
event.preventDefault();
|
|
1140
|
+
event.stopPropagation();
|
|
1141
|
+
onClose();
|
|
1142
|
+
},
|
|
1143
|
+
onClick: (event) => {
|
|
1144
|
+
if (event.target === event.currentTarget) onClose();
|
|
1145
|
+
},
|
|
1146
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
1147
|
+
src,
|
|
1148
|
+
alt
|
|
1149
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
1150
|
+
type: "button",
|
|
1151
|
+
"aria-label": labels.close,
|
|
1152
|
+
onClick: onClose,
|
|
1153
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCloseOutline16, {})
|
|
1154
|
+
})]
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
638
1157
|
const ORIGINAL_IMAGE_ID_PATTERN = /^img_[0-9a-f]{32}$/u;
|
|
639
1158
|
const positiveInteger = (value) => Number.isSafeInteger(value) && value > 0;
|
|
640
1159
|
function decodeOriginalImageRef(value) {
|
|
@@ -692,7 +1211,7 @@ window.__ModuleLoader__.load({
|
|
|
692
1211
|
"voice/start",
|
|
693
1212
|
"voice/stop",
|
|
694
1213
|
"voice/status",
|
|
695
|
-
"voice/
|
|
1214
|
+
"voice/playback",
|
|
696
1215
|
"voice/preview",
|
|
697
1216
|
"voice/catalog",
|
|
698
1217
|
"voice/native/probe",
|
|
@@ -704,6 +1223,7 @@ window.__ModuleLoader__.load({
|
|
|
704
1223
|
"remote/enable",
|
|
705
1224
|
"remote/disable",
|
|
706
1225
|
"remote/pair",
|
|
1226
|
+
"remote/pair-status",
|
|
707
1227
|
"remote/clients",
|
|
708
1228
|
"remote/revoke",
|
|
709
1229
|
"reset-credit/inspect",
|
|
@@ -804,6 +1324,7 @@ window.__ModuleLoader__.load({
|
|
|
804
1324
|
}
|
|
805
1325
|
function CodexGeneratedImage({ attachment, original, gallery, rpc, sessionId, loadImage, openSketchImage, attachForEdit, getImageViewer, getInternalImageViewer, t, features }) {
|
|
806
1326
|
const { src, failed: error, fail, retry, attempt, usable, loaded } = useImageSource((0, react.useCallback)(() => loadImage(attachment), [attachment, loadImage]), attachment.attachmentId ?? attachment);
|
|
1327
|
+
const [nativePreview, setNativePreview] = (0, react.useState)();
|
|
807
1328
|
const triggerRef = (0, react.useRef)(null);
|
|
808
1329
|
const opening = (0, react.useRef)(0);
|
|
809
1330
|
(0, react.useEffect)(() => () => {
|
|
@@ -836,15 +1357,13 @@ window.__ModuleLoader__.load({
|
|
|
836
1357
|
pendingLabel: t("imageEditPreparing"),
|
|
837
1358
|
errorLabel: t("imageEditFailed"),
|
|
838
1359
|
closeOnSuccess: true,
|
|
839
|
-
onInvoke: ({ annotations = [], signal }) => {
|
|
840
|
-
const imageKey = String(attachment.attachmentId ?? "image").replace(/[^a-zA-Z0-9_-]/
|
|
841
|
-
const sourceName = annotations.length === 0 ? downloadName : `
|
|
842
|
-
const referenceName = `
|
|
843
|
-
return attachForEdit(editSource, sourceName, buildImageEditDraft({
|
|
1360
|
+
onInvoke: ({ annotations = [], src: preview, signal }) => {
|
|
1361
|
+
const imageKey = String(attachment.attachmentId ?? "image").replace(/^sha256:/u, "").slice(0, 12).replace(/[^a-zA-Z0-9_-]/gu, "_");
|
|
1362
|
+
const sourceName = annotations.length === 0 ? downloadName : `edit-${imageKey}.png`;
|
|
1363
|
+
const referenceName = `pins-${imageKey}.png`;
|
|
1364
|
+
return attachForEdit(editSource ?? preview, sourceName, buildImageEditDraft({
|
|
844
1365
|
annotations,
|
|
845
1366
|
translate: t,
|
|
846
|
-
width: original?.width ?? attachment.width,
|
|
847
|
-
height: original?.height ?? attachment.height,
|
|
848
1367
|
sourceName,
|
|
849
1368
|
referenceName
|
|
850
1369
|
}), annotations, referenceName, false, void 0, { signal });
|
|
@@ -861,7 +1380,7 @@ window.__ModuleLoader__.load({
|
|
|
861
1380
|
label: t("imageToSketch"),
|
|
862
1381
|
pendingLabel: t("imageEditPreparing"),
|
|
863
1382
|
errorLabel: t("imageEditFailed"),
|
|
864
|
-
onInvoke: () => openSketchImage(
|
|
1383
|
+
onInvoke: ({ src: preview = src }) => openSketchImage(preview, downloadName)
|
|
865
1384
|
}] : []
|
|
866
1385
|
]
|
|
867
1386
|
};
|
|
@@ -869,26 +1388,39 @@ window.__ModuleLoader__.load({
|
|
|
869
1388
|
const openImage = async () => {
|
|
870
1389
|
if (src === void 0) return;
|
|
871
1390
|
const revision = ++opening.current;
|
|
872
|
-
const
|
|
1391
|
+
const selectedIndex = gallery?.findIndex((image) => image.attachment === attachment || attachment.attachmentId && image.attachment.attachmentId === attachment.attachmentId) ?? -1;
|
|
1392
|
+
const group = selectedIndex < 0 ? [...gallery ?? [], {
|
|
873
1393
|
attachment,
|
|
874
1394
|
original
|
|
875
|
-
}]
|
|
876
|
-
|
|
1395
|
+
}] : gallery;
|
|
1396
|
+
const index = selectedIndex < 0 ? group.length - 1 : selectedIndex;
|
|
1397
|
+
const items = group.map((image, position) => makeItem(image.attachment, image.original, position === index ? src : void 0));
|
|
877
1398
|
const request = {
|
|
878
1399
|
items,
|
|
879
|
-
index
|
|
1400
|
+
index,
|
|
880
1401
|
opener: triggerRef.current,
|
|
881
1402
|
source: "codex-generated",
|
|
882
1403
|
scope: sessionId,
|
|
883
1404
|
annotations: features.imageViewer && features.imageAnnotations
|
|
884
1405
|
};
|
|
885
|
-
|
|
886
|
-
if (
|
|
887
|
-
|
|
1406
|
+
const internalViewer = features.imageViewer ? getInternalImageViewer?.() : void 0;
|
|
1407
|
+
if (internalViewer?.open?.(request) === true) return;
|
|
1408
|
+
const viewer = getImageViewer?.();
|
|
1409
|
+
if (typeof viewer?.open === "function") {
|
|
1410
|
+
const resolved = await Promise.all(group.map(async (image, position) => position === index ? items[index] : makeItem(image.attachment, image.original, await loadImage(image.attachment).catch(() => "about:blank"))));
|
|
1411
|
+
if (revision !== opening.current || viewer.open({
|
|
1412
|
+
...request,
|
|
1413
|
+
items: resolved
|
|
1414
|
+
}) === true) return;
|
|
1415
|
+
}
|
|
1416
|
+
if (features.imageViewer) internalViewer?.open?.({
|
|
888
1417
|
...request,
|
|
889
1418
|
annotations: false
|
|
890
1419
|
});
|
|
891
|
-
else
|
|
1420
|
+
else setNativePreview({
|
|
1421
|
+
attachment,
|
|
1422
|
+
src
|
|
1423
|
+
});
|
|
892
1424
|
};
|
|
893
1425
|
if (error && !usable) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
894
1426
|
type: "button",
|
|
@@ -896,7 +1428,7 @@ window.__ModuleLoader__.load({
|
|
|
896
1428
|
onClick: retry,
|
|
897
1429
|
children: t("imageLoadFailed")
|
|
898
1430
|
});
|
|
899
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
1431
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
900
1432
|
ref: triggerRef,
|
|
901
1433
|
type: "button",
|
|
902
1434
|
className: "codexGeneratedImageFrame",
|
|
@@ -909,7 +1441,15 @@ window.__ModuleLoader__.load({
|
|
|
909
1441
|
onLoad: loaded,
|
|
910
1442
|
alt: label
|
|
911
1443
|
}, attempt), error ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("imageLoadFailed") }) : null]
|
|
912
|
-
})
|
|
1444
|
+
}), nativePreview?.attachment === attachment && !features.imageViewer ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageLightbox, {
|
|
1445
|
+
src: nativePreview.src,
|
|
1446
|
+
alt: label,
|
|
1447
|
+
labels: {
|
|
1448
|
+
dialog: t("imagePreview"),
|
|
1449
|
+
close: t("imageClosePreview")
|
|
1450
|
+
},
|
|
1451
|
+
onClose: () => setNativePreview(void 0)
|
|
1452
|
+
}) : null] });
|
|
913
1453
|
}
|
|
914
1454
|
function CodexImageToolRow({ presentation = "tool", block, gallery, sessionId, rpc, loadImage, openSketchImage, attachForEdit, getImageViewer, getInternalImageViewer, t, preference }) {
|
|
915
1455
|
const features = (0, react.useSyncExternalStore)(preference.subscribe, preference.getSnapshot);
|
|
@@ -928,7 +1468,7 @@ window.__ModuleLoader__.load({
|
|
|
928
1468
|
showOutput ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
929
1469
|
className: "codexImageToolRow",
|
|
930
1470
|
children: [
|
|
931
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(!settled ? ForwardRef$
|
|
1471
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(!settled ? ForwardRef$10 : failed ? ForwardRef$4 : ForwardRef$2, {
|
|
932
1472
|
className: "codexImageToolIcon",
|
|
933
1473
|
"aria-hidden": "true"
|
|
934
1474
|
}),
|
|
@@ -1004,19 +1544,71 @@ window.__ModuleLoader__.load({
|
|
|
1004
1544
|
});
|
|
1005
1545
|
}
|
|
1006
1546
|
//#endregion
|
|
1007
|
-
//#region src/
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1547
|
+
//#region src/workspace-icons.jsx
|
|
1548
|
+
function WorkspaceIcon({ name, size = 24 }) {
|
|
1549
|
+
const paths = {
|
|
1550
|
+
select: "M5 3l14 9-7 2-3 7-4-18z",
|
|
1551
|
+
text: "M4 5h16M12 5v15M8 20h8M4 5v3M20 5v3",
|
|
1552
|
+
arrow: "M4 20L20 4M10 4h10v10",
|
|
1553
|
+
line: "M4 20L20 4",
|
|
1554
|
+
layers: "M12 3L2 8l10 5 10-5-10-5zM2 12l10 5 10-5M2 16l10 5 10-5",
|
|
1555
|
+
eye: "M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zM15 12a3 3 0 11-6 0 3 3 0 016 0",
|
|
1556
|
+
eyeOff: "M3 3l18 18M9 5a10 10 0 013 0c6 0 10 7 10 7l-3 4M6 6C3 8 2 12 2 12s4 7 10 7c2 0 4-1 5-2",
|
|
1557
|
+
duplicate: "M8 8h13v13H8zM16 8V3H3v13h5",
|
|
1558
|
+
up: "M12 20V4M5 11l7-7 7 7",
|
|
1559
|
+
down: "M12 4v16M5 13l7 7 7-7",
|
|
1560
|
+
pencil: "M4 20l2-6L17 3l4 4L10 18l-6 2zM14 6l4 4",
|
|
1561
|
+
marker: "M5 16l9-12 7 5-9 12-7-5zM5 16l-3 4 6 1M12 7l7 5",
|
|
1562
|
+
image: "M4 4h16v16H4zM4 16l5-5 4 4 3-3 4 4M15 8h.01",
|
|
1563
|
+
close: "M6 6l12 12M18 6L6 18",
|
|
1564
|
+
play: "M8 5l11 7-11 7z",
|
|
1565
|
+
pause: "M9 5v14m6-14v14",
|
|
1566
|
+
stop: "M6 6h12v12H6z",
|
|
1567
|
+
pen: "M4 17c3-7 12-15 12-11S4 19 8 19s10-10 10-6-6 8-2 7l4-3",
|
|
1568
|
+
eraser: "M4 14l9-10 7 7-9 10H9l-5-5zM8 10l7 7M11 21h10",
|
|
1569
|
+
undo: "M9 5L4 10l5 5M5 10h9a6 6 0 010 12",
|
|
1570
|
+
redo: "M15 5l5 5-5 5M19 10h-9a6 6 0 000 12",
|
|
1571
|
+
check: "M5 12l5 5 9-11",
|
|
1572
|
+
clear: "M4 7h16M9 7V4h6v3M7 7l1 13h8l1-13",
|
|
1573
|
+
rectangle: "M5 5h14v14H5z",
|
|
1574
|
+
circle: "M20 12a8 8 0 11-16 0 8 8 0 0116 0"
|
|
1575
|
+
};
|
|
1576
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
1577
|
+
width: size,
|
|
1578
|
+
height: size,
|
|
1579
|
+
viewBox: "0 0 24 24",
|
|
1580
|
+
fill: "none",
|
|
1581
|
+
stroke: "currentColor",
|
|
1582
|
+
strokeWidth: "1.8",
|
|
1583
|
+
strokeLinecap: "round",
|
|
1584
|
+
strokeLinejoin: "round",
|
|
1585
|
+
"aria-hidden": "true",
|
|
1586
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: paths[name] ?? paths.pen })
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
//#endregion
|
|
1590
|
+
//#region src/image-workspace.jsx
|
|
1591
|
+
function ImageWorkspace({ preference, t, sessionId, workspaces, openSketch }) {
|
|
1592
|
+
const settings = (0, react.useSyncExternalStore)(preference.subscribe, preference.getSnapshot);
|
|
1593
|
+
const enabled = settings.imageSketch && settings.imageEditing;
|
|
1594
|
+
(0, react.useEffect)(() => sessionId ? workspaces.attach(sessionId) : void 0, [sessionId, workspaces]);
|
|
1595
|
+
if (!enabled) return null;
|
|
1596
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
|
|
1597
|
+
label: t("sketch"),
|
|
1598
|
+
side: "top",
|
|
1599
|
+
delayMs: 350,
|
|
1600
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
1601
|
+
variant: "ghost",
|
|
1602
|
+
size: "sm",
|
|
1603
|
+
"aria-label": t("sketch"),
|
|
1604
|
+
onClick: (event) => openSketch(sessionId, event.currentTarget),
|
|
1605
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkspaceIcon, {
|
|
1606
|
+
name: "pen",
|
|
1607
|
+
size: 16
|
|
1608
|
+
})
|
|
1609
|
+
})
|
|
1610
|
+
});
|
|
1611
|
+
}
|
|
1020
1612
|
//#endregion
|
|
1021
1613
|
//#region src/client-feature.js
|
|
1022
1614
|
function createClientFeature(importFeature) {
|
|
@@ -1207,7 +1799,7 @@ window.__ModuleLoader__.load({
|
|
|
1207
1799
|
"aria-label": label,
|
|
1208
1800
|
disabled: !failed,
|
|
1209
1801
|
onClick: onRetry,
|
|
1210
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardRef$
|
|
1802
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardRef$10, {
|
|
1211
1803
|
className: failed ? "codexFeatureRetryIcon" : "codexFeatureLoadingIcon",
|
|
1212
1804
|
"aria-hidden": "true"
|
|
1213
1805
|
}),
|
|
@@ -1219,7 +1811,25 @@ window.__ModuleLoader__.load({
|
|
|
1219
1811
|
//#endregion
|
|
1220
1812
|
//#region src/sketch-workspace.jsx
|
|
1221
1813
|
const feature$1 = createClientFeature(() => require.async("./client.sketch.js"));
|
|
1222
|
-
function
|
|
1814
|
+
function SketchWorkspaceHost({ workspaces, sketchSessions, openers, attachSketch, preference, rpc, t }) {
|
|
1815
|
+
const entries = (0, react.useSyncExternalStore)(workspaces.subscribe, workspaces.getSnapshot);
|
|
1816
|
+
const snapshot = (0, react.useSyncExternalStore)(feature$1.subscribe, feature$1.getSnapshot);
|
|
1817
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [snapshot.module && entries.length ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("style", {
|
|
1818
|
+
"data-plugin": "dsh-codex-subscription-sketch",
|
|
1819
|
+
children: snapshot.module.SKETCH_CSS
|
|
1820
|
+
}) : null, entries.map(({ id, visible }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SketchWorkspace, {
|
|
1821
|
+
sessionId: id,
|
|
1822
|
+
visible,
|
|
1823
|
+
workspaces,
|
|
1824
|
+
sessionState: sketchSessions.get(id),
|
|
1825
|
+
openers,
|
|
1826
|
+
attachSketch: (blob) => attachSketch(id, blob),
|
|
1827
|
+
preference,
|
|
1828
|
+
rpc,
|
|
1829
|
+
t
|
|
1830
|
+
}, id))] });
|
|
1831
|
+
}
|
|
1832
|
+
function SketchWorkspace({ preference, attachSketch, registerOpen, openers, t, sessionId, rpc, sessionState, workspaces, visible = true }) {
|
|
1223
1833
|
const settings = (0, react.useSyncExternalStore)(preference.subscribe, preference.getSnapshot);
|
|
1224
1834
|
const snapshot = (0, react.useSyncExternalStore)(feature$1.subscribe, feature$1.getSnapshot);
|
|
1225
1835
|
const [requested, setRequested] = (0, react.useState)(false);
|
|
@@ -1228,6 +1838,7 @@ window.__ModuleLoader__.load({
|
|
|
1228
1838
|
const opener = (0, react.useRef)(null);
|
|
1229
1839
|
const alive = (0, react.useRef)(true);
|
|
1230
1840
|
const bridgeGeneration = (0, react.useRef)(0);
|
|
1841
|
+
const bridgeApi = (0, react.useRef)(null);
|
|
1231
1842
|
const activated = (0, react.useRef)(false);
|
|
1232
1843
|
const ready = (0, react.useRef)(null);
|
|
1233
1844
|
ready.current ??= createFeatureReadiness();
|
|
@@ -1252,6 +1863,7 @@ window.__ModuleLoader__.load({
|
|
|
1252
1863
|
}, [activate]);
|
|
1253
1864
|
const onAgentReady = (0, react.useCallback)((api) => ready.current.set(api), []);
|
|
1254
1865
|
const onAgentError = (0, react.useCallback)((error) => ready.current.fail(error), []);
|
|
1866
|
+
(0, react.useEffect)(() => sessionState?.retain?.(), [sessionState]);
|
|
1255
1867
|
(0, react.useEffect)(() => {
|
|
1256
1868
|
alive.current = true;
|
|
1257
1869
|
return () => {
|
|
@@ -1259,63 +1871,88 @@ window.__ModuleLoader__.load({
|
|
|
1259
1871
|
ready.current.cancel(Error("Sketch session disconnected"));
|
|
1260
1872
|
};
|
|
1261
1873
|
}, []);
|
|
1262
|
-
(0, react.useEffect)(() =>
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
if (
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1874
|
+
(0, react.useEffect)(() => {
|
|
1875
|
+
const openBoard = (mode = "sketch", source = document.activeElement, file) => {
|
|
1876
|
+
opener.current = source;
|
|
1877
|
+
if (mode === "sketch") {
|
|
1878
|
+
workspaces?.focus(sessionId);
|
|
1879
|
+
if (file) setIncoming({ file });
|
|
1880
|
+
setOpen(true);
|
|
1881
|
+
activate().catch(() => {});
|
|
1882
|
+
}
|
|
1883
|
+
};
|
|
1884
|
+
return openers ? openers.register(sessionId, openBoard) : registerOpen(openBoard);
|
|
1885
|
+
}, [
|
|
1886
|
+
openers,
|
|
1887
|
+
registerOpen,
|
|
1888
|
+
sessionId,
|
|
1889
|
+
activate,
|
|
1890
|
+
workspaces
|
|
1891
|
+
]);
|
|
1270
1892
|
(0, react.useEffect)(() => {
|
|
1271
1893
|
if (!agentEnabled || !rpc || !sessionId) return;
|
|
1272
1894
|
const generation = ++bridgeGeneration.current;
|
|
1895
|
+
const execute = (operation) => workspaces ? workspaces.run(sessionId, operation) : operation();
|
|
1273
1896
|
const api = Object.freeze({
|
|
1274
1897
|
version: 2,
|
|
1275
1898
|
sessionId,
|
|
1276
|
-
execute: (request) => agent(generation).then((value) => value.execute(request)),
|
|
1899
|
+
execute: (request) => execute(() => agent(generation).then((value) => value.execute(request))),
|
|
1277
1900
|
export: (format) => agent(generation).then((value) => value.export(format))
|
|
1278
1901
|
});
|
|
1279
|
-
|
|
1280
|
-
const disconnect = connectSketchAgent(rpc, sessionId, api.execute, () => sessionState?.agentRun.current?.fail(), () => sessionState?.agentRun.current?.locked ? 350 : 2e3);
|
|
1902
|
+
bridgeApi.current = api;
|
|
1903
|
+
const disconnect = connectSketchAgent(rpc, sessionId, api.execute, () => sessionState?.agentRun.current?.fail(), () => sessionState?.agentRun.current?.locked ? 350 : workspaces?.visible(sessionId) === false ? 4e3 : 2e3);
|
|
1281
1904
|
return () => {
|
|
1282
1905
|
bridgeGeneration.current++;
|
|
1283
1906
|
disconnect();
|
|
1284
1907
|
ready.current.cancel(Error("Sketch connection ended"));
|
|
1908
|
+
bridgeApi.current = null;
|
|
1909
|
+
};
|
|
1910
|
+
}, [
|
|
1911
|
+
agentEnabled,
|
|
1912
|
+
rpc,
|
|
1913
|
+
sessionId,
|
|
1914
|
+
sessionState,
|
|
1915
|
+
agent,
|
|
1916
|
+
workspaces
|
|
1917
|
+
]);
|
|
1918
|
+
(0, react.useEffect)(() => {
|
|
1919
|
+
const api = bridgeApi.current;
|
|
1920
|
+
if (!visible || !api) return;
|
|
1921
|
+
window.dshSketchAgent = api;
|
|
1922
|
+
return () => {
|
|
1285
1923
|
if (window.dshSketchAgent === api) delete window.dshSketchAgent;
|
|
1286
1924
|
};
|
|
1287
1925
|
}, [
|
|
1926
|
+
visible,
|
|
1288
1927
|
agentEnabled,
|
|
1289
1928
|
rpc,
|
|
1290
1929
|
sessionId,
|
|
1291
1930
|
sessionState,
|
|
1292
|
-
agent
|
|
1931
|
+
agent,
|
|
1932
|
+
workspaces
|
|
1293
1933
|
]);
|
|
1294
1934
|
const Studio = requested && snapshot.module?.SketchStudio;
|
|
1295
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [requested && !Studio ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FeatureLoadStatus, {
|
|
1935
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [visible && requested && !Studio ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FeatureLoadStatus, {
|
|
1296
1936
|
compact: true,
|
|
1297
1937
|
failed: snapshot.status === "error",
|
|
1298
1938
|
t,
|
|
1299
1939
|
onRetry: () => {
|
|
1300
1940
|
activate().catch(() => {});
|
|
1301
1941
|
}
|
|
1302
|
-
}) : null, Studio ? /* @__PURE__ */ (0, react_jsx_runtime.
|
|
1303
|
-
"data-plugin": "dsh-codex-subscription-sketch",
|
|
1304
|
-
children: snapshot.module.SKETCH_CSS
|
|
1305
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Studio, {
|
|
1942
|
+
}) : null, Studio ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Studio, {
|
|
1306
1943
|
sessionState,
|
|
1307
|
-
bridgeManaged: true,
|
|
1308
1944
|
onAgentReady,
|
|
1309
1945
|
onAgentError,
|
|
1946
|
+
onAgentState: (state) => workspaces?.setDrawing(sessionId, state === "drawing"),
|
|
1310
1947
|
agentEnabled: settings.imageSketchAgent,
|
|
1948
|
+
visible,
|
|
1311
1949
|
onOpen: () => {
|
|
1312
1950
|
opener.current = document.activeElement;
|
|
1313
1951
|
setOpen(true);
|
|
1314
1952
|
},
|
|
1315
1953
|
sessionId,
|
|
1316
|
-
rpc,
|
|
1317
1954
|
incoming,
|
|
1318
|
-
open,
|
|
1955
|
+
open: visible && open,
|
|
1319
1956
|
onClose: () => {
|
|
1320
1957
|
setOpen(false);
|
|
1321
1958
|
opener.current?.focus();
|
|
@@ -1323,79 +1960,7 @@ window.__ModuleLoader__.load({
|
|
|
1323
1960
|
attachSketch,
|
|
1324
1961
|
enabled,
|
|
1325
1962
|
t
|
|
1326
|
-
})
|
|
1327
|
-
}
|
|
1328
|
-
//#endregion
|
|
1329
|
-
//#region src/workspace-icons.jsx
|
|
1330
|
-
function WorkspaceIcon({ name, size = 24 }) {
|
|
1331
|
-
const paths = {
|
|
1332
|
-
select: "M5 3l14 9-7 2-3 7-4-18z",
|
|
1333
|
-
text: "M4 5h16M12 5v15M8 20h8M4 5v3M20 5v3",
|
|
1334
|
-
arrow: "M4 20L20 4M10 4h10v10",
|
|
1335
|
-
line: "M4 20L20 4",
|
|
1336
|
-
layers: "M12 3L2 8l10 5 10-5-10-5zM2 12l10 5 10-5M2 16l10 5 10-5",
|
|
1337
|
-
eye: "M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zM15 12a3 3 0 11-6 0 3 3 0 016 0",
|
|
1338
|
-
eyeOff: "M3 3l18 18M9 5a10 10 0 013 0c6 0 10 7 10 7l-3 4M6 6C3 8 2 12 2 12s4 7 10 7c2 0 4-1 5-2",
|
|
1339
|
-
duplicate: "M8 8h13v13H8zM16 8V3H3v13h5",
|
|
1340
|
-
up: "M12 20V4M5 11l7-7 7 7",
|
|
1341
|
-
down: "M12 4v16M5 13l7 7 7-7",
|
|
1342
|
-
pencil: "M4 20l2-6L17 3l4 4L10 18l-6 2zM14 6l4 4",
|
|
1343
|
-
marker: "M5 16l9-12 7 5-9 12-7-5zM5 16l-3 4 6 1M12 7l7 5",
|
|
1344
|
-
image: "M4 4h16v16H4zM4 16l5-5 4 4 3-3 4 4M15 8h.01",
|
|
1345
|
-
close: "M6 6l12 12M18 6L6 18",
|
|
1346
|
-
stop: "M6 6h12v12H6z",
|
|
1347
|
-
pen: "M4 17c3-7 12-15 12-11S4 19 8 19s10-10 10-6-6 8-2 7l4-3",
|
|
1348
|
-
eraser: "M4 14l9-10 7 7-9 10H9l-5-5zM8 10l7 7M11 21h10",
|
|
1349
|
-
undo: "M9 5L4 10l5 5M5 10h9a6 6 0 010 12",
|
|
1350
|
-
redo: "M15 5l5 5-5 5M19 10h-9a6 6 0 000 12",
|
|
1351
|
-
check: "M5 12l5 5 9-11",
|
|
1352
|
-
clear: "M4 7h16M9 7V4h6v3M7 7l1 13h8l1-13",
|
|
1353
|
-
rectangle: "M5 5h14v14H5z",
|
|
1354
|
-
circle: "M20 12a8 8 0 11-16 0 8 8 0 0116 0"
|
|
1355
|
-
};
|
|
1356
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
1357
|
-
width: size,
|
|
1358
|
-
height: size,
|
|
1359
|
-
viewBox: "0 0 24 24",
|
|
1360
|
-
fill: "none",
|
|
1361
|
-
stroke: "currentColor",
|
|
1362
|
-
strokeWidth: "1.8",
|
|
1363
|
-
strokeLinecap: "round",
|
|
1364
|
-
strokeLinejoin: "round",
|
|
1365
|
-
"aria-hidden": "true",
|
|
1366
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: paths[name] ?? paths.pen })
|
|
1367
|
-
});
|
|
1368
|
-
}
|
|
1369
|
-
//#endregion
|
|
1370
|
-
//#region src/image-workspace.jsx
|
|
1371
|
-
function ImageWorkspace(props) {
|
|
1372
|
-
const { preference, t, registerOpen } = props;
|
|
1373
|
-
const settings = (0, react.useSyncExternalStore)(preference.subscribe, preference.getSnapshot);
|
|
1374
|
-
const workspace = (0, react.useRef)(null);
|
|
1375
|
-
const registerWorkspace = (0, react.useCallback)((callback) => {
|
|
1376
|
-
workspace.current = callback;
|
|
1377
|
-
const dispose = registerOpen(callback);
|
|
1378
|
-
return () => {
|
|
1379
|
-
workspace.current = null;
|
|
1380
|
-
dispose();
|
|
1381
|
-
};
|
|
1382
|
-
}, [registerOpen]);
|
|
1383
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [settings.imageSketch && settings.imageEditing ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
|
|
1384
|
-
label: t("sketch"),
|
|
1385
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
1386
|
-
variant: "ghost",
|
|
1387
|
-
size: "sm",
|
|
1388
|
-
"aria-label": t("sketch"),
|
|
1389
|
-
onClick: (event) => workspace.current?.("sketch", event.currentTarget),
|
|
1390
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WorkspaceIcon, {
|
|
1391
|
-
name: "pen",
|
|
1392
|
-
size: 16
|
|
1393
|
-
})
|
|
1394
|
-
})
|
|
1395
|
-
}) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SketchWorkspace, {
|
|
1396
|
-
...props,
|
|
1397
|
-
registerOpen: registerWorkspace
|
|
1398
|
-
}, props.sessionId)] });
|
|
1963
|
+
}) : null] });
|
|
1399
1964
|
}
|
|
1400
1965
|
//#endregion
|
|
1401
1966
|
//#region src/image-composer.js
|
|
@@ -1453,6 +2018,15 @@ window.__ModuleLoader__.load({
|
|
|
1453
2018
|
description: options.description ?? "Describe an image to generate or edit"
|
|
1454
2019
|
});
|
|
1455
2020
|
//#endregion
|
|
2021
|
+
//#region src/composer-prediction-models.js
|
|
2022
|
+
const models = /* @__PURE__ */ new Map([
|
|
2023
|
+
["gpt-6-astra", "GPT-6 Astra"],
|
|
2024
|
+
["gpt-6.1-sol", "GPT-6.1 Sol"],
|
|
2025
|
+
["gpt-6.1-terra", "GPT-6.1 Terra"]
|
|
2026
|
+
]);
|
|
2027
|
+
const composerPredictionModelNames = [...models.values()].join(", ");
|
|
2028
|
+
const supportsComposerPrediction = (model) => models.has(model);
|
|
2029
|
+
//#endregion
|
|
1456
2030
|
//#region src/client-languages.js
|
|
1457
2031
|
const dictionaries = {
|
|
1458
2032
|
zh: {
|
|
@@ -1546,14 +2120,15 @@ window.__ModuleLoader__.load({
|
|
|
1546
2120
|
storageConfirm: "清除所有已登录账号的本地预测历史?预测需重新积累采样;订阅额度、图片、草稿和登录信息不受影响。",
|
|
1547
2121
|
storageFailed: "未能读取或清除预测缓存,请重试。",
|
|
1548
2122
|
runtimeIncompatible: "检测到不兼容的 Codex 子任务组件,请卸载后重启,再安装受支持版本。",
|
|
1549
|
-
runtimeUpdateRequired: "
|
|
2123
|
+
runtimeUpdateRequired: "需要准备订阅专用 CLI。",
|
|
1550
2124
|
runtimeManagedElsewhere: "此组件由宿主或其他依赖管理,请在 DSH 插件管理中查看;这里不能直接卸载。",
|
|
1551
2125
|
runtimeLoading: "正在检查组件…",
|
|
1552
2126
|
runtimeRestart: "组件已更新,请重启 DSH 后使用。",
|
|
1553
2127
|
runtime_installing: "正在通过 DSH 安装组件…",
|
|
1554
2128
|
runtime_removing: "正在通过 DSH 卸载组件…",
|
|
1555
2129
|
runtime_applying: "正在应用安装结果…",
|
|
1556
|
-
runtimeInstall: "
|
|
2130
|
+
runtimeInstall: "准备 CLI",
|
|
2131
|
+
runtimeOpenPlugins: "打开 DSH 插件",
|
|
1557
2132
|
runtimeRemove: "卸载组件",
|
|
1558
2133
|
runtimeCancel: "取消安装",
|
|
1559
2134
|
runtimeKeep: "保留",
|
|
@@ -1598,7 +2173,7 @@ window.__ModuleLoader__.load({
|
|
|
1598
2173
|
connectorsHint: "让 DSH 里的任何模型使用你在 ChatGPT 里已连接的应用(GitHub、Gmail、云端硬盘、日历等)。需先在 ChatGPT 里连接应用;应用返回的内容来自第三方,模型不会照其中的指令行事。",
|
|
1599
2174
|
connectorsMode_off: "连接器关闭,模型看不到这些应用。",
|
|
1600
2175
|
connectorsMode_read: "模型只能读取(搜邮件、读文件、查 PR),不会修改任何数据。",
|
|
1601
|
-
connectorsMode_ask: "
|
|
2176
|
+
connectorsMode_ask: "当前会话允许审批时,写操作会请求确认。可在输入框的权限菜单或用 /permission 查看和切换会话权限。",
|
|
1602
2177
|
connectorsMode_write: "写操作直接执行,不再弹出确认,误操作无法撤回,请谨慎使用。",
|
|
1603
2178
|
connectors_off: "关闭",
|
|
1604
2179
|
connectors_read: "只读",
|
|
@@ -1609,7 +2184,7 @@ window.__ModuleLoader__.load({
|
|
|
1609
2184
|
composerPredictions: "输入预测",
|
|
1610
2185
|
composerPredictionAccept: "接受建议",
|
|
1611
2186
|
composerPredictionsShortHint: "Tab 填入草稿",
|
|
1612
|
-
composerPredictionsHint:
|
|
2187
|
+
composerPredictionsHint: `支持的 Codex 模型(${composerPredictionModelNames})在一轮对话完成、草稿为空时,基于当前会话建议下一条消息。Tab 填入草稿,不会自动发送。会产生额外预测请求。官方 Codex 生成预测不计额度或 Credits;DSH 第三方接入是否享有相同豁免尚未确认。接受后发送消息仍正常计量。`,
|
|
1613
2188
|
featureLoading: "正在加载…",
|
|
1614
2189
|
featureLoadFailed: "加载失败,点击重试",
|
|
1615
2190
|
featureRetry: "重试",
|
|
@@ -1644,7 +2219,7 @@ window.__ModuleLoader__.load({
|
|
|
1644
2219
|
reasoningSummary_none: "关闭",
|
|
1645
2220
|
subagentBackendTitle: "独立子任务",
|
|
1646
2221
|
subagentBackend_dsh: "DSH",
|
|
1647
|
-
subagentBackend_codex: "Codex",
|
|
2222
|
+
subagentBackend_codex: "Codex(订阅)",
|
|
1648
2223
|
subagentDefaultModel: "子任务默认模型",
|
|
1649
2224
|
subagentDefaultEffort: "子任务默认推理等级",
|
|
1650
2225
|
subagentFollowParent: "跟随父会话",
|
|
@@ -1814,12 +2389,11 @@ window.__ModuleLoader__.load({
|
|
|
1814
2389
|
sketchReplayRecord: "录制过程视频",
|
|
1815
2390
|
sketchReplaySave: "保存视频",
|
|
1816
2391
|
sketchReplayAgain: "回到回放",
|
|
1817
|
-
sketchReplaySaveHint: "点「保存视频」时,系统会让你选择保存位置。",
|
|
1818
2392
|
sketchReplayStopRecording: "停止录制",
|
|
1819
2393
|
sketchReplayEmpty: "还没有可回放的绘制。",
|
|
1820
2394
|
sketchReplayUnsupported: "当前环境不支持录制视频。",
|
|
1821
2395
|
sketchReplayFileSuffix: "过程",
|
|
1822
|
-
sketchReplayHint: "
|
|
2396
|
+
sketchReplayHint: "回放默认不录制。点击后另存为 WebM 视频。",
|
|
1823
2397
|
sketchFiles: "草稿",
|
|
1824
2398
|
sketchNew: "新建草图",
|
|
1825
2399
|
sketchImport: "导入文件",
|
|
@@ -1844,7 +2418,6 @@ window.__ModuleLoader__.load({
|
|
|
1844
2418
|
forecastCompactChanging: "重估",
|
|
1845
2419
|
forecastCompactStale: "待更新",
|
|
1846
2420
|
imageMore: "更多操作",
|
|
1847
|
-
imageEditShort: "继续编辑",
|
|
1848
2421
|
forecastResolution: "暂时估不准:读数变化不足以确定速度",
|
|
1849
2422
|
forecastChanging: "使用强度变化,正在重新估计",
|
|
1850
2423
|
forecastStale: "额度数据已过期,等待更新",
|
|
@@ -1985,8 +2558,7 @@ window.__ModuleLoader__.load({
|
|
|
1985
2558
|
speedFastAstraHint: "Astra 约 2 倍速度,消耗更多 Credits",
|
|
1986
2559
|
speedUltrafast: "极速 Beta",
|
|
1987
2560
|
speedUltrafastHint: "Ultrafast 档,仅账号目录提供时显示(目前为 Pro 500);速度最快,额度和 Credits 消耗更快",
|
|
1988
|
-
|
|
1989
|
-
imageEditReferenceGuide: "本次编辑的干净源图为「{sourceName}」,编号定位参考图为「{referenceName}」。坐标以图片左上角为原点,x 向右、y 向下,百分比相对于整张图片。请查看这两张图片,将它们同时作为编辑工具的参考图,并在工具提示词中完整保留下方编号、位置和修改要求。只修改源图中对应位置的内容;定位参考图上的编号、圆点和引线仅用于定位,不得绘入最终结果。若无法读取两张图片或确定位置,请说明问题,不要猜测或忽略标注。",
|
|
2561
|
+
imageEditReferenceGuide: "编辑「{sourceName}」。将「{referenceName}」也作为参考,只用于定位编号处,成图不保留标记。",
|
|
1990
2562
|
nav: "Codex 订阅",
|
|
1991
2563
|
title: "Codex 订阅",
|
|
1992
2564
|
savedAccounts: "已登记账号",
|
|
@@ -2182,7 +2754,7 @@ window.__ModuleLoader__.load({
|
|
|
2182
2754
|
settingsTab_create: "创作",
|
|
2183
2755
|
settingsTab_more: "手机与更多",
|
|
2184
2756
|
subtasksTitle: "子任务",
|
|
2185
|
-
subagentBackendNeedsRuntime: "
|
|
2757
|
+
subagentBackendNeedsRuntime: "在 DSH 插件页安装「Codex 子智能体」。",
|
|
2186
2758
|
imageShortcutNeedsImages: "先开启图片生成或编辑。",
|
|
2187
2759
|
sketchSectionTitle: "草图画板",
|
|
2188
2760
|
settingsReadonly: "当前无法修改设置(DSH 没有开放写入)。",
|
|
@@ -2331,6 +2903,12 @@ window.__ModuleLoader__.load({
|
|
|
2331
2903
|
runwayDays: "{days} 天",
|
|
2332
2904
|
runwayHours: "{hours}h",
|
|
2333
2905
|
runwayMinutes: "{minutes} 分钟",
|
|
2906
|
+
"composerSettingsTitle": "输入框",
|
|
2907
|
+
"defaultSpeedTitle": "默认速度",
|
|
2908
|
+
"composerMenuCustom": "可在模型菜单中切换速度",
|
|
2909
|
+
"composerMenuHost": "由 DSH 或其他插件提供模型菜单",
|
|
2910
|
+
"legacyModelPicker": "自定义模型菜单",
|
|
2911
|
+
"legacyModelPickerHint": "在输入框的模型菜单中切换速度和回答详略。关闭后,本插件让出模型菜单,订阅功能仍可使用。",
|
|
2334
2912
|
speedTitle: "速度",
|
|
2335
2913
|
speedStandard: "标准",
|
|
2336
2914
|
speedStandardHint: "标准速度",
|
|
@@ -2380,7 +2958,6 @@ window.__ModuleLoader__.load({
|
|
|
2380
2958
|
imageAnnotateHint: "点击图片添加编号标注",
|
|
2381
2959
|
imageAnnotation: "标注 {value}",
|
|
2382
2960
|
imageAnnotationPlaceholder: "描述这个部位要修改什么",
|
|
2383
|
-
imageRegions: "区域备注",
|
|
2384
2961
|
imageCopyNotes: "复制备注",
|
|
2385
2962
|
imageCopied: "已复制",
|
|
2386
2963
|
imagePrevious: "上一张图片",
|
|
@@ -2388,8 +2965,7 @@ window.__ModuleLoader__.load({
|
|
|
2388
2965
|
imageZoomHint: "滚轮缩放 · 拖动查看 · 双击切换原始大小",
|
|
2389
2966
|
imageActual: "原始大小",
|
|
2390
2967
|
imageEditDefault: "编辑这张图片。",
|
|
2391
|
-
|
|
2392
|
-
imageEdit: "在输入框中继续编辑",
|
|
2968
|
+
imageEdit: "添加到输入框",
|
|
2393
2969
|
imageEditPreparing: "正在添加到输入框…",
|
|
2394
2970
|
imageEditFailed: "回填失败:请填写每个标记的备注,并确认输入框可接收图片后重试。",
|
|
2395
2971
|
imageRemoveAnnotation: "删除标注"
|
|
@@ -2485,14 +3061,15 @@ window.__ModuleLoader__.load({
|
|
|
2485
3061
|
storageConfirm: "Clear local forecast history for all signed-in accounts? Forecasts will need new samples. Subscription quota, images, drafts and sign-in data are unaffected.",
|
|
2486
3062
|
storageFailed: "Could not read or clear the forecast cache. Try again.",
|
|
2487
3063
|
runtimeIncompatible: "An incompatible Codex subtask component was found. Uninstall it, restart DSH, then install the supported version.",
|
|
2488
|
-
runtimeUpdateRequired: "The
|
|
3064
|
+
runtimeUpdateRequired: "The subscription CLI needs to be prepared.",
|
|
2489
3065
|
runtimeManagedElsewhere: "This component is managed by the host or another dependency. Check DSH plugin management; it cannot be removed here.",
|
|
2490
3066
|
runtimeLoading: "Checking component…",
|
|
2491
3067
|
runtimeRestart: "Component changed. Restart DSH before using it.",
|
|
2492
3068
|
runtime_installing: "Installing through DSH…",
|
|
2493
3069
|
runtime_removing: "Uninstalling through DSH…",
|
|
2494
3070
|
runtime_applying: "Applying installation…",
|
|
2495
|
-
runtimeInstall: "
|
|
3071
|
+
runtimeInstall: "Prepare CLI",
|
|
3072
|
+
runtimeOpenPlugins: "Open DSH Plugins",
|
|
2496
3073
|
runtimeRemove: "Uninstall component",
|
|
2497
3074
|
runtimeCancel: "Cancel installation",
|
|
2498
3075
|
runtimeKeep: "Keep",
|
|
@@ -2537,7 +3114,7 @@ window.__ModuleLoader__.load({
|
|
|
2537
3114
|
connectorsHint: "Lets any model in DSH use the apps you have connected in ChatGPT (GitHub, Gmail, Drive, Calendar and more). Connect the apps in ChatGPT first; what apps return is third-party content and models do not follow instructions inside it.",
|
|
2538
3115
|
connectorsMode_off: "Connectors are off; models cannot see these apps.",
|
|
2539
3116
|
connectorsMode_read: "Models can only read (search mail, read files, look up pull requests) and never change data.",
|
|
2540
|
-
connectorsMode_ask: "
|
|
3117
|
+
connectorsMode_ask: "Write actions ask for approval when the current session allows it. Check or change session permissions in the composer or with /permission.",
|
|
2541
3118
|
connectorsMode_write: "Changing actions run immediately without a prompt and cannot be undone, so use this carefully.",
|
|
2542
3119
|
connectors_off: "Off",
|
|
2543
3120
|
connectors_read: "Read-only",
|
|
@@ -2548,7 +3125,7 @@ window.__ModuleLoader__.load({
|
|
|
2548
3125
|
composerPredictions: "Input predictions",
|
|
2549
3126
|
composerPredictionAccept: "Accept suggestion",
|
|
2550
3127
|
composerPredictionsShortHint: "Tab fills draft",
|
|
2551
|
-
composerPredictionsHint:
|
|
3128
|
+
composerPredictionsHint: `Supported Codex models (${composerPredictionModelNames}) suggest your next message from the current conversation after a completed turn, when the draft is empty. Tab fills the draft without sending. Makes additional prediction requests. Official Codex predictions do not count toward usage limits or credits; the same exemption for this third-party integration is unconfirmed. Sending an accepted draft still counts normally.`,
|
|
2552
3129
|
featureLoading: "Loading…",
|
|
2553
3130
|
featureLoadFailed: "Could not load. Click to retry",
|
|
2554
3131
|
featureRetry: "Retry",
|
|
@@ -2583,7 +3160,7 @@ window.__ModuleLoader__.load({
|
|
|
2583
3160
|
reasoningSummary_none: "Off",
|
|
2584
3161
|
subagentBackendTitle: "Independent subtasks",
|
|
2585
3162
|
subagentBackend_dsh: "DSH",
|
|
2586
|
-
subagentBackend_codex: "Codex",
|
|
3163
|
+
subagentBackend_codex: "Codex (subscription)",
|
|
2587
3164
|
subagentDefaultModel: "Default subtask model",
|
|
2588
3165
|
subagentDefaultEffort: "Default subtask reasoning",
|
|
2589
3166
|
subagentFollowParent: "Follow parent",
|
|
@@ -2753,12 +3330,11 @@ window.__ModuleLoader__.load({
|
|
|
2753
3330
|
sketchReplayRecord: "Record process video",
|
|
2754
3331
|
sketchReplaySave: "Save video",
|
|
2755
3332
|
sketchReplayAgain: "Back to replay",
|
|
2756
|
-
sketchReplaySaveHint: "Choosing Save video asks where to put the file.",
|
|
2757
3333
|
sketchReplayStopRecording: "Stop recording",
|
|
2758
3334
|
sketchReplayEmpty: "Nothing to replay yet.",
|
|
2759
3335
|
sketchReplayUnsupported: "Video recording is not available here.",
|
|
2760
3336
|
sketchReplayFileSuffix: "process",
|
|
2761
|
-
sketchReplayHint: "
|
|
3337
|
+
sketchReplayHint: "Playback does not record. Select this to make a WebM video.",
|
|
2762
3338
|
sketchFiles: "Drafts",
|
|
2763
3339
|
sketchNew: "New sketch",
|
|
2764
3340
|
sketchImport: "Import file",
|
|
@@ -2783,7 +3359,6 @@ window.__ModuleLoader__.load({
|
|
|
2783
3359
|
forecastCompactChanging: "Re-estimating",
|
|
2784
3360
|
forecastCompactStale: "Stale",
|
|
2785
3361
|
imageMore: "More actions",
|
|
2786
|
-
imageEditShort: "Edit",
|
|
2787
3362
|
forecastResolution: "Not enough change to estimate the rate yet",
|
|
2788
3363
|
forecastChanging: "Usage intensity changed; estimating again",
|
|
2789
3364
|
forecastStale: "Quota data is stale; waiting for an update",
|
|
@@ -2924,8 +3499,7 @@ window.__ModuleLoader__.load({
|
|
|
2924
3499
|
speedFastAstraHint: "About 2x speed on Astra; higher Credits use",
|
|
2925
3500
|
speedUltrafast: "Ultrafast Beta",
|
|
2926
3501
|
speedUltrafastHint: "Ultrafast tier, shown only when your account catalog offers it (Pro 500 today); fastest, uses allowance and Credits faster",
|
|
2927
|
-
|
|
2928
|
-
imageEditReferenceGuide: "The clean source for this edit is \"{sourceName}\"; \"{referenceName}\" is the numbered location reference. Coordinates start at the top-left, x increases rightward and y downward; percentages refer to the whole image. Inspect both images and pass both as references to the image-editing tool. Preserve every number, position and requested change below in the tool prompt. Edit the corresponding content in the clean source; numbers, dots and leader lines on the location reference are guidance only and must not appear in the final result. If either image cannot be read or a location is unclear, explain the problem instead of guessing or ignoring annotations.",
|
|
3502
|
+
imageEditReferenceGuide: "Edit “{sourceName}”. Include “{referenceName}” as a reference for the numbered locations only. Omit the markers from the result.",
|
|
2929
3503
|
nav: "Codex",
|
|
2930
3504
|
title: "Codex subscription",
|
|
2931
3505
|
savedAccounts: "Saved accounts",
|
|
@@ -3121,7 +3695,7 @@ window.__ModuleLoader__.load({
|
|
|
3121
3695
|
settingsTab_create: "Create",
|
|
3122
3696
|
settingsTab_more: "Phone & more",
|
|
3123
3697
|
subtasksTitle: "Subtasks",
|
|
3124
|
-
subagentBackendNeedsRuntime: "
|
|
3698
|
+
subagentBackendNeedsRuntime: "Install Codex Subagent from DSH Plugins.",
|
|
3125
3699
|
imageShortcutNeedsImages: "Turn on image generation or editing first.",
|
|
3126
3700
|
sketchSectionTitle: "Sketch board",
|
|
3127
3701
|
settingsReadonly: "Settings cannot be changed right now (DSH does not allow writes).",
|
|
@@ -3270,6 +3844,12 @@ window.__ModuleLoader__.load({
|
|
|
3270
3844
|
runwayDays: "{days}d",
|
|
3271
3845
|
runwayHours: "{hours}h",
|
|
3272
3846
|
runwayMinutes: "{minutes}m",
|
|
3847
|
+
"composerSettingsTitle": "Composer",
|
|
3848
|
+
"defaultSpeedTitle": "Default speed",
|
|
3849
|
+
"composerMenuCustom": "Speed controls in the model menu",
|
|
3850
|
+
"composerMenuHost": "Model menu provided by DSH or another plugin",
|
|
3851
|
+
"legacyModelPicker": "Custom model menu",
|
|
3852
|
+
"legacyModelPickerHint": "Switch speed and output detail in the composer’s model menu. Turn off to let DSH or another plugin provide the menu. Subscription features remain available.",
|
|
3273
3853
|
speedTitle: "Speed",
|
|
3274
3854
|
speedStandard: "Standard",
|
|
3275
3855
|
speedStandardHint: "Standard speed",
|
|
@@ -3319,7 +3899,6 @@ window.__ModuleLoader__.load({
|
|
|
3319
3899
|
imageAnnotateHint: "Click the image to add a numbered note",
|
|
3320
3900
|
imageAnnotation: "Note {value}",
|
|
3321
3901
|
imageAnnotationPlaceholder: "Describe what should change in this area",
|
|
3322
|
-
imageRegions: "Region notes",
|
|
3323
3902
|
imageCopyNotes: "Copy notes",
|
|
3324
3903
|
imageCopied: "Copied",
|
|
3325
3904
|
imagePrevious: "Previous image",
|
|
@@ -3327,8 +3906,7 @@ window.__ModuleLoader__.load({
|
|
|
3327
3906
|
imageZoomHint: "Wheel to zoom · drag to pan · double-click for 100%",
|
|
3328
3907
|
imageActual: "Actual size",
|
|
3329
3908
|
imageEditDefault: "Edit this image.",
|
|
3330
|
-
|
|
3331
|
-
imageEdit: "Continue editing in composer",
|
|
3909
|
+
imageEdit: "Add to composer",
|
|
3332
3910
|
imageEditPreparing: "Adding to composer…",
|
|
3333
3911
|
imageEditFailed: "Handoff failed. Add a note to every marker and ensure the composer accepts images, then retry.",
|
|
3334
3912
|
imageRemoveAnnotation: "Remove note"
|
|
@@ -3424,14 +4002,15 @@ window.__ModuleLoader__.load({
|
|
|
3424
4002
|
"storageConfirm": "サインイン済みのすべてのアカウントについて、ローカルの予測履歴を消去しますか?予測には新しいサンプルが必要になります。サブスクリプションの利用枠、画像、下書き、サインイン情報には影響しません。",
|
|
3425
4003
|
"storageFailed": "予測キャッシュを読み取るか消去できませんでした。再試行してください。",
|
|
3426
4004
|
"runtimeIncompatible": "互換性のない Codex サブタスクコンポーネントが見つかりました。アンインストールして DSH を再起動し、対応バージョンをインストールしてください。",
|
|
3427
|
-
"runtimeUpdateRequired": "
|
|
4005
|
+
"runtimeUpdateRequired": "購読用 CLI の準備が必要です。",
|
|
3428
4006
|
"runtimeManagedElsewhere": "このコンポーネントはホストまたは別の依存関係によって管理されています。DSH のプラグイン管理を確認してください。ここからは削除できません。",
|
|
3429
4007
|
"runtimeLoading": "コンポーネントを確認中…",
|
|
3430
4008
|
"runtimeRestart": "コンポーネントが変更されました。使用する前に DSH を再起動してください。",
|
|
3431
4009
|
"runtime_installing": "DSH 経由でインストール中…",
|
|
3432
4010
|
"runtime_removing": "DSH 経由でアンインストール中…",
|
|
3433
4011
|
"runtime_applying": "インストールを適用中…",
|
|
3434
|
-
"runtimeInstall": "
|
|
4012
|
+
"runtimeInstall": "CLI を準備",
|
|
4013
|
+
"runtimeOpenPlugins": "DSH のプラグインを開く",
|
|
3435
4014
|
"runtimeRemove": "コンポーネントをアンインストール",
|
|
3436
4015
|
"runtimeCancel": "インストールをキャンセル",
|
|
3437
4016
|
"runtimeKeep": "保持",
|
|
@@ -3476,7 +4055,7 @@ window.__ModuleLoader__.load({
|
|
|
3476
4055
|
"connectorsHint": "DSH のすべてのモデルで、ChatGPT に接続したアプリ(GitHub、Gmail、Drive、Calendar など)を利用できるようにします。先に ChatGPT でアプリを接続してください。アプリが返す内容はサードパーティのコンテンツであり、モデルはその中の指示には従いません。",
|
|
3477
4056
|
"connectorsMode_off": "コネクタはオフです。モデルはこれらのアプリを参照できません。",
|
|
3478
4057
|
"connectorsMode_read": "モデルは読み取りのみ可能です(メールの検索、ファイルの読み取り、プルリクエストの確認など)。データを変更することはありません。",
|
|
3479
|
-
"connectorsMode_ask": "
|
|
4058
|
+
"connectorsMode_ask": "現在のセッションで承認が許可されている場合、書き込み前に確認します。入力欄の権限メニューか /permission でセッションの権限を確認・変更できます。",
|
|
3480
4059
|
"connectorsMode_write": "データを変更する操作を確認なしで直ちに実行します。元に戻せないため、慎重に使用してください。",
|
|
3481
4060
|
"connectors_off": "オフ",
|
|
3482
4061
|
"connectors_read": "読み取り専用",
|
|
@@ -3487,7 +4066,7 @@ window.__ModuleLoader__.load({
|
|
|
3487
4066
|
"composerPredictions": "入力予測",
|
|
3488
4067
|
"composerPredictionAccept": "候補を採用",
|
|
3489
4068
|
"composerPredictionsShortHint": "Tab で下書きを補完",
|
|
3490
|
-
"composerPredictionsHint":
|
|
4069
|
+
"composerPredictionsHint": `対応する Codex モデル(${composerPredictionModelNames})は、ターン完了後、下書きが空の場合に現在の会話から次のメッセージを提案します。Tab で下書きを補完しますが、送信はされません。予測リクエストが追加で発生します。公式 Codex の予測は利用上限や利用クレジットに含まれませんが、このサードパーティ連携にも同じ免除が適用されるかは確認されていません。候補を採用した下書きを送信すると、通常どおり利用分に含まれます。`,
|
|
3491
4070
|
"featureLoading": "読み込み中…",
|
|
3492
4071
|
"featureLoadFailed": "読み込めませんでした。クリックして再試行してください",
|
|
3493
4072
|
"featureRetry": "再試行",
|
|
@@ -3522,7 +4101,7 @@ window.__ModuleLoader__.load({
|
|
|
3522
4101
|
"reasoningSummary_none": "オフ",
|
|
3523
4102
|
"subagentBackendTitle": "独立したサブタスク",
|
|
3524
4103
|
"subagentBackend_dsh": "DSH",
|
|
3525
|
-
"subagentBackend_codex": "Codex",
|
|
4104
|
+
"subagentBackend_codex": "Codex(購読)",
|
|
3526
4105
|
"subagentDefaultModel": "サブタスクのデフォルトモデル",
|
|
3527
4106
|
"subagentDefaultEffort": "サブタスクのデフォルト推論量",
|
|
3528
4107
|
"subagentFollowParent": "親に合わせる",
|
|
@@ -3692,12 +4271,11 @@ window.__ModuleLoader__.load({
|
|
|
3692
4271
|
"sketchReplayRecord": "作業動画を録画",
|
|
3693
4272
|
"sketchReplaySave": "動画を保存",
|
|
3694
4273
|
"sketchReplayAgain": "再生に戻る",
|
|
3695
|
-
"sketchReplaySaveHint": "「動画を保存」を選ぶと、保存先を指定できます。",
|
|
3696
4274
|
"sketchReplayStopRecording": "録画を停止",
|
|
3697
4275
|
"sketchReplayEmpty": "再生できる内容はまだありません。",
|
|
3698
4276
|
"sketchReplayUnsupported": "この環境では動画を録画できません。",
|
|
3699
4277
|
"sketchReplayFileSuffix": "作業過程",
|
|
3700
|
-
"sketchReplayHint": "
|
|
4278
|
+
"sketchReplayHint": "再生中は録画しません。このボタンを押すと WebM 動画を作成します。",
|
|
3701
4279
|
"sketchFiles": "下書き",
|
|
3702
4280
|
"sketchNew": "新しいスケッチ",
|
|
3703
4281
|
"sketchImport": "ファイルを読み込む",
|
|
@@ -3722,7 +4300,6 @@ window.__ModuleLoader__.load({
|
|
|
3722
4300
|
"forecastCompactChanging": "再推定中",
|
|
3723
4301
|
"forecastCompactStale": "古いデータ",
|
|
3724
4302
|
"imageMore": "その他の操作",
|
|
3725
|
-
"imageEditShort": "編集",
|
|
3726
4303
|
"forecastResolution": "使用量の変化が少ないため、まだ利用ペースを推定できません",
|
|
3727
4304
|
"forecastChanging": "使用状況が変化したため、再推定しています",
|
|
3728
4305
|
"forecastStale": "利用枠情報が古いため、更新を待っています",
|
|
@@ -3863,8 +4440,7 @@ window.__ModuleLoader__.load({
|
|
|
3863
4440
|
"speedFastAstraHint": "Astraで約2倍の速度。Creditsの消費量は増加します",
|
|
3864
4441
|
"speedUltrafast": "超高速 Beta",
|
|
3865
4442
|
"speedUltrafastHint": "アカウントのモデル一覧に表示される場合のみ利用できます(現時点ではPro 500)。最速ですが、利用枠とCreditsの消費が速くなります",
|
|
3866
|
-
"
|
|
3867
|
-
"imageEditReferenceGuide": "編集元の画像は「{sourceName}」、番号付きの位置参照画像は「{referenceName}」です。座標の原点は左上で、xは右方向、yは下方向に増加します。パーセンテージは画像全体を基準にします。両方の画像を確認し、画像編集ツールに参照として渡してください。以下の番号、位置、変更指示をすべてツールへのプロンプトに反映してください。編集元の該当箇所を編集してください。位置参照画像上の番号、点、引き出し線はガイドのみで、最終画像に含めないでください。いずれかの画像を読み取れない場合や位置が不明確な場合は、推測したり注釈を無視したりせず、問題を説明してください。",
|
|
4443
|
+
"imageEditReferenceGuide": "「{sourceName}」を編集してください。「{referenceName}」も番号の位置を示す参照として使い、仕上がりから印は省いてください。",
|
|
3868
4444
|
"nav": "Codex",
|
|
3869
4445
|
"title": "Codex サブスクリプション",
|
|
3870
4446
|
"savedAccounts": "保存済みアカウント",
|
|
@@ -4060,7 +4636,7 @@ window.__ModuleLoader__.load({
|
|
|
4060
4636
|
"settingsTab_create": "作成",
|
|
4061
4637
|
"settingsTab_more": "スマートフォン・その他",
|
|
4062
4638
|
"subtasksTitle": "サブタスク",
|
|
4063
|
-
"subagentBackendNeedsRuntime": "
|
|
4639
|
+
"subagentBackendNeedsRuntime": "DSH のプラグイン画面で「Codex サブエージェント」を導入してください。",
|
|
4064
4640
|
"imageShortcutNeedsImages": "まず画像の生成または編集を有効にしてください。",
|
|
4065
4641
|
"sketchSectionTitle": "スケッチボード",
|
|
4066
4642
|
"settingsReadonly": "現在、設定を変更できません(DSHでは書き込みが許可されていません)。",
|
|
@@ -4209,6 +4785,12 @@ window.__ModuleLoader__.load({
|
|
|
4209
4785
|
"runwayDays": "{days}日",
|
|
4210
4786
|
"runwayHours": "{hours}時間",
|
|
4211
4787
|
"runwayMinutes": "{minutes}分",
|
|
4788
|
+
"composerSettingsTitle": "入力欄",
|
|
4789
|
+
"defaultSpeedTitle": "既定の速度",
|
|
4790
|
+
"composerMenuCustom": "モデルメニューで速度を切り替え",
|
|
4791
|
+
"composerMenuHost": "DSH または他のプラグインのメニューを使用",
|
|
4792
|
+
"legacyModelPicker": "カスタムモデルメニュー",
|
|
4793
|
+
"legacyModelPickerHint": "入力欄のモデルメニューから速度と回答の詳しさを切り替えられます。オフにするとメニューを DSH や他のプラグインに任せます。購読機能は引き続き使えます。",
|
|
4212
4794
|
"speedTitle": "速度",
|
|
4213
4795
|
"speedStandard": "標準",
|
|
4214
4796
|
"speedStandardHint": "標準速度",
|
|
@@ -4258,7 +4840,6 @@ window.__ModuleLoader__.load({
|
|
|
4258
4840
|
"imageAnnotateHint": "画像をクリックして番号付きメモを追加",
|
|
4259
4841
|
"imageAnnotation": "メモ {value}",
|
|
4260
4842
|
"imageAnnotationPlaceholder": "この領域で変更したい内容を説明してください",
|
|
4261
|
-
"imageRegions": "領域ごとのメモ",
|
|
4262
4843
|
"imageCopyNotes": "メモをコピー",
|
|
4263
4844
|
"imageCopied": "コピーしました",
|
|
4264
4845
|
"imagePrevious": "前の画像",
|
|
@@ -4266,9 +4847,8 @@ window.__ModuleLoader__.load({
|
|
|
4266
4847
|
"imageZoomHint": "ホイールで拡大・縮小 · ドラッグで移動 · ダブルクリックで 100%",
|
|
4267
4848
|
"imageActual": "実際のサイズ",
|
|
4268
4849
|
"imageEditDefault": "この画像を編集してください。",
|
|
4269
|
-
"
|
|
4270
|
-
"
|
|
4271
|
-
"imageEditPreparing": "作曲欄に追加中…",
|
|
4850
|
+
"imageEdit": "入力欄に追加",
|
|
4851
|
+
"imageEditPreparing": "入力欄に追加中…",
|
|
4272
4852
|
"imageEditFailed": "引き継ぎに失敗しました。各マーカーにメモを追加し、作曲欄で画像を受け付けられることを確認してから、もう一度お試しください。",
|
|
4273
4853
|
"imageRemoveAnnotation": "メモを削除"
|
|
4274
4854
|
},
|
|
@@ -4363,14 +4943,15 @@ window.__ModuleLoader__.load({
|
|
|
4363
4943
|
"storageConfirm": "¿Borrar el historial local de previsiones de todas las cuentas con sesión iniciada? Se necesitarán nuevas muestras para generar previsiones. No se verán afectados el cupo de uso de la suscripción, las imágenes, los borradores ni los datos de inicio de sesión.",
|
|
4364
4944
|
"storageFailed": "No se pudo leer ni borrar la caché de previsiones. Inténtalo de nuevo.",
|
|
4365
4945
|
"runtimeIncompatible": "Se encontró un componente incompatible para las subtareas de Codex. Desinstálalo, reinicia DSH e instala la versión compatible.",
|
|
4366
|
-
"runtimeUpdateRequired": "
|
|
4946
|
+
"runtimeUpdateRequired": "Prepara la CLI para la suscripción.",
|
|
4367
4947
|
"runtimeManagedElsewhere": "Este componente lo gestiona el host u otra dependencia. Consulta la gestión de plugins de DSH; no se puede quitar desde aquí.",
|
|
4368
4948
|
"runtimeLoading": "Comprobando el componente…",
|
|
4369
4949
|
"runtimeRestart": "Se ha cambiado el componente. Reinicia DSH antes de usarlo.",
|
|
4370
4950
|
"runtime_installing": "Instalando mediante DSH…",
|
|
4371
4951
|
"runtime_removing": "Desinstalando mediante DSH…",
|
|
4372
4952
|
"runtime_applying": "Aplicando la instalación…",
|
|
4373
|
-
"runtimeInstall": "
|
|
4953
|
+
"runtimeInstall": "Preparar CLI",
|
|
4954
|
+
"runtimeOpenPlugins": "Abrir complementos de DSH",
|
|
4374
4955
|
"runtimeRemove": "Desinstalar componente",
|
|
4375
4956
|
"runtimeCancel": "Cancelar instalación",
|
|
4376
4957
|
"runtimeKeep": "Conservar",
|
|
@@ -4415,7 +4996,7 @@ window.__ModuleLoader__.load({
|
|
|
4415
4996
|
"connectorsHint": "Permite que cualquier modelo de DSH use las aplicaciones que hayas conectado en ChatGPT (GitHub, Gmail, Drive, Calendar y más). Conecta primero las aplicaciones en ChatGPT; el contenido que devuelvan terceros puede incluir instrucciones que los modelos no siguen.",
|
|
4416
4997
|
"connectorsMode_off": "Los conectores están desactivados; los modelos no pueden acceder a estas aplicaciones.",
|
|
4417
4998
|
"connectorsMode_read": "Los modelos solo pueden leer (buscar correos, leer archivos y consultar solicitudes de incorporación de cambios); nunca pueden modificar datos.",
|
|
4418
|
-
"connectorsMode_ask": "
|
|
4999
|
+
"connectorsMode_ask": "Las escrituras solicitan aprobación cuando la sesión actual lo permite. Consulta o cambia sus permisos desde el cuadro de entrada o con /permission.",
|
|
4419
5000
|
"connectorsMode_write": "Las acciones que modifican datos se ejecutan de inmediato, sin confirmación, y no se pueden deshacer. Úsalo con cuidado.",
|
|
4420
5001
|
"connectors_off": "Desactivados",
|
|
4421
5002
|
"connectors_read": "Solo lectura",
|
|
@@ -4426,7 +5007,7 @@ window.__ModuleLoader__.load({
|
|
|
4426
5007
|
"composerPredictions": "Predicciones de entrada",
|
|
4427
5008
|
"composerPredictionAccept": "Aceptar sugerencia",
|
|
4428
5009
|
"composerPredictionsShortHint": "Tab completa el borrador",
|
|
4429
|
-
"composerPredictionsHint":
|
|
5010
|
+
"composerPredictionsHint": `Después de completar un turno, los modelos de Codex compatibles (${composerPredictionModelNames}) sugieren el siguiente mensaje según la conversación actual, si el borrador está vacío. Pulsa Tab para completar el borrador sin enviarlo. Esto genera solicitudes de predicción adicionales. Las predicciones oficiales de Codex no cuentan para los límites de uso ni para los créditos; no se ha confirmado que la misma exención se aplique a esta integración de terceros. El envío de un borrador aceptado sí cuenta normalmente.`,
|
|
4430
5011
|
"featureLoading": "Cargando…",
|
|
4431
5012
|
"featureLoadFailed": "No se pudo cargar. Haz clic para reintentar",
|
|
4432
5013
|
"featureRetry": "Reintentar",
|
|
@@ -4461,7 +5042,7 @@ window.__ModuleLoader__.load({
|
|
|
4461
5042
|
"reasoningSummary_none": "Desactivado",
|
|
4462
5043
|
"subagentBackendTitle": "Subtareas independientes",
|
|
4463
5044
|
"subagentBackend_dsh": "DSH",
|
|
4464
|
-
"subagentBackend_codex": "Codex",
|
|
5045
|
+
"subagentBackend_codex": "Codex (suscripción)",
|
|
4465
5046
|
"subagentDefaultModel": "Modelo predeterminado para subtareas",
|
|
4466
5047
|
"subagentDefaultEffort": "Nivel de razonamiento predeterminado para subtareas",
|
|
4467
5048
|
"subagentFollowParent": "Seguir al agente principal",
|
|
@@ -4631,12 +5212,11 @@ window.__ModuleLoader__.load({
|
|
|
4631
5212
|
"sketchReplayRecord": "Grabar video del proceso",
|
|
4632
5213
|
"sketchReplaySave": "Guardar video",
|
|
4633
5214
|
"sketchReplayAgain": "Volver a la reproducción",
|
|
4634
|
-
"sketchReplaySaveHint": "Al elegir Guardar video, se te preguntará dónde guardar el archivo.",
|
|
4635
5215
|
"sketchReplayStopRecording": "Detener grabación",
|
|
4636
5216
|
"sketchReplayEmpty": "Aún no hay nada que reproducir.",
|
|
4637
5217
|
"sketchReplayUnsupported": "La grabación de video no está disponible aquí.",
|
|
4638
5218
|
"sketchReplayFileSuffix": "proceso",
|
|
4639
|
-
"sketchReplayHint": "
|
|
5219
|
+
"sketchReplayHint": "La reproducción no graba. Selecciona esta opción para crear un video WebM.",
|
|
4640
5220
|
"sketchFiles": "Borradores",
|
|
4641
5221
|
"sketchNew": "Nuevo boceto",
|
|
4642
5222
|
"sketchImport": "Importar archivo",
|
|
@@ -4661,7 +5241,6 @@ window.__ModuleLoader__.load({
|
|
|
4661
5241
|
"forecastCompactChanging": "Recalculando",
|
|
4662
5242
|
"forecastCompactStale": "Desactualizado",
|
|
4663
5243
|
"imageMore": "Más acciones",
|
|
4664
|
-
"imageEditShort": "Editar",
|
|
4665
5244
|
"forecastResolution": "Aún no hay suficientes cambios para estimar la tasa",
|
|
4666
5245
|
"forecastChanging": "Cambió la intensidad de uso; volviendo a estimar",
|
|
4667
5246
|
"forecastStale": "Los datos de cuota están desactualizados; esperando una actualización",
|
|
@@ -4802,8 +5381,7 @@ window.__ModuleLoader__.load({
|
|
|
4802
5381
|
"speedFastAstraHint": "Aproximadamente el doble de velocidad en Astra; mayor consumo de Credits",
|
|
4803
5382
|
"speedUltrafast": "Ultrarrápido (Beta)",
|
|
4804
5383
|
"speedUltrafastHint": "Nivel Ultrarrápido, visible solo si el catálogo de tu cuenta lo ofrece (actualmente Pro 500); máxima velocidad, consume más rápido la asignación de uso y los Credits",
|
|
4805
|
-
"
|
|
4806
|
-
"imageEditReferenceGuide": "La fuente limpia para esta edición es «{sourceName}»; «{referenceName}» es la referencia de ubicación numerada. Las coordenadas empiezan arriba a la izquierda; x aumenta hacia la derecha e y hacia abajo. Los porcentajes se refieren a la imagen completa. Examina ambas imágenes y pásalas como referencias a la herramienta de edición de imágenes. Conserva en la instrucción para la herramienta todos los números, posiciones y cambios solicitados a continuación. Edita el contenido correspondiente en la fuente limpia; los números, puntos y líneas guía de la referencia de ubicación son solo indicaciones y no deben aparecer en el resultado final. Si no se puede leer alguna imagen o una ubicación no está clara, explica el problema en lugar de adivinar o ignorar las anotaciones.",
|
|
5384
|
+
"imageEditReferenceGuide": "Edita «{sourceName}». Usa «{referenceName}» como referencia para ubicar los números y omite las marcas en el resultado.",
|
|
4807
5385
|
"nav": "Codex",
|
|
4808
5386
|
"title": "Suscripción de Codex",
|
|
4809
5387
|
"savedAccounts": "Cuentas guardadas",
|
|
@@ -4999,7 +5577,7 @@ window.__ModuleLoader__.load({
|
|
|
4999
5577
|
"settingsTab_create": "Crear",
|
|
5000
5578
|
"settingsTab_more": "Teléfono y más",
|
|
5001
5579
|
"subtasksTitle": "Subtareas",
|
|
5002
|
-
"subagentBackendNeedsRuntime": "
|
|
5580
|
+
"subagentBackendNeedsRuntime": "Instala el subagente de Codex desde los complementos de DSH.",
|
|
5003
5581
|
"imageShortcutNeedsImages": "Activa primero la generación o edición de imágenes.",
|
|
5004
5582
|
"sketchSectionTitle": "Tablero de bocetos",
|
|
5005
5583
|
"settingsReadonly": "Ahora no se puede cambiar la configuración (DSH no permite escrituras).",
|
|
@@ -5148,6 +5726,12 @@ window.__ModuleLoader__.load({
|
|
|
5148
5726
|
"runwayDays": "{days} d",
|
|
5149
5727
|
"runwayHours": "{hours} h",
|
|
5150
5728
|
"runwayMinutes": "{minutes} min",
|
|
5729
|
+
"composerSettingsTitle": "Cuadro de mensaje",
|
|
5730
|
+
"defaultSpeedTitle": "Velocidad predeterminada",
|
|
5731
|
+
"composerMenuCustom": "Control de velocidad en el menú de modelos",
|
|
5732
|
+
"composerMenuHost": "Menú de DSH u otro complemento",
|
|
5733
|
+
"legacyModelPicker": "Menú de modelos personalizado",
|
|
5734
|
+
"legacyModelPickerHint": "Cambia la velocidad y el nivel de detalle en el menú de modelos. Al desactivar esta opción, DSH u otro complemento se encarga del menú. Las funciones de suscripción siguen disponibles.",
|
|
5151
5735
|
"speedTitle": "Velocidad",
|
|
5152
5736
|
"speedStandard": "Estándar",
|
|
5153
5737
|
"speedStandardHint": "Velocidad estándar",
|
|
@@ -5197,7 +5781,6 @@ window.__ModuleLoader__.load({
|
|
|
5197
5781
|
"imageAnnotateHint": "Haz clic en la imagen para añadir una nota numerada",
|
|
5198
5782
|
"imageAnnotation": "Nota {value}",
|
|
5199
5783
|
"imageAnnotationPlaceholder": "Describe qué debería cambiar en esta zona",
|
|
5200
|
-
"imageRegions": "Notas por zona",
|
|
5201
5784
|
"imageCopyNotes": "Copiar notas",
|
|
5202
5785
|
"imageCopied": "Copiado",
|
|
5203
5786
|
"imagePrevious": "Imagen anterior",
|
|
@@ -5205,8 +5788,7 @@ window.__ModuleLoader__.load({
|
|
|
5205
5788
|
"imageZoomHint": "Rueda para ampliar · arrastra para desplazarte · doble clic para ver al 100%",
|
|
5206
5789
|
"imageActual": "Tamaño real",
|
|
5207
5790
|
"imageEditDefault": "Edita esta imagen.",
|
|
5208
|
-
"
|
|
5209
|
-
"imageEdit": "Continuar editando en el cuadro de entrada",
|
|
5791
|
+
"imageEdit": "Añadir al cuadro de entrada",
|
|
5210
5792
|
"imageEditPreparing": "Añadiendo al cuadro de entrada…",
|
|
5211
5793
|
"imageEditFailed": "No se pudo transferir. Añade una nota a cada marcador y asegúrate de que el cuadro de entrada admita imágenes; luego inténtalo de nuevo.",
|
|
5212
5794
|
"imageRemoveAnnotation": "Eliminar nota"
|
|
@@ -5302,14 +5884,15 @@ window.__ModuleLoader__.load({
|
|
|
5302
5884
|
"storageConfirm": "Effacer l’historique local des prévisions pour tous les comptes connectés ? De nouveaux échantillons seront nécessaires. Le quota de l’abonnement, les images, les brouillons et les données de connexion ne sont pas affectés.",
|
|
5303
5885
|
"storageFailed": "Impossible de lire ou d’effacer le cache des prévisions. Réessayez.",
|
|
5304
5886
|
"runtimeIncompatible": "Un composant de sous-tâches Codex incompatible a été détecté. Désinstallez-le, redémarrez DSH, puis installez la version prise en charge.",
|
|
5305
|
-
"runtimeUpdateRequired": "
|
|
5887
|
+
"runtimeUpdateRequired": "La CLI pour l’abonnement doit être préparée.",
|
|
5306
5888
|
"runtimeManagedElsewhere": "Ce composant est géré par l’hôte ou une autre dépendance. Vérifiez la gestion des plugins DSH ; il ne peut pas être supprimé ici.",
|
|
5307
5889
|
"runtimeLoading": "Vérification du composant…",
|
|
5308
5890
|
"runtimeRestart": "Composant modifié. Redémarrez DSH avant de l’utiliser.",
|
|
5309
5891
|
"runtime_installing": "Installation via DSH…",
|
|
5310
5892
|
"runtime_removing": "Désinstallation via DSH…",
|
|
5311
5893
|
"runtime_applying": "Application de l’installation…",
|
|
5312
|
-
"runtimeInstall": "
|
|
5894
|
+
"runtimeInstall": "Préparer la CLI",
|
|
5895
|
+
"runtimeOpenPlugins": "Ouvrir les extensions DSH",
|
|
5313
5896
|
"runtimeRemove": "Désinstaller le composant",
|
|
5314
5897
|
"runtimeCancel": "Annuler l’installation",
|
|
5315
5898
|
"runtimeKeep": "Conserver",
|
|
@@ -5354,7 +5937,7 @@ window.__ModuleLoader__.load({
|
|
|
5354
5937
|
"connectorsHint": "Permet à tous les modèles de DSH d’utiliser les applications connectées dans ChatGPT (GitHub, Gmail, Drive, Calendar et autres). Connectez d’abord les applications dans ChatGPT ; les contenus renvoyés par ces services sont des contenus tiers, et les modèles ne suivent pas les instructions qu’ils contiennent.",
|
|
5355
5938
|
"connectorsMode_off": "Les connecteurs sont désactivés ; les modèles ne peuvent pas accéder à ces applications.",
|
|
5356
5939
|
"connectorsMode_read": "Les modèles peuvent uniquement lire (rechercher des e-mails, lire des fichiers, consulter des demandes d’extraction) et ne modifient jamais les données.",
|
|
5357
|
-
"connectorsMode_ask": "
|
|
5940
|
+
"connectorsMode_ask": "Les écritures demandent une confirmation si la session le permet. Consultez ou modifiez ses autorisations dans la zone de saisie ou avec /permission.",
|
|
5358
5941
|
"connectorsMode_write": "Les actions de modification s’exécutent immédiatement sans confirmation et sont irréversibles ; utilisez ce mode avec prudence.",
|
|
5359
5942
|
"connectors_off": "Désactivés",
|
|
5360
5943
|
"connectors_read": "Lecture seule",
|
|
@@ -5365,7 +5948,7 @@ window.__ModuleLoader__.load({
|
|
|
5365
5948
|
"composerPredictions": "Suggestions de saisie",
|
|
5366
5949
|
"composerPredictionAccept": "Accepter la suggestion",
|
|
5367
5950
|
"composerPredictionsShortHint": "Tab complète le brouillon",
|
|
5368
|
-
"composerPredictionsHint":
|
|
5951
|
+
"composerPredictionsHint": `Après un tour terminé, les modèles Codex compatibles (${composerPredictionModelNames}) suggèrent votre prochain message à partir de la conversation en cours, si le brouillon est vide. Tab complète le brouillon sans l’envoyer. Cela génère des requêtes de prédiction supplémentaires. Les prédictions officielles de Codex ne sont pas comptabilisées dans les limites d’utilisation ni les crédits ; l’exemption pour cette intégration tierce n’est pas confirmée. L’envoi d’un brouillon accepté est comptabilisé normalement.`,
|
|
5369
5952
|
"featureLoading": "Chargement…",
|
|
5370
5953
|
"featureLoadFailed": "Échec du chargement. Cliquez pour réessayer",
|
|
5371
5954
|
"featureRetry": "Réessayer",
|
|
@@ -5400,7 +5983,7 @@ window.__ModuleLoader__.load({
|
|
|
5400
5983
|
"reasoningSummary_none": "Désactivé",
|
|
5401
5984
|
"subagentBackendTitle": "Sous-tâches indépendantes",
|
|
5402
5985
|
"subagentBackend_dsh": "DSH",
|
|
5403
|
-
"subagentBackend_codex": "Codex",
|
|
5986
|
+
"subagentBackend_codex": "Codex (abonnement)",
|
|
5404
5987
|
"subagentDefaultModel": "Modèle par défaut des sous-tâches",
|
|
5405
5988
|
"subagentDefaultEffort": "Intensité de raisonnement par défaut des sous-tâches",
|
|
5406
5989
|
"subagentFollowParent": "Suivre le parent",
|
|
@@ -5570,12 +6153,11 @@ window.__ModuleLoader__.load({
|
|
|
5570
6153
|
"sketchReplayRecord": "Enregistrer la vidéo du processus",
|
|
5571
6154
|
"sketchReplaySave": "Enregistrer la vidéo",
|
|
5572
6155
|
"sketchReplayAgain": "Retour à la lecture",
|
|
5573
|
-
"sketchReplaySaveHint": "En choisissant Enregistrer la vidéo, vous pourrez choisir où placer le fichier.",
|
|
5574
6156
|
"sketchReplayStopRecording": "Arrêter l’enregistrement",
|
|
5575
6157
|
"sketchReplayEmpty": "Rien à revoir pour le moment.",
|
|
5576
6158
|
"sketchReplayUnsupported": "L’enregistrement vidéo n’est pas disponible ici.",
|
|
5577
6159
|
"sketchReplayFileSuffix": "processus",
|
|
5578
|
-
"sketchReplayHint": "
|
|
6160
|
+
"sketchReplayHint": "La lecture ne lance aucun enregistrement. Sélectionnez cette option pour créer une vidéo WebM.",
|
|
5579
6161
|
"sketchFiles": "Brouillons",
|
|
5580
6162
|
"sketchNew": "Nouveau croquis",
|
|
5581
6163
|
"sketchImport": "Importer un fichier",
|
|
@@ -5600,7 +6182,6 @@ window.__ModuleLoader__.load({
|
|
|
5600
6182
|
"forecastCompactChanging": "Nouvelle estimation en cours",
|
|
5601
6183
|
"forecastCompactStale": "Obsolète",
|
|
5602
6184
|
"imageMore": "Autres actions",
|
|
5603
|
-
"imageEditShort": "Modifier",
|
|
5604
6185
|
"forecastResolution": "Évolution insuffisante pour estimer le rythme",
|
|
5605
6186
|
"forecastChanging": "L’intensité d’utilisation a changé ; nouvelle estimation en cours",
|
|
5606
6187
|
"forecastStale": "Données de quota obsolètes ; en attente d’une mise à jour",
|
|
@@ -5741,8 +6322,7 @@ window.__ModuleLoader__.load({
|
|
|
5741
6322
|
"speedFastAstraHint": "Environ 2x plus rapide sur Astra ; consommation de crédits supérieure",
|
|
5742
6323
|
"speedUltrafast": "Ultrarapide (bêta)",
|
|
5743
6324
|
"speedUltrafastHint": "Niveau ultrarapide, affiché uniquement si le catalogue de votre compte le propose (Pro 500 actuellement) ; le plus rapide, consomme plus vite l’allocation et les crédits",
|
|
5744
|
-
"
|
|
5745
|
-
"imageEditReferenceGuide": "La source propre à retoucher est « {sourceName} » ; « {referenceName} » est le repère d’emplacement numéroté. Les coordonnées partent du coin supérieur gauche ; x augmente vers la droite et y vers le bas. Les pourcentages se rapportent à l’image entière. Examinez les deux images et transmettez-les comme références à l’outil de retouche d’image. Conservez dans l’invite de l’outil chaque numéro, position et modification demandée ci-dessous. Modifiez le contenu correspondant dans la source propre ; les numéros, points et lignes de repère de l’image de référence ne sont que des indications et ne doivent pas apparaître dans le résultat final. Si l’une des images est illisible ou si un emplacement n’est pas clair, expliquez le problème au lieu de deviner ou d’ignorer les annotations.",
|
|
6325
|
+
"imageEditReferenceGuide": "Modifiez « {sourceName} ». Utilisez « {referenceName} » pour situer les zones numérotées et omettez les repères du résultat.",
|
|
5746
6326
|
"nav": "Codex",
|
|
5747
6327
|
"title": "Abonnement Codex",
|
|
5748
6328
|
"savedAccounts": "Comptes enregistrés",
|
|
@@ -5938,7 +6518,7 @@ window.__ModuleLoader__.load({
|
|
|
5938
6518
|
"settingsTab_create": "Créer",
|
|
5939
6519
|
"settingsTab_more": "Téléphone et plus",
|
|
5940
6520
|
"subtasksTitle": "Sous-tâches",
|
|
5941
|
-
"subagentBackendNeedsRuntime": "
|
|
6521
|
+
"subagentBackendNeedsRuntime": "Installez le sous-agent Codex depuis les extensions DSH.",
|
|
5942
6522
|
"imageShortcutNeedsImages": "Activez d’abord la génération ou la retouche d’images.",
|
|
5943
6523
|
"sketchSectionTitle": "Tableau de dessin",
|
|
5944
6524
|
"settingsReadonly": "Les paramètres ne peuvent pas être modifiés pour le moment (DSH n’autorise pas les écritures).",
|
|
@@ -6087,6 +6667,12 @@ window.__ModuleLoader__.load({
|
|
|
6087
6667
|
"runwayDays": "{days} j",
|
|
6088
6668
|
"runwayHours": "{hours} h",
|
|
6089
6669
|
"runwayMinutes": "{minutes} min",
|
|
6670
|
+
"composerSettingsTitle": "Zone de saisie",
|
|
6671
|
+
"defaultSpeedTitle": "Vitesse par défaut",
|
|
6672
|
+
"composerMenuCustom": "Réglage de la vitesse dans le menu des modèles",
|
|
6673
|
+
"composerMenuHost": "Menu fourni par DSH ou une autre extension",
|
|
6674
|
+
"legacyModelPicker": "Menu des modèles personnalisé",
|
|
6675
|
+
"legacyModelPickerHint": "Réglez la vitesse et le niveau de détail dans le menu des modèles. Si vous désactivez cette option, DSH ou une autre extension gère le menu. Les fonctions de l’abonnement restent disponibles.",
|
|
6090
6676
|
"speedTitle": "Vitesse",
|
|
6091
6677
|
"speedStandard": "Standard",
|
|
6092
6678
|
"speedStandardHint": "Vitesse standard",
|
|
@@ -6136,7 +6722,6 @@ window.__ModuleLoader__.load({
|
|
|
6136
6722
|
"imageAnnotateHint": "Cliquez sur l’image pour ajouter une note numérotée",
|
|
6137
6723
|
"imageAnnotation": "Note {value}",
|
|
6138
6724
|
"imageAnnotationPlaceholder": "Décrivez les modifications à apporter dans cette zone",
|
|
6139
|
-
"imageRegions": "Notes par zone",
|
|
6140
6725
|
"imageCopyNotes": "Copier les notes",
|
|
6141
6726
|
"imageCopied": "Copié",
|
|
6142
6727
|
"imagePrevious": "Image précédente",
|
|
@@ -6144,8 +6729,7 @@ window.__ModuleLoader__.load({
|
|
|
6144
6729
|
"imageZoomHint": "Molette pour zoomer · faites glisser pour déplacer · double-clic pour afficher à 100 %",
|
|
6145
6730
|
"imageActual": "Taille réelle",
|
|
6146
6731
|
"imageEditDefault": "Retoucher cette image.",
|
|
6147
|
-
"
|
|
6148
|
-
"imageEdit": "Continuer la modification dans le compositeur",
|
|
6732
|
+
"imageEdit": "Ajouter au champ de saisie",
|
|
6149
6733
|
"imageEditPreparing": "Ajout au compositeur…",
|
|
6150
6734
|
"imageEditFailed": "Le transfert a échoué. Ajoutez une note à chaque repère et vérifiez que le compositeur accepte les images, puis réessayez.",
|
|
6151
6735
|
"imageRemoveAnnotation": "Supprimer la note"
|
|
@@ -6241,14 +6825,15 @@ window.__ModuleLoader__.load({
|
|
|
6241
6825
|
"storageConfirm": "Den lokalen Prognoseverlauf für alle angemeldeten Konten löschen? Für Prognosen müssen neue Stichproben gesammelt werden. Abo-Nutzungskontingent, Bilder, Entwürfe und Anmeldedaten bleiben unberührt.",
|
|
6242
6826
|
"storageFailed": "Der Prognose-Cache konnte nicht gelesen oder geleert werden. Versuche es erneut.",
|
|
6243
6827
|
"runtimeIncompatible": "Eine inkompatible Codex-Teilaufgabenkomponente wurde gefunden. Deinstalliere sie, starte DSH neu und installiere dann die unterstützte Version.",
|
|
6244
|
-
"runtimeUpdateRequired": "Die
|
|
6828
|
+
"runtimeUpdateRequired": "Die CLI für das Abo muss vorbereitet werden.",
|
|
6245
6829
|
"runtimeManagedElsewhere": "Diese Komponente wird vom Host oder einer anderen Abhängigkeit verwaltet. Prüfe die DSH-Pluginverwaltung; sie kann hier nicht entfernt werden.",
|
|
6246
6830
|
"runtimeLoading": "Komponente wird geprüft…",
|
|
6247
6831
|
"runtimeRestart": "Komponente geändert. Starte DSH neu, bevor du sie verwendest.",
|
|
6248
6832
|
"runtime_installing": "Wird über DSH installiert…",
|
|
6249
6833
|
"runtime_removing": "Wird über DSH deinstalliert…",
|
|
6250
6834
|
"runtime_applying": "Installation wird angewendet…",
|
|
6251
|
-
"runtimeInstall": "
|
|
6835
|
+
"runtimeInstall": "CLI vorbereiten",
|
|
6836
|
+
"runtimeOpenPlugins": "DSH-Plugins öffnen",
|
|
6252
6837
|
"runtimeRemove": "Komponente deinstallieren",
|
|
6253
6838
|
"runtimeCancel": "Installation abbrechen",
|
|
6254
6839
|
"runtimeKeep": "Behalten",
|
|
@@ -6293,7 +6878,7 @@ window.__ModuleLoader__.load({
|
|
|
6293
6878
|
"connectorsHint": "Ermöglicht jedem Modell in DSH, die Apps zu verwenden, die du in ChatGPT verbunden hast (GitHub, Gmail, Drive, Kalender und mehr). Verbinde die Apps zuerst in ChatGPT. Inhalte, die von diesen Apps zurückgegeben werden, stammen von Drittanbietern; Modelle befolgen keine darin enthaltenen Anweisungen.",
|
|
6294
6879
|
"connectorsMode_off": "Connectoren sind deaktiviert; Modelle können diese Apps nicht sehen.",
|
|
6295
6880
|
"connectorsMode_read": "Modelle können nur lesen (E-Mails durchsuchen, Dateien lesen, Pull Requests nachschlagen) und keine Daten ändern.",
|
|
6296
|
-
"connectorsMode_ask": "
|
|
6881
|
+
"connectorsMode_ask": "Schreibaktionen fragen nach Zustimmung, wenn die aktuelle Sitzung das zulässt. Prüfe oder ändere die Sitzungsberechtigungen in der Eingabeleiste oder mit /permission.",
|
|
6297
6882
|
"connectorsMode_write": "Änderungen werden sofort und ohne Nachfrage ausgeführt und können nicht rückgängig gemacht werden. Verwende diese Option daher mit Vorsicht.",
|
|
6298
6883
|
"connectors_off": "Aus",
|
|
6299
6884
|
"connectors_read": "Nur lesen",
|
|
@@ -6304,7 +6889,7 @@ window.__ModuleLoader__.load({
|
|
|
6304
6889
|
"composerPredictions": "Eingabevorschläge",
|
|
6305
6890
|
"composerPredictionAccept": "Vorschlag übernehmen",
|
|
6306
6891
|
"composerPredictionsShortHint": "Tab fügt den Entwurf ein",
|
|
6307
|
-
"composerPredictionsHint":
|
|
6892
|
+
"composerPredictionsHint": `Unterstützte Codex-Modelle (${composerPredictionModelNames}) schlagen nach einem abgeschlossenen Gesprächsschritt deine nächste Nachricht auf Grundlage des aktuellen Gesprächs vor, sofern der Entwurf leer ist. Tab fügt den Entwurf ein, ohne ihn zu senden. Dafür werden zusätzliche Vorhersageanfragen gestellt. Offizielle Codex-Vorhersagen werden nicht auf Nutzungslimits oder Nutzungsguthaben angerechnet; ob dieselbe Ausnahme für diese Drittanbieterintegration gilt, ist nicht bestätigt. Ein gesendeter übernommener Entwurf wird normal angerechnet.`,
|
|
6308
6893
|
"featureLoading": "Wird geladen…",
|
|
6309
6894
|
"featureLoadFailed": "Laden fehlgeschlagen. Zum erneuten Versuchen klicken",
|
|
6310
6895
|
"featureRetry": "Erneut versuchen",
|
|
@@ -6339,7 +6924,7 @@ window.__ModuleLoader__.load({
|
|
|
6339
6924
|
"reasoningSummary_none": "Aus",
|
|
6340
6925
|
"subagentBackendTitle": "Unabhängige Teilaufgaben",
|
|
6341
6926
|
"subagentBackend_dsh": "DSH",
|
|
6342
|
-
"subagentBackend_codex": "Codex",
|
|
6927
|
+
"subagentBackend_codex": "Codex (Abo)",
|
|
6343
6928
|
"subagentDefaultModel": "Standardmodell für Teilaufgaben",
|
|
6344
6929
|
"subagentDefaultEffort": "Standardaufwand für Überlegungen bei Teilaufgaben",
|
|
6345
6930
|
"subagentFollowParent": "Einstellung des übergeordneten Agents übernehmen",
|
|
@@ -6509,12 +7094,11 @@ window.__ModuleLoader__.load({
|
|
|
6509
7094
|
"sketchReplayRecord": "Prozessvideo aufnehmen",
|
|
6510
7095
|
"sketchReplaySave": "Video speichern",
|
|
6511
7096
|
"sketchReplayAgain": "Zur Wiedergabe",
|
|
6512
|
-
"sketchReplaySaveHint": "Wenn du auf „Video speichern“ klickst, wirst du nach dem Speicherort gefragt.",
|
|
6513
7097
|
"sketchReplayStopRecording": "Aufnahme stoppen",
|
|
6514
7098
|
"sketchReplayEmpty": "Noch nichts zum Wiedergeben.",
|
|
6515
7099
|
"sketchReplayUnsupported": "Videoaufnahmen sind hier nicht verfügbar.",
|
|
6516
7100
|
"sketchReplayFileSuffix": "prozess",
|
|
6517
|
-
"sketchReplayHint": "
|
|
7101
|
+
"sketchReplayHint": "Die Wiedergabe zeichnet nichts auf. Klicken, um ein WebM-Video aufzunehmen.",
|
|
6518
7102
|
"sketchFiles": "Entwürfe",
|
|
6519
7103
|
"sketchNew": "Neue Skizze",
|
|
6520
7104
|
"sketchImport": "Datei importieren",
|
|
@@ -6539,7 +7123,6 @@ window.__ModuleLoader__.load({
|
|
|
6539
7123
|
"forecastCompactChanging": "Wird neu geschätzt",
|
|
6540
7124
|
"forecastCompactStale": "Veraltet",
|
|
6541
7125
|
"imageMore": "Weitere Aktionen",
|
|
6542
|
-
"imageEditShort": "Bearbeiten",
|
|
6543
7126
|
"forecastResolution": "Noch nicht genügend Änderungen, um die Nutzungsrate zu schätzen",
|
|
6544
7127
|
"forecastChanging": "Nutzungsintensität geändert; Schätzung wird neu berechnet",
|
|
6545
7128
|
"forecastStale": "Daten zum Nutzungskontingent sind veraltet; warte auf eine Aktualisierung",
|
|
@@ -6680,8 +7263,7 @@ window.__ModuleLoader__.load({
|
|
|
6680
7263
|
"speedFastAstraHint": "Auf Astra etwa 2× schneller; höherer Verbrauch an Credits",
|
|
6681
7264
|
"speedUltrafast": "Ultraschnell (Beta)",
|
|
6682
7265
|
"speedUltrafastHint": "Ultraschnelle Stufe, wird nur angezeigt, wenn sie im Kontokatalog verfügbar ist (derzeit Pro 500); am schnellsten, verbraucht Kontingent und Credits schneller",
|
|
6683
|
-
"
|
|
6684
|
-
"imageEditReferenceGuide": "Die unveränderte Vorlage für diese Bearbeitung ist „{sourceName}“; „{referenceName}“ ist die nummerierte Positionsreferenz. Koordinaten beginnen oben links; x nimmt nach rechts, y nach unten zu. Prozentwerte beziehen sich auf das gesamte Bild. Prüfe beide Bilder und übergib sie als Referenzen an das Bildbearbeitungswerkzeug. Übernimm alle Zahlen, Positionen und nachfolgenden Änderungswünsche in den Werkzeug-Prompt. Bearbeite den entsprechenden Inhalt in der unveränderten Vorlage; Zahlen, Punkte und Führungslinien in der Positionsreferenz dienen nur als Hinweise und dürfen im Endergebnis nicht erscheinen. Falls eines der Bilder nicht lesbar ist oder eine Position unklar bleibt, erkläre das Problem, statt zu raten oder Markierungen zu ignorieren.",
|
|
7266
|
+
"imageEditReferenceGuide": "Bearbeite „{sourceName}“. Nutze „{referenceName}“ nur als Referenz für die nummerierten Stellen. Lass die Markierungen im Ergebnis weg.",
|
|
6685
7267
|
"nav": "Codex",
|
|
6686
7268
|
"title": "Codex-Abo",
|
|
6687
7269
|
"savedAccounts": "Gespeicherte Konten",
|
|
@@ -6877,7 +7459,7 @@ window.__ModuleLoader__.load({
|
|
|
6877
7459
|
"settingsTab_create": "Erstellen",
|
|
6878
7460
|
"settingsTab_more": "Telefon & mehr",
|
|
6879
7461
|
"subtasksTitle": "Teilaufgaben",
|
|
6880
|
-
"subagentBackendNeedsRuntime": "
|
|
7462
|
+
"subagentBackendNeedsRuntime": "Installiere den Codex-Subagenten über DSH-Plugins.",
|
|
6881
7463
|
"imageShortcutNeedsImages": "Aktiviere zuerst die Bildgenerierung oder -bearbeitung.",
|
|
6882
7464
|
"sketchSectionTitle": "Skizzenfläche",
|
|
6883
7465
|
"settingsReadonly": "Einstellungen können derzeit nicht geändert werden (DSH erlaubt keine Schreibvorgänge).",
|
|
@@ -7026,6 +7608,12 @@ window.__ModuleLoader__.load({
|
|
|
7026
7608
|
"runwayDays": "{days} Tg.",
|
|
7027
7609
|
"runwayHours": "{hours} Std.",
|
|
7028
7610
|
"runwayMinutes": "{minutes} Min.",
|
|
7611
|
+
"composerSettingsTitle": "Eingabefeld",
|
|
7612
|
+
"defaultSpeedTitle": "Standardtempo",
|
|
7613
|
+
"composerMenuCustom": "Tempowahl im Modellmenü",
|
|
7614
|
+
"composerMenuHost": "Modellmenü von DSH oder einem anderen Plugin",
|
|
7615
|
+
"legacyModelPicker": "Benutzerdefiniertes Modellmenü",
|
|
7616
|
+
"legacyModelPickerHint": "Ändere Tempo und Antwortlänge direkt im Modellmenü. Wenn du die Option ausschaltest, übernimmt DSH oder ein anderes Plugin das Menü. Die Abofunktionen bleiben verfügbar.",
|
|
7029
7617
|
"speedTitle": "Geschwindigkeit",
|
|
7030
7618
|
"speedStandard": "Standard",
|
|
7031
7619
|
"speedStandardHint": "Standardgeschwindigkeit",
|
|
@@ -7075,7 +7663,6 @@ window.__ModuleLoader__.load({
|
|
|
7075
7663
|
"imageAnnotateHint": "Klicke auf das Bild, um eine nummerierte Notiz hinzuzufügen",
|
|
7076
7664
|
"imageAnnotation": "Notiz {value}",
|
|
7077
7665
|
"imageAnnotationPlaceholder": "Beschreibe, was in diesem Bereich geändert werden soll",
|
|
7078
|
-
"imageRegions": "Bereichsnotizen",
|
|
7079
7666
|
"imageCopyNotes": "Notizen kopieren",
|
|
7080
7667
|
"imageCopied": "Kopiert",
|
|
7081
7668
|
"imagePrevious": "Vorheriges Bild",
|
|
@@ -7083,8 +7670,7 @@ window.__ModuleLoader__.load({
|
|
|
7083
7670
|
"imageZoomHint": "Mausrad: zoomen · ziehen: verschieben · Doppelklick: 100 %",
|
|
7084
7671
|
"imageActual": "Originalgröße",
|
|
7085
7672
|
"imageEditDefault": "Dieses Bild bearbeiten.",
|
|
7086
|
-
"
|
|
7087
|
-
"imageEdit": "Weiter im Composer bearbeiten",
|
|
7673
|
+
"imageEdit": "Zur Eingabe hinzufügen",
|
|
7088
7674
|
"imageEditPreparing": "Wird zum Composer hinzugefügt…",
|
|
7089
7675
|
"imageEditFailed": "Übergabe fehlgeschlagen. Füge zu jeder Markierung eine Notiz hinzu und stelle sicher, dass der Composer Bilder akzeptiert. Versuche es dann erneut.",
|
|
7090
7676
|
"imageRemoveAnnotation": "Notiz entfernen"
|
|
@@ -7180,14 +7766,15 @@ window.__ModuleLoader__.load({
|
|
|
7180
7766
|
"storageConfirm": "Очистить локальную историю прогнозов для всех аккаунтов, в которых выполнен вход? Для прогнозов потребуется собрать новые данные. Лимит использования подписки, изображения, черновики и данные входа не затрагиваются.",
|
|
7181
7767
|
"storageFailed": "Не удалось прочитать или очистить кэш прогнозов. Повторите попытку.",
|
|
7182
7768
|
"runtimeIncompatible": "Обнаружен несовместимый компонент подзадач Codex. Удалите его, перезапустите DSH, затем установите поддерживаемую версию.",
|
|
7183
|
-
"runtimeUpdateRequired": "
|
|
7769
|
+
"runtimeUpdateRequired": "Нужно подготовить CLI для подписки.",
|
|
7184
7770
|
"runtimeManagedElsewhere": "Этот компонент управляется узлом или другой зависимостью. Проверьте управление плагинами DSH; отсюда его удалить нельзя.",
|
|
7185
7771
|
"runtimeLoading": "Проверка компонента…",
|
|
7186
7772
|
"runtimeRestart": "Компонент изменён. Перезапустите DSH перед использованием.",
|
|
7187
7773
|
"runtime_installing": "Установка через DSH…",
|
|
7188
7774
|
"runtime_removing": "Удаление через DSH…",
|
|
7189
7775
|
"runtime_applying": "Применение установки…",
|
|
7190
|
-
"runtimeInstall": "
|
|
7776
|
+
"runtimeInstall": "Подготовить CLI",
|
|
7777
|
+
"runtimeOpenPlugins": "Открыть плагины DSH",
|
|
7191
7778
|
"runtimeRemove": "Удалить компонент",
|
|
7192
7779
|
"runtimeCancel": "Отменить установку",
|
|
7193
7780
|
"runtimeKeep": "Оставить",
|
|
@@ -7232,7 +7819,7 @@ window.__ModuleLoader__.load({
|
|
|
7232
7819
|
"connectorsHint": "Позволяют любой модели в DSH использовать подключённые вами в ChatGPT приложения (GitHub, Gmail, Drive, Calendar и другие). Сначала подключите приложения в ChatGPT. Возвращаемые ими данные — это сторонний контент; модели не следуют инструкциям в нём.",
|
|
7233
7820
|
"connectorsMode_off": "Коннекторы выключены; модели не видят эти приложения.",
|
|
7234
7821
|
"connectorsMode_read": "Модели могут только читать данные (искать письма, читать файлы, просматривать запросы на слияние) и не могут ничего менять.",
|
|
7235
|
-
"connectorsMode_ask": "
|
|
7822
|
+
"connectorsMode_ask": "Запись запрашивает подтверждение, если текущий сеанс это допускает. Проверьте или измените разрешения сеанса в поле ввода или командой /permission.",
|
|
7236
7823
|
"connectorsMode_write": "Изменяющие действия выполняются сразу, без запроса подтверждения, и их нельзя отменить. Используйте этот режим с осторожностью.",
|
|
7237
7824
|
"connectors_off": "Выкл.",
|
|
7238
7825
|
"connectors_read": "Только чтение",
|
|
@@ -7243,7 +7830,7 @@ window.__ModuleLoader__.load({
|
|
|
7243
7830
|
"composerPredictions": "Предсказания ввода",
|
|
7244
7831
|
"composerPredictionAccept": "Принять предложение",
|
|
7245
7832
|
"composerPredictionsShortHint": "Tab вставляет в черновик",
|
|
7246
|
-
"composerPredictionsHint":
|
|
7833
|
+
"composerPredictionsHint": `После завершённого ответа поддерживаемые модели Codex (${composerPredictionModelNames}) предлагают следующее сообщение на основе текущей беседы, если черновик пуст. Нажмите Tab, чтобы вставить предложение в черновик, не отправляя его. При этом отправляются дополнительные запросы для предсказания. Официальные предсказания Codex не учитываются в лимитах использования или кредитах; неизвестно, действует ли такое же исключение для этой сторонней интеграции. Отправка принятого черновика учитывается как обычно.`,
|
|
7247
7834
|
"featureLoading": "Загрузка…",
|
|
7248
7835
|
"featureLoadFailed": "Не удалось загрузить. Нажмите, чтобы повторить попытку",
|
|
7249
7836
|
"featureRetry": "Повторить",
|
|
@@ -7278,7 +7865,7 @@ window.__ModuleLoader__.load({
|
|
|
7278
7865
|
"reasoningSummary_none": "Выкл.",
|
|
7279
7866
|
"subagentBackendTitle": "Независимые подзадачи",
|
|
7280
7867
|
"subagentBackend_dsh": "DSH",
|
|
7281
|
-
"subagentBackend_codex": "Codex",
|
|
7868
|
+
"subagentBackend_codex": "Codex (подписка)",
|
|
7282
7869
|
"subagentDefaultModel": "Модель подзадач по умолчанию",
|
|
7283
7870
|
"subagentDefaultEffort": "Уровень рассуждений подзадач по умолчанию",
|
|
7284
7871
|
"subagentFollowParent": "Как у родительской задачи",
|
|
@@ -7448,12 +8035,11 @@ window.__ModuleLoader__.load({
|
|
|
7448
8035
|
"sketchReplayRecord": "Записать видео процесса",
|
|
7449
8036
|
"sketchReplaySave": "Сохранить видео",
|
|
7450
8037
|
"sketchReplayAgain": "Вернуться к повтору",
|
|
7451
|
-
"sketchReplaySaveHint": "При выборе «Сохранить видео» система спросит, куда сохранить файл.",
|
|
7452
8038
|
"sketchReplayStopRecording": "Остановить запись",
|
|
7453
8039
|
"sketchReplayEmpty": "Пока нечего воспроизводить.",
|
|
7454
8040
|
"sketchReplayUnsupported": "Запись видео здесь недоступна.",
|
|
7455
8041
|
"sketchReplayFileSuffix": "процесс",
|
|
7456
|
-
"sketchReplayHint": "
|
|
8042
|
+
"sketchReplayHint": "При воспроизведении запись не ведётся. Нажмите, чтобы создать видео WebM.",
|
|
7457
8043
|
"sketchFiles": "Черновики",
|
|
7458
8044
|
"sketchNew": "Новый набросок",
|
|
7459
8045
|
"sketchImport": "Импортировать файл",
|
|
@@ -7478,7 +8064,6 @@ window.__ModuleLoader__.load({
|
|
|
7478
8064
|
"forecastCompactChanging": "Перерасчёт",
|
|
7479
8065
|
"forecastCompactStale": "Устарело",
|
|
7480
8066
|
"imageMore": "Другие действия",
|
|
7481
|
-
"imageEditShort": "Изменить",
|
|
7482
8067
|
"forecastResolution": "Пока недостаточно данных об изменениях для оценки темпа",
|
|
7483
8068
|
"forecastChanging": "Интенсивность использования изменилась; выполняется повторная оценка",
|
|
7484
8069
|
"forecastStale": "Данные о лимите использования устарели; ожидание обновления",
|
|
@@ -7619,8 +8204,7 @@ window.__ModuleLoader__.load({
|
|
|
7619
8204
|
"speedFastAstraHint": "Примерно в 2 раза быстрее на Astra; расход кредитов выше",
|
|
7620
8205
|
"speedUltrafast": "Сверхбыстрый (бета)",
|
|
7621
8206
|
"speedUltrafastHint": "Сверхбыстрый режим отображается, только если он доступен в списке моделей вашего аккаунта (сейчас — Pro 500); максимальная скорость, но лимит подписки и кредиты расходуются быстрее",
|
|
7622
|
-
"
|
|
7623
|
-
"imageEditReferenceGuide": "Исходник для редактирования — «{sourceName}»; «{referenceName}» — справочное изображение с нумерацией областей. Координаты отсчитываются от верхнего левого угла: x увеличивается вправо, y — вниз; проценты относятся ко всему изображению. Изучите оба изображения и передайте их инструменту редактирования изображений в качестве референсов. Сохраните все числа, расположение и запрошенные ниже изменения в запросе к инструменту. Изменяйте соответствующее содержимое в исходнике; числа, точки и направляющие линии на справочном изображении служат только подсказками и не должны попасть в итог. Если одно из изображений не читается или расположение области неясно, объясните проблему, а не угадывайте и не игнорируйте пометки.",
|
|
8207
|
+
"imageEditReferenceGuide": "Отредактируйте «{sourceName}». Используйте «{referenceName}» только для поиска пронумерованных мест и уберите метки из результата.",
|
|
7624
8208
|
"nav": "Codex",
|
|
7625
8209
|
"title": "Подписка Codex",
|
|
7626
8210
|
"savedAccounts": "Сохранённые аккаунты",
|
|
@@ -7816,7 +8400,7 @@ window.__ModuleLoader__.load({
|
|
|
7816
8400
|
"settingsTab_create": "Создание",
|
|
7817
8401
|
"settingsTab_more": "Телефон и другое",
|
|
7818
8402
|
"subtasksTitle": "Подзадачи",
|
|
7819
|
-
"subagentBackendNeedsRuntime": "
|
|
8403
|
+
"subagentBackendNeedsRuntime": "Установите субагент Codex в разделе плагинов DSH.",
|
|
7820
8404
|
"imageShortcutNeedsImages": "Сначала включите генерацию или редактирование изображений.",
|
|
7821
8405
|
"sketchSectionTitle": "Доска для набросков",
|
|
7822
8406
|
"settingsReadonly": "Сейчас настройки нельзя изменить (DSH запрещает запись).",
|
|
@@ -7965,6 +8549,12 @@ window.__ModuleLoader__.load({
|
|
|
7965
8549
|
"runwayDays": "{days} д",
|
|
7966
8550
|
"runwayHours": "{hours} ч",
|
|
7967
8551
|
"runwayMinutes": "{minutes} мин",
|
|
8552
|
+
"composerSettingsTitle": "Поле ввода",
|
|
8553
|
+
"defaultSpeedTitle": "Скорость по умолчанию",
|
|
8554
|
+
"composerMenuCustom": "Настройка скорости в меню моделей",
|
|
8555
|
+
"composerMenuHost": "Меню DSH или другого плагина",
|
|
8556
|
+
"legacyModelPicker": "Настраиваемое меню моделей",
|
|
8557
|
+
"legacyModelPickerHint": "Меняйте скорость и подробность ответа в меню моделей. Если выключить настройку, меню предоставит DSH или другой плагин. Функции подписки останутся доступны.",
|
|
7968
8558
|
"speedTitle": "Скорость",
|
|
7969
8559
|
"speedStandard": "Стандартная",
|
|
7970
8560
|
"speedStandardHint": "Стандартная скорость",
|
|
@@ -8014,7 +8604,6 @@ window.__ModuleLoader__.load({
|
|
|
8014
8604
|
"imageAnnotateHint": "Нажмите на изображение, чтобы добавить нумерованную заметку",
|
|
8015
8605
|
"imageAnnotation": "Заметка {value}",
|
|
8016
8606
|
"imageAnnotationPlaceholder": "Опишите, что нужно изменить в этой области",
|
|
8017
|
-
"imageRegions": "Пометки по областям",
|
|
8018
8607
|
"imageCopyNotes": "Скопировать пометки",
|
|
8019
8608
|
"imageCopied": "Скопировано",
|
|
8020
8609
|
"imagePrevious": "Предыдущее изображение",
|
|
@@ -8022,8 +8611,7 @@ window.__ModuleLoader__.load({
|
|
|
8022
8611
|
"imageZoomHint": "Колесо мыши — масштаб · перетаскивание — перемещение · двойное нажатие — 100%",
|
|
8023
8612
|
"imageActual": "Фактический размер",
|
|
8024
8613
|
"imageEditDefault": "Отредактировать это изображение.",
|
|
8025
|
-
"
|
|
8026
|
-
"imageEdit": "Продолжить редактирование в поле ввода",
|
|
8614
|
+
"imageEdit": "Добавить в поле ввода",
|
|
8027
8615
|
"imageEditPreparing": "Добавление в поле ввода…",
|
|
8028
8616
|
"imageEditFailed": "Не удалось передать изображение. Добавьте примечание к каждому маркеру и убедитесь, что поле ввода поддерживает изображения, затем повторите попытку.",
|
|
8029
8617
|
"imageRemoveAnnotation": "Удалить примечание"
|
|
@@ -8119,14 +8707,15 @@ window.__ModuleLoader__.load({
|
|
|
8119
8707
|
"storageConfirm": "Limpar o histórico local de previsões de todas as contas conectadas? Será necessário coletar novas amostras para gerar previsões. A cota de uso da assinatura, as imagens, os rascunhos e os dados de login não serão afetados.",
|
|
8120
8708
|
"storageFailed": "Não foi possível ler nem limpar o cache de previsões. Tente novamente.",
|
|
8121
8709
|
"runtimeIncompatible": "Foi encontrado um componente incompatível de subtarefas do Codex. Desinstale-o, reinicie o DSH e instale a versão compatível.",
|
|
8122
|
-
"runtimeUpdateRequired": "
|
|
8710
|
+
"runtimeUpdateRequired": "Prepare a CLI da assinatura.",
|
|
8123
8711
|
"runtimeManagedElsewhere": "Este componente é gerenciado pelo host ou por outra dependência. Consulte o gerenciamento de plugins do DSH; não é possível removê-lo aqui.",
|
|
8124
8712
|
"runtimeLoading": "Verificando componente…",
|
|
8125
8713
|
"runtimeRestart": "Componente alterado. Reinicie o DSH antes de usá-lo.",
|
|
8126
8714
|
"runtime_installing": "Instalando pelo DSH…",
|
|
8127
8715
|
"runtime_removing": "Desinstalando pelo DSH…",
|
|
8128
8716
|
"runtime_applying": "Aplicando instalação…",
|
|
8129
|
-
"runtimeInstall": "
|
|
8717
|
+
"runtimeInstall": "Preparar CLI",
|
|
8718
|
+
"runtimeOpenPlugins": "Abrir plugins do DSH",
|
|
8130
8719
|
"runtimeRemove": "Desinstalar componente",
|
|
8131
8720
|
"runtimeCancel": "Cancelar instalação",
|
|
8132
8721
|
"runtimeKeep": "Manter",
|
|
@@ -8171,7 +8760,7 @@ window.__ModuleLoader__.load({
|
|
|
8171
8760
|
"connectorsHint": "Permite que qualquer modelo no DSH use os aplicativos conectados ao ChatGPT (GitHub, Gmail, Drive, Calendar e outros). Conecte os aplicativos primeiro no ChatGPT; o conteúdo retornado por eles vem de terceiros, e os modelos não seguem instruções contidas nele.",
|
|
8172
8761
|
"connectorsMode_off": "Os conectores estão desativados; os modelos não podem acessar esses aplicativos.",
|
|
8173
8762
|
"connectorsMode_read": "Os modelos só podem ler (pesquisar e-mails, ler arquivos, consultar pull requests) e nunca alterar dados.",
|
|
8174
|
-
"connectorsMode_ask": "
|
|
8763
|
+
"connectorsMode_ask": "As ações de escrita pedem aprovação quando a sessão atual permite. Consulte ou altere suas permissões no campo de entrada ou com /permission.",
|
|
8175
8764
|
"connectorsMode_write": "As ações que alteram dados são executadas imediatamente, sem confirmação, e não podem ser desfeitas. Use com cuidado.",
|
|
8176
8765
|
"connectors_off": "Desativados",
|
|
8177
8766
|
"connectors_read": "Somente leitura",
|
|
@@ -8182,7 +8771,7 @@ window.__ModuleLoader__.load({
|
|
|
8182
8771
|
"composerPredictions": "Previsões de texto",
|
|
8183
8772
|
"composerPredictionAccept": "Aceitar sugestão",
|
|
8184
8773
|
"composerPredictionsShortHint": "Tab completa o rascunho",
|
|
8185
|
-
"composerPredictionsHint":
|
|
8774
|
+
"composerPredictionsHint": `Modelos Codex compatíveis (${composerPredictionModelNames}) sugerem sua próxima mensagem com base na conversa atual após a conclusão de uma resposta, quando o rascunho está vazio. Tab completa o rascunho sem enviá-lo. Isso gera solicitações adicionais de previsão. As previsões oficiais do Codex não contam para os limites de uso nem consomem créditos de uso; não está confirmado se a mesma isenção vale para esta integração de terceiros. O envio de um rascunho aceito conta normalmente.`,
|
|
8186
8775
|
"featureLoading": "Carregando…",
|
|
8187
8776
|
"featureLoadFailed": "Não foi possível carregar. Clique para tentar novamente",
|
|
8188
8777
|
"featureRetry": "Tentar novamente",
|
|
@@ -8217,7 +8806,7 @@ window.__ModuleLoader__.load({
|
|
|
8217
8806
|
"reasoningSummary_none": "Desativado",
|
|
8218
8807
|
"subagentBackendTitle": "Subtarefas independentes",
|
|
8219
8808
|
"subagentBackend_dsh": "DSH",
|
|
8220
|
-
"subagentBackend_codex": "Codex",
|
|
8809
|
+
"subagentBackend_codex": "Codex (assinatura)",
|
|
8221
8810
|
"subagentDefaultModel": "Modelo padrão para subtarefas",
|
|
8222
8811
|
"subagentDefaultEffort": "Nível padrão de raciocínio para subtarefas",
|
|
8223
8812
|
"subagentFollowParent": "Seguir o agente principal",
|
|
@@ -8387,12 +8976,11 @@ window.__ModuleLoader__.load({
|
|
|
8387
8976
|
"sketchReplayRecord": "Gravar vídeo do processo",
|
|
8388
8977
|
"sketchReplaySave": "Salvar vídeo",
|
|
8389
8978
|
"sketchReplayAgain": "Voltar à reprodução",
|
|
8390
|
-
"sketchReplaySaveHint": "Ao escolher Salvar vídeo, você poderá escolher onde guardar o arquivo.",
|
|
8391
8979
|
"sketchReplayStopRecording": "Parar gravação",
|
|
8392
8980
|
"sketchReplayEmpty": "Nada para reproduzir ainda.",
|
|
8393
8981
|
"sketchReplayUnsupported": "A gravação de vídeo não está disponível aqui.",
|
|
8394
8982
|
"sketchReplayFileSuffix": "processo",
|
|
8395
|
-
"sketchReplayHint": "
|
|
8983
|
+
"sketchReplayHint": "A reprodução não grava. Selecione esta opção para criar um vídeo WebM.",
|
|
8396
8984
|
"sketchFiles": "Rascunhos",
|
|
8397
8985
|
"sketchNew": "Novo esboço",
|
|
8398
8986
|
"sketchImport": "Importar arquivo",
|
|
@@ -8417,7 +9005,6 @@ window.__ModuleLoader__.load({
|
|
|
8417
9005
|
"forecastCompactChanging": "Reestimando",
|
|
8418
9006
|
"forecastCompactStale": "Desatualizado",
|
|
8419
9007
|
"imageMore": "Mais ações",
|
|
8420
|
-
"imageEditShort": "Editar",
|
|
8421
9008
|
"forecastResolution": "Ainda não houve mudança suficiente para estimar o ritmo",
|
|
8422
9009
|
"forecastChanging": "A intensidade de uso mudou; estimando novamente",
|
|
8423
9010
|
"forecastStale": "Dados da cota de uso desatualizados; aguardando atualização",
|
|
@@ -8558,8 +9145,7 @@ window.__ModuleLoader__.load({
|
|
|
8558
9145
|
"speedFastAstraHint": "Cerca de 2x mais velocidade no Astra; maior consumo de créditos",
|
|
8559
9146
|
"speedUltrafast": "Ultrarrápido Beta",
|
|
8560
9147
|
"speedUltrafastHint": "Nível ultrarrápido, exibido somente quando disponível no catálogo da sua conta (Pro 500 atualmente); é o mais rápido, mas consome a franquia e os créditos mais depressa",
|
|
8561
|
-
"
|
|
8562
|
-
"imageEditReferenceGuide": "A imagem original limpa para esta edição é \"{sourceName}\"; \"{referenceName}\" é a referência de localização numerada. As coordenadas começam no canto superior esquerdo; x aumenta para a direita e y para baixo; as porcentagens se referem à imagem inteira. Examine as duas imagens e envie ambas como referências à ferramenta de edição de imagens. Preserve no prompt da ferramenta todos os números, posições e alterações solicitadas abaixo. Edite o conteúdo correspondente na imagem original limpa; números, pontos e linhas-guia na referência de localização são apenas orientações e não devem aparecer no resultado final. Se alguma imagem não puder ser lida ou uma localização não estiver clara, explique o problema em vez de adivinhar ou ignorar as anotações.",
|
|
9148
|
+
"imageEditReferenceGuide": "Edite “{sourceName}”. Use “{referenceName}” como referência apenas para localizar os números e omita as marcas do resultado.",
|
|
8563
9149
|
"nav": "Codex",
|
|
8564
9150
|
"title": "Assinatura Codex",
|
|
8565
9151
|
"savedAccounts": "Contas salvas",
|
|
@@ -8755,7 +9341,7 @@ window.__ModuleLoader__.load({
|
|
|
8755
9341
|
"settingsTab_create": "Criar",
|
|
8756
9342
|
"settingsTab_more": "Celular e mais",
|
|
8757
9343
|
"subtasksTitle": "Subtarefas",
|
|
8758
|
-
"subagentBackendNeedsRuntime": "
|
|
9344
|
+
"subagentBackendNeedsRuntime": "Instale o subagente Codex na página de plugins do DSH.",
|
|
8759
9345
|
"imageShortcutNeedsImages": "Ative primeiro a geração ou edição de imagens.",
|
|
8760
9346
|
"sketchSectionTitle": "Quadro de desenho",
|
|
8761
9347
|
"settingsReadonly": "As configurações não podem ser alteradas agora (o DSH não permite gravações).",
|
|
@@ -8904,6 +9490,12 @@ window.__ModuleLoader__.load({
|
|
|
8904
9490
|
"runwayDays": "{days}d",
|
|
8905
9491
|
"runwayHours": "{hours}h",
|
|
8906
9492
|
"runwayMinutes": "{minutes}min",
|
|
9493
|
+
"composerSettingsTitle": "Caixa de mensagem",
|
|
9494
|
+
"defaultSpeedTitle": "Velocidade padrão",
|
|
9495
|
+
"composerMenuCustom": "Controle de velocidade no menu de modelos",
|
|
9496
|
+
"composerMenuHost": "Menu do DSH ou de outro plugin",
|
|
9497
|
+
"legacyModelPicker": "Menu de modelos personalizado",
|
|
9498
|
+
"legacyModelPickerHint": "Altere a velocidade e o nível de detalhe no menu de modelos. Ao desativar, o DSH ou outro plugin assume o menu. Os recursos da assinatura continuam disponíveis.",
|
|
8907
9499
|
"speedTitle": "Velocidade",
|
|
8908
9500
|
"speedStandard": "Padrão",
|
|
8909
9501
|
"speedStandardHint": "Velocidade padrão",
|
|
@@ -8953,7 +9545,6 @@ window.__ModuleLoader__.load({
|
|
|
8953
9545
|
"imageAnnotateHint": "Clique na imagem para adicionar uma nota numerada",
|
|
8954
9546
|
"imageAnnotation": "Nota {value}",
|
|
8955
9547
|
"imageAnnotationPlaceholder": "Descreva o que deve mudar nesta área",
|
|
8956
|
-
"imageRegions": "Notas por região",
|
|
8957
9548
|
"imageCopyNotes": "Copiar notas",
|
|
8958
9549
|
"imageCopied": "Copiado",
|
|
8959
9550
|
"imagePrevious": "Imagem anterior",
|
|
@@ -8961,8 +9552,7 @@ window.__ModuleLoader__.load({
|
|
|
8961
9552
|
"imageZoomHint": "Role para ampliar · arraste para mover · clique duplo para 100%",
|
|
8962
9553
|
"imageActual": "Tamanho real",
|
|
8963
9554
|
"imageEditDefault": "Edite esta imagem.",
|
|
8964
|
-
"
|
|
8965
|
-
"imageEdit": "Continuar editando no composer",
|
|
9555
|
+
"imageEdit": "Adicionar ao campo de entrada",
|
|
8966
9556
|
"imageEditPreparing": "Adicionando ao composer…",
|
|
8967
9557
|
"imageEditFailed": "Falha ao transferir. Adicione uma nota a cada marcador e confirme que o composer aceita imagens. Em seguida, tente novamente.",
|
|
8968
9558
|
"imageRemoveAnnotation": "Remover nota"
|
|
@@ -8971,6 +9561,45 @@ window.__ModuleLoader__.load({
|
|
|
8971
9561
|
//#endregion
|
|
8972
9562
|
//#region src/client-styles.js
|
|
8973
9563
|
const STYLE = `
|
|
9564
|
+
.codexModelSelect{position:relative;min-width:0}
|
|
9565
|
+
.codexModelSelectTrigger{display:flex;align-items:center;gap:4px;min-width:0;max-width:min(360px,45cqw);height:28px;padding:0 4px 0 8px;border:0;border-radius:var(--dsw-radius-sm);outline:0;background:transparent;color:var(--dsw-alias-label-secondary);font-size:13px;font-weight:500;line-height:20px;cursor:pointer}
|
|
9566
|
+
.codexModelSelectTrigger:hover:not(:disabled),.codexModelSelectTrigger[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover)}
|
|
9567
|
+
.codexModelSelectTrigger:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3)}
|
|
9568
|
+
.codexModelSelectTrigger:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}
|
|
9569
|
+
.codexModelSelectBolt{display:block;flex:none;width:14px;height:14px;color:var(--dsw-alias-label-primary)}
|
|
9570
|
+
.codexModelSelectLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
9571
|
+
.codexModelSelectEffort{flex:none;color:var(--dsw-alias-label-caption)}
|
|
9572
|
+
.codexModelSelectChevron{flex:none;color:var(--dsw-alias-label-caption);transition:transform 120ms}
|
|
9573
|
+
.codexModelSelectTrigger[aria-expanded=true] .codexModelSelectChevron{transform:rotate(180deg)}
|
|
9574
|
+
.codexModelSelectMenu{inset:auto;margin:0;--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);box-sizing:border-box;position:fixed;display:flex;flex-direction:column;width:max-content;min-width:min(240px,calc(100vw - 32px));max-width:min(420px,calc(100vw - 32px));max-height:min(360px,calc(100vh - 32px));padding:4px;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-layer-1));box-shadow:var(--dsw-elevation-prominent);color:var(--dsw-alias-label-primary);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);overflow:hidden}
|
|
9575
|
+
.codexModelSelectCell{box-sizing:border-box;display:flex;align-items:center;gap:6px;width:auto;min-width:100%;height:34px;padding:0 8px;border:none;border-radius:var(--dsw-radius-md);outline:none;background:transparent;color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px;text-align:left;cursor:pointer}
|
|
9576
|
+
.codexModelSelectCell:hover,.codexModelSelectCell:focus-visible{background:var(--dsw-alias-interactive-bg-hover)}
|
|
9577
|
+
.codexModelSelectCellLabel{flex:none;white-space:nowrap}
|
|
9578
|
+
.codexModelSelectCellValue{flex:auto;min-width:0;overflow:hidden;color:var(--dsw-alias-label-tertiary);text-align:right;text-overflow:ellipsis;white-space:nowrap}
|
|
9579
|
+
.codexModelSelectCellChevron{flex:none;width:12px;height:12px;color:var(--dsw-alias-menu-icon)}
|
|
9580
|
+
.codexModelSelectSearchRow{flex-shrink:0;position:relative;margin:2px 0 3px}
|
|
9581
|
+
.codexModelSelectSearchRow .codexModelSelectSearch{display:flex;height:auto;padding:5px 7px;border:0 solid transparent;border-radius:var(--dsw-radius-md);background:transparent}
|
|
9582
|
+
.codexModelSelectSearchRow .codexModelSelectSearch:focus-within{border-color:transparent}
|
|
9583
|
+
.codexModelSelectSearchRow .codexModelSelectSearch input{padding:0;font-size:12px;line-height:normal}
|
|
9584
|
+
.codexModelSelectSearchRow .codexModelSelectSearch input::placeholder{color:var(--dsw-alias-label-caption)}
|
|
9585
|
+
.codexModelSelectGroups{flex:1 1 auto;min-height:0;overflow-y:auto}
|
|
9586
|
+
.codexModelSelectGroupTitle{padding:5px 8px 3px;color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:500;line-height:18px}
|
|
9587
|
+
.codexModelSelectOption{box-sizing:border-box;display:flex;align-items:center;gap:6px;width:auto;min-width:100%;min-height:34px;padding:5px 7px;border:none;border-radius:var(--dsw-radius-md);outline:none;background:transparent;color:inherit;text-align:left;cursor:pointer}
|
|
9588
|
+
.codexModelSelectOption:hover:not(:disabled),.codexModelSelectOption:focus-visible{background:var(--dsw-alias-interactive-bg-hover)}
|
|
9589
|
+
.codexModelSelectOption:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}
|
|
9590
|
+
.codexModelSelectOptionCopy{display:flex;flex:1;flex-direction:column;min-width:0}
|
|
9591
|
+
.codexModelSelectOptionName{overflow:hidden;color:inherit;font-size:13px;font-weight:400;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
|
|
9592
|
+
.codexModelSelectOptionDescription{overflow:hidden;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:16px;text-overflow:ellipsis;white-space:nowrap}
|
|
9593
|
+
.codexModelSelectCheck{display:grid;place-items:center;flex:0 0 14px;color:var(--dsw-alias-label-primary)}
|
|
9594
|
+
.codexModelSelectCheck svg{width:14px;height:14px}
|
|
9595
|
+
.codexModelSelectStatus,.codexModelSelectEmpty{padding:8px;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}
|
|
9596
|
+
.codexModelSelectError,.codexModelSelectWarning{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;margin-bottom:3px;padding:6px 7px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary);font-size:11px;line-height:16px}
|
|
9597
|
+
.codexModelSelectWarning{background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-state-warn-label)}
|
|
9598
|
+
.codexModelSelectRetry{flex:none;padding:0;border:none;background:transparent;color:inherit;font:inherit;font-weight:600;cursor:pointer}
|
|
9599
|
+
.codexModelSelectSearchRow{margin:2px 0 0;border-bottom:1px solid var(--dsw-alias-border-l2)}
|
|
9600
|
+
.codexModelSelectGroups{scroll-padding-block:30px;padding-top:2px}
|
|
9601
|
+
.codexModelSelectGroups [class*=_heading_]{background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-module-platform))}
|
|
9602
|
+
|
|
8974
9603
|
.codexSubscription[data-embedded=true]{max-width:960px}
|
|
8975
9604
|
.codexQuotaSettingsLink{display:block;width:100%;margin-top:8px;padding:8px 0 0;border:0;border-top:1px solid var(--dsw-alias-border-l2);background:transparent;color:var(--dsw-alias-label-link,var(--dsw-alias-label-primary));font:inherit;text-align:start;cursor:pointer}
|
|
8976
9605
|
.codexQuotaSettingsLink:hover{text-decoration:underline}
|
|
@@ -9200,42 +9829,6 @@ window.__ModuleLoader__.load({
|
|
|
9200
9829
|
.codexComposerQuotaBar::-webkit-progress-bar{background:var(--dsw-alias-border-l3);border-radius:999px}
|
|
9201
9830
|
.codexComposerQuotaBar::-webkit-progress-value{background:var(--dsw-alias-label-secondary);border-radius:999px}
|
|
9202
9831
|
.codexComposerQuotaBar::-moz-progress-bar{background:var(--dsw-alias-label-secondary);border-radius:999px}
|
|
9203
|
-
.codexModelSelect{position:relative;min-width:0}
|
|
9204
|
-
.codexModelSelectTrigger{display:flex;align-items:center;gap:4px;min-width:0;max-width:min(360px,45cqw);height:28px;padding:0 4px 0 8px;border:0;border-radius:var(--dsw-radius-sm);outline:0;background:transparent;color:var(--dsw-alias-label-secondary);font-size:13px;font-weight:500;line-height:20px;cursor:pointer}
|
|
9205
|
-
.codexModelSelectTrigger:hover:not(:disabled),.codexModelSelectTrigger[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover)}
|
|
9206
|
-
.codexModelSelectTrigger:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3)}
|
|
9207
|
-
.codexModelSelectTrigger:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}
|
|
9208
|
-
.codexModelSelectBolt{display:block;flex:none;width:14px;height:14px;color:var(--dsw-alias-label-primary)}
|
|
9209
|
-
.codexModelSelectLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
9210
|
-
.codexModelSelectEffort{flex:none;color:var(--dsw-alias-label-caption)}
|
|
9211
|
-
.codexModelSelectChevron{flex:none;color:var(--dsw-alias-label-caption);transition:transform 120ms}
|
|
9212
|
-
.codexModelSelectTrigger[aria-expanded=true] .codexModelSelectChevron{transform:rotate(180deg)}
|
|
9213
|
-
/* The menu follows DSH's own model picker: one floating surface above the trigger, rows drill into the same surface. */
|
|
9214
|
-
.codexModelSelectMenu{z-index:1100;--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);box-sizing:border-box;position:fixed;display:flex;flex-direction:column;width:max-content;min-width:min(240px,100vw - 32px);max-width:min(420px,100vw - 32px);max-height:min(360px,100vh - 96px);padding:4px;border:0;box-shadow:var(--dsw-elevation-prominent);color:var(--dsw-alias-label-primary);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);overflow:hidden}
|
|
9215
|
-
.codexModelSelectCell{box-sizing:border-box;display:flex;align-items:center;gap:6px;width:auto;min-width:100%;height:34px;padding:0 8px;border:none;border-radius:var(--dsw-radius-md);outline:none;background:transparent;color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px;text-align:left;cursor:pointer}
|
|
9216
|
-
.codexModelSelectCell:hover,.codexModelSelectCell:focus-visible{background:var(--dsw-alias-interactive-bg-hover)}
|
|
9217
|
-
.codexModelSelectCellLabel{flex:none;white-space:nowrap}
|
|
9218
|
-
.codexModelSelectCellValue{flex:auto;min-width:0;overflow:hidden;color:var(--dsw-alias-label-tertiary);text-align:right;text-overflow:ellipsis;white-space:nowrap}
|
|
9219
|
-
.codexModelSelectCellChevron{flex:none;width:12px;height:12px;color:var(--dsw-alias-menu-icon)}
|
|
9220
|
-
.codexModelSelectSearchRow{flex-shrink:0;position:relative;margin:2px 0 3px}
|
|
9221
|
-
.codexModelSelectSearchRow .codexModelSelectSearch{display:flex;height:auto;padding:5px 7px;border:0 solid transparent;border-radius:var(--dsw-radius-md);background:transparent}
|
|
9222
|
-
.codexModelSelectSearchRow .codexModelSelectSearch:focus-within{border-color:transparent}
|
|
9223
|
-
.codexModelSelectSearchRow .codexModelSelectSearch input{padding:0;font-size:12px;line-height:normal}
|
|
9224
|
-
.codexModelSelectSearchRow .codexModelSelectSearch input::placeholder{color:var(--dsw-alias-label-caption)}
|
|
9225
|
-
.codexModelSelectGroups{flex:1 1 auto;min-height:0;overflow-y:auto}
|
|
9226
|
-
.codexModelSelectGroupTitle{padding:5px 8px 3px;color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:500;line-height:18px}
|
|
9227
|
-
.codexModelSelectOption{box-sizing:border-box;display:flex;align-items:center;gap:6px;width:auto;min-width:100%;min-height:34px;padding:5px 7px;border:none;border-radius:var(--dsw-radius-md);outline:none;background:transparent;color:inherit;text-align:left;cursor:pointer}
|
|
9228
|
-
.codexModelSelectOption:hover:not(:disabled),.codexModelSelectOption:focus-visible{background:var(--dsw-alias-interactive-bg-hover)}
|
|
9229
|
-
.codexModelSelectOption:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}
|
|
9230
|
-
.codexModelSelectOptionCopy{display:flex;flex:1;flex-direction:column;min-width:0}
|
|
9231
|
-
.codexModelSelectOptionName{overflow:hidden;color:inherit;font-size:13px;font-weight:400;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
|
|
9232
|
-
.codexModelSelectOptionDescription{overflow:hidden;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:16px;text-overflow:ellipsis;white-space:nowrap}
|
|
9233
|
-
.codexModelSelectCheck{display:grid;place-items:center;flex:0 0 14px;color:var(--dsw-alias-label-primary)}
|
|
9234
|
-
.codexModelSelectCheck svg{width:14px;height:14px}
|
|
9235
|
-
.codexModelSelectStatus,.codexModelSelectEmpty{padding:8px;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}
|
|
9236
|
-
.codexModelSelectError,.codexModelSelectWarning{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;margin-bottom:3px;padding:6px 7px;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary);font-size:11px;line-height:16px}
|
|
9237
|
-
.codexModelSelectWarning{background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-state-warn-label)}
|
|
9238
|
-
.codexModelSelectRetry{flex:none;padding:0;border:none;background:transparent;color:inherit;font:inherit;font-weight:600;cursor:pointer}
|
|
9239
9832
|
.codexImageTool{display:flex;flex-direction:column;gap:8px;margin:4px 0;color:var(--dsw-alias-label-primary)}
|
|
9240
9833
|
.codexImageToolRow{display:flex;align-items:center;min-height:24px;gap:8px;font-size:13px;line-height:20px}
|
|
9241
9834
|
.codexImageToolIcon{display:block;flex-shrink:0;width:16px;height:16px;color:var(--dsw-alias-label-secondary)}
|
|
@@ -9387,6 +9980,8 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
9387
9980
|
.codexFlat .codexSubscriptionPreferenceLabel small,.codexFlat .codexFeatureTitle small{line-height:16px;height:16px;display:inline-flex;align-items:center}
|
|
9388
9981
|
.codexFlat .codexSubscriptionPreferenceHint,.codexFlat .codexFeatureSummary{font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
|
|
9389
9982
|
.codexFlat .codexSubscriptionPreferenceCopy{gap:0}
|
|
9983
|
+
.codexFlat .codexComposerMenuGroup>.codexSubscriptionPreference:not(:last-child){border-bottom:0;padding-bottom:0}
|
|
9984
|
+
.codexFlat .codexComposerMenuOption{padding-inline-start:16px;min-height:40px}
|
|
9390
9985
|
.codexFlat .codexSubscriptionDivider{display:none}
|
|
9391
9986
|
.codexFlat .codexSubscriptionQuotaModes{background:var(--dsw-alias-bg-module-platform);border-radius:10px;padding:2px;gap:2px;min-height:32px;box-sizing:border-box}
|
|
9392
9987
|
.codexFlat .codexSubscriptionQuotaMode{min-height:28px;border-radius:8px;padding:0 10px;font-size:13px;white-space:nowrap}
|
|
@@ -9432,9 +10027,6 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
9432
10027
|
.codexDiagTable{width:100%;font-size:12px;text-align:left;border-spacing:0 6px}
|
|
9433
10028
|
.codexFlat .codexSubscriptionDiagnostics details.codexAdvancedFold{margin:0;padding:0;border-top:1px solid var(--dsw-alias-border-l2)}.codexFlat .codexSubscriptionDiagnostics details>summary{margin:0}
|
|
9434
10029
|
.codexDiagFindings>li{padding:0;margin:0}.codexDiagFindings{padding-left:0!important}
|
|
9435
|
-
/* The model search row stays put while the list scrolls under it: a hairline marks the edge so a partly scrolled group title reads as scrolled, not broken. */
|
|
9436
|
-
.codexModelSelectSearchRow{margin:2px 0 0;border-bottom:1px solid var(--dsw-alias-border-l2)}
|
|
9437
|
-
.codexModelSelectGroups{scroll-padding-block:30px;padding-top:2px}
|
|
9438
10030
|
.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}
|
|
9439
10031
|
.codexModelsHead>span{flex:1 1 auto;min-width:0;font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
|
|
9440
10032
|
.codexModelsHead>button{flex:0 0 auto;margin-left:auto;height:28px;min-height:28px;padding:0 10px;font-size:12px}
|
|
@@ -9442,7 +10034,6 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
9442
10034
|
.codexFlat .codexAdvancedFold>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:0;box-sizing:border-box}
|
|
9443
10035
|
.codexFlat .codexAdvancedInline>summary{min-height:44px}
|
|
9444
10036
|
.codexFlat details.codexAdvancedFold{display:block}
|
|
9445
|
-
.codexModelSelectGroups [class*=_heading_]{background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-module-platform))}
|
|
9446
10037
|
.codexFlat :is(button,summary,a):focus-visible,.codexFlat label:has(:focus-visible){outline-color:var(--dsw-alias-brand-primary,#3964fe)}
|
|
9447
10038
|
.codexSubscriptionPace{color:var(--dsw-alias-state-warn-label,#b45309)}
|
|
9448
10039
|
.codexSubscriptionAccountQuota{color:var(--dsw-alias-label-secondary)}
|
|
@@ -9453,6 +10044,40 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
9453
10044
|
.codexFeatureLoadNotice{position:fixed;z-index:1000;bottom:32px;left:50%;transform:translateX(-50%);padding:4px 8px;border:1px solid var(--dsw-alias-line-base,rgba(128,128,128,.2));border-radius:12px;background:var(--dsw-alias-bg-layer-1,#fff);box-shadow:0 4px 16px rgba(0,0,0,.08)}
|
|
9454
10045
|
@keyframes codexFeatureLoading{to{transform:rotate(360deg)}}
|
|
9455
10046
|
@media(prefers-reduced-motion:reduce){.codexFeatureLoadingIcon{animation:none}}
|
|
10047
|
+
.dcsButton{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:36px;padding:0 14px;border:0;border-radius:var(--dsw-radius-md,12px);background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:14px;line-height:22px;cursor:pointer}
|
|
10048
|
+
.dcsButton[data-size=sm]{height:28px;padding:0 10px;border-radius:var(--dsw-radius-sm,8px);font-size:12px;line-height:18px}
|
|
10049
|
+
.dcsButton[data-variant=outline]{box-shadow:inset 0 0 0 var(--dsh-hairline-width,.5px) var(--dsw-alias-border-l3)}
|
|
10050
|
+
.dcsButton[data-variant=primary]{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}
|
|
10051
|
+
.dcsButton:hover:not(:disabled),.dcsMenu button:hover:not(:disabled),.dcsMenu button:focus-visible{background:var(--dsw-alias-interactive-bg-hover)}
|
|
10052
|
+
.dcsButton[data-variant=primary]:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}
|
|
10053
|
+
.dcsButton:disabled,.dcsSwitch:disabled{cursor:default;opacity:.4}
|
|
10054
|
+
.dcsButtonIcon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px}
|
|
10055
|
+
.dcsInput{display:inline-flex;align-items:center;height:32px;padding:0 8px;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md,12px);background:var(--dsw-alias-bg-layer-1)}
|
|
10056
|
+
.dcsInput:focus-within{border-color:var(--dsw-alias-state-business-primary)}
|
|
10057
|
+
.dcsInput input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:14px}
|
|
10058
|
+
.dcsInput input::placeholder{color:var(--dsw-alias-label-dimmed)}
|
|
10059
|
+
.dcsSwitch{box-sizing:border-box;flex:none;width:36px;height:20px;padding:2px;border:0;border-radius:999px;corner-shape:round;background:var(--dsw-alias-border-l3);cursor:pointer}
|
|
10060
|
+
.dcsSwitch[aria-checked=true]{background:var(--dsw-alias-brand-primary)}
|
|
10061
|
+
.dcsSwitch>span{display:block;width:16px;height:16px;border-radius:50%;corner-shape:round;background:var(--dsw-alias-switch-thumb);transition:transform 120ms ease}
|
|
10062
|
+
.dcsSwitch[aria-checked=true]>span{transform:translateX(16px);background:var(--dsw-alias-label-primary-foreground)}
|
|
10063
|
+
.dcsButton:focus-visible,.dcsSwitch:focus-visible,.dcsLightbox button:focus-visible{outline:var(--dsw-focus-ring-width,2px) solid var(--dsw-alias-state-business-primary);outline-offset:2px}
|
|
10064
|
+
.dcsMenu,.dcsTooltip,.codexQuotaPopover[popover]{position:fixed;inset:auto;margin:0;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto}
|
|
10065
|
+
.dcsMenu{z-index:1100;min-width:min(144px,calc(100vw - 24px));width:max-content;padding:4px;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md,12px);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-layer-1));box-shadow:var(--dsw-elevation-prominent)}
|
|
10066
|
+
.dcsMenu button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:28px;padding:3px 8px;border:0;border-radius:var(--dsw-radius-sm,8px);background:transparent;color:inherit;text-align:start;font:inherit;font-size:13px;cursor:pointer}
|
|
10067
|
+
.dcsMenu button:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}
|
|
10068
|
+
.dcsMenu button>span{min-width:0;overflow-wrap:anywhere}
|
|
10069
|
+
.dcsMenu button svg{flex:none}
|
|
10070
|
+
.dcsMenuSeparator{height:1px;margin:4px;background:var(--dsw-alias-border-l2)}
|
|
10071
|
+
.dcsMenuLabel{padding:4px 8px;color:var(--dsw-alias-label-secondary);font-size:12px}
|
|
10072
|
+
.dcsMenuChildren{margin-inline-start:10px;padding-inline-start:4px;border-inline-start:1px solid var(--dsw-alias-border-l2)}
|
|
10073
|
+
.dcsTooltip{z-index:1100;width:max-content;max-width:min(360px,calc(100vw - 24px));padding:3px 7px;border:0;border-radius:var(--dsw-radius-sm,8px);background:var(--dsw-alias-tooltip-bg);color:var(--dsw-alias-toast-label);font-size:13px;line-height:20px;white-space:pre-line;overflow-wrap:anywhere;pointer-events:none}
|
|
10074
|
+
.dcsTooltip[data-pinned]{pointer-events:auto}
|
|
10075
|
+
.dcsLightbox{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:48px 24px 24px;border:0;overflow:hidden;background:transparent}
|
|
10076
|
+
.dcsLightbox[open]{display:grid;place-items:center}
|
|
10077
|
+
.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)}
|
|
10078
|
+
.dcsLightbox img{max-width:100%;max-height:100%;object-fit:contain}
|
|
10079
|
+
.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}
|
|
10080
|
+
@media(prefers-reduced-motion:reduce){.dcsSwitch>span{transition:none}}
|
|
9456
10081
|
`;
|
|
9457
10082
|
//#endregion
|
|
9458
10083
|
//#region src/image-edit-reference.js
|
|
@@ -9629,16 +10254,18 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
9629
10254
|
}) : [];
|
|
9630
10255
|
function normalizeSubscriptionViewerRequest(request) {
|
|
9631
10256
|
const items = (Array.isArray(request?.items) ? request.items : []).flatMap((item, position) => {
|
|
9632
|
-
|
|
10257
|
+
const src = typeof item?.src === "string" && item.src !== "" ? item.src : void 0;
|
|
10258
|
+
const reload = typeof item?.reload === "function" ? item.reload : void 0;
|
|
10259
|
+
if (src === void 0 && reload === void 0) return [];
|
|
9633
10260
|
return [{
|
|
9634
|
-
id: typeof item.id === "string" && item.id !== "" ? item.id :
|
|
9635
|
-
src
|
|
10261
|
+
id: typeof item.id === "string" && item.id !== "" ? item.id : src ?? `image-${position + 1}`,
|
|
10262
|
+
src,
|
|
9636
10263
|
name: typeof item.name === "string" && item.name !== "" ? item.name : `Image ${position + 1}`,
|
|
9637
10264
|
width: boundedNumber(item.width, void 0),
|
|
9638
10265
|
height: boundedNumber(item.height, void 0),
|
|
9639
10266
|
bytes: boundedNumber(item.bytes, void 0),
|
|
9640
10267
|
download: downloadOf(item.download),
|
|
9641
|
-
reload
|
|
10268
|
+
reload,
|
|
9642
10269
|
actions: actionsOf(item.actions)
|
|
9643
10270
|
}];
|
|
9644
10271
|
});
|
|
@@ -9727,17 +10354,8 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
9727
10354
|
close() {
|
|
9728
10355
|
if (this.#snapshot === void 0) return;
|
|
9729
10356
|
this.#cancelOperations();
|
|
9730
|
-
const opener = this.#snapshot.opener;
|
|
9731
10357
|
this.#snapshot = void 0;
|
|
9732
10358
|
this.#emit();
|
|
9733
|
-
if (typeof window === "undefined") opener?.focus();
|
|
9734
|
-
else {
|
|
9735
|
-
const focus = () => {
|
|
9736
|
-
opener?.focus();
|
|
9737
|
-
};
|
|
9738
|
-
if (typeof window.requestAnimationFrame === "function") window.requestAnimationFrame(focus);
|
|
9739
|
-
else focus();
|
|
9740
|
-
}
|
|
9741
10359
|
}
|
|
9742
10360
|
#emit() {
|
|
9743
10361
|
for (const listener of this.#listeners) listener();
|
|
@@ -10024,6 +10642,11 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10024
10642
|
"fast",
|
|
10025
10643
|
"ultrafast"
|
|
10026
10644
|
].includes(value) ? value : DEFAULT_SPEED_MODE;
|
|
10645
|
+
function effectiveCodexSpeedMode(mode, modelId, capability) {
|
|
10646
|
+
if (mode === "ultrafast" && capability?.supportsUltrafast === true) return mode;
|
|
10647
|
+
if (mode === "fast" && (capability?.supportsFast ?? supportsCodexFastMode(modelId))) return mode;
|
|
10648
|
+
return SPEED_MODE_STANDARD;
|
|
10649
|
+
}
|
|
10027
10650
|
const normalizeContextMode = (value) => [
|
|
10028
10651
|
"standard",
|
|
10029
10652
|
"extended",
|
|
@@ -10079,6 +10702,11 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10079
10702
|
default: "off",
|
|
10080
10703
|
error: "Invalid input prediction setting"
|
|
10081
10704
|
},
|
|
10705
|
+
composerModelPicker: {
|
|
10706
|
+
choices: ["dsh", "legacy"],
|
|
10707
|
+
default: "legacy",
|
|
10708
|
+
error: "Invalid composer model picker"
|
|
10709
|
+
},
|
|
10082
10710
|
connectionMode: {
|
|
10083
10711
|
choices: ["sse", "websocket"],
|
|
10084
10712
|
default: "sse",
|
|
@@ -10244,6 +10872,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10244
10872
|
reviewModel: value?.reviewModel === "official" ? "official" : "session",
|
|
10245
10873
|
remoteControl: value?.remoteControl === "on" ? "on" : "off",
|
|
10246
10874
|
composerPredictions: value?.composerPredictions === "on" ? "on" : "off",
|
|
10875
|
+
composerModelPicker: value?.composerModelPicker === "dsh" ? "dsh" : "legacy",
|
|
10247
10876
|
otherModels: value?.otherModels === "off" ? "off" : "on",
|
|
10248
10877
|
compactionMode: value?.compactionMode === "cloud" ? "cloud" : "dsh",
|
|
10249
10878
|
reasoningCache: normalizeReasoningCache(value?.reasoningCache),
|
|
@@ -10325,6 +10954,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10325
10954
|
reviewModel: value?.reviewModel === "official" ? "official" : "session",
|
|
10326
10955
|
remoteControl: value?.remoteControl === "on" ? "on" : "off",
|
|
10327
10956
|
composerPredictions: value?.composerPredictions === "on" ? "on" : "off",
|
|
10957
|
+
composerModelPicker: value?.composerModelPicker === "dsh" ? "dsh" : "legacy",
|
|
10328
10958
|
otherModels: value?.otherModels === "off" ? "off" : "on",
|
|
10329
10959
|
otherModels: value?.otherModels === "off" ? "off" : "on",
|
|
10330
10960
|
compactionMode: value?.compactionMode === "cloud" ? "cloud" : "dsh",
|
|
@@ -10980,7 +11610,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10980
11610
|
}
|
|
10981
11611
|
//#endregion
|
|
10982
11612
|
//#region src/version.js
|
|
10983
|
-
const PACKAGE_VERSION = "3.2.
|
|
11613
|
+
const PACKAGE_VERSION = "3.2.8";
|
|
10984
11614
|
//#endregion
|
|
10985
11615
|
//#region src/client-recovery.js
|
|
10986
11616
|
async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = endpoint === "usage" || endpoint.startsWith("usage/") ? 3e4 : 1e4) {
|
|
@@ -11224,6 +11854,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11224
11854
|
(0, react.useEffect)(() => () => clearTimeout(dismissTimer.current), []);
|
|
11225
11855
|
const id = (0, react.useId)();
|
|
11226
11856
|
const visible = open && quotaEnabled && !!quotas?.length;
|
|
11857
|
+
usePopover(panel, visible);
|
|
11227
11858
|
const position = useAnchoredPosition({
|
|
11228
11859
|
open: visible,
|
|
11229
11860
|
anchorRef: trigger,
|
|
@@ -11293,9 +11924,10 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11293
11924
|
preferenceSnapshot.quickQuotaMode !== "bar" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: `${percent(quota.remainingPercent)}%` }) : null
|
|
11294
11925
|
]
|
|
11295
11926
|
}, `${quota.windowSeconds}-${index}`))
|
|
11296
|
-
}), visible ?
|
|
11927
|
+
}), visible ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
11297
11928
|
ref: panel,
|
|
11298
11929
|
id,
|
|
11930
|
+
popover: "manual",
|
|
11299
11931
|
role: "dialog",
|
|
11300
11932
|
"aria-label": t("quotaDetails"),
|
|
11301
11933
|
className: "codexQuotaPopover",
|
|
@@ -11325,7 +11957,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11325
11957
|
},
|
|
11326
11958
|
children: t("openSubscriptionSettings")
|
|
11327
11959
|
}) : null]
|
|
11328
|
-
})
|
|
11960
|
+
}) : null] });
|
|
11329
11961
|
}
|
|
11330
11962
|
function shortWindow(seconds, t) {
|
|
11331
11963
|
if (Math.abs(seconds - 604800) < 60) return t("quotaShortWeek");
|
|
@@ -11362,20 +11994,13 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11362
11994
|
const ForwardRef = /*#__PURE__*/ react.forwardRef(BoltIcon);
|
|
11363
11995
|
//#endregion
|
|
11364
11996
|
//#region src/client-model-select.jsx
|
|
11365
|
-
|
|
11366
|
-
visibility: "hidden",
|
|
11367
|
-
left: 0,
|
|
11368
|
-
top: 0
|
|
11369
|
-
};
|
|
11370
|
-
function CodexModelSelect({ locked, available, directory, load, select, preference, t, renderSlot }) {
|
|
11997
|
+
function CodexModelSelect({ locked, available, directory, load, select, preference, t }) {
|
|
11371
11998
|
const state = (0, react.useSyncExternalStore)(directory.subscribe, directory.getSnapshot);
|
|
11372
11999
|
const preferenceSnapshot = usePreferenceSnapshot(preference);
|
|
11373
12000
|
const [open, setOpen] = (0, react.useState)(false);
|
|
11374
12001
|
const [pane, setPane] = (0, react.useState)("root");
|
|
11375
12002
|
const [query, setQuery] = (0, react.useState)("");
|
|
11376
|
-
const rootRef = (0, react.useRef)(null);
|
|
11377
12003
|
const menuRef = (0, react.useRef)(null);
|
|
11378
|
-
const [menuPos, setMenuPos] = (0, react.useState)(null);
|
|
11379
12004
|
const triggerRef = (0, react.useRef)(null);
|
|
11380
12005
|
const id = (0, react.useId)();
|
|
11381
12006
|
const choices = (0, react.useMemo)(() => state.groups.flatMap((group) => group.models.map((model) => ({
|
|
@@ -11410,26 +12035,6 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11410
12035
|
...effort.description === void 0 ? {} : { description: effort.description }
|
|
11411
12036
|
}))], [reasoning, t]);
|
|
11412
12037
|
const modelLabel = currentChoice?.model.name ?? t("selectModel");
|
|
11413
|
-
const labelOf = (group, model, placement, selected) => {
|
|
11414
|
-
if (typeof renderSlot !== "function") return model.name;
|
|
11415
|
-
try {
|
|
11416
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
11417
|
-
"data-provider-id": group.id,
|
|
11418
|
-
"data-model-id": model.id,
|
|
11419
|
-
children: renderSlot("conversation.input.model.label", {
|
|
11420
|
-
provider: {
|
|
11421
|
-
id: group.id,
|
|
11422
|
-
name: group.name
|
|
11423
|
-
},
|
|
11424
|
-
model,
|
|
11425
|
-
placement,
|
|
11426
|
-
selected
|
|
11427
|
-
}, { fallback: model.name })
|
|
11428
|
-
});
|
|
11429
|
-
} catch {
|
|
11430
|
-
return model.name;
|
|
11431
|
-
}
|
|
11432
|
-
};
|
|
11433
12038
|
const searchable = visibleGroups.reduce((total, group) => total + group.models.length, 0) > 4;
|
|
11434
12039
|
const needle = searchable ? query.trim().toLocaleLowerCase() : "";
|
|
11435
12040
|
const shownGroups = needle === "" ? visibleGroups : visibleGroups.map((group) => ({
|
|
@@ -11442,10 +12047,14 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11442
12047
|
].some((text) => typeof text === "string" && text.toLocaleLowerCase().includes(needle)))
|
|
11443
12048
|
})).filter((group) => group.models.length > 0);
|
|
11444
12049
|
const speedSupported = state.current?.provider === "openai-codex" && (preferenceSnapshot.fastModels?.includes(state.current?.model) ?? supportsCodexFastMode(state.current?.model));
|
|
11445
|
-
const speedWritable = preferenceSnapshot.status === "ready" && preferenceSnapshot.writable === true;
|
|
12050
|
+
const speedWritable = preferenceSnapshot.status === "ready" && preferenceSnapshot.writable === true && !preferenceSnapshot.saving;
|
|
11446
12051
|
const ultrafastSupported = state.current?.provider === "openai-codex" && (preferenceSnapshot.ultrafastModels ?? []).includes(state.current?.model);
|
|
11447
|
-
const
|
|
11448
|
-
|
|
12052
|
+
const effectiveSpeed = effectiveCodexSpeedMode(preferenceSnapshot.speedMode, state.current?.model, {
|
|
12053
|
+
supportsFast: speedSupported,
|
|
12054
|
+
supportsUltrafast: ultrafastSupported
|
|
12055
|
+
});
|
|
12056
|
+
const ultrafast = effectiveSpeed === SPEED_MODE_ULTRAFAST;
|
|
12057
|
+
const fast = effectiveSpeed !== SPEED_MODE_STANDARD;
|
|
11449
12058
|
const speedKey = ultrafast ? "speedUltrafast" : fast ? "speedFast" : "speedStandard";
|
|
11450
12059
|
const verbositySupported = state.current?.provider === "openai-codex" && preferenceSnapshot.verbosityModels.includes(state.current?.model);
|
|
11451
12060
|
const verbosityWritable = preferenceSnapshot.status === "ready" && preferenceSnapshot.writable === true;
|
|
@@ -11476,69 +12085,34 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11476
12085
|
(0, react.useEffect)(() => {
|
|
11477
12086
|
if (available) load();
|
|
11478
12087
|
}, [available, load]);
|
|
11479
|
-
(0, react.useEffect)(() => {
|
|
11480
|
-
if (!open) return void 0;
|
|
11481
|
-
const closeOutside = (event) => {
|
|
11482
|
-
if (!rootRef.current?.contains(event.target) && !menuRef.current?.contains(event.target)) {
|
|
11483
|
-
setOpen(false);
|
|
11484
|
-
setPane("root");
|
|
11485
|
-
setQuery("");
|
|
11486
|
-
}
|
|
11487
|
-
};
|
|
11488
|
-
document.addEventListener("mousedown", closeOutside);
|
|
11489
|
-
return () => document.removeEventListener("mousedown", closeOutside);
|
|
11490
|
-
}, [open]);
|
|
11491
|
-
(0, react.useLayoutEffect)(() => {
|
|
11492
|
-
if (!open) {
|
|
11493
|
-
setMenuPos(null);
|
|
11494
|
-
return;
|
|
11495
|
-
}
|
|
11496
|
-
const place = () => {
|
|
11497
|
-
const rect = triggerRef.current?.getBoundingClientRect();
|
|
11498
|
-
if (rect === void 0) return;
|
|
11499
|
-
const margin = 12;
|
|
11500
|
-
const width = menuRef.current?.offsetWidth ?? 0;
|
|
11501
|
-
const height = menuRef.current?.offsetHeight ?? 0;
|
|
11502
|
-
let left = rect.right - width;
|
|
11503
|
-
let top = rect.top - 8 - height;
|
|
11504
|
-
if (width > 0) left = Math.min(Math.max(left, margin), window.innerWidth - width - margin);
|
|
11505
|
-
if (height > 0) top = Math.min(Math.max(top, margin), window.innerHeight - height - margin);
|
|
11506
|
-
setMenuPos({
|
|
11507
|
-
left,
|
|
11508
|
-
top
|
|
11509
|
-
});
|
|
11510
|
-
};
|
|
11511
|
-
place();
|
|
11512
|
-
window.addEventListener("scroll", place, true);
|
|
11513
|
-
window.addEventListener("resize", place);
|
|
11514
|
-
return () => {
|
|
11515
|
-
window.removeEventListener("scroll", place, true);
|
|
11516
|
-
window.removeEventListener("resize", place);
|
|
11517
|
-
};
|
|
11518
|
-
}, [
|
|
11519
|
-
open,
|
|
11520
|
-
pane,
|
|
11521
|
-
state,
|
|
11522
|
-
query
|
|
11523
|
-
]);
|
|
11524
12088
|
(0, react.useEffect)(() => {
|
|
11525
12089
|
if (pane !== "model") setQuery("");
|
|
11526
12090
|
}, [pane]);
|
|
11527
12091
|
(0, react.useEffect)(() => {
|
|
11528
|
-
if (!speedSupported && pane === "speed") setPane("root");
|
|
12092
|
+
if (!speedSupported && !ultrafastSupported && pane === "speed") setPane("root");
|
|
11529
12093
|
if (!verbositySupported && pane === "verbosity") setPane("root");
|
|
11530
12094
|
}, [
|
|
11531
12095
|
pane,
|
|
11532
12096
|
speedSupported,
|
|
12097
|
+
ultrafastSupported,
|
|
11533
12098
|
verbositySupported
|
|
11534
12099
|
]);
|
|
11535
|
-
if (!available) return null;
|
|
11536
12100
|
const close = (restoreFocus = false) => {
|
|
11537
12101
|
setOpen(false);
|
|
11538
12102
|
setPane("root");
|
|
11539
12103
|
setQuery("");
|
|
11540
12104
|
if (restoreFocus) queueMicrotask(() => triggerRef.current?.focus());
|
|
11541
12105
|
};
|
|
12106
|
+
usePopover(menuRef, open);
|
|
12107
|
+
const menuPos = useAnchoredPosition({
|
|
12108
|
+
open,
|
|
12109
|
+
anchorRef: triggerRef,
|
|
12110
|
+
panelRef: menuRef,
|
|
12111
|
+
side: "top",
|
|
12112
|
+
align: "end"
|
|
12113
|
+
});
|
|
12114
|
+
useDismissOnOutsidePointer(triggerRef, open, close, menuRef);
|
|
12115
|
+
if (!available) return null;
|
|
11542
12116
|
const settleSelection = (accepted) => {
|
|
11543
12117
|
if (accepted) close(true);
|
|
11544
12118
|
};
|
|
@@ -11610,20 +12184,17 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11610
12184
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronRightOutline14, { className: "codexModelSelectCellChevron" })
|
|
11611
12185
|
]
|
|
11612
12186
|
});
|
|
11613
|
-
const group = (key, label, children) =>
|
|
12187
|
+
const group = (key, label, children) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
11614
12188
|
role: "group",
|
|
11615
12189
|
"aria-label": label,
|
|
11616
12190
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11617
12191
|
className: "codexModelSelectGroupTitle",
|
|
11618
12192
|
children: label
|
|
11619
12193
|
}), children]
|
|
11620
|
-
}, key) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MenuGroup, {
|
|
11621
|
-
label,
|
|
11622
|
-
children
|
|
11623
12194
|
}, key);
|
|
11624
12195
|
let content = null;
|
|
11625
12196
|
if (pane === "root") content = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
11626
|
-
cell("model", t("modelLabel"),
|
|
12197
|
+
cell("model", t("modelLabel"), modelLabel),
|
|
11627
12198
|
reasoning === void 0 ? null : cell("effort", t("effortLabel"), effortLabel),
|
|
11628
12199
|
(speedSupported || ultrafastSupported) && cell("speed", t("speedTitle"), t(speedKey)),
|
|
11629
12200
|
verbositySupported && cell("verbosity", t("verbosityTitle"), verbosityLabel)
|
|
@@ -11671,7 +12242,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11671
12242
|
children: t("modelsHidden")
|
|
11672
12243
|
}) : null, entry.models.map((model) => option({
|
|
11673
12244
|
key: model.id,
|
|
11674
|
-
label:
|
|
12245
|
+
label: model.name,
|
|
11675
12246
|
selected: state.current?.provider === entry.id && state.current.model === model.id,
|
|
11676
12247
|
disabled: busy,
|
|
11677
12248
|
onClick: () => chooseModel({
|
|
@@ -11734,11 +12305,15 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11734
12305
|
disabled: !verbosityWritable,
|
|
11735
12306
|
onClick: () => chooseVerbosity(item.id)
|
|
11736
12307
|
}));
|
|
11737
|
-
const menu = open ?
|
|
12308
|
+
const menu = open ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11738
12309
|
ref: menuRef,
|
|
11739
12310
|
id: `${id}-menu`,
|
|
11740
12311
|
className: "codexModelSelectMenu",
|
|
11741
|
-
|
|
12312
|
+
popover: "manual",
|
|
12313
|
+
style: {
|
|
12314
|
+
...menuPos,
|
|
12315
|
+
visibility: menuPos ? "visible" : "hidden"
|
|
12316
|
+
},
|
|
11742
12317
|
role: pane === "model" ? "group" : "menu",
|
|
11743
12318
|
"aria-label": t("modelMenuAria"),
|
|
11744
12319
|
"aria-busy": state.status === "loading" || busy,
|
|
@@ -11750,10 +12325,9 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11750
12325
|
else setPane("root");
|
|
11751
12326
|
},
|
|
11752
12327
|
children: content
|
|
11753
|
-
})
|
|
12328
|
+
}) : null;
|
|
11754
12329
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11755
12330
|
className: "codexModelSelect",
|
|
11756
|
-
ref: rootRef,
|
|
11757
12331
|
onKeyDown: (event) => {
|
|
11758
12332
|
if (event.key !== "Escape" || !open) return;
|
|
11759
12333
|
event.preventDefault();
|
|
@@ -11764,11 +12338,11 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11764
12338
|
ref: triggerRef,
|
|
11765
12339
|
type: "button",
|
|
11766
12340
|
className: "codexModelSelectTrigger",
|
|
11767
|
-
"aria-label": modelLabel,
|
|
12341
|
+
"aria-label": fast ? `${modelLabel} · ${t(speedKey)}` : modelLabel,
|
|
11768
12342
|
"aria-haspopup": "menu",
|
|
11769
12343
|
"aria-expanded": open,
|
|
11770
12344
|
"aria-controls": open ? `${id}-menu` : void 0,
|
|
11771
|
-
title: modelLabel,
|
|
12345
|
+
title: fast ? `${modelLabel} · ${t(speedKey)}` : modelLabel,
|
|
11772
12346
|
disabled: locked,
|
|
11773
12347
|
onClick: () => open ? close() : (setPane("root"), setOpen(true), load()),
|
|
11774
12348
|
children: [
|
|
@@ -11778,7 +12352,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11778
12352
|
}),
|
|
11779
12353
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
11780
12354
|
className: "codexModelSelectLabel",
|
|
11781
|
-
children:
|
|
12355
|
+
children: modelLabel
|
|
11782
12356
|
}),
|
|
11783
12357
|
effortLabel === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
11784
12358
|
className: "codexModelSelectEffort",
|
|
@@ -11790,22 +12364,46 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11790
12364
|
});
|
|
11791
12365
|
}
|
|
11792
12366
|
//#endregion
|
|
12367
|
+
//#region src/client-model-picker-slot.js
|
|
12368
|
+
const slot = "conversation.input.model";
|
|
12369
|
+
function registerLegacyModelPicker(slots, preference, props, component) {
|
|
12370
|
+
return slots.inject(slot, () => {
|
|
12371
|
+
let dispose;
|
|
12372
|
+
const sync = () => {
|
|
12373
|
+
const state = preference.getSnapshot();
|
|
12374
|
+
if (state.status === "ready" && state.composerModelPicker === "legacy") {
|
|
12375
|
+
if (!dispose && !slots.entries(slot).some((entry) => entry.options.priority === -1)) dispose = slots.register({
|
|
12376
|
+
name: slot,
|
|
12377
|
+
priority: -1,
|
|
12378
|
+
inject: props
|
|
12379
|
+
}, component);
|
|
12380
|
+
} else {
|
|
12381
|
+
dispose?.();
|
|
12382
|
+
dispose = void 0;
|
|
12383
|
+
}
|
|
12384
|
+
};
|
|
12385
|
+
sync();
|
|
12386
|
+
const unwatch = preference.subscribe(sync);
|
|
12387
|
+
return () => {
|
|
12388
|
+
unwatch();
|
|
12389
|
+
dispose?.();
|
|
12390
|
+
};
|
|
12391
|
+
});
|
|
12392
|
+
}
|
|
12393
|
+
//#endregion
|
|
11793
12394
|
//#region src/client-hint.jsx
|
|
11794
|
-
/** Keep the setting's own label as the help target
|
|
12395
|
+
/** Keep the setting's own label as the help target. */
|
|
11795
12396
|
function SettingsLabel({ children, description, as: Tag = "span", className = "codexSubscriptionPreferenceLabel", openOnClick = true, ...props }) {
|
|
11796
12397
|
const hasHelp = typeof description === "string" && description.trim() !== "";
|
|
11797
12398
|
const label = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
|
|
11798
12399
|
...props,
|
|
11799
12400
|
className: className || void 0,
|
|
11800
12401
|
tabIndex: hasHelp ? 0 : void 0,
|
|
11801
|
-
title: hasHelp && !Tooltip ? description : void 0,
|
|
11802
|
-
"aria-description": hasHelp && !Tooltip ? description : void 0,
|
|
11803
12402
|
children
|
|
11804
12403
|
});
|
|
11805
|
-
return hasHelp
|
|
12404
|
+
return hasHelp ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
|
|
11806
12405
|
label: description,
|
|
11807
12406
|
side: "bottom",
|
|
11808
|
-
portal: true,
|
|
11809
12407
|
maxWidth: 360,
|
|
11810
12408
|
openOnClick,
|
|
11811
12409
|
children: label
|
|
@@ -11819,38 +12417,6 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11819
12417
|
});
|
|
11820
12418
|
}
|
|
11821
12419
|
//#endregion
|
|
11822
|
-
//#region src/voice-barge-in.js
|
|
11823
|
-
/** Mute playback promptly, and restore it only after interrupted audio has drained. */
|
|
11824
|
-
function createBargeInGate({ interrupt, changed, speechMs = 120, silenceMs = 400, outputTailMs = 0 }) {
|
|
11825
|
-
let speakingAt, quietAt, outputQuietAt, suppressed = false, drained = false;
|
|
11826
|
-
let outputActiveAt;
|
|
11827
|
-
return { sample({ mic, output, now }) {
|
|
11828
|
-
if (mic > .12) {
|
|
11829
|
-
speakingAt ??= now;
|
|
11830
|
-
quietAt = void 0;
|
|
11831
|
-
} else {
|
|
11832
|
-
speakingAt = void 0;
|
|
11833
|
-
quietAt ??= now;
|
|
11834
|
-
}
|
|
11835
|
-
if (output < .025) outputQuietAt ??= now;
|
|
11836
|
-
else outputQuietAt = void 0;
|
|
11837
|
-
if (output > .025) outputActiveAt = now;
|
|
11838
|
-
const recentOutput = outputTailMs > 0 && outputActiveAt !== void 0 && now - outputActiveAt <= outputTailMs;
|
|
11839
|
-
if (!suppressed && speakingAt !== void 0 && now - speakingAt >= speechMs && (output > .025 || recentOutput)) {
|
|
11840
|
-
suppressed = true;
|
|
11841
|
-
drained = false;
|
|
11842
|
-
changed(true);
|
|
11843
|
-
interrupt();
|
|
11844
|
-
}
|
|
11845
|
-
if (suppressed && outputQuietAt !== void 0 && now - outputQuietAt >= 250) drained = true;
|
|
11846
|
-
if (suppressed && drained && quietAt !== void 0 && now - quietAt >= silenceMs) {
|
|
11847
|
-
suppressed = false;
|
|
11848
|
-
speakingAt = void 0;
|
|
11849
|
-
changed(false);
|
|
11850
|
-
}
|
|
11851
|
-
} };
|
|
11852
|
-
}
|
|
11853
|
-
//#endregion
|
|
11854
12420
|
//#region src/voice-problems.js
|
|
11855
12421
|
/** Stable user-facing categories; never render private server error strings. */
|
|
11856
12422
|
function voicePreviewProblem(code) {
|
|
@@ -11980,12 +12546,18 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11980
12546
|
for (const track of stream.getTracks()) connection.addTrack(track, stream);
|
|
11981
12547
|
connection.createDataChannel("oai-events");
|
|
11982
12548
|
let ended = false;
|
|
11983
|
-
|
|
12549
|
+
const notePlayback = (state) => {
|
|
12550
|
+
if (!ended) rpc.call(CHANNEL, "voice/playback", {
|
|
12551
|
+
sessionId,
|
|
12552
|
+
state
|
|
12553
|
+
}).catch(() => {});
|
|
12554
|
+
};
|
|
12555
|
+
sound.addEventListener("playing", () => notePlayback("playing"));
|
|
12556
|
+
sound.addEventListener("waiting", () => notePlayback("waiting"));
|
|
11984
12557
|
const end = async () => {
|
|
11985
12558
|
if (ended) return;
|
|
11986
12559
|
ended = true;
|
|
11987
12560
|
signal?.removeEventListener("abort", aborted);
|
|
11988
|
-
clearInterval(monitor);
|
|
11989
12561
|
if (context) chime(context, [740, 520]);
|
|
11990
12562
|
for (const track of stream.getTracks()) track.stop();
|
|
11991
12563
|
sound.srcObject = null;
|
|
@@ -12041,22 +12613,6 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12041
12613
|
assistant: /* @__PURE__ */ new Uint8Array(512)
|
|
12042
12614
|
};
|
|
12043
12615
|
let muted = false;
|
|
12044
|
-
let outputMuted = false;
|
|
12045
|
-
let interrupted = false;
|
|
12046
|
-
const gate = createBargeInGate({
|
|
12047
|
-
changed: (value) => {
|
|
12048
|
-
interrupted = value;
|
|
12049
|
-
sound.muted = outputMuted || interrupted;
|
|
12050
|
-
},
|
|
12051
|
-
interrupt: () => {
|
|
12052
|
-
rpc.call(CHANNEL, "voice/interrupt", { sessionId }).catch(() => {});
|
|
12053
|
-
}
|
|
12054
|
-
});
|
|
12055
|
-
if (context) monitor = setInterval(() => gate.sample({
|
|
12056
|
-
mic: muted ? 0 : loudness(analysers.mic, buffers.mic),
|
|
12057
|
-
output: loudness(analysers.assistant, buffers.assistant),
|
|
12058
|
-
now: performance.now()
|
|
12059
|
-
}), 30);
|
|
12060
12616
|
return {
|
|
12061
12617
|
stop: end,
|
|
12062
12618
|
isMuted: () => muted,
|
|
@@ -12064,10 +12620,9 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12064
12620
|
muted = value;
|
|
12065
12621
|
for (const track of stream.getAudioTracks()) track.enabled = !value;
|
|
12066
12622
|
},
|
|
12067
|
-
isOutputMuted: () =>
|
|
12623
|
+
isOutputMuted: () => sound.muted,
|
|
12068
12624
|
setOutputMuted: (value) => {
|
|
12069
|
-
|
|
12070
|
-
sound.muted = outputMuted || interrupted;
|
|
12625
|
+
sound.muted = value;
|
|
12071
12626
|
},
|
|
12072
12627
|
/** How loud the person (mic) and the model (voice) are right now, 0..1 each. */
|
|
12073
12628
|
levels: () => ({
|
|
@@ -13607,19 +14162,6 @@ void main(){
|
|
|
13607
14162
|
//#region src/image-preferences.jsx
|
|
13608
14163
|
function ImageChoice({ t, label, hint, title, value, text, items, disabled, onSelect }) {
|
|
13609
14164
|
const [open, setOpen] = (0, react.useState)(false);
|
|
13610
|
-
const anchor = (0, react.useRef)(null);
|
|
13611
|
-
(0, react.useEffect)(() => {
|
|
13612
|
-
if (!open || disabled) return;
|
|
13613
|
-
const escape = (event) => {
|
|
13614
|
-
if (event.key !== "Escape") return;
|
|
13615
|
-
event.preventDefault();
|
|
13616
|
-
event.stopPropagation();
|
|
13617
|
-
setOpen(false);
|
|
13618
|
-
anchor.current?.focus();
|
|
13619
|
-
};
|
|
13620
|
-
window.addEventListener("keydown", escape, true);
|
|
13621
|
-
return () => window.removeEventListener("keydown", escape, true);
|
|
13622
|
-
}, [open, disabled]);
|
|
13623
14165
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
13624
14166
|
className: "codexSubscriptionPreference codexImagePreference",
|
|
13625
14167
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -13640,10 +14182,7 @@ void main(){
|
|
|
13640
14182
|
onClose: () => setOpen(false),
|
|
13641
14183
|
align: "end",
|
|
13642
14184
|
side: "bottom",
|
|
13643
|
-
portal: true,
|
|
13644
|
-
compact: true,
|
|
13645
14185
|
anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
13646
|
-
ref: anchor,
|
|
13647
14186
|
type: "button",
|
|
13648
14187
|
className: "codexSubscriptionContextTrigger",
|
|
13649
14188
|
"aria-label": label,
|
|
@@ -13709,45 +14248,38 @@ void main(){
|
|
|
13709
14248
|
}
|
|
13710
14249
|
//#endregion
|
|
13711
14250
|
//#region src/client-runtime-management.jsx
|
|
13712
|
-
function RuntimeManagement({ rpc, preference, t, active = true }) {
|
|
14251
|
+
function RuntimeManagement({ rpc, preference, t, active = true, openSubagentBundle }) {
|
|
13713
14252
|
const [state, setState] = (0, react.useState)();
|
|
13714
14253
|
const [error, setError] = (0, react.useState)(false);
|
|
13715
14254
|
const [sending, setSending] = (0, react.useState)(false);
|
|
13716
|
-
const
|
|
13717
|
-
const
|
|
13718
|
-
|
|
13719
|
-
|
|
13720
|
-
|
|
13721
|
-
"applying"
|
|
13722
|
-
].includes(state?.phase);
|
|
13723
|
-
const read = async () => {
|
|
13724
|
-
try {
|
|
13725
|
-
const result = await rpc.call(CHANNEL, "runtime/status", {});
|
|
13726
|
-
if (!alive.current) return;
|
|
13727
|
-
if (!result.ok) {
|
|
13728
|
-
setError(true);
|
|
13729
|
-
return;
|
|
13730
|
-
}
|
|
13731
|
-
setState(result.value);
|
|
13732
|
-
setError(false);
|
|
13733
|
-
} catch {
|
|
13734
|
-
if (alive.current) setError(true);
|
|
13735
|
-
}
|
|
14255
|
+
const busy = ["installing", "removing"].includes(state?.phase);
|
|
14256
|
+
const apply = (result) => {
|
|
14257
|
+
if (!result.ok) throw Error("Runtime request failed");
|
|
14258
|
+
setState(result.value);
|
|
14259
|
+
setError(false);
|
|
13736
14260
|
};
|
|
13737
14261
|
(0, react.useEffect)(() => {
|
|
13738
|
-
|
|
14262
|
+
if (!active) return;
|
|
14263
|
+
let stopped = false;
|
|
14264
|
+
rpc.call(CHANNEL, "runtime/status", {}).then((result) => {
|
|
14265
|
+
if (!stopped) apply(result);
|
|
14266
|
+
}).catch(() => {
|
|
14267
|
+
if (!stopped) setError(true);
|
|
14268
|
+
});
|
|
13739
14269
|
return () => {
|
|
13740
|
-
|
|
14270
|
+
stopped = true;
|
|
13741
14271
|
};
|
|
13742
|
-
}, [rpc]);
|
|
13743
|
-
(0, react.useEffect)(() => {
|
|
13744
|
-
if (active) read();
|
|
13745
14272
|
}, [active, rpc]);
|
|
13746
14273
|
(0, react.useEffect)(() => {
|
|
13747
14274
|
if (!busy) return;
|
|
13748
14275
|
let stopped = false, timer;
|
|
13749
14276
|
const poll = async () => {
|
|
13750
|
-
|
|
14277
|
+
try {
|
|
14278
|
+
const result = await rpc.call(CHANNEL, "runtime/status", {});
|
|
14279
|
+
if (!stopped) apply(result);
|
|
14280
|
+
} catch {
|
|
14281
|
+
if (!stopped) setError(true);
|
|
14282
|
+
}
|
|
13751
14283
|
if (!stopped) timer = setTimeout(poll, 1500);
|
|
13752
14284
|
};
|
|
13753
14285
|
timer = setTimeout(poll, 1500);
|
|
@@ -13756,128 +14288,61 @@ void main(){
|
|
|
13756
14288
|
clearTimeout(timer);
|
|
13757
14289
|
};
|
|
13758
14290
|
}, [busy, rpc]);
|
|
14291
|
+
(0, react.useEffect)(() => {
|
|
14292
|
+
if (state?.phase === "done") preference.load();
|
|
14293
|
+
}, [state?.phase, preference]);
|
|
13759
14294
|
const act = async (action) => {
|
|
13760
|
-
if (sending) return;
|
|
13761
14295
|
setSending(true);
|
|
13762
14296
|
setError(false);
|
|
13763
|
-
setConfirm(false);
|
|
13764
14297
|
try {
|
|
13765
|
-
|
|
13766
|
-
if (!alive.current) return;
|
|
13767
|
-
if (!result.ok) {
|
|
13768
|
-
await read();
|
|
13769
|
-
if (alive.current) setError(true);
|
|
13770
|
-
return;
|
|
13771
|
-
}
|
|
13772
|
-
setState(result.value);
|
|
13773
|
-
if (action === "remove") preference.load();
|
|
14298
|
+
apply(await rpc.call(CHANNEL, `runtime/${action}`, {}));
|
|
13774
14299
|
} catch {
|
|
13775
|
-
|
|
14300
|
+
setError(true);
|
|
13776
14301
|
} finally {
|
|
13777
|
-
|
|
14302
|
+
setSending(false);
|
|
13778
14303
|
}
|
|
13779
14304
|
};
|
|
13780
|
-
(0,
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
children: [
|
|
13788
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
13789
|
-
className: "codexSubscriptionPreference",
|
|
13790
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
13791
|
-
role: "status",
|
|
13792
|
-
children: t(!state ? "runtimeLoading" : state.restartRequired ? "runtimeRestart" : busy ? `runtime_${state.phase}` : state.installed ? "subagentRuntimeInstalled" : !state.componentVersion ? "runtimeHostUnsupported" : state.cliUpdateRequired ? "runtimeUpdateRequired" : state.present ? state.removable ? "runtimeIncompatible" : "runtimeManagedElsewhere" : "subagentRuntimeMissing")
|
|
13793
|
-
}), state?.available && (state.present ? state.removable || repair : state.installable) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
13794
|
-
type: "button",
|
|
13795
|
-
variant: "outline",
|
|
13796
|
-
disabled: locked,
|
|
13797
|
-
onClick: () => state.present && !repair ? setConfirm(true) : void act("install"),
|
|
13798
|
-
children: t(state.present && !repair ? "runtimeRemove" : "runtimeInstall")
|
|
13799
|
-
}) : null]
|
|
13800
|
-
}),
|
|
13801
|
-
state?.active > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeActive") }) : null,
|
|
13802
|
-
busy && state.phase === "installing" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
13803
|
-
type: "button",
|
|
13804
|
-
variant: "outline",
|
|
13805
|
-
disabled: sending,
|
|
13806
|
-
onClick: () => {
|
|
13807
|
-
act("cancel");
|
|
13808
|
-
},
|
|
13809
|
-
children: t("runtimeCancel")
|
|
13810
|
-
}) : null,
|
|
13811
|
-
confirm ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
13812
|
-
role: "group",
|
|
13813
|
-
"aria-label": t("runtimeRemove"),
|
|
13814
|
-
children: [
|
|
13815
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeConfirm") }),
|
|
13816
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
13817
|
-
type: "button",
|
|
13818
|
-
variant: "outline",
|
|
13819
|
-
onClick: () => setConfirm(false),
|
|
13820
|
-
children: t("runtimeKeep")
|
|
13821
|
-
}),
|
|
13822
|
-
" ",
|
|
13823
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
13824
|
-
type: "button",
|
|
13825
|
-
variant: "outline",
|
|
13826
|
-
disabled: locked,
|
|
13827
|
-
onClick: () => {
|
|
13828
|
-
act("remove");
|
|
13829
|
-
},
|
|
13830
|
-
children: t("runtimeConfirmRemove")
|
|
13831
|
-
})
|
|
13832
|
-
]
|
|
13833
|
-
}) : null,
|
|
13834
|
-
error || state?.phase === "failed" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
13835
|
-
role: "alert",
|
|
13836
|
-
children: t(state?.error === "build-blocked" ? "runtimeBuildBlocked" : "runtimeFailed")
|
|
13837
|
-
}) : null,
|
|
13838
|
-
state?.phase === "cancelled" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
13839
|
-
role: "status",
|
|
13840
|
-
children: t("runtimeCancelled")
|
|
13841
|
-
}) : null,
|
|
13842
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", { children: [
|
|
13843
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
13844
|
-
as: "summary",
|
|
13845
|
-
className: "",
|
|
13846
|
-
openOnClick: false,
|
|
13847
|
-
description: [state?.installable ? t("runtimeInstallHint") : void 0, t("subagentRuntimeCacheHint")].filter(Boolean).join(" "),
|
|
13848
|
-
children: t("subagentRuntimeManage")
|
|
13849
|
-
}),
|
|
13850
|
-
state?.present && state.available && !state.removable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeManagedElsewhere") }) : null,
|
|
13851
|
-
!busy ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
13852
|
-
type: "button",
|
|
13853
|
-
variant: "outline",
|
|
13854
|
-
disabled: sending,
|
|
13855
|
-
onClick: () => {
|
|
13856
|
-
read();
|
|
13857
|
-
preference.load();
|
|
13858
|
-
},
|
|
13859
|
-
children: t("runtimeRefresh")
|
|
13860
|
-
}) : null,
|
|
13861
|
-
state && !state.available ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeUnavailable") }) : null,
|
|
13862
|
-
state?.available && !state.installable && !state.present ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeHostUnsupported") }) : null,
|
|
13863
|
-
state?.componentVersion ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("code", { children: ["@deepseek-ai/dsh-subagent-codex@", state.componentVersion] }) : null,
|
|
13864
|
-
state?.codexVersion ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("code", { children: ["@openai/codex@", state.codexVersion] }) : null,
|
|
13865
|
-
repair && state.removable && !busy ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
13866
|
-
type: "button",
|
|
13867
|
-
variant: "outline",
|
|
13868
|
-
disabled: locked,
|
|
13869
|
-
onClick: () => setConfirm(true),
|
|
13870
|
-
children: t("runtimeRemove")
|
|
13871
|
-
}) : null,
|
|
13872
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
13873
|
-
href: "https://github.com/WSL043/dsh-codex-subscription/blob/main/README.md#codex-subtask-runtime",
|
|
13874
|
-
target: "_blank",
|
|
13875
|
-
rel: "noreferrer",
|
|
13876
|
-
children: t("subagentRuntimePrepare")
|
|
13877
|
-
})
|
|
13878
|
-
] })
|
|
13879
|
-
]
|
|
14305
|
+
if (!state) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
14306
|
+
role: error ? "alert" : "status",
|
|
14307
|
+
children: t(error ? "runtimeFailed" : "runtimeLoading")
|
|
14308
|
+
});
|
|
14309
|
+
if (state.restartRequired) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
14310
|
+
role: "status",
|
|
14311
|
+
children: t("runtimeRestart")
|
|
13880
14312
|
});
|
|
14313
|
+
if (state.installed) return null;
|
|
14314
|
+
if (!state.componentVersion) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeHostUnsupported") });
|
|
14315
|
+
if (!state.adapterInstalled) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
14316
|
+
className: "codexSubscriptionPreference",
|
|
14317
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("subagentBackendNeedsRuntime") }), openSubagentBundle ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
14318
|
+
type: "button",
|
|
14319
|
+
variant: "outline",
|
|
14320
|
+
onClick: openSubagentBundle,
|
|
14321
|
+
children: t("runtimeOpenPlugins")
|
|
14322
|
+
}) : null]
|
|
14323
|
+
});
|
|
14324
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
14325
|
+
className: "codexSubscriptionPreference",
|
|
14326
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
14327
|
+
role: "status",
|
|
14328
|
+
children: t(busy ? `runtime_${state.phase}` : state.available ? "runtimeUpdateRequired" : "runtimeUnavailable")
|
|
14329
|
+
}), busy && state.phase === "installing" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
14330
|
+
type: "button",
|
|
14331
|
+
variant: "outline",
|
|
14332
|
+
disabled: sending,
|
|
14333
|
+
onClick: () => void act("cancel"),
|
|
14334
|
+
children: t("runtimeCancel")
|
|
14335
|
+
}) : !busy && state.installable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
14336
|
+
type: "button",
|
|
14337
|
+
variant: "outline",
|
|
14338
|
+
disabled: sending || state.active > 0,
|
|
14339
|
+
onClick: () => void act("install"),
|
|
14340
|
+
children: t("runtimeInstall")
|
|
14341
|
+
}) : null]
|
|
14342
|
+
}), error || state.phase === "failed" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
14343
|
+
role: "alert",
|
|
14344
|
+
children: t("runtimeFailed")
|
|
14345
|
+
}) : null] });
|
|
13881
14346
|
}
|
|
13882
14347
|
//#endregion
|
|
13883
14348
|
//#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js
|
|
@@ -16179,6 +16644,33 @@ void main(){
|
|
|
16179
16644
|
const timer = setInterval(() => setNow(Date.now()), 5e3);
|
|
16180
16645
|
return () => clearInterval(timer);
|
|
16181
16646
|
}, [pairing, active]);
|
|
16647
|
+
(0, react.useEffect)(() => {
|
|
16648
|
+
if (!on || !active || !pairing) return void 0;
|
|
16649
|
+
let stopped = false, timer;
|
|
16650
|
+
const poll = async () => {
|
|
16651
|
+
if (Date.now() >= pairing.expiresAt) return;
|
|
16652
|
+
try {
|
|
16653
|
+
const result = await rpc.call(CHANNEL, "remote/pair-status", { pairingCode: pairing.pairingCode });
|
|
16654
|
+
if (stopped) return;
|
|
16655
|
+
if (result.ok && result.value.claimed === true) {
|
|
16656
|
+
setPairing((current) => current === pairing ? void 0 : current);
|
|
16657
|
+
readClients();
|
|
16658
|
+
return;
|
|
16659
|
+
}
|
|
16660
|
+
} catch {}
|
|
16661
|
+
if (!stopped) timer = setTimeout(poll, 5e3);
|
|
16662
|
+
};
|
|
16663
|
+
timer = setTimeout(poll, 5e3);
|
|
16664
|
+
return () => {
|
|
16665
|
+
stopped = true;
|
|
16666
|
+
clearTimeout(timer);
|
|
16667
|
+
};
|
|
16668
|
+
}, [
|
|
16669
|
+
on,
|
|
16670
|
+
active,
|
|
16671
|
+
pairing,
|
|
16672
|
+
rpc
|
|
16673
|
+
]);
|
|
16182
16674
|
const pair = async () => {
|
|
16183
16675
|
if (busy) return;
|
|
16184
16676
|
setBusy(true);
|
|
@@ -17690,8 +18182,40 @@ void main(){
|
|
|
17690
18182
|
}, value))
|
|
17691
18183
|
});
|
|
17692
18184
|
}
|
|
18185
|
+
function SpeedPreference({ snapshot, preference, t }) {
|
|
18186
|
+
const ultrafast = snapshot.ultrafastModels.length > 0;
|
|
18187
|
+
const values = [SPEED_MODE_STANDARD, SPEED_MODE_FAST];
|
|
18188
|
+
if (ultrafast || snapshot.speedMode === "ultrafast") values.push(SPEED_MODE_ULTRAFAST);
|
|
18189
|
+
const labels = {
|
|
18190
|
+
[SPEED_MODE_STANDARD]: "speedStandard",
|
|
18191
|
+
[SPEED_MODE_FAST]: "speedFast",
|
|
18192
|
+
[SPEED_MODE_ULTRAFAST]: "speedUltrafast"
|
|
18193
|
+
};
|
|
18194
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18195
|
+
className: "codexSubscriptionPreference codexComposerMenuOption",
|
|
18196
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
18197
|
+
className: "codexSubscriptionPreferenceCopy",
|
|
18198
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
18199
|
+
description: ultrafast ? `${t("speedFastHint")} · ${t("speedUltrafastHint")}` : t("speedFastHint"),
|
|
18200
|
+
children: t("defaultSpeedTitle")
|
|
18201
|
+
})
|
|
18202
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
|
|
18203
|
+
snapshot,
|
|
18204
|
+
preference,
|
|
18205
|
+
field: SPEED_MODE_FIELD,
|
|
18206
|
+
values,
|
|
18207
|
+
name: "codex-speed",
|
|
18208
|
+
label: t("defaultSpeedTitle"),
|
|
18209
|
+
text: (value) => t(labels[value]),
|
|
18210
|
+
disabledValues: ultrafast ? [] : [SPEED_MODE_ULTRAFAST]
|
|
18211
|
+
})]
|
|
18212
|
+
});
|
|
18213
|
+
}
|
|
17693
18214
|
function ModelsPage({ preference, t, defaultModel }) {
|
|
17694
18215
|
const snapshot = usePreferenceSnapshot(preference);
|
|
18216
|
+
const loaded = snapshot.status === "ready";
|
|
18217
|
+
const customMenu = snapshot.composerModelPicker === "legacy";
|
|
18218
|
+
const menuDisabled = !ready(snapshot) || snapshot.saving;
|
|
17695
18219
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
17696
18220
|
className: "codexSubscriptionAdvancedPreferences",
|
|
17697
18221
|
children: [
|
|
@@ -17712,12 +18236,45 @@ void main(){
|
|
|
17712
18236
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(DefaultReasoningEffortPreference, {
|
|
17713
18237
|
preference,
|
|
17714
18238
|
t
|
|
18239
|
+
})
|
|
18240
|
+
]
|
|
18241
|
+
}),
|
|
18242
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
18243
|
+
className: "codexSubscriptionCard codexSubscriptionPreferencesCard",
|
|
18244
|
+
"aria-label": t("composerSettingsTitle"),
|
|
18245
|
+
children: [
|
|
18246
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t("composerSettingsTitle") }),
|
|
18247
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18248
|
+
className: "codexComposerMenuGroup",
|
|
18249
|
+
role: "group",
|
|
18250
|
+
"aria-label": t("legacyModelPicker"),
|
|
18251
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18252
|
+
className: "codexSubscriptionPreference",
|
|
18253
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18254
|
+
className: "codexSubscriptionPreferenceCopy",
|
|
18255
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
18256
|
+
description: t("legacyModelPickerHint"),
|
|
18257
|
+
children: t("legacyModelPicker")
|
|
18258
|
+
}), loaded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(customMenu ? "composerMenuCustom" : "composerMenuHost") }) : null]
|
|
18259
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
|
|
18260
|
+
checked: customMenu,
|
|
18261
|
+
label: t("legacyModelPicker"),
|
|
18262
|
+
disabled: menuDisabled,
|
|
18263
|
+
onChange: (on) => {
|
|
18264
|
+
preference.set({ composerModelPicker: on ? "legacy" : "dsh" });
|
|
18265
|
+
}
|
|
18266
|
+
})]
|
|
18267
|
+
}), loaded && customMenu ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SpeedPreference, {
|
|
18268
|
+
snapshot,
|
|
18269
|
+
preference,
|
|
18270
|
+
t
|
|
18271
|
+
}) : null]
|
|
17715
18272
|
}),
|
|
17716
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
18273
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(PickerModelsPreference, {
|
|
17717
18274
|
preference,
|
|
17718
18275
|
t
|
|
17719
18276
|
}),
|
|
17720
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
18277
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComposerPredictionPreference, {
|
|
17721
18278
|
preference,
|
|
17722
18279
|
t
|
|
17723
18280
|
})
|
|
@@ -17875,7 +18432,7 @@ void main(){
|
|
|
17875
18432
|
model !== "" && !selected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t("subagentDefaultUnavailable") }) : null
|
|
17876
18433
|
] });
|
|
17877
18434
|
}
|
|
17878
|
-
function ToolsPage({ preference, rpc, t, active = true }) {
|
|
18435
|
+
function ToolsPage({ preference, rpc, t, active = true, openSubagentBundle }) {
|
|
17879
18436
|
const snapshot = usePreferenceSnapshot(preference);
|
|
17880
18437
|
const writable = ready(snapshot);
|
|
17881
18438
|
const others = snapshot.otherModels !== "off";
|
|
@@ -17930,7 +18487,7 @@ void main(){
|
|
|
17930
18487
|
" ",
|
|
17931
18488
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
17932
18489
|
]
|
|
17933
|
-
}), !snapshot.subagentBackendAvailable
|
|
18490
|
+
}), !snapshot.subagentBackendAvailable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t("subagentBackendUnavailable") }) : null]
|
|
17934
18491
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
|
|
17935
18492
|
snapshot,
|
|
17936
18493
|
preference,
|
|
@@ -17948,12 +18505,13 @@ void main(){
|
|
|
17948
18505
|
snapshot,
|
|
17949
18506
|
t
|
|
17950
18507
|
}) : null,
|
|
17951
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RuntimeManagement, {
|
|
18508
|
+
snapshot.subagentBackendAvailable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RuntimeManagement, {
|
|
17952
18509
|
rpc,
|
|
17953
18510
|
preference,
|
|
17954
18511
|
t,
|
|
17955
|
-
active
|
|
17956
|
-
|
|
18512
|
+
active,
|
|
18513
|
+
openSubagentBundle
|
|
18514
|
+
}) : null
|
|
17957
18515
|
]
|
|
17958
18516
|
})
|
|
17959
18517
|
]
|
|
@@ -19625,12 +20183,20 @@ void main(){
|
|
|
19625
20183
|
(0, react.useLayoutEffect)(() => {
|
|
19626
20184
|
const node = ref.current;
|
|
19627
20185
|
if (!node) return void 0;
|
|
20186
|
+
const canvas = document.createElement("canvas");
|
|
20187
|
+
canvas.width = canvas.height = 1;
|
|
20188
|
+
const context = canvas.getContext("2d", { willReadFrequently: true });
|
|
20189
|
+
if (!context) return void 0;
|
|
19628
20190
|
const paint = () => {
|
|
19629
20191
|
let parent = node.parentElement;
|
|
19630
20192
|
while (parent) {
|
|
19631
|
-
const
|
|
19632
|
-
|
|
19633
|
-
|
|
20193
|
+
const colour = getComputedStyle(parent).backgroundColor;
|
|
20194
|
+
context.clearRect(0, 0, 1, 1);
|
|
20195
|
+
context.fillStyle = colour;
|
|
20196
|
+
context.fillRect(0, 0, 1, 1);
|
|
20197
|
+
const [red, green, blue, alpha] = context.getImageData(0, 0, 1, 1).data;
|
|
20198
|
+
if (alpha > 0) {
|
|
20199
|
+
node.style.background = `rgb(${red}, ${green}, ${blue})`;
|
|
19634
20200
|
return;
|
|
19635
20201
|
}
|
|
19636
20202
|
parent = parent.parentElement;
|
|
@@ -19709,7 +20275,7 @@ void main(){
|
|
|
19709
20275
|
function ProjectAction({ subject, t }) {
|
|
19710
20276
|
return subject?.kind === "bundle" && subject.pkg.name === "dsh-codex-subscription" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProjectLink, { t }) : null;
|
|
19711
20277
|
}
|
|
19712
|
-
function CodexSection({ preference, rpc, accountStatus, t, diagnostics, defaultModel, embedded = false }) {
|
|
20278
|
+
function CodexSection({ preference, rpc, accountStatus, t, diagnostics, defaultModel, embedded = false, close, openSubagentBundle }) {
|
|
19713
20279
|
const [tab, setTab] = (0, react.useState)("start");
|
|
19714
20280
|
const [visited, setVisited] = (0, react.useState)(() => /* @__PURE__ */ new Set(["start"]));
|
|
19715
20281
|
const selectTab = (value) => {
|
|
@@ -19736,6 +20302,7 @@ void main(){
|
|
|
19736
20302
|
};
|
|
19737
20303
|
(0, react.useEffect)(() => {
|
|
19738
20304
|
accountStatus.load();
|
|
20305
|
+
preference.load();
|
|
19739
20306
|
preference.refreshModels();
|
|
19740
20307
|
}, [accountStatus, preference]);
|
|
19741
20308
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
@@ -19838,7 +20405,11 @@ void main(){
|
|
|
19838
20405
|
preference,
|
|
19839
20406
|
rpc,
|
|
19840
20407
|
t,
|
|
19841
|
-
active: tab === "tools"
|
|
20408
|
+
active: tab === "tools",
|
|
20409
|
+
openSubagentBundle: openSubagentBundle && (() => {
|
|
20410
|
+
openSubagentBundle();
|
|
20411
|
+
if (!embedded) close?.();
|
|
20412
|
+
})
|
|
19842
20413
|
})
|
|
19843
20414
|
}),
|
|
19844
20415
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -19872,22 +20443,50 @@ void main(){
|
|
|
19872
20443
|
//#endregion
|
|
19873
20444
|
//#region src/subscription-settings-entry.js
|
|
19874
20445
|
const PACKAGE_NAME = "dsh-codex-subscription";
|
|
20446
|
+
const OFFICIAL_SUBAGENT_BUNDLE = "@deepseek-ai/dsh-subagent-codex";
|
|
20447
|
+
function SubscriptionSettingsIcon({ size = 16 }) {
|
|
20448
|
+
return (0, react.createElement)("svg", {
|
|
20449
|
+
width: size,
|
|
20450
|
+
height: size,
|
|
20451
|
+
viewBox: "0 0 24 24",
|
|
20452
|
+
fill: "none",
|
|
20453
|
+
stroke: "currentColor",
|
|
20454
|
+
strokeWidth: 1.5,
|
|
20455
|
+
strokeLinecap: "round",
|
|
20456
|
+
strokeLinejoin: "round",
|
|
20457
|
+
"aria-hidden": true
|
|
20458
|
+
}, (0, react.createElement)("rect", {
|
|
20459
|
+
x: 2,
|
|
20460
|
+
y: 5.5,
|
|
20461
|
+
width: 20,
|
|
20462
|
+
height: 13,
|
|
20463
|
+
rx: 2.1
|
|
20464
|
+
}), (0, react.createElement)("path", { d: "M2 9.5h20M5 13.5h4.5m5.75-1.1-1.5 1.5 1.5 1.5m2.25-3 1.5 1.5-1.5 1.5" }));
|
|
20465
|
+
}
|
|
19875
20466
|
/** Both host surfaces use the same controllers, RPC client and quota cache. */
|
|
19876
20467
|
function registerSubscriptionSettings(ctx, shared, Section, ProjectAction) {
|
|
20468
|
+
const settings = () => ({
|
|
20469
|
+
...shared,
|
|
20470
|
+
openSubagentBundle: bundleOpener(ctx, OFFICIAL_SUBAGENT_BUNDLE)
|
|
20471
|
+
});
|
|
19877
20472
|
ctx.slots.inject("settings.section", () => ctx.slots.register({
|
|
19878
20473
|
name: "settings.section",
|
|
19879
20474
|
id: "codex-subscription",
|
|
19880
20475
|
order: 15,
|
|
19881
20476
|
label: () => shared.t("nav"),
|
|
19882
20477
|
locale: "settings.codexSubscription",
|
|
19883
|
-
inject:
|
|
20478
|
+
inject: settings
|
|
19884
20479
|
}, Section));
|
|
20480
|
+
ctx.slots.inject("settings.section.icon", () => ctx.slots.register({
|
|
20481
|
+
name: "settings.section.icon",
|
|
20482
|
+
id: "codex-subscription"
|
|
20483
|
+
}, SubscriptionSettingsIcon));
|
|
19885
20484
|
ctx.slots.inject("plugins.bundle.config", () => ctx.slots.register({
|
|
19886
20485
|
name: "plugins.bundle.config",
|
|
19887
20486
|
key: PACKAGE_NAME,
|
|
19888
20487
|
locale: "settings.codexSubscription",
|
|
19889
20488
|
inject: () => ({
|
|
19890
|
-
...
|
|
20489
|
+
...settings(),
|
|
19891
20490
|
embedded: true
|
|
19892
20491
|
})
|
|
19893
20492
|
}, Section));
|
|
@@ -19900,8 +20499,11 @@ void main(){
|
|
|
19900
20499
|
}
|
|
19901
20500
|
/** Optional host navigation: older deployments retain their original settings entry. */
|
|
19902
20501
|
function subscriptionSettingsOpener(ctx) {
|
|
20502
|
+
return bundleOpener(ctx, PACKAGE_NAME);
|
|
20503
|
+
}
|
|
20504
|
+
function bundleOpener(ctx, name) {
|
|
19903
20505
|
const navigation = ctx.get("pluginNavigation");
|
|
19904
|
-
return typeof navigation?.openBundle === "function" ? () => navigation.openBundle(
|
|
20506
|
+
return typeof navigation?.openBundle === "function" ? () => navigation.openBundle(name) : void 0;
|
|
19905
20507
|
}
|
|
19906
20508
|
//#endregion
|
|
19907
20509
|
//#region src/diagnostic-checks.js
|
|
@@ -20065,11 +20667,6 @@ void main(){
|
|
|
20065
20667
|
prediction: null,
|
|
20066
20668
|
status: "idle"
|
|
20067
20669
|
});
|
|
20068
|
-
const MODELS = /* @__PURE__ */ new Set([
|
|
20069
|
-
"gpt-6-astra",
|
|
20070
|
-
"gpt-6.1-sol",
|
|
20071
|
-
"gpt-6.1-terra"
|
|
20072
|
-
]);
|
|
20073
20670
|
const textOf = (blocks, field) => (Array.isArray(blocks) ? blocks : []).filter((block) => block?.[field] === "text" && typeof block.text === "string").map((block) => block.text).join("\n");
|
|
20074
20671
|
/** Account identity is local admission state, never part of the prediction payload. */
|
|
20075
20672
|
function composerPredictionAccountKey(snapshot) {
|
|
@@ -20112,7 +20709,7 @@ void main(){
|
|
|
20112
20709
|
messages
|
|
20113
20710
|
} : null;
|
|
20114
20711
|
}
|
|
20115
|
-
const eligibleDraft = (state) => state?.enabled === true && state.provider === "openai-codex" && typeof state.accountKey === "string" && state.accountKey.length > 0 &&
|
|
20712
|
+
const eligibleDraft = (state) => state?.enabled === true && state.provider === "openai-codex" && typeof state.accountKey === "string" && state.accountKey.length > 0 && supportsComposerPrediction(state.model) && state.sessionId && state.composing !== true && state.input?.phase === "plain" && typeof state.input.draft === "string" && !state.input.draft.trim() && !state.input.attachmentIds?.length && !state.input.occurrences?.length && state.span?.draftRev === state.input.draftRev && state.span.start === state.span.end && state.span.end === state.input.draft.length && state.context;
|
|
20116
20713
|
const eligible = (state) => eligibleDraft(state) && state.visible === true && state.focused === true;
|
|
20117
20714
|
const sameDraft = (a, b) => a?.sessionId === b?.sessionId && a?.model === b?.model && a?.accountKey === b?.accountKey && a?.context?.turnId === b?.context?.turnId && a?.input?.draftRev === b?.input?.draftRev && a?.input?.draft === b?.input?.draft && a?.span?.start === b?.span?.start && a?.span?.end === b?.span?.end;
|
|
20118
20715
|
const contextKey = (value) => value?.enabled === true && value.accountKey && value.sessionId && value.context ? JSON.stringify([
|
|
@@ -20533,24 +21130,27 @@ void main(){
|
|
|
20533
21130
|
scope.effect(() => () => {
|
|
20534
21131
|
if (scopedDirectories === modelDirectories) scopedDirectories = void 0;
|
|
20535
21132
|
}, "codex-subscription: scoped model directories");
|
|
20536
|
-
scope.slots
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20547
|
-
|
|
20548
|
-
|
|
20549
|
-
|
|
20550
|
-
|
|
20551
|
-
|
|
20552
|
-
|
|
20553
|
-
|
|
21133
|
+
registerLegacyModelPicker(scope.slots, preference, (sessionId) => {
|
|
21134
|
+
const directory = modelDirectories.directoryFor(sessionId);
|
|
21135
|
+
const available = sessions.subagentAddress(sessionId) === void 0;
|
|
21136
|
+
return {
|
|
21137
|
+
available,
|
|
21138
|
+
directory: directory.store,
|
|
21139
|
+
preference,
|
|
21140
|
+
t,
|
|
21141
|
+
load: () => {
|
|
21142
|
+
if (available) directory.load().catch(() => {});
|
|
21143
|
+
},
|
|
21144
|
+
select: async (selection) => {
|
|
21145
|
+
if (!available) return false;
|
|
21146
|
+
try {
|
|
21147
|
+
return (await directory.select(selection))?.ok !== false;
|
|
21148
|
+
} catch {
|
|
21149
|
+
return false;
|
|
21150
|
+
}
|
|
21151
|
+
}
|
|
21152
|
+
};
|
|
21153
|
+
}, CodexModelSelect);
|
|
20554
21154
|
};
|
|
20555
21155
|
if (ctx.get("remote.session") === void 0) installDirectorySlots(ctx);
|
|
20556
21156
|
else ctx.inject(["remote.session"], installDirectorySlots);
|
|
@@ -20558,6 +21158,7 @@ void main(){
|
|
|
20558
21158
|
const uiConversation = ctx.get("uiConversation");
|
|
20559
21159
|
const sketchOpeners = createSessionOpeners();
|
|
20560
21160
|
const sketchSessions = createSketchSessionRegistry();
|
|
21161
|
+
const sketchWorkspaces = createSketchWorkspaceRegistry();
|
|
20561
21162
|
const lifetime = new AbortController();
|
|
20562
21163
|
ctx.effect(() => () => {
|
|
20563
21164
|
lifetime.abort();
|
|
@@ -20574,7 +21175,7 @@ void main(){
|
|
|
20574
21175
|
},
|
|
20575
21176
|
consume: (sessionId, span) => {
|
|
20576
21177
|
const actx = sessions.scope(sessionId);
|
|
20577
|
-
return
|
|
21178
|
+
return sketchWorkspaces.visible(sessionId) && actx?.bail(actx, "slash/input-insert-text", {
|
|
20578
21179
|
text: "@sketch ",
|
|
20579
21180
|
span
|
|
20580
21181
|
}) === true;
|
|
@@ -20590,7 +21191,7 @@ void main(){
|
|
|
20590
21191
|
open: () => {},
|
|
20591
21192
|
consume: (sessionId, span) => {
|
|
20592
21193
|
const actx = sessions.scope(sessionId);
|
|
20593
|
-
return
|
|
21194
|
+
return sketchWorkspaces.visible(sessionId) && actx?.bail(actx, "slash/input-insert-text", {
|
|
20594
21195
|
text: t("imageInlinePrompt"),
|
|
20595
21196
|
span
|
|
20596
21197
|
}) === true;
|
|
@@ -20603,14 +21204,14 @@ void main(){
|
|
|
20603
21204
|
};
|
|
20604
21205
|
const openSketchImage = (sessionId) => async (src, name) => {
|
|
20605
21206
|
const settings = preference.getSnapshot(), open = sketchOpeners.get(sessionId);
|
|
20606
|
-
if (!settings.imageSketch || !settings.imageEditing || !open) throw Error("Sketch unavailable");
|
|
21207
|
+
if (!settings.imageSketch || !settings.imageEditing || !open || !sketchWorkspaces.visible(sessionId)) throw Error("Sketch unavailable");
|
|
20607
21208
|
const response = await fetch(src, { signal: lifetime.signal });
|
|
20608
21209
|
if (!response.ok) throw Error("Image unavailable");
|
|
20609
21210
|
const blob = await response.blob();
|
|
20610
21211
|
if (blob.size > 20 * 1024 * 1024) throw Error("Image too large");
|
|
20611
21212
|
lifetime.signal.throwIfAborted();
|
|
20612
21213
|
const liveOpen = sketchOpeners.get(sessionId);
|
|
20613
|
-
if (!liveOpen || !preference.getSnapshot().imageSketch || !preference.getSnapshot().imageEditing) throw Error("Sketch unavailable");
|
|
21214
|
+
if (!liveOpen || !sketchWorkspaces.visible(sessionId) || !preference.getSnapshot().imageSketch || !preference.getSnapshot().imageEditing) throw Error("Sketch unavailable");
|
|
20614
21215
|
imageViewer.close();
|
|
20615
21216
|
liveOpen("sketch", document.activeElement, new File([blob], name || "image.png", { type: blob.type || "image/png" }));
|
|
20616
21217
|
};
|
|
@@ -20656,35 +21257,57 @@ void main(){
|
|
|
20656
21257
|
]) ctx.slots.inject(name, () => {
|
|
20657
21258
|
let dispose;
|
|
20658
21259
|
const sync = () => {
|
|
20659
|
-
if (needsSubscriptionImageEnhancement(preference.getSnapshot()) && (component !== ComposerImagePreviews || nativeAttachments()))
|
|
20660
|
-
name
|
|
20661
|
-
|
|
20662
|
-
|
|
20663
|
-
|
|
20664
|
-
|
|
20665
|
-
|
|
20666
|
-
|
|
20667
|
-
|
|
20668
|
-
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
-
|
|
20672
|
-
|
|
20673
|
-
|
|
20674
|
-
|
|
21260
|
+
if (needsSubscriptionImageEnhancement(preference.getSnapshot()) && (component !== ComposerImagePreviews || nativeAttachments())) {
|
|
21261
|
+
if (!dispose && ctx.slots.entries(name).some((entry) => entry.options.priority === -10)) return;
|
|
21262
|
+
dispose ??= ctx.slots.register({
|
|
21263
|
+
name,
|
|
21264
|
+
priority: -10,
|
|
21265
|
+
inject: (sessionId) => ({
|
|
21266
|
+
preference,
|
|
21267
|
+
t,
|
|
21268
|
+
sessionId,
|
|
21269
|
+
nativeAttachments,
|
|
21270
|
+
watchNativeAttachments,
|
|
21271
|
+
nativeTranslate,
|
|
21272
|
+
service: imageViewer,
|
|
21273
|
+
openSketchImage: openSketchImage(sessionId),
|
|
21274
|
+
attachForEdit: attachForEdit(sessionId)
|
|
21275
|
+
})
|
|
21276
|
+
}, component);
|
|
21277
|
+
} else {
|
|
20675
21278
|
dispose?.();
|
|
20676
21279
|
dispose = void 0;
|
|
20677
21280
|
}
|
|
20678
21281
|
};
|
|
20679
21282
|
sync();
|
|
20680
21283
|
const unwatch = preference.subscribe(sync);
|
|
20681
|
-
const
|
|
21284
|
+
const unwatchSlot = ctx.slots.subscribe(name, sync);
|
|
20682
21285
|
return () => {
|
|
20683
21286
|
unwatch();
|
|
20684
|
-
|
|
21287
|
+
unwatchSlot();
|
|
20685
21288
|
dispose?.();
|
|
20686
21289
|
};
|
|
20687
21290
|
});
|
|
21291
|
+
const attachSketch = (sessionId, blob) => {
|
|
21292
|
+
const current = preference.getSnapshot();
|
|
21293
|
+
if (!current.imageSketch || !current.imageEditing) throw new Error("Sketch editing is disabled");
|
|
21294
|
+
attachImageFiles(conversation, sessionInput(sessionId), [new File([blob], "sketch-reference.png", { type: "image/png" })], sessionId, { uploadImages: sessions.subagentAddress(sessionId) === void 0 });
|
|
21295
|
+
};
|
|
21296
|
+
ctx.slots.inject("shell.overlay", () => ctx.slots.register({
|
|
21297
|
+
name: "shell.overlay",
|
|
21298
|
+
id: "codex-sketch-workspaces",
|
|
21299
|
+
order: 21,
|
|
21300
|
+
inject: () => ({
|
|
21301
|
+
preference,
|
|
21302
|
+
rpc,
|
|
21303
|
+
t,
|
|
21304
|
+
workspaces: sketchWorkspaces,
|
|
21305
|
+
sketchSessions,
|
|
21306
|
+
openers: sketchOpeners,
|
|
21307
|
+
attachSketch
|
|
21308
|
+
})
|
|
21309
|
+
}, SketchWorkspaceHost));
|
|
21310
|
+
const openSketch = (id, source) => sketchOpeners.get(id)?.("sketch", source);
|
|
20688
21311
|
ctx.slots.inject("conversation.input.left", () => ctx.slots.register({
|
|
20689
21312
|
name: "conversation.input.left",
|
|
20690
21313
|
id: "codex-image-workspace",
|
|
@@ -20693,14 +21316,8 @@ void main(){
|
|
|
20693
21316
|
preference,
|
|
20694
21317
|
t,
|
|
20695
21318
|
sessionId,
|
|
20696
|
-
|
|
20697
|
-
|
|
20698
|
-
registerOpen: (callback) => sketchOpeners.register(sessionId, callback),
|
|
20699
|
-
attachSketch: (blob) => {
|
|
20700
|
-
const current = preference.getSnapshot();
|
|
20701
|
-
if (!current.imageSketch || !current.imageEditing) throw new Error("Sketch editing is disabled");
|
|
20702
|
-
attachImageFiles(conversation, sessionInput(sessionId), [new File([blob], "sketch-reference.png", { type: "image/png" })], sessionId, { uploadImages: sessions.subagentAddress(sessionId) === void 0 });
|
|
20703
|
-
}
|
|
21319
|
+
workspaces: sketchWorkspaces,
|
|
21320
|
+
openSketch
|
|
20704
21321
|
})
|
|
20705
21322
|
}, ImageWorkspace));
|
|
20706
21323
|
const imageProps = (sessionId) => ({
|