ework-daemon 0.4.13 → 0.4.14

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/opencode.ts +2 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-daemon",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "Issue-driven AI development daemon. Spawns opencode subprocesses to resolve Gitea issues.",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
package/src/opencode.ts CHANGED
@@ -259,20 +259,14 @@ export class Engine {
259
259
  void this.recover();
260
260
  }
261
261
 
262
- private daemonEndpoint(): string {
263
- return this.cfg.daemon.endpoint || `${this.cfg.daemon.host}:${this.cfg.daemon.port}`;
264
- }
265
-
266
262
  private workdirLink(workdir: string): string {
267
- const ep = encodeURIComponent(this.daemonEndpoint());
268
263
  const p = encodeURIComponent(workdir);
269
- return `[${workdir}](/file?path=${p}&daemon=${ep})`;
264
+ return `[${workdir}](/file?path=${p}&daemon_id=${this.daemonId})`;
270
265
  }
271
266
 
272
267
  private sessionRef(session: { id: string; opencodeSessionId?: string | null }): string {
273
268
  const ses = session.opencodeSessionId || session.id;
274
- const ep = encodeURIComponent(this.daemonEndpoint());
275
- return `[\`${ses}\`](/sessions/${encodeURIComponent(ses)}?daemon=${ep})`;
269
+ return `[\`${ses}\`](/sessions/${encodeURIComponent(ses)}?daemon_id=${this.daemonId})`;
276
270
  }
277
271
 
278
272
  /** Start the lease heartbeat. Must be called once after registerDaemon. */