mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-19 14:13:21 +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({
|
window.__ModuleLoader__.load({
|
||||||
id: "@xmanrui/dsh-im",
|
id: "dsh-im-ops",
|
||||||
factory: (require) => {
|
factory: (require) => {
|
||||||
var module = { exports: {} };
|
var module = { exports: {} };
|
||||||
var exports = module.exports;
|
var exports = module.exports;
|
||||||
|
|
@ -570,9 +570,9 @@ var React23 = __toESM(require("react"), 1);
|
||||||
|
|
||||||
// package.json
|
// package.json
|
||||||
var package_default = {
|
var package_default = {
|
||||||
name: "@xmanrui/dsh-im",
|
name: "dsh-im-ops",
|
||||||
version: "4.9.1",
|
version: "4.9.1-ops.0",
|
||||||
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.",
|
description: "Ops fork of dsh-im (all channels kept). Based on @xmanrui/dsh-im@4.9.1 \u2014 access/session policies owned here.",
|
||||||
keywords: [
|
keywords: [
|
||||||
"deepseek-harness",
|
"deepseek-harness",
|
||||||
"dsh",
|
"dsh",
|
||||||
|
|
@ -591,7 +591,9 @@ var package_default = {
|
||||||
"telegram",
|
"telegram",
|
||||||
"discord",
|
"discord",
|
||||||
"whatsapp",
|
"whatsapp",
|
||||||
"ai-office"
|
"ai-office",
|
||||||
|
"ops",
|
||||||
|
"fork"
|
||||||
],
|
],
|
||||||
author: "xmanrui (https://github.com/xmanrui)",
|
author: "xmanrui (https://github.com/xmanrui)",
|
||||||
contributors: [
|
contributors: [
|
||||||
|
|
@ -612,14 +614,11 @@ var package_default = {
|
||||||
type: "module",
|
type: "module",
|
||||||
repository: {
|
repository: {
|
||||||
type: "git",
|
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: {
|
bugs: {
|
||||||
url: "https://github.com/xmanrui/dsh-im/issues"
|
url: "https://github.com/hansjone/dsh-im-ops/issues"
|
||||||
},
|
|
||||||
publishConfig: {
|
|
||||||
access: "public"
|
|
||||||
},
|
},
|
||||||
bin: {
|
bin: {
|
||||||
"dsh-im": "bin/dsh-im.mjs"
|
"dsh-im": "bin/dsh-im.mjs"
|
||||||
|
|
@ -3756,7 +3755,7 @@ function installDingtalkStyles() {
|
||||||
if (existing) return () => {
|
if (existing) return () => {
|
||||||
};
|
};
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = DINGTALK_STYLE_ID;
|
style.dataset.pluginCss = DINGTALK_STYLE_ID;
|
||||||
style.textContent = CSS;
|
style.textContent = CSS;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -5328,7 +5327,7 @@ function installDiscordStyles() {
|
||||||
if (existing) return () => {
|
if (existing) return () => {
|
||||||
};
|
};
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = DISCORD_STYLE_ID;
|
style.dataset.pluginCss = DISCORD_STYLE_ID;
|
||||||
style.textContent = CSS2;
|
style.textContent = CSS2;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -7709,7 +7708,7 @@ function installFeishuStyles() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = FEISHU_STYLE_ID;
|
style.dataset.pluginCss = FEISHU_STYLE_ID;
|
||||||
style.textContent = CSS3;
|
style.textContent = CSS3;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -7871,7 +7870,7 @@ function installQqStyles() {
|
||||||
if (existing) return () => {
|
if (existing) return () => {
|
||||||
};
|
};
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = QQ_STYLE_ID;
|
style.dataset.pluginCss = QQ_STYLE_ID;
|
||||||
style.textContent = CSS4;
|
style.textContent = CSS4;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -8928,7 +8927,7 @@ function installSlackStyles() {
|
||||||
if (existing) return () => {
|
if (existing) return () => {
|
||||||
};
|
};
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = SLACK_STYLE_ID;
|
style.dataset.pluginCss = SLACK_STYLE_ID;
|
||||||
style.textContent = CSS6;
|
style.textContent = CSS6;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -9099,7 +9098,7 @@ function installTelegramStyles() {
|
||||||
if (existing) return () => {
|
if (existing) return () => {
|
||||||
};
|
};
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = TELEGRAM_STYLE_ID;
|
style.dataset.pluginCss = TELEGRAM_STYLE_ID;
|
||||||
style.textContent = CSS7;
|
style.textContent = CSS7;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -9266,7 +9265,7 @@ function installWecomStyles() {
|
||||||
if (existing) return () => {
|
if (existing) return () => {
|
||||||
};
|
};
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = WECOM_STYLE_ID;
|
style.dataset.pluginCss = WECOM_STYLE_ID;
|
||||||
style.textContent = CSS8;
|
style.textContent = CSS8;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -11018,7 +11017,7 @@ function installWeixinStyles() {
|
||||||
if (existing) return () => {
|
if (existing) return () => {
|
||||||
};
|
};
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = WEIXIN_STYLE_ID;
|
style.dataset.pluginCss = WEIXIN_STYLE_ID;
|
||||||
style.textContent = CSS9;
|
style.textContent = CSS9;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -11162,7 +11161,7 @@ function installWhatsappStyles() {
|
||||||
if (existing) return () => {
|
if (existing) return () => {
|
||||||
};
|
};
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = WHATSAPP_STYLE_ID;
|
style.dataset.pluginCss = WHATSAPP_STYLE_ID;
|
||||||
style.textContent = CSS10;
|
style.textContent = CSS10;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -13629,7 +13628,7 @@ function installImStyles() {
|
||||||
if (existing) return () => {
|
if (existing) return () => {
|
||||||
};
|
};
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
style.dataset.plugin = "@xmanrui/dsh-im";
|
style.dataset.plugin = "dsh-im-ops";
|
||||||
style.dataset.pluginCss = IM_STYLE_ID;
|
style.dataset.pluginCss = IM_STYLE_ID;
|
||||||
style.textContent = CSS11;
|
style.textContent = CSS11;
|
||||||
document.head.appendChild(style);
|
document.head.appendChild(style);
|
||||||
|
|
@ -13724,7 +13723,7 @@ function manualUpdateCommand(snapshot) {
|
||||||
snapshot.job?.state !== "completed" ? snapshot.job?.targetVersion : null
|
snapshot.job?.state !== "completed" ? snapshot.job?.targetVersion : null
|
||||||
].filter(validVersion);
|
].filter(validVersion);
|
||||||
const version = targets.length ? [...targets, snapshot.runningVersion, snapshot.installedVersion].filter(validVersion).sort(import_rcompare.default)[0] : "latest";
|
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 }) {
|
function ManualUpdateCommand({ command, disabled, sourceInstall, desktop }) {
|
||||||
const [copyState, setCopyState] = React22.useState("idle");
|
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" })
|
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",
|
"p",
|
||||||
{ className: "dim-updateManualHint" },
|
{ 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"
|
"\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