code-context-control 2.158.1__tar.gz → 2.158.2__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.1/code_context_control.egg-info → code_context_control-2.158.2}/PKG-INFO +1 -1
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/c3.py +1 -1
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_server.py +4 -19
- {code_context_control-2.158.1 → code_context_control-2.158.2/code_context_control.egg-info}/PKG-INFO +1 -1
- {code_context_control-2.158.1 → code_context_control-2.158.2}/code_context_control.egg-info/SOURCES.txt +1 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/mobile_api.py +37 -5
- {code_context_control-2.158.1 → code_context_control-2.158.2}/pyproject.toml +1 -1
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/notifications.py +119 -18
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/override_requests.py +5 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_override_routes.py +27 -0
- code_context_control-2.158.2/tests/test_notification_ref_scope.py +179 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/LICENSE +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/README.md +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/_hook_utils.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/_shell_writes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/commands/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/commands/common.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/commands/parser.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/docs.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/edits.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/access.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/bitbucket.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/ci.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/credentials.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/delegate.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/getting-started.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/index.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/jira.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/masking.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/oracle.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/sessions.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/shared.css +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/tools.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/guide/workflow.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_access_guard.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_agent_model.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_artifact.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_auto_snapshot.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_c3_signal.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_c3read.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_codex_lifecycle.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_dispatch.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_edit_ledger.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_edit_unlock.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_filter.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_ghost_files.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_pretool_enforce.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_prompt_recall.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_read.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_session_end.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_session_open.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_session_stats.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hook_terse_advisor.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/app.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/add_project.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/config_editor.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/drill_artifacts.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/drill_health.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/drill_panel.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/drill_subprojects.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/drill_tasks.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/drill_views.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/global_search.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/hub_access.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/hub_ci.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/hub_cred_audit.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/hub_credentials.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/hub_enforcement.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/hub_locks.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/hub_schedules.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/hub_sessions.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/hub_tokens.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/mcp_manager.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/modals.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/project_card.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/project_tree.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/session_drawer.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/settings_modal.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/sidebar.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/summary_bar.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/task_board.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/toasts.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/components/topbar.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui/state.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/hub_ui.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/mcp_proxy.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/mcp_server.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/progress.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/server.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/_edit_report.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/_grants.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/_helpers.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/_json_reply.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/agent.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/artifacts.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/bitbucket.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/ci.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/compress.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/credentials.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/delegate.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/edit.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/edit_verify.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/edits.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/federate.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/filter.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/impact.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/jira.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/locks.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/memory.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/override.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/project.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/read.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/schedule.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/search.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/session.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/shell.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/shell_job.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/shell_nudge.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/shell_parsers.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/shell_render.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/status.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/tasks.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/tools/validate.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/api.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/app.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/access.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/bitbucket.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/chat.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/credentials.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/dashboard.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/edits.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/enforcement.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/instructions.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/jira.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/memory.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/sessions.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/settings.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/sidebar.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/components/tasks.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/icons.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/pm_shared.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/shared.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui/theme.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui_legacy.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/cli/ui_nano.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/code_context_control.egg-info/dependency_links.txt +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/code_context_control.egg-info/entry_points.txt +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/code_context_control.egg-info/requires.txt +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/code_context_control.egg-info/top_level.txt +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/core/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/core/codex_patch.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/core/config.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/core/grok_payload.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/core/hook_command.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/core/host.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/core/ide.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/core/mcp_toml.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/core/web_security.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/config.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/listeners.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/mcp_oracle.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/oracle_server.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/oracle_ui.html +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/activity_reporter.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/api_auth.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/c3_bridge.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/chat_engine.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/chat_poll.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/chat_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/client_tokens.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/cross_memory.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/discovery_audit.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/federated_graph.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/health_checker.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/insight_engine.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/local_session.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/memory_reader.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/memory_writer.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/mobile_fleet.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/project_scanner.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/review_agent.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/schedule_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/scheduler.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/tool_executor.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/services/tool_registry.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/activity.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/agents.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/app.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/busy.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/chat/conversations.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/chat/input.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/chat/markdown.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/chat/send.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/chat/stream_renderer.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/chat/toolbar.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/core.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/crossgraph.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/header.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/insights.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/projects.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/qrcode.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/settings.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/suggestions.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/oracle/ui/theme_tabs.js +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/access_guard.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/access_telemetry.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/activity_log.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/agent_base.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/agent_downshift.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/agent_locks.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/agents.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/agents_workflow.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/artifact_defs.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/artifact_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/atomic_json.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/auto_memory.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/background_service.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bench/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bench/delegate_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bench/delegate_write_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bench/external/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bench/external/aider_polyglot.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bench/external/swe_bench.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bench/map_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bench/search_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bench/shell_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/benchmark_dashboard.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bitbucket_client.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/bitbucket_credentials.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/builtin_leases.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ci_act.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ci_cache.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ci_expr.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ci_failures.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ci_github.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ci_impact.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ci_intel.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ci_runner.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ci_workflow.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/circuit_breaker.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/claude_md.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/codex_integration.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/codex_transcript.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/compressor.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/context_snapshot.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/conversation_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/cred_audit.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/cred_telemetry.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/credential_backup.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/credential_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/cron_expr.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/delegate_agents.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/delegate_hints.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/delegate_write.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/dir_map.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/doc_index.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/e2e_benchmark.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/e2e_evaluator.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/e2e_tasks.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/edit_blobs.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/edit_ledger.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/embedding_index.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/enforcement_policy.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/error_reporting.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/file_map.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/file_memory.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/fleet_overview.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/git_context.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/grok_integration.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/grok_transcript.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/host_handoff.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/host_sessions.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/hub_service.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/index_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/indexer.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/jira_client.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/jira_cloud.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/jira_credentials.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/jira_data_center.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/jira_links.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/lexical_index.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/mask_activation.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/mask_mirror.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/mask_presets.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/memory.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/memory_consolidator.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/memory_distiller.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/memory_graph.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/memory_grounder.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/memory_queue.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/memory_scorer.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/metrics.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ollama_bridge.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ollama_client.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ollama_credentials.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/oracle_service.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/output_filter.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/override_costs.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/override_grants.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/override_policy.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/override_wake.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/parser.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/project_manager.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/project_runtime.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/protocol.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/proxy_state.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/read_stamps.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/repo_map.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/repo_shape.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/reranker.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/retention.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/retrieval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/retrieval_broker.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/router.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/runtime.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/scanner.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/schedule_approvals.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/schedule_runner.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/schedule_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/session_benchmark.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/session_catalog.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/session_live.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/session_manager.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/session_preloader.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/shell_jobs.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/shell_output.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/subprojects.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/task_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/telemetry.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/terminal_launch.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/text_index.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/time_tracker.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/tool_classifier.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/transcript_index.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/ui_registry.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/validation_cache.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/vector_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/watcher.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/services/win_subprocess.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/setup.cfg +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_access_builtin_optout.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_access_guard.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_access_guard_meta.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_access_guard_shell_project.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_access_guard_surfaces.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_access_guard_wiring.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_activity_log_find_last.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_activity_reporter.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_agent_locks.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_aider_polyglot.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_antigravity_transition.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_artifact_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_artifact_tool.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_atomic_json.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_background_service.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_bitbucket_cli_smoke.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_bitbucket_client.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_bitbucket_config_fallback.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_bitbucket_credentials.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_bitbucket_tool.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_builtin_leases.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_builtin_modes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_c3_bridge_project_artifacts.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_c3_shell.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_chat_poll.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ci_act.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ci_cache.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ci_dag_ownership.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ci_expr.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ci_impact.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ci_intel.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ci_runner.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ci_workflow.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_circuit_breaker.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_claude_md_merge.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_claude_md_updater.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_cli_smoke.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_codex_mcp_transport.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_codex_native.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_compressor_large_file.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_confirm_guard.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_confirm_guard_wiring.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_cooccurrence_bounds.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_cred_audit.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_cred_telemetry.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_credential_backup.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_credential_login_kind.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_credential_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_credential_ui_parity.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_credentials_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_credentials_tool.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_creds_cli_smoke.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_cron_expr.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_adoption_d4.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_auto.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_cascade.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_claude_d1.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_grok.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_host_d2.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_scout_d3.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_telemetry_d0.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_thinking_cap.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_tuning.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_version_probe.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_write.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_delegate_write_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_dir_map_c3.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_e2e_benchmark.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_eol_atomic.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_ledger_deadline.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_ledger_hook.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_locking.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_normalization.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_outcome.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_report.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_revert.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_stale.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_edit_verify.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_embedding_index_corrupt_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_embedding_index_deadlock.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_embedding_store_safety.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_enforcement_flip.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_enforcement_policy.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_enforcement_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_env_parser.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_failed_calls_do_not_unlock.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_federated_graph.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_file_map_c1.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_file_memory_fast_paths.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_filter_backoff.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ghost_files.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ghost_generation.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_git_branch_awareness.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_grok_native.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_access_guard.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_codex_compat.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_dispatch.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_grok_compat.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_pretool_enforce.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_prompt_recall.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_session_end.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_smoke.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_state.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hook_utf8_stdio.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_host_handoff.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_host_rebind.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_access_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_builtin_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_credentials_route.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_credentials_routes_write.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_enforcement_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_hook_migration.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_ide_cmd.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_inspect_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_locks_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_oracle_service_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_override_policy_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_override_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_rules_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_schedules_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_server_smoke.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_sessions_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_hub_subproject_links.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ide_workflow_adaptation.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_index_cap_not_hardcoded.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_init_clear_preserves_user_content.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_init_scan.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_install_mcp_entrypoint.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_jira_cli_smoke.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_jira_client.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_jira_config_fallback.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_jira_credentials.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_jira_links.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_jira_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_jira_tool.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_json_reply.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_large_files_c4.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_lazy_store_init.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_map_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_map_telemetry_c0.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mask_guard.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mask_routes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mask_surfaces.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mcp_host_guard.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mcp_memory_timeout.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mcp_server_smoke.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mcp_toml.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_memory_distiller.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_memory_graph_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_memory_queue.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_memory_system.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_clients.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_extras.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_fleet.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_jobs_ci.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_override_costs.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_schedules.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_security_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_no_stale_model_pins.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_notification_dedup.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_notification_discipline.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_notification_kinds.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ollama_credentials.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_api_auth.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_apikey_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_c3_bridge.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_chat_engine.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_chat_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_discovery_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_discovery_audit.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_health_probe.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_local_auth.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_loopback.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_ollama_bridge.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_scanner_cache.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_security_fixes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_session_bootstrap.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_subproject_awareness.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_oracle_ui_bundle.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_output_filter.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_override_costs.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_override_grants.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_override_grants_mcp.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_override_requests.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_override_wake.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_permissions.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_pm_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_project_lease_identity.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_project_manager.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_project_manager_merge.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_project_tool.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_quarantine_sweep.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_read_coercion.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_read_edit_parity.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_read_outside_root.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_related_facts.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_repo_map.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_repo_shape.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_response_boilerplate.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_retention.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_review_digest.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_schedule_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_schedule_approvals.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_schedule_mcp.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_schedule_runner.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_schedule_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_scheduler_tick.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_search_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_search_p1.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_search_p2.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_search_p2b.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_search_p3.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_search_p4.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_search_p5.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_service_durability.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_session_benchmark.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_session_budget.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_session_catalog.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_session_live.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_session_tool.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_budget_s1.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_creds.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_eval.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_jobs_argv.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_jobs_s3.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_nudge_s4.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_output.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_parsers_s2.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_robustness.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_telemetry_s0.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_write_ledger.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_shell_writes.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_subproject_clear_scope.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_subproject_depth_consumers.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_subproject_exclusion.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_subproject_federation.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_subproject_linkage_api.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_subprojects.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_swe_bench.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_task_store.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_task_tool.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_time_tracker.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_token_telemetry.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_token_tracking.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_tool_registry.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ui_jsx_syntax.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_ui_registry.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_upgrade_and_version.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_validate.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_vault_write_guard.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_version_sync.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_watcher_pruning.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_web_security.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_windows_reliability.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/backend.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/main.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/__init__.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/benchmark_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/claudemd_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/compress_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/index_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/init_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/mcp_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/optimize_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/pipe_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/projects_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/search_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/session_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/stats.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/screens/ui_view.py +0 -0
- {code_context_control-2.158.1 → code_context_control-2.158.2}/tui/theme.tcss +0 -0
{code_context_control-2.158.1/code_context_control.egg-info → code_context_control-2.158.2}/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.2
|
|
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.2"
|
|
95
95
|
|
|
96
96
|
# The PreToolUse matcher for native subagent calls (installer and hub migration).
|
|
97
97
|
AGENT_MATCHER = "Agent|Task"
|
|
@@ -1072,25 +1072,10 @@ def api_project_notifications_clear():
|
|
|
1072
1072
|
if not nf.exists():
|
|
1073
1073
|
return jsonify({"cleared": 0})
|
|
1074
1074
|
try:
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
try:
|
|
1080
|
-
entries.append(json.loads(line))
|
|
1081
|
-
except json.JSONDecodeError:
|
|
1082
|
-
continue
|
|
1083
|
-
count = 0
|
|
1084
|
-
for e in entries:
|
|
1085
|
-
if not e.get("acknowledged"):
|
|
1086
|
-
e["acknowledged"] = True
|
|
1087
|
-
count += 1
|
|
1088
|
-
if count:
|
|
1089
|
-
nf.write_text(
|
|
1090
|
-
"\n".join(json.dumps(e, ensure_ascii=False) for e in entries) + "\n",
|
|
1091
|
-
encoding="utf-8",
|
|
1092
|
-
)
|
|
1093
|
-
return jsonify({"cleared": count})
|
|
1075
|
+
# Through the store: its rewrite holds the cross-process lock, so a
|
|
1076
|
+
# notification another process appends meanwhile is kept.
|
|
1077
|
+
from services.notifications import NotificationStore
|
|
1078
|
+
return jsonify({"cleared": NotificationStore(path).acknowledge_all()})
|
|
1094
1079
|
except Exception as e:
|
|
1095
1080
|
return jsonify({"error": str(e)}), 500
|
|
1096
1081
|
|
{code_context_control-2.158.1 → code_context_control-2.158.2/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.2
|
|
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
|
|
@@ -505,6 +505,7 @@ tests/test_no_stale_model_pins.py
|
|
|
505
505
|
tests/test_notification_dedup.py
|
|
506
506
|
tests/test_notification_discipline.py
|
|
507
507
|
tests/test_notification_kinds.py
|
|
508
|
+
tests/test_notification_ref_scope.py
|
|
508
509
|
tests/test_ollama_credentials.py
|
|
509
510
|
tests/test_oracle_api_auth.py
|
|
510
511
|
tests/test_oracle_apikey_api.py
|
|
@@ -500,6 +500,38 @@ def _resolve_registered(raw: str) -> Path | None:
|
|
|
500
500
|
return None
|
|
501
501
|
|
|
502
502
|
|
|
503
|
+
def _serving_project(raw: str) -> Path | None:
|
|
504
|
+
"""The registered project that serves an override row's ``project_path``:
|
|
505
|
+
that project itself, or the deepest registered project containing it.
|
|
506
|
+
|
|
507
|
+
A session in a worktree nested inside a registered project (Claude Code's
|
|
508
|
+
``.claude/worktrees/<name>``) files its requests under the worktree path,
|
|
509
|
+
which is never registered itself. Refusing those rows left the desk and
|
|
510
|
+
the phone unable to show or answer a hold the agent was blocked on.
|
|
511
|
+
"""
|
|
512
|
+
raw = (raw or "").strip()
|
|
513
|
+
if not raw or _scanner is None:
|
|
514
|
+
return None
|
|
515
|
+
try:
|
|
516
|
+
target = os.path.normcase(str(Path(raw).resolve()))
|
|
517
|
+
except (OSError, ValueError):
|
|
518
|
+
return None
|
|
519
|
+
best: Path | None = None
|
|
520
|
+
best_len = -1
|
|
521
|
+
for proj in _scanner.discover():
|
|
522
|
+
if not proj.get("has_c3"):
|
|
523
|
+
continue
|
|
524
|
+
try:
|
|
525
|
+
candidate = Path(proj["path"]).resolve()
|
|
526
|
+
except (OSError, ValueError):
|
|
527
|
+
continue
|
|
528
|
+
key = os.path.normcase(str(candidate))
|
|
529
|
+
inside = target == key or target.startswith(key.rstrip("\\/") + os.sep)
|
|
530
|
+
if inside and len(key) > best_len:
|
|
531
|
+
best, best_len = candidate, len(key)
|
|
532
|
+
return best
|
|
533
|
+
|
|
534
|
+
|
|
503
535
|
def _project_or_404(raw: str):
|
|
504
536
|
"""Returns (Path, None) or (None, error_response)."""
|
|
505
537
|
if not (raw or "").strip():
|
|
@@ -2453,7 +2485,7 @@ def mobile_overrides_list():
|
|
|
2453
2485
|
# does not serve — the store is one file across every project on the
|
|
2454
2486
|
# machine, including ones the scanner has since dropped.
|
|
2455
2487
|
rows = [r for r in rows
|
|
2456
|
-
if
|
|
2488
|
+
if _serving_project(str(r.get("project_path") or "")) is not None]
|
|
2457
2489
|
channels = _override_channels(rows)
|
|
2458
2490
|
cards = []
|
|
2459
2491
|
for r in rows:
|
|
@@ -2739,7 +2771,7 @@ def mobile_overrides_costs():
|
|
|
2739
2771
|
# whole machine, and a cross-project view must not name a project
|
|
2740
2772
|
# this token cannot otherwise see.
|
|
2741
2773
|
rules = [r for r in rules
|
|
2742
|
-
if
|
|
2774
|
+
if _serving_project(str(r.get("project_path") or "")) is not None]
|
|
2743
2775
|
return jsonify({"days": days, "rules": rules, "count": len(rules),
|
|
2744
2776
|
"project": project_path})
|
|
2745
2777
|
|
|
@@ -2754,7 +2786,7 @@ def mobile_override_get(request_id):
|
|
|
2754
2786
|
row = orq.get(str(request_id))
|
|
2755
2787
|
if row is None:
|
|
2756
2788
|
return jsonify({"error": "unknown request"}), 404
|
|
2757
|
-
if
|
|
2789
|
+
if _serving_project(str(row.get("project_path") or "")) is None:
|
|
2758
2790
|
# Same refusal as an unknown id: whether a request exists for a project
|
|
2759
2791
|
# this gateway does not serve is not this token's business.
|
|
2760
2792
|
return jsonify({"error": "unknown request"}), 404
|
|
@@ -2823,7 +2855,7 @@ def mobile_override_decide(request_id):
|
|
|
2823
2855
|
f"{', '.join(orq.MODES)}"}), 400
|
|
2824
2856
|
|
|
2825
2857
|
row = orq.get(str(request_id))
|
|
2826
|
-
if row is None or
|
|
2858
|
+
if row is None or _serving_project(str(row.get("project_path") or "")) is None:
|
|
2827
2859
|
return jsonify({"error": "unknown request"}), 404
|
|
2828
2860
|
if row.get("status") != orq.STATUS_PENDING:
|
|
2829
2861
|
# §12.7: it lapsed while the phone was showing it. 409, and the card
|
|
@@ -2961,7 +2993,7 @@ def mobile_override_mute(request_id):
|
|
|
2961
2993
|
from services import override_requests as orq
|
|
2962
2994
|
data = request.get_json(silent=True) or {}
|
|
2963
2995
|
row = orq.get(str(request_id))
|
|
2964
|
-
if row is None or
|
|
2996
|
+
if row is None or _serving_project(str(row.get("project_path") or "")) is None:
|
|
2965
2997
|
return jsonify({"error": "unknown request"}), 404
|
|
2966
2998
|
if row.get("status") != orq.STATUS_PENDING:
|
|
2967
2999
|
return jsonify({"error": f"request is {row.get('status')}, not pending",
|
|
@@ -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.2"
|
|
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"
|
|
@@ -2,20 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
Persists to .c3/notifications.jsonl. Supports dedup, severity filtering,
|
|
4
4
|
and auto-acknowledgement when surfaced to Claude via tool responses.
|
|
5
|
+
|
|
6
|
+
Several processes write one project's file at once: every MCP server (the
|
|
7
|
+
auto-ack on each tool response), hook subprocesses (session open and end, the
|
|
8
|
+
override request filed at a confirm denial), the Oracle (the phone's and the
|
|
9
|
+
desk's acks) and the job supervisor. So every method that can rewrite the
|
|
10
|
+
file holds a cross-process lock, and a rewrite is published by atomic
|
|
11
|
+
replace; otherwise a line appended between another writer's read and its
|
|
12
|
+
rewrite is lost.
|
|
5
13
|
"""
|
|
6
14
|
import hashlib
|
|
7
15
|
import json
|
|
16
|
+
import os
|
|
8
17
|
import threading
|
|
18
|
+
import time
|
|
9
19
|
import uuid
|
|
20
|
+
from contextlib import contextmanager
|
|
10
21
|
from datetime import datetime, timedelta, timezone
|
|
11
22
|
from pathlib import Path
|
|
12
23
|
|
|
24
|
+
from services.atomic_json import write_text_atomic
|
|
25
|
+
|
|
13
26
|
# How long to suppress a repeated agent+title after it has been acknowledged.
|
|
14
27
|
_COOLDOWN_MINUTES = {"critical": 5, "warning": 30, "info": 60}
|
|
15
28
|
|
|
16
29
|
# Duplicate collapse: keep the most severe label when merging records.
|
|
17
30
|
_SEVERITY_RANK = {"info": 0, "warning": 1, "critical": 2}
|
|
18
31
|
|
|
32
|
+
# How long a writer waits for another process's rewrite. Past it the write
|
|
33
|
+
# goes ahead unlocked rather than being dropped.
|
|
34
|
+
_LOCK_TIMEOUT_S = 5.0
|
|
35
|
+
_LOCK_POLL_S = 0.01
|
|
36
|
+
|
|
19
37
|
# Event kinds written by C3's own producers (v2.126.0). A client ROUTES on
|
|
20
38
|
# ``kind`` + ``ref_id`` rather than parsing the title; every kind here also
|
|
21
39
|
# lands in .c3/notifications.jsonl, which is one of the files the mobile
|
|
@@ -63,18 +81,84 @@ def _entry_count(entry: dict) -> int:
|
|
|
63
81
|
return 1
|
|
64
82
|
|
|
65
83
|
|
|
84
|
+
class _FileLock:
|
|
85
|
+
"""Advisory cross-process lock on a sidecar file, released by the OS if
|
|
86
|
+
the holder dies. The shape of ``services.task_store._FileLock``, except
|
|
87
|
+
that ``acquire`` gives up quietly: it returns False on timeout instead of
|
|
88
|
+
raising, and the caller carries on without the lock."""
|
|
89
|
+
|
|
90
|
+
def __init__(self, path: Path):
|
|
91
|
+
self.path = path
|
|
92
|
+
self._fh = None
|
|
93
|
+
|
|
94
|
+
def acquire(self, timeout_s: float = _LOCK_TIMEOUT_S) -> bool:
|
|
95
|
+
try:
|
|
96
|
+
fh = open(self.path, "ab") # never read/written; fd exists to hold the lock
|
|
97
|
+
except OSError:
|
|
98
|
+
return False
|
|
99
|
+
deadline = time.monotonic() + timeout_s
|
|
100
|
+
while True:
|
|
101
|
+
try:
|
|
102
|
+
if os.name == "nt":
|
|
103
|
+
import msvcrt
|
|
104
|
+
fh.seek(0)
|
|
105
|
+
msvcrt.locking(fh.fileno(), msvcrt.LK_NBLCK, 1)
|
|
106
|
+
else:
|
|
107
|
+
import fcntl
|
|
108
|
+
fcntl.flock(fh.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
|
|
109
|
+
self._fh = fh
|
|
110
|
+
return True
|
|
111
|
+
except OSError:
|
|
112
|
+
if time.monotonic() >= deadline:
|
|
113
|
+
fh.close()
|
|
114
|
+
return False
|
|
115
|
+
time.sleep(_LOCK_POLL_S)
|
|
116
|
+
|
|
117
|
+
def release(self) -> None:
|
|
118
|
+
fh, self._fh = self._fh, None
|
|
119
|
+
if fh is None:
|
|
120
|
+
return
|
|
121
|
+
try:
|
|
122
|
+
if os.name == "nt":
|
|
123
|
+
import msvcrt
|
|
124
|
+
fh.seek(0)
|
|
125
|
+
msvcrt.locking(fh.fileno(), msvcrt.LK_UNLCK, 1)
|
|
126
|
+
else:
|
|
127
|
+
import fcntl
|
|
128
|
+
fcntl.flock(fh.fileno(), fcntl.LOCK_UN)
|
|
129
|
+
except OSError:
|
|
130
|
+
pass
|
|
131
|
+
finally:
|
|
132
|
+
fh.close()
|
|
133
|
+
|
|
134
|
+
|
|
66
135
|
class NotificationStore:
|
|
67
136
|
"""Thread-safe JSONL notification store for background agents."""
|
|
68
137
|
|
|
69
138
|
def __init__(self, project_path: str):
|
|
70
139
|
self._file = Path(project_path) / ".c3" / "notifications.jsonl"
|
|
71
140
|
self._file.parent.mkdir(parents=True, exist_ok=True)
|
|
141
|
+
self._lock_file = self._file.with_name(self._file.name + ".lock")
|
|
72
142
|
self._lock = threading.Lock()
|
|
73
143
|
# Retro-cleanup runs at most once per store instance, lazily on first
|
|
74
144
|
# access, so pre-existing duplicate backlogs self-heal without a
|
|
75
145
|
# dedicated maintenance pass.
|
|
76
146
|
self._collapsed = False
|
|
77
147
|
|
|
148
|
+
@contextmanager
|
|
149
|
+
def _locked(self):
|
|
150
|
+
"""This instance's thread lock plus the cross-process file lock. Every
|
|
151
|
+
method that can rewrite the file runs under both; instances are made
|
|
152
|
+
per call all over C3, so the thread lock alone never covered two
|
|
153
|
+
threads, let alone two processes."""
|
|
154
|
+
with self._lock:
|
|
155
|
+
file_lock = _FileLock(self._lock_file)
|
|
156
|
+
file_lock.acquire()
|
|
157
|
+
try:
|
|
158
|
+
yield
|
|
159
|
+
finally:
|
|
160
|
+
file_lock.release()
|
|
161
|
+
|
|
78
162
|
def add(self, agent: str, severity: str, title: str, message: str,
|
|
79
163
|
ai_enhanced: bool = False, replace_if_unacked: bool = False,
|
|
80
164
|
kind: str = "", ref_id: str = "") -> dict | None:
|
|
@@ -95,9 +179,12 @@ class NotificationStore:
|
|
|
95
179
|
ref_id: the id of the thing the notification is ABOUT (e.g. the
|
|
96
180
|
override request), which is not the notification's own ``id``.
|
|
97
181
|
A client needs both: ``id`` to acknowledge, ``ref_id`` to navigate.
|
|
182
|
+
It is also part of the dedup identity: an entry with a ref_id
|
|
183
|
+
only collapses into, or is suppressed by, an entry with the same
|
|
184
|
+
ref_id (unless ``replace_if_unacked``).
|
|
98
185
|
Returns the entry if written/updated, None if deduped.
|
|
99
186
|
"""
|
|
100
|
-
with self.
|
|
187
|
+
with self._locked():
|
|
101
188
|
self._maybe_collapse_locked()
|
|
102
189
|
message_hash = hashlib.md5((message or "").encode("utf-8")).hexdigest()[:12]
|
|
103
190
|
cooldown = timedelta(minutes=_COOLDOWN_MINUTES.get(severity, 30))
|
|
@@ -106,6 +193,12 @@ class NotificationStore:
|
|
|
106
193
|
for existing in entries:
|
|
107
194
|
if existing.get("agent") != agent or existing.get("title") != title:
|
|
108
195
|
continue
|
|
196
|
+
# A second request on the same file is a new event, not a
|
|
197
|
+
# repeat: clients learn of requests only from this line.
|
|
198
|
+
# `replace_if_unacked` keeps title scope by request.
|
|
199
|
+
if (ref_id and not replace_if_unacked
|
|
200
|
+
and (existing.get("ref_id") or "") != ref_id):
|
|
201
|
+
continue
|
|
109
202
|
if not existing.get("acknowledged"):
|
|
110
203
|
if replace_if_unacked:
|
|
111
204
|
# Update in-place — prevents repeated pile-up for chatty agents
|
|
@@ -168,7 +261,7 @@ class NotificationStore:
|
|
|
168
261
|
|
|
169
262
|
def get_pending_count(self) -> int:
|
|
170
263
|
"""Return count of unacknowledged warning/critical notifications without consuming them."""
|
|
171
|
-
with self.
|
|
264
|
+
with self._locked():
|
|
172
265
|
self._maybe_collapse_locked()
|
|
173
266
|
return sum(
|
|
174
267
|
1 for e in self._read_all()
|
|
@@ -190,7 +283,7 @@ class NotificationStore:
|
|
|
190
283
|
"""
|
|
191
284
|
if severities is None:
|
|
192
285
|
severities = self._ACTIONABLE
|
|
193
|
-
with self.
|
|
286
|
+
with self._locked():
|
|
194
287
|
self._maybe_collapse_locked()
|
|
195
288
|
entries = [
|
|
196
289
|
e for e in self._read_all()
|
|
@@ -202,7 +295,7 @@ class NotificationStore:
|
|
|
202
295
|
|
|
203
296
|
def get_suppressed_info_count(self) -> int:
|
|
204
297
|
"""Count of unacknowledged 'info' notifications not shown in actionable view."""
|
|
205
|
-
with self.
|
|
298
|
+
with self._locked():
|
|
206
299
|
self._maybe_collapse_locked()
|
|
207
300
|
return sum(
|
|
208
301
|
1 for e in self._read_all()
|
|
@@ -218,12 +311,12 @@ class NotificationStore:
|
|
|
218
311
|
|
|
219
312
|
def acknowledge(self, notification_id: str) -> bool:
|
|
220
313
|
"""Mark a single notification as acknowledged."""
|
|
221
|
-
with self.
|
|
314
|
+
with self._locked():
|
|
222
315
|
return self._set_ack(lambda e: e.get("id") == notification_id)
|
|
223
316
|
|
|
224
317
|
def acknowledge_all(self) -> int:
|
|
225
318
|
"""Mark all unacknowledged notifications as acknowledged. Returns count."""
|
|
226
|
-
with self.
|
|
319
|
+
with self._locked():
|
|
227
320
|
entries = self._read_all()
|
|
228
321
|
count = 0
|
|
229
322
|
for e in entries:
|
|
@@ -239,7 +332,7 @@ class NotificationStore:
|
|
|
239
332
|
|
|
240
333
|
Auto-acknowledges those included. Returns empty string if none.
|
|
241
334
|
"""
|
|
242
|
-
with self.
|
|
335
|
+
with self._locked():
|
|
243
336
|
self._maybe_collapse_locked()
|
|
244
337
|
entries = self._read_all()
|
|
245
338
|
pending = [
|
|
@@ -282,7 +375,7 @@ class NotificationStore:
|
|
|
282
375
|
than ``min_age_minutes`` also stay, so add()'s post-ack cooldown
|
|
283
376
|
suppression window keeps working. Returns the count moved.
|
|
284
377
|
"""
|
|
285
|
-
with self.
|
|
378
|
+
with self._locked():
|
|
286
379
|
entries = self._read_all()
|
|
287
380
|
horizon = datetime.now(timezone.utc) - timedelta(
|
|
288
381
|
minutes=max(0, min_age_minutes))
|
|
@@ -312,14 +405,15 @@ class NotificationStore:
|
|
|
312
405
|
def collapse_duplicates(self) -> int:
|
|
313
406
|
"""Retro-cleanup: merge unacknowledged duplicates into one record each.
|
|
314
407
|
|
|
315
|
-
Unacknowledged entries sharing (agent, title) collapse into
|
|
316
|
-
recent record, which absorbs the group's total ``count``, the
|
|
317
|
-
``last_seen``, and the highest severity. The newest message wins —
|
|
408
|
+
Unacknowledged entries sharing (agent, title, ref_id) collapse into
|
|
409
|
+
the most recent record, which absorbs the group's total ``count``, the
|
|
410
|
+
max ``last_seen``, and the highest severity. The newest message wins —
|
|
318
411
|
older same-title messages are stale snapshots of the same condition.
|
|
412
|
+
Entries about different things (different ``ref_id``) never merge.
|
|
319
413
|
Acknowledged history is never touched. Returns the number of duplicate
|
|
320
414
|
records removed.
|
|
321
415
|
"""
|
|
322
|
-
with self.
|
|
416
|
+
with self._locked():
|
|
323
417
|
self._collapsed = True
|
|
324
418
|
return self._collapse_locked()
|
|
325
419
|
|
|
@@ -334,13 +428,14 @@ class NotificationStore:
|
|
|
334
428
|
pass # maintenance is best-effort — never break reads/writes
|
|
335
429
|
|
|
336
430
|
def _collapse_locked(self) -> int:
|
|
337
|
-
"""Merge unacked duplicates (same agent+title). Caller must hold
|
|
431
|
+
"""Merge unacked duplicates (same agent+title+ref_id). Caller must hold _locked()."""
|
|
338
432
|
entries = self._read_all()
|
|
339
433
|
groups: dict[tuple, list] = {}
|
|
340
434
|
for e in entries:
|
|
341
435
|
if e.get("acknowledged"):
|
|
342
436
|
continue
|
|
343
|
-
groups.setdefault((e.get("agent"), e.get("title")
|
|
437
|
+
groups.setdefault((e.get("agent"), e.get("title"),
|
|
438
|
+
e.get("ref_id") or ""), []).append(e)
|
|
344
439
|
|
|
345
440
|
drop_ids: set[int] = set()
|
|
346
441
|
removed = 0
|
|
@@ -377,10 +472,16 @@ class NotificationStore:
|
|
|
377
472
|
return entries
|
|
378
473
|
|
|
379
474
|
def _write_all(self, entries: list):
|
|
380
|
-
"""Rewrite entire file. Caller must hold
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
475
|
+
"""Rewrite entire file. Caller must hold _locked().
|
|
476
|
+
|
|
477
|
+
Published by atomic replace, so a reader that takes no lock (the
|
|
478
|
+
gateway feed, the hub) sees the old file or the new one, never the
|
|
479
|
+
truncated middle of a rewrite. No fsync: this is a feed, and what
|
|
480
|
+
readers need is the replace, not durability across a power cut.
|
|
481
|
+
"""
|
|
482
|
+
write_text_atomic(self._file,
|
|
483
|
+
"".join(json.dumps(e) + "\n" for e in entries),
|
|
484
|
+
fsync=False)
|
|
384
485
|
|
|
385
486
|
def _set_ack(self, predicate) -> bool:
|
|
386
487
|
"""Acknowledge entries matching predicate. Caller must hold _lock."""
|
|
@@ -559,6 +559,11 @@ def _notify_decision(project_path: str, row: dict, grant=None) -> None:
|
|
|
559
559
|
severity="info",
|
|
560
560
|
title=f"Override {status}: {name}",
|
|
561
561
|
message=message,
|
|
562
|
+
# Scopes the store's dedup to this request: two decisions on one
|
|
563
|
+
# file inside the info cooldown are two lines, and a client drops
|
|
564
|
+
# a card answered elsewhere when it sees one. No `kind`, so the
|
|
565
|
+
# line still reads as a decision rather than a request to route to.
|
|
566
|
+
ref_id=str(row.get("id") or ""),
|
|
562
567
|
)
|
|
563
568
|
except Exception:
|
|
564
569
|
pass # the decision already happened; a missing feed line never undoes it
|
{code_context_control-2.158.1 → code_context_control-2.158.2}/tests/test_mobile_override_routes.py
RENAMED
|
@@ -427,6 +427,33 @@ class TestListing(_OverrideRouteBase):
|
|
|
427
427
|
self.assertEqual(
|
|
428
428
|
self.get(f"/api/mobile/overrides/{row['id']}").status_code, 404)
|
|
429
429
|
|
|
430
|
+
def test_rows_from_a_worktree_inside_a_registered_project_are_served(self):
|
|
431
|
+
worktree = self.proj / ".claude" / "worktrees" / "wt-1"
|
|
432
|
+
(worktree / ".c3").mkdir(parents=True)
|
|
433
|
+
self.write_policy(worktree)
|
|
434
|
+
row = self.make_request(project=worktree)
|
|
435
|
+
|
|
436
|
+
ids = [r["id"] for r in
|
|
437
|
+
self.get("/api/mobile/overrides?status=pending").get_json()["requests"]]
|
|
438
|
+
self.assertIn(row["id"], ids)
|
|
439
|
+
self.assertEqual(
|
|
440
|
+
self.get(f"/api/mobile/overrides/{row['id']}").status_code, 200)
|
|
441
|
+
res = self.post(f"/api/mobile/overrides/{row['id']}/decide",
|
|
442
|
+
{"decision": "deny"})
|
|
443
|
+
self.assertEqual(res.status_code, 200)
|
|
444
|
+
|
|
445
|
+
def test_a_sibling_sharing_a_name_prefix_is_not_inside_the_project(self):
|
|
446
|
+
sibling = Path(f"{self.proj}-copy")
|
|
447
|
+
(sibling / ".c3").mkdir(parents=True)
|
|
448
|
+
self.write_policy(sibling)
|
|
449
|
+
row = self.make_request(project=sibling)
|
|
450
|
+
|
|
451
|
+
ids = [r["id"] for r in
|
|
452
|
+
self.get("/api/mobile/overrides").get_json()["requests"]]
|
|
453
|
+
self.assertNotIn(row["id"], ids)
|
|
454
|
+
self.assertEqual(
|
|
455
|
+
self.get(f"/api/mobile/overrides/{row['id']}").status_code, 404)
|
|
456
|
+
|
|
430
457
|
def test_filter_by_status(self):
|
|
431
458
|
pending = self.make_request(name="p.env", rule="**/*.env")
|
|
432
459
|
denied = self.make_request(name="d.env", rule="**/*.env")
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"""Approval requests reach the feed: ref_id-scoped dedup and a locked store.
|
|
2
|
+
|
|
3
|
+
The desk and the phone learn of an override request only from its line in
|
|
4
|
+
``.c3/notifications.jsonl``. Two things kept that line from existing:
|
|
5
|
+
|
|
6
|
+
- dedup keyed on agent+title: a second request on the same file inside the
|
|
7
|
+
cooldown after the first was acknowledged wrote nothing at all;
|
|
8
|
+
- unlocked read-modify-write from several processes: a rewrite from a stale
|
|
9
|
+
or truncated read dropped lines another process had just appended.
|
|
10
|
+
"""
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import json
|
|
14
|
+
import subprocess
|
|
15
|
+
import sys
|
|
16
|
+
import tempfile
|
|
17
|
+
import textwrap
|
|
18
|
+
import time
|
|
19
|
+
import unittest
|
|
20
|
+
from pathlib import Path
|
|
21
|
+
from types import SimpleNamespace
|
|
22
|
+
|
|
23
|
+
REPO_ROOT = Path(__file__).resolve().parent.parent
|
|
24
|
+
sys.path.insert(0, str(REPO_ROOT))
|
|
25
|
+
|
|
26
|
+
from services import override_requests as orq # noqa: E402
|
|
27
|
+
from services.notifications import NotificationStore # noqa: E402
|
|
28
|
+
|
|
29
|
+
_TITLE = "Approve Edit write on SKILL.md?"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _lines(project: Path) -> list[dict]:
|
|
33
|
+
path = project / ".c3" / "notifications.jsonl"
|
|
34
|
+
if not path.is_file():
|
|
35
|
+
return []
|
|
36
|
+
return [json.loads(line) for line in
|
|
37
|
+
path.read_text(encoding="utf-8").splitlines() if line.strip()]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def _request_row(request_id: str, status: str = "pending") -> dict:
|
|
41
|
+
return {"id": request_id, "tool": "Edit", "op": "write",
|
|
42
|
+
"path": "skills/demo/SKILL.md", "rule": ".claude/**",
|
|
43
|
+
"rule_class": "access_confirm", "status": status}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class _Base(unittest.TestCase):
|
|
47
|
+
def setUp(self):
|
|
48
|
+
self._tmp = tempfile.TemporaryDirectory()
|
|
49
|
+
self.project = Path(self._tmp.name) / "proj"
|
|
50
|
+
(self.project / ".c3").mkdir(parents=True)
|
|
51
|
+
|
|
52
|
+
def tearDown(self):
|
|
53
|
+
for _ in range(20):
|
|
54
|
+
try:
|
|
55
|
+
self._tmp.cleanup()
|
|
56
|
+
break
|
|
57
|
+
except OSError:
|
|
58
|
+
time.sleep(0.05)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class TestRefScopedDedup(_Base):
|
|
62
|
+
def test_acknowledged_request_does_not_suppress_the_next_on_the_same_file(self):
|
|
63
|
+
store = NotificationStore(str(self.project))
|
|
64
|
+
first = store.add("override", "critical", _TITLE, "approve ovr_a",
|
|
65
|
+
kind="override", ref_id="ovr_a")
|
|
66
|
+
store.acknowledge(first["id"])
|
|
67
|
+
|
|
68
|
+
second = store.add("override", "critical", _TITLE, "approve ovr_b",
|
|
69
|
+
kind="override", ref_id="ovr_b")
|
|
70
|
+
|
|
71
|
+
self.assertIsNotNone(second)
|
|
72
|
+
self.assertEqual({e.get("ref_id") for e in _lines(self.project)},
|
|
73
|
+
{"ovr_a", "ovr_b"})
|
|
74
|
+
|
|
75
|
+
def test_pending_requests_sharing_a_title_survive_the_collapse(self):
|
|
76
|
+
store = NotificationStore(str(self.project))
|
|
77
|
+
store.add("override", "critical", _TITLE, "approve ovr_a",
|
|
78
|
+
kind="override", ref_id="ovr_a")
|
|
79
|
+
store.add("override", "critical", _TITLE, "approve ovr_b",
|
|
80
|
+
kind="override", ref_id="ovr_b")
|
|
81
|
+
|
|
82
|
+
removed = NotificationStore(str(self.project)).collapse_duplicates()
|
|
83
|
+
|
|
84
|
+
self.assertEqual(removed, 0)
|
|
85
|
+
self.assertEqual(len(_lines(self.project)), 2)
|
|
86
|
+
|
|
87
|
+
def test_the_same_ref_id_still_collapses_into_one_record(self):
|
|
88
|
+
store = NotificationStore(str(self.project))
|
|
89
|
+
store.add("ci", "warning", "CI failed", "run 7", kind="ci", ref_id="run_7")
|
|
90
|
+
again = store.add("ci", "warning", "CI failed", "run 7",
|
|
91
|
+
kind="ci", ref_id="run_7")
|
|
92
|
+
|
|
93
|
+
self.assertIsNone(again)
|
|
94
|
+
(only,) = _lines(self.project)
|
|
95
|
+
self.assertEqual(only["count"], 2)
|
|
96
|
+
|
|
97
|
+
def test_replace_if_unacked_still_retargets_by_title(self):
|
|
98
|
+
store = NotificationStore(str(self.project))
|
|
99
|
+
store.add("agent", "warning", "Index stale", "one", ref_id="r1")
|
|
100
|
+
store.add("agent", "warning", "Index stale", "two", ref_id="r2",
|
|
101
|
+
replace_if_unacked=True)
|
|
102
|
+
|
|
103
|
+
(only,) = _lines(self.project)
|
|
104
|
+
self.assertEqual((only["ref_id"], only["message"]), ("r2", "two"))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class TestOverrideLines(_Base):
|
|
108
|
+
def test_second_request_on_a_file_is_notified_after_the_first_was_read(self):
|
|
109
|
+
policy = SimpleNamespace(notify_severity="critical")
|
|
110
|
+
orq._notify(str(self.project), _request_row("ovr_a"), policy)
|
|
111
|
+
store = NotificationStore(str(self.project))
|
|
112
|
+
store.acknowledge(_lines(self.project)[0]["id"])
|
|
113
|
+
|
|
114
|
+
orq._notify(str(self.project), _request_row("ovr_b"), policy)
|
|
115
|
+
|
|
116
|
+
refs = [e.get("ref_id") for e in _lines(self.project)
|
|
117
|
+
if e.get("kind") == "override"]
|
|
118
|
+
self.assertEqual(refs, ["ovr_a", "ovr_b"])
|
|
119
|
+
|
|
120
|
+
def test_two_decisions_on_one_file_are_two_lines(self):
|
|
121
|
+
orq._notify_decision(str(self.project), _request_row("ovr_a", "approved"))
|
|
122
|
+
store = NotificationStore(str(self.project))
|
|
123
|
+
store.acknowledge(_lines(self.project)[0]["id"])
|
|
124
|
+
|
|
125
|
+
orq._notify_decision(str(self.project), _request_row("ovr_b", "approved"))
|
|
126
|
+
|
|
127
|
+
decisions = _lines(self.project)
|
|
128
|
+
self.assertEqual([e.get("ref_id") for e in decisions], ["ovr_a", "ovr_b"])
|
|
129
|
+
self.assertTrue(all(not e.get("kind") for e in decisions))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
_WRITER = textwrap.dedent("""
|
|
133
|
+
import sys
|
|
134
|
+
sys.path.insert(0, sys.argv[1])
|
|
135
|
+
from services.notifications import NotificationStore
|
|
136
|
+
project, tag, count = sys.argv[2], sys.argv[3], int(sys.argv[4])
|
|
137
|
+
for i in range(count):
|
|
138
|
+
NotificationStore(project).add(
|
|
139
|
+
"override", "critical", f"req {tag}-{i}", "m",
|
|
140
|
+
kind="override", ref_id=f"{tag}-{i}")
|
|
141
|
+
""")
|
|
142
|
+
|
|
143
|
+
_REWRITER = textwrap.dedent("""
|
|
144
|
+
import os, sys
|
|
145
|
+
sys.path.insert(0, sys.argv[1])
|
|
146
|
+
from services.notifications import NotificationStore
|
|
147
|
+
project, stop = sys.argv[2], sys.argv[3]
|
|
148
|
+
while not os.path.exists(stop):
|
|
149
|
+
store = NotificationStore(project)
|
|
150
|
+
store.get_pending_summary()
|
|
151
|
+
store.acknowledge_all()
|
|
152
|
+
""")
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
class TestConcurrentWriters(_Base):
|
|
156
|
+
def test_lines_appended_by_one_process_survive_rewrites_by_others(self):
|
|
157
|
+
writers, per_writer = 3, 30
|
|
158
|
+
stop = Path(self._tmp.name) / "stop"
|
|
159
|
+
args = [str(REPO_ROOT), str(self.project)]
|
|
160
|
+
rewriters = [subprocess.Popen([sys.executable, "-c", _REWRITER, *args, str(stop)])
|
|
161
|
+
for _ in range(2)]
|
|
162
|
+
try:
|
|
163
|
+
procs = [subprocess.Popen([sys.executable, "-c", _WRITER, *args,
|
|
164
|
+
f"w{n}", str(per_writer)])
|
|
165
|
+
for n in range(writers)]
|
|
166
|
+
for proc in procs:
|
|
167
|
+
self.assertEqual(proc.wait(timeout=120), 0)
|
|
168
|
+
finally:
|
|
169
|
+
stop.touch()
|
|
170
|
+
for proc in rewriters:
|
|
171
|
+
proc.wait(timeout=60)
|
|
172
|
+
|
|
173
|
+
refs = [e.get("ref_id") for e in _lines(self.project)]
|
|
174
|
+
self.assertEqual(len(refs), writers * per_writer)
|
|
175
|
+
self.assertEqual(len(set(refs)), writers * per_writer)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
if __name__ == "__main__":
|
|
179
|
+
unittest.main()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|