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.
- package/package.json +1 -1
- package/src/opencode.ts +2 -8
package/package.json
CHANGED
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}&
|
|
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
|
-
|
|
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. */
|