mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-08 22:00:50 +08:00
Fix client ModuleLoader id to dsh-im-ops after package rename.
GitHub installs still shipped the upstream @xmanrui/dsh-im client id, so the web shell loaded the bundle without registering the plugin. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d53daf7d26
commit
d10a941fc8
2 changed files with 24 additions and 25 deletions
|
|
@ -1,5 +1,5 @@
|
|||
window.__ModuleLoader__.load({
|
||||
id: "@xmanrui/dsh-im",
|
||||
id: "dsh-im-ops",
|
||||
factory: (require) => {
|
||||
var module = { exports: {} };
|
||||
var exports = module.exports;
|
||||
|
|
@ -570,9 +570,9 @@ var React23 = __toESM(require("react"), 1);
|
|||
|
||||
// package.json
|
||||
var package_default = {
|
||||
name: "@xmanrui/dsh-im",
|
||||
version: "4.9.1",
|
||||
description: "\u628A\u4E5D\u79CD IM \u673A\u5668\u4EBA\u548C\u516C\u7F51 AI Office \u63A5\u5165\u672C\u673A DeepSeek Harness\u3002 Connect nine IM channels and a public AI Office to a local DeepSeek Harness.",
|
||||
name: "dsh-im-ops",
|
||||
version: "4.9.1-ops.0",
|
||||
description: "Ops fork of dsh-im (all channels kept). Based on @xmanrui/dsh-im@4.9.1 \u2014 access/session policies owned here.",
|
||||
keywords: [
|
||||
"deepseek-harness",
|
||||
"dsh",
|
||||
|
|
@ -591,7 +591,9 @@ var package_default = {
|
|||
"telegram",
|
||||
"discord",
|
||||
"whatsapp",
|
||||
"ai-office"
|
||||
"ai-office",
|
||||
"ops",
|
||||
"fork"
|
||||
],
|
||||
author: "xmanrui (https://github.com/xmanrui)",
|
||||
contributors: [
|
||||
|
|
@ -612,14 +614,11 @@ var package_default = {
|
|||
type: "module",
|
||||
repository: {
|
||||
type: "git",
|
||||
url: "git+https://github.com/xmanrui/dsh-im.git"
|
||||
url: "git+https://github.com/hansjone/dsh-im-ops.git"
|
||||
},
|
||||
homepage: "https://github.com/xmanrui/dsh-im#readme",
|
||||
homepage: "https://github.com/hansjone/dsh-im-ops#readme",
|
||||
bugs: {
|
||||
url: "https://github.com/xmanrui/dsh-im/issues"
|
||||
},
|
||||
publishConfig: {
|
||||
access: "public"
|
||||
url: "https://github.com/hansjone/dsh-im-ops/issues"
|
||||
},
|
||||
bin: {
|
||||
"dsh-im": "bin/dsh-im.mjs"
|
||||
|
|
@ -3756,7 +3755,7 @@ function installDingtalkStyles() {
|
|||
if (existing) return () => {
|
||||
};
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = DINGTALK_STYLE_ID;
|
||||
style.textContent = CSS;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -5328,7 +5327,7 @@ function installDiscordStyles() {
|
|||
if (existing) return () => {
|
||||
};
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = DISCORD_STYLE_ID;
|
||||
style.textContent = CSS2;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -7709,7 +7708,7 @@ function installFeishuStyles() {
|
|||
};
|
||||
}
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = FEISHU_STYLE_ID;
|
||||
style.textContent = CSS3;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -7871,7 +7870,7 @@ function installQqStyles() {
|
|||
if (existing) return () => {
|
||||
};
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = QQ_STYLE_ID;
|
||||
style.textContent = CSS4;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -8928,7 +8927,7 @@ function installSlackStyles() {
|
|||
if (existing) return () => {
|
||||
};
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = SLACK_STYLE_ID;
|
||||
style.textContent = CSS6;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -9099,7 +9098,7 @@ function installTelegramStyles() {
|
|||
if (existing) return () => {
|
||||
};
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = TELEGRAM_STYLE_ID;
|
||||
style.textContent = CSS7;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -9266,7 +9265,7 @@ function installWecomStyles() {
|
|||
if (existing) return () => {
|
||||
};
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = WECOM_STYLE_ID;
|
||||
style.textContent = CSS8;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -11018,7 +11017,7 @@ function installWeixinStyles() {
|
|||
if (existing) return () => {
|
||||
};
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = WEIXIN_STYLE_ID;
|
||||
style.textContent = CSS9;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -11162,7 +11161,7 @@ function installWhatsappStyles() {
|
|||
if (existing) return () => {
|
||||
};
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = WHATSAPP_STYLE_ID;
|
||||
style.textContent = CSS10;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -13629,7 +13628,7 @@ function installImStyles() {
|
|||
if (existing) return () => {
|
||||
};
|
||||
const style = document.createElement("style");
|
||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
||||
style.dataset.plugin = "dsh-im-ops";
|
||||
style.dataset.pluginCss = IM_STYLE_ID;
|
||||
style.textContent = CSS11;
|
||||
document.head.appendChild(style);
|
||||
|
|
@ -13724,7 +13723,7 @@ function manualUpdateCommand(snapshot) {
|
|||
snapshot.job?.state !== "completed" ? snapshot.job?.targetVersion : null
|
||||
].filter(validVersion);
|
||||
const version = targets.length ? [...targets, snapshot.runningVersion, snapshot.installedVersion].filter(validVersion).sort(import_rcompare.default)[0] : "latest";
|
||||
return `dsh plugin --profile ${profileArgument} add -w @xmanrui/dsh-im@${version}`;
|
||||
return `dsh plugin --profile ${profileArgument} add -w dsh-im-ops@${version}`;
|
||||
}
|
||||
function ManualUpdateCommand({ command, disabled, sourceInstall, desktop }) {
|
||||
const [copyState, setCopyState] = React22.useState("idle");
|
||||
|
|
@ -13805,7 +13804,7 @@ function ManualUpdateCommand({ command, disabled, sourceInstall, desktop }) {
|
|||
h2("path", { d: "M5 13H3.5A1.5 1.5 0 0 1 2 11.5v-8A1.5 1.5 0 0 1 3.5 2h8A1.5 1.5 0 0 1 13 3.5V5" })
|
||||
)))
|
||||
),
|
||||
command.endsWith("@xmanrui/dsh-im@latest") ? h2(
|
||||
command.endsWith("dsh-im-ops@latest") ? h2(
|
||||
"p",
|
||||
{ className: "dim-updateManualHint" },
|
||||
"\u5C1A\u672A\u786E\u8BA4\u76EE\u6807\u7248\u672C\uFF0C\u6B64\u547D\u4EE4\u5B89\u88C5\u6267\u884C\u65F6 npm \u7684 latest \u7248\u672C\u3002"
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue