@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 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
- * Deliberately *not* in `client/index.ts`'s inject list. A declared
1485
- * dependency that never mounts does not degrade — Cordis simply never runs
1486
- * the injection, so the whole settings section disappears, which is exactly
1487
- * what a missing desktop namespace did to 0.1.92. Reading it here instead
1488
- * costs a caught error when it is absent and keeps every other panel on the
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
- try {
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.95" : "0.0.0-dev";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dan-ai-studio/dshopencodego",
3
- "version": "0.1.95",
3
+ "version": "0.1.96",
4
4
  "description": "OpenCode Go provider for DeepSeek Harness: live gateway catalog, per-conversation session header, usage",
5
5
  "type": "module",
6
6
  "license": "MIT",