Import patches/0001-fork-identity-package-name-versions-binaries-packagi.patch

This commit is contained in:
QQ 2026-11-17 09:20:04 +08:00
parent 0802913e34
commit bcd541a3f5
1 changed files with 30 additions and 30 deletions

View File

@ -1,4 +1,4 @@
From 54e22c3d13f15c9992f2107aad07ff428d98ad1b Mon Sep 17 00:00:00 2001
From a5eb3072dee2478f02c88118d0933fce245b01c8 Mon Sep 17 00:00:00 2001
From: rainow <rainow@users.noreply.github.com>
Date: Fri, 13 Nov 2026 11:45:58 +0800
Subject: [PATCH 1/3] fork: identity (package name, versions, binaries,
@ -27,7 +27,7 @@ Subject: [PATCH 1/3] fork: identity (package name, versions, binaries,
create mode 100755 scripts/sync-upstream.sh
diff --git a/cordis.patch.yml b/cordis.patch.yml
index 1aa839b..fcfd36c 100644
index 1aa839b9..fcfd36ca 100644
--- a/cordis.patch.yml
+++ b/cordis.patch.yml
@@ -6,7 +6,7 @@
@ -40,7 +40,7 @@ index 1aa839b..fcfd36c 100644
- webServer
config:
diff --git a/dsh-plugin.json b/dsh-plugin.json
index f218dec..f6c84d1 100644
index 2c457628..59ce0aa5 100644
--- a/dsh-plugin.json
+++ b/dsh-plugin.json
@@ -1,8 +1,8 @@
@ -48,10 +48,10 @@ index f218dec..f6c84d1 100644
"$schema": "https://dsh.community/schemas/dsh-plugin-0.15.json",
- "id": "com.r2049.ds-harness-remote",
- "name": "ds-harness-remote",
- "version": "0.6.4",
- "version": "0.6.5",
+ "id": "top.rainow.ds-harness-remote-fast",
+ "name": "ds-harness-remote-fast",
+ "version": "0.6.4-fast.5",
+ "version": "0.6.5-fast.1",
"manifestVersion": "0.15",
"facets": {
"host": {
@ -64,15 +64,15 @@ index f218dec..f6c84d1 100644
}
}
diff --git a/package.json b/package.json
index 9b98da5..26ba47c 100644
index 55ba501d..cd9981df 100644
--- a/package.json
+++ b/package.json
@@ -1,31 +1,30 @@
{
- "name": "ds-harness-remote",
- "version": "0.6.4",
- "version": "0.6.5",
+ "name": "ds-harness-remote-fast",
+ "version": "0.6.4-fast.5",
+ "version": "0.6.5-fast.1",
"description": "P2P-based, end-to-end encrypted remote access to DeepSeek Harness, CodeX, Claude Code, Pi, and other workspaces from web and mobile clients.",
"keywords": [
"deepseek",
@ -110,7 +110,7 @@ similarity index 100%
rename from packages/plugin/bin/ds-harness-remote.js
rename to packages/plugin/bin/ds-harness-remote-fast.js
diff --git a/packages/plugin/cordis.patch.yml b/packages/plugin/cordis.patch.yml
index a5e00d0..81806ae 100644
index a5e00d0b..81806ae6 100644
--- a/packages/plugin/cordis.patch.yml
+++ b/packages/plugin/cordis.patch.yml
@@ -2,7 +2,7 @@
@ -123,7 +123,7 @@ index a5e00d0..81806ae 100644
enabled: true
role: host
diff --git a/packages/plugin/dsh-plugin.json b/packages/plugin/dsh-plugin.json
index 6c637a8..6c27a70 100644
index 2e313526..c0e3af3c 100644
--- a/packages/plugin/dsh-plugin.json
+++ b/packages/plugin/dsh-plugin.json
@@ -1,8 +1,8 @@
@ -131,10 +131,10 @@ index 6c637a8..6c27a70 100644
"$schema": "https://dsh.community/schemas/dsh-plugin-0.15.json",
- "id": "com.r2049.ds-harness-remote",
- "name": "ds-harness-remote",
- "version": "0.6.4",
- "version": "0.6.5",
+ "id": "top.rainow.ds-harness-remote-fast",
+ "name": "ds-harness-remote-fast",
+ "version": "0.6.4-fast.5",
+ "version": "0.6.5-fast.1",
"manifestVersion": "0.15",
"facets": {
"host": {
@ -147,15 +147,15 @@ index 6c637a8..6c27a70 100644
}
}
diff --git a/packages/plugin/package.json b/packages/plugin/package.json
index 18dc8ed..1fa47d7 100644
index a2139ee6..bcd917fc 100644
--- a/packages/plugin/package.json
+++ b/packages/plugin/package.json
@@ -1,25 +1,24 @@
{
- "name": "ds-harness-remote",
- "version": "0.6.4",
- "version": "0.6.5",
+ "name": "ds-harness-remote-fast",
+ "version": "0.6.4-fast.5",
+ "version": "0.6.5-fast.1",
"description": "P2P-based, end-to-end encrypted remote access to DeepSeek Harness, CodeX, Claude Code, Pi, and other workspaces from web and mobile clients.",
"keywords": [
"deepseek",
@ -191,7 +191,7 @@ index 18dc8ed..1fa47d7 100644
"types": "./public.d.ts",
"exports": {
diff --git a/packages/plugin/public.d.ts b/packages/plugin/public.d.ts
index d7ae7ea..83dff40 100644
index d7ae7eac..83dff404 100644
--- a/packages/plugin/public.d.ts
+++ b/packages/plugin/public.d.ts
@@ -9,6 +9,8 @@ export interface Config {
@ -213,7 +213,7 @@ index d7ae7ea..83dff40 100644
export declare function apply(ctx: Context, config?: Config | Volatile<Config>): void
export declare function runCli(args?: readonly string[]): Promise<number>
diff --git a/packages/plugin/scripts/build-bundles.mjs b/packages/plugin/scripts/build-bundles.mjs
index f6d34f3..33dfad0 100644
index f6d34f34..33dfad0e 100644
--- a/packages/plugin/scripts/build-bundles.mjs
+++ b/packages/plugin/scripts/build-bundles.mjs
@@ -63,8 +63,8 @@ await buildBundle({
@ -228,7 +228,7 @@ index f6d34f3..33dfad0 100644
await buildBundle({
entryPoints: [join(root, 'src/client.ts')],
diff --git a/packages/plugin/src/cli.ts b/packages/plugin/src/cli.ts
index 9a8eb00..9ae490c 100644
index 9a8eb001..9ae490ce 100644
--- a/packages/plugin/src/cli.ts
+++ b/packages/plugin/src/cli.ts
@@ -98,7 +98,7 @@ export async function runCli(
@ -256,10 +256,10 @@ index 9a8eb00..9ae490c 100644
}
const selected = args[0] === undefined
diff --git a/packages/plugin/src/update-check.ts b/packages/plugin/src/update-check.ts
index 022187f..3ba408b 100644
index 85afa5b7..dbf4adf5 100644
--- a/packages/plugin/src/update-check.ts
+++ b/packages/plugin/src/update-check.ts
@@ -16,8 +16,8 @@ export interface PluginUpdateSnapshot {
@@ -21,8 +21,8 @@ export interface PluginUpdateSnapshot {
/** dist-tags endpoints raced in parallel; the mirror backs up the official registry. */
const DIST_TAG_URLS = [
@ -271,7 +271,7 @@ index 022187f..3ba408b 100644
const FETCH_TIMEOUT_MS = 10_000
const RECHECK_INTERVAL_MS = 24 * 60 * 60 * 1000
diff --git a/packages/plugin/src/version.ts b/packages/plugin/src/version.ts
index f1d42f9..377c853 100644
index 676d4f16..ef527a83 100644
--- a/packages/plugin/src/version.ts
+++ b/packages/plugin/src/version.ts
@@ -1,5 +1,5 @@
@ -285,10 +285,10 @@ index f1d42f9..377c853 100644
* If they diverge, `npm scripts` checks in `scripts/verify-version-sync.mjs`
* will fail fast during build/check/test.
*/
-export const PLUGIN_VERSION = '0.6.4'
+export const PLUGIN_VERSION = '0.6.4-fast.5'
-export const PLUGIN_VERSION = '0.6.5'
+export const PLUGIN_VERSION = '0.6.5-fast.1'
diff --git a/scripts/install.sh b/scripts/install.sh
index ea15489..106c320 100755
index ea154895..106c3207 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -81,7 +81,7 @@ elif [[ "$os" = Linux ]]; then
@ -331,7 +331,7 @@ index ea15489..106c320 100755
say "Installing deepseek-harness-intelligent-ui@${INTELLIGENT_UI_VERSION} into profile ${DSH_PROFILE}"
diff --git a/scripts/sync-upstream.sh b/scripts/sync-upstream.sh
new file mode 100755
index 0000000..51a8a5f
index 00000000..51a8a5f3
--- /dev/null
+++ b/scripts/sync-upstream.sh
@@ -0,0 +1,75 @@
@ -411,7 +411,7 @@ index 0000000..51a8a5f
+echo "完成:$BRANCH 现在基于 $(git rev-parse --short "$BASE")"
+echo "记得把版本改成 \`<upstream-version>-fast.N\`:packages/plugin/package.json、src/version.ts、dsh-plugin.json ×2、package.json"
diff --git a/scripts/verify-dsh-plugin.mjs b/scripts/verify-dsh-plugin.mjs
index f50df75..276c3b5 100644
index f50df759..276c3b5b 100644
--- a/scripts/verify-dsh-plugin.mjs
+++ b/scripts/verify-dsh-plugin.mjs
@@ -11,7 +11,7 @@ const pluginManifest = JSON.parse(readFileSync(join(root, 'packages/plugin/packa
@ -461,10 +461,10 @@ index f50df75..276c3b5 100644
const hostBundle = readFileSync(join(root, 'packages/plugin/dist/index.js'), 'utf8')
assert.doesNotMatch(hostBundle, /(?:from\s+|require\()['\"]@dsh-remote\//, 'Host bundle must not import unpublished workspace packages')
diff --git a/scripts/verify-packed-webrtc-runtime.mjs b/scripts/verify-packed-webrtc-runtime.mjs
index 3553f11..cc13d14 100644
index 6ef66fbb..d7dbb224 100644
--- a/scripts/verify-packed-webrtc-runtime.mjs
+++ b/scripts/verify-packed-webrtc-runtime.mjs
@@ -29,7 +29,7 @@ const deadline = setTimeout(() => { console.error('packed WebRTC smoke timed out
@@ -30,7 +30,7 @@ const deadline = setTimeout(() => { console.error('packed WebRTC smoke timed out
const peers = []
try {
const plugin = await import(entry)
@ -474,10 +474,10 @@ index 3553f11..cc13d14 100644
assert.equal(nativeAttempts, 0, 'package import must not initialize native RTC')
const runtime = await import(`${bundle}?transport-smoke`)
diff --git a/scripts/verify-packed-webrtc.mjs b/scripts/verify-packed-webrtc.mjs
index 1d8102a..416ca94 100644
index a0f9bcbc..a68450f3 100644
--- a/scripts/verify-packed-webrtc.mjs
+++ b/scripts/verify-packed-webrtc.mjs
@@ -72,7 +72,7 @@ try {
@@ -74,7 +74,7 @@ try {
join(destination, pack.filename)], generation)
const modules = join(generation, 'node_modules')
const count = verifyClosure(modules, generation, installation)