🎁 福利专区全网大模型免费应用 + 新用户福利 + 注册活动入口,低成本玩转 AI

消息宽度调节 chen-001/dsh-chat-width

DeepSeek Harness
chen-00182 天前有提交已提供中文文档扫描:未发现敏感能力

拖动输入框边缘调整回复宽度,双击恢复默认

33.2/100
综合分
6
GitHub 星标
—
npm 周下载
—/5
用户评分

数据截至 2026/9/17 · 周下载取自 npm 全网(含 CI / 镜像),非本站安装数;综合分由星标、活跃度与兼容性检查合成。

该插件未发布到 npm,按作者文档从 GitHub 源安装即可(静态检查只覆盖 npm 路径,不代表插件不可用)。
安装命令 · 需先装 dsh CLI 引擎
dsh plugin --profile web add chen-001/dsh-chat-width
该包不可直接 npm 安装,改从 GitHub 源安装(明细见下方安装检查)

状态速览

判定依据:实装验证 · 静态安装检查 · 自动扫描 · 仓库维护状态
信任档位:已验证
是什么
dsh 原生插件 · chat
装得上吗
本站已在 dsh 0.2.1-rc.2 下真实安装成功
非静态推断
L4 · 真实安装等级说明 →
安全吗
本站尚未对该插件做风险分级
暂未覆盖,不等同于无风险
还在维护吗
更新放缓:最近一次提交在 82 天前
档位由哪些信号合成

本站实装验证(真实安装 L4 覆盖全站;L5 为运行时冒烟或实机截图,覆盖范围小于 L4) · 验证所用 dsh 版本 · 静态安装检查 · 风险分级 · 仓库维护状态。 下方各区块是它的证据明细。

验证判据与等级说明 →
社区实装还没有人打卡 · 装过的第一个就是你
安装兼容性检查需源码安装

仓库 package.json 标记 private,未发布到 npm,需从源码安装

展开查看检查明细 ↓

以下结论由程序自动检查 npm 包、engines 声明与入口文件得出,未做人工实机验证——能装不等于用着没问题。

✗npm 包@chen-001/dsh-chat-width(未发布到 npm,仅可源码安装)
✓Node 引擎未声明 engines.node
✓dsh CLI 依赖未声明 dsh 版本约束
✓入口文件main/exports/bin 已声明

源码安装时若 pnpm 拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑。

验证方式:npm registry 存在性 + package.json 静态校验 · 最后检查 2026/10/17 10:24:11

安全扫描自动 · 静态分析源码
v2.7.0
🟢 扫描:未发现敏感能力尚无人工评估
展开查看扫描说明与证据 ↓

静态扫描未发现敏感能力:最多只发网络请求、读取自身元数据或只读文件,未发现执行命令、文件写入或敏感信息读取。

扫描于 2026/11/3(0 天前) · 范围 入口闭包 + 发布文件清单 · 来源 GitHub 仓库

静态扫描只反映源码中出现的调用,不构成安全背书;人工评估与自动扫描相互独立、互不覆盖。

依赖的 DSH / Cordis 模块
@deepseek-ai/dsh-client-locale@deepseek-ai/dsh-client-runtime@deepseek-ai/dsh-client-ui-slots@deepseek-ai/cordis
给这个插件打分还没有人投票↓
用户评分
还没有人投票,来当第一个

界面预览

2 张 · 点击查看大图

功能亮点

  • 拖动边缘调整回复宽度
  • 双击恢复默认宽度

调整 dsh 回复的宽度。

README

由 DeepSeek 最新模型翻译生成
dsh-chat-width 中 / EN:DSH Web 消息宽度调节插件 —— AI 回复的消息列固定宽度、屏幕再宽也是左右留白,本插件让你拖动即可调整展示宽度。 A DSH Web plugin for adjusting the message column width: AI replies render in a fixed-width centered column with empty gutters on wide screens — drag to resize. 项目概览 / Project Overview 插件介绍 / Plugin Introduction 简介 / Introduction 中:chat-width 是 DSH Web 的一个客户端插件(纯浏览器侧),解决 AI 回复消息列固定宽度导致"表格要左右滑动、一屏信息量少、不便截图"的痛点——让用户拖动即可调整消息展示宽度。
展开完整文档(README 剩余 1 节)
dsh-chat-width

