@qianhaoq/dsh-dota2ai 0.2.7 → 0.2.9
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/lib/client.js +169 -93
- package/lib/index.js +86 -49
- package/package.json +1 -1
- package/skills/dota2ai/SKILL.md +1 -7
package/lib/client.js
CHANGED
|
@@ -478,7 +478,7 @@ async function fetchPatchNews(signal, fresh = false) {
|
|
|
478
478
|
var coach_default = "/* ==========================================================================\n dota2.ai \u2014 Obsidian Aegis Design System & Global Shell (.cx)\n ========================================================================== */\n\n.cx {\n --ink: #07090d;\n --panel: #0e1219;\n --panel-2: #141a24;\n --panel-3: #1b2330;\n --inset: #05070a;\n --edge: rgba(229, 174, 78, 0.28);\n --line: rgba(226, 234, 245, 0.08);\n --line-2: rgba(226, 234, 245, 0.15);\n --line-strong: rgba(226, 234, 245, 0.25);\n\n --text: #f1f4f9;\n --text-2: #a9b4c4;\n --text-3: #8794a7;\n\n --fs-display: 28px;\n --fs-h: 18px;\n --fs-body: 15px;\n --fs-meta: 13px;\n\n --accent: #e5ae4e;\n --accent-bright: #f2c068;\n --accent-soft: rgba(229, 174, 78, 0.12);\n --accent-ink: #171003;\n\n --radiant: #52c972;\n --radiant-soft: rgba(82, 201, 114, 0.12);\n --dire: #e86452;\n --dire-soft: rgba(232, 100, 82, 0.12);\n --good: #52c972;\n --fix: #e5ae4e;\n --ally: #68b5e8;\n\n --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Noto Serif SC', 'Songti SC', serif;\n --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;\n --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n\n --radius-lg: 16px;\n --radius-md: 12px;\n --radius-sm: 8px;\n --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 36px -10px rgba(0, 0, 0, 0.55);\n --shadow-float: 0 24px 64px -12px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.04);\n\n height: var(--app-height, 100dvh);\n overflow-y: auto;\n overflow-x: hidden;\n background:\n radial-gradient(1100px 460px at 12% -8%, rgba(82, 201, 114, 0.065), transparent 62%),\n radial-gradient(900px 420px at 50% -12%, rgba(229, 174, 78, 0.055), transparent 58%),\n radial-gradient(1100px 460px at 88% -8%, rgba(232, 100, 82, 0.065), transparent 62%),\n var(--ink);\n color: var(--text);\n font-family: var(--sans);\n font-size: var(--fs-body);\n line-height: 1.6;\n -webkit-font-smoothing: antialiased;\n font-feature-settings: 'tnum' 1, 'cv02' 1, 'cv03' 1, 'cv04' 1;\n display: flex;\n flex-direction: column;\n}\n\n.cx *,\n.cx *::before,\n.cx *::after {\n box-sizing: border-box;\n}\n\n.cx a {\n color: inherit;\n}\n\n.cx button {\n font: inherit;\n color: inherit;\n cursor: pointer;\n}\n\n.cx :focus-visible {\n outline: 2px solid var(--accent);\n outline-offset: 2px;\n border-radius: 6px;\n}\n\n.cx-mono {\n font-family: var(--mono);\n font-variant-numeric: tabular-nums;\n}\n\n.cx-sr {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n}\n\n/* --------------------------------------------------------------------------\n Global Top Command Bar & Footer\n -------------------------------------------------------------------------- */\n\n.cx-top {\n position: sticky;\n top: 0;\n z-index: 20;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 12px clamp(16px, 4vw, 44px);\n background: rgba(7, 9, 13, 0.8);\n backdrop-filter: blur(16px) saturate(140%);\n -webkit-backdrop-filter: blur(16px) saturate(140%);\n border-bottom: 1px solid var(--line);\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);\n}\n\n.cx-brand {\n display: inline-flex;\n align-items: center;\n gap: 9px;\n text-decoration: none;\n font-weight: 600;\n letter-spacing: -0.015em;\n font-size: 17px;\n color: var(--text);\n padding: 4px 2px;\n border-radius: 8px;\n}\n\n.cx-brand:hover .cx-mark-svg {\n transform: rotate(45deg) scale(1.05);\n filter: drop-shadow(0 0 8px rgba(229, 174, 78, 0.45));\n}\n\n.cx-mark-svg {\n color: var(--accent);\n flex: none;\n transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), filter 240ms ease;\n}\n\n.cx-brand-word {\n display: inline-flex;\n align-items: baseline;\n}\n\n.cx-dot {\n color: var(--accent);\n font-weight: 500;\n}\n\n.cx-brand-sub {\n margin-left: 2px;\n padding: 1px 8px;\n border-radius: 999px;\n border: 1px solid var(--line-2);\n background: rgba(255, 255, 255, 0.03);\n font-family: var(--serif);\n font-style: italic;\n font-weight: 400;\n font-size: 13px;\n line-height: 1.4;\n color: var(--text-2);\n letter-spacing: 0.01em;\n}\n\n.cx-top-right {\n display: flex;\n align-items: center;\n gap: 10px;\n min-width: 0;\n}\n\n.cx-top-link {\n display: inline-flex;\n align-items: center;\n height: 32px;\n padding: 0 12px;\n border-radius: 999px;\n border: 1px solid transparent;\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--text-2);\n text-decoration: none;\n white-space: nowrap;\n}\n\n.cx-top-link:hover {\n color: var(--text);\n background: var(--panel-2);\n border-color: var(--line-2);\n}\n\n/* Language Switcher */\n.cx-lang {\n display: inline-flex;\n align-items: center;\n gap: 2px;\n background: var(--panel);\n border: 1px solid var(--line-2);\n border-radius: 999px;\n padding: 2px;\n}\n\n.cx-lang button {\n background: none;\n border: 0;\n padding: 4px 10px;\n border-radius: 999px;\n font-size: 12px;\n font-weight: 500;\n color: var(--text-2);\n line-height: 1.35;\n}\n\n.cx-lang button:hover {\n color: var(--text);\n}\n\n.cx-lang button[aria-pressed='true'] {\n background: var(--text);\n color: var(--ink);\n font-weight: 600;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);\n}\n\n/* Main Content Frame & Footer */\n.cx-main {\n flex: 1 0 auto;\n width: 100%;\n max-width: 880px;\n margin: 0 auto;\n padding: 0 clamp(16px, 4vw, 44px) 56px;\n}\n\n.cx-main--wide {\n max-width: 1240px;\n}\n\n.cx-foot {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 14px 24px;\n flex-wrap: wrap;\n width: 100%;\n max-width: 1240px;\n margin: 0 auto;\n padding: 26px clamp(16px, 4vw, 44px) 38px;\n color: var(--text-3);\n font-size: var(--fs-meta);\n border-top: 1px solid var(--line);\n}\n\n.cx-foot-links {\n display: flex;\n flex-wrap: wrap;\n gap: 8px 18px;\n}\n\n.cx-foot-links a {\n color: var(--text-2);\n text-decoration: none;\n border-bottom: 1px solid transparent;\n padding-bottom: 1px;\n}\n\n.cx-foot-links a:hover {\n color: var(--accent);\n border-bottom-color: var(--accent);\n}\n\n/* --------------------------------------------------------------------------\n Shared Typography, Buttons, Inputs & Pills\n -------------------------------------------------------------------------- */\n\n.cx-eyebrow {\n margin: 0;\n color: var(--text-3);\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n}\n\n.cx-muted {\n color: var(--text-3);\n font-size: var(--fs-meta);\n margin: 6px 0 0;\n}\n\n.cx-primary {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n background: linear-gradient(180deg, var(--accent-bright), var(--accent));\n color: var(--accent-ink);\n border: 0;\n border-radius: 10px;\n padding: 10px 20px;\n font-weight: 600;\n font-size: var(--fs-body);\n white-space: nowrap;\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(229, 174, 78, 0.22);\n}\n\n.cx-primary:hover:not(:disabled) {\n filter: brightness(1.06);\n transform: translateY(-1px);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 20px rgba(229, 174, 78, 0.32);\n}\n\n.cx-primary:disabled {\n opacity: 0.48;\n cursor: not-allowed;\n transform: none;\n}\n\n.cx-ghost {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n background: rgba(255, 255, 255, 0.02);\n border: 1px solid var(--line-2);\n border-radius: 999px;\n padding: 6px 14px;\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--text-2);\n white-space: nowrap;\n}\n\n.cx-ghost:hover {\n color: var(--text);\n background: var(--panel-2);\n border-color: var(--line-strong);\n}\n\n.cx-linkbtn {\n background: none;\n border: 0;\n padding: 0;\n color: var(--accent);\n font: inherit;\n font-size: var(--fs-meta);\n font-weight: 500;\n text-decoration: underline;\n text-decoration-color: rgba(229, 174, 78, 0.4);\n text-underline-offset: 3px;\n cursor: pointer;\n}\n\n.cx-linkbtn:hover {\n color: var(--accent-bright);\n text-decoration-color: var(--accent-bright);\n}\n\n.cx-input-clear {\n flex: none;\n display: inline-grid;\n place-items: center;\n width: 26px;\n height: 26px;\n border-radius: 50%;\n border: 0;\n background: rgba(255, 255, 255, 0.07);\n color: var(--text-2);\n font-size: 12px;\n line-height: 1;\n}\n\n.cx-input-clear:hover {\n background: rgba(255, 255, 255, 0.14);\n color: var(--text);\n}\n\n.cx-err {\n color: var(--dire);\n margin: 10px 2px 0;\n font-size: var(--fs-meta);\n font-weight: 500;\n}\n\n.cx-notice {\n margin: 16px 0;\n padding: 12px 16px;\n border-radius: var(--radius-md);\n background: rgba(229, 174, 78, 0.08);\n border: 1px solid rgba(229, 174, 78, 0.28);\n color: var(--text);\n font-size: var(--fs-body);\n}\n\n.cx-notice--error {\n background: var(--dire-soft);\n border-color: rgba(232, 100, 82, 0.35);\n}\n\n.cx-detect-pill {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 2px 10px;\n border-radius: 999px;\n font-size: 12px;\n font-weight: 500;\n border: 1px solid var(--line-2);\n color: var(--text-2);\n background: rgba(255, 255, 255, 0.03);\n}\n\n.cx-detect-pill.is-match {\n color: var(--accent);\n border-color: rgba(229, 174, 78, 0.45);\n background: var(--accent-soft);\n}\n\n.cx-detect-pill.is-account {\n color: var(--good);\n border-color: rgba(82, 201, 114, 0.45);\n background: var(--radiant-soft);\n}\n\n.cx-tag {\n display: inline-flex;\n align-items: center;\n margin-left: 8px;\n padding: 1px 8px;\n border: 1px solid var(--line-2);\n border-radius: 999px;\n font-size: 11px;\n font-weight: 500;\n color: var(--text-2);\n background: rgba(255, 255, 255, 0.03);\n vertical-align: middle;\n}\n\n.cx-tag--new {\n color: var(--accent);\n border-color: rgba(229, 174, 78, 0.45);\n background: var(--accent-soft);\n}\n\n.cx-goal-result {\n display: inline-flex;\n align-items: center;\n padding: 1px 9px;\n border-radius: 999px;\n border: 1px solid var(--line-2);\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.01em;\n}\n\n.cx-goal-result.is-met {\n color: var(--good);\n border-color: rgba(82, 201, 114, 0.45);\n background: var(--radiant-soft);\n}\n\n.cx-goal-result.is-missed {\n color: var(--dire);\n border-color: rgba(232, 100, 82, 0.45);\n background: var(--dire-soft);\n}\n\n.cx-goal-result.is-no_opportunity,\n.cx-goal-result.is-unknown {\n color: var(--text-3);\n background: rgba(255, 255, 255, 0.02);\n}\n\n.cx-img-missing {\n display: block;\n width: 100%;\n aspect-ratio: 88 / 64;\n border-radius: 6px;\n background: rgba(255, 255, 255, 0.05);\n}\n\n/* --------------------------------------------------------------------------\n QuickJump Command Palette (\u2318K) & Goal Nav Popover\n -------------------------------------------------------------------------- */\n\n.cx-qj-trigger {\n display: inline-flex;\n align-items: center;\n gap: 7px;\n height: 32px;\n background: var(--panel);\n border: 1px solid var(--line-2);\n border-radius: 999px;\n padding: 0 10px 0 11px;\n font-size: var(--fs-meta);\n color: var(--text-2);\n white-space: nowrap;\n}\n\n.cx-qj-trigger:hover {\n border-color: rgba(229, 174, 78, 0.5);\n background: var(--panel-2);\n color: var(--text);\n}\n\n.cx-qj-icon {\n color: var(--text-3);\n flex: none;\n}\n\n.cx-kbd {\n font-family: var(--mono);\n font-size: 11px;\n color: var(--text-3);\n background: var(--panel-2);\n border: 1px solid var(--line-2);\n border-radius: 5px;\n padding: 1px 6px;\n line-height: 1.4;\n}\n\n@keyframes cx-fade-in {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n@keyframes cx-pop-in {\n from { opacity: 0; transform: translateY(-8px) scale(0.98); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n}\n\n.cx-modal-backdrop {\n position: fixed;\n inset: 0;\n z-index: 50;\n background: rgba(4, 6, 10, 0.76);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n display: grid;\n place-items: start center;\n padding: clamp(56px, 12vh, 112px) 16px 24px;\n animation: cx-fade-in 140ms ease-out;\n}\n\n.cx-modal {\n width: 100%;\n max-width: 560px;\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line-2);\n border-radius: var(--radius-lg);\n padding: 20px 22px;\n box-shadow: var(--shadow-float);\n animation: cx-pop-in 180ms cubic-bezier(0.16, 1, 0.3, 1);\n}\n\n.cx-modal-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n margin-bottom: 14px;\n}\n\n.cx-modal-head h2 {\n margin: 0;\n font-family: var(--serif);\n font-weight: 500;\n font-size: 20px;\n letter-spacing: -0.01em;\n}\n\n.cx-modal-head-right {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n.cx-modal-close {\n display: inline-grid;\n place-items: center;\n background: rgba(255, 255, 255, 0.03);\n border: 1px solid var(--line-2);\n border-radius: 8px;\n width: 30px;\n height: 30px;\n color: var(--text-2);\n font-size: 13px;\n}\n\n.cx-modal-close:hover {\n color: var(--text);\n background: var(--panel-3);\n border-color: var(--line-strong);\n}\n\n.cx-qj-modes {\n display: inline-flex;\n gap: 4px;\n padding: 3px;\n background: var(--inset);\n border: 1px solid var(--line);\n border-radius: 10px;\n margin-bottom: 14px;\n}\n\n.cx-qj-modes button {\n background: none;\n border: 0;\n border-radius: 7px;\n padding: 5px 14px;\n font-size: var(--fs-meta);\n color: var(--text-2);\n}\n\n.cx-qj-modes button:hover {\n color: var(--text);\n}\n\n.cx-qj-modes button[aria-selected='true'] {\n background: var(--panel-2);\n color: var(--text);\n font-weight: 600;\n box-shadow: inset 0 0 0 1px var(--line-2);\n}\n\n.cx-qj-form {\n display: flex;\n gap: 8px;\n}\n\n.cx-qj-field {\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n background: var(--inset);\n border: 1px solid var(--line-2);\n border-radius: 10px;\n padding: 0 10px 0 12px;\n}\n\n.cx-qj-field:focus-within {\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(229, 174, 78, 0.14);\n}\n\n.cx-qj-field-icon {\n color: var(--text-3);\n flex: none;\n}\n\n.cx-qj-field input {\n flex: 1;\n min-width: 0;\n background: none;\n border: 0;\n outline: none;\n padding: 10px 0;\n color: var(--text);\n font: inherit;\n font-size: var(--fs-body);\n}\n\n.cx-qj-field input::placeholder {\n color: var(--text-3);\n}\n\n.cx-qj-form + .cx-detect-pill {\n margin-top: 10px;\n}\n\n.cx-qj-links {\n display: flex;\n flex-wrap: wrap;\n gap: 8px 16px;\n margin-top: 16px;\n padding-top: 14px;\n border-top: 1px solid var(--line);\n}\n\n/* Goal Nav Pill & Popover */\n.cx-goal-nav {\n position: relative;\n}\n\n.cx-goal-pill {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n height: 32px;\n background: var(--radiant-soft);\n border: 1px solid rgba(82, 201, 114, 0.38);\n border-radius: 999px;\n padding: 0 11px;\n font-size: 12px;\n font-weight: 600;\n color: var(--good);\n white-space: nowrap;\n}\n\n.cx-goal-pill:hover {\n border-color: rgba(82, 201, 114, 0.65);\n background: rgba(82, 201, 114, 0.18);\n}\n\n.cx-goal-dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--good);\n box-shadow: 0 0 8px var(--good);\n}\n\n.cx-popover {\n position: absolute;\n right: 0;\n top: calc(100% + 8px);\n z-index: 30;\n width: 300px;\n max-width: calc(100vw - 32px);\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line-2);\n border-radius: var(--radius-md);\n padding: 16px;\n box-shadow: var(--shadow-float);\n animation: cx-pop-in 150ms cubic-bezier(0.16, 1, 0.3, 1);\n}\n\n.cx-goal-pop-label {\n margin: 6px 0 0;\n font-size: var(--fs-body);\n line-height: 1.45;\n}\n\n.cx-goal-pop-actions {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 12px;\n padding-top: 10px;\n border-top: 1px solid var(--line);\n font-size: var(--fs-meta);\n}\n\n.cx-goal-pop-actions a {\n color: var(--accent);\n font-weight: 500;\n text-decoration: none;\n}\n\n.cx-goal-pop-actions a:hover {\n text-decoration: underline;\n}\n\n/* --------------------------------------------------------------------------\n Player Hub (/p/:accountId)\n -------------------------------------------------------------------------- */\n\n.cx-recent {\n padding-top: 32px;\n}\n\n.cx-recent-head {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n justify-content: space-between;\n gap: 14px;\n margin-bottom: 22px;\n}\n\n.cx-recent .cx-h2 {\n font-family: var(--serif);\n font-weight: 500;\n font-size: clamp(26px, 3.6vw, 36px);\n line-height: 1.15;\n letter-spacing: -0.015em;\n margin: 6px 0 0;\n}\n\n/* Player Performance Summary Strip */\n.pl-stats {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));\n gap: 12px;\n margin-bottom: 20px;\n}\n\n.pl-stat {\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line);\n border-radius: var(--radius-md);\n padding: 14px 16px;\n box-shadow: var(--shadow-card);\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.pl-stat-k {\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n color: var(--text-3);\n}\n\n.pl-stat-row {\n display: flex;\n align-items: baseline;\n gap: 8px;\n}\n\n.pl-stat-v {\n font-family: var(--mono);\n font-size: 22px;\n font-weight: 600;\n color: var(--text);\n line-height: 1.2;\n}\n\n.pl-stat-sub {\n font-family: var(--mono);\n font-size: 12px;\n color: var(--text-2);\n}\n\n.pl-wr-bar {\n height: 4px;\n margin-top: 4px;\n border-radius: 999px;\n background: rgba(232, 100, 82, 0.35);\n overflow: hidden;\n}\n\n.pl-wr-bar span {\n display: block;\n height: 100%;\n background: var(--radiant);\n border-radius: 999px;\n}\n\n/* Player Active Goal Card */\n.cx-goal {\n margin: 0 0 22px;\n padding: 16px 18px;\n background: linear-gradient(180deg, rgba(82, 201, 114, 0.08), var(--panel));\n border: 1px solid rgba(82, 201, 114, 0.3);\n border-left: 3px solid var(--good);\n border-radius: var(--radius-md);\n box-shadow: var(--shadow-card);\n}\n\n.cx-goal .cx-eyebrow {\n margin: 0 0 6px;\n color: var(--good);\n}\n\n.cx-goal-label {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px 12px;\n margin: 0;\n font-size: 16px;\n}\n\n.cx-goal-ev,\n.cx-goal-tally {\n margin: 6px 0 0;\n color: var(--text-2);\n font-size: var(--fs-meta);\n}\n\n.cx-recent-goal-top {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 14px;\n}\n\n.pl-progress {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-top: 8px;\n}\n\n.pl-bar {\n flex: 0 0 180px;\n height: 6px;\n border-radius: 999px;\n background: var(--line-2);\n overflow: hidden;\n}\n\n.pl-bar span {\n display: block;\n height: 100%;\n background: var(--good);\n border-radius: 999px;\n}\n\n.pl-progress .cx-goal-tally {\n margin: 0;\n}\n\n/* Filter Bar & Hero Filter Chips */\n.cx-recent-controls {\n display: grid;\n gap: 10px;\n margin-bottom: 16px;\n}\n\n.cx-filter-bar {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.cx-filter-pill {\n background: var(--panel);\n border: 1px solid var(--line);\n border-radius: 999px;\n padding: 5px 13px;\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--text-2);\n}\n\n.cx-filter-pill:hover {\n color: var(--text);\n border-color: var(--line-2);\n background: var(--panel-2);\n}\n\n.cx-filter-pill.is-on {\n border-color: rgba(229, 174, 78, 0.6);\n color: var(--accent);\n background: var(--accent-soft);\n}\n\n.cx-hero-filters {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.cx-hero-chip {\n display: inline-flex;\n align-items: center;\n gap: 7px;\n background: var(--panel);\n border: 1px solid var(--line);\n border-radius: 999px;\n padding: 4px 12px 4px 5px;\n font-size: var(--fs-meta);\n color: var(--text-2);\n}\n\n.cx-hero-chip:hover {\n color: var(--text);\n border-color: var(--line-2);\n background: var(--panel-2);\n}\n\n.cx-hero-chip img {\n width: 22px;\n height: 22px;\n border-radius: 50%;\n object-fit: cover;\n background: var(--panel-2);\n}\n\n.cx-hero-chip[data-count]::after {\n content: attr(data-count);\n font-family: var(--mono);\n font-size: 11px;\n color: var(--text-3);\n}\n\n.cx-hero-chip.is-on {\n border-color: rgba(229, 174, 78, 0.6);\n color: var(--text);\n background: var(--accent-soft);\n}\n\n/* Match History List & Rows */\n.cx-recent-empty {\n color: var(--text-2);\n background: var(--panel);\n border: 1px solid var(--line);\n border-radius: var(--radius-md);\n padding: 20px;\n}\n\n.cx-recent-list {\n list-style: none;\n margin: 0 0 20px;\n padding: 0;\n border: 1px solid var(--line);\n border-radius: var(--radius-md);\n background: var(--panel);\n overflow: hidden;\n box-shadow: var(--shadow-card);\n}\n\n.cx-recent-list li + li {\n border-top: 1px solid var(--line);\n}\n\n.cx-recent-row {\n position: relative;\n display: grid;\n grid-template-columns: 46px minmax(0, 1fr) auto auto 20px;\n grid-template-areas:\n 'icon hero result kda arrow'\n 'icon meta meta kda arrow';\n align-items: center;\n gap: 2px 14px;\n padding: 12px 16px;\n color: var(--text);\n text-decoration: none;\n border-left: 3px solid transparent;\n background: transparent;\n}\n\n.cx-recent-row::after {\n content: '\u2192';\n grid-area: arrow;\n color: var(--text-3);\n font-size: 14px;\n justify-self: end;\n transition: transform 160ms ease, color 160ms ease;\n}\n\n.cx-recent-row:has(.is-win),\n.cx-recent-row.is-win {\n border-left-color: var(--radiant);\n}\n\n.cx-recent-row:has(.is-loss),\n.cx-recent-row.is-loss {\n border-left-color: var(--dire);\n}\n\n.cx-recent-row:hover,\n.cx-recent-row:focus-visible {\n background: rgba(255, 255, 255, 0.035);\n border-left-color: var(--accent);\n outline: none;\n}\n\n.cx-recent-row:hover::after,\n.cx-recent-row:focus-visible::after {\n color: var(--accent);\n transform: translateX(3px);\n}\n\n.cx-recent-icon {\n grid-area: icon;\n width: 44px;\n height: 44px;\n border-radius: 8px;\n object-fit: cover;\n background: var(--panel-2);\n border: 1px solid var(--line);\n}\n\n.cx-recent-hero {\n grid-area: hero;\n font-weight: 600;\n font-size: var(--fs-body);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.cx-recent-result {\n grid-area: result;\n font-size: 12px;\n font-weight: 600;\n padding: 2px 8px;\n border-radius: 6px;\n color: var(--text-3);\n background: rgba(255, 255, 255, 0.03);\n}\n\n.cx-recent-result.is-win {\n color: var(--radiant);\n background: var(--radiant-soft);\n}\n\n.cx-recent-result.is-loss {\n color: var(--dire);\n background: var(--dire-soft);\n}\n\n.cx-recent-kda {\n grid-area: kda;\n font-family: var(--mono);\n font-variant-numeric: tabular-nums;\n color: var(--text);\n font-size: 14px;\n font-weight: 500;\n text-align: right;\n}\n\n.cx-recent-meta {\n grid-area: meta;\n color: var(--text-3);\n font-size: 12px;\n font-variant-numeric: tabular-nums;\n}\n\n/* Loading & Error States */\n.cx-skeleton {\n padding: 120px 0;\n text-align: center;\n color: var(--text-3);\n}\n\n.cx-pulse {\n display: inline-block;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: var(--accent);\n box-shadow: 0 0 12px var(--accent);\n animation: cx-pulse 1.2s ease-in-out infinite;\n}\n\n@keyframes cx-pulse {\n 50% { opacity: 0.25; transform: scale(0.72); }\n}\n\n.cx-error {\n padding: 88px 0;\n max-width: 560px;\n}\n\n.cx-error p {\n font-family: var(--serif);\n font-size: var(--fs-display);\n line-height: 1.35;\n margin: 0 0 22px;\n}\n\n.cx-error-actions {\n display: flex;\n gap: 16px;\n align-items: center;\n}\n\n.cx-error-actions button {\n background: var(--accent);\n color: var(--accent-ink);\n border: 0;\n border-radius: 10px;\n padding: 9px 18px;\n font-weight: 600;\n}\n\n/* API Drawer Snippet Helper */\n.cx-api-drawer {\n margin-top: 36px;\n border: 1px solid var(--line);\n border-radius: var(--radius-md);\n padding: 14px 18px;\n background: var(--panel);\n}\n\n.cx-api-drawer > summary {\n cursor: pointer;\n font-size: 12px;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n color: var(--text-3);\n font-weight: 600;\n}\n\n.cx-api-drawer > summary:hover {\n color: var(--text-2);\n}\n\n.cx-api-tabs {\n display: inline-flex;\n gap: 4px;\n margin: 12px 0 8px;\n}\n\n.cx-api-tabs button {\n background: var(--inset);\n border: 1px solid var(--line);\n border-radius: 8px;\n padding: 4px 10px;\n font-size: var(--fs-meta);\n color: var(--text-2);\n}\n\n.cx-api-tabs button.is-on {\n border-color: rgba(229, 174, 78, 0.55);\n color: var(--accent);\n}\n\n.cx-api-drawer pre {\n margin: 0;\n background: var(--inset);\n border: 1px solid var(--line);\n border-radius: 10px;\n padding: 12px 14px;\n overflow-x: auto;\n font-family: var(--mono);\n font-size: var(--fs-meta);\n color: var(--text-2);\n}\n\n@media (max-width: 720px) {\n .cx-brand-sub {\n display: none;\n }\n .cx-top-right {\n gap: 6px;\n }\n .cx-qj-label,\n .cx-kbd {\n display: none;\n }\n .cx-qj-trigger {\n width: 32px;\n padding: 0;\n justify-content: center;\n }\n .cx-qj-form {\n flex-direction: column;\n }\n .cx-recent-row {\n grid-template-columns: 42px minmax(0, 1fr) auto;\n grid-template-areas:\n 'icon hero result'\n 'icon meta kda';\n gap: 3px 10px;\n padding: 11px 12px;\n }\n .cx-recent-row::after {\n display: none;\n }\n .cx-recent-icon {\n width: 40px;\n height: 40px;\n }\n .pl-bar {\n flex: 1 1 120px;\n }\n}\n";
|
|
479
479
|
|
|
480
480
|
// src/coach/cards.css
|
|
481
|
-
var cards_default = "/* ==========================================================================\n dota2.ai \u2014 Home Page: Tactical Map Hero, Omnibox, Patch Hub & Agent Bench\n ========================================================================== */\n\n/* First screen layout: Hero + Latest Game on left, 4-Step Telemetry on right */\n.hm-first {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 20px;\n margin-top: clamp(20px, 4vh, 38px);\n}\n\n@media (min-width: 1024px) {\n .hm-first {\n grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);\n align-items: stretch;\n }\n}\n\n.hm-left {\n display: flex;\n flex-direction: column;\n gap: 16px;\n min-width: 0;\n}\n\n.hm-left .hm-map {\n flex: 1 1 auto;\n}\n\n/* --------------------------------------------------------------------------\n Tactical Map Hero Card (.cx-hero.hm-map)\n -------------------------------------------------------------------------- */\n\n.cx-hero.hm-map {\n position: relative;\n overflow: hidden;\n padding: clamp(32px, 6vh, 60px) clamp(22px, 4.5vw, 52px);\n border-radius: var(--radius-lg);\n background:\n radial-gradient(640px 280px at 0% 100%, rgba(82, 201, 114, 0.11), transparent 70%),\n radial-gradient(640px 280px at 100% 0%, rgba(232, 100, 82, 0.11), transparent 70%),\n linear-gradient(180deg, #131924 0%, #0b0f16 100%);\n border: 1px solid var(--line-2);\n box-shadow: var(--shadow-card);\n display: grid;\n align-items: center;\n}\n\n@media (min-width: 1024px) {\n .hm-left .hm-map {\n min-height: clamp(410px, 55vh, 520px);\n }\n}\n\n.cx-hero.hm-map::before {\n content: '';\n position: absolute;\n left: 24px;\n right: 24px;\n top: 0;\n height: 1px;\n background: linear-gradient(90deg, transparent, rgba(229, 174, 78, 0.45), transparent);\n pointer-events: none;\n}\n\n.hm-minimap {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.hm-radiant {\n fill: rgba(82, 201, 114, 0.075);\n}\n\n.hm-dire {\n fill: rgba(232, 100, 82, 0.075);\n}\n\n.hm-grid {\n fill: none;\n stroke: rgba(226, 234, 245, 0.025);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n}\n\n.hm-lane {\n fill: none;\n stroke: rgba(226, 234, 245, 0.07);\n stroke-width: 1;\n stroke-dasharray: 4 5;\n vector-effect: non-scaling-stroke;\n}\n\n.hm-node.is-radiant {\n fill: rgba(82, 201, 114, 0.45);\n}\n\n.hm-node.is-dire {\n fill: rgba(232, 100, 82, 0.45);\n}\n\n.hm-pit {\n fill: rgba(229, 174, 78, 0.08);\n stroke: rgba(229, 174, 78, 0.25);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n}\n\n.hm-river {\n fill: none;\n stroke: rgba(104, 181, 232, 0.09);\n stroke-width: 26;\n vector-effect: non-scaling-stroke;\n stroke-linecap: round;\n transition: stroke 420ms ease, filter 420ms ease;\n}\n\n.hm-map[data-state='match'] .hm-river {\n stroke: rgba(229, 174, 78, 0.2);\n filter: drop-shadow(0 0 16px rgba(229, 174, 78, 0.35));\n}\n\n.hm-map[data-state='account'] .hm-river {\n stroke: rgba(82, 201, 114, 0.2);\n filter: drop-shadow(0 0 16px rgba(82, 201, 114, 0.35));\n}\n\n.hm-core {\n position: relative;\n z-index: 1;\n min-width: 0;\n width: 100%;\n max-width: 640px;\n}\n\n.hm-badge {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 4px 12px;\n border-radius: 999px;\n border: 1px solid rgba(229, 174, 78, 0.28);\n background: rgba(7, 9, 13, 0.55);\n color: var(--accent);\n font-size: 11px;\n letter-spacing: 0.1em;\n}\n\n.hm-badge-dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--accent);\n box-shadow: 0 0 8px var(--accent);\n}\n\n.hm-title {\n font-family: var(--serif);\n font-weight: 500;\n font-size: clamp(40px, 6.2vw, 68px);\n line-height: 1.04;\n letter-spacing: -0.025em;\n margin: 16px 0 14px;\n color: var(--text);\n text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);\n}\n\n.hm-sub {\n color: var(--text-2);\n font-size: clamp(15px, 1.4vw, 17px);\n line-height: 1.65;\n max-width: 540px;\n margin: 0 0 24px;\n text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);\n}\n\n/* Mode Radio Pills */\n.hm-mode {\n display: inline-flex;\n gap: 3px;\n padding: 3px;\n margin-bottom: 12px;\n border: 1px solid var(--line-2);\n border-radius: 10px;\n background: rgba(5, 7, 10, 0.65);\n backdrop-filter: blur(8px);\n}\n\n.hm-mode button {\n font: inherit;\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--text-2);\n background: none;\n border: 0;\n border-radius: 7px;\n padding: 5px 14px;\n}\n\n.hm-mode button:hover {\n color: var(--text);\n}\n\n.hm-mode button.is-on {\n color: var(--accent-ink);\n background: var(--accent);\n font-weight: 600;\n box-shadow: 0 2px 8px rgba(229, 174, 78, 0.25);\n}\n\n/* Omnibox Input Bar */\n.cx-search.hm-ford {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n max-width: 100%;\n background: rgba(5, 7, 10, 0.82);\n backdrop-filter: blur(12px);\n border: 1px solid var(--line-strong);\n border-radius: 14px;\n padding: 6px 6px 6px 14px;\n box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);\n}\n\n.cx-search.hm-ford:focus-within {\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(229, 174, 78, 0.16), 0 18px 44px -10px rgba(0, 0, 0, 0.7);\n}\n\n.hm-map[data-state='match'] .hm-ford {\n border-color: var(--accent);\n}\n\n.hm-map[data-state='account'] .hm-ford {\n border-color: var(--good);\n}\n\n.hm-ford-icon {\n display: inline-flex;\n color: var(--text-3);\n flex: none;\n}\n\n.cx-search.hm-ford:focus-within .hm-ford-icon {\n color: var(--accent);\n}\n\n.cx-search.hm-ford input {\n flex: 1 1 auto;\n min-width: 0;\n background: none;\n border: 0;\n outline: none;\n color: var(--text);\n font: inherit;\n font-size: 16px;\n padding: 9px 4px;\n}\n\n.cx-search.hm-ford input::placeholder {\n color: var(--text-3);\n}\n\n.hm-submit {\n flex: 0 0 auto;\n background: linear-gradient(180deg, var(--accent-bright), var(--accent));\n color: var(--accent-ink);\n border: 0;\n border-radius: 10px;\n padding: 10px 22px;\n font-weight: 600;\n font-size: var(--fs-body);\n white-space: nowrap;\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(229, 174, 78, 0.24);\n}\n\n.hm-submit:hover {\n filter: brightness(1.06);\n transform: translateY(-1px);\n}\n\n/* Status & Sample Row */\n.hm-status-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 8px 16px;\n margin-top: 12px;\n min-height: 28px;\n}\n\n.hm-status {\n margin: 0;\n font-size: var(--fs-meta);\n color: var(--text-3);\n}\n\n.hm-example {\n background: rgba(255, 255, 255, 0.04);\n border: 1px solid var(--line-2);\n border-radius: 6px;\n padding: 1px 8px;\n color: var(--text-2);\n font-family: var(--mono);\n font-size: 12px;\n text-decoration: none;\n}\n\n.hm-example:hover {\n color: var(--accent);\n border-color: rgba(229, 174, 78, 0.5);\n background: var(--accent-soft);\n}\n\n.hm-sample-link {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--accent);\n text-decoration: none;\n padding: 2px 10px;\n border-radius: 999px;\n border: 1px solid rgba(229, 174, 78, 0.32);\n background: rgba(229, 174, 78, 0.08);\n white-space: nowrap;\n}\n\n.hm-sample-link:hover {\n background: rgba(229, 174, 78, 0.16);\n border-color: var(--accent);\n}\n\n/* --------------------------------------------------------------------------\n Returning Player Banner (.cx-latest)\n -------------------------------------------------------------------------- */\n\n.hm-latest {\n margin-top: 0;\n}\n\n.cx-latest {\n padding: 16px 18px;\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n box-shadow: var(--shadow-card);\n}\n\n.cx-latest.has-goal {\n display: grid;\n grid-template-columns: 1.2fr 1fr;\n gap: 16px;\n}\n\n.cx-latest-card {\n min-width: 0;\n}\n\n.cx-latest .cx-eyebrow {\n margin: 0 0 10px;\n}\n\n.cx-latest-row {\n display: flex;\n align-items: center;\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.cx-latest-text {\n flex: 1 1 160px;\n min-width: 0;\n}\n\n.cx-latest-text .is-win {\n color: var(--good);\n font-weight: 600;\n}\n\n.cx-latest-text .is-loss {\n color: var(--dire);\n font-weight: 600;\n}\n\n.cx-latest-cta {\n text-decoration: none;\n display: inline-flex;\n align-items: center;\n background: var(--accent);\n color: var(--accent-ink);\n border-radius: 999px;\n padding: 6px 16px;\n font-size: var(--fs-meta);\n font-weight: 600;\n}\n\n.cx-latest-cta:hover {\n filter: brightness(1.08);\n}\n\n.cx-example {\n color: var(--text-3);\n font-size: var(--fs-meta);\n margin: 10px 2px 0;\n}\n\n.cx-account-known {\n color: var(--accent);\n text-decoration: none;\n font-weight: 500;\n}\n\n.cx-account-known:hover {\n text-decoration: underline;\n}\n\n.cx-latest-goal-card {\n min-width: 0;\n padding-left: 16px;\n border-left: 1px solid var(--line);\n}\n\n.cx-latest-goal {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px 10px;\n margin: 8px 0 0;\n font-size: var(--fs-body);\n color: var(--text);\n}\n\n/* --------------------------------------------------------------------------\n What Happens Next \u2014 4-Step Telemetry (.hm-how)\n -------------------------------------------------------------------------- */\n\n.hm-how {\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n padding: clamp(22px, 3vw, 32px);\n box-shadow: var(--shadow-card);\n display: flex;\n flex-direction: column;\n}\n\n.hm-how h2,\n.hm-ways h2,\n.hm-patch .pa-head h2,\n.hm-feedback h2 {\n margin: 0 0 18px;\n font-family: var(--serif);\n font-size: clamp(21px, 2.4vw, 25px);\n font-weight: 500;\n letter-spacing: -0.01em;\n line-height: 1.25;\n}\n\n.hm-how-steps {\n list-style: none;\n margin: 0;\n padding: 0;\n counter-reset: hmstep;\n}\n\n.hm-how-steps li {\n counter-increment: hmstep;\n display: grid;\n grid-template-columns: 28px minmax(0, 1fr);\n gap: 14px;\n padding-bottom: 18px;\n position: relative;\n}\n\n.hm-how-steps li:not(:last-child)::before {\n content: '';\n position: absolute;\n left: 13.5px;\n top: 28px;\n bottom: 0;\n width: 1px;\n background: linear-gradient(180deg, rgba(229, 174, 78, 0.4), var(--line));\n}\n\n.hm-how-dot {\n width: 28px;\n height: 28px;\n border-radius: 50%;\n border: 1px solid rgba(229, 174, 78, 0.45);\n background: rgba(229, 174, 78, 0.08);\n display: grid;\n place-items: center;\n position: relative;\n z-index: 1;\n}\n\n.hm-how-dot::after {\n content: counter(hmstep);\n font-family: var(--mono);\n font-size: 12px;\n font-weight: 600;\n color: var(--accent);\n}\n\n.hm-how-steps strong {\n display: block;\n font-weight: 600;\n font-size: 16px;\n color: var(--text);\n margin-top: 2px;\n}\n\n.hm-how-steps p {\n margin: 4px 0 0;\n color: var(--text-2);\n line-height: 1.6;\n font-size: 14px;\n}\n\n.hm-how-note {\n margin: auto 0 0;\n padding: 12px 14px;\n border-radius: 10px;\n background: rgba(255, 255, 255, 0.025);\n border: 1px solid var(--line);\n color: var(--text-3);\n font-size: var(--fs-meta);\n line-height: 1.6;\n}\n\n/* --------------------------------------------------------------------------\n Unified Patch Intelligence Hub (.hm-patch = .cx-patch + .pa)\n -------------------------------------------------------------------------- */\n\n.hm-patch {\n margin-top: 40px;\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n background: var(--panel);\n overflow: hidden;\n box-shadow: var(--shadow-card);\n}\n\n.hm-patch .cx-patch.hm-patchbar {\n margin: 0;\n border: 0;\n border-bottom: 1px solid var(--line);\n border-radius: 0;\n box-shadow: none;\n background:\n linear-gradient(90deg, rgba(229, 174, 78, 0.09), transparent 55%),\n var(--panel-2);\n padding: 14px 22px;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 8px 20px;\n align-items: center;\n}\n\n.hm-patch .hm-patchbar .cx-patch-details {\n grid-column: 1;\n grid-row: 1;\n min-width: 0;\n}\n\n.hm-patch .hm-patch-update {\n grid-column: 1;\n grid-row: 2;\n margin: 0;\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 4px 12px;\n font-size: var(--fs-meta);\n color: var(--text-2);\n}\n\n.hm-patch .hm-patch-update time {\n font-family: var(--mono);\n font-size: 12px;\n color: var(--text-3);\n}\n\n.hm-patch .hm-patch-update a {\n color: var(--accent);\n text-decoration: none;\n font-weight: 500;\n}\n\n.hm-patch .hm-patch-update a:hover {\n text-decoration: underline;\n}\n\n.hm-patch .hm-patchbar .cx-patch-actions {\n grid-column: 2;\n grid-row: 1 / span 2;\n align-self: center;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px 16px;\n}\n\n.hm-patchbar summary {\n cursor: pointer;\n list-style: none;\n}\n\n.hm-patchbar summary::-webkit-details-marker {\n display: none;\n}\n\n.hm-patch-line {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px 12px;\n}\n\n.hm-patch-line time {\n font-family: var(--mono);\n font-size: 12px;\n color: var(--text-3);\n padding: 2px 8px;\n border-radius: 6px;\n background: rgba(255, 255, 255, 0.04);\n border: 1px solid var(--line);\n}\n\n.hm-patch-line h2 {\n margin: 0;\n font-family: var(--sans);\n font-size: 16px;\n font-weight: 600;\n color: var(--text);\n}\n\n.hm-patch-count {\n font-size: 12px;\n font-weight: 500;\n color: var(--accent);\n padding: 2px 9px;\n border-radius: 999px;\n background: var(--accent-soft);\n border: 1px solid rgba(229, 174, 78, 0.35);\n}\n\n.hm-patch-count::after {\n content: ' \u25BE';\n opacity: 0.75;\n}\n\n.cx-patch-details[open] .hm-patch-count::after {\n content: ' \u25B4';\n}\n\n.cx-patch-items {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n margin: 14px 0 12px;\n}\n\n.cx-patch-item {\n display: inline-flex;\n align-items: center;\n gap: 7px;\n padding: 4px 10px 4px 5px;\n border-radius: 8px;\n background: rgba(7, 9, 13, 0.65);\n border: 1px solid var(--line);\n font-size: var(--fs-meta);\n color: var(--text);\n}\n\n.cx-patch-icon {\n width: 28px;\n height: 20px;\n border-radius: 4px;\n object-fit: cover;\n flex: none;\n background: var(--panel);\n}\n\n.cx-patch-list {\n margin: 0 0 12px;\n padding-left: 18px;\n color: var(--text-2);\n font-size: 14px;\n display: grid;\n gap: 6px;\n}\n\n.cx-patch-coach {\n margin: 0;\n padding: 10px 12px;\n border-radius: 8px;\n background: rgba(255, 255, 255, 0.03);\n border-left: 2px solid var(--accent);\n font-size: var(--fs-meta);\n color: var(--text-2);\n}\n\n.cx-patch-coach strong {\n color: var(--accent);\n font-weight: 600;\n margin-right: 6px;\n}\n\n.hm-patch .cx-patch-cta {\n background: rgba(229, 174, 78, 0.1);\n color: var(--accent);\n border: 1px solid rgba(229, 174, 78, 0.48);\n border-radius: 999px;\n padding: 6px 15px;\n font-size: var(--fs-meta);\n font-weight: 600;\n white-space: nowrap;\n}\n\n.hm-patch .cx-patch-cta:hover {\n background: rgba(229, 174, 78, 0.2);\n border-color: var(--accent);\n}\n\n.cx-patch-actions a {\n font-size: var(--fs-meta);\n color: var(--text-2);\n text-decoration: none;\n}\n\n.cx-patch-actions a:hover {\n color: var(--text);\n text-decoration: underline;\n}\n\n.hm-patch .pa {\n margin: 0;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n}\n\n/* --------------------------------------------------------------------------\n Developer & Agent Workbench (.hm-ways)\n -------------------------------------------------------------------------- */\n\n.hm-ways {\n margin-top: 40px;\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n padding: clamp(20px, 3vw, 30px);\n box-shadow: var(--shadow-card);\n}\n\n.hm-ways-tabs {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n border-bottom: 1px solid var(--line);\n padding-bottom: 10px;\n margin-bottom: 14px;\n}\n\n.hm-ways-tabs button {\n font: inherit;\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--text-2);\n background: rgba(255, 255, 255, 0.02);\n border: 1px solid transparent;\n border-radius: 8px;\n padding: 6px 14px;\n}\n\n.hm-ways-tabs button:hover {\n color: var(--text);\n background: rgba(255, 255, 255, 0.05);\n}\n\n.hm-ways-tabs button.is-on {\n color: var(--accent);\n background: var(--accent-soft);\n border-color: rgba(229, 174, 78, 0.45);\n font-weight: 600;\n}\n\n.hm-ways-panel {\n padding: 2px 0 0;\n}\n\n.hm-clients {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin: 0 0 12px;\n}\n\n.hm-clients-lead {\n color: var(--text-2);\n font-size: var(--fs-meta);\n margin-right: 4px;\n}\n\n.hm-clients button {\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n color: var(--text-2);\n background: var(--inset);\n border: 1px solid var(--line);\n border-radius: 999px;\n padding: 5px 13px;\n min-height: 32px;\n}\n\n.hm-clients button:hover {\n color: var(--text);\n border-color: var(--line-2);\n}\n\n.hm-clients button.is-on {\n color: var(--text);\n border-color: var(--accent);\n background: rgba(229, 174, 78, 0.1);\n}\n\n.hm-code {\n position: relative;\n border-radius: 10px;\n background: var(--inset);\n border: 1px solid var(--line-2);\n overflow: hidden;\n}\n\n.hm-code pre {\n margin: 0;\n padding: 14px 92px 14px 16px;\n overflow-x: auto;\n font: 13px/1.65 var(--mono);\n color: #dce5f2;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.hm-copy {\n position: absolute;\n top: 8px;\n right: 8px;\n font: inherit;\n font-size: 12px;\n font-weight: 600;\n color: var(--accent-ink);\n background: var(--accent);\n border: 0;\n border-radius: 6px;\n padding: 5px 12px;\n}\n\n.hm-copy:hover {\n filter: brightness(1.08);\n}\n\n.hm-ways-note {\n margin: 10px 0 0;\n color: var(--text-2);\n font-size: 14px;\n line-height: 1.6;\n}\n\n.hm-ways-note a {\n color: var(--accent);\n margin-left: 8px;\n text-decoration: none;\n font-weight: 500;\n}\n\n.hm-ways-note a:hover {\n text-decoration: underline;\n}\n\n.hm-say {\n margin: 12px 0 0;\n padding: 10px 14px;\n border-radius: 8px;\n background: rgba(255, 255, 255, 0.025);\n border-left: 2px solid var(--accent);\n font-size: 14px;\n color: var(--text-2);\n}\n\n.hm-say q {\n color: var(--text);\n font-weight: 500;\n quotes: '\u201C' '\u201D';\n}\n\n.hm-prompt {\n margin-top: 20px;\n padding-top: 18px;\n border-top: 1px solid var(--line);\n}\n\n.hm-prompt h3 {\n margin: 0 0 10px;\n font-size: var(--fs-meta);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--text-3);\n font-weight: 600;\n}\n\n/* --------------------------------------------------------------------------\n Community & Feedback Section (.hm-feedback)\n -------------------------------------------------------------------------- */\n\n.hm-feedback {\n margin-top: 40px;\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n padding: clamp(20px, 3vw, 30px);\n box-shadow: var(--shadow-card);\n}\n\n.hm-feedback-head {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n justify-content: space-between;\n gap: 16px 24px;\n}\n\n.hm-feedback h2 {\n margin-bottom: 8px;\n}\n\n.hm-feedback-sub {\n margin: 0;\n max-width: 540px;\n color: var(--text-2);\n font-size: 14px;\n line-height: 1.65;\n}\n\n.hm-feedback-links {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n}\n\n.hm-feedback-link,\n.hm-feedback-toggle {\n display: inline-flex;\n align-items: center;\n padding: 7px 14px;\n border-radius: 999px;\n border: 1px solid var(--line-2);\n background: rgba(255, 255, 255, 0.03);\n color: var(--text-2);\n font-size: var(--fs-meta);\n font-weight: 500;\n text-decoration: none;\n white-space: nowrap;\n}\n\n.hm-feedback-link:hover,\n.hm-feedback-toggle:hover,\n.hm-feedback-link:focus-visible,\n.hm-feedback-toggle:focus-visible {\n color: var(--text);\n border-color: var(--accent);\n background: rgba(255, 255, 255, 0.06);\n}\n\n.hm-feedback-link.is-primary {\n border-color: rgba(229, 174, 78, 0.5);\n color: var(--accent);\n background: var(--accent-soft);\n}\n\n.hm-feedback-toggle.is-on {\n border-color: var(--accent);\n color: var(--accent);\n background: var(--accent-soft);\n}\n\n.hm-feedback-form {\n margin-top: 18px;\n padding-top: 18px;\n border-top: 1px solid var(--line);\n display: grid;\n gap: 12px;\n}\n\n.hm-feedback-cats {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.hm-feedback-field {\n display: grid;\n gap: 6px;\n}\n\n.hm-feedback-field > span {\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--text-2);\n}\n\n.hm-feedback-field textarea,\n.hm-feedback-foot input {\n width: 100%;\n background: var(--inset);\n border: 1px solid var(--line-2);\n border-radius: 10px;\n padding: 10px 14px;\n color: var(--text);\n font: inherit;\n font-size: var(--fs-body);\n}\n\n.hm-feedback-field textarea:focus,\n.hm-feedback-foot input:focus {\n outline: none;\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(229, 174, 78, 0.14);\n}\n\n.hm-feedback-foot {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n align-items: center;\n}\n\n.hm-feedback-foot input {\n flex: 1 1 240px;\n min-width: 0;\n}\n\n.hm-feedback-done {\n margin-top: 16px;\n padding: 14px 16px;\n border-radius: 10px;\n background: var(--radiant-soft);\n border: 1px solid rgba(82, 201, 114, 0.38);\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n color: var(--good);\n}\n\n.hm-feedback-done p {\n margin: 0;\n font-weight: 500;\n}\n\n@media (max-width: 720px) {\n .cx-hero.hm-map {\n padding: 26px 18px 22px;\n }\n .cx-search.hm-ford {\n padding: 5px 5px 5px 12px;\n }\n .hm-submit {\n padding: 9px 16px;\n }\n .cx-latest.has-goal {\n grid-template-columns: 1fr;\n }\n .cx-latest-goal-card {\n padding-left: 0;\n padding-top: 14px;\n border-left: 0;\n border-top: 1px solid var(--line);\n }\n .hm-patch .cx-patch.hm-patchbar {\n grid-template-columns: minmax(0, 1fr);\n padding: 14px 16px;\n }\n .hm-patch .hm-patchbar .cx-patch-actions {\n grid-column: 1;\n grid-row: 3;\n margin-top: 4px;\n }\n}\n\n/* The same coach on the reader's own model (src/coach/OwnModel.tsx): under the home input, and wherever this\n site's model says no (match page, chat). Points at the DSH tab of the ways block (#ways-dsh). */\n.om-callout {\n margin: 14px 0 0;\n padding: 12px 14px;\n border: 1px solid var(--line-2);\n border-left: 3px solid var(--accent);\n border-radius: var(--radius-sm, 8px);\n background: var(--accent-soft);\n font-size: var(--fs-meta, 0.85rem);\n color: var(--text-2);\n text-align: left;\n max-width: 100%;\n}\n.om-callout p { margin: 0; }\n.om-callout .om-lead { color: var(--text); font-size: var(--fs-body, 0.95rem); }\n.om-callout .om-lead strong { font-weight: 600; }\n.om-callout .om-body { margin-top: 4px; }\n.om-callout .om-tag {\n display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;\n background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: 1px;\n}\n.om-callout .om-ask { margin-top: 6px; }\n.om-callout .om-ask q { color: var(--text); font-family: var(--mono, monospace); font-size: 0.82rem; overflow-wrap: anywhere; }\n.om-callout .om-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }\n.om-callout .om-cta { color: var(--accent-bright, var(--accent)); font-weight: 600; text-decoration: none; }\n.om-callout .om-cta:hover { text-decoration: underline; }\n.om-callout .om-dl { color: var(--text); font-weight: 500; text-decoration: none; border-bottom: 1px dashed var(--accent); }\n.om-callout .om-dl:hover { color: var(--accent-bright, var(--accent)); }\n.om-callout .om-alt { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }\n.om-callout .om-alt:hover { color: var(--text); }\n.ag-chat .om-callout { margin-top: 8px; padding: 10px 12px; }\n/* On the home hero it sits over the minimap art: an opaque ground, above the art. */\n.om-callout.is-home { position: relative; z-index: 1; background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--panel); }\n.om-banner {\n display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;\n padding: 7px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--line-2);\n font-size: var(--fs-meta, 0.85rem); color: var(--text); text-align: center;\n}\n.om-banner .om-tag {\n padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);\n font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;\n}\n.om-banner .om-cta { color: var(--accent-bright, var(--accent)); font-weight: 600; text-decoration: none; white-space: nowrap; }\n.om-banner .om-cta:hover { text-decoration: underline; }\n.om-callout.is-waiting { margin: 16px 0; }\n.hm-anchor { display: block; position: relative; top: -72px; visibility: hidden; height: 0; }\n\n/* Idiot-proof 3-step DeepSeek Harness desktop install guide inside #ways-dsh */\n.hm-dsh-guide { display: grid; gap: 12px; }\n.hm-dsh-badge {\n margin: 0; display: inline-flex; width: fit-content; align-items: center; padding: 3px 10px;\n border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(229, 174, 78, 0.42);\n color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;\n}\n.hm-dsh-pitch { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }\n.hm-dsh-steps {\n list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px;\n}\n.hm-dsh-steps > li {\n display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;\n padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.025);\n border: 1px solid var(--line);\n}\n.hm-dsh-num {\n width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;\n background: var(--accent); color: var(--accent-ink); font-family: var(--mono);\n font-size: 13px; font-weight: 700; flex: none;\n}\n.hm-dsh-step-body { min-width: 0; display: grid; gap: 8px; }\n.hm-dsh-step-body strong { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.35; }\n.hm-dsh-step-body > p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }\n.hm-dsh-btn {\n display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 8px 16px;\n border-radius: 9px; background: linear-gradient(180deg, var(--accent-bright), var(--accent));\n color: var(--accent-ink); font-size: 14px; font-weight: 600; text-decoration: none;\n box-shadow: 0 4px 14px rgba(229, 174, 78, 0.22);\n}\n.hm-dsh-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }\n.hm-dsh-cli {\n margin-top: 4px; padding: 10px 14px; border-radius: 10px;\n border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.015);\n}\n.hm-dsh-cli summary {\n cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2); list-style: none;\n}\n.hm-dsh-cli summary::-webkit-details-marker { display: none; }\n.hm-dsh-cli summary::before { content: '\u25B8 '; color: var(--accent); }\n.hm-dsh-cli[open] summary::before { content: '\u25BE '; }\n.hm-dsh-cli[open] summary { margin-bottom: 10px; color: var(--text); }\n";
|
|
481
|
+
var cards_default = "/* ==========================================================================\n dota2.ai \u2014 Home Page: Tactical Map Hero, Omnibox, Patch Hub & Agent Bench\n ========================================================================== */\n\n/* First screen layout: Hero + Latest Game on left, 4-Step Telemetry on right */\n.hm-first {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 20px;\n margin-top: clamp(20px, 4vh, 38px);\n}\n\n@media (min-width: 1024px) {\n .hm-first {\n grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);\n align-items: stretch;\n }\n}\n\n.hm-left {\n display: flex;\n flex-direction: column;\n gap: 16px;\n min-width: 0;\n}\n\n.hm-left .hm-map {\n flex: 1 1 auto;\n}\n\n/* --------------------------------------------------------------------------\n Tactical Map Hero Card (.cx-hero.hm-map)\n -------------------------------------------------------------------------- */\n\n.cx-hero.hm-map {\n position: relative;\n overflow: hidden;\n padding: clamp(32px, 6vh, 60px) clamp(22px, 4.5vw, 52px);\n border-radius: var(--radius-lg);\n background:\n radial-gradient(640px 280px at 0% 100%, rgba(82, 201, 114, 0.11), transparent 70%),\n radial-gradient(640px 280px at 100% 0%, rgba(232, 100, 82, 0.11), transparent 70%),\n linear-gradient(180deg, #131924 0%, #0b0f16 100%);\n border: 1px solid var(--line-2);\n box-shadow: var(--shadow-card);\n display: grid;\n align-items: center;\n}\n\n@media (min-width: 1024px) {\n .hm-left .hm-map {\n min-height: clamp(410px, 55vh, 520px);\n }\n}\n\n.cx-hero.hm-map::before {\n content: '';\n position: absolute;\n left: 24px;\n right: 24px;\n top: 0;\n height: 1px;\n background: linear-gradient(90deg, transparent, rgba(229, 174, 78, 0.45), transparent);\n pointer-events: none;\n}\n\n.hm-minimap {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.hm-radiant {\n fill: rgba(82, 201, 114, 0.075);\n}\n\n.hm-dire {\n fill: rgba(232, 100, 82, 0.075);\n}\n\n.hm-grid {\n fill: none;\n stroke: rgba(226, 234, 245, 0.025);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n}\n\n.hm-lane {\n fill: none;\n stroke: rgba(226, 234, 245, 0.07);\n stroke-width: 1;\n stroke-dasharray: 4 5;\n vector-effect: non-scaling-stroke;\n}\n\n.hm-node.is-radiant {\n fill: rgba(82, 201, 114, 0.45);\n}\n\n.hm-node.is-dire {\n fill: rgba(232, 100, 82, 0.45);\n}\n\n.hm-pit {\n fill: rgba(229, 174, 78, 0.08);\n stroke: rgba(229, 174, 78, 0.25);\n stroke-width: 1;\n vector-effect: non-scaling-stroke;\n}\n\n.hm-river {\n fill: none;\n stroke: rgba(104, 181, 232, 0.09);\n stroke-width: 26;\n vector-effect: non-scaling-stroke;\n stroke-linecap: round;\n transition: stroke 420ms ease, filter 420ms ease;\n}\n\n.hm-map[data-state='match'] .hm-river {\n stroke: rgba(229, 174, 78, 0.2);\n filter: drop-shadow(0 0 16px rgba(229, 174, 78, 0.35));\n}\n\n.hm-map[data-state='account'] .hm-river {\n stroke: rgba(82, 201, 114, 0.2);\n filter: drop-shadow(0 0 16px rgba(82, 201, 114, 0.35));\n}\n\n.hm-core {\n position: relative;\n z-index: 1;\n min-width: 0;\n width: 100%;\n max-width: 640px;\n}\n\n.hm-badge {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 4px 12px;\n border-radius: 999px;\n border: 1px solid rgba(229, 174, 78, 0.28);\n background: rgba(7, 9, 13, 0.55);\n color: var(--accent);\n font-size: 11px;\n letter-spacing: 0.1em;\n}\n\n.hm-badge-dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: var(--accent);\n box-shadow: 0 0 8px var(--accent);\n}\n\n.hm-title {\n font-family: var(--serif);\n font-weight: 500;\n font-size: clamp(40px, 6.2vw, 68px);\n line-height: 1.04;\n letter-spacing: -0.025em;\n margin: 16px 0 14px;\n color: var(--text);\n text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);\n}\n\n.hm-sub {\n color: var(--text-2);\n font-size: clamp(15px, 1.4vw, 17px);\n line-height: 1.65;\n max-width: 540px;\n margin: 0 0 24px;\n text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);\n}\n\n/* Mode Radio Pills */\n.hm-mode {\n display: inline-flex;\n gap: 3px;\n padding: 3px;\n margin-bottom: 12px;\n border: 1px solid var(--line-2);\n border-radius: 10px;\n background: rgba(5, 7, 10, 0.65);\n backdrop-filter: blur(8px);\n}\n\n.hm-mode button {\n font: inherit;\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--text-2);\n background: none;\n border: 0;\n border-radius: 7px;\n padding: 5px 14px;\n}\n\n.hm-mode button:hover {\n color: var(--text);\n}\n\n.hm-mode button.is-on {\n color: var(--accent-ink);\n background: var(--accent);\n font-weight: 600;\n box-shadow: 0 2px 8px rgba(229, 174, 78, 0.25);\n}\n\n/* Omnibox Input Bar */\n.cx-search.hm-ford {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n max-width: 100%;\n background: rgba(5, 7, 10, 0.82);\n backdrop-filter: blur(12px);\n border: 1px solid var(--line-strong);\n border-radius: 14px;\n padding: 6px 6px 6px 14px;\n box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);\n}\n\n.cx-search.hm-ford:focus-within {\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(229, 174, 78, 0.16), 0 18px 44px -10px rgba(0, 0, 0, 0.7);\n}\n\n.hm-map[data-state='match'] .hm-ford {\n border-color: var(--accent);\n}\n\n.hm-map[data-state='account'] .hm-ford {\n border-color: var(--good);\n}\n\n.hm-ford-icon {\n display: inline-flex;\n color: var(--text-3);\n flex: none;\n}\n\n.cx-search.hm-ford:focus-within .hm-ford-icon {\n color: var(--accent);\n}\n\n.cx-search.hm-ford input {\n flex: 1 1 auto;\n min-width: 0;\n background: none;\n border: 0;\n outline: none;\n color: var(--text);\n font: inherit;\n font-size: 16px;\n padding: 9px 4px;\n}\n\n.cx-search.hm-ford input::placeholder {\n color: var(--text-3);\n}\n\n.hm-submit {\n flex: 0 0 auto;\n background: linear-gradient(180deg, var(--accent-bright), var(--accent));\n color: var(--accent-ink);\n border: 0;\n border-radius: 10px;\n padding: 10px 22px;\n font-weight: 600;\n font-size: var(--fs-body);\n white-space: nowrap;\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(229, 174, 78, 0.24);\n}\n\n.hm-submit:hover {\n filter: brightness(1.06);\n transform: translateY(-1px);\n}\n\n/* Status & Sample Row */\n.hm-status-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 8px 16px;\n margin-top: 12px;\n min-height: 28px;\n}\n\n.hm-status {\n margin: 0;\n font-size: var(--fs-meta);\n color: var(--text-3);\n}\n\n.hm-example {\n background: rgba(255, 255, 255, 0.04);\n border: 1px solid var(--line-2);\n border-radius: 6px;\n padding: 1px 8px;\n color: var(--text-2);\n font-family: var(--mono);\n font-size: 12px;\n text-decoration: none;\n}\n\n.hm-example:hover {\n color: var(--accent);\n border-color: rgba(229, 174, 78, 0.5);\n background: var(--accent-soft);\n}\n\n.hm-sample-link {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--accent);\n text-decoration: none;\n padding: 2px 10px;\n border-radius: 999px;\n border: 1px solid rgba(229, 174, 78, 0.32);\n background: rgba(229, 174, 78, 0.08);\n white-space: nowrap;\n}\n\n.hm-sample-link:hover {\n background: rgba(229, 174, 78, 0.16);\n border-color: var(--accent);\n}\n\n/* --------------------------------------------------------------------------\n Returning Player Banner (.cx-latest)\n -------------------------------------------------------------------------- */\n\n.hm-latest {\n margin-top: 0;\n}\n\n.cx-latest {\n padding: 16px 18px;\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n box-shadow: var(--shadow-card);\n}\n\n.cx-latest-card {\n min-width: 0;\n}\n\n.cx-latest .cx-eyebrow {\n margin: 0 0 10px;\n}\n\n.cx-latest-row {\n display: flex;\n align-items: center;\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.cx-latest-text {\n flex: 1 1 160px;\n min-width: 0;\n}\n\n.cx-latest-text .is-win {\n color: var(--good);\n font-weight: 600;\n}\n\n.cx-latest-text .is-loss {\n color: var(--dire);\n font-weight: 600;\n}\n\n.cx-latest-cta {\n text-decoration: none;\n display: inline-flex;\n align-items: center;\n background: var(--accent);\n color: var(--accent-ink);\n border-radius: 999px;\n padding: 6px 16px;\n font-size: var(--fs-meta);\n font-weight: 600;\n}\n\n.cx-latest-cta:hover {\n filter: brightness(1.08);\n}\n\n.cx-example {\n color: var(--text-3);\n font-size: var(--fs-meta);\n margin: 10px 2px 0;\n}\n\n.cx-account-known {\n color: var(--accent);\n text-decoration: none;\n font-weight: 500;\n}\n\n.cx-account-known:hover {\n text-decoration: underline;\n}\n\n/* --------------------------------------------------------------------------\n What Happens Next \u2014 4-Step Telemetry (.hm-how)\n -------------------------------------------------------------------------- */\n\n.hm-how {\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n padding: clamp(22px, 3vw, 32px);\n box-shadow: var(--shadow-card);\n display: flex;\n flex-direction: column;\n}\n\n.hm-how h2,\n.hm-ways h2,\n.hm-patch .pa-head h2,\n.hm-feedback h2 {\n margin: 0 0 18px;\n font-family: var(--serif);\n font-size: clamp(21px, 2.4vw, 25px);\n font-weight: 500;\n letter-spacing: -0.01em;\n line-height: 1.25;\n}\n\n.hm-how-steps {\n list-style: none;\n margin: 0;\n padding: 0;\n counter-reset: hmstep;\n}\n\n.hm-how-steps li {\n counter-increment: hmstep;\n display: grid;\n grid-template-columns: 28px minmax(0, 1fr);\n gap: 14px;\n padding-bottom: 18px;\n position: relative;\n}\n\n.hm-how-steps li:not(:last-child)::before {\n content: '';\n position: absolute;\n left: 13.5px;\n top: 28px;\n bottom: 0;\n width: 1px;\n background: linear-gradient(180deg, rgba(229, 174, 78, 0.4), var(--line));\n}\n\n.hm-how-dot {\n width: 28px;\n height: 28px;\n border-radius: 50%;\n border: 1px solid rgba(229, 174, 78, 0.45);\n background: rgba(229, 174, 78, 0.08);\n display: grid;\n place-items: center;\n position: relative;\n z-index: 1;\n}\n\n.hm-how-dot::after {\n content: counter(hmstep);\n font-family: var(--mono);\n font-size: 12px;\n font-weight: 600;\n color: var(--accent);\n}\n\n.hm-how-steps strong {\n display: block;\n font-weight: 600;\n font-size: 16px;\n color: var(--text);\n margin-top: 2px;\n}\n\n.hm-how-steps p {\n margin: 4px 0 0;\n color: var(--text-2);\n line-height: 1.6;\n font-size: 14px;\n}\n\n.hm-how-note {\n margin: auto 0 0;\n padding: 12px 14px;\n border-radius: 10px;\n background: rgba(255, 255, 255, 0.025);\n border: 1px solid var(--line);\n color: var(--text-3);\n font-size: var(--fs-meta);\n line-height: 1.6;\n}\n\n/* --------------------------------------------------------------------------\n Unified Patch Intelligence Hub (.hm-patch = .cx-patch + .pa)\n -------------------------------------------------------------------------- */\n\n.hm-patch {\n margin-top: 40px;\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n background: var(--panel);\n overflow: hidden;\n box-shadow: var(--shadow-card);\n}\n\n.hm-patch .cx-patch.hm-patchbar {\n margin: 0;\n border: 0;\n border-bottom: 1px solid var(--line);\n border-radius: 0;\n box-shadow: none;\n background:\n linear-gradient(90deg, rgba(229, 174, 78, 0.09), transparent 55%),\n var(--panel-2);\n padding: 14px 22px;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 8px 20px;\n align-items: center;\n}\n\n.hm-patch .hm-patchbar .cx-patch-details {\n grid-column: 1;\n grid-row: 1;\n min-width: 0;\n}\n\n.hm-patch .hm-patch-update {\n grid-column: 1;\n grid-row: 2;\n margin: 0;\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 4px 12px;\n font-size: var(--fs-meta);\n color: var(--text-2);\n}\n\n.hm-patch .hm-patch-update time {\n font-family: var(--mono);\n font-size: 12px;\n color: var(--text-3);\n}\n\n.hm-patch .hm-patch-update a {\n color: var(--accent);\n text-decoration: none;\n font-weight: 500;\n}\n\n.hm-patch .hm-patch-update a:hover {\n text-decoration: underline;\n}\n\n.hm-patch .hm-patchbar .cx-patch-actions {\n grid-column: 2;\n grid-row: 1 / span 2;\n align-self: center;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px 16px;\n}\n\n.hm-patchbar summary {\n cursor: pointer;\n list-style: none;\n}\n\n.hm-patchbar summary::-webkit-details-marker {\n display: none;\n}\n\n.hm-patch-line {\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px 12px;\n}\n\n.hm-patch-line time {\n font-family: var(--mono);\n font-size: 12px;\n color: var(--text-3);\n padding: 2px 8px;\n border-radius: 6px;\n background: rgba(255, 255, 255, 0.04);\n border: 1px solid var(--line);\n}\n\n.hm-patch-line h2 {\n margin: 0;\n font-family: var(--sans);\n font-size: 16px;\n font-weight: 600;\n color: var(--text);\n}\n\n.hm-patch-count {\n font-size: 12px;\n font-weight: 500;\n color: var(--accent);\n padding: 2px 9px;\n border-radius: 999px;\n background: var(--accent-soft);\n border: 1px solid rgba(229, 174, 78, 0.35);\n}\n\n.hm-patch-count::after {\n content: ' \u25BE';\n opacity: 0.75;\n}\n\n.cx-patch-details[open] .hm-patch-count::after {\n content: ' \u25B4';\n}\n\n.cx-patch-items {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n margin: 14px 0 12px;\n}\n\n.cx-patch-item {\n display: inline-flex;\n align-items: center;\n gap: 7px;\n padding: 4px 10px 4px 5px;\n border-radius: 8px;\n background: rgba(7, 9, 13, 0.65);\n border: 1px solid var(--line);\n font-size: var(--fs-meta);\n color: var(--text);\n}\n\n.cx-patch-icon {\n width: 28px;\n height: 20px;\n border-radius: 4px;\n object-fit: cover;\n flex: none;\n background: var(--panel);\n}\n\n.cx-patch-list {\n margin: 0 0 12px;\n padding-left: 18px;\n color: var(--text-2);\n font-size: 14px;\n display: grid;\n gap: 6px;\n}\n\n.cx-patch-coach {\n margin: 0;\n padding: 10px 12px;\n border-radius: 8px;\n background: rgba(255, 255, 255, 0.03);\n border-left: 2px solid var(--accent);\n font-size: var(--fs-meta);\n color: var(--text-2);\n}\n\n.cx-patch-coach strong {\n color: var(--accent);\n font-weight: 600;\n margin-right: 6px;\n}\n\n.hm-patch .cx-patch-cta {\n background: rgba(229, 174, 78, 0.1);\n color: var(--accent);\n border: 1px solid rgba(229, 174, 78, 0.48);\n border-radius: 999px;\n padding: 6px 15px;\n font-size: var(--fs-meta);\n font-weight: 600;\n white-space: nowrap;\n}\n\n.hm-patch .cx-patch-cta:hover {\n background: rgba(229, 174, 78, 0.2);\n border-color: var(--accent);\n}\n\n.cx-patch-actions a {\n font-size: var(--fs-meta);\n color: var(--text-2);\n text-decoration: none;\n}\n\n.cx-patch-actions a:hover {\n color: var(--text);\n text-decoration: underline;\n}\n\n.hm-patch .pa {\n margin: 0;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n}\n\n/* --------------------------------------------------------------------------\n Developer & Agent Workbench (.hm-ways)\n -------------------------------------------------------------------------- */\n\n.hm-ways {\n margin-top: 40px;\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n padding: clamp(20px, 3vw, 30px);\n box-shadow: var(--shadow-card);\n}\n\n.hm-ways-tabs {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n border-bottom: 1px solid var(--line);\n padding-bottom: 10px;\n margin-bottom: 14px;\n}\n\n.hm-ways-tabs button {\n font: inherit;\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--text-2);\n background: rgba(255, 255, 255, 0.02);\n border: 1px solid transparent;\n border-radius: 8px;\n padding: 6px 14px;\n}\n\n.hm-ways-tabs button:hover {\n color: var(--text);\n background: rgba(255, 255, 255, 0.05);\n}\n\n.hm-ways-tabs button.is-on {\n color: var(--accent);\n background: var(--accent-soft);\n border-color: rgba(229, 174, 78, 0.45);\n font-weight: 600;\n}\n\n.hm-ways-panel {\n padding: 2px 0 0;\n}\n\n.hm-clients {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n margin: 0 0 12px;\n}\n\n.hm-clients-lead {\n color: var(--text-2);\n font-size: var(--fs-meta);\n margin-right: 4px;\n}\n\n.hm-clients button {\n font: inherit;\n font-size: 12px;\n font-weight: 500;\n color: var(--text-2);\n background: var(--inset);\n border: 1px solid var(--line);\n border-radius: 999px;\n padding: 5px 13px;\n min-height: 32px;\n}\n\n.hm-clients button:hover {\n color: var(--text);\n border-color: var(--line-2);\n}\n\n.hm-clients button.is-on {\n color: var(--text);\n border-color: var(--accent);\n background: rgba(229, 174, 78, 0.1);\n}\n\n.hm-code {\n position: relative;\n border-radius: 10px;\n background: var(--inset);\n border: 1px solid var(--line-2);\n overflow: hidden;\n}\n\n.hm-code pre {\n margin: 0;\n padding: 14px 92px 14px 16px;\n overflow-x: auto;\n font: 13px/1.65 var(--mono);\n color: #dce5f2;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.hm-copy {\n position: absolute;\n top: 8px;\n right: 8px;\n font: inherit;\n font-size: 12px;\n font-weight: 600;\n color: var(--accent-ink);\n background: var(--accent);\n border: 0;\n border-radius: 6px;\n padding: 5px 12px;\n}\n\n.hm-copy:hover {\n filter: brightness(1.08);\n}\n\n.hm-ways-note {\n margin: 10px 0 0;\n color: var(--text-2);\n font-size: 14px;\n line-height: 1.6;\n}\n\n.hm-ways-note a {\n color: var(--accent);\n margin-left: 8px;\n text-decoration: none;\n font-weight: 500;\n}\n\n.hm-ways-note a:hover {\n text-decoration: underline;\n}\n\n.hm-say {\n margin: 12px 0 0;\n padding: 10px 14px;\n border-radius: 8px;\n background: rgba(255, 255, 255, 0.025);\n border-left: 2px solid var(--accent);\n font-size: 14px;\n color: var(--text-2);\n}\n\n.hm-say q {\n color: var(--text);\n font-weight: 500;\n quotes: '\u201C' '\u201D';\n}\n\n.hm-prompt {\n margin-top: 20px;\n padding-top: 18px;\n border-top: 1px solid var(--line);\n}\n\n.hm-prompt h3 {\n margin: 0 0 10px;\n font-size: var(--fs-meta);\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: var(--text-3);\n font-weight: 600;\n}\n\n/* --------------------------------------------------------------------------\n Community & Feedback Section (.hm-feedback)\n -------------------------------------------------------------------------- */\n\n.hm-feedback {\n margin-top: 40px;\n background: linear-gradient(180deg, var(--panel-2), var(--panel));\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n padding: clamp(20px, 3vw, 30px);\n box-shadow: var(--shadow-card);\n}\n\n.hm-feedback-head {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n justify-content: space-between;\n gap: 16px 24px;\n}\n\n.hm-feedback h2 {\n margin-bottom: 8px;\n}\n\n.hm-feedback-sub {\n margin: 0;\n max-width: 540px;\n color: var(--text-2);\n font-size: 14px;\n line-height: 1.65;\n}\n\n.hm-feedback-links {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n}\n\n.hm-feedback-link,\n.hm-feedback-toggle {\n display: inline-flex;\n align-items: center;\n padding: 7px 14px;\n border-radius: 999px;\n border: 1px solid var(--line-2);\n background: rgba(255, 255, 255, 0.03);\n color: var(--text-2);\n font-size: var(--fs-meta);\n font-weight: 500;\n text-decoration: none;\n white-space: nowrap;\n}\n\n.hm-feedback-link:hover,\n.hm-feedback-toggle:hover,\n.hm-feedback-link:focus-visible,\n.hm-feedback-toggle:focus-visible {\n color: var(--text);\n border-color: var(--accent);\n background: rgba(255, 255, 255, 0.06);\n}\n\n.hm-feedback-link.is-primary {\n border-color: rgba(229, 174, 78, 0.5);\n color: var(--accent);\n background: var(--accent-soft);\n}\n\n.hm-feedback-toggle.is-on {\n border-color: var(--accent);\n color: var(--accent);\n background: var(--accent-soft);\n}\n\n.hm-feedback-form {\n margin-top: 18px;\n padding-top: 18px;\n border-top: 1px solid var(--line);\n display: grid;\n gap: 12px;\n}\n\n.hm-feedback-cats {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n\n.hm-feedback-field {\n display: grid;\n gap: 6px;\n}\n\n.hm-feedback-field > span {\n font-size: var(--fs-meta);\n font-weight: 500;\n color: var(--text-2);\n}\n\n.hm-feedback-field textarea,\n.hm-feedback-foot input {\n width: 100%;\n background: var(--inset);\n border: 1px solid var(--line-2);\n border-radius: 10px;\n padding: 10px 14px;\n color: var(--text);\n font: inherit;\n font-size: var(--fs-body);\n}\n\n.hm-feedback-field textarea:focus,\n.hm-feedback-foot input:focus {\n outline: none;\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(229, 174, 78, 0.14);\n}\n\n.hm-feedback-foot {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n align-items: center;\n}\n\n.hm-feedback-foot input {\n flex: 1 1 240px;\n min-width: 0;\n}\n\n.hm-feedback-done {\n margin-top: 16px;\n padding: 14px 16px;\n border-radius: 10px;\n background: var(--radiant-soft);\n border: 1px solid rgba(82, 201, 114, 0.38);\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n color: var(--good);\n}\n\n.hm-feedback-done p {\n margin: 0;\n font-weight: 500;\n}\n\n@media (max-width: 720px) {\n .cx-hero.hm-map {\n padding: 26px 18px 22px;\n }\n .cx-search.hm-ford {\n padding: 5px 5px 5px 12px;\n }\n .hm-submit {\n padding: 9px 16px;\n }\n .hm-patch .cx-patch.hm-patchbar {\n grid-template-columns: minmax(0, 1fr);\n padding: 14px 16px;\n }\n .hm-patch .hm-patchbar .cx-patch-actions {\n grid-column: 1;\n grid-row: 3;\n margin-top: 4px;\n }\n}\n\n/* The same coach on the reader's own model (src/coach/OwnModel.tsx): under the home input, and wherever this\n site's model says no (match page, chat). Points at the DSH tab of the ways block (#ways-dsh). */\n.om-callout {\n margin: 14px 0 0;\n padding: 12px 14px;\n border: 1px solid var(--line-2);\n border-left: 3px solid var(--accent);\n border-radius: var(--radius-sm, 8px);\n background: var(--accent-soft);\n font-size: var(--fs-meta, 0.85rem);\n color: var(--text-2);\n text-align: left;\n max-width: 100%;\n}\n.om-callout p { margin: 0; }\n.om-callout .om-lead { color: var(--text); font-size: var(--fs-body, 0.95rem); }\n.om-callout .om-lead strong { font-weight: 600; }\n.om-callout .om-body { margin-top: 4px; }\n.om-callout .om-tag {\n display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;\n background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: 1px;\n}\n.om-callout .om-ask { margin-top: 6px; }\n.om-callout .om-ask q { color: var(--text); font-family: var(--mono, monospace); font-size: 0.82rem; overflow-wrap: anywhere; }\n.om-callout .om-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }\n.om-callout .om-cta { color: var(--accent-bright, var(--accent)); font-weight: 600; text-decoration: none; }\n.om-callout .om-cta:hover { text-decoration: underline; }\n.om-callout .om-dl { color: var(--text); font-weight: 500; text-decoration: none; border-bottom: 1px dashed var(--accent); }\n.om-callout .om-dl:hover { color: var(--accent-bright, var(--accent)); }\n.om-callout .om-alt { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }\n.om-callout .om-alt:hover { color: var(--text); }\n.ag-chat .om-callout { margin-top: 8px; padding: 10px 12px; }\n/* On the home hero it sits over the minimap art: an opaque ground, above the art. */\n.om-callout.is-home { position: relative; z-index: 1; background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--panel); }\n.om-banner {\n display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;\n padding: 7px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--line-2);\n font-size: var(--fs-meta, 0.85rem); color: var(--text); text-align: center;\n}\n.om-banner .om-tag {\n padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);\n font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;\n}\n.om-banner .om-cta { color: var(--accent-bright, var(--accent)); font-weight: 600; text-decoration: none; white-space: nowrap; }\n.om-banner .om-cta:hover { text-decoration: underline; }\n.om-callout.is-waiting { margin: 16px 0; }\n.hm-anchor { display: block; position: relative; top: -72px; visibility: hidden; height: 0; }\n\n/* Idiot-proof 3-step DeepSeek Harness desktop install guide inside #ways-dsh */\n.hm-dsh-guide { display: grid; gap: 12px; }\n.hm-dsh-badge {\n margin: 0; display: inline-flex; width: fit-content; align-items: center; padding: 3px 10px;\n border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(229, 174, 78, 0.42);\n color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;\n}\n.hm-dsh-pitch { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }\n.hm-dsh-steps {\n list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px;\n}\n.hm-dsh-steps > li {\n display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;\n padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.025);\n border: 1px solid var(--line);\n}\n.hm-dsh-num {\n width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;\n background: var(--accent); color: var(--accent-ink); font-family: var(--mono);\n font-size: 13px; font-weight: 700; flex: none;\n}\n.hm-dsh-step-body { min-width: 0; display: grid; gap: 8px; }\n.hm-dsh-step-body strong { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.35; }\n.hm-dsh-step-body > p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }\n.hm-dsh-btn {\n display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 8px 16px;\n border-radius: 9px; background: linear-gradient(180deg, var(--accent-bright), var(--accent));\n color: var(--accent-ink); font-size: 14px; font-weight: 600; text-decoration: none;\n box-shadow: 0 4px 14px rgba(229, 174, 78, 0.22);\n}\n.hm-dsh-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }\n.hm-dsh-cli {\n margin-top: 4px; padding: 10px 14px; border-radius: 10px;\n border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.015);\n}\n.hm-dsh-cli summary {\n cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2); list-style: none;\n}\n.hm-dsh-cli summary::-webkit-details-marker { display: none; }\n.hm-dsh-cli summary::before { content: '\u25B8 '; color: var(--accent); }\n.hm-dsh-cli[open] summary::before { content: '\u25BE '; }\n.hm-dsh-cli[open] summary { margin-bottom: 10px; color: var(--text); }\n";
|
|
482
482
|
|
|
483
483
|
// src/coach/review.css
|
|
484
484
|
var review_default = "/* ==========================================================================\n dota2.ai \u2014 Review Auxiliary Surface Styles\n ========================================================================== */\n\n.rv-head {\n padding: 18px 0 14px;\n border-bottom: 1px solid var(--line);\n}\n\n.rv {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 28px;\n margin-top: 8px;\n}\n\n@media (min-width: 1100px) {\n .rv {\n grid-template-columns: minmax(0, 720px) minmax(300px, 1fr);\n gap: 40px;\n }\n}\n";
|
|
@@ -490,7 +490,7 @@ var agent_default = "/* ========================================================
|
|
|
490
490
|
var patch_default = "/* ==========================================================================\n dota2.ai \u2014 Patch Advisor & AI Studio (.pa)\n ========================================================================== */\n\n.pa {\n margin-top: 28px;\n background: var(--panel);\n border: 1px solid var(--line);\n border-radius: var(--radius-lg);\n overflow: hidden;\n box-shadow: var(--shadow-card);\n}\n\n.pa-head {\n padding: 20px 22px 16px;\n border-bottom: 1px solid var(--line);\n}\n\n.pa-head h2 {\n margin: 0;\n font-family: var(--serif);\n font-weight: 500;\n font-size: clamp(21px, 2.4vw, 25px);\n letter-spacing: -0.01em;\n}\n\n.pa-ver {\n font-family: var(--mono);\n font-weight: 600;\n color: var(--accent);\n letter-spacing: 0;\n}\n\n.pa-head p {\n margin: 6px 0 0;\n color: var(--text-2);\n font-size: 14px;\n line-height: 1.65;\n max-width: 74ch;\n}\n\n.pa-releases a {\n color: var(--accent);\n text-decoration: none;\n font-family: var(--mono);\n font-size: 12px;\n}\n\n.pa-releases a:hover {\n text-decoration: underline;\n}\n\n.pa-body {\n display: grid;\n grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);\n}\n\n/* Left Column: 4 Meta Mover Cards */\n.pa-data {\n padding: 18px 22px 20px;\n border-right: 1px solid var(--line);\n min-width: 0;\n}\n\n.pa-grid {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 14px;\n}\n\n.pa-movers {\n min-width: 0;\n background: rgba(255, 255, 255, 0.02);\n border: 1px solid var(--line);\n border-radius: var(--radius-md);\n padding: 12px 14px;\n position: relative;\n overflow: hidden;\n}\n\n.pa-movers::before {\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 2px;\n background: var(--line-2);\n}\n\n.pa-movers.is-up::before {\n background: linear-gradient(90deg, var(--good), transparent 85%);\n}\n\n.pa-movers.is-down::before {\n background: linear-gradient(90deg, var(--dire), transparent 85%);\n}\n\n.pa-movers table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n font-variant-numeric: tabular-nums;\n}\n\n.pa-movers caption {\n text-align: left;\n color: var(--text);\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n padding-bottom: 8px;\n}\n\n.pa-movers.is-up caption {\n color: var(--good);\n}\n\n.pa-movers.is-down caption {\n color: var(--dire);\n}\n\n.pa-movers th,\n.pa-movers td {\n padding: 6px 0 6px 8px;\n text-align: right;\n white-space: nowrap;\n border-bottom: 1px solid var(--line);\n}\n\n.pa-movers tbody tr:last-child th,\n.pa-movers tbody tr:last-child td {\n border-bottom: 0;\n}\n\n.pa-movers tbody tr:hover {\n background: rgba(255, 255, 255, 0.025);\n}\n\n.pa-movers thead th {\n color: var(--text-3);\n font-size: 11px;\n font-weight: 500;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n}\n\n.pa-movers td {\n font-family: var(--mono);\n font-size: 12px;\n color: var(--text-2);\n}\n\n.pa-movers th:first-child {\n text-align: left;\n padding-left: 0;\n font-weight: 500;\n}\n\n.pa-hero {\n background: none;\n border: 0;\n padding: 1px 0;\n color: var(--text);\n font: inherit;\n font-weight: 500;\n cursor: pointer;\n text-align: left;\n text-decoration: underline;\n text-decoration-color: rgba(226, 234, 245, 0.2);\n text-underline-offset: 3px;\n}\n\n.pa-hero:hover,\n.pa-hero:focus-visible {\n color: var(--accent);\n text-decoration-color: var(--accent);\n}\n\n.pa-delta {\n font-weight: 600;\n}\n\n.pa-delta.is-up {\n color: var(--good);\n}\n\n.pa-delta.is-down {\n color: var(--dire);\n}\n\n.pa-muted {\n color: var(--text-3);\n font-size: 12px;\n line-height: 1.65;\n margin: 14px 0 0;\n}\n\n.pa-muted a {\n color: var(--text-2);\n text-decoration: none;\n border-bottom: 1px solid var(--line-2);\n}\n\n.pa-muted a:hover {\n color: var(--accent);\n border-bottom-color: var(--accent);\n}\n\n.pa-old-numbers {\n color: var(--fix);\n font-weight: 600;\n}\n\n/* Right Column: Patch AI Studio Chat */\n.pa-chat {\n display: flex;\n flex-direction: column;\n min-width: 0;\n max-height: 580px;\n background: rgba(5, 7, 10, 0.38);\n}\n\n.pa-log {\n flex: 1;\n min-height: 180px;\n overflow-y: auto;\n padding: 18px 20px;\n display: grid;\n gap: 18px;\n align-content: start;\n}\n\n.pa-log:focus-visible {\n outline: 2px solid var(--accent);\n outline-offset: -2px;\n}\n\n.pa-suggest p {\n margin: 0 0 10px;\n color: var(--text-3);\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n}\n\n.pa-suggest button {\n display: block;\n width: 100%;\n text-align: left;\n background: var(--panel-2);\n border: 1px solid var(--line);\n border-radius: 10px;\n padding: 10px 14px;\n color: var(--text);\n font-size: var(--fs-meta);\n line-height: 1.5;\n cursor: pointer;\n margin-bottom: 8px;\n}\n\n.pa-suggest button:hover,\n.pa-suggest button:focus-visible {\n border-color: rgba(229, 174, 78, 0.55);\n background: var(--panel-3);\n}\n\n.pa-suggest button.pa-own {\n background: transparent;\n border-style: dashed;\n border-color: var(--line-2);\n color: var(--text-2);\n}\n\n.pa-suggest button.pa-own:hover {\n border-color: var(--accent);\n color: var(--accent);\n}\n\n.pa-turn {\n display: grid;\n gap: 10px;\n}\n\n.pa-q {\n margin: 0;\n padding: 10px 14px;\n border-radius: 12px 12px 4px 12px;\n background: rgba(229, 174, 78, 0.09);\n border: 1px solid rgba(229, 174, 78, 0.25);\n line-height: 1.55;\n font-size: 14px;\n}\n\n.pa-q > span,\n.pa-a > span {\n display: block;\n font-size: 11px;\n font-weight: 600;\n color: var(--text-3);\n letter-spacing: 0.1em;\n text-transform: uppercase;\n margin-bottom: 4px;\n}\n\n.pa-q > span {\n color: var(--accent);\n}\n\n.pa-a {\n margin: 0;\n padding: 12px 14px;\n border-radius: 4px 12px 12px 12px;\n background: var(--panel-2);\n border: 1px solid var(--line);\n line-height: 1.65;\n font-size: 14px;\n}\n\n.pa-answer p {\n margin: 0 0 10px;\n color: var(--text);\n white-space: pre-wrap;\n}\n\n.pa-answer p:last-child {\n margin-bottom: 0;\n}\n\n.pa-steps {\n list-style: none;\n margin: 4px 0 10px;\n padding: 0;\n display: grid;\n gap: 5px;\n font-size: 12px;\n color: var(--text-3);\n}\n\n.pa-steps li::before {\n content: '\u2713 ';\n color: var(--good);\n font-weight: 600;\n}\n\n.pa-steps li.is-live {\n color: var(--text);\n animation: pa-pulse 1.4s ease-in-out infinite;\n}\n\n.pa-steps li.is-live::before {\n content: '\u203A ';\n color: var(--accent);\n}\n\n@keyframes pa-pulse {\n 50% { opacity: 0.45; }\n}\n\n.pa-warn {\n color: var(--fix);\n font-size: var(--fs-meta);\n margin: 8px 0 0;\n}\n\n.pa-form {\n border-top: 1px solid var(--line);\n padding: 12px 16px 14px;\n display: grid;\n gap: 8px;\n background: rgba(7, 9, 13, 0.55);\n}\n\n.pa-form textarea {\n width: 100%;\n box-sizing: border-box;\n resize: none;\n background: var(--inset);\n border: 1px solid var(--line-2);\n border-radius: 10px;\n padding: 10px 12px;\n color: var(--text);\n font: inherit;\n font-size: 14px;\n line-height: 1.5;\n}\n\n.pa-form textarea:focus {\n outline: none;\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(229, 174, 78, 0.14);\n}\n\n.pa-btn {\n justify-self: end;\n background: var(--panel-2);\n border: 1px solid var(--line-2);\n color: var(--text);\n border-radius: 999px;\n padding: 7px 18px;\n font-size: var(--fs-meta);\n font-weight: 600;\n cursor: pointer;\n}\n\n.pa-btn.is-primary {\n background: linear-gradient(180deg, var(--accent-bright), var(--accent));\n border-color: transparent;\n color: var(--accent-ink);\n box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);\n}\n\n.pa-btn.is-primary:hover:not(:disabled) {\n filter: brightness(1.06);\n}\n\n.pa-btn:disabled {\n opacity: 0.45;\n cursor: default;\n}\n\n@media (max-width: 960px) {\n .pa-body {\n grid-template-columns: 1fr;\n }\n .pa-data {\n border-right: 0;\n border-bottom: 1px solid var(--line);\n }\n .pa-chat {\n max-height: none;\n }\n}\n\n@media (max-width: 600px) {\n .pa-grid {\n grid-template-columns: 1fr;\n }\n .pa-head,\n .pa-data,\n .pa-log {\n padding-left: 16px;\n padding-right: 16px;\n }\n}\n";
|
|
491
491
|
|
|
492
492
|
// packages/dsh/src/client/dsh-overrides.css
|
|
493
|
-
var dsh_overrides_default = "/* Container overrides so dota2.ai's `.cx` shell fills DSH's `main` workspace slot cleanly without affecting DSH's own UI. */\n.dota2ai-dsh-host {\n width: 100%;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n position: relative;\n background: #07090d;\n color: #f1f4f9;\n}\n\n.dota2ai-dsh-host > .cx {\n height: 100%;\n min-height: 0;\n flex: 1 1 auto;\n}\n\n.dota2ai-dsh-error {\n margin: auto;\n max-width: 440px;\n padding: 28px;\n border-radius: 14px;\n background: #0e1219;\n border: 1px solid rgba(226, 234, 245, 0.14);\n text-align: center;\n}\n\n.dota2ai-dsh-error h2 {\n margin: 0 0 8px;\n font-size: 18px;\n color: #f1f4f9;\n}\n\n.dota2ai-dsh-error p {\n margin: 0 0 18px;\n font-size: 14px;\n color: #a9b4c4;\n}\n\n.dota2ai-dsh-error button {\n padding: 8px 16px;\n border-radius: 8px;\n border: 1px solid rgba(229, 174, 78, 0.45);\n background: rgba(229, 174, 78, 0.14);\n color: #f2c068;\n font-weight: 600;\n cursor: pointer;\n}\n\n/* Conversation tool card (`tool.call.toolview`) inside DSH chat sessions */\n.dota2ai-tool-card {\n margin: 6px 0;\n padding: 10px 14px;\n border-radius: 10px;\n background: rgba(14, 18, 25, 0.92);\n border: 1px solid rgba(226, 234, 245, 0.12);\n color: #f1f4f9;\n font-size: 13px;\n}\n\n.dota2ai-tool-head {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n}\n\n.dota2ai-tool-brand {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n.dota2ai-tool-id {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 12px;\n color: #a9b4c4;\n}\n\n.dota2ai-tool-badge {\n font-size: 11px;\n padding: 2px 7px;\n border-radius: 999px;\n background: rgba(229, 174, 78, 0.14);\n color: #f2c068;\n border: 1px solid rgba(229, 174, 78, 0.32);\n}\n\n.dota2ai-tool-open {\n padding: 4px 10px;\n border-radius: 7px;\n border: 1px solid rgba(229, 174, 78, 0.42);\n background: rgba(229, 174, 78, 0.14);\n color: #f2c068;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n\n.dota2ai-tool-open:hover {\n background: rgba(229, 174, 78, 0.24);\n}\n\n.dota2ai-tool-verdict {\n margin: 8px 0 4px;\n color: #e2eaf5;\n line-height: 1.5;\n}\n\n.dota2ai-tool-details {\n margin-top: 6px;\n}\n\n.dota2ai-tool-details summary {\n cursor: pointer;\n color: #8794a7;\n font-size: 12px;\n}\n\n.dota2ai-tool-details pre {\n margin: 6px 0 0;\n padding: 8px 10px;\n max-height: 220px;\n overflow: auto;\n border-radius: 6px;\n background: #05070a;\n color: #a9b4c4;\n font-size: 11.5px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n";
|
|
493
|
+
var dsh_overrides_default = "/* Container overrides so dota2.ai's `.cx` shell fills DSH's `main` workspace slot cleanly without affecting DSH's own UI. */\n.dota2ai-dsh-host {\n width: 100%;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n position: relative;\n background: #07090d;\n color: #f1f4f9;\n}\n\n.dota2ai-dsh-host > .cx {\n height: 100%;\n min-height: 0;\n flex: 1 1 auto;\n}\n\n.dota2ai-dsh-error {\n margin: auto;\n max-width: 440px;\n padding: 28px;\n border-radius: 14px;\n background: #0e1219;\n border: 1px solid rgba(226, 234, 245, 0.14);\n text-align: center;\n}\n\n.dota2ai-dsh-error h2 {\n margin: 0 0 8px;\n font-size: 18px;\n color: #f1f4f9;\n}\n\n.dota2ai-dsh-error p {\n margin: 0 0 18px;\n font-size: 14px;\n color: #a9b4c4;\n}\n\n.dota2ai-dsh-error button {\n padding: 8px 16px;\n border-radius: 8px;\n border: 1px solid rgba(229, 174, 78, 0.45);\n background: rgba(229, 174, 78, 0.14);\n color: #f2c068;\n font-weight: 600;\n cursor: pointer;\n}\n\n/* Conversation tool card (`tool.call.toolview`) inside DSH chat sessions */\n.dota2ai-tool-card {\n margin: 6px 0;\n padding: 10px 14px;\n border-radius: 10px;\n background: rgba(14, 18, 25, 0.92);\n border: 1px solid rgba(226, 234, 245, 0.12);\n color: #f1f4f9;\n font-size: 13px;\n}\n\n.dota2ai-tool-head {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 10px;\n}\n\n.dota2ai-tool-brand {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n}\n\n.dota2ai-tool-id {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 12px;\n color: #a9b4c4;\n}\n\n.dota2ai-tool-badge {\n font-size: 11px;\n padding: 2px 7px;\n border-radius: 999px;\n background: rgba(229, 174, 78, 0.14);\n color: #f2c068;\n border: 1px solid rgba(229, 174, 78, 0.32);\n}\n\n.dota2ai-tool-open {\n padding: 4px 10px;\n border-radius: 7px;\n border: 1px solid rgba(229, 174, 78, 0.42);\n background: rgba(229, 174, 78, 0.14);\n color: #f2c068;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n\n.dota2ai-tool-open:hover {\n background: rgba(229, 174, 78, 0.24);\n}\n\n.dota2ai-tool-verdict {\n margin: 8px 0 4px;\n color: #e2eaf5;\n line-height: 1.5;\n}\n\n.dota2ai-tool-preview {\n margin: 8px 0 6px;\n padding-top: 8px;\n border-top: 1px solid rgba(226, 234, 245, 0.08);\n display: flex;\n flex-direction: column;\n gap: 7px;\n min-width: 0;\n}\n\n.dota2ai-tool-highlights {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n}\n\n.dota2ai-tool-highlight-badge {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 2px 8px;\n border-radius: 999px;\n font-size: 11px;\n font-weight: 600;\n line-height: 1.4;\n color: #7ae094;\n background: rgba(82, 201, 114, 0.12);\n border: 1px solid rgba(82, 201, 114, 0.34);\n white-space: nowrap;\n}\n\n.dota2ai-tool-highlight-dot {\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: #52c972;\n flex: 0 0 auto;\n}\n\n.dota2ai-tool-highlight-top {\n min-width: 0;\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 12px;\n color: #c7d2e2;\n}\n\n.dota2ai-tool-chapters {\n display: flex;\n flex-wrap: wrap;\n gap: 5px;\n min-width: 0;\n}\n\n.dota2ai-tool-chapter {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 2px 8px;\n border-radius: 999px;\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n border: 1px solid rgba(226, 234, 245, 0.14);\n background: rgba(255, 255, 255, 0.04);\n color: #cfd8e6;\n white-space: nowrap;\n}\n\n.dota2ai-tool-chapter-dot {\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background: currentColor;\n flex: 0 0 auto;\n}\n\n.dota2ai-tool-chapter.is-praise {\n color: #7ae094;\n background: rgba(82, 201, 114, 0.11);\n border-color: rgba(82, 201, 114, 0.34);\n}\n\n.dota2ai-tool-chapter.is-solid {\n color: #8cc9f2;\n background: rgba(104, 181, 232, 0.11);\n border-color: rgba(104, 181, 232, 0.34);\n}\n\n.dota2ai-tool-chapter.is-mixed {\n color: #f2c068;\n background: rgba(229, 174, 78, 0.11);\n border-color: rgba(229, 174, 78, 0.34);\n}\n\n.dota2ai-tool-chapter.is-key_gap {\n color: #f59487;\n background: rgba(232, 100, 82, 0.11);\n border-color: rgba(232, 100, 82, 0.34);\n}\n\n.dota2ai-tool-details {\n margin-top: 6px;\n}\n\n.dota2ai-tool-details summary {\n cursor: pointer;\n color: #8794a7;\n font-size: 12px;\n}\n\n.dota2ai-tool-details pre {\n margin: 6px 0 0;\n padding: 8px 10px;\n max-height: 220px;\n overflow: auto;\n border-radius: 6px;\n background: #05070a;\n color: #a9b4c4;\n font-size: 11.5px;\n white-space: pre-wrap;\n word-break: break-word;\n}\n";
|
|
494
494
|
|
|
495
495
|
// packages/dsh/src/typert.js
|
|
496
496
|
init_define_import_meta_env();
|
|
@@ -26139,13 +26139,10 @@ var UI = {
|
|
|
26139
26139
|
allRecent: { en: "All recent games", zh: "\u5168\u90E8\u6700\u8FD1\u6BD4\u8D5B", ru: "\u0412\u0441\u0435 \u043D\u0435\u0434\u0430\u0432\u043D\u0438\u0435 \u0438\u0433\u0440\u044B" },
|
|
26140
26140
|
reviewedTag: { en: "Reviewed", zh: "\u5DF2\u590D\u76D8", ru: "\u0420\u0430\u0437\u043E\u0431\u0440\u0430\u043D\u043E" },
|
|
26141
26141
|
newTag: { en: "New", zh: "\u65B0", ru: "\u041D\u043E\u0432\u043E\u0435" },
|
|
26142
|
-
setGoal: { en: "Make this my next-game goal", zh: "\u8BBE\u4E3A\u4E0B\u5C40\u76EE\u6807", ru: "\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0446\u0435\u043B\u044C\u044E \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E \u0438\u0433\u0440\u0443" },
|
|
26143
|
-
goalSet: { en: "Your next-game goal", zh: "\u5DF2\u8BBE\u4E3A\u4E0B\u5C40\u76EE\u6807", ru: "\u0412\u0430\u0448\u0430 \u0446\u0435\u043B\u044C \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E \u0438\u0433\u0440\u0443" },
|
|
26144
26142
|
goalClear: { en: "Clear", zh: "\u53D6\u6D88", ru: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C" },
|
|
26145
26143
|
goalCheckTitle: { en: "Your goal", zh: "\u4F60\u7684\u76EE\u6807", ru: "\u0412\u0430\u0448\u0430 \u0446\u0435\u043B\u044C" },
|
|
26146
26144
|
goalPill: { en: "Goal", zh: "\u76EE\u6807", ru: "\u0426\u0435\u043B\u044C" },
|
|
26147
26145
|
goalFrom: { en: "set after game #{id}", zh: "\u6765\u81EA #{id} \u90A3\u5C40\u7684\u590D\u76D8", ru: "\u043F\u043E\u0441\u043B\u0435 \u043C\u0430\u0442\u0447\u0430 #{id}" },
|
|
26148
|
-
goalHere: { en: "You set this goal from this game. Play your next one \u2014 the coach checks it automatically.", zh: "\u76EE\u6807\u5C31\u662F\u4ECE\u8FD9\u5C40\u5B9A\u7684\u3002\u6253\u4E0B\u4E00\u5C40\uFF0C\u6559\u7EC3\u4F1A\u81EA\u52A8\u6838\u9A8C\u3002", ru: "\u042D\u0442\u0430 \u0446\u0435\u043B\u044C \u0437\u0430\u0434\u0430\u043D\u0430 \u043F\u043E \u0434\u0430\u043D\u043D\u043E\u043C\u0443 \u043C\u0430\u0442\u0447\u0443. \u0421\u044B\u0433\u0440\u0430\u0439\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u2014 \u0442\u0440\u0435\u043D\u0435\u0440 \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442 \u0435\u0451 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438." },
|
|
26149
26146
|
goalPending: { en: "No game checked against it yet \u2014 play your next one, then open it here.", zh: "\u8FD8\u6CA1\u6709\u5BF9\u5C40\u6838\u9A8C\u8FC7\u8FD9\u4E2A\u76EE\u6807\u2014\u2014\u6253\u5B8C\u4E0B\u4E00\u5C40\uFF0C\u518D\u5728\u8FD9\u91CC\u6253\u5F00\u5B83\u3002", ru: "\u0426\u0435\u043B\u044C \u0435\u0449\u0451 \u043D\u0435 \u043F\u0440\u043E\u0432\u0435\u0440\u044F\u043B\u0430\u0441\u044C \u2014 \u0441\u044B\u0433\u0440\u0430\u0439\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043C\u0430\u0442\u0447 \u0438 \u043E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u0435\u0433\u043E \u0437\u0434\u0435\u0441\u044C." },
|
|
26150
26147
|
goalTally: { en: "{met} of {n} games met", zh: "{n} \u5C40\u91CC\u8FBE\u6210 {met} \u5C40", ru: "\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u043E \u0432 {met} \u0438\u0437 {n} \u0438\u0433\u0440" },
|
|
26151
26148
|
goalResult: {
|
|
@@ -26269,6 +26266,7 @@ var GoalNavBadge = () => {
|
|
|
26269
26266
|
}, [open2]);
|
|
26270
26267
|
if (!goal) return null;
|
|
26271
26268
|
const tl = tally(goal.id);
|
|
26269
|
+
const label = goal.goal?.label ? L(goal.goal.label) : "";
|
|
26272
26270
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref: wrapRef, className: "cx-goal-nav", children: [
|
|
26273
26271
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("button", { type: "button", className: "cx-goal-pill", "aria-expanded": open2, onClick: () => setOpen((v) => !v), children: [
|
|
26274
26272
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "cx-goal-dot", "aria-hidden": "true" }),
|
|
@@ -26283,7 +26281,7 @@ var GoalNavBadge = () => {
|
|
|
26283
26281
|
" \xB7 ",
|
|
26284
26282
|
L(UI.goalFrom).replace("{id}", String(goal.fromMatch))
|
|
26285
26283
|
] }),
|
|
26286
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "cx-goal-pop-label", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children:
|
|
26284
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "cx-goal-pop-label", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: label }) }),
|
|
26287
26285
|
tl.n > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "cx-muted", children: L(UI.goalTally).replace("{n}", String(tl.n)).replace("{met}", String(tl.met)) }),
|
|
26288
26286
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "cx-goal-pop-actions", children: [
|
|
26289
26287
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Link, { to: `/r/${goal.fromMatch}?lang=${lang}`, onClick: () => setOpen(false), children: [
|
|
@@ -26359,7 +26357,6 @@ var Shell = ({
|
|
|
26359
26357
|
var LatestGame = ({ accountId }) => {
|
|
26360
26358
|
const { lang, L } = useLang();
|
|
26361
26359
|
const [latest, setLatest] = (0, import_react11.useState)(null);
|
|
26362
|
-
const goal = useActiveGoal();
|
|
26363
26360
|
(0, import_react11.useEffect)(() => {
|
|
26364
26361
|
const ac = new AbortController();
|
|
26365
26362
|
fetchRecentMatches(accountId, ac.signal).then((r) => setLatest(r.matches[0] ?? null)).catch(() => {
|
|
@@ -26372,56 +26369,22 @@ var LatestGame = ({ accountId }) => {
|
|
|
26372
26369
|
] });
|
|
26373
26370
|
if (!latest) return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "cx-example", children: all });
|
|
26374
26371
|
const reviewed = reviewedMatches().has(String(latest.match_id));
|
|
26375
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.
|
|
26376
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
26377
|
-
|
|
26378
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
26379
|
-
|
|
26380
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.
|
|
26381
|
-
|
|
26382
|
-
|
|
26383
|
-
|
|
26384
|
-
|
|
26385
|
-
|
|
26386
|
-
reviewed && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "cx-tag", children: L(UI.reviewedTag) })
|
|
26387
|
-
] }),
|
|
26388
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Link, { to: `/r/${latest.match_id}?${latest.slot != null ? `p=${latest.slot}&` : ""}lang=${lang}`, className: "cx-patch-cta cx-latest-cta", children: L(UI.latestCta) })
|
|
26372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "cx-latest", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "cx-latest-card", children: [
|
|
26373
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "cx-eyebrow", children: L(UI.latestTitle) }),
|
|
26374
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "cx-latest-row", children: [
|
|
26375
|
+
latest.hero.icon ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SafeImg, { src: latest.hero.icon, alt: "", className: "cx-recent-icon" }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "cx-recent-icon" }),
|
|
26376
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "cx-latest-text", children: [
|
|
26377
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("b", { children: lang === "zh" ? latest.hero.zh : latest.hero.en }),
|
|
26378
|
+
" ",
|
|
26379
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: latest.won ? "is-win" : latest.won === false ? "is-loss" : "", children: latest.won == null ? "" : L(latest.won ? UI.win : UI.loss) }),
|
|
26380
|
+
" ",
|
|
26381
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "cx-recent-kda", children: latest.kda ? latest.kda.join("/") : "\u2014" }),
|
|
26382
|
+
reviewed && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "cx-tag", children: L(UI.reviewedTag) })
|
|
26389
26383
|
] }),
|
|
26390
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
26391
|
-
] }),
|
|
26392
|
-
goal && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(LatestGoal, { goal, latest })
|
|
26393
|
-
] });
|
|
26394
|
-
};
|
|
26395
|
-
var LatestGoal = ({ goal, latest }) => {
|
|
26396
|
-
const { L } = useLang();
|
|
26397
|
-
const [check2, setCheck] = (0, import_react11.useState)(null);
|
|
26398
|
-
const counts2 = latest.match_id !== goal.fromMatch && (latest.start_time ?? 0) > goal.fromStart;
|
|
26399
|
-
(0, import_react11.useEffect)(() => {
|
|
26400
|
-
if (!counts2) return;
|
|
26401
|
-
const ac = new AbortController();
|
|
26402
|
-
fetchCoachReport(String(latest.match_id), { signal: ac.signal }).then((r) => {
|
|
26403
|
-
const acct = Number(goal.accountId ?? rememberedAccount());
|
|
26404
|
-
const seat = latest.slot ?? r.players.find((p) => p.account_id != null && p.account_id === acct)?.slot;
|
|
26405
|
-
if (seat != null) setCheck(checkGoal(goal, r, seat));
|
|
26406
|
-
}).catch(() => {
|
|
26407
|
-
});
|
|
26408
|
-
return () => ac.abort();
|
|
26409
|
-
}, [counts2, goal, latest.match_id, latest.slot]);
|
|
26410
|
-
const tl = tally(goal.id);
|
|
26411
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "cx-latest-goal-card", children: [
|
|
26412
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { className: "cx-eyebrow", children: [
|
|
26413
|
-
L(UI.goalCheckTitle),
|
|
26414
|
-
tl.n > 0 ? ` \xB7 ${L(UI.goalTally).replace("{n}", String(tl.n)).replace("{met}", String(tl.met))}` : ""
|
|
26415
|
-
] }),
|
|
26416
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { className: "cx-latest-goal", children: [
|
|
26417
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: L(goal.goal.label) }),
|
|
26418
|
-
check2 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ResultPill, { r: check2.result }) : !counts2 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "cx-muted", children: [
|
|
26419
|
-
" \xB7 ",
|
|
26420
|
-
L(UI.goalHere)
|
|
26421
|
-
] }) : null
|
|
26384
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Link, { to: `/r/${latest.match_id}?${latest.slot != null ? `p=${latest.slot}&` : ""}lang=${lang}`, className: "cx-patch-cta cx-latest-cta", children: L(UI.latestCta) })
|
|
26422
26385
|
] }),
|
|
26423
|
-
|
|
26424
|
-
] });
|
|
26386
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "cx-example", children: all })
|
|
26387
|
+
] }) });
|
|
26425
26388
|
};
|
|
26426
26389
|
var CoachPlayerPage = () => {
|
|
26427
26390
|
const { accountId = "" } = useParams();
|
|
@@ -31946,6 +31909,63 @@ var Dota2AiPanel = ({ t: t2, useNav }) => {
|
|
|
31946
31909
|
|
|
31947
31910
|
// packages/dsh/src/client/ToolCard.tsx
|
|
31948
31911
|
init_define_import_meta_env();
|
|
31912
|
+
|
|
31913
|
+
// packages/dsh/src/client/locales.ts
|
|
31914
|
+
init_define_import_meta_env();
|
|
31915
|
+
var zh2 = {
|
|
31916
|
+
title: "dota2.ai",
|
|
31917
|
+
open: "\u5728 dota2.ai \u9875\u9762\u6253\u5F00",
|
|
31918
|
+
openHome: "\u6253\u5F00 dota2.ai \u5DE5\u4F5C\u53F0",
|
|
31919
|
+
details: "\u5DE5\u5177\u539F\u59CB\u8FD4\u56DE",
|
|
31920
|
+
statusReady: "\u590D\u76D8\u5DF2\u5C31\u7EEA",
|
|
31921
|
+
statusWorking: "\u6B63\u5728\u51C6\u5907\u590D\u76D8\u2026",
|
|
31922
|
+
statusPick: "\u7B49\u5F85\u9009\u62E9\u82F1\u96C4",
|
|
31923
|
+
highlightCountOne: "1 \u5904\u9AD8\u5149",
|
|
31924
|
+
highlightCountMany: "{n} \u5904\u9AD8\u5149",
|
|
31925
|
+
chaptersLabel: "\u5168\u7EF4\u5EA6\u590D\u76D8",
|
|
31926
|
+
topicDraftAndLanes: "\u9635\u5BB9\u4E0E\u5206\u8DEF",
|
|
31927
|
+
topicLaning: "\u5BF9\u7EBF\u671F",
|
|
31928
|
+
topicSkillBuild: "\u6280\u80FD\u52A0\u70B9",
|
|
31929
|
+
topicItems: "\u51FA\u88C5\u601D\u8DEF",
|
|
31930
|
+
topicTeamfights: "\u56E2\u6218\u8868\u73B0",
|
|
31931
|
+
topicMacro: "\u8FD0\u8425\u601D\u8DEF",
|
|
31932
|
+
topicOther: "\u5173\u952E\u7EC6\u8282",
|
|
31933
|
+
assessmentPraise: "\u672C\u5C40\u4EAE\u70B9",
|
|
31934
|
+
assessmentSolid: "\u6267\u884C\u7A33\u5065",
|
|
31935
|
+
assessmentMixed: "\u6709\u5F97\u6709\u5931",
|
|
31936
|
+
assessmentKeyGap: "\u91CD\u70B9\u6253\u78E8",
|
|
31937
|
+
renderErrorTitle: "\u9875\u9762\u89C6\u56FE\u6682\u65F6\u65E0\u6CD5\u663E\u793A",
|
|
31938
|
+
renderErrorBody: "\u672C\u5730\u5DF2\u4FDD\u5B58\u7684\u5F55\u50CF\u7F13\u5B58\u3001\u590D\u76D8\u4E0E\u8BAD\u7EC3\u76EE\u6807\u5747\u5B8C\u597D\u4FDD\u7559\u3002",
|
|
31939
|
+
restore: "\u91CD\u65B0\u52A0\u8F7D\u89C6\u56FE"
|
|
31940
|
+
};
|
|
31941
|
+
var en2 = {
|
|
31942
|
+
title: "dota2.ai",
|
|
31943
|
+
open: "Open in dota2.ai",
|
|
31944
|
+
openHome: "Open dota2.ai workbench",
|
|
31945
|
+
details: "Raw tool output",
|
|
31946
|
+
statusReady: "Review ready",
|
|
31947
|
+
statusWorking: "Working on review\u2026",
|
|
31948
|
+
statusPick: "Pick your hero",
|
|
31949
|
+
highlightCountOne: "1 highlight",
|
|
31950
|
+
highlightCountMany: "{n} highlights",
|
|
31951
|
+
chaptersLabel: "Match breakdown",
|
|
31952
|
+
topicDraftAndLanes: "Draft & lanes",
|
|
31953
|
+
topicLaning: "Laning",
|
|
31954
|
+
topicSkillBuild: "Skill build",
|
|
31955
|
+
topicItems: "Item build",
|
|
31956
|
+
topicTeamfights: "Teamfights",
|
|
31957
|
+
topicMacro: "Macro & tempo",
|
|
31958
|
+
topicOther: "Key details",
|
|
31959
|
+
assessmentPraise: "Standout",
|
|
31960
|
+
assessmentSolid: "Solid",
|
|
31961
|
+
assessmentMixed: "Mixed",
|
|
31962
|
+
assessmentKeyGap: "Key focus",
|
|
31963
|
+
renderErrorTitle: "This view could not be displayed",
|
|
31964
|
+
renderErrorBody: "Your cached replays, reviews and training goals are safe.",
|
|
31965
|
+
restore: "Reload view"
|
|
31966
|
+
};
|
|
31967
|
+
|
|
31968
|
+
// packages/dsh/src/client/ToolCard.tsx
|
|
31949
31969
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
31950
31970
|
function NavIcon({ size = 18 }) {
|
|
31951
31971
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { width: size, height: size, viewBox: "0 0 64 64", fill: "none", "aria-hidden": "true", children: [
|
|
@@ -31957,6 +31977,21 @@ function NavIcon({ size = 18 }) {
|
|
|
31957
31977
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "47", cy: "17", r: "4", fill: "#e86452" })
|
|
31958
31978
|
] });
|
|
31959
31979
|
}
|
|
31980
|
+
var TOPIC_KEYS = {
|
|
31981
|
+
draft_and_lanes: "topicDraftAndLanes",
|
|
31982
|
+
laning: "topicLaning",
|
|
31983
|
+
skill_build: "topicSkillBuild",
|
|
31984
|
+
items: "topicItems",
|
|
31985
|
+
teamfights: "topicTeamfights",
|
|
31986
|
+
macro: "topicMacro",
|
|
31987
|
+
other: "topicOther"
|
|
31988
|
+
};
|
|
31989
|
+
var ASSESSMENT_KEYS = {
|
|
31990
|
+
praise: "assessmentPraise",
|
|
31991
|
+
solid: "assessmentSolid",
|
|
31992
|
+
mixed: "assessmentMixed",
|
|
31993
|
+
key_gap: "assessmentKeyGap"
|
|
31994
|
+
};
|
|
31960
31995
|
var TOOL_TITLES = {
|
|
31961
31996
|
dota2ai_replay_review: { en: "dota2.ai \xB7 Replay Review", zh: "dota2.ai \xB7 \u5F55\u50CF\u6DF1\u5EA6\u590D\u76D8" },
|
|
31962
31997
|
dota2ai_recent_matches: { en: "dota2.ai \xB7 Recent Games", zh: "dota2.ai \xB7 \u6700\u8FD1\u6BD4\u8D5B" },
|
|
@@ -31966,8 +32001,14 @@ var TOOL_TITLES = {
|
|
|
31966
32001
|
dota2ai_goal_check: { en: "dota2.ai \xB7 Goal Check", zh: "dota2.ai \xB7 \u76EE\u6807\u6838\u9A8C" },
|
|
31967
32002
|
dota2ai_hero_matchup: { en: "dota2.ai \xB7 Hero Matchup", zh: "dota2.ai \xB7 \u82F1\u96C4\u5BF9\u4F4D" }
|
|
31968
32003
|
};
|
|
32004
|
+
var normHero = (raw) => raw.trim().toLowerCase().replace(/^npc_dota_hero_/, "").replace(/[\s-]+/g, "_");
|
|
31969
32005
|
var ToolCard = ({ toolName, block, t: t2, openPath }) => {
|
|
31970
|
-
const
|
|
32006
|
+
const openLabel = typeof t2 === "function" ? t2("open") : "";
|
|
32007
|
+
const isZh = typeof openLabel === "string" && openLabel.includes("\u6253\u5F00");
|
|
32008
|
+
const tr = (key) => {
|
|
32009
|
+
const value = typeof t2 === "function" ? t2(key) : "";
|
|
32010
|
+
return typeof value === "string" && value ? value : isZh ? zh2[key] : en2[key];
|
|
32011
|
+
};
|
|
31971
32012
|
const head = block?.call ?? block;
|
|
31972
32013
|
let matchId = null;
|
|
31973
32014
|
let hero = null;
|
|
@@ -31980,7 +32021,7 @@ var ToolCard = ({ toolName, block, t: t2, openPath }) => {
|
|
|
31980
32021
|
matchId = String(rawArgs.match_id);
|
|
31981
32022
|
}
|
|
31982
32023
|
if (typeof rawArgs.hero === "string" && rawArgs.hero.trim()) {
|
|
31983
|
-
hero = rawArgs.hero
|
|
32024
|
+
hero = normHero(rawArgs.hero);
|
|
31984
32025
|
}
|
|
31985
32026
|
if (typeof rawArgs.account === "string" && /^\d{1,10}$/.test(rawArgs.account.trim())) {
|
|
31986
32027
|
account = rawArgs.account.trim();
|
|
@@ -31992,18 +32033,50 @@ var ToolCard = ({ toolName, block, t: t2, openPath }) => {
|
|
|
31992
32033
|
} catch {
|
|
31993
32034
|
}
|
|
31994
32035
|
const content = Array.isArray(block?.content) ? block.content : Array.isArray(block?.result?.content) ? block.result.content : [];
|
|
31995
|
-
const rawText = content.map((c) => c?.type === "text" ? c.text : "").join("\n");
|
|
32036
|
+
const rawText = content.map((c) => c?.type === "text" && typeof c.text === "string" ? c.text : "").join("\n");
|
|
31996
32037
|
let verdict = null;
|
|
31997
32038
|
let statusBadge = null;
|
|
32039
|
+
let highlights = [];
|
|
32040
|
+
let chapters = [];
|
|
31998
32041
|
if (rawText) {
|
|
31999
32042
|
try {
|
|
32000
32043
|
const parsed = JSON.parse(rawText);
|
|
32001
|
-
if (parsed && typeof parsed === "object") {
|
|
32002
|
-
if (
|
|
32003
|
-
|
|
32004
|
-
|
|
32005
|
-
|
|
32006
|
-
|
|
32044
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
32045
|
+
if (!matchId && parsed.match_id != null && /^[1-9]\d{0,12}$/.test(String(parsed.match_id))) {
|
|
32046
|
+
matchId = String(parsed.match_id);
|
|
32047
|
+
}
|
|
32048
|
+
if (typeof parsed.hero === "string" && parsed.hero.trim() && !hero) {
|
|
32049
|
+
hero = normHero(parsed.hero);
|
|
32050
|
+
}
|
|
32051
|
+
if (parsed.lang === "zh" || parsed.lang === "en") {
|
|
32052
|
+
lang = parsed.lang;
|
|
32053
|
+
}
|
|
32054
|
+
if (typeof parsed.verdict === "string" && parsed.verdict.trim()) verdict = parsed.verdict.trim();
|
|
32055
|
+
if (parsed.status === "ready") statusBadge = tr("statusReady");
|
|
32056
|
+
else if (parsed.status === "parsing" || parsed.status === "reviewing") statusBadge = tr("statusWorking");
|
|
32057
|
+
else if (parsed.status === "pick_hero") statusBadge = tr("statusPick");
|
|
32058
|
+
if (toolName === "dota2ai_replay_review" && parsed.status === "ready") {
|
|
32059
|
+
if (Array.isArray(parsed.highlights)) {
|
|
32060
|
+
const rawHighlights = parsed.highlights;
|
|
32061
|
+
highlights = rawHighlights.filter((h) => Boolean(h) && typeof h === "object" && !Array.isArray(h)).map((h) => ({
|
|
32062
|
+
title: typeof h.title === "string" ? h.title.trim() : "",
|
|
32063
|
+
detail: typeof h.detail === "string" ? h.detail.trim() : ""
|
|
32064
|
+
})).filter((h) => Boolean(h.title || h.detail));
|
|
32065
|
+
}
|
|
32066
|
+
if (Array.isArray(parsed.chapters)) {
|
|
32067
|
+
const rawChapters = parsed.chapters;
|
|
32068
|
+
chapters = rawChapters.filter((c) => Boolean(c) && typeof c === "object" && !Array.isArray(c)).map((c) => {
|
|
32069
|
+
const rawTopic = typeof c.topic === "string" ? c.topic.trim() : "";
|
|
32070
|
+
const title2 = typeof c.title === "string" ? c.title.trim() : "";
|
|
32071
|
+
const analysis = typeof c.analysis === "string" ? c.analysis.trim() : "";
|
|
32072
|
+
if (!rawTopic && !title2 && !analysis) return null;
|
|
32073
|
+
const topic = Object.prototype.hasOwnProperty.call(TOPIC_KEYS, rawTopic) ? rawTopic : "other";
|
|
32074
|
+
const rawAssessment = typeof c.assessment === "string" ? c.assessment.trim() : "";
|
|
32075
|
+
const assessment = Object.prototype.hasOwnProperty.call(ASSESSMENT_KEYS, rawAssessment) ? rawAssessment : "mixed";
|
|
32076
|
+
return { topic, title: title2, assessment };
|
|
32077
|
+
}).filter((c) => c !== null);
|
|
32078
|
+
}
|
|
32079
|
+
}
|
|
32007
32080
|
}
|
|
32008
32081
|
} catch {
|
|
32009
32082
|
}
|
|
@@ -32011,6 +32084,9 @@ var ToolCard = ({ toolName, block, t: t2, openPath }) => {
|
|
|
32011
32084
|
const targetPath = matchId ? `/r/${encodeURIComponent(matchId)}?lang=${lang}${hero && /^[a-z0-9_]+$/.test(hero) ? `&hero=${encodeURIComponent(hero)}` : ""}` : account ? `/p/${encodeURIComponent(account)}?lang=${lang}` : `/?lang=${lang}`;
|
|
32012
32085
|
const titlePair = TOOL_TITLES[toolName];
|
|
32013
32086
|
const title = titlePair ? isZh ? titlePair.zh : titlePair.en : toolName;
|
|
32087
|
+
const topHighlight = highlights.find((h) => h.title)?.title ?? highlights[0]?.detail ?? "";
|
|
32088
|
+
const highlightsBadge = highlights.length === 1 ? tr("highlightCountOne") : tr("highlightCountMany").replace("{n}", String(highlights.length));
|
|
32089
|
+
const hasCoachPreview = highlights.length > 0 || chapters.length > 0;
|
|
32014
32090
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "dota2ai-tool-card", children: [
|
|
32015
32091
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "dota2ai-tool-head", children: [
|
|
32016
32092
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "dota2ai-tool-brand", children: [
|
|
@@ -32023,45 +32099,45 @@ var ToolCard = ({ toolName, block, t: t2, openPath }) => {
|
|
|
32023
32099
|
statusBadge && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "dota2ai-tool-badge", children: statusBadge })
|
|
32024
32100
|
] }),
|
|
32025
32101
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("button", { type: "button", className: "dota2ai-tool-open", onClick: () => openPath(targetPath), children: [
|
|
32026
|
-
matchId || account ?
|
|
32102
|
+
matchId || account ? tr("open") : tr("openHome"),
|
|
32027
32103
|
" \u2192"
|
|
32028
32104
|
] })
|
|
32029
32105
|
] }),
|
|
32030
32106
|
verdict && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "dota2ai-tool-verdict", children: verdict }),
|
|
32107
|
+
hasCoachPreview && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "dota2ai-tool-preview", children: [
|
|
32108
|
+
highlights.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "dota2ai-tool-highlights", children: [
|
|
32109
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "dota2ai-tool-highlight-badge", children: [
|
|
32110
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "dota2ai-tool-highlight-dot", "aria-hidden": "true" }),
|
|
32111
|
+
highlightsBadge
|
|
32112
|
+
] }),
|
|
32113
|
+
topHighlight && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "dota2ai-tool-highlight-top", title: topHighlight, children: topHighlight })
|
|
32114
|
+
] }),
|
|
32115
|
+
chapters.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "dota2ai-tool-chapters", role: "list", "aria-label": tr("chaptersLabel"), children: chapters.map((ch, idx) => {
|
|
32116
|
+
const topicLabel = tr(TOPIC_KEYS[ch.topic]);
|
|
32117
|
+
const assessmentLabel = tr(ASSESSMENT_KEYS[ch.assessment]);
|
|
32118
|
+
const tip = ch.title ? `${ch.title} \xB7 ${assessmentLabel}` : `${topicLabel} \xB7 ${assessmentLabel}`;
|
|
32119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
32120
|
+
"span",
|
|
32121
|
+
{
|
|
32122
|
+
role: "listitem",
|
|
32123
|
+
className: `dota2ai-tool-chapter is-${ch.assessment}`,
|
|
32124
|
+
title: tip,
|
|
32125
|
+
children: [
|
|
32126
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "dota2ai-tool-chapter-dot", "aria-hidden": "true" }),
|
|
32127
|
+
topicLabel
|
|
32128
|
+
]
|
|
32129
|
+
},
|
|
32130
|
+
`${ch.topic}-${idx}`
|
|
32131
|
+
);
|
|
32132
|
+
}) })
|
|
32133
|
+
] }),
|
|
32031
32134
|
(rawText || head?.argsRaw) && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("details", { className: "dota2ai-tool-details", children: [
|
|
32032
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("summary", { children:
|
|
32135
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("summary", { children: tr("details") }),
|
|
32033
32136
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("pre", { children: rawText || String(head?.argsRaw ?? "") })
|
|
32034
32137
|
] })
|
|
32035
32138
|
] });
|
|
32036
32139
|
};
|
|
32037
32140
|
|
|
32038
|
-
// packages/dsh/src/client/locales.ts
|
|
32039
|
-
init_define_import_meta_env();
|
|
32040
|
-
var zh2 = {
|
|
32041
|
-
title: "dota2.ai",
|
|
32042
|
-
open: "\u5728 dota2.ai \u9875\u9762\u6253\u5F00",
|
|
32043
|
-
openHome: "\u6253\u5F00 dota2.ai \u5DE5\u4F5C\u53F0",
|
|
32044
|
-
details: "\u5DE5\u5177\u539F\u59CB\u8FD4\u56DE",
|
|
32045
|
-
statusReady: "\u590D\u76D8\u5DF2\u5C31\u7EEA",
|
|
32046
|
-
statusWorking: "\u6B63\u5728\u51C6\u5907\u590D\u76D8\u2026",
|
|
32047
|
-
statusPick: "\u7B49\u5F85\u9009\u62E9\u82F1\u96C4",
|
|
32048
|
-
renderErrorTitle: "\u9875\u9762\u89C6\u56FE\u6682\u65F6\u65E0\u6CD5\u663E\u793A",
|
|
32049
|
-
renderErrorBody: "\u672C\u5730\u5DF2\u4FDD\u5B58\u7684\u5F55\u50CF\u7F13\u5B58\u3001\u590D\u76D8\u4E0E\u8BAD\u7EC3\u76EE\u6807\u5747\u5B8C\u597D\u4FDD\u7559\u3002",
|
|
32050
|
-
restore: "\u91CD\u65B0\u52A0\u8F7D\u89C6\u56FE"
|
|
32051
|
-
};
|
|
32052
|
-
var en2 = {
|
|
32053
|
-
title: "dota2.ai",
|
|
32054
|
-
open: "Open in dota2.ai",
|
|
32055
|
-
openHome: "Open dota2.ai workbench",
|
|
32056
|
-
details: "Raw tool output",
|
|
32057
|
-
statusReady: "Review ready",
|
|
32058
|
-
statusWorking: "Working on review\u2026",
|
|
32059
|
-
statusPick: "Pick your hero",
|
|
32060
|
-
renderErrorTitle: "This view could not be displayed",
|
|
32061
|
-
renderErrorBody: "Your cached replays, reviews and training goals are safe.",
|
|
32062
|
-
restore: "Reload view"
|
|
32063
|
-
};
|
|
32064
|
-
|
|
32065
32141
|
// packages/dsh/src/client/transport.ts
|
|
32066
32142
|
init_define_import_meta_env();
|
|
32067
32143
|
var STREAM_ROUTE = /^\/api\/(?:agent\/[^/]+\/chat|coach\/[^/]+\/ask|patch\/chat)(?:\?|$)/;
|
package/lib/index.js
CHANGED
|
@@ -12898,7 +12898,7 @@ function toolOptions({ coach, replay, lang = "en" }) {
|
|
|
12898
12898
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
12899
12899
|
var SKILL = {
|
|
12900
12900
|
name: "dota2ai",
|
|
12901
|
-
description: "Review a player's own Dota 2 game with dota2.ai: the replay review with checked evidence, why the game went that way, pro games on the same problem, follow-ups, and
|
|
12901
|
+
description: "Review a player's own Dota 2 game with dota2.ai: the replay review with checked evidence, why the game went that way, pro games on the same problem, follow-ups, and hero-vs-hero matchups.",
|
|
12902
12902
|
whenToUse: "Someone asks to review a Dota 2 match, why they lost, what to practise, how their last game went, or how one hero plays against another.",
|
|
12903
12903
|
source: "runtime"
|
|
12904
12904
|
};
|
|
@@ -12918,7 +12918,7 @@ import { join as join5 } from "node:path";
|
|
|
12918
12918
|
|
|
12919
12919
|
// lib/agent/review/schema.js
|
|
12920
12920
|
var DEEP_REVIEW_SCHEMA = "dota2.ai/deep-review@1";
|
|
12921
|
-
var DEEP_REVIEW_PROMPT_VERSION =
|
|
12921
|
+
var DEEP_REVIEW_PROMPT_VERSION = 77;
|
|
12922
12922
|
var MAX_REFS = 3;
|
|
12923
12923
|
var MAX_FINDINGS = 3;
|
|
12924
12924
|
var MAX_HIGHLIGHTS = 4;
|
|
@@ -13006,15 +13006,15 @@ var SUBMIT_REVIEW = {
|
|
|
13006
13006
|
type: "array",
|
|
13007
13007
|
minItems: 2,
|
|
13008
13008
|
maxItems: MAX_STORY,
|
|
13009
|
-
description: "
|
|
13009
|
+
description: "Concise 1-sentence-per-phase causal backbone in game order (2\u20135 links; do not repeat full `chapters` prose): each link names a stretch, what changed (gold, buildings, lane), and because of what, backed by exact records. The verdict sums this chain up in one sentence.",
|
|
13010
13010
|
items: {
|
|
13011
13011
|
type: "object",
|
|
13012
13012
|
additionalProperties: false,
|
|
13013
13013
|
required: ["phase", "what_changed", "because", "whose", "evidence"],
|
|
13014
13014
|
properties: {
|
|
13015
13015
|
phase: { ...STR, description: 'The stretch, with its times: "0:00\u201310:00, the lane", "24:00\u201327:47, the turn".' },
|
|
13016
|
-
what_changed: { ...STR, description: "
|
|
13017
|
-
because: { ...STR, description: "
|
|
13016
|
+
what_changed: { ...STR, description: "One concise sentence on what changed in this stretch, with the tools' numbers (gold lead, buildings, lane result)." },
|
|
13017
|
+
because: { ...STR, description: "One concise sentence on why, from the tools (where the gap came from, who joined, who was where). Facts, not motives." },
|
|
13018
13018
|
whose: { type: "string", enum: STORY_WHOSE, description: "Whose doing this link mostly is, in your judgment: me (what the player controlled), team, enemy, draft, or unclear." },
|
|
13019
13019
|
evidence: {
|
|
13020
13020
|
type: "array",
|
|
@@ -13071,19 +13071,15 @@ var SUBMIT_REVIEW = {
|
|
|
13071
13071
|
type: "object",
|
|
13072
13072
|
additionalProperties: false,
|
|
13073
13073
|
required: ["main_reason", "why"],
|
|
13074
|
-
description: "Whole-game judgment beside `story` (do not
|
|
13074
|
+
description: "Whole-game judgment beside `chapters` and `story` (do not re-summarize draft, timeline, or findings): state only `main_reason` and `why`, plus `against_your_plan` ONLY when the opening message names the player's stated plan; attach `evidence` ONLY for records not already cited in `chapters`/`story`.",
|
|
13075
13075
|
properties: {
|
|
13076
|
-
|
|
13077
|
-
strengths: { ...STR, description: "Optional: what the player's hero was up against and when, from power_spikes (matchups in public/pro games, key level/item timings, and from which enemy item the kills came). Leave out what the tool has no data for." },
|
|
13078
|
-
against_your_plan: { ...STR, description: "Only when the opening message says what the player's plan was: read the game against it (fit of items/play via build_for_plan & tempo_report, whether hero/window data supports it, and where it broke via farm_report/window_report). Leave out when the player did not state a plan." },
|
|
13079
|
-
window: { ...STR, description: 'Optional (omit when `story` already covers the gold windows): peak lead window, buildings/fights taken, and enemy items finished near its end (never say an item "ended" the window).' },
|
|
13080
|
-
course: { ...STR, description: "Optional (omit when `story` already covers the course of the game): summary of buildings and fights from tempo_report." },
|
|
13081
|
-
your_part: { ...STR, description: "Optional (omit when `story` already covers the player's map presence): where the player spent time and which fights/buildings they joined." },
|
|
13076
|
+
against_your_plan: { ...STR, description: "ONLY when the opening message names the player's stated plan: read the game against it (fit of items/play via build_for_plan & tempo_report, whether hero/window data supports it, and where it broke via farm_report/window_report). Omit when the player did not state a plan." },
|
|
13082
13077
|
main_reason: { type: "string", enum: PLAN_REASONS, description: "What the course of the game is mostly down to, in your judgment: your_play (the player's own play), team_play (the team's), enemy_play (what the enemy did), line_ups (the draft), unclear (the tools do not settle it)." },
|
|
13083
|
-
why: { ...STR, description: "One or two sentences arguing main_reason from what the tools showed
|
|
13078
|
+
why: { ...STR, description: "One or two sentences arguing main_reason from what the tools showed, without repeating `chapters` or `story`." },
|
|
13084
13079
|
evidence: {
|
|
13085
13080
|
type: "array",
|
|
13086
13081
|
maxItems: MAX_PLAN_EVIDENCE,
|
|
13082
|
+
description: "Optional: attach ONLY for records not already cited in `chapters`/`story`.",
|
|
13087
13083
|
items: {
|
|
13088
13084
|
type: "object",
|
|
13089
13085
|
additionalProperties: false,
|
|
@@ -13096,7 +13092,6 @@ var SUBMIT_REVIEW = {
|
|
|
13096
13092
|
}
|
|
13097
13093
|
}
|
|
13098
13094
|
},
|
|
13099
|
-
did_well: { type: "array", items: STR, maxItems: 3 },
|
|
13100
13095
|
encouragement: { ...STR, description: "1\u20132 sincere, specific closing sentences from the coach affirming the strengths already shown in this replay and building genuine confidence for future games." },
|
|
13101
13096
|
blind_spots: { type: "array", items: STR, description: "What the replay data could not show for this review (from the tools' gaps)." }
|
|
13102
13097
|
}
|
|
@@ -13149,18 +13144,19 @@ FIRST-PRINCIPLES DOTA 2 JUDGMENT
|
|
|
13149
13144
|
- **Context-aware cast, build & macro evaluation**: Judge skill builds (\`skill_build\`), spells (\`hero_abilities\`, \`ability_audit\`, \`immunity_windows\`), items (\`build_check\`, \`pro_item_choices\`, \`my_economy\` / \`estimated_minutes_of_my_farm\`, \`player_already_held_for_this_purpose\`, \`most_built_in_this_bracket\` / \`public_items_in_this_bracket\`, \`most_built_by_pros_on_this_hero\`), and macro against THIS game's draft, economy, and timings \u2014 never just for deviating from a standard build or because a cast did not kill within 12 s (peeling, zoning, forcing BKB, stopping TPs are real value). A cast that damaged several enemies was not wasted because one was spell immune; an ability with \`casts_logged: false\` was never "0 casts". For supports, inspect \`ward_report\`, \`save_report\`, and \`my_rotations_before_10_00\` (a reference across all ranks is context, not a bracket average or quota).
|
|
13150
13145
|
- **Fair attribution & emotional value**: In losses, clearly distinguish draft, team execution, and enemy tempo from what the player controlled \u2014 never charge the team's lost fights to a player who was not the cause. In EVERY game (win or loss), actively look for genuine positives (solid laning, standout \`me_in_fight\` damage/casts/saves, smart item/skill adaptation, composure in tough games) and praise them concretely with replay evidence. Write improvements in a collaborative "here is a sharper play next time" tone \u2014 never scolding, never mechanical KPI quotas.
|
|
13151
13146
|
|
|
13152
|
-
STRUCTURE OF \`submit_review\`
|
|
13153
|
-
- \`verdict\`: one crisp, balanced sentence summing up the game (
|
|
13154
|
-
- \`opening_note\`: 2\u20133
|
|
13155
|
-
- \`highlights\` (1\u2013${MAX_HIGHLIGHTS}): concrete, evidence-backed positives (optional \`evidence\` refs
|
|
13156
|
-
- \`chapters\` (2\u2013${MAX_CHAPTERS}):
|
|
13157
|
-
- \`story\` (2\
|
|
13147
|
+
STRUCTURE OF \`submit_review\` (no duplication across sections)
|
|
13148
|
+
- \`verdict\`: one crisp, balanced sentence summing up the game (1\u20132 key numbers max).
|
|
13149
|
+
- \`opening_note\`: 2\u20133 grounded coach sentences contextualizing this game (celebrate wins warmly or separate non-player factors in losses).
|
|
13150
|
+
- \`highlights\` (1\u2013${MAX_HIGHLIGHTS}): concrete, evidence-backed positives (optional \`evidence\` refs for minimap replay).
|
|
13151
|
+
- \`chapters\` (2\u2013${MAX_CHAPTERS}): carry the coaching analysis per dimension (\`draft_and_lanes\`, \`laning\`, \`skill_build\`, \`items\`, \`teamfights\`, \`macro\`, \`other\`), each with \`assessment\` (\`praise\`/\`solid\`/\`mixed\`/\`key_gap\`), \`analysis\`, \`evidence\`, and optional \`takeaway\` ONLY when real room to improve exists (omit for \`praise\`/\`solid\`).
|
|
13152
|
+
- \`story\` (2\u20135 links, 1 sentence per phase in game order): compact causal backbone \u2014 do not repeat \`chapters\` prose.
|
|
13153
|
+
- \`game_plan\`: only \`main_reason\` + \`why\` (+ \`against_your_plan\` ONLY if the opening message names a stated plan, using \`build_for_plan\`; optional \`evidence\` ONLY for records not cited in \`chapters\`/\`story\`) \u2014 never re-summarize draft or timeline already in \`chapters\`/\`story\`.
|
|
13158
13154
|
- \`findings\` (0\u2013${MAX_FINDINGS}, ordered by what mattered most to this player): only high-leverage, player-controlled improvements (omit or keep concise in clean wins; link \`story_link\`; optional \`rule\` with \`when\`/\`do\`/optional \`this_game\` only for recurring decisions).
|
|
13159
|
-
- \`encouragement\`: 1\u20132 sincere
|
|
13155
|
+
- \`encouragement\`: 1\u20132 sincere closing sentences affirming the strengths shown in this replay.
|
|
13160
13156
|
|
|
13161
13157
|
VERIFICATION & HONESTY RULES (enforced by code)
|
|
13162
|
-
- **Facts & numbers**: every clock time (m:ss) and
|
|
13163
|
-
- **Evidence refs**:
|
|
13158
|
+
- **Facts & numbers**: every clock time (m:ss) and number about the game must come verbatim from a tool result in this conversation \u2014 never add, subtract, or average. Use counts a tool states (\`killed_by\`, \`by_target\`, \`*_total\`, \`deaths_where\`, \`damage_share_in_death_windows\`).
|
|
13159
|
+
- **Evidence refs (summary vs child)**: each evidence item cites 1\u20133 exact \`ref\` strings and states ONLY what those records hold. Summary refs (\`deaths:<hero>\`, \`fights:<hero>\`, \`audit:<hero>:<ability>\`, \`tempo:<hero>\`, \`decision:<hero>\`, \`sieges:<hero>\`, \`roshan:<hero>\`, \`window:<hero>\`, \`overview\`) ONLY cover top-level counts/totals \u2014 NEVER individual event clocks, damage, or stun durations. Per-event details MUST cite the child record's exact \`ref\`: \`cast:<hero>:<ability>:<n>\` (single cast clock/stun/damage), \`death:<hero>:<n>\` (single death), \`fights:<hero>:<n>\` (single fight clock/damage/participants), \`phase:<hero>:<n>\` (10-min phase), \`decision:<hero>:<n>\`, \`sieges:<hero>:<n>\`, \`roshan:<hero>:<n>\`. Never join a fact from one record to a different moment.
|
|
13164
13160
|
- **Never claim vision / fog of war**: replays have no vision data. Wards (\`observers_within_1600\`, \`ward_report\`) show placement, never who saw whom. Never say a player "had no vision", "did not see", or died "because of a ward". A rule's \`when\` must use only what is guaranteed on the player's own screen (own HP/mana, items/gold, clock, allies near, enemy heroes missing from the minimap, an ability an enemy just used) \u2014 never enemies seen approaching or walking toward the player.
|
|
13165
13161
|
- **Read choices, not minds**: state actions, positions, and distances \u2014 never motives ("intended", "wanted", "refused", "ignored the call"). Say a hero was "farming" only when a tool reports \`doing: "farming"\`. Never state what an ability or item does from memory (always check \`hero_abilities\` / \`build_check\`; never assume spell immunity stops an ability the tools show pierced it).
|
|
13166
13162
|
- **Respect tool semantics**: never quote \`key_moments\` win-chance percentages (they only rank moments, never assign fault); never say a \`save_report\` cast "saved" or "failed to save" an ally; in \`decision_points\`, "neither" means the team did not take a building/Roshan (not that it "did nothing"); in \`siege_report\`, \`owners_near\` does not prove defending and other heroes' positions are at push start (use \`me_when_it_fell\` or \`game_state\` for when it fell); in \`roshan_report\`, \`aegis_pickups_only\` never proves a side took no Roshan; in \`window_report\`, never say an item "closed/ended" a window; in \`lineup_timing\`, per-hero win rates are not a lineup win rate; quote pro vs public bracket samples accurately with their label and release/patch.
|
|
@@ -21310,22 +21306,27 @@ function collectFacts(sources) {
|
|
|
21310
21306
|
}
|
|
21311
21307
|
if (span && own) out.moments.push({ from: span[0], to: span[1], numbers: own });
|
|
21312
21308
|
};
|
|
21313
|
-
const cite = (value) => {
|
|
21309
|
+
const cite = (value, summaryParent = null) => {
|
|
21314
21310
|
if (Array.isArray(value)) {
|
|
21315
|
-
for (const v of value) cite(v);
|
|
21311
|
+
for (const v of value) cite(v, summaryParent);
|
|
21316
21312
|
return;
|
|
21317
21313
|
}
|
|
21318
21314
|
if (!value || typeof value !== "object") return;
|
|
21315
|
+
let nextParent = summaryParent;
|
|
21319
21316
|
if (typeof value.ref === "string") {
|
|
21320
|
-
const
|
|
21317
|
+
const isSummary = value.ref_scope === "summary";
|
|
21318
|
+
const inner = isSummary ? summaryFactsOf(value) : collectFactsOf(value);
|
|
21321
21319
|
const at = typeof value.t === "number" ? value.t : typeof value.from === "number" ? value.from : typeof value.first_held?.t === "number" ? value.first_held.t : null;
|
|
21322
|
-
const r = out.refs.get(value.ref) ?? { at, times: /* @__PURE__ */ new Set(), numbers: /* @__PURE__ */ new Set() };
|
|
21320
|
+
const r = out.refs.get(value.ref) ?? { at, times: /* @__PURE__ */ new Set(), numbers: /* @__PURE__ */ new Set(), scope: isSummary ? "summary" : "record", children: /* @__PURE__ */ new Set() };
|
|
21323
21321
|
for (const t6 of inner.times) r.times.add(t6);
|
|
21324
21322
|
for (const n of inner.numbers) r.numbers.add(n);
|
|
21325
21323
|
if (r.at == null) r.at = at;
|
|
21324
|
+
if (!isSummary && r.scope === "summary") r.scope = "record";
|
|
21326
21325
|
out.refs.set(value.ref, r);
|
|
21326
|
+
if (summaryParent && summaryParent !== value.ref) out.refs.get(summaryParent)?.children.add(value.ref);
|
|
21327
|
+
nextParent = isSummary ? value.ref : null;
|
|
21327
21328
|
}
|
|
21328
|
-
for (const v of Object.values(value)) cite(v);
|
|
21329
|
+
for (const v of Object.values(value)) cite(v, nextParent);
|
|
21329
21330
|
};
|
|
21330
21331
|
for (const src of [].concat(sources ?? [])) {
|
|
21331
21332
|
walk(src, null);
|
|
@@ -21487,17 +21488,52 @@ var has = (set, n, slack) => {
|
|
|
21487
21488
|
return false;
|
|
21488
21489
|
};
|
|
21489
21490
|
var percentOk = (set, n) => has(set, n.value / 100, 6e-3) || n.value >= 1 && has(set, n.value, 0.5);
|
|
21491
|
+
var bigOk = (n, set) => has(set, n.value, n.approx ? n.value * 0.06 : 1);
|
|
21492
|
+
var timeInSet = (times, clock10) => {
|
|
21493
|
+
const t6 = clockToSeconds(clock10);
|
|
21494
|
+
if (t6 == null) return false;
|
|
21495
|
+
for (let d = -CLOCK_TOLERANCE; d <= CLOCK_TOLERANCE; d += 1) if (times.has(t6 + d)) return true;
|
|
21496
|
+
return false;
|
|
21497
|
+
};
|
|
21498
|
+
var numberInEvidence = (local, n) => n.percent ? percentOk(local, n) : n.value >= BIG ? bigOk(n, local) : n.value > TRIVIAL || n.decimal ? has(local, n.value, n.decimal ? 0.05 : 0.5) : false;
|
|
21499
|
+
var MOMENT_PROBLEM = /^(.+?)\s+\(not in ([^)]+)\)$/;
|
|
21500
|
+
function suggestChildRefs(problem, sources = [], knownRefs = null) {
|
|
21501
|
+
if (!problem || problem.kind !== "moment" || typeof problem.text !== "string") return [];
|
|
21502
|
+
const m = MOMENT_PROBLEM.exec(problem.text);
|
|
21503
|
+
if (!m) return [];
|
|
21504
|
+
const rawVal = m[1].trim();
|
|
21505
|
+
const citedRefs = m[2].split(",").map((s) => s.trim()).filter(Boolean);
|
|
21506
|
+
if (!rawVal || !citedRefs.length) return [];
|
|
21507
|
+
const isClock = clockToSeconds(rawVal) != null;
|
|
21508
|
+
const num = isClock ? null : statedFacts(rawVal).numbers[0] ?? null;
|
|
21509
|
+
if (!isClock && !num) return [];
|
|
21510
|
+
const hasMeta = knownRefs instanceof Map && citedRefs.some((r) => knownRefs.get(r)?.children instanceof Set);
|
|
21511
|
+
const refsMap = hasMeta ? knownRefs : collectFacts(sources).refs;
|
|
21512
|
+
const citedSet = new Set(citedRefs);
|
|
21513
|
+
const out = [];
|
|
21514
|
+
const seen = /* @__PURE__ */ new Set();
|
|
21515
|
+
for (const ref of citedRefs) {
|
|
21516
|
+
const entry = refsMap.get(ref);
|
|
21517
|
+
if (!entry || entry.scope !== "summary" || !(entry.children instanceof Set) || !entry.children.size) continue;
|
|
21518
|
+
for (const childRef of entry.children) {
|
|
21519
|
+
if (seen.has(childRef) || citedSet.has(childRef)) continue;
|
|
21520
|
+
const child = refsMap.get(childRef);
|
|
21521
|
+
if (!child || child.scope === "summary") continue;
|
|
21522
|
+
const matches = isClock ? timeInSet(child.times, rawVal) : numberInEvidence(child.numbers, num);
|
|
21523
|
+
if (matches) {
|
|
21524
|
+
seen.add(childRef);
|
|
21525
|
+
out.push(childRef);
|
|
21526
|
+
if (out.length >= 3) return out;
|
|
21527
|
+
}
|
|
21528
|
+
}
|
|
21529
|
+
}
|
|
21530
|
+
return out;
|
|
21531
|
+
}
|
|
21490
21532
|
function verifyReview(review, sources, accepted = []) {
|
|
21491
21533
|
const listOf2 = (v) => Array.isArray(v) ? v : [];
|
|
21492
21534
|
const known = collectFacts(sources);
|
|
21493
21535
|
for (const text of listOf2(accepted)) for (const n of statedFacts(text).numbers) if (n.counted && !n.decimal) known.summary.add(n.value);
|
|
21494
|
-
const timeOk = (clock10) =>
|
|
21495
|
-
const t6 = clockToSeconds(clock10);
|
|
21496
|
-
if (t6 == null) return false;
|
|
21497
|
-
for (let d = -CLOCK_TOLERANCE; d <= CLOCK_TOLERANCE; d += 1) if (known.times.has(t6 + d)) return true;
|
|
21498
|
-
return false;
|
|
21499
|
-
};
|
|
21500
|
-
const bigOk = (n, set) => has(set, n.value, n.approx ? n.value * 0.06 : 1);
|
|
21536
|
+
const timeOk = (clock10) => timeInSet(known.times, clock10);
|
|
21501
21537
|
const problems = [];
|
|
21502
21538
|
const notes = [];
|
|
21503
21539
|
const names2 = [].concat(sources ?? []).find((s) => s && typeof s === "object" && !Array.isArray(s) && s.hero_names) ?? {};
|
|
@@ -21559,23 +21595,14 @@ function verifyReview(review, sources, accepted = []) {
|
|
|
21559
21595
|
for (const t6 of c.times) times.add(t6);
|
|
21560
21596
|
for (const n of c.numbers) local.add(n);
|
|
21561
21597
|
}
|
|
21562
|
-
const inRecord = (clock10) =>
|
|
21563
|
-
const t6 = clockToSeconds(clock10);
|
|
21564
|
-
if (t6 == null) return false;
|
|
21565
|
-
for (let d = -CLOCK_TOLERANCE; d <= CLOCK_TOLERANCE; d += 1) if (times.has(t6 + d)) return true;
|
|
21566
|
-
return false;
|
|
21567
|
-
};
|
|
21598
|
+
const inRecord = (clock10) => timeInSet(times, clock10);
|
|
21568
21599
|
const fact = typeof e?.fact === "string" ? e.fact : "";
|
|
21569
21600
|
const stated = statedFacts(fact);
|
|
21570
21601
|
wording(where2, index3, fact);
|
|
21571
21602
|
for (const s of sightClaims(fact)) problems.push({ where: where2, index: index3, kind: "sight", text: s });
|
|
21572
21603
|
for (const c of new Set(stated.times)) if (!inRecord(c)) problems.push({ where: where2, index: index3, kind: "moment", text: `${c} (not in ${refs.join(", ")})` });
|
|
21573
21604
|
for (const n of stated.numbers) {
|
|
21574
|
-
if (n.percent) {
|
|
21575
|
-
if (!percentOk(local, n)) problems.push({ where: where2, index: index3, kind: "moment", text: `${n.text} (not in ${refs.join(", ")})` });
|
|
21576
|
-
} else if (n.value >= BIG) {
|
|
21577
|
-
if (!bigOk(n, local)) problems.push({ where: where2, index: index3, kind: "moment", text: `${n.text} (not in ${refs.join(", ")})` });
|
|
21578
|
-
} else if ((n.value > TRIVIAL || n.decimal) && !has(local, n.value, n.decimal ? 0.05 : 0.5)) problems.push({ where: where2, index: index3, kind: "moment", text: `${n.text} (not in ${refs.join(", ")})` });
|
|
21605
|
+
if ((n.percent || n.value >= BIG || n.value > TRIVIAL || n.decimal) && !numberInEvidence(local, n)) problems.push({ where: where2, index: index3, kind: "moment", text: `${n.text} (not in ${refs.join(", ")})` });
|
|
21579
21606
|
}
|
|
21580
21607
|
};
|
|
21581
21608
|
prose2("verdict", 0, review?.verdict);
|
|
@@ -23251,7 +23278,7 @@ var REPAIR_HELP = {
|
|
|
23251
23278
|
time: "this time is not in any tool result",
|
|
23252
23279
|
number: "this number is not in any tool result",
|
|
23253
23280
|
count: "no tool gave this count; use the count a tool states (killed_by, by_target, *_total)",
|
|
23254
|
-
moment: "the cited record does not hold this; cite the
|
|
23281
|
+
moment: "the cited record does not hold this (summary refs only cover top-level totals, not individual events); if suggested_refs are listed, verify and cite the specific child ref(s), or remove the unsupported detail",
|
|
23255
23282
|
ref: "no tool record with this ref was returned in this conversation; copy a ref exactly",
|
|
23256
23283
|
missing: "this finding has no title: give it a heading of a few words",
|
|
23257
23284
|
language: "write this in the language of the rest of the review",
|
|
@@ -23384,6 +23411,16 @@ ${JSON.stringify(context)}`;
|
|
|
23384
23411
|
const midRepair = from?.first && from.run ? from.run : null;
|
|
23385
23412
|
if (!midRepair) save(done, null);
|
|
23386
23413
|
const placeOf = (p) => p.where === "findings" ? "findings" : p.where === "game_plan" ? "game_plan" : p.where === "plan" ? `game_plan.${PLAN_TEXTS[p.index]}` : p.where === "plan_evidence" ? `game_plan.evidence ${p.index + 1}` : p.where === "story" ? `story ${p.index + 1}` : p.where === "story_evidence" ? `story ${p.index + 1}, evidence ${(p.item ?? 0) + 1}` : p.where === "highlight" ? `highlight ${p.index + 1}` : p.where === "highlight_evidence" ? `highlight ${p.index + 1}, evidence ${(p.item ?? 0) + 1}` : p.where === "chapter" ? `chapter ${p.index + 1}` : p.where === "chapter_evidence" ? `chapter ${p.index + 1}, evidence ${(p.item ?? 0) + 1}` : p.where === "finding" ? `finding ${p.index + 1}` : p.where === "title" ? `finding ${p.index + 1}, title` : p.where === "rule" ? `finding ${p.index + 1}, rule.this_game` : `${p.where}${p.where === "verdict" || p.where === "opening_note" || p.where === "encouragement" ? "" : ` ${p.index + 1}`}`;
|
|
23414
|
+
const repairSources = sources();
|
|
23415
|
+
const formatProblem = (p) => {
|
|
23416
|
+
const suggested = p.kind === "moment" ? suggestChildRefs(p, repairSources, check.refs) : [];
|
|
23417
|
+
return {
|
|
23418
|
+
in: placeOf(p),
|
|
23419
|
+
text: p.text,
|
|
23420
|
+
why: REPAIR_HELP[p.kind],
|
|
23421
|
+
...suggested.length ? { suggested_refs: suggested } : {}
|
|
23422
|
+
};
|
|
23423
|
+
};
|
|
23387
23424
|
const second = await runAgent({
|
|
23388
23425
|
...base,
|
|
23389
23426
|
...midRepair ? { resume: resumed(midRepair) } : {},
|
|
@@ -23392,7 +23429,7 @@ ${JSON.stringify(context)}`;
|
|
|
23392
23429
|
messages: midRepair ? midRepair.messages : [...first.messages, ...first.messages.at(-1).tool_calls.map((c) => ({
|
|
23393
23430
|
role: "tool",
|
|
23394
23431
|
tool_call_id: c.id,
|
|
23395
|
-
content: c === lastCall ? JSON.stringify({ error: "unsupported_facts", detail: "Look each one up with a tool, or rewrite the sentence without it, then call submit_review again with the whole review.", problems: check.problems.map(
|
|
23432
|
+
content: c === lastCall ? JSON.stringify({ error: "unsupported_facts", detail: "Look each one up with a tool, or rewrite the sentence without it, then call submit_review again with the whole review.", problems: check.problems.map(formatProblem) }) : JSON.stringify({ error: "not_run" })
|
|
23396
23433
|
}))]
|
|
23397
23434
|
});
|
|
23398
23435
|
add(second);
|
|
@@ -25457,7 +25494,7 @@ function shapeReview(matchId, hero, lang, state) {
|
|
|
25457
25494
|
...typeof r.encouragement === "string" && r.encouragement.trim() ? { encouragement: r.encouragement } : {},
|
|
25458
25495
|
blind_spots: list(r.blind_spots),
|
|
25459
25496
|
checked: { against: "replay records", removed_for_lack_of_evidence: state.verification?.dropped ?? 0 },
|
|
25460
|
-
note: "Times and numbers were checked against the replay. Quote
|
|
25497
|
+
note: "Times and numbers were checked against the replay. Present in a warm, constructive coach tone (verdict + opening_note, concrete highlights, key chapters/findings, encouragement) with zero mechanical next-game KPI quotas. Quote times and numbers as given, say what the review cannot see (blind_spots), and link the url: it has every piece of evidence and a coach to ask."
|
|
25461
25498
|
};
|
|
25462
25499
|
}
|
|
25463
25500
|
var OWN_MODEL = "To review now on your own model instead, install the dota2.ai plugin for DeepSeek Harness (DSH): https://dota2.ai/#ways-dsh";
|
package/package.json
CHANGED
package/skills/dota2ai/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dota2ai
|
|
3
|
-
description: Review a player's own public Dota 2 games with dota2.ai inside DSH — the replay review with checked evidence, why the game went that way (lane, deaths, items, fights), pro games on the same problem, follow-up questions,
|
|
3
|
+
description: Review a player's own public Dota 2 games with dota2.ai inside DSH — the replay review with checked evidence, why the game went that way (lane, deaths, items, fights), pro games on the same problem, follow-up questions, and hero-vs-hero matchups. Use when someone asks to review a Dota 2 match, why they lost, what to practise, or how their last game went.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# dota2.ai coach (DSH plugin)
|
|
@@ -31,7 +31,6 @@ your own. Answer in the user's language and pass it as `lang` (`en` or `zh`).
|
|
|
31
31
|
| Why it went this way, one chapter | `dota2ai_coach_report({match_id, hero, section})`: `summary` · `why` · `lane` · `deaths` · `items` · `fights` · `plan` · `all` |
|
|
32
32
|
| Pro games on the same problem | `dota2ai_coach_cases({match_id, hero})` |
|
|
33
33
|
| A follow-up question | `dota2ai_coach_ask({match_id, hero, question})` |
|
|
34
|
-
| Did a later game meet a goal | `dota2ai_goal_check({match_id, hero, goal})` |
|
|
35
34
|
| Hero vs hero, no match needed | `dota2ai_hero_matchup({hero, vs, rank?})` |
|
|
36
35
|
|
|
37
36
|
`hero`: key (`queen_of_pain`), English or Chinese name, or hero id. `account`:
|
|
@@ -100,11 +99,6 @@ hero → `dota2ai_replay_review` (poll until `ready`) → present `verdict` and
|
|
|
100
99
|
`section: why` → for each cause on the player: what happened (evidence) → what
|
|
101
100
|
to do (fix). Then offer `dota2ai_coach_cases`.
|
|
102
101
|
|
|
103
|
-
**"Did I do what I practised?"**: keep the finding's `goal` object from
|
|
104
|
-
`dota2ai_coach_report` (`section: all`), then `dota2ai_goal_check` on the later
|
|
105
|
-
game → `met`, `missed`, `no_opportunity` or `unknown` with its evidence. Only
|
|
106
|
-
the goal owner's own games.
|
|
107
|
-
|
|
108
102
|
## Never
|
|
109
103
|
|
|
110
104
|
- Invent numbers, timings, items, hero or ability facts not in the output.
|