KeNan2025/inkstone ↗★ 0

dsh-inkstone

Inkstone — sync a local LaTeX project to CSTCloud Overleaf, compile it there, and return diagnostics for the agent to fix. No local TeX required. 本地起笔,云端成书。

套件
dsh-inkstone
相容性
待驗證
Harness 依賴範圍
>=0.2.1-rc.2
版本
1.0.0
授權
MIT
最近更新
2026年11月3日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:KeNan2025/inkstone

第一次使用

1. 接入云端

latex.cstcloud.cn 使用 CSTCloud 统一身份认证(SSO)。这类账号通常没有本地密码(重置密码页面会提示 your group or organization uses SSO),所以插件复用浏览器的登录态:

  1. 浏览器打开 ,确认已登录
  2. F12 → Application → Cookies → https://latex.cstcloud.cn
  3. 找到 overleaf.sid,双击 Value 全选复制
  4. 粘贴进面板,点「保存并验证」

只复制 Value、整行 overleaf.sid=…、或带属性的完整行都可以。保存前插件会真实访问一次站点验证,失效当场报错,不会覆盖原来能用的那份。

Cookie 只保存在本机 DSH 进程(credentials 服务,或 ~/.dsh/overleaf-workbench/session.json,权限 0600)。不回传浏览器,不写进对话记录。有效期约 5 天。

2. 选材并研墨

  1. 选择 LaTeX 项目文件夹(可用「浏览…」,或从已打开的工作区里选)
  2. 面板会显示识别到的文件数、体积与主文件
  3. 点「同步并编译」,等待约一分钟

主文件(main.tex 优先)与编译器(XeLaTeX)由插件自动识别,不需要手动设置。

3. 看结果

成功:显示「编译成功」、用时、远端项目名,并可「在 Overleaf 打开」。

失败:按类型列出错误,例如

ERROR     ! Undefined control sequence.
          ctx: l.113  \setCJKmainfont {SimSun}[AutoFakeBold=3,ItalicFont=KaiTi]
WARNING   LaTeX Warning: There were undefined references.

把这份诊断交给 DSH 里的智能体,它会改源文件;改完再点一次「同步并编译」。