Files
Davide Silvestri d21801281f feat(agent): trigger agents when rows are created, updated or deleted (#6695)
* feat(agent): trigger agents when rows are created, updated or deleted

* test(agent): find the trigger picker by the class it now has

The trigger picker renders the shared service picker since the send
email actions, so its menu is under .agent-service-picker.

* fix(agent): check a trigger's access again before its conversation starts

The task that starts a firing's conversation trusted the access check made
when the event happened. A run identity removed, trashed or without access
by the time the task ran still got a conversation with the event's rows.

* fix(agent): apply the row trigger review fixes

- A type change moves an overlap rule left at the old type's default to
  the new type's default.
- Queued replies wait while the run identity can't read what the trigger
  watches.
- An imported formula is kept as written when no path is remapped,
  through one import_formula in core.
- Row events hand their listeners services holding the event's table.
- Trigger form choices no longer read the workspace's views.
- A first row too long for a message is cut short instead of left out.
- A no-access error for a type the card no longer shows is ignored.
- The dispatcher no longer clamps the batch size.

* fix(agent): keep the merged trigger behaviour and UI for row triggers

- Skipping stays the default overlap rule: only the row trigger types say
  their events can't be skipped, so HTTP and periodic triggers start as
  they did before.
- The workspace-access note is a plain alert and the batch size field is
  spaced like the hosted forms, without style overrides.
- The type-change and queued-firing tests are develop's again, with the
  row trigger tests added after them.
- ADR 014 names the hooks row triggers add to the shared service type.

* fix(agent): show a row trigger without workspace access as misconfigured

The trigger can't run until the agent has workspace access, so its card
gets the error icon with a tooltip and the database field shows the error,
instead of an info note.
2026-11-17 23:42:51 +01:00

27 lines
1012 B
JSON

{
"name": "e2e-tests",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"test": "playwright test --project=chrome",
"test-ui": "playwright test --project=chrome --ui",
"test-fast-only": "playwright test --project=chrome --grep @fast",
"test-enterprise-only": "playwright test --project=chrome --grep @enterprise",
"test-search-only": "playwright test --project=chrome --grep @search",
"test-search-only-debug": "playwright test --project=chrome --grep @search --debug",
"test-builder": "playwright test --project=chrome --grep builder",
"test-automation": "playwright test --project=chrome --grep automation",
"test-headed": "playwright test --project=chrome --headed",
"test-ci": "CI=1 playwright test --grep-invert=@slow",
"codegen": "playwright codegen"
},
"dependencies": {
"@faker-js/faker": "10.5.0",
"@nuxt/test-utils": "^3.21.0",
"@playwright/test": "1.64.1",
"axios": "1.20.0",
"dotenv": "16.0.3"
}
}