code-context-control 2.158.3__tar.gz → 2.158.5__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.
- {code_context_control-2.158.3/code_context_control.egg-info → code_context_control-2.158.5}/PKG-INFO +1 -1
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/c3.py +1 -1
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_session_open.py +18 -4
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/mcp_server.py +10 -1
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/server.py +4 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5/code_context_control.egg-info}/PKG-INFO +1 -1
- {code_context_control-2.158.3 → code_context_control-2.158.5}/code_context_control.egg-info/SOURCES.txt +5 -0
- code_context_control-2.158.5/core/mcp_stack.py +114 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/mobile_api.py +41 -27
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/mobile_fleet.py +4 -5
- {code_context_control-2.158.3 → code_context_control-2.158.5}/pyproject.toml +1 -1
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/file_memory.py +37 -22
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ollama_client.py +49 -17
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/project_manager.py +1 -1
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/retention.py +66 -1
- code_context_control-2.158.5/tests/test_mcp_stack.py +122 -0
- code_context_control-2.158.5/tests/test_mobile_registered_rows.py +85 -0
- code_context_control-2.158.5/tests/test_ollama_probe_cache.py +85 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_retention.py +82 -0
- code_context_control-2.158.5/tests/test_ui_health_probe.py +64 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/LICENSE +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/README.md +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/_hook_utils.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/_shell_writes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/commands/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/commands/common.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/commands/parser.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/docs.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/edits.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/access.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/bitbucket.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/ci.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/credentials.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/delegate.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/getting-started.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/index.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/jira.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/masking.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/oracle.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/sessions.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/shared.css +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/tools.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/guide/workflow.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_access_guard.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_agent_model.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_artifact.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_auto_snapshot.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_c3_signal.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_c3read.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_codex_lifecycle.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_dispatch.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_edit_ledger.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_edit_unlock.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_filter.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_ghost_files.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_pretool_enforce.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_prompt_recall.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_read.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_session_end.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_session_stats.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hook_terse_advisor.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_server.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/app.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/add_project.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/config_editor.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/drill_artifacts.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/drill_health.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/drill_panel.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/drill_subprojects.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/drill_tasks.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/drill_views.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/global_search.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/hub_access.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/hub_ci.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/hub_cred_audit.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/hub_credentials.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/hub_enforcement.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/hub_locks.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/hub_schedules.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/hub_sessions.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/hub_tokens.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/mcp_manager.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/modals.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/project_card.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/project_tree.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/session_drawer.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/settings_modal.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/sidebar.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/summary_bar.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/task_board.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/toasts.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/components/topbar.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui/state.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/hub_ui.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/mcp_proxy.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/progress.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/_edit_report.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/_grants.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/_helpers.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/_json_reply.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/agent.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/artifacts.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/bitbucket.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/ci.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/compress.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/credentials.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/delegate.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/edit.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/edit_verify.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/edits.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/federate.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/filter.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/impact.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/jira.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/locks.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/memory.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/override.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/project.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/read.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/schedule.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/search.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/session.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/shell.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/shell_job.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/shell_nudge.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/shell_parsers.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/shell_render.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/status.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/tasks.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/tools/validate.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/api.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/app.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/access.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/bitbucket.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/chat.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/credentials.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/dashboard.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/edits.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/enforcement.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/instructions.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/jira.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/memory.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/sessions.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/settings.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/sidebar.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/components/tasks.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/icons.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/pm_shared.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/shared.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui/theme.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui_legacy.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/cli/ui_nano.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/code_context_control.egg-info/dependency_links.txt +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/code_context_control.egg-info/entry_points.txt +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/code_context_control.egg-info/requires.txt +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/code_context_control.egg-info/top_level.txt +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/core/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/core/codex_patch.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/core/config.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/core/grok_payload.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/core/hook_command.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/core/host.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/core/ide.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/core/mcp_toml.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/core/web_security.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/config.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/listeners.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/mcp_oracle.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/oracle_server.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/oracle_ui.html +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/activity_reporter.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/api_auth.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/c3_bridge.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/chat_engine.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/chat_poll.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/chat_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/client_tokens.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/cross_memory.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/discovery_audit.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/federated_graph.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/health_checker.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/insight_engine.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/local_session.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/memory_reader.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/memory_writer.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/project_scanner.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/review_agent.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/schedule_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/scheduler.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/tool_executor.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/tool_registry.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/activity.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/agents.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/app.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/busy.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/chat/conversations.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/chat/input.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/chat/markdown.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/chat/send.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/chat/stream_renderer.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/chat/toolbar.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/core.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/crossgraph.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/header.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/insights.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/projects.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/qrcode.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/settings.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/suggestions.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/ui/theme_tabs.js +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/access_guard.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/access_telemetry.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/activity_log.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/agent_base.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/agent_downshift.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/agent_locks.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/agents.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/agents_workflow.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/artifact_defs.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/artifact_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/atomic_json.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/auto_memory.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/background_service.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bench/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bench/delegate_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bench/delegate_write_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bench/external/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bench/external/aider_polyglot.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bench/external/swe_bench.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bench/map_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bench/search_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bench/shell_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/benchmark_dashboard.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bitbucket_client.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/bitbucket_credentials.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/builtin_leases.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ci_act.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ci_cache.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ci_expr.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ci_failures.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ci_github.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ci_impact.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ci_intel.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ci_runner.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ci_workflow.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/circuit_breaker.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/claude_md.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/codex_integration.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/codex_transcript.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/compressor.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/context_snapshot.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/conversation_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/cred_audit.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/cred_telemetry.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/credential_backup.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/credential_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/cron_expr.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/delegate_agents.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/delegate_hints.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/delegate_write.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/dir_map.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/doc_index.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/e2e_benchmark.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/e2e_evaluator.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/e2e_tasks.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/edit_blobs.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/edit_ledger.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/embedding_index.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/enforcement_policy.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/error_reporting.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/file_map.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/fleet_overview.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/git_context.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/grok_integration.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/grok_transcript.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/host_handoff.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/host_sessions.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/hub_service.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/index_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/indexer.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/jira_client.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/jira_cloud.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/jira_credentials.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/jira_data_center.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/jira_links.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/lexical_index.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/mask_activation.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/mask_mirror.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/mask_presets.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/memory.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/memory_consolidator.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/memory_distiller.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/memory_graph.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/memory_grounder.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/memory_queue.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/memory_scorer.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/metrics.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/notifications.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ollama_bridge.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ollama_credentials.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/oracle_service.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/output_filter.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/override_costs.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/override_grants.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/override_policy.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/override_requests.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/override_wake.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/parser.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/project_runtime.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/protocol.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/proxy_state.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/read_stamps.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/repo_map.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/repo_shape.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/reranker.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/retrieval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/retrieval_broker.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/router.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/runtime.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/scanner.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/schedule_approvals.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/schedule_runner.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/schedule_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/session_benchmark.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/session_catalog.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/session_live.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/session_manager.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/session_preloader.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/shell_jobs.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/shell_output.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/subprojects.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/task_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/telemetry.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/terminal_launch.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/text_index.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/time_tracker.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/tool_classifier.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/transcript_index.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/ui_registry.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/validation_cache.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/vector_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/watcher.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/services/win_subprocess.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/setup.cfg +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_access_builtin_optout.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_access_guard.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_access_guard_meta.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_access_guard_shell_project.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_access_guard_surfaces.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_access_guard_wiring.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_activity_log_find_last.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_activity_reporter.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_agent_locks.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_aider_polyglot.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_antigravity_transition.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_artifact_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_artifact_tool.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_atomic_json.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_background_service.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_bitbucket_cli_smoke.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_bitbucket_client.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_bitbucket_config_fallback.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_bitbucket_credentials.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_bitbucket_tool.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_builtin_leases.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_builtin_modes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_c3_bridge_project_artifacts.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_c3_shell.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_chat_poll.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ci_act.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ci_cache.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ci_dag_ownership.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ci_expr.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ci_impact.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ci_intel.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ci_runner.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ci_workflow.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_circuit_breaker.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_claude_md_merge.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_claude_md_updater.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_cli_smoke.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_codex_mcp_transport.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_codex_native.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_compressor_large_file.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_confirm_guard.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_confirm_guard_wiring.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_cooccurrence_bounds.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_cred_audit.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_cred_telemetry.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_credential_backup.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_credential_login_kind.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_credential_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_credential_ui_parity.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_credentials_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_credentials_tool.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_creds_cli_smoke.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_cron_expr.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_adoption_d4.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_auto.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_cascade.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_claude_d1.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_grok.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_host_d2.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_scout_d3.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_telemetry_d0.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_thinking_cap.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_tuning.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_version_probe.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_write.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_delegate_write_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_dir_map_c3.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_e2e_benchmark.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_eol_atomic.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_ledger_deadline.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_ledger_hook.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_locking.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_normalization.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_outcome.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_report.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_revert.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_stale.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_edit_verify.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_embedding_index_corrupt_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_embedding_index_deadlock.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_embedding_store_safety.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_enforcement_flip.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_enforcement_policy.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_enforcement_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_env_parser.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_failed_calls_do_not_unlock.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_federated_graph.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_file_map_c1.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_file_memory_fast_paths.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_filter_backoff.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ghost_files.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ghost_generation.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_git_branch_awareness.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_grok_native.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_access_guard.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_codex_compat.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_dispatch.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_grok_compat.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_pretool_enforce.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_prompt_recall.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_session_end.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_smoke.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_state.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hook_utf8_stdio.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_host_handoff.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_host_rebind.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_access_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_builtin_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_credentials_route.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_credentials_routes_write.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_enforcement_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_hook_migration.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_ide_cmd.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_inspect_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_locks_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_oracle_service_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_override_policy_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_override_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_rules_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_schedules_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_server_smoke.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_sessions_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_hub_subproject_links.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ide_workflow_adaptation.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_index_cap_not_hardcoded.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_init_clear_preserves_user_content.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_init_scan.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_install_mcp_entrypoint.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_jira_cli_smoke.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_jira_client.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_jira_config_fallback.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_jira_credentials.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_jira_links.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_jira_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_jira_tool.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_json_reply.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_large_files_c4.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_lazy_store_init.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_map_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_map_telemetry_c0.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mask_guard.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mask_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mask_surfaces.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mcp_host_guard.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mcp_memory_timeout.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mcp_server_smoke.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mcp_toml.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_memory_distiller.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_memory_graph_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_memory_queue.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_memory_system.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mobile_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mobile_clients.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mobile_extras.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mobile_fleet.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mobile_jobs_ci.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mobile_override_costs.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mobile_override_routes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mobile_schedules.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_mobile_security_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_no_stale_model_pins.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_notification_dedup.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_notification_discipline.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_notification_kinds.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_notification_ref_scope.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ollama_credentials.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_api_auth.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_apikey_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_c3_bridge.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_chat_engine.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_chat_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_discovery_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_discovery_audit.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_health_probe.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_local_auth.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_loopback.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_ollama_bridge.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_scanner_cache.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_security_fixes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_session_bootstrap.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_subproject_awareness.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_oracle_ui_bundle.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_output_filter.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_override_costs.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_override_grants.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_override_grants_mcp.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_override_requests.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_override_wake.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_permissions.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_pm_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_project_lease_identity.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_project_manager.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_project_manager_merge.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_project_tool.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_quarantine_sweep.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_read_coercion.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_read_edit_parity.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_read_outside_root.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_related_facts.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_repo_map.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_repo_shape.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_response_boilerplate.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_review_digest.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_schedule_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_schedule_approvals.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_schedule_mcp.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_schedule_runner.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_schedule_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_scheduler_tick.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_search_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_search_p1.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_search_p2.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_search_p2b.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_search_p3.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_search_p4.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_search_p5.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_service_durability.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_session_benchmark.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_session_budget.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_session_catalog.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_session_live.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_session_tool.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_budget_s1.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_creds.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_eval.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_jobs_argv.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_jobs_s3.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_nudge_s4.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_output.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_parsers_s2.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_robustness.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_telemetry_s0.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_write_ledger.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_shell_writes.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_subproject_clear_scope.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_subproject_depth_consumers.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_subproject_exclusion.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_subproject_federation.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_subproject_linkage_api.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_subprojects.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_swe_bench.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_task_store.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_task_tool.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_time_tracker.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_token_telemetry.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_token_tracking.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_tool_registry.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ui_jsx_syntax.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_ui_registry.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_upgrade_and_version.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_validate.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_vault_write_guard.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_version_sync.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_watcher_pruning.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_web_security.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tests/test_windows_reliability.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/backend.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/main.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/__init__.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/benchmark_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/claudemd_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/compress_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/index_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/init_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/mcp_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/optimize_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/pipe_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/projects_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/search_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/session_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/stats.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/screens/ui_view.py +0 -0
- {code_context_control-2.158.3 → code_context_control-2.158.5}/tui/theme.tcss +0 -0
{code_context_control-2.158.3/code_context_control.egg-info → code_context_control-2.158.5}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-context-control
|
|
3
|
-
Version: 2.158.
|
|
3
|
+
Version: 2.158.5
|
|
4
4
|
Summary: Local MCP code-intelligence for AI coding tools: surgical search/read/edit, agent-config version history, path-level access + masking guards, and a multi-project hub.
|
|
5
5
|
Author-email: Dimitri Tselenchuk <dtselenc@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -91,7 +91,7 @@ console = Console() if HAS_RICH else None
|
|
|
91
91
|
# Config
|
|
92
92
|
CONFIG_DIR = ".c3"
|
|
93
93
|
CONFIG_FILE = ".c3/config.json"
|
|
94
|
-
__version__ = "2.158.
|
|
94
|
+
__version__ = "2.158.5"
|
|
95
95
|
|
|
96
96
|
# The PreToolUse matcher for native subagent calls (installer and hub migration).
|
|
97
97
|
AGENT_MATCHER = "Agent|Task"
|
|
@@ -40,14 +40,19 @@ by the host pid both of them share and hands it the new id
|
|
|
40
40
|
the same MCP process, and a "Session started" toast on every compaction
|
|
41
41
|
would teach the user to ignore the real ones.
|
|
42
42
|
|
|
43
|
+
When the installed fastmcp and mcp cannot load together
|
|
44
|
+
(``core.mcp_stack``), the MCP server dies before its handshake and the host
|
|
45
|
+
reports only a closed connection; this hook then returns the mismatch and
|
|
46
|
+
the pip repair as context, so the session can say why C3's tools are gone.
|
|
47
|
+
|
|
43
48
|
The MCP server's own ``session_start`` row is untouched — it carries the C3
|
|
44
49
|
id and, when the host put its id in the environment, ``host_session_id``
|
|
45
50
|
too. This hook is what lets a client see the session before the runtime has
|
|
46
51
|
finished starting (~seconds), and it is the row the desktop's "MCP failed to
|
|
47
52
|
connect" sentinel starts its 30 s clock from.
|
|
48
53
|
|
|
49
|
-
Returns None
|
|
50
|
-
|
|
54
|
+
Returns None, or ``{"_text": <mismatch>}`` for the case above: SessionStart
|
|
55
|
+
hook stdout becomes model context.
|
|
51
56
|
"""
|
|
52
57
|
from __future__ import annotations
|
|
53
58
|
|
|
@@ -249,10 +254,19 @@ def hand_off_runtime(project: Path, host: str, host_sid: str, start_source: str)
|
|
|
249
254
|
|
|
250
255
|
|
|
251
256
|
def run(payload: dict, project_path: Path | None = None):
|
|
252
|
-
"""Core logic — importable by the dispatcher and tests.
|
|
257
|
+
"""Core logic — importable by the dispatcher and tests.
|
|
258
|
+
|
|
259
|
+
Returns None, or ``{"_text": ...}`` naming a fastmcp/mcp mismatch.
|
|
260
|
+
"""
|
|
253
261
|
start_source = str(payload.get("source") or "").strip().lower()
|
|
254
262
|
if start_source in _SILENT_SOURCES:
|
|
255
263
|
return None
|
|
264
|
+
try:
|
|
265
|
+
from core.mcp_stack import problem
|
|
266
|
+
stack_problem = problem()
|
|
267
|
+
except Exception as exc:
|
|
268
|
+
log_hook_error("hook_session_open", exc)
|
|
269
|
+
stack_problem = None
|
|
256
270
|
project = find_project(payload, project_path)
|
|
257
271
|
if project is None:
|
|
258
272
|
return None
|
|
@@ -278,7 +292,7 @@ def run(payload: dict, project_path: Path | None = None):
|
|
|
278
292
|
pass
|
|
279
293
|
hand_off_runtime(project, host, host_sid, start_source)
|
|
280
294
|
ensure_ui(project, host_sid)
|
|
281
|
-
return None
|
|
295
|
+
return {"_text": stack_problem} if stack_problem else None
|
|
282
296
|
|
|
283
297
|
|
|
284
298
|
def main() -> None:
|
|
@@ -21,7 +21,16 @@ from typing import Any
|
|
|
21
21
|
# Add parent to path for imports
|
|
22
22
|
sys.path.insert(0, str(Path(__file__).parent.parent))
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
try:
|
|
25
|
+
from fastmcp import Context, FastMCP
|
|
26
|
+
except Exception:
|
|
27
|
+
# The host shows only "connection closed"; stderr reaches its MCP log.
|
|
28
|
+
from core.mcp_stack import problem as _mcp_stack_problem
|
|
29
|
+
_stack_problem = _mcp_stack_problem()
|
|
30
|
+
if not _stack_problem:
|
|
31
|
+
raise
|
|
32
|
+
print(_stack_problem, file=sys.stderr)
|
|
33
|
+
raise SystemExit(1)
|
|
25
34
|
|
|
26
35
|
from cli.tools import _grants
|
|
27
36
|
from core.host import resolve_host
|
|
@@ -346,6 +346,10 @@ def api_projects_open():
|
|
|
346
346
|
@app.route('/api/health')
|
|
347
347
|
def api_health():
|
|
348
348
|
"""Lightweight health check with connection sources."""
|
|
349
|
+
# ?probe=1 is the liveness form: identity only. The hub sends it for every
|
|
350
|
+
# UI server on every /api/projects poll and only reads "service".
|
|
351
|
+
if request.args.get("probe") not in (None, "", "0", "false"):
|
|
352
|
+
return jsonify({"service": "c3-ui", "probe": True})
|
|
349
353
|
sources = {"c3": True} # If this endpoint responds, C3 API is up
|
|
350
354
|
|
|
351
355
|
# Check Ollama
|
{code_context_control-2.158.3 → code_context_control-2.158.5/code_context_control.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-context-control
|
|
3
|
-
Version: 2.158.
|
|
3
|
+
Version: 2.158.5
|
|
4
4
|
Summary: Local MCP code-intelligence for AI coding tools: surgical search/read/edit, agent-config version history, path-level access + masking guards, and a multi-project hub.
|
|
5
5
|
Author-email: Dimitri Tselenchuk <dtselenc@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -151,6 +151,7 @@ core/grok_payload.py
|
|
|
151
151
|
core/hook_command.py
|
|
152
152
|
core/host.py
|
|
153
153
|
core/ide.py
|
|
154
|
+
core/mcp_stack.py
|
|
154
155
|
core/mcp_toml.py
|
|
155
156
|
core/web_security.py
|
|
156
157
|
oracle/__init__.py
|
|
@@ -487,6 +488,7 @@ tests/test_mask_surfaces.py
|
|
|
487
488
|
tests/test_mcp_host_guard.py
|
|
488
489
|
tests/test_mcp_memory_timeout.py
|
|
489
490
|
tests/test_mcp_server_smoke.py
|
|
491
|
+
tests/test_mcp_stack.py
|
|
490
492
|
tests/test_mcp_toml.py
|
|
491
493
|
tests/test_memory_distiller.py
|
|
492
494
|
tests/test_memory_graph_api.py
|
|
@@ -499,6 +501,7 @@ tests/test_mobile_fleet.py
|
|
|
499
501
|
tests/test_mobile_jobs_ci.py
|
|
500
502
|
tests/test_mobile_override_costs.py
|
|
501
503
|
tests/test_mobile_override_routes.py
|
|
504
|
+
tests/test_mobile_registered_rows.py
|
|
502
505
|
tests/test_mobile_schedules.py
|
|
503
506
|
tests/test_mobile_security_api.py
|
|
504
507
|
tests/test_no_stale_model_pins.py
|
|
@@ -507,6 +510,7 @@ tests/test_notification_discipline.py
|
|
|
507
510
|
tests/test_notification_kinds.py
|
|
508
511
|
tests/test_notification_ref_scope.py
|
|
509
512
|
tests/test_ollama_credentials.py
|
|
513
|
+
tests/test_ollama_probe_cache.py
|
|
510
514
|
tests/test_oracle_api_auth.py
|
|
511
515
|
tests/test_oracle_apikey_api.py
|
|
512
516
|
tests/test_oracle_c3_bridge.py
|
|
@@ -589,6 +593,7 @@ tests/test_time_tracker.py
|
|
|
589
593
|
tests/test_token_telemetry.py
|
|
590
594
|
tests/test_token_tracking.py
|
|
591
595
|
tests/test_tool_registry.py
|
|
596
|
+
tests/test_ui_health_probe.py
|
|
592
597
|
tests/test_ui_jsx_syntax.py
|
|
593
598
|
tests/test_ui_registry.py
|
|
594
599
|
tests/test_upgrade_and_version.py
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"""Whether the installed fastmcp and mcp packages can load together.
|
|
2
|
+
|
|
3
|
+
fastmcp 3.x needs ``mcp<2`` and 4.x needs ``mcp>=2``, and pip installing some
|
|
4
|
+
other tool can move mcp out from under fastmcp anyway. Reads installed
|
|
5
|
+
metadata without importing either package, so the MCP server and the
|
|
6
|
+
SessionStart hook can name the mismatch and the pip command that repairs it.
|
|
7
|
+
"""
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import sys
|
|
11
|
+
from importlib import metadata
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
|
|
14
|
+
# fastmcp-slim declares mcp under these extras; fastmcp 3.2 and earlier
|
|
15
|
+
# declare it unconditionally ("").
|
|
16
|
+
_EXTRAS = ("", "client", "server", "mcp")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def _packaging():
|
|
20
|
+
"""packaging's (Requirement, InvalidRequirement, canonicalize_name), or None."""
|
|
21
|
+
try:
|
|
22
|
+
from packaging.requirements import InvalidRequirement, Requirement
|
|
23
|
+
from packaging.utils import canonicalize_name
|
|
24
|
+
except ImportError:
|
|
25
|
+
try:
|
|
26
|
+
from pip._vendor.packaging.requirements import InvalidRequirement, Requirement
|
|
27
|
+
from pip._vendor.packaging.utils import canonicalize_name
|
|
28
|
+
except ImportError:
|
|
29
|
+
return None
|
|
30
|
+
return Requirement, InvalidRequirement, canonicalize_name
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _version(dist: str) -> str | None:
|
|
34
|
+
try:
|
|
35
|
+
return metadata.version(dist)
|
|
36
|
+
except metadata.PackageNotFoundError:
|
|
37
|
+
return None
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _mcp_requirement(requirement_cls, invalid_requirement, canonicalize_name):
|
|
41
|
+
"""The mcp Requirement the installed fastmcp declares, or None."""
|
|
42
|
+
fastmcp = _version("fastmcp")
|
|
43
|
+
if fastmcp is None:
|
|
44
|
+
return None
|
|
45
|
+
# From 3.3 the fastmcp wheel only depends on fastmcp-slim, which carries
|
|
46
|
+
# the mcp pin. A slim left behind at another version is not the code in
|
|
47
|
+
# use, so read it only when the two versions match.
|
|
48
|
+
dists = ["fastmcp"]
|
|
49
|
+
if _version("fastmcp-slim") == fastmcp:
|
|
50
|
+
dists.insert(0, "fastmcp-slim")
|
|
51
|
+
for dist in dists:
|
|
52
|
+
for raw in metadata.requires(dist) or []:
|
|
53
|
+
try:
|
|
54
|
+
req = requirement_cls(raw)
|
|
55
|
+
except invalid_requirement:
|
|
56
|
+
continue
|
|
57
|
+
if canonicalize_name(req.name) != "mcp":
|
|
58
|
+
continue
|
|
59
|
+
if req.marker is None or any(
|
|
60
|
+
req.marker.evaluate({"extra": e}) for e in _EXTRAS):
|
|
61
|
+
return req
|
|
62
|
+
return None
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def _console_python(executable: str) -> str:
|
|
66
|
+
"""python.exe in place of pythonw.exe: the repair command needs a console."""
|
|
67
|
+
exe = Path(executable)
|
|
68
|
+
if exe.name.lower() == "pythonw.exe":
|
|
69
|
+
console = exe.with_name("python.exe")
|
|
70
|
+
if console.exists():
|
|
71
|
+
return str(console)
|
|
72
|
+
return executable
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def problem(executable: str | None = None) -> str | None:
|
|
76
|
+
"""Describe a fastmcp/mcp mismatch and how to repair it, or return None.
|
|
77
|
+
|
|
78
|
+
None also covers what this cannot judge: fastmcp not installed, no mcp pin
|
|
79
|
+
in its metadata, or no ``packaging`` to read the pin with.
|
|
80
|
+
"""
|
|
81
|
+
tools = _packaging()
|
|
82
|
+
if tools is None:
|
|
83
|
+
return None
|
|
84
|
+
req = _mcp_requirement(*tools)
|
|
85
|
+
if req is None:
|
|
86
|
+
return None
|
|
87
|
+
fastmcp = _version("fastmcp")
|
|
88
|
+
mcp = _version("mcp")
|
|
89
|
+
spec = str(req.specifier)
|
|
90
|
+
python = _console_python(executable or sys.executable)
|
|
91
|
+
pip = f'"{python}" -m pip'
|
|
92
|
+
if mcp is None:
|
|
93
|
+
return (f"C3's MCP server cannot start: fastmcp {fastmcp} needs "
|
|
94
|
+
f"mcp{spec}, and mcp is not installed in {sys.prefix}.\n"
|
|
95
|
+
f'Repair: {pip} install "mcp{spec}", then restart the session.')
|
|
96
|
+
if req.specifier.contains(mcp, prereleases=True):
|
|
97
|
+
return None
|
|
98
|
+
too_new = any(s.operator in ("<", "<=") and not s.contains(mcp, prereleases=True)
|
|
99
|
+
for s in req.specifier)
|
|
100
|
+
lines = [
|
|
101
|
+
f"C3's MCP server cannot start: fastmcp {fastmcp} needs mcp{spec}, "
|
|
102
|
+
f"but mcp {mcp} is installed in {sys.prefix}. Installing another "
|
|
103
|
+
"package that wants a different mcp moves it; pip warns about the "
|
|
104
|
+
"conflict but installs anyway.",
|
|
105
|
+
"Repair with one of:",
|
|
106
|
+
]
|
|
107
|
+
if too_new:
|
|
108
|
+
lines.append(f" {pip} install --upgrade fastmcp "
|
|
109
|
+
f"(moves fastmcp to the release built for mcp {mcp})")
|
|
110
|
+
lines.append(f' {pip} install "mcp{spec}" '
|
|
111
|
+
f"(moves mcp back to what fastmcp {fastmcp} needs)")
|
|
112
|
+
lines.append(f"Then run {pip} check to see whether another package "
|
|
113
|
+
"needs the other mcp line, and restart the session.")
|
|
114
|
+
return "\n".join(lines)
|
|
@@ -474,12 +474,28 @@ def _caller() -> str:
|
|
|
474
474
|
|
|
475
475
|
# ── Path validation ───────────────────────────────────────
|
|
476
476
|
|
|
477
|
-
def
|
|
477
|
+
def _registered_roots() -> list[Path]:
|
|
478
|
+
"""Resolved path of every scanner-registered project with a .c3 dir."""
|
|
479
|
+
if _scanner is None:
|
|
480
|
+
return []
|
|
481
|
+
roots = []
|
|
482
|
+
for proj in _scanner.discover():
|
|
483
|
+
if not proj.get("has_c3"):
|
|
484
|
+
continue
|
|
485
|
+
try:
|
|
486
|
+
roots.append(Path(proj["path"]).resolve())
|
|
487
|
+
except (OSError, ValueError):
|
|
488
|
+
continue
|
|
489
|
+
return roots
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
def _resolve_registered(raw: str, roots: list[Path] | None = None) -> Path | None:
|
|
478
493
|
"""Resolve a request path to a scanner-registered project with a .c3 dir.
|
|
479
494
|
|
|
480
495
|
Case-insensitive on Windows (normcase both sides). Returns None for
|
|
481
496
|
anything unregistered — callers turn that into a 404 without ever
|
|
482
|
-
touching the filesystem at the requested location.
|
|
497
|
+
touching the filesystem at the requested location. ``roots`` is a
|
|
498
|
+
``_registered_roots()`` result to reuse across calls.
|
|
483
499
|
"""
|
|
484
500
|
raw = (raw or "").strip()
|
|
485
501
|
if not raw or _scanner is None:
|
|
@@ -488,19 +504,13 @@ def _resolve_registered(raw: str) -> Path | None:
|
|
|
488
504
|
target = os.path.normcase(str(Path(raw).resolve()))
|
|
489
505
|
except (OSError, ValueError):
|
|
490
506
|
return None
|
|
491
|
-
for
|
|
492
|
-
if
|
|
493
|
-
|
|
494
|
-
try:
|
|
495
|
-
candidate = os.path.normcase(str(Path(proj["path"]).resolve()))
|
|
496
|
-
except (OSError, ValueError):
|
|
497
|
-
continue
|
|
498
|
-
if candidate == target:
|
|
499
|
-
return Path(proj["path"]).resolve()
|
|
507
|
+
for root in (_registered_roots() if roots is None else roots):
|
|
508
|
+
if os.path.normcase(str(root)) == target:
|
|
509
|
+
return root
|
|
500
510
|
return None
|
|
501
511
|
|
|
502
512
|
|
|
503
|
-
def _serving_project(raw: str) -> Path | None:
|
|
513
|
+
def _serving_project(raw: str, roots: list[Path] | None = None) -> Path | None:
|
|
504
514
|
"""The registered project that serves an override row's ``project_path``:
|
|
505
515
|
that project itself, or the deepest registered project containing it.
|
|
506
516
|
|
|
@@ -518,13 +528,7 @@ def _serving_project(raw: str) -> Path | None:
|
|
|
518
528
|
return None
|
|
519
529
|
best: Path | None = None
|
|
520
530
|
best_len = -1
|
|
521
|
-
for
|
|
522
|
-
if not proj.get("has_c3"):
|
|
523
|
-
continue
|
|
524
|
-
try:
|
|
525
|
-
candidate = Path(proj["path"]).resolve()
|
|
526
|
-
except (OSError, ValueError):
|
|
527
|
-
continue
|
|
531
|
+
for candidate in (_registered_roots() if roots is None else roots):
|
|
528
532
|
key = os.path.normcase(str(candidate))
|
|
529
533
|
inside = target == key or target.startswith(key.rstrip("\\/") + os.sep)
|
|
530
534
|
if inside and len(key) > best_len:
|
|
@@ -1022,8 +1026,7 @@ def mobile_jobs():
|
|
|
1022
1026
|
# Cross-project listing must not leak rows for projects this gateway
|
|
1023
1027
|
# does not serve (the store root is shared across every project on
|
|
1024
1028
|
# the machine).
|
|
1025
|
-
rows =
|
|
1026
|
-
if _resolve_registered(str(r.get("project_path") or "")) is not None]
|
|
1029
|
+
rows = _registered_rows(rows)
|
|
1027
1030
|
if status:
|
|
1028
1031
|
rows = [r for r in rows if r.get("status") == status]
|
|
1029
1032
|
rows = rows[:limit]
|
|
@@ -1055,8 +1058,21 @@ def _schedule_row_or_404(schedule_id: str):
|
|
|
1055
1058
|
return row, None
|
|
1056
1059
|
|
|
1057
1060
|
|
|
1058
|
-
def _registered_rows(rows: list) -> list:
|
|
1059
|
-
|
|
1061
|
+
def _registered_rows(rows: list, serving: bool = False) -> list:
|
|
1062
|
+
"""The rows whose ``project_path`` is a registered project, or, with
|
|
1063
|
+
``serving``, lies inside one. Resolves the registered projects once and
|
|
1064
|
+
each distinct row path once, not once per row and project."""
|
|
1065
|
+
roots = _registered_roots()
|
|
1066
|
+
lookup = _serving_project if serving else _resolve_registered
|
|
1067
|
+
keep: dict[str, bool] = {}
|
|
1068
|
+
out = []
|
|
1069
|
+
for r in rows:
|
|
1070
|
+
raw = str(r.get("project_path") or "")
|
|
1071
|
+
if raw not in keep:
|
|
1072
|
+
keep[raw] = lookup(raw, roots) is not None
|
|
1073
|
+
if keep[raw]:
|
|
1074
|
+
out.append(r)
|
|
1075
|
+
return out
|
|
1060
1076
|
|
|
1061
1077
|
|
|
1062
1078
|
def _schedule_call(fn, *args, **kwargs):
|
|
@@ -2484,8 +2500,7 @@ def mobile_overrides_list():
|
|
|
2484
2500
|
# Cross-project listing must not leak rows for projects this gateway
|
|
2485
2501
|
# does not serve — the store is one file across every project on the
|
|
2486
2502
|
# machine, including ones the scanner has since dropped.
|
|
2487
|
-
rows =
|
|
2488
|
-
if _serving_project(str(r.get("project_path") or "")) is not None]
|
|
2503
|
+
rows = _registered_rows(rows, serving=True)
|
|
2489
2504
|
channels = _override_channels(rows)
|
|
2490
2505
|
cards = []
|
|
2491
2506
|
for r in rows:
|
|
@@ -2770,8 +2785,7 @@ def mobile_overrides_costs():
|
|
|
2770
2785
|
# Same rule as /overrides and /jobs: the store is one file for the
|
|
2771
2786
|
# whole machine, and a cross-project view must not name a project
|
|
2772
2787
|
# this token cannot otherwise see.
|
|
2773
|
-
rules =
|
|
2774
|
-
if _serving_project(str(r.get("project_path") or "")) is not None]
|
|
2788
|
+
rules = _registered_rows(rules, serving=True)
|
|
2775
2789
|
return jsonify({"days": days, "rules": rules, "count": len(rules),
|
|
2776
2790
|
"project": project_path})
|
|
2777
2791
|
|
{code_context_control-2.158.3 → code_context_control-2.158.5}/oracle/services/mobile_fleet.py
RENAMED
|
@@ -563,11 +563,10 @@ def mobile_now():
|
|
|
563
563
|
jobs: list[dict] = []
|
|
564
564
|
try:
|
|
565
565
|
from services.shell_jobs import JobStore
|
|
566
|
-
jobs =
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
is not None]
|
|
566
|
+
jobs = m._registered_rows(
|
|
567
|
+
[r for r in JobStore().list_all(project_path=None,
|
|
568
|
+
limit=m._SOURCE_CAP)
|
|
569
|
+
if r.get("status") in ("queued", "running")])
|
|
571
570
|
except Exception:
|
|
572
571
|
jobs = []
|
|
573
572
|
body = fleet_overview.now(_registered(), job_rows=jobs)
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "code-context-control"
|
|
7
|
-
version = "2.158.
|
|
7
|
+
version = "2.158.5"
|
|
8
8
|
description = "Local MCP code-intelligence for AI coding tools: surgical search/read/edit, agent-config version history, path-level access + masking guards, and a multi-project hub."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -405,11 +405,18 @@ class FileMemoryStore:
|
|
|
405
405
|
Lists the store directory on every call but reads only records whose
|
|
406
406
|
filename it has not seen before; removed records drop out.
|
|
407
407
|
"""
|
|
408
|
+
return list(self._tracked().values())
|
|
409
|
+
|
|
410
|
+
def _tracked(self) -> dict[str, str]:
|
|
411
|
+
"""Record filename -> stored path for every readable record (a copy).
|
|
412
|
+
|
|
413
|
+
The refresh behind list_tracked(); {} when the store cannot be listed.
|
|
414
|
+
"""
|
|
408
415
|
try:
|
|
409
416
|
names = {e.name for e in os.scandir(self.store_dir)
|
|
410
417
|
if e.name.endswith(".json") and not e.name.startswith("_")}
|
|
411
418
|
except OSError:
|
|
412
|
-
return
|
|
419
|
+
return {}
|
|
413
420
|
with self._tracked_lock:
|
|
414
421
|
known = self._tracked_paths
|
|
415
422
|
for gone in known.keys() - names:
|
|
@@ -422,7 +429,7 @@ class FileMemoryStore:
|
|
|
422
429
|
continue
|
|
423
430
|
if path:
|
|
424
431
|
known[name] = path
|
|
425
|
-
return
|
|
432
|
+
return dict(known)
|
|
426
433
|
|
|
427
434
|
def prune_stale(self) -> list[str]:
|
|
428
435
|
"""Remove records whose source file no longer exists on disk.
|
|
@@ -432,31 +439,39 @@ class FileMemoryStore:
|
|
|
432
439
|
by the retention sweep. Records that fail to parse are left alone
|
|
433
440
|
(unreadable is not the same as stale). Returns the pruned relative
|
|
434
441
|
paths. Never raises.
|
|
442
|
+
|
|
443
|
+
Paths come from the list_tracked() cache, and existence is checked
|
|
444
|
+
with one listing per parent directory instead of a stat per record.
|
|
445
|
+
A name missing from its listing is confirmed with exists() before its
|
|
446
|
+
record is deleted, so a case-insensitive filesystem or an odd path
|
|
447
|
+
costs a stat, never a record.
|
|
435
448
|
"""
|
|
436
449
|
pruned: list[str] = []
|
|
437
450
|
try:
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
data = json.load(fh)
|
|
444
|
-
except Exception:
|
|
445
|
-
continue
|
|
446
|
-
rel = data.get("path", "")
|
|
447
|
-
if not rel:
|
|
448
|
-
continue
|
|
449
|
-
try:
|
|
450
|
-
if (self.project_path / rel).exists():
|
|
451
|
-
continue
|
|
452
|
-
except OSError:
|
|
453
|
-
continue
|
|
451
|
+
by_dir: dict[str, list[tuple[str, str, str]]] = {}
|
|
452
|
+
for name, rel in self._tracked().items():
|
|
453
|
+
parent, _, base = rel.replace("\\", "/").rpartition("/")
|
|
454
|
+
by_dir.setdefault(parent, []).append((name, rel, base))
|
|
455
|
+
for parent, entries in by_dir.items():
|
|
454
456
|
try:
|
|
455
|
-
|
|
457
|
+
with os.scandir(self.project_path / parent) as it:
|
|
458
|
+
present = {e.name for e in it}
|
|
456
459
|
except OSError:
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
+
present = set()
|
|
461
|
+
for name, rel, base in entries:
|
|
462
|
+
if base in present:
|
|
463
|
+
continue
|
|
464
|
+
try:
|
|
465
|
+
if (self.project_path / rel).exists():
|
|
466
|
+
continue
|
|
467
|
+
except OSError:
|
|
468
|
+
continue
|
|
469
|
+
try:
|
|
470
|
+
(self.store_dir / name).unlink()
|
|
471
|
+
except OSError:
|
|
472
|
+
continue
|
|
473
|
+
pruned.append(rel)
|
|
474
|
+
self._map_cache.pop(rel.replace("\\", "/"), None)
|
|
460
475
|
except Exception:
|
|
461
476
|
return pruned
|
|
462
477
|
if pruned:
|
|
@@ -7,6 +7,8 @@ Includes integrated LLM response cache (formerly llm_cache.py).
|
|
|
7
7
|
"""
|
|
8
8
|
import hashlib
|
|
9
9
|
import json
|
|
10
|
+
import threading
|
|
11
|
+
import time
|
|
10
12
|
import urllib.error
|
|
11
13
|
import urllib.request
|
|
12
14
|
from pathlib import Path
|
|
@@ -56,46 +58,76 @@ class LLMCache:
|
|
|
56
58
|
pass
|
|
57
59
|
|
|
58
60
|
|
|
61
|
+
# Answers from /api/tags, shared by every OllamaClient in the process:
|
|
62
|
+
# base_url -> {"avail": (monotonic ts, bool), "models": (ts, list | None)}.
|
|
63
|
+
# Callers build clients per request and per agent, so a per-instance cache let
|
|
64
|
+
# each of them probe the server again.
|
|
65
|
+
_PROBE_TTL_SECONDS = 30.0
|
|
66
|
+
_probe_cache: dict[str, dict[str, tuple[float, object]]] = {}
|
|
67
|
+
_probe_lock = threading.Lock()
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def clear_probe_cache() -> None:
|
|
71
|
+
"""Forget every cached availability and model-list answer."""
|
|
72
|
+
with _probe_lock:
|
|
73
|
+
_probe_cache.clear()
|
|
74
|
+
|
|
75
|
+
|
|
59
76
|
class OllamaClient:
|
|
60
77
|
"""Minimal Ollama REST client using urllib."""
|
|
61
78
|
|
|
62
|
-
_AVAIL_TTL_SECONDS = 10.0
|
|
63
|
-
|
|
64
79
|
def __init__(self, base_url: str = DEFAULT_BASE_URL, cache_dir: str = ".c3/cache/llm"):
|
|
65
80
|
self.base_url = base_url.rstrip("/")
|
|
66
81
|
self.cache = LLMCache(cache_dir)
|
|
67
|
-
|
|
68
|
-
|
|
82
|
+
|
|
83
|
+
def _cached(self, key: str):
|
|
84
|
+
with _probe_lock:
|
|
85
|
+
hit = _probe_cache.get(self.base_url, {}).get(key)
|
|
86
|
+
if hit is not None and time.monotonic() - hit[0] < _PROBE_TTL_SECONDS:
|
|
87
|
+
return hit
|
|
88
|
+
return None
|
|
89
|
+
|
|
90
|
+
def _remember(self, key: str, value) -> None:
|
|
91
|
+
with _probe_lock:
|
|
92
|
+
_probe_cache.setdefault(self.base_url, {})[key] = (time.monotonic(), value)
|
|
69
93
|
|
|
70
94
|
# ── Availability ──────────────────────────────────────
|
|
71
95
|
|
|
72
96
|
def is_available(self, timeout: int | None = None) -> bool:
|
|
73
|
-
"""Check if Ollama is reachable.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return self._avail_value
|
|
97
|
+
"""Check if Ollama is reachable. The answer is shared process-wide for
|
|
98
|
+
``_PROBE_TTL_SECONDS``."""
|
|
99
|
+
hit = self._cached("avail")
|
|
100
|
+
if hit is not None:
|
|
101
|
+
return hit[1]
|
|
79
102
|
try:
|
|
80
103
|
req = urllib.request.Request(f"{self.base_url}/api/tags")
|
|
81
104
|
with urllib.request.urlopen(req, timeout=timeout or _TIMEOUT):
|
|
82
|
-
|
|
105
|
+
available = True
|
|
83
106
|
except Exception:
|
|
84
|
-
|
|
85
|
-
self.
|
|
86
|
-
return
|
|
107
|
+
available = False
|
|
108
|
+
self._remember("avail", available)
|
|
109
|
+
return available
|
|
87
110
|
|
|
88
111
|
# ── Models ────────────────────────────────────────────
|
|
89
112
|
|
|
90
113
|
def list_models(self) -> list[str] | None:
|
|
91
|
-
"""Return list of locally available model names, or None on failure.
|
|
114
|
+
"""Return list of locally available model names, or None on failure.
|
|
115
|
+
The answer is shared process-wide for ``_PROBE_TTL_SECONDS``."""
|
|
116
|
+
hit = self._cached("models")
|
|
117
|
+
if hit is not None:
|
|
118
|
+
return list(hit[1]) if hit[1] is not None else None
|
|
92
119
|
try:
|
|
93
120
|
req = urllib.request.Request(f"{self.base_url}/api/tags")
|
|
94
121
|
with urllib.request.urlopen(req, timeout=_TIMEOUT) as resp:
|
|
95
122
|
data = json.loads(resp.read())
|
|
96
|
-
|
|
123
|
+
models = [m["name"] for m in data.get("models", [])]
|
|
97
124
|
except Exception:
|
|
98
|
-
|
|
125
|
+
models = None
|
|
126
|
+
self._remember("models", models)
|
|
127
|
+
if models is not None:
|
|
128
|
+
self._remember("avail", True)
|
|
129
|
+
return list(models)
|
|
130
|
+
return None
|
|
99
131
|
|
|
100
132
|
def has_model(self, model: str) -> bool:
|
|
101
133
|
"""Check if a specific model is pulled locally."""
|
|
@@ -101,7 +101,7 @@ class ProjectManager:
|
|
|
101
101
|
def _verify_c3_session(self, port: int) -> bool:
|
|
102
102
|
"""Verify that a given port is actually a C3 session UI."""
|
|
103
103
|
try:
|
|
104
|
-
url = f"http://127.0.0.1:{port}/api/health"
|
|
104
|
+
url = f"http://127.0.0.1:{port}/api/health?probe=1"
|
|
105
105
|
# 2 s, not 0.8: a server re-indexing after a burst of file changes
|
|
106
106
|
# answers late, and a late answer must not read as "not C3".
|
|
107
107
|
with urllib.request.urlopen(url, timeout=2.0) as r:
|