pi-agent-extensions 0.2.2 → 0.2.3

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.
@@ -93,7 +93,8 @@ export default function (pi: ExtensionAPI) {
93
93
  if (ctx.hasUI) {
94
94
  ctx.ui.notify(`👋 ${msg}`, "info");
95
95
  }
96
- ctx.shutdown();
96
+ // Use setImmediate to ensure shutdown happens after command handler completes
97
+ setImmediate(() => ctx.shutdown());
97
98
  },
98
99
  });
99
100
 
@@ -104,7 +105,8 @@ export default function (pi: ExtensionAPI) {
104
105
  if (ctx.hasUI) {
105
106
  ctx.ui.notify(`👋 ${msg}`, "info");
106
107
  }
107
- ctx.shutdown();
108
+ // Use setImmediate to ensure shutdown happens after command handler completes
109
+ setImmediate(() => ctx.shutdown());
108
110
  },
109
111
  });
110
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-extensions",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Collection of extensions for pi coding agent",
5
5
  "type": "module",
6
6
  "repository": {