Commit b4cf7dd
Fix metadata types endpoint to prioritize MetadataService over protocol service
The protocol service (ObjectQL) only returns SchemaRegistry types (object, app, etc.) and misses runtime-registered types like agent and tool. This caused Vercel deployments to return incomplete metadata type lists.
Changes:
- Reorder priority in http-dispatcher GET /metadata/types to query MetadataService FIRST
- MetadataService.getRegisteredTypes() returns both typeRegistry (includes agent/tool from DEFAULT_METADATA_TYPE_REGISTRY) and runtime-registered types
- Protocol service now as fallback (PRIORITY 2) instead of first choice
- Fix CodeQL security warning by sanitizing user input in log messages (prevent log injection)
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/62beb0d8-d629-4026-a5c6-c35ab61b3308
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>1 parent 9d89f50 commit b4cf7dd
1 file changed
+11
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 344 | + | |
351 | 345 | | |
352 | 346 | | |
353 | 347 | | |
| |||
358 | 352 | | |
359 | 353 | | |
360 | 354 | | |
361 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
504 | 506 | | |
505 | 507 | | |
506 | 508 | | |
| |||
0 commit comments