code-context-control 2.160.0__tar.gz → 2.161.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {code_context_control-2.160.0/code_context_control.egg-info → code_context_control-2.161.0}/PKG-INFO +1 -1
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/c3.py +1 -1
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_server.py +7 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0/code_context_control.egg-info}/PKG-INFO +1 -1
- {code_context_control-2.160.0 → code_context_control-2.161.0}/code_context_control.egg-info/SOURCES.txt +1 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/mobile_api.py +20 -1
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/schedule_api.py +89 -1
- {code_context_control-2.160.0 → code_context_control-2.161.0}/pyproject.toml +1 -1
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/schedule_runner.py +253 -10
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/schedule_store.py +14 -1
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_schedules_routes.py +13 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_schedules.py +38 -0
- code_context_control-2.161.0/tests/test_schedule_output.py +322 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_schedule_runner.py +21 -4
- {code_context_control-2.160.0 → code_context_control-2.161.0}/LICENSE +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/README.md +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/_hook_utils.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/_shell_writes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/commands/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/commands/common.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/commands/parser.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/docs.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/edits.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/access.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/bitbucket.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/ci.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/credentials.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/delegate.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/getting-started.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/index.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/jira.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/masking.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/oracle.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/sessions.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/shared.css +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/tools.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/guide/workflow.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_access_guard.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_agent_model.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_artifact.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_auto_snapshot.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_c3_signal.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_c3read.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_codex_lifecycle.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_dispatch.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_edit_ledger.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_edit_unlock.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_filter.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_ghost_files.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_pretool_enforce.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_prompt_recall.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_read.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_session_end.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_session_open.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_session_stats.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hook_terse_advisor.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/app.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/add_project.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/config_editor.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/drill_artifacts.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/drill_health.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/drill_panel.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/drill_subprojects.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/drill_tasks.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/drill_views.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/global_search.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/hub_access.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/hub_ci.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/hub_cred_audit.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/hub_credentials.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/hub_enforcement.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/hub_locks.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/hub_schedules.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/hub_sessions.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/hub_tokens.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/mcp_manager.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/modals.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/project_card.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/project_tree.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/session_drawer.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/settings_modal.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/sidebar.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/summary_bar.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/task_board.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/toasts.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/components/topbar.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui/state.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/hub_ui.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/mcp_proxy.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/mcp_server.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/progress.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/server.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/_edit_report.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/_grants.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/_helpers.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/_json_reply.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/agent.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/artifacts.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/bitbucket.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/ci.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/compress.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/credentials.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/delegate.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/edit.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/edit_verify.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/edits.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/federate.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/filter.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/impact.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/jira.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/locks.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/memory.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/override.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/project.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/read.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/schedule.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/search.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/session.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/shell.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/shell_job.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/shell_nudge.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/shell_parsers.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/shell_render.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/status.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/tasks.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/tools/validate.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/api.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/app.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/access.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/bitbucket.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/chat.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/credentials.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/dashboard.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/edits.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/enforcement.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/instructions.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/jira.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/memory.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/sessions.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/settings.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/sidebar.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/components/tasks.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/icons.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/pm_shared.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/shared.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui/theme.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui_legacy.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/cli/ui_nano.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/code_context_control.egg-info/dependency_links.txt +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/code_context_control.egg-info/entry_points.txt +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/code_context_control.egg-info/requires.txt +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/code_context_control.egg-info/top_level.txt +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/blas_threads.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/codex_patch.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/config.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/grok_payload.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/hook_command.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/host.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/ide.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/mcp_stack.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/mcp_toml.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/core/web_security.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/config.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/listeners.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/mcp_oracle.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/oracle_server.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/oracle_ui.html +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/activity_reporter.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/api_auth.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/c3_bridge.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/chat_engine.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/chat_poll.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/chat_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/client_tokens.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/cross_memory.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/discovery_audit.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/federated_graph.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/health_checker.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/insight_engine.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/local_session.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/memory_reader.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/memory_writer.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/mobile_fleet.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/project_scanner.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/review_agent.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/scheduler.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/tool_executor.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/tool_registry.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/activity.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/agents.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/app.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/busy.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/chat/conversations.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/chat/input.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/chat/markdown.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/chat/send.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/chat/stream_renderer.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/chat/toolbar.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/core.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/crossgraph.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/header.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/insights.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/projects.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/qrcode.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/settings.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/suggestions.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/ui/theme_tabs.js +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/access_guard.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/access_telemetry.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/activity_log.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/agent_base.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/agent_downshift.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/agent_locks.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/agents.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/agents_workflow.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/artifact_defs.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/artifact_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/atomic_json.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/auto_memory.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/background_service.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bench/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bench/delegate_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bench/delegate_write_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bench/external/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bench/external/aider_polyglot.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bench/external/swe_bench.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bench/map_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bench/search_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bench/shell_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/benchmark_dashboard.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bitbucket_client.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/bitbucket_credentials.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/builtin_leases.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ci_act.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ci_cache.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ci_expr.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ci_failures.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ci_github.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ci_impact.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ci_intel.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ci_runner.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ci_workflow.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/circuit_breaker.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/claude_md.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/codex_integration.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/codex_transcript.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/compressor.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/context_snapshot.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/conversation_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/cred_audit.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/cred_telemetry.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/credential_backup.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/credential_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/cron_expr.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/delegate_agents.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/delegate_hints.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/delegate_write.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/dir_map.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/doc_index.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/e2e_benchmark.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/e2e_evaluator.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/e2e_tasks.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/edit_blobs.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/edit_ledger.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/embedding_index.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/enforcement_policy.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/error_reporting.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/file_map.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/file_memo.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/file_memory.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/fleet_overview.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/git_context.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/grok_integration.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/grok_transcript.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/host_handoff.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/host_sessions.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/hub_service.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/index_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/indexer.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/jira_client.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/jira_cloud.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/jira_credentials.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/jira_data_center.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/jira_links.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/keyring_read.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/lexical_index.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/mask_activation.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/mask_mirror.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/mask_presets.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/memory.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/memory_consolidator.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/memory_distiller.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/memory_graph.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/memory_grounder.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/memory_queue.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/memory_scorer.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/metrics.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/notifications.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ollama_bridge.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ollama_client.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ollama_credentials.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/oracle_service.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/output_filter.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/override_costs.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/override_grants.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/override_policy.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/override_requests.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/override_wake.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/parser.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/project_manager.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/project_runtime.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/protocol.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/proxy_state.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/read_stamps.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/repo_map.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/repo_shape.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/reranker.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/retention.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/retrieval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/retrieval_broker.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/router.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/runtime.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/scanner.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/schedule_approvals.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/session_benchmark.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/session_catalog.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/session_live.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/session_manager.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/session_preloader.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/shell_jobs.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/shell_output.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/subprojects.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/task_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/telemetry.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/terminal_launch.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/text_index.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/time_tracker.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/tool_classifier.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/transcript_index.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/ui_registry.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/validation_cache.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/vector_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/watcher.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/services/win_subprocess.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/setup.cfg +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_access_builtin_optout.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_access_guard.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_access_guard_cache.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_access_guard_meta.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_access_guard_shell_project.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_access_guard_surfaces.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_access_guard_wiring.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_activity_log_find_last.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_activity_reporter.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_agent_locks.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_aider_polyglot.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_antigravity_transition.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_artifact_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_artifact_tool.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_atomic_json.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_background_service.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_bitbucket_cli_smoke.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_bitbucket_client.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_bitbucket_config_fallback.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_bitbucket_credentials.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_bitbucket_tool.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_blas_threads.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_builtin_leases.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_builtin_modes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_c3_bridge_project_artifacts.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_c3_shell.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_chat_poll.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ci_act.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ci_cache.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ci_dag_ownership.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ci_expr.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ci_impact.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ci_intel.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ci_runner.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ci_workflow.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_circuit_breaker.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_claude_md_merge.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_claude_md_updater.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_cli_smoke.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_codex_mcp_transport.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_codex_native.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_compressor_large_file.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_confirm_guard.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_confirm_guard_wiring.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_cooccurrence_bounds.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_cred_audit.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_cred_telemetry.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_credential_backup.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_credential_login_kind.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_credential_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_credential_ui_parity.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_credentials_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_credentials_tool.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_creds_cli_smoke.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_cron_expr.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_adoption_d4.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_auto.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_cascade.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_claude_d1.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_grok.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_host_d2.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_scout_d3.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_telemetry_d0.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_thinking_cap.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_tuning.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_version_probe.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_write.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_delegate_write_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_dir_map_c3.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_e2e_benchmark.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_eol_atomic.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_ledger_deadline.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_ledger_hook.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_ledger_scan.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_locking.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_normalization.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_outcome.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_report.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_revert.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_stale.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_edit_verify.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_embedding_index_corrupt_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_embedding_index_deadlock.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_embedding_store_safety.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_enforcement_flip.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_enforcement_policy.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_enforcement_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_env_parser.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_failed_calls_do_not_unlock.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_federated_graph.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_file_map_c1.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_file_memo.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_file_memory_fast_paths.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_filter_backoff.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ghost_files.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ghost_generation.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_git_branch_awareness.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_grok_native.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_access_guard.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_codex_compat.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_dispatch.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_grok_compat.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_pretool_enforce.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_prompt_recall.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_session_end.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_smoke.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_state.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hook_utf8_stdio.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_host_handoff.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_host_rebind.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_access_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_batch_update.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_builtin_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_credentials_route.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_credentials_routes_write.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_enforcement_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_hook_migration.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_ide_cmd.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_inspect_api.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_locks_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_oracle_service_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_override_policy_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_override_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_rules_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_server_smoke.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_sessions_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_subproject_links.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ide_workflow_adaptation.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_index_cap_not_hardcoded.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_index_freshness.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_init_clear_preserves_user_content.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_init_scan.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_install_mcp_entrypoint.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_jira_cli_smoke.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_jira_client.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_jira_config_fallback.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_jira_credentials.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_jira_links.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_jira_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_jira_tool.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_json_reply.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_keyring_read.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_large_files_c4.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_lazy_store_init.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_map_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_map_telemetry_c0.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mask_guard.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mask_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mask_surfaces.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mcp_host_guard.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mcp_memory_timeout.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mcp_server_smoke.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mcp_stack.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mcp_toml.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_memory_distiller.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_memory_graph_api.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_memory_queue.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_memory_system.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_api.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_clients.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_extras.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_fleet.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_jobs_ci.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_override_costs.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_override_routes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_registered_rows.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_security_api.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_no_stale_model_pins.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_notification_dedup.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_notification_discipline.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_notification_kinds.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_notification_ref_scope.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ollama_credentials.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ollama_probe_cache.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_api_auth.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_apikey_api.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_c3_bridge.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_chat_engine.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_chat_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_discovery_api.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_discovery_audit.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_health_probe.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_idle_work.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_local_auth.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_loopback.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_ollama_bridge.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_scanner_cache.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_security_fixes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_session_bootstrap.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_subproject_awareness.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_oracle_ui_bundle.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_output_filter.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_override_costs.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_override_grants.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_override_grants_mcp.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_override_requests.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_override_wake.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_permissions.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_pm_api.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_project_lease_identity.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_project_manager.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_project_manager_merge.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_project_tool.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_quarantine_sweep.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_read_coercion.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_read_edit_parity.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_read_outside_root.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_related_facts.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_repo_map.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_repo_shape.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_response_boilerplate.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_retention.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_review_digest.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_schedule_api.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_schedule_approvals.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_schedule_mcp.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_schedule_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_scheduler_tick.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_search_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_search_p1.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_search_p2.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_search_p2b.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_search_p3.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_search_p4.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_search_p5.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_service_durability.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_session_benchmark.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_session_budget.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_session_catalog.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_session_live.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_session_tool.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_budget_s1.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_creds.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_eval.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_jobs_argv.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_jobs_s3.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_nudge_s4.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_output.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_parsers_s2.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_robustness.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_telemetry_s0.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_write_ledger.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_shell_writes.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_subproject_clear_scope.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_subproject_depth_consumers.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_subproject_exclusion.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_subproject_federation.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_subproject_linkage_api.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_subprojects.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_swe_bench.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_task_store.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_task_tool.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_time_tracker.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_token_telemetry.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_token_tracking.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_tool_registry.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ui_health_probe.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ui_jsx_syntax.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_ui_registry.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_upgrade_and_version.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_validate.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_vault_write_guard.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_version_sync.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_watcher_pruning.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_web_security.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_windows_reliability.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/backend.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/main.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/__init__.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/benchmark_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/claudemd_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/compress_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/index_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/init_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/mcp_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/optimize_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/pipe_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/projects_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/search_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/session_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/stats.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/screens/ui_view.py +0 -0
- {code_context_control-2.160.0 → code_context_control-2.161.0}/tui/theme.tcss +0 -0
{code_context_control-2.160.0/code_context_control.egg-info → code_context_control-2.161.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-context-control
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.161.0
|
|
4
4
|
Summary: Local MCP code-intelligence for AI coding tools: surgical search/read/edit, agent-config version history, path-level access + masking guards, and a multi-project hub.
|
|
5
5
|
Author-email: Dimitri Tselenchuk <dtselenc@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -96,7 +96,7 @@ console = Console() if HAS_RICH else None
|
|
|
96
96
|
# Config
|
|
97
97
|
CONFIG_DIR = ".c3"
|
|
98
98
|
CONFIG_FILE = ".c3/config.json"
|
|
99
|
-
__version__ = "2.
|
|
99
|
+
__version__ = "2.161.0"
|
|
100
100
|
|
|
101
101
|
# The PreToolUse matcher for native subagent calls (installer and hub migration).
|
|
102
102
|
AGENT_MATCHER = "Agent|Task"
|
|
@@ -3349,6 +3349,13 @@ def api_hub_schedule_runs():
|
|
|
3349
3349
|
return jsonify({"runs": _sched_with_names(rows), "count": len(rows), "project": project_path})
|
|
3350
3350
|
|
|
3351
3351
|
|
|
3352
|
+
@app.route("/api/hub/schedules/runs/<run_id>/output", methods=["GET"])
|
|
3353
|
+
def api_hub_schedule_run_output(run_id):
|
|
3354
|
+
data, err = _sched_call(_schedule_api().run_output, str(run_id), after=request.args.get("after"),
|
|
3355
|
+
limit=request.args.get("limit"))
|
|
3356
|
+
return err or jsonify(data)
|
|
3357
|
+
|
|
3358
|
+
|
|
3352
3359
|
@app.route("/api/hub/schedules/approvals", methods=["GET"])
|
|
3353
3360
|
def api_hub_schedule_approvals():
|
|
3354
3361
|
project_path, err = _sched_project_arg()
|
{code_context_control-2.160.0 → code_context_control-2.161.0/code_context_control.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-context-control
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.161.0
|
|
4
4
|
Summary: Local MCP code-intelligence for AI coding tools: surgical search/read/edit, agent-config version history, path-level access + masking guards, and a multi-project hub.
|
|
5
5
|
Author-email: Dimitri Tselenchuk <dtselenc@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -563,6 +563,7 @@ tests/test_review_digest.py
|
|
|
563
563
|
tests/test_schedule_api.py
|
|
564
564
|
tests/test_schedule_approvals.py
|
|
565
565
|
tests/test_schedule_mcp.py
|
|
566
|
+
tests/test_schedule_output.py
|
|
566
567
|
tests/test_schedule_runner.py
|
|
567
568
|
tests/test_schedule_store.py
|
|
568
569
|
tests/test_scheduler_tick.py
|
|
@@ -87,6 +87,8 @@ from services.atomic_json import write_json_atomic
|
|
|
87
87
|
# and /overrides/policy/clear; built-in guards read + tighten + lease
|
|
88
88
|
# revoke (/access/builtin*); the session catalog (/sessions*, no
|
|
89
89
|
# transcript text by default); and /now.
|
|
90
|
+
# 7 (unchanged, additive): `schedule_output` capability and
|
|
91
|
+
# GET /schedules/runs/<run_id>/output, a run's stdout paged by line.
|
|
90
92
|
API_VERSION = 7
|
|
91
93
|
|
|
92
94
|
CAPABILITIES = [
|
|
@@ -105,7 +107,8 @@ CAPABILITIES = [
|
|
|
105
107
|
"jobs", "ci",
|
|
106
108
|
# Scheduled tasks (/schedules): read the schedules, their runs and pending
|
|
107
109
|
# approvals; write = create/edit/run-now/decide (docs/scheduled-tasks.md).
|
|
108
|
-
|
|
110
|
+
# schedule_output: a run's stdout while it runs and after it ends.
|
|
111
|
+
"schedules", "schedules_write", "schedule_output",
|
|
109
112
|
# Poll-based chat transport, served by services/chat_poll.py under
|
|
110
113
|
# /api/mobile/chat/*. Advertised here because /info is the single place a
|
|
111
114
|
# client probes; the routes themselves live in that blueprint.
|
|
@@ -139,6 +142,7 @@ _CAPABILITY_SWITCHES = {
|
|
|
139
142
|
"suggestions_write": "mobile_suggestions_write",
|
|
140
143
|
"schedules": "mobile_schedules_enabled",
|
|
141
144
|
"schedules_write": "mobile_schedules_write",
|
|
145
|
+
"schedule_output": "mobile_schedules_enabled",
|
|
142
146
|
# v7: each overview goes dark with the subsystem it reads; locks_overview
|
|
143
147
|
# and now are ops reads like /locks and /status, so always on.
|
|
144
148
|
"access_overview": "mobile_access_enabled",
|
|
@@ -1194,6 +1198,21 @@ def mobile_schedule_runs():
|
|
|
1194
1198
|
return jsonify({"runs": rows, "count": len(rows), "project": project_path})
|
|
1195
1199
|
|
|
1196
1200
|
|
|
1201
|
+
@bp.route("/schedules/runs/<run_id>/output", methods=["GET"])
|
|
1202
|
+
def mobile_schedule_run_output(run_id):
|
|
1203
|
+
"""A run's stdout lines after ``after`` (query: after, limit); see schedule_api.run_output."""
|
|
1204
|
+
gate = _feature_or_404("schedule_output")
|
|
1205
|
+
if gate:
|
|
1206
|
+
return gate
|
|
1207
|
+
api = _schedule_api()
|
|
1208
|
+
run = api._get_store().get_run(str(run_id))
|
|
1209
|
+
if run is None or _resolve_registered(str(run.get("project_path") or "")) is None:
|
|
1210
|
+
return jsonify({"error": "unknown run"}), 404
|
|
1211
|
+
data, err = _schedule_call(api.run_output, str(run_id), after=request.args.get("after"),
|
|
1212
|
+
limit=request.args.get("limit"))
|
|
1213
|
+
return err or jsonify(data)
|
|
1214
|
+
|
|
1215
|
+
|
|
1197
1216
|
@bp.route("/schedules/approvals", methods=["GET"])
|
|
1198
1217
|
def mobile_schedule_approvals():
|
|
1199
1218
|
gate = _feature_or_404("schedules")
|
{code_context_control-2.160.0 → code_context_control-2.161.0}/oracle/services/schedule_api.py
RENAMED
|
@@ -13,9 +13,13 @@ from pathlib import Path
|
|
|
13
13
|
|
|
14
14
|
from flask import Blueprint, jsonify, request
|
|
15
15
|
|
|
16
|
+
from services import schedule_runner as runner
|
|
16
17
|
from services.cron_expr import preview, validate_when
|
|
17
18
|
from services.schedule_approvals import ApprovalError
|
|
18
|
-
from services.schedule_store import RUN_STATUSES, RevConflict, ScheduleError
|
|
19
|
+
from services.schedule_store import OPEN_RUN_STATUSES, RUN_STATUSES, RevConflict, ScheduleError
|
|
20
|
+
|
|
21
|
+
OUTPUT_DEFAULT_LIMIT = 500
|
|
22
|
+
OUTPUT_MAX_LIMIT = 2000
|
|
19
23
|
|
|
20
24
|
bp = Blueprint("schedule_api", __name__, url_prefix="/api/schedules")
|
|
21
25
|
|
|
@@ -131,6 +135,85 @@ def preview_when(body: dict) -> dict:
|
|
|
131
135
|
return {"when": when, "next": [f.isoformat() for f in fires]}
|
|
132
136
|
|
|
133
137
|
|
|
138
|
+
def run_output(run_id: str, after=0, limit=OUTPUT_DEFAULT_LIMIT, *, jobstore=None) -> dict:
|
|
139
|
+
"""One page of a run's stdout: the lines numbered ``n > after``.
|
|
140
|
+
|
|
141
|
+
Reads ``schedule_runs/<run_id>.out`` once the run has one; before that the
|
|
142
|
+
job's spool while it runs (``live``, complete lines only) or its kept
|
|
143
|
+
output once it ended (``output_store``). A line keeps its number across
|
|
144
|
+
the three. ``after`` and ``limit`` may be strings from a query;
|
|
145
|
+
``limit`` is clamped to 1..2000. Raises ``ApiError`` 404 for an unknown
|
|
146
|
+
run and 400 for a non-integer ``after``/``limit``.
|
|
147
|
+
"""
|
|
148
|
+
store = _get_store()
|
|
149
|
+
run = store.get_run(str(run_id or ""))
|
|
150
|
+
if run is None:
|
|
151
|
+
raise ApiError(f"no run {run_id}", 404)
|
|
152
|
+
after = _int_arg(after, 0, "after")
|
|
153
|
+
limit = min(max(_int_arg(limit, OUTPUT_DEFAULT_LIMIT, "limit"), 1), OUTPUT_MAX_LIMIT)
|
|
154
|
+
status = run.get("status")
|
|
155
|
+
out = {"run_id": run["run_id"], "status": status, "open": status in OPEN_RUN_STATUSES,
|
|
156
|
+
"job_id": run.get("job_id") or None, "format": _run_format(store, run),
|
|
157
|
+
"source": "none", "lines": [], "next": after, "total": 0, "dropped": 0,
|
|
158
|
+
"stderr_tail": str(run.get("stderr_tail") or "")}
|
|
159
|
+
|
|
160
|
+
def page(path, source: str, first_n: int = 1) -> bool:
|
|
161
|
+
try:
|
|
162
|
+
lines, total = runner.page_lines(path, first_n=first_n, after=after, limit=limit,
|
|
163
|
+
complete_only=source == "live")
|
|
164
|
+
except OSError:
|
|
165
|
+
return False
|
|
166
|
+
out.update(source=source, lines=lines, total=total, next=lines[-1]["n"] if lines else after)
|
|
167
|
+
return True
|
|
168
|
+
|
|
169
|
+
archive = store.runs_dir / f"{run['run_id']}.out"
|
|
170
|
+
if run.get("output_lines") is not None and archive.is_file():
|
|
171
|
+
dropped = int(run.get("output_dropped") or 0)
|
|
172
|
+
if page(archive, "archive", dropped + 1):
|
|
173
|
+
out["dropped"] = dropped
|
|
174
|
+
return out
|
|
175
|
+
job_id = run.get("job_id")
|
|
176
|
+
if not job_id:
|
|
177
|
+
return out
|
|
178
|
+
jobs = jobstore if jobstore is not None else _jobstore()
|
|
179
|
+
job = jobs.find(job_id)
|
|
180
|
+
if job is not None and not job.terminal and job.spool.get("stdout"):
|
|
181
|
+
if page(job.spool["stdout"], "live"):
|
|
182
|
+
return out
|
|
183
|
+
job = jobs.find(job_id) # the spool was promoted between the two reads
|
|
184
|
+
if job is not None and job.terminal:
|
|
185
|
+
path = runner.job_stream_path(jobs, job, "stdout")
|
|
186
|
+
if path is not None:
|
|
187
|
+
page(path, "output_store")
|
|
188
|
+
return out
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def _int_arg(value, default: int, name: str) -> int:
|
|
192
|
+
if value is None or value == "":
|
|
193
|
+
return default
|
|
194
|
+
try:
|
|
195
|
+
return max(0, int(value))
|
|
196
|
+
except (TypeError, ValueError) as exc:
|
|
197
|
+
raise ApiError(f"{name} must be an integer", 400) from exc
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
def _run_format(store, run: dict) -> str:
|
|
201
|
+
if run.get("output_format"):
|
|
202
|
+
return str(run["output_format"])
|
|
203
|
+
if run.get("status") in ("check_running", "check_skipped"):
|
|
204
|
+
return "text"
|
|
205
|
+
schedule = store.get(run.get("schedule_id") or "")
|
|
206
|
+
return runner.output_format(schedule) if schedule else "text"
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
def _jobstore():
|
|
210
|
+
jobstore = getattr(_get_scheduler(), "jobstore", None)
|
|
211
|
+
if jobstore is not None:
|
|
212
|
+
return jobstore
|
|
213
|
+
from services.shell_jobs import JobStore
|
|
214
|
+
return JobStore()
|
|
215
|
+
|
|
216
|
+
|
|
134
217
|
def _limit(default: int = 50, cap: int = 500) -> int:
|
|
135
218
|
try:
|
|
136
219
|
return max(1, min(int(request.args.get("limit") or default), cap))
|
|
@@ -198,6 +281,11 @@ def one_run(run_id: str):
|
|
|
198
281
|
return jsonify(run)
|
|
199
282
|
|
|
200
283
|
|
|
284
|
+
@bp.route("/runs/<run_id>/output", methods=["GET"])
|
|
285
|
+
def one_run_output(run_id: str):
|
|
286
|
+
return jsonify(run_output(run_id, after=request.args.get("after"), limit=request.args.get("limit")))
|
|
287
|
+
|
|
288
|
+
|
|
201
289
|
@bp.route("/approvals", methods=["GET"])
|
|
202
290
|
def approvals():
|
|
203
291
|
status = (request.args.get("status") or "").strip() or None
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "code-context-control"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.161.0"
|
|
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"
|
|
@@ -10,10 +10,13 @@ owns the order in which that happens.
|
|
|
10
10
|
from __future__ import annotations
|
|
11
11
|
|
|
12
12
|
import json
|
|
13
|
+
import os
|
|
13
14
|
import shutil
|
|
14
15
|
from dataclasses import dataclass, field
|
|
16
|
+
from pathlib import Path
|
|
15
17
|
|
|
16
18
|
from services.schedule_store import EXECUTED_STATUSES, ScheduleStore, prompt_text
|
|
19
|
+
from services.shell_output import OutputAccessError, _restrict_file
|
|
17
20
|
|
|
18
21
|
SESSION_ID = "scheduler"
|
|
19
22
|
CLAUDE_NESTING_VARS = ("CLAUDECODE", "CLAUDE_CODE_ENTRYPOINT", "CLAUDE_CODE_SESSION_ID",
|
|
@@ -23,6 +26,12 @@ CODEX_EFFORTS = {"": "medium", "low": "low", "medium": "medium", "high": "high",
|
|
|
23
26
|
GROK_EFFORTS = {"": "", "low": "low", "medium": "medium", "high": "high", "xhigh": "high", "max": "high"}
|
|
24
27
|
JOB_TO_RUN = {"done": "done", "failed": "failed", "timeout": "timeout",
|
|
25
28
|
"cancelled": "cancelled", "lost": "lost"}
|
|
29
|
+
ARCHIVE_MAX_BYTES = 8 * 1024 * 1024
|
|
30
|
+
STDERR_TAIL_LINES = 60
|
|
31
|
+
STDERR_TAIL_BYTES = 8 * 1024
|
|
32
|
+
OUTPUT_PAGE_BYTES = 1024 * 1024
|
|
33
|
+
OUTPUT_LINE_CLIP = 256 * 1024
|
|
34
|
+
_CHUNK = 1024 * 1024
|
|
26
35
|
|
|
27
36
|
|
|
28
37
|
class PlanError(ValueError):
|
|
@@ -86,7 +95,7 @@ def _exe(name: str) -> str:
|
|
|
86
95
|
|
|
87
96
|
def _plan_claude(schedule: dict, prompt: str, cwd: str, timeout_s: int, _prompt_file: str) -> FirePlan:
|
|
88
97
|
from cli.tools.delegate import _EFFORT_LEVELS, _MODEL_NAME_RE
|
|
89
|
-
argv = [_exe("claude"), "-p", "--output-format", "json", "--no-session-persistence",
|
|
98
|
+
argv = [_exe("claude"), "-p", "--output-format", "stream-json", "--verbose", "--no-session-persistence",
|
|
90
99
|
"--permission-mode", str(schedule.get("permission_mode") or "acceptEdits"),
|
|
91
100
|
"--permission-prompts", "none", "--name", f"sched:{schedule.get('id', '')}"]
|
|
92
101
|
model = str(schedule.get("model") or "").strip()
|
|
@@ -145,6 +154,14 @@ def _plan_grok(schedule: dict, prompt: str, cwd: str, timeout_s: int, prompt_fil
|
|
|
145
154
|
_PROVIDERS = {"claude": _plan_claude, "codex": _plan_codex, "gemini": _plan_gemini, "grok": _plan_grok}
|
|
146
155
|
|
|
147
156
|
|
|
157
|
+
def output_format(schedule: dict) -> str:
|
|
158
|
+
"""How a client reads this schedule's stdout: ``claude-stream``, ``codex-json`` or ``text``."""
|
|
159
|
+
if schedule.get("kind") == "command":
|
|
160
|
+
return "text"
|
|
161
|
+
provider = str(schedule.get("provider") or "claude")
|
|
162
|
+
return {"claude": "claude-stream", "codex": "codex-json"}.get(provider, "text")
|
|
163
|
+
|
|
164
|
+
|
|
148
165
|
def dispatch(store: ScheduleStore, jobstore, schedule: dict, run: dict, *, check: bool = False) -> dict:
|
|
149
166
|
"""Start the job for ``run`` and record it; a spawn failure finishes the run."""
|
|
150
167
|
run_id = run["run_id"]
|
|
@@ -160,22 +177,37 @@ def dispatch(store: ScheduleStore, jobstore, schedule: dict, run: dict, *, check
|
|
|
160
177
|
job = jobstore.start(project_path=schedule["project_path"], session_id=SESSION_ID,
|
|
161
178
|
cmd=fire.display, cwd=fire.cwd, timeout_s=fire.timeout_s,
|
|
162
179
|
payload=fire.payload())
|
|
180
|
+
fmt = "text" if check else output_format(schedule)
|
|
163
181
|
if job.terminal and job.status != "done":
|
|
164
|
-
|
|
165
|
-
|
|
182
|
+
status = JOB_TO_RUN.get(job.status, "failed")
|
|
183
|
+
return store.finish_run(run_id, status, job_id=job.id, exit_code=job.exit_code,
|
|
184
|
+
error=job.error or "job ended before it ran", output_format=fmt,
|
|
185
|
+
**_output_fields(store, jobstore, run_id, job, status))
|
|
166
186
|
status = "check_running" if check else "dispatched"
|
|
167
|
-
return store.update_run(run_id, status=status, job_id=job.id, dispatched_at=job.created_at
|
|
187
|
+
return store.update_run(run_id, status=status, job_id=job.id, dispatched_at=job.created_at,
|
|
188
|
+
output_format=fmt)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def job_stream_path(jobstore, job, stream: str = "stdout") -> Path | None:
|
|
192
|
+
"""Where a terminal job's kept ``stream`` lives, or None when it was not kept or has expired."""
|
|
193
|
+
if not getattr(job, "output_id", ""):
|
|
194
|
+
return None
|
|
195
|
+
try:
|
|
196
|
+
meta = jobstore.output_store.resolve(job.output_id, project_path=job.project_path,
|
|
197
|
+
session_id=job.session_id, guard_check=lambda _p: None)
|
|
198
|
+
return Path(meta.stream_path(stream))
|
|
199
|
+
except (OutputAccessError, OSError, ValueError):
|
|
200
|
+
return None
|
|
168
201
|
|
|
169
202
|
|
|
170
203
|
def job_stdout(jobstore, job) -> str:
|
|
171
204
|
"""Raw kept stdout of a terminal job, or empty when it was not kept."""
|
|
172
|
-
|
|
205
|
+
path = job_stream_path(jobstore, job, "stdout")
|
|
206
|
+
if path is None:
|
|
173
207
|
return ""
|
|
174
208
|
try:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
return meta.stream_path("stdout").read_bytes().decode("utf-8", "replace")
|
|
178
|
-
except Exception:
|
|
209
|
+
return path.read_bytes().decode("utf-8", "replace")
|
|
210
|
+
except OSError:
|
|
179
211
|
return ""
|
|
180
212
|
|
|
181
213
|
|
|
@@ -183,7 +215,10 @@ def parse_result(parser: str, stdout: str) -> dict:
|
|
|
183
215
|
"""Cost, tokens, turns, model and a result excerpt from a provider's JSON stdout."""
|
|
184
216
|
if parser == "claude":
|
|
185
217
|
from cli.tools.delegate import parse_claude_json
|
|
186
|
-
|
|
218
|
+
result_line, last_text = _claude_stream(stdout)
|
|
219
|
+
if result_line is None and last_text:
|
|
220
|
+
return {"result_excerpt": last_text}
|
|
221
|
+
text, _ok, stats = parse_claude_json(stdout if result_line is None else result_line)
|
|
187
222
|
out = {"result_excerpt": text}
|
|
188
223
|
tokens = {k: stats[k] for k in ("input_tokens", "output_tokens", "cache_read_tokens",
|
|
189
224
|
"cache_write_tokens") if k in stats}
|
|
@@ -214,6 +249,34 @@ def parse_result(parser: str, stdout: str) -> dict:
|
|
|
214
249
|
return {"result_excerpt": stdout.strip()}
|
|
215
250
|
|
|
216
251
|
|
|
252
|
+
def _claude_stream(stdout: str) -> tuple[str | None, str]:
|
|
253
|
+
"""The last ``result`` event line of a stream-json transcript and the last assistant text.
|
|
254
|
+
|
|
255
|
+
``(None, "")`` for a single JSON document without a ``type``; a stream cut
|
|
256
|
+
off before its result (timeout, cancel) gives ``(None, <last text the
|
|
257
|
+
model wrote>)``. Split on newlines only: an event may carry a raw U+2028.
|
|
258
|
+
"""
|
|
259
|
+
result_line, last_text = None, ""
|
|
260
|
+
for line in (stdout or "").split("\n"):
|
|
261
|
+
line = line.strip()
|
|
262
|
+
if not line.startswith("{"):
|
|
263
|
+
continue
|
|
264
|
+
try:
|
|
265
|
+
event = json.loads(line)
|
|
266
|
+
except ValueError:
|
|
267
|
+
continue
|
|
268
|
+
if not isinstance(event, dict):
|
|
269
|
+
continue
|
|
270
|
+
if event.get("type") == "result":
|
|
271
|
+
result_line = line
|
|
272
|
+
elif event.get("type") == "assistant":
|
|
273
|
+
content = (event.get("message") or {}).get("content")
|
|
274
|
+
texts = [str(c.get("text") or "") for c in content or [] if isinstance(c, dict) and c.get("type") == "text"]
|
|
275
|
+
if any(texts):
|
|
276
|
+
last_text = "\n".join(t for t in texts if t).strip()
|
|
277
|
+
return result_line, last_text
|
|
278
|
+
|
|
279
|
+
|
|
217
280
|
def _trailing_json(text: str):
|
|
218
281
|
raw = (text or "").strip()
|
|
219
282
|
start = raw.find("{")
|
|
@@ -256,9 +319,189 @@ def finalize(store: ScheduleStore, jobstore, run: dict, job, parser: str = "comm
|
|
|
256
319
|
stdout = job_stdout(jobstore, job)
|
|
257
320
|
if stdout:
|
|
258
321
|
extra.update(parse_result(parser, stdout))
|
|
322
|
+
extra.update(_output_fields(store, jobstore, run["run_id"], job, status))
|
|
259
323
|
return store.finish_run(run["run_id"], status, **extra)
|
|
260
324
|
|
|
261
325
|
|
|
326
|
+
def _output_fields(store: ScheduleStore, jobstore, run_id: str, job, status: str) -> dict:
|
|
327
|
+
"""The archive's run fields, plus ``stderr_tail`` when the run ended badly."""
|
|
328
|
+
fields = archive_output(store, jobstore, run_id, job)
|
|
329
|
+
if status != "done" or (job.exit_code or 0) != 0:
|
|
330
|
+
tail = stderr_tail(jobstore, job)
|
|
331
|
+
if tail:
|
|
332
|
+
fields["stderr_tail"] = tail
|
|
333
|
+
return fields
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
def archive_output(store: ScheduleStore, jobstore, run_id: str, job) -> dict:
|
|
337
|
+
"""Copy the job's kept stdout to ``schedule_runs/<run_id>.out``, keeping its last 8 MiB.
|
|
338
|
+
|
|
339
|
+
Returns ``{"output_lines": lines in the whole stream, "output_dropped":
|
|
340
|
+
lines cut from its head}``, or ``{}`` when the job kept no stdout or the
|
|
341
|
+
copy failed. Line N of the archive is line ``output_dropped + N`` of the
|
|
342
|
+
stream. The archive starts at a line boundary unless the stream's last
|
|
343
|
+
line alone is longer than the cap; then it holds that line's tail.
|
|
344
|
+
"""
|
|
345
|
+
src = job_stream_path(jobstore, job, "stdout")
|
|
346
|
+
if src is None:
|
|
347
|
+
return {}
|
|
348
|
+
dst = store.runs_dir / f"{run_id}.out"
|
|
349
|
+
tmp = dst.with_name(dst.name + ".tmp")
|
|
350
|
+
try:
|
|
351
|
+
with open(src, "rb") as fh:
|
|
352
|
+
size = os.fstat(fh.fileno()).st_size
|
|
353
|
+
start = _archive_start(fh, size)
|
|
354
|
+
fh.seek(0)
|
|
355
|
+
dropped = _count_lines(fh, start, complete_only=True)
|
|
356
|
+
lines = dropped + _count_lines(fh, size, complete_only=False)
|
|
357
|
+
fh.seek(start)
|
|
358
|
+
store.runs_dir.mkdir(parents=True, exist_ok=True)
|
|
359
|
+
with open(tmp, "wb") as out:
|
|
360
|
+
shutil.copyfileobj(fh, out, _CHUNK)
|
|
361
|
+
os.replace(tmp, dst)
|
|
362
|
+
except OSError:
|
|
363
|
+
try:
|
|
364
|
+
tmp.unlink()
|
|
365
|
+
except OSError:
|
|
366
|
+
pass
|
|
367
|
+
return {}
|
|
368
|
+
_restrict_file(dst)
|
|
369
|
+
return {"output_lines": lines, "output_dropped": dropped}
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
def _archive_start(fh, size: int) -> int:
|
|
373
|
+
"""Offset the archive copies from: the first line start inside the last ``ARCHIVE_MAX_BYTES``."""
|
|
374
|
+
if size <= ARCHIVE_MAX_BYTES:
|
|
375
|
+
return 0
|
|
376
|
+
cut = size - ARCHIVE_MAX_BYTES
|
|
377
|
+
fh.seek(cut)
|
|
378
|
+
pos = cut
|
|
379
|
+
while pos < size:
|
|
380
|
+
chunk = fh.read(min(_CHUNK, size - pos))
|
|
381
|
+
if not chunk:
|
|
382
|
+
break
|
|
383
|
+
nl = chunk.find(b"\n")
|
|
384
|
+
if nl >= 0:
|
|
385
|
+
start = pos + nl + 1
|
|
386
|
+
return start if start < size else cut
|
|
387
|
+
pos += len(chunk)
|
|
388
|
+
return cut
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
def stderr_tail(jobstore, job) -> str:
|
|
392
|
+
"""The last ``STDERR_TAIL_LINES`` lines (at most ``STDERR_TAIL_BYTES``) of the job's stderr."""
|
|
393
|
+
path = job_stream_path(jobstore, job, "stderr")
|
|
394
|
+
if path is None:
|
|
395
|
+
return ""
|
|
396
|
+
try:
|
|
397
|
+
with open(path, "rb") as fh:
|
|
398
|
+
size = os.fstat(fh.fileno()).st_size
|
|
399
|
+
fh.seek(max(0, size - STDERR_TAIL_BYTES))
|
|
400
|
+
data = fh.read(STDERR_TAIL_BYTES)
|
|
401
|
+
except OSError:
|
|
402
|
+
return ""
|
|
403
|
+
lines = [line.rstrip("\r") for line in data.decode("utf-8", "replace").split("\n")]
|
|
404
|
+
if size > STDERR_TAIL_BYTES and len(lines) > 1:
|
|
405
|
+
lines = lines[1:] # the read started inside this line
|
|
406
|
+
while lines and not lines[-1]:
|
|
407
|
+
lines.pop()
|
|
408
|
+
return "\n".join(lines[-STDERR_TAIL_LINES:])
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
def page_lines(path, *, first_n: int = 1, after: int = 0, limit: int = 500,
|
|
412
|
+
max_bytes: int = OUTPUT_PAGE_BYTES, clip: int = OUTPUT_LINE_CLIP,
|
|
413
|
+
complete_only: bool = False) -> tuple[list[dict], int]:
|
|
414
|
+
"""The lines of ``path`` numbered from ``first_n`` with ``n > after``, and the last line's number.
|
|
415
|
+
|
|
416
|
+
Returns ``([{"n", "text", "clipped"?}], total)``; ``total`` is
|
|
417
|
+
``first_n - 1`` for an empty file. At most ``limit`` lines and about
|
|
418
|
+
``max_bytes`` of text, but at least one line when one is due. A line
|
|
419
|
+
longer than ``clip`` bytes keeps its first ``clip`` bytes and carries
|
|
420
|
+
``clipped: true``. ``complete_only`` leaves out a last line that has no
|
|
421
|
+
newline yet, for a file another process is still writing; the file is
|
|
422
|
+
read only up to its size at open. Raises ``OSError`` when it cannot be opened.
|
|
423
|
+
"""
|
|
424
|
+
lines: list[dict] = []
|
|
425
|
+
with open(path, "rb") as fh:
|
|
426
|
+
size = os.fstat(fh.fileno()).st_size
|
|
427
|
+
n = first_n - 1
|
|
428
|
+
n += _skip_lines(fh, max(0, after - n), size)
|
|
429
|
+
used = 0
|
|
430
|
+
while len(lines) < limit and fh.tell() < size:
|
|
431
|
+
mark = fh.tell()
|
|
432
|
+
raw, complete, clipped = _read_line(fh, size, clip)
|
|
433
|
+
if not complete and complete_only:
|
|
434
|
+
fh.seek(mark)
|
|
435
|
+
break
|
|
436
|
+
if n + 1 > after:
|
|
437
|
+
cost = len(raw) + 1
|
|
438
|
+
if lines and used + cost > max_bytes:
|
|
439
|
+
fh.seek(mark)
|
|
440
|
+
break
|
|
441
|
+
used += cost
|
|
442
|
+
row = {"n": n + 1, "text": raw.decode("utf-8", "replace").rstrip("\r")}
|
|
443
|
+
if clipped:
|
|
444
|
+
row["clipped"] = True
|
|
445
|
+
lines.append(row)
|
|
446
|
+
n += 1
|
|
447
|
+
n += _count_lines(fh, size, complete_only=complete_only)
|
|
448
|
+
return lines, n
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
def _skip_lines(fh, count: int, size: int) -> int:
|
|
452
|
+
"""Move past ``count`` newline-terminated lines (fewer at the end); returns how many."""
|
|
453
|
+
passed = 0
|
|
454
|
+
pos = resume = fh.tell()
|
|
455
|
+
while passed < count and pos < size:
|
|
456
|
+
chunk = fh.read(min(_CHUNK, size - pos))
|
|
457
|
+
if not chunk:
|
|
458
|
+
break
|
|
459
|
+
found = chunk.count(b"\n")
|
|
460
|
+
if found and passed + found <= count:
|
|
461
|
+
passed += found
|
|
462
|
+
resume = pos + chunk.rfind(b"\n") + 1
|
|
463
|
+
elif found:
|
|
464
|
+
idx = -1
|
|
465
|
+
for _ in range(count - passed):
|
|
466
|
+
idx = chunk.find(b"\n", idx + 1)
|
|
467
|
+
resume = pos + idx + 1
|
|
468
|
+
passed = count
|
|
469
|
+
pos += len(chunk)
|
|
470
|
+
fh.seek(resume)
|
|
471
|
+
return passed
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
def _read_line(fh, size: int, clip: int) -> tuple[bytes, bool, bool]:
|
|
475
|
+
"""``(first clip bytes, complete, clipped)`` of the line at the cursor; consumes the whole line."""
|
|
476
|
+
raw = fh.readline(min(clip + 1, size - fh.tell()))
|
|
477
|
+
if raw.endswith(b"\n"):
|
|
478
|
+
return raw[:-1], True, False
|
|
479
|
+
if len(raw) <= clip:
|
|
480
|
+
return raw, False, False
|
|
481
|
+
while fh.tell() < size:
|
|
482
|
+
more = fh.readline(min(_CHUNK, size - fh.tell()))
|
|
483
|
+
if not more:
|
|
484
|
+
break
|
|
485
|
+
if more.endswith(b"\n"):
|
|
486
|
+
return raw[:clip], True, True
|
|
487
|
+
return raw[:clip], False, True
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
def _count_lines(fh, end: int, *, complete_only: bool) -> int:
|
|
491
|
+
"""Lines from the cursor to ``end``; a last one with no newline counts unless ``complete_only``."""
|
|
492
|
+
count, last, pos = 0, b"\n", fh.tell()
|
|
493
|
+
while pos < end:
|
|
494
|
+
chunk = fh.read(min(_CHUNK, end - pos))
|
|
495
|
+
if not chunk:
|
|
496
|
+
break
|
|
497
|
+
count += chunk.count(b"\n")
|
|
498
|
+
last = chunk[-1:]
|
|
499
|
+
pos += len(chunk)
|
|
500
|
+
if last != b"\n" and not complete_only:
|
|
501
|
+
count += 1
|
|
502
|
+
return count
|
|
503
|
+
|
|
504
|
+
|
|
262
505
|
def cli_available(provider: str) -> bool:
|
|
263
506
|
return bool(shutil.which({"claude": "claude", "codex": "codex", "gemini": "gemini",
|
|
264
507
|
"grok": "grok"}.get(provider, provider)))
|
|
@@ -20,6 +20,7 @@ from __future__ import annotations
|
|
|
20
20
|
|
|
21
21
|
import json
|
|
22
22
|
import os
|
|
23
|
+
import re
|
|
23
24
|
import threading
|
|
24
25
|
import time
|
|
25
26
|
import uuid
|
|
@@ -72,7 +73,12 @@ _RUN_FIELDS = (
|
|
|
72
73
|
"run_id", "schedule_id", "schedule_name", "project_path", "trigger", "due_at", "claimed_at",
|
|
73
74
|
"dispatched_at", "finished_at", "status", "job_id", "approval_id", "exit_code", "duration_ms",
|
|
74
75
|
"output_id", "cost_usd", "tokens", "turns", "model", "result_excerpt", "error",
|
|
76
|
+
"output_format", "output_lines", "output_dropped", "stderr_tail",
|
|
75
77
|
)
|
|
78
|
+
# Files kept beside ``<run_id>.json`` and swept with it: the stdout archive
|
|
79
|
+
# (services/schedule_runner.archive_output) and grok's prompt file.
|
|
80
|
+
RUN_SIDE_FILES = (".out", ".out.tmp", ".prompt.txt")
|
|
81
|
+
_RUN_ID_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$")
|
|
76
82
|
|
|
77
83
|
|
|
78
84
|
class ScheduleError(ValueError):
|
|
@@ -454,6 +460,8 @@ class ScheduleStore:
|
|
|
454
460
|
write_json_atomic(self._run_path(run["run_id"]), run, ensure_ascii=False, fsync=False)
|
|
455
461
|
|
|
456
462
|
def get_run(self, run_id: str) -> dict | None:
|
|
463
|
+
if not _RUN_ID_RE.match(run_id or ""):
|
|
464
|
+
return None
|
|
457
465
|
path = self._run_path(run_id)
|
|
458
466
|
if not path.exists():
|
|
459
467
|
return None
|
|
@@ -555,7 +563,12 @@ class ScheduleStore:
|
|
|
555
563
|
self._run_path(run["run_id"]).unlink()
|
|
556
564
|
removed += 1
|
|
557
565
|
except OSError:
|
|
558
|
-
|
|
566
|
+
continue
|
|
567
|
+
for suffix in RUN_SIDE_FILES:
|
|
568
|
+
try:
|
|
569
|
+
(self.runs_dir / f"{run['run_id']}{suffix}").unlink(missing_ok=True)
|
|
570
|
+
except OSError:
|
|
571
|
+
pass
|
|
559
572
|
return removed
|
|
560
573
|
|
|
561
574
|
|
{code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_hub_schedules_routes.py
RENAMED
|
@@ -97,6 +97,19 @@ class TestHubScheduleRoutes(unittest.TestCase):
|
|
|
97
97
|
self.assertEqual(self.client.post(f"/api/hub/schedules/approvals/{pending['id']}",
|
|
98
98
|
json={"decision": "approve"}).status_code, 409)
|
|
99
99
|
|
|
100
|
+
def test_run_output(self):
|
|
101
|
+
row = self.client.post("/api/hub/schedules", json=self.body()).get_json()
|
|
102
|
+
run = self.store.request_run(row["id"])
|
|
103
|
+
url = f"/api/hub/schedules/runs/{run['run_id']}/output"
|
|
104
|
+
body = self.client.get(url).get_json()
|
|
105
|
+
self.assertEqual((body["source"], body["lines"], body["open"], body["format"]), ("none", [], True, "text"))
|
|
106
|
+
(self.store.runs_dir / f"{run['run_id']}.out").write_bytes(b"built\n")
|
|
107
|
+
self.store.update_run(run["run_id"], output_lines=1, output_dropped=0)
|
|
108
|
+
body = self.client.get(url).get_json()
|
|
109
|
+
self.assertEqual((body["source"], body["lines"]), ("archive", [{"n": 1, "text": "built"}]))
|
|
110
|
+
self.assertEqual(self.client.get("/api/hub/schedules/runs/sr-0000000000/output").status_code, 404)
|
|
111
|
+
self.assertEqual(self.client.get(url + "?after=-").status_code, 400)
|
|
112
|
+
|
|
100
113
|
def test_preview_and_status_unreachable(self):
|
|
101
114
|
resp = self.client.post("/api/hub/schedules/preview",
|
|
102
115
|
json={"when": {"type": "cron", "expr": "*/30 * * * *", "tz": "UTC"}, "count": 2})
|
{code_context_control-2.160.0 → code_context_control-2.161.0}/tests/test_mobile_schedules.py
RENAMED
|
@@ -117,6 +117,44 @@ class TestMobileSchedules(unittest.TestCase):
|
|
|
117
117
|
self.assertEqual(self.client.get("/api/mobile/schedules?project=" + str(self.outsider),
|
|
118
118
|
headers=AUTH).status_code, 404)
|
|
119
119
|
|
|
120
|
+
def archived_run(self, **over):
|
|
121
|
+
run = self.store.request_run(self.store.create(self.body(**over))["id"])
|
|
122
|
+
(self.store.runs_dir / f"{run['run_id']}.out").write_bytes(b"one\ntwo\n")
|
|
123
|
+
self.store.update_run(run["run_id"], output_lines=2, output_dropped=0)
|
|
124
|
+
return run
|
|
125
|
+
|
|
126
|
+
def test_run_output_needs_bearer_and_pages_the_archive(self):
|
|
127
|
+
run = self.archived_run(name="out")
|
|
128
|
+
url = f"/api/mobile/schedules/runs/{run['run_id']}/output"
|
|
129
|
+
self.assertEqual(self.client.get(url).status_code, 401)
|
|
130
|
+
resp = self.client.get(url + "?after=1", headers=AUTH)
|
|
131
|
+
self.assertEqual(resp.status_code, 200, resp.get_json())
|
|
132
|
+
body = resp.get_json()
|
|
133
|
+
self.assertEqual((body["run_id"], body["source"], body["format"], body["open"]),
|
|
134
|
+
(run["run_id"], "archive", "claude-stream", True))
|
|
135
|
+
self.assertEqual((body["lines"], body["next"], body["total"], body["dropped"]),
|
|
136
|
+
([{"n": 2, "text": "two"}], 2, 2, 0))
|
|
137
|
+
self.assertEqual(self.client.get(url + "?limit=x", headers=AUTH).status_code, 400)
|
|
138
|
+
self.assertEqual(self.client.get("/api/mobile/schedules/runs/sr-0000000000/output",
|
|
139
|
+
headers=AUTH).status_code, 404)
|
|
140
|
+
|
|
141
|
+
def test_run_output_capability_follows_the_schedules_switch(self):
|
|
142
|
+
run = self.archived_run(name="switched")
|
|
143
|
+
url = f"/api/mobile/schedules/runs/{run['run_id']}/output"
|
|
144
|
+
self.assertIn("schedule_output", self.client.get("/api/mobile/info", headers=AUTH).get_json()["capabilities"])
|
|
145
|
+
with mock.patch.dict(srv._cfg, {"mobile_schedules_enabled": False}):
|
|
146
|
+
caps = self.client.get("/api/mobile/info", headers=AUTH).get_json()["capabilities"]
|
|
147
|
+
self.assertNotIn("schedule_output", caps)
|
|
148
|
+
self.assertEqual(self.client.get(url, headers=AUTH).status_code, 404)
|
|
149
|
+
with mock.patch.dict(srv._cfg, {"mobile_schedules_write": False}):
|
|
150
|
+
self.assertEqual(self.client.get(url, headers=AUTH).status_code, 200)
|
|
151
|
+
|
|
152
|
+
def test_run_output_of_an_unserved_project_is_404(self):
|
|
153
|
+
run = self.archived_run(name="hidden-out", project_path=str(self.outsider))
|
|
154
|
+
resp = self.client.get(f"/api/mobile/schedules/runs/{run['run_id']}/output", headers=AUTH)
|
|
155
|
+
self.assertEqual(resp.status_code, 404)
|
|
156
|
+
self.assertNotIn("two", resp.get_data(as_text=True))
|
|
157
|
+
|
|
120
158
|
def test_approvals_decide_and_409(self):
|
|
121
159
|
row = self.store.create(self.body(name="gated", autonomy="approval"))
|
|
122
160
|
run = self.store.request_run(row["id"])
|