From 36b84294b44802ccd9caca40fbd7cfe8b3e8eda5 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Fri, 12 Dec 2025 10:04:46 +1000 Subject: [PATCH] docs(sdk): improve diagram tooltips and fix GitHub button labels - Make tooltips more verbose with detailed explanations for each node - Add tooltip for 'Your Tools' node - Change GitHub button labels from 'GitHub' to 'Source' - Fix missing

closing tags --- apps/web/src/app/sdk/page.tsx | 4 +- apps/web/src/components/SDKFlowDiagram.tsx | 56 +++++++++++++++------- 2 files changed, 41 insertions(+), 19 deletions(-) diff --git a/apps/web/src/app/sdk/page.tsx b/apps/web/src/app/sdk/page.tsx index 9233d8f..429d1e3 100644 --- a/apps/web/src/app/sdk/page.tsx +++ b/apps/web/src/app/sdk/page.tsx @@ -197,7 +197,7 @@ Use registrySearch to find tools, then registryExecute to run them.\`, - GitHub + Source @@ -323,7 +323,7 @@ Use registrySearch to find tools, then registryExecute to run them.\`, - GitHub + Source diff --git a/apps/web/src/components/SDKFlowDiagram.tsx b/apps/web/src/components/SDKFlowDiagram.tsx index b5ad8c5..ae75bc1 100644 --- a/apps/web/src/components/SDKFlowDiagram.tsx +++ b/apps/web/src/components/SDKFlowDiagram.tsx @@ -525,34 +525,56 @@ export function SDKFlowDiagram(): React.ReactElement { {/* Tooltip for hovered node */} {hoveredNode && ( -
+
+ {hoveredNode === 'your-tools' && ( +
+ Your existing tools — Any AI + SDK tools you've already built or installed. These work alongside the registry tools + seamlessly. +
+ )} {hoveredNode === 'registry-search' && ( - - Search the registry for tools matching your needs - +
+ registrySearchTool — Query + the TPMJS registry by keyword, category, or description. Returns tool metadata + including the toolId needed for execution. +
)} {hoveredNode === 'registry-execute' && ( - - Execute any tool in a secure sandbox - +
+ registryExecuteTool — Execute + any tool from the registry by its toolId. Pass parameters and API keys per-request. + Results are returned directly to your agent. +
)} {hoveredNode === 'registry' && ( - 1000+ verified AI SDK tools +
+ TPMJS Registry API — Central + repository of 1000+ AI SDK tools. Each tool is validated, health-checked, and + includes schema definitions for type-safe execution. +
)} {hoveredNode === 'executor' && ( - - Isolated Deno runtime for safe execution - +
+ Sandbox Executor — Remote + execution environment hosted on Railway. Tools run in isolated Deno containers with + no access to your local system. +
)} {hoveredNode === 'metadata' && ( - - Tool schemas, descriptions, and health status - +
+ Tool Metadata — Complete tool + information including name, description, parameter schemas, required environment + variables, health status, and quality scores. +
)} {hoveredNode === 'runtime' && ( - - Sandboxed execution with API key isolation - +
+ Secure Deno Runtime — Each + tool execution runs in a fresh, isolated Deno sandbox. API keys are passed + per-request and never stored. Network access is restricted to the tool's + requirements. +
)}
)}