diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..1368913 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +# @deepseek-ai/* comes from the DSH Host profile, never the public registry. +auto-install-peers=false +strict-peer-dependencies=false diff --git a/FORK.md b/FORK.md index 072ec62..6e42271 100644 --- a/FORK.md +++ b/FORK.md @@ -14,20 +14,36 @@ ## 安装(替换社区 im) +### 其他电脑 / 只跑插件(推荐) + +仓库已提交 `lib/` 产物时:**不必**在插件目录执行 `pnpm install` / `npm install`。 + ```powershell -# 若已安装社区包,先从 profile 移除 @xmanrui/dsh-im -cd D:\project\chatgpt\dsh-im-ops -npm install -npm run build +# 拉代码(含 lib/)后,只让 DSH profile 安装本包的生产依赖(qqbot/wecom/…) +dsh plugin --profile web add -w "D:\path\to\dsh-im-ops" +# 或: dsh plugin --profile web add -w "github:hansjone/dsh-im-ops" -# 或本地:dsh plugin --profile web add -w "D:\project\chatgpt\dsh-im-ops" # 重启 dsh web ``` -包名:`dsh-im-ops@4.9.1-ops.3`(cordis id:`dsh-im-ops`)。 +说明:这里的 `-w` 是 pnpm 的 **workspace-root**(装到 profile 根),不是「先手动 install 插件仓库」。Host 侧 `@deepseek-ai/*` 由 DSH 提供,插件 **不得** 再声明/安装它们(公共 registry 会 404,例如 `dsh-type-meta`)。 + +### 本机改源码再发版 + +```powershell +cd D:\path\to\dsh-im-ops +pnpm install # 只装公开包:baileys/esbuild/…;不要指望能装 @deepseek-ai/* +pnpm run build # 写出 lib/ +# 再 push;或本机: +dsh plugin --profile web add -w "D:\path\to\dsh-im-ops" +``` + +若已安装社区包 `@xmanrui/dsh-im`,先从 profile 移除再 add 本 fork。 扫码态一般仍在 `~/.dsh/integrations/…`;换包后若异常,在 IM 设置里重新关联设备。 +包名:`dsh-im-ops`(cordis id:`dsh-im-ops`)。 + ## 已落地的运维改动 1. **群 Session 策略**(对齐 oclaw `user_in_chat`) diff --git a/package.json b/package.json index 6c985df..5ed94c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsh-im-ops", - "version": "4.9.1-ops.30", + "version": "4.9.1-ops.31", "description": "Ops fork of dsh-im (all channels kept). Based on @xmanrui/dsh-im@4.9.1 - access/session policies owned here.", "keywords": [ "deepseek-harness", @@ -66,6 +66,7 @@ "plugin-src", "scripts", "src", + ".npmrc", "PROACTIVE_DELIVERY.md", "PROACTIVE_DELIVERY.en.md", "LICENSE", @@ -105,7 +106,6 @@ "undici": "7.29.0" }, "devDependencies": { - "@deepseek-ai/cordis": "4.0.1", "@larksuiteoapi/node-sdk": "1.73.0", "@whiskeysockets/baileys": "7.0.0-rc14", "esbuild": "0.25.9",