@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/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
- includeAgentHistory: permissions["ai-chat"] !== "none"
2788
+ allowedTypes: readableHybridSearchTypes(permissions)
2789
2789
  }));
2790
2790
  });
2791
2791
  app.head("/api/works/:workId/export", (request, response) => {