@mogragsigma/dsh-dual-host-plugin 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/bundle/README.md +3 -1
- package/bundle/SETUP.md +4 -4
- package/bundle/compatibility.json +4 -4
- package/bundle/distribution-lock.json +2 -2
- package/bundle/link-contract.js +1 -1
- package/bundle/package-lock.json +2 -2
- package/bundle/package.json +1 -1
- package/bundle/workbench-client.js +11 -11
- package/bundle/workbench-host.js +5 -3
- package/compatibility.json +4 -4
- package/package.json +1 -1
package/bundle/workbench-host.js
CHANGED
|
@@ -73,9 +73,11 @@ export class Workbench {
|
|
|
73
73
|
if(u.origin!==`http://127.0.0.1:${this.c.remotePort}`||u.pathname!=='/'||u.hash||[...u.searchParams.keys()].join()!=='token'||result.instance_id!==observation.instance_id)throw Error('INVALID_WORKBENCH_BOOTSTRAP');
|
|
74
74
|
// Bound retry only checks public static entry reachability; no authenticated
|
|
75
75
|
// operation is replayed. Tunnel process existence never counts as a login.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
// The loopback port crosses SSH to the cloud: 500 ms is not a LAN bound.
|
|
77
|
+
// Keep a technical deadline, while allowing a realistic remote round trip.
|
|
78
|
+
let ready=false;const deadline=performance.now()+15000;
|
|
79
|
+
while(!this.closed&&performance.now()<deadline){
|
|
80
|
+
try{const timeout=Math.max(1,Math.min(3000,Math.ceil(deadline-performance.now())));const r=await fetch(`http://127.0.0.1:${this.c.tunnelPort}/`,{redirect:'error',signal:AbortSignal.timeout(timeout)});await r.body?.cancel();if(r.status===401&&!this.closed){ready=true;break;}}catch{}
|
|
79
81
|
await new Promise(r=>setTimeout(r,150));
|
|
80
82
|
}
|
|
81
83
|
if(!ready)throw Error('WORKBENCH_TUNNEL_UNAVAILABLE');
|
package/compatibility.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"plugin": "@mogragsigma/dsh-dual-host-plugin",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"publicEntry": "native-entry.js",
|
|
6
6
|
"hostBaseline": "0.2.1-rc.5",
|
|
7
7
|
"imOptional": {
|
|
@@ -981,11 +981,11 @@
|
|
|
981
981
|
"declaredRange": ">=0.2.1-rc.5 <0.2.2-0 || >=0.2.2-rc.1 <0.2.3-0",
|
|
982
982
|
"standalonePinnedHost": "0.2.2-rc.1",
|
|
983
983
|
"targetHost": "0.2.2-rc.1",
|
|
984
|
-
"scope": "
|
|
984
|
+
"scope": "Stable release-line declaration; installation and live activation are separate facts. Broad range admission is not per-version acceptance; see releaseContract and current acceptance report."
|
|
985
985
|
},
|
|
986
986
|
"releaseContract": {
|
|
987
|
-
"version": "2.0.
|
|
988
|
-
"stage": "
|
|
987
|
+
"version": "2.0.1",
|
|
988
|
+
"stage": "stable",
|
|
989
989
|
"historicalFields": "Legacy approval/development/onboarding contracts remain for historical compatibility; they are not new-task policy or proof of 2.0 activation.",
|
|
990
990
|
"policy": "cloud-autonomous-v1",
|
|
991
991
|
"owner": "single-user",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mogragsigma/dsh-dual-host-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Single-owner native cloud tasks for DeepSeek Harness, with local and IM entry, continuous follow-up and verifiable artifacts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|