中 / EN:DSH Web 消息宽度调节插件 —— AI 回复的消息列固定宽度、屏幕再宽也是左右留白,本插件让你拖动即可调整展示宽度。
A DSH Web plugin for adjusting the message column width: AI replies render in a fixed-width centered column with empty gutters on wide screens — drag to resize.

项目概览 / Project Overview 插件介绍 / Plugin Introduction

简介 / Introduction

中:chat-width 是 DSH Web 的一个客户端插件(纯浏览器侧),解决 AI 回复消息列固定宽度导致"表格要左右滑动、一屏信息量少、不便截图"的痛点——让用户拖动即可调整消息展示宽度。

EN: chat-width is a client-side plugin (browser-only) for DSH Web. It solves the pain of a fixed-width message column — wide tables need horizontal scrolling, one screen shows too little information, and screenshots are hard to compose — by letting you drag to resize the message column.

原本的痛点 / The Original Pain Points

| 中文 | English |
| 很多表格需要左右滑动才能看到完整信息 | Many tables need horizontal scrolling to show their full content |
| 一个屏幕下显示的信息量不够多,不方便截图 | A single screen shows too little information to fit into one screenshot |

用法 / Usage

中:鼠标移到输入框左右边缘(出现竖线),按住左右拖动即可调宽——手柄虽在输入框两侧,但调整的是正文消息的宽度,正文会同步变宽/变窄。双击恢复默认。

EN: Move the mouse to either edge of the input box (a vertical line appears), press and drag left/right to resize — the grips sit on the input box, but they resize the message column, so the conversation content follows. Double-click to restore the default.

核心功能 / Core Features

| 功能 / Feature | 说明 / Description |
| 拖动手柄调宽 / Drag grips | 输入框左右边缘出现手柄,拖动即调整正文消息列宽度(手柄在输入框两侧,调的却是消息列)Grips appear on the input box edges; dragging resizes the message column (the grips sit on the input box, but resize the column) |
| 双击恢复默认 / Double-click reset | 双击手柄恢复官方默认宽度Double-click a grip to restore the official default width |
| 设置页预设 / Presets in settings | 紧凑 640 / 宽 960 / 超宽 1280 三个预设(8px 步进,320–2560px 范围)Three presets: Compact 640 / Wide 960 / Ultra 1280 (8px step, 320–2560px range) |
| 自定义输入 / Custom input | 设置页可手动输入任意像素值,非法输入自动钳制/拒绝Type any pixel value in the settings page; invalid input is clamped or rejected |
| 持久化 / Persistence | localStorage 持久化;拖动时 300ms 节流写入,操作结束立即写入Persisted via localStorage; writes are throttled at 300ms while dragging and flushed immediately on release |
| 会话内即时生效 / Live effect | 宽度实时作用于文档样式表,无需刷新页面Width applies to the live stylesheets instantly — no page refresh needed |

安装 / Installation

方式一:plugin-registry(推荐,需宿主已集成 plugin-registry)

中:通过 dsh plugin 命令安装与管理,安装默认禁用、显式启用,Web 刷新后实时挂载。

EN: Install and manage via the dsh plugin command. Installed disabled by default, enabled explicitly, mounted live after a Web refresh.

sh
git clone https://github.com/chen-001/dsh-chat-width.git
cd chat-width && pnpm install && pnpm run build # 产出 client.js(registry bundle)
dsh plugin install . # 安装(默认禁用)
dsh plugin enable chen-001/dsh-chat-width # 启用(实时挂载,Web 刷新后生效)
dsh plugin list # 验证 enabled chen-001/dsh-chat-width@0.1.0

方式二:官方通道(config.yaml insert,未集成 registry 时用)

中:一键安装脚本自动装入 DSH 并写入配置。

