@dan-ai-studio/dshopencodego 0.1.95 → 0.1.96
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/lib/client.js +14 -11
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1481,20 +1481,15 @@ var SectionController = class _SectionController {
|
|
|
1481
1481
|
/**
|
|
1482
1482
|
* The desktop download Remote, when the running build mounted it.
|
|
1483
1483
|
*
|
|
1484
|
-
*
|
|
1485
|
-
*
|
|
1486
|
-
* the injection
|
|
1487
|
-
*
|
|
1488
|
-
*
|
|
1489
|
-
* page alive; the download row then says it is not ready.
|
|
1484
|
+
* Read through the holder rather than from `services.remote`: Cordis refuses
|
|
1485
|
+
* a service read that was not declared in an injection, and declaring this
|
|
1486
|
+
* one in the *main* injection is what removed the whole settings section in
|
|
1487
|
+
* 0.1.92. The holder is filled by its own `scope.inject`, so it is populated
|
|
1488
|
+
* exactly when the namespace exists and empty otherwise.
|
|
1490
1489
|
* @returns the mounted desktop Remote, or undefined when it is absent.
|
|
1491
1490
|
*/
|
|
1492
1491
|
desktopRemote() {
|
|
1493
|
-
|
|
1494
|
-
return this.services.remote.opencodeGoDesktop;
|
|
1495
|
-
} catch {
|
|
1496
|
-
return void 0;
|
|
1497
|
-
}
|
|
1492
|
+
return this.services.desktop?.current;
|
|
1498
1493
|
}
|
|
1499
1494
|
/**
|
|
1500
1495
|
* Ask the Host which installer the desktop download host publishes.
|
|
@@ -3546,12 +3541,20 @@ function apply(ctx) {
|
|
|
3546
3541
|
ctx.inject(["configForms", "remote.opencodeGoCatalog", "remote.opencodeGoUpdate", "remote.opencodeGoNetwork", "remote.opencodeGoRequestLog", "remote.credentials"], (scope) => {
|
|
3547
3542
|
const forms = scope.get("configForms");
|
|
3548
3543
|
const pluginManager = {};
|
|
3544
|
+
const desktop = {};
|
|
3549
3545
|
const profile = forms?.get("dshopencodego");
|
|
3550
3546
|
const controller = new SectionController({
|
|
3551
3547
|
remote: scope.remote,
|
|
3552
3548
|
pluginManager,
|
|
3549
|
+
desktop,
|
|
3553
3550
|
scope: profile
|
|
3554
3551
|
});
|
|
3552
|
+
scope.inject(["remote.opencodeGoDesktop"], (desktopScope) => {
|
|
3553
|
+
desktop.current = desktopScope.remote.opencodeGoDesktop;
|
|
3554
|
+
return () => {
|
|
3555
|
+
desktop.current = void 0;
|
|
3556
|
+
};
|
|
3557
|
+
});
|
|
3555
3558
|
scope.inject(["remote.pluginManager"], (managerScope) => {
|
|
3556
3559
|
pluginManager.current = managerScope.remote.pluginManager;
|
|
3557
3560
|
return () => {
|
package/lib/index.js
CHANGED
|
@@ -80611,7 +80611,7 @@ function createUpdateChecker(deps) {
|
|
|
80611
80611
|
}
|
|
80612
80612
|
|
|
80613
80613
|
// src/update/version.ts
|
|
80614
|
-
var PLUGIN_VERSION = true ? "0.1.
|
|
80614
|
+
var PLUGIN_VERSION = true ? "0.1.96" : "0.0.0-dev";
|
|
80615
80615
|
|
|
80616
80616
|
// src/update/service.ts
|
|
80617
80617
|
import { TypertRemoteService as TypertRemoteService5 } from "@deepseek-ai/dsh-typert-protocol";
|
package/package.json
CHANGED