fix(sdk): move package links to hero, separate install commands
This commit is contained in:
parent
be5cae3f1c
commit
02b9b7e484
1 changed files with 46 additions and 7 deletions
|
|
@ -27,11 +27,46 @@ export default function SDKPage(): React.ReactElement {
|
|||
<h1 className="text-4xl md:text-5xl font-bold mb-4 text-foreground">
|
||||
Give Your Agent Access to Every Tool
|
||||
</h1>
|
||||
<p className="text-xl text-foreground-secondary max-w-3xl mx-auto">
|
||||
<p className="text-xl text-foreground-secondary max-w-3xl mx-auto mb-8">
|
||||
Add two tools to your AI SDK agent and instantly access thousands of tools from the
|
||||
TPMJS registry. No configuration, no manual imports—just dynamic tool discovery and
|
||||
execution.
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-4 justify-center items-center">
|
||||
<a
|
||||
href="https://www.npmjs.com/package/@tpmjs/registrySearch"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center gap-2 px-4 py-2 text-sm font-medium bg-red-500/10 text-red-500 rounded-md hover:bg-red-500/20 transition-colors"
|
||||
>
|
||||
<svg className="w-4 h-4" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
||||
<path d="M0 7.334v8h6.666v1.332H12v-1.332h12v-8H0zm6.666 6.664H5.334v-4H3.999v4H1.335V8.667h5.331v5.331zm4 0v1.336H8.001V8.667h5.334v5.332h-2.669v-.001zm12.001 0h-1.33v-4h-1.336v4h-1.335v-4h-1.33v4h-2.671V8.667h8.002v5.331zM10.665 10H12v2.667h-1.335V10z" />
|
||||
</svg>
|
||||
@tpmjs/registrySearch
|
||||
</a>
|
||||
<a
|
||||
href="https://www.npmjs.com/package/@tpmjs/registryExecute"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center gap-2 px-4 py-2 text-sm font-medium bg-red-500/10 text-red-500 rounded-md hover:bg-red-500/20 transition-colors"
|
||||
>
|
||||
<svg className="w-4 h-4" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
||||
<path d="M0 7.334v8h6.666v1.332H12v-1.332h12v-8H0zm6.666 6.664H5.334v-4H3.999v4H1.335V8.667h5.331v5.331zm4 0v1.336H8.001V8.667h5.334v5.332h-2.669v-.001zm12.001 0h-1.33v-4h-1.336v4h-1.335v-4h-1.33v4h-2.671V8.667h8.002v5.331zM10.665 10H12v2.667h-1.335V10z" />
|
||||
</svg>
|
||||
@tpmjs/registryExecute
|
||||
</a>
|
||||
<a
|
||||
href="https://github.com/tpmjs/tpmjs/tree/main/packages/tools"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center gap-2 px-4 py-2 text-sm font-medium bg-foreground/10 text-foreground rounded-md hover:bg-foreground/20 transition-colors"
|
||||
>
|
||||
<svg className="w-4 h-4" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
||||
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
|
||||
</svg>
|
||||
GitHub
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Quick Start */}
|
||||
|
|
@ -46,12 +81,16 @@ export default function SDKPage(): React.ReactElement {
|
|||
</span>
|
||||
<h3 className="text-xl font-semibold text-foreground">Install the packages</h3>
|
||||
</div>
|
||||
<CodeBlock
|
||||
language="bash"
|
||||
code={`npm install @tpmjs/registrySearch @tpmjs/registryExecute
|
||||
# or
|
||||
pnpm add @tpmjs/registrySearch @tpmjs/registryExecute`}
|
||||
/>
|
||||
<div className="space-y-3">
|
||||
<CodeBlock
|
||||
language="bash"
|
||||
code="npm install @tpmjs/registrySearch @tpmjs/registryExecute"
|
||||
/>
|
||||
<CodeBlock
|
||||
language="bash"
|
||||
code="pnpm add @tpmjs/registrySearch @tpmjs/registryExecute"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Add to agent */}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue