@dan-ai-studio/dshopencodego 0.1.93 → 0.1.94

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
@@ -1410,18 +1410,22 @@ var SectionController = class _SectionController {
1410
1410
  }
1411
1411
  }
1412
1412
  /**
1413
- * The desktop download Remote.
1413
+ * The desktop download Remote, when the running build mounted it.
1414
1414
  *
1415
- * Declared in `client/index.ts`'s inject list, so the namespace is mounted by
1416
- * the time this controller exists; the guard is a defensive assertion, not a
1417
- * wait, for the same reason the update Remote's is.
1418
- * @returns the mounted desktop Remote.
1419
- * @throws {Error} `remote-not-mounted` when the namespace is absent.
1415
+ * Deliberately *not* in `client/index.ts`'s inject list. A declared
1416
+ * dependency that never mounts does not degrade — Cordis simply never runs
1417
+ * the injection, so the whole settings section disappears, which is exactly
1418
+ * what a missing desktop namespace did to 0.1.92. Reading it here instead
1419
+ * costs a caught error when it is absent and keeps every other panel on the
1420
+ * page alive; the download row then says it is not ready.
1421
+ * @returns the mounted desktop Remote, or undefined when it is absent.
1420
1422
  */
1421
1423
  desktopRemote() {
1422
- const remote = this.services.remote.opencodeGoDesktop;
1423
- if (remote === void 0) throw new Error("remote-not-mounted");
1424
- return remote;
1424
+ try {
1425
+ return this.services.remote.opencodeGoDesktop;
1426
+ } catch {
1427
+ return void 0;
1428
+ }
1425
1429
  }
1426
1430
  /**
1427
1431
  * Ask the Host which installer the desktop download host publishes.
@@ -1437,6 +1441,7 @@ var SectionController = class _SectionController {
1437
1441
  this.set({ desktop: { ...previous, phase: "checking", message: void 0, copied: false } });
1438
1442
  try {
1439
1443
  const remote = this.desktopRemote();
1444
+ if (remote === void 0) throw new Error("remote-not-mounted");
1440
1445
  const result = force ? await remote.refreshDesktop() : await remote.readDesktop();
1441
1446
  if (!result.ok) throw result.error;
1442
1447
  const reading = result.value;
@@ -3468,7 +3473,7 @@ function apply(ctx) {
3468
3473
  void dispose?.();
3469
3474
  };
3470
3475
  }, "dshopencodego: usage Remote");
3471
- ctx.inject(["configForms", "remote.opencodeGoCatalog", "remote.opencodeGoUpdate", "remote.opencodeGoNetwork", "remote.opencodeGoDesktop", "remote.opencodeGoRequestLog", "remote.credentials"], (scope) => {
3476
+ ctx.inject(["configForms", "remote.opencodeGoCatalog", "remote.opencodeGoUpdate", "remote.opencodeGoNetwork", "remote.opencodeGoRequestLog", "remote.credentials"], (scope) => {
3472
3477
  const forms = scope.get("configForms");
3473
3478
  const pluginManager = {};
3474
3479
  const profile = forms?.get("dshopencodego");
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.93" : "0.0.0-dev";
80614
+ var PLUGIN_VERSION = true ? "0.1.94" : "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.93",
3
+ "version": "0.1.94",
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",