WeKnora/internal/application/service/file
wizardchen 6d14cc3536 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.
2026-07-15 17:02:43 +08:00
..
backend_scoped.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
backend_scoped_test.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
cos.go fix: deep-copy stored files and images when cloning a knowledge base 2026-06-03 14:45:59 +08:00
cos_parse_test.go feat: enhance IM file service tests and refactor storage URL handling 2026-05-29 13:47:32 +08:00
dummy.go feat(resource): add stable resource registry with LLM-context alias compaction 2026-07-15 17:02:43 +08:00
errors.go fix: deep-copy stored files and images when cloning a knowledge base 2026-06-03 14:45:59 +08:00
factory.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
ks3.go fix: deep-copy stored files and images when cloning a knowledge base 2026-06-03 14:45:59 +08:00
local.go fix: harden document pipeline concurrency and diagnostics 2026-07-09 13:26:40 +08:00
local_copy_test.go fix: deep-copy stored files and images when cloning a knowledge base 2026-06-03 14:45:59 +08:00
local_test.go fix(im): revert tenant-from-context for presigned URL 2026-04-30 11:40:30 +08:00
minio.go fix: deep-copy stored files and images when cloning a knowledge base 2026-06-03 14:45:59 +08:00
obs.go fix: deep-copy stored files and images when cloning a knowledge base 2026-06-03 14:45:59 +08:00
oss.go fix: deep-copy stored files and images when cloning a knowledge base 2026-06-03 14:45:59 +08:00
oss_test.go test: fix stale Doris SQL-shape and flaky OSS bucket assertions 2026-06-29 17:44:56 +08:00
resource_catalog.go feat(resource): add stable resource registry with LLM-context alias compaction 2026-07-15 17:02:43 +08:00
resource_catalog_test.go feat(resource): add stable resource registry with LLM-context alias compaction 2026-07-15 17:02:43 +08:00
s3.go feat(storage): add multi-instance storage backends per workspace 2026-07-15 14:54:39 +08:00
s3_test.go fix(storage): add S3 provider scheme support to frontend and backend allowlists 2026-03-30 16:57:27 +08:00
tos.go fix: deep-copy stored files and images when cloning a knowledge base 2026-06-03 14:45:59 +08:00