gemcode 0.3.55__tar.gz → 0.3.56__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.
- {gemcode-0.3.55/src/gemcode.egg-info → gemcode-0.3.56}/PKG-INFO +1 -1
- {gemcode-0.3.55 → gemcode-0.3.56}/pyproject.toml +1 -1
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/capability_routing.py +4 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/repl_slash.py +15 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/session_runtime.py +8 -0
- {gemcode-0.3.55 → gemcode-0.3.56/src/gemcode.egg-info}/PKG-INFO +1 -1
- {gemcode-0.3.55 → gemcode-0.3.56}/LICENSE +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/MANIFEST.in +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/README.md +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/setup.cfg +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/__init__.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/__main__.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/agent.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/audit.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/autocompact.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/callbacks.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/cli.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/compaction.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/computer_use/__init__.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/computer_use/browser_computer.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/config.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/context_budget.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/context_warning.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/credentials.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/hitl_session.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/hooks.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/intent_classifier.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/interactions.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/invoke.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/kairos_daemon.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/limits.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/live_audio_engine.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/logging_config.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/mcp_loader.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/memory/__init__.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/memory/embedding_memory_service.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/memory/file_memory_service.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/modality_tools.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/model_errors.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/model_routing.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/openapi_loader.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/paths.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/permissions.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/plugins/__init__.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/plugins/terminal_hooks_plugin.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/plugins/tool_recovery_plugin.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/pricing.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/prompt_suggestions.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/query/__init__.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/query/config.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/query/deps.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/query/engine.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/query/stop_hooks.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/query/token_budget.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/query/transitions.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/refine.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/repl_commands.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/review_agent.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/session_store.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/slash_commands.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/thinking.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tool_prompt_manifest.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tool_registry.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/__init__.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/bash.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/browser.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/edit.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/filesystem.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/notes.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/search.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/shell.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/shell_gate.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/subtask.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/think.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/todo.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools/web.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tools_inspector.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/trust.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tui/input_handler.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tui/scrollback.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tui/spinner.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tui/welcome_banner.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/tui/welcome_rich.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/version.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/vertex.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/web/__init__.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/web/claude_sse_adapter.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/web/terminal_repl.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode/workspace_hints.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode.egg-info/SOURCES.txt +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode.egg-info/dependency_links.txt +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode.egg-info/entry_points.txt +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode.egg-info/requires.txt +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/src/gemcode.egg-info/top_level.txt +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_agent_instruction.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_autocompact.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_capability_routing.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_claude_web_adapter_sse.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_cli_init.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_computer_use_permissions.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_context_budget.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_context_warning.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_credentials.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_interactive_permission_ask.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_kairos_scheduler.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_modality_tools.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_model_error_retry.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_model_errors.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_model_routing.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_paths.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_permissions.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_prompt_suggestions.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_repl_commands.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_repl_slash.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_slash_commands.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_thinking_config.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_token_budget.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_tool_context_circulation.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_tools.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_tools_inspector.py +0 -0
- {gemcode-0.3.55 → gemcode-0.3.56}/tests/test_workspace_hints.py +0 -0
|
@@ -94,6 +94,10 @@ def apply_capability_routing(
|
|
|
94
94
|
cfg.enable_embeddings = True
|
|
95
95
|
|
|
96
96
|
def enable_computer() -> None:
|
|
97
|
+
# Respect session-level unavailability (e.g. Playwright not installed).
|
|
98
|
+
# When computer-use is known-broken, auto-routing must not re-enable it.
|
|
99
|
+
if getattr(cfg, "_computer_use_available", True) is False:
|
|
100
|
+
return
|
|
97
101
|
cfg.enable_computer_use = True
|
|
98
102
|
|
|
99
103
|
def enable_audio() -> None:
|
|
@@ -696,6 +696,15 @@ async def process_repl_slash(
|
|
|
696
696
|
return ReplSlashResult(skip_model_turn=True)
|
|
697
697
|
|
|
698
698
|
if args_s == "on":
|
|
699
|
+
# If the session has already determined computer-use is unavailable
|
|
700
|
+
# (Playwright missing), do not allow re-enabling without installing it
|
|
701
|
+
# and restarting the process.
|
|
702
|
+
if getattr(cfg, "_computer_use_available", True) is False:
|
|
703
|
+
out("computer_use: unavailable — Playwright browsers are not installed")
|
|
704
|
+
out("Run: python3 -m playwright install chromium")
|
|
705
|
+
out("Then restart GemCode and run: /computer on")
|
|
706
|
+
out()
|
|
707
|
+
return ReplSlashResult(skip_model_turn=True)
|
|
699
708
|
cfg.enable_computer_use = True
|
|
700
709
|
out("computer_use: on — Playwright Chromium browser automation enabled")
|
|
701
710
|
out(" Runner will rebuild on the next turn to inject browser tools.")
|
|
@@ -911,6 +920,12 @@ async def process_repl_slash(
|
|
|
911
920
|
out()
|
|
912
921
|
return ReplSlashResult(skip_model_turn=True, force_rebuild_runner=True)
|
|
913
922
|
if args_s in ("computer", "browser"):
|
|
923
|
+
if getattr(cfg, "_computer_use_available", True) is False:
|
|
924
|
+
out("enable_computer_use: unavailable — Playwright browsers are not installed")
|
|
925
|
+
out("Run: python3 -m playwright install chromium")
|
|
926
|
+
out("Then restart GemCode and re-enable computer-use.")
|
|
927
|
+
out()
|
|
928
|
+
return ReplSlashResult(skip_model_turn=True)
|
|
914
929
|
cfg.enable_computer_use = True
|
|
915
930
|
out("enable_computer_use: on (runner rebuilding…)")
|
|
916
931
|
out("Tip: set GEMCODE_COMPUTER_HEADLESS=0 before starting gemcode to see the browser window.")
|
|
@@ -228,6 +228,14 @@ def create_runner(cfg: GemCodeConfig, extra_tools: list | None = None) -> Runner
|
|
|
228
228
|
# Disable so model_routing stays on the normal model (not computer-use preview).
|
|
229
229
|
cfg.enable_computer_use = False
|
|
230
230
|
cfg._computer_use_available = False # type: ignore[attr-defined]
|
|
231
|
+
# If the TUI already routed the model to the computer-use preview model for
|
|
232
|
+
# this turn, reset back to the normal model so the next agent construction
|
|
233
|
+
# doesn't keep using a model that requires the missing tool.
|
|
234
|
+
try:
|
|
235
|
+
if not getattr(cfg, "model_overridden", False) and cfg.model == cfg.model_computer_use:
|
|
236
|
+
cfg.model = os.environ.get("GEMCODE_MODEL", "gemini-3.1-pro-preview")
|
|
237
|
+
except Exception:
|
|
238
|
+
pass
|
|
231
239
|
else:
|
|
232
240
|
cfg._computer_use_available = True # type: ignore[attr-defined]
|
|
233
241
|
headless_env = os.environ.get("GEMCODE_COMPUTER_HEADLESS", "1").lower()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|