ctx-sdk 2.0.0__tar.gz → 2.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/PKG-INFO +1 -1
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/pyproject.toml +1 -1
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/dynamic_models.py +7 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/model_fetcher.py +13 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/version.py +1 -1
- ctx_sdk-2.0.1/tests/test_model_cache_fallback.py +65 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/.gitignore +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/CHANGELOG.md +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/README.md +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/README.md +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/agent_runner.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/agents/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/agents/activate.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/agents/api.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/agents/discovery.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/agents/loader.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/agents/registry.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/agents/schema.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/async_utils.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/background.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/commands.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/compaction_check.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/context/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/context/_xml.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/context/agent_mds.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/context/git.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/context/loader.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/context/skills.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/context_governance.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/dispatcher.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/hooks/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/hooks/agent_hook.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/hooks/bridge.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/hooks/loader.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/hooks/registry.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/hooks/runtime.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/hooks/types.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/inbox.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/loop.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/prompts/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/prompts/builder.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/prompts/env.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/prompts/registry.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/prompts/tooling.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/revert.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/runtime.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/_version.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/agent.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/approvals.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/guardrails/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/guardrails/types.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/handoffs.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/items.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/items_base.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/permissions.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/results.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/run_config.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/runner.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/sessions.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/skills.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/sdk/tools.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/session.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/skills.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/skills_refresh.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/snapshot.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/tools/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/tools/base.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/tools/schema.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/tools/schema_tool.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/tools_manager.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/agent/turn.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/README.md +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/_httpcore_patch.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/base.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/context_length.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/models.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/cline.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/codex.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/copilot.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/deepai.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/devin/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/devin/descriptors.pb +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/devin/proto.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/dynamic.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/freepi.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/oauth/junie.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/phase_parser.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/provider.yaml +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/provider_catalog.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/provider_hooks.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/providers/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/providers/anthropic_sdk.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/providers/mock.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/providers/openai_responses_sdk.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/providers/openai_sdk.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/providers/sanitize.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/py.typed +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/rate_limit.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/sdk/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/sdk/_sse.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/sdk/anthropic.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/sdk/base.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/sdk/openai.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/sdk/openai_responses.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/streaming_json.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/thinking.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/ai/tool_parser.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/README.md +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/bytes_util.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/compaction.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/config.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/defaults/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/defaults/config.yml +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/events.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/handoff.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/harness_config.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/image.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/notify.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/paths.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/permissions.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/py.typed +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/recap.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/scratchpad.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/session_retention.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/sounds/completion.wav +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/sounds/error.wav +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/sounds/permission.wav +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/store.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/themes.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/core/token_usage.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/git/README.md +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/git/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/git/gh_app.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/git/gh_cli.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/git/git_branch.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/README.md +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/bootstrap.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/commands.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/hooks.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/agent_instances.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/agent_loop.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/agents.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/compaction.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/llm.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/permissions.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/projections.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/prompts.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/sessions.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/skills.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/telemetry.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/tool_executor.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/tools.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/services/turn_engine.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/tools/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/tools/_register.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/builtins/ui.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/bus.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/context.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/errors.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/event_contract.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/events.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/host.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/install.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/loader.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/plugin.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/profile.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/plugins/services.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/protocol/README.md +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/protocol/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/protocol/abc.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/protocol/errors.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/protocol/types.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/sdk/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/telemetry/README.md +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/telemetry/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/telemetry/exporters/__init__.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/telemetry/exporters/console.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/telemetry/exporters/jsonl.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/telemetry/processor.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/src/ctx/telemetry/tracing_impl.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/tests/test_plugin_install.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/tests/test_switch_model_closes_provider.py +0 -0
- {ctx_sdk-2.0.0 → ctx_sdk-2.0.1}/tests/test_turn_stream_stall.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: ctx-sdk
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: Minimalist agent harness: agent loop, sessions, tools, plugin composition, 67 LLM providers, and a Python SDK. The coding agent CLI/TUI is a separate package (ctx-agent) built on top.
|
|
5
5
|
Author: OEvortex
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,7 +20,7 @@ artifacts = []
|
|
|
20
20
|
|
|
21
21
|
[project]
|
|
22
22
|
name = "ctx-sdk"
|
|
23
|
-
version = "2.0.
|
|
23
|
+
version = "2.0.1"
|
|
24
24
|
description = "Minimalist agent harness: agent loop, sessions, tools, plugin composition, 67 LLM providers, and a Python SDK. The coding agent CLI/TUI is a separate package (ctx-agent) built on top."
|
|
25
25
|
requires-python = ">=3.12"
|
|
26
26
|
keywords = ["agent", "harness", "llm", "agent-loop", "sdk"]
|
|
@@ -360,6 +360,13 @@ def _write_cache(catalog: CachedCatalog) -> None:
|
|
|
360
360
|
store.put_catalog(_cache_name(catalog.provider), catalog.to_dict())
|
|
361
361
|
except Exception as exc:
|
|
362
362
|
logger.warning("Failed to write catalog for %s: %s", catalog.provider, exc)
|
|
363
|
+
# The legacy fetcher memoizes per-provider lists (empty ones included);
|
|
364
|
+
# drop its memos or pickers keep serving the pre-refresh list all session.
|
|
365
|
+
with contextlib.suppress(Exception):
|
|
366
|
+
from ctx.ai import model_fetcher as _fetcher
|
|
367
|
+
|
|
368
|
+
for memo in (_fetcher._MODELS_CACHE, _fetcher._LITE_CACHE, _fetcher._IDS_CACHE):
|
|
369
|
+
memo.pop(catalog.provider, None)
|
|
363
370
|
|
|
364
371
|
|
|
365
372
|
# =================================================================================================
|
|
@@ -97,6 +97,17 @@ def _read_cache(provider_slug: str, *, check_cooldown: bool = False) -> list[Fet
|
|
|
97
97
|
data = store.get_catalog(f"fetch:{provider_slug}")
|
|
98
98
|
except Exception:
|
|
99
99
|
data = None
|
|
100
|
+
from_fallback = False
|
|
101
|
+
if data is None:
|
|
102
|
+
# Refreshes land in the dynamic: row first (the dynamic fetcher speaks
|
|
103
|
+
# gateways the legacy one cannot, e.g. kilo's banner headers). Its
|
|
104
|
+
# entries parse through the same shape below, so fall back to it
|
|
105
|
+
# before the legacy JSON files.
|
|
106
|
+
try:
|
|
107
|
+
data = store.get_catalog(f"dynamic:{provider_slug}")
|
|
108
|
+
except Exception:
|
|
109
|
+
data = None
|
|
110
|
+
from_fallback = data is not None
|
|
100
111
|
if data is None:
|
|
101
112
|
# One-time migration from the per-provider JSON files this used to
|
|
102
113
|
# write; the row is the store now and the file is only a fallback.
|
|
@@ -104,6 +115,8 @@ def _read_cache(provider_slug: str, *, check_cooldown: bool = False) -> list[Fet
|
|
|
104
115
|
data = json.loads(_cache_path(provider_slug).read_text(encoding="utf-8"))
|
|
105
116
|
except (FileNotFoundError, json.JSONDecodeError, OSError):
|
|
106
117
|
return None
|
|
118
|
+
from_fallback = True
|
|
119
|
+
if from_fallback:
|
|
107
120
|
with suppress(Exception):
|
|
108
121
|
store.put_catalog(f"fetch:{provider_slug}", data)
|
|
109
122
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""A provider refreshed through the dynamic fetcher must show up in the
|
|
2
|
+
legacy-fetcher readers (the model pickers).
|
|
3
|
+
|
|
4
|
+
``/model refresh kilo`` writes the ``dynamic:kilo`` catalog row; the legacy
|
|
5
|
+
fetcher behind ``get_catalog_models_for`` only read its own ``fetch:kilo``
|
|
6
|
+
row (or the old JSON files). Gateways the legacy fetcher cannot talk to
|
|
7
|
+
(kilo wants its banner headers) left the picker empty even after a
|
|
8
|
+
successful refresh in the same session.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import time
|
|
14
|
+
|
|
15
|
+
import pytest
|
|
16
|
+
from ctx.ai import dynamic_models, model_fetcher
|
|
17
|
+
from ctx.ai.model_fetcher import get_fetched_models
|
|
18
|
+
from ctx.ai.provider_catalog import get as get_provider
|
|
19
|
+
from ctx.ai.provider_catalog import get_catalog_models_for
|
|
20
|
+
from ctx.core import store
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@pytest.fixture
|
|
24
|
+
def fake_store(monkeypatch, tmp_path):
|
|
25
|
+
rows: dict[str, dict] = {}
|
|
26
|
+
monkeypatch.setattr(store, "get_catalog", lambda name, conn=None: rows.get(name))
|
|
27
|
+
monkeypatch.setattr(
|
|
28
|
+
store,
|
|
29
|
+
"put_catalog",
|
|
30
|
+
lambda name, payload, fetched_at=None, conn=None: rows.__setitem__(name, payload),
|
|
31
|
+
)
|
|
32
|
+
monkeypatch.setattr(model_fetcher, "_cache_path", lambda slug: tmp_path / f"{slug}.json")
|
|
33
|
+
for memo in (model_fetcher._MODELS_CACHE, model_fetcher._LITE_CACHE, model_fetcher._IDS_CACHE):
|
|
34
|
+
memo.clear()
|
|
35
|
+
yield rows
|
|
36
|
+
for memo in (model_fetcher._MODELS_CACHE, model_fetcher._LITE_CACHE, model_fetcher._IDS_CACHE):
|
|
37
|
+
memo.clear()
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _dynamic_write():
|
|
41
|
+
dynamic_models._write_cache(
|
|
42
|
+
dynamic_models.CachedCatalog(
|
|
43
|
+
provider="kilo",
|
|
44
|
+
fetched_at=time.time(),
|
|
45
|
+
models=[
|
|
46
|
+
dynamic_models.DynamicModelEntry(
|
|
47
|
+
id="kilo-model", name="Kilo Model", context_window=128_000
|
|
48
|
+
)
|
|
49
|
+
],
|
|
50
|
+
)
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class TestDynamicFallback:
|
|
55
|
+
def test_scoped_picker_sees_dynamic_only_cache(self, fake_store):
|
|
56
|
+
_dynamic_write()
|
|
57
|
+
models = get_catalog_models_for("kilo", enrich=False)
|
|
58
|
+
assert models is not None
|
|
59
|
+
assert [m.id for m in models] == ["kilo-model"]
|
|
60
|
+
|
|
61
|
+
def test_dynamic_write_clears_legacy_memo_of_empty_list(self, fake_store):
|
|
62
|
+
provider = get_provider("kilo")
|
|
63
|
+
assert get_fetched_models(provider, enrich=False) == []
|
|
64
|
+
_dynamic_write()
|
|
65
|
+
assert [m.id for m in get_fetched_models(provider, enrich=False)] == ["kilo-model"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|