deepy-cli 0.2.22__tar.gz → 0.2.23__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.
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/PKG-INFO +1 -1
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/pyproject.toml +1 -1
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/__init__.py +1 -1
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/message_view.py +43 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/README.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/__main__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/background_tasks.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/cli.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/config/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/config/settings.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/skills/skill-creator/SKILL.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/skills/skill-installer/SKILL.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/AskUserQuestion.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/Read.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/Search.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/Update.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/WebFetch.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/WebSearch.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/Write.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/shell.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/task_list.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/task_output.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/task_stop.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/test_shell.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/data/tools/todo_write.md +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/errors.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/input_suggestions.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/agent.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/cache_context.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/compaction.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/context.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/events.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/model_capabilities.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/provider.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/replay.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/runner.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/llm/thinking.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/mcp.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/prompts/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/prompts/compact.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/prompts/init_agents.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/prompts/rules.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/prompts/runtime_context.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/prompts/system.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/prompts/tool_docs.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/session_cost.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/sessions/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/sessions/index.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/sessions/manager.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/sessions/session.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/sessions/store_helpers.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/skill_market.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/skills.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/status.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/subagents.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/todos.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tools/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tools/agents.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tools/builtin.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tools/file_state.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tools/result.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tools/search.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tools/shell_output.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tools/shell_utils.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tools/test_shell.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tui/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tui/app.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tui/commands.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tui/compat.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tui/diff.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tui/runner.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tui/screens.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tui/state.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/tui/widgets.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/types/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/types/sdk.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/types/tool_payloads.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/app.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/ask_user_question.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/exit_summary.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/file_mentions.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/loading_text.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/local_command.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/markdown.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/model_picker.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/prompt_buffer.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/prompt_input.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/session_list.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/session_picker.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/skill_picker.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/slash_commands.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/status_footer.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/styles.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/terminal.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/theme_picker.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/thinking_state.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/ui/welcome.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/update_check.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/usage.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/utils/__init__.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/utils/debug_logger.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/utils/error_logger.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/utils/json.py +0 -0
- {deepy_cli-0.2.22 → deepy_cli-0.2.23}/src/deepy/utils/notify.py +0 -0
|
@@ -541,6 +541,8 @@ def build_tool_params_snippet(
|
|
|
541
541
|
project_root=project_root,
|
|
542
542
|
)
|
|
543
543
|
return args.strip()
|
|
544
|
+
if tool_name == "Read":
|
|
545
|
+
return _format_read_params_snippet(parsed, project_root=project_root) or args.strip()
|
|
544
546
|
parsed_params = _string_key_dict(parsed)
|
|
545
547
|
if parsed_params is None:
|
|
546
548
|
return args.strip()
|
|
@@ -902,6 +904,8 @@ def _format_tool_params_snippet(
|
|
|
902
904
|
return _format_update_params_snippet(args, project_root=project_root)
|
|
903
905
|
if tool_name == "Search":
|
|
904
906
|
return _format_search_params_snippet(args, project_root=project_root)
|
|
907
|
+
if tool_name == "Read":
|
|
908
|
+
return _format_read_params_snippet(args, project_root=project_root)
|
|
905
909
|
|
|
906
910
|
if tool_name == "shell":
|
|
907
911
|
command = args.get("command")
|
|
@@ -922,6 +926,45 @@ def _format_tool_params_snippet(
|
|
|
922
926
|
return text
|
|
923
927
|
|
|
924
928
|
|
|
929
|
+
def _format_read_params_snippet(value: Any, *, project_root: str | None) -> str:
|
|
930
|
+
paths = _read_paths_from_value(value)
|
|
931
|
+
if not paths:
|
|
932
|
+
return ""
|
|
933
|
+
return ", ".join(_shorten_project_path(path, project_root=project_root) for path in paths)
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
def _read_paths_from_value(value: Any) -> list[str]:
|
|
937
|
+
paths: list[str] = []
|
|
938
|
+
_collect_read_paths(value, paths)
|
|
939
|
+
return paths
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
def _collect_read_paths(value: Any, paths: list[str]) -> None:
|
|
943
|
+
if isinstance(value, str):
|
|
944
|
+
_append_unique_path(paths, value)
|
|
945
|
+
return
|
|
946
|
+
if isinstance(value, list):
|
|
947
|
+
for item in value:
|
|
948
|
+
_collect_read_paths(item, paths)
|
|
949
|
+
return
|
|
950
|
+
if not isinstance(value, dict):
|
|
951
|
+
return
|
|
952
|
+
for key in ("path", "file_path"):
|
|
953
|
+
path = _string_or_none(value.get(key))
|
|
954
|
+
if path:
|
|
955
|
+
_append_unique_path(paths, path)
|
|
956
|
+
for key in ("paths", "files"):
|
|
957
|
+
items = value.get(key)
|
|
958
|
+
if isinstance(items, list):
|
|
959
|
+
for item in items:
|
|
960
|
+
_collect_read_paths(item, paths)
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
def _append_unique_path(paths: list[str], path: str) -> None:
|
|
964
|
+
if path not in paths:
|
|
965
|
+
paths.append(path)
|
|
966
|
+
|
|
967
|
+
|
|
925
968
|
def _format_write_params_snippet(args: dict[str, Any], *, project_root: str | None) -> str:
|
|
926
969
|
path = _string_or_none(args.get("file_path")) or _string_or_none(args.get("path"))
|
|
927
970
|
content = args.get("content")
|
|
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
|