agent-log-server 0.2.122__py3-none-android_24_arm64_v8a.whl
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.
- agent_log_server-0.2.122.dist-info/METADATA +186 -0
- agent_log_server-0.2.122.dist-info/RECORD +256 -0
- agent_log_server-0.2.122.dist-info/WHEEL +5 -0
- agent_log_server-0.2.122.dist-info/entry_points.txt +4 -0
- agent_log_server-0.2.122.dist-info/licenses/LICENSE +649 -0
- agent_log_server-0.2.122.dist-info/top_level.txt +6 -0
- agent_log_server_rs/DEVELOPER_MESSAGE_TEMPLATE.md +517 -0
- agent_log_server_rs/__init__.py +1 -0
- agent_log_server_rs/adapter_protocol.py +548 -0
- agent_log_server_rs/adapters/__init__.py +1 -0
- agent_log_server_rs/adapters/embedded_adapter.py +157 -0
- agent_log_server_rs/adapters/extension_adapter.py +1925 -0
- agent_log_server_rs/adapters/rpc_common.py +137 -0
- agent_log_server_rs/bin/als-server +0 -0
- agent_log_server_rs/bin/als-server.manifest.json +10 -0
- agent_log_server_rs/bootstrap.py +706 -0
- agent_log_server_rs/codec.py +85 -0
- agent_log_server_rs/extension_cli.py +520 -0
- agent_log_server_rs/rust/crates/als-server/src/static/app.js +151 -0
- agent_log_server_rs/rust/crates/als-server/src/static/appserver.css +240 -0
- agent_log_server_rs/rust/crates/als-server/src/static/appserver.js +208 -0
- agent_log_server_rs/rust/crates/als-server/src/static/codex_agent.css +4024 -0
- agent_log_server_rs/rust/crates/als-server/src/static/codex_agent.ts +2610 -0
- agent_log_server_rs/rust/crates/als-server/src/static/codexas-icon.svg +5 -0
- agent_log_server_rs/rust/crates/als-server/src/static/dist/codex_agent.js +26 -0
- agent_log_server_rs/rust/crates/als-server/src/static/dist/codex_agent.js.map +7 -0
- agent_log_server_rs/rust/crates/als-server/src/static/images/green-right-arrow.png +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/approvals/ui.ts +949 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/assistant_stream.ts +165 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/boot/init_flow.ts +341 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/boot/input_flow.ts +592 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/client_identity.ts +10 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/composer/runtime.ts +1065 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/conversation/runtime.ts +345 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/conversation_drawer/actions.ts +523 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/conversation_drawer/index.ts +100 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/conversation_drawer/list.ts +966 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/conversation_drawer.ts +1 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/conversation_modal.ts +147 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/diff/rendering.ts +857 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/events/router.ts +779 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/events/socket.ts +140 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/host/runtime.ts +357 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/layout/viewport.ts +95 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/layout/widescreen.ts +168 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/markdown.ts +576 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/orchestrator/rpc_flow.ts +73 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/orchestrator/session_flow.ts +191 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/path_label.ts +76 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/plan/runtime.ts +446 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/plan_modal.ts +102 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/plan_overlay.ts +235 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/project_modal.ts +1398 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/render/utils.ts +456 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/request_cards/runtime.ts +236 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/rpc/conversations/client.ts +1021 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/rpc/conversations/contract.ts +406 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/rpc/namespaces.ts +18 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/rpc/registry.ts +113 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/rpc/settings/client.ts +662 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/rpc/settings/contract.ts +49 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/rpc/transport.ts +463 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/rpc/ui/client.ts +588 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/rpc/ui/contract.ts +50 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/runtime_footer.ts +373 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/settings/runtime_helpers.ts +20 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/settings/save_flow.ts +332 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/settings/ui_flow.ts +1148 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/shared_types.ts +61 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/shell_render.ts +377 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/shell_semantic.ts +606 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/subagents/collapsible.ts +224 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/terminal_ansi.ts +134 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/timeline/live_items.ts +594 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/timeline/replay.ts +820 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/timeline/rows.ts +290 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/timeline/virtualizer.ts +1123 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/timeline_sticky_headers.ts +492 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/tool_render.ts +789 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/transcript_card_metadata.ts +228 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/transcript_cards.ts +780 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/transcript_config.ts +10 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/transcript_loader.ts +511 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/transcript_metrics.ts +28 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/transcript_stream.ts +561 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/transcript_stream_url.ts +7 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/vendor_modules.d.ts +5 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/codex_agent/vendor_runtime.ts +106 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/console_bridge.js +229 -0
- agent_log_server_rs/rust/crates/als-server/src/static/js/socketio_runtime.js +27 -0
- agent_log_server_rs/rust/crates/als-server/src/static/modals/rollout_picker.ts +46 -0
- agent_log_server_rs/rust/crates/als-server/src/static/modals/settings_modal.ts +63 -0
- agent_log_server_rs/rust/crates/als-server/src/static/modals/settings_schema.ts +3666 -0
- agent_log_server_rs/rust/crates/als-server/src/static/modals/warning_modal.ts +65 -0
- agent_log_server_rs/rust/crates/als-server/src/static/style.css +194 -0
- agent_log_server_rs/rust/crates/als-server/src/static/ui/extension_settings.ts +493 -0
- agent_log_server_rs/rust/crates/als-server/src/static/ui/splash_settings.ts +41 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-400-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-400-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-500-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-500-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-600-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-600-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-700-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-700-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-400-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-400-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-500-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-500-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-600-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-600-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-700-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-cyrillic-ext-700-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-greek-400-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-greek-400-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-greek-500-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-greek-500-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-greek-600-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-greek-600-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-greek-700-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-greek-700-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-400-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-500-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-500-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-600-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-600-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-700-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-ext-400-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-ext-500-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-ext-500-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-ext-600-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-ext-600-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-ext-700-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-vietnamese-400-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-vietnamese-400-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-vietnamese-500-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-vietnamese-500-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-vietnamese-600-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-vietnamese-600-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-vietnamese-700-italic.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono/jetbrains-mono-vietnamese-700-normal.woff2 +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/fonts/jetbrains-mono.css +481 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/socket.io/socket.io.min.js +7 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/socket.io-msgpack-parser/socket.io-msgpack-parser.js +2 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/socket.io-msgpack-parser/socket.io-msgpack-parser.js.map +7 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/tree-sitter-bash/highlights.scm +56 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/tree-sitter-bash/tree-sitter-bash.wasm +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/web-tree-sitter/tree-sitter.js +3278 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/web-tree-sitter/tree-sitter.wasm +0 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/web-tree-sitter/web-tree-sitter.js +4007 -0
- agent_log_server_rs/rust/crates/als-server/src/static/vendor/web-tree-sitter/web-tree-sitter.wasm +0 -0
- agent_log_server_rs/shellspec/extension_adapter.yaml +15 -0
- agent_log_server_rs/tests/test_bootstrap.py +435 -0
- agent_log_server_rs/tests/test_codec.py +97 -0
- agent_log_server_rs/tests/test_codex_ext_client_resume.py +37 -0
- agent_log_server_rs/tests/test_codex_ext_router_atomic_diff.py +221 -0
- agent_log_server_rs/tests/test_codex_ext_runtime_protocol.py +109 -0
- agent_log_server_rs/tests/test_codex_ext_transport_resume.py +190 -0
- agent_log_server_rs/tests/test_extension_adapter_dispatch.py +170 -0
- agent_log_server_rs/tests/test_kb_and_codex_search.py +415 -0
- agent_log_server_rs/tests/test_mcp_socketio_serializer.py +53 -0
- agent_log_server_rs/tests/test_release_binary_wheel.py +119 -0
- als_deprecated/__init__.py +2 -0
- als_deprecated/__main__.py +5 -0
- als_deprecated/agent_log_subsystem.py +276 -0
- als_deprecated/agent_pty_http_shim_lifecycle.py +171 -0
- als_deprecated/appserver_routes.py +1930 -0
- als_deprecated/appserver_socketio.py +1223 -0
- als_deprecated/ask_user_interactions.py +415 -0
- als_deprecated/conversation_store.py +279 -0
- als_deprecated/conversation_todos.py +271 -0
- als_deprecated/conversations_rpc_contract.py +849 -0
- als_deprecated/extension_api.py +1041 -0
- als_deprecated/extension_cli.py +347 -0
- als_deprecated/host_routes.py +493 -0
- als_deprecated/index.py +30 -0
- als_deprecated/ipc_auth.py +36 -0
- als_deprecated/markdown_sections.py +141 -0
- als_deprecated/mcp_agent_pty_http_shim.py +30 -0
- als_deprecated/page_routes.py +71 -0
- als_deprecated/pending_context.py +671 -0
- als_deprecated/prompt_context.py +165 -0
- als_deprecated/repo_memory_delta.py +126 -0
- als_deprecated/rpc_stdio_mirror.py +134 -0
- als_deprecated/server.py +2004 -0
- als_deprecated/settings_ui_rpc_contract.py +311 -0
- als_deprecated/shellspec/agent_log.yaml +13 -0
- als_deprecated/shellspec/mcp_agent_pty.yaml +54 -0
- als_deprecated/socketio_config.py +53 -0
- als_deprecated/te2_assets/console_bridge.js +208 -0
- als_deprecated/te2_assets/framework_shells_README.md +448 -0
- als_deprecated/te2_assets/proxy_shell_wrapper_README.md +18 -0
- als_deprecated/te2_mcp_config.py +83 -0
- als_deprecated/te2_runtime.py +35 -0
- als_deprecated/te2_sync.py +78 -0
- als_deprecated/templates/template.html +46 -0
- als_deprecated/transcript_card_metadata.py +211 -0
- als_deprecated/typing_helpers.py +26 -0
- als_deprecated/web_pages.py +770 -0
- extensions/__init__.py +3107 -0
- extensions/codex_ext/__init__.py +1 -0
- extensions/codex_ext/client.py +1843 -0
- extensions/codex_ext/dependencies.py +143 -0
- extensions/codex_ext/devins_contract.py +25 -0
- extensions/codex_ext/manifest.json +138 -0
- extensions/codex_ext/mcp_contract.py +183 -0
- extensions/codex_ext/plan_utils.py +74 -0
- extensions/codex_ext/rollout_import.py +204 -0
- extensions/codex_ext/router.py +3772 -0
- extensions/codex_ext/runtime_protocol.py +1699 -0
- extensions/codex_ext/settings_schema.json +172 -0
- extensions/codex_ext/shellspec/app_server.yaml +19 -0
- extensions/codex_ext/transport.py +1412 -0
- extensions/codex_ext/ui/request_cards/codex_ext_request_card.js +882 -0
- extensions/copilot_sdk/VENDORED_SDK.md +17 -0
- extensions/copilot_sdk/__init__.py +2 -0
- extensions/copilot_sdk/_vendor/__init__.py +1 -0
- extensions/copilot_sdk/_vendor/copilot/__init__.py +80 -0
- extensions/copilot_sdk/_vendor/copilot/_diagnostics.py +29 -0
- extensions/copilot_sdk/_vendor/copilot/_jsonrpc.py +442 -0
- extensions/copilot_sdk/_vendor/copilot/_sdk_protocol_version.py +19 -0
- extensions/copilot_sdk/_vendor/copilot/_telemetry.py +48 -0
- extensions/copilot_sdk/_vendor/copilot/client.py +3157 -0
- extensions/copilot_sdk/_vendor/copilot/generated/__init__.py +0 -0
- extensions/copilot_sdk/_vendor/copilot/generated/rpc.py +7149 -0
- extensions/copilot_sdk/_vendor/copilot/generated/session_events.py +5009 -0
- extensions/copilot_sdk/_vendor/copilot/py.typed +1 -0
- extensions/copilot_sdk/_vendor/copilot/session.py +2415 -0
- extensions/copilot_sdk/_vendor/copilot/session_fs_provider.py +223 -0
- extensions/copilot_sdk/_vendor/copilot/tools.py +327 -0
- extensions/copilot_sdk/client.py +3871 -0
- extensions/copilot_sdk/dependencies.py +108 -0
- extensions/copilot_sdk/devins_contract.py +25 -0
- extensions/copilot_sdk/file_change_preview.py +80 -0
- extensions/copilot_sdk/fws_pipe_process.py +382 -0
- extensions/copilot_sdk/manifest.json +135 -0
- extensions/copilot_sdk/mcp_contract.py +63 -0
- extensions/copilot_sdk/plan_utils.py +56 -0
- extensions/copilot_sdk/protocol_adapter.py +342 -0
- extensions/copilot_sdk/protocol_registry.py +149 -0
- extensions/copilot_sdk/router.py +1789 -0
- extensions/copilot_sdk/schemas/api.schema.json +1063 -0
- extensions/copilot_sdk/schemas/session-events.schema.json +6369 -0
- extensions/copilot_sdk/settings_schema.json +165 -0
- extensions/copilot_sdk/shellspec/copilot_cli.yaml +20 -0
- extensions/copilot_sdk/te2_runtime.py +78 -0
- extensions/copilot_sdk/ui/request_cards/copilot_request_card.js +449 -0
- extensions/extensions.json +19 -0
- extensions/message_card_contracts.py +213 -0
- extensions/tool_card_contracts.py +102 -0
- mcp_agent_pty_http_shim.py +321 -0
- mcp_agent_pty_server.py +2931 -0
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { createConversationsRpcClient } from '../rpc/conversations/client.ts';
|
|
2
|
+
|
|
3
|
+
type CodexAgentHelpers = {
|
|
4
|
+
getSchemaParsedValues?: () => unknown;
|
|
5
|
+
getSchemaValues?: () => unknown;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
type CodexAgentWindow = Window & typeof globalThis & {
|
|
9
|
+
CodexAgent?: {
|
|
10
|
+
helpers?: CodexAgentHelpers;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
type TextValueInput = HTMLElement & { value: string };
|
|
15
|
+
type ToggleInput = HTMLInputElement | null;
|
|
16
|
+
|
|
17
|
+
type RuntimeSettingDescriptor = {
|
|
18
|
+
settingKey?: string | null;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
type RuntimeOptionsState = {
|
|
22
|
+
agent?: string | null;
|
|
23
|
+
approval?: RuntimeSettingDescriptor | null;
|
|
24
|
+
sandbox?: RuntimeSettingDescriptor | null;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const DEFAULT_COMMAND_OUTPUT_LINES = 500;
|
|
28
|
+
|
|
29
|
+
function scopedConversationId(state: SettingsSaveState): string | null {
|
|
30
|
+
const clientConversationId = typeof state.clientConversationId === 'string' && state.clientConversationId.trim()
|
|
31
|
+
? state.clientConversationId.trim()
|
|
32
|
+
: null;
|
|
33
|
+
const metaConversationId = typeof state.conversationMeta?.conversation_id === 'string' && state.conversationMeta.conversation_id.trim()
|
|
34
|
+
? state.conversationMeta.conversation_id.trim()
|
|
35
|
+
: null;
|
|
36
|
+
return clientConversationId || metaConversationId;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type ConversationSettingsState = Record<string, unknown> & {
|
|
40
|
+
cwd?: string | null;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type ConversationMetaState = Record<string, unknown> & {
|
|
44
|
+
conversation_id?: string | null;
|
|
45
|
+
settings?: ConversationSettingsState | null;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
type SettingsSaveState = {
|
|
49
|
+
runtimeOptions?: RuntimeOptionsState | null;
|
|
50
|
+
conversationSettings?: ConversationSettingsState | null;
|
|
51
|
+
conversationMeta?: ConversationMetaState | null;
|
|
52
|
+
trackEditsEnabled?: boolean;
|
|
53
|
+
lineNumbersEnabled?: boolean;
|
|
54
|
+
pendingNewConversation?: boolean;
|
|
55
|
+
clientConversationId?: string | null;
|
|
56
|
+
clientActiveView?: string | null;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
type SettingsSaveElements = {
|
|
60
|
+
settingsAgentEl?: TextValueInput | null;
|
|
61
|
+
settingsCwdEl?: TextValueInput | null;
|
|
62
|
+
settingsCommandLinesEl?: TextValueInput | null;
|
|
63
|
+
settingsMarkdownEl?: ToggleInput;
|
|
64
|
+
settingsDiffSyntaxEl?: ToggleInput;
|
|
65
|
+
settingsSemanticShellRibbonEl?: ToggleInput;
|
|
66
|
+
settingsTe2McpIntegrationEl?: ToggleInput;
|
|
67
|
+
settingsApprovalEl?: TextValueInput | null;
|
|
68
|
+
settingsSandboxEl?: TextValueInput | null;
|
|
69
|
+
settingsModelEl?: TextValueInput | null;
|
|
70
|
+
settingsEffortEl?: TextValueInput | null;
|
|
71
|
+
settingsSummaryEl?: TextValueInput | null;
|
|
72
|
+
settingsDeveloperInstructionsEl?: TextValueInput | null;
|
|
73
|
+
settingsLabelEl?: TextValueInput | null;
|
|
74
|
+
settingsAliasEl?: TextValueInput | null;
|
|
75
|
+
settingsViewWrapEl?: ToggleInput;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
interface SettingsSaveFlowContext {
|
|
79
|
+
getState(): SettingsSaveState;
|
|
80
|
+
setState(patch: Partial<SettingsSaveState>): void;
|
|
81
|
+
elements: SettingsSaveElements;
|
|
82
|
+
setActivity(message: string, isError: boolean): void;
|
|
83
|
+
setMarkdownEnabled(enabled: boolean): void;
|
|
84
|
+
setViewWrapEnabled(enabled: boolean): void;
|
|
85
|
+
setDiffSyntaxEnabled(enabled: boolean): void;
|
|
86
|
+
setSemanticShellRibbonEnabled(enabled: boolean): void;
|
|
87
|
+
ensureTreeSitterRibbonReady(): Promise<unknown>;
|
|
88
|
+
sioCall(event: string, payload?: Record<string, unknown>): Promise<ConversationMetaState | null>;
|
|
89
|
+
closeSettingsModal(): void;
|
|
90
|
+
fetchConversation(conversationId?: string | null): Promise<unknown>;
|
|
91
|
+
fetchConversations(): Promise<unknown>;
|
|
92
|
+
resetTimeline(): void;
|
|
93
|
+
replayTranscript(): Promise<unknown>;
|
|
94
|
+
refreshPlanSurface?(): Promise<unknown> | unknown;
|
|
95
|
+
restorePendingApprovals(): void;
|
|
96
|
+
setDrawerOpen(open: boolean): void;
|
|
97
|
+
updateConversationHeaderLabel(): void;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function bindSettingsSaveFlow(ctx: SettingsSaveFlowContext) {
|
|
101
|
+
const {
|
|
102
|
+
getState,
|
|
103
|
+
setState,
|
|
104
|
+
elements,
|
|
105
|
+
setActivity,
|
|
106
|
+
setMarkdownEnabled,
|
|
107
|
+
setViewWrapEnabled,
|
|
108
|
+
setDiffSyntaxEnabled,
|
|
109
|
+
setSemanticShellRibbonEnabled,
|
|
110
|
+
ensureTreeSitterRibbonReady,
|
|
111
|
+
sioCall,
|
|
112
|
+
closeSettingsModal,
|
|
113
|
+
fetchConversation,
|
|
114
|
+
fetchConversations,
|
|
115
|
+
resetTimeline,
|
|
116
|
+
replayTranscript,
|
|
117
|
+
refreshPlanSurface,
|
|
118
|
+
restorePendingApprovals,
|
|
119
|
+
setDrawerOpen,
|
|
120
|
+
updateConversationHeaderLabel,
|
|
121
|
+
} = ctx;
|
|
122
|
+
const conversationsRpcClient = createConversationsRpcClient({
|
|
123
|
+
windowRef: typeof window !== 'undefined' ? window : null,
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
async function saveSettings() {
|
|
127
|
+
const codexWindow = window as CodexAgentWindow;
|
|
128
|
+
const state = getState();
|
|
129
|
+
const {
|
|
130
|
+
settingsAgentEl,
|
|
131
|
+
settingsCwdEl,
|
|
132
|
+
settingsCommandLinesEl,
|
|
133
|
+
settingsMarkdownEl,
|
|
134
|
+
settingsDiffSyntaxEl,
|
|
135
|
+
settingsSemanticShellRibbonEl,
|
|
136
|
+
settingsTe2McpIntegrationEl,
|
|
137
|
+
settingsApprovalEl,
|
|
138
|
+
settingsSandboxEl,
|
|
139
|
+
settingsModelEl,
|
|
140
|
+
settingsEffortEl,
|
|
141
|
+
settingsSummaryEl,
|
|
142
|
+
settingsDeveloperInstructionsEl,
|
|
143
|
+
settingsLabelEl,
|
|
144
|
+
settingsAliasEl,
|
|
145
|
+
settingsViewWrapEl,
|
|
146
|
+
} = elements;
|
|
147
|
+
|
|
148
|
+
const agentType = settingsAgentEl?.value?.trim() || state.runtimeOptions?.agent || '';
|
|
149
|
+
if (!agentType) {
|
|
150
|
+
setActivity('Agent required', true);
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const normalizeStringSetting = (value: unknown): unknown | null => {
|
|
154
|
+
if (typeof value === 'string') {
|
|
155
|
+
const trimmed = value.trim();
|
|
156
|
+
return trimmed || null;
|
|
157
|
+
}
|
|
158
|
+
return value == null ? null : value;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
let nextState = getState();
|
|
162
|
+
const isNewConversation = nextState.pendingNewConversation || !scopedConversationId(nextState);
|
|
163
|
+
const commandLinesVal = parseInt(settingsCommandLinesEl?.value?.trim() || String(DEFAULT_COMMAND_OUTPUT_LINES), 10);
|
|
164
|
+
const viewWrapEnabled = settingsViewWrapEl?.checked === true;
|
|
165
|
+
const mdEnabled = settingsMarkdownEl?.checked !== false;
|
|
166
|
+
const diffSyntaxEnabled = settingsDiffSyntaxEl?.checked === true;
|
|
167
|
+
const semanticRibbonEnabled = settingsSemanticShellRibbonEl?.checked === true;
|
|
168
|
+
|
|
169
|
+
let schemaValues: Record<string, unknown> = {};
|
|
170
|
+
try {
|
|
171
|
+
const rawSchemaValues =
|
|
172
|
+
codexWindow.CodexAgent?.helpers?.getSchemaParsedValues?.()
|
|
173
|
+
|| codexWindow.CodexAgent?.helpers?.getSchemaValues?.()
|
|
174
|
+
|| {};
|
|
175
|
+
schemaValues = rawSchemaValues && typeof rawSchemaValues === 'object' && !Array.isArray(rawSchemaValues)
|
|
176
|
+
? rawSchemaValues as Record<string, unknown>
|
|
177
|
+
: {};
|
|
178
|
+
} catch (err) {
|
|
179
|
+
setActivity(err instanceof Error ? err.message : String(err), true);
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
const approvalDescriptor = state.runtimeOptions?.approval && typeof state.runtimeOptions.approval === 'object'
|
|
183
|
+
? state.runtimeOptions.approval
|
|
184
|
+
: null;
|
|
185
|
+
const sandboxDescriptor = state.runtimeOptions?.sandbox && typeof state.runtimeOptions.sandbox === 'object'
|
|
186
|
+
? state.runtimeOptions.sandbox
|
|
187
|
+
: null;
|
|
188
|
+
const approvalKey = approvalDescriptor
|
|
189
|
+
? (typeof approvalDescriptor.settingKey === 'string' && approvalDescriptor.settingKey.trim()
|
|
190
|
+
? approvalDescriptor.settingKey.trim()
|
|
191
|
+
: '')
|
|
192
|
+
: '';
|
|
193
|
+
const sandboxKey = sandboxDescriptor
|
|
194
|
+
? (typeof sandboxDescriptor.settingKey === 'string' && sandboxDescriptor.settingKey.trim()
|
|
195
|
+
? sandboxDescriptor.settingKey.trim()
|
|
196
|
+
: '')
|
|
197
|
+
: '';
|
|
198
|
+
const schemaManagedKeys = new Set(Object.keys(schemaValues));
|
|
199
|
+
const normalizedSchemaSettings: Record<string, unknown> = Object.fromEntries(
|
|
200
|
+
Object.entries(schemaValues).map(([key, value]) => {
|
|
201
|
+
return [key, normalizeStringSetting(value)];
|
|
202
|
+
})
|
|
203
|
+
);
|
|
204
|
+
const schemaManages = (key: string) => schemaManagedKeys.has(key);
|
|
205
|
+
|
|
206
|
+
let cwd = schemaManages('cwd')
|
|
207
|
+
? normalizedSchemaSettings.cwd
|
|
208
|
+
: normalizeStringSetting(settingsCwdEl?.value);
|
|
209
|
+
if (!cwd && !schemaManages('cwd')) {
|
|
210
|
+
cwd = normalizeStringSetting(state.conversationSettings?.cwd);
|
|
211
|
+
}
|
|
212
|
+
if (!cwd) {
|
|
213
|
+
setActivity('CWD required', true);
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const preservedSettings: Record<string, unknown> = isNewConversation ? {} : { ...(state.conversationSettings || {}) };
|
|
218
|
+
[
|
|
219
|
+
'cwd',
|
|
220
|
+
'approvalPolicy',
|
|
221
|
+
'approval_policy',
|
|
222
|
+
'sandboxPolicy',
|
|
223
|
+
'sandbox_policy',
|
|
224
|
+
'sandbox',
|
|
225
|
+
'web_policy',
|
|
226
|
+
'model',
|
|
227
|
+
'effort',
|
|
228
|
+
'reasoning_effort',
|
|
229
|
+
'summary',
|
|
230
|
+
'developer_instructions',
|
|
231
|
+
'label',
|
|
232
|
+
'alias',
|
|
233
|
+
'commandOutputLines',
|
|
234
|
+
'viewWrap',
|
|
235
|
+
'markdown',
|
|
236
|
+
'diffSyntax',
|
|
237
|
+
'semanticShellRibbon',
|
|
238
|
+
'te2_mcp_integration',
|
|
239
|
+
'trackEdits',
|
|
240
|
+
'lineNumbers',
|
|
241
|
+
'agent',
|
|
242
|
+
approvalKey,
|
|
243
|
+
sandboxKey,
|
|
244
|
+
...Object.keys(schemaValues),
|
|
245
|
+
].forEach((key) => {
|
|
246
|
+
if (!key) return;
|
|
247
|
+
delete preservedSettings[key];
|
|
248
|
+
});
|
|
249
|
+
const settings: Record<string, unknown> = {
|
|
250
|
+
...preservedSettings,
|
|
251
|
+
...normalizedSchemaSettings,
|
|
252
|
+
cwd,
|
|
253
|
+
label: normalizeStringSetting(settingsLabelEl?.value),
|
|
254
|
+
alias: normalizeStringSetting(settingsAliasEl?.value),
|
|
255
|
+
commandOutputLines: Number.isFinite(commandLinesVal) && commandLinesVal > 0 ? commandLinesVal : DEFAULT_COMMAND_OUTPUT_LINES,
|
|
256
|
+
viewWrap: viewWrapEnabled,
|
|
257
|
+
markdown: mdEnabled,
|
|
258
|
+
diffSyntax: diffSyntaxEnabled,
|
|
259
|
+
semanticShellRibbon: semanticRibbonEnabled,
|
|
260
|
+
te2_mcp_integration: settingsTe2McpIntegrationEl?.checked === true,
|
|
261
|
+
trackEdits: state.trackEditsEnabled,
|
|
262
|
+
lineNumbers: state.lineNumbersEnabled === true,
|
|
263
|
+
agent: agentType,
|
|
264
|
+
};
|
|
265
|
+
if (approvalKey && !schemaManages(approvalKey)) {
|
|
266
|
+
settings[approvalKey] = normalizeStringSetting(settingsApprovalEl?.value) || null;
|
|
267
|
+
}
|
|
268
|
+
if (sandboxKey && !schemaManages(sandboxKey)) {
|
|
269
|
+
settings[sandboxKey] = normalizeStringSetting(settingsSandboxEl?.value);
|
|
270
|
+
}
|
|
271
|
+
if (!schemaManages('model')) {
|
|
272
|
+
settings.model = normalizeStringSetting(settingsModelEl?.value);
|
|
273
|
+
}
|
|
274
|
+
if (!schemaManages('reasoning_effort')) {
|
|
275
|
+
settings.reasoning_effort = normalizeStringSetting(settingsEffortEl?.value);
|
|
276
|
+
}
|
|
277
|
+
if (!schemaManages('summary')) {
|
|
278
|
+
settings.summary = normalizeStringSetting(settingsSummaryEl?.value);
|
|
279
|
+
}
|
|
280
|
+
if (!schemaManages('developer_instructions')) {
|
|
281
|
+
settings.developer_instructions = normalizeStringSetting(settingsDeveloperInstructionsEl?.value);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
setMarkdownEnabled(mdEnabled);
|
|
285
|
+
setViewWrapEnabled(viewWrapEnabled);
|
|
286
|
+
setDiffSyntaxEnabled(diffSyntaxEnabled);
|
|
287
|
+
setSemanticShellRibbonEnabled(semanticRibbonEnabled);
|
|
288
|
+
if (semanticRibbonEnabled) {
|
|
289
|
+
await ensureTreeSitterRibbonReady();
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (isNewConversation) {
|
|
293
|
+
const pickedProviderSession = normalizeStringSetting(settings.session);
|
|
294
|
+
const meta = await conversationsRpcClient.createConversation({
|
|
295
|
+
settings,
|
|
296
|
+
timeoutMs: typeof pickedProviderSession === 'string' ? 120000 : 10000,
|
|
297
|
+
});
|
|
298
|
+
if (meta?.conversation_id) {
|
|
299
|
+
setState({
|
|
300
|
+
clientConversationId: meta.conversation_id,
|
|
301
|
+
clientActiveView: 'conversation',
|
|
302
|
+
conversationMeta: meta,
|
|
303
|
+
conversationSettings: meta?.settings || {},
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
setState({ pendingNewConversation: false });
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if (!isNewConversation) {
|
|
310
|
+
nextState = getState();
|
|
311
|
+
const conversationId = scopedConversationId(nextState);
|
|
312
|
+
await conversationsRpcClient.updateConversation({
|
|
313
|
+
conversationId,
|
|
314
|
+
settings,
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
closeSettingsModal();
|
|
319
|
+
await fetchConversation(scopedConversationId(getState()));
|
|
320
|
+
await fetchConversations();
|
|
321
|
+
if (isNewConversation) {
|
|
322
|
+
resetTimeline();
|
|
323
|
+
}
|
|
324
|
+
await replayTranscript();
|
|
325
|
+
await refreshPlanSurface?.();
|
|
326
|
+
restorePendingApprovals();
|
|
327
|
+
setDrawerOpen(true);
|
|
328
|
+
updateConversationHeaderLabel();
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
return { saveSettings };
|
|
332
|
+
}
|