diff --git a/client/pages/docs/DocsIntegrations.tsx b/client/pages/docs/DocsIntegrations.tsx index 08b52bec..881d7043 100644 --- a/client/pages/docs/DocsIntegrations.tsx +++ b/client/pages/docs/DocsIntegrations.tsx @@ -29,6 +29,7 @@ import { AlertTriangle, FileText, } from "lucide-react"; +import { Link } from "react-router-dom"; const embedSettings = [ { @@ -93,7 +94,8 @@ export default function DocsIntegrations() {
AeThex supports secure, theme-aware embeds for third-party agents and tools. This guide covers the
HelloSkip support assistant that ships with the platform and outlines patterns you can reuse for future
- integrations.
+ integrations. The router-aware SkipAgentController keeps the
+ experience out of the documentation space while still making it available across the rest of the site.
- The HelloSkip agent is lazily loaded at runtime from main.tsx using a
- guarded fetch. Before executing the external runtime, AeThex performs a status preflight against
- /api/agent/status. If the agent is unavailable, initialization is skipped to
- prevent console noise.
+ The HelloSkip agent utilities live in lib/skip-agent.ts. They lazily fetch the
+ runtime once and gate initialization behind a guarded status check at
+ /api/agent/status. If the endpoint is unreachable or reports an inactive agent,
+ the embed is skipped to avoid client-side errors.
- On success, the script injects HelloSkip's global object and immediately calls
+ When healthy, the loader injects HelloSkip's global object and calls
window.SkipAgent.embed with AeThex-specific sizing, copy, and z-index values.
A companion stylesheet applies the gradient, border, and focus treatments to match the site aesthetic.
SKIP_AGENT_EMBED_OPTIONS in
- client/main.tsx.
+ client/lib/skip-agent.ts.
SkipAgentController for embeds that should
+ disappear on specific routes.