feat: add AI tool access registry

This commit is contained in:
2026-06-17 08:45:56 +08:00
parent 5eb95a4ef4
commit 8bdde45e89
13 changed files with 436 additions and 1 deletions

View File

@@ -93,6 +93,13 @@ curl http://localhost:8084/api/page/schema/components
curl -X POST http://localhost:8084/api/page/schema/validate \
-H "Content-Type: application/json" \
--data-binary @target/ai-runs/page-schema.json
# AI tools / employees / ACL
curl http://localhost:8084/api/ai/tools
curl http://localhost:8084/api/ai/employees
curl -X POST http://localhost:8084/api/ai/tools/access-check \
-H "Content-Type: application/json" \
-d '{"employeeId":"agent-developer","toolName":"local.apply","grantedScopes":["ai:local:apply"],"targetEnv":"local","productionWrite":false}'
```
## tools/