Rebrand as dsh-im-ops fork of xmanrui/dsh-im@4.9.1.

Keep all IM channels; rename package/cordis id for local profile install without colliding with the community plugin. Document fork intent in FORK.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-05 15:02:54 +08:00
parent 965e839457
commit d53daf7d26
18 changed files with 70 additions and 28 deletions

View file

@ -6,7 +6,7 @@ import { fileURLToPath } from 'node:url';
import semver from 'semver';
export const PACKAGE_NAME = '@xmanrui/dsh-im';
export const PACKAGE_NAME = 'dsh-im-ops';
export const NPM_REGISTRY = 'https://registry.npmjs.org/';
const INSTALL_TIMEOUT_MS = 15 * 60_000;

View file

@ -51,7 +51,7 @@ export async function fetchNpmRelease(fetchImpl = globalThis.fetch, timeoutMs =
const integrity = value.dist?.integrity;
if (tarball.origin !== new URL(NPM_REGISTRY).origin || tarball.username || tarball.password
|| tarball.search || tarball.hash
|| tarball.pathname !== `/@xmanrui/dsh-im/-/dsh-im-${version}.tgz`
|| tarball.pathname !== `/dsh-im-ops/-/dsh-im-${version}.tgz`
|| typeof integrity !== 'string' || !/^sha512-[A-Za-z0-9+/]{86}==$/.test(integrity)) {
throw updateError('invalid-release');
}