-
Notifications
You must be signed in to change notification settings - Fork 1
Add registerEvent to the Swift SDK #126
Copy link
Copy link
Open
Labels
area:native-corepackages/native Swift and Kotlin corepackages/native Swift and Kotlin coreplatform:iosAffects the iOS SDK or iOS buildsAffects the iOS SDK or iOS 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:iosAffects the iOS SDK or iOS buildsAffects the iOS SDK or iOS 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 #127.
Why
Swift apps post events that agents can't discover. They need a way to declare them, like
registerTool.Expected outcome
registerEvent(EventDescriptor) throws -> EventRegistrationin the Swift 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