openclaw-event-server-plugin 1.0.0

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.
Files changed (209) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +473 -0
  3. package/config.example.json +203 -0
  4. package/dist/broadcast/index.d.ts +3 -0
  5. package/dist/broadcast/index.d.ts.map +1 -0
  6. package/dist/broadcast/index.js +19 -0
  7. package/dist/broadcast/index.js.map +1 -0
  8. package/dist/broadcast/queue.d.ts +63 -0
  9. package/dist/broadcast/queue.d.ts.map +1 -0
  10. package/dist/broadcast/queue.js +259 -0
  11. package/dist/broadcast/queue.js.map +1 -0
  12. package/dist/broadcast/webhook.d.ts +30 -0
  13. package/dist/broadcast/webhook.d.ts.map +1 -0
  14. package/dist/broadcast/webhook.js +184 -0
  15. package/dist/broadcast/webhook.js.map +1 -0
  16. package/dist/broadcast/websocketServer.d.ts +90 -0
  17. package/dist/broadcast/websocketServer.d.ts.map +1 -0
  18. package/dist/broadcast/websocketServer.js +403 -0
  19. package/dist/broadcast/websocketServer.js.map +1 -0
  20. package/dist/config/config-types.d.ts +280 -0
  21. package/dist/config/config-types.d.ts.map +1 -0
  22. package/dist/config/config-types.js +3 -0
  23. package/dist/config/config-types.js.map +1 -0
  24. package/dist/config/default-config.d.ts +3 -0
  25. package/dist/config/default-config.d.ts.map +1 -0
  26. package/dist/config/default-config.js +136 -0
  27. package/dist/config/default-config.js.map +1 -0
  28. package/dist/config/env.d.ts +6 -0
  29. package/dist/config/env.d.ts.map +1 -0
  30. package/dist/config/env.js +160 -0
  31. package/dist/config/env.js.map +1 -0
  32. package/dist/config/event-types.d.ts +5 -0
  33. package/dist/config/event-types.d.ts.map +1 -0
  34. package/dist/config/event-types.js +54 -0
  35. package/dist/config/event-types.js.map +1 -0
  36. package/dist/config/handler.d.ts +9 -0
  37. package/dist/config/handler.d.ts.map +1 -0
  38. package/dist/config/handler.js +17 -0
  39. package/dist/config/handler.js.map +1 -0
  40. package/dist/config/helpers.d.ts +5 -0
  41. package/dist/config/helpers.d.ts.map +1 -0
  42. package/dist/config/helpers.js +40 -0
  43. package/dist/config/helpers.js.map +1 -0
  44. package/dist/config/index.d.ts +3 -0
  45. package/dist/config/index.d.ts.map +1 -0
  46. package/dist/config/index.js +19 -0
  47. package/dist/config/index.js.map +1 -0
  48. package/dist/config/merge.d.ts +6 -0
  49. package/dist/config/merge.d.ts.map +1 -0
  50. package/dist/config/merge.js +108 -0
  51. package/dist/config/merge.js.map +1 -0
  52. package/dist/config/schema-hook-bridge.d.ts +594 -0
  53. package/dist/config/schema-hook-bridge.d.ts.map +1 -0
  54. package/dist/config/schema-hook-bridge.js +423 -0
  55. package/dist/config/schema-hook-bridge.js.map +1 -0
  56. package/dist/config/schema.d.ts +915 -0
  57. package/dist/config/schema.d.ts.map +1 -0
  58. package/dist/config/schema.js +323 -0
  59. package/dist/config/schema.js.map +1 -0
  60. package/dist/config/types.d.ts +9 -0
  61. package/dist/config/types.d.ts.map +1 -0
  62. package/dist/config/types.js +28 -0
  63. package/dist/config/types.js.map +1 -0
  64. package/dist/config/validate-hook-bridge.d.ts +3 -0
  65. package/dist/config/validate-hook-bridge.d.ts.map +1 -0
  66. package/dist/config/validate-hook-bridge.js +246 -0
  67. package/dist/config/validate-hook-bridge.js.map +1 -0
  68. package/dist/config/validate.d.ts +17 -0
  69. package/dist/config/validate.d.ts.map +1 -0
  70. package/dist/config/validate.js +194 -0
  71. package/dist/config/validate.js.map +1 -0
  72. package/dist/events/index.d.ts +4 -0
  73. package/dist/events/index.d.ts.map +1 -0
  74. package/dist/events/index.js +20 -0
  75. package/dist/events/index.js.map +1 -0
  76. package/dist/events/redaction.d.ts +5 -0
  77. package/dist/events/redaction.d.ts.map +1 -0
  78. package/dist/events/redaction.js +46 -0
  79. package/dist/events/redaction.js.map +1 -0
  80. package/dist/events/signing.d.ts +8 -0
  81. package/dist/events/signing.d.ts.map +1 -0
  82. package/dist/events/signing.js +35 -0
  83. package/dist/events/signing.js.map +1 -0
  84. package/dist/events/types.d.ts +125 -0
  85. package/dist/events/types.d.ts.map +1 -0
  86. package/dist/events/types.js +9 -0
  87. package/dist/events/types.js.map +1 -0
  88. package/dist/hooks/agent-hooks.d.ts +59 -0
  89. package/dist/hooks/agent-hooks.d.ts.map +1 -0
  90. package/dist/hooks/agent-hooks.js +116 -0
  91. package/dist/hooks/agent-hooks.js.map +1 -0
  92. package/dist/hooks/command-hooks.d.ts +13 -0
  93. package/dist/hooks/command-hooks.d.ts.map +1 -0
  94. package/dist/hooks/command-hooks.js +26 -0
  95. package/dist/hooks/command-hooks.js.map +1 -0
  96. package/dist/hooks/event-factory.d.ts +21 -0
  97. package/dist/hooks/event-factory.d.ts.map +1 -0
  98. package/dist/hooks/event-factory.js +31 -0
  99. package/dist/hooks/event-factory.js.map +1 -0
  100. package/dist/hooks/gateway-hooks.d.ts +14 -0
  101. package/dist/hooks/gateway-hooks.d.ts.map +1 -0
  102. package/dist/hooks/gateway-hooks.js +43 -0
  103. package/dist/hooks/gateway-hooks.js.map +1 -0
  104. package/dist/hooks/index.d.ts +10 -0
  105. package/dist/hooks/index.d.ts.map +1 -0
  106. package/dist/hooks/index.js +26 -0
  107. package/dist/hooks/index.js.map +1 -0
  108. package/dist/hooks/message-hooks.d.ts +33 -0
  109. package/dist/hooks/message-hooks.d.ts.map +1 -0
  110. package/dist/hooks/message-hooks.js +208 -0
  111. package/dist/hooks/message-hooks.js.map +1 -0
  112. package/dist/hooks/session-hooks.d.ts +89 -0
  113. package/dist/hooks/session-hooks.d.ts.map +1 -0
  114. package/dist/hooks/session-hooks.js +253 -0
  115. package/dist/hooks/session-hooks.js.map +1 -0
  116. package/dist/hooks/status-reducer.d.ts +30 -0
  117. package/dist/hooks/status-reducer.d.ts.map +1 -0
  118. package/dist/hooks/status-reducer.js +157 -0
  119. package/dist/hooks/status-reducer.js.map +1 -0
  120. package/dist/hooks/subagent-hooks.d.ts +37 -0
  121. package/dist/hooks/subagent-hooks.d.ts.map +1 -0
  122. package/dist/hooks/subagent-hooks.js +79 -0
  123. package/dist/hooks/subagent-hooks.js.map +1 -0
  124. package/dist/hooks/subagent-tracker.d.ts +33 -0
  125. package/dist/hooks/subagent-tracker.d.ts.map +1 -0
  126. package/dist/hooks/subagent-tracker.js +73 -0
  127. package/dist/hooks/subagent-tracker.js.map +1 -0
  128. package/dist/hooks/tool-hooks.d.ts +132 -0
  129. package/dist/hooks/tool-hooks.d.ts.map +1 -0
  130. package/dist/hooks/tool-hooks.js +215 -0
  131. package/dist/hooks/tool-hooks.js.map +1 -0
  132. package/dist/index.d.ts +929 -0
  133. package/dist/index.d.ts.map +1 -0
  134. package/dist/index.js +236 -0
  135. package/dist/index.js.map +1 -0
  136. package/dist/logging/event-file-logger.d.ts +21 -0
  137. package/dist/logging/event-file-logger.d.ts.map +1 -0
  138. package/dist/logging/event-file-logger.js +167 -0
  139. package/dist/logging/event-file-logger.js.map +1 -0
  140. package/dist/logging/index.d.ts +3 -0
  141. package/dist/logging/index.d.ts.map +1 -0
  142. package/dist/logging/index.js +19 -0
  143. package/dist/logging/index.js.map +1 -0
  144. package/dist/logging/runtime-logger.d.ts +12 -0
  145. package/dist/logging/runtime-logger.d.ts.map +1 -0
  146. package/dist/logging/runtime-logger.js +45 -0
  147. package/dist/logging/runtime-logger.js.map +1 -0
  148. package/dist/runtime/hook-bridge-actions.d.ts +9 -0
  149. package/dist/runtime/hook-bridge-actions.d.ts.map +1 -0
  150. package/dist/runtime/hook-bridge-actions.js +248 -0
  151. package/dist/runtime/hook-bridge-actions.js.map +1 -0
  152. package/dist/runtime/hook-bridge-dispatch-engine.d.ts +42 -0
  153. package/dist/runtime/hook-bridge-dispatch-engine.d.ts.map +1 -0
  154. package/dist/runtime/hook-bridge-dispatch-engine.js +233 -0
  155. package/dist/runtime/hook-bridge-dispatch-engine.js.map +1 -0
  156. package/dist/runtime/hook-bridge-tool-guard.d.ts +16 -0
  157. package/dist/runtime/hook-bridge-tool-guard.d.ts.map +1 -0
  158. package/dist/runtime/hook-bridge-tool-guard.js +236 -0
  159. package/dist/runtime/hook-bridge-tool-guard.js.map +1 -0
  160. package/dist/runtime/hook-bridge-utils.d.ts +11 -0
  161. package/dist/runtime/hook-bridge-utils.d.ts.map +1 -0
  162. package/dist/runtime/hook-bridge-utils.js +116 -0
  163. package/dist/runtime/hook-bridge-utils.js.map +1 -0
  164. package/dist/runtime/hook-bridge.d.ts +33 -0
  165. package/dist/runtime/hook-bridge.d.ts.map +1 -0
  166. package/dist/runtime/hook-bridge.js +359 -0
  167. package/dist/runtime/hook-bridge.js.map +1 -0
  168. package/dist/runtime/internal-handlers.d.ts +20 -0
  169. package/dist/runtime/internal-handlers.d.ts.map +1 -0
  170. package/dist/runtime/internal-handlers.js +225 -0
  171. package/dist/runtime/internal-handlers.js.map +1 -0
  172. package/dist/runtime/register-gateway-hooks.d.ts +4 -0
  173. package/dist/runtime/register-gateway-hooks.d.ts.map +1 -0
  174. package/dist/runtime/register-gateway-hooks.js +27 -0
  175. package/dist/runtime/register-gateway-hooks.js.map +1 -0
  176. package/dist/runtime/register-session-hooks.d.ts +4 -0
  177. package/dist/runtime/register-session-hooks.d.ts.map +1 -0
  178. package/dist/runtime/register-session-hooks.js +88 -0
  179. package/dist/runtime/register-session-hooks.js.map +1 -0
  180. package/dist/runtime/register-subagent-hooks.d.ts +4 -0
  181. package/dist/runtime/register-subagent-hooks.d.ts.map +1 -0
  182. package/dist/runtime/register-subagent-hooks.js +143 -0
  183. package/dist/runtime/register-subagent-hooks.js.map +1 -0
  184. package/dist/runtime/register-tool-hooks.d.ts +4 -0
  185. package/dist/runtime/register-tool-hooks.d.ts.map +1 -0
  186. package/dist/runtime/register-tool-hooks.js +348 -0
  187. package/dist/runtime/register-tool-hooks.js.map +1 -0
  188. package/dist/runtime/runtime-events.d.ts +14 -0
  189. package/dist/runtime/runtime-events.d.ts.map +1 -0
  190. package/dist/runtime/runtime-events.js +166 -0
  191. package/dist/runtime/runtime-events.js.map +1 -0
  192. package/dist/runtime/typed-hooks.d.ts +9 -0
  193. package/dist/runtime/typed-hooks.d.ts.map +1 -0
  194. package/dist/runtime/typed-hooks.js +14 -0
  195. package/dist/runtime/typed-hooks.js.map +1 -0
  196. package/dist/runtime/types.d.ts +91 -0
  197. package/dist/runtime/types.d.ts.map +1 -0
  198. package/dist/runtime/types.js +3 -0
  199. package/dist/runtime/types.js.map +1 -0
  200. package/dist/runtime/utils.d.ts +47 -0
  201. package/dist/runtime/utils.d.ts.map +1 -0
  202. package/dist/runtime/utils.js +166 -0
  203. package/dist/runtime/utils.js.map +1 -0
  204. package/dist/tools/replay-tool-guard.d.ts +3 -0
  205. package/dist/tools/replay-tool-guard.d.ts.map +1 -0
  206. package/dist/tools/replay-tool-guard.js +96 -0
  207. package/dist/tools/replay-tool-guard.js.map +1 -0
  208. package/openclaw.plugin.json +847 -0
  209. package/package.json +63 -0
