From 2f08d3320bfdf348658941a5e904f2c59b9efde0 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Fri, 17 Oct 2025 10:51:39 -0300 Subject: [PATCH] chore: rename module to `charm.land/fantasy` (#19) --- anthropic/anthropic.go | 2 +- anthropic/provider_options.go | 2 +- azure/azure.go | 4 ++-- bedrock/bedrock.go | 4 ++-- examples/agent/main.go | 4 ++-- examples/simple/main.go | 4 ++-- examples/stream/main.go | 4 ++-- examples/streaming-agent-simple/main.go | 4 ++-- examples/streaming-agent/main.go | 4 ++-- go.mod | 2 +- google/google.go | 4 ++-- google/provider_options.go | 2 +- openai/language_model.go | 2 +- openai/language_model_hooks.go | 2 +- openai/openai.go | 2 +- openai/openai_test.go | 2 +- openai/provider_options.go | 2 +- openai/responses_language_model.go | 2 +- openai/responses_options.go | 2 +- openaicompat/language_model_hooks.go | 4 ++-- openaicompat/openaicompat.go | 4 ++-- openaicompat/provider_options.go | 4 ++-- openrouter/language_model_hooks.go | 4 ++-- openrouter/openrouter.go | 4 ++-- openrouter/provider_options.go | 2 +- providertests/anthropic_test.go | 4 ++-- providertests/azure_test.go | 6 +++--- providertests/bedrock_test.go | 4 ++-- providertests/common_test.go | 2 +- providertests/google_test.go | 4 ++-- providertests/openai_responses_test.go | 4 ++-- providertests/openai_test.go | 4 ++-- providertests/openaicompat_test.go | 6 +++--- providertests/openrouter_test.go | 4 ++-- 34 files changed, 57 insertions(+), 57 deletions(-) diff --git a/anthropic/anthropic.go b/anthropic/anthropic.go index 076e9f810fa4f55851fdc429bccf5b68b949524d..57b19452073558becf33e90f06b3a8f9dfb4f3f3 100644 --- a/anthropic/anthropic.go +++ b/anthropic/anthropic.go @@ -11,12 +11,12 @@ import ( "maps" "strings" + "charm.land/fantasy/ai" "github.com/anthropics/anthropic-sdk-go" "github.com/anthropics/anthropic-sdk-go/bedrock" "github.com/anthropics/anthropic-sdk-go/option" "github.com/anthropics/anthropic-sdk-go/packages/param" "github.com/anthropics/anthropic-sdk-go/vertex" - "github.com/charmbracelet/fantasy/ai" "golang.org/x/oauth2/google" ) diff --git a/anthropic/provider_options.go b/anthropic/provider_options.go index 99fe9c865978130b30d5ec246169a2fc346f74c9..2d7f424ceee4e6ba0b630147a8b893dc83f11e7e 100644 --- a/anthropic/provider_options.go +++ b/anthropic/provider_options.go @@ -1,6 +1,6 @@ package anthropic -import "github.com/charmbracelet/fantasy/ai" +import "charm.land/fantasy/ai" type ProviderOptions struct { SendReasoning *bool `json:"send_reasoning"` diff --git a/azure/azure.go b/azure/azure.go index 25f5ca1fb6776df0cc1972f377fdac17cc16ca32..dfe9ae0dee701e07af2334b7cacbc117511dc539 100644 --- a/azure/azure.go +++ b/azure/azure.go @@ -1,8 +1,8 @@ package azure import ( - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openaicompat" + "charm.land/fantasy/ai" + "charm.land/fantasy/openaicompat" "github.com/openai/openai-go/v2/azure" "github.com/openai/openai-go/v2/option" ) diff --git a/bedrock/bedrock.go b/bedrock/bedrock.go index 5833512036631d2ca8286dfc4a09891dd1ba4087..6d4bb2ddf9214955f058e97e301dc715f9d04d46 100644 --- a/bedrock/bedrock.go +++ b/bedrock/bedrock.go @@ -1,9 +1,9 @@ package bedrock import ( + "charm.land/fantasy/ai" + "charm.land/fantasy/anthropic" "github.com/anthropics/anthropic-sdk-go/option" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/anthropic" ) type options struct { diff --git a/examples/agent/main.go b/examples/agent/main.go index 74dead4be867696508c87cb9912ef624ad84be3a..79753b5184fe5a131898b80f73bf5220afd6f03c 100644 --- a/examples/agent/main.go +++ b/examples/agent/main.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openrouter" + "charm.land/fantasy/ai" + "charm.land/fantasy/openrouter" ) func main() { diff --git a/examples/simple/main.go b/examples/simple/main.go index 9a43556bc24b3145af5b865060e941f84f9fdf88..fdaf17810a2f6da01387d2f21e4c84ea782b4f45 100644 --- a/examples/simple/main.go +++ b/examples/simple/main.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/anthropic" + "charm.land/fantasy/ai" + "charm.land/fantasy/anthropic" ) func main() { diff --git a/examples/stream/main.go b/examples/stream/main.go index eede4d9c5582e928f9e84579a6f5f28015cc8fad..a9bc6cbe5658b039c25f7cc0eb192f0eb85fa3ab 100644 --- a/examples/stream/main.go +++ b/examples/stream/main.go @@ -6,8 +6,8 @@ import ( "fmt" "os" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openai" + "charm.land/fantasy/ai" + "charm.land/fantasy/openai" ) func main() { diff --git a/examples/streaming-agent-simple/main.go b/examples/streaming-agent-simple/main.go index 25051e194a2801aea4b48ddc5fd9c8ebb69de716..0b9f87c60e37c6bde67980fe91ecb7d6a830cce5 100644 --- a/examples/streaming-agent-simple/main.go +++ b/examples/streaming-agent-simple/main.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openai" + "charm.land/fantasy/ai" + "charm.land/fantasy/openai" ) func main() { diff --git a/examples/streaming-agent/main.go b/examples/streaming-agent/main.go index 2cbdea58dd047096393f4ba4d593078450cbb40a..16244621b97878569ba75ae8cad0a4fbde4a1ddc 100644 --- a/examples/streaming-agent/main.go +++ b/examples/streaming-agent/main.go @@ -6,8 +6,8 @@ import ( "os" "strings" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/anthropic" + "charm.land/fantasy/ai" + "charm.land/fantasy/anthropic" ) func main() { diff --git a/go.mod b/go.mod index 5267a77130f8e4d7fbfa048cf49b4858181db50f..25645e13502b5eebdfb403bdf2525d156e7f2041 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/charmbracelet/fantasy +module charm.land/fantasy go 1.24.5 diff --git a/google/google.go b/google/google.go index 1586816ef77601ccd3fa37541af49a2694e3d774..3d5909baa41644456fe86c1fc73c00b8ee900d2c 100644 --- a/google/google.go +++ b/google/google.go @@ -11,9 +11,9 @@ import ( "net/http" "strings" + "charm.land/fantasy/ai" + "charm.land/fantasy/anthropic" "cloud.google.com/go/auth" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/anthropic" "github.com/charmbracelet/x/exp/slice" "github.com/google/uuid" "google.golang.org/genai" diff --git a/google/provider_options.go b/google/provider_options.go index e0c4ba42336bb4139bb5e5c72a5ac9ac9df23574..eed37501643772c41974d628dc94f61280c0df57 100644 --- a/google/provider_options.go +++ b/google/provider_options.go @@ -1,6 +1,6 @@ package google -import "github.com/charmbracelet/fantasy/ai" +import "charm.land/fantasy/ai" type ThinkingConfig struct { ThinkingBudget *int64 `json:"thinking_budget"` diff --git a/openai/language_model.go b/openai/language_model.go index ac0929324f50a0fed5b884d0bb529672bf9d9461..e5ac86db2f2a4fbc52a28112987c293f4dac3f8d 100644 --- a/openai/language_model.go +++ b/openai/language_model.go @@ -9,7 +9,7 @@ import ( "io" "strings" - "github.com/charmbracelet/fantasy/ai" + "charm.land/fantasy/ai" xjson "github.com/charmbracelet/x/json" "github.com/google/uuid" "github.com/openai/openai-go/v2" diff --git a/openai/language_model_hooks.go b/openai/language_model_hooks.go index 7df8bc119941b3d860fd36dd6e21ba11134df70a..2e5a294855c3d1ea915c328729d1be46ef6f1b0c 100644 --- a/openai/language_model_hooks.go +++ b/openai/language_model_hooks.go @@ -3,7 +3,7 @@ package openai import ( "fmt" - "github.com/charmbracelet/fantasy/ai" + "charm.land/fantasy/ai" "github.com/openai/openai-go/v2" "github.com/openai/openai-go/v2/packages/param" "github.com/openai/openai-go/v2/shared" diff --git a/openai/openai.go b/openai/openai.go index d1d69508576ac8162701402167c977952417cb38..d18d74bacb1ec8585ffad425864e3f7446e063a3 100644 --- a/openai/openai.go +++ b/openai/openai.go @@ -5,7 +5,7 @@ import ( "cmp" "maps" - "github.com/charmbracelet/fantasy/ai" + "charm.land/fantasy/ai" "github.com/openai/openai-go/v2" "github.com/openai/openai-go/v2/option" ) diff --git a/openai/openai_test.go b/openai/openai_test.go index c5f6b56a09a68d48bf5e55124e0a47b0aea60f96..5c40c91e50c75ed1a7282eb452e3295c7d39d778 100644 --- a/openai/openai_test.go +++ b/openai/openai_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/charmbracelet/fantasy/ai" + "charm.land/fantasy/ai" "github.com/openai/openai-go/v2/packages/param" "github.com/stretchr/testify/require" ) diff --git a/openai/provider_options.go b/openai/provider_options.go index 3789db0291b8c00bf0ad3c91d546fdba5fdca376..84416710fa9ba2d9b7ce28c4dc5d650fb24926cf 100644 --- a/openai/provider_options.go +++ b/openai/provider_options.go @@ -1,7 +1,7 @@ package openai import ( - "github.com/charmbracelet/fantasy/ai" + "charm.land/fantasy/ai" "github.com/openai/openai-go/v2" ) diff --git a/openai/responses_language_model.go b/openai/responses_language_model.go index cba427d04ddff172b93efecc9a9004550384c058..46cb8c98894eba59f6f8b5094842f2339ac297d3 100644 --- a/openai/responses_language_model.go +++ b/openai/responses_language_model.go @@ -8,7 +8,7 @@ import ( "fmt" "strings" - "github.com/charmbracelet/fantasy/ai" + "charm.land/fantasy/ai" "github.com/google/uuid" "github.com/openai/openai-go/v2" "github.com/openai/openai-go/v2/packages/param" diff --git a/openai/responses_options.go b/openai/responses_options.go index 1ff353bea2290b3d2455cf5a936b25a5be5900ac..bfa4abb490259c926f6870756af4c431e7bfb74c 100644 --- a/openai/responses_options.go +++ b/openai/responses_options.go @@ -3,7 +3,7 @@ package openai import ( "slices" - "github.com/charmbracelet/fantasy/ai" + "charm.land/fantasy/ai" ) type ResponsesReasoningMetadata struct { diff --git a/openaicompat/language_model_hooks.go b/openaicompat/language_model_hooks.go index 601d3ee15a5fc7d1bbb4e15da0f8aa69ad477f6c..6b804861d43322530ff8817964448dc851e9c3ba 100644 --- a/openaicompat/language_model_hooks.go +++ b/openaicompat/language_model_hooks.go @@ -4,8 +4,8 @@ import ( "encoding/json" "fmt" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openai" + "charm.land/fantasy/ai" + "charm.land/fantasy/openai" openaisdk "github.com/openai/openai-go/v2" "github.com/openai/openai-go/v2/packages/param" "github.com/openai/openai-go/v2/shared" diff --git a/openaicompat/openaicompat.go b/openaicompat/openaicompat.go index 2ac905f349f09b05620cb11cb26ad292c7b6b5a5..d73a01b11c1e08620cb32f636a23f55bf36f17aa 100644 --- a/openaicompat/openaicompat.go +++ b/openaicompat/openaicompat.go @@ -1,8 +1,8 @@ package openaicompat import ( - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openai" + "charm.land/fantasy/ai" + "charm.land/fantasy/openai" "github.com/openai/openai-go/v2/option" ) diff --git a/openaicompat/provider_options.go b/openaicompat/provider_options.go index 37bb7e553a0cf0cd970b79ba726b8b2ffd7cb6a0..9db56f57f517e6d4a49caf6169bff9d807ae8c1b 100644 --- a/openaicompat/provider_options.go +++ b/openaicompat/provider_options.go @@ -1,8 +1,8 @@ package openaicompat import ( - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openai" + "charm.land/fantasy/ai" + "charm.land/fantasy/openai" ) type ProviderOptions struct { diff --git a/openrouter/language_model_hooks.go b/openrouter/language_model_hooks.go index 0754878fc5c9ce3a6fdff4f3619d4b64cd0d73e6..de92b5d5eb56106abd39130bc4e74ecbfc25b79a 100644 --- a/openrouter/language_model_hooks.go +++ b/openrouter/language_model_hooks.go @@ -5,8 +5,8 @@ import ( "fmt" "maps" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/anthropic" + "charm.land/fantasy/ai" + "charm.land/fantasy/anthropic" openaisdk "github.com/openai/openai-go/v2" "github.com/openai/openai-go/v2/packages/param" ) diff --git a/openrouter/openrouter.go b/openrouter/openrouter.go index 5d70e4cd2db8ace8b431118c1126fe5c8a327acd..d9e800fbb01b40d45f117ffdb8a28b9696601675 100644 --- a/openrouter/openrouter.go +++ b/openrouter/openrouter.go @@ -3,8 +3,8 @@ package openrouter import ( "encoding/json" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openai" + "charm.land/fantasy/ai" + "charm.land/fantasy/openai" "github.com/openai/openai-go/v2/option" ) diff --git a/openrouter/provider_options.go b/openrouter/provider_options.go index 3fd80539dec06e1ad6ac214f0aec3350bcb2989d..0629a7314817971e6af9c8722e463f1ce471504a 100644 --- a/openrouter/provider_options.go +++ b/openrouter/provider_options.go @@ -1,7 +1,7 @@ package openrouter import ( - "github.com/charmbracelet/fantasy/ai" + "charm.land/fantasy/ai" ) type ReasoningEffort string diff --git a/providertests/anthropic_test.go b/providertests/anthropic_test.go index 2526e33ba44f39acba9f1d229bed2c80eb15961b..cd2f0f35abbdea430711d41d2442dec6d7d23ed2 100644 --- a/providertests/anthropic_test.go +++ b/providertests/anthropic_test.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/anthropic" + "charm.land/fantasy/ai" + "charm.land/fantasy/anthropic" "github.com/stretchr/testify/require" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) diff --git a/providertests/azure_test.go b/providertests/azure_test.go index 284d39622023218b8fc01644894e9d2542ac725f..e6683f9829d562b351da2fcfad26796d1504a051 100644 --- a/providertests/azure_test.go +++ b/providertests/azure_test.go @@ -6,9 +6,9 @@ import ( "os" "testing" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/azure" - "github.com/charmbracelet/fantasy/openai" + "charm.land/fantasy/ai" + "charm.land/fantasy/azure" + "charm.land/fantasy/openai" "github.com/stretchr/testify/require" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) diff --git a/providertests/bedrock_test.go b/providertests/bedrock_test.go index 3a758c2c24e64ea91704fa7109436c99343eab76..24cb211e9fa01fd01cfedd64afc5201f0c188a25 100644 --- a/providertests/bedrock_test.go +++ b/providertests/bedrock_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/bedrock" + "charm.land/fantasy/ai" + "charm.land/fantasy/bedrock" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) diff --git a/providertests/common_test.go b/providertests/common_test.go index 20720ca9c2c6f20793dafbfcecc48652e94f4b7a..3ae5e20c7544f83523678f2577b9dfeeb6e0cd85 100644 --- a/providertests/common_test.go +++ b/providertests/common_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/charmbracelet/fantasy/ai" + "charm.land/fantasy/ai" "github.com/joho/godotenv" "github.com/stretchr/testify/require" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" diff --git a/providertests/google_test.go b/providertests/google_test.go index 632e6192b427265102ce946b45edd3ed97290235..2dc873c08aaa8cba54c090e9fbaa53c9e01ae065 100644 --- a/providertests/google_test.go +++ b/providertests/google_test.go @@ -6,8 +6,8 @@ import ( "os" "testing" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/google" + "charm.land/fantasy/ai" + "charm.land/fantasy/google" "github.com/stretchr/testify/require" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) diff --git a/providertests/openai_responses_test.go b/providertests/openai_responses_test.go index b925c01a01582c3c7ea5dbc4320a89e7d97bf5bb..beb98e9e2a64ceaac824af7a6744edfcf518c8f7 100644 --- a/providertests/openai_responses_test.go +++ b/providertests/openai_responses_test.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openai" + "charm.land/fantasy/ai" + "charm.land/fantasy/openai" "github.com/stretchr/testify/require" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) diff --git a/providertests/openai_test.go b/providertests/openai_test.go index b984c4970aebba6723ab431ae09f2912d7c1280b..f9a0ef2a03580d2a79a74c6a42edaf64d1286da1 100644 --- a/providertests/openai_test.go +++ b/providertests/openai_test.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openai" + "charm.land/fantasy/ai" + "charm.land/fantasy/openai" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) diff --git a/providertests/openaicompat_test.go b/providertests/openaicompat_test.go index 5d954ab75d285bcc0802bd734528c670e7d8843d..f3b15ea74d5dbbf97a12bda3c588617a29b5da66 100644 --- a/providertests/openaicompat_test.go +++ b/providertests/openaicompat_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openai" - "github.com/charmbracelet/fantasy/openaicompat" + "charm.land/fantasy/ai" + "charm.land/fantasy/openai" + "charm.land/fantasy/openaicompat" "github.com/stretchr/testify/require" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" ) diff --git a/providertests/openrouter_test.go b/providertests/openrouter_test.go index aa08556032f130eca0e804226ece7d654176b4f1..244afcb34da402b78e91ef34d45d2c9b69d9483c 100644 --- a/providertests/openrouter_test.go +++ b/providertests/openrouter_test.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/charmbracelet/fantasy/ai" - "github.com/charmbracelet/fantasy/openrouter" + "charm.land/fantasy/ai" + "charm.land/fantasy/openrouter" "github.com/stretchr/testify/require" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" )