ez-agent-lib/src/main/java/name/devnull/ezagent/lib/event/package-info.java

/**
 * Client-only immutable protocol projections, primarily modeled on Ruby's
 * api/event.rb and api/values.rb, with wire names/shapes from pkg/protocol.
 *
 * <p>{@link name.devnull.ezagent.lib.event.EventDecoder} recognizes chat streaming,
 * leaf lifecycle/snapshots, prompt/agent/turn lifecycle, errors, informational
 * messages, background work, all current client RPC categories (sessions,
 * history, configuration, models/providers, tools/plugins/macros, filetypes,
 * connections and explicit daemon administration), plus capability wire frames.
 * Unknown frame types retain their exact type and payload with UNKNOWN kind.
 * Kind describes a payload family, not a routing decision: several leaf/chat
 * acknowledgements are also RPC replies. Core owns correlation and delivery.
 *
 * <p>Most events and RPC/capability frames intentionally use one open immutable
 * wrapper, not a class per operation or an exhaustive DTO schema. Stable
 * frontend fields are validated; arbitrary response payloads and nested chat
 * messages remain open JSON. LeafUpdated, progress and pending questions have
 * strict Ruby-compatible projections. Unknown pending-question kinds currently
 * fail validation, just as in Ruby; unknown fields on known questions survive.
 * Progress decoder validation follows Ruby's snapshot shapes, not the separate
 * producer-side report_progress byte/line limits. No current projection is a
 * patch: zero, false, empty and null values must not be merged with stale state.
 * Omitted pending_questions projects to [] for compatibility but remains absent
 * in toJson. has/isNull/value distinguish absent, null and clearing values.
 *
 * <p>This package does not run a service, host tools/plugins/macros, execute
 * background tasks, retry/replay, reconnect, start/stop daemons, perform SSH,
 * parse JSONL framing, match requests, schedule listeners or own UI state.
 * Capability frames are recognized for diagnostics only; provider hosting is
 * deliberately outside the Android client's scope. No event decoder causes an
 * outbound message or any other side effect.
 */
package name.devnull.ezagent.lib.event;