Skip to content

Conversation

@4ian
Copy link
Owner

@4ian 4ian commented Jan 8, 2026

This pull request contains changes generated by a Cursor Cloud Agent

Open in Cursor Open in Web

This commit introduces the ability to target events using their `aiGeneratedEventId` in addition to their path. This allows for more robust event manipulation, especially when dealing with dynamically generated events.

The changes include:

- A new helper function `findEventPathByAiGeneratedEventId` to recursively search for events by their AI ID.
- Modifications to `applyEventsChanges` to attempt finding events by AI ID if path parsing fails.
- Addition of new operation types to handle various event replacement and insertion scenarios, such as:
    - `replaceKeepSubEvents`: Replaces an event while preserving its sub-events.
    - `insertActionsConditionsAtEnd` and `insertActionsConditionsAtStart`: Inserts actions and conditions at the beginning or end of an event.
    - `replaceAllActions` and `replaceAllConditions`: Replaces all actions or conditions of an event.
- Corresponding updates to the test suite (`ApplyEventsChanges.spec.js`) to cover these new functionalities and scenarios.

Co-authored-by: florian <[email protected]>
@cursor
Copy link

cursor bot commented Jan 8, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@4ian 4ian merged commit b950579 into master Jan 8, 2026
5 of 6 checks passed
@4ian 4ian deleted the cursor/event-operations-expansion-8c4f branch January 8, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants