@yadsh/dsh-qa-surface 0.7.4 → 0.9.0
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.md +169 -12
- package/compatibility.json +5 -0
- package/lib/access/capability-catalog.js +32 -3
- package/lib/access/capability-catalog.js.map +1 -1
- package/lib/access/model.js +24 -4
- package/lib/access/model.js.map +1 -1
- package/lib/access/role-repository.js +199 -91
- package/lib/access/role-repository.js.map +1 -1
- package/lib/access/service.js +223 -7
- package/lib/access/service.js.map +1 -1
- package/lib/account-remotes.js +2 -4
- package/lib/account-remotes.js.map +1 -1
- package/lib/accounts/database.js +447 -0
- package/lib/accounts/database.js.map +1 -0
- package/lib/accounts/errors.js.map +1 -1
- package/lib/accounts/file.js +27 -90
- package/lib/accounts/file.js.map +1 -1
- package/lib/accounts/store.js +224 -59
- package/lib/accounts/store.js.map +1 -1
- package/lib/admin/permissions.js +4 -0
- package/lib/admin/permissions.js.map +1 -1
- package/lib/admin/quality-store.js +270 -54
- package/lib/admin/quality-store.js.map +1 -1
- package/lib/admin/service.js +145 -7
- package/lib/admin/service.js.map +1 -1
- package/lib/admin/session-log.js +66 -5
- package/lib/admin/session-log.js.map +1 -1
- package/lib/cli.js +2 -1
- package/lib/cli.js.map +1 -1
- package/lib/client/QaSessionController.js +379 -39
- package/lib/client/QaSessionController.js.map +1 -1
- package/lib/client/QaSurface.js +94 -34
- package/lib/client/QaSurface.js.map +1 -1
- package/lib/client/QaTranscriptAdapter.js +40 -0
- package/lib/client/QaTranscriptAdapter.js.map +1 -1
- package/lib/client/admin/QaAdmin.js +26 -8
- package/lib/client/admin/QaAdmin.js.map +1 -1
- package/lib/client/admin/{format.js → copy.js} +1 -1
- package/lib/client/admin/copy.js.map +1 -0
- package/lib/client/admin/pages/Conversations.js +34 -8
- package/lib/client/admin/pages/Conversations.js.map +1 -1
- package/lib/client/admin/pages/Overview.js +1 -1
- package/lib/client/admin/pages/Overview.js.map +1 -1
- package/lib/client/admin/pages/Quality.js +1 -1
- package/lib/client/admin/pages/Quality.js.map +1 -1
- package/lib/client/admin/pages/Review.js +1 -1
- package/lib/client/admin/pages/Review.js.map +1 -1
- package/lib/client/admin/pages/Users.js +6 -2
- package/lib/client/admin/pages/Users.js.map +1 -1
- package/lib/client/admin/shared.js +10 -1
- package/lib/client/admin/shared.js.map +1 -1
- package/lib/client/admin/styles.js +2 -0
- package/lib/client/admin/styles.js.map +1 -1
- package/lib/client/audit/QaAuditDialog.js +74 -0
- package/lib/client/audit/QaAuditDialog.js.map +1 -0
- package/lib/client/audit/QaAuditRowBadge.js +17 -0
- package/lib/client/audit/QaAuditRowBadge.js.map +1 -0
- package/lib/client/audit/controller.js +39 -0
- package/lib/client/audit/controller.js.map +1 -0
- package/lib/client/audit/types.js +36 -0
- package/lib/client/audit/types.js.map +1 -0
- package/lib/client/audit/use-chat-audits.js +139 -0
- package/lib/client/audit/use-chat-audits.js.map +1 -0
- package/lib/client/components/Markdown.js +14 -206
- package/lib/client/components/Markdown.js.map +1 -1
- package/lib/client/components/QaChangelog.js +91 -0
- package/lib/client/components/QaChangelog.js.map +1 -1
- package/lib/client/components/QaComposer.js +63 -3
- package/lib/client/components/QaComposer.js.map +1 -1
- package/lib/client/components/QaHeader.js +1 -3
- package/lib/client/components/QaHeader.js.map +1 -1
- package/lib/client/components/QaMessage.js +25 -4
- package/lib/client/components/QaMessage.js.map +1 -1
- package/lib/client/components/QaQuestions.js +1 -1
- package/lib/client/components/QaQuestions.js.map +1 -1
- package/lib/client/components/QaSidebar.js +17 -3
- package/lib/client/components/QaSidebar.js.map +1 -1
- package/lib/client/components/QaSourcesPanel.js +3 -18
- package/lib/client/components/QaSourcesPanel.js.map +1 -1
- package/lib/client/components/QaWorkGroup.js +4 -8
- package/lib/client/components/QaWorkGroup.js.map +1 -1
- package/lib/client/components/source-icon.js +26 -0
- package/lib/client/components/source-icon.js.map +1 -0
- package/lib/client/components/thinking-phrases.js +2 -11
- package/lib/client/components/thinking-phrases.js.map +1 -1
- package/lib/client/components/use-now.js +21 -0
- package/lib/client/components/use-now.js.map +1 -0
- package/lib/client/index.js +33 -5
- package/lib/client/index.js.map +1 -1
- package/lib/client/lineage.js +18 -0
- package/lib/client/lineage.js.map +1 -0
- package/lib/client/markdown/CodeBlock.js +28 -0
- package/lib/client/markdown/CodeBlock.js.map +1 -0
- package/lib/client/markdown/blocks.js +342 -0
- package/lib/client/markdown/blocks.js.map +1 -0
- package/lib/client/markdown/highlight.js +1089 -0
- package/lib/client/markdown/highlight.js.map +1 -0
- package/lib/client/markdown/inline.js +377 -0
- package/lib/client/markdown/inline.js.map +1 -0
- package/lib/client/markdown/render.js +147 -0
- package/lib/client/markdown/render.js.map +1 -0
- package/lib/client/markdown/source-chip.js +55 -0
- package/lib/client/markdown/source-chip.js.map +1 -0
- package/lib/client/markdown/use-transient-flag.js +27 -0
- package/lib/client/markdown/use-transient-flag.js.map +1 -0
- package/lib/client/project-session-state.js +15 -2
- package/lib/client/project-session-state.js.map +1 -1
- package/lib/client/prompt-content.js +26 -0
- package/lib/client/prompt-content.js.map +1 -1
- package/lib/client/role/RoleSelector.js +11 -2
- package/lib/client/role/RoleSelector.js.map +1 -1
- package/lib/client/role/preview.js +123 -0
- package/lib/client/role/preview.js.map +1 -0
- package/lib/client/settings/card.js +2 -2
- package/lib/client/settings/card.js.map +1 -1
- package/lib/client/settings/sections/lockdown.js +1 -6
- package/lib/client/settings/sections/lockdown.js.map +1 -1
- package/lib/client/settings/sections/slash.js +57 -0
- package/lib/client/settings/sections/slash.js.map +1 -0
- package/lib/client/settings/sections/status.js +9 -1
- package/lib/client/settings/sections/status.js.map +1 -1
- package/lib/client/settings/sections.js +1 -0
- package/lib/client/settings/sections.js.map +1 -1
- package/lib/client/slash/SlashPalette.js +48 -0
- package/lib/client/slash/SlashPalette.js.map +1 -0
- package/lib/client/slash/copy.js +54 -0
- package/lib/client/slash/copy.js.map +1 -0
- package/lib/client/slash/slash-router.js +49 -0
- package/lib/client/slash/slash-router.js.map +1 -0
- package/lib/client/slash/useSlashNavigation.js +95 -0
- package/lib/client/slash/useSlashNavigation.js.map +1 -0
- package/lib/client/styles.js +124 -20
- package/lib/client/styles.js.map +1 -1
- package/lib/client/types.js +11 -0
- package/lib/client/types.js.map +1 -1
- package/lib/client.js +7615 -1567
- package/lib/client.js.map +1 -1
- package/lib/config-resolvers/accounts.js +15 -0
- package/lib/config-resolvers/accounts.js.map +1 -1
- package/lib/config-resolvers/basics.js +11 -2
- package/lib/config-resolvers/basics.js.map +1 -1
- package/lib/config-resolvers/defaults.js +30 -0
- package/lib/config-resolvers/defaults.js.map +1 -1
- package/lib/config-resolvers/lockdown.js +8 -2
- package/lib/config-resolvers/lockdown.js.map +1 -1
- package/lib/config-resolvers/slash-commands.js +60 -0
- package/lib/config-resolvers/slash-commands.js.map +1 -0
- package/lib/config-resolvers/sources.js +16 -0
- package/lib/config-resolvers/sources.js.map +1 -1
- package/lib/config.js +118 -2
- package/lib/config.js.map +1 -1
- package/lib/index.js +183 -11
- package/lib/index.js.map +1 -1
- package/lib/lockdown-policy.js +19 -0
- package/lib/lockdown-policy.js.map +1 -1
- package/lib/personal-skills/service.js +16 -3
- package/lib/personal-skills/service.js.map +1 -1
- package/lib/provenance/host-store.js +25 -4
- package/lib/provenance/host-store.js.map +1 -1
- package/lib/provenance/retention.js +25 -0
- package/lib/provenance/retention.js.map +1 -0
- package/lib/provenance/snapshot-store.js +290 -35
- package/lib/provenance/snapshot-store.js.map +1 -1
- package/lib/questions.js +98 -38
- package/lib/questions.js.map +1 -1
- package/lib/resolve-config.js +5 -0
- package/lib/resolve-config.js.map +1 -1
- package/lib/secure-session.js +139 -21
- package/lib/secure-session.js.map +1 -1
- package/lib/slash/catalog.js +77 -0
- package/lib/slash/catalog.js.map +1 -0
- package/lib/slash/matcher.js +100 -0
- package/lib/slash/matcher.js.map +1 -0
- package/lib/slash/parser.js +79 -0
- package/lib/slash/parser.js.map +1 -0
- package/lib/slash/policy.js +72 -0
- package/lib/slash/policy.js.map +1 -0
- package/lib/slash/remotes.js +272 -0
- package/lib/slash/remotes.js.map +1 -0
- package/lib/typert.host.js +348 -56
- package/lib/typert.remote-client.d.ts +7 -1
- package/lib/typert.remote-client.js +274 -51
- package/lib/types/access/capability-catalog.d.ts +28 -1
- package/lib/types/access/role-repository.d.ts +38 -7
- package/lib/types/access/service.d.ts +106 -3
- package/lib/types/account-remotes.d.ts +8 -4
- package/lib/types/accounts/database.d.ts +84 -0
- package/lib/types/accounts/errors.d.ts +7 -1
- package/lib/types/accounts/file.d.ts +17 -39
- package/lib/types/accounts/store.d.ts +110 -19
- package/lib/types/admin/quality-store.d.ts +38 -2
- package/lib/types/admin/service.d.ts +34 -2
- package/lib/types/admin/session-log.d.ts +65 -1
- package/lib/types/client/QaSessionController.d.ts +84 -2
- package/lib/types/client/QaSurface.d.ts +14 -1
- package/lib/types/client/admin/{format.d.ts → copy.d.ts} +1 -1
- package/lib/types/client/admin/pages/Conversations.d.ts +4 -0
- package/lib/types/client/audit/QaAuditDialog.d.ts +21 -0
- package/lib/types/client/audit/QaAuditRowBadge.d.ts +18 -0
- package/lib/types/client/audit/controller.d.ts +27 -0
- package/lib/types/client/audit/types.d.ts +72 -0
- package/lib/types/client/audit/use-chat-audits.d.ts +20 -0
- package/lib/types/client/components/Markdown.d.ts +7 -8
- package/lib/types/client/components/QaComposer.d.ts +12 -2
- package/lib/types/client/components/QaQuestions.d.ts +7 -0
- package/lib/types/client/components/QaSidebar.d.ts +11 -1
- package/lib/types/client/components/QaSourcesPanel.d.ts +1 -3
- package/lib/types/client/components/source-icon.d.ts +12 -0
- package/lib/types/client/components/use-now.d.ts +8 -0
- package/lib/types/client/lineage.d.ts +15 -0
- package/lib/types/client/markdown/CodeBlock.d.ts +14 -0
- package/lib/types/client/markdown/blocks.d.ts +74 -0
- package/lib/types/client/markdown/highlight.d.ts +29 -0
- package/lib/types/client/markdown/inline.d.ts +40 -0
- package/lib/types/client/markdown/render.d.ts +13 -0
- package/lib/types/client/markdown/source-chip.d.ts +32 -0
- package/lib/types/client/markdown/use-transient-flag.d.ts +12 -0
- package/lib/types/client/project-session-state.d.ts +3 -1
- package/lib/types/client/prompt-content.d.ts +9 -1
- package/lib/types/client/role/RoleSelector.d.ts +11 -1
- package/lib/types/client/role/preview.d.ts +109 -0
- package/lib/types/client/settings/sections/slash.d.ts +16 -0
- package/lib/types/client/settings/sections.d.ts +1 -0
- package/lib/types/client/slash/SlashPalette.d.ts +24 -0
- package/lib/types/client/slash/copy.d.ts +30 -0
- package/lib/types/client/slash/slash-router.d.ts +67 -0
- package/lib/types/client/slash/useSlashNavigation.d.ts +47 -0
- package/lib/types/client/styles.d.ts +9 -0
- package/lib/types/client/types.d.ts +16 -1
- package/lib/types/config-resolvers/slash-commands.d.ts +20 -0
- package/lib/types/index.d.ts +83 -2
- package/lib/types/lockdown-policy.d.ts +16 -0
- package/lib/types/personal-skills/service.d.ts +5 -0
- package/lib/types/provenance/host-store.d.ts +20 -3
- package/lib/types/provenance/retention.d.ts +46 -0
- package/lib/types/provenance/snapshot-store.d.ts +63 -7
- package/lib/types/questions.d.ts +13 -0
- package/lib/types/secure-session.d.ts +27 -1
- package/lib/types/slash/catalog.d.ts +56 -0
- package/lib/types/slash/matcher.d.ts +51 -0
- package/lib/types/slash/parser.d.ts +46 -0
- package/lib/types/slash/policy.d.ts +40 -0
- package/lib/types/slash/remotes.d.ts +35 -0
- package/lib/types/types.d.ts +254 -5
- package/package.json +9 -5
- package/scripts/attach-workspace-sessions.mjs +472 -0
- package/lib/client/admin/format.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../src/client/settings/sections/status.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CA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ACoB,GAAG,EAChD,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,gYAErD,CACL,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -18,6 +18,7 @@ export { EmbeddingSection } from "./sections/embedding.js";
|
|
|
18
18
|
export { InterfaceSection } from "./sections/interface.js";
|
|
19
19
|
export { LockdownSection } from "./sections/lockdown.js";
|
|
20
20
|
export { SessionSection } from "./sections/session.js";
|
|
21
|
+
export { SlashSection } from "./sections/slash.js";
|
|
21
22
|
export { SourcesSection } from "./sections/sources.js";
|
|
22
23
|
export { StatusSection } from "./sections/status.js";
|
|
23
24
|
//# sourceMappingURL=sections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sections.js","sourceRoot":"","sources":["../../../src/client/settings/sections.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"sections.js","sourceRoot":"","sources":["../../../src/client/settings/sections.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { memo } from "react";
|
|
3
|
+
const KIND_LABEL = Object.freeze({ skill: "Навык", command: "Команда" });
|
|
4
|
+
const KIND_GROUP = Object.freeze({ skill: "Навыки", command: "Команды" });
|
|
5
|
+
function groupRows(rows) {
|
|
6
|
+
const groups = [];
|
|
7
|
+
rows.forEach((entry, index) => {
|
|
8
|
+
const tail = groups.at(-1);
|
|
9
|
+
if (tail !== undefined && tail.kind === entry.kind) {
|
|
10
|
+
tail.rows.push({ entry, index });
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
groups.push({ kind: entry.kind, rows: [{ entry, index }] });
|
|
14
|
+
});
|
|
15
|
+
return groups;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The palette itself: a listbox over rows the composer has already filtered
|
|
19
|
+
* and ranked. It owns no state — an empty list means "nothing matches", and
|
|
20
|
+
* the surface line says why when the catalog could not be read at all.
|
|
21
|
+
*
|
|
22
|
+
* Options are picked on `click` and never take focus (`onMouseDown` prevents
|
|
23
|
+
* the default) so the caret stays in the textarea: the keyboard keeps working
|
|
24
|
+
* straight after a click, and Escape still closes what the mouse opened.
|
|
25
|
+
*/
|
|
26
|
+
export const QaSlashPalette = memo(function QaSlashPalette(props) {
|
|
27
|
+
const message = props.state === "error"
|
|
28
|
+
? (props.error ?? "Не удалось загрузить команды")
|
|
29
|
+
: props.state === "loading"
|
|
30
|
+
? "Загрузка действий…"
|
|
31
|
+
: props.rows.length === 0
|
|
32
|
+
? "Ничего не найдено"
|
|
33
|
+
: null;
|
|
34
|
+
const groups = groupRows(props.rows);
|
|
35
|
+
return (_jsxs("div", { className: "dsh-qa-slash", role: "listbox", id: `${props.idPrefix}-list`, "aria-label": "\u041D\u0430\u0432\u044B\u043A\u0438 \u0438 \u043A\u043E\u043C\u0430\u043D\u0434\u044B", children: [message === null ? null : (_jsx("p", { className: "dsh-qa-slash__empty", role: "presentation", children: message })), groups.map((group) => (_jsxs("div", { role: "group", "aria-label": KIND_GROUP[group.kind], className: "dsh-qa-slash__group", children: [_jsx("p", { className: "dsh-qa-slash__group-title", role: "presentation", children: KIND_GROUP[group.kind] }), group.rows.map(({ entry, index }) => {
|
|
36
|
+
const selected = entry.id === props.activeId;
|
|
37
|
+
return (_jsxs("div", { id: `${props.idPrefix}-option-${String(index)}`, role: "option", "aria-selected": selected, className: selected
|
|
38
|
+
? "dsh-qa-slash__row dsh-qa-slash__row--active"
|
|
39
|
+
: "dsh-qa-slash__row", onMouseEnter: () => {
|
|
40
|
+
props.onHover(index);
|
|
41
|
+
}, onMouseDown: (event) => {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
}, onClick: () => {
|
|
44
|
+
props.onPick(entry);
|
|
45
|
+
}, children: [_jsxs("span", { className: "dsh-qa-slash__head", children: [_jsx("span", { className: "dsh-qa-slash__name", children: `/${entry.name}` }), props.showKindBadge ? (_jsx("span", { className: `dsh-qa-slash__kind dsh-qa-slash__kind--${entry.kind}`, children: KIND_LABEL[entry.kind] })) : null] }), props.showDescriptions && entry.description !== "" ? (_jsx("span", { className: "dsh-qa-slash__description", children: entry.description })) : null] }, entry.id));
|
|
46
|
+
})] }, group.kind))), props.commandSurface === "inactive" && props.rows.length > 0 ? (_jsx("p", { className: "dsh-qa-slash__hint", role: "presentation", children: "\u041A\u043E\u043C\u0430\u043D\u0434\u044B \u043F\u043E\u044F\u0432\u044F\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0443 \u0447\u0430\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u0441\u0435\u0441\u0441\u0438\u044F." })) : null] }));
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=SlashPalette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlashPalette.js","sourceRoot":"","sources":["../../../src/client/slash/SlashPalette.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAoB7B,MAAM,UAAU,GACd,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;AAExD,MAAM,UAAU,GACd,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;AAOzD,SAAS,SAAS,CAAC,IAAoC;IAIrD,MAAM,MAAM,GAAyD,EAAE,CAAC;IACxE,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC5B,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,EAAE,CAAC;YACnD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAA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AAC,IAAI,CAiDX,CACP,CAAC,EACD,KAAK,CAAC,cAAc,KAAK,UAAU,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC9D,YAAG,SAAS,EAAC,oBAAoB,EAAC,IAAI,EAAC,cAAc,kSAEjD,CACL,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The user-facing copy of every slash decision. One module because these
|
|
3
|
+
* strings are the whole interface between a refusal and the person reading it:
|
|
4
|
+
* a refusal that does not say what to do next is indistinguishable from a bug.
|
|
5
|
+
*/
|
|
6
|
+
/** The refusal that predates the feature; unchanged, so nothing regresses. */
|
|
7
|
+
export const SLASH_DISABLED_COPY = "Команды со слешем недоступны в режиме помощника.";
|
|
8
|
+
export function slashRefusalCopy(route) {
|
|
9
|
+
switch (route.kind) {
|
|
10
|
+
case "unknown":
|
|
11
|
+
return `Неизвестное действие: /${route.name}. Выберите действие из списка.`;
|
|
12
|
+
case "ambiguous":
|
|
13
|
+
return `Найдены навык и команда с именем /${route.name}. Выберите нужное действие.`;
|
|
14
|
+
case "unavailable":
|
|
15
|
+
return "Список действий сейчас недоступен. Обычные сообщения работают.";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A gesture inside an ordinary prompt that this deployment withholds. Stated
|
|
20
|
+
* as a fact about the deployment, not as a fault of the message, because the
|
|
21
|
+
* message itself is fine — it is one word of it that will not take effect.
|
|
22
|
+
*/
|
|
23
|
+
export function slashWithheldCopy(names) {
|
|
24
|
+
const list = names.map((name) => `/${name}`).join(", ");
|
|
25
|
+
return `${list} недоступно в этом чате. Уберите упоминание или включите навык в настройках.`;
|
|
26
|
+
}
|
|
27
|
+
export function slashExecuteFailureCopy(entry) {
|
|
28
|
+
return `Не удалось выполнить /${entry.name}.`;
|
|
29
|
+
}
|
|
30
|
+
/** Copy for a refusal the Host decided, keyed by its reason. */
|
|
31
|
+
export function slashHostRefusalCopy(refusal) {
|
|
32
|
+
const reason = refusal.reason;
|
|
33
|
+
switch (reason) {
|
|
34
|
+
case "slash-disabled":
|
|
35
|
+
return SLASH_DISABLED_COPY;
|
|
36
|
+
case "unknown-command":
|
|
37
|
+
return "Команда больше недоступна.";
|
|
38
|
+
case "not-allowed":
|
|
39
|
+
return "Эта команда запрещена на этом стенде.";
|
|
40
|
+
case "attachments-unsupported":
|
|
41
|
+
return "Эта команда не принимает вложения.";
|
|
42
|
+
case "inactive-session":
|
|
43
|
+
return "Команда доступна только в активном чате.";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Attachments the chosen command refuses. Checked before dispatch so the
|
|
48
|
+
* composer keeps the draft and the files; the Host checks it again and stays
|
|
49
|
+
* the authority.
|
|
50
|
+
*/
|
|
51
|
+
export function slashAttachmentsCopy(entry) {
|
|
52
|
+
return `/${entry.name} не принимает вложения.`;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.js","sourceRoot":"","sources":["../../../src/client/slash/copy.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AAEH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,mBAAmB,GAC9B,kDAAkD,CAAC;AAErD,MAAM,UAAU,gBAAgB,CAC9B,KAGC;IAED,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,SAAS;YACZ,OAAO,0BAA0B,KAAK,CAAC,IAAI,gCAAgC,CAAC;QAC9E,KAAK,WAAW;YACd,OAAO,qCAAqC,KAAK,CAAC,IAAI,6BAA6B,CAAC;QACtF,KAAK,aAAa;YAChB,OAAO,gEAAgE,CAAC;IAC5E,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAwB;IACxD,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxD,OAAO,GAAG,IAAI,8EAA8E,CAAC;AAC/F,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAA0B;IAChE,OAAO,yBAAyB,KAAK,CAAC,IAAI,GAAG,CAAC;AAChD,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,oBAAoB,CAClC,OAAuD;IAEvD,MAAM,MAAM,GAAmB,OAAO,CAAC,MAAM,CAAC;IAC9C,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,gBAAgB;YACnB,OAAO,mBAAmB,CAAC;QAC7B,KAAK,iBAAiB;YACpB,OAAO,4BAA4B,CAAC;QACtC,KAAK,aAAa;YAChB,OAAO,uCAAuC,CAAC;QACjD,KAAK,yBAAyB;YAC5B,OAAO,oCAAoC,CAAC;QAC9C,KAAK,kBAAkB;YACrB,OAAO,0CAA0C,CAAC;IACtD,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAA0B;IAC7D,OAAO,IAAI,KAAK,CAAC,IAAI,yBAAyB,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { parseSlashLine, skillGestures } from "../../slash/parser.js";
|
|
2
|
+
function entryById(entries, id) {
|
|
3
|
+
if (id === null || id === undefined)
|
|
4
|
+
return undefined;
|
|
5
|
+
return entries.find((entry) => entry.id === id);
|
|
6
|
+
}
|
|
7
|
+
/** Whether a withheld name appears in the text as a native skill gesture. */
|
|
8
|
+
const NO_WITHHELD = Object.freeze([]);
|
|
9
|
+
function withheldInText(text, deniedSkills) {
|
|
10
|
+
if (deniedSkills.length === 0)
|
|
11
|
+
return NO_WITHHELD;
|
|
12
|
+
const denied = new Set(deniedSkills);
|
|
13
|
+
return Object.freeze(skillGestures(text).filter((name) => denied.has(name)));
|
|
14
|
+
}
|
|
15
|
+
export function resolveSlashRoute(input) {
|
|
16
|
+
const line = parseSlashLine(input.text);
|
|
17
|
+
if (line === undefined) {
|
|
18
|
+
// Not a command line. It may still carry a `/name` gesture inside a
|
|
19
|
+
// sentence, which the native skill consumer will act on — say so when the
|
|
20
|
+
// deployment withholds that name.
|
|
21
|
+
const withheld = input.enabled
|
|
22
|
+
? withheldInText(input.text, input.deniedSkills)
|
|
23
|
+
: Object.freeze([]);
|
|
24
|
+
return withheld.length === 0
|
|
25
|
+
? { kind: "prompt" }
|
|
26
|
+
: { kind: "prompt", withheld };
|
|
27
|
+
}
|
|
28
|
+
if (!input.enabled)
|
|
29
|
+
return { kind: "disabled" };
|
|
30
|
+
const picked = entryById(input.entries, input.picked);
|
|
31
|
+
if (picked !== undefined && picked.name === line.name) {
|
|
32
|
+
return picked.kind === "skill"
|
|
33
|
+
? { kind: "skill", entry: picked }
|
|
34
|
+
: { kind: "command", entry: picked };
|
|
35
|
+
}
|
|
36
|
+
if (!input.catalogReady)
|
|
37
|
+
return { kind: "unavailable", name: line.name };
|
|
38
|
+
const candidates = input.entries.filter((entry) => entry.name === line.name);
|
|
39
|
+
const only = candidates[0];
|
|
40
|
+
if (only === undefined)
|
|
41
|
+
return { kind: "unknown", name: line.name };
|
|
42
|
+
if (candidates.length > 1) {
|
|
43
|
+
return { kind: "ambiguous", name: line.name, entries: candidates };
|
|
44
|
+
}
|
|
45
|
+
return only.kind === "skill"
|
|
46
|
+
? { kind: "skill", entry: only }
|
|
47
|
+
: { kind: "command", entry: only };
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=slash-router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slash-router.js","sourceRoot":"","sources":["../../../src/client/slash/slash-router.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAmDtE,SAAS,SAAS,CAChB,OAAuC,E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ACvC,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
2
|
+
import { rankSlashEntries } from "../../slash/matcher.js";
|
|
3
|
+
import { slashPaletteQuery } from "../../slash/parser.js";
|
|
4
|
+
/**
|
|
5
|
+
* Palette state for one composer draft.
|
|
6
|
+
*
|
|
7
|
+
* The palette is a pure function of the draft: it is open while the draft is
|
|
8
|
+
* `/` plus a name still being typed, and closes the moment the user types a
|
|
9
|
+
* space and starts writing arguments. Nothing has to be kept in sync — which
|
|
10
|
+
* is also why switching chats (the composer is keyed by chat and remounts)
|
|
11
|
+
* cannot leave a palette behind.
|
|
12
|
+
*
|
|
13
|
+
* Selection is one index over the filtered rows; the arrow keys, the mouse and
|
|
14
|
+
* the touch screen all move the same number.
|
|
15
|
+
*/
|
|
16
|
+
export function useSlashNavigation(options) {
|
|
17
|
+
const { draft, slash, setDraft } = options;
|
|
18
|
+
const [dismissed, setDismissed] = useState(false);
|
|
19
|
+
const [pickedId, setPickedId] = useState(null);
|
|
20
|
+
const [active, setActive] = useState(0);
|
|
21
|
+
const lastReopen = useRef(options.reopen);
|
|
22
|
+
const query = slashPaletteQuery(draft);
|
|
23
|
+
const canOpen = slash.enabled && query !== undefined && !dismissed;
|
|
24
|
+
const open = canOpen;
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (lastReopen.current === options.reopen)
|
|
27
|
+
return;
|
|
28
|
+
lastReopen.current = options.reopen;
|
|
29
|
+
setDismissed(false);
|
|
30
|
+
}, [options.reopen]);
|
|
31
|
+
const rows = useMemo(() => {
|
|
32
|
+
if (query === undefined)
|
|
33
|
+
return [];
|
|
34
|
+
return rankSlashEntries(slash.entries, query, {
|
|
35
|
+
fuzzy: options.fuzzySearch,
|
|
36
|
+
}).slice(0, options.maxVisible);
|
|
37
|
+
}, [slash.entries, query, options.fuzzySearch, options.maxVisible]);
|
|
38
|
+
// A new query re-ranks the rows, so the old index may point at a row that is
|
|
39
|
+
// no longer the best match; the first row is always the right anchor.
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
setActive(0);
|
|
42
|
+
}, [query]);
|
|
43
|
+
const bounded = rows.length === 0 ? -1 : Math.min(active, rows.length - 1);
|
|
44
|
+
const activeId = bounded === -1 ? null : (rows[bounded]?.id ?? null);
|
|
45
|
+
const picked = useMemo(() => {
|
|
46
|
+
if (pickedId === null)
|
|
47
|
+
return undefined;
|
|
48
|
+
const entry = slash.entries.find((candidate) => candidate.id === pickedId);
|
|
49
|
+
// The pick survives only while the draft still reads as that invocation;
|
|
50
|
+
// editing the name away retires it and lets the router decide afresh.
|
|
51
|
+
if (entry === undefined)
|
|
52
|
+
return undefined;
|
|
53
|
+
return draft === `/${entry.name}` || draft.startsWith(`/${entry.name} `)
|
|
54
|
+
? entry
|
|
55
|
+
: undefined;
|
|
56
|
+
}, [pickedId, slash.entries, draft]);
|
|
57
|
+
const insert = useCallback((entry) => {
|
|
58
|
+
setPickedId(entry.id);
|
|
59
|
+
setDismissed(true);
|
|
60
|
+
setDraft(`/${entry.name} `);
|
|
61
|
+
}, [setDraft]);
|
|
62
|
+
return {
|
|
63
|
+
open,
|
|
64
|
+
query: query ?? "",
|
|
65
|
+
rows,
|
|
66
|
+
active: bounded,
|
|
67
|
+
activeId,
|
|
68
|
+
move: (delta) => {
|
|
69
|
+
if (rows.length === 0)
|
|
70
|
+
return;
|
|
71
|
+
setActive((current) => {
|
|
72
|
+
const next = current + delta;
|
|
73
|
+
if (next < 0)
|
|
74
|
+
return rows.length - 1;
|
|
75
|
+
if (next >= rows.length)
|
|
76
|
+
return 0;
|
|
77
|
+
return next;
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
hover: (index) => {
|
|
81
|
+
setActive(index);
|
|
82
|
+
},
|
|
83
|
+
pickActive: () => {
|
|
84
|
+
const entry = rows[bounded];
|
|
85
|
+
if (entry !== undefined)
|
|
86
|
+
insert(entry);
|
|
87
|
+
},
|
|
88
|
+
pick: insert,
|
|
89
|
+
dismiss: () => {
|
|
90
|
+
setDismissed(true);
|
|
91
|
+
},
|
|
92
|
+
picked,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=useSlashNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSlashNavigation.js","sourceRoot":"","sources":["../../../src/client/slash/useSlashNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAoC1D;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAkC;IAElC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IAC3C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAC9D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACxC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAE1C,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,SAAS,CAAC;IACnE,MAAM,IAAI,GAAG,OAAO,CAAC;IAErB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,CAAC,OAAO,KAAK,OAAO,CAAC,MAAM;YAAE,OAAO;QAClD,UAAU,CAAC,OAAO,GA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ACf,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;YAC5B,IAAI,KAAK,KAAK,SAAS;gBAAE,MAAM,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;QACD,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,MAAM;KACP,CAAC;AACJ,CAAC"}
|
package/lib/client/styles.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { QA_BLEED_MAX_WIDTH } from "./components/QaWidthHandle.js";
|
|
2
2
|
import { QA_ADMIN_CONSOLE_STYLES } from "./admin/styles.js";
|
|
3
|
+
import { AUDIT_UI_STYLES } from "@yadsh/dsh-audit-ui";
|
|
3
4
|
/**
|
|
4
5
|
* Company interaction palette ("Цвета взаимодействия" guideline) — the single
|
|
5
6
|
* source of every hard-coded color in this file. The object is emitted once as
|
|
@@ -113,6 +114,15 @@ body[data-dsh-qa-surface="active"] div:has(>[data-shell-overlay])>:not([data-she
|
|
|
113
114
|
.dsh-qa-sidebar__item-delete{appearance:none;position:absolute;top:50%;right:4px;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border:0;background:var(--dsw-alias-bg-layer-2);cursor:pointer;color:var(--dsw-alias-label-tertiary);padding:5px;border-radius:6px;opacity:0;transform:translateY(-50%);transition:opacity .12s}
|
|
114
115
|
.dsh-qa-sidebar__item:hover .dsh-qa-sidebar__item-delete,.dsh-qa-sidebar__item-delete:focus-visible,.dsh-qa-sidebar__item-delete--confirm{opacity:1}
|
|
115
116
|
.dsh-qa-sidebar__item-delete:hover{color:var(--dsw-alias-label-primary)}
|
|
117
|
+
.dsh-qa-sidebar__item-audit{appearance:none;flex:none;display:inline-flex;align-items:center;gap:4px;height:22px;margin-right:4px;padding:0 8px;border:1px solid var(--dsw-alias-border-l2);border-radius:999px;background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-secondary);font:inherit;font-size:11px;line-height:16px;cursor:pointer;transition:border-color .12s,color .12s}
|
|
118
|
+
.dsh-qa-sidebar__item-audit--with-delete{margin-right:28px}
|
|
119
|
+
.dsh-qa-sidebar__item-audit:hover{border-color:var(--dsw-alias-label-dimmed);color:var(--dsw-alias-label-primary)}
|
|
120
|
+
.dsh-qa-sidebar__item-audit:focus-visible{outline:2px solid var(--dsh-qa-accent);outline-offset:-2px}
|
|
121
|
+
.dsh-qa-sidebar__item-audit-check{width:11px;height:11px;flex:none;color:var(--dsw-alias-state-success-primary)}
|
|
122
|
+
.dsh-qa-sidebar__item-audit-verdict{font-weight:600}
|
|
123
|
+
.dsh-qa-sidebar__item-audit-verdict--good{color:var(--dsw-alias-state-success-primary)}
|
|
124
|
+
.dsh-qa-sidebar__item-audit-verdict--warn{color:var(--dsw-alias-state-warn-primary)}
|
|
125
|
+
.dsh-qa-sidebar__item-audit-verdict--bad{color:var(--dsw-alias-state-error-primary)}
|
|
116
126
|
.dsh-qa-sidebar__item-delete:focus-visible{outline:2px solid var(--dsh-qa-accent);outline-offset:-2px}
|
|
117
127
|
.dsh-qa-sidebar__item-delete--confirm{color:var(--dsh-qa-error-hover)}
|
|
118
128
|
.dsh-qa-sidebar__item-delete svg{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
|
|
@@ -170,6 +180,9 @@ body[data-dsh-qa-surface="active"] div:has(>[data-shell-overlay])>:not([data-she
|
|
|
170
180
|
.dsh-qa-modal__close:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}
|
|
171
181
|
.dsh-qa-modal__close:focus-visible{outline:2px solid var(--dsh-qa-accent);outline-offset:-2px}
|
|
172
182
|
.dsh-qa-modal__close svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
|
|
183
|
+
.dsh-qa-audit-dialog{display:flex;flex-direction:column;min-height:0;height:100%}
|
|
184
|
+
.dsh-qa-audit-dialog__body{flex:1;min-height:0;overflow:auto;padding:16px 18px}
|
|
185
|
+
.dsh-qa-audit-dialog__body .dsh-audit-json{height:100%;min-height:320px}
|
|
173
186
|
.dsh-qa-modal__body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 18px 18px}
|
|
174
187
|
.dsh-qa-modal__footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none;padding:12px 18px;border-top:1px solid var(--dsw-alias-border-l2)}
|
|
175
188
|
.dsh-qa-changelog__entry{padding-top:10px}
|
|
@@ -285,11 +298,12 @@ body[data-dsh-qa-surface="active"] div:has(>[data-shell-overlay])>:not([data-she
|
|
|
285
298
|
.dsh-qa-header::after{content:"";position:absolute;right:0;bottom:1px;left:0;height:1px;background:var(--dsw-alias-border-l2);pointer-events:none}
|
|
286
299
|
.dsh-qa-header__inner{width:100%;padding:11px 28px 0 30px}
|
|
287
300
|
.dsh-qa-header__title-row{display:flex;align-items:center;min-height:32px;gap:10px}
|
|
301
|
+
.dsh-qa-header__actions{display:flex;align-items:center;flex:none;gap:10px;margin-left:auto}
|
|
288
302
|
.dsh-qa-header__logo{width:24px;height:24px;object-fit:contain;border-radius:6px;flex:none}
|
|
289
303
|
.dsh-qa-header h1{max-width:min(42vw,420px);min-width:0;overflow:hidden;margin:0;color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:20px;text-overflow:ellipsis;white-space:nowrap}
|
|
290
304
|
.dsh-qa-header__mode{display:inline-flex;align-items:center;gap:5px;flex:none;color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px;white-space:nowrap}
|
|
291
305
|
.dsh-qa-header__mode svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
|
|
292
|
-
.dsh-qa-header__reset{
|
|
306
|
+
.dsh-qa-header__reset{padding:5px 10px;border:0;border-radius:8px;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:13px;cursor:pointer}
|
|
293
307
|
.dsh-qa-header__agents{display:inline-flex;align-items:center;gap:6px;flex:none;padding:5px 10px;border:0;border-radius:8px;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:13px;line-height:20px;cursor:pointer}
|
|
294
308
|
.dsh-qa-header__agents:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}
|
|
295
309
|
.dsh-qa-header__agents:disabled{opacity:.45;cursor:default}
|
|
@@ -331,7 +345,6 @@ body[data-dsh-qa-surface="active"] div:has(>[data-shell-overlay])>:not([data-she
|
|
|
331
345
|
.dsh-qa-header__sources svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
|
|
332
346
|
.dsh-qa-header__sources:focus-visible{outline:2px solid var(--dsh-qa-accent);outline-offset:2px}
|
|
333
347
|
.dsh-qa-header__files{display:inline-flex;align-items:center;gap:6px;flex:none;padding:5px 10px;border:0;border-radius:8px;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:13px;line-height:20px;cursor:pointer}
|
|
334
|
-
.dsh-qa-header__files--end{margin-left:auto}
|
|
335
348
|
.dsh-qa-header__files:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}
|
|
336
349
|
.dsh-qa-header__files:disabled{opacity:.45;cursor:default}
|
|
337
350
|
.dsh-qa-header__files[aria-expanded="true"]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}
|
|
@@ -344,8 +357,11 @@ body[data-dsh-qa-surface="active"] div:has(>[data-shell-overlay])>:not([data-she
|
|
|
344
357
|
.dsh-qa-role-selector select,.dsh-qa-header__admin{height:30px;padding:4px 10px;border:1px solid var(--dsw-alias-border-l2);border-radius:8px;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);font:inherit;font-size:12px;line-height:20px;cursor:pointer}
|
|
345
358
|
.dsh-qa-role-selector select:hover,.dsh-qa-header__admin:hover{border-color:var(--dsw-alias-label-dimmed);color:var(--dsw-alias-label-primary)}
|
|
346
359
|
.dsh-qa-role-selector select:focus-visible,.dsh-qa-header__admin:focus-visible{outline:2px solid var(--dsh-qa-accent);outline-offset:1px}
|
|
347
|
-
.dsh-qa-header__admin{
|
|
348
|
-
.dsh-qa-admin-preview{position:absolute;z-index:8;right:20px;bottom:14px;padding:5px
|
|
360
|
+
.dsh-qa-header__admin{white-space:nowrap}
|
|
361
|
+
.dsh-qa-admin-preview{position:absolute;z-index:8;right:20px;bottom:14px;display:flex;align-items:center;gap:8px;padding:5px 6px 5px 12px;border:1px solid var(--dsh-qa-warning);border-radius:999px;background:var(--dsh-qa-warning10);color:var(--dsw-alias-label-primary);font-size:11px;font-weight:700;letter-spacing:.04em}
|
|
362
|
+
.dsh-qa-admin-preview__exit{appearance:none;border:1px solid var(--dsh-qa-warning);border-radius:999px;background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-primary);font:inherit;font-size:11px;font-weight:600;letter-spacing:.02em;padding:2px 9px;cursor:pointer}
|
|
363
|
+
.dsh-qa-admin-preview__exit:hover{border-color:var(--dsw-alias-label-dimmed)}
|
|
364
|
+
.dsh-qa-admin-preview__exit:focus-visible{outline:2px solid var(--dsh-qa-accent);outline-offset:1px}
|
|
349
365
|
.dsh-qa-role-selector__notice{margin:0;color:var(--dsw-alias-label-secondary);font-size:14px;line-height:1.6}
|
|
350
366
|
.dsh-qa-admin{${QA_BRAND_TOKENS};position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);font-family:inherit}
|
|
351
367
|
.dsh-qa-admin *{box-sizing:border-box}
|
|
@@ -487,7 +503,11 @@ a.dsh-qa-sources__title:hover{text-decoration:underline}
|
|
|
487
503
|
.dsh-qa-preview__range{display:flex;align-items:center;gap:8px;margin:0 0 9px!important;color:var(--dsw-alias-label-secondary);font-size:11px}
|
|
488
504
|
.dsh-qa-preview__range button{appearance:none;padding:1px 6px;border:0;background:transparent;color:var(--dsh-qa-accent);font:inherit;font-size:11px;cursor:pointer}
|
|
489
505
|
.dsh-qa-preview__markdown{white-space:normal;color:var(--dsw-alias-label-primary);font-size:13px;line-height:1.6}
|
|
490
|
-
|
|
506
|
+
/* The preview pane is a dense read-only pane: it keeps its own scale instead
|
|
507
|
+
of the transcript's ladder, one step tighter in every block. */
|
|
508
|
+
.dsh-qa-preview__markdown .dsh-qa-md{font-size:13px;line-height:1.6}
|
|
509
|
+
.dsh-qa-preview__markdown .dsh-qa-md :where(p,ul,ol,blockquote,.dsh-qa-md-code,.dsh-qa-md-table){margin:0 0 10px}
|
|
510
|
+
.dsh-qa-preview__markdown .dsh-qa-md :where(h1,h2,h3,h4,h5,h6){margin:14px 0 8px;font-size:15px;line-height:1.4}
|
|
491
511
|
.dsh-qa-preview__raw{max-width:100%;margin:0;overflow:auto;white-space:pre;background:var(--dsw-alias-bg-layer-3);font:11px/18px ui-monospace,SFMono-Regular,Consolas,monospace}
|
|
492
512
|
.dsh-qa-preview__raw code{display:block;min-width:max-content}
|
|
493
513
|
.dsh-qa-preview__line{display:flex;min-height:18px}
|
|
@@ -565,24 +585,67 @@ a.dsh-qa-srcref:hover,button.dsh-qa-srcref:hover{border-color:var(--dsw-alias-la
|
|
|
565
585
|
.dsh-qa-srcref__card-target{display:block;overflow:hidden;margin-top:2px;color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px;text-overflow:ellipsis;white-space:nowrap}
|
|
566
586
|
.dsh-qa-srcref__card-snippet{display:-webkit-box;overflow:hidden;margin-top:6px;color:var(--dsw-alias-label-secondary);-webkit-box-orient:vertical;-webkit-line-clamp:3}
|
|
567
587
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
.dsh-qa-
|
|
575
|
-
.dsh-qa-
|
|
576
|
-
.dsh-qa-
|
|
577
|
-
.dsh-qa-
|
|
578
|
-
.dsh-qa-
|
|
588
|
+
/* Markdown typography follows the host transcript's own ladder: the sizes,
|
|
589
|
+
weights, and margins below are the ones DSH gives assistant prose, read
|
|
590
|
+
from the theme's --dsw-font-markdown-* / --dsw-alias-markdown-* custom
|
|
591
|
+
properties, so a font-size preference or a light/dark switch moves both
|
|
592
|
+
surfaces together. A container that needs a denser scale (the source
|
|
593
|
+
preview, the work-item text) overrides the ladder for its own subtree. */
|
|
594
|
+
.dsh-qa-md{min-width:0;white-space:normal;overflow-wrap:anywhere;color:var(--dsw-alias-label-primary);font-family:var(--dsw-font-markdown-base-font-family,inherit);font-size:var(--dsw-font-markdown-base-font-size,14px);font-weight:400;line-height:var(--dsw-font-markdown-base-line-height,24px)}
|
|
595
|
+
.dsh-qa-md>:first-child{margin-top:0}
|
|
596
|
+
.dsh-qa-md>:last-child{margin-bottom:0}
|
|
597
|
+
.dsh-qa-md p{margin:16px 0}
|
|
598
|
+
.dsh-qa-md strong{font-weight:600}
|
|
599
|
+
.dsh-qa-md h1{margin:32px 0 16px;font-size:var(--dsw-font-markdown-h1-font-size,21px);font-weight:700;line-height:var(--dsw-font-markdown-h1-line-height,30px)}
|
|
600
|
+
.dsh-qa-md h2{margin:32px 0 16px;font-size:var(--dsw-font-markdown-h2-font-size,19px);font-weight:700;line-height:var(--dsw-font-markdown-h2-line-height,28px)}
|
|
601
|
+
.dsh-qa-md h3{margin:32px 0 16px;font-size:var(--dsw-font-markdown-h3-font-size,18px);font-weight:700;line-height:var(--dsw-font-markdown-h3-line-height,26px)}
|
|
602
|
+
.dsh-qa-md h4,.dsh-qa-md h5,.dsh-qa-md h6{margin:16px 0;font-size:var(--dsw-font-markdown-base-font-size,14px);font-weight:600;line-height:var(--dsw-font-markdown-base-line-height,24px)}
|
|
603
|
+
.dsh-qa-md h1 strong,.dsh-qa-md h2 strong,.dsh-qa-md h3 strong,.dsh-qa-md h4 strong,.dsh-qa-md h5 strong,.dsh-qa-md h6 strong{font-weight:inherit}
|
|
604
|
+
.dsh-qa-md h4+ol,.dsh-qa-md h4+ul,.dsh-qa-md h5+ol,.dsh-qa-md h5+ul,.dsh-qa-md h6+ol,.dsh-qa-md h6+ul{margin-top:8px}
|
|
605
|
+
.dsh-qa-md a{position:relative;color:var(--dsh-qa-accent);font-weight:500;text-decoration:none}
|
|
606
|
+
.dsh-qa-md a:hover,.dsh-qa-md a:focus-visible{text-decoration:underline dotted var(--dsh-qa-accent);text-underline-offset:3px;outline:none}
|
|
607
|
+
.dsh-qa-md-link-icon{width:1.05em;height:1.05em;flex:none;margin-right:5px;vertical-align:-.18em;fill:none;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
|
|
608
|
+
.dsh-qa-md ol,.dsh-qa-md ul{margin:16px 0;padding-left:22px}
|
|
609
|
+
.dsh-qa-md li{margin-top:6px}
|
|
610
|
+
.dsh-qa-md li>:first-child{margin-top:0}
|
|
611
|
+
.dsh-qa-md li>:last-child{margin-bottom:0}
|
|
612
|
+
.dsh-qa-md li::marker{color:var(--dsw-alias-label-secondary)}
|
|
613
|
+
.dsh-qa-md li>ol,.dsh-qa-md li>ul{margin-top:4px}
|
|
614
|
+
.dsh-qa-md :where(ol,ul) ol{list-style-position:inside;padding-left:0}
|
|
615
|
+
.dsh-qa-md .dsh-qa-md-task{list-style:none}
|
|
616
|
+
.dsh-qa-md .dsh-qa-md-task input{margin:0 8px 0 0;accent-color:var(--dsw-alias-label-secondary)}
|
|
617
|
+
.dsh-qa-md hr{height:.5px;margin:32px 0;border:0;background:var(--dsw-alias-border-l2)}
|
|
618
|
+
.dsh-qa-md blockquote{margin:16px 0;padding-left:14px;border-left:2px solid var(--dsw-alias-label-caption,var(--dsw-alias-label-tertiary));color:var(--dsw-alias-label-secondary)}
|
|
619
|
+
.dsh-qa-md :not(pre)>code{display:inline-flex;align-items:center;box-sizing:border-box;padding:0 5px;border:.5px solid var(--dsw-alias-border-l1);border-radius:6px;background:var(--dsw-alias-markdown-inline-code,var(--dsw-alias-bg-layer-2));font-family:var(--ds-font-family-code,ui-monospace,SFMono-Regular,Consolas,monospace);font-size:.875em;line-height:19px}
|
|
620
|
+
.dsh-qa-md h1 code,.dsh-qa-md h2 code,.dsh-qa-md h3 code,.dsh-qa-md h4 code,.dsh-qa-md h5 code,.dsh-qa-md h6 code{font-family:var(--ds-font-family-code,ui-monospace,SFMono-Regular,Consolas,monospace);font-size:inherit}
|
|
621
|
+
.dsh-qa-md-image{display:block;max-width:100%;height:auto;margin:0;border-radius:8px}
|
|
622
|
+
.dsh-qa-md-image-alt{color:var(--dsw-alias-label-tertiary);font-style:italic}
|
|
623
|
+
.dsh-qa-md-code{margin:16px 0;border-radius:12px;background:var(--dsw-alias-markdown-code-block,var(--dsw-alias-bg-layer-2));color:var(--dsw-alias-label-primary)}
|
|
624
|
+
.dsh-qa-md-code__banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border-radius:12px 12px 0 0;background:var(--dsw-alias-markdown-code-block-banner,var(--dsw-alias-bg-layer-3))}
|
|
625
|
+
.dsh-qa-md-code__lang{min-width:0;overflow:hidden;color:var(--dsw-alias-label-primary);font-family:var(--ds-font-family-code,ui-monospace,SFMono-Regular,Consolas,monospace);font-size:11px;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
|
|
626
|
+
.dsh-qa-md-code__copy{appearance:none;flex:none;padding:0;border:0;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:11px;line-height:18px;cursor:pointer}
|
|
627
|
+
.dsh-qa-md-code__copy:hover{color:var(--dsw-alias-label-primary)}
|
|
628
|
+
.dsh-qa-md-code__copy:focus-visible{outline:2px solid var(--dsh-qa-accent);outline-offset:2px}
|
|
629
|
+
.dsh-qa-md-code pre{overflow-x:auto;margin:0;padding:16px;border:0;border-radius:0 0 12px 12px;background:transparent;font-family:var(--ds-font-family-code,ui-monospace,SFMono-Regular,Consolas,monospace);font-size:var(--dsw-font-markdown-code-block-font-size,11px);line-height:var(--dsw-font-markdown-code-block-line-height,19px);white-space:pre-wrap;word-break:break-word}
|
|
630
|
+
.dsh-qa-md-code pre code{display:block;padding:0;border:0;background:transparent;font:inherit}
|
|
631
|
+
.dsh-qa-md-tok[data-tok="comment"]{color:var(--shiki-token-comment)}
|
|
632
|
+
.dsh-qa-md-tok[data-tok="string"]{color:var(--shiki-token-string)}
|
|
633
|
+
.dsh-qa-md-tok[data-tok="keyword"]{color:var(--shiki-token-keyword)}
|
|
634
|
+
.dsh-qa-md-tok[data-tok="number"]{color:var(--shiki-token-constant)}
|
|
635
|
+
.dsh-qa-md-tok[data-tok="constant"]{color:var(--shiki-token-constant)}
|
|
636
|
+
.dsh-qa-md-tok[data-tok="meta"]{color:var(--shiki-token-parameter)}
|
|
637
|
+
.dsh-qa-md-tok[data-tok="tag"]{color:var(--shiki-token-keyword)}
|
|
638
|
+
.dsh-qa-md-tok[data-tok="attr"]{color:var(--shiki-token-parameter)}
|
|
639
|
+
.dsh-qa-md-tok[data-tok="key"]{color:var(--shiki-token-function)}
|
|
640
|
+
.dsh-qa-md-tok[data-tok="insert"]{color:var(--dsh-qa-success)}
|
|
641
|
+
.dsh-qa-md-tok[data-tok="delete"]{color:var(--dsh-qa-error)}
|
|
642
|
+
.dsh-qa-md-tok[data-tok="hunk"]{color:var(--shiki-token-function)}
|
|
579
643
|
.dsh-qa-md-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:0 0 14px}
|
|
580
|
-
.dsh-qa-md-table table{border-collapse:collapse;width:max-content;font-size:14px}
|
|
644
|
+
.dsh-qa-md-table table{border-collapse:collapse;width:max-content;font-size:var(--dsw-font-markdown-table-font-size,14px)}
|
|
581
645
|
.dsh-qa-md-table th,.dsh-qa-md-table td{max-width:max(160px,calc(var(--dsh-qa-content-width,920px)*0.35));border:1px solid var(--dsw-alias-border-l2);padding:6px 10px;vertical-align:top;overflow-wrap:anywhere}
|
|
582
646
|
.dsh-qa-md-table thead th{background:var(--dsw-alias-bg-layer-2);font-weight:600}
|
|
583
647
|
.dsh-qa-md-table tbody tr:nth-child(even){background:var(--dsw-alias-bg-layer-2)}
|
|
584
|
-
.dsh-qa-message--assistant .dsh-qa-message__content
|
|
585
|
-
.dsh-qa-message__content blockquote{border-left:3px solid var(--dsw-alias-border-l2);padding-left:12px;color:var(--dsw-alias-label-secondary)}
|
|
648
|
+
.dsh-qa-message--assistant .dsh-qa-message__content .dsh-qa-md-code{width:calc(100% + var(--dsh-qa-bleed)*2);margin-right:calc(var(--dsh-qa-bleed)*-1);margin-left:calc(var(--dsh-qa-bleed)*-1)}
|
|
586
649
|
.dsh-qa-message__cursor{display:inline-block;width:7px;height:1em;margin-left:3px;vertical-align:-2px;background:var(--dsw-alias-label-secondary);animation:dsh-qa-blink 1s steps(2,start) infinite}
|
|
587
650
|
@keyframes dsh-qa-blink{50%{opacity:0}}
|
|
588
651
|
.dsh-qa-notice{width:100%;min-width:0;margin:-4px 0 14px;border:1px solid var(--dsw-alias-border-l2);border-radius:10px;background:var(--dsw-alias-bg-layer-2)}
|
|
@@ -596,6 +659,7 @@ a.dsh-qa-srcref:hover,button.dsh-qa-srcref:hover{border-color:var(--dsw-alias-la
|
|
|
596
659
|
.dsh-qa-notice[open] .dsh-qa-notice__chevron{transform:rotate(90deg)}
|
|
597
660
|
.dsh-qa-notice__body{padding:2px 12px 10px 32px;color:var(--dsw-alias-label-secondary);font-size:13px;line-height:20px;white-space:pre-wrap;overflow-wrap:anywhere}
|
|
598
661
|
.dsh-qa-notice__body p{margin:0}
|
|
662
|
+
.dsh-qa-notice__body .dsh-qa-md{font-size:13px;line-height:20px;white-space:pre-wrap}
|
|
599
663
|
.dsh-qa-notice__meta{margin:0 0 6px;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
600
664
|
.dsh-qa-work{width:100%;color:var(--dsw-alias-label-secondary);font-size:14px;line-height:22px}
|
|
601
665
|
.dsh-qa-work__toggle{display:flex;align-items:center;gap:7px;min-height:30px;margin:0;padding:3px 5px 3px 0;border:0;border-radius:7px;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer}
|
|
@@ -625,6 +689,9 @@ a.dsh-qa-srcref:hover,button.dsh-qa-srcref:hover{border-color:var(--dsw-alias-la
|
|
|
625
689
|
.dsh-qa-work-item__text{padding:3px 0 0 23px;color:var(--dsw-alias-label-tertiary);font-size:14px;line-height:23px;white-space:pre-wrap;overflow-wrap:anywhere}
|
|
626
690
|
.dsh-qa-work-item__text p,.dsh-qa-work-item__text ul,.dsh-qa-work-item__text pre{margin:0 0 9px}
|
|
627
691
|
.dsh-qa-work-item__text :last-child{margin-bottom:0}
|
|
692
|
+
/* Reasoning keeps its authored line breaks: the process log reads as the
|
|
693
|
+
model wrote it, not as reflowed prose. */
|
|
694
|
+
.dsh-qa-work-item__text .dsh-qa-md{font-size:14px;line-height:23px;white-space:pre-wrap}
|
|
628
695
|
.dsh-qa-work-tool__body{margin:0 6px 7px 29px;overflow:hidden;border:1px solid var(--dsw-alias-border-l2);border-radius:9px;background:var(--dsw-alias-bg-layer-2)}
|
|
629
696
|
.dsh-qa-work-tool__body section+section{border-top:1px solid var(--dsw-alias-border-l2)}
|
|
630
697
|
.dsh-qa-work-tool__body section>span{display:block;padding:7px 10px 0;color:var(--dsw-alias-label-tertiary);font-size:11px;font-weight:600;line-height:18px;text-transform:uppercase;letter-spacing:.04em}
|
|
@@ -674,6 +741,11 @@ a.dsh-qa-srcref:hover,button.dsh-qa-srcref:hover{border-color:var(--dsw-alias-la
|
|
|
674
741
|
.dsh-qa-question__button:focus-visible{outline:2px solid var(--dsh-qa-info);outline-offset:1px}
|
|
675
742
|
.dsh-qa-question__button--primary{border-color:transparent;background:var(--dsh-qa-accent);color:var(--dsh-qa-accent-contrast)}
|
|
676
743
|
.dsh-qa-question__button--primary:hover:not(:disabled){background:var(--dsh-qa-accent-hover)}
|
|
744
|
+
.dsh-qa-questions__bar{display:flex;align-items:center;justify-content:space-between;gap:8px}
|
|
745
|
+
.dsh-qa-questions__note{min-width:0;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:17px}
|
|
746
|
+
.dsh-qa-question__button--stop{display:inline-flex;align-items:center;gap:6px;flex:none}
|
|
747
|
+
.dsh-qa-question__button--stop svg{width:13px;height:13px;flex:none;fill:currentColor}
|
|
748
|
+
.dsh-qa-composer-slot[hidden]{display:none}
|
|
677
749
|
.dsh-qa-footer{position:relative;flex:none;padding:28px 16px max(12px,env(safe-area-inset-bottom));background:linear-gradient(180deg,color-mix(in srgb,var(--dsw-alias-bg-base) 0%,transparent) 0,var(--dsw-alias-bg-base) 28px)}
|
|
678
750
|
.dsh-qa-footer__inner{width:100%;max-width:var(--dsh-qa-content-width);margin:0 auto}
|
|
679
751
|
.dsh-qa-composer-wrap{display:flex;flex-direction:column;gap:10px;width:100%}
|
|
@@ -708,6 +780,28 @@ a.dsh-qa-srcref:hover,button.dsh-qa-srcref:hover{border-color:var(--dsw-alias-la
|
|
|
708
780
|
.dsh-qa-composer__attach:disabled{opacity:.4;cursor:default}
|
|
709
781
|
.dsh-qa-composer__attach:focus-visible{outline:2px solid var(--dsh-qa-accent);outline-offset:1px}
|
|
710
782
|
.dsh-qa-composer__attach svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
|
|
783
|
+
.dsh-qa-slash{display:flex;flex-direction:column;gap:2px;width:100%;max-height:min(46vh,320px);overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid var(--dsw-alias-border-l2);border-radius:16px;background:var(--dsw-alias-bg-layer-2);box-shadow:var(--dsw-shadow-lv2)}
|
|
784
|
+
.dsh-qa-slash__empty,.dsh-qa-slash__hint{margin:0;padding:8px 10px;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}
|
|
785
|
+
.dsh-qa-slash__group{display:flex;flex-direction:column;gap:2px}
|
|
786
|
+
.dsh-qa-slash__group-title{margin:6px 0 2px;padding:0 10px;color:var(--dsw-alias-label-tertiary);font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
|
|
787
|
+
.dsh-qa-slash__row{display:flex;flex-direction:column;gap:2px;min-width:0;padding:7px 10px;border-radius:10px;cursor:pointer}
|
|
788
|
+
.dsh-qa-slash__row--active{background:var(--dsw-alias-interactive-bg-hover)}
|
|
789
|
+
.dsh-qa-slash__head{display:flex;align-items:center;gap:8px;min-width:0}
|
|
790
|
+
.dsh-qa-slash__name{color:var(--dsw-alias-label-primary);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;font-weight:600;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
791
|
+
.dsh-qa-slash__kind{flex:none;padding:1px 7px;border-radius:999px;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);font-size:10px;font-weight:500;line-height:15px}
|
|
792
|
+
.dsh-qa-slash__kind--command{background:color-mix(in srgb,var(--dsh-qa-accent) 16%,var(--dsw-alias-bg-module-platform))}
|
|
793
|
+
.dsh-qa-slash__description{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
794
|
+
.dsh-qa-command{display:flex;flex-direction:column;gap:3px;margin:0 0 14px;padding:8px 12px;border-left:2px solid var(--dsw-alias-border-l2);border-radius:0 10px 10px 0;background:var(--dsw-alias-bg-layer-3)}
|
|
795
|
+
.dsh-qa-command[data-state="error"]{border-left-color:var(--dsh-qa-error)}
|
|
796
|
+
.dsh-qa-command__line{display:flex;align-items:baseline;gap:8px;min-width:0}
|
|
797
|
+
.dsh-qa-command__name{color:var(--dsw-alias-label-primary);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;font-weight:600;line-height:18px}
|
|
798
|
+
.dsh-qa-command__args{color:var(--dsw-alias-label-secondary);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
799
|
+
.dsh-qa-command__state{display:flex;align-items:center;gap:6px;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:17px;overflow-wrap:anywhere}
|
|
800
|
+
.dsh-qa-command__state svg{flex:none;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
|
|
801
|
+
.dsh-qa-command[data-state="success"] .dsh-qa-command__state svg{stroke:var(--dsh-qa-accent)}
|
|
802
|
+
.dsh-qa-command[data-state="error"] .dsh-qa-command__state{color:var(--dsh-qa-error)}
|
|
803
|
+
.dsh-qa-command__spinner{flex:none;width:11px;height:11px;border:1.5px solid var(--dsw-alias-label-dimmed);border-top-color:var(--dsh-qa-accent);border-radius:999px;animation:dsh-qa-command-spin .7s linear infinite}
|
|
804
|
+
@keyframes dsh-qa-command-spin{to{transform:rotate(360deg)}}
|
|
711
805
|
.dsh-qa-composer{display:flex;flex-direction:column;gap:10px;width:100%;min-height:94px;padding:14px 10px 8px 16px;border:1px solid var(--dsw-alias-border-l2-darkmode-thin);border-radius:22px;background:var(--dsw-specific-input-major);box-shadow:var(--dsw-shadow-lv2);transition:border-color .12s,box-shadow .12s}
|
|
712
806
|
.dsh-qa-composer:focus-within{border-color:var(--dsh-qa-accent)}
|
|
713
807
|
.dsh-qa-composer textarea{display:block;width:100%;min-height:28px;max-height:168px;resize:none;overflow-y:auto;border:0;outline:0;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:16px;line-height:24px;padding:0 6px 0 0;caret-color:var(--dsh-qa-accent)}
|
|
@@ -727,7 +821,17 @@ a.dsh-qa-srcref:hover,button.dsh-qa-srcref:hover{border-color:var(--dsw-alias-la
|
|
|
727
821
|
@media (max-width:760px){.dsh-qa-admin__header{min-height:56px;padding:8px 14px}.dsh-qa-admin__layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.dsh-qa-admin__layout>nav{flex-direction:row;overflow-x:auto;padding:8px;border-right:0;border-bottom:1px solid var(--dsw-alias-border-l2)}.dsh-qa-admin__layout>nav strong{display:none}.dsh-qa-admin__layout>nav button{white-space:nowrap}.dsh-qa-admin__content,.dsh-qa-role-editor{padding:20px 14px 76px}.dsh-qa-admin__title-row{flex-direction:column}.dsh-qa-role-grid{grid-template-columns:1fr}.dsh-qa-role-editor__general{grid-template-columns:1fr}.dsh-qa-role-editor__wide{grid-column:auto}.dsh-qa-admin__savebar{bottom:-76px;margin:24px -14px -76px;padding:10px 14px}.dsh-qa-admin__savebar>span{display:none}.dsh-qa-audit li{grid-template-columns:1fr 1fr}.dsh-qa-capabilities__toolbar{align-items:stretch;flex-direction:column}.dsh-qa-capabilities__toolbar>input{width:100%}}
|
|
728
822
|
@media (max-width:600px){.dsh-qa-sidebar{display:none}.dsh-qa-panel,.dsh-qa-agents{position:absolute;inset:0;z-index:6;width:100%;border-left:0}.dsh-qa-header__inner{padding-left:16px;padding-right:16px}.dsh-qa-header h1{max-width:48vw}.dsh-qa-header__mode{font-size:12px}.dsh-qa-width-handle{display:none}.dsh-qa-transcript__inner{--dsh-qa-bleed:0px;max-width:100%;padding:16px 16px 28px}.dsh-qa-footer__inner{max-width:100%}.dsh-qa-message{margin-bottom:16px}.dsh-qa-message--user .dsh-qa-message__content{max-width:88%;font-size:15px}.dsh-qa-message__content{font-size:14px}.dsh-qa-footer{padding-left:10px;padding-right:10px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.dsh-qa-composer{min-height:84px;padding-top:12px}.dsh-qa-composer__hint{font-size:0}.dsh-qa-composer__hint::after{content:"Enter: отправить";font-size:11px}}
|
|
729
823
|
@media (max-height:480px) and (orientation:landscape){.dsh-qa-header__inner{padding-top:6px}.dsh-qa-header__tabs{display:none}.dsh-qa-transcript__inner{padding-top:12px}.dsh-qa-footer{padding-top:12px}.dsh-qa-composer{min-height:72px;gap:4px;padding-top:8px}}
|
|
730
|
-
@media (prefers-reduced-motion:reduce){.dsh-qa-message__cursor,.dsh-qa-message__pending-spinner,.dsh-qa-work__spinner,.dsh-qa-work-item__spinner{animation:none}.dsh-qa-work__chevron{transition:none}.dsh-qa-rail__frame,.dsh-qa-rail__pos,.dsh-qa-rail__mark::before,.dsh-qa-rail__mark--busy::before,.dsh-qa-rail__preview{transition:none;animation:none}}
|
|
824
|
+
@media (prefers-reduced-motion:reduce){.dsh-qa-message__cursor,.dsh-qa-message__pending-spinner,.dsh-qa-work__spinner,.dsh-qa-work-item__spinner,.dsh-qa-command__spinner{animation:none}.dsh-qa-work__chevron{transition:none}.dsh-qa-rail__frame,.dsh-qa-rail__pos,.dsh-qa-rail__mark::before,.dsh-qa-rail__mark--busy::before,.dsh-qa-rail__preview{transition:none;animation:none}}
|
|
731
825
|
${QA_ADMIN_CONSOLE_STYLES}
|
|
732
826
|
`;
|
|
827
|
+
/**
|
|
828
|
+
* Everything the QA overlay paints, as one sheet for one `<style>` tag.
|
|
829
|
+
*
|
|
830
|
+
* The shared audit components keep their own stylesheet in
|
|
831
|
+
* `@yadsh/dsh-audit-ui`; it is folded in here so the overlay is self-contained
|
|
832
|
+
* — the audit dialog must look right whether or not the audit plugin's own
|
|
833
|
+
* client bundle happens to have injected the same rules into the document.
|
|
834
|
+
*/
|
|
835
|
+
export const QA_OVERLAY_STYLES = `${QA_SURFACE_STYLES}
|
|
836
|
+
${AUDIT_UI_STYLES}`;
|
|
733
837
|
//# sourceMappingURL=styles.js.map
|
package/lib/client/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/client/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/client/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,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,iBAAiB;EACnD,eAAe,EAAE,CAAC"}
|
package/lib/client/types.js
CHANGED
|
@@ -15,5 +15,16 @@ export const QA_SESSION_IDLE_STATE = Object.freeze({
|
|
|
15
15
|
viewingSubagent: null,
|
|
16
16
|
approvals: Object.freeze([]),
|
|
17
17
|
questions: Object.freeze([]),
|
|
18
|
+
// Idle means no chat, so there is nothing for a slash line to act on; the
|
|
19
|
+
// controller fills this in once a session binds.
|
|
20
|
+
slash: Object.freeze({
|
|
21
|
+
enabled: false,
|
|
22
|
+
state: "idle",
|
|
23
|
+
entries: Object.freeze([]),
|
|
24
|
+
commandSurface: "unavailable",
|
|
25
|
+
deniedSkills: Object.freeze([]),
|
|
26
|
+
error: null,
|
|
27
|
+
reopen: 0,
|
|
28
|
+
}),
|
|
18
29
|
});
|
|
19
30
|
//# sourceMappingURL=types.js.map
|
package/lib/client/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/client/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/client/types.ts"],"names":[],"mappings":"AA+cA,iFAAiF;AACjF,MAAM,CAAC,MAAM,qBAAqB,GAAmB,MAAM,CAAC,MAAM,CAAC;IACjE,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;IAC3B,cAAc,EAAE,IAAI;IACpB,KAAK,EAAE,IAAI;IACX,qBAAqB,EAAE,KAAK;IAC5B,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,KAAK;IACd,aAAa,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;IAC1B,eAAe,EAAE,IAAI;IACrB,uBAAuB,EAAE,SAAS;IAClC,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;IAC5B,0EAA0E;IAC1E,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1B,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC/B,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,CAAC;KACV,CAAC;CACH,CAAC,CAAC"}
|