pi-web-ui 0.34.1 → 0.34.2

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.
@@ -309,7 +309,9 @@ export class PluginManager {
309
309
  log: (...args) => console.log(`[plugin:${info.id}]`, ...args),
310
310
  };
311
311
  try {
312
- const mod = (await import(pathToFileURL(join(dir, "index.mjs")).href));
312
+ // Node 对同一 URL import() 永远返回缓存模块——追加 epoch 作查询串
313
+ // 击穿缓存,让 plugins_reload 后的重新激活能拿到磁盘上的新代码。
314
+ const mod = (await import(pathToFileURL(join(dir, "index.mjs")).href + `?e=${this.epochCounter}`));
313
315
  const ret = await mod.default?.activate?.(host);
314
316
  this.loaded.set(info.id, {
315
317
  info: { ...info },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-web-ui",
3
- "version": "0.34.1",
3
+ "version": "0.34.2",
4
4
  "description": "Web chat interface for the pi coding agent, powered by the pi SDK (@earendil-works/pi-coding-agent) — one-command run, Docker/systemd/launchd deployable",
5
5
  "license": "MIT",
6
6
  "type": "module",