MCPcopy Index your code
hub / github.com/simstudioai/sim / isIntegrationBlock

Function isIntegrationBlock

scripts/generate-docs.ts:1142–1144  ·  view source on GitHub ↗

* The single predicate that decides whether an extracted block config belongs * in the integration surfaces emitted by this script — the integrations * catalog (`integrations.json`) and the per-tool `/tools/*.mdx` docs. A block * qualifies only when it is a third-party integration (`category: 'to

(config: { category?: string; hideFromToolbar?: boolean })

Source from the content-addressed store, hash-verified

1140 * `'blocks'` or `'triggers'` removes it from all integration surfaces.
1141 */
1142function isIntegrationBlock(config: { category?: string; hideFromToolbar?: boolean }): boolean {
1143 return config.category === 'tools' && !config.hideFromToolbar
1144}
1145
1146/**
1147 * First-party `category: 'blocks'` primitives that are nonetheless surfaced on

Callers 2

writeIntegrationsJsonFunction · 0.85
getCanonicalToolDocNamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected