first commit

This commit is contained in:
npc0-hue
2026-07-11 14:56:10 +08:00
commit 7e05d0a4e7
660 changed files with 78119 additions and 0 deletions
@@ -0,0 +1,24 @@
# Plugin Page Bridge Contract
Plugin page runs with safe platform context.
## Host Context
- `pluginId`: installed plugin ID.
- `routeKey`: current plugin route.
- `serverInstanceId`: optional selected server instance.
- `themeTokens`: safe theme tokens.
- `permissions`: effective plugin permissions.
## Host APIs
- `api.request`: platform-scoped request only.
- `jobs.dispatch`: authorized job dispatch.
- `logs.query`: historical log query and analysis windows.
- `artifacts.open`: artifact upload/download references.
- `files.request`: scoped file operation requests.
- `ai.invoke`: platform-mediated AI invocation.
## Forbidden
The host must not expose raw auth storage, AI keys, run credentials, host paths, or storage backend credentials.