code-context-control 2.158.4__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.4/code_context_control.egg-info → code_context_control-2.158.5}/PKG-INFO +1 -1
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/c3.py +1 -1
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/server.py +4 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5/code_context_control.egg-info}/PKG-INFO +1 -1
- {code_context_control-2.158.4 → code_context_control-2.158.5}/code_context_control.egg-info/SOURCES.txt +3 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/mobile_api.py +41 -27
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/mobile_fleet.py +4 -5
- {code_context_control-2.158.4 → code_context_control-2.158.5}/pyproject.toml +1 -1
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/file_memory.py +37 -22
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ollama_client.py +49 -17
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/project_manager.py +1 -1
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/retention.py +66 -1
- 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.4 → 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.4 → code_context_control-2.158.5}/LICENSE +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/README.md +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/_hook_utils.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/_shell_writes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/commands/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/commands/common.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/commands/parser.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/docs.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/edits.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/access.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/bitbucket.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/ci.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/credentials.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/delegate.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/getting-started.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/index.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/jira.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/masking.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/oracle.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/sessions.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/shared.css +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/tools.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/guide/workflow.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_access_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_agent_model.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_artifact.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_auto_snapshot.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_c3_signal.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_c3read.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_codex_lifecycle.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_dispatch.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_edit_ledger.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_edit_unlock.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_filter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_ghost_files.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_pretool_enforce.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_prompt_recall.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_read.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_session_end.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_session_open.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_session_stats.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hook_terse_advisor.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_server.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/app.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/add_project.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/config_editor.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/drill_artifacts.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/drill_health.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/drill_panel.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/drill_subprojects.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/drill_tasks.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/drill_views.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/global_search.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/hub_access.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/hub_ci.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/hub_cred_audit.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/hub_credentials.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/hub_enforcement.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/hub_locks.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/hub_schedules.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/hub_sessions.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/hub_tokens.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/mcp_manager.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/modals.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/project_card.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/project_tree.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/session_drawer.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/settings_modal.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/sidebar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/summary_bar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/task_board.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/toasts.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/components/topbar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui/state.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/hub_ui.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/mcp_proxy.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/mcp_server.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/progress.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/_edit_report.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/_grants.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/_helpers.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/_json_reply.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/agent.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/artifacts.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/bitbucket.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/ci.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/compress.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/delegate.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/edit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/edit_verify.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/edits.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/federate.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/filter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/impact.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/jira.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/locks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/memory.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/override.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/project.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/read.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/schedule.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/search.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/session.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/shell.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/shell_job.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/shell_nudge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/shell_parsers.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/shell_render.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/status.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/tasks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/tools/validate.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/api.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/app.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/access.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/bitbucket.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/chat.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/credentials.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/dashboard.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/edits.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/enforcement.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/instructions.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/jira.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/memory.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/sessions.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/settings.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/sidebar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/components/tasks.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/icons.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/pm_shared.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/shared.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui/theme.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui_legacy.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/cli/ui_nano.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/code_context_control.egg-info/dependency_links.txt +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/code_context_control.egg-info/entry_points.txt +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/code_context_control.egg-info/requires.txt +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/code_context_control.egg-info/top_level.txt +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/codex_patch.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/config.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/grok_payload.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/hook_command.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/host.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/ide.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/mcp_stack.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/mcp_toml.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/core/web_security.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/config.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/listeners.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/mcp_oracle.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/oracle_server.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/oracle_ui.html +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/activity_reporter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/api_auth.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/c3_bridge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/chat_engine.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/chat_poll.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/chat_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/client_tokens.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/cross_memory.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/discovery_audit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/federated_graph.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/health_checker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/insight_engine.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/local_session.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/memory_reader.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/memory_writer.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/project_scanner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/review_agent.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/schedule_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/scheduler.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/tool_executor.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/services/tool_registry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/activity.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/agents.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/app.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/busy.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/chat/conversations.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/chat/input.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/chat/markdown.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/chat/send.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/chat/stream_renderer.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/chat/toolbar.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/core.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/crossgraph.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/header.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/insights.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/projects.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/qrcode.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/settings.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/suggestions.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/oracle/ui/theme_tabs.js +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/access_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/access_telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/activity_log.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/agent_base.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/agent_downshift.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/agent_locks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/agents.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/agents_workflow.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/artifact_defs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/artifact_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/atomic_json.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/auto_memory.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/background_service.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bench/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bench/delegate_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bench/delegate_write_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bench/external/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bench/external/aider_polyglot.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bench/external/swe_bench.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bench/map_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bench/search_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bench/shell_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/benchmark_dashboard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bitbucket_client.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/bitbucket_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/builtin_leases.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ci_act.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ci_cache.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ci_expr.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ci_failures.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ci_github.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ci_impact.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ci_intel.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ci_runner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ci_workflow.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/circuit_breaker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/claude_md.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/codex_integration.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/codex_transcript.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/compressor.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/context_snapshot.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/conversation_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/cred_audit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/cred_telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/credential_backup.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/credential_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/cron_expr.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/delegate_agents.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/delegate_hints.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/delegate_write.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/dir_map.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/doc_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/e2e_benchmark.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/e2e_evaluator.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/e2e_tasks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/edit_blobs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/edit_ledger.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/embedding_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/enforcement_policy.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/error_reporting.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/file_map.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/fleet_overview.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/git_context.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/grok_integration.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/grok_transcript.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/host_handoff.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/host_sessions.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/hub_service.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/index_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/indexer.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/jira_client.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/jira_cloud.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/jira_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/jira_data_center.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/jira_links.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/lexical_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/mask_activation.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/mask_mirror.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/mask_presets.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/memory.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/memory_consolidator.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/memory_distiller.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/memory_graph.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/memory_grounder.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/memory_queue.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/memory_scorer.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/metrics.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/notifications.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ollama_bridge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ollama_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/oracle_service.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/output_filter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/override_costs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/override_grants.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/override_policy.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/override_requests.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/override_wake.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/parser.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/project_runtime.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/protocol.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/proxy_state.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/read_stamps.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/repo_map.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/repo_shape.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/reranker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/retrieval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/retrieval_broker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/router.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/runtime.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/scanner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/schedule_approvals.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/schedule_runner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/schedule_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/session_benchmark.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/session_catalog.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/session_live.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/session_manager.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/session_preloader.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/shell_jobs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/shell_output.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/subprojects.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/task_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/terminal_launch.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/text_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/time_tracker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/tool_classifier.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/transcript_index.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/ui_registry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/validation_cache.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/vector_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/watcher.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/services/win_subprocess.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/setup.cfg +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_access_builtin_optout.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_access_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_access_guard_meta.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_access_guard_shell_project.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_access_guard_surfaces.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_access_guard_wiring.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_activity_log_find_last.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_activity_reporter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_agent_locks.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_aider_polyglot.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_antigravity_transition.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_artifact_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_artifact_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_atomic_json.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_background_service.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_bitbucket_cli_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_bitbucket_client.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_bitbucket_config_fallback.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_bitbucket_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_bitbucket_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_builtin_leases.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_builtin_modes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_c3_bridge_project_artifacts.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_c3_shell.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_chat_poll.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ci_act.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ci_cache.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ci_dag_ownership.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ci_expr.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ci_impact.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ci_intel.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ci_runner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ci_workflow.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_circuit_breaker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_claude_md_merge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_claude_md_updater.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_cli_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_codex_mcp_transport.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_codex_native.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_compressor_large_file.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_confirm_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_confirm_guard_wiring.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_cooccurrence_bounds.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_cred_audit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_cred_telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_credential_backup.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_credential_login_kind.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_credential_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_credential_ui_parity.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_credentials_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_credentials_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_creds_cli_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_cron_expr.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_adoption_d4.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_auto.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_cascade.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_claude_d1.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_grok.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_host_d2.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_scout_d3.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_telemetry_d0.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_thinking_cap.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_tuning.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_version_probe.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_write.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_delegate_write_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_dir_map_c3.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_e2e_benchmark.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_eol_atomic.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_ledger_deadline.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_ledger_hook.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_locking.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_normalization.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_outcome.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_report.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_revert.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_stale.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_edit_verify.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_embedding_index_corrupt_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_embedding_index_deadlock.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_embedding_store_safety.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_enforcement_flip.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_enforcement_policy.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_enforcement_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_env_parser.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_failed_calls_do_not_unlock.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_federated_graph.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_file_map_c1.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_file_memory_fast_paths.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_filter_backoff.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ghost_files.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ghost_generation.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_git_branch_awareness.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_grok_native.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_access_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_codex_compat.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_dispatch.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_grok_compat.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_pretool_enforce.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_prompt_recall.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_session_end.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_state.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hook_utf8_stdio.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_host_handoff.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_host_rebind.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_access_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_builtin_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_credentials_route.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_credentials_routes_write.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_enforcement_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_hook_migration.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_ide_cmd.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_inspect_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_locks_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_oracle_service_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_override_policy_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_override_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_rules_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_schedules_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_server_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_sessions_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_hub_subproject_links.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ide_workflow_adaptation.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_index_cap_not_hardcoded.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_init_clear_preserves_user_content.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_init_scan.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_install_mcp_entrypoint.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_jira_cli_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_jira_client.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_jira_config_fallback.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_jira_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_jira_links.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_jira_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_jira_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_json_reply.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_large_files_c4.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_lazy_store_init.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_map_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_map_telemetry_c0.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mask_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mask_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mask_surfaces.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mcp_host_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mcp_memory_timeout.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mcp_server_smoke.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mcp_stack.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mcp_toml.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_memory_distiller.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_memory_graph_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_memory_queue.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_memory_system.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mobile_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mobile_clients.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mobile_extras.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mobile_fleet.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mobile_jobs_ci.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mobile_override_costs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mobile_override_routes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mobile_schedules.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_mobile_security_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_no_stale_model_pins.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_notification_dedup.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_notification_discipline.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_notification_kinds.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_notification_ref_scope.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ollama_credentials.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_api_auth.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_apikey_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_c3_bridge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_chat_engine.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_chat_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_discovery_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_discovery_audit.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_health_probe.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_local_auth.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_loopback.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_ollama_bridge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_scanner_cache.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_security_fixes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_session_bootstrap.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_subproject_awareness.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_oracle_ui_bundle.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_output_filter.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_override_costs.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_override_grants.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_override_grants_mcp.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_override_requests.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_override_wake.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_permissions.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_pm_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_project_lease_identity.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_project_manager.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_project_manager_merge.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_project_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_quarantine_sweep.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_read_coercion.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_read_edit_parity.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_read_outside_root.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_related_facts.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_repo_map.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_repo_shape.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_response_boilerplate.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_review_digest.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_schedule_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_schedule_approvals.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_schedule_mcp.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_schedule_runner.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_schedule_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_scheduler_tick.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_search_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_search_p1.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_search_p2.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_search_p2b.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_search_p3.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_search_p4.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_search_p5.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_service_durability.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_session_benchmark.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_session_budget.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_session_catalog.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_session_live.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_session_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_budget_s1.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_creds.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_eval.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_jobs_argv.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_jobs_s3.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_nudge_s4.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_output.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_parsers_s2.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_robustness.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_telemetry_s0.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_write_ledger.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_shell_writes.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_subproject_clear_scope.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_subproject_depth_consumers.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_subproject_exclusion.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_subproject_federation.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_subproject_linkage_api.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_subprojects.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_swe_bench.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_task_store.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_task_tool.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_time_tracker.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_token_telemetry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_token_tracking.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_tool_registry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ui_jsx_syntax.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_ui_registry.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_upgrade_and_version.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_validate.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_vault_write_guard.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_version_sync.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_watcher_pruning.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_web_security.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tests/test_windows_reliability.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/backend.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/main.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/__init__.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/benchmark_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/claudemd_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/compress_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/index_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/init_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/mcp_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/optimize_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/pipe_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/projects_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/search_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/session_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/stats.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/screens/ui_view.py +0 -0
- {code_context_control-2.158.4 → code_context_control-2.158.5}/tui/theme.tcss +0 -0
{code_context_control-2.158.4/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"
|
|
@@ -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.4 → 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
|
|
@@ -501,6 +501,7 @@ tests/test_mobile_fleet.py
|
|
|
501
501
|
tests/test_mobile_jobs_ci.py
|
|
502
502
|
tests/test_mobile_override_costs.py
|
|
503
503
|
tests/test_mobile_override_routes.py
|
|
504
|
+
tests/test_mobile_registered_rows.py
|
|
504
505
|
tests/test_mobile_schedules.py
|
|
505
506
|
tests/test_mobile_security_api.py
|
|
506
507
|
tests/test_no_stale_model_pins.py
|
|
@@ -509,6 +510,7 @@ tests/test_notification_discipline.py
|
|
|
509
510
|
tests/test_notification_kinds.py
|
|
510
511
|
tests/test_notification_ref_scope.py
|
|
511
512
|
tests/test_ollama_credentials.py
|
|
513
|
+
tests/test_ollama_probe_cache.py
|
|
512
514
|
tests/test_oracle_api_auth.py
|
|
513
515
|
tests/test_oracle_apikey_api.py
|
|
514
516
|
tests/test_oracle_c3_bridge.py
|
|
@@ -591,6 +593,7 @@ tests/test_time_tracker.py
|
|
|
591
593
|
tests/test_token_telemetry.py
|
|
592
594
|
tests/test_token_tracking.py
|
|
593
595
|
tests/test_tool_registry.py
|
|
596
|
+
tests/test_ui_health_probe.py
|
|
594
597
|
tests/test_ui_jsx_syntax.py
|
|
595
598
|
tests/test_ui_registry.py
|
|
596
599
|
tests/test_upgrade_and_version.py
|
|
@@ -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.4 → 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:
|
|
@@ -329,6 +329,46 @@ def cap_session_files(sessions_dir, max_files: int = 50,
|
|
|
329
329
|
return pruned
|
|
330
330
|
|
|
331
331
|
|
|
332
|
+
def _try_lock(path: Path):
|
|
333
|
+
"""Take a non-blocking exclusive lock on ``path``; the open handle, or None.
|
|
334
|
+
|
|
335
|
+
The OS drops the lock when the holder dies, so a crashed sweep never
|
|
336
|
+
strands it.
|
|
337
|
+
"""
|
|
338
|
+
try:
|
|
339
|
+
path.parent.mkdir(parents=True, exist_ok=True)
|
|
340
|
+
fh = open(path, "ab")
|
|
341
|
+
except OSError:
|
|
342
|
+
return None
|
|
343
|
+
try:
|
|
344
|
+
if os.name == "nt":
|
|
345
|
+
import msvcrt
|
|
346
|
+
fh.seek(0)
|
|
347
|
+
msvcrt.locking(fh.fileno(), msvcrt.LK_NBLCK, 1)
|
|
348
|
+
else:
|
|
349
|
+
import fcntl
|
|
350
|
+
fcntl.flock(fh.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
|
|
351
|
+
except OSError:
|
|
352
|
+
fh.close()
|
|
353
|
+
return None
|
|
354
|
+
return fh
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
def _unlock(fh) -> None:
|
|
358
|
+
try:
|
|
359
|
+
if os.name == "nt":
|
|
360
|
+
import msvcrt
|
|
361
|
+
fh.seek(0)
|
|
362
|
+
msvcrt.locking(fh.fileno(), msvcrt.LK_UNLCK, 1)
|
|
363
|
+
else:
|
|
364
|
+
import fcntl
|
|
365
|
+
fcntl.flock(fh.fileno(), fcntl.LOCK_UN)
|
|
366
|
+
except OSError:
|
|
367
|
+
pass
|
|
368
|
+
finally:
|
|
369
|
+
fh.close()
|
|
370
|
+
|
|
371
|
+
|
|
332
372
|
class RetentionManager:
|
|
333
373
|
"""Rate-limited retention sweep for a project's ``.c3`` directory.
|
|
334
374
|
|
|
@@ -341,6 +381,11 @@ class RetentionManager:
|
|
|
341
381
|
happens at write time in their own modules; this sweep owns the
|
|
342
382
|
structure-aware rotations (edit ledger, notifications), the session
|
|
343
383
|
cap, file-memory pruning, and archive TTL purging.
|
|
384
|
+
|
|
385
|
+
Every C3 process on a project (each MCP server and the UI server) owns
|
|
386
|
+
one of these, so ``maybe_run`` sweeps only when no process has swept
|
|
387
|
+
within the interval: ``.c3/retention.lock`` keeps two sweeps from
|
|
388
|
+
overlapping and the mtime of ``.c3/retention.last`` records the last one.
|
|
344
389
|
"""
|
|
345
390
|
|
|
346
391
|
def __init__(self, project_path, edit_ledger=None, notifications=None,
|
|
@@ -367,7 +412,27 @@ class RetentionManager:
|
|
|
367
412
|
self._next_run = now + interval
|
|
368
413
|
if not cfg.get("enabled", True):
|
|
369
414
|
return None
|
|
370
|
-
|
|
415
|
+
c3_dir = self.project_path / ".c3"
|
|
416
|
+
lock = _try_lock(c3_dir / "retention.lock")
|
|
417
|
+
if lock is None:
|
|
418
|
+
return None
|
|
419
|
+
try:
|
|
420
|
+
stamp = c3_dir / "retention.last"
|
|
421
|
+
try:
|
|
422
|
+
age = time.time() - stamp.stat().st_mtime
|
|
423
|
+
except OSError:
|
|
424
|
+
age = None
|
|
425
|
+
if age is not None and 0 <= age < interval:
|
|
426
|
+
self._next_run = now + (interval - age)
|
|
427
|
+
return None
|
|
428
|
+
summary = self.run_sweep(cfg)
|
|
429
|
+
try:
|
|
430
|
+
stamp.touch()
|
|
431
|
+
except OSError:
|
|
432
|
+
pass
|
|
433
|
+
return summary
|
|
434
|
+
finally:
|
|
435
|
+
_unlock(lock)
|
|
371
436
|
|
|
372
437
|
def run_sweep(self, cfg: Optional[dict] = None) -> dict:
|
|
373
438
|
"""Execute one full retention sweep. Never raises."""
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"""The gateway's registered-project row filter resolves each registered
|
|
2
|
+
project and each distinct row path once per call, with the same result as
|
|
3
|
+
checking every row on its own."""
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import os
|
|
7
|
+
import sys
|
|
8
|
+
import tempfile
|
|
9
|
+
import unittest
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
from unittest import mock
|
|
12
|
+
|
|
13
|
+
REPO_ROOT = Path(__file__).resolve().parent.parent
|
|
14
|
+
sys.path.insert(0, str(REPO_ROOT))
|
|
15
|
+
|
|
16
|
+
os.environ.setdefault("C3_ORACLE_API_KEY", "registered-rows-key")
|
|
17
|
+
|
|
18
|
+
from oracle.services import mobile_api # noqa: E402
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class _CountingScanner:
|
|
22
|
+
def __init__(self, projects):
|
|
23
|
+
self.projects = projects
|
|
24
|
+
self.calls = 0
|
|
25
|
+
|
|
26
|
+
def discover(self, force=False):
|
|
27
|
+
self.calls += 1
|
|
28
|
+
return [dict(p) for p in self.projects]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class TestRegisteredRows(unittest.TestCase):
|
|
32
|
+
def setUp(self):
|
|
33
|
+
self._tmp = tempfile.TemporaryDirectory()
|
|
34
|
+
root = Path(self._tmp.name)
|
|
35
|
+
self.alpha = root / "alpha"
|
|
36
|
+
self.beta = root / "beta"
|
|
37
|
+
self.plain = root / "plain" # registered, but no .c3
|
|
38
|
+
self.outsider = root / "outsider" # never registered
|
|
39
|
+
self.nested = self.alpha / ".claude" / "worktrees" / "wt1"
|
|
40
|
+
for p in (self.alpha, self.beta, self.plain, self.outsider, self.nested):
|
|
41
|
+
p.mkdir(parents=True)
|
|
42
|
+
self.scanner = _CountingScanner([
|
|
43
|
+
{"path": str(self.alpha), "has_c3": True},
|
|
44
|
+
{"path": str(self.beta), "has_c3": True},
|
|
45
|
+
{"path": str(self.plain), "has_c3": False},
|
|
46
|
+
])
|
|
47
|
+
self._prev = mobile_api._scanner
|
|
48
|
+
mobile_api.init_services(scanner=self.scanner)
|
|
49
|
+
self.rows = ([{"id": f"a{i}", "project_path": str(self.alpha)} for i in range(40)]
|
|
50
|
+
+ [{"id": f"o{i}", "project_path": str(self.outsider)} for i in range(40)]
|
|
51
|
+
+ [{"id": f"n{i}", "project_path": str(self.nested)} for i in range(10)]
|
|
52
|
+
+ [{"id": "p", "project_path": str(self.plain)},
|
|
53
|
+
{"id": "none", "project_path": ""}])
|
|
54
|
+
|
|
55
|
+
def tearDown(self):
|
|
56
|
+
mobile_api._scanner = self._prev
|
|
57
|
+
self._tmp.cleanup()
|
|
58
|
+
|
|
59
|
+
def _ids(self, rows):
|
|
60
|
+
return [r["id"] for r in rows]
|
|
61
|
+
|
|
62
|
+
def test_keeps_only_rows_of_registered_projects(self):
|
|
63
|
+
kept = mobile_api._registered_rows(self.rows)
|
|
64
|
+
expected = [r for r in self.rows
|
|
65
|
+
if mobile_api._resolve_registered(r["project_path"]) is not None]
|
|
66
|
+
self.assertEqual(self._ids(kept), self._ids(expected))
|
|
67
|
+
self.assertEqual(self._ids(kept), [f"a{i}" for i in range(40)])
|
|
68
|
+
|
|
69
|
+
def test_serving_also_keeps_rows_nested_inside_a_project(self):
|
|
70
|
+
kept = mobile_api._registered_rows(self.rows, serving=True)
|
|
71
|
+
self.assertEqual(self._ids(kept),
|
|
72
|
+
[f"a{i}" for i in range(40)] + [f"n{i}" for i in range(10)])
|
|
73
|
+
|
|
74
|
+
def test_projects_and_row_paths_are_resolved_once_per_call(self):
|
|
75
|
+
real_resolve = Path.resolve
|
|
76
|
+
with mock.patch.object(Path, "resolve", autospec=True,
|
|
77
|
+
side_effect=real_resolve) as resolve:
|
|
78
|
+
mobile_api._registered_rows(self.rows, serving=True)
|
|
79
|
+
self.assertEqual(self.scanner.calls, 1)
|
|
80
|
+
# Two registered roots with .c3, four distinct non-empty row paths.
|
|
81
|
+
self.assertEqual(resolve.call_count, 6)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
if __name__ == "__main__":
|
|
85
|
+
unittest.main()
|