mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
f0e4e2f757
Rename public SDK symbols to use generic LLM terminology instead of exposing the internal dependency name (charm.land/fantasy): Public API renames (with deprecated wrappers for backward compat): - ConvertToFantasyMessages() → ConvertToLLMMessages() - ConvertFromFantasyMessage() → ConvertFromLLMMessage() - GetFantasyProviders() → GetLLMProviders() New type alias: - LLMFilePart = fantasy.FilePart (eliminates need for direct fantasy import) - PromptResultWithFiles() signature now uses LLMFilePart Internal renames (with deprecated wrappers): - ModelsRegistry.GetFantasyProviders() → GetLLMProviders() - TreeManager.GetFantasyMessages() → GetLLMMessages() - TreeManager.AppendFantasyMessage() → AppendLLMMessage() - TreeManager.AddFantasyMessages() → AddLLMMessages() - Message.ToFantasyMessages() → ToLLMMessages() - FromFantasyMessage() → FromLLMMessage() - npmToFantasyProvider → npmToLLMProvider - isProviderFantasySupported() → isProviderLLMSupported() All internal callers migrated to new names. ~30 comments updated to remove Fantasy references across pkg/kit/, internal/agent/, internal/models/, internal/message/, internal/session/. Documentation updates: - AGENTS.md: added Public SDK rules section (no dependency leakage, naming conventions, deprecation pattern) - README.md: removed Fantasy references - pkg/kit/README.md: full rewrite with current API surface - skills/kit-sdk/SKILL.md: updated examples and type references - www/pages/providers.md, www/pages/cli/commands.md: updated