mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-07 05:12:34 +00:00
Merge pull request #974 from PR0M3TH3AN/agents/daily/content-audit-agent-fix-15836279461289330349
Execute daily content-audit-agent job and update docs/memory
This commit is contained in:
17 files changed
+101
-34
No files matched your search
@@ -3676,7 +3676,9 @@ def agent_export_manifest_verify(
|
||||
def agent_document_import(
|
||||
ctx: typer.Context,
|
||||
file: Path = typer.Option(..., "--file", help="Input file path"),
|
||||
label: Optional[str] = typer.Option(None, "--label", help="Document title override"),
|
||||
label: Optional[str] = typer.Option(
|
||||
None, "--label", help="Document title override"
|
||||
),
|
||||
notes: str = typer.Option("", "--notes", help="Entry notes"),
|
||||
tag: list[str] = typer.Option(
|
||||
[], "--tag", help="Tag to attach (repeatable)", show_default=False
|
||||
|
||||
+16
-5
@@ -7,7 +7,10 @@ import typer
|
||||
import uvicorn
|
||||
|
||||
from .. import api as api_module
|
||||
from seedpass.core.auth_broker import AuthBrokerError, resolve_password as resolve_broker_password
|
||||
from seedpass.core.auth_broker import (
|
||||
AuthBrokerError,
|
||||
resolve_password as resolve_broker_password,
|
||||
)
|
||||
|
||||
app = typer.Typer(help="Run the API server")
|
||||
|
||||
@@ -18,16 +21,22 @@ def api_start(
|
||||
host: str = "127.0.0.1",
|
||||
port: int = 8000,
|
||||
unlock: bool = typer.Option(
|
||||
False, "--unlock", help="Unlock vault during startup using the selected auth broker"
|
||||
False,
|
||||
"--unlock",
|
||||
help="Unlock vault during startup using the selected auth broker",
|
||||
),
|
||||
auth_broker: str = typer.Option(
|
||||
"prompt",
|
||||
"--auth-broker",
|
||||
help="Password source when --unlock is used (prompt|env|keyring|command)",
|
||||
click_type=click.Choice(["prompt", "env", "keyring", "command"], case_sensitive=False),
|
||||
click_type=click.Choice(
|
||||
["prompt", "env", "keyring", "command"], case_sensitive=False
|
||||
),
|
||||
),
|
||||
password_env: str = typer.Option(
|
||||
"SEEDPASS_PASSWORD", "--password-env", help="Env var used when --auth-broker=env"
|
||||
"SEEDPASS_PASSWORD",
|
||||
"--password-env",
|
||||
help="Env var used when --auth-broker=env",
|
||||
),
|
||||
broker_service: str = typer.Option(
|
||||
"seedpass",
|
||||
@@ -51,7 +60,9 @@ def api_start(
|
||||
if auth_broker.lower() == "prompt":
|
||||
unlock_password = typer.prompt("Master password", hide_input=True)
|
||||
else:
|
||||
account = broker_account or str((ctx.obj or {}).get("fingerprint") or "default")
|
||||
account = broker_account or str(
|
||||
(ctx.obj or {}).get("fingerprint") or "default"
|
||||
)
|
||||
try:
|
||||
unlock_password = resolve_broker_password(
|
||||
broker=auth_broker,
|
||||
|
||||
@@ -376,7 +376,7 @@ def entry_modify(
|
||||
links_json: Optional[str] = typer.Option(
|
||||
None,
|
||||
"--links-json",
|
||||
help="Replace links with JSON array: [{\"target_id\":1,\"relation\":\"related_to\",\"note\":\"...\"}]",
|
||||
help='Replace links with JSON array: [{"target_id":1,"relation":"related_to","note":"..."}]',
|
||||
),
|
||||
) -> None:
|
||||
"""Modify an existing entry."""
|
||||
|
||||
Reference in new issue
Block a user