Files
sim/apps/sim/tools/rootly/index.ts
Waleed 45f053a383 feat(rootly): add Rootly incident management integration with 14 tools (#3899)
* feat(rootly): add Rootly incident management integration with 14 tools

* fix(rootly): address PR review feedback - PATCH method, totalCount, environmentIds

- Changed update_incident HTTP method from PUT to PATCH per Rootly API spec
- Fixed totalCount in all 9 list tools to use data.meta?.total_count from API response
- Added missing updateEnvironmentIds subBlock and params mapping for update_incident

* fix(rootly): add id to PATCH body and unchanged option to update status dropdown

- Include incident id in JSON:API PATCH body per spec requirement
- Add 'Unchanged' empty option to updateStatus dropdown to avoid accidental overwrites

* icon update

* improvement(rootly): complete block-tool alignment and fix validation gaps

- Add missing get_incident output fields (private, shortUrl, closedAt)
- Add missing block subBlocks: createPrivate, alertStatus, alertExternalId, listAlertsServices
- Add pageNumber subBlocks for all 9 list operations
- Add teams/environments filter subBlocks for list_incidents and list_alerts
- Add environmentIds subBlock for create_alert
- Add empty default options to all optional dropdowns (createStatus, createKind, listIncidentsSort, eventVisibility)
- Wire all new subBlocks in tools.config.params and inputs
- Regenerate docs

* fix(rootly): align tools with OpenAPI spec

- list_incident_types: use filter[name] instead of unsupported filter[search]
- list_severities: add missing search param (filter[search])
- create_incident: title is optional per API (auto-generated if null)
- update_incident: add kind, private, labels, incidentTypeIds,
  functionalityIds, cancellationMessage params
- create/update/list incidents: add scheduled, in_progress, completed
  status values
- create_alert: fix status description (only open/triggered on create)
- add_incident_event: add updatedAt to response
- block: add matching subBlocks and params for all new tool fields

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(rootly): final validation fixes from OpenAPI spec audit

- update_incident: change PATCH to PUT per OpenAPI spec
- index.ts: add types re-export
- types.ts: fix id fields to string | null (matches ?? null runtime)
- block: add value initializers to 4 dropdowns missing them
- registry: fix alphabetical order (incident_types before incidents)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* reorg

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 11:40:40 -07:00

16 lines
1.0 KiB
TypeScript

export { rootlyAddIncidentEventTool } from '@/tools/rootly/add_incident_event'
export { rootlyCreateAlertTool } from '@/tools/rootly/create_alert'
export { rootlyCreateIncidentTool } from '@/tools/rootly/create_incident'
export { rootlyGetIncidentTool } from '@/tools/rootly/get_incident'
export { rootlyListAlertsTool } from '@/tools/rootly/list_alerts'
export { rootlyListEnvironmentsTool } from '@/tools/rootly/list_environments'
export { rootlyListFunctionalitiesTool } from '@/tools/rootly/list_functionalities'
export { rootlyListIncidentTypesTool } from '@/tools/rootly/list_incident_types'
export { rootlyListIncidentsTool } from '@/tools/rootly/list_incidents'
export { rootlyListRetrospectivesTool } from '@/tools/rootly/list_retrospectives'
export { rootlyListServicesTool } from '@/tools/rootly/list_services'
export { rootlyListSeveritiesTool } from '@/tools/rootly/list_severities'
export { rootlyListTeamsTool } from '@/tools/rootly/list_teams'
export * from '@/tools/rootly/types'
export { rootlyUpdateIncidentTool } from '@/tools/rootly/update_incident'