From 912da6b8f42d3248d034630e6a3fa2b3a1248532 Mon Sep 17 00:00:00 2001 From: Raj Nandan Sharma Date: Wed, 18 Mar 2026 22:17:34 +0530 Subject: [PATCH] Remove unused llms.txt and sitemap.xml server handlers to streamline codebase --- .../v4/guides/api-custom-eval-examples.md | 4 +- .../[tag]/components/MonitorAlerting.svelte | 582 ------------------ src/routes/llms.txt/+server.ts | 11 - src/routes/sitemap.xml/+server.ts | 53 -- 4 files changed, 2 insertions(+), 648 deletions(-) delete mode 100644 src/routes/(manage)/manage/app/monitors/[tag]/components/MonitorAlerting.svelte delete mode 100644 src/routes/llms.txt/+server.ts delete mode 100644 src/routes/sitemap.xml/+server.ts diff --git a/src/routes/(docs)/docs/content/v4/guides/api-custom-eval-examples.md b/src/routes/(docs)/docs/content/v4/guides/api-custom-eval-examples.md index 7908434c..6b5785d1 100644 --- a/src/routes/(docs)/docs/content/v4/guides/api-custom-eval-examples.md +++ b/src/routes/(docs)/docs/content/v4/guides/api-custom-eval-examples.md @@ -81,7 +81,7 @@ SECRET_PARAM=your_real_secret_value ## Cheerio HTML content check {#cheerio-html-check-eval} ```javascript -;(async function (statusCode, responseTime, responseRaw, modules) { +async function (statusCode, responseTime, responseRaw, modules) { if (statusCode !== 200) { return { status: "DOWN", latency: responseTime } } @@ -99,5 +99,5 @@ SECRET_PARAM=your_real_secret_value status: status ? "UP" : "DOWN", latency: responseTime } -}) +} ``` diff --git a/src/routes/(manage)/manage/app/monitors/[tag]/components/MonitorAlerting.svelte b/src/routes/(manage)/manage/app/monitors/[tag]/components/MonitorAlerting.svelte deleted file mode 100644 index 3149f2e7..00000000 --- a/src/routes/(manage)/manage/app/monitors/[tag]/components/MonitorAlerting.svelte +++ /dev/null @@ -1,582 +0,0 @@ - - -
- - - Alerting - Alert configurations define when and how you get notified about monitor issues. - - - - - {#if loading} -
- -

Loading alerts...

-
- {:else if alertConfigs.length === 0} -
- -

No alerts configured yet

-

Create an alert to get notified when your monitor has issues

-
- {:else} -
- {#each alertConfigs as alert (alert.id)} -
-
-
- - {alert.severity} - - {alert.alert_for} - {#if alert.is_active === GC.NO} - Inactive - {/if} - {#if alert.create_incident === GC.YES} - Creates Incident - {/if} -
- -

- {getAlertText({ - kind: "description", - alert_for: alert.alert_for, - alert_value: alert.alert_value, - failure_threshold: alert.failure_threshold, - success_threshold: alert.success_threshold - })} -

- - {#if alert.alert_description} -

{alert.alert_description}

- {/if} - - {#if alert.triggers.length > 0} -
- {#each alert.triggers as trigger (trigger.id)} - - {trigger.name} - - {/each} -
- {/if} -
- -
- toggleAlertStatus(alert)} /> - - -
-
- {/each} -
- {/if} -
-
- - - !o && resetForm()}> - - - {isEditing ? "Edit Alert" : "Create New Alert"} - - Configure when to trigger an alert and which notification channels to use. - - - -
- -
- - v && handleAlertForChange(v as AlertForType)} - > - - {alertForOptions.find((o) => o.value === form.alert_for)?.label || "Select type"} - - - {#each alertForOptions as option} - {option.label} - {/each} - - -
- - -
- - {#if form.alert_for === "STATUS"} - v && (form.alert_value = v)}> - - {form.alert_value} - - - {#each statusValueOptions as option} - {option.label} - {/each} - - - {:else} - - {/if} -

{alertValueHelp}

-
- - -
-
- - -

Consecutive failures before alert

-
- -
- - -

Consecutive successes to resolve

-
-
- - -
- - v && (form.severity = v as AlertSeverityType)} - > - - {severityOptions.find((o) => o.value === form.severity)?.label || "Select severity"} - - - {#each severityOptions as option} - {option.label} - {/each} - - -
- - -
- - v && (form.create_incident = v as YesNoType)} - > - - {form.create_incident} - - - {#each yesNoOptions as option} - {option.label} - {/each} - - -

Automatically create an incident when this alert triggers

-
- - - {#if isEditing} -
- - v && (form.is_active = v as YesNoType)} - > - - {form.is_active} - - - {#each yesNoOptions as option} - {option.label} - {/each} - - -
- {/if} - - -
- -