mirror of
https://github.com/usestrix/strix.git
synced 2026-09-09 22:31:07 +00:00
Clarify chat file path handling
This commit is contained in:
parent
916af24a19
commit
3ca4f4ce72
2 changed files with 13 additions and 1 deletions
|
|
@ -710,7 +710,13 @@ SPEC: dict[str, dict[str, Cmd]] = {
|
|||
"GET",
|
||||
"/chat/{chatId}/files/download",
|
||||
"Download one file of a chat session.",
|
||||
query=(P("path", required=True, help="File path inside the session."),),
|
||||
query=(
|
||||
P(
|
||||
"path",
|
||||
required=True,
|
||||
help="Relative path in the session, or an absolute path under /workspace.",
|
||||
),
|
||||
),
|
||||
binary=True,
|
||||
),
|
||||
"files archive": Cmd(
|
||||
|
|
|
|||
|
|
@ -1272,6 +1272,12 @@ def test_corrected_help_distinguishes_inboxes_reports_and_self_hosted_commands()
|
|||
assert "triaged" not in vulnerability_update["status"]
|
||||
assert "false_positive" not in vulnerability_update["status"]
|
||||
|
||||
chat_download = {
|
||||
param.name: param.help for param in SPEC["chat"]["files download"].query
|
||||
}
|
||||
assert "Relative path" in chat_download["path"]
|
||||
assert "/workspace" in chat_download["path"]
|
||||
|
||||
report = {param.name: param.help for param in SPEC["scans"]["report"].query}
|
||||
assert "Report content" in report["format"]
|
||||
assert "file type" in report["type"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue