"use client"; /* eslint-disable react/forbid-elements -- this marketing demo's service toggles are bespoke styled controls (icon + name + tool count + checkbox); the product design-system ))}
{/* Without Executor: a system prompt that lists every tool, scrollable */}
Without Executor
{fmt(naiveToolsDisplay)} tools · ~ {fmt(naiveDisplay)} tok
              
                {'"You are a helpful assistant.'}
                {"\n\n"}
                {"Your tools are:"}
                {"\n\n"}
                {activeIntegrations.length === 0 ? (
                  {"(none yet, check a service)"}
                ) : null}
                {activeIntegrations.map((i) => (
                  
                    {i.toolNames.map((n) => (
                      
                        {n}
                        ()
                        {"\n"}
                      
                    ))}
                    {`// + ${fmt(i.tools - i.toolNames.length)} more ${i.name} tools`}
                    {"\n"}
                  
                ))}
                {activeIntegrations.length > 0 ? {'..."'} : null}
              
            
{/* With Executor: one tool, the same trimmed description */}
With Executor
1 tool · ~{fmt(executorDisplay)} tok
              
                {'// the only tool your client sees: "execute"'}
                {"\n\n"}
                {
                  "Execute TypeScript in a sandboxed runtime with access to\nconfigured API tools.\n\n"
                }
                {"## Workflow"}
                {"\n\n"}
                {"1. const { items } = await tools.search({ query });\n"}
                {"2. const path = items[0]?.path;\n"}
                {"3. const details = await tools.describe.tool({ path });\n"}
                {"4. const result = await tools[path](input);\n\n"}
                {"## Available connection prefixes"}
                {"\n\n"}
                {activeIntegrations.length === 0 ? (
                  {"(connect a service to add a prefix)"}
                ) : null}
                {activeIntegrations.map((i) => (
                  
                    {"- "}
                    {`${i.slug}.org.main`}
                    {": "}
                    {i.summary}
                    {"\n"}
                  
                ))}
              
            
); }