@deepseek-ai/dsh-client-ui-chat 0.2.1-rc.4 → 0.2.2-alpha.2
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.i18n.yaml +14 -14
- package/README.md +23 -11
- package/README.zh.md +23 -11
- package/lib/assets/running-whale@2x-06738fa29b2f.png +0 -0
- package/lib/client.js +2368 -236
- package/lib/index.js +6 -0
- package/lib/types/chat-settings.d.ts +13 -0
- package/lib/types/client/chat/AssistantMarkdown.d.ts +3 -1
- package/lib/types/client/chat/ChatFlow.d.ts +1 -1
- package/lib/types/client/chat/ChatView.d.ts +1 -1
- package/lib/types/client/chat/MessageItem.d.ts +12 -3
- package/lib/types/client/chat/ReasoningRow.d.ts +2 -1
- package/lib/types/client/chat/RunningStatus.d.ts +8 -3
- package/lib/types/client/chat/flow-motion.d.ts +8 -1
- package/lib/types/client/chat/text-interaction.d.ts +19 -0
- package/lib/types/client/chat/text-selection.d.ts +20 -0
- package/lib/types/client/chat/use-chat-reading.d.ts +2 -1
- package/lib/types/client/chat/use-chat-scroll.d.ts +2 -0
- package/lib/types/client/chat/use-chat-viewport.d.ts +34 -1
- package/lib/types/client/contract/group-tree.d.ts +4 -4
- package/lib/types/client/contract/slots.d.ts +46 -4
- package/lib/types/client/contract/snapshot.d.ts +2 -1
- package/lib/types/client/conversation-nodes/inbox.d.ts +6 -1
- package/lib/types/client/conversation-nodes/message.d.ts +5 -0
- package/lib/types/client/conversation-nodes/turn-process.d.ts +13 -1
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/client/locale.d.ts +1196 -0
- package/lib/types/client/presentation-policy.d.ts +13 -9
- package/lib/types/client/settings/TranscriptViewRow.d.ts +8 -3
- package/lib/types/client/transcript-view.d.ts +8 -1
- package/lib/types/index.d.ts +5 -1
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +47 -41
package/lib/client.js
CHANGED
|
@@ -56,14 +56,14 @@ window.__ModuleLoader__.load({
|
|
|
56
56
|
/**
|
|
57
57
|
* Resolve a Workspace-relative path into the Host-facing spelling used by path operations.
|
|
58
58
|
* @param cwd - Session Workspace root, when known.
|
|
59
|
-
* @param path - Absolute or Workspace-relative path.
|
|
59
|
+
* @param path - Absolute or Workspace-relative path; leading `./` segments are dropped when joining.
|
|
60
60
|
* @returns an absolute path when a Workspace root is available, otherwise the original path.
|
|
61
61
|
*/
|
|
62
62
|
function resolveWorkspacePath(cwd, path) {
|
|
63
63
|
if (isAbsoluteWorkspacePath(path)) return path;
|
|
64
64
|
if (cwd === void 0 || cwd === "") return path;
|
|
65
65
|
const separator = isWindowsStylePath(cwd) && cwd.includes("\\") ? "\\" : "/";
|
|
66
|
-
return `${cwd.replace(/[/\\]+$/, "")}${separator}${path.replace(/^[/\\]+/, "")}`;
|
|
66
|
+
return `${cwd.replace(/[/\\]+$/, "")}${separator}${path.replace(/^(?:\.?[/\\])+/, "")}`;
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* The address for a path as a caller holds it: a relative path, or an absolute
|
|
@@ -598,6 +598,525 @@ window.__ModuleLoader__.load({
|
|
|
598
598
|
return [...byTurn.values()].sort((left, right) => left.turn - right.turn);
|
|
599
599
|
}
|
|
600
600
|
//#endregion
|
|
601
|
+
//#region lib/types/client/chat/text-selection.js
|
|
602
|
+
/** DOM selection validation and visible-text projection, independent of business actions. */
|
|
603
|
+
const PROJECTED_BLOCK_TAGS = new Set([
|
|
604
|
+
"ADDRESS",
|
|
605
|
+
"ARTICLE",
|
|
606
|
+
"ASIDE",
|
|
607
|
+
"BLOCKQUOTE",
|
|
608
|
+
"DD",
|
|
609
|
+
"DIV",
|
|
610
|
+
"DL",
|
|
611
|
+
"DT",
|
|
612
|
+
"FIGCAPTION",
|
|
613
|
+
"FIGURE",
|
|
614
|
+
"FOOTER",
|
|
615
|
+
"H1",
|
|
616
|
+
"H2",
|
|
617
|
+
"H3",
|
|
618
|
+
"H4",
|
|
619
|
+
"H5",
|
|
620
|
+
"H6",
|
|
621
|
+
"HEADER",
|
|
622
|
+
"LI",
|
|
623
|
+
"MAIN",
|
|
624
|
+
"NAV",
|
|
625
|
+
"OL",
|
|
626
|
+
"P",
|
|
627
|
+
"PRE",
|
|
628
|
+
"SECTION",
|
|
629
|
+
"TABLE",
|
|
630
|
+
"TBODY",
|
|
631
|
+
"TFOOT",
|
|
632
|
+
"THEAD",
|
|
633
|
+
"TR",
|
|
634
|
+
"UL"
|
|
635
|
+
]);
|
|
636
|
+
const PROJECTED_CELL_TAGS = new Set(["TD", "TH"]);
|
|
637
|
+
function excluded(element) {
|
|
638
|
+
if (element.matches(".katex-mathml, [data-text-interaction-exclude], [hidden], .sr-only")) return true;
|
|
639
|
+
if (element.matches("[aria-hidden=\"true\"]") && !element.matches(".katex-html")) return true;
|
|
640
|
+
return element.tagName === "BUTTON" && element.parentElement?.tagName !== "CODE";
|
|
641
|
+
}
|
|
642
|
+
function projectedBoundary(node) {
|
|
643
|
+
if (!(node instanceof Element)) return "";
|
|
644
|
+
if (PROJECTED_CELL_TAGS.has(node.tagName)) return " ";
|
|
645
|
+
return PROJECTED_BLOCK_TAGS.has(node.tagName) ? "\n" : "";
|
|
646
|
+
}
|
|
647
|
+
function projectedSeparator(previous, current) {
|
|
648
|
+
const left = projectedBoundary(previous);
|
|
649
|
+
const right = projectedBoundary(current);
|
|
650
|
+
if (left === "\n" || right === "\n") return "\n";
|
|
651
|
+
return left === " " || right === " " ? " " : "";
|
|
652
|
+
}
|
|
653
|
+
function projectedText(node) {
|
|
654
|
+
const source = node.data;
|
|
655
|
+
const parent = node.parentElement;
|
|
656
|
+
const view = node.ownerDocument.defaultView;
|
|
657
|
+
const whiteSpace = parent === null || view === null ? "" : view.getComputedStyle(parent).whiteSpace;
|
|
658
|
+
const preservesBreaks = whiteSpace === "pre" || whiteSpace === "pre-wrap" || whiteSpace === "pre-line" || whiteSpace === "break-spaces";
|
|
659
|
+
const offsets = new Array(source.length + 1).fill(0);
|
|
660
|
+
if (!preservesBreaks && /^[\t\n\f\r ]*$/u.test(source) && [node.previousSibling, node.nextSibling].some((sibling) => sibling !== null && projectedBoundary(sibling) !== "")) return {
|
|
661
|
+
text: "",
|
|
662
|
+
offsets
|
|
663
|
+
};
|
|
664
|
+
let text = "";
|
|
665
|
+
let cursor = 0;
|
|
666
|
+
if (!preservesBreaks && node.previousSibling instanceof HTMLElement && node.previousSibling.tagName === "BR" && source.startsWith("\n")) cursor = 1;
|
|
667
|
+
while (cursor < source.length) {
|
|
668
|
+
const softBreak = preservesBreaks ? null : /^[ \t]*[\r\n]+[ \t]*/u.exec(source.slice(cursor));
|
|
669
|
+
if (softBreak !== null) {
|
|
670
|
+
const end = cursor + softBreak[0].length;
|
|
671
|
+
for (let index = cursor; index < end; index++) offsets[index] = text.length;
|
|
672
|
+
text += " ";
|
|
673
|
+
offsets[end] = text.length;
|
|
674
|
+
cursor = end;
|
|
675
|
+
continue;
|
|
676
|
+
}
|
|
677
|
+
offsets[cursor] = text.length;
|
|
678
|
+
text += source.charAt(cursor);
|
|
679
|
+
cursor += 1;
|
|
680
|
+
offsets[cursor] = text.length;
|
|
681
|
+
}
|
|
682
|
+
return {
|
|
683
|
+
text,
|
|
684
|
+
offsets
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
function projectedFragment(node) {
|
|
688
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
689
|
+
const projected = projectedText(node);
|
|
690
|
+
return {
|
|
691
|
+
text: projected.text,
|
|
692
|
+
spans: projected.offsets.length <= 1 ? [] : [{
|
|
693
|
+
node,
|
|
694
|
+
start: 0,
|
|
695
|
+
offsets: projected.offsets
|
|
696
|
+
}],
|
|
697
|
+
boundaries: []
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
if (!(node instanceof Element)) return {
|
|
701
|
+
text: "",
|
|
702
|
+
spans: [],
|
|
703
|
+
boundaries: []
|
|
704
|
+
};
|
|
705
|
+
if (excluded(node)) return {
|
|
706
|
+
text: "",
|
|
707
|
+
spans: [],
|
|
708
|
+
boundaries: []
|
|
709
|
+
};
|
|
710
|
+
if (node.tagName === "BR") return {
|
|
711
|
+
text: "\n",
|
|
712
|
+
spans: [],
|
|
713
|
+
boundaries: []
|
|
714
|
+
};
|
|
715
|
+
let text = "";
|
|
716
|
+
let previous = null;
|
|
717
|
+
const spans = [];
|
|
718
|
+
const boundaries = [];
|
|
719
|
+
const offsets = new Array(node.childNodes.length + 1).fill(0);
|
|
720
|
+
for (const [index, child] of [...node.childNodes].entries()) {
|
|
721
|
+
const fragment = projectedFragment(child);
|
|
722
|
+
if (fragment.text !== "" && previous !== null) {
|
|
723
|
+
const separator = projectedSeparator(previous, child);
|
|
724
|
+
if (separator === "\n" ? !text.endsWith("\n") && !fragment.text.startsWith("\n") : separator === " " && !/[\t\n]$/u.test(text) && !/^[\t\n]/u.test(fragment.text)) text += separator;
|
|
725
|
+
}
|
|
726
|
+
offsets[index] = text.length;
|
|
727
|
+
const base = text.length;
|
|
728
|
+
text += fragment.text;
|
|
729
|
+
for (const span of fragment.spans) spans.push({
|
|
730
|
+
node: span.node,
|
|
731
|
+
start: base + span.start,
|
|
732
|
+
offsets: span.offsets
|
|
733
|
+
});
|
|
734
|
+
for (const [owner, childOffsets] of fragment.boundaries) boundaries.push([owner, childOffsets.map((offset) => base + offset)]);
|
|
735
|
+
if (fragment.text !== "") previous = child;
|
|
736
|
+
offsets[index + 1] = text.length;
|
|
737
|
+
}
|
|
738
|
+
boundaries.push([node, offsets]);
|
|
739
|
+
return {
|
|
740
|
+
text,
|
|
741
|
+
spans,
|
|
742
|
+
boundaries
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
function projectedOffset(projection, container, offset) {
|
|
746
|
+
if (container.nodeType === Node.TEXT_NODE) {
|
|
747
|
+
const span = projection.spans.find((candidate) => candidate.node === container);
|
|
748
|
+
const projected = span?.offsets[offset];
|
|
749
|
+
return span === void 0 || projected === void 0 ? null : span.start + projected;
|
|
750
|
+
}
|
|
751
|
+
return (projection.boundaries.find(([owner]) => owner === container)?.[1])?.[offset] ?? null;
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Find a single noncollapsed selection inside one enabled source.
|
|
755
|
+
* @param root - mounted interaction area.
|
|
756
|
+
* @param selection - browser selection in that area's document.
|
|
757
|
+
* @returns the selected source and range, or null across sources and excluded content.
|
|
758
|
+
*/
|
|
759
|
+
function readTextSelection(root, selection) {
|
|
760
|
+
if (selection === null || selection.rangeCount !== 1 || selection.isCollapsed) return null;
|
|
761
|
+
const range = selection.getRangeAt(0);
|
|
762
|
+
const sourceOf = (node) => (node instanceof Element ? node : node.parentElement)?.closest("[data-text-interaction-source]") ?? null;
|
|
763
|
+
const source = sourceOf(range.startContainer);
|
|
764
|
+
if (source === null || source !== sourceOf(range.endContainer) || !root.contains(source) || source.closest("[hidden], [inert], [data-text-interaction-exclude]") !== null) return null;
|
|
765
|
+
return {
|
|
766
|
+
source,
|
|
767
|
+
range
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Project selected DOM text with visible block boundaries and without renderer chrome.
|
|
772
|
+
* @param selection - range and its source, obtained through readTextSelection.
|
|
773
|
+
* @returns trimmed visible text; empty or excluded selections return null.
|
|
774
|
+
*/
|
|
775
|
+
function selectedText(selection) {
|
|
776
|
+
const { source, range } = selection;
|
|
777
|
+
const projection = projectedFragment(source);
|
|
778
|
+
const start = projectedOffset(projection, range.startContainer, range.startOffset);
|
|
779
|
+
const end = projectedOffset(projection, range.endContainer, range.endOffset);
|
|
780
|
+
if (start === null || end === null) return null;
|
|
781
|
+
const text = projection.text.slice(start, end).trim();
|
|
782
|
+
return text === "" ? null : text;
|
|
783
|
+
}
|
|
784
|
+
//#endregion
|
|
785
|
+
//#region lib/types/client/chat/text-interaction.js
|
|
786
|
+
/** Area-local text gestures, action ownership, dismissal, and content-relative placement. */
|
|
787
|
+
function rectBounds(rect) {
|
|
788
|
+
return {
|
|
789
|
+
left: rect.left,
|
|
790
|
+
top: rect.top,
|
|
791
|
+
right: rect.left + rect.width,
|
|
792
|
+
bottom: rect.top + rect.height
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
function intersects(a, b) {
|
|
796
|
+
return a.right > b.left && a.left < b.right && a.bottom > b.top && a.top < b.bottom;
|
|
797
|
+
}
|
|
798
|
+
function sameRange(a, b) {
|
|
799
|
+
return a === b || a !== null && b !== null && a.startContainer === b.startContainer && a.startOffset === b.startOffset && a.endContainer === b.endContainer && a.endOffset === b.endOffset;
|
|
800
|
+
}
|
|
801
|
+
function available(root, target) {
|
|
802
|
+
if (!root.isConnected || !root.contains(target.source) || !target.source.hasAttribute("data-text-interaction-source")) return false;
|
|
803
|
+
const view = root.ownerDocument.defaultView;
|
|
804
|
+
/* v8 ignore if -- Mounted browser content always has an owner window. */
|
|
805
|
+
if (view === null) return false;
|
|
806
|
+
for (let node = target.source; node !== null; node = node.parentElement) {
|
|
807
|
+
const style = view.getComputedStyle(node);
|
|
808
|
+
if (node.hidden || node.inert || node.hasAttribute("data-text-interaction-exclude") || style.display === "none" || style.visibility === "hidden") return false;
|
|
809
|
+
}
|
|
810
|
+
return target.selection === null || target.source.contains(target.selection.range.startContainer) && target.source.contains(target.selection.range.endContainer) && selectedText(target.selection) === target.text;
|
|
811
|
+
}
|
|
812
|
+
function composerSeat(root) {
|
|
813
|
+
return root.closest("[data-conversation-scroll]")?.querySelector("[data-composer-seat]") ?? null;
|
|
814
|
+
}
|
|
815
|
+
function visibleBounds(root, source, view) {
|
|
816
|
+
const rootRect = rectBounds(root.getBoundingClientRect());
|
|
817
|
+
const bounds = {
|
|
818
|
+
left: Math.max(0, rootRect.left),
|
|
819
|
+
right: Math.min(view.innerWidth, rootRect.right),
|
|
820
|
+
top: 0,
|
|
821
|
+
bottom: view.innerHeight
|
|
822
|
+
};
|
|
823
|
+
for (let node = source; node !== null; node = node.parentElement) {
|
|
824
|
+
const style = view.getComputedStyle(node);
|
|
825
|
+
const rect = rectBounds(node.getBoundingClientRect());
|
|
826
|
+
if (/(auto|scroll|hidden|clip)/u.test(style.overflowX)) {
|
|
827
|
+
bounds.left = Math.max(bounds.left, rect.left);
|
|
828
|
+
bounds.right = Math.min(bounds.right, rect.right);
|
|
829
|
+
}
|
|
830
|
+
if (/(auto|scroll|hidden|clip)/u.test(style.overflowY)) {
|
|
831
|
+
bounds.top = Math.max(bounds.top, rect.top);
|
|
832
|
+
bounds.bottom = Math.min(bounds.bottom, rect.bottom);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
const composer = composerSeat(root)?.getBoundingClientRect();
|
|
836
|
+
if (composer !== void 0 && composer.height > 0 && composer.right > bounds.left && composer.left < bounds.right) bounds.bottom = Math.min(bounds.bottom, composer.top);
|
|
837
|
+
return bounds;
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Own text interactions for one positioned content area and its local surface.
|
|
841
|
+
* @param rootRef - existing content element with position: relative.
|
|
842
|
+
* @param surfaceRef - absolute surface inside that element; only the selected Slot consumer is mounted.
|
|
843
|
+
* @param dispatchInteraction - framework-injected plugin gesture dispatch.
|
|
844
|
+
* @param registeredIds - live registered owners used to dismiss removed plugins.
|
|
845
|
+
* @returns current owner and area-local selection actions.
|
|
846
|
+
*/
|
|
847
|
+
function useTextInteraction(rootRef, surfaceRef, dispatchInteraction, registeredIds) {
|
|
848
|
+
const target = (0, react.useRef)(null);
|
|
849
|
+
const [active, setActive] = (0, react.useState)(null);
|
|
850
|
+
const dismiss = (0, react.useCallback)(() => {
|
|
851
|
+
target.current = null;
|
|
852
|
+
if (surfaceRef.current !== null) surfaceRef.current.style.visibility = "hidden";
|
|
853
|
+
setActive(null);
|
|
854
|
+
}, [surfaceRef]);
|
|
855
|
+
(0, react.useEffect)(dismiss, [
|
|
856
|
+
registeredIds,
|
|
857
|
+
dispatchInteraction,
|
|
858
|
+
dismiss
|
|
859
|
+
]);
|
|
860
|
+
const readText = (0, react.useCallback)(() => {
|
|
861
|
+
const root = rootRef.current;
|
|
862
|
+
const current = target.current;
|
|
863
|
+
if (root === null || current === null || !available(root, current)) return null;
|
|
864
|
+
return current.selection === null ? null : selectedText(current.selection);
|
|
865
|
+
}, [rootRef]);
|
|
866
|
+
const clearSelection = (0, react.useCallback)(() => {
|
|
867
|
+
rootRef.current?.ownerDocument.getSelection()?.removeAllRanges();
|
|
868
|
+
}, [rootRef]);
|
|
869
|
+
const place = (0, react.useCallback)(() => {
|
|
870
|
+
const root = rootRef.current;
|
|
871
|
+
const surface = surfaceRef.current;
|
|
872
|
+
const current = target.current;
|
|
873
|
+
if (root === null || surface === null || current === null) return;
|
|
874
|
+
if (!available(root, current)) {
|
|
875
|
+
dismiss();
|
|
876
|
+
return;
|
|
877
|
+
}
|
|
878
|
+
const view = root.ownerDocument.defaultView;
|
|
879
|
+
/* v8 ignore if -- Mounted browser content always has an owner window. */
|
|
880
|
+
if (view === null) return;
|
|
881
|
+
const visible = visibleBounds(root, current.source, view);
|
|
882
|
+
const selectionRects = current.selection === null ? [] : [...current.selection.range.getClientRects()];
|
|
883
|
+
const fallback = current.selection?.range.getBoundingClientRect() ?? current.source.getBoundingClientRect();
|
|
884
|
+
const rects = selectionRects.length === 0 ? [fallback] : selectionRects;
|
|
885
|
+
const sourceRect = current.source.getBoundingClientRect();
|
|
886
|
+
const pointX = current.point === null ? 0 : sourceRect.left + current.point.x - current.source.scrollLeft;
|
|
887
|
+
const pointY = current.point === null ? 0 : sourceRect.top + current.point.y - current.source.scrollTop;
|
|
888
|
+
const anchor = current.point === null ? rects.map(rectBounds).find((rect) => intersects(rect, visible)) : {
|
|
889
|
+
left: pointX,
|
|
890
|
+
right: pointX + 1,
|
|
891
|
+
top: pointY,
|
|
892
|
+
bottom: pointY + 1
|
|
893
|
+
};
|
|
894
|
+
if (anchor === void 0 || !intersects(anchor, visible) || visible.right <= visible.left || visible.bottom <= visible.top) {
|
|
895
|
+
surface.style.visibility = "hidden";
|
|
896
|
+
return;
|
|
897
|
+
}
|
|
898
|
+
const gap = 8;
|
|
899
|
+
surface.style.maxWidth = `${visible.right - visible.left}px`;
|
|
900
|
+
surface.style.maxHeight = `${visible.bottom - visible.top}px`;
|
|
901
|
+
const size = surface.getBoundingClientRect();
|
|
902
|
+
const x = current.point === null ? (Math.max(anchor.left, visible.left) + Math.min(anchor.right, visible.right) - size.width) / 2 : anchor.left;
|
|
903
|
+
const above = anchor.top - gap - size.height;
|
|
904
|
+
const below = anchor.bottom + gap;
|
|
905
|
+
const preferredY = current.point === null && above >= visible.top ? above : below;
|
|
906
|
+
const left = Math.max(visible.left, Math.min(x, visible.right - size.width));
|
|
907
|
+
const top = Math.max(visible.top, Math.min(preferredY, visible.bottom - size.height));
|
|
908
|
+
const rootRect = root.getBoundingClientRect();
|
|
909
|
+
const scaleX = root.offsetWidth === 0 ? 1 : rootRect.width / root.offsetWidth;
|
|
910
|
+
const scaleY = root.offsetHeight === 0 ? 1 : rootRect.height / root.offsetHeight;
|
|
911
|
+
surface.style.left = `${(left - rootRect.left) / scaleX - root.clientLeft + root.scrollLeft}px`;
|
|
912
|
+
surface.style.top = `${(top - rootRect.top) / scaleY - root.clientTop + root.scrollTop}px`;
|
|
913
|
+
surface.style.visibility = "visible";
|
|
914
|
+
}, [
|
|
915
|
+
dismiss,
|
|
916
|
+
rootRef,
|
|
917
|
+
surfaceRef
|
|
918
|
+
]);
|
|
919
|
+
(0, react.useLayoutEffect)(place, [active, place]);
|
|
920
|
+
(0, react.useEffect)(() => {
|
|
921
|
+
const root = rootRef.current;
|
|
922
|
+
const surface = surfaceRef.current;
|
|
923
|
+
if (root === null || surface === null) return;
|
|
924
|
+
const document = root.ownerDocument;
|
|
925
|
+
const view = document.defaultView;
|
|
926
|
+
/* v8 ignore if -- Mounted browser content always has an owner window. */
|
|
927
|
+
if (view === null) return;
|
|
928
|
+
let pointerSelecting = false;
|
|
929
|
+
let keyboardSelecting = false;
|
|
930
|
+
let selectionChangedDuringGesture = false;
|
|
931
|
+
let previousRange = null;
|
|
932
|
+
let frame;
|
|
933
|
+
const schedulePlacement = () => {
|
|
934
|
+
if (target.current === null || frame !== void 0) return;
|
|
935
|
+
frame = view.requestAnimationFrame(() => {
|
|
936
|
+
frame = void 0;
|
|
937
|
+
place();
|
|
938
|
+
});
|
|
939
|
+
};
|
|
940
|
+
const dispatch = (trigger, next, event) => {
|
|
941
|
+
if (!available(root, next)) return;
|
|
942
|
+
const id = dispatchInteraction({
|
|
943
|
+
trigger,
|
|
944
|
+
hasSelection: next.selection !== null,
|
|
945
|
+
readText: () => next.text,
|
|
946
|
+
preventDefault: () => {
|
|
947
|
+
event.preventDefault();
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
if (id === null) return;
|
|
951
|
+
target.current = next;
|
|
952
|
+
setActive({
|
|
953
|
+
id,
|
|
954
|
+
trigger
|
|
955
|
+
});
|
|
956
|
+
};
|
|
957
|
+
const updateSelection = (event) => {
|
|
958
|
+
if (pointerSelecting || keyboardSelecting) {
|
|
959
|
+
selectionChangedDuringGesture = true;
|
|
960
|
+
return;
|
|
961
|
+
}
|
|
962
|
+
if (target.current !== null && target.current.point !== null) return;
|
|
963
|
+
if (target.current !== null && surface.contains(document.activeElement)) return;
|
|
964
|
+
const selection = readTextSelection(root, document.getSelection());
|
|
965
|
+
const range = selection?.range ?? null;
|
|
966
|
+
if (!selectionChangedDuringGesture && sameRange(previousRange, range)) return;
|
|
967
|
+
selectionChangedDuringGesture = false;
|
|
968
|
+
previousRange = range?.cloneRange() ?? null;
|
|
969
|
+
dismiss();
|
|
970
|
+
if (selection === null) return;
|
|
971
|
+
const text = selectedText(selection);
|
|
972
|
+
if (text === null) return;
|
|
973
|
+
dispatch("selection", {
|
|
974
|
+
source: selection.source,
|
|
975
|
+
selection: {
|
|
976
|
+
...selection,
|
|
977
|
+
range: selection.range.cloneRange()
|
|
978
|
+
},
|
|
979
|
+
text,
|
|
980
|
+
point: null
|
|
981
|
+
}, event);
|
|
982
|
+
};
|
|
983
|
+
const insideSurface = (event) => event.composedPath().includes(surface);
|
|
984
|
+
const pointerDown = (event) => {
|
|
985
|
+
if (insideSurface(event)) return;
|
|
986
|
+
const selection = document.getSelection();
|
|
987
|
+
previousRange = selection?.rangeCount === 1 ? selection.getRangeAt(0).cloneRange() : null;
|
|
988
|
+
dismiss();
|
|
989
|
+
selectionChangedDuringGesture = false;
|
|
990
|
+
pointerSelecting = event.button === 0 && event.target instanceof Node && root.contains(event.target);
|
|
991
|
+
};
|
|
992
|
+
const pointerUp = (event) => {
|
|
993
|
+
if (!pointerSelecting) return;
|
|
994
|
+
pointerSelecting = false;
|
|
995
|
+
updateSelection(event);
|
|
996
|
+
};
|
|
997
|
+
const cancel = () => {
|
|
998
|
+
pointerSelecting = false;
|
|
999
|
+
keyboardSelecting = false;
|
|
1000
|
+
dismiss();
|
|
1001
|
+
};
|
|
1002
|
+
const keyDown = (event) => {
|
|
1003
|
+
if (event.key === "Escape") {
|
|
1004
|
+
cancel();
|
|
1005
|
+
return;
|
|
1006
|
+
}
|
|
1007
|
+
if (insideSurface(event) || !(event.target instanceof Node) || !root.contains(event.target)) return;
|
|
1008
|
+
if (event.key === "Shift" || event.shiftKey) {
|
|
1009
|
+
keyboardSelecting = true;
|
|
1010
|
+
dismiss();
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
const keyUp = (event) => {
|
|
1014
|
+
if (!keyboardSelecting || event.key !== "Shift" && event.shiftKey) return;
|
|
1015
|
+
keyboardSelecting = false;
|
|
1016
|
+
updateSelection(event);
|
|
1017
|
+
};
|
|
1018
|
+
const contextMenu = (event) => {
|
|
1019
|
+
if (insideSurface(event)) return;
|
|
1020
|
+
const element = event.target instanceof Element ? event.target : null;
|
|
1021
|
+
const source = element?.closest("[data-text-interaction-source]");
|
|
1022
|
+
if (source === void 0 || source === null || !root.contains(source) || element?.closest("[data-text-interaction-exclude], button, input, textarea, [contenteditable=\"true\"]")) return;
|
|
1023
|
+
pointerSelecting = false;
|
|
1024
|
+
dismiss();
|
|
1025
|
+
const selected = readTextSelection(root, document.getSelection());
|
|
1026
|
+
const keyboard = event.clientX === 0 && event.clientY === 0;
|
|
1027
|
+
const selection = selected?.source === source && (keyboard || [...selected.range.getClientRects()].some((rect) => event.clientX >= rect.left && event.clientX <= rect.right && event.clientY >= rect.top && event.clientY <= rect.bottom)) ? selected : null;
|
|
1028
|
+
const bounds = source.getBoundingClientRect();
|
|
1029
|
+
dispatch("contextmenu", {
|
|
1030
|
+
source,
|
|
1031
|
+
selection: selection === null ? null : {
|
|
1032
|
+
...selection,
|
|
1033
|
+
range: selection.range.cloneRange()
|
|
1034
|
+
},
|
|
1035
|
+
text: selection === null ? null : selectedText(selection),
|
|
1036
|
+
point: {
|
|
1037
|
+
x: (keyboard ? 0 : event.clientX - bounds.left) + source.scrollLeft,
|
|
1038
|
+
y: (keyboard ? 0 : event.clientY - bounds.top) + source.scrollTop
|
|
1039
|
+
}
|
|
1040
|
+
}, event);
|
|
1041
|
+
};
|
|
1042
|
+
document.addEventListener("selectionchange", updateSelection);
|
|
1043
|
+
document.addEventListener("pointerdown", pointerDown, true);
|
|
1044
|
+
document.addEventListener("pointerup", pointerUp);
|
|
1045
|
+
document.addEventListener("pointercancel", cancel);
|
|
1046
|
+
document.addEventListener("keydown", keyDown);
|
|
1047
|
+
document.addEventListener("keyup", keyUp);
|
|
1048
|
+
document.addEventListener("scroll", schedulePlacement, true);
|
|
1049
|
+
root.addEventListener("contextmenu", contextMenu);
|
|
1050
|
+
view.addEventListener("resize", schedulePlacement);
|
|
1051
|
+
view.addEventListener("blur", cancel);
|
|
1052
|
+
return () => {
|
|
1053
|
+
document.removeEventListener("selectionchange", updateSelection);
|
|
1054
|
+
document.removeEventListener("pointerdown", pointerDown, true);
|
|
1055
|
+
document.removeEventListener("pointerup", pointerUp);
|
|
1056
|
+
document.removeEventListener("pointercancel", cancel);
|
|
1057
|
+
document.removeEventListener("keydown", keyDown);
|
|
1058
|
+
document.removeEventListener("keyup", keyUp);
|
|
1059
|
+
document.removeEventListener("scroll", schedulePlacement, true);
|
|
1060
|
+
root.removeEventListener("contextmenu", contextMenu);
|
|
1061
|
+
view.removeEventListener("resize", schedulePlacement);
|
|
1062
|
+
view.removeEventListener("blur", cancel);
|
|
1063
|
+
if (frame !== void 0) view.cancelAnimationFrame(frame);
|
|
1064
|
+
};
|
|
1065
|
+
}, [
|
|
1066
|
+
dismiss,
|
|
1067
|
+
place,
|
|
1068
|
+
rootRef,
|
|
1069
|
+
surfaceRef,
|
|
1070
|
+
dispatchInteraction
|
|
1071
|
+
]);
|
|
1072
|
+
(0, react.useEffect)(() => {
|
|
1073
|
+
const root = rootRef.current;
|
|
1074
|
+
const surface = surfaceRef.current;
|
|
1075
|
+
if (active === null || root === null || surface === null) return;
|
|
1076
|
+
const view = root.ownerDocument.defaultView;
|
|
1077
|
+
/* v8 ignore if -- Mounted browser content always has an owner window. */
|
|
1078
|
+
if (view === null) return;
|
|
1079
|
+
let frame;
|
|
1080
|
+
const schedule = () => {
|
|
1081
|
+
if (frame !== void 0) return;
|
|
1082
|
+
frame = view.requestAnimationFrame(() => {
|
|
1083
|
+
frame = void 0;
|
|
1084
|
+
place();
|
|
1085
|
+
});
|
|
1086
|
+
};
|
|
1087
|
+
const resize = new ResizeObserver(schedule);
|
|
1088
|
+
resize.observe(root);
|
|
1089
|
+
resize.observe(surface);
|
|
1090
|
+
const composer = composerSeat(root);
|
|
1091
|
+
if (composer !== null) resize.observe(composer);
|
|
1092
|
+
const mutations = new MutationObserver((records) => {
|
|
1093
|
+
if (records.some((record) => !surface.contains(record.target))) schedule();
|
|
1094
|
+
});
|
|
1095
|
+
mutations.observe(root, {
|
|
1096
|
+
childList: true,
|
|
1097
|
+
subtree: true,
|
|
1098
|
+
characterData: true,
|
|
1099
|
+
attributes: true
|
|
1100
|
+
});
|
|
1101
|
+
return () => {
|
|
1102
|
+
resize.disconnect();
|
|
1103
|
+
mutations.disconnect();
|
|
1104
|
+
if (frame !== void 0) view.cancelAnimationFrame(frame);
|
|
1105
|
+
};
|
|
1106
|
+
}, [
|
|
1107
|
+
active,
|
|
1108
|
+
place,
|
|
1109
|
+
rootRef,
|
|
1110
|
+
surfaceRef
|
|
1111
|
+
]);
|
|
1112
|
+
return {
|
|
1113
|
+
active,
|
|
1114
|
+
dismiss,
|
|
1115
|
+
readText,
|
|
1116
|
+
clearSelection
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
//#endregion
|
|
601
1120
|
//#region lib/types/client/chat/use-chat-navigation.js
|
|
602
1121
|
/** Turn jumps and history-prepend anchoring, independent of DOM measurement. */
|
|
603
1122
|
/** Owns one replaceable turn jump and the anchor retained while history loads. */
|
|
@@ -1044,11 +1563,12 @@ window.__ModuleLoader__.load({
|
|
|
1044
1563
|
}
|
|
1045
1564
|
/**
|
|
1046
1565
|
* Follow the tail on the active fold's animation clock.
|
|
1566
|
+
* @param input - whether the reader's own input requests the landing rather than a content change.
|
|
1047
1567
|
* @returns whether a fold batch owns the tail movement instead of a separate scroll animation.
|
|
1048
1568
|
*/
|
|
1049
|
-
followInputFold() {
|
|
1569
|
+
followInputFold(input) {
|
|
1050
1570
|
this.cancelPending();
|
|
1051
|
-
return this.viewport.followInputFold(this.follow);
|
|
1571
|
+
return this.viewport.followInputFold(this.follow, input);
|
|
1052
1572
|
}
|
|
1053
1573
|
/**
|
|
1054
1574
|
* Let fold batches read follow intent and commit their tail landings.
|
|
@@ -1334,9 +1854,10 @@ window.__ModuleLoader__.load({
|
|
|
1334
1854
|
* Create animation coordination without cross-viewport broadcasts.
|
|
1335
1855
|
* @param driver - the viewport's driver for the next batch; null while detached.
|
|
1336
1856
|
* @param foldingChanged - disable or restore this viewport's native scroll anchoring.
|
|
1857
|
+
* @param beforeInstantHide - measures the layout before a row hides at once outside a motion scope.
|
|
1337
1858
|
* @returns stable callbacks and cleanup for this viewport's animations.
|
|
1338
1859
|
*/
|
|
1339
|
-
function createFlowMotion(driver, foldingChanged) {
|
|
1860
|
+
function createFlowMotion(driver, foldingChanged, beforeInstantHide) {
|
|
1340
1861
|
const running = /* @__PURE__ */ new Map();
|
|
1341
1862
|
let folding = 0;
|
|
1342
1863
|
const foldIdleListeners = /* @__PURE__ */ new Set();
|
|
@@ -1361,9 +1882,14 @@ window.__ModuleLoader__.load({
|
|
|
1361
1882
|
function batchMember(box) {
|
|
1362
1883
|
return box.element.parentElement?.closest("[data-chat-motion=\"collapse\"]") === null;
|
|
1363
1884
|
}
|
|
1885
|
+
/** @returns whether a batch started; without a closing member the caller settles held rows itself. */
|
|
1364
1886
|
function runBatch(current) {
|
|
1365
1887
|
for (const box of [...boxes.values()]) {
|
|
1366
1888
|
if (!batchMember(box)) continue;
|
|
1889
|
+
if (box.element.parentElement?.closest("[hidden]") != null) {
|
|
1890
|
+
box.finish();
|
|
1891
|
+
continue;
|
|
1892
|
+
}
|
|
1367
1893
|
const height = box.element.offsetHeight;
|
|
1368
1894
|
const marginTop = Number.parseFloat(getComputedStyle(box.element).marginTop) || 0;
|
|
1369
1895
|
if (!box.closing) {
|
|
@@ -1377,7 +1903,7 @@ window.__ModuleLoader__.load({
|
|
|
1377
1903
|
}
|
|
1378
1904
|
const owned = [...boxes.values()];
|
|
1379
1905
|
const members = owned.filter(batchMember).sort((left, right) => left.element.compareDocumentPosition(right.element) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
|
|
1380
|
-
if (!members.some((box) => box.closing)) return;
|
|
1906
|
+
if (!members.some((box) => box.closing)) return false;
|
|
1381
1907
|
batch = true;
|
|
1382
1908
|
cancelled = false;
|
|
1383
1909
|
const travelling = current.begin(members.map((box) => box.closing ? box : {
|
|
@@ -1473,6 +1999,7 @@ window.__ModuleLoader__.load({
|
|
|
1473
1999
|
};
|
|
1474
2000
|
if (reduced) tick(0);
|
|
1475
2001
|
else frameRequest = requestAnimationFrame(tick);
|
|
2002
|
+
return true;
|
|
1476
2003
|
}
|
|
1477
2004
|
function foldActive() {
|
|
1478
2005
|
return folding > 0;
|
|
@@ -1488,10 +2015,7 @@ window.__ModuleLoader__.load({
|
|
|
1488
2015
|
batchScheduled = false;
|
|
1489
2016
|
if (batch) return;
|
|
1490
2017
|
const current = [...boxes.values()].some((box) => box.closing) ? driver() : null;
|
|
1491
|
-
if (current !== null)
|
|
1492
|
-
runBatch(current);
|
|
1493
|
-
return;
|
|
1494
|
-
}
|
|
2018
|
+
if (current !== null && runBatch(current)) return;
|
|
1495
2019
|
const reduced = typeof matchMedia === "function" && matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1496
2020
|
for (const box of [...boxes.values()]) if (reduced || box.held && box.closing) box.finish();
|
|
1497
2021
|
else if (box.held) box.release();
|
|
@@ -1663,6 +2187,10 @@ window.__ModuleLoader__.load({
|
|
|
1663
2187
|
foldIdleListeners.clear();
|
|
1664
2188
|
for (const cancel of [...running.values()]) cancel();
|
|
1665
2189
|
}
|
|
2190
|
+
function hideNow(element, commit) {
|
|
2191
|
+
beforeInstantHide?.(element);
|
|
2192
|
+
commit();
|
|
2193
|
+
}
|
|
1666
2194
|
return {
|
|
1667
2195
|
collapse,
|
|
1668
2196
|
reveal,
|
|
@@ -1672,6 +2200,7 @@ window.__ModuleLoader__.load({
|
|
|
1672
2200
|
cancelInput,
|
|
1673
2201
|
resumeInput,
|
|
1674
2202
|
clear,
|
|
2203
|
+
hideNow,
|
|
1675
2204
|
inputActive: () => batch || batchScheduled && [...boxes.values()].some((box) => box.closing && batchMember(box))
|
|
1676
2205
|
};
|
|
1677
2206
|
}
|
|
@@ -1688,6 +2217,7 @@ window.__ModuleLoader__.load({
|
|
|
1688
2217
|
if (hidden) {
|
|
1689
2218
|
if (hiddenOrCollapsing(element)) return;
|
|
1690
2219
|
if (mounted && element.closest(MOTION_SCOPE) !== null && motion !== void 0) motion.collapse(element, commit);
|
|
2220
|
+
else if (mounted && motion?.hideNow !== void 0) motion.hideNow(element, commit);
|
|
1691
2221
|
else commit();
|
|
1692
2222
|
return;
|
|
1693
2223
|
}
|
|
@@ -1760,13 +2290,23 @@ window.__ModuleLoader__.load({
|
|
|
1760
2290
|
};
|
|
1761
2291
|
paging = null;
|
|
1762
2292
|
reader = null;
|
|
2293
|
+
/** Rows measured before an instant close; see {@link ChatViewport.keepAboveClosing}. */
|
|
2294
|
+
closing = null;
|
|
2295
|
+
/** Discards a closing measurement that no size observation consumed by the end of its frame. */
|
|
2296
|
+
closingFrame = null;
|
|
2297
|
+
/** Content height without fold room at the latest size observation: the content that frame painted. */
|
|
2298
|
+
settledContent = 0;
|
|
1763
2299
|
/** The pending or running fold batch lands at the tail. */
|
|
1764
2300
|
tailRequested = false;
|
|
2301
|
+
/** The tail request came from the reader's own input rather than from a content change. */
|
|
2302
|
+
tailInput = false;
|
|
1765
2303
|
/** Switches the running batch to a tail landing; null while no batch runs. */
|
|
1766
2304
|
retarget = null;
|
|
1767
2305
|
/** Transition state and row callbacks owned by this viewport's attachment. */
|
|
1768
2306
|
motion = createFlowMotion(() => this.foldDriver(), (active) => {
|
|
1769
2307
|
if (this.elements !== null) this.elements.scroller.style.overflowAnchor = active ? "none" : "";
|
|
2308
|
+
}, (element) => {
|
|
2309
|
+
this.measureClosing(element);
|
|
1770
2310
|
});
|
|
1771
2311
|
/**
|
|
1772
2312
|
* Bind to the containing scrollport and observe content and viewport sizes.
|
|
@@ -1799,6 +2339,8 @@ window.__ModuleLoader__.load({
|
|
|
1799
2339
|
if (typeof ResizeObserver !== "undefined") {
|
|
1800
2340
|
this.observer = new ResizeObserver(() => {
|
|
1801
2341
|
if (this.elements !== elements) return;
|
|
2342
|
+
this.settledContent = elements.scroller.scrollHeight - this.spacerHeight();
|
|
2343
|
+
this.keepAboveClosing();
|
|
1802
2344
|
this.reclaimBelow();
|
|
1803
2345
|
this.invalidate();
|
|
1804
2346
|
this.events?.resize();
|
|
@@ -1813,6 +2355,7 @@ window.__ModuleLoader__.load({
|
|
|
1813
2355
|
this.stopPreserving();
|
|
1814
2356
|
this.motion.clear();
|
|
1815
2357
|
if (this.elements !== null) this.elements.scroller.style.overflowAnchor = "";
|
|
2358
|
+
this.dropClosing();
|
|
1816
2359
|
this.elements?.scroller.removeEventListener("scroll", this.onScroll);
|
|
1817
2360
|
this.elements?.scroller.removeEventListener("scrollend", this.onScrollEnd, true);
|
|
1818
2361
|
for (const type of READING_INTENTS) this.elements?.scroller.removeEventListener(type, this.onIntent, true);
|
|
@@ -1821,6 +2364,7 @@ window.__ModuleLoader__.load({
|
|
|
1821
2364
|
this.elements = null;
|
|
1822
2365
|
this.events = null;
|
|
1823
2366
|
this.tailRequested = false;
|
|
2367
|
+
this.tailInput = false;
|
|
1824
2368
|
this.retarget = null;
|
|
1825
2369
|
this.turns = [];
|
|
1826
2370
|
this.observation = {
|
|
@@ -1881,12 +2425,15 @@ window.__ModuleLoader__.load({
|
|
|
1881
2425
|
/**
|
|
1882
2426
|
* Land the pending or running fold batch at the tail instead of starting a separate scroll.
|
|
1883
2427
|
* @param follow - follow controller whose native animation yields to the batch.
|
|
2428
|
+
* @param input - whether the reader's own input requests the landing; a content change, such as a Turn
|
|
2429
|
+
* ending, requests it in place of the immediate follow.
|
|
1884
2430
|
* @returns whether a fold owns the tail movement.
|
|
1885
2431
|
*/
|
|
1886
|
-
followInputFold(follow) {
|
|
2432
|
+
followInputFold(follow, input) {
|
|
1887
2433
|
if (this.elements === null || this.reader === null || !this.motion.inputActive()) return false;
|
|
1888
2434
|
this.interruptFollow(follow);
|
|
1889
2435
|
this.tailRequested = true;
|
|
2436
|
+
this.tailInput ||= input;
|
|
1890
2437
|
this.retarget?.();
|
|
1891
2438
|
return true;
|
|
1892
2439
|
}
|
|
@@ -1940,11 +2487,25 @@ window.__ModuleLoader__.load({
|
|
|
1940
2487
|
return {
|
|
1941
2488
|
begin: (boxes) => {
|
|
1942
2489
|
tail = this.tailRequested || follow.active && !reader.pending();
|
|
2490
|
+
const input = this.tailInput;
|
|
1943
2491
|
this.tailRequested = false;
|
|
2492
|
+
this.tailInput = false;
|
|
1944
2493
|
viewportTop = elements.scroller.getBoundingClientRect().top;
|
|
1945
2494
|
start = elements.scroller.scrollTop;
|
|
1946
2495
|
const originalRoom = this.spacerHeight();
|
|
1947
2496
|
initialHeight = Math.max(elements.column.offsetHeight, elements.scroller.scrollHeight - originalRoom);
|
|
2497
|
+
if (tail && !input) {
|
|
2498
|
+
const pinned = originalRoom === 0 && this.settledContent > elements.scroller.clientHeight && follow.active && !reader.pending() && !follow.animating;
|
|
2499
|
+
const external = elements.scroller.scrollHeight - originalRoom - this.settledContent;
|
|
2500
|
+
if (external > .5 && pinned) {
|
|
2501
|
+
elements.scroller.scrollTop = start + external;
|
|
2502
|
+
start = elements.scroller.scrollTop;
|
|
2503
|
+
this.observation = {
|
|
2504
|
+
top: start,
|
|
2505
|
+
landing: null
|
|
2506
|
+
};
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
1948
2509
|
let above = 0;
|
|
1949
2510
|
const below = [];
|
|
1950
2511
|
for (const box of boxes) {
|
|
@@ -2027,6 +2588,7 @@ window.__ModuleLoader__.load({
|
|
|
2027
2588
|
finish: (cancelled) => {
|
|
2028
2589
|
this.retarget = null;
|
|
2029
2590
|
this.tailRequested = false;
|
|
2591
|
+
this.tailInput = false;
|
|
2030
2592
|
if (this.elements !== elements) return;
|
|
2031
2593
|
elements.column.offsetHeight;
|
|
2032
2594
|
delete elements.column.dataset.inputFold;
|
|
@@ -2097,8 +2659,131 @@ window.__ModuleLoader__.load({
|
|
|
2097
2659
|
}
|
|
2098
2660
|
return null;
|
|
2099
2661
|
}
|
|
2662
|
+
/**
|
|
2663
|
+
* Measure, before the first row of a commit closes at once, the rows a following reader's shrink keeps
|
|
2664
|
+
* still: the first row visible in the last painted layout, the rows after it that were on screen, and the
|
|
2665
|
+
* rows above it within one scrollport.
|
|
2666
|
+
* Rows above the closing rows keep their painted screen positions, which the commit did not move; the same
|
|
2667
|
+
* commit can add rows between them and the closing rows, as a Turn's duration control does, so rows from
|
|
2668
|
+
* the closing rows on are placed against the current end. Reads happen only when rows close, never on the
|
|
2669
|
+
* following path's size observations. A measurement the same frame's size observation does not use is
|
|
2670
|
+
* discarded after that frame.
|
|
2671
|
+
* @param element - the first row of this commit to close.
|
|
2672
|
+
*/
|
|
2673
|
+
measureClosing(element) {
|
|
2674
|
+
const elements = this.elements;
|
|
2675
|
+
const reader = this.reader;
|
|
2676
|
+
if (elements === null || reader === null || this.closing !== null || !element.isConnected) return;
|
|
2677
|
+
if (!reader.follow.active || reader.follow.animating || reader.pending()) return;
|
|
2678
|
+
if (this.paging !== null || this.motion.foldActive() || this.motion.inputActive()) return;
|
|
2679
|
+
const scroller = elements.scroller;
|
|
2680
|
+
const scrollHeight = scroller.scrollHeight;
|
|
2681
|
+
const height = scroller.clientHeight;
|
|
2682
|
+
const painted = scroller.scrollTop + height;
|
|
2683
|
+
const origin = scroller.getBoundingClientRect().top - scroller.scrollTop;
|
|
2684
|
+
const rows = (elements.column.querySelector(":scope > [data-slot=\"conversation.chat.flow\"]") ?? elements.column).children;
|
|
2685
|
+
const end = (row) => row !== element && !row.contains(element) && (element.compareDocumentPosition(row) & Node.DOCUMENT_POSITION_PRECEDING) !== 0 ? painted : scrollHeight;
|
|
2686
|
+
const screen = (row, offset) => offset - origin - (end(row) - height);
|
|
2687
|
+
let low = 0;
|
|
2688
|
+
let high = rows.length;
|
|
2689
|
+
while (low < high) {
|
|
2690
|
+
const middle = low + high >>> 1;
|
|
2691
|
+
const row = rows[middle];
|
|
2692
|
+
if (screen(row, row.getBoundingClientRect().bottom) > 0) high = middle;
|
|
2693
|
+
else low = middle + 1;
|
|
2694
|
+
}
|
|
2695
|
+
let first = -1;
|
|
2696
|
+
for (let index = low; index < rows.length && first < 0; index++) {
|
|
2697
|
+
const row = rows[index];
|
|
2698
|
+
const rect = row.getBoundingClientRect();
|
|
2699
|
+
if (screen(row, rect.top) >= height) break;
|
|
2700
|
+
if (rect.height > 0 && !row.hasAttribute("hidden")) first = index;
|
|
2701
|
+
}
|
|
2702
|
+
if (first < 0) return;
|
|
2703
|
+
const anchors = [];
|
|
2704
|
+
const add = (row, rect) => {
|
|
2705
|
+
if (rect.height > 0 && !row.hasAttribute("hidden")) anchors.push({
|
|
2706
|
+
element: row,
|
|
2707
|
+
fromEnd: end(row) - (rect.top - origin)
|
|
2708
|
+
});
|
|
2709
|
+
};
|
|
2710
|
+
add(rows[first], rows[first].getBoundingClientRect());
|
|
2711
|
+
for (let index = first + 1; index < rows.length; index++) {
|
|
2712
|
+
const row = rows[index];
|
|
2713
|
+
const rect = row.getBoundingClientRect();
|
|
2714
|
+
if (screen(row, rect.top) >= height) break;
|
|
2715
|
+
add(row, rect);
|
|
2716
|
+
}
|
|
2717
|
+
for (let index = first - 1; index >= 0; index--) {
|
|
2718
|
+
const row = rows[index];
|
|
2719
|
+
const rect = row.getBoundingClientRect();
|
|
2720
|
+
if (screen(row, rect.bottom) <= -height) break;
|
|
2721
|
+
add(row, rect);
|
|
2722
|
+
}
|
|
2723
|
+
this.closing = {
|
|
2724
|
+
rows: anchors,
|
|
2725
|
+
content: scrollHeight - this.spacerHeight()
|
|
2726
|
+
};
|
|
2727
|
+
if (typeof requestAnimationFrame === "function") this.closingFrame = requestAnimationFrame(() => {
|
|
2728
|
+
this.closingFrame = requestAnimationFrame(() => {
|
|
2729
|
+
this.closingFrame = null;
|
|
2730
|
+
this.closing = null;
|
|
2731
|
+
});
|
|
2732
|
+
});
|
|
2733
|
+
}
|
|
2734
|
+
dropClosing() {
|
|
2735
|
+
this.closing = null;
|
|
2736
|
+
if (this.closingFrame !== null && typeof cancelAnimationFrame === "function") cancelAnimationFrame(this.closingFrame);
|
|
2737
|
+
this.closingFrame = null;
|
|
2738
|
+
}
|
|
2739
|
+
/**
|
|
2740
|
+
* Keep a following reader's content still after rows closed at once, for example work details at Turn
|
|
2741
|
+
* completion: the first visible row keeps its screen position, or, when it closed, the first surviving row
|
|
2742
|
+
* that followed it on screen, else the nearest surviving row above it. Room below fills the gap, at most half
|
|
2743
|
+
* the scrollport; beyond that the content end stops at the scrollport's middle. Called from the size
|
|
2744
|
+
* observation, after layout and before paint; only the observation of the frame that closed the rows uses
|
|
2745
|
+
* the measurement, and only while the reader still follows the tail with no fold batch, native animation,
|
|
2746
|
+
* unsampled movement, or paging writing positions.
|
|
2747
|
+
*/
|
|
2748
|
+
keepAboveClosing() {
|
|
2749
|
+
const closing = this.closing;
|
|
2750
|
+
const elements = this.elements;
|
|
2751
|
+
const reader = this.reader;
|
|
2752
|
+
if (closing === null) return;
|
|
2753
|
+
this.dropClosing();
|
|
2754
|
+
if (elements === null || reader === null || !reader.follow.active || reader.follow.animating || reader.pending()) return;
|
|
2755
|
+
if (this.paging !== null || this.motion.foldActive() || this.motion.inputActive()) return;
|
|
2756
|
+
const scroller = elements.scroller;
|
|
2757
|
+
const content = scroller.scrollHeight - this.spacerHeight();
|
|
2758
|
+
if (content >= closing.content - .5) return;
|
|
2759
|
+
const height = scroller.clientHeight;
|
|
2760
|
+
const origin = scroller.getBoundingClientRect().top - scroller.scrollTop;
|
|
2761
|
+
const cap = height / 2;
|
|
2762
|
+
let top = content + cap - height;
|
|
2763
|
+
for (const row of closing.rows) {
|
|
2764
|
+
if (!row.element.isConnected || row.element.closest("[hidden]") !== null) continue;
|
|
2765
|
+
const rect = row.element.getBoundingClientRect();
|
|
2766
|
+
if (rect.height === 0) continue;
|
|
2767
|
+
top = rect.top - origin - (height - row.fromEnd);
|
|
2768
|
+
break;
|
|
2769
|
+
}
|
|
2770
|
+
if (top + height - content > cap) top = content + cap - height;
|
|
2771
|
+
top = Math.max(0, top);
|
|
2772
|
+
this.setSpacer(top === 0 ? 0 : Math.max(0, top + height - content));
|
|
2773
|
+
if (scroller.scrollTop !== top) scroller.scrollTop = top;
|
|
2774
|
+
const metrics = scrollMetrics(scroller);
|
|
2775
|
+
this.observation = {
|
|
2776
|
+
top: metrics.top,
|
|
2777
|
+
landing: {
|
|
2778
|
+
metrics,
|
|
2779
|
+
position: null,
|
|
2780
|
+
turn: this.latestTurn
|
|
2781
|
+
}
|
|
2782
|
+
};
|
|
2783
|
+
}
|
|
2100
2784
|
/** Clear fold reservations after a display-mode change, allowing the scroll range to shrink. */
|
|
2101
2785
|
resetBelow() {
|
|
2786
|
+
this.dropClosing();
|
|
2102
2787
|
this.setSpacer(0);
|
|
2103
2788
|
this.invalidate();
|
|
2104
2789
|
}
|
|
@@ -2495,7 +3180,7 @@ window.__ModuleLoader__.load({
|
|
|
2495
3180
|
* @returns element refs, visible reading state, and navigation callbacks.
|
|
2496
3181
|
*/
|
|
2497
3182
|
function useChatScroll(input) {
|
|
2498
|
-
const { ready, order, firstSeq, lastKey, lastIsUser, steeringId, submissionId, running, deferCompletedTurns, loadedTurns, chatScroll, hasMore, loadingOlder, loadOlder, loadThrough, transcriptView } = input;
|
|
3183
|
+
const { ready, order, firstSeq, lastKey, lastIsUser, steeringId, submissionId, submissionSteers, running, deferCompletedTurns, loadedTurns, chatScroll, hasMore, loadingOlder, loadOlder, loadThrough, transcriptView } = input;
|
|
2499
3184
|
const { viewport, listRef, columnRef } = useChatViewport();
|
|
2500
3185
|
const { reading, state } = useChatReading(viewport, chatScroll, loadedTurns.at(-1)?.turn ?? null);
|
|
2501
3186
|
const navigationInput = (0, react.useMemo)(() => ({
|
|
@@ -2524,7 +3209,9 @@ window.__ModuleLoader__.load({
|
|
|
2524
3209
|
const current = content.current.input;
|
|
2525
3210
|
if (!current.ready && !content.current.opened) return;
|
|
2526
3211
|
const previous = content.current.applied;
|
|
2527
|
-
const
|
|
3212
|
+
const steeringInput = current.steeringId !== null && current.steeringId !== previous?.steeringId && current.steeringId !== previous?.submissionId;
|
|
3213
|
+
const submissionInput = current.submissionId !== null && current.submissionId !== previous?.submissionId && current.submissionId !== previous?.steeringId;
|
|
3214
|
+
const ownInput = current.lastIsUser && current.lastKey !== previous?.lastKey || steeringInput || submissionInput;
|
|
2528
3215
|
if (reading.pending && !ownInput) return;
|
|
2529
3216
|
content.current.applied = current;
|
|
2530
3217
|
if (current.ready && !content.current.opened) {
|
|
@@ -2535,8 +3222,9 @@ window.__ModuleLoader__.load({
|
|
|
2535
3222
|
}
|
|
2536
3223
|
if (ownInput) {
|
|
2537
3224
|
navigation.cancel();
|
|
2538
|
-
if (current.deferCompletedTurns && reading.followInputFold()) return;
|
|
2539
|
-
|
|
3225
|
+
if (current.deferCompletedTurns && reading.followInputFold(true)) return;
|
|
3226
|
+
const steering = steeringInput || submissionInput && current.submissionSteers;
|
|
3227
|
+
reading.followTail(current.deferCompletedTurns && !steering ? "smooth" : "instant");
|
|
2540
3228
|
return;
|
|
2541
3229
|
}
|
|
2542
3230
|
if (navigation.contentCommitted()) {
|
|
@@ -2545,7 +3233,7 @@ window.__ModuleLoader__.load({
|
|
|
2545
3233
|
}
|
|
2546
3234
|
if ((previous === null || current.ready !== previous.ready || current.firstSeq !== previous.firstSeq || current.lastKey !== previous.lastKey || current.order.length !== previous.order.length || current.running !== previous.running || current.steeringId !== previous.steeringId || current.submissionId !== previous.submissionId) && reading.followingTail) {
|
|
2547
3235
|
navigation.cancel();
|
|
2548
|
-
if (current.deferCompletedTurns && reading.followInputFold()) return;
|
|
3236
|
+
if (current.deferCompletedTurns && reading.followInputFold(false)) return;
|
|
2549
3237
|
reading.followTail();
|
|
2550
3238
|
} else navigation.reconcile();
|
|
2551
3239
|
}, [reading, navigation]);
|
|
@@ -2603,6 +3291,7 @@ window.__ModuleLoader__.load({
|
|
|
2603
3291
|
lastIsUser,
|
|
2604
3292
|
steeringId,
|
|
2605
3293
|
submissionId,
|
|
3294
|
+
submissionSteers,
|
|
2606
3295
|
running,
|
|
2607
3296
|
loadedTurns,
|
|
2608
3297
|
chatScroll,
|
|
@@ -2631,6 +3320,7 @@ window.__ModuleLoader__.load({
|
|
|
2631
3320
|
lastIsUser,
|
|
2632
3321
|
steeringId,
|
|
2633
3322
|
submissionId,
|
|
3323
|
+
submissionSteers,
|
|
2634
3324
|
running,
|
|
2635
3325
|
loadedTurns,
|
|
2636
3326
|
chatScroll,
|
|
@@ -2676,7 +3366,7 @@ window.__ModuleLoader__.load({
|
|
|
2676
3366
|
}
|
|
2677
3367
|
//#endregion
|
|
2678
3368
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/ChatView.module.css.mjs
|
|
2679
|
-
const css$16 = ".EvIC1a_frame{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative;container-type:inline-size}.EvIC1a_root{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative;overflow:visible clip}.EvIC1a_scroll{min-height:0;padding:16px calc(var(--dsh-composer-side-clearance) + 16px);flex:auto;overflow-y:auto;container-type:inline-size}.EvIC1a_root[data-chat-following-tail] .EvIC1a_scroll,[data-conversation-scroll]:has(.EvIC1a_root[data-chat-following-tail]){overflow-anchor:none}[data-conversation-scroll] .EvIC1a_frame,[data-conversation-scroll] .EvIC1a_root{flex:none;height:auto;min-height:auto}[data-conversation-scroll] .EvIC1a_scroll{flex:none;min-height:auto;overflow:visible}.EvIC1a_column{max-width:var(--dsh-chat-content-width);flex-direction:column;width:100%;margin:0 auto;display:flex}:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)))~:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))),.EvIC1a_column:has(>.EvIC1a_older)>[data-slot=\"conversation.chat.flow\"]>:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))){margin-top:var(--dsh-chat-flow-gap,6px)}.EvIC1a_flowItem[data-chat-group-part=response],:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>[data-chat-group-part=response]:not([hidden]):not(:empty)+:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))):not(.EvIC1a_running){--dsh-chat-flow-gap:12px}.EvIC1a_flowItem{min-width:0}.EvIC1a_turnSpacer{height:0}.EvIC1a_column[data-chat-motion]>:not([data-chat-motion]),.EvIC1a_column[data-chat-motion]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:margin-top .16s cubic-bezier(.4,0,.2,1)}.EvIC1a_column[data-input-fold]>:not([data-chat-motion]),.EvIC1a_column[data-input-fold]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:none}@media (prefers-reduced-motion:reduce){.EvIC1a_column[data-chat-motion]>:not([data-chat-motion]),.EvIC1a_column[data-chat-motion]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:none}}.EvIC1a_flowItem[data-chat-flow-kind=turn-process],.EvIC1a_flowItem[data-turn-process-answer],:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>[data-chat-flow-kind=turn-process]+:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))):not(.EvIC1a_running){--dsh-chat-flow-gap:16px}.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)){height:0}.EvIC1a_callRow{border-radius:var(--dsw-radius-sm)}.EvIC1a_hint{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.EvIC1a_running{--dsh-chat-flow-gap:12px;--dsw-alias-label-shimmer:var(--dsw-alias-label-deep-diving-shimmer);color:var(--dsw-alias-label-deep-diving);font-size:calc(var(--dsh-content-font-size,14px) - 2px);line-height:calc(22px + var(--dsh-content-font-delta,0px));flex-direction:column;align-items:flex-start;display:flex}:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>:nth-last-child(2 of :not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)))):is(.EvIC1a_flowItem:not([data-chat-flow-kind=user]):not([data-chat-flow-kind=steering]):not([data-chat-flow-kind=turn-trigger]),[data-chat-group-key])~.EvIC1a_running>.EvIC1a_runningDivider{display:block}.EvIC1a_runningDivider{background:color-mix(in srgb, var(--dsw-alias-border-l1) 75%, var(--dsw-alias-border-l2));pointer-events:none;width:100%;height:.5px;margin:8px 0 10px;display:none}.EvIC1a_runningContent{align-items:center;gap:6px;min-width:0;display:inline-flex}.EvIC1a_runningText{font-variant-numeric:tabular-nums;min-width:0}.EvIC1a_runningIcon{width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px));contain:strict;flex:none;display:inline-flex;position:relative;overflow:hidden}.EvIC1a_runningWhaleAnimated{display:none;position:absolute;inset:0}.EvIC1a_runningWhaleStill{display:initial}@supports (mask-mode:alpha) and (mask-image:url('')){@media (prefers-reduced-motion:no-preference) and (forced-colors:none){.EvIC1a_runningWhaleAnimated{will-change:transform;background:currentColor;display:block;mask:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAQAAADYBBcfAAAACXBIWXMAAAAAAAAAAQCEeRdzAAAACGFjVEwAAAA8AAAAAO2clZcAAAAaZmNUTAAAAAAAAAAcAAAAHAAAAAAAAAAAAAEAFAAA0ML43AAAAZ1JREFUeNrdU80rRFEU/z0fjUhNLNRrMiYmNhbCZmxZm5WFZmVjISULKRul7A3+AKRGTcmsNEq9hY9SYxSjhHwkZESjkPH1m/G688ybxx1Lv9d959xzzu++c849T8EfUSi0FizBjk185HtEEG8kraMLFfnQCpDAIaZITT0bGIFLNuUXrFI6MQgNSZKTmEa5DHUbj7DpeikTjpG8zEx+xRwDh77lsEhLn1W4IrQmVpZ67wuLHdc4wiyaeUAUIexaHdLDgDPUGSzzerO+nggGUJWbOkz3LVrFvpKpNrLianRiEnFxhIaSbGovza/otijLg1EE0lS32e3FHR0+yyb66R3L7arBFR5yVuPAAmlhQ0uz0E+319BdN9poC+CZdr+5vgwmGO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AAAAQAUAADR6ceaAAAAD2ZkQVQAAAByeNpjZGAAAAAGAAKSapxEAAAAGmZjVEwAAABzAAAAAQAAAAEAAAAAAAAAAAABABQAADx/FHMAAAAPZmRBVAAAAHR42mNkYAAAAAYAAn1XOaQAAAAaZmNUTAAAAHUAAAABAAAAAQAAAAAAAAAAAAEAFAAA0bVmCQAAAA9mZEFUAAAAdnjaY2RgAAAABgACkWynOwAAAABJRU5ErkJggg==) 50%/100% 100% no-repeat alpha}.EvIC1a_runningWhaleStill{display:none}}}.EvIC1a_openError{color:var(--dsw-alias-state-error-primary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.EvIC1a_older{justify-content:center;display:flex}.EvIC1a_older button{border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover-solid);cursor:pointer;border:none;padding:4px 12px;font-size:12px}.EvIC1a_older button:disabled{cursor:default;opacity:.6}.EvIC1a_toBottomSlot{z-index:8;height:0;padding-right:max(calc(var(--dsh-composer-side-clearance) + 16px), calc((100% - var(--dsh-chat-content-width)) / 2));pointer-events:none;justify-content:flex-end;display:flex;position:absolute;bottom:16px;left:0;right:0}[data-conversation-scroll] .EvIC1a_toBottomSlot{bottom:calc(var(--dsh-composer-height,152px) + 16px);position:sticky}.EvIC1a_toBottom{--dsw-elevation-stroke-color:var(--dsw-alias-border-l3);corner-shape:round;width:34px;height:34px;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-button-floating-fill);box-shadow:var(--dsw-elevation-panel);cursor:pointer;pointer-events:auto;border:0;border-radius:100px;justify-content:center;align-items:center;margin-top:-34px;padding:0;display:flex}.EvIC1a_toBottom:hover{background:var(--dsw-alias-button-floating-hover)}.EvIC1a_modalAction{min-width:72px}";
|
|
3369
|
+
const css$16 = ".EvIC1a_frame{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative;container-type:inline-size}.EvIC1a_root{flex-direction:column;flex:auto;min-height:0;display:flex;position:relative;overflow:visible clip}.EvIC1a_scroll{min-height:0;padding:16px calc(var(--dsh-composer-side-clearance) + 16px);flex:auto;overflow:clip auto;container-type:inline-size}.EvIC1a_root[data-chat-following-tail] .EvIC1a_scroll,[data-conversation-scroll]:has(.EvIC1a_root[data-chat-following-tail]){overflow-anchor:none}[data-conversation-scroll] .EvIC1a_frame,[data-conversation-scroll] .EvIC1a_root{flex:none;height:auto;min-height:auto}[data-conversation-scroll] .EvIC1a_scroll{flex:none;min-height:auto;overflow:clip visible}.EvIC1a_column{max-width:var(--dsh-chat-content-width);flex-direction:column;width:100%;margin:0 auto;display:flex;position:relative}:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>:not([hidden]):not(.EvIC1a_textInteraction):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)))~:not([hidden]):not(.EvIC1a_textInteraction):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))),.EvIC1a_column>.EvIC1a_older+[data-slot=\"conversation.chat.flow\"]>:not([hidden]):not(.EvIC1a_textInteraction):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))){margin-top:var(--dsh-chat-flow-gap,4px)}.EvIC1a_flowItem[data-chat-group-part=response],:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>[data-chat-group-part=response]:not([hidden]):not(:empty)+:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))):not(.EvIC1a_running):not(:has(>[data-slot=\"conversation.chat.node\"]>[data-chat-steering-batch])){--dsh-chat-flow-gap:12px}.EvIC1a_flowItem{min-width:0}.EvIC1a_turnSpacer{height:0}.EvIC1a_column[data-chat-motion]>:not([data-chat-motion]),.EvIC1a_column[data-chat-motion]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:margin-top .16s cubic-bezier(.4,0,.2,1)}.EvIC1a_column[data-input-fold]>:not([data-chat-motion]),.EvIC1a_column[data-input-fold]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:none}.EvIC1a_column[data-chat-motion]>[data-chat-flow-kind=turn-process],.EvIC1a_column[data-chat-motion]>[data-slot=\"conversation.chat.flow\"]>[data-chat-flow-kind=turn-process]{transition:none}@media (prefers-reduced-motion:reduce){.EvIC1a_column[data-chat-motion]>:not([data-chat-motion]),.EvIC1a_column[data-chat-motion]>[data-slot=\"conversation.chat.flow\"]>:not([data-chat-motion]){transition:none}}.EvIC1a_flowItem[data-chat-flow-kind=turn-process],:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>[data-chat-flow-kind=turn-process]:not(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))+:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))):not(.EvIC1a_running):not(:has(>[data-slot=\"conversation.chat.node\"]>[data-chat-steering-batch])),:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>[data-chat-flow-kind=turn-process]+:not([hidden]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty))):not(.EvIC1a_running):not([data-submission-echo],[data-pending-steering]):not(:has(>[data-slot=\"conversation.chat.node\"]>[data-chat-steering-batch])){--dsh-chat-flow-gap:16px}:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>.EvIC1a_flowItem:has(>[data-slot=\"conversation.chat.node\"]>[data-chat-steering-batch=start]){--dsh-chat-flow-gap:calc(44px + var(--dsh-content-font-delta,0px))}.EvIC1a_running+[data-pending-steering]{--dsh-chat-flow-gap:0px}.EvIC1a_flowItem[data-chat-flow-kind=turn-tail]+.EvIC1a_running{display:none}@media (prefers-reduced-motion:no-preference){:where(.EvIC1a_column>[data-slot=\"conversation.chat.flow\"]>.EvIC1a_flowItem[data-chat-flow-kind=steering])+.EvIC1a_running{animation:.14s cubic-bezier(.2,.8,.2,1) EvIC1a_running-enters-slot}.EvIC1a_column[data-input-fold] .EvIC1a_running{animation-duration:0s}}@keyframes EvIC1a_running-enters-slot{0%{opacity:0;translate:0 calc(-44px - var(--dsh-content-font-delta,0px))}40%{opacity:1}}.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)){height:0}.EvIC1a_callRow{border-radius:var(--dsw-radius-sm)}.EvIC1a_hint{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.EvIC1a_running{--dsh-chat-flow-gap:12px;--dsw-alias-label-shimmer:var(--dsw-alias-label-deep-diving-shimmer);color:var(--dsw-alias-label-deep-diving);font-size:calc(var(--dsh-content-font-size,14px) - 2px);line-height:calc(22px + var(--dsh-content-font-delta,0px));flex-direction:column;align-items:flex-start;display:flex;position:relative}.EvIC1a_running[data-holding]{visibility:hidden;opacity:0}:is(.EvIC1a_column,[data-slot=\"conversation.chat.flow\"])>:nth-last-child(2 of :not([hidden]):not([data-pending-steering]):not(.EvIC1a_flowItem:is(:empty,:has(>[data-slot=\"conversation.chat.node\"]:empty)))):is(.EvIC1a_flowItem:not([data-chat-flow-kind=user]):not([data-chat-flow-kind=steering]):not([data-chat-flow-kind=turn-trigger]),[data-chat-group-key])~.EvIC1a_running>.EvIC1a_runningDivider{opacity:1}.EvIC1a_runningDivider{background:color-mix(in srgb, var(--dsw-alias-border-l1) 75%, var(--dsw-alias-border-l2));opacity:0;pointer-events:none;height:.5px;position:absolute;top:-4px;left:0;right:0}@media (prefers-reduced-motion:no-preference){.EvIC1a_runningDivider{transition:opacity .16s}}.EvIC1a_runningContent{min-width:0;height:calc(28px + var(--dsh-content-font-delta,0px));align-items:center;gap:6px;margin-top:4px;display:inline-flex}.EvIC1a_runningText{font-variant-numeric:tabular-nums;min-width:0}.EvIC1a_runningIcon{width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px));contain:strict;flex:none;display:inline-flex;position:relative;overflow:hidden}.EvIC1a_runningWhaleAnimated{display:none;position:absolute;inset:0}.EvIC1a_runningWhaleStill{display:initial}@supports (mask-mode:alpha) and (mask-image:url('')){@media (prefers-reduced-motion:no-preference) and (forced-colors:none){.EvIC1a_runningWhaleAnimated{will-change:transform;background:currentColor;display:block;mask:url(" + require.asset("plugins/@deepseek-ai/dsh-client-ui-chat/assets/running-whale%402x-06738fa29b2f.png") + ") 50%/100% 100% no-repeat alpha}.EvIC1a_runningWhaleStill{display:none}}}.EvIC1a_openError{color:var(--dsw-alias-state-error-primary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.EvIC1a_older{justify-content:center;display:flex}.EvIC1a_older button{border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover-solid);cursor:pointer;border:none;padding:4px 12px;font-size:12px}.EvIC1a_older button:disabled{cursor:default;opacity:.6}.EvIC1a_toBottomSlot{z-index:8;height:0;padding-right:max(calc(var(--dsh-composer-side-clearance) + 16px), calc((100% - var(--dsh-chat-content-width)) / 2));pointer-events:none;justify-content:flex-end;display:flex;position:absolute;bottom:16px;left:0;right:0}[data-conversation-scroll] .EvIC1a_toBottomSlot{bottom:calc(var(--dsh-composer-height,152px) + 16px);position:sticky}.EvIC1a_toBottom{--dsw-elevation-stroke-color:var(--dsw-alias-border-l3);corner-shape:round;width:34px;height:34px;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-button-floating-fill);box-shadow:var(--dsw-elevation-panel);cursor:pointer;pointer-events:auto;border:0;border-radius:100px;justify-content:center;align-items:center;margin-top:-34px;padding:0;display:flex}@media (hover:hover){.EvIC1a_toBottom:hover{background:var(--dsw-alias-button-floating-hover)}}.EvIC1a_modalAction{min-width:72px}.EvIC1a_column>.EvIC1a_textInteraction{z-index:6;visibility:hidden;width:max-content;margin:0;position:absolute}";
|
|
2680
3370
|
const tagId$16 = "@deepseek-ai/dsh-client-ui-chat/ChatView.module.css";
|
|
2681
3371
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$16) + "]") === null) {
|
|
2682
3372
|
const tag = document.createElement("style");
|
|
@@ -2696,6 +3386,7 @@ window.__ModuleLoader__.load({
|
|
|
2696
3386
|
"openError": "EvIC1a_openError",
|
|
2697
3387
|
"root": "EvIC1a_root",
|
|
2698
3388
|
"running": "EvIC1a_running",
|
|
3389
|
+
"running-enters-slot": "EvIC1a_running-enters-slot",
|
|
2699
3390
|
"runningContent": "EvIC1a_runningContent",
|
|
2700
3391
|
"runningDivider": "EvIC1a_runningDivider",
|
|
2701
3392
|
"runningIcon": "EvIC1a_runningIcon",
|
|
@@ -2703,6 +3394,7 @@ window.__ModuleLoader__.load({
|
|
|
2703
3394
|
"runningWhaleAnimated": "EvIC1a_runningWhaleAnimated",
|
|
2704
3395
|
"runningWhaleStill": "EvIC1a_runningWhaleStill",
|
|
2705
3396
|
"scroll": "EvIC1a_scroll",
|
|
3397
|
+
"textInteraction": "EvIC1a_textInteraction",
|
|
2706
3398
|
"toBottom": "EvIC1a_toBottom",
|
|
2707
3399
|
"toBottomSlot": "EvIC1a_toBottomSlot",
|
|
2708
3400
|
"turnSpacer": "EvIC1a_turnSpacer"
|
|
@@ -2741,7 +3433,7 @@ window.__ModuleLoader__.load({
|
|
|
2741
3433
|
* The chat view slot entry: pure component over the composed props; each
|
|
2742
3434
|
* ordered business Node crosses the keyed renderer seat.
|
|
2743
3435
|
*/
|
|
2744
|
-
function ChatView({ useSession, useChat, useConversation, useSessions, renderSlot, sessionId, openFile, openExternalLink, loadOlder, loadThrough, loadImage, inspectCall, chatScroll, forkAt, fileMentions, usePresentation, useProjection, t }) {
|
|
3436
|
+
function ChatView({ useSession, useChat, useConversation, useSessions, renderSlot, sessionId, openFile, openExternalLink, loadOlder, loadThrough, loadImage, inspectCall, chatScroll, forkAt, fileMentions, usePresentation, useProjection, useInteractionIds, dispatchInteraction, t, fileDrag }) {
|
|
2745
3437
|
const order = useChat((s) => s.order);
|
|
2746
3438
|
const groupedEntries = useConversation((snapshot) => snapshot.views.grouped("chat")?.entries);
|
|
2747
3439
|
const entries = (0, react.useMemo)(() => groupedEntries ?? order.map((key) => ({
|
|
@@ -2757,7 +3449,9 @@ window.__ModuleLoader__.load({
|
|
|
2757
3449
|
const inbox = useProjection("inbox");
|
|
2758
3450
|
const cwd = useSessions((s) => s.byId[sessionId]?.cwd);
|
|
2759
3451
|
const fileImages = (0, react.useMemo)(() => ({
|
|
3452
|
+
fileDrag,
|
|
2760
3453
|
resolve: (path) => fileMediaUrl(document.baseURI, resolveWorkspacePath(cwd, path)),
|
|
3454
|
+
resourceAddress: (path) => sessionFileAddress(sessionId, resolveWorkspacePath(cwd, path)),
|
|
2761
3455
|
labels: {
|
|
2762
3456
|
open: t("image.open"),
|
|
2763
3457
|
loading: t("image.loading"),
|
|
@@ -2765,7 +3459,12 @@ window.__ModuleLoader__.load({
|
|
|
2765
3459
|
dialog: t("image.dialog"),
|
|
2766
3460
|
close: t("image.close")
|
|
2767
3461
|
}
|
|
2768
|
-
}), [
|
|
3462
|
+
}), [
|
|
3463
|
+
cwd,
|
|
3464
|
+
t,
|
|
3465
|
+
fileDrag,
|
|
3466
|
+
sessionId
|
|
3467
|
+
]);
|
|
2769
3468
|
const running = useSession((s) => s.running);
|
|
2770
3469
|
const [motionTail, setMotionTail] = (0, react.useState)(false);
|
|
2771
3470
|
(0, react.useEffect)(() => {
|
|
@@ -2860,9 +3559,13 @@ window.__ModuleLoader__.load({
|
|
|
2860
3559
|
lastIsUser: lastKey !== null && nodeStore.get(lastKey)?.kind === "user",
|
|
2861
3560
|
steeringId,
|
|
2862
3561
|
submissionId: visibleSubmissions.at(-1)?.requestId ?? null,
|
|
3562
|
+
submissionSteers: visibleSubmissions.at(-1)?.placement === "steering",
|
|
2863
3563
|
loadedTurns: turnNavigationItems,
|
|
2864
3564
|
transcriptView
|
|
2865
3565
|
});
|
|
3566
|
+
const interactionSurfaceRef = (0, react.useRef)(null);
|
|
3567
|
+
const interactionIds = useInteractionIds((ids) => ids);
|
|
3568
|
+
const textInteraction = useTextInteraction(scroll.columnRef, interactionSurfaceRef, dispatchInteraction, interactionIds);
|
|
2866
3569
|
const flowContext = (0, react.useMemo)(() => ({ motion: scroll.motion }), [scroll.motion]);
|
|
2867
3570
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
2868
3571
|
className: ChatView_module_css_default.frame,
|
|
@@ -2922,6 +3625,18 @@ window.__ModuleLoader__.load({
|
|
|
2922
3625
|
loadImage,
|
|
2923
3626
|
fileMentions
|
|
2924
3627
|
}, { hookContext: flowContext })
|
|
3628
|
+
}),
|
|
3629
|
+
(0, react_jsx_runtime.jsx)("div", {
|
|
3630
|
+
ref: interactionSurfaceRef,
|
|
3631
|
+
className: ChatView_module_css_default.textInteraction,
|
|
3632
|
+
"data-text-interaction-surface": "",
|
|
3633
|
+
"aria-hidden": textInteraction.active === null,
|
|
3634
|
+
children: textInteraction.active !== null && renderSlot("conversation.chat.text-interaction", {
|
|
3635
|
+
trigger: textInteraction.active.trigger,
|
|
3636
|
+
readText: textInteraction.readText,
|
|
3637
|
+
dismiss: textInteraction.dismiss,
|
|
3638
|
+
clearSelection: textInteraction.clearSelection
|
|
3639
|
+
}, { entryKey: textInteraction.active.id })
|
|
2925
3640
|
})
|
|
2926
3641
|
]
|
|
2927
3642
|
}), (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -3617,6 +4332,21 @@ window.__ModuleLoader__.load({
|
|
|
3617
4332
|
throw new Error(`unreachable variant${context ? ` in ${context}` : ""}: ${rendered}`);
|
|
3618
4333
|
}
|
|
3619
4334
|
//#endregion
|
|
4335
|
+
//#region lib/types/client/contract/assistant-content.js
|
|
4336
|
+
/**
|
|
4337
|
+
* Test whether Assistant blocks contain a user-facing reply rather than only
|
|
4338
|
+
* reasoning or Tool-call protocol material.
|
|
4339
|
+
* @param blocks - Assistant content blocks.
|
|
4340
|
+
* @returns whether the blocks contain visible reply content.
|
|
4341
|
+
*/
|
|
4342
|
+
function hasAssistantReplyContent(blocks) {
|
|
4343
|
+
return blocks.some((block) => {
|
|
4344
|
+
if (block.kind === "reasoning" || block.kind === "tool-call") return false;
|
|
4345
|
+
if (block.kind === "text") return block.text.trim() !== "";
|
|
4346
|
+
return true;
|
|
4347
|
+
});
|
|
4348
|
+
}
|
|
4349
|
+
//#endregion
|
|
3620
4350
|
//#region lib/types/client/contract/turn-process.js
|
|
3621
4351
|
/**
|
|
3622
4352
|
* Compare immutable Turn-process specifications by their published fields.
|
|
@@ -3729,28 +4459,30 @@ window.__ModuleLoader__.load({
|
|
|
3729
4459
|
alwaysOpen
|
|
3730
4460
|
]);
|
|
3731
4461
|
const foldCompleted = usePresentation((policy) => policy.foldCompletedTurns);
|
|
4462
|
+
const keepReplies = usePresentation((policy) => policy.foldedReplies === "all");
|
|
3732
4463
|
const processWindowReady = processSpec !== void 0 && processPresentation !== void 0 && foldCompleted && processPresentation.turn === processSpec.turn && (processPresentation.turnStarted || processPresentation.turnClosed);
|
|
3733
|
-
const
|
|
4464
|
+
const replyRow = keepReplies && routedNode?.kind === "assistant-step" && groupPart !== "reasoning" && hasAssistantReplyContent(routedNode.data.blocks);
|
|
4465
|
+
const processMember = routedNode !== void 0 && processWindowReady && !replyRow && !isAtOrOutside(routedNode, "turn") && routedNode.anchorSeq >= processSpec.processStartSeq && (liveProcess || processSpec.answerAnchorSeq === null || routedNode.anchorSeq < processSpec.answerAnchorSeq || groupPart === "reasoning" && routedNode.kind === "assistant-step" && routedNode.data.step === processSpec.answerStep);
|
|
3734
4466
|
const processAnswer = routedNode !== void 0 && processWindowReady && !liveProcess && groupPart !== "reasoning" && routedNode.kind === "assistant-step" && routedNode.data.step === processSpec.answerStep;
|
|
3735
|
-
const ownsDisclosure = routedNode?.kind === "turn-process" || processAnswer;
|
|
4467
|
+
const ownsDisclosure = routedNode?.kind === "turn-process" || processAnswer || replyRow;
|
|
3736
4468
|
const foldable = processWindowReady && (liveProcess || processMember || ownsDisclosure);
|
|
3737
4469
|
const turnProcess = (0, react.useMemo)(() => processSpec === void 0 ? void 0 : {
|
|
3738
4470
|
spec: processSpec,
|
|
3739
4471
|
foldable,
|
|
3740
|
-
hasContent: !interleavedInput && (processPresentation?.
|
|
4472
|
+
hasContent: !interleavedInput && (processSpec.inlineReasoning || (keepReplies ? processPresentation?.hasNonReplyProcess === true : processPresentation?.hasExternalProcess === true)),
|
|
3741
4473
|
open: processOpen,
|
|
3742
4474
|
setOpen
|
|
3743
4475
|
}, [
|
|
3744
4476
|
foldable,
|
|
3745
4477
|
interleavedInput,
|
|
4478
|
+
keepReplies,
|
|
3746
4479
|
processOpen,
|
|
3747
4480
|
processSpec,
|
|
3748
4481
|
processPresentation?.hasExternalProcess,
|
|
4482
|
+
processPresentation?.hasNonReplyProcess,
|
|
3749
4483
|
setOpen
|
|
3750
4484
|
]);
|
|
3751
|
-
const
|
|
3752
|
-
const compactAnswer = processAnswer && foldable && processPresentation.compactAnswer && !processOpen;
|
|
3753
|
-
const processHidden = controllerInactive || foldable && processMember && !processOpen;
|
|
4485
|
+
const processHidden = routedNode?.kind === "turn-process" && foldCompleted && !foldable || foldable && processMember && !processOpen;
|
|
3754
4486
|
const wrapperRef = useGroupAction(processHidden, (0, react.useCallback)(() => {
|
|
3755
4487
|
if (processMember) setOpen(true);
|
|
3756
4488
|
}, [processMember, setOpen]));
|
|
@@ -3811,7 +4543,6 @@ window.__ModuleLoader__.load({
|
|
|
3811
4543
|
"data-chat-turn": turn,
|
|
3812
4544
|
"data-turn-process-member": processMember || void 0,
|
|
3813
4545
|
"data-turn-process-hidden": processHidden || void 0,
|
|
3814
|
-
"data-turn-process-answer": compactAnswer || void 0,
|
|
3815
4546
|
children: renderSlot("conversation.chat.node", routedOwner, {
|
|
3816
4547
|
entryKey: routedNode.kind,
|
|
3817
4548
|
hookContext,
|
|
@@ -4012,7 +4743,7 @@ window.__ModuleLoader__.load({
|
|
|
4012
4743
|
}
|
|
4013
4744
|
//#endregion
|
|
4014
4745
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/ChatGroupSeat.module.css.mjs
|
|
4015
|
-
const css$15 = ".O_Ebla_root{min-width:0}.O_Ebla_title{max-width:100%;color:var(--dsw-alias-label-tertiary);font:inherit;font-size:var(--dsh-content-font-size,14px);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;transition:color .1s;display:flex}.O_Ebla_title:hover{color:var(--dsw-alias-label-secondary)}.O_Ebla_leading{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px));color:inherit;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.O_Ebla_leading svg{width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px))}.O_Ebla_leading svg[width=\"16\"]{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px))}.O_Ebla_activityIcon,.O_Ebla_chevron{justify-content:center;align-items:center;transition:opacity .1s;display:inline-flex;position:absolute;inset:0}.O_Ebla_activityIcon{opacity:1}.O_Ebla_chevron,.O_Ebla_title:
|
|
4746
|
+
const css$15 = ".O_Ebla_root{min-width:0}.O_Ebla_title{max-width:100%;color:var(--dsw-alias-label-tertiary);font:inherit;font-size:var(--dsh-content-font-size,14px);line-height:calc(24px + var(--dsh-content-font-delta,0px));text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;transition:color .1s;display:flex}@media (hover:hover){.O_Ebla_title:hover{color:var(--dsw-alias-label-secondary)}}.O_Ebla_leading{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px));color:inherit;flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.O_Ebla_leading svg{width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px))}.O_Ebla_leading svg[width=\"16\"]{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px))}.O_Ebla_activityIcon,.O_Ebla_chevron{justify-content:center;align-items:center;transition:opacity .1s;display:inline-flex;position:absolute;inset:0}.O_Ebla_activityIcon{opacity:1}.O_Ebla_chevron,.O_Ebla_title:focus-visible .O_Ebla_activityIcon{opacity:0}@media (hover:hover){.O_Ebla_title:hover .O_Ebla_activityIcon{opacity:0}}.O_Ebla_title:focus-visible .O_Ebla_chevron{opacity:1}@media (hover:hover){.O_Ebla_title:hover .O_Ebla_chevron{opacity:1}}.O_Ebla_title[aria-expanded=true] .O_Ebla_activityIcon{opacity:0}.O_Ebla_title[aria-expanded=true] .O_Ebla_chevron{opacity:1}.O_Ebla_title[aria-expanded=true]{padding-bottom:8px}.O_Ebla_body{--dsh-chat-flow-gap:4px;overscroll-behavior-y:auto;scrollbar-gutter:stable;max-height:min(400px,50vh);overflow-y:auto}.O_Ebla_label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.O_Ebla_fadeTop{mask-image:linear-gradient(#0000 0,#000 24px 100%)}.O_Ebla_fadeBottom{mask-image:linear-gradient(#000 0 calc(100% - 24px),#0000 100%)}.O_Ebla_fadeTop.O_Ebla_fadeBottom{mask-image:linear-gradient(#0000 0,#000 24px calc(100% - 24px),#0000 100%)}@media (prefers-reduced-motion:reduce){.O_Ebla_title,.O_Ebla_activityIcon,.O_Ebla_chevron{transition:none}}.O_Ebla_content{flex-direction:column;display:flex}.O_Ebla_content>*{flex-shrink:0}.O_Ebla_content>:not([hidden]):not(:empty)~:not([hidden]):not(:empty){margin-top:var(--dsh-chat-flow-gap,4px)}.O_Ebla_expandedBody{scrollbar-gutter:auto;max-height:none;overflow:visible}[data-chat-motion] .O_Ebla_content>:not([data-chat-motion]){transition:margin-top .16s cubic-bezier(.4,0,.2,1)}@media (prefers-reduced-motion:reduce){[data-chat-motion] .O_Ebla_content>:not([data-chat-motion]){transition:none}}";
|
|
4016
4747
|
const tagId$15 = "@deepseek-ai/dsh-client-ui-chat/ChatGroupSeat.module.css";
|
|
4017
4748
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$15) + "]") === null) {
|
|
4018
4749
|
const tag = document.createElement("style");
|
|
@@ -4195,8 +4926,11 @@ window.__ModuleLoader__.load({
|
|
|
4195
4926
|
open,
|
|
4196
4927
|
setOpen
|
|
4197
4928
|
]);
|
|
4929
|
+
const shownCap = !grouped ? false : open ? true : void 0;
|
|
4930
|
+
const [closingCap, setClosingCap] = (0, react.useState)(shownCap ?? true);
|
|
4931
|
+
if (shownCap !== void 0 && shownCap !== closingCap) setClosingCap(shownCap);
|
|
4198
4932
|
if (members === void 0) return null;
|
|
4199
|
-
const capped = grouped && (!deferCompletedTurns ||
|
|
4933
|
+
const capped = grouped && (!deferCompletedTurns || (shownCap ?? closingCap));
|
|
4200
4934
|
const classes = [
|
|
4201
4935
|
ChatGroupSeat_module_css_default.body,
|
|
4202
4936
|
!capped ? ChatGroupSeat_module_css_default.expandedBody : "",
|
|
@@ -4269,7 +5003,7 @@ window.__ModuleLoader__.load({
|
|
|
4269
5003
|
}
|
|
4270
5004
|
//#endregion
|
|
4271
5005
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/MessageItem.module.css.mjs
|
|
4272
|
-
const css$14 = ".Sixlwa_userRow{flex-direction:column;align-items:flex-end;gap:6px;display:flex}.Sixlwa_userStack{min-width:0;max-width:min(calc(var(--dsh-chat-content-width,748px) * .702), 82%);flex-direction:column;align-items:flex-end;gap:8px;display:flex}.
|
|
5006
|
+
const css$14 = ".Sixlwa_userRow{flex-direction:column;align-items:flex-end;gap:6px;display:flex}.Sixlwa_userStack{min-width:0;max-width:min(calc(var(--dsh-chat-content-width,748px) * .702), 82%);flex-direction:column;align-items:flex-end;gap:8px;display:flex}.Sixlwa_referenceSummary{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px))}.Sixlwa_contextRow{padding:2px 0}.Sixlwa_compactionRow{--dsh-compaction-header-height:calc(24px + var(--dsh-content-font-delta,0px));padding:2px 0}.Sixlwa_compactionButton{width:100%;height:var(--dsh-compaction-header-height);border-radius:var(--dsw-radius-sm);min-width:0;color:var(--dsw-alias-label-tertiary);font:inherit;text-align:left;background:0 0;border:none;align-items:center;padding:0;transition:color .1s;display:flex}.Sixlwa_compactionRow:has(.Sixlwa_compactionBody) .Sixlwa_compactionButton{z-index:7;background:var(--dsw-alias-bg-base);border-radius:0;position:sticky;top:0}.Sixlwa_compactionBody :has(>[data-code-block-banner]){top:var(--dsh-compaction-header-height)}@media (hover:hover){.Sixlwa_compactionRow:has(.Sixlwa_compactionBody) .Sixlwa_compactionButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid)}}.Sixlwa_compactionButton:not(:disabled){cursor:pointer}@media (hover:hover){.Sixlwa_compactionButton:hover{color:var(--dsw-alias-label-secondary)}.Sixlwa_compactionButton:not(:disabled):hover{background:var(--dsw-alias-interactive-bg-hover)}}.Sixlwa_compactionLeading{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px));color:inherit;flex:none;place-items:center;margin-right:6px;display:inline-grid}.Sixlwa_compactionLeading svg{width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px))}.Sixlwa_compactionContextIcon,.Sixlwa_compactionDisclosureIcon{grid-area:1/1;justify-content:center;align-items:center;display:inline-flex}.Sixlwa_compactionDisclosureIcon,.Sixlwa_compactionButton:not(:disabled):focus-visible .Sixlwa_compactionContextIcon{opacity:0}@media (hover:hover){.Sixlwa_compactionButton:not(:disabled):hover .Sixlwa_compactionContextIcon{opacity:0}}.Sixlwa_compactionButton:not(:disabled):focus-visible .Sixlwa_compactionDisclosureIcon{opacity:1}@media (hover:hover){.Sixlwa_compactionButton:not(:disabled):hover .Sixlwa_compactionDisclosureIcon{opacity:1}}.Sixlwa_compactionTitle{font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));color:inherit;flex:none}.Sixlwa_compactionSep{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.Sixlwa_compactionSummary{min-width:0;color:inherit;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.Sixlwa_compactionBody{padding:4px 0 4px calc(22px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px))}.Sixlwa_retryRow{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px))}.Sixlwa_retrySummary{border-radius:var(--dsw-radius-sm);width:fit-content;max-width:100%;color:inherit;cursor:pointer;user-select:none;align-items:center;gap:7px;padding:2px 0;list-style:none;display:inline-flex}.Sixlwa_retrySummary::-webkit-details-marker{display:none}.Sixlwa_retrySummary:after{content:\"\";border-bottom:1.5px solid;border-right:1.5px solid;flex:none;width:6px;height:6px;margin-right:2px;transition:transform .12s;transform:rotate(-45deg)}@media (hover:hover){.Sixlwa_retrySummary:hover{color:var(--dsw-alias-label-secondary)}}@media (prefers-reduced-motion:reduce){.Sixlwa_compactionButton{transition:none}}.Sixlwa_retrySummary:focus-visible{outline:1.5px solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}.Sixlwa_retryText{overflow-wrap:anywhere;min-width:0}.Sixlwa_retryRow[open] .Sixlwa_retrySummary:after{transform:rotate(45deg)}.Sixlwa_retryDetails{overflow-wrap:anywhere;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px));gap:2px;margin-top:3px;padding-left:14px;display:grid}.Sixlwa_retryDetailLabel{color:var(--dsw-alias-label-secondary)}.Sixlwa_turnErrorRow{font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));grid-template-columns:10px minmax(0,1fr) auto;align-items:start;gap:8px;padding:2px 0;display:grid}.Sixlwa_turnErrorDot{margin-top:5px}.Sixlwa_turnErrorCopy{overflow-wrap:anywhere;min-width:0}.Sixlwa_turnErrorTitle{color:var(--dsw-alias-state-error-primary);margin-right:6px;font-weight:600}.Sixlwa_turnErrorMessage{color:var(--dsw-alias-label-secondary)}.Sixlwa_turnErrorCode{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-markdown-code-block-small)}.Sixlwa_maxTokensTitle{color:var(--dsw-alias-state-warn-primary);margin-right:6px;font-weight:600}.Sixlwa_attachmentRow{flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:100%;display:flex}.Sixlwa_fileCard{border:.5px solid var(--dsw-alias-border-l2,#0000001f);border-radius:var(--dsw-radius-lg);background:var(--dsw-specific-input-major,transparent);box-sizing:border-box;flex:0 0 240px;align-items:center;gap:10px;width:240px;min-height:64px;padding:8px 12px;display:inline-flex}.Sixlwa_fileIcon{flex:none;width:28px;height:28px}.Sixlwa_fileContent{flex-direction:column;flex:1;min-width:0;display:flex}.Sixlwa_fileName{white-space:nowrap;text-overflow:ellipsis;color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px;overflow:hidden}.Sixlwa_fileMeta{white-space:nowrap;text-overflow:ellipsis;color:var(--dsw-alias-label-tertiary,#00000073);font-size:12px;line-height:15px;overflow:hidden}";
|
|
4273
5007
|
const tagId$14 = "@deepseek-ai/dsh-client-ui-chat/MessageItem.module.css";
|
|
4274
5008
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$14) + "]") === null) {
|
|
4275
5009
|
const tag = document.createElement("style");
|
|
@@ -4280,7 +5014,6 @@ window.__ModuleLoader__.load({
|
|
|
4280
5014
|
}
|
|
4281
5015
|
var MessageItem_module_css_default = {
|
|
4282
5016
|
"attachmentRow": "Sixlwa_attachmentRow",
|
|
4283
|
-
"bubble": "Sixlwa_bubble",
|
|
4284
5017
|
"compactionBody": "Sixlwa_compactionBody",
|
|
4285
5018
|
"compactionButton": "Sixlwa_compactionButton",
|
|
4286
5019
|
"compactionContextIcon": "Sixlwa_compactionContextIcon",
|
|
@@ -5148,7 +5881,7 @@ window.__ModuleLoader__.load({
|
|
|
5148
5881
|
}
|
|
5149
5882
|
//#endregion
|
|
5150
5883
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/MessageIconActions.module.css.mjs
|
|
5151
|
-
const css$11 = ".xzv4MW_actions{height:calc(28px + var(--dsh-content-font-delta,0px));align-items:center;gap:8px;display:flex}.xzv4MW_timeStart{font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-tertiary);white-space:nowrap;padding-right:12px}.xzv4MW_timeEnd{font-size:calc(var(--dsh-content-font-size-secondary,13px) - 1px);line-height:calc(24px + var(--dsh-content-font-delta,0px));color:inherit;white-space:nowrap}.xzv4MW_endInfo{min-width:0;color:var(--dsw-alias-label-tertiary);align-items:center;gap:8px;margin-left:8px;display:inline-flex}@media (hover:hover){[data-actions-reveal=hover] .xzv4MW_actions,:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering]):has(~:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering])) .xzv4MW_actions{opacity:0;transition:opacity 80ms}[data-actions-reveal=hover]:hover .xzv4MW_actions,[data-actions-reveal=hover]:focus-within .xzv4MW_actions,:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering]):has(~:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering])):hover .xzv4MW_actions,:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering]):has(~:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering])):focus-within .xzv4MW_actions{opacity:1}}.xzv4MW_action{width:calc(28px + var(--dsh-content-font-delta,0px));height:calc(28px + var(--dsh-content-font-delta,0px));border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:6px;display:inline-flex}.xzv4MW_action svg{width:calc(15px + var(--dsh-content-font-delta,0px));height:calc(15px + var(--dsh-content-font-delta,0px))}.xzv4MW_actions[data-clock=end] .xzv4MW_action svg{width:calc(17px + var(--dsh-content-font-delta,0px));height:calc(17px + var(--dsh-content-font-delta,0px))}.xzv4MW_action:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.xzv4MW_action[data-unavailable]{cursor:default;opacity:.4}.xzv4MW_action[data-unavailable]:hover{color:var(--dsw-alias-label-tertiary);background:0 0}.xzv4MW_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}";
|
|
5884
|
+
const css$11 = ".xzv4MW_actions{height:calc(28px + var(--dsh-content-font-delta,0px));align-items:center;gap:8px;display:flex}.xzv4MW_timeStart{font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-tertiary);white-space:nowrap;padding-right:12px}.xzv4MW_timeEnd{font-size:calc(var(--dsh-content-font-size-secondary,13px) - 1px);line-height:calc(24px + var(--dsh-content-font-delta,0px));color:inherit;white-space:nowrap}.xzv4MW_endInfo{min-width:0;color:var(--dsw-alias-label-tertiary);align-items:center;gap:8px;margin-left:8px;display:inline-flex}@media (hover:hover){[data-actions-reveal=hover] .xzv4MW_actions,:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering]):has(~:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering])) .xzv4MW_actions{opacity:0;transition:opacity 80ms}[data-actions-reveal=hover]:hover .xzv4MW_actions,[data-actions-reveal=hover]:focus-within .xzv4MW_actions,:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering]):has(~:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering])):hover .xzv4MW_actions,:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering]):has(~:is([data-chat-flow-kind=user],[data-chat-flow-kind=steering])):focus-within .xzv4MW_actions{opacity:1}}.xzv4MW_action{width:calc(28px + var(--dsh-content-font-delta,0px));height:calc(28px + var(--dsh-content-font-delta,0px));border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:6px;display:inline-flex}.xzv4MW_action svg{width:calc(15px + var(--dsh-content-font-delta,0px));height:calc(15px + var(--dsh-content-font-delta,0px))}.xzv4MW_actions[data-clock=end] .xzv4MW_action svg{width:calc(17px + var(--dsh-content-font-delta,0px));height:calc(17px + var(--dsh-content-font-delta,0px))}@media (hover:hover){.xzv4MW_action:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}}.xzv4MW_action[data-unavailable]{cursor:default;opacity:.4}@media (hover:hover){.xzv4MW_action[data-unavailable]:hover{color:var(--dsw-alias-label-tertiary);background:0 0}}.xzv4MW_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}";
|
|
5152
5885
|
const tagId$11 = "@deepseek-ai/dsh-client-ui-chat/MessageIconActions.module.css";
|
|
5153
5886
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$11) + "]") === null) {
|
|
5154
5887
|
const tag = document.createElement("style");
|
|
@@ -5175,30 +5908,7 @@ window.__ModuleLoader__.load({
|
|
|
5175
5908
|
function MessageIconActions({ text, time, clock, onBranch, branchUnavailable = false, className, extraActions, usageAction, t }) {
|
|
5176
5909
|
const day = useCalendarDay();
|
|
5177
5910
|
const reasonId = (0, react.useId)();
|
|
5178
|
-
const
|
|
5179
|
-
const copyPending = (0, react.useRef)(false);
|
|
5180
|
-
const copyTimer = (0, react.useRef)(null);
|
|
5181
|
-
const copyEpoch = (0, react.useRef)(0);
|
|
5182
|
-
(0, react.useEffect)(() => () => {
|
|
5183
|
-
copyEpoch.current += 1;
|
|
5184
|
-
copyPending.current = false;
|
|
5185
|
-
if (copyTimer.current !== null) clearTimeout(copyTimer.current);
|
|
5186
|
-
}, []);
|
|
5187
|
-
const onCopy = (0, react.useCallback)(() => {
|
|
5188
|
-
if (copied || copyPending.current) return;
|
|
5189
|
-
const epoch = copyEpoch.current;
|
|
5190
|
-
copyPending.current = true;
|
|
5191
|
-
(0, _deepseek_ai_dsh_client_ui_primitives.writeClipboard)(text).then((ok) => {
|
|
5192
|
-
if (epoch !== copyEpoch.current) return;
|
|
5193
|
-
copyPending.current = false;
|
|
5194
|
-
if (!ok) return;
|
|
5195
|
-
setCopied(true);
|
|
5196
|
-
copyTimer.current = window.setTimeout(() => {
|
|
5197
|
-
copyTimer.current = null;
|
|
5198
|
-
setCopied(false);
|
|
5199
|
-
}, 1e3);
|
|
5200
|
-
});
|
|
5201
|
-
}, [copied, text]);
|
|
5911
|
+
const { copied, onCopy } = (0, _deepseek_ai_dsh_client_ui_primitives.useClipboardCopy)(text);
|
|
5202
5912
|
const clockEl = time === void 0 ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
5203
5913
|
className: clock === "start" ? MessageIconActions_module_css_default.timeStart : MessageIconActions_module_css_default.timeEnd,
|
|
5204
5914
|
children: formatMessageClock(time, t, day)
|
|
@@ -5223,6 +5933,7 @@ window.__ModuleLoader__.load({
|
|
|
5223
5933
|
onBranch !== void 0 && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
5224
5934
|
label: branchUnavailable ? t("message.branchUnavailable") : t("message.branch"),
|
|
5225
5935
|
side: "bottom",
|
|
5936
|
+
openOnClick: branchUnavailable,
|
|
5226
5937
|
children: (0, react_jsx_runtime.jsx)("button", {
|
|
5227
5938
|
type: "button",
|
|
5228
5939
|
className: MessageIconActions_module_css_default.action,
|
|
@@ -5388,8 +6099,15 @@ window.__ModuleLoader__.load({
|
|
|
5388
6099
|
})]
|
|
5389
6100
|
});
|
|
5390
6101
|
}
|
|
6102
|
+
/** Pending and local-echo rows carry no durable source for the seat to elect. */
|
|
6103
|
+
const UNDECORATED_ROW = {
|
|
6104
|
+
kind: "user",
|
|
6105
|
+
data: { source: null }
|
|
6106
|
+
};
|
|
6107
|
+
/** Occupant used by rows that do not own the message-source seat. */
|
|
6108
|
+
const NO_MESSAGE_SOURCE = () => null;
|
|
5391
6109
|
/** Right-aligned bubble shared by user and steering rows. */
|
|
5392
|
-
function UserStyleBubble({ content, loadImage, renderFactorySlot, actions, pending = false, echo = false, referenceLabels, skillNames, previewAttachments, facts: inputFacts = EMPTY_TEXT_FACTS, interactive = false }) {
|
|
6110
|
+
function UserStyleBubble({ node, renderSlotChain, content, loadImage, renderFactorySlot, actions, pending = false, echo = false, batchStart = false, referenceLabels, skillNames, previewAttachments, facts: inputFacts = EMPTY_TEXT_FACTS, interactive = false }) {
|
|
5393
6111
|
const parts = (0, react.useMemo)(() => contentParts(content), [content]);
|
|
5394
6112
|
const prepared = (0, react.useMemo)(() => ({
|
|
5395
6113
|
text: parts.text,
|
|
@@ -5414,12 +6132,20 @@ window.__ModuleLoader__.load({
|
|
|
5414
6132
|
className: MessageItem_module_css_default.userRow,
|
|
5415
6133
|
"data-pending-steering": pending || void 0,
|
|
5416
6134
|
"data-submission-echo": echo || void 0,
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
6135
|
+
"data-chat-steering-batch": batchStart ? "start" : void 0,
|
|
6136
|
+
children: [
|
|
6137
|
+
renderSlotChain("conversation.chat.user.before", {
|
|
6138
|
+
source: node.data.source,
|
|
6139
|
+
kind: node.kind
|
|
6140
|
+
}, { fallback: null }),
|
|
6141
|
+
renderFactorySlot("conversation.chat.user.content", {
|
|
6142
|
+
content: prepared,
|
|
6143
|
+
loadImage,
|
|
6144
|
+
facts,
|
|
6145
|
+
interactive
|
|
6146
|
+
}),
|
|
6147
|
+
actions?.(prepared.text)
|
|
6148
|
+
]
|
|
5423
6149
|
});
|
|
5424
6150
|
}
|
|
5425
6151
|
/**
|
|
@@ -5430,6 +6156,8 @@ window.__ModuleLoader__.load({
|
|
|
5430
6156
|
*/
|
|
5431
6157
|
function PendingSteeringBubble({ content, loadImage, renderFactorySlot, t }) {
|
|
5432
6158
|
return (0, react_jsx_runtime.jsx)(UserStyleBubble, {
|
|
6159
|
+
node: UNDECORATED_ROW,
|
|
6160
|
+
renderSlotChain: NO_MESSAGE_SOURCE,
|
|
5433
6161
|
content,
|
|
5434
6162
|
renderFactorySlot,
|
|
5435
6163
|
loadImage,
|
|
@@ -5452,6 +6180,8 @@ window.__ModuleLoader__.load({
|
|
|
5452
6180
|
*/
|
|
5453
6181
|
function PendingSubmissionBubble({ submission, loadImage, renderFactorySlot, t }) {
|
|
5454
6182
|
return (0, react_jsx_runtime.jsx)(UserStyleBubble, {
|
|
6183
|
+
node: UNDECORATED_ROW,
|
|
6184
|
+
renderSlotChain: NO_MESSAGE_SOURCE,
|
|
5455
6185
|
content: (0, react.useMemo)(() => submission.text === "" ? [] : [{
|
|
5456
6186
|
type: "text",
|
|
5457
6187
|
text: submission.text
|
|
@@ -5481,14 +6211,23 @@ window.__ModuleLoader__.load({
|
|
|
5481
6211
|
})
|
|
5482
6212
|
});
|
|
5483
6213
|
}
|
|
5484
|
-
/**
|
|
5485
|
-
|
|
6214
|
+
/**
|
|
6215
|
+
* Official user and admitted-steering keyed Chat renderer.
|
|
6216
|
+
*
|
|
6217
|
+
* Renders the durable-message chain seat directly above the bubble. The seat is
|
|
6218
|
+
* declared by the `user` registration alone, so a steering row renders the same
|
|
6219
|
+
* bubble without asking for it.
|
|
6220
|
+
*/
|
|
6221
|
+
const UserMessageNodeView = (0, react.memo)(function UserMessageNodeView({ node, renderFactorySlot, loadImage, renderSlotChain, t }) {
|
|
5486
6222
|
const data = node.data;
|
|
5487
6223
|
return (0, react_jsx_runtime.jsx)(UserStyleBubble, {
|
|
6224
|
+
node,
|
|
6225
|
+
renderSlotChain,
|
|
5488
6226
|
content: data.content,
|
|
5489
6227
|
interactive: true,
|
|
5490
6228
|
renderFactorySlot,
|
|
5491
6229
|
loadImage,
|
|
6230
|
+
batchStart: node.kind === "steering" && node.data.batchStart === true,
|
|
5492
6231
|
...data.referenceLabels === void 0 ? {} : { referenceLabels: data.referenceLabels },
|
|
5493
6232
|
...data.skillNames === void 0 ? {} : { skillNames: data.skillNames },
|
|
5494
6233
|
actions: (text) => (0, react_jsx_runtime.jsx)(MessageIconActions, {
|
|
@@ -5593,13 +6332,14 @@ window.__ModuleLoader__.load({
|
|
|
5593
6332
|
/** Running Turn clock isolated from the transcript's render cycle. */
|
|
5594
6333
|
/**
|
|
5595
6334
|
* Show live elapsed time after the current Turn's content without announcing ticks.
|
|
5596
|
-
* @param props - Current Turn start time and localized copy.
|
|
5597
|
-
* @returns the blue running indicator; mount
|
|
6335
|
+
* @param props - Current Turn start time, pause state, and localized copy.
|
|
6336
|
+
* @returns the blue running indicator; mount while the Session is running, or holding its slot hidden until the
|
|
6337
|
+
* Turn's actions row replaces it.
|
|
5598
6338
|
*/
|
|
5599
|
-
const RunningStatus = (0, react.memo)(function RunningStatus({ startTime, t }) {
|
|
6339
|
+
const RunningStatus = (0, react.memo)(function RunningStatus({ startTime, paused, holding = false, t }) {
|
|
5600
6340
|
const [now, setNow] = (0, react.useState)(Date.now);
|
|
5601
6341
|
(0, react.useEffect)(() => {
|
|
5602
|
-
if (startTime === void 0) return;
|
|
6342
|
+
if (startTime === void 0 || paused || holding) return;
|
|
5603
6343
|
setNow(Date.now());
|
|
5604
6344
|
const timer = setInterval(() => {
|
|
5605
6345
|
setNow(Date.now());
|
|
@@ -5607,13 +6347,19 @@ window.__ModuleLoader__.load({
|
|
|
5607
6347
|
return () => {
|
|
5608
6348
|
clearInterval(timer);
|
|
5609
6349
|
};
|
|
5610
|
-
}, [
|
|
6350
|
+
}, [
|
|
6351
|
+
startTime,
|
|
6352
|
+
paused,
|
|
6353
|
+
holding
|
|
6354
|
+
]);
|
|
5611
6355
|
const label = startTime === void 0 ? t("chat.deepDiving") : t("chat.deepDivingFor", { duration: formatRunDuration(Math.max(1e3, now - startTime), t).map((part) => part.text).join("") });
|
|
5612
6356
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
5613
6357
|
className: ChatView_module_css_default.running,
|
|
5614
6358
|
"data-chat-running": true,
|
|
6359
|
+
"data-holding": holding ? "" : void 0,
|
|
6360
|
+
"aria-hidden": holding || void 0,
|
|
5615
6361
|
children: [
|
|
5616
|
-
(0, react_jsx_runtime.jsx)("span", {
|
|
6362
|
+
holding ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
5617
6363
|
className: accessibility_module_css_default.visuallyHidden,
|
|
5618
6364
|
role: "status",
|
|
5619
6365
|
"aria-live": "polite",
|
|
@@ -5627,7 +6373,7 @@ window.__ModuleLoader__.load({
|
|
|
5627
6373
|
(0, react_jsx_runtime.jsxs)("span", {
|
|
5628
6374
|
className: ChatView_module_css_default.runningContent,
|
|
5629
6375
|
children: [(0, react_jsx_runtime.jsx)(RunningWhaleTail, {}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.TextShimmer, {
|
|
5630
|
-
active:
|
|
6376
|
+
active: !holding,
|
|
5631
6377
|
className: ChatView_module_css_default.runningText,
|
|
5632
6378
|
children: label
|
|
5633
6379
|
})]
|
|
@@ -5638,14 +6384,29 @@ window.__ModuleLoader__.load({
|
|
|
5638
6384
|
//#endregion
|
|
5639
6385
|
//#region lib/types/client/chat/ChatFlow.js
|
|
5640
6386
|
/** Ordered Chat rows, local echoes, and running status share the flow slot's parent. */
|
|
6387
|
+
/** Whether the echo is a local submission rather than a Host-pending steering item. */
|
|
6388
|
+
function isLocalSubmission(item) {
|
|
6389
|
+
return "requestId" in item;
|
|
6390
|
+
}
|
|
6391
|
+
/** Whether the echo is a local submission that opens a new Turn. */
|
|
6392
|
+
function isTranscriptEcho(item) {
|
|
6393
|
+
return isLocalSubmission(item) && item.placement === "transcript";
|
|
6394
|
+
}
|
|
5641
6395
|
/** Render the flow without adding a DOM parent or changing keyed row positions. */
|
|
5642
|
-
const ChatFlow = (0, react.memo)(function ChatFlow({ entries, pendingInputs, lastInputTurn, deferCollapse, useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useStore, actions, renderSlot, renderFactorySlot, t, useGroupAction, useGroupHeaderAction, cwd, openFile, inspectCall, forkAt, loadImage, fileMentions }) {
|
|
6396
|
+
const ChatFlow = (0, react.memo)(function ChatFlow({ entries, pendingInputs, lastInputTurn, deferCollapse, useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useConnectionState, useStore, actions, renderSlot, renderFactorySlot, t, useGroupAction, useGroupHeaderAction, cwd, openFile, inspectCall, forkAt, loadImage, fileMentions }) {
|
|
5643
6397
|
const nodeStore = useChat((snapshot) => snapshot.nodes);
|
|
5644
6398
|
const running = useSession((snapshot) => snapshot.running);
|
|
5645
|
-
const
|
|
6399
|
+
const disconnected = useConnectionState((state) => state === "disconnected" || state === "connecting");
|
|
6400
|
+
const latestTurnAnchor = useChat((snapshot) => snapshot.navigation.items().at(-1)?.anchorKey);
|
|
6401
|
+
const runningStartTime = useChatNode(latestTurnAnchor ?? "", (node) => {
|
|
5646
6402
|
const location = node?.location;
|
|
5647
6403
|
return location?.kind === "turn" || location?.kind === "step" ? location.turn.status === "open" ? location.turn.start?.time : void 0 : void 0;
|
|
5648
6404
|
});
|
|
6405
|
+
const latestTurnOpen = useChatNode(latestTurnAnchor ?? "", (node) => {
|
|
6406
|
+
const location = node?.location;
|
|
6407
|
+
return (location?.kind === "turn" || location?.kind === "step") && location.turn.status === "open";
|
|
6408
|
+
});
|
|
6409
|
+
const holding = !running && latestTurnOpen;
|
|
5649
6410
|
const seatProps = {
|
|
5650
6411
|
nodeStore,
|
|
5651
6412
|
useChatNode,
|
|
@@ -5683,30 +6444,40 @@ window.__ModuleLoader__.load({
|
|
|
5683
6444
|
default: return assertNever(entry);
|
|
5684
6445
|
}
|
|
5685
6446
|
});
|
|
5686
|
-
const
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
6447
|
+
const firstTranscript = pendingInputs.findIndex(isTranscriptEcho);
|
|
6448
|
+
const leadingRows = [];
|
|
6449
|
+
const openingRows = [];
|
|
6450
|
+
const pendingRows = [];
|
|
6451
|
+
for (const [index, item] of pendingInputs.entries()) {
|
|
6452
|
+
const row = isLocalSubmission(item) ? (0, react_jsx_runtime.jsx)(PendingSubmissionBubble, {
|
|
6453
|
+
submission: item,
|
|
6454
|
+
loadImage,
|
|
6455
|
+
renderFactorySlot,
|
|
6456
|
+
t
|
|
6457
|
+
}, item.requestId) : (0, react_jsx_runtime.jsx)(PendingSteeringBubble, {
|
|
6458
|
+
content: item.content,
|
|
6459
|
+
loadImage,
|
|
6460
|
+
renderFactorySlot,
|
|
6461
|
+
t
|
|
6462
|
+
}, item.id);
|
|
6463
|
+
if (index <= firstTranscript) leadingRows.push(row);
|
|
6464
|
+
else if (isTranscriptEcho(item)) openingRows.push(row);
|
|
6465
|
+
else pendingRows.push(row);
|
|
6466
|
+
}
|
|
5697
6467
|
const tail = entries.at(-1);
|
|
5698
6468
|
const node = tail?.kind === "node" ? nodeStore.get(tail.key) : void 0;
|
|
5699
|
-
if (node?.kind === "turn-process" && node.location.kind === "turn" && node.location.turn.status === "open" && node.location.turn.turn !== lastInputTurn)
|
|
5700
|
-
const index = pendingInputs.findIndex((item) => "requestId" in item && item.placement === "transcript");
|
|
5701
|
-
if (index !== -1) rows.splice(rows.length - 1, 0, ...pendingRows.splice(index, 1));
|
|
5702
|
-
}
|
|
6469
|
+
if (node?.kind === "turn-process" && node.location.kind === "turn" && node.location.turn.status === "open" && node.location.turn.turn !== lastInputTurn) rows.splice(rows.length - 1, 0, ...leadingRows.splice(0));
|
|
5703
6470
|
return [
|
|
5704
6471
|
...rows,
|
|
5705
|
-
...
|
|
5706
|
-
...
|
|
6472
|
+
...leadingRows,
|
|
6473
|
+
...openingRows,
|
|
6474
|
+
...running || holding ? [(0, react_jsx_runtime.jsx)(RunningStatus, {
|
|
5707
6475
|
startTime: runningStartTime,
|
|
6476
|
+
paused: disconnected,
|
|
6477
|
+
holding,
|
|
5708
6478
|
t
|
|
5709
|
-
}, "running")] : []
|
|
6479
|
+
}, "running")] : [],
|
|
6480
|
+
...pendingRows
|
|
5710
6481
|
];
|
|
5711
6482
|
});
|
|
5712
6483
|
//#endregion
|
|
@@ -5817,6 +6588,10 @@ window.__ModuleLoader__.load({
|
|
|
5817
6588
|
"settings.collapse.description": "选择何时自动收起工作步骤",
|
|
5818
6589
|
"settings.collapse.completion": "回答结束后",
|
|
5819
6590
|
"settings.collapse.nextInput": "下次有新消息时",
|
|
6591
|
+
"settings.foldedReplies.title": "收起后显示的回复",
|
|
6592
|
+
"settings.foldedReplies.description": "工作步骤收起后,保留哪些助手回复",
|
|
6593
|
+
"settings.foldedReplies.all": "全部回复",
|
|
6594
|
+
"settings.foldedReplies.final": "仅最终回答",
|
|
5820
6595
|
"settings.transcript.compact": "简洁",
|
|
5821
6596
|
"settings.transcript.standard": "标准",
|
|
5822
6597
|
"settings.transcript.detailed": "详细",
|
|
@@ -6011,6 +6786,10 @@ window.__ModuleLoader__.load({
|
|
|
6011
6786
|
"settings.collapse.description": "Choose when to automatically collapse work details",
|
|
6012
6787
|
"settings.collapse.completion": "On completion",
|
|
6013
6788
|
"settings.collapse.nextInput": "On next message",
|
|
6789
|
+
"settings.foldedReplies.title": "Replies After Collapse",
|
|
6790
|
+
"settings.foldedReplies.description": "Choose which assistant replies stay visible when work details collapse",
|
|
6791
|
+
"settings.foldedReplies.all": "All replies",
|
|
6792
|
+
"settings.foldedReplies.final": "Final answer only",
|
|
6014
6793
|
"settings.transcript.compact": "Compact",
|
|
6015
6794
|
"settings.transcript.standard": "Standard",
|
|
6016
6795
|
"settings.transcript.detailed": "Detailed",
|
|
@@ -6102,6 +6881,1194 @@ window.__ModuleLoader__.load({
|
|
|
6102
6881
|
"clock.md": "{m}/{d}",
|
|
6103
6882
|
"clock.ymd": "{y}-{m}-{d}"
|
|
6104
6883
|
};
|
|
6884
|
+
/** Japanese copy, checked against the English keys. */
|
|
6885
|
+
const ja = {
|
|
6886
|
+
"message.stepProcess.thinking": "リクエストを分析中",
|
|
6887
|
+
"message.stepProcess.read": "ファイルを読み取り中",
|
|
6888
|
+
"message.stepProcess.readImage": "画像を読み取り中",
|
|
6889
|
+
"message.stepProcess.write": "ファイルを書き込み中",
|
|
6890
|
+
"message.stepProcess.search": "コードを検索中",
|
|
6891
|
+
"message.stepProcess.edit": "ファイルを編集中",
|
|
6892
|
+
"message.stepProcess.commands": "コマンドを実行中",
|
|
6893
|
+
"message.stepProcess.code": "コードを実行中",
|
|
6894
|
+
"message.stepProcess.webSearch": "ウェブを検索中",
|
|
6895
|
+
"message.stepProcess.webFetch": "ウェブページを閲覧中",
|
|
6896
|
+
"message.stepProcess.subagents": "サブエージェントを調整中",
|
|
6897
|
+
"message.stepProcess.plan": "計画を更新中",
|
|
6898
|
+
"message.stepProcess.questions": "操作を待機中",
|
|
6899
|
+
"message.stepProcess.tools": "ツールを呼び出し中",
|
|
6900
|
+
"message.stepProcess.prepare.read": "ファイル読み取りの準備中",
|
|
6901
|
+
"message.stepProcess.prepare.readImage": "画像読み取りの準備中",
|
|
6902
|
+
"message.stepProcess.prepare.write": "ファイル書き込みの準備中",
|
|
6903
|
+
"message.stepProcess.prepare.search": "コード検索の準備中",
|
|
6904
|
+
"message.stepProcess.prepare.edit": "ファイル編集の準備中",
|
|
6905
|
+
"message.stepProcess.prepare.commands": "コマンド実行の準備中",
|
|
6906
|
+
"message.stepProcess.prepare.code": "コード実行の準備中",
|
|
6907
|
+
"message.stepProcess.prepare.webSearch": "ウェブ検索の準備中",
|
|
6908
|
+
"message.stepProcess.prepare.webFetch": "ウェブページ閲覧の準備中",
|
|
6909
|
+
"message.stepProcess.prepare.subagents": "サブエージェント調整の準備中",
|
|
6910
|
+
"message.stepProcess.prepare.plan": "計画更新の準備中",
|
|
6911
|
+
"message.stepProcess.prepare.questions": "質問の準備中",
|
|
6912
|
+
"message.stepProcess.prepare.tools": "ツール呼び出しの準備中",
|
|
6913
|
+
"message.stepProcess.done.thinking": "分析完了",
|
|
6914
|
+
"message.stepProcess.done.read": "ファイルを読み取りました",
|
|
6915
|
+
"message.stepProcess.done.readImage": "画像を読み取りました",
|
|
6916
|
+
"message.stepProcess.done.write": "ファイルを書き込みました",
|
|
6917
|
+
"message.stepProcess.done.search": "コードを検索しました",
|
|
6918
|
+
"message.stepProcess.done.edit": "ファイルを編集しました",
|
|
6919
|
+
"message.stepProcess.done.commands": "コマンドを実行しました",
|
|
6920
|
+
"message.stepProcess.done.code": "コードを実行しました",
|
|
6921
|
+
"message.stepProcess.done.webSearch": "ウェブを検索しました",
|
|
6922
|
+
"message.stepProcess.done.webFetch": "ウェブページを閲覧しました",
|
|
6923
|
+
"message.stepProcess.done.subagents": "サブエージェントを調整しました",
|
|
6924
|
+
"message.stepProcess.done.plan": "計画を更新しました",
|
|
6925
|
+
"message.stepProcess.done.questions": "質問しました",
|
|
6926
|
+
"message.stepProcess.done.tools": "ツールを呼び出しました",
|
|
6927
|
+
"message.stepProcess.joinTwo": "{first}と{second}",
|
|
6928
|
+
"message.stepProcess.comma": "、",
|
|
6929
|
+
"message.stepProcess.sharedPrefix": "",
|
|
6930
|
+
"message.stepProcess.more": "{title}など",
|
|
6931
|
+
"message.trigger.request": "実行が要求されました",
|
|
6932
|
+
"message.trigger.goal": "目標を継続中",
|
|
6933
|
+
"message.trigger.agent": "タスクメッセージを受信しました",
|
|
6934
|
+
"message.trigger.team": "チームメッセージを受信しました",
|
|
6935
|
+
"message.trigger.subagent": "サブタスクの状態が更新されました",
|
|
6936
|
+
"message.trigger.github": "GitHubイベントを受信しました",
|
|
6937
|
+
"message.trigger.webhook": "外部イベントを受信しました",
|
|
6938
|
+
"message.trigger.schedule": "自動化タスク",
|
|
6939
|
+
"message.trigger.job": "バックグラウンドタスクが更新されました",
|
|
6940
|
+
"message.trigger.plugin": "プラグインの状態が更新されました",
|
|
6941
|
+
"message.trigger.explanation": "この通知がこの応答のトリガーとなりました。",
|
|
6942
|
+
"message.turnProcess.worked": "完了",
|
|
6943
|
+
"message.turnProcess.took": "完了まで ",
|
|
6944
|
+
"message.turnProcess.failed": "失敗",
|
|
6945
|
+
"view.chat": "チャット",
|
|
6946
|
+
"image.open": "画像を全画面表示",
|
|
6947
|
+
"image.loading": "画像を読み込み中…",
|
|
6948
|
+
"image.failed": "画像プレビューを利用できません",
|
|
6949
|
+
"image.dialog": "画像プレビュー",
|
|
6950
|
+
"image.close": "画像プレビューを閉じる",
|
|
6951
|
+
"number.groupSeparator": ",",
|
|
6952
|
+
"duration.compactSeconds": "{seconds}秒",
|
|
6953
|
+
"duration.compactMinutes": "{minutes}分{seconds}秒",
|
|
6954
|
+
"duration.milliseconds": "{milliseconds}ms",
|
|
6955
|
+
"stats.counts": "{turns}ターン {steps}ステップ",
|
|
6956
|
+
"stats.cacheHit": "キャッシュヒット {percent}%",
|
|
6957
|
+
"stats.dialog.title": "セッション統計",
|
|
6958
|
+
"stats.dialog.usageTitle": "トークン使用量",
|
|
6959
|
+
"stats.dialog.llmTime": "LLM時間",
|
|
6960
|
+
"stats.dialog.toolTime": "ツール時間",
|
|
6961
|
+
"stats.dialog.ttft": "平均初回トークン時間(TTFT)",
|
|
6962
|
+
"stats.dialog.speed": "毎秒トークン数(TPS)",
|
|
6963
|
+
"chat.loadingHistory": "履歴を読み込み中…",
|
|
6964
|
+
"chat.loadError": "履歴の読み込みに失敗しました: {message}({code})",
|
|
6965
|
+
"chat.loadOlder": "以前を読み込む",
|
|
6966
|
+
"chat.toBottom": "最下部へ戻る",
|
|
6967
|
+
"chat.deepDiving": "深掘り中",
|
|
6968
|
+
"chat.deepDivingFor": "{duration} の間深く分析中 ···",
|
|
6969
|
+
"chat.turnNavigation.label": "ターン移動",
|
|
6970
|
+
"chat.turnNavigation.jump": "ターン {turn} へ移動",
|
|
6971
|
+
"chat.turnNavigation.jumpLoad": "読み込んでターン {turn} へ移動",
|
|
6972
|
+
"chat.turnNavigation.turn": "ターン {turn}",
|
|
6973
|
+
"settings.performance.title": "パフォーマンスと使用状況",
|
|
6974
|
+
"settings.performance.description": "パフォーマンスと使用状況の表示量を選択",
|
|
6975
|
+
"settings.performance.compact": "コンパクト",
|
|
6976
|
+
"settings.performance.detailed": "詳細",
|
|
6977
|
+
"settings.links.title": "チャットリンクを開く場所",
|
|
6978
|
+
"settings.links.description": "Web リンクを開く場所を選択",
|
|
6979
|
+
"settings.links.sidebar": "アプリ内サイドバー",
|
|
6980
|
+
"settings.links.newTab": "既定のブラウザー",
|
|
6981
|
+
"settings.transcript.title": "作業の詳細",
|
|
6982
|
+
"settings.transcript.description": "ツール呼び出しの表示詳細度を選択",
|
|
6983
|
+
"settings.collapse.title": "作業詳細を折りたたむタイミング",
|
|
6984
|
+
"settings.collapse.description": "作業詳細を自動で折りたたむタイミングを選択",
|
|
6985
|
+
"settings.collapse.completion": "完了時",
|
|
6986
|
+
"settings.collapse.nextInput": "次のメッセージ送信時",
|
|
6987
|
+
"settings.foldedReplies.title": "折りたたみ後の返信",
|
|
6988
|
+
"settings.foldedReplies.description": "作業詳細の折りたたみ時に表示するアシスタントの返信を選択",
|
|
6989
|
+
"settings.foldedReplies.all": "すべての返信",
|
|
6990
|
+
"settings.foldedReplies.final": "最終回答のみ",
|
|
6991
|
+
"settings.transcript.compact": "コンパクト",
|
|
6992
|
+
"settings.transcript.standard": "標準",
|
|
6993
|
+
"settings.transcript.detailed": "詳細",
|
|
6994
|
+
"settings.transcript.verbose": "冗長",
|
|
6995
|
+
"fileOpen.title": "ファイルを開けませんでした",
|
|
6996
|
+
"fileOpen.unknown": "このファイルを開けませんでした",
|
|
6997
|
+
"message.extraBlock": "追加のコンテンツブロック",
|
|
6998
|
+
"message.systemPrompt": "システムプロンプト",
|
|
6999
|
+
"message.systemPromptUpdate": "システムプロンプトの更新",
|
|
7000
|
+
"message.toolAdded": "ツールを追加: {name}",
|
|
7001
|
+
"message.toolRemoved": "ツールを削除: {name}",
|
|
7002
|
+
"message.toolsAdded": "追加: {names}",
|
|
7003
|
+
"message.toolsAddedCount": "{count} 件追加",
|
|
7004
|
+
"message.toolsChanged": "{added} 件追加、{removed} 件削除",
|
|
7005
|
+
"message.toolsRemoved": "削除: {names}",
|
|
7006
|
+
"message.toolsRemovedCount": "{count} 件削除",
|
|
7007
|
+
"message.toolsUpdated": "ツールを更新しました",
|
|
7008
|
+
"message.contextInjection": "コンテキスト注入",
|
|
7009
|
+
"message.contextRecall": "セッションの呼び出し",
|
|
7010
|
+
"message.referenceSummary": "参照セッション · {labels}",
|
|
7011
|
+
"message.referenceSeparator": ", ",
|
|
7012
|
+
"message.context.instructions.loaded": "読み込み済み",
|
|
7013
|
+
"message.context.instructions.added": "追加済み",
|
|
7014
|
+
"message.context.instructions.updated": "更新済み",
|
|
7015
|
+
"message.context.instructions.removed": "削除済み",
|
|
7016
|
+
"message.context.catalog.replaced": "置換カタログ",
|
|
7017
|
+
"message.context.catalog.more": "… 他 {count} 件",
|
|
7018
|
+
"message.context.snapshot.supersedes": "以前のスナップショットを置き換えます",
|
|
7019
|
+
"message.context.relay.from": "セッション {session} から",
|
|
7020
|
+
"message.context.recall.counts": "{retained} 件保持 · {omitted} 件除外",
|
|
7021
|
+
"message.context.recall.truncated": "切り詰め済み",
|
|
7022
|
+
"message.compaction": "コンテキストを圧縮しました",
|
|
7023
|
+
"message.compaction.running": "コンテキストを圧縮中…",
|
|
7024
|
+
"message.compaction.completed": "履歴 {items} 件を圧縮しました(約 {tokens} トークン)",
|
|
7025
|
+
"message.compaction.expand": "圧縮の要約を表示",
|
|
7026
|
+
"message.compaction.unavailable": "圧縮の要約は利用できません",
|
|
7027
|
+
"message.compaction.commandTitle": "compact",
|
|
7028
|
+
"message.think": "思考",
|
|
7029
|
+
"message.unknownSurface": "不明なサーフェスイベント: {type}",
|
|
7030
|
+
"message.unknownBlock": "不明なコンテンツブロック",
|
|
7031
|
+
"message.turnProcess.toolCalls.one": "ツール呼び出し {count} 件",
|
|
7032
|
+
"message.turnProcess.toolCalls.other": "ツール呼び出し {count} 件",
|
|
7033
|
+
"message.turnProcess.messages.one": "メッセージ {count} 件",
|
|
7034
|
+
"message.turnProcess.messages.other": "メッセージ {count} 件",
|
|
7035
|
+
"message.turnProcess.subagents.one": "サブエージェント {count} 件",
|
|
7036
|
+
"message.turnProcess.subagents.other": "サブエージェント {count} 件",
|
|
7037
|
+
"message.turnProcess.thoughtForAWhile": "しばらく思考しました",
|
|
7038
|
+
"message.turnProcess.separator": " · ",
|
|
7039
|
+
"message.stopped": "停止しました",
|
|
7040
|
+
"message.branch": "新しい会話に分岐",
|
|
7041
|
+
"message.branchUnavailable": "完了したターンの最後のメッセージでのみ利用できます",
|
|
7042
|
+
"message.retry.active": "モデルリクエストを再試行中",
|
|
7043
|
+
"message.retry.cancelled": "モデルリクエストの再試行をキャンセルしました",
|
|
7044
|
+
"message.retry.started": "モデルリクエストを再試行しました",
|
|
7045
|
+
"message.retry.scheduled": "モデルリクエストの再試行待ちです",
|
|
7046
|
+
"message.retry.status": "{label} ({retry}/{maximum}) · {seconds}秒",
|
|
7047
|
+
"message.retry.delay": "再試行までの待機時間: ",
|
|
7048
|
+
"message.retry.failure": "失敗理由: ",
|
|
7049
|
+
"message.failure.auth": "APIキーが無効です",
|
|
7050
|
+
"message.taskStopped": "タスクを停止しました",
|
|
7051
|
+
"message.failure.accountSignedOut": "DeepSeekからログアウトしたため停止しました。",
|
|
7052
|
+
"message.failure.interrupted": "このターンが完了する前にDSHプロセスが終了したため(強制終了、クラッシュ、シャットダウン中のタイムアウトなど)、DSHの再起動時にターンは閉じられました。未完了のツール呼び出しの結果は不明です。",
|
|
7053
|
+
"message.failure.accountSignInRequired": "DeepSeekにログインし、リクエスト先がアカウント認証に対応していることを確認してください。",
|
|
7054
|
+
"message.failure.quota": "リクエストのクォータを使い切りました。",
|
|
7055
|
+
"message.turnError": "このターンは失敗しました",
|
|
7056
|
+
"message.maxTokens": "出力トークンの上限に達しました",
|
|
7057
|
+
"message.maxTokens.hint": "応答が途中で打ち切られました。それまでの出力は会話に保持されています。「続けて」と送信するとモデルが再開します。",
|
|
7058
|
+
"message.tokensPerSecond": "{tps} tok/s",
|
|
7059
|
+
"message.turnUsage.title": "ターンの使用量",
|
|
7060
|
+
"message.turnUsage.consumed": "使用量 {total}",
|
|
7061
|
+
"message.turnUsage.model": "プロバイダー / モデル",
|
|
7062
|
+
"message.turnUsage.cacheHit": "キャッシュヒット",
|
|
7063
|
+
"message.turnUsage.input": "未キャッシュの入力",
|
|
7064
|
+
"message.turnUsage.cacheRead": "キャッシュ済み入力",
|
|
7065
|
+
"message.turnUsage.cacheWrite": "キャッシュ書き込み",
|
|
7066
|
+
"message.turnUsage.output": "出力",
|
|
7067
|
+
"message.turnUsage.reasoning": " (推論 {tokens})",
|
|
7068
|
+
"message.turnUsage.count": "{count} tok",
|
|
7069
|
+
"duration.secondUnit": "秒",
|
|
7070
|
+
"duration.minuteUnit": "分 ",
|
|
7071
|
+
"duration.hourUnit": "時間 ",
|
|
7072
|
+
"command.running": "実行中…",
|
|
7073
|
+
"command.failed": "コマンドが失敗しました",
|
|
7074
|
+
"command.done": "完了",
|
|
7075
|
+
"command.title": "コマンド",
|
|
7076
|
+
"row.running": "実行中",
|
|
7077
|
+
"row.failed": "失敗",
|
|
7078
|
+
"json.truncated": "… 省略表示、全{total}文字",
|
|
7079
|
+
"clock.md": "{m}/{d}",
|
|
7080
|
+
"clock.ymd": "{y}-{m}-{d}"
|
|
7081
|
+
};
|
|
7082
|
+
/** Spanish dictionary, checked against the English keys. */
|
|
7083
|
+
const es = {
|
|
7084
|
+
"message.stepProcess.thinking": "Analizando la solicitud",
|
|
7085
|
+
"message.stepProcess.read": "Leyendo archivos",
|
|
7086
|
+
"message.stepProcess.readImage": "Leyendo imágenes",
|
|
7087
|
+
"message.stepProcess.write": "Escribir archivos",
|
|
7088
|
+
"message.stepProcess.search": "código de búsqueda",
|
|
7089
|
+
"message.stepProcess.edit": "Editar archivos",
|
|
7090
|
+
"message.stepProcess.commands": "Ejecutar comandos",
|
|
7091
|
+
"message.stepProcess.code": "Código en ejecución",
|
|
7092
|
+
"message.stepProcess.webSearch": "buscando en la web",
|
|
7093
|
+
"message.stepProcess.webFetch": "Visitar páginas web",
|
|
7094
|
+
"message.stepProcess.subagents": "Subagentes coordinadores",
|
|
7095
|
+
"message.stepProcess.plan": "Actualizando el plan",
|
|
7096
|
+
"message.stepProcess.questions": "Esperando tu acción",
|
|
7097
|
+
"message.stepProcess.tools": "herramientas de llamada",
|
|
7098
|
+
"message.stepProcess.prepare.read": "Preparándose para leer archivos",
|
|
7099
|
+
"message.stepProcess.prepare.readImage": "Preparándose para leer imágenes",
|
|
7100
|
+
"message.stepProcess.prepare.write": "Preparándose para escribir archivos",
|
|
7101
|
+
"message.stepProcess.prepare.search": "Preparándose para buscar el código",
|
|
7102
|
+
"message.stepProcess.prepare.edit": "Preparándose para editar archivos",
|
|
7103
|
+
"message.stepProcess.prepare.commands": "Preparándose para ejecutar comandos",
|
|
7104
|
+
"message.stepProcess.prepare.code": "Preparándose para ejecutar código",
|
|
7105
|
+
"message.stepProcess.prepare.webSearch": "Preparándose para buscar en la web",
|
|
7106
|
+
"message.stepProcess.prepare.webFetch": "Preparándose para visitar páginas web",
|
|
7107
|
+
"message.stepProcess.prepare.subagents": "Preparándose para coordinar subagentes",
|
|
7108
|
+
"message.stepProcess.prepare.plan": "Preparándose para actualizar el plan",
|
|
7109
|
+
"message.stepProcess.prepare.questions": "Preparando preguntas",
|
|
7110
|
+
"message.stepProcess.prepare.tools": "Preparando llamadas a herramientas",
|
|
7111
|
+
"message.stepProcess.done.thinking": "Análisis completado",
|
|
7112
|
+
"message.stepProcess.done.read": "leer archivos",
|
|
7113
|
+
"message.stepProcess.done.readImage": "Leer imágenes",
|
|
7114
|
+
"message.stepProcess.done.write": "Escribió archivos",
|
|
7115
|
+
"message.stepProcess.done.search": "código buscado",
|
|
7116
|
+
"message.stepProcess.done.edit": "Archivos editados",
|
|
7117
|
+
"message.stepProcess.done.commands": "Comandos ejecutados",
|
|
7118
|
+
"message.stepProcess.done.code": "código ejecutado",
|
|
7119
|
+
"message.stepProcess.done.webSearch": "Busqué en la web",
|
|
7120
|
+
"message.stepProcess.done.webFetch": "Paginas web visitadas",
|
|
7121
|
+
"message.stepProcess.done.subagents": "Subagentes coordinados",
|
|
7122
|
+
"message.stepProcess.done.plan": "Actualizado el plan",
|
|
7123
|
+
"message.stepProcess.done.questions": "preguntas hechas",
|
|
7124
|
+
"message.stepProcess.done.tools": "herramientas llamadas",
|
|
7125
|
+
"message.stepProcess.joinTwo": "{first} y {second}",
|
|
7126
|
+
"message.stepProcess.comma": ", ",
|
|
7127
|
+
"message.stepProcess.sharedPrefix": "",
|
|
7128
|
+
"message.stepProcess.more": "{title}, etc.",
|
|
7129
|
+
"message.trigger.request": "Ejecución solicitada",
|
|
7130
|
+
"message.trigger.goal": "Objetivo continuo",
|
|
7131
|
+
"message.trigger.agent": "Mensaje de tarea recibido",
|
|
7132
|
+
"message.trigger.team": "Mensaje del equipo recibido",
|
|
7133
|
+
"message.trigger.subagent": "Estado de subtarea actualizado",
|
|
7134
|
+
"message.trigger.github": "Evento GitHub recibido",
|
|
7135
|
+
"message.trigger.webhook": "Evento externo recibido",
|
|
7136
|
+
"message.trigger.schedule": "Tarea de automatización",
|
|
7137
|
+
"message.trigger.job": "Tarea en segundo plano actualizada",
|
|
7138
|
+
"message.trigger.plugin": "Estado del complemento actualizado",
|
|
7139
|
+
"message.trigger.explanation": "Esta notificación desencadenó esta respuesta.",
|
|
7140
|
+
"message.turnProcess.worked": "Completado",
|
|
7141
|
+
"message.turnProcess.took": "Completado en ",
|
|
7142
|
+
"message.turnProcess.failed": "Fallido",
|
|
7143
|
+
"view.chat": "Chat",
|
|
7144
|
+
"image.open": "Ver imagen completa",
|
|
7145
|
+
"image.loading": "Cargando imagen…",
|
|
7146
|
+
"image.failed": "Vista previa de la imagen no disponible",
|
|
7147
|
+
"image.dialog": "Vista previa de la imagen",
|
|
7148
|
+
"image.close": "Cerrar vista previa de la imagen",
|
|
7149
|
+
"number.groupSeparator": ",",
|
|
7150
|
+
"duration.compactSeconds": "{seconds}s",
|
|
7151
|
+
"duration.compactMinutes": "{minutes}m{seconds}s",
|
|
7152
|
+
"duration.milliseconds": "{milliseconds}ms",
|
|
7153
|
+
"stats.counts": "{turns} turnos, {steps} pasos",
|
|
7154
|
+
"stats.cacheHit": "Aciertos de caché: {percent}%",
|
|
7155
|
+
"stats.dialog.title": "Estadísticas de sesión",
|
|
7156
|
+
"stats.dialog.usageTitle": "Uso de tokens",
|
|
7157
|
+
"stats.dialog.llmTime": "tiempo de maestría",
|
|
7158
|
+
"stats.dialog.toolTime": "tiempo de herramienta",
|
|
7159
|
+
"stats.dialog.ttft": "Tiempo promedio hasta el primer token (TTFT)",
|
|
7160
|
+
"stats.dialog.speed": "Fichas por segundo (TPS)",
|
|
7161
|
+
"chat.loadingHistory": "Cargando historial…",
|
|
7162
|
+
"chat.loadError": "No se pudo cargar el historial: {message} ({code})",
|
|
7163
|
+
"chat.loadOlder": "Cargar antes",
|
|
7164
|
+
"chat.toBottom": "Volver al fondo",
|
|
7165
|
+
"chat.deepDiving": "Razonamiento profundo",
|
|
7166
|
+
"chat.deepDivingFor": "Razonando a fondo durante {duration} ···",
|
|
7167
|
+
"chat.turnNavigation.label": "Navegación por turnos",
|
|
7168
|
+
"chat.turnNavigation.jump": "Ir al turno {turn}",
|
|
7169
|
+
"chat.turnNavigation.jumpLoad": "Cargar e ir al turno {turn}",
|
|
7170
|
+
"chat.turnNavigation.turn": "Turno {turn}",
|
|
7171
|
+
"settings.performance.title": "Rendimiento y uso",
|
|
7172
|
+
"settings.performance.description": "Elija cuánta información de rendimiento y uso desea mostrar",
|
|
7173
|
+
"settings.performance.compact": "Compacto",
|
|
7174
|
+
"settings.performance.detailed": "Detallado",
|
|
7175
|
+
"settings.links.title": "Abrir enlaces de chat en",
|
|
7176
|
+
"settings.links.description": "Elija dónde abrir enlaces web",
|
|
7177
|
+
"settings.links.sidebar": "Barra lateral en la aplicación",
|
|
7178
|
+
"settings.links.newTab": "Navegador predeterminado",
|
|
7179
|
+
"settings.transcript.title": "Detalles del trabajo",
|
|
7180
|
+
"settings.transcript.description": "Elija cuántos detalles mostrar para las llamadas de herramientas",
|
|
7181
|
+
"settings.collapse.title": "Cuándo contraer los detalles del trabajo",
|
|
7182
|
+
"settings.collapse.description": "Elija cuándo contraer automáticamente los detalles del trabajo",
|
|
7183
|
+
"settings.collapse.completion": "Al finalizar",
|
|
7184
|
+
"settings.collapse.nextInput": "En el siguiente mensaje",
|
|
7185
|
+
"settings.foldedReplies.title": "Respuestas después del plegado",
|
|
7186
|
+
"settings.foldedReplies.description": "Elija qué respuestas del asistente permanecen visibles cuando los detalles del trabajo colapsan",
|
|
7187
|
+
"settings.foldedReplies.all": "Todas las respuestas",
|
|
7188
|
+
"settings.foldedReplies.final": "Solo respuesta final",
|
|
7189
|
+
"settings.transcript.compact": "Compacto",
|
|
7190
|
+
"settings.transcript.standard": "Estándar",
|
|
7191
|
+
"settings.transcript.detailed": "Detallado",
|
|
7192
|
+
"settings.transcript.verbose": "Detallado",
|
|
7193
|
+
"fileOpen.title": "No se pudo abrir el archivo",
|
|
7194
|
+
"fileOpen.unknown": "No se pudo abrir este archivo",
|
|
7195
|
+
"message.extraBlock": "Bloque de contenido adicional",
|
|
7196
|
+
"message.systemPrompt": "Aviso del sistema",
|
|
7197
|
+
"message.systemPromptUpdate": "Actualización del mensaje del sistema",
|
|
7198
|
+
"message.toolAdded": "Herramienta agregada: {name}",
|
|
7199
|
+
"message.toolRemoved": "Herramienta eliminada: {name}",
|
|
7200
|
+
"message.toolsAdded": "Añadido: {names}",
|
|
7201
|
+
"message.toolsAddedCount": "{count} añadido",
|
|
7202
|
+
"message.toolsChanged": "{added} agregado, {removed} eliminado",
|
|
7203
|
+
"message.toolsRemoved": "Eliminado: {names}",
|
|
7204
|
+
"message.toolsRemovedCount": "{count} eliminado",
|
|
7205
|
+
"message.toolsUpdated": "Herramientas actualizadas",
|
|
7206
|
+
"message.contextInjection": "inyección de contexto",
|
|
7207
|
+
"message.contextRecall": "Recuerdo de sesión",
|
|
7208
|
+
"message.referenceSummary": "Sesión referenciada · {labels}",
|
|
7209
|
+
"message.referenceSeparator": ", ",
|
|
7210
|
+
"message.context.instructions.loaded": "cargado",
|
|
7211
|
+
"message.context.instructions.added": "añadido",
|
|
7212
|
+
"message.context.instructions.updated": "actualizado",
|
|
7213
|
+
"message.context.instructions.removed": "eliminado",
|
|
7214
|
+
"message.context.catalog.replaced": "Catálogo de repuestos",
|
|
7215
|
+
"message.context.catalog.more": "… {count} más",
|
|
7216
|
+
"message.context.snapshot.supersedes": "Reemplaza instantáneas anteriores",
|
|
7217
|
+
"message.context.relay.from": "De la sesión {session}",
|
|
7218
|
+
"message.context.recall.counts": "{retained} mantenido · {omitted} omitido",
|
|
7219
|
+
"message.context.recall.truncated": "truncado",
|
|
7220
|
+
"message.compaction": "Contexto compactado",
|
|
7221
|
+
"message.compaction.running": "Contexto de compactación…",
|
|
7222
|
+
"message.compaction.completed": "Elementos del historial {items} compactados (~tokens {tokens})",
|
|
7223
|
+
"message.compaction.expand": "Ver resumen de compactación",
|
|
7224
|
+
"message.compaction.unavailable": "Resumen de compactación no disponible",
|
|
7225
|
+
"message.compaction.commandTitle": "compacto",
|
|
7226
|
+
"message.think": "pensar",
|
|
7227
|
+
"message.unknownSurface": "Evento de superficie desconocido: {type}",
|
|
7228
|
+
"message.unknownBlock": "Bloque de contenido desconocido",
|
|
7229
|
+
"message.turnProcess.toolCalls.one": "Llamada a la herramienta {count}",
|
|
7230
|
+
"message.turnProcess.toolCalls.other": "Llamadas a herramientas {count}",
|
|
7231
|
+
"message.turnProcess.messages.one": "Mensaje {count}",
|
|
7232
|
+
"message.turnProcess.messages.other": "Mensajes {count}",
|
|
7233
|
+
"message.turnProcess.subagents.one": "Subagente {count}",
|
|
7234
|
+
"message.turnProcess.subagents.other": "Subagentes {count}",
|
|
7235
|
+
"message.turnProcess.thoughtForAWhile": "Razonó durante un tiempo",
|
|
7236
|
+
"message.turnProcess.separator": " · ",
|
|
7237
|
+
"message.stopped": "Detenido",
|
|
7238
|
+
"message.branch": "Pasar a una nueva conversación",
|
|
7239
|
+
"message.branchUnavailable": "Disponible solo en el último mensaje de un turno completado",
|
|
7240
|
+
"message.retry.active": "Reintentando solicitud de modelo",
|
|
7241
|
+
"message.retry.cancelled": "Reintento de solicitud de modelo cancelado",
|
|
7242
|
+
"message.retry.started": "Solicitud de modelo reintentada",
|
|
7243
|
+
"message.retry.scheduled": "Esperando para volver a intentar la solicitud de modelo",
|
|
7244
|
+
"message.retry.status": "{label} ({retry}/{maximum}) · {seconds}s",
|
|
7245
|
+
"message.retry.delay": "Retraso de reintento: ",
|
|
7246
|
+
"message.retry.failure": "Razón del fracaso: ",
|
|
7247
|
+
"message.failure.auth": "La clave API no es válida",
|
|
7248
|
+
"message.taskStopped": "Tarea detenida",
|
|
7249
|
+
"message.failure.accountSignedOut": "Se detuvo porque cerró sesión en DeepSeek.",
|
|
7250
|
+
"message.failure.interrupted": "El proceso DSH salió antes de que terminara este turno (por ejemplo, se detuvo, se estrelló o se agotó el tiempo de espera mientras se apagaba), por lo que el turno se cerró cuando se reinició DSH. Las llamadas a herramientas inacabadas tienen resultados desconocidos.",
|
|
7251
|
+
"message.failure.accountSignInRequired": "Inicie sesión en DeepSeek y asegúrese de que el destino de la solicitud admita la autenticación de la cuenta.",
|
|
7252
|
+
"message.failure.quota": "Solicitud de cupo agotado.",
|
|
7253
|
+
"message.turnError": "Este turno falló",
|
|
7254
|
+
"message.maxTokens": "Se alcanzó el límite del token de salida",
|
|
7255
|
+
"message.maxTokens.hint": "La respuesta fue cortada; La salida anterior se conserva en la conversación. Envíe \"continuar\" para permitir que se reanude el modelo.",
|
|
7256
|
+
"message.tokensPerSecond": "{tps} tok/s",
|
|
7257
|
+
"message.turnUsage.title": "Uso del turno",
|
|
7258
|
+
"message.turnUsage.consumed": "Uso {total}",
|
|
7259
|
+
"message.turnUsage.model": "Proveedor / modelo",
|
|
7260
|
+
"message.turnUsage.cacheHit": "Aciertos de caché",
|
|
7261
|
+
"message.turnUsage.input": "Entrada sin caché",
|
|
7262
|
+
"message.turnUsage.cacheRead": "Entrada en caché",
|
|
7263
|
+
"message.turnUsage.cacheWrite": "escritura en caché",
|
|
7264
|
+
"message.turnUsage.output": "Salida",
|
|
7265
|
+
"message.turnUsage.reasoning": " (razonamiento {tokens})",
|
|
7266
|
+
"message.turnUsage.count": "Tok {count}",
|
|
7267
|
+
"duration.secondUnit": "s",
|
|
7268
|
+
"duration.minuteUnit": "m ",
|
|
7269
|
+
"duration.hourUnit": "h ",
|
|
7270
|
+
"command.running": "Corriendo…",
|
|
7271
|
+
"command.failed": "El comando falló",
|
|
7272
|
+
"command.done": "Completado",
|
|
7273
|
+
"command.title": "Comando",
|
|
7274
|
+
"row.running": "corriendo",
|
|
7275
|
+
"row.failed": "Fallido",
|
|
7276
|
+
"json.truncated": "… truncado, caracteres {total} en total",
|
|
7277
|
+
"clock.md": "{m}/{d}",
|
|
7278
|
+
"clock.ymd": "{y}-{m}-{d}"
|
|
7279
|
+
};
|
|
7280
|
+
/** French dictionary, checked against the English keys. */
|
|
7281
|
+
const fr = {
|
|
7282
|
+
"message.stepProcess.thinking": "Analyser la demande",
|
|
7283
|
+
"message.stepProcess.read": "Lecture de fichiers",
|
|
7284
|
+
"message.stepProcess.readImage": "Lire des images",
|
|
7285
|
+
"message.stepProcess.write": "Écriture de fichiers",
|
|
7286
|
+
"message.stepProcess.search": "Recherche de code",
|
|
7287
|
+
"message.stepProcess.edit": "Modification de fichiers",
|
|
7288
|
+
"message.stepProcess.commands": "Exécuter des commandes",
|
|
7289
|
+
"message.stepProcess.code": "Exécution du code",
|
|
7290
|
+
"message.stepProcess.webSearch": "Recherche sur le Web",
|
|
7291
|
+
"message.stepProcess.webFetch": "Visiter des pages Web",
|
|
7292
|
+
"message.stepProcess.subagents": "Sous-agents de coordination",
|
|
7293
|
+
"message.stepProcess.plan": "Mise à jour du plan",
|
|
7294
|
+
"message.stepProcess.questions": "En attendant votre action",
|
|
7295
|
+
"message.stepProcess.tools": "Outils d'appel",
|
|
7296
|
+
"message.stepProcess.prepare.read": "Préparation à la lecture de fichiers",
|
|
7297
|
+
"message.stepProcess.prepare.readImage": "Se préparer à lire des images",
|
|
7298
|
+
"message.stepProcess.prepare.write": "Préparation à l'écriture de fichiers",
|
|
7299
|
+
"message.stepProcess.prepare.search": "Préparation à la recherche de code",
|
|
7300
|
+
"message.stepProcess.prepare.edit": "Préparation à la modification de fichiers",
|
|
7301
|
+
"message.stepProcess.prepare.commands": "Préparation à l'exécution de commandes",
|
|
7302
|
+
"message.stepProcess.prepare.code": "Préparation à l'exécution du code",
|
|
7303
|
+
"message.stepProcess.prepare.webSearch": "Se préparer à effectuer une recherche sur le Web",
|
|
7304
|
+
"message.stepProcess.prepare.webFetch": "Se préparer à visiter des pages Web",
|
|
7305
|
+
"message.stepProcess.prepare.subagents": "Se préparer à coordonner les sous-agents",
|
|
7306
|
+
"message.stepProcess.prepare.plan": "Préparation de la mise à jour du plan",
|
|
7307
|
+
"message.stepProcess.prepare.questions": "Préparation des questions",
|
|
7308
|
+
"message.stepProcess.prepare.tools": "Préparation des appels d'outils",
|
|
7309
|
+
"message.stepProcess.done.thinking": "Analyse terminée",
|
|
7310
|
+
"message.stepProcess.done.read": "Lire des fichiers",
|
|
7311
|
+
"message.stepProcess.done.readImage": "Lire des images",
|
|
7312
|
+
"message.stepProcess.done.write": "A écrit des fichiers",
|
|
7313
|
+
"message.stepProcess.done.search": "Code recherché",
|
|
7314
|
+
"message.stepProcess.done.edit": "Fichiers modifiés",
|
|
7315
|
+
"message.stepProcess.done.commands": "Commandes exécutées",
|
|
7316
|
+
"message.stepProcess.done.code": "Code exécuté",
|
|
7317
|
+
"message.stepProcess.done.webSearch": "J'ai cherché sur le Web",
|
|
7318
|
+
"message.stepProcess.done.webFetch": "Pages Web visitées",
|
|
7319
|
+
"message.stepProcess.done.subagents": "Sous-agents coordonnés",
|
|
7320
|
+
"message.stepProcess.done.plan": "Plan mis à jour",
|
|
7321
|
+
"message.stepProcess.done.questions": "Questions posées",
|
|
7322
|
+
"message.stepProcess.done.tools": "Outils appelés",
|
|
7323
|
+
"message.stepProcess.joinTwo": "{first} et {second}",
|
|
7324
|
+
"message.stepProcess.comma": ", ",
|
|
7325
|
+
"message.stepProcess.sharedPrefix": "",
|
|
7326
|
+
"message.stepProcess.more": "{title}, etc.",
|
|
7327
|
+
"message.trigger.request": "Exécution demandée",
|
|
7328
|
+
"message.trigger.goal": "Objectif continu",
|
|
7329
|
+
"message.trigger.agent": "Message de tâche reçu",
|
|
7330
|
+
"message.trigger.team": "Message d'équipe reçu",
|
|
7331
|
+
"message.trigger.subagent": "Statut de la sous-tâche mis à jour",
|
|
7332
|
+
"message.trigger.github": "Événement GitHub reçu",
|
|
7333
|
+
"message.trigger.webhook": "Événement externe reçu",
|
|
7334
|
+
"message.trigger.schedule": "Tâche d'automatisation",
|
|
7335
|
+
"message.trigger.job": "Tâche en arrière-plan mise à jour",
|
|
7336
|
+
"message.trigger.plugin": "Statut du plugin mis à jour",
|
|
7337
|
+
"message.trigger.explanation": "Cette notification a déclenché cette réponse.",
|
|
7338
|
+
"message.turnProcess.worked": "Terminé",
|
|
7339
|
+
"message.turnProcess.took": "Terminé en ",
|
|
7340
|
+
"message.turnProcess.failed": "Échec",
|
|
7341
|
+
"view.chat": "Discussion",
|
|
7342
|
+
"image.open": "Voir l'image complète",
|
|
7343
|
+
"image.loading": "Chargement de l'image…",
|
|
7344
|
+
"image.failed": "Aperçu de l'image indisponible",
|
|
7345
|
+
"image.dialog": "Aperçu de l'image",
|
|
7346
|
+
"image.close": "Fermer l'aperçu de l'image",
|
|
7347
|
+
"number.groupSeparator": ",",
|
|
7348
|
+
"duration.compactSeconds": "{seconds}s",
|
|
7349
|
+
"duration.compactMinutes": "{minutes}m{seconds}s",
|
|
7350
|
+
"duration.milliseconds": "{milliseconds}ms",
|
|
7351
|
+
"stats.counts": "{turns} tours, {steps} étapes",
|
|
7352
|
+
"stats.cacheHit": "Taux de réussite du cache : {percent} %",
|
|
7353
|
+
"stats.dialog.title": "Statistiques de session",
|
|
7354
|
+
"stats.dialog.usageTitle": "Utilisation des jetons",
|
|
7355
|
+
"stats.dialog.llmTime": "Temps LLM",
|
|
7356
|
+
"stats.dialog.toolTime": "Temps d'outil",
|
|
7357
|
+
"stats.dialog.ttft": "Temps moyen jusqu'au premier jeton (TTFT)",
|
|
7358
|
+
"stats.dialog.speed": "Jetons par seconde (TPS)",
|
|
7359
|
+
"chat.loadingHistory": "Chargement de l'historique…",
|
|
7360
|
+
"chat.loadError": "Échec du chargement de l'historique\xA0: {message} ({code})",
|
|
7361
|
+
"chat.loadOlder": "Charger plus tôt",
|
|
7362
|
+
"chat.toBottom": "Retour en bas",
|
|
7363
|
+
"chat.deepDiving": "Réflexion approfondie",
|
|
7364
|
+
"chat.deepDivingFor": "Réflexion approfondie depuis {duration} ···",
|
|
7365
|
+
"chat.turnNavigation.label": "Navigation entre les tours",
|
|
7366
|
+
"chat.turnNavigation.jump": "Aller au tour {turn}",
|
|
7367
|
+
"chat.turnNavigation.jumpLoad": "Charger et aller au tour {turn}",
|
|
7368
|
+
"chat.turnNavigation.turn": "Tour {turn}",
|
|
7369
|
+
"settings.performance.title": "Performances et utilisation",
|
|
7370
|
+
"settings.performance.description": "Choisissez la quantité d'informations sur les performances et l'utilisation à afficher",
|
|
7371
|
+
"settings.performance.compact": "Compacte",
|
|
7372
|
+
"settings.performance.detailed": "Détaillé",
|
|
7373
|
+
"settings.links.title": "Ouvrir les liens de discussion dans",
|
|
7374
|
+
"settings.links.description": "Choisissez où ouvrir les liens Web",
|
|
7375
|
+
"settings.links.sidebar": "Barre latérale dans l'application",
|
|
7376
|
+
"settings.links.newTab": "Navigateur par défaut",
|
|
7377
|
+
"settings.transcript.title": "Détails du travail",
|
|
7378
|
+
"settings.transcript.description": "Choisissez le niveau de détails à afficher pour les appels d'outils",
|
|
7379
|
+
"settings.collapse.title": "Quand réduire les détails du travail",
|
|
7380
|
+
"settings.collapse.description": "Choisissez quand réduire automatiquement les détails du travail",
|
|
7381
|
+
"settings.collapse.completion": "À la fin",
|
|
7382
|
+
"settings.collapse.nextInput": "Au prochain message",
|
|
7383
|
+
"settings.foldedReplies.title": "Réponses après le repli",
|
|
7384
|
+
"settings.foldedReplies.description": "Choisissez quelles réponses de l'assistant restent visibles lorsque les détails du travail sont réduits",
|
|
7385
|
+
"settings.foldedReplies.all": "Toutes les réponses",
|
|
7386
|
+
"settings.foldedReplies.final": "Réponse finale seulement",
|
|
7387
|
+
"settings.transcript.compact": "Compacte",
|
|
7388
|
+
"settings.transcript.standard": "Norme",
|
|
7389
|
+
"settings.transcript.detailed": "Détaillé",
|
|
7390
|
+
"settings.transcript.verbose": "Verbeux",
|
|
7391
|
+
"fileOpen.title": "Impossible d'ouvrir le fichier",
|
|
7392
|
+
"fileOpen.unknown": "Impossible d'ouvrir ce fichier",
|
|
7393
|
+
"message.extraBlock": "Bloc de contenu supplémentaire",
|
|
7394
|
+
"message.systemPrompt": "Invite système",
|
|
7395
|
+
"message.systemPromptUpdate": "Mise à jour de l'invite du système",
|
|
7396
|
+
"message.toolAdded": "Outil ajouté\xA0: {name}",
|
|
7397
|
+
"message.toolRemoved": "Outil supprimé\xA0: {name}",
|
|
7398
|
+
"message.toolsAdded": "Ajouté\xA0: {names}",
|
|
7399
|
+
"message.toolsAddedCount": "{count} ajouté",
|
|
7400
|
+
"message.toolsChanged": "{added} ajouté, {removed} supprimé",
|
|
7401
|
+
"message.toolsRemoved": "Supprimé\xA0: {names}",
|
|
7402
|
+
"message.toolsRemovedCount": "{count} supprimé",
|
|
7403
|
+
"message.toolsUpdated": "Outils mis à jour",
|
|
7404
|
+
"message.contextInjection": "Injection de contexte",
|
|
7405
|
+
"message.contextRecall": "Rappel de session",
|
|
7406
|
+
"message.referenceSummary": "Séance référencée · {labels}",
|
|
7407
|
+
"message.referenceSeparator": ", ",
|
|
7408
|
+
"message.context.instructions.loaded": "chargé",
|
|
7409
|
+
"message.context.instructions.added": "ajouté",
|
|
7410
|
+
"message.context.instructions.updated": "mis à jour",
|
|
7411
|
+
"message.context.instructions.removed": "supprimé",
|
|
7412
|
+
"message.context.catalog.replaced": "Catalogue de remplacement",
|
|
7413
|
+
"message.context.catalog.more": "… {count} plus",
|
|
7414
|
+
"message.context.snapshot.supersedes": "Remplace les instantanés précédents",
|
|
7415
|
+
"message.context.relay.from": "De la séance {session}",
|
|
7416
|
+
"message.context.recall.counts": "{retained} conservé · {omitted} omis",
|
|
7417
|
+
"message.context.recall.truncated": "tronqué",
|
|
7418
|
+
"message.compaction": "Contexte compacté",
|
|
7419
|
+
"message.compaction.running": "Contexte de compactage…",
|
|
7420
|
+
"message.compaction.completed": "Éléments d'historique {items} compactés (~jetons {tokens})",
|
|
7421
|
+
"message.compaction.expand": "Afficher le résumé du compactage",
|
|
7422
|
+
"message.compaction.unavailable": "Résumé du compactage indisponible",
|
|
7423
|
+
"message.compaction.commandTitle": "compacte",
|
|
7424
|
+
"message.think": "Pensez",
|
|
7425
|
+
"message.unknownSurface": "Événement de surface inconnu\xA0: {type}",
|
|
7426
|
+
"message.unknownBlock": "Bloc de contenu inconnu",
|
|
7427
|
+
"message.turnProcess.toolCalls.one": "Appel d'outil {count}",
|
|
7428
|
+
"message.turnProcess.toolCalls.other": "Appels d'outil {count}",
|
|
7429
|
+
"message.turnProcess.messages.one": "Message {count}",
|
|
7430
|
+
"message.turnProcess.messages.other": "Messages {count}",
|
|
7431
|
+
"message.turnProcess.subagents.one": "Sous-agent {count}",
|
|
7432
|
+
"message.turnProcess.subagents.other": "Sous-agents {count}",
|
|
7433
|
+
"message.turnProcess.thoughtForAWhile": "Réflexion pendant un moment",
|
|
7434
|
+
"message.turnProcess.separator": " · ",
|
|
7435
|
+
"message.stopped": "Arrêté",
|
|
7436
|
+
"message.branch": "Lancez-vous dans une nouvelle conversation",
|
|
7437
|
+
"message.branchUnavailable": "Disponible uniquement sur le dernier message d'un tour terminé",
|
|
7438
|
+
"message.retry.active": "Nouvelle tentative de demande de modèle",
|
|
7439
|
+
"message.retry.cancelled": "Nouvelle tentative de demande de modèle annulée",
|
|
7440
|
+
"message.retry.started": "Demande de modèle réessayée",
|
|
7441
|
+
"message.retry.scheduled": "En attente de réessayer la demande de modèle",
|
|
7442
|
+
"message.retry.status": "{label} ({retry}/{maximum}) · {seconds}",
|
|
7443
|
+
"message.retry.delay": "Délai de nouvelle tentative\xA0: ",
|
|
7444
|
+
"message.retry.failure": "Raison de l'échec\xA0: ",
|
|
7445
|
+
"message.failure.auth": "La clé API n'est pas valide",
|
|
7446
|
+
"message.taskStopped": "Tâche arrêtée",
|
|
7447
|
+
"message.failure.accountSignedOut": "Arrêté car vous vous êtes déconnecté de DeepSeek.",
|
|
7448
|
+
"message.failure.interrupted": "Le processus DSH s'est terminé avant la fin de ce tour (par exemple, il a été arrêté, s'est écrasé ou a expiré lors de l'arrêt), de sorte que le tour a été fermé lorsque DSH a redémarré. Les appels d’outils inachevés ont des résultats inconnus.",
|
|
7449
|
+
"message.failure.accountSignInRequired": "Connectez-vous à DeepSeek et assurez-vous que la destination de la demande prend en charge l'authentification du compte.",
|
|
7450
|
+
"message.failure.quota": "Quota de demandes épuisé.",
|
|
7451
|
+
"message.turnError": "Ce tour a échoué",
|
|
7452
|
+
"message.maxTokens": "Limite de jetons de sortie atteinte",
|
|
7453
|
+
"message.maxTokens.hint": "La réponse fut coupée ; la sortie antérieure est conservée dans la conversation. Envoyez «\xA0continuer\xA0» pour laisser le modèle reprendre.",
|
|
7454
|
+
"message.tokensPerSecond": "{tps} jetons/s",
|
|
7455
|
+
"message.turnUsage.title": "Consommation du tour",
|
|
7456
|
+
"message.turnUsage.consumed": "Utilisation {total}",
|
|
7457
|
+
"message.turnUsage.model": "Fournisseur / modèle",
|
|
7458
|
+
"message.turnUsage.cacheHit": "Taux de réussite du cache",
|
|
7459
|
+
"message.turnUsage.input": "Entrée non mise en cache",
|
|
7460
|
+
"message.turnUsage.cacheRead": "Entrée en cache",
|
|
7461
|
+
"message.turnUsage.cacheWrite": "Écriture en cache",
|
|
7462
|
+
"message.turnUsage.output": "Sortie",
|
|
7463
|
+
"message.turnUsage.reasoning": " (raisonnement {tokens})",
|
|
7464
|
+
"message.turnUsage.count": "Jeton {count}",
|
|
7465
|
+
"duration.secondUnit": "s",
|
|
7466
|
+
"duration.minuteUnit": "m ",
|
|
7467
|
+
"duration.hourUnit": "h ",
|
|
7468
|
+
"command.running": "Courir…",
|
|
7469
|
+
"command.failed": "La commande a échoué",
|
|
7470
|
+
"command.done": "Terminé",
|
|
7471
|
+
"command.title": "Commande",
|
|
7472
|
+
"row.running": "Courir",
|
|
7473
|
+
"row.failed": "Échec",
|
|
7474
|
+
"json.truncated": "… tronqué, nombre total de caractères {total}",
|
|
7475
|
+
"clock.md": "{m}/{d}",
|
|
7476
|
+
"clock.ymd": "{y}-{m}-{d}"
|
|
7477
|
+
};
|
|
7478
|
+
/** German dictionary, checked against the English keys. */
|
|
7479
|
+
const de = {
|
|
7480
|
+
"message.stepProcess.thinking": "Analyse der Anfrage",
|
|
7481
|
+
"message.stepProcess.read": "Dateien lesen",
|
|
7482
|
+
"message.stepProcess.readImage": "Bilder lesen",
|
|
7483
|
+
"message.stepProcess.write": "Dateien schreiben",
|
|
7484
|
+
"message.stepProcess.search": "Code wird gesucht",
|
|
7485
|
+
"message.stepProcess.edit": "Bearbeiten von Dateien",
|
|
7486
|
+
"message.stepProcess.commands": "Befehle ausführen",
|
|
7487
|
+
"message.stepProcess.code": "Ausführen von Code",
|
|
7488
|
+
"message.stepProcess.webSearch": "Suche im Internet",
|
|
7489
|
+
"message.stepProcess.webFetch": "Besuch von Webseiten",
|
|
7490
|
+
"message.stepProcess.subagents": "Koordinierende Unteragenten",
|
|
7491
|
+
"message.stepProcess.plan": "Aktualisierung des Plans",
|
|
7492
|
+
"message.stepProcess.questions": "Ich warte auf Ihre Aktion",
|
|
7493
|
+
"message.stepProcess.tools": "Aufrufende Werkzeuge",
|
|
7494
|
+
"message.stepProcess.prepare.read": "Vorbereitung zum Lesen von Dateien",
|
|
7495
|
+
"message.stepProcess.prepare.readImage": "Vorbereitung zum Lesen von Bildern",
|
|
7496
|
+
"message.stepProcess.prepare.write": "Vorbereitung zum Schreiben von Dateien",
|
|
7497
|
+
"message.stepProcess.prepare.search": "Vorbereiten der Codesuche",
|
|
7498
|
+
"message.stepProcess.prepare.edit": "Vorbereitung zum Bearbeiten von Dateien",
|
|
7499
|
+
"message.stepProcess.prepare.commands": "Vorbereitung zum Ausführen von Befehlen",
|
|
7500
|
+
"message.stepProcess.prepare.code": "Vorbereiten, Code auszuführen",
|
|
7501
|
+
"message.stepProcess.prepare.webSearch": "Bereiten Sie sich auf die Suche im Internet vor",
|
|
7502
|
+
"message.stepProcess.prepare.webFetch": "Vorbereitung auf den Besuch von Webseiten",
|
|
7503
|
+
"message.stepProcess.prepare.subagents": "Vorbereitung zur Koordinierung von Subagenten",
|
|
7504
|
+
"message.stepProcess.prepare.plan": "Vorbereitung zur Aktualisierung des Plans",
|
|
7505
|
+
"message.stepProcess.prepare.questions": "Fragen vorbereiten",
|
|
7506
|
+
"message.stepProcess.prepare.tools": "Toolaufrufe vorbereiten",
|
|
7507
|
+
"message.stepProcess.done.thinking": "Analyse abgeschlossen",
|
|
7508
|
+
"message.stepProcess.done.read": "Dateien lesen",
|
|
7509
|
+
"message.stepProcess.done.readImage": "Bilder lesen",
|
|
7510
|
+
"message.stepProcess.done.write": "Dateien geschrieben",
|
|
7511
|
+
"message.stepProcess.done.search": "Gesuchter Code",
|
|
7512
|
+
"message.stepProcess.done.edit": "Bearbeitete Dateien",
|
|
7513
|
+
"message.stepProcess.done.commands": "Befehle ausgeführt",
|
|
7514
|
+
"message.stepProcess.done.code": "Code ausgeführt",
|
|
7515
|
+
"message.stepProcess.done.webSearch": "Habe das Internet durchsucht",
|
|
7516
|
+
"message.stepProcess.done.webFetch": "Besuchte Webseiten",
|
|
7517
|
+
"message.stepProcess.done.subagents": "Koordinierte Unteragenten",
|
|
7518
|
+
"message.stepProcess.done.plan": "Plan aktualisiert",
|
|
7519
|
+
"message.stepProcess.done.questions": "Gestellte Fragen",
|
|
7520
|
+
"message.stepProcess.done.tools": "Werkzeuge genannt",
|
|
7521
|
+
"message.stepProcess.joinTwo": "{first} und {second}",
|
|
7522
|
+
"message.stepProcess.comma": ", ",
|
|
7523
|
+
"message.stepProcess.sharedPrefix": "",
|
|
7524
|
+
"message.stepProcess.more": "{title} usw.",
|
|
7525
|
+
"message.trigger.request": "Ausführung beantragt",
|
|
7526
|
+
"message.trigger.goal": "Weiterführendes Ziel",
|
|
7527
|
+
"message.trigger.agent": "Aufgabennachricht erhalten",
|
|
7528
|
+
"message.trigger.team": "Teamnachricht erhalten",
|
|
7529
|
+
"message.trigger.subagent": "Unteraufgabenstatus aktualisiert",
|
|
7530
|
+
"message.trigger.github": "GitHub-Ereignis empfangen",
|
|
7531
|
+
"message.trigger.webhook": "Externes Ereignis empfangen",
|
|
7532
|
+
"message.trigger.schedule": "Automatisierungsaufgabe",
|
|
7533
|
+
"message.trigger.job": "Hintergrundaufgabe aktualisiert",
|
|
7534
|
+
"message.trigger.plugin": "Plugin-Status aktualisiert",
|
|
7535
|
+
"message.trigger.explanation": "Diese Benachrichtigung hat diese Reaktion ausgelöst.",
|
|
7536
|
+
"message.turnProcess.worked": "Abgeschlossen",
|
|
7537
|
+
"message.turnProcess.took": "Fertiggestellt in ",
|
|
7538
|
+
"message.turnProcess.failed": "Fehlgeschlagen",
|
|
7539
|
+
"view.chat": "Chat",
|
|
7540
|
+
"image.open": "Vollständiges Bild anzeigen",
|
|
7541
|
+
"image.loading": "Bild wird geladen…",
|
|
7542
|
+
"image.failed": "Bildvorschau nicht verfügbar",
|
|
7543
|
+
"image.dialog": "Bildvorschau",
|
|
7544
|
+
"image.close": "Bildvorschau schließen",
|
|
7545
|
+
"number.groupSeparator": ",",
|
|
7546
|
+
"duration.compactSeconds": "{seconds}s",
|
|
7547
|
+
"duration.compactMinutes": "{minutes}m{seconds}s",
|
|
7548
|
+
"duration.milliseconds": "{milliseconds}ms",
|
|
7549
|
+
"stats.counts": "{turns} Runden, {steps} Schritte",
|
|
7550
|
+
"stats.cacheHit": "Cache-Treffer: {percent}%",
|
|
7551
|
+
"stats.dialog.title": "Sitzungsstatistiken",
|
|
7552
|
+
"stats.dialog.usageTitle": "Token-Nutzung",
|
|
7553
|
+
"stats.dialog.llmTime": "LLM-Zeit",
|
|
7554
|
+
"stats.dialog.toolTime": "Werkzeugzeit",
|
|
7555
|
+
"stats.dialog.ttft": "Durchschnittliche Zeit bis zum ersten Token (TTFT)",
|
|
7556
|
+
"stats.dialog.speed": "Token pro Sekunde (TPS)",
|
|
7557
|
+
"chat.loadingHistory": "Verlauf wird geladen…",
|
|
7558
|
+
"chat.loadError": "Fehler beim Laden des Verlaufs: {message} ({code})",
|
|
7559
|
+
"chat.loadOlder": "Früher laden",
|
|
7560
|
+
"chat.toBottom": "Zurück nach unten",
|
|
7561
|
+
"chat.deepDiving": "Gründliches Nachdenken",
|
|
7562
|
+
"chat.deepDivingFor": "Gründliches Nachdenken seit {duration} ···",
|
|
7563
|
+
"chat.turnNavigation.label": "Rundennavigation",
|
|
7564
|
+
"chat.turnNavigation.jump": "Zu Runde {turn} springen",
|
|
7565
|
+
"chat.turnNavigation.jumpLoad": "Runde {turn} laden und öffnen",
|
|
7566
|
+
"chat.turnNavigation.turn": "Runde {turn}",
|
|
7567
|
+
"settings.performance.title": "Leistung und Nutzung",
|
|
7568
|
+
"settings.performance.description": "Wählen Sie aus, wie viele Leistungs- und Nutzungsinformationen angezeigt werden sollen",
|
|
7569
|
+
"settings.performance.compact": "Kompakt",
|
|
7570
|
+
"settings.performance.detailed": "Ausführlich",
|
|
7571
|
+
"settings.links.title": "Öffnen Sie Chat-Links in",
|
|
7572
|
+
"settings.links.description": "Wählen Sie aus, wo Weblinks geöffnet werden sollen",
|
|
7573
|
+
"settings.links.sidebar": "In-App-Seitenleiste",
|
|
7574
|
+
"settings.links.newTab": "Standardbrowser",
|
|
7575
|
+
"settings.transcript.title": "Arbeitsdetails",
|
|
7576
|
+
"settings.transcript.description": "Wählen Sie aus, wie viele Details für Werkzeugaufrufe angezeigt werden sollen",
|
|
7577
|
+
"settings.collapse.title": "Wann Arbeitsdetails minimiert werden sollten",
|
|
7578
|
+
"settings.collapse.description": "Wählen Sie aus, wann Arbeitsdetails automatisch ausgeblendet werden sollen",
|
|
7579
|
+
"settings.collapse.completion": "Nach Fertigstellung",
|
|
7580
|
+
"settings.collapse.nextInput": "Bei der nächsten Nachricht",
|
|
7581
|
+
"settings.foldedReplies.title": "Antworten nach dem Einklappen",
|
|
7582
|
+
"settings.foldedReplies.description": "Wählen Sie aus, welche Assistentenantworten sichtbar bleiben, wenn die Arbeitsdetails ausgeblendet werden",
|
|
7583
|
+
"settings.foldedReplies.all": "Alle Antworten",
|
|
7584
|
+
"settings.foldedReplies.final": "Nur die endgültige Antwort",
|
|
7585
|
+
"settings.transcript.compact": "Kompakt",
|
|
7586
|
+
"settings.transcript.standard": "Standard",
|
|
7587
|
+
"settings.transcript.detailed": "Ausführlich",
|
|
7588
|
+
"settings.transcript.verbose": "Ausführlich",
|
|
7589
|
+
"fileOpen.title": "Datei konnte nicht geöffnet werden",
|
|
7590
|
+
"fileOpen.unknown": "Diese Datei konnte nicht geöffnet werden",
|
|
7591
|
+
"message.extraBlock": "Zusätzlicher Inhaltsblock",
|
|
7592
|
+
"message.systemPrompt": "Systemaufforderung",
|
|
7593
|
+
"message.systemPromptUpdate": "Aktualisierung der Systemaufforderung",
|
|
7594
|
+
"message.toolAdded": "Tool hinzugefügt: {name}",
|
|
7595
|
+
"message.toolRemoved": "Entferntes Werkzeug: {name}",
|
|
7596
|
+
"message.toolsAdded": "Hinzugefügt: {names}",
|
|
7597
|
+
"message.toolsAddedCount": "{count} hinzugefügt",
|
|
7598
|
+
"message.toolsChanged": "{added} hinzugefügt, {removed} entfernt",
|
|
7599
|
+
"message.toolsRemoved": "Entfernt: {names}",
|
|
7600
|
+
"message.toolsRemovedCount": "{count} entfernt",
|
|
7601
|
+
"message.toolsUpdated": "Werkzeuge aktualisiert",
|
|
7602
|
+
"message.contextInjection": "Kontextinjektion",
|
|
7603
|
+
"message.contextRecall": "Sitzungsrückruf",
|
|
7604
|
+
"message.referenceSummary": "Referenzierte Sitzung · {labels}",
|
|
7605
|
+
"message.referenceSeparator": ", ",
|
|
7606
|
+
"message.context.instructions.loaded": "geladen",
|
|
7607
|
+
"message.context.instructions.added": "hinzugefügt",
|
|
7608
|
+
"message.context.instructions.updated": "aktualisiert",
|
|
7609
|
+
"message.context.instructions.removed": "entfernt",
|
|
7610
|
+
"message.context.catalog.replaced": "Ersatzkatalog",
|
|
7611
|
+
"message.context.catalog.more": "… {count} mehr",
|
|
7612
|
+
"message.context.snapshot.supersedes": "Ersetzt frühere Schnappschüsse",
|
|
7613
|
+
"message.context.relay.from": "Aus der Sitzung {session}",
|
|
7614
|
+
"message.context.recall.counts": "{retained} beibehalten · {omitted} weggelassen",
|
|
7615
|
+
"message.context.recall.truncated": "abgeschnitten",
|
|
7616
|
+
"message.compaction": "Kontext verdichtet",
|
|
7617
|
+
"message.compaction.running": "Kontext verdichten…",
|
|
7618
|
+
"message.compaction.completed": "Komprimierte {items}-Verlaufselemente (~{tokens}-Tokens)",
|
|
7619
|
+
"message.compaction.expand": "Komprimierungszusammenfassung anzeigen",
|
|
7620
|
+
"message.compaction.unavailable": "Komprimierungszusammenfassung nicht verfügbar",
|
|
7621
|
+
"message.compaction.commandTitle": "kompakt",
|
|
7622
|
+
"message.think": "Denken Sie nach",
|
|
7623
|
+
"message.unknownSurface": "Unbekanntes Oberflächenereignis: {type}",
|
|
7624
|
+
"message.unknownBlock": "Unbekannter Inhaltsblock",
|
|
7625
|
+
"message.turnProcess.toolCalls.one": "Werkzeugaufruf {count}",
|
|
7626
|
+
"message.turnProcess.toolCalls.other": "{count} Toolaufrufe",
|
|
7627
|
+
"message.turnProcess.messages.one": "{count}-Nachricht",
|
|
7628
|
+
"message.turnProcess.messages.other": "{count}-Nachrichten",
|
|
7629
|
+
"message.turnProcess.subagents.one": "{count}-Subagent",
|
|
7630
|
+
"message.turnProcess.subagents.other": "{count}-Subagenten",
|
|
7631
|
+
"message.turnProcess.thoughtForAWhile": "Eine Weile nachgedacht",
|
|
7632
|
+
"message.turnProcess.separator": " · ",
|
|
7633
|
+
"message.stopped": "Angehalten",
|
|
7634
|
+
"message.branch": "Verzweigen Sie in ein neues Gespräch",
|
|
7635
|
+
"message.branchUnavailable": "Nur verfügbar bei der letzten Nachricht einer abgeschlossenen Runde",
|
|
7636
|
+
"message.retry.active": "Modellanforderung wird erneut versucht",
|
|
7637
|
+
"message.retry.cancelled": "Wiederholungsversuch der Modellanforderung abgebrochen",
|
|
7638
|
+
"message.retry.started": "Modellanfrage erneut versucht",
|
|
7639
|
+
"message.retry.scheduled": "Warten auf erneuten Versuch der Modellanforderung",
|
|
7640
|
+
"message.retry.status": "{label} ({retry}/{maximum}) · {seconds}s",
|
|
7641
|
+
"message.retry.delay": "Wiederholungsverzögerung: ",
|
|
7642
|
+
"message.retry.failure": "Fehlergrund: ",
|
|
7643
|
+
"message.failure.auth": "Der API-Schlüssel ist ungültig",
|
|
7644
|
+
"message.taskStopped": "Aufgabe gestoppt",
|
|
7645
|
+
"message.failure.accountSignedOut": "Gestoppt, weil Sie sich von DeepSeek abgemeldet haben.",
|
|
7646
|
+
"message.failure.interrupted": "Der DSH-Prozess wurde beendet, bevor dieser Zug beendet war (z. B. wurde er beendet, stürzte ab oder es kam zu einer Zeitüberschreitung beim Herunterfahren), sodass der Zug geschlossen wurde, als DSH neu gestartet wurde. Unvollendete Werkzeugaufrufe haben unbekannte Ergebnisse.",
|
|
7647
|
+
"message.failure.accountSignInRequired": "Melden Sie sich bei DeepSeek an und stellen Sie sicher, dass das Anforderungsziel die Kontoauthentifizierung unterstützt.",
|
|
7648
|
+
"message.failure.quota": "Anforderungskontingent ausgeschöpft.",
|
|
7649
|
+
"message.turnError": "Diese Runde ist fehlgeschlagen",
|
|
7650
|
+
"message.maxTokens": "Ausgabe-Token-Limit erreicht",
|
|
7651
|
+
"message.maxTokens.hint": "Die Antwort wurde abgeschnitten; Frühere Ausgaben bleiben in der Konversation erhalten. Senden Sie „Weiter“, um das Modell fortzusetzen.",
|
|
7652
|
+
"message.tokensPerSecond": "{tps} tok/s",
|
|
7653
|
+
"message.turnUsage.title": "Rundenverbrauch",
|
|
7654
|
+
"message.turnUsage.consumed": "Verwendung {total}",
|
|
7655
|
+
"message.turnUsage.model": "Anbieter / Modell",
|
|
7656
|
+
"message.turnUsage.cacheHit": "Cache-Treffer",
|
|
7657
|
+
"message.turnUsage.input": "Nicht zwischengespeicherte Eingabe",
|
|
7658
|
+
"message.turnUsage.cacheRead": "Zwischengespeicherte Eingabe",
|
|
7659
|
+
"message.turnUsage.cacheWrite": "Cache-Schreiben",
|
|
7660
|
+
"message.turnUsage.output": "Ausgabe",
|
|
7661
|
+
"message.turnUsage.reasoning": " ({tokens}-Argumentation)",
|
|
7662
|
+
"message.turnUsage.count": "{count}-Token",
|
|
7663
|
+
"duration.secondUnit": "s",
|
|
7664
|
+
"duration.minuteUnit": "m ",
|
|
7665
|
+
"duration.hourUnit": "h ",
|
|
7666
|
+
"command.running": "Laufen…",
|
|
7667
|
+
"command.failed": "Der Befehl ist fehlgeschlagen",
|
|
7668
|
+
"command.done": "Abgeschlossen",
|
|
7669
|
+
"command.title": "Befehl",
|
|
7670
|
+
"row.running": "Laufen",
|
|
7671
|
+
"row.failed": "Fehlgeschlagen",
|
|
7672
|
+
"json.truncated": "… gekürzt, {total} Zeichen insgesamt",
|
|
7673
|
+
"clock.md": "{m}/{d}",
|
|
7674
|
+
"clock.ymd": "{y}-{m}-{d}"
|
|
7675
|
+
};
|
|
7676
|
+
/** Russian dictionary, checked against the English keys. */
|
|
7677
|
+
const ru = {
|
|
7678
|
+
"message.stepProcess.thinking": "Анализ запроса",
|
|
7679
|
+
"message.stepProcess.read": "Чтение файлов",
|
|
7680
|
+
"message.stepProcess.readImage": "Чтение изображений",
|
|
7681
|
+
"message.stepProcess.write": "Запись файлов",
|
|
7682
|
+
"message.stepProcess.search": "Поиск кода",
|
|
7683
|
+
"message.stepProcess.edit": "Редактирование файлов",
|
|
7684
|
+
"message.stepProcess.commands": "Запуск команд",
|
|
7685
|
+
"message.stepProcess.code": "Запуск кода",
|
|
7686
|
+
"message.stepProcess.webSearch": "Поиск в Интернете",
|
|
7687
|
+
"message.stepProcess.webFetch": "Посещение веб-страниц",
|
|
7688
|
+
"message.stepProcess.subagents": "Координирующие субагенты",
|
|
7689
|
+
"message.stepProcess.plan": "Обновление плана",
|
|
7690
|
+
"message.stepProcess.questions": "Жду ваших действий",
|
|
7691
|
+
"message.stepProcess.tools": "Вызов инструментов",
|
|
7692
|
+
"message.stepProcess.prepare.read": "Подготовка к чтению файлов",
|
|
7693
|
+
"message.stepProcess.prepare.readImage": "Подготовка к чтению изображений",
|
|
7694
|
+
"message.stepProcess.prepare.write": "Подготовка к записи файлов",
|
|
7695
|
+
"message.stepProcess.prepare.search": "Подготовка к поиску кода",
|
|
7696
|
+
"message.stepProcess.prepare.edit": "Подготовка к редактированию файлов",
|
|
7697
|
+
"message.stepProcess.prepare.commands": "Подготовка к выполнению команд",
|
|
7698
|
+
"message.stepProcess.prepare.code": "Подготовка к запуску кода",
|
|
7699
|
+
"message.stepProcess.prepare.webSearch": "Подготовка к поиску в Интернете",
|
|
7700
|
+
"message.stepProcess.prepare.webFetch": "Подготовка к посещению веб-страниц",
|
|
7701
|
+
"message.stepProcess.prepare.subagents": "Подготовка к координации субагентов",
|
|
7702
|
+
"message.stepProcess.prepare.plan": "Подготовка к обновлению плана",
|
|
7703
|
+
"message.stepProcess.prepare.questions": "Подготовка вопросов",
|
|
7704
|
+
"message.stepProcess.prepare.tools": "Подготовка вызовов инструментов",
|
|
7705
|
+
"message.stepProcess.done.thinking": "Анализ завершен",
|
|
7706
|
+
"message.stepProcess.done.read": "Чтение файлов",
|
|
7707
|
+
"message.stepProcess.done.readImage": "Чтение изображений",
|
|
7708
|
+
"message.stepProcess.done.write": "Написал файлы",
|
|
7709
|
+
"message.stepProcess.done.search": "Искомый код",
|
|
7710
|
+
"message.stepProcess.done.edit": "Отредактированные файлы",
|
|
7711
|
+
"message.stepProcess.done.commands": "Выполнение команд",
|
|
7712
|
+
"message.stepProcess.done.code": "Выполненный код",
|
|
7713
|
+
"message.stepProcess.done.webSearch": "Искал в Интернете",
|
|
7714
|
+
"message.stepProcess.done.webFetch": "Посещенные веб-страницы",
|
|
7715
|
+
"message.stepProcess.done.subagents": "Координированные субагенты",
|
|
7716
|
+
"message.stepProcess.done.plan": "Обновлен план",
|
|
7717
|
+
"message.stepProcess.done.questions": "Задаваемые вопросы",
|
|
7718
|
+
"message.stepProcess.done.tools": "Вызываемые инструменты",
|
|
7719
|
+
"message.stepProcess.joinTwo": "{first} и {second}",
|
|
7720
|
+
"message.stepProcess.comma": ", ",
|
|
7721
|
+
"message.stepProcess.sharedPrefix": "",
|
|
7722
|
+
"message.stepProcess.more": "{title} и т. д.",
|
|
7723
|
+
"message.trigger.request": "Запрошено выполнение",
|
|
7724
|
+
"message.trigger.goal": "Постоянная цель",
|
|
7725
|
+
"message.trigger.agent": "Сообщение о задаче получено",
|
|
7726
|
+
"message.trigger.team": "Сообщение команды получено",
|
|
7727
|
+
"message.trigger.subagent": "Статус подзадачи обновлен",
|
|
7728
|
+
"message.trigger.github": "Событие GitHub получено",
|
|
7729
|
+
"message.trigger.webhook": "Получено внешнее событие",
|
|
7730
|
+
"message.trigger.schedule": "Задача автоматизации",
|
|
7731
|
+
"message.trigger.job": "Фоновая задача обновлена.",
|
|
7732
|
+
"message.trigger.plugin": "Статус плагина обновлен",
|
|
7733
|
+
"message.trigger.explanation": "Это уведомление вызвало такой ответ.",
|
|
7734
|
+
"message.turnProcess.worked": "Завершено",
|
|
7735
|
+
"message.turnProcess.took": "Завершено в ",
|
|
7736
|
+
"message.turnProcess.failed": "Не удалось",
|
|
7737
|
+
"view.chat": "Чат",
|
|
7738
|
+
"image.open": "Посмотреть полное изображение",
|
|
7739
|
+
"image.loading": "Загрузка изображения…",
|
|
7740
|
+
"image.failed": "Предварительный просмотр изображения недоступен.",
|
|
7741
|
+
"image.dialog": "Предварительный просмотр изображения",
|
|
7742
|
+
"image.close": "Закрыть предварительный просмотр изображения",
|
|
7743
|
+
"number.groupSeparator": ",",
|
|
7744
|
+
"duration.compactSeconds": "{seconds}s",
|
|
7745
|
+
"duration.compactMinutes": "{minutes}m{seconds}s",
|
|
7746
|
+
"duration.milliseconds": "{milliseconds}ms",
|
|
7747
|
+
"stats.counts": "Ходов: {turns}, шагов: {steps}",
|
|
7748
|
+
"stats.cacheHit": "Попадание в кэш: {percent}%",
|
|
7749
|
+
"stats.dialog.title": "Статистика сеансов",
|
|
7750
|
+
"stats.dialog.usageTitle": "Использование токена",
|
|
7751
|
+
"stats.dialog.llmTime": "время магистратуры",
|
|
7752
|
+
"stats.dialog.toolTime": "Время работы инструмента",
|
|
7753
|
+
"stats.dialog.ttft": "Среднее время до первого токена (TTFT)",
|
|
7754
|
+
"stats.dialog.speed": "Токенов в секунду (TPS)",
|
|
7755
|
+
"chat.loadingHistory": "Загрузка истории…",
|
|
7756
|
+
"chat.loadError": "Не удалось загрузить историю: {message} ({code})",
|
|
7757
|
+
"chat.loadOlder": "Загрузить раньше",
|
|
7758
|
+
"chat.toBottom": "Вернуться к низу",
|
|
7759
|
+
"chat.deepDiving": "Глубокое размышление",
|
|
7760
|
+
"chat.deepDivingFor": "Глубокое размышление в течение {duration} ···",
|
|
7761
|
+
"chat.turnNavigation.label": "Навигация по ходам",
|
|
7762
|
+
"chat.turnNavigation.jump": "Перейти к ходу {turn}",
|
|
7763
|
+
"chat.turnNavigation.jumpLoad": "Загрузить ход {turn} и перейти к нему",
|
|
7764
|
+
"chat.turnNavigation.turn": "Ход {turn}",
|
|
7765
|
+
"settings.performance.title": "Производительность и использование",
|
|
7766
|
+
"settings.performance.description": "Выберите, какой объем информации о производительности и использовании показывать",
|
|
7767
|
+
"settings.performance.compact": "Компактный",
|
|
7768
|
+
"settings.performance.detailed": "Подробный",
|
|
7769
|
+
"settings.links.title": "Открыть ссылки на чат в",
|
|
7770
|
+
"settings.links.description": "Выберите, где открывать веб-ссылки",
|
|
7771
|
+
"settings.links.sidebar": "Боковая панель в приложении",
|
|
7772
|
+
"settings.links.newTab": "Браузер по умолчанию",
|
|
7773
|
+
"settings.transcript.title": "Детали работы",
|
|
7774
|
+
"settings.transcript.description": "Выберите, насколько подробно следует отображать вызовы инструментов.",
|
|
7775
|
+
"settings.collapse.title": "Когда сворачивать детали работы",
|
|
7776
|
+
"settings.collapse.description": "Выберите, когда автоматически сворачивать сведения о работе",
|
|
7777
|
+
"settings.collapse.completion": "По завершении",
|
|
7778
|
+
"settings.collapse.nextInput": "В следующем сообщении",
|
|
7779
|
+
"settings.foldedReplies.title": "Ответы после сворачивания",
|
|
7780
|
+
"settings.foldedReplies.description": "Выберите, какие ответы помощника останутся видимыми, когда сведения о работе будут свернуты.",
|
|
7781
|
+
"settings.foldedReplies.all": "Все ответы",
|
|
7782
|
+
"settings.foldedReplies.final": "Только окончательный ответ",
|
|
7783
|
+
"settings.transcript.compact": "Компактный",
|
|
7784
|
+
"settings.transcript.standard": "Стандартный",
|
|
7785
|
+
"settings.transcript.detailed": "Подробный",
|
|
7786
|
+
"settings.transcript.verbose": "Многословный",
|
|
7787
|
+
"fileOpen.title": "Не удалось открыть файл",
|
|
7788
|
+
"fileOpen.unknown": "Не удалось открыть этот файл",
|
|
7789
|
+
"message.extraBlock": "Дополнительный блок контента",
|
|
7790
|
+
"message.systemPrompt": "Системная подсказка",
|
|
7791
|
+
"message.systemPromptUpdate": "Обновление системного запроса",
|
|
7792
|
+
"message.toolAdded": "Добавлен инструмент: {name}.",
|
|
7793
|
+
"message.toolRemoved": "Инструмент удален: {name}.",
|
|
7794
|
+
"message.toolsAdded": "Добавлено: {names}",
|
|
7795
|
+
"message.toolsAddedCount": "{count} добавлен",
|
|
7796
|
+
"message.toolsChanged": "{added} добавлен, {removed} удален.",
|
|
7797
|
+
"message.toolsRemoved": "Удалено: {names}.",
|
|
7798
|
+
"message.toolsRemovedCount": "{count} удален.",
|
|
7799
|
+
"message.toolsUpdated": "Инструменты обновлены",
|
|
7800
|
+
"message.contextInjection": "Внедрение контекста",
|
|
7801
|
+
"message.contextRecall": "Отзыв сеанса",
|
|
7802
|
+
"message.referenceSummary": "Ссылка на сессию · {labels}",
|
|
7803
|
+
"message.referenceSeparator": ", ",
|
|
7804
|
+
"message.context.instructions.loaded": "загружен",
|
|
7805
|
+
"message.context.instructions.added": "добавлено",
|
|
7806
|
+
"message.context.instructions.updated": "обновлено",
|
|
7807
|
+
"message.context.instructions.removed": "удалено",
|
|
7808
|
+
"message.context.catalog.replaced": "Каталог замены",
|
|
7809
|
+
"message.context.catalog.more": "… {count} ещё",
|
|
7810
|
+
"message.context.snapshot.supersedes": "Заменяет предыдущие снимки",
|
|
7811
|
+
"message.context.relay.from": "Из сеанса {session}",
|
|
7812
|
+
"message.context.recall.counts": "{retained} сохранен · {omitted} опущен",
|
|
7813
|
+
"message.context.recall.truncated": "усеченный",
|
|
7814
|
+
"message.compaction": "Контекст сжат",
|
|
7815
|
+
"message.compaction.running": "Сжатие контекста…",
|
|
7816
|
+
"message.compaction.completed": "Сжатые элементы истории {items} (токены ~{tokens})",
|
|
7817
|
+
"message.compaction.expand": "Посмотреть сводку по уплотнению",
|
|
7818
|
+
"message.compaction.unavailable": "Сводка по уплотнению недоступна.",
|
|
7819
|
+
"message.compaction.commandTitle": "компактный",
|
|
7820
|
+
"message.think": "Подумайте",
|
|
7821
|
+
"message.unknownSurface": "Неизвестное событие на поверхности: {type}.",
|
|
7822
|
+
"message.unknownBlock": "Неизвестный блок контента",
|
|
7823
|
+
"message.turnProcess.toolCalls.one": "{count} вызов инструмента",
|
|
7824
|
+
"message.turnProcess.toolCalls.other": "{count} вызовов инструментов",
|
|
7825
|
+
"message.turnProcess.messages.one": "Сообщение {count}",
|
|
7826
|
+
"message.turnProcess.messages.other": "Сообщения {count}",
|
|
7827
|
+
"message.turnProcess.subagents.one": "Субагент {count}",
|
|
7828
|
+
"message.turnProcess.subagents.other": "Субагенты {count}",
|
|
7829
|
+
"message.turnProcess.thoughtForAWhile": "Размышлял некоторое время",
|
|
7830
|
+
"message.turnProcess.separator": " · ",
|
|
7831
|
+
"message.stopped": "Остановлено",
|
|
7832
|
+
"message.branch": "Перейти к новому разговору",
|
|
7833
|
+
"message.branchUnavailable": "Доступно только в последнем сообщении о завершенном ходу.",
|
|
7834
|
+
"message.retry.active": "Повторный запрос модели",
|
|
7835
|
+
"message.retry.cancelled": "Повтор запроса модели отменен.",
|
|
7836
|
+
"message.retry.started": "Повторный запрос модели",
|
|
7837
|
+
"message.retry.scheduled": "Ожидание повторного запроса модели",
|
|
7838
|
+
"message.retry.status": "{label} ({retry}/{maximum}) · {seconds}s",
|
|
7839
|
+
"message.retry.delay": "Задержка повтора: ",
|
|
7840
|
+
"message.retry.failure": "Причина неисправности: ",
|
|
7841
|
+
"message.failure.auth": "Ключ API недействителен.",
|
|
7842
|
+
"message.taskStopped": "Задача остановлена",
|
|
7843
|
+
"message.failure.accountSignedOut": "Остановлено, поскольку вы вышли из DeepSeek.",
|
|
7844
|
+
"message.failure.interrupted": "Процесс DSH завершился до завершения этого хода (например, был завершен, произошел сбой или истекло время ожидания при завершении работы), поэтому ход был закрыт при перезапуске DSH. Незавершенные вызовы инструментов имеют неизвестные результаты.",
|
|
7845
|
+
"message.failure.accountSignInRequired": "Войдите в DeepSeek и убедитесь, что пункт назначения запроса поддерживает аутентификацию учетной записи.",
|
|
7846
|
+
"message.failure.quota": "Квота запросов исчерпана.",
|
|
7847
|
+
"message.turnError": "Этот ход завершился ошибкой",
|
|
7848
|
+
"message.maxTokens": "Достигнут предел выходных токенов",
|
|
7849
|
+
"message.maxTokens.hint": "Ответ был прерван; более ранний вывод сохраняется в разговоре. Отправьте «продолжить», чтобы модель возобновила работу.",
|
|
7850
|
+
"message.tokensPerSecond": "{tps} ток/с",
|
|
7851
|
+
"message.turnUsage.title": "Использование ресурсов за ход",
|
|
7852
|
+
"message.turnUsage.consumed": "Использование {total}",
|
|
7853
|
+
"message.turnUsage.model": "Поставщик/модель",
|
|
7854
|
+
"message.turnUsage.cacheHit": "Попадание в кэш",
|
|
7855
|
+
"message.turnUsage.input": "Некэшированный ввод",
|
|
7856
|
+
"message.turnUsage.cacheRead": "Кэшированный ввод",
|
|
7857
|
+
"message.turnUsage.cacheWrite": "Запись в кэш",
|
|
7858
|
+
"message.turnUsage.output": "Выход",
|
|
7859
|
+
"message.turnUsage.reasoning": " (рассуждение {tokens})",
|
|
7860
|
+
"message.turnUsage.count": "{count} ток",
|
|
7861
|
+
"duration.secondUnit": "с",
|
|
7862
|
+
"duration.minuteUnit": "м ",
|
|
7863
|
+
"duration.hourUnit": "ч ",
|
|
7864
|
+
"command.running": "Бег…",
|
|
7865
|
+
"command.failed": "Команда не выполнена",
|
|
7866
|
+
"command.done": "Завершено",
|
|
7867
|
+
"command.title": "Команда",
|
|
7868
|
+
"row.running": "Бег",
|
|
7869
|
+
"row.failed": "Не удалось",
|
|
7870
|
+
"json.truncated": "… усечено, всего символов {total}",
|
|
7871
|
+
"clock.md": "{m}/{d}",
|
|
7872
|
+
"clock.ymd": "{y}-{m}-{d}"
|
|
7873
|
+
};
|
|
7874
|
+
/** Portuguese dictionary, checked against the English keys. */
|
|
7875
|
+
const pt = {
|
|
7876
|
+
"message.stepProcess.thinking": "Analisando a solicitação",
|
|
7877
|
+
"message.stepProcess.read": "Lendo arquivos",
|
|
7878
|
+
"message.stepProcess.readImage": "Lendo imagens",
|
|
7879
|
+
"message.stepProcess.write": "Gravando arquivos",
|
|
7880
|
+
"message.stepProcess.search": "Pesquisando código",
|
|
7881
|
+
"message.stepProcess.edit": "Editando arquivos",
|
|
7882
|
+
"message.stepProcess.commands": "Executando comandos",
|
|
7883
|
+
"message.stepProcess.code": "Executando código",
|
|
7884
|
+
"message.stepProcess.webSearch": "Pesquisando na web",
|
|
7885
|
+
"message.stepProcess.webFetch": "Visitando páginas da web",
|
|
7886
|
+
"message.stepProcess.subagents": "Coordenando subagentes",
|
|
7887
|
+
"message.stepProcess.plan": "Atualizando o plano",
|
|
7888
|
+
"message.stepProcess.questions": "Esperando por sua ação",
|
|
7889
|
+
"message.stepProcess.tools": "Ferramentas de chamada",
|
|
7890
|
+
"message.stepProcess.prepare.read": "Preparando-se para ler arquivos",
|
|
7891
|
+
"message.stepProcess.prepare.readImage": "Preparando-se para ler imagens",
|
|
7892
|
+
"message.stepProcess.prepare.write": "Preparando-se para gravar arquivos",
|
|
7893
|
+
"message.stepProcess.prepare.search": "Preparando-se para pesquisar o código",
|
|
7894
|
+
"message.stepProcess.prepare.edit": "Preparando-se para editar arquivos",
|
|
7895
|
+
"message.stepProcess.prepare.commands": "Preparando para executar comandos",
|
|
7896
|
+
"message.stepProcess.prepare.code": "Preparando-se para executar o código",
|
|
7897
|
+
"message.stepProcess.prepare.webSearch": "Preparando-se para pesquisar na web",
|
|
7898
|
+
"message.stepProcess.prepare.webFetch": "Preparando-se para visitar páginas da web",
|
|
7899
|
+
"message.stepProcess.prepare.subagents": "Preparando-se para coordenar subagentes",
|
|
7900
|
+
"message.stepProcess.prepare.plan": "Preparando-se para atualizar o plano",
|
|
7901
|
+
"message.stepProcess.prepare.questions": "Preparando perguntas",
|
|
7902
|
+
"message.stepProcess.prepare.tools": "Preparando chamadas de ferramenta",
|
|
7903
|
+
"message.stepProcess.done.thinking": "Análise concluída",
|
|
7904
|
+
"message.stepProcess.done.read": "Ler arquivos",
|
|
7905
|
+
"message.stepProcess.done.readImage": "Ler imagens",
|
|
7906
|
+
"message.stepProcess.done.write": "Escreveu arquivos",
|
|
7907
|
+
"message.stepProcess.done.search": "Código pesquisado",
|
|
7908
|
+
"message.stepProcess.done.edit": "Arquivos editados",
|
|
7909
|
+
"message.stepProcess.done.commands": "Comandos executados",
|
|
7910
|
+
"message.stepProcess.done.code": "Código executado",
|
|
7911
|
+
"message.stepProcess.done.webSearch": "Pesquisei na web",
|
|
7912
|
+
"message.stepProcess.done.webFetch": "Páginas da web visitadas",
|
|
7913
|
+
"message.stepProcess.done.subagents": "Subagentes coordenados",
|
|
7914
|
+
"message.stepProcess.done.plan": "Atualizado o plano",
|
|
7915
|
+
"message.stepProcess.done.questions": "Perguntas feitas",
|
|
7916
|
+
"message.stepProcess.done.tools": "Ferramentas chamadas",
|
|
7917
|
+
"message.stepProcess.joinTwo": "{first} e {second}",
|
|
7918
|
+
"message.stepProcess.comma": ", ",
|
|
7919
|
+
"message.stepProcess.sharedPrefix": "",
|
|
7920
|
+
"message.stepProcess.more": "{title}, etc.",
|
|
7921
|
+
"message.trigger.request": "Execução solicitada",
|
|
7922
|
+
"message.trigger.goal": "Objetivo contínuo",
|
|
7923
|
+
"message.trigger.agent": "Mensagem de tarefa recebida",
|
|
7924
|
+
"message.trigger.team": "Mensagem da equipe recebida",
|
|
7925
|
+
"message.trigger.subagent": "Status da subtarefa atualizado",
|
|
7926
|
+
"message.trigger.github": "GitHub evento recebido",
|
|
7927
|
+
"message.trigger.webhook": "Evento externo recebido",
|
|
7928
|
+
"message.trigger.schedule": "Tarefa de automação",
|
|
7929
|
+
"message.trigger.job": "Tarefa em segundo plano atualizada",
|
|
7930
|
+
"message.trigger.plugin": "Status do plug-in atualizado",
|
|
7931
|
+
"message.trigger.explanation": "Esta notificação desencadeou esta resposta.",
|
|
7932
|
+
"message.turnProcess.worked": "Concluído",
|
|
7933
|
+
"message.turnProcess.took": "Concluído em ",
|
|
7934
|
+
"message.turnProcess.failed": "Falha",
|
|
7935
|
+
"view.chat": "Chat",
|
|
7936
|
+
"image.open": "Ver imagem completa",
|
|
7937
|
+
"image.loading": "Carregando imagem…",
|
|
7938
|
+
"image.failed": "Visualização da imagem indisponível",
|
|
7939
|
+
"image.dialog": "Visualização da imagem",
|
|
7940
|
+
"image.close": "Fechar visualização da imagem",
|
|
7941
|
+
"number.groupSeparator": ",",
|
|
7942
|
+
"duration.compactSeconds": "{seconds}s",
|
|
7943
|
+
"duration.compactMinutes": "{minutes}m{seconds}s",
|
|
7944
|
+
"duration.milliseconds": "{milliseconds}ms",
|
|
7945
|
+
"stats.counts": "{turns} turnos, {steps} etapas",
|
|
7946
|
+
"stats.cacheHit": "Acertos no cache: {percent}%",
|
|
7947
|
+
"stats.dialog.title": "Estatísticas da sessão",
|
|
7948
|
+
"stats.dialog.usageTitle": "Uso de token",
|
|
7949
|
+
"stats.dialog.llmTime": "Horário do LLM",
|
|
7950
|
+
"stats.dialog.toolTime": "Tempo da ferramenta",
|
|
7951
|
+
"stats.dialog.ttft": "Tempo médio para o primeiro token (TTFT)",
|
|
7952
|
+
"stats.dialog.speed": "Tokens por segundo (TPS)",
|
|
7953
|
+
"chat.loadingHistory": "Carregando histórico…",
|
|
7954
|
+
"chat.loadError": "Falha ao carregar o histórico: {message} ({code})",
|
|
7955
|
+
"chat.loadOlder": "Carregar mais cedo",
|
|
7956
|
+
"chat.toBottom": "De volta ao fundo",
|
|
7957
|
+
"chat.deepDiving": "Raciocínio profundo",
|
|
7958
|
+
"chat.deepDivingFor": "Raciocínio profundo há {duration} ···",
|
|
7959
|
+
"chat.turnNavigation.label": "Navegação entre turnos",
|
|
7960
|
+
"chat.turnNavigation.jump": "Ir para o turno {turn}",
|
|
7961
|
+
"chat.turnNavigation.jumpLoad": "Carregar e ir para o turno {turn}",
|
|
7962
|
+
"chat.turnNavigation.turn": "Turno {turn}",
|
|
7963
|
+
"settings.performance.title": "Desempenho e uso",
|
|
7964
|
+
"settings.performance.description": "Escolha quantas informações de desempenho e uso serão exibidas",
|
|
7965
|
+
"settings.performance.compact": "Compacto",
|
|
7966
|
+
"settings.performance.detailed": "Detalhado",
|
|
7967
|
+
"settings.links.title": "Abra links de bate-papo em",
|
|
7968
|
+
"settings.links.description": "Escolha onde abrir links da web",
|
|
7969
|
+
"settings.links.sidebar": "Barra lateral no aplicativo",
|
|
7970
|
+
"settings.links.newTab": "Navegador padrão",
|
|
7971
|
+
"settings.transcript.title": "Detalhes do trabalho",
|
|
7972
|
+
"settings.transcript.description": "Escolha quantos detalhes serão exibidos nas chamadas de ferramenta",
|
|
7973
|
+
"settings.collapse.title": "Quando recolher detalhes do trabalho",
|
|
7974
|
+
"settings.collapse.description": "Escolha quando recolher automaticamente os detalhes do trabalho",
|
|
7975
|
+
"settings.collapse.completion": "Na conclusão",
|
|
7976
|
+
"settings.collapse.nextInput": "Na próxima mensagem",
|
|
7977
|
+
"settings.foldedReplies.title": "Respostas após o recolhimento",
|
|
7978
|
+
"settings.foldedReplies.description": "Escolha quais respostas do assistente permanecerão visíveis quando os detalhes do trabalho forem recolhidos",
|
|
7979
|
+
"settings.foldedReplies.all": "Todas as respostas",
|
|
7980
|
+
"settings.foldedReplies.final": "Apenas resposta final",
|
|
7981
|
+
"settings.transcript.compact": "Compacto",
|
|
7982
|
+
"settings.transcript.standard": "Padrão",
|
|
7983
|
+
"settings.transcript.detailed": "Detalhado",
|
|
7984
|
+
"settings.transcript.verbose": "Verboso",
|
|
7985
|
+
"fileOpen.title": "Não foi possível abrir o arquivo",
|
|
7986
|
+
"fileOpen.unknown": "Não foi possível abrir este arquivo",
|
|
7987
|
+
"message.extraBlock": "Bloco de conteúdo extra",
|
|
7988
|
+
"message.systemPrompt": "Alerta do sistema",
|
|
7989
|
+
"message.systemPromptUpdate": "Atualização imediata do sistema",
|
|
7990
|
+
"message.toolAdded": "Ferramenta adicionada: {name}",
|
|
7991
|
+
"message.toolRemoved": "Ferramenta removida: {name}",
|
|
7992
|
+
"message.toolsAdded": "Adicionado: {names}",
|
|
7993
|
+
"message.toolsAddedCount": "{count} adicionado",
|
|
7994
|
+
"message.toolsChanged": "{added} adicionado, {removed} removido",
|
|
7995
|
+
"message.toolsRemoved": "Removido: {names}",
|
|
7996
|
+
"message.toolsRemovedCount": "{count} removido",
|
|
7997
|
+
"message.toolsUpdated": "Ferramentas atualizadas",
|
|
7998
|
+
"message.contextInjection": "Injeção de contexto",
|
|
7999
|
+
"message.contextRecall": "Recuperação de sessão",
|
|
8000
|
+
"message.referenceSummary": "Sessão referenciada · {labels}",
|
|
8001
|
+
"message.referenceSeparator": ", ",
|
|
8002
|
+
"message.context.instructions.loaded": "carregado",
|
|
8003
|
+
"message.context.instructions.added": "adicionado",
|
|
8004
|
+
"message.context.instructions.updated": "atualizado",
|
|
8005
|
+
"message.context.instructions.removed": "removido",
|
|
8006
|
+
"message.context.catalog.replaced": "Catálogo de substituição",
|
|
8007
|
+
"message.context.catalog.more": "… {count} mais",
|
|
8008
|
+
"message.context.snapshot.supersedes": "Substitui instantâneos anteriores",
|
|
8009
|
+
"message.context.relay.from": "Da sessão {session}",
|
|
8010
|
+
"message.context.recall.counts": "{retained} mantido · {omitted} omitido",
|
|
8011
|
+
"message.context.recall.truncated": "truncado",
|
|
8012
|
+
"message.compaction": "Contexto compactado",
|
|
8013
|
+
"message.compaction.running": "Contexto compactado…",
|
|
8014
|
+
"message.compaction.completed": "{items} itens de histórico compactados (~{tokens} tokens)",
|
|
8015
|
+
"message.compaction.expand": "Ver resumo de compactação",
|
|
8016
|
+
"message.compaction.unavailable": "Resumo de compactação indisponível",
|
|
8017
|
+
"message.compaction.commandTitle": "compacto",
|
|
8018
|
+
"message.think": "Pense",
|
|
8019
|
+
"message.unknownSurface": "Evento de superfície desconhecido: {type}",
|
|
8020
|
+
"message.unknownBlock": "Bloco de conteúdo desconhecido",
|
|
8021
|
+
"message.turnProcess.toolCalls.one": "{count} chamada de ferramenta",
|
|
8022
|
+
"message.turnProcess.toolCalls.other": "{count} chamadas de ferramenta",
|
|
8023
|
+
"message.turnProcess.messages.one": "{count} mensagem",
|
|
8024
|
+
"message.turnProcess.messages.other": "{count} mensagens",
|
|
8025
|
+
"message.turnProcess.subagents.one": "{count} subagente",
|
|
8026
|
+
"message.turnProcess.subagents.other": "{count} subagentes",
|
|
8027
|
+
"message.turnProcess.thoughtForAWhile": "Pensou por um tempo",
|
|
8028
|
+
"message.turnProcess.separator": " · ",
|
|
8029
|
+
"message.stopped": "Parado",
|
|
8030
|
+
"message.branch": "Ramifique para uma nova conversa",
|
|
8031
|
+
"message.branchUnavailable": "Disponível apenas na última mensagem de um turno concluído",
|
|
8032
|
+
"message.retry.active": "Tentando novamente a solicitação de modelo",
|
|
8033
|
+
"message.retry.cancelled": "Nova tentativa de solicitação de modelo cancelada",
|
|
8034
|
+
"message.retry.started": "Solicitação de modelo repetida",
|
|
8035
|
+
"message.retry.scheduled": "Aguardando para tentar novamente a solicitação de modelo",
|
|
8036
|
+
"message.retry.status": "{label} ({retry}/{maximum}) · {seconds}s",
|
|
8037
|
+
"message.retry.delay": "Atraso na nova tentativa: ",
|
|
8038
|
+
"message.retry.failure": "Motivo da falha: ",
|
|
8039
|
+
"message.failure.auth": "A chave API é inválida",
|
|
8040
|
+
"message.taskStopped": "Tarefa interrompida",
|
|
8041
|
+
"message.failure.accountSignedOut": "Interrompido porque você saiu de DeepSeek.",
|
|
8042
|
+
"message.failure.interrupted": "O processo DSH foi encerrado antes do término deste turno (por exemplo, ele foi eliminado, travou ou expirou durante o desligamento), portanto, o turno foi encerrado quando DSH foi reiniciado. Chamadas de ferramentas inacabadas têm resultados desconhecidos.",
|
|
8043
|
+
"message.failure.accountSignInRequired": "Faça login em DeepSeek e verifique se o destino da solicitação suporta autenticação de conta.",
|
|
8044
|
+
"message.failure.quota": "Cota de solicitação esgotada.",
|
|
8045
|
+
"message.turnError": "Este turno falhou",
|
|
8046
|
+
"message.maxTokens": "Limite de token de saída atingido",
|
|
8047
|
+
"message.maxTokens.hint": "A resposta foi cortada; a saída anterior é preservada na conversa. Envie \"continuar\" para permitir que o modelo seja retomado.",
|
|
8048
|
+
"message.tokensPerSecond": "{tps} tok/s",
|
|
8049
|
+
"message.turnUsage.title": "Uso do turno",
|
|
8050
|
+
"message.turnUsage.consumed": "Uso {total}",
|
|
8051
|
+
"message.turnUsage.model": "Provedor/modelo",
|
|
8052
|
+
"message.turnUsage.cacheHit": "Acertos no cache",
|
|
8053
|
+
"message.turnUsage.input": "Entrada sem cache",
|
|
8054
|
+
"message.turnUsage.cacheRead": "Entrada em cache",
|
|
8055
|
+
"message.turnUsage.cacheWrite": "Gravação em cache",
|
|
8056
|
+
"message.turnUsage.output": "Saída",
|
|
8057
|
+
"message.turnUsage.reasoning": " ({tokens} raciocínio)",
|
|
8058
|
+
"message.turnUsage.count": "{count} tok",
|
|
8059
|
+
"duration.secondUnit": "s",
|
|
8060
|
+
"duration.minuteUnit": "m ",
|
|
8061
|
+
"duration.hourUnit": "h ",
|
|
8062
|
+
"command.running": "Correndo…",
|
|
8063
|
+
"command.failed": "Falha no comando",
|
|
8064
|
+
"command.done": "Concluído",
|
|
8065
|
+
"command.title": "Comando",
|
|
8066
|
+
"row.running": "Correndo",
|
|
8067
|
+
"row.failed": "Falha",
|
|
8068
|
+
"json.truncated": "… truncado, {total} caracteres no total",
|
|
8069
|
+
"clock.md": "{m}/{d}",
|
|
8070
|
+
"clock.ymd": "{y}-{m}-{d}"
|
|
8071
|
+
};
|
|
6105
8072
|
//#endregion
|
|
6106
8073
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/ReasoningRow.module.css.mjs
|
|
6107
8074
|
const css$9 = ".lcKema_root{flex-direction:column;display:flex}.lcKema_root:not([data-expanded]){contain:size layout;height:calc(24px + var(--dsh-content-font-delta,0px))}.lcKema_row{overflow:hidden}.lcKema_root[data-expanded] [data-open] [data-disclosure-header]{z-index:1;background:var(--dsw-alias-bg-base);position:sticky;top:0}.lcKema_leading{flex-shrink:0}.lcKema_title{font-weight:400}.lcKema_separator{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.lcKema_summary{min-width:0;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));white-space:nowrap;flex:auto;overflow:hidden}.lcKema_summaryText{text-overflow:ellipsis;display:block;overflow:hidden}.lcKema_summary[data-streaming]{mask-image:linear-gradient(90deg,#000 calc(100% - 48px),#0000)}.lcKema_summary[data-streaming] .lcKema_summaryText{text-overflow:clip;overflow:visible}.lcKema_root:not([data-preview]) .lcKema_separator,.lcKema_root:not([data-preview]) .lcKema_summary{display:none}.lcKema_thinkBody{padding:4px 0 4px calc(22px + var(--dsh-content-font-delta,0px));min-width:0}";
|
|
@@ -6161,7 +8128,7 @@ window.__ModuleLoader__.load({
|
|
|
6161
8128
|
* @param props.t - conversation locale seat for the disclosure and running status.
|
|
6162
8129
|
* @returns the reasoning disclosure.
|
|
6163
8130
|
*/
|
|
6164
|
-
const ReasoningRow = (0, react.memo)(function ReasoningRow({ text, running, usePresentation, useDisclosure, renderSlot, t }) {
|
|
8131
|
+
const ReasoningRow = (0, react.memo)(function ReasoningRow({ text, running, textInteractionSource = false, usePresentation, useDisclosure, renderSlot, t }) {
|
|
6165
8132
|
const { expanded, toggle } = useDisclosure();
|
|
6166
8133
|
const summaryText = running ? latestCompletedParagraphFirstLine(text) : firstLine(text);
|
|
6167
8134
|
const summary = (0, react.useMemo)(() => summaryText.replaceAll("**", ""), [summaryText]);
|
|
@@ -6180,6 +8147,7 @@ window.__ModuleLoader__.load({
|
|
|
6180
8147
|
})] }), [running, summary]);
|
|
6181
8148
|
const content = (0, react.useMemo)(() => expanded ? (0, react_jsx_runtime.jsx)("div", {
|
|
6182
8149
|
className: ReasoningRow_module_css_default.thinkBody,
|
|
8150
|
+
"data-text-interaction-source": textInteractionSource && !running ? "" : void 0,
|
|
6183
8151
|
children: renderSlot("conversation.chat.reasoning.body", {
|
|
6184
8152
|
text,
|
|
6185
8153
|
running
|
|
@@ -6188,7 +8156,8 @@ window.__ModuleLoader__.load({
|
|
|
6188
8156
|
expanded,
|
|
6189
8157
|
renderSlot,
|
|
6190
8158
|
running,
|
|
6191
|
-
text
|
|
8159
|
+
text,
|
|
8160
|
+
textInteractionSource
|
|
6192
8161
|
]);
|
|
6193
8162
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
6194
8163
|
className: ReasoningRow_module_css_default.root,
|
|
@@ -6254,7 +8223,7 @@ window.__ModuleLoader__.load({
|
|
|
6254
8223
|
return fileMediaUrl(base, path);
|
|
6255
8224
|
}
|
|
6256
8225
|
/** Renders non-blank reasoning blocks as independent disclosures alongside the response. */
|
|
6257
|
-
const AssistantMarkdown = (0, react.memo)(function AssistantMarkdown({ blocks, streaming, interrupted, loadImage, groupPart, useDisclosure, reasoningHidden = false, usePresentation, revealProcess, mentions, renderSlot, useGroupAction, t }) {
|
|
8226
|
+
const AssistantMarkdown = (0, react.memo)(function AssistantMarkdown({ blocks, streaming, textInteractionSource = false, interrupted, loadImage, groupPart, useDisclosure, reasoningHidden = false, usePresentation, revealProcess, mentions, renderSlot, useGroupAction, t }) {
|
|
6258
8227
|
const labels = (0, react.useMemo)(() => markdownLabels(t), [t]);
|
|
6259
8228
|
const pathImages = (0, react.useMemo)(() => {
|
|
6260
8229
|
return { resolve: (value) => localPathMediaUrl(document.baseURI, value) };
|
|
@@ -6274,7 +8243,8 @@ window.__ModuleLoader__.load({
|
|
|
6274
8243
|
streaming,
|
|
6275
8244
|
labels,
|
|
6276
8245
|
fileMentions: mentions,
|
|
6277
|
-
pathImages
|
|
8246
|
+
pathImages,
|
|
8247
|
+
textInteractionSource
|
|
6278
8248
|
}, i));
|
|
6279
8249
|
break;
|
|
6280
8250
|
case "reasoning":
|
|
@@ -6289,6 +8259,7 @@ window.__ModuleLoader__.load({
|
|
|
6289
8259
|
usePresentation,
|
|
6290
8260
|
useDisclosure,
|
|
6291
8261
|
renderSlot,
|
|
8262
|
+
textInteractionSource,
|
|
6292
8263
|
t
|
|
6293
8264
|
})
|
|
6294
8265
|
}, i));
|
|
@@ -6359,7 +8330,8 @@ window.__ModuleLoader__.load({
|
|
|
6359
8330
|
turn
|
|
6360
8331
|
]);
|
|
6361
8332
|
const mentions = (0, react.useMemo)(() => owner === void 0 ? void 0 : fileMentions(owner), [fileMentions, owner]);
|
|
6362
|
-
const
|
|
8333
|
+
const keepReplies = usePresentation((policy) => policy.foldedReplies === "all");
|
|
8334
|
+
const reasoningHidden = turnProcess !== void 0 && turnProcess.foldable && (keepReplies ? groupPart !== "reasoning" : turnProcess.spec.answerStep === data.step && turnProcess.spec.inlineReasoning) && !turnProcess.open;
|
|
6363
8335
|
const revealProcess = (0, react.useCallback)(() => {
|
|
6364
8336
|
turnProcess?.setOpen(true);
|
|
6365
8337
|
}, [turnProcess]);
|
|
@@ -6368,6 +8340,7 @@ window.__ModuleLoader__.load({
|
|
|
6368
8340
|
groupPart,
|
|
6369
8341
|
useDisclosure,
|
|
6370
8342
|
streaming: data.status === "running",
|
|
8343
|
+
textInteractionSource: data.status === "settled" && data.finalNode?.messageId !== void 0,
|
|
6371
8344
|
interrupted: data.status === "interrupted",
|
|
6372
8345
|
loadImage,
|
|
6373
8346
|
reasoningHidden,
|
|
@@ -6598,7 +8571,7 @@ window.__ModuleLoader__.load({
|
|
|
6598
8571
|
});
|
|
6599
8572
|
//#endregion
|
|
6600
8573
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/TurnProcessNodeView.module.css.mjs
|
|
6601
|
-
const css$6 = ".l_V-RG_root{box-sizing:border-box;width:100%;min-width:0;height:calc(33px + var(--dsh-content-font-delta,0px));border:none;border-bottom:.5px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-tertiary);font:inherit;font-size:var(--dsh-content-font-size,14px);cursor:pointer;text-align:left;background:0 0;align-items:center;padding:0 0 8px;transition:color .1s;display:flex}.l_V-RG_root:disabled{cursor:default}.l_V-RG_root:hover:not(:disabled){color:var(--dsw-alias-label-secondary)}.l_V-RG_chevron{width:14px;height:14px;color:inherit;flex:none;margin-left:4px;transition:transform .1s}.l_V-RG_root[data-open] .l_V-RG_chevron{transform:rotate(180deg)}.l_V-RG_label{min-width:0;font-size:inherit;line-height:calc(24px + var(--dsh-content-font-delta,0px));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.l_V-RG_durationNumber{font-family:var(--ds-font-family-code);font-variant-numeric:tabular-nums}@media (prefers-reduced-motion:reduce){.l_V-RG_root,.l_V-RG_chevron{transition:none}}";
|
|
8574
|
+
const css$6 = ".l_V-RG_root{box-sizing:border-box;width:100%;min-width:0;height:calc(33px + var(--dsh-content-font-delta,0px));border:none;border-bottom:.5px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-tertiary);font:inherit;font-size:var(--dsh-content-font-size,14px);cursor:pointer;text-align:left;background:0 0;align-items:center;padding:0 0 8px;transition:color .1s;display:flex}.l_V-RG_root:disabled{cursor:default}@media (hover:hover){.l_V-RG_root:hover:not(:disabled){color:var(--dsw-alias-label-secondary)}}.l_V-RG_chevron{width:14px;height:14px;color:inherit;flex:none;margin-left:4px;transition:transform .1s}.l_V-RG_root[data-open] .l_V-RG_chevron{transform:rotate(180deg)}.l_V-RG_label{min-width:0;font-size:inherit;line-height:calc(24px + var(--dsh-content-font-delta,0px));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.l_V-RG_durationNumber{font-family:var(--ds-font-family-code);font-variant-numeric:tabular-nums}@media (prefers-reduced-motion:reduce){.l_V-RG_root,.l_V-RG_chevron{transition:none}}";
|
|
6602
8575
|
const tagId$6 = "@deepseek-ai/dsh-client-ui-chat/TurnProcessNodeView.module.css";
|
|
6603
8576
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$6) + "]") === null) {
|
|
6604
8577
|
const tag = document.createElement("style");
|
|
@@ -6795,7 +8768,7 @@ window.__ModuleLoader__.load({
|
|
|
6795
8768
|
}
|
|
6796
8769
|
//#endregion
|
|
6797
8770
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/TurnUsagePanel.module.css.mjs
|
|
6798
|
-
const css$5 = ".Q51KRG_root{min-width:0;display:inline-flex}.Q51KRG_root+.Q51KRG_root{margin-left:-6px}.Q51KRG_trigger{min-width:0;height:calc(28px + var(--dsh-content-font-delta,0px));border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);font-size:calc(var(--dsh-content-font-size-secondary,13px) - 1px);font-variant-numeric:tabular-nums;line-height:calc(24px + var(--dsh-content-font-delta,0px));white-space:nowrap;cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;padding:6px 8px;display:inline-flex}.Q51KRG_label{text-overflow:ellipsis;min-width:0;overflow:hidden}.Q51KRG_trigger svg{width:calc(15px + var(--dsh-content-font-delta,0px));height:calc(15px + var(--dsh-content-font-delta,0px));flex:none}.Q51KRG_trigger
|
|
8771
|
+
const css$5 = ".Q51KRG_root{min-width:0;display:inline-flex}.Q51KRG_root+.Q51KRG_root{margin-left:-6px}.Q51KRG_trigger{min-width:0;height:calc(28px + var(--dsh-content-font-delta,0px));border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);font-size:calc(var(--dsh-content-font-size-secondary,13px) - 1px);font-variant-numeric:tabular-nums;line-height:calc(24px + var(--dsh-content-font-delta,0px));white-space:nowrap;cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;padding:6px 8px;display:inline-flex}.Q51KRG_label{text-overflow:ellipsis;min-width:0;overflow:hidden}.Q51KRG_trigger svg{width:calc(15px + var(--dsh-content-font-delta,0px));height:calc(15px + var(--dsh-content-font-delta,0px));flex:none}.Q51KRG_trigger[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-tertiary)}@media (hover:hover){.Q51KRG_trigger:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-tertiary)}}@media (width<=480px){.Q51KRG_trigger{width:calc(28px + var(--dsh-content-font-delta,0px));justify-content:center;padding:6px}.Q51KRG_trigger .Q51KRG_label{display:none}.Q51KRG_root+.Q51KRG_root{margin-left:0}}";
|
|
6799
8772
|
const tagId$5 = "@deepseek-ai/dsh-client-ui-chat/TurnUsagePanel.module.css";
|
|
6800
8773
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
6801
8774
|
const tag = document.createElement("style");
|
|
@@ -6920,21 +8893,6 @@ window.__ModuleLoader__.load({
|
|
|
6920
8893
|
return blocks.flatMap((block) => block.kind === "text" ? [block.text] : []).join("");
|
|
6921
8894
|
}
|
|
6922
8895
|
//#endregion
|
|
6923
|
-
//#region lib/types/client/contract/assistant-content.js
|
|
6924
|
-
/**
|
|
6925
|
-
* Test whether Assistant blocks contain a user-facing reply rather than only
|
|
6926
|
-
* reasoning or Tool-call protocol material.
|
|
6927
|
-
* @param blocks - Assistant content blocks.
|
|
6928
|
-
* @returns whether the blocks contain visible reply content.
|
|
6929
|
-
*/
|
|
6930
|
-
function hasAssistantReplyContent(blocks) {
|
|
6931
|
-
return blocks.some((block) => {
|
|
6932
|
-
if (block.kind === "reasoning" || block.kind === "tool-call") return false;
|
|
6933
|
-
if (block.kind === "text") return block.text.trim() !== "";
|
|
6934
|
-
return true;
|
|
6935
|
-
});
|
|
6936
|
-
}
|
|
6937
|
-
//#endregion
|
|
6938
8896
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/TurnTailNodeView.module.css.mjs
|
|
6939
8897
|
const css$3 = ".TS9iAW_root{flex-direction:column;gap:16px;display:flex}.TS9iAW_actions{margin-top:4px;margin-left:-6px}";
|
|
6940
8898
|
const tagId$3 = "@deepseek-ai/dsh-client-ui-chat/TurnTailNodeView.module.css";
|
|
@@ -7070,7 +9028,7 @@ window.__ModuleLoader__.load({
|
|
|
7070
9028
|
}
|
|
7071
9029
|
//#endregion
|
|
7072
9030
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/TurnTriggerNodeView.module.css.mjs
|
|
7073
|
-
const css$2 = ".oz9t_a_root{border:.5px solid var(--dsw-alias-border-l1);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-turn-trigger-bg,var(--dsw-alias-markdown-code-block));min-width:0;transition:background-color .1s}.oz9t_a_root:hover{background:var(--dsw-alias-turn-trigger-bg-hover,var(--dsw-alias-interactive-bg-hover))}.oz9t_a_header{width:100%;color:var(--dsw-alias-label-tertiary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:12px 16px;transition:color .1s;display:flex}.oz9t_a_header:hover{color:var(--dsw-alias-label-secondary)}.oz9t_a_icon{color:inherit;flex:none;display:inline-flex}.oz9t_a_title{font-size:var(--dsh-content-font-size,14px);flex:none}.oz9t_a_time{color:inherit;font:var(--dsw-font-xxs-12);flex:none;margin-left:auto}.oz9t_a_chevron,.oz9t_a_openChevron{color:inherit;flex:none}.oz9t_a_openChevron{transform:rotate(180deg)}.oz9t_a_body{padding:0 16px 12px 40px}.oz9t_a_explanation{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);margin:8px 0}.oz9t_a_content{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;font:var(--dsw-font-xxs-12);overflow:auto}@media (prefers-reduced-motion:reduce){.oz9t_a_root,.oz9t_a_header{transition:none}}";
|
|
9031
|
+
const css$2 = ".oz9t_a_root{border:.5px solid var(--dsw-alias-border-l1);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-turn-trigger-bg,var(--dsw-alias-markdown-code-block));min-width:0;transition:background-color .1s}@media (hover:hover){.oz9t_a_root:hover{background:var(--dsw-alias-turn-trigger-bg-hover,var(--dsw-alias-interactive-bg-hover))}}.oz9t_a_header{width:100%;color:var(--dsw-alias-label-tertiary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:10px;padding:12px 16px;transition:color .1s;display:flex}@media (hover:hover){.oz9t_a_header:hover{color:var(--dsw-alias-label-secondary)}}.oz9t_a_icon{color:inherit;flex:none;display:inline-flex}.oz9t_a_title{font-size:var(--dsh-content-font-size,14px);flex:none}.oz9t_a_time{color:inherit;font:var(--dsw-font-xxs-12);flex:none;margin-left:auto}.oz9t_a_chevron,.oz9t_a_openChevron{color:inherit;flex:none}.oz9t_a_openChevron{transform:rotate(180deg)}.oz9t_a_body{padding:0 16px 12px 40px}.oz9t_a_explanation{color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);margin:8px 0}.oz9t_a_content{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;font:var(--dsw-font-xxs-12);overflow:auto}@media (prefers-reduced-motion:reduce){.oz9t_a_root,.oz9t_a_header{transition:none}}";
|
|
7074
9032
|
const tagId$2 = "@deepseek-ai/dsh-client-ui-chat/TurnTriggerNodeView.module.css";
|
|
7075
9033
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
7076
9034
|
const tag = document.createElement("style");
|
|
@@ -7185,12 +9143,17 @@ window.__ModuleLoader__.load({
|
|
|
7185
9143
|
ctx.slots.inject("conversation.chat.node", () => ctx.slots.register({
|
|
7186
9144
|
name: "conversation.chat.node",
|
|
7187
9145
|
key: "user",
|
|
7188
|
-
locale: NS
|
|
9146
|
+
locale: NS,
|
|
9147
|
+
children: { "conversation.chat.user.before": {
|
|
9148
|
+
kind: "chain",
|
|
9149
|
+
scope: "session"
|
|
9150
|
+
} }
|
|
7189
9151
|
}, UserMessageNodeView));
|
|
7190
9152
|
ctx.slots.inject("conversation.chat.node", () => ctx.slots.register({
|
|
7191
9153
|
name: "conversation.chat.node",
|
|
7192
9154
|
key: "steering",
|
|
7193
|
-
locale: NS
|
|
9155
|
+
locale: NS,
|
|
9156
|
+
inject: () => ({ renderSlotChain: () => null })
|
|
7194
9157
|
}, UserMessageNodeView));
|
|
7195
9158
|
ctx.slots.inject("conversation.chat.node", () => ctx.slots.register({
|
|
7196
9159
|
name: "conversation.chat.node",
|
|
@@ -7328,8 +9291,9 @@ window.__ModuleLoader__.load({
|
|
|
7328
9291
|
})]
|
|
7329
9292
|
}, `file:${index}`))
|
|
7330
9293
|
}),
|
|
7331
|
-
showBubble && (0, react_jsx_runtime.jsxs)(
|
|
7332
|
-
|
|
9294
|
+
showBubble && (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.UserMessageBubble, {
|
|
9295
|
+
"data-message-bubble": "",
|
|
9296
|
+
"data-text-interaction-source": "",
|
|
7333
9297
|
children: [renderFactorySlot("conversation.user.text", {
|
|
7334
9298
|
text,
|
|
7335
9299
|
facts,
|
|
@@ -7370,7 +9334,7 @@ window.__ModuleLoader__.load({
|
|
|
7370
9334
|
}
|
|
7371
9335
|
//#endregion
|
|
7372
9336
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/StatsPills.module.css.mjs
|
|
7373
|
-
const css$1 = ".bOPqQW_anchor{min-width:0;font-size:calc(var(--dsh-content-font-size-secondary,13px) - 1px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));display:inline-flex}.bOPqQW_pill{box-sizing:border-box;border-radius:var(--dsw-radius-sm);max-width:100%;color:var(--dsw-alias-label-tertiary);font:inherit;font-variant-numeric:tabular-nums;line-height:inherit;white-space:nowrap;background:0 0;border:none;align-items:center;gap:6px;padding:1px 8px;display:inline-flex}.bOPqQW_pill svg{flex:none;width:14px;height:14px}button.bOPqQW_pill{cursor:pointer}button.bOPqQW_pill
|
|
9337
|
+
const css$1 = ".bOPqQW_anchor{min-width:0;font-size:calc(var(--dsh-content-font-size-secondary,13px) - 1px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));display:inline-flex}.bOPqQW_pill{box-sizing:border-box;border-radius:var(--dsw-radius-sm);max-width:100%;color:var(--dsw-alias-label-tertiary);font:inherit;font-variant-numeric:tabular-nums;line-height:inherit;white-space:nowrap;background:0 0;border:none;align-items:center;gap:6px;padding:1px 8px;display:inline-flex}.bOPqQW_pill svg{flex:none;width:14px;height:14px}button.bOPqQW_pill{cursor:pointer}button.bOPqQW_pill[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}@media (hover:hover){button.bOPqQW_pill:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}}.bOPqQW_label{text-overflow:ellipsis;min-width:0;overflow:hidden}.bOPqQW_sep{color:var(--dsw-alias-separator-primary);margin:0 6px}";
|
|
7374
9338
|
const tagId$1 = "@deepseek-ai/dsh-client-ui-chat/StatsPills.module.css";
|
|
7375
9339
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
7376
9340
|
const tag = document.createElement("style");
|
|
@@ -7474,17 +9438,24 @@ window.__ModuleLoader__.load({
|
|
|
7474
9438
|
function exactCount(value, t) {
|
|
7475
9439
|
return t("message.turnUsage.count", { count: formatExactTokens(value, t) });
|
|
7476
9440
|
}
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
first,
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
9441
|
+
/** One or two reading segments, visually joined by a separator glyph. */
|
|
9442
|
+
function reading(first, second) {
|
|
9443
|
+
if (second === null) return {
|
|
9444
|
+
label: first,
|
|
9445
|
+
text: first
|
|
9446
|
+
};
|
|
9447
|
+
return {
|
|
9448
|
+
label: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
9449
|
+
first,
|
|
9450
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
9451
|
+
className: StatsPills_module_css_default.sep,
|
|
9452
|
+
"aria-hidden": true,
|
|
9453
|
+
children: "·"
|
|
9454
|
+
}),
|
|
9455
|
+
second
|
|
9456
|
+
] }),
|
|
9457
|
+
text: `${first} · ${second}`
|
|
9458
|
+
};
|
|
7488
9459
|
}
|
|
7489
9460
|
function useSessionStats(useChat, useProjection) {
|
|
7490
9461
|
const settledNodes = useChat((s) => s.legacy.nodes);
|
|
@@ -7494,17 +9465,29 @@ window.__ModuleLoader__.load({
|
|
|
7494
9465
|
function decodeSpeed(stats, t) {
|
|
7495
9466
|
return t("message.tokensPerSecond", { tps: formatTokensPerSecond(stats.decodeTokens / (stats.decodeMs / 1e3)) });
|
|
7496
9467
|
}
|
|
9468
|
+
/** The full reading above a pill, only while an ellipsis cuts its label; the delay matches the dock's context meter. */
|
|
9469
|
+
const FULL_READING_TOOLTIP = {
|
|
9470
|
+
side: "top",
|
|
9471
|
+
portal: true,
|
|
9472
|
+
delayMs: 200,
|
|
9473
|
+
onlyWhenClipped: true
|
|
9474
|
+
};
|
|
7497
9475
|
/** A static reading: used when the pill has no dialog rows or the mode is Compact. */
|
|
7498
|
-
function PlainPill({ stat, icon, label }) {
|
|
9476
|
+
function PlainPill({ stat, icon, label, text }) {
|
|
7499
9477
|
return (0, react_jsx_runtime.jsx)("span", {
|
|
7500
9478
|
className: StatsPills_module_css_default.anchor,
|
|
7501
9479
|
"data-composer-stat": stat,
|
|
7502
|
-
children: (0, react_jsx_runtime.
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
9480
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
9481
|
+
label: text,
|
|
9482
|
+
...FULL_READING_TOOLTIP,
|
|
9483
|
+
openOnClick: true,
|
|
9484
|
+
children: (0, react_jsx_runtime.jsxs)("span", {
|
|
9485
|
+
className: StatsPills_module_css_default.pill,
|
|
9486
|
+
children: [icon, (0, react_jsx_runtime.jsx)("span", {
|
|
9487
|
+
className: StatsPills_module_css_default.label,
|
|
9488
|
+
children: label
|
|
9489
|
+
})]
|
|
9490
|
+
})
|
|
7508
9491
|
})
|
|
7509
9492
|
});
|
|
7510
9493
|
}
|
|
@@ -7513,25 +9496,30 @@ window.__ModuleLoader__.load({
|
|
|
7513
9496
|
* state; useStatDialog closes it on Escape or an outside pointerdown or click,
|
|
7514
9497
|
* so at most one dialog is open across the dock.
|
|
7515
9498
|
*/
|
|
7516
|
-
function DialogPill({ stat, icon, label,
|
|
9499
|
+
function DialogPill({ stat, icon, label, text, title, titleValue, children }) {
|
|
7517
9500
|
const { open, setOpen, rootRef, panelRef, pos } = useStatDialog();
|
|
7518
9501
|
return (0, react_jsx_runtime.jsxs)("span", {
|
|
7519
9502
|
ref: rootRef,
|
|
7520
9503
|
className: StatsPills_module_css_default.anchor,
|
|
7521
9504
|
"data-composer-stat": stat,
|
|
7522
|
-
children: [(0, react_jsx_runtime.
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
"
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
9505
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
9506
|
+
label: text,
|
|
9507
|
+
...FULL_READING_TOOLTIP,
|
|
9508
|
+
disabled: open,
|
|
9509
|
+
children: (0, react_jsx_runtime.jsxs)("button", {
|
|
9510
|
+
type: "button",
|
|
9511
|
+
className: StatsPills_module_css_default.pill,
|
|
9512
|
+
"aria-haspopup": "dialog",
|
|
9513
|
+
"aria-expanded": open,
|
|
9514
|
+
"aria-label": text,
|
|
9515
|
+
onClick: () => {
|
|
9516
|
+
setOpen(!open);
|
|
9517
|
+
},
|
|
9518
|
+
children: [icon, (0, react_jsx_runtime.jsx)("span", {
|
|
9519
|
+
className: StatsPills_module_css_default.label,
|
|
9520
|
+
children: label
|
|
9521
|
+
})]
|
|
9522
|
+
})
|
|
7535
9523
|
}), open && (0, react_dom.createPortal)((0, react_jsx_runtime.jsxs)("div", {
|
|
7536
9524
|
ref: panelRef,
|
|
7537
9525
|
className: stat_dialog_module_css_default.panel,
|
|
@@ -7570,7 +9558,7 @@ window.__ModuleLoader__.load({
|
|
|
7570
9558
|
if (mode === "compact") return speed === null ? null : (0, react_jsx_runtime.jsx)(PlainPill, {
|
|
7571
9559
|
stat: "activity",
|
|
7572
9560
|
icon,
|
|
7573
|
-
|
|
9561
|
+
...reading(speed, null)
|
|
7574
9562
|
});
|
|
7575
9563
|
if (stats.steps === 0) return null;
|
|
7576
9564
|
const counts = t("stats.counts", {
|
|
@@ -7580,13 +9568,13 @@ window.__ModuleLoader__.load({
|
|
|
7580
9568
|
const content = {
|
|
7581
9569
|
stat: "activity",
|
|
7582
9570
|
icon,
|
|
7583
|
-
|
|
9571
|
+
...reading(counts, speed)
|
|
7584
9572
|
};
|
|
7585
9573
|
if (stats.llmMs <= 0 && stats.toolMs <= 0 && stats.ttftSteps <= 0 && speed === null) return (0, react_jsx_runtime.jsx)(PlainPill, { ...content });
|
|
7586
9574
|
return (0, react_jsx_runtime.jsx)(DialogPill, {
|
|
7587
9575
|
...content,
|
|
7588
|
-
ariaLabel: speed === null ? counts : `${counts} · ${speed}`,
|
|
7589
9576
|
title: t("stats.dialog.title"),
|
|
9577
|
+
titleValue: counts,
|
|
7590
9578
|
children: (0, react_jsx_runtime.jsxs)("dl", {
|
|
7591
9579
|
className: stat_dialog_module_css_default.details,
|
|
7592
9580
|
"data-session-stats-details": true,
|
|
@@ -7610,15 +9598,13 @@ window.__ModuleLoader__.load({
|
|
|
7610
9598
|
if (mode === "compact") return cacheHitText === null ? null : (0, react_jsx_runtime.jsx)(PlainPill, {
|
|
7611
9599
|
stat: "usage",
|
|
7612
9600
|
icon,
|
|
7613
|
-
|
|
9601
|
+
...reading(cacheHitText, null)
|
|
7614
9602
|
});
|
|
7615
9603
|
const total = billedInputTokens(usage) + usage.outputTokens;
|
|
7616
|
-
const totalText = t("message.turnUsage.count", { count: formatTokens(total, t) });
|
|
7617
9604
|
return (0, react_jsx_runtime.jsx)(DialogPill, {
|
|
7618
9605
|
stat: "usage",
|
|
7619
9606
|
icon,
|
|
7620
|
-
|
|
7621
|
-
ariaLabel: cacheHitText === null ? totalText : `${totalText} · ${cacheHitText}`,
|
|
9607
|
+
...reading(t("message.turnUsage.count", { count: formatTokens(total, t) }), cacheHitText),
|
|
7622
9608
|
title: t("stats.dialog.usageTitle"),
|
|
7623
9609
|
titleValue: exactCount(total, t),
|
|
7624
9610
|
children: (0, react_jsx_runtime.jsxs)("dl", {
|
|
@@ -8357,7 +10343,7 @@ window.__ModuleLoader__.load({
|
|
|
8357
10343
|
return location?.kind === "turn" || location?.kind === "step" ? location.turn.turn : void 0;
|
|
8358
10344
|
}
|
|
8359
10345
|
function samePresentation(left, right) {
|
|
8360
|
-
return left === right || left !== void 0 && right !== void 0 && left.spec === right.spec && left.turn === right.turn && left.turnStarted === right.turnStarted && left.turnClosed === right.turnClosed && left.hasExternalProcess === right.hasExternalProcess && left.
|
|
10346
|
+
return left === right || left !== void 0 && right !== void 0 && left.spec === right.spec && left.turn === right.turn && left.turnStarted === right.turnStarted && left.turnClosed === right.turnClosed && left.hasExternalProcess === right.hasExternalProcess && left.hasNonReplyProcess === right.hasNonReplyProcess && left.hasInterleavedInput === right.hasInterleavedInput;
|
|
8361
10347
|
}
|
|
8362
10348
|
function derivePresentation(turn, locations, nodes) {
|
|
8363
10349
|
const keys = locations.getTurn(turn);
|
|
@@ -8372,17 +10358,17 @@ window.__ModuleLoader__.load({
|
|
|
8372
10358
|
if (node !== void 0 && isAtOrOutside(node, "input") && (spec.controlAnchorSeq === location.turn.start?.seq || node.anchorSeq < spec.controlAnchorSeq)) openingHumanAnchor = Math.max(openingHumanAnchor ?? node.anchorSeq, node.anchorSeq);
|
|
8373
10359
|
}
|
|
8374
10360
|
let hasExternalProcess = false;
|
|
10361
|
+
let hasNonReplyProcess = false;
|
|
8375
10362
|
let hasInterleavedInput = false;
|
|
8376
|
-
let compactAnswer = true;
|
|
8377
10363
|
for (const key of keys) {
|
|
8378
10364
|
const node = nodes.get(key);
|
|
8379
10365
|
if (node === void 0 || !isVisibleChatNode(node) || node.kind === "turn-process") continue;
|
|
8380
|
-
if (isAtOrOutside(node, "input") && (openingHumanAnchor === void 0 || node.anchorSeq > openingHumanAnchor))
|
|
8381
|
-
hasInterleavedInput = true;
|
|
8382
|
-
if (spec.answerAnchorSeq === null || node.anchorSeq < spec.answerAnchorSeq) compactAnswer = false;
|
|
8383
|
-
}
|
|
10366
|
+
if (isAtOrOutside(node, "input") && (openingHumanAnchor === void 0 || node.anchorSeq > openingHumanAnchor)) hasInterleavedInput = true;
|
|
8384
10367
|
if (isAtOrOutside(node, "turn") || node.anchorSeq < spec.processStartSeq || spec.answerAnchorSeq !== null && node.anchorSeq >= spec.answerAnchorSeq) continue;
|
|
8385
|
-
if (node.kind !== "assistant-step" || spec.answerStep === null || node.data.step !== spec.answerStep)
|
|
10368
|
+
if (node.kind !== "assistant-step" || spec.answerStep === null || node.data.step !== spec.answerStep) {
|
|
10369
|
+
hasExternalProcess = true;
|
|
10370
|
+
if (node.kind !== "assistant-step" || node.data.blocks.some((block) => block.kind === "reasoning" && block.text.trim() !== "")) hasNonReplyProcess = true;
|
|
10371
|
+
}
|
|
8386
10372
|
}
|
|
8387
10373
|
return {
|
|
8388
10374
|
turn,
|
|
@@ -8390,8 +10376,8 @@ window.__ModuleLoader__.load({
|
|
|
8390
10376
|
turnStarted: location.turn.start !== void 0,
|
|
8391
10377
|
turnClosed: location.turn.status === "closed",
|
|
8392
10378
|
hasExternalProcess,
|
|
8393
|
-
|
|
8394
|
-
|
|
10379
|
+
hasNonReplyProcess,
|
|
10380
|
+
hasInterleavedInput
|
|
8395
10381
|
};
|
|
8396
10382
|
}
|
|
8397
10383
|
/** Mutable projection of cross-Node process layout facts by Turn. */
|
|
@@ -9777,7 +11763,7 @@ window.__ModuleLoader__.load({
|
|
|
9777
11763
|
},
|
|
9778
11764
|
currentClaimed: new Set(removed.map((message) => message.id)),
|
|
9779
11765
|
claimSeq: seq,
|
|
9780
|
-
|
|
11766
|
+
firstClaimedHuman: removed.find((message) => message.source.kind === "user")?.id
|
|
9781
11767
|
};
|
|
9782
11768
|
}
|
|
9783
11769
|
const currentClaimed = withoutInserted(previous?.state.currentClaimed ?? EMPTY_CURRENT_CLAIMED, inserted);
|
|
@@ -9791,7 +11777,7 @@ window.__ModuleLoader__.load({
|
|
|
9791
11777
|
},
|
|
9792
11778
|
currentClaimed,
|
|
9793
11779
|
claimSeq: previous?.state.claimSeq ?? -1,
|
|
9794
|
-
|
|
11780
|
+
firstClaimedHuman: previous?.state.firstClaimedHuman
|
|
9795
11781
|
};
|
|
9796
11782
|
}
|
|
9797
11783
|
function inboxDefinition(target) {
|
|
@@ -9840,6 +11826,18 @@ window.__ModuleLoader__.load({
|
|
|
9840
11826
|
form: contextForm(message.source)
|
|
9841
11827
|
};
|
|
9842
11828
|
}
|
|
11829
|
+
/**
|
|
11830
|
+
* Decide whether an input follows its Turn's process control in Chat order. The control anchors at the
|
|
11831
|
+
* Turn's first process evidence, so the input follows it exactly when its Turn recorded evidence earlier;
|
|
11832
|
+
* the nearest earlier evidence record then belongs to the input's own Turn.
|
|
11833
|
+
* @param location - the input's Location.
|
|
11834
|
+
* @param reader - strictly-backward Context lookup of the input's start.
|
|
11835
|
+
* @returns whether Chat orders the input after the control.
|
|
11836
|
+
*/
|
|
11837
|
+
function followsProcessEvidence(location, reader) {
|
|
11838
|
+
if (location.kind !== "turn" && location.kind !== "step") return false;
|
|
11839
|
+
return reader.previous("process-evidence")?.state.turn === location.turn.turn;
|
|
11840
|
+
}
|
|
9843
11841
|
/** User, steering, and injected-context message classification Definition. */
|
|
9844
11842
|
const messageDefinition = {
|
|
9845
11843
|
kind: "input-message",
|
|
@@ -9859,21 +11857,25 @@ window.__ModuleLoader__.load({
|
|
|
9859
11857
|
const nextStep = reader.previous("inbox-next-step")?.state;
|
|
9860
11858
|
const location = match.location;
|
|
9861
11859
|
const turnStart = location.kind === "step" ? location.turn.start?.seq : void 0;
|
|
9862
|
-
const idleSteer = location.kind === "step" && location.step.step === 1 && turnStart !== void 0 && (nextStep?.claimSeq ?? -1) > turnStart && (nextTurn?.claimSeq ?? -1) < turnStart && nextStep
|
|
11860
|
+
const idleSteer = location.kind === "step" && location.step.step === 1 && turnStart !== void 0 && (nextStep?.claimSeq ?? -1) > turnStart && (nextTurn?.claimSeq ?? -1) < turnStart && nextStep !== void 0 && nextStep.firstClaimedHuman === void 0 && nextStep.currentClaimed.has(String(event.data.id));
|
|
9863
11861
|
return {
|
|
9864
11862
|
...contextMessage(event, event.data),
|
|
9865
11863
|
waking: nextTurn?.currentClaimed.has(String(event.data.id)) === true || idleSteer
|
|
9866
11864
|
};
|
|
9867
11865
|
}
|
|
9868
|
-
|
|
11866
|
+
const id = String(event.data.id);
|
|
11867
|
+
const claim = reader.previous("inbox-next-step")?.state;
|
|
11868
|
+
return claim?.currentClaimed.has(id) === true ? {
|
|
9869
11869
|
kind: "steering",
|
|
9870
11870
|
messageId: event.data.id,
|
|
9871
11871
|
seq: event.seq,
|
|
9872
11872
|
time: event.time,
|
|
9873
11873
|
content: event.data.content,
|
|
9874
|
-
source: event.data.source
|
|
11874
|
+
source: event.data.source,
|
|
11875
|
+
...claim.firstClaimedHuman === id && followsProcessEvidence(match.location, reader) ? { batchStart: true } : {}
|
|
9875
11876
|
} : {
|
|
9876
11877
|
kind: "user",
|
|
11878
|
+
messageId: event.data.id,
|
|
9877
11879
|
seq: event.seq,
|
|
9878
11880
|
time: event.time,
|
|
9879
11881
|
content: event.data.content,
|
|
@@ -10663,6 +12665,43 @@ window.__ModuleLoader__.load({
|
|
|
10663
12665
|
seq: event.seq
|
|
10664
12666
|
};
|
|
10665
12667
|
}
|
|
12668
|
+
function durableEvidenceStep(event) {
|
|
12669
|
+
if (processEvidence(event) === void 0) return void 0;
|
|
12670
|
+
switch (event.type) {
|
|
12671
|
+
case "assistant/message":
|
|
12672
|
+
case "tool/call":
|
|
12673
|
+
case "tool/result":
|
|
12674
|
+
case "llm/retry": return {
|
|
12675
|
+
turn: event.data.turn,
|
|
12676
|
+
step: event.data.step
|
|
12677
|
+
};
|
|
12678
|
+
default: return;
|
|
12679
|
+
}
|
|
12680
|
+
}
|
|
12681
|
+
/**
|
|
12682
|
+
* State-only record of each Step whose durable events include process evidence, keyed by Turn and Step.
|
|
12683
|
+
* An input follows its Turn's process control exactly when its Turn recorded evidence before it, so an
|
|
12684
|
+
* input reads the nearest earlier record through `reader.previous`. A Step's evidence is logged before
|
|
12685
|
+
* a later Step admits input, so the record a later input reads no longer changes; transient live chunks
|
|
12686
|
+
* are not needed because a Step's durable settlement precedes the next Step's input.
|
|
12687
|
+
*/
|
|
12688
|
+
const processEvidenceDefinition = {
|
|
12689
|
+
kind: "process-evidence",
|
|
12690
|
+
match: (event) => {
|
|
12691
|
+
const coordinates = durableEvidenceStep(event);
|
|
12692
|
+
return coordinates === void 0 ? null : {
|
|
12693
|
+
id: `${coordinates.turn}:${coordinates.step}`,
|
|
12694
|
+
role: "start"
|
|
12695
|
+
};
|
|
12696
|
+
},
|
|
12697
|
+
start: (_context, match) => {
|
|
12698
|
+
const coordinates = durableEvidenceStep(match.event);
|
|
12699
|
+
if (coordinates === void 0) throw new Error("process-evidence start requires durable process evidence");
|
|
12700
|
+
return { turn: coordinates.turn };
|
|
12701
|
+
},
|
|
12702
|
+
update: (context) => context.state,
|
|
12703
|
+
publication: () => "none"
|
|
12704
|
+
};
|
|
10666
12705
|
function turnLocation$1(context) {
|
|
10667
12706
|
const location = context.start?.location ?? context.matches.at(-1)?.location;
|
|
10668
12707
|
return location?.kind === "turn" || location?.kind === "step" ? location.turn : void 0;
|
|
@@ -10821,7 +12860,7 @@ window.__ModuleLoader__.load({
|
|
|
10821
12860
|
}
|
|
10822
12861
|
};
|
|
10823
12862
|
/**
|
|
10824
|
-
* Register the Turn-scoped process disclosure projection.
|
|
12863
|
+
* Register the Turn-scoped process disclosure projection and its per-Step evidence record.
|
|
10825
12864
|
* @param ctx - owning UI Conversation context.
|
|
10826
12865
|
*/
|
|
10827
12866
|
function registerTurnProcess(ctx) {
|
|
@@ -10840,6 +12879,16 @@ window.__ModuleLoader__.load({
|
|
|
10840
12879
|
"turn/end": match
|
|
10841
12880
|
}
|
|
10842
12881
|
});
|
|
12882
|
+
const evidence = processEvidenceDefinition.match.bind(processEvidenceDefinition);
|
|
12883
|
+
ctx.uiConversation.events.register({
|
|
12884
|
+
...processEvidenceDefinition,
|
|
12885
|
+
match: {
|
|
12886
|
+
"assistant/message": evidence,
|
|
12887
|
+
"tool/call": evidence,
|
|
12888
|
+
"tool/result": evidence,
|
|
12889
|
+
"llm/retry": evidence
|
|
12890
|
+
}
|
|
12891
|
+
});
|
|
10843
12892
|
}
|
|
10844
12893
|
//#endregion
|
|
10845
12894
|
//#region ../../llm/llm/lib/types/assistant-stream.js
|
|
@@ -12621,6 +14670,10 @@ window.__ModuleLoader__.load({
|
|
|
12621
14670
|
const COLLAPSE_TIMINGS = ["completion", "next-input"];
|
|
12622
14671
|
/** Preserve completion-time folding when no timing preference is saved. */
|
|
12623
14672
|
const DEFAULT_COLLAPSE_TIMING = "completion";
|
|
14673
|
+
/** Field carrying which Assistant replies stay visible in a folded Turn. */
|
|
14674
|
+
const FOLDED_REPLIES_FIELD = "foldedReplies";
|
|
14675
|
+
/** Assistant replies kept visible while a completed Turn folds its process: every reply, or only the final answer. */
|
|
14676
|
+
const FOLDED_REPLIES = ["all", "final"];
|
|
12624
14677
|
/** Work-details presentation modes a user can choose. */
|
|
12625
14678
|
const TRANSCRIPT_VIEW_MODES = [
|
|
12626
14679
|
"compact",
|
|
@@ -12652,6 +14705,7 @@ window.__ModuleLoader__.load({
|
|
|
12652
14705
|
/** Durable Chat schema; also the wire envelope the browser scope validates against. */
|
|
12653
14706
|
const ChatSettingsFields = {
|
|
12654
14707
|
[COLLAPSE_TIMING_FIELD]: Schema.union([...COLLAPSE_TIMINGS]).default(DEFAULT_COLLAPSE_TIMING),
|
|
14708
|
+
[FOLDED_REPLIES_FIELD]: Schema.union([...FOLDED_REPLIES]).default("all"),
|
|
12655
14709
|
linkOpening: Schema.union(["sidebar", "new-tab"]).default(DEFAULT_LINK_OPENING),
|
|
12656
14710
|
performanceUsage: Schema.union([...PERFORMANCE_USAGE_MODES]).default(DEFAULT_PERFORMANCE_USAGE),
|
|
12657
14711
|
[TRANSCRIPT_VIEW_FIELD]: Schema.union([...TRANSCRIPT_VIEW_SETTING_VALUES]).loose()
|
|
@@ -12659,6 +14713,7 @@ window.__ModuleLoader__.load({
|
|
|
12659
14713
|
Schema.object(ChatSettingsFields);
|
|
12660
14714
|
//#endregion
|
|
12661
14715
|
//#region lib/types/client/presentation-policy.js
|
|
14716
|
+
/** Chat presentation derived from Host-backed detail, collapse timing, and folded replies. */
|
|
12662
14717
|
const POLICIES = {
|
|
12663
14718
|
compact: {
|
|
12664
14719
|
mode: "compact",
|
|
@@ -12689,61 +14744,75 @@ window.__ModuleLoader__.load({
|
|
|
12689
14744
|
settledReasoningPreview: true
|
|
12690
14745
|
}
|
|
12691
14746
|
};
|
|
12692
|
-
function withTiming(collapseTiming) {
|
|
14747
|
+
function withTiming(collapseTiming, foldedReplies) {
|
|
12693
14748
|
return {
|
|
12694
14749
|
compact: {
|
|
12695
14750
|
...POLICIES.compact,
|
|
12696
|
-
collapseTiming
|
|
14751
|
+
collapseTiming,
|
|
14752
|
+
foldedReplies
|
|
12697
14753
|
},
|
|
12698
14754
|
standard: {
|
|
12699
14755
|
...POLICIES.standard,
|
|
12700
|
-
collapseTiming
|
|
14756
|
+
collapseTiming,
|
|
14757
|
+
foldedReplies
|
|
12701
14758
|
},
|
|
12702
14759
|
detailed: {
|
|
12703
14760
|
...POLICIES.detailed,
|
|
12704
|
-
collapseTiming
|
|
14761
|
+
collapseTiming,
|
|
14762
|
+
foldedReplies
|
|
12705
14763
|
},
|
|
12706
14764
|
verbose: {
|
|
12707
14765
|
...POLICIES.verbose,
|
|
12708
|
-
collapseTiming
|
|
14766
|
+
collapseTiming,
|
|
14767
|
+
foldedReplies
|
|
12709
14768
|
}
|
|
12710
14769
|
};
|
|
12711
14770
|
}
|
|
12712
14771
|
const TIMING_POLICIES = {
|
|
12713
|
-
completion:
|
|
12714
|
-
|
|
14772
|
+
completion: {
|
|
14773
|
+
all: withTiming("completion", "all"),
|
|
14774
|
+
final: withTiming("completion", "final")
|
|
14775
|
+
},
|
|
14776
|
+
"next-input": {
|
|
14777
|
+
all: withTiming("next-input", "all"),
|
|
14778
|
+
final: withTiming("next-input", "final")
|
|
14779
|
+
}
|
|
12715
14780
|
};
|
|
12716
14781
|
/**
|
|
12717
|
-
* Resolve a stable policy for one detail mode and
|
|
14782
|
+
* Resolve a stable policy for one detail mode, collapse timing, and folded-reply choice.
|
|
12718
14783
|
* @param mode - persisted work-details mode.
|
|
12719
14784
|
* @param collapseTiming - persisted timing; defaults to immediate completion folding.
|
|
12720
|
-
* @
|
|
14785
|
+
* @param foldedReplies - persisted folded-reply choice; defaults to keeping every reply visible.
|
|
14786
|
+
* @returns the same policy object for the same choices.
|
|
12721
14787
|
*/
|
|
12722
|
-
function presentationPolicyFor(mode, collapseTiming = "completion") {
|
|
12723
|
-
return TIMING_POLICIES[collapseTiming][mode];
|
|
14788
|
+
function presentationPolicyFor(mode, collapseTiming = "completion", foldedReplies = "all") {
|
|
14789
|
+
return TIMING_POLICIES[collapseTiming][foldedReplies][mode];
|
|
12724
14790
|
}
|
|
12725
14791
|
/**
|
|
12726
|
-
* Combine Host-backed detail
|
|
14792
|
+
* Combine Host-backed detail, persisted timing, and folded replies without owning subscriptions.
|
|
12727
14793
|
* @param mode - live work-details mode.
|
|
12728
14794
|
* @param collapseTiming - live Host-backed collapse timing.
|
|
12729
|
-
* @
|
|
14795
|
+
* @param foldedReplies - live Host-backed folded-reply choice.
|
|
14796
|
+
* @returns observable policy whose subscriptions follow all three preferences.
|
|
12730
14797
|
*/
|
|
12731
|
-
function derivePresentationPolicy(mode, collapseTiming) {
|
|
14798
|
+
function derivePresentationPolicy(mode, collapseTiming, foldedReplies) {
|
|
12732
14799
|
return {
|
|
12733
|
-
getSnapshot: () => presentationPolicyFor(mode.getSnapshot(), collapseTiming.getSnapshot()),
|
|
14800
|
+
getSnapshot: () => presentationPolicyFor(mode.getSnapshot(), collapseTiming.getSnapshot(), foldedReplies.getSnapshot()),
|
|
12734
14801
|
subscribe: (listener) => {
|
|
12735
14802
|
const unsubscribeMode = mode.subscribe(listener);
|
|
12736
14803
|
const unsubscribeTiming = collapseTiming.subscribe(listener);
|
|
14804
|
+
const unsubscribeReplies = foldedReplies.subscribe(listener);
|
|
12737
14805
|
return () => {
|
|
12738
14806
|
unsubscribeMode();
|
|
12739
14807
|
unsubscribeTiming();
|
|
14808
|
+
unsubscribeReplies();
|
|
12740
14809
|
};
|
|
12741
14810
|
}
|
|
12742
14811
|
};
|
|
12743
14812
|
}
|
|
12744
14813
|
//#endregion
|
|
12745
14814
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/settings/PreferenceRow.module.css.mjs
|
|
12746
|
-
const css = "._2XZxNq_row{border-bottom:.5px solid var(--dsw-alias-border-l2);align-items:center;gap:8px;padding:16px 0;display:flex}._2XZxNq_rowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}._2XZxNq_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}._2XZxNq_desc{color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:400;line-height:18px}._2XZxNq_selector{border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform);height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;border:none;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}._2XZxNq_selector:hover{background:var(--dsw-alias-interactive-bg-hover)}._2XZxNq_chevron{flex:none}";
|
|
14815
|
+
const css = "._2XZxNq_row{border-bottom:.5px solid var(--dsw-alias-border-l2);align-items:center;gap:8px;padding:16px 0;display:flex}._2XZxNq_rowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}@media (width<=767px){html:not([data-windows-titlebar]):not([data-platform=darwin]) ._2XZxNq_rowText{padding-right:16px}}._2XZxNq_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}._2XZxNq_desc{color:var(--dsw-alias-label-tertiary);font-size:12px;font-weight:400;line-height:18px}._2XZxNq_selector{border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform);height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;border:none;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}@media (hover:hover){._2XZxNq_selector:hover{background:var(--dsw-alias-interactive-bg-hover)}}._2XZxNq_chevron{flex:none}";
|
|
12747
14816
|
const tagId = "@deepseek-ai/dsh-client-ui-chat/PreferenceRow.module.css";
|
|
12748
14817
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
12749
14818
|
const tag = document.createElement("style");
|
|
@@ -12825,39 +14894,61 @@ window.__ModuleLoader__.load({
|
|
|
12825
14894
|
completion: "settings.collapse.completion",
|
|
12826
14895
|
"next-input": "settings.collapse.nextInput"
|
|
12827
14896
|
};
|
|
14897
|
+
const FOLDED_REPLY_LABELS = {
|
|
14898
|
+
all: "settings.foldedReplies.all",
|
|
14899
|
+
final: "settings.foldedReplies.final"
|
|
14900
|
+
};
|
|
12828
14901
|
/**
|
|
12829
|
-
* Render the independent, Host-backed work-details
|
|
14902
|
+
* Render the independent, Host-backed work-details, collapse-timing, and folded-reply selectors.
|
|
14903
|
+
* Verbose never folds a Turn, so it omits the folded-reply selector.
|
|
12830
14904
|
* @param props - composed Settings slot props.
|
|
12831
14905
|
* @returns the preference row.
|
|
12832
14906
|
*/
|
|
12833
|
-
function TranscriptViewRow({ useTranscriptView, setTranscriptView, useCollapseTiming, setCollapseTiming, t }) {
|
|
14907
|
+
function TranscriptViewRow({ useTranscriptView, setTranscriptView, useCollapseTiming, setCollapseTiming, useFoldedReplies, setFoldedReplies, t }) {
|
|
12834
14908
|
const mode = useTranscriptView((value) => value);
|
|
12835
14909
|
const timing = useCollapseTiming((value) => value);
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
14910
|
+
const replies = useFoldedReplies((value) => value);
|
|
14911
|
+
return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
14912
|
+
(0, react_jsx_runtime.jsx)(PreferenceRow, {
|
|
14913
|
+
title: t("settings.transcript.title"),
|
|
14914
|
+
description: t("settings.transcript.description"),
|
|
14915
|
+
value: mode,
|
|
14916
|
+
selectedLabel: t(LABELS[mode]),
|
|
14917
|
+
options: TRANSCRIPT_VIEW_MODES.map((id) => ({
|
|
14918
|
+
id,
|
|
14919
|
+
label: t(LABELS[id])
|
|
14920
|
+
})),
|
|
14921
|
+
onSelect: (value) => {
|
|
14922
|
+
setTranscriptView(value);
|
|
14923
|
+
}
|
|
14924
|
+
}),
|
|
14925
|
+
(0, react_jsx_runtime.jsx)(PreferenceRow, {
|
|
14926
|
+
title: t("settings.collapse.title"),
|
|
14927
|
+
description: t("settings.collapse.description"),
|
|
14928
|
+
value: timing,
|
|
14929
|
+
selectedLabel: t(COLLAPSE_LABELS[timing]),
|
|
14930
|
+
options: COLLAPSE_TIMINGS.map((id) => ({
|
|
14931
|
+
id,
|
|
14932
|
+
label: t(COLLAPSE_LABELS[id])
|
|
14933
|
+
})),
|
|
14934
|
+
onSelect: (value) => {
|
|
14935
|
+
setCollapseTiming(value);
|
|
14936
|
+
}
|
|
14937
|
+
}),
|
|
14938
|
+
mode !== "verbose" && (0, react_jsx_runtime.jsx)(PreferenceRow, {
|
|
14939
|
+
title: t("settings.foldedReplies.title"),
|
|
14940
|
+
description: t("settings.foldedReplies.description"),
|
|
14941
|
+
value: replies,
|
|
14942
|
+
selectedLabel: t(FOLDED_REPLY_LABELS[replies]),
|
|
14943
|
+
options: FOLDED_REPLIES.map((id) => ({
|
|
14944
|
+
id,
|
|
14945
|
+
label: t(FOLDED_REPLY_LABELS[id])
|
|
14946
|
+
})),
|
|
14947
|
+
onSelect: (value) => {
|
|
14948
|
+
setFoldedReplies(value);
|
|
14949
|
+
}
|
|
14950
|
+
})
|
|
14951
|
+
] });
|
|
12861
14952
|
}
|
|
12862
14953
|
//#endregion
|
|
12863
14954
|
//#region lib/types/client/transcript-view.js
|
|
@@ -12871,6 +14962,8 @@ window.__ModuleLoader__.load({
|
|
|
12871
14962
|
mode;
|
|
12872
14963
|
/** Reactive collapse timing, defaulting to completion until Host settings arrive. */
|
|
12873
14964
|
collapseTiming = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(DEFAULT_COLLAPSE_TIMING);
|
|
14965
|
+
/** Reactive folded-reply choice, keeping every reply until Host settings arrive. */
|
|
14966
|
+
foldedReplies = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)("all");
|
|
12874
14967
|
/**
|
|
12875
14968
|
* @param host - durable Chat settings scope.
|
|
12876
14969
|
* @param defaultMode - presentation used without an explicit saved mode.
|
|
@@ -12906,6 +14999,15 @@ window.__ModuleLoader__.load({
|
|
|
12906
14999
|
this.collapseTiming.set(timing);
|
|
12907
15000
|
this.host.set(COLLAPSE_TIMING_FIELD, timing);
|
|
12908
15001
|
}
|
|
15002
|
+
/**
|
|
15003
|
+
* Publish and persist which Assistant replies stay visible in a folded Turn.
|
|
15004
|
+
* @param replies - every reply, or only the final answer.
|
|
15005
|
+
*/
|
|
15006
|
+
setFoldedReplies(replies) {
|
|
15007
|
+
if (this.foldedReplies.getSnapshot() === replies) return;
|
|
15008
|
+
this.foldedReplies.set(replies);
|
|
15009
|
+
this.host.set(FOLDED_REPLIES_FIELD, replies);
|
|
15010
|
+
}
|
|
12909
15011
|
/** Adopt the latest accepted Host section without writing it back. */
|
|
12910
15012
|
adopt() {
|
|
12911
15013
|
const section = this.host.getSnapshot().value;
|
|
@@ -12915,6 +15017,8 @@ window.__ModuleLoader__.load({
|
|
|
12915
15017
|
if (this.mode.getSnapshot() !== mode) this.mode.set(mode);
|
|
12916
15018
|
const timing = section.collapseTiming ?? "completion";
|
|
12917
15019
|
if (this.collapseTiming.getSnapshot() !== timing) this.collapseTiming.set(timing);
|
|
15020
|
+
const replies = section.foldedReplies ?? "all";
|
|
15021
|
+
if (this.foldedReplies.getSnapshot() !== replies) this.foldedReplies.set(replies);
|
|
12918
15022
|
}
|
|
12919
15023
|
};
|
|
12920
15024
|
//#endregion
|
|
@@ -13052,9 +15156,11 @@ window.__ModuleLoader__.load({
|
|
|
13052
15156
|
"uiConversation",
|
|
13053
15157
|
"locale",
|
|
13054
15158
|
"configForms",
|
|
15159
|
+
"connection",
|
|
13055
15160
|
"remote",
|
|
13056
15161
|
"remote.session",
|
|
13057
|
-
"sidebarRight"
|
|
15162
|
+
"sidebarRight",
|
|
15163
|
+
"fileDrag"
|
|
13058
15164
|
];
|
|
13059
15165
|
/**
|
|
13060
15166
|
* Mount all Chat-owned contributions.
|
|
@@ -13109,7 +15215,13 @@ window.__ModuleLoader__.load({
|
|
|
13109
15215
|
});
|
|
13110
15216
|
ctx.effect(() => ctx.locale.register(NS, {
|
|
13111
15217
|
zh,
|
|
13112
|
-
en
|
|
15218
|
+
en,
|
|
15219
|
+
ja,
|
|
15220
|
+
es,
|
|
15221
|
+
fr,
|
|
15222
|
+
de,
|
|
15223
|
+
ru,
|
|
15224
|
+
pt
|
|
13113
15225
|
}), "ui-chat: dictionaries");
|
|
13114
15226
|
const t = ctx.locale.bind(NS);
|
|
13115
15227
|
const chatStore = createChatStore();
|
|
@@ -13144,7 +15256,7 @@ window.__ModuleLoader__.load({
|
|
|
13144
15256
|
}, LinkOpeningRow));
|
|
13145
15257
|
});
|
|
13146
15258
|
const transcriptView = new TranscriptViewPolicy(chatSettings, "dshDesktop" in globalThis ? "standard" : DEFAULT_TRANSCRIPT_VIEW_MODE);
|
|
13147
|
-
const presentation = derivePresentationPolicy(transcriptView.mode, transcriptView.collapseTiming);
|
|
15259
|
+
const presentation = derivePresentationPolicy(transcriptView.mode, transcriptView.collapseTiming, transcriptView.foldedReplies);
|
|
13148
15260
|
const performancePolicy = new PerformanceUsagePolicy(chatSettings);
|
|
13149
15261
|
ctx.effect(() => () => {
|
|
13150
15262
|
transcriptView.dispose();
|
|
@@ -13181,28 +15293,30 @@ window.__ModuleLoader__.load({
|
|
|
13181
15293
|
inject: () => ({
|
|
13182
15294
|
hooks: {
|
|
13183
15295
|
transcriptView: transcriptView.mode,
|
|
13184
|
-
collapseTiming: transcriptView.collapseTiming
|
|
15296
|
+
collapseTiming: transcriptView.collapseTiming,
|
|
15297
|
+
foldedReplies: transcriptView.foldedReplies
|
|
13185
15298
|
},
|
|
13186
15299
|
setTranscriptView: (mode) => {
|
|
13187
15300
|
transcriptView.setMode(mode);
|
|
13188
15301
|
},
|
|
13189
15302
|
setCollapseTiming: (timing) => {
|
|
13190
15303
|
transcriptView.setCollapseTiming(timing);
|
|
15304
|
+
},
|
|
15305
|
+
setFoldedReplies: (replies) => {
|
|
15306
|
+
transcriptView.setFoldedReplies(replies);
|
|
13191
15307
|
}
|
|
13192
15308
|
})
|
|
13193
15309
|
}, TranscriptViewRow));
|
|
15310
|
+
const connectionState = ctx.get("connection").state;
|
|
13194
15311
|
const nodeSources = (binding) => {
|
|
13195
15312
|
const chat = chatSource(binding);
|
|
13196
15313
|
const conversation = ctx.uiConversation.binding(binding);
|
|
13197
|
-
return {
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
chatGroup: (key) => conversation.snapshot.getSnapshot().views.grouped("chat")?.groupSource(key)
|
|
13204
|
-
}
|
|
13205
|
-
};
|
|
15314
|
+
return { keyedHooks: {
|
|
15315
|
+
chatNode: (key) => chat.getSnapshot().nodes.source(key),
|
|
15316
|
+
chatNodeBottom: (key) => chat.getSnapshot().nodes.bottomSource(key),
|
|
15317
|
+
chatNodeProcess: (key) => chat.getSnapshot().nodes.processSource(key),
|
|
15318
|
+
chatGroup: (key) => conversation.snapshot.getSnapshot().views.grouped("chat")?.groupSource(key)
|
|
15319
|
+
} };
|
|
13206
15320
|
};
|
|
13207
15321
|
ctx.slots.inject("conversation.chat.flow", () => ctx.slots.register({
|
|
13208
15322
|
name: "conversation.chat.flow",
|
|
@@ -13216,7 +15330,13 @@ window.__ModuleLoader__.load({
|
|
|
13216
15330
|
inject: (sessionId) => {
|
|
13217
15331
|
const binding = ctx.sessions.binding(sessionId);
|
|
13218
15332
|
if (binding === void 0) throw new Error(`ui-chat: unknown session "${sessionId}"`);
|
|
13219
|
-
return
|
|
15333
|
+
return {
|
|
15334
|
+
...nodeSources(binding),
|
|
15335
|
+
hooks: {
|
|
15336
|
+
presentation,
|
|
15337
|
+
connectionState
|
|
15338
|
+
}
|
|
15339
|
+
};
|
|
13220
15340
|
}
|
|
13221
15341
|
}, ChatFlow));
|
|
13222
15342
|
ctx.slots.inject("conversation.view", () => {
|
|
@@ -13226,11 +15346,17 @@ window.__ModuleLoader__.load({
|
|
|
13226
15346
|
order: 0,
|
|
13227
15347
|
label: () => t("view.chat"),
|
|
13228
15348
|
locale: NS,
|
|
13229
|
-
children: {
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
15349
|
+
children: {
|
|
15350
|
+
"conversation.chat.flow": {
|
|
15351
|
+
kind: "single",
|
|
15352
|
+
scope: "session",
|
|
15353
|
+
inject: CHAT_FLOW_INJECT
|
|
15354
|
+
},
|
|
15355
|
+
"conversation.chat.text-interaction": {
|
|
15356
|
+
kind: "keyed",
|
|
15357
|
+
scope: "session"
|
|
15358
|
+
}
|
|
15359
|
+
},
|
|
13234
15360
|
store: chatStore,
|
|
13235
15361
|
inject: (sessionId) => {
|
|
13236
15362
|
const binding = ctx.sessions.binding(sessionId);
|
|
@@ -13239,10 +15365,16 @@ window.__ModuleLoader__.load({
|
|
|
13239
15365
|
const chat = chatSource(binding);
|
|
13240
15366
|
return {
|
|
13241
15367
|
...nodeSources(binding),
|
|
15368
|
+
fileDrag: ctx.fileDrag.actions,
|
|
15369
|
+
hooks: {
|
|
15370
|
+
presentation,
|
|
15371
|
+
interactionIds: ctx.uiConversation.interactions
|
|
15372
|
+
},
|
|
15373
|
+
dispatchInteraction: (gesture) => ctx.uiConversation.interactions.dispatch(sessionId, gesture),
|
|
13242
15374
|
fileMentions: (owner) => ctx.get("chatFileMentions")?.forClosing(owner, sessionId),
|
|
13243
15375
|
openFile: async (path, options) => {
|
|
13244
15376
|
const cwd = ctx.sessions.list.getSnapshot().byId[sessionId]?.cwd;
|
|
13245
|
-
const url = fileAddressFor(sessionId, cwd, path);
|
|
15377
|
+
const url = fileAddressFor(sessionId, cwd, resolveWorkspacePath(session.projections.faceOf("workingDirectory").getSnapshot() ?? void 0, path));
|
|
13246
15378
|
if (options?.line === void 0) ctx.sidebarRight.openResource(url);
|
|
13247
15379
|
else ctx.sidebarRight.openResource(url, { params: { line: options.line } });
|
|
13248
15380
|
await Promise.resolve();
|