Files
logos-logoscore-cli/docs
Dario LipicarandClaude Opus 4.8 d4027d0b29 Surface module events in module-info (#38)
* Surface module events in module-info

module-info now reports a module's events alongside its methods. The
core_service gateway calls the wrapped module's getPluginEvents
introspection and threads the result into the module-info payload, and
the client prints an Events section (name + params, no return type,
plus the per-event description) after Methods.

- core_service_impl: getModuleInfo also invokeRemoteMethod(name,
  "getPluginEvents") -> info["events"].
- output: print an Events section mirroring Methods (multi-line
  descriptions preserved, indented).
- docs: README + spec event examples.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Fix off-by-one in description rendering; add events output test

Address review feedback (#38):

- output: the multi-line description loop used 'start <= size()', which
  printed an extra blank indented line when a description ended with a
  trailing newline. Use a strict '<' bound (applied to both the methods
  and events loops).
- test_output: new human-mode test asserts the Events section renders
  'name(params)' with no return arrow and preserves a multi-line
  description.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 17:17:03 -03:00
..
2026-03-24 17:28:59 -04:00