DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

PCML-Z /

PCML-Z/pmcl-dsh

Verified

DeepSeek Harness plugin for the PMCL launcher

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@74ab553f

pmcl-dsh

PMCL 启动器的 DeepSeek Harness 插件。它调用本机的 PMCL CLI,让会话可以查看版本、模组、存档和账号;安装、改设置和启动默认关闭,要在 profile 里单独打开。

这个仓库不包含 Minecraft,也不包含 PMCL 启动器本体。启动器源码在 PCML-Z/PCML。

安装

先做出 CLI 胖 jar,并放到插件默认会找的位置:

git clone https://github.com/PCML-Z/PCML.git
cd PCML
./gradlew :cli:jar
mkdir -p ~/.pmcl
cp cli/build/libs/cli.jar ~/.pmcl/pmcl-cli.jar

再把插件装进 DeepSeek Harness 的 profile:

dsh plugin --profile web add github:PCML-Z/pmcl-dsh

装好后重启 dsh。数据目录默认是 ~/.pmcl,也就是桌面版 PMCL 用的目录。换目录可以设置插件的 workDir,或在启动 Harness 前设置 PMCL_WORKDIR。jar 不在默认位置时,设置 jar 或 PMCL_CLI_JAR。

权限

插件插入的行 id 是 pmcl。要允许启动,在 profile 自己的 cordis.patch.yml 里覆盖这一行:

- id: pmcl
  config:
    allowLaunch: true

要允许安装版本、离线登录、修改安全设置、管理模组,再加上 allowMutations: true。覆盖会整行替换 config,缺省字段仍由插件的 schema 补上。

下面这些仍留在 PMCL 窗口里做,插件不会代劳:

  • 微软设备码登录
  • 从 URL 安装插件
  • JVM 参数、Java 可执行文件路径
  • 自定义下载镜像和代理主机

工具

工具 作用
pmcl_doctor 检查 jar、数据目录和两个权限开关
pmcl_query 只读:版本、模组、存档、账号、Java、日志、配置、模组搜索
pmcl_action 写入。allowMutations 关闭时直接拒绝
pmcl_launch 启动已安装版本。进程起来后就返回,不等游戏退出

模组市场的「搜索再安装」必须在同一次 CLI 进程里完成,所以 install-mod 的参数是:搜索词、结果序号(从 1 开始)、可选游戏版本、可选加载器。例如 ["sodium", "1", "1.21.1", "fabric"]。

会话开始时会注册技能 pmcl-launcher,里面是给模型的操作顺序。

开发

npm test

English

pmcl-dsh is a DeepSeek Harness bundle for the PMCL launcher. It shells out to com.pmcl.cli.PmclCli with an argument array, never a shell string. Reads work out of the box. allowMutations and allowLaunch default to false.

dsh plugin --profile web add github:PCML-Z/pmcl-dsh

Place the CLI fat jar at ~/.pmcl/pmcl-cli.jar. The jar is built from the launcher repository with ./gradlew :cli:jar; Gradle writes cli/build/libs/cli.jar.

—/ 5

No ratings yet

Verified DSH bundle

Commit 74ab553fb896

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout