@pi-unipi/subagents 0.1.8 → 0.1.9
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/index.ts +10 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
import { defineTool, type ExtensionAPI, type ExtensionContext } from "@mariozechner/pi-coding-agent";
|
|
9
9
|
import { Text } from "@mariozechner/pi-tui";
|
|
10
10
|
import { Type } from "@sinclair/typebox";
|
|
11
|
+
import { emitEvent, MODULES } from "@pi-unipi/core";
|
|
12
|
+
import { UNIPI_EVENTS } from "@pi-unipi/core";
|
|
11
13
|
|
|
12
14
|
// Get info registry from global
|
|
13
15
|
function getInfoRegistry() {
|
|
@@ -172,6 +174,14 @@ export default function (pi: ExtensionAPI) {
|
|
|
172
174
|
`• Workspace agents: ${workspaceAgents}`,
|
|
173
175
|
"info",
|
|
174
176
|
);
|
|
177
|
+
|
|
178
|
+
// Emit module ready event
|
|
179
|
+
emitEvent(pi, UNIPI_EVENTS.MODULE_READY, {
|
|
180
|
+
name: MODULES.SUBAGENTS || "subagents",
|
|
181
|
+
version: "0.1.8",
|
|
182
|
+
commands: [],
|
|
183
|
+
tools: ["spawn_helper", "get_helper_result"],
|
|
184
|
+
});
|
|
175
185
|
});
|
|
176
186
|
|
|
177
187
|
// ESC propagation: abort all agents on session shutdown
|