@musnows/scriverse 0.7.8 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.js +202 -56
- package/dist/ai.js.map +1 -1
- package/dist/app.js +2 -2
- package/dist/app.js.map +1 -1
- package/dist/database.js +36 -2
- package/dist/database.js.map +1 -1
- package/dist/hybrid-search.js +36 -5
- package/dist/hybrid-search.js.map +1 -1
- package/dist/store.js +114 -27
- package/dist/store.js.map +1 -1
- package/dist/user-auth.js +5 -4
- package/dist/user-auth.js.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -23,7 +23,7 @@ import { EPUB_MIME_TYPE, epubContentDisposition } from "./epub-export.js";
|
|
|
23
23
|
import { CREATABLE_ANALYSIS_TASK_TYPES, DRAFT_SETTING_MODULES, TASK_TYPES } from "./domain.js";
|
|
24
24
|
import { AppError } from "./errors.js";
|
|
25
25
|
import { isOfficialGoogleVertexBaseUrl, parseGoogleServiceAccount } from "./google-vertex-auth.js";
|
|
26
|
-
import { HYBRID_SEARCH_TYPES, MAXIMUM_WORK_SEARCH_QUERY_LENGTH } from "./hybrid-search.js";
|
|
26
|
+
import { HYBRID_SEARCH_TYPES, MAXIMUM_WORK_SEARCH_QUERY_LENGTH, readableHybridSearchTypes } from "./hybrid-search.js";
|
|
27
27
|
import { applyImportFileHints, parseNovelText } from "./parser.js";
|
|
28
28
|
import { aiConversationTaskTypes, attachmentPermissionModules, RECYCLE_BIN_RETENTION_DAYS, Store, versionedEntityTypes } from "./store.js";
|
|
29
29
|
import { paginated, parsePagination } from "./pagination.js";
|
|
@@ -2785,7 +2785,7 @@ export function createRuntime(options) {
|
|
|
2785
2785
|
data(response, await ai.searchWork(request.params.workId, query.q, {
|
|
2786
2786
|
type: query.type,
|
|
2787
2787
|
limit: query.limit,
|
|
2788
|
-
|
|
2788
|
+
allowedTypes: readableHybridSearchTypes(permissions)
|
|
2789
2789
|
}));
|
|
2790
2790
|
});
|
|
2791
2791
|
app.head("/api/works/:workId/export", (request, response) => {
|