Ayase34/gal-view 预览 preview

Ayase34/gal-view

把dsh会话界面切换成galgame游戏界面的插件

Project Overview项目介绍

This is a DSH-native plugin that adds a Galgame-style dialogue view and visual scene editor to the DeepSeek Harness Web GUI session page. It inserts a new "GAL View" tab between the default "Chat" and "History" tabs in the session page navigation bar. When opened, it transforms the regular session view into a 16:9 Galgame-style stage that displays character placeholders, large dialogue boxes, typewriter-animated lines, and player inputs. It also includes a built-in edit mode that lets users drag elements, adjust properties, reorder layers, and see changes reflected live in the game view.

The plugin ships with a default preset scene stored in gal-scene.json at the repository root, which embeds all referenced images and fonts. This default preset loads automatically the first time you open GAL View if you have no existing saved scene, and it is also restored when you click reset in edit mode. To update the preset after editing your scene, export the new gal-scene.json via Ctrl+S, replace the original file in the repo root, then run npm run build:client to compile the changes. All your custom scene layouts, assets, and reading progress are stored in the browser's local storage, so they won't be lost if you reinstall or uninstall the plugin.

To install the plugin, you must first have DeepSeek Harness installed and be able to run the dsh command in your terminal. You can install it directly from GitHub with a single command: dsh plugin --profile web add github:Ayase34/gal-view#main. After installation completes, you must restart DSH Web for the plugin to load, because the plugin bundle is only composed during startup. You can also update to the latest version or uninstall the plugin via simple dsh commands, and both operations require a restart of DSH Web to take effect.

这是一款专为 DeepSeek Harness (DSH) Web GUI 开发的原生插件,为会话页面添加了 Galgame 风格的对话视图和场景元素可视化编辑器。它在原有的「对话」「轨迹」标签栏中间插入了「GAL视窗」标签,点击后将会话窗口切换为16:9的Galgame舞台,支持占位立绘、大对话框、台词打字机效果和玩家输入展示。内置编辑模式支持像场景编辑器一样拖拽元素、修改属性、调整图层,编辑结果会实时同步到游戏视图。

插件自带默认预设场景gal-scene.json,内嵌引用的图片和字体,首次打开GAL视窗且无本地存档时会自动加载,编辑模式点击重置也会回到该预设。用户修改场景后可以按Ctrl+S导出文件,替换仓库根目录的原有文件后重新编译即可更新预设。所有场景布局、素材和阅读进度都保存在浏览器本地存储中,重装或卸载插件不会丢失数据。

安装需要先安装好DeepSeek Harness并能在终端执行dsh命令,通过一行dsh插件命令即可安装到web配置文件,安装完成后重启DSH Web即可生效。支持更新、卸载操作,操作后都需要重启Web才能生效。如果从源码开发,需要安装pnpm依赖,可运行单测、编译客户端产物、执行冒烟测试验证。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Ayase34/gal-view#main

把 Ayase34/gal-view 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

gal-view · GAL 视窗

English | 中文

DSH Web GUI 会话页的 Galgame 风格对话视图 + 场景元素可视化编辑器(官方 bundle 插件格式)。

在会话标签页栏(「对话」/「轨迹」)中间加入 「GAL视窗」 标签,点开之后会话视窗变成 16:9 Galgame 舞台:占位立绘、大对话框、打字机台词、玩家输入;内置「编辑模式」可像场景 编辑器一样拖拽/改属性/换图层,编辑结果实时同步回游戏模式。

image.png

默认预设

仓库根 gal-scene.json 是随包分发的默认预设场景(编辑器导出的格式,内嵌被引用的图片/字体):首次打开「GAL视窗」且本地没有存档场景时自动加载,编辑模式的「重置」也回到该预设。更新预设:编辑场景 → Ctrl+S 导出 → 用导出的 gal-scene.json 替换仓库根同名文件 → npm run build:client 并提交。

安装

本插件以官方 bundle 格式分发,用一条 dsh plugin 命令安装到 web profile,装完重启 web 即可生效。

前置条件

  • 已安装 DeepSeek Harness,并且能在终端执行 dsh 命令
  • 如果你是从源码 checkout 运行 Harness(日常命令是 pnpm dsh):先 cd 到 Harness 仓库根目录,再把下面的 dsh 全部替换为 pnpm dsh

从 GitHub 安装(一行命令)

dsh plugin --profile web add github:Ayase34/gal-view#main

#main 表示使用仓库的 main 分支;想锁定某个具体版本,可以换成提交哈希,例如 #ae73dca。

完成安装

安装后重启 web(bundle 层在启动时合成,必须重启才会加载插件)。重启后打开 Web GUI 的会话页,标签栏应出现 「GAL视窗」 标签(位于「对话」和「轨迹」之间)。

可选验证:执行 dsh --profile web --dump-config,输出中应能看到 # == gal-view 这一层,说明插件层已进入组合。

更新到新版本

dsh plugin --profile web update gal-view
# 更新后同样要重启 web

卸载

dsh plugin --profile web remove gal-view
# 卸载后同样要重启 web

说明:场景布局、素材图片、字体与阅读进度都保存在你的浏览器里(localStorage / IndexedDB),重装或卸载插件不会丢失;清除浏览器站点数据才会重置它们。

开发

pnpm install            # 安装 esbuild devDependency
npm test                # 纯逻辑单测(node:test,同进程运行)
npm run build:client    # 生成 .dsh-plugin/client.js(生成物勿手改)
npm run check:client    # 校验 client.js 新鲜度
npm run smoke           # Playwright 冒烟(需 DSH_CHECKOUT 指向 dsh checkout)

结构

.dsh-plugin/index.mjs     Node half(极简,无宿主行为)
.dsh-plugin/client/       client 源码:场景模型/打字机/转录映射/组件/样式
.dsh-plugin/client.js     构建产物(scripts/build-client.mjs 生成)
scripts/build-client.mjs  esbuild 构建器(--check 守护新鲜度)
tests/                    纯逻辑单测(node:test)
← 上一个 Prev dsh-oil-creator 下一个 Next engramory →