| 1 |
// Ability workflows are synthesized per-request by the backend under a |
| 2 |
// `wp-ability:` id prefix, so they carry no static workflow definition. |
| 3 |
export const isAbilityWorkflow = (id) => |
| 4 |
typeof id === 'string' && id.startsWith('wp-ability:'); |
| 5 |
|
| 6 |
// Confirmed abilities are writes, and nothing else re-renders what they changed. |
| 7 |
export const isAbilityTool = (id) => |
| 8 |
(window.extAgentData?.wpAbilities ?? []).some((category) => |
| 9 |
category.abilities?.some((ability) => ability.name === id), |
| 10 |
); |
| 11 |
|