WeKnora/internal/storageurl
lyingbug 96e28b2438 test(api): cover resource_urls=public across the rewriter, handlers and SSE wire
Includes an end-to-end ContinueStream test that asserts the full SSE wire
output. It caught a leak: the references event carries its results twice, and
the copy in Data holds the typed []*SearchResult that CopyData did not
traverse, so handles reached a caller that asked for public URLs. CopyData now
handles the typed slice, []string and map[string]string forms.

Co-authored-by: lyingbug <lyingbug@users.noreply.github.com>
2026-08-05 14:42:51 +08:00
..
mode.go feat(api): add resource_urls=public to return directly loadable file URLs 2026-08-05 14:42:51 +08:00
request.go test(api): cover resource_urls=public across the rewriter, handlers and SSE wire 2026-08-05 14:42:51 +08:00
request_test.go test(api): cover resource_urls=public across the rewriter, handlers and SSE wire 2026-08-05 14:42:51 +08:00
resolver.go refactor(storage): extract storage reference URL rewriting into internal/storageurl 2026-08-05 14:42:51 +08:00
storageurl.go refactor(storage): extract storage reference URL rewriting into internal/storageurl 2026-08-05 14:42:51 +08:00
storageurl_test.go refactor(storage): extract storage reference URL rewriting into internal/storageurl 2026-08-05 14:42:51 +08:00
stream.go feat(api): add resource_urls=public to return directly loadable file URLs 2026-08-05 14:42:51 +08:00
stream_test.go refactor(storage): extract storage reference URL rewriting into internal/storageurl 2026-08-05 14:42:51 +08:00