@ampcode/plugin 0.0.0-20260225023102-g85fb325 → 0.0.0-20260225031228-gcc4d1d6
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/index.d.ts +2 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ declare module '@ampcode/plugin' {
|
|
|
52
52
|
* Register a handler for plugin events.
|
|
53
53
|
* For request events (e.g., tool.call), the handler must return a result.
|
|
54
54
|
* For fire-and-forget events, the handler returns void.
|
|
55
|
+
*
|
|
56
|
+
* If multiple plugins listen on the same event, the order in which each plugin's event handler is executed is not defined.
|
|
55
57
|
*/
|
|
56
58
|
on<E extends keyof PluginEventMap>(
|
|
57
59
|
event: E,
|