dsh-plugin-desktop-notify 0.6.0 → 0.6.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/index.js CHANGED
@@ -121,7 +121,10 @@ function mountInterface(ctx, config) {
121
121
  return undefined
122
122
  }
123
123
  })()
124
- if (server === undefined || typeof server.register !== "function") return
124
+ if (server === undefined || typeof server.register !== "function") {
125
+ void noteToLog(config.logPath, "interface: the Host has no webServer service; the interface is unavailable")
126
+ return
127
+ }
125
128
 
126
129
  const queue = []
127
130
  const disposers = []
@@ -183,7 +186,7 @@ function mountInterface(ctx, config) {
183
186
  }
184
187
  } }))
185
188
  } catch (error) {
186
- void Promise.resolve(config.logPath).then((path) => noteToLog(path, `interface: ${String(error)}`))
189
+ void noteToLog(config.logPath, `interface: cannot register routes: ${String(error)}`)
187
190
  return
188
191
  }
189
192
 
@@ -199,7 +202,10 @@ function mountInterface(ctx, config) {
199
202
  if (endpointPath !== "" && origin !== undefined) {
200
203
  void mkdir(dirname(endpointPath), { recursive: true })
201
204
  .then(() => writeFile(endpointPath, `${origin}${API_REQUEST_PATH}\n`, "utf8"))
202
- .catch(() => {})
205
+ .then(() => noteToLog(config.logPath, `interface: ${origin}${API_REQUEST_PATH}`))
206
+ .catch((error) => noteToLog(config.logPath, `interface: cannot write the endpoint file: ${String(error)}`))
207
+ } else {
208
+ void noteToLog(config.logPath, `interface: routes registered but the address is unknown (origin=${String(origin)})`)
203
209
  }
204
210
 
205
211
  ctx.effect(() => () => {
package/lib/client.js CHANGED
@@ -30,7 +30,7 @@ window.__ModuleLoader__.load({
30
30
  factory: (require) => {
31
31
  const NS = "dsh-plugin-desktop-notify"
32
32
  /** Reported by capabilities(); keep in step with package.json (cross-machine support). */
33
- const VERSION = "0.6.0"
33
+ const VERSION = "0.6.1"
34
34
  const PREFERENCES_KEY = `${NS}:preferences`
35
35
 
36
36
  /** Defaults; override per field with the localStorage JSON described in README. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-desktop-notify",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "description": "Desktop notifications and a Dock/taskbar badge for DeepSeek Harness: a finished turn, a pending approval or question, and a failure, with click-through back to the session",
6
6
  "license": "MIT",