@yuhuanowo/yunui 0.2.17 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -5
- package/README.zh-CN.md +21 -3
- package/README.zh-TW.md +21 -3
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/agent/catalog.generated.json +29368 -0
- package/agent/recipes/analytics.tsx +121 -0
- package/agent/recipes/chat.tsx +154 -0
- package/agent/recipes/conversation-units.tsx +28 -0
- package/agent/recipes/dashboard.tsx +38 -0
- package/agent/recipes/landing.tsx +26 -0
- package/agent/recipes/setup.md +44 -0
- package/agent/skills/yunui/SKILL.md +82 -0
- package/dist/adapters.d.ts +5 -0
- package/dist/adapters.js +1 -1
- package/dist/ai.d.ts +478 -273
- package/dist/ai.js +1334 -1964
- package/dist/ai.js.map +1 -1
- package/dist/charts.d.ts +149 -0
- package/dist/charts.js +849 -0
- package/dist/charts.js.map +1 -0
- package/dist/chat.d.ts +204 -18
- package/dist/chat.js +887 -132
- package/dist/chat.js.map +1 -1
- package/dist/{chunk-F2HG4TOQ.js → chunk-ASPPAL7E.js} +25 -29
- package/dist/chunk-ASPPAL7E.js.map +1 -0
- package/dist/chunk-AVXIR7ZQ.js +197 -0
- package/dist/chunk-AVXIR7ZQ.js.map +1 -0
- package/dist/chunk-FJ52MVRF.js +82 -0
- package/dist/chunk-FJ52MVRF.js.map +1 -0
- package/dist/chunk-GRUB2GXF.js +15 -0
- package/dist/chunk-GRUB2GXF.js.map +1 -0
- package/dist/{chunk-3RT24MSH.js → chunk-GWD5W5F5.js} +2 -2
- package/dist/{chunk-3RT24MSH.js.map → chunk-GWD5W5F5.js.map} +1 -1
- package/dist/{chunk-BCOKFWXC.js → chunk-I2DAKAD5.js} +423 -281
- package/dist/chunk-I2DAKAD5.js.map +1 -0
- package/dist/chunk-OM7B4O6K.js +193 -0
- package/dist/chunk-OM7B4O6K.js.map +1 -0
- package/dist/chunk-OZIDZFMF.js +70 -0
- package/dist/chunk-OZIDZFMF.js.map +1 -0
- package/dist/chunk-P6LU2FWV.js +35 -0
- package/dist/chunk-P6LU2FWV.js.map +1 -0
- package/dist/chunk-SXWMKFKM.js +41 -0
- package/dist/chunk-SXWMKFKM.js.map +1 -0
- package/dist/chunk-TMTXJFNN.js +2715 -0
- package/dist/chunk-TMTXJFNN.js.map +1 -0
- package/dist/chunk-VNKAEQKU.js +501 -0
- package/dist/chunk-VNKAEQKU.js.map +1 -0
- package/dist/chunk-VSS7ASN2.js +12 -0
- package/dist/chunk-VSS7ASN2.js.map +1 -0
- package/dist/chunk-VYVFMNM7.js +112 -0
- package/dist/chunk-VYVFMNM7.js.map +1 -0
- package/dist/chunk-YKUQ7GCJ.js +230 -0
- package/dist/chunk-YKUQ7GCJ.js.map +1 -0
- package/dist/chunk-Z6WXDNBJ.js +366 -0
- package/dist/chunk-Z6WXDNBJ.js.map +1 -0
- package/dist/chunk-ZBRV6NHL.js +1115 -0
- package/dist/chunk-ZBRV6NHL.js.map +1 -0
- package/dist/code.d.ts +42 -0
- package/dist/code.js +8 -0
- package/dist/code.js.map +1 -0
- package/dist/content.d.ts +26 -40
- package/dist/content.js +400 -418
- package/dist/content.js.map +1 -1
- package/dist/footer-BCd-S806.d.ts +122 -0
- package/dist/index.d.ts +814 -88
- package/dist/index.js +7 -5
- package/dist/language.d.ts +30 -0
- package/dist/language.js +5 -0
- package/dist/language.js.map +1 -0
- package/dist/model-card.d.ts +43 -0
- package/dist/model-card.js +116 -0
- package/dist/model-card.js.map +1 -0
- package/dist/model.d.ts +51 -0
- package/dist/model.js +91 -0
- package/dist/model.js.map +1 -0
- package/dist/motion.d.ts +11 -0
- package/dist/motion.js +9 -0
- package/dist/motion.js.map +1 -0
- package/dist/patterns.d.ts +913 -29
- package/dist/patterns.js +1987 -259
- package/dist/patterns.js.map +1 -1
- package/dist/pickers.d.ts +134 -0
- package/dist/pickers.js +751 -0
- package/dist/pickers.js.map +1 -0
- package/dist/provider-icons-bgBTnami.d.ts +88 -0
- package/dist/segmented-bar-Bsr0PZIL.d.ts +58 -0
- package/dist/sparkline-vy5ec5C6.d.ts +67 -0
- package/icons/apps/aistudio.webp +0 -0
- package/icons/apps/coze.webp +0 -0
- package/icons/apps/dify.webp +0 -0
- package/icons/apps/doubao.webp +0 -0
- package/icons/apps/flowith.webp +0 -0
- package/icons/apps/gemini.webp +0 -0
- package/icons/apps/github-copilot.webp +0 -0
- package/icons/apps/google.webp +0 -0
- package/icons/apps/grok.webp +0 -0
- package/icons/apps/kimi.webp +0 -0
- package/icons/apps/ling.webp +0 -0
- package/icons/apps/longcat.webp +0 -0
- package/icons/apps/monica.webp +0 -0
- package/icons/apps/n8n.webp +0 -0
- package/icons/apps/notebooklm.webp +0 -0
- package/icons/apps/perplexity.webp +0 -0
- package/icons/apps/poe.webp +0 -0
- package/icons/apps/qingyan.webp +0 -0
- package/icons/apps/stepfun.webp +0 -0
- package/icons/apps/tiangong.webp +0 -0
- package/icons/apps/yuanbao.webp +0 -0
- package/icons/apps/zai.webp +0 -0
- package/icons/models/ai21.webp +0 -0
- package/icons/models/aimass.webp +0 -0
- package/icons/models/anthropic.webp +0 -0
- package/icons/models/baichuan.webp +0 -0
- package/icons/models/byte_dance.webp +0 -0
- package/icons/models/chatglm.webp +0 -0
- package/icons/models/claude.webp +0 -0
- package/icons/models/codegeex.webp +0 -0
- package/icons/models/cogview3flash.webp +0 -0
- package/icons/models/cohere.webp +0 -0
- package/icons/models/copilot.webp +0 -0
- package/icons/models/dalle.webp +0 -0
- package/icons/models/dbrx.webp +0 -0
- package/icons/models/deepseek.webp +0 -0
- package/icons/models/doubao.webp +0 -0
- package/icons/models/flux.webp +0 -0
- package/icons/models/gemini.webp +0 -0
- package/icons/models/gemma.webp +0 -0
- package/icons/models/google.webp +0 -0
- package/icons/models/grok.webp +0 -0
- package/icons/models/hailuo.webp +0 -0
- package/icons/models/huggingface.webp +0 -0
- package/icons/models/hunyuan.webp +0 -0
- package/icons/models/ibm.webp +0 -0
- package/icons/models/ideogram.webp +0 -0
- package/icons/models/internlm.webp +0 -0
- package/icons/models/jina.webp +0 -0
- package/icons/models/ling.webp +0 -0
- package/icons/models/llava.webp +0 -0
- package/icons/models/luma.webp +0 -0
- package/icons/models/magic.webp +0 -0
- package/icons/models/microsoft.webp +0 -0
- package/icons/models/midjourney.webp +0 -0
- package/icons/models/minimax.webp +0 -0
- package/icons/models/mistral.webp +0 -0
- package/icons/models/moonshot.webp +0 -0
- package/icons/models/nousresearch.webp +0 -0
- package/icons/models/nvidia.webp +0 -0
- package/icons/models/o3.webp +0 -0
- package/icons/models/openai.webp +0 -0
- package/icons/models/palm.webp +0 -0
- package/icons/models/perplexity.webp +0 -0
- package/icons/models/qwen.webp +0 -0
- package/icons/models/stability.webp +0 -0
- package/icons/models/step.webp +0 -0
- package/icons/models/suno.webp +0 -0
- package/icons/models/upstage.webp +0 -0
- package/icons/models/vidu.webp +0 -0
- package/icons/models/volcengine.webp +0 -0
- package/icons/models/voyageai.webp +0 -0
- package/icons/models/wenxin.webp +0 -0
- package/icons/models/yi.webp +0 -0
- package/icons/models/zai.webp +0 -0
- package/icons/models/zero-one.webp +0 -0
- package/icons/models/zhipu.webp +0 -0
- package/icons/providers/302ai.webp +0 -0
- package/icons/providers/ace.webp +0 -0
- package/icons/providers/adobe.webp +0 -0
- package/icons/providers/adobefirefly.webp +0 -0
- package/icons/providers/agentvoice.webp +0 -0
- package/icons/providers/agnesai.webp +0 -0
- package/icons/providers/agui.webp +0 -0
- package/icons/providers/ai2.webp +0 -0
- package/icons/providers/ai21.webp +0 -0
- package/icons/providers/ai302.webp +0 -0
- package/icons/providers/ai360.webp +0 -0
- package/icons/providers/aihubmix.webp +0 -0
- package/icons/providers/aimass.webp +0 -0
- package/icons/providers/aimlapi.webp +0 -0
- package/icons/providers/aionlabs.webp +0 -0
- package/icons/providers/airjelly.webp +0 -0
- package/icons/providers/aistudio.webp +0 -0
- package/icons/providers/akashchat.webp +0 -0
- package/icons/providers/alephalpha.webp +0 -0
- package/icons/providers/alibaba.webp +0 -0
- package/icons/providers/alibabacloud.webp +0 -0
- package/icons/providers/amdradeoncloud.webp +0 -0
- package/icons/providers/amp.webp +0 -0
- package/icons/providers/anspire.webp +0 -0
- package/icons/providers/antgroup.webp +0 -0
- package/icons/providers/anthropic.webp +0 -0
- package/icons/providers/antigravity.webp +0 -0
- package/icons/providers/anyscale.webp +0 -0
- package/icons/providers/apertis.webp +0 -0
- package/icons/providers/apple.webp +0 -0
- package/icons/providers/appwrite.webp +0 -0
- package/icons/providers/arcee.webp +0 -0
- package/icons/providers/askverdict.webp +0 -0
- package/icons/providers/assemblyai.webp +0 -0
- package/icons/providers/atlascloud.webp +0 -0
- package/icons/providers/automatic.webp +0 -0
- package/icons/providers/aws-bedrock.webp +0 -0
- package/icons/providers/aws.webp +0 -0
- package/icons/providers/aya.webp +0 -0
- package/icons/providers/azure.webp +0 -0
- package/icons/providers/azureai.webp +0 -0
- package/icons/providers/baai.webp +0 -0
- package/icons/providers/baichuan.webp +0 -0
- package/icons/providers/baidu-cloud.webp +0 -0
- package/icons/providers/baidu.webp +0 -0
- package/icons/providers/baiducloud.webp +0 -0
- package/icons/providers/bailian.webp +0 -0
- package/icons/providers/baseten.webp +0 -0
- package/icons/providers/bedrock.webp +0 -0
- package/icons/providers/bfl.webp +0 -0
- package/icons/providers/bigModel.webp +0 -0
- package/icons/providers/bilibili.webp +0 -0
- package/icons/providers/bilibiliindex.webp +0 -0
- package/icons/providers/bing.webp +0 -0
- package/icons/providers/bocha.webp +0 -0
- package/icons/providers/brave.webp +0 -0
- package/icons/providers/briaai.webp +0 -0
- package/icons/providers/browserless.webp +0 -0
- package/icons/providers/burncloud.webp +0 -0
- package/icons/providers/bytedance.webp +0 -0
- package/icons/providers/capcut.webp +0 -0
- package/icons/providers/celestoai.webp +0 -0
- package/icons/providers/centml.webp +0 -0
- package/icons/providers/cerebras.webp +0 -0
- package/icons/providers/chatglm.webp +0 -0
- package/icons/providers/cheaperinference.webp +0 -0
- package/icons/providers/cherrystudio.webp +0 -0
- package/icons/providers/chutes.webp +0 -0
- package/icons/providers/civitai.webp +0 -0
- package/icons/providers/claude.webp +0 -0
- package/icons/providers/claudecode.webp +0 -0
- package/icons/providers/cline.webp +0 -0
- package/icons/providers/clipdrop.webp +0 -0
- package/icons/providers/cloudflare.webp +0 -0
- package/icons/providers/codebuddy.webp +0 -0
- package/icons/providers/codeflicker.webp +0 -0
- package/icons/providers/codegeex.webp +0 -0
- package/icons/providers/codex.webp +0 -0
- package/icons/providers/cogvideo.webp +0 -0
- package/icons/providers/cogview.webp +0 -0
- package/icons/providers/cogview3flash.webp +0 -0
- package/icons/providers/cohere.webp +0 -0
- package/icons/providers/colab.webp +0 -0
- package/icons/providers/cometapi.webp +0 -0
- package/icons/providers/comfyui.webp +0 -0
- package/icons/providers/commanda.webp +0 -0
- package/icons/providers/commandcode.webp +0 -0
- package/icons/providers/copilot.webp +0 -0
- package/icons/providers/copilotkit.webp +0 -0
- package/icons/providers/coqui.webp +0 -0
- package/icons/providers/coze.webp +0 -0
- package/icons/providers/crewai.webp +0 -0
- package/icons/providers/crusoe.webp +0 -0
- package/icons/providers/cursor.webp +0 -0
- package/icons/providers/cybercut.webp +0 -0
- package/icons/providers/dalle.webp +0 -0
- package/icons/providers/dbrx.webp +0 -0
- package/icons/providers/decart.webp +0 -0
- package/icons/providers/deepai.webp +0 -0
- package/icons/providers/deepcogito.webp +0 -0
- package/icons/providers/deepinfra.webp +0 -0
- package/icons/providers/deepl.webp +0 -0
- package/icons/providers/deepmind.webp +0 -0
- package/icons/providers/deepseek.webp +0 -0
- package/icons/providers/devin.webp +0 -0
- package/icons/providers/dify.webp +0 -0
- package/icons/providers/digitalocean.webp +0 -0
- package/icons/providers/doc2x.webp +0 -0
- package/icons/providers/docsearch.webp +0 -0
- package/icons/providers/dolphin.webp +0 -0
- package/icons/providers/dothoosh.webp +0 -0
- package/icons/providers/dotsstudio.webp +0 -0
- package/icons/providers/doubao.webp +0 -0
- package/icons/providers/dreammachine.webp +0 -0
- package/icons/providers/elevenlabs.webp +0 -0
- package/icons/providers/elevenx.webp +0 -0
- package/icons/providers/empiriolabs.webp +0 -0
- package/icons/providers/essentialai.webp +0 -0
- package/icons/providers/exa.webp +0 -0
- package/icons/providers/fal.webp +0 -0
- package/icons/providers/fastgpt.webp +0 -0
- package/icons/providers/featherless.webp +0 -0
- package/icons/providers/figma.webp +0 -0
- package/icons/providers/firecrawl.webp +0 -0
- package/icons/providers/fireworks.webp +0 -0
- package/icons/providers/fishaudio.webp +0 -0
- package/icons/providers/flexai.webp +0 -0
- package/icons/providers/flora.webp +0 -0
- package/icons/providers/flowith.webp +0 -0
- package/icons/providers/flux.webp +0 -0
- package/icons/providers/friendli.webp +0 -0
- package/icons/providers/gemini.webp +0 -0
- package/icons/providers/geminicli.webp +0 -0
- package/icons/providers/gemma.webp +0 -0
- package/icons/providers/gitee-ai.webp +0 -0
- package/icons/providers/giteeai.webp +0 -0
- package/icons/providers/github.webp +0 -0
- package/icons/providers/githubcopilot.webp +0 -0
- package/icons/providers/glama.webp +0 -0
- package/icons/providers/glif.webp +0 -0
- package/icons/providers/glmv.webp +0 -0
- package/icons/providers/gmi.svg +5 -0
- package/icons/providers/gmicloud.webp +0 -0
- package/icons/providers/google.webp +0 -0
- package/icons/providers/googlecloud.webp +0 -0
- package/icons/providers/goose.webp +0 -0
- package/icons/providers/gradio.webp +0 -0
- package/icons/providers/greenpt.webp +0 -0
- package/icons/providers/greptile.webp +0 -0
- package/icons/providers/grok.webp +0 -0
- package/icons/providers/grokbot.webp +0 -0
- package/icons/providers/groq.webp +0 -0
- package/icons/providers/hailuo.webp +0 -0
- package/icons/providers/haiper.webp +0 -0
- package/icons/providers/happyhorse.webp +0 -0
- package/icons/providers/hedra.webp +0 -0
- package/icons/providers/hermesagent.webp +0 -0
- package/icons/providers/higress.webp +0 -0
- package/icons/providers/huawei.webp +0 -0
- package/icons/providers/huaweicloud.webp +0 -0
- package/icons/providers/huggingface.webp +0 -0
- package/icons/providers/hunyuan.webp +0 -0
- package/icons/providers/hyperbolic.webp +0 -0
- package/icons/providers/ibm.webp +0 -0
- package/icons/providers/ideogram.webp +0 -0
- package/icons/providers/iflytekcloud.webp +0 -0
- package/icons/providers/inception.webp +0 -0
- package/icons/providers/inceptron.webp +0 -0
- package/icons/providers/inference.webp +0 -0
- package/icons/providers/infermatic.webp +0 -0
- package/icons/providers/infini.webp +0 -0
- package/icons/providers/infinigence.webp +0 -0
- package/icons/providers/inflection.webp +0 -0
- package/icons/providers/internlm.webp +0 -0
- package/icons/providers/ionet.webp +0 -0
- package/icons/providers/jimeng.webp +0 -0
- package/icons/providers/jina.webp +0 -0
- package/icons/providers/junie.webp +0 -0
- package/icons/providers/kagi.webp +0 -0
- package/icons/providers/kilocode.webp +0 -0
- package/icons/providers/kimi.webp +0 -0
- package/icons/providers/kiro.webp +0 -0
- package/icons/providers/kling.webp +0 -0
- package/icons/providers/kluster.webp +0 -0
- package/icons/providers/kolors.webp +0 -0
- package/icons/providers/krea.webp +0 -0
- package/icons/providers/kwaikat.webp +0 -0
- package/icons/providers/kwaipilot.webp +0 -0
- package/icons/providers/lambda.webp +0 -0
- package/icons/providers/langchain.webp +0 -0
- package/icons/providers/langfuse.webp +0 -0
- package/icons/providers/langgraph.webp +0 -0
- package/icons/providers/langsmith.webp +0 -0
- package/icons/providers/leptonai.webp +0 -0
- package/icons/providers/lg.webp +0 -0
- package/icons/providers/lightricks.webp +0 -0
- package/icons/providers/ling.webp +0 -0
- package/icons/providers/liquid.webp +0 -0
- package/icons/providers/livekit.webp +0 -0
- package/icons/providers/llamaindex.webp +0 -0
- package/icons/providers/llava.webp +0 -0
- package/icons/providers/llmapi.webp +0 -0
- package/icons/providers/llmgateway.webp +0 -0
- package/icons/providers/lmstudio.webp +0 -0
- package/icons/providers/lobehub.webp +0 -0
- package/icons/providers/lobot.webp +0 -0
- package/icons/providers/longcat.webp +0 -0
- package/icons/providers/lovable.webp +0 -0
- package/icons/providers/lovart.webp +0 -0
- package/icons/providers/luma.webp +0 -0
- package/icons/providers/magic.webp +0 -0
- package/icons/providers/magpie.webp +0 -0
- package/icons/providers/make.webp +0 -0
- package/icons/providers/manus.webp +0 -0
- package/icons/providers/mastra.webp +0 -0
- package/icons/providers/mcp.webp +0 -0
- package/icons/providers/mcpso.webp +0 -0
- package/icons/providers/menlo.webp +0 -0
- package/icons/providers/meshy.webp +0 -0
- package/icons/providers/meta.webp +0 -0
- package/icons/providers/metaai.webp +0 -0
- package/icons/providers/metagpt.webp +0 -0
- package/icons/providers/microsoft.webp +0 -0
- package/icons/providers/midjourney.webp +0 -0
- package/icons/providers/minimax.webp +0 -0
- package/icons/providers/mistral.webp +0 -0
- package/icons/providers/modelscope.webp +0 -0
- package/icons/providers/monica.webp +0 -0
- package/icons/providers/moonshot.webp +0 -0
- package/icons/providers/morph.webp +0 -0
- package/icons/providers/moxt.webp +0 -0
- package/icons/providers/muse.webp +0 -0
- package/icons/providers/myshell.webp +0 -0
- package/icons/providers/n8n.webp +0 -0
- package/icons/providers/nanobanana.webp +0 -0
- package/icons/providers/nebius.webp +0 -0
- package/icons/providers/newapi.webp +0 -0
- package/icons/providers/nextbit.webp +0 -0
- package/icons/providers/notebooklm.webp +0 -0
- package/icons/providers/notion.webp +0 -0
- package/icons/providers/nousresearch.webp +0 -0
- package/icons/providers/nova.webp +0 -0
- package/icons/providers/novelai.webp +0 -0
- package/icons/providers/novita.webp +0 -0
- package/icons/providers/nplcloud.webp +0 -0
- package/icons/providers/nvidia.webp +0 -0
- package/icons/providers/o3.webp +0 -0
- package/icons/providers/obsidian.webp +0 -0
- package/icons/providers/ollama.webp +0 -0
- package/icons/providers/omlx.webp +0 -0
- package/icons/providers/openai.webp +0 -0
- package/icons/providers/openchat.webp +0 -0
- package/icons/providers/openclaw.webp +0 -0
- package/icons/providers/opencode.webp +0 -0
- package/icons/providers/openhands.webp +0 -0
- package/icons/providers/openhuman.webp +0 -0
- package/icons/providers/openrouter.webp +0 -0
- package/icons/providers/openwebui.webp +0 -0
- package/icons/providers/paddleocr.webp +0 -0
- package/icons/providers/palm.webp +0 -0
- package/icons/providers/parasail.webp +0 -0
- package/icons/providers/perceptron.webp +0 -0
- package/icons/providers/perplexity.webp +0 -0
- package/icons/providers/phala.webp +0 -0
- package/icons/providers/phidata.webp +0 -0
- package/icons/providers/phind.webp +0 -0
- package/icons/providers/pi.webp +0 -0
- package/icons/providers/pika.webp +0 -0
- package/icons/providers/pixverse.webp +0 -0
- package/icons/providers/player2.webp +0 -0
- package/icons/providers/poe.webp +0 -0
- package/icons/providers/pollinations.webp +0 -0
- package/icons/providers/poolside.webp +0 -0
- package/icons/providers/ppio.webp +0 -0
- package/icons/providers/prunaai.webp +0 -0
- package/icons/providers/pydanticai.webp +0 -0
- package/icons/providers/qingyan.webp +0 -0
- package/icons/providers/qiniu.webp +0 -0
- package/icons/providers/qoder.webp +0 -0
- package/icons/providers/qwen.webp +0 -0
- package/icons/providers/railway.webp +0 -0
- package/icons/providers/recraft.webp +0 -0
- package/icons/providers/reflection.webp +0 -0
- package/icons/providers/reka.webp +0 -0
- package/icons/providers/relace.webp +0 -0
- package/icons/providers/replicate.webp +0 -0
- package/icons/providers/replit.webp +0 -0
- package/icons/providers/reve.webp +0 -0
- package/icons/providers/roocode.webp +0 -0
- package/icons/providers/rsshub.webp +0 -0
- package/icons/providers/runway.webp +0 -0
- package/icons/providers/rwkv.webp +0 -0
- package/icons/providers/sakana.webp +0 -0
- package/icons/providers/sambanova.webp +0 -0
- package/icons/providers/search1api.webp +0 -0
- package/icons/providers/searchapi.webp +0 -0
- package/icons/providers/searxng.webp +0 -0
- package/icons/providers/sensenova.webp +0 -0
- package/icons/providers/silicon.webp +0 -0
- package/icons/providers/siliconcloud.webp +0 -0
- package/icons/providers/sillytavern.webp +0 -0
- package/icons/providers/skywork.webp +0 -0
- package/icons/providers/slock.webp +0 -0
- package/icons/providers/smithery.webp +0 -0
- package/icons/providers/snowflake.webp +0 -0
- package/icons/providers/sophnet.webp +0 -0
- package/icons/providers/sora.webp +0 -0
- package/icons/providers/spark.webp +0 -0
- package/icons/providers/speedai.webp +0 -0
- package/icons/providers/stability.webp +0 -0
- package/icons/providers/statecloud.webp +0 -0
- package/icons/providers/step.webp +0 -0
- package/icons/providers/stepfun.webp +0 -0
- package/icons/providers/straico.webp +0 -0
- package/icons/providers/streamlake.webp +0 -0
- package/icons/providers/sub2api.webp +0 -0
- package/icons/providers/submodel.webp +0 -0
- package/icons/providers/suno.webp +0 -0
- package/icons/providers/sync.webp +0 -0
- package/icons/providers/tabbit.webp +0 -0
- package/icons/providers/targon.webp +0 -0
- package/icons/providers/tavily.webp +0 -0
- package/icons/providers/tencent-cloud-ti.webp +0 -0
- package/icons/providers/tencent.webp +0 -0
- package/icons/providers/tencentcloud.webp +0 -0
- package/icons/providers/tiangong.webp +0 -0
- package/icons/providers/tii.webp +0 -0
- package/icons/providers/together.webp +0 -0
- package/icons/providers/topazlabs.webp +0 -0
- package/icons/providers/trae.webp +0 -0
- package/icons/providers/tripo.webp +0 -0
- package/icons/providers/turix.webp +0 -0
- package/icons/providers/typesafeai.webp +0 -0
- package/icons/providers/udio.webp +0 -0
- package/icons/providers/unionalpha.webp +0 -0
- package/icons/providers/unsloth.webp +0 -0
- package/icons/providers/unstructured.webp +0 -0
- package/icons/providers/upstage.webp +0 -0
- package/icons/providers/v0.webp +0 -0
- package/icons/providers/vectorizerai.webp +0 -0
- package/icons/providers/venice.webp +0 -0
- package/icons/providers/vercel.webp +0 -0
- package/icons/providers/vertexai.webp +0 -0
- package/icons/providers/vidu.webp +0 -0
- package/icons/providers/viggle.webp +0 -0
- package/icons/providers/vllm.webp +0 -0
- package/icons/providers/volcengine.webp +0 -0
- package/icons/providers/voyage.webp +0 -0
- package/icons/providers/voyageai.webp +0 -0
- package/icons/providers/wafer.webp +0 -0
- package/icons/providers/wandb.webp +0 -0
- package/icons/providers/wavespeed.webp +0 -0
- package/icons/providers/wenxin.webp +0 -0
- package/icons/providers/windsurf.webp +0 -0
- package/icons/providers/workbuddy.webp +0 -0
- package/icons/providers/workersai.webp +0 -0
- package/icons/providers/worldrouter.webp +0 -0
- package/icons/providers/xai.webp +0 -0
- package/icons/providers/xiaomimimo.webp +0 -0
- package/icons/providers/xinference.webp +0 -0
- package/icons/providers/xpay.webp +0 -0
- package/icons/providers/xuanyuan.webp +0 -0
- package/icons/providers/yandex.webp +0 -0
- package/icons/providers/yi.webp +0 -0
- package/icons/providers/youmind.webp +0 -0
- package/icons/providers/yuanbao.webp +0 -0
- package/icons/providers/zai.webp +0 -0
- package/icons/providers/zapier.webp +0 -0
- package/icons/providers/zeabur.webp +0 -0
- package/icons/providers/zencoder.webp +0 -0
- package/icons/providers/zenmux.webp +0 -0
- package/icons/providers/zero-one.webp +0 -0
- package/icons/providers/zeroone.webp +0 -0
- package/icons/providers/zhipu.webp +0 -0
- package/licenses/beautiful-ui-MIT.txt +21 -0
- package/package.json +53 -10
- package/scripts/yunui-audit.mjs +664 -0
- package/scripts/yunui-cli.mjs +868 -0
- package/scripts/yunui-init.mjs +138 -0
- package/styles/content.css +37 -3
- package/styles/tokens.css +41 -0
- package/styles/yunui.css +1586 -141
- package/dist/chunk-BCOKFWXC.js.map +0 -1
- package/dist/chunk-DDUP7GAX.js +0 -86
- package/dist/chunk-DDUP7GAX.js.map +0 -1
- package/dist/chunk-F2HG4TOQ.js.map +0 -1
- package/dist/chunk-HH3JBHRP.js +0 -1211
- package/dist/chunk-HH3JBHRP.js.map +0 -1
- package/dist/chunk-N4QO7RN5.js +0 -98
- package/dist/chunk-N4QO7RN5.js.map +0 -1
- package/dist/chunk-QEIBYOG2.js +0 -188
- package/dist/chunk-QEIBYOG2.js.map +0 -1
- package/dist/footer-BoFu7Wqq.d.ts +0 -46
- package/icons/apps/ling.png +0 -0
- package/icons/models/ling.png +0 -0
- package/icons/providers/Kwaipilot.png +0 -0
package/dist/ai.d.ts
CHANGED
|
@@ -1,33 +1,98 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
import { ReactNode, HTMLAttributes, ElementType } from 'react';
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
export {
|
|
5
|
+
export { P as ProviderAvatar, e as ProviderIcon, f as ProviderNames, h as getDeveloperIconPath, i as getIconPath, j as getProviderIconOptions, n as normalizeProviderId } from './provider-icons-bgBTnami.js';
|
|
6
|
+
export { LanguageOption, LanguageSwitcher } from './language.js';
|
|
7
|
+
export { D as DiscordIcon, F as Footer, a as FooterLink, b as FooterProps, c as FooterSection, d as FooterSocial, G as GithubIcon, I as InstagramIcon, N as NavLink, e as Navbar } from './footer-BCd-S806.js';
|
|
6
8
|
|
|
9
|
+
/** A host-owned step in an agent reasoning/search/coding trace. */
|
|
10
|
+
type ThinkingStepStatus = "pending" | "running" | "done" | "failed" | "cancelled";
|
|
11
|
+
interface ThinkingBlockStep {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
detail?: ReactNode;
|
|
15
|
+
meta?: ReactNode;
|
|
16
|
+
status: ThinkingStepStatus;
|
|
17
|
+
mono?: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface ThinkingBlockLabels {
|
|
20
|
+
title?: string;
|
|
21
|
+
active?: string;
|
|
22
|
+
inProgress?: string;
|
|
23
|
+
completed?: string;
|
|
24
|
+
failed?: string;
|
|
25
|
+
cancelled?: string;
|
|
26
|
+
pending?: string;
|
|
27
|
+
}
|
|
7
28
|
interface ThinkingBlockProps {
|
|
8
29
|
content: string;
|
|
9
30
|
isStreaming?: boolean;
|
|
10
|
-
defaultOpen?: boolean;
|
|
11
31
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
32
|
+
* Title once thinking has finished, e.g. "Thought for 4s". The host computes it from
|
|
33
|
+
* its own timestamps; when it is set the live title settles into it with one crossfade.
|
|
14
34
|
*/
|
|
35
|
+
doneLabel?: string;
|
|
36
|
+
defaultOpen?: boolean;
|
|
37
|
+
/** Controlled disclosure state. Without `onOpenChange`, the trigger is read-only. */
|
|
38
|
+
open?: boolean;
|
|
39
|
+
onOpenChange?: (open: boolean) => void;
|
|
40
|
+
/** Host-supplied detail rows (Steps / Search / Coding / Reasoning). */
|
|
41
|
+
steps?: readonly ThinkingBlockStep[];
|
|
42
|
+
selectedStepId?: string;
|
|
43
|
+
onStepSelect?: (id: string) => void;
|
|
44
|
+
labels?: ThinkingBlockLabels;
|
|
45
|
+
/** Render reasoning text (e.g. with a Markdown renderer). Defaults to plain pre-wrapped text. */
|
|
15
46
|
renderContent?: (content: string) => ReactNode;
|
|
16
47
|
}
|
|
17
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Compact, host-fed reasoning disclosure based on Beautiful UI's
|
|
50
|
+
* `components/primitives/ThinkingState.tsx` at commit
|
|
51
|
+
* `44a274e598395ab61e7c96c26fda2758780253b7` (MIT). It adopts the source's
|
|
52
|
+
* sparkle header, plain status row and indented trace geometry, while the host
|
|
53
|
+
* remains the only source of content and step state. It contains no run timer.
|
|
54
|
+
*/
|
|
55
|
+
declare function ThinkingBlock({ content, isStreaming, doneLabel, defaultOpen, open, onOpenChange, steps, selectedStepId, onStepSelect, labels, renderContent, }: ThinkingBlockProps): React.JSX.Element;
|
|
18
56
|
|
|
19
57
|
/**
|
|
20
|
-
* AgentTimeline —
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* prop-driven and copy-free: the consumer maps its records onto
|
|
27
|
-
* {@link AgentTimelineBlock}, localizes every label, and supplies a renderer.
|
|
58
|
+
* AgentTimeline — host-fed activity, tool and task rows. The compact summary,
|
|
59
|
+
* disclosure, inline detail and diff-chip interactions adapt Beautiful UI's
|
|
60
|
+
* `ToolChips.tsx`, `TaskRows.tsx` and `ThinkingState.tsx` from commit
|
|
61
|
+
* 44a274e598395ab61e7c96c26fda2758780253b7 (MIT). YunUI uses its existing
|
|
62
|
+
* tokens, Badge, TextShimmer and Lucide icons. No demo fixtures or timers are
|
|
63
|
+
* embedded; statuses and partial output come from the host.
|
|
28
64
|
*/
|
|
65
|
+
/** Kept at the original six icons for compatibility with complete Record maps. */
|
|
29
66
|
type AgentTimelineIconName = "terminal" | "search" | "globe" | "image" | "file" | "tool";
|
|
67
|
+
/** Additional icon names used only by the additive entry API. */
|
|
68
|
+
type AgentTimelineEntryIconName = AgentTimelineIconName | "think" | "write" | "run" | "read";
|
|
69
|
+
/** Kept unchanged for compatibility with existing exhaustive status switches. */
|
|
30
70
|
type AgentTimelineToolStatus = "running" | "done" | "error";
|
|
71
|
+
type AgentTimelineTaskStatus = "pending" | "running" | "done" | "failed" | "cancelled";
|
|
72
|
+
type AgentTimelineDiffTone = "add" | "del" | "context";
|
|
73
|
+
interface AgentTimelineToolDetail {
|
|
74
|
+
id: string;
|
|
75
|
+
text: ReactNode;
|
|
76
|
+
tone?: AgentTimelineDiffTone;
|
|
77
|
+
mono?: boolean;
|
|
78
|
+
}
|
|
79
|
+
interface AgentTimelineDiffLine {
|
|
80
|
+
id: string;
|
|
81
|
+
text: string;
|
|
82
|
+
tone: AgentTimelineDiffTone;
|
|
83
|
+
}
|
|
84
|
+
interface AgentTimelineFileChange {
|
|
85
|
+
id: string;
|
|
86
|
+
file: string;
|
|
87
|
+
additions: number;
|
|
88
|
+
deletions?: number;
|
|
89
|
+
lines?: readonly AgentTimelineDiffLine[];
|
|
90
|
+
}
|
|
91
|
+
interface AgentTimelineTaskDetail {
|
|
92
|
+
id: string;
|
|
93
|
+
label: ReactNode;
|
|
94
|
+
meta?: ReactNode;
|
|
95
|
+
}
|
|
31
96
|
type AgentTimelineBlock = {
|
|
32
97
|
kind: "reasoning";
|
|
33
98
|
id: string;
|
|
@@ -37,6 +102,8 @@ type AgentTimelineBlock = {
|
|
|
37
102
|
active?: boolean;
|
|
38
103
|
/** Opens the disclosure on first render while retaining user control. */
|
|
39
104
|
defaultOpen?: boolean;
|
|
105
|
+
/** Controlled row disclosure; pair with `onToggleRow`. */
|
|
106
|
+
open?: boolean;
|
|
40
107
|
} | {
|
|
41
108
|
kind: "tool";
|
|
42
109
|
id: string;
|
|
@@ -46,8 +113,14 @@ type AgentTimelineBlock = {
|
|
|
46
113
|
icon?: AgentTimelineIconName;
|
|
47
114
|
command?: string;
|
|
48
115
|
output?: string;
|
|
116
|
+
/** Host-supplied structured detail lines and file diffs. */
|
|
117
|
+
details?: readonly AgentTimelineToolDetail[];
|
|
118
|
+
files?: readonly AgentTimelineFileChange[];
|
|
49
119
|
indent?: boolean;
|
|
120
|
+
defaultOpen?: boolean;
|
|
121
|
+
open?: boolean;
|
|
50
122
|
} | {
|
|
123
|
+
/** A host tool-decision request; distinct from the ApprovalQuestion survey component. */
|
|
51
124
|
kind: "approval";
|
|
52
125
|
id: string;
|
|
53
126
|
title: string;
|
|
@@ -58,141 +131,280 @@ type AgentTimelineBlock = {
|
|
|
58
131
|
denyLabel: string;
|
|
59
132
|
decision?: "approved" | "rejected";
|
|
60
133
|
decidedLabel?: string;
|
|
134
|
+
/** Host-controlled in-flight acknowledgement; does not imply a decision. */
|
|
135
|
+
busy?: boolean;
|
|
136
|
+
/** Host may disable the decision controls while retaining the request. */
|
|
137
|
+
disabled?: boolean;
|
|
61
138
|
};
|
|
139
|
+
/** New task rows are additive; the older AgentTimelineBlock union stays closed. */
|
|
140
|
+
interface AgentTimelineTaskBlock {
|
|
141
|
+
kind: "task";
|
|
142
|
+
id: string;
|
|
143
|
+
label: string;
|
|
144
|
+
amount?: ReactNode;
|
|
145
|
+
status: AgentTimelineTaskStatus;
|
|
146
|
+
step?: number;
|
|
147
|
+
details?: readonly AgentTimelineTaskDetail[];
|
|
148
|
+
defaultOpen?: boolean;
|
|
149
|
+
open?: boolean;
|
|
150
|
+
}
|
|
151
|
+
/** Broader tool row used only in the additive AgentTimelineEntry API. */
|
|
152
|
+
type AgentTimelineToolEntryBlock = Omit<Extract<AgentTimelineBlock, {
|
|
153
|
+
kind: "tool";
|
|
154
|
+
}>, "icon" | "status" | "output"> & {
|
|
155
|
+
icon?: AgentTimelineEntryIconName;
|
|
156
|
+
status: AgentTimelineToolStatus | "cancelled";
|
|
157
|
+
/** Additive rich host output slot; takes precedence over the legacy text output. */
|
|
158
|
+
output?: string;
|
|
159
|
+
outputContent?: ReactNode;
|
|
160
|
+
};
|
|
161
|
+
/** Use this additive entry when a tool call is explicitly cancelled. */
|
|
162
|
+
type AgentTimelineCancelledToolBlock = Omit<AgentTimelineToolEntryBlock, "status"> & {
|
|
163
|
+
status: "cancelled";
|
|
164
|
+
};
|
|
165
|
+
type AgentTimelineEntry = AgentTimelineBlock | AgentTimelineTaskBlock | AgentTimelineToolEntryBlock;
|
|
166
|
+
interface AgentTimelineSummary {
|
|
167
|
+
steps: number;
|
|
168
|
+
reasoning: number;
|
|
169
|
+
tools: number;
|
|
170
|
+
tasks: number;
|
|
171
|
+
approvals: number;
|
|
172
|
+
}
|
|
173
|
+
interface AgentTimelineLabels {
|
|
174
|
+
/** Localize the summary from actual block counts; no message count is inferred. */
|
|
175
|
+
summary?: (counts: AgentTimelineSummary) => string;
|
|
176
|
+
stepCount?: (count: number) => string;
|
|
177
|
+
process?: string;
|
|
178
|
+
completed?: string;
|
|
179
|
+
failed?: string;
|
|
180
|
+
cancelled?: string;
|
|
181
|
+
pending?: string;
|
|
182
|
+
running?: string;
|
|
183
|
+
error?: string;
|
|
184
|
+
waitingForHost?: string;
|
|
185
|
+
toolOutput?: (verb: string) => string;
|
|
186
|
+
showDiff?: (file: string) => string;
|
|
187
|
+
}
|
|
62
188
|
interface AgentTimelineProps {
|
|
63
|
-
blocks:
|
|
64
|
-
/** Render reasoning text (e.g.
|
|
189
|
+
blocks: AgentTimelineEntry[];
|
|
190
|
+
/** Render reasoning text (e.g. with a Markdown renderer). Plain text by default. */
|
|
65
191
|
renderContent?: (text: string) => ReactNode;
|
|
66
192
|
onApprove?: (id: string) => void;
|
|
67
193
|
onReject?: (id: string) => void;
|
|
194
|
+
labels?: AgentTimelineLabels;
|
|
195
|
+
/** Controlled run summary. Without onOpenChange it is read-only. */
|
|
196
|
+
open?: boolean;
|
|
197
|
+
/** The global summary starts open to retain the previous visible-row default. */
|
|
198
|
+
defaultOpen?: boolean;
|
|
199
|
+
onOpenChange?: (open: boolean) => void;
|
|
200
|
+
onToggleRow?: (id: string, open: boolean) => void;
|
|
201
|
+
onToggleDiff?: (id: string, open: boolean) => void;
|
|
68
202
|
className?: string;
|
|
69
203
|
}
|
|
70
|
-
declare function AgentTimeline({ blocks, renderContent, onApprove, onReject, className }: AgentTimelineProps): React.JSX.Element | null;
|
|
204
|
+
declare function AgentTimeline({ blocks, renderContent, onApprove, onReject, labels, open, defaultOpen, onOpenChange, onToggleRow, onToggleDiff, className, }: AgentTimelineProps): React.JSX.Element | null;
|
|
205
|
+
|
|
206
|
+
/** A stable-id answer choice in a host-owned questionnaire. */
|
|
207
|
+
interface ApprovalQuestionOption {
|
|
208
|
+
id: string;
|
|
209
|
+
label: ReactNode;
|
|
210
|
+
detail?: ReactNode;
|
|
211
|
+
disabled?: boolean;
|
|
212
|
+
}
|
|
213
|
+
interface ApprovalQuestionOtherOption {
|
|
214
|
+
/** Stable ID stored in `optionIds`; do not use the option's array index. */
|
|
215
|
+
id: string;
|
|
216
|
+
label: ReactNode;
|
|
217
|
+
placeholder?: string;
|
|
218
|
+
}
|
|
219
|
+
/** Data for one question. This collects answers; it does not authorize a tool action. */
|
|
220
|
+
interface ApprovalQuestionData {
|
|
221
|
+
id: string;
|
|
222
|
+
title: string;
|
|
223
|
+
message?: ReactNode;
|
|
224
|
+
type: "single" | "multiple";
|
|
225
|
+
options: readonly ApprovalQuestionOption[];
|
|
226
|
+
other?: ApprovalQuestionOtherOption;
|
|
227
|
+
required?: boolean;
|
|
228
|
+
}
|
|
229
|
+
interface ApprovalQuestionAnswer {
|
|
230
|
+
optionIds: readonly string[];
|
|
231
|
+
otherText?: string;
|
|
232
|
+
}
|
|
233
|
+
type ApprovalQuestionAnswers = Readonly<Record<string, ApprovalQuestionAnswer>>;
|
|
234
|
+
interface ApprovalQuestionLabels {
|
|
235
|
+
dismiss?: string;
|
|
236
|
+
back?: string;
|
|
237
|
+
next?: string;
|
|
238
|
+
skip?: string;
|
|
239
|
+
submit?: string;
|
|
240
|
+
submitting?: string;
|
|
241
|
+
otherPlaceholder?: string;
|
|
242
|
+
progress?: (current: number, total: number) => string;
|
|
243
|
+
}
|
|
244
|
+
interface ApprovalQuestionProps {
|
|
245
|
+
questions: readonly ApprovalQuestionData[];
|
|
246
|
+
/** The host controls which stable question ID is visible. */
|
|
247
|
+
activeQuestionId: string;
|
|
248
|
+
/** Controlled answers keyed by stable question ID, containing stable option IDs. */
|
|
249
|
+
answers: ApprovalQuestionAnswers;
|
|
250
|
+
onAnswersChange: (answers: ApprovalQuestionAnswers) => void;
|
|
251
|
+
onActiveQuestionChange?: (id: string) => void;
|
|
252
|
+
onSkip?: (questionId: string) => void;
|
|
253
|
+
onSubmit?: (answers: ApprovalQuestionAnswers) => void;
|
|
254
|
+
/** Requests dismissal; the host decides whether to hide or cancel this question. */
|
|
255
|
+
onDismiss?: () => void;
|
|
256
|
+
/** Host-controlled request in flight; choices and navigation are disabled until it changes. */
|
|
257
|
+
submitting?: boolean;
|
|
258
|
+
/** Host-controlled read-only state. */
|
|
259
|
+
disabled?: boolean;
|
|
260
|
+
labels?: ApprovalQuestionLabels;
|
|
261
|
+
className?: string;
|
|
262
|
+
}
|
|
263
|
+
/** Controlled, explicit-step questionnaire adapted from Beautiful UI ApprovalCard's
|
|
264
|
+
* question/choice interaction (commit 44a274e598395ab61e7c96c26fda2758780253b7,
|
|
265
|
+
* components/primitives/ApprovalCard.tsx, MIT). It deliberately uses stable host
|
|
266
|
+
* IDs rather than array indexes, and a questionnaire submit never approves or
|
|
267
|
+
* executes a tool. Upstream MIT attribution is preserved in
|
|
268
|
+
* `licenses/beautiful-ui-MIT.txt`.
|
|
269
|
+
*/
|
|
270
|
+
declare function ApprovalQuestion({ questions, activeQuestionId, answers, onAnswersChange, onActiveQuestionChange, onSkip, onSubmit, onDismiss, submitting, disabled, labels, className, }: ApprovalQuestionProps): React.JSX.Element | null;
|
|
71
271
|
|
|
72
272
|
type AgentRunPhase = "thinking" | "acting" | "observing" | "reflecting" | "responding" | "waiting";
|
|
273
|
+
type AgentRunTerminalPhase = "completed" | "failed" | "cancelled";
|
|
274
|
+
/** Additive runtime phase type; `AgentRunPhase` remains the legacy activity union. */
|
|
275
|
+
type AgentRunState = AgentRunPhase | AgentRunTerminalPhase;
|
|
73
276
|
interface AgentRunStatusProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
74
277
|
/** Runtime-owned summary of the one activity currently in progress. */
|
|
75
278
|
label: string;
|
|
76
|
-
phase?:
|
|
279
|
+
phase?: AgentRunState;
|
|
77
280
|
/** Keeps the row layout stable while disabling decorative motion. */
|
|
78
281
|
active?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Host-formatted elapsed time ("14s"). Shown in tabular numerals after the label; the
|
|
284
|
+
* component never runs its own clock, so it can only show a value the engine reported.
|
|
285
|
+
*/
|
|
286
|
+
elapsed?: string;
|
|
79
287
|
}
|
|
80
288
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
289
|
+
* Single-line activity state based on Beautiful UI's compact status header in
|
|
290
|
+
* `components/primitives/ThinkingState.tsx` at commit
|
|
291
|
+
* `44a274e598395ab61e7c96c26fda2758780253b7` (MIT). This row stays separate
|
|
292
|
+
* from AgentTimeline so the host can show a current activity without adding a
|
|
293
|
+
* second status badge to every durable process row.
|
|
86
294
|
*/
|
|
87
|
-
declare function AgentRunStatus({ label, phase, active, className, ...props }: AgentRunStatusProps): React.JSX.Element;
|
|
295
|
+
declare function AgentRunStatus({ label, phase, active, elapsed, className, ...props }: AgentRunStatusProps): React.JSX.Element;
|
|
88
296
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
297
|
+
/** Host-provided row in a proposed data change. */
|
|
298
|
+
type DiffTableState = "idle" | "busy" | "applied" | "error" | "cancelled" | "disabled";
|
|
299
|
+
type DiffTableChange = "remove" | "add" | "unchanged";
|
|
300
|
+
type DiffTableCategoryTone = "accent" | "muted" | "warning";
|
|
301
|
+
interface DiffTableRow {
|
|
302
|
+
/** Stable host ID used by `selectedIds` and callbacks. */
|
|
303
|
+
id: string;
|
|
304
|
+
/** Primary cell and default accessible name for the row control. */
|
|
305
|
+
primary: string;
|
|
306
|
+
category: ReactNode;
|
|
307
|
+
secondary: ReactNode;
|
|
308
|
+
change: DiffTableChange;
|
|
309
|
+
categoryTone?: DiffTableCategoryTone;
|
|
310
|
+
accessibleLabel?: string;
|
|
311
|
+
/** Keeps a changed row visible as context; it cannot be selected or applied. */
|
|
312
|
+
disabled?: boolean;
|
|
313
|
+
}
|
|
314
|
+
interface DiffTableLabels {
|
|
315
|
+
title?: ReactNode;
|
|
316
|
+
hint?: ReactNode;
|
|
317
|
+
primaryColumn?: ReactNode;
|
|
318
|
+
categoryColumn?: ReactNode;
|
|
319
|
+
secondaryColumn?: ReactNode;
|
|
320
|
+
selectionSummary?: (removals: number, additions: number) => ReactNode;
|
|
321
|
+
apply?: (count: number) => ReactNode;
|
|
322
|
+
reject?: ReactNode;
|
|
323
|
+
applied?: (count: number) => ReactNode;
|
|
324
|
+
busy?: ReactNode;
|
|
325
|
+
error?: ReactNode;
|
|
326
|
+
cancelled?: ReactNode;
|
|
327
|
+
disabled?: ReactNode;
|
|
328
|
+
includeRow?: (label: string) => string;
|
|
329
|
+
}
|
|
330
|
+
interface DiffTableProps {
|
|
331
|
+
rows: readonly DiffTableRow[];
|
|
332
|
+
/** Controlled IDs for included additions/removals. */
|
|
333
|
+
selectedIds: readonly string[];
|
|
334
|
+
onSelectionChange?: (selectedIds: readonly string[]) => void;
|
|
335
|
+
/** Host callbacks; the component never marks a request successful itself. */
|
|
336
|
+
onApply?: (selectedIds: readonly string[]) => void;
|
|
337
|
+
onReject?: (selectedIds: readonly string[]) => void;
|
|
338
|
+
state?: DiffTableState;
|
|
339
|
+
/** Optional host-rendered request detail for non-idle states. */
|
|
340
|
+
statusMessage?: ReactNode;
|
|
341
|
+
/** Use when the host clears `selectedIds` after apply but wants to retain result count. */
|
|
342
|
+
resultCount?: number;
|
|
343
|
+
labels?: DiffTableLabels;
|
|
123
344
|
className?: string;
|
|
124
345
|
}
|
|
125
|
-
/**
|
|
126
|
-
|
|
346
|
+
/**
|
|
347
|
+
* Review proposed row changes while keeping selection, apply/reject requests,
|
|
348
|
+
* and request outcomes under host control. Adapted from the pinned MIT source
|
|
349
|
+
* `reference/beautiful-ui/components/primitives/DiffTable.tsx` at
|
|
350
|
+
* `44a274e598395ab61e7c96c26fda2758780253b7`.
|
|
351
|
+
*/
|
|
352
|
+
declare function DiffTable({ rows, selectedIds, onSelectionChange, onApply, onReject, state, statusMessage, resultCount, labels, className, }: DiffTableProps): React.JSX.Element;
|
|
127
353
|
|
|
128
|
-
|
|
129
|
-
|
|
354
|
+
/** One host-owned action in the contextual selection bar. */
|
|
355
|
+
interface SelectionAction {
|
|
356
|
+
/** Stable host action identifier; callbacks receive `action ?? id`. */
|
|
130
357
|
id: string;
|
|
131
|
-
/**
|
|
132
|
-
label
|
|
133
|
-
/** Group key — models are grouped and provider-filtered by this. */
|
|
134
|
-
group: string;
|
|
135
|
-
/** Human label for the group (defaults to `group`). */
|
|
136
|
-
groupLabel?: string;
|
|
137
|
-
/** Extra text folded into search (ids, aliases, owner). */
|
|
138
|
-
searchText?: string;
|
|
139
|
-
/** Leading model icon (trigger + row). */
|
|
358
|
+
/** Optional localized visible label; defaults to the stable ID. */
|
|
359
|
+
label?: ReactNode;
|
|
140
360
|
icon?: ReactNode;
|
|
141
|
-
/**
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
|
|
145
|
-
/** Secondary line under the name (ids/aliases/pricing). */
|
|
146
|
-
detail?: ReactNode;
|
|
147
|
-
/** Right-aligned meta chip(s) (context length / max tokens). */
|
|
148
|
-
meta?: ReactNode;
|
|
149
|
-
disabled?: boolean;
|
|
361
|
+
/** Value reported to the host callback; defaults to `id`. */
|
|
362
|
+
action?: string;
|
|
363
|
+
/** Host-provided activity label for this action while the host reports busy. */
|
|
364
|
+
busyLabel?: string;
|
|
150
365
|
}
|
|
151
|
-
|
|
152
|
-
interface
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
node: ReactNode;
|
|
156
|
-
title?: string;
|
|
157
|
-
/** Whether an option satisfies this filter (all active filters must pass). */
|
|
158
|
-
match: (option: ModelSelectOption) => boolean;
|
|
159
|
-
}
|
|
160
|
-
interface ModelSelectLabels {
|
|
366
|
+
type SelectionActionsState = "idle" | "busy" | "result" | "error" | "cancelled";
|
|
367
|
+
interface SelectionActionsLabels {
|
|
368
|
+
keep?: string;
|
|
369
|
+
discard?: string;
|
|
161
370
|
placeholder?: string;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
371
|
+
submitInstruction?: string;
|
|
372
|
+
customAction?: string;
|
|
373
|
+
working?: string;
|
|
374
|
+
error?: string;
|
|
375
|
+
cancelled?: string;
|
|
376
|
+
retry?: string;
|
|
377
|
+
showMoreActions?: string;
|
|
378
|
+
showFewerActions?: string;
|
|
379
|
+
result?: string;
|
|
380
|
+
}
|
|
381
|
+
interface SelectionActionsProps {
|
|
382
|
+
/** Optional prose immediately before the selected passage. */
|
|
383
|
+
lead?: ReactNode;
|
|
384
|
+
selectedText: string;
|
|
385
|
+
/** Host-provided rewrite. It is never generated by this component. */
|
|
386
|
+
resultText?: string;
|
|
387
|
+
/** Host owns all request state; no internal request timer or optimistic result. */
|
|
388
|
+
state?: SelectionActionsState;
|
|
389
|
+
/** Host-owned actions. Omitting this uses the general-purpose default action set. */
|
|
390
|
+
actions?: readonly SelectionAction[];
|
|
391
|
+
/** Current host activity label; used only while `state="busy"`. */
|
|
392
|
+
busyLabel?: ReactNode;
|
|
393
|
+
labels?: SelectionActionsLabels;
|
|
394
|
+
disabled?: boolean;
|
|
395
|
+
onAction?: (action: string, instruction?: string) => void;
|
|
396
|
+
onAccept?: (result: string) => void;
|
|
397
|
+
onDismiss?: () => void;
|
|
398
|
+
onRetry?: () => void;
|
|
174
399
|
className?: string;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
/** Rendered at the very TOP of the open panel, above the search box — and always visible, even
|
|
184
|
-
* when the list is empty (unlike renderFooter, which hides on an empty result set). Use it for
|
|
185
|
-
* a domain toolbar that must stay reachable, e.g. a browse-mode switch above the picker. */
|
|
186
|
-
renderHeader?: () => ReactNode;
|
|
187
|
-
/** Bump this to imperatively clear the internal search + provider/capability filters WITHOUT
|
|
188
|
-
* remounting the panel (so it stays open and doesn't lose scroll/focus). Use it when the option
|
|
189
|
-
* set is swapped out from under the filters — e.g. toggling a browse mode — where a carried-over
|
|
190
|
-
* filter would otherwise empty the new list. */
|
|
191
|
-
filterResetKey?: string | number;
|
|
192
|
-
}
|
|
193
|
-
/** A generic, searchable model picker: provider grouping + provider/capability
|
|
194
|
-
* filters + a pinned section + a styled dropdown. Domain-agnostic. */
|
|
195
|
-
declare function ModelSelect({ options, value, onChange, className, labels, pinned, onTogglePin, filters, renderFooter, renderHeader, filterResetKey, }: ModelSelectProps): React.JSX.Element;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Contextual actions anchored below host-selected text. The host supplies the
|
|
403
|
+
* passage, generated result, request lifecycle, and callbacks. Adapted from the
|
|
404
|
+
* pinned MIT source `reference/beautiful-ui/components/primitives/SelectionActions.tsx`
|
|
405
|
+
* at `44a274e598395ab61e7c96c26fda2758780253b7`.
|
|
406
|
+
*/
|
|
407
|
+
declare function SelectionActions({ lead, selectedText, resultText, state, actions, busyLabel, labels, disabled, onAction, onAccept, onDismiss, onRetry, className, }: SelectionActionsProps): React.JSX.Element;
|
|
196
408
|
|
|
197
409
|
/** One labelled spec shown in the card's spec grid. */
|
|
198
410
|
interface ModelManagerField {
|
|
@@ -230,15 +442,6 @@ interface ModelManagerCardProps {
|
|
|
230
442
|
/** A model-management row as a card (all admin columns, top-to-bottom). */
|
|
231
443
|
declare function ModelManagerCard({ icon, name, nameBadges, ids, selectSlot, actions, fields, capabilities, selected, className, }: ModelManagerCardProps): React.JSX.Element;
|
|
232
444
|
|
|
233
|
-
/** Click-to-copy mono ID badge (faithful port of Yunxin's IDBadge).
|
|
234
|
-
* Defaults to subtitle scale (`sm`: 11px, muted, tighter); pass `size="default"`
|
|
235
|
-
* for the larger 12px variant. */
|
|
236
|
-
declare function IDBadge({ text, truncate, size, }: {
|
|
237
|
-
text: string;
|
|
238
|
-
truncate?: boolean;
|
|
239
|
-
size?: "default" | "sm";
|
|
240
|
-
}): React.JSX.Element;
|
|
241
|
-
|
|
242
445
|
interface CapabilitySelectorProps {
|
|
243
446
|
/** Currently selected capability keys (controlled). */
|
|
244
447
|
selected: string[];
|
|
@@ -256,16 +459,6 @@ interface CapabilitySelectorProps {
|
|
|
256
459
|
/** Multi-select grid of toggleable model capabilities; the option set adapts to `modelType`. */
|
|
257
460
|
declare function CapabilitySelector({ selected, onChange, disabled, size, columns, modelType }: CapabilitySelectorProps): React.JSX.Element;
|
|
258
461
|
|
|
259
|
-
/** Whether a capability key has a known icon/color in the design system. */
|
|
260
|
-
declare function isKnownCapability(capability: string): boolean;
|
|
261
|
-
/** Just the colored capability glyph — e.g. the inline icons shown after a model
|
|
262
|
-
* name. Renders nothing for an unknown capability. */
|
|
263
|
-
declare function CapabilityIcon({ capability, size, className, }: {
|
|
264
|
-
capability: string;
|
|
265
|
-
size?: number;
|
|
266
|
-
className?: string;
|
|
267
|
-
}): React.JSX.Element | null;
|
|
268
|
-
|
|
269
462
|
/**
|
|
270
463
|
* Rounded provider icon — a thin alias over the canonical {@link ProviderIcon}
|
|
271
464
|
* (rounded avatar style). Kept for call sites that prefer the short name.
|
|
@@ -280,150 +473,162 @@ declare function ModelTypeIcon({ type, size }: {
|
|
|
280
473
|
size?: number;
|
|
281
474
|
}): React.JSX.Element;
|
|
282
475
|
|
|
476
|
+
type FumadocsButtonSize = 'sm' | 'icon' | 'icon-sm' | 'icon-xs';
|
|
283
477
|
declare const buttonVariants: (props?: ({
|
|
284
|
-
variant?: "
|
|
285
|
-
color?: "
|
|
286
|
-
size?:
|
|
478
|
+
variant?: "primary" | "secondary" | "ghost" | "outline" | null | undefined;
|
|
479
|
+
color?: "primary" | "secondary" | "ghost" | "outline" | null | undefined;
|
|
480
|
+
size?: FumadocsButtonSize | null | undefined;
|
|
287
481
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
288
482
|
/** Variant props for {@link buttonVariants}: `variant`/`color` (primary, outline, ghost, secondary) and `size` (sm, icon, icon-sm, icon-xs). */
|
|
289
483
|
type ButtonProps = VariantProps<typeof buttonVariants>;
|
|
290
484
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
485
|
+
declare const PROVIDER_ICON_SLUGS: ReadonlySet<string>;
|
|
486
|
+
|
|
487
|
+
interface AccountMenuUser {
|
|
488
|
+
/** Display name. Falls back to `fallbackName` when absent. */
|
|
489
|
+
name?: string | null;
|
|
490
|
+
/** Shown under the name in the menu header. */
|
|
491
|
+
email?: string | null;
|
|
492
|
+
/** Avatar image URL; a glyph is shown when absent. */
|
|
493
|
+
avatarUrl?: string | null;
|
|
494
|
+
}
|
|
495
|
+
interface AccountMenuItem {
|
|
496
|
+
key: string;
|
|
497
|
+
label: ReactNode;
|
|
498
|
+
icon?: ElementType;
|
|
499
|
+
/** Navigate on select. */
|
|
500
|
+
href?: string;
|
|
501
|
+
/** Or run something on select (takes precedence over `href`). */
|
|
502
|
+
onSelect?: () => void;
|
|
503
|
+
}
|
|
504
|
+
interface AccountMenuProps {
|
|
505
|
+
/**
|
|
506
|
+
* The signed-in user, `null` when signed out, or `undefined` while the
|
|
507
|
+
* answer is still unknown.
|
|
508
|
+
*
|
|
509
|
+
* The three-state shape is the point: a session cookie is usually
|
|
510
|
+
* `httpOnly`, so the page cannot read it and only the server can answer.
|
|
511
|
+
* While it is `undefined` this renders a fixed-size placeholder rather than
|
|
512
|
+
* guessing — showing "sign in" first and swapping to an avatar makes every
|
|
513
|
+
* page load look like it signed the reader out.
|
|
514
|
+
*/
|
|
515
|
+
user: AccountMenuUser | null | undefined;
|
|
516
|
+
/** Menu entries above the sign-out row. */
|
|
517
|
+
items?: AccountMenuItem[];
|
|
518
|
+
/** Where the signed-out button links. */
|
|
519
|
+
signInHref: string;
|
|
520
|
+
/** Called when the sign-out row is chosen. Omit to hide the row. */
|
|
521
|
+
onSignOut?: () => void;
|
|
522
|
+
/** Every string this renders — localize them yourself. */
|
|
523
|
+
labels?: {
|
|
524
|
+
signIn?: string;
|
|
525
|
+
signOut?: string;
|
|
526
|
+
/** Accessible name for the trigger, e.g. "{name} menu". */
|
|
527
|
+
menu?: string;
|
|
528
|
+
/** Shown when the user has no name. */
|
|
529
|
+
fallbackName?: string;
|
|
530
|
+
};
|
|
334
531
|
className?: string;
|
|
335
|
-
/** Icon size in pixels. @defaultValue 20 */
|
|
336
|
-
size?: number;
|
|
337
|
-
/** Render as a rounded avatar tile with a subtle background. */
|
|
338
|
-
rounded?: boolean;
|
|
339
532
|
}
|
|
340
533
|
/**
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* 3. Provider's icon (fallback)
|
|
534
|
+
* The navbar account control: a sign-in glyph when signed out, the reader's
|
|
535
|
+
* avatar when signed in, and a menu with their identity, your links and a
|
|
536
|
+
* sign-out row.
|
|
345
537
|
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
538
|
+
* Extracted from YunNEWS, which handles the signed-in swap better than the
|
|
539
|
+
* other apps — hence upstreaming it so they all get it. Purely presentational:
|
|
540
|
+
* the host fetches the session, supplies every label and owns each action.
|
|
348
541
|
*/
|
|
349
|
-
declare function
|
|
350
|
-
/** {@link ModelIcon} preset that is always rounded with a background (avatar style). */
|
|
351
|
-
declare function ModelAvatar({ iconUrl, developer, provider, size, className, }: {
|
|
352
|
-
/** Model's own icon URL or filename (highest priority). */
|
|
353
|
-
iconUrl?: string | null;
|
|
354
|
-
/** Developer id (second priority). */
|
|
355
|
-
developer?: string | null;
|
|
356
|
-
/** Provider id (fallback). */
|
|
357
|
-
provider: string;
|
|
358
|
-
/** Icon size in pixels. @defaultValue 32 */
|
|
359
|
-
size?: number;
|
|
360
|
-
className?: string;
|
|
361
|
-
}): React.JSX.Element;
|
|
362
|
-
|
|
363
|
-
declare const PROVIDER_ICON_SLUGS: ReadonlySet<string>;
|
|
542
|
+
declare function AccountMenu({ user, items, signInHref, onSignOut, labels, className, }: AccountMenuProps): React.JSX.Element;
|
|
364
543
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
544
|
+
type ToolCallStatus = "running" | "success" | "error" | "approval" | "denied";
|
|
545
|
+
interface ToolCallLabels {
|
|
546
|
+
/** Spoken status words, announced when a call changes state. */
|
|
547
|
+
running?: string;
|
|
548
|
+
success?: string;
|
|
549
|
+
error?: string;
|
|
550
|
+
approval?: string;
|
|
551
|
+
denied?: string;
|
|
552
|
+
input?: string;
|
|
553
|
+
output?: string;
|
|
554
|
+
allow?: string;
|
|
555
|
+
deny?: string;
|
|
556
|
+
retry?: string;
|
|
557
|
+
copy?: string;
|
|
558
|
+
copied?: string;
|
|
559
|
+
copyFailed?: string;
|
|
560
|
+
showMore?: string;
|
|
561
|
+
showLess?: string;
|
|
370
562
|
}
|
|
371
|
-
interface
|
|
372
|
-
/**
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
563
|
+
interface ToolCallProps {
|
|
564
|
+
/** The call in plain words ("Searched issues in repo"). Shimmers while running. */
|
|
565
|
+
title: string;
|
|
566
|
+
status: ToolCallStatus;
|
|
567
|
+
/** The tool's mark: an icon or logo, 16px. */
|
|
568
|
+
mark?: ReactNode;
|
|
569
|
+
/** Quiet meta beside the status ("4 results"). */
|
|
570
|
+
summary?: string;
|
|
571
|
+
/** Host-formatted duration ("1.2s"). Never invented by the component. */
|
|
572
|
+
duration?: string;
|
|
573
|
+
/** Why a call failed or was denied; shown under the title. */
|
|
574
|
+
reason?: string;
|
|
575
|
+
/** The arguments, verbatim. */
|
|
576
|
+
input?: string;
|
|
577
|
+
/** The result, verbatim. */
|
|
578
|
+
output?: string;
|
|
579
|
+
/** Lines shown before "Show more". @defaultValue 8 */
|
|
580
|
+
maxLines?: number;
|
|
581
|
+
open?: boolean;
|
|
582
|
+
defaultOpen?: boolean;
|
|
583
|
+
onOpenChange?: (open: boolean) => void;
|
|
584
|
+
onApprove?: () => void;
|
|
585
|
+
onDeny?: () => void;
|
|
586
|
+
onRetry?: () => void;
|
|
587
|
+
labels?: ToolCallLabels;
|
|
588
|
+
/** Stagger index inside an opening group. */
|
|
589
|
+
index?: number;
|
|
387
590
|
className?: string;
|
|
388
591
|
}
|
|
389
|
-
/**
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
592
|
+
/**
|
|
593
|
+
* One tool call row for an agent transcript: the tool's mark and the call in plain
|
|
594
|
+
* words, a live state while it runs, and the input and output one click away.
|
|
595
|
+
* A call awaiting a decision shows inline Allow and Deny; a failed one shows its
|
|
596
|
+
* reason and Retry. Presentational: the host owns status, text and every handler.
|
|
597
|
+
* Interaction model studied from public documentation of Arc's tool-call row;
|
|
598
|
+
* implementation is original.
|
|
599
|
+
*/
|
|
600
|
+
declare function ToolCall({ title, status, mark, summary, duration, reason, input, output, maxLines, open, defaultOpen, onOpenChange, onApprove, onDeny, onRetry, labels, index, className, }: ToolCallProps): React.JSX.Element;
|
|
601
|
+
interface ToolCallGroupLabels {
|
|
602
|
+
/** "Used 4 tools" once finished. */
|
|
603
|
+
used?: (count: number) => string;
|
|
604
|
+
/** "Using 3 tools" while any call is running. */
|
|
605
|
+
using?: (count: number) => string;
|
|
606
|
+
/** "Waiting for you" when a call needs a decision. */
|
|
607
|
+
waiting?: string;
|
|
608
|
+
/** "1 failed". */
|
|
609
|
+
failed?: (count: number) => string;
|
|
397
610
|
}
|
|
398
|
-
interface
|
|
399
|
-
/**
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
labels?:
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
homeHref?: string;
|
|
421
|
-
/** Sign-in link destination. @defaultValue "/login" */
|
|
422
|
-
loginHref?: string;
|
|
423
|
-
/** Sign-up link destination. @defaultValue "/signup" */
|
|
424
|
-
signupHref?: string;
|
|
425
|
-
}
|
|
426
|
-
/** Floating top navigation bar: logo, center links with scroll-spy, theme/language slots, and auth buttons with a mobile menu. */
|
|
427
|
-
declare function Navbar({ appName, logoSrc, links, currentPath, variant, labels, languageSwitcher, themeToggle, homeHref, loginHref, signupHref, }: NavbarProps): React.JSX.Element;
|
|
611
|
+
interface ToolCallGroupProps {
|
|
612
|
+
/** `ToolCall` elements of one assistant turn. */
|
|
613
|
+
children: ReactNode;
|
|
614
|
+
/** Overlapping marks of the tools used, shown in the header. */
|
|
615
|
+
marks?: ReactNode;
|
|
616
|
+
/** Host-formatted total duration. */
|
|
617
|
+
duration?: string;
|
|
618
|
+
open?: boolean;
|
|
619
|
+
defaultOpen?: boolean;
|
|
620
|
+
onOpenChange?: (open: boolean) => void;
|
|
621
|
+
/** Fold 450ms after every call has finished, unless the person opened or closed anything. @defaultValue true */
|
|
622
|
+
autoCollapse?: boolean;
|
|
623
|
+
labels?: ToolCallGroupLabels;
|
|
624
|
+
className?: string;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Several calls from one assistant turn under a quiet header. While the agent works
|
|
628
|
+
* the header reads "Using 3 tools" with a shimmer; a call that needs a decision
|
|
629
|
+
* opens a closed group; once every call has finished the list folds itself away so
|
|
630
|
+
* the answer reads right under "Used 4 tools". Rows settle in 20ms apart when opened.
|
|
631
|
+
*/
|
|
632
|
+
declare function ToolCallGroup({ children, marks, duration, open, defaultOpen, onOpenChange, autoCollapse, labels, className }: ToolCallGroupProps): React.JSX.Element;
|
|
428
633
|
|
|
429
|
-
export { type AgentRunPhase, AgentRunStatus, type AgentRunStatusProps, AgentTimeline, type AgentTimelineBlock, type AgentTimelineIconName, type AgentTimelineProps, type
|
|
634
|
+
export { AccountMenu, type AccountMenuItem, type AccountMenuProps, type AccountMenuUser, type AgentRunPhase, type AgentRunState, AgentRunStatus, type AgentRunStatusProps, type AgentRunTerminalPhase, AgentTimeline, type AgentTimelineBlock, type AgentTimelineCancelledToolBlock, type AgentTimelineDiffLine, type AgentTimelineDiffTone, type AgentTimelineEntry, type AgentTimelineEntryIconName, type AgentTimelineFileChange, type AgentTimelineIconName, type AgentTimelineLabels, type AgentTimelineProps, type AgentTimelineSummary, type AgentTimelineTaskBlock, type AgentTimelineTaskDetail, type AgentTimelineTaskStatus, type AgentTimelineToolDetail, type AgentTimelineToolEntryBlock, type AgentTimelineToolStatus, ApprovalQuestion, type ApprovalQuestionAnswer, type ApprovalQuestionAnswers, type ApprovalQuestionData, type ApprovalQuestionLabels, type ApprovalQuestionOption, type ApprovalQuestionOtherOption, type ApprovalQuestionProps, type ButtonProps, CapabilitySelector, DiffTable, type DiffTableCategoryTone, type DiffTableChange, type DiffTableLabels, type DiffTableProps, type DiffTableRow, type DiffTableState, type FumadocsButtonSize, ModelManagerCard, type ModelManagerCardProps, type ModelManagerField, ModelTypeIcon, PROVIDER_ICON_SLUGS, ProviderIconImg, type SelectionAction, SelectionActions, type SelectionActionsLabels, type SelectionActionsProps, type SelectionActionsState, ThinkingBlock, type ThinkingBlockLabels, type ThinkingBlockProps, type ThinkingBlockStep, type ThinkingStepStatus, ToolCall, ToolCallGroup, type ToolCallGroupLabels, type ToolCallGroupProps, type ToolCallLabels, type ToolCallProps, type ToolCallStatus, buttonVariants };
|