EN:一键安装脚本将插件链接到 DSH 并写入配置。
sh
git clone https://github.com/chen-001/dsh-chat-width.git
sh chat-width/install.sh # 自动装入 DSH 并写入配置

重启 dsh web 生效。

中:私有仓库,仅限 chen-001 组织成员使用。
EN:私有仓库,仅限 chen-001 组织成员使用。

两种分发形态

| 形态 | 清单 | bundle | 管理 |
| registry 插件 | dsh.plugin.json(id: chen-001/dsh-chat-width) | 根目录 client.js(banner id = 插件 id,无 @) | dsh plugin / Web 面板,安装默认禁用、显式启用 |
| 官方包 | package.json#dshClient | lib/client.js(banner id = 包名 @chen-001/dsh-chat-width) | config.yaml insert + pnpm link |

中:两者是同一功能的两种发布形态,bundle 各自构建、互不影响;registry 通道启用后请从 config.yaml 移除旧 insert 行,避免双份注册。

EN:两者是同一功能的两种发布形态;各自的 bundle 独立构建,互不影响。启用 registry 通道后,请从 config.yaml 中移除旧的 insert 行,以避免重复注册。

技术实现要点

| 要点 | 说明 |
| 零核心改动 | 不动 DSH 内核,仅操作文档样式表 + 插槽注册,配置即安装 |
| 手柄定位“实测不假设” | 手柄钉在输入卡([data-composer-seat])边缘,通过 --dsh-composer-card-max-width 的 live var() probe 实测宽度;无卡片时回退到滚动区中心公式并钳制 |
| 可见性声明式 | body:has([data-conversation-scroll]) + hover 透明度:仅聊天渲染时存在手柄、悬停才显示,页面上无永久竖线 |
| 布局漂移跟随 | window resize + MutationObserver(rAF 合并)重定位手柄,覆盖切会话/折叠侧栏等场景 |
| Cordis 语义正确 / Correct Cordis semantics | ctx.effect 返回 disposer 闭包,保证手柄生命周期与插件一致、卸载时正确清理ctx.effect returns a disposer closure so handle lifetime matches the plugin and cleanup is correct on unload |
| 单源数据流 / Single source of truth | 所有宽度写入经同一处理器 → 持久化 + 引擎 + store,store 是设置行的唯一渲染源All width writes flow through one handler → persistence + engine + store; the store is the only render source |

工程脚本与状态 / Scripts & Status

| 项 / Item | 内容 / Content |
| pnpm run build | tsdown 构建两种 bundle / builds both bundles |
| pnpm run typecheck | tsc 类型检查 / TypeScript type check |
| pnpm run test | vitest 全量单测 / full unit test suite (vitest) |
| Git | 15 个提交,最新:0.1.0 npm 发版就绪;工作区干净 / 15 commits, latest: 0.1.0 npm release-ready; clean worktree |
| 依赖 / Dependencies | peer 对齐 deepseek-ai 官方生态:dsh-client-runtime / locale / ui-slots + cordis + react 18(dev 依赖 link 到 ~/.dsh/source/current 快照)peers aligned with the official deepseek-ai ecosystem: dsh-client-runtime / locale / ui-slots + cordis + react 18 (dev deps link to the ~/.dsh/source/current snapshot) |

一句话总结 / One-line Summary

中:这是一个"配置即安装、零内核改动"的 DSH Web 前端体验增强插件,用拖动手柄 + 设置页预设/自定义 + localStorage 持久化,解决消息列过窄的阅读与截图痛点,并同时支持 plugin-registry 与官方通道两种分发方式。

EN:一个"配置即安装、零内核改动"的 DSH Web 用户体验增强插件,通过拖动手柄 + 设置预设/自定义输入 + localStorage 持久化,修复窄列阅读与截图痛点,并通过 plugin-registry 和官方通道两种方式分发。
预览分享卡片长什么样 ↓chen-001/dsh-chat-width
分享 · DeepSeek Harness Hub
chen-001/dsh-chat-width

拖动输入框边缘调整回复宽度,双击恢复默认

这是你的仓库?认领条目

回到顶部