mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-21 07:55:08 +00:00
feat(debug): add --nous flag to upload diagnostics to Nous S3
`hermes debug share --nous` uploads the (force-redacted) debug bundle to Nous-internal S3 storage via a presigned URL minted by the Nous account service, instead of a public paste. The bundle is private — viewable only by Nous staff / allowlisted mods through a Google-OAuth-gated viewer — and auto-deletes after 14 days. The paste.rs path is unchanged and remains the default. - hermes_cli/diagnostics_upload.py (new): stdlib-urllib NAS client — request_upload_url(), put_bundle(), confirm_upload() (best-effort), share_to_nous() orchestrator. Base URL via HERMES_DIAGNOSTICS_BASE_URL (default https://portal.nousresearch.com). - hermes_cli/debug.py: extract collect_share_bundle() from build_debug_share() so the Nous path reuses the exact same redaction/collection (paste.rs behaviour unchanged); add build_nous_bundle() producing the gzipped {"format":"hermes-debug-share/1","redacted":...,"files":...} envelope the discord-support viewer parses; add the --nous run path with a privacy notice and a clean fallback (suggest --local) on failure. - hermes_cli/main.py: add the --nous flag + help/epilog entry on `debug share`. - tests: test_diagnostics_upload.py (new) mocks urllib; test_debug.py adds bundle/Nous coverage. 97 passing.
This commit is contained in:
parent
b5f8996ccc
commit
bb6474cc51
5 changed files with 806 additions and 68 deletions
|
|
@ -29,6 +29,7 @@ Examples:
|
|||
hermes debug share --expire 30 Keep paste for 30 days
|
||||
hermes debug share --local Print report locally (no upload)
|
||||
hermes debug share --no-redact Disable upload-time secret redaction
|
||||
hermes debug share --nous Upload to Nous-internal storage (private)
|
||||
hermes debug delete <url> Delete a previously uploaded paste
|
||||
""",
|
||||
)
|
||||
|
|
@ -64,6 +65,17 @@ Examples:
|
|||
"into the public paste service."
|
||||
),
|
||||
)
|
||||
share_parser.add_argument(
|
||||
"--nous",
|
||||
action="store_true",
|
||||
help=(
|
||||
"Upload the debug bundle to Nous-internal storage (AWS S3) instead "
|
||||
"of a public paste service. The bundle is private — viewable only "
|
||||
"by Nous staff (and allowlisted Discord mods) via a Google-login-"
|
||||
"gated viewer — and auto-deletes after 14 days. Still force-redacts "
|
||||
"secrets unless --no-redact is also passed."
|
||||
),
|
||||
)
|
||||
delete_parser = debug_sub.add_parser(
|
||||
"delete",
|
||||
help="Delete a paste uploaded by 'hermes debug share'",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue