-
Notifications
You must be signed in to change notification settings - Fork 1
Add registerEvent to the Kotlin SDK #127
Copy link
Copy link
Open
Labels
area:native-corepackages/native Swift and Kotlin corepackages/native Swift and Kotlin coreplatform:androidAffects the Android SDK or Android buildsAffects the Android SDK or Android buildsstatus:readySpec and fix direction are clear; an agent can pick it upSpec and fix direction are clear; an agent can pick it uptype:featureSomething Appduct should do that it does not todaySomething Appduct should do that it does not today
Description
Activity
Metadata
Metadata
Assignees
Labels
area:native-corepackages/native Swift and Kotlin corepackages/native Swift and Kotlin coreplatform:androidAffects the Android SDK or Android buildsAffects the Android SDK or Android buildsstatus:readySpec and fix direction are clear; an agent can pick it upSpec and fix direction are clear; an agent can pick it uptype:featureSomething Appduct should do that it does not todaySomething Appduct should do that it does not today
Part of #95. Needs #124. Can run alongside #126.
Why
Kotlin apps post events that agents can't discover. They need a way to declare them, like
registerTool.Expected outcome
registerEvent(EventDescriptor): EventRegistrationin the Kotlin core, shaped likeregisterTool. The SDK sends a snapshot of all declared events after every ack that carriesevent_registry: true, and a delta for each later declaration or disposal.Constraints and non-goals
event_registryflag in the ack (an older CLI), the SDK sends no event frames and the session keeps working.How we know it is done
fixtures/event-descriptors.json.event_registry: true, including the ack after a resume, is followed by a snapshot of the current declarations.removedelta.Alternatives considered
none