@@ -0,0 +1,929 @@
1
+ /**
2
+ * OpenClaw Event Server Plugin
3
+ *
4
+ * Broadcasts raw internal/plugin hook events with a canonical envelope and
5
+ * emits synthetic agent status/activity events for downstream consumers.
6
+ */
7
+ import { OpenClawPluginApi } from './runtime/types';
8
+ declare function activate(api: OpenClawPluginApi): void;
9
+ declare function deactivate(): Promise<void>;
10
+ declare const plugin: {
11
+ id: string;
12
+ name: string;
13
+ version: string;
14
+ configSchema: {
15
+ type: string;
16
+ additionalProperties: boolean;
17
+ properties: {
18
+ enabled: {
19
+ type: string;
20
+ description: string;
21
+ default: boolean;
22
+ };
23
+ webhooks: {
24
+ type: string;
25
+ description: string;
26
+ items: {
27
+ type: string;
28
+ required: string[];
29
+ properties: {
30
+ url: {
31
+ type: string;
32
+ description: string;
33
+ };
34
+ method: {
35
+ type: string;
36
+ enum: string[];
37
+ default: string;
38
+ description: string;
39
+ };
40
+ headers: {
41
+ type: string;
42
+ additionalProperties: {
43
+ type: string;
44
+ };
45
+ description: string;
46
+ };
47
+ authToken: {
48
+ type: string;
49
+ description: string;
50
+ };
51
+ includeFullPayload: {
52
+ type: string;
53
+ default: boolean;
54
+ description: string;
55
+ };
56
+ };
57
+ };
58
+ default: never[];
59
+ };
60
+ filters: {
61
+ type: string;
62
+ description: string;
63
+ properties: {
64
+ includeTypes: {
65
+ type: string;
66
+ items: {
67
+ type: string;
68
+ enum: readonly import("./events").EventType[];
69
+ };
70
+ description: string;
71
+ };
72
+ excludeTypes: {
73
+ type: string;
74
+ items: {
75
+ type: string;
76
+ enum: readonly import("./events").EventType[];
77
+ };
78
+ description: string;
79
+ };
80
+ channelId: {
81
+ type: string;
82
+ description: string;
83
+ };
84
+ toolName: {
85
+ type: string;
86
+ description: string;
87
+ };
88
+ sessionId: {
89
+ type: string;
90
+ description: string;
91
+ };
92
+ };
93
+ };
94
+ retry: {
95
+ type: string;
96
+ description: string;
97
+ properties: {
98
+ maxAttempts: {
99
+ type: string;
100
+ minimum: number;
101
+ maximum: number;
102
+ default: number;
103
+ };
104
+ initialDelayMs: {
105
+ type: string;
106
+ minimum: number;
107
+ maximum: number;
108
+ default: number;
109
+ };
110
+ maxDelayMs: {
111
+ type: string;
112
+ minimum: number;
113
+ maximum: number;
114
+ default: number;
115
+ };
116
+ backoffMultiplier: {
117
+ type: string;
118
+ minimum: number;
119
+ maximum: number;
120
+ default: number;
121
+ };
122
+ };
123
+ };
124
+ queue: {
125
+ type: string;
126
+ description: string;
127
+ properties: {
128
+ maxSize: {
129
+ type: string;
130
+ minimum: number;
131
+ maximum: number;
132
+ default: number;
133
+ };
134
+ flushIntervalMs: {
135
+ type: string;
136
+ minimum: number;
137
+ maximum: number;
138
+ default: number;
139
+ };
140
+ persistToDisk: {
141
+ type: string;
142
+ default: boolean;
143
+ };
144
+ persistPath: {
145
+ type: string;
146
+ description: string;
147
+ };
148
+ };
149
+ };
150
+ logging: {
151
+ type: string;
152
+ description: string;
153
+ properties: {
154
+ debug: {
155
+ type: string;
156
+ default: boolean;
157
+ };
158
+ logSuccess: {
159
+ type: string;
160
+ default: boolean;
161
+ };
162
+ logErrors: {
163
+ type: string;
164
+ default: boolean;
165
+ };
166
+ logQueue: {
167
+ type: string;
168
+ default: boolean;
169
+ };
170
+ };
171
+ };
172
+ status: {
173
+ type: string;
174
+ description: string;
175
+ properties: {
176
+ workingWindowMs: {
177
+ type: string;
178
+ minimum: number;
179
+ maximum: number;
180
+ default: number;
181
+ description: string;
182
+ };
183
+ sleepingWindowMs: {
184
+ type: string;
185
+ minimum: number;
186
+ maximum: number;
187
+ default: number;
188
+ description: string;
189
+ };
190
+ tickIntervalMs: {
191
+ type: string;
192
+ minimum: number;
193
+ maximum: number;
194
+ default: number;
195
+ description: string;
196
+ };
197
+ subagentIdleWindowMs: {
198
+ type: string;
199
+ minimum: number;
200
+ maximum: number;
201
+ default: number;
202
+ description: string;
203
+ };
204
+ };
205
+ };
206
+ redaction: {
207
+ type: string;
208
+ description: string;
209
+ properties: {
210
+ enabled: {
211
+ type: string;
212
+ default: boolean;
213
+ };
214
+ replacement: {
215
+ type: string;
216
+ default: string;
217
+ };
218
+ fields: {
219
+ type: string;
220
+ items: {
221
+ type: string;
222
+ };
223
+ default: string[];
224
+ };
225
+ };
226
+ };
227
+ eventLog: {
228
+ type: string;
229
+ description: string;
230
+ properties: {
231
+ enabled: {
232
+ type: string;
233
+ default: boolean;
234
+ };
235
+ path: {
236
+ type: string;
237
+ description: string;
238
+ default: string;
239
+ };
240
+ maxFileSizeMb: {
241
+ type: string;
242
+ minimum: number;
243
+ maximum: number;
244
+ default: number;
245
+ description: string;
246
+ };
247
+ format: {
248
+ type: string;
249
+ enum: string[];
250
+ default: string;
251
+ };
252
+ minLevel: {
253
+ type: string;
254
+ enum: string[];
255
+ default: string;
256
+ };
257
+ includeRuntimeLogs: {
258
+ type: string;
259
+ default: boolean;
260
+ };
261
+ };
262
+ };
263
+ security: {
264
+ type: string;
265
+ description: string;
266
+ properties: {
267
+ ws: {
268
+ type: string;
269
+ properties: {
270
+ bindAddress: {
271
+ type: string;
272
+ default: string;
273
+ };
274
+ requireAuth: {
275
+ type: string;
276
+ default: boolean;
277
+ };
278
+ authToken: {
279
+ type: string;
280
+ };
281
+ allowedOrigins: {
282
+ type: string;
283
+ items: {
284
+ type: string;
285
+ };
286
+ default: never[];
287
+ };
288
+ allowedIps: {
289
+ type: string;
290
+ items: {
291
+ type: string;
292
+ };
293
+ default: never[];
294
+ };
295
+ };
296
+ };
297
+ hmac: {
298
+ type: string;
299
+ properties: {
300
+ enabled: {
301
+ type: string;
302
+ default: boolean;
303
+ };
304
+ secret: {
305
+ type: string;
306
+ };
307
+ secretFilePath: {
308
+ type: string;
309
+ default: string;
310
+ };
311
+ algorithm: {
312
+ type: string;
313
+ enum: string[];
314
+ default: string;
315
+ };
316
+ };
317
+ };
318
+ };
319
+ };
320
+ correlationIdHeader: {
321
+ type: string;
322
+ default: string;
323
+ };
324
+ webhookTimeoutMs: {
325
+ type: string;
326
+ minimum: number;
327
+ maximum: number;
328
+ default: number;
329
+ };
330
+ hookBridge: {
331
+ type: string;
332
+ description: string;
333
+ properties: {
334
+ enabled: {
335
+ type: string;
336
+ default: boolean;
337
+ };
338
+ dryRun: {
339
+ type: string;
340
+ default: boolean;
341
+ };
342
+ allowedActionDirs: {
343
+ type: string;
344
+ items: {
345
+ type: string;
346
+ };
347
+ default: never[];
348
+ };
349
+ localScriptDefaults: {
350
+ type: string;
351
+ properties: {
352
+ timeoutMs: {
353
+ type: string;
354
+ minimum: number;
355
+ maximum: number;
356
+ default: number;
357
+ };
358
+ maxPayloadBytes: {
359
+ type: string;
360
+ minimum: number;
361
+ maximum: number;
362
+ default: number;
363
+ };
364
+ };
365
+ };
366
+ actions: {
367
+ type: string;
368
+ additionalProperties: {
369
+ type: string;
370
+ properties: {
371
+ type: {
372
+ type: string;
373
+ enum: string[];
374
+ };
375
+ url: {
376
+ type: string;
377
+ };
378
+ method: {
379
+ type: string;
380
+ enum: string[];
381
+ };
382
+ headers: {
383
+ type: string;
384
+ additionalProperties: {
385
+ type: string;
386
+ };
387
+ };
388
+ authToken: {
389
+ type: string;
390
+ };
391
+ path: {
392
+ type: string;
393
+ };
394
+ args: {
395
+ type: string;
396
+ items: {
397
+ type: string;
398
+ };
399
+ };
400
+ timeoutMs: {
401
+ type: string;
402
+ };
403
+ maxPayloadBytes: {
404
+ type: string;
405
+ };
406
+ };
407
+ required: string[];
408
+ };
409
+ default: {};
410
+ };
411
+ rules: {
412
+ type: string;
413
+ default: never[];
414
+ items: {
415
+ type: string;
416
+ properties: {
417
+ id: {
418
+ type: string;
419
+ };
420
+ enabled: {
421
+ type: string;
422
+ };
423
+ action: {
424
+ type: string;
425
+ };
426
+ cooldownMs: {
427
+ type: string;
428
+ minimum: number;
429
+ };
430
+ coalesce: {
431
+ type: string;
432
+ properties: {
433
+ enabled: {
434
+ type: string;
435
+ };
436
+ keyFields: {
437
+ type: string;
438
+ items: {
439
+ type: string;
440
+ };
441
+ };
442
+ windowMs: {
443
+ type: string;
444
+ minimum: number;
445
+ };
446
+ strategy: {
447
+ type: string;
448
+ enum: string[];
449
+ };
450
+ };
451
+ };
452
+ when: {
453
+ type: string;
454
+ properties: {
455
+ eventType: {
456
+ oneOf: ({
457
+ type: string;
458
+ items?: undefined;
459
+ } | {
460
+ type: string;
461
+ items: {
462
+ type: string;
463
+ };
464
+ })[];
465
+ };
466
+ toolName: {
467
+ oneOf: ({
468
+ type: string;
469
+ items?: undefined;
470
+ } | {
471
+ type: string;
472
+ items: {
473
+ type: string;
474
+ };
475
+ })[];
476
+ };
477
+ agentId: {
478
+ oneOf: ({
479
+ type: string;
480
+ items?: undefined;
481
+ } | {
482
+ type: string;
483
+ items: {
484
+ type: string;
485
+ };
486
+ })[];
487
+ };
488
+ sessionId: {
489
+ oneOf: ({
490
+ type: string;
491
+ items?: undefined;
492
+ } | {
493
+ type: string;
494
+ items: {
495
+ type: string;
496
+ };
497
+ })[];
498
+ };
499
+ sessionKey: {
500
+ oneOf: ({
501
+ type: string;
502
+ items?: undefined;
503
+ } | {
504
+ type: string;
505
+ items: {
506
+ type: string;
507
+ };
508
+ })[];
509
+ };
510
+ contains: {
511
+ type: string;
512
+ additionalProperties: {
513
+ type: string;
514
+ };
515
+ };
516
+ equals: {
517
+ type: string;
518
+ additionalProperties: {
519
+ oneOf: {
520
+ type: string;
521
+ }[];
522
+ };
523
+ };
524
+ requiredPaths: {
525
+ type: string;
526
+ items: {
527
+ type: string;
528
+ };
529
+ };
530
+ typeChecks: {
531
+ type: string;
532
+ additionalProperties: {
533
+ type: string;
534
+ enum: string[];
535
+ };
536
+ };
537
+ inList: {
538
+ type: string;
539
+ additionalProperties: {
540
+ type: string;
541
+ items: {
542
+ oneOf: {
543
+ type: string;
544
+ }[];
545
+ };
546
+ };
547
+ };
548
+ notInList: {
549
+ type: string;
550
+ additionalProperties: {
551
+ type: string;
552
+ items: {
553
+ oneOf: {
554
+ type: string;
555
+ }[];
556
+ };
557
+ };
558
+ };
559
+ matchesRegex: {
560
+ type: string;
561
+ additionalProperties: {
562
+ type: string;
563
+ };
564
+ };
565
+ notMatchesRegex: {
566
+ type: string;
567
+ additionalProperties: {
568
+ type: string;
569
+ };
570
+ };
571
+ domainAllowlist: {
572
+ type: string;
573
+ items: {
574
+ type: string;
575
+ };
576
+ };
577
+ domainBlocklist: {
578
+ type: string;
579
+ items: {
580
+ type: string;
581
+ };
582
+ };
583
+ domainPath: {
584
+ type: string;
585
+ };
586
+ idleForMsGte: {
587
+ type: string;
588
+ minimum: number;
589
+ };
590
+ parentStatus: {
591
+ type: string;
592
+ };
593
+ };
594
+ };
595
+ };
596
+ required: string[];
597
+ };
598
+ };
599
+ toolGuard: {
600
+ type: string;
601
+ properties: {
602
+ enabled: {
603
+ type: string;
604
+ default: boolean;
605
+ };
606
+ dryRun: {
607
+ type: string;
608
+ default: boolean;
609
+ };
610
+ timeoutMs: {
611
+ type: string;
612
+ minimum: number;
613
+ maximum: number;
614
+ default: number;
615
+ };
616
+ onError: {
617
+ type: string;
618
+ enum: string[];
619
+ default: string;
620
+ };
621
+ scopeKeyBy: {
622
+ type: string;
623
+ enum: string[];
624
+ default: string;
625
+ };
626
+ retryBackoffMs: {
627
+ type: string;
628
+ minimum: number;
629
+ maximum: number;
630
+ default: number;
631
+ };
632
+ retryBackoffReason: {
633
+ type: string;
634
+ };
635
+ approvalCacheTtlMs: {
636
+ type: string;
637
+ minimum: number;
638
+ maximum: number;
639
+ default: number;
640
+ };
641
+ stopOnMatchDefault: {
642
+ type: string;
643
+ default: boolean;
644
+ };
645
+ redaction: {
646
+ type: string;
647
+ properties: {
648
+ enabled: {
649
+ type: string;
650
+ default: boolean;
651
+ };
652
+ replacement: {
653
+ type: string;
654
+ default: string;
655
+ };
656
+ fields: {
657
+ type: string;
658
+ items: {
659
+ type: string;
660
+ };
661
+ };
662
+ };
663
+ };
664
+ rules: {
665
+ type: string;
666
+ default: never[];
667
+ items: {
668
+ type: string;
669
+ properties: {
670
+ id: {
671
+ type: string;
672
+ };
673
+ enabled: {
674
+ type: string;
675
+ };
676
+ priority: {
677
+ type: string;
678
+ };
679
+ action: {
680
+ type: string;
681
+ };
682
+ decision: {
683
+ type: string;
684
+ properties: {
685
+ block: {
686
+ type: string;
687
+ };
688
+ blockReason: {
689
+ type: string;
690
+ };
691
+ blockReasonTemplate: {
692
+ type: string;
693
+ };
694
+ params: {
695
+ type: string;
696
+ };
697
+ };
698
+ };
699
+ stopOnMatch: {
700
+ type: string;
701
+ };
702
+ cooldownMs: {
703
+ type: string;
704
+ minimum: number;
705
+ };
706
+ when: {
707
+ type: string;
708
+ properties: {
709
+ eventType: {
710
+ oneOf: ({
711
+ type: string;
712
+ items?: undefined;
713
+ } | {
714
+ type: string;
715
+ items: {
716
+ type: string;
717
+ };
718
+ })[];
719
+ };
720
+ toolName: {
721
+ oneOf: ({
722
+ type: string;
723
+ items?: undefined;
724
+ } | {
725
+ type: string;
726
+ items: {
727
+ type: string;
728
+ };
729
+ })[];
730
+ };
731
+ agentId: {
732
+ oneOf: ({
733
+ type: string;
734
+ items?: undefined;
735
+ } | {
736
+ type: string;
737
+ items: {
738
+ type: string;
739
+ };
740
+ })[];
741
+ };
742
+ sessionId: {
743
+ oneOf: ({
744
+ type: string;
745
+ items?: undefined;
746
+ } | {
747
+ type: string;
748
+ items: {
749
+ type: string;
750
+ };
751
+ })[];
752
+ };
753
+ sessionKey: {
754
+ oneOf: ({
755
+ type: string;
756
+ items?: undefined;
757
+ } | {
758
+ type: string;
759
+ items: {
760
+ type: string;
761
+ };
762
+ })[];
763
+ };
764
+ contains: {
765
+ type: string;
766
+ additionalProperties: {
767
+ type: string;
768
+ };
769
+ };
770
+ equals: {
771
+ type: string;
772
+ additionalProperties: {
773
+ oneOf: {
774
+ type: string;
775
+ }[];
776
+ };
777
+ };
778
+ requiredPaths: {
779
+ type: string;
780
+ items: {
781
+ type: string;
782
+ };
783
+ };
784
+ typeChecks: {
785
+ type: string;
786
+ additionalProperties: {
787
+ type: string;
788
+ enum: string[];
789
+ };
790
+ };
791
+ inList: {
792
+ type: string;
793
+ additionalProperties: {
794
+ type: string;
795
+ items: {
796
+ oneOf: {
797
+ type: string;
798
+ }[];
799
+ };
800
+ };
801
+ };
802
+ notInList: {
803
+ type: string;
804
+ additionalProperties: {
805
+ type: string;
806
+ items: {
807
+ oneOf: {
808
+ type: string;
809
+ }[];
810
+ };
811
+ };
812
+ };
813
+ matchesRegex: {
814
+ type: string;
815
+ additionalProperties: {
816
+ type: string;
817
+ };
818
+ };
819
+ notMatchesRegex: {
820
+ type: string;
821
+ additionalProperties: {
822
+ type: string;
823
+ };
824
+ };
825
+ domainAllowlist: {
826
+ type: string;
827
+ items: {
828
+ type: string;
829
+ };
830
+ };
831
+ domainBlocklist: {
832
+ type: string;
833
+ items: {
834
+ type: string;
835
+ };
836
+ };
837
+ domainPath: {
838
+ type: string;
839
+ };
840
+ idleForMsGte: {
841
+ type: string;
842
+ minimum: number;
843
+ };
844
+ parentStatus: {
845
+ type: string;
846
+ };
847
+ };
848
+ };
849
+ };
850
+ required: string[];
851
+ };
852
+ };
853
+ };
854
+ };
855
+ runtime: {
856
+ type: string;
857
+ properties: {
858
+ maxPendingEvents: {
859
+ type: string;
860
+ minimum: number;
861
+ maximum: number;
862
+ default: number;
863
+ };
864
+ concurrency: {
865
+ type: string;
866
+ minimum: number;
867
+ maximum: number;
868
+ default: number;
869
+ };
870
+ dropPolicy: {
871
+ type: string;
872
+ enum: string[];
873
+ default: string;
874
+ };
875
+ };
876
+ };
877
+ telemetry: {
878
+ type: string;
879
+ properties: {
880
+ highWatermarks: {
881
+ type: string;
882
+ items: {
883
+ type: string;
884
+ minimum: number;
885
+ maximum: number;
886
+ };
887
+ default: number[];
888
+ };
889
+ slowActionMs: {
890
+ type: string;
891
+ minimum: number;
892
+ maximum: number;
893
+ default: number;
894
+ };
895
+ failureRateWindowMs: {
896
+ type: string;
897
+ minimum: number;
898
+ maximum: number;
899
+ default: number;
900
+ };
901
+ failureRateThresholdPct: {
902
+ type: string;
903
+ minimum: number;
904
+ maximum: number;
905
+ default: number;
906
+ };
907
+ failureRateMinSamples: {
908
+ type: string;
909
+ minimum: number;
910
+ maximum: number;
911
+ default: number;
912
+ };
913
+ saturationWindowMs: {
914
+ type: string;
915
+ minimum: number;
916
+ maximum: number;
917
+ default: number;
918
+ };
919
+ };
920
+ };
921
+ };
922
+ };
923
+ };
924
+ };
925
+ activate: typeof activate;
926
+ deactivate: typeof deactivate;
927
+ };
928
+ export default plugin;
929
+ //# sourceMappingURL=index.d.ts.map