@ericsanchezok/synergy-plugin 1.2.2 → 1.2.4

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/README.md CHANGED
@@ -241,7 +241,89 @@ The rule of thumb is simple: treat `input` as context, and treat `output` as the
241
241
  | `tool` | Register custom tools | Runtime-side integrations, project utilities |
242
242
  | `auth` | Add provider auth methods and auth loaders | Custom providers, OAuth, API key flows |
243
243
  | `config` | Observe loaded config | Initialize plugin state from current config |
244
- | `event` | Observe bus events | Logging, metrics, passive integrations |
244
+ | `event` | Observe 72 runtime bus events (see below) | Logging, metrics, passive integrations |
245
+
246
+ #### `event` — observable bus events
247
+
248
+ The `event` hook lets you subscribe to any of the following runtime bus events by matching `event.type` in your handler. Run `synergy plugin hooks --json` for the full machine-readable list.
249
+
250
+ **Installation & scope**
251
+
252
+ ```
253
+ installation.updated installation.update_available
254
+ scope.updated scope.removed
255
+ ```
256
+
257
+ **Config & server**
258
+
259
+ ```
260
+ config.updated config.set_activated
261
+ server.connected server.instance.disposed global.disposed
262
+ ```
263
+
264
+ **File & LSP**
265
+
266
+ ```
267
+ file.edited file.watcher.updated
268
+ lsp.updated lsp.client_diagnostics
269
+ ```
270
+
271
+ **MCP & command**
272
+
273
+ ```
274
+ mcp.ready mcp.tools_changed mcp.prompts_changed mcp.resources_changed
275
+ command.executed
276
+ vcs.branch.updated
277
+ ```
278
+
279
+ **Permission & note**
280
+
281
+ ```
282
+ permission.asked permission.replied permission.allow_all_changed
283
+ note.created note.updated note.deleted
284
+ ```
285
+
286
+ **Session & message**
287
+
288
+ ```
289
+ session.created session.updated session.deleted session.diff
290
+ session.error session.status session.idle session.compacted
291
+ message.updated message.removed message.part.updated message.part.removed
292
+ question.asked question.replied question.rejected
293
+ runtime.reloaded
294
+ todo.updated dag.updated
295
+ ```
296
+
297
+ **Cortex & agenda**
298
+
299
+ ```
300
+ cortex.task.created cortex.task.completed cortex.tasks.updated
301
+ agenda.item.created agenda.item.updated agenda.item.deleted
302
+ ```
303
+
304
+ **PTY**
305
+
306
+ ```
307
+ pty.created pty.updated pty.exited pty.deleted
308
+ ```
309
+
310
+ **Channel**
311
+
312
+ ```
313
+ channel.command.executed channel.connected channel.disconnected
314
+ channel.message.received
315
+ ```
316
+
317
+ **App & Holos**
318
+
319
+ ```
320
+ app.push
321
+ holos.profile.updated
322
+ holos.contact.added holos.contact.removed holos.contact.updated holos.contact.config_updated
323
+ holos.friend_request.created holos.friend_request.updated holos.friend_request.removed
324
+ holos.queue.enqueued holos.queue.delivered holos.queue.expired
325
+ holos.connected holos.connection_status.changed holos.presence
326
+ ```
245
327
 
246
328
  ### Chat and session hooks
247
329
 
package/dist/hooks.d.ts CHANGED
@@ -6,4 +6,9 @@ export interface HookDescriptor {
6
6
  summary: string;
7
7
  }
8
8
  export declare const HOOKS: HookDescriptor[];
9
+ /**
10
+ * All runtime bus event names observable via the `core.event` hook.
11
+ * Source of truth: SDK types.gen.ts `Event` discriminated union (types from BusEvent.define() calls).
12
+ */
13
+ export declare const BUS_EVENT_NAMES: string[];
9
14
  export declare const HOOK_CATEGORIES: HookCategory[];
package/dist/hooks.js CHANGED
@@ -162,6 +162,111 @@ export const HOOKS = [
162
162
  summary: "Rewrite text completion output before finalization",
163
163
  },
164
164
  ];
165
+ /**
166
+ * All runtime bus event names observable via the `core.event` hook.
167
+ * Source of truth: SDK types.gen.ts `Event` discriminated union (types from BusEvent.define() calls).
168
+ */
169
+ export const BUS_EVENT_NAMES = [
170
+ // installation
171
+ "installation.updated",
172
+ "installation.update_available",
173
+ // scope
174
+ "scope.updated",
175
+ "scope.removed",
176
+ // config
177
+ "config.updated",
178
+ "config.set_activated",
179
+ // server
180
+ "server.instance.disposed",
181
+ "server.connected",
182
+ "global.disposed",
183
+ // file
184
+ "file.edited",
185
+ "file.watcher.updated",
186
+ // lsp
187
+ "lsp.updated",
188
+ "lsp.client_diagnostics",
189
+ // mcp
190
+ "mcp.ready",
191
+ "mcp.tools_changed",
192
+ "mcp.prompts_changed",
193
+ "mcp.resources_changed",
194
+ // command
195
+ "command.executed",
196
+ // vcs
197
+ "vcs.branch.updated",
198
+ // permission
199
+ "permission.asked",
200
+ "permission.replied",
201
+ "permission.allow_all_changed",
202
+ // note
203
+ "note.created",
204
+ "note.updated",
205
+ "note.deleted",
206
+ // session
207
+ "session.created",
208
+ "session.updated",
209
+ "session.deleted",
210
+ "session.diff",
211
+ "session.error",
212
+ "session.status",
213
+ "session.idle",
214
+ "session.compacted",
215
+ // question
216
+ "question.asked",
217
+ "question.replied",
218
+ "question.rejected",
219
+ // runtime
220
+ "runtime.reloaded",
221
+ // message
222
+ "message.updated",
223
+ "message.removed",
224
+ "message.part.updated",
225
+ "message.part.removed",
226
+ // todo
227
+ "todo.updated",
228
+ // dag
229
+ "dag.updated",
230
+ // app
231
+ "app.push",
232
+ // holos profile
233
+ "holos.profile.updated",
234
+ // holos contact
235
+ "holos.contact.added",
236
+ "holos.contact.removed",
237
+ "holos.contact.updated",
238
+ "holos.contact.config_updated",
239
+ // holos friend request
240
+ "holos.friend_request.created",
241
+ "holos.friend_request.updated",
242
+ "holos.friend_request.removed",
243
+ // holos queue
244
+ "holos.queue.enqueued",
245
+ "holos.queue.delivered",
246
+ "holos.queue.expired",
247
+ // holos connection
248
+ "holos.connected",
249
+ "holos.connection_status.changed",
250
+ "holos.presence",
251
+ // agenda
252
+ "agenda.item.created",
253
+ "agenda.item.updated",
254
+ "agenda.item.deleted",
255
+ // cortex
256
+ "cortex.task.created",
257
+ "cortex.task.completed",
258
+ "cortex.tasks.updated",
259
+ // pty
260
+ "pty.created",
261
+ "pty.updated",
262
+ "pty.exited",
263
+ "pty.deleted",
264
+ // channel
265
+ "channel.command.executed",
266
+ "channel.connected",
267
+ "channel.disconnected",
268
+ "channel.message.received",
269
+ ];
165
270
  export const HOOK_CATEGORIES = [
166
271
  "core",
167
272
  "chat",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@ericsanchezok/synergy-plugin",
4
- "version": "1.2.2",
4
+ "version": "1.2.4",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {