dsh-task-ledger 0.0.133 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +288 -227
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/skill/README.md +1 -1
- package/skill/SKILL.md +1 -1
- package/skill/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -46,10 +46,10 @@ window.__ModuleLoader__.load({
|
|
|
46
46
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
47
47
|
let react_dom = require("react-dom");
|
|
48
48
|
react_dom = __toESM(react_dom, 1);
|
|
49
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/design/tokens-css.generated.js
|
|
50
50
|
const TOKENS_CSS_TEMPLATE = "\n/* ── 文字(宿主 label 四档 + 反色面用字)────────────────────────────── */\nbody{\n --dshpc-fg:var(--dsw-alias-label-primary,#1f2328);\n --dshpc-fg-2:var(--dsw-alias-label-secondary,#5c6370);\n --dshpc-fg-3:var(--dsw-alias-label-tertiary,#767d87);\n --dshpc-fg-4:var(--dsw-alias-label-caption,#9aa1ab);\n --dshpc-fg-dim:var(--dsw-alias-label-dimmed,#b9bfc7);\n /* 反色面上的字(实心钮 / 角标):暗色下是 bluish-1000,故用 -foreground 而非 -inverted */\n --dshpc-fg-inverse:var(--dsw-alias-label-primary-foreground,#fff);\n\n /* ── 面(宿主 bg-layer 三档 + 下沉轨道底)──────────────────────────── */\n --dshpc-surface-1:var(--dsw-alias-bg-layer-1,#fff);\n --dshpc-surface-2:var(--dsw-alias-bg-layer-2,#fff);\n --dshpc-surface-3:var(--dsw-alias-bg-layer-3,#fff);\n /* 「选中亮片」的底盘色(配 --dshpc-shadow-raised 用) */\n --dshpc-surface-raised:var(--dsw-alias-bg-layer-1,#fff);\n /* 轨道 / 下沉底(官方分段控件轨道用的就是这条) */\n --dshpc-surface-sunken:var(--dsw-alias-interactive-bg-hover,rgba(38,49,72,.06));\n /* 整页 / 编辑器底(bg-base) */\n --dshpc-surface-base:var(--dsw-alias-bg-base,#fff);\n /* 自绘浮层 / 菜单卡的不透明底(= base;不要用半透明的 specific-menu) */\n --dshpc-surface-menu:var(--dshpc-surface-base);\n /* markdown 代码块面 / 字体(会话镜像里用到) */\n --dshpc-code-surface:var(--dsw-alias-markdown-code-block,rgba(128,128,128,.10));\n --dshpc-code-font:var(--dsw-font-markdown-code-block-small,12px/18px var(--ds-font-family-code,monospace));\n /* 警告文字色(宿主 state-warn-label) */\n --dshpc-warning-label:var(--dsw-alias-state-warn-label,#f5a623);\n /* 固定中性实面(自绘浮层、深色主题下必须自己变的那几个)——只有它需要暗色覆盖 */\n --dshpc-solid:var(--dsw-static-neutral-00,#fff);\n --dshpc-on-solid:var(--dsw-alias-label-primary,#1f2328);\n /* 交付文件卡那种「浅底盘 + hover 加深」两拍 */\n --dshpc-plate:var(--dsw-static-neutral-50,#fafafa);\n --dshpc-plate-hover:var(--dsw-static-neutral-100,#f5f5f5);\n /* ⚠️ 这些**固定中性面一律用 rgba 字面量**(2026-10-19 真机教训):不要写成\n 「rgba 回退行 + 嵌 --dsw-static-* 的 color-mix 行」两条同名声明——自定义属性**后者恒胜**,\n 哪怕它的值在宿主里算不出来(static 变量 invalid)⇒ 整条 token 作废、rgba 兜底一起被废,\n 0.2.6 里 Segmented 轨道全透明就是这么来的。要跟宿主主题联动的面用 alias token(那些实测有效)。 */\n --dshpc-icon-plate:rgba(255,255,255,.5);\n /* 表头底:浅色主题**偏深**,且必须**比斑马纹(--dshpc-plate)再深一档**——\n 两者不能撞色(用户 2026-10-02:表头跟斑马纹一模一样)。 */\n --dshpc-head-bg:var(--dsw-static-neutral-100,#f5f5f5);\n /* 表格底 / 行 hover(2026-10-30 用户二次定案:表头与通栏**互换**底色):\n 表头默认底 = 通栏原来那层灰(--dshpc-surface-sunken,跟着宿主交互面走);\n 通栏默认底 = 表头原来那色(亮 #f6f8fa / 暗 #151b23,参考图实测,与深色段同源);\n 行 hover 是「一层极淡的黑」≈1.5%(用户:再浅一半,要特别淡)。 */\n --dshpc-table-head-bg:var(--dshpc-surface-sunken);\n --dshpc-table-banner-bg:#f6f8fa;\n --dshpc-table-row-hover:rgba(15,15,15,.015);\n /* 图标小底板(产出物):浅色下要**看得见**(原先取 plate ⇒ 在白底上等于没有);hover 加倍。 */\n --dshpc-chip-bg:rgba(15,15,15,.07);\n --dshpc-chip-bg-hover:rgba(15,15,15,.14);\n /* 展开行:**带透明度的蓝**——不是灰、也不是纯色,透出卡片底色,一眼看出「这是展开的」\n (用户 2026-10-02:灰色跟斑马纹分不出来)。内容区再淡一档,形成「行深 / 内容浅」的区隔。 */\n --dshpc-open-bg:rgba(37,99,235,.10);\n --dshpc-open-bg-soft:rgba(37,99,235,.05);\n --dshpc-card-hover:rgba(37,99,235,.07);\n\n /* ── 描边四档(宿主真值:l1 4% / l2 10% / l3 12% / l4 16%)────────── */\n --dshpc-border-faint:var(--dsw-alias-border-l1,#0000000a);\n --dshpc-border:var(--dsw-alias-border-l2,#0000001a);\n --dshpc-border-strong:var(--dsw-alias-border-l3,#0000001f);\n --dshpc-border-heavy:var(--dsw-alias-border-l4,#00000029);\n\n /* ── 品牌 / 语义色 ────────────────────────────────────────────────── */\n /* 品牌「面」色:明色近黑、暗色近白(官方 Switch 选中态即此),**不是蓝色** */\n --dshpc-accent:var(--dsw-alias-brand-primary,#0f1115);\n /* 蓝色:强调 / 选中 / 焦点,一律走这条 */\n --dshpc-business:var(--dsw-alias-state-business-primary,#3b5bdb);\n --dshpc-success:var(--dsw-alias-state-success-primary,#22c55e);\n /* ⚠️ 是 state-warn(不是 state-warning,后者宿主无此定义) */\n --dshpc-warning:var(--dsw-alias-state-warn-primary,#f59e0b);\n --dshpc-danger:var(--dsw-alias-state-error-primary,#ec1313);\n --dshpc-link:var(--dsw-alias-link,#3b5bdb);\n /* 语义色**实面**上的字(角标 / 实心提示):宿主红绿黄三色都是中调 ⇒ 白字两个主题都可读,\n 故这是一条与主题无关的常量;不要拿 --dshpc-fg-inverse 顶——它在暗色下是近黑,压在红底上看不清。 */\n --dshpc-on-signal:#fff;\n /* 黄底上的字:黄色是中高明度,白字看不清 ⇒ 固定深色(与主题无关)。 */\n --dshpc-on-warning:#1f2328;\n /* 告警严重度的圆点底色(2026-11-03 从 feedback.css 收到这里)。\n 与主题无关的一组常量:这几个色要在任意底色上都认得出来,所以**不跟宿主 state 色走**\n (宿主 state-warn-primary 偏亮,压白 ✕ 看不清)。语义色改动请只改这里。 */\n --dshpc-sev-info:#2563eb;\n --dshpc-sev-success:#16a34a;\n --dshpc-sev-warning:#d97706;\n --dshpc-sev-error:#dc2626;\n\n /* ── 实心按钮的 hover / active 派生态(2026-10-19 用户点名)─────────────────\n 原实现是 :hover 直接压 opacity .9:黑底压 10% 几乎看不出来,用户原话「完全感觉不到颜色变了」。\n ⇒ 改成对底色做**明确的混色**(压 22% / 34%),不用 opacity:\n · 亮色主题:黑底(--dshpc-accent)掺白提亮;红 / 绿 / 黄 / 蓝底掺黑压深;\n · 暗色主题:反过来(暗底掺白、亮底掺黑)。\n 混色对象是**固定中性色字面量**(#fff / #000),不依赖宿主 static-neutral 是否存在;\n 旧内核不认 color-mix 时整条声明作废 ⇒ 回落各档原色(可接受:仍可点,只是没有 hover 反馈)。 */\n --dshpc-accent-hover:color-mix(in srgb,var(--dshpc-accent) 78%,#ffffff);\n --dshpc-accent-active:color-mix(in srgb,var(--dshpc-accent) 64%,#ffffff);\n --dshpc-danger-hover:color-mix(in srgb,var(--dshpc-danger) 78%,#000000);\n --dshpc-danger-active:color-mix(in srgb,var(--dshpc-danger) 64%,#000000);\n --dshpc-success-hover:color-mix(in srgb,var(--dshpc-success) 78%,#000000);\n --dshpc-success-active:color-mix(in srgb,var(--dshpc-success) 64%,#000000);\n --dshpc-warning-hover:color-mix(in srgb,var(--dshpc-warning) 78%,#000000);\n --dshpc-warning-active:color-mix(in srgb,var(--dshpc-warning) 64%,#000000);\n --dshpc-business-hover:color-mix(in srgb,var(--dshpc-business) 78%,#000000);\n --dshpc-business-active:color-mix(in srgb,var(--dshpc-business) 64%,#000000);\n /* 语义色**浅底**:状态色系的「一块底色」——执行记录页每条流水账的块底就是它\n (用户 2026-10-04:正常态给同色系很浅的透明底、失败用红底透出来)。\n 用 「color-mix」 现算而不写死 rgba:状态色本身跟随宿主 alias,主题一换自动成立。\n ⚠️ **深色下要更淡**:用户 2026-10-04「深色风格的绿色和红色好像都有点深」⇒ dark 段\n 把这四条压到 5%(更贴近面板底、存在感更弱);浅色段维持 8%。两端各自给值,不共用一条曲线。\n 命名收在 tokens.ts 单点(本仓硬规矩:业务文件不许自造 --dshpc-*)。 */\n --dshpc-success-soft:color-mix(in srgb,var(--dshpc-success) 8%,transparent);\n --dshpc-warning-soft:color-mix(in srgb,var(--dshpc-warning) 8%,transparent);\n --dshpc-danger-soft:color-mix(in srgb,var(--dshpc-danger) 8%,transparent);\n --dshpc-business-soft:color-mix(in srgb,var(--dshpc-business) 8%,transparent);\n\n /* ── 扩展语义色(2026-10-29 用户拍板:分类 / 图表常用色八支)──────────────\n 宿主无对应 alias ⇒ 写死 hex(不跟随宿主换肤);实心面字色统一走 --dshpc-on-signal(白),\n 因八支明度都低于黄 / 青柠,白字两主题均 ≥4.5:1 可读。每条自带 hover/active/soft 派生;\n 暗色段只覆盖派生(base 写死、两主题同值)。 */\n --dshpc-purple:#9333ea;\n --dshpc-purple-hover:color-mix(in srgb,var(--dshpc-purple) 78%,#000000);\n --dshpc-purple-active:color-mix(in srgb,var(--dshpc-purple) 64%,#000000);\n --dshpc-purple-soft:color-mix(in srgb,var(--dshpc-purple) 8%,transparent);\n --dshpc-pink:#db2777;\n --dshpc-pink-hover:color-mix(in srgb,var(--dshpc-pink) 78%,#000000);\n --dshpc-pink-active:color-mix(in srgb,var(--dshpc-pink) 64%,#000000);\n --dshpc-pink-soft:color-mix(in srgb,var(--dshpc-pink) 8%,transparent);\n --dshpc-cyan:#0e7490;\n --dshpc-cyan-hover:color-mix(in srgb,var(--dshpc-cyan) 78%,#000000);\n --dshpc-cyan-active:color-mix(in srgb,var(--dshpc-cyan) 64%,#000000);\n --dshpc-cyan-soft:color-mix(in srgb,var(--dshpc-cyan) 8%,transparent);\n --dshpc-teal:#0f766e;\n --dshpc-teal-hover:color-mix(in srgb,var(--dshpc-teal) 78%,#000000);\n --dshpc-teal-active:color-mix(in srgb,var(--dshpc-teal) 64%,#000000);\n --dshpc-teal-soft:color-mix(in srgb,var(--dshpc-teal) 8%,transparent);\n --dshpc-orange:#c2410c;\n --dshpc-orange-hover:color-mix(in srgb,var(--dshpc-orange) 78%,#000000);\n --dshpc-orange-active:color-mix(in srgb,var(--dshpc-orange) 64%,#000000);\n --dshpc-orange-soft:color-mix(in srgb,var(--dshpc-orange) 8%,transparent);\n --dshpc-indigo:#4f46e5;\n --dshpc-indigo-hover:color-mix(in srgb,var(--dshpc-indigo) 78%,#000000);\n --dshpc-indigo-active:color-mix(in srgb,var(--dshpc-indigo) 64%,#000000);\n --dshpc-indigo-soft:color-mix(in srgb,var(--dshpc-indigo) 8%,transparent);\n --dshpc-rose:#e11d48;\n --dshpc-rose-hover:color-mix(in srgb,var(--dshpc-rose) 78%,#000000);\n --dshpc-rose-active:color-mix(in srgb,var(--dshpc-rose) 64%,#000000);\n --dshpc-rose-soft:color-mix(in srgb,var(--dshpc-rose) 8%,transparent);\n --dshpc-slate:#475569;\n --dshpc-slate-hover:color-mix(in srgb,var(--dshpc-slate) 78%,#000000);\n --dshpc-slate-active:color-mix(in srgb,var(--dshpc-slate) 64%,#000000);\n --dshpc-slate-soft:color-mix(in srgb,var(--dshpc-slate) 8%,transparent);\n\n /* ⚠️ 2026-10-18 用户拍板:宿主 alias 的 hover(暗色白 8% / 亮色 6%)**太弱**,\n 「移上去要仔细看才看得出来」⇒ 不再委托宿主 hover 别名,改为自掺中性色并加重:\n 亮色掺黑 10%、暗色掺白 14%(active 再加一档)。按钮 / 分段轨道 / 各类 hover 底同时受益。\n ⚠️ 必须保留 rgba 兜底行在前(本文件惯例,见 icon-plate 注释):掺的是**固定中性色**\n (neutral-900=#0f0f0f / neutral-00=#fff),预计算无损;旧内核不认 color-mix 时走兜底,\n 否则整条 background:var(--seg-track) 作废 ⇒ 分段轨道透明(真踩过:预览站轨道消失)。 */\n --dshpc-hover:rgba(15,15,15,.10);\n --dshpc-active:rgba(15,15,15,.18);\n /* 分段控件轨道底:专用 token(rgba 字面量、不借 --dshpc-hover 中转)——\n 2026-10-19 教训:变量链中间任何一环 invalid ⇒ background 整条作废、轨道全透明。\n 亮色:黑 7%(比 hover 的 10% 淡一档,选中白片才跳得出)。 */\n --dshpc-seg-track:rgba(15,15,15,.07);\n --dshpc-mask:var(--dsw-alias-bg-mask-1,#0000003d);\n /* 弹窗锁定态给**自绘控件**的降透明度档(2026-11-05)。放在 token 里是为了让消费方\n 在自己元素上写 --dshpc-lock-dim: 1 就能退出这条效果,不用 !important 打架。 */\n --dshpc-lock-dim:.5;\n /* 「选中面」(2026-10-06,任务日程页首创)= 当前底色**朝更深掺 12% 文字色**:\n 浅色主题下文字色是黑 ⇒ 选中面比常态底色**深一档**。深色分支见 body[data-ds-dark-theme](朝背景色掺)。\n 语义:标记「正在看的东西」,比常态明显、又不许盖住内容(不许用半透明叠状态色)。 */\n --dshpc-selected-bg:color-mix(in srgb,var(--dshpc-surface-1) 88%,var(--dshpc-fg));\n /* 任务日程页本月格默认底(2026-10-06 → 续2):浅色下给**淡蓝**(business 8% 透白底)——\n 参照用户参考稿里未选中日程块 / Tuesday 列的那种蓝、再浅一点点;\n 相邻月补位格仍走 --dshpc-surface-2(更灰),不受影响。\n 深色段维持 #23262e(用户:深色 UI 已差不多,不动)。 */\n --dshpc-cal-cell-bg:color-mix(in srgb,var(--dshpc-business) 8%,var(--dshpc-surface-1));\n /* 任务日程页「点开某天」展开的面板底(2026-10-06 续):浅色下**无限接近白、只带一丁点灰**\n (neutral-50 = #fafafa)——面板里装半透明执行记录列表,底再深整片就发糊发灰;\n 深色段沿用原 selected-bg 暗值,保持不动。 */\n --dshpc-cal-panel-bg:var(--dsw-static-neutral-50,#fafafa);\n /* 任务日程页本月格 hover 底(浅色段,2026-10-06 续3):不再走灰色通用交互底——\n 鼠标移上去应是「更亮一点点的蓝」(与深色段同语义:hover = 提亮的蓝,不是灰下去)。\n 浓度**介于**表头蓝(14%)与未选中格蓝(8%)之间、略偏表头一侧:business 12% 透白底\n (比表头浅一点、比未选中格深一点)。 */\n --dshpc-cal-cell-hover:color-mix(in srgb,var(--dshpc-business) 12%,var(--dshpc-surface-1));\n\n /* ── 投影 / 焦点 ──────────────────────────────────────────────────── */\n --dshpc-shadow-1:var(--dsw-elevation-soft,0 4px 16px 0 #00000008);\n /* 亮片自带的浮起感(选中态用;与 --dshpc-surface-raised 配对) */\n --dshpc-shadow-raised:var(--dsw-elevation-soft,0 4px 16px 0 #00000008);\n --dshpc-shadow-2:var(--dsw-shadow-lv3,0 12px 32px 0 #00000014);\n /* 键盘焦点环。⚠️ 不用宿主 --dsw-focus-ring-color:它默认值是 transparent(兜底不生效、会隐身) */\n --dshpc-focus:var(--dsw-alias-state-business-primary,#3b5bdb);\n\n /* ── 圆角(宿主真值 4 / 8 / 12 / 16 / 20 / 28)─────────────────────── */\n --dshpc-radius-xs:var(--dsw-radius-xs,4px);\n --dshpc-radius-sm:var(--dsw-radius-sm,8px);\n --dshpc-radius-md:var(--dsw-radius-md,12px);\n --dshpc-radius-lg:var(--dsw-radius-lg,16px);\n --dshpc-radius-xl:var(--dsw-radius-xl,20px);\n --dshpc-radius-panel:var(--dsw-radius-panel,28px);\n /* 全圆(胶囊标签):宿主的 radius 档最大只有 28px,撑不满 24px 高的 chip */\n --dshpc-radius-pill:999px;\n\n /* ── 间距四拍(只许用这四档,不许出现 5 / 7 / 9px)────────────────── */\n --dshpc-space-1:4px;\n --dshpc-space-2:8px;\n --dshpc-space-3:12px;\n --dshpc-space-4:16px;\n\n /* ── 控件高度:离散三档(控件用 size=\"sm|md|lg\" 选;调用点不许自定义高度,\n 真不够用才允许在调用点本地覆盖 --dshpc-control-h-*,属例外而非常态)── */\n --dshpc-control-h-sm:24px;\n --dshpc-control-h-md:28px;\n --dshpc-control-h-lg:32px;\n\n /* ── 字号 / 行高:直绑宿主字号族(宿主真值 11 / 12 / 13 / 14 / 16)───── */\n --dshpc-font-xs:var(--dsw-font-xxxs-11-font-size,11px);\n --dshpc-font-sm:var(--dsw-font-xxs-12-font-size,12px);\n --dshpc-font-md:var(--dsw-font-xs-13-font-size,13px);\n --dshpc-font-lg:var(--dsw-font-s-14-font-size,14px);\n --dshpc-font-xl:var(--dsw-font-base-16-font-size,16px);\n --dshpc-line-xs:var(--dsw-font-xxxs-11-line-height,14px);\n --dshpc-line-sm:var(--dsw-font-xxs-12-line-height,18px);\n --dshpc-line-md:var(--dsw-font-xs-13-line-height,20px);\n --dshpc-line-lg:var(--dsw-font-s-14-line-height,22px);\n --dshpc-line-xl:var(--dsw-font-base-16-line-height,24px);\n --dshpc-font-mono:var(--ds-font-family-code,monospace);\n\n /* ── 层级阶梯(业务文件不许再写裸 z-index)───────────────────────── */\n /* 页面级预览分栏 → 抽屉(新建/编辑)→ 弹窗/确认框 → 浮层菜单 → 浮层提示 */\n /* 内容层吸顶(天标签 / 表头这类「跟着滚但压住同层内容」的元素):只压同层兄弟,\n 必须低于下面所有浮层档 —— 所以它不是「开新浮层档」,而是内容层内部的排序位。 */\n --dshpc-z-sticky:10;\n --dshpc-z-dock:1030;\n --dshpc-z-drawer:1040;\n --dshpc-z-modal:1070;\n /* 收起后的耳朵:必须高于弹窗遮罩,否则弹窗一开就点不到它(2026-11-04 用户真机)。\n 只给耳朵用,页面级分栏本体仍是布局成员,不跟着抬高。 */\n --dshpc-z-ear:1080;\n --dshpc-z-menu:1100;\n --dshpc-z-tip:1200;\n /* 语义别名(2026-11-03 面板皮肤统一):业务文件只许用这两个说「我要一层浮层」,\n 不再各自写 1099/1100/1200/1201 这类字面量。\n panel = 浮层面板本体(picker 弹窗、锚定面板);\n popmenu = 叠在面板之上的菜单(▾ 选层、Picker 下拉)与其透明遮罩。 */\n --dshpc-z-panel:var(--dshpc-z-menu);\n --dshpc-z-popmenu:var(--dshpc-z-tip);\n\n /* ── 动效 ─────────────────────────────────────────────────────────── */\n --dshpc-dur:var(--ds-transition-duration,.2s);\n --dshpc-dur-fast:var(--ds-transition-duration-fast,.12s);\n --dshpc-ease:var(--ds-ease-in-out,cubic-bezier(.4,0,.2,1));\n /* 运行中状态的脉动时长(2026-10-06 统一前后两端:任务配置里的绿呼吸 → 蓝、放慢;\n 执行记录里的蓝闪 → 放慢一点。两者用同一个值,动画形状本就一致)。 */\n --dshpc-dur-run:500ms;\n}\n\n/* ── 明暗差异的**唯一**落点 ──────────────────────────────────────────────\n 判据 = body[data-ds-dark-theme](宿主 0.2.0-rc.2 源码核实:启动脚本 toggleAttribute 写入,\n 唯一明暗判据;插件禁止用 prefers-color-scheme —— 它跟的是系统、不是用户在宿主里的选择)。\n 下面只放 alias 表达不了的「固定中性面」;颜色若能靠 alias 自动跟随,一律不要写在这里。 */\nbody[data-ds-dark-theme]{\n /* 深色段的蓝**刻意不跟随宿主 alias**(唯一例外):宿主暗色 alias 给的是 #60a5fa 一档的高亮蓝,\n 实心面(Chip / Button info / 日期选中格)压白字会发糊 —— 用户 2026-10-29 实测反馈。\n ⇒ 深色下改定向浅色状态的蓝(#3b5bdb)靠,只在明度上抬一点点,保证它在暗底上仍看得见:\n #4c6bd8 对白字 ≈4.8:1(原亮蓝只有 ~2.3:1),对日历格底 ≈3.2:1 仍过 UI 件的 3:1 线。\n 代价:宿主换品牌色时深色不再自动跟着变,需要这里手动同步。 */\n --dshpc-business:#4c6bd8;\n --dshpc-solid:var(--dsw-static-neutral-900,#0f0f0f);\n --dshpc-on-solid:var(--dsw-static-neutral-00,#fff);\n /* 实心按钮 hover / active(暗色版):黑底(浅色主题的近黑 → 暗色下的近白)掺黑压深;\n 红 / 绿 / 黄 / 蓝掺白提亮。与亮色段方向相反,保证两种主题下「一眼看出变了」。 */\n --dshpc-accent-hover:color-mix(in srgb,var(--dshpc-accent) 80%,#000000);\n --dshpc-accent-active:color-mix(in srgb,var(--dshpc-accent) 66%,#000000);\n --dshpc-danger-hover:color-mix(in srgb,var(--dshpc-danger) 78%,#ffffff);\n --dshpc-danger-active:color-mix(in srgb,var(--dshpc-danger) 64%,#ffffff);\n --dshpc-success-hover:color-mix(in srgb,var(--dshpc-success) 78%,#ffffff);\n --dshpc-success-active:color-mix(in srgb,var(--dshpc-success) 64%,#ffffff);\n --dshpc-warning-hover:color-mix(in srgb,var(--dshpc-warning) 78%,#ffffff);\n --dshpc-warning-active:color-mix(in srgb,var(--dshpc-warning) 64%,#ffffff);\n /* 同上:掺白比例从 22% / 36% 收到 12% / 22% —— 底色已变深,照旧比例提亮会在 hover 瞬间\n 把白字对比打回 ~3:1(正是用户嫌糊的那一档);收窄后 hover 仍可感知、字仍清晰。 */\n --dshpc-business-hover:color-mix(in srgb,var(--dshpc-business) 88%,#ffffff);\n --dshpc-business-active:color-mix(in srgb,var(--dshpc-business) 78%,#ffffff);\n /* 暗色 hover 掺白 14% / active 24%(对齐上面 2026-10-18 的加重拍板)。rgba 兜底行同上。 */\n --dshpc-hover:rgba(255,255,255,.14);\n --dshpc-active:rgba(255,255,255,.24);\n /* 分段轨道(暗色版):白 10%——比 hover 淡一档,选中亮片才跳得出。 */\n --dshpc-seg-track:rgba(255,255,255,.10);\n --dshpc-plate:var(--dsw-static-neutral-850,#212123);\n --dshpc-plate-hover:var(--dsw-static-neutral-800,#292929);\n --dshpc-icon-plate:rgba(255,255,255,.05);\n /* 暗色主题**反过来**:表头要比卡片面**亮**、比斑马纹再**浅一档**(用户:纯黑背景没法看)。 */\n --dshpc-head-bg:var(--dshpc-surface-2);\n /* 表格(2026-10-30 用户二次定案:与通栏互换底色):通栏底取表头原来那色 #151b23\n (亮色段对应 #f6f8fa);表头默认底沿用亮色段定义的 --dshpc-surface-sunken,不在暗色段重写;\n 行 hover 是「一层极淡的白」≈3% —— 暗底上用黑会越悬越暗,看不出「浅灰」反馈。 */\n --dshpc-table-banner-bg:#151b23;\n --dshpc-table-row-hover:rgba(255,255,255,.03);\n /* 暗色底板**微亮**;hover **更亮**(原先 hover 取 plate-hover 反而更淡 ⇒ 鼠标移上去就没了)。 */\n --dshpc-chip-bg:rgba(255,255,255,.08);\n --dshpc-chip-bg-hover:rgba(255,255,255,.16);\n /* 暗色下蓝色要更亮、透明度略高才压得住深底。 */\n --dshpc-open-bg:rgba(96,165,250,.18);\n --dshpc-open-bg-soft:rgba(96,165,250,.08);\n --dshpc-card-hover:rgba(96,165,250,.13);\n /* 语义色**浅底**(深色版):用户嫌深色的绿 / 红「有点深」⇒ 压到 **5%**(浅色段是 8%),\n 更贴近面板底色、存在感更弱;块底与状态色竖条仍同源(竖条是实色,不受这条影响)。 */\n --dshpc-success-soft:color-mix(in srgb,var(--dshpc-success) 5%,transparent);\n --dshpc-warning-soft:color-mix(in srgb,var(--dshpc-warning) 5%,transparent);\n --dshpc-danger-soft:color-mix(in srgb,var(--dshpc-danger) 5%,transparent);\n --dshpc-business-soft:color-mix(in srgb,var(--dshpc-business) 5%,transparent);\n /* 扩展色深色派生:底色写死、hover 掺白 12%/22%(同 business,防白字发糊),soft 5%。 */\n --dshpc-purple-hover:color-mix(in srgb,var(--dshpc-purple) 88%,#ffffff);\n --dshpc-purple-active:color-mix(in srgb,var(--dshpc-purple) 78%,#ffffff);\n --dshpc-purple-soft:color-mix(in srgb,var(--dshpc-purple) 5%,transparent);\n --dshpc-pink-hover:color-mix(in srgb,var(--dshpc-pink) 88%,#ffffff);\n --dshpc-pink-active:color-mix(in srgb,var(--dshpc-pink) 78%,#ffffff);\n --dshpc-pink-soft:color-mix(in srgb,var(--dshpc-pink) 5%,transparent);\n --dshpc-cyan-hover:color-mix(in srgb,var(--dshpc-cyan) 88%,#ffffff);\n --dshpc-cyan-active:color-mix(in srgb,var(--dshpc-cyan) 78%,#ffffff);\n --dshpc-cyan-soft:color-mix(in srgb,var(--dshpc-cyan) 5%,transparent);\n --dshpc-teal-hover:color-mix(in srgb,var(--dshpc-teal) 88%,#ffffff);\n --dshpc-teal-active:color-mix(in srgb,var(--dshpc-teal) 78%,#ffffff);\n --dshpc-teal-soft:color-mix(in srgb,var(--dshpc-teal) 5%,transparent);\n --dshpc-orange-hover:color-mix(in srgb,var(--dshpc-orange) 88%,#ffffff);\n --dshpc-orange-active:color-mix(in srgb,var(--dshpc-orange) 78%,#ffffff);\n --dshpc-orange-soft:color-mix(in srgb,var(--dshpc-orange) 5%,transparent);\n --dshpc-indigo-hover:color-mix(in srgb,var(--dshpc-indigo) 88%,#ffffff);\n --dshpc-indigo-active:color-mix(in srgb,var(--dshpc-indigo) 78%,#ffffff);\n --dshpc-indigo-soft:color-mix(in srgb,var(--dshpc-indigo) 5%,transparent);\n --dshpc-rose-hover:color-mix(in srgb,var(--dshpc-rose) 88%,#ffffff);\n --dshpc-rose-active:color-mix(in srgb,var(--dshpc-rose) 78%,#ffffff);\n --dshpc-rose-soft:color-mix(in srgb,var(--dshpc-rose) 5%,transparent);\n --dshpc-slate-hover:color-mix(in srgb,var(--dshpc-slate) 88%,#ffffff);\n --dshpc-slate-active:color-mix(in srgb,var(--dshpc-slate) 78%,#ffffff);\n --dshpc-slate-soft:color-mix(in srgb,var(--dshpc-slate) 5%,transparent);\n /* 「选中面」(深色版,2026-10-06):掺 **~40% 背景色**(--dshpc-surface-base)⇒ 无限接近页面背景的黑、\n 只比背景略深一点点(用户:深色下展开区压着任务透明绿会发灰,底色要尽量贴近背景才不显灰)。\n ⚠️ 深色下不能掺文字色 —— 那是白,会变亮,选中反而比本月日期浅。 */\n --dshpc-selected-bg:color-mix(in srgb,var(--dshpc-surface-1) 60%,var(--dshpc-surface-base));\n /* 任务日程页本月格的默认底(深色版,2026-10-06):深的、带点灰蓝的暗色(用户给的参考图 ≈ #23262e),\n 比原来的卡片面更沉、更偏蓝灰;选中格仍走 --dshpc-selected-bg(更暗一档),层级不变。 */\n --dshpc-cal-cell-bg:#23262e;\n /* 任务日程页本月格 hover 底(深色段,2026-10-06):原先走 --dshpc-hover(宿主浅色叠加)在深底上显得\n 「灰发亮」,不好看 ⇒ 换成更贴底的蓝调微亮(与 open-bg-soft 同族),hover 时不刺眼、又有反馈。 */\n --dshpc-cal-cell-hover:rgba(96,165,250,.12);\n /* 任务日程页展开面板底(深色段,2026-10-06 续):与原 selected-bg 暗值一致,深色 UI 不动 */\n --dshpc-cal-panel-bg:color-mix(in srgb,var(--dshpc-surface-1) 60%,var(--dshpc-surface-base));\n}\n";
|
|
51
51
|
//#endregion
|
|
52
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
52
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/design/style-kit.js
|
|
53
53
|
/** 全生态统一的 CSS 变量前缀。 */
|
|
54
54
|
const CSS_PREFIX = "dshpc";
|
|
55
55
|
/** token 域固定名:变量定义必须先于消费它的规则出现。 */
|
|
@@ -120,7 +120,7 @@ window.__ModuleLoader__.load({
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
123
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/css.js
|
|
124
124
|
/**
|
|
125
125
|
* 当前插件的样式设施。
|
|
126
126
|
*
|
|
@@ -161,10 +161,10 @@ window.__ModuleLoader__.load({
|
|
|
161
161
|
kit.applyStyle(domain, css);
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
164
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/marquee-css.generated.js
|
|
165
165
|
const MARQUEE_CSS = "/* 跑马灯(MarqueeText):双层——外层只裁剪,内层才 transform 滚动;非 hover 内层自带省略号。\n 2026-10-20:本文件原是杂烩「select.css」(下拉 / 日历 / 时分的皮肤都装过),随着那些控件\n 一个个删完,最后只剩跑马灯,故按本包「一个 css 服务一个对象」的格局改名归档。\n 同批清掉的还有零引用的省略号类 .dshpc-ellipsis —— 本包三个用到截断的地方都没采纳它。 */\n.dshpc-mq{display:block;overflow:hidden;white-space:nowrap;}\n.dshpc-mq .dshpc-mq-in{display:inline-block;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top;}\n/* ⚠️ 跑法(用户 2026-10-03 拍板):**跑一遍、停在尾字**(播放 1 次 + forwards),不来回弹、不无限跑。\n 滚距 = 精确溢出量 ⇒ 停下时最后一个字正好贴右缘,**不会跑进黑块**(黑块是旧手写版把\n 内层盒子裁了、按「半截文本」平移导致的)。鼠标移开 ⇒ :hover 失效 ⇒ 自动复位回省略号态。 */\n.dshpc-mq-run:hover .dshpc-mq-in{max-width:none;overflow:visible;animation:dshpc-mq-scroll var(--dshpc-mq-dur,6s) linear .4s 1 forwards;}\n@keyframes dshpc-mq-scroll{from{transform:translateX(0)}to{transform:translateX(var(--dshpc-mq-dist,-40px))}}\n/* 溢出渐影(用户 2026-10-24 拍板「左右稍微有点渐影」;官方口径 = dsh-client-ui-primitives@0.2.1-rc.2\n PathLabel.module.css:13-15:mask-image 线性渐隐 + 28px 随官方)。⚠️ 只在 **hover 滚动态** 加:\n 静态态(三个点)不要渐影(用户 2026-10-24 二次拍板),hover 滚动时两端渐影——左缘柔化被裁的文字头。 */\n/* token-ok:遮罩模板色(纯黑 = 完全不透明),不是主题色;换主题也不该变。 */\n.dshpc-mq-run:hover{mask-image:linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);}\n";
|
|
166
166
|
//#endregion
|
|
167
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
167
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/MarqueeText.js
|
|
168
168
|
/**
|
|
169
169
|
* 跑马灯文本 —— **全站唯一实现**(L2,P6 从 editor-fields 迁入 ui)
|
|
170
170
|
*
|
|
@@ -217,43 +217,43 @@ window.__ModuleLoader__.load({
|
|
|
217
217
|
}, props.text));
|
|
218
218
|
}
|
|
219
219
|
//#endregion
|
|
220
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
220
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/segmented-css.generated.js
|
|
221
221
|
const SEGMENTED_CSS = "\n/* ── 分段控件 P2 ─────────────────────────────────────────────────────\n 结构照兄弟项目 dsh-task-dispatch-table 的 Segmented 皮肤(item 无边框、hover 只提亮文字),\n 前缀 / 变量名换成本仓口径。用户额外要的两处(兄弟没有):weekday 方块间隔(现为 2px);段内中性计数 __count。\n ⚠️ 2026-10-19 两次误判均已澄清:① 「宿主只认单行 CSS」——假,多行一直正常;\n ② 「宿主吃掉 token 块之后第一条规则」——也假,真因是 tokens 模板字符串结尾多了一个反斜杠,\n 注入文本里留下字面反引号,把紧随其后的那条规则的选择器污染掉了(见 dsh-host.md §9)。\n 样式照常多行书写,不必压行;也不需要任何「牺牲规则」。 */\n/* 外观只有一套(2026-10-26):原 variant 的 default / inset 两档在 CSS 里只差 1px 内距,\n 且 default 比文档承诺矮 2px,却让下游以为「有得选」而反复对图 ⇒ 整轴删除。\n padding 3px 是尺寸契约的一部分:item 高度 = 控制高 − 6px,加起来正好 24 / 28 / 32。 */\n/* 选中片配色收在两条局部变量里(--seg-thumb 底 / --seg-on 字):默认走主题亮片,\n tone 档与自定义 {bg, fg} 都只改这两条(后者由组件内联写根节点,内联恒胜)。 */\n.dshpc-seg{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:var(--dshpc-radius-md);--seg-thumb:var(--dshpc-surface-raised);--seg-on:var(--dshpc-fg);background:var(--dshpc-seg-track);}\n.dshpc-seg__item{appearance:none;display:inline-flex;align-items:center;gap:4px;box-sizing:border-box;height:calc(var(--dshpc-control-h-sm) - 6px);padding:0 12px;border:0;border-radius:var(--dshpc-radius-sm);background:transparent;color:var(--dshpc-fg-2);font-family:inherit;font-size:var(--dshpc-font-xs);font-weight:500;white-space:nowrap;cursor:pointer;flex:none;transition:color var(--dshpc-dur-fast) var(--dshpc-ease),background-color var(--dshpc-dur-fast) var(--dshpc-ease),box-shadow var(--dshpc-dur-fast) var(--dshpc-ease);}\n.dshpc-seg--md .dshpc-seg__item{height:calc(var(--dshpc-control-h-md) - 6px);}\n.dshpc-seg--lg .dshpc-seg__item{height:calc(var(--dshpc-control-h-lg) - 6px);}\n/* 段内图标(前置):与 Button 同口径 —— inline-flex 吃掉行高基线,svg 按块级。 */\n.dshpc-seg__icon{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:0;}\n.dshpc-seg__icon svg{display:block;margin:0;}\n/* 只有图标(无文字 / 计数 / 角标):段必须是正方形 ⇒ 宽 = 段高、左右内距归零、内容居中;\n 否则基础规则的 0 12px 会把它拉成长方形。放在三档之后:同名特异性下后写者胜。 */\n.dshpc-seg__item--icon-only{width:calc(var(--dshpc-control-h-sm) - 6px);padding:0;justify-content:center;}\n.dshpc-seg--md .dshpc-seg__item--icon-only{width:calc(var(--dshpc-control-h-md) - 6px);}\n.dshpc-seg--lg .dshpc-seg__item--icon-only{width:calc(var(--dshpc-control-h-lg) - 6px);}\n.dshpc-seg__item:hover:not([aria-pressed='true']):not(:disabled){color:var(--dshpc-fg);}\n.dshpc-seg__item[aria-pressed='true']{background:var(--seg-thumb);box-shadow:var(--dshpc-shadow-raised);color:var(--seg-on);font-weight:600;}\n.dshpc-seg__item:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:-2px;}\n.dshpc-seg__item:disabled{cursor:default;opacity:.4;}\n/* 段内角标(如「异常」的数量):语义色实面 + 反白字,0 由组件侧不渲染。必须是正圆(用户 2026-10-03)。 */\n.dshpc-seg__badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;padding:0;overflow:hidden;border-radius:50%;background:var(--dshpc-danger);color:var(--dshpc-on-signal);font-size:10px;line-height:16px;font-weight:500;font-variant-numeric:tabular-nums;}\n/* 段内中性计数(如筛选条「全部 11」):纯文字、无底无边(对齐 task-ledger .dtl-seg__num 拍板口径);0 由组件侧不渲染。 */\n.dshpc-seg__count{display:inline;flex:none;margin-left:3px;padding:0;border:0;border-radius:0;background:none;color:var(--dshpc-fg-3);font-size:10px;line-height:1;font-weight:400;font-variant-numeric:tabular-nums;}\n/* 选中段(彩色实面)里的计数:必须跟着 --seg-on 走再压暗一档(72% 白 ≈ 「比正文稍灰」)。\n 不许用 --dshpc-fg-3:它跟主题走,暗色下是深灰 ⇒ 蓝底上几乎看不见(2026-10-29 用户截图「My todos 4」)。 */\n.dshpc-seg__item[aria-pressed='true'] .dshpc-seg__count{color:color-mix(in srgb,var(--seg-on) 72%,transparent);}\n/* block:撑满父宽(表单行用),各段等分 */\n.dshpc-seg--block{display:flex;width:100%;}\n.dshpc-seg--block .dshpc-seg__item{flex:1 1 auto;justify-content:center;}\n/* weekday:星期多选方块。基础插件的特殊化定制(用户 2026-10-01:原 WeekdayPicker 即「蓝底 + 近似方形」):\n 每格正方形(宽 = 段高)、选中品牌蓝反白字、**无外描边**(2026-10-18 重申)、\n 方块之间间距 gap:2px(2026-10-20 用户定稿:方块改小后 6px 显得太宽。10-18 曾从 2px 放宽到 6px,\n 两次都是用户拍板 —— 别自作主张改回去)。 */\n.dshpc-seg--weekday{--seg-track:var(--dshpc-seg-track);gap:2px;border:0;padding:3px;background:var(--seg-track);}\n.dshpc-seg--weekday .dshpc-seg__item{width:calc(var(--dshpc-control-h-lg) - 8px);padding:0;justify-content:center;}\n/* 蓝底反白:字色必须是常量白(--dshpc-on-signal)。2026-10-29 用户实测:暗色主题下这里曾用\n --dshpc-fg-inverse,而它跟随宿主 label-primary-foreground,暗色下是近黑 ⇒ 蓝底黑字看不清。 */\n.dshpc-seg--weekday{--seg-thumb:var(--dshpc-business);--seg-on:var(--dshpc-on-signal);}\n\n/* ── tone(2026-10-29 用户):选中片传内置基础色名,底 / 字由核心给,深浅两主题各自成立。\n 放在 weekday 之后:同名变量后写者胜,tone 与 className=\"dshpc-seg--weekday\" 同给时以 tone 为准。\n 黄底按 Chip / Button 同源口径用 on-warning(中高明度,白字看不清)。 */\n.dshpc-seg--tone-business{--seg-thumb:var(--dshpc-business);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-success{--seg-thumb:var(--dshpc-success);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-warning{--seg-thumb:var(--dshpc-warning);--seg-on:var(--dshpc-on-warning);}\n.dshpc-seg--tone-danger{--seg-thumb:var(--dshpc-danger);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-purple{--seg-thumb:var(--dshpc-purple);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-pink{--seg-thumb:var(--dshpc-pink);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-cyan{--seg-thumb:var(--dshpc-cyan);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-teal{--seg-thumb:var(--dshpc-teal);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-orange{--seg-thumb:var(--dshpc-orange);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-indigo{--seg-thumb:var(--dshpc-indigo);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-rose{--seg-thumb:var(--dshpc-rose);--seg-on:var(--dshpc-on-signal);}\n.dshpc-seg--tone-slate{--seg-thumb:var(--dshpc-slate);--seg-on:var(--dshpc-on-signal);}\n\n/* ── 单选滑动块(2026-10-26 用户:点选后选中底应「滑过去」,不是旧段消失、新段直接亮)。\n 结构 = 一块绝对定位的共用底 + 各段透明;位置/尺寸由组件量出后内联,这里只管外观与过渡。\n --slide 只在单选挂上:多选(如星期)每段各自着色,没有唯一滑块可滑,保持原样。 */\n.dshpc-seg--slide{position:relative;}\n.dshpc-seg--slide .dshpc-seg__item{position:relative;z-index:1;}\n.dshpc-seg--slide .dshpc-seg__item[aria-pressed='true']{background:transparent;box-shadow:none;}\n.dshpc-seg__thumb{position:absolute;z-index:0;border-radius:var(--dshpc-radius-sm);background:var(--seg-thumb);box-shadow:var(--dshpc-shadow-raised);pointer-events:none;transition:left var(--dshpc-dur) var(--dshpc-ease),top var(--dshpc-dur) var(--dshpc-ease),width var(--dshpc-dur) var(--dshpc-ease),height var(--dshpc-dur) var(--dshpc-ease);}\n\n/* ── bordered 外框(2026-10-20 用户要的第二种模式):**只在最外面套一圈 1px 描边**,\n 里面一概不动 —— 选中片的填充色 / 阴影 / 文字色全部保持原样(weekday 的蓝面照旧),\n 这里不写任何针对 __item 的规则。\n 总高必须与无框版逐像素一致:border 1px×2 由 padding 各让 1px 抵消(3 → 2);\n weekday 自己声明的 3px 在文件更后面,靠双类选择器压回 2px。 */\n.dshpc-seg--bordered{border:1px solid var(--dshpc-border);padding:2px;}\n.dshpc-seg--bordered.dshpc-seg--weekday{padding:2px;}\n\n@media (prefers-reduced-motion: reduce){.dshpc-seg__item{transition:none;}.dshpc-seg__thumb{transition:none;}}\n";
|
|
222
222
|
//#endregion
|
|
223
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
223
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/actions/button-css.generated.js
|
|
224
224
|
const BUTTON_CSS = "\n/* ── 按钮 / 图标钮 P2 ───────────────────────────────────────────────────\n 与 Segmented 同一条高度纪律:--dshpc-control-h-sm(24) / -md(28) / -lg(32),\n 有边框的 variant 用 1px 真边框 + 内部 padding 补回,**有边 / 无边同高**。\n\n 三条受控轴(2026-10-19 重写,对齐主流 UI 框架的分类口径):\n · variant —— 外观档 = 形态 + 语义色,共 10 档:\n primary / secondary / outline / ghost / danger / success / warning / info /\n danger-outline(红字描边)/ link(行内链接)\n · size —— sm / md / lg\n · block —— 撑满父宽\n 每一档**只填 5 个局部变量**(--btn-bg / -fg / -border / -bg-hover / -bg-active),\n 结构与交互只有上面这一份;任何档位都不许再写一遍 display/height/padding。\n 自定义颜色(Button 的 color 参数)同样只覆盖这 5 个变量(token 覆盖,不是新皮肤)。\n\n ⚠️ hover 不再用 opacity 压一层(用户 2026-10-19:「黑色和红色的按钮移上去变化太小,\n 完全感觉不到颜色变了」)⇒ 走 --dshpc-*-hover / -active 的明确混色,见 tokens-css.ts。 */\n.dshpc-btn{--btn-bg:transparent;--btn-fg:var(--dshpc-fg);--btn-border:transparent;--btn-pad:12px;\n --btn-bg-hover:var(--dshpc-hover);--btn-bg-active:var(--dshpc-active);--btn-fg-hover:var(--btn-fg);\n appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;\n box-sizing:border-box;border:1px solid var(--btn-border);border-radius:var(--dshpc-radius-md);\n background-color:var(--btn-bg);color:var(--btn-fg);font-family:inherit;font-weight:500;white-space:nowrap;cursor:pointer;\n transition:background-color var(--dshpc-dur-fast) var(--dshpc-ease),border-color var(--dshpc-dur-fast) var(--dshpc-ease),color var(--dshpc-dur-fast) var(--dshpc-ease),box-shadow var(--dshpc-dur-fast) var(--dshpc-ease),transform var(--dshpc-dur-fast) var(--dshpc-ease);}\n.dshpc-btn--sm{--btn-pad:10px;height:var(--dshpc-control-h-sm);padding:0 var(--btn-pad);font-size:var(--dshpc-font-sm);line-height:1;}\n.dshpc-btn--md{--btn-pad:12px;height:var(--dshpc-control-h-md);padding:0 var(--btn-pad);font-size:var(--dshpc-font-md);line-height:1;}\n.dshpc-btn--lg{--btn-pad:14px;height:var(--dshpc-control-h-lg);padding:0 var(--btn-pad);font-size:var(--dshpc-font-md);line-height:1;}\n/* block:撑满父宽(表单底栏 / 抽屉底部的主操作) */\n.dshpc-btn--block{display:flex;width:100%;}\n/* block + 前置图标 ⇒ 文字视觉居中(2026-10-19 用户点名):\n 内容组 [图标 + 间距 + 文字] 整体在盒内居中时,**文字**的中心会被图标推右半格。\n 把右内边距补上「图标宽 + 间距」,可用盒随之左移同量 ⇒ 文字落回视觉中心,图标贴左侧。\n 图标宽按 1.2em 估(官方图标 14/16px vs 字号 12/13px),em 随字号档自动缩放。 */\n.dshpc-btn--block.dshpc-btn--icon-start{padding-right:calc(var(--btn-pad) + 1.2em + 6px);}\n/* 图标比同档文字小一号(用户 2026-11-02):容器吃掉 0.875em,内联 SVG 一律跟随 1em,\n 不再由调用方的 size={16} 说了算 —— 全站按钮图标尺寸只由这一处决定。 */\n.dshpc-btn__icon,.dshpc-btn__icon-end{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:0;font-size:.875em;}\n.dshpc-btn__icon svg,.dshpc-btn__icon-end svg{display:block;margin:0;width:1em;height:1em;}\n/* maxWidth 包 MarqueeText 时:标签作为 flex 子项必须能收缩到内容以下,否则省略号 / 跑马灯测不准 */\n.dshpc-btn .dshpc-btn__label{min-width:0;}\n/* loading:不换 DOM 结构,只在文案前插一枚 Loader(size=xs,12px)。\n 环的画法与动画统一在 controls/loader.css(本文件不再维护第二份 SVG 弧 / keyframes)。 */\n\n/* 交互态:颜色变化写在变量上 ⇒ 所有档位一次生效,且变化幅度由 token 决定(够明显) */\n.dshpc-btn:hover:not(:disabled){background-color:var(--btn-bg-hover);color:var(--btn-fg-hover);}\n.dshpc-btn:active:not(:disabled){background-color:var(--btn-bg-active);transform:translateY(1px);}\n.dshpc-btn:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:2px;}\n.dshpc-btn:disabled{cursor:default;opacity:.5;}\n\n.dshpc-btn--primary{--btn-bg:var(--dshpc-accent);--btn-fg:var(--dshpc-fg-inverse);\n --btn-bg-hover:var(--dshpc-accent-hover);--btn-bg-active:var(--dshpc-accent-active);}\n/* secondary:中性实心(灰面),用于「取消 / 次要」这类与主操作并排的按钮 */\n.dshpc-btn--secondary{--btn-bg:var(--dshpc-hover);--btn-fg:var(--dshpc-fg);\n --btn-bg-hover:var(--dshpc-active);--btn-bg-active:var(--dshpc-active);}\n.dshpc-btn--outline{--btn-bg:var(--dshpc-surface-1);--btn-border:var(--dshpc-border-strong);\n --btn-bg-hover:var(--dshpc-hover);--btn-bg-active:var(--dshpc-active);}\n.dshpc-btn--ghost{--btn-fg:var(--dshpc-fg-2);--btn-fg-hover:var(--dshpc-fg);\n --btn-bg-hover:var(--dshpc-hover);--btn-bg-active:var(--dshpc-active);}\n.dshpc-btn--danger{--btn-bg:var(--dshpc-danger);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-danger-hover);--btn-bg-active:var(--dshpc-danger-active);}\n.dshpc-btn--success{--btn-bg:var(--dshpc-success);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-success-hover);--btn-bg-active:var(--dshpc-success-active);}\n.dshpc-btn--warning{--btn-bg:var(--dshpc-warning);--btn-fg:var(--dshpc-on-warning);\n --btn-bg-hover:var(--dshpc-warning-hover);--btn-bg-active:var(--dshpc-warning-active);}\n.dshpc-btn--info{--btn-bg:var(--dshpc-business);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-business-hover);--btn-bg-active:var(--dshpc-business-active);}\n/* 扩展八色实心(2026-10-29):白字两主题均 ≥4.5:1;hover/active 走各自 token 派生。 */\n.dshpc-btn--purple{--btn-bg:var(--dshpc-purple);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-purple-hover);--btn-bg-active:var(--dshpc-purple-active);}\n.dshpc-btn--pink{--btn-bg:var(--dshpc-pink);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-pink-hover);--btn-bg-active:var(--dshpc-pink-active);}\n.dshpc-btn--cyan{--btn-bg:var(--dshpc-cyan);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-cyan-hover);--btn-bg-active:var(--dshpc-cyan-active);}\n.dshpc-btn--teal{--btn-bg:var(--dshpc-teal);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-teal-hover);--btn-bg-active:var(--dshpc-teal-active);}\n.dshpc-btn--orange{--btn-bg:var(--dshpc-orange);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-orange-hover);--btn-bg-active:var(--dshpc-orange-active);}\n.dshpc-btn--indigo{--btn-bg:var(--dshpc-indigo);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-indigo-hover);--btn-bg-active:var(--dshpc-indigo-active);}\n.dshpc-btn--rose{--btn-bg:var(--dshpc-rose);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-rose-hover);--btn-bg-active:var(--dshpc-rose-active);}\n.dshpc-btn--slate{--btn-bg:var(--dshpc-slate);--btn-fg:var(--dshpc-on-signal);\n --btn-bg-hover:var(--dshpc-slate-hover);--btn-bg-active:var(--dshpc-slate-active);}\n/* danger-outline:红字描边(破坏性次要操作,如卡片上的「删除」)。\n ⚠️ 旧修饰类 danger-ink 保留为别名(消费方可能还在挂),两者同一套皮肤。 */\n.dshpc-btn--danger-outline,.dshpc-btn--danger-ink{--btn-border:var(--dshpc-danger);--btn-fg:var(--dshpc-danger);\n --btn-fg-hover:var(--dshpc-danger);--btn-bg-hover:var(--dshpc-danger-soft);--btn-bg-active:var(--dshpc-danger-soft);}\n/* link:行内文字链接型(会话 / 产出文件名),无底无边、品牌蓝、hover 下划线 */\n.dshpc-btn--link{--btn-fg:var(--dshpc-link);--btn-fg-hover:var(--dshpc-link);\n --btn-bg-hover:transparent;--btn-bg-active:transparent;\n height:auto;padding:0;border:0;background:none;font-weight:400;text-align:left;}\n.dshpc-btn--link:hover:not(:disabled){text-decoration:underline;}\n\n/* 图标钮:纯图标,方形;尺寸档的宽高与同档文字按钮等高、圆角统一吃 md(与 .dshpc-btn 同款,2026-10-28 拍板)\n 底色 / 图标色全走局部变量:默认**无底色**,消费方可传 color(图标色)/ background(底色)覆盖(用户 2026-11-02)。 */\n.dshpc-iconbtn{--icb-bg:transparent;--icb-bg-hover:var(--dshpc-hover);--icb-fg:var(--dshpc-fg-2);--icb-fg-hover:var(--dshpc-fg);\n appearance:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;\n border:1px solid var(--icb-border,transparent);border-radius:var(--dshpc-radius-md);\n background:var(--icb-bg);color:var(--icb-fg);\n font-family:inherit;cursor:pointer;flex:none;\n transition:background-color var(--dshpc-dur-fast) var(--dshpc-ease),border-color var(--dshpc-dur-fast) var(--dshpc-ease),color var(--dshpc-dur-fast) var(--dshpc-ease),opacity var(--dshpc-dur-fast) var(--dshpc-ease);}\n.dshpc-iconbtn--sm{width:var(--dshpc-control-h-sm);height:var(--dshpc-control-h-sm);font-size:var(--dshpc-font-sm);}\n.dshpc-iconbtn--md{width:var(--dshpc-control-h-md);height:var(--dshpc-control-h-md);font-size:var(--dshpc-font-md);}\n.dshpc-iconbtn--lg{width:var(--dshpc-control-h-lg);height:var(--dshpc-control-h-lg);font-size:var(--dshpc-font-md);}\n/* 图标与文字按钮同口径:内联 SVG 一律跟随 1em(比 16px 档小一号) */\n.dshpc-iconbtn > svg{display:block;width:1em;height:1em;}\n.dshpc-iconbtn--outline{--icb-bg:var(--dshpc-surface-1);--icb-border:var(--dshpc-border);}\n.dshpc-iconbtn--danger{--icb-fg:var(--dshpc-danger);--icb-bg-hover:var(--dshpc-danger-soft);--icb-fg-hover:var(--dshpc-danger);}\n.dshpc-iconbtn:hover:not(:disabled){background:var(--icb-bg-hover);color:var(--icb-fg-hover);}\n.dshpc-iconbtn:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:2px;}\n.dshpc-iconbtn:disabled{cursor:default;opacity:.4;}\n\n/* ── 行式文件按钮(图标 + 文件名)P2:**全站唯一实现**(2026-10-04 收编)──────────\n 用途:「产出物 / 附件」那种**一行一个文件**的清单项(基础信息右栏产出物清单、附件区、\n 执行记录页的展开区)。平时透明、**鼠标移上去才出浅底**(沿用用户 2026-10-03 定的观感)。\n 两个形态修饰类:\n --block 撑满父宽(清单里一项一行)\n --inline 内容宽(跟在文字后头,如附件行)\n 收编原因:这份皮肤此前只写在 task-list.tsx 的 TASK_LIST_CSS 里(旧名 .dshpc-info-out),\n 执行记录页展开区要用同一种观感 ⇒ 上提基础层,避免再出现「各写一份外观」(同名不同皮的坑刚踩过)。 */\n.dshpc-filechip{appearance:none;-webkit-appearance:none;border:0;border-radius:var(--dshpc-radius-xs);\n background:transparent;color:var(--dshpc-fg);font:inherit;text-align:left;cursor:pointer;min-width:0;\n transition:background-color var(--dshpc-dur) var(--dshpc-ease);}\n.dshpc-filechip:hover:not(:disabled){background:var(--dshpc-chip-bg);}\n.dshpc-filechip:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:1px;}\n.dshpc-filechip:disabled{cursor:default;background:transparent;color:var(--dshpc-fg-3);}\n.dshpc-filechip--block{display:flex;align-items:center;gap:6px;width:100%;box-sizing:border-box;\n padding:4px 6px;font-size:var(--dshpc-font-xs);}\n.dshpc-filechip--inline{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;font-size:var(--dshpc-font-sm);}\n\n@media (prefers-reduced-motion: reduce){.dshpc-btn,.dshpc-iconbtn,.dshpc-filechip{transition:none;}}\n";
|
|
225
225
|
//#endregion
|
|
226
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
226
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/field-css.generated.js
|
|
227
227
|
const FIELD_CSS = "\n/* ── 字段 + 问号提示(hint 参数内置) ──────────────────────────────────── */\n/* 控件 + FieldHint 同一行;hint 版由组件自己包,调用方只传 hint 字符串。\n 铺满型控件(input/textarea)进包后改吃 flex 弹性,让位给问号。 */\n.dshpc-fieldwrap{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;}\n.dshpc-fieldwrap--inline{display:inline-flex;}\n.dshpc-fieldwrap > .dshpc-input,.dshpc-fieldwrap > .dshpc-textarea,.dshpc-fieldwrap > .dshpc-iwrap{flex:1 1 auto;width:auto;min-width:0;}\n/* 多行输入:问号钉在**右下角**(2026-10-20 用户:不要垂直居中),文本区底部留出它的位置。\n ⚠️ 这一档必须把 textarea 的宽度还回去(上面那条 flex 让位规则会把它缩窄)。 */\n.dshpc-fieldwrap--block{position:relative;display:block;}\n.dshpc-fieldwrap--block > .dshpc-textarea{width:100%;padding-bottom:24px;}\n.dshpc-fieldwrap--block > .dshpc-hint{position:absolute;right:8px;bottom:6px;}\n\n/* ── 输入类 P3 ────────────────────────────────────────────────────────── */\n/* 默认铺满容器(width:100%,与 .dshpc-textarea 同口径):input 原生按 size 属性取内在宽,\n 不铺满 ⇒ 调用方套定宽壳时会「右边空一截、看着没贴右」(2026-10-20 用户抓的 bug)。\n 要定宽由调用方在外面套壳控制(如 192px 搜索槽)。 */\n.dshpc-input{display:block;width:100%;box-sizing:border-box;border:1px solid var(--dshpc-border);border-radius:var(--dshpc-radius-md);\n background:var(--dshpc-surface-1);color:var(--dshpc-fg);font-family:inherit;outline:none;\n transition:border-color var(--dshpc-dur-fast) var(--dshpc-ease),box-shadow var(--dshpc-dur-fast) var(--dshpc-ease);}\n.dshpc-input--sm{height:var(--dshpc-control-h-sm);padding:0 8px;font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);}\n.dshpc-input--md{height:var(--dshpc-control-h-md);padding:0 10px;font-size:var(--dshpc-font-md);line-height:var(--dshpc-line-md);}\n.dshpc-input--lg{height:var(--dshpc-control-h-lg);padding:0 12px;font-size:var(--dshpc-font-md);line-height:var(--dshpc-line-md);}\n.dshpc-input::placeholder{color:var(--dshpc-fg-dim);}\n/* type=\"search\":原生清除钮(::-webkit-search-cancel-button)整个隐掉,换组件自己挂的 plain IconButton\n —— 原生那个各子系统长相不一、还不吃 token(2026-10-28 用户:不好看,要数字框加减号那种)。 */\n.dshpc-iwrap .dshpc-input::-webkit-search-cancel-button{display:none;}\n.dshpc-input:focus{border-color:var(--dshpc-focus);box-shadow:0 0 0 1px var(--dshpc-focus);}\n.dshpc-input--error{border-color:var(--dshpc-danger);}\n.dshpc-input:disabled{cursor:default;opacity:.5;}\n\n/* 左侧图标槽(Input 的 icon 参数):图标绝对定位压在输入框的左内边距上,\n 输入框自己的边框 / 焦点圈 / 描红一律不动。图标不吃点击(pointer-events:none)⇒ 点在图标上照样聚焦。\n 左内边距 = 左偏 8 + 图标宽(sm 14 / md·lg 16,见 fieldMetricsOf)+ 间距 4。 */\n.dshpc-iwrap{position:relative;display:block;width:100%;min-width:0;}\n.dshpc-iwrap__icon{position:absolute;left:8px;top:50%;transform:translateY(-50%);display:inline-flex;pointer-events:none;color:var(--dshpc-fg-2);}\n.dshpc-iwrap--sm > .dshpc-input{padding-left:26px;}\n.dshpc-iwrap--md > .dshpc-input,.dshpc-iwrap--lg > .dshpc-input{padding-left:28px;}\n/* 禁用时图标跟输入框一起变淡(输入框自己已有 opacity:.5,图标不在它里面,得单独跟一下)。 */\n.dshpc-iwrap:has(> .dshpc-input:disabled) > .dshpc-iwrap__icon{opacity:.5;}\n\n/* 搜索框的清空钮(Field.ts 在「有焦点 + 有内容」时才挂出来):**并进框里**,与数字框的 − / +\n 同形态 —— 整段同高、左直右圆、hover 底色铺满这一格(2026-10-28 用户:不要一颗悬在右边的小按钮)。\n 向内让 1px,免得底色压住输入框自己的边框。 */\n.dshpc-iwrap__clear.dshpc-iconbtn{position:absolute;right:1px;top:1px;bottom:1px;height:auto;width:auto;aspect-ratio:1;\n border-radius:0 var(--dshpc-radius-md) var(--dshpc-radius-md) 0;font-size:var(--dshpc-font-md);}\n/* height:auto 必须:iconbtn--md/lg 的固定 height 会让 absolute 的 bottom 被忽略\n (top:1 + 固定高 ⇒ 整钮错位 1px,× 显得没居中,2026-10-28 用户截图抓的)。 */\n/* 文字让开这一段(宽度 = 控件高 - 2,故按档位补)。 */\n.dshpc-iwrap--clear > .dshpc-input{padding-right:calc(var(--dshpc-control-h-md) + 3px);}\n.dshpc-iwrap--clear.dshpc-iwrap--sm > .dshpc-input{padding-right:calc(var(--dshpc-control-h-sm) + 3px);}\n.dshpc-iwrap--clear.dshpc-iwrap--lg > .dshpc-input{padding-right:calc(var(--dshpc-control-h-lg) + 3px);}\n\n.dshpc-pfx{display:inline-flex;align-items:center;box-sizing:border-box;overflow:hidden;\n border:1px solid var(--dshpc-border);border-radius:var(--dshpc-radius-md);background:var(--dshpc-surface-1);color:var(--dshpc-fg);}\n.dshpc-pfx--sm{height:var(--dshpc-control-h-sm);}\n.dshpc-pfx--md{height:var(--dshpc-control-h-md);}\n.dshpc-pfx--lg{height:var(--dshpc-control-h-lg);}\n/* md / lg 档字号跟档走(与同档下拉同字号):此前写死 sm(12px),同排下拉是 13px ⇒ 显得「input 字小」。 */\n.dshpc-pfx--md .dshpc-pfx__label,.dshpc-pfx--lg .dshpc-pfx__label{font-size:var(--dshpc-font-md);line-height:var(--dshpc-line-md);}\n.dshpc-pfx--md .dshpc-pfx__input,.dshpc-pfx--lg .dshpc-pfx__input{font-size:var(--dshpc-font-md);line-height:var(--dshpc-line-md);}\n.dshpc-pfx--error{border-color:var(--dshpc-danger);}\n.dshpc-pfx:focus-within{border-color:var(--dshpc-focus);box-shadow:0 0 0 1px var(--dshpc-focus);}\n.dshpc-pfx__label{padding:0 8px;color:var(--dshpc-fg-2);font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);white-space:nowrap;border-right:1px solid var(--dshpc-border);}\n.dshpc-pfx__input{flex:1 1 auto;min-width:0;height:100%;padding:0 8px;border:0;background:transparent;color:var(--dshpc-fg);\n font-family:inherit;font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);outline:none;}\n.dshpc-pfx__input::placeholder{color:var(--dshpc-fg-dim);}\n\n.dshpc-num{display:inline-flex;align-items:center;justify-content:space-between;box-sizing:border-box;overflow:hidden;\n border:1px solid var(--dshpc-border);border-radius:var(--dshpc-radius-md);background:var(--dshpc-surface-1);color:var(--dshpc-fg);}\n/* 中段:数字 + 后缀成组居中;容器被消费端拉宽时吃掉全部余量,两端 − / + 因此钉死在左右边缘。 */\n.dshpc-num__mid{display:flex;align-items:center;justify-content:center;flex:1 1 auto;min-width:0;}\n.dshpc-num--sm{height:var(--dshpc-control-h-sm);}\n.dshpc-num--md{height:var(--dshpc-control-h-md);}\n.dshpc-num--lg{height:var(--dshpc-control-h-lg);}\n.dshpc-num--md .dshpc-num__input,.dshpc-num--lg .dshpc-num__input{font-size:var(--dshpc-font-md);line-height:var(--dshpc-line-md);}\n.dshpc-num--md .dshpc-num__suffix,.dshpc-num--lg .dshpc-num__suffix{font-size:var(--dshpc-font-md);}\n.dshpc-num--disabled{opacity:.5;}\n/* 焦点态与 Input 同款(2026-10-20 用户:数字框里点进去没有蓝框):内层 input 无边框,\n 焦点状态画在整个步进控件外框上。 */\n.dshpc-num:focus-within{border-color:var(--dshpc-focus);box-shadow:0 0 0 1px var(--dshpc-focus);}\n.dshpc-num__input{width:36px;height:100%;padding:0 2px;border:0;background:transparent;color:var(--dshpc-fg);\n font-family:inherit;font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);text-align:center;outline:none;}\n.dshpc-num__suffix{padding:0 6px;color:var(--dshpc-fg-2);font-size:var(--dshpc-font-sm);white-space:nowrap;}\n.dshpc-num .dshpc-iconbtn{border-radius:0;color:var(--dshpc-fg-2);flex:none;}\n\n/* 官方 Switch 包装统一:选中 = success 绿。\n (合并原先 task-editor-css / task-list 两处就地覆盖;选择器带包装类 + role,特异性高于官方。) */\n.dshpc-switch button[role='switch'][aria-checked='true']{background:var(--dshpc-success);}\n\n/* 多行文本输入(提示词等,P3):**边框 / 圆角 / 底 / 焦点态与 Input 同一套口径**(用户 2026-10-20:\n 「多行输入应该和 input 的边儿是一个道理,包括圆角在内,都是一个东西」)。\n ⚠️ 旧意图「卡内无边框、视觉重心在整张卡上」已作废 —— 现在它就是一只带框的多行输入框。\n (从 task-editor-css 的 .dshpc-ed-prompt 上提而来;业务文件不再自写 textarea 皮肤。) */\n.dshpc-textarea{display:block;width:100%;box-sizing:border-box;min-height:132px;padding:8px 12px;\n border:1px solid var(--dshpc-border);border-radius:var(--dshpc-radius-md);outline:none;\n background:var(--dshpc-surface-1);color:var(--dshpc-fg);font-family:inherit;font-size:var(--dshpc-font-lg);line-height:1.6;resize:vertical;\n transition:border-color var(--dshpc-dur-fast) var(--dshpc-ease),box-shadow var(--dshpc-dur-fast) var(--dshpc-ease);}\n.dshpc-textarea::placeholder{color:var(--dshpc-fg-dim);}\n.dshpc-textarea:focus{border-color:var(--dshpc-focus);box-shadow:0 0 0 1px var(--dshpc-focus);}\n/* 校验不通过:与 Input 一致,走边框描红(旧版是 box-shadow 描红盒,与 Input 不同口径) */\n.dshpc-textarea--error{border-color:var(--dshpc-danger);}\n.dshpc-textarea:disabled{cursor:default;opacity:.5;}\n@media (prefers-reduced-motion: reduce){.dshpc-textarea{transition:none;}}\n\n/* 拖拽分隔条(编辑分栏 / 预览 dock 共用,U20 #3):6px 命中区,col-resize,不画线,hover/按下浮出浅带。\n 具体 z-index 由 .dshpc-ed-resizer / .dshpc-sv-resizer 各自补。 */\n.dshpc-resizer{position:absolute;top:0;bottom:0;left:0;width:6px;cursor:col-resize;background:0 0;touch-action:none;user-select:none;}\n.dshpc-resizer:hover,.dshpc-resizer:active{background:var(--dshpc-hover);}\n\n@media (prefers-reduced-motion: reduce){.dshpc-input,.dshpc-pfx{transition:none;}}\n";
|
|
228
228
|
//#endregion
|
|
229
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
229
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/feedback/loader-css.generated.js
|
|
230
230
|
const LOADER_CSS = "/* ── Loader:统一的加载动画图标(无背景 / 无定位 / 颜色跟随 currentColor)────────\n 形态 × 尺寸两轴正交:形态管几何与动画;尺寸档只改 width / height,几何按\n viewBox=\"0 0 24 24\" 等比缩放 —— 一套几何吃五档,12px 时描边即 1.5px、48px 时 6px,\n 视觉重量一致,不用逐个尺寸换算 calc。\n\n 边界:本控件**只管图标本身**。背景 / 圆角 / 内距 / 阴影 / 定位(fixed、居中、漂浮)\n 一律归调用方 —— 套 Chip、套 Card,或自己包一个 div。 */\n\n.dshpc-loader { display: inline-block; flex: none; vertical-align: middle; line-height: 0; color: inherit; }\n\n.dshpc-loader--xs { width: 12px; height: 12px; }\n.dshpc-loader--sm { width: 16px; height: 16px; }\n.dshpc-loader--md { width: 24px; height: 24px; }\n.dshpc-loader--lg { width: 32px; height: 32px; }\n.dshpc-loader--xl { width: 48px; height: 48px; }\n\n/* 形态一 ring:开口弧整体旋转。必须走 SVG 矢量弧 —— 次像素边框画圆在 12px 下会被\n 抗锯齿拉毛、看着像圆角方(2026-10-20 真机实测,曾被误判成 border-radius 被覆盖)。 */\n.dshpc-loader--ring { animation: dshpc-loader-rotate .8s linear infinite; }\n@keyframes dshpc-loader-rotate { to { transform: rotate(360deg) } }\n\n/* 形态二 blocks:三个方块依次脉动放大。\n transform-box: fill-box 是 SVG 子元素做 CSS transform 的必要条件 —— 否则 origin\n 落在 viewBox 原点,节点会绕着左上角飞出去。 */\n.dshpc-loader__node { transform-box: fill-box; transform-origin: center; }\n.dshpc-loader--blocks .dshpc-loader__node { animation: dshpc-loader-blink 1.2s ease-in-out infinite; }\n.dshpc-loader__node:nth-child(2) { animation-delay: .15s; }\n.dshpc-loader__node:nth-child(3) { animation-delay: .3s; }\n@keyframes dshpc-loader-blink {\n 0%, 80%, 100% { opacity: .25; transform: scale(.8) }\n 40% { opacity: 1; transform: scale(1) }\n}\n\n/* 降低动效:停在「全部可见、实体大小」,而不是停在动画中途的半透明小点。 */\n@media (prefers-reduced-motion: reduce) {\n .dshpc-loader--ring { animation: none; }\n .dshpc-loader__node { animation: none; opacity: 1; transform: none; }\n}\n";
|
|
231
231
|
//#endregion
|
|
232
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
232
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/layout/quick-toolbar-css.generated.js
|
|
233
233
|
const QUICK_TOOLBAR_CSS = "/* 快捷工具栏:右侧悬浮的一列独立圆钮。\n 横向 left / right 与 bottom、按钮直径、纵向间距由组件按 props 实时写入 style;\n 这里只放与位置无关的皮肤。 */\n.dshpc-quick-toolbar{\n position:fixed;\n z-index:var(--dshpc-z-dock);\n display:flex;\n flex-direction:column;\n align-items:center;\n}\n/* 出现 / 消失:挂载即淡入,退场先播 fade-out(组件延迟卸载,见 QuickToolbar.ts)。 */\n@keyframes dshpc-quick-toolbar-in{\n from{opacity:0;transform:translateY(6px) scale(.9);}\n to{opacity:1;transform:none;}\n}\n@keyframes dshpc-quick-toolbar-out{\n from{opacity:1;transform:none;}\n to{opacity:0;transform:translateY(6px) scale(.9);}\n}\n.dshpc-quick-toolbar__item{\n display:inline-flex;\n align-items:center;\n justify-content:center;\n padding:0;\n margin:0;\n box-sizing:border-box;\n border:1px solid var(--dshpc-border);\n border-radius:50%;\n /* 自定义底色 / 字色只写这两个变量(见 QuickToolbar.ts),hover/active 才能跟着混色。 */\n background:var(--dshpc-quick-toolbar-bg, var(--dshpc-solid));\n color:var(--dshpc-quick-toolbar-fg, var(--dshpc-on-solid));\n box-shadow:var(--dshpc-shadow-2);\n cursor:pointer;\n animation:dshpc-quick-toolbar-in var(--dshpc-dur) var(--dshpc-ease);\n transition:background-color var(--dshpc-dur-fast) var(--dshpc-ease),\n color var(--dshpc-dur-fast) var(--dshpc-ease),\n transform var(--dshpc-dur-fast) var(--dshpc-ease);\n}\n/* 退场期保留占位,避免同列其他按钮瞬时跳位。 */\n.dshpc-quick-toolbar__item.is-leaving{\n animation:dshpc-quick-toolbar-out var(--dshpc-dur) var(--dshpc-ease) forwards;\n pointer-events:none;\n}\n/* 变色与核心 Button 实心档同一套:按 --dshpc-fg 混出 hover / active 底色(自定义 color 也跟随)。 */\n.dshpc-quick-toolbar__item:hover{\n background:color-mix(in srgb, var(--dshpc-quick-toolbar-bg, var(--dshpc-solid)) 82%, var(--dshpc-fg));\n}\n.dshpc-quick-toolbar__item:active{\n background:color-mix(in srgb, var(--dshpc-quick-toolbar-bg, var(--dshpc-solid)) 70%, var(--dshpc-fg));\n transform:scale(.94);\n}\n.dshpc-quick-toolbar__item:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:2px;}\n@media (prefers-reduced-motion: reduce){\n .dshpc-quick-toolbar__item{transition:none;transform:none;animation:none;}\n .dshpc-quick-toolbar__item.is-leaving{animation:none;opacity:0;}\n}\n";
|
|
234
234
|
//#endregion
|
|
235
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
235
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/hint-css.generated.js
|
|
236
236
|
const HINT_CSS = "\n/* ── 问号提示 P4(用户 2026-10-18:对齐真实插件 HelpButton——**带圈的问号图标**)──\n 本体 14px 细圈 + 圈内 ?,颜色 fg-3、hover 只提亮不加底(与 dshpc-ed-help 同规矩)。\n 气泡不在本文件:2026-10-19 用户拍板「问号必须用官方 Tooltip 那一个」⇒ 气泡由注入的\n 官方组件渲染(src/ui/tooltip.ts),这里只管问号图标本身。 */\n.dshpc-hint{display:inline-flex;align-items:center;justify-content:center;flex:none;\n box-sizing:border-box;width:14px;height:14px;padding:0;border:1px solid currentColor;border-radius:50%;background:transparent;\n color:var(--dshpc-fg-3);font-family:inherit;font-size:8px;font-weight:600;line-height:12px;cursor:help;vertical-align:middle;\n transition:color var(--dshpc-dur-fast) var(--dshpc-ease);}\n.dshpc-hint:hover,.dshpc-hint:focus-visible{color:var(--dshpc-fg);background:0 0;}\n.dshpc-hint:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:1px;}\n";
|
|
237
237
|
//#endregion
|
|
238
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
238
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/layout/split-group-css.generated.js
|
|
239
239
|
const SPLIT_GROUP_CSS = "\n/* ── 拼接外壳 SplitGroup ──────────────────────────────────────────────\n 职责只有一条:把两个控件在外观上焊成一体(外框 / 圆角 / 中间 1px 分隔 / 整体聚焦圈)。\n 它**不持状态、不出联动回调** —— 选中与联动全走内件自己的 value / onChange\n (用户 2026-10-28 拍板:外壳不必知道右边那个下拉管什么)。\n\n ⚠️ 与内件类名有意耦合:内件是 Picker / Segmented 时由下面几条规则把它们自己的\n 边框 / 底色 / 圆角交出来,由外壳统一画。内件改名或改结构要同步改这里,\n 否则会出现双边框、双底色。\n\n 高度不写死:内件自己按 size 档(sm 24 / md 28 / lg 32)撑开,外壳跟着长。\n 两格要等高,就给内件传**同一个 size**。万一两格 size 不一致,外壳内件用 align-items:center\n 居中(不会顶对齐露白,用户 2026-10-28 截图反馈「本月偏上」后的处理);**别用 height:100%**,\n 它会覆盖三档高度(与 --lg/--sm 同特异性且注入更晚)。\n\n 左格统一灰底(用户 2026-10-28 拍板):滑块保留自己的灰轨,左格下拉把底色换成\n surface-sunken;右格保持原样。层次感 = 左格是「档位/范围」,右格是「值」。 */\n .dshpc-split{display:inline-flex;align-items:stretch;max-width:100%;overflow:hidden;border:1px solid var(--dshpc-border);border-radius:var(--dshpc-radius-md);background:var(--dshpc-surface-1);}\n /* 两格宽度都由内容给;容器再窄也让内件自己省略,不让外壳被撑破 */\n .dshpc-split > *{min-width:0;max-width:100%;}\n /* 分隔:相邻兄弟的左描边,不额外插 DOM,hover / focus 时也不会断 */\n .dshpc-split > * + *{box-sizing:border-box;border-left:1px solid var(--dshpc-border);}\n /* 整体聚焦:只在**下拉展开**时画一整圈(判据是内件的 aria-expanded,不是 :focus-within)。\n 2026-11-02 用户定稿:滑块那格是「选中」不是「输入聚焦」,鼠标点它不该让整框常亮;\n 而且选取值后焦点会留在按钮上,用 :focus-within 会一直亮着。 */\n .dshpc-split:has(.dshpc-picker__trigger[aria-expanded='true']){border-color:var(--dshpc-focus);box-shadow:0 0 0 1px var(--dshpc-focus);}\n /* Picker:去掉自身外框与底色;display 改成 flex,消掉 inline-block 行盒带来的基线间隙。\n 注意**不能用 height:100%**:它会和 .dshpc-picker__trigger--lg / --sm 同特异性(都是两个类),\n 且 split-group.css 在 picker.css 之后注入,会把三档高度全吃掉(md/lg 看起来一样大)。\n 改用 align-items:center —— 同 size 时两格自然等高的同时文字垂直居中;万一两格 size 不一致,\n 较矮的格也只是居中、不会顶对齐露白。 */\n .dshpc-split .dshpc-picker{display:flex;align-items:center;}\n .dshpc-split .dshpc-picker__trigger{border:0;border-radius:0;background:transparent;}\n .dshpc-split .dshpc-picker__trigger:focus-visible{outline:0;}\n /* 左格下拉:灰底(滑块的灰轨是它自己的 --dshpc-seg-track,不在这里覆盖) */\n .dshpc-split > :first-child .dshpc-picker__trigger{background:var(--dshpc-surface-sunken);}\n /* Segmented:只去外圆角与描边,灰轨保留;padding 保持 3px 不动 —— 它是高度契约的一部分\n (3 + item + 3 = control-h)。bordered 那档去掉描边、把让给描边的 1px 还回 padding,\n 否则会比右边矮 2px。 */\n .dshpc-split .dshpc-seg{border-radius:0;border:0;}\n .dshpc-split .dshpc-seg--bordered{padding:3px;}\n";
|
|
240
240
|
//#endregion
|
|
241
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
241
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/input-group-css.generated.js
|
|
242
242
|
const INPUT_GROUP_CSS = "\n/* ── 组合输入框 InputGroup ─────────────────────────────────────────────\n 输入框 + 后置按钮(一枚或多枚)+ 可选前置标题,焊成一体。\n 与 SplitGroup 同一套外观口径:外框 / 圆角 / 相邻 1px 分隔 / 整体聚焦圈都由外壳画,\n 内件(.dshpc-input / .dshpc-btn / .dshpc-iconbtn)把自己的边框、圆角、外圈交出来。\n\n 高度默认吃 --dshpc-control-h-*(sm 24 / md 28 / lg 32);调用方要自定义就在根节点\n 内联 height,这里让内件 height:100% 跟上 —— 内件档位高度只有 0,1,0,被本文件的\n 0,2,0 压掉,不会出现「外壳变高了、里面的框还是 32」。\n (⚠️ 别改成不写 height:100% 只靠 stretch:input 有确定高度时 flex 不会拉伸它。) */\n/* min-width:输入格是 flex:1,没有它时 inline-flex 按占位文字宽收得很窄(搜索框 + 按钮的典型用法会难看)。\n 要更宽 / 更窄由调用方在外面套壳或给 className,不许在这里写死 max-width。 */\n.dshpc-igroup{display:inline-flex;align-items:stretch;min-width:200px;max-width:100%;box-sizing:border-box;overflow:hidden;\n border:1px solid var(--dshpc-border);border-radius:var(--dshpc-radius-md);background:var(--dshpc-surface-1);}\n.dshpc-igroup--sm{height:var(--dshpc-control-h-sm);}\n.dshpc-igroup--md{height:var(--dshpc-control-h-md);}\n.dshpc-igroup--lg{height:var(--dshpc-control-h-lg);}\n.dshpc-igroup--error{border-color:var(--dshpc-danger);}\n/* 整体聚焦:内件自己的焦点圈交出来,由外壳画一整圈(各画各的会变成格内半圈) */\n.dshpc-igroup:focus-within{border-color:var(--dshpc-focus);box-shadow:0 0 0 1px var(--dshpc-focus);}\n\n/* 前置标题:与输入框同格,灰底区分(与 SplitGroup 左格同一口径) */\n.dshpc-igroup__label{display:inline-flex;align-items:center;flex:none;padding:0 8px;white-space:nowrap;\n background:var(--dshpc-surface-sunken);color:var(--dshpc-fg-2);\n font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);}\n.dshpc-igroup--md .dshpc-igroup__label,.dshpc-igroup--lg .dshpc-igroup__label{font-size:var(--dshpc-font-md);line-height:var(--dshpc-line-md);}\n\n/* 输入格:交出边框 / 圆角 / 底色 / 焦点圈;宽度交给 flex(原生 width:100% 会和 flex-basis 打架) */\n.dshpc-igroup > .dshpc-input{flex:1 1 auto;width:auto;min-width:0;height:100%;border:0;border-radius:0;background:transparent;}\n.dshpc-igroup > .dshpc-input:focus{box-shadow:none;}\n\n/* 按钮格:交出边框与圆角;实心底色保留(右侧「确定」该有重量)。\n 纯图标钮本身是固定宽的方块,这里改成按高度撑出的正方形,自定义高度时才不会变成竖长条。 */\n.dshpc-igroup > .dshpc-btn,.dshpc-igroup > .dshpc-iconbtn{flex:none;height:100%;border-radius:0;}\n.dshpc-igroup > .dshpc-iconbtn{width:auto;aspect-ratio:1;}\n.dshpc-igroup > .dshpc-btn{border:0;}\n\n/* 分隔线:相邻兄弟的左描边,不额外插 DOM。后两条是给「清过边框」的格子补回来的,\n 必须写成 0,2,0 且写在上面的 border:0 之后 —— 否则被 border:0 压掉,格子之间没分隔。 */\n.dshpc-igroup > * + *{box-sizing:border-box;border-left:1px solid var(--dshpc-border);}\n.dshpc-igroup > * + .dshpc-input{box-sizing:border-box;border-left:1px solid var(--dshpc-border);}\n.dshpc-igroup > * + .dshpc-btn{box-sizing:border-box;border-left:1px solid var(--dshpc-border);}\n";
|
|
243
243
|
//#endregion
|
|
244
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
244
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/table-css.generated.js
|
|
245
245
|
const TABLE_BASE_CSS = "/* ── 表格基础层(结构 + 交互 + 空态)─────────────────────────────────────\n 外观分档 = 分组件 + 分文件:本文件只放所有外观共用的部分;\n 表头底色、分隔线、悬浮 / 选中色由皮肤文件负责(table-plain.css 是第一档)。\n 皮肤选择器一律挂在 .dshpc-table--<skin> 下,与基础层不同名 —— 注入顺序不影响胜负\n (test/css-contract.test.mjs 禁止跨常量同名选择器)。\n 圆角裁剪 / 横向滚动归调用方容器,本层不设 overflow;也不做表头吸顶:\n 分组表头是多行,统一 top:0 会在滚动时互相盖住(要吸顶请在外层容器处理)。 */\n\n.dshpc-table{--dshpc-table-pad-x:var(--dshpc-space-3);--dshpc-table-head-h:44px;--dshpc-table-row-h:48px;\n width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;box-sizing:border-box;\n color:var(--dshpc-fg);font-size:var(--dshpc-font-md);line-height:var(--dshpc-line-md);}\n\n/* 密度三档:只改行高与水平内距,配色与分隔线归皮肤。compact / comfortable 各一行,\n 新增档位在此追加;列级 padding 走内联 style 覆盖(不在这里再开一套变量)。\n 默认水平内距 12px(space-3)—— 参考稿的色块间距,16px 偏松。 */\n.dshpc-table--density-compact{--dshpc-table-pad-x:var(--dshpc-space-2);--dshpc-table-head-h:36px;--dshpc-table-row-h:36px;}\n.dshpc-table--density-comfortable{--dshpc-table-pad-x:var(--dshpc-space-4);--dshpc-table-head-h:52px;--dshpc-table-row-h:60px;}\n\n.dshpc-table__head-cell,.dshpc-table__cell{box-sizing:border-box;padding:var(--dshpc-space-1) var(--dshpc-table-pad-x);\n text-align:left;vertical-align:middle;font-weight:400;}\n\n/* 表头 44 / 数据行 48 是 default 档(参考稿密度);height 在 table-cell 上是最小高,\n 多行内容会自动把行撑高,不会被截断。 */\n.dshpc-table__head-cell{height:var(--dshpc-table-head-h);font-size:var(--dshpc-font-sm);font-weight:600;color:var(--dshpc-fg-2);}\n.dshpc-table__head-cell--group{text-align:center;}\n.dshpc-table__cell{height:var(--dshpc-table-row-h);}\n\n.dshpc-table__head-cell--center,.dshpc-table__cell--center{text-align:center;}\n.dshpc-table__head-cell--right,.dshpc-table__cell--right{text-align:right;}\n\n.dshpc-table__row{transition:background-color var(--dshpc-dur-fast) var(--dshpc-ease);}\n/* 只有传了 onRowClick 的行才是可点的(数据属性由组件按此打)。 */\n.dshpc-table__row[data-interactive='true']{cursor:pointer;}\n.dshpc-table__row:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:-2px;}\n\n/* 斑马纹是通用能力(表级 striped 开关),放在基础层:底色取 token,各档皮肤不必各自实现。\n 选择器刻意只到 3 个类级别(表级 + 行 + :nth-child);皮肤层的行态规则带 __body 上下文\n + 属性选择器,必然是 4 级 ⇒ 与注入顺序无关地压过它。\n 2026-10-30 真机事故:这里曾写满 4 级(多了一个 __body),与选中的 4 级相同 ⇒ 基础层\n 比皮肤后注入,偶数行永远被斑马纹盖住(「单数行能选中、双数行点了没反应」)。 */\n.dshpc-table--striped .dshpc-table__row:nth-child(even){background:var(--dshpc-plate);}\n\n/* 分组通栏:一个表格里放多个板块(工作区 A / 工作区 B)时,每组先来一行横跨全部列的大标题,\n 然后才是这一组自己的表头与数据行。结构 + 底色归基础层(只用 token,各档皮肤共同成立);\n 通栏底走 --dshpc-table-banner-bg(与表头互换的那一档,2026-10-30 用户定);\n 通栏与组表头之间画一条线(用户 2026-10-30:那之间也要有 border);\n 组与组之间用通栏顶线隔开,第一组顶部不画(外框已经在那儿,画了就成双线)。 */\n.dshpc-table__group-cell{height:var(--dshpc-table-head-h);padding:var(--dshpc-space-1) var(--dshpc-table-pad-x);\n box-sizing:border-box;background:var(--dshpc-table-banner-bg);border-top:1px solid var(--dshpc-border);\n border-bottom:1px solid var(--dshpc-border);\n text-align:left;vertical-align:middle;font-size:var(--dshpc-font-sm);font-weight:600;color:var(--dshpc-fg);}\n.dshpc-table__group-body:first-of-type .dshpc-table__group-cell{border-top:0;}\n\n/* 通栏标题的固定标签(短竖线)与排版由 SectionHead 自带(4px 圆头),本层不再画。 */\n\n.dshpc-table__empty{height:80px;padding:0 var(--dshpc-space-4);text-align:center;\n color:var(--dshpc-fg-3);font-size:var(--dshpc-font-sm);}\n\n/* 加载态行(加载更多 / 没有更多 / 整表加载):单元格自身不画边框(底部状态行的顶线由皮肤补),内容居中;\n 整表加载默认占位 160px(可由 loadingHeight 覆盖),底部那行只占一行高。 */\n.dshpc-table__state-cell{padding:0;border:0;text-align:center;vertical-align:middle;}\n.dshpc-table__state{display:flex;align-items:center;justify-content:center;\n gap:var(--dshpc-space-2);min-height:40px;padding:var(--dshpc-space-1) var(--dshpc-table-pad-x);\n box-sizing:border-box;color:var(--dshpc-fg-3);font-size:var(--dshpc-font-sm);}\n.dshpc-table__state--full{flex-direction:column;min-height:160px;gap:var(--dshpc-space-3);font-size:var(--dshpc-font-sm);}\n.dshpc-table__state-text{line-height:1;}\n/* 底部哨兵:零高、无边框、无内容,只给 IntersectionObserver 一个落点。 */\n.dshpc-table__sentinel>td{height:0;padding:0;border:0;line-height:0;}\n\n/* 内建分页的外壳:表格在上、分页条在下,间距走 space-3(分页条自己管左右对齐)。 */\n.dshpc-table-frame{display:flex;flex-direction:column;gap:var(--dshpc-space-3);}\n";
|
|
246
246
|
//#endregion
|
|
247
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
247
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/table-plain-css.generated.js
|
|
248
248
|
const TABLE_PLAIN_CSS = "/* ── 外观一 · Plain(第一个样式:白卡片上的轻量表格)─────────────────────\n 特征:外框 + 灰底表头(含下边线,双行分组表头也清楚)、竖向分隔线、\n 数据行只保留极淡底线(不画重横线)、行悬浮淡蓝、选中行淡蓝底 + 左侧 3px 蓝竖条。\n 选择器全部挂在 .dshpc-table--plain 下,和基础层不同名(注入顺序无关)。\n 竖分隔线按列声明(格子上的 data-divider),不用相邻兄弟选择器 —— 后者会让每行首格\n 永远没有左线(用户 2026-10-30 真机看到的 Name 左侧缺线),且单元格跨列后会画错位置。\n 后续外观照此另建:table-grid.css / table-zebra.css,各自一个组件、各自 import 自己那份。 */\n\n/* 外框四态:all 四边 / x 只有左右 / y 只有上下 / none 全不要。\n 组件总会按 borders 属性和上对应 class,故这里不存在「无 class 的裸表」。\n 「不要左右两条边」就是 borders='y'。 */\n.dshpc-table--plain.dshpc-table--borders-all{border:1px solid var(--dshpc-border);}\n.dshpc-table--plain.dshpc-table--borders-x{border-left:1px solid var(--dshpc-border);\n border-right:1px solid var(--dshpc-border);}\n.dshpc-table--plain.dshpc-table--borders-y{border-top:1px solid var(--dshpc-border);\n border-bottom:1px solid var(--dshpc-border);}\n.dshpc-table--plain.dshpc-table--borders-none{border:0;}\n\n/* 表头:中性灰底 + 下边线。底色走 --dshpc-table-head-bg(= --dshpc-surface-sunken,\n 与通栏那层灰同源;2026-10-30 用户二次定案:表头 / 通栏互换底色);下边线兜住分组表头的第二层。 */\n.dshpc-table--plain .dshpc-table__head-cell{\n background:var(--dshpc-table-head-bg);\n border-bottom:1px solid var(--dshpc-border);\n}\n.dshpc-table--plain .dshpc-table__head-cell--group{color:var(--dshpc-fg-3);}\n\n/* 表头多色:列级 headerTone 打到 data-header-tone,浅底 + 同色文字。\n 色值全部来自 token(soft 底 / 实色字),暗色主题自动跟随,不写死任何 hex。\n 这组规则比上方灰底规则多一个属性选择器,必然覆盖默认灰底。 */\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='business']{background:var(--dshpc-business-soft);color:var(--dshpc-business);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='success']{background:var(--dshpc-success-soft);color:var(--dshpc-success);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='warning']{background:var(--dshpc-warning-soft);color:var(--dshpc-warning);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='danger']{background:var(--dshpc-danger-soft);color:var(--dshpc-danger);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='purple']{background:var(--dshpc-purple-soft);color:var(--dshpc-purple);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='pink']{background:var(--dshpc-pink-soft);color:var(--dshpc-pink);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='cyan']{background:var(--dshpc-cyan-soft);color:var(--dshpc-cyan);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='teal']{background:var(--dshpc-teal-soft);color:var(--dshpc-teal);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='orange']{background:var(--dshpc-orange-soft);color:var(--dshpc-orange);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='indigo']{background:var(--dshpc-indigo-soft);color:var(--dshpc-indigo);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='rose']{background:var(--dshpc-rose-soft);color:var(--dshpc-rose);}\n.dshpc-table--plain .dshpc-table__head-cell[data-header-tone='slate']{background:var(--dshpc-slate-soft);color:var(--dshpc-slate);}\n\n/* 竖分隔线:按列声明,**默认不画**。组件只给 divider: true 的列打 data-divider='left',\n 首列恒不画(那是外框的位置)。默认表格 = 只有横线、没有一条竖线;\n 要「列间有线」就给对应列 divider:true。 */\n.dshpc-table--plain .dshpc-table__head-cell[data-divider='left'],\n.dshpc-table--plain .dshpc-table__cell[data-divider='left']{border-left:1px solid var(--dshpc-border);}\n\n/* 数据行之间的极淡底线:只帮眼睛「分行」,不回到粗横线表格的老样子。 */\n.dshpc-table--plain .dshpc-table__row + .dshpc-table__row .dshpc-table__cell{\n border-top:1px solid var(--dshpc-border-faint);\n}\n\n/* 底部状态行(加载更多 / 到底):整行通栏,与上方数据行之间补一条实线。\n 只补顶线:左右两条不由这一格重复画 —— borders=all / x 时表级外框已经兜住;\n borders=y / none 本来就没有左右边。整表加载占位行不加(表头已有下边线,再加就成双线)。 */\n.dshpc-table--plain .dshpc-table__state-row--footer .dshpc-table__state-cell{\n border-top:1px solid var(--dshpc-border);\n}\n\n/* 没有左右外框时(borders=y)底部状态行下面那条表底线也去掉:\n 状态行只留上方一条实线,否则图标 / 文案下方还多一条孤线(2026-10-31 用户定)。\n borders=none 本来就没有底边,无需在此重复。 */\n.dshpc-table--plain.dshpc-table--borders-y.dshpc-table--foot-no-bottom{border-bottom:0;}\n\n/* 行悬浮:只在可点行上给反馈,静态表格不误导用户以为能点。\n 底色是极淡中性灰(--dshpc-table-row-hover:亮色一层淡黑 ≈1.5%,暗色一层淡白 ≈3%)——\n 2026-10-30 用户:hover 要特别淡的灰、不要淡蓝(第二次又要求再浅一半)。带 __body 上下文是为了压过基础层的斑马纹(见 table.css)。 */\n.dshpc-table--plain .dshpc-table__body .dshpc-table__row[data-interactive='true']:hover{background:var(--dshpc-table-row-hover);}\n\n/* 选中行:淡蓝底 + 左侧蓝竖条。用背景渐变画条,避免 tr 上伪元素 / 定位的兼容问题;\n 两条选择器同一份声明:悬浮态(多一个属性 + 伪类)不会盖掉选中态。\n 底色用 business-soft(比悬浮再明确一档但仍是浅色),条本身才是「选中」的信号。\n 特异性 4 级,高于基础层的斑马纹(3 级)⇒ 偶数行也能正常选中。 */\n.dshpc-table--plain .dshpc-table__body .dshpc-table__row[data-selected='true'],\n.dshpc-table--plain .dshpc-table__body .dshpc-table__row[data-selected='true'][data-interactive='true']:hover{\n background:linear-gradient(to right,var(--dshpc-business) 3px,var(--dshpc-business-soft) 3px);\n}\n";
|
|
249
249
|
//#endregion
|
|
250
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
250
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/navigation/pagination-css.generated.js
|
|
251
251
|
const PAGINATION_CSS = "/* ── 分页(‹ Previous 1 2 3 … 36 Next ›)────────────────────────────────────\n 当前页 = 蓝色圆角方块 + 白字(实心面的字必须走 --dshpc-on-signal,不许用主题反色);\n 其余页码是纯文字按钮,悬浮只给极淡中性底。对齐由 --left / --center / --right 三个修饰决定,\n 组件默认 right。颜色全部走 token,明暗自动跟随宿主。 */\n\n.dshpc-pagination{display:flex;align-items:center;gap:var(--dshpc-space-2);flex-wrap:wrap;\n font-size:var(--dshpc-font-sm);line-height:1;color:var(--dshpc-fg-2);}\n\n.dshpc-pagination--left{justify-content:flex-start;}\n.dshpc-pagination--center{justify-content:center;}\n.dshpc-pagination--right{justify-content:flex-end;}\n\n.dshpc-pagination__total{color:var(--dshpc-fg-3);margin-inline-end:var(--dshpc-space-1);}\n\n.dshpc-pagination__pages{display:flex;align-items:center;gap:2px;}\n\n/* 页码 / 上下页 = 核心 Button(当前页 info 实心蓝、其余 ghost),箭头 = 全站唯一 Chevron。\n 这里只补尺寸与间距,不重画按钮皮肤;两级选择器压过 .dshpc-btn--md 的内距。 */\n.dshpc-pagination .dshpc-pagination__page{padding:0 6px;min-width:28px;}\n.dshpc-pagination .dshpc-pagination__nav{padding:0 var(--dshpc-space-2);}\n\n.dshpc-pagination__ellipsis{display:inline-flex;align-items:center;justify-content:center;\n min-width:28px;height:28px;color:var(--dshpc-fg-3);}\n\n.dshpc-pagination__simple{min-width:64px;text-align:center;font-variant-numeric:tabular-nums;\n color:var(--dshpc-fg);}\n\n/* 简洁模式只留箭头:文字标签隐藏,箭头仍然可见(无障碍名还在 aria-label 上)。 */\n.dshpc-pagination--simple .dshpc-pagination__text{display:none;}\n\n/* 每页条数下拉 = 核心 Picker(箭头是全站唯一的 Chevron):只收窄不参与伸缩。 */\n.dshpc-pagination__size{flex:none;}\n";
|
|
252
252
|
//#endregion
|
|
253
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
253
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/section-head-css.generated.js
|
|
254
254
|
const SECTION_HEAD_CSS = "/* 分区标题行:标签(可选,画出来的短竖线)/ icon + 标题 + 右侧控件。 */\n.dshpc-section-head{display:flex;align-items:center;gap:var(--dshpc-space-2);\n margin-bottom:var(--dshpc-space-3);}\n.dshpc-section-head--flush{margin-bottom:0;}\n\n.dshpc-section-head__bar{flex:none;width:4px;height:1em;border-radius:999px;\n font-size:var(--dshpc-font-lg);background:var(--dshpc-fg-2);}\n\n.dshpc-section-head__icon{display:inline-flex;align-items:center;flex:none;\n line-height:var(--dshpc-line-lg);color:var(--dshpc-fg-3);}\n\n.dshpc-section-head__title{font-size:var(--dshpc-font-lg);line-height:var(--dshpc-line-lg);\n font-weight:600;color:var(--dshpc-fg);flex:none;}\n\n.dshpc-section-head__right{flex:1;display:flex;align-items:center;\n justify-content:flex-end;gap:var(--dshpc-space-2);min-width:0;}\n";
|
|
255
255
|
//#endregion
|
|
256
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
256
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/feedback/Loader.js
|
|
257
257
|
/**
|
|
258
258
|
* Loader —— 统一的加载动画图标(UI 基础层 · 反馈族)。
|
|
259
259
|
*
|
|
@@ -336,13 +336,13 @@ window.__ModuleLoader__.load({
|
|
|
336
336
|
}, variant === "ring" ? ringNode() : blockNodes());
|
|
337
337
|
}
|
|
338
338
|
//#endregion
|
|
339
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
339
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/overlay-css.generated.js
|
|
340
340
|
const OVERLAY_CSS = "/* 浮层公共骨架:遮罩 + 头部。Modal(居中)/ SideSheet(侧边)/ 选文件弹窗(锚定)共用这一份,\n 各家各自 registerStyle 同一份(幂等),谁也不许再抄一份遮罩。\n 关闭钮的皮肤在 panel.css(.dshpc-panel__close,旧类名作别名),不在这里再写一份。 */\n\n/* 遮罩 = 宿主遮罩变量 --dsw-alias-bg-mask-1(与官方 Modal / 兄弟项目 --tdt-mask 同一条真值,用户 2026-10-20)。 */\n/* 右边界让位页面级分栏(PanelDock 发布的 --dshpc-page-inset-right,用户 2026-10-22):\n 分栏不被压暗、照常可点;浮层在这块**剩下**的区域里排版,就像整页被推出去一样。 */\n.dshpc-overlay{\n position:fixed;inset:0 var(--dshpc-page-inset-right,0px) 0 0;\n background:var(--dshpc-mask);\n}\n/* 锁定态:禁用手势挂在遮罩上(面板外那一圈也要一致)。 */\n.dshpc-overlay[data-dshpc-locked]{cursor:not-allowed}\n/* 锁定时的透明点击层:吃指针、不改任何外观(变灰由各控件自己的 :disabled 负责)。\n 全透明是刻意的 —— 盖一层灰会让人以为界面坏了。 */\n.dshpc-lock-catcher{position:absolute;inset:0;z-index:1;cursor:not-allowed}\n/* 锁定态:消费方自绘的原生表单元素也「看起来禁用」。\n 整条选择器包在 :where() 里 = 特异性 0 —— 消费方任意一条自己的规则都能盖回来,我们只当默认值。\n 只写 opacity / cursor 两个属性;不想被灰就在自己元素上写 --dshpc-lock-dim: 1。\n 解锁 = 规则不再匹配,不存在「还原」,也就不会冲掉别人写的样式。 */\n:where(.dshpc-locked button:not(:disabled),.dshpc-locked input:not(:disabled),.dshpc-locked select:not(:disabled),.dshpc-locked textarea:not(:disabled)){\n opacity:var(--dshpc-lock-dim);cursor:not-allowed;\n}\n/* 居中档(Modal):z 走 modal 档。 */\n.dshpc-overlay--center{\n display:flex;align-items:center;justify-content:center;\n z-index:var(--dshpc-z-modal);\n}\n/* 侧边档(SideSheet):面板 absolute 贴边,不需要 flex 居中;z 走 drawer 档(低于 modal)。 */\n.dshpc-overlay--side{z-index:var(--dshpc-z-drawer)}\n/* 锚定档(选文件弹窗):遮罩照旧压暗 + 点外部关闭,面板自己 fixed 贴锚点,这里不做布局。 */\n.dshpc-overlay--plain{z-index:var(--dshpc-z-panel)}\n\n/* 头部四槽:左图标 / 标题组 / 弹性间隔 / 右侧动作区 + 关闭钮。\n 上下内距必须相等(18/12 会让标题离面板顶远、离分隔线近,用户 2026-11-02)。 */\n.dshpc-overlay-head{\n display:flex;align-items:center;gap:8px;padding:18px;\n border-bottom:1px solid var(--dshpc-border);flex-wrap:wrap;\n}\n.dshpc-overlay-head__heading{display:flex;align-items:center;gap:8px;min-width:0;flex:0 1 auto}\n.dshpc-overlay-head__lead{flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1}\n/* 标题组:第一行 = 标题 + 右侧小块(徽标紧跟标题),第二行 = 副标题。 */\n.dshpc-overlay-head__titlegroup{display:flex;flex-direction:column;gap:2px;min-width:0;flex:0 1 auto}\n.dshpc-overlay-head__titlerow{display:flex;align-items:center;gap:8px;min-width:0}\n.dshpc-overlay-head__title{font-size:var(--dshpc-font-lg);font-weight:600;line-height:1.4;min-width:0}\n/* 标题下副标题行(兄弟项目 .dsh-tdt-sv-sid:等宽字体、caption 色、可换行)。 */\n.dshpc-overlay-head__sid{font-family:var(--ds-font-family-code,monospace);font-size:var(--dshpc-font-xs);color:var(--dshpc-fg-3);word-break:break-all}\n.dshpc-overlay-head__extra{flex:none;display:inline-flex;align-items:center}\n.dshpc-overlay-head__spacer{flex:1 1 auto;min-width:8px}\n.dshpc-overlay-head__actions{flex:none;display:flex;align-items:center;gap:8px}\n";
|
|
341
341
|
//#endregion
|
|
342
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
342
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/panel-css.generated.js
|
|
343
343
|
const PANEL_CSS = "/* 浮层面板皮肤(2026-11-03 用户定:皮肤统一,只改样式不动交互)。\n *\n * 这份文件是**所有「浮起来的框」的皮肤真源**。定位(fixed / absolute、贴谁、怎么翻转、多大的\n * 层序)留在各自控件里,这里只管表面四件:底色 / 描边宽 / 圆角 / 阴影。\n * ⚠️ 组件 CSS 里不许再写这四个字面值 —— 想改外观就改这里,别在消费方另起一套。\n *\n * 三档(差异只在这三段定义,别处分叉):\n * --modal 居中模态(Modal / ConfirmModal / AlertModal 家族)\n * --popover 贴锚点的浮层面板(pickWorkspaceFile 的选文件弹窗)\n * --menu 下拉菜单(文件浏览器 ▾ 选层、Picker 下拉)\n *\n * 不并入三档的:PanelDock 与 SideSheet 是**贴边家族**(side-panel.css 的\n * .dshpc-side-surface,surface-base、无外描边)—— 2026-11-02 拍板「两者皮肤一模一样」,\n * 一个是布局成员、一个是贴边抽屉,都不是浮层。\n */\n.dshpc-panel{\n background:var(--dshpc-panel-bg);color:var(--dshpc-fg);\n border:var(--dshpc-panel-bw) solid var(--dshpc-border);\n border-radius:var(--dshpc-panel-radius);box-shadow:var(--dshpc-panel-shadow);\n}\n.dshpc-panel--modal{\n --dshpc-panel-bg:var(--dshpc-surface-1);\n --dshpc-panel-bw:3px;\n --dshpc-panel-radius:var(--dshpc-radius-xl);\n --dshpc-panel-shadow:var(--dshpc-shadow-2);\n overflow:hidden;\n}\n.dshpc-panel--popover{\n --dshpc-panel-bg:var(--dshpc-surface-1);\n --dshpc-panel-bw:1px;\n --dshpc-panel-radius:var(--dshpc-radius-lg);\n --dshpc-panel-shadow:var(--dshpc-shadow-2);\n overflow:hidden;\n}\n.dshpc-panel--menu{\n /* 菜单底与模态同一层(用户 2026-11-03:别用页面底色,暗色下看着全黑)。 */\n --dshpc-panel-bg:var(--dshpc-surface-1);\n --dshpc-panel-bw:1px;\n --dshpc-panel-radius:var(--dshpc-radius-sm);\n --dshpc-panel-shadow:var(--dshpc-shadow-1);\n}\n\n/* 浮层唯一的关闭钮(20×20 方角图标位)。\n 旧类名 .dshpc-overlay-head__close 保留为别名:消费方写在旧类名上的覆盖仍生效。 */\n.dshpc-panel__close,.dshpc-overlay-head__close{\n display:inline-flex;align-items:center;justify-content:center;flex:none;\n width:20px;height:20px;padding:0;border:none;border-radius:var(--dshpc-radius-sm);\n background:transparent;color:var(--dshpc-fg-3);font-family:inherit;font-size:13px;line-height:1;cursor:pointer;\n transition:background-color var(--dshpc-dur-fast) var(--dshpc-ease),color var(--dshpc-dur-fast) var(--dshpc-ease);\n}\n.dshpc-panel__close:hover,.dshpc-overlay-head__close:hover{background:var(--dshpc-hover);color:var(--dshpc-fg)}\n.dshpc-panel__close:focus-visible,.dshpc-overlay-head__close:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:1px}\n";
|
|
344
344
|
//#endregion
|
|
345
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
345
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/panel.js
|
|
346
346
|
/**
|
|
347
347
|
* 浮层面板公共件(2026-11-03):`PanelSurface` = 皮肤载体,`PanelClose` = 唯一那枚关闭钮。
|
|
348
348
|
*
|
|
@@ -377,7 +377,7 @@ window.__ModuleLoader__.load({
|
|
|
377
377
|
}, props.icon ?? "✕");
|
|
378
378
|
}
|
|
379
379
|
//#endregion
|
|
380
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
380
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/overlay.js
|
|
381
381
|
/**
|
|
382
382
|
* 浮层公共件 —— Modal 与 SideSheet 共用,**别各写一份**。
|
|
383
383
|
*
|
|
@@ -460,7 +460,7 @@ window.__ModuleLoader__.load({
|
|
|
460
460
|
}));
|
|
461
461
|
}
|
|
462
462
|
//#endregion
|
|
463
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
463
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/thenable.js
|
|
464
464
|
/** 返回值是不是 thenable。Button 的自动 loading 与命令式弹窗的收尾共用这一份判定。 */
|
|
465
465
|
function isThenable(value) {
|
|
466
466
|
if (value === null || value === void 0) return false;
|
|
@@ -475,7 +475,7 @@ window.__ModuleLoader__.load({
|
|
|
475
475
|
return value !== false;
|
|
476
476
|
}
|
|
477
477
|
//#endregion
|
|
478
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
478
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/actions/Button.js
|
|
479
479
|
/**
|
|
480
480
|
* 按钮 / 图标钮 —— **全站唯一实现**(L2 组件皮肤,P2)
|
|
481
481
|
*
|
|
@@ -680,7 +680,7 @@ window.__ModuleLoader__.load({
|
|
|
680
680
|
return (0, react$1.createElement)("button", attrs, loading ? (0, react$1.createElement)(Loader$2, { size: "xs" }) : icon);
|
|
681
681
|
}
|
|
682
682
|
//#endregion
|
|
683
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
683
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/utils/i18n.js
|
|
684
684
|
/**
|
|
685
685
|
* utils 自带的最小多语言。
|
|
686
686
|
*
|
|
@@ -881,6 +881,12 @@ window.__ModuleLoader__.load({
|
|
|
881
881
|
toolTitleWebFetch: "网页获取",
|
|
882
882
|
toolTitleGeneric: "工具调用",
|
|
883
883
|
toolTitleSearch: "搜索",
|
|
884
|
+
skillRowTitle: "加载技能",
|
|
885
|
+
skillRowPreparing: "准备加载技能",
|
|
886
|
+
skillRowRunning: "正在加载 skill",
|
|
887
|
+
skillRowFailed: "skill 加载失败",
|
|
888
|
+
skillRowStopped: "skill 加载已中止",
|
|
889
|
+
skillRowInstructions: "说明",
|
|
884
890
|
toolInputLabel: "输入",
|
|
885
891
|
toolPreparingContent: "{kilobytes} KB",
|
|
886
892
|
compactionTitle: "上下文已压缩",
|
|
@@ -1390,6 +1396,12 @@ window.__ModuleLoader__.load({
|
|
|
1390
1396
|
toolTitleWebFetch: "Fetch",
|
|
1391
1397
|
toolTitleGeneric: "Tool call",
|
|
1392
1398
|
toolTitleSearch: "Search",
|
|
1399
|
+
skillRowTitle: "Skill",
|
|
1400
|
+
skillRowPreparing: "Preparing to load a skill",
|
|
1401
|
+
skillRowRunning: "Loading skill",
|
|
1402
|
+
skillRowFailed: "Skill load failed",
|
|
1403
|
+
skillRowStopped: "Skill load stopped",
|
|
1404
|
+
skillRowInstructions: "Instructions",
|
|
1393
1405
|
toolInputLabel: "IN",
|
|
1394
1406
|
toolPreparingContent: "{kilobytes} KB",
|
|
1395
1407
|
compactionTitle: "Context compacted",
|
|
@@ -1732,13 +1744,13 @@ window.__ModuleLoader__.load({
|
|
|
1732
1744
|
});
|
|
1733
1745
|
}
|
|
1734
1746
|
//#endregion
|
|
1735
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
1747
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/feedback/feedback-css.generated.js
|
|
1736
1748
|
const FEEDBACK_CSS = "/* 遮罩与头部在 overlay.css,表面(底色/描边/圆角/阴影)在 panel.css 的 --modal 档,\n 这里只剩**家族布局与尺寸**。三者各管一段,别再把皮肤抄回来。 */\n.dshpc-modal{\n display:flex;flex-direction:column;box-sizing:border-box;\n}\n/* body = 唯一滚动容器:内距与滚动都归它(滚动条贴面板右缘,不被内距挤进来);\n 内容按流排,不设 height:100%、不自己开滚动条。\n 透明右边框 = 让滚动条与面板右缘隔 1px(口径见 style.md §滚动条让位)。 */\n.dshpc-modal__body{flex:1 1 auto;min-height:0;overflow:auto;padding:17px 18px;border-right:1px solid transparent}\n/* 底栏与头部同一口径(2026-11-02 用户):上下内距相等、内容垂直居中、默认带一条分隔线。\n 线可由消费方关掉(Modal 的 footerDivider=false)—— 确认框家族本来就没有线(与头部一致)。 */\n.dshpc-modal .dshpc-modal__foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:18px;border-top:1px solid var(--dshpc-border)}\n.dshpc-modal .dshpc-modal__foot--bare{border-top:none}\n/* 底栏左侧的过程提示:吃掉按钮之外的剩余宽,超长交给 FlipText 省略 / hover 跑马灯。 */\n.dshpc-modal .dshpc-modal__notice{flex:1 1 auto;min-width:0;font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);color:var(--dshpc-fg-3)}\n/* 自绘 toast 的样式在 2026-11-03 删除:Toast 早已改走宿主 toast()(Toast.ts 的 showNative),\n .dshpc-toast* 这几个类没有任何消费者,留着只是死样式(还带着裸 z-index 与裸阴影)。 */\n.dshpc-error__retry{\n margin-top:8px;color:var(--dshpc-link);cursor:pointer;background:none;border:none;padding:0;\n}\n/* 原生弹窗演示:经宿主 Modal 的 contentClassName 注入,证明宿主内容区尺寸可经类名自定义。 */\n.dshpc-native-demo-content{max-width:520px}\n/* 头部信号图标(AlertModal 按 severity 注入):自含配色,色值在 tokens.css 的 --dshpc-sev-*。 */\n.dshpc-alert-sev{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;font-size:12px;color:var(--dshpc-on-signal);flex:none}\n.dshpc-alert-sev--info{background:var(--dshpc-sev-info)}\n.dshpc-alert-sev--success{background:var(--dshpc-sev-success)}\n.dshpc-alert-sev--warning{background:var(--dshpc-sev-warning)}\n.dshpc-alert-sev--error{background:var(--dshpc-sev-error)}\n/* 小确认框家族(sm):严格抄兄弟项目 renderConfirm 的 dialogStyle(task-list.tsx:456)——\n 360px 宽 / 18px 内距 / 头部无分隔线 / 说明文字 fg-2 / 底部按钮右对齐。 */\n.dshpc-modal--sm{padding:18px}\n.dshpc-modal--sm .dshpc-overlay-head{padding:0 0 8px;border-bottom:none}\n.dshpc-modal--sm .dshpc-modal__body{padding:0 0 14px;overflow:visible;font-size:var(--dshpc-font-sm);color:var(--dshpc-fg-2);line-height:var(--dshpc-line-sm)}\n.dshpc-modal--sm .dshpc-modal__foot{padding:0;border-top:none}\n/* 锁定态(locked):只给透明点击层做定位锚点,**不压任何遮罩** —— 盖灰会让人以为界面坏了;\n 变灰是各控件自己 :disabled 的事(Button / Input / Picker … 本来就有那套样式)。 */\n.dshpc-modal--locked{position:relative}\n";
|
|
1737
1749
|
//#endregion
|
|
1738
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
1750
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/flip-css.generated.js
|
|
1739
1751
|
const FLIP_CSS = "/* 翻牌文本(FlipText):一个单行窗口 + 两层同格叠放,换字时旧的上移出、新的从下进。\n 溢出(三点省略 + hover 跑马灯)不在这里做 —— 交给 MarqueeText,本文件只管裁剪与切换动效。\n 叠放用 grid 同格而不是绝对定位:容器高度天然等于一行,不用测量、也不依赖 lh 单位。 */\n.dshpc-flip{--dshpc-flip-dur:260ms;--dshpc-flip-ease:cubic-bezier(.22,.61,.36,1);display:grid;min-width:0;overflow:hidden}\n.dshpc-flip__item{grid-area:1/1;min-width:0}\n.dshpc-flip__in{animation:dshpc-flip-in var(--dshpc-flip-dur) var(--dshpc-flip-ease) both}\n.dshpc-flip__out{animation:dshpc-flip-out var(--dshpc-flip-dur) var(--dshpc-flip-ease) both}\n@keyframes dshpc-flip-in{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}\n@keyframes dshpc-flip-out{from{transform:translateY(0);opacity:1}to{transform:translateY(-100%);opacity:0}}\n/* 前庭敏感 / 低性能设备关掉位移动画:换字仍在,只是不再翻。\n 旧帧没有动画可播,必须自己隐形 —— 两层同格叠放,留着就重影。 */\n@media (prefers-reduced-motion:reduce){\n .dshpc-flip__in,.dshpc-flip__out{animation:none}\n .dshpc-flip__out{opacity:0}\n}\n/* 扫光(sweep):常驻循环,停在原地的提示也看得出在动。开关默认关,弹窗 / 抽屉底栏默认开。\n 光必须只落在字上:盖一层半透明光带的话,notice 是 flex:1 撑开的宽容器,右侧大片空白\n 里会出现一条白光在扫。故把光做成文字自己的 background + background-clip:text 裁到字形;\n 基色取 currentColor ⇒ 调用方换字色也跟着走,不需要知道文字宽度。 */\n.dshpc-flip--sweep .dshpc-mq-in{\n background-image:linear-gradient(105deg,currentColor 0,currentColor 47%,color-mix(in srgb,var(--dshpc-on-signal) 70%,currentColor) 50%,currentColor 53%,currentColor 100%);\n background-size:300% 100%;background-repeat:no-repeat;\n background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;\n animation:dshpc-flip-sweep 1.5s linear infinite;\n}\n/* 1.5s 一轮:前 40% 扫完,其余停在视野外休息 —— 一直扫会晃眼,间歇才像「还在干活」。 */\n@keyframes dshpc-flip-sweep{0%{background-position:100% 0}40%,100%{background-position:0 0}}\n@media (prefers-reduced-motion:reduce){\n .dshpc-flip--sweep .dshpc-mq-in{animation:none;background-image:none;-webkit-text-fill-color:currentColor}\n}\n";
|
|
1740
1752
|
//#endregion
|
|
1741
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
1753
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/FlipText.js
|
|
1742
1754
|
/**
|
|
1743
1755
|
* 翻牌文本 —— 一行文字,换字时旧的上移出、新的从下进(机场翻牌那种)。
|
|
1744
1756
|
*
|
|
@@ -1801,7 +1813,7 @@ window.__ModuleLoader__.load({
|
|
|
1801
1813
|
}, (0, react$1.createElement)(MarqueeText, { text: slot.curr })));
|
|
1802
1814
|
}
|
|
1803
1815
|
//#endregion
|
|
1804
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
1816
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/feedback/Modal.js
|
|
1805
1817
|
/**
|
|
1806
1818
|
* 模态弹窗(自绘 overlay,**不用 react-dom 的 portal**,避免多一个必需依赖)。
|
|
1807
1819
|
*
|
|
@@ -1863,7 +1875,7 @@ window.__ModuleLoader__.load({
|
|
|
1863
1875
|
}), props.footer), locked ? (0, react$1.createElement)(OverlayLockCatcher) : null)));
|
|
1864
1876
|
}
|
|
1865
1877
|
//#endregion
|
|
1866
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
1878
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/feedback/ConfirmModal.js
|
|
1867
1879
|
/**
|
|
1868
1880
|
* 确认框(语义层,基于 Modal):双按钮(取消 outline + 确认语义档)、无 ✕;无标题时整条头部消失。
|
|
1869
1881
|
* 样式封闭:按钮只暴露语义档(tone → variant),不透传任意 className/style。
|
|
@@ -1910,7 +1922,7 @@ window.__ModuleLoader__.load({
|
|
|
1910
1922
|
}, props.message ?? null);
|
|
1911
1923
|
}
|
|
1912
1924
|
//#endregion
|
|
1913
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
1925
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/feedback/modal-host.js
|
|
1914
1926
|
let hostRoot = null;
|
|
1915
1927
|
let hostContainer = null;
|
|
1916
1928
|
let entries = [];
|
|
@@ -2007,7 +2019,7 @@ window.__ModuleLoader__.load({
|
|
|
2007
2019
|
});
|
|
2008
2020
|
}
|
|
2009
2021
|
//#endregion
|
|
2010
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
2022
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/official.js
|
|
2011
2023
|
/**
|
|
2012
2024
|
* L1 adapter —— 全仓**唯一** import 官方 primitives 平台模块的文件。
|
|
2013
2025
|
*
|
|
@@ -2118,7 +2130,7 @@ window.__ModuleLoader__.load({
|
|
|
2118
2130
|
alert: hostAlert
|
|
2119
2131
|
});
|
|
2120
2132
|
//#endregion
|
|
2121
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
2133
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/host-data.js
|
|
2122
2134
|
/** 模型目录的 observable store(useSyncExternalStore 直接消费)。 */
|
|
2123
2135
|
var ModelCatalogStore = class {
|
|
2124
2136
|
constructor() {
|
|
@@ -2220,7 +2232,7 @@ window.__ModuleLoader__.load({
|
|
|
2220
2232
|
});
|
|
2221
2233
|
}
|
|
2222
2234
|
//#endregion
|
|
2223
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
2235
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/locale.js
|
|
2224
2236
|
/** 返回当前语言,并在宿主语言切换(`<html lang>` 变化)时触发重渲。 */
|
|
2225
2237
|
function useLocale() {
|
|
2226
2238
|
const [locale, setLocaleState] = (0, react$1.useState)(getLocale);
|
|
@@ -2239,7 +2251,7 @@ window.__ModuleLoader__.load({
|
|
|
2239
2251
|
return locale;
|
|
2240
2252
|
}
|
|
2241
2253
|
//#endregion
|
|
2242
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
2254
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/utils/path.js
|
|
2243
2255
|
/**
|
|
2244
2256
|
* 纯路径方法 —— 只做字符串切分 / 拼接,不碰宿主、不依赖 React / DOM。
|
|
2245
2257
|
*
|
|
@@ -2278,7 +2290,7 @@ window.__ModuleLoader__.load({
|
|
|
2278
2290
|
return dir === "" ? name : `${dir}/${name}`;
|
|
2279
2291
|
}
|
|
2280
2292
|
//#endregion
|
|
2281
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
2293
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/types.js
|
|
2282
2294
|
/** HTML 静态预览的扩展名(与官方 htmlBodyDefinition 同款)。 */
|
|
2283
2295
|
const HTML_KINDS = ["html", "htm"];
|
|
2284
2296
|
/**
|
|
@@ -2580,10 +2592,10 @@ window.__ModuleLoader__.load({
|
|
|
2580
2592
|
return best;
|
|
2581
2593
|
}
|
|
2582
2594
|
//#endregion
|
|
2583
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
2595
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/explorer-css.generated.js
|
|
2584
2596
|
const EXPLORER_CSS = "/* 工作区文件浏览器(dshpc-fb-*)。\n *\n * 度量真源 = 兄弟项目 dsh-task-dispatch-table 的 src/client/archive-session-css.ts\n * (.dsh-tdt-sv-* 全族)。**逐条照抄,不许自己估**:padding / gap / 圆角 / 字号 / 行高 /\n * 边框色 / 悬停色 / 透明度动画 / 溢出策略,一一对应,改这里之前先去那边对原文。\n * 前缀与变量名换成本仓口径(--tdt-* → --dshpc-*),数值不换。\n * **例外**:容器级内距(__bar / __title / __tree / __body)2026-11-03 起改成四周一致\n * 的 token 档(space-2 / space-3)——用户反馈兄弟那套「左右比上下宽」在这两处窗口里不对称。\n * 行级内距(__row / __row-note / __banner)仍是兄弟数值,未动。\n *\n * 控件:能核心就核心(面包屑 = Button ghost、行尾 = Button outline、展开 / 图标 = IconButton、\n * 分段 = Segmented、文字 = MarqueeText)。核心控件自带的 padding / 高度 / 皮肤在本文件里\n * **按兄弟数值覆盖**(选择器带 .dshpc-fb 前缀提高特异性,确保盖得住控件默认值)。\n */\n/* 背景不在这里画:dock 由 .dshpc-side-surface、选文件弹窗由 .dshpc-panel 提供。\n 自己再刷一层 surface-base 会把面板档位(modal 同色的 surface-1)盖掉 —— 弹窗就显得发黑。 */\n.dshpc-fb{\n position:relative;display:flex;flex-direction:column;height:100%;min-height:0;\n background:transparent;color:var(--dshpc-fg);\n}\n\n/* 第一排:▾ 选层 + 面包屑 + 动作(兄弟 .dsh-tdt-sv-crumbbar)\n ⚠️ 不能 overflow:hidden —— 下拉浮层挂在它下面,裁了就看不见。 */\n.dshpc-fb__bar{\n position:relative;flex:none;display:flex;align-items:center;gap:2px;\n /* 四周内距一致(用户 2026-11-03:原来 4/10,左右比上下宽,看着不对称)——下文 __title / __tree / __body 同口径。 */\n padding:var(--dshpc-space-2);border-bottom:1px solid var(--dshpc-border);white-space:nowrap;\n}\n.dshpc-fb__menu-wrap{position:relative;flex:none;display:inline-flex}\n.dshpc-fb__crumbs{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:2px;overflow:hidden}\n.dshpc-fb__crumbs-measure{\n position:absolute;top:0;left:0;display:inline-flex;align-items:center;gap:2px;\n visibility:hidden;pointer-events:none;white-space:nowrap;\n}\n\n/* 面包屑:核心 ghost 钮,但皮肤与尺寸取兄弟 .dsh-tdt-sv-crumb(高由内容决定,不锁控制高)。 */\n.dshpc-fb .dshpc-fb__crumb{\n appearance:none;background:0 0;border:none;height:auto;\n padding:2px 4px;border-radius:var(--dshpc-radius-sm);\n font:inherit;font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);\n color:var(--dshpc-fg-2);cursor:pointer;\n display:inline-flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;\n}\n.dshpc-fb .dshpc-fb__crumb:hover{background:var(--dshpc-hover);color:var(--dshpc-fg)}\n.dshpc-fb .dshpc-fb__crumb:disabled{color:var(--dshpc-fg-2);cursor:default}\n.dshpc-fb .dshpc-fb__crumb--current{cursor:default;color:var(--dshpc-fg);font-weight:600;min-width:0}\n.dshpc-fb .dshpc-fb__crumb--current:hover{background:0 0}\n.dshpc-fb__crumb-mq{flex:1 1 auto;min-width:0}\n.dshpc-fb__crumb-sep{flex:none;color:var(--dshpc-fg-3)}\n\n/* 越界(outside-workspace)第一排:只读完整路径(兄弟 .dsh-tdt-sv-crumbbar-plain-inner)。 */\n.dshpc-fb__bar-plain{\n font-family:var(--dshpc-font-mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);\n font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);color:var(--dshpc-fg-2);\n white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default;user-select:none;\n}\n.dshpc-fb__actions{flex:none;display:flex;align-items:center;gap:4px}\n/* 选择器头部「选当前文件 / 当前文件夹」钮:与 ✕ 并排,不被面包屑挤扁。\n 「选当前目录」= 核心 Button outline(sm 档):尺寸与皮肤全归核心,这里只留布局。\n ⚠️ 别再往这里写 height / padding 覆盖 —— 域按登记顺序拼接,核心 .dshpc-btn--sm 谁先谁后\n 取决于渲染次序,覆盖会时灵时不灵(2026-11-03 前就是这么写的)。 */\n.dshpc-fb__pick{flex:none}\n\n/* ▾ 选层浮层。\n 层序:遮罩必须高于 picker 面板(--dshpc-z-panel),否则菜单开着点面板不算「点外部」;\n 菜单再压在遮罩之上,所以是 popmenu 一档 +1。表皮来自 panel.css 的 menu 档。 */\n.dshpc-fb__crumbs-backdrop{position:fixed;inset:0;z-index:var(--dshpc-z-popmenu);background:transparent}\n.dshpc-fb__crumbs-menu{\n position:absolute;top:calc(100% + 4px);left:0;z-index:calc(var(--dshpc-z-popmenu) + 1);\n min-width:160px;max-height:240px;overflow:auto;padding:4px;display:flex;flex-direction:column;\n}\n.dshpc-fb__menu-item{\n appearance:none;background:0 0;border:none;text-align:left;font:inherit;\n font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-md);\n padding:4px 8px;border-radius:var(--dshpc-radius-sm);color:var(--dshpc-fg);cursor:pointer;\n max-width:280px;display:flex;align-items:center;gap:2px;\n overflow:hidden;text-overflow:ellipsis;white-space:nowrap;\n}\n.dshpc-fb__menu-item:hover{background:var(--dshpc-hover)}\n.dshpc-fb__menu-empty{\n font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-md);padding:4px 8px;color:var(--dshpc-fg-3);\n}\n.dshpc-fb__menu-icon{flex:none;display:inline-flex}\n.dshpc-fb__menu-chev{flex:none;color:var(--dshpc-fg-3);margin-right:1px}\n.dshpc-fb__menu-chev-slot{flex:none;width:11px;height:11px;margin-right:1px}\n.dshpc-fb__menu-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n\n/* 第二排(仅预览态):文件名 + 工具(兄弟 .dsh-tdt-sv-titlebar / -preview-title-inner)。 */\n.dshpc-fb__title{\n flex:none;display:flex;align-items:center;gap:8px;\n padding:var(--dshpc-space-2);border-bottom:1px solid var(--dshpc-border);\n}\n.dshpc-fb__title-inner{\n font-family:var(--dshpc-font-mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);\n font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);color:var(--dshpc-fg);\n white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default;\n}\n\n/* 主体(兄弟 .dsh-tdt-sv-preview-body / -hint / -preview-err)\n 下面三个滚动容器都带透明右边框 = 滚动条与右缘隔 1px(口径见 style.md §滚动条让位)。 */\n.dshpc-fb__body{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:var(--dshpc-space-3);border-right:1px solid transparent}\n.dshpc-fb__note{font-size:var(--dshpc-font-sm);color:var(--dshpc-fg-2);text-align:center;padding:12px 0}\n.dshpc-fb__err{\n display:flex;flex-direction:column;align-items:flex-start;gap:10px;\n font-size:var(--dshpc-font-sm);line-height:1.6;color:var(--dshpc-fg-2);padding:8px 0;\n}\n\n/* 目录树(兄弟 .dsh-tdt-sv-tree*) */\n.dshpc-fb__tree{flex:1;min-height:0;overflow:auto;padding:var(--dshpc-space-2);border-right:1px solid transparent;border-bottom:1px solid transparent}\n.dshpc-fb__row{\n display:flex;align-items:center;gap:8px;padding:6px 8px;\n border-radius:var(--dshpc-radius-sm);cursor:pointer;user-select:none;\n}\n.dshpc-fb__row:hover{background:var(--dshpc-hover)}\n.dshpc-fb__row:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:-2px}\n.dshpc-fb__row-icon{flex:none;display:inline-flex;color:var(--dshpc-fg-2)}\n.dshpc-fb__row-name{\n flex:1;min-width:0;font-size:var(--dshpc-font-md);line-height:var(--dshpc-line-md);color:var(--dshpc-fg);\n overflow:hidden;text-overflow:ellipsis;white-space:nowrap;\n}\n\n/* 展开开关:核心 IconButton,命中位 20×20 + 展开时转 90°(兄弟 .dsh-tdt-sv-tree-toggle{,-open})。 */\n.dshpc-fb .dshpc-fb__row-toggle{\n appearance:none;background:0 0;border:none;flex:none;\n width:20px;height:20px;padding:0;margin:0;border-radius:var(--dshpc-radius-sm);\n color:var(--dshpc-fg-2);cursor:pointer;\n display:inline-flex;align-items:center;justify-content:center;\n transition:transform var(--dshpc-dur-fast) var(--dshpc-ease),background var(--dshpc-dur-fast) var(--dshpc-ease);\n}\n.dshpc-fb .dshpc-fb__row-toggle--open{transform:rotate(90deg)}\n\n/* 行尾「进入 / 选择」:按钮**皮肤完全交给核心 Button**(2026-11-03:原来这里又写了一遍描边/内距/\n 字号,等于自己手搓了一颗,跟别处的按钮长得不一样)。本仓只保留布局与「悬停才现身」:\n 平时隐身但占位(opacity 而非 display)⇒ 出现时不顶动行内布局。 */\n.dshpc-fb .dshpc-fb__row-act{\n flex:none;margin-left:auto;\n opacity:0;pointer-events:none;\n transition:opacity var(--dshpc-dur-fast) var(--dshpc-ease);\n}\n.dshpc-fb__row:hover .dshpc-fb__row-act,.dshpc-fb .dshpc-fb__row-act:focus-visible{opacity:1;pointer-events:auto}\n\n.dshpc-fb__row-children{\n margin-left:9px;padding-left:7px;border-left:1px solid var(--dshpc-border);\n display:flex;flex-direction:column;\n}\n.dshpc-fb__row-note{flex:none;padding:8px 10px;font-size:var(--dshpc-font-sm);color:var(--dshpc-fg-3)}\n.dshpc-fb__row-err{padding:4px 8px 4px 36px;font-size:var(--dshpc-font-sm);color:var(--dshpc-danger)}\n\n/* 预览体内部容器(仅本仓预览组件用;兄弟对应 preview-fill / preview-body-code 一类)。\n 必须 border-box:渲染态 inline 加了 padding:12px 14px,content-box 下 width:100%+padding\n 会溢出父层 28px(父 .dshpc-fb 无 overflow 裁切)→ 恒多一条横滚条;border-box 把 padding\n 算进 100%,从根消除该溢出。 */\n.dshpc-fb__text{flex:1;min-height:0;overflow:auto;width:100%;box-sizing:border-box;border-right:1px solid transparent;border-bottom:1px solid transparent}\n.dshpc-fb__banner{padding:6px 10px;background:var(--dshpc-open-bg);color:var(--dshpc-fg-2);font-size:var(--dshpc-font-sm)}\n.dshpc-fb__more{display:flex;justify-content:center;padding:10px}\n.dshpc-fb__image{max-width:100%;border-radius:var(--dshpc-radius-sm);border:1px solid var(--dshpc-border)}\n/* iframe 的外壳(兄弟 .dsh-tdt-sv-preview-fill):iframe 必须包在这一层里才拿得到高度——\n 裸挂 iframe 时替换元素的自动最小尺寸会让高度算不出来(表现为预览区整片空白、像没反应)。 */\n.dshpc-fb__fill{flex:1;min-height:0;display:flex;overflow:hidden;padding:0}\n.dshpc-fb__frame{flex:1;min-height:0;width:100%;height:100%;border:none;background:var(--dshpc-surface-1)}\n";
|
|
2585
2597
|
//#endregion
|
|
2586
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
2598
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/preview/BytesPreview.js
|
|
2587
2599
|
function BytesPreview(props) {
|
|
2588
2600
|
ensureComponentStyles("explorer", EXPLORER_CSS);
|
|
2589
2601
|
const tt = props.translate ?? t$2;
|
|
@@ -18240,7 +18252,7 @@ window.__ModuleLoader__.load({
|
|
|
18240
18252
|
be picked up by regular highlighters (though you can derive them
|
|
18241
18253
|
from standard tags to allow highlighters to fall back to those).
|
|
18242
18254
|
*/
|
|
18243
|
-
var Tag$
|
|
18255
|
+
var Tag$3 = class Tag$3 {
|
|
18244
18256
|
/**
|
|
18245
18257
|
@internal
|
|
18246
18258
|
*/
|
|
@@ -18261,9 +18273,9 @@ window.__ModuleLoader__.load({
|
|
|
18261
18273
|
}
|
|
18262
18274
|
static define(nameOrParent, parent) {
|
|
18263
18275
|
let name = typeof nameOrParent == "string" ? nameOrParent : "?";
|
|
18264
|
-
if (nameOrParent instanceof Tag$
|
|
18276
|
+
if (nameOrParent instanceof Tag$3) parent = nameOrParent;
|
|
18265
18277
|
if (parent === null || parent === void 0 ? void 0 : parent.base) throw new Error("Can not derive from a modified tag");
|
|
18266
|
-
let tag = new Tag$
|
|
18278
|
+
let tag = new Tag$3(name, [], null, []);
|
|
18267
18279
|
tag.set.push(tag);
|
|
18268
18280
|
if (parent) for (let t of parent.set) tag.set.push(t);
|
|
18269
18281
|
return tag;
|
|
@@ -18299,7 +18311,7 @@ window.__ModuleLoader__.load({
|
|
|
18299
18311
|
if (!mods.length) return base;
|
|
18300
18312
|
let exists = mods[0].instances.find((t) => t.base == base && sameArray(mods, t.modified));
|
|
18301
18313
|
if (exists) return exists;
|
|
18302
|
-
let set = [], tag = new Tag$
|
|
18314
|
+
let set = [], tag = new Tag$3(base.name, set, base, mods);
|
|
18303
18315
|
for (let m of mods) m.instances.push(tag);
|
|
18304
18316
|
let configs = powerSet(mods);
|
|
18305
18317
|
for (let parent of base.set) if (!parent.modified.length) for (let config of configs) set.push(Modifier.get(parent, config));
|
|
@@ -18560,7 +18572,7 @@ window.__ModuleLoader__.load({
|
|
|
18560
18572
|
while (rule && rule.context && !node.matchContext(rule.context)) rule = rule.next;
|
|
18561
18573
|
return rule || null;
|
|
18562
18574
|
}
|
|
18563
|
-
const t$1 = Tag$
|
|
18575
|
+
const t$1 = Tag$3.define;
|
|
18564
18576
|
const comment$2 = t$1();
|
|
18565
18577
|
const name = t$1();
|
|
18566
18578
|
const typeName = t$1(name);
|
|
@@ -18926,31 +18938,31 @@ window.__ModuleLoader__.load({
|
|
|
18926
18938
|
given element is being defined. Expected to be used with the
|
|
18927
18939
|
various [name](#highlight.tags.name) tags.
|
|
18928
18940
|
*/
|
|
18929
|
-
definition: Tag$
|
|
18941
|
+
definition: Tag$3.defineModifier("definition"),
|
|
18930
18942
|
/**
|
|
18931
18943
|
[Modifier](#highlight.Tag^defineModifier) that indicates that
|
|
18932
18944
|
something is constant. Mostly expected to be used with
|
|
18933
18945
|
[variable names](#highlight.tags.variableName).
|
|
18934
18946
|
*/
|
|
18935
|
-
constant: Tag$
|
|
18947
|
+
constant: Tag$3.defineModifier("constant"),
|
|
18936
18948
|
/**
|
|
18937
18949
|
[Modifier](#highlight.Tag^defineModifier) used to indicate that
|
|
18938
18950
|
a [variable](#highlight.tags.variableName) or [property
|
|
18939
18951
|
name](#highlight.tags.propertyName) is being called or defined
|
|
18940
18952
|
as a function.
|
|
18941
18953
|
*/
|
|
18942
|
-
function: Tag$
|
|
18954
|
+
function: Tag$3.defineModifier("function"),
|
|
18943
18955
|
/**
|
|
18944
18956
|
[Modifier](#highlight.Tag^defineModifier) that can be applied to
|
|
18945
18957
|
[names](#highlight.tags.name) to indicate that they belong to
|
|
18946
18958
|
the language's standard environment.
|
|
18947
18959
|
*/
|
|
18948
|
-
standard: Tag$
|
|
18960
|
+
standard: Tag$3.defineModifier("standard"),
|
|
18949
18961
|
/**
|
|
18950
18962
|
[Modifier](#highlight.Tag^defineModifier) that indicates a given
|
|
18951
18963
|
[names](#highlight.tags.name) is local to some scope.
|
|
18952
18964
|
*/
|
|
18953
|
-
local: Tag$
|
|
18965
|
+
local: Tag$3.defineModifier("local"),
|
|
18954
18966
|
/**
|
|
18955
18967
|
A generic variant [modifier](#highlight.Tag^defineModifier) that
|
|
18956
18968
|
can be used to tag language-specific alternative variants of
|
|
@@ -18959,11 +18971,11 @@ window.__ModuleLoader__.load({
|
|
|
18959
18971
|
[variable name](#highlight.tags.variableName) tags, since those
|
|
18960
18972
|
come up a lot.
|
|
18961
18973
|
*/
|
|
18962
|
-
special: Tag$
|
|
18974
|
+
special: Tag$3.defineModifier("special")
|
|
18963
18975
|
};
|
|
18964
18976
|
for (let name in tags$1) {
|
|
18965
18977
|
let val = tags$1[name];
|
|
18966
|
-
if (val instanceof Tag$
|
|
18978
|
+
if (val instanceof Tag$3) val.name = name;
|
|
18967
18979
|
}
|
|
18968
18980
|
tagHighlighter([
|
|
18969
18981
|
{
|
|
@@ -30560,7 +30572,7 @@ window.__ModuleLoader__.load({
|
|
|
30560
30572
|
}));
|
|
30561
30573
|
if (style) {
|
|
30562
30574
|
if (!styles) styles = {};
|
|
30563
|
-
if (Array.isArray(style) || style instanceof Tag$
|
|
30575
|
+
if (Array.isArray(style) || style instanceof Tag$3) styles[name] = style;
|
|
30564
30576
|
else Object.assign(styles, style);
|
|
30565
30577
|
}
|
|
30566
30578
|
}
|
|
@@ -35601,7 +35613,7 @@ window.__ModuleLoader__.load({
|
|
|
35601
35613
|
const QuotedLiteral = 9;
|
|
35602
35614
|
const Anchor = 10;
|
|
35603
35615
|
const Alias = 11;
|
|
35604
|
-
const Tag$
|
|
35616
|
+
const Tag$2 = 12;
|
|
35605
35617
|
const BlockLiteralContent = 13;
|
|
35606
35618
|
const BracketL = 19;
|
|
35607
35619
|
const FlowSequence = 20;
|
|
@@ -35826,7 +35838,7 @@ window.__ModuleLoader__.load({
|
|
|
35826
35838
|
const literals = new ExternalTokenizer((input, stack) => {
|
|
35827
35839
|
if (input.next == 33) {
|
|
35828
35840
|
readTag(input);
|
|
35829
|
-
input.acceptToken(Tag$
|
|
35841
|
+
input.acceptToken(Tag$2);
|
|
35830
35842
|
} else if (input.next == 38 || input.next == 42) {
|
|
35831
35843
|
let token = input.next == 38 ? Anchor : Alias;
|
|
35832
35844
|
readAnchor(input);
|
|
@@ -48021,7 +48033,7 @@ window.__ModuleLoader__.load({
|
|
|
48021
48033
|
const stex = mkStex(false);
|
|
48022
48034
|
mkStex(true);
|
|
48023
48035
|
//#endregion
|
|
48024
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48036
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/code-viewer-lang.js
|
|
48025
48037
|
/**
|
|
48026
48038
|
* 源码态语法高亮:扩展名 → CodeMirror 语言映射。
|
|
48027
48039
|
*
|
|
@@ -48174,7 +48186,7 @@ window.__ModuleLoader__.load({
|
|
|
48174
48186
|
}
|
|
48175
48187
|
}
|
|
48176
48188
|
//#endregion
|
|
48177
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48189
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/code-viewer-theme.js
|
|
48178
48190
|
/**
|
|
48179
48191
|
* CodeMirror 6 主题(DSH 共享底座版)。
|
|
48180
48192
|
*
|
|
@@ -48578,10 +48590,10 @@ window.__ModuleLoader__.load({
|
|
|
48578
48590
|
];
|
|
48579
48591
|
}
|
|
48580
48592
|
//#endregion
|
|
48581
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48593
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/code-viewer-css.generated.js
|
|
48582
48594
|
const CODE_VIEWER_CSS = "/* CodeViewer(只读 CodeMirror 查看器)样式。类名固定 dshpc-cv*;颜色吃 --dshpc-* token,\n 深色由 design 的 token 深色段自动生效(不写死颜色值)。 */\n/* flex:1 1 auto + min-width:0:调用方常把它放进 display:flex 的容器里(TextPreview),\n 不写会在主轴按内容宽排 —— 短文本时 __copy(absolute 相对本层)落在文字右端而不是面板右缘。 */\n.dshpc-cv{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-width:0;height:100%;min-height:0;}\n/* 复制钮复用核心 IconButton(variant=outline / size=md):盒型、描边、圆角(已统一 md)、底色、hover 全由核心提供;\n 这里只管「绝对定位 + 默认隐藏、hover/聚焦才显」(overlay 浮在编辑器右上角)。 */\n.dshpc-cv__copy{position:absolute;top:6px;right:6px;z-index:5;opacity:0;}\n.dshpc-cv:hover .dshpc-cv__copy,.dshpc-cv__copy:focus-visible{opacity:1;}\n.dshpc-cv__copy svg{width:16px;height:16px;}\n.dshpc-cv__editor{flex:1 1 auto;min-height:0;overflow:hidden;}\n.dshpc-cv__editor .cm-editor{height:100%;}\n/* 透明右边框 = 滚动条与右缘隔 1px(口径见 style.md §滚动条让位)。\n 只给右边:给底边会改 scroller 高度,CodeMirror 的测量循环会多算一条横滚条。 */\n.dshpc-cv__editor .cm-scroller{overflow:auto;border-right:1px solid transparent}\n";
|
|
48583
48595
|
//#endregion
|
|
48584
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48596
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/CodeViewer.js
|
|
48585
48597
|
/**
|
|
48586
48598
|
* CodeViewer —— 只读源码查看器(替代官方 Shiki CodeBlock),DSH 共享底座版。
|
|
48587
48599
|
*
|
|
@@ -48685,7 +48697,7 @@ window.__ModuleLoader__.load({
|
|
|
48685
48697
|
}));
|
|
48686
48698
|
}
|
|
48687
48699
|
//#endregion
|
|
48688
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48700
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/utils/number.js
|
|
48689
48701
|
/**
|
|
48690
48702
|
* 字节数 → 人话(`12 KB` / `3.4 MB`)。
|
|
48691
48703
|
* 0 与负数 ⇒ `—`(不显示「0 B」这种假精确)。
|
|
@@ -48708,7 +48720,7 @@ window.__ModuleLoader__.load({
|
|
|
48708
48720
|
return `${value >= 10 ? String(Math.round(value)) : value.toFixed(1)} ${units[unit]}`;
|
|
48709
48721
|
}
|
|
48710
48722
|
//#endregion
|
|
48711
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48723
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/preview/md-labels.js
|
|
48712
48724
|
function markdownLabels() {
|
|
48713
48725
|
return {
|
|
48714
48726
|
code: {
|
|
@@ -48724,7 +48736,7 @@ window.__ModuleLoader__.load({
|
|
|
48724
48736
|
};
|
|
48725
48737
|
}
|
|
48726
48738
|
//#endregion
|
|
48727
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48739
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/preview/TextPreview.js
|
|
48728
48740
|
/** 定位到行时最多自动续翻的页数(远处行号不值得为它打一整圈往返;用户仍可手动「加载更多」)。 */
|
|
48729
48741
|
const FOCUS_MAX_PAGES = 10;
|
|
48730
48742
|
function TextPreview(props) {
|
|
@@ -48825,7 +48837,7 @@ window.__ModuleLoader__.load({
|
|
|
48825
48837
|
}, tt("previewLoadMore"))) : null);
|
|
48826
48838
|
}
|
|
48827
48839
|
//#endregion
|
|
48828
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48840
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/preview/HtmlPreview.js
|
|
48829
48841
|
/** 官方 CSP 原文(documentpreview lib/client.js 同款,不多开不少关)。 */
|
|
48830
48842
|
const HTML_CSP = "default-src 'none'; script-src 'none'; style-src 'unsafe-inline'; img-src data:; font-src data:; media-src data:";
|
|
48831
48843
|
/** 禁用标签(官方清单)。 */
|
|
@@ -48930,7 +48942,7 @@ window.__ModuleLoader__.load({
|
|
|
48930
48942
|
}));
|
|
48931
48943
|
}
|
|
48932
48944
|
//#endregion
|
|
48933
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48945
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/preview/OfficePreview.js
|
|
48934
48946
|
function OfficePreview(props) {
|
|
48935
48947
|
ensureComponentStyles("explorer", EXPLORER_CSS);
|
|
48936
48948
|
const tt = props.translate ?? t$2;
|
|
@@ -48981,7 +48993,7 @@ window.__ModuleLoader__.load({
|
|
|
48981
48993
|
});
|
|
48982
48994
|
}
|
|
48983
48995
|
//#endregion
|
|
48984
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
48996
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/preview/index.js
|
|
48985
48997
|
function FilePreview(props) {
|
|
48986
48998
|
ensureControls();
|
|
48987
48999
|
const tt = props.translate ?? t$2;
|
|
@@ -49021,7 +49033,7 @@ window.__ModuleLoader__.load({
|
|
|
49021
49033
|
return null;
|
|
49022
49034
|
}
|
|
49023
49035
|
//#endregion
|
|
49024
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49036
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/crumbs-menu.js
|
|
49025
49037
|
/**
|
|
49026
49038
|
* ▾ 选层下拉的**条目构造**(picker 与 dock 共用同一段代码,差别只在入参 —— 源实现用户 2026-09-29
|
|
49027
49039
|
* 点名提炼,严禁两处各写一份)。
|
|
@@ -49123,7 +49135,7 @@ window.__ModuleLoader__.load({
|
|
|
49123
49135
|
return out;
|
|
49124
49136
|
}
|
|
49125
49137
|
//#endregion
|
|
49126
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49138
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/crumb-nav.js
|
|
49127
49139
|
/**
|
|
49128
49140
|
* 文件浏览器的第一排:▾ 选层 + 面包屑 + 右侧动作(选择 / ✕)。
|
|
49129
49141
|
*
|
|
@@ -49207,7 +49219,7 @@ window.__ModuleLoader__.load({
|
|
|
49207
49219
|
}), actions(pickNow, tt, onClose));
|
|
49208
49220
|
}
|
|
49209
49221
|
//#endregion
|
|
49210
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49222
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/landing.js
|
|
49211
49223
|
/**
|
|
49212
49224
|
* 落地页主体(picker 刚打开、还没进任何目录时的那张表):上面一排根层(「根目录」或盘符),
|
|
49213
49225
|
* 下面全部工作区。行 = 进去,行尾钮 = 直接选这个目录。
|
|
@@ -49239,7 +49251,7 @@ window.__ModuleLoader__.load({
|
|
|
49239
49251
|
return (0, react$1.createElement)("div", { className: "dshpc-fb__tree" }, roots.map((root) => row(`root:${root.path}`, root.label, root.path)), anchors.filter((item) => item.path !== void 0 && item.path !== "").map((item) => row(`ws:${item.title}`, item.title, item.path)));
|
|
49240
49252
|
}
|
|
49241
49253
|
//#endregion
|
|
49242
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49254
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/tooltip.js
|
|
49243
49255
|
let renderer;
|
|
49244
49256
|
/** 注入官方 Tooltip(插件启动时调一次;传 undefined 撤销,回到自绘降级)。 */
|
|
49245
49257
|
function setTooltipRenderer(fn) {
|
|
@@ -49250,7 +49262,7 @@ window.__ModuleLoader__.load({
|
|
|
49250
49262
|
return renderer;
|
|
49251
49263
|
}
|
|
49252
49264
|
//#endregion
|
|
49253
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49265
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/Segmented.js
|
|
49254
49266
|
/**
|
|
49255
49267
|
* 角标 / 计数要不要显示,返回要显示的文本。
|
|
49256
49268
|
* 数字 ≤0 是「没东西可数」的老口径;字符串(`'1K'` / `'99+'`)由调用方决定,原样显示,空串不显示。
|
|
@@ -49372,7 +49384,7 @@ window.__ModuleLoader__.load({
|
|
|
49372
49384
|
})]);
|
|
49373
49385
|
}
|
|
49374
49386
|
//#endregion
|
|
49375
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49387
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/preview-title-bar.js
|
|
49376
49388
|
/**
|
|
49377
49389
|
* 预览态的第二排:文件名 + 渲染⇄源码切换 / 复制路径 / 刷新。
|
|
49378
49390
|
*
|
|
@@ -49417,7 +49429,7 @@ window.__ModuleLoader__.load({
|
|
|
49417
49429
|
})));
|
|
49418
49430
|
}
|
|
49419
49431
|
//#endregion
|
|
49420
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49432
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/FileBrowser.js
|
|
49421
49433
|
/**
|
|
49422
49434
|
* 「根」在 POSIX 上的落点 `/`。Windows 没有这一个根 —— 根层是盘符清单,由宿主 `op:'roots'` 给出
|
|
49423
49435
|
* (见下面 `roots` 状态),本常量只在 POSIX / 探不到盘符时用。
|
|
@@ -49933,7 +49945,7 @@ window.__ModuleLoader__.load({
|
|
|
49933
49945
|
}, nav, titleBar, body);
|
|
49934
49946
|
}
|
|
49935
49947
|
//#endregion
|
|
49936
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49948
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/layout/resizer.js
|
|
49937
49949
|
/** 开始一次拖拽调宽(监听 window 的 pointermove / pointerup,松手自动清理)。 */
|
|
49938
49950
|
function startResizeLayoutWidth(opts) {
|
|
49939
49951
|
opts.startEvent.preventDefault?.();
|
|
@@ -49972,7 +49984,7 @@ window.__ModuleLoader__.load({
|
|
|
49972
49984
|
window.addEventListener("pointerup", onUp);
|
|
49973
49985
|
}
|
|
49974
49986
|
//#endregion
|
|
49975
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
49987
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/layout/panel-dock-logic.js
|
|
49976
49988
|
/**
|
|
49977
49989
|
* 停靠面板的状态逻辑(纯函数,零 React / 零 DOM)。
|
|
49978
49990
|
*
|
|
@@ -50103,13 +50115,13 @@ window.__ModuleLoader__.load({
|
|
|
50103
50115
|
}, 0);
|
|
50104
50116
|
}
|
|
50105
50117
|
//#endregion
|
|
50106
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
50118
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/layout/panel-dock-css.generated.js
|
|
50107
50119
|
const PANEL_DOCK_CSS = "/* 停靠栏 = **布局成员**,不是浮层:它占宽度、把主区真正挤窄(兄弟项目 2026-09-28:\n 「分栏压过来,不是盖上去」)。所以调用方必须把它放进自己的 flex 根里。\n 皮肤(头部 / 拖拽条 / 关闭钮 / 背景阴影)在 side-panel.css,与 SideSheet 共用。 */\n.dshpc-dock{display:flex;flex:0 0 auto;align-self:stretch;min-width:0}\n/* dock 不再替主区让缝(原 --dshpc-dock-gap 的 1px margin 已删,用户 2026-11-02):\n 滚动条与容器边缘的 1px 统一由滚动容器自己的透明边框提供(见 style.md §滚动条让位),\n 主区容器带了让位,滚动条与这条分隔线之间自然还是 1px。别再往这里加 margin。 */\n\n/* 自动加的宿主行(openFilePreview 加 / 关闭即摘):消费方那行不必自己写 flex。\n 只让「第一个非预览子项」当主区伸展,其余直接子项不动(页脚条、工具条不误伤);\n display 不在这里写死 —— 本来就是 grid 等布局的元素保持原样,由 TS 侧按计算值补 flex。 */\n.dshpc-dock-host{min-width:0;min-height:0}\n.dshpc-dock-host>:not([data-dshpc-file-preview]){min-width:0}\n.dshpc-dock-host>:first-child:not([data-dshpc-file-preview]){flex:1 1 auto}\n\n/* 单栏**占位**:sticky + 视口高让它在页面滚动时保持可见,同时仍然占宽度。\n ⚠️ **本条刻意不设 z-index**:布局成员一旦带正 z-index,就会无条件压过宿主 portal 到 body 的\n 弹窗(兄弟项目 2026-10-05 真机事故「侧边栏盖住宿主设置弹窗」)。层序交给 DOM 顺序裁决。\n 外观来自 .dshpc-side-surface(side-panel.css),这里只管怎么占位与朝哪边描边。 */\n.dshpc-dock__panel{\n position:sticky;top:0;align-self:stretch;\n /* 高度默认视口高(整页场景);嵌在定高容器里时由调用方给 --dshpc-dock-h(如 420px / 100%)。 */\n height:var(--dshpc-dock-h,100vh);max-height:var(--dshpc-dock-h,100vh);\n border-left:1px solid var(--dshpc-border);\n}\n/* 收起的出场:宽度收到 0、透明淡出;落定后组件才真正摘掉这一栏(JS 延时 220ms 配合)。 */\n.dshpc-dock__panel--closing{\n width:0!important;min-width:0!important;opacity:0;border-left-width:0;\n transition:width .2s var(--dshpc-ease),opacity .2s var(--dshpc-ease),border-left-width .2s var(--dshpc-ease);\n}\n\n/* 拖动期:① <iframe>(PDF / HTML 预览)是独立文档,会吞掉父文档的 pointermove,\n 向右拖进 iframe 就卡死 —— 整片让出指针事件;② contain 把重排隔离在栏内,\n 否则每帧改宽度都会牵动整页重排(兄弟项目 2026-10-04 真机「挪很久才动一下」)。 */\n.dshpc-dock.dshpc-dock--resizing iframe{pointer-events:none}\n.dshpc-dock.dshpc-dock--resizing .dshpc-dock__panel{contain:layout paint;will-change:width}\n\n/* 收起钮:**待在面板自己的框里**(用户 2026-10-28 三轮:占面板内部空间,不伸到外面去)。\n left:0 从内侧贴着分隔线 —— 贴线的一边不描边(线是面板自己的 border-left),页签与线不重合。\n 20×44(用户 2026-10-28 四轮定尺寸);实色底(--dshpc-plate,明暗各有实值),hover 亮一档。\n padding-right:2px 是**视觉居中**:右侧是圆角,箭头往直线那边挪 1px(用户 2026-10-28 四轮)。 */\n.dshpc-dock__collapse{\n position:absolute;left:0;top:50%;transform:translateY(-50%);\n z-index:8;display:inline-flex;align-items:center;justify-content:center;\n width:20px;height:44px;padding:0 2px 0 0;\n border-top:1px solid var(--dshpc-border);\n border-bottom:1px solid var(--dshpc-border);\n border-right:1px solid var(--dshpc-border);\n border-left:none;\n border-radius:0 var(--dshpc-radius-sm) var(--dshpc-radius-sm) 0;\n background:var(--dshpc-plate);color:var(--dshpc-fg-3);\n font-family:inherit;font-size:16px;line-height:1;cursor:pointer;\n transition:background-color var(--dshpc-dur-fast) var(--dshpc-ease),color var(--dshpc-dur-fast) var(--dshpc-ease);\n}\n.dshpc-dock__collapse:hover{background:var(--dshpc-plate-hover);color:var(--dshpc-fg)}\n.dshpc-dock__collapse:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:1px}\n\n/* 收起后的浮动耳朵:**fixed 贴右缘、垂直居中、独立于分栏**(用户 2026-10-28 定稿:\n 小页签挂中间、里面放面板图标、不显示文字,箭头与收起钮反向)。多个按收起顺序纵向堆叠。\n z 走 ear 档(高于弹窗遮罩,2026-11-04):面板在弹窗下面时,耳朵仍是唯一能点到的入口。\n DOM 上 portal 到 body(PanelDock.ts),否则会被弹窗的 stacking context 关在里面。 */\n.dshpc-dock__ears{\n position:fixed;top:50%;right:0;transform:translateY(-50%);\n z-index:var(--dshpc-z-ear,1080);\n display:flex;flex-direction:column;gap:8px;align-items:flex-end;\n pointer-events:none;\n}\n.dshpc-dock__ear{\n pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;\n /* 与收起钮**同尺寸**(20×44,用户 2026-10-28 四轮):上/下/左描边,贴右缘的一侧不描。\n 实色底(--dshpc-plate),不用透明色 —— 透明底下透出东西很难看。\n padding-left:2px 是**视觉居中**:左侧是圆角,箭头往直线(右缘)那边挪 1px。 */\n width:20px;height:44px;box-sizing:border-box;padding:0 0 0 2px;\n border-top:1px solid var(--dshpc-border);\n border-bottom:1px solid var(--dshpc-border);\n border-left:1px solid var(--dshpc-border);\n border-right:none;\n border-radius:var(--dshpc-radius-sm) 0 0 var(--dshpc-radius-sm);\n background:var(--dshpc-plate);color:var(--dshpc-fg-2);\n cursor:pointer;font-family:inherit;line-height:1;\n animation:dshpc-ear-in .2s var(--dshpc-ease);\n transition:background-color var(--dshpc-dur-fast) var(--dshpc-ease),color var(--dshpc-dur-fast) var(--dshpc-ease);\n}\n/* 入场:从右缘外滑进来,别「突然出现」(用户 2026-10-28)。 */\n@keyframes dshpc-ear-in{from{opacity:0;transform:translateX(14px)}}\n.dshpc-dock__ear:hover{background:var(--dshpc-plate-hover);color:var(--dshpc-fg)}\n.dshpc-dock__ear:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:1px}\n/* 与收起钮的箭头同一字号(16px):收进去前后箭头一模一样大(用户 2026-10-28)。 */\n.dshpc-dock__ear-arrow{font-size:16px;color:var(--dshpc-fg-3)}\n.dshpc-dock__ear:hover .dshpc-dock__ear-arrow{color:var(--dshpc-fg)}\n/* 动效礼貌:系统声明减少动效时全部关掉,收起退化为瞬时、功能不受影响。 */\n@media (prefers-reduced-motion:reduce){\n .dshpc-dock__panel{animation:none}\n .dshpc-dock__panel--closing{transition:none}\n .dshpc-dock__ear{animation:none}\n}\n";
|
|
50108
50120
|
//#endregion
|
|
50109
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
50121
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/side-panel-css.generated.js
|
|
50110
50122
|
const SIDE_PANEL_CSS = "/* 侧边面板的公共皮肤 —— PanelDock(占宽分栏)与 SideSheet(覆盖抽屉)共用这一份。\n *\n * 分界:**皮肤在这里,定位各自写**。两者唯一的形态差异就是「怎么占位」——\n * PanelDock 用 sticky 占宽挤窄主区(panel-dock.css),SideSheet 用 absolute 盖在页面上(side-sheet.css)。\n *\n * 类名沿用 dshpc-dock__* 前缀:那是既有公开面(文档与消费方都在用),\n * 这里只搬文件不改名;新增的中性类是 .dshpc-side-surface(外观基类)。 */\n\n/* 入场:宽度从 0 长出来(keyframes 只写 from,终点取内联 / 状态宽度)。两边共用。 */\n@keyframes dshpc-side-in{from{width:0;opacity:0;overflow:hidden}}\n\n/* 外观基类:背景 / 文字色 / 阴影 / 纵向 flex。**不含** position、高度、边框方向、动画触发。 */\n.dshpc-side-surface{\n box-sizing:border-box;\n display:flex;flex-direction:column;flex:0 0 auto;min-width:0;\n background:var(--dshpc-surface-base);color:var(--dshpc-fg);\n box-shadow:var(--dshpc-shadow-2);\n transition:border-color var(--dshpc-dur-fast) var(--dshpc-ease);\n animation:dshpc-side-in .22s var(--dshpc-ease);\n}\n\n/* 头部:右侧 34px = 8(边距) + 20(关钮) + 6(呼吸):给绝对定位的关钮留位,标题/extra 不从它底下钻。 */\n.dshpc-dock__head{\n flex:none;display:flex;align-items:center;gap:8px;\n padding:10px 34px 10px 14px;\n border-bottom:1px solid var(--dshpc-border-faint);\n}\n/* 图标位 / 标题右侧的内容位:消费方传 ReactNode,可塞多个;库只负责排布,不抢宽度。 */\n.dshpc-dock__lead{display:inline-flex;align-items:center;gap:6px;flex:none;color:var(--dshpc-fg-2)}\n.dshpc-dock__extra{display:inline-flex;align-items:center;gap:6px;flex:none;margin-left:auto}\n/* 自定义头部:整行归调用方 —— 不加内边距/边框/背景,也不给关钮留内联空间(关钮是绝对定位的)。 */\n.dshpc-dock__head--custom{display:block;padding:0;border-bottom:none}\n.dshpc-dock__title{\n flex:1 1 auto;min-width:0;\n overflow:hidden;text-overflow:ellipsis;white-space:nowrap;\n font-size:var(--dshpc-font-md);font-weight:600;\n}\n/* 关闭钮:20×20 方角图标位(与 Modal 的关闭钮同规格,不借 Picker 触发器皮肤)。 */\n.dshpc-dock__close{\n display:inline-flex;align-items:center;justify-content:center;flex:none;\n width:20px;height:20px;padding:0;border:none;border-radius:var(--dshpc-radius-sm);\n background:transparent;color:var(--dshpc-fg-3);\n font-family:inherit;font-size:13px;line-height:1;cursor:pointer;\n transition:background-color var(--dshpc-dur-fast) var(--dshpc-ease),color var(--dshpc-dur-fast) var(--dshpc-ease);\n}\n.dshpc-dock__close:hover{background:var(--dshpc-hover);color:var(--dshpc-fg)}\n.dshpc-dock__close:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:1px}\n/* 头部关钮:绝对定位(top 10 / right 8),锚点是面板本身 —— 正文滚动它不跟滚。 */\n.dshpc-dock__close--abs{position:absolute;top:10px;right:8px;z-index:8}\n/* 浮动关钮:无头部面板用,略收一点边距。 */\n.dshpc-dock__close--floating{\n position:absolute;top:6px;right:6px;z-index:8;\n background:var(--dshpc-surface-menu);border:1px solid var(--dshpc-border-faint);\n}\n\n/* 内容区自己滚(面板高度锁死,内容不设内部滚动就会把页面撑高)。\n 透明右边框 = 滚动条与面板右缘隔 1px(口径见 style.md §滚动条让位)。 */\n.dshpc-dock__body{flex:1 1 auto;min-height:0;overflow:auto;border-right:1px solid transparent}\n\n/* 拖拽条:6px 命中区,**自己不画任何线**(贴在朝内那一侧,镜像由各自的定位文件做)。\n hover / 拖动时把面板自己的边框染成蓝 —— 蓝线只准改原线,不准在旁边再加一条。\n z-index 7 必须高于面板内容里的浮层(复制钮一类),否则命中区会被内容盖住。 */\n.dshpc-dock__resizer{\n position:absolute;left:0;top:0;bottom:0;width:6px;\n z-index:7;cursor:col-resize;background:transparent;\n}\n.dshpc-side-surface:has(> .dshpc-dock__resizer:hover),\n.dshpc-side-surface--resizing{\n /* 原线保留「上下渐隐」工作区指示条质感:把面板自己的那条边框换成同款渐变。\n 面板四边里只有朝内一侧有宽度,所以渐变只落在那一侧。 */\n border-image:linear-gradient(180deg,transparent,var(--dshpc-business) 30% 70%,transparent) 1;\n}\n/* 拖动期:① <iframe>(PDF / HTML 预览)是独立文档,会吞掉父文档的 pointermove ——\n 让出指针事件;② contain 把重排隔离在面板内,否则每帧改宽都会牵动整页重排。 */\n.dshpc-side-surface--resizing{contain:layout paint;will-change:width}\n.dshpc-side-surface--resizing iframe{pointer-events:none}\n\n/* 动效礼貌:系统声明减少动效时退化为瞬时(功能不受影响)。 */\n@media (prefers-reduced-motion:reduce){\n .dshpc-side-surface{animation:none}\n}\n";
|
|
50111
50123
|
//#endregion
|
|
50112
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
50124
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/layout/PanelDock.js
|
|
50113
50125
|
/**
|
|
50114
50126
|
* 停靠面板(PanelDock)—— 可停靠的右侧分栏容器。
|
|
50115
50127
|
*
|
|
@@ -50425,7 +50437,7 @@ window.__ModuleLoader__.load({
|
|
|
50425
50437
|
}, "›"), renderHeader(pane), headerCloseOf(pane), floatingCloseOf(pane), (0, react$1.createElement)("div", { className: "dshpc-dock__body" }, pane.children ?? null))), ears === null || typeof document === "undefined" ? null : (0, react_dom.createPortal)(ears, document.body));
|
|
50426
50438
|
}
|
|
50427
50439
|
//#endregion
|
|
50428
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
50440
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/fs-face.js
|
|
50429
50441
|
/**
|
|
50430
50442
|
* client 侧的**只读文件面**:fetch 宿主 `serveFsRoute` 挂的那条路由(`src/host/fs-route.ts`)。
|
|
50431
50443
|
*
|
|
@@ -50583,7 +50595,7 @@ window.__ModuleLoader__.load({
|
|
|
50583
50595
|
};
|
|
50584
50596
|
}
|
|
50585
50597
|
//#endregion
|
|
50586
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
50598
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/explorer/open.js
|
|
50587
50599
|
/**
|
|
50588
50600
|
* 入参路径解析成**绝对路径**(`''` = 虚拟根)。用户 2026-11-03 定:绝对/相对都收。
|
|
50589
50601
|
*
|
|
@@ -50871,7 +50883,7 @@ window.__ModuleLoader__.load({
|
|
|
50871
50883
|
});
|
|
50872
50884
|
}
|
|
50873
50885
|
//#endregion
|
|
50874
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
50886
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/picker-logic.js
|
|
50875
50887
|
/** 两种输入归一成 groups:给了 `options` 就当成一个无标题的组。 */
|
|
50876
50888
|
function toGroups(groups, options) {
|
|
50877
50889
|
if (groups !== void 0 && groups.length > 0) return groups;
|
|
@@ -53105,7 +53117,7 @@ window.__ModuleLoader__.load({
|
|
|
53105
53117
|
]);
|
|
53106
53118
|
}
|
|
53107
53119
|
//#endregion
|
|
53108
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53120
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/infra/chevron.js
|
|
53109
53121
|
/**
|
|
53110
53122
|
* 全站唯一的箭头:**自绘 chevron**(就是下拉框右侧那颗)。
|
|
53111
53123
|
*
|
|
@@ -53143,7 +53155,7 @@ window.__ModuleLoader__.load({
|
|
|
53143
53155
|
}));
|
|
53144
53156
|
}
|
|
53145
53157
|
//#endregion
|
|
53146
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53158
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/FieldHint.js
|
|
53147
53159
|
/**
|
|
53148
53160
|
* 问号提示 —— **全站唯一实现、独立组件**(L2,P4)
|
|
53149
53161
|
*
|
|
@@ -53177,10 +53189,10 @@ window.__ModuleLoader__.load({
|
|
|
53177
53189
|
});
|
|
53178
53190
|
}
|
|
53179
53191
|
//#endregion
|
|
53180
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53192
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/picker-css.generated.js
|
|
53181
53193
|
const PICKER_CSS = "\n.dshpc-picker{position:relative;display:inline-block;max-width:100%;font-size:13px;line-height:20px}\n.dshpc-picker__trigger{\n display:inline-flex;align-items:center;justify-content:space-between;gap:6px;\n min-width:120px;max-width:100%;height:28px;padding:0 8px;\n color:var(--dshpc-fg);background:var(--dshpc-surface-1);\n border:1px solid var(--dshpc-border);border-radius:var(--dshpc-radius-md);cursor:pointer;\n}\n.dshpc-picker__trigger:disabled{color:var(--dshpc-fg-dim);cursor:not-allowed;opacity:.7}\n/* 聚焦(键盘或点击选中)时与全站一致的蓝色描边;菜单打开后焦点会进去,触发器自然失去焦点。 */\n.dshpc-picker__trigger:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:1px}\n/* 文字默认靠左(吃掉剩余宽度),不给 space-between 把短文案推到中间的机会;\n 确实要居中就显式传 align=\"center\"。 */\n.dshpc-picker__label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}\n.dshpc-picker__trigger--center .dshpc-picker__label{text-align:center}\n.dshpc-picker__caret{flex:none;color:var(--dshpc-fg-3)}\n.dshpc-picker__icon{display:inline-flex;flex:none;color:var(--dshpc-fg-2)}\n.dshpc-picker__option-icon{display:inline-flex;flex:none;color:var(--dshpc-fg-2)}\n/* 下拉面板只留定位 / 滚动 / 字号:底色·描边·圆角·阴影来自 panel.css 的 menu 档。 */\n.dshpc-picker__menu{\n z-index:var(--dshpc-z-popmenu);max-height:280px;overflow:auto;padding:4px;\n /* 菜单经 FloatingPortal 挂到 body,脱离 .dshpc-picker,须显式字号,否则继承 body 的大字号 */\n font-size:13px;line-height:20px;\n}\n/* 尺寸档(与 Field 的 sm/md/lg 对应)。 */\n.dshpc-picker__trigger--sm{height:24px;font-size:12px}\n.dshpc-picker__trigger--lg{height:32px}\n/* 键盘游标所在项(无 hover 也要看得见)。 */\n.dshpc-picker__option[data-active='true']{background:var(--dshpc-surface-sunken);outline:1px solid var(--dshpc-border)}\n.dshpc-picker__option--clear{color:var(--dshpc-fg-3)}\n.dshpc-picker__search{\n width:100%;height:28px;margin-bottom:4px;padding:0 8px;box-sizing:border-box;\n color:var(--dshpc-fg);background:var(--dshpc-surface-sunken);\n border:1px solid var(--dshpc-border-faint);border-radius:var(--dshpc-radius-md);outline:none;\n}\n.dshpc-picker__group-label{\n padding:6px 8px 2px;color:var(--dshpc-fg-3);font-size:11px;\n}\n.dshpc-picker__option{\n display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:var(--dshpc-radius-sm);cursor:pointer;\n color:var(--dshpc-fg);white-space:nowrap;\n}\n.dshpc-picker__option:hover{background:var(--dshpc-surface-sunken)}\n.dshpc-picker__option--active{background:var(--dshpc-open-bg);color:var(--dshpc-business)}\n.dshpc-picker__option--disabled{color:var(--dshpc-fg-dim);cursor:not-allowed}\n/* 选项文字吃掉剩余宽度:超长省略号(配合 MarqueeText hover 跑马灯),不撑宽菜单。 */\n.dshpc-picker__option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.dshpc-picker__tick{width:12px;color:var(--dshpc-business)}\n.dshpc-picker__empty{padding:8px;color:var(--dshpc-fg-3);text-align:center}\n.dshpc-picker__degraded{\n padding:6px 8px;margin-bottom:4px;border-radius:var(--dshpc-radius-sm);\n color:var(--dshpc-warning-label);background:color-mix(in srgb,var(--dshpc-warning) 12%,transparent);\n font-size:11px;\n}\n.dshpc-picker__row{display:flex;align-items:center;gap:8px}\n";
|
|
53182
53194
|
//#endregion
|
|
53183
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53195
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/Picker.js
|
|
53184
53196
|
/**
|
|
53185
53197
|
* 通用选择器:单选 / 多选 / 上限 / 搜索 / 分组 / 空态 / 降级。
|
|
53186
53198
|
*
|
|
@@ -53355,19 +53367,19 @@ window.__ModuleLoader__.load({
|
|
|
53355
53367
|
return Array.isArray(v) ? [...v] : [v];
|
|
53356
53368
|
}
|
|
53357
53369
|
//#endregion
|
|
53358
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53370
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/utils/date.js
|
|
53359
53371
|
/** 两位补零:`9` → `09`(数字 / 纯数字字符串都收)。 */
|
|
53360
53372
|
function pad2$1(value) {
|
|
53361
53373
|
return String(value).padStart(2, "0");
|
|
53362
53374
|
}
|
|
53363
53375
|
//#endregion
|
|
53364
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53376
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/card-css.generated.js
|
|
53365
53377
|
const CARD_CSS = "\n/* ── Card / StripCard:Surface 外框 + 头部契约 + 色条 ─────────────────────\n 外框(底 / 边框 / 圆角 / 内距)全部来自 .dshpc-surface(src/ui/surface.css):\n 本文件**不再写 border / border-radius**,圆角契约因此只有一个定义点(容器档 = 12)。\n 这里只管两件 Surface 不该知道的事:色条几何、头部布局。\n\n 色条几何默认值都可被 props 覆盖(Card.ts 写对应的 CSS 变量):\n --card-bar-size 条子粗细\n --card-bar-inset 条子距卡片边缘的距离(= 贴边那一侧的内距)\n --card-bar-gap 条子距内容的距离(= body 的 gap)\n --card-bar-length 上下方位时的条长(100% = 跟内容同宽)\n 这些变量只在本文件消费(3 份文件一起引时,跨文件引用别处的变量会静默失效),\n 所以默认值必须写在这里,而不是令牌或别的皮肤里。 */\n.dshpc-card{\n --card-accent:var(--dshpc-business);\n --card-accent-soft:var(--dshpc-business-soft);\n --card-bar-size:6px;\n --card-bar-inset:12px;\n --card-bar-gap:12px;\n --card-bar-length:100%;\n}\n/* 档位 → token(照 records-timeline 的 tone 模式:一个变量切档,不写 5 套规则;浅底与色条同源)。 */\n.dshpc-card--success{--card-accent:var(--dshpc-success);--card-accent-soft:var(--dshpc-success-soft)}\n.dshpc-card--warning{--card-accent:var(--dshpc-warning);--card-accent-soft:var(--dshpc-warning-soft)}\n.dshpc-card--danger{--card-accent:var(--dshpc-danger);--card-accent-soft:var(--dshpc-danger-soft)}\n/* neutral 浅底借 chip 底(兄弟项目 mute 档同款:明暗都成立)。 */\n.dshpc-card--neutral{--card-accent:var(--dshpc-fg-4);--card-accent-soft:var(--dshpc-chip-bg)}\n/* 扩展八色(2026-10-29):色条 + 浅底同源,软底走各自 -soft。 */\n.dshpc-card--purple{--card-accent:var(--dshpc-purple);--card-accent-soft:var(--dshpc-purple-soft)}\n.dshpc-card--pink{--card-accent:var(--dshpc-pink);--card-accent-soft:var(--dshpc-pink-soft)}\n.dshpc-card--cyan{--card-accent:var(--dshpc-cyan);--card-accent-soft:var(--dshpc-cyan-soft)}\n.dshpc-card--teal{--card-accent:var(--dshpc-teal);--card-accent-soft:var(--dshpc-teal-soft)}\n.dshpc-card--orange{--card-accent:var(--dshpc-orange);--card-accent-soft:var(--dshpc-orange-soft)}\n.dshpc-card--indigo{--card-accent:var(--dshpc-indigo);--card-accent-soft:var(--dshpc-indigo-soft)}\n.dshpc-card--rose{--card-accent:var(--dshpc-rose);--card-accent-soft:var(--dshpc-rose-soft)}\n.dshpc-card--slate{--card-accent:var(--dshpc-slate);--card-accent-soft:var(--dshpc-slate-soft)}\n\n/* body = 色条 + 头部。方向跟着条子贴的边切 ⇒ 四个方位只是「换一个方向的 flex 项」,\n 不用为每个方位各写一套定位。 */\n.dshpc-card__body{display:flex;gap:var(--card-bar-gap);min-width:0}\n.dshpc-card--bar-top .dshpc-card__body,\n.dshpc-card--bar-bottom .dshpc-card__body{flex-direction:column}\n\n/* 头部一行 = 主内容 + 右侧槽,**整体垂直居中**:调用方在 action 里裸放一个元素\n (按钮 / 文字 / 图标)不用自己套容器居中;一行两行、右边怎么放由调用方在框内自定。 */\n.dshpc-card__head{display:flex;align-items:center;gap:8px;min-width:0}\n.dshpc-card--bar-left .dshpc-card__head,\n.dshpc-card--bar-right .dshpc-card__head{flex:1 1 auto}\n.dshpc-card__main{flex:1;min-width:0}\n.dshpc-card__side{display:flex;align-items:center;gap:6px;flex:none}\n\n/* 色条:左/右 = 竖向条(高度跟内容,最小一行);上/下 = 横向条(长度默认跟内容同宽)。\n 右/下方位靠 order 排到头部之后,DOM 顺序始终不变。 */\n.dshpc-card__bar{flex:none;background:var(--card-accent);border-radius:var(--dshpc-radius-xs)}\n.dshpc-card--bar-left .dshpc-card__bar,\n.dshpc-card--bar-right .dshpc-card__bar{width:var(--card-bar-size);align-self:stretch;min-height:var(--dshpc-line-md)}\n.dshpc-card--bar-top .dshpc-card__bar,\n.dshpc-card--bar-bottom .dshpc-card__bar{width:var(--card-bar-length);height:var(--card-bar-size);align-self:flex-start}\n.dshpc-card--bar-right .dshpc-card__bar,\n.dshpc-card--bar-bottom .dshpc-card__bar{order:1}\n\n/* ── 外观一 · StripCard:同色系浅底 + 1px 不可见占位边框 + 方角 + 4px 通高方角色条贴左缘 ──\n 底色 / 方角 / 占位边框由 Surface 的三条修饰类提供(Card.ts 按 kind 传),此处只管内距与条子。 */\n.dshpc-card.dshpc-card--strip{\n --card-bar-size:4px;--card-bar-inset:0;\n padding:12px 12px 12px 20px;\n background:var(--card-accent-soft,transparent);\n}\n/* 左内边距 20px = 16 留白 + 4 条宽 ⇒ 内容从色条右缘起算;色条绝对定位通高,跟着内容高度自适应。\n 特异性 0,3,0:压过上面 .dshpc-card--bar-left .dshpc-card__bar 的宽度规则,与注入顺序无关。 */\n.dshpc-card.dshpc-card--strip .dshpc-card__bar{position:absolute;left:0;top:0;bottom:0;width:4px;align-self:auto}\n\n/* ── 外观二 · Card:Surface 外框(底 + 1px 实色边框 + 圆角 12)+ 色条贴边那一侧的内距 ──\n 内距用 0,2,0 / 0,3,0 的长写法:高过 .dshpc-surface 的 padding 简写,与两份 CSS 的注入顺序无关。 */\n.dshpc-card.dshpc-card--bordered{padding:14px}\n.dshpc-card.dshpc-card--bordered.dshpc-card--bar-left{padding-left:var(--card-bar-inset)}\n.dshpc-card.dshpc-card--bordered.dshpc-card--bar-right{padding-right:var(--card-bar-inset)}\n.dshpc-card.dshpc-card--bordered.dshpc-card--bar-top{padding-top:var(--card-bar-inset)}\n.dshpc-card.dshpc-card--bordered.dshpc-card--bar-bottom{padding-bottom:var(--card-bar-inset)}\n\n.dshpc-card__toggle{\n display:inline-flex;align-items:center;justify-content:center;\n width:24px;height:24px;padding:0;background:none;border:none;border-radius:var(--dshpc-radius-sm);\n color:var(--dshpc-fg-3);cursor:pointer;\n}\n.dshpc-card__toggle:hover{background:var(--dshpc-surface-sunken);color:var(--dshpc-fg)}\n/* 箭头是 svg(Chevron),不是字形 ⇒ 不要 font-size;inline-flex 免掉 svg 的基线留白。 */\n.dshpc-card__caret{display:inline-flex;transition:transform .15s ease}\n.dshpc-card__caret.is-open{transform:rotate(180deg)}\n.dshpc-card__panel{margin-top:8px;padding-top:8px;border-top:1px solid var(--dshpc-border-faint)}\n";
|
|
53366
53378
|
//#endregion
|
|
53367
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53379
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/surface-css.generated.js
|
|
53368
53380
|
const SURFACE_CSS = "\n/* ── Surface · 纯框容器 ───────────────────────────────────────────────────\n 只回答「一块面长什么样」:底 / 边 / 圆角 / 内距,四根轴,零业务语义。\n 它是**圆角契约的唯一真源**:容器档 = --dshpc-radius-md(12),与 Button / Input 同档,\n 外框永远不小于里面的控件 —— 杜绝「卡片 8 < 按钮 12」这类倒挂(2026-11-01)。\n\n 所有轴都用**变量**表达,修饰类只改这些变量、不改属性:\n 消费方(Card、下游插件)自己写规则时,无论两份 CSS 谁先注入,胜负都不依赖顺序。\n\n tone plain(默认 surface-1) / raised / sunken / subtle\n border 默认 1px 实线;faint 更淡;none 透明(保留 1px 占位,不跳高);\n dashed 虚线(占位框用,线色仍是 border token)\n radius 默认 md;none / sm / lg\n padding 默认由调用方选档;none / sm(8) / md(12) / lg(16)\n 基类不带内距:容器要自己算四边内距时(如 Card 的色条贴边),不传 pad 档即可,不需要覆盖。 */\n.dshpc-surface{\n position:relative;box-sizing:border-box;color:var(--dshpc-fg);font:inherit;text-align:left;\n --surface-bg:var(--dshpc-surface-1);\n --surface-border:var(--dshpc-border);\n --surface-border-style:solid;\n --surface-radius:var(--dshpc-radius-md);\n --surface-pad:0;\n border:1px var(--surface-border-style) var(--surface-border);\n border-radius:var(--surface-radius);\n background:var(--surface-bg);\n padding:var(--surface-pad);\n}\n.dshpc-surface--tone-raised{--surface-bg:var(--dshpc-surface-raised)}\n.dshpc-surface--tone-sunken{--surface-bg:var(--dshpc-surface-sunken)}\n.dshpc-surface--tone-subtle{--surface-bg:var(--dshpc-chip-bg)}\n.dshpc-surface--border-faint{--surface-border:var(--dshpc-border-faint)}\n.dshpc-surface--border-none{--surface-border:transparent}\n.dshpc-surface--border-dashed{--surface-border-style:dashed}\n.dshpc-surface--radius-none{--surface-radius:0}\n.dshpc-surface--radius-sm{--surface-radius:var(--dshpc-radius-sm)}\n.dshpc-surface--radius-lg{--surface-radius:var(--dshpc-radius-lg)}\n.dshpc-surface--pad-none{--surface-pad:0}\n.dshpc-surface--pad-sm{--surface-pad:var(--dshpc-space-2)}\n.dshpc-surface--pad-md{--surface-pad:var(--dshpc-space-3)}\n.dshpc-surface--pad-lg{--surface-pad:var(--dshpc-space-4)}\n";
|
|
53369
53381
|
//#endregion
|
|
53370
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53382
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/Surface.js
|
|
53371
53383
|
/**
|
|
53372
53384
|
* 拼 Surface 的类名。独立导出是给组合类容器(Card)用的:
|
|
53373
53385
|
* 容器要把 Surface 当外框、又不想吃它的内距时,传 `padding: null` 即可。
|
|
@@ -53402,7 +53414,7 @@ window.__ModuleLoader__.load({
|
|
|
53402
53414
|
}, props.children ?? null);
|
|
53403
53415
|
}
|
|
53404
53416
|
//#endregion
|
|
53405
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53417
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/Card.js
|
|
53406
53418
|
/** 色条档位(映射到 design 的 token,不新增 token;也接受任意 CSS 颜色值)。 */
|
|
53407
53419
|
const CARD_ACCENTS = [
|
|
53408
53420
|
"business",
|
|
@@ -53493,10 +53505,10 @@ window.__ModuleLoader__.load({
|
|
|
53493
53505
|
return CardShell("bordered", props);
|
|
53494
53506
|
}
|
|
53495
53507
|
//#endregion
|
|
53496
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53508
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/chip-css.generated.js
|
|
53497
53509
|
const CHIP_CSS = "\n/* 三条局部变量承载配色:neutral 走旧灰面;语义档换底字配对(2026-10-20 用户要多色多尺寸标签)。 */\n.dshpc-chip{--chip-bg:var(--dshpc-chip-bg);--chip-fg:var(--dshpc-fg);--chip-bg-hover:var(--dshpc-chip-bg-hover);\n display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:1px 8px;\n box-sizing:border-box;border-radius:var(--dshpc-radius-pill,999px);border:none;\n background:var(--chip-bg);color:var(--chip-fg);\n font-family:inherit;font-size:11px;line-height:18px;margin:0;\n /* 2026-10-18:chip 是 flex 行里的常用项,禁止被压缩换行(预览站出现过文字竖排、互相叠压的挤压)。 */\n white-space:nowrap;flex:none;\n appearance:none;-webkit-appearance:none;\n}\n/* md 档:卡片元信息行等稍大场景;sm 即旧版默认,逐像素不动。 */\n.dshpc-chip--md{padding:2px 10px;font-size:12px;line-height:20px;}\n/* xs 档:标题后缀等极紧凑场景(2026-10-20 用户要更小标签);16px 高、font 10。 */\n.dshpc-chip--xs{padding:0 6px;font-size:10px;line-height:16px;}\n/* 语义色实心档:底 / 字 / hover 配对与 Button 同源(黄底中高明度 ⇒ 字用 --dshpc-on-warning)。 */\n.dshpc-chip--business{--chip-bg:var(--dshpc-business);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-business-hover);}\n.dshpc-chip--success{--chip-bg:var(--dshpc-success);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-success-hover);}\n.dshpc-chip--warning{--chip-bg:var(--dshpc-warning);--chip-fg:var(--dshpc-on-warning);--chip-bg-hover:var(--dshpc-warning-hover);}\n.dshpc-chip--danger{--chip-bg:var(--dshpc-danger);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-danger-hover);}\n/* 扩展八色(2026-10-29):实心面字色统一白(on-signal),明度均低于黄 / 青柠,白字两主题可读。 */\n.dshpc-chip--purple{--chip-bg:var(--dshpc-purple);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-purple-hover);}\n.dshpc-chip--pink{--chip-bg:var(--dshpc-pink);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-pink-hover);}\n.dshpc-chip--cyan{--chip-bg:var(--dshpc-cyan);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-cyan-hover);}\n.dshpc-chip--teal{--chip-bg:var(--dshpc-teal);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-teal-hover);}\n.dshpc-chip--orange{--chip-bg:var(--dshpc-orange);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-orange-hover);}\n.dshpc-chip--indigo{--chip-bg:var(--dshpc-indigo);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-indigo-hover);}\n.dshpc-chip--rose{--chip-bg:var(--dshpc-rose);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-rose-hover);}\n.dshpc-chip--slate{--chip-bg:var(--dshpc-slate);--chip-fg:var(--dshpc-on-signal);--chip-bg-hover:var(--dshpc-slate-hover);}\n/* 可点态:button 渲染(见 Chip.ts),光标 + hover 加深。 */\n.dshpc-chip--clickable{cursor:pointer;transition:background-color var(--dshpc-dur-fast) var(--dshpc-ease);}\n.dshpc-chip--clickable:hover:not(:disabled){background:var(--chip-bg-hover)}\n.dshpc-chip:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:1px}\n/* 禁用态字色从 --chip-fg 派生(45% ≈ 旧 fg-3 的弱化观感),不许直接用 --dshpc-fg-3:\n 它跟主题走,暗色下是深灰 ⇒ 语义色实心标签(蓝 / 红底)上几乎看不见(与 Segmented 计数 2026-10-29 同类)。 */\n.dshpc-chip:disabled{cursor:default;color:color-mix(in srgb,var(--chip-fg) 45%,transparent)}\n/* maxWidth 包 MarqueeText 时:标签作为 flex 子项必须能收缩到内容以下,否则省略号 / 跑马灯测不准 */\n.dshpc-chip .dshpc-chip__label{min-width:0;}\n@media (prefers-reduced-motion: reduce){.dshpc-chip{transition:none}}\n";
|
|
53498
53510
|
//#endregion
|
|
53499
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53511
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/Chip.js
|
|
53500
53512
|
/** 小标签(neutral 用现成的 `--dshpc-chip-bg`;传 `onClick` 才是可点的)。 */
|
|
53501
53513
|
function Chip(props) {
|
|
53502
53514
|
ensureComponentStyles("chip", CHIP_CSS);
|
|
@@ -53520,7 +53532,7 @@ window.__ModuleLoader__.load({
|
|
|
53520
53532
|
}) : children ?? null);
|
|
53521
53533
|
}
|
|
53522
53534
|
//#endregion
|
|
53523
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53535
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/navigation/pagination-logic.js
|
|
53524
53536
|
/**
|
|
53525
53537
|
* 分页纯逻辑:总页数、页码夹取、省略号窗口、当前页可见区间。
|
|
53526
53538
|
*
|
|
@@ -53584,7 +53596,7 @@ window.__ModuleLoader__.load({
|
|
|
53584
53596
|
return items;
|
|
53585
53597
|
}
|
|
53586
53598
|
//#endregion
|
|
53587
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53599
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/navigation/Pagination.js
|
|
53588
53600
|
/**
|
|
53589
53601
|
* 分页(`‹ Previous 1 [2] 3 … 36 Next ›`)。
|
|
53590
53602
|
*
|
|
@@ -53686,7 +53698,7 @@ window.__ModuleLoader__.load({
|
|
|
53686
53698
|
}, totalNode === null ? null : (0, react$1.createElement)("span", { className: "dshpc-pagination__total" }, totalNode), (0, react$1.createElement)("div", { className: "dshpc-pagination__pages" }, navButton("prev"), ...middle, navButton("next")), sizeNode);
|
|
53687
53699
|
}
|
|
53688
53700
|
//#endregion
|
|
53689
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53701
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/SectionHead.js
|
|
53690
53702
|
/**
|
|
53691
53703
|
* 模块标题行(UI 基础层):**标签(可选,画出来的短竖线)/ icon(可选)+ 标题 + 右侧控件**。
|
|
53692
53704
|
*
|
|
@@ -53735,7 +53747,7 @@ window.__ModuleLoader__.load({
|
|
|
53735
53747
|
}), props.icon === void 0 ? null : (0, react$1.createElement)("span", { className: "dshpc-section-head__icon" }, props.icon), (0, react$1.createElement)("span", { className: "dshpc-section-head__title" }, props.title), props.right === void 0 ? null : (0, react$1.createElement)("div", { className: "dshpc-section-head__right" }, props.right));
|
|
53736
53748
|
}
|
|
53737
53749
|
//#endregion
|
|
53738
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53750
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/table-logic.js
|
|
53739
53751
|
/**
|
|
53740
53752
|
* 单元格值是不是「对象写法」(跨列 / 跨行 / 对齐)。
|
|
53741
53753
|
*
|
|
@@ -53806,7 +53818,7 @@ window.__ModuleLoader__.load({
|
|
|
53806
53818
|
return rows;
|
|
53807
53819
|
}
|
|
53808
53820
|
//#endregion
|
|
53809
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
53821
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/table-shared.js
|
|
53810
53822
|
function widthOf(width) {
|
|
53811
53823
|
if (width === void 0) return void 0;
|
|
53812
53824
|
return typeof width === "number" ? `${width}px` : width;
|
|
@@ -54025,7 +54037,7 @@ window.__ModuleLoader__.load({
|
|
|
54025
54037
|
}))), groups.length > 0 ? null : (0, react$1.createElement)("thead", { className: "dshpc-table__head" }, ...headRows.map((cells, level) => headRowOf(cells, level))), ...body);
|
|
54026
54038
|
}
|
|
54027
54039
|
//#endregion
|
|
54028
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
54040
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/display/Table.js
|
|
54029
54041
|
/**
|
|
54030
54042
|
* 底部哨兵的滚动监听:哨兵进入视口(提前 200px)就调一次 `onLoadMore`。
|
|
54031
54043
|
* `enabled` 由调用方决定(分页 / 分组模式下关掉);正在加载或已到底时 `blockedRef` 挡住重复触发。
|
|
@@ -55063,7 +55075,7 @@ window.__ModuleLoader__.load({
|
|
|
55063
55075
|
}));
|
|
55064
55076
|
});
|
|
55065
55077
|
//#endregion
|
|
55066
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
55078
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/feedback/toast-host.js
|
|
55067
55079
|
/** 全局注册表键:Symbol.for 跨 bundle 副本天然共享同一个符号。 */
|
|
55068
55080
|
const TOAST_HOST_KEY = Symbol.for("dsh-plugin-core/toast-host");
|
|
55069
55081
|
/** 全局单例:已注册则直接返回(不触发 create),否则建一个并注册。 */
|
|
@@ -55076,7 +55088,7 @@ window.__ModuleLoader__.load({
|
|
|
55076
55088
|
return created;
|
|
55077
55089
|
}
|
|
55078
55090
|
//#endregion
|
|
55079
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
55091
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/feedback/Toast.js
|
|
55080
55092
|
const DEFAULT_MS = 2600;
|
|
55081
55093
|
const ROOT_ID = "dshpc-toast-root";
|
|
55082
55094
|
function currentTheme() {
|
|
@@ -55277,7 +55289,7 @@ window.__ModuleLoader__.load({
|
|
|
55277
55289
|
});
|
|
55278
55290
|
}
|
|
55279
55291
|
//#endregion
|
|
55280
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
55292
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/layout/SplitGroup.js
|
|
55281
55293
|
/**
|
|
55282
55294
|
* 拼接外壳 —— 两个控件在外观上焊成一体(L2 组件皮肤,P1)
|
|
55283
55295
|
*
|
|
@@ -55311,7 +55323,7 @@ window.__ModuleLoader__.load({
|
|
|
55311
55323
|
}, props.children);
|
|
55312
55324
|
}
|
|
55313
55325
|
//#endregion
|
|
55314
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
55326
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/Field.js
|
|
55315
55327
|
/**
|
|
55316
55328
|
* 输入类控件 —— **全站唯一实现**(L2 组件皮肤,P3)
|
|
55317
55329
|
*
|
|
@@ -55381,7 +55393,7 @@ window.__ModuleLoader__.load({
|
|
|
55381
55393
|
}) : null), props.hint);
|
|
55382
55394
|
}
|
|
55383
55395
|
//#endregion
|
|
55384
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
55396
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/InputGroup.js
|
|
55385
55397
|
/**
|
|
55386
55398
|
* 组合输入框 —— 输入框 + 后置按钮组(+ 可选前置标题)焊成一体(L2 组件皮肤,P3)
|
|
55387
55399
|
*
|
|
@@ -55497,7 +55509,7 @@ window.__ModuleLoader__.load({
|
|
|
55497
55509
|
}, nodes), props.hint);
|
|
55498
55510
|
}
|
|
55499
55511
|
//#endregion
|
|
55500
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
55512
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/inputs/Textarea.js
|
|
55501
55513
|
/**
|
|
55502
55514
|
* 多行文本输入(P3 输入类家族唯一实现;皮肤见 controls-css.ts 的 `.dshpc-textarea`)。
|
|
55503
55515
|
*
|
|
@@ -55558,7 +55570,7 @@ window.__ModuleLoader__.load({
|
|
|
55558
55570
|
return true;
|
|
55559
55571
|
}
|
|
55560
55572
|
//#endregion
|
|
55561
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
55573
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/ui/layout/QuickToolbar.js
|
|
55562
55574
|
/**
|
|
55563
55575
|
* 快捷工具栏(UI 基础层):**右侧悬浮的一列圆钮**,内置「回到顶部」,并可挂自定义按钮。
|
|
55564
55576
|
*
|
|
@@ -56807,11 +56819,12 @@ window.__ModuleLoader__.load({
|
|
|
56807
56819
|
return String(n);
|
|
56808
56820
|
}
|
|
56809
56821
|
//#endregion
|
|
56810
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
56811
|
-
/** 官方注入 style 标签的 data-plugin-css 包前缀(chat 主视图 + ui-tool 工具卡 + ui-deliverables)。 */
|
|
56822
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/official-classes.js
|
|
56823
|
+
/** 官方注入 style 标签的 data-plugin-css 包前缀(chat 主视图 + ui-tool / ui-skill 工具卡 + ui-deliverables)。 */
|
|
56812
56824
|
const CSS_PKG_PREFIXES = [
|
|
56813
56825
|
"@deepseek-ai/dsh-client-ui-chat/",
|
|
56814
56826
|
"@deepseek-ai/dsh-client-ui-tool/",
|
|
56827
|
+
"@deepseek-ai/dsh-client-ui-skill/",
|
|
56815
56828
|
"@deepseek-ai/dsh-client-ui-deliverables/",
|
|
56816
56829
|
"@deepseek-ai/dsh-client-ui-sidebar-documentpreview/"
|
|
56817
56830
|
];
|
|
@@ -56855,29 +56868,34 @@ window.__ModuleLoader__.load({
|
|
|
56855
56868
|
}
|
|
56856
56869
|
return out;
|
|
56857
56870
|
}
|
|
56858
|
-
/**
|
|
56871
|
+
/** 已发现的官方模块表与缓存时的官方 style 标签数。 */
|
|
56859
56872
|
let discovered = null;
|
|
56873
|
+
let discoveredTagCount = 0;
|
|
56860
56874
|
/**
|
|
56861
|
-
* 扫描 document
|
|
56875
|
+
* 扫描 document 里官方包注入的 style 标签,按模块缓存解析结果。
|
|
56876
|
+
* 官方 CSS module 分属多个独立包、可能分批注入,只缓存「第一批」会让后注入的模块
|
|
56877
|
+
* 永远取不到类名 ⇒ 标签数一变就重扫。
|
|
56862
56878
|
* 无 document(SSR / 冒烟)时返回空表。
|
|
56863
56879
|
*/
|
|
56864
56880
|
function discoverOfficialClasses() {
|
|
56865
|
-
|
|
56881
|
+
const tags = typeof document !== "undefined" ? document.querySelectorAll("style[data-plugin-css]") : null;
|
|
56882
|
+
const count = tags?.length ?? 0;
|
|
56883
|
+
if (discovered !== null && count === discoveredTagCount) return discovered;
|
|
56866
56884
|
const result = /* @__PURE__ */ new Map();
|
|
56867
|
-
if (
|
|
56868
|
-
const
|
|
56869
|
-
|
|
56870
|
-
|
|
56871
|
-
|
|
56872
|
-
|
|
56873
|
-
|
|
56874
|
-
|
|
56875
|
-
|
|
56876
|
-
|
|
56877
|
-
|
|
56878
|
-
|
|
56879
|
-
|
|
56880
|
-
|
|
56885
|
+
if (tags !== null) for (let i = 0; i < tags.length; i++) {
|
|
56886
|
+
const tag = tags[i];
|
|
56887
|
+
const id = tag.dataset.pluginCss ?? "";
|
|
56888
|
+
const prefix = CSS_PKG_PREFIXES.find((candidate) => id.startsWith(candidate));
|
|
56889
|
+
if (prefix === void 0) continue;
|
|
56890
|
+
const module = id.slice(prefix.length).replace(/\.module\.css$/, "");
|
|
56891
|
+
const parsed = parseOfficialCss(tag.textContent ?? "");
|
|
56892
|
+
if (parsed.size === 0 && (tag.textContent ?? "").includes(".")) console.warn(`[dsh-plugin-core:session] 官方模块 ${module} 类名解析为空(格式可能变了)`);
|
|
56893
|
+
result.set(module, parsed);
|
|
56894
|
+
}
|
|
56895
|
+
if (result.size > 0) {
|
|
56896
|
+
discovered = result;
|
|
56897
|
+
discoveredTagCount = count;
|
|
56898
|
+
}
|
|
56881
56899
|
return result;
|
|
56882
56900
|
}
|
|
56883
56901
|
/** 已发现的官方模块数(0 = 官方样式未注入,调用方应走自绘兜底)。 */
|
|
@@ -56893,7 +56911,7 @@ window.__ModuleLoader__.load({
|
|
|
56893
56911
|
return discoverOfficialClasses().get(module)?.get(semantic) ?? null;
|
|
56894
56912
|
}
|
|
56895
56913
|
//#endregion
|
|
56896
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
56914
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/ChatNodeSeat.js
|
|
56897
56915
|
/**
|
|
56898
56916
|
* 官方 TURN_PROCESS_INDEPENDENT_KINDS(lib/client.js:1525):这些 kind 永远不进过程折叠区。
|
|
56899
56917
|
*/
|
|
@@ -56982,7 +57000,7 @@ window.__ModuleLoader__.load({
|
|
|
56982
57000
|
}, inner);
|
|
56983
57001
|
}
|
|
56984
57002
|
//#endregion
|
|
56985
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
57003
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/process-groups.js
|
|
56986
57004
|
/** 官方 INDEPENDENT(process-groups.js:10565;注意与 ChatNodeSeat 的清单不同)。 */
|
|
56987
57005
|
const INDEPENDENT = /* @__PURE__ */ new Set([
|
|
56988
57006
|
"user",
|
|
@@ -57196,7 +57214,7 @@ window.__ModuleLoader__.load({
|
|
|
57196
57214
|
return summary.counts.length > 3 ? t("stepProcessMore", { title }) : title;
|
|
57197
57215
|
}
|
|
57198
57216
|
//#endregion
|
|
57199
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
57217
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/ChatGroupSeat.js
|
|
57200
57218
|
/** 官方 PROCESS_ICONS(lib/client.js:2187-2201);工具行图标同源(edit/write=铅笔、generic=sparkle)。 */
|
|
57201
57219
|
const PROCESS_ICONS = {
|
|
57202
57220
|
thinking: official_exports.IconThinkOutlineRegular,
|
|
@@ -57322,10 +57340,10 @@ window.__ModuleLoader__.load({
|
|
|
57322
57340
|
})))));
|
|
57323
57341
|
}
|
|
57324
57342
|
//#endregion
|
|
57325
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
57343
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/session-css.generated.js
|
|
57326
57344
|
const SESSION_CSS = "/* 会话预览(SessionViewModal)自绘样式:只装本包自己的组件(暂存输入区 / fork / 探针等)\n + 两个稳定钩子类(dshpc-sv-frame / dshpc-sv-scroll)。\n 已删:ChangedFiles 卡与 FileDiff 的全部自绘规则(2026-10-24)——官方 ChangedFiles /\n FileDiff 模块类由 officialClass() 运行时发现并挂在元素上,本包不再有一行兜底。\n ⚠️ 2026-10-23 起不再有官方类兜底:镜像官方组件的元素一律挂官方 CSS-module 类名\n (officialClass() 运行时发现,取不到 = 空类、裸结构不白屏)——本包只跑 DSH 宿主、官方样式必在场,\n 自绘一一对应是死代码。要改官方观感走 token 覆盖 / 双类名钩子(见 ChatView.ts 头注),别在这加兜底。\n 类名固定 dshpc-sv-*;颜色一律走 --dshpc-* token(明暗自适应)。\n 外壳(遮罩 / 面板 / 头部 / 关闭钮)= 核心 Modal(size lg)。 */\n/* 会话区 = 普通纵向流:不设高度、不自己滚(滚动与内距归核心 Modal body,用户 2026-10-22 口径)。 */\n.dshpc-sv{display:flex;flex-direction:column;min-width:0;gap:10px}\n\n/* 官方样式未命中时的可见探针(挂在头部副标题行,不占正文)。 */\n.dshpc-sv-probe{font-size:var(--dshpc-font-xs);color:var(--dshpc-warning)}\n\n/* 头部归档标识(官方归档图标 + 「已归档」)。 */\n.dshpc-sv-archived{display:inline-flex;align-items:center;gap:4px;font-size:var(--dshpc-font-xs);font-weight:400;color:var(--dshpc-fg-3)}\n\n/* 内距与滚动全部让给核心 Modal body ⇒ 这里把官方 ChatView.frame / scroll 的内距、\n overflow、高度一律归零(双类名 0,2,0 压过 CSS module,不靠注入顺序)。\n ⚠️ 必须同时把 flex 收掉:官方 scroll 是 flex:1(basis=0),在**自动高**的容器里会把\n 会话区压成 0 高 —— 这正是「内容自管高度」的老毛病,别再放回来。 */\n.dshpc-sv-frame.dshpc-sv-frame{padding-top:0;padding-bottom:0;}\n\n/* 官方组件拿 --dsw-alias-bg-base 做 sticky 遮挡底(思考行展开头等),取值是宿主 app\n 全局基底色,与弹窗面板底不同层 ⇒ 会话区内改指向弹窗面板底(背景保留、颜色贴合)。 */\n.dshpc-sv-frame.dshpc-sv-frame{--dsw-alias-bg-base:var(--dshpc-surface-1);}\n\n.dshpc-sv-scroll.dshpc-sv-scroll{padding:0;overflow:visible;height:auto;max-height:none;flex:none;}\n\n/* 会话区保底:高度由内容决定(撑开由 Modal body 滚)。 */\n.dshpc-sv-chat{flex:none;min-height:0;}\n\n\n.dshpc-sv-assistant{align-self:stretch;font-size:var(--dshpc-font-lg);line-height:1.7;word-break:break-word;}\n\n.dshpc-sv-image{align-self:flex-start;font-size:var(--dshpc-font-sm);color:var(--dshpc-fg-3);border:1px dashed var(--dshpc-border);border-radius:var(--dshpc-radius-sm);padding:4px 10px;}\n\n/* 工具卡根(SessionViewModal legacy 兜底渲染直接用;正常 keyed 路径一律挂官方 ToolRow 类)。 */\n.dshpc-sv-tool{flex-direction:column;display:flex;}\n\n.dshpc-sv-notice{align-self:center;font-size:var(--dshpc-font-sm);color:var(--dshpc-fg-3);padding:2px 8px;}\n\n\n.dshpc-sv-forkerr{margin:0;font-size:var(--dshpc-font-lg);line-height:var(--dshpc-line-lg);color:var(--dshpc-danger);word-break:break-word;}\n\n.dshpc-sv-forktext{margin:0;font-size:var(--dshpc-font-sm);line-height:var(--dshpc-line-sm);color:var(--dshpc-fg-2);}\n\n/* ── 暂存输入区(期4:打字 → 确定 → fork 带话跳官方视图)── */\n.dshpc-sv-composer{flex:1;display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;}\n\n.dshpc-sv-composer textarea{flex:1;min-width:0;resize:none;font:inherit;font-size:var(--dshpc-font-lg);line-height:var(--dshpc-line-lg);color:var(--dshpc-fg);background:var(--dshpc-surface-2);border:1px solid var(--dshpc-border);border-radius:var(--dshpc-radius-md);padding:8px 12px;min-height:40px;max-height:120px;}\n\n.dshpc-sv-composer textarea:focus-visible{outline:2px solid var(--dshpc-focus);outline-offset:-1px;}\n\n.dshpc-sv-composer-hint{flex:none;font-size:var(--dshpc-font-xs);color:var(--dshpc-fg-3);padding-bottom:10px;white-space:nowrap;}";
|
|
57327
57345
|
//#endregion
|
|
57328
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
57346
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/ChatView.js
|
|
57329
57347
|
/** 会话区骨架:frame > root > scroll > column(类名一律取官方 ChatView.module.css,取不到 = 空类)。
|
|
57330
57348
|
*
|
|
57331
57349
|
* `dshpc-sv-frame` / `dshpc-sv-scroll` = 本包**稳定钩子类**(不走 officialClass 发现,官方类命中时也照样挂):
|
|
@@ -57350,7 +57368,7 @@ window.__ModuleLoader__.load({
|
|
|
57350
57368
|
}
|
|
57351
57369
|
/** 官方 ChatNodeList:order → seat 列表(grouped 视图 = entries + groups 路径)。 */
|
|
57352
57370
|
function ChatNodeListMirror(props) {
|
|
57353
|
-
const { order, store, entries, groups,
|
|
57371
|
+
const { order, store, entries, groups, openState, onSetOpen, foldCompleted, renderNode, t } = props;
|
|
57354
57372
|
const rows = [];
|
|
57355
57373
|
const read = store === void 0 ? void 0 : store.get;
|
|
57356
57374
|
if (typeof read !== "function" || store === void 0) return rows;
|
|
@@ -57362,34 +57380,13 @@ window.__ModuleLoader__.load({
|
|
|
57362
57380
|
}
|
|
57363
57381
|
};
|
|
57364
57382
|
if (entries !== void 0 && groups !== void 0) {
|
|
57365
|
-
const flatKeys = /* @__PURE__ */ new Set();
|
|
57366
|
-
{
|
|
57367
|
-
let bucket = [];
|
|
57368
|
-
let bucketTurn;
|
|
57369
|
-
const closeBucket = () => {
|
|
57370
|
-
const last = bucket[bucket.length - 1];
|
|
57371
|
-
if (last !== void 0) flatKeys.add(last);
|
|
57372
|
-
bucket = [];
|
|
57373
|
-
};
|
|
57374
|
-
for (const entry of entries) {
|
|
57375
|
-
if (entry.kind !== "group") continue;
|
|
57376
|
-
const turn = groups.get(entry.key)?.data.turn ?? -1;
|
|
57377
|
-
if (turn >= 1) {
|
|
57378
|
-
if (bucketTurn !== void 0 && turn !== bucketTurn) closeBucket();
|
|
57379
|
-
bucketTurn = turn;
|
|
57380
|
-
}
|
|
57381
|
-
bucket.push(entry.key);
|
|
57382
|
-
}
|
|
57383
|
-
closeBucket();
|
|
57384
|
-
}
|
|
57385
57383
|
for (const entry of entries) if (entry.kind === "group") {
|
|
57386
57384
|
const group = groups.get(entry.key);
|
|
57387
57385
|
if (group === void 0) continue;
|
|
57388
|
-
const latest = flatKeys.has(group.key);
|
|
57389
57386
|
rows.push((0, react$1.createElement)(ChatGroupSeatMirror, {
|
|
57390
57387
|
key: entry.key,
|
|
57391
57388
|
group,
|
|
57392
|
-
grouped:
|
|
57389
|
+
grouped: true,
|
|
57393
57390
|
store,
|
|
57394
57391
|
openState,
|
|
57395
57392
|
onSetOpen,
|
|
@@ -57428,10 +57425,6 @@ window.__ModuleLoader__.load({
|
|
|
57428
57425
|
}
|
|
57429
57426
|
return rows;
|
|
57430
57427
|
}
|
|
57431
|
-
/** turn 状态(官方 turns.get(turn)?.status)。 */
|
|
57432
|
-
function turnStatus(turns, turn) {
|
|
57433
|
-
return (turns?.get(turn) ?? turns?.get(String(turn)))?.status;
|
|
57434
|
-
}
|
|
57435
57428
|
/** 加载 / 空态提示行(13px tertiary)。 */
|
|
57436
57429
|
function ChatHint(props) {
|
|
57437
57430
|
return (0, react$1.createElement)("div", { className: officialClass("ChatView", "hint") ?? "" }, props.text);
|
|
@@ -57444,7 +57437,7 @@ window.__ModuleLoader__.load({
|
|
|
57444
57437
|
}, props.label));
|
|
57445
57438
|
}
|
|
57446
57439
|
//#endregion
|
|
57447
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
57440
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/AskCard.js
|
|
57448
57441
|
const isRecord$3 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
57449
57442
|
function parseJson(text) {
|
|
57450
57443
|
try {
|
|
@@ -57574,7 +57567,7 @@ window.__ModuleLoader__.load({
|
|
|
57574
57567
|
}));
|
|
57575
57568
|
}
|
|
57576
57569
|
//#endregion
|
|
57577
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
57570
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/detail-i18n.js
|
|
57578
57571
|
const DETAIL_KEYS = {
|
|
57579
57572
|
"detail.agent.reply": "detailAgentReply",
|
|
57580
57573
|
"detail.agents.count": "detailAgentsCount",
|
|
@@ -57728,7 +57721,7 @@ window.__ModuleLoader__.load({
|
|
|
57728
57721
|
return mapped === void 0 ? key : params === void 0 ? t(mapped) : t(mapped, params);
|
|
57729
57722
|
}
|
|
57730
57723
|
//#endregion
|
|
57731
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
57724
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/control-details.js
|
|
57732
57725
|
const isRecord$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
57733
57726
|
const arg = (args, key) => typeof args[key] === "string" ? args[key] : "";
|
|
57734
57727
|
function detailJson$1(text) {
|
|
@@ -58483,7 +58476,7 @@ window.__ModuleLoader__.load({
|
|
|
58483
58476
|
}
|
|
58484
58477
|
}
|
|
58485
58478
|
//#endregion
|
|
58486
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
58479
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/ToolDetails.js
|
|
58487
58480
|
const isRecord$1 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
58488
58481
|
const nonempty = (value) => typeof value === "string" && value.trim() !== "";
|
|
58489
58482
|
const count = (value) => typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
@@ -58762,7 +58755,7 @@ window.__ModuleLoader__.load({
|
|
|
58762
58755
|
})))) : null);
|
|
58763
58756
|
}
|
|
58764
58757
|
//#endregion
|
|
58765
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
58758
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/GenericCommandCard.js
|
|
58766
58759
|
/** 官方 TOOL_VARIANTS(tool client.js:83-100,cordis_* 一并保留)。 */
|
|
58767
58760
|
const TOOL_VARIANTS = {
|
|
58768
58761
|
bash: "bash",
|
|
@@ -58880,7 +58873,7 @@ window.__ModuleLoader__.load({
|
|
|
58880
58873
|
"write",
|
|
58881
58874
|
"edit"
|
|
58882
58875
|
]);
|
|
58883
|
-
const firstLine$
|
|
58876
|
+
const firstLine$4 = (text) => {
|
|
58884
58877
|
const nl = text.indexOf("\n");
|
|
58885
58878
|
return nl === -1 ? text : text.slice(0, nl);
|
|
58886
58879
|
};
|
|
@@ -58901,16 +58894,16 @@ window.__ModuleLoader__.load({
|
|
|
58901
58894
|
/** 官方 deriveSummary(tool client.js:221-233)。 */
|
|
58902
58895
|
function deriveSummary(variant, argsRaw) {
|
|
58903
58896
|
const parsed = parseArgs(argsRaw);
|
|
58904
|
-
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return firstLine$
|
|
58897
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return firstLine$4(argsRaw);
|
|
58905
58898
|
const args = parsed;
|
|
58906
58899
|
if (variant === "search" && Array.isArray(args.queries)) {
|
|
58907
58900
|
const queries = args.queries.filter((query) => typeof query === "string" && query !== "");
|
|
58908
|
-
if (queries.length > 0) return queries.map(firstLine$
|
|
58901
|
+
if (queries.length > 0) return queries.map(firstLine$4).join(", ");
|
|
58909
58902
|
}
|
|
58910
58903
|
const picked = pickString(args, SUMMARY_KEYS[variant]);
|
|
58911
|
-
if (picked !== void 0) return firstLine$
|
|
58912
|
-
for (const value of Object.values(args)) if (typeof value === "string" && value !== "") return firstLine$
|
|
58913
|
-
return firstLine$
|
|
58904
|
+
if (picked !== void 0) return firstLine$4(picked);
|
|
58905
|
+
for (const value of Object.values(args)) if (typeof value === "string" && value !== "") return firstLine$4(value);
|
|
58906
|
+
return firstLine$4(argsRaw);
|
|
58914
58907
|
}
|
|
58915
58908
|
/** 官方 deriveFilePath(tool client.js:242-248):read/write/edit 的路径取参。 */
|
|
58916
58909
|
function deriveFilePath(variant, argsRaw) {
|
|
@@ -58918,7 +58911,7 @@ window.__ModuleLoader__.load({
|
|
|
58918
58911
|
const parsed = parseArgs(argsRaw);
|
|
58919
58912
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return void 0;
|
|
58920
58913
|
const picked = pickString(parsed, ["path", "file_path"]);
|
|
58921
|
-
return picked === void 0 ? void 0 : firstLine$
|
|
58914
|
+
return picked === void 0 ? void 0 : firstLine$4(picked);
|
|
58922
58915
|
}
|
|
58923
58916
|
/** 官方 readCallLine(tool client.js:432-436):read 的 offset(1 起)就是落点行,参数非法则无行。 */
|
|
58924
58917
|
function readCallLine(name, argsRaw) {
|
|
@@ -59483,9 +59476,17 @@ window.__ModuleLoader__.load({
|
|
|
59483
59476
|
const summaryLinkKeyDown = (event) => {
|
|
59484
59477
|
if (event.key === "Enter" || event.key === " ") event.stopPropagation();
|
|
59485
59478
|
};
|
|
59486
|
-
/**
|
|
59479
|
+
/**
|
|
59480
|
+
* 官方 ExitCodeBadge(ui-tool@0.2.2-rc.1 lib/client.js:1519-1555):
|
|
59481
|
+
* 官方 Tag 原语 tone="neutral" + badge/dot 两个类。胶囊的底色、圆角、11px 字号全在
|
|
59482
|
+
* Tag.module.css 的 .tag[data-tone='neutral'] 里;badge 类只管 flex/gap/margin,
|
|
59483
|
+
* 所以只搬 CSS 类而不用 Tag 会丢掉整个胶囊。
|
|
59484
|
+
*/
|
|
59487
59485
|
function ExitCodeBadge({ label }) {
|
|
59488
|
-
return (0, react$1.createElement)(
|
|
59486
|
+
return (0, react$1.createElement)(official_exports.Tag, {
|
|
59487
|
+
tone: "neutral",
|
|
59488
|
+
className: officialClass("ExitCodeBadge", "badge") ?? ""
|
|
59489
|
+
}, (0, react$1.createElement)("span", {
|
|
59489
59490
|
className: officialClass("ExitCodeBadge", "dot") ?? "",
|
|
59490
59491
|
"aria-hidden": true
|
|
59491
59492
|
}), label);
|
|
@@ -59570,7 +59571,7 @@ window.__ModuleLoader__.load({
|
|
|
59570
59571
|
const todoInfo = name === "todo_write" ? todoSummary(argsRaw, t) : null;
|
|
59571
59572
|
const detailsText = details === null ? void 0 : detailsSummary(details);
|
|
59572
59573
|
const normalSummary = ask !== null ? ask.summary : detailsText ?? (todoInfo !== null ? todoInfo.text : terminal?.description ?? plainSummary);
|
|
59573
|
-
const errorSummary = rowState === "error" && output !== "" ? firstLine$
|
|
59574
|
+
const errorSummary = rowState === "error" && output !== "" ? firstLine$4(output) : null;
|
|
59574
59575
|
const exitLabel = failedTerminal ? terminal?.signal !== void 0 ? t("terminalSignal", { signal: terminal.signal }) : terminal?.exitCode === void 0 || terminal.exitCode === null ? t("terminalNoExitCode") : t("terminalExitCode", { code: terminal.exitCode }) : null;
|
|
59575
59576
|
const summaryText = (rowState === "error" && exitLabel === null ? errorSummary ?? normalSummary : null) ?? normalSummary;
|
|
59576
59577
|
const totals = diffs === null ? null : (0, official_exports.diffTotals)(diffs);
|
|
@@ -59713,7 +59714,7 @@ window.__ModuleLoader__.load({
|
|
|
59713
59714
|
}));
|
|
59714
59715
|
}
|
|
59715
59716
|
//#endregion
|
|
59716
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
59717
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/CommandCard.js
|
|
59717
59718
|
/** 官方 GenericCommandCard 模块类(宿主必注入;缺席 = 空串,裸结构不白屏,不写自绘兜底)。 */
|
|
59718
59719
|
const gcc = (semantic) => officialClass("GenericCommandCard", semantic) ?? "";
|
|
59719
59720
|
/** 官方 stateOf:未决 = running;outcome.kind==='error' = error;否则 ok。 */
|
|
@@ -59765,7 +59766,7 @@ window.__ModuleLoader__.load({
|
|
|
59765
59766
|
}));
|
|
59766
59767
|
}
|
|
59767
59768
|
//#endregion
|
|
59768
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
59769
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/message-chrome.js
|
|
59769
59770
|
/**
|
|
59770
59771
|
* 官方 formatRunDuration(0.2.x,lib/client.js:5067-5095):整秒;≥1 分带分;≥1 小时带小时。
|
|
59771
59772
|
* 单位是独立片段(`duration.hourUnit` / `minuteUnit` / `secondUnit`),不是一条带占位的模板。
|
|
@@ -59893,7 +59894,7 @@ window.__ModuleLoader__.load({
|
|
|
59893
59894
|
return `99.${"9".repeat(distinguishingPlaces - 1)}${10 - roundedLoss}`;
|
|
59894
59895
|
}
|
|
59895
59896
|
//#endregion
|
|
59896
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
59897
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/MessageIconActions.js
|
|
59897
59898
|
/** 官方「已复制」复位时间。 */
|
|
59898
59899
|
const COPIED_RESET_MS = 1e3;
|
|
59899
59900
|
/** 消息操作行(复制 / 分支 / 用量 / 时钟)。 */
|
|
@@ -59952,21 +59953,22 @@ window.__ModuleLoader__.load({
|
|
|
59952
59953
|
}, t("branchUnavailableLabel")), clock === "end" ? (0, react$1.createElement)("span", { className: officialClass("MessageIconActions", "endInfo") ?? "" }, usageAction, clockEl) : usageAction);
|
|
59953
59954
|
}
|
|
59954
59955
|
//#endregion
|
|
59955
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
59956
|
-
/** 助手正文:官方
|
|
59956
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/MessageItem.js
|
|
59957
|
+
/** 助手正文:官方 DOM = AssistantMarkdown.root > body > MarkdownText(chat lib/client.js:8370-8378)。
|
|
59958
|
+
* root 定 14px/24px,body 定 flex-column + 块间 gap 16px(宽表格规则也挂在 body 上)。
|
|
59957
59959
|
* U11:fileMentions 词表就位时行内 code 文件引用渲成可点链接(官方语义:resolve 不出保持惰性 code)。 */
|
|
59958
59960
|
function AssistantMarkdown(props) {
|
|
59959
59961
|
if (props.text.trim() === "") return (0, react$1.createElement)("span", null);
|
|
59960
|
-
return (0, react$1.createElement)("div", { className: officialClass("AssistantMarkdown", "root") ?? "" }, (0, react$1.createElement)(official_exports.MarkdownText, {
|
|
59962
|
+
return (0, react$1.createElement)("div", { className: officialClass("AssistantMarkdown", "root") ?? "" }, (0, react$1.createElement)("div", { className: officialClass("AssistantMarkdown", "body") ?? "" }, (0, react$1.createElement)(official_exports.MarkdownText, {
|
|
59961
59963
|
text: props.text,
|
|
59962
59964
|
streaming: props.streaming,
|
|
59963
59965
|
labels: markdownLabels(),
|
|
59964
59966
|
fileMentions: props.fileMentions
|
|
59965
|
-
}));
|
|
59967
|
+
})));
|
|
59966
59968
|
}
|
|
59967
59969
|
/**
|
|
59968
|
-
* 用户消息:官方 MessageItem userRow > userStack >
|
|
59969
|
-
* +
|
|
59970
|
+
* 用户消息:官方 MessageItem userRow > userStack > UserMessageBubble(右对齐气泡)
|
|
59971
|
+
* + 气泡前的 **attachmentRow / fileCard**(官方 0.2.x 把附件行放在气泡之前)。
|
|
59970
59972
|
*
|
|
59971
59973
|
* 官方附件卡 = 图标 + 文件名 + 大小;**不可点开**——引用里没有路径,宿主也没给出
|
|
59972
59974
|
* 「按 attachmentId 打开」的公开面 ⇒ 如实降级为只读展示,不伪造打开行为。
|
|
@@ -59990,10 +59992,10 @@ window.__ModuleLoader__.load({
|
|
|
59990
59992
|
}, (0, react$1.createElement)(official_exports.FileTypeIcon, {
|
|
59991
59993
|
path: file.name,
|
|
59992
59994
|
className: officialClass("MessageItem", "fileIcon") ?? ""
|
|
59993
|
-
}), (0, react$1.createElement)("span", { className: officialClass("MessageItem", "fileContent") ?? "" }, (0, react$1.createElement)("span", { className: officialClass("MessageItem", "fileName") ?? "" }, file.name), (0, react$1.createElement)("span", { className: officialClass("MessageItem", "fileMeta") ?? "" }, [(0, official_exports.fileExtension)(file.name).toUpperCase().slice(0, 8), (0, official_exports.fileSizeText)(file.bytes)].filter(Boolean).join(" ")))))), text === "" ? null : (0, react$1.createElement)(
|
|
59994
|
-
|
|
59995
|
-
|
|
59996
|
-
})), references.length === 0 ? null : (0, react$1.createElement)("div", { className: officialClass("MessageItem", "referenceSummary") ?? "" }, t("referenceSummary", { labels: references.join(t("referenceSeparator")) })), skills.length === 0 ? null : (0, react$1.createElement)("div", { className: officialClass("MessageItem", "referenceSummary") ?? "" }, t("skillSummary", { names: skills.join(t("skillSeparator")) }))));
|
|
59995
|
+
}), (0, react$1.createElement)("span", { className: officialClass("MessageItem", "fileContent") ?? "" }, (0, react$1.createElement)("span", { className: officialClass("MessageItem", "fileName") ?? "" }, file.name), (0, react$1.createElement)("span", { className: officialClass("MessageItem", "fileMeta") ?? "" }, [(0, official_exports.fileExtension)(file.name).toUpperCase().slice(0, 8), (0, official_exports.fileSizeText)(file.bytes)].filter(Boolean).join(" ")))))), text === "" ? null : (0, react$1.createElement)(official_exports.UserMessageBubble, {
|
|
59996
|
+
"data-message-bubble": "",
|
|
59997
|
+
"data-text-interaction-source": ""
|
|
59998
|
+
}, (0, react$1.createElement)(official_exports.UserTextRun, { text })), references.length === 0 ? null : (0, react$1.createElement)("div", { className: officialClass("MessageItem", "referenceSummary") ?? "" }, t("referenceSummary", { labels: references.join(t("referenceSeparator")) })), skills.length === 0 ? null : (0, react$1.createElement)("div", { className: officialClass("MessageItem", "referenceSummary") ?? "" }, t("skillSummary", { names: skills.join(t("skillSeparator")) }))));
|
|
59997
59999
|
}
|
|
59998
60000
|
/**
|
|
59999
60001
|
* 自动压缩节点(官方 CompactionItem,lib/client.js:4322-4390):
|
|
@@ -60125,10 +60127,10 @@ window.__ModuleLoader__.load({
|
|
|
60125
60127
|
}), (0, react$1.createElement)("div", { className: officialClass("MessageItem", "turnErrorCopy") ?? "" }, (0, react$1.createElement)("span", { className: officialClass("MessageItem", "maxTokensTitle") ?? "" }, t("maxTokensTitle")), (0, react$1.createElement)("span", { className: officialClass("MessageItem", "turnErrorMessage") ?? "" }, t("maxTokensHint"))));
|
|
60126
60128
|
}
|
|
60127
60129
|
//#endregion
|
|
60128
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60130
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/BashRow.js
|
|
60129
60131
|
/** 官方 BASH_ICON(tool client.js:2469):终端图标 14px。 */
|
|
60130
60132
|
const BASH_ICON = (0, react$1.createElement)(official_exports.IconApiOutlineRegular, { size: 14 });
|
|
60131
|
-
const firstLine$
|
|
60133
|
+
const firstLine$3 = (text) => {
|
|
60132
60134
|
const nl = text.indexOf("\n");
|
|
60133
60135
|
return nl === -1 ? text : text.slice(0, nl);
|
|
60134
60136
|
};
|
|
@@ -60176,7 +60178,7 @@ window.__ModuleLoader__.load({
|
|
|
60176
60178
|
const generic = titleKey === "toolTitleGeneric";
|
|
60177
60179
|
const base = argsRaw === "" ? "" : deriveSummary(variant, argsRaw);
|
|
60178
60180
|
const plainSummary = [generic ? name : "", base].filter(Boolean).join(" · ");
|
|
60179
|
-
const errorSummary = rowState === "error" && output !== "" ? firstLine$
|
|
60181
|
+
const errorSummary = rowState === "error" && output !== "" ? firstLine$3(output) : null;
|
|
60180
60182
|
const summaryText = (rowState === "error" ? errorSummary ?? terminal?.description ?? plainSummary : null) ?? terminal?.description ?? plainSummary;
|
|
60181
60183
|
const exitLabel = terminal !== null && terminalFailedOf(terminal) && !background ? terminal.signal !== void 0 ? t("terminalSignal", { signal: terminal.signal }) : terminal.exitCode === null || terminal.exitCode === void 0 ? t("terminalNoExitCode") : t("terminalExitCode", { code: terminal.exitCode }) : null;
|
|
60182
60184
|
const settlementLine = exitLabel !== null ? null : rowState === "error" ? errorSummary ?? summaryText : rowState === "stopped" ? t("rowStopped") : null;
|
|
@@ -60229,7 +60231,77 @@ window.__ModuleLoader__.load({
|
|
|
60229
60231
|
}, outputText)) : null)) : void 0);
|
|
60230
60232
|
}
|
|
60231
60233
|
//#endregion
|
|
60232
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60234
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/SkillRow.js
|
|
60235
|
+
const cls = (semantic) => officialClass("SkillRow", semantic) ?? "";
|
|
60236
|
+
const firstLine$2 = (text) => {
|
|
60237
|
+
const nl = text.indexOf("\n");
|
|
60238
|
+
return nl === -1 ? text : text.slice(0, nl);
|
|
60239
|
+
};
|
|
60240
|
+
/** 官方 skillName(lib/client.js:105-114):只认 args.name;解析失败退回 argsRaw 首行。 */
|
|
60241
|
+
function skillName(argsRaw) {
|
|
60242
|
+
try {
|
|
60243
|
+
const parsed = JSON.parse(argsRaw);
|
|
60244
|
+
if (typeof parsed === "object" && parsed !== null) {
|
|
60245
|
+
const name = parsed.name;
|
|
60246
|
+
if (typeof name === "string" && name !== "") return firstLine$2(name);
|
|
60247
|
+
}
|
|
60248
|
+
} catch {}
|
|
60249
|
+
return firstLine$2(argsRaw);
|
|
60250
|
+
}
|
|
60251
|
+
/** `skill` 工具调用的官方专属行(tool.call.toolview key='skill')。 */
|
|
60252
|
+
function SkillRowMirror(props) {
|
|
60253
|
+
const { argsRaw, output, isError, settled = true, phase, interrupted, t } = props;
|
|
60254
|
+
const [expanded, setExpanded] = (0, react$1.useState)(false);
|
|
60255
|
+
const state = !settled ? phase === "preparing" ? "preparing" : "running" : interrupted ? "stopped" : isError ? "error" : "ok";
|
|
60256
|
+
if (state === "preparing") return (0, react$1.createElement)("div", {
|
|
60257
|
+
className: cls("card"),
|
|
60258
|
+
"data-tool": "skill",
|
|
60259
|
+
"data-state": "preparing"
|
|
60260
|
+
}, (0, react$1.createElement)("div", { className: cls("row") }, (0, react$1.createElement)("span", { className: cls("leading") }, (0, react$1.createElement)(official_exports.IconSkillOutlineRegular, { size: 14 })), (0, react$1.createElement)("span", { className: cls("visuallyHidden") }, t("skillRowPreparing")), (0, react$1.createElement)(official_exports.TextShimmer, {
|
|
60261
|
+
active: true,
|
|
60262
|
+
className: cls("title")
|
|
60263
|
+
}, t("skillRowTitle"))));
|
|
60264
|
+
const running = state === "running";
|
|
60265
|
+
const errorSummary = state === "error" && output !== "" ? firstLine$2(output) : null;
|
|
60266
|
+
const summary = state === "stopped" ? t("skillRowStopped") : errorSummary ?? skillName(argsRaw);
|
|
60267
|
+
const expandable = output !== "";
|
|
60268
|
+
const open = expanded && expandable;
|
|
60269
|
+
const status = state === "running" ? t("skillRowRunning") : state === "error" ? t("skillRowFailed") : null;
|
|
60270
|
+
const leading = open ? (0, react$1.createElement)(official_exports.IconChevronDownOutlineRegular, { className: cls("chevron") }) : expandable ? (0, react$1.createElement)(react$1.Fragment, null, (0, react$1.createElement)("span", { className: cls("iconIdle") }, (0, react$1.createElement)(official_exports.IconSkillOutlineRegular, { size: 14 })), (0, react$1.createElement)(official_exports.IconChevronDownOutlineRegular, { className: `${cls("chevron")} ${cls("chevronHover")}` })) : (0, react$1.createElement)(official_exports.IconSkillOutlineRegular, { size: 14 });
|
|
60271
|
+
const summaryClassName = `${cls("summary")}${state === "error" ? ` ${cls("errorSummary")}` : ""}${state === "stopped" ? ` ${cls("stoppedSummary")}` : ""}`;
|
|
60272
|
+
const toggleFromKeyboard = (event) => {
|
|
60273
|
+
if (!expandable || event.key !== "Enter" && event.key !== " ") return;
|
|
60274
|
+
event.preventDefault();
|
|
60275
|
+
setExpanded((value) => !value);
|
|
60276
|
+
};
|
|
60277
|
+
return (0, react$1.createElement)("div", {
|
|
60278
|
+
className: cls("card"),
|
|
60279
|
+
"data-tool": "skill",
|
|
60280
|
+
"data-state": state
|
|
60281
|
+
}, (0, react$1.createElement)("div", {
|
|
60282
|
+
className: cls("row"),
|
|
60283
|
+
"data-expandable": expandable || void 0,
|
|
60284
|
+
role: expandable ? "button" : void 0,
|
|
60285
|
+
tabIndex: expandable ? 0 : void 0,
|
|
60286
|
+
"aria-expanded": expandable ? open : void 0,
|
|
60287
|
+
onClick: expandable ? () => {
|
|
60288
|
+
setExpanded((value) => !value);
|
|
60289
|
+
} : void 0,
|
|
60290
|
+
onKeyDown: expandable ? toggleFromKeyboard : void 0
|
|
60291
|
+
}, (0, react$1.createElement)("span", { className: cls("leading") }, leading), status !== null ? (0, react$1.createElement)("span", { className: cls("visuallyHidden") }, status) : null, (0, react$1.createElement)(official_exports.TextShimmer, { active: running }, (0, react$1.createElement)("span", { className: cls("title") }, (0, react$1.createElement)(official_exports.TextShimmer, null, t("skillRowTitle"))), (0, react$1.createElement)("span", {
|
|
60292
|
+
className: cls("separator"),
|
|
60293
|
+
"data-shimmer-decoration": true,
|
|
60294
|
+
"aria-hidden": true
|
|
60295
|
+
}), (0, react$1.createElement)("span", { className: summaryClassName }, (0, react$1.createElement)(official_exports.TextShimmer, null, summary)))), open ? (0, react$1.createElement)("div", { className: cls("bodyWrap") }, (0, react$1.createElement)("section", {
|
|
60296
|
+
className: cls("instructionsCard"),
|
|
60297
|
+
"aria-label": t("skillRowInstructions")
|
|
60298
|
+
}, (0, react$1.createElement)("div", { className: cls("instructionsHeader") }, t("skillRowInstructions")), (0, react$1.createElement)("pre", {
|
|
60299
|
+
className: cls("instructions"),
|
|
60300
|
+
"data-error": state === "error" || void 0
|
|
60301
|
+
}, output))) : null);
|
|
60302
|
+
}
|
|
60303
|
+
//#endregion
|
|
60304
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/TurnTriggerNodeView.js
|
|
60233
60305
|
/** 官方 TRIGGER_ICONS(lib/client.js:7122-7131)。 */
|
|
60234
60306
|
const TRIGGER_ICONS = {
|
|
60235
60307
|
request: official_exports.IconContextInjectionOutlineRegular,
|
|
@@ -60342,7 +60414,7 @@ window.__ModuleLoader__.load({
|
|
|
60342
60414
|
return runs.length === 0 ? [t("sessionEmpty")] : runs;
|
|
60343
60415
|
}
|
|
60344
60416
|
//#endregion
|
|
60345
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60417
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/ContextInjectionRow.js
|
|
60346
60418
|
/** 系统注入上下文行(官方 ContextInjectionRow 的 opaque 版)。 */
|
|
60347
60419
|
function ContextInjectionRowMirror(props) {
|
|
60348
60420
|
const { node, t } = props;
|
|
@@ -60385,7 +60457,7 @@ window.__ModuleLoader__.load({
|
|
|
60385
60457
|
});
|
|
60386
60458
|
}
|
|
60387
60459
|
//#endregion
|
|
60388
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60460
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/ReasoningRow.js
|
|
60389
60461
|
/** 官方 firstLine(lib/client.js:6140 区):首行。 */
|
|
60390
60462
|
function firstLine$1(text) {
|
|
60391
60463
|
const newline = text.indexOf("\n");
|
|
@@ -60466,7 +60538,7 @@ window.__ModuleLoader__.load({
|
|
|
60466
60538
|
}));
|
|
60467
60539
|
}
|
|
60468
60540
|
//#endregion
|
|
60469
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60541
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/RunningStatus.js
|
|
60470
60542
|
/** 官方 LIVE_RUN_CLOCK_INTERVAL_MS(lib/client.js:979)。 */
|
|
60471
60543
|
const LIVE_RUN_CLOCK_INTERVAL_MS = 1e3;
|
|
60472
60544
|
/** 官方静态兜底 SVG 的鲸尾路径(lib/client.js:6340 REST_PATH,16×16)。 */
|
|
@@ -60524,7 +60596,7 @@ window.__ModuleLoader__.load({
|
|
|
60524
60596
|
}, label)));
|
|
60525
60597
|
}
|
|
60526
60598
|
//#endregion
|
|
60527
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60599
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/TurnProcessNodeView.js
|
|
60528
60600
|
/** Turn 过程行:折叠时只有 label + 箭头;点开由外层 seat 把过程节点放出来。 */
|
|
60529
60601
|
function TurnProcessNodeViewMirror(props) {
|
|
60530
60602
|
const { turn, turnProcess, t } = props;
|
|
@@ -60562,7 +60634,7 @@ window.__ModuleLoader__.load({
|
|
|
60562
60634
|
}, part.text))), canCollapse ? (0, react$1.createElement)(official_exports.IconChevronDownOutlineRegular, { className: officialClass("TurnProcessNodeView", "chevron") ?? "" }) : null));
|
|
60563
60635
|
}
|
|
60564
60636
|
//#endregion
|
|
60565
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60637
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/StatDialog.js
|
|
60566
60638
|
const PANEL_MARGIN = 12;
|
|
60567
60639
|
const PANEL_GAP = 8;
|
|
60568
60640
|
/**
|
|
@@ -60618,7 +60690,7 @@ window.__ModuleLoader__.load({
|
|
|
60618
60690
|
};
|
|
60619
60691
|
}
|
|
60620
60692
|
//#endregion
|
|
60621
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60693
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/TurnUsagePanel.js
|
|
60622
60694
|
/** 本轮用量 pill + 明细弹层。 */
|
|
60623
60695
|
function TurnUsagePanelMirror(props) {
|
|
60624
60696
|
const { usage, t } = props;
|
|
@@ -60652,7 +60724,7 @@ window.__ModuleLoader__.load({
|
|
|
60652
60724
|
}, routes === "" ? null : (0, react$1.createElement)(react$1.Fragment, null, (0, react$1.createElement)("dt", null, t("turnUsageModel")), (0, react$1.createElement)("dd", { className: officialClass("stat-dialog", "route") ?? "" }, routes)), cacheHit === null ? null : (0, react$1.createElement)(react$1.Fragment, null, (0, react$1.createElement)("dt", null, t("turnUsageCacheHit")), (0, react$1.createElement)("dd", null, `${cacheHit}%`)), (0, react$1.createElement)("dt", null, t("turnUsageInput")), (0, react$1.createElement)("dd", null, formatExactCount(usage.uncachedInputTokens, t)), usage.cacheReadTokens === void 0 ? null : (0, react$1.createElement)(react$1.Fragment, null, (0, react$1.createElement)("dt", null, t("turnUsageCacheRead")), (0, react$1.createElement)("dd", null, formatExactCount(usage.cacheReadTokens, t))), usage.cacheWriteTokens === void 0 ? null : (0, react$1.createElement)(react$1.Fragment, null, (0, react$1.createElement)("dt", null, t("turnUsageCacheWrite")), (0, react$1.createElement)("dd", null, formatExactCount(usage.cacheWriteTokens, t))), (0, react$1.createElement)("dt", null, t("turnUsageOutput")), (0, react$1.createElement)("dd", null, formatExactCount(usage.outputTokens, t), usage.reasoningTokens === void 0 ? null : (0, react$1.createElement)("span", { className: officialClass("stat-dialog", "reasoning") ?? "" }, t("turnUsageReasoning", { tokens: formatExactCount(usage.reasoningTokens, t) }))))), document.body) : null);
|
|
60653
60725
|
}
|
|
60654
60726
|
//#endregion
|
|
60655
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60727
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/TurnTailNodeView.js
|
|
60656
60728
|
/** 官方 hasAssistantReplyContent。 */
|
|
60657
60729
|
function hasAssistantReplyContent(blocks) {
|
|
60658
60730
|
return blocks.some((block) => {
|
|
@@ -60736,7 +60808,7 @@ window.__ModuleLoader__.load({
|
|
|
60736
60808
|
}));
|
|
60737
60809
|
}
|
|
60738
60810
|
//#endregion
|
|
60739
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60811
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/Deliverables.js
|
|
60740
60812
|
const basename = (path) => path.slice(Math.max(path.lastIndexOf("/"), path.lastIndexOf("\\")) + 1);
|
|
60741
60813
|
/** 交付路径的所在目录;无分隔符(纯文件名)⇒ undefined,不出「在文件夹中显示」。 */
|
|
60742
60814
|
function parentOf(path) {
|
|
@@ -60891,7 +60963,7 @@ window.__ModuleLoader__.load({
|
|
|
60891
60963
|
}, (0, react$1.createElement)("span", null, t(expanded ? "deliverCollapse" : "deliverAll", { count: files.length })), expanded ? (0, react$1.createElement)(official_exports.IconChevronUpOutlineRegular, {}) : (0, react$1.createElement)(official_exports.IconChevronDownOutlineRegular, {})) : null);
|
|
60892
60964
|
}
|
|
60893
60965
|
//#endregion
|
|
60894
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60966
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/utils/string.js
|
|
60895
60967
|
/**
|
|
60896
60968
|
* 路径取末段(文件名显示用)。`/` 与 `\` 都认。
|
|
60897
60969
|
*
|
|
@@ -60905,7 +60977,7 @@ window.__ModuleLoader__.load({
|
|
|
60905
60977
|
return cut < 0 ? trimmed : trimmed.slice(cut + 1);
|
|
60906
60978
|
}
|
|
60907
60979
|
//#endregion
|
|
60908
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
60980
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/changes.js
|
|
60909
60981
|
/** 官方 changesSummaryUrl(client.js:90-96):文档相对路由。 */
|
|
60910
60982
|
function changesSummaryUrl(sessionId, seq) {
|
|
60911
60983
|
return `api/changes.summary?${new URLSearchParams({
|
|
@@ -61047,7 +61119,7 @@ window.__ModuleLoader__.load({
|
|
|
61047
61119
|
return isInt(seq) ? seq : null;
|
|
61048
61120
|
}
|
|
61049
61121
|
//#endregion
|
|
61050
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
61122
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/ChangedFileDiff.js
|
|
61051
61123
|
/** 官方 ChangedFiles / FileDiff 模块类(ui-deliverables;取不到 = 空类,不白屏)。 */
|
|
61052
61124
|
const C$1 = (semantic) => officialClass("ChangedFiles", semantic) ?? "";
|
|
61053
61125
|
const D = (semantic) => officialClass("FileDiff", semantic) ?? "";
|
|
@@ -61227,7 +61299,7 @@ window.__ModuleLoader__.load({
|
|
|
61227
61299
|
})), body);
|
|
61228
61300
|
}
|
|
61229
61301
|
//#endregion
|
|
61230
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
61302
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/mirror/ChangedFilesCard.js
|
|
61231
61303
|
/** 官方 ChangedFiles 模块类(ui-deliverables;取不到 = 空类,不白屏)。 */
|
|
61232
61304
|
const C = (semantic) => officialClass("ChangedFiles", semantic) ?? "";
|
|
61233
61305
|
/** 会话级缓存:同一 (sessionId, seq) 只拉一次(官方 ChangesSummaryStore 同语义)。 */
|
|
@@ -61371,7 +61443,7 @@ window.__ModuleLoader__.load({
|
|
|
61371
61443
|
}, header, list, toggle);
|
|
61372
61444
|
}
|
|
61373
61445
|
//#endregion
|
|
61374
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
61446
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/pending-inputs.js
|
|
61375
61447
|
/** 官方 observedInputs:durable user 节点 source.rpcId(本地回显被持久节点取代的判据)。 */
|
|
61376
61448
|
function observedRpcIds(order, readNode) {
|
|
61377
61449
|
const ids = /* @__PURE__ */ new Set();
|
|
@@ -61571,7 +61643,7 @@ window.__ModuleLoader__.load({
|
|
|
61571
61643
|
};
|
|
61572
61644
|
}
|
|
61573
61645
|
//#endregion
|
|
61574
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
61646
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/SessionViewModal.js
|
|
61575
61647
|
/** 稳定的空序列(避免默认值每次新建数组)。 */
|
|
61576
61648
|
const EMPTY_ORDER = [];
|
|
61577
61649
|
/** SSR / 数据面未接线时的归档态:如实按未归档,不编造。 */
|
|
@@ -61768,7 +61840,7 @@ window.__ModuleLoader__.load({
|
|
|
61768
61840
|
});
|
|
61769
61841
|
const card = toolCallCard(node, t, fileOpen?.open);
|
|
61770
61842
|
if (card === null) return null;
|
|
61771
|
-
return card.name === "bash" || card.name === "pwsh" ? (0, react$1.createElement)(BashRowMirror, card) : (0, react$1.createElement)(GenericCommandCard, card);
|
|
61843
|
+
return card.name === "bash" || card.name === "pwsh" ? (0, react$1.createElement)(BashRowMirror, card) : card.name === "skill" ? (0, react$1.createElement)(SkillRowMirror, card) : (0, react$1.createElement)(GenericCommandCard, card);
|
|
61772
61844
|
}
|
|
61773
61845
|
case "command": return (0, react$1.createElement)(CommandCard, {
|
|
61774
61846
|
node: dataOf(node),
|
|
@@ -62498,7 +62570,6 @@ window.__ModuleLoader__.load({
|
|
|
62498
62570
|
store,
|
|
62499
62571
|
entries: groupedView?.entries,
|
|
62500
62572
|
groups: groupedView?.groups,
|
|
62501
|
-
turns,
|
|
62502
62573
|
openState: openTurns,
|
|
62503
62574
|
onSetOpen,
|
|
62504
62575
|
foldCompleted: true,
|
|
@@ -62608,7 +62679,7 @@ window.__ModuleLoader__.load({
|
|
|
62608
62679
|
}, (0, react$1.createElement)("p", { className: "dshpc-sv-forktext" }, tt("forkConfirmText")), canFork ? null : (0, react$1.createElement)("p", { className: "dshpc-sv-forkerr" }, tt("forkUnavailable")), forkErr !== null ? (0, react$1.createElement)("p", { className: "dshpc-sv-forkerr" }, tt("forkFailed", { error: forkErr })) : null));
|
|
62609
62680
|
}
|
|
62610
62681
|
//#endregion
|
|
62611
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
62682
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/open-review.js
|
|
62612
62683
|
/**
|
|
62613
62684
|
* 在右侧分栏打开某次改动的 diff(`ChangedFilesCard` → `onOpenReview` 的落点)。
|
|
62614
62685
|
*
|
|
@@ -62635,7 +62706,7 @@ window.__ModuleLoader__.load({
|
|
|
62635
62706
|
return handle;
|
|
62636
62707
|
}
|
|
62637
62708
|
//#endregion
|
|
62638
|
-
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.
|
|
62709
|
+
//#region ../../node_modules/.pnpm/dsh-plugin-core@0.33.3_@babel+runtime@8.0.8_@codemirror+autocomplete@6.20.4_@codemirror_a7769aa40f5be5656471031466b6e678/node_modules/dsh-plugin-core/dist/adv/session/open-session-view.js
|
|
62639
62710
|
/** 默认 retain source(写进宿主 retainedBy;调用方可覆盖成自己的插件名)。 */
|
|
62640
62711
|
const DEFAULT_RETAIN_SOURCE = "dsh-plugin-core";
|
|
62641
62712
|
/** 投影面缺席时的稳定空快照:能力缺席按 undefined 呈现,不编造数据。 */
|
|
@@ -63561,9 +63632,8 @@ body[data-ds-dark-theme]{
|
|
|
63561
63632
|
.dtl-roster__uuid{flex:none;font-size:var(--dtl-font-xs);line-height:var(--dtl-line-sm);
|
|
63562
63633
|
color:var(--dtl-fg-3);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
|
|
63563
63634
|
white-space:nowrap;}
|
|
63564
|
-
/*
|
|
63565
|
-
|
|
63566
|
-
.dtl-modal__foot{display:flex;align-items:center;gap:var(--dtl-space-3);width:100%;}
|
|
63635
|
+
/* 弹窗页脚左侧的进行中骨架(删除要逐本台账走网络,慢);右边是「创建新用户」组合框,
|
|
63636
|
+
两块都是核心 foot 的直接子项,组合框靠 style 里的 margin-left:auto 贴右。 */
|
|
63567
63637
|
.dtl-modal__busy{flex:none;display:flex;align-items:center;min-width:56px;}
|
|
63568
63638
|
/* 身份表不要表头(用户 2026-11-02):核心 Table 没有「隐藏表头」的档,只能把 thead 藏掉 */
|
|
63569
63639
|
.dtl-users-table thead{display:none;}
|
|
@@ -64726,8 +64796,7 @@ body[data-ds-dark-theme]{
|
|
|
64726
64796
|
display: "flex",
|
|
64727
64797
|
alignItems: "center",
|
|
64728
64798
|
justifyContent: "flex-end",
|
|
64729
|
-
gap: "8px"
|
|
64730
|
-
width: "100%"
|
|
64799
|
+
gap: "8px"
|
|
64731
64800
|
} }, (0, react$1.createElement)(Button, {
|
|
64732
64801
|
variant: "outline",
|
|
64733
64802
|
size: "lg",
|
|
@@ -65518,21 +65587,8 @@ body[data-ds-dark-theme]{
|
|
|
65518
65587
|
onClose: props.busy || locked ? void 0 : props.onClose,
|
|
65519
65588
|
closeOnMask: !props.busy && !locked,
|
|
65520
65589
|
escClose: !props.busy && !locked,
|
|
65521
|
-
|
|
65522
|
-
|
|
65523
|
-
justifyContent: "flex-end",
|
|
65524
|
-
alignItems: "center",
|
|
65525
|
-
gap: "var(--dtl-space-2)",
|
|
65526
|
-
width: "100%"
|
|
65527
|
-
} }, props.notice === void 0 ? null : (0, react$1.createElement)("span", { style: {
|
|
65528
|
-
marginRight: "auto",
|
|
65529
|
-
maxWidth: "220px",
|
|
65530
|
-
overflow: "hidden",
|
|
65531
|
-
textOverflow: "ellipsis",
|
|
65532
|
-
whiteSpace: "nowrap",
|
|
65533
|
-
color: "var(--dtl-fg-3)",
|
|
65534
|
-
fontSize: "var(--dtl-font-sm)"
|
|
65535
|
-
} }, props.notice), locked && props.onShowSession !== void 0 ? (0, react$1.createElement)("div", { style: { marginRight: "auto" } }, (0, react$1.createElement)(Tip, {
|
|
65590
|
+
notice: props.notice,
|
|
65591
|
+
footer: (0, react$1.createElement)(react$1.Fragment, null, locked && props.onShowSession !== void 0 ? (0, react$1.createElement)("div", { style: { marginRight: "auto" } }, (0, react$1.createElement)(Tip, {
|
|
65536
65592
|
label: t("tipViewSession"),
|
|
65537
65593
|
children: (0, react$1.createElement)(Button, {
|
|
65538
65594
|
variant: "ghost",
|
|
@@ -65543,7 +65599,12 @@ body[data-ds-dark-theme]{
|
|
|
65543
65599
|
}),
|
|
65544
65600
|
onClick: props.onShowSession
|
|
65545
65601
|
}, t("closeViewSession"))
|
|
65546
|
-
})) : null, (0, react$1.createElement)(
|
|
65602
|
+
})) : null, (0, react$1.createElement)("div", { style: {
|
|
65603
|
+
display: "flex",
|
|
65604
|
+
justifyContent: "flex-end",
|
|
65605
|
+
alignItems: "center",
|
|
65606
|
+
gap: "var(--dtl-space-2)"
|
|
65607
|
+
} }, (0, react$1.createElement)(Button, {
|
|
65547
65608
|
variant: "outline",
|
|
65548
65609
|
size: "lg",
|
|
65549
65610
|
disabled: props.busy || locked,
|
|
@@ -65555,7 +65616,7 @@ body[data-ds-dark-theme]{
|
|
|
65555
65616
|
loadingText: false,
|
|
65556
65617
|
disabled: submitBlocked || locked,
|
|
65557
65618
|
onClick: submit
|
|
65558
|
-
}, useAgent ? t("closeModalOkAgent") : t("closeModalOkManual")))
|
|
65619
|
+
}, useAgent ? t("closeModalOkAgent") : t("closeModalOkManual"))))
|
|
65559
65620
|
}, (0, react$1.createElement)("div", { style: {
|
|
65560
65621
|
display: "flex",
|
|
65561
65622
|
flexDirection: "column",
|
|
@@ -67294,7 +67355,7 @@ body[data-ds-dark-theme]{
|
|
|
67294
67355
|
onClose: () => {
|
|
67295
67356
|
if (pending === null) setUserOpen(false);
|
|
67296
67357
|
},
|
|
67297
|
-
footer: (0, react$1.createElement)(
|
|
67358
|
+
footer: (0, react$1.createElement)(react$1.Fragment, null, (0, react$1.createElement)("div", { className: "dtl-modal__busy" }, pending === null ? null : (0, react$1.createElement)(Loader, {
|
|
67298
67359
|
variant: "blocks",
|
|
67299
67360
|
size: "lg"
|
|
67300
67361
|
})), (0, react$1.createElement)(InputGroup, {
|
|
@@ -67929,7 +67990,7 @@ body[data-ds-dark-theme]{
|
|
|
67929
67990
|
variant: "outline",
|
|
67930
67991
|
size: "md",
|
|
67931
67992
|
onClick: onBack
|
|
67932
|
-
}, `← ${t("backToConversation")}`), (0, react$1.createElement)("div", { style: titleStyle }, t("panelTitle"), (0, react$1.createElement)("span", { style: buildTagStyle }, `v0.
|
|
67993
|
+
}, `← ${t("backToConversation")}`), (0, react$1.createElement)("div", { style: titleStyle }, t("panelTitle"), (0, react$1.createElement)("span", { style: buildTagStyle }, `v0.1.2 261105-212641-463`))), (0, react$1.createElement)("div", { style: {
|
|
67933
67994
|
display: "flex",
|
|
67934
67995
|
alignItems: "center",
|
|
67935
67996
|
gap: "var(--dtl-space-3)"
|