From cb001a241bec488b7bf66a0550e3c3e088a26efb Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 9 Mar 2026 12:04:54 +0100 Subject: [PATCH] Remove package to github.com/docker/docker-agent Signed-off-by: David Gageot --- .golangci.yml | 4 +- CHANGELOG.md | 402 +++++++++--------- Dockerfile | 2 +- Taskfile.yml | 2 +- cmd/root/a2a.go | 8 +- cmd/root/acp.go | 8 +- cmd/root/alias.go | 10 +- cmd/root/api.go | 10 +- cmd/root/completion.go | 4 +- cmd/root/debug.go | 12 +- cmd/root/debug_auth.go | 4 +- cmd/root/eval.go | 6 +- cmd/root/flags.go | 8 +- cmd/root/flags_test.go | 6 +- cmd/root/mcp.go | 6 +- cmd/root/new.go | 16 +- cmd/root/pull.go | 8 +- cmd/root/push.go | 12 +- cmd/root/record.go | 4 +- cmd/root/record_test.go | 2 +- cmd/root/root.go | 10 +- cmd/root/run.go | 24 +- cmd/root/sandbox.go | 8 +- cmd/root/tilde_test.go | 2 +- cmd/root/version.go | 6 +- docs/guides/go-sdk/index.md | 34 +- e2e/a2a_test.go | 4 +- e2e/api_test.go | 6 +- e2e/dependencies_test.go | 4 +- e2e/helpers_test.go | 2 +- e2e/mcp_test.go | 6 +- e2e/proxy_test.go | 6 +- e2e/runtime_test.go | 8 +- examples/golibrary/builtintool/main.go | 18 +- examples/golibrary/multi/main.go | 16 +- examples/golibrary/simple/main.go | 14 +- examples/golibrary/stream/main.go | 14 +- examples/golibrary/tool/main.go | 16 +- go.mod | 2 +- main.go | 2 +- pkg/a2a/adapter.go | 8 +- pkg/a2a/adapter_test.go | 4 +- pkg/a2a/server.go | 6 +- pkg/acp/agent.go | 16 +- pkg/acp/agent_test.go | 14 +- pkg/acp/filesystem.go | 4 +- pkg/acp/registry.go | 8 +- pkg/acp/run.go | 4 +- pkg/agent/agent.go | 8 +- pkg/agent/agent_test.go | 6 +- pkg/agent/opts.go | 8 +- pkg/agent/opts_test.go | 2 +- pkg/api/types.go | 6 +- pkg/app/app.go | 24 +- pkg/app/app_test.go | 12 +- pkg/app/app_working_dir_test.go | 2 +- pkg/app/export/html.go | 4 +- pkg/app/transcript/transcript.go | 4 +- pkg/app/transcript/transcript_test.go | 6 +- pkg/audio/transcribe/transcribe_darwin.go | 2 +- pkg/chat/chat.go | 2 +- pkg/cli/printer.go | 4 +- pkg/cli/runner.go | 10 +- pkg/cli/runner_test.go | 12 +- pkg/config/auto.go | 4 +- pkg/config/auto_test.go | 2 +- pkg/config/config.go | 4 +- pkg/config/config_test.go | 4 +- pkg/config/examples_test.go | 4 +- pkg/config/gather.go | 8 +- pkg/config/latest/parse.go | 4 +- pkg/config/latest/types.go | 2 +- pkg/config/latest/types_test.go | 2 +- pkg/config/mcps.go | 2 +- pkg/config/model_alias.go | 4 +- pkg/config/model_alias_test.go | 4 +- pkg/config/overrides.go | 2 +- pkg/config/resolve.go | 6 +- pkg/config/resolve_test.go | 4 +- pkg/config/runtime.go | 4 +- pkg/config/runtime_clone_test.go | 2 +- pkg/config/schema_test.go | 2 +- pkg/config/sources.go | 10 +- pkg/config/v0/types.go | 2 +- pkg/config/v1/parse.go | 4 +- pkg/config/v1/types.go | 2 +- pkg/config/v2/parse.go | 4 +- pkg/config/v2/types.go | 2 +- pkg/config/v2/types_test.go | 2 +- pkg/config/v3/parse.go | 4 +- pkg/config/v3/types.go | 2 +- pkg/config/v3/types_test.go | 2 +- pkg/config/v4/parse.go | 4 +- pkg/config/v4/types.go | 2 +- pkg/config/v4/types_test.go | 2 +- pkg/config/v5/parse.go | 4 +- pkg/config/v5/types.go | 2 +- pkg/config/v5/types_test.go | 2 +- pkg/config/versions.go | 14 +- pkg/creator/agent.go | 12 +- pkg/creator/agent_test.go | 6 +- pkg/environment/default.go | 4 +- pkg/environment/docker-desktop.go | 2 +- pkg/environment/env_files.go | 4 +- pkg/environment/secrets.go | 2 +- pkg/evaluation/eval.go | 12 +- pkg/evaluation/judge.go | 10 +- pkg/evaluation/save.go | 6 +- pkg/evaluation/save_test.go | 6 +- pkg/evaluation/types.go | 2 +- pkg/hooks/config.go | 2 +- pkg/httpclient/client.go | 2 +- pkg/js/eval.go | 2 +- pkg/js/eval_test.go | 2 +- pkg/js/expand.go | 4 +- pkg/mcp/server.go | 16 +- pkg/mcp/server_test.go | 4 +- pkg/memory/database/sqlite/sqlite.go | 4 +- pkg/memory/database/sqlite/sqlite_test.go | 2 +- pkg/model/provider/anthropic/adapter.go | 4 +- pkg/model/provider/anthropic/beta_adapter.go | 4 +- pkg/model/provider/anthropic/beta_client.go | 8 +- .../provider/anthropic/beta_client_test.go | 2 +- .../provider/anthropic/beta_converter.go | 4 +- .../provider/anthropic/beta_converter_test.go | 4 +- pkg/model/provider/anthropic/client.go | 14 +- pkg/model/provider/anthropic/client_test.go | 8 +- pkg/model/provider/anthropic/files.go | 2 +- pkg/model/provider/anthropic/files_test.go | 2 +- pkg/model/provider/base/base.go | 6 +- pkg/model/provider/bedrock/adapter.go | 4 +- pkg/model/provider/bedrock/client.go | 14 +- pkg/model/provider/bedrock/client_test.go | 10 +- pkg/model/provider/bedrock/convert.go | 4 +- pkg/model/provider/clone.go | 2 +- pkg/model/provider/clone_test.go | 6 +- pkg/model/provider/custom_provider_test.go | 10 +- pkg/model/provider/dmr/adapter.go | 4 +- pkg/model/provider/dmr/client.go | 16 +- pkg/model/provider/dmr/client_test.go | 2 +- pkg/model/provider/dmr/schema.go | 2 +- pkg/model/provider/gemini/adapter.go | 4 +- pkg/model/provider/gemini/adapter_test.go | 2 +- pkg/model/provider/gemini/client.go | 18 +- pkg/model/provider/gemini/client_test.go | 6 +- pkg/model/provider/model_defaults_test.go | 2 +- pkg/model/provider/oaistream/adapter.go | 4 +- pkg/model/provider/oaistream/messages.go | 2 +- pkg/model/provider/oaistream/messages_test.go | 4 +- pkg/model/provider/openai/adapter.go | 4 +- pkg/model/provider/openai/api_type_test.go | 6 +- pkg/model/provider/openai/client.go | 20 +- pkg/model/provider/openai/response_stream.go | 4 +- pkg/model/provider/openai/schema.go | 2 +- pkg/model/provider/openai/schema_test.go | 2 +- .../provider/openai/thinking_budget_test.go | 2 +- pkg/model/provider/options/options.go | 2 +- pkg/model/provider/override_test.go | 4 +- pkg/model/provider/provider.go | 26 +- pkg/model/provider/rulebased/client.go | 12 +- pkg/model/provider/rulebased/client_test.go | 12 +- pkg/model/provider/schema_test.go | 8 +- pkg/oci/package.go | 8 +- pkg/oci/package_test.go | 4 +- pkg/paths/paths_test.go | 2 +- pkg/permissions/permissions.go | 2 +- pkg/permissions/permissions_test.go | 2 +- pkg/rag/builder.go | 12 +- pkg/rag/embed/embed.go | 2 +- pkg/rag/fusion/fusion.go | 2 +- pkg/rag/fusion/max.go | 2 +- pkg/rag/fusion/rrf.go | 2 +- pkg/rag/fusion/weighted.go | 2 +- pkg/rag/manager.go | 10 +- pkg/rag/prompts/rerank.go | 2 +- pkg/rag/rerank/rerank.go | 6 +- pkg/rag/rerank/rerank_test.go | 12 +- pkg/rag/strategy/bm25.go | 12 +- pkg/rag/strategy/bm25_database.go | 4 +- pkg/rag/strategy/chunked_embeddings.go | 4 +- .../strategy/chunked_embeddings_database.go | 4 +- pkg/rag/strategy/embedding.go | 12 +- pkg/rag/strategy/helpers.go | 8 +- pkg/rag/strategy/semantic_embeddings.go | 16 +- .../strategy/semantic_embeddings_database.go | 4 +- pkg/rag/strategy/strategy.go | 6 +- pkg/rag/strategy/types.go | 2 +- pkg/rag/strategy/vector_store.go | 14 +- pkg/rag/treesitter/treesitter.go | 2 +- pkg/remote/pull.go | 2 +- pkg/remote/pull_test.go | 2 +- pkg/remote/push.go | 2 +- pkg/remote/push_test.go | 2 +- pkg/runtime/client.go | 8 +- pkg/runtime/commands.go | 4 +- pkg/runtime/commands_test.go | 12 +- pkg/runtime/event.go | 8 +- pkg/runtime/fallback.go | 14 +- pkg/runtime/fallback_test.go | 14 +- pkg/runtime/model_switcher.go | 8 +- pkg/runtime/model_switcher_test.go | 4 +- pkg/runtime/persistent_runtime.go | 6 +- pkg/runtime/remote_client.go | 8 +- pkg/runtime/remote_runtime.go | 18 +- pkg/runtime/runtime.go | 38 +- pkg/runtime/runtime_response_api_test.go | 2 +- pkg/runtime/runtime_test.go | 26 +- pkg/runtime/session_compaction.go | 12 +- pkg/sandbox/args.go | 2 +- pkg/sandbox/sandbox.go | 4 +- pkg/sandbox/sandbox_test.go | 4 +- pkg/server/image_test.go | 4 +- pkg/server/server.go | 8 +- pkg/server/server_test.go | 6 +- pkg/server/session_manager.go | 18 +- pkg/server/source_loader.go | 2 +- pkg/session/branch.go | 4 +- pkg/session/session.go | 6 +- pkg/session/session_history_test.go | 6 +- pkg/session/session_test.go | 8 +- pkg/session/store.go | 6 +- pkg/session/store_test.go | 4 +- pkg/session/truncate_test.go | 4 +- pkg/sessiontitle/generator.go | 6 +- pkg/sessiontitle/generator_test.go | 6 +- pkg/skills/remote.go | 2 +- pkg/skills/skills.go | 2 +- pkg/team/team.go | 8 +- pkg/teamloader/filter.go | 2 +- pkg/teamloader/filter_test.go | 2 +- pkg/teamloader/instructions.go | 2 +- pkg/teamloader/instructions_test.go | 2 +- pkg/teamloader/registry.go | 26 +- pkg/teamloader/registry_test.go | 6 +- pkg/teamloader/teamloader.go | 32 +- pkg/teamloader/teamloader_test.go | 10 +- pkg/teamloader/toon.go | 2 +- pkg/teamloader/toon_test.go | 2 +- pkg/telemetry/utils.go | 2 +- pkg/toolinstall/paths.go | 2 +- pkg/tools/a2a/a2a.go | 6 +- pkg/tools/builtin/agent/agent.go | 6 +- pkg/tools/builtin/agent/agent_test.go | 6 +- pkg/tools/builtin/api.go | 6 +- pkg/tools/builtin/api_test.go | 6 +- pkg/tools/builtin/deferred.go | 2 +- pkg/tools/builtin/deferred_test.go | 2 +- pkg/tools/builtin/fetch.go | 4 +- pkg/tools/builtin/fetch_test.go | 2 +- pkg/tools/builtin/filesystem.go | 6 +- pkg/tools/builtin/handoff.go | 2 +- pkg/tools/builtin/lsp.go | 2 +- pkg/tools/builtin/memory.go | 4 +- pkg/tools/builtin/memory_test.go | 4 +- pkg/tools/builtin/model_picker.go | 2 +- pkg/tools/builtin/model_picker_test.go | 2 +- pkg/tools/builtin/openapi.go | 6 +- pkg/tools/builtin/openapi_test.go | 2 +- pkg/tools/builtin/rag.go | 4 +- pkg/tools/builtin/script_shell.go | 4 +- pkg/tools/builtin/script_shell_test.go | 2 +- pkg/tools/builtin/shell.go | 6 +- pkg/tools/builtin/shell_test.go | 4 +- pkg/tools/builtin/skills.go | 4 +- pkg/tools/builtin/skills_test.go | 2 +- pkg/tools/builtin/tasks.go | 4 +- pkg/tools/builtin/tasks_test.go | 2 +- pkg/tools/builtin/think.go | 2 +- pkg/tools/builtin/think_test.go | 2 +- pkg/tools/builtin/todo.go | 4 +- pkg/tools/builtin/todo_test.go | 2 +- pkg/tools/builtin/transfertask.go | 2 +- pkg/tools/builtin/transfertask_test.go | 2 +- pkg/tools/builtin/user_prompt.go | 2 +- pkg/tools/builtin/user_prompt_test.go | 2 +- pkg/tools/codemode/codemode.go | 2 +- pkg/tools/codemode/codemode_test.go | 2 +- pkg/tools/codemode/exec.go | 2 +- pkg/tools/codemode/functions.go | 2 +- pkg/tools/codemode/functions_test.go | 2 +- pkg/tools/mcp/gateway.go | 6 +- pkg/tools/mcp/mcp.go | 2 +- pkg/tools/mcp/mcp_test.go | 2 +- pkg/tools/mcp/oauth.go | 2 +- pkg/tools/mcp/oauth_helpers.go | 2 +- pkg/tools/mcp/remote.go | 2 +- pkg/tools/mcp/session_client.go | 2 +- pkg/tools/mcp/stdio.go | 2 +- pkg/tools/mcp/tokenstore.go | 2 +- pkg/tools/startable_test.go | 2 +- pkg/tui/commands/commands.go | 12 +- pkg/tui/commands/commands_test.go | 2 +- pkg/tui/commands/speak_darwin.go | 4 +- pkg/tui/components/completion/completion.go | 6 +- pkg/tui/components/editor/banner.go | 2 +- .../editor/completion_backspace_test.go | 4 +- .../components/editor/completions/command.go | 6 +- .../editor/completions/completion.go | 4 +- pkg/tui/components/editor/completions/file.go | 4 +- pkg/tui/components/editor/editor.go | 18 +- .../components/editor/historysearch_test.go | 4 +- pkg/tui/components/editor/suggestion_test.go | 4 +- pkg/tui/components/markdown/fast_renderer.go | 2 +- pkg/tui/components/markdown/renderer.go | 2 +- pkg/tui/components/message/message.go | 10 +- pkg/tui/components/message/message_test.go | 2 +- pkg/tui/components/messages/clipboard.go | 2 +- pkg/tui/components/messages/messages.go | 34 +- pkg/tui/components/messages/messages_test.go | 18 +- pkg/tui/components/messages/selection.go | 2 +- .../components/notification/notification.go | 4 +- .../reasoningblock/reasoningblock.go | 18 +- .../reasoningblock/reasoningblock_test.go | 8 +- pkg/tui/components/scrollbar/scrollbar.go | 2 +- pkg/tui/components/scrollview/scrollview.go | 4 +- pkg/tui/components/sidebar/agent_info_test.go | 6 +- pkg/tui/components/sidebar/collapsed_view.go | 2 +- .../sidebar/context_percent_test.go | 6 +- pkg/tui/components/sidebar/layout.go | 2 +- pkg/tui/components/sidebar/layout_test.go | 6 +- pkg/tui/components/sidebar/queue_test.go | 2 +- pkg/tui/components/sidebar/sidebar.go | 30 +- pkg/tui/components/sidebar/title_edit_test.go | 4 +- .../components/sidebar/token_usage_test.go | 6 +- pkg/tui/components/spinner/spinner.go | 6 +- pkg/tui/components/spinner/spinner_test.go | 2 +- pkg/tui/components/statusbar/statusbar.go | 6 +- pkg/tui/components/tab/tab.go | 2 +- pkg/tui/components/tabbar/tab.go | 4 +- pkg/tui/components/tabbar/tabbar.go | 6 +- pkg/tui/components/tool/api/apitool.go | 12 +- .../tool/defaulttool/defaulttool.go | 10 +- pkg/tui/components/tool/defaulttool/render.go | 4 +- .../tool/directorytree/directorytree.go | 10 +- pkg/tui/components/tool/editfile/editfile.go | 14 +- pkg/tui/components/tool/editfile/render.go | 8 +- pkg/tui/components/tool/factory.go | 34 +- pkg/tui/components/tool/handoff/handoff.go | 14 +- .../tool/listdirectory/listdirectory.go | 10 +- .../tool/listdirectory/listdirectory_test.go | 8 +- pkg/tui/components/tool/readfile/readfile.go | 10 +- .../readmultiplefiles/readmultiplefiles.go | 14 +- pkg/tui/components/tool/registry.go | 6 +- .../searchfilescontent/searchfilescontent.go | 10 +- .../searchfilescontent_test.go | 6 +- pkg/tui/components/tool/shell/shell.go | 10 +- pkg/tui/components/tool/todotool/component.go | 10 +- pkg/tui/components/tool/todotool/sidebar.go | 10 +- pkg/tui/components/tool/todotool/todotool.go | 2 +- .../tool/transfertask/transfertask.go | 14 +- .../components/tool/writefile/writefile.go | 10 +- pkg/tui/components/toolcommon/base.go | 10 +- pkg/tui/components/toolcommon/common.go | 10 +- pkg/tui/components/toolcommon/truncate.go | 2 +- pkg/tui/dialog/attachment_preview.go | 8 +- pkg/tui/dialog/base.go | 10 +- pkg/tui/dialog/command_palette.go | 12 +- pkg/tui/dialog/command_palette_test.go | 2 +- pkg/tui/dialog/cost.go | 14 +- pkg/tui/dialog/cost_test.go | 6 +- pkg/tui/dialog/dialog.go | 4 +- pkg/tui/dialog/elicitation.go | 6 +- pkg/tui/dialog/exit_confirmation.go | 6 +- pkg/tui/dialog/file_picker.go | 12 +- pkg/tui/dialog/max_iterations.go | 10 +- pkg/tui/dialog/mcp_prompt_input.go | 10 +- pkg/tui/dialog/model_picker.go | 16 +- pkg/tui/dialog/model_picker_test.go | 4 +- pkg/tui/dialog/multi_choice.go | 6 +- pkg/tui/dialog/multi_choice_test.go | 2 +- pkg/tui/dialog/oauth_authorization.go | 10 +- pkg/tui/dialog/permissions.go | 10 +- pkg/tui/dialog/session_browser.go | 14 +- pkg/tui/dialog/session_browser_test.go | 2 +- pkg/tui/dialog/theme_picker.go | 12 +- pkg/tui/dialog/tool_confirmation.go | 18 +- pkg/tui/dialog/tool_rejection_reason.go | 2 +- pkg/tui/dialog/url_elicitation.go | 8 +- pkg/tui/dialog/working_dir_picker.go | 14 +- pkg/tui/handlers.go | 32 +- pkg/tui/input/wheel_coalescer.go | 2 +- pkg/tui/messages/mcp.go | 2 +- pkg/tui/messages/session.go | 2 +- pkg/tui/page/chat/chat.go | 22 +- pkg/tui/page/chat/hittest.go | 4 +- pkg/tui/page/chat/input_handlers.go | 18 +- pkg/tui/page/chat/queue_test.go | 6 +- pkg/tui/page/chat/runtime_events.go | 14 +- pkg/tui/service/sessionstate.go | 10 +- pkg/tui/service/supervisor/supervisor.go | 8 +- pkg/tui/service/tuistate/store.go | 4 +- pkg/tui/service/tuistate/store_test.go | 2 +- pkg/tui/styles/theme.go | 4 +- pkg/tui/tui.go | 46 +- pkg/tui/tui_exit_test.go | 18 +- pkg/tui/types/types.go | 2 +- pkg/upstream/headers.go | 2 +- pkg/useragent/useragent.go | 2 +- pkg/userconfig/userconfig.go | 4 +- pkg/userconfig/userconfig_test.go | 2 +- 400 files changed, 1532 insertions(+), 1532 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 4b463cc9d..d967dcfbe 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -80,7 +80,7 @@ linters: files: - "**/*.go" deny: - - pkg: github.com/docker/cagent/internal + - pkg: github.com/docker/docker-agent/internal desc: don't use /internal/ from /pkg/ old_yaml: files: @@ -141,7 +141,7 @@ formatters: sections: - standard - default - - prefix(github.com/docker/cagent) + - prefix(github.com/docker/docker-agent) gofmt: rewrite-rules: - pattern: 'interface{}' diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b97dd388..4d452de8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,13 +22,13 @@ This release adds automated issue triage capabilities and new CLI configuration ### Pull Requests -- [#1888](https://github.com/docker/cagent/pull/1888) - feat: add auto issue triage workflow -- [#1901](https://github.com/docker/cagent/pull/1901) - Fix GitHub pages deployment -- [#1902](https://github.com/docker/cagent/pull/1902) - docs: update CHANGELOG.md for v1.28.1 -- [#1903](https://github.com/docker/cagent/pull/1903) - Fix the github pages? -- [#1905](https://github.com/docker/cagent/pull/1905) - Replace the brittle tail -n 1 parsing with something that searches for the marker -- [#1906](https://github.com/docker/cagent/pull/1906) - Add tip about the default agent -- [#1907](https://github.com/docker/cagent/pull/1907) - Add --config-dir and --data-dir global CLI flags to override default paths +- [#1888](https://github.com/docker/docker-agent/pull/1888) - feat: add auto issue triage workflow +- [#1901](https://github.com/docker/docker-agent/pull/1901) - Fix GitHub pages deployment +- [#1902](https://github.com/docker/docker-agent/pull/1902) - docs: update CHANGELOG.md for v1.28.1 +- [#1903](https://github.com/docker/docker-agent/pull/1903) - Fix the github pages? +- [#1905](https://github.com/docker/docker-agent/pull/1905) - Replace the brittle tail -n 1 parsing with something that searches for the marker +- [#1906](https://github.com/docker/docker-agent/pull/1906) - Add tip about the default agent +- [#1907](https://github.com/docker/docker-agent/pull/1907) - Add --config-dir and --data-dir global CLI flags to override default paths ## [v1.28.1] - 2026-03-03 @@ -61,17 +61,17 @@ This release adds image support for AI agents, improves cross-platform compatibi ### Pull Requests -- [#1875](https://github.com/docker/cagent/pull/1875) - Skip hidden directories in recursive skill loading -- [#1879](https://github.com/docker/cagent/pull/1879) - Reduce builtin tool prompt lengths while preserving key examples -- [#1885](https://github.com/docker/cagent/pull/1885) - Replace syscall.Rmdir with golang.org/x/sys for cross-platform directory removal -- [#1889](https://github.com/docker/cagent/pull/1889) - :eyes: Vision :eyes: -- [#1892](https://github.com/docker/cagent/pull/1892) - docs: update CHANGELOG.md for v1.28.0 -- [#1893](https://github.com/docker/cagent/pull/1893) - Fixes to the documentation -- [#1895](https://github.com/docker/cagent/pull/1895) - Daily fixes of the bot-detected issues -- [#1896](https://github.com/docker/cagent/pull/1896) - Remove per-chunk UpdateMessage debug log -- [#1897](https://github.com/docker/cagent/pull/1897) - Pushes docker/docker-agent next to docker/cagent hub image -- [#1899](https://github.com/docker/cagent/pull/1899) - fix: Esc key not interrupting sub-agents in multi-agent sessions -- [#1900](https://github.com/docker/cagent/pull/1900) - Migrate our GitHub pages to markdown, with Jekyll +- [#1875](https://github.com/docker/docker-agent/pull/1875) - Skip hidden directories in recursive skill loading +- [#1879](https://github.com/docker/docker-agent/pull/1879) - Reduce builtin tool prompt lengths while preserving key examples +- [#1885](https://github.com/docker/docker-agent/pull/1885) - Replace syscall.Rmdir with golang.org/x/sys for cross-platform directory removal +- [#1889](https://github.com/docker/docker-agent/pull/1889) - :eyes: Vision :eyes: +- [#1892](https://github.com/docker/docker-agent/pull/1892) - docs: update CHANGELOG.md for v1.28.0 +- [#1893](https://github.com/docker/docker-agent/pull/1893) - Fixes to the documentation +- [#1895](https://github.com/docker/docker-agent/pull/1895) - Daily fixes of the bot-detected issues +- [#1896](https://github.com/docker/docker-agent/pull/1896) - Remove per-chunk UpdateMessage debug log +- [#1897](https://github.com/docker/docker-agent/pull/1897) - Pushes docker/docker-agent next to docker/cagent hub image +- [#1899](https://github.com/docker/docker-agent/pull/1899) - fix: Esc key not interrupting sub-agents in multi-agent sessions +- [#1900](https://github.com/docker/docker-agent/pull/1900) - Migrate our GitHub pages to markdown, with Jekyll ## [v1.28.0] - 2026-03-03 @@ -100,17 +100,17 @@ This release improves authentication debugging, session management, and MCP serv ### Pull Requests -- [#1859](https://github.com/docker/cagent/pull/1859) - Fix script args with DMR -- [#1861](https://github.com/docker/cagent/pull/1861) - Add 'debug auth' command to inspect Docker Desktop JWT -- [#1862](https://github.com/docker/cagent/pull/1862) - docs: update CHANGELOG.md for v1.27.1 -- [#1863](https://github.com/docker/cagent/pull/1863) - fix(#1863): preserve user messages in trimMessages to prevent session derailment -- [#1864](https://github.com/docker/cagent/pull/1864) - fix(#1863): preserve user messages in trimMessages to prevent session derailment -- [#1871](https://github.com/docker/cagent/pull/1871) - Fix `mcp/notion` not working with OpenAI models -- [#1872](https://github.com/docker/cagent/pull/1872) - Improve MCP server lifecycle: caching and auto-restart -- [#1874](https://github.com/docker/cagent/pull/1874) - Improve tool filtering doc -- [#1876](https://github.com/docker/cagent/pull/1876) - Bump dependencies -- [#1877](https://github.com/docker/cagent/pull/1877) - Improve Commands dialog -- [#1886](https://github.com/docker/cagent/pull/1886) - Add retries even for models without fallbacks +- [#1859](https://github.com/docker/docker-agent/pull/1859) - Fix script args with DMR +- [#1861](https://github.com/docker/docker-agent/pull/1861) - Add 'debug auth' command to inspect Docker Desktop JWT +- [#1862](https://github.com/docker/docker-agent/pull/1862) - docs: update CHANGELOG.md for v1.27.1 +- [#1863](https://github.com/docker/docker-agent/pull/1863) - fix(#1863): preserve user messages in trimMessages to prevent session derailment +- [#1864](https://github.com/docker/docker-agent/pull/1864) - fix(#1863): preserve user messages in trimMessages to prevent session derailment +- [#1871](https://github.com/docker/docker-agent/pull/1871) - Fix `mcp/notion` not working with OpenAI models +- [#1872](https://github.com/docker/docker-agent/pull/1872) - Improve MCP server lifecycle: caching and auto-restart +- [#1874](https://github.com/docker/docker-agent/pull/1874) - Improve tool filtering doc +- [#1876](https://github.com/docker/docker-agent/pull/1876) - Bump dependencies +- [#1877](https://github.com/docker/docker-agent/pull/1877) - Improve Commands dialog +- [#1886](https://github.com/docker/docker-agent/pull/1886) - Add retries even for models without fallbacks ## [v1.27.1] - 2026-02-26 @@ -137,15 +137,15 @@ This release improves the user interface experience with better message editing ### Pull Requests -- [#1845](https://github.com/docker/cagent/pull/1845) - Repaint the TUI when the current agent changes -- [#1846](https://github.com/docker/cagent/pull/1846) - docs: update CHANGELOG.md for v1.27.0 -- [#1847](https://github.com/docker/cagent/pull/1847) - feat(hooks): add on_user_input -- [#1850](https://github.com/docker/cagent/pull/1850) - Improve editing past user messages -- [#1854](https://github.com/docker/cagent/pull/1854) - Make loading past sessions faster -- [#1855](https://github.com/docker/cagent/pull/1855) - fix: record token usage once per stream to prevent inflated telemetry -- [#1857](https://github.com/docker/cagent/pull/1857) - Schema tests should be only for latest version -- [#1858](https://github.com/docker/cagent/pull/1858) - Fix doc -- [#1860](https://github.com/docker/cagent/pull/1860) - Fix docker ai shellout to cagent +- [#1845](https://github.com/docker/docker-agent/pull/1845) - Repaint the TUI when the current agent changes +- [#1846](https://github.com/docker/docker-agent/pull/1846) - docs: update CHANGELOG.md for v1.27.0 +- [#1847](https://github.com/docker/docker-agent/pull/1847) - feat(hooks): add on_user_input +- [#1850](https://github.com/docker/docker-agent/pull/1850) - Improve editing past user messages +- [#1854](https://github.com/docker/docker-agent/pull/1854) - Make loading past sessions faster +- [#1855](https://github.com/docker/docker-agent/pull/1855) - fix: record token usage once per stream to prevent inflated telemetry +- [#1857](https://github.com/docker/docker-agent/pull/1857) - Schema tests should be only for latest version +- [#1858](https://github.com/docker/docker-agent/pull/1858) - Fix doc +- [#1860](https://github.com/docker/docker-agent/pull/1860) - Fix docker ai shellout to cagent ## [v1.27.0] - 2026-02-25 @@ -175,13 +175,13 @@ This release introduces dynamic agent color styling for multi-agent teams, adds ### Pull Requests -- [#1756](https://github.com/docker/cagent/pull/1756) - feat(#1756): Add dynamic agent color styling system -- [#1757](https://github.com/docker/cagent/pull/1757) - feat(#1756): Add dynamic agent color styling system -- [#1781](https://github.com/docker/cagent/pull/1781) - tools/fs: Add mkdir and rmdir -- [#1832](https://github.com/docker/cagent/pull/1832) - Daily fixes -- [#1833](https://github.com/docker/cagent/pull/1833) - allow .github and .gitlab directories in WalkFiles traversal -- [#1841](https://github.com/docker/cagent/pull/1841) - docs: update CHANGELOG.md for v1.26.0 -- [#1844](https://github.com/docker/cagent/pull/1844) - Fix yaml marshalling +- [#1756](https://github.com/docker/docker-agent/pull/1756) - feat(#1756): Add dynamic agent color styling system +- [#1757](https://github.com/docker/docker-agent/pull/1757) - feat(#1756): Add dynamic agent color styling system +- [#1781](https://github.com/docker/docker-agent/pull/1781) - tools/fs: Add mkdir and rmdir +- [#1832](https://github.com/docker/docker-agent/pull/1832) - Daily fixes +- [#1833](https://github.com/docker/docker-agent/pull/1833) - allow .github and .gitlab directories in WalkFiles traversal +- [#1841](https://github.com/docker/docker-agent/pull/1841) - docs: update CHANGELOG.md for v1.26.0 +- [#1844](https://github.com/docker/docker-agent/pull/1844) - Fix yaml marshalling ## [v1.26.0] - 2026-02-24 @@ -214,10 +214,10 @@ This release introduces remote skills discovery capabilities and improves file r ### Pull Requests -- [#1810](https://github.com/docker/cagent/pull/1810) - Freeze v5 (and a few refactoring) -- [#1822](https://github.com/docker/cagent/pull/1822) - Implement remote skills discovery with disk cache and dedicated tools -- [#1828](https://github.com/docker/cagent/pull/1828) - builtin: add offset and line_count pagination to read_file and read_multiple_files -- [#1829](https://github.com/docker/cagent/pull/1829) - docs: update CHANGELOG.md for v1.23.6 +- [#1810](https://github.com/docker/docker-agent/pull/1810) - Freeze v5 (and a few refactoring) +- [#1822](https://github.com/docker/docker-agent/pull/1822) - Implement remote skills discovery with disk cache and dedicated tools +- [#1828](https://github.com/docker/docker-agent/pull/1828) - builtin: add offset and line_count pagination to read_file and read_multiple_files +- [#1829](https://github.com/docker/docker-agent/pull/1829) - docs: update CHANGELOG.md for v1.23.6 ## [v1.23.6] - 2026-02-23 @@ -255,19 +255,19 @@ This release improves cost tracking accuracy, enhances session management, and f ### Pull Requests -- [#1795](https://github.com/docker/cagent/pull/1795) - Fix multiple cost/tokens related issues -- [#1803](https://github.com/docker/cagent/pull/1803) - docs: update CHANGELOG.md for v1.23.5 -- [#1804](https://github.com/docker/cagent/pull/1804) - Better support copying emojis -- [#1806](https://github.com/docker/cagent/pull/1806) - Tab completion for /commands dialog -- [#1807](https://github.com/docker/cagent/pull/1807) - fix: use actual provider for alloy models in sidebar -- [#1808](https://github.com/docker/cagent/pull/1808) - Update winget workflow -- [#1811](https://github.com/docker/cagent/pull/1811) - Improve sessions dialog -- [#1812](https://github.com/docker/cagent/pull/1812) - Binary e2e tests -- [#1813](https://github.com/docker/cagent/pull/1813) - feat: use docker read write bot -- [#1816](https://github.com/docker/cagent/pull/1816) - fix: restore ctrl-1, ctrl-2... shortcuts for quick agent selection -- [#1817](https://github.com/docker/cagent/pull/1817) - Bump Go dependencies -- [#1826](https://github.com/docker/cagent/pull/1826) - Refactor winget workflow to use wingetcreate CLI -- [#1827](https://github.com/docker/cagent/pull/1827) - get_memories errors on new memories +- [#1795](https://github.com/docker/docker-agent/pull/1795) - Fix multiple cost/tokens related issues +- [#1803](https://github.com/docker/docker-agent/pull/1803) - docs: update CHANGELOG.md for v1.23.5 +- [#1804](https://github.com/docker/docker-agent/pull/1804) - Better support copying emojis +- [#1806](https://github.com/docker/docker-agent/pull/1806) - Tab completion for /commands dialog +- [#1807](https://github.com/docker/docker-agent/pull/1807) - fix: use actual provider for alloy models in sidebar +- [#1808](https://github.com/docker/docker-agent/pull/1808) - Update winget workflow +- [#1811](https://github.com/docker/docker-agent/pull/1811) - Improve sessions dialog +- [#1812](https://github.com/docker/docker-agent/pull/1812) - Binary e2e tests +- [#1813](https://github.com/docker/docker-agent/pull/1813) - feat: use docker read write bot +- [#1816](https://github.com/docker/docker-agent/pull/1816) - fix: restore ctrl-1, ctrl-2... shortcuts for quick agent selection +- [#1817](https://github.com/docker/docker-agent/pull/1817) - Bump Go dependencies +- [#1826](https://github.com/docker/docker-agent/pull/1826) - Refactor winget workflow to use wingetcreate CLI +- [#1827](https://github.com/docker/docker-agent/pull/1827) - get_memories errors on new memories ## [v1.23.5] - 2026-02-20 @@ -287,9 +287,9 @@ This release improves the session browser interface and fixes several issues wit ### Pull Requests -- [#1792](https://github.com/docker/cagent/pull/1792) - docs: update CHANGELOG.md for v1.23.4 -- [#1796](https://github.com/docker/cagent/pull/1796) - Fix help for docker-agent standalone binary exec -- [#1802](https://github.com/docker/cagent/pull/1802) - Fix docker-agent version for cli plugin & standalone exec +- [#1792](https://github.com/docker/docker-agent/pull/1792) - docs: update CHANGELOG.md for v1.23.4 +- [#1796](https://github.com/docker/docker-agent/pull/1796) - Fix help for docker-agent standalone binary exec +- [#1802](https://github.com/docker/docker-agent/pull/1802) - Fix docker-agent version for cli plugin & standalone exec ## [v1.23.4] - 2026-02-19 @@ -336,26 +336,26 @@ This release introduces parallel session support with tab management, major comm ### Pull Requests -- [#1751](https://github.com/docker/cagent/pull/1751) - feat: add `X-Cagent-Model-Name` header to models gateway requests -- [#1753](https://github.com/docker/cagent/pull/1753) - docs: update CHANGELOG.md for v1.23.3 -- [#1755](https://github.com/docker/cagent/pull/1755) - Review cagent commands -- [#1759](https://github.com/docker/cagent/pull/1759) - Restore ctrl-r binding for searching prompt history -- [#1761](https://github.com/docker/cagent/pull/1761) - Fix completion command -- [#1762](https://github.com/docker/cagent/pull/1762) - fix: cagent-action expects a prompt -- [#1763](https://github.com/docker/cagent/pull/1763) - fix: gemini use of vertexai environment variables -- [#1766](https://github.com/docker/cagent/pull/1766) - Add mouse click support to elicitation, prompt input, and tool confirmation dialogs -- [#1768](https://github.com/docker/cagent/pull/1768) - chore(config): Update Claude Sonnet model version to 4.6 -- [#1772](https://github.com/docker/cagent/pull/1772) - drag 'n drop tabs -- [#1773](https://github.com/docker/cagent/pull/1773) - temp home dir to avoid issues in some environments -- [#1777](https://github.com/docker/cagent/pull/1777) - Bump Go dependencies -- [#1780](https://github.com/docker/cagent/pull/1780) - fallback: Handle overloaded_error -- [#1782](https://github.com/docker/cagent/pull/1782) - Fix ctrl-c in `docker agent serve api` and fix `docker agent` defaulting to `docker agent run` -- [#1785](https://github.com/docker/cagent/pull/1785) - permissions: add Ask list to force confirmation for tools -- [#1786](https://github.com/docker/cagent/pull/1786) - Make fetch tool not read-only -- [#1787](https://github.com/docker/cagent/pull/1787) - Daily fixes for the Nightly issue detector -- [#1788](https://github.com/docker/cagent/pull/1788) - Fix path and typo -- [#1789](https://github.com/docker/cagent/pull/1789) - Keep same error handling for main cli plugin execution -- [#1790](https://github.com/docker/cagent/pull/1790) - tui/tabbar: Prevent closing the last remaining tab +- [#1751](https://github.com/docker/docker-agent/pull/1751) - feat: add `X-Cagent-Model-Name` header to models gateway requests +- [#1753](https://github.com/docker/docker-agent/pull/1753) - docs: update CHANGELOG.md for v1.23.3 +- [#1755](https://github.com/docker/docker-agent/pull/1755) - Review cagent commands +- [#1759](https://github.com/docker/docker-agent/pull/1759) - Restore ctrl-r binding for searching prompt history +- [#1761](https://github.com/docker/docker-agent/pull/1761) - Fix completion command +- [#1762](https://github.com/docker/docker-agent/pull/1762) - fix: cagent-action expects a prompt +- [#1763](https://github.com/docker/docker-agent/pull/1763) - fix: gemini use of vertexai environment variables +- [#1766](https://github.com/docker/docker-agent/pull/1766) - Add mouse click support to elicitation, prompt input, and tool confirmation dialogs +- [#1768](https://github.com/docker/docker-agent/pull/1768) - chore(config): Update Claude Sonnet model version to 4.6 +- [#1772](https://github.com/docker/docker-agent/pull/1772) - drag 'n drop tabs +- [#1773](https://github.com/docker/docker-agent/pull/1773) - temp home dir to avoid issues in some environments +- [#1777](https://github.com/docker/docker-agent/pull/1777) - Bump Go dependencies +- [#1780](https://github.com/docker/docker-agent/pull/1780) - fallback: Handle overloaded_error +- [#1782](https://github.com/docker/docker-agent/pull/1782) - Fix ctrl-c in `docker agent serve api` and fix `docker agent` defaulting to `docker agent run` +- [#1785](https://github.com/docker/docker-agent/pull/1785) - permissions: add Ask list to force confirmation for tools +- [#1786](https://github.com/docker/docker-agent/pull/1786) - Make fetch tool not read-only +- [#1787](https://github.com/docker/docker-agent/pull/1787) - Daily fixes for the Nightly issue detector +- [#1788](https://github.com/docker/docker-agent/pull/1788) - Fix path and typo +- [#1789](https://github.com/docker/docker-agent/pull/1789) - Keep same error handling for main cli plugin execution +- [#1790](https://github.com/docker/docker-agent/pull/1790) - tui/tabbar: Prevent closing the last remaining tab ## [v1.23.3] - 2026-02-16 @@ -377,11 +377,11 @@ This release adds Docker CLI plugin support and improves TUI performance by maki ### Pull Requests -- [#1745](https://github.com/docker/cagent/pull/1745) - Rename cagent OCI annotation, keep old one -- [#1746](https://github.com/docker/cagent/pull/1746) - docs: update CHANGELOG.md for v1.23.2 -- [#1747](https://github.com/docker/cagent/pull/1747) - Thread context.Context through modelsdev store API -- [#1748](https://github.com/docker/cagent/pull/1748) - Allow to use cagent binary as a docker cli plugin docker-agent. No functional change for cagent command. -- [#1749](https://github.com/docker/cagent/pull/1749) - Move ModelSupportsReasoning calls to async bubbletea commands +- [#1745](https://github.com/docker/docker-agent/pull/1745) - Rename cagent OCI annotation, keep old one +- [#1746](https://github.com/docker/docker-agent/pull/1746) - docs: update CHANGELOG.md for v1.23.2 +- [#1747](https://github.com/docker/docker-agent/pull/1747) - Thread context.Context through modelsdev store API +- [#1748](https://github.com/docker/docker-agent/pull/1748) - Allow to use cagent binary as a docker cli plugin docker-agent. No functional change for cagent command. +- [#1749](https://github.com/docker/docker-agent/pull/1749) - Move ModelSupportsReasoning calls to async bubbletea commands ## [v1.23.2] - 2026-02-16 @@ -412,16 +412,16 @@ This release adds header forwarding capabilities for toolsets and includes sever ### Pull Requests -- [#1725](https://github.com/docker/cagent/pull/1725) - Support ${headers.NAME} syntax to forward upstream API headers to toolsets -- [#1727](https://github.com/docker/cagent/pull/1727) - docs: update CHANGELOG.md for v1.23.1 -- [#1729](https://github.com/docker/cagent/pull/1729) - Cleanup config code -- [#1730](https://github.com/docker/cagent/pull/1730) - refactor(environment): extract shared helpers for command-based providers -- [#1731](https://github.com/docker/cagent/pull/1731) - Daily fixes -- [#1732](https://github.com/docker/cagent/pull/1732) - Fix two issues with costs -- [#1734](https://github.com/docker/cagent/pull/1734) - Small improvements to cmd/root -- [#1740](https://github.com/docker/cagent/pull/1740) - Fix model switcher -- [#1741](https://github.com/docker/cagent/pull/1741) - fix(#1741): resolve Ctrl+K key binding conflict in session browser -- [#1742](https://github.com/docker/cagent/pull/1742) - fix(#1741): resolve Ctrl+K key binding conflict in session browser +- [#1725](https://github.com/docker/docker-agent/pull/1725) - Support ${headers.NAME} syntax to forward upstream API headers to toolsets +- [#1727](https://github.com/docker/docker-agent/pull/1727) - docs: update CHANGELOG.md for v1.23.1 +- [#1729](https://github.com/docker/docker-agent/pull/1729) - Cleanup config code +- [#1730](https://github.com/docker/docker-agent/pull/1730) - refactor(environment): extract shared helpers for command-based providers +- [#1731](https://github.com/docker/docker-agent/pull/1731) - Daily fixes +- [#1732](https://github.com/docker/docker-agent/pull/1732) - Fix two issues with costs +- [#1734](https://github.com/docker/docker-agent/pull/1734) - Small improvements to cmd/root +- [#1740](https://github.com/docker/docker-agent/pull/1740) - Fix model switcher +- [#1741](https://github.com/docker/docker-agent/pull/1741) - fix(#1741): resolve Ctrl+K key binding conflict in session browser +- [#1742](https://github.com/docker/docker-agent/pull/1742) - fix(#1741): resolve Ctrl+K key binding conflict in session browser ## [v1.23.1] - 2026-02-13 @@ -453,17 +453,17 @@ This release introduces a new OpenAPI toolset for automatic API integration, tas ### Pull Requests -- [#1704](https://github.com/docker/cagent/pull/1704) - Tasks toolset -- [#1710](https://github.com/docker/cagent/pull/1710) - fix: recursively enforce required properties in OpenAI tool schemas -- [#1714](https://github.com/docker/cagent/pull/1714) - docs: update CHANGELOG.md for v1.23.0 -- [#1718](https://github.com/docker/cagent/pull/1718) - preserve line breaks and indentation in welcome messages -- [#1719](https://github.com/docker/cagent/pull/1719) - Add openapi built-in toolset type -- [#1720](https://github.com/docker/cagent/pull/1720) - return error if no messages are available after conversion -- [#1721](https://github.com/docker/cagent/pull/1721) - Refactor models store -- [#1722](https://github.com/docker/cagent/pull/1722) - Replace time.Sleep in tests with deterministic synchronization -- [#1723](https://github.com/docker/cagent/pull/1723) - Allow passing in custom tags to telemetry -- [#1724](https://github.com/docker/cagent/pull/1724) - Speed up fallback tests -- [#1726](https://github.com/docker/cagent/pull/1726) - Update documentation links to GitHub Pages +- [#1704](https://github.com/docker/docker-agent/pull/1704) - Tasks toolset +- [#1710](https://github.com/docker/docker-agent/pull/1710) - fix: recursively enforce required properties in OpenAI tool schemas +- [#1714](https://github.com/docker/docker-agent/pull/1714) - docs: update CHANGELOG.md for v1.23.0 +- [#1718](https://github.com/docker/docker-agent/pull/1718) - preserve line breaks and indentation in welcome messages +- [#1719](https://github.com/docker/docker-agent/pull/1719) - Add openapi built-in toolset type +- [#1720](https://github.com/docker/docker-agent/pull/1720) - return error if no messages are available after conversion +- [#1721](https://github.com/docker/docker-agent/pull/1721) - Refactor models store +- [#1722](https://github.com/docker/docker-agent/pull/1722) - Replace time.Sleep in tests with deterministic synchronization +- [#1723](https://github.com/docker/docker-agent/pull/1723) - Allow passing in custom tags to telemetry +- [#1724](https://github.com/docker/docker-agent/pull/1724) - Speed up fallback tests +- [#1726](https://github.com/docker/docker-agent/pull/1726) - Update documentation links to GitHub Pages ## [v1.23.0] - 2026-02-12 @@ -504,29 +504,29 @@ This release improves TUI display accuracy, enhances API security defaults, and ### Pull Requests -- [#1648](https://github.com/docker/cagent/pull/1648) - fix: show correct tool count in TUI when running in --remote mode -- [#1657](https://github.com/docker/cagent/pull/1657) - Better default security for cagent api|mcp|a2a -- [#1663](https://github.com/docker/cagent/pull/1663) - docs: update CHANGELOG.md for v1.22.0 -- [#1668](https://github.com/docker/cagent/pull/1668) - Session store cleanup -- [#1669](https://github.com/docker/cagent/pull/1669) - Fix tick leak -- [#1673](https://github.com/docker/cagent/pull/1673) - eval: add optional setup script support for eval sessions -- [#1684](https://github.com/docker/cagent/pull/1684) - Fix Agents.UnmarshalYAML to reject unknown fields -- [#1685](https://github.com/docker/cagent/pull/1685) - Fix A2A agent card advertising unroutable wildcard address -- [#1686](https://github.com/docker/cagent/pull/1686) - Close the session -- [#1687](https://github.com/docker/cagent/pull/1687) - Make /compact non-blocking with spinner feedback -- [#1688](https://github.com/docker/cagent/pull/1688) - Remove redundant stdin nil check in api command -- [#1689](https://github.com/docker/cagent/pull/1689) - Return error response for unknown tool calls instead of silently skipping -- [#1692](https://github.com/docker/cagent/pull/1692) - Add documentation gh-pages -- [#1693](https://github.com/docker/cagent/pull/1693) - Add the summary message as a user message -- [#1694](https://github.com/docker/cagent/pull/1694) - Add more documentation -- [#1696](https://github.com/docker/cagent/pull/1696) - Fix MCP tool calls with gpt 5.2 -- [#1697](https://github.com/docker/cagent/pull/1697) - Bump Go to 1.26.0 -- [#1699](https://github.com/docker/cagent/pull/1699) - Fix issues found by the review agent -- [#1700](https://github.com/docker/cagent/pull/1700) - List valid versions in unsupported config version error -- [#1703](https://github.com/docker/cagent/pull/1703) - Bump direct Go dependencies -- [#1705](https://github.com/docker/cagent/pull/1705) - Improve the Planner -- [#1706](https://github.com/docker/cagent/pull/1706) - Improve error handling and logging in evaluation judge -- [#1711](https://github.com/docker/cagent/pull/1711) - Persist tool call error state in session messages +- [#1648](https://github.com/docker/docker-agent/pull/1648) - fix: show correct tool count in TUI when running in --remote mode +- [#1657](https://github.com/docker/docker-agent/pull/1657) - Better default security for cagent api|mcp|a2a +- [#1663](https://github.com/docker/docker-agent/pull/1663) - docs: update CHANGELOG.md for v1.22.0 +- [#1668](https://github.com/docker/docker-agent/pull/1668) - Session store cleanup +- [#1669](https://github.com/docker/docker-agent/pull/1669) - Fix tick leak +- [#1673](https://github.com/docker/docker-agent/pull/1673) - eval: add optional setup script support for eval sessions +- [#1684](https://github.com/docker/docker-agent/pull/1684) - Fix Agents.UnmarshalYAML to reject unknown fields +- [#1685](https://github.com/docker/docker-agent/pull/1685) - Fix A2A agent card advertising unroutable wildcard address +- [#1686](https://github.com/docker/docker-agent/pull/1686) - Close the session +- [#1687](https://github.com/docker/docker-agent/pull/1687) - Make /compact non-blocking with spinner feedback +- [#1688](https://github.com/docker/docker-agent/pull/1688) - Remove redundant stdin nil check in api command +- [#1689](https://github.com/docker/docker-agent/pull/1689) - Return error response for unknown tool calls instead of silently skipping +- [#1692](https://github.com/docker/docker-agent/pull/1692) - Add documentation gh-pages +- [#1693](https://github.com/docker/docker-agent/pull/1693) - Add the summary message as a user message +- [#1694](https://github.com/docker/docker-agent/pull/1694) - Add more documentation +- [#1696](https://github.com/docker/docker-agent/pull/1696) - Fix MCP tool calls with gpt 5.2 +- [#1697](https://github.com/docker/docker-agent/pull/1697) - Bump Go to 1.26.0 +- [#1699](https://github.com/docker/docker-agent/pull/1699) - Fix issues found by the review agent +- [#1700](https://github.com/docker/docker-agent/pull/1700) - List valid versions in unsupported config version error +- [#1703](https://github.com/docker/docker-agent/pull/1703) - Bump direct Go dependencies +- [#1705](https://github.com/docker/docker-agent/pull/1705) - Improve the Planner +- [#1706](https://github.com/docker/docker-agent/pull/1706) - Improve error handling and logging in evaluation judge +- [#1711](https://github.com/docker/docker-agent/pull/1711) - Persist tool call error state in session messages ## [v1.22.0] - 2026-02-09 @@ -559,17 +559,17 @@ This release enhances the chat experience with history search functionality and ### Pull Requests -- [#1630](https://github.com/docker/cagent/pull/1630) - feat: add Ctrl+R reverse history search -- [#1640](https://github.com/docker/cagent/pull/1640) - better file attachments -- [#1645](https://github.com/docker/cagent/pull/1645) - Prevent title generation spinner to spin forever -- [#1649](https://github.com/docker/cagent/pull/1649) - docs: update CHANGELOG.md for v1.21.0 -- [#1650](https://github.com/docker/cagent/pull/1650) - OpenAI doesn't like those format indications on the schema -- [#1652](https://github.com/docker/cagent/pull/1652) - Fix: persist multi_content for user messages -- [#1654](https://github.com/docker/cagent/pull/1654) - Refactor scrollbar into more reusable `scrollview` component -- [#1656](https://github.com/docker/cagent/pull/1656) - fix: use ctrl modifier for session browser shortcuts to avoid search conflict -- [#1659](https://github.com/docker/cagent/pull/1659) - Fix pasted attachments -- [#1661](https://github.com/docker/cagent/pull/1661) - deleting version 2 so i can use permissions -- [#1662](https://github.com/docker/cagent/pull/1662) - Multi turn (cagent exec|run|eval) +- [#1630](https://github.com/docker/docker-agent/pull/1630) - feat: add Ctrl+R reverse history search +- [#1640](https://github.com/docker/docker-agent/pull/1640) - better file attachments +- [#1645](https://github.com/docker/docker-agent/pull/1645) - Prevent title generation spinner to spin forever +- [#1649](https://github.com/docker/docker-agent/pull/1649) - docs: update CHANGELOG.md for v1.21.0 +- [#1650](https://github.com/docker/docker-agent/pull/1650) - OpenAI doesn't like those format indications on the schema +- [#1652](https://github.com/docker/docker-agent/pull/1652) - Fix: persist multi_content for user messages +- [#1654](https://github.com/docker/docker-agent/pull/1654) - Refactor scrollbar into more reusable `scrollview` component +- [#1656](https://github.com/docker/docker-agent/pull/1656) - fix: use ctrl modifier for session browser shortcuts to avoid search conflict +- [#1659](https://github.com/docker/docker-agent/pull/1659) - Fix pasted attachments +- [#1661](https://github.com/docker/docker-agent/pull/1661) - deleting version 2 so i can use permissions +- [#1662](https://github.com/docker/docker-agent/pull/1662) - Multi turn (cagent exec|run|eval) ## [v1.21.0] - 2026-02-09 @@ -594,18 +594,18 @@ This release adds a new generalist coding agent, improves agent configuration ha ### Pull Requests -- [#1419](https://github.com/docker/cagent/pull/1419) - Help fix #1419 -- [#1625](https://github.com/docker/cagent/pull/1625) - Add a generalist coding agent -- [#1631](https://github.com/docker/cagent/pull/1631) - Support recursive ~/.agents/skills -- [#1632](https://github.com/docker/cagent/pull/1632) - Help fix #1419 -- [#1633](https://github.com/docker/cagent/pull/1633) - Add OCI artifact wrapper for spec-compliant manifest with artifactType -- [#1634](https://github.com/docker/cagent/pull/1634) - docs: update CHANGELOG.md for v1.20.6 -- [#1635](https://github.com/docker/cagent/pull/1635) - Freeze v4 and bump config version to v5 -- [#1637](https://github.com/docker/cagent/pull/1637) - Fix subagent logic -- [#1641](https://github.com/docker/cagent/pull/1641) - unquoted strings are fine until they contain special characters like : -- [#1643](https://github.com/docker/cagent/pull/1643) - Wrap todo descriptions at word boundaries in sidebar -- [#1646](https://github.com/docker/cagent/pull/1646) - Bump Go dependencies -- [#1647](https://github.com/docker/cagent/pull/1647) - Preserve 429 error details on OpenAI +- [#1419](https://github.com/docker/docker-agent/pull/1419) - Help fix #1419 +- [#1625](https://github.com/docker/docker-agent/pull/1625) - Add a generalist coding agent +- [#1631](https://github.com/docker/docker-agent/pull/1631) - Support recursive ~/.agents/skills +- [#1632](https://github.com/docker/docker-agent/pull/1632) - Help fix #1419 +- [#1633](https://github.com/docker/docker-agent/pull/1633) - Add OCI artifact wrapper for spec-compliant manifest with artifactType +- [#1634](https://github.com/docker/docker-agent/pull/1634) - docs: update CHANGELOG.md for v1.20.6 +- [#1635](https://github.com/docker/docker-agent/pull/1635) - Freeze v4 and bump config version to v5 +- [#1637](https://github.com/docker/docker-agent/pull/1637) - Fix subagent logic +- [#1641](https://github.com/docker/docker-agent/pull/1641) - unquoted strings are fine until they contain special characters like : +- [#1643](https://github.com/docker/docker-agent/pull/1643) - Wrap todo descriptions at word boundaries in sidebar +- [#1646](https://github.com/docker/docker-agent/pull/1646) - Bump Go dependencies +- [#1647](https://github.com/docker/docker-agent/pull/1647) - Preserve 429 error details on OpenAI ## [v1.20.6] - 2026-02-07 @@ -642,24 +642,24 @@ This release introduces branching sessions, model fallbacks, and automated code ### Pull Requests -- [#1573](https://github.com/docker/cagent/pull/1573) - Automated nightly codebase scanner -- [#1578](https://github.com/docker/cagent/pull/1578) - Branching sessions on message edit -- [#1589](https://github.com/docker/cagent/pull/1589) - Model fallbacks -- [#1595](https://github.com/docker/cagent/pull/1595) - Simplifies PR review workflow by adopting the new reusable workflow from cagent-action -- [#1610](https://github.com/docker/cagent/pull/1610) - docs: update CHANGELOG.md for v1.20.5 -- [#1611](https://github.com/docker/cagent/pull/1611) - Improve @ attachments perf -- [#1612](https://github.com/docker/cagent/pull/1612) - Only create a new modelstore if none is given -- [#1613](https://github.com/docker/cagent/pull/1613) - [evals] Fix tool calls score rendering -- [#1614](https://github.com/docker/cagent/pull/1614) - Added space between release links -- [#1617](https://github.com/docker/cagent/pull/1617) - Opus 4.6 -- [#1618](https://github.com/docker/cagent/pull/1618) - feat: add --prompt-file CLI flag for including file contents as system context -- [#1619](https://github.com/docker/cagent/pull/1619) - Update Nightly Scan Workflow -- [#1620](https://github.com/docker/cagent/pull/1620) - /attach use file upload instead of embedding in the context -- [#1621](https://github.com/docker/cagent/pull/1621) - Update Go deps -- [#1622](https://github.com/docker/cagent/pull/1622) - Add debug title command for session title generation -- [#1623](https://github.com/docker/cagent/pull/1623) - Add skill invocation via slash commands -- [#1624](https://github.com/docker/cagent/pull/1624) - Fix schema and add drift test -- [#1627](https://github.com/docker/cagent/pull/1627) - Enable more linters and fix existing issues +- [#1573](https://github.com/docker/docker-agent/pull/1573) - Automated nightly codebase scanner +- [#1578](https://github.com/docker/docker-agent/pull/1578) - Branching sessions on message edit +- [#1589](https://github.com/docker/docker-agent/pull/1589) - Model fallbacks +- [#1595](https://github.com/docker/docker-agent/pull/1595) - Simplifies PR review workflow by adopting the new reusable workflow from cagent-action +- [#1610](https://github.com/docker/docker-agent/pull/1610) - docs: update CHANGELOG.md for v1.20.5 +- [#1611](https://github.com/docker/docker-agent/pull/1611) - Improve @ attachments perf +- [#1612](https://github.com/docker/docker-agent/pull/1612) - Only create a new modelstore if none is given +- [#1613](https://github.com/docker/docker-agent/pull/1613) - [evals] Fix tool calls score rendering +- [#1614](https://github.com/docker/docker-agent/pull/1614) - Added space between release links +- [#1617](https://github.com/docker/docker-agent/pull/1617) - Opus 4.6 +- [#1618](https://github.com/docker/docker-agent/pull/1618) - feat: add --prompt-file CLI flag for including file contents as system context +- [#1619](https://github.com/docker/docker-agent/pull/1619) - Update Nightly Scan Workflow +- [#1620](https://github.com/docker/docker-agent/pull/1620) - /attach use file upload instead of embedding in the context +- [#1621](https://github.com/docker/docker-agent/pull/1621) - Update Go deps +- [#1622](https://github.com/docker/docker-agent/pull/1622) - Add debug title command for session title generation +- [#1623](https://github.com/docker/docker-agent/pull/1623) - Add skill invocation via slash commands +- [#1624](https://github.com/docker/docker-agent/pull/1624) - Fix schema and add drift test +- [#1627](https://github.com/docker/docker-agent/pull/1627) - Enable more linters and fix existing issues ## [v1.20.5] - 2026-02-05 @@ -878,54 +878,54 @@ This release improves the terminal user interface with better error handling and - Protects aliases map with mutex for thread safety -[v1.19.5]: https://github.com/docker/cagent/releases/tag/v1.19.5 +[v1.19.5]: https://github.com/docker/docker-agent/releases/tag/v1.19.5 -[v1.19.6]: https://github.com/docker/cagent/releases/tag/v1.19.6 +[v1.19.6]: https://github.com/docker/docker-agent/releases/tag/v1.19.6 -[v1.19.7]: https://github.com/docker/cagent/releases/tag/v1.19.7 +[v1.19.7]: https://github.com/docker/docker-agent/releases/tag/v1.19.7 -[v1.20.0]: https://github.com/docker/cagent/releases/tag/v1.20.0 +[v1.20.0]: https://github.com/docker/docker-agent/releases/tag/v1.20.0 -[v1.20.1]: https://github.com/docker/cagent/releases/tag/v1.20.1 +[v1.20.1]: https://github.com/docker/docker-agent/releases/tag/v1.20.1 -[v1.20.2]: https://github.com/docker/cagent/releases/tag/v1.20.2 +[v1.20.2]: https://github.com/docker/docker-agent/releases/tag/v1.20.2 -[v1.20.3]: https://github.com/docker/cagent/releases/tag/v1.20.3 +[v1.20.3]: https://github.com/docker/docker-agent/releases/tag/v1.20.3 -[v1.20.4]: https://github.com/docker/cagent/releases/tag/v1.20.4 +[v1.20.4]: https://github.com/docker/docker-agent/releases/tag/v1.20.4 -[v1.20.5]: https://github.com/docker/cagent/releases/tag/v1.20.5 +[v1.20.5]: https://github.com/docker/docker-agent/releases/tag/v1.20.5 -[v1.20.6]: https://github.com/docker/cagent/releases/tag/v1.20.6 +[v1.20.6]: https://github.com/docker/docker-agent/releases/tag/v1.20.6 -[v1.21.0]: https://github.com/docker/cagent/releases/tag/v1.21.0 +[v1.21.0]: https://github.com/docker/docker-agent/releases/tag/v1.21.0 -[v1.22.0]: https://github.com/docker/cagent/releases/tag/v1.22.0 +[v1.22.0]: https://github.com/docker/docker-agent/releases/tag/v1.22.0 -[v1.23.0]: https://github.com/docker/cagent/releases/tag/v1.23.0 +[v1.23.0]: https://github.com/docker/docker-agent/releases/tag/v1.23.0 -[v1.23.1]: https://github.com/docker/cagent/releases/tag/v1.23.1 +[v1.23.1]: https://github.com/docker/docker-agent/releases/tag/v1.23.1 -[v1.23.2]: https://github.com/docker/cagent/releases/tag/v1.23.2 +[v1.23.2]: https://github.com/docker/docker-agent/releases/tag/v1.23.2 -[v1.23.3]: https://github.com/docker/cagent/releases/tag/v1.23.3 +[v1.23.3]: https://github.com/docker/docker-agent/releases/tag/v1.23.3 -[v1.23.4]: https://github.com/docker/cagent/releases/tag/v1.23.4 +[v1.23.4]: https://github.com/docker/docker-agent/releases/tag/v1.23.4 -[v1.23.5]: https://github.com/docker/cagent/releases/tag/v1.23.5 +[v1.23.5]: https://github.com/docker/docker-agent/releases/tag/v1.23.5 -[v1.23.6]: https://github.com/docker/cagent/releases/tag/v1.23.6 +[v1.23.6]: https://github.com/docker/docker-agent/releases/tag/v1.23.6 -[v1.24.0]: https://github.com/docker/cagent/releases/tag/v1.24.0 +[v1.24.0]: https://github.com/docker/docker-agent/releases/tag/v1.24.0 -[v1.26.0]: https://github.com/docker/cagent/releases/tag/v1.26.0 +[v1.26.0]: https://github.com/docker/docker-agent/releases/tag/v1.26.0 -[v1.27.0]: https://github.com/docker/cagent/releases/tag/v1.27.0 +[v1.27.0]: https://github.com/docker/docker-agent/releases/tag/v1.27.0 -[v1.27.1]: https://github.com/docker/cagent/releases/tag/v1.27.1 +[v1.27.1]: https://github.com/docker/docker-agent/releases/tag/v1.27.1 -[v1.28.0]: https://github.com/docker/cagent/releases/tag/v1.28.0 +[v1.28.0]: https://github.com/docker/docker-agent/releases/tag/v1.28.0 -[v1.28.1]: https://github.com/docker/cagent/releases/tag/v1.28.1 +[v1.28.1]: https://github.com/docker/docker-agent/releases/tag/v1.28.1 -[v1.29.0]: https://github.com/docker/cagent/releases/tag/v1.29.0 +[v1.29.0]: https://github.com/docker/docker-agent/releases/tag/v1.29.0 diff --git a/Dockerfile b/Dockerfile index fed2a69e0..0722e5c98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ RUN --mount=type=bind,from=osxcross,src=/osxsdk,target=/xx-sdk \ if [ "$TARGETOS" != "darwin" ]; then export XX_GO_PREFER_C_COMPILER=zig fi - xx-go build -trimpath -tags no_audio -ldflags "-s -w -linkmode=external -X 'github.com/docker/cagent/pkg/version.Version=$GIT_TAG' -X 'github.com/docker/cagent/pkg/version.Commit=$GIT_COMMIT'" -o /binaries/docker-agent-$TARGETOS-$TARGETARCH . + xx-go build -trimpath -tags no_audio -ldflags "-s -w -linkmode=external -X 'github.com/docker/docker-agent/pkg/version.Version=$GIT_TAG' -X 'github.com/docker/docker-agent/pkg/version.Commit=$GIT_COMMIT'" -o /binaries/docker-agent-$TARGETOS-$TARGETARCH . xx-verify --static /binaries/docker-agent-$TARGETOS-$TARGETARCH if [ "$TARGETOS" = "windows" ]; then mv /binaries/docker-agent-$TARGETOS-$TARGETARCH /binaries/docker-agent-$TARGETOS-$TARGETARCH.exe diff --git a/Taskfile.yml b/Taskfile.yml index 74959f8a3..e83399965 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -10,7 +10,7 @@ vars: sh: git rev-parse HEAD GO_SOURCES: "**/*.go" BUILD_ARGS: '--build-arg GIT_TAG="{{.GIT_TAG}}" --build-arg GIT_COMMIT="{{.GIT_COMMIT}}"' - LDFLAGS: '-X "github.com/docker/cagent/pkg/version.Version={{.GIT_TAG}}" -X "github.com/docker/cagent/pkg/version.Commit={{.GIT_COMMIT}}"' + LDFLAGS: '-X "github.com/docker/docker-agent/pkg/version.Version={{.GIT_TAG}}" -X "github.com/docker/docker-agent/pkg/version.Commit={{.GIT_COMMIT}}"' tasks: default: diff --git a/cmd/root/a2a.go b/cmd/root/a2a.go index 041ae59aa..c11ca4948 100644 --- a/cmd/root/a2a.go +++ b/cmd/root/a2a.go @@ -3,10 +3,10 @@ package root import ( "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/a2a" - "github.com/docker/cagent/pkg/cli" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/a2a" + "github.com/docker/docker-agent/pkg/cli" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/telemetry" ) type a2aFlags struct { diff --git a/cmd/root/acp.go b/cmd/root/acp.go index c76389162..a9d764ef2 100644 --- a/cmd/root/acp.go +++ b/cmd/root/acp.go @@ -5,10 +5,10 @@ import ( "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/acp" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/acp" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/telemetry" ) type acpFlags struct { diff --git a/cmd/root/alias.go b/cmd/root/alias.go index 83c4014ce..0df19a100 100644 --- a/cmd/root/alias.go +++ b/cmd/root/alias.go @@ -9,11 +9,11 @@ import ( "github.com/mattn/go-runewidth" "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/cli" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/telemetry" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/cli" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/userconfig" ) func newAliasCmd() *cobra.Command { diff --git a/cmd/root/api.go b/cmd/root/api.go index 75671210c..0b328bd45 100644 --- a/cmd/root/api.go +++ b/cmd/root/api.go @@ -8,11 +8,11 @@ import ( "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/cli" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/server" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/cli" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/server" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/telemetry" ) type apiFlags struct { diff --git a/cmd/root/completion.go b/cmd/root/completion.go index d8f9e997f..1cc1bff8a 100644 --- a/cmd/root/completion.go +++ b/cmd/root/completion.go @@ -8,8 +8,8 @@ import ( "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/userconfig" ) func completeRunExec(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { diff --git a/cmd/root/debug.go b/cmd/root/debug.go index 47f8bbf29..c7e9757ff 100644 --- a/cmd/root/debug.go +++ b/cmd/root/debug.go @@ -8,12 +8,12 @@ import ( "github.com/goccy/go-yaml" "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/cli" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/sessiontitle" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/teamloader" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/cli" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/sessiontitle" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/telemetry" ) type debugFlags struct { diff --git a/cmd/root/debug_auth.go b/cmd/root/debug_auth.go index fb9d3cb6d..42c562f52 100644 --- a/cmd/root/debug_auth.go +++ b/cmd/root/debug_auth.go @@ -9,8 +9,8 @@ import ( "github.com/golang-jwt/jwt/v5" "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/desktop" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/desktop" + "github.com/docker/docker-agent/pkg/telemetry" ) // authInfo holds the parsed JWT authentication information. diff --git a/cmd/root/eval.go b/cmd/root/eval.go index fefa446e8..d364deaf8 100644 --- a/cmd/root/eval.go +++ b/cmd/root/eval.go @@ -12,9 +12,9 @@ import ( "github.com/spf13/cobra" "golang.org/x/term" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/evaluation" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/evaluation" + "github.com/docker/docker-agent/pkg/telemetry" ) const defaultJudgeModel = "anthropic/claude-opus-4-5-20251101" diff --git a/cmd/root/flags.go b/cmd/root/flags.go index c7024f2a0..f68268346 100644 --- a/cmd/root/flags.go +++ b/cmd/root/flags.go @@ -11,10 +11,10 @@ import ( "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/server" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/server" + "github.com/docker/docker-agent/pkg/userconfig" ) const ( diff --git a/cmd/root/flags_test.go b/cmd/root/flags_test.go index f97c1d1da..a1f61ba45 100644 --- a/cmd/root/flags_test.go +++ b/cmd/root/flags_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/userconfig" ) func TestGatewayLogic(t *testing.T) { diff --git a/cmd/root/mcp.go b/cmd/root/mcp.go index c041a63a4..ade288fc2 100644 --- a/cmd/root/mcp.go +++ b/cmd/root/mcp.go @@ -3,9 +3,9 @@ package root import ( "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/mcp" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/mcp" + "github.com/docker/docker-agent/pkg/telemetry" ) type mcpFlags struct { diff --git a/cmd/root/new.go b/cmd/root/new.go index ea75e68a1..2c5a45cf3 100644 --- a/cmd/root/new.go +++ b/cmd/root/new.go @@ -8,14 +8,14 @@ import ( tea "charm.land/bubbletea/v2" "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/creator" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/telemetry" - "github.com/docker/cagent/pkg/tui" - tuiinput "github.com/docker/cagent/pkg/tui/input" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/creator" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/tui" + tuiinput "github.com/docker/docker-agent/pkg/tui/input" ) type newFlags struct { diff --git a/cmd/root/pull.go b/cmd/root/pull.go index 0ce4c9d9a..40db02cb0 100644 --- a/cmd/root/pull.go +++ b/cmd/root/pull.go @@ -8,10 +8,10 @@ import ( "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/cli" - "github.com/docker/cagent/pkg/content" - "github.com/docker/cagent/pkg/remote" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/cli" + "github.com/docker/docker-agent/pkg/content" + "github.com/docker/docker-agent/pkg/remote" + "github.com/docker/docker-agent/pkg/telemetry" ) type pullFlags struct { diff --git a/cmd/root/push.go b/cmd/root/push.go index b2b568190..99bd85571 100644 --- a/cmd/root/push.go +++ b/cmd/root/push.go @@ -6,12 +6,12 @@ import ( "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/cli" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/content" - "github.com/docker/cagent/pkg/oci" - "github.com/docker/cagent/pkg/remote" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/cli" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/content" + "github.com/docker/docker-agent/pkg/oci" + "github.com/docker/docker-agent/pkg/remote" + "github.com/docker/docker-agent/pkg/telemetry" ) func newPushCmd() *cobra.Command { diff --git a/cmd/root/record.go b/cmd/root/record.go index 49e8fd85a..8b4e9efe6 100644 --- a/cmd/root/record.go +++ b/cmd/root/record.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/fake" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/fake" ) // setupFakeProxy starts a fake proxy if fakeResponses is non-empty. diff --git a/cmd/root/record_test.go b/cmd/root/record_test.go index ae8ffe090..e3c25f0bc 100644 --- a/cmd/root/record_test.go +++ b/cmd/root/record_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" + "github.com/docker/docker-agent/pkg/config" ) func TestSetupRecordingProxy_EmptyPath(t *testing.T) { diff --git a/cmd/root/root.go b/cmd/root/root.go index b67142036..b75a07a64 100644 --- a/cmd/root/root.go +++ b/cmd/root/root.go @@ -16,11 +16,11 @@ import ( "github.com/docker/cli/cli/command" "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/feedback" - "github.com/docker/cagent/pkg/logging" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/telemetry" - "github.com/docker/cagent/pkg/version" + "github.com/docker/docker-agent/pkg/feedback" + "github.com/docker/docker-agent/pkg/logging" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/version" ) type rootFlags struct { diff --git a/cmd/root/run.go b/cmd/root/run.go index 0244ec32d..52eef0751 100644 --- a/cmd/root/run.go +++ b/cmd/root/run.go @@ -17,18 +17,18 @@ import ( "github.com/spf13/cobra" "go.opentelemetry.io/otel" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/cli" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/sessiontitle" - "github.com/docker/cagent/pkg/teamloader" - "github.com/docker/cagent/pkg/telemetry" - "github.com/docker/cagent/pkg/tui" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/cli" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/sessiontitle" + "github.com/docker/docker-agent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/tui" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/userconfig" ) type runExecFlags struct { diff --git a/cmd/root/sandbox.go b/cmd/root/sandbox.go index f06fd3070..0d523f825 100644 --- a/cmd/root/sandbox.go +++ b/cmd/root/sandbox.go @@ -11,10 +11,10 @@ import ( "github.com/docker/cli/cli" "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/sandbox" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/sandbox" ) // runInSandbox delegates the current command to a Docker sandbox. diff --git a/cmd/root/tilde_test.go b/cmd/root/tilde_test.go index 494e3d57a..407d3d5f3 100644 --- a/cmd/root/tilde_test.go +++ b/cmd/root/tilde_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/paths" + "github.com/docker/docker-agent/pkg/paths" ) func TestExpandTilde(t *testing.T) { diff --git a/cmd/root/version.go b/cmd/root/version.go index f86e1622c..e524100dc 100644 --- a/cmd/root/version.go +++ b/cmd/root/version.go @@ -4,9 +4,9 @@ import ( "github.com/docker/cli/cli-plugins/plugin" "github.com/spf13/cobra" - "github.com/docker/cagent/pkg/cli" - "github.com/docker/cagent/pkg/telemetry" - "github.com/docker/cagent/pkg/version" + "github.com/docker/docker-agent/pkg/cli" + "github.com/docker/docker-agent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/version" ) func newVersionCmd() *cobra.Command { diff --git a/docs/guides/go-sdk/index.md b/docs/guides/go-sdk/index.md index 9557c5fbf..870ed6aeb 100644 --- a/docs/guides/go-sdk/index.md +++ b/docs/guides/go-sdk/index.md @@ -46,13 +46,13 @@ import ( "os/signal" "syscall" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/openai" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/openai" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" ) func main() { @@ -122,7 +122,7 @@ import ( "encoding/json" "fmt" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // Define the tool's input schema @@ -212,9 +212,9 @@ Create agents that delegate to sub-agents: package main import ( - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/tools/builtin" ) func createTeam(llm provider.Provider) *team.Team { @@ -246,8 +246,8 @@ Use docker-agent's built-in tools: ```go import ( - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/tools/builtin" ) func createAgentWithBuiltinTools(llm provider.Provider) *agent.Agent { @@ -280,9 +280,9 @@ func createAgentWithBuiltinTools(llm provider.Provider) *agent.Agent { ```go import ( - "github.com/docker/cagent/pkg/model/provider/anthropic" - "github.com/docker/cagent/pkg/model/provider/gemini" - "github.com/docker/cagent/pkg/model/provider/openai" + "github.com/docker/docker-agent/pkg/model/provider/anthropic" + "github.com/docker/docker-agent/pkg/model/provider/gemini" + "github.com/docker/docker-agent/pkg/model/provider/openai" ) // OpenAI @@ -307,7 +307,7 @@ geminiClient, _ := gemini.NewClient(ctx, &latest.ModelConfig{ ## Session Options ```go -import "github.com/docker/cagent/pkg/session" +import "github.com/docker/docker-agent/pkg/session" sess := session.New( // Set a title for the session diff --git a/e2e/a2a_test.go b/e2e/a2a_test.go index 73457f312..3e4ed67ec 100644 --- a/e2e/a2a_test.go +++ b/e2e/a2a_test.go @@ -14,8 +14,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - a2aserver "github.com/docker/cagent/pkg/a2a" - "github.com/docker/cagent/pkg/config" + a2aserver "github.com/docker/docker-agent/pkg/a2a" + "github.com/docker/docker-agent/pkg/config" ) // a2aResponse is a simplified representation of a JSON-RPC response diff --git a/e2e/api_test.go b/e2e/api_test.go index 66ec98055..966eb5da7 100644 --- a/e2e/api_test.go +++ b/e2e/api_test.go @@ -13,9 +13,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/server" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/server" + "github.com/docker/docker-agent/pkg/session" ) type Session struct { diff --git a/e2e/dependencies_test.go b/e2e/dependencies_test.go index 9fe7bbcfa..9abc9c2be 100644 --- a/e2e/dependencies_test.go +++ b/e2e/dependencies_test.go @@ -16,8 +16,8 @@ func TestDependencies(t *testing.T) { t.Run("TUI musn't know about teams", func(t *testing.T) { imports := listImports(t, "../pkg/tui") - assert.True(t, imports["github.com/docker/cagent/pkg/runtime"]) - assert.False(t, imports["github.com/docker/cagent/pkg/team"]) + assert.True(t, imports["github.com/docker/docker-agent/pkg/runtime"]) + assert.False(t, imports["github.com/docker/docker-agent/pkg/team"]) }) } diff --git a/e2e/helpers_test.go b/e2e/helpers_test.go index f5c7d2676..c9c80ea6a 100644 --- a/e2e/helpers_test.go +++ b/e2e/helpers_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/docker/cagent/cmd/root" + "github.com/docker/docker-agent/cmd/root" ) // runCLI runs a docker agent CLI command and returns its stdout. diff --git a/e2e/mcp_test.go b/e2e/mcp_test.go index 67168ce55..6efb958ef 100644 --- a/e2e/mcp_test.go +++ b/e2e/mcp_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/mcp" - "github.com/docker/cagent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/mcp" + "github.com/docker/docker-agent/pkg/teamloader" ) func TestMCP_SingleAgent(t *testing.T) { diff --git a/e2e/proxy_test.go b/e2e/proxy_test.go index d1b254845..eef6f9e32 100644 --- a/e2e/proxy_test.go +++ b/e2e/proxy_test.go @@ -9,9 +9,9 @@ import ( "github.com/stretchr/testify/require" "gopkg.in/dnaeon/go-vcr.v4/pkg/recorder" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/fake" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/fake" ) func startRecordingAIProxy(t *testing.T) (*httptest.Server, *config.RuntimeConfig) { diff --git a/e2e/runtime_test.go b/e2e/runtime_test.go index 37bcd4e1e..03eb50c2b 100644 --- a/e2e/runtime_test.go +++ b/e2e/runtime_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/teamloader" ) func TestRuntime_OpenAI_Basic(t *testing.T) { diff --git a/examples/golibrary/builtintool/main.go b/examples/golibrary/builtintool/main.go index f0583598f..c33d7018c 100644 --- a/examples/golibrary/builtintool/main.go +++ b/examples/golibrary/builtintool/main.go @@ -8,15 +8,15 @@ import ( "os/signal" "syscall" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/openai" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/openai" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/tools/builtin" ) func main() { diff --git a/examples/golibrary/multi/main.go b/examples/golibrary/multi/main.go index 63dffb390..2581c2bcf 100644 --- a/examples/golibrary/multi/main.go +++ b/examples/golibrary/multi/main.go @@ -7,14 +7,14 @@ import ( "os/signal" "syscall" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/openai" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/openai" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/tools/builtin" ) func main() { diff --git a/examples/golibrary/simple/main.go b/examples/golibrary/simple/main.go index 9561e9c83..dd4cd14d8 100644 --- a/examples/golibrary/simple/main.go +++ b/examples/golibrary/simple/main.go @@ -7,13 +7,13 @@ import ( "os/signal" "syscall" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/openai" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/openai" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" ) func main() { diff --git a/examples/golibrary/stream/main.go b/examples/golibrary/stream/main.go index 4a66a6b70..ae4fd1dad 100644 --- a/examples/golibrary/stream/main.go +++ b/examples/golibrary/stream/main.go @@ -6,13 +6,13 @@ import ( "os/signal" "syscall" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/openai" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/openai" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" ) func main() { diff --git a/examples/golibrary/tool/main.go b/examples/golibrary/tool/main.go index d63d8038e..9646a31e1 100644 --- a/examples/golibrary/tool/main.go +++ b/examples/golibrary/tool/main.go @@ -8,14 +8,14 @@ import ( "os/signal" "syscall" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/openai" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/openai" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/tools" ) func main() { diff --git a/go.mod b/go.mod index 0c8abf30b..1547e637f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/docker/cagent +module github.com/docker/docker-agent go 1.26.0 diff --git a/main.go b/main.go index 6ea66b4d0..09040b368 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "github.com/docker/cli/cli" - "github.com/docker/cagent/cmd/root" + "github.com/docker/docker-agent/cmd/root" ) func main() { diff --git a/pkg/a2a/adapter.go b/pkg/a2a/adapter.go index 0a507e27c..15fd429ff 100644 --- a/pkg/a2a/adapter.go +++ b/pkg/a2a/adapter.go @@ -11,10 +11,10 @@ import ( adksession "google.golang.org/adk/session" "google.golang.org/genai" - dagent "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" + dagent "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" ) // newDockerAgentAdapter creates a new ADK agent adapter from a docker agent team and agent name diff --git a/pkg/a2a/adapter_test.go b/pkg/a2a/adapter_test.go index 47de99242..814e2f059 100644 --- a/pkg/a2a/adapter_test.go +++ b/pkg/a2a/adapter_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/genai" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/teamloader" ) func TestNewDockerAgentAdapter(t *testing.T) { diff --git a/pkg/a2a/server.go b/pkg/a2a/server.go index f2c26ae26..c9fa93081 100644 --- a/pkg/a2a/server.go +++ b/pkg/a2a/server.go @@ -18,9 +18,9 @@ import ( "google.golang.org/adk/server/adka2a" "google.golang.org/adk/session" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/teamloader" - "github.com/docker/cagent/pkg/version" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/version" ) // routableAddr replaces wildcard listen addresses (like "0.0.0.0" or "::") with diff --git a/pkg/acp/agent.go b/pkg/acp/agent.go index 68b745d4d..e0c6484c8 100644 --- a/pkg/acp/agent.go +++ b/pkg/acp/agent.go @@ -14,14 +14,14 @@ import ( "github.com/coder/acp-go-sdk" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/teamloader" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/version" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/version" ) // Agent implements the ACP Agent interface for docker agent diff --git a/pkg/acp/agent_test.go b/pkg/acp/agent_test.go index 8d701d883..1fbfd8815 100644 --- a/pkg/acp/agent_test.go +++ b/pkg/acp/agent_test.go @@ -10,13 +10,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/tools" ) // mockStream simulates a chat completion stream for testing. diff --git a/pkg/acp/filesystem.go b/pkg/acp/filesystem.go index 9fcdf502d..756a1188f 100644 --- a/pkg/acp/filesystem.go +++ b/pkg/acp/filesystem.go @@ -9,8 +9,8 @@ import ( "github.com/coder/acp-go-sdk" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" ) type contextKey string diff --git a/pkg/acp/registry.go b/pkg/acp/registry.go index 50c8a7e7a..fb9c7af2c 100644 --- a/pkg/acp/registry.go +++ b/pkg/acp/registry.go @@ -4,10 +4,10 @@ import ( "context" "os" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/teamloader" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/tools" ) // createToolsetRegistry creates a custom toolset registry with ACP-specific filesystem toolset diff --git a/pkg/acp/run.go b/pkg/acp/run.go index 84f57b216..c8062fe0d 100644 --- a/pkg/acp/run.go +++ b/pkg/acp/run.go @@ -8,8 +8,8 @@ import ( acpsdk "github.com/coder/acp-go-sdk" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/session" ) func Run(ctx context.Context, agentFilename string, stdin io.Reader, stdout io.Writer, runConfig *config.RuntimeConfig, sessionDB string) error { diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go index 737fcd5e3..4152e8c3a 100644 --- a/pkg/agent/agent.go +++ b/pkg/agent/agent.go @@ -8,10 +8,10 @@ import ( "sync/atomic" "time" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/config/types" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/types" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/tools" ) // Agent represents an AI agent diff --git a/pkg/agent/agent_test.go b/pkg/agent/agent_test.go index a704eba92..acec738a7 100644 --- a/pkg/agent/agent_test.go +++ b/pkg/agent/agent_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/tools" ) type stubToolSet struct { diff --git a/pkg/agent/opts.go b/pkg/agent/opts.go index e730fc5a1..399b0dfca 100644 --- a/pkg/agent/opts.go +++ b/pkg/agent/opts.go @@ -3,10 +3,10 @@ package agent import ( "time" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/config/types" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/types" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/tools" ) type Opt func(a *Agent) diff --git a/pkg/agent/opts_test.go b/pkg/agent/opts_test.go index f2c27611e..51e49fb89 100644 --- a/pkg/agent/opts_test.go +++ b/pkg/agent/opts_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) type flakyStartToolset struct { diff --git a/pkg/api/types.go b/pkg/api/types.go index 896b27b8c..2c78ff5ed 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -3,9 +3,9 @@ package api import ( "time" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/session" ) type Message struct { diff --git a/pkg/app/app.go b/pkg/app/app.go index 0abdc0fb9..1a75a426b 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -14,18 +14,18 @@ import ( tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/app/export" - "github.com/docker/cagent/pkg/app/transcript" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/cli" - "github.com/docker/cagent/pkg/config/types" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/sessiontitle" - "github.com/docker/cagent/pkg/skills" - "github.com/docker/cagent/pkg/tools" - mcptools "github.com/docker/cagent/pkg/tools/mcp" - "github.com/docker/cagent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/app/export" + "github.com/docker/docker-agent/pkg/app/transcript" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/cli" + "github.com/docker/docker-agent/pkg/config/types" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/sessiontitle" + "github.com/docker/docker-agent/pkg/skills" + "github.com/docker/docker-agent/pkg/tools" + mcptools "github.com/docker/docker-agent/pkg/tools/mcp" + "github.com/docker/docker-agent/pkg/tui/messages" ) type App struct { diff --git a/pkg/app/app_test.go b/pkg/app/app_test.go index def28d392..6795847d4 100644 --- a/pkg/app/app_test.go +++ b/pkg/app/app_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/sessiontitle" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - mcptools "github.com/docker/cagent/pkg/tools/mcp" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/sessiontitle" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + mcptools "github.com/docker/docker-agent/pkg/tools/mcp" ) // mockRuntime is a minimal mock for testing App without a real runtime diff --git a/pkg/app/app_working_dir_test.go b/pkg/app/app_working_dir_test.go index 7ca951238..9d38e8394 100644 --- a/pkg/app/app_working_dir_test.go +++ b/pkg/app/app_working_dir_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/session" ) func TestApp_NewSession_PreservesWorkingDir(t *testing.T) { diff --git a/pkg/app/export/html.go b/pkg/app/export/html.go index bafe34911..1586a7dbb 100644 --- a/pkg/app/export/html.go +++ b/pkg/app/export/html.go @@ -16,8 +16,8 @@ import ( "github.com/yuin/goldmark/extension" "github.com/yuin/goldmark/renderer/html" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/session" ) //go:embed export.css diff --git a/pkg/app/transcript/transcript.go b/pkg/app/transcript/transcript.go index 91a18a206..94f662faf 100644 --- a/pkg/app/transcript/transcript.go +++ b/pkg/app/transcript/transcript.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/session" ) func PlainText(sess *session.Session) string { diff --git a/pkg/app/transcript/transcript_test.go b/pkg/app/transcript/transcript_test.go index bd738ab2b..efe3c5fcf 100644 --- a/pkg/app/transcript/transcript_test.go +++ b/pkg/app/transcript/transcript_test.go @@ -5,9 +5,9 @@ import ( "gotest.tools/v3/golden" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) func TestSimple(t *testing.T) { diff --git a/pkg/audio/transcribe/transcribe_darwin.go b/pkg/audio/transcribe/transcribe_darwin.go index 4d0e6af54..56519138b 100644 --- a/pkg/audio/transcribe/transcribe_darwin.go +++ b/pkg/audio/transcribe/transcribe_darwin.go @@ -14,7 +14,7 @@ import ( "github.com/gorilla/websocket" - "github.com/docker/cagent/pkg/audio/capture" + "github.com/docker/docker-agent/pkg/audio/capture" ) const openAIRealtimeURL = "wss://api.openai.com/v1/realtime?model=gpt-4o-realtime-preview" diff --git a/pkg/chat/chat.go b/pkg/chat/chat.go index 77f1bb50c..e3e4eceb1 100644 --- a/pkg/chat/chat.go +++ b/pkg/chat/chat.go @@ -8,7 +8,7 @@ import ( "strings" "unicode/utf8" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // MaxInlineFileSize is the maximum size of a text file that can be inlined diff --git a/pkg/cli/printer.go b/pkg/cli/printer.go index 1b02fbbe2..a30123b0d 100644 --- a/pkg/cli/printer.go +++ b/pkg/cli/printer.go @@ -13,8 +13,8 @@ import ( orderedmap "github.com/wk8/go-ordered-map/v2" "golang.org/x/term" - "github.com/docker/cagent/pkg/input" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/input" + "github.com/docker/docker-agent/pkg/tools" ) // ConfirmationResult represents the result of a user confirmation prompt diff --git a/pkg/cli/runner.go b/pkg/cli/runner.go index cf367af01..32541e22d 100644 --- a/pkg/cli/runner.go +++ b/pkg/cli/runner.go @@ -11,11 +11,11 @@ import ( "path/filepath" "strings" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/input" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/input" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/telemetry" ) // RuntimeError wraps runtime errors to distinguish them from usage errors diff --git a/pkg/cli/runner_test.go b/pkg/cli/runner_test.go index 0e9feb045..ee6241571 100644 --- a/pkg/cli/runner_test.go +++ b/pkg/cli/runner_test.go @@ -8,12 +8,12 @@ import ( "gotest.tools/v3/assert" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/sessiontitle" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - mcptools "github.com/docker/cagent/pkg/tools/mcp" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/sessiontitle" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + mcptools "github.com/docker/docker-agent/pkg/tools/mcp" ) // mockRuntime implements runtime.Runtime for testing the CLI runner. diff --git a/pkg/config/auto.go b/pkg/config/auto.go index ef395e419..23deb59b7 100644 --- a/pkg/config/auto.go +++ b/pkg/config/auto.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" ) // providerConfig defines a cloud provider and how to detect/describe its API keys. diff --git a/pkg/config/auto_test.go b/pkg/config/auto_test.go index 3c98c07c0..0d1606e9b 100644 --- a/pkg/config/auto_test.go +++ b/pkg/config/auto_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) type mockEnvProvider struct { diff --git a/pkg/config/config.go b/pkg/config/config.go index 1c6c50550..a5830636c 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -13,8 +13,8 @@ import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" ) func Load(ctx context.Context, source Source) (*latest.Config, error) { diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 7d40222a6..f0ea9ecbe 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" ) func TestAutoRegisterModels(t *testing.T) { diff --git a/pkg/config/examples_test.go b/pkg/config/examples_test.go index 411831703..c7e7f79bc 100644 --- a/pkg/config/examples_test.go +++ b/pkg/config/examples_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/modelsdev" ) func collectExamples(t *testing.T) []string { diff --git a/pkg/config/gather.go b/pkg/config/gather.go index c113cde0e..a79b6f29d 100644 --- a/pkg/config/gather.go +++ b/pkg/config/gather.go @@ -9,10 +9,10 @@ import ( "slices" "strings" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/gateway" - "github.com/docker/cagent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/gateway" + "github.com/docker/docker-agent/pkg/model/provider" ) // gatherMissingEnvVars finds out which environment variables are required by the models and tools. diff --git a/pkg/config/latest/parse.go b/pkg/config/latest/parse.go index c72bbf756..01e26bb38 100644 --- a/pkg/config/latest/parse.go +++ b/pkg/config/latest/parse.go @@ -3,8 +3,8 @@ package latest import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/types" - previous "github.com/docker/cagent/pkg/config/v5" + "github.com/docker/docker-agent/pkg/config/types" + previous "github.com/docker/docker-agent/pkg/config/v5" ) func Register(parsers map[string]func([]byte) (any, error), upgraders *[]func(any, []byte) (any, error)) { diff --git a/pkg/config/latest/types.go b/pkg/config/latest/types.go index 815971397..92b19ee42 100644 --- a/pkg/config/latest/types.go +++ b/pkg/config/latest/types.go @@ -10,7 +10,7 @@ import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) const Version = "6" diff --git a/pkg/config/latest/types_test.go b/pkg/config/latest/types_test.go index ff75d4555..e503d3cbb 100644 --- a/pkg/config/latest/types_test.go +++ b/pkg/config/latest/types_test.go @@ -6,7 +6,7 @@ import ( "github.com/goccy/go-yaml" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) func TestCommandsUnmarshal_Map(t *testing.T) { diff --git a/pkg/config/mcps.go b/pkg/config/mcps.go index 0684d679c..a47a2617a 100644 --- a/pkg/config/mcps.go +++ b/pkg/config/mcps.go @@ -5,7 +5,7 @@ import ( "maps" "strings" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) // resolveMCPDefinitions resolves MCP definition references in agent toolsets. diff --git a/pkg/config/model_alias.go b/pkg/config/model_alias.go index 8170f09e6..883fe26ce 100644 --- a/pkg/config/model_alias.go +++ b/pkg/config/model_alias.go @@ -5,8 +5,8 @@ import ( "log/slog" "strings" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/modelsdev" ) // ResolveModelAliases resolves model aliases to their pinned versions in the config. diff --git a/pkg/config/model_alias_test.go b/pkg/config/model_alias_test.go index b979b654f..8cc7c44fc 100644 --- a/pkg/config/model_alias_test.go +++ b/pkg/config/model_alias_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/modelsdev" ) func TestResolveModelAliases(t *testing.T) { diff --git a/pkg/config/overrides.go b/pkg/config/overrides.go index d55ce6c1b..36ed01f54 100644 --- a/pkg/config/overrides.go +++ b/pkg/config/overrides.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) // ApplyModelOverrides applies CLI model overrides to the configuration diff --git a/pkg/config/resolve.go b/pkg/config/resolve.go index 88db7957c..a4cca4afa 100644 --- a/pkg/config/resolve.go +++ b/pkg/config/resolve.go @@ -13,9 +13,9 @@ import ( "github.com/google/go-containerregistry/pkg/name" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/reference" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/reference" + "github.com/docker/docker-agent/pkg/userconfig" ) //go:embed builtin-agents/default.yaml diff --git a/pkg/config/resolve_test.go b/pkg/config/resolve_test.go index c01f3f939..6fc8fff2e 100644 --- a/pkg/config/resolve_test.go +++ b/pkg/config/resolve_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/reference" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/reference" + "github.com/docker/docker-agent/pkg/userconfig" ) func TestOciRefToFilename(t *testing.T) { diff --git a/pkg/config/runtime.go b/pkg/config/runtime.go index e1f831c90..b08ba31ba 100644 --- a/pkg/config/runtime.go +++ b/pkg/config/runtime.go @@ -5,8 +5,8 @@ import ( "slices" "sync" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" ) type RuntimeConfig struct { diff --git a/pkg/config/runtime_clone_test.go b/pkg/config/runtime_clone_test.go index be53d0ec0..77b0bd43e 100644 --- a/pkg/config/runtime_clone_test.go +++ b/pkg/config/runtime_clone_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) func TestClone_DefaultModelDeepCopy(t *testing.T) { diff --git a/pkg/config/schema_test.go b/pkg/config/schema_test.go index 554f881bf..3ae8f3e27 100644 --- a/pkg/config/schema_test.go +++ b/pkg/config/schema_test.go @@ -13,7 +13,7 @@ import ( "github.com/stretchr/testify/require" "github.com/xeipuuv/gojsonschema" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) // schemaFile is the path to the JSON schema file relative to the repo root. diff --git a/pkg/config/sources.go b/pkg/config/sources.go index 89a6f0ef6..e8ccf52fe 100644 --- a/pkg/config/sources.go +++ b/pkg/config/sources.go @@ -15,11 +15,11 @@ import ( "slices" "strings" - "github.com/docker/cagent/pkg/content" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/httpclient" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/remote" + "github.com/docker/docker-agent/pkg/content" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/httpclient" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/remote" ) type Source interface { diff --git a/pkg/config/v0/types.go b/pkg/config/v0/types.go index 8d6738009..9b4db610e 100644 --- a/pkg/config/v0/types.go +++ b/pkg/config/v0/types.go @@ -3,7 +3,7 @@ package v0 import ( "errors" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) const Version = "0" diff --git a/pkg/config/v1/parse.go b/pkg/config/v1/parse.go index cb3fd974c..feb6b321c 100644 --- a/pkg/config/v1/parse.go +++ b/pkg/config/v1/parse.go @@ -3,8 +3,8 @@ package v1 import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/types" - previous "github.com/docker/cagent/pkg/config/v0" + "github.com/docker/docker-agent/pkg/config/types" + previous "github.com/docker/docker-agent/pkg/config/v0" ) func Register(parsers map[string]func([]byte) (any, error), upgraders *[]func(any, []byte) (any, error)) { diff --git a/pkg/config/v1/types.go b/pkg/config/v1/types.go index 33086213d..951478ff0 100644 --- a/pkg/config/v1/types.go +++ b/pkg/config/v1/types.go @@ -4,7 +4,7 @@ import ( "errors" "strings" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) const Version = "1" diff --git a/pkg/config/v2/parse.go b/pkg/config/v2/parse.go index 9b0194e79..f472a1288 100644 --- a/pkg/config/v2/parse.go +++ b/pkg/config/v2/parse.go @@ -5,8 +5,8 @@ import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/types" - previous "github.com/docker/cagent/pkg/config/v1" + "github.com/docker/docker-agent/pkg/config/types" + previous "github.com/docker/docker-agent/pkg/config/v1" ) func Register(parsers map[string]func([]byte) (any, error), upgraders *[]func(any, []byte) (any, error)) { diff --git a/pkg/config/v2/types.go b/pkg/config/v2/types.go index a51ee7a3b..6c8b6ebdc 100644 --- a/pkg/config/v2/types.go +++ b/pkg/config/v2/types.go @@ -5,7 +5,7 @@ import ( "fmt" "maps" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) const Version = "2" diff --git a/pkg/config/v2/types_test.go b/pkg/config/v2/types_test.go index 9a14e82d7..bb52c4d2c 100644 --- a/pkg/config/v2/types_test.go +++ b/pkg/config/v2/types_test.go @@ -7,7 +7,7 @@ import ( "github.com/goccy/go-yaml" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) func TestCommandsUnmarshal_Map(t *testing.T) { diff --git a/pkg/config/v3/parse.go b/pkg/config/v3/parse.go index 998502156..b0b902a27 100644 --- a/pkg/config/v3/parse.go +++ b/pkg/config/v3/parse.go @@ -3,8 +3,8 @@ package v3 import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/types" - previous "github.com/docker/cagent/pkg/config/v2" + "github.com/docker/docker-agent/pkg/config/types" + previous "github.com/docker/docker-agent/pkg/config/v2" ) func Register(parsers map[string]func([]byte) (any, error), upgraders *[]func(any, []byte) (any, error)) { diff --git a/pkg/config/v3/types.go b/pkg/config/v3/types.go index 735cc748e..12b8b2f57 100644 --- a/pkg/config/v3/types.go +++ b/pkg/config/v3/types.go @@ -5,7 +5,7 @@ import ( "fmt" "maps" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) const Version = "3" diff --git a/pkg/config/v3/types_test.go b/pkg/config/v3/types_test.go index de28711bf..8b9e72c42 100644 --- a/pkg/config/v3/types_test.go +++ b/pkg/config/v3/types_test.go @@ -6,7 +6,7 @@ import ( "github.com/goccy/go-yaml" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) func TestCommandsUnmarshal_Map(t *testing.T) { diff --git a/pkg/config/v4/parse.go b/pkg/config/v4/parse.go index 38bc04fcf..891dae472 100644 --- a/pkg/config/v4/parse.go +++ b/pkg/config/v4/parse.go @@ -3,8 +3,8 @@ package v4 import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/types" - previous "github.com/docker/cagent/pkg/config/v3" + "github.com/docker/docker-agent/pkg/config/types" + previous "github.com/docker/docker-agent/pkg/config/v3" ) func Register(parsers map[string]func([]byte) (any, error), upgraders *[]func(any, []byte) (any, error)) { diff --git a/pkg/config/v4/types.go b/pkg/config/v4/types.go index 0d43e32b4..b166cd615 100644 --- a/pkg/config/v4/types.go +++ b/pkg/config/v4/types.go @@ -9,7 +9,7 @@ import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) const Version = "4" diff --git a/pkg/config/v4/types_test.go b/pkg/config/v4/types_test.go index 992134209..0d02d62ba 100644 --- a/pkg/config/v4/types_test.go +++ b/pkg/config/v4/types_test.go @@ -6,7 +6,7 @@ import ( "github.com/goccy/go-yaml" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) func TestCommandsUnmarshal_Map(t *testing.T) { diff --git a/pkg/config/v5/parse.go b/pkg/config/v5/parse.go index adddb33a2..361ef074e 100644 --- a/pkg/config/v5/parse.go +++ b/pkg/config/v5/parse.go @@ -3,8 +3,8 @@ package v5 import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/types" - previous "github.com/docker/cagent/pkg/config/v4" + "github.com/docker/docker-agent/pkg/config/types" + previous "github.com/docker/docker-agent/pkg/config/v4" ) func Register(parsers map[string]func([]byte) (any, error), upgraders *[]func(any, []byte) (any, error)) { diff --git a/pkg/config/v5/types.go b/pkg/config/v5/types.go index 10a68db38..5c9bae7d8 100644 --- a/pkg/config/v5/types.go +++ b/pkg/config/v5/types.go @@ -10,7 +10,7 @@ import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) const Version = "5" diff --git a/pkg/config/v5/types_test.go b/pkg/config/v5/types_test.go index 2cdc2413a..ce053a006 100644 --- a/pkg/config/v5/types_test.go +++ b/pkg/config/v5/types_test.go @@ -6,7 +6,7 @@ import ( "github.com/goccy/go-yaml" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/types" + "github.com/docker/docker-agent/pkg/config/types" ) func TestCommandsUnmarshal_Map(t *testing.T) { diff --git a/pkg/config/versions.go b/pkg/config/versions.go index d33a090d6..253d94e31 100644 --- a/pkg/config/versions.go +++ b/pkg/config/versions.go @@ -1,13 +1,13 @@ package config import ( - "github.com/docker/cagent/pkg/config/latest" - v0 "github.com/docker/cagent/pkg/config/v0" - v1 "github.com/docker/cagent/pkg/config/v1" - v2 "github.com/docker/cagent/pkg/config/v2" - v3 "github.com/docker/cagent/pkg/config/v3" - v4 "github.com/docker/cagent/pkg/config/v4" - v5 "github.com/docker/cagent/pkg/config/v5" + "github.com/docker/docker-agent/pkg/config/latest" + v0 "github.com/docker/docker-agent/pkg/config/v0" + v1 "github.com/docker/docker-agent/pkg/config/v1" + v2 "github.com/docker/docker-agent/pkg/config/v2" + v3 "github.com/docker/docker-agent/pkg/config/v3" + v4 "github.com/docker/docker-agent/pkg/config/v4" + v5 "github.com/docker/docker-agent/pkg/config/v5" ) func versions() (map[string]func([]byte) (any, error), []func(any, []byte) (any, error)) { diff --git a/pkg/creator/agent.go b/pkg/creator/agent.go index 99d7a1711..3e7007540 100644 --- a/pkg/creator/agent.go +++ b/pkg/creator/agent.go @@ -11,12 +11,12 @@ import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/teamloader" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" ) //go:embed instructions.txt diff --git a/pkg/creator/agent_test.go b/pkg/creator/agent_test.go index f39aea009..f32facda8 100644 --- a/pkg/creator/agent_test.go +++ b/pkg/creator/agent_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" ) func TestAgentConfigYAML(t *testing.T) { diff --git a/pkg/environment/default.go b/pkg/environment/default.go index 093cfa10f..25737cff4 100644 --- a/pkg/environment/default.go +++ b/pkg/environment/default.go @@ -1,8 +1,8 @@ package environment import ( - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/userconfig" ) // NewDefaultProvider creates a provider chain with OS env, run secrets, diff --git a/pkg/environment/docker-desktop.go b/pkg/environment/docker-desktop.go index 8f70fddca..638977f4f 100644 --- a/pkg/environment/docker-desktop.go +++ b/pkg/environment/docker-desktop.go @@ -3,7 +3,7 @@ package environment import ( "context" - "github.com/docker/cagent/pkg/desktop" + "github.com/docker/docker-agent/pkg/desktop" ) const ( diff --git a/pkg/environment/env_files.go b/pkg/environment/env_files.go index bb1119f58..6c1179962 100644 --- a/pkg/environment/env_files.go +++ b/pkg/environment/env_files.go @@ -6,8 +6,8 @@ import ( "path/filepath" "strings" - "github.com/docker/cagent/pkg/path" - "github.com/docker/cagent/pkg/paths" + "github.com/docker/docker-agent/pkg/path" + "github.com/docker/docker-agent/pkg/paths" ) type KeyValuePair struct { diff --git a/pkg/environment/secrets.go b/pkg/environment/secrets.go index 3adcb0978..ecc86fed7 100644 --- a/pkg/environment/secrets.go +++ b/pkg/environment/secrets.go @@ -5,7 +5,7 @@ import ( "log/slog" "os" - "github.com/docker/cagent/pkg/path" + "github.com/docker/docker-agent/pkg/path" ) type RunSecretsProvider struct { diff --git a/pkg/evaluation/eval.go b/pkg/evaluation/eval.go index b59ce80d1..8b9aac97e 100644 --- a/pkg/evaluation/eval.go +++ b/pkg/evaluation/eval.go @@ -19,12 +19,12 @@ import ( "github.com/google/uuid" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/session" ) // Runner runs evaluations against an agent. diff --git a/pkg/evaluation/judge.go b/pkg/evaluation/judge.go index fb3672c4a..33b441841 100644 --- a/pkg/evaluation/judge.go +++ b/pkg/evaluation/judge.go @@ -10,11 +10,11 @@ import ( "strings" "sync" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/options" ) // relevancePrompt is the prompt template for the judge model to evaluate responses. diff --git a/pkg/evaluation/save.go b/pkg/evaluation/save.go index 8ef0add3a..29d444183 100644 --- a/pkg/evaluation/save.go +++ b/pkg/evaluation/save.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) // SaveRunSessions saves all eval sessions to a SQLite database file. diff --git a/pkg/evaluation/save_test.go b/pkg/evaluation/save_test.go index b40bf2a2f..3c6a45ead 100644 --- a/pkg/evaluation/save_test.go +++ b/pkg/evaluation/save_test.go @@ -10,9 +10,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) func TestSaveWithCustomFilename(t *testing.T) { diff --git a/pkg/evaluation/types.go b/pkg/evaluation/types.go index 85d9784de..2763ec761 100644 --- a/pkg/evaluation/types.go +++ b/pkg/evaluation/types.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/session" ) // InputSession wraps a session with its source path for evaluation loading. diff --git a/pkg/hooks/config.go b/pkg/hooks/config.go index 299cc5fe7..b1565ac7e 100644 --- a/pkg/hooks/config.go +++ b/pkg/hooks/config.go @@ -1,7 +1,7 @@ package hooks import ( - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) // FromConfig converts a latest.HooksConfig to a hooks.Config diff --git a/pkg/httpclient/client.go b/pkg/httpclient/client.go index b5e9eac85..5b199c98e 100644 --- a/pkg/httpclient/client.go +++ b/pkg/httpclient/client.go @@ -7,7 +7,7 @@ import ( "net/url" "runtime" - "github.com/docker/cagent/pkg/version" + "github.com/docker/docker-agent/pkg/version" ) type HTTPOptions struct { diff --git a/pkg/js/eval.go b/pkg/js/eval.go index a9e92d4ec..51ea6d200 100644 --- a/pkg/js/eval.go +++ b/pkg/js/eval.go @@ -8,7 +8,7 @@ import ( "slices" "strings" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // Evaluator handles JavaScript expression evaluation in strings. diff --git a/pkg/js/eval_test.go b/pkg/js/eval_test.go index 4fd55dc44..9585b46d9 100644 --- a/pkg/js/eval_test.go +++ b/pkg/js/eval_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestEvaluate(t *testing.T) { diff --git a/pkg/js/expand.go b/pkg/js/expand.go index 417a23a80..af565164a 100644 --- a/pkg/js/expand.go +++ b/pkg/js/expand.go @@ -6,8 +6,8 @@ import ( "github.com/dop251/goja" - "github.com/docker/cagent/pkg/config/types" - "github.com/docker/cagent/pkg/environment" + "github.com/docker/docker-agent/pkg/config/types" + "github.com/docker/docker-agent/pkg/environment" ) // newVM creates a new Goja JavaScript runtime. diff --git a/pkg/mcp/server.go b/pkg/mcp/server.go index 41e982af9..0cb66ac4d 100644 --- a/pkg/mcp/server.go +++ b/pkg/mcp/server.go @@ -12,14 +12,14 @@ import ( "github.com/modelcontextprotocol/go-sdk/mcp" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/teamloader" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/version" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/version" ) type ToolInput struct { diff --git a/pkg/mcp/server_test.go b/pkg/mcp/server_test.go index b64bbf9d1..1a7c4bd1a 100644 --- a/pkg/mcp/server_test.go +++ b/pkg/mcp/server_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/tools" ) func boolPtr(v bool) *bool { return &v } diff --git a/pkg/memory/database/sqlite/sqlite.go b/pkg/memory/database/sqlite/sqlite.go index 62eaf27db..a37f34ef8 100644 --- a/pkg/memory/database/sqlite/sqlite.go +++ b/pkg/memory/database/sqlite/sqlite.go @@ -6,8 +6,8 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/memory/database" - "github.com/docker/cagent/pkg/sqliteutil" + "github.com/docker/docker-agent/pkg/memory/database" + "github.com/docker/docker-agent/pkg/sqliteutil" ) type MemoryDatabase struct { diff --git a/pkg/memory/database/sqlite/sqlite_test.go b/pkg/memory/database/sqlite/sqlite_test.go index 1b3b95b23..1c1a15829 100644 --- a/pkg/memory/database/sqlite/sqlite_test.go +++ b/pkg/memory/database/sqlite/sqlite_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/memory/database" + "github.com/docker/docker-agent/pkg/memory/database" ) func setupTestDB(t *testing.T) database.Database { diff --git a/pkg/model/provider/anthropic/adapter.go b/pkg/model/provider/anthropic/adapter.go index 68ef93213..3eb776fa2 100644 --- a/pkg/model/provider/anthropic/adapter.go +++ b/pkg/model/provider/anthropic/adapter.go @@ -13,8 +13,8 @@ import ( "github.com/anthropics/anthropic-sdk-go/packages/ssestream" "github.com/anthropics/anthropic-sdk-go/shared" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) // streamAdapter adapts the Anthropic stream to our interface diff --git a/pkg/model/provider/anthropic/beta_adapter.go b/pkg/model/provider/anthropic/beta_adapter.go index 60f3430f3..57e13d14a 100644 --- a/pkg/model/provider/anthropic/beta_adapter.go +++ b/pkg/model/provider/anthropic/beta_adapter.go @@ -9,8 +9,8 @@ import ( "github.com/anthropics/anthropic-sdk-go" "github.com/anthropics/anthropic-sdk-go/packages/ssestream" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) // betaStreamAdapter adapts the Anthropic Beta stream to our interface diff --git a/pkg/model/provider/anthropic/beta_client.go b/pkg/model/provider/anthropic/beta_client.go index 0de36dcba..86815418b 100644 --- a/pkg/model/provider/anthropic/beta_client.go +++ b/pkg/model/provider/anthropic/beta_client.go @@ -12,10 +12,10 @@ import ( "github.com/anthropics/anthropic-sdk-go/packages/param" "github.com/anthropics/anthropic-sdk-go/packages/ssestream" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/rag/prompts" - "github.com/docker/cagent/pkg/rag/types" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/rag/prompts" + "github.com/docker/docker-agent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/tools" ) // createBetaStream creates a streaming chat completion using the Beta Messages API diff --git a/pkg/model/provider/anthropic/beta_client_test.go b/pkg/model/provider/anthropic/beta_client_test.go index ea04e1f1d..1115a9980 100644 --- a/pkg/model/provider/anthropic/beta_client_test.go +++ b/pkg/model/provider/anthropic/beta_client_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" + "github.com/docker/docker-agent/pkg/chat" ) // TestCountAnthropicTokensBeta_Success tests successful token counting for beta API diff --git a/pkg/model/provider/anthropic/beta_converter.go b/pkg/model/provider/anthropic/beta_converter.go index 573c7f799..772b21882 100644 --- a/pkg/model/provider/anthropic/beta_converter.go +++ b/pkg/model/provider/anthropic/beta_converter.go @@ -8,8 +8,8 @@ import ( "github.com/anthropics/anthropic-sdk-go" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) // convertBetaMessages converts chat messages to Anthropic Beta API format diff --git a/pkg/model/provider/anthropic/beta_converter_test.go b/pkg/model/provider/anthropic/beta_converter_test.go index c5aaadd4d..21dff3b5c 100644 --- a/pkg/model/provider/anthropic/beta_converter_test.go +++ b/pkg/model/provider/anthropic/beta_converter_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) func TestConvertBetaMessages_MergesConsecutiveToolMessages(t *testing.T) { diff --git a/pkg/model/provider/anthropic/client.go b/pkg/model/provider/anthropic/client.go index ad6ceeb1f..f856d17e0 100644 --- a/pkg/model/provider/anthropic/client.go +++ b/pkg/model/provider/anthropic/client.go @@ -16,13 +16,13 @@ import ( "github.com/anthropics/anthropic-sdk-go/option" "github.com/anthropics/anthropic-sdk-go/packages/param" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/httpclient" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/httpclient" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/tools" ) // Client represents an Anthropic client wrapper implementing provider.Provider diff --git a/pkg/model/provider/anthropic/client_test.go b/pkg/model/provider/anthropic/client_test.go index e169bf209..3e53a15a4 100644 --- a/pkg/model/provider/anthropic/client_test.go +++ b/pkg/model/provider/anthropic/client_test.go @@ -13,10 +13,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/tools" ) // testClient creates a minimal Client for testing convertMessages. diff --git a/pkg/model/provider/anthropic/files.go b/pkg/model/provider/anthropic/files.go index 299f6c63d..933139390 100644 --- a/pkg/model/provider/anthropic/files.go +++ b/pkg/model/provider/anthropic/files.go @@ -16,7 +16,7 @@ import ( "github.com/anthropics/anthropic-sdk-go" - "github.com/docker/cagent/pkg/chat" + "github.com/docker/docker-agent/pkg/chat" ) const ( diff --git a/pkg/model/provider/anthropic/files_test.go b/pkg/model/provider/anthropic/files_test.go index 7734dc690..6d9fe186b 100644 --- a/pkg/model/provider/anthropic/files_test.go +++ b/pkg/model/provider/anthropic/files_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" + "github.com/docker/docker-agent/pkg/chat" ) func TestDetectMimeType(t *testing.T) { diff --git a/pkg/model/provider/base/base.go b/pkg/model/provider/base/base.go index 2a25fe5c9..d579dd02d 100644 --- a/pkg/model/provider/base/base.go +++ b/pkg/model/provider/base/base.go @@ -1,9 +1,9 @@ package base import ( - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/options" ) // Config is a common base configuration shared by all provider clients. diff --git a/pkg/model/provider/bedrock/adapter.go b/pkg/model/provider/bedrock/adapter.go index b05cc73de..8f29cd78e 100644 --- a/pkg/model/provider/bedrock/adapter.go +++ b/pkg/model/provider/bedrock/adapter.go @@ -8,8 +8,8 @@ import ( "github.com/aws/aws-sdk-go-v2/service/bedrockruntime" "github.com/aws/aws-sdk-go-v2/service/bedrockruntime/types" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) // streamAdapter adapts Bedrock's ConverseStreamEventStream to chat.MessageStream diff --git a/pkg/model/provider/bedrock/client.go b/pkg/model/provider/bedrock/client.go index 22a359202..85e815372 100644 --- a/pkg/model/provider/bedrock/client.go +++ b/pkg/model/provider/bedrock/client.go @@ -15,13 +15,13 @@ import ( "github.com/aws/aws-sdk-go-v2/service/bedrockruntime/types" "github.com/aws/aws-sdk-go-v2/service/sts" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/tools" ) // Client represents a Bedrock client wrapper implementing provider.Provider diff --git a/pkg/model/provider/bedrock/client_test.go b/pkg/model/provider/bedrock/client_test.go index 6d02e2ee4..829ca6fb7 100644 --- a/pkg/model/provider/bedrock/client_test.go +++ b/pkg/model/provider/bedrock/client_test.go @@ -11,11 +11,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/tools" ) func TestConvertMessages_UserText(t *testing.T) { diff --git a/pkg/model/provider/bedrock/convert.go b/pkg/model/provider/bedrock/convert.go index 77bebf175..060b7e137 100644 --- a/pkg/model/provider/bedrock/convert.go +++ b/pkg/model/provider/bedrock/convert.go @@ -10,8 +10,8 @@ import ( "github.com/aws/aws-sdk-go-v2/service/bedrockruntime/document" "github.com/aws/aws-sdk-go-v2/service/bedrockruntime/types" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) // convertMessages handles Bedrock's Converse API constraints: diff --git a/pkg/model/provider/clone.go b/pkg/model/provider/clone.go index b9ac82579..1e0809435 100644 --- a/pkg/model/provider/clone.go +++ b/pkg/model/provider/clone.go @@ -4,7 +4,7 @@ import ( "context" "log/slog" - "github.com/docker/cagent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/model/provider/options" ) // CloneWithOptions returns a new Provider instance using the same provider/model diff --git a/pkg/model/provider/clone_test.go b/pkg/model/provider/clone_test.go index 2c933f50c..80facc51c 100644 --- a/pkg/model/provider/clone_test.go +++ b/pkg/model/provider/clone_test.go @@ -9,9 +9,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/options" ) type cloneTestEnvProvider struct { diff --git a/pkg/model/provider/custom_provider_test.go b/pkg/model/provider/custom_provider_test.go index 557f16e73..f36ffcdd1 100644 --- a/pkg/model/provider/custom_provider_test.go +++ b/pkg/model/provider/custom_provider_test.go @@ -13,11 +13,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/tools" ) // mockEnvProvider is a simple env provider for testing diff --git a/pkg/model/provider/dmr/adapter.go b/pkg/model/provider/dmr/adapter.go index 351150369..cd8780782 100644 --- a/pkg/model/provider/dmr/adapter.go +++ b/pkg/model/provider/dmr/adapter.go @@ -4,8 +4,8 @@ import ( "github.com/openai/openai-go/v3" "github.com/openai/openai-go/v3/packages/ssestream" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/model/provider/oaistream" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/model/provider/oaistream" ) // newStreamAdapter returns the shared OpenAI stream adapter implementation diff --git a/pkg/model/provider/dmr/client.go b/pkg/model/provider/dmr/client.go index 0701ac52a..d1dbf074c 100644 --- a/pkg/model/provider/dmr/client.go +++ b/pkg/model/provider/dmr/client.go @@ -24,14 +24,14 @@ import ( "github.com/openai/openai-go/v3/shared" "golang.org/x/term" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/input" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/model/provider/oaistream" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/rag/types" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/input" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/model/provider/oaistream" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/model/provider/dmr/client_test.go b/pkg/model/provider/dmr/client_test.go index 5bfb2d297..cfe9de28c 100644 --- a/pkg/model/provider/dmr/client_test.go +++ b/pkg/model/provider/dmr/client_test.go @@ -13,7 +13,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) func TestNewClientWithExplicitBaseURL(t *testing.T) { diff --git a/pkg/model/provider/dmr/schema.go b/pkg/model/provider/dmr/schema.go index fda67c94e..94478b552 100644 --- a/pkg/model/provider/dmr/schema.go +++ b/pkg/model/provider/dmr/schema.go @@ -1,7 +1,7 @@ package dmr import ( - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // ConvertParametersToSchema converts parameters to DMR Schema format diff --git a/pkg/model/provider/gemini/adapter.go b/pkg/model/provider/gemini/adapter.go index 540718149..a81daba46 100644 --- a/pkg/model/provider/gemini/adapter.go +++ b/pkg/model/provider/gemini/adapter.go @@ -10,8 +10,8 @@ import ( "github.com/google/uuid" "google.golang.org/genai" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) // Pre-compiled regex for extracting text from error messages (performance optimization). diff --git a/pkg/model/provider/gemini/adapter_test.go b/pkg/model/provider/gemini/adapter_test.go index 08ffabb9e..38ebfb0c7 100644 --- a/pkg/model/provider/gemini/adapter_test.go +++ b/pkg/model/provider/gemini/adapter_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/genai" - "github.com/docker/cagent/pkg/chat" + "github.com/docker/docker-agent/pkg/chat" ) func TestStreamAdapter_FunctionCalls(t *testing.T) { diff --git a/pkg/model/provider/gemini/client.go b/pkg/model/provider/gemini/client.go index a8ac480cc..3fe11ada5 100644 --- a/pkg/model/provider/gemini/client.go +++ b/pkg/model/provider/gemini/client.go @@ -14,15 +14,15 @@ import ( "google.golang.org/genai" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/httpclient" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/rag/prompts" - "github.com/docker/cagent/pkg/rag/types" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/httpclient" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/rag/prompts" + "github.com/docker/docker-agent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/tools" ) // Client represents a Gemini client wrapper diff --git a/pkg/model/provider/gemini/client_test.go b/pkg/model/provider/gemini/client_test.go index 1992fe5d5..7d0972084 100644 --- a/pkg/model/provider/gemini/client_test.go +++ b/pkg/model/provider/gemini/client_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/genai" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/model/provider/options" ) func TestBuildConfig_Gemini25_ThinkingBudget(t *testing.T) { diff --git a/pkg/model/provider/model_defaults_test.go b/pkg/model/provider/model_defaults_test.go index 28ad89278..c05414539 100644 --- a/pkg/model/provider/model_defaults_test.go +++ b/pkg/model/provider/model_defaults_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) // TestApplyModelDefaults_OpenAI tests that OpenAI models get the correct default thinking_budget. diff --git a/pkg/model/provider/oaistream/adapter.go b/pkg/model/provider/oaistream/adapter.go index 3125ac0ed..cc04d9f01 100644 --- a/pkg/model/provider/oaistream/adapter.go +++ b/pkg/model/provider/oaistream/adapter.go @@ -10,8 +10,8 @@ import ( "github.com/openai/openai-go/v3" "github.com/openai/openai-go/v3/packages/ssestream" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) // StreamAdapter adapts the OpenAI stream to our interface diff --git a/pkg/model/provider/oaistream/messages.go b/pkg/model/provider/oaistream/messages.go index 7d563e4a4..bbe78a4a6 100644 --- a/pkg/model/provider/oaistream/messages.go +++ b/pkg/model/provider/oaistream/messages.go @@ -11,7 +11,7 @@ import ( "github.com/openai/openai-go/v3" "github.com/openai/openai-go/v3/packages/param" - "github.com/docker/cagent/pkg/chat" + "github.com/docker/docker-agent/pkg/chat" ) // JSONSchema is a helper type that implements json.Marshaler for map[string]any. diff --git a/pkg/model/provider/oaistream/messages_test.go b/pkg/model/provider/oaistream/messages_test.go index 1930de94d..fa46ee0ff 100644 --- a/pkg/model/provider/oaistream/messages_test.go +++ b/pkg/model/provider/oaistream/messages_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) func TestConvertMultiContent(t *testing.T) { diff --git a/pkg/model/provider/openai/adapter.go b/pkg/model/provider/openai/adapter.go index 691d389fe..65a1e9d14 100644 --- a/pkg/model/provider/openai/adapter.go +++ b/pkg/model/provider/openai/adapter.go @@ -4,8 +4,8 @@ import ( "github.com/openai/openai-go/v3" "github.com/openai/openai-go/v3/packages/ssestream" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/model/provider/oaistream" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/model/provider/oaistream" ) // newStreamAdapter returns the shared OpenAI stream adapter implementation diff --git a/pkg/model/provider/openai/api_type_test.go b/pkg/model/provider/openai/api_type_test.go index 15e46a329..a368e8ee6 100644 --- a/pkg/model/provider/openai/api_type_test.go +++ b/pkg/model/provider/openai/api_type_test.go @@ -11,9 +11,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" ) // mockEnvProvider is a simple env provider for testing diff --git a/pkg/model/provider/openai/client.go b/pkg/model/provider/openai/client.go index 9ff11ae76..7dcf5b2f7 100644 --- a/pkg/model/provider/openai/client.go +++ b/pkg/model/provider/openai/client.go @@ -16,16 +16,16 @@ import ( "github.com/openai/openai-go/v3/responses" "github.com/openai/openai-go/v3/shared" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/httpclient" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/model/provider/oaistream" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/rag/prompts" - "github.com/docker/cagent/pkg/rag/types" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/httpclient" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/model/provider/oaistream" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/rag/prompts" + "github.com/docker/docker-agent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/tools" ) // Client represents an OpenAI client wrapper diff --git a/pkg/model/provider/openai/response_stream.go b/pkg/model/provider/openai/response_stream.go index c77cb74ba..7e9040024 100644 --- a/pkg/model/provider/openai/response_stream.go +++ b/pkg/model/provider/openai/response_stream.go @@ -8,8 +8,8 @@ import ( "github.com/openai/openai-go/v3/packages/ssestream" "github.com/openai/openai-go/v3/responses" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) // ResponseStreamAdapter adapts the OpenAI responses stream to our interface diff --git a/pkg/model/provider/openai/schema.go b/pkg/model/provider/openai/schema.go index f6d446235..28149ab3b 100644 --- a/pkg/model/provider/openai/schema.go +++ b/pkg/model/provider/openai/schema.go @@ -6,7 +6,7 @@ import ( "github.com/openai/openai-go/v3/shared" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // ConvertParametersToSchema converts parameters to OpenAI Schema format diff --git a/pkg/model/provider/openai/schema_test.go b/pkg/model/provider/openai/schema_test.go index cb356c111..65562b774 100644 --- a/pkg/model/provider/openai/schema_test.go +++ b/pkg/model/provider/openai/schema_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestMakeAllRequired(t *testing.T) { diff --git a/pkg/model/provider/openai/thinking_budget_test.go b/pkg/model/provider/openai/thinking_budget_test.go index c19f01656..ed7d62fbd 100644 --- a/pkg/model/provider/openai/thinking_budget_test.go +++ b/pkg/model/provider/openai/thinking_budget_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) func TestIsOpenAIReasoningModel(t *testing.T) { diff --git a/pkg/model/provider/options/options.go b/pkg/model/provider/options/options.go index d08ba33b0..f907ce22e 100644 --- a/pkg/model/provider/options/options.go +++ b/pkg/model/provider/options/options.go @@ -1,7 +1,7 @@ package options import ( - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) type ModelOptions struct { diff --git a/pkg/model/provider/override_test.go b/pkg/model/provider/override_test.go index 4408cc468..9232fc095 100644 --- a/pkg/model/provider/override_test.go +++ b/pkg/model/provider/override_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/model/provider/options" ) // TestApplyOverrides_Thinking tests that applyOverrides correctly clears diff --git a/pkg/model/provider/provider.go b/pkg/model/provider/provider.go index d85c593ca..b0fc8903f 100644 --- a/pkg/model/provider/provider.go +++ b/pkg/model/provider/provider.go @@ -8,19 +8,19 @@ import ( "slices" "strings" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/anthropic" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/model/provider/bedrock" - "github.com/docker/cagent/pkg/model/provider/dmr" - "github.com/docker/cagent/pkg/model/provider/gemini" - "github.com/docker/cagent/pkg/model/provider/openai" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/model/provider/rulebased" - "github.com/docker/cagent/pkg/rag/types" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/anthropic" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/model/provider/bedrock" + "github.com/docker/docker-agent/pkg/model/provider/dmr" + "github.com/docker/docker-agent/pkg/model/provider/gemini" + "github.com/docker/docker-agent/pkg/model/provider/openai" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/model/provider/rulebased" + "github.com/docker/docker-agent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/tools" ) // Alias defines the configuration for a provider alias diff --git a/pkg/model/provider/rulebased/client.go b/pkg/model/provider/rulebased/client.go index fcdb9beba..8712c178e 100644 --- a/pkg/model/provider/rulebased/client.go +++ b/pkg/model/provider/rulebased/client.go @@ -17,12 +17,12 @@ import ( "github.com/blevesearch/bleve/v2" "github.com/blevesearch/bleve/v2/mapping" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/tools" ) // Provider defines the minimal interface needed for model providers. diff --git a/pkg/model/provider/rulebased/client_test.go b/pkg/model/provider/rulebased/client_test.go index 47dcaa508..c5ea1c790 100644 --- a/pkg/model/provider/rulebased/client_test.go +++ b/pkg/model/provider/rulebased/client_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/tools" ) // mockProvider is a simple mock provider for testing. diff --git a/pkg/model/provider/schema_test.go b/pkg/model/provider/schema_test.go index f18618000..e9150d123 100644 --- a/pkg/model/provider/schema_test.go +++ b/pkg/model/provider/schema_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/model/provider/anthropic" - "github.com/docker/cagent/pkg/model/provider/dmr" - "github.com/docker/cagent/pkg/model/provider/gemini" - "github.com/docker/cagent/pkg/model/provider/openai" + "github.com/docker/docker-agent/pkg/model/provider/anthropic" + "github.com/docker/docker-agent/pkg/model/provider/dmr" + "github.com/docker/docker-agent/pkg/model/provider/gemini" + "github.com/docker/docker-agent/pkg/model/provider/openai" ) const schemaJSON = ` diff --git a/pkg/oci/package.go b/pkg/oci/package.go index 57761be91..6d90325ae 100644 --- a/pkg/oci/package.go +++ b/pkg/oci/package.go @@ -14,10 +14,10 @@ import ( "github.com/google/go-containerregistry/pkg/v1/static" "github.com/google/go-containerregistry/pkg/v1/types" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/content" - "github.com/docker/cagent/pkg/version" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/content" + "github.com/docker/docker-agent/pkg/version" ) // PackageFileAsOCIToStore creates an OCI artifact from a file and stores it in the content store diff --git a/pkg/oci/package_test.go b/pkg/oci/package_test.go index 5d5e6dbfd..67db74682 100644 --- a/pkg/oci/package_test.go +++ b/pkg/oci/package_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/content" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/content" ) func TestPackageFileAsOCIToStore(t *testing.T) { diff --git a/pkg/paths/paths_test.go b/pkg/paths/paths_test.go index 6f2b7a098..b0d088245 100644 --- a/pkg/paths/paths_test.go +++ b/pkg/paths/paths_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/paths" + "github.com/docker/docker-agent/pkg/paths" ) func TestOverrides(t *testing.T) { diff --git a/pkg/permissions/permissions.go b/pkg/permissions/permissions.go index 74420ca39..f465df8ce 100644 --- a/pkg/permissions/permissions.go +++ b/pkg/permissions/permissions.go @@ -7,7 +7,7 @@ import ( "path/filepath" "strings" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) // Decision represents the permission decision for a tool call diff --git a/pkg/permissions/permissions_test.go b/pkg/permissions/permissions_test.go index a64dcfa5c..44784a3ea 100644 --- a/pkg/permissions/permissions_test.go +++ b/pkg/permissions/permissions_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) func TestNewChecker(t *testing.T) { diff --git a/pkg/rag/builder.go b/pkg/rag/builder.go index caf8ccdb0..b85acffff 100644 --- a/pkg/rag/builder.go +++ b/pkg/rag/builder.go @@ -5,12 +5,12 @@ import ( "fmt" "log/slog" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/rag/rerank" - "github.com/docker/cagent/pkg/rag/strategy" - "github.com/docker/cagent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/rag/rerank" + "github.com/docker/docker-agent/pkg/rag/strategy" + "github.com/docker/docker-agent/pkg/rag/types" ) // ManagersBuildConfig contains dependencies needed to build RAG managers from config. diff --git a/pkg/rag/embed/embed.go b/pkg/rag/embed/embed.go index 4fa553583..60fd4aeba 100644 --- a/pkg/rag/embed/embed.go +++ b/pkg/rag/embed/embed.go @@ -8,7 +8,7 @@ import ( "golang.org/x/sync/errgroup" - "github.com/docker/cagent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider" ) // Embedder generates vector embeddings for text diff --git a/pkg/rag/fusion/fusion.go b/pkg/rag/fusion/fusion.go index e47499a56..594980e95 100644 --- a/pkg/rag/fusion/fusion.go +++ b/pkg/rag/fusion/fusion.go @@ -4,7 +4,7 @@ import ( "cmp" "fmt" - "github.com/docker/cagent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/database" ) // Fusion defines the interface for combining results from multiple retrieval strategies diff --git a/pkg/rag/fusion/max.go b/pkg/rag/fusion/max.go index 4e34dfec2..1fd55cbe0 100644 --- a/pkg/rag/fusion/max.go +++ b/pkg/rag/fusion/max.go @@ -6,7 +6,7 @@ import ( "log/slog" "slices" - "github.com/docker/cagent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/database" ) // MaxScoreFusion combines results by taking the maximum score for each document diff --git a/pkg/rag/fusion/rrf.go b/pkg/rag/fusion/rrf.go index 9036b244a..5844eb987 100644 --- a/pkg/rag/fusion/rrf.go +++ b/pkg/rag/fusion/rrf.go @@ -6,7 +6,7 @@ import ( "log/slog" "slices" - "github.com/docker/cagent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/database" ) // ReciprocalRankFusion implements the RRF (Reciprocal Rank Fusion) algorithm diff --git a/pkg/rag/fusion/weighted.go b/pkg/rag/fusion/weighted.go index acd271555..33a0a6dbe 100644 --- a/pkg/rag/fusion/weighted.go +++ b/pkg/rag/fusion/weighted.go @@ -6,7 +6,7 @@ import ( "log/slog" "slices" - "github.com/docker/cagent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/database" ) // WeightedFusion combines results using weighted sum of strategy scores diff --git a/pkg/rag/manager.go b/pkg/rag/manager.go index bfd3883a5..6ec4f46cf 100644 --- a/pkg/rag/manager.go +++ b/pkg/rag/manager.go @@ -8,11 +8,11 @@ import ( "path/filepath" "time" - "github.com/docker/cagent/pkg/rag/database" - "github.com/docker/cagent/pkg/rag/fusion" - "github.com/docker/cagent/pkg/rag/rerank" - "github.com/docker/cagent/pkg/rag/strategy" - "github.com/docker/cagent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/fusion" + "github.com/docker/docker-agent/pkg/rag/rerank" + "github.com/docker/docker-agent/pkg/rag/strategy" + "github.com/docker/docker-agent/pkg/rag/types" ) // ToolConfig represents tool-specific configuration diff --git a/pkg/rag/prompts/rerank.go b/pkg/rag/prompts/rerank.go index 51f12d41c..f1f95b3a8 100644 --- a/pkg/rag/prompts/rerank.go +++ b/pkg/rag/prompts/rerank.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/rag/types" ) // BuildRerankDocumentsPrompt formats the user prompt with query and numbered documents. diff --git a/pkg/rag/rerank/rerank.go b/pkg/rag/rerank/rerank.go index e935b7f78..e64771544 100644 --- a/pkg/rag/rerank/rerank.go +++ b/pkg/rag/rerank/rerank.go @@ -8,9 +8,9 @@ import ( "slices" "time" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/rag/database" - "github.com/docker/cagent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/types" ) // Reranker re-scores search results using a reranking model diff --git a/pkg/rag/rerank/rerank_test.go b/pkg/rag/rerank/rerank_test.go index f31e9128b..223b135ab 100644 --- a/pkg/rag/rerank/rerank_test.go +++ b/pkg/rag/rerank/rerank_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/rag/database" - "github.com/docker/cagent/pkg/rag/types" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/tools" ) // fakeRerankingProvider implements provider.RerankingProvider for testing. diff --git a/pkg/rag/strategy/bm25.go b/pkg/rag/strategy/bm25.go index 2b1d1ef50..36e65b79f 100644 --- a/pkg/rag/strategy/bm25.go +++ b/pkg/rag/strategy/bm25.go @@ -14,12 +14,12 @@ import ( "github.com/fsnotify/fsnotify" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/fsx" - "github.com/docker/cagent/pkg/rag/chunk" - "github.com/docker/cagent/pkg/rag/database" - "github.com/docker/cagent/pkg/rag/treesitter" - "github.com/docker/cagent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/fsx" + "github.com/docker/docker-agent/pkg/rag/chunk" + "github.com/docker/docker-agent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/treesitter" + "github.com/docker/docker-agent/pkg/rag/types" ) // NewBM25FromConfig creates a BM25 strategy from configuration diff --git a/pkg/rag/strategy/bm25_database.go b/pkg/rag/strategy/bm25_database.go index 7e70f012d..24d9da1a2 100644 --- a/pkg/rag/strategy/bm25_database.go +++ b/pkg/rag/strategy/bm25_database.go @@ -9,8 +9,8 @@ import ( "os" "path/filepath" - "github.com/docker/cagent/pkg/rag/database" - "github.com/docker/cagent/pkg/sqliteutil" + "github.com/docker/docker-agent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/sqliteutil" ) // bm25DB implements the database for BM25 strategy (no vectors needed). diff --git a/pkg/rag/strategy/chunked_embeddings.go b/pkg/rag/strategy/chunked_embeddings.go index f2c53a508..e9febf001 100644 --- a/pkg/rag/strategy/chunked_embeddings.go +++ b/pkg/rag/strategy/chunked_embeddings.go @@ -5,8 +5,8 @@ import ( "context" "fmt" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/rag/types" ) // NewChunkedEmbeddingsFromConfig creates a chunked-embeddings strategy from configuration. diff --git a/pkg/rag/strategy/chunked_embeddings_database.go b/pkg/rag/strategy/chunked_embeddings_database.go index b036da88b..3a9aabdbd 100644 --- a/pkg/rag/strategy/chunked_embeddings_database.go +++ b/pkg/rag/strategy/chunked_embeddings_database.go @@ -9,8 +9,8 @@ import ( "log/slog" "slices" - "github.com/docker/cagent/pkg/rag/database" - "github.com/docker/cagent/pkg/sqliteutil" + "github.com/docker/docker-agent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/sqliteutil" ) // chunkedVectorDB implements vectorStoreDB for the chunked-embeddings strategy. diff --git a/pkg/rag/strategy/embedding.go b/pkg/rag/strategy/embedding.go index 216e05865..7fcba5d5e 100644 --- a/pkg/rag/strategy/embedding.go +++ b/pkg/rag/strategy/embedding.go @@ -5,12 +5,12 @@ import ( "fmt" "log/slog" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/rag/embed" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/rag/embed" ) // EmbeddingConfig holds configuration for creating an embedding provider. diff --git a/pkg/rag/strategy/helpers.go b/pkg/rag/strategy/helpers.go index 3a9e4a9be..ac34744a4 100644 --- a/pkg/rag/strategy/helpers.go +++ b/pkg/rag/strategy/helpers.go @@ -7,10 +7,10 @@ import ( "path/filepath" "strings" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/fsx" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/fsx" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/rag/types" ) // Helper functions for common operations diff --git a/pkg/rag/strategy/semantic_embeddings.go b/pkg/rag/strategy/semantic_embeddings.go index 7ded425fa..a43789a94 100644 --- a/pkg/rag/strategy/semantic_embeddings.go +++ b/pkg/rag/strategy/semantic_embeddings.go @@ -11,14 +11,14 @@ import ( "slices" "strings" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/js" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/rag/chunk" - "github.com/docker/cagent/pkg/rag/types" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/js" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/rag/chunk" + "github.com/docker/docker-agent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/tools" ) // NewSemanticEmbeddingsFromConfig creates a semantic-embeddings strategy from configuration. diff --git a/pkg/rag/strategy/semantic_embeddings_database.go b/pkg/rag/strategy/semantic_embeddings_database.go index ffd5e696b..7ee931e0c 100644 --- a/pkg/rag/strategy/semantic_embeddings_database.go +++ b/pkg/rag/strategy/semantic_embeddings_database.go @@ -9,8 +9,8 @@ import ( "log/slog" "slices" - "github.com/docker/cagent/pkg/rag/database" - "github.com/docker/cagent/pkg/sqliteutil" + "github.com/docker/docker-agent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/sqliteutil" ) // semanticVectorDB implements vectorStoreDB for the semantic-embeddings strategy. diff --git a/pkg/rag/strategy/strategy.go b/pkg/rag/strategy/strategy.go index b6e308b76..e7801e843 100644 --- a/pkg/rag/strategy/strategy.go +++ b/pkg/rag/strategy/strategy.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/rag/types" ) // BuildContext contains everything needed to build a strategy diff --git a/pkg/rag/strategy/types.go b/pkg/rag/strategy/types.go index 1455500f5..8617dfb27 100644 --- a/pkg/rag/strategy/types.go +++ b/pkg/rag/strategy/types.go @@ -3,7 +3,7 @@ package strategy import ( "context" - "github.com/docker/cagent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/database" ) // Strategy defines the interface for different retrieval strategies. diff --git a/pkg/rag/strategy/vector_store.go b/pkg/rag/strategy/vector_store.go index 19d6a4c94..2ded77439 100644 --- a/pkg/rag/strategy/vector_store.go +++ b/pkg/rag/strategy/vector_store.go @@ -13,13 +13,13 @@ import ( "github.com/fsnotify/fsnotify" "golang.org/x/sync/errgroup" - "github.com/docker/cagent/pkg/fsx" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/rag/chunk" - "github.com/docker/cagent/pkg/rag/database" - "github.com/docker/cagent/pkg/rag/embed" - "github.com/docker/cagent/pkg/rag/treesitter" - "github.com/docker/cagent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/fsx" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/rag/chunk" + "github.com/docker/docker-agent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/embed" + "github.com/docker/docker-agent/pkg/rag/treesitter" + "github.com/docker/docker-agent/pkg/rag/types" ) // vectorStoreDB is the internal database interface used by VectorStore. diff --git a/pkg/rag/treesitter/treesitter.go b/pkg/rag/treesitter/treesitter.go index 15b4f2dae..cb7d6d82e 100644 --- a/pkg/rag/treesitter/treesitter.go +++ b/pkg/rag/treesitter/treesitter.go @@ -13,7 +13,7 @@ import ( sitter "github.com/smacker/go-tree-sitter" "github.com/smacker/go-tree-sitter/golang" - "github.com/docker/cagent/pkg/rag/chunk" + "github.com/docker/docker-agent/pkg/rag/chunk" ) // DocumentProcessor uses tree-sitter to build syntax trees for source diff --git a/pkg/remote/pull.go b/pkg/remote/pull.go index 818a7c006..1b34bc9d3 100644 --- a/pkg/remote/pull.go +++ b/pkg/remote/pull.go @@ -7,7 +7,7 @@ import ( "github.com/google/go-containerregistry/pkg/crane" "github.com/google/go-containerregistry/pkg/name" - "github.com/docker/cagent/pkg/content" + "github.com/docker/docker-agent/pkg/content" ) // Pull pulls an artifact from a registry and stores it in the content store diff --git a/pkg/remote/pull_test.go b/pkg/remote/pull_test.go index 8bf303314..1e9103aac 100644 --- a/pkg/remote/pull_test.go +++ b/pkg/remote/pull_test.go @@ -15,7 +15,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/content" + "github.com/docker/docker-agent/pkg/content" ) func TestPullRegistryNotFound(t *testing.T) { diff --git a/pkg/remote/push.go b/pkg/remote/push.go index 7e6aff2a8..faab866c6 100644 --- a/pkg/remote/push.go +++ b/pkg/remote/push.go @@ -9,7 +9,7 @@ import ( "github.com/google/go-containerregistry/pkg/v1/mutate" "github.com/google/go-containerregistry/pkg/v1/types" - "github.com/docker/cagent/pkg/content" + "github.com/docker/docker-agent/pkg/content" ) // Push pushes an artifact from the content store to an OCI registry diff --git a/pkg/remote/push_test.go b/pkg/remote/push_test.go index 7d8aa5ba4..6b877947c 100644 --- a/pkg/remote/push_test.go +++ b/pkg/remote/push_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/content" + "github.com/docker/docker-agent/pkg/content" ) func TestPush(t *testing.T) { diff --git a/pkg/runtime/client.go b/pkg/runtime/client.go index ab2fe226e..94286eca9 100644 --- a/pkg/runtime/client.go +++ b/pkg/runtime/client.go @@ -13,10 +13,10 @@ import ( "path" "time" - "github.com/docker/cagent/pkg/api" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/api" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) // Client is an HTTP client for the docker agent server API diff --git a/pkg/runtime/commands.go b/pkg/runtime/commands.go index a4ac23b52..77e4854ac 100644 --- a/pkg/runtime/commands.go +++ b/pkg/runtime/commands.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "github.com/docker/cagent/pkg/js" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/js" + "github.com/docker/docker-agent/pkg/tools" ) // argsPlaceholderRegex matches ${args...} patterns to check if args are used. diff --git a/pkg/runtime/commands_test.go b/pkg/runtime/commands_test.go index 259ccbde2..fa6999233 100644 --- a/pkg/runtime/commands_test.go +++ b/pkg/runtime/commands_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/config/types" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/sessiontitle" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - mcptools "github.com/docker/cagent/pkg/tools/mcp" + "github.com/docker/docker-agent/pkg/config/types" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/sessiontitle" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + mcptools "github.com/docker/docker-agent/pkg/tools/mcp" ) // mockRuntime implements Runtime interface for testing diff --git a/pkg/runtime/event.go b/pkg/runtime/event.go index e91935804..5a1160bb0 100644 --- a/pkg/runtime/event.go +++ b/pkg/runtime/event.go @@ -4,10 +4,10 @@ import ( "cmp" "time" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/types" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/types" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) type Event interface { diff --git a/pkg/runtime/fallback.go b/pkg/runtime/fallback.go index 329824f38..82450e556 100644 --- a/pkg/runtime/fallback.go +++ b/pkg/runtime/fallback.go @@ -14,13 +14,13 @@ import ( "github.com/anthropics/anthropic-sdk-go" "google.golang.org/genai" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) // Fallback configuration constants diff --git a/pkg/runtime/fallback_test.go b/pkg/runtime/fallback_test.go index fba4240a7..54688f308 100644 --- a/pkg/runtime/fallback_test.go +++ b/pkg/runtime/fallback_test.go @@ -12,13 +12,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/tools" ) // mockTimeoutError implements net.Error with Timeout() = true diff --git a/pkg/runtime/model_switcher.go b/pkg/runtime/model_switcher.go index 09b004b25..aca8b3383 100644 --- a/pkg/runtime/model_switcher.go +++ b/pkg/runtime/model_switcher.go @@ -7,10 +7,10 @@ import ( "slices" "strings" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/options" ) // ModelChoice represents a model available for selection in the TUI picker. diff --git a/pkg/runtime/model_switcher_test.go b/pkg/runtime/model_switcher_test.go index 248ce5834..79ee3966e 100644 --- a/pkg/runtime/model_switcher_test.go +++ b/pkg/runtime/model_switcher_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/modelsdev" ) // mockEnvProvider is a simple environment provider for testing diff --git a/pkg/runtime/persistent_runtime.go b/pkg/runtime/persistent_runtime.go index d09c30f21..fea609fa2 100644 --- a/pkg/runtime/persistent_runtime.go +++ b/pkg/runtime/persistent_runtime.go @@ -6,9 +6,9 @@ import ( "log/slog" "strings" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" ) // PersistentRuntime wraps a LocalRuntime and persists session changes to a store diff --git a/pkg/runtime/remote_client.go b/pkg/runtime/remote_client.go index 485a8c8a0..c1398afaf 100644 --- a/pkg/runtime/remote_client.go +++ b/pkg/runtime/remote_client.go @@ -3,10 +3,10 @@ package runtime import ( "context" - "github.com/docker/cagent/pkg/api" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/api" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) // RemoteClient is the interface that both HTTP and Connect-RPC clients implement diff --git a/pkg/runtime/remote_runtime.go b/pkg/runtime/remote_runtime.go index 373214815..6794d363a 100644 --- a/pkg/runtime/remote_runtime.go +++ b/pkg/runtime/remote_runtime.go @@ -10,15 +10,15 @@ import ( "golang.org/x/oauth2" - "github.com/docker/cagent/pkg/api" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/sessiontitle" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tools/mcp" + "github.com/docker/docker-agent/pkg/api" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/sessiontitle" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tools/mcp" ) // RemoteRuntime implements the Runtime interface using a remote client. diff --git a/pkg/runtime/runtime.go b/pkg/runtime/runtime.go index ad7601701..1f0f32e17 100644 --- a/pkg/runtime/runtime.go +++ b/pkg/runtime/runtime.go @@ -20,25 +20,25 @@ import ( "go.opentelemetry.io/otel/codes" "go.opentelemetry.io/otel/trace" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/config/types" - "github.com/docker/cagent/pkg/hooks" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/permissions" - "github.com/docker/cagent/pkg/rag" - ragtypes "github.com/docker/cagent/pkg/rag/types" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/sessiontitle" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/telemetry" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - agenttool "github.com/docker/cagent/pkg/tools/builtin/agent" - mcptools "github.com/docker/cagent/pkg/tools/mcp" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/types" + "github.com/docker/docker-agent/pkg/hooks" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/permissions" + "github.com/docker/docker-agent/pkg/rag" + ragtypes "github.com/docker/docker-agent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/sessiontitle" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/telemetry" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + agenttool "github.com/docker/docker-agent/pkg/tools/builtin/agent" + mcptools "github.com/docker/docker-agent/pkg/tools/mcp" ) type ResumeType string diff --git a/pkg/runtime/runtime_response_api_test.go b/pkg/runtime/runtime_response_api_test.go index 0df7fdbd2..b32199574 100644 --- a/pkg/runtime/runtime_response_api_test.go +++ b/pkg/runtime/runtime_response_api_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/session" ) // TestResponseAPIToolCallHandling verifies that tool calls from the Response API diff --git a/pkg/runtime/runtime_test.go b/pkg/runtime/runtime_test.go index a8ae82d09..d32b3d2b1 100644 --- a/pkg/runtime/runtime_test.go +++ b/pkg/runtime/runtime_test.go @@ -14,19 +14,19 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/otel/trace" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/permissions" - "github.com/docker/cagent/pkg/rag" - "github.com/docker/cagent/pkg/rag/database" - "github.com/docker/cagent/pkg/rag/strategy" - ragtypes "github.com/docker/cagent/pkg/rag/types" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/permissions" + "github.com/docker/docker-agent/pkg/rag" + "github.com/docker/docker-agent/pkg/rag/database" + "github.com/docker/docker-agent/pkg/rag/strategy" + ragtypes "github.com/docker/docker-agent/pkg/rag/types" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/tools" ) type stubToolSet struct { diff --git a/pkg/runtime/session_compaction.go b/pkg/runtime/session_compaction.go index fab893dc6..62b3d2404 100644 --- a/pkg/runtime/session_compaction.go +++ b/pkg/runtime/session_compaction.go @@ -6,12 +6,12 @@ import ( "log/slog" "time" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/team" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/team" ) //go:embed prompts/compaction-system.txt diff --git a/pkg/sandbox/args.go b/pkg/sandbox/args.go index 875361139..8c79f47f6 100644 --- a/pkg/sandbox/args.go +++ b/pkg/sandbox/args.go @@ -6,7 +6,7 @@ import ( "path/filepath" "strings" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/userconfig" ) // Flags stripped when forwarding args to the sandbox. diff --git a/pkg/sandbox/sandbox.go b/pkg/sandbox/sandbox.go index 2ddf89454..7b67faaf7 100644 --- a/pkg/sandbox/sandbox.go +++ b/pkg/sandbox/sandbox.go @@ -14,8 +14,8 @@ import ( "strings" "time" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/environment" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/environment" ) // CheckAvailable returns a user-friendly error when Docker is not diff --git a/pkg/sandbox/sandbox_test.go b/pkg/sandbox/sandbox_test.go index 7f249f22f..413ee184e 100644 --- a/pkg/sandbox/sandbox_test.go +++ b/pkg/sandbox/sandbox_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/sandbox" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/sandbox" + "github.com/docker/docker-agent/pkg/userconfig" ) func TestCheckAvailable(t *testing.T) { diff --git a/pkg/server/image_test.go b/pkg/server/image_test.go index 5fdb75ad2..77ab2dc92 100644 --- a/pkg/server/image_test.go +++ b/pkg/server/image_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/api" - "github.com/docker/cagent/pkg/chat" + "github.com/docker/docker-agent/pkg/api" + "github.com/docker/docker-agent/pkg/chat" ) // TestAPIMessageWithImageStructure tests that the API message type can hold image attachments diff --git a/pkg/server/server.go b/pkg/server/server.go index c8a47a9f3..1107bab48 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -14,10 +14,10 @@ import ( "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" - "github.com/docker/cagent/pkg/api" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/upstream" + "github.com/docker/docker-agent/pkg/api" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/upstream" ) type Server struct { diff --git a/pkg/server/server_test.go b/pkg/server/server_test.go index 017d1a961..a6eea0801 100644 --- a/pkg/server/server_test.go +++ b/pkg/server/server_test.go @@ -15,9 +15,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/api" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/api" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/session" ) func TestServer_ListAgents(t *testing.T) { diff --git a/pkg/server/session_manager.go b/pkg/server/session_manager.go index c148b0400..b2140c2a4 100644 --- a/pkg/server/session_manager.go +++ b/pkg/server/session_manager.go @@ -11,15 +11,15 @@ import ( "sync" "time" - "github.com/docker/cagent/pkg/api" - "github.com/docker/cagent/pkg/concurrent" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/sessiontitle" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/teamloader" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/api" + "github.com/docker/docker-agent/pkg/concurrent" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/sessiontitle" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/teamloader" + "github.com/docker/docker-agent/pkg/tools" ) type activeRuntimes struct { diff --git a/pkg/server/source_loader.go b/pkg/server/source_loader.go index 20ab49ac7..197c3d650 100644 --- a/pkg/server/source_loader.go +++ b/pkg/server/source_loader.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/docker/cagent/pkg/config" + "github.com/docker/docker-agent/pkg/config" ) type sourceLoader struct { diff --git a/pkg/session/branch.go b/pkg/session/branch.go index ce332590d..cd26aea18 100644 --- a/pkg/session/branch.go +++ b/pkg/session/branch.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) // BranchSession creates a new session branched from the parent at the given position. diff --git a/pkg/session/session.go b/pkg/session/session.go index 509a43bc0..b5499ac2d 100644 --- a/pkg/session/session.go +++ b/pkg/session/session.go @@ -9,9 +9,9 @@ import ( "github.com/google/uuid" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/session/session_history_test.go b/pkg/session/session_history_test.go index a2bec576d..72b99c611 100644 --- a/pkg/session/session_history_test.go +++ b/pkg/session/session_history_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) func TestSessionNumHistoryItems(t *testing.T) { diff --git a/pkg/session/session_test.go b/pkg/session/session_test.go index 630f94597..7ec4ee481 100644 --- a/pkg/session/session_test.go +++ b/pkg/session/session_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" ) func TestTrimMessagesWithToolCalls(t *testing.T) { diff --git a/pkg/session/store.go b/pkg/session/store.go index ef8df04d0..a20ead1a0 100644 --- a/pkg/session/store.go +++ b/pkg/session/store.go @@ -13,9 +13,9 @@ import ( "strings" "time" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/concurrent" - "github.com/docker/cagent/pkg/sqliteutil" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/concurrent" + "github.com/docker/docker-agent/pkg/sqliteutil" ) var ( diff --git a/pkg/session/store_test.go b/pkg/session/store_test.go index 706d52d88..c99baf1bd 100644 --- a/pkg/session/store_test.go +++ b/pkg/session/store_test.go @@ -11,8 +11,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/chat" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/chat" ) func TestStoreAgentName(t *testing.T) { diff --git a/pkg/session/truncate_test.go b/pkg/session/truncate_test.go index 1f6a20e21..fb897169c 100644 --- a/pkg/session/truncate_test.go +++ b/pkg/session/truncate_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tools" ) func TestTruncateOldToolContent(t *testing.T) { diff --git a/pkg/sessiontitle/generator.go b/pkg/sessiontitle/generator.go index 3e9f34b0a..fc1cb3e90 100644 --- a/pkg/sessiontitle/generator.go +++ b/pkg/sessiontitle/generator.go @@ -12,9 +12,9 @@ import ( "strings" "time" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/options" ) const ( diff --git a/pkg/sessiontitle/generator_test.go b/pkg/sessiontitle/generator_test.go index dd5374135..ad64f8577 100644 --- a/pkg/sessiontitle/generator_test.go +++ b/pkg/sessiontitle/generator_test.go @@ -9,9 +9,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/model/provider/base" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/model/provider/base" + "github.com/docker/docker-agent/pkg/tools" ) type mockProvider struct { diff --git a/pkg/skills/remote.go b/pkg/skills/remote.go index 40f1a013f..c14029cd1 100644 --- a/pkg/skills/remote.go +++ b/pkg/skills/remote.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/docker/cagent/pkg/paths" + "github.com/docker/docker-agent/pkg/paths" ) // remoteIndex represents the index.json served at /.well-known/skills/index.json diff --git a/pkg/skills/skills.go b/pkg/skills/skills.go index bb6677e84..265daf9f6 100644 --- a/pkg/skills/skills.go +++ b/pkg/skills/skills.go @@ -9,7 +9,7 @@ import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/paths" + "github.com/docker/docker-agent/pkg/paths" ) const skillFile = "SKILL.md" diff --git a/pkg/team/team.go b/pkg/team/team.go index 42fee64e3..7de968c97 100644 --- a/pkg/team/team.go +++ b/pkg/team/team.go @@ -7,10 +7,10 @@ import ( "log/slog" "strings" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/config/types" - "github.com/docker/cagent/pkg/permissions" - "github.com/docker/cagent/pkg/rag" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/config/types" + "github.com/docker/docker-agent/pkg/permissions" + "github.com/docker/docker-agent/pkg/rag" ) type Team struct { diff --git a/pkg/teamloader/filter.go b/pkg/teamloader/filter.go index c52293754..fdbc717b7 100644 --- a/pkg/teamloader/filter.go +++ b/pkg/teamloader/filter.go @@ -5,7 +5,7 @@ import ( "log/slog" "slices" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // WithToolsFilter creates a toolset that only includes the specified tools. diff --git a/pkg/teamloader/filter_test.go b/pkg/teamloader/filter_test.go index 9ba421b9e..8e2727ea0 100644 --- a/pkg/teamloader/filter_test.go +++ b/pkg/teamloader/filter_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) type mockToolSet struct { diff --git a/pkg/teamloader/instructions.go b/pkg/teamloader/instructions.go index be757732b..0bb396536 100644 --- a/pkg/teamloader/instructions.go +++ b/pkg/teamloader/instructions.go @@ -3,7 +3,7 @@ package teamloader import ( "strings" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func WithInstructions(inner tools.ToolSet, instruction string) tools.ToolSet { diff --git a/pkg/teamloader/instructions_test.go b/pkg/teamloader/instructions_test.go index c86853697..5c8e04e37 100644 --- a/pkg/teamloader/instructions_test.go +++ b/pkg/teamloader/instructions_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) type toolSet struct { diff --git a/pkg/teamloader/registry.go b/pkg/teamloader/registry.go index ab6da33f7..e9c8995ed 100644 --- a/pkg/teamloader/registry.go +++ b/pkg/teamloader/registry.go @@ -7,19 +7,19 @@ import ( "path/filepath" "time" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/gateway" - "github.com/docker/cagent/pkg/js" - "github.com/docker/cagent/pkg/memory/database/sqlite" - "github.com/docker/cagent/pkg/path" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/toolinstall" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/a2a" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tools/mcp" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/gateway" + "github.com/docker/docker-agent/pkg/js" + "github.com/docker/docker-agent/pkg/memory/database/sqlite" + "github.com/docker/docker-agent/pkg/path" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/toolinstall" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/a2a" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tools/mcp" ) // ToolsetCreator is a function that creates a toolset based on the provided configuration. diff --git a/pkg/teamloader/registry_test.go b/pkg/teamloader/registry_test.go index 350f81fbe..26ea64fa6 100644 --- a/pkg/teamloader/registry_test.go +++ b/pkg/teamloader/registry_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" ) func TestCreateShellTool(t *testing.T) { diff --git a/pkg/teamloader/teamloader.go b/pkg/teamloader/teamloader.go index e11660dfc..0051c01dd 100644 --- a/pkg/teamloader/teamloader.go +++ b/pkg/teamloader/teamloader.go @@ -12,22 +12,22 @@ import ( "strings" "sync" - "github.com/docker/cagent/pkg/agent" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/js" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/model/provider/dmr" - "github.com/docker/cagent/pkg/model/provider/options" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/permissions" - "github.com/docker/cagent/pkg/rag" - "github.com/docker/cagent/pkg/skills" - "github.com/docker/cagent/pkg/team" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - agenttool "github.com/docker/cagent/pkg/tools/builtin/agent" - "github.com/docker/cagent/pkg/tools/codemode" + "github.com/docker/docker-agent/pkg/agent" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/js" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/model/provider/dmr" + "github.com/docker/docker-agent/pkg/model/provider/options" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/permissions" + "github.com/docker/docker-agent/pkg/rag" + "github.com/docker/docker-agent/pkg/skills" + "github.com/docker/docker-agent/pkg/team" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + agenttool "github.com/docker/docker-agent/pkg/tools/builtin/agent" + "github.com/docker/docker-agent/pkg/tools/codemode" ) var defaultMaxTokens int64 = 32000 diff --git a/pkg/teamloader/teamloader_test.go b/pkg/teamloader/teamloader_test.go index 736092aac..6ec0ce349 100644 --- a/pkg/teamloader/teamloader_test.go +++ b/pkg/teamloader/teamloader_test.go @@ -13,11 +13,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/model/provider/dmr" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/model/provider/dmr" + "github.com/docker/docker-agent/pkg/tools" ) // skipExamples contains example files that require cloud-specific configurations diff --git a/pkg/teamloader/toon.go b/pkg/teamloader/toon.go index ec8bb83cb..ec949cf0c 100644 --- a/pkg/teamloader/toon.go +++ b/pkg/teamloader/toon.go @@ -8,7 +8,7 @@ import ( "github.com/alpkeskin/gotoon" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) type toonTools struct { diff --git a/pkg/teamloader/toon_test.go b/pkg/teamloader/toon_test.go index b2c7d7281..52607eb73 100644 --- a/pkg/teamloader/toon_test.go +++ b/pkg/teamloader/toon_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func mockHandler(output string) tools.ToolHandler { diff --git a/pkg/telemetry/utils.go b/pkg/telemetry/utils.go index f3c4a4eb0..10ec92fa3 100644 --- a/pkg/telemetry/utils.go +++ b/pkg/telemetry/utils.go @@ -12,7 +12,7 @@ import ( "github.com/google/uuid" - "github.com/docker/cagent/pkg/paths" + "github.com/docker/docker-agent/pkg/paths" ) // getSystemInfo collects system information for events diff --git a/pkg/toolinstall/paths.go b/pkg/toolinstall/paths.go index 4f7373a50..b1030bf03 100644 --- a/pkg/toolinstall/paths.go +++ b/pkg/toolinstall/paths.go @@ -5,7 +5,7 @@ import ( "path/filepath" "strings" - "github.com/docker/cagent/pkg/paths" + "github.com/docker/docker-agent/pkg/paths" ) // ToolsDir returns the base directory for installed tools. diff --git a/pkg/tools/a2a/a2a.go b/pkg/tools/a2a/a2a.go index 0f180e5b8..e9eaf2ef3 100644 --- a/pkg/tools/a2a/a2a.go +++ b/pkg/tools/a2a/a2a.go @@ -14,9 +14,9 @@ import ( "github.com/a2aproject/a2a-go/a2aclient" "github.com/a2aproject/a2a-go/a2aclient/agentcard" - "github.com/docker/cagent/pkg/httpclient" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/upstream" + "github.com/docker/docker-agent/pkg/httpclient" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/upstream" ) // Toolset implements tools.ToolSet for A2A remote agents. diff --git a/pkg/tools/builtin/agent/agent.go b/pkg/tools/builtin/agent/agent.go index bce074f01..412addba6 100644 --- a/pkg/tools/builtin/agent/agent.go +++ b/pkg/tools/builtin/agent/agent.go @@ -12,9 +12,9 @@ import ( "github.com/google/uuid" - "github.com/docker/cagent/pkg/concurrent" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/concurrent" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/agent/agent_test.go b/pkg/tools/builtin/agent/agent_test.go index 53b089d6a..1991ac708 100644 --- a/pkg/tools/builtin/agent/agent_test.go +++ b/pkg/tools/builtin/agent/agent_test.go @@ -13,9 +13,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/concurrent" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/concurrent" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) // mockRunner implements Runner for testing. diff --git a/pkg/tools/builtin/api.go b/pkg/tools/builtin/api.go index 27be82cbb..224e1a739 100644 --- a/pkg/tools/builtin/api.go +++ b/pkg/tools/builtin/api.go @@ -11,9 +11,9 @@ import ( "net/url" "time" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/js" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/js" + "github.com/docker/docker-agent/pkg/tools" ) type APITool struct { diff --git a/pkg/tools/builtin/api_test.go b/pkg/tools/builtin/api_test.go index aca706107..ad3a05d12 100644 --- a/pkg/tools/builtin/api_test.go +++ b/pkg/tools/builtin/api_test.go @@ -11,9 +11,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/js" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/js" + "github.com/docker/docker-agent/pkg/tools" ) type testServer struct { diff --git a/pkg/tools/builtin/deferred.go b/pkg/tools/builtin/deferred.go index 2325c9b8b..9bb5b51cd 100644 --- a/pkg/tools/builtin/deferred.go +++ b/pkg/tools/builtin/deferred.go @@ -8,7 +8,7 @@ import ( "strings" "sync" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/deferred_test.go b/pkg/tools/builtin/deferred_test.go index af99096e0..7f63fd866 100644 --- a/pkg/tools/builtin/deferred_test.go +++ b/pkg/tools/builtin/deferred_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) type mockToolSet struct { diff --git a/pkg/tools/builtin/fetch.go b/pkg/tools/builtin/fetch.go index d99cb3c4b..39449bd6a 100644 --- a/pkg/tools/builtin/fetch.go +++ b/pkg/tools/builtin/fetch.go @@ -14,8 +14,8 @@ import ( "github.com/k3a/html2text" "github.com/temoto/robotstxt" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/useragent" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/useragent" ) const ( diff --git a/pkg/tools/builtin/fetch_test.go b/pkg/tools/builtin/fetch_test.go index 65200f1fb..8745cbfc0 100644 --- a/pkg/tools/builtin/fetch_test.go +++ b/pkg/tools/builtin/fetch_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestFetchToolWithOptions(t *testing.T) { diff --git a/pkg/tools/builtin/filesystem.go b/pkg/tools/builtin/filesystem.go index 5384cd909..76ac1f461 100644 --- a/pkg/tools/builtin/filesystem.go +++ b/pkg/tools/builtin/filesystem.go @@ -14,9 +14,9 @@ import ( "strings" "sync" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/fsx" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/fsx" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/handoff.go b/pkg/tools/builtin/handoff.go index 8fa8511e3..d978105be 100644 --- a/pkg/tools/builtin/handoff.go +++ b/pkg/tools/builtin/handoff.go @@ -3,7 +3,7 @@ package builtin import ( "context" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) const ToolNameHandoff = "handoff" diff --git a/pkg/tools/builtin/lsp.go b/pkg/tools/builtin/lsp.go index 3688be0b2..43380a6f5 100644 --- a/pkg/tools/builtin/lsp.go +++ b/pkg/tools/builtin/lsp.go @@ -20,7 +20,7 @@ import ( "sync/atomic" "time" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/memory.go b/pkg/tools/builtin/memory.go index 23b5d9d7c..a963dc9db 100644 --- a/pkg/tools/builtin/memory.go +++ b/pkg/tools/builtin/memory.go @@ -6,8 +6,8 @@ import ( "fmt" "time" - "github.com/docker/cagent/pkg/memory/database" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/memory/database" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/memory_test.go b/pkg/tools/builtin/memory_test.go index 07ae35ee1..73288ae01 100644 --- a/pkg/tools/builtin/memory_test.go +++ b/pkg/tools/builtin/memory_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/memory/database" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/memory/database" + "github.com/docker/docker-agent/pkg/tools" ) // Mock for memorymanager.Manager diff --git a/pkg/tools/builtin/model_picker.go b/pkg/tools/builtin/model_picker.go index 3d424b8d9..b820748cd 100644 --- a/pkg/tools/builtin/model_picker.go +++ b/pkg/tools/builtin/model_picker.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/model_picker_test.go b/pkg/tools/builtin/model_picker_test.go index 8b0e5bd94..fa7a1e728 100644 --- a/pkg/tools/builtin/model_picker_test.go +++ b/pkg/tools/builtin/model_picker_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestNewModelPickerTool(t *testing.T) { diff --git a/pkg/tools/builtin/openapi.go b/pkg/tools/builtin/openapi.go index 897660886..9aa9d9c23 100644 --- a/pkg/tools/builtin/openapi.go +++ b/pkg/tools/builtin/openapi.go @@ -14,9 +14,9 @@ import ( "github.com/getkin/kin-openapi/openapi3" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/upstream" - "github.com/docker/cagent/pkg/useragent" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/upstream" + "github.com/docker/docker-agent/pkg/useragent" ) const httpTimeout = 30 * time.Second diff --git a/pkg/tools/builtin/openapi_test.go b/pkg/tools/builtin/openapi_test.go index 315d60cec..fa5eecdce 100644 --- a/pkg/tools/builtin/openapi_test.go +++ b/pkg/tools/builtin/openapi_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) const petStoreSpec = `{ diff --git a/pkg/tools/builtin/rag.go b/pkg/tools/builtin/rag.go index 4a2d49957..cb68fb800 100644 --- a/pkg/tools/builtin/rag.go +++ b/pkg/tools/builtin/rag.go @@ -8,8 +8,8 @@ import ( "log/slog" "slices" - "github.com/docker/cagent/pkg/rag" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/rag" + "github.com/docker/docker-agent/pkg/tools" ) // RAGTool provides document querying capabilities for a single RAG source diff --git a/pkg/tools/builtin/script_shell.go b/pkg/tools/builtin/script_shell.go index c73051734..31231268b 100644 --- a/pkg/tools/builtin/script_shell.go +++ b/pkg/tools/builtin/script_shell.go @@ -11,8 +11,8 @@ import ( "slices" "strings" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/tools" ) type ScriptShellTool struct { diff --git a/pkg/tools/builtin/script_shell_test.go b/pkg/tools/builtin/script_shell_test.go index 35508a2a6..7388b1ea9 100644 --- a/pkg/tools/builtin/script_shell_test.go +++ b/pkg/tools/builtin/script_shell_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) func TestNewScriptShellTool_Empty(t *testing.T) { diff --git a/pkg/tools/builtin/shell.go b/pkg/tools/builtin/shell.go index 08e4fc116..406386fa7 100644 --- a/pkg/tools/builtin/shell.go +++ b/pkg/tools/builtin/shell.go @@ -16,9 +16,9 @@ import ( "sync/atomic" "time" - "github.com/docker/cagent/pkg/concurrent" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/concurrent" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/shell_test.go b/pkg/tools/builtin/shell_test.go index 69bc2fc15..51485e354 100644 --- a/pkg/tools/builtin/shell_test.go +++ b/pkg/tools/builtin/shell_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/config" + "github.com/docker/docker-agent/pkg/tools" ) func TestNewShellTool(t *testing.T) { diff --git a/pkg/tools/builtin/skills.go b/pkg/tools/builtin/skills.go index ba8e6d344..635df747b 100644 --- a/pkg/tools/builtin/skills.go +++ b/pkg/tools/builtin/skills.go @@ -7,8 +7,8 @@ import ( "path/filepath" "strings" - "github.com/docker/cagent/pkg/skills" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/skills" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/skills_test.go b/pkg/tools/builtin/skills_test.go index e5294b5dd..ae8b4ab5a 100644 --- a/pkg/tools/builtin/skills_test.go +++ b/pkg/tools/builtin/skills_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/skills" + "github.com/docker/docker-agent/pkg/skills" ) func TestSkillsToolset_ReadSkillContent_Local(t *testing.T) { diff --git a/pkg/tools/builtin/tasks.go b/pkg/tools/builtin/tasks.go index 4b674a872..a287dc49c 100644 --- a/pkg/tools/builtin/tasks.go +++ b/pkg/tools/builtin/tasks.go @@ -14,8 +14,8 @@ import ( "github.com/google/uuid" - "github.com/docker/cagent/pkg/path" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/path" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/tasks_test.go b/pkg/tools/builtin/tasks_test.go index e896f248b..725df55fa 100644 --- a/pkg/tools/builtin/tasks_test.go +++ b/pkg/tools/builtin/tasks_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func newTestTasksTool(t *testing.T) *TasksTool { diff --git a/pkg/tools/builtin/think.go b/pkg/tools/builtin/think.go index 4eda4ed3f..78e38dd0a 100644 --- a/pkg/tools/builtin/think.go +++ b/pkg/tools/builtin/think.go @@ -4,7 +4,7 @@ import ( "context" "strings" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) const ToolNameThink = "think" diff --git a/pkg/tools/builtin/think_test.go b/pkg/tools/builtin/think_test.go index 38d7a603f..668ca8b61 100644 --- a/pkg/tools/builtin/think_test.go +++ b/pkg/tools/builtin/think_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestThinkTool_Handler(t *testing.T) { diff --git a/pkg/tools/builtin/todo.go b/pkg/tools/builtin/todo.go index 7a0ad548e..380435d7f 100644 --- a/pkg/tools/builtin/todo.go +++ b/pkg/tools/builtin/todo.go @@ -7,8 +7,8 @@ import ( "sync" "sync/atomic" - "github.com/docker/cagent/pkg/concurrent" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/concurrent" + "github.com/docker/docker-agent/pkg/tools" ) const ( diff --git a/pkg/tools/builtin/todo_test.go b/pkg/tools/builtin/todo_test.go index 98d195ac6..6f2c55c38 100644 --- a/pkg/tools/builtin/todo_test.go +++ b/pkg/tools/builtin/todo_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestTodoTool_DisplayNames(t *testing.T) { diff --git a/pkg/tools/builtin/transfertask.go b/pkg/tools/builtin/transfertask.go index 98942a265..b13d5207b 100644 --- a/pkg/tools/builtin/transfertask.go +++ b/pkg/tools/builtin/transfertask.go @@ -3,7 +3,7 @@ package builtin import ( "context" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) const ToolNameTransferTask = "transfer_task" diff --git a/pkg/tools/builtin/transfertask_test.go b/pkg/tools/builtin/transfertask_test.go index d3ad6e2bc..c43d49203 100644 --- a/pkg/tools/builtin/transfertask_test.go +++ b/pkg/tools/builtin/transfertask_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestNewTaskTool(t *testing.T) { diff --git a/pkg/tools/builtin/user_prompt.go b/pkg/tools/builtin/user_prompt.go index 0db3426c8..f7590f3b6 100644 --- a/pkg/tools/builtin/user_prompt.go +++ b/pkg/tools/builtin/user_prompt.go @@ -7,7 +7,7 @@ import ( "github.com/modelcontextprotocol/go-sdk/mcp" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) const ToolNameUserPrompt = "user_prompt" diff --git a/pkg/tools/builtin/user_prompt_test.go b/pkg/tools/builtin/user_prompt_test.go index 59e9035f7..9f00452a3 100644 --- a/pkg/tools/builtin/user_prompt_test.go +++ b/pkg/tools/builtin/user_prompt_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestUserPromptTool_AcceptResponse(t *testing.T) { diff --git a/pkg/tools/codemode/codemode.go b/pkg/tools/codemode/codemode.go index 940ca464e..61dd39e02 100644 --- a/pkg/tools/codemode/codemode.go +++ b/pkg/tools/codemode/codemode.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) const prompt = `Run a Javascript script to call MCP tools. diff --git a/pkg/tools/codemode/codemode_test.go b/pkg/tools/codemode/codemode_test.go index 43a9c61e9..fc7f8bef1 100644 --- a/pkg/tools/codemode/codemode_test.go +++ b/pkg/tools/codemode/codemode_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestCodeModeTool_Tools(t *testing.T) { diff --git a/pkg/tools/codemode/exec.go b/pkg/tools/codemode/exec.go index 62ebe3cbe..72cee7ca7 100644 --- a/pkg/tools/codemode/exec.go +++ b/pkg/tools/codemode/exec.go @@ -9,7 +9,7 @@ import ( "github.com/dop251/goja" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) type ScriptResult struct { diff --git a/pkg/tools/codemode/functions.go b/pkg/tools/codemode/functions.go index 2e618cc42..95d92fefa 100644 --- a/pkg/tools/codemode/functions.go +++ b/pkg/tools/codemode/functions.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func toolToJsDoc(tool tools.Tool) string { diff --git a/pkg/tools/codemode/functions_test.go b/pkg/tools/codemode/functions_test.go index ff615d587..7c30cca0a 100644 --- a/pkg/tools/codemode/functions_test.go +++ b/pkg/tools/codemode/functions_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) func TestToolToJsDoc(t *testing.T) { diff --git a/pkg/tools/mcp/gateway.go b/pkg/tools/mcp/gateway.go index 8eeb0aff3..d3912a05e 100644 --- a/pkg/tools/mcp/gateway.go +++ b/pkg/tools/mcp/gateway.go @@ -10,9 +10,9 @@ import ( "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/environment" - "github.com/docker/cagent/pkg/gateway" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/environment" + "github.com/docker/docker-agent/pkg/gateway" + "github.com/docker/docker-agent/pkg/tools" ) type GatewayToolset struct { diff --git a/pkg/tools/mcp/mcp.go b/pkg/tools/mcp/mcp.go index 95cdb4256..d2a989d4e 100644 --- a/pkg/tools/mcp/mcp.go +++ b/pkg/tools/mcp/mcp.go @@ -17,7 +17,7 @@ import ( "github.com/modelcontextprotocol/go-sdk/mcp" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) type mcpClient interface { diff --git a/pkg/tools/mcp/mcp_test.go b/pkg/tools/mcp/mcp_test.go index d54573d21..d75164950 100644 --- a/pkg/tools/mcp/mcp_test.go +++ b/pkg/tools/mcp/mcp_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // mockMCPClient is a test double for the mcpClient interface. diff --git a/pkg/tools/mcp/oauth.go b/pkg/tools/mcp/oauth.go index 5502a77ef..fe7d129f1 100644 --- a/pkg/tools/mcp/oauth.go +++ b/pkg/tools/mcp/oauth.go @@ -16,7 +16,7 @@ import ( mcpsdk "github.com/modelcontextprotocol/go-sdk/mcp" "golang.org/x/oauth2" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // resourceMetadataFromWWWAuth extracts resource metadata URL from WWW-Authenticate header diff --git a/pkg/tools/mcp/oauth_helpers.go b/pkg/tools/mcp/oauth_helpers.go index b6c29fd9e..b0011de39 100644 --- a/pkg/tools/mcp/oauth_helpers.go +++ b/pkg/tools/mcp/oauth_helpers.go @@ -14,7 +14,7 @@ import ( "golang.org/x/oauth2" - "github.com/docker/cagent/pkg/browser" + "github.com/docker/docker-agent/pkg/browser" ) // GenerateState generates a random state parameter for OAuth CSRF protection diff --git a/pkg/tools/mcp/remote.go b/pkg/tools/mcp/remote.go index 69dac0d9c..9683ae90c 100644 --- a/pkg/tools/mcp/remote.go +++ b/pkg/tools/mcp/remote.go @@ -8,7 +8,7 @@ import ( gomcp "github.com/modelcontextprotocol/go-sdk/mcp" - "github.com/docker/cagent/pkg/upstream" + "github.com/docker/docker-agent/pkg/upstream" ) type remoteMCPClient struct { diff --git a/pkg/tools/mcp/session_client.go b/pkg/tools/mcp/session_client.go index b8c892ead..2021d6f79 100644 --- a/pkg/tools/mcp/session_client.go +++ b/pkg/tools/mcp/session_client.go @@ -9,7 +9,7 @@ import ( gomcp "github.com/modelcontextprotocol/go-sdk/mcp" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // sessionClient provides shared session-management logic for MCP client diff --git a/pkg/tools/mcp/stdio.go b/pkg/tools/mcp/stdio.go index 1f9d7f4e4..39b2c35a9 100644 --- a/pkg/tools/mcp/stdio.go +++ b/pkg/tools/mcp/stdio.go @@ -8,7 +8,7 @@ import ( gomcp "github.com/modelcontextprotocol/go-sdk/mcp" - "github.com/docker/cagent/pkg/desktop" + "github.com/docker/docker-agent/pkg/desktop" ) type stdioMCPClient struct { diff --git a/pkg/tools/mcp/tokenstore.go b/pkg/tools/mcp/tokenstore.go index ca530b11a..340d73cd8 100644 --- a/pkg/tools/mcp/tokenstore.go +++ b/pkg/tools/mcp/tokenstore.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/docker/cagent/pkg/concurrent" + "github.com/docker/docker-agent/pkg/concurrent" ) // OAuthTokenStore manages OAuth tokens diff --git a/pkg/tools/startable_test.go b/pkg/tools/startable_test.go index 9257a20f2..565f44e24 100644 --- a/pkg/tools/startable_test.go +++ b/pkg/tools/startable_test.go @@ -7,7 +7,7 @@ import ( "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // stubDescriber implements ToolSet and Describer. diff --git a/pkg/tui/commands/commands.go b/pkg/tui/commands/commands.go index 9a9757ee4..f3eeed72f 100644 --- a/pkg/tui/commands/commands.go +++ b/pkg/tui/commands/commands.go @@ -8,12 +8,12 @@ import ( tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/feedback" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/feedback" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/messages" ) // ExecuteFunc is a function that executes a command with an optional argument. diff --git a/pkg/tui/commands/commands_test.go b/pkg/tui/commands/commands_test.go index eb4b4ccb8..945b1367b 100644 --- a/pkg/tui/commands/commands_test.go +++ b/pkg/tui/commands/commands_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/messages" ) func TestParseSlashCommand_Title(t *testing.T) { diff --git a/pkg/tui/commands/speak_darwin.go b/pkg/tui/commands/speak_darwin.go index 8ec57ed84..20befc3ff 100644 --- a/pkg/tui/commands/speak_darwin.go +++ b/pkg/tui/commands/speak_darwin.go @@ -5,8 +5,8 @@ package commands import ( tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/messages" ) func speakCommand() *Item { diff --git a/pkg/tui/components/completion/completion.go b/pkg/tui/components/completion/completion.go index f67756d5f..6573bae19 100644 --- a/pkg/tui/components/completion/completion.go +++ b/pkg/tui/components/completion/completion.go @@ -11,9 +11,9 @@ import ( "github.com/junegunn/fzf/src/algo" "github.com/junegunn/fzf/src/util" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) const maxItems = 10 diff --git a/pkg/tui/components/editor/banner.go b/pkg/tui/components/editor/banner.go index 7599cdc83..5c8fd2bb7 100644 --- a/pkg/tui/components/editor/banner.go +++ b/pkg/tui/components/editor/banner.go @@ -6,7 +6,7 @@ import ( "charm.land/lipgloss/v2" "github.com/mattn/go-runewidth" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/styles" ) const ( diff --git a/pkg/tui/components/editor/completion_backspace_test.go b/pkg/tui/components/editor/completion_backspace_test.go index 5412b4522..279c313cc 100644 --- a/pkg/tui/components/editor/completion_backspace_test.go +++ b/pkg/tui/components/editor/completion_backspace_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tui/components/completion" - "github.com/docker/cagent/pkg/tui/components/editor/completions" + "github.com/docker/docker-agent/pkg/tui/components/completion" + "github.com/docker/docker-agent/pkg/tui/components/editor/completions" ) // mockCompletion implements completions.Completion for testing diff --git a/pkg/tui/components/editor/completions/command.go b/pkg/tui/components/editor/completions/command.go index 89b8cd02a..8a5505d0f 100644 --- a/pkg/tui/components/editor/completions/command.go +++ b/pkg/tui/components/editor/completions/command.go @@ -3,9 +3,9 @@ package completions import ( "context" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/tui/commands" - "github.com/docker/cagent/pkg/tui/components/completion" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/tui/commands" + "github.com/docker/docker-agent/pkg/tui/components/completion" ) type commandCompletion struct { diff --git a/pkg/tui/components/editor/completions/completion.go b/pkg/tui/components/editor/completions/completion.go index 110db6763..e07e2e522 100644 --- a/pkg/tui/components/editor/completions/completion.go +++ b/pkg/tui/components/editor/completions/completion.go @@ -3,8 +3,8 @@ package completions import ( "context" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/tui/components/completion" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/tui/components/completion" ) type Completion interface { diff --git a/pkg/tui/components/editor/completions/file.go b/pkg/tui/components/editor/completions/file.go index 32dc19694..1cee8abef 100644 --- a/pkg/tui/components/editor/completions/file.go +++ b/pkg/tui/components/editor/completions/file.go @@ -5,8 +5,8 @@ import ( "sort" "sync" - "github.com/docker/cagent/pkg/fsx" - "github.com/docker/cagent/pkg/tui/components/completion" + "github.com/docker/docker-agent/pkg/fsx" + "github.com/docker/docker-agent/pkg/tui/components/completion" ) // Initial loading limits for snappy UX diff --git a/pkg/tui/components/editor/editor.go b/pkg/tui/components/editor/editor.go index 29fd64fc3..c25a6382a 100644 --- a/pkg/tui/components/editor/editor.go +++ b/pkg/tui/components/editor/editor.go @@ -20,15 +20,15 @@ import ( "github.com/mattn/go-runewidth" "github.com/rivo/uniseg" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/history" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/tui/components/completion" - "github.com/docker/cagent/pkg/tui/components/editor/completions" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/history" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/tui/components/completion" + "github.com/docker/docker-agent/pkg/tui/components/editor/completions" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) // ansiRegexp matches ANSI escape sequences so they can be removed when diff --git a/pkg/tui/components/editor/historysearch_test.go b/pkg/tui/components/editor/historysearch_test.go index 0fda5bfed..edea318ae 100644 --- a/pkg/tui/components/editor/historysearch_test.go +++ b/pkg/tui/components/editor/historysearch_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/history" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/history" ) func enterSearch(t *testing.T, e *editor) *editor { diff --git a/pkg/tui/components/editor/suggestion_test.go b/pkg/tui/components/editor/suggestion_test.go index 31a7b1f1f..47044bb7c 100644 --- a/pkg/tui/components/editor/suggestion_test.go +++ b/pkg/tui/components/editor/suggestion_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/history" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/history" ) func TestApplySuggestionOverlay(t *testing.T) { diff --git a/pkg/tui/components/markdown/fast_renderer.go b/pkg/tui/components/markdown/fast_renderer.go index 7ed28fbe1..118f01581 100644 --- a/pkg/tui/components/markdown/fast_renderer.go +++ b/pkg/tui/components/markdown/fast_renderer.go @@ -16,7 +16,7 @@ import ( "github.com/charmbracelet/glamour/v2/ansi" runewidth "github.com/mattn/go-runewidth" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/styles" ) // ansiStyle holds pre-computed ANSI escape sequences for fast rendering. diff --git a/pkg/tui/components/markdown/renderer.go b/pkg/tui/components/markdown/renderer.go index 39e799eb6..4dfd76b44 100644 --- a/pkg/tui/components/markdown/renderer.go +++ b/pkg/tui/components/markdown/renderer.go @@ -3,7 +3,7 @@ package markdown import ( "github.com/charmbracelet/glamour/v2" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/styles" ) // Renderer is an interface for markdown renderers. diff --git a/pkg/tui/components/message/message.go b/pkg/tui/components/message/message.go index 2ec5e52c5..b4fe5ea06 100644 --- a/pkg/tui/components/message/message.go +++ b/pkg/tui/components/message/message.go @@ -8,11 +8,11 @@ import ( tea "charm.land/bubbletea/v2" "github.com/charmbracelet/x/ansi" - "github.com/docker/cagent/pkg/tui/components/markdown" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tui/components/markdown" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) // Model represents a view that can render a message diff --git a/pkg/tui/components/message/message_test.go b/pkg/tui/components/message/message_test.go index c27915a68..8dd6d3aa0 100644 --- a/pkg/tui/components/message/message_test.go +++ b/pkg/tui/components/message/message_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tui/types" ) func TestErrorMessageWrapping(t *testing.T) { diff --git a/pkg/tui/components/messages/clipboard.go b/pkg/tui/components/messages/clipboard.go index aca650f6c..58c0b1d7a 100644 --- a/pkg/tui/components/messages/clipboard.go +++ b/pkg/tui/components/messages/clipboard.go @@ -9,7 +9,7 @@ import ( "github.com/charmbracelet/x/ansi" "github.com/mattn/go-runewidth" - "github.com/docker/cagent/pkg/tui/components/notification" + "github.com/docker/docker-agent/pkg/tui/components/notification" ) // boxDrawingChars contains Unicode box-drawing characters used by lipgloss borders. diff --git a/pkg/tui/components/messages/messages.go b/pkg/tui/components/messages/messages.go index cc040ceec..57d033c13 100644 --- a/pkg/tui/components/messages/messages.go +++ b/pkg/tui/components/messages/messages.go @@ -14,23 +14,23 @@ import ( "charm.land/lipgloss/v2" "github.com/charmbracelet/x/ansi" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/animation" - "github.com/docker/cagent/pkg/tui/components/message" - "github.com/docker/cagent/pkg/tui/components/reasoningblock" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/components/tool" - "github.com/docker/cagent/pkg/tui/components/tool/editfile" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/animation" + "github.com/docker/docker-agent/pkg/tui/components/message" + "github.com/docker/docker-agent/pkg/tui/components/reasoningblock" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/components/tool" + "github.com/docker/docker-agent/pkg/tui/components/tool/editfile" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) // ToggleHideToolResultsMsg triggers hiding/showing tool results diff --git a/pkg/tui/components/messages/messages_test.go b/pkg/tui/components/messages/messages_test.go index b7193e07b..e28b01e69 100644 --- a/pkg/tui/components/messages/messages_test.go +++ b/pkg/tui/components/messages/messages_test.go @@ -11,15 +11,15 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/animation" - "github.com/docker/cagent/pkg/tui/components/reasoningblock" - "github.com/docker/cagent/pkg/tui/core/layout" - tuimessages "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/animation" + "github.com/docker/docker-agent/pkg/tui/components/reasoningblock" + "github.com/docker/docker-agent/pkg/tui/core/layout" + tuimessages "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) func TestViewDoesNotWrapWideLines(t *testing.T) { diff --git a/pkg/tui/components/messages/selection.go b/pkg/tui/components/messages/selection.go index 76638fecd..e053dfd2c 100644 --- a/pkg/tui/components/messages/selection.go +++ b/pkg/tui/components/messages/selection.go @@ -8,7 +8,7 @@ import ( "github.com/charmbracelet/x/ansi" "github.com/mattn/go-runewidth" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/styles" ) // selectionState encapsulates all state related to text selection diff --git a/pkg/tui/components/notification/notification.go b/pkg/tui/components/notification/notification.go index e24b91a7e..c980a89ff 100644 --- a/pkg/tui/components/notification/notification.go +++ b/pkg/tui/components/notification/notification.go @@ -8,8 +8,8 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/styles" ) const ( diff --git a/pkg/tui/components/reasoningblock/reasoningblock.go b/pkg/tui/components/reasoningblock/reasoningblock.go index 13cf614f7..c53a50cfc 100644 --- a/pkg/tui/components/reasoningblock/reasoningblock.go +++ b/pkg/tui/components/reasoningblock/reasoningblock.go @@ -12,15 +12,15 @@ import ( "charm.land/lipgloss/v2" "github.com/charmbracelet/x/ansi" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/animation" - "github.com/docker/cagent/pkg/tui/components/markdown" - "github.com/docker/cagent/pkg/tui/components/tool" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/animation" + "github.com/docker/docker-agent/pkg/tui/components/markdown" + "github.com/docker/docker-agent/pkg/tui/components/tool" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) const ( diff --git a/pkg/tui/components/reasoningblock/reasoningblock_test.go b/pkg/tui/components/reasoningblock/reasoningblock_test.go index f9bb05396..03da2261b 100644 --- a/pkg/tui/components/reasoningblock/reasoningblock_test.go +++ b/pkg/tui/components/reasoningblock/reasoningblock_test.go @@ -9,10 +9,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/animation" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/animation" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) func TestReasoningBlockCollapsed(t *testing.T) { diff --git a/pkg/tui/components/scrollbar/scrollbar.go b/pkg/tui/components/scrollbar/scrollbar.go index c9b651003..8ab9e0e3f 100644 --- a/pkg/tui/components/scrollbar/scrollbar.go +++ b/pkg/tui/components/scrollbar/scrollbar.go @@ -6,7 +6,7 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/styles" ) // Width is the intrinsic width of the scrollbar component in terminal columns. diff --git a/pkg/tui/components/scrollview/scrollview.go b/pkg/tui/components/scrollview/scrollview.go index 051340f23..b07e19361 100644 --- a/pkg/tui/components/scrollview/scrollview.go +++ b/pkg/tui/components/scrollview/scrollview.go @@ -14,8 +14,8 @@ import ( "charm.land/lipgloss/v2" "github.com/charmbracelet/x/ansi" - "github.com/docker/cagent/pkg/tui/components/scrollbar" - "github.com/docker/cagent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/components/scrollbar" + "github.com/docker/docker-agent/pkg/tui/messages" ) // ScrollKeyMap defines which keys trigger scroll actions. diff --git a/pkg/tui/components/sidebar/agent_info_test.go b/pkg/tui/components/sidebar/agent_info_test.go index 9ed57935c..072e4eba5 100644 --- a/pkg/tui/components/sidebar/agent_info_test.go +++ b/pkg/tui/components/sidebar/agent_info_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tui/service" ) func TestSetAgentInfo_UpdatesProviderAndModel(t *testing.T) { diff --git a/pkg/tui/components/sidebar/collapsed_view.go b/pkg/tui/components/sidebar/collapsed_view.go index 27ae3cff9..7c14a2836 100644 --- a/pkg/tui/components/sidebar/collapsed_view.go +++ b/pkg/tui/components/sidebar/collapsed_view.go @@ -6,7 +6,7 @@ import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/styles" ) // CollapsedViewModel holds the computed layout decisions for collapsed mode. diff --git a/pkg/tui/components/sidebar/context_percent_test.go b/pkg/tui/components/sidebar/context_percent_test.go index 09cba0379..502733830 100644 --- a/pkg/tui/components/sidebar/context_percent_test.go +++ b/pkg/tui/components/sidebar/context_percent_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tui/service" ) func TestContextPercent_SingleSession(t *testing.T) { diff --git a/pkg/tui/components/sidebar/layout.go b/pkg/tui/components/sidebar/layout.go index da2d0cd3d..e807fb9a0 100644 --- a/pkg/tui/components/sidebar/layout.go +++ b/pkg/tui/components/sidebar/layout.go @@ -1,6 +1,6 @@ package sidebar -import "github.com/docker/cagent/pkg/tui/components/scrollbar" +import "github.com/docker/docker-agent/pkg/tui/components/scrollbar" // Layout constants for sidebar elements. const ( diff --git a/pkg/tui/components/sidebar/layout_test.go b/pkg/tui/components/sidebar/layout_test.go index ffd0aa710..b95b50ad0 100644 --- a/pkg/tui/components/sidebar/layout_test.go +++ b/pkg/tui/components/sidebar/layout_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/tui/components/scrollbar" - "github.com/docker/cagent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/tui/components/scrollbar" + "github.com/docker/docker-agent/pkg/tui/service" ) func TestDefaultLayoutConfig(t *testing.T) { diff --git a/pkg/tui/components/sidebar/queue_test.go b/pkg/tui/components/sidebar/queue_test.go index 701128b5b..c4899020b 100644 --- a/pkg/tui/components/sidebar/queue_test.go +++ b/pkg/tui/components/sidebar/queue_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/service" ) func TestQueueSection_SingleMessage(t *testing.T) { diff --git a/pkg/tui/components/sidebar/sidebar.go b/pkg/tui/components/sidebar/sidebar.go index 889bf0e77..ba7198112 100644 --- a/pkg/tui/components/sidebar/sidebar.go +++ b/pkg/tui/components/sidebar/sidebar.go @@ -14,21 +14,21 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/components/scrollbar" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/components/tab" - "github.com/docker/cagent/pkg/tui/components/tool/todotool" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/components/scrollbar" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/components/tab" + "github.com/docker/docker-agent/pkg/tui/components/tool/todotool" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" ) type Mode int diff --git a/pkg/tui/components/sidebar/title_edit_test.go b/pkg/tui/components/sidebar/title_edit_test.go index 2c95ec22f..010b323ef 100644 --- a/pkg/tui/components/sidebar/title_edit_test.go +++ b/pkg/tui/components/sidebar/title_edit_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tui/service" ) func TestSidebar_TitleEditStateTransitions(t *testing.T) { diff --git a/pkg/tui/components/sidebar/token_usage_test.go b/pkg/tui/components/sidebar/token_usage_test.go index 37606516d..0134994c0 100644 --- a/pkg/tui/components/sidebar/token_usage_test.go +++ b/pkg/tui/components/sidebar/token_usage_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tui/service" ) func TestCurrentSessionTokens_SingleSession(t *testing.T) { diff --git a/pkg/tui/components/spinner/spinner.go b/pkg/tui/components/spinner/spinner.go index 7a75889ee..5a3c79cee 100644 --- a/pkg/tui/components/spinner/spinner.go +++ b/pkg/tui/components/spinner/spinner.go @@ -7,9 +7,9 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/animation" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/animation" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) type Mode int diff --git a/pkg/tui/components/spinner/spinner_test.go b/pkg/tui/components/spinner/spinner_test.go index 59977b4c0..e84c90248 100644 --- a/pkg/tui/components/spinner/spinner_test.go +++ b/pkg/tui/components/spinner/spinner_test.go @@ -6,7 +6,7 @@ import ( "charm.land/lipgloss/v2" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tui/animation" + "github.com/docker/docker-agent/pkg/tui/animation" ) func TestSpinnerCopyDoesNotLeakAnimationSubscription(t *testing.T) { diff --git a/pkg/tui/components/statusbar/statusbar.go b/pkg/tui/components/statusbar/statusbar.go index bc57fe732..e7c4deba8 100644 --- a/pkg/tui/components/statusbar/statusbar.go +++ b/pkg/tui/components/statusbar/statusbar.go @@ -6,9 +6,9 @@ import ( "charm.land/lipgloss/v2" "github.com/charmbracelet/x/ansi" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/version" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/version" ) // StatusBar displays key-binding help on the left and version info on the right. diff --git a/pkg/tui/components/tab/tab.go b/pkg/tui/components/tab/tab.go index 04e500ba8..580f412f8 100644 --- a/pkg/tui/components/tab/tab.go +++ b/pkg/tui/components/tab/tab.go @@ -3,7 +3,7 @@ package tab import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/styles" ) func Render(title, content string, width int) string { diff --git a/pkg/tui/components/tabbar/tab.go b/pkg/tui/components/tabbar/tab.go index 2c5fe2b07..679b88b1f 100644 --- a/pkg/tui/components/tabbar/tab.go +++ b/pkg/tui/components/tabbar/tab.go @@ -5,8 +5,8 @@ import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) const ( diff --git a/pkg/tui/components/tabbar/tabbar.go b/pkg/tui/components/tabbar/tabbar.go index 4f5fb09f5..ee3c743ed 100644 --- a/pkg/tui/components/tabbar/tabbar.go +++ b/pkg/tui/components/tabbar/tabbar.go @@ -6,9 +6,9 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) const ( diff --git a/pkg/tui/components/tool/api/apitool.go b/pkg/tui/components/tool/api/apitool.go index b18931ac0..1fa932788 100644 --- a/pkg/tui/components/tool/api/apitool.go +++ b/pkg/tui/components/tool/api/apitool.go @@ -6,12 +6,12 @@ import ( "github.com/docker/go-units" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/tool/defaulttool/defaulttool.go b/pkg/tui/components/tool/defaulttool/defaulttool.go index 3ed4ad80c..f74b20aed 100644 --- a/pkg/tui/components/tool/defaulttool/defaulttool.go +++ b/pkg/tui/components/tool/defaulttool/defaulttool.go @@ -1,11 +1,11 @@ package defaulttool import ( - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) // New creates a new default tool component. diff --git a/pkg/tui/components/tool/defaulttool/render.go b/pkg/tui/components/tool/defaulttool/render.go index 353e511dc..31fc20f2e 100644 --- a/pkg/tui/components/tool/defaulttool/render.go +++ b/pkg/tui/components/tool/defaulttool/render.go @@ -7,8 +7,8 @@ import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/styles" ) type kv struct { diff --git a/pkg/tui/components/tool/directorytree/directorytree.go b/pkg/tui/components/tool/directorytree/directorytree.go index 08e3569e3..255e4e250 100644 --- a/pkg/tui/components/tool/directorytree/directorytree.go +++ b/pkg/tui/components/tool/directorytree/directorytree.go @@ -4,11 +4,11 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/tool/editfile/editfile.go b/pkg/tui/components/tool/editfile/editfile.go index 1a821a2e5..1b289fbfa 100644 --- a/pkg/tui/components/tool/editfile/editfile.go +++ b/pkg/tui/components/tool/editfile/editfile.go @@ -4,13 +4,13 @@ import ( "encoding/json" "fmt" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) type ToggleDiffViewMsg struct{} diff --git a/pkg/tui/components/tool/editfile/render.go b/pkg/tui/components/tool/editfile/render.go index 4b1c4e299..d74f6689e 100644 --- a/pkg/tui/components/tool/editfile/render.go +++ b/pkg/tui/components/tool/editfile/render.go @@ -15,10 +15,10 @@ import ( "github.com/aymanbagabas/go-udiff" "github.com/mattn/go-runewidth" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) const ( diff --git a/pkg/tui/components/tool/factory.go b/pkg/tui/components/tool/factory.go index 0d71e8080..542444bea 100644 --- a/pkg/tui/components/tool/factory.go +++ b/pkg/tui/components/tool/factory.go @@ -1,23 +1,23 @@ package tool import ( - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/tool/api" - "github.com/docker/cagent/pkg/tui/components/tool/defaulttool" - "github.com/docker/cagent/pkg/tui/components/tool/directorytree" - "github.com/docker/cagent/pkg/tui/components/tool/editfile" - "github.com/docker/cagent/pkg/tui/components/tool/handoff" - "github.com/docker/cagent/pkg/tui/components/tool/listdirectory" - "github.com/docker/cagent/pkg/tui/components/tool/readfile" - "github.com/docker/cagent/pkg/tui/components/tool/readmultiplefiles" - "github.com/docker/cagent/pkg/tui/components/tool/searchfilescontent" - "github.com/docker/cagent/pkg/tui/components/tool/shell" - "github.com/docker/cagent/pkg/tui/components/tool/todotool" - "github.com/docker/cagent/pkg/tui/components/tool/transfertask" - "github.com/docker/cagent/pkg/tui/components/tool/writefile" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/tool/api" + "github.com/docker/docker-agent/pkg/tui/components/tool/defaulttool" + "github.com/docker/docker-agent/pkg/tui/components/tool/directorytree" + "github.com/docker/docker-agent/pkg/tui/components/tool/editfile" + "github.com/docker/docker-agent/pkg/tui/components/tool/handoff" + "github.com/docker/docker-agent/pkg/tui/components/tool/listdirectory" + "github.com/docker/docker-agent/pkg/tui/components/tool/readfile" + "github.com/docker/docker-agent/pkg/tui/components/tool/readmultiplefiles" + "github.com/docker/docker-agent/pkg/tui/components/tool/searchfilescontent" + "github.com/docker/docker-agent/pkg/tui/components/tool/shell" + "github.com/docker/docker-agent/pkg/tui/components/tool/todotool" + "github.com/docker/docker-agent/pkg/tui/components/tool/transfertask" + "github.com/docker/docker-agent/pkg/tui/components/tool/writefile" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) // Factory creates tool components using the registry. diff --git a/pkg/tui/components/tool/handoff/handoff.go b/pkg/tui/components/tool/handoff/handoff.go index 63f39b496..c7306b74f 100644 --- a/pkg/tui/components/tool/handoff/handoff.go +++ b/pkg/tui/components/tool/handoff/handoff.go @@ -3,13 +3,13 @@ package handoff import ( "encoding/json" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/tool/listdirectory/listdirectory.go b/pkg/tui/components/tool/listdirectory/listdirectory.go index c63c773aa..979741f1e 100644 --- a/pkg/tui/components/tool/listdirectory/listdirectory.go +++ b/pkg/tui/components/tool/listdirectory/listdirectory.go @@ -4,11 +4,11 @@ import ( "fmt" "strings" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/tool/listdirectory/listdirectory_test.go b/pkg/tui/components/tool/listdirectory/listdirectory_test.go index 1fdcb37a5..4ea0a854d 100644 --- a/pkg/tui/components/tool/listdirectory/listdirectory_test.go +++ b/pkg/tui/components/tool/listdirectory/listdirectory_test.go @@ -3,10 +3,10 @@ package listdirectory import ( "testing" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/types" ) func TestExtractResult(t *testing.T) { diff --git a/pkg/tui/components/tool/readfile/readfile.go b/pkg/tui/components/tool/readfile/readfile.go index 60e619b8d..b9015d9ec 100644 --- a/pkg/tui/components/tool/readfile/readfile.go +++ b/pkg/tui/components/tool/readfile/readfile.go @@ -3,11 +3,11 @@ package readfile import ( "fmt" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/tool/readmultiplefiles/readmultiplefiles.go b/pkg/tui/components/tool/readmultiplefiles/readmultiplefiles.go index 6f386ef3a..14a7b7989 100644 --- a/pkg/tui/components/tool/readmultiplefiles/readmultiplefiles.go +++ b/pkg/tui/components/tool/readmultiplefiles/readmultiplefiles.go @@ -7,13 +7,13 @@ import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/tool/registry.go b/pkg/tui/components/tool/registry.go index 55227bf41..822ce4c3a 100644 --- a/pkg/tui/components/tool/registry.go +++ b/pkg/tui/components/tool/registry.go @@ -3,9 +3,9 @@ package tool import ( "sync" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) // ComponentBuilder is a function that creates a tool component. diff --git a/pkg/tui/components/tool/searchfilescontent/searchfilescontent.go b/pkg/tui/components/tool/searchfilescontent/searchfilescontent.go index cb3387cdb..96c2fdd36 100644 --- a/pkg/tui/components/tool/searchfilescontent/searchfilescontent.go +++ b/pkg/tui/components/tool/searchfilescontent/searchfilescontent.go @@ -3,11 +3,11 @@ package searchfilescontent import ( "fmt" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/tool/searchfilescontent/searchfilescontent_test.go b/pkg/tui/components/tool/searchfilescontent/searchfilescontent_test.go index ba958a391..4079a063f 100644 --- a/pkg/tui/components/tool/searchfilescontent/searchfilescontent_test.go +++ b/pkg/tui/components/tool/searchfilescontent/searchfilescontent_test.go @@ -3,9 +3,9 @@ package searchfilescontent import ( "testing" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/types" ) func TestExtractResult(t *testing.T) { diff --git a/pkg/tui/components/tool/shell/shell.go b/pkg/tui/components/tool/shell/shell.go index e1ec7293d..cdf9c1197 100644 --- a/pkg/tui/components/tool/shell/shell.go +++ b/pkg/tui/components/tool/shell/shell.go @@ -1,11 +1,11 @@ package shell import ( - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/tool/todotool/component.go b/pkg/tui/components/tool/todotool/component.go index 5fe9a3cb5..02e23b753 100644 --- a/pkg/tui/components/tool/todotool/component.go +++ b/pkg/tui/components/tool/todotool/component.go @@ -1,11 +1,11 @@ package todotool import ( - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) // New creates a new unified todo component. diff --git a/pkg/tui/components/tool/todotool/sidebar.go b/pkg/tui/components/tool/todotool/sidebar.go index 7f7f3fe03..d0e9874e1 100644 --- a/pkg/tui/components/tool/todotool/sidebar.go +++ b/pkg/tui/components/tool/todotool/sidebar.go @@ -5,11 +5,11 @@ import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/tab" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/tab" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/styles" ) // SidebarComponent represents the todo display component for the sidebar diff --git a/pkg/tui/components/tool/todotool/todotool.go b/pkg/tui/components/tool/todotool/todotool.go index 321f6427b..7e07f0512 100644 --- a/pkg/tui/components/tool/todotool/todotool.go +++ b/pkg/tui/components/tool/todotool/todotool.go @@ -3,7 +3,7 @@ package todotool import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/styles" ) func renderTodoIcon(status string) (string, lipgloss.Style) { diff --git a/pkg/tui/components/tool/transfertask/transfertask.go b/pkg/tui/components/tool/transfertask/transfertask.go index 6eef2a607..3750147eb 100644 --- a/pkg/tui/components/tool/transfertask/transfertask.go +++ b/pkg/tui/components/tool/transfertask/transfertask.go @@ -6,13 +6,13 @@ import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/tool/writefile/writefile.go b/pkg/tui/components/tool/writefile/writefile.go index 9330f21d4..442fc832a 100644 --- a/pkg/tui/components/tool/writefile/writefile.go +++ b/pkg/tui/components/tool/writefile/writefile.go @@ -1,11 +1,11 @@ package writefile import ( - "github.com/docker/cagent/pkg/tools/builtin" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tools/builtin" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/types" ) func New(msg *types.Message, sessionState service.SessionStateReader) layout.Model { diff --git a/pkg/tui/components/toolcommon/base.go b/pkg/tui/components/toolcommon/base.go index b16b1fec0..1d32b2099 100644 --- a/pkg/tui/components/toolcommon/base.go +++ b/pkg/tui/components/toolcommon/base.go @@ -3,11 +3,11 @@ package toolcommon import ( tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) // Renderer is a function that renders a tool call view. diff --git a/pkg/tui/components/toolcommon/common.go b/pkg/tui/components/toolcommon/common.go index 9492806da..589015bbc 100644 --- a/pkg/tui/components/toolcommon/common.go +++ b/pkg/tui/components/toolcommon/common.go @@ -7,11 +7,11 @@ import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) // ParseArgs unmarshals JSON arguments into a typed struct. diff --git a/pkg/tui/components/toolcommon/truncate.go b/pkg/tui/components/toolcommon/truncate.go index 3091e6a13..893f660c7 100644 --- a/pkg/tui/components/toolcommon/truncate.go +++ b/pkg/tui/components/toolcommon/truncate.go @@ -5,7 +5,7 @@ import ( "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/styles" ) // TruncateText truncates text to fit within maxWidth, adding an ellipsis if needed. diff --git a/pkg/tui/dialog/attachment_preview.go b/pkg/tui/dialog/attachment_preview.go index 795f77b6e..e88c7a8c0 100644 --- a/pkg/tui/dialog/attachment_preview.go +++ b/pkg/tui/dialog/attachment_preview.go @@ -10,10 +10,10 @@ import ( "charm.land/lipgloss/v2" "github.com/charmbracelet/x/ansi" - "github.com/docker/cagent/pkg/tui/components/editor" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/components/editor" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) // Dialog sizing constants diff --git a/pkg/tui/dialog/base.go b/pkg/tui/dialog/base.go index 2cc3c4736..0573d6f63 100644 --- a/pkg/tui/dialog/base.go +++ b/pkg/tui/dialog/base.go @@ -7,11 +7,11 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) // ConfirmKeyMap defines key bindings for confirmation dialogs (Yes/No). diff --git a/pkg/tui/dialog/command_palette.go b/pkg/tui/dialog/command_palette.go index c77129c77..8467695cb 100644 --- a/pkg/tui/dialog/command_palette.go +++ b/pkg/tui/dialog/command_palette.go @@ -9,12 +9,12 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/commands" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/commands" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) // CommandExecuteMsg is sent when a command is selected diff --git a/pkg/tui/dialog/command_palette_test.go b/pkg/tui/dialog/command_palette_test.go index 78acae513..8f2667b05 100644 --- a/pkg/tui/dialog/command_palette_test.go +++ b/pkg/tui/dialog/command_palette_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tui/commands" + "github.com/docker/docker-agent/pkg/tui/commands" ) var categories = []commands.Category{ diff --git a/pkg/tui/dialog/cost.go b/pkg/tui/dialog/cost.go index eff46cb21..0fdee996b 100644 --- a/pkg/tui/dialog/cost.go +++ b/pkg/tui/dialog/cost.go @@ -11,13 +11,13 @@ import ( "charm.land/lipgloss/v2" "github.com/atotto/clipboard" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tui/components/notification" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tui/components/notification" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) // costDialog displays detailed cost breakdown for a session. diff --git a/pkg/tui/dialog/cost_test.go b/pkg/tui/dialog/cost_test.go index 1e7d028ef..6ab3d21fc 100644 --- a/pkg/tui/dialog/cost_test.go +++ b/pkg/tui/dialog/cost_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" ) func TestNewCostDialog(t *testing.T) { diff --git a/pkg/tui/dialog/dialog.go b/pkg/tui/dialog/dialog.go index d1f44df5b..6671a2753 100644 --- a/pkg/tui/dialog/dialog.go +++ b/pkg/tui/dialog/dialog.go @@ -4,8 +4,8 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" ) // OpenDialogMsg is sent to open a new dialog diff --git a/pkg/tui/dialog/elicitation.go b/pkg/tui/dialog/elicitation.go index 468859223..a14d9d789 100644 --- a/pkg/tui/dialog/elicitation.go +++ b/pkg/tui/dialog/elicitation.go @@ -13,9 +13,9 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) const ( diff --git a/pkg/tui/dialog/exit_confirmation.go b/pkg/tui/dialog/exit_confirmation.go index b55b59160..28ff96973 100644 --- a/pkg/tui/dialog/exit_confirmation.go +++ b/pkg/tui/dialog/exit_confirmation.go @@ -4,9 +4,9 @@ import ( "charm.land/bubbles/v2/key" tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) // ExitConfirmedMsg is sent when the user confirms they want to exit. diff --git a/pkg/tui/dialog/file_picker.go b/pkg/tui/dialog/file_picker.go index c29f0587f..1048d81e8 100644 --- a/pkg/tui/dialog/file_picker.go +++ b/pkg/tui/dialog/file_picker.go @@ -11,12 +11,12 @@ import ( "charm.land/lipgloss/v2" "github.com/docker/go-units" - "github.com/docker/cagent/pkg/fsx" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/fsx" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) type fileEntry struct { diff --git a/pkg/tui/dialog/max_iterations.go b/pkg/tui/dialog/max_iterations.go index 838f73c58..b0369d529 100644 --- a/pkg/tui/dialog/max_iterations.go +++ b/pkg/tui/dialog/max_iterations.go @@ -7,11 +7,11 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) // Layout constants for max iterations dialog. diff --git a/pkg/tui/dialog/mcp_prompt_input.go b/pkg/tui/dialog/mcp_prompt_input.go index ecd1f3ec4..111877080 100644 --- a/pkg/tui/dialog/mcp_prompt_input.go +++ b/pkg/tui/dialog/mcp_prompt_input.go @@ -8,11 +8,11 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - mcptools "github.com/docker/cagent/pkg/tools/mcp" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + mcptools "github.com/docker/docker-agent/pkg/tools/mcp" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) // MCPPromptInputDialog implements Dialog for collecting MCP prompt parameters diff --git a/pkg/tui/dialog/model_picker.go b/pkg/tui/dialog/model_picker.go index ebb5b0497..fb91e1c66 100644 --- a/pkg/tui/dialog/model_picker.go +++ b/pkg/tui/dialog/model_picker.go @@ -11,14 +11,14 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) // modelPickerDialog is a dialog for selecting a model for the current agent. diff --git a/pkg/tui/dialog/model_picker_test.go b/pkg/tui/dialog/model_picker_test.go index fe4dfb828..a20bc7ec4 100644 --- a/pkg/tui/dialog/model_picker_test.go +++ b/pkg/tui/dialog/model_picker_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/model/provider" - "github.com/docker/cagent/pkg/runtime" + "github.com/docker/docker-agent/pkg/model/provider" + "github.com/docker/docker-agent/pkg/runtime" ) func TestModelPickerNavigation(t *testing.T) { diff --git a/pkg/tui/dialog/multi_choice.go b/pkg/tui/dialog/multi_choice.go index 476a68ec1..ba7368d32 100644 --- a/pkg/tui/dialog/multi_choice.go +++ b/pkg/tui/dialog/multi_choice.go @@ -9,9 +9,9 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) // MultiChoiceOption represents a single selectable option in the dialog. diff --git a/pkg/tui/dialog/multi_choice_test.go b/pkg/tui/dialog/multi_choice_test.go index 12dbb6bea..b0319b08d 100644 --- a/pkg/tui/dialog/multi_choice_test.go +++ b/pkg/tui/dialog/multi_choice_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/core/layout" ) // collectMsgs executes a command (or batch/sequence of commands) and collects all returned messages. diff --git a/pkg/tui/dialog/oauth_authorization.go b/pkg/tui/dialog/oauth_authorization.go index dcd2b686d..62e740495 100644 --- a/pkg/tui/dialog/oauth_authorization.go +++ b/pkg/tui/dialog/oauth_authorization.go @@ -6,11 +6,11 @@ import ( tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) type oauthAuthorizationDialog struct { diff --git a/pkg/tui/dialog/permissions.go b/pkg/tui/dialog/permissions.go index 83e86366b..5f6709424 100644 --- a/pkg/tui/dialog/permissions.go +++ b/pkg/tui/dialog/permissions.go @@ -5,11 +5,11 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) // permissionsDialog displays the configured tool permissions (allow/deny patterns). diff --git a/pkg/tui/dialog/session_browser.go b/pkg/tui/dialog/session_browser.go index 035a7c018..3170ca6ad 100644 --- a/pkg/tui/dialog/session_browser.go +++ b/pkg/tui/dialog/session_browser.go @@ -11,13 +11,13 @@ import ( "charm.land/lipgloss/v2" "github.com/atotto/clipboard" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tui/components/notification" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tui/components/notification" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) // sessionBrowserKeyMap defines key bindings for the session browser diff --git a/pkg/tui/dialog/session_browser_test.go b/pkg/tui/dialog/session_browser_test.go index f328f5206..17deacd1e 100644 --- a/pkg/tui/dialog/session_browser_test.go +++ b/pkg/tui/dialog/session_browser_test.go @@ -9,7 +9,7 @@ import ( tea "charm.land/bubbletea/v2" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/session" + "github.com/docker/docker-agent/pkg/session" ) func TestSessionBrowserNavigation(t *testing.T) { diff --git a/pkg/tui/dialog/theme_picker.go b/pkg/tui/dialog/theme_picker.go index 5584ee294..1ecd2aa14 100644 --- a/pkg/tui/dialog/theme_picker.go +++ b/pkg/tui/dialog/theme_picker.go @@ -10,12 +10,12 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/components/toolcommon" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/components/toolcommon" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) // ThemeChoice represents a selectable theme option diff --git a/pkg/tui/dialog/tool_confirmation.go b/pkg/tui/dialog/tool_confirmation.go index 82894d3b6..a3bcf58e3 100644 --- a/pkg/tui/dialog/tool_confirmation.go +++ b/pkg/tui/dialog/tool_confirmation.go @@ -9,15 +9,15 @@ import ( "charm.land/lipgloss/v2" "github.com/charmbracelet/x/ansi" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/components/messages" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - tuimessages "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/components/messages" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + tuimessages "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" ) // Layout constants for tool confirmation dialog. diff --git a/pkg/tui/dialog/tool_rejection_reason.go b/pkg/tui/dialog/tool_rejection_reason.go index a8bb0b431..02ba3537a 100644 --- a/pkg/tui/dialog/tool_rejection_reason.go +++ b/pkg/tui/dialog/tool_rejection_reason.go @@ -1,7 +1,7 @@ package dialog import ( - "github.com/docker/cagent/pkg/runtime" + "github.com/docker/docker-agent/pkg/runtime" ) // ToolRejectionDialogID is the unique identifier for the tool rejection reason dialog. diff --git a/pkg/tui/dialog/url_elicitation.go b/pkg/tui/dialog/url_elicitation.go index 2ac8d89e2..600514ce3 100644 --- a/pkg/tui/dialog/url_elicitation.go +++ b/pkg/tui/dialog/url_elicitation.go @@ -7,10 +7,10 @@ import ( "charm.land/bubbles/v2/key" tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/browser" - "github.com/docker/cagent/pkg/tools" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/browser" + "github.com/docker/docker-agent/pkg/tools" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/styles" ) // URLElicitationDialog handles URL-based MCP elicitation requests. diff --git a/pkg/tui/dialog/working_dir_picker.go b/pkg/tui/dialog/working_dir_picker.go index c069004bf..d434b42d3 100644 --- a/pkg/tui/dialog/working_dir_picker.go +++ b/pkg/tui/dialog/working_dir_picker.go @@ -14,13 +14,13 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/fsx" - "github.com/docker/cagent/pkg/tui/components/scrollview" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/service/tuistate" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/fsx" + "github.com/docker/docker-agent/pkg/tui/components/scrollview" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/service/tuistate" + "github.com/docker/docker-agent/pkg/tui/styles" ) // dirSection identifies which section of the picker is active. diff --git a/pkg/tui/handlers.go b/pkg/tui/handlers.go index 84267d49b..6667e6b44 100644 --- a/pkg/tui/handlers.go +++ b/pkg/tui/handlers.go @@ -13,22 +13,22 @@ import ( tea "charm.land/bubbletea/v2" "github.com/atotto/clipboard" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/browser" - "github.com/docker/cagent/pkg/evaluation" - "github.com/docker/cagent/pkg/modelsdev" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tools" - mcptools "github.com/docker/cagent/pkg/tools/mcp" - "github.com/docker/cagent/pkg/tui/components/markdown" - "github.com/docker/cagent/pkg/tui/components/notification" - "github.com/docker/cagent/pkg/tui/components/tool/editfile" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/dialog" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/page/chat" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/browser" + "github.com/docker/docker-agent/pkg/evaluation" + "github.com/docker/docker-agent/pkg/modelsdev" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tools" + mcptools "github.com/docker/docker-agent/pkg/tools/mcp" + "github.com/docker/docker-agent/pkg/tui/components/markdown" + "github.com/docker/docker-agent/pkg/tui/components/notification" + "github.com/docker/docker-agent/pkg/tui/components/tool/editfile" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/dialog" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/page/chat" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/userconfig" ) // --- Session management --- diff --git a/pkg/tui/input/wheel_coalescer.go b/pkg/tui/input/wheel_coalescer.go index deb386606..777d5809d 100644 --- a/pkg/tui/input/wheel_coalescer.go +++ b/pkg/tui/input/wheel_coalescer.go @@ -6,7 +6,7 @@ import ( tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/messages" ) const wheelFlushInterval = 16 * time.Millisecond diff --git a/pkg/tui/messages/mcp.go b/pkg/tui/messages/mcp.go index 5601f193a..3d18624a0 100644 --- a/pkg/tui/messages/mcp.go +++ b/pkg/tui/messages/mcp.go @@ -1,6 +1,6 @@ package messages -import "github.com/docker/cagent/pkg/tools" +import "github.com/docker/docker-agent/pkg/tools" // MCP messages control MCP prompt interactions and elicitation. type ( diff --git a/pkg/tui/messages/session.go b/pkg/tui/messages/session.go index 1f8411ac9..8d048c082 100644 --- a/pkg/tui/messages/session.go +++ b/pkg/tui/messages/session.go @@ -1,7 +1,7 @@ // Package messages defines all TUI message types organized by domain. package messages -import "github.com/docker/cagent/pkg/session" +import "github.com/docker/docker-agent/pkg/session" // Attachment represents content attached to a message. It is either a reference // to a file on disk (FilePath is set) or inline content already in memory diff --git a/pkg/tui/page/chat/chat.go b/pkg/tui/page/chat/chat.go index 233cd4c6c..75a730d01 100644 --- a/pkg/tui/page/chat/chat.go +++ b/pkg/tui/page/chat/chat.go @@ -14,17 +14,17 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/chat" - "github.com/docker/cagent/pkg/tui/commands" - "github.com/docker/cagent/pkg/tui/components/messages" - "github.com/docker/cagent/pkg/tui/components/notification" - "github.com/docker/cagent/pkg/tui/components/sidebar" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - msgtypes "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/chat" + "github.com/docker/docker-agent/pkg/tui/commands" + "github.com/docker/docker-agent/pkg/tui/components/messages" + "github.com/docker/docker-agent/pkg/tui/components/notification" + "github.com/docker/docker-agent/pkg/tui/components/sidebar" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + msgtypes "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/styles" ) const ( diff --git a/pkg/tui/page/chat/hittest.go b/pkg/tui/page/chat/hittest.go index bba0290ce..1ea9d335a 100644 --- a/pkg/tui/page/chat/hittest.go +++ b/pkg/tui/page/chat/hittest.go @@ -3,8 +3,8 @@ package chat import ( tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/tui/components/sidebar" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/components/sidebar" + "github.com/docker/docker-agent/pkg/tui/styles" ) // MouseTarget represents what the mouse is interacting with. diff --git a/pkg/tui/page/chat/input_handlers.go b/pkg/tui/page/chat/input_handlers.go index 90f5e24ff..4276d44e1 100644 --- a/pkg/tui/page/chat/input_handlers.go +++ b/pkg/tui/page/chat/input_handlers.go @@ -8,15 +8,15 @@ import ( "charm.land/bubbles/v2/key" tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/tui/components/messages" - "github.com/docker/cagent/pkg/tui/components/notification" - "github.com/docker/cagent/pkg/tui/components/sidebar" - "github.com/docker/cagent/pkg/tui/components/tool/editfile" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - msgtypes "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/tui/components/messages" + "github.com/docker/docker-agent/pkg/tui/components/notification" + "github.com/docker/docker-agent/pkg/tui/components/sidebar" + "github.com/docker/docker-agent/pkg/tui/components/tool/editfile" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + msgtypes "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/styles" ) // handleKeyPress handles keyboard input events for the chat page. diff --git a/pkg/tui/page/chat/queue_test.go b/pkg/tui/page/chat/queue_test.go index 36d67613d..5a9ebffd7 100644 --- a/pkg/tui/page/chat/queue_test.go +++ b/pkg/tui/page/chat/queue_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/tui/components/sidebar" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/components/sidebar" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/service" ) // newTestChatPage creates a minimal chatPage for testing queue behavior. diff --git a/pkg/tui/page/chat/runtime_events.go b/pkg/tui/page/chat/runtime_events.go index 0b0e57def..ec3d99b44 100644 --- a/pkg/tui/page/chat/runtime_events.go +++ b/pkg/tui/page/chat/runtime_events.go @@ -7,13 +7,13 @@ import ( tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/tui/components/notification" - "github.com/docker/cagent/pkg/tui/components/sidebar" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/dialog" - msgtypes "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/tui/components/notification" + "github.com/docker/docker-agent/pkg/tui/components/sidebar" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/dialog" + msgtypes "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/types" ) // Runtime Event Handling diff --git a/pkg/tui/service/sessionstate.go b/pkg/tui/service/sessionstate.go index 694447940..ef3a4c158 100644 --- a/pkg/tui/service/sessionstate.go +++ b/pkg/tui/service/sessionstate.go @@ -1,11 +1,11 @@ package service import ( - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/tui/types" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/tui/types" + "github.com/docker/docker-agent/pkg/userconfig" ) // SessionStateReader provides read-only access to session state. diff --git a/pkg/tui/service/supervisor/supervisor.go b/pkg/tui/service/supervisor/supervisor.go index bac11f876..80454aeea 100644 --- a/pkg/tui/service/supervisor/supervisor.go +++ b/pkg/tui/service/supervisor/supervisor.go @@ -10,10 +10,10 @@ import ( tea "charm.land/bubbletea/v2" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tui/messages" ) // SessionRunner represents a running session. diff --git a/pkg/tui/service/tuistate/store.go b/pkg/tui/service/tuistate/store.go index 6b3808c35..de0e33ddb 100644 --- a/pkg/tui/service/tuistate/store.go +++ b/pkg/tui/service/tuistate/store.go @@ -7,8 +7,8 @@ import ( "fmt" "path/filepath" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/sqliteutil" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/sqliteutil" ) // Store manages persistent TUI state in a SQLite database. diff --git a/pkg/tui/service/tuistate/store_test.go b/pkg/tui/service/tuistate/store_test.go index 43e9cdeec..ef69d4618 100644 --- a/pkg/tui/service/tuistate/store_test.go +++ b/pkg/tui/service/tuistate/store_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/sqliteutil" + "github.com/docker/docker-agent/pkg/sqliteutil" ) // newTestStore creates a Store backed by a fresh SQLite database in the test's temp dir. diff --git a/pkg/tui/styles/theme.go b/pkg/tui/styles/theme.go index a90eec3a9..99b8e1811 100644 --- a/pkg/tui/styles/theme.go +++ b/pkg/tui/styles/theme.go @@ -16,8 +16,8 @@ import ( "charm.land/lipgloss/v2" "github.com/goccy/go-yaml" - "github.com/docker/cagent/pkg/paths" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/paths" + "github.com/docker/docker-agent/pkg/userconfig" ) //go:embed themes/*.yaml diff --git a/pkg/tui/tui.go b/pkg/tui/tui.go index a5b51c9ce..fc69d6135 100644 --- a/pkg/tui/tui.go +++ b/pkg/tui/tui.go @@ -18,29 +18,29 @@ import ( tea "charm.land/bubbletea/v2" "charm.land/lipgloss/v2" - "github.com/docker/cagent/pkg/app" - "github.com/docker/cagent/pkg/audio/transcribe" - "github.com/docker/cagent/pkg/history" - "github.com/docker/cagent/pkg/runtime" - "github.com/docker/cagent/pkg/session" - "github.com/docker/cagent/pkg/tui/animation" - "github.com/docker/cagent/pkg/tui/commands" - "github.com/docker/cagent/pkg/tui/components/completion" - "github.com/docker/cagent/pkg/tui/components/editor" - "github.com/docker/cagent/pkg/tui/components/notification" - "github.com/docker/cagent/pkg/tui/components/spinner" - "github.com/docker/cagent/pkg/tui/components/statusbar" - "github.com/docker/cagent/pkg/tui/components/tabbar" - "github.com/docker/cagent/pkg/tui/core" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/dialog" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/page/chat" - "github.com/docker/cagent/pkg/tui/service" - "github.com/docker/cagent/pkg/tui/service/supervisor" - "github.com/docker/cagent/pkg/tui/service/tuistate" - "github.com/docker/cagent/pkg/tui/styles" - "github.com/docker/cagent/pkg/userconfig" + "github.com/docker/docker-agent/pkg/app" + "github.com/docker/docker-agent/pkg/audio/transcribe" + "github.com/docker/docker-agent/pkg/history" + "github.com/docker/docker-agent/pkg/runtime" + "github.com/docker/docker-agent/pkg/session" + "github.com/docker/docker-agent/pkg/tui/animation" + "github.com/docker/docker-agent/pkg/tui/commands" + "github.com/docker/docker-agent/pkg/tui/components/completion" + "github.com/docker/docker-agent/pkg/tui/components/editor" + "github.com/docker/docker-agent/pkg/tui/components/notification" + "github.com/docker/docker-agent/pkg/tui/components/spinner" + "github.com/docker/docker-agent/pkg/tui/components/statusbar" + "github.com/docker/docker-agent/pkg/tui/components/tabbar" + "github.com/docker/docker-agent/pkg/tui/core" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/dialog" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/page/chat" + "github.com/docker/docker-agent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/tui/service/supervisor" + "github.com/docker/docker-agent/pkg/tui/service/tuistate" + "github.com/docker/docker-agent/pkg/tui/styles" + "github.com/docker/docker-agent/pkg/userconfig" ) // SessionSpawner creates new sessions with their own runtime. diff --git a/pkg/tui/tui_exit_test.go b/pkg/tui/tui_exit_test.go index 293cce1ca..21b0fe919 100644 --- a/pkg/tui/tui_exit_test.go +++ b/pkg/tui/tui_exit_test.go @@ -10,15 +10,15 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/audio/transcribe" - "github.com/docker/cagent/pkg/tui/components/completion" - "github.com/docker/cagent/pkg/tui/components/editor" - "github.com/docker/cagent/pkg/tui/components/notification" - "github.com/docker/cagent/pkg/tui/core/layout" - "github.com/docker/cagent/pkg/tui/dialog" - "github.com/docker/cagent/pkg/tui/messages" - "github.com/docker/cagent/pkg/tui/page/chat" - "github.com/docker/cagent/pkg/tui/service" + "github.com/docker/docker-agent/pkg/audio/transcribe" + "github.com/docker/docker-agent/pkg/tui/components/completion" + "github.com/docker/docker-agent/pkg/tui/components/editor" + "github.com/docker/docker-agent/pkg/tui/components/notification" + "github.com/docker/docker-agent/pkg/tui/core/layout" + "github.com/docker/docker-agent/pkg/tui/dialog" + "github.com/docker/docker-agent/pkg/tui/messages" + "github.com/docker/docker-agent/pkg/tui/page/chat" + "github.com/docker/docker-agent/pkg/tui/service" ) // mockChatPage implements chat.Page for testing. diff --git a/pkg/tui/types/types.go b/pkg/tui/types/types.go index 35d41ca01..ae164f9cf 100644 --- a/pkg/tui/types/types.go +++ b/pkg/tui/types/types.go @@ -3,7 +3,7 @@ package types import ( "strings" - "github.com/docker/cagent/pkg/tools" + "github.com/docker/docker-agent/pkg/tools" ) // MessageType represents different types of messages diff --git a/pkg/upstream/headers.go b/pkg/upstream/headers.go index 407d7ac03..2152ff73f 100644 --- a/pkg/upstream/headers.go +++ b/pkg/upstream/headers.go @@ -8,7 +8,7 @@ import ( "regexp" "strings" - "github.com/docker/cagent/pkg/js" + "github.com/docker/docker-agent/pkg/js" ) type contextKey struct{} diff --git a/pkg/useragent/useragent.go b/pkg/useragent/useragent.go index f327ea63f..6f266628f 100644 --- a/pkg/useragent/useragent.go +++ b/pkg/useragent/useragent.go @@ -4,7 +4,7 @@ import ( "fmt" "runtime" - "github.com/docker/cagent/pkg/version" + "github.com/docker/docker-agent/pkg/version" ) var Header = fmt.Sprintf("Cagent/%s (%s; %s)", version.Version, runtime.GOOS, runtime.GOARCH) diff --git a/pkg/userconfig/userconfig.go b/pkg/userconfig/userconfig.go index 7f93e3830..81ecead0e 100644 --- a/pkg/userconfig/userconfig.go +++ b/pkg/userconfig/userconfig.go @@ -16,8 +16,8 @@ import ( "github.com/goccy/go-yaml" "github.com/natefinch/atomic" - "github.com/docker/cagent/pkg/config/latest" - "github.com/docker/cagent/pkg/paths" + "github.com/docker/docker-agent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/paths" ) // Alias represents an alias configuration with optional runtime settings diff --git a/pkg/userconfig/userconfig_test.go b/pkg/userconfig/userconfig_test.go index 588fc1b9b..cc8207d06 100644 --- a/pkg/userconfig/userconfig_test.go +++ b/pkg/userconfig/userconfig_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/docker/cagent/pkg/config/latest" + "github.com/docker/docker-agent/pkg/config/latest" ) func TestConfig_Empty(t *testing.T) {