code-context-control 2.158.4__tar.gz → 2.159.0__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.4/code_context_control.egg-info → code_context_control-2.159.0}/PKG-INFO +1 -1
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/_hook_utils.py +7 -4
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/c3.py +6 -1
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_dispatch.py +71 -16
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_server.py +41 -17
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/mcp_server.py +5 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/server.py +4 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/delegate.py +67 -4
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/shell.py +4 -3
- {code_context_control-2.158.4 → code_context_control-2.159.0/code_context_control.egg-info}/PKG-INFO +1 -1
- {code_context_control-2.158.4 → code_context_control-2.159.0}/code_context_control.egg-info/SOURCES.txt +12 -0
- code_context_control-2.159.0/core/blas_threads.py +33 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/mcp_oracle.py +27 -1
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/mobile_api.py +104 -33
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/mobile_fleet.py +4 -5
- {code_context_control-2.158.4 → code_context_control-2.159.0}/pyproject.toml +1 -1
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/access_guard.py +132 -18
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/activity_log.py +57 -43
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/atomic_json.py +8 -4
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/builtin_leases.py +4 -3
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/edit_ledger.py +183 -50
- code_context_control-2.159.0/services/file_memo.py +50 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/file_memory.py +104 -28
- code_context_control-2.159.0/services/keyring_read.py +222 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ollama_client.py +49 -17
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/project_manager.py +1 -1
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/retention.py +81 -2
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/task_store.py +13 -6
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/validation_cache.py +10 -7
- code_context_control-2.159.0/tests/test_access_guard_cache.py +179 -0
- code_context_control-2.159.0/tests/test_blas_threads.py +83 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_version_probe.py +112 -0
- code_context_control-2.159.0/tests/test_edit_ledger_scan.py +303 -0
- code_context_control-2.159.0/tests/test_file_memo.py +142 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_dispatch.py +99 -0
- code_context_control-2.159.0/tests/test_keyring_read.py +283 -0
- code_context_control-2.159.0/tests/test_mobile_registered_rows.py +85 -0
- code_context_control-2.159.0/tests/test_ollama_probe_cache.py +85 -0
- code_context_control-2.159.0/tests/test_oracle_idle_work.py +200 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_retention.py +149 -0
- code_context_control-2.159.0/tests/test_ui_health_probe.py +64 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/LICENSE +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/README.md +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/_shell_writes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/commands/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/commands/common.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/commands/parser.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/docs.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/edits.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/access.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/bitbucket.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/ci.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/credentials.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/delegate.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/getting-started.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/index.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/jira.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/masking.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/oracle.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/sessions.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/shared.css +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/tools.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/guide/workflow.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_access_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_agent_model.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_artifact.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_auto_snapshot.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_c3_signal.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_c3read.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_codex_lifecycle.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_edit_ledger.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_edit_unlock.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_filter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_ghost_files.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_pretool_enforce.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_prompt_recall.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_read.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_session_end.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_session_open.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_session_stats.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hook_terse_advisor.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/app.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/add_project.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/config_editor.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/drill_artifacts.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/drill_health.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/drill_panel.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/drill_subprojects.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/drill_tasks.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/drill_views.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/global_search.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/hub_access.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/hub_ci.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/hub_cred_audit.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/hub_credentials.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/hub_enforcement.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/hub_locks.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/hub_schedules.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/hub_sessions.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/hub_tokens.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/mcp_manager.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/modals.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/project_card.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/project_tree.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/session_drawer.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/settings_modal.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/sidebar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/summary_bar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/task_board.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/toasts.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/components/topbar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui/state.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/hub_ui.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/mcp_proxy.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/progress.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/_edit_report.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/_grants.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/_helpers.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/_json_reply.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/agent.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/artifacts.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/bitbucket.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/ci.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/compress.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/edit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/edit_verify.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/edits.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/federate.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/filter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/impact.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/jira.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/locks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/memory.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/override.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/project.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/read.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/schedule.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/search.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/session.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/shell_job.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/shell_nudge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/shell_parsers.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/shell_render.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/status.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/tasks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/tools/validate.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/api.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/app.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/access.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/bitbucket.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/chat.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/credentials.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/dashboard.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/edits.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/enforcement.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/instructions.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/jira.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/memory.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/sessions.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/settings.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/sidebar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/components/tasks.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/icons.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/pm_shared.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/shared.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui/theme.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui_legacy.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/cli/ui_nano.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/code_context_control.egg-info/dependency_links.txt +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/code_context_control.egg-info/entry_points.txt +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/code_context_control.egg-info/requires.txt +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/code_context_control.egg-info/top_level.txt +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/codex_patch.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/config.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/grok_payload.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/hook_command.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/host.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/ide.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/mcp_stack.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/mcp_toml.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/core/web_security.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/config.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/listeners.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/oracle_server.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/oracle_ui.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/activity_reporter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/api_auth.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/c3_bridge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/chat_engine.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/chat_poll.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/chat_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/client_tokens.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/cross_memory.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/discovery_audit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/federated_graph.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/health_checker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/insight_engine.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/local_session.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/memory_reader.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/memory_writer.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/project_scanner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/review_agent.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/schedule_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/scheduler.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/tool_executor.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/services/tool_registry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/activity.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/agents.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/app.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/busy.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/chat/conversations.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/chat/input.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/chat/markdown.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/chat/send.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/chat/stream_renderer.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/chat/toolbar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/core.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/crossgraph.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/header.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/insights.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/projects.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/qrcode.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/settings.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/suggestions.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/oracle/ui/theme_tabs.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/access_telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/agent_base.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/agent_downshift.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/agent_locks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/agents.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/agents_workflow.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/artifact_defs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/artifact_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/auto_memory.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/background_service.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bench/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bench/delegate_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bench/delegate_write_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bench/external/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bench/external/aider_polyglot.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bench/external/swe_bench.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bench/map_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bench/search_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bench/shell_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/benchmark_dashboard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bitbucket_client.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/bitbucket_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ci_act.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ci_cache.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ci_expr.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ci_failures.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ci_github.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ci_impact.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ci_intel.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ci_runner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ci_workflow.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/circuit_breaker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/claude_md.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/codex_integration.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/codex_transcript.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/compressor.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/context_snapshot.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/conversation_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/cred_audit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/cred_telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/credential_backup.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/credential_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/cron_expr.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/delegate_agents.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/delegate_hints.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/delegate_write.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/dir_map.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/doc_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/e2e_benchmark.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/e2e_evaluator.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/e2e_tasks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/edit_blobs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/embedding_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/enforcement_policy.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/error_reporting.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/file_map.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/fleet_overview.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/git_context.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/grok_integration.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/grok_transcript.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/host_handoff.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/host_sessions.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/hub_service.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/index_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/indexer.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/jira_client.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/jira_cloud.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/jira_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/jira_data_center.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/jira_links.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/lexical_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/mask_activation.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/mask_mirror.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/mask_presets.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/memory.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/memory_consolidator.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/memory_distiller.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/memory_graph.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/memory_grounder.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/memory_queue.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/memory_scorer.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/metrics.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/notifications.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ollama_bridge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ollama_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/oracle_service.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/output_filter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/override_costs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/override_grants.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/override_policy.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/override_requests.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/override_wake.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/parser.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/project_runtime.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/protocol.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/proxy_state.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/read_stamps.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/repo_map.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/repo_shape.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/reranker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/retrieval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/retrieval_broker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/router.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/runtime.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/scanner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/schedule_approvals.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/schedule_runner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/schedule_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/session_benchmark.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/session_catalog.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/session_live.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/session_manager.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/session_preloader.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/shell_jobs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/shell_output.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/subprojects.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/terminal_launch.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/text_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/time_tracker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/tool_classifier.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/transcript_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/ui_registry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/vector_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/watcher.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/services/win_subprocess.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/setup.cfg +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_access_builtin_optout.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_access_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_access_guard_meta.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_access_guard_shell_project.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_access_guard_surfaces.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_access_guard_wiring.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_activity_log_find_last.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_activity_reporter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_agent_locks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_aider_polyglot.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_antigravity_transition.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_artifact_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_artifact_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_atomic_json.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_background_service.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_bitbucket_cli_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_bitbucket_client.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_bitbucket_config_fallback.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_bitbucket_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_bitbucket_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_builtin_leases.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_builtin_modes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_c3_bridge_project_artifacts.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_c3_shell.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_chat_poll.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ci_act.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ci_cache.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ci_dag_ownership.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ci_expr.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ci_impact.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ci_intel.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ci_runner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ci_workflow.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_circuit_breaker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_claude_md_merge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_claude_md_updater.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_cli_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_codex_mcp_transport.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_codex_native.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_compressor_large_file.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_confirm_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_confirm_guard_wiring.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_cooccurrence_bounds.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_cred_audit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_cred_telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_credential_backup.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_credential_login_kind.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_credential_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_credential_ui_parity.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_credentials_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_credentials_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_creds_cli_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_cron_expr.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_adoption_d4.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_auto.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_cascade.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_claude_d1.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_grok.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_host_d2.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_scout_d3.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_telemetry_d0.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_thinking_cap.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_tuning.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_write.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_delegate_write_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_dir_map_c3.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_e2e_benchmark.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_eol_atomic.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_ledger_deadline.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_ledger_hook.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_locking.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_normalization.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_outcome.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_report.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_revert.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_stale.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_edit_verify.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_embedding_index_corrupt_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_embedding_index_deadlock.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_embedding_store_safety.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_enforcement_flip.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_enforcement_policy.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_enforcement_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_env_parser.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_failed_calls_do_not_unlock.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_federated_graph.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_file_map_c1.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_file_memory_fast_paths.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_filter_backoff.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ghost_files.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ghost_generation.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_git_branch_awareness.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_grok_native.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_access_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_codex_compat.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_grok_compat.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_pretool_enforce.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_prompt_recall.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_session_end.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_state.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hook_utf8_stdio.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_host_handoff.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_host_rebind.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_access_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_builtin_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_credentials_route.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_credentials_routes_write.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_enforcement_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_hook_migration.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_ide_cmd.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_inspect_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_locks_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_oracle_service_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_override_policy_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_override_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_rules_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_schedules_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_server_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_sessions_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_hub_subproject_links.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ide_workflow_adaptation.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_index_cap_not_hardcoded.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_init_clear_preserves_user_content.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_init_scan.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_install_mcp_entrypoint.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_jira_cli_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_jira_client.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_jira_config_fallback.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_jira_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_jira_links.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_jira_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_jira_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_json_reply.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_large_files_c4.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_lazy_store_init.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_map_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_map_telemetry_c0.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mask_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mask_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mask_surfaces.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mcp_host_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mcp_memory_timeout.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mcp_server_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mcp_stack.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mcp_toml.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_memory_distiller.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_memory_graph_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_memory_queue.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_memory_system.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mobile_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mobile_clients.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mobile_extras.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mobile_fleet.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mobile_jobs_ci.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mobile_override_costs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mobile_override_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mobile_schedules.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_mobile_security_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_no_stale_model_pins.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_notification_dedup.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_notification_discipline.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_notification_kinds.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_notification_ref_scope.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ollama_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_api_auth.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_apikey_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_c3_bridge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_chat_engine.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_chat_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_discovery_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_discovery_audit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_health_probe.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_local_auth.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_loopback.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_ollama_bridge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_scanner_cache.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_security_fixes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_session_bootstrap.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_subproject_awareness.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_oracle_ui_bundle.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_output_filter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_override_costs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_override_grants.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_override_grants_mcp.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_override_requests.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_override_wake.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_permissions.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_pm_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_project_lease_identity.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_project_manager.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_project_manager_merge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_project_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_quarantine_sweep.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_read_coercion.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_read_edit_parity.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_read_outside_root.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_related_facts.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_repo_map.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_repo_shape.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_response_boilerplate.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_review_digest.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_schedule_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_schedule_approvals.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_schedule_mcp.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_schedule_runner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_schedule_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_scheduler_tick.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_search_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_search_p1.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_search_p2.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_search_p2b.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_search_p3.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_search_p4.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_search_p5.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_service_durability.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_session_benchmark.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_session_budget.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_session_catalog.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_session_live.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_session_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_budget_s1.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_creds.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_jobs_argv.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_jobs_s3.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_nudge_s4.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_output.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_parsers_s2.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_robustness.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_telemetry_s0.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_write_ledger.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_shell_writes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_subproject_clear_scope.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_subproject_depth_consumers.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_subproject_exclusion.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_subproject_federation.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_subproject_linkage_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_subprojects.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_swe_bench.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_task_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_task_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_time_tracker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_token_telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_token_tracking.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_tool_registry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ui_jsx_syntax.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_ui_registry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_upgrade_and_version.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_validate.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_vault_write_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_version_sync.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_watcher_pruning.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_web_security.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tests/test_windows_reliability.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/backend.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/main.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/benchmark_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/claudemd_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/compress_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/index_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/init_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/mcp_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/optimize_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/pipe_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/projects_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/search_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/session_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/stats.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/screens/ui_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.159.0}/tui/theme.tcss +0 -0
{code_context_control-2.158.4/code_context_control.egg-info → code_context_control-2.159.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-context-control
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.159.0
|
|
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
|
|
@@ -10,7 +10,6 @@ import os
|
|
|
10
10
|
import re
|
|
11
11
|
import shlex
|
|
12
12
|
import sys
|
|
13
|
-
import traceback
|
|
14
13
|
from datetime import datetime, timezone
|
|
15
14
|
from pathlib import Path
|
|
16
15
|
|
|
@@ -96,6 +95,7 @@ def log_hook_error(hook_name: str, exc: BaseException) -> None:
|
|
|
96
95
|
except Exception:
|
|
97
96
|
pass
|
|
98
97
|
ts = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
|
98
|
+
import traceback # noqa: PLC0415 — ~7 ms; only a failing hook pays it
|
|
99
99
|
tb = traceback.format_exc().strip()
|
|
100
100
|
line = f"[{ts}] [{hook_name}] {type(exc).__name__}: {exc}\n{tb}\n---\n"
|
|
101
101
|
with open(log_file, "a", encoding="utf-8") as f:
|
|
@@ -411,9 +411,12 @@ def detect_host(data: dict, explicit_host: str | None = None) -> str:
|
|
|
411
411
|
return aliases[named]
|
|
412
412
|
if not isinstance(data, dict):
|
|
413
413
|
return HOST_CLAUDE
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
414
|
+
# Grok's envelope is the only one with camelCase hookEventName; checking
|
|
415
|
+
# for it first spares every other host the ~5 ms import of `core`.
|
|
416
|
+
if "hookEventName" in data:
|
|
417
|
+
from core.grok_payload import is_grok_payload
|
|
418
|
+
if is_grok_payload(data):
|
|
419
|
+
return HOST_GROK
|
|
417
420
|
if data.get("turn_id"):
|
|
418
421
|
return HOST_CODEX
|
|
419
422
|
response = data.get("tool_response")
|
|
@@ -45,6 +45,11 @@ from pathlib import Path
|
|
|
45
45
|
# Add parent to path for imports
|
|
46
46
|
sys.path.insert(0, str(Path(__file__).parent.parent))
|
|
47
47
|
|
|
48
|
+
# Before anything can import numpy: `c3 ui` builds a full runtime.
|
|
49
|
+
from core import blas_threads # noqa: E402
|
|
50
|
+
|
|
51
|
+
blas_threads.limit()
|
|
52
|
+
|
|
48
53
|
from cli.commands.common import CommandDeps
|
|
49
54
|
from cli.commands.common import cmd_claudemd as common_cmd_claudemd
|
|
50
55
|
from cli.commands.common import cmd_compress as common_cmd_compress
|
|
@@ -91,7 +96,7 @@ console = Console() if HAS_RICH else None
|
|
|
91
96
|
# Config
|
|
92
97
|
CONFIG_DIR = ".c3"
|
|
93
98
|
CONFIG_FILE = ".c3/config.json"
|
|
94
|
-
__version__ = "2.
|
|
99
|
+
__version__ = "2.159.0"
|
|
95
100
|
|
|
96
101
|
# The PreToolUse matcher for native subagent calls (installer and hub migration).
|
|
97
102
|
AGENT_MATCHER = "Agent|Task"
|
|
@@ -36,7 +36,6 @@ emit a short "[c3:hook-error] ..." additionalContext warning so enforcement
|
|
|
36
36
|
cannot silently stop enforcing.
|
|
37
37
|
"""
|
|
38
38
|
import importlib
|
|
39
|
-
import inspect
|
|
40
39
|
import json
|
|
41
40
|
import sys
|
|
42
41
|
from pathlib import Path
|
|
@@ -239,15 +238,31 @@ def _call_run(run_fn, module_name: str, event: str, payload: dict,
|
|
|
239
238
|
two-argument lambdas, and a legacy single-file hook must keep working.
|
|
240
239
|
"""
|
|
241
240
|
if event == "pretool" and module_name in _DEFER_CONSUME:
|
|
242
|
-
|
|
243
|
-
accepts = "defer_consume" in inspect.signature(run_fn).parameters
|
|
244
|
-
except (TypeError, ValueError):
|
|
245
|
-
accepts = False
|
|
246
|
-
if accepts:
|
|
241
|
+
if _takes_param(run_fn, "defer_consume"):
|
|
247
242
|
return run_fn(payload, project_path, defer_consume=True)
|
|
248
243
|
return run_fn(payload, project_path)
|
|
249
244
|
|
|
250
245
|
|
|
246
|
+
def _takes_param(fn, name: str) -> bool:
|
|
247
|
+
"""True when *fn* declares a parameter called *name*.
|
|
248
|
+
|
|
249
|
+
A plain function answers from its code object. ``inspect`` costs every
|
|
250
|
+
hook process about 7 ms to import, and this check runs on every
|
|
251
|
+
PreToolUse, so it is only imported for other callables (partials,
|
|
252
|
+
callable objects, and decorated functions, whose wrapper's code would
|
|
253
|
+
hide the signature ``inspect`` follows ``__wrapped__`` to).
|
|
254
|
+
"""
|
|
255
|
+
code = getattr(fn, "__code__", None)
|
|
256
|
+
if code is not None and not hasattr(fn, "__wrapped__"):
|
|
257
|
+
n_params = code.co_argcount + code.co_kwonlyargcount
|
|
258
|
+
return name in code.co_varnames[:n_params]
|
|
259
|
+
import inspect # noqa: PLC0415 — rare path, see above
|
|
260
|
+
try:
|
|
261
|
+
return name in inspect.signature(fn).parameters
|
|
262
|
+
except (TypeError, ValueError):
|
|
263
|
+
return False
|
|
264
|
+
|
|
265
|
+
|
|
251
266
|
def _grant_lost_deny() -> dict:
|
|
252
267
|
return {
|
|
253
268
|
"hookSpecificOutput": {
|
|
@@ -561,17 +576,57 @@ def dispatch(event: str, payload: dict, project_path: Path | None = None) -> dic
|
|
|
561
576
|
return merge_outputs(outputs, warnings, event=event, host=host)
|
|
562
577
|
|
|
563
578
|
|
|
579
|
+
_HOSTS = ("codex", "claude", "claude-code", "gemini", "grok")
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
def _parse_args(argv: list) -> tuple:
|
|
583
|
+
"""``(event, host, project)`` as main()'s argparse parser reads *argv*.
|
|
584
|
+
|
|
585
|
+
Hook commands are written as an event plus ``--host NAME`` or
|
|
586
|
+
``--project PATH`` (either also as ``--opt=value``), and those shapes are
|
|
587
|
+
read here: argparse costs every hook process about 18 ms on Python 3.14,
|
|
588
|
+
because each add_argument builds a help formatter, which imports shutil
|
|
589
|
+
and _colorize. Anything else (help, an abbreviation, an unknown or
|
|
590
|
+
invalid argument) goes to argparse, which answers or exits as before.
|
|
591
|
+
"""
|
|
592
|
+
event, opts = None, {"--host": None, "--project": None}
|
|
593
|
+
i = 0
|
|
594
|
+
while i < len(argv):
|
|
595
|
+
tok = argv[i]
|
|
596
|
+
name, eq, value = tok.partition("=")
|
|
597
|
+
if name in opts:
|
|
598
|
+
if not eq:
|
|
599
|
+
if i + 1 >= len(argv) or argv[i + 1].startswith("-"):
|
|
600
|
+
return _parse_args_slow(argv)
|
|
601
|
+
i += 1
|
|
602
|
+
value = argv[i]
|
|
603
|
+
opts[name] = value
|
|
604
|
+
elif event is None and not tok.startswith("-"):
|
|
605
|
+
event = tok
|
|
606
|
+
else:
|
|
607
|
+
return _parse_args_slow(argv)
|
|
608
|
+
i += 1
|
|
609
|
+
if opts["--host"] is not None and opts["--host"] not in _HOSTS:
|
|
610
|
+
return _parse_args_slow(argv)
|
|
611
|
+
return event or "", opts["--host"], opts["--project"]
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
def _parse_args_slow(argv: list) -> tuple:
|
|
615
|
+
import argparse # noqa: PLC0415 — see _parse_args
|
|
616
|
+
parser = argparse.ArgumentParser()
|
|
617
|
+
parser.add_argument("event", nargs="?", default="")
|
|
618
|
+
parser.add_argument("--host", choices=list(_HOSTS))
|
|
619
|
+
parser.add_argument("--project")
|
|
620
|
+
args = parser.parse_args(argv)
|
|
621
|
+
return args.event, args.host, args.project
|
|
622
|
+
|
|
623
|
+
|
|
564
624
|
def main() -> None:
|
|
565
625
|
# Windows hook subprocesses get cp1252 pipes; sub-hook _text may carry
|
|
566
626
|
# box-drawing chars / emoji, so print(text) below would UnicodeEncodeError.
|
|
567
627
|
_hook_utils.ensure_utf8_stdio()
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
parser.add_argument("event", nargs="?", default="")
|
|
571
|
-
parser.add_argument("--host", choices=["codex", "claude", "claude-code", "gemini", "grok"])
|
|
572
|
-
parser.add_argument("--project")
|
|
573
|
-
args = parser.parse_args()
|
|
574
|
-
event = args.event.strip().lower()
|
|
628
|
+
event, host, project = _parse_args(sys.argv[1:])
|
|
629
|
+
event = event.strip().lower()
|
|
575
630
|
if event not in (*VALID_EVENTS, "start", "compact", "end"):
|
|
576
631
|
log_hook_error(
|
|
577
632
|
"hook_dispatch",
|
|
@@ -592,9 +647,9 @@ def main() -> None:
|
|
|
592
647
|
return
|
|
593
648
|
|
|
594
649
|
try:
|
|
595
|
-
if
|
|
596
|
-
payload["_c3_host"] =
|
|
597
|
-
output = dispatch(event, payload, Path(
|
|
650
|
+
if host:
|
|
651
|
+
payload["_c3_host"] = host
|
|
652
|
+
output = dispatch(event, payload, Path(project).resolve() if project else None)
|
|
598
653
|
except Exception as exc:
|
|
599
654
|
# The dispatcher itself failing is critical — say so. Route the notice
|
|
600
655
|
# through merge_outputs so even the panic path speaks the host's
|
|
@@ -34,6 +34,7 @@ from core.ide import PROFILES, detect_ide, get_profile, load_ide_config, normali
|
|
|
34
34
|
from services import access_guard, fleet_overview
|
|
35
35
|
from services.activity_log import ActivityLog
|
|
36
36
|
from services.atomic_json import write_json_atomic
|
|
37
|
+
from services.file_memo import FileMemo
|
|
37
38
|
from services.project_manager import ProjectManager
|
|
38
39
|
from services.tool_classifier import CATEGORIES
|
|
39
40
|
|
|
@@ -531,27 +532,33 @@ def api_hub_config_set():
|
|
|
531
532
|
|
|
532
533
|
# ─── Routes: projects ────────────────────────────────────────────────────────
|
|
533
534
|
|
|
534
|
-
def
|
|
535
|
-
"""Count unacknowledged notifications for a project by reading its .c3/notifications.jsonl."""
|
|
536
|
-
nf = Path(project_path) / ".c3" / "notifications.jsonl"
|
|
537
|
-
if not nf.exists():
|
|
538
|
-
return 0
|
|
535
|
+
def _count_unacknowledged(nf) -> int:
|
|
539
536
|
count = 0
|
|
540
537
|
try:
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
538
|
+
with open(nf, encoding="utf-8", errors="replace") as fh:
|
|
539
|
+
for line in fh:
|
|
540
|
+
if not line.strip():
|
|
541
|
+
continue
|
|
542
|
+
try:
|
|
543
|
+
entry = json.loads(line)
|
|
544
|
+
if not entry.get("acknowledged"):
|
|
545
|
+
count += 1
|
|
546
|
+
except (json.JSONDecodeError, AttributeError):
|
|
547
|
+
continue
|
|
550
548
|
except OSError:
|
|
551
549
|
pass
|
|
552
550
|
return count
|
|
553
551
|
|
|
554
552
|
|
|
553
|
+
# /api/projects asks for every registered project on every poll.
|
|
554
|
+
_notification_counts = FileMemo(_count_unacknowledged)
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
def _notification_count(project_path: str) -> int:
|
|
558
|
+
"""Count unacknowledged notifications for a project by reading its .c3/notifications.jsonl."""
|
|
559
|
+
return _notification_counts.get(Path(project_path) / ".c3" / "notifications.jsonl")
|
|
560
|
+
|
|
561
|
+
|
|
555
562
|
_sub_links_cache = {"fp": None, "ts": 0.0, "data": None, "computing": False}
|
|
556
563
|
_sub_links_lock = threading.Lock()
|
|
557
564
|
_SUB_LINKS_TTL = 15.0
|
|
@@ -578,14 +585,31 @@ def _sub_federation_errors(sub):
|
|
|
578
585
|
return ""
|
|
579
586
|
|
|
580
587
|
|
|
588
|
+
_REALPATH_TTL_S = 30.0
|
|
589
|
+
_realpath_cache: dict = {}
|
|
590
|
+
|
|
591
|
+
|
|
581
592
|
def _norm_realpath(s):
|
|
582
593
|
"""resolve()+normcase, matching services.subprojects._norm — plain
|
|
583
594
|
normcase alone would flag symlinked/8.3/trailing-slash registry rows
|
|
584
|
-
as false orphans that Reconcile then denies.
|
|
595
|
+
as false orphans that Reconcile then denies.
|
|
596
|
+
|
|
597
|
+
Kept for _REALPATH_TTL_S: every /api/projects poll resolves each row's
|
|
598
|
+
path several times, and a resolve() costs a filesystem round trip.
|
|
599
|
+
"""
|
|
600
|
+
key = str(s or "")
|
|
601
|
+
now = time.monotonic()
|
|
602
|
+
hit = _realpath_cache.get(key)
|
|
603
|
+
if hit is not None and now < hit[0]:
|
|
604
|
+
return hit[1]
|
|
585
605
|
try:
|
|
586
|
-
|
|
606
|
+
value = os.path.normcase(str(Path(s).resolve()))
|
|
587
607
|
except Exception:
|
|
588
|
-
|
|
608
|
+
value = os.path.normcase(key)
|
|
609
|
+
if len(_realpath_cache) >= 1024:
|
|
610
|
+
_realpath_cache.clear()
|
|
611
|
+
_realpath_cache[key] = (now + _REALPATH_TTL_S, value)
|
|
612
|
+
return value
|
|
589
613
|
|
|
590
614
|
|
|
591
615
|
def _compute_subproject_links(projects):
|
|
@@ -21,6 +21,11 @@ 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
|
+
# Before anything can import numpy (lifespan imports it before the threads).
|
|
25
|
+
from core import blas_threads # noqa: E402
|
|
26
|
+
|
|
27
|
+
blas_threads.limit()
|
|
28
|
+
|
|
24
29
|
try:
|
|
25
30
|
from fastmcp import Context, FastMCP
|
|
26
31
|
except Exception:
|
|
@@ -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
|
|
@@ -177,6 +177,69 @@ def _probe_cli_version(exe: str, timeout: int = 10, args: list[str] | None = Non
|
|
|
177
177
|
pass
|
|
178
178
|
|
|
179
179
|
|
|
180
|
+
# Successful `<cli> --version` answers, kept per machine for a day and keyed by
|
|
181
|
+
# the executable's path, size and mtime, so an upgraded CLI is probed again.
|
|
182
|
+
# Every MCP server start runs check_gemini() and check_codex() in its prewarm
|
|
183
|
+
# thread, and `gemini --version` starts Node to answer: 1.1 s each time.
|
|
184
|
+
_VERSION_CACHE_TTL_S = 24 * 3600
|
|
185
|
+
_VERSION_CACHE_MAX = 32
|
|
186
|
+
_version_cache_lock = threading.Lock()
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def _version_cache_file() -> Path:
|
|
190
|
+
home = os.environ.get("C3_HOME") or os.path.expanduser("~")
|
|
191
|
+
return Path(home) / ".c3" / "cache" / "cli_versions.json"
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def _version_cache_fresh(hit, now: float) -> bool:
|
|
195
|
+
try:
|
|
196
|
+
return isinstance(hit.get("out"), str) and 0 <= now - float(hit["at"]) < _VERSION_CACHE_TTL_S
|
|
197
|
+
except (AttributeError, KeyError, TypeError, ValueError):
|
|
198
|
+
return False
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
def _read_version_cache(path: Path) -> dict:
|
|
202
|
+
try:
|
|
203
|
+
data = json.loads(path.read_text(encoding="utf-8"))
|
|
204
|
+
except (OSError, ValueError):
|
|
205
|
+
return {}
|
|
206
|
+
return data if isinstance(data, dict) else {}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
def _probe_cli_version_cached(exe: str, timeout: int = 10):
|
|
210
|
+
"""``_probe_cli_version(exe, timeout)``, answered from the cache when fresh.
|
|
211
|
+
|
|
212
|
+
Only exit-0 answers are stored, so a failure or a timeout is probed again
|
|
213
|
+
on the next call. An executable that cannot be stat'ed is never cached.
|
|
214
|
+
"""
|
|
215
|
+
try:
|
|
216
|
+
st = os.stat(exe)
|
|
217
|
+
key = f"{os.path.normcase(os.path.abspath(exe))}|{st.st_size}|{st.st_mtime_ns}"
|
|
218
|
+
except (OSError, TypeError, ValueError):
|
|
219
|
+
key = None
|
|
220
|
+
path = _version_cache_file()
|
|
221
|
+
if key:
|
|
222
|
+
hit = _read_version_cache(path).get(key)
|
|
223
|
+
if _version_cache_fresh(hit, time.time()):
|
|
224
|
+
return hit["out"], str(hit.get("err") or ""), 0
|
|
225
|
+
probed = _probe_cli_version(exe, timeout=timeout)
|
|
226
|
+
if key and probed is not None and probed[2] == 0:
|
|
227
|
+
with _version_cache_lock:
|
|
228
|
+
now = time.time()
|
|
229
|
+
data = {k: v for k, v in _read_version_cache(path).items()
|
|
230
|
+
if _version_cache_fresh(v, now)}
|
|
231
|
+
data[key] = {"out": probed[0], "err": probed[1], "at": now}
|
|
232
|
+
if len(data) > _VERSION_CACHE_MAX:
|
|
233
|
+
keep = sorted(data, key=lambda k: data[k]["at"])[-_VERSION_CACHE_MAX:]
|
|
234
|
+
data = {k: data[k] for k in keep}
|
|
235
|
+
try:
|
|
236
|
+
from services.atomic_json import write_json_atomic
|
|
237
|
+
write_json_atomic(path, data, fsync=False)
|
|
238
|
+
except Exception:
|
|
239
|
+
pass
|
|
240
|
+
return probed
|
|
241
|
+
|
|
242
|
+
|
|
180
243
|
# ---------------------------------------------------------------------------
|
|
181
244
|
# Codex CLI backend
|
|
182
245
|
# ---------------------------------------------------------------------------
|
|
@@ -263,7 +326,7 @@ def check_claude() -> dict:
|
|
|
263
326
|
_claude_available = False
|
|
264
327
|
return {"status": "not_installed", "detail": "claude CLI not found on PATH"}
|
|
265
328
|
try:
|
|
266
|
-
probed =
|
|
329
|
+
probed = _probe_cli_version_cached(exe, timeout=10)
|
|
267
330
|
if probed is None:
|
|
268
331
|
_claude_available = False
|
|
269
332
|
return {"status": "timeout", "detail": "claude --version timed out (10s)"}
|
|
@@ -1046,7 +1109,7 @@ def check_gemini() -> dict:
|
|
|
1046
1109
|
_gemini_available = False
|
|
1047
1110
|
return {"status": "not_installed", "detail": "gemini CLI not found on PATH"}
|
|
1048
1111
|
try:
|
|
1049
|
-
probed =
|
|
1112
|
+
probed = _probe_cli_version_cached(exe, timeout=10)
|
|
1050
1113
|
if probed is None:
|
|
1051
1114
|
_gemini_available = False
|
|
1052
1115
|
return {"status": "timeout", "detail": "gemini --version timed out (10s)"}
|
|
@@ -1301,7 +1364,7 @@ def check_codex() -> dict:
|
|
|
1301
1364
|
_codex_available = False
|
|
1302
1365
|
return {"status": "not_installed", "detail": "codex CLI not found on PATH"}
|
|
1303
1366
|
try:
|
|
1304
|
-
probed =
|
|
1367
|
+
probed = _probe_cli_version_cached(exe, timeout=10)
|
|
1305
1368
|
if probed is None:
|
|
1306
1369
|
_codex_available = False
|
|
1307
1370
|
return {"status": "timeout", "detail": "codex --version timed out (10s)"}
|
|
@@ -1508,7 +1571,7 @@ def check_grok() -> dict:
|
|
|
1508
1571
|
_grok_available = False
|
|
1509
1572
|
return {"status": "not_installed", "detail": "grok CLI not found on PATH"}
|
|
1510
1573
|
try:
|
|
1511
|
-
probed =
|
|
1574
|
+
probed = _probe_cli_version_cached(exe, timeout=10)
|
|
1512
1575
|
if probed is None:
|
|
1513
1576
|
_grok_available = False
|
|
1514
1577
|
return {"status": "timeout", "detail": "grok --version timed out (10s)"}
|
|
@@ -49,7 +49,7 @@ from cli.tools.shell_render import (
|
|
|
49
49
|
split_lines,
|
|
50
50
|
split_preview,
|
|
51
51
|
)
|
|
52
|
-
from core import count_tokens
|
|
52
|
+
from core import blas_threads, count_tokens
|
|
53
53
|
from services import access_guard
|
|
54
54
|
from services.shell_output import (
|
|
55
55
|
TEXT_MAX_BYTES,
|
|
@@ -196,8 +196,9 @@ def _select_bash() -> str | None:
|
|
|
196
196
|
def _popen_kwargs(extra_env: dict | None = None) -> dict:
|
|
197
197
|
# Force UTF-8 in child processes so Unicode output (→, box-drawing, emoji)
|
|
198
198
|
# doesn't crash on Windows' legacy cp1252 console encoding. setdefault so an
|
|
199
|
-
# intentional caller-set encoding still wins.
|
|
200
|
-
|
|
199
|
+
# intentional caller-set encoding still wins. The user's command also gets
|
|
200
|
+
# the user's own OpenBLAS thread count, not the one C3 pins for itself.
|
|
201
|
+
env = blas_threads.user_env(dict(os.environ))
|
|
201
202
|
env.setdefault("PYTHONUTF8", "1")
|
|
202
203
|
env.setdefault("PYTHONIOENCODING", "utf-8")
|
|
203
204
|
if extra_env:
|
{code_context_control-2.158.4 → code_context_control-2.159.0/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.
|
|
3
|
+
Version: 2.159.0
|
|
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
|
|
@@ -145,6 +145,7 @@ code_context_control.egg-info/entry_points.txt
|
|
|
145
145
|
code_context_control.egg-info/requires.txt
|
|
146
146
|
code_context_control.egg-info/top_level.txt
|
|
147
147
|
core/__init__.py
|
|
148
|
+
core/blas_threads.py
|
|
148
149
|
core/codex_patch.py
|
|
149
150
|
core/config.py
|
|
150
151
|
core/grok_payload.py
|
|
@@ -256,6 +257,7 @@ services/embedding_index.py
|
|
|
256
257
|
services/enforcement_policy.py
|
|
257
258
|
services/error_reporting.py
|
|
258
259
|
services/file_map.py
|
|
260
|
+
services/file_memo.py
|
|
259
261
|
services/file_memory.py
|
|
260
262
|
services/fleet_overview.py
|
|
261
263
|
services/git_context.py
|
|
@@ -271,6 +273,7 @@ services/jira_cloud.py
|
|
|
271
273
|
services/jira_credentials.py
|
|
272
274
|
services/jira_data_center.py
|
|
273
275
|
services/jira_links.py
|
|
276
|
+
services/keyring_read.py
|
|
274
277
|
services/lexical_index.py
|
|
275
278
|
services/mask_activation.py
|
|
276
279
|
services/mask_mirror.py
|
|
@@ -343,6 +346,7 @@ services/bench/external/aider_polyglot.py
|
|
|
343
346
|
services/bench/external/swe_bench.py
|
|
344
347
|
tests/test_access_builtin_optout.py
|
|
345
348
|
tests/test_access_guard.py
|
|
349
|
+
tests/test_access_guard_cache.py
|
|
346
350
|
tests/test_access_guard_meta.py
|
|
347
351
|
tests/test_access_guard_shell_project.py
|
|
348
352
|
tests/test_access_guard_surfaces.py
|
|
@@ -361,6 +365,7 @@ tests/test_bitbucket_client.py
|
|
|
361
365
|
tests/test_bitbucket_config_fallback.py
|
|
362
366
|
tests/test_bitbucket_credentials.py
|
|
363
367
|
tests/test_bitbucket_tool.py
|
|
368
|
+
tests/test_blas_threads.py
|
|
364
369
|
tests/test_builtin_leases.py
|
|
365
370
|
tests/test_builtin_modes.py
|
|
366
371
|
tests/test_c3_bridge_project_artifacts.py
|
|
@@ -413,6 +418,7 @@ tests/test_e2e_benchmark.py
|
|
|
413
418
|
tests/test_edit_eol_atomic.py
|
|
414
419
|
tests/test_edit_ledger_deadline.py
|
|
415
420
|
tests/test_edit_ledger_hook.py
|
|
421
|
+
tests/test_edit_ledger_scan.py
|
|
416
422
|
tests/test_edit_locking.py
|
|
417
423
|
tests/test_edit_normalization.py
|
|
418
424
|
tests/test_edit_outcome.py
|
|
@@ -430,6 +436,7 @@ tests/test_env_parser.py
|
|
|
430
436
|
tests/test_failed_calls_do_not_unlock.py
|
|
431
437
|
tests/test_federated_graph.py
|
|
432
438
|
tests/test_file_map_c1.py
|
|
439
|
+
tests/test_file_memo.py
|
|
433
440
|
tests/test_file_memory_fast_paths.py
|
|
434
441
|
tests/test_filter_backoff.py
|
|
435
442
|
tests/test_ghost_files.py
|
|
@@ -478,6 +485,7 @@ tests/test_jira_links.py
|
|
|
478
485
|
tests/test_jira_routes.py
|
|
479
486
|
tests/test_jira_tool.py
|
|
480
487
|
tests/test_json_reply.py
|
|
488
|
+
tests/test_keyring_read.py
|
|
481
489
|
tests/test_large_files_c4.py
|
|
482
490
|
tests/test_lazy_store_init.py
|
|
483
491
|
tests/test_map_eval.py
|
|
@@ -501,6 +509,7 @@ tests/test_mobile_fleet.py
|
|
|
501
509
|
tests/test_mobile_jobs_ci.py
|
|
502
510
|
tests/test_mobile_override_costs.py
|
|
503
511
|
tests/test_mobile_override_routes.py
|
|
512
|
+
tests/test_mobile_registered_rows.py
|
|
504
513
|
tests/test_mobile_schedules.py
|
|
505
514
|
tests/test_mobile_security_api.py
|
|
506
515
|
tests/test_no_stale_model_pins.py
|
|
@@ -509,6 +518,7 @@ tests/test_notification_discipline.py
|
|
|
509
518
|
tests/test_notification_kinds.py
|
|
510
519
|
tests/test_notification_ref_scope.py
|
|
511
520
|
tests/test_ollama_credentials.py
|
|
521
|
+
tests/test_ollama_probe_cache.py
|
|
512
522
|
tests/test_oracle_api_auth.py
|
|
513
523
|
tests/test_oracle_apikey_api.py
|
|
514
524
|
tests/test_oracle_c3_bridge.py
|
|
@@ -517,6 +527,7 @@ tests/test_oracle_chat_store.py
|
|
|
517
527
|
tests/test_oracle_discovery_api.py
|
|
518
528
|
tests/test_oracle_discovery_audit.py
|
|
519
529
|
tests/test_oracle_health_probe.py
|
|
530
|
+
tests/test_oracle_idle_work.py
|
|
520
531
|
tests/test_oracle_local_auth.py
|
|
521
532
|
tests/test_oracle_loopback.py
|
|
522
533
|
tests/test_oracle_ollama_bridge.py
|
|
@@ -591,6 +602,7 @@ tests/test_time_tracker.py
|
|
|
591
602
|
tests/test_token_telemetry.py
|
|
592
603
|
tests/test_token_tracking.py
|
|
593
604
|
tests/test_tool_registry.py
|
|
605
|
+
tests/test_ui_health_probe.py
|
|
594
606
|
tests/test_ui_jsx_syntax.py
|
|
595
607
|
tests/test_ui_registry.py
|
|
596
608
|
tests/test_upgrade_and_version.py
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""Keep OpenBLAS to one thread in C3's own long-lived processes.
|
|
2
|
+
|
|
3
|
+
numpy's bundled OpenBLAS starts one worker per core when numpy loads and
|
|
4
|
+
commits a buffer for each: on a 20-core machine ``import numpy`` added
|
|
5
|
+
652 MB of commit charge and 19 threads to every MCP and UI server, for BLAS
|
|
6
|
+
work C3 never does (``OPENBLAS_NUM_THREADS=1``: 41 MB, tool latency
|
|
7
|
+
unchanged). Commit charge counts against the machine's commit limit even
|
|
8
|
+
when the pages are never touched.
|
|
9
|
+
|
|
10
|
+
``limit()`` must run before numpy is imported. Commands C3 runs for the user
|
|
11
|
+
(``c3_shell``, ``c3_shell_job``, local CI) get the user's own setting back
|
|
12
|
+
through ``user_env()``.
|
|
13
|
+
"""
|
|
14
|
+
import os
|
|
15
|
+
|
|
16
|
+
_VAR = "OPENBLAS_NUM_THREADS"
|
|
17
|
+
#: Set beside _VAR only when C3 chose the value, so user_env() can tell a
|
|
18
|
+
#: limit C3 added from one the user set themselves.
|
|
19
|
+
_MARK = "C3_SET_OPENBLAS_NUM_THREADS"
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def limit() -> None:
|
|
23
|
+
"""Pin OpenBLAS to one thread unless the environment already sets it."""
|
|
24
|
+
if _VAR not in os.environ:
|
|
25
|
+
os.environ[_VAR] = "1"
|
|
26
|
+
os.environ[_MARK] = "1"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def user_env(env: dict) -> dict:
|
|
30
|
+
"""Drop the limit C3 added from *env* (in place) and return it."""
|
|
31
|
+
if env.pop(_MARK, None) is not None and env.get(_VAR) == "1":
|
|
32
|
+
env.pop(_VAR, None)
|
|
33
|
+
return env
|
|
@@ -13,6 +13,7 @@ never hard-requires them; the Oracle degrades to REST-only if they are missing.
|
|
|
13
13
|
from __future__ import annotations
|
|
14
14
|
|
|
15
15
|
import asyncio
|
|
16
|
+
import inspect
|
|
16
17
|
import json
|
|
17
18
|
import logging
|
|
18
19
|
import threading
|
|
@@ -175,13 +176,38 @@ def serve_mcp(registry, host: str = "127.0.0.1", port: int = 3332,
|
|
|
175
176
|
app = build_app(registry, version=version, require_auth=require_auth, path=path,
|
|
176
177
|
host=host, allowed_hosts=allowed_hosts)
|
|
177
178
|
config = uvicorn.Config(app, host=host, port=port, log_level="warning", access_log=False)
|
|
178
|
-
server = uvicorn.Server(config)
|
|
179
|
+
server = _slow_tick_server_class(uvicorn.Server)(config)
|
|
179
180
|
# uvicorn only installs signal handlers on the main thread; disable so this
|
|
180
181
|
# can run inside a daemon thread under the Flask server.
|
|
181
182
|
server.install_signal_handlers = lambda: None
|
|
182
183
|
asyncio.run(server.serve())
|
|
183
184
|
|
|
184
185
|
|
|
186
|
+
def _slow_tick_server_class(base):
|
|
187
|
+
"""``base`` (uvicorn.Server) with a main loop that wakes once a second.
|
|
188
|
+
|
|
189
|
+
uvicorn's loop sleeps 0.1 s between ticks only to see a shutdown request
|
|
190
|
+
sooner, and refreshes its Date header on every tenth tick. Stepping the
|
|
191
|
+
counter by ten keeps that refresh once a second; shutdown waits up to a
|
|
192
|
+
second. If a uvicorn release changes the loop's shape, ``base`` is used
|
|
193
|
+
as it is.
|
|
194
|
+
"""
|
|
195
|
+
if not (inspect.iscoroutinefunction(getattr(base, "main_loop", None))
|
|
196
|
+
and inspect.iscoroutinefunction(getattr(base, "on_tick", None))):
|
|
197
|
+
return base
|
|
198
|
+
|
|
199
|
+
class _SlowTickServer(base):
|
|
200
|
+
async def main_loop(self) -> None:
|
|
201
|
+
counter = 0
|
|
202
|
+
should_exit = await self.on_tick(counter)
|
|
203
|
+
while not should_exit:
|
|
204
|
+
counter = (counter + 10) % 864000
|
|
205
|
+
await asyncio.sleep(1.0)
|
|
206
|
+
should_exit = await self.on_tick(counter)
|
|
207
|
+
|
|
208
|
+
return _SlowTickServer
|
|
209
|
+
|
|
210
|
+
|
|
185
211
|
def start_mcp_thread(registry, host: str = "127.0.0.1", port: int = 3332,
|
|
186
212
|
version: str = "", require_auth: bool = True,
|
|
187
213
|
path: str = "/mcp", allowed_hosts=None) -> threading.Thread:
|