drydock-cli 3.0.109__tar.gz → 3.0.110__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.
- {drydock_cli-3.0.109/drydock_cli.egg-info → drydock_cli-3.0.110}/PKG-INFO +1 -1
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/tools/__init__.py +13 -3
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/tui/app.py +26 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/tui/widgets.py +1 -1
- {drydock_cli-3.0.109 → drydock_cli-3.0.110/drydock_cli.egg-info}/PKG-INFO +1 -1
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/pyproject.toml +1 -1
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_windows_shell.py +15 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/LICENSE +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/NOTICE +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/README.md +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/__init__.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/__main__.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/advisor.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/agent.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/bash_safety.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/builtin_skills/__init__.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/builtin_skills/rmf-categorize.md +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/builtin_skills/rmf-control.md +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/builtin_skills/rmf-poam.md +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/builtin_skills/rmf-review.md +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/builtin_skills/stig-assess.md +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/builtin_skills/stig-remediate.md +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/cci.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/cli.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/compaction.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/config.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/detect.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/extract.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/gittools.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/graphrag.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/guards.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/loop_detect.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/mcp.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/poam.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/providers.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/rmf.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/rmf_graph.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/skills.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/stig.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/tool_registry.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/tui/__init__.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/tui/approval.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/tui/messages.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/tuning.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock/web.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock_cli.egg-info/SOURCES.txt +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock_cli.egg-info/dependency_links.txt +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock_cli.egg-info/entry_points.txt +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock_cli.egg-info/requires.txt +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/drydock_cli.egg-info/top_level.txt +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/setup.cfg +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_advisor.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_approval.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_back_command.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_background.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_binary_output.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_crossplatform.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_output_bounding.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_process_group.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_safety.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_sanitize.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_shell.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_stdin.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_stop_partial.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_timeout_network.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_bash_timeout_param.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_cci.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_cli_agents.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_compact_command.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_compaction.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_config.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_config_migration.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_context_limit_config.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_detect.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_dispatch.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_e2e_connected.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_edit_replace_all.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_empty_response.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_extract.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_failure_loop.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_first_run_setup.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_gittools.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_glob_edit_edges.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_graphify_example.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_graphrag.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_grep_and_read_robust.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_guards_and_tools.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_hallucinated_tools.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_leaked_tool_call.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_loop_detect.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_mcp.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_oneshot_unreachable.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_overthink_interrupt.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_plan_autocontinue.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_poam.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_providers_unreachable.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_read_index.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_rmf.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_rmf_graph.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_rmf_stig_graph.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_runaway_repetition.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_server_probe.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_skills.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_stall_retry.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_stig.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_stop.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_streaming_newlines.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_subagent.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_system_prompt_help.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_todo.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_tool_arg_coercion.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_tool_arg_coercion_more.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_tool_arg_parsing.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_tools_undo.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_tui.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_tuning.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_viewimage.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_vision_input.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_web_tools.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_write_content_coerce.py +0 -0
- {drydock_cli-3.0.109 → drydock_cli-3.0.110}/tests/test_xccdf.py +0 -0
|
@@ -93,9 +93,19 @@ def _detect_bash() -> str | None:
|
|
|
93
93
|
return None
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
def _is_windows_env(os_name: str, platform: str, environ) -> bool:
|
|
97
|
+
"""Treat as Windows if ANY signal says so — native CPython (os.name 'nt' /
|
|
98
|
+
sys.platform 'win32') AND odd Pythons run from Git-Bash/MSYS/Cygwin (which
|
|
99
|
+
report posix but where Windows always exports WINDIR/SystemRoot). WSL (real
|
|
100
|
+
Linux) does not set WINDIR, so it correctly stays POSIX/bash."""
|
|
101
|
+
return (
|
|
102
|
+
os_name == "nt"
|
|
103
|
+
or platform in ("win32", "cygwin", "msys")
|
|
104
|
+
or bool(environ.get("WINDIR") or environ.get("SystemRoot"))
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
_IS_WINDOWS = _is_windows_env(os.name, sys.platform, os.environ)
|
|
99
109
|
|
|
100
110
|
|
|
101
111
|
def _detect_shell() -> tuple[str, str]:
|
|
@@ -501,6 +501,8 @@ class DrydockApp(App):
|
|
|
501
501
|
self._cmd_compact()
|
|
502
502
|
elif cmd == "/context":
|
|
503
503
|
self._cmd_context(arg)
|
|
504
|
+
elif cmd == "/shell":
|
|
505
|
+
self._cmd_shell()
|
|
504
506
|
elif cmd == "/advisor":
|
|
505
507
|
self._cmd_advisor(arg)
|
|
506
508
|
elif cmd == "/ask":
|
|
@@ -807,6 +809,30 @@ class DrydockApp(App):
|
|
|
807
809
|
else:
|
|
808
810
|
self._begin(prompt)
|
|
809
811
|
|
|
812
|
+
def _cmd_shell(self) -> None:
|
|
813
|
+
"""Show exactly which shell the Bash tool runs commands through, plus the
|
|
814
|
+
platform signals — so a 'still using bash on Windows' report is instantly
|
|
815
|
+
diagnosable. (The tool is NAMED 'Bash' on every OS; on Windows it actually
|
|
816
|
+
invokes PowerShell/cmd underneath.)"""
|
|
817
|
+
import os as _os
|
|
818
|
+
import sys as _sys
|
|
819
|
+
|
|
820
|
+
from drydock import tools
|
|
821
|
+
kind, path = tools._detect_shell()
|
|
822
|
+
lines = [
|
|
823
|
+
f"The Bash tool runs your commands through: {kind.upper()}",
|
|
824
|
+
f" shell path : {path}",
|
|
825
|
+
f" os.name={_os.name} sys.platform={_sys.platform} detected_windows={tools._IS_WINDOWS}",
|
|
826
|
+
f" DRYDOCK_SHELL env = {_os.environ.get('DRYDOCK_SHELL') or '(unset)'}",
|
|
827
|
+
f" bash on system = {tools._detect_bash() or '(none)'}",
|
|
828
|
+
]
|
|
829
|
+
if kind == "bash" and tools._IS_WINDOWS:
|
|
830
|
+
lines.append(" ⚠ on Windows but using bash — set $env:DRYDOCK_SHELL=\"powershell\" and restart.")
|
|
831
|
+
elif kind == "powershell":
|
|
832
|
+
lines.append(" ✓ using PowerShell (the 'Bash' label is just the tool's name).")
|
|
833
|
+
lines.append(" Force a shell any time: set env DRYDOCK_SHELL to powershell / cmd / bash.")
|
|
834
|
+
self._info("\n".join(lines))
|
|
835
|
+
|
|
810
836
|
def _cmd_context(self, arg: str) -> None:
|
|
811
837
|
"""View or change the context-window budget (tokens) — the cap that drives
|
|
812
838
|
the ctx gauge + auto-compaction. `/context` shows it + its source; `/context
|
|
@@ -153,7 +153,7 @@ class PromptHistory:
|
|
|
153
153
|
# completes the prefix.
|
|
154
154
|
SLASH_COMMANDS = [
|
|
155
155
|
"/help", "/model", "/cwd", "/undo", "/back", "/stop", "/status",
|
|
156
|
-
"/compact", "/context", "/advisor", "/ask", "/ask!", "/graphrag", "/skills",
|
|
156
|
+
"/compact", "/context", "/shell", "/advisor", "/ask", "/ask!", "/graphrag", "/skills",
|
|
157
157
|
"/loop", "/mcp", "/rmf", "/stig",
|
|
158
158
|
"/clear", "/quit",
|
|
159
159
|
]
|
|
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|
|
7
7
|
# PyPI distribution name is drydock-cli (the established install name, continued
|
|
8
8
|
# from the retired v2 fork); the import package + CLI command stay `drydock`.
|
|
9
9
|
name = "drydock-cli"
|
|
10
|
-
version = "3.0.
|
|
10
|
+
version = "3.0.110"
|
|
11
11
|
description = "Drydock — a local, provider-agnostic terminal coding agent for local LLMs"
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
requires-python = ">=3.11"
|
|
@@ -77,3 +77,18 @@ def test_env_override_forces_cmd():
|
|
|
77
77
|
def test_env_override_forces_bash():
|
|
78
78
|
with mock.patch.dict("os.environ", {"DRYDOCK_SHELL": "bash"}):
|
|
79
79
|
assert T._detect_shell()[0] in ("bash", "sh")
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def test_is_windows_detection_signals():
|
|
83
|
+
from drydock.tools import _is_windows_env
|
|
84
|
+
# native Windows
|
|
85
|
+
assert _is_windows_env("nt", "win32", {})
|
|
86
|
+
# MSYS/Git-Bash Python: posix os.name but WINDIR set
|
|
87
|
+
assert _is_windows_env("posix", "msys", {"WINDIR": r"C:\Windows"})
|
|
88
|
+
# Cygwin
|
|
89
|
+
assert _is_windows_env("posix", "cygwin", {})
|
|
90
|
+
# SystemRoot fallback
|
|
91
|
+
assert _is_windows_env("posix", "linux", {"SystemRoot": r"C:\Windows"})
|
|
92
|
+
# real Linux / WSL (no Windows env)
|
|
93
|
+
assert not _is_windows_env("posix", "linux", {})
|
|
94
|
+
assert not _is_windows_env("posix", "linux", {"HOME": "/home/x"})
|
|
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
|