MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / set_account_status

Method set_account_status

app/services/account_state.py:445–456  ·  view source on GitHub ↗
(
        self,
        account_id: str,
        *,
        status: str,
        message: str = "",
    )

Source from the content-addressed store, hash-verified

443
444
445def make_id(prefix: str) -> str:
446 """Create a short local identifier."""
447 return f"{prefix}-{secrets.token_hex(4)}"
448
449
450def mask_secret(value: str) -> str:
451 """Mask a secret for UI display."""
452 normalized = (value or "").strip()
453 if not normalized:
454 return ""
455 if len(normalized) <= 8:
456 return f"{normalized[:2]}***{normalized[-2:]}"
457 return f"{normalized[:4]}***{normalized[-4:]}"

Callers 1

Calls 3

get_accountMethod · 0.95
update_accountMethod · 0.95
utc_now_isoFunction · 0.85

Tested by

no test coverage detected