Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

LiteyukiBot v7 Permissions

liteyukibot-v7-permissions provides the versioned liteyukibot.permissions@1 service for native LiteyukiBot v7 plugins.

The service resolves exact runtime_id, bot_id, and actor_id principals into named roles and capability tokens. Wildcards and actor-only global identities are intentionally unsupported.

[plugins]
enabled = ["liteyukibot.permissions"]

[plugins.config."liteyukibot.permissions".roles]
operator = ["liteyukibot.status.read", "example.echo.manage"]

[[plugins.config."liteyukibot.permissions".grants]]
runtime_id = "nonebot"
bot_id = "10000"
actor_id = "20000"
roles = ["operator"]
capabilities = ["example.echo.use"]

Consumers declare ServiceRequirement(PERMISSION_SERVICE) and resolve a PermissionService from their plugin context. allows(event, capability) performs an exact, fail-closed check. resolve(event) returns a frozen snapshot for diagnostics. Every event has public; plugins check capabilities rather than deployment role names.

Privileged boundaries call decide(event, capability, component=...) instead. It has the same exact policy outcome and keeps a bounded in-memory audit snapshot available through audit(). Each record contains only the capability, principal tuple, component, event ID, allow/deny outcome, and stable reason; message content, API parameters, and tool arguments are never captured.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

liteyukibot_v7_permissions-0.2.0a2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liteyukibot_v7_permissions-0.2.0a2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file liteyukibot_v7_permissions-0.2.0a2.tar.gz.

File metadata

  • Download URL: liteyukibot_v7_permissions-0.2.0a2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for liteyukibot_v7_permissions-0.2.0a2.tar.gz
Algorithm Hash digest
SHA256 c3965d9acc8091d3b57d5113153fba679a30c772cc5e70b06963c3c14cd116e1
MD5 4b032d9043a5b6f839eb5c937e9fd6f6
BLAKE2b-256 0c876fa116da9a20adfbe7f72c1a0418fa7157d07d1a63015b13b4267710705b

See more details on using hashes here.

File details

Details for the file liteyukibot_v7_permissions-0.2.0a2-py3-none-any.whl.

File metadata

  • Download URL: liteyukibot_v7_permissions-0.2.0a2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for liteyukibot_v7_permissions-0.2.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 21e024fb0f544fd2c488c0e8daac5904bfbdd6a5c93c20b29cd9332b4ca68f23
MD5 5f975b60abeabb3e9e4cb4f6021a7b2b
BLAKE2b-256 b924769c7e1e1d2c7c64c723e78105ee3c11f8bdf3195e1c1ca3bdabf69afde4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0a2 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page