mirror of
https://github.com/hansjone/netx.git
synced 2026-10-11 00:32:39 +08:00
Add NE capability descriptors and native async exec jobs for agents.
Expose recommended_mode/hints on getManagedNe, support background exec-jobs with getNeExecJob in MCP, and allow linux_shell on MikroTik as well as Linux. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c6a98e2526
commit
8bdaaaacbf
20 changed files with 928 additions and 88 deletions
|
|
@ -118,6 +118,8 @@ def required_scope_for_request(method: str, path: str) -> str | None:
|
|||
|
||||
if p.startswith("/v1/managed-ne"):
|
||||
path_tail = p.rstrip("/")
|
||||
if "/exec-jobs" in p:
|
||||
return SCOPE_NE_EXEC
|
||||
if m == "POST" and (path_tail.endswith("/exec") or path_tail.endswith("/exec-batch")):
|
||||
return SCOPE_NE_EXEC
|
||||
if m in ("POST", "PUT", "PATCH", "DELETE"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue