feat(resource): add stable resource registry with LLM-context alias compaction
Introduce resource://<handle> as the stable application identity for stored objects, decoupling API responses, persisted rich text, and LLM prompts from physical storage paths. Adds a resource catalog service (register/resolve/bind, revocable expiring access grants), a request-local alias registry that compacts resource references while in the LLM context and restores them (including across streaming chunks), plus router, IM, chat-pipeline, and multimodal integration. Includes schema migrations (resources, resource_bindings, resource_access_grants) for sqlite, and hardens URL/output security handling.
This commit is contained in:
@@ -22,5 +22,8 @@ DROP TABLE IF EXISTS sessions;
|
||||
DROP TABLE IF EXISTS knowledges;
|
||||
DROP TABLE IF EXISTS knowledge_bases;
|
||||
DROP TABLE IF EXISTS storage_backends;
|
||||
DROP TABLE IF EXISTS resource_access_grants;
|
||||
DROP TABLE IF EXISTS resource_bindings;
|
||||
DROP TABLE IF EXISTS resources;
|
||||
DROP TABLE IF EXISTS models;
|
||||
DROP TABLE IF EXISTS tenants;
|
||||
|
||||
Reference in New Issue
Block a user