Merge remote-tracking branch 'gitea/fix/review-batch-2' into fix/review-batch-2
# Conflicts: # .env.example # README.ru.md
This commit is contained in:
@@ -575,7 +575,6 @@ describe('PublicShareChatToolsService share scoping', () => {
|
||||
shareService as never,
|
||||
{} as never,
|
||||
{} as never,
|
||||
{} as never,
|
||||
);
|
||||
|
||||
const tools = svc.forShare('THIS-SHARE', 'ws-1');
|
||||
@@ -608,7 +607,6 @@ describe('PublicShareChatToolsService share scoping', () => {
|
||||
shareService as never,
|
||||
{} as never,
|
||||
{} as never,
|
||||
{} as never,
|
||||
);
|
||||
|
||||
const tools = svc.forShare('THIS-SHARE', 'ws-1');
|
||||
@@ -633,7 +631,6 @@ describe('PublicShareChatToolsService share scoping', () => {
|
||||
{} as never,
|
||||
searchService as never,
|
||||
{} as never,
|
||||
{} as never,
|
||||
);
|
||||
const tools = svc.forShare('THIS-SHARE', 'ws-1');
|
||||
const searchSharePages = tools.searchSharePages as {
|
||||
@@ -774,7 +771,6 @@ describe('public-share assistant boundary locks (red-team regression guards)', (
|
||||
shareService as never,
|
||||
{} as never,
|
||||
{} as never,
|
||||
{} as never,
|
||||
);
|
||||
const tools = svc.forShare('FORGED-SHARE', 'ws-1');
|
||||
const getSharePage = tools.getSharePage as {
|
||||
|
||||
@@ -24,14 +24,12 @@ describe('PublicShareChatToolsService.forShare', () => {
|
||||
};
|
||||
const searchService = { searchPage: over.searchPage ?? jest.fn() };
|
||||
const pageRepo = { findById: over.findById ?? jest.fn() };
|
||||
const pagePermissionRepo = { hasRestrictedAncestor: jest.fn() };
|
||||
const svc = new PublicShareChatToolsService(
|
||||
shareService as never,
|
||||
searchService as never,
|
||||
pageRepo as never,
|
||||
pagePermissionRepo as never,
|
||||
);
|
||||
return { svc, shareService, searchService, pageRepo, pagePermissionRepo };
|
||||
return { svc, shareService, searchService, pageRepo };
|
||||
}
|
||||
|
||||
describe('listSharePages', () => {
|
||||
|
||||
@@ -4,7 +4,6 @@ import { z } from 'zod';
|
||||
import { ShareService } from '../../share/share.service';
|
||||
import { SearchService } from '../../search/search.service';
|
||||
import { PageRepo } from '@docmost/db/repos/page/page.repo';
|
||||
import { PagePermissionRepo } from '@docmost/db/repos/page/page-permission.repo';
|
||||
import { jsonToMarkdown } from '../../../collaboration/collaboration.util';
|
||||
|
||||
/**
|
||||
@@ -35,7 +34,6 @@ export class PublicShareChatToolsService {
|
||||
private readonly shareService: ShareService,
|
||||
private readonly searchService: SearchService,
|
||||
private readonly pageRepo: PageRepo,
|
||||
private readonly pagePermissionRepo: PagePermissionRepo,
|
||||
) {}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user