ef013690f3a9f3b5953fa13c21f028b804a0cf81
Scripts can now branch on WHO triggered the workflow and their role in the base, without an extra API call (the workflow token has no role-read scope). New triggerInput fields (user-initiated triggers only: buttonClick / recordCreated / recordUpdated / recordCondition / formSubmitted): - _triggerUserRoles: string[] (enabled role display names in this base) - _triggerUserIsAdmin: boolean (space owner / AM admin / AM-disabled) Absent for scheduledTime / webhook (no user context). Implementation: - trigger-user-info.ts: resolveTriggerUserInfo(prisma, baseId, userId) — standalone, unit-tested (8 tests). Mirrors the admin logic in AuthorityMatrixPermissionService but returns only role names + bool. - workflow-runner.service.ts: resolve once at first action node, merge into enrichedInput (both execute() and test() paths). - skill action-types.md: document the fields + script branching example.
Description
No description provided
635 KiB
Languages
TypeScript
66.4%
Python
24.8%
Shell
8.1%
JavaScript
0.7%