Spaces:
Running
Running
|
Download plugins/_plugin_validator/webui/plugin-validator-guidance.md from Leon4gr45/openoperator: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_plugin_validator/webui/plugin-validator-guidance.md
- Command line
-
hf download hf://spaces/Leon4gr45/openoperator/plugins/_plugin_validator/webui/plugin-validator-guidance.md
-
curl -L -o plugin-validator-guidance.md https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_plugin_validator/webui/plugin-validator-guidance.md
1.51 kB
- Store gate pattern: wrap store-backed UI in
<template x-if="$store.myStore">and mount cleanup on the inner element. - Store definition: use
createStorefrom/js/AlpineStore.js; do not register Alpine stores inline in HTML or viaalpine:init. - Notifications: use
toastFrontendError,toastFrontendSuccess, or backend notification helpers; do not render inline error boxes. - Python extensions: use
extensions/python/<point>/for named lifecycle hooks andextensions/python/_functions/<module>/<qualname>/<start|end>/for implicit@extensiblehooks. The flattenedextensions/python/<module>_<qualname>_<start|end>/layout is stale and should be flagged. - API handlers: subclass
ApiHandlerand return a dict orResponse. - Tools: subclass
Toolfromhelpers.tool. - AgentContext imports: use
from agent import AgentContext, AgentContextType, neverhelpers.context. - Hooks runtime targeting: use
sys.executableonly for framework runtime work and/opt/venv/bin/pythonfor agent-runtime installs. - execute.py pattern: expose
main()and end withif __name__ == "__main__": sys.exit(main()). - Community contribution: plugin name must match
^[a-z0-9_]+$, match the directory name, and stay unique in the published index. - LICENSE: a file named
LICENSEat the plugin root is optional for local-only plugins but required at the repository root before Plugin Index submission; if missing, rate Structure Validation as warning (not pass) and state that clearly in findings.