Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
My generator created six duplicate connector pages (#712)
Beenu Arora5191b5ce807a
diff --git a/apps/docs/docs/connectors/abnormal-security.md b/apps/docs/docs/connectors/abnormal-security.mddeleted file mode 100644index a0283d8b3..000000000--- a/apps/docs/docs/connectors/abnormal-security.md+++ /dev/null@@ -1,42 +0,0 @@-----title: Abnormal Security-description: Connect Abnormal Security to AiSOC.------# Abnormal Security--{/* Generated by scripts/generate_connector_docs.py from the connector's- schema(). Edit the schema, not this block. Prose between the HUMAN- NOTES markers below is preserved across regeneration. */}--Abnormal Security behavioural-AI email threat events. Polls /v1/threats and /v1/cases for BEC, credential phishing, account takeover, and invoice-fraud detections.--- **Connector id:** `abnormal_security`-- **Category:** saas--## Configuration--| Field | Label | Type | Required | Default | Notes |-|-------|-------|------|----------|---------|-------|-| `base_url` | API base URL | string | no | `https://api.abnormalplatform.com` | — |-| `api_token` | API token | secret | yes | — | **encrypted at rest** · Abnormal Console → Settings → Integrations → API → Generate token. |--:::note Credential handling-`api_token` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API — a read of the saved connector shows the field as set, not its contents. See [credential vault](../operations/credentials.md).-:::--## Setup--1. In the console, go to **Connectors → Add connector** and pick **Abnormal Security**.-2. Fill in the fields above and run **Test connection**. The test is read-only and does not save anything.-3. Save. Polling starts on a jittered schedule within about a minute; the connector row shows `last_sync` once the first poll completes.--:::tip If `last_sync` stays empty-The first poll is the honest signal that the credential works. A connector that saves cleanly and never syncs usually means the credential lacks a scope the vendor requires for reads — check the connectors service log for the vendor's own error, which is passed through verbatim rather than summarised.-:::--<!-- BEGIN HUMAN NOTES -->--_Vendor-specific setup notes go here: which console page issues the credential, which scopes to grant, rate limits, and anything the schema cannot express. This section is preserved when the page is regenerated._--<!-- END HUMAN NOTES -->diff --git a/apps/docs/docs/connectors/abnormal_security.md b/apps/docs/docs/connectors/abnormal_security.mdindex a930d0bc4..0d5674e10 100644--- a/apps/docs/docs/connectors/abnormal_security.md+++ b/apps/docs/docs/connectors/abnormal_security.md@@ -84,3 +84,21 @@ declared severity.silently dropped.- **`429 Too Many Requests`** — the connector backs off automatically;if it persists, lower the poll frequency in the scheduler.++<!-- BEGIN GENERATED FIELD REFERENCE -->++## Configuration reference++{/* Generated by scripts/generate_connector_docs.py from the connector's+ schema(). Edit the schema, not this table. */}++| Field | Label | Type | Required | Default | Notes |+|-------|-------|------|----------|---------|-------|+| `base_url` | API base URL | string | no | `https://api.abnormalplatform.com` | — |+| `api_token` | API token | secret | yes | — | **encrypted at rest** · Abnormal Console → Settings → Integrations → API → Generate token. |++:::note Credential handling+`api_token` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API. See [credential vault](../operations/credentials.md).+:::++<!-- END GENERATED FIELD REFERENCE -->diff --git a/apps/docs/docs/connectors/llm-usage.md b/apps/docs/docs/connectors/llm-usage.mddeleted file mode 100644index 1a78be6e8..000000000--- a/apps/docs/docs/connectors/llm-usage.md+++ /dev/null@@ -1,42 +0,0 @@-----title: AI / LLM Usage Audit-description: Connect AI / LLM Usage Audit to AiSOC.------# AI / LLM Usage Audit--{/* Generated by scripts/generate_connector_docs.py from the connector's- schema(). Edit the schema, not this block. Prose between the HUMAN- NOTES markers below is preserved across regeneration. */}--Pull organization audit logs from OpenAI or Anthropic — API key creation, role grants, logging/MFA changes, project deletes. Pairs with the llm-* detection rules. Auth is an admin/audit-scoped API key.--- **Connector id:** `llm_usage`-- **Category:** saas--## Configuration--| Field | Label | Type | Required | Default | Notes |-|-------|-------|------|----------|---------|-------|-| `provider` | Provider | select | yes | — | one of: `openai`, `anthropic` |-| `api_key` | Admin / Audit API Key | secret | yes | — | **encrypted at rest** |--:::note Credential handling-`api_key` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API — a read of the saved connector shows the field as set, not its contents. See [credential vault](../operations/credentials.md).-:::--## Setup--1. In the console, go to **Connectors → Add connector** and pick **AI / LLM Usage Audit**.-2. Fill in the fields above and run **Test connection**. The test is read-only and does not save anything.-3. Save. Polling starts on a jittered schedule within about a minute; the connector row shows `last_sync` once the first poll completes.--:::tip If `last_sync` stays empty-The first poll is the honest signal that the credential works. A connector that saves cleanly and never syncs usually means the credential lacks a scope the vendor requires for reads — check the connectors service log for the vendor's own error, which is passed through verbatim rather than summarised.-:::--<!-- BEGIN HUMAN NOTES -->--_Vendor-specific setup notes go here: which console page issues the credential, which scopes to grant, rate limits, and anything the schema cannot express. This section is preserved when the page is regenerated._--<!-- END HUMAN NOTES -->diff --git a/apps/docs/docs/connectors/llm_usage.md b/apps/docs/docs/connectors/llm_usage.mdindex 40d006924..d1235928f 100644--- a/apps/docs/docs/connectors/llm_usage.md+++ b/apps/docs/docs/connectors/llm_usage.md@@ -33,3 +33,21 @@ pairs with the built-in `llm-*` detection rules, which fire on the emittedEvents flow through ingest → Kafka → fusion, where the `llm-*` detections fireand matching alerts are auto-triaged (copilot).++<!-- BEGIN GENERATED FIELD REFERENCE -->++## Configuration reference++{/* Generated by scripts/generate_connector_docs.py from the connector's+ schema(). Edit the schema, not this table. */}++| Field | Label | Type | Required | Default | Notes |+|-------|-------|------|----------|---------|-------|+| `provider` | Provider | select | yes | — | one of: `openai`, `anthropic` |+| `api_key` | Admin / Audit API Key | secret | yes | — | **encrypted at rest** |++:::note Credential handling+`api_key` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API. See [credential vault](../operations/credentials.md).+:::++<!-- END GENERATED FIELD REFERENCE -->diff --git a/apps/docs/docs/connectors/sublime-security.md b/apps/docs/docs/connectors/sublime-security.mddeleted file mode 100644index f7a3a3acb..000000000--- a/apps/docs/docs/connectors/sublime-security.md+++ /dev/null@@ -1,42 +0,0 @@-----title: Sublime Security-description: Connect Sublime Security to AiSOC.------# Sublime Security--{/* Generated by scripts/generate_connector_docs.py from the connector's- schema(). Edit the schema, not this block. Prose between the HUMAN- NOTES markers below is preserved across regeneration. */}--Sublime Security inbound-email detections. Polls /v1/messages for malicious + suspicious verdicts and links them to the originating mailbox + sender.--- **Connector id:** `sublime_security`-- **Category:** saas--## Configuration--| Field | Label | Type | Required | Default | Notes |-|-------|-------|------|----------|---------|-------|-| `base_url` | API base URL | string | no | `https://api.platform.sublimesecurity.com` | Override only for self-hosted / regional Sublime tenants. |-| `api_key` | API key | secret | yes | — | **encrypted at rest** · Sublime → Settings → API → Create token. |--:::note Credential handling-`api_key` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API — a read of the saved connector shows the field as set, not its contents. See [credential vault](../operations/credentials.md).-:::--## Setup--1. In the console, go to **Connectors → Add connector** and pick **Sublime Security**.-2. Fill in the fields above and run **Test connection**. The test is read-only and does not save anything.-3. Save. Polling starts on a jittered schedule within about a minute; the connector row shows `last_sync` once the first poll completes.--:::tip If `last_sync` stays empty-The first poll is the honest signal that the credential works. A connector that saves cleanly and never syncs usually means the credential lacks a scope the vendor requires for reads — check the connectors service log for the vendor's own error, which is passed through verbatim rather than summarised.-:::--<!-- BEGIN HUMAN NOTES -->--_Vendor-specific setup notes go here: which console page issues the credential, which scopes to grant, rate limits, and anything the schema cannot express. This section is preserved when the page is regenerated._--<!-- END HUMAN NOTES -->diff --git a/apps/docs/docs/connectors/sublime_security.md b/apps/docs/docs/connectors/sublime_security.mdindex 6c0e65e72..de4ea42b4 100644--- a/apps/docs/docs/connectors/sublime_security.md+++ b/apps/docs/docs/connectors/sublime_security.md@@ -83,3 +83,21 @@ the AiSOC ladder:- **No events** — Sublime only emits message rows when its rule engineevaluates a message. A brand-new tenant with no rules enabled willproduce no rows.++<!-- BEGIN GENERATED FIELD REFERENCE -->++## Configuration reference++{/* Generated by scripts/generate_connector_docs.py from the connector's+ schema(). Edit the schema, not this table. */}++| Field | Label | Type | Required | Default | Notes |+|-------|-------|------|----------|---------|-------|+| `base_url` | API base URL | string | no | `https://api.platform.sublimesecurity.com` | Override only for self-hosted / regional Sublime tenants. |+| `api_key` | API key | secret | yes | — | **encrypted at rest** · Sublime → Settings → API → Create token. |++:::note Credential handling+`api_key` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API. See [credential vault](../operations/credentials.md).+:::++<!-- END GENERATED FIELD REFERENCE -->diff --git a/apps/docs/docs/connectors/syslog-cef.md b/apps/docs/docs/connectors/syslog-cef.mddeleted file mode 100644index 98ab21a20..000000000--- a/apps/docs/docs/connectors/syslog-cef.md+++ /dev/null@@ -1,43 +0,0 @@-----title: Syslog / CEF-description: Connect Syslog / CEF to AiSOC.------# Syslog / CEF--{/* Generated by scripts/generate_connector_docs.py from the connector's- schema(). Edit the schema, not this block. Prose between the HUMAN- NOTES markers below is preserved across regeneration. */}--Generic listener for appliances that speak syslog + ArcSight CEF. A syslog receiver writes messages to a spool endpoint; this connector parses the CEF header + extension and maps CEF severity (0-10) to the five-tier ladder. Non-CEF lines are ingested at info.--- **Connector id:** `syslog_cef`-- **Category:** network--## Configuration--| Field | Label | Type | Required | Default | Notes |-|-------|-------|------|----------|---------|-------|-| `spool_url` | Spool URL | string | yes | — | — |-| `api_token` | Spool token | secret | yes | — | **encrypted at rest** |-| `verify_tls` | Verify TLS certificate | boolean | no | `True` | — |--:::note Credential handling-`api_token` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API — a read of the saved connector shows the field as set, not its contents. See [credential vault](../operations/credentials.md).-:::--## Setup--1. In the console, go to **Connectors → Add connector** and pick **Syslog / CEF**.-2. Fill in the fields above and run **Test connection**. The test is read-only and does not save anything.-3. Save. Polling starts on a jittered schedule within about a minute; the connector row shows `last_sync` once the first poll completes.--:::tip If `last_sync` stays empty-The first poll is the honest signal that the credential works. A connector that saves cleanly and never syncs usually means the credential lacks a scope the vendor requires for reads — check the connectors service log for the vendor's own error, which is passed through verbatim rather than summarised.-:::--<!-- BEGIN HUMAN NOTES -->--_Vendor-specific setup notes go here: which console page issues the credential, which scopes to grant, rate limits, and anything the schema cannot express. This section is preserved when the page is regenerated._--<!-- END HUMAN NOTES -->diff --git a/apps/docs/docs/connectors/syslog_cef.md b/apps/docs/docs/connectors/syslog_cef.mdindex 6abbaa299..d9a67388d 100644--- a/apps/docs/docs/connectors/syslog_cef.md+++ b/apps/docs/docs/connectors/syslog_cef.md@@ -14,3 +14,22 @@ The **Syslog / CEF** connector (`syslog_cef`, category `network`) pulls generic3. Click **Test connection** to verify credentials, then **Save**. The in-process scheduler begins polling on the default cadence.Events flow through ingest (OCSF normalize) -> Kafka -> fusion, where detections fire and alerts are auto-triaged (copilot).++<!-- BEGIN GENERATED FIELD REFERENCE -->++## Configuration reference++{/* Generated by scripts/generate_connector_docs.py from the connector's+ schema(). Edit the schema, not this table. */}++| Field | Label | Type | Required | Default | Notes |+|-------|-------|------|----------|---------|-------|+| `spool_url` | Spool URL | string | yes | — | — |+| `api_token` | Spool token | secret | yes | — | **encrypted at rest** |+| `verify_tls` | Verify TLS certificate | boolean | no | `True` | — |++:::note Credential handling+`api_token` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API. See [credential vault](../operations/credentials.md).+:::++<!-- END GENERATED FIELD REFERENCE -->diff --git a/apps/docs/docs/connectors/windows-event.md b/apps/docs/docs/connectors/windows-event.mddeleted file mode 100644index f84033f6f..000000000--- a/apps/docs/docs/connectors/windows-event.md+++ /dev/null@@ -1,43 +0,0 @@-----title: Windows Event / Sysmon-description: Connect Windows Event / Sysmon to AiSOC.------# Windows Event / Sysmon--{/* Generated by scripts/generate_connector_docs.py from the connector's- schema(). Edit the schema, not this block. Prose between the HUMAN- NOTES markers below is preserved across regeneration. */}--Pull Windows Security + Sysmon events from a Windows Event Forwarding (WEF) collector's JSON spool endpoint. Severity is derived from channel + Event ID (log clears, service installs, process injection floored appropriately).--- **Connector id:** `windows_event`-- **Category:** edr--## Configuration--| Field | Label | Type | Required | Default | Notes |-|-------|-------|------|----------|---------|-------|-| `collector_url` | Collector spool URL | string | yes | — | — |-| `api_token` | Spool token | secret | yes | — | **encrypted at rest** |-| `verify_tls` | Verify TLS certificate | boolean | no | `True` | — |--:::note Credential handling-`api_token` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API — a read of the saved connector shows the field as set, not its contents. See [credential vault](../operations/credentials.md).-:::--## Setup--1. In the console, go to **Connectors → Add connector** and pick **Windows Event / Sysmon**.-2. Fill in the fields above and run **Test connection**. The test is read-only and does not save anything.-3. Save. Polling starts on a jittered schedule within about a minute; the connector row shows `last_sync` once the first poll completes.--:::tip If `last_sync` stays empty-The first poll is the honest signal that the credential works. A connector that saves cleanly and never syncs usually means the credential lacks a scope the vendor requires for reads — check the connectors service log for the vendor's own error, which is passed through verbatim rather than summarised.-:::--<!-- BEGIN HUMAN NOTES -->--_Vendor-specific setup notes go here: which console page issues the credential, which scopes to grant, rate limits, and anything the schema cannot express. This section is preserved when the page is regenerated._--<!-- END HUMAN NOTES -->diff --git a/apps/docs/docs/connectors/windows_event.md b/apps/docs/docs/connectors/windows_event.mdindex 3c497eb53..488659cee 100644--- a/apps/docs/docs/connectors/windows_event.md+++ b/apps/docs/docs/connectors/windows_event.md@@ -14,3 +14,22 @@ The **Windows Event / Sysmon** connector (`windows_event`, category `edr`) pulls3. Click **Test connection** to verify credentials, then **Save**. The in-process scheduler begins polling on the default cadence.Events flow through ingest (OCSF normalize) -> Kafka -> fusion, where detections fire and alerts are auto-triaged (copilot).++<!-- BEGIN GENERATED FIELD REFERENCE -->++## Configuration reference++{/* Generated by scripts/generate_connector_docs.py from the connector's+ schema(). Edit the schema, not this table. */}++| Field | Label | Type | Required | Default | Notes |+|-------|-------|------|----------|---------|-------|+| `collector_url` | Collector spool URL | string | yes | — | — |+| `api_token` | Spool token | secret | yes | — | **encrypted at rest** |+| `verify_tls` | Verify TLS certificate | boolean | no | `True` | — |++:::note Credential handling+`api_token` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API. See [credential vault](../operations/credentials.md).+:::++<!-- END GENERATED FIELD REFERENCE -->diff --git a/apps/docs/docs/connectors/zeek-suricata.md b/apps/docs/docs/connectors/zeek-suricata.mddeleted file mode 100644index fae5169db..000000000--- a/apps/docs/docs/connectors/zeek-suricata.md+++ /dev/null@@ -1,44 +0,0 @@-----title: Zeek / Suricata NDR-description: Connect Zeek / Suricata NDR to AiSOC.------# Zeek / Suricata NDR--{/* Generated by scripts/generate_connector_docs.py from the connector's- schema(). Edit the schema, not this block. Prose between the HUMAN- NOTES markers below is preserved across regeneration. */}--Pull network-detection events from a Zeek (notice.log) or Suricata (eve.json alert) sensor's JSON spool. Suricata alert severity (1=highest) and Zeek notice types map to the five-tier ladder.--- **Connector id:** `zeek_suricata`-- **Category:** ndr--## Configuration--| Field | Label | Type | Required | Default | Notes |-|-------|-------|------|----------|---------|-------|-| `engine` | Sensor engine | select | yes | — | one of: `suricata`, `zeek` |-| `spool_url` | Spool URL | string | yes | — | — |-| `api_token` | Spool token | secret | yes | — | **encrypted at rest** |-| `verify_tls` | Verify TLS certificate | boolean | no | `True` | — |--:::note Credential handling-`api_token` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API — a read of the saved connector shows the field as set, not its contents. See [credential vault](../operations/credentials.md).-:::--## Setup--1. In the console, go to **Connectors → Add connector** and pick **Zeek / Suricata NDR**.-2. Fill in the fields above and run **Test connection**. The test is read-only and does not save anything.-3. Save. Polling starts on a jittered schedule within about a minute; the connector row shows `last_sync` once the first poll completes.--:::tip If `last_sync` stays empty-The first poll is the honest signal that the credential works. A connector that saves cleanly and never syncs usually means the credential lacks a scope the vendor requires for reads — check the connectors service log for the vendor's own error, which is passed through verbatim rather than summarised.-:::--<!-- BEGIN HUMAN NOTES -->--_Vendor-specific setup notes go here: which console page issues the credential, which scopes to grant, rate limits, and anything the schema cannot express. This section is preserved when the page is regenerated._--<!-- END HUMAN NOTES -->diff --git a/apps/docs/docs/connectors/zeek_suricata.md b/apps/docs/docs/connectors/zeek_suricata.mdindex ee05d5366..e3747521a 100644--- a/apps/docs/docs/connectors/zeek_suricata.md+++ b/apps/docs/docs/connectors/zeek_suricata.md@@ -14,3 +14,23 @@ The **Zeek / Suricata NDR** connector (`zeek_suricata`, category `ndr`) pulls Ze3. Click **Test connection** to verify credentials, then **Save**. The in-process scheduler begins polling on the default cadence.Events flow through ingest (OCSF normalize) -> Kafka -> fusion, where detections fire and alerts are auto-triaged (copilot).++<!-- BEGIN GENERATED FIELD REFERENCE -->++## Configuration reference++{/* Generated by scripts/generate_connector_docs.py from the connector's+ schema(). Edit the schema, not this table. */}++| Field | Label | Type | Required | Default | Notes |+|-------|-------|------|----------|---------|-------|+| `engine` | Sensor engine | select | yes | — | one of: `suricata`, `zeek` |+| `spool_url` | Spool URL | string | yes | — | — |+| `api_token` | Spool token | secret | yes | — | **encrypted at rest** |+| `verify_tls` | Verify TLS certificate | boolean | no | `True` | — |++:::note Credential handling+`api_token` is encrypted at rest by the credential vault before the row is written, and decrypted only at poll time. The value is never logged and never returned by the API. See [credential vault](../operations/credentials.md).+:::++<!-- END GENERATED FIELD REFERENCE -->diff --git a/apps/docs/sidebars.ts b/apps/docs/sidebars.tsindex aa8d02ac4..24bcc7643 100644--- a/apps/docs/sidebars.ts+++ b/apps/docs/sidebars.ts@@ -76,7 +76,8 @@ const sidebars: SidebarsConfig = {"connectors/endpoint-decision-matrix","connectors/api-coverage","connectors/universal-capture",- "connectors/abnormal-security",+ "connectors/osquery-extensions",+ "connectors/abnormal_security","connectors/ai-gateway","connectors/auditd","connectors/auth0",@@ -119,7 +120,7 @@ const sidebars: SidebarsConfig = {"connectors/jumpcloud","connectors/kubernetes-audit","connectors/lacework",- "connectors/llm-usage",+ "connectors/llm_usage","connectors/m365-audit","connectors/microsoft-sentinel","connectors/mimecast",@@ -144,10 +145,10 @@ const sidebars: SidebarsConfig = {"connectors/snowflake","connectors/snyk","connectors/splunk",- "connectors/sublime-security",+ "connectors/sublime_security","connectors/sumo-logic","connectors/sysdig",- "connectors/syslog-cef",+ "connectors/syslog_cef","connectors/tailscale","connectors/tenable-io","connectors/tines",@@ -156,9 +157,9 @@ const sidebars: SidebarsConfig = {"connectors/trend-vision-one","connectors/vault","connectors/wazuh",- "connectors/windows-event",+ "connectors/windows_event","connectors/wiz",- "connectors/zeek-suricata",+ "connectors/zeek_suricata","connectors/zscaler",// END GENERATED CONNECTOR LIST],diff --git a/scripts/generate_connector_docs.py b/scripts/generate_connector_docs.pyindex 79426f03c..fa6169954 100644--- a/scripts/generate_connector_docs.py+++ b/scripts/generate_connector_docs.py@@ -171,9 +171,39 @@ def _is_secret(field) -> bool:return getattr(field, "secret", False) or str(getattr(field, "type", "")) == "secret"+def duplicate_slugs() -> list[tuple[str, list[str]]]:+ """Pages that differ only by separator.++ Six connectors had a hand-written page using underscores while the+ generator assumed hyphens, so it saw no page and wrote a second,+ thinner one beside the original — and listed only its own in the+ sidebar, dropping the better half of each pair out of navigation.+ """+ groups: dict[str, list[str]] = {}+ for path in sorted(DOCS_DIR.glob("*.md")):+ groups.setdefault(path.stem.replace("_", "-"), []).append(path.stem)+ return [(key, names) for key, names in groups.items() if len(names) > 1]++def _slug(connector_id: str) -> str:- """Doc filename for a connector id. Docs use hyphens, modules underscores."""- return connector_id.replace("_", "-")+ """Doc filename for a connector id.++ Hyphens are the convention, but six pages predate it and use+ underscores. Assuming the convention meant the coverage check saw no+ page for those connectors and generated a second, thinner one beside+ the hand-written original — six duplicate pages, with the better half+ of each pair dropped from the sidebar.++ So an existing page wins over the convention, whichever separator it+ used. Only a connector with no page at all gets the hyphenated form.+ """+ hyphenated = connector_id.replace("_", "-")+ if (DOCS_DIR / f"{hyphenated}.md").exists():+ return hyphenated+ underscored = connector_id.replace("-", "_")+ if (DOCS_DIR / f"{underscored}.md").exists():+ return underscored+ return hyphenateddef _human_block(path: Path) -> str:@@ -381,6 +411,8 @@ SIDEBAR_PREAMBLE = ("connectors/endpoint-decision-matrix","connectors/api-coverage","connectors/universal-capture",+ # Not a connector, so the generated list below does not cover it.+ "connectors/osquery-extensions",)SIDEBAR_START = "// BEGIN GENERATED CONNECTOR LIST"@@ -509,6 +541,7 @@ def main(argv: list[str] | None = None) -> int:path.write_text(rendered, encoding="utf-8")written += 1+ dupes = duplicate_slugs()sidebar_ok = sync_sidebar(schemas, check=args.check)if args.check:@@ -548,6 +581,16 @@ def main(argv: list[str] | None = None) -> int:"alone, only the reference table is rewritten.",file=sys.stderr,)+ if dupes:+ print(+ f"CONNECTOR DOC GATE FAILED: {len(dupes)} connector(s) have two "+ f"pages differing only by separator. One will be orphaned from "+ f"the sidebar:",+ file=sys.stderr,+ )+ for _key, names in dupes:+ print(f" {' and '.join(n + '.md' for n in names)}", file=sys.stderr)+ return 1if mdx_breaks:print(f"CONNECTOR DOC GATE FAILED: {len(mdx_breaks)} page(s) contain "